Category Archives: Technology

Mobile, Internet and it’s usage in Sri Lanka

Nielsen Sri Lanka has published some interesting facts & figures about mobile internet usage in Sri Lanka.

A global market research organization says Sri Lanka’s future consumer patterns will be shaped by the growth in internet usage via mobile phones with greater access to social networking sites, particularly among the 16 to 35 years age bracket.

Some interesting facts,

  • Close to 70 percent of the population has a mobile phone
  • Ownership of mobile phone is much higher in the 16 to 35 age group
  • Mobile penetration stands at over 80 percent (more than 16 million mobile connections among a population of nearly 20 million)
  • There are nearly two million internet users in Sri Lanka, representing 14 percent of the population
  • 1.2 million users access the internet weekly or more often with the majority being in the 15 to 25 years age group where internet usage is as high as 26 percent
  • Broadband penetration stood at a mere 0.5 percent
  • Approximately 46 percent of users access the internet through their mobile phones, 10 percent exclusively and 36 percent through a combination of modes including mobile devices
  • Of the total number of users accessing the internet through their mobile phone, 42 percent went to social networking sites such as Facebook
  • 900,000, or nearly half of the total number of internet users in the country, are on Facebook, with 78 percent in the 18 to 34 age group

These are very interesting figures for me when looking at the Sri Lankan perspective :)

Read the full article on Lanka Business Report.

[JOBS] Freelance developers wanted for Magento, Andriod & iPhone

I am looking for freelance developers from Sri Lanka on following areas.

Forward me your contact details (Skype would be prefer) along with the portfolio.

Posting from the mobile

Here i am writing a post using Wordmobi on my mobile.

Just a test post :)

Posted by Wordmobi

Oh no! The net has just 30 years to live!

Doomsday scenarios are so bracing, aren’t they? In the past week we’ve had the government’s chief scientist warning that there won’t be enough food for us all by 2050 and the European Union saying that we might have to fight Russia for minerals and other useful stuff in the Arctic when the going gets tough. And of course I suggested that the only sensible way to close our electricity generation gap would be to embark on a big nuclear power build. (Thanks for all your replies on that. Some were even polite. In answer to the uranium supply question, there are two points: one tends to find more of something once you go looking for it, and fast breeder reactors can produce up to 100 times more usable fuel than you start with. So I think uranium isn’t going to run out, at least until we can build a working fusion plant.)

While we’re on doomsdays, let’s not forget that the possibility of a flu pandemic – perhaps triggered by a mutation of the H5N1 bird flu virus, leading to an I Am Legend-style scenario where our cities are reclaimed by weeds and wild animals – hasn’t gone away; it’s just biding its time.

So let’s quickly examine another doomsday lurking in our not-so-distant future: that in 30 years’ time, the internet will stop working. Or at least, the bits of it that run on Unix. (For once, this is a tale where Microsoft comes out looking well-prepared.)

This is down to what’s being called the “2038 bug”. It arises because Unix-based systems store the time as a signed 32-bit integer, in seconds, from midnight on January 1 1970. And the latest time that can be represented in that format, by the Posix standard, is 3.14am on January 19, 2038. (It’s a Tuesday. Better make sure your desk is clean on the Monday night.)

After that? “Times beyond this moment will ‘wrap around’ and be represented internally as a negative number, and cause programs to fail, since they will see these times not as being in 2038 but rather in 1901″, to quote Wikipedia (tinyurl.com/dzxca).

Early examples of problems have surfaced. The AOLserver web server software tries to ensure that database requests will never time out, not by assigning “0″ to the timeout (which would have been sensible, programatically speaking) but by setting the timeout 1bn seconds (about 31 years) in the future. It crashed on May 13 2006.

But, you say, fretting about this is like worrying about the millennium bug in 1970 – when we were far too busy writing the software to bother about fixing it, which we did anyway in a couple of years, and there wasn’t any harm done. And it’s true that there are a couple of possible solutions, such as changing the counter to an unsigned 32-bit integer, doubling its potential lifespan (and shrugging the problem off until 2106). But that would mess up programs that try to calculate time differences – which is most of them.

The rise of 64-bit systems, with 64-bit counters, puts the problem off a little – about 290bn years, in fact. Yes, lots of us are getting 64-bit machines, and even operating systems. Unfortunately, as with the millennium bug, the risk lies in embedded systems – routers, petrol pumps, even 32-bit file formats that get used by 64-bit systems. Just as with the millennium bug, it will take a lot of expensive investigation to find out just how widespread the problem is.

I dropped an email to Paul Sheer, whose 2038bug.com site watches out for any related news. In 2003 he had wondered if 35-year bonds might show some sort of problems (because financial companies often run Unix systems, and such bones would appear to mature in the past). Anything to report, I asked?

“No reports of problems in a long while,” he replied briefly.

Phew. Perhaps we can all relax for another 25 years or so. Now, what’s this I hear about an asteroid on a collision course with Earth..?


Via The Guardian

Writing Valid (X)HTML

Introduction

The implementation of valid/standard methods, guidelines and best practices will help to produce high quality websites that are accessible to as many as possible. By building valid websites you can save time and money for the development and provides a better experience for the visitor.

Validation is also an important part of web development. Many errors that are hard to find can discover during validation. This is like spell checking and proofreading for grammar and syntax in a document. but is much more precise and reliable than any of those processes because it is dealing with precisely-specified machine languages, not with nebulously-defined human natural language. You can validate your (X)HTML page as well as your CSS.

Here I’m not going brief you about Web Standards, but I’m going to tell how we can use those best practices in Web standards to produce a valid (X)HTML page.

Benefits of having a valid code

  • Future compatibility: Your website will compatible with future web browsers.
  • Simpler development and maintenance: Creating Valid (X)HTML Documents Means Cleaner Code and Easier Maintenance.
  • Faster download and rendering of web pages: Less (X)HTML results in smaller file sizes and quicker downloads. Modern web browsers render pages faster when they are in their standards mode than when they are in their backwards compatible mode.
  • Better accessibility: Semantic (X)HTML, where structure is separated from presentation, makes it easier for screen readers and alternative browsing devices to interpret the content.
  • Better search engine rankings: The separation of content and presentation makes the content represent a larger part of the total file size. Combined with semantic markup this will improve search engine rankings.
  • Simpler adaptation to any media or screen devices: A semantically marked up document can be easily adapted to print and alternative browsing devices, like handheld computers and cellular phones, just by linking to a different CSS file. You can also make site-wide changes to presentation by editing a single file.

Best Practices…

  • Include the correct DOCTYPE declaration at the beginning of the file. A DOCTYPE (short for “document type declaration”) informs the validator which version of (X)HTML you’re using, and must appear at the very top of every web page. DOCTYPEs are a key component of compliant web pages: your markup and CSS won’t validate without them.
  • The DOCTYPE is case-sensitive so use the correct case:
    <!DOCTYPE html PUBLIC "- //W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />
  • Add the attribute xmlns="http://www.w3.org/1999/xhtml" to the <html> element.
  • Close all elements: Omitting </p> is not valid anymore.
  • Change all elements to lowercase: <P> becomes <p>.
  • Correctly specify empty elements: <hr> becomes <hr />.
  • Quote all attribute values: <p align="right">.
  • Always add attribute values: <hr noshade="noshade" />.
  • Always use &amp; in place of &. : <a href="foo.php?chapter=1&amp;section=2 />
  • <form> element should have to have a action attribute always: <form action="#"
  • If you are using name & id attributes in input element, both should be in same name: <input name="field_name" id="field_name" />
  • Use alt attribute always for <img> element: <img src="image.gif" alt="" />
  • Use width & height attributes as in this order in <img> element: <img src="image.gif" width="100" height="100" alt="" />
  • Use a separate JavaScript file always & make sure you have put type attribute correctly: <script type="text/javascript" src="javascript.js"></script>
  • Try to use a external CSS file for styles.
  • Always try to use tables only for TABULAR data.
  • Make sure you are using <th> for table headers & <td> for table data.
  • Elements in (X)HTML must be closed in the reverse order that they were opened in: <strong><em>…</em></strong>

(X)HTML Validation services

CSS Validation services

Accessibility Validation services

Useful Firefox Add-ons for validation services and web development

Feeds In My Google Reader

Here another list from me :) this time it’s all about feeds which I have added to my Google Reader to read whenever I am free. Actually now I am addicted to Google Reader and these feeds. This list is bit long and it’s containing around 78 valid feeds.

Here I have sorted out the list in alphabetical order. This will contain feeds about Web Standards, Accessibility, Usability, User Experience, Web 2.0, Personal Blogs, Technical and Technology, Design Resources and some great online journals regarding web and it’s new trends. This is very helpful for me to keep my self updated on time.

If anyone know any good feed that I have missed here, feel free to add it via a comment.

Turn your blog into a print center using HP Blog Printing

HP Blog Printing makes it easy to add full-featured printing to your blog so users can enjoy a customized read on the go. Starting at the print button, readers can pick and choose the posts they want to print, free of sidebars, ads and other clutter. Each great-looking printout is fully formatted to reduce paper waste.

At the moment HP Blog Printing is available for WordPress and MoveableType.

Let readers create customized “wow” prints direct from your blog—free NOW »

Next Attraction : Apple iPhone

Just another 5 days left for the launch of Apple iPhone worldwide. I’m waiting to throw away my SE K750i and use this truly amazing iPhone.

Apple iPhone
Apple iPhone

Image source Telecoms Korea

Apple say this is Internet in Your Pocket, that means iPhone has Safari, the world’s best web browser integrated to the phone. And also this has Google Map facility, Email facility, Widgets as well as integrated YouTube.
Another best feature it has is the iPod and iTunes. In the iPhone guided tour they say this is the the best iPod they’ve made so far. This has Web 2.0 Application support as well :)

Apple iPhone
Apple iPhone

Image source silverspider.com/

Apart from those this is a touch screen device and the best thing i like in this iPhone is Mac OS X.

iPhone will be available in stores worldwide on 29th June at 6 PM, just 5 days to go.

Watch the Apple iPhone’s Guided Tour here »

Apple iPhone Features »

Apple iPhone Technology »

360 view of the iPhone »

More photos of iPhone »

Server2Go

Server2Go is a Webserver that runs out of box without any installation. That means it is a webserver that can run directly from cdrom, usb stick or from any folder on harddisk. Server2Go allows you to create a standalone working web site or PHP application on a CD-ROM. Server2Go was primary developed for the usage on CD-ROM but there is no problem use it from other drives too. Using a web browser, a user can run php programs as well as view html files on the CD-ROM. He only need to insert a CD with Server2Go under the supported Windows operations systems. The server starts automaticly and opens a browser with the Website of the CD-ROM.

Server2Go was build to replace a tool called WampOnCD that lacks some important features and isn’t activly developed.

Server2Go supports PHP5, SQLite and MySQL.

Checkout the Server2Go »