Lifestream http://life.ifabio.com/feed en-us http://blogs.law.harvard.edu/tech/rss Sweetcron me@ifabio.com the w key is always dangerously close to the q key http://life.ifabio.com/items/view/1392/ifabio-the-w-key-is-always-dangerously-close-to-the-q-key ]]> Fri, 03 Sep 2010 01:31:21 -0700 http://life.ifabio.com/items/view/1392/ifabio-the-w-key-is-always-dangerously-close-to-the-q-key Graffletopia http://life.ifabio.com/items/view/1391/graffletopia ]]> Thu, 02 Sep 2010 02:54:19 -0700 http://life.ifabio.com/items/view/1391/graffletopia Color Theory for Designers, Part 1: The Meaning of Color - Smashing ... http://life.ifabio.com/items/view/1390/color-theory-for-designers-part-1-the-meaning-of-color-smashing ]]> Mon, 30 Aug 2010 14:34:18 -0700 http://life.ifabio.com/items/view/1390/color-theory-for-designers-part-1-the-meaning-of-color-smashing Periodic Table of the Elements - Josh Duck http://life.ifabio.com/items/view/1389/periodic-table-of-the-elements-josh-duck

13 reviews

]]>
Mon, 30 Aug 2010 14:26:10 -0700 http://life.ifabio.com/items/view/1389/periodic-table-of-the-elements-josh-duck
HP's Phil McKinney teases three mystery prototypes on Twitter http://life.ifabio.com/items/view/1358/hps-phil-mckinney-teases-three-mystery-prototypes-on-twitter

Well, this is certainly interesting -- that's HP CTO Phil McKinney pictured above in a pair of redacted shots that were posted to Twitter by HP's Mark Budgell. Described only as "early protos" by McKinney himself, the pictures show what appears to be phone-sized device, a tablet-sized device and, perhaps most curiously, something on McKinney's wrist (all mysteriously blacked out). Before you get your hopes up too much about a new wave of webOS devices, however, you might want to take a look at the second part of Budgell's tweet, which encourages folks to vote for McKinney's SXSW 2011 panel -- a panel in which McKinney promises to make some "bold predictions for the future - backed up with a number of breakthrough prototypes," and specifically talk about what the future will look like in "5 to 10 years." Now, we can't be certain of course, but that doesn't exactly suggest these are right around the corner. Head on past the break for a slightly bigger image.Continue reading HP's Phil McKinney teases three mystery prototypes on TwitterHP's Phil McKinney teases three mystery prototypes on Twitter originally appeared on Engadget on Sun, 29 Aug 2010 16:17:00 EDT. Please see our terms for use of feeds.Permalink | @philmckinney, @MarkatHP (Twitter) |Email this|Comments

]]>
Sun, 29 Aug 2010 14:18:47 -0700 http://life.ifabio.com/items/view/1358/hps-phil-mckinney-teases-three-mystery-prototypes-on-twitter
Why California Won't Legalize Pot [GRAPH] http://life.ifabio.com/items/view/1359/why-california-wont-legalize-pot-graph

Proposition 19 is a California ballot proposition which would legalize various marijuana-related activities.

]]>
Sun, 29 Aug 2010 13:27:14 -0700 http://life.ifabio.com/items/view/1359/why-california-wont-legalize-pot-graph
Atmospheric http://life.ifabio.com/items/view/1357/atmospheric

155 reviews

]]>
Sun, 29 Aug 2010 13:17:09 -0700 http://life.ifabio.com/items/view/1357/atmospheric
Navigating The Worst Type of Workplace Conversation [COMIC] http://life.ifabio.com/items/view/1360/navigating-the-worst-type-of-workplace-conversation-comic ]]> Sun, 29 Aug 2010 12:09:39 -0700 http://life.ifabio.com/items/view/1360/navigating-the-worst-type-of-workplace-conversation-comic Samsung Fascinate ready for Best Buy in-store pre-order ahead of rumored September 9 launch http://life.ifabio.com/items/view/1361/samsung-fascinate-ready-for-best-buy-in-store-pre-order-ahead-of-rumored-september-9-launch

Verizon can't be feeling too hot about being the straggler to the Galaxy S party, but the wait seems to be almost at an end. Best Buy's just started taking in-store pre-orders for the Fascinate, while the latest internal document leak from VZW indicates a specific September 9 launch for the 4-inch Android handset. That's when you should be able to snap the Fascinate up along with a prepaid data plan from Big Red, which fits in nicely with earlier unsanctioned disclosures on the matter. Either way, Samsung's quest to conquer all networks with its Super Gorilla phone will be coming to a victorious end pretty soon.

[Thanks, Brian G.]Samsung Fascinate ready for Best Buy in-store pre-order ahead of rumored September 9 launch originally appeared on Engadget on Sun, 29 Aug 2010 14:49:00 EDT. Please see our terms for use of feeds.Permalink   |  Best Buy, Boy Genius Report  | Email this | Comments

]]>
Sun, 29 Aug 2010 12:02:29 -0700 http://life.ifabio.com/items/view/1361/samsung-fascinate-ready-for-best-buy-in-store-pre-order-ahead-of-rumored-september-9-launch
Navigating The Worst Type of Workplace Conversation [COMIC] http://life.ifabio.com/items/view/1362/navigating-the-worst-type-of-workplace-conversation-comic

How to hear all about that show that was on last night.

]]>
Sun, 29 Aug 2010 11:57:26 -0700 http://life.ifabio.com/items/view/1362/navigating-the-worst-type-of-workplace-conversation-comic
Rails 3.0: It's ready! http://life.ifabio.com/items/view/1388/rails-30-it39s-ready

Rails 3.0 has been underway for a good two years, so it’s with immense pleasure that we can declare it’s finally here. We’ve brought the work of more than 1,600 contributors together to make everything better, faster, cleaner, and more beautiful.

This third generation of Rails has seen thousands of commits, so picking what to highlight was always going to be tough and incomplete. But here’s a choice selection of major changes for Rails 3:

New Active Record query engine Active Record has adopted the ARel query engine to make scopes and queries more consistent and composable. This makes it much easier to build complex queries over several iterations. We also delay the actual execution of the query until it’s needed. Here’s a simple example:

users = User.where(:name => "david").limit(20) users = users.where("age > 29")

SELECT * FROM users

WHERE name = "david" AND age > 29

ORDER BY name

LIMIT 20

users.order(:name).each { |user| puts user.name }

Read more in new Active Record guide and watch the Dive into Rails 3: ARel video.

New router for Action Controller When we switched to a REST-based approach for controllers in Rails 2, we patched on the syntax to the existing router while we were waiting to see if the experiment panned out.

It did and for Rails 3 we’ve gone back and revamped the syntax completely to favor the REST style with less noise and more flexibility:

resources :people do resource :avatar

collection do get :winners, :losers end end

/sd34fgh/rooms

scope ':token', :token => /\w{5,5}/ do resources :rooms end

/descriptions

/pl/descriptions

/en/descriptions

scope '(:locale)', :locale => /en|pl/ do resources :descriptions root :to => 'projects#index' end

Read more in the new routing guide.

New Action Mailer Action Mailer was born with a split-personality of half model, half controller. In Rails 3, we’ve made the choice to make it all controller. This means that the feel and functionality will be much closer to Action Controller and in fact they now share a bunch of underlying code. Here’s a taste of what it looks like now:

class Notifier < ActionMailer::Base default :from => "Highrise <system@#{APPLICATION_DOMAIN}>"

def new_project(digest, project, person) @digest, @project, @person = digest, project, person

attachments[&#39;digest.pdf&#39;] = digest.to_pdf
attachments[&#39;logo.jpg&#39;]   = File.read(project.logo_path)

mail(
  :subject =&gt; &quot;Your digest for #{project.name}&quot;,
  :to =&gt; person.email_address_with_name
) do |format|
  format.text { render :text =&gt; &quot;Something texty&quot; }
  format.html { render :text =&gt; &quot;Something &lt;i&gt;texty&lt;/i&gt;&quot; }
end

end end

The new Action Mailer is built on top of the new Mail gem as well. Say goodbye to TMail headaches.

Read more in new Action Mailer guide.

Manage dependencies with Bundler Managing all the dependencies of a Rails application has long been a hassle of patchworks. We had config.gem, Capistrano externals, custom rake setup tasks, and other incomplete solutions.

Bundler cleans all that up and allows you to specify the libraries, frameworks, and plugins that your application depends on. All Rails 3 applications are born with a Gemfile to control it all. See more on the Bundler site.

XSS protection by default The internet is a scary place and Rails 3 is watching out for you by default. We’ve had CRSF protection with form signing for a while and SQL-injection protection since the beginning, but Rails 3 ups the anté with XSS protection as well (hat tip to Django for convincing us).

See the Railscast on XSS video and the Dive into Rails 3: Cross-site scripting video for more.

Say goodbye to encoding issues If you browse the Internet with any frequency, you will likely encounter the � character. This problem is extremely pervasive, and is caused by mixing and matching content with different encodings.

In a system like Rails, content comes from the database, your templates, your source files, and from the user. Ruby 1.9 gives us the raw tools to eliminate these problems, and in combination with Rails 3, � should be a thing of the past in Rails applications. Never struggle with corrupted data pasted by a user from Microsoft Word again!

Active Model: Validations, callbacks, etc for all models We’ve extracted quite a bit of commonly requested Active Record components into the new Active Model framework. This allows an ORM like Mongoid to use Active Record’s validations, callbacks, serialization, and i18n support.

Additionally, in the rewrite of Action Controller, we removed any direct references to Active Record, defining a clean, simple API that ORMs can implement. If you use an API-compliant ORM (like DataMapper, Sequel, or Mongoid), you will be able to use features like form_for, link_to and redirect_to with objects from those ORMs without any additional work.

Official plugin APIs We also rewrote Railties with the express goal of using the new plugin API for all Rails frameworks like Active Record and Action Mailer. This means that Rails plugins like the ones for DataMapper and RSpec have access to all of the integration as the built-in support for Active Record and Test::Unit.

The new Railtie API makes it possible to modify the built-in generators, add rake tasks, configure default Rails options, and specify code to run as early, or as late as you need. Rails plugins like Devise were able to add much better integration in the Rails 3 version of their plugin. Expect to see a lot more of that in the months ahead.

Rewritten internals We rewrote the internals of Action Pack and Railties, making them much more flexible and easier to extend. Instead of a single monolithic ActionController::Base, Rails 3 exposes a number of modules, each with defined APIs, that you can mix and match to create special-purpose controllers for your own use. Both Action Mailer in Rails and the Cells project make heavy use of this new functionality.

You can also take a look a this blog post by Yehuda (from last year) to see how the new architecture makes it easy to implement Django-style generic actions in Rails by leveraging Rack and ActionController::Metal.

The Rails generator system is got a revamp as well. Instead of monolithic generators that know about all of the Rails frameworks, each generator calls a series of hooks, such as :test_framework and :orm, that plugins can register handlers for. This means that generating a scaffold when using rSpec, DataMapper and Haml will generate a scaffold customized for those plugins.

Agnosticism with jQuery, rSpec, and Data Mapper The rewritten internals and the new plugin APIs have brought true agnosticism to Rails 3 for all components of the framework. Prefer DataMapper to Active Record? No problem. Want to use jQuery instead of Prototype? Go ahead. Eager to test with rSpec instead of test/unit? You got it.

It’s never been easier to Have It Your Way™ with Rails 3. And at the same time, we’ve made that happen without making using the excellent default stack any more complicated.

Documentation Rails 3 has had a long development cycle and while that might have lead to some impatience, it has also given book and tutorial authors a chance to catch up and be ready. There’s a wealth of great Rails 3 documentation available already and more is coming shortly.

The Agile Web Development with Rails 4th Ed book is almost ready and there are plenty more books coming. Check out all the new guides, the new official videos, new Railscasts, and a new tutorial. See the recent recap of documentation sources for more.

Installation gem install rails --version 3.0.0.

We also have a Rails v3.0.0 tag and a 3-0-stable branch.

Rails 3.0 has been designed to work with Ruby 1.8.7, Ruby 1.9.2, and JRuby 1.5.2+.

Gratitude and next steps I’m personally incredibly proud of this release. I’ve been working on Rails for more than 7 years and the quality of the framework we have today is just astounding. This is only possible as a community effort and Rails 3 has seen so many incredible developers step up and help make this our best release ever (wink). Many thanks to all of you.

We’ll continue to develop Rails 3.0 with fixes and tweaks via the stable branch and Rails 3.1 is already cooking on master.

]]>
Sun, 29 Aug 2010 11:28:00 -0700 http://life.ifabio.com/items/view/1388/rails-30-it39s-ready
Ruby on Rails: Rails 3 Screencasts http://life.ifabio.com/items/view/1355/ruby-on-rails-rails-3-screencasts ]]> Sun, 29 Aug 2010 07:44:58 -0700 http://life.ifabio.com/items/view/1355/ruby-on-rails-rails-3-screencasts Ruby on Rails Tutorial: Learn Rails by Example | by Michael Hartl http://life.ifabio.com/items/view/1356/ruby-on-rails-tutorial-learn-rails-by-example-by-michael-hartl ]]> Sun, 29 Aug 2010 07:43:30 -0700 http://life.ifabio.com/items/view/1356/ruby-on-rails-tutorial-learn-rails-by-example-by-michael-hartl 5 Insane Scientific Charts You Won't Believe Actually Exist http://life.ifabio.com/items/view/1363/5-insane-scientific-charts-you-wont-believe-actually-exist

Everything needs to measured: Even things you don't want to touch, smell, look at, think about or even exist on the same physical plane as. Thankfully, that's where Science steps in.

]]>
Sun, 29 Aug 2010 06:50:23 -0700 http://life.ifabio.com/items/view/1363/5-insane-scientific-charts-you-wont-believe-actually-exist
The Moneysaver: Here's The Juice http://life.ifabio.com/items/view/1364/the-moneysaver-heres-the-juice

dealtaku

 Now, I know you think you're the A-number one hotshot,  but here's the juice: If I take you out, ten more coupons will take your place tomorrow. They just won't come on the bus, that's all.    More
]]>
Sat, 28 Aug 2010 16:33:42 -0700 http://life.ifabio.com/items/view/1364/the-moneysaver-heres-the-juice
Would You Really Call This A Screw Job? http://life.ifabio.com/items/view/1365/would-you-really-call-this-a-screw-job

To read the common rhetoric, it's hard to escape a feeling that annualized sports games represent some kind of zero-sum relationship, with either the publisher or the consumer screwing the other side out of something it righteously deserves each year.

]]>
Sat, 28 Aug 2010 15:05:06 -0700 http://life.ifabio.com/items/view/1365/would-you-really-call-this-a-screw-job
The Evolution of Fictional Characters by Medium [COMIC] http://life.ifabio.com/items/view/1366/the-evolution-of-fictional-characters-by-medium-comic

Each form of media has its own unique lifecycle.

]]>
Sat, 28 Aug 2010 12:03:01 -0700 http://life.ifabio.com/items/view/1366/the-evolution-of-fictional-characters-by-medium-comic
Toshiba's Tegra 2-powered Android Smart Pad to be called Folio 100? http://life.ifabio.com/items/view/1367/toshibas-tegra-2-powered-android-smart-pad-to-be-called-folio-100

A Smart Pad? That's just Toshiba's product category, according to Netbook Italia's latest post on the tablet (it's previously shown off some apparent imagery). The publication has published new renders -- including a dock peripheral -- and some purported specs. Here's what's being said: Android 2.2, NVIDIA Tegra 2 (both of which we've heard in other whispers), a 10.1-inch 1024 x 600 screen, 16GB internal memory, 802.11b/g/n, Bluetooth, 3G, SD and MMC card readers, HDMI and USB 2.0 ports, a 1.3 megapixel webcam, and a 1020mAh battery with a battery life of up to 7 hours with mixed use (browsing and video playback). Software-wise, it's got Opera mobile browser, Flash 1.0, an e-book reader, and some office applications. The doubting Thomas in us still remains hesitant until Toshi gives the official word, but nothing here seems too crazy for the tablet mania most companies seem to have this year. One thing's for sure, its claimed official name -- Folio 100 -- is a few degrees to close to some bad memories of ours.Toshiba's Tegra 2-powered Android Smart Pad to be called Folio 100? originally appeared on Engadget on Sat, 28 Aug 2010 14:35:00 EDT. Please see our terms for use of feeds.Permalink   |  Notebook Italia  | Email this | Comments

]]>
Sat, 28 Aug 2010 11:41:45 -0700 http://life.ifabio.com/items/view/1367/toshibas-tegra-2-powered-android-smart-pad-to-be-called-folio-100
6 Insane Batman Comics Courtesy of Tasty Hostess Cupcakes http://life.ifabio.com/items/view/1368/6-insane-batman-comics-courtesy-of-tasty-hostess-cupcakes

In the late 70s and early 80s, you couldn't get through a comic without seeing a one-page ad involving a highly improbable scenario where a well-known super hero had to save the world using nothing but the power of delicious Hostess snack cakes. Here are six examples of the ridiculous bullshit Batman had to put up with in the name of making children fat...

]]>
Sat, 28 Aug 2010 10:48:36 -0700 http://life.ifabio.com/items/view/1368/6-insane-batman-comics-courtesy-of-tasty-hostess-cupcakes
The 10 Greatest Fictional Inventors of All Time http://life.ifabio.com/items/view/1369/the-10-greatest-fictional-inventors-of-all-time

inventors

Eureka has been Giz's celebration of inventors of all stripe, from Tesla to Popeil. But some of the most memorable inventors of our time were actually invented themselves. Here are ten fictional innovators near and dear to our hearts.    More
]]>
Sat, 28 Aug 2010 10:31:31 -0700 http://life.ifabio.com/items/view/1369/the-10-greatest-fictional-inventors-of-all-time