Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

2009/02/01

HTML crosslinked documentation from source code files

I know that modern IDEs can navigate through source code files very easily. But...what if I want to browse through source code files in my Palm TX ? Netbeans, Eclipse and other IDEs are not available for it, but I can read HTML pages offline easily with Plucker. Maybe I simply don't want to open an IDE only to browse the source code, without actually coding.

There are tools that can generate HTML pages from source code, so you can browse through them easily. They can even beautify the code with syntax highlighting and (this is my favourite) provide links between the different elements of the documentation. So, when you browse class Foo and it extends from BaseFoo, you can simply click on the word BaseFoo and you navigate to the class BaseFoo, and so on.

I've been searching for tools of this kind and I found some of them.

I like Doxygen a lot, it can make a wonderful and complete documentation of the source code, including this crosslinking source code navigation. It can optionally use another tool called htags to include the source code with this crosslinking navigation (instead of its own system). And this little tool attracted my attention...htags. It is an extremely simple and fast yet powerful tool that can generate HTML crosslinked documentation from source code.

If you have a Linux (or other *nix), you can simply install htags with a package manager, the whole package where it belongs is global. If you use Windows, you can download global from this site. There are other binaries in the download page of global.

With htags you can go to the source code root directory, write:

htags -g

...and that's all! You have your browsable crosslinked HTML documentation in a directory called HTML. I have tested it with Java files, but it supports other languages as well (C, C++, Yacc, PHP and Assembler).

If you want more features (like class diagrams, Javadoc-style complementary documentation, more flexibility with configuration, etc.), you can use Doxygen. It also supports more languages (C++, C, Java, Objective-C, Python, IDL, Fortran, VHDL, PHP, C#, and to some extent D). But if you only need plain source code with syntax highlighting and crosslinked navigation, give htags a try!

2008/07/14

EnvyNG saved my day

A week ago I upgraded my Ubuntu Linux from Gutsy (7.10) to Hardy (8.04.1). All seemed to work properly after the upgrade. But then I saw a message in my desktop that notified me the driver I was using was a free one that was not able to manage the 3D acceleration of my card. It suggested me to activate the binary one from NVidia if I wanted those advanced features, so I did it.

When I restarted the system, my monitor was not detected and I couldn't use a high resolution screen (only 800x600). I tried to revert the change but it was not possible. Then I googled a little and could find this interesting thread, where I found a magical solution: EnvyNG.

I installed its GTK+ package (envyng-gtk) with Synaptic, executed its GTK+ app, followed the instructions of its wizard (very easy to use) and after a restart...voilà! My desktop works like a charm again !!!

The description of the EnvyNG package is:
"EnvyNG is an application written in Python which will download the latest ATI or NVIDIA driver or the Legacy driver (for older cards) (according to the model of your card) from ATI or Nvidia's website and set it up for you handling dependencies (compilers, OpenGL, etc.) which are required in order to build and use the driver."

To this brilliant programmer called Alberto Milone: thank you very much for making this great and elegant solution!

2007/08/03

Linux in your Palm


Yes !!! You don't need to buy a new Palm, to wait for the new model that uses Linux as its OS...you can simply download some binaries, follow some easy steps and....woohooooo...you have Linux in your Palm !!!!

I have a Palm TX and it works really good, it doesn't have Wifi support yet but overall it's great and promising.

Try this out ! (but make a backup of your data before, just in case).

2007/02/27

Good intro to Grub

If you need to use Grub and understand its basics, there's an excellent introduction called "Grub from the ground up". I never understood the syntax of Grub, and when I was face to face with the Grub shell I didn't know what to do and its help information was a bit hard to understand at first sight.

This article introduces you to Grub easily, teaching the very basic information you should know to be able to boot a PC with Grub and understand how a 'menu.lst' file is oganized.