Archive for the ‘Linux’ Category

Repairing apachetop in Intrepid Ibex (8.10)

Tuesday, December 16th, 2008

It’s a shame that one of my favorite tools is broken in Ubuntu 8.10. It crashes right after you rune it with segmentation fault.  There is a patch in launchpad Bug #294599 but it did not work for me. I was getting some crypted error message. Finally after 10 minutes of googleing and trying i got the solution.

Here are the steps to build your own package:

  1. sudo apt-get install build-essential fakeroot devscripts
  2. mkdir apachetop && cdapachetop
  3. wget http://launchpadlibrarian.net/19754557/apachetop.debdiff
  4. apt-get source apachetop
  5. cd apachetop-0.12.6 && patch -p1 < ../apachetop.debdiff

Now before you do anything we have to make one small change to the code by hand:

$ vim src/apachetop.cc

go to line 967 (in vim write 967G) and replace line

char realfile[MAXPATHLEN];

with:

char realfile[PATH_MAX];

now go to the apachetop-0.12.6 directory and do:

$ debuild -uc -us

after compiling is successfully you can install your new package with:

$ sudo dpkg -i ../apachetop_0.12.6-8ubuntu1_i386.deb

Hope it will help someone.

PS: Installation steps based on https://wiki.ubuntu.com/UbuntuPackagingGuide/BuildFromDebdiff?highlight=(debdiff)

Lets help FLOSS developers

Tuesday, December 2nd, 2008

One day while cleaning up my men cave I realized I have a lot old and not so old hardware lying around that I don’t use. It would be a shame to just throw it away or give it to random people. At that exact moment I had brilliant idea – lets give it to FLOSS projects. There must be a lot of people that could make use of it. Especially those in developing countries or those of us that don’t have a budget for hardware but have skills to help. But how? As far as I know there is is nothing like that existing.

My idea would be to create a web page where FLOSS developers / projects could register and seek help from people like me. Whose of us willing to help would register as well and post descriptions and pictures of hardware they are willing to send to the registered projects / developers.

There would have to be of course some kind of oversee who gets what and how. So far I have no idea how to do that part :)

People that don’t have hardware to spare could make donations that would be used to help ship items for those that have them but don’t want to spend money on shipping. I guess international shipments are expensive.

So far I registered a domain www.helpfloss.org and I’m willing to pay for it as long as I can. I can also devote some time to web page development (php, mysql, js).

As you can see thats only the beginning later on we could grow on this idea and make a huge change in the community.

I’m sending this email to few pod-casts I hope with your help I could get this project of the ground. If anyone thinks it’s a good idea please contact me.

XDebug and Target Management for Eclipse

Saturday, June 21st, 2008

Welcome to another exciting episode. This time you will learn:

  • how to send your files to remote development server from within Eclipse using Target Management and secure FTP (sftp).
  • make files sent via sftp belong to certain user group and have write permissions for this group (umask).
  • configure and use XDebug with Eclipse PDT.

You can find the link to the tutorials about XDdebug I have mentioned on the show in show notes for Episode #7.

Timeline:

00:58 Install Target Management Plugin
02:48 Connecting to development server using Target Management Plugin
03:45 Adjust development server folder permission
07:30 Changing umask for files created using sftp
12:25 Exporting files to development server
15:25 Re-send files to server after changes
16:30 Using XDebug with Eclipse PDT debugging perspective
16:50 Eclipse PDT debugging perspective
17:07 Configuring Eclipse PDT for XDebug
19:10 Start debugging
20:50 Setting conditional breakpoints
21:50 Watch expressions
24:20 Using XDebug functions in your code

Best viewed in full screen with scaling off !!!


Episode #8. Using XDebug and Target Management with Eclipse by ralphz from ralphz on Vimeo.