Blogs

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.

Installing Solaris 10 on an x86 Machine (P3

Submitted by Kayss
on March 31, 2009 - 12:01pm

Hi Guys any Help is appreciated

I recently downloaded a copy of S10 on a dvd , I tried to install on an old P3 450 Mgh machine with a 8 GB HD

I partioned it with Gparted in 2 X 2GB of FAt32 and 4 GB NTFS ...

It boots from the DVD player and shows the Installation options , I choose Solaris a series of dots go on the screen and it fails with the following error

Disk read error

x86 Permits Unaligned Memory Access (It Will Never SEGFAULT)

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

While fiddling with the Linux kernel during my last semester at the university (oh, I really miss those days), I was aware that unaligned access to a member of a structure can cause a segmentation fault. I tried to get one but to no avail. One day while I was tuning to GCC-help mailing list, I found the answer: http://gcc.gnu.org/ml/gcc-help/2009-02/msg00096.html.

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?

Cannot Start the smsbox of kannel-1.4.1 in GNU/Linux Ubuntu 8.04

Submitted by Eus
on March 30, 2009 - 9:46pm

While I had successfully set up an SMS gateway with Kannel and GNU/Linux Ubuntu 8.04 Desktop as I described in http://kerneltrap.org/node/17017, I couldn't do the same yesterday with another machine. The error found in the smsbox log file was:

2009-03-30 20:26:56 [11738] [0] ERROR: connect failed
2009-03-30 20:26:56 [11738] [0] ERROR: System error 111: Connection refused
2009-03-30 20:26:56 [11738] [0] ERROR: error connecting to server `localhost' at port `13001'

Recompiling kannel-1.4.1 in GNU/Linux Ubuntu 8.04

Submitted by Eus
on March 30, 2009 - 9:02pm

Previously I successfully recompiled kannel-1.4.1 in GNU/Linux Ubuntu 8.04 Desktop as I have described in http://kerneltrap.org/node/17017. But, when I tried to do the same in a fresh installation of GNU/Linux Ubuntu 8.04 Desktop, it failed with the following error message.

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?

Setting Up an SMS Gateway with Ubuntu 8.04, Kannel and Huawei E220 GSM Modem

Submitted by Eus
on March 17, 2009 - 11:07pm

Setting up Kannel 1.4.1 in Ubuntu 8.04 Desktop was easy.
The challenging part was finding the right GSM modem or cellphone because some hardware vendors still refuse to cooperate with us in the Free Software and Open Source Software communities. Woe to those vendors!

Googling a bit I found out that Huawei E220 GSM modem works well with a GNU/Linux system.

ITU-T v.250: Modem AT Commands

Submitted by Eus
on March 17, 2009 - 11:03pm

While googling for a standard that describes the complete SMS AT commands, I landed on Wikipedia's article on ITU-T V-Series Recommendations.

The keyword that I used was `itu-t v.25ter' since I came across the words twice during my attempt to locate the standard.

ETSI: Standardizes GSM (e.g., SMS) And 3GPP

Submitted by Eus
on March 17, 2009 - 11:00pm

I was involved in setting up an SMS gateway. After I read one or two AT commands to communicate with the GSM modem to send and receive SMS, my curiosity arose as to who standardized those AT commands and where I could get the standard.

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/).

I'm Back

Submitted by sacx13
on March 5, 2009 - 2:53pm

After several years of absence I'm back on kerneltrap.org. I saw the improvments and I think the spam filter is most notable one.

What Code Veneer Means

Submitted by Eus
on March 2, 2009 - 1:42am

Tuning into binutils mailing list, I often come across the words `ARM veneer'.
Just today I came across a post giving its definition.

A veneer is a sequence of instructions.

Keywords: definition arm code veneer

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.

The Difference between forward() and redirect() when Developing Web-Applications

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

Cluttering my hands with web-application developments, `forward()' and `redirect()' are often heard. Now I understand how they exactly differ.