Tuesday, April 4, 2023

how to run python code as a daemon

To run a Python script as a daemon, you can use the python-daemon library. This library provides a DaemonContext class which can be used to create a daemon process. The DaemonContext class provides a number of methods and attributes which can be used to configure the daemon process. Once the daemon process is configured, you can use the start() method to start the daemon process.

What is B+ trees

B+ trees are a type of self-balancing tree data structure used in databases and file systems. They are a variation of the B-tree and are designed to store data in a sorted order. B+ trees are used to store large amounts of data in a way that allows for efficient retrieval and insertion of data. B+ trees are often used in databases to store indexes, which can be used to quickly search for data.

what is awk

AWK is a programming language designed for text processing and data extraction. It is a powerful tool for manipulating text files and is commonly used for data extraction, report generation, and text processing tasks. AWK is a domain-specific language, meaning it is designed to work with text files and strings. It is often used to parse log files, generate reports, and perform data analysis.

what is echo

Echo is a command in Unix, DOS, and other operating systems that prints a line of text that is passed as an argument. It is commonly used in shell scripts to output status text to the screen or a file.

Monday, July 9, 2007

Cartoons

Its been a long time and i wanted to draw a small cartoon that has all the members of our engineering team @ Komli. So on Friday night 6th June 2007 at about 11.30 pm i drew some stuff on the white board and Mukul clicked a snap of it and here it is, Yo Komli Team, we rock :)

Monday, June 11, 2007

Installing RHEL 4 Update 5 on Assembled Intel core2 duo

The installation of RHEL4 update 5 hangs during installation process while trying to probe devices. To get out of this problem while installation use the following command line:
linux pci=nommconf all-generic-ide
or
linux pci=conf1 all-generic-ide

Once the installation is complete do not forget to modify grub.conf, else it wont boot up.
Modify grub.conf file to pass "pci=nommconf" as additional parameter to kernel.
Example:

title Red Hat Enterprise Linux ES (2.6.9-55.ELsmp)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-55.ELsmp ro root=LABEL=/1 rhgb quiet pci=nommconf
initrd /boot/initrd-2.6.9-55.ELsmp.img

Thursday, May 31, 2007

Forum Nokia Reaches Out To Universities

Forum Nokia for Universities is a new section on the Forum Nokia public Web site designed to provide support and information for university faculty and students who are developing mobile applications on Nokia platforms. This new area of the Forum Nokia site includes educational materials, development tools, certification programs, discussions, and news.
This will greatly influence and bring innovative applications on mobile platforms which are getting powerful day by day.