Showing posts with label utility. Show all posts
Showing posts with label utility. Show all posts

Tuesday, October 26, 2010

MediaPacker - Utility to help pack your DVDs and CDs to the brim

Media Packer is meant to solve the following problems.
1) Allow good-fit packing of DVDs, CDs with given set of directories/files.
2) Intention is to semi-automate (i.e. provide suggestions to users) or fully automate the process of packing backup media such as DVD, CDs.
3) To be developed in Python for portability and ease-of-extension

InProgress:
1) Display media space occupied by a folder structure (files and directories).
File Size code snippet,
>>> import os
>>> b= os.path.getsize("/path/isa_005.mp3")
>>> b

File I/O tutorial
>>> f = open( 'test.txt', 'at')
>>> f.writelines( str(b))
>>> f.close()
>>> f = open( 'test.txt', 'rt' )
>>> s = f.readlines()
>>> s
Directory Size Lister (Check out the comments at end of blog to get info on )
Pydirstat. pydirstat is a really handy cross-platform, command-line way to generate information about disk usage. http://developer.berlios.de/projects/pydirstat/

Future features:
1) Add catalog and search facility to uniquely identify each media, add tags for folders/files and user comments.
2) Allow collaboration and sharing of catalogs among friends to share useful files.
3) Possibly use bit-torrent protocol for the sharing??

To be released under GPL.

See Also:
MediaPacker sourceforge account

Monday, September 27, 2010

Creating a CHM file from offline/mirrored HTML pages

Having too many saved/offline html folders, maybe created using Httrack like website-mirrorring software?
Storing and using these is a bit of a headache.

All you need is to convert these loose files into a compressed html file i.e. CHM file
with facilities like indexing, favorites etc.


Step 1: Install chmProcessor from http://sourceforge.net/projects/chmprocessor/. It's free to download.

Step 2: Install HTML Help Workshop if it's not already installed on your windows system

Step 3: Point chmProcessor to the HTML Help Compressor using File > Settings menu option



Step 4: Point chmProcessor to
a) the "Source File" i.e. the index.html file,
b) "Add Directory" for the directory containing the rest of the html files and
c) "Compile Help" directory to place the output .chm file


Step 5: Click "Generate" button to get the .chm file.


Gotchas: Common mistakes are to forget change the output path from one project to another.