Tuesday, December 15, 2015

Atom editor and Perforce integration on Linux (Mac)

Atom for editing, Perforce for version control

Atom is a really cool text editor developed by GitHub. It is modern, lightweight, fast, provides it's own package manager and tons of packages/plugins as well. Though, if you are using Perforce for version control, things may get a bit bitter.

This short post provides an easy and elegant fix for integrating Atom with Perforce on a Linux (Mac) machine. It solves the problem when the atom-perforce package is unable to pick the right p4 client.

Tuesday, October 20, 2015

SyntaxHighlighter on Blogger and an unexpected output in a Python snippet

Syntax highlighting on Blogger

I was looking for an easy way to add syntax highlighting to my code snippets here on Blogger. Yes, you can embed Gist code snippets, but this approach is not ideal always. There must be a better way for doing this. And of course there is!

I found SyntaxHighlighter after a few minutes of googling. It does exactly what I want, it's easy to use, supports many syntaxes and is nicely documented. But, for some Python code, it is doing a bit more than it should.

Thursday, May 14, 2015

Python 3.x and packaging issues

Greetings to ...

We will create a very simple Python 3.4 command line greeting app. It will take two arguments. An user name and an effect (if any) that should be applied to the user name. Then it will print out a greeting message. That's all.

While implementing and testing, we will run into and solve imports and packaging issues that may occur when someone used to Python 2.x is creating, testing and distributing a Python 3.x application containing a sub-package.

Sunday, February 1, 2015

SQLite to Spatialite

Preface

Imagine that you have a SQLite database which besides other data has latitude and longitude stored as separate [floating point] columns representing the position in WGS-84 (or any other SRID). And at some point you would want to geographically analyse your data in your favorite desktop GIS ( QGIS for example). It would not be possible until the database is spatially enabled, or in other words, converted to a spatial database.

Sunday, January 18, 2015

Python 2.x and Unicode

Preface

I was working [and still have some work to do] on a web-scraping project for last couple of months. I stared this project because I wanted to get more comfortable with Python and some nonstandard libraries like Requests and SQLAlchemy.
Python 2.7.6 was chosen to scrape websites which were using UTF-8 character set. That's how it all began.

Thursday, January 15, 2015

Health resources

Links to interesting health resources.

Wednesday, January 14, 2015

Hello World!

Let it roll ...

Hi everyone!
This is an introductory post to my first ever tech blog [wish me luck]. I just want to state a few basic things here.