sort differs on Mac and Ubuntu

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

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

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

Upgraded to Ubuntu 13.04, broke triple monitor setup on W520

able to purge and install bumblebee again to make optirun glxspheres work

but after patching and compiling new version of xserver-xorg-video-intel
as 2:2.21.6-0ubuntu4

xrandr can not show VIRTUAL

Book: Using Node.js for UI Testing

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:

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.


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

JavaScript RegExp test(undefined) behavior




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

1. Originally want to setup a xorg.conf file using

2. Then found this using Bumblebee etc,

3. Then noticed the post with more reference.

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

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, 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:

$ 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