We recently came across a situation in our markup where we wanted whitespace in the markup for readability, but we didn't want that whitespace represented between the elements.
We found a fix that suggested using font-size: 0 in CSS to eliminate the whitespace. That worked fine in Chrome, but we found that in Firefox, the containing element no longer scrolled with the mouse wheel or arrow keys! Apparently Firefox's scroll speed is proportional to font-size.
Ask for Help
How to scrub production data
- try my_obfuscate
- use handcrafted update-all sql
Interesting Things
- Do not stretch monitor cables, they make the ports break
- MySql: Different os have different rules on table case sensitivity(My_Table <-> my_table), be strict or you get into trouble
- validates_acceptance_of can crash your asest:precompile on heroku (because it uses the db when loaded, but db is not yet ready), least hacky solution: validates_acceptance_of xxx unless ENV['RAILS_ASSETS_PRECOMPILE']
At Pivotal Labs, one of the services we provide our clients is helping them interview and hire. Pivotal Labs and our clients place a strong emphasis on Agile development and its many aspects: Pair Programming, Test-Driven Development, rapid iterations, and frequent refactoring.
Halogen Media Group merged with YouCast Corp. to collaborate in forming a powerhouse of technology, Social Chorus (http://socialchorus.com), that measures social reach through paid and earned media through influencer distribution.
Here's the job posting:
Ask for Help
Enunciate
Adam cant hear you, speak up!
Job chaining in resque
Start the next after the first finishes or create a big wrapper job that does all of them
Inherited resource
Change objects before rendering -- no good answer found
Interesting Things
- Dynamo DB from AWS is out, aparently its faster then simpledb
- SOPA protest today, if you need wiki, try to disable javascript or go to mobile
- June 6th is IPV6 day (all IPV4 gets switched off ;) )
Interesting
- Trying to load Ruby 1.9.3 with RVM on OSX Lion and having problems? Adam has found a solution here.
Events
- Simple made easy was the tech talk (video) today. The implications being what is easy might not be the best for your code maintenance.
Helpful Things
"I'm making an HTML5 web app that consumes a web service, and in development the browser is blocking cross-site requests from localhost. How can I just turn off this security while developing?"
Chrome has a command-line flag just for this occasion! --disable-xss-auditor For everything else, change your hosts file to have the target site on localhost.
"Rails 3.1 seems to be slowing down my test suite to be about twice as slow. Seems to have something to do with garbage collection time. Thoughts?"
... no one had any definite answers.
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."
- Ruby 1.9.3
- RVM 1.10.0
- Mac OSX 10.7.2
- XCode 4.2
Our team ran into an issue installing Ruby 1.9.3 on Lion today. When running...
$ rvm install ruby-1.9.3
... the installer fails with an error message including "checking whether the C compiler works... no" even though we had XCode and gcc installed.
After some reading on StackOverflow and Github I found this solution [1]...
$ rvm install 1.9.3-p0 --with-gcc=clang
... which points an explanation on RVM's issue tracker [2].
- http://stackoverflow.com/questions/8675194/error-installing-1-9-3-with-rvm-on-lion
- https://github.com/wayneeseguin/rvm/issues/534
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.
Interesting Things
"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.
