Archive

Posts Tagged ‘mac’

Crowdsourcing your iTunes music with PHP, AppleScript and Twitter

February 20th, 2009 FighterHayabusa No comments

The other day I was catching up on the last few episodes of Hak5, one of my favorite internet-TV shows, and in one episode Darren Kitchen was doing some neat tricks with PHP, Twitter and VLC. This got me thinking about what other kinds of fun projects Twitter could be used for.

Twitter is a great service, not very reliable however (fail whale anyone?), and there are already plenty of mash-ups that uses it for various things. My idea was to use Twitter to select what plays in iTunes. People could send me replies with songs in them and if the song was in my iTunes-library it would be played, as simple as that. Not very useful, but a fun experiment if nothing else. So I started coding.

In order to control iTunes I had to delve into AppleScript for the first time. I find it to be an odd language, but whatever, for this project it’s definitely the most appropriate choice for getting quick results. One of my favorite languages is PHP so that’s what I chose for the control structure of the whole thing.

A couple of hours later I had my first prototype and now an additional few hours of tweaks I give you… TwitTunes!

This is how it works:
Person #1 starts TwitTunes on his Mac. TwitTunes sends a tweet – “#TwitTunes starting” – using Person #1s Twitter-account to let the world know that it is running.
Person #2 sends a reply on Twitter containing search words. These search words are then used to search through Person #1s iTunes-library and the first matching song found is played.

Not very fancy and far from perfect, but admit it, crowdsourcing your jukebox via Twitter is a pretty nifty idea and this is my very first proof of concept ;-)

If you wanna try out TwitTunes yourself you can download it here (sloppy source code included of course), and if you have any feedback I’ll be happy to hear it.

Why I'll never buy a high-end PC ever again

October 30th, 2008 FighterHayabusa No comments

Although I’ve been a computer geek since forever, until two years ago I’d never really forked over the bigger bucks for a PC. I’ve always bought the model or the parts that were not great but did the job acceptably well, almost never the cheapest junk though.

About two years ago it was time for a serious upgrade, i.e. a new PC, and this time around I decided it was time that I owned a really high-end machine. So I did some research, bought the right parts – some of them released no more than a week earlier – and built a pretty awesome PC based on a nice Intel Core2Duo CPU, sporting dual 17″ TFT-monitors with the appropriate Nvidia-card to drive them, three hard drives (two of them in RAID1) and buckets of RAM. The box set me back about 19.000 SEK (which is roughly $2600 with today’s rates). Granted, this was not a crazy ass machine but on a scale of 1 to 10 in awesomeness, with 10 being the most insane gaming rig money can buy, I believe it was at the time a solid 8 at least. Since I hardly play PC-games at all, I’m a console kinda guy, it was more than sufficient to satisfy my needs and much more.

Well, two months ago I bought myself a 20″ iMac and consequently had less use for my monster-PC. So I decided to sell it.

I read somewhere that a PC supposedly loses about half of it’s worth in a year so in two years a PC is worth one quarter of it’s original price. Since originally buying the PC I’d upgraded it a little bit with some more RAM and better cooling so I thought that I should be able to get 4.500 SEK for it right? Wrong.

It seems the second hand market for complete PCs really doesn’t exist. PC-parts is a whole other thing, but a complete box just isn’t worth anything at all it seems. I’ve been trying to sell my PC through multiple channels (auctionsites, ad in the newspaper, etc.) for weeks now and the interest is really non-existant. I’ve gotten a couple of e-mails from people asking me to lower the price or asking if I’ll sell it for less with this or that part taken out, but no one has taken the bait for real so far.

I’m completely dumbfounded here. What is it that makes the second hand value of a PC virtually zero? The only machines that seem to have any real second hand value are Macs. I mean, there are old G4 MacMinis with half the horsepower and a quarter of the storage going for almost the same as I’m asking for my monster-PC. Are the Apple-fanboys the only ones that have money to spend or what’s up with this? It’s just crazy.

It’s not like I thought I’d make my money back selling my two year old PC, but I thought that in a world where the majority of people use PCs there would at least be somebody enticed enough by the prospect of owning said machine. I guess I’m just really surprised that my assumptions were so wrong.

I discussed the whole thing with a friend and we came to the conclusion that most people don’t really get the quality of hardware that’s in my machine, all they see is a two year old computer that costs as much as a low-budget Dell that’s brand new, so they go buy the Dell instead because it’s, well, new, although it’s way crappier than my machine is. Also, the people that do understand the real value of the machine would probably rather buy new parts and build their own rig so they pass on it for that reason. So basically, once again, the market for second-hand PCs (and high-end ones in particular) is shit.

However, the market for second hand PC-parts seems to be a little better so if my PC still has no buyer by next week I’m chopping it up and selling the bits and pieces individually. That should make me enough money to buy me and my girlfriend a decent sushi dinner at least :-P

So lesson learned, never buy an expensive PC again unless I really, really need that much juice. From here on any PC I buy will be just enough to get things done. No more, no less.

Categories: Posts in English Tags: , , , , ,

Mine! All mine!

October 20th, 2007 FighterHayabusa No comments

Bought me a new, although used, computer the other day. I’ve been looking for a machine to use as a fileserver (running NFS, Samba and such) and stumbled upon an auction for a dual-processor PowerMac G4. I really love the way those boxes look so I decided this was to be my fileserver.

The specifications for this model of PowerMac are not that impressive, 450MHz processors hardly scare anybody even when they come in pairs, but there are some pretty neat upgrades that can be made for a reasonable sum of money and that would make it a fairly powerful beast.

I won the bidding however and I’m picking it up on Tuesday next week. Yay me!