Cordova – update all plugins in project

A quick hack to update all the Cordova plugins used in a Cordova project. Next hack will be updating all Cordova platforms… From the Cordova project run the following (unix shell required): cordova plugins | grep -Eo ‘^[^ ]+’ | while read line do     echo "cordova plugin remove $line"     echo "cordova …

Continue reading ‘Cordova – update all plugins in project’ »

Generating call graphs with Doxygen

Obviously you should first download and install Doxygen Next, you should download and install Graphviz which will install the dot tool in a nutshell, you create the documentation by running: doxygen my_conf_file Where my_conf_file contains all the required parameters for the generated documentation. If you use the doxygen wizard from the UI, a configuration file …

Continue reading ‘Generating call graphs with Doxygen’ »

Adding user on MySQL

This will be put here until I create a page of all those things that should be put on one cheat sheet… CREATE USER ‘newuser’@’localhost’ IDENTIFIED BY ‘password’; GRANT ALL PRIVILEGES ON * . * TO ‘newuser’@’localhost’; FLUSH PRIVILEGES;

Adding a row to matrix with numpy

Needed to convert a one dimensional array to a two dimensional numpy matrix and then add a row vector to the end of the matrix. import numpy array1d = range(10,100) array2d = [array1d[i:i + 10] for i in range(0, len(array1d), 10)] newline = [88 for i in range(1,11)] m = numpy.matrix(array2d) m_extended = numpy.vstack([m, newline])

Atom editor on Ubuntu

To Install the atom editor for Linux (taken from here): $ sudo add-apt-repository ppa:webupd8team/atom $ sudo apt-get update $ sudo apt-get install atom I needed syntax highlighting for Lua. My suggestion is: Start atom, press <Ctrl><Shift>P Type: install packages Select ‘Settings View: Install Packages’ Search for language-lua package install the language-lua package You should get …

Continue reading ‘Atom editor on Ubuntu’ »

Ubuntu 14.04 LTS very slow on VirtualBox

Got the solution from here: Shut down the guest machine Select the Ubuntu 14.04 virtual machine and click the Settings button Select the ‘Display’ item from the list on the left In the Video tab on the right, check the ‘Enable 3D Video Acceleration’ option Select the ‘Storage’ item from the list on the left …

Continue reading ‘Ubuntu 14.04 LTS very slow on VirtualBox’ »