Page:
1
2
3
4
5
>
#Compiling git on OS X Leopard
Git is a "distributed version control system" (DVCS). It's website is http://git.or.cz and you can read more about it on
http://en.wikipedia.org/wiki/Git_%28software%29
There are precompiled versions available for
Windows, Linux (via apt-get/yum/etc) and
OS X, but if you want the most recent version, or to install it in a non-standard location, compiling it form source is actually very easy (on OS X at least).
This guide was done on OS X Leopard (version 10.5.3), but the steps are basically the same on Linux (just skip the bit about fink and Xcode), and other versions of OS X.
Read more
#My Birthday!
It's my Birthday. All hail me!... as if you need an excuse.
Read more
#Automatically rename your torrent'd TV episodes
Download!
http://github.com/dbr/tvdb_api/tarball/master - Always the latest version as .tar)
So what is it?
I'm going to go out my way and assume you have downloaded a TV episode at some point. I'm sure you will have noticed the filenames are rather horrible.
I understand why the files are named along the lines of show.name.s01e02.dsr.xvid-grp.avi - it describes the showname, what episode, what source it came from, the format, and group that captured/released it... All very efficient, but they are hardly very nice to look at..
Read more
#MacPorts/Fink folder icon
(click for full-size 512x512px PNG with alpha)
MacPorts and Fink are basically like apt-get on OS X (it installs open-source software on Mac OS X)
The problem with these is their folders (/sw/ and /opt) gets created, it has the default folder icon OS X. Reasonable, but it doesn't look very pretty. I had a quick look around and couldn't find an icon that fitted with OS X Leopards icon-style, so I made one..
Read more
#Download music from songza
Songza is a popular website that allows you to listen to almost any song instantly. Most of the songs are MP3 files, but there doesn't seem to be a way to download them. Some of the results are youtube videos, but the videos are invisible, only the music plays. Let's fix that.
A quick look at the source code tells us that it finds the url of the songs using an AJAX query and then it passes it to the loadSong function. Here is the code (re-indented by me):
function setSound(songID){
source=songID.substring(0,4);
if(source==YT_SOURCE_ID||!in_array(source,SOURCES)){
if(source!=YT_SOURCE_ID){
ytID=songID;
songID=YT_SOURCE_ID+"-"+songID;
source=YT_SOURCE_ID;
}else{
ytID=songID.substring(5);
}
$.get('/a/finder',{v:ytID},
function(data){
code=data.match("&t=(.*?)&")[1];
title=data.match("&title=(.*?)';")[1];
title=eval('"'+title+'"');
url="http://youtube.com/get_video?video_id="+ytID+"%26t="+code;
SOURCE_DISC_URL=URL_DISC+title;
SOURCE_BUY_URL=URL_BUY+title;
SOURCE_IS_CC=false;
loadSong(url,title,songID,'flv');
});
}else{
$.getJSON('/a/song',{z:songID},
function(data){
title=data.title;
url=data.url;
if(data.url_buy){
SOURCE_BUY_URL=data.url_buy;
SOURCE_DISC_URL=data.url_discography;
if(data.cc==1)
SOURCE_IS_CC=true;
else
SOURCE_IS_CC=false;
}else{
SOURCE_DISC_URL=URL_DISC+title;
SOURCE_BUY_URL=URL_BUY+title;
SOURCE_IS_CC=false;
}
loadSong(url,title,songID,'mp3');
});
}
}
Read more
Page:
1
2
3
4
5
>