Category Archives: tech

Android! aka gphone

Congrats to Andy Rubin and the gang. It’s very very cool, and a shot across the bow at an entire industry.

Posted in tech | 1 Comment

C++ is the spawn of satan

however, this does work: #include <iostream> template<int size> struct ptrsize { }; template<> struct ptrsize<4> { typedef int int_t; typedef unsigned int uint_t; }; template<> struct ptrsize<8> { typedef long long int_t; typedef unsigned long long uint_t; }; typedef ptrsize<sizeof(void*)>::int_t … Continue reading

Posted in tech | 1 Comment

Relying on others

Phil Wilson and Hugh Winkler discuss the pitfalls and potential solutions to using someone else’s 269 feed personal aggregator in their subscription list. If you look carefully, you’ll notice they mentioned this last week. That’s because when I hit Phil’s … Continue reading

Posted in tech | Leave a comment

shell split

Dannyman sez: # octects oct1=`echo $subnet | awk -F . ‘{print $1}’` oct2=`echo $subnet | awk -F . ‘{print $2}’` oct3=`echo $subnet | awk -F . ‘{print $3}’` oct4=`echo $subnet | awk -F . ‘{print $4}’` Later, when reviewing my … Continue reading

Posted in tech | 2 Comments

Erlang wish list

WSGI. I don’t want an apache replacement, or at least have to bootstrap one just to write a webapp. I’d much rather have something very simple and callback based to handle requests and output dynamic data (and push static data … Continue reading

Posted in erlang, tech | 3 Comments

for loops in erlang

For loops in Erlang: for(Max, Max, F) -gt; [F(Max)]; for(I, Max, F) -gt; [F(I)|for(I+1, Max, F)]. My I suggest instead either: lists:each(lists:seq(Min, Max), F). or: for(I, Max, F) when I <= Max ->   for_impl(I, Max, F, []). for_impl(Max, Max, F, … Continue reading

Posted in erlang, tech | 2 Comments

Useless celebrations

Regarding all the recent hubbub over 7/7/7, I just thought I’d complain that I lived in (847) on 7/7/3 and (773) on 8/4/7. Dangit. This after I missed my planned party on Sep 8th 2001. Being a numbers geek isn’t … Continue reading

Posted in tech | Leave a comment

Outsourcing

At this point I think it’s time I outsourced most of my del.icio.us feed to Simon Willison… (Update: Simon’s last name corrected per comments, sorry.)

Posted in tech | 1 Comment

Erlang

I’ve started using it at work. So far, it’s pretty fantastic. More to come in the next couple of days.

Posted in tech | Leave a comment

Form Libraries

Ian Bicking rants about how worthless they are so I don’t have to. Look, HTML is a much more approachable standard than python code. You have to write HTML to make your site work. Why would you try to move … Continue reading

Posted in tech | 1 Comment