View Source

h5. Week of February 20


h6. EduWrite (Jon Tedesco, Jiawei LI, Will Parkin, Sang Ho Lim, Janaki Prasad, Andrew Otto, Kevin Duber, Joe Gonzalez):

We had an obscure error with Ubuntu. Specifically, a few members of our team upgraded some packages of Ubuntu (unknown which packages caused this error), which corrupted the Mysql socket file in Ubuntu. Reinstalling mysql was ineffective, even purging _mysql-server _{color:#222222}and {color}{color:#222222}{_}mysql-client{_}{color}{color:#222222} couldn't fix the error. The only known fix for this was to do {color}{color:#222222}{_}apt-get purge mysql-\*_{color}{color:#222222}, removing all stored mysql data and all mysql-related packages, then reinstalling {color}{color:#222222}{_}mysql-server{_}{color}{color:#222222} and {color}{color:#222222}{_}mysql-client{_}{color}{color:#222222} again. It's apparently a known bug that this occasionally happens with Ubuntu package upgrades (not system upgrades\!\!), and this was the only fix found on one of many, many Ubuntu forums. Likewise, node.js simply reported an error connecting to mysql initially (no details), so this was a bit tricky to sort out.{color}

h5. Week of February 27


h6. EduWrite (Jon Tedesco, Jiawei LI, Will Parkin, Sang Ho Lim, Janaki Prasad, Andrew Otto, Kevin Duber, Joe Gonzalez):

{color:#222222}We had an issue integrating with etherpad-lite's source. Basically, includes from certain JavaScript files ({color}{color:#222222}{_}require{_}{color}{color:#222222} commands in node.js) could only be done asynchronously in callback functions. It's very strange, because only certain files (ones that include the database source code somewhere in the source tree) needed to be loaded asynchronously, while the rest can be done at the top of the file as is normal practice. This was very tricky, because (1) this was a quirk of the structure of Etherpad lite specifically, and (2), the only evidence of the bug was that when we included an original Etherpad lite file in one of our files, the entire application crashed (including the Etherpad lite app itself), and when we didn't everything functioned normally.{color}