Recently we had a situation where we inherited a schema and two of the models were joined using multiple foreign keys. The Rails associations API doesn’t appear to offer any good solutions to this problem. You can specify a single … Read more
There is an interesting article by Swizec Teller over at Business Insider talking about why programmers do their best work late at night.
This is not the case at Pivotal. Generally when we have clients committing code late at night, … Read more
- Recommendations for static site generators for Heroku?
It looks like there's a lot of them - does anyone have any personal recommendations?
- Draper and CI Reporter hate each other
This goes back to the Help a couple of weeks ago re: JSON being undefined. We blame Draper & its RSpec integration, but don't yet have a solution.
- eager_load and rake tasks
Eager loading doesn't happen from rake tasks. This causes a problem if you are running in thread safe mode and dependency loading is disabled.
But until that is released, you can possibly branch your thread safe declaration on the existence of the $rails_rake_task global.
- eXtreme Tuesday
Come and talk about programming, and other aspects of XP. 6:30pm
- Don't Lose Your Head (twice)
Using rake ci:headless[...] AND having an around filter in your spec_helper to run your capybara JS specs headlessly is not a winning combo. Pick one.
- capybara-webkit and Centos
Capybara webkit works with one app using lobot with a trivial spec. With another app, it fails with a Errno::EPIPE: Broken pipe every time. It seems this error message means "something went wrong" which isn't particularly helpful. We're wondering if anyone else is using capybara webkit on centos with success?
Some talk of font differences and CSS selectors was mentioned.
The guys from filepicker dropped by the SFDevOps hack day on Sunday, and it looks like it could be an interesting way to handle file uploads. They have various integrations, and your user can chose to "upload" a file from dropbox/box/facbook and gives you back a url for your app to grab it from. Haven't tried it, but it seems like it could be a quick win.
- eXtreme Tuesday Club
We meet each Tuesday to discuss TDD, XP and architecture over pizza and Tuesday lunch's leftovers.
See the meetup.com page for more information.
Ask for Help
"When using the wkhtmltopdf library via the PDFKit gem, if you use an HTML snippet that does not have a height defined, it generates a PDF that appears to only be an image, the text is not searchable or selectable. If you give your element a height however, it behaves as you would expect. Both PDF documents visually look the same though."
Ask for Help
"Trying to write a custom Rails I18n exception handler to catch MissingTranslationData exceptions"
The API didn't seem to do what it claimed it should.
"RubyMine EAP undo behavior seems broken, it only wants to undo a file deletion, and then go back no farther in history."
It was suggested that RubyMine undo is context sensitive, and having focus on the file browser has a different undo stack from the editor window.
"mysql2 gem on Lion is giving us an error: "Library not loaded... Image not found" and then a path pointing down into our RVM directory."
Building the gem with options pointing to your mysql directory was suggested.
"git checkout -" will toggle you between your last two checkouts (branches or just plain SHA's). Handy if you are switching back and forth. Can't seem to find it mentioned anywhere in the docs though.
Ask for Help
"I have paperclip columns from a custom sql query. Is there any way to instantiate the associated objects just to generate the paperclip urls for those attachments?"
Calling new on the base class and passing in the data does not seem to work.
The script tab of the webkit inspector has breakpoints for all kinds of events. Is a click event not behaving like you think it should? You can easily check a box and have all click events open the debugger.
Ask for Help
"Why do NULL values get inserted as strings when using mysql LOAD DATA INFILE after dumping the data with mysql -e"
Unfortunately this team only has control over the import, not the existing export. Their only option found was to replace occurrences of NULL with N after getting the import file.
A team again reminds us to be aware that the default file system in OSX is case insensitive. They thought this was the reason git would not commit a lowercase file rename for them. However, this setting was later found for your .git/config file.
[core] ignorecase = false
Ask for Help
"Why is Cucumber clearing our sessions between requests?"
A team is doing Cucumber/WebRat tests of a SAML authentication flow using Devise. No matter what they do, their session seem to be getting cleared between requests. It was suggested to write a vanilla Rails integration test to see if the problem is in Cucumber or the App.
"Any recommendations for a CMS to use with Rails?"
The textarea backed by a single model just isn't cutting it anymore and we probably don't want to end up building our own. Any success or horror stories?