4/02/2012

scipy 0.7 to 0.9 arpack interface change

http://docs.scipy.org/doc/scipy-0.9.0/reference/release.0.9.0.html?highlight=arpack#arpack-interface-changes


Other changes

ARPACK interface changes

The interface to the ARPACK eigenvalue routines in scipy.sparse.linalg was changed for more robustness.
The eigenvalue and SVD routines now raise ArpackNoConvergence if the eigenvalue iteration fails to converge. If partially converged results are desired, they can be accessed as follows:
import numpy as np
from scipy.sparse.linalg import eigs, ArpackNoConvergence

m = np.random.randn(30, 30)
try:
    w, v = eigs(m, 6)
except ArpackNoConvergence, err:
    partially_converged_w = err.eigenvalues
    partially_converged_v = err.eigenvectors
Several bugs were also fixed.
The routines were moreover renamed as follows:
  • eigen –> eigs
  • eigen_symmetric –> eigsh
  • svd –> svds

1/20/2012

terminal timer command

$ sleep 60; gmessage -bg RED -geometry 800x600 -center "Time is up." & echo "Time is up." | festival --tts

sleep 60 -> 60sec waiting.
gmessage -> display messagebox
echo "something" | festival --tts  -> Text to speech

1/19/2012

Enabling systray in Ubuntu 11.10 Unity

1.


$ gsettings get com.canonical.Unity.Panel systray-whitelist


['JavaEmbeddedFrame', 'Wine', 'scp-dbus-service', 'Update-notifier']


$ gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Wine', 'scp-dbus-service', 'Update-notifier', 'DaumCloud']"


-> then re-login


2.


install dconf-tools


$ dconf-editor
-> desktop > unity > panel > enable the notification area


$ dconf-editor
> 

1/17/2012

Ubuntu 11.10 unity sucks!



This unity interface is ... sucks !

Flexibility has gone... customizing become more difficult....

Linux mint or debian.. I'm considering..

12/14/2011

Ubuntu desktop cube rotating by human physical motion.


Not so complicated as it appears.


Two distance measuring sensors detect motion and send signals to the AVR board behind the monitor.

Then, the AVR board analyze whether the object is moving to right or left, and send analyzed result to PC (ubuntu) through USB serial port.

On ubuntu, python program daemon read the serial data, and rotate desktop cube.




It was my first AVR playing.
Very funny.