See also: Heapify

Pages: 1 2 3 4

Adam Internet Usage Meter (for onpeak/offpeak)

I wrote a bandwidth-usage Dashboard Widget for Adam Internet a while ago. They have since changed their quota system to use "onpeak" and "offpeak" quotas, breaking my old Widget. I've now updated it for the new system.. I may create a nicer widget at some point, the current code is a bit of a mess, and I have an idea for presenting the on/offpeak data better...)

Admittedly there's probably around zero other Adam Internet customers reading this, but it should appear in search engines, should someone be looking for such a widget..

Anyway, how it looks:

...

Read more

There are 2 comments on this post.

The Jeff Sterling Show: When Jeff met Bob [video]

Short film my brother and I made over the last few weekends. Shot on my new Canon 5D Mark II

...

Read more

There are no comments on this post.

tvnamer 1.0

As the "final commit" mentions, 387 days and 330 commits after the I started, tvnamer and tvdb_api are at a point where I'm happy to release "version 1.0"!

tvnamer is probably of most interest, it's an automagical TV episode renamer, turning files from "some.show.s01e01.hdtv.blah.avi" to "Some Show - [01x01] - The Real Episode Name.avi", using information from thetvdb.com

To install, simply do..

...

Read more

There are 2 comments on this post.

Stop iTunes after current song

Something I always missed from Foobar2000 is the option to "Stop playback after current song"

For some reason it never occurred to me it would be trivial to write an AppleScript to mimic this for iTunes..

tell application "System Events"
    set cur_app to name of the first process whose frontmost is true
    set visible of process cur_app to false
end tell

...

Read more

There are 2 comments on this post.

Running Python unittest.main() verbosely

I want to run the unittests verbosely, so you can see which test is running (the function name, or if you have a one-line docstring, it displays that), instead of the usual "..E..F." output.

There are two ways, the first is to construct a test-suite using TestLoader, pass it to TestTextLoader(verbosity=2):

suite = unittest.TestSuite([
        unittest.TestLoader().loadTestsFromTestCase(test_tvnamer.test_name_parser),
        unittest.TestLoader().loadTestsFromTestCase(test_tvdb_api.test_tvdb)
    ])
# for one test, you can do:
# suite = unittest.TestLoader().loadTestsFromTestCase(test_name_parser)

...

Read more

There are no comments on this post.

Forced software upgrades in the land of web-apps

Whenever someone complains about a new version of a bit of software, my general response is "you don't have to upgrade".

For example, complaints about Vista can generally be countered with "Well, Windows XP still works fine.."

Where this argument entirely falls down is when an upgrade is forced, but there is pretty uncommon (online portions of video-games, instant messaging applications)..

...

Read more

There are no comments on this post.

irssi, figlet, greatness

/alias figlet /exec - -o echo $0-| figlet -w 60 | awk -F% 'function randint(n){return int(33+n * rand())} {printf("x03%s%sn",randint(12),$1)}'

Combining the joys of shell scripting, figlet, irssi colour escape codes and two different kind of escape sequences, you can achieve the following...

Awe Inspiring Figletification

...

Read more

There are 3 comments on this post.

Save the plastic trees

There was a post on Lifehacker entitled "Five Best Sites to Stream TV". Useful. I'm always looking for a "legal" alternative to torrenting TV shows. DVD's are okay, but considering you can fit thousands of episodes on a harddrive about the size of a single DVD, it seems like there should be a better solution, one that doesn't involve quite so many slices of plastic sitting on a shelve..

Oh. Importantly, I live in a country that isn't America (currently Australia).. Lets see how "best" these are for us damned Foreigners..

Hulu.

...

Read more

There are 2 comments on this post.

You, sir, have crossed the line.

I didn't really mind when The Escapist added the adverts at the end of the Zero Punctuation videos. It was pretty unobtrusive, and advertised their own content. Fine.

Then "Yahtzee" changed the intro away from using appropriate, fair-use, copyrighted music, to a flashy-random-ZP-graphic title sequence. That annoyed me because I really liked the intro/outro songs (I can't think of Bioshock without thinking of The Beatles - Octopuses Garden..), and the new music/graphics are completely unfitting, and kind of boring..

Then there was adverts for Zero Punctuation at the end of Zero Punctuation. That was just stupid.

...

Read more

There are no comments on this post.

MySQL fun

SELECT count(DISTINCT postkey) as post_count, membername FROM members, posts where members.memberid = posts.postauthorid GROUP BY membername ORDER BY post_count DESC

Posting that query is mostly for archival purposes. Basically this.. fun little query counts the number of unique posts by each user, from a MySQL database.

The posts table has postkey (the unique identifier) and postauthorid, the members table has a membersid column (relates to postauthorid) and membersname (the human-readable member's name).

...

Read more

There are no comments on this post.

Pages: 1 2 3 4

RSS
Powered by Debian, Guinness, and excessive quantities of caffeine and sugar.