Command Line Shortcuts
I was reading this post today on how to become a command line ninja and here is some interesting stuff I learned:Ctrl+U: This clears the entire line so you can type in a completely new command.Ctrl+K:...
View ArticleOgre3D Applications and Emacs
This is the first application of the Ogre3D tutorial, set up for compiling by callingmake -kfrom Emacs. This is useful when you have a shortcut for M-x compile say, F1, so you want to be able to call...
View ArticleCompletely Disable Touchpad in Ubuntu
To temporarily disable the touchpad while typing just go toSystem > Preferences > Touchpad and checkDisable touchpad while typing but if you want to completely disable it, you can do the...
View ArticleOpenCV 2.2 on Ubuntu 10.10
*Update: For OpenCV 2.4 on Ubuntu 12.04 see my latest post. OpenCV (Open Source Computer Vision) is a library of programming functions for real time computer vision. It is released under a BSDlicense,...
View ArticleCopy Paste between Emacs and other applications
If you are using GNU Emacs in an X-windows environment like Gnome, you would have noticed that sometimes copy-pasting from Emacs to other applications or vice versa does not work. To fix this, edit...
View ArticleHow to delete all .svn directories
If you are using subversion, at some point you probably tried to take some folders from one repository and try to commit then to another. Since each folder has a hidden .svn folder, subversion will...
View ArticleGRUB 2 Splash Images on Ubuntu
Here is how you can get a nice background image for GRUB boot menu. First, install the "grub2-splashimages" package:sudo apt-get install grub2-splashimagesThen edit /etc/default/grub and add the...
View ArticleInstall Sun Java JDK in Ubuntu 10.10
To install Sun's Java 6 JDK on Ubuntu 10.10, add the Sun Java6 Community PPA and install:sudo add-apt-repository ppa:sun-java-community-team/sun-java6 sudo apt-get update sudo apt-get install...
View ArticleInstall and Configure Tomcat6 on Ubuntu Linux
Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed under the Java...
View ArticleInstall Ubuntu Tweak on Ubuntu 10.10
Open a terminal and type:sudo add-apt-repository ppa:tualatrix/ppa sudo apt-get update sudo apt-get install ubuntu-tweak
View ArticleHow to add users on Ubuntu
First, add the new user:sudo useradd -c “John Smith” -m -s “/bin/bash” jsmith and then create a password for the new user:sudo passwd jsmith The -c options lets you give a full name for the user, -m...
View ArticleHow to install CUDA 4.0 on Ubuntu 10.10 or later
First, you need to install the NVIDIA development drivers. Download the current version (270.41.19) here. To install the dev drivers, reboot and go into recovery mode. Select the "Drop to root shell...
View ArticleOpenCV 2.3.1 on Ubuntu 10.10 or later
*Update: For OpenCV 2.4 on Ubuntu 12.04 see my latest post. This post will guide you on how to compile and run OpenCV 2.3.1 on Ubuntu 10.10 or later. First, install all prerequisites: sudo apt-get...
View ArticleUsing FFMPEG
FFMPEG is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec; the leading audio/video codec library. FFMPEG is a free software project and it is...
View ArticleElapsed Time for Shell Scripts
A lot of times you want to calculate the time it takes for a part of a shell script to run. Here is one of the ways you can do this:T1=$(date +%s) # Do something here T2=$(date +%s) diffsec="$(expr...
View ArticleOpenCV 2.4 on Ubuntu 12.04
Edit (August 2013): Just used these steps to install OpenCV 2.4.6.1 on Ubuntu 12.10 without problems. OpenCV 2.4.0 was released on May 2012 providing, a lot of improvements and bug fixes. For a...
View ArticleIcon Action Sheet for iOS 6
One of the new features of iOS 6 is the replacement of the button based action sheet with the new icon action sheet. If you tap the options for a library photo for example you get icons for emailing...
View ArticleOgre3D Object Placement Utility
I wrote an open source object placement utility that allows for placing objects (trees) on a terrain using the mouse. It consists of a terrain and a water surface (pond). The user can select from 3...
View ArticleSimple HTTP Server in Python
A very easy way to setup a simple HTTP server is by using this built-in Python capability. This will turn any directory into a web server directory. The only thing you have to do is run: python -m...
View ArticleExtract decimals from text using grep
Let's say you have a log file that looks like this: I/Profiling: TimeInterval1: 3271.72 ms I/Profiling: TimeInterval1: 3379.15 ms I/Profiling: TimeInterval1: 3645.32 ms ... and you want to extract all...
View Article