All posts by MattK

About MattK

I like you.

This American Life downloads

I love greasemonkey. It’s sort of a uber extension for firefox that lets you have hacky control over how pages display and what they do. The scripts for it are amazing.

So I wrote one.
This American Life is a radio show about everything and it is really smart and awesome – if you haven’t listened to it you totally should.

Number 61 called “Fiasco” is my favorite.

They have a links to buy cd’s from audible.com and they have links to realaudio streams that are free.
Unforunately, I like to listen to them on my pocket pc.
Here’s a greasemonkey script that changes all the stream links to download links.
Install greasemonkey.
I don’t have separate hosting, so just copy and paste this into a file and open it in firefox.
Then go to tools, and install user script.
Open thislife.org – all ram links should point to the actual .rm files now for downloading.

Please feel free to improve on this. It might be nice if it offered you a separate link for downloading as opposed to streaming.

Why doesn’t it work?!
Thanks for your input! Please let me know how it isn’t working.

I am in the main page, none of the sub pages have the links converted.
You’ve got an old version! The new version works better better, sometimes. Thanks much to
Why is thislife.org CRAWLING right now?
I had no idea so many people would use the script and the first version hit their servers directly.
I’m putting up a new version that hits the coral cache of it. Thanks Jaime Alesso!

If you know how to fix this, let me know, I’m looking at it.
Please email me if you can host the script, thanks.
update: fixed to work with firefox 1.5/greasemonkey 0.64

from here

// This Mobile life
// version 0.4 BETA!
// 2005-05-19
// Copyright (c) 2005, Matt Katz
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script.
//
// To install, you need Greasemonkey: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
// select "This Mobile Life", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          This Mobile Life
// @namespace     http://snarkhunt.blogspot.com
// @description   Changes all This American Life ra stream links to link to the .rm file to download
// @include   http://thislife.org/*
// @include       http://*.thislife.org/*
// ==/UserScript==




var allLinks = unsafeWindow.document.getElementsByTagName("a");

for (i = 0; i < allLinks.length; i++)
{ 
 
  var href = allLinks[i].href;
  if (href.match(/ra\/([0-9]+).ram$/i) )
  {
   
//   alert('Hello world!');
   var episode = href.match(/([0-9]+)/i);
   
   //get the number to get the episode number
  if(episode){
    allLinks[i].setAttribute("href", "http://wbez.org.nyud.net:8090/ta/" + episode[1] + ".rm");
   }
   
   
  }
}

Dirt Cheap Macros

I’ve been using slickrun to automate getting to some programs and folders. It’s handy and it has autocomplete.
Adam at work showed me a cheap way to get similar functionality.

  1. Create a folder for shortcuts – I used c:\cuts
  2. Right click on My Computer and choose properties.
  3. Click the advanced tab.
  4. Click on Environment Variables.
  5. Under system variables, scroll down to one labeled “Path”.
  6. Edit it and add a semicolon after the last variable and add in your shortcut folder path.
  7. Create a shortcut for any program you want to be able to get to quickly and put it in there. Try giving it a short 2 or 3 letter name.

Now you can run any shortcut you drag there by just typing windows-r and typing in the name. After the first time you run it, the run box will autocomplete.

Perhaps you could make put your desktop in your path… Then as programs install, they will add a shortcut automatically for you. Perhaps you could put your quicklaunch folder in.

Went to copynight

Copynight is a calendar of copyright related events. I went to the inaugural event at the horrible Bar 9 and had a good discussion with Peter Tolmach of WellGoodLLC. He’s working on a very interesting charity website that hopefully I can help betatest.

Also met Esthr who is definitely the most Flickr enthused person I’ve ever met.

Graphing Calculator Adventure

I spent a lot of time in mom’s office stuck there because I was suspended or somesuch, and, since her workplace was for work, there were no games there. When she was out of the office I would sit at her Mac and use the graphing calculator to create new and interesting shapes, playing with the equations to get it to do more and more interesting things.

Turns out the story behind the development of the program is even more interesting!

via wired

Firefox Speedup for Broadband users

If you’ve heeded my advice to get firefox for your browsing pleasure, then you may enjoy this little tidbit from devnulled, via forevergeek, via hack-a-day. Credit where credit is due, that’s my motto.

Here’s something for broadband people that will really speed Firefox up:

1.Type “about:config” into the address bar and hit return. Scroll down and look for the following entries:

network.http.pipelining network.http.proxy.pipelining network.http.pipelining.maxrequests

Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.

2. Alter the entries as follows:

Set “network.http.pipelining” to “true”

Set “network.http.proxy.pipelining” to “true”

Set “network.http.pipelining.maxrequests” to some number like 30. This means it will make 30 requests at once.

3. Lastly right-click anywhere and select New-> Integer. Name it “nglayout.initialpaint.delay” and set its value to “0”. This value is the amount of time the browser waits before it acts on information it receives.

If you’re using a broadband connection you’ll load pages MUCH faster now!

Modest Needs

I was reading Cool Tools(rss), when I discovered this website called Modest Needs. It’s a great idea. Small-scale philanthropy for people who aren’t wealthy. If you’ve partnered with paypal you can easily make an automated donation. They give out very small grants to people who need to get through a tough time. $200 bucks at the right time can mean a whole hell of a lot.

They operate on a tiny budget, spending $0 on advertising, $0 on fundraising and disbursing grants within 72 hours of approval.

I like this.

Crimble Party

Our Tree

Our Tree,

originally uploaded by snarkhunt.

We had a party that I didn’t really go to very much, but there appears to have been a camera there. More pics in my flickr stream. Also, I am told that hilarity and alcohol were there arm in arm, as they often are.