PAK archives and zlib (zlib.dylib) - iphone

I'm currently writing an iPhone app where I need to uncompress several files from .pak archive. I'm assuming libz.dylib will probably have the ability to do this but I'm having a hard time find any code on the subject.
Anyone got any example code or can point me in the right direction? Any help at all would be much appreciated.
Cheers.

What do you mean by "PAK"?
If it's actually a .zip, look up minizip or ziparchive, which may do what you want.

Related

Creating RPM from directory of files

I just want a simple way to create an RPM from a directory full of files. I can't seem to find any simple way of doing this online?
I know that tools such as fpm exist for doing this, but I'd like to understand the RPM build process a little so would rather not use that.
The closest I've found is:
https://www.suse.com/communities/conversations/building-simple-rpms-arbitary-files/
but I will be installing 100's of files - I don't really want to write an install command for each of them.
Any pointers appreciated.
Take a look at Jordan Sissel's FPM:
https://github.com/jordansissel/fpm
It's magic for turning one thing in to the other, package to compressed directory and back.
The rpmerizor (http://rpmerizor.sourceforge.net/) may be of interest. The web page also lists other tools (including fpm) that do this kind of thing.

wikimedia download from google art project

I'm quite new around. I was looking for a way to download the full resolution images in Wikimedia, from Google art project. Link: http://commons.wikimedia.org/wiki/Category:Gigapixel_images_from_the_Google_Art_Project
My first thought was downloading the dumps, but how can I know which dump contains the image I am searching? I have little experience handling dumps/coding. I'm really interested in learning how to automatize the process.
Can someone help me out?
Thanks!
The dumps include text only and the media tarballs are not sorted by categories.
Just use catdown, it even ships wget for you if you're unlucky and you're using that user-unfriendly system called Windows. You could try its replacement (not currently working for me).
You can now use Imker, a Java cross-platform tool.

Remove unused source code files using eclipse/ Flash builder 4.6

i have a project having lots of file, around 4500 file in all Project. i separated it in 40 library project.Now my problem is that it taking too much time to Compile. so i increase a memory of Flash builder. This gives me little improvement to compile. i am sure that i have too much file which is not used in my project. so now i want to remove it by plug of Flash Builder / Eclipse. Because it is too much headache process to see that "xyz.as/mxml" file is used in any other file or if it is used in Other file say "abx.as/mxml" then again i have a question that "abx.as/mxml" is useful file or used in any other file. so you have any idea or hint please give me. Thanks in advance...
One thing you can try is to use the size-report of your flex compilation : flex compiler options
This way you will have an idea of which classes are really used in your libraries and therefore wich ones aren't because the flex compiler only link to classes you really need in your compiled swf.
This not ideal but it can avoid a lot of manual process pain.
Add this param to your compiler:
-link-report output.xml
this information will help you.
I'm not sure if it would work for flash-builder, but for Java there is the UCDetector.

How to cross compile tesseract ocr engine for iphone?

I am struggling from past 1 week that how to compile the tesseract ocr enging for iphone. I have gon through through some link, But i couldn't find the proper way. Can anyone help me through step by step procedure. Thanks in advance.
I will have to agree with you on this that it is not an easy task, but the below links finally helped me achieve this... hoping this helps..
http://tinsuke.wordpress.com/2011/11/01/how-to-compile-and-use-tesseract-3-01-on-ios-sdk-5/
http://tinsuke.wordpress.com/2011/02/17/how-to-cross-compiling-libraries-for-ios-armv6armv7i386/
That probably won't be enough. I know nothing about Tesseract OCR library but you will require the include directives, plus specify the directory to where the Tesseract header files are installed via a compiler switch (usually -I) and (possibly) link with the Tesseract library file(s).
That would be enough to compile the sources if the header files are installed into common include directories. However, if the header files do not contain the definitions (not just declarations) for all functions/variables then there will be a library file(s) (like libtesseract.a or/and libtesseract.so) that must be linked in order to compile your binary.

How do I zip a folder on the iPhone

I have seen a lot of related questions but none really helped.
I'm trying to create a zip archive from a folder (on the iPhone).
The structure of the folder is the following:
In this example the zip would be "folderToBeZipped.zip"
What is the easiest way to accomplish this and how do I unzip it (also iPhone) later on?
Maybe you can find this project useful
http://code.google.com/p/ziparchive/