One Day in Toronto

Posted 6 days back at Yurii Rashkovskii's Blog

Imaginary spring
Poison Ivy
Sweet dreams

Contest: Free iPhone Oxford Dictionary

Posted 7 days back at Ryan's Scraps

I’m not big on publicizing commercial works due to the obvious bias involved, but we’ve recently finished up the Oxford American College Dictionary and Thesaurus for the iPhone and our client was nice enough to give us a few free download codes. Never one to waste free stuff I thought I’d offer them up to my readers.

So here’s the deal – to distribute these free downloads of our Oxford Dictionary for the iPhone (appstore) I’m going to run a little contest: Post your favorite word in the comments along with your preferred usage of the word (like an example sentence). I’ll pick my favorite five entries after a week or so and will email you your promo codes (so be sure to leave your email address in the comment form). Note: I am a sucker for humor and wit, so be liberal in your application of them.

Most real iPhone dictionaries (from respected publications) go for upwards of $20 – $30 so this is a pretty decent value.

Now wow me with your vocabulary.

tags: iPhone, dictionary

Contest: Free iPhone Oxford Dictionary

Posted 7 days back at Ryan's Scraps

I’m not big on publicizing commercial works due to the obvious bias involved, but we’ve recently finished up the Oxford American College Dictionary and Thesaurus for the iPhone and our client was nice enough to give us a few free download codes. Never one to waste free stuff I thought I’d offer them up to my readers.

So here’s the deal – to distribute these free downloads of our Oxford Dictionary for the iPhone (appstore) I’m going to run a little contest: Post your favorite word in the comments along with your preferred usage of the word (like an example sentence). I’ll pick my favorite five entries after a week or so and will email you your promo codes (so be sure to leave your email address in the comment form). Note: I am a sucker for humor and wit, so be liberal in your application of them.

Most real iPhone dictionaries (from respected publications) go for upwards of $20 – $30 so this is a pretty decent value.

Now wow me with your vocabulary.

tags: iPhone, dictionary

Access Hoptoad on Your iPhone

Posted 7 days back at GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS - Home

As our holiday present to you, we’ve just deployed a new iPhone interface to Hoptoad.

Now, when you visit Hoptoad on your iPhone (for example, following a link to an error in an email you receive from Hoptoad) you’ll be presented with a nice view formatted specifically for iPhone.

While this interface is specifically tested on iPhone, it also works on Android. So, if you go to Hoptoad on an Android phone, you’ll be given this new interface as well.

Enjoy!

Access Hoptoad on Your iPhone

Posted 7 days back at GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS - Home

As our holiday present to you, we’ve just deployed a new iPhone interface to Hoptoad.

Now, when you visit Hoptoad on your iPhone (for example, following a link to an error in an email you receive from Hoptoad) you’ll be presented with a nice view formatted specifically for iPhone.

While this interface is specifically tested on iPhone, it also works on Android. So, if you go to Hoptoad on an Android phone, you’ll be given this new interface as well.

Enjoy!

Cool wishlist management at WishSight!

Posted 7 days back at DABlog - Home

Announcing the opening of WishSight!

WishSight is for managing wishlists and gift-giving. It lets you see who’s given (or promised) what to whom, and it lets gift-givers for particular people communicate with each other, via a comment-board, so that they don’t duplicate gifts.

It’s based on a Christmas-list application I wrote in 2005 that my family and friends have been using every year since then. It’s completely merchant-unaffiliated. You can post links for the gifts you want, and they can be links to any merchant.

WishSight helps you cut down on gift duplication, and increases the chances that people will get things they actually want, without the gift-givers having to do a round-robin of email or phone calls to pin down who’s buying what. And chances are they don’t all know each other anyway—which doesn’t matter on WishSight, because you all communicate by leaving comments directly on your mutual friend’s wishlist.

All you have to do is:

  • sign up
  • list the email addresses of people who you want to be able to see your wishlist
  • get those people to sign up and “whitelist” your email address
  • list your wishes
  • stake “claims” on other people’s wishes

There’s no stealth: the email addresses are only used internally to determine who’s allowed to see whose wishlist. Also, you can list email addresses even if the people haven’t signed up yet. Once they do sign up, they will automatically have permission to see your wishlist and claim your wishes. No two-sided “handshakes” required; you just whitelist people.

Have fun, and let me know if any questions or problems!

What's New in Edge Rails: Dynamic Scope Methods

Posted 7 days back at Ryan's Scraps


This feature is scheduled for: Rails v2.3/3.0

For quite some time now you’ve been able to perform simple queries using dynamic find_all_by_xx_and_yy methods:

1
2
Article.find_by_published_and_user_id(true, 1)
  #=> "SELECT * FROM articles WHERE published = 1 AND user_id = 1"

These dynamic finders provide an easy way to quickly encapsulate non-reused query conditions (for commonly used query logic you should consider using named scopes). The downside, however, is that you can’t chain query conditions when using these dynamic finders.

With the recent addition of dynamic scopes, however, you now have a way to both quickly specify query logic and chain further conditions. The naming works in the same manner as dynamic finders and the chaining works in the same fashion as conventional named scopes:

1
2
Article.scoped_by_published_and_user_id(true, 1).find(:all, :limit => 5)
  #=> "SELECT * FROM articles WHERE published = 1 AND user_id = 1 LIMIT 5"

Note how you can hang further chainable query methods off the dynamic scope here? You could also have preceded the dynamic scope with another scope, or even another dynamic scope:

1
2
Article.scoped_by_published(true).scoped_by_user_id(1)
  #=> "SELECT * FROM articles WHERE published = 1 AND user_id = 1"

This is really just another tool to put in your toolbox based on the powerful named_scope functionality of ActiveRecord.

tags: ruby, rubyonrails

What's New in Edge Rails: Dynamic Scope Methods

Posted 7 days back at Ryan's Scraps


This feature is scheduled for: Rails v2.3/3.0

For quite some time now you’ve been able to perform simple queries using dynamic find_all_by_xx_and_yy methods:

1
2
Article.find_by_published_and_user_id(true, 1)
  #=> "SELECT * FROM articles WHERE published = 1 AND user_id = 1"

These dynamic finders provide an easy way to quickly encapsulate non-reused query conditions (for commonly used query logic you should consider using named scopes). The downside, however, is that you can’t chain query conditions when using these dynamic finders.

With the recent addition of dynamic scopes, however, you now have a way to both quickly specify query logic and chain further conditions. The naming works in the same manner as dynamic finders and the chaining works in the same fashion as conventional named scopes:

1
2
Article.scoped_by_published_and_user_id(true, 1).find(:all, :limit => 5)
  #=> "SELECT * FROM articles WHERE published = 1 AND user_id = 1 LIMIT 5"

Note how you can hang further chainable query methods off the dynamic scope here? You could also have preceded the dynamic scope with another scope, or even another dynamic scope:

1
2
Article.scoped_by_published(true).scoped_by_user_id(1)
  #=> "SELECT * FROM articles WHERE published = 1 AND user_id = 1"

This is really just another tool to put in your toolbox based on the powerful named_scope functionality of ActiveRecord.

tags: ruby, rubyonrails

Installing Instant Rails on Windows

Posted 7 days back at O'Reilly Ruby

Instant Rails is getting old, but it's still a quick way to install Rails and start coding. This screencast shows how to download and install Instant Rails, and shows off how it works with a simple example from Chapter 2 of Learning Rails.

Double Shot #358

Posted 7 days back at A Fresh Cup


I spent a lot of yesterday deep in the Rails source, trying to figure out why some tests weren’t passing. No final conclusion but I think I’m on the right track.

  • Timecop 0.2.0 - Gem for freezing time to make it easier to write reproducible tests. Here’s the original announcement.
  • Pages Generator - Another helpful little tool from GitHub.
  • Bringing Merb’s provides/display into Rails 3 - DHH gives us a peek at one of the planned bits of merging.
  • Dispatch from the Front Lines - And Yehuda Katz is also writing about the work to come. The more of this sort of thing we see from the merged team, the less FUD there will be to go around.
  • Overview of Jekyll - a static site generator written in Ruby - A look at the tool that’s tied into GitHub’s pages.
  • Kontrol - a micro framework - Yes, it’s another small Ruby web framework.
  •       

    Another Rails 2.x/3 Update

    Posted 7 days back at Katz Got Your Tongue?

    I didn’t get that much done today on the Rails front as a result of getting Merb 1.0.7 out the door. I did do some more planning about how to clean up and improve the performance of ActionPack, and am really looking forward to diving into the work tomorrow.

    Daniel (hassox), Michael (antares), and Carl (carllerche) have been hard at work today:

    • Daniel has been porting over the Merb Bootloader concept into Rails’ initializers. This is a 100% backward-compatible change that will simply make the initialization process easier to hook into (especially for plugins). This is one of the crucial components necessary for good ORM agnosticism. You can follow along at his branch. This turns out to be fairly difficult so kudos to Daniel for picking up this piece of the puzzle and getting right at it.
    • Michael has been going through ActiveSupport and working to make it more modular. His first major achievement is getting a new activesupport/mini.rb file that can be used by other libraries that want extensions, with a guarantee that it won’t pull in any more than is explicitly included. It includes blank?, Object#metaclass, Array extensions, Hash extensions, *attr_accessor, multibyte support, and inflections. Additional components can be required granularly, and of course, each of these components can be included granularly as well. activesupport/mini is intended to be a lightweight starting point (it weighs in at just 2.5MB) for the most common cases. Michael plans to move Templater, which currently uses Extlib, over to AS once 2.3 is released.
    • To quote Michael: 

      On the ActiveSupport front, we separate Rails-specific dependencies from others, so 3rd party applications do not get extra overhead. Right now in 2.2.2 if you do require ‘active_support’, it loads a lot of Rails specific code, like i18n gem, Builder and ActiveSupport::JSON. Since there are Ruby applications that need a convenient support library, but do not deal with the web, JSON and Builder are pure overhead, and should be loaded by the Rails components that use them.

    • In a follow-up to the very simple example I gave yesterday in annotating metaprogramming, Xavier Noria (fxn) went in and annotated all of the metaprogramming in the entire Rails codebase. Holy sh**. Check out the commit. It should make it a *lot* easier to understand the metaprogramming sprinkled throughout the Rails codebase. Thanks to antares for the initial inspiration.
    • Carl has been doing some killer work to make the Merb router more flexible, and capable of handling Merb1, Rails2, and a potential Rails3 syntax with the same backend. It’s going to be really awesome to get the feature-set of the Merb router (optional segments, routing based on arbitrary request elements, inline custom code, etc.) into Rails with a shiny Railsish API. David (dhh) is already doing some killer work on designing an API for the features in the Merb router that aren’t yet in Rails that looks very promising.
    • We’re beginning to see that a large amount of the work that we’re doing is 100% backward compatible and can easily make it into 2.x. There’s a chance there will be a 2.4 release sometime between 2.3 and 3.0 just to roll in compatible features and cleanup, so we don’t dump the entire new feature-set on you in one fell swoop. We’ll see how that goes.
    • I have a small change ready to be merged into rails/master that unifies three places that did content negotiation throughout the Rails codebase. I have more work to be done on this front, but it’s a lot clearer what needs to be done now that the small bit of refactoring is done.  

    I hope to have some stuff on ActionPack in tomorrow’s update. I’m really looking forward to my first full work-day on Rails at EY.

    See you tomorrow folks!

    <script type="text/javascript"> addthis_url = 'http%3A%2F%2Fyehudakatz.com%2F2008%2F12%2F29%2Fanother-rails-2x3-update%2F'; addthis_title = 'Another+Rails+2.x%2F3+Update'; addthis_pub = ''; </script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12"></script>

    Another Rails 2.x/3 Update

    Posted 7 days back at Katz Got Your Tongue?

    I didn’t get that much done today on the Rails front as a result of getting Merb 1.0.7 out the door. I did do some more planning about how to clean up and improve the performance of ActionPack, and am really looking forward to diving into the work tomorrow.

    Daniel (hassox), Michael (antares), and Carl (carllerche) have been hard at work today:

    • Daniel has been porting over the Merb Bootloader concept into Rails’ initializers. This is a 100% backward-compatible change that will simply make the initialization process easier to hook into (especially for plugins). This is one of the crucial components necessary for good ORM agnosticism. You can follow along at his branch. This turns out to be fairly difficult so kudos to Daniel for picking up this piece of the puzzle and getting right at it.
    • Michael has been going through ActiveSupport and working to make it more modular. His first major achievement is getting a new activesupport/mini.rb file that can be used by other libraries that want extensions, with a guarantee that it won’t pull in any more than is explicitly included. It includes blank?, Object#metaclass, Array extensions, Hash extensions, *attr_accessor, multibyte support, and inflections. Additional components can be required granularly, and of course, each of these components can be included granularly as well. activesupport/mini is intended to be a lightweight starting point (it weighs in at just 2.5MB) for the most common cases. Michael plans to move Templater, which currently uses Extlib, over to AS once 2.3 is released.
    • To quote Michael: 

      On the ActiveSupport front, we separate Rails-specific dependencies from others, so 3rd party applications do not get extra overhead. Right now in 2.2.2 if you do require ‘active_support’, it loads a lot of Rails specific code, like i18n gem, Builder and ActiveSupport::JSON. Since there are Ruby applications that need a convenient support library, but do not deal with the web, JSON and Builder are pure overhead, and should be loaded by the Rails components that use them.

    • In a follow-up to the very simple example I gave yesterday in annotating metaprogramming, Xavier Noria (fxn) went in and annotated all of the metaprogramming in the entire Rails codebase. Holy sh**. Check out the commit. It should make it a *lot* easier to understand the metaprogramming sprinkled throughout the Rails codebase. Thanks to antares for the initial inspiration.
    • Carl has been doing some killer work to make the Merb router more flexible, and capable of handling Merb1, Rails2, and a potential Rails3 syntax with the same backend. It’s going to be really awesome to get the feature-set of the Merb router (optional segments, routing based on arbitrary request elements, inline custom code, etc.) into Rails with a shiny Railsish API. David (dhh) is already doing some killer work on designing an API for the features in the Merb router that aren’t yet in Rails that looks very promising.
    • We’re beginning to see that a large amount of the work that we’re doing is 100% backward compatible and can easily make it into 2.x. There’s a chance there will be a 2.4 release sometime between 2.3 and 3.0 just to roll in compatible features and cleanup, so we don’t dump the entire new feature-set on you in one fell swoop. We’ll see how that goes.
    • I have a small change ready to be merged into rails/master that unifies three places that did content negotiation throughout the Rails codebase. I have more work to be done on this front, but it’s a lot clearer what needs to be done now that the small bit of refactoring is done.  

    I hope to have some stuff on ActionPack in tomorrow’s update. I’m really looking forward to my first full work-day on Rails at EY.

    See you tomorrow folks!

    <script type="text/javascript"> addthis_url = 'http%3A%2F%2Fyehudakatz.com%2F2008%2F12%2F29%2Fanother-rails-2x3-update%2F'; addthis_title = 'Another+Rails+2.x%2F3+Update'; addthis_pub = ''; </script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12"></script>

    Episode 142: PayPal Notifications

    Posted 7 days back at Railscasts

    PayPal's IPN (Instant Payment Notification) service allows your app to get confirmation when an order is processed. In this episode I use IPN to mark a cart as purchased.

    IBM's BPM Zero Project: RESTful Worflow Management

    Posted 7 days back at InfoQ Personalized Feed for unregistered user - Register to upgrade!

    Christina Lau introduces IBM’s vision for BPM-as-a-Service: a light-weight BPMN based scripting engine for RESTful services. This vision is well in line with products currently on the market. The product is incubated at Project Zero and will eventually be deployed with WebSphere sMash. By Jean-Jacques Dubray

    Cell Supercomputer at Home?

    Posted 7 days back at InfoQ Personalized Feed for unregistered user - Register to upgrade!

    Sony's PS3 may be losing the market share war, but it has other uses. Does somebody want a supercomputer at home? That can be done by clustering PS3s running Linux. And the PS3s can still play Prince of Persia. By Charles Martin


    1 ... 6 7 8 9 10 ... 634