Even my scope node?
Cool!
a blog on compilers, Linux, software and other technological stuff
It seems we could thank HAL for all these years of great work and say goodbye in a short period of time (source below).
To be honest I still feel confused now and then about what (fill this blank) is doing for me. My understanding is:
linux kernel ─>─ udev ─>─HAL─>─ X server
│ │
└────────>───────┘
libudev
So I just try to find more about X/Hal/udev thing, and keep some links here. (Remember the best source of information is always the official web sites and the mailing list).
(Not) blaming HAL by Keith Packard (explains what X.org X server needs from HAL before 1.8)
Manage Linux Hardware with udev by Carla Schroder (tells a little history of udev and HAL, and how /dev, /sys works.)
I find this question asked very frequently... So here is the present of day(not for the April 1st, it's already 2nd in China now ;)
$ tac file.in | sed '1,10d' | tac > file.out
Obviously, you could replace 10 with any number you like, Cheers!
Dowload WEKA tarball from AUR, and Change weka.sh to
#! /bin/sh # Note: the '-Xmx256m' flag is used to set the maximum memory that the java # program is allowed. When working with large data sets, this number may need # to be increased based on how much memory you wish to allow weka to have. # Specifying command line arguments will override the defaults shown here. # Example: '-Xmx512m' DEFAULT_ARGS='-Xms32m -Xmx256m' if [ $# -gt 0 ]; then ARGS="$@" else ARGS="$DEFAULT_ARGS" fi java -classpath "${CLASSROOT+CLASSROOT:}/usr/share/java/weka/weka.jar:/usr/share/java/libsvm.jar" weka.gui.GUIChooser $ARGS
Do not forget to change the MD5SUM of weka.sh in PKGBUILD file :) Modify LibSVM PKGBUILD to:
# Contributor: Pierre Gueth # Modified by: Yuanjie Huang pkgname=libsvm pkgver=2.9 pkgrel=2 pkgdesc="A library for Support Vector Machines classification, include binaries and python bindings." arch=(x86_64 i686) url="http://www.csie.ntu.edu.tw/~cjlin/libsvm/" license=('GPL') groups=() depends=() makedepends=() optdepends=() provides=() conflicts=() replaces=() backup=() options=() install= source=("http://www.csie.ntu.edu.tw/~cjlin/cgi-bin/libsvm.cgi?+http://www.csie.ntu.edu.tw/~cjlin/libsvm+tar.gz") noextract=() md5sums=('c48109c825d8326d71c8c8564589736d') build() { cd "$srcdir/$pkgname-$pkgver" make || return 1 install -D -m755 svm-train $pkgdir/usr/bin/svm-train install -D -m755 svm-predict $pkgdir/usr/bin/svm-predict install -D -m755 svm-scale $pkgdir/usr/bin/svm-scale install -D -m644 java/libsvm.jar $pkgdir/usr/share/java/libsvm.jar cd "python" python setup.py build || return 1 python setup.py install --root $pkgdir }
Then makepgk and install, have fun.
Mendeley Desktop is a nice academic research resource management tool. However I messed its configuration up, and got to reset it. But there is no such a directory as .mendeley as I expect in my home directory, so I got to find it like this:
for f in `ls -a1F | grep -E '^\.[A-Za-z]+/$'`; \ do find $f -print | grep -E '[Mm]endeley'; done
Then simply delete everything I got, and bring Mendeley back happily ;)
In order to hibernate in Linux, you need a user space script and an backend. Two User space scirpts widely used are:
The linux kernel comes with hibernate backend named swsusp but you can also try other tool, so your options are:
My choise is pm-utils + uswsusp for I’m too lazy to patch and compile a kernel, and I’ve been using pm-utils for a long time.
And one more thing to mention, even hibernation-script comes with tuxonice, it can use uswsusp as backend.
Google App Engine supports SSL now, however Python 2.5 does not come with SSL socket in stock :(
gae$ /usr/local/bin/dev_appserver.py \ ~/projects/hello/ Traceback (most recent call last): File "/usr/local/bin/dev_appserver.py", line 50, in <module> execfile(script_path, globals()) File "/usr/local/google_appengine/google/appengine/tools/dev_appserver_main.py", line 338, in <module> sys.exit(main(sys.argv)) File "/usr/local/google_appengine/google/appengine/tools/dev_appserver_main.py", line 297, in main server = MakeRpcServer(option_dict) File "/usr/local/google_appengine/google/appengine/tools/dev_appserver_main.py", line 259, in MakeRpcServer host_override=option_dict[ARG_ADMIN_CONSOLE_HOST]) File "/usr/local/google_appengine/google/appengine/tools/appcfg.py", line 114, in __init__ self.opener = self._GetOpener() File "/usr/local/google_appengine/google/appengine/tools/appcfg.py", line 317, in _GetOpener opener.add_handler(urllib2.HTTPSHandler()) AttributeError: 'module' object has no attribute 'HTTPSHandler'
To resovle the problem you got to recomile Python with SSL support as instructed by Patrick Altman and then follow a regular configure – make – make install routine.
Then you need to Edit the Modules/Setup.dist to uncomment a couple of lines:
# Socket module helper for SSL support; you must comment out the other # socket line above, and possibly edit the SSL variable: SSL=/usr/local/ssl _ssl _ssl.c -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl -L$(SSL)/lib -lssl -lcrypto