PDA

View Full Version : Dating tip for the L1nux l337


-=[Juztin]=-
05-20-2004, 11:18 AM
Follow these simple rules and you're set:

who | grep -i blonde | date
cd $HOME; unzip; touch; strip; finger
mount; gasp; yes; uptime; umount
sleep

:cool:

--j2

Bedlam
05-20-2004, 11:27 AM
Man..you need to get out more. :)

-Bedlam

DrJones
05-20-2004, 12:02 PM
I like it, but everyone knows that $HOME for cd is unnecessary. If $HOME is defined you can just do 'cd' and it will default to changing to the $HOME directory.

wild.irish
05-20-2004, 01:12 PM
while(!$retired || !$millionaire)
{
typicalDay();
}
sub typicalDay
{
open(WORK,"<TOO.MUCH");
while(<WORK>)
{
tr/$coworker_mistake/$correct_answer/;
}

return;

sleep($till_morning);
}

taken from here (http://perlmonks.thepen.com/1590.html)

stu
05-20-2004, 01:18 PM
I like fucking.[

Storm Girl
05-20-2004, 01:48 PM
^^^ And that's what it all comes down to.

stu
05-20-2004, 01:50 PM
Well, I tried to use at least one bracket to fit in.

Storm Girl
05-20-2004, 01:55 PM
Oh dang...I forgot mine. I guess I don't fit in. :(

Weston-work
05-20-2004, 03:42 PM
You guys and your pseudo shell scripting... :rofl:

DrJones
05-20-2004, 04:00 PM
You guys and your pseudo shell scripting... :rofl:


First example is just a string of commands and the 2nd one is obviously perl :rolleyes:

Weston-work
05-20-2004, 04:16 PM
First example is just a string of commands and the 2nd one is obviously perl :rolleyes:

:rolleyes: I'm aware of that. That's what a shell script is... strings of shell commands; it doesn't need to have logic statements. And Perl is also scripting and really not that different, so it's close enough. I'm sure Justin and Dima understood my comment, so I didn't see any reason to post an explaination about why I grouped the two as shell scripting. Obviously, I failed to realize that people with superiority complexes would critique my words. :rolleyes:

DrJones
05-20-2004, 05:07 PM
:rolleyes: I'm aware of that. That's what a shell script is... strings of shell commands; it doesn't need to have logic statements. And Perl is also scripting and really not that different, so it's close enough. I'm sure Justin and Dima understood my comment, so I didn't see any reason to post an explaination about why I grouped the two as shell scripting. Obviously, I failed to realize that people with superiority complexes would critique my words. :rolleyes:


In the habbit of being anal :) perl isn't always considered a scripting language. However, it is an interpreted one. Granted now pretty much everyone uses the two terms interchangably, but techincally (and historically) a scripting language is one that is designed for ease of use and expressive power on the part of the programmer. An interpreted language is one which isn't compiled directly into machine code but is executed via an interpreter. All scripting languages are interpreted, but the converse is not the case.

Of course there aren't any formal definitons and many people consider perl a scripting language. Not everyone does though. I even use the term 'perl script' to describe my programs, but I also like to argue with people :)

One thing is for certain though, perl rocks. It's also a lot safer than shell scripting because shell scripts are specific to the shell. Perl is more universal, faster and has more functionality. Plus you can usually do things in perl as easy or easier than you would in a shell script. Example consider the following perl code that provides the basic functionality that the unix 'cat' command does.


#!/usr/bin/perl
print while(<>);


now that is just sexy.

I also think we need a smily that shows scarcasm...

wild.irish
05-20-2004, 05:09 PM
actually, i looked at it closer, and the script i posted is really screwed up ;) if you pay attention, it will never let you have some sleep, even if you become retired or a millioneer :rofl:

wild.irish
05-20-2004, 05:14 PM
wow, a discussion! hehe :D
my quick opinion on the matter is this: perl is cool. and about 80% of perl usage is in scripts, that's why we like to call it scripting language. but it has long evolved into a serious programming language, if you ask me, with classes, sockets, and shit, which I honestly never use, but i could.
in three words: Long Live Larry!

Weston-work
05-20-2004, 05:27 PM
actually, i looked at it closer, and the script i posted is really screwed up ;) if you pay attention, it will never let you have some sleep, even if you become retired or a millioneer :rofl:

But I think that's appropriate... There is the capability to sleep, but it's dead code. :rofl:

DrJones
05-20-2004, 05:53 PM
actually, i looked at it closer, and the script i posted is really screwed up ;) if you pay attention, it will never let you have some sleep, even if you become retired or a millioneer :rofl:

So are you going to post the patch or what?

Bedlam
05-20-2004, 08:59 PM
So are you going to post the patch or what?

He'll be like M$..and wait untill it becomes a big deal..and someone makes an exploit for it first..THEN...we'll see a patch. :)

-Bedlam

myshtern
05-20-2004, 10:02 PM
omg, i am somewhat of a programmer/script writer but you guys are losers

LeonZ
05-20-2004, 10:18 PM
:rofl: ouch ;OwnEd;

DrJones
05-20-2004, 10:29 PM
omg, i am somewhat of a programmer/script writer but you guys are losers

Or does that make you the loser and us the winner?

I don't think having any valuble skill or knowledge makes you a loser....
Investment in yourself is the best investment you can make. Those without skills are the losers.

Weston-work
05-20-2004, 10:35 PM
He's calling us losers for pseudo-scripting things and arguing over petty geek stuff... our logical next step is to have a Star Wars vs Star Trek fight. :rofl:

Mario
05-20-2004, 10:39 PM
Or we could all act like little kids... :cool:

chris_venturini
05-20-2004, 11:35 PM
Hes right, you guys are losers. You should be cool like me and pick up chicks who play computer games.

DrJones
05-20-2004, 11:43 PM
Hes right, you guys are losers. You should be cool like me and pick up chicks who play computer games.

That's just because nerdy chicks dig Tom Cruise :fu:

wild.irish
05-21-2004, 12:06 AM
ok, the patch is available in beta version. To install it though, you first need to upgrade your hardware, and have a minimum of 1.5Gb cold-air ram, 8Gb free cross-drilled disk space, Pentium V6 Pro MMX-Boost, and a neon-glowing 25" LCD monitor. You are lucky, right now we have a huge sale on all above mentioned equipment. It can be yours for just $99999.99+tax.

STIBungy
05-21-2004, 12:13 AM
U R teh sucks at scripting.

ok, the patch is available in beta version. To install it though, you first need to upgrade your hardware, and have a minimum of 1.5Gb cold-air ram, 8Gb free cross-drilled disk space, Pentium V6 Pro MMX-Boost, and a neon-glowing 25" LCD monitor. You are lucky, right now we have a huge sale on all above mentioned equipment. It can be yours for just $99999.99+tax.

wild.irish
05-21-2004, 12:15 AM
U R teh sucks at scripting.
comeon, that script wasn't even my in the first place ;) i'm just supporting it for a small fee. please, register online to receive all updates.

wild.irish
05-21-2004, 12:52 AM
Jesus, I can't believe how bored i am.... but here's the new version:

#!/usr/bin/perl -w
my $retired = 0;
my $millionaire = 0;
my $till_morning = 36000; #10 hours
my $end_of_day = 1700;

while(!$retired || !$millionaire)
{
typicalDay($today);
$today++;
}
sleep($till_morning);
exit;


sub typicalDay
{
my ($today) = @_;
if ($today == $saturday || $today == $sunday)
{
return 0;
}
open(WORK,"&lt;TOO.MUCH") || die "Vacation: $!\n";
while(&lt;WORK&gt;)
{
tr/$coworker_mistake/$correct_answer/;
if (localtime() &gt;= $end_of_day)
{
last;
}
}
close WORK;
return;

}



somebody, please, take this computer from me :eek:
i'm going to hack this script and activate sleep() for me now... g'night evr1 ;)

-=[Juztin]=-
05-21-2004, 06:42 AM
var ImWithStupid = true; ;)

john
05-21-2004, 07:12 AM
Perl and shell are miles apart, IMNSHO.