flags for compiling source code: pkg-config command

Posted by & filed under Coding, Linux, Mac OS X.

so i was trying to compile some C code on my server at school that involves the math and the GNU Scientific Library (gsl) libraries. that is, the source has the following lines: #include <stdio.h> #include <math.h> #include <gsl/gsl_integration.h> those link the header files. however, when compiling, gcc would complain that they can’t see functions… Read more »

stumpwm on mac os x

Posted by & filed under Coding, Emacs, Linux, Mac OS X.

stumpwm is to window managing (tiling?) system what emacs is to text editing and conkeror is to web browsing. very cool. if i was on a linux laptop/desktop like i used to be, i would definitely use this. i’m even debating on quitting my mac os x for this (with emacs and conkeror). however, i… Read more »

emacs key bindings in mac os x (cocoa)

Posted by & filed under Coding, Emacs, Mac OS X.

so im very used to emacs keybindings. i use it for emacs and conkeror so often times i hit M-w etc and these keys don’t work in mac os x. this sucks. i googled it, and found this and this. guess u can have emacs keybindings in mac os x…for programs that use the cocoa… Read more »

using pastebins for irc: pastie.org

Posted by & filed under Coding, Emacs, Internet.

so i’ve been using erc for irc these days to get help on compiling stuff, eg, shell-fm and madplay. i usually just paste the errors i get which sometimes can be long. however, that is bad courtesy in the irc channels as that junk takes up a lot of room. jkramer from #shell-fm on the… Read more »

record music from last.fm using shell-fm

Posted by & filed under Coding.

as i mentioned before again and again, i’ve been working on to get shell-fm to record music from last.fm. originally, i was trying to get shell-fm pipe to tee to save the songs and play using madplay (or mplayer) based on this method. this worked. i just need to write scripts to post process the… Read more »

installing shell-fm on mac os x

Posted by & filed under Coding, Mac OS X.

i blogged recently that i couldn’t compile shell-fm on mac os x. hopped #shell-fm on the freenode, and talked to the author himself. the error i got was: cc -o shell-fm -D__darwin__ -Os -Wall -W -I./include/ -DLIBAO -I/opt/local/include -I/opt/local/include main.c -L/opt/local/lib -lmad -lm -Wl,-framework -Wl,AudioUnit -L/opt/local/lib -lao -lpthread libshellfm.a ld: in libshellfm.a, archive has no… Read more »