sort differs on Mac and Ubuntu

On Mac
$ echo -e "bed,B\nbedatco,B" | sort -t , -k1
bed,B
bedatco,B

On Ubuntu
$ echo -e "bed,B\nbedatco,B" | sort -t , -k1
bedatco,B
bed,B

Both are
$ sort --version
sort (GNU coreutils) 8.22

Log Tools

transport: flume, fluentd, scribe, rsyslog, syslog-ng
search+analytics: hadoop, graylog2, elsa
storage: hdfs, cassandra, elasticsearch


http://youtu.be/RuUFnog29M4?t=6m20s

Upgraded to Ubuntu 13.04, broke triple monitor setup on W520

able to purge and install bumblebee again to make optirun glxspheres work
http://askubuntu.com/questions/290443/bumblebee-cannot-access-secondary-gpu-error-xorg-ee-no-devices-detected

but after patching and compiling new version of xserver-xorg-video-intel
https://launchpad.net/ubuntu/+source/xserver-xorg-video-intel
as 2:2.21.6-0ubuntu4

xrandr can not show VIRTUAL

Book: Using Node.js for UI Testing


http://www.packtpub.com/testing-nodejs-web-uis/book

This is a book I got from the linked-in JavaScript group downloaded for free for review, but I had not finished reading through it yet.

The author is from Nodejitsu (I used some of their npm packages: forever, http-server), so it should have some decent and credible content.

The book uses Zombie.js and mocha, I use PhantomJS and mocha. There are Zombie.js vs PhantomJS comparisons:
http://stackoverflow.com/questions/12498308/how-to-choose-between-zombie-js-and-phantomjs-for-automated-web-testing

My understanding is that PhantomJS is runing as another process (as a headless webkit browser so can do real rendering and basically all stuff browser can do) while Zombie.js is within Node.js as a module (so might not have all real browser features supported but easier to write directly in Node).

The book has code examples about installing and using modules (like extended module's documentation with more step by step guide and more explanation along the way)

When I got some bandwidth, would definitely like to get hand down and try out some of the examples indside.

angular-phonecat-livescript-socketstream

AngularJS Phone Catalog Tutorial Application, in LiveScript with SocketStream 0.3.2, LESS, Jade, including Unit and E2E Tests

https://github.com/yiwang/angular-phonecat-livescript-socketstream

JavaScript RegExp test(undefined) behavior


/[a-c]{1}/.test()
false
/[a-d]{1}/.test()
true

/undefined/.test(undefined)
true

/undefined/.test()
true

W520 Tri-head Display Setup, Nvidia Driver Power 2 External Monitors

1. Originally want to setup a xorg.conf file using
http://zachstechnotes.blogspot.com/2012/01/tri-head-display-on-linux-thinkpad-w520.html

2. Then found this using Bumblebee etc,
http://judsonsnotes.com/notes/index.php?option=com_content&view=article&id=673:triple-head-monitors-on-thinkpad-t520&catid=37:tech-notes&Itemid=59

3. Then noticed the post with more reference.
http://zachstechnotes.blogspot.com/2012/04/post-title.html

Finally got it to work, not like 2's approach with Intel driver control 2 monitors (can not make it work), I must use Nvidia driver to control 2 external monitors.

After patched xserver-xorg-video-intel, xrandr lists LVDS1, VGA1 and VIRTUAL, but VGA1 is always disconnected no matter how I change /etc/X11/xorg.conf.

I can get 1 external monitor (which is always the one connected to VGA port) to work by as in http://sagark.org/optimal-ubuntu-graphics-setup-for-thinkpads/

Noticed BOTH external moniters wake up (indicator light from yellow to blue) to grey (black) screen, this seems they are controlled by Nvidia driver.

Reading  https://github.com/Bumblebee-Project/Bumblebee/wiki/FAQ, using

optirun nvidia-settings -c :8

indeed verify Nvidia displays 2 external monitors, and I can set twinview etc.

Why only one external monitor show stuff, and the other is grey?

Rescue comes just from xrandr, the key is to assign a larger resolution to VIRTUAL, and twinview within those 2 external monitors works:
https://wiki.ubuntu.com/X/Config/Resolution#Dynamically_setup_with_xrandr

$ cvt 3840 1080 60
# 3840x1080 59.96 Hz (CVT) hsync: 67.16 kHz; pclk: 346.00 MHz
Modeline "3840x1080_60.00"  346.00  3840 4088 4496 5152  1080 1083 1093 1120 -hsync +vsync

$ xrandr --newmode "3840x1080"  346.00  3840 4088 4496 5152  1080 1083 1093 1120 -hsync +vsync
$ xrandr --addmode VIRTUAL 3840x1080