How iPad 2 got me hooked on Apple products

ipad2I consider myself as a reasonable man with a logical approach to things. Recently on May  2011 I bought iPad 2 (Doesn’t sounds very logical, does it?) – it was a birthday present for myself and before buying it I draw a few good reasons for this purchase. Since I am Webmaster and iPad (Safari) becomes trendy I have to test my websites also on Apple devices. (More info: iPad Generates 1% Of Global Internet Traffic)

Another reason – I like reading books while commuting to work (it takes me on average 90 minutes to get to and back from work). Anyway, I just made all these reasons for myself so I can feel less guilty for spending such an amount of money on this “toy”.

This recent purchase really did surprise some of my friends who had always believed that I would never buy anything from Apple as it is:
Continue reading

Posted in Technology | 13 Comments

Firefox3 VS IE9

firefox logoAs a web-developer, I often end up working on several different browsers during the day, so I know all about their various strengths and weaknesses. When I started out in this job, I was mostly dealing with Internet Explorer 6 (or
IE6 for short). Later, I used IE7 and Mozilla Firefox.

With time, I realised all versions of IE have a certain quirkiness about them. When comparing them to the various other browsers, I began to accept a general rule of thumb: Internet Explorer is crap, so I just have get used to adding specific CSS files for use with this particular browser family.

Until IE9 came out this was very much the case, but for me that release was a definite game changer and now everyone’s running tests, trying to prove which browser is better, faster, smarter etc.

Continue reading

Posted in CSS, HTML, Front-end fun | 5 Comments

How the Internet came to be

(From email, author is unknown, would love to give credit)

Well, you might have thought that you knew how the Internet started, but here’s the TRUE story ….

In ancient Israel , it came to pass that a trader by the name of Abraham Com did take unto himself a young wife by the name of Dot.

And Dot Com was a comely woman, broad of shoulder and long of leg. Indeed, she was often called Amazon Dot Com.

And she said unto Abraham, her husband: “Why dost thou travel so far from town to town with thy goods when thou canst trade without ever leaving thy tent?”

camel on wires
original image

And Abraham did look at her – as though she were several saddle bags short of a camel load – but simply said: “How, dear?”

And Dot replied: “I will place drums in all the towns and drums in between to send messages saying what you have for sale, and they will reply telling you who hath the best price. And the sale can be made on the drums and delivery made by Uriah’s Pony Stable (UPS).”
Continue reading

Posted in Jokes | 3 Comments

How to ensure you get the error line numbers in javascript

Recently I’ve been working on a new Javascript game for kids. I found that as the
development of the game progressed along the different levels and code scenarios it became
extremely difficult for me to keep tabs on all the errors that crept in. Eventually, after a little
research I realised that there was an amazingly simple way to keep tabs on the code and to
see what was happening. Let me share my findings with you.

Finding an error line number by using Firefox Firebug

Basically I found it handy to add this line to each JS object:

console.log((new Error).lineNumber + 'description of object')

This way as your code grows or as you change/replace something in your code you can
follow its logic and quickly find any place as you can clearly see a line number.

This is how it looks in Firebug:

example of Firefox Firebug error line numbers
Continue reading

Posted in Javascript | 5 Comments

Seasonal Greetings

I wanted to send some sort of holiday greeting to my colleagues, but it is difficult in today’s world to know exactly what to say without offending someone. So I met with Group Legal yesterday, and on advice I wish to say the following :


santa

Please accept with no obligation, implied or implicit, my best wishes for an environmentally conscious, socially responsible, low stress , non addictive, gender neutral celebration of the summer solstice holiday practised with the most enjoyable traditions of religious persuasion or secular practices of your choice with respect for the religious / secular persuasions and / or traditions of others, or their choice not to practice religious or secular traditions at all .

I also wish you a fiscally successful, personally fulfilling and medically uncomplicated recognition of the onset of the generally accepted calendar year 2011, but not without due respect for the calendar of choice of other cultures whose contributions to society have helped make our country great ( not to imply that [plug in the name of the country you're in, please] is necessarily greater than any other country ) and without regard to the race, creed, colour, age, physical ability, religious faith or sexual preference of the wishee .
Continue reading

Posted in Jokes | 4 Comments

Full Frontal 2010 in Brighton

Full frontal javascript conference My wife had learned that in recent years Brighton has become a destination for nudists and she was a little upset last month when I told her I was to attend a Full Frontal Javascript conference 2010 there.  I explained to her that the conference was aimed at Front-end Developers and others who were interested in the future of the web and the role of Javascript.
Delegates (or their wives/partners) were not required to take their clothes off. And in any case, November was no time to be parading around in the nude on a beach in Brighton.

Continue reading

Posted in Conference, Javascript | 2 Comments

Javascript Math Game

The very first version of simple javascript Math game. The idea of game is simple just try to get as many points as possible.

How to play Javascript Game:

  • Enter your name (40 characters)
  • Click on the “Let’s start” sign
  • Wait for two numbers and use your keyboard to input answer
  • Press enter and wait for another two numbers
  • Good luck!

Comments and suggestions are welcome!

Continue reading

Posted in Game, Javascript | 7 Comments

Lucky dip for Euro million

After some Sunday fun with Javascript the result is – a random number generator for the Euro million lottery! My aim was to explore arrays and objects, and the best way to do this is by writing a simple application. The Javascript is easy to spot in the page source and I did make a lot of comments (to clarify the code). I nearly forgot… if you win with the numbers generated and get your million, don’t forget to send a few percent to me! :)

 
 

You can download the code of Lucky dip for use on your website. Add the Javascript and two lines with
<div id=”despription”></div> and <div id=”outputThis”></div> on your page and adjust CSS. Would be great if you link back to this page :)

Posted in Javascript | Tagged , , | 12 Comments

Word counter

Here’s a handy word counter for any naughty schoolchildren who have been told to write 200 words on why they’ve been given another detention.

Don’t waste any more time than you need to: simply copy and paste your essay into the box below

Alternatively, in terms of maximising the SEO on your site, you can add Meta description tags for each page. The ideal length is between 140-160 characters – use this tool to help you out!

Continue reading

Posted in Javascript | 5 Comments