Re: [rails-oceania] Skinny Controller, Fat Model ...

2011-02-23 Thread Bodaniel Jeanes
In the same sort of vein as MVC and keeping controllers skinny, have you 
guys read this blog post about applying DCI (data context interaction) 
to Rails MVC: 
http://andrzejonsoftware.blogspot.com/2011/02/dci-and-rails.html?


I found it very interesting approach (especially for larger scale 
projects) but haven't seen much chatter about it so I thought I'd throw 
it out here to see what other people think.





Warren Seen 
24 February 2011 9:36 AM


It's also worth remembering that, while it's common in Rails apps, 1:1 
model/controller correspondence is not part of the MVC pattern, so 
moving all complex logic into the model helps to keep your controllers 
DRY too.


At a more fundamental level, FM/SC promotes good OO practice by 
loosely coupling the controllers to the models - the less your 
controller knows about your models, the better.




--
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.



David Goodlad 
24 February 2011 9:12 AM


On Wed, Feb 23, 2011 at 7:26 PM, jamesl > wrote:


But why is the practice of a Fat Model more acceptable than a Fat
Controller?


I agree with most of the arguments for a skinny controller, and 
generally adhere to this principle. The argument that resonates best 
with me, though, is ease of testing. Testing complex logic in 
controllers well is not an easy task, and that usually indicates that 
you're Doing It Wrong.


Cheers
Dave
--
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.



jamesl 
23 February 2011 6:26 PM


We all know Rails is great and the community is very supportive.
However, there are some practices that leave me a little puzzled/
bamboozled.

The Skinny Controller, Fat Model post by Jamis Buck (http://
weblog.jamisbuck.org/2006/10/18/skinny-controller-fat-model) appears
quite popular. It was referenced in several conversations I have had
and in the PragPub RSpec book.

But why is the practice of a Fat Model more acceptable than a Fat
Controller?

I think a Skinny Controller is great but I also think a Skinny Model
is great too .
I want to know if others keep their Models Skinny and if so how?

BTW - to keep the model skinny I don't mix the concerns of Business
with that of an Entity (See Domain Driven Design - Eric Evans)

Rgs, James.



--
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: Rails Contracting in London

2011-02-15 Thread Bodaniel Jeanes
The company that hired me has advertised on GitHub jobs (I think) and 
definitely TopRubyJobs, saying that they'd hire remotely and pay 
relocation costs. It wasn't targeted at foreigners, but definitely 
inclusive of them. I'm not sure about others, though...





Warren Seen <mailto:warren.s...@gmail.com>
16 February 2011 10:01 AM





Yeah, I'm not 100% sure if they are advertising in other markets, but 
I did get contacted through LinkedIn by a guy from NSW (some mob 
called 'Yelhsa Consulting') about these jobs before I saw them 
advertised on Seek, etc. Also, I haven't seen them come up in the 
usual Rails job boards, has anyone else?

--
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.

--------

Bodaniel Jeanes <mailto:m...@bjeanes.com>
16 February 2011 9:47 AM


It's worth keeping in mind that they aren't "targeting aussies". It 
just happens that they are advertising positions for Australians 
because it's on an Australian site. My money says that if you check on 
a british or canadian equivalent of seek.com.au there would be ads 
encouraging them to apply too.


I've recently been hired by a US company (by the guy who wrote that 
blog post warren linked to actually) and that company has been 
desperately been trying to hire from a number of places. Australia is 
not their first choice. E-3 might make it easier, but most of the 
people who do the reaching out to Australia haven't learned what an 
E-3 is yet and Australia is a pretty damn long way away. That being 
said, we are being considered because our Rails devs are not as 
in-demand locally as theirs are there. There is too much work and not 
enough workers, and I for one are going to take advantage of that.


Warren is correct in his assumption that cheaper doesn't factor into 
their decisions. The visa costs and the risks associated with that 
investment are too high, even if the employee was to be paid lower 
than a US equivalent. Furthermore, my salary there is certainly not 
lower than the average rates there. In fact, from what I can see, it's 
actually higher. Perhaps as extra security for the risk that foreign 
employees might get over it and come home.


Cheers,
Bo



Warren Seen <mailto:warren.s...@gmail.com>
16 February 2011 9:31 AM


This is most likely a clear sign that there's a shortage of competent 
Ruby devs in NY as well as Chicago (see: 
http://nuts.redsquirrel.com/post/2680658687/chicagos-ruby-developer-crisis) 
- time to raise my hourly rate again!


All jokes aside, maybe it's because E3 visas are easier to deal with 
than H1-B visas from an employer's perspective? The E3 is exclusive to 
Australians, and from what I've read, only a fraction of them are 
taken up each year, compared to H1-B's which are oversubscribed.


Cheaper doesn't factor into it, as my understanding is that an 
employer will need to offer the equivalent of what a US worker would 
make anyway, i.e. you can't import labour at below market rate. Factor 
in relo costs, etc, plus the real risk that some people may pack it in 
and come back home, it's probably significantly more expensive than 
hiring locally.


(Also, as far as I'm aware, Pivotal pair ATFT or close to it, so if 
they hired you, they'd want to pair with you regardless of where 
you're from. :P)





--
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.



Matthieu Stone <mailto:matthieu.st...@gmail.com>
12 February 2011 10:22 AM


I lived there for 7 years - great times.

Have you got your visa status sorted out (if you need one)? The 
conditions change a bit, just contact the UK consul & make sure you 
can actually work legally.


I'm still on the LRUG list & there seems to be fairly regular job 
postings - so send them a note, setting out a bit about you, what 
you've done, & what you want to do.


www.jobserve.co.uk <http://www.jobserve.co.uk> - aggregates most of 
t

Re: [rails-oceania] Re: Rails Contracting in London

2011-02-15 Thread Bodaniel Jeanes
IMO it's worth considering how we can bring in more talent into our 
industry though. Not enough that we put ourselves out of the fortunate 
situation of being in-demand, but enough that the lag doesn't cause a 
major crash if/when companies have to abandon Rails because they can't 
find anyone to maintain or upgrade the systems that rely on the 
technology. It's one of the reasons I'm so happy that the Rails 
community as a whole embraces some alternative and newbie-friendly 
approaches to community building and training. But I think we still need 
more...





Matt Allen 
16 February 2011 9:50 AM



I'd say that we're slap bang in the middle of lag that happens when
any new tech gets serious traction. I remember when there was a PHP
programmer lag as the big players started to embrace the language and
it became more popular.

It'll take time, but for now, embrace it :)

Matta



Pat Allan 
16 February 2011 9:46 AM


It seems there's generally a Ruby developer shortage - NYC, Chicago, 
London, Melbourne, Sydney... at what point does such an unbalanced 
employment market become a liability?




Warren Seen 
16 February 2011 9:31 AM


This is most likely a clear sign that there's a shortage of competent 
Ruby devs in NY as well as Chicago (see: 
http://nuts.redsquirrel.com/post/2680658687/chicagos-ruby-developer-crisis) 
- time to raise my hourly rate again!


All jokes aside, maybe it's because E3 visas are easier to deal with 
than H1-B visas from an employer's perspective? The E3 is exclusive to 
Australians, and from what I've read, only a fraction of them are 
taken up each year, compared to H1-B's which are oversubscribed.


Cheaper doesn't factor into it, as my understanding is that an 
employer will need to offer the equivalent of what a US worker would 
make anyway, i.e. you can't import labour at below market rate. Factor 
in relo costs, etc, plus the real risk that some people may pack it in 
and come back home, it's probably significantly more expensive than 
hiring locally.


(Also, as far as I'm aware, Pivotal pair ATFT or close to it, so if 
they hired you, they'd want to pair with you regardless of where 
you're from. :P)





--
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.



Matthieu Stone 
12 February 2011 10:22 AM


I lived there for 7 years - great times.

Have you got your visa status sorted out (if you need one)? The 
conditions change a bit, just contact the UK consul & make sure you 
can actually work legally.


I'm still on the LRUG list & there seems to be fairly regular job 
postings - so send them a note, setting out a bit about you, what 
you've done, & what you want to do.


www.jobserve.co.uk  - aggregates most of 
the recruitment agency roles.


www.gumtree.co.uk  is also worth a look - 
you can usually pick up a html - php - destktop support contract for a 
few weeks to tide things over.


40 pound weekends in Spain & France - good times indeed!

rgds,
- matt.


--
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.



Jason Langenauer 
10 February 2011 9:04 PM


Hi all,

I'm currently toying with the idea of moving to London for a year or 
two. Does anyone here have any insight into how good, bad or otherwise 
the Ruby/Rails contracting market there is, in the wake of the GFC?


Regards

Jason Langenauer
jason.langena...@constrex.com
+61 418 240 380



--
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: Rails Contracting in London

2011-02-15 Thread Bodaniel Jeanes
It's worth keeping in mind that they aren't "targeting aussies". It just 
happens that they are advertising positions for Australians because it's 
on an Australian site. My money says that if you check on a british or 
canadian equivalent of seek.com.au there would be ads encouraging them 
to apply too.


I've recently been hired by a US company (by the guy who wrote that blog 
post warren linked to actually) and that company has been desperately 
been trying to hire from a number of places. Australia is not their 
first choice. E-3 might make it easier, but most of the people who do 
the reaching out to Australia haven't learned what an E-3 is yet and 
Australia is a pretty damn long way away. That being said, we are being 
considered because our Rails devs are not as in-demand locally as theirs 
are there. There is too much work and not enough workers, and I for one 
are going to take advantage of that.


Warren is correct in his assumption that cheaper doesn't factor into 
their decisions. The visa costs and the risks associated with that 
investment are too high, even if the employee was to be paid lower than 
a US equivalent. Furthermore, my salary there is certainly not lower 
than the average rates there. In fact, from what I can see, it's 
actually higher. Perhaps as extra security for the risk that foreign 
employees might get over it and come home.


Cheers,
Bo




Warren Seen 
16 February 2011 9:31 AM


This is most likely a clear sign that there's a shortage of competent 
Ruby devs in NY as well as Chicago (see: 
http://nuts.redsquirrel.com/post/2680658687/chicagos-ruby-developer-crisis) 
- time to raise my hourly rate again!


All jokes aside, maybe it's because E3 visas are easier to deal with 
than H1-B visas from an employer's perspective? The E3 is exclusive to 
Australians, and from what I've read, only a fraction of them are 
taken up each year, compared to H1-B's which are oversubscribed.


Cheaper doesn't factor into it, as my understanding is that an 
employer will need to offer the equivalent of what a US worker would 
make anyway, i.e. you can't import labour at below market rate. Factor 
in relo costs, etc, plus the real risk that some people may pack it in 
and come back home, it's probably significantly more expensive than 
hiring locally.


(Also, as far as I'm aware, Pivotal pair ATFT or close to it, so if 
they hired you, they'd want to pair with you regardless of where 
you're from. :P)





--
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.



Matthieu Stone 
12 February 2011 10:22 AM


I lived there for 7 years - great times.

Have you got your visa status sorted out (if you need one)? The 
conditions change a bit, just contact the UK consul & make sure you 
can actually work legally.


I'm still on the LRUG list & there seems to be fairly regular job 
postings - so send them a note, setting out a bit about you, what 
you've done, & what you want to do.


www.jobserve.co.uk  - aggregates most of 
the recruitment agency roles.


www.gumtree.co.uk  is also worth a look - 
you can usually pick up a html - php - destktop support contract for a 
few weeks to tide things over.


40 pound weekends in Spain & France - good times indeed!

rgds,
- matt.


--
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.



Jason Langenauer 
10 February 2011 9:04 PM


Hi all,

I'm currently toying with the idea of moving to London for a year or 
two. Does anyone here have any insight into how good, bad or otherwise 
the Ruby/Rails contracting market there is, in the wake of the GFC?


Regards

Jason Langenauer
jason.langena...@constrex.com
+61 418 240 380



--
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: Pruning attributes hash?

2011-02-08 Thread Bodaniel Jeanes

This is what I was going to say with the following addition:

params.slice(MyModel.column_names)




Ben Schwarz 
8 February 2011 8:53 PM


Hey Mike,

You want the slice method:

{:a => "aye", :b => "bee"}.slice(:a)
=> {:a => "aye"}


On Tuesday, 8 February 2011 at 9:50 PM, Mike Bailey wrote:


--
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.



Mike Bailey 
8 February 2011 8:50 PM


I'd like Rails's update_attributes to ignore any attributes in the 
hash I pass is that are not present in the model.


I've been unsuccessful at googling an answer. Any suggestions 
appreciated. :-)


- 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.


--
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] Mail Merge with word templates

2011-02-01 Thread Bodaniel Jeanes
It depends on the file template but at minimum you can use openoffice 
CLI to connect to a running headless OO.org instance (or a cluster of 
them in the cloud) to perform a conversion to a more maleable format and 
then back again. I'd have to dig up the code for specifics, but it was a 
pretty fun piece of tech to experiment with (and test!)


Josh Price wrote:

On 02/02/2011, at 1:03 PM, Bodaniel Jeanes wrote:


you might try using headless openoffice.org to make the changes.


That sounds like an interesting approach. How does this work exactly?

Josh



--
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] Mail Merge with word templates

2011-02-01 Thread Bodaniel Jeanes

Michael,

Depending on how complicated the documents are (visually), you might try 
using headless openoffice.org to make the changes. At Mocra, we actually 
built an entire app (with the idea to SaaSify it eventually) that took 
most common file formats and did mailmerge (using native mechanisms if 
they existed, else liquid) and even generated them into PDFs if need be. 
Depending on the requirements, this might be a route you could also take?


Cheers,
Bo

Josh Price wrote:

On 02/02/2011, at 11:35 AM, Michael Cindric wrote:


Have a requirement where we need to design a doc using word templates
dot files or even word docs docx files and then mail merge the data in
using place holders e.g {{first_name}},

Now word templates are now just really zip files but having no end of
issues when l try to unzip merge in data and then re-zip so it can be
opened again in word.

Think it has to do with the type of compression


Having done this before with Excel reports a while back, it's less likely to be 
the compression (as long as it's a zip) than issues with the XML itself.

It's hard to debug since Word won't give you any decent error messages. Here's 
a couple of things to try:

1) Before zipping it up check the post-merge XML and make sure you're not 
breaking anything.

2) Test your process with one record before throwing all your data at it. It 
might be odd characters in your data.

3) Make the change manually in Word and see what changes and make sure you're 
doing the same change when merging

In summary, any invalid XML will break the document, so make sure that isn't 
the issue.

Cheers,
Josh



--
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] Is save/save! synchronous?

2011-01-31 Thread Bodaniel Jeanes
Clarification from my last post: the reason that you might not see the 
new row even from WITHIN the same transaction is because the result of a 
query is essentially cached. I.e. if you took out the first Task.all 
count from my example, the second one WOULD include the new row.


Daniel N wrote:



On 1 February 2011 16:36, Chris Mayan > wrote:


Hi all,

Just quick query that's been bugging me this afternoon:

Is .save / .save! synchronous?
i.e. After I call that line - should the database row be created in
the DB before executing the next line?

I'm just puzzled as to why step by step debugging, I don't see the DB
row created at all even several lines afterwards.

Is this because the .save! is inside a transaction block, so Rails on
purpose does not actually do any DB actions until the very end of the
transaction block?
(I always though it committed, and then does a rollback if the
transaction fails... meaning I should still see that DB entry in there
after the .save line is executed irrespective of the transaction
block)



Hi Chris,

The transactions kinda work that way. Your database server will write 
to the db in a non-commited way while you're inside a transaction 
block. This means that if you're trying to read the database from 
another connection, like the cli or navicat, the data won't be there 
until the transcaction block is all done. It's done this way to 
prevent reads happening, and then the transaction fails. The 
transaction is only 'pre' written inside the transaction block (i.e. 
it's written as far as that connection is concerned) and then when 
it's done it's finally committed...


hth
Daniel


Thanks,
Chris

--
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] Is save/save! synchronous?

2011-01-31 Thread Bodaniel Jeanes
Are you using MySQL? If so, the default setup will give you some woes if 
you try to do something like:


transaction do
  task = Task.new(...)
  tasks = Task.all
  task.save
  Task.all # This will return the same as `tasks`, and won't include 
your new task

end

There is a way to change that behaviour, I believe...


Ben Hoskings wrote:
On 1 February 2011 16:36, Chris Mayan > wrote:


Hi all,

Just quick query that's been bugging me this afternoon:

Is .save / .save! synchronous?
i.e. After I call that line - should the database row be created in
the DB before executing the next line?

I'm just puzzled as to why step by step debugging, I don't see the DB
row created at all even several lines afterwards.

Is this because the .save! is inside a transaction block, so Rails on
purpose does not actually do any DB actions until the very end of the
transaction block?


It's definitely a synchronous call, in that the database has received 
the INSERT/UPDATE command before #save[!] returns.


But, if you're in a transaction you won't be able to see the data in 
any other context until the database receives COMMIT when the 
transaction block closes.


—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] iPhone browser simulators

2011-01-17 Thread Bodaniel Jeanes
Just use spotlight to open the simulator

Sent from my iPhone

On 18/01/2011, at 8:15 AM, Julio Cesar Ody  wrote:

> The emulator that comes with XCode is good, though it performs a lot
> faster than a real device would, so mind that. Just fire up XCode,
> create a new iPhone OS project, Build -> Build and Run, hit the home
> button, open Safari, and voila. There's gotta be an easier way to just
> open the emulator, but I'll leave that to whoever knows.
>
> Second, Safari latest can emulate the iPhone's user agent. It's handy
> if you need a decent inspector/debugger.
>
>
>
> On Tue, Jan 18, 2011 at 9:04 AM, Adam  wrote:
>> 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.
>>
>>
>
>
>
> --
> http://awesomebydesign.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] iPhone browser simulators

2011-01-17 Thread Bodaniel Jeanes
Yes absolutely. Download the iPhone SDK and install it. It comes with
the iOS Simulator an has a safari on it. You can emulate all the iOS
devices

Sent from my iPhone

On 18/01/2011, at 8:08 AM, Adam  wrote:

> 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.
>

-- 
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] Are rails 3 specs really slow

2010-12-14 Thread Bodaniel Jeanes
I have the same problem. It also applies to Cucumber tests (at least in 
my case) and it's horribly frustrating. I remember trying to show the 
client some cucumber tests and waiting about 35 seconds before they 
started. It was actually pretty embarrassing!





dnagir 
15 December 2010 8:52 AM


Hi Guys,

I am a bit tired of waiting for for the [rails 3] specs to run after I
save a file. After saving, I have to wait 10 secs or so for my specs
only to be executed (by autotest).

It is just a bit annoying, so I did:

time rspec spec/
...
Finished in 9.68 seconds
95 examples, 0 failures

real 0m19.518s
user 0m17.810s
sys 0m0.970s

This sounds like the tests themselves are fast enough, but the startup
time is about 10 secs.

I heard a lot that bundling the dependencies and booting rails takes
the most of time.
Unfortunately I was not able to find an easy solution to speed it up,
except spork.

Can somebody recommend what we can do about it?

Cheers,
Dima.
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-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.

<>

Re: [rails-oceania] Business addresses

2010-12-05 Thread Bodaniel Jeanes
Depends on what you want, but that will return the address the business is
registered at, not necessarily the address that customers might visit or
post to when conducting business. Especially if a business has multiple
locations.

Sent from my iPhone

On 05/12/2010, at 7:55 PM, Dmytrii Nagirniak  wrote:

Hi Gregory,

You can use http://www.abn.business.gov.au/abrxmlsearch/

That's the official government API.

Regards,
Dmytrii Nagirniak
http://ApproachE.com


On 5 December 2010 06:53, Gregory McIntyre  wrote:

> Anyone have any ideas on the best way to take business names and turn
> them into addresses of those businesses, via web API, scraping or any
> other means?
>
> --
> Gregory McIntyre
>
> --
> 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.
>
>
 --
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.

-- 
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.



Re: [rails-oceania] Canonical accepted method for headless cucumber and capybara on Hudson?

2010-11-30 Thread Bodaniel Jeanes
Hey Jason,

I more or less stumbled along and figured it out. Do you remember where his
issues lied? The biggest challenge I encountered was making sure Xvfb kept
running and to make sure that we were explicitly setting the DISPLAY var
everywhere.

E.g. when we started Xvfb we'd use DISPLAY=:99 and inside hudson config we'd
said an env variable that was always available that was the same.

My old colleague wrote up a summary after he set it up here:
http://markgandolfo.com/2010/07/01/hudson-ci-server-running-cucumber-in-headless-mode-xvfb.
I remember that some pieces are missing or out of order from his summary,
but that still might be helpful for you.

Cheers,
Bo

On Tue, Nov 30, 2010 at 11:22 PM, Jason Ong  wrote:

> Hi Bo
>
> My ex colleague was using xvfb + firefox. Remembered him encountering some
> issues. Perhaps you could point us to some resources?
>
> On 30 Nov 2010 14:08, "Bodaniel Jeanes"  wrote:
>
> Yeah, I've used Xvfb + Firefox running headless on an Ubuntu CI server
> quite a few times. It works really well. That article looks fairly thorough
> but feel free to ping me if you have issues. I've done this setup countless
> times.
>
> Cheers,
> Bo
>
>
>
> On Tue, Nov 30, 2010 at 4:05 PM, Daryl Manning 
> wrote:
> >
> > So, we'd like ...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania...
>
>  --
> 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.
>

-- 
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.



Re: [rails-oceania] Canonical accepted method for headless cucumber and capybara on Hudson?

2010-11-29 Thread Bodaniel Jeanes
Yeah, I've used Xvfb + Firefox running headless on an Ubuntu CI server quite
a few times. It works really well. That article looks fairly thorough but
feel free to ping me if you have issues. I've done this setup countless
times.

Cheers,
Bo

On Tue, Nov 30, 2010 at 4:05 PM, Daryl Manning wrote:

> So, we'd like to test on Hudson CI with Cucumber and capybara in addition
> to running specs which means we need to use a virtual framebuffer and a
> browser and well it all gets a little tricky after that. There are a few
> howtos on doing this, but was just wondering if there is an accepted method
> of doing it that everyone uses (and I'm just typically out of the loop). For
> example, something like this one (which is my main plan at the mo) :
>
>
> http://blog.kabisa.nl/2010/05/24/headless-cucumbers-and-capybaras-with-selenium-and-hudson/
>
> Anyhow, would love to hear if there is a better or accepted way.
>
> ciao !
> Daryl.
>
>  --
> 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.
>

-- 
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.



Re: Recurring Payments (Was: [rails-oceania] Re: Suggestions for a good rails-based commerce package?)

2010-11-28 Thread Bodaniel Jeanes
I can't recommend payment express highly enough. We had a fantastic
experience with them, and their support is on our time zone (new
Zealand, actually)

Sent from my iPhone

On 29/11/2010, at 10:15 AM, Myles Eftos  wrote:

>
>
>> Ok sorry, what I meant ask is what combination of lib and payment gateway is 
>> the ducks nuts?
>>
>> active merchant / dps?
>>
>> Cheers
>>
>> Rufus
>>
>
> I don't know about ducks nuts, if you use my or Jason Stirk's forks of Active 
> Merchant, you can use Eway's new Recurring and Managed API. Don't use the 
> rebill API though, as you have no way of knowing when a payment has occurred 
> (nor more importantly failed). Use managed payments, and a cron job - it'll 
> give you more control over what happens.
>
> Basically you create a customer, this gives you a token which you use to 
> create payments.
>
> http://www.eway.com.au
> https://github.com/madpilot/active_merchant/ and the "documentation" ;) 
> https://github.com/madpilot/active_merchant/blob/master/lib/active_merchant/billing/gateways/eway_token.rb
>
> --
> 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.
>

-- 
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.



Re: [rails-oceania] Current Deployment OS of Choice

2010-11-26 Thread Bodaniel Jeanes
Mikel,

I highly doubt anyone is running X or any GUI on their production servers. I
assume you know that ubuntu comes in a server distro:
http://www.ubuntu.com/server.

I use ubuntu because apt package manager is just fantastic. Having a
fantastic community around Ubuntu (and Debian) means finding solutions to
problems is usually very quick and painless. And overall, Ubuntu has got so
much attention recently (even if predominately in the desktop arena) that
it's just really well-rounded. So many distros can feel rough around the
edges so it's nice to have a system which is sensible and works as expected.
Principle of least surprise and what not...

Bo


On Sat, Nov 27, 2010 at 5:43 PM, Mikel Lindsaar  wrote:

> Hi RoRoers,
>
> Quick survey, what is your current deployment OS of choice and why?
>
> Reason I ask is there is a lot of movement recently, my current deployment
> OS of choice is CentOS, but it is getting a bit long in the tooth and
> sometimes has interesting yum problems on updating software, I can get
> anything I want installed of course using direct installs, but would like to
> get a bit of feedback from our community on what you are using these days.
>
> For some reason, I look at Ubuntu as just a desktop OS, I know this is
> irrational, but I have been seeing more and more ubuntu installs on screen
> casts and the like, are people using this because they find it easier?  Are
> they (gasp) running the GUI on it in production?  What is the attraction
> here?
>
>
> Mikel Lindsaar
> http://rubyx.com/
> http://lindsaar.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-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.
>
>

-- 
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.



Re: [rails-oceania] Re: Fwd: [Fwd: Regulator warns Australia's finance industry on cloud risks]

2010-11-16 Thread Bodaniel Jeanes
Even if AWS had a base in Australia, you'd need to make sure any EBS or S3
data (not to mention the rest of their data-related services) were never
mirrored outside of Australia. Getting a written guarantee of that nature
from Amazon would be an interesting adventure, I think.

Bo
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes




On Wed, Nov 17, 2010 at 11:31 AM, Ivan Vanderbyl wrote:

> I develop applications for the finance industry and in order to avoid
> breaking license agreements with several government data providers (for
> Individual and Company credit reporting, business records and fraud
> prevention etc) we cannot host our applications outside of Australia, and
> some even require written certification from our data centre that all our
> data is located inside Australian shores.
>
> Personally I can see why they are so strict on it, especially when we might
> consider moving some services to the cloud in Singapore and then contend
> with the possibility of government instability, regulations which could
> interrupt our business or give other parties access to our data.
>
> It would be awesome if AWS had a base in Australia. Hopefully one day.
>
> -
> Ivan
>
> On 17/11/2010, at 12:15 PM, Bodaniel Jeanes wrote:
>
> Yeah I completely agree. This seems like a security thing not a "omg all
> the money is going outside australia" thing. I'd rather my important and
> private information with big Australian corporations weren't hosted in
> Singapore or elsewhere, to be honest...
> [image: Bodaniel Jeanes]
> *Bodaniel Jeanes* [image: LinkedIn]  
> <http://www.linkedin.com/in/bjeanes>[image:
> Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me] 
> <http://tungle.me/bjeanes>[image:
> Blog] <http://bjeanes.com/>
> Whttp://bjeanes.com e...@bjeanes.comt+61412639224
> [image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com 
> [image:
> Skype][image: AIM] bojeanes
>
>
>
>
> On Wed, Nov 17, 2010 at 11:07 AM, Anthony Richardson <
> goo...@anthonyrichardson.com> wrote:
>
>> I think the email is clear on this
>>
>> "Regulated institutions are reminded that, under the prudential
>> standards on outsourcing, they are required to consult with APRA prior
>> to entering into any offshoring agreement involving a material
>> business activity."
>>
>> I think this makes sense and when you have a business that that may be
>> susceptible to foreign government intervention this is entirely
>> prudent and makes sense. I see nothing wrong with what APRA has said
>> and think it is sensible to require a bank to consider and seek
>> approval before doing something like putting massive amounts of
>> banking information under the jurisdictional of a foreign government.
>>
>> Cheers,
>>
>> Anthony
>>
>> On Wed, Nov 17, 2010 at 11:26 AM, Bayan Khalili 
>> wrote:
>> > I didn't know that regulated institutions were so.. um.. regulated.
>> >
>> > If using cloud services are categorised as outsourcing, then would
>> > using any other hosted services (email, issue trackers, project
>> > management systems, etc) be included as well?
>> >
>> > How about sending a parcel overseas, or picking up the phone and
>> > making an international call? Are these forms of offshore outsourcing
>> > that require "...the regulator's tick of approval..."? Don't they
>> > depend on services that are managed and owned by overseas
>> > organisations?
>> >
>> > Bayan
>> >
>> > On Nov 17, 9:22 am, Clifford Heath  wrote:
>> >> Hmmm. Relevant? I think so.
>> >>
>> >> Clifford Heath.
>> >>
>> >> Begin forwarded message:
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> >  Original Message 
>> >> > Subject: Regulator warns Australia's finance industry on cloud risks
>> >> > Date: Wed, 17 Nov 2010 05:34:44 +1100
>> >> > From: Don McKenzie <5...@2.5a>
>> >> > Newsgroups: aus.computers,aus.electronics
>> >>
>> >> > Regulator warns Australia's finance industry on clo

Re: [rails-oceania] Re: Fwd: [Fwd: Regulator warns Australia's finance industry on cloud risks]

2010-11-16 Thread Bodaniel Jeanes
Yeah I completely agree. This seems like a security thing not a "omg all the
money is going outside australia" thing. I'd rather my important and private
information with big Australian corporations weren't hosted in Singapore or
elsewhere, to be honest...
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes




On Wed, Nov 17, 2010 at 11:07 AM, Anthony Richardson <
goo...@anthonyrichardson.com> wrote:

> I think the email is clear on this
>
> "Regulated institutions are reminded that, under the prudential
> standards on outsourcing, they are required to consult with APRA prior
> to entering into any offshoring agreement involving a material
> business activity."
>
> I think this makes sense and when you have a business that that may be
> susceptible to foreign government intervention this is entirely
> prudent and makes sense. I see nothing wrong with what APRA has said
> and think it is sensible to require a bank to consider and seek
> approval before doing something like putting massive amounts of
> banking information under the jurisdictional of a foreign government.
>
> Cheers,
>
> Anthony
>
> On Wed, Nov 17, 2010 at 11:26 AM, Bayan Khalili 
> wrote:
> > I didn't know that regulated institutions were so.. um.. regulated.
> >
> > If using cloud services are categorised as outsourcing, then would
> > using any other hosted services (email, issue trackers, project
> > management systems, etc) be included as well?
> >
> > How about sending a parcel overseas, or picking up the phone and
> > making an international call? Are these forms of offshore outsourcing
> > that require "...the regulator's tick of approval..."? Don't they
> > depend on services that are managed and owned by overseas
> > organisations?
> >
> > Bayan
> >
> > On Nov 17, 9:22 am, Clifford Heath  wrote:
> >> Hmmm. Relevant? I think so.
> >>
> >> Clifford Heath.
> >>
> >> Begin forwarded message:
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> >  Original Message 
> >> > Subject: Regulator warns Australia's finance industry on cloud risks
> >> > Date: Wed, 17 Nov 2010 05:34:44 +1100
> >> > From: Don McKenzie <5...@2.5a>
> >> > Newsgroups: aus.computers,aus.electronics
> >>
> >> > Regulator warns Australia's finance industry on cloud risks
> >> > By Brett Winterford on Nov 16, 2010 4:56 PM (12 hours ago)
> >> > 
> >>
> >> > APRA's cloud computing fears published in open letter.
> >>
> >> > "The letter will prove a blow to U.S.-owned cloud computing
> >> > providers such as Amazon's EC2, Salesforce.com, Microsoft's Azure
> >> > and Google's App Engine - all of which to date are hosted elsewhere
> >> > in Asia."
> >>
> >> > Australian banking regulator APRA has written an open letter to the
> >> > financial services industry, urging executives to view cloud
> >> > computing as a new form of outsourcing or offshoring that requires
> >> > the regulator's tick of approval.
> >>
> >> > The rise of cloud computing has - as formerly expressed by CSC chief
> >> > technology officer Bob Hayward - "caught the regulator by surprise."
> >>
> >> > Earlier this year the regulator stepped in to apply pressure on one
> >> > wealth management firm that had endeavoured to migrate its CRM
> >> > system to Salesforce.com, hosted in Singapore.
> >>
> >> > Today's letter [PDF] - first reported on technology news site
> >> > Delimiter - reinforced APRA's view that cloud computing is still
> >> > untested technically and legally.
> >>
> >> > The regulator said organisations migrating services such as
> >> > messaging and calendaring, collaboration and CRM to the cloud be
> >> > concerned about serious risks to the business.
> >>
> >> > "While these applications may seem innocuous, the reality is that
> >> > they may form an inte

Re: [rails-oceania] search engine friendly urls?

2010-11-01 Thread Bodaniel Jeanes
Scratch that. I just saw in the readme that they suggest using StringEx if
you want that and gave an example of using both together.
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes




On Tue, Nov 2, 2010 at 8:44 AM, Bodaniel Jeanes  wrote:

> Kirill, do you know how it stacks up to stringex in terms of the unicode
> support and intelligent symbol transliteration (% -> percent, $12 ->
> 12-dollars, etc)?
>
> Bo
> [image: Bodaniel Jeanes]
>
> *Bodaniel Jeanes* [image: LinkedIn]  
> <http://www.linkedin.com/in/bjeanes>[image:
> Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me] 
> <http://tungle.me/bjeanes>[image:
> Blog] <http://bjeanes.com>
> Whttp://bjeanes.com e...@bjeanes.comt+61412639224
> [image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com 
> [image:
> Skype][image: AIM] bojeanes
>
>
>
>
> On Tue, Nov 2, 2010 at 8:40 AM, Kirill Radzikhovskyy 
> wrote:
>
>> I use friendly_id
>>
>> http://github.com/norman/friendly_id
>>
>>
>> # edit app/models/user.rb
>> class User < ActiveRecord::Base
>>   has_friendly_id :name, :use_slug => true
>> end
>>
>> User.create! :name => "Joe Schmoe"
>>
>> rails server
>>
>> GET http://0.0.0.0:3000/users/joe-schmoe
>>
>> <http://github.com/norman/friendly_id>
>>
>> On 2 November 2010 08:32, Matthieu Stone wrote:
>>
>>> Hello,
>>>
>>> Anyone got any thoughts on the best way to generate search engine
>>> friendly urls in a rails 3 app?
>>>
>>> ie:
>>>
>>> www.mysite.com/products/big-green-furry-thing
>>>
>>> instead of
>>>
>>> www.mysite.com/products/23
>>>
>>> rgds,
>>> - matt.
>>>
>>>
>>>  --
>>> 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.
>>>
>>
>>
>>
>> --
>> **
>> *Everything is made from a Dream - /-Sakurai Kazutoshi-/
>>
>> "To iterate is human, to recurse, divine."
>> -- Robert Heller
>>
>> "To recurse is human, to box a continuation into an object and send it
>> across a network is divine. "
>> -- Andy Kitchen*
>>
>>  --
>> 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.
>>
>
>

-- 
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.



Re: [rails-oceania] search engine friendly urls?

2010-11-01 Thread Bodaniel Jeanes
Kirill, do you know how it stacks up to stringex in terms of the unicode
support and intelligent symbol transliteration (% -> percent, $12 ->
12-dollars, etc)?

Bo
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes




On Tue, Nov 2, 2010 at 8:40 AM, Kirill Radzikhovskyy wrote:

> I use friendly_id
>
> http://github.com/norman/friendly_id
>
>
> # edit app/models/user.rb
> class User < ActiveRecord::Base
>   has_friendly_id :name, :use_slug => true
> end
>
> User.create! :name => "Joe Schmoe"
>
> rails server
>
> GET http://0.0.0.0:3000/users/joe-schmoe
>
> <http://github.com/norman/friendly_id>
>
> On 2 November 2010 08:32, Matthieu Stone  wrote:
>
>> Hello,
>>
>> Anyone got any thoughts on the best way to generate search engine friendly
>> urls in a rails 3 app?
>>
>> ie:
>>
>> www.mysite.com/products/big-green-furry-thing
>>
>> instead of
>>
>> www.mysite.com/products/23
>>
>> rgds,
>> - matt.
>>
>>
>>  --
>> 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.
>>
>
>
>
> --
> **
> *Everything is made from a Dream - /-Sakurai Kazutoshi-/
>
> "To iterate is human, to recurse, divine."
> -- Robert Heller
>
> "To recurse is human, to box a continuation into an object and send it
> across a network is divine. "
> -- Andy Kitchen*
>
>  --
> 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.
>

-- 
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.



Re: [rails-oceania] search engine friendly urls?

2010-11-01 Thread Bodaniel Jeanes
Hey that's nice! parameterize i think more or less does s/[^a-z0-9-]+/-/gi
and maybe a few other things (like downcasing). Thanks for sharing that gem!
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes




On Tue, Nov 2, 2010 at 8:12 AM, Julio Cesar Ody  wrote:

> Not sure how it works on Rails 3, but I've been using the stringex gem for
> that for a while now. It has some cool features such as:
>
>
> rock & roll".to_url => "rock-and-roll"
>
>
> Check it out at http://github.com/rsl/stringex
>
>
>
>
> On Tue, Nov 2, 2010 at 8:38 AM, Bodaniel Jeanes  wrote:
>
>> Matt,
>>
>> This has always been easy in rails. All you have to do is define the
>> `to_param` method on your model.
>>
>> E.g.
>>
>> class Product < AR::Base
>>   def to_param
>> "perhaps-product-name-or-other-string"
>>   end
>> end
>>
>> Usually you wouldn't arbitrarily return a string though. I usually have a
>> column called "permalink" which I initialise on record creation (using
>> before_create) to be something sensible. Here's a good example:
>>
>> class Product < AR::Base
>>   before_create :set_permalink
>>
>>   def to_param
>> self.permalink
>>   end
>>
>>   protected
>> def set_permalink
>>   self.permalink = self.title.parameterize
>> end
>> end
>>
>> In order to find the products, you have to also change the controller so
>> that instead of `Product.find(params[:id])`, you'd do something like `
>> Product.find_by_permalink(params[:id])`
>>
>> Cheers,
>> Bo
>> [image: Bodaniel Jeanes]
>>
>> *Bodaniel Jeanes* [image: LinkedIn]  
>> <http://www.linkedin.com/in/bjeanes>[image:
>> Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me] 
>> <http://tungle.me/bjeanes>[image:
>> Blog] <http://bjeanes.com>
>> Whttp://bjeanes.com e...@bjeanes.comt+61412639224
>> [image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com 
>> [image:
>> Skype][image: AIM] bojeanes
>>
>>
>>
>>
>> On Tue, Nov 2, 2010 at 7:32 AM, Matthieu Stone 
>> wrote:
>>
>>> Hello,
>>>
>>> Anyone got any thoughts on the best way to generate search engine
>>> friendly urls in a rails 3 app?
>>>
>>> ie:
>>>
>>> www.mysite.com/products/big-green-furry-thing
>>>
>>> instead of
>>>
>>> www.mysite.com/products/23
>>>
>>> rgds,
>>> - matt.
>>>
>>>
>>>  --
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>
>
> --
> http://awesomebydesign.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-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.
>

-- 
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.



Re: [rails-oceania] search engine friendly urls?

2010-11-01 Thread Bodaniel Jeanes
Matt,

This has always been easy in rails. All you have to do is define the
`to_param` method on your model.

E.g.

class Product < AR::Base
  def to_param
"perhaps-product-name-or-other-string"
  end
end

Usually you wouldn't arbitrarily return a string though. I usually have a
column called "permalink" which I initialise on record creation (using
before_create) to be something sensible. Here's a good example:

class Product < AR::Base
  before_create :set_permalink

  def to_param
self.permalink
  end

  protected
def set_permalink
  self.permalink = self.title.parameterize
end
end

In order to find the products, you have to also change the controller so
that instead of `Product.find(params[:id])`, you'd do something like `
Product.find_by_permalink(params[:id])`

Cheers,
Bo
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes




On Tue, Nov 2, 2010 at 7:32 AM, Matthieu Stone wrote:

> Hello,
>
> Anyone got any thoughts on the best way to generate search engine friendly
> urls in a rails 3 app?
>
> ie:
>
> www.mysite.com/products/big-green-furry-thing
>
> instead of
>
> www.mysite.com/products/23
>
> rgds,
> - matt.
>
>
>  --
> 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.
>

-- 
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.



Re: [rails-oceania] Re: Rails Rumble Entry - desksnear.me

2010-10-23 Thread Bodaniel Jeanes
Hey fellow Australians! DesksNear.Me was sitting at #5 for most of
yesterday, and peaked at #1 for about an hour. Unfortunately it has fallen
to #12 now :(

If any of you guys haven't voted yet, I'm sure all the Australian entries
(us, StillAlive, etc) would love if you could give your honest vote (whoever
it is for).

It only takes a second to do, but might make all the difference. Everyone's
ratings have dropped heavily in the last half a day and it seems that the
competitors are playing dirty by voting everyone else down (e.g.
DesksNear.Me's expert judge ratings were all 4s and 5s with only a few 3s,
but the general average vote is about 2.5 -- I assume it's similar for some
of the other entries).

Cheers,
Bo
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes




On Mon, Oct 18, 2010 at 7:01 PM, Warren Seen  wrote:

> Sorry Enrico, we've decided at this stage that we're not going to release
> the source. To be honest, it's not that interesting, and not that big
> either. :)
>
> Most of the work over the weekend was in writing cucumber features and
> making sure that the build didn't break. We posted this link to our CI
> server at the start of the comp: http://ci.desksnear.me/builds - in case
> you want to see how many times the build did break ;)
>
> Cheers,
>
> Warren
>
>
> On 19/10/2010, at 9:54 AM, Enrico Teotti wrote:
>
> > it looks really really nice and useful, well done
> >
> > is the source code available?
> >
> > On Tue, Oct 19, 2010 at 9:26 AM, chrisjacob 
> wrote:
> >> Great work guys! I'm a freelancer (working from home) and this is
> >> certainly a service I will be using in the future. Also I love the
> >> look of the site. Looking forward to post-rumble improvements on this
> >> solid idea.
> >>
> >> Regards,
> >> Chris Jacob
> >>
> >> On Oct 18, 11:53 am, Warren Seen  wrote:
> >>> Hi all,
> >>>
> >>> Following up from Mikel's email (congrats guys, nice job!), I thought
> I'd let you know about our team's entry in the Rumble:http://desksnear.me
> >>>
> >>> Desks Near Me is a simple and beautiful way for freelancers,
> contractors, and other nomadic workers to see great places where they can
> work.
> >>>
> >>> If you've got a desk or two free and would like to list on the site,
> we'd love it if you could add your workplace to the list. We already have
> local shops Inspire9, The Frontier Group and CodeFire listed.
> >>>
> >>> We're already scheming up our post-Rumble improvements, once everyone
> catches up on some sleep, so if you have suggestions, hit us with them! (eg
> iCal integration didn't make the cut :()
> >>>
> >>> Big shout out to The Rad Warlike Annex team: Keith Pitt, who can code
> for 36 hours straight, Bo Jeanes, who can code from the other side of the
> planet and Alex Eckermann who can code sweet sweet HTML5 love. I just tried
> not to break any of their shit ;-)
> >>>
> >>> (By the way, I think we figured out that the longest time you can keep
> a 4-way skype conf going is about 4 hours, in case anyone is wondering...)
> >>>
> >>> Cheers,
> >>>
> >>> Warren
> >>
> >> --
> >> 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.
> >>
> >>
> >
> >
> >
> > --
> > Enrico Teotti
> > IT consultant, accessible web sites and web applications
> > currently working @ http://www.redant.com.au
> > Sydney, NSW, Australia
> > enrico.teo...@gmail.com
> > mobile (AU) +00610416748450
> >
> > http://teotti.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-ocea...@googlegroups.com.
> > To unsubscribe fro

Re: [rails-oceania] Arel joins

2010-10-21 Thread Bodaniel Jeanes
Ah the part about other memberships wasn't clear. The problem is that
memberships is already joined into the query so it needs to be aliased and
then another join performed. I'd do it the way you are doing it now, really.
If you want to make it 1 query you could use @user.board_ids.to_sql to embed
it in the conditions as a sub-query... maybe.

Bo
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes




On Thu, Oct 21, 2010 at 7:06 AM, Ben Hoskings  wrote:

> 2010/10/21 Bodaniel Jeanes 
>
> Ben,
>>
>> I assume you are doing has_many :boards, through => :memberships?
>>
>> Isn't this just @user.memberships? Or are users associated with boards in
>> a different wy?
>>
>
> Yep, User -> Membership and Board -> Membership are both standard has_many
> relationships.
>
> So, current_user.memberships is all this user's memberships. I'm after all
> the memberships on all the boards this user is a member of. That is, for
> every membership that Membership.where(:user_id => current_user.id)
> returns, I want to also include every other membership to the corresponding
> board.
>
> (The purpose of this is a readable_by filter for Membership: it's all the
> memberships that this user can know exist. That is, a given user can see all
> the memberships on all the boards they're a member of.)
>
> (If there's a better way to do what I'm trying to do then I'd be keen to
> hear that too.)
>
> —ben_h
>
>  --
> 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.
>

-- 
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.



Re: [rails-oceania] Arel joins

2010-10-21 Thread Bodaniel Jeanes
Ben,

I assume you are doing has_many :boards, through => :memberships?

Isn't this just @user.memberships? Or are users associated with boards in a
different wy?
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes




On Thu, Oct 21, 2010 at 2:10 AM, Ben Hoskings  wrote:

> Hi all,
>
> I'm struggling to find any arel docs that cover anything but the most basic
> of joins.
>
> I have users and boards, with a memberships join table (memberships has
> user_id and board_id FKs). So,
>
> User <--->> Membership <<---> Board
>
> For a given user, I want to select all memberships on boards to which this
> user has a membership. So, a slow 2-query version of what I want is
>
> Membership.where(:board_id => current_user.boards.map(&:id))
>
> Can someone drop some arel knowledge on me?
>
> ben_h
>
>  --
> 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.
>

-- 
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.



Re: [rails-oceania] Strange deadlocks in Ruby 1.9.2/Cucumber/Capybara

2010-10-07 Thread Bodaniel Jeanes
The first thing I would try is to change the DB you are using. Perhaps it's
a weird 1.9.2 issues and the db connection is what is hanging? Then I'd try
to upgrade any versions of rack/webrick (if using something like Selenium)
in case it's one of those. Basically check all the gem versions.

I have 3 apps I'm working on right now, all with Rails 3, Ruby 1.9.2, and
all tested with Cucumber/Capybara and I've not experienced this problem
once. FWIW I am using Cucumber 0.8.5, no webrick, postgres 8.4.1, and no
webrick

Bo
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes




On Thu, Oct 7, 2010 at 11:32 PM, Alex Cooper  wrote:

> Hi everybody,
>
> I uncovered a rather unnerving race condition at work 
> (GetUp<http://getup.org.au/>)
> today, and I'd love to know if anyone else has seen this.
>
> I've been getting a erratic, but reproducible lockups under ruby 1.9.2 and
> cucumber/capybara [1]. But under ruby 1.8.7 it's fine.
>
> This sucks, because we'd really like to use 1.9.2 for its much improved
> performance.
>
> The cucumber script does nothing special. Populate the DB, fill in some
> fields, press a button or two. Sometimes cucumber hangs midway through the
> test--but at *different locations. *This behavior is seen on other
> features, too, but it's mainly in the same few scenarios.
>
> Steps to reproduce:
>
>1. rvm use 1.8.7
>2. bundle exec cucumber features/example.feature [2]
>3. observe soothing green output
>4. rvm use 1.9.2
>5. bundle exec cucumber features/example.feature
>6. tear hair out when deadlock occurs [3]
>
>
> The kicker is that it happens in different places in the cucumber script,
> and there's no predictable pattern I can discern as to exactly which step
> (or type of step) will hang.
>
> I suspect deadlock, because output halts midway through a scenario, CPU
> drops to zero, memory usage remains stable, and Ruby no longer responds to
> SIGINT (which I think it normally would).
>
> So, my questions for the floor are, in increasing order of importance:
>
>1. *Has anyone on the list experienced (and hopefully fixed) this
>problem?*
>2. *How would you approach tracking this bad boy down? (Preferably not 
> involving
>MRI source code and gdb.**)*
>3. *Which particular alcoholic beverage is preferred for drowning one's
>sorrows while debugging bugs like this?*
>
>
> Cheers, and many thanks in advance,
>
>  - alex.
>
> Notes:
>
>1. The environment is: Rails 3.0, Ruby 1.9.2, cucumber 0.9.0,
>cucumber-rails 0.3.2, webrick 1.3.1, postgres 8.4.4, OSX Snow Leopard
>2. There really is nothing special about this script--it just fills in
>inputs and pushes buttons.
>3. On different machines, deadlock occurs with different frequency. On
>my (slow) MBP with 2G memory, it happens about 70% of the time. On a
>colleague's <http://ryanbigg.com/> older (but faster) machine, it locks
>up around 30% of the time.
>
>
>  --
> Alex Cooper m: 0402 024 304 w: http://acooper.org/
> t: @kuperov
>
>  --
> 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.
>

-- 
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.



Re: [rails-oceania] [JOB] Ruby/Rails Developer

2010-09-28 Thread Bodaniel Jeanes
Don't start this again please. Also, everything but remuneration was given,
if you read carefully

Sent from my iPhone

On 29/09/2010, at 2:22 PM, Ryan Bigg  wrote:

Full-time, part-time, casual?
Remuneration?
Location?

More details please.

On 29 September 2010 12:46, Uilton Dutra  wrote:

> Ocapi is an ad agency that offers creative services and media management in
> a performance business model.
> We are looking for a talented and enthusiastic Rails developer that likes
> to be challenged and can handle responsibility.
>
> *Minimum Qualifications: *
>
>- Ruby and Rails;
>- MySQL;
>- Linux;
>- JavaScript, CSS, Web Standards;
>
> *Plusses, but not required:*
>
>- Rails 3;
>- NoSQL databases;
>
> This position is full time to work home office.
> To apply please send your resume to: uil...@ocapi.com.br
>
> Thank you,
>
> Uilton Dutra
> +55 (11) 3717 1423
> www.ocapi.com.br
>
>  --
> 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.
>

 --
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.

-- 
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.



Re: [rails-oceania] Re: Tracking unique visitors

2010-09-27 Thread Bodaniel Jeanes
The one I am using at the moment is http://www.shamasis.net/projects/ga/ and
it's done everything I've needed so far.

Bo

On Tue, Sep 28, 2010 at 12:01 PM, Nicholas Faiz wrote:

>
> Hi Bodaniel,
>
> Do you have a link for any of those jquery analytic libs you
> mentioned? I'm looking into ways to build site metrics and would like
> to check them out.
>
> (I have googled for them, just wanted to make sure I wasn't missing
> anything particularly useful).
>
> Cheers,
> Nicholas
>
>
> On Sep 23, 10:08 am, Bodaniel Jeanes  wrote:
> > Joshua,
> >
> > You can track custom metrics like subdomains. There are also jquery
> > analytics plugins that help you track virtual clicks (like Ajax)
> >
> > Sent from my iPhone
> >
> > On 23/09/2010, at 10:07 AM, Joshua Partogi  wrote:
> >
> >
> >
> > > Hi Keith,
> >
> > > Thanks for that. I had a thought of that, but would this fit in a SaaS
> > > application where you want to track visitors per subdomain?
> >
> > > Cheers,
> > > Joshua.
> >
> > > On Thu, Sep 23, 2010 at 10:03 AM, Keith Pitt 
> wrote:
> > >> Usinghttp://www.google.com/analytics/would be a good fit for this.
> > >> Keith
> > >> Keith Pitt
> > >> Web:http://www.keithpitt.com
> > >> Twitter: @keithpitt
> > >> Skype: keithpitt
> > >> Phone: +61 432 713 987
> >
> > >> On Wed, Sep 22, 2010 at 9:41 PM, Joshua Partogi 
> wrote:
> >
> > >>> Hi all,
> >
> > >>> Is there any gems to track unique visitors in rails? If not, what is
> > >>> the best approach to do this is rails?
> >
> > >>> Thanks heaps for the insights.
> >
> > >>> Cheers,
> > >>> Joshua.
> >
> > >>> --
> > >>>http://twitter.com/scrum8
> >
> > >>> --
> > >>> 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.
> >
> > >> --
> > >> 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.
> >
> > > --
> > >http://twitter.com/scrum8
> >
> > > --
> > > 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 athttp://
> 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-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.
>
>


-- 
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes

-- 
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.



Re: [rails-oceania] Tracking unique visitors

2010-09-24 Thread Bodaniel Jeanes
Joshua,

You can track custom metrics like subdomains. There are also jquery
analytics plugins that help you track virtual clicks (like Ajax)

Sent from my iPhone

On 23/09/2010, at 10:07 AM, Joshua Partogi  wrote:

> Hi Keith,
>
> Thanks for that. I had a thought of that, but would this fit in a SaaS
> application where you want to track visitors per subdomain?
>
> Cheers,
> Joshua.
>
> On Thu, Sep 23, 2010 at 10:03 AM, Keith Pitt  wrote:
>> Using http://www.google.com/analytics/ would be a good fit for this.
>> Keith
>> Keith Pitt
>> Web: http://www.keithpitt.com
>> Twitter: @keithpitt
>> Skype: keithpitt
>> Phone: +61 432 713 987
>>
>>
>> On Wed, Sep 22, 2010 at 9:41 PM, Joshua Partogi  wrote:
>>>
>>> Hi all,
>>>
>>> Is there any gems to track unique visitors in rails? If not, what is
>>> the best approach to do this is rails?
>>>
>>> Thanks heaps for the insights.
>>>
>>>
>>> Cheers,
>>> Joshua.
>>>
>>> --
>>> http://twitter.com/scrum8
>>>
>>> --
>>> 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.
>>>
>>
>> --
>> 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.
>>
>
>
>
> --
> http://twitter.com/scrum8
>
> --
> 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.
>

-- 
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.



Re: [rails-oceania] Selector-Free Cucumber Scenarios

2010-09-21 Thread Bodaniel Jeanes
Steven,

That's pretty cool. I hadn't seen that before, but that seems like a
fantastic approach if you were in the position of using a LOT of selectors.
My solution wouldn't scale to that extent. I find, in most cases, that I
never have to resort to using selectors more than a handful of times, so my
solution is a quick way to DRY that up.

If there was reason to target specific areas of the page all the time
(because of ambiguity or because you want to be particularly specific) I
could see Gizmo doing the trick nicely.

Thanks for sharing!

Bo

On Mon, Sep 20, 2010 at 3:32 PM, Steven Holloway  wrote:

> Hi Bodaniel,
>
> Ealier this year my colleague (Luke Cunningham) presented at RORO melbourne
> in a gem we built (mostly by Luke) here at realestate.com.au. Its called
> gizmo and it's prime motivation is to DRY up cucumber steps.
>
> gem install gizmo
>
> see here http://github.com/icaruswings/gizmo/wiki/Cucumber
>
> We found this to be an invaluable approach to handling large cucumber
> suites.
>
> Have a look at the examples and see what you think.
>
> The work is based on upon some seeds planted by Thoughtworks consultants
> last year.
>
> Most of this was done pre capybara so the both approaches can be blended to
> harness the power of each.
>
> Thought you might find this interesting.
>
> Cheers
>   Steven
>
> On Mon, Sep 20, 2010 at 10:48 AM, Bodaniel Jeanes  wrote:
>
>> Hey roro-ers,
>>
>> I've been on this idea for a blog post and the code behind it for about 7
>> or 8 months and finally got the motivation last night to type it up so I
>> thought I'd share it.
>>
>> It's about why you should be keeping CSS and XPath selectors out of your
>> Cucumber scenarios and how you can do so easily (with some code).
>>
>> I'd love your feedback and I'm sure plenty of you have similar solutions
>> to this or similar problems.
>>
>> http://bjeanes.com/2010/09/19/selector-free-cucumber-scenarios
>>
>> --
>> [image: Bodaniel Jeanes]
>>
>> *Bodaniel Jeanes* [image: LinkedIn]  
>> <http://www.linkedin.com/in/bjeanes>[image:
>> Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me] 
>> <http://tungle.me/bjeanes>[image:
>> Blog] <http://bjeanes.com>
>> Whttp://bjeanes.com e...@bjeanes.comt+61412639224
>> [image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com 
>> [image:
>> Skype][image: AIM] bojeanes
>>
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>



-- 
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes

-- 
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] Selector-Free Cucumber Scenarios

2010-09-19 Thread Bodaniel Jeanes
Hey roro-ers,

I've been on this idea for a blog post and the code behind it for about 7 or
8 months and finally got the motivation last night to type it up so I
thought I'd share it.

It's about why you should be keeping CSS and XPath selectors out of your
Cucumber scenarios and how you can do so easily (with some code).

I'd love your feedback and I'm sure plenty of you have similar solutions to
this or similar problems.

http://bjeanes.com/2010/09/19/selector-free-cucumber-scenarios

-- 
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes

-- 
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.



Re: [rails-oceania] One more Ruby rumble team

2010-09-15 Thread Bodaniel Jeanes
It closes in 2 days

On Wed, Sep 15, 2010 at 11:04 PM, Joshua Partogi wrote:

> Hi Taylor,
>
> Isn't the registration already closed?
>
> Cheers,
> Joshua.
>
> On Wed, Sep 15, 2010 at 11:10 AM, Taylor luk  wrote:
> > Hello everyone,
> >
> > This is taylor luk, I would love to give it a go at this year's ruby
> > rumbe a go.. I got some very cool app ideas if you would like to hear
> > it..
> >
> >
> > TEAM: "Code it Later"
> >
> > ping me in 24 hours
> >
> > @taylor_luk
> > skype: taylor_luk
> > gtalk: subject...@gmail.com
> >
> > www.taylorluk.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-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.
> >
> >
>
>
>
> --
> http://twitter.com/scrum8
>
> --
> 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.
>
>


-- 
[image: Bodaniel Jeanes]

*Bodaniel Jeanes* [image: LinkedIn]
<http://www.linkedin.com/in/bjeanes>[image:
Twitter]  <http://twitter.com/bjeanes>[image: Tungle.me]
<http://tungle.me/bjeanes>[image:
Blog] <http://bjeanes.com>
Whttp://bjeanes.com e...@bjeanes.comt+61412639224
[image: Google Talk] [image: MSN] [image: Google Wave] m...@bjeanes.com [image:
Skype][image: AIM] bojeanes

-- 
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.



Re: [rails-oceania] Another Rails Rumble Team

2010-09-11 Thread Bodaniel Jeanes
I'd definitely be interested in joining he team for the right idea but I am
Playing around with my own RR idea

Sent from my iPhone

On 12/09/2010, at 10:06 AM, Warren Seen  wrote:

We've got a shortlist that we kicked around on skype yesterday, but nothing
locked in yet.

On 12/09/2010, at 9:12 AM, Bodaniel Jeanes wrote:

Do you already have an idea?

Sent from my iPhone

On 12/09/2010, at 9:10 AM, Warren Seen  wrote:

Thanks for posting this Mikel.

I should point out that we're a distributed team, so if anyone else wants to
join us, it doesn't matter if they're not in Adelaide. :D

On 11/09/2010, at 7:22 PM, Mikel Lindsaar wrote:

There are now two Australian Rails Rumble Teams:

Keith Pitt is organising one in Adelaide, for anyone interested:

<http://railsrumble.com/teams/the-rad-warlike-annex>
http://railsrumble.com/teams/the-rad-warlike-annex

You can reach Keith at @keithpitt

Yeehaa!

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-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>
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-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.


-- 
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.


 --
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.

-- 
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.



Re: [rails-oceania] Another Rails Rumble Team

2010-09-11 Thread Bodaniel Jeanes
Do you already have an idea?

Sent from my iPhone

On 12/09/2010, at 9:10 AM, Warren Seen  wrote:

Thanks for posting this Mikel.

I should point out that we're a distributed team, so if anyone else wants to
join us, it doesn't matter if they're not in Adelaide. :D

On 11/09/2010, at 7:22 PM, Mikel Lindsaar wrote:

There are now two Australian Rails Rumble Teams:

Keith Pitt is organising one in Adelaide, for anyone interested:

http://railsrumble.com/teams/the-rad-warlike-annex

You can reach Keith at @keithpitt

Yeehaa!

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-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.


 --
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.

-- 
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.



Re: [rails-oceania] [JOB] 1x Mid-Snr Rails developer with Sentia working on Kazaa.com

2010-09-02 Thread Bodaniel Jeanes
I read it as mid to senior. I.e. A range

Sent from my iPhone

On 02/09/2010, at 10:40 PM, Korny Sietsma  wrote:

what does "mid-senior" mean?
I guess it means $75k...

- Korny

On Thu, Sep 2, 2010 at 5:29 PM, Michael Cindric wrote:

> Description
>
> You will be working on the cutting edge from our Sydney office in
> George Street in the city opposite Wynyard station on Kazaa.com. You
> will be working as part of a team of experienced developers on one of
> the most well known brands on the internet today.
>
> Your role will be to help develop the long list of features for Kazaa
> as well as help improve the current service through such things as
> optimisation
>
> Sentia
>
> Sentia is a Sydney CBD based development house specialising in Ruby on
> Rails & iPhone development.
> We have a focus on building quality applications using an Agile
> process with a heavy focus on TDD.
>
> We take pride in providing a great working environment with such
> things as
>
> - FoosBall table
> - Coffee Machine
> - Soft drinks and Beer
> - Friday Company Lunches
>
> Requirements
>
> You will be required to work on site in the Sentia office and also 1
> day a week off site at clients office.
>
> Skills Required
>
> - Ruby on Rails
> - RSpec
> - Haml
> - Sass
> - JQuery
> - TDD Experience
> - MYSQL
> - GIT
>
> Action Scripting & iPhone experience a plus
>
> Full Time or Contacting are both options depending on your needs but
> prefer Full Time. Starting at 75k + for FT
>
> So if you feel you have what it takes send your CV to
> michael.cind...@sentia.com.au or call on 0403 526 226
>
> Michael
>
> --
> 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.
>
>


-- 
Kornelis Sietsma  korny at my surname dot com
kornys on twitter/fb/gtalk/gwave www.sietsma.com/korny
"Every jumbled pile of person has a thinking part
that wonders what the part that isn't thinking
isn't thinking of"

-- 
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.

-- 
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.



Re: [rails-oceania] Where's the old rails guide?

2010-08-31 Thread Bodaniel Jeanes
No it wasn't. I've been seeing rail3 guides there since yesterday afternoon.
Perhaps it was cached for you.

Josh, the guides are on github as a repo (probably called rails-guides or
sonething)

Sent from my iPhone

On 31/08/2010, at 10:12 PM, Matt  wrote:

It was at http://guides.rubyonrails.org about 2 hours ago...

On Tue, Aug 31, 2010 at 7:41 PM, Joshua Partogi  wrote:

> Hi everyone,
>
> Now that rails 3 is out and everyone is excited, does anybody know where's
> the 2.3 guide went?
>
> Thanks heaps.
> Joshua
>
> --
> http://twitter.com/scrum8
>
>  --
> 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.
>

 --
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.

-- 
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.



Re: [rails-oceania] Eden - A source code formatter for Ruby

2010-08-23 Thread Bodaniel Jeanes
Can it be extended for other languages?

Sent from my iPhone

On 24/08/2010, at 11:18 AM, Jason Langenauer  wrote:

> Hi all,
>
> I've just pushed the first version of a gem I've written: Eden, a
> source-code formatter for Ruby. It's based on a robust lexical
> analyser which can ferret out most of the ambiguities in Ruby syntax,
> and is designed to be configurable in Ruby to set code standards, as
> well as being extensible.
>
> It's a simple "gem install eden" to get, and I've got source up at:
> http://github.com/jasonl/eden
>
> I'd love any feedback, as well as suggestions for further improvements
> / new features.
>
> Cheers,
>
> 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-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.
>

-- 
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.



Re: [rails-oceania] How does the new Google images work?

2010-08-18 Thread Bodaniel Jeanes
And once again we have reason to wonder why the frak CSS is missing a parent
selector...

Sent from my iPhone

On 18/08/2010, at 11:02 PM, Mike Bailey  wrote:

That would be simpler *but* I'm wanting to display some text above and below
the image when they hover.

Hover over a pooch
and you'll
see what I mean. :-)

- Mike

On Wed, Aug 18, 2010 at 10:44 PM, Dylan Fogarty-MacDonald  wrote:

> Hey Mike,
>
> You could achieve something like this with CSS and no JavaScript:
>
> http://gist.github.com/534548
>
> I'm not sure how this will behave in some browsers. IE6 for one won't like
> div:hover.
>
> You can go and enhance it with CSS3 box
> shadows and even transitions for the zoom effect.
>
> Dylan
>
>
> On 18 August 2010 22:34, Mike Bailey  wrote:
>
>> Thanks Mikel, that looks like what I need! :-)
>>
>> - Mike
>>
>> On Wed, Aug 18, 2010 at 10:33 PM, Mikel Lindsaar wrote:
>>
>>> I'm no jQuery king, but this should get you started on popping the images
>>> up... you will need to fix the positioning of the image as well by adding
>>> the appropriate style.
>>>
>>> jQuery(function($) {
>>>   $('img').live('hover', function(){
>>> $(this).animate({ height: $(this).attr('data-height'),
>>>   width: $(this).attr('data-width') },
>>>   2, 'swing');
>>> });
>>>
>>>
>>> Mikel
>>>
>>>
>>>
>>> On 18/08/2010, at 10:16 PM, Mike Bailey wrote:
>>>
>>> That looks pretty cool Julio!
>>>
>>> Right now I'm wondering how to make a div popup when users hover over the
>>> image.
>>> It needs to grab some values from the image element like google does:
>>>
>>> >> data-width="272" data-height="185" <- Use these to calculate size of
>>> onhover popup
>>> style="width:272px;height:185px">
>>>
>>> I'm sure it's a simple one. :-)
>>>
>>> - Mike
>>>
>>> On Wed, Aug 18, 2010 at 9:59 PM, Julio Cesar Ody wrote:
>>>
 Yeah,

 http://desandro.com/resources/jquery-masonry/

 I'm building an iPhone/iPad web app that uses it for image search

 http://github.com/juliocesar/domino

 Counts as a "ghost of done" now that I said so on the Internet before
 it's done  :)



 On Wed, Aug 18, 2010 at 9:50 PM, Mike Bailey 
 wrote:
 > http://www.google.com.au/images?q=dogs&biw=1246&bih=985
 > Have you seen Google's new look image search? Besides being super
 fast, it's
 > got a nice way of showing an image's details on hover.
 > I'd like to implement a similar hover display on Goodfordogs.org. Can
 anyone
 > point me to a simple example?
 > thanks,
 > Mike
 >
 > --
 >
 > http://Goodfordogs.org - Adopt a dog or cat
 >
 > --
 > 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.
 >



 --
 http://crazyhollywood.org

 --
 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.


>>>
>>>
>>> --
>>>
>>> http://Goodfordogs.org - Adopt a dog or cat
>>>
>>>
>>> --
>>> 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.
>>>
>>>
>>>  --
>>> 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.
>>>
>>
>>
>>
>> --
>>
>> http://Goodfordogs.org - Adopt a dog or cat
>>
>>  --
>> 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.
>>
>
>

Re: [rails-oceania] Re: Caching on Development

2010-08-01 Thread Bodaniel Jeanes
Lachie,

This is very much awesome. This will probably come quite handy for a
project we might be starting soon. The app is essentially a UI for a
series of API calls so being able to stub out that API as a
rack/sinatra app is pretty much exactly what we were going to do.

Thanks for sharing ... major props!

Bo

On Sun, Aug 1, 2010 at 8:37 PM, Lachie  wrote:
> Hey peeps,
>
> I've been working on a library that takes a different tack on the
> mocking of webs. After seeing this thread I finally gave it the last
> bit of polish and released an initial version.
>
> Its called HttpVanilli and its here: http://github.com/lachie/http_vanilli
>
> One thing in particular: instead of attaching a novel URL recognising
> & response engine to the job, you have the option of using something
> rather better established and understood: Rack apps.
>
> What does this mean? You can simulate the target webservice by writing
> a little Sinatra app.
>
> I'd be interested to hear what you think :)
>
> :lachie
> http://plus2.com.au
> http://smartbomb.com.au
> http://www.flickr.com/photos/lachie/
>
>
>
> On Sun, Aug 1, 2010 at 10:12 AM, Jonathan Clarke  wrote:
>> http://fakeweb.rubyforge.org/
>>
>> Hitting real APIs during development / testing is far too slow.
>>
>> Jonathan
>>
>> On 1 August 2010 01:52, Alex Pooley  wrote:
>>> Stub with fake data instead of making the API call.
>>>
>>> --
>>> 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.
>>>
>>>
>>
>> --
>> 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.
>>
>>
>
> --
> 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.
>
>

-- 
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.



Re: [rails-oceania] HTML/CSS to PDF conversion?

2010-04-28 Thread Bodaniel Jeanes
Well said matt. Prince is expensive but worth every cent. It is a  
really good piece of kit and if your app uses it and earns money so  
should those guys.


Sent from my iPhone

On 28/04/2010, at 22:37, Matt Allen  wrote:


On Wed, Apr 28, 2010 at 2:42 PM, Kirill Radzikhovskyy
 wrote:

We've tried and used almost anything available.
Prince is good.

.. snip ..
alternatively, use prince and pipe it through cups pdf to get rid  
of P mark

in top right corner.
:P


Of course, you're talking about piracy there.  I assume you're making
some sort of software that you hope people will pay you for, either to
develop it or ongoing so you're cool with doing it for free, right?

To make matters worse (and to counter the "victimless crime" come
backs) Yes Logic Pty Ltd are a company of 4 or so guys from Melbourne.
They have been working on this software for years and it's all that
feeds their families.

Not happy at all.

Matta

--
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 
.




--
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.



Re: [rails-oceania] Re: HTML/CSS to PDF conversion?

2010-04-28 Thread Bodaniel Jeanes
Agreed. All the other ones mentioned probably do well in some  
scenarios but prince does a few nice things that I hvent been able to  
emulate with the other ones


Sent from my iPhone

On 28/04/2010, at 9:40, Mark Mansour  wrote:


PrinceXML is awesome and worth every cent

On Wed, Apr 28, 2010 at 5:19 PM, Josh Price  wrote:
When I used it I don't recall noticing any speed issues, but I did  
front it

with TagSoup to guarantee clean HTML.
On 28/04/2010, at 8:15 AM, Kirill Radzikhovskyy wrote:

The thing about flying saucer.
its Java, you need jruby
It fails if html is not correct and its REALLY slow

On 28 April 2010 17:06, Jet Abe  wrote:


May I also suggest a free alternative called
Flying Saucer

https://xhtmlrenderer.dev.java.net/

Its a java library with IText support(JRuby if you want more
possibilities) and there are plugins out there for doing the
conversions for you.


Search github for Acts_as_flying_saucer


In essence, Its Prince PDf without the 4k price tag

cheers..
Abe

On Apr 28, 5:00 pm, Bodaniel Jeanes  wrote:

Prince is quite definitely the way to go. Extremely robust and
supports really handy CSS3 features which let you do things like  
add

headers and rooters to every page and customise how page nbers are
shown.

Sent from my iPhone

On 28/04/2010, at 6:29, David Parry   
wrote:





Anyone got any recommendations for HTML/CSS to PDF conversion?


We started looking at Prawn, but we've got a whole lot of well- 
layed
out views in HTML/CSS, and it would be heaps easier to just  
convert

them.



Looked at WickedPDF / wkhtmltopdf, which works awesome locally...
unfortunately, there isnt a binary for Solaris on our servers, and
the install process is looking like it's going to be a spiral- 
f**k,

so I'm looking for alternatives.



--
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
athttp://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- 
ocea...@googlegroups.com.

To unsubscribe from this group, send email to
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group
athttp://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-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.





--
Everything is made from a Dream - /-Sakurai Kazutoshi-/

"To iterate is human, to recurse, divine."
-- Robert Heller

"To recurse is human, to box a continuation into an object and send  
it

across a network is divine. "
-- Andy Kitchen


--
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.

--
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.





--
Mark Mansour
The easiest way to manage your Agile project
m...@agilebench.com
http://agilebench.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-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 
.




--
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.



Re: [rails-oceania] HTML/CSS to PDF conversion?

2010-04-28 Thread Bodaniel Jeanes
alternatively, use prince and pipe it through cups pdf to get rid of  
P mark in top right corner.


I can not believe I never considered that. 


--
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.



Re: [rails-oceania] HTML/CSS to PDF conversion?

2010-04-27 Thread Bodaniel Jeanes
Prince is quite definitely the way to go. Extremely robust and  
supports really handy CSS3 features which let you do things like add  
headers and rooters to every page and customise how page nbers are  
shown.


Sent from my iPhone

On 28/04/2010, at 6:29, David Parry  wrote:


Anyone got any recommendations for HTML/CSS to PDF conversion?

We started looking at Prawn, but we've got a whole lot of well-layed  
out views in HTML/CSS, and it would be heaps easier to just convert  
them.


Looked at WickedPDF / wkhtmltopdf, which works awesome locally...  
unfortunately, there isnt a binary for Solaris on our servers, and  
the install process is looking like it's going to be a spiral-f**k,  
so I'm looking for alternatives.



--
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 
.




--
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.



Re: [rails-oceania] bundler in production

2010-04-27 Thread Bodaniel Jeanes
Agreed, but I make their home folder somewhere else: /srv/http/ 
appname.com for example.


Sent from my iPhone

On 27/04/2010, at 14:17, Ben Hoskings  wrote:


On 27 April 2010 22:07, Mike Bailey  wrote:
Hi all,

by default, bundler puts gems in ~/.bundle. While this is fine on a  
developers workstation, I don't think it's the right place to keep  
them on a production box. The deploy user may not be the same user  
the app runs as and the location is just a bit weird.


I think the app should always run as its own user (I name user after  
the domain the app is serving), so in my book this is the right  
place to put them.


--ben_h

--
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 
.


--
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.



Re: [rails-oceania] On-site Ruby Courses

2010-04-27 Thread Bodaniel Jeanes
Mocra runs training courses. http://training.mocra.com for info. We  
might consider running workshops in other cities too. We have also  
done training specifically for teams on site as far as in Hong Kong  
and Europe


Feel free to add us to that list and get in contact with us for those  
are interested.


Cheers

Sent from my iPhone

On 27/04/2010, at 8:54, Marty Andrews  wrote:


Yes indeed.  I meant exactly what I said, but I could've mentioned
some more information that may have been useful.

Cogent has never provided Ruby training per se.  The Rails course that
we ran had a Ruby primer in it, but it only covered enough to be
useful in the context of the Rails training.  The content never became
large enough to be a Ruby course unto itself, because there was no
demand for that sort of material at the time.

-- Marty

On Tue, Apr 27, 2010 at 4:48 PM, Clifford Heath
 wrote:

Discussion has subtly moved from Mark's request for Ruby
training to Rails training.

Which was it you wanted, Mark?

Ruby is a much slower-moving target than Rails ;-)

Clifford Heath, Data Constellation.

On 27/04/2010, at 1:38 PM, Mark Mansour wrote:


Hello Ruby people,

I'm looking for a company (or individual) that does Ruby training  
and
would be prepared to come on site to teach it.  Is there anyone  
out there

who is doing this?

Mark

--
Mark Mansour
The easiest way to manage your Agile project
m...@agilebench.com
http://agilebench.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-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.


--
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.



--
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 
.




--
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.



Re: [rails-oceania] The Great Debate

2010-04-21 Thread Bodaniel Jeanes
Love this idea. Would love to do the haml debate if it hasn't happened
by the time I get back from Europe. I could run for either side.

One interesting idea is to encourage people to play devils advocate
and not just fight for their legitimate opinions. We might learn
something.

On Wednesday, April 21, 2010, Nathan de Vries  wrote:
> On 21/04/2010, at 12:40 PM, Gareth Townsend wrote:
>
> I'm stealing that name.
>
>
> The Sydney Opera House already has a Festival of Dangerous Ideas, so consider 
> it stolen.
>
>
> Cheers,
>
> Nathan
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-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.
>
>

-- 
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.



Re: [rails-oceania] Re: Hack nights, meet-ups and conferences @ home... interested?

2010-03-11 Thread Bodaniel Jeanes
Chris, this sounds like a great idea.

In Brisbane we have monthly group hack sessions that we call
ActionHack and it works well. A virtual version might be nice to try
as well. If it weren't for me going to Europe next week I'd definitely
participate, but if it takes off count me in for some sessions when in
a few months when I get back.

Cheers,
Bo

On Fri, Mar 12, 2010 at 2:36 PM, chrisjacob  wrote:
> Oh and incase any Windows devs out there were wondering - Livestream's
> Procaster is Windows supported (actually they've only been developing
> the Mac version for over a year - hence the Beta). 
> http://www.livestream.com/procaster
>
> On Mar 12, 2:50 pm, Luke Chadwick  wrote:
>> I'm in Sydney, but would love to be involved in more virtual events. What
>> technologies would you
>> suggest using?
>>
>> - Luke
>>
>> On 12 March 2010 14:46, Robert Gravina  wrote:
>>
>>
>>
>> > On 12 March 2010 11:25, chrisjacob  wrote:
>> > > Live video broadcasting. Stay at home. Connect Globally.
>>
>> > > Would love to connect with RoR devs in Brisbane, Sydney, Melbourne
>> > > Tokyo, New York, London. Is anyone else interested in helping to co-
>> > > ordinate virtual RoR events like hack nights, meet-ups and
>> > > conferences?
>>
>> > I'm based in Tokyo now and miss being involved in the roro
>> > community... Luckilly, I'm only 2h behind Sydney so I could be more
>> > involved if virtual events took place.
>>
>> > I'm not sure how it would work practically... say presentations were
>> > ustreamed etc... without the beer and the conversations, it's just not
>> > the same :)
>>
>> > But good to throw ideas like this out there,
>>
>> > Robert
>>
>> > --
>> > 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> >  legroups.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-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.
>
>

-- 
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.



Re: [rails-oceania] [Question] Form submission problem with utf-8 character set

2010-03-01 Thread Bodaniel Jeanes
We had this exact issue about 6 months ago. Ryan (Bigg) do you
remember what we ended up doing?

On Tue, Mar 2, 2010 at 11:53 AM, David  wrote:
> Hi all,
>
> I'm new to this forum and I'm not sure I am allowed to ask you this
> kind of question here.
> Let me know if this is a problem.
>
> I'm just wondering if any of you had similar problem like I am having.
> We just upgraded our Ruby(->1.9.1p376) and rails(->2.3.5).
> Since it has changed the way it handles encoding, we had some problems
> in handling utf-8 encoded character correctly.
> However, after a few tweaks everthing seemed working just fine with
> utf-8 encoding until we found this problem.
>
> The problem we have is although our application's default encoding is
> utf-8.
> When user submits a form then we get ASCII-8BIT encoded string
> parameter somehow.
> I believe we have set our meta tag correctly like below (it's haml)
>
>  %meta{'http-equiv'=>"content-type", :content=>"text/html;
> charset=UTF-8"}
>
> As far as my research goes, when subimts a form it will use the
> default charset of the web page.
> However, these are the encoding that I get.
>
> puts params[:name].encoding  =>  ASCII-8BIT   # name parameter is
> submitted by the form
> puts "some string".encoding  =>  UTF-8
> puts Encoding.default_external.name  =>  UTF-8
>
> I have no idea why this is happenning.
> Although I can convert it to UTF-8 by doing
> params[:name].force_encoding('UTF-8'), this isn't a pretty solution.
> There should be some way of fixing this or I am missing something.
> I googled for the last two days, but haven't got any solution.
>
> Have anyone had the similar problem?
> Your help will be very much appreciated.
>
>
> Regards,
>
> David
>
> --
> 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.
>
>

-- 
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.



Re: [rails-oceania] Re: Certification and training courses

2010-02-22 Thread Bodaniel Jeanes
> I think I was the only one to say anything other than 'certification is
> useless'.  My point was that it's useless to the existing Ruby community,
> but a newcomer to the language could use certification materials as a guide
> to self-study (like I once did back in my Java days).

This was my aim too. Though, Ben's additions to the discussion have
rung very strongly with me. If the material you need to cover to get
certified actually teaches you something, then that's the only place
for potential value as far as I can see, but that value may be very
small. Especially because of:

> Having looked at the Ruby Association curriculum more carefully, it looks so
> basic it's not worth reading the webpage let alone paying $150 for doing a
> test. Grab some books and write some code.

> [certification] can be obtained by successfully passing a test consisting of
> 50 multiple choice questions

multiple choice questions don't do anyone any favours. I would
actively distrust anyone who thought they knew Ruby because they could
answer some questions and more so of someone who thought that someone
else knew Ruby because of it.

It sounds to be that the only thing you'd end up being certified in
being able to answer questions "correctly"

> Come to the meetups and hack
> nights if you can and get exposure to the community.
> As others have pointed out, that's the best resume of all.

This is the real key.

-- 
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.



Re: [rails-oceania] Re: Certification and training courses

2010-02-21 Thread Bodaniel Jeanes
I agree that certification is a fairly unimpressive thing to have on
your resume as someone who would hire a Ruby developer.

However, being that we want to get more people into the community, a
community-built certification program might be the right approach. The
benefit here isn't increased chances of being hired, but just
increasing the number of people actively trying to reach a certain
absolute skill level in our profession. If certification provides a
milestone for learning developers to work towards then we get good
applicants to jobs as a side effect anyway.

Bo

On Sun, Feb 21, 2010 at 7:16 PM, Ben Schwarz  wrote:
> Good argument Josh, although I'm far less convinced. I'd look sideways
> at anyone who bothered with certification. Open source code speaks far
> greater volumes - After all, we're all supported by open source
> technology.
>
> Those who patch, extend and collaborate in such an environment are
> highly valuable.
> That being said, it won't cause any harm either ;)
>
>
> --
>
> On Feb 21, 8:11 pm, Josh Price  wrote:
>> I think the more balanced answer is that it depends on the context.
>>
>> Like others, I'm generally quite skeptical of certifications as a rule. In 
>> your case however, I think a certification may make a lot of sense.
>>
>> As a newcomer and non-programmer, a certification gives a potential employer 
>> some minimum understanding of your skillset. This is especially useful if 
>> you happen to be bootstrapping your Ruby career, without any commercial 
>> experience.
>>
>> For a lot of the regulars in the Ruby community and particularly those of us 
>> with much more experience, any kind of certification is absolutely useless.
>>
>> As a community, we are in the interesting position where current demand for 
>> Ruby and Rails skills far exceeds supply. Therefore we need to not dismiss 
>> the concept of training or certification just because it doesn't suit us in 
>> our current position. I believe it is potentially useful for those coming 
>> into our industry and community.
>>
>> Josh
>>
>> On 21/02/2010, at 5:39 PM, Navin wrote:
>>
>>
>>
>> > Hello,
>>
>> > As a newcomer to ruby and rails (and as someone working on
>> > rejuvenating a career as a programmer) I am trying to establish how
>> > the "Ruby Association Certified Ruby Programmer" accreditation (http://
>> >www.ruby-assn.org/en/certification.htm) is regarded by this
>> > community.
>>
>> > I am taking an online course with rubylearning.org (and finding it to
>> > be somewhat useful) and following Michael Hartl's excellent Rails
>> > Tutorial as he develops it (railstutorial.org) - also working through
>> > the canonical textbooks on the subject ... Thought I would try and get
>> > some feedback before considering the certification further.
>
> --
> 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.
>
>

-- 
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.



Re: [rails-oceania] An ultimatum on job postings.

2010-02-14 Thread Bodaniel Jeanes
To be honest, I don't think job posting in the list is that bad. What
is bad is the immature shit-flinging that follows by what I otherwise
consider to be a group of reasonable professionals. If you don't like
a job posting, just delete the post or mute the thread.

A guideline for job posting wouldn't be a bad idea, though. The
quality of posts could be improved, but the flame wars aren't helping
that, in the least.

Bo

On Mon, Feb 15, 2010 at 11:24 AM, Mark Wotton  wrote:
> I like seeing the job ads, and I think they're useful. A static set of
> guidelines for employers and recruiters should be enough. So, #2, I
> guess.
>
> mark
>
> On Mon, Feb 15, 2010 at 12:15 PM, Lachie  wrote:
>> Hi Roroans
>>
>> This list is getting lots of job ads. This is a good thing, endless
>> moaning from otherwise already employed members notwithstanding.
>>
>> However constant employment-advertisement related mudslinging is
>> wearing me down, and harming the already waning signal in this group.
>>
>> Since we can't work it out amicably amongst ourselves, here my
>> ultimatum. As a group of adults, please discuss in this thread which
>> of the following the community chooses:
>>
>> 1. A free job board under the roro moniker, with periodic
>> (daily/weekly) digests posted to the group. No job postings to the
>> group.
>> 2. Clearly articulated, consensual guidelines for job ads on the
>> group. People posting ads not conforming (in the eyes of the
>> moderators) are banned, but can improve the offending ad and be
>> unbanned.
>> 3. Me banning boring, job ads altogether and therefore the valueless
>> threads following each.
>>
>> Other suggestions are welcome, but by the end of the thread, we will
>> be synergising like mofos and implementing the decision taken here.
>> That means people wo/manning up, building/skinning/hosting whatever we
>> decide.
>>
>> go!
>>
>> :lachie
>> http://plus2.com.au
>> http://smartbomb.com.au
>> http://www.flickr.com/photos/lachie/
>>
>> --
>> 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.
>>
>>
>
>
>
> --
> A UNIX signature isn't a return address, it's the ASCII equivalent of a
> black velvet clown painting. It's a rectangle of carets surrounding a
> quote from a literary giant of weeniedom like Heinlein or Dr. Who.
>        -- Chris Maeda
>
> --
> 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.
>
>

-- 
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.



Re: [rails-oceania] Re: Vim for Rails Developers screencast

2010-02-04 Thread Bodaniel Jeanes
I've consistently found Synergy painfully buggy on OS X, though.
Teleport just works, and excellently. However, Synergy does allow
cross-platform pairing -- but that's not a requirement for us since we
all use macs.

Bo

On Fri, Feb 5, 2010 at 4:15 PM, Mark Wotton  wrote:
> Another option is using synergy from synergy2.sf.net - it lets you
> share a keyboard and mouse between two machines, and it preserves your
> settings. Thus, you could have two machines, one set to Dvorak and the
> other set to Qwerty, and just connect through synergy from one to the
> other.
>
> mark
> another cussed dvorak user
>
> On Fri, Feb 5, 2010 at 3:52 PM, Jack Chen  wrote:
>> As a Dvorak user, I found that it was always a hurdle to learn
>> something like vim since the keybindings weren't going to be the same
>> for me ('hjkl' etc), so I was interested when I saw the heading come
>> up when Bo and I were watching it at work.
>>
>> We pair program at work, so we did have to deal with the hurdle of
>> having conflicting keyboard layouts while pairing. I use Dvorak, Bo
>> uses Colemak and everyone who aren't as cool as us use QWERTY. There
>> has been plenty of times a pair would have attempted to do something
>> in the other layout and gotten somewhat angry because it didn't do
>> what they wanted.
>>
>> Our setup is we have our own laptops, and one is connected to the 30"
>> monitor. The person without the monitor uses Teleport to control the
>> main screen. As you may know, when you type through Teleport/Screen
>> Sharing, the keys appear in the keyboard layout of the target machine,
>> so that didn't work.
>>
>> I whipped up a quick SIMBL plugin named Telefrag (first stab at Cocoa
>> and SIMBL, actually) for Teleport which allow you to add custom
>> keyboard layouts between computers in Teleport. It's not very smart..
>> you have to symlink the keymap plist that you want to use (It comes
>> with all combinations for QWERTY, Dvorak and Colemak), so if you use
>> Dvorak and your pair is on QWERTY, you would symlink
>> Dvorak_QWERTY.plist to Keymap.plist, etc, but it's helped us overcome
>> this barrier while pair programming, increasing efficiency and
>> improving morale.
>>
>> Works on 10.5 fine, and there's a script you need to run to have it
>> work on Snow Leopard which I'll put up on the git repo if anyone needs
>> it.
>>
>> http://github.com/chendo/telefrag/tree
>>
>> On Feb 4, 3:58 am, Ben Orenstein  wrote:
>>> Hello Fellow Rails-ers,
>>>
>>> Pardon the shameless self-promotion, but I've just completed something I'm
>>> quite proud of and wanted to share.
>>>
>>> The project is a screencast called Vim For Rails
>>> Developers.
>>> I write Rails apps full-time using vim, and this video represents the best
>>> of what I've learned for getting stuff done quickly.
>>>
>>> If you're a vim-user writing Ruby or Rails code, I think you'll find a bunch
>>> of useful tips and plugins to make you more productive.  The product is $9,
>>> which I think easily pays for itself with just a few hours saved.
>>>
>>> This is my first venture into a new medium, so feedback is extra welcome!
>>>
>>> Thanks,
>>> 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-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.
>>
>>
>
>
>
> --
> A UNIX signature isn't a return address, it's the ASCII equivalent of a
> black velvet clown painting. It's a rectangle of carets surrounding a
> quote from a literary giant of weeniedom like Heinlein or Dr. Who.
>        -- Chris Maeda
>
> --
> 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.
>
>

-- 
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.



Re: [rails-oceania] Re: AASM slides

2010-01-29 Thread Bodaniel Jeanes
I didn't think so either but in the 2.3.5 source code I thought I saw
mention of ActiveRecord::StateMachine. However, I can't find it now so
perhaps I am wrong.

Nonetheless even in 2.x it makes sense to use StateMachine in order to
have a relatively easy upgrade path to Rails 3 (unless of course AASM
had features missing from SM that you needed).

Bo

On Fri, Jan 29, 2010 at 9:34 PM, Keith Pitt  wrote:
> I didn't think StateMachine used in Rails 3 had been back backported
> to 2.x?
>
> On Jan 29, 8:11 am, Bodaniel Jeanes  wrote:
>> Out of curiosity, why are people still using AASM?
>>
>> The StateMachine gem has a really clean and nice DSL and it is also
>> now built in to ActiveRecord (ActiveModel in Rails 3).
>>
>> Is there anything that AASM has that others don't?
>>
>> Bo
>>
>>
>>
>> On Fri, Jan 29, 2010 at 7:57 AM, Josh Bassett  wrote:
>> > Thanks for your talk last night Xav.
>> > I figured out a nice way to do transition locking with the AASM gem (which
>> > supersedes acts_as_state_machine).
>> > First, define a module in your lib dir named aasm_locking.rb (and require 
>> > it
>> > in environment.rb):
>>
>> > module AASM::Locking
>> >   def aasm_write_state(state)
>> >     transaction do
>> >       lock!
>> >       super(state)
>> >     end
>> >   end
>> > end
>>
>> > Then include it in your model state machine definition:
>>
>> > class Task < ActiveRecord::Base
>> >   include AASM
>> >   include AASM::Locking # include this for transition locking
>>
>> >   aasm_initial_state :pending
>>
>> >   aasm_state :pending
>> >   aasm_state :started
>> >   aasm_state :finished
>>
>> >   aasm_event :start do
>> >     transitions :from => :pending, :to => :started, :guard => :assigned?
>> >   end
>>
>> >   aasm_event :finish do
>> >     transitions :from => :started, :to => :finished
>> >   end
>>
>> > end
>>
>> > It's probably worth trying to get something like this into the AASM gem
>> > since it's not concurrency-safe out of the box.
>> > Josh
>>
>> > On 29/01/2010, at 7:51 AM, Xavier Shay wrote:
>>
>> > there wasn't much to them, but my slides from last night are on GH
>> >http://github.com/xaviershay/aasm-presentation
>>
>> > Uses schacon's new showoff code, which is totally rough but awesome.
>>
>> > --
>> > 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.
>>
>> > --
>> > 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.
>
> --
> 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.
>
>

-- 
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.



Re: [rails-oceania] AASM slides

2010-01-28 Thread Bodaniel Jeanes
Out of curiosity, why are people still using AASM?

The StateMachine gem has a really clean and nice DSL and it is also
now built in to ActiveRecord (ActiveModel in Rails 3).

Is there anything that AASM has that others don't?

Bo

On Fri, Jan 29, 2010 at 7:57 AM, Josh Bassett  wrote:
> Thanks for your talk last night Xav.
> I figured out a nice way to do transition locking with the AASM gem (which
> supersedes acts_as_state_machine).
> First, define a module in your lib dir named aasm_locking.rb (and require it
> in environment.rb):
>
> module AASM::Locking
>   def aasm_write_state(state)
>     transaction do
>       lock!
>       super(state)
>     end
>   end
> end
>
> Then include it in your model state machine definition:
>
> class Task < ActiveRecord::Base
>   include AASM
>   include AASM::Locking # include this for transition locking
>
>   aasm_initial_state :pending
>
>   aasm_state :pending
>   aasm_state :started
>   aasm_state :finished
>
>   aasm_event :start do
>     transitions :from => :pending, :to => :started, :guard => :assigned?
>   end
>
>   aasm_event :finish do
>     transitions :from => :started, :to => :finished
>   end
>
> end
>
> It's probably worth trying to get something like this into the AASM gem
> since it's not concurrency-safe out of the box.
> Josh
>
> On 29/01/2010, at 7:51 AM, Xavier Shay wrote:
>
> there wasn't much to them, but my slides from last night are on GH
> http://github.com/xaviershay/aasm-presentation
>
> Uses schacon's new showoff code, which is totally rough but awesome.
>
> --
> 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.
>
>
> --
> 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.
>

-- 
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.



Re: [rails-oceania] Using OAuth and Authlogic with Google Apps Premier for app login

2010-01-10 Thread Bodaniel Jeanes
This might help as well:
http://stackoverflow.com/questions/1896361/different-access-token-every-time-using-google-oauth-and-authlogic

A quick read suggests that the access token should be DIFFERENT with
each request, which might mean google calls this the oauth_nonce.
AFAIK Twitter actually implements OAuth slightly incorrectly to use it
as an authentication mechanism instead of an *authorisation* method as
intended.

None of this prevents you from doing the same, but it might mean
you'll need to look deeper into the original OAuth specs.

Good luck,
Bo

On Mon, Jan 11, 2010 at 4:20 PM, Bodaniel Jeanes  wrote:
> Apparently, the *response* to the request documented in that page
> contains your token and secret.
>
> On Mon, Jan 11, 2010 at 4:16 PM, Daniel N  wrote:
>> If you're not too fixed on authlogic you might try this one:
>> http://github.com/roman/warden_oauth (not mine) it seems quite general and
>> may work for you.
>> Cheers
>> Daniel
>>
>> On Mon, Jan 11, 2010 at 5:11 PM, Daryl Manning 
>> wrote:
>>>
>>> I've been thrashing on this for a couple of hours now and don't appear to
>>> be any closer to solving this. Getting twitter logins going was easy
>>> following the authlogic examples on github, but the real killer for our
>>> internal apps is allowing people to login via their GoogleAppsPE email and
>>> pass.
>>>
>>> This is basically the part that is giving me the problem, this addition in
>>> the UserSessions Controller :
>>> (using the basic twitter example)
>>>
>>> def self.oauth_consumer
>>>     OAuth::Consumer.new("TOKEN", "SECRET",
>>>     { :site=>"http://twitter.com";,
>>>   :authorize_url => "http://twitter.com/oauth/authenticate"; })
>>>  end
>>>
>>> I've tried a few things, but the main thing I'm trying to figure out is
>>> where you get Token and Secret from (is it from the Advanced Settings in
>>> Google Apps with "Manage OAuth domain key" ? That seems to give a secret,
>>> but would imply the key is the token here. Doesn't feel right.). And then
>>> there is the question of what the actual site and authorize URL are since
>>> effectively they are google addresses (not our normal domain, I think).
>>>
>>> Anyhow, bit stumped and have found the google docs quite confusing (and
>>> OAuth is new for me), so any help appreciated. Anyone got this working ? I'm
>>> also wondering if you need ot do something different than is obvious because
>>> of the Hybrid Login they've got or you need to use OpenID to get it working
>>> with their auth.
>>>
>>> Any help or pointers appreciated ! thanks!
>>> Daryl.
>>> PS> I've seen this
>>> http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html
>>> (thanks bjeanes!),
>>> but since anonymous regs are allowed, think this must not be the right
>>> track.
>>>
>>>
>>> --
>>> 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.
>>>
>>
>>
>> --
>> 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.
>>
>>
>
-- 
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.




Re: [rails-oceania] Using OAuth and Authlogic with Google Apps Premier for app login

2010-01-10 Thread Bodaniel Jeanes
Apparently, the *response* to the request documented in that page
contains your token and secret.

On Mon, Jan 11, 2010 at 4:16 PM, Daniel N  wrote:
> If you're not too fixed on authlogic you might try this one:
> http://github.com/roman/warden_oauth (not mine) it seems quite general and
> may work for you.
> Cheers
> Daniel
>
> On Mon, Jan 11, 2010 at 5:11 PM, Daryl Manning 
> wrote:
>>
>> I've been thrashing on this for a couple of hours now and don't appear to
>> be any closer to solving this. Getting twitter logins going was easy
>> following the authlogic examples on github, but the real killer for our
>> internal apps is allowing people to login via their GoogleAppsPE email and
>> pass.
>>
>> This is basically the part that is giving me the problem, this addition in
>> the UserSessions Controller :
>> (using the basic twitter example)
>>
>> def self.oauth_consumer
>>     OAuth::Consumer.new("TOKEN", "SECRET",
>>     { :site=>"http://twitter.com";,
>>   :authorize_url => "http://twitter.com/oauth/authenticate"; })
>>  end
>>
>> I've tried a few things, but the main thing I'm trying to figure out is
>> where you get Token and Secret from (is it from the Advanced Settings in
>> Google Apps with "Manage OAuth domain key" ? That seems to give a secret,
>> but would imply the key is the token here. Doesn't feel right.). And then
>> there is the question of what the actual site and authorize URL are since
>> effectively they are google addresses (not our normal domain, I think).
>>
>> Anyhow, bit stumped and have found the google docs quite confusing (and
>> OAuth is new for me), so any help appreciated. Anyone got this working ? I'm
>> also wondering if you need ot do something different than is obvious because
>> of the Hybrid Login they've got or you need to use OpenID to get it working
>> with their auth.
>>
>> Any help or pointers appreciated ! thanks!
>> Daryl.
>> PS> I've seen this
>> http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html
>> (thanks bjeanes!),
>> but since anonymous regs are allowed, think this must not be the right
>> track.
>>
>>
>> --
>> 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.
>>
>
>
> --
> 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.
>
>
-- 
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.




Re: [rails-oceania] Using OAuth and Authlogic with Google Apps Premier for app login

2010-01-10 Thread Bodaniel Jeanes
Darryl,

This page seems to have everything:
http://code.google.com/apis/accounts/docs/OAuth_ref.html#RequestToken

As far as I can tell the :site is http://google.com, the
:authorize_url is
https://www.google.com/accounts/OAuthGetRequestToken, the key is just
your domain. The secret might be what they call the signature.

Bo

On Mon, Jan 11, 2010 at 4:11 PM, Daryl Manning  wrote:
> I've been thrashing on this for a couple of hours now and don't appear to be
> any closer to solving this. Getting twitter logins going was easy following
> the authlogic examples on github, but the real killer for our internal apps
> is allowing people to login via their GoogleAppsPE email and pass.
>
> This is basically the part that is giving me the problem, this addition in
> the UserSessions Controller :
> (using the basic twitter example)
>
> def self.oauth_consumer
>     OAuth::Consumer.new("TOKEN", "SECRET",
>     { :site=>"http://twitter.com";,
>   :authorize_url => "http://twitter.com/oauth/authenticate"; })
>  end
>
> I've tried a few things, but the main thing I'm trying to figure out is
> where you get Token and Secret from (is it from the Advanced Settings in
> Google Apps with "Manage OAuth domain key" ? That seems to give a secret,
> but would imply the key is the token here. Doesn't feel right.). And then
> there is the question of what the actual site and authorize URL are since
> effectively they are google addresses (not our normal domain, I think).
>
> Anyhow, bit stumped and have found the google docs quite confusing (and
> OAuth is new for me), so any help appreciated. Anyone got this working ? I'm
> also wondering if you need ot do something different than is obvious because
> of the Hybrid Login they've got or you need to use OpenID to get it working
> with their auth.
>
> Any help or pointers appreciated ! thanks!
> Daryl.
> PS> I've seen this
> http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html
> (thanks bjeanes!),
> but since anonymous regs are allowed, think this must not be the right
> track.
>
>
> --
> 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.
>
>
-- 
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.




Re: [rails-oceania] Don't use Capistrano 2.5.11

2010-01-04 Thread Bodaniel Jeanes
Oh wow that's pretty serious. Thanks for the heads up Mike!

Bo

On Tue, Jan 5, 2010 at 11:16 AM, Mike Bailey  wrote:
> It looks like the new version of Capistrano is broken.
>
> I've not confirmed this for myself but it looks like 'cap deploy' now
> deletes the most recent release.
>
> I would strongly suggest not upgrading at this point.
>
> - Mike
>
>
> -- Forwarded message --
> From: Kyle Bragger 
> Date: Tue, Jan 5, 2010 at 10:10 AM
> Subject: [capistrano] Re: Deployments broken with 2.5.11
> To: Capistrano 
>
>
> Not sure if this is related or not:
> http://timothynjones.wordpress.com/2010/01/04/fatal-bug-in-capistrano-2-5-11/
>
> On Jan 4, 10:37 am, Ryan Waldron  wrote:
>> I've got the same problem here (deploying from MacOSX 10.5 to a Fedora Core
>> 5 (yes, that old) box).  I'm using the default timestamped release directory
>> names.  'ls -xt' works properly on FC5, and 'ls -x' reverses the order
>> (giving oldest first instead of newest first).
>>
>> Just FYI.
>>
>>
>>
>> On Sun, Jan 3, 2010 at 1:04 AM, Josh Perfetto  wrote:
>> > Hi,
>>
>> > Just upgraded to 2.5.11 and it seems a few things broke with
>> > deployments. deploy:migrate now attempts to execute the migration in
>> > the oldest release directory (rather than the newest), and
>> > deploy:cleanup deletes all but the oldest 5 directories, basically the
>> > opposite of what you want. It all works fine in 2.5.10. This is on
>> > Ubuntu 9.10.
>>
>> > -Josh
>>
>> > --
>> > * You received this message because you are subscribed to the Google Groups
>> > "Capistrano" group.
>> > * To post to this group, send email to capistr...@googlegroups.com
>> > * To unsubscribe from this group, send email to
>> > capistrano+unsubscr...@googlegroups.com> >  ps.com>For more options, visit this group at
>> >http://groups.google.com/group/capistrano?hl=en
>
> --
> * You received this message because you are subscribed to the Google
> Groups "Capistrano" group.
> * To post to this group, send email to capistr...@googlegroups.com
> * To unsubscribe from this group, send email to
> capistrano+unsubscr...@googlegroups.com For more options, visit this
> group at http://groups.google.com/group/capistrano?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-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.
>
>
>

--

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.




Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-27 Thread Bodaniel Jeanes
no, & is not the same as &@. One is a unary method, one is normal method

On Mon, Dec 28, 2009 at 5:09 PM, Nathan de Vries  wrote:
> On 23/12/2009, at 2:12 PM, Bodaniel Jeanes wrote:
>> You can't redefine &@ so it's actually just part of the language...
>
> If you're saying you'd like to redefine the bitwise AND operator, you
> can actually do that by aliasing :& to your own implementation.
> Classes like Fixnum, Bignum, Array/Set, Regexp and TrueClass/
> FalseClass have their own implementation, but there's nothing stopping
> you from overriding it or defining it to your own classes.
>
>
> Cheers,
>
> Nathan
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-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.
>
>
>

--

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.




Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
All good points. It still troubles me that ~@ and ~ are the same thing for
consistency's sake. Especially since much of the philosophical drive for
Ruby syntax *has* been about beauty and order. This seems a huge violation
of both to me.

Anyway I think we've cluttered people's inboxes enough with this topic
divergence :)

Bo

On Wed, Dec 23, 2009 at 4:56 PM, George  wrote:

> On Wed, Dec 23, 2009 at 1:27 AM, Bodaniel Jeanes  wrote:
>
>>
>> As for why no binary form, I figure it's just that with no built-in binary
>>> '~' defined on a core class, and no history of allowing operators that
>>> aren't used in core, they didn't feel the need for it.
>>>
>>
>> I still think that allowing people to choose both would have been better.
>> Why is there a unary form at all in that case? Why is that a valid method
>> name *at all* if not both? I don't know of a ~@ equivalent on a core class
>> either and it seems arbitrary to not allow for both.
>>
>
> ~@ is used in a few places in core: Bignum, Complex, Numeric Regexp, IPAddr
> from a quick grep around.  I think all the operator methods are defined
> somewhere in core, except perhaps '!' in 1.9.
>
> The DSL potential for both is pretty huge.
>>
>
> Could be, but the same could be said for many potential operators.  Where
> does one stop?
>
> Interestingly, I don't think much if any of ruby's grammar to date has been
> motivated by DSLs.  Not saying it's not a good reason, only that it'd be a
> bit of a philosophical leap from what I've seen.
>
>  --
> 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.
>

--

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.




Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
>
> On Wed, Dec 23, 2009 at 1:01 AM, Bodaniel Jeanes  wrote:
>
>> It's not really a bug I don't think, in that it's surely intentional.
>>> Thing is '~' is unlike the other unaries ('+' and '-') in that there is no
>>> binary form, and so ruby lets you define it with either '~' or '~@'.  Same
>>> thing with '!' in ruby 1.9, where it is also a unary.
>>>
>>
>> I am not sure that I understand this. How is making it defined as either ~
>> or ~@ intentional? What does it achieve exactly and what's the ...
>> intention, i suppose ... behind this? Specifically, why *isn't* there a
>> binary form (is that the right terminology -- doesn't seem right to me.
>> Let's call it a conventional form) of ~. I can see a few uses for it.
>>
>
> Intentional in that I can see the rationale for it: allow '~@' because it's
> a unary operator, allow '~' because there's no binary form, so why require
> the '@'?
>

Consistency and clarity are good enough reasons IMO.


> As for why no binary form, I figure it's just that with no built-in binary
> '~' defined on a core class, and no history of allowing operators that
> aren't used in core, they didn't feel the need for it.
>

I still think that allowing people to choose both would have been better.
Why is there a unary form at all in that case? Why is that a valid method
name *at all* if not both? I don't know of a ~@ equivalent on a core class
either and it seems arbitrary to not allow for both. The DSL potential for
both is pretty huge.

Bo

--

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.




Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
>
> It's not really a bug I don't think, in that it's surely intentional.
> Thing is '~' is unlike the other unaries ('+' and '-') in that there is no
> binary form, and so ruby lets you define it with either '~' or '~@'.  Same
> thing with '!' in ruby 1.9, where it is also a unary.
>

I am not sure that I understand this. How is making it defined as either ~
or ~@ intentional? What does it achieve exactly and what's the ...
intention, i suppose ... behind this? Specifically, why *isn't* there a
binary form (is that the right terminology -- doesn't seem right to me.
Let's call it a conventional form) of ~. I can see a few uses for it.


> What's more buggish is this:
>
> g...@crunch:~$ ruby -ve 'p :~@'
> ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9]
> :~
>
> Wooo...
>
> (It's fixed in 1.9.)
>

That's a strange one. I take it you discovered that by trying to do a send?
Curious what happens when you do 'p :"~@"'

Bo

--

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.




Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
I spent days trying to find other unary methods (working my way up the
number pad with shift held down etc) and didn't have much luck. But I did
find somethign which to me seemed like a bit of a bug:

Here I discovered unary methods: http://gist.github.com/92446
And here I gave up in frustration at my idea: http://gist.github.com/92968

On Wed, Dec 23, 2009 at 1:11 PM, David Lee wrote:

> and you're correct again, &@ and %@ are invalid function names.
>
>
>  --
> 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.
>

--

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.




Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
I thought so too but they actually aren't.

You can't redefine &@ so it's actually just part of the language &foo will
implicitly call #to_proc on foo but I haven't found a wy to change this by
defining any variant of the &@ method. Also with % I have not seen this used
in a unary fashion.

"%s!" % "foobar" # is calling #% on "%s" instance of String so it's really
the String#% method

Bo

On Wed, Dec 23, 2009 at 1:09 PM, David Lee wrote:

> Thanks, makes sense. I gather & is also an unary method (hence the magic
> #to_proc) and i'm guessing % for string formatting too. It's good to finally
> know the syntax ..
>
>
>  --
> 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.
>

--

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.




Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
David, this is called a unary method. AFAIK only +, -, and ~ can be defined
as unary methods.

This is how -3 works. It's actually calling the -@ method on 3

Bo

On Wed, Dec 23, 2009 at 1:01 PM, David Lee wrote:

> as a side note, in ruby 1.9 caller and several other File-related functions
> seem to return already-expanded paths; File.expand_path will cause these to
> end up with an extraneous leading pwd.
>
> ok, dirge looks like a nice pre-existing wheel. But please, someone explain
> this to me:
>
> def ~@
>  ...
> end
>
> where @ appears to be self ...
>
> http://github.com/joshbuddy/dirge/blob/master/lib/dirge.rb
>
>
>
> On Wed, Dec 23, 2009 at 1:53 PM, Chris Lloyd 
> wrote:
>
>> 2009/12/23 Josh Price 
>>
>>> That would be *awesome*.
>>>
>>
>> Here's an early Christmas present.
>>
>> module Kernel
>>   alias :plain_require :require
>>
>>def require(file)
>> if file.is_a?(String)
>>   plain_require
>> File.expand_path(File.join(File.dirname(caller.first.split(':').first),
>> file))
>> else
>>   plain_require file.to_s
>> end
>>   end
>> end
>>
>> require '../spec_helper'
>>
>> Though it's totally unusable because every other library depends on
>> require searching the load path. Just please don't give it back to me next
>> year.
>>
>> 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-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.
>>
>
>
>
> --
> cheers,
> David Lee
>
>  --
> 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.
>

--

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.




Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
You should be able to override it by simply defining Kernel#require

On Wed, Dec 23, 2009 at 12:04 PM, Andrew Grimm wrote:

> I think it may be possible to change require. Doesn't rubygems
> monkeypatch require, possibly using alias?
>
> Andrew
>
> On Wed, Dec 23, 2009 at 12:39 PM, Chris Lloyd
>  wrote:
> > 2009/12/23 Tim Lucas 
> >>
> >> It'd be nice if Kernel#require detected "./" or ".." at the start,
> >> similar to node.js
> >
> > I can only dream about require one day working like:
> > require :spec_helper# Uses $:
> > require '../spec_helper' # Path relative to __FILE__
> >
> > Unfortunately require is a global function so we can't override it like
> so:
> > def require(file)
> >   if file.is_a?(String)
> > # Would need to use caller hack here.
> > super(File.join(File.dirname(__FILE__), file.to_s))
> >   else
> > super(file)
> >   end
> > end
> > For those interested, look at lines 7380 & 8389 of eval.c. (1.8.7)
> > --
> > 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-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.
> >
>
> --
>
> 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.
>
>
>

--

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.




Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
I think it could be solved even easier than this. If we can agree that the
use case is always where the "spec_helper" or equivalent file is always in
an ancestor directory then all bootr has to do is look in the current dir,
or the parent, or the grand parent, etc. Eventually it will find the file
you are trying to boot with. This is much how rake does it internally
anyway.

RSpec could come with a mini gem called "spec_booter" for example. Or you
have a generic one that is in ruby or a gem that allows you to pass a string
(or a Regex, Andrew) for the file to boot with.

Then it becomes:

require 'bootr'
boot /(spec|test)_helper/

And it will work for any test or spec infinitely deep under the helper file.

On Wed, Dec 23, 2009 at 10:51 AM, Andrew Grimm wrote:

> I'd be tempted to have a file listing which subdirectories need to be
> added to the path (something like a file called paths.rb listing ./bin
> , ./lib , ./spec_helper) and then have
>
> require 'bootr'
> boot_paths 'paths'
> boot 'spec_helper'
>
> Also, should boot be allowed to accept regular expressions?
>
> Andrew
>
> On Wed, Dec 23, 2009 at 11:28 AM, David Lee
>  wrote:
> > best case scenario (assuming a gem which installs to say site_ruby),
> > something like:
> >
> > require 'bootr'
> > boot '../spec_helper'
> >
> >
> > or,
> > require 'bootr'
> > load_path '..'
> > require 'spec_helper'
> >
> > which is - i think - an improvement. Not an astonishing one, but it'd be
> > something.
> >
> > If it were possible to automatically include a library every time ruby
> > loads, it'd be better still, but I don't think that's the case (?).
> >
> > --
> >
> > 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.
> >
>
> --
>
> 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.
>
>
>

--

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.




Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
Yeah, nor do I but willing to hear out David's ideas. Some of the best
things in life are things you didn't think you needed so you never know. I
always liked _why's patch for file loading. Unfortunately i don't hink all
of string should have / defined like that. There needs to be a subclass
called PathString or something which is returned by String in some scenarios



On Wed, Dec 23, 2009 at 10:35 AM, Julio Cesar Ody wrote:

> Or the old one from _why
>
> class String; def /(n) File.join(self, n) end; end
> require File.dirname(__FILE__)/'..'/'spec_helper'
>
> Though I personally don't think it's that much of a big deal.
>
>
> On Wed, Dec 23, 2009 at 11:28 AM, David Lee
>  wrote:
> > best case scenario (assuming a gem which installs to say site_ruby),
> > something like:
> >
> > require 'bootr'
> > boot '../spec_helper'
> >
> >
> > or,
> > require 'bootr'
> > load_path '..'
> > require 'spec_helper'
> >
> > which is - i think - an improvement. Not an astonishing one, but it'd be
> > something.
> >
> > If it were possible to automatically include a library every time ruby
> > loads, it'd be better still, but I don't think that's the case (?).
> >
> > --
> >
> > 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.
> >
>
> --
>
> 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.
>
>
>

--

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.




Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
What would this look like in the context of your original use case.

Instead of the huge require line inside your spec file, would would be there
instead? Spec files are always in diff folders so the init file would still
need to be found from their perspective anyway. Maybe I've missed
something...

Bo

On Wed, Dec 23, 2009 at 10:18 AM, David Lee wrote:

> yeah, you're correct, I was just posting a correction to myself. You get
> the path relative to the pwd - which would let us do something like this:
>
> require 'fileutils'
> module Kernel
>
>   def boot relpath
> caller_file = File.join FileUtils.pwd, caller[0].split(/:in/)[0]
> caller_dir  = File.dirname caller_file
> target = File.expand_path File.join(caller_dir, relpath)
> require target
>   end
>
>   def libs *relpaths
> caller_file = File.join FileUtils.pwd, caller[0].split(/:in/)[0]
> caller_dir  = File.dirname caller_file
> paths.flatten.each do |path|
>   $:.unshift File.expand_path(File.join(caller_dir, path))
> end
>   end
> end
>
> If we could bung this in site_ruby or a gem, it might be something ...
>
>
>
> On Wed, Dec 23, 2009 at 11:15 AM, Bodaniel Jeanes  wrote:
>
>> Huh? You do get the full path when you call `caller`. e.g.:
>>
>> ["/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/core_ext/instance_exec.rb:48:in
>> `instance_exec'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/core_ext/instance_exec.rb:48:in
>> `cucumber_instance_exec'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/core_ext/instance_exec.rb:69:in
>> `cucumber_run_with_backtrace_filtering'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/core_ext/instance_exec.rb:36:in
>> `cucumber_instance_exec'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/rb_support/rb_step_definition.rb:55:in
>> `invoke'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/step_match.rb:24:in
>> `invoke'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/step_invocation.rb:58:in
>> `invoke'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/step_invocation.rb:37:in
>> `accept'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:99:in
>> `visit_step'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:164:in
>> `broadcast'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:98:in
>> `visit_step'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/step_collection.rb:15:in
>> `accept'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/step_collection.rb:14:in
>> `each'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/step_collection.rb:14:in
>> `accept'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:93:in
>> `visit_steps'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:164:in
>> `broadcast'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:92:in
>> `visit_steps'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/scenario.rb:45:in
>> `accept'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/step_mother.rb:195:in
>> `before_and_after'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/scenario.rb:43:in
>> `accept'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/scenario.rb:98:in
>> `with_visitor'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/scenario.rb:37:in
>> `accept'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:51:in
>> `visit_feature_element'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:164:in
>> `broadcast'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:50:in
>> `visit_feature_element'",
>> "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/feature.rb:25:in
>> `a

Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
Huh? You do get the full path when you call `caller`. e.g.:

["/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/core_ext/instance_exec.rb:48:in
`instance_exec'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/core_ext/instance_exec.rb:48:in
`cucumber_instance_exec'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/core_ext/instance_exec.rb:69:in
`cucumber_run_with_backtrace_filtering'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/core_ext/instance_exec.rb:36:in
`cucumber_instance_exec'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/rb_support/rb_step_definition.rb:55:in
`invoke'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/step_match.rb:24:in
`invoke'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/step_invocation.rb:58:in
`invoke'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/step_invocation.rb:37:in
`accept'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:99:in
`visit_step'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:164:in
`broadcast'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:98:in
`visit_step'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/step_collection.rb:15:in
`accept'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/step_collection.rb:14:in
`each'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/step_collection.rb:14:in
`accept'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:93:in
`visit_steps'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:164:in
`broadcast'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:92:in
`visit_steps'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/scenario.rb:45:in
`accept'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/step_mother.rb:195:in
`before_and_after'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/scenario.rb:43:in
`accept'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/scenario.rb:98:in
`with_visitor'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/scenario.rb:37:in
`accept'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:51:in
`visit_feature_element'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:164:in
`broadcast'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:50:in
`visit_feature_element'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/feature.rb:25:in
`accept'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/feature.rb:24:in
`each'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/feature.rb:24:in
`accept'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:20:in
`visit_feature'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:164:in
`broadcast'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:19:in
`visit_feature'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/features.rb:29:in
`accept'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/features.rb:17:in
`each'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/features.rb:17:in
`each'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/features.rb:28:in
`accept'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:14:in
`visit_features'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:164:in
`broadcast'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/ast/tree_walker.rb:13:in
`visit_features'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/cli/main.rb:55:in
`execute!'",
"/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/../lib/cucumber/cli/main.rb:24:in
`execute'", "/Library/Ruby/Gems/1.8/gems/cucumber-0.4.3/bin/cucumber:8",
"/usr/bin/cucumber:19:in `load'", "/usr/bin/cucumber:19"]


On Wed, Dec 23, 2009 at 10:01 AM, David Lee wrote:

> yeah, but you can't get the path, which defeats the purpose.
>
> On a slightly related note, here's a pretty good explanation of autoload,
> which I didn't really know about, and which solves a different problem not
> uncommon outside of rails projects:
>
> http://talklikeaduck.denhaven2.com/2009/04/06/all-that-you-might-require
>
>
>
>  --
> 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-

Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
Oh and it's currently "untitled" because I ran it from Textmate without
saving the file. That would be the filename usually

On Wed, Dec 23, 2009 at 9:55 AM, Bodaniel Jeanes  wrote:

> You can get the file of a calling function by calling the "caller" method:
>
> def a
>   b
> end
>
> def b
>   c
> end
>
> def c
>   p caller
> end
>
> a # => ["untitled:6:in `b'", "untitled:2:in `a'", "untitled:13"]
>
>
> But I think I read it was horribly slow so you might want to benchmark it a
> bit before relying on it
>
> Bo
>
> On Wed, Dec 23, 2009 at 9:49 AM, David Lee 
> wrote:
>
>> So, as per the subject,
>>
>> require File.join(File.dirname(__FILE__), '../spec_helper')
>>
>> Anyone ever typed that bad boy?
>>
>> This nasty little idiom is often the first thing that gets added to spec
>> or library. I'd like to be able to do away with it.
>>
>> It's easy enough to write a nice little path-massaging function in an
>> init.rb, but that sucker usually has to be required by other files in order
>> to be loaded.
>>
>> I had one idea whose implementation was thwarted by the fact there's no
>> way I could determine to get the __FILE___ of a calling function, and at
>> this point I've pretty much surrendered.
>>
>> Unless I'm either missing something very obvious, this is something really
>> be in ruby core. Can anyone shed some light on why it isn't, or how to
>> improve on it?
>>
>> --
>> cheers,
>> David Lee
>>
>> --
>> 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.
>>
>
>

--

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.




Re: [rails-oceania] require File.join(File.dirname(__FILE__), 'foo')

2009-12-22 Thread Bodaniel Jeanes
You can get the file of a calling function by calling the "caller" method:

def a
  b
end

def b
  c
end

def c
  p caller
end

a # => ["untitled:6:in `b'", "untitled:2:in `a'", "untitled:13"]


But I think I read it was horribly slow so you might want to benchmark it a
bit before relying on it

Bo

On Wed, Dec 23, 2009 at 9:49 AM, David Lee wrote:

> So, as per the subject,
>
> require File.join(File.dirname(__FILE__), '../spec_helper')
>
> Anyone ever typed that bad boy?
>
> This nasty little idiom is often the first thing that gets added to spec or
> library. I'd like to be able to do away with it.
>
> It's easy enough to write a nice little path-massaging function in an
> init.rb, but that sucker usually has to be required by other files in order
> to be loaded.
>
> I had one idea whose implementation was thwarted by the fact there's no way
> I could determine to get the __FILE___ of a calling function, and at this
> point I've pretty much surrendered.
>
> Unless I'm either missing something very obvious, this is something really
> be in ruby core. Can anyone shed some light on why it isn't, or how to
> improve on it?
>
> --
> cheers,
> David Lee
>
> --
> 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.
>

--

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.




Re: [rails-oceania] Weekend Coding Brunches...

2009-12-09 Thread Bodaniel Jeanes
I will definitely be up for that. (Brisbane though)

On Thu, Dec 10, 2009 at 10:26 AM, Andrew Grimm wrote:

> I really liked the jelly last year the Friday before Christmas. I
> wasn't actually working that day, so I was free to play "achievement
> unlocked".
>
> Andrew
>
> On Thu, Dec 10, 2009 at 11:09 AM, Jonathan Clarke
>  wrote:
> > Anyone up for some coding brunches over the Christmas holidays?  Meet
> > up in the morning on a weekend, grab a bite to eat, and hack away for
> > a few hours?
> >
> > Jonathan
> >
> > --
> >
> > 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.
> >
> >
> >
>
> --
>
> 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.
>
>
>

--

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.




Re: [rails-oceania] Re: Fish Shell

2009-12-03 Thread Bodaniel Jeanes
It seems to be an OS X problem but yes, benhosking's fork does indeed fix
it.

On Fri, Dec 4, 2009 at 5:58 AM, Lachie  wrote:

> The almighty Hoskings fork solves this http://github.com/benhoskings/fish
>
> Though its not happening on my new machine on "official" fish
>
> On Fri, Dec 4, 2009 at 6:56 AM, Steve Hoeksema  wrote:
> > It does for me, and can take up to 10 seconds to start a new terminal.
> > I haven't yet figured out why.
> >
> > On Wed, Dec 2, 2009 at 2:02 PM, Brett  wrote:
> >> Every once in awhile, fish shell seems to hang for a few seconds like
> >> it's indexing something.  Does that happen to anybody else?
> >>
> >> Cheers
> >>
> >> Brett
> >>
> >> On Dec 2, 12:26 pm, Ben Hoskings  wrote:
> >>> Yeah I can't stand that. I'm all for neatness but replacing 2> with ^
> >>> is a perfect example of a change for change's sake, I think. And it
> >>> breaks the usage in git which makes it worse.
> >>>
> >>> I reckon I'll probably change it back in my fork. :)
> >>>
> >>> - Ben
> >>>
> >>> Sent from my iPhone
> >>>
> >>> On 02/12/2009, at 4:42 AM, Ian White  wrote:
> >>>
> >>> > I have a minor gripe with fish, that is probably a total n00b one.
> >>> > Otherwise I'm enjoying it immensley
> >>>
> >>> > git reset HEAD^  # <= fish thinks the caret is a special token
> >>>
> >>> > git reset HEAD\^ works, but it feels icky.  In a few days it might
> >>> > not I guess
> >>>
> >>> > Cheers,
> >>> > Ian
> >>>
> >>> > On 1 Dec 2009, at 02:52, David Lee wrote:
> >>>
> >>> >> I don't really use fish much, but I find the equivalents of these
> >>> >> invaluable in zsh:
> >>>
> >>> >> function gemcd
> >>> >>   cd $argv[1]
> >>> >> end
> >>>
> >>> >> function gemedit
> >>> >>   mate $argv[1]
> >>> >> end
> >>>
> >>> >> complete -x -c gemcd -a"(__fish_complete_directories ($GEMPATH))"
> >>> >> complete -x -c gemedit -a"(__fish_complete_directories ($GEMPATH))"
> >>>
> >>> >> On Tue, Dec 1, 2009 at 1:38 PM, Josh Price 
> wrote:
> >>> >> Thanks for the responses.
> >>>
> >>> >> They've confirmed my suspicion that fish's 'features' are many, and
> >>> >> deeply subtle as opposed to being obvious and easily expressible.
> >>>
> >>> >> I like it enough out of the box to persist with the mild pain of
> >>> >> switching.
> >>>
> >>> >> That said, if anyone has any more tips and tricks, I'm keen to hear
> >>> >> them!
> >>>
> >>> >> Cheers,
> >>> >> Josh
> >>>
> >>> >> On 01/12/2009, at 10:24, Lachie  wrote:
> >>>
> >>> >> > I think that the core of fish is that it has user experience as a
> >>> >> > priority.
> >>>
> >>> >> > "Traditional shells" (sh, bash, ksh) came from being scripting
> >>> >> > languages and job control systems with terminal based "UI"
> evolving
> >>> >> > out of electric typewriters rigged to serial lines.
> >>>
> >>> >> > "Shells" like irb or rush aren't shells in the sense we're talking
> >>> >> > about.
> >>>
> >>> >> > Fish (and zsh i suspect, tho I've not used it) fundamentally
> >>> >> accepts
> >>> >> > that its primary use will be by apes at terminals. Design
> decisions
> >>> >> > are therefore made with us in mind, rather like a usable web or
> >>> >> > desktop app.
> >>>
> >>> >> > For example the colours used everywhere in fish aren't just for
> >>> >> > prettiness; they're a considered, legitimate feature which help
> you
> >>> >> > work more quickly and robustly.
> >>>
> >>> >> > For more on fish's tenets readhttp://
> fishshell.org/user_doc/design.html
> >>>
> >>> >> 

Re: [rails-oceania] Fish Shell

2009-12-01 Thread Bodaniel Jeanes
with out the context of knowing that 2 represents the io stream #2, the 2 is
completely random and looks more or less like a typo.

^ is analogous to < and > in that it is directing (key word here as those
symbols can be used as directions) output/input somewhere.

On Wed, Dec 2, 2009 at 4:33 PM, Pat Allan  wrote:

> Standards and such aside - I don't actually see how ^ is any more
> intuitive than 2>.
>
> --
> Pat
>
> On 02/12/2009, at 5:30 PM, Bodaniel Jeanes wrote:
>
> > Well, yes, I understand the context and reason for 2>, doesn't mean
> > it's the ideal from a usability standpoint. Fish is about being
> > friendly, not standard. With that in mind ^ is nicer and better.
> > These days, sysadmins are not the only ones using shells. I know
> > designers who use it, and something like ^ is much more approachable
> > and comprehendible without that extra context. That, imo, is what
> > usable and intuitive software is about -- needing as little context
> > as possible.
> >
> > Bo
> >
> > On Wed, Dec 2, 2009 at 3:06 PM, Nathan de Vries 
> > wrote:
> > On 02/12/2009, at 3:30 PM, Bodaniel Jeanes wrote:
> > > 2> is arbitrary to begin with and I know that at least I have
> > > trouble remembering the syntax at times.
> >
> > What do you mean by "arbitrary"? Everything is arbitrary if someone
> > designed how it works, it just depends on how much context you've got
> > with regards to the design decisions.
> >
> > In the case of C shell derivatives, the rules are pretty simple if you
> > know what a file descriptor is:
> >
> > command 1> file# redirect stdout to file
> > command > file  # equivalent to above (fd 1 is default)
> > command 2> file# redirect stderr to file
> > command 1>&2> file # redirect stdout to stderr to file
> > command >&2> file   # equivalent to above
> > command &> file# shorthand equivalent to above
> >
> > Once you factor in other C shell features related to redirection, it
> > all starts to look a lot less arbitrary than you suggest.
> >
> >
> > Cheers,
> >
> > Nathan
> >
> > --
> >
> > You received this message because you are subscribed to the Google
> > Groups "Ruby or Rails Oceania" group.
> > To post to this group, send email to rails-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
> > .
> >
> >
> >
> >
> > --
> >
> > 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
> > .
>
> --
>
> 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.
>
>
>

--

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.




Re: [rails-oceania] Fish Shell

2009-12-01 Thread Bodaniel Jeanes
Well, yes, I understand the context and reason for 2>, doesn't mean it's the
ideal from a usability standpoint. Fish is about being friendly, not
standard. With that in mind ^ is nicer and better. These days, sysadmins are
not the only ones using shells. I know designers who use it, and something
like ^ is much more approachable and comprehendible without that extra
context. That, imo, is what usable and intuitive software is about --
needing as little context as possible.

Bo

On Wed, Dec 2, 2009 at 3:06 PM, Nathan de Vries  wrote:

> On 02/12/2009, at 3:30 PM, Bodaniel Jeanes wrote:
> > 2> is arbitrary to begin with and I know that at least I have
> > trouble remembering the syntax at times.
>
> What do you mean by "arbitrary"? Everything is arbitrary if someone
> designed how it works, it just depends on how much context you've got
> with regards to the design decisions.
>
> In the case of C shell derivatives, the rules are pretty simple if you
> know what a file descriptor is:
>
> command 1> file# redirect stdout to file
> command > file  # equivalent to above (fd 1 is default)
> command 2> file# redirect stderr to file
> command 1>&2> file # redirect stdout to stderr to file
> command >&2> file   # equivalent to above
> command &> file# shorthand equivalent to above
>
> Once you factor in other C shell features related to redirection, it
> all starts to look a lot less arbitrary than you suggest.
>
>
> Cheers,
>
> Nathan
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-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.
>
>
>

--

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.




Re: [rails-oceania] Fish Shell

2009-12-01 Thread Bodaniel Jeanes
It *is* more usable. Usable software should be intuitive. There is nothing
intuitive about 2>. It's not about saving the characters, it's about
re-thinking *why* things are the way they are. Fish changes lots of
"standard" things, that's what makes it useful IMO. They've made a design
decision to implement things based on their value, not on the fact that it
is standard. It's part of the design philosophy for fish

On Wed, Dec 2, 2009 at 2:43 PM, Ben Hoskings  wrote:

> On Wed, Dec 2, 2009 at 3:30 PM, Bodaniel Jeanes  wrote:
>
>> I completely disagree. That's a great example of a change for usability's
>>> sake. <, >, ^ is a consistent way of redirecting io streams. 2> is arbitrary
>>> to begin with and I know that at least I have trouble remembering the syntax
>>> at times. Doesn't break usage in git, it just changes it, but that's just
>>> because git chooses to use ^, and it's a problem easily solved.
>>>
>>
> It's nothing to do with usability—typing ^ instead of 2> isn't any more
> "usable". It's just obsessive tweaking with no regard for convention.
>
> 2> has been the standard for decades. Saving one character isn't worth
> changing all that.
>
> — ben_h
>
>  --
> 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.
>

--

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.




Re: [rails-oceania] Fish Shell

2009-12-01 Thread Bodaniel Jeanes
>
> Yeah I can't stand that. I'm all for neatness but replacing 2> with ^ is a
> perfect example of a change for change's sake, I think. And it breaks the
> usage in git which makes it worse.
>

I completely disagree. That's a great example of a change for usability's
sake. <, >, ^ is a consistent way of redirecting io streams. 2> is arbitrary
to begin with and I know that at least I have trouble remembering the syntax
at times. Doesn't break usage in git, it just changes it, but that's just
because git chooses to use ^, and it's a problem easily solved.


> I reckon I'll probably change it back in my fork. :)
>

Please don't.

--

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.




Re: [rails-oceania] Fish Shell

2009-12-01 Thread Bodaniel Jeanes
by all means be pedantic, i was completely wrong. It's been so long since I
used bash consistently i always forget the stderr redirection anyway. But
yes I still like the symmetry that fish provides for output.

On Wed, Dec 2, 2009 at 8:27 AM, Lachie  wrote:

> On Wed, Dec 2, 2009 at 8:35 AM, Bodaniel Jeanes  wrote:
> > git reset 'HEAD^' also works or you could do 'git reset HEAD~1' but yes
> that
> > bothered me at first too.
> > For those that don't know ^ is the stderr redirection character. Instead
> of
> > having ugly 2>&1/dev/null or whatever it is, you just do ^/dev/null. It's
> > nice because stdin, stdout, stderr are respectively <, >, ^. Works well
> IMO
>
> sorry to be pedantic Bo, but ^ is the fishquivalent of 2>
> (redirect filehandle 2 (stderr))
>
> ^&1 is thus the fishquivalent of 2>&1
> (redirect filehandle 2 and make filehandle 1 (stdout) be 2)
>
> And Ian, I totally agree ^ blows with HEAD^ (*cough*). It'd be nice to
> have a way to switch it off, or make it context sensitive (switch off
> when command is git?)
>
> > On Wed, Dec 2, 2009 at 3:42 AM, Ian White  wrote:
> >>
> >> I have a minor gripe with fish, that is probably a total n00b one.
> >>  Otherwise I'm enjoying it immensley
> >> git reset HEAD^  # <= fish thinks the caret is a special token
> >> git reset HEAD\^ works, but it feels icky.  In a few days it might not I
> >> guess
> >> Cheers,
> >> Ian
> >>
> >> On 1 Dec 2009, at 02:52, David Lee wrote:
> >>
> >> I don't really use fish much, but I find the equivalents of these
> >> invaluable in zsh:
> >>
> >> function gemcd
> >>   cd $argv[1]
> >> end
> >>
> >> function gemedit
> >>   mate $argv[1]
> >> end
> >>
> >> complete -x -c gemcd -a"(__fish_complete_directories ($GEMPATH))"
> >> complete -x -c gemedit -a"(__fish_complete_directories ($GEMPATH))"
> >>
> >>
> >>
> >> On Tue, Dec 1, 2009 at 1:38 PM, Josh Price  wrote:
> >>>
> >>> Thanks for the responses.
> >>>
> >>> They've confirmed my suspicion that fish's 'features' are many, and
> >>> deeply subtle as opposed to being obvious and easily expressible.
> >>>
> >>> I like it enough out of the box to persist with the mild pain of
> >>> switching.
> >>>
> >>> That said, if anyone has any more tips and tricks, I'm keen to hear
> >>> them!
> >>>
> >>> Cheers,
> >>> Josh
> >>>
> >>>
> >>> On 01/12/2009, at 10:24, Lachie  wrote:
> >>>
> >>> > I think that the core of fish is that it has user experience as a
> >>> > priority.
> >>> >
> >>> > "Traditional shells" (sh, bash, ksh) came from being scripting
> >>> > languages and job control systems with terminal based "UI" evolving
> >>> > out of electric typewriters rigged to serial lines.
> >>> >
> >>> > "Shells" like irb or rush aren't shells in the sense we're talking
> >>> > about.
> >>> >
> >>> > Fish (and zsh i suspect, tho I've not used it) fundamentally accepts
> >>> > that its primary use will be by apes at terminals. Design decisions
> >>> > are therefore made with us in mind, rather like a usable web or
> >>> > desktop app.
> >>> >
> >>> > For example the colours used everywhere in fish aren't just for
> >>> > prettiness; they're a considered, legitimate feature which help you
> >>> > work more quickly and robustly.
> >>> >
> >>> > For more on fish's tenets read
> >>> > http://fishshell.org/user_doc/design.html
> >>> >
> >>> > On Tue, Dec 1, 2009 at 10:07 AM, Bodaniel Jeanes 
> >>> > wrote:
> >>> >> To actually be helpful, here are some of the features that make me
> >>> >> love Fish
> >>> >> (yes you can get some of these with config in other shells, but
> >>> >> this is all
> >>> >> out of the box):
> >>> >> * Directories are executable (type in it's name, and it will CD to
> it
> >>> >> automatically)
> >>> >> ** Combine this with $CDPATH and I ca

Re: [rails-oceania] Fish Shell

2009-12-01 Thread Bodaniel Jeanes
git reset 'HEAD^' also works or you could do 'git reset HEAD~1' but yes that
bothered me at first too.

For those that don't know ^ is the stderr redirection character. Instead of
having ugly 2>&1/dev/null or whatever it is, you just do ^/dev/null. It's
nice because stdin, stdout, stderr are respectively <, >, ^. Works well IMO

On Wed, Dec 2, 2009 at 3:42 AM, Ian White  wrote:

> I have a minor gripe with fish, that is probably a total n00b one.
>  Otherwise I'm enjoying it immensley
>
> git reset HEAD^  # <= fish thinks the caret is a special token
>
> git reset HEAD\^ works, but it feels icky.  In a few days it might not I
> guess
>
> Cheers,
> Ian
>
>
> On 1 Dec 2009, at 02:52, David Lee wrote:
>
> I don't really use fish much, but I find the equivalents of these
> invaluable in zsh:
>
> function gemcd
>   cd $argv[1]
> end
>
> function gemedit
>   mate $argv[1]
> end
>
> complete -x -c gemcd -a"(__fish_complete_directories ($GEMPATH))"
> complete -x -c gemedit -a"(__fish_complete_directories ($GEMPATH))"
>
>
>
> On Tue, Dec 1, 2009 at 1:38 PM, Josh Price  wrote:
>
>> Thanks for the responses.
>>
>> They've confirmed my suspicion that fish's 'features' are many, and
>> deeply subtle as opposed to being obvious and easily expressible.
>>
>> I like it enough out of the box to persist with the mild pain of
>> switching.
>>
>> That said, if anyone has any more tips and tricks, I'm keen to hear
>> them!
>>
>> Cheers,
>> Josh
>>
>>
>> On 01/12/2009, at 10:24, Lachie  wrote:
>>
>> > I think that the core of fish is that it has user experience as a
>> > priority.
>> >
>> > "Traditional shells" (sh, bash, ksh) came from being scripting
>> > languages and job control systems with terminal based "UI" evolving
>> > out of electric typewriters rigged to serial lines.
>> >
>> > "Shells" like irb or rush aren't shells in the sense we're talking
>> > about.
>> >
>> > Fish (and zsh i suspect, tho I've not used it) fundamentally accepts
>> > that its primary use will be by apes at terminals. Design decisions
>> > are therefore made with us in mind, rather like a usable web or
>> > desktop app.
>> >
>> > For example the colours used everywhere in fish aren't just for
>> > prettiness; they're a considered, legitimate feature which help you
>> > work more quickly and robustly.
>> >
>> > For more on fish's tenets read
>> http://fishshell.org/user_doc/design.html
>> >
>> > On Tue, Dec 1, 2009 at 10:07 AM, Bodaniel Jeanes 
>> > wrote:
>> >> To actually be helpful, here are some of the features that make me
>> >> love Fish
>> >> (yes you can get some of these with config in other shells, but
>> >> this is all
>> >> out of the box):
>> >> * Directories are executable (type in it's name, and it will CD to it
>> >> automatically)
>> >> ** Combine this with $CDPATH and I can type in a project name from
>> >> any shell
>> >> to be taken to that directory
>> >> * Global variables (shared across sessions)
>> >> * Tab completion is on speed (look up known_hosts for SSH command,
>> >> for
>> >> instance)
>> >> * Functions can be registered to events (such as when the value of
>> >> a certain
>> >> ENV variable changes, when the prompt is about to be displayed, or
>> >> when a
>> >> command look up failed).
>> >> See
>> http://bjeanes.com/2009/10/07/using-fish-shells-event-system-to-behave-like-method-missing
>> >> for an example
>> >> * variables can be arrays (try running: echo $PATH[1]
>> >> * better shell expansion (try ls -1 */**/*.log or something)
>> >> That's all I can think of right now
>> >>
>> >> On Tue, Dec 1, 2009 at 9:00 AM, Lachie  wrote:
>> >>>
>> >>> completions are OFF THE HOOK
>> >>>
>> >>> type ls
>> >>>
>> >>> on my machine i get back
>> >>>
>> >>> ls (List directory contents)  lsip(sudo lsof | grep -i
>> >>> ipv4 )  lsof   (List open files)
>> >>> lsbom  (List contents of a bom file)  lsm  (Latent Semantic Mapping
>> >>> to

Re: [rails-oceania] Fish Shell

2009-11-30 Thread Bodaniel Jeanes
To actually be helpful, here are some of the features that make me love Fish
(yes you can get some of these with config in other shells, but this is all
out of the box):

* Directories are executable (type in it's name, and it will CD to it
automatically)
** Combine this with $CDPATH and I can type in a project name from any shell
to be taken to that directory
* Global variables (shared across sessions)
* Tab completion is on speed (look up known_hosts for SSH command, for
instance)
* Functions can be registered to events (such as when the value of a certain
ENV variable changes, when the prompt is about to be displayed, or when a
command look up failed). See
http://bjeanes.com/2009/10/07/using-fish-shells-event-system-to-behave-like-method-missingfor
an example
* variables can be arrays (try running: echo $PATH[1]
* better shell expansion (try ls -1 */**/*.log or something)

That's all I can think of right now

On Tue, Dec 1, 2009 at 9:00 AM, Lachie  wrote:

> completions are OFF THE HOOK
>
> type ls
>
> on my machine i get back
>
> ls (List directory contents)  lsip(sudo lsof | grep -i
> ipv4 )  lsof   (List open files)
> lsbom  (List contents of a bom file)  lsm  (Latent Semantic Mapping
> tool)  lsvfs  (List known virtual file systems)
>
> not to say you couldn't do this in bash, but this is out of the box
>
>
> On Tue, Dec 1, 2009 at 9:54 AM, Lachie  wrote:
> > type (any) part of a command you once used
> >
> > hit the up arrow
> >
> >
> > On Tue, Dec 1, 2009 at 9:46 AM, Josh Price  wrote:
> >> Fish friends,
> >>
> >> Yesterday I tried fish for the second time. This time it's in earnest.
> >>
> >> Converting from bash required a bit of rejigging my bash profile and
> reprogramming my aliases. This was all fine, but other than a nicer
> scripting language, autocompletion and a sprinkling of colour, I couldn't
> help feeling I was missing something more important, something more subtle
> and powerful than just the surface stuff.
> >>
> >> I've installed the fish nuggets as per Dave Bolton's suggestion from the
> previous fish thread. This provides handy git and rake completions and a few
> other bits and pieces
> >>
> >> Can anyone suggest what other great fish features I might be missing?
>  I'm just not finding fish as compelling as I thought I would.
> >>
> >> Josh
> >>
> >>
> >> --
> >>
> >> 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.
> >>
> >>
> >>
> >
>
> --
>
> 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.
>
>
>

--

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.




Re: [rails-oceania] Fish Shell

2009-11-30 Thread Bodaniel Jeanes
>
> a nicer scripting language, autocompletion and a sprinkling of colour


Not to say that this is all there is, but why is that not a good reason to
use fish? Is there something you are *missing* from other shells?

--

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: migration cleanups

2009-11-10 Thread Bodaniel Jeanes
>
> Which is why I don't see a reason to get rid of them/roll them up -
> you db:schema:load, the migrate
> from there as needed. No reason to actually delete/move stuff
>

Yup that's what I do anyway. If it's a new project, schema load, then start
migrating any differences from then on

--~--~-~--~~~---~--~~
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: migration cleanups

2009-11-10 Thread Bodaniel Jeanes
>
> We move all of our old out of the way into an archive folder and rely
> on db schema or sql dumps for new staff.
>

Perhaps rails should come with a rake task such as rake db:migrate:archive
that will replace all existing ones with combined starting point which is a
schema load. Could be handy...


> 500 or so migrations is a bit tough to manage otherwise, but it's nice
> to keep them around sometimes for reference.
>

Luckily we all use version control, 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: Transportation to/from Railscamp from/to the airport

2009-11-05 Thread Bodaniel Jeanes
I'd also like to start nailing down these plans. I'll be in Melbourne from
Thu so meeting a travel crew early friday to go the camp site will be good.
I don't really know Melbourne that well and would prefer going as a group if
we are going to take the public transport route.

On Fri, Nov 6, 2009 at 9:41 AM, Ryan Bigg  wrote:

> I heard rumours of people catching trains out to Crib Point then a bus
> going from Crib Point Station to the camp site, but nothing too solid.
>
> 2009/11/6 Gabe Hollombe 
>
> Hey all,
>>
>> With Railscamp coming up, has anyone started planning the ground
>> transportation to/from railscamp from/to the airport?
>>
>> This is my first railscamp, so I'm not sure how folks have done it in the
>> past.  Van rental?  I just wanted to get the ball rolling on a transport
>> thread, so, here it is.  Maybe we'll just bring it up at the next Sydney
>> RoRo meeting?
>>
>> -g
>>
>>
>>
>
>
> --
> Ryan Bigg
>
>
> >
>

--~--~-~--~~~---~--~~
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: How do you describe the fields in your database?

2009-11-03 Thread Bodaniel Jeanes
Why do you find describing the fields in the model unDRY? If it were me,
that's exactly where I'd put them as this is where developers will interact
with those fields the most.

Another idea might be to patch migrations to use the field comment feature
of some DBs like MySQL. However without actually checking that, it's not
really helpful as most developers won't regularly check the schema.rb or the
raw database to see those values.

Ultimately if the purpose is for documentation, it should be somewhere that
developers will expect to find documentation: the README, the doc/
directory, or in comments in the code (such as in the model that it is
relevant to).

Bo

On Wed, Nov 4, 2009 at 10:56 AM, MarkBennett wrote:

>
> I'm working on an application where the fields in our model have very
> specific meanings and affect payments made to our users.  Because of
> this understanding the purpose and meaning of each field is important.
>
> I've been looking for the best way to describe the model fields, and
> would ideally like to leave comments in the db/schema.rb, however this
> if rebuild after I run each migration.  What is the best way to
> document fields and to share their purpose with the team?  I can't
> find a comment or description field to use the migration code, and
> describing each field in the model file itself doesn't seem very DRY.
>
> 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 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~--~~~~--~~--~--~---



[rails-oceania] Re: How do you describe the fields in your database?

2009-11-03 Thread Bodaniel Jeanes
On Wed, Nov 4, 2009 at 11:19 AM, MarkBennett wrote:

>
> Right now I look in the db/schema.rb to see the list of fields
> associated with a model and assume that is where most other people
> look for these fields, which is why I wanted to put the descriptions
> there.  My thinking is that repeating this list of fields again in the
> code in app/models is unDRY because you've now got to maintain the
> same list of fields in both places.
>

Sure. My point should have been more that you *don't* maintain the schema.rb
file -- the migrations do.

When you say most developers don't regularly check the schema.rb, how
> do you know what a model's fields are without doing this?


I usually just type in the class name in my (already open) console window:

>> Account
=> Account

--~--~-~--~~~---~--~~
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: How do you describe the fields in your database?

2009-11-03 Thread Bodaniel Jeanes
>
> The only problem with that is that a developer may create a migration
> and forget to update the field descriptions in the model. Out of date
> and wrong comments are the worst.
>

Good point. Hard to find documentation still sucks though


> I like the idea of patching migrations to use the field comment in the
> database. Then plugins like annotate models could pull the comment and
> write it to the model file for easy access.


If the process of pulling out the value of these fields and displaying them
somewhere is automatic this scenario would become very useful.

--~--~-~--~~~---~--~~
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: Ruby in Australia...

2009-11-02 Thread Bodaniel Jeanes
I'd definitely be interested in some of those talks being recorded. I don't
think it'll detract from the spontaneity or spirit of the event either.
schedules and expectations are what changes that. As always, RC is what we
make of it, and I personally would love to be able to walk away with a
record of some of the brilliant talks I hear people give each year.

Bo

On Tue, Nov 3, 2009 at 4:04 PM, James Healy  wrote:

>
> Jason Crane wrote:
> > I packed my recording eq two camps ago, but didn't pull it out. If we
> > want to record stuff, we have the technology :)
> >
> > We might also want to think about 'does recording talks at railscamp,
> > make it less railscamp' ?
>
> It's a good question. If people *are* interested in recording
> presentations at railscamp, I'm happy to work on it. I recorded the last
> Melbourne ruby meeting (videos coming real soon now) and have been
> working on a small toolchain to make the post production as painless as
> possible.
>
> -- James Healy   Tue, 03 Nov 2009 17:03:09 +1100
>
> >
>

--~--~-~--~~~---~--~~
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: Are all the bunks singles?

2009-10-16 Thread Bodaniel Jeanes
k just wondering. not needing privacy or hot tubs, just feels so high school
to be in separate bunks so i was curious. not really important.
Bo

On Fri, Oct 16, 2009 at 9:02 PM, Ben Schwarz  wrote:

>
> There are no double beds as far as I am aware.
>
> On Oct 16, 9:24 pm, Daniel  wrote:
> > From my remembering of the campsite, there is one larger room at the
> > end of each dorm, with a door and everything. Not sure if it includes
> > a double bed, but it would be an improvement for couples.
> >
> > On Oct 16, 8:10 pm, Ben Schwarz  wrote:
> >
> >
> >
> > > Bo,
> >
> > > We could probably sort out a private cabin, dim lighting, fine wine
> > > and an open fireplace.
> >
> > > --
> > > (Get real dude, its fucking railscamp)
> >
> > > On Oct 16, 7:34 pm, Glen Maddern  wrote:
> >
> > > > Yeah bros, don't worry, I'll bring mine. And yes, I have the complete
> > > > Beatles experience [?]
> > > > -glen.
> >
> > > > On Fri, Oct 16, 2009 at 7:29 PM, Matt Allen 
> wrote:
> > > > > I believe there is an unspoken rule that the "hosting" state
> provide the
> > > > > Guitar Hero/Rockband setup, saves shipping it interstate.
> >
> > > > > That said, I hope some Victorian people have The Beatles Rockband,
> I'm
> > > > > addicted to that game atm and would love to get all 6 roles going
> at once (3
> > > > > x vocal + 2 x guitars and 1 x drums).
> >
> > > > > I think Glen M mentioned he might bring his Rockband setup ...
> Glen?
> >
> > > > > Matta
> >
> > > > > On Fri, Oct 16, 2009 at 7:08 PM, David Lee <
> deathtoallfanat...@gmail.com>wrote:
> >
> > > > >> While we're on a tangentially related topic ...
> > > > >> would there be any point my bringing a wii guitar hero drum kit?
> >
> > > > >> On Fri, Oct 16, 2009 at 6:38 PM, Bodaniel Jeanes <
> m...@bjeanes.com> wrote:
> >
> > > > >>> the jacuzzi better have working bubbles or there'll be trouble!
> >
> > > > >>> On Fri, Oct 16, 2009 at 5:35 PM, Tim Lucas <
> t.lu...@toolmantim.com>wrote:
> >
> > > > >>>> On 16/10/2009, at 5:44 PM, Bodaniel Jeanes 
> wrote:
> >
> > > > >>>> > No -- really don't want to camp. I'd rather separate bunks in
> > > > >>>> > separate rooms -- I am just curious if there is another option
> --
> > > > >>>> > even if it costs more.
> >
> > > > >>>> I can organize a 5 star cabin on wheels with jacuzzi for
> $1k/night, DM
> > > > >>>> me for paypal details.
> >
> > > > >>>> :)
> >
> > > > >> --
> > > > >> cheers,
> > > > >> David Lee
> >
> > > > --
> > > > Glen Maddern
> > > > 0423 118 405
> >
> > > >  1B6.gif
> > > > < 1KViewDownload
> >
>

--~--~-~--~~~---~--~~
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: [railscamp] Are all the bunks singles?

2009-10-16 Thread Bodaniel Jeanes
the jacuzzi better have working bubbles or there'll be trouble!

On Fri, Oct 16, 2009 at 5:35 PM, Tim Lucas  wrote:

>
> On 16/10/2009, at 5:44 PM, Bodaniel Jeanes  wrote:
>
> > No -- really don't want to camp. I'd rather separate bunks in
> > separate rooms -- I am just curious if there is another option --
> > even if it costs more.
>
> I can organize a 5 star cabin on wheels with jacuzzi for $1k/night, DM
> me for paypal 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-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: [railscamp] Are all the bunks singles?

2009-10-15 Thread Bodaniel Jeanes
No -- really don't want to camp. I'd rather separate bunks in separate rooms
-- I am just curious if there is another option -- even if it costs more.

On Fri, Oct 16, 2009 at 4:08 PM, Dr Nic Williams  wrote:

> Take a tent.
>
>
> On Fri, Oct 16, 2009 at 3:41 PM, Bodaniel Jeanes  wrote:
>
>> Odd question but are all the beds single beds? I've convinced my
>> girlfriend to come (she's a designer/developer). It's not a huge thing but
>> it'd be nice to not have to pick who's got the top bunk -- but it'd be worse
>> to have to share a single one. Is there a third option of any kind?
>> Cheers,
>> Bo
>>
>>
>>
>
>
> --
> 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
>
>
>
> >
>

--~--~-~--~~~---~--~~
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: [railscamp] Are all the bunks singles?

2009-10-15 Thread Bodaniel Jeanes
4th option? Also don't want to lug my huge tent on plane -- already planning
on bringing my guitar

On Fri, Oct 16, 2009 at 3:42 PM, Ryan Bigg  wrote:

> Surely there is a large grassy expanse where you may set up a tent. Surely!
>
> 2009/10/16 Bodaniel Jeanes 
>
>> Odd question but are all the beds single beds? I've convinced my
>> girlfriend to come (she's a designer/developer). It's not a huge thing but
>> it'd be nice to not have to pick who's got the top bunk -- but it'd be worse
>> to have to share a single one. Is there a third option of any kind?
>> Cheers,
>> Bo
>>
>>
>>
>
>
> --
> Ryan Bigg
>
> >
>

--~--~-~--~~~---~--~~
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] [railscamp] Are all the bunks singles?

2009-10-15 Thread Bodaniel Jeanes
Odd question but are all the beds single beds? I've convinced my girlfriend
to come (she's a designer/developer). It's not a huge thing but it'd be nice
to not have to pick who's got the top bunk -- but it'd be worse to have to
share a single one. Is there a third option of any kind?
Cheers,
Bo

--~--~-~--~~~---~--~~
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: Hey ! Is the RailsCamp Melbourne completely sold out ?

2009-10-15 Thread Bodaniel Jeanes
If darryl got the last two then that means we have definitely broken 100
people (if not more). Hopefully the organisers see it fit to squeeze two
more people in.
Bo

On Fri, Oct 16, 2009 at 3:30 PM, Ryan Bigg  wrote:

> There were 9 tickets left yesterday and then I haven't heard anything past
> that point. Perhaps all 9 have gone, perhaps there are still nine. Only They
> Know.
>
> 2009/10/16 Daryl Manning 
>
>> Personally, I prefer the idea of a cage match amongst the team to see who
>> gets the two tickets... =]
>> I guess I was just kinda expecting a "there are this many tickets left"
>> kinda message at some point for the event on one of the lists.  =<
>>
>> Daryl.
>>
>> On Oct 16, 2009, at 4:18 PM, Dr Nic Williams wrote:
>>
>> Daryl, perhaps at any given time one of you could wait outside and read a
>> book. The other two can drink the beer, play guitar hero etc. :)
>> Nic
>>
>> On Fri, Oct 16, 2009 at 3:12 PM, Daryl Manning 
>> wrote:
>>
>>>
>>> Just tried to buy four spots and could only get two before EventWax
>>> told me the event was full on the third spot.
>>>
>>> Really need to fit another one of my team in there if possible (else
>>> we're going to have some ugly "last man standing" kinda action for
>>> those tickets... =] ).
>>>
>>> Anyone know if it's a soft limit or if the RailsCamp is absolutely
>>> full now ?
>>>
>>> ciao !
>>> Daryl.
>>>
>>>
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> Ryan Bigg
>
>
> >
>

--~--~-~--~~~---~--~~
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 new guy says Hello! :)

2009-10-15 Thread Bodaniel Jeanes
Freshlog looks nice. I am too partial to Skitch though ... does freshlog
have documentation for the API that needs implementation for support. I am
thinking if you can choose one of the site types but enter a different URL
and have your own set up emulate the other site, it could be pretty cool. I
don't use any of the supported sites other than for basecamp, and we don't
use it in a fashion that needs screen shots. It truly does look like a nice
app though.

On Thu, Oct 15, 2009 at 7:58 PM, Alvin Lai  wrote:

>
> Hi!
>
> I'm Alvin and I'm new here :)
>
> I was looking around for a Ruby or Rails group to hang out with in
> Sydney when @rexchung introduced this group to me.
>
> A little background, I'm the developer for Freshlog, a Mac screen
> capture tool that allows you to create bug issues/tickets in
> Lighthouse, Unfuddle, Assembla, Fixx and Fogbugz with screenshots.
> Basecamp's supported too!
>
> And the accompanying website http://freshlog.com has rails splattered
> all over it, just in case you're wondering :)
>
> I'll be heading over to Sydney this coming monday, hope to catch up
> with you guys soon!
>
> Cheers,
> Alvin Lai
>
> >
>

--~--~-~--~~~---~--~~
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: 40 sleeps to go until railscamp! Have you got a ticket?

2009-10-09 Thread Bodaniel Jeanes
Awesome -- How many tickets have been sold?

On Sat, Oct 10, 2009 at 1:45 PM, Ben Schwarz  wrote:

>
> Numbers wise, this railscamp is already going to be the biggest one
> yet. So make sure snaffle yourself a ticket.
>
> We have some exciting announcements for the camp also, but you'll have
> to wait until you arrive to find out what they are.
>
> http://railscamps.com/
> http://isitrailscampyet.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
-~--~~~~--~~--~--~---



[rails-oceania] Re: What are my options in regards to a payment gateway in aussie.

2009-10-07 Thread Bodaniel Jeanes
http://paymentexpress.com.au hands down. They are a NZ-based company and
have presences in most major countries and deal with every currency you'll
likely need.

On Thu, Oct 8, 2009 at 3:10 PM, Steve Hoeksema  wrote:

> http://www.paymate.com/cms/index.php/au-services/46
> I have not used their services or know anyone who has but they have been
> around for at least a couple of years.
>
> High fees (5.4% + $0.50) but you don't have much of a choice without a
> merchant account.
>
>
>
>
> On Thu, Oct 8, 2009 at 3:53 PM, sambo99  wrote:
>
>>
>> Seeing that both google checkout and paypal website pro are not
>> available in Aussie I am kind of stuck.
>>
>> What is a good payment gateway for small transactions? I have ten or
>> so "products" I would like to sell but have no idea how successful
>> this whole adventure will be so I do not want to put too much money on
>> the line to start off with.
>>
>> Is eWay the only viable option outside of working with banks?
>>
>>
>>
>
>
> --
> Steve Hoeksema
> +61 404 938 816
>
> >
>

--~--~-~--~~~---~--~~
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: Stack Overflow clone?

2009-10-01 Thread Bodaniel Jeanes
More a question for the rails camp mailing list but either way: there aren't
any plans. Not sure the need is really there for it anyway because everyone
is in the same room. A mirror of the existing questions (at least with the
relevant tags such as ruby/rails) might be useful though...
Bo

On Thu, Oct 1, 2009 at 4:55 PM, Andrew Grimm wrote:

>
> Are there plans for a Stack Exchange clone (either existing software
> downloaded, or hacked at the camp) for the railscamp web 0.2
> experience?
>
> 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
-~--~~~~--~~--~--~---



  1   2   >