Hi, I'm Henrik Joreteg
I'm a happy, geeky, husband and dad. I love skiing, web dev stuff, and independent thought.
Joreteg.com is where I occasionally write about the things that interest me and come spilling out of my brain.
I live in West Richland, WA and happily work as JS developer/president at &yet.
Contact
Email:
Or you can just push this big button to call me:
Links to My Other Stuff
Latest From Twitter
14th
2011
NodeConf presentation video
They released the videos from nodeconf a couple weeks ago. They’re all on JSConf’s Blip.tv page.
Here’s mine: Building Realtime Single Page Apps [VIDEO]
2nd
2011
JavaScript Web Applications
I’m honored to have be a technical reviewer for Alex MacCaw’s (@maccman) book “JavaScript Web Applications”. It’s available as an early release e-book from O’Reilly.
If you’re into single-page app development, it’s probably one of the most complete and up-to-date resources available on the topic. I definitely recommend it.
17th
2011
We’ve just started doing a video podcast about realtime web stuff at &yet. Check it out, much more stuff to come.
30th
2010
JavaScript — as a game of telephone pictionary
Telephone pictionary is where you start with word and taking turns in a circle alternately draw or describe the picture or phrase received from the previous person.
Here’s what happens when you start with “JavaScript” and pass it off to a bunch of nerds at the &yet Christmas party.
Interestingly enough. The last few cards all seem to fit rather well with many people’s perceptions of JS.
7th
2010
How to magically run stuff when you’re near your Mac… or not
What you need
- A Mac
- Some type of bluetooth device you always have with you (let’s get real, if you’ve got a mac you’re using an iPhone)
Step 1.
Download and install Proximity:

Step 2.
Open AppleScript editor and create a script to run when you’re near your computer. Mine is super simple. It just turns off the screen saver and sets my chat status in “Adium” (if it’s running) to available. But obviously you could do anything you can do in AppleScript. Mine looks something like this:
tell application "ScreenSaverEngine" to quit
if appIsRunning("Adium") then
tell application "Adium" to go available
end if
on appIsRunning(appName)
tell application "System Events" to (name of processes) contains appName
end appIsRunning
And create another one for when you’re away. Once again mine’s super simple:
tell application "ScreenSaverEngine" to activate
if appIsRunning("Adium") then
tell application "Adium" to go away with message "Appears to have stepped away for a bit."
end if
on appIsRunning(appName)
tell application "System Events" to (name of processes) contains appName
end appIsRunning
I saved these two scripts in a “Scripts” folder I created in my home directory (fancy that!).
Step 3.
Now all you have to do is give tell Proximity which script to run when and which bluetooth device you want it to look for. If Proximity is running you’ll see a small (somewhat ugly) bluetooth lookin’ icon in your toolbar. Click it to open preferences. My preferences look like this:

Step 4.
Tell @HenrikJoreteg on twitter that it worked for you and that you’d give him a high-five if you were within reasonable high-five range.
