Our highest priority is to satisfy the customer through early and continuous delivery of valuable and working software.

Friday, April 18, 2008

How to mount external ntfs USB in RHEL?

Follow the steps to mount external ntfs USB in RHEL or in any linux system.

Get your kernel version: uname -r
2.6.9-42.ELsmp (For my RHEL)
.................
Install the package downloaded according to your kernel version
http://rpmfind.net/linux/sourceforge/l/li/linux-ntfs/
rpm -ivh kernel-module-ntfs-2.6.9-42.ELsmp-2.1.20-0.rr.10.0.i686.rpm
.................
/sbin/modprobe ntfs (as root)
.................
cat /proc/filesystems
.................
Check volume names of your USB Drive.
cat /etc/fstab
..................
Mount external ntfs USB
sudo mount /dev/sdb1 /mnt/usb/ -t ntfs -r -o umask=0222
..................
Unmount external ntfs USB
sudo umount /dev/sdb1 /mnt/usb/

You r done!

Monday, March 10, 2008

Export data to a CSV file using MySQL command prompt


SELECT tableColumnName1, tableColumnName2
INTO OUTFILE '/path/to/file/data.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
FROM tableName;

Access Denied

Even if you have been granted the SELECT privilege, you will still need to be granted the FILE privilege, or else access will be denied. Some architects will only grant this privilege to the root user. Another reason that you might receive an access denied message, is because the directory where you are trying to save the CSV file is not writable.

In order to prevent a user from accidentally overwriting an important system file (like etc/passwd), you will be unable to save over a file that already exists on the server.

Tuesday, February 26, 2008

Yahoo! Announces Open Search Platform




Yahoo will soon be allowing third parties to enhance the Yahoo Search experience. The new platform, codenamed “SearchMonkey” and officially called Open Search Platform, will consist of a set of APIs that allow third parties to modify search results on Yahoo by adding images, structured data and additional deep links.

The altered results can contain far more information than the current link and a bit of text from the website. For example, Yelp (a user generated local business review site), one of the launch partners, will include a photo, review information and the address and phone number of the business.

Some modifications will be turned on for users by default; others will only appear for users who’ve chosen to add them. Amit Kumar, the product lead for the Open Search Platform, says that the desired effect is similar to Greasemonkey, a Firefox addon that allows users to see modified versions of websites (thus the codename SearchMonkey).

Third parties will have an incentive to get users to add their Yahoo search modification, which in turn can drive more traffic to their sites. One thing third parties cannot change, though, are the order of results (see Erick’s post that touches on this issue here). They can simply change the way a result linking to one of their pages appears to the searcher, and add additional rich media and links to structured data.

When this launches anyone will be able to create their own modifications and promote them - users can add as many as they like.

Below is a screenshot of a different search, for “hillary clinton.” The New York Times has altered the result to include links to other election news, debate analysis, and added data for current delegate count and total money raised:



Information provided by: techcrunch

Thursday, January 10, 2008

Yahoo! Media Player (BETA) launched on 8th Jan 2008

The Yahoo! Media Player enhances your web site or blog by creating an embedded player for each audio link. All the links can be played with one click, turning the page into a playlist. This is done by adding Yahoo! JavaScript for Media Player to your page.

# Link to audio
Insert one or more anchor elements containing the URL of an audio file into your web page. For example:
<a href="audio01.mp3">audio01.mp3</a>
<a href="audio02.mp3">audio02.mp3</a>

# Embed the Player
Copy and paste this code into your page:
<script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script>

# Use the player
The play button will appear next to each of your audio links:


Press a play button. The Yahoo! Media Player will open:

Friday, December 21, 2007

Perl - fork() example

Here is a small example which demonstrate fork() implementation in PERL.


while(1)
{
my @children;

defined (my $pid = fork) or die "Cannot fork: $!\n";

if ($pid)
{
# Parent Process...

push(@children, $pid);
wait();
my $ret = $?;

if ($ret)
{
warn("Abnormal child exit: $!\n");
$daemon = undef;
last;
}
}
else
{
# Child Process...
exit(0);
}

while (scalar(@children))
{
wait();
my $ret = $?;
shift(@children);

if ($ret)
{
warn("Abnormal child exit: $!\n");
$daemon = undef;
}
}

}

continue
{
last unless $daemon;
sleep(10);
}