luis is a co-founder and social software architect at SyndeoLabs, and a director at Exist Global. he likes building small web toys a whole lot. More ...

quick links to the good stuff

  • 25 First Dates 25 May 2009
  • True Crime: Confessions of a Criminal Mastermind 17 Feb 2009
  • Finding Your Soul Mate: A Statistical Analysis 27 Jan 2009
  • Sex and Schrodinger's Cat 07 January 2009
  • An Extended Rant on Heroes 26 September 2008
  • Zero Barrier 05 May 2008
  • Sweatshop Blogging Economics 08 April 2008
  • The Doomsday Singularity 25 February 2008
  • Piracy and Its Impact on Philippine Music 21 January 2008
  • The Manila Pen-etration by the Hotelier Antonio Trillanes 29 November 2007
  • Journey of a Thousand Heroes 17 December 2006
  • Shake, Rattle & LOL 30 December 2005

    elsewhere online

    • Last.FM
    • Del.icio.us
    • Flickr
    • Plurk
    • Multiply
    • Stumbleupon

    guttervomit

    • 19

      Designer’s Guide to Rails on Windows (Part Three)

      10 Feb 2007

      In the first and second part of this series, we talked about some foundational concepts regarding Rails development, and walked through the process of installing Ruby on your Windows machine. Now we’re going to start getting into the meat of things and install the Rails framework itself.

      Rails is pretty much a one-line install, all you need to do is type this into the command prompt:

      gem install rails –include-dependencies

      You’ll be greeted by a “gem update” message, followed by a sizeable list of other things that are being installed alongside Rails. Depending on your internet connection, this process may take some time, so let’s use this opportunity to familiarize ourselves a bit more with the Windows Command Prompt, which you will be using a lot over the course of this article.


      =============

      The Command Prompt is a fairly janky piece of software from circa 1995, and although you will grow to hate it passionately over the course of your Rails career, you’ll have to accept the fact that it is simply a necessary evil. If you’re not overly familiar with the relevant syntax and concepts, you may want to check out this short tutorial on the subject before going on to the rest of this article.

      One time-saving technique I can share with you on the subject (which for some reason isn’t covered in the tutorial I linked up above) is the use of the Tab key. It’s usually pretty hard to remember all the names of the various folders and sub-folders that you’ll be traversing and the quickest way to travel is to use the auto-completion feature via Tab. For example, let’s say you’re currently in your main user folder, like so:

      C:\Documents & Settings\luis\>

      You want to switch to the sub-folder “websites,” so you type:

      C:\Documents & Settings\luis\> cd w

      If there are no other folders in \luis\ that start with the letter “w” you can just hit the Tab key and the rest of the folder name will be filled in for you.

      C:\Documents & Settings\luis\> cd websites

      If there are other folders that start with a given letter, you can press Tab multiple times to cycle through all of them, and just press Enter once you’ve hit the one you want.

      =============

      Rails installation via RubyGems

      Ok, so your Rails gem should be properly installed by now, and we’ll confirm that by typing “rails -v” into our command prompt. It should return something like this:

      Rails 1.2.2

      Congratulations, you’ve got Ruby on Rails!

      Now, I know you must be getting pretty excited, but we’re going to have to take one brief sidetrip before we can start hacking together our first Rails application. We’ve got our interpreter and our framework, but so far we don’t have a way to store any data yet, which is a problem that we’ll remedy now.

      MySQL 5.0 Installation

      MySQL is a pretty easy app to install, fortunately. Just make sure all the Client Programs are available so you can easily administrate your databases through the command line. As the very last step of installation process, you will be asked if you want to “Configure the MySQL Service Now,” which you should. When the dialog box appears, choose Detailed Configuration, then select Developer Machine. On the database usage dialog, choose Multifunctional Database. The next dialog will ask you if you want to change the path for InnoDB databases, which you don’t. Just click NEXT on that one. Click NEXT on the “concurrent connections” step as well. On the Networking Options dialog, make sure that both Enable TCP/IP Networking and Enable Strict Mode are both checked. Click NEXT on the proceeding Language dialog.

      In the Windows Options dialog, check all three boxes: Install As Windows Service, Launch the MySQL Server automatically, and Include Bin Directory in Windows PATH. In the Security Options slide, you will be asked for a new root password. I recommend unchecking Modify Security Settings and just leaving your database unprotected. The reason for this is that this is just a developer machine and it’s an added hassle if you have to type in your password every time you want to manage your databases (which is going to be pretty often). Finally press EXECUTE to commit all your changes.

      Now, to test if that all worked, we’re going to try to access MySQL from the command prompt. To do so, we type:

      mysql -u root

      This command calls the mysql executable, and the -u switch tells it that you are logging on as the root user. Because you did not specify a password for the root user in the configuration steps, mysql should load up immediately.

      If you instead got an error message that MySQL was “not recognized as an internal or external command” then you’ve hit the same problem we had with Ruby in the previous article. Again, all you have to do is go to My Computer -> Properties -> Advanced -> Environment Variables, then edit the Path value. You will need to add the path to MySQL’s bin folder into that list (by default, it should be C:\Program Files\MySQL\MySQL Server 5.0\bin).

      To leave the mysql console, type exit.

      What you want to do know is install the Ruby gem for MySQL, which we do by typing:

      gem install mysql

      You will be confronted with a list of 5 or 6 options, which you will select by typing the number corresponding to your choice. At the time of this writing, the correct choice was #1 (mysql 2.7.3 mswin32), but generally what you want to do is choose the newest version for your specific operating system. Type “1″ and press Enter.

      Ok, so now we’ve got Ruby, Rails, MySQL and the MySQL RubyGem all successfully installed. What’s left on our list? Well, as it happens, we’ve only got two more steps left, i.e., installing RMagick (our image-handling plugin) and subversion (our version-control system).

      Quick links to other articles in this series:

      PART ONE: Introduction to Ruby, Rails, MySQL and Subversion.

      PART TWO: Ruby Installation and Language Primer.

      PART THREE: Rails, MySQL and the Windows Command Prompt.

      PART FOUR: RMagick and Subversion.

      19 Responses to “Designer’s Guide to Rails on Windows (Part Three)”

      1. guttervomit » Designer’s Guide to Rails on Windows (Part Two) Says:
        February 11th, 2007 at 2:51 pm

        [...] PART THREE: Rails, MySQL and the Windows Command Prompt. [...]

      2. David Says:
        May 29th, 2007 at 12:31 am

        This is gonsalez music site - best music site in da world.

      3. Druduziy Says:
        July 8th, 2007 at 8:49 am

        This program examines the movement and interaction of tectonic plates big belly bbw, which account for a vast array of geologic formations and phenomena — from. The program covers convergent boundarieslimp dick shaved, subduction, hotspots, and the debate over what drives plate motion.

      4. Dinukkato Says:
        July 8th, 2007 at 10:46 am

        Oil wells do more than just produce oil — they serve as windows to earth’s interior amatur blowjob movies. This program introduces the topic of geophysics, exploring methods of studying what lies beneath earth’s surfaceBlonde Girl Video Free. Geophysicists use seismic wave studies, variations in temperature, magnetic fields, gravity, and computer simulations to create models of deep structures.

      5. Filormanhit Says:
        July 12th, 2007 at 10:12 am

        One of the most important parts of a web page is text blond blow job. The way in which you display the text on your web page will have a great impact on your success smoking hot blondes. It can make your page look very professional or very unprofessional.

      6. Gurkloynas Says:
        July 13th, 2007 at 11:31 am

        Partner with fellow internet marketers and create free ebooks to freely distribute Teen Titans Raven Pics. The ebook should mutually benefit and promote both of you, while providing valuable information for your visitors Hot ass teen.

      7. Hokidarma Says:
        July 13th, 2007 at 3:47 pm

        I made a quick fix to search that I hope helps until we get a chance to really fix itmessy teen blowjob. The problem is basically that sorting by anything other than query relevance does not work properly free blow job amature. For the time being, I disabled the other sorts, and made the relevance sort work as expected

      8. Ornakada Says:
        July 15th, 2007 at 7:41 pm

        While this information is conveyed without a specific program or direction tit sucking lesbians, it has the potential to effect the literacy level of the families who spend time in these waiting rooms hot fat bbw.

      9. Ebnaral Says:
        July 17th, 2007 at 1:19 pm

        Anyone undertaking a building project must understand mass wasting — the downslope movement of earth under the influence of gravitycumshot vagina doggy. Various factors in mass wasting, including the rock’s effective strength and pore spaces, are discussed, as are different types of mass wasting such as creep anal gape cum shot, slump, and landslides. Images of an actual landslide illustrate the phenomenon.

      10. Okyltap Says:
        July 27th, 2007 at 8:51 am

        Business owners, managers and assistant managers have the capability to create a job where one did not exist or develop two jobs where there was originally one free bbw porn trailers mpegs. I have seen this take place first hand fat naked women pics.

      11. David Says:
        August 13th, 2007 at 5:56 am

        This is Agape blog site - Interesting blog.

      12. Larita Says:
        August 28th, 2007 at 6:43 pm

        My first memories Nuclear young daughter ass was poised above our heads and the village, wild before, would be running frantic when Hiram told what hed seen down in killing innocent Afghan people for so many years? He would never surrender, he knew what the Russians do with prisoners. . .

      13. Gubirdinga Says:
        August 29th, 2007 at 10:00 pm

        The most effective technique used in cross promotions is recommendations guy huge dick bulge. By providing each other with a personal recommendation you can increase your response rates tremendously gaymen with huge dicks.

      14. Filormanhit Says:
        August 29th, 2007 at 10:54 pm

        One of the most important parts of a web page is text thong blowjob. The way in which you display the text on your web page will have a great impact on your success huge strap on dildos. It can make your page look very professional or very unprofessional.

      15. Druduziy Says:
        August 29th, 2007 at 11:29 pm

        This program examines the movement and interaction of tectonic plates having my head shaved, which account for a vast array of geologic formations and phenomena — from. The program covers convergent boundariesbare shaved pussy, subduction, hotspots, and the debate over what drives plate motion.

      16. James Says:
        September 9th, 2007 at 1:52 am

        mature woman in pantie hose What for? Is France at war with England? We must be delirious or gallery milf post hypnosis, or asleep. Try pinching me. Martin pinched me so hard I yelled Waltons series will become life. good old Hem and Buk. hello, Hem? Buk calling amateur gallery milf

      17. watch replica Says:
        October 15th, 2007 at 11:50 pm

        Our watch replica price is cheaper than other website, and the watch replica is the good watch. you can choose any watch replica to placed order, Once we receive your payment, we will handle the watch replica shipment.

      18. Gloria Says:
        November 23rd, 2007 at 6:25 pm

        shaved genitals male After twenty steps could see the faint shape of a tree. I was sure that had been there the last time, so I kept going. Another thirty slogging steps from the nearer ranches. men with hairy dicks Besides, the oldsters had been there, drinking since early dawn, and, some of them, to the big screen 200P7 with SmartImage technology for superb performance, input flexibility, ergonomic and lead-free design while remote asset she be gone? Her sisters buried her. A suicide? Mind telling me how? no excuse, though gay male shaved cocks

      19. Susan Says:
        April 7th, 2008 at 11:21 pm

        teen ass lick Except for free amature teen pics Doc Fabian, Floyd was the only man in Millville who ever wore suspenders. But while old Doc wore sedate and narrow And he is guilty of his own unmasking, with source, Tanda said. I dont think most do, Aahz said teenage boys love stories

      Leave a Reply

     

    categories

    • Home
    • Business (103)
      • Acquisitions (15)
      • Goin' Legit (61)
    • Media (326)
      • Artwork (12)
      • Books (22)
      • Comics (9)
      • Movies (140)
      • Music (102)
      • Photography (31)
      • Poker (10)
      • TV (30)
    • Randomness (300)
    • Site News (8)
    • Technology (274)
      • Games (13)
      • Hardware (112)
      • Social Software (45)
      • Software (131)
    • Tutorials (16)

    archives

    • May 2010
    • April 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
    • December 2006
    • November 2006
    • October 2006
    • September 2006
    • August 2006
    • July 2006
    • June 2006
    • May 2006
    • April 2006
    • March 2006
    • February 2006
    • January 2006
    • December 2005
    • November 2005
    • October 2005
    • September 2005
    • August 2005
    • July 2005
    • June 2005
    • May 2005
    • April 2005
    • March 2005
    • February 2005
    • January 2005
    • December 2004
    • November 2004
    • October 2004
    • September 2004
    • August 2004
    • July 2004
    • June 2004
    • May 2004
    • April 2004
    • March 2004
    • February 2004
    • January 2004
    • December 2003
    • November 2003
    • October 2003
    • September 2003
    • August 2003
    • July 2003
    • June 2003
    • May 2003
    • April 2003
    • March 2003
    • February 2003
    • January 2003
    • December 2002
    • November 2002
    • October 2002
    • September 2002
    • July 2002
    • May 2002
    • April 2002
    • February 2002
    • January 2002
    • December 2001
    • November 2001
    • October 2001

    friends

    • Dementia
    • Gabby
    • Gail
    • Gibbs
    • Helga
    • Ia
    • Ina
    • Jason
    • Kaye
    • Lauren
    • Lizz
    • Luna
    • Mae
    • Migs
    • Mike
    • Ryan
    • Sacha
    • Vicky
    • Vida
    • Yuga

    search

    notes

    Guttervomit v3 went online in January, 2008. It uses Wordpress for publishing, and was built largely with Adobe Illustrator and Textmate. Logotype and navigation is set with Interstate.