RaKasUniverse.info

I still don't know why I registered this domain!

Archive for the ‘Tech’ Category

Creating Indexed Properties in C#

without comments

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.

Here we go…

Read the rest of this entry »

Written by Rakhitha

May 11th, 2012 at 9:36 am

From Nokia E75 to Sony Ericsson Xperia Neo

without comments

 

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.

Read the rest of this entry »

Protect-IP is For Those Who Cannot Adopt to Internet Age

with one comment

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 is not how you fight it. And in my opinion this is not even the fight they should be fighting in the first place.

Fight Piracy With Availability

IMO piracy is the answer that internet age has found for inaccessibility. Lower the availability you will find piracy spiking. 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’t has it or few seasons behind or you will have to wait till a DVD release. Most people are not that much patient.

Read the rest of this entry »

Navigating through Linkoping with a dead GPS phone

without comments

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 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.

Read the rest of this entry »

Written by Rakhitha

November 24th, 2011 at 2:11 pm

Moving WordPress – My Story!

without comments

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 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’t need t back up entire home directory or public_html folder. If you have wp-content folder backed up that’s good enough. Because that’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.

Read the rest of this entry »

Written by Rakhitha

October 24th, 2011 at 6:49 pm

Buying Local is Overrated, At least for Web Hosting!

without comments

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 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.

Read the rest of this entry »

Written by Rakhitha

October 23rd, 2011 at 7:03 pm

Nothing Fix a Broken Electronic like a Good Old Bang!

without comments

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’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 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’s like the focus motor is jammed or something.

Read the rest of this entry »

Written by Rakhitha

September 18th, 2011 at 11:04 am

Fixing Flickr Thumbnail Photostream WordPress Plugin

with 3 comments

Flickr Thumbnails Photostream” 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.

It’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.

If you have already used this plugin, you know what I am talking about. “Flickr Curl Function failed to execute. Oops, there seems to be a problem accessing the Flickr information.” is not a very helpful error message :) . However in its community pages 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’t want to mess with PHP or the plugin code of your sites, this is where to stop.

Read the rest of this entry »

Nuclear Fusion in a Cookie Jar

with one comment

World is running out of its energy sources. Most recent breakthroughs were simply efficiency improvements. Most renewable energy approaches such as solar, wind… are not capable of supplying for mainstream demand. Also most of them consume wast amounts of land and don’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.

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’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 ‘Star in a Jar‘. Of course he has had some help.

Read the rest of this entry »

Written by Rakhitha

September 5th, 2011 at 6:46 pm

Electronic Billing Proof, Anyone?

without comments

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’t know, billing proof is a piece of paper which has your name and address on it. Without it, you don’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.

Read the rest of this entry »