Tech Cape Town

Everything about technology from Cape Town

Tag: iOS (page 1 of 8)

My Infinity Project – Building The Best Media Centre

For my day job I’m a developer. That entails learning new technologies all the time. Time after time I’ve battled to keep interest making “To do” list apps and “Hello World” programs. A few years back a needed to learn PHP. Not just the basics, I needed to learn it well enough to make a production system for a client.

At the time I lived with my parents and our internet was poor to say the least. I used the internet at work to download things at night. I needed a way to manage these downloads remotely. I started looking at APIs and remote access. I decided setting up a simple PHP site pulling from APIs would be the best option. And so started my media centre infinity project.

I have to thank Johann Du Toit for the term “Infinity Project.” He introduced me to the term as an individual project that never ends. You keep evolving it over and over again making it better and better as you learn along the way.

I started with a basic page that showed downloads, their progress and I kept track of upcoming episodes of the series I liked to watch. I ran if off a RaspberryPi. Soon I updated an old laptop with some extra hard drive space and I put the extra power to good use.

Fast forward a few months and we had uncapped internet at home. I installed Kodi (then XBMC) and left the laptop plugged into my TV. Soon I stumbled across SickBeard and CouchPotato and started automating movie and TV show downloads. My basic PHP script got a make over and pulled from those APIs.

Soon my site was getting too large to manage so I rebuilt it from the ground up using CodeIgniter. I chose CodeIgniter because the learning curve wasn’t big at all. I got a lot of functionality out in a very short space of time. I was well on my way to “productising” my media centre manager. I made the mistake of using a Bootstrap based but paid admin theme. It seemed like a very good idea at the time, but without it being open source I couldn’t release any of my code. By this time I had moved to Cape Town and my media centre was my primary source of entertainment. I also had much better internet.

Web technologies are always evolving and recently I decided it would be a good idea to learn AngularJS. That way I would be able to make web based apps for iOS and Android as well as it being a stepping stone to really learning Swift properly. I saw this as the perfect opportunity to update my media centre.

I started with a few tutorials online and soon I had the basics down. I’ve always battled with markup. It wasn’t that I couldn’t do it, I just didn’t enjoy it. I found AngularMaterial. I started over and soon I had a really good base to work from. I refactored my old code into an API with a REST library I wrote for CodeIgniter. (Based on this one but heavily updated for performance.) I learned about JSON Web Tokens along the way as a good way to authenticate requests.

Some of you may have noticed me being a little missing in action over the past few weeks. I’ve been focussing on work, some freelance work and helping build an Uber Style App for a startup. On top of all of this I managed to get my media centre into a presentable form.

So this is what I’ve come up with so far:

I made everything responsive as I use it on my phone the most often. I linked it to the Kodi API so I have “Play Now” buttons on the movies and series. I also have the “Now Playing” remote. This pulls whatever is playing from Kodi and the progress. I added in some play/pause and stop buttons. The side effect of having this available over the internet is that I can troll my girlfriend and pause whatever she is watching when I’m at work.

This project is far from over, I will keep updating it. As and when I learn new technologies. I’m hoping an iOS app can be next. Currently I’m running this off of a Mac Mini with OS X Server on it connected to a 4K TV. I’ve moved from SickBeard to SickRage as it is much more actively developed. I can run 4K movies and series at 30fps. (More than enough for video) I serve it to the world over my Telkom Fibre line. This is more than sufficient for my personal needs.

I look forward to your ideas and feedback, please leave them in the comments below or give me a shout on Facebook or Twitter. I’ll look into releasing what I’ve done on GitHub when I’m properly using environment variables and remove a few hard coded hacks. I hope you guys enjoyed this little write up.

iPhone 6S and 6S Plus Drop Test

This makes me so sad. There are millions in the world waiting for the new iPhones and then you get some asshole that gets them on the first day and ruins them.

I’m impressed at the beating they took! Still sad in the end.

If you’re on Apple News and the video isn’t showing, click here and you should see it.

[Youtube]

Someone Made a Hardware Emoji Keyboard

Tom Scott is one of my favourite Youtubers. He always seems to come up with something random or something “you might not know.”

This time he has made a massive keyboard with an individual key for every different emoji!

Check out his video embedded below or click here to see it if you’re on Apple News.

[Youtube]

Apps IN Apple’s App Store Have Malware

Lazy developers downloaded a fake version of Xcode and then used it to publish real apps to the real App Store.

There is not much more to say about this. I understand 12 year old Timmy torrenting Xcode because he doesn’t know any better, but real actual developers of popular apps? FFS, that is a rookie error.

The most high profile app to be affected is WeChat. Not a fan. WeChat claims that it was on older version that was affected but just to be safe, update your apps. (Or delete them.)

This friendly commenter said it best:

Screen Shot 2015-09-21 at 10.02.03 AM

[via Gizmodo]

Why don’t iOS Content Blockers Work on my iPhone 5?

I have an iPhone 6 as well as a really outdated iPad 3. I don’t use my iPad that much so I don’t mind that it is a little slower. It is just a big Twitter machine to me.

Whilst playing around with a few content blockers on my iPhone, I thought I would see how they work on my iPad. As it turns out, none of them would install. Each one simply said “this device is not supported.”

I did a little bit of digging around and it looks like content blocking has been limited to 64-bit devices (iPhone 5S and later) for performance reasons.

This doesn’t mean that you can’t install one, it just means it will be a lot harder! You’ll probably have to find an open source one on GitHub and then download xCode and compile and side load it yourself. I’ll have a look at this and post a tutorial if it is feasible.

And after all that effort, you could possibly slow down your browsing even more by overloading your device’s old 32-bit processor.

I guess this is Apple’s not so subtle hint to upgrade…

Older posts

© 2017 Tech Cape Town

Theme by Anders NorenUp ↑