MikeTeo.net

A Software Technologist's Blog (Wanna Email Me?)

Archive for May, 2008

HSBC Gadget

May-16-2008 By miketeo

HSBC Hong Kong has recently launched a HSBC gadget for Windows Vista, Yahoo and iGoogle. For people who dab into Hong Kong stock market, you should find this tool useful as it allows you to search and monitor stock prices easily via the dockable application.

Creating bin/cue Files on Linux

May-10-2008 By miketeo

I have tested this to be working a Fedora Core 8 distro. It should work on other distros that have cdrdao installed. The following commands should be performed as a root user.

1. Scan for your device ID

$> cdrdao scanbus

You should see an output similar to the following:

Cdrdao version 1.2.2 - (C) Andreas Mueller
  SCSI interface library - (C) Joerg Schilling
  Paranoia DAE library - (C) Monty
Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.
Using libscg version 'schily-0.8'
3,0,0 : Imation , IMWDVRW8I       , HSI3

Note the 3,0,0 at the bottom of the output. That’s the device ID you need for the next command.

2. Now you can start copying the CD/DVD into a set of bin/cue file.

$> cdrdao read-cd --read-raw --datafile cdimage.bin --device 3,0,0  cdimage.cue

The above command will produce an image of the CD at device 3,0,0 (which is what I have gotten during the previous cdrdao command) and write the image into cdimage.bin and cdimage.cue.

You should see an output similar to the following when the command executes:

Cdrdao version 1.2.2 - (C) Andreas Mueller
  SCSI interface library - (C) Joerg Schilling
  Paranoia DAE library - (C) Monty
Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.
Using libscg version 'schily-0.8'
3,0,0: Imation IMWDVRW8I        Rev: HSI3
Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000)
Reading toc and track data...
Track   Mode    Flags  Start                Length
------------------------------------------------------------
 1      DATA    4      00:00:00(     0)     00:06:00(   450)
 2      DATA    4      00:06:00(   450)     78:59:14(355439)
Leadout DATA    4      79:05:14(355889)
PQ sub-channel reading (data track) is supported, data format is BCD.
Raw P-W sub-channel reading (data track) is supported.
Cooked R-W sub-channel reading (data track) is supported.
Copying data track 1 (MODE2_RAW): start 00:00:00, length 00:06:00 to "cdimage.bin"...
Copying data track 2 (MODE2_RAW): start 00:06:00, length 78:59:14 to "cdimage.bin"...
Reading of toc and track data finished successfully.

Now you can open bin/cue file in Windows using DAEMON Tools. Try opening the bin file if you have an error opening the cue file.

The manual offered by Reuters explains how to write Java code to inform your web application of new stories from Reuters and how to extract the information from the NewsML files for your web site. This blog post will illustrate another way of integration by scanning the syndication folder for the NewsML files. The alternate method can be implemented in various programming languages such as Python, Perl, PHP or Ruby.

Read the rest of this entry »

This blog post documents the steps required to setup email hosting for multiple domains on a Fedora Core 7 box. At the end of the setup exercise, you will have a email hosting system that uses

  • MySQL for account storage information
  • Postfix as mail transfer agent (MTA) with SMTP/SSL and STARTTLS capability
  • Dovecot for POP3 and IMAP (including SSL for security)
  • PostfixAdmin for account management
  • Lighttpd as a light-weight HTTP daemon service for PostfixAdmin
  • Postgrey as a deterrence against spams.

If you are familiar with system administration and using yum, you should be able to complete this within 30 minutes.

Read the rest of this entry »