|
May
1 |
|
comment |
What's the best jQuery product zoom plugin? jqzoom doesn't work on mobile devices (at least not on my iPhone or iPad). Just fyi. |
|
Apr
8 |
|
comment |
UTF8 MySQL problems on Rails - encoding issues with utf8_general_ci I read about so many of the other utf8-rails3-mysql issues before discovering this ticket which turned out to be exactly what had happened with the site I am working on. |
|
Mar
14 |
|
comment |
Parsing large file with SaxMachine seems to be loading the whole file into memory I was able to parse my large xml doc using this approach along with the canonical sax-machine gem. Thanks! |
|
Mar
14 |
|
comment |
Parsing large file with SaxMachine seems to be loading the whole file into memory This branch seems out of sync with the canonical repository and hasn't been touched in two years. It was also throwing errors about yielding from a root fiber... |
|
Mar
6 |
|
comment |
Rails sends 0 byte files using send_file Ugh. I just spent way too long trying to figure out why all my zip downloads were suddenly 0kb. |
|
Mar
5 |
|
comment |
CSV.read Illegal quoting in line x In the requestor's situation he specifically has massive data and just wants to skip errors. Changing the :quote_char just helped me out in my situation though. |
|
Mar
5 |
|
awarded | Critic |
|
Feb
1 |
|
comment |
Weird Ruby Behavior in DateTime to Time conversion Thanks for the answer. I was really scratching my head on this one and looking for bug reports against Ruby 1.9 when it turned out to be a horrible decision by the Rails library to break the underlying Ruby interface... |
|
Feb
1 |
|
comment |
Convert to/from DateTime and Time in Ruby Oops. Just realized that this is a Ruby on Rails issue not a Ruby issue: stackoverflow.com/questions/11277454/… . They even had a bug filed against this method in the 2.x line and marked it "won't fix". Horrible decision IMHO. The Rails behavior totally breaks the underlying Ruby interface. |
|
Feb
1 |
|
comment |
Convert to/from DateTime and Time in Ruby DateTime.to_time returns a DateTime... 1.9.3p327 :007 > ts = '2000-01-01 12:01:01 -0700'
=> "2000-01-01 12:01:01 -0700"
1.9.3p327 :009 > dt = ts.to_datetime
=> Sat, 01 Jan 2000 12:01:01 -0700
1.9.3p327 :010 > dt.to_time
=> Sat, 01 Jan 2000 12:01:01 -0700
1.9.3p327 :011 > dt.to_time.class
=> DateTime
|
|
Jan
28 |
|
awarded | Commentator |
|
Jan
28 |
|
comment |
Rails 3.1 active_scaffold 'jQuery("form.as_form").live' is not a function Thanks. That helped a lot. |
|
Jan
22 |
|
answered | Devise timedout error showing `true` |
|
Nov
28 |
|
comment |
Clean out, or reset test-database with Rspec and MongoID on Rails 3 This is totally nitpicky and really probably doesn't matter at all but your solution is a little inefficient. You are iterating over all the collections once for the select and then over the subset in the each. This just iterates over the collections once: Mongoid.default_session.collections.each { |coll| coll.drop unless /^system/.match(coll.name) }
|
|
Oct
15 |
|
awarded | Nice Answer |
|
Sep
28 |
|
awarded | Nice Answer |
|
Sep
24 |
|
awarded | Student |
|
Aug
7 |
|
awarded | Yearling |
|
Jun
21 |
|
awarded | Necromancer |
|
May
17 |
|
awarded | Notable Question |