Friday, August 28, 2009

Refereshing PHP

It was a really nice experience doing a internal website for Mubasher.... I was able to recall lot of stuff which i learned ealier.. also new things. It was a wordpress customization and whist doing it i came across some cool plugins which i think might b worth sharing and also some little code modifications aswell.

Plugins:

WP-Table Reloaded - excellent plugin for table creation and it allows you to sort the table content as well.
wp-dtree-30 - This is one of the nice sidebar widget shows expand/collapsing links

WP-Highslide- this is also a awsome plugin which ucan use instead of a pop-up or even thickbox. You have multiple options and also examples of usage


Tips:
1.When you click on the image iframe, the parent image get hidden. Solution is to go to the highslide.css and change the property of .highslide-active-anchor to visible
2. To hide sidebar from multiple pages use the following code (page IDs are 451, 714):

<?php if (is_page('451')|('714')) : ?>
<?php else : ?>
<?php get_sidebar(); ?>
<?php endif; ?>



3. I had to use a collapsing and expanding table within a highslide and i used the following java ascript which helped me to get this job done:

< script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"> </script >
< script >
$(function() {
$('tr.parent')
.css("cursor","pointer")
.attr("title","Click to expand/collapse")
.click(function(){
$(this).siblings('.child-'+this.id).toggle();
});
$('tr[@class^=child-]').hide().children('td');
}); </script >

<table id="detail_table" class="detail wp-table-reloaded" border="0" > <caption > <strong > Click on the Request to Expand </strong > </caption >
<tbody >
<tr id="row1" class="parent" >
<td >Authentication Request </td >
</tr >
<tr class="child-row1" ?>
<td >Tag</td >
<td >Field</td >
</tr >
<tr class="child-row1" >
<td >9</td >
<td >User Name</td >
</tr >
</tbody ></table >

Tuesday, May 5, 2009

Sunderland MBA

I started the MBA offered by the university of Sunderland UK last Saturday, hope can complete it successfully without any obstacles... :D the first lecture was on Strategic planning and implementation and was cool and didn’t sleep at all. Since it’s a fast track program it is supposed to finish by 2010.

Friday, April 24, 2009

இணையத்தில் எனது முதல் தமிழ் ஆக்கம்

எவ்வளவுதான் நாம் பிற மொழிகளை பேசினாலும் எழுதினாலும் தாய் மொழியில்.... ( நாம் சிந்திக்கின்ற அதே மொழியில்) எமது கருத்துக்களை அதே வடிவில் வெளிக்கொணரும் போது ஒரு தனி இன்பம் .... தொடரும் தமிழ் ஆக்கங்கள்

Friday, April 17, 2009

One of the worst experiences @ RMV

One of the worst experiences so far in my life was when I went to the RMV to take the Diving license, I had a tipical Sri Lankan government organization which is as usual disorganized in work. It is a simple procedure which they had made a big puzzle and now the innocent publics are suffering. I went to get the medical @ 7.30 and got it around 11.30 only. They don’t give you token initially until you do the payment, once you go upstairs for the checkup only you will be given a token and it’s also not based on how you enter (not FIFO)how you document is sent upstairs. For me I was 15 in the first queue and when I went up for checkup I got the 60th number token L.

For those who would like to get their diving license follow the following steps it will make your job easily done with less hassle:

1. Take a Stamp size photo and go to the nearest CTB Medical center and get the medical (They will stick the photo on the medical, based on the category of the license you apply the test will vary). For people applying from Colombo the medical center is @ Nugegoda right opposite to the Bank of Ceylon towards Maharagama(where the overhead bridge ends). You have to do a payment of around Rs 600 for the test and this also depends on the category.

2. Take the Medical with a Identify card copy and hand it over to the RMV at Wehera hera(120 bus root, http://wikimapia.org/791967/RMV-Driving-Licence-Office ). It is less time consuming if you can go early in the morning around 6.30 – 7.00 am. You have to get a token, they will take pictures of you to be printed on the license and you have to do a payment around Rs 2000- 3000 based on the category of the license you apply for.

3. Once you hand over the document they will give a date for the test.

4. On successful completion of the test they will give a date for the trial.

Note:

One day service is only for renewal of license and for people who would like to take new license you have to get a special order showing your visa if you are flying abroad.

Do not ever bribe anyone to get things done, you will be fooled and you can easily get things done if you do the things accordingly.