Photo Of the Day

⌚ πŸ”– code 
I was on a ride with my buddy Brent Davidson a few days ago when during a break he snapped a quick picture of me. “Photo of the day.” he said. “You mean for Pinkbike?” I asked. “No, my instagram photo of the day.” Brent takes one photo every day and posts it to his instagram account. He explained that it’s fun, he was taking at least that many pictures before anyway and that his grandma calls him if he misses a day. Read more...

Scanning with the Digital Anarchists

⌚ πŸ”– code  books 

Scanning with the Digital Archivists

Noisebridge. I’ve only been there twice now and it’s already become one of my favorite places to hang out in San Francisco. Noisebridge is a unique place where the anarchistic ideals of my youth and my current love of technology exist in tandem. Not only is there amazing hacking going down but I’ve also found myself once again doing things like trash talking Crimethinc and comparing dumpster diving stories. Ah, it feels good (and smells bad!).

Read more...

Who Redirects to HTTPS?

⌚ πŸ”– code 

I was browsing Twitter yesterday, following some people I met at the Aaron Swartz memorial hackathon over the weekend when I came across this tweet:

Nobody seemed to be able to verify that number, so I fired out Geany and wrote some python to attempt at a verification myself.

Read more...

Goodbye Wordpress

⌚ πŸ”– code 

For the past 6 years this blog has been running off the same Wordpress install on a 1&1 shared hosting account without interruption. It was a good run, and speaks to how well Wordpress upgrades work.

But a Wordpress install is just so uncool. I decided to hop on the Jeykll train. This blog is now 100% static, which is pretty refreshing after years of dealing a massive PHP application. It doesn’t even require a database and it allows me to tweak to my heart’s content. Wordpress always seemed like a bit of a black box. Sure, the code was there, but it was daunting to even think about touching it.

Read more...

Sort Table of Contents Style Strings In Java

⌚ πŸ”– code 
This is for when you have String likes “1.1”, “1.2”…“1.10” such that you want “1.10” > “1.1”. Just another example of terrible code programmers have to write when people insist on presenting data in illogical ways. private static class TocComparator implements Comparator<String>{ public int compare(String s1, String s2){ Integer s1front = Integer.parseInt(s1.substring(0, s1.indexOf('.'))); Integer s2front = Integer.parseInt(s2.substring(0, s2.indexOf('.'))); if(s1front.equals(s2front)){ Integer f1ass = Integer.parseInt(s1.substring(s1.indexOf('.')+1)); Integer f2ass = Integer.parseInt(s2.substring(s2.indexOf('.')+1)); return f1ass.compareTo(f2ass); } else{ return s1front. Read more...

Shaftoe - A Simple Web Service for Encrypting Messages Using PGP

⌚ πŸ”– code  featured 
Wouldn’t it be awesome if we starting seeing websites like this? I usually hear people say they don’t use PGP because nobody else does. A fair complaint - PGP isn’t exactly easy to set up and without the proper motivation it’s hard to convince the people you communicate with to use it too. But PGP isn’t so hard to set up that our machines can’t use it to send us messages. Read more...

The Code Book Companion

⌚ πŸ”– code  featured 
I’ve been on a cryptology kick recently, which is really no surprise. With all the recent news about domestic surveillance and services providing private communication being forcefully shut down, I have to admit my sympathy for the foil hats has increased considerably. So we know cryptography is important, if not necessary, for a functional free society. But it’s also really ‘effin cool.Β The world of cryptography is an even mix of mathematics, information science, and civil disobedience. Read more...

Graphing the Tour De France

⌚ πŸ”– Cycling  Code 
Two things are going on right now: The Tour De France. I need to learn a new charting library. I started looking around and Highcharts seemed like a nice JS solution with a complete API. It does require a license for commercial use, though. At the same time, I found a bunch of cool historical data on the Tour De France. I set up a MySQL database, made a few PHP pages, and here we have the results. Read more...

Coding Restore The Fourth

⌚ πŸ”– code  featured 
Recently we have learned that a certain branch of the government may be overstepping the consitutional right to privacy. While this may be old news for many the recent leaks by Edward Snowden have brought the issue to national attention and have caused quite a stir. And rightly so, the argument can be made that the NSA is violating the forth amendment. Restore the Fourth, a grassroots organization that sprung up nearly overnight, is making that argument and taking it to the public. Read more...