Friday, July 31, 2009

Internet Explorer session cookie problems

will make you bang your head against the nearest wall if you are using non alpha numeric characters in the domain name. Something like So all you who think that you've got your Dev workflow just right THINK again!

Once again, thanks Micro$oft!

Tuesday, July 21, 2009

LOL /.

Well the /. crowd really did it this time. Starting from Negroponte saying that
"Putting a crank-shaft on the XO laptop was a mistake, but the biggest mistake was not having Sugar run as an application on a vanilla Linux laptop"
the Slashdot title ended up saying
"Negroponte Sees Sugar As OLPC's Biggest Mistake"
and following TFP with a lot of FPC.

Personally I was unaware that the OLPC Sugar was a messed up fork. Now I see why they could have considered XP as a viable alternative :p

C'mon guys, CRTFA, WTF!

Friday, July 17, 2009

Safari is the best web browser for Leopard

[Update 2 Jun]
Google Chrome rocks!
Still low CPU. In fact the only thing form it that does anything is the process that runs the Flash Player.
And it has the CMD+Numeric key combo to jump between tabs.
I would say that Google Chrome is better than Opera for OSX Leopard. I did not install any extensions except the Flash Block so I can't judge how it behaves under extension bloat. But I don't need any extensions. I just need a fast browser to access the cloud ;)

[Update 30 May 2010]
Well Opera does rock and it works really well. But it's buggy and not supported. I had issues using Basecamp and the support told me that they do not support Opera. And post editing on Blogger has quirks. And some more little annoyances. So I tried to go bleeding edge and use WebKit nightly. It was mad and in no way usable. I know, I know, it's not supposed to be.
So I still needed a WebKit based browser.
OK, I'll say it! I'm running Google Chrome! ARE YOU HAPPY?!!!
I am!
The low profile it keeps is actually scary. Also it uses a lot of proceses. Looks like each tab has it's own process. But still the sum of CPU usage is very low. Safari/WebKit was using empty 12-15 % on par with the FFat boy. Chrome is below 7. All those surveillance data computing and sending routines must be really well optimized. Good job!
And yes, I installed Flash Block. I too am weary of using my CPU cycles to run banner ads that I don't even notice.
Well since we switched to Google Apps Enterprise at monocom it's all in Good's hands anyway...

Well what can I say. So far Opera rocks. I didn't get into it's features or widgets or anything. Don't even use the gestures although I was a big fan of the Firefox extension. I remember my room mate using Opera on his Pentium 100 back in 2002 on Win'95 and telling me that it rocks because it's lightweight and fast. Well that turns out to be true for Leopard 7 years later as well. It's a bit quirky with the page renderings, still no flash transparency and some pages just don't work but it's always good to have yet another perspective on the web ;)
Safari hogs my CPU when it needs to do AJAX calls. Like Netvibes and the likes. It really feels like it does most of them asyncroneously. Strike 2 Safari! Urrrrr OUT!
Enter Opera. Seems to ask for a bit more CPU than Safari did. We'll see. Maybe by the time I run out of alternatives Chrome will run on a Mac...
Following is the original post:
Simply because Firefox failed me last night.
And you can actually jump to a tab number with relative grace. Read on.
You see, until yesterday I was running two instances of Firefox in different processes. Using the "Nightly Tester Tools" extension I set the title bar of the instance I do dev on to PageTitle - [Dev] and also I can install only the dev extensions on that one. And the other instance that I was using for web browsing got the browsing extensions. Because extensions are a killer. Both feature and performance wise :p
But last evening these two babies were keeping my CPU temp at 70C constantly. The dev instance was hogging about 25% CPU and the other one was going nuts and jumping from 30 to 90. Too many tabs. All needed.
Usually I'm fair when it comes to my processes and I tolerate those that put a high load on my CPU if they're hard workers. But the Firefox surfing instance was going nuts even if hidden or minimized. So I used the Force. Force Quit that is.

"For my ally is the Force. And a powerful ally it is."
Fired up Safari. Latest 4.0.1 update. I used it before on occasion so the killer "Top Sites" was long gone. Hmm, Home Page was set to blank. Niiiceeee. Oooo, a Develop Menu item. Aaaaaaa.
Well I won't use it for dev. Had to in Jan this year. Doesn't really work reliable. It's cute though. Not wrong. Just not right.
And it seems to behave better when minimized or hidden. Lower memory footprint also. Could be just wishful thinking from my side though. Proceed with caution...
Deleted all bookmarks. I don't get it. Aren't bookmarks pages that I was supposed to mark so I find them later? Well surely Apple already knows what I'm going to mark. Amazon, Weather, all my favs. Must havez for sure. Firefox bookmarks export, Safari import, little arranging, done.
And now let me get to the best part. You see, my must have Firefox-for-web-browsing feature is the Command + n combo to jump to tab number, 0 being for the last tab. In Safari that opens the bookmark number in the current tab. On a scale from 1 to 10 for annoyance that gets 100 points. How stupid can Apple be to think that I have some bookmarks that are both so important to need an open combo _and_ so useless that I will close them constantly instead of leaving them open for later re-checking. I don't get it. Am I the only one who leaves the Gmail window open instead of opening it using a karate combo, checking the latest emails and immediately closing it using another karate combo even more deadly than the first one. I can only imagine the Apple employees opening and closing tabs all day long at the speed of light. Gimme a break!

I hope you are already using Quicksilver. If not stop here and go get it. WHAT ARE YOU THINKING?!

So how can you jump between tabs in Safari like in Firefox using a 2 keys combo?
You can't :)
But you can do it using a 4 keys combo. It's done by using Quicksilver to run an AppleScript that does the switching for you. Here's how:
  1. in Quicksilver go to Triggers, press the + at the bottom > HotKey
  2. in the "Select an item" press "." and paste this Apple Script

    tell application "System Events"
    set frontmostApplication to name of the first process whose frontmost is true
    end tell
    if frontmostApplication is not equal to "Safari" then return
    tell application "Safari"
    set tabNo to choose from list {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}
    if tabNo is false then return
    set tabNo to first item of tabNo
    if tabNo = 0 then
    tell front window to set current tab to last tab
    tell front window to set current tab to tab tabNo
    end if
    end tell
  3. press Tab and in the "Action" start typing "run". It should end up saying "Run as Apple Script". Save it.
  4. Double-Click on the Trigger column of your newly created item and in the right panel give it a nice name and Edit the Hot Key to "Command + 1"
  5. In the "Scope" tab select "Enable in selected applications:" and in the lower box type "Safari" and hit Enter. Not sure if it does something major so if anyone can clear this up please drop a comment.
  6. Done. Now when you press "Command + 1" and Safari is in front you will be prompted with a list from 1 to 9 and 0. When you see the list press the tab number of your desire and hit Enter. You can hit ESC to get rid of the dialog.

It should look something like this. I wanted to put the pic directly here but Safari's the only one who messes up the post source and doesn't show it properly. Strike ONE Safari!

The only downside is that it kills Command + 1 in Firefox. I tried to check for Firefox in front and tell it to go to first tab but I got a weird AppleScript error. I can live with this though. On a second thought using "Command + 0" looks like the best option. "Command + 1" is just too important ;)
So far Safari rocks. There is a considerable amount of features that I'm missing but as I get into using Safari more I'm sure some good alternatives will pop up. Yeah, it has a pop up blocker too!
Hmmm, should I disable it then?

Monday, July 06, 2009


Dear readers,
Lately I've been knee deep into SPAM issues. But I am not getting spam, I'm just trying to figure out how this bussiness of not sending it actually works. The issue is more tricky than I originally thought as it involves some voodoo criteria employed arbitrarily by the servers that receive the messages in order to mark a message as SPAM.
It alls tarts from the CAN-SPAM Act of 2003 and the rather natural eagerness of the hosters to abide to it. Now the anti-spam policy differs for each hosting provider and they also have different rules depending on the type of service you're getting. I got into the issue starting with a Rackspace Cloud Server and so here's my advice to you regarding your anti-spam compliance:
  1. Don't spam and get a decent hosting. The extra $ will pay back. It's not like it's some millions USD $ but it does come at an extra cost.
  2. Spammers are humans too. If you must spam get a server as far to the East as you can or on a very obscure hosting provider and don't sleep at night. You could find one in Romania too I guess...
  3. In order not to be regarded as a spammer carefully read your service provider Anti-Spam policy. Here's Rackspace Cloud Servers and here's Dreamhost
  4. Check Google's explanations on what they treat as spam and how to avoid it in their Bulk Mail Sending Guide
  5. At a minimum employ reverse DNS, SPF and play nice

Now I am still working on this so the above should be regarded just as some guidelines to get started with. If anyone dropping by here has some good hints please do share :)
Many thanks in advance!

X-SpamScore: 16.3