Linux xdg-open — replacement for start in windows

2009-11-05 1 min read Fedora Linux

if you want to open any document with the default document handler from the bash prompt or command prompt in linux then the simplest way to do that is use ”xdg-open”.

This can also be used in bash scripts to allow users to select which document to open without worrying about if a particular application is installed or not. Example could be where you have list of documents in the current directory (same kind or of different format.) and you want the user to select the document. In such a scenario you can take the user input for the filename and user ”xdg-open filename” to open the file irrespective of the file type or worrying about if xpdf is installed or abiword is installed or not.

Continue reading

Citibank Doesn\’t Want Your Business, Linux Users

2009-11-03 1 min read Linux Uncategorized

This is an article from the Citibank customers in US.

The Consumerist: ”Citibank won’t let customers using Linux computers log in to their online accounts. Adam argues that in 2009 this doesn’t make sense, especially when no other major corporate website blocks him like this.”

URL: <a href="http://linuxtoday.com/news_story.php3?ltsn=2009-10-31-001-39-IN-BZ-SW">http://linuxtoday.com/news_story.php3?ltsn=2009-10-31-001-39-IN-BZ-SW

But in India too we don&#8217;t have much too different environment. Though I do not have any issues with the Citibank site, but I have HDFC Insurance. I always pay the premium online. This time the payment failed couple of times and the amount was deducted from my account. When checked with the Customer Service Desk, the confirmed that the payment option does not work on Firefox with Linux. For this time I have made the payment using Cash, but why should there be OS discrimination.

Continue reading

cups web interface.

2009-10-29 1 min read Linux

Today I found an interesting piece of information. I was trying to debug a problem with the cups service and found that cups offers a web administration.brbrThe server is running at port 631. So point your browser to browser with <a href="http://localhost:631">link and happy digging.

\"\"

Vi/VIM and Unix/Linux cheatsheets.

2009-10-26 1 min read Linux

I found quite a lot of good information today morning.

Some really good info on vi/vim. I liked the this one:&#8221;Also, you don&#8217;t have to use the / command as a separator. Anything typed after s will become the separator&#8221;

<a href="http://ask.slashdot.org/article.pl?sid=08/11/06/206213&from=rss" target="_blank">http://ask.slashdot.org/article.pl?sid=08/11/06/206213&from=rss

Some of the best collection of vi/vim tips: (though a lot of them do not have explanations)

<a href="http://vim.wikia.com/wiki/Best_Vim_Tips" target="_blank">http://vim.wikia.com/wiki/Best_Vim_Tips

Top 10 Best Cheat Sheets and Tutorials for Linux / UNIX Commands

Continue reading

Adding dates to your photos.

2009-10-12 1 min read Linux Photo
Add date in the photograph with a perl script.

#!/usr/bin/perl

if ($#ARGV < 0 )
{
print &#8221;$#ARGV \n&#8221;;
print &#8221;Usage $ARGV[0] filename/dir\n&#8221;;
exit -1;
}

@files = `find &#8221;$ARGV[0]&#8221; -iname &#8221;*jpg&#8221; -print`;

if ($#ARGV > 3 ) { $cmd = 1;}
$count = 1;
foreach $file (@files) {
chomp ($file);

Continue reading
Older posts Newer posts