Displaying articles with tag rails

November Meeting: Clean Ruby - Simplify your programs with intention revealing, obvious code.

Posted by melriffe, Wed Nov 02 12:13:00 UTC 2011

Please note that this is a non-standard meeting location.

Meeting Details

Abstract

Despite our use of frameworks like Ruby on Rails being famous for conventional code, we still find ourselves with complicated and difficult to understand applications. Worse yet, our automated tests often end up just as complicated and slow. We have helpful design patterns to follow, so why does our code become more difficult to understand as our application grows? The cure for our pain is following DCI conventions to separate what our program *is* from what it does and to let our user’s mental model of our programs shine through.

Bio

Jim Gay

Jim Gay is the Lead Developer for RadiantCMS and is a prolific contributor to it and many open-source projects. At Saturn Flyer LLC he’s built numerous Radiant sites, custom applications, and award winning graphic design. Jim has been a co-host of the Ruby 5 podcast, speaker at RubyNation, Rocky Mountain Ruby, and ArrrrCamp, is the founder of Arlington Ruby, and has been professionally building Ruby and Rails applications since 2006.

You can find Jim on twitter: @saturnflyer

0 comments | Filed Under: Meetings | Tags: rails

October Meeting: There Are No Tests!

Posted by melriffe, Tue Oct 04 17:35:00 UTC 2011

Please note that this is a non-standard meeting location.

Meeting Details

Abstract

The Ruby community is obsessed with testing, supposedly. In my experience about four out of five applications have either zero or completely ineffective test coverage.

Have the courage to change it. Whether your own projects or recovering someone else’s mess, let’s talk strategy:

  • Starting with metrics
  • Refactoring for understanding
  • Comment-driven development
  • The unit testing foundation
  • Bug reports are your best integration tests
  • Focusing on value
  • Rescue projects are popping up everywhere, and a strategic testing approach can save the day.

Bio

Jeff Casimir

Jeff started Jumpstart Lab in 2009. He travels the world preaching the good word of Ruby. Lately he’s been pushing an agenda of professional design practices with emphasis on object oriented architectures backed by solid testing. Plus he tell jokes.

You can find Jeff on twitter: @j3 or @jumpstartlab

0 comments | Filed Under: Meetings | Tags: rails

September Meeting: Hack Night!

Posted by melriffe, Thu Sep 08 08:18:00 UTC 2011

Instead of our normal meeting in September, we're going to hold a Hack Night.

All levels welcomed

New to Ruby? That's OK! We'll have plenty of people there that can answer your questions. Very Comfortable with Ruby? Super! Come share your knowledge of the language with those just starting out. In-Between? Perfect! Come on out and have some fun.

Need some help

Having trouble getting started with Ruby? We can help.

Stuck on a bug? We can help.

Curious about Ruby, Rails? We can help.

Curious about Cucumber, RSpec, Test::Unit, etc.? We can help.

Curious about TDD, BDD? We can help.

Just wanna "talk shop" and enjoy a beer or two! We can help!

Spread the word

See you there and be sure to tell your friends.

Meeting Details

Next Month

Jeff Casimir, from Jumpstart Lab, will be presenting:

There Are No Tests

The Ruby community is obsessed with testing, supposedly. In my experience about four out of five applications have either zero or completely ineffective test coverage...

1 comment | Filed Under: Meetings | Tags: rails

Hosting on IIS 6.0 revisited

Posted by matt.overstreet, Thu Mar 24 13:56:00 UTC 2011

Assumptions

  • Windows Server 2003 (XP or 2k will not work)
  • IIS 6 (IIS 7 has it's own rewrite filter, so the IIRF instructions would change)
  • Should not interfere with other sites running on the IIS server

Installation and configuration

Ruby and bundler

Install Ruby 1.8.7-p334 from [[http://rubyinstaller.org/downloads]]

In a command window gem install bundler

Ruby Windows DevKit

You will need this in order to build native extensions, such as curb and nokogiri

Install the Ruby Windows DevKit from [[http://rubyinstaller.org/downloads]]

Follow the instructions from the DevKit wiki

  1. Extract the DevKit contents into a directory with no spaces, e.g. – C:\DevKit.
  2. Run ruby.exe dk.rb init
  3. Run ruby.exe dk.rb install

Rake

gem install rake

MSSql gem

In a command window gem install ruby-odbc gem install activerecord-sqlserver-adapter

You will need to setup a ODBC DSN in order to connect to the database. c:\Windows\system32\odbcad32.exe Create a system DSN with the "SQL Native Client adapter".

name: mondial_development select your database server

On the next page, select "With SQL Sever Authentication" and provide valid credentials.

On the next page, set the default database.

On the next page, disable "Perform translation for character data"

git

Install msysgit

Settings are not clear at this time, default to the less invasive options.

This will install a Git folder in your start menu with 2 applications (Git Bash and Git GUI)

reference: Github on installing on Windows

ssh key for github

See help document on Github.com

Pulling down the code

Run Git Bash


    cd /c/
    mkdir rails
    cd rails
    git clone git@github.com:username/appname.git

Install IIRF (Ionic's ISAPI Rewriting Filter) for x64

IIRF allows us to use many of the features of Apache's mod_rewrite for IIS 6. We use it to proxy requests for our rails app to our rails server process (mongrel or thin)

Download the IonicIsapiRewriter-2.1.1.25-Release-x64-bin.zip Note: if you are installing on 32bit windows you can just use the MSI Detailed install instructions for IIS 6 are under the heading "Installing IIRF" here

Roughly (more information at the url above or in the .chm included with IIRF)

  • place the IIRF.dll somewhere in the filesystem. If you have spaces in your path you'll need to make sure you quote the entire path in IIS settings later. (ex. C:\WINDOWS\system32\inetsrv\IIRF\IIRF.dll)

  • you may want to copy the rest of the bin directory to the folder you used above (optional)

  • add an empty IirfGlobal.ini to this same folder. It is used for global IIRF settings and we are putting it here as a placeholder.

  • Make sure your IIS user can see, traverse and read the folder you created. Adding the rights to the IISWPG group _should do the trick, depending on how heavily server modifications.

  • View the properties of your website in IIS Manager.

  • In the "ISAPI filters" tab add: Filter name: IIRF - Ionic ISAPI Rewriting Filter Executable: C:\WINDOWS\system32\inetsrv\IIRF\IIRF.dll

  • Enable the dll as an ISAPI extension so that the proxypass works for POST actions. In properties click Configuration on the "Home Directory" tab

  • Click Add. Executable: C:\WINDOWS\system32\inetsrv\IIRF\IIRF.dll Extension: .iirf Verbs: all Script Engine: on Verify that file exists: off

  • Add an IIRF.ini file to your apps root directory (public/ on a rails app)


    #  IIRF.ini
    #
    #  ini file for proxying to an internal webserver
    #

    RewriteLog c:\logs\iirf
    RewriteLogLevel 3
    IterationLimit 10
    MaxMatchCount 10
    RewriteEngine ON
    StatusInquiry ON

    #  act as a proxy the rails webserver
    RewriteCond         %{REQUEST_FILENAME}     !-f
    ProxyPass           ^/(.*)$   http://127.0.0.1:3000/$1
    ProxyPassReverse    /         http://127.0.0.1:3000/

Setup Mongrel_service

gem install mongrel_service
mongrel_rails service::install -N mondial_mobile_www /
          -c c:\rails\MyApp\ -p 3000 -e production

Notes

Thin instead of Mongrel

gem install thin

and then either the win32-service gem or with the native MS tool Srvany.exe.

Development MSSql server

If you are building a development installation you will also want to download Microsoft SQL Server 2005 Express Edition.

You will also need the .NET 2.0 framework 32-bit or .NET 2.0 framework 64-bit.

0 comments | Filed Under: Blogroll Projects | Tags: rails

September Meeting: Social Time!

Posted by melriffe, Tue Sep 07 15:59:00 UTC 2010

Meeting Details

Date: Tuesday, 14 September
Time: 6:00 – 8:00 PM
Place: Capital Ale House

Party Time!

Hey folks, after a hot, hot, hot Virginia summer, I think it’s social time. So, for September’s meeting we’ll be gathering at the Capital Ale House in Innsbrook for cold beverages, mostly ok food, and interesting conversations about what we did over the summer and all the cool technology we’re messing with.

Be sure to bring a friend and spread the word.

See you there!

Announcements:

0 comments | Filed Under: Meetings | Tags: rails

December Meeting: Matt Overstreet & URIs

Posted by melriffe, Sun Dec 06 19:35:00 UTC 2009

As 2009 comes to a close, we have one of our own stepping up the plate to talk to us about URI’s and their lifecycle.

Abstract

“Rack::Route301, A rack module to manage old routes”

Moving an existing site from the old and busted to the new hotness involves a million little details. Removing that old table layout, scrubbing the data, selling or sneaking in a new feature or two, etc., etc., all the way down to the zoot. But when all is said and done, where did mysupersite.net/lolfrogz?color=blu&cuteness=-4 go?

URI lifetime matters.

We’ll talk about a few solutions, from .htaccess, to application controllers in RoR, to Rack. And finish with Rack::Route301, an very young Rack based solution that Matt will be releasing as an open source project.

Location

Tuckahoe Public Library, 1901 Starling Drive in Richmond.

Look here for directions: http://www.henricolibrary.org/Libs/tu.html

2 comments | Filed Under: Meetings | Tags: rails

September Meeting: Youssef Chaker, Michael Herndon & Midori PHP Framework

Posted by melriffe, Fri Sep 04 17:48:00 UTC 2009

Meeting Details

Date: Tuesday, 8 September
Time: 6:00 – 8:00 PM
Place: INM United

Location Change

This meeting is being held in a new location. Parking is a little awkward so visit this image to find out where to park. You’ll want to park behind the INM building in order to get free validation. INM will provide it.

Parking Location

Meeting Abstract

The “midori” generative framework, php flavor. The framework goals are a clean api, generate redundant code, and focus on data centric problems (validation, abstraction, business objects, etc), some form of an application plugin/module system, and of course the hardest part, good documentation. The php flavor includes Boxing Types for values in php so that you can easily chain methods and maintain formatting of dates, etc.

http://github.com/michaelherndon/midori-php/tree/master

Presenter Bio

Youssef Chaker is a software developer at OpenSource Connections, where he’s been helping the OSC team take over the world one web app at a time. Youssef graduated from UVa with a Bachelors in Science in Computer Engineering in 2008 and had his first but brief introduction to Ruby writing an interpreter for a language called COOL (classroom object oriented language, developed in Berkeley). He’s also been using Ruby on Rails since joining OSC and has fallen back in love with programming since. He is also the author of the ZeepIt plugin, an easy way to integrate the Zeep Mobile API into a Rails application.

Michael Herndon is a senior developer at OpenSource Connections, specializing in bleeding edge technology, standards, development tools and software on both the web and desktop platforms. Not much else is known about him, the rest of his bio is evidently sealed in a vault, protected by killer Buddhist monks. If you don’t wish to go up against killer Buddhist monks, you could try his website: www.amptools.net

0 comments | Filed Under: Meetings | Tags: rails

May Meeting Follow-up

Posted by melriffe, Fri May 15 21:24:00 UTC 2009

Summary

Lasting only 30 minutes I believe it was the shortest meeting ever. Next year I promise to schedule either a speaker or panel of speakers to recap RailsConf.

Attendance

I happy to say we had three new members for May’s meeting. I’m not happy to say it was 60% of the total attendance. :-D

Additional Information

Next Meeting

HotCocoa and MacRuby!!! Tell everybody! I’m totally psyched that we have Rich Kilmer, from InfoEther, coming into town to school us on some HotCocoa. This is also going to be a joint meeting with Richmond’s CocoaHeads Group. I’m expecting a packed house for the June meeting.

Announcements

JetBrains Winners

  • Michael Berdichevsky : RubyMine License
  • Will O’Donovan : RubyMine License

Area Conferences

0 comments | Filed Under: Meetings | Tags: rails

May Meeting: Annual RailsConf ReCap

Posted by melriffe, Tue May 05 18:02:00 UTC 2009

Meeting Details

Date: Tuesday, 12 May
Time: 6:00 – 8:00 PM
Place: Strategy Cafe
Details: Upcoming Event

We would greatly appreciate it if you could go to the Upcoming Event and indicate your intention to attend this meeting.

Meeting Abstract

The annual RailsConf ReCap wherein we learn about the latest and greatest.

Social in the Making

There is a strong chance this meeting will turn into a Social. I take full responsibility for not properly planning this meeting. I did not schedule a speaker, opting instead, to rely on members attending the conference to come and present their findings. So if you know someone attending RailsConf encourage them to join us and to give us their impressions of the conference.

However, it just might be time for a social anyways. Thankfully we’ve had 7 consecutive months of speakers. And the rest of the year is shaping up nicely too; I’ll be posting the schedule in the next few days.

Presenter Bio

<Your Name Here> or Your friend’s name ;-)

0 comments | Filed Under: Meetings | Tags: rails