Thalif's Blog – A blog to share my knowledge

My other blog:

2012 in review

The stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

600 people reached the top of Mt. Everest in 2012. This blog got about 4,400 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 7 years to get that many views.

Click here to see the complete report.

Python script to split bulk vcard file to individual vcard files.

I have brought a new low end mobile GT-E1232B from Samsung. I wanted to export all the contacts from my LG android phone. Samsung mobile accepts vcard but, each contact should be in a separate vcard file. Sending the one by one from Android is a boring task and also the build import of vcard dint work in Samsung mobile.  So I decided to write a small python script to split the bulk vcard into small separate vcards for each contact in my pc and copy them to SD card an import them in Samsung mobile. I am sharing this script so it might be useful for some one.

#!/usr/bin/env python
outputBase = 'output' # output.1.txt, output.2.txt, etc.
inputfile = 'contact_2012_6_6_8_45.vcf'
input = open(inputfile, 'r').read().split('\n')
count = 1
for line in input:
 output = open(outputBase + str(count) + '.vcf', 'aw')
 if line.startswith("END:VCARD"):
 print str(count) + " VCARD Splitted"
 count += 1

2011 in review

The stats helper monkeys prepared a 2011 annual report for this blog.

Here’s an excerpt:

A San Francisco cable car holds 60 people. This blog was viewed about 3,000 times in 2011. If it were a cable car, it would take about 50 trips to carry that many people.

Click here to see the complete report.

A Test blog written using scribefire

A Test blog written using scribefire

* opkg_conf_init: Could not lock /usr/lib/opkg/lock: Permission denied.

I had the following issue when running a boot time optimized kernel

# opkg-cl configure
Collected errors:
* opkg_conf_init: Could not lock /usr/lib/opkg/lock: Permission denied. /tmp/lock #

Then after debuging I found that I have disable CONFIG_FILE_LOCKING. After enabling this It worked fine.

-> File systems
[*] Enable POSIX file locking API

How to install Chandler on Ubuntu 10.10 Meerkat

How to install Chandler on Ubuntu 10.10 Meerkat

Steps for Installing chandler on Ubuntu 10.10.

sudo apt-add-repository ppa:owenmorris/ppa
sudo apt-get update
sudo apt-get install chandler

Chandler is an open source Note-to-Self Organizer.

Chandler is an open source Note-to-Self Organizer. It features calendaring, task and note management and consists of a desktop application, web application and a free sharing and back-up service called Chandler Hub.


According the Chandler project website.

Our goal is to serve the way people actually work, independently and together, particularly in small groups, a market segment we believe is undeserved. Our belief is that personal and collaborative information work is by nature iterative and that the existing binary Done/Not-Done, Read/Unread, Flagged/Unflagged paradigm in productivity software poorly accommodates the reality of how people work.

We are also committed to breaking down technological barriers that prevent effective collaboration. Chandler Desktop and Chandler Server are cross-platform and standards-based because we realize that collaboration can’t and shouldn’t be trapped within a single system. Chandler Server provides web access to shared information that makes it easy for collaborators to hook into Chandler work flows without having to download the Desktop application.

Maqetta – an open source WYSIWYG visual authoring of HTML5 user interfaces.

Visual authoring of HTML5 user interfaces – in the browser!

Maqetta is an open source project that provides WYSIWYG visual authoring of HTML5 user interfaces. The Maqetta application itself is authored in HTML, and therefore runs in the browser without requiring additional plugins or downloads.


WaveMaker – WYSIWYG development studio for developing Java applications.

WaveMaker is a rapid application development environment for building, maintaining and modernizing business-critical Web 2.0 applications.

1. WaveMaker eliminates Java coding for building Web 2.0 applications, allowing developers to focus on solving business problems.
2. WaveMaker’s visual, WYSIWYG development studio was built using WaveMaker!


How to turn off specific optimization flags in gcc

How to turn off specific optimization flags in gcc

For example I want to compile with optimization -Os, but -Os optimization turns on -ftree-dce. How do I turn it off -ftree-dce alone?

There is usually an equivalent ‘no’ flag. For example, -ftree-dce can be turned off by -fnotree-dce. Check the gcc docs for more flags.


Get every new post delivered to your Inbox.