Archive for January, 2008

Protected: 1D Cellular Automata in C#

This post is password protected. To view it please enter your password below:


Python, Programming Lang. of 2007

LogoI just came across to TIOBI.com and I found that they declare python as programming language of 2007. As I noted from the website that, the TIOBE Programming Community index gives an indication of the popularity of programming languages. The index is updated once a month. The ratings are based on the world-wide availability of skilled engineers, courses and third party vendors. The popular search engines Google, MSN, Yahoo!, and YouTube are used to calculate the ratings. Observe that the TIOBE index is not about the best programming language or the language in which most lines of code have been written.

Some of Python’s features that make it a reasonable candidate for the popularity:

  • Free availability (Python is open source).
  • Stability (Python is even older than Java).
  • Good support for objects, modules, and other re-usability mechanisms.
  • Easy integration with and extensibility using C and Java.

The index can be used to check whether your programming skills are still up to date or to make a strategic decision about what programming language should be adopted when starting to build a new software system.

Feed The Hungry

Free RiceIt is an ordinary idea, to play words and take advantages of learning more vocabularies. But, to play the words, learn more vocabularies and help the hungry in the same time is an extraordinary thing that you can try doing that on FreeRice.com.

Basically, FreeRice is a computer game that measure how good or how bad ourselves in vocabularies (I found myself really bad though :p). For each word that we got it right from playing it will be donated as 20 grains of rice through the United Nation to help the world hunger.

How does it works? All we need to do is to get the synonym of a word that pops up on the main page in the website. If we choose a right answer the next word will become harder. And if we choose a wrong answer, it will take us down to the easier word. Since October 7, 2007, as many as 178,177,340 grains of rice has been donated. Sounds great, so if you really curious of how bad your vocabularies are, start playing and help the hungry while you’re at it. Let’s make a poverty history!

Basic Binary Application in C#

I just want to share a small and basic application to do text to binary conversion. Like I do, sometimes I feel I really want to make a greeting really in different way that people may do that by putting plain words or messages in their greeting. But now, you can actually create a totally different way of doing a greeting, that is by using binary string. Alright, you may say what the hell is that?, why am I doing that for?, how will people understand the words in binary? It’s all up to you. Well, for me, I don’t really care what people will think about my messages that are written in binary strings. As long as I can get what I want. That is more than just enough.

So, here we go. Basically, the way converting text to binary and back, is very simple. I use MS Visual Studio .NET 2005 / Framework v2.0. It converts each letter on a text into ASCII decimal and then breaks it into 8 bit binary strings.

public string stringToBinary(string sData)
        {
            int bit = 8;
            byte[] bData = Encoding.UTF8.GetBytes(sData);
            string binData = "";
            foreach (byte b in bData)
            {
                string sBinary = Convert.ToString(GetBase(2, b));
                if (sBinary.Length < bit)
                    sBinary = sBinary.PadLeft(bit, Convert.ToChar("0"));
                binData = binData + sBinary;
            }
            return binData;
        }

That snippet shows you how to do the text to binary conversion. Anyway, you can just download, run and modify it as you want. Now, I am going to do the reverse conversion.
Continue reading ‘Basic Binary Application in C#’

Hi Folks!

After floating around a bit a while to find a better place to sit my bump on. Finally, found it! It is kinda cool place to put my brain on rest after mucking around with fuzzy stuff back there in the lab during the day. Well, welcome for you all, the world wide strangers, here to my sloppy blog. Let’s share and innovate.

Cheers.




IKIBLOGKU is Digg proof thanks to caching by WP Super Cache!