Here's a simple NATS
gnatsd service for
gnatsd on boot and restarts it in case it
crashes (which is highly unlikely). I assume you've already
gnatsd executable and placed it in
Save the configuraton below as
It's easy to compile ReportLab on OSX (in my case, 10.8). The only problem is, you'll get the following warning:
# installing without freetype no ttf, sorry! # You need to install a static library version of the freetype2 software
Don't try to
brew it yet. OSX already ...
Scenario: a grocery store
A WOMAN approaches you as you carefully appreciate the sodium content of a can of beans.
WOMAN: That can of beans is going to kill Earth!
YOU: My God!
(you proceed to bludgeon your forehead with the can of beans until you knock yourself unconscious.)
— This ...
If you get the following error when you are compiling a Python C extension module in Mac OSX 10.6:
/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed Installed assemblers are: /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture ...
flash_player_10_solaris.x86.tar.gzfrom http://get.adobe.com/flashplayer/ to
Open a terminal and execute the following:
cd ~/Downloads tar xjvf flash_player_10_solaris_x86.tar.bz2 pfexec cp ~/Downloads/flash_player_10_solaris_r42_34_x86/libflashplayer.so /usr/lib/firefox/plugins
You should have heard about Go, Google's new language. To be honest, it is one of the ugliest languages I've ever used (I mean among the ones not designed to be ugly); but it's interesting enough, and I decided to teach myself some.
Here's the result ...
Say, you want to insert a function, class or any other object into the current module dynamically. How can you do that? Of course, you start with getting the module name:
myName = globals()['__name__']
Then, get the module itself:
import sys me = sys.modules[myName]
OK, you got the module ...