Skip to content

Posts...

Page 35 of 42

Decent image loader widget in django

January 25, 2014Category: Software
I'm working on a website where I need to be able to load an image. The default widget is abysmal; it has a url to the current image, a checkbox and a file loader input element. Even styled, it looks pretty bad. So, I've taken upon myself to prettify it and get from this: caption id="attachment_4…

Connect PyCharm to SQLite on Windows

January 25, 2014Category: Software
To connect to a SQLite database on PyCharm you have two options: Manual connection and Automatic connection . Manual connection Use the following steps to perform the manual connection: Open the Database tab in PyCharm (usually on the right hand side) Right-click and select the New > Data…

Install lxml on windows (on a virtualenv)

January 22, 2014Category: Software
Lxml is a nice python library for XML processing. ETree is really quick, which makes things interesting if you have a large amount of XML files (or a bigger one) to process. Installation on linux/mac is painless (OK, you need homebrew on mac to make int painless, but you get my point...). The…

Excel - Check if item exists in another column

January 20, 2014Category: Software
The other day I had to create a "diff" between two lists in excel. More exactly, I had to verify which emails were missing between two lists of emails. Solutions I could find two solutions to this problem, which are listed below. For both, I'll assume that columns A and B contain the two lists…

Speed-up easy-thumbnails on S3

January 19, 2014Category: Software
I was developing a small app as a playground and confidence builder, choosing django , heroku and S3 as resources. One of the packages used is easy-thumbnails . Behaviour I chose to use the easy-thumbnails app with S3, a possibility granted by the storages framework. At a glance, everything…

Install Pillow from PyCharm

December 10, 2013Category: Software
My environment on windows has a lot of restrictions, including one to prohibit execution of files placed anywhere else except C:\Windows , C:\Program Files and C:\Program Files (x86) . Therefore, the virtual environments resides in something like C:\Program Files\Python\virtualenvs . I've set…

Simulate INSert key on mac OSX

December 3, 2013Category: IT
Every once in a while I use MC ( Midnight Commander ) on OSX, simply because after all these years the two-pane file manager is still easier and quicker to use than the Finder. TL;DR : use <CTRL>+T to simulate INS key. Origins In my PC days, I used Norton Commander to do file operations. In my…

Simple steps to deploy app to Heroku

August 9, 2013Category: IT
The past days I've been trying to find a cloud provider to deploy an app to. So, until docker becomes a bit easier and flynn up and running, I'll stick with one of the known ones, i.e. heroku . I've been trying to get a simple list of heroku deployment steps for a while and after watching a…

Get most recent modification date for a folder in python

May 27, 2013Category: Software
Finding out when a directory was most recently modified should be relatively easy; just perform a dir or a ls -l and you should have it. Sometimes you actually do, but not always (I remember my assembly days when I would write cool programs to manipulate the FAT information on a disk). The most…

Proper python versioning

May 21, 2013Category: Software
The past few days I was performing an initial deployment on a new cloud provider. During my initial runs, I have discovered a couple of snags in my applications (migration issues etc.) I've noticed that performing repetitive builds of my apps would yield the same numbers and there was no uniform way…
PreviousNext

All tags