Monthly Archives: May 2014

Ubuntu 14.04: stop Octave 3.8.1 autoload all packages

The current default setup for Octave 3.8.1 on Ubuntu 14.04 is to load all install packages at startup. I find this irritating and a not recommended practice by the Octave creator JWE. Instead of starting up in 0.1 seconds, Octave takes 5 seconds to start — really annoying, especially when using oct2py in Python! Here’s […]

802.1x wireless WPA2-Enterprise without certificate: Ubuntu 14.04

NetworkManager in Ubuntu 14.04 has an issue with 802.1x networks that don’t require the laptop to have a .cert file. A bug report has been launched in regards to this. Note: the following discussion can subject your laptop to “man-in-the-middle” attacks by disregarding the need for a .cert file. However, if your network IT dept. […]

Spyder with Ipython: Make matplotlib plots appear in own window

The default for Spyder 2.2 and 2.3 with Ipython is to have new matplotlib figures appear “inline” in the Ipython console. I want separate windows to pop up for figures as with the standard python console. To do this: In Spyder, click Tools, Preferences, Ipython Console, Graphics and under Graphics Backend select “automatic” instead of […]

Spyder 2.3.0 Python3 installation on Ubuntu 14.04

Note: Now that Spyder 2.3 has been officially released, you can just do sudo pip3 install spyder This is not a permanent installation, it leaves your existing Spyder installation alone. Prerequisities: ipython3 ipython3-qtconsole python3-pyside.qtcore python3-pyside.qtgui python3-pyside.qtsvg python3-pyside.qtwebkit python3-psutil python3-pep8 python3-sphinx 0) download and extract the ZIP file of the latest Spyder 2.3 from https://bitbucket.org/spyder-ide/spyderlib/downloads I […]

Matplotlib Python3: fixing pyplot.imshow()

I have noticed on my Ubuntu 14.04 PCs and have seen other OSs having issues with python3 and matplotlib.pyplot.imshow(). Errors like: backend_gtk3cairo.RendererGTK3Cairo … NotImplementedError: Surface.create_for_data: Not Implemented yet. and getting blank images. I fixed the problem by switching the matplotlib backend as follows: 1) placing a file named “matplotlibrc” in the directory of my Python […]

GoToMeeting.com Windows client under Wine / Linux

So far, the webcam doesn’t work, but the send/receive audio does work on a test call. I didn’t test receiving video. NOTE: in an actual conference, I wasn’t able to get sound, and so had to use a telephone. I have also seen problems with this for people using Windows and Mac at a large […]

Removing line numbers from text file

Suppose you want to reuse code from an OCR’d book or a text file, that has line numbers embedded in the file. For example say you had a file neat.py: 1 # cool program 2 import sys 3 def howneat(): 4 sys.exit(‘Thanks for visiting’) You can remove the line numbers by typing in Terminal: perl […]

Intel NUC D54250 firmware update coming for shutdown-reboot issue

I noticed shortly after using the Intel NUC D54250WYK that after shutting down the NUC, a few seconds later the system would restart. I disabled Wake On Lan and the problem seemed to go away. Intel has released a BETA firmware to fix this, but I am holding out for a final firmware version. https://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=23826

Matlab R2013b C++ MEX on Ubuntu 14.04

Ubuntu 14.04 comes with GCC 4.8, but Matlab R2013b wants GCC 4.8. The error you will get includes. Warning: You are using gcc version ’4.8.2′. The version of gcc is not supported. Note that Matlab R2014a uses a new system for MEX configuration. You should not use this process for R2014a and newer. For Matlab […]

Matlab: imwarp over 3x faster than imtransform

In Matlab R2013a, imwarp was brought in, and by R2013b the Lint warning tells you to use imwarp instead of imtransform. On my simple test (a horizontal linear shift) imwarp was 3.4 times faster than imtransform. I had this inside a for loop (first I loaded an image to variable ‘bg’) bg = imread(‘myimage.jpg’); [nRow,nCol] […]