Saturday, August 2, 2008

Positioning div tables in center

Sometimes tables gives pain in the neck compared to divs. I needed to replace a table made with rounded corners using images to be replaced by a div tag because dojo Tree widget start going woo hoo with the table. Thus I created a table with rounded corners which got rid of problems with tree widget. But initially I couldn't center the table as there were no css attribute to center the div element. If you know the width of the div you are messing with there is a way to do this using css without the use of javascript!
So if you come across a situation to center the table horizontally here is the style to do it
#centered{
position: relative;
left: 50%;
width:600px;
margin-left:-300px;
}

Convocation

Finally we graduated! :). General convocation for University of Moratuwa for degrees completed from last years convocation was held at BMICH (as always) with presence of Chancellor and other academia on 25th June 2008. Here some of the pictures taken from my phone and Sithara's Camera. Gee that GHOST suite was funny!! :)


Communicasia Singapore from June 17-20


I got the opportunity to be at Communicasia 2008 which was held at Expo, Singapore. I together with Niranjan, and Shehan were there representing the company. Communicasia is regarded as one of the largest exhibitions in the telecommunication domain in our region. We left Sri Lanka from BIA on 17th Morning and was at Changi International Airport, Singapore by 6.30 am local time. We were staying at Golden Land Mark Hotel.


In Singapore almost all the things are defined. So nothing to worry about. If you get into a taxi they are all metered and have the rates written down in shutters. So nobody can cheat. But fairs are little high :). Also there are sign boards to get to anywhere and if you are thinking about violating any signs better have some money with you, as fines are quite high!




Golden Landmark hotel was little far away from Expo where exhibition was at. So we usually took the train from Bugis to Expo, via Tenah Merah interchange. Train service in Singapore known at MRT is quite efficient and cheap compared to Taxis. Ticketing system is completely automated and train service was nothing but great.

At the exhibition there were many leading vendors for telecom software and hardware as well as handset vendors. Exhibition halls were huge and there were about 4 of them. You could imagine the trouble of walking though all of them! It took us 3 days to cover most of them. Some of the coolest things that we came across was jeep mounted satellite disk and 3D tv. You can see some pics below