Clean and minified Javascript

February 3rd, 2010 Comments off

It has been a while since I last posted a technical post. I’m sorry, but I am too busy enjoying my work to keep you posted as much as I should.

Just a few days ago I was playing around with YSlow and PageSpeed, two add-ons on Firefox. Both stated my Javascript files were 1) to many and 2) not at all at minimum size.

Searching for an automated way of cleaning up and minifying my Javascript files, I bumped in on JSMin, a Javascript minifier that can be downloaded in C#. Do you hear the term HttpModule in your head already as I did?

When you try to implement JSMin, do consider the fact that your Javascript files will be stripped really rigorous: some of my files did not work anymore after minifying. The reason for this is that Javascript gives you the opportunity to write bad code. To prevent myself from writing rubbish Javascript files that fall apart using JSMin, I now use ‘the tool that hurts feelings’, JSLint. It hints you about bad code and, when obliged to, prevents you from failure when using JSMin afterwards Clean and minified Javascript icon wink

Lucky coding Clean and minified Javascript icon smile !

Categories: .NET, asp.net, c#, javascript, tip

First aid…

December 16th, 2009 Comments off

Again, off topic… But there is news to announce First aid... icon smile : I just passed my first aid exam – or EHBO axam in Dutch - (that’s one of many hobbies).

First aid... ehbo 154x219

If you are going to be out of luck some way and I happen to be in the neighbourhood, pray for me really knowing everything by heart at that moment First aid... icon wink !

Categories: Uncategorized

Move IMAP Personal Folder File in Outlook 2007

December 3rd, 2009 1 comment

This post is kind-of off-topic concerning my main blog topic area, but 1) it has been a while since my last post and 2) the topic has caused me a headache, so I decided to blog it.

Besides my own mailbox, hosted in Exchange, I often load other IMAP mailboxes in the same Outlook profile. IMAP tries to work in the same way as Exchange (it leaves all messages on the server and – if properly configured – also stores sent items there). So far, so good.

Here comes the nasty part: reading this post, you probably faced the same problem as I did. Moving the data file from your personal folder to another folder is not just as easy as when working with a POP3 mailbox – when moving, Outlook just keeps generating a new PST file when you delete it. Besides, there is no option such as ‘move mailbox’.

Just a note before you read on: you cannot reload an ‘IMAP backup PST file’. If you are trying to do anything like that, just stop since you will fail reaching your goal. Therefore, backing up IMAP folders does not make any sense.

After the misery from the previous paragraph I can give you some relief: it is not hard to move the PST file. It’s just the ‘workflow’ that matters:

  1. Close Outlook.
  2. Open the Mail item in Control Panel.
  3. Open the profile to work on and go to its data file(s).
  4. Locate the original data file location.
  5. Let the data file window stay open!
  6. Move the PST file. Don’t rename or point to another file – silly, yes I know – or an empty PST file will definitely be created in the original folder.
  7. Double click the data file in the window you should have left open. It shows you an error message and after clicking that one away, you can select the new location of your mailbox.
  8. Close all mail windows.
  9. Open Outlook.
  10. [Check the original PST file folder for possible newly created mailbox files - if so, you made a mistake following my guidelines Move IMAP Personal Folder File in Outlook 2007 icon wink .]
  11. You’re done!

Cheers!

Categories: mail, tip

Just banned IE6

September 23rd, 2009 2 comments

Hi all,

Unfortunately for all my blog readers stuck on IE6, I decided to leave IE6 without water and bread to help it die Just banned IE6 icon smile . In plain English: visitors to my blog using this crappy browser no longer get access to my blog, instead they are facing a nice-looking popup, asking them nicely if they already know to be outdated (and how to become alive again Just banned IE6 icon smile ).

The idea comes from http://code.google.com/p/ie6-upgrade-warning/. As a programmer, I decided to tweak the script a little to provide a better looking popup for my beloved IE6 visitors (statistics state that they are responsible for about 7% of my site visits, when I am writing this post – something to keep in mind when designing the get-alive-screen Just banned IE6 icon smile ).

What did I change?

  1. I added some scripting to disable select boxes below my popup (guess: a nasty IE bug keeps popping them over my popup, which troubles the IE6 view on my blog).
  2. I also changed the background to #ccc for a more relaxed view.
  3. For the same reason  I also changed opacity around the popup to 75% (just enough to see how interesting the blog could be, should they not have IE6 anymore).

Have a look at the result:

Just banned IE6 bye ie6 w600

You can download the source code for this goal on the website mentioned above. The altered javascript file is located here: warning.js. Good luck banning IE6 Just banned IE6 icon smile !

Categories: Uncategorized

Great: happy talk

September 7th, 2009 Comments off

Surfing the net, I stumbled upon a great post about so-called ‘happy talk’. Reading it, I laughed a lot. Jeff Atwood, I will read your blog more often Great: happy talk icon smile ! The link: http://www.codinghorror.com/blog/archives/001300.html. Enjoy reading Great: happy talk icon smile !

Categories: Uncategorized