Lessons from Kodak bankruptcy

Today, I read the news camera pioneer Kodak files for bankruptcy with great interest.

Kodak is a well known name. Kodak has great products.

There are many lessons in Kodak’s failed today.

This event prompted me to another story: Who Moved My Cheese??

1. We need to constantly changing with the market.

2. Invest your time and money in new technology/knowledge for the future.

3. Don’t live in the past glory

What do you think?

Popularity: 1% [?]

Posted in Computer Technology | Tagged | Leave a comment

I’m opposing the Stop Online Piracy Act (SOPA)

If you see this site blackout in next few hours, I’m opposing the US Stop Online Piracy Act (SOPA).

What I’ve done to support the movement?

1) Moved all domain from GoDaddy to NameCheap.com

2) Highlight the awareness: Imagine a World Without Free Knowledge

Stop Online Piracy Act (SOPA)

Popularity: 1% [?]

Posted in Computer Technology | Tagged , | Leave a comment

Auto FTP Scripts

From time to time, I would need to transfer large amount of files using FTP. I doesn’t like to do it manually.
And always let the scheduler/cron handle the file transfer automatically.

This is the batch script for Windows platform.

@echo off
set HOST=
set FTPUSER=
set FTPPASSWORD= set LOCALDIR=D:\local\path\

set /p FOLDER=[Enter Folder Name]
mkdir %LOCALDIR%\%FOLDER%
cd %LOCALDIR%\%FOLDER%
echo.

set /p SOURCE=[Enter Source Path]

echo user %FTPUSER% > autoftp.dat
echo %FTPPASSWORD% >> autoftp.dat
echo bin >> autoftp.dat
echo prompt off >> autoftp.dat
echo cd %SOURCE% >> autoftp.dat
echo mget * >> autoftp.dat
echo quit >> autoftp.dat

ftp -n -s:autoftp.dat %HOST%
del autoftp.dat

Continue reading

Popularity: 1% [?]

Posted in Shell Script | Tagged | Leave a comment

Backup MySQL on Amazon EC2 to Amazon S3

As I’m running hanneng.sg on the Amazon Elastic Compute Cloud. The WordPress is running quite stable. The next thing on my mind is about backup.

Amazon Cloud is offering 10GB of Elastic Block Storage (EBS) plus 1 million I/Os for free. So, I’m thinking of just utilizing the free capacity.

I don’t plan to back up WordPress script, theme, plugins and images inside the Amazon EC2, because I could re-install WordPress easily. I also have local copy of these images too, there are mostly store in Flick or ImageShark.

To me, the most important is the data stored in the MySQL database. In this post, I’m going to show you how to set up a simple shell script to generate a daily MySQL dump and a simple script to upload the backup to Amazon S3 Storage Service.

Now, uses mysqldump command to do the initial full backup

# Begin the backup process
rm -f $BACKUPDIR/sqldump.sql
mysqldump -u Username -pPassword -A >$BACKUPDIR/sqldump.sql
rm -f $BACKUPDIR/sqldump.tgz
tar -czvf $BACKUPDIR/sqldump.tgz $BACKUPDIR/sqldump.sql

Continue reading

Popularity: 1% [?]

Posted in Shell Script | Tagged , , , , , | Leave a comment

VMware Workstation 7.1.5 on Fedora 16

Due to licensing issue, I need to downgrade VMware Workstation 8 to VMware Workstation 7.1.5.

While launching the VMware Workstation 7.1.5, that caused an error message:

Nov 18 21:20:43.159: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.162: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.165: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.168: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.171: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.177: app-139682775324416| Your GCC version: 4.6
Nov 18 21:20:43.187: app-139682775324416| Your GCC version: 4.6
Nov 18 21:20:43.244: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.249: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.253: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.257: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.261: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.266: app-139682775324416| Your GCC version: 4.6
Nov 18 21:20:43.277: app-139682775324416| Your GCC version: 4.6
Nov 18 21:20:43.352: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.356: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.360: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.363: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.366: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.491: app-139682775324416| Trying to find a suitable PBM set for kernel 3.1.1-1.fc16.x86_64.
Nov 18 21:20:43.492: app-139682775324416| Building module vmmon.
Nov 18 21:20:43.492: app-139682775324416| Extracting the sources of the vmmon module.
Nov 18 21:20:43.507: app-139682775324416| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/3.1.1-1.fc16.x86_64/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.6.2
Nov 19 21:20:44.569: app-139682775324416| Failed to compile module vmmon!

I found a solution for this well known bug. Download the patch to fix VMware Workstation 7.1.5 on Linux Kernel 3.1.1

If you’re using VMware workstation 7.1.5, following this steps to modify the script.

vi the script patch-modules_2.6.39.sh and change the vmreqver variable to 7.1.5

fpatch=vmware2.6.39fixedv3.patch
vmreqver=7.1.5
plreqver=3.1.4

Once you have edit this patch file, and launch the sh script:

./patch-modules_2.6.39.sh

After the patch executed OK, you should be able to start VMware Workstation 7.1.5.

Popularity: 3% [?]

Posted in Computer Technology, Linux | Tagged , | Leave a comment