I’m learning about new things everyday… and today I learned a nice trick on how to deal with github repository inside another repository… my way.
Image via CrunchBase
You see, I
have had this problem: my LODGrefine github repository contains code of Google Refine (GR), code of my GR extension – which is another github repository – and some other stuff. Some people might have GR already installed and therefore separate repository for the extension makes sense. I didn’t like the idea of a “proper” submodule for the extension, because: 1) it shows up as links on github , 2) when cloning the main repo, extension’s folder was empty – additional command is needed to pull the submodule from the github. It’s complicated.
Today I found this great solution of using fake submodule. It works swell! Code of the extension is visible in the main repo and I have all the code in one place… It’s a little more work updating it – calling git commit and git push twice – in main repo folder and in extension folder, but what a small price to pay for such a great solution! :D
I’m quite new to Python, virtualenv and other related animals on Mac, but so far I was able to create new virtual environments without much fuss… until yesterday. Two weeks ago I had to prepare an environment with MySQLdb. I installed it:
pip install MySQLdb-python
and thought “This is it”. It was definitely not. When I tried to import MySQLdb into Python, I got this error:
Error loading MySQLdb module:
Library not loaded: libmysqlclient.18.dylib
Referenced from: /Users/mateja/.python-eggs/
Reason: image not found
What the heck? After half an hour of googling I found a solution…
I edited my .bash_profile and added this line in it (note: I do have mysql installed in /usr/local/mysql/):
This worked like a charm… in a console, but not in PyCharm IDE. Fortunately, this answer also provided a very helpful hint…
I had to add DYLD_LIBRARY_PATH variable to launching module configuration (Run->Edit configurations). Guess what? This time it worked like a charm in PyCharm as well :)
Note: PyCharm requires configuration per script… I have to check if there is a “global” configuration…
Anyway, go me! Viva la Stackoverflow!
While we worry (or not) about our after life, some care about their “business”. Everything is business these days, why not religion? What happened to the moral standards, to the “share good things and do no harm”, to “sacred vs secular”?
There is a difference between being religious and being church-blinded. Some consider themselves as very religious people, because they visit church daily, but they harm their own families or even abuse them (physically or psychologically). You don’t need Vatikan to believe in God and/or to be a good person!, but Vatikan needs you to do its business. My dear sheep when will you realize most of your shepherds (and their bosses) are mostly wolves in human skin?
It’s all about the cha-ching, cha-ching
It’s all about the ba-bling, ba-bling…
Comments () The Vatican is in public-relations panic-mode … again. But it’s not the pedophile priest scandal or Vatileaks that has the pope’s image-makers hopping. This time the Holy See faces serious allegations that its curious accounting practices are really a cover for a money-laundering scheme.