Archives for: March 2010

19/03/10

Permalink 10:26:04 am, by mholmes, 36 words, 102 views   English (CA)
Categories: Activity log; Mins. worked: 60

Refined the search page

The search fieldset can now be hidden or shown by the user by clicking on a triangle in the legend; and when a search is run, it's hidden automatically to make more space for the results.

18/03/10

Permalink 04:58:54 pm, by mholmes, 164 words, 97 views   English (CA)
Categories: Activity log; Mins. worked: 240

Added new feature to the AdaptiveDB codebase

I've got the new "choose which fields you see in the search results" feature working. It seems to be stable in the development site, and has no impact on the data entry features. It was a bit messy, and has resulted in a few lines of code being duplicated, so there are efficiency gains I could make with a bit of a re-factor, but overall it was less difficult than I feared. The feature can never realistically be extended to the custom fields -- it would be insanely complicated and painfully slow, for one thing, given that there are (at the last count) 110 custom fields. But I think JW might now consider consolidating some of those, and moving them back into the main table (something I could achieve on her instructions using SQL). Failing that, I think JW's project might be better served by its own customized, tuned search interface, to overcome some of the performance penalties that the generic AdaptiveDB backend code causes.

17/03/10

Permalink 10:00:31 am, by mholmes, 50 words, 83 views   English (CA)
Categories: Activity log; Mins. worked: 60

Ported back the changes from other projects to dev

In preparation for adding a couple of new features, I've now ported back the changes I made in my personal songdb project, and then in the grsJournals project, to the dev site. Everything seems to be working. I'm now going to start working on making the fields to display selectable.

11/03/10

Permalink 02:43:58 pm, by mholmes, 214 words, 146 views   English (CA)
Categories: Activity log; Mins. worked: 75

Odd problem with AdaptiveDB

JW emailed to report a very odd thing with the db: all the values for the doc_to_docPeriods_id field in the documents table have been set to null except for nine. Trawling back through the backups, I discovered that on January 26, there were values in that field for most of the records. By February 1, they were all set to null.

This is impossible to achieve using the AdaptiveDB PHP interface, because that's a foreign key field, and the edit interface imposes a value on you when you edit it. So it can only have been achieved somehow by an administrator, maybe through PHPMyAdmin. The only scenario I can imagine is that someone deleted the docPeriods table; that would cause all those values to be set to null because it's a foreign key. Then if they restored the table (it's tiny -- only six records), the original field values would not be restored. Could that have happened? If so, who could have done it?

Using Transformer, I processed the Jan 26 dump to create update statements which re-insert the old values, and tested the results on my dev db. With JW's approval, I ran the script on the main db to reinsert the old values, and I've taken a fresh backup after doing that.

09/03/10

Permalink 11:35:43 am, by mholmes, 25 words, 120 views   English (CA)
Categories: Activity log; Mins. worked: 15

Note to self: line-height on tab captions

In all projects, add this:

div.tabCaptions{
[...]
  line-height: 200%;
}

Makes the tabs wrap properly when they won't fit on a line. Implemented in the Siberian project.

Adaptive Database

This project aims to design a flexible online database which can be set up as very quickly for a researcher requiring a relational database, and is easy to modify and extend. The Web GUI provides tools for data-entry in as simple and convenient a manner as possible, while also allowing data-integrity checks. The application development sandbox is currently at https://hcmc.uvic.ca/people/martin/potluck/editor/index.php; and half a dozen UVic projects are already using the codebase. The code is managed through SVN here: https://revision.tapor.uvic.ca/svn/adaptivedb/.

Reports

Categories

March 2010
Sun Mon Tue Wed Thu Fri Sat
 << < Current> >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31    

XML Feeds