Testing Sanity

The core task of software development is sanity testing.

  • warning: Creating default object from empty value in /home2/thepalls/public_html/cgpsoftware/modules/taxonomy/taxonomy.pages.inc on line 34.
  • warning: Parameter 2 to gmap_gmap() expected to be a reference, value given in /home2/thepalls/public_html/cgpsoftware/includes/module.inc on line 483.
  • strict warning: Non-static method view::load() should not be called statically in /home2/thepalls/public_html/cgpsoftware/sites/all/modules/views/views.module on line 879.

cookies

Posted by cgp

Yesterday I ran into a little problem logging into Drupal. Weird thing was that it worked fine under Firefox but IE and Chrome were both failing to log in. There were some suggestions that it could be cookie related, but I cleared my cookies and that didn't seem to do the trick, nor clearing cache, and a restart of my machine (as silly as that seemed) didn't seem to work either.

As usual, the truth is much simpler: I should have noticed when I started getting random SSL certificate expiration notices that talked of certificates being expired, yet the expire date on the cert was 7/23/2011. (On a Google tool no less).

So, long story short, after a half an hour, I took a look in the lower right hand question and saw that the time had been set to the future and it was causing cookies to expire too soon - set my time back and everything looked good.

Posted by cgp
I did a fun little ditty here that does a combination of autocomplete and history. Using the jQuery UI (1.8) framework, it seems to work pretty well. Basically, the text box tracks what you enter into it in a cookie. Cookies can range in size from 2k-4k, so this is probably adequate for my purposes. Chrome has a 4k limit. I guess the advanced version would be to use local storage. (checks the HTML5 support list)
Use the up arrow to invoke the history:
Tags:
Modify History and Autocomplete:
(not tracked by cookies)
(tracked via cookie)
(clear the cookie)