Archive

Archive for November, 2011

Good old Sargon

November 29th, 2011 4 comments

Today I’ve uploaded an old Sargon song that we recorded back in 2005. It was supposed to be included in the Transcriptions album, but we took it out in the very last minute. I think it’s a pretty good song. Brings me really good memories. Enjoy!

Sargon – Cold by urinieto

Categories: sargon Tags:

Central Park

November 22nd, 2011 3 comments

My favorite place in New York. So beautiful. Go between 3pm and 5pm. In the Fall. And you’ll see the most amazing things.

Categories: new york Tags:

Open Terminal Tab in the same Directory in OSX

November 17th, 2011 No comments

I tend to work with multiple tabs in my terminals, keep opening, closing them, and so it is very useful to me to open a new terminal in my current folder instead of going to the home.

I’ve found this nice script that will do the work for you:

#!/bin/bash
osascript -e 'tell application "Terminal"' \
-e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' \
-e "do script with command \"cd `pwd`;clear\" in selected tab of the front window" \
-e 'end tell' &> /dev/null

If you c&p this in a new file called “nt” in your /usr/local/bin, and you change it’s permissions to be executable ( chmod +x /usr/local/bin/nt ), all you have to do to open a new tab in your current directory will be:

$> nt

Nice!

Categories: osx, programming Tags:

Compile and use PortAudio on OSX 10.7 (Lion)

November 10th, 2011 No comments

UPDATE: Version v19_20111121 doesn’t compile on my Lion, but version v19_20110326 does. I’ve updated this document accordingly.

UPDATE: Apparently, this also works on Snow Leopard. Not only that, but it might be the only way to use it under Snow Leopard.

It is frustrating to download the latest stable version of PortAudio, try to compile it on the new version of Mac OSX 10.7 (Lion), and get a bunch of errors.

However, for some reason, the previous stable release does work on 10.7.

Here the instructions (nothing fancy, just regular UNIX commands to compile and install):

  • Download the source file
  • Go to your directory and untar:
    $> tar zxvf pa_stable_v19_20110326.tgz
  • Configure:
    $> cd portaudio
    $> ./configure
  • Compile:
    $> make
  • Install:
    $> sudo make install

Now you should be able to go to the examples directory and compile and run the examples.

You must change the commas in #include "portaudio.h" for brackets: #include <portaudio.h>, so that the linker will look for the portaudio library inside your library path. To compile, for example paex_sine.c, you should type (inside the exmaples directory):

$> gcc -o paex_sine paex_sine.c -lportaudio

Then, you can just type ./paex_sine to listen to a 5 seconds sinewave.

If you are one of those who don’t like to install new libraries in your system path, you can always link with your libraries locally. In this case, you can leave the include with the commas. From the examples directory, you could compile some of these examples like this:

$> gcc -o paex_sine paex_sine.c -I../include/ -L../lib/.libs/ -lportaudio

In this case you will also need your DYLD_LIBRARY_PATH variable to point to your portaudio lib directory. Like this (it’s better to put the full path, I’m just putting the local path here as an example):

$> export DYLD_LIBRARY_PATH=../libs/.libs/

Now you can run it (from the examples directory): ./paex_sine

You’re all set.
Have fun coding with PortAudio!

Categories: programming Tags:

Cthulhu for President in Spain

November 10th, 2011 No comments

The Spanish general election will take place in 10 days. Since my country is so fucked up, and all human candidates are either retarded, senile, or both, the Great Cthulhu finally woke up in R’lyeh to offer the only sane political option for any Spaniard right now. He is the Leader for the Non-Euclidean Party (PNOE in Spanish), a new political party that will make the end of our days less stupid, more meaningful, and much shorter.

I finally have a Real Leader to vote for in my country.
Vote for PNOE on 11/20!
Cthulhu for president!
Party in R’lyeh to celebrate the end of our days!

That is not dead which can eternal lie,
And with strange aeons even death may die.

Categories: politics Tags: