Good permission for /tmp

I have been having issues getting X2Go running on a CentOS 6.5 box. It took me a while to figure out that the problem laid with the permission of /tmp directory. I’ll write how to solve the X2Go problem in another post. The recommended permission for /tmp is 1777. Notice that the forwarding ‘1’ is the sticky bit which only allows the owner of the file within /tmp (or the root user) to delete/rename the file....

February 16, 2015 · 1 min · 76 words · kenno

Pololu A-Star 32U4 Mini on Ubuntu

Recently I received a A-Star 32U4 mini board from Pololu, which I’d bought during the Black Friday for just $6. Since this mico-controller board shares many similarities with Arduino Leonardo, I thought I could just upload the program using Arduino IDE by selecting Arduino Leonardo as the board type. Unfortunately, that did not work even after I tried resetting the board as suggested in the following the error message logged by Arduino IDE in the console:...

December 13, 2014 · 1 min · 190 words · kenno

Updating Nexus 7 to Lollipop using sideload

This post is a note to remind myself how to manually flash Android firmware on a Nexus device. Step 1, download the firmware to your computer. I downloaded Android 5 from: http://www.droid-life.com/2014/11/13/download-android-5-0-ota-update-nexus-5-7-10-4/ Step 2, connect Nexus 7 to the computer. Mine runs Ubuntu 14.10, and I already downloaded Android SDK. Make sure that “Developer Options” is enabled. If it’s not, go to Settings -> About tablet. Then click on “Build Number” 7 times....

December 13, 2014 · 1 min · 127 words · kenno

Gtk-Message: Failed to load module “overlay-scrollbar”

On Ubuntu distro, if you see the error message in console as the following whenever you run a Gnome-based applications, chances are you had ‘overlay-scrollbar’ package previously installed but now removed. However, the configuration file which came with that package remained on your system. We can verify this with this command: rc : remove but config file still presents. On my Ubuntu desktop, this config file resides at /etc/X11/Xsession.d/81overlay-scrollbar. To correct this problem, we can purge ‘overlay-scrollbar’ package with this command:...

December 9, 2014 · 1 min · 105 words · kenno

vim-youcompleteme

I need to setup vim-youcompleteme to get real-time completion for write Golang code. Assuming that this part has been completed first: $ cd ~/.vim/bundle $ git clone https://github.com/fatih/vim-go.github Here’s how vim-youcompleteme is installed/enabled on Ubuntu 14.04: $ sudo apt-get install vim-addon-manager vim-youcompleteme $ vam install youcompleteme Note: vam is short for the vim-addon-manager. Reference: http://blog.gopheracademy.com/vimgo-development-environment/

December 5, 2014 · 1 min · 55 words · kenno

Android Studio Cannot Resolve Symbol R

I just got this problem today when I opened an Android project with Android Studio. Basically, anywhere there’s a reference to R, for example R.layout.footer_view, Android Studio will complain that it cannot resolve symbol R. The fix is surprisingly easy. All I need to do was running Gradle clean and Gradle build. Ref: http://stackoverflow.com/questions/17054000/cannot-resolve-symbol-r-android-studio

November 25, 2014 · 1 min · 54 words · kenno

Installing Linux Mint 17 on Virtualbox

You may or may not have problem installing Linux Mint 17 on VirtualBox depending on the setting of your Virtualbox VM. I had this problem and took me a while to fix it. Basically, ensure that you set the system memory of your VM to be larger than 512MB, otherwise you might see black screen after booting your VM from the Mint DVD installation. Once the installation is finished, feel free to reduce the VM’s system memory to 512MB or smaller....

October 21, 2014 · 1 min · 81 words · kenno

Progamming Arduino using USBasp on Ubuntu

My USBAsp dongle arrived from China. It’s connected to the ISCP pins on an Arduino Nano, and also plugged to a computer via USB connection. According to lots of intructions on the Internet, to upload a sketch to an Arduino, we need to do the following: Tools -> Programmer -> USBasp File -> Upload Using Programmer Unfortunatly it did not work. Here is the error message produced by Arduino IDE:...

September 13, 2014 · 1 min · 147 words · kenno

Windows 7 Boot Error with MpFilter.sys corrupted

After doing patch-Tuesday update yesterday, my Windows 7 no longer booted. This is the second time it happened. Last time I fixed it, didn’t get to document and it took me a while to figure out how I did it. This version of Windows is Windows 7 Professional 32-bit. After some digging, MpFilter.sys is Microsoft Malware Protection Minifilter, which is a part of Microsoft Security Essentials (MSE). MSE is installed on my Windows 7 machine....

September 11, 2014 · 1 min · 119 words · kenno

Arduino improving nRF24L01+ reliability

In the past few weeks, I noticed that data transmitting from one of sensor nodes got dropped dramatically. This sensor node is an Arduino Micro using nRF24L01+ as the transmitter. Well, it’s supposed to send data to the base station once every 30 seconds; however the transmitting recurrence time exceeded 2 minutes. By default the transmitting rate is at 1 Mb/s, so I dropped it to 250 Kb/s to see if had any better improvement....

August 12, 2014 · 1 min · 205 words · kenno