Mustache is an Erlang port of the Ruby framework of the same name, originally written by Chris Wanstrath, one of the founders of GitHub. A powerful feature of this type of framework is the ability to write a ‘template’ that you could use in a Rails application and then reuse in an Erlang application with no changes to that file. The ‘view’, which in MVC terms is more like the ‘controller’ would have to be re-written, but this would greatly simplify the work of porting an application, OR simply running a part of application in a different framework for performance reasons. Continue Reading
URL encode in Erlang
AFAIK there’s no URL encoder in the standard libraries exclude edoc_lib:escape_uri. Think I ‘borrowed’ the following code from YAWS or maybe one of the other Erlang web servers Continue Reading
Use custom admin filters in ModelAdmin
ModelAdmin now has a lookup_allowed method which is used to either allow a lookup or raise a SuspiciousOperation exception. Continue Reading
django-stdimage traceback “The ‘%s’ attribute has no file associated with it”
This traceback happening when you check file to __delete__, but file do not exist on file system Continue Reading
Firefox url-bar kiling my time
My Firefox 3 has excruciatingly slow response from the URL bar. It was so slow that I nearly threw my computer out the window. The reason for this slowness is that Firefox has developed a URL bar that is smart enough to remember what you’ve typed in the past, and presents you with matching, relevant options from which to choose when typing strings into the URL/location bar. Continue Reading
Django admin filter by ranges of ages
Adds filtering by ranges of dates birth in the admin filter sidebar Continue Reading
Django admin filter by ranges of dates with calendar
Adds filtering by ranges of dates in the admin filter sidebar. Continue Reading
Tutorial: Developing in Erlang with Webmachine, ErlyDTL, and Riak
3 tutorials by Oliver Reeves Continue Reading
Linux Commands For Shared Library Management and Debugging Problem
If you are a developer, you will re-use code provided by others. Usually /lib, /lib64, /usr/local/lib, and other directories stores various shared libraries. You can write your own program using these shared libraries. As a sys admin you need to manage and install these shared libraries. Use the following commands for shared libraries management, security, and debugging problems. Continue Reading
Comments