Aktagon - snippets.aktagon.com

General Information:

Latest News:

How to Convert SHP to KML with GDAL 27 Jun 2013 | 02:44 pm

After reading Google’s advice on the matter we add the following to ~/.bash_profile (see GDAL ReadMe.rtf for details): We can now convert SHP file to KML: Notice the “where” query. It pulls out data...

How to use ElasticSearch with Python 29 Apr 2013 | 03:05 pm

This is a short example on how to use ElasticSearch with Python. First install pyes (pyes documentation). Then run this code: You can also use CURL to verify that it works:

Levenshtein distance for MySQL 19 Apr 2013 | 12:39 pm

Levenshtein distance for MySQL: Also see this. Now you can run these queries:

Slow IO performance with Vagrant and VirtualBox? 12 Apr 2013 | 03:05 pm

To fix slow IO performance with Vagrant and VirtualBox, start by reading the documentation: "http://docs-v1.vagrantup.com/v1/docs/host_only_networking.html":http://docs-v1.vagrantup.com/v1/docs/host_o...

How to use PhantomJS to take screenshots 18 Mar 2013 | 02:32 am

page = new WebPage() if phantom.args.length 3 console.log "Usage: phantomjs screenshot.coffee URL filename" phantom.exit() else address = phantom.args[0] output = phantom.args[1] ua = "User-Agent:Mozi...

Fix disconnecting 3g connection using ssh. 18 Mar 2013 | 02:32 am

In crowded areas my 3g connection tends to drop. I fixed it by connecting to an outside server using the parameter below. Now ssh is keeping my 3g connection alive by polling the server with one secon...

Transliteration with Rails 31 Jan 2013 | 04:58 pm

List of common rules that provide transliteration of different special characters. Uses the parameterize method provided by Rails: Use it e.g. to create slugs:

How to fix "(103)Software caused connection abort: proxy: pass request body" 25 Jan 2013 | 01:44 pm

If you find this in your Apache error logs: [error] (103)Software caused connection abort: proxy: pass request body failed to 127.0.0.1:50000 (127.0.0.1) [error] proxy: pass request body failed to 12...

Running (and debugging) cronjobs with rbenv and bundler 21 Jan 2013 | 01:24 pm

This snippet shows how to run a backup script ("Backup gem":https://github.com/meskyanichi/backup) and how to debug cron in case it doesn't work. This example uses bundler and rbenv to complicate thi...

How to create CSS sprites with Adobe Photoshop 14 Jan 2013 | 11:32 pm

Install the following script from Github: Then: create some layers in your PSD file name your layers select File→Scripts→PScript open / .css in an editor

Related Keywords:

jquery hover menu, terminal too wide, jquery menu hover, mencoder mac, nginx htpasswd, nginx reload, install mencoder mac, mencoder os x converted in seconds, jquery mouseover menu

Recently parsed news:

Recent searches: