Re: [rails-oceania] Re: [JOB-SEEKER] Ruby, Ruby on Rails Developer

2017-02-28 Thread Adam Boas
Yeah, I agree with Wayne, there are plenty of RoR jobs in Melbourne at all 
levels. Unfortunately for those looking to travel, companies are unlikely to go 
the trouble and expense to sponsor a 457 visa for a junior role. You are 
unlikely to see that in any industry and just from a legal perspective it is an 
extremely dodgy practice as companies need to be able too show that they were 
unable to fill a role in the local market before they look to sponsor a person 
from another country.

Nevertheless I wish you luck.

Cheers,

Adam Boas
adam.b...@gmail.com



> On 1 Mar 2017, at 11:12 am, Wayne Robinson <wayne.robin...@gmail.com> wrote:
> 
> Hi Soto
> 
> I would strongly disagree with this. There are plenty of Ruby and RoR jobs in 
> Australia (particularly in Melbourne).
> 
> However, I would caution that many of them aren't remote and sponsoring 
> international employees out to Australia can be complicated enough that a lot 
> of companies avoid it.
> 
> Best of luck with the job hunt!
> 
> Cheers
> Wayne
> 
> On 1 March 2017 at 06:58, soto <sotokho...@gmail.com 
> <mailto:sotokho...@gmail.com>> wrote:
> Unless you are really good in RoR, do not come to Australia. There are not 
> many RoR job.
> Go to Seek.com.au <http://seek.com.au/> and search for yourself. There are 
> lot of RoR jobs by recruiter agencies, most of them are fake.
> Also, English is very important here. Unless you are very good in RoR, stay 
> away from Australia.
> Go to US maybe. 
> 
> On Monday, February 27, 2017 at 1:20:19 PM UTC+11, Pavel Sh wrote:
> Hi guys,
> 
> I'm looking for a job as a Ruby/Ruby on Rails Developer.
> I have 2 years of experience and several completed commercial projects.
> 
> Location: Moscow (Russia)
> Linkedin: www.linkedin.com/in/pavel1985/?locale=en_US 
> <http://www.linkedin.com/in/pavel1985/?locale=en_US>
> GitHub: github.com/Pavel-A-S <http://github.com/Pavel-A-S>
> English skills: I think people can understand me :-)
> 
> P.S. I will be glad to answer any questions - pavel.a...@gmail.com <>
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to rails-oceania+unsubscr...@googlegroups.com 
> <mailto:rails-oceania+unsubscr...@googlegroups.com>.
> To post to this group, send email to rails-oceania@googlegroups.com 
> <mailto:rails-oceania@googlegroups.com>.
> Visit this group at https://groups.google.com/group/rails-oceania 
> <https://groups.google.com/group/rails-oceania>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to rails-oceania+unsubscr...@googlegroups.com 
> <mailto:rails-oceania+unsubscr...@googlegroups.com>.
> To post to this group, send email to rails-oceania@googlegroups.com 
> <mailto:rails-oceania@googlegroups.com>.
> Visit this group at https://groups.google.com/group/rails-oceania 
> <https://groups.google.com/group/rails-oceania>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rails-oceania+unsubscr...@googlegroups.com.
To post to this group, send email to rails-oceania@googlegroups.com.
Visit this group at https://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/d/optout.


Re: [rails-oceania] Giving junior devs small tasks and bugs??

2016-08-22 Thread Adam Boas
Hi Ian,

I’m not sure that there is any solid research out there on this kind of
thing. Much of the information seems to be anecdotal or wisdom earned from
experience.

I’m not sure exactly what your role is there, but I am guessing you are
responsible for how the development gets done; lead dev, engineering
manager, or some such? If that is the case, then the bigger problem is why
you should need to have this kind of conversation at all. If your founder
feels it is necessary to micro-manage the engineering process but yet has
no understanding of how codebases can quickly deteriorate then I suspect
you have a bigger problems than just finding articles to back up an
approach you want to try.

I suggest getting some decent static code analysis tools onto your codebase
and showing your founder the decline. Once you have a baseline to work with
you should be free to try different ways of working and observe your agreed
measures to see what approaches have a positive effect. There is nothing
like a few objective measures for taking the opinion out of an argument.

You should probably further have a conversation with your founder about who
is responsible for what. There is nothing more frustrating than being
responsible for code quality and speed of features to market but not having
the autonomy to implement approaches that you believe will allow you to be
successful.

Cheers,

Adam



On 23 August 2016 at 12:47:33 PM, Andrew Harvey (and...@mootpointer.com)
wrote:

Hey Ian,

I can't bring to mind any articles that would support you here, but I agree
with your sentiments (and Glenn & Rufus').

Firstly and as you mentioned, the codebase gets messier. Juniors given
small tasks aren't pushed to understand them as part as a bigger system, so
what you end up with is small pieces of micro-complexity being added
without refactoring where a senior (knowing more about how the whole thing
works and how software tends to evolve) might avoid the accrual of
technical debt by refactoring earlier, rather than layering on a "minor"
feature. While none of these changes may be terrible on their own, the sum
of them is an increase in surface area

Secondly, you end up stunting the growth of your team and limiting
knowledge sharing. Juniors don't learn when to refactor, or about the
broader system, because the deep knowledge of the app has been siloed away
from them. Seniors don't learn how to mentor and communicate. They lose an
opportunity to become mentors and leaders, instead get their superiority
complex re-enforced by working on "big features".

You might attempt to ameliorate this by having the seniors do code review.
The problem is, code review tends to end up being a rubber-stamp process
where the senior might pick on some style issues (so there are some
changes), but rarely will they address the substance, because that will
require them to get involved in a minor change which are beneath them, and
 will steal time from them working on "big features".

But you already knew all that :)

I'm not sure how you can really sell this. Founders might feel like they're
"wasting" senior engineers by having them work with juniors or on "easy
stuff". I can imagine it's pretty hard to convince them otherwise.

There's only so many times you can go around yelling "false economies"
while waving your arms in the air. All I can add is "good luck".

A.

On Mon, Aug 22, 2016 at 3:02 PM Ian Tinsley <itins...@gmail.com> wrote:

> Hi,
>
> I need to explain to a founder how having senior engineers work on 'big
> features' and junior engineers working relatively unsupervised in a
> separate team on 'bugs and small tasks' has been a major factor in
> destroying the codebase.
>
> I was going to write up some examples of what clean well-factored code
> looks like and how it turns ugly given inexperience and inadequate
> supervision but i'm hoping there is a well written post already out there
> which says it so much better than I could?
>
> Anyone seen anything like this?
>
> cheers
>
>
> Ian
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rails-oceania+unsubscr...@googlegroups.com.
> To post to this group, send email to rails-oceania@googlegroups.com.
> Visit this group at https://groups.google.com/group/rails-oceania.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Ruby or Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to rails-oceania+unsubscr...@googlegroups.com.
To post to this group, send email to rails-oceania@googlegroups.com.
Visit this group at https:/

[rails-oceania] [JOB] Ruby on Rails Developer / Team Lead - Sydney

2016-04-07 Thread adam . heathcote
* We require a mid level or team lead ROR Developer
* Oneflare are an Australian successful disruptive start up working in the 
online market space.
* Sydney - Darling Harbour
* On-site
* $90,000 - $115,000 
* Mid Level or Team Lead
* Perm Full Time

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rails-oceania+unsubscr...@googlegroups.com.
To post to this group, send email to rails-oceania@googlegroups.com.
Visit this group at https://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/d/optout.


[rails-oceania] [JOB] Hackathon Team Mate

2014-09-03 Thread Adam
Hey RORO crew;

*I'm Adam and I'm generally new to this emailing list and the RoR group in 
whole so just let me know if I'm doing anything out of the ordinary.*

I'm a university student at UTS studying IT (major in software dev) looking 
for a Ruby on Rails co-founder/team mate for an upcoming startup 
weekend/hackathon at UTS. www.projectpitch.com.au

If anyone is from UTS and considering the entrepreneurial path contact me 
on; adam.abusoh...@outlook.com or just add me on facebook; Adam AbuSohaib

Regards, Adam. 

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rails-oceania+unsubscr...@googlegroups.com.
To post to this group, send email to rails-oceania@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/d/optout.


Re: [rails-oceania] Last week's RoRo meetup, first video

2014-03-16 Thread Adam Davies
Just want to say thanks for the effort to record and post the talk.  

... and to Trung - I've followed a similar sequence towards cleaner code in 
rails apps, except I've not totally gone the dci route. Feels like treating 
each use case as a separate app, which is an interesting idea. 

Thanks for the talk!   

David Parry david.pa...@suranyami.com wrote:
That's some mighty sweet editing there!

Brilliant.


On 17 Feb 2014, at 9:24 am, Dan Draper dan...@codehire.com wrote:

 Hey guys,
 
 I just got the first video from last week up.
 
 http://blog.codehire.com/2014/02/16/refactoring-rails-controllers
 
 Well done, Trung.
 
 Cheers,
 
 Dan
 
 -- 
 You received this message because you are subscribed to the Google
Groups Ruby or Rails Oceania group.
 To unsubscribe from this group and stop receiving emails from it,
send an email to rails-oceania+unsubscr...@googlegroups.com.
 To post to this group, send email to rails-oceania@googlegroups.com.
 Visit this group at http://groups.google.com/group/rails-oceania.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google
Groups Ruby or Rails Oceania group.
To unsubscribe from this group and stop receiving emails from it, send
an email to rails-oceania+unsubscr...@googlegroups.com.
To post to this group, send email to rails-oceania@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/d/optout.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rails-oceania+unsubscr...@googlegroups.com.
To post to this group, send email to rails-oceania@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/d/optout.


Re: [rails-oceania] [job] ContractRuby Dev @ MYOB - Glen Waverley - 3 Months On-site

2014-02-03 Thread Adam Boas
For anyone who can handle the commute to Glen Waverly, actually not as bad
as I had expected, MYOB is actually a pretty good place to work.
Interesting green fields project and a great group of people. I recommend
coming out for a bit. Plus I'd love to have another quality rubyist out
here ;)

Adam Boas


On Mon, Feb 3, 2014 at 8:42 AM, Robert Postill robert.post...@gmail.comwrote:

 Hi,

 I've moved on from C3 and am trying to make some awesome at MYOB.  I have
 a three month gig (possibly more if we find find some more money and like
 working together ;) for a Ruby dev up for grabs.  You'll be on a small team
 working with one other experienced rails dev, a not so experienced rails
 dev and a tester but talking to a number of other teams who need to work
 with your code.  We deploy the goods on Engineyard via Travis and use
 Kanban to manage our activities.  No dress code, although hipster dress is
 encouraged ;) Sound interesting?  Read on...

 As MYOB is moving to a micro-service based architecture we have a number
 of projects on the go creating useful bits and bobs. One of those is to get
 the administration of super payments wrapped up in a secure and convenient
 way so our core market of SMEs are not reduced to tears fulfilling their
 legal obligations.  There's a bit of front end work but the bulk of this is
 getting data shipped around so that money can hit the right things at the
 right times (so the tests need to be good ;)

 You're going to be a confident rails dev who gets the idioms and likes
 clean code, happy with:
 * a clear understanding of RESTful architecture
 * solid BDD and TDD skills
 * understanding of devops and cloud deployment
 * helping others with their learning curve
 Bonus points for:
 * integration experience
 * Javascript
 * coaching and mentoring chops

 If that sounds OK then mail me off-list with your github/linkedin deets or
 a cv and a contact number and let's see if this works for us both.

 No recruiters please.

 Regards
 Robert

 --
 You received this message because you are subscribed to the Google Groups
 Ruby or Rails Oceania group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to rails-oceania+unsubscr...@googlegroups.com.
 To post to this group, send email to rails-oceania@googlegroups.com.
 Visit this group at http://groups.google.com/group/rails-oceania.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rails-oceania+unsubscr...@googlegroups.com.
To post to this group, send email to rails-oceania@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [rails-oceania] Australian Companies using Ruby on Rails

2013-11-27 Thread Adam Seabrook
https://meanpath.com/f/FXTWRm Not sure if that is the right search but we are 
tracking around 1,100 sites on .AU domain using rails but our .AU coverage is 
not great.

Full report is here. If you look at only unique redirects it cuts the number 
down a fair way as some sites have multiple domains serving identical content.
https://meanpath.com/f/csv/FXTWRm/ch_er5mMUQlpvoN7Q8UDBl1Tw

--  
Cheers,
Adam
http://adamseabrook.com
http://au.linkedin.com/in/adamseabrook

On 28 Nov 2013, at 16:10, Jason Kotchoff cornflakesupers...@hotmail.com wrote:

 Hey everyone,
 
 I was chatting with a ruby mate today about the state of rails in Australia 
 and realised that i'd really like to know who else is using it on an ongoing 
 basis commercially.
 
 In lieu of a better place for the list, I updated the roro wiki with some of 
 the companies that I knew about:
 https://github.com/rails-oceania/roro/wiki/Australian-Companies-using-Ruby-on-Rails
 
 It would be really nice if the community were able to add to this list with 
 rough developer counts and urls (where appropriate).
 
 Maybe it could become a good starting point for people who are looking for 
 work?
 
 Regards,
 Jason Kotchoff
 http://stocklight.com
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to rails-oceania+unsubscr...@googlegroups.com.
 To post to this group, send email to rails-oceania@googlegroups.com.
 Visit this group at http://groups.google.com/group/rails-oceania.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rails-oceania+unsubscr...@googlegroups.com.
To post to this group, send email to rails-oceania@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [rails-oceania] Helping Junior Rubists Find Work

2013-05-03 Thread Adam Boas
Hi Ashley,

I think the problem you are identifying is not a problem with the Ruby 
community. Rather it is a problem with small - medium sized companies that 
leverage IT. That happens to be the space in which Ruby (on Rails) is getting a 
lot of traction at the moment.

What you are identifying is something that has been going on forever. Large 
companies are the only ones who have the fat (and staffing needs) to run 
graduate programs and train up juniors into the developers they need. Small to 
medium business has always poached those developers away later and leveraged 
that training without contributing (except in a small number of cases).

Unfortunately Ruby is yet to get more than a small amount of traction in the 
types of large companies that run graduate programs. Most of these are still 
using Java or .NET. That being said many Ruby devs got their training and 
developed their skills in other languages and brought that to Ruby (usually 
working with it in their spare time or on small projects). Good development 
practices and understanding of OO and Functional programming paradigms are 
useful no matter what language you end up making your living coding.

Cheers, 

-- 
Adam Boas
e: adam.b...@gmail.com
m: +61 457 741 117


On Friday, 3 May 2013 at 2:26 PM, Ashley Pettit wrote:

 Hi Guys,
 
 I've noticed a bit of a problem with the ruby community and I wanted to voice 
 my concerns. 
 
 Firstly let me say the ruby community is great. Full of passionate people who 
 love what they do and 9 times out of 10 something built in ruby is better 
 than something not purely because the developers are so passionate about 
 creating awesome products.
 
 So where's the problem?
 
 Ruby is a language which has been embraced by start-ups and small-medium 
 sized businesses. It's not something the larger companies have taken to. 
 
 Why is this a problem?
 
 Small-medium business do not have the time to train juniors. They want people 
 who are already great. They release jobs where there is an immediate 
 requirement. They don't hire just because there is misc development to be 
 done. They hire for a specific project or specific set of work. With other 
 languages like .NET, junior developers are able to get experience with larger 
 companies who run graduate programs and who can afford to train people for 
 future rewards. With Ruby however, this is not the case.
 
 Again why is this a problem?
 
 No company that I know is currently running ruby graduate programs, no-one is 
 hiring talented juniors and no-one is investing in developing people's 
 potential. Many really talented junior developers with  12 months experience 
 are being left out in the cold unable to find work and are forced to learn a 
 language like .NET because they can't find ruby work. I personally know of at 
 least several great junior Rubists who have so much potential yet no company 
 will hire them as they don't have the magical 2+ years experience to be 
 considered a Mid-level developer.
 
 I personally think that the ruby community (especially employers) needs to 
 support junior rubists a little more or the community will simply stagnate.  
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to rails-oceania+unsubscr...@googlegroups.com 
 (mailto:rails-oceania+unsubscr...@googlegroups.com).
 To post to this group, send email to rails-oceania@googlegroups.com 
 (mailto:rails-oceania@googlegroups.com).
 Visit this group at http://groups.google.com/group/rails-oceania?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rails-oceania+unsubscr...@googlegroups.com.
To post to this group, send email to rails-oceania@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-oceania?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [rails-oceania] Trying to implement per tenant ID's

2013-04-03 Thread Adam Boas
Hi Rich,

I have never used this Gem but I did notice it a while ago and it seems to be 
under active development. It might be of use to you:
https://github.com/drnic/composite_primary_keys

I'm not totally sure that any kind of gem is really required here. One thing I 
can say is that even if ActiveRecord doesn't support composite primary keys, I 
would still enforce them at the database level to underpin whatever strategy 
you use. You can then use the Account class that as the owning parent to be a 
factory for the Invoices and shell out IDs from there which the database will 
enforce uniqueness on based on the combination of it and the account_id. If you 
do that building inside a transaction and increment your sequence in there as 
well you should be pretty good.

Cheers,

Adam 

-- 
Adam Boas
e: adam.b...@gmail.com
m: +61 457 741 117


On Wednesday, 3 April 2013 at 8:29 PM, Rich Buggy wrote:

 Hi everyone,
 
 I'm building a multi-tenant application and I'd like some of the ID's to be 
 per tenant. It's using the path based multi-tenant approach. For example - 
 /:account/invoices/:id
 
 I've got the routing working correctly but the ID's are being generated 
 automatically so they are unique across the application, not just the tenant. 
 This isn't ideal because each tenant should start from 1.
 
 I already store the next id in the tenant table so they can choose to start 
 from a number other than 1. This is important as someone with existing data 
 may decide to not start from 1. I think there are a number of ways I can deal 
 with this.
 
 1. If I was doing this without rails I'd make the tenant_id + id a composite 
 field and set the id manually when creating the record. Is there are an easy 
 way to do this with rails?
 
 2. I could add number field and accept that number != id. This is easy but 
 ugly because /demo/invoices/123456 could be invoice 1
 
 3. I could add a number field and try to muck with the routing so it used 
 number instead of id
 
 Does anyone know of a good guide or blog post on how to do this?
 
 Rich 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to rails-oceania+unsubscr...@googlegroups.com 
 (mailto:rails-oceania+unsubscr...@googlegroups.com).
 To post to this group, send email to rails-oceania@googlegroups.com 
 (mailto:rails-oceania@googlegroups.com).
 Visit this group at http://groups.google.com/group/rails-oceania?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rails-oceania+unsubscr...@googlegroups.com.
To post to this group, send email to rails-oceania@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-oceania?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [rails-oceania] Community rails projects

2013-02-03 Thread Adam Boas
Hi Rohan,

I am working on a project called Carepod www.carepod.com.au It is a free 
service that aims to help families and friends stay in touch when someone is in 
hospital or critically ill.

Cheers,

Adam Boas
e: adam.b...@gmail.com
m: +61 457 741 117




On 02/02/2013, at 3:32 PM, Rohan rohan.mitch...@gmail.com wrote:

 Hey guys,
 
 I'm thinking about giving a talk at the next meeting, doing a roundup of 
 Rails projects with a community benefit, particularly ones in Melbourne. I 
 know of a few projects in the local food space (ie. dibble.com.au and 
 ceresfairfood.org.au), but not much beyond that. Is anyone working on 
 something or know someone who's working on something awesome (not just local 
 food but anything awesome for the community)?
 
 Cheers,
 Rohan
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to rails-oceania+unsubscr...@googlegroups.com.
 To post to this group, send email to rails-oceania@googlegroups.com.
 Visit this group at http://groups.google.com/group/rails-oceania?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rails-oceania+unsubscr...@googlegroups.com.
To post to this group, send email to rails-oceania@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-oceania?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [rails-oceania] How to run CI tests in parallel

2012-11-26 Thread Adam Boas
Hi Tim,

It seems to me that AR is pretty well tested already. I'm not really all that 
keen on putting database access tests all through my test base. Accessing the 
database from a unit test actually makes it an integration test. I'm not saying 
that is wrong, but it does cause me to ask myself exactly what I am trying to 
test.

I'm not suggesting that people shouldn't use state based testing, or even that 
they shouldn't use factories or fixtures. I am suggesting that tests need as 
much (or more) refactoring love as production code. Too often bad (slow) 
patterns evolve and are not addressed. When the app is small it doesn't seem to 
matter. New developers come along and copy the poor patterns they see in the 
test suite and the problem gets bigger. Eventually parallelising the build 
seems like the only way forward.

If you're lucky, like someone on this thread, you already anticipated that your 
problem was way too important for serial testing from the get go and have a 
build rockstar on your team writing complicated build stuff for you. For the 
rest of us, we now have to hive off valuable developer resources to start 
working through all the problems involved with parallel building.

I'm not saying people shouldn't go parallel. I'm just saying that for many of 
us, fixing our crappy tests is a much better return on investment. And that is 
really my point; tests should be seen as a Return On investment problem. I feel 
certain that all developers are aware that there is no such thing as total 
certainty with tests. You can only approximate and the principal of diminishing 
returns will apply. You can put your resources into solving the parallelising 
problem or you can put them into making your test suite hum, you may eventually 
need to do both.


Adam Boas
e: adam.b...@gmail.com
m: +61 457 741 117



On 27/11/2012, at 7:40 AM, Tim Uckun timuc...@gmail.com wrote:

 On Mon, Nov 26, 2012 at 12:18 PM, Adam Boas adam.b...@gmail.com wrote:
 Lots of Factory based (database dependent) unit-level specs
 
 Most rails apps exists solely to shuttle data between the database and
 the browser.  If you are mocking out these interactions you are not
 really testing the most important part of your application. This is
 especially true if you have split up your app into multiple classes
 all of which are interacting with each other and the database.
 
 It's expensive sure but it has to be done.
 
 BTW once I tried putting the database in a RAM disk for testing
 purposes, it didn't really help that much so the problem seems to be
 AR rather than the database itself.
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] How to run CI tests in parallel

2012-11-25 Thread Adam Boas
I know this opinion is probably going to be unpopular, but I just want to put 
out it there: 

If you need to parallellize your build, then your problems getting parallel 
building working are certainly not your biggest problem. 

Even if you get a parallel build working, and it is certainly doable. Where is 
that going to go? 

Step 1 people will stop doing a pre-commit build - The fact that you need a 
parallel build means that it is almost certainly prohibitively time consuming 
for a dev to do one. 

Step 2, people start caring less about build efficiency. Why care, you can't 
run it locally anyway. The net effect of this is that your parallel build will 
eventually start taking as long or longer than your old serial one.

Step 3 big refactorings become super scary, prohibitively time consuming or 
simply not doable. This is because you can't quickly re-run your specs anymore. 
A core refactor to be tested will have to go back and forth to the build server 
to be verified (probably many times). That means you are going to need another 
set of parallel builders focussing on another branch so that you don't go 
screwing up the deployable master.

Step 4, the super smart guy/gal who built your parallel build system leaves the 
team and now you are in a world of pain :-) But seriously, a lot of effort will 
go into understanding, maintaining and expanding your build.

Every project I have worked on that required a parallel build had 3 common 
threads:

Lots of Factory based (database dependent) unit-level specs
Large amounts of what should really be orthogonal, unit level specs being done 
in acceptance tests
A large application with more than one candidate application extraction

I have been privileged to work with some super smart people, and the projects 
suffering from the problems above were no exception, so it wasn't that they 
were poor developers or bad designers. Generally early extractions don't get 
done when there are tight deadlines. By the time you are feeling that your 
build is too slow and it is starting to get in the way of productivity, your 
application is already probably too big. At this point I recommend trying to 
identify groups of functionality that are candidates for an extraction. If they 
can operate completely independently and be deployed completely independently 
then that is great. Worst case scenario look to extract large pieces out as 
mountable engines.

There are certainly non-trivial issues with maintaining multiple, 
interdependent apps, but all-in-all I think teams will maintain greater 
flexibility and development speed if effort is put into this kind of 
modularisation rather than ever more complicated build structures designed to 
stop the team needing to address the design issue.


Adam Boas
e: adam.b...@gmail.com
m: +61 457 741 117



On 26/11/2012, at 9:37 AM, Thomas Egret thomas.eg...@gmail.com wrote:

 I have been using parallel_tests as well and it's very awesome however 
 sometimes the tests suite just run smoothly and sometimes just fails so we 
 had to deactivate it for the moment (wonder if you use it as well on Travis).
 
 Wish some people could give some hints regarding how to ensure my tests to 
 pass using parallel_tests.
 
 
 2012/11/26 James Healy ja...@yob.id.au
 A previous project I worked on used Jenkins with a vagrant plugin to run 
 concurrent tests in isolated VMs.
 
 It took a bit of setting up, but once it got going it was amazing and dropped 
 our build time from 20 minutes to 5 minutes.
 
 The downside was that it became tricker to understand the state of the 
 build at a glance. Instead of checking 1 project, you had to check 6 (unit 
 tests, acceptance tests 1, acceptance tests 2, etc).
 
 We also tried parallel_tests for a while and it mostly worked, but we ran 
 into a few issues with parallel acceptance specs stepping on each others toes.
 
 James
 
 
 
 On 22 November 2012 13:12, Sebastian Porto sebaspo...@gmail.com wrote:
 Hi Guys
 
 There was a discussion the other day about CI server and it was mention 
 several times how good it is to run the tests in parallel. I am intrigued by 
 this and will like to implement this. But I don't know where to start. 
 
 What is your approach for running CI test in parallel? We are using TeamCity 
 at the moment, were using Jenkins before. And Rspec.
 
 Thanks
 Sebastian
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/rails-oceania/-/HqhReVKyNx0J.
 To post to this group, send email to rails-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 -- 
 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] Recommendations for AJAX buttons actions in Rails 3.2

2012-11-21 Thread Adam Boas
Hi Michael,

The bad news is that link_to_remote still exists. It has just changed syntax: 
link_to(…, remote: true)

This functionality would be trivial to write in JS or Coffee to attach to the 
button and form and post it via ajax. I definitely wouldn't inline it in the 
link_to though. Write a JQuery plugin and attach it in dom-ready. I would 
probably write it fairly generically, since this form/button/ response 
HTML/text pattern is pretty common. 

Cheers,

Adam Boas
e: adam.b...@gmail.com
m: +61 457 741 117



On 21/11/2012, at 8:01 PM, Michael Pearson mipear...@gmail.com wrote:

 Hi,
 
 I'm looking for recommendations as to the best way to create  manage buttons 
 that perform an action on an object and then update a portion of the page 
 with a response from the server.
 
 This was relatively simple in Rails 2.3 land: the now removed link_to_remote 
 method 
 (http://apidock.com/rails/ActionView/Helpers/PrototypeHelper/link_to_remote) 
 would automagically generate javascript that would ask your Rails app for a 
 snippet and then replace part of the page with that snippet.
 
 It was, of course, messy as hell, which I think is why it got removed.
 
 Looking for something that does something similar in 3.x land hasn't gotten 
 me very far: the consensus seems to be write your own damn javascript. 
 We've done so so far, but it's never been quite as easy as the old helper 
 methods.
 
 Also, I'm haunted by the doing it wrong spectre: the way we're doing it is 
 simply aping the way the 2.3 helpers used to work, except with hand written 
 UJS rather than generated RJS.
 
 The example I'm working on right now is a button that, while editing a user, 
 allows the administrator to forgive a user's past invoices. The button is 
 within an existing form. The code, right now, is bloody terrible:
 
   = link_to Cancel Outstanding Invoices, 
 cancel_outstanding_invoices_user_path(@user), :class = btn btn-danger, :id 
 = cancel-outstanding-invoices, :remote = true, :method = :post
   :javascript
 $('#outstanding-invoices').bind('ajax:success', function(event, 
 data) { $('#outstanding-invoices').html(data); });
 
 The Rails action simply performs a render :text =.
 
 There's a whole bunch of better ways I can think of doing the above - even 
 ways that allow me to make the Javascript code completely generic. However, 
 I'd rather see how others do it first.
 
 -- 
 Michael Pearson
 
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Recommendations for AJAX buttons actions in Rails 3.2

2012-11-21 Thread Adam Boas
The real nub is defining what 'better' would mean.
Simplest? Most Re-usable? Easiest to maintain? Least amount of effort?

Its always going to be a trade off. And the 'best' approach is going to be more 
to do with where you app is already at, what the skill set is of the 
developers, and where the app is going in terms of features and functionality.

I tend to lean toward the simplest solution I can manage, particularly on 
pre-existing, large apps. If you already have controllers shipping HTML there 
is nothing wrong with leveraging that and sprinkling a little AJAX pixie dust 
to make the app seem more responsive. To me the only absolute is to keep the 
pixie dust out of the templates and make it clean and readable.

I personally really like Backbone for building an app with significant rich 
client behaviour, but would never introduce it to an existing full page post 
application just to get a little bit of responsive behaviour in some forms. It 
introduces significant complexity that just doesn't make any sense for the kind 
of thing you have mentioned. And if you are not routing or changing views, and 
have no significant model(s) it really adds very little value.

Angular is a framework I have been playing with a bit recently and it does seem 
to offer a nice, lighter weight alternative to just writing Jquery plugins for 
this kind of thing. Its binding behaviour can make responding to your posts 
nice and simple. I can definitely recommend having a bit of a look at if as an 
alternative, particularly if you want to play with the new shiny :-)

Adam Boas
e: adam.b...@gmail.com
m: +61 457 741 117



On 21/11/2012, at 8:41 PM, Michael Pearson mipear...@gmail.com wrote:

 On Wed, Nov 21, 2012 at 8:10 PM, Adam Boas adam.b...@gmail.com wrote:
 Hi Michael,
 
 The bad news is that link_to_remote still exists. It has just changed syntax: 
 link_to(…, remote: true)
 
 This functionality would be trivial to write in JS or Coffee to attach to the 
 button and form and post it via ajax. I definitely wouldn't inline it in the 
 link_to though. Write a JQuery plugin and attach it in dom-ready. I would 
 probably write it fairly generically, since this form/button/ response 
 HTML/text pattern is pretty common. 
 
 You'll see I'm already using the new :remote = true syntax in my example, 
 which handles part of the problem.
 
 You're right in that re-implementing the lost behaviour would be fairly 
 trivial - but I'm wondering whether there's a better way to do it?
 
 Returning HTML  text snippets from actions never quite felt right to me, 
 even if it was fairly easy.
 
 I'm wondering whether we should be looking at something more sophisticated. 
 I'm worried that by re-implementing the old RJS helpers using UJS will close 
 us off from better designs for the way our smattering of client side JS 
 interacts with our Rails app.
 
 -- 
 Michael Pearson
 
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Recommendations for AJAX buttons actions in Rails 3.2

2012-11-21 Thread Adam Boas
Hi Dave,

That is a nice, clean Backbone view and if I already had Backbone in the mix 
and had a page with multiple Ajax posts it would be a fairly neat solution. I 
don't think there is anything wrong with going that way, I just generally try 
to keep the stack as simple as possible for as long as possible. Generally that 
means writing a simple Jquery plugin for posting forms and dealing with the 
HTML fragment or JSON returns. You'll notice that your View is really just a 
wafer thin wrapper to the Jquery $.ajax call, doing a little coordinating. It 
is not really using any of the actual backbone functionality (besides events), 
just borrowing its style and View class.

I generally bring in Backbone when I have some heavier lifting to do and/or I 
see that my Javascript is manifesting a confusion of concerns. Backbone can 
then give me a structure that helps, generally I don't feel I get that much 
value out of Backbone unless I have a proper JSON based API to leverage and at 
least one domain class.

As I mentioned earlier, I have been experimenting, recently with using Angular 
for these 'halfway house' problems, mostly because I can get value from its 
data binding and scoping even for reasonably trivial things. I'm still not 
totally convinced that the kind of problem that Michael mentioned requires even 
that but it certainly could be helpful.

Cheers,

Adam Boas
e: adam.b...@gmail.com
m: +61 457 741 117



On 21/11/2012, at 11:54 PM, Dave Perrett perrett.d...@gmail.com wrote:

 Interesting, thanks Adam - I've been meaning to have a look at angular. This 
 is the kind of thing I've been doing in backbone - 
 https://gist.github.com/4124680 . Any thoughts? 
 
 Adam Boas wrote:
 
 The real nub is defining what 'better' would mean.
 Simplest? Most Re-usable? Easiest to maintain? Least amount of effort?
 
 Its always going to be a trade off. And the 'best' approach is going to be 
 more to do with where you app is already at, what the skill set is of the 
 developers, and where the app is going in terms of features and 
 functionality.
 
 I tend to lean toward the simplest solution I can manage, particularly on 
 pre-existing, large apps. If you already have controllers shipping HTML 
 there is nothing wrong with leveraging that and sprinkling a little AJAX 
 pixie dust to make the app seem more responsive. To me the only absolute is 
 to keep the pixie dust out of the templates and make it clean and readable.
 
 I personally really like Backbone for building an app with significant rich 
 client behaviour, but would never introduce it to an existing full page post 
 application just to get a little bit of responsive behaviour in some forms. 
 It introduces significant complexity that just doesn't make any sense for 
 the kind of thing you have mentioned. And if you are not routing or changing 
 views, and have no significant model(s) it really adds very little value.
 
 Angular is a framework I have been playing with a bit recently and it does 
 seem to offer a nice, lighter weight alternative to just writing Jquery 
 plugins for this kind of thing. Its binding behaviour can make responding to 
 your posts nice and simple. I can definitely recommend having a bit of a 
 look at if as an alternative, particularly if you want to play with the new 
 shiny :-)
 
 Adam Boas
 e: adam.b...@gmail.com
 m: +61 457 741 117
 
 
 
 On 21/11/2012, at 8:41 PM, Michael Pearson mipear...@gmail.com wrote:
 
 On Wed, Nov 21, 2012 at 8:10 PM, Adam Boas adam.b...@gmail.com wrote:
 Hi Michael,
 
 The bad news is that link_to_remote still exists. It has just changed 
 syntax: link_to(…, remote: true)
 
 This functionality would be trivial to write in JS or Coffee to attach to 
 the button and form and post it via ajax. I definitely wouldn't inline it 
 in the link_to though. Write a JQuery plugin and attach it in dom-ready. I 
 would probably write it fairly generically, since this form/button/ 
 response HTML/text pattern is pretty common. 
 
 You'll see I'm already using the new :remote = true syntax in my example, 
 which handles part of the problem.
 
 You're right in that re-implementing the lost behaviour would be fairly 
 trivial - but I'm wondering whether there's a better way to do it?
 
 Returning HTML  text snippets from actions never quite felt right to me, 
 even if it was fairly easy.
 
 I'm wondering whether we should be looking at something more sophisticated. 
 I'm worried that by re-implementing the old RJS helpers using UJS will 
 close us off from better designs for the way our smattering of client side 
 JS interacts with our Rails app.
 
 -- 
 Michael Pearson
 
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com

Re: [rails-oceania] Railscamp tomorrow - still need a projector

2012-11-14 Thread Adam McNeil
I can bring a small Dell M110 which will work for relatively low light
conditions if no one has anything better?


On 15 November 2012 14:02, Tim McEwan t...@mcewan.it wrote:

 At Byron, a few camps ago, we hired one locally. Is that an option?


 On 15/11/2012, at 13:21, Warren Seen warren.s...@gmail.com wrote:

  Hey all,
 
  Just wondering if any of you coming to Railscamp tomorrow are able to
 bring a projector? Or if you know someone coming and are able to send one
 down with them for the weekend?
 
  I've asked a couple of times, and had no response so far :(
 
  --
  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-oceania@googlegroups.com.
  To unsubscribe from this group, send email to
 rails-oceania+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/rails-oceania?hl=en.
 

 --
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/rails-oceania?hl=en.



-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] [OT] Anybody have one of the new retina MBP 13 models? Care to share your experiences?

2012-10-29 Thread Adam Boas
The rMBP 13 has the same graphics chip as the new MBA with more RAM and a 
faster chip. I have seen plenty of people drive a 27 screen with their MBA 


On Tuesday, 30 October 2012 at 9:57 AM, Michael Pearson wrote:

 On Tue, Oct 30, 2012 at 9:52 AM, Tim McEwan t...@mcewan.it 
 (mailto:t...@mcewan.it) wrote:
  That's a great point; thanks for that.  I'm not sure I want to get a 13 
  rMBP now.  (I need to use an external a fair bit.)
 
 I don't think he was saying that using an external display was a bad idea - 
 just that the native screen is much better. 
 
 Personally, I spend about two hours a day on the train with the laptop open 
 (hence preference for the 13) and the rest of the time plugged in to a Dell 
 27 at home or work.
 
 Preferring retina as it's 500g lighter than the non-retina model, and the 
 price of the non-retina model is near to the retina once you add in the 256GB 
 SSD.
 
 -- Michael Pearson
 
 
 -- 
 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-oceania@googlegroups.com 
 (mailto:rails-oceania@googlegroups.com).
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com 
 (mailto:rails-oceania+unsubscr...@googlegroups.com).
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] [JOB] Freelance Hacker Melbourne

2012-10-28 Thread Adam Native



The Hackerʼs role at Native is to develop web and mobile applications for 
Native Digital and our clients, who include Covergirl, Westfield, MTV and 
Sony. 

The role involves understanding the functional and technical requirements 
of briefs from clients and developing solutions to creative problems. More 
than that, it involves developing creative ways to increase social aspects 
of marketing campaigns through our applications.

The Hacker should be experienced in using social API’s. While rolling their 
eyes at the term, the hacker should be fluent in growth hacking 
methodology.

The Hacker will be involved from the briefing stage in creative input for 
projects as well as creating estimates (both time and financial) to allow 
clients to make informed decisions about working with Native.

Once a project has been approved the Hacker will be responsible for meeting 
time and budget estimates to deliver projects on time and on budget.

The Hacker will ensure that high standards of development are maintained. 
This includes:

- Using modern web standards

- Keeping up to date on the latest in web and application development 
technology

- Ensuring all projects are cross-browser compatible including responsive 
web techniques

- Conducting usability testing where applicable

- Conduction load and browser testing prior to project delivery

- Maintaining a version control system for all code in a central repository


On-site Melbourne CBD and remote. Project sizes vary, as does pay based on 
experience. 

Contact our Digital Producer - adamburn...@nativedigital.com.au


-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rails-oceania/-/DY16FzCRWFAJ.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] controllers rendering messy json

2012-10-19 Thread Adam Boas
Hi Richard, 

I would be highly suspicious of your reponse_wrapper and the response it is 
wrapping. In general http provides for all response you aught to need, it 
certainly provides the code, and the collection being returned shouldn't be 
ambiguous. I would look at why you need this response object at all.

As for scoping your JSON with a view or a presenter, I try to avoid it until it 
is really necessary (YAGNI). If I can get away with just scoping the JSON by 
overriding as_json in my model then that is great, go with that for as long as 
you can get away with it. Once you reach a case where you have 2 presentations 
of a given model you have no choice but to bite the bullet and use a view or 
presenter. If that happens look at ActiveModelSerializers and potentially 
Representitive and RepresentitiveView

Cheers,

Adam 


On Saturday, 20 October 2012 at 2:38 PM, Richard McGain wrote:

 Hi all, 
 
 I have just inherited a codebase and I am attempting to clean it up a bit. I 
 just can't figure out what to do with some controllers serving up json.
 
 This pattern is repeated in a bunch (10+) of controllers 
 
 def index
   users = User.find(:all)
   @json_response_wrapper[:response][:users] = users
   render json: @json_response_wrapper.as_json 
 
 end
 
 @json_response_wrapper is set by a :before_filter using this code: 
 
 def create_json_response_structure
   @json_response_wrapper = {error:{code: 0,message: }, response:{}}
 end
 
 
 The users = User.find(:all) bit obviously changes from controller to 
 controller, but the other two lines are pretty much identical. 
 
 I have looked at a few gems for handling json (such as jsonify 
 (https://github.com/bsiggelkow/jsonify), rabl 
 (https://github.com/nesquena/rabl) and acts_as_api 
 (https://github.com/fabrik42/acts_as_api/)) but I'm not convinced they solve 
 my problems (as the json formatting of the objects themselves is very basic). 
 Actually, having said that, each model defines as_json with something like 
 
 def as_json
   super(only: [:first_name, :last_name], methods: [:blah])
 end
 
 so that behaviour is in the wrong spot anyway. I still don't think this 
 justifies the use of some kind of template though (although I could be 
 convinced otherwise). 
 
 The obvious answer I guess, is to just define a method in 
 ApplicationController that looks something like
 
 def response_for(entity_name, collection)
   json_response_wrapper =  {error:{code: 0,message: }, response:{}}
   json_response_wrapper[:response][entity_name] = collection
   json.response_wrapper.as_json
 end
 
 and then in the controller
 
 render json: response_for(:users, users) 
 
 but I feel like I am missing an opportunity if I just do that. Am I just 
 hiding a bad design by doing this? 
 
 Does anyone have any better suggestions? 
 
 Thanks in advance,
 
 Richard 
 
 -- 
 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-oceania@googlegroups.com 
 (mailto:rails-oceania@googlegroups.com).
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com 
 (mailto:rails-oceania+unsubscr...@googlegroups.com).
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] ts-delayed-delta inflection problem

2012-08-28 Thread Adam Boas
Its strange 'index.pluralize returns indices but that is not what I am 
seeing in the delayed job handler


Adam Boas




On 28/08/2012, at 3:24 PM, Simon Russell si...@bellyphant.com wrote:

 Does adding a custom inflection help?  (I'm assuming that
 index.pluralize isn't returning the right thing...)
 
 On Tue, Aug 28, 2012 at 3:11 PM, Adam Boas adam.b...@gmail.com wrote:
 Hi All,
 
 I know there is a fair bit of Thinking Sphinx wisdom in this group and I was 
 hoping to get some help on an inflection issue I am seeing using Thinking 
 Sphinx Delayed Delta.
 
 What is happening is that when a Product in our system goes out of stock a 
 delayed job task is written with the following:
 
 --- !ruby/object:ThinkingSphinx::Deltas::FlagAsDeletedJob
 document_id: 80380
 indexes:
 - product_core
 
 That YAML is deserialized with an array called indexes. 
 ThinkingSphinx::Deltas::FlagAsDeletedJob unfortunately is looking for 
 indices, the long and the short of which is that it results in:
 
 NoMethodError: undefined method `each' for nil:NilClass
 
 when the flagAsDeletedJob starts to iterate through the indices.
 
 Anyone have any ideas how I can either get the indexes to serialize as 
 indices or vice-versa
 
 Cheers,
 
 Adam Boas
 
 
 
 
 --
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] ts-delayed-delta inflection problem

2012-08-28 Thread Adam Boas
Hi Pat,

Thanks for that, you're spot on. I upgraded recently to delayed job 3.0.3, 
ts-dalayed-delta 1.1.3 and thinking-sphinx 2.0.12. I realized I have another 
server instance publishing tasks to the delayed_jobs table that hadn't been 
upgraded. It was still using 'indexes'.

Cheers,

Adam Boas




On 28/08/2012, at 9:12 PM, Pat Allan p...@freelancing-gods.com wrote:

 Hi Adam
 
 Have you updated versions of Thinking Sphinx and/or Riddle lately? A while 
 ago, I switched syntax from indexes to indices in both libraries (and 
 ts-delayed-delta) - what versions of all three gems are you using?
 
 -- 
 Pat
 
 On 28/08/2012, at 7:42 AM, Adam Boas wrote:
 
 Its strange 'index.pluralize returns indices but that is not what I am 
 seeing in the delayed job handler
 
 
 Adam Boas
 
 
 
 
 On 28/08/2012, at 3:24 PM, Simon Russell si...@bellyphant.com wrote:
 
 Does adding a custom inflection help?  (I'm assuming that
 index.pluralize isn't returning the right thing...)
 
 On Tue, Aug 28, 2012 at 3:11 PM, Adam Boas adam.b...@gmail.com wrote:
 Hi All,
 
 I know there is a fair bit of Thinking Sphinx wisdom in this group and I 
 was hoping to get some help on an inflection issue I am seeing using 
 Thinking Sphinx Delayed Delta.
 
 What is happening is that when a Product in our system goes out of stock a 
 delayed job task is written with the following:
 
 --- !ruby/object:ThinkingSphinx::Deltas::FlagAsDeletedJob
 document_id: 80380
 indexes:
 - product_core
 
 That YAML is deserialized with an array called indexes. 
 ThinkingSphinx::Deltas::FlagAsDeletedJob unfortunately is looking for 
 indices, the long and the short of which is that it results in:
 
 NoMethodError: undefined method `each' for nil:NilClass
 
 when the flagAsDeletedJob starts to iterate through the indices.
 
 Anyone have any ideas how I can either get the indexes to serialize as 
 indices or vice-versa
 
 Cheers,
 
 Adam Boas
 
 
 
 
 --
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] What's it like being a Ruby dev in Australia?

2012-08-23 Thread Adam Seabrook
After having relocated a fair number of candidates from the US to Australia I 
can say that you should be looking for a 30% lift in salary from what you are 
would be paid in San Francisco to have the same standard of living in Sydney. 
If you are coming from somewhere like Austin to Sydney you are should be 
looking to double your current salary. This big jump in salary does not happen 
as most people think 1:1 is a fair enough ratio to maintain so you get 
candidates who arrive and see $4.00 bottles of water and freak out when they 
realised they have undersold themselves.

On the other side of the table when I have US clients establishing offices in 
Sydney they simply cannot get their head around why a Senior Engineer is 
getting director and senior director salary offers.

-- 
Cheers,
Adam
http://adamseabrook.com

On 24/08/2012, at 10:07 AM, Julio Cesar Ody julio...@gmail.com wrote:

 TL;DR: between US and Australia, it's what you make of it.
 
 Pitching in, as someone who went through two 457s, permanent
 residency, and eventually citizenship. Oh and I'm from Brazil, which
 is one category before last in terms of qualifiable background.
 Also, I have no degree.
 
 The three last visas I applied for, I did it all online, on my own,
 with perhaps two phone calls made to the department of immigration for
 clarifications. Maybe, I got lucky, but I find it hard to believe I'd
 get lucky three times in a row with *zero* friction as far as the
 processes went. They were helpful and polite all the way.
 
 I'm yet to be offered more money by a US company, despite numerous job
 offers from there (I bet a lot of people from here get those regularly
 too). Not to say the offers from there were all bad, but even
 factoring cost of living, plus the certainty that you won't be able to
 live there forever even if you wanted to, I'd still come out ahead
 with any of the better-than-average offer from locals.
 
 And as a freelancer, all my great clients were local. Had about three
 good clients from overseas, though all the great ones to work with
 were from around here, including people being being organised with
 payment dates and such.
 
 So go Australia!
 
 P.S.: there are great people to work with everywhere.
 
 
 
 
 
 On Fri, Aug 24, 2012 at 9:11 AM, Chris Aitchison cmaitchi...@gmail.com 
 wrote:
 Oh, and I suspect there's a few grumbles about getting permission to work
 in Australia.
 
 Here is the best of those grumbles! From a Lonely Planet Ruby dev (yes they
 still have a Ruby dev team in Footscray) trying to get permanent residency
 for himself, his Japanese wife, and half-Japanese baby born in Melbourne.
 
 http://gyrovague.com/2012/08/10/notarizing-your-fingerprints-for-fun-and-profit
 
 
 
 On Thu, Aug 23, 2012 at 6:42 PM, Andrew Grimm andrew.j.gr...@gmail.com
 wrote:
 
 I've been invited to give a 5-10 minute talk about what it's like
 being a Ruby dev in Oz. It'll be at a pre-RubyKaigi meetup in Tokyo,
 which will have a fair number of Japanese and non-Japanese people.
 
 As far as I can tell, most of the capital cities have Ruby meetups,
 and possibly meetups on JavaScript, functional programming or iOS
 programming. And Sydney also has hack nights. I'll also talk about
 Railscamps, and RubyConf Australia.
 
 I'm also asked about work in Australia. Is Ruby-based work mainly
 based in small startups and/or freelancing, with more mainstream
 languages required for larger corporations? What is the work
 environment like? What kind of hours are expected? What is the pay
 like compared to the cost of living in Australia?
 
 I've heard a few grumbles about what it's like working in a large
 corporate, but is that more about what tools and processes are used,
 rather than how they treat you?
 
 Oh, and I suspect there's a few grumbles about getting permission to
 work in Australia. But is that more of a PITA rather than a
 show-stopper?
 
 Thanks,
 
 Andrew
 
 --
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 
 --
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/rails-oceania?hl=en.
 
 --
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http

[rails-oceania] [JOB] Senior Ruby on Rails Engineer - BigCommerce - Sydney

2012-06-05 Thread Adam Seabrook
tl;dr BigCommerce are hiring RoR Engineers to work on some cool
projects in Sydney. We are a PHP shop but have a number of projects in
other languages. Full relocation and 457 sponsorship for any
candidates outside Sydney.

Apply here:
http://hire.jobvite.com/j/?aj=opPsWfwms=RoRO_Google_Group
or if you hate forms them email me on a...@proshortlist.com

---

Summary:
BigCommerce is hiring a Senior Ruby on Rails Engineer for green field
projects. The perfect opportunity for a smart Software Engineer with
at least 3 years experience developing elegant and scalable solutions.


Who are you?
You are smart in a non-scary way. You write simple and elegant code in
a variety of languages. You like solving problems and puzzles. You
love tackling scaling issues. You are passionate about learning new
languages and frameworks. You might have experience with PHP, MySQL,
Javascript (jQuery), HTML, CSS and MVC frameworks such as Zend
although we prefer to simply hire smart engineers so previous
experience in our stack is not essential. You are a bit bored where
you work now and spend way too much time reading Reddit, SO, and HN.


Who is BigCommerce?
We are an Aussie company based in Surry Hills. Our SaaS e-commerce
product (launched in 2009) is growing explosively. We have been
profitable since day one so when we decided to raise $15m to help us
build our team it was on our terms as a true partnership. Our
investors are not trying to prep us for a quick flip to some software
graveyard. They are actively involved in our business and really
helping us cement our position as the fastest growing SaaS e-commerce
platform in the world.

What are we like?
We are not a startup sweat shop. Our office is largely empty by 6pm.
We work smart not hard. We have lots of free snacks. We know exactly
what we are looking for in every person we hire. We are really, really
good at finding and attracting amazing people to join our team. Our
management team is 100% behind our dev team and do amazing things to
keep us happy, healthy, engaged and productive.

Our team:
We have a over 30 strong engineering team based in Sydney and 60
sales, support and marketing people in Austin, Texas. Most of our
Software Engineering team are PHP developers and we have made a
serious effort to hire UI, visual design, interaction design, testers
and product management people as early as we can so you can focus on
pure development.

Depending on your skill set you will end up reporting to either Ajeya
or Chris.

Ajeya Vempati - Test Engineering Manager:
Recent Thoughtworks and Google escapee, a real engineers engineer,
calls everyone “dude”, not a cowboy, definitely a maths wizz, big F1
and Ferrari fan, and most commonly found lining up outside the Apple
store at 4am.

Chris Iona - Software Engineering Manager:
He is from Adelaide, he used to work at Internode, he won't micro
manage you, genuinely cares about the whole team, he wears glasses, we
suspect he may be superman.

Soren Harner - VP of Engineering:
Ajeya and Chris both report to Soren. He was previously the VP of
Engineering at Atlassian (the Confluence and JIRA guys). He is big on
environmental issues, loves riding to work, and has had deep
experience building awesome technical teams. We bet you a cookie that
Soren is the boss you have always wanted to work for.

Mitch Harper  Eddie Machaalani - Co-Founders:
Our glorious leaders! :P Mitch and Eddie met on IRC and decided to
partner up when they realised they were both building similar
products. They do not wear hoodies, they are not arrogant, they love
working with smart people, they are very good at motivating the team,
and they won't treat you like a cog in their machine. If you have the
desire to one day go out and take a shot at your own startup you will
learn a lot from these two.

You can apply directly at this link:
http://hire.jobvite.com/j/?aj=opPsWfwms=RoRO_Google_Group

Freenode: AdamSeabrook
Email: a...@proshortlist.com
PH: 0280148960
SKYPE: adampaulseabrook
GTalk: a...@seabrook.me

If you know anyone already at BigCommerce we always recommend getting
referred by them.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] API service + client options...

2012-03-11 Thread Adam Boas
Hi Fred,

Sorry, forgot to reply to your question earlier. The problems we had with 
ActiveResource were mostly around situations where the source data structure 
didn't match perfectly with our local data structures. It became a real pain in 
the ass transforming it. I actually found it easier to just use RestClient and 
hydrate the class attributes myself using hand rolled builders. We also had 
services that didn't easily map 1 to 1 with REST. Presumably if you are in 
control of both ends then you can avoid this.

Cheers,

Adam Boas




On 11/03/2012, at 7:15 PM, Fred Wu wrote:

 Just an update:
 
 I've started building the API service using Darcy Laycock's newly released 
 RocketPants gem: https://github.com/filtersquad/rocket_pants Which works 
 pretty well, but unfortunately using his API Smith 
 (https://github.com/filtersquad/api_smith) as the client isn't as easy as 
 using ActiveResource given the relatively simple RESTful URL structure of the 
 systems.
 
 So, I've now switched to using RocketPants (for versioning and error 
 handling) + ActiveResource + InheritedResources - works pretty well so far. :)
 
 Fred
 
 On Monday, 5 March 2012 04:18:06 UTC+11, Fred Wu wrote:
 Hi guys,
 
 I'm building a RESTful web service that will be consumed by two clients. To 
 cut down the number of techs/frameworks involved, all three apps will be 
 built in Rails. I'm thinking that I could use Grape for creating the API 
 including versioning, and just use ActiveResource in the clients to consume 
 the service.
 
 Are there any better/cleaner solutions? I've checked out HTTParty (and 
 API_Smith) but seems like ActiveResource is still a bit easier to work with. 
 Any thoughts?
 
 Thanks!
 Fred
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/rails-oceania/-/6bqhWFaUSNMJ.
 To post to this group, send email to rails-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Re: [Offtopic] Developer conferences and/or training for 2012

2012-03-11 Thread Adam Boas
Hi Leonard,

In terms of conferences YOW would probably be the pre-eminent developer 
conference, prices and details can be found here:
http://www.yowconference.com.au/

I have heard talk recently of someone putting together an Australian Ruby conf. 
Perhaps they will post details here on whether that is likely to get up this 
year and if so when/how much.

If your team is using agile then the Agile Australis conference on in May, 
pricing and details here:
http://www.agileaustralia.com.au/


Cheers,

Adam Boas


On 12/03/2012, at 2:17 PM, Ben Schwarz wrote:

 Hi Leonard, 
 
 Back in November last year I started something called The Intro 
 (http://theint.ro), with which we ran a few focused workshops in Melbourne.
 We've got some plans to get started for 2012 for public workshops in 
 Melbourne and Sydney, and are also doing private workshops for groups of 5 or 
 more. 
 
 Otherwise, I know Jason Crane and Ben Webster ran a Lean UX workshop 
 (http://leanux.com.au/) today, and they're excellent fellows, so I'd vouch 
 for a repeat of that too. 
 
 And finally, attending some meetups will give you a fair idea of local 
 upcoming conferences. 
 
 Cheers, 
 
 Ben
 
 
 On Monday, March 12, 2012 1:51:31 PM UTC+11, Leonard wrote:
 I work for a corporation which means that we generally need to finalise 
 training budgets for 2012 early in the year (in my case by the end of March). 
 I'd like to be able to suggest that my team get budget approval to attend 
 primarily web-focused conferences or workshops during the year. While it 
 might be tempting to say: I'd like to attend 3 conferences this year with 
 ticket prices ranging from 500 - 1000 I actually need to be able to point at 
 specific events I'd like to attend.
 
 I have two main problems though:
 
 1. I don't know what conferences are on.
 2. I don't know how much (even approximately) they cost.
 
 Currently my approach is to see what was on last year and guess that there 
 will be similar events being held this year. For instance Web Directions have 
 already announced Melbourne for May and Sydney for October and I can assume 
 that the ticket prices will be about the same.
 
 Does anyone have any better ideas on how to get good technical training for 
 me (and my team)? I'd love to encourage my team to learn modern programming 
 practices and the time spent together at these sort of events is also 
 beneficial from a team building perspective. If anyone has a simple page that 
 says what's on, where and how much that would be a huge help too. If anyone 
 on the list organises private workshops I'd be interested to hear about them. 
 I could more easily sell an event focused on more generic topics like UI/UX, 
 Data analysis or security rather than specific topics like Ruby on Rails (as 
 my team mostly isn't ruby focused). Obviously if anyone has any better advice 
 on forums to post this in then I'm happy to learn that too.
 
 As a general comment to people organising conferences or workshops. If most 
 corporations are like mine then getting pricing and dates out early in the 
 year means we can nail down budget approval. If the event is announced even 
 as late as June it can be a real hassle juggling budget around to get 
 approval.
 
 Regards,
 Leonard
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/rails-oceania/-/CSlYwTUvNOIJ.
 To post to this group, send email to rails-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] API service + client options...

2012-03-04 Thread Adam Boas
Hi Fred,

I'm not really a huge fan of ActiveResource. It should be fine as long as you 
are not doing anything complicated but you will find yourself battling it if 
you step outside the box at all. I personally prefer to consume services with 
RestClient. From memory HTTP cacheing is simple to configure with Rack Cache.

I will give Simon's Resty gem a bit of a plug though, I found it quite handy 
for basic list/show stuff.

Cheers,

Adam




On 05/03/2012, at 9:22 AM, Gareth Townsend wrote:

 Fred,
 
 ActiveResource is pretty good and very easy to work with. One thing you will 
 probably need to do is write your own caching strategy around it, there's no 
 support for http caching headers built in sadly.
 
 When I was at NZX, we ended up writing a read-through cache on our client 
 side as our application was very read heavy. More info here: 
 http://injectisforwizards.com/blog/read-through-caching-of-activeresource/
 
 
 On 05/03/2012, at 9:07 AM, Simon Russell wrote:
 
 I haven't had great success with ActiveResource, but I guess if you
 tune the APIs to meet its fairly limited abilities, it might work.
 
 I'd say use the gem I made for consuming REST APIs of a particular
 design, but it's a bit unfinished :)  Did work somewhat nicely in most
 situations though.
 
 Simon.
 
 On Mon, Mar 5, 2012 at 08:01, ben wiseley wisel...@gmail.com wrote:
 Hey Fred!
 
 If you have control over all three apps and this api isn't going to be used
 by an unknown third party I'd really consider going the engine route instead
 of the API route.  It'll be a lot faster in the long run and be one less
 server you need running.
 
 I started using Grape on an API but ended up going straight Rails in the
 end.  Grape's great if you're doing simple stuff but getting it to play nice
 with things like Devise is pretty hackity-hack.
 
 -ben
 
 
 On Mon, Mar 5, 2012 at 4:18 AM, Fred Wu ifre...@gmail.com wrote:
 
 Hi guys,
 
 I'm building a RESTful web service that will be consumed by two clients.
 To cut down the number of techs/frameworks involved, all three apps will be
 built in Rails. I'm thinking that I could use Grape for creating the API
 including versioning, and just use ActiveResource in the clients to consume
 the service.
 
 Are there any better/cleaner solutions? I've checked out HTTParty (and
 API_Smith) but seems like ActiveResource is still a bit easier to work 
 with.
 Any thoughts?
 
 Thanks!
 Fred
 
 --
 You received this message because you are subscribed to the Google Groups
 Ruby or Rails Oceania group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/rails-oceania/-/Hg2WDp82a9oJ.
 To post to this group, send email to rails-oceania@googlegroups.com.
 To unsubscribe from this group, send email to
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 --
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/rails-oceania?hl=en.
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 Cheers,
 Gareth Townsend
 http://www.garethtownsend.info
 
 
 
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] What CI servers are you using?

2012-01-29 Thread Adam Boas
I publish the coverage report and fail the build under 100%. Team City makes it 
reasonably simple to publish these kinds of artifacts.

I have the following in my spec_helper.rb:
if ENV['RSPEC_COVERED']
  require 'simplecov'
  SimpleCov.start 'rails' do
add_filter lib/shared
# bug: changing the coverage_dir here breaks coverage recording.
at_exit do
  SimpleCov.result.format!
  if SimpleCov.result.covered_percent  100
$stderr.puts Coverage not 100%, build failed.
exit 1
  end
end
  end
end

You can set the percentage to whatever you think is appropriate.

I also add an rspec.rake in lib/tasks to set the RESPEC_COVERED flag:
begin
  require 'rspec/core/rake_task'

  namespace :spec do
desc Run tests with coverage check
task :covered do
  ENV['RSPEC_COVERED'] = '1'
  Rake::Task['spec'].execute
end
  end
rescue MissingSourceFile
  puts Rescued missing spec source file
end

Then in the build I run rspec:covered

Cheers,

Adam




On 30/01/2012, at 3:07 PM, Dmytrii Nagirniak wrote:

 On 30/01/2012, at 2:58 PM, Adam Boas wrote:
 
 Currently Simple Cov and Formatted RSpec output. I was also producing Metric 
 Fu output for Flog, Reek, Flay, Rails Best Practices and Hotspots but 
 abandoned them due to Rcov dependency issues with Metric Fu. Will look at 
 getting at least Reek back into the picture next time I have time.
 
 BTW, re SimpleCov. Do you know if there's any fail to fails build if coverage 
 is low?
 I do this trickery dance now: https://gist.github.com/1693201
 
 I also what you do with the simplecov results.
 
 Ideally, I also want to upload SimpleCov results and the Cucumber (formatted 
 as HTML) somewhere so it's available for the whole team.
 
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Agile Australia Speaker proposals closing soon

2012-01-19 Thread Adam Boas
Hi All,

I am running the design and build stream of Agile Australia this year. 
Unfortunately I have left it a little late to post here since proposals close 
at the end of January, but we are really keen to get some quality talks in the 
development space. I was hoping that some people from RoRo might submit 
proposals. A description of the design and build stream can be found here:
http://www.agileaustralia.com/umbrellas.html#Design-and-Build

And the online submission system can be found here:
http://hollow-stone-667.heroku.com

Agile Australia is being run in melbourne this year so many of you might even 
be interested in coming. It has in the past been very business focussed but we 
are trying to get some more meat into the develoment and design aspects this 
year. Please feel free just to browse the online submissions and comment or 
vote, but we would love to see proposals from here too. I am happy to answer 
any questions on or off list.

Cheers,

Adam Boas
m:+61 (0)457 741 117
e:adam.b...@gmail.com



-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Schema Visualisation Tool

2011-12-08 Thread Adam Boas
I'm sure this answer is going to subject me to all sorts of anti-rubymine 
abuse, but RubyMine has a pretty good tool that understands ActiveRecord 
associatioins and rails migrations just fine. Te diagram it generates often 
needs a bit of formatting for large domains but I have found it very useful for 
understanding a domain quickly.

Cheers,

Adam


On 09/12/2011, at 2:03 PM, Mikel Lindsaar wrote:

 Hi all,
 
 Throwing this out there anyone know of a schema visualisation tool that 
 will understand the Rails internal associations?
 
 Most rails apps are usually created without the database associations... 
 which makes this a harder problem that it would be otherwise.
 
 Mikel
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Stylesheet templates

2011-11-03 Thread Adam Boas
Hi Ivan,

Yes, something tells me I should have had a bit of a look around before I went 
to the trouble of SASSing up the bootstrap. I could have saved myself a fair 
bit of work :-)

Cheers,

Adam 



On 03/11/2011, at 2:45 PM, Ivan Vanderbyl wrote:

 Hi Steve, Adam,
 
 I've been using https://github.com/thomas-mcdonald/bootstrap-sass which is 
 gem-ified to work with the Rails 3.1 asset pipeline, and from all my 
 experience so far it has worked very well.
 
 I also made a custom form helper to use it with Formtastic if you roll that 
 way :)
 https://gist.github.com/1335718
 
 
 Ivan Vanderbyl
 Founder
 TestPilot
 i...@testpilot.me
 testpilot.me/ivan
 0432221634
 
 
 
 On 02/11/2011, at 8:12 AM, Steven Ringo wrote:
 
 Interesting to see the number of SASS-based forks of bootstrap out there, 
 the most popular one being https://github.com/jlong/sass-twitter-bootstrap
 
 Even more interesting will be to see which ones keep up with subsequent 
 releases by twitter.
 
 On that note, simple_form 2.0 
 https://github.com/plataformatec/simple_form/wiki/Upgrading-to-Simple-Form-2.0
  is being made to support bootstrap forms, see 
 https://github.com/rafaelfranca/simple_form-bootstrap
 
 Word also has it that the 2.0 release of bootstrap will see a streamlining 
 of forms; they seem quite tag-heavy atm, and very unsemantic (if there is 
 such a word...)  Follow @mdo or @twbootstrap
 
 Steve
 
 
 
 
 
 On 01/11/2011, at 7:56 PM, Adam wrote:
 
 If anyone is interested. I forked bootstrap and converted it to SASS
 and changed some of the form style to conform to rails standards, ie.
 targeting a div with the class 'field_with_errors', etc. You can clone
 it or fork it from https://github.com/tinyrobotarmy/bootstrap
 
 Adam
 
 On Oct 28, 1:02 pm, Abhinav Keswani abhinav.kesw...@gmail.com wrote:
 Gday
 
 On 28 October 2011 14:53, Matthew Vickers mvick...@quispiam.com wrote:
 
 Bootstrap, from Twitter
 http://twitter.github.com/bootstrap/
 
 +1 on twitter bootstrap for this purpose, and Sonia you may want to
 check this out:
 
 https://github.com/seyhunak/twitter-bootstrap-rails
 
 
 
 
 
 
 
 On 28/10/11 12:51 PM, Sonia Hamilton wrote:
 I've noticed that current websites have a certain look - a sort of
 sparseness, with lots of white space, and certain fonts and colours.
 
 I'm looking for a site that has some stylesheets like this that I can
 download - any suggestions? Nothing fancy - I typically use Rails for
 writing internal websites for sysadmin colleagues. Anything that also
 displays tabular data nicely would be a bonus.
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Re: Stylesheet templates

2011-11-01 Thread Adam
If anyone is interested. I forked bootstrap and converted it to SASS
and changed some of the form style to conform to rails standards, ie.
targeting a div with the class 'field_with_errors', etc. You can clone
it or fork it from https://github.com/tinyrobotarmy/bootstrap

Adam

On Oct 28, 1:02 pm, Abhinav Keswani abhinav.kesw...@gmail.com wrote:
 Gday

 On 28 October 2011 14:53, Matthew Vickers mvick...@quispiam.com wrote:

  Bootstrap, from Twitter
 http://twitter.github.com/bootstrap/

 +1 on twitter bootstrap for this purpose, and Sonia you may want to
 check this out:

 https://github.com/seyhunak/twitter-bootstrap-rails







  On 28/10/11 12:51 PM, Sonia Hamilton wrote:
  I've noticed that current websites have a certain look - a sort of
  sparseness, with lots of white space, and certain fonts and colours.

  I'm looking for a site that has some stylesheets like this that I can
  download - any suggestions? Nothing fancy - I typically use Rails for
  writing internal websites for sysadmin colleagues. Anything that also
  displays tabular data nicely would be a bonus.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] What am I doing wrong with the AR callbacks?

2011-10-31 Thread Adam Boas
I'm not failiar with that factory notation  but if your factory is like 
FactoryGirl and that :participation factory template uses a :user factory 
template internally for the association, then if it is like FactoryGirl it will 
do a create on the user even if you are doing build on the outer template. This 
is a bit of a stab in the dark since I'm not sure what you are using for 
factories and what is in your templates but I have been stung like this with 
factorygirl before. If your participation had a user and that user was already 
persisted then your callback won't go off…

Sorry this might be hopelessly off track…

Cheers,

Adam 


On 31/10/2011, at 1:59 PM, Dmytrii Nagirniak wrote:

 Hi,
 
 I must have some stupid mistake or something.
 Just can't seem to pass the spec.
 
 Could you guys please help me find where the evil has hidden in the details?
 
 
 describe Participation do
   describe invitation by email, :focus do
 let(:participation) { build :participation } # Factory
 let(:email) { participation.email }
 
 it should send an invitation do
   # This one is failing
   binding.pry # The code below is executed here
   participation.should_receive(:invite_user!)
   participation.save!
 end
 
 context when user already exists do
   let!(:existing) { create :user, :email = email }
   it should not send an invitation do
 participation.should_not_receive(:invite_user!)
 participation.save!
   end
 
 end
   end
 end
 
 
 
 Can't see anything wrong with the callbacks:
 
 # Check the before_validation callback options:
 participation.user # nil
 participation.valid? # true
 participation.user # User{id: nil}
 
 # Check the before_create callback options:
 participation.user_exists? # false
 participation.mark_for_invitation # true
 
 # Check the after_create callback options:
 participation.marked_for_invitation? # true
 
 # After all this I expect the invite_user! to be called:
 participation.stub(:invite_user!) { puts Doesn't get called :( }
 participation.save! # = true, Nothing is printed, which is consistent with 
 the spec
 participation.user_id # = 11, so the user has been saved
 
 
 The actual implementation is:
 
 
 class Participation  ActiveRecord::Base
   attr_accessor :email
 
   belongs_to :user
   validates  :email, :email = true, :on = :create, :if = :using_email?
 
   before_validation :set_user_by_email,   :if = :using_email?, :on = 
 :create
   before_create :mark_for_invitation, :unless = :user_exists?
   after_create  :invite_user!,:if = :marked_for_invitation?
 
 
   def using_email?
 email.present?
   end
 
   def user_exists?
 user.present? and user.persisted?
   end
 
   def set_user_by_email
 self.user = User.find_by_email(email)
 self.user ||= User.new(email: email).tap do |u|
   u.status = :invited
 end
   end
 
   def mark_for_invitation
 @invite_user = true
 true # make sure not cancelling the callback chain
   end
 
   def marked_for_invitation?
 !!@invite_user
   end
 
   def invite_user!
 # TODO: Send the invitation email or something
   end
 end
 
 
 Can't spot the problem.
 
 
 Thanks in advance,
 Dima
 http://www.ApproachE.com
 
 
 
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Rails is Not Your Application ...

2011-10-22 Thread Adam Boas
A fairy dies every time a developer speaks the phrase 'Services Layer'. 
Sometimes it feels like Object Oriented programmers just can't commit to OO 
design. They constantly want to pull application logic up into services so they 
can make it more procedural. If no-one has ever killed a fairy in their 
presence then they stuff it all into the controller, but if someone has spoken 
that fairy killing phrase in their presence then they righteously go about 
writing services in roughly the same way they would have written fat 
controllers and call it good design.

It is hard to argue this stuff without concrete examples but in general I don't 
see why logic not belonging to a persistent model makes it a candidate for a 
service. I probably have stronger feelings than most about this having done so 
many years of J2EE and having virtually never experienced the imaginary reuse 
my services were supposed to have given me. I never even found them to be a 
valuable abstraction as they constantly promote a procedural approach. 
Developers just don't seem to believe that the normal rules of cohesion should 
apply when working on a service.

I do think that if every class in your domain is an ActiveRecord class then you 
probably either have a reasonably trivial problem or a poorly designed domain. 
By trivial, I don't mean insignificant or not hard but just one that perfecly 
fits the CRUD paradigm that Rails so elegantly supports.

Cheers,

Adam


On 23/10/2011, at 2:33 PM, Chris Berkhout wrote:

 My reading of this article:
 
 Your application may be more than just DB-backed models and REST-based
 HTTP controllers.
 Don't be afraid to introduce additional objects to better model your domain.
 
 A services layer sits between your external interfaces (e.g.
 controllers, and others) and your models. It can reduce duplication of
 logic among interaces, and support complex interactions involving
 transactions across multiple models and the coordination of multiple
 responses.
 
 A services layer doesn't belong in /app/models or /app/controllers.
 You can put in under /lib or even extract it to an external gem (which
 you configure to access specific models in your application).
 
 
 My response:
 
 If your application's only interface is REST controllers and the
 operations your application provides are simple enough to be
 encapsulated in individual models, then Rails is your application.
 Otherwise, do introduce additional structures.
 
 
 I'm interested to hear other's thoughts.
 
 Cheers,
 Chris
 
 
 On Sun, Oct 23, 2011 at 5:33 AM, jamesl ladd.ja...@gmail.com wrote:
 I found this article insightful and thought others might as well.
 http://blog.firsthand.ca/2011/10/rails-is-not-your-application.html
 
 --
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Add more in nested forms

2011-09-27 Thread Adam Boas
Hi Mark,

Let me start with your second question first since it is infinitely easier to 
answer. If you are going to have a form partial depend on different form build 
builders then you will need to pass the form builder into the partial as a 
local. That way the parent forms can pass their form builder into the partial 
and the partial can call fields_for on it.

As for your first question, there are so many ways to skin this cat…

Let me ask first. Do you really want to nest your collection forms 2 deep? I 
can't imagine a good user experience coming from this. Probably my opinion on 
UX is not what you were after here ;-) so, if you do want to nest them and you 
don't want to do full page posts, you will need to provide some Javacript 
facility for cloning the child form and incrementing the indexes for the field 
names, ids and labels. If you want to go down this road I can post some 
Javascript snippets that will get you a fair way down the road. You will also 
need a hidden field in each child form to hold the id of items that have 
already been saved. If the id already exists Active record will be able to work 
out that they are not new records (provided they are in the datastore).

Cheers,

Adam 


On 28/09/2011, at 8:23 AM, markbrown4 wrote:

 Couldn't post an image for some reason..
 
 http://im g841.image shack.us/im g841/2681/nest.png
 
 without spaces.
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Re: ActiveRecord data structures vs objects in Rails

2011-09-11 Thread Adam Boas
I really feel that its horses for courses. Writing code in anticipation of a 
requirement is folly. That being said, exposing the internals of your classes 
locks you into a cycle that can be difficult to break out of. Good 
encapsulation is at the heart of object oriented design, as is separation of 
concerns. It is an ongoing argument as to where the lifecycle of an object ends 
and where the business of object store persistence begins. I have never seen a 
ORM framework that doesn't in some way compromise the line between object 
persistence and object modelling. You can spend a great deal of time worrying 
about exactly what you call save on but in the end I don't think it really 
matters that much.

Many applications would be hideously overcooked by applying ridiculous Java EE 
like layering. It would grossly inflate the effort required to create them and 
likely yield no benefit whatsoever. In a world where the average web 
application has a shelf life of under 3 years, you really need to ask yourself 
how much future proofing you want to enter into? 

Cheers,

Adam



On 11/09/2011, at 8:37 PM, Tim Uckun wrote:

 Sooner or later somebody is going to ask you to write an API so you
 might as well start by setting aside a directory for your API and
 coding business logic in there.
 
 I like to keep my models and controllers pretty thin.
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Looking for a test set-up critique

2011-09-10 Thread Adam Boas
I agree with a lot of this but I disagree that BDD is about testing your apps 
behaviour only. BDD is about testing the behaviour of whatever is currently the 
subject. Only testing the behaviour of the app would lead to solely writing 
integration tests. There is plenty of behaviour in components, classes and 
methods that need to be specified. Writing high level integration tests only, 
leads to difficult to find bugs and often a slow running test suite. Small 
changes in a class can break many integration tests since such tests are not 
orthogonal, that was the core driver for TDD.

I personally use Remarkable as a simple way to have tests drive out my low 
level implementation. I can't defend it within the BDD paradigm, which I 
generally follow, but I feel more comfortable having a breaking test to drive 
out my implementation. It is completely orthogonal and if the spec breaks I 
know exactly why.

Cheers,

Adam

On 10/09/2011, at 5:44 PM, Ben Hoskings wrote:

 On 10/09/2011, at 5:06 PM, Brian Guthrie wrote:
 
 if you're doing proper BDD or TDD, a lot of unit tests are just unnecessary
 
 Could you maybe clarify this a bit? If you mean unit tests of private
 methods, or avoiding overarchitecting (YAGNI), then I agree. But to me
 testing the existence of associations certainly falls within the remit
 of BDD--it's part of your class's public API, it's one of its
 responsibilities, and to test it exercises the behavior of that class.
 
 To test it doesn't involve your app's behaviour. The only reason you create 
 an association is to allow some other behaviour - it's not behaviour in and 
 of itself.
 
 To check explicitly for the existence of an association isn't testing 
 behaviour; it's testing that you remembered to write a line of code. You may 
 as well also test you remembered to define the class. :)
 
lambda { Artist }.should_not raise_error(NameError)
 
 As another example, to test your app's ability to hit some webservice, you 
 should stub the webservice, and then test:
 
 -- That your app hits the API with the correct request
 -- That when provided with an expected (stubbed) response, your app handles 
 it how you expect
 
 The idea is that your specs should stop exactly at the boundary between your 
 code and the things it interacts with or is joined to -- whether the thing is 
 a webservice, or a library like rails on top of which your app is built, or 
 something else.
 
 - Ben
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Customisations per client

2011-09-06 Thread Adam Boas
Hi Dmytrii,

It is not difficult to extract the subdomain from the request (say at the 
application controller level or in a before filter) and then apply a different 
layout based on the subdomain. That would give you a fair bit of flexibility 
for customisation.

Cheers

Adam




On 06/09/2011, at 3:14 PM, Dmytrii Nagirniak wrote:

 Hi,
 
 I was wondering ones do customisations per client in a Rails app?
 Clients (businesses) do not want to bother with it and usually send their own 
 layout and stuff. So we incorporate that into the app.
 
 More information:
 every client obtains a subdomain;
 subdomain might get some of the pages customised;
 when a client is on the main (www) subdomain, no customisation applies, but 
 same functionality is available;
 I was thinking about overriding the lookup mechanism for the views to have 
 structure like:
 views/dashboards
 index.html.erb
 views/subdomain1/index,html.erb
 
 But don't like it much as it is not very flexible (especially for assets per 
 client) and will get harder and harder to maintain and test.
 
 Have you done it before?
 Any recommendations?
 
 Cheers,
 Dmytrii Nagirniak
 http://ApproachE.com
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] RSpec practices

2011-09-01 Thread Adam Boas
Sounds a little like mixing concerns to me. Regardless of how easy it is or 
isn't to deploy your code, tax tables aren't really an application logic 
concern. Maintaining tax tables in code would probably lead to potential copy 
errors and would need to be maintained by people who likely don't understand 
them. Having them in a database, and potentially uploadable from spreadsheet, 
puts the management of them in the hands of tax people who can manage and 
verify their voracity.


Adam Boas
m:+61 (0)457 741 117
e:adam.b...@gmail.com



On 02/09/2011, at 3:32 PM, Ben Hoskings wrote:

 Deploying your app should be easy enough that that doesn't matter.
 
 You have to change the values somewhere -- if they're stored in the DB, 
 you're changing them in an admin interface. I'd rather use my editor and git. 
 :)
 
 Also, this way, you update the specs along with the rates, which reduces the 
 chances of cock-ups.
 
 - Ben
 
 
 
 On 02/09/2011, at 3:22 PM, Anthony Richardson wrote:
 
 Should the tax rates be loaded from a database in your app?
 
 With your current solution you will need to rewrite your application and
 tests each year they change the tax rates (often). Not to mention special
 cases like the flood levy.
 
 Cheers,
 
 Anthony
 
 
 
 On Fri, Sep 2, 2011 at 12:04 PM, Michael Gall mich...@wakeless.net wrote:
 
 Hi guys,
 
 I'd love to get some feedback on a spec I'm writing. It's a tax calculator
 for australian taxation rates - nothing too complex just yet, but some of
 the calulation specs feel wrong, but I don't know a better way.
 
 Thanks in advance.
 
 
 describe TaxCalculator do
 describe low income bracket {
   before { subject.income = 5000 }
   it { subject.calculate.should == 0 }
 }
 
 describe 15c tax bracket {
   before { subject.income = 1 }
   it { subject.calculate.should == 4000 * 0.15 } # the tax bracket is 15c
 in the dollar between 6000 and 37000
 }
 
 describe 30c tax bracket {
   before { subject.income = 5 }
   it { subject.calculate.should == 6000 * 0 + 31000 * 0.15 + 13000 * 0.30
 } # the tax bracket is 30c in the dollar between 37000 and 8
 }
 end
 
 
 Cheers,
 
 
 Michael
 
 
 
 
 --
 Checkout my new website: http://myachinghead.net
 http://wakeless.net
 
 --
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 
 
 -- 
 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-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.
 

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] [JOB] Permanent and Contract roles

2011-08-30 Thread Adam
We are looking for a permanent mid - snr Ruby dev as well as a
contractor for a 2 month contract on a side project related to our
core business. The contract role could be off-site after some initial
period of working together to make sure we are all on the same page.
The permanent role will be in our office in Collingwood (Melbourne).
Details of us and the permanent role are below, the skill set for the
contract role is similar but can be simply around development, the ops
component is less relavent for that role.

I am happy to hear from anyone interested directly:
adam.b...@gmail.com

Cheers,

Adam

Who we are:
A leading e-commerce Company based in Collingwood with large volume
sales on an existing Ruby on Rails platform. We have been focused on
the Australian market but are now expanding into the US. With our
small team we are necessarily a genuine devops outfit. We love
development and the problems that come with managing cloud based
infrastructure. We are focused on quality for our new work but we have
some legacy code that got us to where we are but needs to be retired
on the road to our expansion.

Who you are:
We are looking for someone with skills in Ruby as well as
configuration, deployment and server management. Someone who is
comfortable with pair programming, and robust discussion around design
and approach. Ideally that person will be uncomfortable with writing
code that doesn’t satisfy a failing test, will be relaxed, and love
what they do.

The Role:
The role will involve both supporting our existing application; a
Rails 2.3.8 application and the complicated infrastructure around it,
and helping build our new platform; a Rails 3.1 application with
vastly simplified deployment topology.

The support component requires you to be able to react to issues
occurring in production as well as be pro-active and plan to ensure
little or no downtime.

The development component entails a quality-focused approach, using
TDD and pair programming. You will be working in a small development
team and need to be a full stack developer, willing to learn about
technologies that you might not yet be familiar with.

Key skills:
Ruby/Rails
TDD
HTML/CSS/SASS
JavaScript (JQuery)
Linux (Ubuntu)
Apache or Nginx
Passenger or Unicorn
Chef or Puppet
Git

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Internship in Brisbane

2011-08-14 Thread Adam Fraser
Hi,

I'm a beginner software developer looking for an Internship in
Brisbane.  I'm just wondering how common / uncommon it is for
companies to have internships available?

If anyone has any suggestions about studios that could possibly
provide a great learning environment I would appreciate it.

I don't know a lot about the industry and I'm not too sure if there is
much rails development in Brisbane.

Thanks

Adam Fraser

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Yammer on Rails

2011-06-09 Thread Adam Pisoni
Yammer.com Rails Guru

Hey all, I'm the CTO and Co-founder of Yammer.com.  I'd heard there
may be some good ruby devs here so I thought I'd drop a note and see
if there might be anyone interested in opportunities to stretch your
skills stateside.  At Yammer, we're pushing over 200M requests per day
through the work of art that is Yammer's RoR app.  What are we doing
at Yammer?  We're changing the way people work, one company at a time.
We believe just because you leave your home and go to work doesn't
mean your tools have to suck.  We also believe companies don't have to
be as siloed and dysfunctional as they tend to be today.  Yammer is
building the Enterprise Social Network. Think Facebook for inside your
company. Yammer is the tool that keeps your whole company connected.

What we're attempting to build is extremely complex. A high
throughput, low latency, communication system where relevancy and
discoverability is paramount.  Besides our large Rails codebase, we
rely heavily on languages and technologies such as Javascript, Scala,
Postgres, Riak, BerkeleyDb, Memcache, Redis, NodeJS, RabbitMQ, etc...
At Yammer, engineers are heavily involved in the product development
process and have a lot of autonomy in deciding how things should be
built. Due to the complex and new nature of what we're building, we
are only accepting applicants who are willing to relocate to the heart
of the tech startup world, San Francisco, CA.  We take care of
relocation and sponsor visas. Comp ranges from $100-150k depending on
skill level and includes stock options. Yammer offers all the usual
amenities including free beer, catered lunch and dinner 5 days a week,
health, 401k etc...

If you are at all interested in even inquiring about what it's like to
work here, the technologies we use, or what opportunities there may be
for you, feel free to drop me a line. I'm not a recruiter so I won't
bite. Just email me at a...@yammer-inc.com.  Or check out our jobs
page http://jobs.yammer.com

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Metric_fu configuration question

2011-05-20 Thread Adam
I'm hoping someone can help me with how to exclude a reek smell from
metric_fu. I figure there must be some way to get metric_fu to pass
through the config file location or pass in the config details
directly but it doesn't seem obvious.

Amy help greatly appreciated.

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] iPhone browser simulators

2011-01-17 Thread Adam
I was wondering what browser simulators people are using for targeting
web applications at the iphone (3  4) as well as Android. I have been
trying out iphoney to cover at least iphones but it seems kind of
buggy and only simulates an iphone 3. Are there better options out
there?

Cheers,

Adam

-- 
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-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Software Developer [JOB]

2010-05-25 Thread Adam
A Green fields Ruby On Rails project sponsored by Aconex requires a
mid-level developer for a permanent position based in the Melbourne
CBD. The position is on-site.

We need a developer with a focus on quality and experience in Agile
development and XP practices. They should be comfortable with pair
programming and be completely uncomfortable with writing code without
a test.

Please send C.V.s to Nicolas Strybosch - nstrybosch at aconex dot com
or phone 0424 836 623 for a chat and more details

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Re: Hosted CI

2010-04-19 Thread Adam
We (http://mikeci.com) offer hosted CI and have recently rolled out
support for Ruby/Rake projects.

I posted a video about the new feature, using Haml as an example
(http://www.youtube.com/watch?v=0dBnlxTvzus), for those who are
interested.

Thanks

Adam

On 8 Apr, 03:12, Andrew Grimm andrew.j.gr...@gmail.com wrote:
 RunCodeRun is shutting down, and one of the replacements mentioned on
 RCR's blog is CI in a box.

 Has anyone used it? Does it allow ruby testing?

 Andrew

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Job Posting - Local SDE to work with Seattle dev team.

2010-02-22 Thread Adam C
Hi RoRo.

We have a fairly unique and exciting offer for the right Ruby
developer. Please have a read through and if you have any questions,
please feel free to make contact with us on the email below.


ABOUT OUR COMPANY

Founded in 2007, our company is dedicated to helping students find
great local teachers, and empowering teachers of all kinds (we’re all
experts in something!) with robust online tools to help people connect
with their teaching business.  2010 is going to be huge as we’re
partnering with a like minded and exciting start up in the U.S and
we’ll be working closely with their first class development and
management team that will see us both contributing to each others
success.

OVERVIEW: Software Development Engineer (Offsite work a possibility,
office is based in Torquay Vic - salary based on experience)

We’re looking for a highly motivated engineer who gets excited about
designing and implementing large-scale, distributed systems and enjoys
building useful, engaging user interfaces.  Ideal candidates will work
well in a collaborative manner with a small team of developers in
Seattle and local designers and product managers, with a strong drive
for “getting things done”!



JOB DESCRIPTION  RESPONSIBILITIES

No two days will be alike - -stars in the role will be excited to work
on a wide variety of technical problems including data gathering/
analysis,database design, front end programming, caching strategies,
search and region-centric algorithms and more.

Start with ideas, design products and features, architect technical
solutions, then rapidly prototype, build, test, launch and measure the
effectiveness of service/solutions.

Open to testing variations on ideas; we’re building our platform to
enable customers to tell us (with their actions) what they love.

Working hard and smart to make the business a one of a kind
experience.  We’re small and we’re embarking on something big and
exciting!  It will mean that one day you’ll be writing code, the next
you may be actively contributing in business development, marketing or
even a finance meetings.

Actively contribute as a critical member of an energized start up team
both here and with our partner team in Seattle.


EXPERIENCE REQUIREMENTS

*Strong knowledge of and experience with, Linyx/Unix as both an
operational and development platform.  Debian or Ubuntu distributions
preferred.

*3-5 years experience with relational database platforms such as
Postgres, MySQL, SQLServer, or Oracle.  Postgres preferred, PostGIS
experience a plus.

*Strong understanding of web standards including HTML/CSS and
experience with popular JavaScript libraries including
Script.aculo.us, YUI, jQuery.

*Team-based software development

*Strong understanding of algorithm design  building scaleable,
distributed architectures including multi-tiered, redundant, fault-
tolerant systems.

*Incredibly positive, just do it attitude! (Pessimists and complainers
need not apply)


We have a relaxed dress as you like environment.  Office with great
views, private balcony and fireplace if you're working onsite.
Parking never an issue.  No politics, no games, just exciting work and
awesome support both locally and from Seattle.

If you’re interested, please submit the following to
adam.cunnig...@bigpond.com

*Cover Letter, explaining why you’d ROCK at this job,
*What you’re interested in learning / what you’ve learned recently
*Resume

If you have any questions, please feel free to ask!

We look forward to hearing from you.

Adam C

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Re: Best laptop to buy for linux?

2009-12-21 Thread Adam Meehan

 What's the state of Bootcamp? I want to boot into Linux but could keep OSX
 hanging around.

Having recently had the experience with dual booting on the latest MBP
with Ubuntu I can give a bit of input. Disclaimer here is that I have
abandoned Ubuntu for OSX over a month ago and the following info may
be outdated.

You are best to use rEFIt for boot loading. Gives you more options and
can load more OSes if need be.

http://refit.sourceforge.net/

As for general usage it works fairly well. The integrated button on
the touchpad causes some very annoying issues. You will need to do a
fair bit of
tweaking of the settings to get comfortable. The MacTel packages were
not all updated for the latest Ubuntu or the MBP 5 series hardware, so
its a bit mix and match. This seemed to be more the case with the 15in
(5,3).

Observations/Annoyances:
- 15 inch requires you recompile the kernel with a soundcard hack
after any kernel updates
- battery life is poor, ~2hrs, unless you try a raft of power tweaks
that may or may not help.
- most function keys work with the latest package for them (can't
remember name) though I had trouble getting it to load on boot
- light sensor doesn't work
- switch between graphics cards doesn't work. high perf graphics card
is used all the time which sucks power
- sleep mode works from memory
- latest ubuntu boots very slow, though this is observed on all
hardware

Ultimately it worked but for day to day productivity it became
annoying with the touchpad issues and short battery life. Also you
sacrifice the seemless integration between OS and hardware which OSX
gives you, which I have since discovered is rather valuable.

Adam

--

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.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.




[rails-oceania] Re: Action/Active naming convention

2009-10-29 Thread Adam Meehan

From what I can recall from the RailsConf 2008 core group panel, the
rationale is something along the lines that Active is given to a
component/gem that can be used standalone and Action is given to
component/gem which is dependent on other components. Though it
doesn't quite work since ActiveRecord needs ActiveSupport. But most of
the Action stuff is in ActionPack and can't be used standalone as
such. ActionMailer depends on ActionController so that still holds.

But its a loose convention that is getting muddier and they said they
won't be holding on to it religiously.

Adam

On Oct 29, 9:02 am, Chris Lloyd christopher.ll...@gmail.com wrote:
 Hi,

 This has been bugging me for a while: why is there a difference in the
 Action/Active naming convention that Rails uses? Why is there ActiveRecord
 and ActionController? Why not ActionRecord or ActiveController? Neither
 Action or Active are particularly descriptive.

 I tried Googling but nothing came up so perhaps somebody closer to DHH can
 chip in an answer?

 Cheers!

 Chris

 --
 chrislloyd.com.au
--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Hpricot segfault OSX - ruby1.9.1

2009-09-16 Thread Adam Salter
 And third,
 It works if i install hpricot from source...

 Out of curiosity, what happens if you do a gem install with  
 ARCH_FLAGS set to use 64-bit?

No that doesn't work. same result.
--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Hpricot segfault OSX - ruby1.9.1

2009-09-16 Thread Adam Salter
Yes.
/opt/local/bin/ruby

I know it sounds stupid that it should segfault against 1.8.7 when  
installed with ruby 1.9.1'gem'
I hope that it isn't something like the gem using a guess on mac as to  
'site_ruby' and macports is being circumvented.
Anecdotal evidence from others using ruby 1.9.1 is that it's only me...

I'm reinstalling my macports with:
sudo port upgrade --force installed
(upgrade all currently installed ports)

Will let all concerned know how I go.

Ruby 1.9.1 - not for the faint of heart. (I've overcome a few hurdles  
just to get to this stage lol - all in all a very nice experience when  
it works though)

-Adam

On 16/09/2009, at 3:03 PM, Ian Leitch wrote:

 I've not been following this thread very closely, but the ruby  
 version you're building the gem against is 1.8.7, not 1.9.1.

 Wild guess... you're building the gem using sudo, does your root  
 user have /opt/local/bin in PATH?

 does 'which ruby' and 'sudo which ruby' give you the same result?

 2009/9/16 Adam Salter adam.q.sal...@gmail.com
 Firstly, wow cutting edge hardware!
 'arch -x86_75 irb'
 ;)

 Second,
 Protip: require 'rbconfig'

  Config::CONFIG['CFLAGS']
 NameError: uninitialized constant Config
   from (irb):1
   from /opt/local/bin/irb:12:in `main'
  require 'config'
 LoadError: no such file to load -- config
   from (irb):2:in `require'
   from (irb):2
   from /opt/local/bin/irb:12:in `main'
  require 'rbconfig'
 = true
  Config::CONFIG['CFLAGS']
 = -O2 -arch x86_64 -O2 -g -Wall -Wno-parentheses  -fno-common - 
 pipe -fno-common

 It _is_ 64 bit. :/


 And third,
 It works if i install hpricot from source...

 now i'm getting json gem compiler errors... even after uninstall/ 
 reinstall

 /Users/adam/.gem/ruby/1.9.1/gems/json-1.1.9/ext/json/ext/ 
 parser.bundle: [BUG] Segmentation fault
 ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

 Abort trap


 I think my macports archs might be f#$%ked up somewhere along the  
 line.

 I was a _early_ snow leopard adopter and a lot changed in the first  
 few days...

 -Adam

 On 16/09/2009, at 2:35 PM, Bodaniel Jeanes wrote:

 Nice ... Good tip for me to remember!

  Config::CONFIG['CFLAGS']
 = -arch i386 -arch x86_64 -g -Os -pipe -fno-common - 
 DENABLE_DTRACE  -fno-common  -pipe -fno-common  

 Adam, is you see it is compiled as both you can force it to run as  
 one or the other by doing:

 $ arch -i386 irb

 or

 $ arch -x86_75 irb

 and see if that yields better results (`man arch` for more info)

 On Wed, Sep 16, 2009 at 2:30 PM, Ian Leitch port...@gmail.com  
 wrote:
 ~ $ irb
 irb(main):001:0 Config::CONFIG['CFLAGS']
 = -O2 -arch x86_64  -fno-common -pipe -fno-common  
 irb(main):002:0

 2009/9/16 Bodaniel Jeanes m...@bjeanes.com

 nevermind, none of those return anything useful for me with regards  
 to the architecture. Someone who is more knowledgeable about these  
 things could probably find out using something like Array#pack and  
 the byte orders etc but this is way beyond my knowledge. If `file`  
 says it is 64-bit it's a good bet it is and perhaps you should be  
 force-compiling Hpricot as 64-bit instead...


 On Wed, Sep 16, 2009 at 2:12 PM, Bodaniel Jeanes m...@bjeanes.com  
 wrote:
 Sorry .. what about the following constants:

  Object.constants.grep /RUBY/
 = [RUBY_DESCRIPTION, RUBY_VERSION, RUBY_COPYRIGHT,  
 RUBY_FRAMEWORK, RUBY_RELEASE_DATE, RUBY_FRAMEWORK_VERSION,  
 RUBY_PLATFORM, RUBY_PATCHLEVEL]


 On Wed, Sep 16, 2009 at 1:44 PM, Adam Salter  
 adam.q.sal...@gmail.com wrote:
 So what version of ruby1.9 do I have? 'i386-darwin10' or 'x86_64'

 btw: ruby -e 'puts RUBY_VERSION'
 gives '1.9.1'

 -Adam

 On 16/09/2009, at 1:34 PM, Lincoln Stoll wrote:

 That's because SL reports the kernel architecture as the platform  
 type, not the userspace architecture. It's been a contentious  
 issue.. But that's another story.

 Also, by default macports on 64 bit capable systems will build 64  
 bit binaries. You can change this to build for 32/64 or 32 only by  
 playing with the universal variant.

 Linc

 // Sent from my mobile phone.

 On 16/09/2009, at 3:38, Adam Salter adam.q.sal...@gmail.com wrote:

 I don't know what the hell is going on:

 [r...@omegatron ~]# ruby -v
 ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]
 [r...@omegatron ~]# file `which ruby`
 /opt/local/bin/ruby: Mach-O 64-bit executable x86_64

 ruby is saying it's 32-bit, file is saying it's 64-bit

 -Adam

 On 15/09/2009, at 8:54 PM, Bodaniel Jeanes wrote:

 using stock ruby you definitely want to be doing that, he is  
 using macports ruby 1.9 which based on his `ruby -v` output is  
 32-bit so he should in fact ensure that he is compiling the  
 extensions as 32-bit

 On Tue, Sep 15, 2009 at 8:21 PM, Pat Allan p...@freelancing-gods.com 
  wrote:

 Not sure if it's relevant, but for Snow Leopard I installed  
 mysql, pg
 and do_sqlite3 gems configured for 64bit like so:
   sudo env ARCHFLAGS=-arch x86_64 gem install mysql

 --
 Pat

[rails-oceania] Re: Hpricot segfault OSX - ruby1.9.1

2009-09-16 Thread Adam Salter

Wow.
Ruby_fu.

# = 64bit

-Adam

On 16/09/2009, at 2:25 PM, Wayne Meissner wrote:


 e.g.
 ruby -e 'puts 0xfee1deadbeef.is_a?(Fixnum) ? 64bit : 32bit'


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Hpricot segfault OSX - ruby1.9.1

2009-09-16 Thread Adam Salter


 What does `gem env` output?


The usual:
RubyGems Environment:
   - RUBYGEMS VERSION: 1.3.1
   - RUBY VERSION: 1.9.1 (2009-07-16 patchlevel 243) [i386-darwin10]
   - INSTALLATION DIRECTORY: /opt/local/lib/ruby1.9/gems/1.9.1
   - RUBY EXECUTABLE: /opt/local/bin/ruby1.9
   - EXECUTABLE DIRECTORY: /opt/local/bin
   - RUBYGEMS PLATFORMS:
 - ruby
 - x86-darwin-10
   - GEM PATHS:
  - /opt/local/lib/ruby1.9/gems/1.9.1
  - /var/root/.gem/ruby/1.9.1
   - GEM CONFIGURATION:
  - :update_sources = true
  - :verbose = true
  - :benchmark = false
  - :backtrace = false
  - :bulk_threshold = 1000
  - :sources = [http://gems.rubyforge.org/;, http://gems.github.com 
]
  - gem = --no-rdoc --no-ri
   - REMOTE SOURCES:
  - http://gems.rubyforge.org/
  - http://gems.github.com


... but I found the issue:

 [a...@omegatron ~/dev/temp] which rails
 /usr/bin/rails
 [a...@omegatron ~/dev/temp] which ruby
 /opt/local/bin/ruby

I'm guessing OSX has a rails binary installed by default...

I've just rm -rf my whole macports... sigh

-Adam


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Hpricot segfault OSX - ruby1.9.1

2009-09-15 Thread Adam Salter
Is anybody else seeing a segfault on hpricot on OSX 10.6 and Ruby 1.9.1?

I've installed ruby with MacPorts.

Here's the error:

 /opt/local/lib/ruby1.9/gems/1.9.1/gems/hpricot-0.8.1/lib/ 
 fast_xs.bundle: [BUG] Segmentation fault
 ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

 Abort trap

ruby -v:
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]

-Adam



--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Hpricot segfault OSX - ruby1.9.1

2009-09-15 Thread Adam Salter
Interesting point...
Are you running ruby 1.9.1/hpricot 64bit?

-Adam

On 15/09/2009, at 6:09 PM, Bodaniel Jeanes wrote:

 One thing to consider is that the ruby 1.8.7 that comes with 10.6 is  
 64-bit but your ruby 1.9 seems to be 32-bit. Possibly the gem  
 install picked up on some incorrect env variables and defaulted to  
 building Hpricot for 64-bit?

 On Tue, Sep 15, 2009 at 5:43 PM, Adam Salter  
 adam.q.sal...@gmail.com wrote:
 Is anybody else seeing a segfault on hpricot on OSX 10.6 and Ruby  
 1.9.1?

 I've installed ruby with MacPorts.

 Here's the error:

 /opt/local/lib/ruby1.9/gems/1.9.1/gems/hpricot-0.8.1/lib/ 
 fast_xs.bundle: [BUG] Segmentation fault
 ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

 Abort trap

 ruby -v:
 ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]

 -Adam






 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Hpricot segfault OSX - ruby1.9.1

2009-09-15 Thread Adam Salter

'maintained' sigh yep. Try finding somebody who wants to take  
ownership for hpricot... I couldn't.

Unfortunately the bug is in 'rails myapp -d mysql'... Can't quite be  
bothered to make the change to nokogiri... ;)

I'll look at my compilation re:64-bit I'm pretty sure I've seen stuff  
about changing all MacPorts compiles to 64-bit by default.

-Adam

On 15/09/2009, at 6:40 PM, Richard Heycock wrote:


 Excerpts from Adam Salter's message of Tue Sep 15 17:43:20 +1000 2009:
 Is anybody else seeing a segfault on hpricot on OSX 10.6 and Ruby  
 1.9.1?

 I've installed ruby with MacPorts.

 Here's the error:

 /opt/local/lib/ruby1.9/gems/1.9.1/gems/hpricot-0.8.1/lib/
 fast_xs.bundle: [BUG] Segmentation fault
 ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

 Abort trap

 ruby -v:
 ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]

 -Adam

 I know this may not be that helpful but have you considered using
 nokogiri. Porting from hpricot is pretty straightforward and  
 nokogiri is
 faster, oh, and maintained.

 rgh

 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Hpricot segfault OSX - ruby1.9.1

2009-09-15 Thread Adam Salter
I don't know what the hell is going on:

[r...@omegatron ~]# ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]
[r...@omegatron ~]# file `which ruby`
/opt/local/bin/ruby: Mach-O 64-bit executable x86_64

ruby is saying it's 32-bit, file is saying it's 64-bit

-Adam

On 15/09/2009, at 8:54 PM, Bodaniel Jeanes wrote:

 using stock ruby you definitely want to be doing that, he is using  
 macports ruby 1.9 which based on his `ruby -v` output is 32-bit so  
 he should in fact ensure that he is compiling the extensions as 32-bit

 On Tue, Sep 15, 2009 at 8:21 PM, Pat Allan p...@freelancing- 
 gods.com wrote:

 Not sure if it's relevant, but for Snow Leopard I installed mysql, pg
 and do_sqlite3 gems configured for 64bit like so:
   sudo env ARCHFLAGS=-arch x86_64 gem install mysql

 --
 Pat

 On 15/09/2009, at 11:04 AM, Bodaniel Jeanes wrote:

  I'm still running 187 but i have 191 installed (from source). I just
  tried installing it and I could use the gem fine. I installed like
  so, just to be sure:
 
  $ sudo env ARCHFLAGS=-arch i386 gem install hpricot
 
 
  On Tue, Sep 15, 2009 at 6:20 PM, Adam Salter
  adam.q.sal...@gmail.com wrote:
  Interesting point...
  Are you running ruby 1.9.1/hpricot 64bit?
 
  -Adam
 
  On 15/09/2009, at 6:09 PM, Bodaniel Jeanes wrote:
 
  One thing to consider is that the ruby 1.8.7 that comes with 10.6
  is 64-bit but your ruby 1.9 seems to be 32-bit. Possibly the gem
  install picked up on some incorrect env variables and defaulted to
  building Hpricot for 64-bit?
 
  On Tue, Sep 15, 2009 at 5:43 PM, Adam Salter
  adam.q.sal...@gmail.com wrote:
  Is anybody else seeing a segfault on hpricot on OSX 10.6 and Ruby
  1.9.1?
 
  I've installed ruby with MacPorts.
 
  Here's the error:
 
  /opt/local/lib/ruby1.9/gems/1.9.1/gems/hpricot-0.8.1/lib/
  fast_xs.bundle: [BUG] Segmentation fault
  ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
 
  Abort trap
 
  ruby -v:
  ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]
 
  -Adam
 
 
 
 
 
 
 
 
 
 
 
 
  





 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Hpricot segfault OSX - ruby1.9.1

2009-09-15 Thread Adam Salter
So what version of ruby1.9 do I have? 'i386-darwin10' or 'x86_64'

btw: ruby -e 'puts RUBY_VERSION'
gives '1.9.1'

-Adam

On 16/09/2009, at 1:34 PM, Lincoln Stoll wrote:

 That's because SL reports the kernel architecture as the platform  
 type, not the userspace architecture. It's been a contentious  
 issue.. But that's another story.

 Also, by default macports on 64 bit capable systems will build 64  
 bit binaries. You can change this to build for 32/64 or 32 only by  
 playing with the universal variant.

 Linc

 // Sent from my mobile phone.

 On 16/09/2009, at 3:38, Adam Salter adam.q.sal...@gmail.com wrote:

 I don't know what the hell is going on:

 [r...@omegatron ~]# ruby -v
 ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]
 [r...@omegatron ~]# file `which ruby`
 /opt/local/bin/ruby: Mach-O 64-bit executable x86_64

 ruby is saying it's 32-bit, file is saying it's 64-bit

 -Adam

 On 15/09/2009, at 8:54 PM, Bodaniel Jeanes wrote:

 using stock ruby you definitely want to be doing that, he is using  
 macports ruby 1.9 which based on his `ruby -v` output is 32-bit so  
 he should in fact ensure that he is compiling the extensions as 32- 
 bit

 On Tue, Sep 15, 2009 at 8:21 PM, Pat Allan p...@freelancing- 
 gods.com wrote:

 Not sure if it's relevant, but for Snow Leopard I installed mysql,  
 pg
 and do_sqlite3 gems configured for 64bit like so:
   sudo env ARCHFLAGS=-arch x86_64 gem install mysql

 --
 Pat

 On 15/09/2009, at 11:04 AM, Bodaniel Jeanes wrote:

  I'm still running 187 but i have 191 installed (from source). I  
 just
  tried installing it and I could use the gem fine. I installed like
  so, just to be sure:
 
  $ sudo env ARCHFLAGS=-arch i386 gem install hpricot
 
 
  On Tue, Sep 15, 2009 at 6:20 PM, Adam Salter
  adam.q.sal...@gmail.com wrote:
  Interesting point...
  Are you running ruby 1.9.1/hpricot 64bit?
 
  -Adam
 
  On 15/09/2009, at 6:09 PM, Bodaniel Jeanes wrote:
 
  One thing to consider is that the ruby 1.8.7 that comes with 10.6
  is 64-bit but your ruby 1.9 seems to be 32-bit. Possibly the gem
  install picked up on some incorrect env variables and defaulted  
 to
  building Hpricot for 64-bit?
 
  On Tue, Sep 15, 2009 at 5:43 PM, Adam Salter
  adam.q.sal...@gmail.com wrote:
  Is anybody else seeing a segfault on hpricot on OSX 10.6 and Ruby
  1.9.1?
 
  I've installed ruby with MacPorts.
 
  Here's the error:
 
  /opt/local/lib/ruby1.9/gems/1.9.1/gems/hpricot-0.8.1/lib/
  fast_xs.bundle: [BUG] Segmentation fault
  ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
 
  Abort trap
 
  ruby -v:
  ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]
 
  -Adam
 
 
 
 
 
 
 
 
 
 
 
 
  










 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Bloddy Ruby 1.9 encodings

2009-09-10 Thread Adam Salter
I got sick of a particularly bad time tracking down a 'bad encoding'  
error in rails on ruby 1.9, so I've written a gem...

http://github.com/adamsalter/bad_encodings-ruby19/tree/master

It basically iterates over the regular 'ruby' files it can find and  
tries each line for 'valid_encoding' and then returns a list of all  
lines that failed.

Fixed my issue (another coder, on ruby 1.8, had edited a library(!)  
and put a bad encoding in)

Try it out and let me know how you go.

Cheers,
-Adam



--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: why oh _why?

2009-08-25 Thread Adam Salter

How could you say that,

You NAZI!!!

-Adam


On 24/08/2009, at 6:31 PM, Myles Byrne wrote:


 On Mon, Aug 24, 2009 at 5:25 PM, Conversant
 Studiosben.webs...@gmail.com wrote:
 lol excuse my Monday arvo tiredness ... but seems Ayn Rand is a  
 noughties
 mutation of Godwins law (http://en.wikipedia.org/wiki/Godwin%27s_law)

 Probably. At the very least the mention of any mutation of Godwins
 law is probably itself a mutation of Godwins law :)

 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: why oh _why?

2009-08-25 Thread Adam Salter
Do I dare say it?

You Mailing List

Nah didn't have the guts...

-Adam

On 26/08/2009, at 2:14 PM, Mark Ratjens wrote:

 Um ... off topic, perhaps?
 Could you start a new thread if you want to continue ... I'm  
 interested in _why, but not what this thread has morphed into

 On Wed, Aug 26, 2009 at 1:29 PM, Andrew Grimm andrew.j.gr...@gmail.com 
  wrote:

 Martin Heidegger is someone who's a little off-limits due to his
 nazi-era stuff (he's quoted by Everything is Miscellaneous author
 David Weinberger ).

 Can you provide some information on FDR and fascism?

 As far as I can tell, Roosevelt was opposing the axis powers when
 general public opinion was isolationist. Also, conspiracy theorists
 thought that he was under the control of the Jews, and that the
 Jews were behind world war 2.

 Andrew

 On Wed, Aug 26, 2009 at 11:48 AM, Duncan Baynedhgba...@gmail.com  
 wrote:
 
  lol excuse my Monday arvo tiredness ... but seems Ayn Rand is a  
 noughties
  mutation of Godwins law (http://en.wikipedia.org/wiki/Godwin%27s_law 
 )
 
  It's funny that some philosophers  religions are considered  
 kosher in
  online fora but others aren't; one can mention Jung, but Rand is  
 off-
  limits?
 
  (On a related note it's funny how many politicians and public  
 figures
  who are so popular nowadays - esp. Churchill and FDR - were  
 outspoken
  supporters of fascism  fascist leaders, right up until it profited
  them to oppose it.  If Godwin's law were applied with an even hand,
  one wouldn't be able to mention pretty much anyone politically  
 active
  between 1920 and 1945 or so).
  
 





 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Melbourne Hackfest is go!

2009-08-14 Thread Adam Meehan

butt a duck
plucka duck
butter duck (duck butter)
serve

On Aug 14, 3:23 pm, Matt Allen matt.al...@gmail.com wrote:
 Anyone have a good Duck buttering recipe?
 Matta

 On Fri, Aug 14, 2009 at 3:22 PM, Ben Schwarz ben.schw...@gmail.com wrote:

  Just a reminder that this is only a mere week away. So start buttering
  up your wife/girlfriend/boyfriend/duck this weekend!
  Enjoy the sunshine this weekend.

  -

  On Aug 7, 2:43 pm, James Healy ji...@deefa.com wrote:
   Clinton wrote:
Numbers will be limited by how many chairs we have here at Envato,
which is about 20.  Please let me know by e-mail that you are coming.

   Sounds like fun, I'll be there until evening. There's a Protoculture gig
   on that night, so need to head home and make myself beautiful! Or
   something...

   -- James Healy jimmy-at-deefa-dot-com  Fri, 07 Aug 2009 14:37:51 +1000


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: The future of Ruby

2009-07-29 Thread Adam Salter

https://twitter.com/yukihiro_matz/statuses/2887132160

-Adam

On 30/07/2009, at 9:56 AM, Matthew Winter wrote:


 My only concern about all the moves to Engine Yard, is just that,  
 are we not reliant too heavily now on the good will of one company.  
 Heck they now have the core developers for Rubinius and JRuby. The  
 idiom too many eggs in one basket comes to mind. Do we need to  
 worry about the direction Engine Yard may push on these  
 implementations.


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: apologies

2009-07-15 Thread Adam Salter

Classic.

-Adam

On 15/07/2009, at 12:06 PM, Dave Newman wrote:

 Xml is like violence. If it's not solving all your problems you're  
 not using enough of it.



--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: A taste of where the web is going

2009-07-14 Thread Adam Salter

Agreed.
Exposé is a pretty cool (and useful) technology on the desktop, which  
involves 3d manipulation and effects.
Also Mover App on iPhone:
http://www.iphonelife.com/blog/2884/mover-app-does-move-it-move-it

Also, for sake of completeness, MS Surface technology, but I've  
_NEVER_ actually seen as more than a product demonstration...

I still think it would make a great 'history' browser as long as it is  
still accessible and degrades gracefully...

-Adam

On 15/07/2009, at 10:34 AM, Nathan de Vries wrote:


 On 15/07/2009, at 10:00 AM, James Salter wrote:
 Revolution? yeah maybe for say, band websites, but I'm sceptical this
 is a big deal for anyone trying to develop web apps with complexity
 anywhere above trivial.

 3D effects probably won't be used too much in practical cases, but
 Snow Stack demonstrates much more than 3D effects. I think we're
 slowly going to see web pages transition from static, boxy pages into
 fluid applications that respect the principles of animation [1]. We've
 already seen this on the iPhone, where (mostly) appropriate use of
 animation makes interacting with applications much more pleasurable.
 CSS transforms open the door to decent animation on the web.


 Cheers,

 Nathan de Vries

 [1] http://en.wikipedia.org/wiki/12_basic_principles_of_animation

 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: apologies

2009-07-14 Thread Adam Salter

I did think the mention of XML in the title was a bad idea...
You might as well have called it:
Going back to SOAP - the good old days
or
Why XSLT was actually a good idea
or even
COBOL for fun and profit (and brain hurt)

I've got sooo many more...
-Adam

On 15/07/2009, at 11:39 AM, Lachlan Hardy wrote:


 Also the feedback I got from the guys in the office (before it became
 evident we weren't going to make it to the meeting) was that no one
 wants to hear a talk with XML in the title, so I'm happy to give the
 talk next month re-titled as Good Abstraction, Bad Abstraction - A
 Jovial Jaunt Through the Dark Side of Software Engineering

 It's still the same talk, though, right?

 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: timely traffic reporting

2009-07-12 Thread Adam Salter

Might just be the 3G network today, but anecdotally, their  
'technology' (heat map tracking etc.) is pretty unusable on an iPhone.

Sent from my iPhone

On 12/07/2009, at 3:34 PM, Torm3nt torm...@gmail.com wrote:


 Likewise, that product looks fantastic - would love to get in and  
 give it a go.


 --
 Kirk Bushell
 http://www.kirkbushell.com
 Follow me: http://twitter.com/kirkbushell



 On Sun, Jul 12, 2009 at 2:56 PM, Mike Baileym...@bailey.net.au  
 wrote:

 Thanks Lachlan, that looks great. Do you have any spare invites?

 - Mike

 On Sun, Jul 12, 2009 at 12:03 PM, Lachlan Hardylach...@lachstock.com.au 
  wrote:
 I use http://reinvigorate.net/

 Real time reporting to such an extreme they have a client you can  
 install
 that will notify you whenever somebody is on the site (I don't  
 advise using
 that tool - it'll lower the quality of your life immensely).

 I'm not sure where it is going at the moment. The development is  
 quite
 opaque. But I've been using it for two years and if you want to  
 know what's
 happening on your site *right now* it's pretty good for that.

 GA is for long term planning of campaigns and the like. Not really  
 my bag.

 On Sun, Jul 12, 2009 at 11:54 AM, Mike Bailey m...@bailey.net.au  
 wrote:

 If one of your apps was slashdotted, how long before you would know
 about the spike in traffic? It seems Google Analytics won't tell  
 you
 till the next day.

 What tools are people using for up to the minute traffic stats?

 Has anyone got SMS alerts setup for extreme traffic spikes?

 - Mike










 

--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Sydney Meetup, July 14

2009-07-01 Thread Adam Salter

Awesome segue for my just released Sitemaps plugin:
http://github.com/adamsalter/sitemap_generator-plugin/tree/master

Pings all major search engines!!

-Adam

On 02/07/2009, at 12:26 PM, Jonathan Clarke wrote:


 Though you should be doing some nice meta SEO stuff to get it listed
 by the engines...

 2009/7/2 Jonathan Clarke jonat...@beilabs.com:
 Brilliant.

 2009/7/2 Keith Pitty ke...@keithpitty.com:

 http://isitroroyet.bivou.ac/

 On 02/07/2009, at 7:51 AM, Jason Crane wrote:


 Hi,

 Anyone interested in talking at the next rorosyd meet up, July 14?

 Head on over to the wiki and put your name down :) (I think Myles  
 and
 Gareth have volunteered)

 There are two types we usually do:

 Lightning talks, around 5 minutes long (great for showcasing  
 something
 you've worked on, a cool plugin, gem, anything!)
 Longer talks, around 15 minutes (good for an in-depth look at
 something)

 http://wiki.rubyonrails.com.au/index.php/roro:Sydney_-
 _Topics_Confirmed

 Jason








 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Thoughts on HAML?

2009-06-12 Thread Adam Salter
I would like to chip in and say that (at least in our company) our  
designer (that's you Elton) loves HAML.
Designers don't want to much around with closing tags and html id/ 
class attributes any more than programmers.

The main problem as I see it is that graphical ide's (like  
Dreamweaver) don't support HAML, so noob front end designers can't  
produce HAML. But I personally think no designer worth their salt  
would use a graphical ide since the output is never optimal (and can't  
be). So the (VERY SMALL) learning curve for HAML is welcomed --  
provided the designer trusts your opinion I guess ;).

Honestly, there are also html2haml snippets for Textmate (or insert  
favourite editor here). If your designer needs to work in HTML just  
do it and convert. Do the layout and initial stuff in HTML and later  
convert. It really is quicker and easier for everyone.

I have never had any trouble with the html2haml conversion unless  
there is ruby in it. It doesn't do the indentation for blocks, but  
this is not something that can reasonably be done automatically. Once  
you know this you just look for blocks after conversion and fix the  
blocks that need fixing.

-Adam

On 12/06/2009, at 8:53 AM, Bodaniel Jeanes wrote:

 I know about them. They are quite buggy and only help with the  
 initial conversion. It is the successive updates that are hard  
 because the designs don't have all your ruby code in them, so you  
 have to manually copy over what has changed

 CSS - SASS isn't the worst thing to do, other than that most  
 developers modify CSS a bit, either to add semantic classes for JS  
 effects or because re-structuring of some divs is required.

 I just don't like alienating designers, I need them for products I  
 develop to be truly successful, and if I am going to use them at  
 all, I want to focus on my Ruby, not on connecting their HTML to it.  
 Haml, becomes an extra barrier, layer, and learning curve which is  
 ultimately not needed. I speak Ruby, designers speak html, we don't  
 need to mess with that to have a great workflow.

 On Fri, Jun 12, 2009 at 3:47 PM, Chris Lloyd christopher.ll...@gmail.com 
  wrote:
 Perhaps checkout the html2haml and css2sass programs which are  
 packaged with HAML.

 2009/6/12 Bodaniel Jeanes m...@bjeanes.com

 Advantages:

 * easy to change and manage templates
 * no ugly erb snippets everywhere with conditional statements
 * much better in diffs

 Disadvantages

 IMO, one reaaly big one. HAML (and SASS for that matter) is  
 code, so it's great for developers. However, developers generally  
 can't and shouldn't be doing design. That's what designers are for.  
 Designers shouldn't have to learn a new language to do what they do  
 best - html, css, and pretty colours. Suddenly they can't use the  
 tools that make THEM efficient and effective.

 I think using HAML is a bit of an anti-pattern (not the right word,  
 but hopefully you get my gist), it encourages the coders to do the  
 front-ends and that usually results in atrocious user experiences or  
 extremely data-driven designs.

 The whole idea behind HAML was to make HTML more manageable so you  
 spend less time on it. Ultimately in my experience on real projects,  
 it can have the opposite effect, especially in the early stages of  
 development. Either the designer is slowed down if you force them to  
 learn it, or they do all the css and styleguides in separate  
 documents, and the developer(s) have to spend time converting them  
 to HAML/Sass and repeating this conversion for each correction,  
 revision, or re-design. This takes a LOT of time and can be a lot of  
 manual labour.

 So, in summary: i use haml on small projects where design isn't  
 important or I am doing it (always ugly, of course), but for client  
 projects or bigger projects where design is someone else's  
 responsibility and talent, I actively prevent the use of haml.

 Bo


 On Fri, Jun 12, 2009 at 3:25 PM, Michael A. michael@gmail.com  
 wrote:

 Hi Guys,

 I'm new around here though I've been using rails on and off since
 around 0.13.

 Something that's been on my todo for a long time is to check out HAML.
 I've started converting a few templates, at first I thought it was
 great. So much clutter removed. But as I started doing more templates,
 I found I didn't really find HAML templates any easier to read (maybe
 the brain just gets used to cancelling out the noise in HTML?). I did
 like not having to type close tags all the time and the consistency it
 brings to your markup.

 So... what are your thoughts on HAML? Are there other major advantages
 I should know?

 Cheers,
 Michael







 -- 
 chrislloyd.com.au





 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails

[rails-oceania] Re: Introducing Bananajour (plus slides from last night)

2009-06-11 Thread Adam Salter

I was trying to think of a better name for this particular package and  
all I came up with was gitjourgasm
I think I like bananajour better

-Adam

On 11/06/2009, at 2:58 AM, Glen Maddern wrote:


 Awesome. I just ate a banana in celebration. :)

 On Thu, Jun 11, 2009 at 4:10 AM, Dr Nic Williamsdr...@mocra.com  
 wrote:
 Woohoo!

 On Wed, Jun 10, 2009 at 11:32 PM, Lachlan Hardy lach...@lachstock.com.au 
 
 wrote:

 Huzzah!





 --
 Dr Nic Williams
 Mocra - Premier iPhone and Ruby on Rails Consultants
 w - http://mocra.com
 twitter - @drnic
 skype - nicwilliams
 e - dr...@mocra.com
 p - +61 412 002 126 or +61 7 3102 3237







 -- 
 Glen Maddern
 0423 118 405

 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Installing Webrat on Mac OS X - possible?

2009-06-07 Thread Adam Salter
I'm pretty sure my passenger runs the app as the owner of the directory not
the apache user.
This means all my local gems work and no problems with permissions.
I think it's a setting in Passenger, but on by default... You might have a
rogue setting in your apache conf...

On Sun, Jun 7, 2009 at 3:10 AM, Bodaniel Jeanes m...@bjeanes.com wrote:

 I haven't tried, but I wouldn't be surprised if there were permission
 errors. I am sure with some chmod action you could get around them, but it'd
 be awful if it had to be done after every gem install.
 How would you change apaches path anyway? SetEnv in httpd.conf? The apache
 user doesn't have a home directory

 Bo


 On Sun, Jun 7, 2009 at 8:07 PM, Torm3nt torm...@gmail.com wrote:


 Bodaniel - couldn't yo add the gem path to the apache user's path, or
 do you then get permission errors?


 --
 Kirk Bushell
 http://www.kirkbushell.com
 Follow me: http://twitter.com/kirkbushell



  On Sun, Jun 7, 2009 at 8:05 PM, Bodaniel Jeanesm...@bjeanes.com wrote:
  Lachie, only problem with local gems is if you use passenger for
 development
  (like I do), apache won't pick up your gems
 
  On Sun, Jun 7, 2009 at 11:28 AM, Pat Allan p...@freelancing-gods.com
 wrote:
 
  For what it's worth, I've always used OS X ruby, and never had issues,
  and I'm fine with compiling other libraries I need instead of using
  ports. Each to their own, though.
 
  Lachie: I didn't know about 'gem pristine' - that's a super-useful
  tip, I'm often throwing debug puts into gems. Thanks! :)
 
  --
  Pat
 
  On 06/06/2009, at 8:55 PM, Lachie wrote:
 
  
   my two cents are as follows:
  
   I was on ports and moved back to OS X ruby, so that I could write
   rubycocoa apps targeting the built-in Leopard ruby (so that anyone
   could have their ruby dependency covered by the OS) With MacRuby its
   not really an issue anymore.
  
   I've never had any problems with either.
  
   One thing I would say (for either version) is that I never install
   system-wide gems anymore. Since around 1.3 rubygems has automatically
   installed gems into ~/.gem if it can't write to the system gem
   location.
  
   Just drop the sudo and add ~/.gem/ruby/1.8/bin to your PATH
  
   This is really handy for a number of reasons.
  
   For debugging it doesn't hurt to be able to drop a puts into a gem's
   code; when they're owned by my user, I don't have to authenticate or
   sudo to do that.
  
   When I'm finished, I just do gem pristine gemname to quash any
   debugging shenanigans.
  
   :lachie
   http://smartbomb.com.au
   http://www.flickr.com/photos/lachie/
  
  
  
   On Sat, Jun 6, 2009 at 12:23 PM, Pete Yandellp...@notahat.com
 wrote:
  
   I'm also with Nathan.
  
   Don't touch the built-in Ruby on OS X. Installing gems touches
   directories that nothing but OS updates should touch. OS updates can
   blow them away, and change your Ruby version. You can break
 RubyCocoa
   apps that depend on the default Ruby setup.
  
   Install either by hand or MacPorts, put your Ruby earlier in your
   PATH
   than /usr/bin, and use #!/usr/bin/env ruby in your scripts. You can
   monkey around with Ruby versions and gems as much as you like. You
   can
   run identical Ruby versions in development and production. You can
   blow it away and start again if you completely screw things up. You
   can easily install libraries that gems depend upon.
  
   I've never had any performance issues with the MacPorts Ruby.
  
   I wrote up how I install everything here:
 http://notahat.com/posts/15
  
   You can use the ruby186 port if you'd rather have 1.8.6 than 1.8.7.
  
   - Pete
  
  
  
  
   
 
 
 
 
 
  
 




 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Thursday the 28th of May

2009-06-02 Thread Adam Salter

Small note:
autotest-mac is no longer supported

It is now 2 packages:
http://github.com/svoop/autotest-fsevent/tree/master
http://github.com/svoop/autotest-growl/tree/master

autotest-fsevent cleans up the most annoying/problematic autotest  
issue of recent times. Essential, essentially.

-Adam

On 02/06/2009, at 5:46 PM, Gareth Townsend wrote:


 Results of the Analog Blog:

 Analog Blog!

 RailsCamp - Awesome! Drunkening.
  Bananjour - Gitjour replacement. Check it out. Soon to maybe be up
 on github?

 Railsconf - Also awesome and drunkening. Las Vegas is awesome.
 INteresting keynotes. Check out the Uncle Bob Marten keynote. Lots o
 talks were recorded.

 gem install autotest-mac - Mac specific performance enhancements.

 mod_porter - Apache module for passenger for large file uploads. See
 Rails Way blog.

 citcon - Continuous Integration and testing conference. citonf.com (go
 register, near Brisvegas, June 27th)

 Perryn's cucumber fork merged into master.


 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Tomorrow's lightning talk bonanza in Sydney

2009-05-07 Thread Adam Salter
Nice.
I wasn't chuffed about the :message option. Took me a while to work  
out what it was doing, but this is basically a candidate for the  
'awesome' stamp! ;)

-Adam

On 08/05/2009, at 10:45 AM, Lawrence Pit wrote:

 May not be what you want, but it's perfect for my purposes, just  
 stick in an extra 5 lines of code in the config/initializers part:

 http://gist.github.com/108497

 no need to explicitly specify the :message option to validates_*  
 methods.



 Cheers,
 Lawrence

 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Sydney May 2009 Meetup

2009-04-25 Thread Adam Salter

Just don't do it again.
That thing that you do, that you do so well...

(oops that's a bit risque!)

-Adam

On 20/04/2009, at 6:49 PM, Ben Schwarz wrote:


 It might have been my presence. For that I am sorry.

 On Apr 20, 6:02 pm, Lachie lach...@gmail.com wrote:
 Was it something we said?

 :lachiehttp://smartbomb.com.auhttp://www.flickr.com/photos/lachie/



 On Mon, Apr 20, 2009 at 5:57 PM, Dylan Egan dylane...@gmail.com  
 wrote:

 Hi,

 When:
 We are unable to hold the meetup at Trinity on Wednesdays anymore.  
 The
 next RoRO Sydney meeting will be on Tuesday, May 5, 2009.

 Who:
 If anyone is wanting to deliver a lightning talk, or a presentation
 then add yourself to
 http://wiki.rubyonrails.com.au/index.php/roro:Sydney_-_Topics_Confirmed

 Location:
 Trinity Bar - 505 Crown St, Surry Hills, NSW 2010 -
 http://tinyurl.com/6emfna(upstairs)

 Extras:
 We are also looking for anyone wanting to sponsor the event (bar  
 tab).
 If you are interested please contact me off the list.

 Cheers,

 Keith  Dylan (filling in for Jason)
 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Right tool for the job

2009-04-08 Thread Adam Salter
Without being trite, I'd like to say that I can't now see any reason  
to use another framework.
Best tool for the job is a exactly the reason why. (As long as the  
job is web application development, I guess.) Compare Rails feature  
for feature with any other framework.
Rails 2.3 now provides all the mechanisms (and did with a bit of  
hacking previously) that you could ever need for web development.
And it's in Ruby a great language by itself.
Let's just go over the new and old greatness
Ruby 1.9 (Low, low, low memory usage and very fast)
Metal (Low, low, low latency)
Active etc (Support and Record... too many to list)
Passenger/Apache deploy
Capistrano
Git integration/support
Plugins/Gems

...

IMHO Scaling is s stupid a consideration anyway... I think for any  
good coder it is really is a joke. Any web app can handle several  
million hits per day on the right hardware - php, java, coldfusion,  
anything. Who cares? Processor time is cheap.
Would you run a million(s) of hits a day app on a el-cheapo 256Mb  
linux VPS? No, you would start out small and build as needed.
Although you almost can now with Rails.
I benchmarked a non-trivial Rails shopping cart application on 1Gb  
Linux VPS at able to handle without serious slowdown approx 5-6  
million requests per day. (~60 requests per second)
If your app is getting anywhere close to those numbers you would have  
time to make some architecture changes to increase support (and  
perhaps pay for a real server or two).
And I hadn't even done any caching. Every request was handled  
dynamically.
Most apps I know of don't get more than 1-2 requests a minute (2-4000  
requests per day).

And as for twitter I never understood what exactly was running on  
Rails...
The front-end? Should be a pretty easy Rails app and might need some  
architecture fixes but not huge.
The back-end message passing/handling system? Running on Rails? You've  
got to be kidding me. Why? Write it in C, or even Ruby, (or Scala -  
boo!) but it doesn't involve Rails as far as I can see.

-Adam

On 08/04/2009, at 5:49 PM, David Lee wrote:

 I recently began a reasonably small project where I expected  
 performance to be fairly important, and wanted a very small, simple  
 codebase.

 I started by setting up a sinatra app. Then i began including only  
 the parts of activesupport I felt i couldn't do without - a few  
 things from core_ext.

 Fast forward a few days, and I'd learnt a great deal about the  
 internals of activesupport by trying to include only the parts I  
 missed without loading the whole library - the dependencies don't  
 really like being . Ditto, a lot of stuff about rake and Rails' rake  
 tasks. I'd gotten a bastardised form of migrations going. The list  
 goes on ...

 I realized I was up against a variation of Greenspun's 10th rule 
 (http://en.wikipedia.org/wiki/Greenspun%27s_Tenth_Rule 
 ) - I was spending more time on the stuff I normally take for  
 granted when writing Rails apps than I was on my problem domain.

 About that time rails 2.3 came out, and i thought to myself, if i  
 really need to worry about performance there's now Metal and various  
 freedoms afforded by Rack. I turned it into a Rails app and didn't  
 look back.

  In one instance I witnessed a Rails application for getting  
 reports on a database.

 If I had to write a simple application to get reports out of a  
 database, and it was going to take more than a paragraph or two of  
 code, I'd use Rails without even mild hesitation.


 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Announcing next roro sydney meetup (Wednesday, April 8, 2009)

2009-04-04 Thread Adam Salter
7pm right?

(Wasn't there a RORO calendar for subscriptions??)

-Adam

On 27/03/2009, at 12:32 PM, Keith Pitty wrote:

 Hi,

 The next roro sydney meeting is on Wednesday April 8, 2009.

 If anyone is wanting to deliver a lightning talk, or a presentation -
 then add yourself down over...

 http://wiki.rubyonrails.com.au/index.php/roro:Sydney_- 
 _Topics_Confirmed

 This month we're at:
 Trinity Bar - 505 Crown St, Surry Hills, NSW 2010
 http://tinyurl.com/6emfna (upstairs)

 Keith  Dylan (filling in for Jason)

 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: tightening the belt

2009-03-17 Thread Adam Meehan

Rails Kibbutz - Code for food

Matt Allen wrote:
 Without getting too far from the message ...

 Maybe it's now the time to put my 75 acres to use ... can grow a lot 
 of relatively inexpensive food on 75 acres. Now, if someone could make 
 it rain, we might all have a fighting chance.

 :)

 Matta

 On Wed, Mar 18, 2009 at 11:36 AM, Torm3nt torm...@gmail.com 
 mailto:torm...@gmail.com wrote:


 Vegie garden is a good option anyways - nothing better than fresh
 fruit and veg, straight from the garden =)


 

--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] [JOB] Medium-grade Rails developer

2009-03-03 Thread Adam Salter

Opportunity available for a medium to high grade Rails developer with  
funky, creative Internet Marketing company.

About us
We are a Sydney based company with global aspirations. Work with us to  
create memorable and engaging web products.

Based in Rosebay, Creagency is working on many projects that include  
brands like Kazaa and new entrepreneurial projects.

The Role
As a Software Engineer you will be responsible for: web design and  
development in Rails for several of our many projects.

Essential
* Ability to work on and manage your own projects.
* At least 6 months dedicated Rails experience, other languages  
certainly a bonus.
* Some eye for design, you must understand and like clean XHTML/CSS

Desirable Skills
* Prototype/Javascript UI development.

We will
* Support your creative endeavors and ideas
* Provide a positive work environment
* Provide positive challenges

-Adam



--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Next Sydney roro Meetup - Wednesday December 10

2008-12-03 Thread Adam Salter

hahaha yield...

... sorry. Ruby joke...

On 02/12/2008, at 8:00 AM, Ian White wrote:


 How many talks are required?  I've got one on offer, but talked last
 time, so will happily yield

 Cheers,
 Ian
 On 2 Dec 2008, at 07:57, Myles Byrne wrote:


 It's been a while. I'm up for Javascript Animation via Custom Events
 and OO Design. I'll use prototype but the talk is not framework
 specific.

 On Mon, Dec 1, 2008 at 5:43 PM, Tim Lucas [EMAIL PROTECTED]
 wrote:

 On 29/11/2008, at 5:44 PM, Jason Crane wrote:

 There's two and a half weeks! until the next Sydney roro meetup
 (cheers Dylan E) - so let's get rocking!

 If you want to do a talk, head on over to the wiki and put your  
 name
 down and what you want to talk about:

 http://wiki.rubyonrails.com.au/index.php/roro:Sydney_-_Topic_Offers

 It looks like we have three people happy to talk at December?
 (Charles, Lindsay, Ian) - are you people still keen and available?

 Charles Dale on Flex and Rails
 Lindsay Holmwood on Deploying Merb
 Ian White on resources_controller

 I'm up for giving Staticish sites with Nanoc and/or Sinatra

 How did everyone like the 5min lightning talk vs. presentations
 line-
 up?  Is there a better medium between full length pressos and
 lightning demos we could try either in December, or in the New  
 Year?
 (If people are willing to put their hand up and talk) (We've always
 opted for a mix of lightning demos and pressos, but the balance is
 never quite right)

 Maybe alternate the months?

 -- tim








 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Ruby on Rails job in Sydney

2008-12-03 Thread Adam Salter
Apologies.
Unfortunately, easy mistake to make. ;)

On 03/12/2008, at 11:55 PM, Arlen Cuss wrote:

 I suggest you email him at that address and not on-list, perhaps!

 2008/12/3 Adam Salter [EMAIL PROTECTED]
 Andrew,
 I'm a Rails developer. Interested in doing contract work.

 I've included my resume and basic cover letter.

 Let me know if you would like to meet up. (I also have a quote for a
 job to present on Monday which could potentially tie me up for at
 least a month to a month and a half, but it would still be good to
 meet up).

 Best,
 -Adam





 On 03/12/2008, at 10:43 AM, Anthony W wrote:

 
 
  We are currently looking for a developer to join our friendly,  
 relaxed
  Sydney office. We're really looking for the right person rather than
  an exact skill set - so even if you don't know Ruby on Rails and  
 want
  to learn, or are a senior Rails developer, we're interested in  
 talking
  to you. Remuneration will be based on experience. We're preferably
  looking for a full time person but the possibility exists for  
 contract
  work too.
 
  If you're interested please email [EMAIL PROTECTED] - no
  recruitment agencies we promise. Your email will go straight through
  to the Rails development team where you can ask any question you  
 like.
 
  Thanks!
 
 
   




 --~--~-~--~~~---~--~~
 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-oceania@googlegroups.com
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en
 -~--~~~~--~~--~--~---



--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Heading to a Conference in 2009?

2008-12-01 Thread Adam Meehan

RailsConf was great this year so its tempting to go again. Plus you
would probably get the 'steak and strippers' thrown in free with ya
conference ticket.

But it might all be too distracting. You could spend a whole day at
the hotel buffet, let alone visit all the freak show themed hotels as
well. Then there's the temptation to pull off some 'Fear and Loathing'
style shenanigans. Could be too much for me.

I think I will just go to TED too. Now to start a pledgie ...

On Dec 2, 3:43 pm, Dylan Egan [EMAIL PROTECTED] wrote:
 I say you all give me the money to go to TED (and not the televised one 
 either!)

 KTHXBI!

 2008/12/2 Nick Partridge [EMAIL PROTECTED]:



  I'll be considering events like Oscon[1] , etech[2], but am more interested
  in a Cloud event as that area is still being defined.

  Cloud == Internet

  I just saved you thousands of dollars in travel and conference registration!

  -Nick


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: Is there a rails calendar plugin ?

2008-11-27 Thread Adam Meehan

Hi Kirill,

There is Geoffrey Grosenbachs calendar plugin which I have up on
github http://github.com/adzap/calendar_helper

Its simple but flexible enough for what I have used it for. See what
you think.

Adam



On Nov 28, 4:28 pm, kirillrdy [EMAIL PROTECTED] wrote:
 Hi guys,

 I was wondering if anyone could suggest me a plugin to display
 calendar events.
 I tried to google for rails plugins for calendars, but all i could
 find were date selects.

 Is there a rails calendar plugin, and I dont mean date select.
 Something to display events in a monthly or weekly view ?
 Or do I have to try to invent something like basecamp does ( their
 milestones )

 Cheers,
 Kirill R
--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: [rorosyd] Slides from my *cough* open-uri and hpricot talk

2008-11-19 Thread Adam Salter

Works for me. Maybe less talks (5-8) and 20 mins for questions...

On 20/11/2008, at 3:40 PM, Tim Lucas wrote:


 On 20/11/2008, at 3:08 PM, Adam Salter wrote:

 Yeah,
 I definitely got the most out of the short talks this time around.  
 But
 I agree that dedicated question time is good. I can't think of one
 talk last night where questions wouldn't have been necessary. (in  
 fact
 for the comet demo in particular I was a bit miffed that there wasn't
 time for questions).

 Maybe at the end you could get everyone up the front and have an open-
 ended 30 minutes for questions... that way you keep the momentum up
 with the presos.

 -- timbo


 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: [railscamp] Railscamp 4: What worked well; how can we improve?

2008-11-19 Thread Adam Salter

Ummm.
Can we leave the PHP out?

... and I would love to hear more about Flex/actionscript on the  
frontend.

On 20/11/2008, at 3:56 PM, Ryan Bigg wrote:



 Let's throw in some .NET and PHP too.

 


--~--~-~--~~~---~--~~
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-oceania@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---