Skip to content

{ Author Archives }

The flexcal API and an inline flexcal

My flexcal plugin exposes a few useful methods, which I have not documented elsewhere. They are called, like all jQuery UI widget methods, by creating the widget: cal = $('input.date').flexcal() then invoking the method: cal.flexcal('setDate', '10/25/2011').

Weird bug with chili and Firefox

Update: I haven't figured it out, but I did get a workaround. The bug is that any unmatched end of text leads to deleted characters in the middle of the text, so I added a line $.chili.recipes[recipeName]._main.endoftext = {_match: /$/}; to the downloadRecipe method, and now the bug doesn't show up. I'm running Firefox 7.0.1 [...]

Updated flexcal

For those following flexcal, my jQuery UI date picker, I've just released version 1.3. It fixes a bug in the setDate routine that would cause it to fail if called before the calendar was shown, and added date filtering. See the original post (now updated) for details.

Fractions and Units in PHP

For the bililite webservices, I kept all the data in what I would call "standard" American medical units, centimeters for height, kilograms for weight, mmHg for blood pressure, mg/dl for bilirubin. But lots of doctors use pounds and inches, and it would be nice to allow those as well. I could have separate data entry [...]

Updated flexcal

For those following this, I corrected some typos (???? spelled wrong; numbers should not use the ????? form) in the Hebrew calendar. flexcal now stands at version 1.2

Don’t Reinvent the Wheel, PDF Style

After playing with creating PDFs with PHP using fPDF for a while, and trying to get everything to work consistently, I discovered tcpdf, which is a fork of fpdf that includes everything that anyone has ever added to the original. And I mean everything; this thing is huge! I printed out the source to see [...]

Now I Understand Scotch Drinkers

XKCD has published the new reference standard for all flame wars:

A New Twist in Comment Spam

I get lots of comment spam, either obvious ads for dubious products or boilerplate praise in almost understandable Engfish ("This is the most coherent soliloquy on this germane topic in the recent memory") with links to the ads. But I'd never seen comment spam that went out of its way to insult me: The subsequent [...]

textpopup 1.3

I'm trying to test textpopup but (at least with jQuery 1.6.1 in Firefox), $.get with a local file fetches an XML document, not the text, unless I explicitly use the dataType parameter to set it to 'html'. Which I have now done. A small change, but it took me an hour to track it down. [...]

Time Zone Insanity and iOS

I definitely like my iPod Touch better than my old Windows Mobile 6 phone, and I had hoped that the time zone/daylight savings misery I had on Windows would be behind me. No such luck. When I went to New York for Pesach this year, I dutifully changed the time zone (Settings->General->Date & Time->Time Zone) [...]