So, I have made yet another userscript; this time for the readers of the Something Awful forums. This is not my first time doing so, and I have in fact created a group for Something Awful userscripts on userscripts.org.
This time, it’s a script that highlights posts made by friends. The script automatically reads your buddy list when you visit your user control panel, so you don’t need to do any manual maintenance of your friends list.
I had previously made the same feature for the SALR extension for Chrome, but seeing as I don’t use that anymore, I decided to remake it in stand-alone form.
The script has been tested with Tampermonkey on Chrome, but should work just fine with Greasemonkey on Firefox.
Next time you typeset a LaTeX document, where you discuss some Haskell code, consider using the following command to typeset the name:
That is, instead of I use the function \texttt{liftM2} to lift ..., use I use the function \hoogle{liftM2} to lift ....
What the command does is not only format the function name in a fixed-width font using \texttt, but also link it to a Hoogle-search, to allow the reader to easily look up what the function does, in case it’s unknown to them.
So you’re a student at the University of Copenhagen, and you’re starting on a new course. Wouldn’t it be lovely if you could add your schedule to your calendar, so that you could keep track of when to be where?
Well, Rasmus Wriedt Larsen has devised a website, KU Calendar Helper, which automatically produces an ICAL feed you can add to your Google Calendar or similar. You can simply input the URL to the course schedule, and it’ll do the boring work for you.
To simplify this process, I created the following userscript:
To use this script, follow these simple steps:
- Go to the SIS-page of the course you want a calendar feed for.
- Click “Vis skema for kurset”
- On the top of the page that comes up, click “Export to calendar”
- Follow the instructions on the page that comes up
The script has been tested in Chrome using Tampermonkey, but should work well in Firefox using Greasemonkey as well.
You may already know imgur, an image host you can use freely for whatever you please.
An interesting fact about them, however, is that each picture given a name consisting of only 5 alphanumerical characters. This leaves for roughly 916 million different names. As it turns out, there appears to be around 90 million uploaded images[1], which means that if we randomly guess a name for a file, we have an about 1 in 10 chance of actually finding an image.
Those odds are pretty good, so I wrote a small application which does just that.
Download the latest version here (or get the source code directly from github)
[...]
- [1] Rough estimate based on empirical observations. ↩
Quines are a wonderful thing. A quine is a program, that when run produces its own code as output. Now, in most interpreted languages you can read your own code through means of I/O — I’d consider that cheating: We can do much better than that. We’ll do it without anything but a clever theoretical result. (And maybe a little bit of code to make it work in practice.)
[...]
It’s that time of year again; the new students have started at DIKU and start their careers as computer science students with the course DiMS — Discrete Mathematical Structures, taught from the book by the same name.
Part of the curriculum is learning about Hasse diagrams, which in essence are a way of easily visualizing the relationships between different elements under a partial order.
Now, a student came and asked me about how to draw these diagrams in Mathematica, so I got some code working which did just that. The resulting diagram, is the picture used for this post.
[...]
When you’re a student, you’re usually on a tight budget, so the chance to get something you need at a steep discount usually falls on good soil.
Luckily, the marketing departments of many large software corporations know this, and wants to get you hooked on their applications, leaving us students very happy.
First of all, it’s worth checking if your school or university participates in the Microsoft Developer Network Academic Alliance, or MSDNAA for short. If that is the case, you may be eligible to get free copies of Windows, Visual Studio and much more. Simply head on over and search for your school to see if you can get lovely free software. If your school does show up in the list, ask your local IT department if it’s possible to get an account. (If you study at DIKU, you can sign up here.)
Microsoft provides another way to get free software called DreamSpark. DreamSpark provides free access to lots of free development software for students at participating schools, in a manner similar to that of MSDNAA. Sadly, University of Copenhagen does not appear to be a part of this deal, but your university might be; simply go to the page and follow the instructions to log in.

Next up is OnTheHub, with which your school might have struck a deal to provide cheap software from Microsoft, Adobe, VMware and more. Simply head on over to their search page, and see if your school is listed. University of Copenhagen has a deal with VMware, for instance, which means we get free copies of VMware Workstation, among other things. In case nothing is available for your school, you can also take a look at their store, which may contain something useful.
Additional deals that aren’t quite as major, but still notable:
- Upgrade to Windows 7 Professional for only $30.
If you don’t have Windows 7, then trust me, it’s worth upgrading to. - Get Office 2010 Professional Academic Edition for $80.
This is the full Office pack, by the way, not some trimmed down “Only Word, Excel and Access” one.
If you’re a student at the University of Copenhagen, you’ll probably have noticed that we recently switched to new, horrendously hard to remember usernames for logging into punkt.KU (affectionately known as license plates).
In order to better cope with change, I present to you a few tools to help make the transition smoother.
[...]
These last few days, most of the people I know’ve been playing Manufactoria, a game revolving around fixing up robots in a turing machine-esque manner. (If you’re at all into programming, I suggest you check it out. Also, rate it high!)
Quickly, one starts running out of levels to solve, however, so I’ve decided to make a small collection of additional levels you can play. Mind you, I have not solved all of these myself, so the unsolved ones may very well not be solvable in the space allotted. Caveat emptor.
[...]
I recently switched browser to Google Chrome, and one of the things I started missing from Firefox was a few of the Greasemonkey scripts I had installed.
Now, luckily, most simple extensions can be installed directly with no problem in Chrome, but a few of them sadly can’t.
One of the ones that couldn’t was YouTube Title Adder, so I thought I’d go and port it to Chrome.
Now, a few hours later, I can present you with a new, and slightly improved, YouTube Title Adder for Chrome.
[...]




