www.netsi.dk

"The internet is just a layer on the real world" (don't forget that!)

Work-arounds for 9 MSIE bugs…

If you implement on the web, chances are that you have to make som work-arounds from time to time. The page “9 Most Common IE Bugs and How to Fix Them” is a great resource for avoiding such bugs to mess up your layout.

Here is an example from the website:

The output you’d expect:

Tutorial Image

But what IE actually gives you:

Tutorial Image

This is mainly due to IE6 in quirks mode and below not recognizing the auto value we set to the margin property. Fortunately, this is easily fixed.

Share

Google Closure javascript API – good or bad?

Since I first started to juse jQuery javascript API I have been a happy programmer! Things like cross browser, easy widget implementation and animation were suddently very easy to use. It was fast to implement, ran fast and as mentioned were rock solid accross browsers on various platforms! Finally: It started a trend of worldwide unity amoung developers – people very moving as a group.

Javascript frameworks – a litle background
Last year Microsoft realized that jQuery was a very powerfull and solid javascript framework, the simply decided to adapt it and use it as their prefered javascript API. Not a thing which done often by such a big player! The company which perhaps has as many people who hate it as it has followers realized that open source code is something to respect and adapt!

Google Colsure on the other hand – what is it? As I understand the framework is something which Google has developed for internal use, and now has opened up, so that everyone are free to use it. I must admit that I am not totally into all the terms of use and the history of this framework. However IMHO:

We don’t need Google to put one more player on the field of javascript frameworks! When it comes to javascript frameworks we need the unity amoung javascript developers – and a framework like provides all the extensibility for any Google special needs. 

What to do with “the new Microsoft” :-) ?
It would be unrealistic to expect Google to “drop” its Google Colsure framework, but us – the javascript developers – might put presure on Google (the new Microsoft?). I for one do not need another javascript framework. So I will continue using jQuery.

I do not see Google as the new Microsoft – and Microsoft is not a bad company in my eyes. What however is bad is when one company is too big and can ignore other players without getting into trouble. Google is probertly not trying to push other javascript frameworks out of the field… Right Google? :-) Perhaps Google could try to convert their ideas into extentions/plug-ins to jQuery?

Other opinions about Google Closure
Using TweetDesk I set up a search for “Closure Library” to follow the tweets about the Google Closure Library. Just followed one of them to: http://www.sitepoint.com/blogs/2009/11/12/google-closure-how-not-to-write-javascript/

image

That article was written by Kevin Yank and he referes to some Google Colsure critism spoken by Dmitry Baranovskiy. I myself have coded many lines of javascript and learned things just by reading this article! I also saw some scary “mistakes” which Dmitry pointed out in the new Google Closure framework. One of them was testing if a var was of the type String (From base.js, line 742):

1
2
3
goog.isString = function(val) {
  return typeof val == 'string';
};


The problem with that method (isString) is simply that it fails if you call it with a String object! Not ! If you call it like this: goog.isString(new String(‘My string’)) it will return false!

Ofcause nothing is perfect, and the points by Dmitry Baranovskiy could easily be changed as a normal bug is fixed in any javascript framework. What scares me is the fact that many people seem to think that Google equals perfect, and if many people are non-sceptical about things developed by Google (Yahoo, Microsoft or anyone!) then perhaps they will leave jQuery and start using Google Colsure Library… I hope not!

Share

Custom fonts on the web? – any fonts…! We are getting closer to having just that at our hands! Visit typekit.com.

On my twitter account I read a “twit” from the Smashing Magazine twitter page: “Long live beautiful typography on the Web – Typekit is live and available for everybody”. That sounded really nice, as I thing that some day we should be able to make the of a webpage in the same elegant style as you can today in DTP!

This is a first hand blog post which should perhaps just be categorized as a note – so please have that in mind. I have not any conclusion but I found the website so interesting and potential exicting that I decided to write this blog post. Just watch this screen shoot from Firefox – those are not bitmapped! They are true fonts, which I should note loaded so quickly that I did not notice any font replacing taking place!

image

So go visit this website: http://typekit.com/libraries/full?style=Scriptx

Please note that some parts of the site does not work in :-(

Share

Polaris – a desktop gadget/widget to visualize your Google Analytics information

So you have a website which have the code embeded and in that way locks and tracks all visits on your website. Now you may find it just a litle difficult or too complicated to

  1. open a browser
  2. goto the root of Google Analytics
  3. log in to goto the dashboard of the Google Analytics start page.

just to gain access to the statistics information from your website. Anyway there are easier ways to gain access to (at least some of) the statistic information about stored at Google Analytics.

Meet – a free desktop gadget/widget!
As you probertly allready have realized the net is filled with nice gadgets/widgets which does nice everyday tasks for you. Well, if not perhaps it is about time!

Polaris can be installed on your computer and after having entered the needed login and password for your Google Analytics account, you will have access from your desktop to the basic statistics stored at Google Analytics. Try it! I like to have it installed on my desktop and here are some screenshoots from my Polaris gadget.

image

image

image

Share