You are here

Uditha Atukorala's blog

Uditha Atukorala's picture

Writing a basic multitasking OS for ARM Cortex-M3 processor

ARM Cortex-M processors implements two privilege levels and two stacks that can be used with application software. Combining these features with powerful exception handling capabilities, this is an attempt to discuss my practical approach to develop a simple multitasking Operating System for ARM Cortex-M3 processors using C++ and the challenges faced.

Uditha Atukorala's picture

HTTP chunked transfer-coded data read / decode example in C++

I was writing some code for the bitz-server project the other day and I wanted to read data passed in using the Chunked Transfer Coding (RFC 2616, section 3.6.1). I did some quick googling but I couldn't find a coding example in C++ (or in C).

Uditha Atukorala's picture

FormCheck with MooTools v1.3

FormCheck is an awsome MooTools class that allows you to validate XHTML form fields on cliet side. It has a nice UI touch and the validations are pretty good. I have been using it for some time now but the latest version (at the time of this writing), version 1.6, was released back in March 2010 and it only works with MooTools version 1.2. 

Uditha Atukorala's picture

How to mount ext2/ext3 Linux Volumes in Mac OS X (Snow Leopard) with Read/Write access

I was actually surprised to find out that there is no native support for popular ext2/ext3 Linux Volumes in mac OS X. So if you are like me and have ext2/ext3 drives lying around and want to access them using OS X then here is a compact guide to sort things out in Snow Leopard. 

 

Uditha Atukorala's picture

How to Set Up PHP mail in Debian

Note: This is tested and proven to work on Debian Lenny (stable)

If you are a web-admin or a PHP developer hosting on your own servers you might have found out that PHP mail() function does not work out of the box in Debian unless you have installed Exim (default MTA for Debian Lenny), sendmail or some other MTA. Most of the time this is OK, but when you really don't want to mix a mailserver with your webserver this is going to be a problem.

Uditha Atukorala's picture

Linux chroot - things to remember

When you are creating a chroot jail, before you chroot make sure that you have mount the following;

1 - /proc
# mount -o bind /proc /mnt/chroot/proc

2 - /sys
# mount -o bind /sys /mnt/chroot/sys

3 - /dev
# mount -o bind /dev /mnt/chroot/dev

Finally when you are done,

# chroot /mnt/chroot /bin/bash

Uditha Atukorala's picture

Linux Kernel Modules - Some useful commands

Some useful commands to get information about kernel modules.

To get a list of loaded modules,

$ lsmod

Get more information about a module,

# modinfo

Load a module,

# modprobe

List PCI hardware with more information.

$ lspci -v

Pages

Subscribe to RSS - Uditha Atukorala's blog