This was my first EuroPython conference and I had high expectations because I heard a lot of good things about it. I must say that overall it didn’t let me…
PostgreSQL quick examples
My cheat sheet for postgresql. Also pgcli is a really nice tool to use. IMO with it you don’t need any “phpMyAdmin” tools. Update query: UPDATE blogs SET posts=0, pages=0, plugins=0, health_score=0…
More Python mocking: dictionary
In previous post we look at how basic mocking works and some examples. Today we will see how you can mock dict : post = { “name”: “test”, “content”: “tist”, }…
Unit testing in Python with mock
Before we start writing tests let’s make sure that we understand why do we want to write unit tests and the concept of unit testing. Here are a few reasons (from my…
MongoDB not starting up
A few days ago I had a problem where mongodb crashed and I couldn’t start it up. I realized that this problem occurred because the disk was full. So I rm…
Git basics: workflow, pull request, rebasing, …
When I started using git (several years ago) I use only git command line. After a few years I decided to start using SourceTree. I regret this decision to this…
Deploy website with Git bare
I tried to follow a few tutorials / howtos but non of them worked perfectly so I decided to write my own how-to. If nothing else I will know which one…
Magento remove supre attribute
To remove one super product attribute (as they are called) from all configurable products, you could execute this SQL query in the database: The table catalog_product_super_attribute links products to super product attributes. You can…
Magento Translation priorities
In Magento you can overwrite code in app/code/local or app/code/comunity. The same concept applies to translations. There are 4 levels (or maybe even more) of translation hierarchy. Let jump right into…
Remote Sync – Examples
I am mainly a developer and use server just to get my code online so I often forget how to use rsync. So here is my cheat sheet for rsync 🙂…