[SDRuby] Authorize.net card present authorization

2010-09-27 Thread Guyren Howe
I'm looking to do Authorize.net card present credit card operations. active_merchant doesn't appear to support it, but there's a longstanding fork by square that claims to. Can anyone comment on this fork, or any other simple way to implement authorize.net card present transactions? -- SD Rub

[SDRuby] Rails 3: created_at being set with local time, but retrieved as UTC

2010-10-26 Thread Guyren Howe
This seems simple and daft, but I'm saving records and they're getting saved with the created_at time set to local time. But when I retrieve these records and do time comparisons with these values, it's treating them as UTC, so everything is off by 7 hours. I've got the time zone set in my Appl

Re: [SDRuby] Rails 3: created_at being set with local time, but retrieved as UTC

2010-10-26 Thread Guyren Howe
On Oct 26, 2010, at 4:41 PM, Jason King wrote: > When you say you're setting your timezone in your Application controller, did > you mean in your application config? It should be set in > config/application.rb It was set in Application.rb as well. Trying a bigger hammer. Not working. :-( -- S

Re: [SDRuby] Rails 3: created_at being set with local time, but retrieved as UTC

2010-10-26 Thread Guyren Howe
On Oct 26, 2010, at 6:03 PM, Jason King wrote: > And you have this in your Application class? > > config.time_zone = 'Pacific Time (US & Canada)' > > If so, some gem you're not taking into account that might be messing with the > before/after chain? I don't think so. It clearly *has* that set

[SDRuby] 10.6 installing pg gem: "Can't find the 'libpq-fe.h header"

2010-11-08 Thread Guyren Howe
Google isn't helping me here. Following a disk repair, I need to reinstall the pg gem for Ruby 1.9.2. I'm using: gem install pg -- --with-opt-include=/opt/local/include/postgresql84/ -opt-lib=/opt/local/lib/postgresql84/ and libpq-fe.h is definitely at: /opt/local/include/postgresql84/libpq-fe

Re: [SDRuby] 10.6 installing pg gem: "Can't find the 'libpq-fe.h header"

2010-11-08 Thread Guyren Howe
me. > Although, I have PG installed via brew (and it looks like you are on > macports). > > > On Mon, Nov 8, 2010 at 1:30 PM, Guyren Howe wrote: > Google isn't helping me here. Following a disk repair, I need to reinstall > the pg gem for Ruby 1.9.2. > > I'm

Re: [SDRuby] 10.6 installing pg gem: "Can't find the 'libpq-fe.h header"

2010-11-08 Thread Guyren Howe
On Nov 8, 2010, at 3:05 PM, Darren Boyd wrote: > Turns out I'm unable to run a c compiler, and that this is not fixed by > installing developer tools. > > > Did you do a "Software Update?" If you did a disk repair, maybe you are on > an older version of developer tools? > > $ xcodebuild -vers

[SDRuby] Rails 3: pages all suddenly start coming up blank

2010-12-16 Thread Guyren Howe
I've an unremarkable Rails 3 app which I've tried under both Mongrel and Unicorn. Either way, after an indeterminate period, all the pages start returning entirely blank. The log shows that everything has executed normally. I can be reloading a page I've already got open, with no changes to the

Re: [SDRuby] Rails 3: pages all suddenly start coming up blank

2010-12-17 Thread Guyren Howe
hine)? is there any > possibility this issue stems from some networking misconfiguration? > > i ask because the logs "show everything has executed normally," which makes > me wonder if it is a client-side error given what little i know. > > On Dec 16, 2010, at 10:59 PM, Guyren How

[SDRuby] Consider Postgres instead of Redis or the like

2011-01-06 Thread Guyren Howe
For anyone convinced by the (very good) presentation tonight to commit to Redis, or some other NoSQL solution, I encourage you to consider Postgres. Suitably tuned, perhaps running from a RAM Disk, it shows similar, much of the time the best, performance -- but with much greater flexibility.

Re: [SDRuby] Consider Postgres instead of Redis or the like

2011-01-07 Thread Guyren Howe
On Jan 7, 2011, at 8:46 AM, Matt Aimonetti wrote: > I'd be interested in knowing how you would implement something like Redis > sorted set with Postgres. > Also, do you have any pointers to run Postgres in memory with scheduled flush > to disk? > > A in depth presentation on postgres vs the wor

Re: [SDRuby] SD Rails meetup next week

2011-01-07 Thread Guyren Howe
On Jan 7, 2011, at 3:03 PM, Jimmy wrote: > Someone recently started a Rails meetup group here in San Diego. The > first meeting is next week and it looks like it could use some more > love. Take a look if you're interested, and maybe I'll see you there: > > http://www.meetup.com/sdrails/ I don’t

[SDRuby] authlogic apparently not saving user session

2011-02-08 Thread Guyren Howe
I do this: class UserSessionsController < ApplicationController def create @user = User.where(login: params['user_session']['login']).first @user_session = UserSession.create params[:user_session], @user, params[:user_session][:organization_id] if @user_session.errors.empty? current_user = @user_

Re: [SDRuby] authlogic apparently not saving user session

2011-02-09 Thread Guyren Howe
On Feb 8, 2011, at 10:48 PM, Ben Hughes wrote: Wow, thanks for the fast response. > I think this has something to do with you overriding that "self.create" > method on UserSession. If you have to override it, try invoking super(user) > within it so as to make sure the actual authlogic create m

[SDRuby] Authlogic for API

2011-02-25 Thread Guyren Howe
I’m finding this surprisingly difficult to sort out. I’ve a website that is mostly for access by a REST API. It uses Authlogic. I naively assumed that if the API client had the user authenticate and then returned the cookie on subsequent actions that they would be logged in, but they aren’t. F

[SDRuby] included on nested mixin?

2011-03-07 Thread Guyren Howe
Can’t seem to find a clean solution to this. I have nested includes in a gem I’m developing. So I have: supereasy/ lib/ supereasy/ easy_this My supereasy.rb includes easy_this, and I want easy_this to install a before_filter into the controller i

[SDRuby] Hosted website for girl scout troop

2011-03-08 Thread Guyren Howe
My daughter’s girl scout troop could use a website to be better organized. We would want simple calendaring with invite management, and simple address list, photo and document sharing. Nothing terribly fancy. Seems like something someone should have out there, hosted, for free. We wouldn’t mind

Re: [SDRuby] Hosted website for girl scout troop

2011-03-08 Thread Guyren Howe
On Mar 8, 2011, at 12:41 PM, Etienne de Bruin wrote: > I would be happy to host one for you for free with a product we > developed called Cobblestone (www.cobblestonecn.com). It has modules > that are church specific but we can turn those off for you. It has > great document sharing, a calendar

Re: [SDRuby] Re: Hosted website for girl scout troop

2011-03-09 Thread Guyren Howe
On Mar 9, 2011, at 6:06 PM, bradleyland wrote: > I've got to add my vote for a Facebook group as well. I've done a lot > or pro-bono work for non-profits and other groups, and the biggest > challenge is adoption. You'll find that no matter what you use, a > certain number of your members will neve

Re: [SDRuby] Hosted website for girl scout troop

2011-03-11 Thread Guyren Howe
On Mar 11, 2011, at 5:18 PM, Adam Grant wrote: > What about Google Apps? They have a ton of resources for a group just like > you. And it's the full Google Calendar, which can do invite stuff. And the > other nice this is Google Sites, so you can design a website as well! They > have a non-prof

[SDRuby] Still looking for girl scout group site.

2011-03-18 Thread Guyren Howe
I’m looking for the site to help our girl scout troop leaders organize our site. Nothing complicated here: a roster, a calendar, and a reasonably functional RSVP facility is what I’m after. I’ve looked at Yahoo, Google, and cobblestonecn.com. Yahoo and Google don’t have functional RSVPs except t

Re: [SDRuby] Still looking for girl scout group site.

2011-03-18 Thread Guyren Howe
On Mar 18, 2011, at 8:12 AM, Dan Simpson wrote: > Google calendar supports invites with RSVP, but I am not sure how it > integrates with google groups. Like I said, I tried Google calendar. Its evites are ical evites, so they’re supported insofar as your calendar app supports them. Which ironic

[SDRuby] "Uncaught exception: undefined method `attr_accessible' for Devise::Strategies::Authenticatable:Class"

2011-04-13 Thread Guyren Howe
Seriously, wtf? -- SD Ruby mailing list sdruby@googlegroups.com http://groups.google.com/group/sdruby

[SDRuby] So I guess don't use devise 1.2

2011-04-13 Thread Guyren Howe
Reverting devise to 1.1.7 fixed the error. -- SD Ruby mailing list sdruby@googlegroups.com http://groups.google.com/group/sdruby

Re: [SDRuby] So I guess don't use devise 1.2

2011-04-13 Thread Guyren Howe
On Apr 13, 2011, at 4:36 PM, James Miller wrote: > Using Rails 2.3? Devise 1.2 requires Rails 3. > > On Wed, Apr 13, 2011 at 2:32 PM, Guyren Howe wrote: > Reverting devise to 1.1.7 fixed the error. No, rails 3.0.5. Wound up going back to 1.2.1 and futzing around until it went

Re: [SDRuby] Join us for another SD Ruby RBBQ on April 14!

2011-04-13 Thread Guyren Howe
I’ll be bringing some free-range chicken. -- SD Ruby mailing list sdruby@googlegroups.com http://groups.google.com/group/sdruby

Re: [SDRuby] We're looking for more speakers!

2011-04-15 Thread Guyren Howe
On Apr 15, 2011, at 12:38 PM, Patrick Crowley wrote: > We need two speakers for next month's meeting (and beyond). If I have it ready, I’d be happy to demo my reprap 3D printer. Not Ruby-related, but cool, open source and DIY. I’m also going to be put together a presentation called “How to thin

Re: [SDRuby] We're looking for more speakers!

2011-04-16 Thread Guyren Howe
On Apr 16, 2011, at 17:05 , Rick Flores wrote: > I was also in charge of the UNIX/Linux and Windows Server 2008 security > classes. Our main customers were DoD, federal contractors, and the FBI. I > have over seven years of experience in IT, and about four in Security. I > would be willing to d

[SDRuby] Same code runs 250x slower on Ubuntu slice

2011-04-28 Thread Guyren Howe
This has me bamboozled. Check it. This is a typical report running on an Ubuntu server on slicehost: Completed 200 OK in 274704ms (Views: 6039.7ms | ActiveRecord: 931.5ms) Here is the same report running on my iMac: Completed 200 OK in 4543ms (Views: 2014.2ms | ActiveRecord: 406.8ms) And I mea

Re: [SDRuby] Same code runs 250x slower on Ubuntu slice

2011-04-28 Thread Guyren Howe
On Apr 28, 2011, at 4:40 PM, Chris Corriveau wrote: > Slicehost doesn't give you full resources. They are shared, so a neighbor > could be using your i/o. This is one of many reason why we had moved away > from using them. Moving to our own bare metal servers has helped tremendously. No, I’ve t

Re: [SDRuby] Same code runs 250x slower on Ubuntu slice

2011-04-28 Thread Guyren Howe
On Apr 28, 2011, at 4:27 PM, Bradly wrote: > Are you using passenger? If so, I would check to make sure passenger is nice > and warm when you are testing. Also maybe make sure passenger isn't swapping. > This can happen if your max pool to set too high. I am using passenger, but I have the same

Re: [SDRuby] Same code runs 250x slower on Ubuntu slice

2011-04-28 Thread Guyren Howe
On Apr 28, 2011, at 4:17 PM, Ben Hughes wrote: > Are you sure the rubies are identical machine-to-machine? I hear that the > Ubuntu binaries are pretty terrible and that compiling ruby is the best bet > (preferably via RVM). I installed using rvm. Actually, that is slightly different: on my Ma

Re: [SDRuby] Same code runs 250x slower on Ubuntu slice

2011-04-28 Thread Guyren Howe
On Apr 28, 2011, at 4:44 PM, Chris Corriveau wrote: > Same result with 3 different slices? Indeed. -- SD Ruby mailing list sdruby@googlegroups.com http://groups.google.com/group/sdruby

Re: [SDRuby] Same code runs 250x slower on Ubuntu slice

2011-04-28 Thread Guyren Howe
On Apr 28, 2011, at 5:29 PM, Ben Hughes wrote: > One thing you'll also want to do, if you aren't already, is isolate any > potential issues relating to the rails environment. Tried development and production. Just tried reverting Rails to 3.0.6. That didn’t help. What’s the state of the art in

[SDRuby] More on code running 250x slower

2011-04-29 Thread Guyren Howe
I’ve somewhat pinned down where my slowdown (see previous topic) is happening. I’m doing a query (which is scoped/lazy in Rails 3) with two joins and a couple of simple conditions on the first and one of the join tables. This executes just fine and comes back with about 3,500 rows. At this poin

Re: [SDRuby] More on code running 250x slower

2011-04-29 Thread Guyren Howe
On Apr 29, 2011, at 2:03 PM, James Miller wrote: > I would agree with Kevin. You're likely swapping pretty quick with only > 512MB on the machine, especially if you're expecting to return 3500 rows -- > did you try a larger slice? > > Try running `free -m` on the slice to see your current memo

Re: [SDRuby] More on code running 250x slower

2011-04-29 Thread Guyren Howe
On Apr 29, 2011, at 2:09 PM, Kevin Ball wrote: > On Fri, Apr 29, 2011 at 2:06 PM, Guyren Howe wrote: > On Apr 29, 2011, at 2:03 PM, James Miller wrote: > > > I would agree with Kevin. You're likely swapping pretty quick with only > > 512MB on the machine, especia

Re: [SDRuby] More on code running 250x slower

2011-04-29 Thread Guyren Howe
On Apr 29, 2011, at 2:13 PM, James Miller wrote: > Do you have the proper indexes on the columns that you're fetching? I didn’t (I follow a strict rule of only adding indexes once I see that I need them), but: - the database is small - the query execution time was quite short. The problem happe

Re: [SDRuby] Re: Quick Code Assessment

2011-05-06 Thread Guyren Howe
On May 6, 2011, at 11:25 AM, gw wrote: > I see this as good an opportunity as any to discuss variable names > (sorry if this turns into a hijacking of the thread, but maybe the > feedback will tell Eitan whether this is an important detail for him > to consider). > > Personally, I cringe when I s

[SDRuby] Devise: change password but then not accepted

2011-05-06 Thread Guyren Howe
Everyone loves devise. But it’s killing me right now. I’ve got a situation where I’m setting someone’s password. It’s *changing* their password (I can see it writing to the users table in the log). But then when I try to log in as that user, it’s rejecting the login. I can’t see how you’d make

Re: [SDRuby] Devise: change password but then not accepted

2011-05-06 Thread Guyren Howe
c. > > On May 6, 2011, at 10:08 PM, Jason King wrote: > >> >> On May 6, 2011 8:12 PM, "Guyren Howe" wrote: >> > >> > Everyone loves devise. But it’s killing me right now. >> >> I don't. After working with it for a few days I&#x

[SDRuby] Papertrail vs acts_as_audited vs ..?

2011-05-12 Thread Guyren Howe
Any thoughts on the best way to do an audit trail in Rails 3? -- SD Ruby mailing list sdruby@googlegroups.com http://groups.google.com/group/sdruby

[SDRuby] How to stop Rails helping so much with timezones?

2011-05-12 Thread Guyren Howe
I’ve got a Rails 3 app where all the data is in California. I do this in config/application.rb: config.time_zone = "Pacific Time (US & Canada)" despite this, Rails continues to try to help me by converting to and from UTC, in some places but not in others. Is there any way to just turn off

Re: [SDRuby] How to stop Rails helping so much with timezones?

2011-05-12 Thread Guyren Howe
On May 12, 2011, at 8:37 PM, Jason Liebecht wrote: > I just wrote a helper that handles the time difference and wrapped all my > display dates with that. If I want something quick and dirty I do just what > you did and pass it the time and it returns the time -7. If you want to get > really fan

Re: [SDRuby] Hash Syntax in 1.9

2011-05-18 Thread Guyren Howe
On May 18, 2011, at 9:43 PM, Neal Clark wrote: > {foo: :bar} is incredibly ugly to me and confusing to read. i'd avoid that > for an intro class, well, i avoid it completely. if i'm not using > hashrockets, it's {key: 'value'}. FWIW, I don’t agree at all. It’s concise and readable and my finger

[SDRuby] protocol handler in ruby

2011-05-21 Thread Guyren Howe
I’d like to write a simple custom protol handler in ruby. Mac only would be okay, Safari only if need be, but cross platform would be a bit better. I can’t find a simple summary of how to do this anywhere. Before I start trying to wade through specification documents and bore myself senseless,

Re: [SDRuby] protocol handler in ruby

2011-05-21 Thread Guyren Howe
On May 21, 2011, at 10:08 AM, Greg Willits wrote: > On May 21, 2011, at 3:46 AM, Guyren Howe wrote: > >> I’d like to write a simple custom protol handler in ruby. >> Mac only would be okay, Safari only if need be, but cross platform would be >> a bit better. >> I

Re: [SDRuby] protocol handler in ruby

2011-05-22 Thread Guyren Howe
On May 21, 2011, at 1:28 PM, Stephen Waits wrote: > In OS X this is handled with LSRegisterURL(). This I found, but I don’t know that I can easily call this from Ruby on my Mac. Perhaps I should just use MacRuby. -- SD Ruby mailing list sdruby@googlegroups.com http://groups.google.com/group/sd

Re: [SDRuby] Spreadsheet-like calcs in a Rails app

2011-05-27 Thread Guyren Howe
On May 27, 2011, at 10:13 PM, Chris McCann wrote: > I'm looking for some suggestions on how best to provide a spreadsheet- > like calculation capability in a Rails app. I say "-like" because I'm > not trying to present the user with a true web-based Excel replacement > or a Google spreadsheet. A

[SDRuby] Pulling out simple sub-app from Rails app that uses authlogic

2011-06-30 Thread Guyren Howe
I have some logic that’s part of a Rails app that I’d like to separate. A Sinatra app seems mostly like it might work. The thing just provides a pretty simple API. I can write the API pretty nicely in Sinatra, but the problem is authentication. My Rails app uses authlogic for authentication. An

Re: [SDRuby] Model.all vs. Model.where

2011-07-18 Thread Guyren Howe
On Jul 18, 2011, at 5:16 PM, Glenn Little wrote: > Poking my nose into Rails 3, I notice that the class of the returned > values of these two calls is not the same: > > Model.all ==> returns Array > Model.where(['1 = 1']) ==> returns ActiveRecord::Relation > > Is there a reason this is this way?

Re: [SDRuby] Should we send all traffic to SSL?

2011-10-11 Thread Guyren Howe
On Oct 11, 2011, at 19:40 , Matt Aimonetti wrote: > I would also not force SSL for any public pages for SEO reasons. Please elaborate. Why would encrypting the traffic between your server and Google (or whoever) affect your SEO rank? It's not like it would prevent anyone seeing the same page at

Re: [SDRuby] Speakers for November meeting?

2011-10-27 Thread Guyren Howe
On Oct 26, 2011, at 11:45 PM, Ian Young wrote: > I have a bunch of random topics that I could talk about. These are all sort > of lightning-talk-ish; I don't think I have more than 5-10 minutes of content > on any one. But I'm happy to do some or all of them, if there's interest. > > Rails up t

Re: [SDRuby] Moving away from Rails?

2011-11-30 Thread Guyren Howe
On Nov 30, 2011, at 10:50 AM, Chris McCann wrote: > An interesting post about where Rails fits in with the current web- > enabled application landscape. I read an interesting piece recently (can’t locate it right now) arguing that the move to SSD or memory-based data stores removes the “my langu

Re: [SDRuby] Agile meeting tomorrow, 6:30pm @TheLinkery - Test Driven Development

2012-01-04 Thread Guyren Howe
On Jan 4, 2012, at 3:43 PM, June Clarke wrote: > The meeting will take place on Thursday, Jan 5th at The Linkery in North Park > and go from 6:30 to 8PM. Thanks for organization a new venue. However: As a vegetarian (and I believe I’m not the only one), this is rather less than my number 1 cho

Re: [SDRuby] Agile meeting tomorrow, 6:30pm @TheLinkery - Test Driven Development

2012-01-04 Thread Guyren Howe
On Jan 4, 2012, at 4:18 PM, June Clarke wrote: > Hi Guyren, > > This is the announcement for the Agile group, not SDRuby. Our meetings are on > the same day (first Thursday) but a lot of people are members of both, so > that's why I post on this board. > > BTW, the veggie dishes at the linkery

Re: [SDRuby] Good hosted email provider?

2012-01-09 Thread Guyren Howe
On Jan 9, 2012, at 11:03 AM, Patrick Crowley wrote: > I'm looking for a good, reliable email hosting company. I’ve been using emailuser.net for many years and have been very happy. Lots of features (sub-addressing, etc), reasonably priced. And I believe they’re now owned by Opera, so not going

Re: [SDRuby] Good hosted email provider?

2012-01-09 Thread Guyren Howe
On Jan 9, 2012, at 12:39 PM, Robert Kaufman wrote: > I have a fastmail.fm account (or at least I did, who knows when the last time > I logged in to it was) and had good luck with it. FYI, this is also emailuser.net -- SD Ruby mailing list sdruby@googlegroups.com http://groups.google.com/group/

Re: [SDRuby] Efficient SQL update in Rails

2012-01-18 Thread Guyren Howe
On Jan 18, 2012, at 12:11 AM, Chris McCann wrote: > SD Ruby, > > What's the most efficient way to update a large batch of ActiveRecord > model instances where the same fields are not being updated for each > model? > > Here's the setup: > > I've got a database of members (about 13,000) and a CS

Re: [SDRuby] Building a troubleshooting application - what's the appropriate data structure?

2012-01-21 Thread Guyren Howe
On Jan 21, 2012, at 12:30 PM, Rohan Deshpande wrote: > I'm building a troubleshooting application. In the first screen the > user is presented with two questions, each leading them down a certain > path. At a certain point they are presented with a set of > answers/suggestions. I'm having difficul

Re: [SDRuby] Page-specific UJS

2012-02-15 Thread Guyren Howe
On Feb 15, 2012, at 9:56 PM, Chris McCann wrote: > There are three groups of controls that need this treatment on the > same page, and it seems awkward to me to be making reference to three > specific ID and class selectors that only appear on one page in JS > code that's loaded on every page in t

Re: [SDRuby] Re: Page-specific UJS

2012-02-15 Thread Guyren Howe
On Feb 15, 2012, at 10:32 PM, Chris McCann wrote: > I don't quite follow your suggestion regarding adding data-elements -- > can you elaborate? HTML5, I think it is, adds the ability to add properties to an HTML element with the name data- for any . Such elements are still considered correct HT

[SDRuby] Brief talk on Rules in Postgres (or hstore)?

2012-03-20 Thread Guyren Howe
Postgres has a feature called Rules. Rules are somewhat like triggers, except that instead of running as rows are written to the database, Rules are run once when a query is submitted to the database, and can rewrite or add to the query. You can use them to make arbitrarily complex writable view

Re: [SDRuby] Brief talk on Rules in Postgres (or hstore)?

2012-03-20 Thread Guyren Howe
On Mar 20, 2012, at 6:22 PM, Patrick Crowley wrote: > +1. Can you talk at our next meeting? Sure. Quick talk, as I say. Rules at the next meeting. Perhaps hstore at a subsequent meeting. -- SD Ruby mailing list sdruby@googlegroups.com http://groups.google.com/group/sdruby

Re: [SDRuby] Talks for this month?

2012-05-05 Thread Guyren Howe
On May 5, 2012, at 21:34 , Neal Clark wrote: >> Yeah I agree completely. I've just used multiple bundles in that case >> (multiple manifest files in the asset pipeline). That way the static stuff >> can still be served from Nginx or the CDN, rather than the app. Very >> interested to hear other

[SDRuby] Starting Over page for developers looking to get back into the game

2012-05-12 Thread Guyren Howe
I've written a piece on my website with advice for a friend who was a developers but has been out of the game for a while, and wants to get back in. Maybe it would be of use to someone you know. -- SD Ruby mailing list sdruby@googlegroups.com http:/

[SDRuby] More on Postgres features?

2012-05-21 Thread Guyren Howe
I was surprised to find that I think the greatest interest in my last talk was in the discussion of what advantages Postgres has. While I did a polemic on Postgresql vs MySQL back in the day: … and it’s still pretty much relevant, if there is interest, I could do

Re: [SDRuby] More on Postgres features?

2012-05-21 Thread Guyren Howe
On May 21, 2012, at 10:01 , Ylan Segal wrote: > I am using postgres (on heroku) and I do feel there is a lot more I could get > out of it. For example, at the end of your talk there was a in-passing > mention of postgres schemas, which I had no idea about, and it turns out they > might be the t

[SDRuby] RSA encrypt on Android; decrypt in Rails

2012-06-14 Thread Guyren Howe
I am trying to encrypt a string using a public key on Android (phone gap in particular) and decrypt it in Rails. I tried a Javascript RSA library which worked, except that it occasionally failed to encrypt correctly. Trying to use BouncyCastle through Java, but can’t work out how to do the enc

[SDRuby] Time zone support apparently stupid in Rails

2012-06-20 Thread Guyren Howe
I’m sure it’s just me, but this looks just wrong. My timestamp field is time without zone. I’ve got a suitable default time zone set in Rails. I create a record. I display the timestamp. The time displayed is off by 7 hours. The behavior that would make sense to me is that the value written t

Re: [SDRuby] Time zone support apparently stupid in Rails

2012-06-20 Thread Guyren Howe
On Jun 20, 2012, at 1:07 PM, James Miller wrote: > Is the system time on the box correct? If the time got changed to pacific > time but it's still set as located in the UTC timezone, it would cause this > issue. No, this is on my Mac. Time and zone are all good. Plus, I have the same behavior

Re: [SDRuby] Re: Time zone support apparently stupid in Rails

2012-06-20 Thread Guyren Howe
On Jun 20, 2012, at 1:32 PM, cschulte22 wrote: > What version of rails? Can you post a few lines of the code? The way that > you're setting your timestamp field may be causing the problem... 3.1.3 I’m not doing anything particularly clever. I’m creating a record based on params. I don’t expl

Re: [SDRuby] Time zone support apparently stupid in Rails

2012-06-21 Thread Guyren Howe
I’ve posted a bug report: <https://github.com/rails/rails/issues/6816> On Jun 20, 2012, at 5:26 PM, Guyren Howe wrote: > On Jun 20, 2012, at 1:32 PM, cschulte22 wrote: > >> What version of rails? Can you post a few lines of the code? The way that >> you're set

Re: [SDRuby] Postgres/Redis object storage benchmarks

2012-06-27 Thread Guyren Howe
On Jun 27, 2012, at 0:02 , Nathaniel Barnes wrote: > So after Guy's talk introduced me to postgres' hstore (thanks for that btw), > I was curious to see what the performance difference between it and redis > would be in serializing objects. A couple of others at the meeting expressed > some int

Re: [SDRuby] Dynmically add fields with incrementing number

2012-06-28 Thread Guyren Howe
On Jun 28, 2012, at 4:39 PM, Chris McCann wrote: > I can't sort out how to keep a JS var to hold the "next" increment number and > to set the hidden field value to that value when the new nested fields are > added. If this is so you can generate a valid ID of some sort, consider using a UUID

Re: [SDRuby] Inverse partial

2012-07-08 Thread Guyren Howe
On Jul 7, 2012, at 23:23 , Chris McCann wrote: > Can anyone recommend an approach that will let me re-use the outer form_for > and other mark-up? A shared form, to which you pass the name of the partial you want it to render inside itself? -- SD Ruby mailing list sdruby@googlegroups.com http:

[SDRuby] San Diego Postgres User's Group Meetup

2012-07-17 Thread Guyren Howe
On the 30th. I’ll be reprising my “Postgres FTW” presentation, although with this group, I expect some more in-depth discussion of common table expressions and whatnot. It’s a good group. If you’re a Postgres user, you should get to know them. The organizer is a Postgres committer. -- SD Ruby

[SDRuby] Re: San Diego Postgres User's Group Meetup

2012-07-17 Thread Guyren Howe
On Jul 17, 2012, at 3:05 PM, Guyren Howe wrote: > On the 30th. > > I’ll be reprising my “Postgres FTW” presentation, although with this group, I > expect some more in-depth discussion of common table expressions and whatnot. > > It’s a good group. If you’re a Postgres user,

Re: [SDRuby] MacBook Air vs MB Pro Retina?

2012-07-19 Thread Guyren Howe
On Jul 19, 2012, at 12:23 AM, Chris McCann wrote: > I'm debating getting a new MacBook for Rails/Ruby development and can't > decide between a 13" Air or a 15" Retina. Anyone care to chime in with their > own experiences or analyses? I have the previous-generation 13” Air, which was my seconda

[SDRuby] PostgreSQL Rising

2012-07-19 Thread Guyren Howe
-- SD Ruby mailing list sdruby@googlegroups.com http://groups.google.com/group/sdruby

Re: [SDRuby] Hire me: disruptive software engineer based in sunny San Diego

2012-07-21 Thread Guyren Howe
Hi, Ian. I have been consulting full-time for a couple of years now for iParq. Best gig I ever had. iParq makes technology for people who do car parking. Which doesn't sound exciting until you start trying to think of another industry that is: - off the radar; - ripe for bringing into the 21st

[SDRuby] 3.1: Single Table Inheritance where child loses inheritance

2012-07-24 Thread Guyren Howe
I’ve a situation where I find a record by ID that’s a child in a Single Table Inheritance relationship, and the object I get, although it is_a? , it fails is_a? and won’t me call any of the instance methods on the parent class. This is in 3.1. I’ve found mention of this happening in 3.0, but t

Re: [SDRuby] 3.1: Single Table Inheritance where child loses inheritance

2012-07-24 Thread Guyren Howe
On Jul 24, 2012, at 9:59 , Ylan Segal wrote: > Can you post how to recreate your problem? Maybe an example app? My quick > test on a 3.1.1 app didn't show this problem. No. Isolating the cause is the sort of "grubbing around" I was hoping to avoid. The problem doesn't occur most of the time.

[SDRuby] SD Postgres User Group meeting tonight

2012-07-30 Thread Guyren Howe
The San Diego Postgres User Group is meeting tonight. I will be reprising my “Postgres FTW” presentation that I gave recently at SD Ruby. But even if you saw that, you might want to go. First, because the meeting will probably involve more discussion with a crowd that’s more focused on the topi

Re: [SDRuby] timeEdition crashes--fix? alternative?

2012-08-03 Thread Guyren Howe
On Aug 3, 2012, at 11:00 , Scott Olmsted wrote: > I have been using timeEdition for tracking project time, though it hasn't > been updated in 3 years. I copied the one file timeEdition.edb back and forth > from desktop to laptop without any problems until this week, when the desktop > installa

Re: [SDRuby] Browsing your local database during dev.

2012-08-31 Thread Guyren Howe
If you are forced to use MySQL, I just discovered MySQLWorkbench, which looks to be really useful also. On Aug 31, 2012, at 6:08 AM, Etienne de Bruin wrote: > Rubyists! > > The Google god seems to suggest that this tool is the best SQLite browser out > there http://sqlitebrowser.sourceforge

Re: [SDRuby] Browsing your local database during dev.

2012-08-31 Thread Guyren Howe
On Aug 31, 2012, at 6:08 AM, Etienne de Bruin wrote: > Rubyists! > > The Google god seems to suggest that this tool is the best SQLite browser out > there http://sqlitebrowser.sourceforge.net/index.html > > This made me wonder how you guys work with your local DB's when developing. > I know

Re: [SDRuby] Job opportunity, Hewlett-Packard consumer web services. Full time, not a contract position.

2012-09-11 Thread Guyren Howe
I thought it was amusing and pointed. Are we going to offend HP or something? On Sep 11, 2012, at 1:08 PM, Matt Aimonetti wrote: > Hey Andreas, not sure that was needed nor useful :( > > - Matt > > On Tue, Sep 11, 2012 at 9:45 AM, Andreas Kirn wrote: > You're talking about the company that ju

Re: [SDRuby] Job opportunity, Hewlett-Packard consumer web services. Full time, not a contract position.

2012-09-11 Thread Guyren Howe
On Sep 11, 2012, at 1:14 PM, Neal Clark wrote: > amusing for sure, but i like hearing about local openings through this list, > and i'd much rather hear about them through a PM than a recruiter. let's not > scare these guys off! Had I an interest in this position, I would actually be intereste

Re: [SDRuby] Job opportunity, Hewlett-Packard consumer web services. Full time, not a contract position.

2012-09-11 Thread Guyren Howe
oesn't make him feel welcome. > So my reaction is simple, I don't find that attitude needed nor useful. Is it > a big deal? No. But I still think that, the same way you're free to voice > your desire to not have to worry about others, I'm free to say that I don't &

Re: [SDRuby] Job opportunity, Hewlett-Packard consumer web services. Full time, not a contract position.

2012-09-11 Thread Guyren Howe
> I share the concerns that others had about what Andreas wrote. I'm sorry but I (and apparently others who unfortunately have chosen to only agree with me privately) am concerned about needless political correctness in all this. I am still *completely and utterly mystified* about who would be

Re: [SDRuby] Job opportunity, Hewlett-Packard consumer web services. Full time, not a contract position.

2012-09-11 Thread Guyren Howe
On Sep 11, 2012, at 9:09 PM, Bradly Feeley wrote: > I don't think it's about political correctness, it's just about being a > community where people feel welcome. Okay, but my confusion still stands: I don’t understand what was in the least unwelcoming about what Andreas said. He mocked HP. He

Re: [SDRuby] Job opportunity, Hewlett-Packard consumer web services. Full time, not a contract position.

2012-09-11 Thread Guyren Howe
On Sep 11, 2012, at 9:56 PM, Etienne de Bruin wrote: > Let's see if we can keep this going through the night? That would be fun, wouldn’t it? I don’t want this community to be infected by the political correctness police. Reasonable, polite, respectful expression of opinion, sarcastic or other

Re: [SDRuby] Job opportunity, Hewlett-Packard consumer web services. Full time, not a contract position.

2012-09-11 Thread Guyren Howe
On Sep 11, 2012, at 10:45 PM, Malcolm Bohm wrote: > It's been a pleasure following you all but I'm no longer a Ruby user. How do > I unsubscribe from this group? If you go to https://groups.google.com/forum/?fromgroups#!forum/sdruby while logged in, and then you click on “My Membershi

[SDRuby] How to offend people

2012-09-12 Thread Guyren Howe
Diverting slightly from the “Job opportunity” fracas. a couple of people have explained to me why Andreas’ comment about an HP job posting: > You're talking about the company that just last month reported the worst loss > in its 73-year history and is on the brink of laying off 29,000 people, >

Re: [SDRuby] Newbie Night

2012-09-14 Thread Guyren Howe
On Sep 14, 2012, at 4:43 PM, Robert Kaufman wrote: > To make this happen, we need your help! If you can help in one of these > areas, please send email the mailing list with how you can help. I can help at the meeting, and share the good news. I could also make a flyer to share, but it would p

Re: [SDRuby] Columnar table layout in Rails view

2012-09-17 Thread Guyren Howe
On Sep 17, 2012, at 11:15 AM, Chris McCann wrote: > Is there a better, more Railsy approach that I'm just not seeing? The actual > table is much more complex than what's shown here so I don't want to go the > CSS-only no table route unless there's a really nice solution that entails > not usi

Re: [SDRuby] Reddit's open DB schema

2012-10-06 Thread Guyren Howe
On Oct 6, 2012, at 2:34 PM, Thomaz Leite wrote: > Reading this[1] article on High Scalability I found out Reddit has (or had at > some point) only two tables in their database. It's an interesting approach > to delay decisions about the schema, but I wonder if the drawbacks are worth > it. Wha

Re: [SDRuby] Rails and mobile

2012-12-07 Thread Guyren Howe
On Dec 7, 2012, at 9:53 , Dan Simpson wrote: > I went down the road of using media queries and the like to make a web app > work on desktop as well as mobile. This works great for some things, but > it's harder than I thought! I ended up making decisions on layout to find a > middle ground,

[SDRuby] Rubymine discussion at Austin On Rails

2012-12-12 Thread Guyren Howe
In case anyone is interested, the most excellent Austin On Rails is having a discussion of the virtues of Rubymine: > -- SD Ruby mailing list sdruby@googlegroups.com http://groups.google.com/grou

  1   2   3   >