From stimits at comcast.net Tue Aug 1 23:27:35 2006
From: stimits at comcast.net (D. Stimits)
Date: Tue, 01 Aug 2006 21:27:35 -0600
Subject: [Boulder-Denver Ruby Group] accessing session data
Message-ID: <44D01BA7.3040009@comcast.net>
This is a ruby on rails session class question.
I've been trying for a very long time now (off and on, several months)
to access session fields in the sessions table when using the
ActiveRecord setup for sessions. FYI, I'm using PostgreSQL, and want
more than sessid.
What I see is that I'm easily able to access session.session_id. I can
also manually read the content of PostgreSQL tables with various tools,
and I can see that the created_at and updated_at (an optional field) are
indeed correct and non-NULL.
What I cannot do, in any way whatsoever, is to access any field other
than the session_id field. Incidentally, that isn't a SQL table field,
the SQL table field is sessid. What I *think* it comes down to is that
I'm trying to use the @session like a model, but it isn't a model, it's
a class that wraps a hidden model. I can't access those other fields,
because the session itself does not provide access to those.
So I even tried to create my own model, of a different name, which sets
the table to the sessions table. No error, but it just doesn't do
anything. I can create accessors in my model which directly name the
fields in the sessions table, but no go, they all just act nil and dumb.
I need access to updated_at and created_at because I need the web page
to display differently depending on the answer. It isn't enough to
filter it and force login, as I want non-logged-in users as well...just
that it should display differently. And if they don't have cookies on,
and thus there is no session_id at all, I still want to let them in, but
I want yet again to display different content if they don't have
sessions due to lack of cookies.
I'm starting to think that I must either throw out rails sessions, or I
can only use the session_id and must make my own model and support code
that does its own thing and queries for session_id every hit and
duplicates functionality in a mirrored table (quite a waste).
Can anyone tell me how to access the session table when using the
ActiveRecord option in session configuration? Or should I give up and
write my own?
Thanks,
D. Stimits, stimits AT comcast DOT net
From jeremy at hinegardner.org Wed Aug 2 02:10:43 2006
From: jeremy at hinegardner.org (Jeremy Hinegardner)
Date: Wed, 2 Aug 2006 00:10:43 -0600
Subject: [Boulder-Denver Ruby Group] accessing session data
In-Reply-To: <44D01BA7.3040009@comcast.net>
References: <44D01BA7.3040009@comcast.net>
Message-ID: <20060802061043.GX13256@hinegardner.org>
On Tue, Aug 01, 2006 at 09:27:35PM -0600, D. Stimits wrote:
> Can anyone tell me how to access the session table when using the
> ActiveRecord option in session configuration? Or should I give up and
> write my own?
If you have Agile Web Development with Rails, see chapter 8.1 Sessions
and the examples with Cart creation. Also see Chapter 16.5 Cookies and
Sessions.
But in summary you're not going to access the session information it
self, you're going to store and retrieve items in the session that you
need. Most likely not explicity active record backed model objects.
For example this should be trivial test to make sure that you are
storing items in the session:
app/controller/some_controller.rb:
class SomeController < ActionController::Base
def index
session[:count_me] ||= 0
session[:count_me] += 1
@count_me = session[:count_me]
end
end
app/views/some_controller/index.rhtml:
You have hit this page <%= @count_me %> times
Start up the rails process with script/server and then hit
http://localhost:3000/some_controller and keep reloading the page.
If this doesn't work then you probably have something misconfigured with
your sessions.
Hopefully this gets you started.
enjoy,
-jeremy
--
========================================================================
Jeremy Hinegardner jeremy at hinegardner.org
From boulderdenverruby at otherward.net Wed Aug 2 00:08:30 2006
From: boulderdenverruby at otherward.net (Nathan Witmer)
Date: Tue, 1 Aug 2006 22:08:30 -0600
Subject: [Boulder-Denver Ruby Group] accessing session data
In-Reply-To: <44D01BA7.3040009@comcast.net>
References: <44D01BA7.3040009@comcast.net>
Message-ID: <7CB9840C-82F5-44ED-89D9-C94D55E51A7E@otherward.net>
> This is a ruby on rails session class question.
>
> I've been trying for a very long time now (off and on, several months)
> to access session fields in the sessions table when using the
> ActiveRecord setup for sessions. FYI, I'm using PostgreSQL, and want
> more than sessid.
>
> What I see is that I'm easily able to access session.session_id. I can
> also manually read the content of PostgreSQL tables with various
> tools,
> and I can see that the created_at and updated_at (an optional
> field) are
> indeed correct and non-NULL.
>
> What I cannot do, in any way whatsoever, is to access any field other
> than the session_id field. Incidentally, that isn't a SQL table field,
> the SQL table field is sessid. What I *think* it comes down to is that
> I'm trying to use the @session like a model, but it isn't a model,
> it's
> a class that wraps a hidden model. I can't access those other fields,
> because the session itself does not provide access to those.
>
> So I even tried to create my own model, of a different name, which
> sets
> the table to the sessions table. No error, but it just doesn't do
> anything. I can create accessors in my model which directly name the
> fields in the sessions table, but no go, they all just act nil and
> dumb.
>
> I need access to updated_at and created_at because I need the web page
> to display differently depending on the answer. It isn't enough to
> filter it and force login, as I want non-logged-in users as
> well...just
> that it should display differently. And if they don't have cookies on,
> and thus there is no session_id at all, I still want to let them
> in, but
> I want yet again to display different content if they don't have
> sessions due to lack of cookies.
>
> I'm starting to think that I must either throw out rails sessions,
> or I
> can only use the session_id and must make my own model and support
> code
> that does its own thing and queries for session_id every hit and
> duplicates functionality in a mirrored table (quite a waste).
>
> Can anyone tell me how to access the session table when using the
> ActiveRecord option in session configuration? Or should I give up and
> write my own?
>
> Thanks,
> D. Stimits, stimits AT comcast DOT net
Hmm. After a bit of testing, I was able to retrieve this data with a
custom model.
Here's the code I used (extraneous bits deleted):
config/environment.rb contains:
config.action_controller.session_store = :active_record_store
db/migrate/001_add_sessions.rb, added created_at column:
class AddSessions < ActiveRecord::Migration
def self.up
create_table :sessions do |t|
t.column :session_id, :string
t.column :data, :text
t.column :created_at, :datetime
t.column :updated_at, :datetime
end
end
end
app/models/session_data.rb:
class SessionData < ActiveRecord::Base
set_table_name :sessions
end
I'm under the impression that using a class name of Session may cause
conflicts, but I'd have to read the source. I also saw mention that
the session store class could be set directly:
CGI::Session::ActiveRecordStore.session_class = MySessionClass (from
the CGI::Session::ActiveRecordStore rdoc).
index.rhtml (controller irrelevant, there's no code there -- i abuse
MVC forthwith:)
session id: <%=h session.session_id %>
<%=h SessionData.find_by_session_id
(session.session_id).inspect %>
This code prints, on first load of the page:
session id: 051f71442bed59996ddaf121b7b3c96f
nil
(nil because while the session exists, it hadn't been saved to the
database yet)
On second load:
session id: 051f71442bed59996ddaf121b7b3c96f
#"2006-08-01
21:53:08", "session_id"=>"051f71442bed59996ddaf121b7b3c96f",
"id"=>"1",
"data"=>"BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
\nSGFzaHsABjoKQHVzZWR7AA==\n", "created_at"=>"2006-08-01 21:53:08"}>
You can see here that I'm able to access the created_at/updated_at
directly without problems, via the SessionData model.
Note: I'm using a sqlite3 database, but ActiveRecord session stores
should work the same way with postgres. I tried this on edge and with
the 1.1.4 gem, it made no difference.
Not sure if this helps, but it might be a start.
Nathan Witmer
From boulderdenverruby at otherward.net Wed Aug 2 08:31:39 2006
From: boulderdenverruby at otherward.net (Nathan Witmer)
Date: Wed, 2 Aug 2006 06:31:39 -0600
Subject: [Boulder-Denver Ruby Group] accessing session data
In-Reply-To: <44D01BA7.3040009@comcast.net>
References: <44D01BA7.3040009@comcast.net>
Message-ID:
On Aug 1, 2006, at 9:27 PM, D. Stimits wrote:
> This is a ruby on rails session class question.
>
>
>
rake rails:freeze:gems or rails:freeze:edge and have a look at:
vendor/rails/actionpack/lib/action_controller/session/
active_record_store.rb, line 9
There's a method, Session#model, which returns the ActiveRecordStore
instance that the session uses for storage.
In index.rhtml:
<%=h session.model.inspect %>
<%=h session.model.updated_at.inspect %>
Nathan Witmer
From chad at chadfowler.com Wed Aug 2 20:21:38 2006
From: chad at chadfowler.com (Chad Fowler)
Date: Wed, 2 Aug 2006 18:21:38 -0600
Subject: [Boulder-Denver Ruby Group] RubyConf Registration
Message-ID:
Opening shortly.....http://www.rubyconf.org
Chad
From mghaught at gmail.com Wed Aug 2 23:43:08 2006
From: mghaught at gmail.com (Marty Haught)
Date: Wed, 2 Aug 2006 21:43:08 -0600
Subject: [Boulder-Denver Ruby Group] RubyConf/Next Meeting
Message-ID: <57f29e620608022043l548b4f9ftfc64ff164573e510@mail.gmail.com>
Hey All,
Hope you're getting signed up for RubyConf tonight. Registrations are
going fast so if you want to go don't wait until tomorrow. Also, our
next meeting will be on August 16th. I'm still determining the second
speaker slot so I'll hold off on posting any more details on what
we'll be covering in the meeting.
Finally, I know a couple of you have volunteered to speak in September
and beyond. Can you please send me a brief description of your talk
and a sentence or two on yourself? Thanks.
Cheers,
Marty
From kevincbw at qwest.net Thu Aug 3 14:20:55 2006
From: kevincbw at qwest.net (Kevin Williams)
Date: Thu, 03 Aug 2006 12:20:55 -0600
Subject: [Boulder-Denver Ruby Group] RubyConf/Next Meeting
In-Reply-To: <57f29e620608022043l548b4f9ftfc64ff164573e510@mail.gmail.com>
References: <57f29e620608022043l548b4f9ftfc64ff164573e510@mail.gmail.com>
Message-ID: <44D23E87.7040108@qwest.net>
Well, eleven hours after receiving this note from Marty I tried to
register and found registration closed. Man, this was disappointing! I
am on the waiting list and crossing my fingers. Anyone else have this
experience?
--Kevin
Marty Haught wrote:
>Hey All,
>
>Hope you're getting signed up for RubyConf tonight. Registrations are
>going fast so if you want to go don't wait until tomorrow. Also, our
>next meeting will be on August 16th. I'm still determining the second
>speaker slot so I'll hold off on posting any more details on what
>we'll be covering in the meeting.
>
>Finally, I know a couple of you have volunteered to speak in September
>and beyond. Can you please send me a brief description of your talk
>and a sentence or two on yourself? Thanks.
>
>Cheers,
>Marty
>_______________________________________________
>Bdrg-members mailing list
>Bdrg-members at rubyforge.org
>http://rubyforge.org/mailman/listinfo/bdrg-members
>
>
>
>
>
From mghaught at gmail.com Thu Aug 3 14:37:42 2006
From: mghaught at gmail.com (Marty Haught)
Date: Thu, 3 Aug 2006 12:37:42 -0600
Subject: [Boulder-Denver Ruby Group] RubyConf/Next Meeting
In-Reply-To: <44D23E87.7040108@qwest.net>
References: <57f29e620608022043l548b4f9ftfc64ff164573e510@mail.gmail.com>
<44D23E87.7040108@qwest.net>
Message-ID: <57f29e620608031137l9f3f684y2b0a84257fc26a50@mail.gmail.com>
On 8/3/06, Kevin Williams wrote:
> Well, eleven hours after receiving this note from Marty I tried to
> register and found registration closed. Man, this was disappointing! I
> am on the waiting list and crossing my fingers. Anyone else have this
> experience?
I'm really sorry about that Kevin. Perhaps I should have sent a
message a few days ago with my prediction that it would sell out
quick. I'm not surprised that it sold out in 4 hours though I was
thinking more like 24 hours. It certainly doesn't hurt to get on the
waiting list though I can only imagine that it's very long by now.
As an aside, one of our members has suggested that I try to get one or
two big Rubyists to come to speak to our group over the next several
months. The first question is would some of you be willing to chip
in to cover the costs? It could either be in individual donations or
business sponsorships. The next question is who would you like to
have visit us and what would the subject be? Think it over and send
your thoughts to the list. If there's enough interest I'll create a
poll of the top names to get a sense of who the group would want to
invite collectively. Then I can see if we can convince them to come
to the Front Range.
Cheers,
Marty
From mike at clarkware.com Thu Aug 3 14:45:12 2006
From: mike at clarkware.com (Mike Clark)
Date: Thu, 3 Aug 2006 12:45:12 -0600
Subject: [Boulder-Denver Ruby Group] RubyConf/Next Meeting
In-Reply-To: <57f29e620608031137l9f3f684y2b0a84257fc26a50@mail.gmail.com>
References: <57f29e620608022043l548b4f9ftfc64ff164573e510@mail.gmail.com>
<44D23E87.7040108@qwest.net>
<57f29e620608031137l9f3f684y2b0a84257fc26a50@mail.gmail.com>
Message-ID:
On Aug 3, 2006, at 12:37 PM, Marty Haught wrote:
> On 8/3/06, Kevin Williams wrote:
>> Well, eleven hours after receiving this note from Marty I tried to
>> register and found registration closed. Man, this was
>> disappointing! I
>> am on the waiting list and crossing my fingers. Anyone else have
>> this
>> experience?
>
> I'm really sorry about that Kevin. Perhaps I should have sent a
> message a few days ago with my prediction that it would sell out
> quick. I'm not surprised that it sold out in 4 hours though I was
> thinking more like 24 hours. It certainly doesn't hurt to get on the
> waiting list though I can only imagine that it's very long by now.
>
> As an aside, one of our members has suggested that I try to get one or
> two big Rubyists to come to speak to our group over the next several
> months. The first question is would some of you be willing to chip
> in to cover the costs? It could either be in individual donations or
> business sponsorships.
Pragmatic Studio would be happy to sponsor the costs of a meeting.
Mike
From aviggio at bivio.biz Thu Aug 3 15:44:25 2006
From: aviggio at bivio.biz (Alex Viggio)
Date: Thu, 03 Aug 2006 13:44:25 -0600
Subject: [Boulder-Denver Ruby Group] RubyConf/Next Meeting
In-Reply-To:
References: <57f29e620608022043l548b4f9ftfc64ff164573e510@mail.gmail.com> <44D23E87.7040108@qwest.net> <57f29e620608031137l9f3f684y2b0a84257fc26a50@mail.gmail.com>
Message-ID: <44D25219.7020807@bivio.biz>
4 hours seems like a record. Great work guys.
How many seats were open for the conference anyhow?
- Alex
Mike Clark wrote:
> On Aug 3, 2006, at 12:37 PM, Marty Haught wrote:
>
>> On 8/3/06, Kevin Williams wrote:
>>> Well, eleven hours after receiving this note from Marty I tried to
>>> register and found registration closed. Man, this was
>>> disappointing! I
>>> am on the waiting list and crossing my fingers. Anyone else have
>>> this
>>> experience?
>> I'm really sorry about that Kevin. Perhaps I should have sent a
>> message a few days ago with my prediction that it would sell out
>> quick. I'm not surprised that it sold out in 4 hours though I was
>> thinking more like 24 hours. It certainly doesn't hurt to get on the
>> waiting list though I can only imagine that it's very long by now.
>>
>> As an aside, one of our members has suggested that I try to get one or
>> two big Rubyists to come to speak to our group over the next several
>> months. The first question is would some of you be willing to chip
>> in to cover the costs? It could either be in individual donations or
>> business sponsorships.
>
> Pragmatic Studio would be happy to sponsor the costs of a meeting.
>
> Mike
> _______________________________________________
> Bdrg-members mailing list
> Bdrg-members at rubyforge.org
> http://rubyforge.org/mailman/listinfo/bdrg-members
>
From chad at chadfowler.com Thu Aug 3 15:53:09 2006
From: chad at chadfowler.com (Chad Fowler)
Date: Thu, 3 Aug 2006 13:53:09 -0600
Subject: [Boulder-Denver Ruby Group] RubyConf/Next Meeting
In-Reply-To: <44D25219.7020807@bivio.biz>
References: <57f29e620608022043l548b4f9ftfc64ff164573e510@mail.gmail.com> <44D23E87.7040108@qwest.net> <57f29e620608031137l9f3f684y2b0a84257fc26a50@mail.gmail.com>
<44D25219.7020807@bivio.biz>
Message-ID:
On Aug 3, 2006, at 1:44 PM, Alex Viggio wrote:
> 4 hours seems like a record. Great work guys.
>
> How many seats were open for the conference anyhow?
>
> - Alex
Thanks. The conference holds 240 people.
Chad
From emiliosuarez at gmail.com Thu Aug 3 16:01:59 2006
From: emiliosuarez at gmail.com (Emilio Suarez)
Date: Thu, 3 Aug 2006 14:01:59 -0600
Subject: [Boulder-Denver Ruby Group] RubyConf/Next Meeting
In-Reply-To: <44D23E87.7040108@qwest.net>
References: <57f29e620608022043l548b4f9ftfc64ff164573e510@mail.gmail.com>
<44D23E87.7040108@qwest.net>
Message-ID:
Yep, same with me... I registered this morning and I'm on the waiting
list...
-emilio
On 8/3/06, Kevin Williams wrote:
>
> Well, eleven hours after receiving this note from Marty I tried to
> register and found registration closed. Man, this was disappointing! I
> am on the waiting list and crossing my fingers. Anyone else have this
> experience?
>
> --Kevin
>
>
>
> Marty Haught wrote:
>
> >Hey All,
> >
> >Hope you're getting signed up for RubyConf tonight. Registrations are
> >going fast so if you want to go don't wait until tomorrow. Also, our
> >next meeting will be on August 16th. I'm still determining the second
> >speaker slot so I'll hold off on posting any more details on what
> >we'll be covering in the meeting.
> >
> >Finally, I know a couple of you have volunteered to speak in September
> >and beyond. Can you please send me a brief description of your talk
> >and a sentence or two on yourself? Thanks.
> >
> >Cheers,
> >Marty
> >_______________________________________________
> >Bdrg-members mailing list
> >Bdrg-members at rubyforge.org
> >http://rubyforge.org/mailman/listinfo/bdrg-members
> >
> >
> >
> >
> >
>
>
> _______________________________________________
> Bdrg-members mailing list
> Bdrg-members at rubyforge.org
> http://rubyforge.org/mailman/listinfo/bdrg-members
>
--
-Emilio Suarez
http://emiliosuarez.com/blog.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20060803/f8d389d1/attachment.html
From mike at clarkware.com Tue Aug 8 12:46:37 2006
From: mike at clarkware.com (Mike Clark)
Date: Tue, 8 Aug 2006 12:46:37 -0400
Subject: [Boulder-Denver Ruby Group] [ANN] The Rails Edge
Message-ID: <00B75C67-7968-4813-982B-126B41BB5979@clarkware.com>
Howdy Rubyists!
I thought you might be interested in a new regional conference series
we're starting in Denver this fall...
The Pragmatic Studio is excited to announce a unique 3-day conference
focused on Rails and Ruby. The Rails Edge (http://therailsedge.com)
will take place November 16-18 in Denver, CO.
-----------------------------
Get Your Questions Answered
-----------------------------
Ruby on Rails has spread like wildfire through the web development
world, fueled by a solid foundation of Ruby, but... Is Rails the
right tool for your web project? If so, how do you keep up with the
latest trends and techniques on a technology that's rapidly evolving?
And what about leveraging the power of Ruby beyond Rails to integrate
systems throughout your enterprise?
By attending The Rails Edge you'll get answers to these questions and
be in a better position to evaluate the potential rewards (and
pitfalls) of using Rails and Ruby in your situation.
-----------------------------
Hear What the Experts Have to Say
-----------------------------
Spend 3 days learning from some of the best minds (and speakers) in
the Rails and Ruby communities, including:
* Dave Thomas: co-author of "The Pragmatic Programmer", "Programming
Ruby", and "Agile Web Development with Rails"
* Chad Fowler: author of "Rails Recipes" and co-founder of Ruby
Central, Inc.
* Bruce Williams: UI talent on one of the largest Rails apps in
existence
* Jim Weirich: creator of the Rake build system and contributor to
the RubyGems package software
* Marcel Molina Jr.: member of the Rails core team
* Mike Clark: co-author of "Agile Web Development with Rails" and
Pragmatic Studio trainer
* James Duncan Davidson: creator of Apache Ant and Apache Tomcat, and
now a Rails deployment expert
* Justin Gehtland: co-author of "Pragmatic Ajax", "Rails for Java
Developers", and co-creator of the Streamlined framework
* Stuart Halloway: co-author of "Rails for Java Developers" and the
Streamlined framework
-----------------------------
Timely and Pragmatic Topics
-----------------------------
Get up to speed and stay sharp on these leading edge topics:
* Rails: The Right Tool for the Job?
* Rails and Ajax
* ActionPack and ActiveRecord Demystified
* Building View Frameworks
* Rake: Building Up Ruby
* Rails Reflection
* Design Patterns in Ruby
* Ruby Idioms for Rails Programmers
* Deploying Rails Applications
* ...and more!
-----------------------------
Register Now and Save
-----------------------------
Registration is now open!
Check out all the details and take advantage of early bird
registration at:
http://therailsedge.com
We hope you'll join us on the edge!
Mike
From aviggio at bivio.biz Tue Aug 8 13:18:46 2006
From: aviggio at bivio.biz (Alex Viggio)
Date: Tue, 08 Aug 2006 11:18:46 -0600
Subject: [Boulder-Denver Ruby Group] [Fwd: [rmiug-jobs] Contract to hire: 2-
Ruby Developers- Denver, CO 3-6month]
Message-ID: <44D8C776.2000300@bivio.biz>
fyi...
-------- Original Message --------
Subject: [rmiug-jobs] Contract to hire: 2- Ruby Developers- Denver, CO
3-6month
Date: Tue, 08 Aug 2006 14:21:50 -0000
From: chrissisaac
To: rmiug-jobs at yahoogroups.com
Kforce is currently seeking a Ruby on Rails Web Developer for a 3-
month+ contract to perm position in Denver. Length of Assignment: 3
months contract to perm. Environment: UNIX / Linux with deployment on
Linux servers. Oracle backend Databases.
Technical skills required:
Core Ruby, Unix/Linux, Oracle PL/SQL, HTML, Object Oriented
Development experience and exposure
Pluses: Technical skills not required but are a plus: Ruby on Rails,
JavaScript, Java, Oracle Reports, Oracle Forms, C
POSITION OVERVIEW: Develop Ruby applications to extend existing
platform for client's public facing web applications and develop
internal tools.
RESPONSIBILITIES:
1. Design, Develop, Implement software to accomplish features
for customer facing production web applications.
2. Integrate Ruby Web Applications with Oracle Databases.
3. Conduct unit testing as needed to ensure quality is high.
4. Participate in code reviews of own and other engineer's work.
5. Support of existing Ruby on Rails software.
PROFESSIONAL QUALIFICATIONS
? Experience in producing software for a production web
applications.
? MUST: 1 year Ruby Development experience (Ruby on Rails a
plus)
? MUST: Experience with relational database. PL/SQL, Oracle
Preferred.
? MUST have Object Oriented development background (Java is
ideal)
? Focused on delivering high quality, high value code.
Kforce (Nasdaq:KFRC) is a full service professional staffing firm
providing flexible and permanent staffing solutions for hiring
organizations and career management for job seekers in the following
specialty skill areas: Finance & Accounting, Technology, Healthcare,
Clinical Research, and Scientific.
Kforce offer benefits and insurance including: Medical, Dental,
Vision, Long/Short term disability, 401k, stock options, employee
discounts (cell phone, etc.), weekly pay, and direct-deposit.)
Additionally, Kforce offers over 2,000 online training courses across
22 major solution areas and 15 languages, ensuring the best possible
e-learning experience. Courses prepare you for IT certification in
Software Development, Operating Systems and Server Technologies,
Internet and Network Technologies, Enterprise Data Systems, Web
Design, Project Effectiveness (includes Project Management), and E-
learning.
Thanks for your interest,
Chris Isaac
Sr. Recruiter
Kforce Technology Staffing
7730 E. Belleview Ave. Suite 302
Greenwood Village, CO 80111
888.883.1936 ext 4604
303.804.4604
303.773.8201 fax
www.kforce.com
Great People = Great ResultsSM
BUSINESSWEEK'S HOT GROWTH 100 COMPANIES 2006
http://www.businessweek.com/hot_growth/2006/company/89.htm
From mghaught at gmail.com Wed Aug 9 16:27:23 2006
From: mghaught at gmail.com (Marty Haught)
Date: Wed, 9 Aug 2006 14:27:23 -0600
Subject: [Boulder-Denver Ruby Group] Rails 1.1.5 upgrade
Message-ID: <57f29e620608091327r5bafa2c5ha8b167ee985c375c@mail.gmail.com>
Hey Guys,
Did everyone catch this on upgrading to 1.1.5 immediately? If not, read on.
http://weblog.rubyonrails.org/2006/8/9/rails-1-1-5-mandatory-security-patch-and-other-tidbits
Cheers,
Marty
From stimits at comcast.net Wed Aug 9 21:39:18 2006
From: stimits at comcast.net (D. Stimits)
Date: Wed, 09 Aug 2006 19:39:18 -0600
Subject: [Boulder-Denver Ruby Group] accessing session data
In-Reply-To: <7CB9840C-82F5-44ED-89D9-C94D55E51A7E@otherward.net>
References: <44D01BA7.3040009@comcast.net>
<7CB9840C-82F5-44ED-89D9-C94D55E51A7E@otherward.net>
Message-ID: <44DA8E46.1030408@comcast.net>
Nathan Witmer wrote:
>> This is a ruby on rails session class question.
>>
>> I've been trying for a very long time now (off and on, several months)
>> to access session fields in the sessions table when using the
>> ActiveRecord setup for sessions. FYI, I'm using PostgreSQL, and want
>> more than sessid.
>> ...
>
>
> Hmm. After a bit of testing, I was able to retrieve this data with a
> custom model.
>
> Here's the code I used (extraneous bits deleted):
>
> config/environment.rb contains:
> config.action_controller.session_store = :active_record_store
>
> db/migrate/001_add_sessions.rb, added created_at column:
>
> class AddSessions < ActiveRecord::Migration
> def self.up
> create_table :sessions do |t|
> t.column :session_id, :string
> t.column :data, :text
> t.column :created_at, :datetime
> t.column :updated_at, :datetime
> end
> end
> end
>
> app/models/session_data.rb:
>
> class SessionData < ActiveRecord::Base
> set_table_name :sessions
> end
...
Thanks for all the answers...this one turns out to be the winner, as I
wasn't interested in storing more things in sessions, I was only
interested in reading from the extra fields without duplicating the
code. Took me a while to get to it!
FYI, this opens up so many new things for possibilities it's wonderful!
Hard to believe that being able to read more session information would
make for such a nice way to change the behavior of the web pages.
D. Stimits, stimits AT comcast DOT net
From mghaught at gmail.com Thu Aug 10 00:25:44 2006
From: mghaught at gmail.com (Marty Haught)
Date: Wed, 9 Aug 2006 22:25:44 -0600
Subject: [Boulder-Denver Ruby Group] Fwd: Rails 1.1.5 upgrade
In-Reply-To: <7973E7E9-AD18-4F12-A360-F0E26806ED42@otherward.net>
References: <57f29e620608091327r5bafa2c5ha8b167ee985c375c@mail.gmail.com>
<7973E7E9-AD18-4F12-A360-F0E26806ED42@otherward.net>
Message-ID: <57f29e620608092125y4d79389ai8bab11a22c5ee187@mail.gmail.com>
Forwarding on Nathan's reply...
---------- Forwarded message ----------
From: Nathan Witmer
Date: Aug 9, 2006 4:36 PM
Subject: Re: [Boulder-Denver Ruby Group] Rails 1.1.5 upgrade
To: Marty Haught
I'm going to reiterate what the core team said: this is a BIG DEAL.
Upgrade as soon as you possibly can!
Nathan
On Aug 9, 2006, at 2:27 PM, Marty Haught wrote:
> Hey Guys,
>
> Did everyone catch this on upgrading to 1.1.5 immediately? If not,
> read on.
>
> http://weblog.rubyonrails.org/2006/8/9/rails-1-1-5-mandatory-
> security-patch-and-other-tidbits
>
> Cheers,
> Marty
From boulderdenverruby at otherward.net Thu Aug 10 01:41:42 2006
From: boulderdenverruby at otherward.net (Nathan Witmer)
Date: Wed, 9 Aug 2006 23:41:42 -0600
Subject: [Boulder-Denver Ruby Group] Fwd: Rails 1.1.5 upgrade
In-Reply-To: <57f29e620608092125y4d79389ai8bab11a22c5ee187@mail.gmail.com>
References: <57f29e620608091327r5bafa2c5ha8b167ee985c375c@mail.gmail.com>
<7973E7E9-AD18-4F12-A360-F0E26806ED42@otherward.net>
<57f29e620608092125y4d79389ai8bab11a22c5ee187@mail.gmail.com>
Message-ID: <5C3F1BFC-CBFF-4155-B5A8-1CA02047A3F4@otherward.net>
Whoops! Thanks Marty.
On Aug 9, 2006, at 10:25 PM, Marty Haught wrote:
> Forwarding on Nathan's reply...
>
> ---------- Forwarded message ----------
> From: Nathan Witmer
> To: Marty Haught
>
> Upgrade as soon as you possibly can!
From brian at heimidal.net Sat Aug 12 19:02:13 2006
From: brian at heimidal.net (Brian Rose)
Date: Sat, 12 Aug 2006 18:02:13 -0500
Subject: [Boulder-Denver Ruby Group] RubyGems and Rails
Message-ID: <564A73E9-3EFF-4FDD-B6FC-DBF5EFF033F3@heimidal.net>
Hi everyone,
I've had a bit of trouble with a recent upgrade - any help you guys
can offer would be greatly appreciated. :)
After upgrading my staging server to Rails 1.1.6 yesterday, I decided
to clean up the mess of a Ruby installation I put together back when
I first started using Rails and upgrade Ruby to 1.8.4 all in one go.
After speaking to several friends, I decided to reinstall Ruby and
RubyGems to more logical directories.
I removed the existing Ruby-related binaries from /usr/bin and
compiled 1.8.4 to /usr/local/bin. This went off without a hitch. Then
I chose to place RubyGems in /opt/local/. At first everything seemed
fine, until I tried to load an Rails app.
Rails now fails to require rubygems in boot.rb. This issue includes
both old apps and newly created ones. The Apache log states the
following:
./../config/boot.rb:18:in `require': no such file to load -- rubygems
(LoadError)
from ./../config/boot.rb:18
from ./../config/environment.rb:11
from dispatch.cgi:3
[Sat Aug 12 16:02:10 2006] [error] [client 75.4.101.89] Premature end
of script headers: dispatch.cgi
I'm incredibly puzzled, as rubygems can be required in IRB just fine.
I have no idea what the problem might be - I've tried ensuring the
proper path is in $LOAD_PATH via the -I option and that failed to net
a result.
Thanks in advance for any insight you might be able to offer!
Thanks,
Brian
Brian 'Heimidal' Rose
brian at heimidal.net
http://www.heimidal.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20060812/d0c5651a/attachment.html
From ara.t.howard at noaa.gov Sun Aug 13 10:18:13 2006
From: ara.t.howard at noaa.gov (ara.t.howard at noaa.gov)
Date: Sun, 13 Aug 2006 08:18:13 -0600 (MDT)
Subject: [Boulder-Denver Ruby Group] RubyGems and Rails
In-Reply-To: <564A73E9-3EFF-4FDD-B6FC-DBF5EFF033F3@heimidal.net>
References: <564A73E9-3EFF-4FDD-B6FC-DBF5EFF033F3@heimidal.net>
Message-ID:
On Sat, 12 Aug 2006, Brian Rose wrote:
> Hi everyone,
>
> I've had a bit of trouble with a recent upgrade - any help you guys can offer
> would be greatly appreciated. :)
>
> After upgrading my staging server to Rails 1.1.6 yesterday, I decided to
> clean up the mess of a Ruby installation I put together back when I first
> started using Rails and upgrade Ruby to 1.8.4 all in one go. After speaking
> to several friends, I decided to reinstall Ruby and RubyGems to more logical
> directories.
>
> I removed the existing Ruby-related binaries from /usr/bin and compiled 1.8.4
> to /usr/local/bin. This went off without a hitch. Then I chose to place
> RubyGems in /opt/local/. At first everything seemed fine, until I tried to
> load an Rails app.
>
> Rails now fails to require rubygems in boot.rb. This issue includes both old
> apps and newly created ones. The Apache log states the following:
>
> ./../config/boot.rb:18:in `require': no such file to load -- rubygems
> (LoadError)
> from ./../config/boot.rb:18
> from ./../config/environment.rb:11
> from dispatch.cgi:3
> [Sat Aug 12 16:02:10 2006] [error] [client 75.4.101.89] Premature end of
> script headers: dispatch.cgi
>
> I'm incredibly puzzled, as rubygems can be required in IRB just fine.
you probably have two rubys installed: one in /usr/bin and one in
/usr/local/bin. irb, however, probably only exists in /usr/local/bin. if
this is the case it's likely that the compiled ruby will be horked to some
extent with regard to env vars. if you are going to install ruby into a
different path than the system path you want to do the following:
~> export prefix=/usr/local # the non-standard location
~> export LD_LIBRARY_PATH=$prefix/lib
~> export LD_RUN_PATH=$prefix/lib
~> export PATH=$prefix/bin
next make sure ld.so is configurge to pick up libs from /usr/loca/lib - it's
typically not. do a man ld.so to figure out how - easiest if probably
editing /etc/ld.so.conf and running 'sudo ldconfig'.
man 'ld.so' will explain the above but note it has nothing to do with ruby
specifically but with installing binary interdependant packages on a *nix
system. also note ruby can 'work' without doing all of them but aspects
will be broken with respect to extensions. do these steps for each and
every other related package you are compiling/installing - for instance
sqlite and the ruby bindings or the gsl and gsl bindings. this is
absolutely critical. once you have installing/using ruby is easy.
~> configure --prefix=$prefix && make && sudo make install
~> export PATH=$prefix/bin
~> ruby --version
the key elements of the above is that, once the lib paths are setup and
encoded into the binaries you only need PATH specified for everything to work
properly.
good luck.
-a
--
to foster inner awareness, introspection, and reasoning is more efficient than
meditation and prayer.
- h.h. the 14th dali lama
-------------- next part --------------
_______________________________________________
Bdrg-members mailing list
Bdrg-members at rubyforge.org
http://rubyforge.org/mailman/listinfo/bdrg-members
From mghaught at gmail.com Mon Aug 14 16:52:48 2006
From: mghaught at gmail.com (Marty Haught)
Date: Mon, 14 Aug 2006 14:52:48 -0600
Subject: [Boulder-Denver Ruby Group] Boulder-Denver Ruby Group - August 16th
Message-ID: <57f29e620608141352k3b1e5425p861194e8b834222c@mail.gmail.com>
The Boulder-Denver Ruby Group will be meeting on Wednesday, August
16th at our new location (directions below). We will kick things off
at 6pm with a case study on handling processes by Greg Greenstreet of
Collective Intellect. Greg will be reviewing code that he wrote to
launch and manage multiple processes in Ruby. We'll follow that by a
food break and networking.
Around 7:30, Josh Carter will be discussing a management console he
built for a disk array system in Ruby on Rails. He will also focus on
lessons learned and semi-unique problems he faced. It should be an
interesting set of talks. I look forward to seeing everyone there.
Cheers,
Marty
Directions:
Collective Intellect
1414 Pearl St., Suite 200
Boulder, CO 80302
It is located on the East end of the walking mall above a store called
"Baby Doll" on the South side. The Collective Intellect name is on the
door of a stairway leading up to the office.
URL to google maps:
http://tinyurl.com/s4zng
From kevincbw at qwest.net Tue Aug 15 08:38:10 2006
From: kevincbw at qwest.net (Kevin Williams)
Date: Tue, 15 Aug 2006 06:38:10 -0600
Subject: [Boulder-Denver Ruby Group] Help with file processing
Message-ID: <44E1C032.709@qwest.net>
Hello Everyone,
I need to replace the copyright and license information header on a ton
of source files. These files are within a nested directory structure
and have extensions of xsd, java and xml. I am still new to Ruby and
would appreciate any suggestions. I've been searching for examples but
have not found anything close enough to get me going.
Thanks!
--Kevin
From wbruce at gmail.com Tue Aug 15 12:29:02 2006
From: wbruce at gmail.com (Bruce Williams)
Date: Tue, 15 Aug 2006 10:29:02 -0600
Subject: [Boulder-Denver Ruby Group] Help with file processing
In-Reply-To: <44E1C032.709@qwest.net>
References: <44E1C032.709@qwest.net>
Message-ID: <4896b9210608150929t56398874kc6c93ab44b3758ec@mail.gmail.com>
On 8/15/06, Kevin Williams wrote:
> Hello Everyone,
> I need to replace the copyright and license information header on a ton
> of source files. These files are within a nested directory structure
> and have extensions of xsd, java and xml. I am still new to Ruby and
> would appreciate any suggestions. I've been searching for examples but
> have not found anything close enough to get me going.
> Thanks!
> --Kevin
Hi Kevin,
To get to the files, you can use Dir[] globbing, or the 'find'
standard library. Here's an example using Dir[]
--snip--
%w|xsd java xml|.each do |ext|
Dir["base_directory/**/*.#{ext}"].each do |filename|
# Process filename
end
end
--snip--
Replace base_directory in the example with whatever makes sense with
your file stucture. If you have different base directories for each
type of file, you could just iterate through the full globs rather
than just the extensions.
The file processing itself depends on what you're doing. Depending on
the size of the files, you might be able to get away with
File.read(filename).gsub(/your_pattern/,'your_replacement')-- but
maybe not. In any case, File and String are the classes you'll want
to make sure you're familiar with.
Cheers,
Bruce
From kevincbw at qwest.net Tue Aug 15 17:45:54 2006
From: kevincbw at qwest.net (Kevin Williams)
Date: Tue, 15 Aug 2006 15:45:54 -0600
Subject: [Boulder-Denver Ruby Group] Help with file processing
In-Reply-To:
References: <44E1C032.709@qwest.net>
Message-ID: <44E24092.6050009@qwest.net>
Ara and Bruce,
Thanks so much for the help with this. I played around with both of
your suggestions and came up with these two variations which both work
great:
def munge_nested_files
dir = Dir.getwd
Find.find(dir) do |path|
pn = Pathname.new(File.expand_path(path))
ext = pn.extname.delete '.'
if %w(rb java txt).include? ext
munge_file pn
end
end
end
def munge_nested_files_2
Dir["**/*.{rb,java,txt}"].each do |filename|
pn = Pathname.new(File.expand_path(filename))
munge_file pn
end
end
Now I need to come up with munge_file which needs to replace the current
file header with a new file header. I tried Bruce's suggestion
(probably too literally) with a test header:
def munge_file pn
puts "processing <#{ pn.basename }>"
File.open(pn) {|f|
f.gsub(/Old Header/,'New Header')
}
end
and I get this error:
Exception: private method `gsub' called for #
Here is the actual header that I need to replace for the java files (a
little different for the xml and xsd files bit no big deal):
/*
* Copyright (c) 2005 The Apache Software Foundation or its licensors,
as applicable.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Here is the replacement:
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
Thanks in advance!
--Kevin
ara.t.howard at noaa.gov wrote:
> On Tue, 15 Aug 2006, Kevin Williams wrote:
>
>> Hello Everyone,
>> I need to replace the copyright and license information header on a ton
>> of source files. These files are within a nested directory structure
>> and have extensions of xsd, java and xml. I am still new to Ruby and
>> would appreciate any suggestions. I've been searching for examples but
>> have not found anything close enough to get me going.
>> Thanks!
>> --Kevin
>
>
> step one:
>
> require 'find'
> require 'pathname'
> require 'logger'
>
> def munge_file pn, ext, logger
> # this is step two
> end
>
> dir = ARGV.shift || '.'
>
> exts = ARGV
> exts.replace %w( xsd java xml ) if exts.empty?
>
> logger = Logger.new STDERR
>
>
> Find.find(dir) do |path|
> next if %w( . .. ).include? path
>
> pn = Pathname.new(File.expand_path(path))
>
> dirname, basename, extname =
> pn.dirname, pn.basename, pn.extname
>
> ext = extname.delete '.'
>
> next unless exts.include? ext
>
> info{ "processing <#{ pn }>" }
>
> munge_file pn, ext, logger
> end
>
>
> run this on your files and see if it finds the correct ones. then
> post us the
> three example headers and the transformation to the new header.
>
> kind regards.
>
> -a
From wbruce at gmail.com Tue Aug 15 18:00:41 2006
From: wbruce at gmail.com (Bruce Williams)
Date: Tue, 15 Aug 2006 16:00:41 -0600
Subject: [Boulder-Denver Ruby Group] Help with file processing
In-Reply-To: <44E24092.6050009@qwest.net>
References: <44E1C032.709@qwest.net>
<44E24092.6050009@qwest.net>
Message-ID: <4896b9210608151500t57ecd503k48136d8597d00f64@mail.gmail.com>
On 8/15/06, Kevin Williams wrote:
> File.open(pn) {|f|
> f.gsub(/Old Header/,'New Header')
> }
Yeah, a bit too literal (my fault!). If you trust your regex/replacement:
File.open(pn, 'w') do |file|
file.puts File.read(pn).gsub(/Old Header/,'New Header')
end
or something to that effect.
Cheers,
Bruce
PS. Good catch on the {} glob; I'd forgotten that one.
From kevincbw at qwest.net Wed Aug 16 17:20:06 2006
From: kevincbw at qwest.net (Kevin Williams)
Date: Wed, 16 Aug 2006 15:20:06 -0600
Subject: [Boulder-Denver Ruby Group] Help with file processing
In-Reply-To: <4896b9210608151500t57ecd503k48136d8597d00f64@mail.gmail.com>
References: <44E1C032.709@qwest.net>
<44E24092.6050009@qwest.net>
<4896b9210608151500t57ecd503k48136d8597d00f64@mail.gmail.com>
Message-ID: <44E38C06.3030100@qwest.net>
After a great kick-start from Ara and Bruce I have the following working
Ruby command-line script (my first!). Comments welcome and thanks again
guys. I hope I can return the favor some time.
=============================
# Scans files - with a given extension - recursively from the current
# directory replacing the old copyright/license header statement with a
# new version
def munge_file(fn, oh, nh)
puts "processing <#{fn}>"
new_contents = File.read(fn).gsub(Regexp.new(oh), nh)
File.open(fn, 'w') do |file|
file.puts(new_contents)
end
end
if(!ARGV[0])
STDERR.puts "usage: "
exit 0
end
ext = ARGV[0]
old_header = Regexp.escape(File.read(ARGV[1]))
new_header = File.read(ARGV[2])
Dir["**/*.#{ext}"].each do |filename|
munge_file( filename, old_header, new_header)
end
=============================
Bruce Williams wrote:
> On 8/15/06, Kevin Williams wrote:
>
>> File.open(pn) {|f|
>> f.gsub(/Old Header/,'New Header')
>> }
>
>
> Yeah, a bit too literal (my fault!). If you trust your
> regex/replacement:
>
> File.open(pn, 'w') do |file|
> file.puts File.read(pn).gsub(/Old Header/,'New Header')
> end
>
> or something to that effect.
>
> Cheers,
> Bruce
>
> PS. Good catch on the {} glob; I'd forgotten that one.
>
>
>
From 2006 at joshcarter.com Thu Aug 17 12:39:55 2006
From: 2006 at joshcarter.com (Josh Carter)
Date: Thu, 17 Aug 2006 10:39:55 -0600
Subject: [Boulder-Denver Ruby Group] Slides from last night's talk
Message-ID: <1B4B9E81-A988-410A-8F18-E6BA5EB366BA@joshcarter.com>
Hi all,
Slides from my talk are posted here:
http://multipart-mixed.com/software/
If you ever need sick and twisted ruby-win32-fu, and I sincerely hope
you never do, now you know where to look.
Oh, and mental note: next time, put "talk slower" on slide #3. Sorry
about that.
Best regards,
Josh
From stuart4m at yahoo.com Thu Aug 17 16:29:28 2006
From: stuart4m at yahoo.com (Stuart Felenstein)
Date: Thu, 17 Aug 2006 13:29:28 -0700 (PDT)
Subject: [Boulder-Denver Ruby Group] Slides from last night's talk
In-Reply-To: <1B4B9E81-A988-410A-8F18-E6BA5EB366BA@joshcarter.com>
Message-ID: <20060817202928.81359.qmail@web30214.mail.mud.yahoo.com>
Frogs on Rails ?
S
Josh Carter <2006 at joshcarter.com> wrote: Hi all,
Slides from my talk are posted here:
http://multipart-mixed.com/software/
If you ever need sick and twisted ruby-win32-fu, and I sincerely hope
you never do, now you know where to look.
Oh, and mental note: next time, put "talk slower" on slide #3. Sorry
about that.
Best regards,
Josh
_______________________________________________
Bdrg-members mailing list
Bdrg-members at rubyforge.org
http://rubyforge.org/mailman/listinfo/bdrg-members
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20060817/6b3594e1/attachment.html
From djberg96 at gmail.com Sun Aug 20 01:10:38 2006
From: djberg96 at gmail.com (Daniel Berger)
Date: Sat, 19 Aug 2006 23:10:38 -0600
Subject: [Boulder-Denver Ruby Group] Slides from last night's talk
In-Reply-To: <1B4B9E81-A988-410A-8F18-E6BA5EB366BA@joshcarter.com>
References: <1B4B9E81-A988-410A-8F18-E6BA5EB366BA@joshcarter.com>
Message-ID: <44E7EECE.3050309@gmail.com>
Thanks Josh. I actually meant to be there, I just completely forgot.
You could have given me grief about win32-service. :)
BTW, Patrick Hurley has provided us with a patch to fix the 'stop a
service' issue. I'm in the process of reworking win32-service to use
pure Ruby for most things, though the Daemon class will still be C. I
don't use WMI, though.
Also note that windows/pr provides wrappers for many of the methods you
use so that you don't have to redefine them yourself with Win32API. In
addition, see win32/process which provides a handy wrapper for
CreateProcess.
Regards,
Dan
Josh Carter wrote:
> Hi all,
>
> Slides from my talk are posted here:
>
> http://multipart-mixed.com/software/
>
> If you ever need sick and twisted ruby-win32-fu, and I sincerely hope
> you never do, now you know where to look.
>
> Oh, and mental note: next time, put "talk slower" on slide #3. Sorry
> about that.
>
> Best regards,
> Josh
>
> _______________________________________________
> Bdrg-members mailing list
> Bdrg-members at rubyforge.org
> http://rubyforge.org/mailman/listinfo/bdrg-members
>
>
From 2006 at joshcarter.com Mon Aug 21 16:47:12 2006
From: 2006 at joshcarter.com (Josh Carter)
Date: Mon, 21 Aug 2006 14:47:12 -0600
Subject: [Boulder-Denver Ruby Group] Slides from last night's talk
In-Reply-To: <44E7EECE.3050309@gmail.com>
References: <1B4B9E81-A988-410A-8F18-E6BA5EB366BA@joshcarter.com>
<44E7EECE.3050309@gmail.com>
Message-ID: <05E3ED9B-C7B4-473F-BDB9-B67944C8166A@joshcarter.com>
Dan,
I had no idea you were local. Cool! I should mention a few things
that probably aren't evident just from reading the slides:
- When I said "no way to nicely (but assuredly) kill a Ruby process,"
I meant even from win32 APIs. I tried sending control-c, control-
break, etc but nothing worked. The only way I could get the process
to go down was with TerminateProcess.
- I saw win32/process, but its status is listed as "beta" on RAA, so
I stayed away. Is it still beta or would you consider it stable at
this point?
- I wasn't aware of windows/pr. That looks really useful!
You've got a whole bunch of good stuff that I looked at. (And you
must be nuts to keep doing so much Windows stuff.) I only bailed on
Win32::Service because of the stopping issue, and just wrote a
service shell in C++ because I knew I could do it easily. The process
management logically fit in there, too, because then I could
coordinate my Ruby processes with a single service.
Best regards,
Josh
On Aug 19, 2006, at 11:10 PM, Daniel Berger wrote:
> Thanks Josh. I actually meant to be there, I just completely forgot.
> You could have given me grief about win32-service. :)
>
> BTW, Patrick Hurley has provided us with a patch to fix the 'stop a
> service' issue. I'm in the process of reworking win32-service to use
> pure Ruby for most things, though the Daemon class will still be C. I
> don't use WMI, though.
>
> Also note that windows/pr provides wrappers for many of the methods
> you
> use so that you don't have to redefine them yourself with
> Win32API. In
> addition, see win32/process which provides a handy wrapper for
> CreateProcess.
>
> Regards,
>
> Dan
>
> Josh Carter wrote:
>> Hi all,
>>
>> Slides from my talk are posted here:
>>
>> http://multipart-mixed.com/software/
>>
>> If you ever need sick and twisted ruby-win32-fu, and I sincerely hope
>> you never do, now you know where to look.
>>
>> Oh, and mental note: next time, put "talk slower" on slide #3. Sorry
>> about that.
>>
>> Best regards,
>> Josh
>>
>> _______________________________________________
>> Bdrg-members mailing list
>> Bdrg-members at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/bdrg-members
>>
>>
>
> _______________________________________________
> Bdrg-members mailing list
> Bdrg-members at rubyforge.org
> http://rubyforge.org/mailman/listinfo/bdrg-members
From djberg96 at gmail.com Mon Aug 21 22:45:58 2006
From: djberg96 at gmail.com (Daniel Berger)
Date: Mon, 21 Aug 2006 20:45:58 -0600
Subject: [Boulder-Denver Ruby Group] Slides from last night's talk
In-Reply-To: <05E3ED9B-C7B4-473F-BDB9-B67944C8166A@joshcarter.com>
References: <1B4B9E81-A988-410A-8F18-E6BA5EB366BA@joshcarter.com>
<44E7EECE.3050309@gmail.com>
<05E3ED9B-C7B4-473F-BDB9-B67944C8166A@joshcarter.com>
Message-ID: <44EA6FE6.1020409@gmail.com>
Hi Josh,
The nicest way to kill a Ruby, or any, process on Windows is to use
CreateRemoteThread + ExitProcess. At least, according to Jeffrey
Richter, and everything else I've read about it. In fact, this is
exactly what Process.kill does *if* you use win32-process, where I've
defined a custom version. Well, for signals 1, and 4-8 anyway. Signal
9 uses TerminateProcess, while 2 and 3 use GenerateConsoleCtrlEvent.
I suppose I should remove the 'beta' status. I labeled it that way
largely because of Process.fork. I would call Process.fork beta, while
the rest of the package is stable.
Regards,
Dan
Josh Carter wrote:
> Dan,
>
> I had no idea you were local. Cool! I should mention a few things that
> probably aren't evident just from reading the slides:
>
> - When I said "no way to nicely (but assuredly) kill a Ruby process,"
> I meant even from win32 APIs. I tried sending control-c,
> control-break, etc but nothing worked. The only way I could get the
> process to go down was with TerminateProcess.
>
> - I saw win32/process, but its status is listed as "beta" on RAA, so I
> stayed away. Is it still beta or would you consider it stable at this
> point?
>
> - I wasn't aware of windows/pr. That looks really useful!
>
> You've got a whole bunch of good stuff that I looked at. (And you must
> be nuts to keep doing so much Windows stuff.) I only bailed on
> Win32::Service because of the stopping issue, and just wrote a service
> shell in C++ because I knew I could do it easily. The process
> management logically fit in there, too, because then I could
> coordinate my Ruby processes with a single service.
>
> Best regards,
> Josh
>
>
> On Aug 19, 2006, at 11:10 PM, Daniel Berger wrote:
>
>> Thanks Josh. I actually meant to be there, I just completely forgot.
>> You could have given me grief about win32-service. :)
>>
>> BTW, Patrick Hurley has provided us with a patch to fix the 'stop a
>> service' issue. I'm in the process of reworking win32-service to use
>> pure Ruby for most things, though the Daemon class will still be C. I
>> don't use WMI, though.
>>
>> Also note that windows/pr provides wrappers for many of the methods you
>> use so that you don't have to redefine them yourself with Win32API. In
>> addition, see win32/process which provides a handy wrapper for
>> CreateProcess.
>>
>> Regards,
>>
>> Dan
>>
>> Josh Carter wrote:
>>> Hi all,
>>>
>>> Slides from my talk are posted here:
>>>
>>> http://multipart-mixed.com/software/
>>>
>>> If you ever need sick and twisted ruby-win32-fu, and I sincerely hope
>>> you never do, now you know where to look.
>>>
>>> Oh, and mental note: next time, put "talk slower" on slide #3. Sorry
>>> about that.
>>>
>>> Best regards,
>>> Josh
>>>
>>> _______________________________________________
>>> Bdrg-members mailing list
>>> Bdrg-members at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/bdrg-members
>>>
>>>
>>
>> _______________________________________________
>> Bdrg-members mailing list
>> Bdrg-members at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/bdrg-members
>
>
From kweller at itcrucible.com Wed Aug 23 01:14:20 2006
From: kweller at itcrucible.com (Kevin Welller)
Date: Tue, 22 Aug 2006 23:14:20 -0600
Subject: [Boulder-Denver Ruby Group] GIS on Ruby?
Message-ID: <44EBE42C.6010207@itcrucible.com>
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20060822/d6fce32a/attachment.html
From wbruce at gmail.com Wed Aug 23 02:40:46 2006
From: wbruce at gmail.com (Bruce Williams)
Date: Wed, 23 Aug 2006 00:40:46 -0600
Subject: [Boulder-Denver Ruby Group] GIS on Ruby?
In-Reply-To: <44EBE42C.6010207@itcrucible.com>
References: <44EBE42C.6010207@itcrucible.com>
Message-ID: <4896b9210608222340l6e346ab8kbe1193273c98740@mail.gmail.com>
On 8/22/06, Kevin Welller wrote:
>
> Anyone out there have any experience with GIS on Ruby? I have a new
> project with an existing client that might entail such a marriage of
> technologies. Eventually I may even need another Ruby programmer to
> collaborate with me...all depends on how the schedule plays out against
> business drivers.
>
> - Kevin
Kevin,
Not that I'm aware of; I have some experience with GIS (most notably
OILSTOCK, ArcView, and FalconView). Ruby seems to have made few
inroads into government-- with a few notable exceptions; government
contractors, who seem to be the main force behind GIS development,
haven't caught on yet (they're usually a few years behind in my
experience).
But-- Ara works with GIS-related data using Ruby, so I'll defer to
him-- my data is a couple of years old.
Cheers,
Bruce
>
> _______________________________________________
> Bdrg-members mailing list
> Bdrg-members at rubyforge.org
> http://rubyforge.org/mailman/listinfo/bdrg-members
>
>
From ara.t.howard at noaa.gov Wed Aug 23 10:27:05 2006
From: ara.t.howard at noaa.gov (ara.t.howard at noaa.gov)
Date: Wed, 23 Aug 2006 08:27:05 -0600 (MDT)
Subject: [Boulder-Denver Ruby Group] GIS on Ruby?
In-Reply-To: <44EBE42C.6010207@itcrucible.com>
References: <44EBE42C.6010207@itcrucible.com>
Message-ID:
On Tue, 22 Aug 2006, Kevin Welller wrote:
> Anyone out there have any experience with GIS on Ruby? I have a new project
> with an existing client that might entail such a marriage of technologies.
> Eventually I may even need another Ruby programmer to collaborate with
> me...all depends on how the schedule plays out against business drivers.
>
> - Kevin
mapserver is scriptable with ruby. postgis also integrates nicely. we do
some rather high level gis stuff - can you elaborate?
-a
--
to foster inner awareness, introspection, and reasoning is more efficient than
meditation and prayer.
- h.h. the 14th dali lama
-------------- next part --------------
_______________________________________________
Bdrg-members mailing list
Bdrg-members at rubyforge.org
http://rubyforge.org/mailman/listinfo/bdrg-members
From scott at davisworld.org Fri Aug 25 10:57:01 2006
From: scott at davisworld.org (Scott Davis)
Date: Fri, 25 Aug 2006 08:57:01 -0600
Subject: [Boulder-Denver Ruby Group] GIS on Ruby?
In-Reply-To: <44EBE42C.6010207@itcrucible.com>
References: <44EBE42C.6010207@itcrucible.com>
Message-ID: <3D8D5A1F-19F1-4A1F-8242-A051B5DC1463@davisworld.org>
Long overdue response:
Charlie Savage is a local map geek and Rubyista -- http://
cfis.savagexi.com/
Same goes for Peter Williams -- http://pezra.barelyenough.org/blog/
Ditto for Donnie Marino -- http://donaldmarino.com/
Charlie blogs the most about GIS, but Peter and Donnie slip nuggets
into their blogs every once in a while as well.
All good guys -- all smart guys. They were all at the kickoff
meeting, but haven't seen 'em since. In case they aren't on this
mailing list and speak up for themselves, contact me offline and I'll
make some introductions.
I've got mapping experience and Ruby experience, but the intersection
is empty at this point. Just don't get me started on OGC -- I'll talk
your ear off... (grin)
Cheers,
s
Scott Davis
scott at davisworld.org
On Aug 22, 2006, at 11:14 PM, Kevin Welller wrote:
> Anyone out there have any experience with GIS on Ruby? I have a
> new project with an existing client that might entail such a
> marriage of technologies. Eventually I may even need another Ruby
> programmer to collaborate with me...all depends on how the schedule
> plays out against business drivers.
>
> - Kevin
> _______________________________________________
> Bdrg-members mailing list
> Bdrg-members at rubyforge.org
> http://rubyforge.org/mailman/listinfo/bdrg-members
From pjones at pmade.org Sat Aug 26 14:45:27 2006
From: pjones at pmade.org (Peter Jones)
Date: Sat, 26 Aug 2006 12:45:27 -0600
Subject: [Boulder-Denver Ruby Group] Tmp Ruby Programmer Needed
Message-ID:
Please pass this around:
Temp/Contract Ruby Programmer Needed
We are in need of a ruby programmer to work on the back-end of a
rails application. Using a set of internal ruby libraries, you will
process data from various web applications and PDF files, importing
the filtered data into a database via ActiveRecord. The parsing
framework uses both CSS selectors and XML transformations when
necessary.
Some of the parsers have already been written and can be used as a
starting point and serve as an example. It will be expected that you
produce clean, easy to maintain code. You should be comfortable
using Subversion, and working in a Unix (FreeBSD) environment.
This position is short-term, but could develop into a long-term
relationship.
-p
From pezra at barelyenough.org Mon Aug 28 00:06:29 2006
From: pezra at barelyenough.org (Peter Williams)
Date: Sun, 27 Aug 2006 22:06:29 -0600
Subject: [Boulder-Denver Ruby Group] GIS on Ruby?
In-Reply-To: <3D8D5A1F-19F1-4A1F-8242-A051B5DC1463@davisworld.org>
References: <44EBE42C.6010207@itcrucible.com>
<3D8D5A1F-19F1-4A1F-8242-A051B5DC1463@davisworld.org>
Message-ID: <44F26BC5.3030903@barelyenough.org>
Kevin,
I do have a little experience with geospatial apps in Ruby but that was
a couple of years ago. Donnie and Charlie have much more extensive, and
current, experience in this area. I can second Scott's recommendation,
they are both good and smart guys.
Peter
Scott Davis wrote:
> Long overdue response:
>
> Charlie Savage is a local map geek and Rubyista --
> http://cfis.savagexi.com/
> Same goes for Peter Williams -- http://pezra.barelyenough.org/blog/
> Ditto for Donnie Marino -- http://donaldmarino.com/
>
> Charlie blogs the most about GIS, but Peter and Donnie slip nuggets
> into their blogs every once in a while as well.
>
> All good guys -- all smart guys. They were all at the kickoff meeting,
> but haven't seen 'em since. In case they aren't on this mailing list
> and speak up for themselves, contact me offline and I'll make some
> introductions.
>
> I've got mapping experience and Ruby experience, but the intersection
> is empty at this point. Just don't get me started on OGC -- I'll talk
> your ear off... (grin)
>
> Cheers,
> s
> Scott Davis
> scott at davisworld.org
>
>
>
> On Aug 22, 2006, at 11:14 PM, Kevin Welller wrote:
>
>> Anyone out there have any experience with GIS on Ruby? I have a new
>> project with an existing client that might entail such a marriage of
>> technologies. Eventually I may even need another Ruby programmer to
>> collaborate with me...all depends on how the schedule plays out
>> against business drivers.
>>
>> - Kevin
>> _______________________________________________
>> Bdrg-members mailing list
>> Bdrg-members at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/bdrg-members
>
From bascule at gmail.com Mon Aug 28 15:18:36 2006
From: bascule at gmail.com (Tony)
Date: Mon, 28 Aug 2006 13:18:36 -0600
Subject: [Boulder-Denver Ruby Group] Looking for Ruby on Rails programmers
Message-ID:
ClickCaster Inc. (http://www.clickcaster.com) is a recently angel funded
startup located in Boulder, CO. We are developing next generation
interactive consumer & enterprise media platforms for the Web. Our current
focus is on digital audio/video and, more specifically, on podcasting for
consumers use and enterprise platforms. We're democratizing production,
distribution and creating the platforms to connect supply and demand and
we're having a blast doing it. Unlimited Redbull. Bring your dog.
We are inviting qualified candidates to shape the future of our company with
us. If you are a creative person, a quick learner, a mad coder and most of
all you are up for a broad range of challenges from Web 2.0 development to
media creation tools and social networking, this is your dream job.
The terms of the offer may range from a contract to a full-time paid
position with equity and leadership opportunities. The exact terms of the
offer will depend on the outcome of the interviews and other factors.
Required Qualifications
- Practical knowledge of Ruby on Rails framework.
- Web design experience in standards compliant (X)HTML/CSS
- Solid SQL.
- Rich web front end development experience, AJAX and such.
- Comfortable in a Linux environment
- Go-getter with attention to details.
We hold no technologies sacred. Qualification requirements emphasize RoR
framework and Linux platform because of the existing code base and
infrastructure. At the same time we are looking to diversify our collective
skills.
Desired Qualifications and Attributes
- Understanding of digital audio and video formats.
- XSLT design/authoring
- Web service development with REST
- Object oriented design with Java and/or JavaScript.
- Flash and ActionScript.
- MySQL administration.
- Passion for user generated media and media distribution.
- RJS
- Migrations
- Capistrano
- Test driven development/Rake
We also have unpaid and paid intern positions available for coders and web
designers.
Please email your resume and any questions you have to jobs at clickcaster.com.
Feel free to include links to online demo projects, publications, and other
complementary materials. We're looking forward to meeting you!
Tony Arcieri
ClickCaster.com
tony at clickcaster.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20060828/856fbc1c/attachment.html