09.29.06
Posted in general at 4:12 pm by Clinton
Check out http://youtube.com/watch?v=DetnKgOxrSI
(Jason sent me the link to gamescheatcodes.co.uk , which is really just a link to the youtube link above. Thanks Jason!).
Yikes.
[edit - title… I dont think it was accurate :)]
Permalink
09.26.06
Posted in web dev, programming, mac/os x at 3:32 pm by Clinton
Moving between home and work, I sometimes have issues with the proxy settings of my web browsers.
Today, I was trying out Eclipse, and while looking at the “what-new” and other tutorial related into, I had problems. The proxy.pac file that work has was making requests for 127.0.0.1 (aka “localhost”) also go through the proxy. Now, 1) I think that’s the wrong setting - if I ask for localhost it should go straight back to me - not to the local proxy and (then be ignored). 2) yes, I could set up the manual proxy settings with the appropriate “ignore proxy for” … addresses, but… i’m a coder at heart, so what I could I do?
Write my own (local) .pac file, and tell my browser to use that of course! :)
// Clinton’s custom proxy files - works at home and at work.
// Change the work vars to suit your home/school/work needs
// If you have multiple proxy setups at home, double-up the proxy behaviour.
function FindProxyForURL(url, host)
{
var work_ip = “136.186.0.0″;
var work_ip_mask = “255.255.0.0″;
var work_proxy = “PROXY 136.186.1.14:8000; DIRECT”;
// If only hostname specified, local host so go direct
if (isPlainHostName(host))
return “DIRECT”;
// local host is always direct
if(isInNet(dnsResolve(host), “127.0.0.1″,“255.255.255.255″))
return “DIRECT”;
// Am I at work? Check for my IP in the work ip range
if (isInNet(myIpAddress(),work_ip,work_ip_mask))
{
// Connect directly to local work domains
if (isInNet(dnsResolve(host), work_ip, work_ip_mask))
return “DIRECT”;
// Is this a protocol that needs to be sent to the proxy?
var bits = url.split(‘:’,2); // set limit - only need 2
var p = (bits.length==2) ? bits[0] : ‘’;
if (p ==‘http’ || p == ‘https’ || p == ‘ftp’ || p == ‘gopher’)
return work_proxy;
}
// if you get to here, you don’t get a proxy
return “DIRECT”;
}
It’s a quick hack, it works (so far) for me, and ymmv, but if you find it useful as well, that would great. This technique could be (and has been) extended to support ‘ad’ filtering from known URLs as well. There is a shExpMatch(url, “http://ads.somedomain.com/*”) function - I was hoping for regex powers, but alas it just supports “shell expressions” and that ain’t half as fun. :)
Helpful links on PAC files:
* http://en.wikipedia.org/wiki/Proxy_auto-config
* http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
* Firebug http://www.joehewitt.com/software/firebug/ - yes it will tell you about errors in the pac file as well - v.cool.
Permalink
Posted in general at 9:05 am by Clinton
My friend Mark was at Bangkok Airport a few weeks back. He saw this on the monitor and thought I would find it amusing… I thought I would share. :)
Permalink
09.19.06
Posted in general at 8:41 pm by Clinton
I’ve been wanting an easier way to un-minimize windows in OS X. Unlike other users i’ve spoken to (yeah, I mean Andrew) I tend to minimize windows rather than use a multiple-window (ie virtue desktop) setup - probably out of habits I developed in windows.
I started looking for a solution by searching for some magic key combination I’ve come to expect from OS X, but no joy there afaik (or at least no standard that I know - let me know if i’ve missed something obvious).
However, I google and found a little app called Witch (Window Switch) by Peter Maurer. Basically, I think it’s great. Now, using alt-tab I can switch to any window of any app - basically, it behaves like Windows does with alt-tab.
I have read that for some people witch is slow to pop-up, but that hasn’t been an issue for me. Setup does require turning on “access for assistive devices” in universal access (designed to allow assistive software to help users navigate other applications - a setup I think is a good design). Check out the website to see screen shots of witch in action.
There are heaps of settings, but I’m still using the plain-vanilla setup and that’s been fine.
Permalink
09.15.06
Posted in mac/os x at 10:23 am by Clinton
Okay, in the ever-increasing learning path of doing things the os x way, here’s a few more things I now know that I didn’t know that Andrew hasn’t posted :) …
- VNC - I’m using “Chicken of the VNC” (GNU) (based on the VNCViewer)
- SFTP GUI - Fugu (thanks Lucien for that pointer)
- IR Control (for PowerPoint that is) - iRed Lite (Free beta download - shareware in future). (Thanks Andrew for that one)
- Date/Calendar from Entourage - MenuCalendarClock
from Objectpark Software. Free and Pay version.
Installed the os x dev tools… coding time. Screen shots to follow :)
Major frustration - shift+up/down arrow group selection behaviour. Not what I expect, not useful from my pov as is, can’t find a way to make it work the windows way. Yes - windows.
Delphi 7 under parallels runs fine.
Permalink
09.08.06
Posted in programming at 11:49 am by Clinton
Been a while since I tapped away at Delphi code (object pascal the Borland/Imprise variety:) but I was tweaking some older programs recently and wanting to note a couple of resource, … for myself if noone else :)
http://www.delphibasics.co.uk/ a great online reference…
http://www.delphiforfun.org/ Lots of cute programs and help for starters
http://www.marcocantu.com/ Writer of the infamouse “Mastering Delphi #” series of books (some good online freebies too).
Is Delphi going to die? …
Permalink
Posted in general at 11:09 am by Clinton
You might have seen this already… I hadn’t. (Followed Lucien’s geek humour post, read the comment… i think its known as “browsing”.)
http://blogs.sun.com/ThinGuy/entry/the_war_on_terror_as
Still laughing. Back to work.
Permalink