Nicholas Greenfield's blog
Ask for Help
Ian is looking for people will experience using the "Koloa Gem". JT recommended to use the standard facebook widgets instead.
In SQL, how do you make a query the opposite of:
where(:name => nil) without using a magic SQL string.
Interesting Things
In SQL null is neither true or false. Be careful for searching for something when a column can have 3 states: true, false and nil. Because falsey comparisons will not work as expected. (RVA, NM)
Events
Yoga
Ask for Help
".DS_Store not disappearing from git even though ignored and removed?"
A developer had some .DS_Store files accidentally checked into a project. It was added to the .gitignore and git rm'd out of the project but they seem to keep showing up as untracked files. Any ideas?
Interesting Things
Pivotal Designer Inspiration Blog
The Pivotal designers are keeping an inspiration blog, you can check it out at http://pivotaldesign.tumblr.com
Ask for Help
".DS_Store not disappearing from git even though ignored and removed?"
A developer had some .DS_Store files accidentally checked into a project. It was added to the .gitignore and git rm'd out of the project but they seem to keep showing up as untracked files. Any ideas?
Interesting Things
Pivotal Designer Inspiration Blog
The Pivotal designers are keeping an inspiration blog, you can check it out at http://pivotaldesign.tumblr.com
Interesting
- For Noobs.
form_for Non Active Record models, need to:
include ActiveModel::Conversion
extend ActiveModel::Naming
def persisted?
false
end
*New version of TeamCity which includes:
-Free for and unlimited amount of users.
-Personal Builds on branches for Git and Mercurial
Help
Todd P asks,
How do you properly render a string containing UTF-8 characters across all views?
Interesting
- Todd P answers his own help question this morning:
This is with a MySQL database. When you're displaying UTF-8 data, the error you get is:
"incompatible character encodings: ASCII-8 BIT and UTF-8"
I added the following to config/environment.rb:
Encoding.default_external = Encoding::UTF_8 Encoding.default_internal = Encoding::UTF_8
And switched from the mysql gem to mysql2 (0.2.7). Also, make sure to update the adapter in config/database.yml.
- Ian passes along our buddy @flavorjones explaining how to coerce ActiveRecord to perform joins across databases
*Lisette brings us the Yiddish word of the day Chutzpah
Events
- Hope to see everyone at this weeks happy hour.
Help
"When adding "use strict" into a java script function, JSlint activates strict mode for all javascript."
How do we make "use strict" apply to just one function?
Interesting
Thanks to Peter for donating his collection of MAKE magazines to the Pivotal Library. If you need inspiration for your next hardware hacking project, be sure to check them out.
Lee has been working on an open source project called Lobot. Lobot helps with setting up and deploying Continuous Integration to AWS. He would love some feedback.
New Faces
Welcome Sean Beckett and Ash Hogan to the NY office.
Events
- NYC.rb hackfest (Tuesday 24th)
- Hope to see everyone at this weeks happy hour.
--
