From brenton.leanhardt at gmail.com Wed Aug 4 15:13:46 2010 From: brenton.leanhardt at gmail.com (brenton leanhardt) Date: Wed, 4 Aug 2010 15:13:46 -0400 Subject: [raleigh.rb] QA contractor positions at Red Hat (involves jruby) Message-ID: Hi all, I've just received word that the Red Hat IT department is planning to hire a few QA contractors to help with a largish-scale test automation project. Though the description below sounds a little generic I can verify that the position will be primarily writing integration tests for Rails applications using jruby and htmlunit. One thing to note about these positions is that they are being filled through a vendor. If you're interested let me know and I'll help put you in contact with them. --Brenton ================== Red Hat's Quality Engineering team is seeking a software engineer with strong development skills and a QA background. This position is to work as apart of a small team of software developers and quality engineers working with a wide variety of technologies in a fast-paced IT environment. The work location will be in Raleigh, NC. Specific Duties/Primary Responsibilities: ? Taking ownership for the testing of a product or areas within a product ? Write clear and accurate bug reports ? Develop tests using automation infrastructure ? Deliver clear status for testing areas in a timely manner ? Participate in the test planing and product planing processes ? Develops test cases and has a solid understanding of testing processes Required Skills & Experience: ? A minimum of 5 years of professional software quality assurance experience ? Java testing background using Selenium and JUnit or TestNG ? Scripting abilities in Python or Ruby ? Familiarity with the Ruby on Rails framework ? Exposure to RESTful web services required ? Strong background in Linux Operating Systems ? Outstanding English communication skills ? Familiarity with Agile/Scrum is a plus ? Experience with open source software developmental methodologies is preferred ? B.S. in computer science or equivalent preferred From thomas at ravinggenius.com Wed Aug 4 19:04:06 2010 From: thomas at ravinggenius.com (Thomas Ingram) Date: Wed, 4 Aug 2010 19:04:06 -0400 Subject: [raleigh.rb] MongoMapper custom relationships Message-ID: I am having trouble with setting up a custom HABTM relationship for MongoMapper. Below is a link to the relevant code. I know I'm doing something wrong, but I don't know what it is. Would someone take a look and tell me how to fix this? http://gist.github.com/508940 -- Thomas Ingram ><> Raving Genius? - foaming at the brain? 919 449.6305 thomas at ravinggenius.com http://www.ravinggenius.com/ http://www.isittheweekendyet.com/ From rick.denatale at gmail.com Wed Aug 4 20:30:32 2010 From: rick.denatale at gmail.com (Rick DeNatale) Date: Wed, 4 Aug 2010 20:30:32 -0400 Subject: [raleigh.rb] MongoMapper custom relationships In-Reply-To: References: Message-ID: Hmm, At the risk of attracting flak from the NoSQListas. Danger Abe Maslow: http://talklikeaduck.denhaven2.com/2010/08/04/when-i-say-no On Wed, Aug 4, 2010 at 7:04 PM, Thomas Ingram wrote: > I am having trouble with setting up a custom HABTM relationship for > MongoMapper. Below is a link to the relevant code. I know I'm doing > something wrong, but I don't know what it is. Would someone take a > look and tell me how to fix this? > > http://gist.github.com/508940 > > -- > Thomas Ingram ><> > Raving Genius? - foaming at the brain? > 919 449.6305 > thomas at ravinggenius.com > http://www.ravinggenius.com/ > http://www.isittheweekendyet.com/ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From mark.bennett.mail at gmail.com Wed Aug 4 21:36:26 2010 From: mark.bennett.mail at gmail.com (Mark Bennett) Date: Wed, 4 Aug 2010 21:36:26 -0400 Subject: [raleigh.rb] MongoMapper custom relationships In-Reply-To: References: Message-ID: You wrote an essay about his question just before he asked it. Spooky. Mark On Wed, Aug 4, 2010 at 8:30 PM, Rick DeNatale wrote: > Hmm, > > At the risk of attracting flak from the NoSQListas. > > Danger Abe Maslow: > > http://talklikeaduck.denhaven2.com/2010/08/04/when-i-say-no > > On Wed, Aug 4, 2010 at 7:04 PM, Thomas Ingram > wrote: > > I am having trouble with setting up a custom HABTM relationship for > > MongoMapper. Below is a link to the relevant code. I know I'm doing > > something wrong, but I don't know what it is. Would someone take a > > look and tell me how to fix this? > > > > http://gist.github.com/508940 > > > > -- > > Thomas Ingram ><> > > Raving Genius? - foaming at the brain? > > 919 449.6305 > > thomas at ravinggenius.com > > http://www.ravinggenius.com/ > > http://www.isittheweekendyet.com/ > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > -- > Rick DeNatale > > Blog: http://talklikeaduck.denhaven2.com/ > Github: http://github.com/rubyredrick > Twitter: @RickDeNatale > WWR: http://www.workingwithrails.com/person/9021-rick-denatale > LinkedIn: http://www.linkedin.com/in/rickdenatale > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas at ravinggenius.com Wed Aug 4 22:50:33 2010 From: thomas at ravinggenius.com (Thomas Ingram) Date: Wed, 4 Aug 2010 22:50:33 -0400 Subject: [raleigh.rb] MongoMapper custom relationships In-Reply-To: References: Message-ID: Interesting article. I thought there might be something wrong with the code in the Relationship module (specifically around line 36). I'm trying to dynamically define a class-level method. Am I doing that correctly? On Wed, Aug 4, 2010 at 20:30, Rick DeNatale wrote: > Hmm, > > At the risk of attracting flak from the NoSQListas. > > Danger Abe Maslow: > > http://talklikeaduck.denhaven2.com/2010/08/04/when-i-say-no -- Thomas Ingram ><> Raving Genius? - foaming at the brain? 919 449.6305 thomas at ravinggenius.com http://www.ravinggenius.com/ http://www.isittheweekendyet.com/ From jeremymcanally at gmail.com Wed Aug 4 23:18:13 2010 From: jeremymcanally at gmail.com (Jeremy McAnally) Date: Wed, 4 Aug 2010 23:18:13 -0400 Subject: [raleigh.rb] MongoMapper custom relationships In-Reply-To: References: Message-ID: What happens exactly? That's the correct way (even better, you can just do base.extend), but do you get NoMethodError or does it just not work...? --Jeremy On Wed, Aug 4, 2010 at 10:50 PM, Thomas Ingram wrote: > Interesting article. I thought there might be something wrong with the > code in the Relationship module (specifically around line 36). I'm > trying to dynamically define a class-level method. Am I doing that > correctly? > > On Wed, Aug 4, 2010 at 20:30, Rick DeNatale wrote: >> Hmm, >> >> At the risk of attracting flak from the NoSQListas. >> >> Danger Abe Maslow: >> >> http://talklikeaduck.denhaven2.com/2010/08/04/when-i-say-no > > -- > Thomas Ingram ><> > Raving Genius? - foaming at the brain? > 919 449.6305 > thomas at ravinggenius.com > http://www.ravinggenius.com/ > http://www.isittheweekendyet.com/ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -- http://jeremymcanally.com/ http://intridea.com/ http://omgbloglol.com My books: http://manning.com/mcanally/ http://humblelittlerubybook.com/ (FREE!) http://railsupgradehandbook.com From thomas at ravinggenius.com Thu Aug 5 00:10:12 2010 From: thomas at ravinggenius.com (Thomas Ingram) Date: Thu, 5 Aug 2010 00:10:12 -0400 Subject: [raleigh.rb] MongoMapper custom relationships In-Reply-To: References: Message-ID: Calling Node.first.terms blows up with a NoMethodError, Tagging.terms_for does not exist (pointing to relationship.rb, about line 8). When I added puts statements around where Tagging.term_for is defined, everything looks fine to me, but sure enough, that method isn't there. I am wide open for suggestions on how to get this code cleaned up, but I just don't have much experience with meta-programming like this. Thanks. On Aug 4, 2010 11:44 PM, "Jeremy McAnally" wrote: What happens exactly? That's the correct way (even better, you can just do base.extend), but do you get NoMethodError or does it just not work...? --Jeremy On Wed, Aug 4, 2010 at 10:50 PM, Thomas Ingram wrote: > Interesting artic... > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-mem... http://jeremymcanally.com/ http://intridea.com/ http://omgbloglol.com My books: http://manning.com/mcanally/ http://humblelittlerubybook.com/ (FREE!) http://railsupgradehandbook.com _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at r... -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick.denatale at gmail.com Thu Aug 5 01:23:43 2010 From: rick.denatale at gmail.com (Rick DeNatale) Date: Thu, 5 Aug 2010 01:23:43 -0400 Subject: [raleigh.rb] MongoMapper custom relationships In-Reply-To: References: Message-ID: On Thu, Aug 5, 2010 at 12:10 AM, Thomas Ingram wrote: > Calling Node.first.terms blows up with a NoMethodError, Tagging.terms_for > does not exist (pointing to relationship.rb, about line 8). When I added > puts statements around where Tagging.term_for is defined, everything looks > fine to me, but sure enough, that method isn't there. I am wide open for > suggestions on how to get this code cleaned up, but I just don't have much > experience with meta-programming like this. I think the problem is on line 40 of relationship.rb self.send(:define_method, "#{Private::plural(this_model)}_for", this_model_for) this is sending define_method to the class (in this case Tagging) which creates an instance method, and you want a class method. I think the solution might be as simple as changing it to: self.class.send(:define_method, "#{Private::plural(this_model)}_for", this_model_for) -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From thomas at ravinggenius.com Thu Aug 5 08:26:19 2010 From: thomas at ravinggenius.com (Thomas Ingram) Date: Thu, 5 Aug 2010 08:26:19 -0400 Subject: [raleigh.rb] MongoMapper custom relationships In-Reply-To: References: Message-ID: self.class.send worked! Thank you so much; this is just what I was looking for. By the way is there a better way to handle this? They way Relationship is currently defined seems to be pretty heavy-handed. On Thu, Aug 5, 2010 at 01:23, Rick DeNatale wrote: > I think the problem is on line 40 of relationship.rb > > self.send(:define_method, "#{Private::plural(this_model)}_for", this_model_for) > > this is sending define_method to the class (in this case Tagging) > which creates an instance method, and you want a class method. > > I think the solution might be as simple as changing it to: > > self.class.send(:define_method, "#{Private::plural(this_model)}_for", > this_model_for) -- Thomas Ingram ><> Raving Genius? - foaming at the brain? 919 449.6305 thomas at ravinggenius.com http://www.ravinggenius.com/ http://www.isittheweekendyet.com/ From rick.denatale at gmail.com Thu Aug 5 11:29:50 2010 From: rick.denatale at gmail.com (Rick DeNatale) Date: Thu, 5 Aug 2010 11:29:50 -0400 Subject: [raleigh.rb] MongoMapper custom relationships In-Reply-To: References: Message-ID: On Thu, Aug 5, 2010 at 8:26 AM, Thomas Ingram wrote: > self.class.send worked! Thank you so much; this is just what I was looking for. > > By the way is there a better way to handle this? They way Relationship > is currently defined seems to be pretty heavy-handed. Well first of all, I really think you are cutting against the paradigm, I think modeling complex relations between models is outside of MongoDB and similar NoSQL data stores wheel house. You are effectively trying to turn that glue model into a join model, and document oriented data stores don't really do joins. I'd suggest that what you are really doing is not the equivalent to habtm, but to has_many :through, and as a side comment I'm not sure why you're habtm method takes a this_model argument, since presumably that's always going to be derivable from the name of self. I think there are two common approaches to many-to-many relationships in mongoDB (and other document oriented data stores are probably similar): 1. In each model have an array of Mongo::ObjectIDs advantage: you can do a direct query to get the collection of 'associated' documents from either end. disadvantage: you need to manage doing the appropriate updates to both sides when adding or removing a relationship between two documents 2. Have an array of object ids but only in one object advantage: no need to sync updates disadvantage: finding the collection from one side is easy with just one query, from the other side you need to fetch to collection of ids then do a second query to get those documents. Cooking up a join 'document' as you are doing seems to be a bad idea. You need to do at least two queries from either side as far as I can see. Since the updates are atomic only on single document types, you run the risk of concurrency control issues. >From my brief look, one of the things that I like about MongoMapper is that it seems to use conventions which are more in line with the prevailing wisdom on schema design for mongoDB 1. Rich documents over relationships. 2. Simplification of 'trivial' relationships 3. Don't over normalize, in fact I'd almost say that a normalized document based schema was one which embedded as much data as possible, almost the opposite of where relational orthodoxy leads. In contrast, MongoMapper's competitor MongoID tries to look more like AR including things like a very AREL like query api. I'm a little more familiar with that, albeit in a role of trying to convert an app from mongodb/mongoid to AR/Sql, and all I can say, anecdotally is that that approach seems to generate more WTF moments. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From thomas at ravinggenius.com Thu Aug 5 14:26:36 2010 From: thomas at ravinggenius.com (Thomas Ingram) Date: Thu, 5 Aug 2010 14:26:36 -0400 Subject: [raleigh.rb] MongoMapper custom relationships In-Reply-To: References: Message-ID: Thanks for the feedback. My responses are below. On Thu, Aug 5, 2010 at 11:29, Rick DeNatale wrote: > Well first of all, I really think you are cutting against the > paradigm, I think modeling complex relations between models is outside > of MongoDB and similar NoSQL data stores wheel house. > > You are effectively trying to turn that glue model into a join model, > and document oriented data stores don't really do joins. ?I'd suggest > that what you are really doing is not the equivalent to habtm, but to > has_many :through, and as a side comment I'm not sure why you're habtm > method takes a this_model argument, since presumably that's always > going to be derivable from the name of self. So what is the difference between a bi-directional has_many :through relationship and a habtm relationship in this case? I'm not storing anything in Tagging except the references to Node and Term. When I originally wrote these methods, I wasn't sure if/how to derive the this_model argument from self. This is on a short-term list of things to fix. > I think there are two common approaches to many-to-many relationships > in mongoDB (and other document oriented data stores are probably > similar): > > 1. In each model have an array of Mongo::ObjectIDs > ? ?advantage: you can do a direct query to get the collection of > 'associated' documents from either end. > ? ?disadvantage: you need to manage doing the appropriate updates to > both sides when adding or removing a relationship between two > documents I thought of this before, but to me this seems slightly uglier than having a glue model. I might be persuaded to change my mind, but for now the glue model works. I'm not concerned about performance, because speed is highly touted as a selling point for NoSQL, and one extra query isn't going to make much difference, in my opinion. > 2. Have an array of object ids but only in one object > ? ?advantage: no need to sync updates > ? ?disadvantage: finding the collection from one side is easy with > just one query, from the other side you need to fetch to collection of > ids then do a second query to get those documents. I considered this approach as well, but quickly dismissed it because the relationships are not equally balanced, and going in the "ugly" direction is a lot of work including manually looping over every item in a potentially large collection. This would be horribly inefficient. > Cooking up a join 'document' as you are doing seems to be a bad idea. > You need to do at least two queries from either side as far as I can > see. Since the updates are atomic only on single document types, you > run the risk of concurrency control issues. I hadn't thought much about concurrency issues, but I'm not worried about it. Regardless suggestion number one above seems to have the same issue. > >From my brief look, one of the things that I like about MongoMapper is > that it seems to use conventions which are more in line with the > prevailing wisdom on schema design for mongoDB > > ? 1. Rich documents over relationships. > ? 2. Simplification of 'trivial' relationships > ? 3. Don't over normalize, in fact I'd almost say that a normalized > document based schema was one which embedded as much data as possible, > almost the opposite of where relational orthodoxy leads. Honestly I like relational databases, and I'm not overly impressed with NoSQL. I wanted to use a relational database, but in doing so I would have to make non-trivial compromises regarding the Node model. Nodes really need a schema-free store. Currently making schema-free database behave more like a relational database is less pain than going the other direction. My current approach is the most palatable solution I could think of. Unless somewhere there is a relational database that allows for tables to be optionally schema-free. That would be my ideal choice. > In contrast, MongoMapper's competitor MongoID tries to look more like > AR including things like a very AREL like query api. ?I'm a little > more familiar with that, albeit in a role of trying to convert an app > from mongodb/mongoid to AR/Sql, and all I can say, anecdotally is that > that approach seems to generate more WTF moments. I tried both Mongoid and MongoMapper and the only reason I went with MongoMapper was because I was able to make it run. -- Thomas Ingram ><> Raving Genius? - foaming at the brain? 919 449.6305 thomas at ravinggenius.com http://www.ravinggenius.com/ http://www.isittheweekendyet.com/ From thomas at ravinggenius.com Sat Aug 7 00:12:37 2010 From: thomas at ravinggenius.com (Thomas Ingram) Date: Sat, 7 Aug 2010 00:12:37 -0400 Subject: [raleigh.rb] STI and generated route helpers Message-ID: My models look something like this: class Node end class Image < Node end class TextBlock < Node end In the nodes/_form.html.haml partial, I have: = form_for @node do |form| / ... In the NodesController... when @node == Node.new, everything works. when @node == TextBlock.new, I get a NoMethodError: undefined method `text_block_path' for #<#:0x7f9a837c8ab0>. My guess is that Rails does something like send("#{@node.class.name}_path". What is the normal approach to solving this problem? Is there an option I can pass to form_for or something? -- Thomas Ingram ><> Raving Genius? - foaming at the brain? 919 449.6305 thomas at ravinggenius.com http://www.ravinggenius.com/ http://www.isittheweekendyet.com/ From steve at iannopollo.com Sat Aug 7 00:28:52 2010 From: steve at iannopollo.com (Steve Iannopollo) Date: Sat, 7 Aug 2010 00:28:52 -0400 Subject: [raleigh.rb] STI and generated route helpers In-Reply-To: References: Message-ID: <4EAB7104-EB9C-4EC6-B78C-2289C8B92905@iannopollo.com> You could go old-school and just use: - form_for @node, :url => node_path do |f| but I'm not a big fan of the magical features of form_for. Sorry if this isn't too useful. :-) -Steve On Aug 7, 2010, at 12:12 AM, Thomas Ingram wrote: > My models look something like this: > > class Node > end > > class Image < Node > end > > class TextBlock < Node > end > > In the nodes/_form.html.haml partial, I have: > > = form_for @node do |form| > / ... > > In the NodesController... > when @node == Node.new, everything works. > when @node == TextBlock.new, I get a NoMethodError: undefined method > `text_block_path' for #<#:0x7f9a837c8ab0>. > > My guess is that Rails does something like > send("#{@node.class.name}_path". What is the normal approach to > solving this problem? Is there an option I can pass to form_for or > something? > > -- > Thomas Ingram ><> > Raving Genius? - foaming at the brain? > 919 449.6305 > thomas at ravinggenius.com > http://www.ravinggenius.com/ > http://www.isittheweekendyet.com/ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From thomas at ravinggenius.com Sat Aug 7 00:41:38 2010 From: thomas at ravinggenius.com (Thomas Ingram) Date: Sat, 7 Aug 2010 00:41:38 -0400 Subject: [raleigh.rb] STI and generated route helpers In-Reply-To: <4EAB7104-EB9C-4EC6-B78C-2289C8B92905@iannopollo.com> References: <4EAB7104-EB9C-4EC6-B78C-2289C8B92905@iannopollo.com> Message-ID: Actually my work-around was to move form_for to edit.html.haml and new.html.haml. Before that I tried every combination of option I could think of for form_for, but I couldn't something to work for both new and edit. However I got lucky with my last DDG search: http://code.alexreisner.com/articles/single-table-inheritance-in-rails.html. He shows a simple solution for just this very issue. On Sat, Aug 7, 2010 at 00:28, Steve Iannopollo wrote: > You could go old-school and just use: > > - form_for @node, :url => node_path do |f| > > but I'm not a big fan of the magical features of form_for. Sorry if this isn't too useful. :-) -- Thomas Ingram ><> Raving Genius? - foaming at the brain? 919 449.6305 thomas at ravinggenius.com http://www.ravinggenius.com/ http://www.isittheweekendyet.com/ From mshiltonj at gmail.com Tue Aug 10 18:09:42 2010 From: mshiltonj at gmail.com (Steven Hilton) Date: Tue, 10 Aug 2010 18:09:42 -0400 Subject: [raleigh.rb] Corrupted session and/or cookie? Message-ID: Hello, We're using cookie store sessions on a rails 2.3.5 app, and we're starting to see the session show up as empty for no known reason at infrequent, seemingly random and difficult to reproduce intervals. I'm wondering if anyone has seen anything similar to this or has any suggestions for futher investigation. Do I go digging in the sesson store code? In my most recent occurrence, I was logged in to the app using three different browsers on two machines, for a total of three different sessions. Two browsers were sitting idle while I was actively working in the third. We also have ajax calls that will frequently poll to see if the session has expired, and pre-emptively redirect to the login screen when that happens. We've ratcheted up that poll interval in development as we're trying to determine the root cause of this issue, so all three browser were hitting server at least once per minute. Also, we've added code to tell the difference between an expired session and an invalid session, where and expired session has a expired_at field with a date of before now, and an invalid cookie has no expired_at field at all. All three sessions went invalid at about the same time - within about 30 seconds of each other, based on the ajax calls also reporting invalid sessions. It looks as though the session cookie is good and valid and has the data we expect, but for some reason the session is not getting populated. 99%+ of the time it works as expected, then boom -- breakie. And it seems to break for many different sessions at or about the same time. The debugging code is straightfoward: require 'base64' module DebugSession def debug_session(request, session, logger) request.cookies.each do |k,v| logger.debug("** Request Cookie: #{k}: #{v}"); if k == '_session_id' logger.debug("decoded and unmarshalled cookie: #{Marshal.load(Base64.decode64(v)).inspect}") end end unless request.cookies.key?('_session_id') logger.debug("WARNING: _session_id cookie not found!") end logger.debug("** Session expires: #{session[:expires_at]}") logger.debug("** Session user: #{session[:user]}") end module_function :debug_session end and in the LoginController#check_expired.... [...] DebugSession.debug_session(request, session, logger) if ! session_exists? logger.debug("** Session is INVALID"); response.headers['dead-session'] = 'yes' response.headers['invalid-session'] = 'yes' elsif session_expired? logger.debug("** Session has EXPIRED"); response.headers['dead-session'] = 'yes' else response.headers['dead-session'] = 'no' logger.debug("** Session has not expired"); end [...] And the logging output for a request is: Processing LoginController#check_expired (for 192.168.43.136 at 2010-08-10 14:58:54) [GET] 2010-08-10 14:58:54 PID[ 3537] INFO Parameters: {"action"=>"check_expired", "controller"=>"login"} 2010-08-10 14:58:54 PID[ 3537] DEBUG ** Request Cookie: _session_id: BAh7DjoPZXhwaXJlc19hdEl1OglUaW1lDfIcHoBApmDLBjofQG1hcnNoYWxfd2l0aF91dGNfY29lcmNpb25GOg51c2VyX3R5cGUiCVVzZXI6DnNzb19sb2dpbiIKYWRtaW46CmJ0aW1lIg8xMjgxMjgxNjQxOhFzc29fcGFzc3dvcmQiDHJhcml0YW46CXVzZXJpBjoPc2Vzc2lvbl9pZCIlMDg3NmRjYWFkZDk4ZDYwNDQwMmNmZGFlOTE0MTQxYjc6DWxpY2Vuc2VkVCIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==--543b08690e4ca255f6f6fe733ab8383c3a3ad1f9 2010-08-10 14:58:54 PID[ 3537] DEBUG decoded and unmarshalled cookie: {:user_type=>"User", :expires_at=>Fri Aug 07 14:50:54 -0400 2020, :sso_login=>"admin", :btime=>"1281281641", :sso_password=>"[XXXXXX]", :user=>1, :session_id=>"0876dcaadd98d604402cfdae914141b7", :licensed=>true, "flash"=>{}} 2010-08-10 14:58:54 PID[ 3537] DEBUG ** Session expires: 2010-08-10 14:58:54 PID[ 3537] DEBUG ** Session user: 2010-08-10 14:58:54 PID[ 3537] DEBUG ** Session is INVALID 2010-08-10 14:58:54 PID[ 3537] DEBUG ** Headers: {"invalid-session"=>"yes", "dead-session"=>"yes", "expires"=>"Sat Jan 01 00:00:00 UTC 1972", "Pragma"=>"no-cache", "Cache-Control"=>"no-cache"} 2010-08-10 14:58:54 PID[ 3537] INFO Completed in 30ms (View: 2, DB: 10) | 200 OK [https://192.168.43.149/login/check_expired] Any thoughts or pointers would be appreciated. Thanks. - Steven -------------- next part -------------- An HTML attachment was scrubbed... URL: From danwahoo2 at yahoo.com Fri Aug 13 12:20:45 2010 From: danwahoo2 at yahoo.com (Dan Ziernicki) Date: Fri, 13 Aug 2010 09:20:45 -0700 (PDT) Subject: [raleigh.rb] Incubator Startup seeks Co-Founder/CTO/Programmer Message-ID: <200396.10629.qm@web38401.mail.mud.yahoo.com> Are you a tech-guy or tech-gal? Developer? Programmer? Do you want to be a part of an exciting new startup which is already accepted into a prestigious incubator? We are looking for a developer to join the team and manage all the code and technology behind our product for 12 weeks during the duration of the incubator program. Although we cannot pay you in cash, we will provide furnished housing in the RTP area for 12 weeks and a significant equity stake. Our platform is built on Linux, Apache, MySQL, PHP, and Java. We are looking for a very capable developer who can handle the back end code, server maintenance, and front end user interface. You may be perfect if you like: Exciting and fast moving environments, being around other motivated people, sports, late working nights with good people, opportunities to meet top executives and investors throughout the country, and startup risk/reward opportunities. Think you fit the bill? Contact us immediately via Dan at Ziernicki.com Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathaniel at talbott.ws Mon Aug 16 11:06:15 2010 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Mon, 16 Aug 2010 11:06:15 -0400 Subject: [raleigh.rb] September Hack Night Message-ID: I'll be on the road to Nashville on 9/2, as will the folks who usually cover for me. Anyone want to adopt the next Hack Night, or should we just skip a month? http://www.meetup.com/raleighrb/calendar/14349723/ You'll get the (somewhat dubious) honor of being the Event Organizer, and me probably asking you to do it again in the future. Anyone game? -- Nathaniel Talbott <:((>< From pelargir at gmail.com Tue Aug 17 14:42:00 2010 From: pelargir at gmail.com (Matthew Bass) Date: Tue, 17 Aug 2010 14:42:00 -0400 Subject: [raleigh.rb] Pre-Meeting Chow Message-ID: Where's the group meeting these days? This will be my first meetup in 5 months and I can't remember if we're still going to Baja or not. Matthew From redinger at gmail.com Tue Aug 17 15:33:40 2010 From: redinger at gmail.com (Christopher Redinger) Date: Tue, 17 Aug 2010 15:33:40 -0400 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: References: Message-ID: <699A7FC3-9C4C-46B8-BE67-A686D41DC74F@gmail.com> On Aug 17, 2010, at 2:42 PM, Matthew Bass wrote: > Where's the group meeting these days? This will be my first meetup in 5 months and I can't remember if we're still going to Baja or not. I guess the Ruckus and Cloo experiments didn't go too well. I'd be up for something other than Baja personally - got any other suggestions for that area? -- Christopher Redinger http://agiledisciple.com Agile Ruby and Rails Development (919) 386-9643 From pelargir at gmail.com Tue Aug 17 15:46:03 2010 From: pelargir at gmail.com (Matthew Bass) Date: Tue, 17 Aug 2010 15:46:03 -0400 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <699A7FC3-9C4C-46B8-BE67-A686D41DC74F@gmail.com> References: <699A7FC3-9C4C-46B8-BE67-A686D41DC74F@gmail.com> Message-ID: <66E28E0D-9992-46C5-8DDE-E87EF3D7D9B6@gmail.com> On Aug 17, 2010, at 3:33 PM, Christopher Redinger wrote: > I guess the Ruckus and Cloo experiments didn't go too well. > > I'd be up for something other than Baja personally - got any other suggestions for that area? Neomonde is over on Hillsborough (3817 Beryl Road to be exact). They have really good Mediterranean food. There are also plenty of fast food places west of the Western/Avent Ferry intersection. Matthew From ken.auer at rolemodelsoftware.com Tue Aug 17 16:19:08 2010 From: ken.auer at rolemodelsoftware.com (Ken Auer) Date: Tue, 17 Aug 2010 16:19:08 -0400 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <66E28E0D-9992-46C5-8DDE-E87EF3D7D9B6@gmail.com> References: <699A7FC3-9C4C-46B8-BE67-A686D41DC74F@gmail.com> <66E28E0D-9992-46C5-8DDE-E87EF3D7D9B6@gmail.com> Message-ID: I'm up for Neomonde... never been there. Will 5:30 work? Ken On Tue, Aug 17, 2010 at 3:46 PM, Matthew Bass wrote: > > On Aug 17, 2010, at 3:33 PM, Christopher Redinger wrote: > > > I guess the Ruckus and Cloo experiments didn't go too well. > > > > I'd be up for something other than Baja personally - got any other > suggestions for that area? > > > Neomonde is over on Hillsborough (3817 Beryl Road to be exact). They have > really good Mediterranean food. > > There are also plenty of fast food places west of the Western/Avent Ferry > intersection. > > Matthew > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Ken Auer The Extreme Programming Software Studio? RoleModel Software 919-557-6352 (v) 6720 RoleModel Way 919-342-5016 (f) Holly Springs, NC 27540 919-622-8315 (m) "Christianity is not a plug-in, it's an operating system" (see Mark 12:28-31) -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathaniel at talbott.ws Tue Aug 17 16:21:09 2010 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Tue, 17 Aug 2010 16:21:09 -0400 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <66E28E0D-9992-46C5-8DDE-E87EF3D7D9B6@gmail.com> References: <699A7FC3-9C4C-46B8-BE67-A686D41DC74F@gmail.com> <66E28E0D-9992-46C5-8DDE-E87EF3D7D9B6@gmail.com> Message-ID: On Tue, Aug 17, 2010 at 3:46 PM, Matthew Bass wrote: > Neomonde is over on Hillsborough (3817 Beryl Road to be exact). They have > really good Mediterranean food. Do they have any parking? > There are also plenty of fast food places west of the Western/Avent Ferry > intersection. Lets discuss other spots at Baja tonight - probably too late to decide on something else at this point. See ya'll there around 5:30! -- Nathaniel Talbott <:((>< From ken.auer at rolemodelsoftware.com Tue Aug 17 18:52:32 2010 From: ken.auer at rolemodelsoftware.com (Ken Auer) Date: Tue, 17 Aug 2010 18:52:32 -0400 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: References: <699A7FC3-9C4C-46B8-BE67-A686D41DC74F@gmail.com> <66E28E0D-9992-46C5-8DDE-E87EF3D7D9B6@gmail.com> Message-ID: Sorry I missed it... I got a flat tire on the way there and found out that my jack and spare tire were not agile at all. Hope dinner and the presentation were both winners. Ken On Tue, Aug 17, 2010 at 4:21 PM, Nathaniel Talbott wrote: > On Tue, Aug 17, 2010 at 3:46 PM, Matthew Bass wrote: > > > Neomonde is over on Hillsborough (3817 Beryl Road to be exact). They have > > really good Mediterranean food. > > Do they have any parking? > > > > There are also plenty of fast food places west of the Western/Avent Ferry > > intersection. > > Lets discuss other spots at Baja tonight - probably too late to decide > on something else at this point. > > See ya'll there around 5:30! > > > -- > Nathaniel Talbott > <:((>< > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Ken Auer The Extreme Programming Software Studio? RoleModel Software 919-557-6352 (v) 6720 RoleModel Way 919-342-5016 (f) Holly Springs, NC 27540 919-622-8315 (m) "Christianity is not a plug-in, it's an operating system" (see Mark 12:28-31) -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidbogus at gmail.com Wed Aug 18 12:45:21 2010 From: davidbogus at gmail.com (David Bogus) Date: Wed, 18 Aug 2010 12:45:21 -0400 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: References: <699A7FC3-9C4C-46B8-BE67-A686D41DC74F@gmail.com> <66E28E0D-9992-46C5-8DDE-E87EF3D7D9B6@gmail.com> Message-ID: I have to ask. Did you have a test for that? On Tue, Aug 17, 2010 at 6:52 PM, Ken Auer wrote: > Sorry I missed it... I got a flat tire on the way there and found out that > my jack and spare tire were not agile at all. ?Hope dinner and the > presentation were both winners. > Ken > > On Tue, Aug 17, 2010 at 4:21 PM, Nathaniel Talbott > wrote: >> >> On Tue, Aug 17, 2010 at 3:46 PM, Matthew Bass wrote: >> >> > Neomonde is over on Hillsborough (3817 Beryl Road to be exact). They >> > have >> > really good Mediterranean food. >> >> Do they have any parking? >> >> >> > There are also plenty of fast food places west of the Western/Avent >> > Ferry >> > intersection. >> >> Lets discuss other spots at Baja tonight - probably too late to decide >> on something else at this point. >> >> See ya'll there around 5:30! >> >> >> -- >> Nathaniel Talbott >> <:((>< >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > -- > Ken Auer > The Extreme Programming Software Studio? > RoleModel Software? ? ? ? ? ? ? 919-557-6352 (v) > 6720 RoleModel Way? ? ? ? ? ? 919-342-5016 (f) > Holly Springs, NC 27540? ? ?? 919-622-8315 (m) > > ? ? "Christianity is not a plug-in, it's an operating system" (see Mark > 12:28-31) > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Dave's Definitions: Morning, is after I've slept for more than four hours. Lunch is the second meal of the day no matter the hour of consumption. A long drive is one longer then you have last slept. Ineffable, if you don't understand I couldn't possibly explain it. From mshiltonj at gmail.com Thu Aug 19 07:09:20 2010 From: mshiltonj at gmail.com (Steven Hilton) Date: Thu, 19 Aug 2010 07:09:20 -0400 Subject: [raleigh.rb] Corrupted session and/or cookie? In-Reply-To: References: Message-ID: I was asked offlist about the resolution to this. Here is what I said: A few backtraces in rails core pointed to another before filter in our code that was incorrectly and silently resetting the session. The randomness was due to ntpd resetting the system clock and borking a time comparison. Did you know that ntpd setting the system time will also change the value of 'btime' in /proc/stat ?! - Steven On Tue, Aug 10, 2010 at 6:09 PM, Steven Hilton wrote: > Hello, > > We're using cookie store sessions on a rails 2.3.5 app, and we're starting > to see the session show up as empty for no known reason at infrequent, > seemingly random and difficult to reproduce intervals. I'm wondering if > anyone has seen anything similar to this or has any suggestions for futher > investigation. Do I go digging in the sesson store code? > > [snip] > > Any thoughts or pointers would be appreciated. Thanks. > > - Steven > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jared.haworth at gmail.com Thu Aug 19 23:21:24 2010 From: jared.haworth at gmail.com (Jared Haworth) Date: Thu, 19 Aug 2010 23:21:24 -0400 Subject: [raleigh.rb] Corrupted session and/or cookie? In-Reply-To: References: Message-ID: <3B654141-CA8D-4F08-93EA-C9FEC799B260@gmail.com> I've seen something similar happen when using two application servers which have mis-matched time values. The server "in the future" tends to expire the cookie from the server "in the past." That was a fun one to debug! - Jared On Aug 19, 2010, at 7:09 AM, Steven Hilton wrote: > I was asked offlist about the resolution to this. Here is what I said: > > A few backtraces in rails core pointed to another before filter in our code that was incorrectly and silently resetting the session. The randomness was due to ntpd resetting the system clock and borking a time comparison. Did you know that ntpd setting the system time will also change the value of 'btime' in /proc/stat ?! > > - Steven > > On Tue, Aug 10, 2010 at 6:09 PM, Steven Hilton wrote: > Hello, > > We're using cookie store sessions on a rails 2.3.5 app, and we're starting to see the session show up as empty for no known reason at infrequent, seemingly random and difficult to reproduce intervals. I'm wondering if anyone has seen anything similar to this or has any suggestions for futher investigation. Do I go digging in the sesson store code? > > > [snip] > > > Any thoughts or pointers would be appreciated. Thanks. > > - Steven > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: From sleight42 at gmail.com Fri Aug 20 21:45:51 2010 From: sleight42 at gmail.com (Evan Light) Date: Fri, 20 Aug 2010 21:45:51 -0400 Subject: [raleigh.rb] Ruby DCamp 9/17-19 complete with fully day Code Retreat (and FREE as in beer) Message-ID: <5319151B-0AF5-4564-B62B-5811C9EED018@gmail.com> Hey folks, If you're interested in sharing what you know about Ruby, new to Ruby, or want to get together with other people who are actively interested in improving the Ruby ecosystem, you should come out to Ruby DCamp. It's (still) an Open Space/unconference event driven entirely by the attendees. In the traditional Ruby polyglot spirit, this year we're reaching out beyond just the Ruby language itself. We have Michael Fogus, the author of The Joy of Clojure, attending along with Matt Podwysocki, a strong functional programming advocate, and Chris Williams renowned for his support and love of JavaScript (e.g., he's the organizer of the original JSConf). As a reminder, Ruby DCamp is being held in Prince William Forest Park in Manassas, VA this year and will be free. Day 1 is a Code Retreat and Days 2 and 3 are the usual Open Space event that people have come to know and love. We're population limited to 76 people and are almost full. Hope to see you in the woods! Evan Light