2011 in review

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

Here’s an excerpt:

The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 21,000 times in 2011. If it were a concert at Sydney Opera House, it would take about 8 sold-out performances for that many people to see it.

Click here to see the complete report.

Diffrence between MIPS and DMIPS

MIPS is architecture dependent, DMIPs supposed to be architecture independent.

MIPS isn’t generally considered a useful measure of performance – it’s typically quoted based on choosing the fastest (likely one of the least capable) instructions on a machine, with no regard to the capabilities of that machine.

Consider, if I built a machine that could only execute NOP, but could execute 200 million NOPs a second, it would be a 200 MIPS machine, however, if I built an entire fully feature CPU that could execute only 100 million NOPs per second (and NOP was the fastest instruction) but could also execute loads, stores, adds, multiplies etc. etc., it would be a 100 MIPS machine – however, the NOP-only machine appears (using the MIPS measure) to be twice as “good” despite being useless.

DMIPS is based on the time taken to execute a particular benchmark, something which might be considered representative of a real workload, namely Dhrystone. The DMIPS figure for a given machine is the relative speed a VAX 11/780 (a particular “1 MIPS” machine) would have to run at to complete the benchmark in the same amount of time as the machine being measured. For example, if a 100MHz CPU completes the benchmark 200 times faster than the VAX 11/780 does, then it would be considered a 200 DMIPS machine. For CPUs that can be run at various frequencies, then you’ll often see this value reported divided through by MHz, e.g. 2 DMIPS/MHz

Both are utterly useless when you want to determine whether a special device will provide enough performance to execute a given task. to be fair though, MIPS are even a little bit more useless than DMIPs.

Use a small program that represents an important part of your task and execute that one on an evaluation board. That’s the way to go.

How to create a custom GUI Server for QT applications

In a desktop PC, running a QT application is straight forward, just compile the application then execute it. So you will not notice the behind the scene tasks done.

To run Qt Linux applications, we must first start one process to act as a GUI server. Most of the Linux distributions run X11 as the default GUI server. X11 runs in the background. Once the X11 is started it takes care of framebuffer (the memory area associated with the video display) and becomes a server. The server is responsible for allocating screen regions to clients and for generating mouse and keyboard events.

When you launch a GUI application (client), the client applications communicate with the GUI server using shared memory and Unix pipes. The clients draw themselves into the Linux framebuffer and are responsible for painting their own window decorations, etc.

Read the rest of this entry »

Videos and slides Embedded Linux Conference Europe 2011

Videos and slides of the Embedded Linux Conference 2011 Europe that took place one week ago in Prague:

http://free-electrons.com/blog/elce-2011-videos/

Thanks to the free-electrons.com for making this available to the world.

How to install Sun Java JDK in CentOS 6, OpenSUSE and Debian/Ubuntu

Some times some application needs only Sun Java, It will refuce to work in other version (eg. OpenJDK).

CentOS, Debian/Ubuntu method

But by default OpenJDK based java was installed in my system.

[root@server2 sandbox]# java -version
java version “1.6.0_17″
OpenJDK Runtime Environment (IcedTea6 1.7.9) (rhel-1.36.b17.el6_0-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

Read the rest of this entry »

Changing the default runlevel of CentOS 6.

Changing the default runlevel of CentOS 6.

Open /etc/inittab in the editor (I use vim).

su -c ‘vim -w /etc/inittab’

You will see line similar to the below on

id:5:initdefault:

You simply change the “5″ to the runlevel you desire. 
Since my machine is a server I changed it to “3″
Save the file and exit.

Evolution of Computer Languages

Rackspace recently published a nice infographic on the evolution of programming languages. It starts with FORTRAN and COBOL and runs through Ruby on Rails (which, yes, is a framework and not a language).

Unfortunately, it omits such influential languages as Lisp, ALGOL 60 and Smalltalk. But including every important language ever would make for a pretty long infographic.

http://www.rackspace.com/cloud/blog/2011/05/17/infographic-evolution-of-computer-languages/

Safe mode in Android

There may be a situations when Android’s safe mode may come in handy. Generally, whenever an app gives you trouble and you can’t uninstall it for whatever reason, or if your phone goes into Force close Loop(refer by previous blog), you can try starting your phone in safe mode and fix the problem.

Safe mode in Android is something equivalent to Safe mode in Widows OS. In this mode the installed application and services will not start by default. The device will be booted into default mode, so you can uninstall the bugy software that causes the issue.

Since I am using LG Optimus One P500, The instruction to enter safe mode as per the user manual is below. Refer your mobiles user manual for how to enter into safe mode.

1. Turn off your phone

2. Turn on your phone. Press and hold the menu key during Android Logo is displayed

3. Your phone will boot all the way in to main screen and dispaly “Safe mode” in lower left corner.

To turn off safe mode, simply reboot your device.

Posted in Uncategorized. 2 Comments »

Force Close Loop in Android OS

Then what is a “Force Close Loop ”, exactly? The term is generally used to describe when an app is involuntary closed by the system, then it’s automatically launched again, and then closed, and this goes on and on. Since you can’t access any of Android’s menus while your phone is in a force close loop, there’s no obvious way to kill it.

Usualy this can be due to buggy application that you have installed recently.

Choosing the default Java to use in Ubuntu

Choosing the default Java to use

If your system has more than one version of Java, type the following command in a terminal window:

sudo update-alternatives –config java

Choose the version that you want to use.

Follow

Get every new post delivered to your Inbox.