Python and virtual environments on MAC OS X

1. install Xcode 2. launch Xcode and Agree with License Agreement 3. install brew.sh $ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" 4. install midnight-commander python 2.7 and/or python 3.x $ brew install mc $ brew install python...

Postgres earthdistance vs PostGIS

I needed to calculate the distance between to GPS coordinates. I have found couple of methods. 1. Postgres earthdistance you need to install the contrib package for postgres. Import the cube.sql and the earthdistance.sql. More about this at postgresql docs psql -d...

emacs commenting lines

I was wondering if the comment-dwin (M-;) command could be changed that if i am anywhere in the line the whole line is commented and not a comment started from the end of the line. based on the idea found in a mailing list i altered the command with ;;...

Install Emacs from source on MAC OS X

How to install Emacs from source? You will need Xcode tools to perform this operation. MacBook-Pro: mkdir src MacBook-Pro: cd src MacBook-Pro: cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/emacs co emacs MacBook-Pro: cd emacs MacBook-Pro: ./configure --with-ns...

Hidden files

open a terminal and run the following to show hidden files MacBook-Pro: defaults write com.apple.Finder AppleShowAllFiles true MacBook-Pro: killall Finder to hide them run the following MacBook-Pro: defaults write com.apple.Finder AppleShowAllFiles false MacBook-Pro:...

MAC OS X filling up free space

MAC OS X filling up free space

I have my MacBookPro for 1 year now, and recently I had to often the message that my MAC OS X HDD is running out of space, and effectively finder said ZeroKB, df -h 0 available. As I was installing quite a lot of apps for test during the last year, I have decided to...

http monitoring with God

A few more line to the monitoring of yesterday [...] w.restart_if do |restart| restart.condition(:http_response_code) do |c| c.host = 'localhost' c.port = port c.path = '/' c.code_is_not = 200 c.timeout = 3.seconds c.times = [2, 5] end...

still this performance issue

Unfortunately my previous solution was only temporary, after a while I mentioned that mongrels are eating the memory and hanging. What is sure is that rails is using up to too much memory and crashes, it even seams to be a known problem, (wonder why I have not found...

Drupal on nginx

I already shared some nginx configuration for PHP, but here is one for Drupal. server ~ / $ cat /etc/nginx/sites-available/drupal.conf server { listen 80; server_name DOMAIN; error_log logs/DOMAIN-error.log; access_log logs/comDOMAIN-access.log main;...

redmine on nginx with mongrel_cluster

The webrick of redmine has couple of performance issues, so I was looking for an alternative solution to avoid the use of Apache and its proxy features. As already I use nginx it was clear to use it. The proxy is working perfectly with proxy_pass to the webrick, but...

wordpress rewrite for nginx

Following the my previous post on nginx and php for the search engine friendly URL edit the virtualhost nginx config file and a localtion server ~/ $ cat /etc/nginx/sites-available/default.conf server { listen 80 default; server_name _; access_log...

install nginx

As promised here are some install instruction - or better would be to say how I did it. Download and unpack the latest source from http://wiki.nginx.org/NginxInstall. I selected the development version. server ~ / $ tar zxvf nginx-0.8.35.tar.gz server ~ / $ cd...

nginx and PHP

After installing nginx (I will maybe post all steps later). Some basic settings and it is runing. nginx cannot run PHP scripts directly, for this reason you need to use fastcgi. What do you need for this? 1st the php-cgi installed. To check where it is use server ~/ :...

nginx

nginx [engine x] is a HTTP and reverse proxy server, as well as a mail proxy server written by Igor Sysoev. It has been running for more than five years on many heavily loaded Russian sites including Rambler (RamblerMedia.com). According to Netcraft nginx erved or...

Vimperator

Vimperator is a Firefox browser extension with strong inspiration from the Vim text editor, with a mind towards faster and more efficient browsing. It has similar key bindings and you could call it a modal web browser, as key bindings differ according to which mode...

xmonad: a tiling window manager

xmonad: a tiling window manager

Have you ever felt that it is just annoying to use your mouse with a notebook? or that resizing manually windows as you need to see more? If yes Xmonad is for you. It is based on haskell. It was quite easy to implement and replace metacity under gnome. It is not so...

Redmine 0.9.3

After upgrading couple of new plug-ins are installed. Here is a basic start up script for gentoo $!/sbin/runscript depend() { need net } start() { ebegin "Starting redmine" start-stop-daemon --start --make-pidfile --chuid apache:apache --quiet --name redmine --pidfile...

Page 1 of 3123

Recent Posts

Tag cloud