“Has anyone experienced fuzzy PDF rendering at some zoom levels on iOS?”
One project was having trouble with their iOS app which shows a PDF file. When you zoom the view, the text becomes fuzzy looking. The text in the PDF is only fuzzy at certain, seemingly nondeterministic, zoom levels. They are drawing the PDFs with CGContextDrawPDFPage and scaling with CGContextScaleCTM. Does anyone know what could cause this?
There doesn’t seem to be any reliable way to know if an HTML checkbox got checked by simply looking in the DOM. There’s an attribute on the INPUT called “checked”, but this is only read during page load to set the initial value of the checkbox.
Interesting Amazon EC2 announcement:
“Micro instances provide 613 MB of memory and support 32-bit and 64-bit platforms on both Linux and Windows. Micro instance pricing for On-Demand instances starts at $0.02 per hour for Linux and $0.03 per hour for Windows.”
“Is anyone using Devise (authentication solution for Rails) with SSL for an app’s login page (on Heroku)?”
One project was having trouble with the redirects caused by this and is looking for help. Has anyone experienced trouble with this?
- There is a Ruby meetup tonight at 6:30 pm in San Francisco on the subject of unicode and internationalization in Ruby.
“Using bundler vs. gemsets?”
These can be used separately or together depending on the needs of your project. Bundler checks dependencies to make sure you have the gems that your application needs, while RVM gemsets keep your gems separate to prevent conflicts (between Rails 2 and 3, or example).
“Anyone ever see IE fall over when parsing 500 KB of JSON?”
Try explicitly using eval()
- If you have any strange, unexplained errors with RVM, try upgrading to see if it solves them.
We’re excited to add a new entry to the 3rd party tools directory: Aragorn, the first Pivotal Tracker client for the iPad.
The first version of Aragorn supports read only views of your projects and stories within them. Thanks to @elight for writing the app!
“Does Postgres have an equivalent MySql Myisam high write performance?”
A Pivot was wondering what settings in Postgres can be enabled for high performance INSERTs (willing to sacrafice SELECT performance on said table).
“Why is Paperclip giving a Stream close error when in development?”
When using Paperclip in development, any file upload results in a Stream IOError. Trying to replicate the problem with Paperclip on its own causes no problems, so it appears to be a conflicting library.
- An update to yesterday’s Rubymine font size issue. The file drawer can not be specifically updated, but the overall system font can be under Preferences > Appearance > Fontsize. Make sure to restart Rubymine.
- Google Voice has been added as a service on to GMail. Make phone calls for free to anywhere in the US from your browser.
- An update to yesterday’s Safari ‘Back’ button issue. Safari caches the previous ajax call (dubbed ajax zombie) when going back to a previous page. The fix had to do with changing Rails default “Cache-control” header to be “no-store”.
“How does Mobile Safari handle the back button?”
When pressing the back button in Mobile Safari can cause the access to the DOM to be lost. It appears to happen because of resources of “forward” facing pages taking over the cache.
“How to set the font size on RubyMine project (file) drawer?”
With the increasing size of resolution on monitors, some of are experiencing the small font issue. Is there a setting to control the RubyMine project browser?
- Updating ImageMagick from 6.6.1 to 6.6.3 fixes a bug with color palette when trying to resize images using Paperclip.
- Rails 3 RC2 has dropped fixing many bugs and this much closer to the final release. The Rails team would like to find any blockers specifically in Bundler and ARel.
A Pivot is working on a project where 1,500 records living in a CSV are iterated over (loaded in to ActiveRecord objects) and loaded in to a Postgres database… or at least that was the intention. The database just crashed on him in a repeatable way. Anyone seen anything like this before?
On another project, there’s a has_many association on a table with 40,000 records in MySQL. It seems that pulling these in through standard ActiveRecord means is not releasing memory (you can watch the memory grow as it executes). The work around was to use ActiveRecord::Base.connection.select_all(), but it would be nice to know why GC didn’t kick in and clean up house. Maybe AR is holding on to object references somewhere outside of scope?
Speaking of scope, there’s a subtle difference in Ruby 1.9.2 that a pivot ran into – previously you could set variables inside a call to eval() and have that variable defined in the same scope as the call. That is no longer the case in 1.9.2 where eval has its own scope inside the call.
And lastly, on this day in 19..(mumble mumble), NASA launched the Voyager 2. Later in its career, Voyager was given it’s own drama series and a female captain to command the vessel.
Ask for Help
*”when using the css3 pseudo selector
nth-child followed by a nested selector e.g.
td:nth-child(4) > p
some times (but consitently) they do not match to the correct element. Has anyone using nth-child experienced this before and know why it sometimes works and other times not?”*
For now the solution is to use jQuery to get to the nth child and apply the styles that way.
jQuery 1.4.2 ajax json responses with a response code of 200 and responseText:” ” (note the non empty string) causes jquery to trigger the failure callback instead of the success. Previous versions would handle this as a special case and still trigger the success callback. Most people agree this is proper as an empty string is not valid json, but be aware!
Perseids is a metor shower happening right now (July 23 – August 24) so look up!
Ask for Help
“We have a file claiming to be ISO-8859-l encoded, but having characters that don’t seem to be encoded that way. Every editor we try to open it in shows the bad characters. We have tried to use the iconv utility to change it to a UTF8 file type but it keeps crapping out whenever it hits an unknown character for that encoding. Any ideas how to fix these files??”
There were multiple suggestions:
- Try running iconv to encode it to its current encoding and see if that works i.e. latin1 -> latin1
- Manually fix the characters that iconv complains on. (this was rejected as there were thousands of fils that needed fixing).
- Try pasting the file into a WYSYWIG editor that may fix the bad characters and then copying them out again (using mechanize or similar to automate)
- Try opening it in MS-Word or similar and saving it back out.
- the ‘:contains’ pseudo selector in jQuery & webrat behave differently with regards to commas. in jQuery it treats it as a string, in webrat (probably because it is converted to xpath) it is treated as separator.
spec.opts << --format profile will show you the 10 slowest specs after the suite is run.
- Rails versions > 2.3.x use HTTP only cookeis so you cannot use selenium to clear them out. You can turn that off in your test environment to fix this. while a slower you may also just want your sleenium tests to open a fresh browser for every test in case there are other side effects in the browser like local data stores etc.
- If you are using RubyMine and are experiencing a perpetual ‘Attach gems’ problem you may be able to fix it by clearing out older gem versions.
- Riak is a distributed hash table data store solution. They are working on a project that is going to implement the SOLR api but be backed by Riak instead of lucene
- If your using Rails 3/Passanger and you would like to have a production like environment but not call it ‘production’, say ‘demo’ You will need to change not only the RAILS_ENV but also the RACK_ENV variable to get it to work. Someone also mentioned that there may be a Passenger config that will also do this.