PHP5 cronjob in Debian packages

WTF! The /etc/cron.d/php5 should be optional and not forced upon you. This has bitten me twice, once at work, and now on my business machines. It isn’t funny, and there is really no need for it. If you are doing it “for the users”, then let the idiots have massive session caches. It is THEIR responsibility to tune the server.

</rant>

FYI: you can safely delete /etc/cron.d/php5 without any issues. Don’t let stupidity on the part of package maintainers fool you.

No Comments

jQuery UI Datepicker Month only option

A client requested that we have the ability to choose only a month/year in the jQuery UI Datepicker module while retaining the ability to select a specific date. After searching the internet I determined that the best way to do this is just to modify the jQuery UI Datepicker and directly inject a button.

jquery-ui-datepicker-monthonly-1.0.0

UPDATED: jquery-ui-datepicker-monthonly-1.0.1

No Comments

IE7/8 .text() vs .html()

So .text() doesn’t work for retrieving the content. The solution use .html(). The problem with this is that in IE 7/8 you end up with extra white space in the content. The solution $.trim(), and now you have your content the same as modern browsers using .text().

This stumped me long enough while using a value in jQuery’s inArray function and it wasn’t finding the entry, even though I knew that the value existed in the array. Not the most friendly for modern browsers, but maintains backwards compatibility with older version of IE.

No Comments