Voder-Vocoder

The Log of Hal Canary

Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | RSS2 | Atom | Backend

Archive for 2011-04

empirical politics

“I advocate an empirical politics, an anti-ideological politics. We should find the right questions, then gather the data, then structure society based on what works, according to the data.” —Luke Muehlhauser (source)

Hal Canary | Found on the internets, Mindless Link Propagation, Politics | 2011-04-23 23:56:00 UTC
Permanent Link |
Comments Off (but feel free to email)

txt to html with hyperlink conversion

I don’t have time to be writing programs.

#!/bin/sed -f
1 i\
<!DOCTYPE HTML PUBLIC \
"-//W3C//DTD HTML 4.01 Transitional//EN" \
"http://www.w3.org/TR/html4/loose.dtd">\
<html><head>\
<meta http-equiv="Content-Type" \
content="text/html; charset=utf-8">\
<title></title></head><body>
s/\&/\&amp;/g;
s/\"/\&quot;/g;
s/</\&lt;/g;
s/>/\&gt;/g;
s/'/\&#0039;/g;
s/\(http:\/\/[^ ]\+\)/<a href="\1">\1<\/a>/g
1 s/^/<pre>/
$ s/$/<\/pre><\/body><\/html>/

Hal Canary | Computers & Code, Uncategorized | 2011-04-23 20:19:44 UTC
Permanent Link |
Comments Off (but feel free to email)

sunrises

I will be moving 2.7° to the east. Therefore, sunrises will, on average, be about eleven minutes earlier! Sunrises, like tea, make it easier for me to be awake. Due to differences in Latitude, this should vary over the course of the year. For instance, today the sunrise there is 21 minutes earlier.

Hal Canary | Life | 2011-04-18 08:46:38 UTC
Permanent Link |
Comments Off (but feel free to email)

save the world

“I’m not sure how into the whole saving the world thing you are…”

Given a lever (truthfully) labeled “save the world,” I will pull it. I’m not confident about which levers are within my reach. I suppose I should explicitly make that one of my goals.

Hal Canary | Life | 2011-04-13 10:06:10 UTC
Permanent Link |
Comments Off (but feel free to email)

the plan

As of this week, I have officially made my decision to attend the University of North Carolina at Chapel Hill starting in the fall. I will be a graduate student and research assistant in the Computer Science Department. I have been offered a summer job in the department, and will be moving up next month to start it.

Hal Canary | Life | 2011-04-11 21:10:30 UTC
Permanent Link |
Comments Off (but feel free to email)

/bin/coin

#!/usr/bin/env python
# ~/bin/coin
#DTPD#
if (ord(open('/dev/random').read(1)) % 2):
 print "heads"
else:
 print "tails"

But why throw away seven bits of entropy?

#!/usr/bin/env python
#DTPD#
n=ord(open('/dev/random').read(1))
for i in xrange(8):
 if  (n % 2):
  print "heads",
 else:
  print "tails",
 n >>= 1
print

Hal Canary | Computers & Code | 2011-04-10 22:21:24 UTC
Permanent Link |
Comments Off (but feel free to email)

take a load off.

I now own no TV.

That thing was heavy, and I never have to lift it again.

Hal Canary | Life | 2011-04-02 13:07:22 UTC
Permanent Link |
Comments Off (but feel free to email)

Update on my life.

Update on my life: it is awesome.

That is all.

Hal Canary | Life | 2011-04-01 08:55:07 UTC
Permanent Link |
Comments Off (but feel free to email)

Copyright 1997-2012 by Hal Canary.
mailto: halcanary at gmail dot com
http://halcanary.org