How to use libz.dylib to unzip zip file? - iphone

in my program i have to unzip downloaded file ... i read libz.dylib is used for that but i didn't find any documentation or examples how to do that..?
any one know this...
Thanks in advance....

I'm not exactly answering your question, but you could use ZipKit. It is an Obj-C framework for using zip files.

Related

Compress a folder to .zip on scala

Please help me as much as possible to compress the entire folder with the contents in .zip or .gz on scala?
example
Path: C:\Users\Documents\temp (temp folder with contents)
after the path: C:\Users\Documents\temp.zip(.gz) or Path: C:\Users\Documents\temp\temp.zip(.gz)
I've implemented this kind of thing and I'm satisfied with Apache Compress. Their examples helped enough to implement combination of tar and gzip. After you've tried to implement it with their examples you can come back to SO for further questions.
Checkout : https://github.com/zeroturnaround/zt-zip
Pack a complete folder :
ZipUtil.pack(new File("C:\\somewhere\\folder"), new File("C:\\somewhere\\folder.zip"))
and there is unpack.

Where do you put the dotcloud.yml file?

I have no idea what I'm doing -
Where do I put the dotcloud.yml file?
There isn't much help on this for people who don't knwo what they're doing. Insturcitons just say create the file.... where do you put it? In my pictures? In my documents? In a new folder called "pics of mj" on my desktop?
The dotcloud.yml file will generally be located in the directory containing the code of the application that you want to deploy on dotCloud.
I would recommend to check the dotCloud tutorials, e.g. http://docs.dotcloud.com/firststeps/quickstart/ ; I think it will explain all you need to know :-)
If you are referring to a specific guide or tutorial, don't hesitate to mention which one—if it's a doc maintained by dotCloud, they will certainly update it!
Probably in the root of your app/project directory, that's where I have a config.yml in a Ruby project. You can see an example of an yml file in the repo linked below.
https://github.com/ramaze/ramaze
I'm unfortunately not familiar with that deployment platform? So I'm not sure what the zoom command would do in that prompt.
For ruby it looks like the deploy command is dotcloud push [foldername] in the prompt.
http://docs.dotcloud.com/services/ruby/
There is a hint in the dotcloud.yml docs, but you're right, we need to make the location more explicit.
The dotcloud.yml file must go at the root of your source tree.

Unable to get Three20 script working (ttmodule.py problem)

Forgive the newbie, but I have been searching for an answer for this for a week or so and starting to give up all hope.
I wanted to use the Three20 project to learn some more about iphone app dev.
I downloaded all the Three20 files via git and was using the script to place all the files in my latest project.
The following script:
python three20/src/scripts/ttmodule.py -p path/to/myProject.xcodeproj Three20
Keeps giving me the following error:
Ricks-Mac:three20 rickyfarr5$ python src/scripts/ttmodule.py -p ../iphonedev/radviewer/viewer/viewer.xcodeproj Three20
ERROR:root:Unable to open the project file at this path (is it readable?): ../iphonedev/radviewer/viewer/viewer.xcodeproj/project.pbxproj
ERROR:root:Unable to open the project file at this path (is it readable?): ../iphonedev/radviewer/viewer/viewer.xcodeproj/project.pbxproj
ERROR:root:Failed to get dependencies.
The project.pbxproj file does exist and is readable
Where am I going wrong?
Hope someone can help. Cheers. Rick.
(Using xcode 3.2.5, iOS4)
My bad.... Bad file path! D'oh!

Where can I find the source code for Redhat's nash utility?

Where can I find the source code for Redhat's nash utility?
Thanks,
Chenz
git://git.fedoraproject.org/git/hosted/mkinitrd
The source is located in the mkinitrd package.

How to build timidity for iPhone or how pay midi

In my project I should use midi file, but iphone can't play them. I found out that Timidity++ library may be portable to iphone. I downloaded source and tried to build it use build_for_iphoneos.sh script, but always have error - "build_for_iphoneos.sh: line 119: ./configure: No such file or directory".
Any one, please help me!
The file ./configure is missing, check if the file really is missing or if it is in another directory.