Tuesday, December 07, 2010

Playstation Move Idea

I wonder when we'll see the first hack of the Playstation camera controller where the camera is pointed at another TV which plays a game perfectly in place of a real person moving around.

Friday, December 03, 2010

VMWare ESXi

Can't be managed with a native linux app.  It's stupid.  This is linux and they haven't gone to the trouble of writing the VSphere client in a cross platform way.  I downloaded the whole thing before I realized "oh, this is an exe.  I can't do anything with this".  What a waste of time. 

Friday, September 24, 2010

Dumb Joke

It would be funny for Tazer to design a stun gun that also detects if your pulse is there or not so it can switch between torturing you and defibrillating you.  The ad campaign would be "Tazes great, less killing"

Friday, July 30, 2010

IPTables Firewall Nonsense

I have three firewall rules:
-A OUTPUT -p tcp -s 192.168.110.41 -d 192.168.111.33 -j DNAT --to-destination 192.168.110.33
-A OUTPUT -p udp -s 192.168.110.41 -d 192.168.111.33 -j DNAT --to-destination 192.168.110.33
-A OUTPUT -p icmp -s 192.168.110.41 -d 192.168.111.33 -j DNAT --to-destination 192.168.110.33

Only the third one (ping!) works. 

The other two result in the log messages:
NAT: no longer support implicit source local NAT
NAT: packet src 192.168.110.33 -> dst 192.168.111.33

What the heck.  I'm just trying to redirect outgoing traffic to a different ip address and the source is specified, not implicit.  I really don't want to read iptables source code, but their documentation and the whole internet isn't helping.


Tuesday, July 20, 2010

How Not to English

I wish more technical reporters on the internet invested in some
college level writing classes. Then they might just sound smart
(which they usually are) instead of merely informed. This occurred to
me while reading Anandtech today.

Wednesday, July 14, 2010

Waiting for Liferay 6.0 GA

Just chalked up new feature request number eleventy million that is already done in Liferay 6.0 but hard to implement in 5.2.3.  Event tags are so nice and so not available to us without hack code.

Wednesday, June 23, 2010

Hard to Debug Tomcat JK Connector Problem

If you try to open a page in Liferay (or any J2EE app) and only see "The data area passed to a system call is too small", chances are you're using IIS and the Tomcat IIS Connector library in front of your J2EE server.  The problem is that the url is too long.  Because Liferay uses the longest urls in the universe I had a similar problem with the Pound reverse proxy, but at least Pound told me what the problem was in the error message ("Error: request URL too long" or something like that).  Naturally, you won't get messages about this in your logs because the request gets stopped before tomcat even sees it.

Here is a mailing list thread about this from 2009.  Basically, it looks to me like the apache guys are misinterpreting the variable INTERNET_MAX_URL_LENGTH from WinInet.h as including the maximum query string length when it is only intended to represent the url before the query string (the protocol, the "://" protocol/domain/path seperator, and the path).  So urls which are valid for IIS can have really long query strings which cause them to break isapi_redirect.dll.  I fixed this by adding a macro (#define ISAPI_MAX_URL_LENGTH 4096) then replacing every occurrence of INTERNET_MAX_URL_LENGTH with ISAPI_MAX_URL_LENGTH and it appeared to work fine.  I'm not a security expert though, I might have opened an exploitable hole.  Point is, it works better now.

If you're not using IIS, I have no idea.

Thursday, June 10, 2010

Liferay JSP Wrapping

The best tip from the east coast developer's thing was about overridding just part of JSPs in ext or a hook if you're modifying the appearance of the liferay core.  Apparently the info was already out there.  I think it should be publicized better, so go read this jsp hook tidbit and it will make future upgrades easier on you if you're modifying the core: Do you need to override JSPs?

Thursday, June 03, 2010

Idea for SUVs

A sun/rain shade that can pop out of the rear hatch w/ when it's raised all the way to make loading groceries in the rain easier and make tailgating more comfortable.  Something like the material in the popup tents that are so common now except it'd just be an extra foot or two of shielding on the perimeter of the hatch and not a wholly separate thing.  It'd have to retract automatically too to be useful in the rain. 

Thursday, May 20, 2010

Dear Virginia DMV

Drivers license photos without smiles are un-American and ugly to boot.  I enjoyed the service and people at the DMV until I remembered that my state government capitulated to outside forces.  Now we all look like we hate living here on our official IDs.  Thanks for nothing.

Wednesday, May 05, 2010

Lunarlite

I wonder if Nike has tried to market their lunarlite foam for use in car seat cushioning.  I don't know what the weight savings vs cost increase might be though.  I also wouldn't drive a car that smells like feet.

Monday, May 03, 2010

JQuery Supersubs IE7/8 Tweak

I probably just botched my version of superfish.css, but I found that for supersubs to work properly in Internet Explorer 7 and 8, I had to change:
                var emWidth = $ul.add($LIs).add($As).css({
                    'float' : 'none',
                    'width'    : 'auto'
                })
To
                var emWidth = $ul.add($LIs).add($As).css({
                    'float' : 'none',
                    'overflow' : 'visible',
                    'width'    : 'auto'
                })
I also added an extraOffset setting which nudges submenus left or right depending on the alignment, but it's probably another fix my own bad css.  I did it to avoid z-index problems which are made worse by bgIframe in IE6.  I'm not going to share this extraOffset code both because it's trivial and probably not generally applicable if you don't screw up superfish.css (which is too complicated for me).

I tested both changes successfully in IE6,IE7,IE8, and firefox. 

Friday, April 30, 2010

Longer Run


I am proud of this run. If I can replicate it a week from Sunday, I will definitely break a two hour half marathon finally.

Activity
Route:--Elev. Avg:31 ft
Location:Mount Vernon, VAElev. Gain:+0 ft
Date:04/30/10Up/Downhill: [+675/-675]
Time:05:33 AMDifficulty:3.2 / 5.0
Weather:Fair
42 F temp; 96% humidity
42 F heat index; winds Calm
Performance
Distance: 12.11 miles
Time:1:48:46
Speed:6.7 mph
Pace:8' 59 /mi
Calories:1812
Map
Elevation (ft)
Pace (min/mile)
Splits
MilePace (min/mile)Speed (mph)Elevation
Gain
actual+/- avgactual+/- avg
18' 16-0' 437.2+0.6-10 ft
28' 40-0' 196.9+0.2+10 ft
38' 46-0' 136.8+0.2+7 ft
49' 26+0' 276.3-0.3+17 ft
59' 26+0' 276.4-0.3+23 ft
69' 18+0' 196.5-0.2+16 ft
78' 56-0' 036.7+0.0-16 ft
89' 02+0' 036.6-0.0-29 ft
98' 46-0' 136.8+0.2-36 ft
109' 06+0' 076.6-0.1+26 ft
119' 07+0' 086.6-0.1-17 ft
129' 04+0' 056.6-0.1+13 ft
end7' 24-1' 358.1+1.4-3 ft
Versus average of 8' 59 min/mile

Posted from bimactive.com

Long Run


Not really proud of walking at 9.3 miles here.

Activity
Route:--Elev. Avg:26 ft
Location:Mount Vernon, VAElev. Gain:-3 ft
Date:04/28/10Up/Downhill: [+610/-613]
Time:06:08 AMDifficulty:3.8 / 5.0
Weather:Fair
33 F temp; 92% humidity
33 F heat index; winds Calm
Performance
Distance: 10.31 miles
Time:1:31:35
Speed:6.8 mph
Pace:8' 53 /mi
Calories:1537
Map
Elevation (ft)
Pace (min/mile)
Splits
MilePace (min/mile)Speed (mph)Elevation
Gain
actual+/- avgactual+/- avg
18' 05-0' 487.4+0.7-3 ft
28' 09-0' 447.4+0.6+3 ft
38' 11-0' 427.3+0.6-3 ft
48' 52-0' 016.8+0.0+27 ft
58' 22-0' 317.2+0.4+26 ft
68' 37-0' 167.0+0.2-46 ft
78' 53+0' 006.8-0.0+7 ft
89' 10+0' 176.5-0.2-20 ft
99' 03+0' 106.6-0.1+23 ft
1010' 52+1' 595.5-1.2-30 ft
end10' 16+1' 235.8-0.9+13 ft
Versus average of 8' 53 min/mile

Posted from bimactive.com

Thursday, April 15, 2010

Costco Milk

Costco's milk prices are great.  I just have trouble pouring out of their pitchers when they're full.  We end up just cutting holes in the foil instead of tearing it off.  Kinda like using a can opener, except that actually  just using a can opener didn't work as well as using a knife. I make one pour hole, then poke the knife and twist a little to make three air holes on the other side and it works well.

Thursday, April 08, 2010

Fairfax Family Practice

Don't bother using their website to try to make appointments even though it says you can do that.

Thursday, March 11, 2010

Hudson NTP Bug

If you have a subversion server in a DMZ with no NTP server, the clock will drift.  If you have a Hudson build server outside of that DMZ with an accurate clock and you've setup a project to build using the dmz svn server, it will not automatically just check out the head revision.  Instead it will look at the clock time and get the code from subversion based on that.  Which, if you've got drift, means you'll need to wait 10 minutes to build the files you just checked in.

Thursday, March 04, 2010

Idea

This would probably patentable if somebody hasn't already filed for it. 

A two display interface for showing sheet music. 
The displays may use electronic ink or other low power display technology. 
Networked versions would "turn" to the next page automatically when the right part of the song is reached. 
Student models could put LEDs behind or LCDs in front of the electronic ink to indicate where in the song the student should be. 
A metronome could be incorporated as another blinking LED of another color. 
In networked models, the metronomes and current location indicators would be synchronized for all students in a room.
The device would display PDFs, postscript, and lilypond files.  Other file formats could be supported with software updates.
Wireless networking would allow upload of new sheet music in addition to the option of a memory card slot (SD,microSD or USB key).

Friday, February 05, 2010



My longest run in four weeks, I was not really ready.

Activity
Route:--Elev. Avg:0 ft
Location:Alexandria, VAElev. Gain:+0 ft
Date:02/05/10Up/Downhill: [+0/-0]
Time:10:18 AMDifficulty:0 / 5.0
 
Weather:Light Snow
 35 F temp; 78% humidity
 35 F heat index; winds SW 8
Performance

Distance: 8.01 miles
Time:1:14:26
Speed:6.5 mph
Pace:9' 18 /mi
Calories:1201
Notes
Just starting to flurry. Heavier by the end.

I saw a sparrow trying to fly against the wind at gravelly point. It was hovering like a giant hummingbird. Quite a site. That's where I stopped briefly on the map.
Map
 
Elevation (ft)
 
Pace (min/mile)
 
Splits
MilePace (min/mile)Speed (mph)Elevation
Gain
actual+/- avgactual+/- avg
17' 35-1' 437.9+1.4-- ft
28' 45-0' 336.8+0.4-- ft
38' 50-0' 286.8+0.3-- ft
49' 08-0' 106.6+0.1-- ft
59' 59+0' 416.0-0.4-- ft
610' 00+0' 426.0-0.5-- ft
79' 44+0' 266.2-0.3-- ft
810' 02+0' 446.0-0.5-- ft
end15' 00+5' 424.0-2.5-- ft
Versus average of 9' 18 min/mile

Posted from bimactive.com

Monday, February 01, 2010

Ungoogleable VIM Question

This can't be searched on the web easily mostly because google is moronic about searching for spelling variants of what I type when I know exactly what I want.  So I will rely on other people's google alerts to help me as they have in the past.  The docs/faq are so far equally unhelpful.

Why is VIM 7.2 launching short lived dos/command prompt windows whenever I save?  I have nobackup set and no other obvious options that would affect save behavior.  The window is too short lived for me to click on it and freeze it (I have slow reactions), but is still causing a pain in the butt delay every time I save.  Not to mention it screws up my window focus.

Update: Turns out it was eclim doing the popup.  It is now uninstalled and forgotten. 

Tuesday, January 12, 2010

Embedded Excel in Powerpoint Macro Problem

Working with the Java (aka crappy) version of Aspose and the Object
Changed problem, we discovered that the ApproveIT add-in for Excel
and/or Powerpoint causes our macro that updates the excel files to
fail when you try to close the embedded excel file (opening is fine).
Our only solution so far is to disable the ApproveIT add-in which is a
bit of a deal breaker.