Configuring Doxygen with github

I had heard that it was possible to setup projects in github and have the corresponding Doxygen output available online. A quick search of the terms brought me here,

The instructions seemed simple enough and I decided to make my own account on github. It took me a few hours but here’s my test repository,

And here is the corresponding documentation,

There’s not much to see in the way of documentation and the source code itself is a basic “Hello World” application that I shamelessly copied from somewhere. Continue reading


container_of() gcc macro

A colleague of mine approached me a few days ago with the following question – “What does container_of() do?”. He linked to the following file in the Linux kernel (we do embedded development at work),

 * container_of - cast a member of a structure out to the containing structure
 * @ptr:    the pointer to the member.
 * @type:   the type of the container struct this is embedded in.
 * @member: the name of the member within the struct.
#define container_of(ptr, type, member) ({          \
    const typeof(((type *)0)->member)*__mptr = (ptr);    \
             (type *)((char *)__mptr - offsetof(type, member)); })

At first glance, I wondered what kind of function was I looking at? It soon became clear that it wasn’t a function at all, but a macro. One of those compiler directives the kernel developers enjoy using.

Continue reading

Flashing a new kernel and ROM on an Xperia Arc

While there are a plenty of tutorials on how to flash a new kernel/ROM onto my phone available on the XDA developers forum, fact of the matter is that I don’t visit very often. The result is that every few months when I feel like ‘upgrading’ my phone, I have to read/search through a mountain of posts to get the information I need. Being the lazy kind of individual, I’ve decided to make my own notes on how to do the upgrade. For anyone reading this, please note: these instructions are for an unlocked Xperia Arc (international release).
Continue reading

disabling the android lock screen & welcome message

I build android systems from source often enough these days.; usually to test some new feature or the other. One of the first things one can do with a new android system is tap the ‘OK’ button on the “Welcome to android” tutorial that comes up. After doing this for the umpteenth time, I had enough! And that silly lock screen too! There had to be a way to statically disable these annoyances in source code, and I was going to find it!

Fortunately, it wasn’t as difficult as I thought it would be.

Continue reading

Headlessly booting a raspberry pi

I got a Raspberry Pi yesterday. Additionally I ordered a case. Here’s how it looks like,

chronodekar's Raspberry Pi in its case

chronodekar’s Raspberry Pi in its case

For better or worse, the television in my house was in-use. The family seems to consider watching soap operas more important than letting me test out my new gadget. Which left me with one option – to try and boot it headlessly. i.e. without a connected display.

The official raspberry pi downloads page has links to multiple images that could be loaded onto the Pi. I selected Arch Linux ARM because it was the smallest of the lot (in terms of filesize).

Step 1 was to download the Win32 Disk Imager utility and install it.

Step 2 meant plugging in a SD-card and writing the IMG file to it. The official recommendation is to use a 4GB (or more) SD card. I didn’t have a 4GB SD card with me. Heck, I didn’t even have any SD card with me! What I did have was a microSD to SD adapter and a 2GB microSD card. For the Arch Linux image I downloaded, it was enough – at least, Win32DiskImager didn’t make any complaints about it.

Step 3, I connected the Pi (via LAN cable) to my home network.

Step 4; I logged into my router (the device which handles DHCP address allocations) and made a note of all the devices currently plugged into the network (It was a very small list).

Step 5; The USB power-cable was plugged into the Pi and I saw the on-board lights go up. They blinked for some time and stopped.

Step 6; Back to my router. A simple comparison told me which IP was newly assigned. It could only be the Raspberry Pi!

Step 7; A simple ping test (targeting the Pi) revealed that the network was working properly.

Step 8; Using LePutty, I SSH’d into the Pi. Voila! Job done!

I haven’t quite decided what to do with my new Raspberry, but for now I’m looking around for instructions on how to cross-compile a custom IMG file (similar to the Arch Linux IMG I downloaded) to use instead. Think I might rig it up as a web server or something …

Fanfiction review “The House of Elendil”

I decided to pick up a review request for a ‘Lord of the Rings’ and ‘Game of Thrones’ crossover. While I’ve read the LOTR books, it’s been years and my memory is fuzzy. Only important point I recall is that it’s the story about a hobbit traveling the countryside (filled with enemies & monsters) with his friends to destroy a powerful (and magical) ring. As for GOT? I’ve watched the first two seasons and consider the TV series to be filled with too much sex. Nothing wrong with that, I like good skin-ship as much as the next warm-blooded male, but the show has it in more quantities than I would have liked.

That said considering how expansive the lore is in both universes, I would expect a crossover to be newbie-friendly. Even if you are a fan (of either source), chances are that the obscure facts would escape memory and an author should compensate for it. With that in mind, let’s begin shall we? Here’s the link to the story (WARNING: spoilers ahead!);

The House of Elendil by EricDal

The title means nothing to me and the summary reminds me of that famous poem from the LOTR books – the one which speaks of nine rings, lords and the one that binds them … etc. Reading further, it looks like I can expect a story of someone who comes from across the sea into Westros and joins in the political game for the Throne. Hmm… better do a quick search about this Elendil fellow (opens up google). It looks like Elendil was an elven king/ruler who first ruled over Arnor and Gondor. I guess that EricDal is planning a story of how those kingdoms get established in Westros instead of canon-LOTR universe (starts reading story).

Continue reading

Fanfiction review “On the Wings of Freedom”

Another Fate/Stay Night and Sekirei crossover. Ever since gabriel_blessing started writing “In Flight” these stories seem to be popping up like bad fungi. Heck, even I wrote a few snippets some months ago! Without further adieu here’s the link to the story (WARNING: Spoilers ahead!),

On the Wings of Freedom by Shadows of Vanity

The summary is well written. I wondered what Shirou was doing in France, but the author answers the question with the next few words. Seems that he went there on a holiday. It’s a bit odd why someone would be called in for an interview in the middle of a vacation, but that’s just nitpicking for the sake of it. What really spoils things are the last 4/5 words,

powerful!Shirou, Shirou/large harem.

Is there any real need to mention this? The summary has already told us that he’ll be getting a harem. Why repeat information we already know? And what am I to make of the phrase ‘powerful!Shirou’ ? Barring a few crack-fics, most stories have him as a competent fighter anyway. Or are you trying to tell me that he’s going to be God-like in this story? If so, you should have also included a tag for the Emiya Clan. Sounds like a perfect fit to me.

I find your choice of pairing “Shirō E. & No. 08/Yume” puzzling for a harem story, but I think we’ve spent enough time talking about the summary. <starts reading the chapter>

Continue reading