I had a great time meeting the Method Design crew when I gave a short lunchtime talk “Tips for Practicing UX Design that I learned from Agile Development” at their studio. Thanks to Ted, Lindsay, and the gang for hosting!
Slides are here.
I had a great time meeting the Method Design crew when I gave a short lunchtime talk “Tips for Practicing UX Design that I learned from Agile Development” at their studio. Thanks to Ted, Lindsay, and the gang for hosting!
Slides are here.
How far to go when testing production?
Test something when you’re afraid it’s going to fail, e.g because you don’t trust an API
This becomes monitoring
(Title: 09/13/12: Best Standup Ever!)
Q&A with Eric Ries
Description: Eric Ries, the author of The Lean Startup, is in NYC and joining us to answer questions from the community. We will be doing light moderation, but this event is really about you getting a chance to talk to Eric.
Chocolate Milkshake Day was announced but not substantiated.
The SF office is now in breathless anticipation of chocolate milkshakes.
You can reference the 4 most recently selected elements from the Elements panel via these variables.
When you shell out from your ruby script and run the “bundle” command, it will bundle within the context of your script’s Gemfile (even if you cd first to another directory with a different Gemfile).
If you need to shell out and bundle outside the context of your script’s bundle, use Bundler.with_clean_env. For example:
Bundler.with_clean_env do
`cd /some/other/bundled/project && bundle`
end
We ran into a need for this on LicenseFinder – we wrote an integration test suite that bootstraps a bundled project, adds dependencies with various licenses to it, then tests the output of license finder on the project.
http://en.m.wikipedia.org/wiki/Programmers’_Day
http://www.meetup.com/nyc-on-rails/events/79685082/
Are you someone teaching yourself to code, looking for your first job as a developer? This panel will address the questions of how to get your first job as a professional programmer, and what is expected of someone in that sort of role. Questions from the audience are also welcome. Our panelists:
Jeffrey Baird (Junior Developer @ Medivo)
Aidan Feldman (Developer @ Jux & Teacher @ NYU) – moderator
Avi Flombaum (Founder of Flatiron School)
Pedro Ha (Teacher @ NYU & Developer @ CNBC)
Dan Langevin (CTO @ Lifebooker)
Debbie Madden (Exec. VP @ Cyrus Innovation)
Beforehand, make sure to check out Jeffrey’s great post on getting his job. If you have other good resources around this topic, feel free to post in the comments. We will do our best to record this, for those who can’t make it. Note this event is not Rails-specific. Drinks and snacks provided by Pivotal Labs. Lastly, in an unusual meetup twist,recruiting [for junior developers] is welcome!
This screencast covers a lot of bases. Check it out to see file attachments and full page story view in action! There are a couple ways to attach files. Drag them into an open story or press the paper clip button, and don’t forget, you can drag in multiple files at once! Click the cogwheel to download or delete the image. The same rules apply in full page story view.
There are also a few ways to view attachments, pop out to full story view, clicking on the attachment for a full page view of the single attachment. You can also view all images by flying over the speech bubble, click the “view all images” in flyover to see just the images on a separate page. This is my favorite way to view attachments because they’re large and in once continuous column which is great for walking through new UI changes.
If you have something like:
`can :manage, Group, memberships: { user_id: user.id }`
and:
`class Group < AR::Base`
has_many memberships
end
you will get duplicate Groups in index action’s @groups ivar when you load_and_authorize (sic) :group as CanCan will do an SQL join of the groups and memberships table.
The solution for us was to use a block and populate the @groups ivar ourselves in the action.
Founded in 2004, NYC.rb is the place for experienced Ruby and Rails programmers in New York City.
MEETUPS
We meet on the second and fourth Tuesdays of the month. Second Tuesdays are for one or more talks, and fourth Tuesdays are just hackfests, where people bring their laptops and hang out.
I’d like to run a search in Tracker for stories that are not marked (labelled) “blocked”. How?
Try “-blocked”
Sass::SyntaxError
Error
File to import not found or unreadable: compass/css3/box-shadow. Load path: Sass::Rails::Importer(/app/app/assets/stylesheets/email.scss)
/app/app/assets/stylesheets/text_styling.scss:1
/app/app/assets/stylesheets/email.scss:2
Possibly, your gem is in the assets-group, not the production-group. This means it will not be loaded on production. Try moving it to production.
i.e., through herokusan but not by doing heroku maintenance:on.
May be a bug in the heroku gem.
class Dog < ActiveRecord::Base validates_presence_of :ball end fido = Dog.new fido.valid? rex = fido.dup rex.ball = "tennis" fido.valid? fido.errors.empty? == false
Ruby Group Tonight @ 6:30
Apple uses its App Store as a mechanism to distribute software, and it works quite well when a human operator is available to interact with it.
Unfortunately, many configuration management tools (e.g. chef, puppet) can’t interact with the App Store, but they can interact with MAC OS X installer packages (.pkg, .mpkg files). We’ll show you how to extract the underlying installer package file from the App Store.
This was tested under OS X 10.8.1 installing the OS X server package. It may not work for other packages.
Bring up the App Store, find the package you would like to install, install it, and as soon as it starts downloading, jump to a terminal window and stop the installd daemon by sending it a STOP signal:
sudo killall -STOP installd
Find out where the package file was downloaded to using the lsof command:
sudo lsof | grep storeagen | grep pkg
The pathname should be a long and fairly random string, similar to “/private/var/folders/83/5wx556bd59zbj0n2j0w7kjyc0000gn/C/com.apple.appstore/537441259/mzm.unntdyyb.pkg”. You’ll need to move that file to the appropriate location.
mv /private/var/folders/83/5wx556bd59zbj0n2j0w7kjyc0000gn/C/com.apple.appstore/537441259/mzm.unntdyyb.pkg ~/os_x_server.pkg
Now that we’ve moved the package to a safe place (and inadvertently pulled the rug out from under the installd daemon), we’re ready to let the installd daemon continue and generate an error message:
sudo killall -CONT installd
Ignore the error message about a failed install.
The package would be subsequently installed by using the installer command, e.g.:
sudo installer -pkg ~/os_x_server.pkg -target /