Sunday, June 5, 2011

Success today!

Success today, unlike yesterday does not come from being more powerful than others, taking advantage of others or being better than others. In a global world like the one we are living in, we compete on a level ground. We all have equal access to knowledge resources, the most important of all resources.

So how does success come, only by empowering others are you going to rise. The more you give, the more useful and necessary you are, the more you are going to go high. Sharing freely your resourceful information and other knowledge resources is going to bring home your dreams. Empowering individual souls will make you a god(dess) of opportunities and that is what we call power in the 21st century.

Tuesday, April 5, 2011

Tuwakenya Arrives with a Bang!

Finally Kenyans have an open discussion space where they can share ideas,crack jokes as well discuss and critique the current political drama.

http://tuwakenya.appspot.com is a is a simplified blog-like site that allows visitors to quickly browse articles posted by others. The articles are presented in two lists, one for Most Recently Posted articles and another for the Most Read Articles.

To make it all easy, you don't need to register to start using tuwakenya, provided you a kenyan (actually we don't have a way to know if you really are Kenyan). But you must be authenticated by google before you can Post content on Tuwakenya(e.g by logging with your gmail account)

You dont have to login to read or comment on the contents of Tuwakenya.

Again, be among the first 100 to post content on Tuwakenya. Share your views about the Hague and the Ocampo 6, about the world bank grant to improve slums or even about your village and let Kenyans read and comment on it.

Saturday, March 26, 2011

Aligning Text At the Top a Table Cell

Well, am back again to blogspot after a 9 months break, that was quite refreshing and eyeopening.

Quick to the point, I really had some trouble trying to align text at the top of a table cell, which is understandable, given my little experience in front end development.

Any HTML/CSS developer has heard of the 'text-align' CSS property that can be assigned to virtually all HTML elements. It not only controls horizontal alignment of text but all other HTML objects including div's, and tables. It only takes 3 values which set the alignment to be right, left or center. Notice you can set vertical alignment using this property. So what do you do if you have a table row, in which some cells have text spanning multiple lines while others have single lines but are displayed at the center (vertically)? which is the default for most browsers?

Here is the solution. use CSS property 'vertical-align' which takes 'bottom' and 'top' values for bottom alignment and top alignment respectively.

Here is sample CSS for setting all table data cells to be vertically aligned.

td{
vertical-align:top;
}

Well, have a good time coding in HTML.

Saturday, April 24, 2010

How big is the internet

The internet is huge with over a billion users, approximately 150 million websites and approximately 75 million servers. How heavy would it be, well , not that heavy only 50 grams. That is the combined weight of moving each of the trillions and trillions of bytes through the internet.

Sunday, April 11, 2010

Real Programmers Dont Write Specs

Well, this is not my original content, I have given a link at the end of the article. They are like rules for judging how real a programmer is and I really found them interesting and funny but not necessarily true. I modified some of them a little to fit my context. Enjoy reading.

Real Programmers don't write specs -- users should consider themselves lucky to get any programs at all, and take what they get.

Real Programmers don't comment their code. If it was hard to write, it should be hard to understand and even harder to modify.

Real Programmers never work 8 to 5. If they are around at 8 AM, it's because they were up all night.

Real Programmers don't play tennis, or any other sport which requires you to change clothes. Mountain climbing is OK, and Real Programmers wear their climbing boots to work in case a mountain should suddenly springs up in the middle of the computer room.

Real programmers don't think they should get paid at all for their work, but they know they are worth every shilling they make.

Real programmers log in first thing in the morning, last thing before they sleep and many times in between.

Real programmers don't like the team programming concept, unless of course they are the chief programmer.

Real programmers have no use for managers.

Real programmers ignore schedules.

Real programers only curse to inanimate objects such as loops, variables and monitors.

Real Programmers spend 70% of their work day fiddling around and then get more done in the other 30% than a user can get done in a week.

Real Programmers don't do documentation. Documentation is for those who can't figure out the listing.

Real programmers are surprised when their cars' odometers dont turn from 9999 to 999A.

Real programmers think they know the answers to your problems and will happily tell them to you rather than answer your questions.

Real Programmers' programs never work right the first time. But if you throw them on the machine they can be patched into working in "only a few" 10-hour debugging sessions.

Real Programmers don't write in Visual BASIC. Actually, no programmers write in Visual BASIC... after age twelve.

Partly adopted from http://www.multicians.org/thvv/realprogs.html