archive

Exclude Category From wp_get_archives?

Is there any way to exclude a category from wp_get_archives? I'm trying to show the months in the sidebar, but I want to exclude the posts that are not blog entries. $catID = get_cat_id('Projects'); $variable = wp_get_archives('type=monthly&show_post_count=1); echo $variable; ...

How to pack python files and its dependencies in a single executable file?

I've got a piece of software which consists of several python sources and a couple of c++ libraries. I'd like to pack them in a executable single file, just like java does with .jar files. Is there a way to do that? ...

How to archive/export all files changed since a specific revision with Mercurial?

Hi, Mercurial supports a handy archive command which allows you to export all files as they were in a specific revision (thanks to Ry4an for pointing this out in a comment) to another folder/zip file etc. This is done as follows: hg archive -r REV destination Is there a way to export only the files changed since a certain revision an...

Protecting Content Files

Hello, I want a simple layer of protection for my content (resource) files in my application. For example, I have various sound and image files used in my application. I think, I can wrap them in a SFX archive (Probably packed with WinRAR), then in my application, start the SFX exe with some parameters, like, -silent. But this may not b...

Random-access archive for Unix use

I'm looking for a good format for archiving entire file-systems of old Linux computers. TAR.GZ The tar.gz format is great for archiving files with UNIX-style attributes, but since the compression is applied across the entire archive, the design precludes random-access. Instead, if you want to access a file at the end of the archive, you...

Online webpage archive service

Hello, I am looking for a service that can take a snapshot of a webpage at a certain time and save it online. Something like: http://www.diigo.com or http://www.iterasi.net/ (like a bookmark, but also with content). The first doesn't do that well with javascript and doesn't save the complete page while the latter doesn't have free acc...

Is there something like a Filestorage class to store files in?

Is there something like a class that might be used to store Files and directories in, just like the way Zip files might be used? Since I haven't found any "real" class to write Zip files (real class as in real class), It would be nice to be able to store Files and Directories in a container-like file. A perfect API would probably look ...

Archiving rows dynamically

I was wondering what would be the best solution to dynamically archive rows. For instance when a user marks a task as completed, that task needs to be archived yet still accessible. What would be the best practices for achieving this? Should I just leave it all in the same table and leave out completed tasks from the queries? I'm afraid...

cpio VS tar and cp

I just learned that cpio has three modes: copy-out, copy-in and pass-through. I was wondering what are the advantages and disadvantages of cpio under copy-out and copy-in modes over tar. When is it better to use cpio and when to use tar? Similar question for cpio under pass-through mode versus cp. Thanks and regards! ...

Archive format suggestions for exporting iPad app data? Tarball?

I have an nascent iPad application, which stores "documents" internally on the device in the file system as a series of distinct files in a folder. I'd like to try incorporating an import/export function through iTunes, using the features for OS 3.2 for this. I want to put all the document pieces that I keep internally into one containe...

Display archive posts in Wordpress

I am looking to display archives pages as a normal posts page... So, a posts page with a secondary navigation showing: LATEST POSTS / LAST MONTH / LAST YEAR / OLDER On each of those pages, I would like to display a summary of each post just like the standard latest news page. When you click through you get to the full post. For ea...

append files to an archive without reading/rewriting the whole archive

I've got many files that I want to store in a single archive file. My first approach was to store the files in a gzipped tarball. The problem is, that I've to rewrite the whole archive if a single file is added. I could get rid of the gzip compression, but adding a file would still be expensive. What other archive format would you sugge...

Why GIT reports "fatal: This operation must be run in a work tree" when exporting from bare repo?

Hi, if I export from bare GIT repository using git archive command I get error message: "fatal: This operation must be run in a work tree", altough the export passes properly. So my question is: Is there any issue when exporting from bare repository? I checked the exported archive and it looks alright. Thanks ...

compressed archive with quick access to individual file

I need to come up with a file format for new application I am writing. This file will need to hold a bunch other text files which are mostly text but can be other formats as well. Naturally, a compressed tar file seems to fit the bill. The problem is that I want to be able to retrieve some data from the file very quickly and getting just...

Decide which caching startegy to use ?

Hi all, I want to cache my loaded data so that I can reduce my application start time . I know several strategies to store application data i.e. core data, nsuserdefaults , archiving . Now my scenario is that suppose that I have array of maximum 10 objects each object having 5 fields . So I can not decide which strategy to store th...

wordpress custom archive page type

i'm starting with wordpress (from a drupal background) and trying to figure out how to create a new "menu" or url pattern. not quite sure what the lingo is in wordpress so im having a little trouble searching online for it. the current archive allows you to sort by: /post/date/2010/06 what i'm trying to do is extend the archive functio...

How to extract a single file from a remote archive file?

Given URL of an archive (e.g. a zip file) Full name (including path) of a file inside that archive I'm looking for a way (preferably in Java) to create a local copy of that file, without downloading the entire archive first. From my (limited) understanding it should be possible, though I have no idea how to do that. I've been using ...

Rule of thumb: size of boost archive in relation to original serialized object?

For reasons that I will gloss over, I need to set aside space of a fixed size, and then use boost serialization to store an object there. The choice of archive format is arbitrary, and portability is not a concern. The class is fairly complex (members include fundamental types, arrays, pointers, and child classes) and guaranteed to gro...

Create a virtual directory for file IO common dialogs from file paths

I've got an archive containing various files. Would there be a method to list out these files in directories (as dictated by their relative paths) in a common dialog (or a custom dialog for that matter) without having to extract the files or create any directory structure on the file system ? The archive reading code is at my disposal. ...

Mounting archives such as *.zips (work in kernel mode without drivers)

I was wondering if there was a way to make a *.dll that mounts archives in Windows without the need for installing drivers. I've tried mounting *.isos (and was successful), but I needed to install drivers, which was not something my intended audience wants to do (or can do). The other relevant alternatives were for Linux (fuse-zip) or d...