This is Dave Thomas's TypePad Profile.
Join TypePad and start following Dave Thomas's activity
Dave Thomas
Recent Activity
Chris:
You're right. I thought identity maps were on by default, but apparently I'm wrong—they have to be enabled, and I hear that they'll be removed from Rails 4. So it's back to using the instance variable... Sigh
Premature optimisation in my Rails session code?
For years and years, I've been writing def current_user @current_user ||= (session[:user_id] && User.find_by_id(session[:user_id])) end The idea was to look up and store the current user object in an instance variable the frst time the method was called, and then use the value in that variabl...
default_scope is problematic: see http://pragdave.blogs.pragprog.com/pragdave/2012/03/be-careful-using-default_scope-and-order.html
A subtle potential bug in most Rails applications
The ActiveRecord component in Rails offers a convenient and powerful interface between the set-oriented world of relational databases and the object-oriented world of Ruby programs. However, there's a potential bug lurking in many (if not most) Rails applications due to a subtle implication of t...
Greg:
Nothing to do with top n. But the name "first" implies ordering where there is none.
And in the case of "offset", there's genuine potential for incorrect results.
A subtle potential bug in most Rails applications
The ActiveRecord component in Rails offers a convenient and powerful interface between the set-oriented world of relational databases and the object-oriented world of Ruby programs. However, there's a potential bug lurking in many (if not most) Rails applications due to a subtle implication of t...
We decided to take the "code-as-text" approach several years ago now, so you won't see code images in our books.
The current issue is what to do about wrapped code lines—still a challenge, given that we don't control the width of the device, but nowhere near as obnoxious as the initial problem with a lack of code font support in the readers.
Displaying Code on the Kindle
So, I'm in a quandary. Having used one now for a few months, I'm slowly warming to Amazon's Kindle 2. Sure, it still feels a bit cheap compared to the Sony 505, but it's fast, and the ability to download over their wireless network is a bit plus. (Stay tuned for an announcement from us about ...
Dave Thomas is now following The Typepad Team
Mar 15, 2010
“Dude, what you're doing is asking Amazon for a free ride”
That would be true if the Kindle had a subsidized price of $99, and Amazon relied on revenue from future sales to make back the initial loss. But Kindles are expensive out of the box. At that price, I'd expect open access. I'd be happy to pay reasonable network fees, but these charges seem to be designed to be punitive.
Amazon Tighten Their Grip on Kindle Distribution
I've had an on-again, off-again relationship with my Kindles. The original was not much more than a toy, but the Kindle 2 was a more usable device. It still needs work in the formatting department (hopefully the Lexcycle acquisition will help with this—I very much hope to see epub support roll...
The problem with using a non-fixed width font is that the Kindle only has its serif font and a fixed font: if I could use a decent sans, I'd jump at it.
The sad thing is that it's relatively easy to hack a Kindle and substitute your own fonts. I wish Amazon gave us this option officially, so then we could recommend switching to a narrower font for code.
Displaying Code on the Kindle
So, I'm in a quandary. Having used one now for a few months, I'm slowly warming to Amazon's Kindle 2. Sure, it still feels a bit cheap compared to the Sony 505, but it's fast, and the ability to download over their wireless network is a bit plus. (Stay tuned for an announcement from us about ...
The problem with turning the PickAxe into an eBook is one of technologies used. Our other books are authored in our own markup system, and they're amenable to a systematic conversion process. The PickAxe predates these books, and is written using a very involved toolchain based on TeX. It makes significant use of TeX magic, and converting the 960 pages into the xml needed to create the eBooks would be a horrendous job.
Displaying Code on the Kindle
So, I'm in a quandary. Having used one now for a few months, I'm slowly warming to Amazon's Kindle 2. Sure, it still feels a bit cheap compared to the Sony 505, but it's fast, and the ability to download over their wireless network is a bit plus. (Stay tuned for an announcement from us about ...
We can't make it switch to landscape, only the user can. And we can't highlight lines dynamically.
The line numbers are there because the text references them. It's easy to take out, but I'd rather find a visual way of decluttering (I wanted to invert the colors and make a solid margin, but can't find a way to do that on the Kindle)
Displaying Code on the Kindle
So, I'm in a quandary. Having used one now for a few months, I'm slowly warming to Amazon's Kindle 2. Sure, it still feels a bit cheap compared to the Sony 505, but it's fast, and the ability to download over their wireless network is a bit plus. (Stay tuned for an announcement from us about ...
Subscribe to Dave Thomas’s Recent Activity