The infamous Mac mouse acceleration curve

December 22nd, 2011 § 0

This tip will not make the mouse on your Mac behave exactly as a Windows mouse.

But pretty darn close.

To do this, you need 1) A non-Apple mouse (Logitech, Microsoft, etc..) which comes with it’s own adjustment panel/settings and 2) some patience.

1. Fire up the mouse preferences. Then, fire up your mouse manufacturer’s preference pane.
The key is to counter-weight the curve of the Mac. So, instead of setting the Mac curve to neutral which might be the obvious choice, you decrease the acceleration.
2. Once your mouse moves slowly, switch to your mouse manufacturer’s preference and bump up the acceleration.
3. Play with the settings and tweak it. I think you’ll eventually find a setting that feels at least somewhat familiar. (For me, the biggeste annoyance is the acceleration at the beginning, it feels sluggish and delayed.)

Here’s a screenshot with my settings. I use a Logitech Anywhere MX. Good luck.

Mouse acceleration settings

Silverlight..your typical MS product?

September 19th, 2011 § 0

I just had a very Microsoft-experience.

I fired up this: http://channel9.msdn.com/Events/TechEd/NorthAmerica/2011/DEV326
It’s about to tell me the future of Visual Studio! Yay, but only if.. I use Silverlight. Ok, no problem. It’s a video, I don’t care if it’s Flash, Silverlight or some non-plugin format.. However, I do care if it does not work, even though I have the appropriate plugin. So, what in this video is so complicated that;
a) I need to restart Firefox 6.0.2 (on OS X Lion) in 32-bit mode to get it going?
b) I not only need to do a), but I also have to update my Silverlight plugin to watch a video? A plain old video.
Mind you, updating that plugin means downloading a pkg and running an installer.. Oh, and a restart which is NOT cool if you have +20 tabs open.

Dear Microsoft. I admit, I like some stuff you do…I even use your products professionally! But these things could use some improvement. Pretty please?

Magic mouse behaves differently under OS X Lion

August 13th, 2011 § 0

I’ve noticed one small,
very small detail when using my Magic Mouse in OS X Lion. The surface where the mouse recognizes a “click” has moved further forward on the mouse, at least it seems so. It’s subtle I admit, but I’m missing clicks quite often because of it, and it’s getting to me..
Any similar experiences? Any fixes/hacks for this? I’ve been looking around without any luck.

Update: I solved the problem. I bought a Logitech Anywhere MX. So far, it’s great.

Hickups when upgrading OS X Lion

July 20th, 2011 § 0

Upgrading your cat.

These are the problems, issues, annoyances and tweaks that I’ve experienced so far when upgrading from OS X Snow Leopard to Lion.

For starters, spotlight lost the index of my applications. Then, it started to index one of my external hard drives. Quite random behavior. Now, when I try to Add and immediately remove the Applications folder from the privacy list (so it is reindexed), I get an error while adding it. So here I am without spotlight index on my application folder, which is the thing I use spotlight for 99% of all times.. I guess a reboot will fix the error, will give it a try in a bit.
Update: after a restart, Spotlight started to re-index the whole computer. Great. And it was not just my applications that were removed from the index..

I’ve gotten used to swipe left/right on my magic mouse to go back/forward when navigating in finder. That’s gone, at least as default. Now it switches spaces, more iOS behavior than needed, if you ask me. Also, my Spaces indicator (showing current desktop) was removed from the system toolbar. And I can’t find the Spaces settings to re-add the icon.. Instead, my user name is there which I won’t be clicking on more than once or twice every month, at most! I don’t get it.

Warning! I just realized the swipe left/right gesture to go back/forward in web browser has been (re)moved as well. It is now Alt+gesture. This is a disaster, the single most used feature in everyday work. Apple you bastards..
False alarm, go to mouse settings, “more gestures tab”. Then select “Swipe between gestures” option, and set that to use two fingers. Done.

Wifi was turned on during installation, despite the fact that I have a wired connection.

Java required a quick reinstall as well.

Facetime icon was added to dock. I don’t even have a webcam.. *poff*

One positive thing is that the mouse acceleration seems snappier. I do use Mouse Acceleration preference pane (add-on), but it still seems quicker than before.

There you go. I’ll add more when I find out. Oh, yes the scrolling. Totally awkward when using a mouse. Don’t like it, but I’ll try to..

TransactionScope and requirements

May 15th, 2011 § 0

Let me save you some time (that I lost).

If you want to create a code transaction in C# which spans over database transactions, make sure you use 1 connection, and only 1. Unless you really know what you are doing..

Why? Because opening two transactions within the same TransactionScope() will elevate the transaction to a distributed transaction, and that requires additional features by your Sql Server 2008. And you don’t want that. You just want a damn simple transaction, covering both code and database.

How about adding a “requirements” section to MSDN .NET reference? Huh, Microsoft, what about it? That could have saved me a couple of hours..

Firefox Sync causes Firefox to hang or freeze?

May 2nd, 2011 § 0

Having trouble with Firefox 4.0.1 that hangs or freezes?

Try disabling Firefox Sync. I run 1.7 with Firefox 4.0.1 on a Mac with Snow Leopard and I experience situations where Firefox hangs. However, unlike the situations here and here, I’m waiting for Firefox to render pages while my external harddrive winds up. How is it possible that these two have anything in common?

My setup includes two 3.5″ harddrives in a double slot dock connected with USB. One is pure storage, the other one is setup as a TimeMachine disk. The only reason I can think of for FF to freeze until the harddrive spins up, is that TimeMachine is trying to backup some file used by Firefox..but it’s really hard to confirm.

The symptoms are appearing sporadic (once per evening or so), the freeze lasts for a couple of seconds until I hear the harddrive spin up and say “click” and starting to read, and it’s not associated with visiting a specific website. So, then I resort to Google. (Don’t we always?) There, I read on several pages (see previous links) that people have problems with Firefox Sync.

Well, hey. It’s a long shot, but I’ve disabled Sync and…so far I must say I have not had the problem. So, Mr. Internet, how is it that Firefox Sync seems to freeze Firefox while waiting for my harddrive to go “click”? Pretty please?

I’m gonna keep Firefox Sync disabled (only use it for bookmarks..) and enable it from time to time just to sync. Mozilla, I’m disappointed. Yes, Firefox is free. Yes, Firefox is the best browser..but still, this one is a tiny-winy bit annoying.

Nordea och “integritet”

April 21st, 2011 § 0

Personnummer och en fyrsiffrig kod.

Det är allt som behövs för att vem som helst ska se vad jag har betalat, hur mycket och när. Det känns inte särskilt bra, jag föredrar att hålla min ekonomi för mig själv. Så, Nordea, varför har ni så kass säkerhet på er bank? En fyrsiffrig kod? Jag hoppas verkligen att ni har en spärr för hur många försök man kan göra, som spärrar inloggningen efter för många försök.

Hoppas.

Lite bash

April 21st, 2011 § 0

Får det vara lov att vara ett litet bash script?

Jag fick nyligen lust att norpa en bild från en auto-uppdaterande webcam feed. Var 60 sekunder uppdateras bilden. Hur svårt kan det vara? Inte alls faktiskt.

Några rader bash script

#!/bin/bash
#folder to save images to (include trailing /)
path="/Users/username/Desktop/folder/"
if [ ! -d $path ]
then
 mkdir $path
fi

while true
do
 dates=`date "+%Y-%m-%d_%H:%M:%S"`
 curl -s http://www.url.com/webcam.jpg > "$path/webcam-$dates.jpg"
 sleep 60
done

Rad 1: skriptet ska köras med bash som shell.
Rad 4-7: skapa mappen att spara bilderna i, om den inte redan finns.
Rad 9: loopa för evigt.
Rad 11: hämta datum och tid just nu till en variabel dates. Ett kommando mellan `och `anger att vi vill ha output från kommandot men utan avslutande radbrytning.
Rad 12: använd kommandot (programmet) curl för att hämta bilden. -s anger ‘silent mode’, dvs att curl inte ska ge någon annan output än bilden. (Man får annars en progress bar.) Vidarebefordra sen output till filen som anges. $ mellan ” ” tolkas som variabelns värde.
Rad 13: vänta en minut (tills bilden uppdaterats) innan vi kör igen.

Om man sen vill göra en time lapse av det här så kan man göra det automatiskt med Quicktime, men då måste filerna ha sekvensnamn. Då kan man göra såhär (tack Mats) för att döpa om filerna (kan inte testa det här skriptet just nu, men det borde funka ;)):

#!/bin/bash
seq=0
for i in *.jpg do
mv i "$seq.jpg"
seq=`expr $seq +1`
done

Frågor på det?

February 12th, 2011 § 0

Frågor har vi alla.

Och Google är bra, men ibland kan man inte leta fram ett svar så enkelt. Tur är då att stackexchange.com finns. Det är ett nätverk av ca 40 siter i lika många olika kategorier, där du kan ställa din fråga och (ofta) få väldigt bra svar inom kort tid. Det finns nog inte en programmerare som inte hamnat på stackoverflow.com till exempel, som ingår i nätverket. Men det är inte lika många som vet att den ingår i det här nätverket.

Fråga på nu!

Börja utforska

January 30th, 2011 § 0

Varje gång

jag börjar använda en nyinstallerad Windows-dator slår det mig hur fantastiskt irriterande ljudschemat är inställt från start.

Att ha ett ljud för en åtgärd som kallas “Börja utforska” är vidrigt ur så många olika aspekter, att jag inte förstår att den här uppenbara buggen patchades bort för 10 år sedan.
Vem är ansvarig för att det ljudet är kvar? Ljudet är mer förvirrande än användbart eftersom det inte synkar med vad användaren ser. Det kan “ticka” hur många gånger som helst utan att användaren ser någon skillnad. Och när en användare vill bli av med ljudet, ja då får man helt enkelt leta sig fram till rätt inställning eftersom namnet “Börja utforska” dels knappast är något intuitivt namn och dels inte alls är rätt benämning eftersom jag inte alls “börjar utforska” en hemsida varje gång jag klickar en länk. Och rubriken är “Utforskaren” vilket inte alls stämmer eftersom ljudet används i både webbläsaren som i Windows Utforskaren.

Så, nu är det slutgnällt för den här gången. Men för f-n Microsoft, fimpa ljudet!