How to delete everything from your trakt.tv library
So, well, you can’t. Not realisitically.
Of course you can go through your library one-by-one, click on the little black X for each episode and movie, confirm the deletion in each case, wait for all the fancy gui crap to happen, and then do the next one …
Anyway, a little bit of javascript helps a lot here. Visit the following page:
http://trakt.tv/user/YOURNAMEHERE/library/movies/collection
Then open up the javascript console on your browser, and type in the following:
$$('div.remove-library').each(function (e) {$(e).click(); })
You’ll just need to confirm once, then everything on the page will be deleted. (Of course, if you have several pages, you need to do this per page).
Ditto for the TV page:
http://trakt.tv/user/YOURNAMEHERE/library/shows/collection
With script:
$$('div.remove-library').each(function (e) {$(e).click(); })
And for the history page:
https://trakt.tv/user/YOURNAMEHERE/history
Run the following:
$$('div.remove-watched,div.remove-seen').each(function (e) {$(e).click(); })
Granted, the above is not ideal – but it cuts hours of mindless work down to a few mins.
Bitcoin, the stuff I wish I’d known
Posted by Bricky in Cryptocurrency on December 7, 2013
About 2 months ago, when bitcoin was hovering at around $120/BTC, we – my wife (who has a much more sensible head with money than I do) and I – considered investing. We quickly ruled out buying BTC directly – the exponential rise it had seen at the time was readily apparent, and we decided we’d missed that boat. But we looked quite seriously into mining it (and also Litecoin, which is a little easier to mine).
Long story short: we decided that the profit in mining would be marginal, and that we’d missed the boat in straight investment. So we left it be.
Roll forward to 2 weeks ago, when we checked again. The price had jumped to around $700/BTC! And the meteoric rise did not seem like it was going to stop. We bought some the following day (albeit with a small amount of money), at $800/BTC. And again a little more the day after, at $877/BTC.
And roll forward to today – when we sold all our bitcoins (yielding about twice our investment!), while the market was “correcting” (as I write, bitcoin has dropped from about $1200/BTC two days ago, to about $700/BTC right now). It’s been a really really fun two weeks, and I can’t begin to tell all the stuff I’ve learnt (and the stupid mistakes I’ve made!).
So why this post? Well, this is the instructions I wish I could give myself 2 weeks ago:
- Read the babypips forex trading guide.
- Get familiar with the software analysis tools. The obvious one here is metatrader 4 (aka mt4), which is free. But there are numerous online sites now that offer equivalent (or better) analysis tools – eg. tradingview.com, bitcoinwisdom.com, and www.bitcoinity.org (to name but a few – there are many others).
- Don’t use the Mt Gox exchange for day-trading. It’s too unreliable. I’ve seen it crash twice in the last few days, and while we were lucky enough not to lose money on it, many others were not so lucky. Sometimes, especially if you day-trade, you need to buy/sell fast!
- Don’t use cryptsy.com, at all. I’ve watched an IRC chat while they literally lost about 20% of the trades that the people in the chat were doing there. And they have a bot that replies to all support tickets after 24 hours and closes them! (really! No human will even look at your ticket unless you re-open it!)
- Sign up for a bunch of exchanges, and start the verification process on each. It takes from 3 to 10 (or more) days to complete verification. And do a small test trade on every exchange before putting serious money in – you’ll be amazed at the problems that pop up.
- Read, follow, and try to understand this blog. I honestly don’t think I’ve ever seen a more concentrated source of useful info anywhere else on the web.
- Never, ever, buy-in on a pump & dump. If you own the coin beforehand, then ok, but do not attempt to catch it early and buy in – you’ll lose money. Anyone who is organising a pump & dump is trying to take your money.
- Keep abreast of all the news related to cryptocurrencies in general. You must know the news first. I’ve found twitter particularly useful, and also /r/BitcoinMarkets and /r/Bitcoin. And of course you can search google news also. Bad news takes about an hour to hit the price, good news takes considerably longer (maybe a day). So it’s much easier to make money on good news.
- Don’t read the trollboxes. You’re wasting your time and they’ll just feed your doubts.
- Don’t go to bed in a risky position. Aside from the fact that you won’t sleep anyway, you’ll probably lose your money. If you absolutely must, then at least set up a stop before you go.
Disclaimer: I am, of course, a complete amateur at this kind of thing. So keep that in mind
Edit: One more thing – Bitcoin is here to stay. I have no doubt about this whatsoever. Currently my expectation is that it’ll settle somewhere between about $1300/BTC (the Bank of America estimate) and about $35000/BTC (the Winklevoss estimate) next year, and longer term it will become the standard currency on the internet.
Edit (June 2014) – 7 months later: Well it pisses me off when I find posts like the above on the net, and then wonder whatever happened the guy. So here’s what happened us:
- We sold all as I said above, when things began to take a dive. We had approximately doubled our initial investment at this point.
- For the next few months, bitcoin dropped in value gradually (down to about $430/BTC). I day-traded for a while during this fall in an attempt to profit from it. But I’m not particularly good at day-trading, so, we didn’t make any money from this. (but at least we didn’t lose any either).
- Through an accident I lost the use of one arm for about a month. This gave me a lot of time to think, and a break from the usual work pressures. I put this time into writing (slowly – with one hand) a trading bot. [Aside: I can highly recommend one-handed coding as a way of writing really good code!]
- This bot is proving to be very successful (although it has become less-so over time – as more people write similar bots), and increased our holding of BTC by about one third.
So, as I write, BTC is starting its meteoric rise once again (it’s up around 50% in the last two weeks) and our holding has increased substantially. And I also get to sleep more since I stopped day-trading
Edit (Jan 2015) – another 7 months later: Well, bitcoin continued to fall (now hovering around $250/btc), but the bot has proved very successful. We have more than trebled our holdings (when measured in BTC) since we started. We’d also be up if we were to convert back to fiat, but there’s little reason to do that now: while the gains provided by the bot continue to outpace the losses in BTC value, we’ll remain as we are.
Edit (Feb 2016) – 13 months later: So the bot is running for around 2 years now. Still turning a tidy profit, and maintaining it serves as a hobby which I quite enjoy.
Moving hosting … again
Posted by Bricky in Uncategorized on November 11, 2013
So, it’s official. Blacknight VPS‘s suck so much that they can’t even host a single wordpress instance. Yes, one, single, very low traffic wordpress instance, with every last piece of optimisation and caching known to man, is too much for a blacknight VPS.
I really wish I could have stayed with them – it’s bloody awkward moving a blog, but it has already gone way way way beyond any form of humour, and their tech support seem to think the performance I’m getting is normal (and I believe them, which is why I say they suck).
So, this blog is now happily running (in Tokyo!) on a VPS of its own, hosted on a cheaper, and much much much much much faster linode VPS.
Long may it continue.
Introducing TvTumbler
Well I’ve been promising this long enough – An XBMC Addon that will download TV Shows automatically.
https://github.com/bricky/xbmc-addon-tvtumbler
I’ve actually been working on this on-and-off for a few months now, but I have so little free time these days, progress has been extremely slow.
The project pulls *very* heavily from my experience with Sickbeard. The target here is to put together a system that ‘just works’, and doesn’t require continuous tweaks as Sickbeard does. To this end, the plan is currently:
- Only free, open, feeders (‘providers’ in SB terminology).
- Multiple different types of sources: Currently only torrents are implemented, but I’ve put in the basics for other types also (e.g. Video-On-Demand sites, like iPlayer, Hulu, etc. and download sites like icefilms.info).
- An integrated torrent client. Using libtorrent in Gotham is proving quite difficult, so I’m relying on Transmission for now. I’ll fix this in time.
- Low resource usage. Sickbeard did a *lot* of background downloading, refreshing, updating etc.. I have eliminated all of that here. There will be a small cost in terms of what we can display (e.g. banners and schedules and such), but I think it’s worth it. XBMC has many many addons which do a far better job of this kind of thing.
- Take out much of the functionality that doesn’t-quite-work (or isn’t really needed) in Sickbeard: e.g. Season pack downloads. Backlog. Notifications. Metadata downloads. Mass updates. (Most) Post-Processing.
(Note: I do plan to implement Backlog in the future, but using a very different technique. *cough* dns *cough* Everything else I’ve taken out is handled better by other XBMC addons) - Scraping. Anyone who uses my fork of sickbeard will know that I’ve removed any instance of it that I can. I’ll be completely avoiding it here.
- Automatic fixing of ‘Scene’ numbering. Don’t get me wrong, Scene numbering is great, and it makes a *lot* more sense than thetvdb.com numbering. But XBMC (for the most part) uses thetvdb numbering, so we’re stuck with it. The addon will automatically convert between the two.
If you’re curious, have a look at the github link above. You can even install it and try it out if you like.
Please note that this is currently Pre-Alpha. It has bad bugs (which will occasionally require a restart of XBMC to fix), and some significant missing functionality. Of course we are delighted when anyone tries this out, but for the present the target market is developers and people who don’t mind poking around in logs and code.
Installation Instructions:
- Download the latest service.tvtumbler zip from http://repo.tvtumbler.com/service.tvtumbler/.
- In XBMC: System → Settings → Addons → Install from zip file, and browse for the zip file you’ve just downloaded.
- Install transmission (this is a temporary requirement until libtorrent is implemented). Set it up so that it puts completed downloads somewhere that XBMC can access them (this means a network share if it’s not running on the XBMC machine), and so that it stops seeding when it reaches a specific ratio (typically I recommend >1.1).
- In the Addon settings → Feeders: Enable at least one.
- In the Addon settings → Transmission: Enable it, and set all required settings. The Download Dir is where XMBC will look for completed downloads.
- Open the Addon through either ‘Video Addons’ or ‘Programs’. Select the ‘Shows’ button, and follow some shows (use the context menu to select quality).
- And read the notes here: they’re likely to be much more current than the above.
Please post any issues on the github issue tracker, and include an XBMC debug log.
Want to help out?
- Can you code? Have a look at the XBMC code on github (especially the XBMC gui, this needs a lot of work), or perhaps the (soon to be released) web interface. If you can do either, the XBMC gui is the priority (as I have little or no XBMC gui experience, and I can do web in my sleep). But drop me a line before you do anything, as there are extensive dev changes afoot (the addon will soon be split into 3).
- The system has ongoing maintenance and hosting costs (yes, there’s a considerable server component to this). All contributions are welcome. Bitcoin: 15Vh5ZiQpXuymRf46JAELnZPNbLaTKLduc.
Scrup – a better skitch replacement
A brief history:
* Skitch was great. It was an app for taking screenshots on a mac, editing them (in simple ways like adding text, arrows, cropping etc.), and uploading them to your own web hosting (or the app-supplied hosting, which I think no one ever used). Easily the most useful app I had on my mac. And it was free.
* Evernote bought (or somehow got involved with) Skitch, integrated it with all their other crap, removed most of the useful things from it, and basically destroyed it (this was about a year ago, maybe a bit more).
* Public outcry ensued.
* In an attempt to placate all their existing users, they kept the old version of skitch alive, and even updated it once or twice. Sadly though, it hasn’t been updated in a while, and now it looks like it’s been abandoned.
* Along came OSX 10.9, which looks like it has broken Skitch entirely. Even the recently-updated “Evernote-skitch” is broken.
So, today I went looking for, and found, a replacement: Scrup.
And what a replacement it is!
It does essentially the same thing (but much more sensibly). And it’s FREE, and OPEN SOURCE. And it works a treat on 10.9. I just adore that the code is there for all to see on github: there isn’t anything I’d change in it yet, but I just love being able to!
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.
Update (Sept 2, 2013): Tested with libtorrent 0.16.11 and boost 1.54 on Max OSX 10.9. Works as described above. Boost gives lots of deprecation warnings, but it runs without issue.
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
Note: Since this post was written, TvTumbler was born. Going forward, all new development will be in TvTumbler.
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.sx/user/7e434ea6455f089db7f0291b3bd1d4db
- TPB – VTV: http://rss.thepiratebay.sx/user/e395935fa39597e3997b916a295f23e4
- TPB – ettv: http://rss.thepiratebay.sx/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.
Other feeds that have been recommended to me (but I don’t use myself) include:
- BT-chat: http://rss.bt-chat.com/?cat=9
- monova.org: http://www.monova.org/rss.php?type=catname&id=8
(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
Note: Since this post was written, TvTumbler was born. Going forward, all new development will be in TvTumbler.
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.