Quote for 2014-08-24

But after 1.0 there is no finish line, there is no bottom of the 9th inning. There are more bugs to be fixed. There are new releases ahead. The march continues, because software is not a product, it is a process. Mostly a reminder for myself. http://www.jessesquires.com/apples-to-apples-part-two/

Aug 24, 2014 · Christopher Boette

How to Mock JSON with $httpBackend in Jasmine

There is a lot of information out there on running tests for Angular using Jasmine + Karma. One thing that was tripping me up, though, was being able to access a mock JSON file, rather than trying to hit a server with an HTTP request every test. Working from this code sample, I injected the mock file with the beforeEach call. However, I wasn’t able to access the JSON response until I injected the defaultJSON directly into the specific test: ...

Aug 8, 2014 · Christopher Boette

Loading Partials in Mustache

This took me a while to put together. Luckily, RTFM helped. By the way, the example is written in Jade, which I compile to HTML [with Mustache braces in place] using a Grunt task. index.jade has this thing: {{> header}} but it renders to a blank line. I had the header.mustache file in the same directory (mustache/) as index.mustache [which is the file to which the Jade template compiles]. That directory, however, was not the default location that the grunt-mustache-render task was using. So, in my Gruntfile, I simply added options: {directory: "mustache/"} to the mustache_render task. ...

Jul 13, 2014 · Christopher Boette

Edit Comments and Descriptions in Bugzilla

I found it a bit baffling that this functionality was not built in, but from an archival perspective, it makes sense. If you need it for your project, there’s an easy workaround: Go to this GitHub repo and from the Extensions directory, copy the EditComments directory over to your installation’s Extensions directory. In your Bugzilla directory, from the command line, run ./checksetup.pl to build the necessary tables and extra columns and other magical things. Lastly, in template/en/default/bug/comments.html.tmpl, add the following line to your comment_text div: [% Hook.process('a_comment-end', 'bug/comments.html.tmpl') %]. This provides a link to turn on editing for that field. Since I don’t have memcaching enabled [yet!], I commented out line 229 from extensions/EditComments/Extension.pm. Once I get that memcache going, though, that pound sign is coming right out. ...

Jul 7, 2014 · Christopher Boette

SE Block

Block all of that distracting sidebar stuff in the otherwise excellent Stack Exchange network. My first Chrome extension. Which I suppose isn’t anything to get excited about because of its simplicity, but it should help me focus. [goto](https://chrome.google.com/webstore/detail/se-block/ffpkepieaocfchmcokenleighplnifjh)

Jun 5, 2014 · Christopher Boette

Writing Custom Bugzilla Extensions

To see the effects of custom Bugzilla extensions, restart the server. Otherwise, they won’t render.

May 20, 2014 · Christopher Boette

Quote for 2014-05-13

The Template::Service module provides a high-quality template delivery service, with bells, whistles, signed up service level agreement and a 30-day no quibble money back guarantee. “Have a good time, all the time”, that’s our motto. http://template-toolkit.org/docs/manual/Internals.html#section_Outside_Looking_In

May 13, 2014 · Christopher Boette

Things I Learned This Week

Resolving the $ conflict between jQuery and YUI… …and what YUI is. All sorts of Apache configuration business, which turned out to be a lot of setting file permissions. chmod g=rw myfile gives read and write permissions to all of the current group members for myfile 87% of the CSS being loaded on my current project aren’t being used Use Chrome Dev Tools to audit yourself Intro to vi commands! i to start typing, esc to stop [i for “insert mode”] Once done typing, :wq to save and quit Jump to line 34 when not in insert mode: :34

May 5, 2014 · Christopher Boette

Vagrant and Ubuntu Server 14.04

Trying to apply the instructions for the Vagrant tutorial to Ubuntu Server 14.04 Trusty Tahr and I ran into a problem when trying to load up the localhost in order to take a peek at my shared directory. I kept getting an Apache error, which meant that the web server was running locally, just nothing was getting served. Running down the error, I came across this Ask Ubuntu post. Rather than trying to mess with any conf files, I simply dropped an html directory to /var/www/ and voila - it worked.

Apr 24, 2014 · Christopher Boette

Gems & Libraries in Rails 3.2

Getting up to speed during my first week on the new job. My first task has been upgrading the versions of Ruby and Rails for the main website. To handle some of the common tasks across web applications, we use an in-house gem. While testing the upgrades, I noticed that some of the JavaScript libraries called in the web app weren’t being pulled out of the gem. It took some digging to discover why, but here’s what I found. ...

Apr 18, 2014 · Christopher Boette