The RailsEnvy guys begin their own casts business---Envycast .They used the Spree to build the site, and allow customer checkout by Paypal. Some days ago, I use Spree in a site.I think it's better than substruct,because it's more simple and extendable. I also needed to integrate Paypal to it, but some thing make me confused. 1) There are many ways to integrate Paypal, and many articles introduced these ways.First you need to know which way would you like to use? I used Website Payments Standard , if you don't use this way, this article maybe not help you.
2) For test it, you need signup a develop account,then use this account to create a buyer account, and a seller account.
3) When you test your application, you must login the develop account.
More and more sites begin to allow user to crop their avatar. After some time google, I haven't found a easy way to implement this in rails use jquery and paperclip. So I think maybe this article is helpful.
First I install a jquery plugin imaareaselect , it works well.
I add it in the view,
<% content_for :head do %> <%= javascript_include_tag 'jquery-areaselect' %> <% javascript_tag do -%> $(window).load(function () { $('#duck').imgAreaSelect({ x1: 120, y1: 90, x2: 280, y2: 210, onSelectEnd: set_crop }); }); function set_crop(img, selection){ $('#crop_left').val(selection.x1) $('#crop_top').val(selection.y1) $('#crop_width').val(selection.width) $('#crop_height').val(selection.height) } <% end -%> <% end %>
then I write some codes in a moudle, this is the file:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Im not a 'getting things done' fan,but sometimes TODO list is necessary.You know, the fun of TODO list is writing it, not implement it. I found two useful tools on Mac, Tasks bundle of Textmate and evernote .
Tasks bundle is pretty simple, but useful. when you install the bundle, then it is there. The Tasks grammar and commands by default apply to files with the .todo, .todolist and .tasks extensions. There is a littel problem, the default hotkey use ⌅, which sometimes make you confused. so I just changed it in the bundle editor, this is the easist way to fix this.For more info,you need to read the original article.
Evernote is another amazing software,it allows you to easily capture information in any environment using whatever device or platform you find most convenient, and makes this information accessible and searchable at any time, from anywhere. when you find some useful pictures or web pages, Evernote is a great tool to store them and write some note for them.