2015.01.23

Install biblatex using tlmgr.

Solves

cannot setup TLPDB 

by

tlmgr init-usertree 

Solves

Please install xzdec and try again.

by

sudo apt-get install xzdec

Install by

tlmgr install biblatex
2014.11.21

Trying to POST without using form in Rails, I got this error:

Can't verify CSRF token authenticity
Completed 422 Unprocessable Entity in 1ms
ActionController::InvalidAuthenticityToken

To (temporarily?) solve this, add this line in the Controller:

protect_from_forgery with: :null_session
2014.10.13

I have the need to use a touch screen with a GUI running in Ubuntu. Apparently, touch gestures has been developed since 2008!

Setup

The touch screen I use is a monitor by DELL, P2714T. This monitor uses Advanced Silicon, which was supported since Linux kernel 3.6. The Ubuntu I use is 14.04 Trusty Tahr. The monitor works with the default setting. Chrome seems to crash the touch interface, but Chromium works nicely.

Problem

Now, I have this GUI which was developed with gtkmm2.4 and uses gtkglarea to display 3D model in OpenGL. Touch events are only supported in GTK3. While I could possibly redevelop my GUI in GTK3, gtkglarea is not supported in Gtk3. One of the solution is to use GLX to display the OpenGL. Gtk3 and GLX work nicely.

2014.10.13

Hello world. I’m going to post some programming related (and maybe some other forms of my interests) stuff here.