My Blog
Files overwriting each other on import
Posted July 28th, 2010 by douggreenWe've noticed files overwriting themselves on migration. If you're importing two files, one named a/1.jpg and another named b/1.jpg, the basename() for both these are 1.jpg even though they are different files in different directories.
Mail system messages on errors are confusing
Posted July 1st, 2010 by douggreenWe always assume that mail sends successfully, so when it fails, we give the user confusing messages.
changeConnection from hook_query_alter
Posted May 18th, 2010 by douggreenIf you have multiple Drupal installations that share common data, it would be nice to redirect queries any database server without much work. db_prefix only works with different databases or tables on the same server. This issue is to allow multiple servers.
Prevent spamming the watchdog log
Posted April 22nd, 2010 by douggreenMongoDB collections can be capped, even though we haven't added the UI for it yet #660460: Watchdog: Support Capped Collections, just go into the mongo shell:
restore current directory after register_shutdown_function callback.
Posted March 29th, 2010 by douggreenWhile I can't point to any core bug this causes, and this can be solved in contrib, I think that we should save and restore the current working directory because this is a known problem with register_shutdown_function (see comments in thread) and a potential hazard for many people.
Guard against writing large watchdog records
Posted March 29th, 2010 by douggreenWe ran into a case this weekend, where watchdog grew to 116G+. While the exact cause still isn't known, it seems possible that an errant watchdog() call could of passed large arrays in the variables, and that these arrays were written to mongo.
Save less of the user object to save space
Posted March 29th, 2010 by douggreenWhen we display the watchdog record, the user object is passed to theme_username, and with the core implementation, all we really need is name (and maybe uid and maybe homepage). Attached patch saved user.uid and user.name, and then when loading tries to get the rest of the object, in-case theme_username needs it.
What I learned about Scrum
Posted September 9th, 2009 by douggreenDevelopment methodologies weren't taught at Cornell when I took Computer Science 1982-1986. I first remember hearing about them in the early 1990's. At CivicActions, we've talked about "agile" and "scrum" for some time. But it really took the last couple of projects for me to embrace these methods.
Serialized Objects
Posted July 7th, 2009 by douggreenIt sounds pretty obvious. My php warning to you is: