Skip to main content

Posts

Showing posts with the label Linux

PICO-8 on an ODROID-GO Advance Black Edition

UPDATE 2021/06/30 : This whole procedure is now super simple if you go the EmuELEC way following this guide:  https://retrogamecorps.com/2020/11/12/guide-pico-8-on-retro-handhelds/#EmuELEC  It's basically just to put the pico-8 in a specific folder, and any roms (unless you just use splore) in another. Last weekend I built the ODROID-GO Advance Black Edition with my daughter. (Apart from re-experiencing my childhood's Commodore 64 an Amiga games,) One of our goals was to run PICO-8 , the great little fantasy console, on it. That seemed possible, given that it shares a similar CPU to the Raspberry PIs – where it runs great. However, it was not that easy to get it up and running. Here’s what worked, but first, what didn’t… Official image First we installed the official image from HardKernel on it. But alas, no luck getting things to run properly. EmuELEC Next up was EmuELEC . There we managed to get PICO-8 to run in all it’s 8-bit glory! But! Controls didn’t work when la...

Using a Raspberry Pi as a MIDI USB/5-pin bridge

In my constant... need... to get everything music instrument related to communicate with each other, I wanted to look into ways to get some of my keyboards/synths with only MIDI over USB to talk to devices with regular good old-fashioned 5-pin MIDI ports from the eighties. Cables! First I had a quick look at off the shelf solutions. The most interesting one being the Kenton MIDI USB Host – providing MIDI host functionality for USB devices as well as regular MIDI in and out in a small box. Unfortunately it is rather expensive (~125 €) and a reliable online source warned me that it was not entirely stable in collaboration with my OP-1, so I started thinking of more... home-grown solutions. I decided to try to use my old Raspberry Pi and see if that would serve as a USB host with a borrowed MIDI USB adapter. (Thanks Simon.) A cheaper, and, as an added boon, a nerdier solution. Step 1: Get the USB MIDI device up and running This was the easy part. The device I have been lent ...

Sequel on the Pi - and how to access Access DBs from Ruby (in parenthesis)

Recently I had to liberate some data from an old MS Access DB, so I discovered a gem of a Ruby gem called " sequel " that generalizes database access (for many different databases) - ORM style. Most excellent, so I figured I wanted to run it on my raspberry pi to access various sqlite databases I have lying around. Assuming you already have ruby (1.9) installed, you can simply do (in any Debian flavored Linux, for that matter): sudo apt-get install sqlite3 libsqlite3-dev and sudo gem install sequel sqlite3 So now one can fire up irb and do things like: require 'sequel' db = Sequel.sqlite('some_db.db') Etc . (This will, of course, not let you access MS Access DBs on your pi, as they rely on the "win32ole" gem - only available on windows, and the " Microsoft Access Database Engine " - also only available on windows. More info on how to connect to those kinds of database can be found here  - under 'ado'.)

Fix upside down Skype video in Ubuntu 12.10 [UPDATED]

When launching Skype in 64-bit Ubuntu 12.10 on my Asus U35J the webcam image was all topsy-turvy. Since I don't live in Australia, or something (tsk-tsk), this was not really cutting it for me.  Some quick googling led me to this forum post:  http://forums.pcpitstop.com/index.php?/topic/198236-why-is-my-skype-video-showing-upside-down/   After making sure that the necessary packages was installed (notably  libv4l-0) I adapted the command from the forum post to: LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype and voila, the image was OK. Next step is for this to be set to default, which seems to be outlined here (in steps 2 and 3):  http://pc-freak.net/blog/how-to-fix-upside-down-inverted-web-camera-laptop-asus-k51ac-issue-on-ubuntu-linux-and-debian-gnu-linux/  (Actually this post seems to cover most of what is useful from the forum post above...) UPDATE (19/04/2013): Since my laptop was working fine, I decided it was abou...

Solid State FTW - Part 2: Asus U35J

Inspired by the success of the new SSD in my Mac Pro (and puzzled by a weird HD error) I went ahead and invested in a SSD for my 2010 Asus laptop as well. To get everything up and running the way I wanted took a bit more hacking than with the Mac, but now everything seems great - dual-booting Ubuntu 12.04 (main OS) and Windows 7 (mainly for gaming - till Steam is launched for Linux). This is what I did. I went for a 128 Gb CRUCIAL SSD m4 2,5" with a noname external 2,5" drive case. I tore out the old 600Gb-ish drive from the laptop, put it in the external case, and fit the new drive in its place. "Klok av skade", I went for installing windows first. (The Windows 98 installer overwrote my SuSE back in the day...) Windows 7 Since this Asus doesn't have an optical drive, I couldn't generate the "Recovery disc(s)" needed to reinstall the operating system. (Clever Asus.) The way I got around that was to boot Ubuntu 12.04 from a USB-stick, us...