Re: Ruby on Rails (was Looping Search)

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 66842
interpreted = N
texte = If you go into System Preferences > Network > Network Port Configurations, you can duplicate "Built-In Ethernet", call it something else and give it a different static address. Then, set the Apache and Lighttpd configurations to bind to separate addresses. I still have to fiddle with Apache, because I think I bound it to port 80, which seems to mess up port 80 traffic to lighttpd. I think if you just bind to different addresses and leave the port stuff set to default, Apache would respond to one address and lighttpd to the other. Right now my hosts file points 127.0.0.1 and "localhost" to the apache server, so that's where they go. I have WebDNA running on the Apache side, so I like having a different server for RoR. Prevents cross-parsing without having to mess with [raw] and other stuff. Plus, I don't know enough about RoR to keep it from interpreting WebDNA syntax. On Apr 10, 2006, at 3:35 PM, devaulw@onebox.com wrote: > If you are on a Mac, you might try Locomotive which installs the > things you need and provides a GUI interface to get things up an > running. I used it to try things out and then installed everything > properly on OS X. Too bad the default config for OS X is not right > for Rails. It only takes a few minutes to get it right, but 5 > minutes x 100,000 Rails users and you're wasting serious time. > > I'm not sure how localhost is handled when apache binds the IP > address for the machine. Can you let us know if it worked? > > Thanks, > Bill > > > -----Original Message----- > From: Pat McCormick > Sent: Mon, 10 Apr 2006 13:14:57 -0500 > To: "WebDNA Talk" > Subject: Re: Ruby on Rails (was Looping Search) > > Thanks, Bill. I also have Apache listening on address x.x.x.100 > > I have address x.x.x.101 available tor lighttpd. How do I start > lighttpd listening on that address? > > Thanks, > Pat > > > > On Apr 10, 2006, at 12:13 PM, devaulw@onebox.com wrote: > >> Run the following at the command line ignoring the comments after >> the # sign: >> >> rails app #this will make the application framework in a folder >> called app/ >> >> cd app #get into that directory >> >> script/server # this will start the default server lighttpd if >> installed or webrick >> >> Point your browser to localhost:3000 to see the default page for >> the server. >> >> Bill >> >> >> -----Original Message----- >> From: Pat McCormick >> Sent: Mon, 10 Apr 2006 12:02:57 -0500 >> To: "WebDNA Talk" >> Subject: Re: Ruby on Rails (was Looping Search) >> >> Dumb question: >> >> I can get all the software downloaded and installed, but nowhere in >> the tutorials and guides does it explain how to configure and start/ >> stop Lighttpd. >> >> Anyone have any hints? >> >> >> On Apr 7, 2006, at 10:48 PM, devaulw@onebox.com wrote: >> >>> No, Rails does not make programmers obsolete. >>> >>> From what I have seen (I've been playing with it in my increasingly >>> rare spare time), it increases the programmer's ability to change >>> the program without having to re-design everything. One can do more >>> with less planning. >>> >>> Here's an oversimplification: >>> Think of existing systems as being built on a very well defined set >>> of plans. Rails allows you to get to a basic application quickly >>> and then make changes to reach the final product without worrying >>> about having detailed plans at the outset, i.e. it is very flexible. >>> >>> Flexibility assumes you stick to the principle of having code not >>> repeated and keep data (model), business logic (controller) and >>> interface (view) as separate. You then change the one piece of >>> code that does the function and voila, the application is updated. >>> Rails does not make it impossible to not deviate from this, but it >>> seems to make it easier to stick to clean code (thanks in part to >>> Ruby). >>> >>> Rails also has lots of testing features built-in. I think Java >>> programmers might appreciate this more than most, but I'm starting >>> to see the value in some canned tests I can repeatedly use. >>> >>> Think of Rails as a platform that could raise the starting point >>> for a web project. Here's other examples, you can serve html, xml, >>> rss depending on what the browser can handle/has requested and this >>> requires little more than probing the accepts-header. You can >>> build validation into the model of the database. AJAX components >>> can be easily rolled in (updating forms and other nice effects). >>> Web applications start to look and feel more like desktop apps. >>> Think gmail, google maps and things like that. >>> >>> Bill >>> >>> -----Original Message----- >>> From: Gary Krockover >>> Sent: Fri, 07 Apr 2006 08:42:03 -0500 >>> To: "WebDNA Talk" >>> Subject: Re: Ruby on Rails (was Looping Search) >>> >>> I'm curious - is something like Ruby on Rails making our jobs >>> obsolete? The days of coding pages upon pages of spaghetti code >>> seem to be going away to the plug-n-play modular designs that >>> something like RoR offers. >>> >>> On a related note, I'm still digging into Python. There are so >>> many modules and classes that can be added it's making my head >>> spin; and I mean that in a good way - it seems limitless to me at >>> this point. And to a previous message, yes, Python was used for >>> the Googlebot I later found out. It was also used for some NASA >>> project and several other notable projects. >>> >>> G. >>> >>> At 08:18 AM 4/7/2006, you wrote: >>>> Sounds interesting, I too will check this out. A while back I had >>>> some colleagues rant/rave about RoR. >>> >>> >>> ------------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to >> digest@talk.smithmicro.com> >>> Web Archive of this list is at: http://webdna.smithmicro.com/ >>> >>> >>> >>> ------------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to >> digest@talk.smithmicro.com> >>> Web Archive of this list is at: http://webdna.smithmicro.com/ >>> >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to > digest@talk.smithmicro.com> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to > digest@talk.smithmicro.com> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Ruby on Rails (was Looping Search) ( "Bess Ho" 2006)
  2. Re: Ruby on Rails (was Looping Search) ( Pat McCormick 2006)
  3. Re: Ruby on Rails (was Looping Search) ( Gary Krockover 2006)
  4. Re: Ruby on Rails (was Looping Search) ( devaulw@onebox.com 2006)
  5. Re: Ruby on Rails (was Looping Search) ( chas conquest 2006)
  6. Re: Ruby on Rails (was Looping Search) ( Pat McCormick 2006)
  7. Re: Ruby on Rails (was Looping Search) ( chas conquest 2006)
  8. Re: Ruby on Rails (was Looping Search) ( chas conquest 2006)
  9. Re: Ruby on Rails (was Looping Search) ( Pat McCormick 2006)
  10. Re: Ruby on Rails (was Looping Search) ( devaulw@onebox.com 2006)
  11. Re: Ruby on Rails (was Looping Search) ( Pat McCormick 2006)
  12. Re: Ruby on Rails (was Looping Search) ( devaulw@onebox.com 2006)
  13. Re: Ruby on Rails (was Looping Search) ( Brian Fries 2006)
  14. Re: Ruby on Rails (was Looping Search) ( Adam O'Connor 2006)
  15. Re: Ruby on Rails (was Looping Search) ( Gary Krockover 2006)
  16. Re: Ruby on Rails (was Looping Search) ( Adam O'Connor 2006)
  17. Re: Ruby on Rails (was Looping Search) ( chas conquest 2006)
  18. Re: Ruby on Rails (was Looping Search) ( nitai@computeroil.com 2006)
  19. Re: Ruby on Rails (was Looping Search) ( "Bess Ho" 2006)
  20. Re: Ruby on Rails (was Looping Search) ( nitai@computeroil.com 2006)
  21. Re: Ruby on Rails (was Looping Search) ( "Bess Ho" 2006)
  22. Re: Ruby on Rails (was Looping Search) ( j.list@blueboxdev.com 2006)
  23. Re: Ruby on Rails (was Looping Search) ( devaulw@onebox.com 2006)
  24. Re: Ruby on Rails (was Looping Search) ( Clint Davis 2006)
If you go into System Preferences > Network > Network Port Configurations, you can duplicate "Built-In Ethernet", call it something else and give it a different static address. Then, set the Apache and Lighttpd configurations to bind to separate addresses. I still have to fiddle with Apache, because I think I bound it to port 80, which seems to mess up port 80 traffic to lighttpd. I think if you just bind to different addresses and leave the port stuff set to default, Apache would respond to one address and lighttpd to the other. Right now my hosts file points 127.0.0.1 and "localhost" to the apache server, so that's where they go. I have WebDNA running on the Apache side, so I like having a different server for RoR. Prevents cross-parsing without having to mess with [raw] and other stuff. Plus, I don't know enough about RoR to keep it from interpreting WebDNA syntax. On Apr 10, 2006, at 3:35 PM, devaulw@onebox.com wrote: > If you are on a Mac, you might try Locomotive which installs the > things you need and provides a GUI interface to get things up an > running. I used it to try things out and then installed everything > properly on OS X. Too bad the default config for OS X is not right > for Rails. It only takes a few minutes to get it right, but 5 > minutes x 100,000 Rails users and you're wasting serious time. > > I'm not sure how localhost is handled when apache binds the IP > address for the machine. Can you let us know if it worked? > > Thanks, > Bill > > > -----Original Message----- > From: Pat McCormick > Sent: Mon, 10 Apr 2006 13:14:57 -0500 > To: "WebDNA Talk" > Subject: Re: Ruby on Rails (was Looping Search) > > Thanks, Bill. I also have Apache listening on address x.x.x.100 > > I have address x.x.x.101 available tor lighttpd. How do I start > lighttpd listening on that address? > > Thanks, > Pat > > > > On Apr 10, 2006, at 12:13 PM, devaulw@onebox.com wrote: > >> Run the following at the command line ignoring the comments after >> the # sign: >> >> rails app #this will make the application framework in a folder >> called app/ >> >> cd app #get into that directory >> >> script/server # this will start the default server lighttpd if >> installed or webrick >> >> Point your browser to localhost:3000 to see the default page for >> the server. >> >> Bill >> >> >> -----Original Message----- >> From: Pat McCormick >> Sent: Mon, 10 Apr 2006 12:02:57 -0500 >> To: "WebDNA Talk" >> Subject: Re: Ruby on Rails (was Looping Search) >> >> Dumb question: >> >> I can get all the software downloaded and installed, but nowhere in >> the tutorials and guides does it explain how to configure and start/ >> stop Lighttpd. >> >> Anyone have any hints? >> >> >> On Apr 7, 2006, at 10:48 PM, devaulw@onebox.com wrote: >> >>> No, Rails does not make programmers obsolete. >>> >>> From what I have seen (I've been playing with it in my increasingly >>> rare spare time), it increases the programmer's ability to change >>> the program without having to re-design everything. One can do more >>> with less planning. >>> >>> Here's an oversimplification: >>> Think of existing systems as being built on a very well defined set >>> of plans. Rails allows you to get to a basic application quickly >>> and then make changes to reach the final product without worrying >>> about having detailed plans at the outset, i.e. it is very flexible. >>> >>> Flexibility assumes you stick to the principle of having code not >>> repeated and keep data (model), business logic (controller) and >>> interface (view) as separate. You then change the one piece of >>> code that does the function and voila, the application is updated. >>> Rails does not make it impossible to not deviate from this, but it >>> seems to make it easier to stick to clean code (thanks in part to >>> Ruby). >>> >>> Rails also has lots of testing features built-in. I think Java >>> programmers might appreciate this more than most, but I'm starting >>> to see the value in some canned tests I can repeatedly use. >>> >>> Think of Rails as a platform that could raise the starting point >>> for a web project. Here's other examples, you can serve html, xml, >>> rss depending on what the browser can handle/has requested and this >>> requires little more than probing the accepts-header. You can >>> build validation into the model of the database. AJAX components >>> can be easily rolled in (updating forms and other nice effects). >>> Web applications start to look and feel more like desktop apps. >>> Think gmail, google maps and things like that. >>> >>> Bill >>> >>> -----Original Message----- >>> From: Gary Krockover >>> Sent: Fri, 07 Apr 2006 08:42:03 -0500 >>> To: "WebDNA Talk" >>> Subject: Re: Ruby on Rails (was Looping Search) >>> >>> I'm curious - is something like Ruby on Rails making our jobs >>> obsolete? The days of coding pages upon pages of Spaghetti code >>> seem to be going away to the plug-n-play modular designs that >>> something like RoR offers. >>> >>> On a related note, I'm still digging into Python. There are so >>> many modules and classes that can be added it's making my head >>> spin; and I mean that in a good way - it seems limitless to me at >>> this point. And to a previous message, yes, Python was used for >>> the Googlebot I later found out. It was also used for some NASA >>> project and several other notable projects. >>> >>> G. >>> >>> At 08:18 AM 4/7/2006, you wrote: >>>> Sounds interesting, I too will check this out. A while back I had >>>> some colleagues rant/rave about RoR. >>> >>> >>> ------------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to >> digest@talk.smithmicro.com> >>> Web Archive of this list is at: http://webdna.smithmicro.com/ >>> >>> >>> >>> ------------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to >> digest@talk.smithmicro.com> >>> Web Archive of this list is at: http://webdna.smithmicro.com/ >>> >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to > digest@talk.smithmicro.com> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to > digest@talk.smithmicro.com> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Pat McCormick

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Re:Off Topic: Frames Killer? (1998) Re:multiple digests, please stop (1997) Adding up line items. (2000) Multiple catalog databases and showcart (1997) New public beta available (1997) I forgot (1998) & in Lookups (1997) WebCat editing, SiteGuard & SiteEdit (1997) Date range Problem (2006) WebCatalog and Macromedia Flash (1998) Feature request (1998) Support ?? (1997) code to phantom spacing (2001) Sharing with you my Online help system (2006) Search results output problems.. (2000) PCS Emailer's role ? (1997) HomePage Caution (1997) this works sometimes and sometimes not (1997) WebCat2: Found Items syntax, etc. (1997) Date Formats (1997)