An attempt to resuscitate cbrowser 0.8

Posted September 18, 2010 by narcissist168
Categories: hacking

I’ve had a number of issues with cbrowser, the graphical frontend for cscope. It doesn’t work on my system running Ubuntu 10.04 where tcl version 8.4.19 is installed (info patchlevel in tcl shell); don’t know if there’s a separate version for the tk component. Two glaring problems were encountered when attempting to examine the database generated from gnucash source code:

  1. Call tree functionality is broken
  2. Syntax highlighting caused the program (wish process) to consume 100% CPU time on a certain source file (specifically “gnucash-bin.c”)

The latest version of cbrowser that I was able to retrieve from a repository (don’t recall which) was labelled cbrowser_0.8-6_all, marked unstable. Diffing the version obtained from sourceforge, comparing two critical files, with the 0.8-6 version did not reveal any significant change in the code, at least I was not able to spot any changes. But the really bad news was that cbrowser is written in tcl, a language I had never heard of till last week. Before giving up, I decided to take a crack at it anyway, being a stubborn git and all. Learn just enough tcl and then hack away. With a huge amount of luck, I think I managed to recover some functionality but wonder how much of cbrowser is broken.

Read the rest of this post »

Ubuntu 10.04 on Asus Eee PC 1101HA

Posted September 17, 2010 by narcissist168
Categories: ubuntu

Managed to get Lucid Lynx working on the 1101HA. Wireless connectivity worked out of the box. Installed the poulsbo drivers from ppa as described in [1], summarized here

sudo add-apt-repository ppa:gma500/ppa && sudo apt-get update
sudo apt-get install poulsbo-driver-2d poulsbo-driver-3d poulsbo-config

Resolution obtained = 1366 x 768. Some issues remained, for example, attempting to switch to tty1 (or tty2) logged me out of the session altogether; flickering before the login screen appears. But I can live with these minor problems.

Read the rest of this post »

Twenty-seven inch beauty

Posted September 12, 2010 by narcissist168
Categories: mac

A 27″ iMac sits next to the two monitors of my Linux system. I wanted to use that smashingly good screen real estate to “host” — probably not the right term but I wasn’t exactly sure what I wanted in the beginning — some application windows. Using synergy [1], I was able to send keyboard and mouse commands to the mac from the Ubuntu machine.

At first I tried VNC. Didn’t need anything extra on either system; “vnc://” from Finder->Go->Connect to Server in OSX and allowing connections through System->Preferences->Remote Desktop in Ubuntu, making sure to require a password for entry (the first time I tried without a password it refused to connect). The outputs of both monitors were displayed beautifully on the iMac but it was horribly slow. I also had to disable synergy because of poor input response; I wonder if the application was confused about where the input was coming from or maybe it wasn’t designed for the madness I had conjured.

Read the rest of this post »

The resolving host issue

Posted September 12, 2010 by narcissist168
Categories: networking

I’m using Ubuntu 10.04 and everything seemed fine after installation. One of the very first things that I did was to configure the wireless connection to work with the router at home. Everything seemed fine; I installed Elementary, the Faenza icon set, firefox addons to get the rid of title and menu bars, tweaked this, tweaked that and I felt that it was all coming together sweetly. At this point I decided to setup the ethernet connectivity to an iMac by enabling the connection using Network Manager and specifying a static IP. That’s when the troubles began.

Read the rest of this post »

Two monitor setup

Posted September 11, 2010 by narcissist168
Categories: ubuntu

Averagepenguin [1] describes a method of moving windows between two monitors. I was hit by two gotchas:

  • at the font size and screen resolution that I use and with my poor eyesight, the backticks (`)  looked like single quotes ( ‘ ). Since I had no knowledge of the  command substitution concept [2] (being a noob and all), the xdotool command didn’t work. I was puzzled. In the end I took a wild guess: maybe ‘ was really ` and it worked. Sometime later I grew suspicious, went back to the site and increased the font size significantly, lo and behold it was very obvious.
  • in the bash script, we need spaces around the brackets [ ], otherwise it wont work. See [3].


Learning curve = brick wall

Posted September 11, 2010 by narcissist168
Categories: programming

So Gnucash is written in C, I think but there are parts of it that are constructed in a language called Scheme, which in my esteemed noobness, have never heard of. I have no idea why there is a mixture of the two, maybe it’s written in an faq somewhere on their website but right now I’m happily distracted at finding out what the hell Scheme looks like.

Read the rest of this post »

Using the find tool

Posted September 11, 2010 by narcissist168
Categories: linux

Needed to use the cscope tool
– required list of files

Couldn’t be bothered to RTFM. Should be header files be included in the cscope database?
– First example in [1] item (3) doesn’t help if both the ‘c’ and ‘h’ files are to be included.
– Second more complex example, last line gives clue.
– modified the regular expression in the option to:   -name “*.[ch]”

Read the rest of this post »