Ask for Help
“Is there an easy way to white-label a domain when using SSL?”
Short answer: not really. One way would be to get a different IP and SSL certs. There are still some hurdles when sharing sessions across domains. Cookies can’t be read across sites, either.
- When deploying to Heroku using the Cedar Stack, BUNDLE_WITHOUT is not supported, but you can detect heroku in your Gemfile with ENV['HOME'].gsub(’/',”) == “app”, and then substitute any group like staging/cucumber with “test” so they are not installed via the default bundle task on heroku.
- Rails 3 Asset Pipeline allows you to extend the compilation of additional files. Registering your own extension is easy but poorly-documented: you create a class that handles the compilation and register it with the asset pipeline.
We’re planning the first of an on-going series of Webinars for Pivotal Tracker users for next Wednesday, Dec 21, at 11:00am PST (19:00 GMT).
This is going to be a 1 hour session, via GoToWebinar. Anyone is more than welcome to join, but this particular session will be geared towards new Tracker users. We’ll go over the agile concepts behind Tracker, show how to get started with your first project, and give you a tour of the most commonly used features. At the end, there will be an opportunity to ask plenty of questions.
Please register in advance, at the following URL:
Instructions for how to join the Webinar will be emailed to you after you register. Since GoToWebinar requires you to download and install an app to join, we suggesting connecting a few minutes before 11:00am on Wednesday.
See you there!
Ask for Help
“The Twitter API has callbacks which return tweet IDs; however, we’re not seeing the IDs.”
“nginx upload module: does it buffer to memory and then stream to disk?”
The upload module by itself streams to disk; have used it to upload multi-gigabyte files, which would have caused problems if it was buffering to memory.
“Is there a way to undelete stories in tracker?”
Look at the history, it will show what stories were recently deleted. Export/import might help, too. Try contacting the Tracker team.
- Webmock + RubyMine == fail. This applies both to RubyMine-stable and RubyMine-EAP. You can monkeypatch around it by writing your own initializer. It may be a require-order problem.
Hojoki is a new collaboration app that promises to “make all your cloud apps work as one”, by integrating many of the most popular services that your team uses daily (including Pivotal Tracker, of course) into a personalized activity stream.
Once configured, your Hojoki activity stream shows you when a story is created, edited, started, finished and deleted. Hojoki also shows you all of your project members, and allows you to search for who created a story, who requested it, and who is responsible for implementing it.
To welcome Pivotal Tracker users, Hojoki if offering some cool robot-playing-basketball shirts! There are only a few available, though, so they’ll go to the first 10 people who comment on this blog post, below.
More info on the Pivotal Tracker integration, including how to get started, in the Hojoki welcome blog post.
Ask for Help
“Has anyone used Heroku on a project with non-trivial scaling requirements?”
Yes. There have been several projects that scaled like magic by “sliding up the dynos”.
Michael Grosser announced “Venderor”, a utility for managing vendored files à la Bundler. github
The SF office will be graced by the Kara’s Cupcakes Truck distributing cupcakes and Blue Bottle Coffee; compliments of the building management company. Get a voucher at the front desk.
Ask for Help
“Does anyone really understand character encoding in Ruby? Certain gmails are causing exceptions in our applications, and it seems to be a problem with gmail specifying the wrong encoding. Whatever is causing it, it’s fixed in 1.9.2.”
“When calling render_to_string in an AJAX request, rails does not find partials ending in .html.erb. Is there anyway to force it to find them other than requesting a filename.html.erb?”
“What’s better to use to handle attachments—paperclip or CarrierWave?”
They’re both good. It seems that CarrierWave is better and more recently updated.
The Pivotal Webstache Movember network cleared $40,000 raised to stop Dude Cancer
Joda-Time provides a quality replacement for the Java date and time classes. Months are not zero based!
EC2 is scheduling restarts for their physical machines and your instances. In some cases you can manage your own restart. Make sure you check your email and your EC2 console.
Google Chrome seems to be caching and rendering the last resource served from a URL regardless of its content-type when you navigate via the back button to a page. Specifically, a client’s site serves both HTML and JSON from the same URL. The JSON is the last request made because it’s an async request on the page. When the user navigates away from this page then back the JSON data is rendered instead of the HTML resource. Any HTTP header change suggestions we can use to get Chrome to only render the HTML content?
Capybara seems to not allow #click on elements depending on how you call #find. What’s up with this?
find('tr', :id => 'foo').click #not clickable
find(:css, 'tr#foo').click # is clickable
A Ruby Class’s default ‘initialize’ method takes zero or any number or arguments depending on the version of Ruby you use.
Given the Foo class:
And then attempting to instantiate an instance of Foo with arguments like so:
You get an invalid number of arguments error in 1.8.7 and 1.9.3.
However, 1.9.2 and 1.9.1 will just accept any number of arguments.
Ruby spec documents this behavior:
It appears that this difference between versions was introduced as a feature in 1.9.2 and back ported to 1.9.1 and then reverted in 1.9.3. Perhaps the reversion should be back ported now?
Does anyone know of an API that provides a sales tax lookup service?