Saturday, May 30, 2009

My new place

I have stopped updating here. Visit me at my new favorite corner: quranclub

Monday, May 18, 2009

Difference between str and repr in Python

str converts the data to a reasonable looking format, in other words it translates the data. While repr just takes a picture of the data and draws it again in string format, thus not changing its look. Both of them convert values to strings, str changes the look of the value, while repr keeps its looks.

Thursday, April 9, 2009

Solution for Active Desktop Recovery popping up after every restart [Windows XP]

Go to this registry key: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\SafeMode\Components

Change the value of DeskHtmlVersion to zero.

Tuesday, March 31, 2009

Solution for blogger template's "undefined" date

Some templates, especially those imported from wordpress, show the dates in new cool ways which don't always work for blogger.

To solve this, change the Timestamp format in the Settings-->Formatting tab. Changing it to the 4th one solved my problem.

Thursday, March 19, 2009

Thinking about IBM's Roadrunner, comparing it to mine

How much time would it take for a supercomputer to break one of your passwords if you used AES-256? Encrypted RAR files and a lot of secure internet websites use it.

My computer which is an intel Core2 Duo E8400 can try 240 passwords per second.

I used Sandra to see how many flops my computer did, it ranged at above 25-30 GFlops. IBM's Roadrunner does 1,105,000 GFLOPs.

Which means it is equal to around 40,000 units of my pc.

Using this neat online tool I found that a 7 character password (upper and lowercase and digits) would stand a 5 day brute force attack by Roadrunner maximum.

8 characters would stand 9 months.

9 characters 44 years.

10 chars 2.6 thousand years.

15 chars 2.4 trillion years. So if you use a 15 character password (uppercase, lowercase and digits) you are pretty safe until they invent functional quantum computers.

The danger is here: If you use a normal 7 character password made of lowercase letters, the Roadrunner will crack it in less than 14 minutes.

The numbers are not accurate at all. They change with the size of the file, and different types of bandwidths inside the computer(s) (and between the processors in the supercomputer) come into play.

=============
Update:
I found out that the size of the file is extremely important in cracking it. My computer was able to run 16 thousand passwords per second with a sub kilobyte file.

Wednesday, March 11, 2009

Cure for self image issues, the piggy way

A pig contemplated his image in the
water of a pond. He found he looked so
ugly that he started to cry, and his
tears soon obscured his image. Then he
heard a voice from above:

"No creature is more beautiful than
you are, pig," it said.

"That's not true!" cried the pig. "I
am even uglier than a toad!"

"But there's nothing more beautiful
than a toad," the voice replied.

"You see! You're contradicting
yourself! A toad and I can't both be
the most beautiful of creatures at the
same time."

"All my creatures are most beautiful
to my eyes, and all at the same time,"
the voice said.

It was then that the pig understood
he was talking to God. He looked again
at his reflection in the water, and
this time his heart felt light and
there was a smile on his face.

Sunday, March 8, 2009

Download The Little Prince by Saint Exupery for free

Here you go:
http://wikilivres.info/wiki/The_Little_Prince