-
HUGE muckrake on Reagan. It’s got it all: Promiscuity( Nancy and Ron), racketeering, and even rape. Interviews with the girl he raped, the girls he got pregnant and ditched.
best bits near the end.
Whew! -
Autotest is a little command line utility that sits next to your editor and then runs all of your tests every time you save a change to your files. It makes test driven development feel natural. It’s kind of like personal continuous integration.
-
holy awesome crap.
enter a comma seperated list of artists. they create an rss feed of new album releases for all of those artists.
awesome. Computers should totally be doing that work. -
Add more of these to gcal, self.
All posts by MattK
Musical Tesla Coils, Instrument of the Future
Yes, in the future your “electric” guitars will be compared to banging rocks together.
links for 2007-11-06
-
CI Factory is a canned Continuous Integration(CI) server and installation script. Adherence to a standard development workspace allows for this product to build most any project out of the box. It uses a plugin architecture.
-
Replaces the close tab graphic with numbers to help with quick tab navigation via CTRL + [1-9] or Alt + [1-9].
Anything to keep the fingers on the keyboard.
links for 2007-11-03
-
Three years in the making, Jon Ronson’s Crazy Rulers of the World explores the apparent madness at the heart of US military intelligence.
links for 2007-11-02
-
Never miss a bargain again. Automatically informs you of sites retailmenot.com users have shared discount coupon codes for.
-
because honestly, fuck mediawiki syntax. the table syntax is TERRRIBLE.
links for 2007-10-31
-
“I devoted 25 years of my life to trying to find out whether [psi] is [real]. Now I have given up.”
She wanted to believe but numbers didn’t match. Great insight into how to be truly open to possibility of paranormal. -
put an ERB tag around your js and css links at the top of the page. bundle-fu will bundle it all into one file, rewrite relativeurls, etc.
-
step by step guide to upgrade up to rails 2
Databind a ComboBox to an Enum and your business object
Databinding intelligently in .net is usually pretty easy. Recently I wanted to quickly bind a combobox where the items are the values of an enum made up of single words and the selected value is tied to my data object. I was surprised that it wasn’t all that straighforward. Here’s me saving you some time in the future.
What you want is an easy way to get a list of objects that you can bind the combobox to. Here is a list you can easily create from any enum that will give you a handle on the names and values of the enum.
code:
public class ComboEnumList <V> : List < keyvaluepair < string,V> >
where V: struct //at least we can constrain that it ain't a class
{
public ComboEnumList():base()
{
//because generics don't allow a constraint like "where V: enum"
if (!typeof(V).IsEnum) throw new Exception( "New Argument Not An Enum " + (typeof(V).FullName));
Array values = Enum.GetValues(typeof(V));
foreach (object value in values)
{
this.Add(new KeyValuePair
}
}
}
To use this, you’d inherit an instance of this class with type V = your enum.
code:
public class AvailableJerseyStyles : ComboEnumList
{}
public enum JerseyStyleEnum{
Stripes,
Diamonds,
Paisley,
CheckerBoard,
Houndstooth
}
Now go into the VS2k5 designer, add a new project data source based on your AvailableJerseyStylesClass. On instantiation, create the AvailableJerseyStyles object and set it as the datasource for your bindingsource. DisplayMemeber = “Key”, ValueMember = “Value”.
Bind the enum property of your business object datasource to the SelectedValue of the AvailableJerseyStylesClass and you are good to go.
Hope it helps.
War on: Grafitti
Urban artist Ellis G has been arrested for drawing art on the sidewalks.
How shameful. His art is drawing the shadows cast by objects in chalk. It’s beautiful and interesting. And it washes away. I’ve happened on his little drawings a few times, always happy to see them.
Nobody pays him, he just does it. And now he’s been arrested. What a waste.
links for 2007-10-26
-
As you type it gets web search results to inform you about related stuff on the net, related news happening around the world, Flickr photos to help you visualize, and amazon recommendations. One step closer to having agents that assist your thinking.
Offline and online
Google came out with a good idea a while ago called Google Gears. The idea is to make some of these new fangled web applications able to function when you aren’t connected to the internet.
It never seemed like that great of an idea to me, but I’ve been using a personal Wiki to track household stuff with my pardner Sam. I’ve been wishing for a wiki that I could use when I’m on the train and away from the internet.
I love the network. When you are away from it though, why couldn’t you have a better cache – a mini net that is the last known version of what you seem to care about. I’ve been using programs to download entire websites locally so I can read them while I commute. It would be nice if you could just mark them as being of special interest in your browser. Let computers hum and whir and keep it all up to date and in synch. If we can do it with email, could we do it with the web, or at least the web I’m interested in?
Some folks think that offline and online will disappear as the network penetrates every corner of the world. I doubt it. Someone’s got to pay for it. More folks are interested in drinking water than BoingBoing, but it hasn’t penetrated every corner of the world.