FAQ  •  Login

Level 18

Moderators: UncleTimmy, mjpieters

Enjoying the challenge? Need a hint?
Make a donation and help keep the site running! -thesamet
<<

cmind

Posts: 2

Joined: Mon Jun 13, 2005 12:46 pm

Location: British Columbia

Post Thu Jun 16, 2005 10:59 am

mjpieters wrote:
ajohnson wrote:I've found what calls itself a compressed file but doesn't appear to be.


If you downloaded the file with your browser, it was probably automatically decompressed for you.

I've split it down the middle and tinkered a bit but the items seem damaged and wont load. Not sure where the diff-erence is supposed to come in.


You have two sets now, right? See if there is a Python module that'll help you deal with differences..


Sure there is, but what does 'deal with' entail? The text output generated by that module is far less than useful. What am I missing?
<<

UncleTimmy

Posts: 118

Joined: Thu May 05, 2005 3:44 pm

Post Thu Jun 16, 2005 12:47 pm

cmind wrote:
mjpieters wrote:You have two sets now, right? See if there is a Python module that'll help you deal with differences..

Sure there is, but what does 'deal with' entail?

Solving the riddle, of course. Sorry, but answering that question in a way you'd be happy with would give away the solution.

The text output generated by that module is far less than useful.

Yet also far more than useless :wink:.
Last edited by UncleTimmy on Fri Jun 17, 2005 3:44 pm, edited 1 time in total.
<<

cmind

Posts: 2

Joined: Mon Jun 13, 2005 12:46 pm

Location: British Columbia

Post Fri Jun 17, 2005 10:03 am

UncleTimmy wrote:
cmind wrote:The text output generated by that module is far less than useful.

Yet also far more than useless :wink:.


Believe it or not, that helped, at least for one step. Thank you!

Now, I'm at the point 'jungle' was when he wrote
The output gives me three different, interleaved 'streams'. It is at this point that I'm not sure what to do to further proceed. A gentle push in the right direction would be appreciated. Thanks.


Alas, no one ever seemed to give him that gentle push. I sure could use it now.

(Edit) Never mind. I should learn how to code. :(
<<

oiffrig

Posts: 40

Joined: Sat Aug 13, 2005 7:10 am

Post Fri Sep 02, 2005 8:34 am

I've separated the zipped file, got 2 files with hexadecimal data inside
I tried to use the module suggested by the title, and got a third file
I've also tell-ed (not told) the difference between the two files I've found but the result doesn't lead to the level 19
Any hints?
<<

makomk

Posts: 7

Joined: Mon Aug 15, 2005 7:15 am

Post Wed Sep 07, 2005 5:50 am

oiffrig wrote:I've separated the zipped file, got 2 files with hexadecimal data inside
I tried to use the module suggested by the title, and got a third file
I've also tell-ed (not told) the difference between the two files I've found but the result doesn't lead to the level 19
Any hints?


It sounds like you're going about this the right way, but you need to get three files from the output of the module. Hopefully, looking at the output should make how to divide it obvious.
<<

Mr_Wibble

Posts: 8

Joined: Mon Oct 03, 2005 6:14 am

Location: Dorset, UK

Post Mon Oct 03, 2005 7:52 am

makomk wrote:
oiffrig wrote:I've separated the zipped file, got 2 files with hexadecimal data inside
I tried to use the module suggested by the title, and got a third file
I've also tell-ed (not told) the difference between the two files I've found but the result doesn't lead to the level 19
Any hints?


It sounds like you're going about this the right way, but you need to get three files from the output of the module. Hopefully, looking at the output should make how to divide it obvious.


I seem to be in a similar situation. Got the gz file. Extracted the text file. Split the text file into exactly equal size parts down the middle. Problem is, I now cannot figure out the next step. I have looked at two objects (and their related methods from a certain library module (which I am assuming is right (from the page title clue) but I get nothing meaningful out. One object just gives me loads of '+' or '-' leaded lines and the other object I cannot figure out the usage of.

This is the first of these challenges that I have not been able to figure out how to do the 'programming' bit. Googling has drawn a blank, as has my Learning Python book and Python Cookbook.

Completely stumped. :(
<<

wysek

Posts: 3

Joined: Wed Oct 05, 2005 8:31 am

Post Wed Oct 05, 2005 8:34 am

Mr_Wibble wrote:I seem to be in a similar situation. Got the gz file. Extracted the text file. Split the text file into exactly equal size parts down the middle. Problem is, I now cannot figure out the next step. I have looked at two objects (and their related methods from a certain library module (which I am assuming is right (from the page title clue) but I get nothing meaningful out. One object just gives me loads of '+' or '-' leaded lines and the other object I cannot figure out the usage of.


I've got exactly the same problem, don't know how to use that module.
And I'm not sure if I have separated the data from gz correctly.
<<

ajohnson

Posts: 38

Joined: Fri May 13, 2005 2:16 pm

Post Thu Oct 06, 2005 11:57 am

getting the data from the .gz file is generally an all or nothing thing. If you didn't get an error, you got it. You should have a couple objects you can look at before you get to the pluses and minuses.

After that, there's several different ways to get pluses and minuses, you just have to find the right way and decide what to do with them.
<<

Mr_Wibble

Posts: 8

Joined: Mon Oct 03, 2005 6:14 am

Location: Dorset, UK

Post Fri Oct 07, 2005 4:30 am

Mr_Wibble wrote:I have looked at two objects (and their related methods from a certain library module (which I am assuming is right (from the page title clue) but I get nothing meaningful out. One object just gives me loads of '+' or '-' leaded lines and the other object I cannot figure out the usage of.


Sussed it, make sure your use of the module is by the line and not by the character. Use the example from the python documentation exactly.
<<

joskerc

Posts: 6

Joined: Tue Nov 22, 2005 12:23 am

Post Fri Nov 25, 2005 5:39 pm

Gentle nudge in the right direction...

For a few days now, I keep looking at the swan picture & get nowhere. Tried to adjust the URL with some obvious differences I saw & got zip.
Tried a few thing with the 2 parts of the picture, to no avail until now...

So I need a gentle push in the right direction. :?

Greetz

EDIT : Found the file!!!!! :shock:

EDIT : was stuck for a week... & then solved lvl 19 in an hour...
Stuck at 20 now :P
<<

franky

Posts: 5

Joined: Sat Apr 22, 2006 10:55 am

Post Sat Apr 22, 2006 11:05 am

If you think you have your 3 files right but they don't seem to work, make sure you have saved the files in binary mode:

  Code:
f=open("filename.ext",'wb')


It took me 2 hours to figure that out... sigh! :? So hopefully this will prevent you from doing the same mistake...
<<

Achates

Posts: 8

Joined: Wed Aug 09, 2006 9:11 am

Post Wed Aug 16, 2006 6:25 am

After a bit of though I have managed to split the compressed file into three groups. However, at this point I'm not really sure what to do with them. I've tried writing them to file and then trying to open them. Do I need to convert the hex values to hex string literals or something, or am I just going at this the wrong way? Any help would be appreciated.
<<

Chirono

Posts: 9

Joined: Wed Jul 19, 2006 5:20 pm

Post Sat Aug 19, 2006 8:08 am

"Do I need to convert the hex values to hex string literals or something?"

That might be worth a try...
<<

Achates

Posts: 8

Joined: Wed Aug 09, 2006 9:11 am

Post Mon Aug 21, 2006 9:30 am

Chirono wrote:"Do I need to convert the hex values to hex string literals or something?"

That might be worth a try...


Yeah, I got it. Was a bit confusing at first because the files didn't open right with Python but got em open with Firefox. Was a bit of a pain though. Anyway thanks.
<<

Luzandro

Posts: 11

Joined: Sun Aug 27, 2006 12:50 am

Post Sun Aug 27, 2006 1:00 am

just solved the level but couldn't get the permission to view the wiki - if I change the url of lvl 19 to "pcc" i just get a 404?

edit: partially solved as I have solved the next level and thereby got the permission for both levels
PreviousNext

Return to Python Challenge Hints

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.