Disable Apache 404 ErrorDocument HTML

Posted by & filed under Programming.

While implementing a REST service, Apache started to append HTML 404 error HTML to my custom 404 application/json response. It seems the Windows Apache version which comes with Zend Server requires a httpd.conf entry to disable the HTML to be appended to the response: To disable it for a 404 error: ErrorDocument 404 ” ”… Read more »

jQuery UI Day-Calendar Widget

Posted by & filed under Design, Programming.

I’m working on a generic calendar widget for event scheduling. It’s my first jQuery UI widget experience which I really like thus far. The calendar widget itself is a sort of complete re-implementation of the jQuery-Week-Calendar made by Rob Monie. However the week-calendar widget was end-of-life and no longer maintained. A repository has been setup… Read more »

TIP: Get rid of “It is not safe to rely on the system’s timezone settings.”

Posted by & filed under Programming.

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. ; Copy this line into the php.ini… Read more »

Oracle Tip: Ignoring case and diacritic differences in an Oracle search.

Posted by & filed under Programming.

http://forums.oracle.com/forums/thread.jspa?threadID=14970 Instead of using the SQL UPPER and LOWER functions to perform case-insensitive queries, an alternative approach is to utilize the linguistic sort GENERIC_BASELETTER. GENERIC_BASELETTER groups all characters together based on their base letter values, this is achieved by ignoring their case and the diacritic differences. Here is an example of a GENERIC_BASELETTER query. All… Read more »