I’ve been trying to get http://learn.adafruit.com/getting-started-with-flora/blink-onboard-led working and had a few issues getting the Flora working with the Arduino IDE under Ubuntu / Linux. Initially I had a bad mini-usb cable, which I diagnosed by checking dmesg when plugging the cable in and sure enough nothing registered. Once I found a working cable, I needed to download… Continue reading Getting Adafruit’s Flora working under Ubuntu 13.04
Drupal 7 – Programatically update a media module file display image style
I needed to push a change to a file display’s image style through to production, and Features didn’t seem to want to take it so I needed to push it via an update hook. Using code from file_entity_file_display_form_submit() and media_install() i came up with this, which worked: $display_name = ‘video__preview__media_youtube_image’; $image_style = ‘media_thumbnail’; $display = array(… Continue reading Drupal 7 – Programatically update a media module file display image style
Setting up a self signed SSL certificate with Apache
I’m assuming you have Apache installed. Enable the SSL mod for apache: sudo a2enmod ssl Create a directory for the certificates: sudo mkdir /etc/apache2/ssl Generate the certificate: sudo openssl req -x509 -nodes -days 365000 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt Openssl will ask for some information, make sure you set the FQDN properly, the rest… Continue reading Setting up a self signed SSL certificate with Apache
Raspberry Pi: Setting up remote access via TightVNC Server
Install the server on the pi: sudo apt-get install tightvncserver Now set up the server to start tightvncserver at boot: Paste the following into /etc/init.d/tightvnc. You will want to configure the line starting with /usr/bin/tightvncserver. The Pi can do 1920×1080 so that would be the max resolution. # First configure the user you want to run… Continue reading Raspberry Pi: Setting up remote access via TightVNC Server
exFat in Ubuntu 13.04
Ubuntu 13.04 doesn’t have support for exFAT filesystems, which are now being used on portable hard-drives, especially those with SSDs. Fortunately the fix is one line away: sudo apt-get install exfat-fuse Now reconnect your drive and it should be automatically mounted.