A blog eh?

So ive decided it’s time to start a blog to record all the random musings, tutorials, code snippets and the rest - so here it is… Congratulations you’ve found it!

Build your own?

If you want to build something similar, go clone/fork : lanyon - it’s Amazing and follow the GitHub pages instructions, Its really that simple! I also setup Jekyll locally to save a couple of pushes when testing. Setup:

apt-get install ruby-dev zlib1g-dev python-ptyprocess python-pexpect python-gconf python-xdg

Then create a file called “Gemfile” containing:

source ‘https://rubygems.org’ gem ‘github-pages’, group: :jekyll_plugins

to get bundle to build jekyll. After that run:

bundle exec jekyll serve

To start the server (page generation and server startup takes ~1 second on my tired old laptop) and browse localhost:4000 and your all done! Really great experience.
Leave the server running while changes are made and you get automatic instantaneous generation (ok not really but: 0.198782435 seconds.) and publishing!
Kudos to all that were involved in these projects!

Building MobileOrg

ported from my old blog

So today i tried to build MobileOrg in android studio, couldent even get the emulator to start. Complains:

Cannot launch AVD in emulator. Output: libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 55
Current serial number in output stream: 54
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 155 (GLX)
Minor opcode of failed r

Turns out theres a problem that android supplied stdc++ not being compatible with the rest of the system. This fixed it for me: (Debian stretch linux)

Backup:

android_sdk_dir=”~/your_location
mv ${android_sdk_dir}/tools/lib64/libstdc++/libstdc++.so.6 ${android_sdk_dir}/tools/lib64/libstdc++/libstdc++.so.6.bak
mv ${android_sdk_dir}/emulator/lib/libstdc++/libstdc++.so.6 ${android_sdk_dir}/tools/lib64/libstdc++/libstdc++.so.6.bak

Link system to Android:

ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ${android_sdk_dir}/tools/lib64/libstdc++/libstdc++.so.6
use ln -s /usr/lib/libstdc++ in arch

(obviously substituting your own ${android_sdk_dir})
now the emulator boots but wont close… credit for this solution goes to stackoverflow.com and code.google.com

FYI - Mobileorg is an android app that can sync and edit org files made in emacs (my current choice of text editor). I plan to work on mobileorg, theres an entry in a todo list in an org file somewhere….