<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RaKasUniverse.info</title>
	<atom:link href="http://rakasuniverse.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://rakasuniverse.info</link>
	<description>I still don&#039;t know why I registered this domain!</description>
	<lastBuildDate>Sat, 19 May 2012 03:50:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>

   <image>
    <title>RaKasUniverse.info</title>
    <url>http://0.gravatar.com/avatar/79e2c4dfc399bc35fa826c5c7b57bee6.png?s=48</url>
    <link>http://rakasuniverse.info</link>
   </image>
		<item>
		<title>Creating Indexed Properties in C#</title>
		<link>http://rakasuniverse.info/2012/05/11/creating-indexed-properties-in-c/</link>
		<comments>http://rakasuniverse.info/2012/05/11/creating-indexed-properties-in-c/#comments</comments>
		<pubDate>Fri, 11 May 2012 04:06:39 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[.Net Stuff]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[C-Sharp]]></category>
		<category><![CDATA[CS]]></category>
		<category><![CDATA[Indexed Property]]></category>
		<category><![CDATA[IndexedProperty]]></category>
		<category><![CDATA[Indexer]]></category>
		<category><![CDATA[Property]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1569</guid>
		<description><![CDATA[Indexers is a neat little feature that is available for objects in C#.  But it would have been even neater same support was there for properties as well. But all is not lost because if you spend little time getting your hands dirty you can actually implement indexed properties. All you got to do is [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Indexers is a neat little feature that is available for objects in C#.  But it would have been even neater same support was there for properties as well. But all is not lost because if you spend little time getting your hands dirty you can actually implement indexed properties. All you got to do is to have your property read only and make sure it return an object which has an indexer. But if you get your hands little more dirty you can implement a generic helper for creating indexed properties.</p>
<p style="text-align: justify;">Here we go&#8230;</p>
<p style="text-align: justify;"><span id="more-1569"></span></p>
<p style="text-align: justify;"><strong>IndexedProperty Helper Class</strong></p>
<p style="text-align: justify;">As a I said earlier the indexed property simply return an object of a class which has an indexer. And the implementation of the indexer should delegate the getter and setter calls back to the original object which own the property. Here is a sample implementation for the indexer object. I have used generics to make the implementation independent from data type of the property and the data type of index key.</p>
<p>&nbsp;</p>
<pre class="code/c#">    //This is the class for indexed property
    //this class simply has an indexer
    //and the indexer will delegate the setter and getter calls
    //back to parent object using two delegates
    //Generics are used to avoid having to hard code the indexer key and value types
    class IndexedProperty&lt;IK,IV&gt;
    {
        //These two delegates are used to delegate the get and set calls
        public delegate IV GetterDelegate&lt;IKD, IVD&gt;(IKD key);
        public delegate void SetterDelegate&lt;IKD, IVD&gt;(IKD key, IVD value);

        //Following variables will stor the actual delegate references
        GetterDelegate&lt;IK, IV&gt; getter;
        SetterDelegate&lt;IK, IV&gt; setter;

        //Constructor
        //When creating the object you need to provide the referances to getter and setter methods
        //which will be called ultimately when the indexer is used
        public IndexedProperty(GetterDelegate&lt;IK, IV&gt; getMethod, SetterDelegate&lt;IK, IV&gt; setMethod)
        {
            this.getter = getMethod;
            this.setter = setMethod;
        }

        //The indexer
        //Nothing much here
        //Just pass the call to the relevant gelegate
        public IV this[IK index]
        {
            get
            {
                return getter(index);
            }
            set
            {
                setter(index,value);
            }
        }
    }</pre>
<p style="text-align: justify;">In the above code as you can see there is no much magic. The main part of the code is in the indexer implemented in line 28. It just call the relevant delegate. Two delegates are initialized at the constructor using the parameters passed by the creator. Therefore its the creator who is responsible for actually setting and getting the value of whatever the indexed content.</p>
<p style="text-align: justify;"><strong>Using IndexedProperty Helper Class</strong></p>
<p style="text-align: justify;">Following code demonstrates how the above class is used. The given example is a very theoretical one and it could have been done using collection classes in .Net framework. But it is implemented using IndexedProperty class just to demonstrate how it is used. Following implementation is just a map which stores key/value pairs of string data. But in a real scenario you will use this in cases where data is not directly stored in an indexed collection (in that case you can directly make use of the indexer of that collection) but the data is accessed in an indexed manner.</p>
<p style="text-align: justify;">In the following code the indexed property (named Item) is simply a property of type IndexedProperty. They IndexedProperty  instance that we return is initialized with the delegates to get_value and set_value methods which does the actual work.</p>
<pre class="code/c#">    //This is just an example of how to use the IndexedProperty Class
    //In this case I have implemented an structure similer to a Perl Hash
    class ClassWithIndexedProperty
    {
        //This is the variable in which we keep the data
        //een numbered elements will contail the keys while
        //odd numbered elements contaim values
        string[] indexedData = new string[100];

        //The object for indexer property
        //in this example both key and value are of type string
        IndexedProperty&lt;string, string&gt; CharIndexer;

        public ClassWithIndexedProperty()
        {

        }

        //This is the method for setter
        private void set_value(string index, string value)
        {
            int nullIndex = -1;
            for (int i = 0; i &lt; indexedData.Length; i += 2)
            {
                if (indexedData[i] == null &amp;&amp; nullIndex &lt; 0)
                    nullIndex = i;
                if (indexedData[i] == index)
                {
                    indexedData[i + 1] = value;
                    return;
                }
            }
            if (nullIndex &gt;= 0)
            {
                indexedData[nullIndex] = index;
                indexedData[nullIndex + 1] = value;
            }
            else {
                //Throw an Exception
            }
        }

        //This is the method for getter
        private string get_value(string index)
        {
            for (int i = 0; i &lt; indexedData.Length; i += 2)
            {
                if (indexedData[i] == index)
                {
                    return indexedData[i + 1] ;
                }
            }
            return null;
        }

        //Here comes the indexed property
        //Return type is IndexedProperty which implements indexer
        public IndexedProperty&lt;string, string&gt; Item
        {
            get
            {
                //When we access the property for the first time we create the object
                //And in subsequent calls we just need to return it.
                if (CharIndexer == null)
                    CharIndexer = new IndexedProperty&lt;string, string&gt;(get_value, set_value);
                return CharIndexer;
            }
        }
    }</pre>
<p style="text-align: justify;">Even though its 70 lines long, in above example the only part you need to focus here is the actual implementation of the property named &#8220;Item&#8221; in lines 58 to 67. There we simply return an object of IndexedPrperty which is properly initialized with delegates to methods which does actual work.</p>
<p style="text-align: justify;"><strong>Testing</strong></p>
<p style="text-align: justify;">Following is just a simple test program that I wrote to test above code.</p>
<pre class="code/c#">    class Program
    {
        static void Main(string[] args)
        {
            ClassWithIndexedProperty test = new ClassWithIndexedProperty();
            test.Item["A"] = "Apple";
            test.Item["B"] = "Banana";

            Console.WriteLine(test.Item["A"]);
        }
    }</pre>
<p style="text-align: justify;"><strong>To Do&#8230;</strong></p>
<p style="text-align: justify;"><em>Read Only and Write Only Indexed Properties</em></p>
<p style="text-align: justify;">As you can see in the actual indexer in IndexedProperty class it simply pass the call to a delegate. The creator may choose to pass null as one of the delegates to make it read only or write only. Therefore its good to handle the null value inside the indexer and throw a proper exception.</p>
<p style="text-align: justify;"><em>Multi-Dimensional Keys</em></p>
<p style="text-align: justify;">Given IndexedProperty class handle any data type as long as the key is one dimensional. You will need to change some code to support multi-dimensional keys.</p>
<p style="text-align: justify;">Any Suggestions?</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2012/05/11/creating-indexed-properties-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Muscle Power : Renewable Energy Through Exercise</title>
		<link>http://rakasuniverse.info/2012/05/02/muscle-power-renewable-energy-through-exercise/</link>
		<comments>http://rakasuniverse.info/2012/05/02/muscle-power-renewable-energy-through-exercise/#comments</comments>
		<pubDate>Wed, 02 May 2012 12:41:05 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Go Green]]></category>
		<category><![CDATA[Exercise]]></category>
		<category><![CDATA[Renewable Energy]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1883</guid>
		<description><![CDATA[Have you had those annoying times when you just cant get some stupid idea out of your head no matter how hard you try.  This thing start circling inside my head every time I see those advertisements on TV which sells gym equipment. And the promise is that you can lose a huge belly in no time. You just [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Have you had those annoying times when you just cant get some stupid idea out of your head no matter how hard you try.  This thing start circling inside my head every time I see those advertisements on TV which sells gym equipment. And the promise is that you can lose a huge belly in no time. You just have to spend less than 10 mins a day and no need to change your lifestyle. But still every thing I read about fat burning keep saying that you at-least need to workout 30 mins to start burning fat.</p>
<p style="text-align: justify;">Anyway, this is not about loosing fat. This is just an idea which keep missing with my head. Over the years I have realized when there is something you just cant get out of your head (Ex:- Stuff you got to do at office on Monday but it&#8217;s still Friday night) it helps to write it down on something. Once you write it down, for some reason your mind stop worrying about it. At-least it works for me.</p>
<p style="text-align: justify;">Ok. here it goes&#8230;</p>
<p style="text-align: justify;"><span id="more-1883"></span></p>
<p style="text-align: justify;">Most gym equipment make us do something against resistance. Sometimes the resistance is the Gravitational effect on our own body. Sometimes it is moving something against gravity. Sometimes it is just pulling on a spring or working against friction. Either way we are trying to move something that do  not want to move. And the energy we produce by burning our fat is just wasted. Why can&#8217;t we use some form of regenerative brakes as the resistance. Any equipment which use circular motion can easily be used to turn a dynamo. Also any linear motion can be converted to circular motion&#8230;. Also if the resistance given by a dynamo is not enough we can use other forms of transformation of energy. And finally we will be able to do something useful with those extra inches.</p>
<p style="text-align: justify;">Anyway it turned out that some one has already tried it. <a href="http://spectrum.ieee.org/green-tech/conservation/these-exercise-machines-turn-your-sweat-into-electricity">here it is</a>. Apparently a human being cant produce much energy through exercise to make this economically viable. But it is quite cool.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2012/05/02/muscle-power-renewable-energy-through-exercise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From Nokia E75 to Sony Ericsson Xperia Neo</title>
		<link>http://rakasuniverse.info/2012/03/22/from-nokia-e75-to-sony-ericsson-xperia-neo/</link>
		<comments>http://rakasuniverse.info/2012/03/22/from-nokia-e75-to-sony-ericsson-xperia-neo/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 18:25:35 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Me, Myself & I]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Camera Phone]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[Nokia 3310]]></category>
		<category><![CDATA[Nokia E71]]></category>
		<category><![CDATA[Nokia E75]]></category>
		<category><![CDATA[QWERTY]]></category>
		<category><![CDATA[Red]]></category>
		<category><![CDATA[Smart Phone]]></category>
		<category><![CDATA[Sony]]></category>
		<category><![CDATA[Sony Ericsson]]></category>
		<category><![CDATA[Sony Ericsson Xperia Neo]]></category>
		<category><![CDATA[Sony Ericsson Xperia Neo V]]></category>
		<category><![CDATA[Xperia Mini Pro]]></category>
		<category><![CDATA[Xperia Neo]]></category>
		<category><![CDATA[Xperia Pro]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1872</guid>
		<description><![CDATA[&#160; Until recently my wife was using a Nokia E75. Which is a fine phone when it comes to the specs and the looks but if you drop it, its going to be a few thousand rupees worth of repair. A small drop can break some part of the housing, screen, and ribbon cable. Just to [...]]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://www.youtube.com/embed/t0sDyEqDRW0" frameborder="0" width="560" height="315"></iframe></p>
<p>&nbsp;</p>
<p style="text-align: justify;">Until recently my wife was using a Nokia E75. Which is a fine phone when it comes to the specs and the looks but if you drop it, its going to be a few thousand rupees worth of repair. A small drop can break some part of the housing, screen, and ribbon cable. Just to give you the picture of the costs the housing repairs will cost you 3k or above and the screen will cost about 11k if you insist on original parts. E75 is just not a solid build.</p>
<p style="text-align: justify;"><span id="more-1872"></span></p>
<p style="text-align: justify;">After breaking the screen for the second time we decided to get a new phone. But there were few problems. My wife was still quite attached to her E75. So we needed something which gives a similar feel but beats E75 to win her heart.</p>
<p style="text-align: justify;">Nokia is almost out of the mobile phone market. And they did not ship anything impressive recently. Therefore it&#8217;s not going to be a Nokia. Selecting a phone has shifted from selecting a brand to selecting a platform. Therefore it&#8217;s going to be either Apple or Android. We both are not big fans of Apple. Therefore it&#8217;s not going to be Apple or any other company that try to copy Apple iPhone looks. Seriously how hard is it to come up with a creative original look. Even apple has not made much progress when it comes to looks after its first release. By the way. It has to be RED in color. What can I say. She likes red.</p>
<p style="text-align: justify;">After some scouting, finally we settled for a Red Sony Xperia Neo. It&#8217;s a about LKR 3k more expensive than the Neo V but that&#8217;s a price worth paying for a better camera. It has really good specs and excellent external design for its range. And the perfect shade of red. It is also one of the few phone models that comes in red color. But I have few complaints to make.</p>
<p style="text-align: justify;">1. Shape of the back of the phone makes it vulnerable to scratches. But you can avoid it if you buy a back cover. And there are covers in the market which does not take away the beauty of the design.</p>
<p style="text-align: justify;">2. Ports that connect the charger/data cable and HDMI cables are covered with a cover which look really fragile. Sony should have done more thinking on it.</p>
<p style="text-align: justify;">3. Camera has the same problem that many Sony camera users complain about. It just can&#8217;t capture color red right.</p>
<p style="text-align: justify;">4. It came with a 8 GB memory card. But for some reason this phone is the slowest phone I have used when it comes to transferring files between PC and phone.</p>
<p style="text-align: justify;">But even with above issues it&#8217;s a great phone. Unfortunately I am still stock with my old E71. For some reason I like full QWERTY key pad. Sony Xperia Mini Pro is too small and the Xperia Pro is little expensive. And unlike the E75, E71 is as solid as a rock. I have dropped it countless times and in one case in to a bucket wet of cement. But after washing its works just fine. So it doesn&#8217;t feel right to replace it.  It reminds me of my old 3310. And it has many battle-scars on its housing to prove it.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2012/03/22/from-nokia-e75-to-sony-ericsson-xperia-neo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protect-IP is For Those Who Cannot Adopt to Internet Age</title>
		<link>http://rakasuniverse.info/2012/01/20/protect-ip-is-for-those-who-cannot-adopt-to-internet-age/</link>
		<comments>http://rakasuniverse.info/2012/01/20/protect-ip-is-for-those-who-cannot-adopt-to-internet-age/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 02:48:36 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Movies]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[TV]]></category>
		<category><![CDATA[Cable TV]]></category>
		<category><![CDATA[CD]]></category>
		<category><![CDATA[DVD]]></category>
		<category><![CDATA[Fight Piracy]]></category>
		<category><![CDATA[Innovation]]></category>
		<category><![CDATA[Intellectual Property]]></category>
		<category><![CDATA[Intellectual Property Rights]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[IP Rights]]></category>
		<category><![CDATA[Media Industry]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Patent]]></category>
		<category><![CDATA[PIPA]]></category>
		<category><![CDATA[Piracy]]></category>
		<category><![CDATA[Piracy vs Availability]]></category>
		<category><![CDATA[SOPA]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1826</guid>
		<description><![CDATA[For those who use Wikipedia, Facebook, Twitter, Google,  SOPA/PIPA is not news any more. I am not going to describe those again as you can find all about its good, bad, and ugliness by just searching for those two horrible acronyms. Piracy is a problem for any industry I am not  trying to defend it. But this [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">For those who use Wikipedia, Facebook, Twitter, Google,  SOPA/PIPA is not news any more. I am not going to describe those again as you can find all about its good, bad, and ugliness by just searching for those two horrible acronyms.</p>
<p style="text-align: justify;">Piracy is a problem for any industry I am not  trying to defend it. But this is not how you fight it. And in my opinion this is not even the fight they should be fighting in the first place.</p>
<p style="text-align: justify;"><strong>Fight Piracy With Availability</strong></p>
<p style="text-align: justify;">IMO piracy is the answer that internet age has found for inaccessibility. Lower the availability you will find piracy <a href="http://techcrunch.com/2011/08/22/delay-on-hulu-availability-more-than-doubles-piracy-of-fox-shows/" target="_blank">spiking</a>. Just think about it. World is not just US,Canada and UK any more. Most of the population is outside those regions and they too have TVs and Internet. If you live outside US/UK/Canada region how long do you have to wait till you can watch the latest Episode of your favorite TV show or a movie legally. Most likely your local cable channels don&#8217;t has it or few seasons behind or you will have to wait till a DVD release. Most people are not that much patient.</p>
<p style="text-align: justify;"><span id="more-1826"></span></p>
<p style="text-align: justify;">What media industry need is a better delivery system. They have to realize that the market is no longer just United States and Canada. It&#8217;s time that they explore fast distribution strategies across the world. May be they should have more cable channels to broadcast their programs in other countries. Or they just have to bypass cable operators and just do it on the internet.</p>
<p style="text-align: justify;">This worked with software and it should work for other media as well. One example is Antivirus software in SL and South Asian region. Few years back only way to get a legal version is to pay the outrages price (in south Asian economies) which is set for US/Canada/UK market. As a result everyone used cracked version. Now there is a separate license for this region at a reduced price. Most of us buy it. Company did not lose money by slashing prices. They just made more. Because those who did not pay to use their product are paying now.</p>
<p style="text-align: justify;">All you need is to innovate in order to meet global market and 21st century technology.</p>
<p style="text-align: justify;"><strong>Understanding Internet Age</strong></p>
<p style="text-align: justify;">Some of the things in these acts which require sites to filter content posted by users, simply show the lack of knowledge about the social dynamics and scale of internet. It is no different from an Indian judge saying that social media must scan for user comments which insult their political &amp; religious figures. Only difference is what you are looking for, and the powers that are given by the act which is worse in US version.</p>
<p style="text-align: justify;"><strong>Old Model Just Don&#8217;t Work</strong></p>
<p style="text-align: justify;">Just look around you. World has changed. Business models that made billions 20 years ago don&#8217;t work today. Ideas that simply did not make any sence 20 years ago are thriving. Just imagine, If someone tell you 20 years ago, that you can create a damn good encyclopedia bu just letting everyone and anyone write it without paying them a dime, what would you say?</p>
<p style="text-align: justify;">Remember music CDs? Unless you are a collector you are not interested in buying the entire album just to listen to only one or two songs in it. Also if you just want to listen, you don&#8217;t want to pay for all the physical material, packaging and distribution costs. It does not make sense any more. If you remember that&#8217;s what apple tapped in to.</p>
<p style="text-align: justify;">If you are a Star Gate fan like me you must have watch the financial horrors of MGM finally killed the TV show and its movies we all loved. They blamed bad DVD sales and ratings for it. Who buys DVDs any more. May be only the collectors. Even the pirated DVD shops are not selling as they used to.</p>
<p style="text-align: justify;">Same goes for those who depend on ratings and advertising money. Seriously does current rating systems really cover how well a show is doing popularity wise. Does the companies even try to turn the popularity outside US/Canada/EU in to money.</p>
<p style="text-align: justify;">My point is, many of the models that are running today are based on pre internet age. World has a come a long way, so should the media industry. Their failure to innovate and reach global markets has not only made them loose opportunities to make money, but has also created a void which create room for piracy. SOPA/PIPA is nothing but attempts to holding on to old ways of doing business disguised in IP protection laws by those who cannot innovate.</p>
<p style="text-align: justify;">oh I forgot, Happy New Year!</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2012/01/20/protect-ip-is-for-those-who-cannot-adopt-to-internet-age/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Navigating through Linkoping with a dead GPS phone</title>
		<link>http://rakasuniverse.info/2011/11/24/navigating-through-linkoping-with-a-dead-gps-phone/</link>
		<comments>http://rakasuniverse.info/2011/11/24/navigating-through-linkoping-with-a-dead-gps-phone/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 08:41:36 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Me, Myself & I]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[Linkoping]]></category>
		<category><![CDATA[Sweden]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1812</guid>
		<description><![CDATA[Well! Yesterday was my 2nd working day in Linkoping with two other guys. When you come from a place like SL, its bit tough to find your way around. All the names of places sounds same. All houses looks same. There are separate roads to drive, walk and ride. Everything is little too systematic (like buses always come on time) :). We [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Well! Yesterday was my 2nd working day in Linkoping with two other guys. When you come from a place like SL, its bit tough to find your way around. All the names of places sounds same. All houses looks same. There are separate roads to drive, walk and ride. Everything is little too systematic (like buses always come on time) :).</p>
<p style="text-align: justify;">We decided to find our way from work place to apartment on foot on our own after work. When we get out of the office it was completely dark and temperature was near zero. We did not have a map with us, but being a long time Google maps user on a GPS enabled phone we were quite confident and did not even bother to ask for directions from anyone.</p>
<p style="text-align: justify;"><span id="more-1812"></span></p>
<p style="text-align: justify;">It was almost impossible to press buttons on mobile with the glows on. To make matters even more complicated, Google decided to make it more interesting. When we searched for walking directions to our destination, Google maps gave directions through major roads on which we are not supposed to walk through or cross. It completely ignored biking and walking paths. We ended up having to look for walking/biking paths parallel to directions given by Google.</p>
<p style="text-align: justify;">Fun part began once we are half way through. It turned out that batteries run out lot faster when exposed to low temperatures. And we found ourself in the middle of no-ware with a dead GPS device at hand. Luckily we figured the general direction we need to walk and finally ended up in a correct neighbourhood.</p>
<p style="text-align: justify;">Never trust google maps when you don&#8217;t have an unlimited power supply <img src='http://rakasuniverse.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: justify;">
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/11/24/navigating-through-linkoping-with-a-dead-gps-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving WordPress &#8211; My Story!</title>
		<link>http://rakasuniverse.info/2011/10/24/moving-wordpress-my-story/</link>
		<comments>http://rakasuniverse.info/2011/10/24/moving-wordpress-my-story/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 13:19:35 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Me, Myself & I]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Backup & Restore]]></category>
		<category><![CDATA[CPannel]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[Domain Change]]></category>
		<category><![CDATA[How to Move Wordpress]]></category>
		<category><![CDATA[Moving]]></category>
		<category><![CDATA[Moving Wordpress]]></category>
		<category><![CDATA[My SQL]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1779</guid>
		<description><![CDATA[Well! this topic is well covered here, and probably repeated all over the web. But I am going to write this post any way. Because my WordPress move went quite well. And here is how it was done. Everything Starts with Taking a Backup A move is as simple as a backup and restore. You back up [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Well! this topic is well covered <a href="http://codex.wordpress.org/Moving_WordPress" target="_blank">here</a>, and probably repeated all over the web. But I am going to write this post any way. Because my WordPress move went quite well. And here is how it was done.</p>
<p style="text-align: justify;"><strong>Everything Starts with Taking a Backup</strong></p>
<p style="text-align: justify;">A move is as simple as a backup and restore. You back up your old host and restore it at your new host. That is all you got to do if your domain name/blog URL is not going to change. Backing up has two steps. You need to back up your database and you also need to back up your files. You don&#8217;t need t back up entire home directory or public_html folder. If you have wp-content folder backed up that&#8217;s good enough. Because that&#8217;s where all your Thames, plugins and uploaded files are stored. If you have access to cpannel this is a very simple task. Otherwise you may need to use one of those plugins which allow you to back up the database  and files.</p>
<p style="text-align: justify;"><span id="more-1779"></span></p>
<p style="text-align: justify;"><strong>Restoring at New Host</strong></p>
<p style="text-align: justify;">When I was moving, I did not want to have entire public_html copied from my old host to new host. Instead I wanted to have a relatively clean setup. Therefore I decided to install a fresh copy of WordPress at the new host. And then copied wp-content of old host in to new host. This worked for me because at my old host, I had an up-to-date WordPress installation. There were no major version mismatches. If you are restoring from an old backup, may be you will need the entire public_html to be restored.</p>
<p style="text-align: justify;">Next step is restoring the database. If you using cpannel, this is as simple as uploading the backup in correct cpannel page. Otherwise you will need to extract the database backup, which will give you a sql file, and run it on your new database host.</p>
<p style="text-align: justify;">After restoring the database at the new host, You need to edit wp-config.php file to point to restored database. There is one more thing you need to do in order make your WordPress work after this change. That is you need to grant your my sql user (one you have in wp-config.php file) the access to newly restored database. This can easily be done on cpannel MySQL databases page.</p>
<p style="text-align: justify;">As long as your blog URL remain same this is all you need to do. We&#8217;ll come to URL change later.</p>
<p style="text-align: justify;"><strong>Pointing the Domain to New Host</strong></p>
<p style="text-align: justify;">This is the tricky part. You need to change the NS records of your domain to point to the name servers of your new host. But this change take some time to take effect. Because name servers all over the world have cached your DNS info. In next 48 hours, some will still connect to your old host using old cached DNS information. Some might still connect to your old name server at the old host to find your IP. To minimise the confusion, make sure to update the DNS records at your old host to point to your new host IP address. You can do this by using DNS Zone Editor on cPannel, the advance one.</p>
<p style="text-align: justify;">But regardless of what you do in next 48 hours, when you visit your site to do any cleanups, you can&#8217;t be sure which version of the site you are looking at. To sort this out, it&#8217;s best to add a new post or make a visible change on your blog at the old host. You have to do this after taking backups, otherwise same change will come to new host through the backup.</p>
<p style="text-align: justify;">Make sure you have both sites up at both locations for next few days until all the caches start pointing to new place.</p>
<p style="text-align: justify;"><strong>Prevent Your old Site Going Zombie</strong></p>
<p style="text-align: justify;">You may also want to disable any plugins at your old host. Specially the once that are responsible for dealing with search engines and others services such as Twitter/Facebook. Otherwise it will keep feeding details of a dead (undead to be exact) site to google and other places. This will have to be done before you change the DNS settings.</p>
<p style="text-align: justify;"><strong>Dealing With URL Change</strong></p>
<p style="text-align: justify;">Well, if your URL going to change as a result of the move, your site at new host will not work after the move. To fix this you need to change two WordPress options in the database.  One way to do this is to log in to PhpMyAdmin, query &#8216;_options&#8217; table, and look for options &#8216;siteurl&#8217; and &#8216;home&#8217;. Both of them need should change to your new URL in order for your blog to work.</p>
<p style="text-align: justify;">Or you can edit wp-login.php file and add following two PHP code to make the change. But make sure to change them back once it did its job.</p>
<pre class="code/php">update_option('siteurl', 'http://your_new_site_url' );
update_option('home', 'http://your_new_site_url' );</pre>
<p style="text-align: justify;">In my case I didn&#8217;t have to do this permanently as it was the same URL. But if you have an alternative URL for your new site, which you can use until your domain change take effect, you can have this changed temporary. But make sure to have your search engine related plugins disabled. Because you don&#8217;t want your unborn site pushing its temporary address to search engines, social networks and what not.</p>
<p style="text-align: justify;"><strong>Never Forget to Plan</strong></p>
<p style="text-align: justify;">Even though this information is available all over the place, don&#8217;t ever make the mistake of failing to plan. Check to see if you have any changes done manually in your old host. Read the <a href="http://codex.wordpress.org/Moving_WordPress" target="_blank">moving instructions on wordpress codex</a>. Check what are the things you need to move to cover all the changes. Test the restore process in your local host in case you haven&#8217;t &#8217;restore-tested&#8217; your backups already.</p>
<p style="text-align: justify;">Finally the disclaimer <img src='http://rakasuniverse.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , I may have not included all aspects of moving, as this post is simply about my moving experience. If you want a smooth transfer don&#8217;t consider this post as a short cut. One more thing, if you are an expert in the moving industry, and find that I have done something wrong while moving this site, please let me know so I can fix it before it&#8217;s too late <img src='http://rakasuniverse.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p style="text-align: justify;">Happy Moving!</p>
<p style="text-align: justify;">/Rakhitha</p>
<p><b>Related Posts:</b><ol>
<li><a href='http://rakasuniverse.info/2010/06/25/moving-from-wordpress-com-to-own-hosting-getting-it-up-and-running/' rel='bookmark' title='Moving from WordPress.com to Own Hosting &#8211; Getting It Up and Running'>Moving from WordPress.com to Own Hosting &#8211; Getting It Up and Running</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/10/24/moving-wordpress-my-story/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Buying Local is Overrated, At least for Web Hosting!</title>
		<link>http://rakasuniverse.info/2011/10/23/buying-local-is-overrated-at-least-for-web-hosting/</link>
		<comments>http://rakasuniverse.info/2011/10/23/buying-local-is-overrated-at-least-for-web-hosting/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 13:33:25 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Sri Lanka]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Customer service]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress.org]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1765</guid>
		<description><![CDATA[When it comes to buying services and complex products I always prefer buying from a local seller. This makes it easy to communicate and handle any matter that might come up when using the product or service that we buy. But in some cases the typical Sri Lankan customer relationship attitude make it a nightmare. This happened way too often with my [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">When it comes to buying services and complex products I always prefer buying from a local seller. This makes it easy to communicate and handle any matter that might come up when using the product or service that we buy. But in some cases the typical Sri Lankan customer relationship attitude make it a nightmare.</p>
<p style="text-align: justify;">This happened way too often with my hosting provider. To be specific the X hosting provider. Not that this blog is some mission critical application, but when ever there is a problem with servers or downtime, a simple proactive mail from the host can save lot of time for customers.  Instead they just make us panic and wonder what is going on. And in most of such incidents it takes ages to get a response from them.</p>
<p style="text-align: justify;"><span id="more-1765"></span></p>
<p style="text-align: justify;">I would not blame it entirely on them because this is typical Sri Lankan attitude. Whenever there is a problem we often keep our heads under the sand hoping that no one will notice. We do not take proactive measures on time and wait till the situation degrade to the point where clients start walking out. Seriously this need to change. Otherwise how are we going to complete with rest of the world.</p>
<p style="text-align: justify;">Just to share with you my experience&#8230; My tiny blog is nothing compared to many sites that are getting the same treatment. I am not going lose anything if my site go offline for even weeks. Only reason I am on own hosting is simply because I love to play around with the code and WordPress.org hosting don&#8217;t let me do this. Also I am not satisfied with the backup facility they give. (Blog export/import is not a backup feature. It does not even work if you blog have more than a few posts). Even with such minor requirements a host that is not reliable enough or not communicating enough about their problems can annoy you to the point where you want to move out. Even when the alternative is as twice as expensive and half the world away.</p>
<p style="text-align: justify;">Also in a time where companies can pop-up and disappear in a blink, its critical to have some fool-proof method to select a host. At least this time, I did some research, read some reviews and tested the response of support before selecting a new host. This actually helped me to avoid number of potential bad apples. But only time can tel if I have landed on a safe ground. On the mean time I&#8217;ll keep taking backups.</p>
<p style="text-align: justify;">By the way next post will be on moving a wordpress blog from host to host. Here is a hint, apart from some trouble with domain transfer everything went easier than I expected. Thank god I took backups.</p>
<p style="text-align: justify;">/Rakhitha</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/10/23/buying-local-is-overrated-at-least-for-web-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nothing Fix a Broken Electronic like a Good Old Bang!</title>
		<link>http://rakasuniverse.info/2011/09/18/nothing-fix-a-broken-electronic-like-a-good-old-bang/</link>
		<comments>http://rakasuniverse.info/2011/09/18/nothing-fix-a-broken-electronic-like-a-good-old-bang/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 05:34:28 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Me, Myself & I]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Bang]]></category>
		<category><![CDATA[Cyber-Shot]]></category>
		<category><![CDATA[Cybershot]]></category>
		<category><![CDATA[DSC-H3]]></category>
		<category><![CDATA[E61:00]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Sony]]></category>
		<category><![CDATA[Sony Cyber-shot DSC-H3]]></category>
		<category><![CDATA[Sony Cyber-shot H3]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1680</guid>
		<description><![CDATA[How to fix E61:00 on youtube. Remember that old TV your parents used to have, which simply refuse to work until you give it few good bangs. Well I thought you don&#8217;t have to do that any more with new 21st century electronics. Well! I was wrong. My Cyber-shot started to give me this error called E61:00. Basically [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><iframe src="http://www.youtube.com/embed/P4JSctmeumE" frameborder="0" width="420" height="315"></iframe></p>
<p style="text-align: center;">How to fix E61:00 on youtube.</p>
<p style="text-align: justify;">Remember that old TV your parents used to have, which simply refuse to work until you give it few good bangs. Well I thought you don&#8217;t have to do that any more with new 21st century electronics. Well! I was wrong.</p>
<p style="text-align: justify;"><a href="http://rakasuniverse.info/2010/03/10/how-not-to-buy-a-camera/" target="_blank">My Cyber-shot</a> started to give me this error called E61:00. Basically when you turn it on it fail to focus, and show a blur image on the LCD with the error code. And the error code means exactly that. It&#8217;s like the focus motor is jammed or something.</p>
<p style="text-align: justify;"><span id="more-1680"></span></p>
<p style="text-align: justify;">In case you have used Sony products, you know it costs a fortune to get them repaired by Sony people. Therefore I went about looking for a solution on the web. All I was looking for was some one saying that this is not a critical failure and fixable without replacing any major part. So that I can happily take it to a service center. But all I could find was, people saying only way to fix it is giving a good bang (<a href="http://www.pechorin.com/m/2006/06/13/SONY_Cybershot_E6100_ERROR-264346-4.html" target="_blank">here</a>, <a href="http://www.camerahacker.com/Forums/DisplayComments.php?file=Digital%20Camera/Sony/E.61.10_error_message_on_DSC-T1" target="_blank">here</a> and pretty much anywhere else). <a href="http://www.fewin.com/sony/sony.htm" target="_blank">This</a> is the best hi-tech solution out there, but it didn&#8217;t work.</p>
<p style="text-align: justify;">I was first bit afraid. I have seen many cameras with jammed/broken lens blocks as a result of dropping. Only way to fix that is to replace lens block, which costs more than a half of the price of the camera. So at first I gave it a good shake and few slaps with my fingers. No luck! Since getting this fixed going to cost a fortune at the support center any way, I gave few good bangs followed by a drop. Guess what, Now the camera works as good as new!</p>
<p>Here is a comment from one user in one of the above links. It pretty much cover what went through my mind.</p>
<div id="342941">
<blockquote><p><em>&#8220;My daughters camera came up with the E 61:00 error and wouldnt self focus. She had been to the beach recently. Anyways, I found this thread and thought, what the heck, so I banged it lightly, took the battery out, opened and closed it, banged it again. nothing&#8230; but then I really banged it hard and viola. It works, not error message and focuses perfect. Can&#8217;t wait for my daughter to wake up and find out I fixed it&#8230;. Pretty scary to think banging this expensive camera is in fact what will fix it&#8230;.&#8221;</em></p></blockquote>
</div>
<p>Another user had this advice to give&#8230;</p>
<blockquote><p><em>&#8220;IT ACTUALLY WORKED!!!!! it took me about ten times worth of banging- i banged it on a book&#8230;now it works perfectly!! DONT GIVE UP if it doesnt work the first few times&#8230;just keep in mind all the money you are saving and keep banging!&#8221;</em> - katie Shrader</p></blockquote>
<p>By the way, if you break your camera trying to do this. Don&#8217;t blame me. That&#8217;s the risk with low tech solutions.</p>
<p>/Rakhitha</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/09/18/nothing-fix-a-broken-electronic-like-a-good-old-bang/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Flickr Thumbnail Photostream WordPress Plugin</title>
		<link>http://rakasuniverse.info/2011/09/12/tweaking-flickr-thumbnail-photostream-wordpress-plugin/</link>
		<comments>http://rakasuniverse.info/2011/09/12/tweaking-flickr-thumbnail-photostream-wordpress-plugin/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 13:10:21 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Flickr Curl Function failed to execute. Oops! there seems to be a problem accessing the Flickr information]]></category>
		<category><![CDATA[Flickr Thumbnail Photostream]]></category>
		<category><![CDATA[Flickr Thumbnail Photostream Bug fix]]></category>
		<category><![CDATA[Flickr WordPress Plugin]]></category>
		<category><![CDATA[flickr-thumbnails-photostream]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[timeout]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1633</guid>
		<description><![CDATA[&#8220;Flickr Thumbnails Photostream&#8221; is one of the neatest plugins available to display a random set of photos from a Flickr stream on your WordPress sidebar. I tried out so many plugins before settling with this one for my blog. It builds a local cache of information about your Flickr stream in your website database. As [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://rakasuniverse.info/2011/09/12/tweaking-flickr-thumbnail-photostream-wordpress-plugin/updatephotosscreenshot/" rel="attachment wp-att-1681"><img class="alignright size-medium wp-image-1681" style="border-width: 0; padding: 10px;" title="Update Photos Screen Shot in Modified Version" src="http://rakasuniverse.info/wp-content/uploads/2011/09/UpdatePhotosScreenShot-300x175.jpg" alt="" width="300" height="175" /></a>&#8220;<a href="http://wordpress.org/extend/plugins/flickr-thumbnails-photostream/" target="_blank">Flickr Thumbnails Photostream</a>&#8221; is one of the neatest plugins available to display a random set of photos from a Flickr stream on your WordPress sidebar. I tried out so many plugins before settling with this one for my blog. It builds a local cache of information about your Flickr stream in your website database. As a result it performs faster.  Cache does not contain a copy of images. And the plugin is very simple and easy to customize. Which was the main selling point for me.</p>
<p style="text-align: justify;">It&#8217;s a wonderful plugin, but it has some issues. Biggest of which is, when trying to update local cache from Flickr, it often times out if your stream has more than 50 images, which is common for many Flickr users.</p>
<p style="text-align: justify;">If you have already used this plugin, you know what I am talking about. &#8220;Flickr Curl Function failed to execute. Oops, there seems to be a problem accessing the Flickr information.&#8221; is not a very helpful error message <img src='http://rakasuniverse.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . However in its <a href="http://community.plus.net/opensource/flickr_thumbnail_wordpress/" target="_blank">community pages</a> there is a partially working solution. With bit of time getting my hands dirty with PHP code. I managed to do a pretty much complete solution for the problem. And here it comes. By the way if you guys don&#8217;t want to mess with PHP or the plugin code of your sites, this is where to stop.</p>
<p style="text-align: justify;"><span id="more-1633"></span></p>
<p style="text-align: justify;"><strong>flickrInclude.php</strong></p>
<p style="text-align: justify;">In this file, I have included two new functions. Nothing complicated. They are just there to format out HTML log messages that are written in to plugin admin page when updating local cache.</p>
<p style="text-align: justify;">Then I also changed getResponseObject function to increase cURL connection timeout to 30 secs, and cURL time out to 6000 secs. This took care of most of the timeout issues.</p>
<p style="text-align: justify;"><strong>flickrScript.php</strong></p>
<p style="text-align: justify;">In this file, I have changed all error messages to use HTML formatting functions I added above. In addition I have added some information messages to make updating process more transparent. With those you will be able to see all the images that are being loaded.</p>
<p style="text-align: justify;">Following the partial solution given on community page,  I modified the code to load photo stream batch at a time instead of all at once. Batch size is hard coded to 25. This should pretty much get rid of  timeout issue. It will also get rid of 500 photos limit. But I have placed an artificial  500 photo limit in the code. Because it may be best to have only the recent 500 photos shown, if you have thousands of photos in your stream.</p>
<p style="text-align: justify;">In case you guys are using this plugin and having problems with above issues, this might be useful. If you want to apply these changes to your blog, some technical knowledge will be required to edit the plugin file to replace them with code I have posted. Also other changes / plugins you may have in your sites might also conflict with these changes. Just Saying <img src='http://rakasuniverse.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p style="text-align: justify;">Here is the code. You can find my specific changes if you search for &#8216;RAKA&#8217; in the code.</p>
<p style="text-align: justify;"><a class="downloadlink" href="http://rakasuniverse.info/wp-content/plugins/download-monitor/download.php?id=1" title="Version1 downloaded 30 times" >flickr-thumbnails-photostream-mod (30)</a></p>
<p style="text-align: justify;">/Rakhitha</p>
<p style="text-align: justify;">
<p style="text-align: justify;"><strong>UPDATE</strong>:</p>
<p style="text-align: justify;">With further use and increasing number of photos in my stream, I discovered number of more problems.</p>
<p style="text-align: justify;">1. This plugin store all it&#8217;s cache in one WordPress option. At one point it simply stopped caching my newly added photos. I checked option table and found that it uses a LONGTEXT column to store option values. Theoretically it can handle up-to 4Gb of data. But the real limit depends on the packet size being used in database connection as well as available memory. So it&#8217;s not that much, and gave me trouble once I have 130 images on this host.</p>
<p style="text-align: justify;">I basically wrote a new update option function for arrays to handle arrays in a slightly different way. If array is longer than a specific number of elements, it will split it in to chunks and each chunk will be stored in a separate option. This will prevent pushing the luck against mysql packet size. This is still bad design. Ideally there should be a separate table for this cache.</p>
<p style="text-align: justify;">2. When there is a large number of photos in the stream, it will result in a large number of calls to Flickr API. You might end-up being temporary blocked from accessing it either by firewalls at the host or  Flickr (Flickr says they don&#8217;t block so it must be firewalls).</p>
<p style="text-align: justify;">To work around this. I wrote a separate script to download the photo cache in to a file in your local machine. And implemented a photo cache upload facility to &#8216;Flickr Control&#8217; page.</p>
<p style="text-align: justify;">Here is the modified plugin. Search for RAKA to find changes&#8230;</p>
<p style="text-align: justify;"><a class="downloadlink" href="http://rakasuniverse.info/wp-content/plugins/download-monitor/download.php?id=2" title="Version1 downloaded 31 times" >flickr-thumbnails-photostream-mod2 (31)</a></p>
<p style="text-align: justify;">Here is the script to download the data from Flickr to hard disk for uploading to the plugin. You will need to edit the script and provide your Flickr API Key and User ID.</p>
<p style="text-align: justify;"><a class="downloadlink" href="http://rakasuniverse.info/wp-content/plugins/download-monitor/download.php?id=3" title="Version1 downloaded 36 times" >download_photo_details Script (36)</a></p>
<p style="text-align: justify;">/Rakhitha</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/09/12/tweaking-flickr-thumbnail-photostream-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Empower Farmers, Without Burdening Government or People!</title>
		<link>http://rakasuniverse.info/2011/09/08/empower-farmers-without-burdening-government-or-people/</link>
		<comments>http://rakasuniverse.info/2011/09/08/empower-farmers-without-burdening-government-or-people/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 12:37:43 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Sri Lanka]]></category>
		<category><![CDATA[Agriculture]]></category>
		<category><![CDATA[Agriculture Industry]]></category>
		<category><![CDATA[Agriculture Innovation]]></category>
		<category><![CDATA[Empower]]></category>
		<category><![CDATA[Empower Farmer]]></category>
		<category><![CDATA[Farmers]]></category>
		<category><![CDATA[Farming]]></category>
		<category><![CDATA[Food Distribution]]></category>
		<category><![CDATA[Food Marketing]]></category>
		<category><![CDATA[Food Processing]]></category>
		<category><![CDATA[Framer]]></category>
		<category><![CDATA[Government]]></category>
		<category><![CDATA[Paddy]]></category>
		<category><![CDATA[Rice]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1599</guid>
		<description><![CDATA[MAHOtrain recently posted two posts on their views on farmers problems and solutions that they propose. This post is an attempt to continue and expand on the discussion they started. But with a slightly different view. Should the farmers problems be governments problem?. Well as far as the politics and votes are concern, yes it should be. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://rakasuniverse.info/2011/09/08/empower-farmers-without-burdening-government-or-people/dsc03289/" rel="attachment wp-att-1743"><img class="alignright size-medium wp-image-1743" style="border: 0; padding: 10px;" title="Paddy Field" src="http://rakasuniverse.info/wp-content/uploads/2011/09/DSC03289-300x225.jpg" alt="" width="300" height="225" /></a>MAHOtrain recently posted two posts on their views on <a href="http://www.mahotrain.com/2011/09/farmers-problem.html" target="_blank">farmers problems</a> and <a href="http://www.mahotrain.com/2011/09/solutions-to-farmers-problem.html" target="_blank">solutions that they propose</a>. This post is an attempt to continue and expand on the discussion they started. But with a slightly different view.</p>
<p style="text-align: justify;">Should the farmers problems be governments problem?. Well as far as the politics and votes are concern, yes it should be. They represent a large percentage of voter base outside Colombo. But should it involve itself at the level it does today? I don&#8217;t think so.</p>
<p style="text-align: justify;">Farmers has many problems. Their crops are not market driven. Their decisions are driven more by tradition than science and economics. There is a disconnect between them and the market.  They have very high production costs and low returns. They import fertilizer and machinery, but the product is locally consumed. And when it comes to selling their harvest the middle man is pretty much a monopoly, which farmers can&#8217;t control.</p>
<p style="text-align: justify;">I agree with MAHO in many of its points. Specially about the gap between science and farmers on the ground, Diversification, Proper Planning and Organization. But I do not agree when it comes to government should do this, that and what not.</p>
<p style="text-align: justify;"><span id="more-1599"></span></p>
<p style="text-align: justify;">In my opinion there is a better way. And here are few things we can do. Many go hand in hand with <a href="http://www.mahotrain.com/2011/09/solutions-to-farmers-problem.html" target="_blank">MAHO suggestions</a> in principle, but differ when it comes to who is responsible of doing it. I have not put them in any specific order. Some points might make more sense if ordered differently.</p>
<p style="text-align: justify;"><strong>1. Make Farming an Industry</strong></p>
<p style="text-align: justify;">In my opinion, biggest problem with agriculture industry is that, we do not do it as an industry. Or at least our farmers are not a part of our &#8216;Agriculture Industry&#8217;. They are simply not industrialized. For them, it is a way of life or self employment. This has to change inside out. Starting from farmers. Government can only preach it and build awareness.</p>
<p style="text-align: justify;"><strong>2. Set a Clear Vision and a Mission</strong></p>
<p style="text-align: justify;">Our agricultural industry need a vision and a mission. Our traditional mission of making Sri Lanka self-sufficient with rice is not good enough. Mainly because it do not cover concerns of all stake holders. We want farmers to make a good living, by earning good money. At the same time every one in the country need food at a lower cost. Those two interests simply can&#8217;t work together. Just think about it. We pay a quite a high price for food in the market. At the same time, we pay farmers to by subsidized fertilizer, seeds, and to create an artificial certified price for them. It&#8217;s you and me who pay that money. End of the day farmers are still poor.</p>
<p style="text-align: justify;"><strong>3. Open up more markets.</strong></p>
<p style="text-align: justify;">Our mission of making Sri Lanka self-sufficient with rice also implies that our production is consumed locally. This don&#8217;t need to be the case. We can have businesses who by from local market and sell internationally after packaging and branding. This work well for Tea. Why not for other products. Indi recently posted about <a href="http://indi.ca/2011/08/high-value-rice-from-sri-lanka/" target="_blank">one similar non-profit movement</a>. In my opinion, it don&#8217;t have to be non-profit. It is perfectly ok to make profit out of it. In fact profits will make more investors to take the opportunity and create the competition. Last thing we want is another monopoly.</p>
<p style="text-align: justify;">Of course government can do this, but any one with some international trading capabilities can do this too. So there is no need to wait till the government do this.</p>
<p style="text-align: justify;"><strong>4. Invest and Innovate in Supporting Industries.</strong></p>
<p style="text-align: justify;">When an Industry is wide-spread, more other industries pop up to support that industry. This improve the quality and efficiency of parent industry and reduce cost. For example, entire software industry is there to support other industries. But has this happen in Sri Lanka when it comes to agriculture. Only things that are local about local agriculture is our lands, water, seeds and labor. We import everything else.</p>
<p style="text-align: justify;">Why can&#8217;t local businesses produce fertilizer and farming machinery instead of importing most of it, which is the largest cost component of farming. Public money that is spent to subsidize  fertilizer can be spent only on locally produced fertilizer and machinery. Even without subsidies locally produced stuff will be relatively cheaper.</p>
<p style="text-align: justify;">This is not technically impossible, these machines are not that complicated. We have enough creative people. We only need the vision. I know at least one person who is an engineer turned part-time farmer. He design his own farming machines and get them built at local welding shop.</p>
<p style="text-align: justify;"><strong>5. Fight Monopolies</strong></p>
<p style="text-align: justify;">Monopolies are bad. But to kill it, all you need is more people joining the same business. At every region, there should be a competitive environment when it comes to food processing, marketing, transport and selling. Having ten places to sell your crop in ten different places it not the solution. You need ten buyers competing in the same region. Government can&#8217;t do this. Because government is only one player. It&#8217;s a monopoly it self. Just think about it, what would happen there is only one company who is buying Tea from central auction and export them?</p>
<p style="text-align: justify;">What we need is, small scale, regional entrepreneurs to step up at grass root levels. Government may get involved by facilitating loans for such regional businesses, if it is difficult for them to get loans from commercial banks. Government can organize trade events to allow such people to network until an industry body take over. But whatever government does it must make sure not to become another monopoly.</p>
<p style="text-align: justify;"><strong>6. Own and Control Supply/Value/Distribution Chain</strong></p>
<p style="text-align: justify;">Farmers in a specific region can get together and setup food processing and distribution businesses. That way they can own and control their distribution channels. Farmers can become share holders of these businesses. That will bring them more revenue. More importantly, it will connect farmers with the market. This will give them vital market feedback which they can in turn use, when making decisions on how and what to farm.</p>
<p style="text-align: justify;"><strong>7. Add Value to By Products</strong></p>
<p style="text-align: justify;">Take Cuba for example. One of their main industries is sugar cane. They make sugar, use leaves to make bio fuel and then use the throw away stuff to burn in power plants.</p>
<p style="text-align: justify;">Of course we throws whats left of the paddy plant after harvesting back to field as carbonic fertilizer. And we burn rice shells in bakeries. IMO producing electricity from them might be more profitable at least until we come out of our current energy situation. Technically speaking we can burn the shells to produce carbon monoxide and use that gas in generators hooked up to national grid.</p>
<p style="text-align: justify;">We can probably extract the red part of the rice which is rich which fibers and use them in other foods. Not just animal food.</p>
<p style="text-align: justify;"><strong>8. Take it to the next level</strong></p>
<p style="text-align: justify;">Get in to the habit of R&amp;D. Not by the governments, but by the businesses owned and controlled by the farmers and other innovators. For any industry to move forward it should innovate. And the drive should come from the industry itself, not from outside. Because when industry itself is driving the research, it will be driven more by the needs of the industry and the findings and innovations will be better adopted by the industry.</p>
<p style="text-align: justify;"><strong>9. Governments Role</strong></p>
<p style="text-align: justify;">Question is, can our farmers make this change on their own. They can&#8217;t. That&#8217;s where the government should come in. They must build the awareness among farmers about what they can do, act as a facilitator, create incentives, and empower them to make the quantum leap from simply a way of life to an industry.</p>
<p style="text-align: justify;">Under no situation government should put itself in a position where it becomes a part of the value chain. Because it is not a very sustainable model. We need multiple players at each step. Not just a government. And the government should play a facilitator role for all those players.</p>
<p style="text-align: justify;">Government regulations should change to support local production of equipment and fertilizer. I remember once a guy from a company that import fertilizer said on TV, that it takes years/months to get government approval to import some fertilizer through following due process and safety checks. This is ok if you are importing. But if we make them locally you can&#8217;t wait years to market your stuff.</p>
<p style="text-align: justify;"><strong>10. Our Role</strong></p>
<p style="text-align: justify;">From what I know investment returns in agriculture sector are exempted from taxes. Do I need to say more?</p>
<p style="text-align: justify;">Any more ideas or feedback?</p>
<p style="text-align: justify;">/Rakhitha</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/09/08/empower-farmers-without-burdening-government-or-people/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nuclear Fusion in a Cookie Jar</title>
		<link>http://rakasuniverse.info/2011/09/05/nuclear-fusion-in-a-cookie-jar/</link>
		<comments>http://rakasuniverse.info/2011/09/05/nuclear-fusion-in-a-cookie-jar/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 13:16:47 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Fission]]></category>
		<category><![CDATA[Fusion]]></category>
		<category><![CDATA[Nuclear fission]]></category>
		<category><![CDATA[Nuclear fusion]]></category>
		<category><![CDATA[Star in a Jar]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1597</guid>
		<description><![CDATA[World is running out of its energy sources. Most recent breakthroughs were simply efficiency improvements. Most renewable energy approaches such as solar, wind&#8230; are not capable of supplying for mainstream demand. Also most of them consume wast amounts of land and don&#8217;t even produce energy all day long. Nuclear fission is risky and ever decreasing in popularity. One [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://rakasuniverse.info/2011/09/05/nuclear-fusion-in-a-cookie-jar/800px-homemade_fusion_reactor/" rel="attachment wp-att-1623"><img class="alignright size-thumbnail wp-image-1623" style="border-width: 0; padding: 10px;" title="Home Made Fusion Reactor" src="http://rakasuniverse.info/wp-content/uploads/2011/09/800px-Homemade_fusion_reactor-150x150.jpg" alt="" width="150" height="150" /></a>World is running out of its energy sources. Most recent breakthroughs were simply efficiency improvements. Most renewable energy approaches such as solar, wind&#8230; are not capable of supplying for mainstream demand. Also most of them consume wast amounts of land and don&#8217;t even produce energy all day long. Nuclear fission is risky and ever decreasing in popularity. One main promise of future is Fusion energy. Which is expected to be lot more cleaner, safer and more productive than fission. However the world is long way away from having sustained fusion, as well as producing positive net energy fusion reaction.</p>
<p style="text-align: justify;">Having said that, sometimes you come across bright sparks of hope in places you least expect. I was searching about nuclear fusion reaction recently after Japan incident and came across this. It&#8217;s a table top sustained fusion reactor by a high school kid. His reactor core is made using a cookie jar with some commonly available material. He calls it &#8216;<a href="http://home.comcast.net/~garyfoss3/starinajar.htm" target="_blank">Star in a Jar</a>&#8216;. Of course he has had some help.</p>
<p style="text-align: justify;"><span id="more-1597"></span></p>
<p style="text-align: justify;">Apparently it&#8217;s not that complicated to build one if you know the basics and have some t(h)inkering skills. Most of the knowledge is available at <a href="http://www.fusor.net/" target="_blank">http://www.fusor.net/</a>.</p>
<p style="text-align: justify;">/Rakhitha</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/09/05/nuclear-fusion-in-a-cookie-jar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Electronic Billing Proof, Anyone?</title>
		<link>http://rakasuniverse.info/2011/08/11/electronic-billing-proof-anyone/</link>
		<comments>http://rakasuniverse.info/2011/08/11/electronic-billing-proof-anyone/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 10:10:49 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Environment]]></category>
		<category><![CDATA[Go Green]]></category>
		<category><![CDATA[Me, Myself & I]]></category>
		<category><![CDATA[Sri Lanka]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Billing Proof]]></category>
		<category><![CDATA[eBill]]></category>
		<category><![CDATA[Electronic Billing Proof]]></category>
		<category><![CDATA[eStatament]]></category>
		<category><![CDATA[eThis & eThat]]></category>
		<category><![CDATA[I am not a Ghost]]></category>
		<category><![CDATA[Proof of Billing]]></category>
		<category><![CDATA[recycled paper]]></category>
		<category><![CDATA[recycling]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1559</guid>
		<description><![CDATA[These days you need billing proof for everything. Good old days of opening a bank account with just your ID and money is long gone. I was lucky enough to have my first bank account and my prepaid phone connection that way. In case you don&#8217;t know, billing proof is a piece of paper which has your [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">These days you need billing proof for everything. Good old days of opening a bank account with just your ID and money is long gone. I was lucky enough to have my first bank account and my prepaid phone connection that way. In case you don&#8217;t know, billing proof is a piece of paper which has your name and address on it. Without it, you don&#8217;t exist. But once I started to work and wanted to get a credit card and a post paid phone connection, it  turned out to be a whole new ball game. Apparently I did not have any acceptable billing proof. In other words, I was a ghost.</p>
<p style="text-align: justify;"><span id="more-1559"></span></p>
<p style="text-align: justify;">At the time, I was living with my parents in a rented place. All utility bills had land lords name on them. All the mobile connections were prepaid so no bills there. Our rent contract had expired. We had signed the new contract only recently and it take some time before we get the new certified rent contract from super efficient government office. Any way, I did not want to use a land lords utility bill simply because there got to be a better way. Bank of course rejected my application due to lack of billing proof after dragging it for about a month. And the phone company did not even accept my application for a post paid connection.</p>
<p style="text-align: justify;">I had to take a D tour to get the things sorted out. First I went to the bank at which I had a savings account for so many years. After some discussion with the branch manager, whom I met for the first time, he agreed to get a credit card without any billing proof. For this bank at the time, credit cards was not their main line of business. Therefore they did not give much credit limit or any value added services.  But one month after me getting the card, I finally get what I wanted. A piece of paper called bank statement with my name and address on it. Finally I am not a ghost. Then I used it to sign up in all other places that I wanted to sign up. My Scheme has worked <img src='http://rakasuniverse.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: justify;">That was about 3 years ago. This entire episode came back to my mind because of this new trend of electronic statements, electronic bills, eThis and eThat. Banks (Actually the nice ladies at their call centers) keep calling me saying that they offer a wonderful new service called e-Statements, which is fast, all green and save trees. Suddenly after the financial crisis everyone want to save trees. And every time they call, I tell them that I am an old dinosaur who want a piece of printed paper posted to me every month. But they haven&#8217;t given up on me. I got a call even this week.</p>
<p style="text-align: justify;">This is the bottom line. I&#8217;ll accept Electronic Statements once companies can accept a printout of that as the billing proof or sign-up customers after doing a simple e-mail verification. I like how Dialog handles this by giving limited credit for mobile connection if billing proof is not given. That can be a workable model. Companies can provide limited service until the address is verified.  If companies want to save trees they should first use recycled papers. And send all their used papers for recycling. I hope they are doing that already. That&#8217;s what I do with my bills, when I don&#8217;t need them to prove that I am not a ghost.</p>
<p style="text-align: justify;">Any bright  ideas on how to verify address of people without using paper bills?</p>
<p style="text-align: justify;">/Rakhitha</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/08/11/electronic-billing-proof-anyone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Parking Fees in Colombo City and Our Vehicle Owners</title>
		<link>http://rakasuniverse.info/2011/06/05/on-parking-fees-in-colombo-city-and-our-vehicle-owners/</link>
		<comments>http://rakasuniverse.info/2011/06/05/on-parking-fees-in-colombo-city-and-our-vehicle-owners/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 05:44:30 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Sri Lanka]]></category>
		<category><![CDATA[Colombo]]></category>
		<category><![CDATA[Kandy]]></category>
		<category><![CDATA[Parking]]></category>
		<category><![CDATA[Parking Fees]]></category>
		<category><![CDATA[Private Sector Car Parks]]></category>
		<category><![CDATA[Sunday Observer]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1472</guid>
		<description><![CDATA[Yes! parking cost is high in Colombo. Specially if you don&#8217;t want to park your vehicle under boiling hot sun and leave one of your biggest assets at the mercy of robbers. It&#8217;s high not because some people trying to rip off vehicle owners, but because the gap between supply and demand has driven up [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Yes! parking cost is high in Colombo. Specially if you don&#8217;t want to park your vehicle under boiling hot sun and leave one of your biggest assets at the mercy of robbers. It&#8217;s high not because some people trying to rip off vehicle owners, but because the gap between supply and demand has driven up prices. Sunday Observer recently ran two articles on this topic (<a href="http://www.sundayobserver.lk/2010/12/19/fea08.asp" target="_blank">this</a> and <a href="http://www.sundayobserver.lk/2011/05/22/fea08.asp" target="_blank">this</a>). And they shed some light on this issue. How ever what took my eyes was the pathetic situation of hippocratic in the minds of our own people exposed through these two articles.</p>
<p style="text-align: justify;">We all have at some point used all the sorts of car parks in the city. Most outdoor parks has little or no sense of security, (I have lost few parts of the vehicle by parking in those places and it has cost me lot more than what I could have saved by parking there) and bake everything inside the car if you park during the day. Then there is those indoor parks attached to main shopping malls in the city. They have better security (at least you feel that way) and better protection from elements. And for that there  is a higher demand to park there and the prices are high. Also these are not public parks by definition. Those parks are setup by those companies for customers who are shopping in those malls. But we all take those for granted and happily use/misuse them. We all know where we prefer to park between those dusty hot outdoor parks and nice indoor parks.</p>
<p style="text-align: justify;"><span id="more-1472"></span></p>
<p style="text-align: justify;">Yes! outdoor parks should improve. Government or some other authority must enforce some sort of regulation on the facilities of the parks. But what worried me is, based on what is posed on Sunday Observer our people think that all parks must charge a nominal fee regardless of their facilities. And we think that those indoor parks are simply there to rip us off. Are we out of our minds? If there is anyone ripping us off, that is those outdoor parks that take our money to bake our cars. Also we have forgotten that those indoor parks are setup for specific set of customers and high prices are one of the ways of keeping people who misuse the park at bay. Imagine if the park at MC or Crescat charge only LKR 20 per hour. Everyone will park their vehicles all day long while they are at their work places. And original purpose of setting up those parks will be lost completely. Why can&#8217;t we as people recognize that those parks are there for a specific people. Are we that ignorant?.</p>
<p style="text-align: justify;">I am not in the parking business and I have no reason to defend those private indoor parks. Other than they provide a service for the money paid unlike most outdoor places. But saying that they should operate like public parks and charge only a nominal fee is a daylight robbery and an insult to common sense. And also public bulling on private businesses. Because they are simply not public parks. They are specifically setup for their customers and vehicles are expected to be parked there only for a short period of time. And high fees is the only thing which can enforce that.</p>
<p style="text-align: justify;">You also have to look at who are the people complaining about these parking fees. Those are the people who want to park their vehicle all day long in a safe place while they are working at their workplaces. Putting pressure on private park operators is not the solution for that. Every work place should do their level best to provide parking for their employees (It should be one of the key factor to look in to, when you select a location for a business), As the indoor parks currently operate in the city are not built for that purpose. Also Colombo city authority must take a lesson or two from people at Kandy city authority. Their solution of building a large car park at the city center has paid of really well. How ever in Colombo, you will need several such parks strategically placed in several places in the city.</p>
<p style="text-align: justify;">Colombo city can at least tie up with those large outdoor park owners and setup multi-story car parks on those lands. And the profits can be be shared between city authority and land owner. That way land owner will make more money than now (increased capacity will increase revenue) while City make money too. This will not happen  if you expect those private land owners to build those them-self. Because such a structure will cost a massive amount of money. When a private individual/company spend that money they need to get a pay back in a shorter time frame than a government institute. Therefore they will need to charge a higher fee to get a high margin and a short payback time. But when a city authority make that investment, it is an investment for the city itself, and tax money well spent.</p>
<p style="text-align: justify;">What do you think?</p>
<p style="text-align: justify;">/Rakhitha</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/06/05/on-parking-fees-in-colombo-city-and-our-vehicle-owners/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to do Facebook/Gmail like Page Loads/Updates using IFrames and JavaScript</title>
		<link>http://rakasuniverse.info/2011/05/22/how-to-do-facebook-like-page-loadsupdates-using-iframes-and-java-script/</link>
		<comments>http://rakasuniverse.info/2011/05/22/how-to-do-facebook-like-page-loadsupdates-using-iframes-and-java-script/#comments</comments>
		<pubDate>Sat, 21 May 2011 20:37:36 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IFrame]]></category>
		<category><![CDATA[Web2]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1470</guid>
		<description><![CDATA[You may have noticed how websites like Facebook and Gmail load/update pages on browser without actually reloading the entire thing. It can come handy in your own websites specially when you need to change a small potion of the content that is already shown in the screen. Or you need to change the data shown [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You may have noticed how websites like Facebook and Gmail load/update pages on browser without actually reloading the entire thing. It can come handy in your own websites specially when you need to change a small potion of the content that is already shown in the screen. Or you need to change the data shown in the page without having to reload the entire thing.</p>
<p style="text-align: justify;">This can be done easily using only a hidden iframe and some java script code provided that few conditions are met.</p>
<p style="text-align: justify;">Basically following is what you need to do. You need to have a hidden iframe, to which you will load specific information from the server. Then, you need to have created div tags surrounding the regions of the visible page that you need to update. Each div need a unique tag id. You need to create another web page (not visible to user) which will have the information that you need to show.  This web page also need to have div tags surrounding the different information that you need it to transfer from server to client.</p>
<p style="text-align: justify;">For simplicity lets assume that your visible web page has one place which you need to dynamically update. We will mark that region using a div tag with id &#8220;placeHolder&#8221;.  Your non visible web page/content source which has the information needed to be shown in place holder will contain another div with id &#8220;content&#8221;. Now what we need to do is to load this page in to your hidden iframe. And once that is loaded, we need to look for its div tag with id &#8220;content&#8221;. We need to copy the internal content of that div into our place holder div in visible page. While this process is being done in the background, we can show an animated image on our place holder until things are loaded.</p>
<p><span id="more-1470"></span></p>
<p>I&#8217;ll try to explain this with the code.</p>
<p>HTML Code</p>
<pre class="code/html"><script type="text/javascript">
//Please go to next code block for java script functions
</script>

&lt;iframe id="myIFrame" width=300 height=300 style="Display:none;" onload = "loadDone();"&gt;
&lt;!--
We use this iframe to load the pages that we need to load.
Loading will be done by setting src property of the iframe.
Once the specified page is loaded iframe will call loadDone()
function which is set to onload event.
that function will simply copy the relevant content from
 loaded page in to the div shown bellow.--&gt;
&lt;/iframe&gt;

&lt;!--Following is the place holder
 in which we will show the loaded data--&gt;
&lt;div id="placeHolder"&gt;&lt;/div&gt;

&lt;script type="text/javascript"&gt;
loadPage("url to load");
&lt;/script&gt;
</pre>
<p style="text-align: justify;">In above HTML code line 5-13 has the code for hidden iframe, to which we will load the invisible pages with content that need to be shown in updatable parts of the visible page. Note that onload event of iframe is set to a function named loadDone(). This function takes care of copying information from hidden page in to visible place holders. We can&#8217;t call this function directly because we have to wait until our data page is fully loaded. That&#8217;s why we use onload event. We will look in to the logic of the function later.</p>
<p style="text-align: justify;">In line 17 we have our place holder. Technically you can have any number of place holders as long as each one has a unique id. Also for each place holder in your visible page, you will need a separate div with a unique id in your invisible page to carry the information from server to client.</p>
<p style="text-align: justify;">In line 20 we call a function named loadPage(&#8230;). This is the function that trigger the process of loading a data page in to our hidden iframe and then indirectly trigger the process of updating place holders through onload event of iframe.</p>
<p>Java Script Code</p>
<pre class="code/javascript">/*
This function will be called everytime a page
is loaded in to our hidden iframe.
As this is set to its onload event.
*/
function loadDone()
{
	// Find the hidden iframe object
	var myiframe = document.getElementById("myIFrame");
	// We only need to go ahead if the iframe has some page.
	if(document.getElementById("myIFrame").src)
	{
		//Now we need to locate the document object
		//of the paged loaded inside iframe
		//Logic will slightly differ for different browsers.
		if (myiframe.contentDocument)
		{
			//firefox, opera
			myiframe = (myiframe.contentDocument);
		}
		else if (myiframe.contentWindow)
		{
			//IE
			myiframe = (myiframe.contentWindow);
		}

		if(myiframe.document)
		{
			myiframe = (myiframe.document);
		}
		//At this point myiframe variable should be
		//pointing to document object of the page in
		//hidden iframe.
		//we assume that the page has a div tag with id 'content'
		//and inside that we have the stuff that we need to show.
		set(myiframe.getElementById("content"));

	}

}
/*
Following function simply set the innerHTML value of the place holder
to the data we loaded through iframe
*/
function set(s)
{
	var placeHolder = document.getElementById("placeHolder");
	placeHolder.innerHTML= s.innerHTML;
}

/*
This is the function that we will be calling to trigger the update process.
it take one parameter which is the url of the page that we try to load.
*/
function loadPage(url)
{
	//Before loading the page that we need to load
	//we first set the text 'Loading...' in to our placeholder.
	var placeHolder = document.getElementById("placeHolder");
	placeHolder.innerHTML = "<strong>Loading...</strong>";

	//Then we load the page in to iframe
	//This will trigger loadDone function once the page is loaded
	document.getElementById("myIFrame").src = url;
}</pre>
<p style="text-align: justify;">From line 6 to 40 of about javascript code we have the function which does the real work. It simply extract the information that we need to update on visible page and call set function which does actual updating. Only thing that you need to note here is line 36. That is where we extract the code block (div) with id &#8216;content&#8217; and pass in to set method. If you have multiple placeholders to update you will need to repeat this line for each place holder, and for each placeholder you need to read from a different tag id. Also you will need to make some changes in set function to support multiple place holders.</p>
<p style="text-align: justify;">From line 55 to 64 we have the function that you will call to trigger an update. This function takes the URL of the page that serve as the content producer. It must contain the div tags that your javascript will be looking for to read the content. Also it must be noted that this page must be hosted on same domain as your visible page which has the place holder. This code will not work across multiple domains due to security reasons.</p>
<p style="text-align: justify;">In my code I have called this function just inside a javascript block. That is only for demonstration purposes. In practical applications you will call this as a button action or as a link onclock event.</p>
<p style="text-align: justify;">In loadPage function it is line 64 which trigger actual loading. Line 59 and 60 are there to show some progress indicator on our place holder until the required data is loaded and place holder is updated with data. I am just showing text &#8220;Loading&#8230;&#8221; there. I hope you can figure out how to replace that with an animated image like in Facebook as well as how to make this work for multiple placeholders.</p>
<p style="text-align: justify;">If you going to try this out you need to have both pages hosted in a web server before testing. You can use IIS or any other server hosted in locale machine. Testing with html files directly in hard disk will not work. Browser look for a proper http url and both pages must be hosted under same domain (http://localhost will do) for this to work. </p>
<p>Hope you find this helpful<br />
/Rakhitha</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/05/22/how-to-do-facebook-like-page-loadsupdates-using-iframes-and-java-script/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How Not To Celebrate 2600th Sambuddha Jayanthi: Music at Temples!</title>
		<link>http://rakasuniverse.info/2011/05/18/how-not-to-celebrate-2600th-sambuddha-jayanthi-music-at-temples/</link>
		<comments>http://rakasuniverse.info/2011/05/18/how-not-to-celebrate-2600th-sambuddha-jayanthi-music-at-temples/#comments</comments>
		<pubDate>Wed, 18 May 2011 06:20:16 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Me, Myself & I]]></category>
		<category><![CDATA[Sri Lanka]]></category>
		<category><![CDATA[26ooth Sambuddha Jayanthi]]></category>
		<category><![CDATA[Buddhist Bathi Gee]]></category>
		<category><![CDATA[Budh Guna Gee]]></category>
		<category><![CDATA[Wesak Festival]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1460</guid>
		<description><![CDATA[Ok! first of all I am not a very religious guy. But I do go to temples and worship once in a while. Most of that credit should go to my mother and my wife. And I normally avoid going to temples on poya days as temples tend to be too crowded, and lose their [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Ok! first of all I am not a very religious guy. But I do go to temples and worship once in a while. Most of that credit should go to my mother and my wife. And I normally avoid going to temples on poya days as temples tend to be too crowded, and lose their relaxing and peaceful environment which one would need to do religious activities.</p>
<p style="text-align: justify;">How since this is our first Wesak festival after getting married and the 2600 Sambuddha Jayanthi, we went to the temple close to our house. It was a good thing that we left the vehicle at home and walked all the way. Traffic was like hell. Vehicles were jammed bumper to bumper. There was even an ambulance with sirens running but going nowhere. Hope whoever inside that is still alive. I also could not help noticing that the dansala with the longest queue was the one done by the local BBQ shop.</p>
<p style="text-align: justify;"><span id="more-1460"></span></p>
<p style="text-align: justify;">Once we managed to reach the temple, something seemed totally wrong. They were playing music very loud through loudspeakers mounted near the Boo tree. What the hell! It was too loud and was literally painful to the ear.  Ofcourse they were songs related to Buddhism but not the &#8216;Buddhan Saranan Gachchami&#8217; by Mohideen Beg kind of songs. They were more modern songs that you can&#8217;t really categorize as Buddhist bathi gee or budu guna gee.  And it was way too loud, and completely destroyed the peaceful atmosphere that you would expect in a temple. Of course this is 2600th Sambuddha Jayanthi and every temple must do something special for it. But who in his right mind play such loud songs in a temple. We found the congested roads more peaceful on the way back from the temple. Hope this wasn&#8217;t the case in other places.</p>
<p style="text-align: justify;">/Rakhitha</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/05/18/how-not-to-celebrate-2600th-sambuddha-jayanthi-music-at-temples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Few Tips to Protect Your Site/Blog from Attacks and Other Mishaps!</title>
		<link>http://rakasuniverse.info/2011/03/12/few-tips-to-protect-your-siteblog-from-attacks-and-other-mishaps/</link>
		<comments>http://rakasuniverse.info/2011/03/12/few-tips-to-protect-your-siteblog-from-attacks-and-other-mishaps/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 05:16:32 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Blog Security]]></category>
		<category><![CDATA[Password Security]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Site Security]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1367</guid>
		<description><![CDATA[When you run a website or a blog, it is partly your responsibility to keep it safe. There are many ways that a web site can be attacked. Some attacks focus on infrastructure such as network and servers, and some focus on the web application itself. When it comes to attacks on infrastructure it&#8217;s service providers job [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">When you run a website or a blog, it is partly your responsibility to keep it safe. There are many ways that a web site can be attacked. Some attacks focus on infrastructure such as network and servers, and some focus on the web application itself. When it comes to attacks on infrastructure it&#8217;s service providers job to keep the attackers at bay. Most providers do a good job at it, because otherwise they stand to lose lot of business and money in damages. One attack on infrastructure can take an entire service provider out of business if they don&#8217;t handle it well, because of loosing customer confidence.</p>
<p style="text-align: justify;">Therefore most often when a blog/website is hacked or lost due to some other reason it is mainly the fault of person administrating it. There are several ways an attacker can get in to a site. For example they can hack in to the server or network and make their way to the sites hosted there. It once happen to the hosting provider of this blog. And thank god I still have my content. As I said that is something that service provider has to deal with. Here is a number of attacks modes that the web site admin has to deal with, and way to reduce the risks.</p>
<p style="text-align: justify;"><span id="more-1367"></span></p>
<h3 style="text-align: justify;"><strong>Getting in Through Security Vulnerabilities in Web Applications</strong></h3>
<p style="text-align: justify;">This will not apply if your setup is managed by the service provider. Like in wordpress.com hosted blogs.</p>
<p style="text-align: justify;">A website is just another software. Like in any software it can have security vulnerabilities. If it is a custom-built site then it is the developers job to make sure that all doors are properly closed and locked and only opened by authorized personals. Developing secure applications is a very large subject on its own, therefore I am not going to cover it here. But it is a different matter when it comes to using off-the-self software such as WordPress <img src='http://rakasuniverse.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: justify;">Even software like WordPress can have security issues. But the good news is developers of these software deliver patches when they realize that they have security problems. Therefore it is the responsibility of the administrator of the site to keep its site up-to-date with latest patches. A security hole is not a problem as long as no one knows it. But once some one finds it, they can exploit it to get in. And the thing is, once an organisation that develop software find a vulnerability of its product and release a patch, that vulnerability is no longer a secret. And if you do not install the patch you are running your system with a known security issue. Therefore I cannot stress enough how important it is to stay up-to-date.</p>
<p style="text-align: justify;">There is another thing called a zero day attack. This happen because normally it take a company few days before it can release a patch once a vulnerability found. And someone can use this window to attack. There is nothing you can do to stop such attacks other than trying to close any doors between the attacker and the vulnerability. To do this you have to stay up-to-date with all the security related news of the products that you are using. and take proper measures.  For example if you get to know that a specific plugin has a security problem, then you can disable/uninstall that plugin until the plugin creator come up with a patch. Also when you install plugins and make configuration changes do some research to check if the plugin is safe and secure. and find out what is the most secure way to configure them.</p>
<p style="text-align: justify;">Make sure your site does not let users know the version of software that it is running or any other technical details in its pages or error pages. Because knowing which software and which version you use is the first step of attacking you. With that knowledge the attacker can look for known problems of those versions.</p>
<h3 style="text-align: justify;"><strong>Getting in Through Security Vulnerabilities in other Websites in Same Server or Vulnerabilities in Server</strong></h3>
<p style="text-align: justify;">This will also not apply if your setup is managed by the service provider itself. Like in wordpress.com hosted blogs. This applies specially if you are hosting a site on a shared server.</p>
<p style="text-align: justify;">Even though you keep your website vulnerability free, there can be other sites in same shared server that has vulnerabilities. They can ruin it for everyone on that server. Or server itself can be vulnerable. Ideally hosting provider has to take care of this problem. But there are few things you can do to protect yourself. If a server is broken in to through another account, attacker is most likely be accessing the server through a user account other than your account. If you keep your sensitive server files with proper security setting to make it non readable and no writable by others, then you are relatively safe. This includes all your configuration files, executable scripts, static pages and media. You may need some files to be be readable/writable by other users (some WP plugins require this). You have to make sure those files are not executable and does not contain sensitive data. Personally I would prefer not to use such plugins <img src='http://rakasuniverse.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<h3 style="text-align: justify;"><strong>Cracking Your Password</strong></h3>
<p style="text-align: justify;">This is a classic attack method. And the most common is using brute force. That is by trying out all possibilities of letters on your login form. There is a version of brute force called dictionary attack which is very common due to less time it take. It basically take words from a dictionary and feed them to login form as passwords. This is a very successful way of cutting down the time it tack to crack a password, provided that the password is a valid word. There are several ways to protect your site against this.</p>
<p style="text-align: justify;">First and most important thing is to pick a strong password. It is a practice you must follow. You can include letters, both upper and lower case, symbols, numbers. you can also spell words incorrectly but should not be obvious misspelling of the words, use reversed words, use words from multiple languages, use phrases, but not something that you take from a book. Just be creative with your passwords and mix them up with numbers, symbols and upper , lower case characters. Also make sure not to use same password in all the places. And never include any personal information or information related to your site as password. That will make it easy to guess.</p>
<p style="text-align: justify;">You can also block automated login by requiring users to enter a <a href="http://en.wikipedia.org/wiki/CAPTCHA" target="_blank">CAPTCHA</a> when they login. That way only a human user will be able to use your login. You can also use a lock down mechanism. Which blocks an IP range from logging in, after a number of failed login attempts. However there is a risk of doing this. Imagine if your account locks out for one hour after 3 failed log in attempts. If some one wants to block you from logging in, all he got to do is to do three failed login attempts each hour.</p>
<p style="text-align: justify;">Also to have any luck at cracking your password, attacker must know your user name. You can make the life hard for an attacker, if you hide your user name. Pick a user name that is not obvious. Don&#8217;t use your name, nickname, display name, website name, and definitely not &#8216;admin&#8217;. Also don&#8217;t use same user name / password in all the places related to your site. You will have number of places that you log in. Your e-mail, your hosting provider account, your website control panel, your SSH, FTP accounts, and your WordPress account &#8230;. Make sure they have different usernames and passwords.</p>
<h3 style="text-align: justify;"><strong>Steeling Your Password</strong></h3>
<p style="text-align: justify;">Your password may not be crackable, but it might get stolen. You might give it to a &#8216;trusted&#8217; friend to help you out with something. You might be traced using a key logger. It can get detected by packet sniffing in the network. Or the attacker might just send you an e-mail and ask for it <img src='http://rakasuniverse.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  trust me, that works.</p>
<p style="text-align: justify;">For starters never give your password to any one. If you have to write it down (you will have to, if you do everything in previous section), even though it is not a good practice, keep it somewhere safe, very safe. It is best not to enter your password in shared computers, specially not in the public ones. Try not to let the browser remember your password. Make sure to log of from the sites before you leave the computer or close the browser.  It will make sure that some one else is not accidentally logged in to your account.</p>
<p style="text-align: justify;">Make sure that the computer you are using to log in to your site is clean and free of any viruses, trojans, adware. And it must have an up to date virus scanner installed. Antivirus should be able to detect all the previously said software. If you are using flash drives make sure they are virus free. And don&#8217;t use them in computers that you do not trust and not secure enough.</p>
<p style="text-align: justify;">Use SSL as much as possible when you login. Never send your passwords in e-mails as e-mails transfer as plain text. Setup your site in a way that you don&#8217;t have to log in to your main admin account all the time. You can use a less privileged account for your day-to-day work. That way you can still have a very strong password for your admin account, and avoid the trouble of entering it all the time. Also that way you will lower the number of times that you transmit your admin password.</p>
<p style="text-align: justify;">Don&#8217;t ever respond to a mail that ask for your account information. A responsible hosting provider will never do that. Every time you log in, check the address bar to make sure that you are logging in to the correct site.</p>
<p style="text-align: justify;">If you have any reason to think that your password is at risk. For example if you had to use it in a public or untrusted computer or if you discover that your computer was infected with a trojan, then change your password(s).</p>
<h3 style="text-align: justify;"><strong>Hacking in to Your E-mail Account</strong></h3>
<p style="text-align: justify;">Hacking an e-mail account is will give access to all the passwords to all the accounts created using that e-mail. Therefore your e-mail address must have the strongest and safest password. It is also a good idea to not to use your primary e-mail account when you sign up to your hosting account/blog..! You can use a private email address which only you know. This way the attacker will have to figure out the e-mail address before he can attack. Do not use that e-mail address to communicate with others. That will give away the e-mail address.</p>
<h3 style="text-align: justify;"><strong>Last but not least&#8230;. Take Backups</strong></h3>
<p style="text-align: justify;">No matter what you do, you cannot be prepared for everything. If something beyond your control go wrong, you stand to lose everything you create. Therefore it is extremely important to take backups. And It is even more important to make sure that backups are in a restorable state. Ideally you have to take backups frequently and restore them in an offline site running in your own computer. Just to make sure that backups are in good shape and easily restorable. Restoring is often more complicated than backing up. Complexity depends on how the backup was taken and what was backed up. Often admins find this the hard way when a backup is need to be restored. How frequently should you backup will depend on how often you site change.</p>
<p style="text-align: justify;">Also it is extremely important to make sure that backups are secure. For starters if you lose both backups and the live site, you are back at square one. Also backups will contain all the sensitive information of your site, such as configuration files with database password. You don&#8217;t any one to see those. do you? Therefore never leave your backups in the server.</p>
<p style="text-align: justify;">This is all I can think of right now! Did I miss anything?</p>
<p style="text-align: justify;">/Rakhitha</p>
<p style="text-align: justify;">&nbsp;</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/03/12/few-tips-to-protect-your-siteblog-from-attacks-and-other-mishaps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Royal Thomian &#8211; Big Match 2011 &#8211; Watch Online for Free on Papare</title>
		<link>http://rakasuniverse.info/2011/03/10/royal-thomian-big-match-2011-watch-online-on-papare/</link>
		<comments>http://rakasuniverse.info/2011/03/10/royal-thomian-big-match-2011-watch-online-on-papare/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 04:49:55 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Environment]]></category>
		<category><![CDATA[Royal College]]></category>
		<category><![CDATA[132nd Battle of the Blues]]></category>
		<category><![CDATA[Battle of the Blues]]></category>
		<category><![CDATA[Big Match]]></category>
		<category><![CDATA[Live Streaming]]></category>
		<category><![CDATA[Online Broadcast]]></category>
		<category><![CDATA[Papare.com]]></category>
		<category><![CDATA[Royal-Thomian]]></category>
		<category><![CDATA[RoyTho 2011]]></category>
		<category><![CDATA[St. Thomas' College]]></category>
		<category><![CDATA[UStream]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1417</guid>
		<description><![CDATA[132nd installment of Royal Thomian Big Match is happening this week. But there is less hype about it this time around as 2011 cricket world cup has overshadowed it on most of the media. I too was not planing to write about it, but I noticed some increase of visitors to some of my old posts, which [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">132nd installment of Royal Thomian Big Match is happening this week. But there is less hype about it this time around as 2011 cricket world cup has overshadowed it on most of the media. I too was not planing to write about it, but I noticed some increase of visitors to some of my old posts, which I wrote for Battle of the Blues 2010. It seems that many are looking for an online broadcast and end up visiting the wrong place.</p>
<p>If you need more info on the big match please visit <a href="http://www.royalthomian.info/" target="_blank">http://www.royalthomian.info/</a> for official website. And if you are looking for the papare streaming link here it is <a href="http://www.thepapare.com/index.php/sports/cricket/146-the-132nd-battle-of-the-blues-live-on-thepapare" target="_blank">http://www.thepapare.com/index.php/sports/cricket/146-the-132nd-battle-of-the-blues-live-on-thepapare</a>. Unlike the last year, this time it is free.</p>
<p><span id="more-1417"></span></p>
<p style="text-align: justify;">RoyalThomian.info website says that the match will be broadcasted live on Prime TV which is a part of ITN network. Prime TV is also watchable online on <a href="http://www.lankachannel.lk/independent-television-network/prime-tv-live-webcast-video_34d0c29b1.html" target="_blank">this link</a>. But when I checked it out, there was nothing but old songs :S.</p>
<p style="text-align: justify;">Enjoy!</p>
<p style="text-align: justify;">/Rakhitha</p>
<p style="text-align: justify;">&nbsp;</p>
<p><b>Related Posts:</b><ol>
<li><a href='http://rakasuniverse.info/2010/03/11/royal-thomian-big-match-2010-online/' rel='bookmark' title='Royal Thomian &#8211; Big Match 2010, Online!'>Royal Thomian &#8211; Big Match 2010, Online!</a></li>
<li><a href='http://rakasuniverse.info/2010/03/12/royal-thomian-big-match-2010-online-broadcast-and-highlights/' rel='bookmark' title='Royal Thomian &#8211; Big Match 2010 &#8211; Online Broadcast and Highlights'>Royal Thomian &#8211; Big Match 2010 &#8211; Online Broadcast and Highlights</a></li>
<li><a href='http://rakasuniverse.info/2010/03/22/first-ever-royal-thomian-twenty-20-cricket-encounter/' rel='bookmark' title='First Ever Royal Thomian &#8211; Twenty20 Cricket Encounter!'>First Ever Royal Thomian &#8211; Twenty20 Cricket Encounter!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/03/10/royal-thomian-big-match-2011-watch-online-on-papare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is Democracy Being Flushed Down the Drain in Sri Lankan Blogosphere Or Are We Just Playing Naive?</title>
		<link>http://rakasuniverse.info/2011/03/09/is-democracy-being-flushed-down-the-drain-in-sri-lankan-blogosphere-or-are-we-just-playing-naive/</link>
		<comments>http://rakasuniverse.info/2011/03/09/is-democracy-being-flushed-down-the-drain-in-sri-lankan-blogosphere-or-are-we-just-playing-naive/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 05:51:44 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Me, Myself & I]]></category>
		<category><![CDATA[Sri Lanka]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Blog Security]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Democracy]]></category>
		<category><![CDATA[Freedom of Speech]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Online Security]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1387</guid>
		<description><![CDATA[For many countries Internet, World Wide Web, social networks, blogs are the strongholds of democracy. In recent events in middle east they have served as the last line of defense for democracy, allowing it to fight back dictatorships and totalitarian societies. But Sri Lankan blogosphere seems a little different. It appears that some people thing that it should be more totalitarian than the Sri Lankan Society [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">For many countries Internet, World Wide Web, social networks, blogs are the strongholds of democracy. In recent events in middle east they have served as the last line of defense for democracy, allowing it to fight back dictatorships and totalitarian societies. But Sri Lankan blogosphere seems a little different. It appears that some people thing that it should be more totalitarian than the Sri Lankan Society itself. Of course Sri Lanka is not a totalitarian society. At least not yet. But the Sinhala blogosphere seems becoming one thanks to few fundamentalists. Of course they do not have the support of the majority, but I think it&#8217;s the lack of awareness of the majority that is creating them room.</p>
<p style="text-align: justify;"><span id="more-1387"></span></p>
<p style="text-align: justify;">We have seen a trend of taking down blogs that post about hot (not necessarily important) topics with an open mind. Not by the government but by other bloggers who call them self patriotic hackers. (I would not call some one a hacker just because they use some tool to crack a password or use an unethical/unprofessional friend in a telco company to snoop a password). In a way it is another manifestation of typical Sri Lankan mindset of not being able to tolerate different opinions and views. It is a crime against core value of blogging, which is freedom of speech. Only an ideologically bankrupt person can do it.</p>
<p style="text-align: justify;">Having said above I have to say this too. It is the natural order of things happen on the web. If you dig up things that some people don&#8217;t want to talk about, you going to make them very upset, while making some happy. But when it comes to taking action, those who are upset will be quicker and more violent. They do not lose anything by what you write, but they gain a bit of third class pleasure by destroying what you write. They will not give a rats ass how much effort you put to create your content. It&#8217;s your job to protect your investment. There is no point of blaming the bad guys when years of work is gone.</p>
<p style="text-align: justify;">When you write controversial topics. When you create yourself enemies. You are in a frontier of your own.  In such a scenario it is critical to be a prepared for anything that might come your way. But the truth is, most of us are not. I don&#8217;t think that many of us even take backups of what we write. Of course in my case no one (except me) will not even notice if this site goes down due to some technical mishap or some hacker attack. But there are a lot of blogs that people will miss, if they go down. Have the writers of those blogs taken proper measure to minimize the risk of such things? Have they taken proper measures to ensure a smooth come back if that happen? If not they are simply writing at the mercy of their ideological opponents! Just think about it!</p>
<p style="text-align: justify;">/Rakhitha</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/03/09/is-democracy-being-flushed-down-the-drain-in-sri-lankan-blogosphere-or-are-we-just-playing-naive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cricket World Cup 2011, Free Live Streaming Link</title>
		<link>http://rakasuniverse.info/2011/02/25/cricket-world-cup-2011-live-streaming-link/</link>
		<comments>http://rakasuniverse.info/2011/02/25/cricket-world-cup-2011-live-streaming-link/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 16:36:47 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Me, Myself & I]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Channel Eye]]></category>
		<category><![CDATA[Cricket]]></category>
		<category><![CDATA[Cricket World Cup]]></category>
		<category><![CDATA[Cricket World Cup 2011]]></category>
		<category><![CDATA[CWC 2011]]></category>
		<category><![CDATA[ESPN Star]]></category>
		<category><![CDATA[Live Video Stream]]></category>
		<category><![CDATA[Mobitel]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1379</guid>
		<description><![CDATA[Got this link for Cricket World Cup 2011 live stream from a facebook friend. Its on espnstar website. It is relatively ad free. I gave it a try using a Mobitel HSDPA connection and quality was ok in full screen view most of the time. Stream did not break up time to time for buffering. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Got this link for Cricket World Cup 2011 live stream from a facebook friend. Its on espnstar website. It is relatively ad free. I gave it a try using a Mobitel HSDPA connection and quality was ok in full screen view most of the time. Stream did not break up time to time for buffering. Only problem was that the bandwidth was not enough for fast sequences and resulted in fussy images in such situations.</p>
<p style="text-align: justify;">Any way at my place quality of this link on a Mobitel broadband connection is far better than Channel Eye reception. So this is how I am going to watch world cup.</p>
<p style="text-align: justify;">Here is the link:</p>
<p style="text-align: justify;"><a href="http://www.espnstar.com/cwclive/">http://www.espnstar.com/cwclive/</a></p>
<p style="text-align: justify;">&nbsp;</p>
<p><b>Related Posts:</b><ol>
<li><a href='http://rakasuniverse.info/2011/02/21/no-papare-bands-at-cricket-world-cup-2011-matches/' rel='bookmark' title='No Papare Bands At Cricket World Cup 2011 Matches?'>No Papare Bands At Cricket World Cup 2011 Matches?</a></li>
<li><a href='http://rakasuniverse.info/2011/02/25/drama-over-enna/' rel='bookmark' title='Drama over &#8216;Enna&#8217; (Banned Sri Lanka Cricket World Cup Song)'>Drama over &#8216;Enna&#8217; (Banned Sri Lanka Cricket World Cup Song)</a></li>
<li><a href='http://rakasuniverse.info/2011/03/10/royal-thomian-big-match-2011-watch-online-on-papare/' rel='bookmark' title='Royal Thomian &#8211; Big Match 2011 &#8211; Watch Online for Free on Papare'>Royal Thomian &#8211; Big Match 2011 &#8211; Watch Online for Free on Papare</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/02/25/cricket-world-cup-2011-live-streaming-link/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Drama over &#8216;Enna&#8217; (Banned Sri Lanka Cricket World Cup Song)</title>
		<link>http://rakasuniverse.info/2011/02/25/drama-over-enna/</link>
		<comments>http://rakasuniverse.info/2011/02/25/drama-over-enna/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 05:43:52 +0000</pubDate>
		<dc:creator>Rakhitha</dc:creator>
				<category><![CDATA[Sri Lanka]]></category>
		<category><![CDATA[Cricket]]></category>
		<category><![CDATA[Cricket World Cup]]></category>
		<category><![CDATA[Cricket World Cup 2011]]></category>
		<category><![CDATA[Cricket World Cup 2011 Official Song]]></category>
		<category><![CDATA[CWC]]></category>
		<category><![CDATA[CWC 2011]]></category>
		<category><![CDATA[dailymirror.lk]]></category>
		<category><![CDATA[Enna]]></category>
		<category><![CDATA[islandcricket.lk]]></category>
		<category><![CDATA[Lahiru Perera]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://rakasuniverse.info/?p=1355</guid>
		<description><![CDATA[This is not a post to defend Lahiru Perera, his music or anything. This just what I see from all the drama happening over his world cup cheer song &#8216;Enna&#8217;. If you have listened to any of Lahiru Pereras songs, you must have realised that he is not Amaradewa, Suni Edirisingha, or not even Sunil Perera or Iraj [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This is not a post to defend Lahiru Perera, his music or anything. This just what I see from all the drama happening over his world cup cheer song &#8216;Enna&#8217;. If you have listened to any of Lahiru Pereras songs, you must have realised that he is not Amaradewa, Suni Edirisingha, or not even Sunil Perera or Iraj when it comes to music style. He is in a different class, popular among some and not so popular among others. In songs like Rambari and this one, his lyrics are mostly a meaningless bunch of words thrown together in a way that rhymes. Nothing more. If some one is trying to measure his music with a measuring stick any better than that, I don&#8217;t think it is practical. Because any one can see that his songs are mare entertainment and not serious art work.</p>
<p style="text-align: justify;"><span id="more-1355"></span></p>
<p style="text-align: justify;">Honestly, his song &#8216;Enna&#8217; is no way near the quality that is required from an official Cricket World Cup 2011 cheer song for Sri Lanka. But it is ok as just another Cricket World Cup cheer song, given the sorry state of all the World Cup cheer songs that we have for this Cricket World Cup. <a href="http://www.islandcricket.lk/blogs/srilankacricket/warunanc/world-cup-songs-dilemma" target="_blank">This post on islandcricket</a> gives good coverage in that topic. Actually until this drama break out I thought there is no official song from SL this time. If some one authorized made this official song after listening to it, that is a decision which should have never been taken. If Lahiru wrote this song on a request for an official song for Cricket World Cup 2011, he should not have written that too. And even if he wrote that on a request from some authority, that client should have rejected it after looking at the out put. And obviously Lahiru is not the guy you should hire if you want an official song.</p>
<p style="text-align: justify;">Having said above, Lahirus song is an ok cheer song which goes well with typical Sri Lankan cricket atmosphere, and it is nothing more than a typical Lahiru song. And that was the case until Presidential order to ban the song as official song. Which is the correct thing to do, because it should not have been made the official song at the first place. What is interesting is the reaction generated to that news by the public.  Suddenly the entertaining singer have become the root of all evil. You can see that in most of the comments posted in following links on dailymirror.lk. <a href="http://www.dailymirror.lk/news/9958-sl-bans-violent-cricket-world-cup-song.html" target="_blank">Link 1</a>, <a href="http://www.dailymirror.lk/news/9993-lahiru-issues-clarification.html" target="_blank">Link 2</a>. It is interesting to watch how Sri Lankan minds work.</p>
<p style="text-align: justify;">/Rakhitha</p>
<p style="text-align: justify;">&nbsp;</p>
<p><b>Related Posts:</b><ol>
<li><a href='http://rakasuniverse.info/2011/02/21/no-papare-bands-at-cricket-world-cup-2011-matches/' rel='bookmark' title='No Papare Bands At Cricket World Cup 2011 Matches?'>No Papare Bands At Cricket World Cup 2011 Matches?</a></li>
<li><a href='http://rakasuniverse.info/2011/02/25/cricket-world-cup-2011-live-streaming-link/' rel='bookmark' title='Cricket World Cup 2011, Free Live Streaming Link'>Cricket World Cup 2011, Free Live Streaming Link</a></li>
<li><a href='http://rakasuniverse.info/2010/03/22/first-ever-royal-thomian-twenty-20-cricket-encounter/' rel='bookmark' title='First Ever Royal Thomian &#8211; Twenty20 Cricket Encounter!'>First Ever Royal Thomian &#8211; Twenty20 Cricket Encounter!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rakasuniverse.info/2011/02/25/drama-over-enna/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

