Two WordPress sites with the same database

php WordPress

When you try to use two ( or more ) WordPress sites with one shared database, you will have problem to access the pages except the original one. WordPress knows what should be its URL and when it does not match with the request, it redirects you. Fortunately, there is an easy “hack” for this to make it work.

Continue reading...

How to use git bisect


You know something worked properly a few days ago and now it is broken? Or maybe there is a new feature and you don’t know when it was added and what was changed? You can use this command and search in history of git. It is easy and fast.

Continue reading...

Backbone.js and cross domain API

I am playing a little bit with PHP micro framework Slim and javascript Backbone.js. Therefor I created two separate projects with URLs : for front-end ( Backbone.js ) and for back-end ( Slim ). The problem occurred nearly immediately : Cross-Origin Resource Sharing ( CORS ).

Continue reading...

Funny stuff from programmers realm

Collection of programmer’s jokes like various bug reports or types of code, then a few comments and in the end programming languages which are at least weird. Of course you will know some or most of them but I wanted to have them here, so I don’t need to seek them.

Continue reading...

Static IP address on Virtual Machine with access to internet


Static IP address on Virtual Machine with access to internet Set up Ubuntu in Virtual machine to be accessible from your computer always under one IP address and still be able to connect to internet from the machine took me a while. Here is my procedure to acquire it.

Continue reading...