From joe at kuesers.net Thu Mar 1 11:20:18 2007 From: joe at kuesers.net (Joe Kueser) Date: Thu, 1 Mar 2007 10:20:18 -0600 Subject: [Bookcarnival-code] REALLY Cool Web 2.0 GUI Stuff Message-ID: I think we need to use this stuff as an example of how our app should be. This is like running a real application! http://www.jackslocum.com/blog/2006/10/28/cross-browser-web-20- layouts-part-2-ajax-feed-viewer-20/ Some articles on the layouts used: http://www.jackslocum.com/blog/2006/10/19/cross-browser-web-20- layouts-with-yahoo-ui/ And one of the cooler layouts of the bunch: http://www.jackslocum.com/blog/examples/layout6.htm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070301/5f1b8f12/attachment.html From cgallemore at gmail.com Thu Mar 1 16:37:19 2007 From: cgallemore at gmail.com (Chad Gallemore) Date: Thu, 1 Mar 2007 15:37:19 -0600 Subject: [Bookcarnival-code] Take a look at this Message-ID: http://amazon-ec2.rubyforge.org/amazon-ec2/Amazon%20EC2%20Ruby%20Gem.html I'm have a little trouble understanding some stuff. I took a look at the plugin Josh sent out and didn't really understand how to use it. I found the above link, which talks about installing a ruby gem. One thing I don't understand about the AWS, specifically the EC2 AWS, is that free to use or what. It mentions the following: "This account must also be enabled for Amazon EC2. AWS will provide you with an 'AWS Access Key ID' and a 'Secret Access Key' which will allow you to authenticate any API calls you make and ensure correct billing to you for usage of the service." I thought the Web Services were free to use, is this not correct? I already signed up for an access key and have one. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070301/d3d3d48b/attachment-0001.html From jhoover6672000 at yahoo.com Thu Mar 1 21:57:20 2007 From: jhoover6672000 at yahoo.com (Josh Hoover) Date: Thu, 1 Mar 2007 18:57:20 -0800 (PST) Subject: [Bookcarnival-code] Rough Wireframes Added Message-ID: <20070302025720.84751.qmail@web37207.mail.mud.yahoo.com> Looking good Joe. The only thing I have to say is a UI design nitpick: I think the header of the page might look better if it didn't have the same treatment as the other "box elements" on the pages. I think this is because the header comes in contact with the main "container" around the entire content area. Josh P.S. You weren't at all inspired by the "brush metal" look were you? ;-) ----- Original Message ---- From: Joe Kueser To: bookcarnival-code at rubyforge.org Sent: Tuesday, February 27, 2007 9:06:12 PM Subject: [Bookcarnival-code] Rough Wireframes Added I added a few rough wireframes to show my initial ideas for a few pages. One is of the front page. This should be where a brief description of the site is shown, our "mission statement", an area to log in or register, and a link for guests to get a sneak peek into the site. Another is the sneak peek page. This shows a quick overview of what is currently available on the site. The names of the games should either link to descriptions, or have cool popouts with descriptions of the games. The third is the user's home page, where it shows what books a member needs to send out, what books they are still waiting on, and the status for these. It should also show their friends list and wishlist. This page will be more or less a dashboard of the member's activity. Maybe even an area to link to favorite games, etc. Let me know what you think! Joe _______________________________________________ Bookcarnival-code mailing list Bookcarnival-code at rubyforge.org http://rubyforge.org/mailman/listinfo/bookcarnival-code From joe at kuesers.net Thu Mar 1 22:09:48 2007 From: joe at kuesers.net (Joe Kueser) Date: Thu, 1 Mar 2007 21:09:48 -0600 Subject: [Bookcarnival-code] Rough Wireframes Added In-Reply-To: <20070302025720.84751.qmail@web37207.mail.mud.yahoo.com> References: <20070302025720.84751.qmail@web37207.mail.mud.yahoo.com> Message-ID: <7AEAF6BD-3E30-43E4-B1C0-56483DEB7912@kuesers.net> Dude...that is so NOT what the final deal will look like. Pretend it's a pencil drawing. Just sketching some basic ideas. It's going to look MUCH better than that :-) On Mar 1, 2007, at 8:57 PM, Josh Hoover wrote: > Looking good Joe. The only thing I have to say is a UI design > nitpick: I think the header of the page might look better if it > didn't have the same treatment as the other "box elements" on the > pages. I think this is because the header comes in contact with > the main "container" around the entire content area. > > Josh > > P.S. You weren't at all inspired by the "brush metal" look were > you? ;-) > > ----- Original Message ---- > From: Joe Kueser > To: bookcarnival-code at rubyforge.org > Sent: Tuesday, February 27, 2007 9:06:12 PM > Subject: [Bookcarnival-code] Rough Wireframes Added > > I added a few rough wireframes to show my initial ideas for a few > pages. > > One is of the front page. This should be where a brief description > of the site is shown, our "mission statement", an area to log in or > register, and a link for guests to get a sneak peek into the site. > > Another is the sneak peek page. This shows a quick overview of what > is currently available on the site. The names of the games should > either link to descriptions, or have cool popouts with descriptions > of the games. > > The third is the user's home page, where it shows what books a member > needs to send out, what books they are still waiting on, and the > status for these. It should also show their friends list and > wishlist. This page will be more or less a dashboard of the member's > activity. Maybe even an area to link to favorite games, etc. > > Let me know what you think! > > Joe > _______________________________________________ > Bookcarnival-code mailing list > Bookcarnival-code at rubyforge.org > http://rubyforge.org/mailman/listinfo/bookcarnival-code > > > > _______________________________________________ > Bookcarnival-code mailing list > Bookcarnival-code at rubyforge.org > http://rubyforge.org/mailman/listinfo/bookcarnival-code From jhoover6672000 at yahoo.com Thu Mar 1 22:18:09 2007 From: jhoover6672000 at yahoo.com (Josh Hoover) Date: Thu, 1 Mar 2007 19:18:09 -0800 (PST) Subject: [Bookcarnival-code] Rough Wireframes Added Message-ID: <3432.45606.qm@web37213.mail.mud.yahoo.com> Heh...Cool. It looked like a mix between wireframes and an early design. I don't care for (true) wireframes but won't bore everyone with the details here. :-) Let's just say I worked on a project where wireframes were used heavily up front (150+ pages worth) and the project ran over by 20% ($60,000) as a result of the many ambiguities wireframes seem to leave. ----- Original Message ---- From: Joe Kueser To: Josh Hoover Cc: bookcarnival-code at rubyforge.org Sent: Thursday, March 1, 2007 9:09:48 PM Subject: Re: [Bookcarnival-code] Rough Wireframes Added Dude...that is so NOT what the final deal will look like. Pretend it's a pencil drawing. Just sketching some basic ideas. It's going to look MUCH better than that :-) On Mar 1, 2007, at 8:57 PM, Josh Hoover wrote: > Looking good Joe. The only thing I have to say is a UI design > nitpick: I think the header of the page might look better if it > didn't have the same treatment as the other "box elements" on the > pages. I think this is because the header comes in contact with > the main "container" around the entire content area. > > Josh > > P.S. You weren't at all inspired by the "brush metal" look were > you? ;-) > > ----- Original Message ---- > From: Joe Kueser > To: bookcarnival-code at rubyforge.org > Sent: Tuesday, February 27, 2007 9:06:12 PM > Subject: [Bookcarnival-code] Rough Wireframes Added > > I added a few rough wireframes to show my initial ideas for a few > pages. > > One is of the front page. This should be where a brief description > of the site is shown, our "mission statement", an area to log in or > register, and a link for guests to get a sneak peek into the site. > > Another is the sneak peek page. This shows a quick overview of what > is currently available on the site. The names of the games should > either link to descriptions, or have cool popouts with descriptions > of the games. > > The third is the user's home page, where it shows what books a member > needs to send out, what books they are still waiting on, and the > status for these. It should also show their friends list and > wishlist. This page will be more or less a dashboard of the member's > activity. Maybe even an area to link to favorite games, etc. > > Let me know what you think! > > Joe > _______________________________________________ > Bookcarnival-code mailing list > Bookcarnival-code at rubyforge.org > http://rubyforge.org/mailman/listinfo/bookcarnival-code > > > > _______________________________________________ > Bookcarnival-code mailing list > Bookcarnival-code at rubyforge.org > http://rubyforge.org/mailman/listinfo/bookcarnival-code From joe at kuesers.net Thu Mar 1 23:15:15 2007 From: joe at kuesers.net (Joe Kueser) Date: Thu, 1 Mar 2007 22:15:15 -0600 Subject: [Bookcarnival-code] Take a look at this In-Reply-To: References: Message-ID: <6AE1B9CB-3E20-4ACA-8246-41F3270DA710@kuesers.net> I'm pretty sure it is indeed free. I think that's just poorly worded. They don't bill you, they credit you. Every time someone clicks on the link, for purchasing books, anyway. We can use your AWS Access Key for now. I'll create one for the site as soon as I buy the domain name (a new "bookcarnival.org") On Mar 1, 2007, at 3:37 PM, Chad Gallemore wrote: > http://amazon-ec2.rubyforge.org/amazon-ec2/Amazon%20EC2%20Ruby% > 20Gem.html > > I'm have a little trouble understanding some stuff. I took a look > at the plugin Josh sent out and didn't really understand how to use > it. I found the above link, which talks about installing a ruby > gem. One thing I don't understand about the AWS, specifically the > EC2 AWS, is that free to use or what. It mentions the following: > > "This account must also be enabled for Amazon EC2. AWS will > provide you with an 'AWS Access Key ID' and a 'Secret Access Key' > which will allow you to authenticate any API calls you make and > ensure correct billing to you for usage of the service." > > I thought the Web Services were free to use, is this not correct? > I already signed up for an access key and have one. > _______________________________________________ > Bookcarnival-code mailing list > Bookcarnival-code at rubyforge.org > http://rubyforge.org/mailman/listinfo/bookcarnival-code -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070301/315d3f32/attachment.html From joe at kuesers.net Fri Mar 2 09:44:07 2007 From: joe at kuesers.net (Joe Kueser) Date: Fri, 2 Mar 2007 08:44:07 -0600 Subject: [Bookcarnival-code] Fwd: ruby-ext References: <006b01c75cd8$13f604d0$9a191f05@marvin> Message-ID: <82D49485-00D8-4576-8789-25479402A426@kuesers.net> Here's a nice bit of integration with Rails and the Yahoo UI extensions. I'll tie it into our project this weekend and see what we can see. Joe Begin forwarded message: > From: "CRS" > Date: March 2, 2007 8:35:50 AM CST > To: > Subject: ruby-ext > > unpack > resistor-ext to /javascripts > resistor-ruby to /lib > > I made a build of teh js framework; you can use it by simply > including rext-all.js > > I included application-example.js in resistor-ext archive, where I > set up a Page object that uses BorderLayout to define the page's > layout. > your .rhtml MUST construct a new Page object. > eg: > > > you can define any number of Page objects for youself (eg: > RegistrationPage, LoginPage, InventoryPage). this class has lagged > behind most other stuff so it's a bit ugly. > > so, step 1. get the js included without errors. customize your > Page object. make it render. > > Chris ??? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070302/658f917a/attachment-0002.html -------------- next part -------------- A non-text attachment was scrubbed... Name: ruby-app-example.rar Type: application/octet-stream Size: 6062 bytes Desc: not available Url : http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070302/658f917a/attachment-0003.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: resistor-ext.rar Type: application/octet-stream Size: 46900 bytes Desc: not available Url : http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070302/658f917a/attachment-0004.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: resistor-ruby.rar Type: application/octet-stream Size: 16031 bytes Desc: not available Url : http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070302/658f917a/attachment-0005.obj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070302/658f917a/attachment-0003.html From joe at kuesers.net Tue Mar 6 22:16:28 2007 From: joe at kuesers.net (Joe Kueser) Date: Tue, 6 Mar 2007 21:16:28 -0600 Subject: [Bookcarnival-code] Josh: Question About Authentication Message-ID: <004D3A6D-DECD-4571-8E63-B7C9D41F6499@kuesers.net> In the index action of the account controller it has the following: def index redirect_to(:action => 'signup') unless logged_in? || User.count > 0 end I understand all but the "|| User.count > 0" What's that about? With that there, the system seems to think I'm always logged in. If I comment that part out: def index redirect_to(:action => 'signup') unless logged_in? # || User.count > 0 end It seems to work OK. Also, have you read yet how we'll go about tying this in to individual pages? Is there a global route or something we need to set up? Or do we have to put the redirect in every action? Thanks! Joe From joe at kuesers.net Tue Mar 6 22:46:13 2007 From: joe at kuesers.net (Joe Kueser) Date: Tue, 6 Mar 2007 21:46:13 -0600 Subject: [Bookcarnival-code] Josh: Question About Authentication In-Reply-To: <004D3A6D-DECD-4571-8E63-B7C9D41F6499@kuesers.net> References: <004D3A6D-DECD-4571-8E63-B7C9D41F6499@kuesers.net> Message-ID: Hey man, never mind! I figured it out. Simply put "before_filter :login_required" at the top of any controller we want to restrict. There's some other fancy footwork needed to restrict only certain actions, like: before_filter :login_required, :only => [ :edit, :update ] It's all right here: http://technoweenie.stikipad.com/plugins/show/User+Authentication On Mar 6, 2007, at 9:16 PM, Joe Kueser wrote: > In the index action of the account controller it has the following: > > def index > redirect_to(:action => 'signup') unless logged_in? || User.count >> 0 > end > > I understand all but the "|| User.count > 0" What's that about? > > With that there, the system seems to think I'm always logged in. If > I comment that part out: > > def index > redirect_to(:action => 'signup') unless logged_in? # || > User.count > 0 > end > > It seems to work OK. > > Also, have you read yet how we'll go about tying this in to > individual pages? Is there a global route or something we need to > set up? Or do we have to put the redirect in every action? > > Thanks! > > Joe > _______________________________________________ > Bookcarnival-code mailing list > Bookcarnival-code at rubyforge.org > http://rubyforge.org/mailman/listinfo/bookcarnival-code From cgallemore at gmail.com Tue Mar 6 23:30:12 2007 From: cgallemore at gmail.com (Chad Gallemore) Date: Tue, 6 Mar 2007 22:30:12 -0600 Subject: [Bookcarnival-code] TextMate for Windows Message-ID: http://www.e-texteditor.com/ I haven't looked to much into this yet, but this could be the window's answer to TextMate. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070306/cf4c02a8/attachment.html From Joe at kuesers.net Wed Mar 7 20:22:41 2007 From: Joe at kuesers.net (Joe Kueser) Date: Wed, 7 Mar 2007 19:22:41 -0600 Subject: [Bookcarnival-code] CSS Templates Message-ID: <6E0615C8-F71B-4CE7-BEA7-35D01566D24D@kuesers.net> Take a gander at these and see if there are any that you're diggin'. I figure we might as well stick with pure CSS templates. Makes it a lot easier to change the look and feel of the site. http://www.solucija.com/home/css-templates/ That looks like a pretty good collection...best of all, most are free. Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070307/e2a069b5/attachment.html From jhoover6672000 at yahoo.com Wed Mar 7 21:32:07 2007 From: jhoover6672000 at yahoo.com (Josh Hoover) Date: Wed, 7 Mar 2007 18:32:07 -0800 (PST) Subject: [Bookcarnival-code] Activate user functionality added Message-ID: <101490.64898.qm@web37208.mail.mud.yahoo.com> Quite a few files were updated, so my apologies if things start to break when you update. I ran all the tests and the ones that should pass did. There are tests for the books and status that are failing. Also, I think we may have a "bad model" in that we have both books and book as models. Thoughts? Thanks, Josh From joe at kuesers.net Wed Mar 7 23:21:56 2007 From: joe at kuesers.net (Joe Kueser) Date: Wed, 7 Mar 2007 22:21:56 -0600 Subject: [Bookcarnival-code] Activate user functionality added In-Reply-To: <101490.64898.qm@web37208.mail.mud.yahoo.com> References: <101490.64898.qm@web37208.mail.mud.yahoo.com> Message-ID: I went ahead and removed the books model. They were both empty, and if I remember right, the singular model name is correct...so it's gone! On Mar 7, 2007, at 8:32 PM, Josh Hoover wrote: > Quite a few files were updated, so my apologies if things start to > break when you update. I ran all the tests and the ones that > should pass did. There are tests for the books and status that are > failing. > > Also, I think we may have a "bad model" in that we have both books > and book as models. Thoughts? > > Thanks, > > Josh > > _______________________________________________ > Bookcarnival-code mailing list > Bookcarnival-code at rubyforge.org > http://rubyforge.org/mailman/listinfo/bookcarnival-code From joe at kuesers.net Thu Mar 8 06:21:05 2007 From: joe at kuesers.net (Joe Kueser) Date: Thu, 8 Mar 2007 05:21:05 -0600 Subject: [Bookcarnival-code] Likely Hosting Site Message-ID: <10ABD1A4-C7B6-4E2E-9B06-D68F83EDC0F4@kuesers.net> This is "the official" Ruby on Rails hosting site. Looks good! http://textdrive.com/hosting/shared The highlights (from my perspective anyway): * Use Apache and Lighttpd web servers side-by-side * Host Ruby and Ruby on Rails applications (including FCGI and hundreds of gems) * Manage your code base with version control (Subversion, SVK, Darcs, Monotone & Arch) * Share iCal files over WebDAV * Mount a WebDAV drive on your desktop (like iDisk) * Easily create free subdomains with wildcard DNS * Store your Basecamp file uploads over SFTP * Access your account via SFTP and SSH * Add domains, unlimited IMAP and POP mail boxes and mail aliases through a control panel * Check your email through Webmail * Host Mailman mailing lists complete with archives * Use MySQL (default), PostgreSQL, SQLite and Berkeley databases It's only $15 per month for the plan that would be "good enough". Anyone interested in ownership? If we split the cost, this will be real cheap. Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070308/4f25172c/attachment.html From joe at kuesers.net Thu Mar 8 21:23:45 2007 From: joe at kuesers.net (Joe Kueser) Date: Thu, 8 Mar 2007 20:23:45 -0600 Subject: [Bookcarnival-code] PayPal Account Message-ID: I guess this is where I should let you guys know this part :-) My PayPal is joe at kuesers.net $30 each will do it. If you want to pay less or more that's cool. We'll make sure everyone gets paid back with the first bit of cash the site makes. Thanks. Joe From joe at kuesers.net Fri Mar 9 09:10:38 2007 From: joe at kuesers.net (Joe Kueser) Date: Fri, 9 Mar 2007 08:10:38 -0600 Subject: [Bookcarnival-code] BookCarnival.org Domain Registered Message-ID: I've gone ahead and registered the bookcarnival.org domain, though have not yet signed up for hosting. It's currently registered under my name, but when we form the nonprofit, I will switch it over to being an asset of that organization. (In case you are wondering, the formation of the nonprofit is going to take quite a bit of research, so I will probably put that off for a couple of months.) Joe From jhoover6672000 at yahoo.com Fri Mar 9 17:42:34 2007 From: jhoover6672000 at yahoo.com (Josh Hoover) Date: Fri, 9 Mar 2007 14:42:34 -0800 (PST) Subject: [Bookcarnival-code] Virtual developers conference Message-ID: <702074.47254.qm@web37204.mail.mud.yahoo.com> Sounds interesting: http://www.ruby-forum.com/topic/100759#218024 Josh From joe at kuesers.net Fri Mar 9 18:21:33 2007 From: joe at kuesers.net (Joe Kueser) Date: Fri, 9 Mar 2007 17:21:33 -0600 Subject: [Bookcarnival-code] Virtual developers conference In-Reply-To: <702074.47254.qm@web37204.mail.mud.yahoo.com> References: <702074.47254.qm@web37204.mail.mud.yahoo.com> Message-ID: <591FB03B-29DE-419C-A88E-6450F3D6BD7B@kuesers.net> Thanks! I went ahead and signed up. Most of the sessions we'd want to see are at like 2:30 PST, so will be after hours for us. One is at like 7:30, so I may be taking an early lunch that day (it's like what... 10:30 here?) Joe On Mar 9, 2007, at 4:42 PM, Josh Hoover wrote: > Sounds interesting: > > http://www.ruby-forum.com/topic/100759#218024 > > Josh > > > _______________________________________________ > Bookcarnival-code mailing list > Bookcarnival-code at rubyforge.org > http://rubyforge.org/mailman/listinfo/bookcarnival-code From joe at kuesers.net Fri Mar 9 20:49:44 2007 From: joe at kuesers.net (Joe Kueser) Date: Fri, 9 Mar 2007 19:49:44 -0600 Subject: [Bookcarnival-code] Almost Have Enough! Message-ID: <17FF902C-8888-427C-800E-816811AF5CE9@kuesers.net> I've started putting together a spreadsheet to keep track of expenses for this puppy, so I can make sure everyone gets back what they put in. So far I registered the domain name for $16, Chad S. pitched in $25, and Josh pitched in $30. James and Chad G., please let me know 1) how much you would like to pitch in, 2) how you plan on paying, and 3) when. No hurry, I just need to know what to plan for. I will probably go ahead and sign up for the account this weekend just in case anyone wants to tinker with it. Joe From joe at kuesers.net Fri Mar 9 21:14:59 2007 From: joe at kuesers.net (Joe Kueser) Date: Fri, 9 Mar 2007 20:14:59 -0600 Subject: [Bookcarnival-code] Cool Tools that come with hosting package Message-ID: <6DECC359-6490-43CE-A842-CE7AC7C3A6F1@kuesers.net> I was poking around and found out that this will be coming with our hosting package. Best free (included with hosting) application I've seen. http://www.joyent.com/connector/collaboration-suite Watch the demo videos! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070309/751dc05c/attachment.html From cgallemore at gmail.com Fri Mar 9 22:23:36 2007 From: cgallemore at gmail.com (Chad Gallemore) Date: Fri, 9 Mar 2007 21:23:36 -0600 Subject: [Bookcarnival-code] Almost Have Enough! In-Reply-To: <17FF902C-8888-427C-800E-816811AF5CE9@kuesers.net> References: <17FF902C-8888-427C-800E-816811AF5CE9@kuesers.net> Message-ID: I'm in for 30, I'll give you cash on Monday. On 3/9/07, Joe Kueser wrote: > > I've started putting together a spreadsheet to keep track of expenses > for this puppy, so I can make sure everyone gets back what they put in. > > So far I registered the domain name for $16, Chad S. pitched in $25, > and Josh pitched in $30. > > James and Chad G., please let me know 1) how much you would like to > pitch in, 2) how you plan on paying, and 3) when. No hurry, I just > need to know what to plan for. > > I will probably go ahead and sign up for the account this weekend > just in case anyone wants to tinker with it. > > Joe > _______________________________________________ > Bookcarnival-code mailing list > Bookcarnival-code at rubyforge.org > http://rubyforge.org/mailman/listinfo/bookcarnival-code > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070309/eb2e1534/attachment.html From joe at kuesers.net Mon Mar 12 17:57:57 2007 From: joe at kuesers.net (Joe Kueser) Date: Mon, 12 Mar 2007 16:57:57 -0500 Subject: [Bookcarnival-code] Introducing Mike Vizdos Message-ID: Since he's to shy to introduce himself... If you've visited the bookcarnival RubyForge project you may have noticed a strange name on there. Mike Vizdos. Mike and I go way back, and he's one upstanding dude. He ventured to the dark side a number of years ago and is itching to code again. So, I figure we can let him all he wants. Mike also has a very extensive business background, so he can likely help us in that regard. He's also a Scrum and UML expert (among other things) is co-author of a book (with another one in the works, right Mike?) He has worked with a couple of people you may have heard of...Scott Ambler and Ken Schwaber. He knows pretty much everybody, so we need to make sure to take advantage of him. Welcome, Mike! Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070312/63deb00e/attachment.html From jhoover6672000 at yahoo.com Mon Mar 12 18:04:40 2007 From: jhoover6672000 at yahoo.com (Josh Hoover) Date: Mon, 12 Mar 2007 15:04:40 -0700 (PDT) Subject: [Bookcarnival-code] Introducing Mike Vizdos Message-ID: <193256.5363.qm@web37214.mail.mud.yahoo.com> And one day I'll learn how to use email (first message was only to Joe)... Welcome Mike! Clearly you have the patience of a Buddhist monk to have stayed friends with Joe this long. ;-) Welcome aboard! ----- Original Message ---- From: Joe Kueser To: bookcarnival-code at rubyforge.org Sent: Monday, March 12, 2007 4:57:57 PM Subject: [Bookcarnival-code] Introducing Mike Vizdos Since he's to shy to introduce himself... If you've visited the bookcarnival RubyForge project you may have noticed a strange name on there. Mike Vizdos. Mike and I go way back, and he's one upstanding dude. He ventured to the dark side a number of years ago and is itching to code again. So, I figure we can let him all he wants. Mike also has a very extensive business background, so he can likely help us in that regard. He's also a Scrum and UML expert (among other things) is co-author of a book (with another one in the works, right Mike?) He has worked with a couple of people you may have heard of...Scott Ambler and Ken Schwaber. He knows pretty much everybody, so we need to make sure to take advantage of him. Welcome, Mike! Joe _______________________________________________ Bookcarnival-code mailing list Bookcarnival-code at rubyforge.org http://rubyforge.org/mailman/listinfo/bookcarnival-code -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070312/0d7eb4f1/attachment.html From Joe at kuesers.net Mon Mar 12 23:38:56 2007 From: Joe at kuesers.net (Joe Kueser) Date: Mon, 12 Mar 2007 22:38:56 -0500 Subject: [Bookcarnival-code] First stab at site description doc Message-ID: <620BD7BC-E231-4E58-A3D3-A564A5392E3D@kuesers.net> I whipped together a quick document showing what I think the site should work like. It's pretty much what I would like to see within the next 6 weeks if possible, with the exception of the majority of the user home page. Please take a gander and let me know where I need to get into more detail, or make any changes that you see fit. Thanks! Joe -------------- next part -------------- A non-text attachment was scrubbed... Name: BookCarnivalExplained.doc Type: application/octet-stream Size: 120320 bytes Desc: not available Url : http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070312/de4d18dd/attachment-0001.obj From joe at kuesers.net Wed Mar 14 22:39:51 2007 From: joe at kuesers.net (Joe Kueser) Date: Wed, 14 Mar 2007 21:39:51 -0500 Subject: [Bookcarnival-code] Started First Game - DB CHANGE! Message-ID: First off...Josh, I can't log in anymore. I assume this is because of the activation you added. Can you let us know how to set that up locally? (I'll dig through the emails in a second to see if you already told us. ;-) I've started coding the first game, "Tilt-A-Whirl". I love Rails! I'm already probably half done with the game and I haven't written any code yet :-D In an effort to make the games more generic, and make it so multiple instances of the same game could be played simultaneously, I made some changes to the database. First I added a "game_instances" table. Each game instance has its own title, description, and user associated with it, and is, of course, associated with a game. So, I had to change the games table as well, to define that relationship. Finally, I had to change the book_transactions table, making it so each transaction was related to a game_instance instead of a game. So... Before you do anything else, run: rake db:migrate VERSION=0 and then rake db:migrate This should clean and rebuild your database. This isn't something we want to do in production, as it wipes out the database, but since nobody will have much data to worry about yet, why not? Real (somewhat) quickly, here's how the Tilt-A-Whril game will work. I suspect most if not all games will be similar. When the user navigates to the TiltAWhirl page, they will be given the option to ether participate in a currently running game, or create their own instance. If they create their own instance, they will provide a name for the instance, and a description. For example, the name might be "Computer Languages" and the description might be "Any books about learning to program." Behind the scenes, we'll need to know 1) the user ID, 2) the game ID, and 3) the current time. On this same page, the user will also put the first book up for grabs for this game. Ultimately, we'd allow them to enter the ISBN or BCID numbers, but for now, entering the title, author, category, language, and number of pages. This would be a GREAT place for AJAX. If they enter the ISBN or BCID, we can fill out the rest for them. On all other fields, we can put an autocomplete textbox, so if they type "Step" they will get a list containing "Stephen King". Here they will also be allowed to put a URL for a book cover picture, or upload a picture. Now that the game instance is created, someone can come along and play in this game. This is where specific rules for this game come in to play. When a person selects the book to grab, the rules kick in, in the case of Tilt-A-Whirl, the rule would be that in order to take the book, the user must offer another book, and pay 5 tickets. So the new user specifies the info for the book they want to offer, and another book_transaction is created. This will go on until no books have been traded for 3 days, with a new book_transaction being created each step along the way. The book_transaction also has a transaction_status associated with it, which eventually the users will be able to update when a book is mailed, received, etc. Off to a good start. I should have a basic version of the game done this week. Joe From jhoover6672000 at yahoo.com Thu Mar 15 09:28:00 2007 From: jhoover6672000 at yahoo.com (Josh Hoover) Date: Thu, 15 Mar 2007 06:28:00 -0700 (PDT) Subject: [Bookcarnival-code] Started First Game - DB CHANGE! Message-ID: <179939.22220.qm@web37204.mail.mud.yahoo.com> Magic. That is the answer. ;-) The code goes into your environment/development.rb file and will look something like this: ActionMailer::Base.smtp_settings { :address => smtp.server.com } All the options for the SMTP server can be found at: http://api.rubyonrails.com/classes/ActionMailer/Base.html Do a search for "smtp_settings" on that page and you should be in good shape. If that doesn't work for you for some reason, then you can just manually blank out the activation_code field for your user in the users table and should be good to go. Thanks! Josh ----- Original Message ---- From: Joe Kueser To: bookcarnival-code at rubyforge.org Sent: Wednesday, March 14, 2007 9:39:51 PM Subject: [Bookcarnival-code] Started First Game - DB CHANGE! First off...Josh, I can't log in anymore. I assume this is because of the activation you added. Can you let us know how to set that up locally? (I'll dig through the emails in a second to see if you already told us. ;-) I've started coding the first game, "Tilt-A-Whirl". I love Rails! I'm already probably half done with the game and I haven't written any code yet :-D In an effort to make the games more generic, and make it so multiple instances of the same game could be played simultaneously, I made some changes to the database. First I added a "game_instances" table. Each game instance has its own title, description, and user associated with it, and is, of course, associated with a game. So, I had to change the games table as well, to define that relationship. Finally, I had to change the book_transactions table, making it so each transaction was related to a game_instance instead of a game. So... Before you do anything else, run: rake db:migrate VERSION=0 and then rake db:migrate This should clean and rebuild your database. This isn't something we want to do in production, as it wipes out the database, but since nobody will have much data to worry about yet, why not? Real (somewhat) quickly, here's how the Tilt-A-Whril game will work. I suspect most if not all games will be similar. When the user navigates to the TiltAWhirl page, they will be given the option to ether participate in a currently running game, or create their own instance. If they create their own instance, they will provide a name for the instance, and a description. For example, the name might be "Computer Languages" and the description might be "Any books about learning to program." Behind the scenes, we'll need to know 1) the user ID, 2) the game ID, and 3) the current time. On this same page, the user will also put the first book up for grabs for this game. Ultimately, we'd allow them to enter the ISBN or BCID numbers, but for now, entering the title, author, category, language, and number of pages. This would be a GREAT place for AJAX. If they enter the ISBN or BCID, we can fill out the rest for them. On all other fields, we can put an autocomplete textbox, so if they type "Step" they will get a list containing "Stephen King". Here they will also be allowed to put a URL for a book cover picture, or upload a picture. Now that the game instance is created, someone can come along and play in this game. This is where specific rules for this game come in to play. When a person selects the book to grab, the rules kick in, in the case of Tilt-A-Whirl, the rule would be that in order to take the book, the user must offer another book, and pay 5 tickets. So the new user specifies the info for the book they want to offer, and another book_transaction is created. This will go on until no books have been traded for 3 days, with a new book_transaction being created each step along the way. The book_transaction also has a transaction_status associated with it, which eventually the users will be able to update when a book is mailed, received, etc. Off to a good start. I should have a basic version of the game done this week. Joe _______________________________________________ Bookcarnival-code mailing list Bookcarnival-code at rubyforge.org http://rubyforge.org/mailman/listinfo/bookcarnival-code From cgallemore at gmail.com Thu Mar 15 23:46:33 2007 From: cgallemore at gmail.com (Chad Gallemore) Date: Thu, 15 Mar 2007 22:46:33 -0500 Subject: [Bookcarnival-code] Amazon Search Message-ID: Well, I finally got a little something accomplished. I have committed a amazon_controller, and an amazon view. I also updated the book.rb to include the search_books method. Right now it doesn't do a whole lot. What it does do is prints out the book search to the server console. I haven't figured out yet how to tie my results into the view yet. I'm guessing you will have to have the Ruby/Amazon library http://www.caliban.org/ruby/ruby-amazon.shtml Once you get this you can start your server and point to the amazon view and you should see some results in your app server console. Right now it is hard coded to search for 'ruby cookbook', but this returns several books as well as their new and used prices. -Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070315/7bd0d72d/attachment.html From joe at kuesers.net Fri Mar 16 02:44:14 2007 From: joe at kuesers.net (Joe Kueser) Date: Fri, 16 Mar 2007 01:44:14 -0500 Subject: [Bookcarnival-code] Amazon Search In-Reply-To: References: Message-ID: <3D642AE3-6358-42B2-A42D-3B4972ABD27A@kuesers.net> Sweet! You's guys want to have a lunchtime meeting today? Chad can show us what he did, and we can figure out how to tie that to the view. I can also explain what I've done. Thanks, dude! Joe On Mar 15, 2007, at 10:46 PM, Chad Gallemore wrote: > Well, I finally got a little something accomplished. I have > committed a amazon_controller, and an amazon view. I also updated > the book.rb to include the search_books method. Right now it > doesn't do a whole lot. What it does do is prints out the book > search to the server console. I haven't figured out yet how to tie > my results into the view yet. I'm guessing you will have to have > the Ruby/Amazon library > > http://www.caliban.org/ruby/ruby-amazon.shtml > > Once you get this you can start your server and point to the amazon > view and you should see some results in your app server console. > Right now it is hard coded to search for 'ruby cookbook', but this > returns several books as well as their new and used prices. > > -Chad > _______________________________________________ > Bookcarnival-code mailing list > Bookcarnival-code at rubyforge.org > http://rubyforge.org/mailman/listinfo/bookcarnival-code -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070316/1574eaf6/attachment.html From jhoover6672000 at yahoo.com Fri Mar 16 23:16:17 2007 From: jhoover6672000 at yahoo.com (Josh Hoover) Date: Fri, 16 Mar 2007 20:16:17 -0700 (PDT) Subject: [Bookcarnival-code] Amazon Search Message-ID: <58223.39215.qm@web37212.mail.mud.yahoo.com> Great work Chad! Did you guys meet today? If not, does Joe have time to meet next week before he has to leave? Thanks, Josh ----- Original Message ---- From: Joe Kueser To: Chad Gallemore Cc: bookcarnival-code at rubyforge.org Sent: Friday, March 16, 2007 1:44:14 AM Subject: Re: [Bookcarnival-code] Amazon Search Sweet! You's guys want to have a lunchtime meeting today? Chad can show us what he did, and we can figure out how to tie that to the view. I can also explain what I've done. Thanks, dude! Joe On Mar 15, 2007, at 10:46 PM, Chad Gallemore wrote: Well, I finally got a little something accomplished. I have committed a amazon_controller, and an amazon view. I also updated the book.rb to include the search_books method. Right now it doesn't do a whole lot. What it does do is prints out the book search to the server console. I haven't figured out yet how to tie my results into the view yet. I'm guessing you will have to have the Ruby/Amazon library http://www.caliban.org/ruby/ruby-amazon.shtml Once you get this you can start your server and point to the amazon view and you should see some results in your app server console. Right now it is hard coded to search for 'ruby cookbook', but this returns several books as well as their new and used prices. -Chad _______________________________________________ Bookcarnival-code mailing list Bookcarnival-code at rubyforge.org http://rubyforge.org/mailman/listinfo/bookcarnival-code _______________________________________________ Bookcarnival-code mailing list Bookcarnival-code at rubyforge.org http://rubyforge.org/mailman/listinfo/bookcarnival-code -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070316/c6c84f01/attachment.html From joe at kuesers.net Sat Mar 17 06:52:51 2007 From: joe at kuesers.net (Joe Kueser) Date: Sat, 17 Mar 2007 05:52:51 -0500 Subject: [Bookcarnival-code] Amazon Search In-Reply-To: <58223.39215.qm@web37212.mail.mud.yahoo.com> References: <58223.39215.qm@web37212.mail.mud.yahoo.com> Message-ID: No, we didn't meet. We were thinking maybe we could do it Monday? I'm assuming James won't be able to make it, but maybe Chad S. can. Who knows, maybe the mysterious Mike Vizdos can even dial in(?) Joe On Mar 16, 2007, at 10:16 PM, Josh Hoover wrote: > Great work Chad! > > Did you guys meet today? If not, does Joe have time to meet next > week before he has to leave? > > Thanks, > > Josh > > ----- Original Message ---- > From: Joe Kueser > To: Chad Gallemore > Cc: bookcarnival-code at rubyforge.org > Sent: Friday, March 16, 2007 1:44:14 AM > Subject: Re: [Bookcarnival-code] Amazon Search > > Sweet! > > You's guys want to have a lunchtime meeting today? Chad can show > us what he did, and we can figure out how to tie that to the view. > I can also explain what I've done. > > Thanks, dude! > > Joe > > > On Mar 15, 2007, at 10:46 PM, Chad Gallemore wrote: > >> Well, I finally got a little something accomplished. I have >> committed a amazon_controller, and an amazon view. I also updated >> the book.rb to include the search_books method. Right now it >> doesn't do a whole lot. What it does do is prints out the book >> search to the server console. I haven't figured out yet how to >> tie my results into the view yet. I'm guessing you will have to >> have the Ruby/Amazon library >> >> http://www.caliban.org/ruby/ruby-amazon.shtml >> >> Once you get this you can start your server and point to the >> amazon view and you should see some results in your app server >> console. Right now it is hard coded to search for 'ruby >> cookbook', but this returns several books as well as their new and >> used prices. >> >> -Chad >> _______________________________________________ >> Bookcarnival-code mailing list >> Bookcarnival-code at rubyforge.org >> http://rubyforge.org/mailman/listinfo/bookcarnival-code > > _______________________________________________ > Bookcarnival-code mailing list > Bookcarnival-code at rubyforge.org > http://rubyforge.org/mailman/listinfo/bookcarnival-code > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bookcarnival-code/attachments/20070317/d2444e20/attachment-0001.html From jhoover6672000 at yahoo.com Mon Mar 19 22:48:07 2007 From: jhoover6672000 at yahoo.com (Josh Hoover) Date: Mon, 19 Mar 2007 19:48:07 -0700 (PDT) Subject: [Bookcarnival-code] Amazon product search Message-ID: <951947.98997.qm@web37215.mail.mud.yahoo.com> Hi Chad, I figured out the issue we were having with the Amazon stuff. (Also, I believe the ASIN is the same as the ISBN for books. At least that's what I read and tested out (once).) Here is what I have to make it work: models/book.rb ----------------------------------------- require 'amazon/search' include Amazon::Search class Book < ActiveRecord::Base DEV_TOKEN = '0N9FC5XAAAMQ27248B82' def self.search_amazon(query) request = Request.new(DEV_TOKEN) response = request.keyword_search(query) response.products end end controllers/books.rb ----------------------------------------- def index @books = Book.search_amazon('Ruby Programming') end views/books/index.rhtml ----------------------------------------- <% for book in @books %>

<%= book.product_name %>

<% end %> From jhoover6672000 at yahoo.com Wed Mar 21 00:23:18 2007 From: jhoover6672000 at yahoo.com (Josh Hoover) Date: Tue, 20 Mar 2007 21:23:18 -0700 (PDT) Subject: [Bookcarnival-code] Forgot password functionality added Message-ID: <20070321042318.97949.qmail@web37211.mail.mud.yahoo.com> Tonight I added the forgot password functionality. Please let me know if you guys have any problems with any of the stuff I added/changed. Thanks! Josh