So on Christmas Eve I was tracking Santa (as you do), and noticed that the NORAD tracking no longer opens up Google Earth, but instead works in browser.
Doing some digging around I found that they used Cesium. This uses WebGL to create 2D maps and 3D globes. From the start of ArduPlotter there has been a button to download a (generated) KML file of the flight which will open in Google Earth if you have it installed. Being able to view a 3D map in browser seemed like an awesome idea, so I set about making a quick prototype.
So I’ve just got one of these and wanted to turn it off if you hold down one of the buttons for a short period of time.
This is the quick python script I’ve come up with. Continue reading
So you are ready to deploy your Sails.js application and you want to use HTTPS (ssl). So you go to the website. Nothing there. A bit of googling takes you to this Stack Overflow question. That doesn’t work.
You then find the wiki on SSL. That says ‘TODO’ and has done for the past 5 months. Well that’s helpful. Continue reading
Linode DDNS updater script
So my domain registrar doesn’t do DDNS (dynamic dns), but Linode have an API to update your DNS records that you have on their name servers, so you can do DDNS with your own domains really easily!
I use my Wifi router with OpenWrt on to run the update script every hour. There are a couple of updater scripts out there, a quick Google will find you some. Below is one I’ve bodged together using a couple I found Continue reading
So I have been playing around with Magento for a couple of weeks and I have come across some very useful code snippets along the way. I have listed them below in the hope that they are useful to me and anybody else in the future. I will be adding more as I come across them. Let me know in the comments if you come across any more!
So by default MythWeb uses the cover art mythtv downloads, which is fine, however when each cover art image is >1Mb, and you have >100 videos, things get a little silly. What can we do about this? Well quite simply we can make the thumbnails ‘manually’, and then tell MythWeb to use our thumbnails. Continue reading
Well after about 2 hours of head desking I have I got the above to all work nicely together.
Firstly you need to install all the prerequisites. If you are using you can install most of these though apt-get. I assume you have LAMP set up locally and you will be testing on this
sudo apt-get install php5-dev php-pear php5-cli php5-xdebug phpunit
This will install a bunch of stuff you will need. If you want to install from source feel free.
So I have been playing with my arduino with a LCD I got ages ago. First off I had to solder some pin headers to the LCD so that I can plug it into a breadboard. I could have soldered the pins straight to the LCD but I used some ribbon cable in the middle, and some veroboard (Note to self: Get a dremel for birthday, that stuff is a pain to cut though!) to add flexibility and some give if/when I drop it… Continue reading
I have had a problem recently where I have been developing a website for a client, and they want their uploaded pdfs to be thumbnailed. This was a problem because their host didn’t have imagemagic and ghostscript installed.
However the nice people at 5quidHost (my hosts) do have it installed.
This is the code I have used: Continue reading