Brian ButzBrian Butz
SF Standup 11/04/11
edit Posted by Brian Butz on Friday November 04, 2011 at 09:39AM

Interesting Things

  • Lightning Talks are next week, but no talks have been submitted yet. Unless talks are submitted, it's going to be a long hour of staring at the wall.

  • jQuery 1.7 has been released http://blog.jquery.com/2011/11/03/jquery-1-7-released/ . If you use Backbone.js you might want to update jQuery for the improved delegated events performance.

Cathy O'ConnellCathy O'Connell
Standup 11/01/2011: Snowy Moeless, Weinre & Uniqueness
edit Posted by Cathy O'Connell on Tuesday November 01, 2011 at 09:16AM

Interesting Things

  • Weinre - WEb INspector REmote, a debugger for web pages designed to work remotely, nice weblet look. Allows you to debug web pages on phones.
    • Check it out (http://phonegap.github.com/weinre/) Thanks Micah
  • Moeless
  • Those strange looking people, are just moustache-less pivots. Support/join for the cause. Today is Day one.

Ask for Help

  • Rails Validates uniqueness allows nils. The database (psql and mysql) allows unlimited nils. *BUG - The app did not allow unlimited nulls. *Cause - The development structure had an allow nil false but the model file had allow nil true. This caused odd behaviour.

EVENTS

TUESDAY

  • 7pm Raise Cache - Project Management for Startups

WEDNESDAY

  • 6:30pm Node JS
  • 7pm Machine Learning

THURSDAY

  • 7pm Raise Cache

Kurtis SeebaldtKurtis Seebaldt
Standup 10/25/2011: Do not mock the copycopter
edit Posted by Kurtis Seebaldt on Tuesday October 25, 2011 at 01:40PM

Ask for Help

"Using Copycopter + WebMock blows up in db:test:prepare"

Try limiting WebMock to load only in the 'test' bundler group.

Interesting Things

  • Chrome 15 now shows pseudo selectors in the inspector (Firebug does this as well)
  • Automatic semicolon insertion in javascript + Rails 3.1 asset pipeline = hard to debug errors. Be careful with Javascript concatination. USE JSLINT!
  • Using Rails 3.1 on Heroku with tinymce-rails fails slug compilation unless you upgrade to the latest version of tinymce-rails.

Charles HansenCharles Hansen
Standup 10/24/2011: Women who code meetup
edit Posted by Charles Hansen on Monday October 24, 2011 at 09:24AM

Interesting Things

There will be a Women Who Code meetup on Tuesday. Sarah Mei will be giving a lightning talk at it about a day in the life of an engineer. The organization is for both women who are currently coders and those just interested in coding.

Stephen HopkinsStephen Hopkins
Standup 10/21/2011 JS['test'] == 'test'
edit Posted by Stephen Hopkins on Friday October 21, 2011 at 09:33AM

Ask for Help

"Anyone used Akamai with HTTP Delete?" Akamai doesn't understand the DELETE verb. Maybe try to pass it through Akamai?

Interesting

  • JS['test'] == 'test'. Make sure you use === so that you get expected behavior.

  • IntelliJ 11 Android has great UI previews!

  • Blitz.io : Affordable and easy to use server benchmarking

Jesse TothJesse Toth
Standup 10/20/2011 - License Finder and rails 2.3
edit Posted by Jesse Toth on Thursday October 20, 2011 at 10:02AM

Ask for Help

"License Finder doesn't work with rails 2.3?"

This problem has come up a few times, but no one could recall what the solution was. Might be something about a rake task....

Interesting Things

  • MySQL Prefpane isn't working with the Pivotal install on Lion. Seems like it expects a particular installation/configuration. Got around this by reinstalling MySQL from dmg. Another pivot suggested this could be a path issue that could be solved without a full reinstall.
  • An older version of Chrome on Windows has a bug with mouse-enter and mouse-leave events. It will think you have left a div if you mouse over a text input contained within that div. Upgrading Chrome should fix this.
  • event.layerX and event.layerY will be deprecated at some point... you'll see these warnings now on the newest build of Chrome since it auto-updates.

Stephen HopkinsStephen Hopkins
Standup 10/19/2011: Stripe > Paypal
edit Posted by Stephen Hopkins on Wednesday October 19, 2011 at 09:21AM

Interesting

  • replaceState() vs pushState() replaceState() can be used for javascript applications instead of pushState() to change the address bar when you don't want to add new items to the browser history.

  • Stripe > Paypal
    Stripe is awesome and can be set up in less than a day!

  • SF Elections Coming soon, so vote!

Ask for Help

"accepts_nested_attributes_for doesn't validate nested records? When a form contains two of the same nested attributes and the values of these should cause a validation error (e.g., both have the same email, which has a uniqueness constraint), the form saves properly, but the nested objects are invalid when accessed later."

accepts_nested_attributes_for only validates against the database, but the records in this example would only be in memory. The best solution is to handroll a validator on the parent that iterates over the nested attributes and checks the constraints.

"A Pivot was getting some errors using minified jQuery in IE8, which went away when he used the un-minified version. Any other IE8/jQuery gotchas?"

A few have been mentioned at standup in the past few weeks, most notably some versions of jQuery crash IE8 entirely.

"Is there a way to generate a png from html server-side?"

You can use a command-line tool like webkit2png or there is some rack middleware that can generate pdfs and maybe pngs from html

"A pivot had a page that was requesting images after the page loaded, but couldn't find where they were coming from..."

You can check the originator column of assets in firebug or the chrome developer panel. You can also try overriding jquery ajax to see each call (which you may not want to do if you have a lot of ajax calls).

JR BoyensJR Boyens
SF Standup 10/13/11
edit Posted by JR Boyens on Thursday October 13, 2011 at 10:11AM

Help

"Why does RSpec complain that calling .configure multiple times will be deprecated in RSpec 3?"

You shouldn't be calling .configure multiple times.

Interesting

"Capybara needs to be monkey patched to be able to local a local file:// url in Selenium mode"

Added a method named visit_local which calls into the driver and forces a change to a local URL so no Rack server is needed to serve a static HTML page. A more expansive explanation will be provided in an upcoming blog post.

Gaslight software training

Gaslight will be doing training in SF on Nov. 7th and 8th at the Mission Bay Conference center. This is a 2 day intensive course on Jasmine, Coffeescript and Backbone.js.

More information at: http://training.gaslightsoftware.com/

JR BoyensJR Boyens
SF Standup 10/12/11
edit Posted by JR Boyens on Wednesday October 12, 2011 at 10:03AM

Ask for Help

"Having trouble building REE 1.8.7 on OS X Lion. Was using LLVM, but had issues compiling and then switched to GCC. This succeeded until the linker stage and now results in a SIGSEGV in the linker"

Needs an RVM implode; probably didn't clean out the source after compiler switch

"Non-blocking HTTP"

Suggestions on which framework to use resulted in no clear consensus

"How do I turn off syntax highlighting / inspections in RubyMine for large files?"

Hector the Inspector, in the bottom mid-right

"When doing code review in branches, diff'ing against the master branch they are seeing lots of unrelated changes. Is there any way to resolve this?"

Rebase against master instead of merging

Interesting things

GitHub 1 million user party

Details

Other articles: