Related Posts

command line speed test, see how fast is your server’s connection
Save the following script in a file called speed_test #!/bin/bash # Requirements # sudo apt-get install lftp iperf lftp -e ‘pget http://releases.ubuntu.com/14.04.3/ubuntu-14.04.3-desktop-amd64.iso; exit; ‘ make sure the file is executable: sudo chmod +x speed_test Once you have installed lftp and iperf make sure you have the script somewhere in your $PATH. The script basically downloads […]
#SCALA #NOTES Difference between list.foreach() and list.map()
[scala]val l = List(1,2,3,4,5) val lAfterForEach = l.foreach(x => x * 10) val lAfterMap = l.map(x => x * 10) println(“Original List: ” + l) println(“For each operates on each element, returns nothing:” + lAfterForEach) println(“Map is like foreach but returns new post-processed list: ” + lAfterMap)[/scala] output: [bash]Original List: List(1, 2, 3, 4, 5) […]
emacs doesn’t work after Leopard upgrade?
After updating from Tiger to Leopard I started getting this error whener I tried to execute emacs: Fatal malloc_jumpstart() error The solution was basically to reinstall it with dumpemacs sudo mv /usr/bin/emacs-i386 /usr/bin/emacs-i386.backup sudo /usr/libexec/dumpemacs -d emacs –version emacs Via Apple Support Discussions