Monday, March 17, 2014

Emacs insert new line in minimized CSV

Minimized CSV file content:
"2013-01-12","test", "123","2013-01-12","test", "123","2013-01-12","test", "123"

to convert to CSV (new line at each "yyyy-mm-dd", "test" tuple):
M-x replace-regexp
\("[0-9]+",\)
replace with: (new line insert)
\1<C-q C-j>n

Done

Hadoop on OSX

To get Hadoop 2.+ working on OSX, not using brew, just a pure installation from Hadoop homepage follow this tutorial:
Thank you for making these articles available for free. Click on some ads while you are there :)

Monday, November 11, 2013

Lenovo K1 How to add Google Apps?

How to add Google Apps?

Are you looking for a simple answer on how to put Google Apps on your Lenovo K1 tablet? Did you just flash the updated Lenovo K1 stock image and noticed it had no Google Apps?

You should let me know how, a company of worth few billions of dollars manages not to give instruction how to do it easily?

Yes?

----------------------------

Few solutions for Lenovo K1:
Paper weight: use your Lenovo tablet to hold some papers in place. Or continue to sort the web (keep that google index fresh) how "monkey doodles" "ABC magic" and "super duper" trick you into downloading some spyware :D - Welcome to Android!
Hang it on a wall: when kids stop by - you could point to it and say - this is what happens when $ to maintain something like a Lenovo K1 Android port cost > benefit to Lenovo.

----------------------------
Bottom line with non Google products:
Do not buy another tablet unless it is of Google's Nexus brand - everything else is complete WASTE of your money!

I think I was saying the same thing 2 years ago. haha!

Wednesday, November 6, 2013

Removing VMs from VirtualBox gui

Deleted files backing the VM? "Remove" option does not work?

edit /Users/<userName>/Library/VirtualBox/VirtualBox.xml and remove entries with the name of your VM. Removing options like LastSomethingSomething was safe to do in my experimentation but the main section is here:

<MachineRegistry>

<MachineEntry uuid="{ee2edf14-bc0f-4436-9cb2-beb983425c8f}" src="/Users/user1/VirtualBox VMs/ui_vm/ui_vm.vbox"/>

<MachineEntry uuid="{911ad5ce-a269-4549-8cdc-b1d8df47df72}" src="/Users/user1/VirtualBox VMs/ui_vm_w_ga/ui_vm_w_ga.vbox"/>

</MachineRegistry>


Monday, July 15, 2013

Disable click anywhere in IntelliJ

If you are using this awesome IDE - it has an annoying default with virtual space!

Here is how to disable it: http://stackoverflow.com/questions/593214/how-do-i-turn-off-the-unlimited-whitespace-in-intellij-editor

Enjoy!

Sunday, June 2, 2013

Create custom shortcut for Anki on OSX

Using this guide you can create an application shortcut and have it "open at login".

The command to run in "Run Shell Script" is:

/Applications/Anki.app/Contents/MacOS/Anki -b ~/Dropbox/Documents/Anki