How to install Cassandra in OSX with homebrew

Standard

Cassadra is a high-performant distributed database now developed under the wings of the Apache Foundation.

Installing it on OSX with homebrew is pretty straightforward:

  • Download and install java (yes, Cassandra is written in java. Yes, WTF)
  • Install cassandra and its dependencies: brew install cassandra.
  • Homebrew will ask you to install install a .plist file in ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist so the service will start at OSX boot.

    For debugging pourposes (e.g trying phpcassa exception system) you may be interested in stopping and starting the cassandra process manually. You can do that with
    launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist or launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist

Remove node.js pkg and install it from homebrew

Standard

I want to move my software dependencies as much as i can to homebrew, the package manager for OSX.

The default node.js installation is a .pkg OSX package and i had installed it like so a couple of months ago.

To remove the files installed by this package you can use this github gist:

Then do a simple brew install node will enough to install it and if there is a new version available you will find it in the next brew update and you can update it with brew upgrade node

How to install homebrew in OS X Mountain Lion

Standard

Homebrew aka brew aka The missing package manager for OS X is a package management system that simplifies the installation of free software programs on OS X.

Installation in Mountain Lion is a bit different from previous OS X versions, here are the steps to do it (taken from this gist]:

  • Install last XCode from the App Store.
  • launch XCode. You don't need to create any project, just go to XCode > Preferences > Downloads and install Command Line Tools (about 110MB).
  • Change the path of the XCode folder: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
  • X11 libs are needed for some brew-installable programs, so download and install last version from XQuartz's website.
  • Fix its symbolic link: ln -s /opt/X11 /usr/X11
  • If you don't want to use sudo to install programs with homebrew (you can read why in the FAQ) you need to change /usr/local/ permissions: sudo chown -R $USER /usr/local
  • Finally you can install homebrew: ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
  • Here are some programs that i usually install: brew install coreutils wget wput colordiff ctags highlight bar xmlformat rename ack dos2unix csshX imagemagick links unrar gnu-tar fasd

How to install TeX Live 2012 and moderncv in Ubuntu Precise Pangolin

Standard

Time to upgrade you resume/curriculum vitae!

moderncv is a beautiful template for creating resumes (curriculum vitae) in LaTeX. LaTeX is a markup language and also a system designed for generate high quality documents. Almost all scientific papers and most books published nowadays are generated with this system.

You can see an example of a CV using moderncv's template in Michae'ls Write github.

First, download Michel's files from his git repository:

Next, download modernv package from CTAN:

Let's put Michael and moderncv files together:

Now, to be able to generate something similar we need to compile Michael's mwright-resume.tex file to a DVI or PDF using the TeX Live suite.

Sadly the current Ubuntu version (Precise Pangolin) comes with a quite old TeX Live version (2009). To be able to compile Michael's moderncv template we need to update it to version 2012. Here are the steps to do it according to this thread in the ubuntu forums:

Now if we try to compile the document...

... it will shoot this nice error:

So let's try with lualatex:

Now if we compile the document like this:

We will get, among others, a mwright-resume.pdf file filled with Michael's data.

We just need to edit the original .tex file, set our resume's data, compile it with lualatex and we will have an awesome designed resume like Michael's one.

about svbtle and wp-svbtle

Standard

The wordpress theme which this blog is currently using is called (as the bottom-left icon of the page shows) wp-svbtle.

This is a really slick theme inspired by the blogger network svbtle, a quite new but very promising network of tech bloggers started by Dustin Curtis. It features high quality writers and great content so i think its very worth spending some time reading some of them. If you prefer you can follow the best posts in their twitter feed account.

I think svbtle's minimalistic design is really good. Its main porpouse is to "focus on the writing, the news, and the ideas. Everything else is a distraction". Very close to the the UNIX philosophy: "do one thing and do it well".

wp-svbtle is a wordpress theme that recreates a similar blogging environment as you can see in this blog.

Hope you like it!

hola!

Standard

Hi there! Finally i've decided to do some blogging, it was about time.

It's going to be somewhat a mix between technical and personal stuff, with topics like programming, design, photography, music, travelling, food, sports, people, science...

I hope you enjoy it as much as me! :-)