Every morning do a refresh of all my repositories so that I know I don’t fall behind on the code if I need to solve some problem or continue developing. Doing this manually is not practical, and so I created a bash script to refresh all my repositories. While I was at it I added [...]
Today I can across an interesting change in the way Drupal 7 handles blocks created via modules. In a module I made, I defined a block using the hook_block_info and hook_block_view. This block was added to the site’s front page. After some implementation details changed it became apparent that the current block was not what [...]
Cocoa’s object model is something I really like. Coming from Java, being able to declare a property and have the getters and setters auto generated is really wonderful. The key value way to interact with an object is also a very powerful tool. The problem is what happens when these two collide. For a project [...]
Today I had one of the strangest bugs I have seen to date. I am working on an iOS app that does a lot of communication with a web app api. the communication is done via XML. Since the web app requires autherntication, I am useing specific requests and placing the response xml in a [...]
Disclaimer: This method will probably not work for all servers running tomcat, it is more a personal guide then a general one. Solr is a “popular, blazing fast open source enterprise search platform from the Apache Lucene project”. Drupal search has traditionally been less then adequate. Using Solr to index and search you Drupal site [...]
For one of our projects, I was creating a photo bar. When the mouse was over one of the photos it was ment to increase in size and decrease back to original size when the mouse left. Unfortunately the client for which this was developed uses ie7 exclusively. This has brought two problems: 1. ie7 [...]
Drupal saves its sessions in the sessions table. One can always query they table to get the session ID. There is however a faster way. If the user is logged it, the session id can be found with the following code: global $user; $user->sid; In any case the session id can also be read from [...]
Drupal, like most CMSes uses cache intensively to speed things up. In a production site that is exactly what you what. However when developing, cache can cause you much pain. If your an expert in drupal you probably already realized when you need to clear the cache in order to see changes and when not [...]
After a long break I have resumed my side project in django. Last night I came upon a problem. When testing a page outside django, the page was rendered correctly. When it was rendered through django the javascript files were not located. At this point I have to admit I was a bit fullish and [...]
An interesting talk about secret software and why it should not be allowed in the public sector