Blog

Tags:  •    •    •    •    •  

Google dont't like indexing a duplicated content. Have you got more domains that point to the same content? Is your site available at www and non-www version of the domain? (example: www.bitprison.net and bitprison.net point to same content) More domain point to my blog: bitprison.com, bitprison.net, bitprison.org and bitprison.hu. I need a solution for avoid duplicated content. I've chosen 301 redirection that google recommends for webmaters in case of duplicated content. It may help Google to determine PageRank for your site more accurately.

Now I'm sharing with you two ways of redirection.

Tags:  •    •    •  

Here is a simple UTF-8 mail sender function. This function also encode subject and plain-text message to UTF-8. If you need HTML mail sender, change the code in line 4 from text/plain to text/html, but this function is usable the most cases without any modification. I've used this function for webform and other web based mail notification.

Tags:  •    •  

Ubuntu 7.10 (Gutsy Gibbon) released on the 18th of October 2007. I've upgraded from Ubuntu 7.04 to 7.10.

How to upgrade your Ubuntu Linux?

Before you start

  • You can only directly upgrade to Ubuntu 7.10 ("Gutsy Gibbon") from Ubuntu 7.04 ("Feisty Fawn") (see UpgradeNotes).
  • Be sure that you have all updates applied to Ubuntu 7.04 before you upgrade (see below).
  • Before upgrading it is recommended that you read the release notes for Ubuntu 7.10, which document caveats and workarounds for known issues in this version.

Network upgrade for Ubuntu desktops (Gnome)

You can easily upgrade over the network with the following procedure on Gnome:

Tags:  •    •    •    •  

I found an interest math problem Bertrand's paradox. This problem was originally posed by Joseph Bertrand in his work.

The Problem

Determine the probability that a random chord of a circle of unit radius has a length greater than the square root of 3, the side of an inscribed equilateral triangle.

Experiment simulation

I've modeled this problem with 3 java classes (Circle, Point, Main). The Main class does the experiment with other 2 classes. The main problem in this paradox is the random chord definition. What do we mean under random chord? I try to implement the problem in the way that I select both chords of circle object randomly.