December 2010
4 posts
6 tags
log4cpp universal dylib on OS X
Configure and make using GCC 4.0 for x86_64 i386 and ppc against the 10.5 sdk then modify the library using install_name_tool.
$ ./configure --disable-dependency-tracking
$ make CC="gcc-4.0 -arch x86_64 -arch i386 -arch ppc7400" CXX="g++ -arch x86_64 -arch i386 -arch ppc7400 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5"
$ cd src/.libs/
$ rm liblog4cpp.dylib
$ cp...
2 tags
Recommendation: z
z is an awesome bash script that stores a list of your frequently used directories.
Instead of typing:
cd ~/Work/ProjectsFolder/ProjectA/Something/Src/
You can type:
z ProjectA <TAB>
It’s utterly brilliant, check it out on GitHub: http://github.com/rupa/z/
Thanks to Ben Tappin for the tip.
4 tags
Project specific .vimrc / How to modify the python...
In Vim I often find the need to add my python project to the PYTHONPATH so I can run external tools, code completion etc.
Try opening a Django project in Vim and importing a model:
:cd ~/Your/Project/Dir
:!python
>>> from yoursite.yourapp import models
You’ll get the following error:
ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE...
3 tags
Recommendation: Inconsolata-dz
Inconsolata-dz is an excellent programming font, based on Inconsolata, that’s been modified to use straight single and double quotes.