Re: [rails-oceania] Next Hack Night is Tues, April 27 at Agency Rainford in Surry Hills

2010-04-21 Thread Gabe Hollombe
+1. What James said. On Wed, Apr 21, 2010 at 4:13 PM, James Sadler wrote: > Ryan, > > How about you put together a list of a few tickets that we might make > a reasonable stab at fixing during hack night?  You'd probably have a > better idea of what's achievable than most of us.  I'm guessing tha

Re: [rails-oceania] The Great Debate

2010-04-21 Thread Bodaniel Jeanes
Love this idea. Would love to do the haml debate if it hasn't happened by the time I get back from Europe. I could run for either side. One interesting idea is to encourage people to play devils advocate and not just fight for their legitimate opinions. We might learn something. On Wednesday, Apr

[rails-oceania] Re: The Great Debate

2010-04-21 Thread Michael Koukoullis
> The Sydney Opera House already has a Festival of Dangerous Ideas, so   > consider it stolen. The Festival of Very Dangerous Ideas -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to rails-ocea...@goog

[rails-oceania] Re: REA are keen to host RORO Melbourne

2010-04-21 Thread Ben Schwarz
Reminder: RORO is next week! -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com.

Re: [rails-oceania] Re: The Great Debate

2010-04-21 Thread Lucas Parry
This is a great idea, I think it'd probably result in much better "introductions" to the debated technologies for those who dont know much about them than the usual talk format. lucas On Thu, Apr 22, 2010 at 1:12 AM, Michael Koukoullis wrote: >> The Sydney Opera House already has a Festival of D

Re: [rails-oceania] Re: The Great Debate

2010-04-21 Thread Nathan de Vries
On 22/04/2010, at 1:12 AM, Michael Koukoullis wrote: The Festival of Very Dangerous Ideas What about "First World Problems"? Cheers, Nathan -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to rails

Re: [rails-oceania] The Great Debate

2010-04-21 Thread Glen Maddern
Haha yes! On Thursday, April 22, 2010, Nathan de Vries wrote: > On 22/04/2010, at 1:12 AM, Michael Koukoullis wrote: > > The Festival of Very Dangerous Ideas > > > What about "First World Problems"? > > > Cheers, > > Nathan > > -- > You received this message because you are subscribed to the Goog

[rails-oceania] Re: Rails recaptcha (or any other service) fallback strategy when it is down

2010-04-21 Thread Daniel
If you can reach the reCAPTCHA site and the client can reach you, you should be able to assume the client can get to recaptcha (since the internet routes around damage). Therefore you should be able to write a keepalive sweeper that pings reCAPTCHA every few minutes, and provides a class method to

Re: [rails-oceania] The Great Debate

2010-04-21 Thread Keith Pitty
I think Andrew may have already borrowed the name. See http://en.wikipedia.org/wiki/Festival_of_Dangerous_Ideas On 21/04/2010, at 12:40 PM, Gareth Townsend wrote: > I'm stealing that name. > > Not sent from my iPad > > On 21/04/2010, at 12:20 PM, Dr Nic Williams wrote: > >> "festival of dan

[rails-oceania] Mentoring Thoughts

2010-04-21 Thread Gabe Hollombe
At Railscamp 7, I stood up during our Sunday night town hall meeting and shared about how I want to big up myself and find a mentor to help me grow as a software craftsman. I asked the room for a show of hands for people who would be willing to mentor others and/or would want to have a mentor for

[rails-oceania] ruby gem/lib for parsing text from html?

2010-04-21 Thread Korny Sietsma
Hi folks - I'm looking for something that will load a web page and extract just visible text elements from it. I could probably write something using nokogiri (is nokogiri still the best option for html parsing?) but I was wondering if someone had alread done something similar. I don't need initia

Re: [rails-oceania] ruby gem/lib for parsing text from html?

2010-04-21 Thread Cameron Barrie
doc = Nokogiri::HTML(html) (doc/'body').text I believe will do what you want. Please correct me if I'm wrong -Cam On 22/04/2010, at 10:28 AM, Korny Sietsma wrote: > Hi folks - I'm looking for something that will load a web page and extract > just visible text elements from it. > I cou

Re: [rails-oceania] ruby gem/lib for parsing text from html?

2010-04-21 Thread Julio Cesar Ody
Visible as everything that's actually visible to end-users? (e.g.: elements that are CSS set to display: none don't count) If so, I seem Nokogiri is the way to go, as it also has a CSS parser apart from HTML. On Thu, Apr 22, 2010 at 10:28 AM, Korny Sietsma wrote: > Hi folks - I'm looking for s

Re: [rails-oceania] Mentoring Thoughts

2010-04-21 Thread Julio Cesar Ody
Would this really work with people who aren't already buddies, without any sort of tangible incentive? Not meaning to sound like a greedy bastard, teaching is always an awesome idea, as both sides stand to grow a lot with it. I just can't see *qualified* people who perhaps already maintain project

Re: [rails-oceania] ruby gem/lib for parsing text from html?

2010-04-21 Thread Dan Cheail
I'd say nokogiri or Hpricot (http://hpricot.com/) would be your best bets. On Thu, Apr 22, 2010 at 10:28 AM, Korny Sietsma wrote: > Hi folks - I'm looking for something that will load a web page and extract > just visible text elements from it. > I could probably write something using nokogiri (i

Re: [rails-oceania] Mentoring Thoughts

2010-04-21 Thread Gabe Hollombe
> > Would this really work with people who aren't already buddies, without > any sort of tangible incentive? > I've got no idea if this will work. I think the point here is to try and see if it works or not. > I just can't see *qualified* people who perhaps already maintain projects > and > res

Re: [rails-oceania] Mentoring Thoughts

2010-04-21 Thread Julio Cesar Ody
Yeah by all means, trying is the way to go, and props for the initiative. On Thu, Apr 22, 2010 at 10:51 AM, Gabe Hollombe wrote: >> Would this really work with people who aren't already buddies, without >> any sort of tangible incentive? > > I've got no idea if this will work. I think the point

Re: [rails-oceania] Re: Rails recaptcha (or any other service) fallback strategy when it is down

2010-04-21 Thread Chris Mayan
Thanks Daniel, I like this idea and will give it a go! It shouldn't be too hard to extrapolate into a generic web service swapping plugin as well. Cheers -Chris On Thu, Apr 22, 2010 at 9:53 AM, Daniel wrote: > If you can reach the reCAPTCHA site and the client can reach you, you > should be

Re: [rails-oceania] Mentoring Thoughts

2010-04-21 Thread Ben Schwarz
With great respect to your idea: I think that people looking for mentors should surround themselves with great people then look to approaching certain individuals based on particular skills. I'm not really sure how a program to organise this would work. Although I believe that anyone who is seri

Re: [rails-oceania] Mentoring Thoughts

2010-04-21 Thread David Lee
I can see the experience / ability / willingness to mentor others being pretty attractive to employers (or even clients); with the framework for it set up a certain way, I can see this (plus our native altruism of course) helping to provide a good incentive. I'm not trying to be cynical either, bu

Re: [rails-oceania] Mentoring Thoughts

2010-04-21 Thread Gus Gollings
"come to tuition" Oh, that's a great pun. :-) Regards, Gus On Thu, Apr 22, 2010 at 11:05 AM, Ben Schwarz wrote: > With great respect to your idea: > I think that people looking for mentors should surround themselves with > great people > then look to approaching certain individuals based on pa

Re: [rails-oceania] Mentoring Thoughts

2010-04-21 Thread Ben Schwarz
I thought someone might like that. I'd hoped anyway. On Thu, Apr 22, 2010 at 11:13 AM, Gus Gollings wrote: > "come to tuition" > > Oh, that's a great pun. :-) > > Regards, > > Gus > > On Thu, Apr 22, 2010 at 11:05 AM, Ben Schwarz > wrote: > > With great respect to your idea: > > I think that peo

RE: [rails-oceania] ruby gem/lib for parsing text from html?

2010-04-21 Thread Myles Eftos
Sanitize will do it (It's based on Nokogiri) http://github.com/rgrove/sanitize/ -- Myles Eftos Mobile: +61-409-293-183 MadPilot Productions - Created to be Different URL: http://www.madpilot.com.au Phone: +618-6424-8234 Fax: +618-9467-6289 Try our tim

[rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Joshua Partogi
Hi all, Currently I am running Rails application online and it is running dog slow. The current memory that I have on the VPS right now is 360MB, which I thought was more than enough. How much would you recommend, based on your experience, I should allocate for a Rails apps? Is there anything els

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Simon Russell
That amount of RAM _can_ be enough, but it depends quite heavily on your setup, and the particulars of the application design and how much traffic it gets. A bit more information might help: - what's the app? - how much traffic do you get? - what version of Rails are you using? - does the app run

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Lachie
Hi Joshua The best way when learning is to react to what's happening for your app right now. And the first question to ask is "is my slice swapping" -- that is, has it run out of real memory and is resorting to disc based virtual memory. (assuming you're using linux of some kind) Use free -m to

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Jared Fraser
To add onto that list, does your app have any memory intensive tasks (such as importing and transforming data from an external source)? For most apps, 360mb is more than adequate (and possibly overkill). On Thu, Apr 22, 2010 at 11:27 AM, Simon Russell wrote: > That amount of RAM _can_ be enough,

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Cameron Barrie
One simple thing to ensure if that you're not doing a Class.find(:all) If you've got an even semi large dataset, you'll hose your memory footprint by loading up 1000's of ActiveRecord objects. I know, it's a mistake I've made once. User.find(:all) in a Facebook app, was a stupid thing for me to

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread chendo
More importantly, it depends how many instances of the Rails app you are running. If Passenger is spooling up 2+ then you might want to look into restricting it to 2 max On Thu, Apr 22, 2010 at 11:29 AM, Jared Fraser wrote: > To add onto that list, does your app have any memory intensive tasks >

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Nathan de Vries
Hey Cam, About a year ago, ActiveRecord::Batches was introduced to avoid that exact problem. You can use either find_each() or find_in_batches() to iterate over large collections without loading the entire collection of records into memory. Those methods default to 1000 record batch sizes

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Cameron Barrie
That's exactly right, I use find_in_batches regularly these days. Each of those methods limits the amount of AR objects instantiated and put into memory at any given point in time(which as I found out the hard way is really important). find(:all) will just write a select with no limit on it, and

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Joshua Partogi
Hi Nathan and Cameron, Thanks for the pointers. I think I use alot of find(:all) in the code. I am going to revise the code again. =) Kind regards, Joshua On Thu, Apr 22, 2010 at 11:41 AM, Nathan de Vries wrote: > Hey Cam, > > About a year ago, ActiveRecord::Batches was introduced to avoid that

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Joshua Partogi
Hi Simon and Lachie, These are the setup that I use : - Rails 3 with Passenger and nginx - Database: MariaDB in the same box with the app - Traffic, not so much as nobody know about it yet - On dev it is running quite well, but I am using 2Gig of RAM on my dev box In case you are wondering how do

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Joshua Partogi
Hi Chendo, As I am using passenger, I am going to read passenger doc on how to limit the number of spools. Thank you very much for the pointers. Kind regards, Joshua -- http://twitter.com/scrum8 On Thu, Apr 22, 2010 at 11:31 AM, chendo wrote: > More importantly, it depends how many instances

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Joshua Partogi
Hi Lachie, Thank you for the pointers. I am going to monitor the memory usage on the online box tonight. This is really helpful. Kind regards, Joshua -- http://twitter.com/scrum8 On Thu, Apr 22, 2010 at 11:29 AM, Lachie wrote: > Hi Joshua > > The best way when learning is to react to what's

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Lachie
Hey Joshua It seems really fast to me, just clicking around a little. Could it be the passenger spin up you're noticing? Where passenger kills idle apps after 5mins of idle, and on first use they need to be spun back up. (You can turn this behaviour off with passenger_pool_idle_time: 0; in nginx

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread James Healy
Joshua Partogi wrote: > Thanks for the pointers. I think I use alot of find(:all) in the code. > I am going to revise the code again. =) find(:all) / all() is ok on models that will only ever have a few records (CustomerType, ProductFormat, etc). You just need to be careful when using it on models

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread chendo
MySQL server is down for me On Thu, Apr 22, 2010 at 1:23 PM, James Healy wrote: > Joshua Partogi wrote: > > Thanks for the pointers. I think I use alot of find(:all) in the code. > > I am going to revise the code again. =) > > find(:all) / all() is ok on models that will only ever have a few > r

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Joshua Partogi
One thing that I hate about MySQL. It just shuts down by itself after inactivity. Aarrgh. -- http://twitter.com/scrum8 On Thu, Apr 22, 2010 at 1:38 PM, chendo wrote: > MySQL server is down for me > > On Thu, Apr 22, 2010 at 1:23 PM, James Healy wrote: >> >> Joshua Partogi wrote: >> > Thanks f

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Chris Herring
I've never seen it do that, that sounds odd. Monit is great tool to make sure all the stuff you need is up and running, you should check it out, or God. On Thu, Apr 22, 2010 at 1:53 PM, Joshua Partogi wrote: > One thing that I hate about MySQL. It just shuts down by itself after > inactivity. A

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Simon Russell
Hi Joshua, The app is _using_ 2 gigs on your demo box? Or you have 2 gigs of RAM? Seems like there shouldn't be any reason for it to be slow (sorry, it's still down, so I can't see if it's slow for me); I'd definitely have a look at your DB schema; see if the queries you're running are using an

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Joshua Partogi
Hi Simon, The demo is running again now. The 2Gigs of RAM is my development computer, the demo box runs on a VPS with 360MB RAM. If you want to see the DB schema, I have dumped it here: http://github.com/scrum8/projexion/blob/master/db/development_structure.sql Thanks heaps mate. Kind regards,

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Jonathan Clarke
Is there any indexes on those tables? Jonathan On 22 April 2010 15:01, Joshua Partogi wrote: > Hi Simon, > > The demo is running again now. The 2Gigs of RAM is my development > computer, the demo box runs on a VPS with 360MB RAM. > > If you want to see the DB schema, I have dumped it here: > ht

Re: [rails-oceania] How much memory should I at least allocate for Rails apps?

2010-04-21 Thread Simon Russell
I was wondering the same thing, there don't seem to be many. It is exceptionally slow to display the first page after the login. But that should only be a problem if there's a whole heap of data in there; what's the largest table? Also, my question about the RAM was actually how much is being us

Re: [rails-oceania] ruby gem/lib for parsing text from html?

2010-04-21 Thread Korny Sietsma
looks perfect - thanks! On Thu, Apr 22, 2010 at 10:45 AM, Myles Eftos wrote: > Sanitize will do it (It's based on Nokogiri) > > http://github.com/rgrove/sanitize/ > > -- > Myles Eftos > Mobile: +61-409-293-183 > > MadPilot Productions - Created to be D