FAQ  •  Register  •  Login

Level 7

Moderators: UncleTimmy, mjpieters

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

PixelHead777

Posts: 4

Joined: Fri Nov 13, 2009 7:09 am

Post Wed Nov 25, 2009 7:52 am

Re: gray bar

techrolla wrote:
manuelg wrote:figured it out
hint2: (i * 7, 43)


Does anyone agree that this hint should be taken out? I didn't know where to start and then I saw this and I figured it out without any python (or any coding) whatsoever. I would have liked to have had to dwell on this for a while. This hint made this level by far the easiest...

I wholeheartedly disagree.
I saw this and looked in the documentation for the PIL.
I saw one spot where it was similar to notation in a function.
It doesn't work in that function.
It can't be used anywhere else as far as I can tell.
None of these hints are helpful!!!

Extension:
OK, I cropped it in Paintshop Pro, making sure not to remove any part of the gray bar on the sides, but leaving only a one pixel line. I have no way to do anything with this. I don't know what I'm supposed to do, or where I'm supposed to go, or most importantly, WHAT FUNCTION TO USE!!!I'm using effbot as a resource. it tells me NOTHING.
<<

blinkfandango

Posts: 1

Joined: Sat Nov 28, 2009 4:32 pm

Post Sat Nov 28, 2009 4:34 pm

thesamet wrote:
goldenapple wrote:Hey guys

I'm new in Python and started with Version 3.1.

Is it possible, that the needed module isn't available for 3.x yet?!

I would feel really sad if so... because that challange is such a fun!

thx


Welcome! In this puzzle (and several others down the line) you need to access pixel data of the image. I recommend using PIL. Its latest version should be compatible with Python 3.


I am having trouble finding PIL for Python 3, the current release (1.1.7) on effbot only seems to support 2.4, 2.5 and 2.6. Any ideas where I could find one compatible with 3 or is it not available yet?

http://effbot.org/downloads/#pil
<<

wspek

Posts: 1

Joined: Fri Jan 08, 2010 12:31 pm

Post Fri Jan 08, 2010 12:33 pm

Re: Level 7

OK the picture told me I'm a smart guy, but I have absolutely no idea what to do with the answer it gave me. What is the next step?!
<<

croquet

Posts: 4

Joined: Tue Nov 02, 2010 12:18 pm

Post Sat Nov 13, 2010 12:32 pm

Re: Level 7

PixelHead777 wrote:I wholeheartedly disagree.
I saw this and looked in the documentation for the PIL.
I saw one spot where it was similar to notation in a function.
It doesn't work in that function.
It can't be used anywhere else as far as I can tell.
None of these hints are helpful!!!

Extension:
OK, I cropped it in Paintshop Pro, making sure not to remove any part of the gray bar on the sides, but leaving only a one pixel line. I have no way to do anything with this. I don't know what I'm supposed to do, or where I'm supposed to go, or most importantly, WHAT FUNCTION TO USE!!!I'm using effbot as a resource. it tells me NOTHING.


First of all, relax, calm down and don't throw your frustration on the splendid people from this forum or what you will get is that... no answer :? .
If you are stuck in a riddle let it go for a few hours or even days if necessary and come back to it when your head is colder.
I have also been very frustrated with some of the riddles :lol: (specially number 6, since version 2.6 didn't print out the comments on my Linux and I didn't discovered it until I ran the code at work in Windows), but as I said, it was just a matter of letting it go and then it came like crystal clear.

You can solve this riddle in two ways:

    1. Brute way.
    By using PaintShopPro (for instance and since it is the program you mentioned).
    Since the code is hidden in the grey bar, have you thought of comparing colour numbers with an ASCII table?

    2. Pythonic way. (I suggest you use this one, as Yoda would say Make you smarter and a better person too, it will. :D )
    Effbot provides an invaluable source for these riddles and Python in general (as well as Python's own documentation).
    You have to read, maybe 1000 times and know which function suits your needs. If you don't, ask Google and then go back to the documentation.

    Since you are looking for pixels, try to find a function related with gathering pixel data in here -- http://www.pythonware.com/library/pil/handbook/image.htm
    Look at the examples, one will give you what you are looking for and then you will understand the (i * 7, 43) hint

Good luck.

Caterina
<<

juggler

Posts: 1

Joined: Tue Oct 02, 2012 2:11 pm

Post Tue Oct 09, 2012 12:26 pm

Re: Level 7

I started this challenge with python 3. Too bad it doesn't support the PIL library yet.
<<

Nerissa

Posts: 2

Joined: Sun Oct 21, 2012 4:45 pm

Post Wed Oct 24, 2012 7:49 pm

Re:

thesamet wrote:
goldenapple wrote:Hey guys

I'm new in Python and started with Version 3.1.

Is it possible, that the needed module isn't available for 3.x yet?!

I would feel really sad if so... because that challange is such a fun!

thx


Welcome! In this puzzle (and several others down the line) you need to access pixel data of the image. I recommend using PIL. Its latest version should be compatible with Python 3.

should be? any idea where it can be found for 3.x? As of right now, http://www.pythonware.com/products/pil states "A version for 3.X will be released later." I downloaded it anyway and tried to install it, it didn't even see my 3.x install to apply it to.

Any suggestions as to alternatives, or do I go back to a 2.7 install to do this one?
<<

jorpy

Posts: 1

Joined: Wed Nov 07, 2012 11:43 pm

Post Thu Nov 08, 2012 12:41 am

Re: Level 7

Where do you get the [_img]module [/img] needed to solve this problem?
<<

blast_hardcheese

Posts: 32

Joined: Wed Aug 17, 2011 12:52 am

Post Thu Dec 06, 2012 1:46 am

Re: Level 7

It looks like the developers of "Pillow" are trying to have a release by sometime next year. Looking at some alternatives shows that PythonMagick might work, as might PyGame's image support. You don't need very much more than the ability to read the values in each pixel to solve this, so nearly anything would work.

Good luck, python3-ers!
<<

mrkage

Posts: 2

Joined: Sun Dec 16, 2012 2:37 am

Post Sun Dec 16, 2012 2:49 am

Re: Level 7

That was satisfying. I don't understand the (i*7, 43) hint and I spent a few hours reading docs to figure it out. >>>Ended up not using it.

Had the answer all along, but my initial decoding script chomped some of the important stuff...
<<

maneges

Posts: 7

Joined: Sat Apr 27, 2013 8:52 am

Post Sun Apr 28, 2013 5:25 pm

Re: Level 7

Had very much fun again with this one - well at least after I figured out how to get PIL for python3.
The developer seems to have abandoned PIL, so there is a new project called Pillow but I had no idead on how to use the stuff on github. google: pillow + windows lead to: https://pypi.python.org/pypi/Pillow/2.0.0
There is a downloadbutton and you can simply install it on your windows and python3.

It uses the same commands as PIL (because it's a fork) so you can use the PIL documentary.
Use:
from PIL import Image
^make sure you write Image not image

Have fun =)
Previous

Return to Python Challenge Hints

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 8 guests

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