Need help about the 'Russian Dolls' challenge
-
- Posts: 106
- Joined: Thu Oct 29, 2009 9:21 pm
You're welcome
On the Python size of things, Python does have a module to deal with the decompression and only needs one line to extract the contents of 1 file into another, although I haven't tried it I think it should work with this challenge, all you need is the source and target filename leaving out parameters to specify extraction or compression type as you might have in command line with something like 7zip but you do have to know the compression method to know which module to use (*nix file command or windows equivalent anyone?).
On the Python size of things, Python does have a module to deal with the decompression and only needs one line to extract the contents of 1 file into another, although I haven't tried it I think it should work with this challenge, all you need is the source and target filename leaving out parameters to specify extraction or compression type as you might have in command line with something like 7zip but you do have to know the compression method to know which module to use (*nix file command or windows equivalent anyone?).
-
- Posts: 20
- Joined: Tue Apr 13, 2010 7:48 am
- Location: Makassar, ID
-
- Posts: 20
- Joined: Tue Apr 13, 2010 7:48 am
- Location: Makassar, ID
Heya all! I'm starting to think that CodeX might be getting a little tired to see me post my questions on various forums but HERE IT GOES AGAIN! (Awesome song btw)
Anyways, I only know PHP language so far, and not even that well. I can do loops and if-else commands, but as for os commands, I know quite alot. But not even a single one to open 999 archieves. (unzip?).
Any tip for PHP or .bat files appreciated!
Anyways, I only know PHP language so far, and not even that well. I can do loops and if-else commands, but as for os commands, I know quite alot. But not even a single one to open 999 archieves. (unzip?).
Any tip for PHP or .bat files appreciated!
if you can do OS commands (via command line, not point & click) then this should be trivial, assuming your on windows you could do this with a bath file (similar to bash). Command line allows you to explicitly do something such as extract doll.bin from doll.bin, all you have to do is figure some way of doing that maybe with something like a while loop (while the extracted file has extractable content). PHP can handle compressed files, you just need to look up/search for relevant functions, it might be a bit of a struggle if your not used to this kind of thing but if you keep thinking of things you need to do to get it done then you should manage in the end, I think it's very important to be efficient at researching functions/topics to be good at solving these problems and it's especially handy when your starting off with programming, otherwise you'll think the world is limited to control structures and printing trivial text/numbers.
Also if your having problems searching the forums using PHPBB2's built in search (which I never use) you should use google like so:
Also if your having problems searching the forums using PHPBB2's built in search (which I never use) you should use google like so:
Google also has other things you can specify such as inurl: which can be useful if you only want certain things such as threads and not searches.site:hacker.org some question or search content here