Monday, December 1, 2008

Mount iso in linux

Run this:
 mount myiso.iso /mnt/iso/ -t iso9660 -o ro,loop=/dev/loop0

Convert bin to iso in linux

In ubuntu:

sudo apt-get install bchunk

Create a file:

sudo gedit /usr/local/bin/bchunkcue

Paste this into the new file:


#!/bin/bash
echo “FILE “”$1.bin” ”BINARY” >> $1.cue
echo ” TRACK 01 MODE1/2352 >> $1.cue
echo ” INDEX 01 00:00:00 >> $1.cue
bchunk $1.bin $1.cue $1_
rm $1.cue


Make it executable:

chmod a+x /usr/local/bin/bchunkcue

Then just run:

bchunkcue filename without the bin extension.

Friday, April 18, 2008

Learning Python

After trying for a long time to choose some more "portable" (then VBScript LOL) programming language to learn, I decided to go for Python. I found very nice free tutorials on the web. I recommend you to start with A Byte of Python which is a very good start for a beginner, thanks Swaroop for your effort to put together such a tutorial. As an alternative, or maybe to get a bit more in depth knowledge you can go for Dive Into Python. After I finish this I want to learn the Django framework in order to start developing some web applications and try Google Apps Engine. However I find Python already useful also as an alternative to VBscript for Windows administration. Microsoft has a few examples of scripts written in Python on their website.