'Your Turn'- Problem

Post Reply
odi84
Posts: 3
Joined: Sun Oct 26, 2008 8:10 am

'Your Turn'- Problem

Post by odi84 »

Hello,

i've got a problem to solve the 'your turn' challenge.
It's your turn to host a page. That page's contents should be 'pewter scooter'.
I think the appropriate solution should be very easy. So I created a file which contains the given string. Then I put the URL of these file in the given input-form.
But it doesn't seems to be the right solution :roll:
'pewter scooter ' is incorrect.
Could someone give me a hint, please?
therethinker
Posts: 144
Joined: Fri Mar 28, 2008 11:29 pm
Location: #hacker.org on Freenode

Post by therethinker »

It's incorrect because it has a trailing newline. (it shows up as a space in the "'pewter scooter ' is incorrect" because HTML uses <br> for newlines. look at the source and there will be a newline)

You'll have to figure out why its there & remove it.


EDIT: 0x0a IS a newline character ;-)
Last edited by therethinker on Mon Oct 27, 2008 1:16 am, edited 1 time in total.
odi84
Posts: 3
Joined: Sun Oct 26, 2008 8:10 am

Post by odi84 »

thanks a lot!

there was a '0A' (Hex) Char at the end of file.

i wonder why that happen - usually my texteditor should display those special chars :roll:
sigi
Posts: 37
Joined: Sun Oct 26, 2008 4:58 pm

Post by sigi »

0x0a is a newline character. Nothing special about it :-).

Many editors append an extra new line to the end of new files. I had the same problem because I did use 'nano' to edit the file at first and that damn thing won't even let me save a file without the extra newline at the end. Fixing it with a sane editor did the trick.

I really like these kinds of small traps in the puzzles, because they make you think about all the little things that actually DO matter in many cases.
slax
Posts: 2
Joined: Fri Nov 07, 2008 8:41 am

Post by slax »

Hi,

I created a simple file with vim on my linux rootserver.
-> http://www.slax.de/tmp/challenge.html

There is no character at the end of the file. it only contains 'pewter scooter'.
Is it possible that the checkscript is not working correctly?

thx a lot
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

slax, it does contain the newline (0x0a) character at the end. Usually vi does not show newlines explicitly.

And please don't forget to change the url later.
slax
Posts: 2
Joined: Fri Nov 07, 2008 8:41 am

Post by slax »

tails, thx a lot
url is deleted
therethinker
Posts: 144
Joined: Fri Mar 28, 2008 11:29 pm
Location: #hacker.org on Freenode

Post by therethinker »

Everyone and their fancy editors. You know, you could just use an standard unix tool. By "standard" I mean its built into some shells ;-)
Allosentient
Posts: 273
Joined: Thu Apr 10, 2008 9:47 pm

Post by Allosentient »

I call everything in the discussed category "legacy software"
sigi
Posts: 37
Joined: Sun Oct 26, 2008 4:58 pm

Post by sigi »

"legacy" is a weasel word. What it means depends entirely on who is using it and in what context.

E.g. if Microsoft talk about "legacy" what they mean is "every software not by MS or not being supported by MS", or, even shorter, "every software that we're not currently marketing".

And so on.
Post Reply