Managing LVM

LVM stands for Logical Volume Manager. It is a tool for logical volume management allowing us to allocate disks, strip, mirror and resize logical volumes. With LVM, we can manage partitions dynamically. Recently at work, we opted to use LVM to create logical partitions instead of physical partition on Linux desktop. This post is just a note to remind me of some common used commands. If you want to learn more about LVM, hit this link instead. ...

July 4, 2014 · 2 min · 394 words · kenno

Eclipse ADT Fatal Error on Linux

The Eclipse IDE that comes bundle with Android Development Tools (ADT) crashes when run on my laptop running Fedora. The error message which logged to console is: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000003cc2270061, pid=9653, tid=140330452297472 # # JRE version: Java(TM) SE Runtime Environment (7.0_55-b13) (build 1.7.0_55-b13) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.55-b03 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [libsoup-2.4.so.1+0x70061] soup_session_feature_detach+0x11 # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # Fortunately, there’s a way to fix this problem by opening ‘eclipse.ini’ file, in my case: ...

July 2, 2014 · 1 min · 143 words · kenno

Running Kompare from command line

Recently I started to use Kompare a lot to compare the differences between two files. The way I compare two files is to open both files from the menu (File -> Compare Files). This is annoying and how I wish there were a way to just run Kompare from the command line passing 2 files as options. Well, it looks like my wish has been granted. I found the information here on how to do just that: ...

June 11, 2014 · 1 min · 94 words · kenno

New P&E OpenSDA Firmware v115 for K20D50M

Having trouble uploading compiled code to K20D50M board? There’s a new firmware that (should) fix this. A few weeks ago, I’ve updated the OpenSDA firmware on my Freescale FRDM-K20D50M to v114 only to find out that it no longer let me uploading any compiled files to the board. At first I thought my board was faulty, but felt relieved to hear that Erich Styger, an mbed expert, confirming this v114 firwmare also affected his K20D50M. Erich contacted P&E, and they in turn confirmed the problem. ...

June 3, 2014 · 1 min · 139 words · kenno

MongoDB warning: Failed to connect

After upgrading MongoDB from version 2.4 to 2.6, I am not able to connect to it from another machine. The firewall has been checked to ensure that port 27017 is opened for the machine that I want to connect from. So what else could go wrong? Well, I was impatient and turned to you know what… Google search. According to this link: https://groups.google.com/forum/#!msg/mongodb-user/yhf05AW-hK8/YqES0cVIXlUJ, the problem is due to the database is bound to only local IP. ...

May 22, 2014 · 1 min · 130 words · kenno