Tuesday, January 26, 2010

Trying Tumblr

I'm trying a post on tumblr to see if I want to make the jump from Blogger to Tumblr.

Thursday, September 24, 2009

Boost 1.40.0 universal binary problems

If you've run into issues like I did trying to compile a universal binary of boost on Snow Leopard, then hopefully this will help you..

As reported in: http://lists.boost.org/boost-users/2009/09/51696.php

Here is a patch that lets you build, no ppc64 however. http://gist.github.com/192771





--- tools/build/v2/tools/gcc.jam.orig 2009-09-24 09:25:20.000000000 -0400
+++ tools/build/v2/tools/gcc.jam 2009-09-24 09:28:02.000000000 -0400
@@ -368,4 +368,11 @@
}
}
+ else if $(os) = darwin
+ {
+ if $(model) = 32
+ {
+ option = -m32 ;
+ }
+ }
else
{
--- tools/build/v2/tools/darwin.jam.orig 2009-04-14 03:59:30.000000000 -0400
+++ tools/build/v2/tools/darwin.jam 2009-09-24 10:11:02.000000000 -0400
@@ -307,5 +307,5 @@
arch-addr-flags darwin OPTIONS : combined : 32 : -arch i386 -arch ppc : default ;
arch-addr-flags darwin OPTIONS : combined : 64 : -arch x86_64 -arch ppc64 ;
-arch-addr-flags darwin OPTIONS : combined : 32_64 : -arch i386 -arch ppc -arch x86_64 -arch ppc64 ;
+arch-addr-flags darwin OPTIONS : combined : 32_64 : -arch i386 -arch ppc -arch x86_64 ;

arch-addr-flags darwin OPTIONS : x86 : 32 : -arch i386 : default ;

Monday, April 20, 2009

Enabling local Screen Saver for Remote Desktop on XP

In doing testing of VGA captures, I wanted to enable the screen saver for a local user session while i was using Remote Desktop -- rather than seeing the standard login menu.

To enable this you need to use regedit and modify the following key:
HKEY_USERS\.DEFAULT\Control Panel\Desktop\SCRNSAVE.EXE

This key value should have something like: "login.scr", all you need to do is change that value to another screen saver. Type: dir %windir%\system32\*.scr for a list of values.

I would also change the timeout key: ScreenSaveTimeOut value to 1 so that once you login from RDC it will kick in immediately.

Tuesday, March 31, 2009

Vlad on JRuby

In case anyone gets stuck on getting Vlad the Deployer to work on JRuby, here is where you can grab a working fork:

Vlad fork for JRuby

Since JRuby doesn't support fork, this renders popen4 unusable. So, I've patched Vlad to use Java's ProcessBuilder for creating the ssh process.

Friday, March 27, 2009

UUID with JRuby

I've been working with JRuby a bit lately, and I wanted to generate UUIDs in a way that utilized Java's strengths in its extremely rich cross-platform API library. So I created a simple UUID library that implements the same interface as the existing UUID gems like the one maintained by Assaf Arkin.

You can clone the tree or install as a plugin from here: http://github.com/jdamick/uuid/tree