Skip to content

Content classified under "Software"

Page 19 of 21

Use bfgminer as a service on Ubuntu (upstart)

March 1, 2014Category: Software
I've move my tiny miner from my mac to a linux (ubuntu) server. When I tried to run bfgminer as a normal use, I've found that it would not detect my miner, which was attached and nicely recognised by the system. Only after running it as root , it did detect and loaded it properly. So, I've…

Use a GraphView in a Fragment

February 22, 2014Category: Software
From what I've seen, most tutorials relative to GraphView use direct Action s. I wanted to use a Fragment instead. Here are the steps I did (using the Android Studio): Create a Layout Fragment First, create a fragment (create a new Layout Resource File ), based on a LinearLayout . I ended up…

Easy django applications with cookiecutter

February 20, 2014Category: Software
Now I'm trying to create a bunch of django applications and I've got tired of creating everything from scratch. So, here are the steps I'm using to easy create a new django app: Create a new virtual environment . This is vital. It allows you to set up your own versions, not pollute the default…

Make pyflakes/pylint ignore unused imports

February 12, 2014Category: Software
Sometimes, you need to add an import without explicitly using it, just to have stuff defined. In such cases, both pyflakes and pylint generate messages, which can be annoying. For example django-appconf has a class-based configuration like so: If I'm using the file like this, then I'll end up…

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…

All categories