Applications/tools

Journal entries about applications and tools.

Hello World :o)

Submitted by rain002
on May 6, 2009 - 4:13am

Just signed up so saying hi to the world - or at least those that are here anyways :o)

internet marketing

Submitted by ficarro
on May 5, 2009 - 2:15pm

Amore Internet Marketing Corpus Christi web development & design
Contact James Ficarro jficarro@gmail.com for information.

What is "staff" and "wheel" in Linux?

Submitted by mcvasant
on April 22, 2009 - 12:00am

"Not all distributions have staff, some have "wheel" instead."

What does this mean?

What is Segmentation Fault?

Submitted by mcvasant
on April 15, 2009 - 12:33am

When I type in "vlc" on terminal in Mandriva 2009 Free, I get a message that it cannot be played and that there's some segmentation fault.

It suggests me to try "cvlc".And it works.

What is Segmentation Fault?

SIM Card Does Matter when Setting up an SMS Gateway

Submitted by Eus
on April 13, 2009 - 12:43am

One day when I tried another SIM card with the Huawei E220 modem that I told about in http://kerneltrap.org/node/17017, I got the following error message on bearerbox.log:

2009-04-11 08:19:59 [7083] [6] DEBUG: AT2[eus_smsc]: --> AT+IFC=2,2^M
2009-04-11 08:20:00 [7083] [6] DEBUG: AT2[eus_smsc]: <-- +CME ERROR: SIM failure
2009-04-11 08:20:00 [7083] [6] ERROR: AT2[eus_smsc]: Generic error: +CME ERROR: SIM failure
2009-04-11 08:20:00 [7083] [6] INFO: AT2[eus_smsc]: cannot enable hardware handshake

Setting up an NTP Gateway

Submitted by Eus
on April 12, 2009 - 11:56pm

The other day when I was fiddling with JobScheduler (http://jobscheduler.sourceforge.net), I realized that my development machine's system clock lagged by about 8 seconds behind that of the server machine that hosted the JobScheduler because whenever I looked at my local machine's clock to setup a job to run at the next 10 seconds, the JobScheduler in the server machine failed to run the job due to expiration of the schedule (the JobScheduler used the server machine's system clock, of course). I had both machines running the same GNU/Linux distribution, which was Ubuntu 8.04 Desktop, and they were synchronized to ntp.ubuntu.com. But, upon encountering the lagging problem, I decided to synchronize my development machine's system clock to that of the server machine. However, I wanted the server machine to synchronize to ntp.ubuntu.com. It turned out that implementing such an idea was not easy.

Successfully Running svnsync through svn+ssh from post-commit and post-revprop-change Hooks

Submitted by Eus
on March 31, 2009 - 7:36pm

One day after I had successfully set up a subversion mirror and kept it in sync with svnsync through svn+ssh protocol as described here: http://blog.codefront.net/2007/03/31/setting-up-svnsync-ed-mirrored-svn-..., I would like to have the sync happen automatically everytime there was a commit. Oh, the blog didn't mention anything about svn+ssh protocol, but it was easily done following the subversion manual itself. So, I coded post-commit and post-revprop-change hooks as described here: http://journal.paul.querna.org/articles/2006/09/14/using-svnsync. However, as Chu Yeow mentioned in his blog that he settled with cron to do the sync because the hooks method didn't work, it also didn't work for me. Both machines were using GNU/Linux Ubuntu 8.04 Desktop.

Saving 'less' Buffer to a File

Submitted by Eus
on March 31, 2009 - 1:09am

Just today I overwrote an important file accidentally. Fortunately, I had another terminal running `less' that had been reading the overwritten file up to the state just before it was overwritten (i.e., I read the file in another terminal with `less' and kept it open after I had overwritten the file). So, I wanted to save the content of the display buffer of `less' to a file. But, how?

trac - How to Search a Ticket

Submitted by Eus
on March 22, 2009 - 9:04pm

My first-time experience using trac for reporting a bug was ended with a question: How do I find a ticket based on its number?

checkinstall - Installing from Source without Cluttering Your System

Submitted by Eus
on March 5, 2009 - 11:27pm

While googling for the right program to mirror an SVN repository, I came across this post: http://blog.codefront.net/2007/03/29/setting-up-svnsync-ed-mirrored-svn-....
The post is about tutorial on using svnsync, which is a very handy program available since SVN 1.4 to mirror an SVN repository. The first part is not so interesting but for one thing: checkinstall (http://asic-linux.com.mx/~izto/checkinstall/).

How to Write Complex SQL Query Optimally

Submitted by Eus
on February 25, 2009 - 7:14pm

When crafting a complex SQL query (i.e., the query has at least one subquery), two things have to be kept in mind:
1. Reduce the search space
2. Do query on index

As a real example, last week I tuned a query that previously took about 45 minutes to complete.
Now it takes only 12 minutes, which is an improvement of 73%. Here goes the story.

Slackware 10.2 Broken dhclient

Submitted by Eus
on February 24, 2009 - 7:34pm

I have used Slackware 10.2 since 2007 after I upgraded from Slackware 10.1.
What I didn't know was that Slackware 10.2 was shipped with a broken dhclient.

Mac OSX 10.5.6 Kernel Errors

Submitted by JimOtto
on January 28, 2009 - 9:00pm

I have been all over Apple's support site and the techies from several sites with no help. I then posted my error message on Google and wound up on this site. I am not sure I am in the correct spot but will ask the question anyway.

LSE - Linux Security Engine

Submitted by jmaladrie
on October 24, 2008 - 6:16am

LSE - Linux Security Engine

LSE is an open source security project for GNU/Linux (Kernel 2.6 series).

It employs a "white list" approach to allow/disallow program execution on your computer.
It's an easy way to prevent user running applications which can be malicious [virus, backdoor, rootkit, ...] or simply unwanted.

Phishing continues and so does protection

Submitted by Kedar Sovani
on October 12, 2008 - 2:45am

I have already covered phishing in few of my earlier posts here:

I just received an email from 'security@axisbank.com' indicating me that

--------------------------------------------------------------
Security Alert:

Attention! Your AXIS Online Banking Account has been violated!

Someone with IP Address 81.102.72.19 tried to access your personal account!

In accordance with Axis Online Banking User Agreement and to ensure that
your account has not been compromised, access to your account was limited.

Your account access will remain limited until this issue has been resolved.

Please follow the link below to resolve this problem:
http://somelinkepresenthere

Thank You.
----------------------------------------------------------------

With logo and all completely there... Sounds pretty official. The problem is, I don't have an Axis Bank account :-)

So I thought ofcourse this is phishing. This can immediately be found out by hovering your mouse over the link specified. Usually, the href tag points to the real phishers website, whereas the contents of the "a" tag is the string of your bank's website. It was confirmed this is certainly a phishing site.

Then I thought lets go where they are really pointing me to and see what is happening. As I clicked it, FireFox Phishing Protection kicked-in and informed me that this site is reported for phishing attacks. Now that was good! Protection from some real danger! I wonder what happens when you open the link in IE....

Anyway, this kind of phishing detection is black-listing based phishing detection. It works, as we just saw, but it doesn't work on zero-day attacks. For it to work, people have to report this site to be a phishing site. And there is a window, between the site coming up and people reporting that site. And the window is sufficient for the phishers to gain access to vital account information of many many innocent people.

That reminds me of a project guided by the Dreamz Group by Amey. The project had a browser plugin. They had come up with a bunch of rules or suspicions that you can detect on typical phished websites. If the rules/suspicions match, a warning is displayed. For example, what we did above by hovering the mouse pointer is one such rule. And solutions like these raise the bar quite a lot. I am not sure if there are any commercially available solutions for these. But there certainly should be some around.