Linux gets frozen, what do you do?

Somehow, you crashed your Linux. It’s completely frozen. You try pressing Ctrl + Alt + Backspace, but doesn’t help.

What to do? Someone would press the power button and restart or shut down the system. You shouldn’t do this. This can make you a lot of problems.


What you can do, is to perform a gentle Linux restart.  This is much safer way to restart your frozen Linux.  To do this, you need to press:

Ctrl + Alt + PrtSc (SysRq) + reisub

Just to make it clear. You need to press and hold Ctrl, Alt and PrtSc(SysRq) buttons, and while holding them, you need to press r, e, i, s, u, b

This will restart your Linux safely.

It’s possible that you’ll have problem to reach all the buttons you need to press. I’ve seen people type reisub with their nose :)

So, here’s my suggestion: With your smallest finger on the left hand, press Ctrl. With your thumb on left hand, press Alt. With the smallest finger on your right hand press PrtSc(SysRq) button. This way, you’ll be able to access to reisub buttons with your other fingers.

Okay, but what this REISUB means? 

  • R: Switch the keyboard from raw mode to XLATE mode
  • E: Send the SIGTERM signal to all processes except init
  • I: Send the SIGKILL signal to all processes except init
  • S: Sync all mounted filesystems
  • U: Remount all mounted filesystems in read-only mode
  • B: Immediately reboot the system, without unmounting partitions or syncing

You can find the complete list here. There you can see that shuts down the system. So, if you want to turn off your PC when your Linux crash, you can use this combination:

Ctrl + Alt + PrtSc (SysRq) + reisuo

If you liked the post, we should get connected - follow me on Twitter

The Success of Introverts vs. Extroverts

New research from Adam Grant, the youngest tenured professor at the University of Pennsylvania’s Wharton School of Management, is really intriguing. In his study, Grant collected data from sales representatives at a software company. He began by giving reps an often-used personality assessment that measures introversion and extroversion on a 1-to-7 scale, with 1 being most introverted and 7 being most extroverted.


Then he tracked their performance over the next three months.
The introverts fared worst; they earned average revenue of $120 per hour.
The extroverts performed slightly better, pulling in $125 per hour. But neither did nearly as well as a third group: the ambiverts.
In Grant’s study, ambiverts earned average hourly revenues of $155, beating extroverts by a healthy 24 percent.

Who are Ambiverts?

Ambiverts, a term coined by social scientists in the 1920s, are people who are neither extremely introverted nor extremely extroverted. Think back to that 1-to-7 scale that Grant used. Ambiverts aren’t 1s or 2s, but they’re not 6s or 7s either. They’re 3s, 4s and 5s. They’re not quiet, but they’re not loud. They know how to assert themselves, but they’re not pushy.


If you liked the post, we should get connected - follow me on Twitter

Grabbing HTTP headers with Python [ 7 lines of code ]

As I mentioned in one of my previous post, I started with learning Python.

Here is one of the first scripts I wrote. It grabs the HTTP Response header. Great thing is that it’s possible to do this with only 7 lines of code.

Script code:

import urllib2
import sys
url = raw_input("Full url:")
header = urllib2.urlopen(url).info()

Example usage:

$>Full url:

As a result, you should get something like:

Date: Wed, 13 Mar 2013 12:35:43 GMT
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimi
X-Powered-By: PHP/5.2.9
Vary: Accept-Encoding,Cookie
Cache-Control: max-age=3, must-revalidate
WP-Super-Cache: Served supercache file from PHP
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

If you liked the post, we should get connected - follow me on Twitter

The story you should always keep in mind

The story

One farmer whose corn always received first prize at the local fair, used to share the best seed with all the villagers around.
When asked why, he said: It’s just a matter of interest. Wind carries pollen from one field to another. If my neighbors would grow low-quality corn, cross-pollination would reduce the quality of my corn. That’s why I always share with others the best seed I have.

The conclusion

Everything we give to others, we give to ourselves.
It is impossible to help others, and not helping ourselves in the same time.
It is also impossible to do harm to others while not doing harm to ourselves.

If you liked the post, we should get connected - follow me on Twitter

How Business Works

How business works – 3 steps

Step 1

Dad: I want you to marry a girl of my choice.
Son: No!
Dad: The girl is Bill Gates’ daughter.
Son: Then ok!

Step 2 – Dad goes to Bill Gates

Dad: I want your daughter to marry my son.
Bill Gates: No!
Dad: My son is the CEO of the World Bank.
Bill Gates: Then ok!

Step 3 – Dad goes to the President of the World Bank

Dad: Appoint my son as the CEO of your bank.
President: No!
Dad: He is the son-in-law of Bill Gates.
President: Then ok!

If you liked the post, we should get connected - follow me on Twitter