Nov 23, 2009

Mouse wheel affects: Focus vs Mouseover

I was recently asked to cite sources of applications that have their scroll wheel act upon their moused over target, as opposed to the mouse wheel acting upon the application's focus.

I am pro-Mouseover scroll wheel. Among the mouseover based, there are two camps. Those that ignore the wheel when the mouseover doesn't make sense, and those that use the focus when the mouseover doesn't make sense. I agree with the later.

Mouseover based: Uses mouse location to decide what the scroll wheel means.

Firefox v3.5.5 Tabs vs Window
Picasa 3 v3.5.0 Explorer vs Picture list
Calibre v0.6.7 Content vs Detail
TextPad v5.2.0 Explorer vs Content
Photoshop v8.0 Picture vs Picture
Google Earth v5.0.11733.9347 Left Menu vs The Planet >.<
FreeMind v0.8.1 Content vs Notes

Focused based: Uses the application focus to decide what the scroll wheel means.

Visual Studio '05 v8.0.50727.42
Windows Explorer XP Pro SP3
Excel '03
Dreamweaver MX v6.0
EVEMon v1.2.8.1385
FileZilla v3.3.0


Cool Edit Pro v2.00, Mousing over the sound wave and using scroll drops focus from anything else. Otherwise focused based.

Nov 11, 2009

SVN Automated Local Update


This short tutorial will get SVN to automatically grab any changes to a SVN repository for you at designated times. I use this so that each morning, I have a "what was changed" report, without the monotonous select all folders and ask for an update. You will need TortoiseSVN installed, and running Windows for this script to run correctly.

The Tutorial

Start by copying this base script into TextPad (or your text editor of choice):
@echo off

echo == Initiating system instance variables...
echo. -- Setting the variables...

:: Here you need to make some changes to suit your system.
set SVN=C:\Program Files\TortoiseSVN\bin

:: Unless you want to modify the script, this is enough.

echo. %SOURCE%
echo. %SVN%
echo. ++ Done setting variables.
echo == Updating source from SVN
echo. -- Running update...
"%SVN%\TortoiseProc.exe" /command:update /path:"%SOURCE%"
echo. ++ Done.

echo. -- Cleaning up...
set SVN=
echo. ++ Done.
Edit the SOURCE's CHANGEME to a directory that you could normally right-click and select "SVN Update". This address can be grabbed with a quick copy paste of the address bar when you have navigated to that folder in Windows Explorer. Such an entry should appear as so:
set SOURCE=E:\My Files\My Work\SuperSecretProject
Save that script as "SVNUpdateMyFilesPlease.bat". Next step is to get that file to run at proper intervals of time. Navigate to: Start -> Settings -> Control Panel -> Scheduled Task -> Add Scheduled Task.

In the wizard, hit next, then browse for your bat file you just made (you did test it to be sure it works, right?). From there, I trust that you can figure out the rest of the wizard.

If you have multiple projects, you need to make multiple bat files and multiple schedules, right? Wrong. All on one line, keep adding each project behind the last with a "*" between each.
set SOURCE=E:\My Files\My Work\SuperSecretProject*E:\My Files\My Work\KindaSecretProject*E:\My Files\My Work\ProjectIKeepForJobSecuirty*E:\My Files\My Work\ProjectThatWillHelpMeRuleTheWorld*E:\My Files\My Work\MuhahahahahahahaProject
The ["%SVN%\TortoiseProc.exe" /command:update /path:"%SOURCE%"] line can edited to do many things, such as close the update window when there were no errors, conflicts or merges.
%SVN%\TortoiseProc.exe" /command:update /path:"%SOURCE%" /closeonend:3
A list of what each closeonend:# does can be found here.

Credit Where Credit is Due

The script that makes this possible was written by varl from The multiple files in one line for windows command line was learned from this random "U B" fellow.

Nov 6, 2009

Grabbing Dews from a Fridge

As I walk off with the first can of Dew, it doesn't seem very cold, so I put it back and grab the other one. It feels much colder, and therefore, is the right one.

I can't help but think that my time holding the first can makes my fingers colder, giving the illusion that the second can is colder. I fear I'll never find the right can the first time.

(We only keep 2 cans in the fridge at a time, and replace them as we grab them. With three drinkers in the house, from time to time, they are both warm.)