Skip to content

Posts...

Page 46 of 54

Memory dump: Work with XMLField in Oracle (part 3)

March 6, 2014Category: Software
TL;DR: Here I present how to insert data with python in the table created at the previous step. Table of Contents Part 1 - Prerequisites Part 2 - Create a table and perform a SELECT Part 3 - User Python to insert data Part 4 - references In the previous entry, I've finished by creating the table…

Memory dump: Work with XMLField in Oracle (part 2)

March 5, 2014Category: Software
TL;DR: Here I present a SQL example from creating the table to performing a SELECT . Table of Contents Part 1 - Prerequisites Part 2 - Create a table and perform a SELECT Part 3 - User Python to insert data Part 4 - references Table and XMLTYPE Once we've seen that we have XMLTYPE available…

Memory dump: Work with XMLField in Oracle (part 1)

March 4, 2014Category: Software
TL;DR: Here I present an introduction of the problem and some prerequisites to check if you have XMLFIELD available. Table of Contents Part 1 - Prerequisites Part 2 - Create a table and perform a SELECT Part 3 - User Python to insert data Part 4 - references Introduction Recently, I've got a…

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…
PreviousNext

All tags