Building Libtorrent-rasterbar on OSX
Posted by Bricky in Mac, Programming, Torrents on May 3, 2013
Compiling Rasterbar Libtorrent on OSX 10.7 or 10.8 (tested on both 10.7.5 and 10.8.4), without brew and all the crap it brings with it.
First, you’ll need to install XCode, and command-line tools.
Then, you’ll need to download and build boost:
http://www.boost.org/users/download/
Click on ‘Download’, and download the latest .tar.gz. In my case this was boost_1_53_0.tar.gz
tar -zxvf boost_*.tar.gz
cd boost_*
./bootstrap.sh
./b2
sudo ./b2 install
This all ran cleanly in my case, but googling would seem to imply that it often gives errors.
Next, download the libtorrent source:
http://code.google.com/p/libtorrent/downloads/list
And again, download the latest .tar.gz. In my case this was libtorrent-rasterbar-0.16.9.tar.gz
tar -zxvf libtorrent-rasterbar-0.16.9.tar.gz
cd libtorrent-rasterbar-0.16.9
./configure --enable-python-binding
make
sudo make install
That should be it, but in my case for some reason the python bindings were put into /usr/local/lib/python2.6/site-packages/ (where the correct site-packages is in fact /Library/Python/2.6/site-packages). I’m not really sure why this happened, but it’s easy enough to fix. Continuing from where we were above:
cd bindings/python
sudo python setup.py install
And it gets the correct directory this time around.
DailyTvTorrents gone
Just a few hours ago, dailytvtorrents.org disappeared, replaced with the message:
Yay!
2013-04-25: Sorry guys, our hosting provider kicked us out so we have to be offline for now. I’m very busy nowadays and I don’t have time to look for a new place. If you think you know a solution you can reach me here: richard@dailytvtorrents.org.
Until then, it was a nice ride. :–)
Ps: you can check this page from time to time, I will try to keep you updated when I know more. I got some really nice email, thank you guys.
For a time this was probably the best TV torrent site on the web, well-categorised, always current, and with a decent backlog. It’s sad to see it go.
For the present I’ll leave it as part of my Torrent-friendly Sick-beard fork. Users can simply uncheck it on the ‘Search Providers’ page.
My thanks to Richard and all at DailyTvTorrents.org for a wonderful service over the last few months. Hope this isn’t the end for you.
Sickbeard Manual RSS/Custom Torrent Providers
Posted by Bricky in Programming, TV on April 24, 2013
I’ve added experimental support for Custom RSS torrent feeds into my sickbeard fork.
The whole thing should be self-explanatory I think. Currently I use the following feeds myself:
- TPB – TvTeam: http://rss.thepiratebay.se/user/7e434ea6455f089db7f0291b3bd1d4db
- TPB – VTV: http://rss.thepiratebay.se/user/e395935fa39597e3997b916a295f23e4
- TPB – ettv: http://rss.thepiratebay.se/user/0e3b2f46e5892dc5b2aac6dbe548bc27
These are links to the rss feeds for specific users on thepiratebay.se.
Obviously any rss feed that includes links to download torrent files (or public magnet links) will work also.
(Please feel free to recommend others in the comments)
Consider this experimental for now. It works for me, but I can’t guarantee that it will work for anyone else.
Netatmo Menu Bar app for OSX
Posted by Bricky in Mac, Programming on March 29, 2013
For some peculiar reason, Netatmo don’t have an OSX app for viewing their devices (however their iOS one is simply brilliant). So, me being me, I wrote one. Very simple app to put together in fact (but then, it doesn’t do all the fancy history stuff that the iOS one does).
Read the rest of this entry »
Sickbeard + iPlayer: requirements
Posted by Bricky in Linux, Mac, Programming, TV on March 5, 2013
I’ve just merged the iplayer branch of my Sickbeard fork into master, as it’s been working ok for me for the last few days, and I think it’s ready for some others to check it out.
But, be warned: it has prerequisites. In short, these are:
- Perl: any *nix will have this
- ffmpeg:
- On linux, you probably just need to do
sudo apt-get install ffmpeg(or whatever the rpm equivalent is). - On OSX, take a look at my recent post about how to build ffmpeg.
- On linux, you probably just need to do
- rtmpdump:
- On linux, again, you can probably just do
sudo apt-get install rtmpdump(or the rpm equivalent). - On OSX, building this is just too simple:
git clone git://git.ffmpeg.org/rtmpdump
cd rtmpdump
make SYS=darwin
sudo make install SYS=darwin
- On linux, again, you can probably just do
If you’re on a *nix machine, there’s a strong likelihood that you have all these installed already, so best to check first.
Windows users: you’re on your own here, sorry. I believe that get_iplayer will run on Windows, but I simply don’t have a copy of the OS installed on which to check it. You’ll probably need to get both ffmpeg and rtmpdump also too I’m afraid. If you do have success with windows (or indeed any other OS), let me know in the comments and I’ll add the instructions here.
All of this is made possible of course by the work from infradead on the get_iplayer script (latest version included in the sickbeard code, but you can install your own if you prefer).
Please note: for this to work you must either be *in* the UK, or have some kind of VPN connection to the UK. iPlayer downloads are restricted to UK ip addresses. (of course there are other ways around this, but I’m not going to discuss those here).
Building ffmpeg on OSX 10.7
Posted by Bricky in Mac, Programming on February 27, 2013
Note-to-self post again.
I can take no credit for this – it’s a copy of Hunter Ford’s script from here, with some minor changes I had to make to get it to run cleanly on 10.7.5.
Prerequisite: XCode, with command line tools installed.
OSX: Using the second monitor while in full screen mode
I have an old macbook pro (circa 2008 I think) running 10.8 with an external monitor. Today I started running Avatron’s Air Display on it (a wonderful piece of software by the way), which runs in full screen mode. This left the laptop display itself useless, displaying that grey cloth background which apparently means “This is how OSX fullscreen works – get used to it”.
Anyway, I wanted to run Terminal.app on the main laptop screen, while running Air Display fullscreen on the external monitor. Apparently there are two ways:
1. It seems that you can “trick” OSX to allow this, by using the trackpad to slide between spaces, and opening Terminal.app (via spotlight) mid-slide. I couldn’t get this to work however, as my trackpad doesn’t do multi-touch (it’s too old), and it seems you need it. Works for a lot of other people though.
See this hint on macworld for details.
2. You can modify Terminal.app’s Info.plist file to make it a background app. Then, if you open Terminal.app (again, via spotlight) while viewing the fullscreen app, it won’t switch out of fullscreen mode.
To do this:
* Quit Terminal.app if running.
* Right-click on it, and Show Package Contents.
* Open the file Contents/Info.plist, and add the bold text below at the end (before the last “</dict>”):
</dict> </dict> </array> <key>LSUIElement</key> <string>1</string> </dict> </plist>
Note that this has some serious side-effects! Most notably, the terminal will no longer appear as running in the dock, and you won’t be able to ALT-TAB to it.
(some general info regarding LSUIElement is available here)
That’s it. I’d be interested in hearing if there are other (easier!) ways.
SEP.cnf.xml for a Cisco 7975G with chan-sccp-b
This is an annotated/censored copy of the SEPxxx.cnf.xml I use with my 7975G and chan-sccp-b/asterisk.
MySQL: moving innodb tables out of ibdata1
Posted by Bricky in Programming on November 16, 2012
Note-to-self style post again.
MySQL’s innodb will store all table data in one file called ibdata1, unless you tell it to do otherwise. This can become an issue sometimes, particularly when the file gets really big.
Thankfully there’s a way to fix it.
Add innodb_file_per_table to my.cnf
[mysqld]
innodb_file_per_table
Update the running server with the same value
SET GLOBAL innodb_file_per_table=1;
Then
ALTER TABLE tablename ENGINE=Innodb;
for each table to move it out of the ibdata1 file.
Alternatively, you can use this little bit of trickery to generate the sql needed to do it for all tables:
SELECT concat('ALTER TABLE ', TABLE_SCHEMA, '.', TABLE_NAME, ' ENGINE=Innodb;') FROM INFORMATION_SCHEMA.TABLES WHERE ENGINE = 'InnoDB';
Then paste the result as sql and run it (it may take some time though).
I’ve included a torrent client in my