In response to a query on IRC, I offer a small competition for the festive season.
A one liner in a scripting language of your choice to print the first line of a file - The winner will be judged on convolusion & inappropriate use of commands. The limit is 256 characters.
To be judged by the gathered hordes on Dec. 26th.
Regards, Paul.
Lincs: You have been included because you guys might as well take part if you want to, hell the more the merryer (and you're mostly still within reach of delivery of prize) (and it means I get more advertising area)
Paul wrote:
In response to a query on IRC, I offer a small competition for the festive season.
A one liner in a scripting language of your choice to print the first line of a file - The winner will be judged on convolusion & inappropriate use of commands. The limit is 256 characters.
To be judged by the gathered hordes on Dec. 26th.
So shocked am I that Pauls Great Idea dosn't involve making me go to war zones to reboot computers for him, (and that we need the advertising), that Moose Computer Services will provide the winner (once we've agreed one, and indeed the rules) with a Crate of Beer (or suitable alternative).
(terms and conditons i.e. delivery of beer might not be included (especially if anyone outside the country enters - Im sorry, we dont have enough money))
Please see http://www.moosecomputerservices.com/Competition/ for proof of our dedication and ideas of what we're looking for.
Because of peer marking, not many rules are needed (if the group dosnt like it, lump it...
I would suggest that the use of head be excluded, no point in making it to easy....
Regards, Paul.
On Friday 17 December 2004 05:13, James Taylor wrote:
(terms and conditons i.e. delivery of beer might not be included (especially if anyone outside the country enters - Im sorry, we dont have enough money))
I would suggest that the use of head be excluded, no point in making it to easy....
I disagree - If i produce a line which in perl echos a h, in php a e and appends, python an a etc and then execute it, that would be quite sick right? (of course not really the worst solution but given time i can think of worse).
Better leave it in - I doubt anyone using head will get the worse solution.
What we should do is have a standard file and or a standard var for the file - for example the file would be called "f" or be stored in the variable "$f".
The file would be a file with more then one line, with actual non-whitespace stuff on the top line of more then one character.
I think also Reversable Functions should have to be seperated by at least one instruction for example:
htmlencode($s); $htmldecode($s);
would be banned where:
htmlencode($s); rtrim($s); $htmldecode($s);
would be allowed.
Personally I'm still trying to recurse from the bottom of the file in scheme. Shame my scheme isnt very good...
On Friday 17 December 2004 13:38, J Taylor wrote:
What we should do is have a standard file and or a standard var for the file - for example the file would be called "f" or be stored in the variable "$f".
Agreed - $file is reasonably short and descriptive, but $thisismyfilewitoutapathname just wastes space in a 256 Char limit.
I think also Reversable Functions should have to be seperated by at least one instruction for example:
In my view, "bzip2 | bunzip2" would count as a null operation - No intermediate processing has taken place and therefor is just padding to fill the line up.
Regards, Paul.
I think also Reversable Functions should have to be seperated by at least one instruction for example:
In my view, "bzip2 | bunzip2" would count as a null operation - No intermediate processing has taken place and therefor is just padding to fill the line up.
But just to clarify, compression, then sending via a network socket to the next stage, at which point you decmopress would be ok because that involves intermediate processing for which the compression would be of benifit for the network stage.
On 16-Dec-04 Paul wrote:
In response to a query on IRC, I offer a small competition for the festive season.
A one liner in a scripting language of your choice to print the first line of a file - The winner will be judged on convolusion & inappropriate use of commands. The limit is 256 characters.
To be judged by the gathered hordes on Dec. 26th.
Tempting ... but what's the method for submitting entries?
Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@nessie.mcc.ac.uk Fax-to-email: +44 (0)870 094 0861 [NB: New number!] Date: 17-Dec-04 Time: 14:16:41 ------------------------------ XFMail ------------------------------
There will be an drop box thing set up soon to accept and protect submissions, which will be locked out on the 26th and the results publically displable. - we will tie this into some kind of simple voting rig probably.
Just keep them until that point (eta ten hours lets say?)
(Ted Harding) wrote:
On 16-Dec-04 Paul wrote:
In response to a query on IRC, I offer a small competition for the festive season.
A one liner in a scripting language of your choice to print the first line of a file - The winner will be judged on convolusion & inappropriate use of commands. The limit is 256 characters.
To be judged by the gathered hordes on Dec. 26th.
Tempting ... but what's the method for submitting entries?
Ted.
I said ten hours erm maybe ten ish hours ago and I give you http://j-life.imen.org.uk/ Apologies for crud domain name, waiting for servers to update for the moose one...
You can all sign up with a simple password cause its not that secure. You can see your own posts until the 26th when it all swaps around.
Mak. This means stop mailing them to me. Please.
Signing up and the process aborts due to comp.moosecomputerservices.com not being resolved - Is this a permenant error ?
Regards, Paul.
On Saturday 18 December 2004 07:10, James Taylor wrote:
You can all sign up with a simple password cause its not that secure. You can see your own posts until the 26th when it all swaps around.
Paul wrote:
Signing up and the process aborts due to comp.moosecomputerservices.com not being resolved - Is this a permenant error ?
Regards, Paul.
On Saturday 18 December 2004 07:10, James Taylor wrote:
You can all sign up with a simple password cause its not that secure. You can see your own posts until the 26th when it all swaps around.
Ahh. No. That definitly should have kicked in by now. I had my hosts file set do didnt notice that mistake, and was setting the base location to being comp. I've removed the base directive, so it should all work from now, and comp.moosecomputerservices.com will start working any time in the next eerm seventy two minus eight hours?