Re: [rails-oceania] Anyone contracting for companies from USA

2014-04-30 Thread Julio Cesar Ody
I do. To make a long story short: it largely comes down to how willing and
capable you are to try and enforce the consequences of whatever violation
there may be.

If the answer to that is "not at all", the contract is there largely for
informative purposes, which is definitely not useless, but it's important
to bear that in mind and understand that it's there merely to lay the terms
and conditions under which you'll perform your services.




On Thu, May 1, 2014 at 8:50 AM, Maxim Filimonov  wrote:

> Hey all,
> I was wondering does anyone here have experience here in contracting for
> USA based company from Aus? Trying to figure out how does this work
>
> Cheers,
> Maxim
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rails-oceania+unsubscr...@googlegroups.com.
> To post to this group, send email to rails-oceania@googlegroups.com.
> Visit this group at http://groups.google.com/group/rails-oceania.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [rails-oceania] Re: address parser

2014-04-09 Thread Julio Cesar Ody
Also worth mentioning that Google Maps (it's geocoder) can normalise an
address, as well as provide a set of approximate results in case the user
gets it wrong, which is very helpful from a UX point of view.


On Thu, Apr 10, 2014 at 1:12 PM, Simon Russell  wrote:

> Basically, the summary would be: without knowing what your input data
> is like, and how many fields you want to separate it into, it can be
> either quite straightforward, or very complex. If you've had random
> people entering free-text addresses, I can tell you from experience
> that it could be quite tricky (even when separated into fields, people
> get their own address quite wrong).  If you're just dealing with the
> output of another system then clearly things are a little simpler. The
> other complexity is how many fields you want to separate addresses
> into; there are a few different types.  RM / PO boxes etc; different
> floors/unit numbers (and unit numbering schemes).
>
> The UPU has a pdf that's of some limited assistance:
>
> http://www.upu.int/fileadmin/documentsFiles/activities/addressingUnit/ausEn.pdf
>
> Getting a service like Google to do it for you is definitely a good
> idea; but certainly try out a few different types of addresses before
> you call the problem solved.
>
>
>
> On Thu, Apr 10, 2014 at 12:53 PM, Ryan Bigg 
> wrote:
> > +1 for Google Maps. They actually have a pretty decent API for this kind
> of
> > thing. As an example, here's the address for Inspire9 represented in the
> > format provided by Google Maps:
> >
> > https://gist.github.com/radar/a7dd5ccc59e537419ee1
> >
> > I'm quite positive from that data you could format that data into exactly
> > what you want.
> >
> >
> > On 10 April 2014 at 12:46:57 pm, Maysam Torabi (khe...@gmail.com) wrote:
> >
> > I just need to separate the parts into relevant fields
> >
> > I know every parser has it's limits, but then every country needs its own
> > customized solution, which could be handy for all the developers
> >
> > I don't want to map the addess to googlemap
> >
> > On Wednesday, 9 April 2014 20:22:45 UTC+4:30, Maysam Torabi wrote:
> >>
> >> is there gem or code for parsing Australian addresses? there is
> >> https://github.com/daveworth/Indirizzo for american addresses, but I
> was
> >> wondering if there is any one customized for the Aussie market
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ruby or Rails Oceania" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to rails-oceania+unsubscr...@googlegroups.com.
> > To post to this group, send email to rails-oceania@googlegroups.com.
> > Visit this group at http://groups.google.com/group/rails-oceania.
> > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ruby or Rails Oceania" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to rails-oceania+unsubscr...@googlegroups.com.
> > To post to this group, send email to rails-oceania@googlegroups.com.
> > Visit this group at http://groups.google.com/group/rails-oceania.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rails-oceania+unsubscr...@googlegroups.com.
> To post to this group, send email to rails-oceania@googlegroups.com.
> Visit this group at http://groups.google.com/group/rails-oceania.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [rails-oceania] Re: In memory ruby full text search

2014-01-03 Thread Julio Cesar Ody
Andrew mentioned Ferret before. It crossed my mind first thing, then I went to 
check on the GitHub repo (which is just an import from the old Trac repo), and 
it hasn’t been touched for years now.

It had some concurrency issues, which acts_as_ferret failed to address. Since 
that was the plugin that popularised the lib, the lib got a bad rep. Ferret 
itself was beyond rad. I wrote a search engine for a startup I used to work at 
back in the day using it, which was a non-Rails thing. Worked like a charm.

The author was a super smart guy (and nice) from Straaya. We tried to hire him 
then, but he was about to move to Japan to further his Judo studies. Never 
heard from him again.

(Cool story, bro)


On 4 January 2014 at 11:09:49 am, Ben Schwarz (ben.schw...@gmail.com) wrote:

Interesting problem… Where are the documents being stored? Would there be 
benefit in the documents being served via an API once they've been "found"? 
Perhaps couchdb or some other document store with an index running over the top 
(lucene for couch) could be a good fit? 

You're going to want something pretty robust / well utilised to get solid word 
stemming / language support, so you'd want to utilise a bonafide search 
service. (Not Rubby)  
Also, you mentioned that the content is HTML — can be stored in markdown or 
something with less… structure? There could be challenges here too! 

--

On Friday, 3 January 2014 10:27:10 UTC+11, Mikel wrote:
Hi there fellow Railers,

Have a requirement for full text search on a small static set of documents in 8 
languages.  The documents are committed to the repository don't change outside 
of a deploy.  Talking about 2mb total inclusive of all languages across about 
20 HTML documents per language.

I want to get full text search happening on these documents, with weighted 
results and simple AND / OR type matching.

Obviously, using something like Sphinx / Postgres full text search would handle 
it, but feels like over kill to spin up a separate search server instance to 
manage and index.

Using something lix xapian is an option, could build the index on app boot, but 
needs packages installed on the server (trying to do this simply)

Anyone know of a xapian like ruby full text search that can run in memory of 
off temp files that doesn't have external dependencies?

I've done some googling and can't find anything that really suits.  I think the 
simplest thing might be building PostgreSQL full text search tables on app boot 
and using them as the app is already using PostgreSQL.

But I welcome other ideas if they exist :)

Mikel

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

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


Re: [rails-oceania] RoRo Talks

2012-12-10 Thread Julio Cesar Ody
What do you mean "no transitions"? Where's the fun in that?



On Tue, Dec 11, 2012 at 11:07 AM, Steven Ringo  wrote:
> Whatever you feel is appropriate.
>
> On Tuesday, 11 December 2012 at 9:38 AM, Jon Rowe wrote:
>
> Hey Rubyists,
>
> Does anyone know if the "no transitions" guidelines for RoRo presentations
> include bullet points appearing one by one? Is it a technical limitation or
> one of style? (If I output to pdf this will look the same, but be a tonne
> more slides ;) )
>
> Cheers
> Jon
> -
> m...@jonrowe.co.uk
> jonrowe.co.uk
>
> --
> You received 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] Sub-second timestamps in Postgres

2012-11-29 Thread Julio Cesar Ody
Brief check using Ruby's Time#at, it seems to parse it wrong (output
of `+new Date` in a JS console).

Removing the milliseconds from it, parses it ok.



On Fri, Nov 30, 2012 at 1:28 PM, Matt Allen  wrote:
> Afternoon All;
>
> Has anyone stored sub-second timestamps in Postgres? and then used them in 
> rails?  Any gotchas I should be looking out for?
>
> Cheers,
>
> Matta
> Matt Allen
> m...@devlogic.com.au
> 0413 777 771
>
> --
> You received 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] Ruby and Sockets ...

2012-11-27 Thread Julio Cesar Ody
I second the recommendation.

Jesse's book explains much about the Socket class (as opposed to
TCPSocket, which is an abstraction), so he keeps you close enough to
the core that you learn a lot about the Berkeley API while at it.

Worth every cent.




On Wed, Nov 28, 2012 at 8:51 AM, jamesl  wrote:
> If you are interested in Ruby and Sockets then you might want to sign up for
> a new eBook by Jesse Storimer
> I have subscribed to
>
> Working with TcpSockets
>
> And the content is really good. You can sign up here:
>
> http://workingwithtcpsockets.com or http://workingwithunixprocesses.com.
>
> - James.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rails-oceania/-/RI8KEPvDs_oJ.
> 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] MacBook Air for development

2012-10-24 Thread Julio Cesar Ody
Hey Rich,

while yes, you'd be fine with an Air for Rails development, I found
the new rMBP 15" to be the best laptop I ever had. It's light, thin,
and is seriously fast. So unless mobility is *really* crucial for you,
I'd go for a rMBP.



On Thu, Oct 25, 2012 at 10:26 AM, Rich Buggy  wrote:
> Hi everyone
>
> I'm planning to switch my development machine from Windows to Macintosh. Is
> a MacBook Air (with 4GB memory) sufficient for Rails development? The tech
> specs are better than my current Windows laptop, which works fine for me,
> but I've never developed on a Mac so I'm not sure if should be spending the
> extra on MacBook Pro. Any advice is appreciated.
>
> Rich
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rails-oceania/-/B7UIq0vYIZsJ.
> 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] [RaisRumble] faxitforme.com

2012-10-15 Thread Julio Cesar Ody
Wow...

then I suggest for 2013 that someone should write a voting system for
Rails Rumble. It's almost as if they set out to make it non-obvious.




On Tue, Oct 16, 2012 at 12:13 PM, Y. Thong Kuah  wrote:
> Finalize your votes at http://railsrumble.com/entries/favorites
>
>
> On Tue, Oct 16, 2012 at 2:10 PM, Julio Cesar Ody  wrote:
>>
>> Same question I asked Thomas: vote where?
>>
>> Is favouriting the same as voting?
>>
>>
>>
>> On Tue, Oct 16, 2012 at 11:55 AM, Luke Chadwick
>>  wrote:
>> > Hi All,
>> >I'd just like to introduce the app I built for RailsRumble,
>> > https://faxitforme.com
>> >
>> > If you like the app, please vote for it (favorite) at
>> > http://railsrumble.com/entries/2
>> >
>> > Regards,
>> >
>> > Luke
>> > --
>> > email: luke.a.chadw...@gmail.com
>> > phone: +61402203606
>> > twitter: @vertis
>> >
>> > --
>> > You received 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.
>>
>
>
>
> --
> Best regards,
> Y. Thong Kuah
> http://kuahyeow.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] [RaisRumble] faxitforme.com

2012-10-15 Thread Julio Cesar Ody
Same question I asked Thomas: vote where?

Is favouriting the same as voting?



On Tue, Oct 16, 2012 at 11:55 AM, Luke Chadwick
 wrote:
> Hi All,
>I'd just like to introduce the app I built for RailsRumble,
> https://faxitforme.com
>
> If you like the app, please vote for it (favorite) at
> http://railsrumble.com/entries/2
>
> Regards,
>
> Luke
> --
> email: luke.a.chadw...@gmail.com
> phone: +61402203606
> twitter: @vertis
>
> --
> You received 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] $80 for one hour of work! (list moderation, job postings)

2012-10-07 Thread Julio Cesar Ody
On topic being the one-off actually technical question we get once
every month or so?

Every now and then, a thread bitching about job posts comes up, and it
just pushes people a bit closer to unsubscribing. It doesn't prevent
anything from happening (as it should be clear by now). It just adds
to the annoyance, often being worse than the posts that are the topic
of the complaint.

Newsflash: sometimes, people who don't know about the guidelines will
post. Wanna fix the problem? Become a moderator.



On Mon, Oct 8, 2012 at 3:32 PM, Daniel Draper  wrote:
> Can I suggest that people use Codehire.com for this kind of thing? Its
> exactly this sort of problem that we set out to solve. Right now its free to
> list and we'll be giving coders the ability to subscribe to jobs of interest
> very soon. It will keep Rails Oceania (and other boards for that matter) a
> bit more on topic!
>
> (Disclaimer: Yes, Codehire is my site :))
>
> On 8 October 2012 13:30, Michael Pearson  wrote:
>>
>> Would you like to earn $80 for one hour of your time and are in the Sydney
>> CBD?
>>
>> Talk to me, and I'll refer you to somebody. You'll have to pretend to be
>> me and give me $150, but I'll give you $80, honest.
>>
>> ..
>>
>> Ok.
>>
>> There's been quite a few questionable job postings lately. By
>> "questionable" I mean "copy/paste the standard Looking for a Ninja/Great
>> Dynamic Company seek.com.au template". Recruiters I've never seen on the
>> list before. It's getting kind of spammy.
>>
>> This isn't helping, but I can't actually find out who moderates this list
>> through the Google Groups interface, so we all get to argue about it here.
>>
>> I like using RORO as a discussion forum AND as a recruitment/job pool.
>> It's not going to have value as either if this "free classifieds" stuff
>> keeps up.
>>
>> The $150 / Sydney thing is a nice example. Is it $150 or $120? I dunno,
>> hit send, don't talk to your client.
>>
>> I've got a suggestion: if you've never posted on the list before, and your
>> first posting is a job ad, you've gotta come to a meetup first. Otherwise,
>> there's not much that's difference between whatever you're about to post and
>> what can be found on seek.com.au.
>>
>> I would rather a low traffic list than one I have to filter out.
>>
>> --
>> Michael Pearson
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to rails-oceania@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rails-oceania+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en.
>
>
>
>
> --
> Daniel Draper
> CEO (Code Executive Officer),
> Codefire
>
> www.codefire.com
>
> Mobile: +61 403 089 661
> Aus: +61 8 7127 6740
> US: +1 (408) 217-1859
>
> AppLaunch | Rescue Ops | Integrate
>
> --
> You received 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] client-side mvc with Rails

2012-09-02 Thread Julio Cesar Ody
Oh you're right, if you'd like to use libraries other people write.

There's Backbone-UI for one, but by all means, check this out ->
https://github.com/documentcloud/backbone/wiki/Extensions,-Plugins,-Resources

I find however that stuff such as these oughta be simple enough that
you can write it yourself in a few lines, and be understood by
everyone using it. See ->
https://github.com/juliocesar/tres/blob/master/javascripts/tres.coffee#L102

I don't have NIH syndrome. If it's a complicated, specific problem
that a library solves for you, then go for it. Otherwise, roll your
own.




On Mon, Sep 3, 2012 at 11:08 AM, Michael Pearson  wrote:
> On Mon, Sep 3, 2012 at 11:01 AM, Julio Cesar Ody  wrote:
>>
>>
>> If you have worked with Backbone for more than 1 project, and you're
>> still writing everything from scratch, you're doing it wrong. By now I
>> have a library of classes for implementing common patterns (e.g.:
>> rendering a collection in a list). I rarely find myself writing code
>> for basic functionality such as that these days.
>>
>> And some of it I ported over to Tres ->
>> http://tres-cookbook.herokuapp.com/#front-end-classes (linking, so you
>> get the idea).
>>
>
> Acknowledging that I come from a position of JS-ignorance, this seems like
> unnecessary duplication of effort to me. Not of Angular / Ember, but between
> developers using Backbone.
>
> Compare everybody writing their own ORM back in the Perl days, for example.
>
> --
> Michael Pearson
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.

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



Re: [rails-oceania] client-side mvc with Rails

2012-09-02 Thread Julio Cesar Ody
Bear in mind that there's a huge difference between writing behaviour
code and using data-binding like mechanisms. Comparing Angular with
Backbone for instance is a lot like comparing apples to oranges, end
results aside.

A lot of JS frameworks work like this: you add certain attributes to
tags, that confers that tag special powers to do X. Others interface
with the DOM through view-like classes. Angular sits in the former,
while Backbone in the latter.

If you have worked with Backbone for more than 1 project, and you're
still writing everything from scratch, you're doing it wrong. By now I
have a library of classes for implementing common patterns (e.g.:
rendering a collection in a list). I rarely find myself writing code
for basic functionality such as that these days.

And some of it I ported over to Tres ->
http://tres-cookbook.herokuapp.com/#front-end-classes (linking, so you
get the idea).





On Mon, Sep 3, 2012 at 10:13 AM, Glen Maddern  wrote:
> +1 for AngularJS. I did a talk about it at Melbourne Ruby (slides here:
> http://sup-angularjs.herokuapp.com/)
>
> In my mind, Ember starts at "what do large JS applications look like", and
> works backwards to a framework. AngularJS asks "what would make building JS
> applications easier", and builds up from small, really useful components. It
> breaks this mindset that the HTML is a static layer and turns it into a DSL
> for declaring your application. A lot of things become possible with tiny
> amounts of code, or often no code at all.
>
> I think Angular and Ember are at the top of their respective categories, and
> I'd consider it a stylistic choice which you go with. But while Ember looks
> more like Rails, I actually think Angular reminds me more of Rails' early
> days - I can do more stuff with less code, many times quicker.
>
> For those interested, I blogged about how Goodfilms uses Angular recently:
> http://goodfil.ms/blog/posts/2012/08/13/angularjs-and-the-goodfilms-mobile-site-part-1/
>
> TL;DR AngularJS > *
>
> -glen.
>
> On 3 September 2012 09:21, Tim Uckun  wrote:
>>
>> Also check out Angular JS from google.   It's more in the realm of
>> Ember than Backbone. It's quite mature and well documented.
>>
>> --
>> You received 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] client-side mvc with Rails

2012-08-30 Thread Julio Cesar Ody
*blinks*

Not sharing on GH even?

Right.



On Fri, Aug 31, 2012 at 8:44 AM, ben wiseley  wrote:
> My 2 cents on things like backbone/ember client side mvc is that:
>
> a) - developer happiness only matters if it's your code and will only ever
> be your code - don't even bother putting your happiness up on github to
> share or entering it into a consulting shop code base... you're happiness
> makes no sense to most others - even if it's brilliant - and this is the
> problem.
>
> This stuff isn't just "make something green with css" - it's really
> confusing when fully flushed out and "anything goes" is all wrong.
>
> 1) backbone is pretty lame sauce - if you're any good with JS it's probably
> faster to do something you understand out of the box rather than trying to
> learn the fairly confusing backbone ... aka "developer happiness"
> 2) ember - better than backbone from what i've read - haven't tried it yet
> though
> 3) anyone who's done desktop UI dev (i.e. Windoz) probably understands how
> this should look...
>
> Right now the state of UI/JS imo is anything goes.  You have this mad house
> of binding whatever you want to whatever you have.  Everything is event
> based listeners.  This is a HUGE headache to work with and super prone to
> bugs.  This is a nightmare when dev'ing and a huge nightmare when coming
> back tot he app a few months later.  To make thing work there's no standard
> on data vs js vs css naming.  A lot of the code you see is binding to css
> classes which is terrible.  The step up from that is stuff like bootstrap,
> jquery-mobile, etc. - which at least binds to custom attributes in tags
> (like "data-event", etc).  This is better but still very anything-goes.
>
> While I'm not sure what the final solution looks like I think it's a lot
> closer to how you do things on the desktop via C#.  i.e. - buttons are
> buttons (not links, divs, spans, etc.) and those objects are first class UI
> citizens with standard bindings to css, js and ajax.  Those objects have
> events that bubble down/up to the UI in a set manner.  None of this "let's
> bind some random dom object to random css events and js listeners that may
> call back to an api".
>
> Not that elegant (on a very crowder train, sleep deprived, etc)... but
> that's the general gist.  The rich-ui web isn't really all that different
> than the rich-ui desktop and things like backbone are sort of close.  It
> just needs to be a lot better imo.  This isn't an entirely new problem
> either.  I think it's state in rails right now if deplorable though.  If
> we're of the opinionated software philosophy then lets do that.  We're not
> doing that at this time with things outside of rails-api and vanilla UI
> stuff.
>
> -ben
>
>
> On Fri, Aug 31, 2012 at 7:59 AM, Julio Cesar Ody  wrote:
>>
>> Hey Mark,
>>
>> what DHH said during the video was that _he felt_ a vanilla Rails app
>> using pjax was more robust and beautiful, and also that he rather
>> write Ruby than JS (which he doesn't like) or CoffeeScript.
>>
>> I think developer happiness is king, and if it's not your stack, then
>> problem solved. There are, however, a lot of people who do prefer, and
>> are fast at building on the client-side. Hence, it's really just up to
>> you.
>>
>> DHH pointed out something about latency, given client-side MVC
>> transmits only JSON and thus the responses are smaller. I think that
>> for small differences in latency (magnitudes don't count if we're
>> comparing 50ms with 300ms), it becomes irrelevant and that a well
>> designed UI will work on your _impression_ of responsiveness, and that
>> will play a much bigger role in user happiness.
>>
>> To repeat what I said on Twitter: building good, robust, and fast
>> client-side applications take some mastery. You need to use
>> localStorage, appcache, etc to leverage performance, and all that will
>> feel overwhelming unless you know your tools well.
>>
>> My 2 cents.
>>
>>
>>
>>
>> On Thu, Aug 30, 2012 at 10:30 PM, markbrown4  wrote:
>> > People have probably already see this but it can't hurt sharing here.
>> > dhh on client-side mvc and their caching strategy in the new basecamp
>> > that
>> > is now in rails/master.
>> > http://www.youtube.com/watch?v=FkLVl3gpJP4&t=34m0s
>> >
>> > I'm interested to hear how people are using client-side frameworks with
>> > rails.
>> > Do you prefer developing cl

Re: [rails-oceania] client-side mvc with Rails

2012-08-30 Thread Julio Cesar Ody
Hey Mark,

what DHH said during the video was that _he felt_ a vanilla Rails app
using pjax was more robust and beautiful, and also that he rather
write Ruby than JS (which he doesn't like) or CoffeeScript.

I think developer happiness is king, and if it's not your stack, then
problem solved. There are, however, a lot of people who do prefer, and
are fast at building on the client-side. Hence, it's really just up to
you.

DHH pointed out something about latency, given client-side MVC
transmits only JSON and thus the responses are smaller. I think that
for small differences in latency (magnitudes don't count if we're
comparing 50ms with 300ms), it becomes irrelevant and that a well
designed UI will work on your _impression_ of responsiveness, and that
will play a much bigger role in user happiness.

To repeat what I said on Twitter: building good, robust, and fast
client-side applications take some mastery. You need to use
localStorage, appcache, etc to leverage performance, and all that will
feel overwhelming unless you know your tools well.

My 2 cents.




On Thu, Aug 30, 2012 at 10:30 PM, markbrown4  wrote:
> People have probably already see this but it can't hurt sharing here.
> dhh on client-side mvc and their caching strategy in the new basecamp that
> is now in rails/master.
> http://www.youtube.com/watch?v=FkLVl3gpJP4&t=34m0s
>
> I'm interested to hear how people are using client-side frameworks with
> rails.
> Do you prefer developing client-side mvc or rails views?
> Do you aim to make your application 100% client-side mvc?
> If you do use both at the same time, at which point do you choose to build
> the views client-side?
>
> Personally I agree with dhh's sentiment that the development experience
> using the Rails stack is simpler & more robust than client-side mvc.  At the
> same time I can appreciate lean server architecture and moving processing to
> the client.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rails-oceania/-/aNO4K0tVnZMJ.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.

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



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

2012-08-23 Thread Julio Cesar Ody
TL;DR: between US and Australia, it's what you make of it.

Pitching in, as someone who went through two 457s, permanent
residency, and eventually citizenship. Oh and I'm from Brazil, which
is one category before last in terms of "qualifiable background".
Also, I have no degree.

The three last visas I applied for, I did it all online, on my own,
with perhaps two phone calls made to the department of immigration for
clarifications. Maybe, I got lucky, but I find it hard to believe I'd
get lucky three times in a row with *zero* friction as far as the
processes went. They were helpful and polite all the way.

I'm yet to be offered more money by a US company, despite numerous job
offers from there (I bet a lot of people from here get those regularly
too). Not to say the offers from there were all bad, but even
factoring cost of living, plus the certainty that you won't be able to
live there forever even if you wanted to, I'd still come out ahead
with any of the better-than-average offer from locals.

And as a freelancer, all my great clients were local. Had about three
good clients from overseas, though all the great ones to work with
were from around here, including people being being organised with
payment dates and such.

So go Australia!

P.S.: there are great people to work with everywhere.





On Fri, Aug 24, 2012 at 9:11 AM, Chris Aitchison  wrote:
> "Oh, and I suspect there's a few grumbles about getting permission to work
> in Australia."
>
> Here is the best of those grumbles! From a Lonely Planet Ruby dev (yes they
> still have a Ruby dev team in Footscray) trying to get permanent residency
> for himself, his Japanese wife, and half-Japanese baby born in Melbourne.
>
> http://gyrovague.com/2012/08/10/notarizing-your-fingerprints-for-fun-and-profit
>
>
>
> On Thu, Aug 23, 2012 at 6:42 PM, Andrew Grimm 
> wrote:
>>
>> I've been invited to give a 5-10 minute talk about what it's like
>> being a Ruby dev in Oz. It'll be at a pre-RubyKaigi meetup in Tokyo,
>> which will have a fair number of Japanese and non-Japanese people.
>>
>> As far as I can tell, most of the capital cities have Ruby meetups,
>> and possibly meetups on JavaScript, functional programming or iOS
>> programming. And Sydney also has hack nights. I'll also talk about
>> Railscamps, and RubyConf Australia.
>>
>> I'm also asked about work in Australia. Is Ruby-based work mainly
>> based in small startups and/or freelancing, with more mainstream
>> languages required for larger corporations? What is the work
>> environment like? What kind of hours are expected? What is the pay
>> like compared to the cost of living in Australia?
>>
>> I've heard a few grumbles about what it's like working in a large
>> corporate, but is that more about what tools and processes are used,
>> rather than how they treat you?
>>
>> Oh, and I suspect there's a few grumbles about getting permission to
>> work in Australia. But is that more of a PITA rather than a
>> show-stopper?
>>
>> Thanks,
>>
>> Andrew
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to rails-oceania@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rails-oceania+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en.
>>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://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] Test graph outputted by javascript

2012-08-14 Thread Julio Cesar Ody
Try the SydJS list. You're likely to get good replies there for JS questions.

Since canvas in itself is stateless, the only way to do it is keeping
the state in JavaScript (i.e.: keep an object around to store the
graph). You can then check the object's state, if say, you set an
attribute when the graph is fully rendered.

And yes, depending on how effectively and correctly you want to do
this, it gets more complex than my suggestion.




On Wed, Aug 15, 2012 at 11:41 AM, Simon Russell  wrote:
> What sort of stuff do you want to get?  The bitmap data?
>
> On Mon, Aug 13, 2012 at 4:23 PM, marsbomber  wrote:
>> Hi guys,
>>
>> I have an HTML page, with a place holding "canvas" element, after DOM loads,
>> my javascript draws out a graph inside the canvas.
>>
>> I don't seem to be able to interrogate the canvas element ...
>>
>> Any hints?
>>
>> Cheers,
>> Jim
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby or Rails Oceania" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/rails-oceania/-/2hRJ-U0DUT0J.
>> To post to this group, send email to rails-oceania@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rails-oceania+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to 
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
>

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



[rails-oceania] [JOB] Friend seeking job

2012-08-07 Thread Julio Cesar Ody
Hey all,

a good friend of mine who taught me a lot back in the day, who was
also a co-worker in a couple of instances including here in Australia,
decided to give it another go and work around here again.

He knows tech inside out, but works mostly with Python, C, and PHP
(pays the bills). Has worked with Objective C and Cocoa as well, so
he's a great all arounder. Like myself, he's from Brazil, but he can
speak English well. He uses Vim and I'm willing to bet he can make
your head spin with what he does in it. Point in case: he's the sort
of hacker who bothers to understand everything well.

The catch, which to be honest he's familiar with, is he needs a
sponsorship visa (457). Companies tend to perceive that as a big
hurdle but it's not complicated at all. I'm sure he'd basically handle
it all and you wouldn't even hear much about the process.

If you're interested in hiring him, contact me off-list. In fact, if
you have any comments regarding this email, do send them straight to
me.

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] HTML5 Boilerplate for rails 3.2

2012-07-27 Thread Julio Cesar Ody
You could just use the index.html file from H5BL as your app template,
either as an ERB file, or convert it to whatever template format you're
using.

Then link the styles along of course.


On Friday, July 27, 2012, Luke Hamilton wrote:

>
> Hi all,
>
> I was just wondering if other people are following the
> html5boilerplate.com way in their Rails 3.2 apps, and if so what methods
> are they using? i.e just building it in gem by gem, or all by hand or some
> of the other boilerplate gem's that exist.
>
> Love to hear about people's experiences and recommendations.
>
> Thanks heaps!
>
> Regards,
> Luke Hamilton
>
> Mobile:  +61 0430223558
> Skype:  lukekhamilton
> Twitter: @lukekhamilton
> Email:   l...@lukehamilton.me
>
> “When I let go of what I am, I become what I might be.” – *Lao Tzu*
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>

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



[rails-oceania] My Tres talk

2012-07-26 Thread Julio Cesar Ody
Hey all,

slides for my RORO Melbourne talk yesterday (which incidentally are
the same ones as my RORO Sydney talk):

http://tres-intro.heroku.com

Quick instructions to get that little demo app running:

* Clone git://github.com/juliocesar/tres.git.
* cd into it, run a local webserver in that directory (e.g.: `python
-m SimpleHTTPServer`).
* Point your mobile browser to to http://:8000/anagen (or
whatever other port your webserver runs on).

The source for the app is in anagen/anagen.coffee, or alternative,
browse to https://github.com/juliocesar/tres. I'm putting up some docs
as I get inspired to write at http://tres.io.

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.



Re: [rails-oceania] What role should a modern developer play in a team?

2012-07-24 Thread Julio Cesar Ody
I can't recall in the last few years of web development having met a
back-end (say, Rails) developer who was better at what he did because
he specialised in it.

The best sysadmins I met in my life were kernel hackers. The best Ruby
devs could also create great interfaces (e.g.: _why). The best
front-end devs have a strong background in one or many programming
languages.





On Tue, Jul 24, 2012 at 5:13 PM, Ben Hoskings  wrote:
> In my view, a good developer is a "table with legs":
>
> http://www.av8n.com/physics/breadth-depth.htm
>
> It's no good to be a beginner at everything an expert at nothing. But 
> equally, an area of extreme skill is no good without the context of any 
> others.
>
> I think the best people in any industry have a breadth of skills that they're 
> at least comfortable with to some extent, combined with a couple of areas of 
> high fluency.
>
> One yardstick that comes to mind -- some companies have separate dev and ops 
> teams, which is fine, but the ops should know how to run the specs, and the 
> devs should know how to restart unicorn.
>
> - Ben
>
>
>
> On 24/07/2012, at 4:09 PM, marsbomber wrote:
>
>> Hi guys,
>>
>> I want to raise a questions here as per subject. How do you define a modern 
>> developer these days. Which of the following should a modern developer tick?
>>
>> - Front end dev
>> - Backend dev
>> - Server Admin
>> - Operations
>> - DBA to some degree
>> - BA
>> - Others?
>>
>> Love to hear your inputs!
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Ruby or Rails Oceania" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/rails-oceania/-/PYumIC_UTtAJ.
>> 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] Rorosyd is on Tuesday July 10

2012-07-03 Thread Julio Cesar Ody
I forgot to make that clear in the wiki, so I'll explain here.

Tres (three, in English, aptly named after 37Signal's Cinco, which
would mean "five") is a framework for developing JavaScript apps for
phones and tablets. It works on top of Backbone.js, but in a nutshell,
you'll write a lot less code to get stuff done.

It'll feature a bunch of classes, most of which is stuff I've been
using for the last year or so, that make it easy for you to, say
generate screens, create data-bound lists, transitions, swipes,
infinite scrolling, but all focused on the features as well as
limitations of mobile devices. So yes, you'll still be writing code
for it, but I wouldn't have it any other way.

It's all CoffeeScript/Compass/Sass. After I saw Addy's Yeoman
(http://yeoman.io/), I got inspired to turn this into something more
like a development suite with packaging capabilities, so I'm working
on that right now.

The repo can be found here -> https://github.com/juliocesar/tres.

Thanks!






On Tue, Jul 3, 2012 at 10:46 AM, Steven Ringo  wrote:
> Hi everyone,
>
> Rorosyd is on again in a week: Tuesday July 10, 6:30 for a 7pm start.
>
> At our usual: Trinity Bar in Surry Hills: http://tinyurl.com/6emfna
>
> This time there will be no impostors. (I am looking at you Sydney Hipsters
> Service Design something something)
>
> A big welcome back to Sydney to Julio Ody, who will be talking to us about
> Tres, a new Javascript hotness library he's writing.
>
> Trung Lê will also be doing something on filling PDF forms with XFDF.
>
> There are still some more spots. Put your name down at
> https://github.com/rails-oceania/roro/wiki/rorosyd-topics and tell us about
> something you've found or have been working on lately. We promise not to
> heckle. Its very rewarding to get up and chat.
>
> As client-side JS is becoming a part of our daily lives, and new frameworks
> seem to be popping up all over the place it seems fit that we look at them
> in a bit more detail. I would love to see a JS framework smackdown,
> something along the lines of Ember vs Backbone vs Angular vs Knockout vs
> Spine etc, and how they work with ruby/rails; how to test them etc.
>
> If anyone's interested in talking about one or more of these frameworks, let
> me know. Perhaps we even dedicate an entire Roro to this subject some time
> in the near future.
>
> See you there!
>
> Regards,
>
>
> Steve
>
> --
> You received 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] AngularJS slides and code from last night

2012-07-01 Thread Julio Cesar Ody
One thing's for sure: large AngularJS apps are the only thing other
than WebGL that's guaranteed to turn your MBP into a portable heater.

Hey, I had to say something. Sue me.



On Mon, Jul 2, 2012 at 4:19 PM, Samuel Richardson  wrote:
> I asked Glen the same question on the night after his talk. I can confirm
> the internal timer and some "magic" around the object comparison.
>
> Samuel Richardson
> www.richardson.co.nz | 0405 472 748
>
>
>
> On Mon, Jul 2, 2012 at 4:12 PM, Ivan Vanderbyl 
> wrote:
>>
>> Hi Dmytrii,
>>
>> In a nutshell from what I have read it uses an internal timer which
>> continually checks the value of all keys against the last known value. I'm
>> not sure how efficient this is but it seems to be pretty fast in the smaller
>> apps where I've seen it used.
>>
>> — Ivan
>>
>> On 02/07/2012, at 4:08 PM, Dmytrii Nagirniak wrote:
>>
>> Hi,
>>
>> The angularjs looks really great. I have been a big fan of KnockoutJS
>> which is similar to angularjs in some aspects.
>>
>> But I wonder how angular can do the two-way binding on plain JavaScript
>> objects?
>> JS doesn't _generally_ have setters and getters and it gets even more
>> complicated with arrays.
>>
>> KnockoutJS solved those problems by wrapping every property/obect in
>> "ko.observable/ko.observableArray".
>>
>> I don't understand how angular does that. It must be doing some
>> "smart-ass" things during the compilation.
>>
>> Anybody knows that?
>>
>> Cheers,
>> Dmytrii
>>
>> On 29 June 2012 11:41, Ben Hoskings  wrote:
>>>
>>> For those that didn't see Glen's talk, have a quick look at the slides.
>>>
>>> In particular, check out the embedded HTML examples. They're hooked up to
>>> their corresponding iframes using angular.
>>>
>>> Try editing the {{ handlebar-like }} snippets to see how angular glues it
>>> all together. It takes almost no JS to make that happen.
>>>
>>> - Ben
>>>
>>>
>>>
>>> On 29/06/2012, at 11:34 AM, Glen Maddern wrote:
>>>
>>> > Here's my talk on AngularJS from last night:
>>> >
>>> > http://sup-angularjs.herokuapp.com/
>>> >
>>> > If that's whet your appetite for writing awesome frontends with hardly
>>> > any code, go have a look at the source:
>>> >
>>> > https://github.com/geelen/angular_presentation
>>> >
>>> > AngularJS is pro, don't you want to be pro?
>>> >
>>> > -glen
>>> > @glenmaddern
>>> >
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Ruby or Rails Oceania" group.
>>> > To post to this group, send email to rails-oceania@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> > rails-oceania+unsubscr...@googlegroups.com.
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/rails-oceania?hl=en.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Ruby or Rails Oceania" group.
>>> To post to this group, send email to rails-oceania@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> rails-oceania+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/rails-oceania?hl=en.
>>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to rails-oceania@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rails-oceania+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to rails-oceania@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rails-oceania+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.

-- 
You received 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] PLugin ideas

2012-06-23 Thread Julio Cesar Ody
My protip is: writing a plugin by itself is the wrong way to go about
it, first of all. First, find a problem that you need solved, even if
it's a half made-up problem. Write a library for it which works
independently of Rails (unless of course the problem is a Rails
problem). And then should Rails integration through, say, helpers,
classes, or what have you be necessary, write the modules that pick
the methods from your library and expose them to Rails.

I'll give you an analogy: lots of front-end developers write jQuery
plugins that should be standalone libraries just because they can't
think things through. You can do just the same: write a standalone
library, then write the bridge separately.

That makes for better software.



On Sun, Jun 24, 2012 at 10:05 AM, Mark Wotton  wrote:
> It's very difficult to build something in isolation - if it's not
> being done for an immediate purpose, then chances are you'll choose
> the wrong set of features.
> Look at Rails itself - it was extracted from a series of projects, so
> only things that they actually used made it in. That's why it was so
> much easier to learn than a lot of the feature-encrusted java
> frameworks that came before...
>
> mark
>
> On Sat, Jun 23, 2012 at 7:13 PM, raj deshmukh  
> wrote:
>> HI Pat,
>>  Actually this is for a MS project, so it might not be specific to what I
>> do. But I would like to built a general Plugin that people might like to
>> use.
>>
>> Raj
>>
>>
>> On Saturday, June 23, 2012 12:51:38 PM UTC+5:30, Pat Allan wrote:
>>>
>>> Hi Raj
>>>
>>> I think it's really best to find something that *you* want to use across
>>> more than one project, and make that gem or plugin. If you're not going to
>>> use it, it's much much harder to build - and you're less likely to be
>>> interested in what you're doing.
>>>
>>> Cheers
>>>
>>> --
>>> Pat
>>>
>>> On 23/06/2012, at 6:17 AM, raj deshmukh wrote:
>>>
>>> > I want to create a plugin as a part of my project work, I would like to
>>> > create something that would be useful to the Ruby/rails community
>>> >
>>> > Please suggest some ideas.
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Ruby or Rails Oceania" group.
>>> > To view this discussion on the web visit
>>> > https://groups.google.com/d/msg/rails-oceania/-/GwOUiyba_xwJ.
>>> > 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 view this discussion on the web visit
>> https://groups.google.com/d/msg/rails-oceania/-/pFwUxspK2MAJ.
>>
>> 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.
>
>
>
> --
> 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-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] JSON API best practices

2012-05-31 Thread Julio Cesar Ody
> We still return per_page in our API calls as we have limits on what
> the client can request. So although a client my request a page size of
> 200 for load management and performance reasons we may only accept
> values of 50 (for example).

I quote myself:

> and in which case, it should accept a range value, or two values, one for 
> range beginning and range end. The
> gist here being that some clients might find it suitable to fetch more, 
> others less, and your API should simply
> let those clients decide that. Probably up to a certain number of posts, of 
> course.

As for what Ivan suggested, working backwards from what you'll need
works, yes, and probably if said API will be consumed first and
foremost by JS, then go for that and make changes as you need them
should mobiles or whatever come next. I assume you have a budget/time,
so that helps that.

Oh and about "semantics" in APIs, the fact is an array is a structure
where the length equals the number of entities it carries. So turning
a collection into an object just so it can carry metadata which can
obviously be extracted from this characteristic of the collection
doesn't make anything more semantic, but just repetitive.

-- 
You received 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] JSON API best practices

2012-05-31 Thread Julio Cesar Ody
In the absence of a blog post, a few comments:

"status":"ok"

No need for that. That's what HTTP status codes are for.

"page":1, "per_page"

`per_page` should be up to the client. Your API should support
pagination though for retrieving collections, and in which case, it
should accept a range value, or two values, one for range beginning
and range end. The gist here being that some clients might find it
suitable to fetch more, others less, and your API should simply let
those clients decide that. Probably up to a certain number of posts,
of course.

`total` should also be extrapolated from the array length once parsed.
The exception here being if you'd like to supply a separate "metadata"
request for collections which simply returns that kind of info but
omitting the collection itself. That can be handy for some UI cases
(e.g.: showing upfront how many items a collection has before actually
fetching).

That's all from me for now:)


On Thu, May 31, 2012 at 6:13 PM, Steve H  wrote:
> Do you have any preferences on good or bad responses from APIs? Or links to
> discussions on this subject.
>
> I'm in the beginning stages of building v2 of an API with feedback from what
> we've learned doesn't work from v1, and want to pick up any other thoughts
> of what might turn out to be a mistake, or things you wish you had added or
> removed from your own APIs after you've built them.
>
> Considerations:
>
> * A common format for error messages
> * Return multiple groups of results in the same response
> * Return metadata about the result set along with the result (e.g. totals)
>
> I'm currently leaning towards something like:
>
> {
>   "status":"ok",
>   "latest_posts":{
>     "total":42,
>     "page":1,
>     "per_page":10,
>     "results":[
>       {
>         "type":"post",
>         "id":123,
>         "url":"http://www.example.com/posts/123";
>         ...
>       }
>     ]
>   },
>   "popular_posts":{
>     ...
>   }
> }
>
> {
>   "status":"error",
>   "message":"..."
> }
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rails-oceania/-/tVcxIVy7Q_kJ.
> 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] [JOB] [CONSULTING] Front End Developer (backbone, node, JS and UI against Rails)

2012-03-06 Thread Julio Cesar Ody
> or short term consulting...

Hey Mikel,

I have cycles to spare right now, if consulting is on the table.

Let me know! All the best.



On Monday, March 5, 2012, Mikel Lindsaar wrote:

> Hi list,
>
> TL;DR: Full time or short term consulting Front End Developer (backbone,
> node, JS and UI against Rails) position available with opportunity to move
> into a full time, http://reInteractive.net/, $90k-$120k, Sydney &
> surrounds, you know you want to, email 
> mi...@reinteractive.net
> .
>
> *Not quite enough information and want to read everything?*
>
> reInteractive (nee RubyX) are growing and we are on the look out for
> developers to come on board and work with us.
>
> We work in many areas from web application startups, to high end
> database crunching and e-commerce sites for a wide variety of clients.
>  Feel free to read our site for some information on what we have done and
> who our team is.
>
> If you are a good developer with excellent communications skills and have
> an open mind to implement the right technology for a wide range of clients
> with constant learning, you might be whom we are looking for.
>
> We primarily work in Rails, Ruby, some Backbone, lots of CSS and obviously
> HTML and mobile web and any component connected with these sorts of
> environments.  We are opening up our mobile delivery space as well, so if
> you are a Rails dev wanting to branch into this area let me know.
>
> Your position will be a reInteractive developer, focusing on UI and
> interactivity.
>
> You are expected to have a broad understanding of common web based
> technologies.  No one can be a master of everything, and every
> reInteractive developer and designer have their own unique strengths.
>  Using these strengths together as a team is what allows us to produce top
> quality work.  We expect you should be able to fit into this model.
>
> The job entails working remotely, at home, in a cafe or whatever floats
> your boat.  Sometimes you will need to make onsite appearances with clients
> and we have a monthly meetups and various get togethers.  But the key point
> is flexibility.  We expect you to be able to manage your time, and we are
> very flexible with our working hours and arrangements (don't believe me,
> ask some of our team :)
>
> Your location should be somewhere around Sydney, or within a 1 hour or so
> plane ride of Sydney.  While remote working is fine, we like the face-time
> that our monthly meeting brings and Apple and Skype haven't really solved
> this yet.
>
> The pay is good.  You will earn between $90k - $120k per year depending on
> several things, one, of course, is your skill, the other is how you take
> advantage of our awesome development bonus system that rewards you for
> putting in *quality* production and effort.
>
> We need good people.  You don't have to know everything about everything,
> that's not the point, but we do expect you to know a LOT about SOME things
> and know a fair chunk about everything else.  You need to be fast on your
> feet and able to hit the ground running with new technology.
>
> Are you a rock star or a ninja?  If you are, then fine, but we would
> really prefer you to simply be someone that gets the job done with
> effortless competence and delivers beyond the expectations of our clients
> and team mates.
>
> This is a permanent position, you'll get a trial period to see if you like
> us and we like you.
>
> There are some perks to the job.  We send you to Rails Camps and we also
> work to get you to Rails or Ruby related conferences, especially if you are
> speaking!  Also, everyone on the team is being taken on a paid trip to
> RailsConf 2012, now is a good time to join up :)
>
> One thing we can promise is working at reInteractive is never boring!
>
> Send me an email (mi...@reinteractive.net  'mi...@reinteractive.net');>) and tell me why you would like to be one of
> our designers or developers with your contact info.  Show me something you
> are proud of that you have produced.  Tertiary qualifications are much less
> important than demonstrable quality code and products.
>
>
> Thanks,
>
> Mikel Lindsaar
>
> --
> You received 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 'rails-oceania@googlegroups.com');>
> .
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com  'rails-oceania%2bunsubscr...@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] mobile frameworks

2012-01-03 Thread Julio Cesar Ody
You're probably aware, but for those who aren't, the fact it's listed
as supported on caniuse.com isn't enough. I think I mentioned that on
my WDS presentation: when you get down to actually running an app on
*many* Android devices, you'll often see stuff such as dog slow CSS
transitions, and weird behaviour for *a lot* of CSS3 (off the top of
my head, fixed positioning being one of the worst) despite support
being technically there.

Also, mobile Android isn't a single platform. It's as many as there
are versions of Android. And each is a moving target as time goes by.

The question, IMHO, for as long as the status quo remains, is: what's
my target audience. Then you go and develop for it. Your mileage may
vary along with the project's budget.




On Tue, Jan 3, 2012 at 11:02 AM, Aleksey Gureiev  wrote:
> Writing cross-platform isn't *that* hard, if you have someone on the team
> who did this at least once. There are certain things to avoid and know, and
> that's about all to it. Unless you go deep into old devices, you are safe
> with HTML5 / CSS3. Most modern Android and iOS gadgets (those on Webkit)
> support these and even w/ accelerated transitions / animations. If you stay
> within what's supported, that's all you need for successful cross-platform
> development. Once you need something native (positioning, integration with
> apps etc), here's where PhoneGap or alike come into play.
>
> One excellent resource you can consult: http://caniuse.com/
>
> - A
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rails-oceania/-/Ac1Xs_LgpaMJ.
> 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] mobile frameworks

2011-12-28 Thread Julio Cesar Ody
My 2 cents: use JavaScript (Backbone.js), HTML, and should you end up
needing to go native for hardware access, say, use phonegap.

jQuery Mobile, while it does sort out a large array of issues related to
mobile browsers incompatibilities, it's a lot slower than rolling your own,
mostly around page transitions. So know what you're building and apply it
accordingly.



On Wednesday, December 28, 2011, Robert Gravina 
wrote:
> Hello from Tokyo!
>
> I've been living under a rock as far as Rails and the surrounding
> ecosystem has progressed over the last couple of years while I
> maintained a Rails 2.3 app enviously looking on as everyone played
> with all the new cool toys. Well, I still have to do that next year
> but may get some time to develop some smartphone mobile applications,
> or at least front-ends for some Rails app... probably nothing too
> taxing, maybe audio/video playback but that's about it aside from your
> usual tap-process-change the UI stuff.
>
> So, just wondering if any of you esteemed ladies and gentlemen have
> used any of the mobile frameworks out there, like Titanium etc., and
> can recommend any of them? Do you use HTML/CSS/Javascript
> cross-platform, or do you develop two apps in plain Objective-C and
> Java? Or Ruby compiled to something that runs on the phone? Or some
> other setup that I've never heard of due to living under the
> aforementioned rock for so long?
>
> Some or all of these features would be nice (assuming that you use one
> of the cross-platform frameworks):
>
> * Being able to target iPhone and Android without rewriting the whole
> application.
> * Ruby or JavaScript-based development.
> * Open Source
>
> I guess that's about it.
>
> Thanks!
>
> 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-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] DNS hosting question!

2011-08-14 Thread Julio Cesar Ody
Expensive, but it works well with Heroku and a bunch of other stuff:

dnsimple.com



On Mon, Aug 15, 2011 at 4:35 PM, Michael Pearson  wrote:
> That reminds me.
> I need to move my site's DNS off of linode.
> And I keep thinking "ooh, I should register that domain" but keep getting
> scared away by the skeezy nature of most popular registrars.
> So - recommendations for .com domain resellers, preferably offering a
> nameserver solution as well?
> Bonus points for great UI and/or an API, minus points for crappy advertising
> / overuse of stock photography.
>
> --
> Michael Pearson
> The Bon Scotts; http://www.thebonscotts.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] New in Town

2011-07-31 Thread Julio Cesar Ody
Hey Will,

one other upcoming event worth attending would be SydJS (sydjs.com).
RSVP over at the website and make sure you come for the next one.


P.S.: I worked with Will before briefly. He's a cool guy.



On Mon, Aug 1, 2011 at 9:14 AM, Will Marshall  wrote:
> Hi,
>
> I'm Will, a Rails developer from NZ, moved to Sydney on Friday last
> week. I'll be looking around for a job over the next few weeks, but I
> have two questions of more immediate relevance before I start this
> particular ball rolling.
>
> Firstly, would anyone be interested in catching up for coffee and
> having a chat about employment, Rails work, etc in Sydney? It'd be
> good to hear your experiences directly. It's ethnography, right?
>
> Secondly, other than the meetups @ Trinity Bar, is there anything
> regular and social that I should be attending?
>
> Thanks!
> -W
>
> --
> You received 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] RVM in Production

2011-07-27 Thread Julio Cesar Ody
Which is what I said on the first email I sent to the thread. Michael
was talking specifically about sandboxing gems.


On Thursday, July 28, 2011, Dmytrii Nagirniak  wrote:
>
> On 28 July 2011 12:25, Julio Cesar Ody  wrote:
>
>
> @ Michael: agreed, that's what Bundler is for. Again, should you
> always run your apps on the same version of Ruby, it is a waste of
> time.
>
> That's not why RVM exists. If everything you run is on one ruby version then 
> there's no point of using RVM at all.In this case RVM is a tool that solves 
> no problem.
>
>
> But if you do need multiple versions of Ruby - RVM is the right tool for the 
> job.
> At least that's my view on it.
>
>
>
>
> On Thu, Jul 28, 2011 at 12:22 PM, Pat Allan  wrote:
>> I don't like the idea of checked-in .rvmrc files at all - granted, I don't 
>> work with any large teams though :)
>>
>> --
>> Pat
>>
>> On 28/07/2011, at 12:15 PM, Michael Pearson wrote:
>>
>>> The .rvmrc thing was the easiest to work around, and if we'd really needed 
>>> them, I would have either hacked/forked RVM. I'm the only developer at my 
>>> work that thinks that .rvmrc checked into a repo is a bad idea :) (gemsets? 
>>> that's what bundler is for! and we're all using ruby-1.9.2 anyway!)
>>>
>>> It was the constant changes to the install process / defaults that killed 
>>> it for me.
>>>
>>> On Thu, Jul 28, 2011 at 12:01 PM, Julio Cesar Ody  
>>> wrote:
>>> Yeah, I read it.
>>>
>>> http://serverfault.com/questions/227510/is-it-possible-to-skip-rvmrc-confirmation
>>>
>>>
>>>
>>> --
>>> Michael Pearson
>>> The Bon Scotts; http://www.thebonscotts.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.
>>
>>
>
> --
> You received 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] RVM in Production

2011-07-27 Thread Julio Cesar Ody
@ Michael: agreed, that's what Bundler is for. Again, should you
always run your apps on the same version of Ruby, it is a waste of
time.

@ Pat: me neither. That usually fixes a lot of problems all around.



On Thu, Jul 28, 2011 at 12:22 PM, Pat Allan  wrote:
> I don't like the idea of checked-in .rvmrc files at all - granted, I don't 
> work with any large teams though :)
>
> --
> Pat
>
> On 28/07/2011, at 12:15 PM, Michael Pearson wrote:
>
>> The .rvmrc thing was the easiest to work around, and if we'd really needed 
>> them, I would have either hacked/forked RVM. I'm the only developer at my 
>> work that thinks that .rvmrc checked into a repo is a bad idea :) (gemsets? 
>> that's what bundler is for! and we're all using ruby-1.9.2 anyway!)
>>
>> It was the constant changes to the install process / defaults that killed it 
>> for me.
>>
>> On Thu, Jul 28, 2011 at 12:01 PM, Julio Cesar Ody  wrote:
>> Yeah, I read it.
>>
>> http://serverfault.com/questions/227510/is-it-possible-to-skip-rvmrc-confirmation
>>
>>
>>
>> --
>> Michael Pearson
>> The Bon Scotts; http://www.thebonscotts.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.
>
>

-- 
You received 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] RVM in Production

2011-07-27 Thread Julio Cesar Ody
Yeah, I read it.

http://serverfault.com/questions/227510/is-it-possible-to-skip-rvmrc-confirmation




On Thu, Jul 28, 2011 at 11:59 AM, Michael Pearson  wrote:
> On Thu, Jul 28, 2011 at 11:56 AM, Julio Cesar Ody 
> wrote:
>>
>> P.S.: it's probably not flawless, but reasons not to use RVM in
>> production more often than not come down to "I feel it's wrong". The
>> rest seems to circle around not knowing the tool too well.
>>
>
> We originally used RVM in prod to get around the Ruby VS Debian farnarkle.
> See previous email as to why this didn't work out well.
> --
> Michael Pearson
> The Bon Scotts; http://www.thebonscotts.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] RVM in Production

2011-07-27 Thread Julio Cesar Ody
I think you think so because, as you put it, you're a newcomer to RVM.
There's a lot of ifs which may or may not apply to the server you're
running your applications on.

I know more developers who write Ruby based on the install they have
locally on their machines than developers who know the difference. Are
you running apps on your server that rely on language features that
match the ones you have on your development machines? If yes, then you
just don't need it. Granted, it's unlikely you'll run a bunch of Ruby
apps, each using a different version of Ruby, on the same server. But
the answer to your question depends on whether that's the case or not.

I use RVM on a VM I run my website and a couple of other things. It's
all Ruby 1.9. I don't really need it. It has never gotten in the way
anyway. Just rather have my rubies and gems sandboxes away from each
other.


P.S.: it's probably not flawless, but reasons not to use RVM in
production more often than not come down to "I feel it's wrong". The
rest seems to circle around not knowing the tool too well.




On Thu, Jul 28, 2011 at 11:43 AM, Mike Bailey  wrote:
> It occurred to me that RVM *could* result in ops guys feeling like the
> waiter in LA Story.
> http://youtu.be/z-CrML0BzOA
> "I'll have a half double decaffeinated half caf with a twist of lemon"
> While RVM is great for developer workstations, to me it doesn't seem right
> for production environments. A slightly longer explanation of my reasoning
> is here: http://mike.bailey.net.au/2011/07/rvm-in-production/
> What are your experiences?
>
> - Mike
>
> e. m...@bailey.net.au
>
> w. mike.bailey.net.au
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>

-- 
You received 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] Pimp my architecture!

2011-04-14 Thread Julio Cesar Ody
I'm all for what the author likes, so that's a good enough reason for
him to stick to symbols. But this being a DSL and all, and the fact
it'll be declared at load time, nice is what this should be all about
:)



On Fri, Apr 15, 2011 at 11:22 AM, Clifford Heath
 wrote:
> On 15/04/2011, at 11:14 AM, Dave Newman wrote:
>>
>> I still like symbols just because though...
>
> +1
>
> Symbols don't look as nice, but they cost less, because Ruby doesn't
> need to construct a new mutable instance every time you execute that
> line of code, as it does with strings.
>
> Not usually a problem in a DSL, but still something to think about.
>
> Clifford Heath.
>
>>
>> On Fri, Apr 15, 2011 at 11:05 AM, Julio Cesar Ody 
>> wrote:
>> Here's my take:
>>
>> class Stuff
>>  fields do
>>   singleline    'code'
>>   multiline      'itinerary'
>>   age_range   'age', label: 'Infante age range'
>>   options       'size', options: %w(Small Medium Large)
>>  end
>> end
>>
>> Some thoughts:
>> - Don't use symbols just because.
>> - Have label be extrapolated from the field name, unless specified
>> otherwise.
>> - Use Ruby 1.9.
>>
>>
>>
>>
>>
>> On Fri, Apr 15, 2011 at 10:54 AM, Dave Newman 
>> wrote:
>> > I'll probably keep the field definitions in code for now. To define them
>> > I'm
>> > thinking a DSL along the lines of this:
>> > def field_definitions
>> >   FieldDefinitions.create do
>> >     category :tour do
>> >       single_line :code, :label => 'Code'
>> >       multiline   :itinerary, :label => 'Itinerary'
>> >       age_range   :age_range, :label => 'Infante age range'
>> >       options     :size, :label => 'Size',
>> >                          :options => %Q{Small Medium Large},
>> >                          :default => 'Medium'
>> >     end
>> >   end
>> > end
>> > Love me some instance_eval!
>> > On Fri, Apr 15, 2011 at 10:10 AM, Michael Cindric
>> >  wrote:
>> >>
>> >> Its a good way to go. We did something similar for a client rendering
>> >> out
>> >> dynamic data.
>> >> The only thing l would do different is find a better way to define the
>> >> fields so that you dont have to manage them in the class but rather a
>> >> more
>> >> dynamic way should the types of products change alot
>> >>
>> >> On 15/04/2011, at 9:50 AM, Dave Newman wrote:
>> >>
>> >> I have a design issue I want to walk through.
>> >> I'm building a Rails 3 app which will hold products from a variety of
>> >> different companies. I'd like to define a large set of fields and each
>> >> product can select the fields that are applicable to it.
>> >> The field types will be single line text fields, multi line text
>> >> fields,
>> >> radio or select options, checkbox options, dates, durations or
>> >> something
>> >> more custom. I'll need to be able to dynamically render the fields
>> >> based on
>> >> this type for edit and show.
>> >> My current idea is to use MongoDB and store everything in a Hash on the
>> >> Product.
>> >> 
>> >> I just created this on
>> >> stackoverflow:
>> >> http://stackoverflow.com/questions/5670975/dynamic-fields-with-rails-3
>> >> Looking for any and all suggestions, critiques and criticisms!
>> >> --
>> >> Dave Newman ∴ http://whatupdave.com ∴ @whatupdave
>> >>
>> >> --
>> >> You received 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.
>> >>
>> >> Kind Regards,
>> >> ……..
>> >> Michael Cindrić | Sentia
>> >> Software Developer
>> >>
>> >>
>> >> e: michael.cind...@sentia.com.au  |  t: +61 2 8003 5216  |  m: 0403 526
>> >> 226 |  f: 

Re: [rails-oceania] Pimp my architecture!

2011-04-14 Thread Julio Cesar Ody
Here's my take:

class Stuff
  fields do
singleline'code'
multiline  'itinerary'
age_range   'age', label: 'Infante age range'
options   'size', options: %w(Small Medium Large)
  end
end

Some thoughts:
- Don't use symbols just because.
- Have label be extrapolated from the field name, unless specified otherwise.
- Use Ruby 1.9.





On Fri, Apr 15, 2011 at 10:54 AM, Dave Newman  wrote:
> I'll probably keep the field definitions in code for now. To define them I'm
> thinking a DSL along the lines of this:
> def field_definitions
>   FieldDefinitions.create do
>     category :tour do
>       single_line :code, :label => 'Code'
>       multiline   :itinerary, :label => 'Itinerary'
>       age_range   :age_range, :label => 'Infante age range'
>       options     :size, :label => 'Size',
>                          :options => %Q{Small Medium Large},
>                          :default => 'Medium'
>     end
>   end
> end
> Love me some instance_eval!
> On Fri, Apr 15, 2011 at 10:10 AM, Michael Cindric
>  wrote:
>>
>> Its a good way to go. We did something similar for a client rendering out
>> dynamic data.
>> The only thing l would do different is find a better way to define the
>> fields so that you dont have to manage them in the class but rather a more
>> dynamic way should the types of products change alot
>>
>> On 15/04/2011, at 9:50 AM, Dave Newman wrote:
>>
>> I have a design issue I want to walk through.
>> I'm building a Rails 3 app which will hold products from a variety of
>> different companies. I'd like to define a large set of fields and each
>> product can select the fields that are applicable to it.
>> The field types will be single line text fields, multi line text fields,
>> radio or select options, checkbox options, dates, durations or something
>> more custom. I'll need to be able to dynamically render the fields based on
>> this type for edit and show.
>> My current idea is to use MongoDB and store everything in a Hash on the
>> Product.
>> 
>> I just created this on
>> stackoverflow: http://stackoverflow.com/questions/5670975/dynamic-fields-with-rails-3
>> Looking for any and all suggestions, critiques and criticisms!
>> --
>> Dave Newman ∴ http://whatupdave.com ∴ @whatupdave
>>
>> --
>> You received 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.
>>
>> Kind Regards,
>> ……..
>> Michael Cindrić | Sentia
>> Software Developer
>>
>>
>> e: michael.cind...@sentia.com.au  |  t: +61 2 8003 5216  |  m: 0403 526
>> 226 |  f: +61 2 9223 4151
>>
>> www.sentia.com.au
>>
>> IMPORTANT
>> This message contains privileged and confidential information intended
>> only for the use of the recipient. If you are not the intended recipient of
>> this message you are hereby notified that you must not disseminate, copy or
>> take any action in reliance on it. If you have received this message in
>> error please notify sentia immediately.
>>
>> --
>> You received 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.
>
>
>
> --
> Dave Newman ∴ http://whatupdave.com ∴ @whatupdave
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>

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



Re: [rails-oceania] Re: [SYD] Meetup, Tuesday April 12th

2011-04-12 Thread Julio Cesar Ody
Of course we should. If anything, it tells that we're at least smart
enough to hear them out.

>From the initial announcement of the night, I understood there'd be
some people from Heroku talking about the platform. Now reading it
again, it was clearly a misunderstanding. You did disclose who would
be talking about what, and nowhere it says "here to talk about
Heroku's tech".

And personally, I think they sounded alright. If they stick to what
they said they'd do, Heroku will be fine. Time will tell, though!




On Wed, Apr 13, 2011 at 10:29 AM, Matt Allen  wrote:
> Hey All;
>
> So, it's the morning after the night before and we've all had a chance
> to let last night's Heroku/Salesforce presso sink in.
>
> A few have expressed some discontent on the twitters but I thought I'd
> get some feedback here.
>
> It was a bit of an experiment from my perspective, so I really have
> one question for you all.
>
> If a company, that has a something to offer us wants to sponsor the
> night like last night, should we do it?
>
> Matta
>
> PS. as a side note, I was expecting something geekier from them,
> however IMHO it was interesting and the free wine helped a lot.
>
> On Tue, Apr 5, 2011 at 6:28 PM, Matt Allen  wrote:
>> Evening All;
>>
>> We have a bit of a special event coming up on for the next Sydney RORO
>> which is on Tuesday the 12th of April.
>>
>> We have 3 guys from Salesforce.com/Heroku coming to give a 10-15
>> minute presso on Heroku.  It'll be weighted heavily towards the geeky
>> aspects of the service as opposed to being a marketing spiel.
>>
>> They are also putting $1,000 behind the bar for our drinking pleasure
>> and bringing some schwag along to give away.
>>
>> So, given this may be a slightly different evening than normal I asked
>> the guys whether they'd be up for some ad-hoc Q&A and they said they'd
>> love that.  They asked for us to come prepared with
>> questions/experiences with Heroku.
>>
>> So, as long as no-one objects the schedule will be:
>>
>> 6pm - rock up and socialise
>> 7pm - 7:15pm Presentation about Heroku
>> 7:30pm - 8?  Q & A Session with the Heroku guys.
>> 8pm - Drinking the rest of them bar tab.
>>
>> Everyone OK with that?  I'm just waiting on the names and twitter
>> handles of the guys speaking, will reply here when I get them.
>>
>> 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-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 Twitter moving away from Rails?

2011-04-08 Thread Julio Cesar Ody
> - One of the reasons to abandon RoR is that twitter is using less
> pages now, mostly are API/ajax. so they cannot be benefited from RoR
> as before.

Which is to say: they were probably rendering pages and doing things
very much close to a vanilla Rails app, then their architecture
changed to a JS app querying the API, and they figured they didn't
need a framework with all of Rails' features.

A fine decision from an architectural point of view. But in no way a
statement regarding how good/bad Rails is.

-- 
You received 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] MVC Architecture for JavaScript Applications

2011-02-27 Thread Julio Cesar Ody
Ah, and before anyone says that pushState means the server will get
actual URLs on request, and thus it can render content regardless of
JS, I get that.

What I'm saying is that the single point of failure they introduced by
having their web app/page hybrid sort of thing rely on hashbangs can
also be solved by sourcing the JS app from not just 1 URL. It's not so
much of a problem without an easy solution.



On Mon, Feb 28, 2011 at 8:56 AM, Julio Cesar Ody  wrote:
> What sucks is when the difference between a web application and a web
> page isn't clear, and people throw a technique out on the account of
> that.
>
> And for the record: were Gawker they using pushState instead, the
> problem would've happened anyway. Except we don't see this API getting
> criticism because, well, it's HTML5.
>
>
>
>
> On Mon, Feb 28, 2011 at 8:35 AM, Gareth Townsend  
> wrote:
>> Everyone heading down this path should read up on why Hash Bang URL's suck:
>> http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs
>> On 26/02/2011, at 6:20 PM, Korny Sietsma wrote:
>>
>> I saw this - it ties in with a lot of thinking I've had lately.
>> I have a talk half planned on the future of web development - my personal
>> feeling is that with javascript now on in the vast majority of browsers, and
>> with Google at least allowing for SEO on ajax hash-bang URLs, the days of
>> generating html on the server are rapidly running out.
>> My favourite app architecture at the moment:
>> - MongoDB for persistence, serving up JSON (well, BSON)
>> - Sinatra for the Domain / Model layer, mostly sending JSON back to the
>> browser (ok, it might have a handful of html pages, but they're rare)
>> - A fat client in Javascript / JQuery on the client - possibly with MVC if
>> the app is complex enough, possibly using a library (see below) - though
>> rolling your own is also quite viable.
>> - Handlebars.js for client-side templating, to actually build the html.
>>  (and it means if you must build html server-side, you can share your
>> mustache templates on both layers)
>> And browser state managed through the dreaded # anchors.  Html5 and
>> browser.pushstate might make them redundant one day, but for now they just
>> work.
>> There are many big wins if you build apps this way - not least, real
>> separation of concerns, and great testability.
>> I'd go further into this, but I have to go... might add some more later.
>> Some libraries that are looking cool in this area:
>> - Sammy.js
>> - Backbone.js
>> - Sproutcore (I believe - haven't looked at it myself, I prefer lower-level
>> libraries rather than "do everything")
>> You may say I'm a dreamer... but I'm not the only one.
>> - Korny
>>
>> On Sat, Feb 26, 2011 at 2:02 PM, jamesl  wrote:
>>>
>>> I thought the readers here would appreciate this article:
>>>
>>>
>>> http://peter.michaux.ca/articles/mvc-architecture-for-javascript-applications
>>>
>>> --
>>> You received 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.
>>>
>>
>>
>>
>> --
>> Kornelis Sietsma  korny at my surname dot com http://korny.info
>> "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-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.
>>
>
>
>
> --
> http://awesomebydesign.com
>



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



Re: [rails-oceania] MVC Architecture for JavaScript Applications

2011-02-27 Thread Julio Cesar Ody
What sucks is when the difference between a web application and a web
page isn't clear, and people throw a technique out on the account of
that.

And for the record: were Gawker they using pushState instead, the
problem would've happened anyway. Except we don't see this API getting
criticism because, well, it's HTML5.




On Mon, Feb 28, 2011 at 8:35 AM, Gareth Townsend  wrote:
> Everyone heading down this path should read up on why Hash Bang URL's suck:
> http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs
> On 26/02/2011, at 6:20 PM, Korny Sietsma wrote:
>
> I saw this - it ties in with a lot of thinking I've had lately.
> I have a talk half planned on the future of web development - my personal
> feeling is that with javascript now on in the vast majority of browsers, and
> with Google at least allowing for SEO on ajax hash-bang URLs, the days of
> generating html on the server are rapidly running out.
> My favourite app architecture at the moment:
> - MongoDB for persistence, serving up JSON (well, BSON)
> - Sinatra for the Domain / Model layer, mostly sending JSON back to the
> browser (ok, it might have a handful of html pages, but they're rare)
> - A fat client in Javascript / JQuery on the client - possibly with MVC if
> the app is complex enough, possibly using a library (see below) - though
> rolling your own is also quite viable.
> - Handlebars.js for client-side templating, to actually build the html.
>  (and it means if you must build html server-side, you can share your
> mustache templates on both layers)
> And browser state managed through the dreaded # anchors.  Html5 and
> browser.pushstate might make them redundant one day, but for now they just
> work.
> There are many big wins if you build apps this way - not least, real
> separation of concerns, and great testability.
> I'd go further into this, but I have to go... might add some more later.
> Some libraries that are looking cool in this area:
> - Sammy.js
> - Backbone.js
> - Sproutcore (I believe - haven't looked at it myself, I prefer lower-level
> libraries rather than "do everything")
> You may say I'm a dreamer... but I'm not the only one.
> - Korny
>
> On Sat, Feb 26, 2011 at 2:02 PM, jamesl  wrote:
>>
>> I thought the readers here would appreciate this article:
>>
>>
>> http://peter.michaux.ca/articles/mvc-architecture-for-javascript-applications
>>
>> --
>> You received 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.
>>
>
>
>
> --
> Kornelis Sietsma  korny at my surname dot com http://korny.info
> "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-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.
>



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



Re: [rails-oceania] [Hack Night] Wednesday 23rd Feb

2011-02-22 Thread Julio Cesar Ody
Yes.


On Wed, Feb 23, 2011 at 10:21 AM, Dave Newman  wrote:
> Will we be able to test this?
> $ curl http://nswbusdata.info/ptipslivedata/getptipslivedata
> No such PTIPS live data file has been uploaded yet
> On Wed, Feb 23, 2011 at 10:16 AM, Chris Herring
>  wrote:
>>
>> Wash out your heathen mouth!
>>
>> On Wednesday, 23 February 2011 at 10:15 AM, Rufus Post wrote:
>>
>> And some tests? lol
>>
>> On Wed, Feb 23, 2011 at 10:03 AM, Julio Cesar Ody 
>> wrote:
>>
>> Damn, a whole Rails app for this?  :)
>>
>> https://github.com/mynameisrufus/nswbus/blob/master/config/routes.rb
>>
>> Let's Sinatra this bugger tonight and add some gradients
>> (metaphorically speaking) to that interface.
>>
>>
>>
>> On Wed, Feb 23, 2011 at 9:08 AM, Rufus Post  wrote:
>> > Up late last night putting together a server (generously provided by Job
>> > Futures) for mine and Nicks app we slapped together on saturday, I'm
>> > probably going to write a long running process for it tonight because it
>> > currently does not update (its supposed to every minute).
>> > Anyway everyone is more than welcome to hack on it tonight (encouraged
>> > even):
>> > http://nswbus.info/
>> > https://github.com/mynameisrufus/nswbus
>> >
>> >
>> > Cheers,
>> > Rufus
>> > On Mon, Feb 21, 2011 at 12:02 PM, Josh Price  wrote:
>> >>
>> >> There will definitely be one in March. I'll aim to give everyone a bit
>> >> more notice next time.
>> >> Cheers,
>> >> Josh
>> >> On 21/02/2011, at 12:00 PM, Daryl Manning wrote:
>> >>
>> >> Damn, would totally love to come but have already locked that night
>> >> out.
>> >> Still having one in March?
>> >> ciao !
>> >> Daryl.
>> >>
>> >> On Mon, Feb 21, 2011 at 10:16 AM, Josh Price  wrote:
>> >>>
>> >>> Hi everyone,
>> >>> Hack Night is back!
>> >>> After a slightly slow start to the year (due to midweek public
>> >>> holidays)
>> >>> we're back for 2011. For those who haven't come along before, we spend
>> >>> an
>> >>> evening working on various code problems, mini-projects or open
>> >>> source.
>> >>> Sometimes there's a theme, sometimes not. We want you to work with
>> >>> different
>> >>> people and different code than you do in your day job (and have fun
>> >>> too).
>> >>> Thanks to the inimitable Lachlan Hardy, hosting us first up is
>> >>> Ninefold
>> >>> and we'll have space for 20. Ninefold are also generously supplying
>> >>> the beer
>> >>> and pizza.
>> >>> The plan for the evening is to try to use some of the datasets from
>> >>> Apps4NSW (http://data.nsw.gov.au/).
>> >>> Wednesday 23rd February 2011
>> >>> 6pm til 10ish
>> >>> Ninefold
>> >>> Level 15, 2 Market Street
>> >>> Sydney NSW 2000
>> >>> Sign yourself up over on the wiki:
>> >>>
>> >>>
>> >>> http://wiki.rubyonrails.com.au/index.php/Rorosyd_hack_meetup#Hack_Night_.40_Ninefold
>> >>> See you there!
>> >>> 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.
>> >>
>> >>
>> >> --
>> >> You received 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 becau

Re: [rails-oceania] [Hack Night] Wednesday 23rd Feb

2011-02-22 Thread Julio Cesar Ody
Damn, a whole Rails app for this?  :)

https://github.com/mynameisrufus/nswbus/blob/master/config/routes.rb

Let's Sinatra this bugger tonight and add some gradients
(metaphorically speaking) to that interface.



On Wed, Feb 23, 2011 at 9:08 AM, Rufus Post  wrote:
> Up late last night putting together a server (generously provided by Job
> Futures) for mine and Nicks app we slapped together on saturday, I'm
> probably going to write a long running process for it tonight because it
> currently does not update (its supposed to every minute).
> Anyway everyone is more than welcome to hack on it tonight (encouraged
> even):
> http://nswbus.info/
> https://github.com/mynameisrufus/nswbus
>
>
> Cheers,
> Rufus
> On Mon, Feb 21, 2011 at 12:02 PM, Josh Price  wrote:
>>
>> There will definitely be one in March. I'll aim to give everyone a bit
>> more notice next time.
>> Cheers,
>> Josh
>> On 21/02/2011, at 12:00 PM, Daryl Manning wrote:
>>
>> Damn, would totally love to come but have already locked that night out.
>> Still having one in March?
>> ciao !
>> Daryl.
>>
>> On Mon, Feb 21, 2011 at 10:16 AM, Josh Price  wrote:
>>>
>>> Hi everyone,
>>> Hack Night is back!
>>> After a slightly slow start to the year (due to midweek public holidays)
>>> we're back for 2011. For those who haven't come along before, we spend an
>>> evening working on various code problems, mini-projects or open source.
>>> Sometimes there's a theme, sometimes not. We want you to work with different
>>> people and different code than you do in your day job (and have fun too).
>>> Thanks to the inimitable Lachlan Hardy, hosting us first up is Ninefold
>>> and we'll have space for 20. Ninefold are also generously supplying the beer
>>> and pizza.
>>> The plan for the evening is to try to use some of the datasets from
>>> Apps4NSW (http://data.nsw.gov.au/).
>>> Wednesday 23rd February 2011
>>> 6pm til 10ish
>>> Ninefold
>>> Level 15, 2 Market Street
>>> Sydney NSW 2000
>>> Sign yourself up over on the wiki:
>>>
>>> http://wiki.rubyonrails.com.au/index.php/Rorosyd_hack_meetup#Hack_Night_.40_Ninefold
>>> See you there!
>>> 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.
>>
>>
>> --
>> You received 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.
>



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



Re: [rails-oceania] env-aware jQuery includes (or, how to avoid an embarrassing meeting)

2011-02-20 Thread Julio Cesar Ody
Alternative, from html5boilerplate.com:



!window.jQuery && document.write(unescape('%3Cscript
src="js/libs/jquery-1.4.2.js"%3E%3C/script%3E'))




On Mon, Feb 21, 2011 at 11:54 AM, Tim McEwan  wrote:
>
> Step 1. Grab a copy of your production data so you can do a proper demo of 
> your app
> Step 2. Forget that you don't have net in the cafe; all the javascript fails
> Step 3. Go back to your office and whack this in your app:  
> https://gist.github.com/836481
> I know it's probably obvious to most of you, but just in case...  Also 
> seeking ideas on how to make it more elegant as it's a bit of a monster.
>
> Cheers,
> --
> Tim McEwan
>
> --
> You received 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.



Re: [rails-oceania] A Rubyist in Sydney

2011-02-19 Thread Julio Cesar Ody
Clarification: Alex is getting here on the 24th, so it would be the Monday
after that (28th).





On Sat, Feb 19, 2011 at 3:40 PM, Ryan Bigg  wrote:

> Sounds good, I could do that too.
>
>
>
> On 19/02/2011, at 14:45, Gabe Hollombe  wrote:
>
> I could do a Monday meetup for evening drinks/food.  Anywhere in the city
> works for me.  Keep me posted. =-)
> -g
>
> On Sat, Feb 19, 2011 at 2:32 PM, Julio Cesar Ody < 
> julio...@gmail.com> wrote:
>
>> The next RORO meetup would be the week after the next.
>>
>> Who's up for some beers with Alex perhaps Monday/Tuesday night?
>>
>>
>>
>> On Sat, Feb 19, 2011 at 2:03 PM, Alex MacCaw < 
>> macc...@gmail.com> wrote:
>>
>>> Hi all, I'm a Ruby developer from the UK and I'll be in Sydney next
>>> Thursday (24th), for about 2 weeks.
>>> It'll be my first time in Australia, so greatly looking forward to it.
>>> I've heard lots about Sydney and its great beaches.
>>> I'm not sure any of your meetups coincide with my two week visit, but it
>>> would be great to catch a drink with any of you.
>>>
>>> A bit about me: Ruby/JS developer, traveling for a year, writing a book
>>> for O'Reilly on JavaScript App Development as I go.
>>> <http://github.com/maccman>http://github.com/maccman
>>>  <http://github.com/maccman/juggernaut>
>>> http://github.com/maccman/juggernaut
>>> <http://alexmaccaw.co.uk/>http://alexmaccaw.co.uk
>>>
>>> Thanks! Alex
>>>
>>> --
>>> You received 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://groups.google.com/group/rails-oceania?hl=en.
>>>
>>
>>
>>
>> --
>> <http://awesomebydesign.com>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>
>> 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.
>



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



Re: [rails-oceania] A Rubyist in Sydney

2011-02-18 Thread Julio Cesar Ody
The next RORO meetup would be the week after the next.

Who's up for some beers with Alex perhaps Monday/Tuesday night?



On Sat, Feb 19, 2011 at 2:03 PM, Alex MacCaw  wrote:

> Hi all, I'm a Ruby developer from the UK and I'll be in Sydney next
> Thursday (24th), for about 2 weeks.
> It'll be my first time in Australia, so greatly looking forward to it. I've
> heard lots about Sydney and its great beaches.
> I'm not sure any of your meetups coincide with my two week visit, but it
> would be great to catch a drink with any of you.
>
> A bit about me: Ruby/JS developer, traveling for a year, writing a book for
> O'Reilly on JavaScript App Development as I go.
> http://github.com/maccman
> http://github.com/maccman/juggernaut
> http://alexmaccaw.co.uk
>
> Thanks! Alex
>
> --
> You received 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.



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

2011-02-15 Thread Julio Cesar Ody
My point is that my impression about work in Sydney at the moment is that
gigs usually require you to work with Ruby and .
And by the way, that's for next week.

I might be operating at a different level from some perhaps. But I'm hugely
disappointed with the local market at the moment, more so because I can't
stop hearing good things about Melbourne, London, and the USA.



On Wed, Feb 16, 2011 at 10:49 AM, Pat Allan wrote:

> Hah, fair point. I don't really hear about demand beyond Ruby work, so my
> view of the bigger picture is definitely flawed.
>
> --
> Pat
>
> On 16/02/2011, at 10:47 AM, Julio Cesar Ody wrote:
>
> > Though the Sydney shortage seems to be for
> Ruby/Java/Ajax/JavaScript/.NET/HTML5/HTML4/HTML3/Linux sort of gig.
> >
> > Just saying.
> >
> >
> >
> > On Wed, Feb 16, 2011 at 10:46 AM, Pat Allan 
> wrote:
> > 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?
> >
> > --
> > Pat
> >
> > On 16/02/2011, at 10:31 AM, Warren Seen wrote:
> >
> > > 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)
> > >
> > >
> > > On 16/02/2011, at 9:53 AM, Tim McEwan wrote:
> > >
> > >> At first I thought they must be so keen to employ us because we're
> cheaper (are we?).  But they want to pair.  I wonder why they're so keen to
> pair with Aussies...  Maybe there's just no American devs left - maybe
> @github has finally succeeded.
> > >>
> > >> --
> > >> Tim McEwan
> > >>
> > >> On Wednesday, 16 February 2011 at 00:01, Rich@thelogicbox wrote:
> > >>
> > >>> Sure you couldn't be tempted stateside?
> > >>> Targeted recruitment for Aussie Rail's devs.
> > >>>
> http://www.seek.com.au/Job/move-to-new-york-10-x-aussie-software-engineers-asap-with-pivotal-labs/in/melbourne/18983303
> > >>>
> > >>> Good to see to new found pivotal revenue stream is being put to good
> > >>> use.
> > >>> Rich
> > >>
> > >>
> > >> --
> > >> You received 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] Re: Rails Contracting in London

2011-02-15 Thread Julio Cesar Ody
Though the Sydney shortage seems to be for
Ruby/Java/Ajax/JavaScript/.NET/HTML5/HTML4/HTML3/Linux sort of gig.

Just saying.



On Wed, Feb 16, 2011 at 10:46 AM, Pat Allan wrote:

> 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?
>
> --
> Pat
>
> On 16/02/2011, at 10:31 AM, Warren Seen wrote:
>
> > 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)
> >
> >
> > On 16/02/2011, at 9:53 AM, Tim McEwan wrote:
> >
> >> At first I thought they must be so keen to employ us because we're
> cheaper (are we?).  But they want to pair.  I wonder why they're so keen to
> pair with Aussies...  Maybe there's just no American devs left - maybe
> @github has finally succeeded.
> >>
> >> --
> >> Tim McEwan
> >>
> >> On Wednesday, 16 February 2011 at 00:01, Rich@thelogicbox wrote:
> >>
> >>> Sure you couldn't be tempted stateside?
> >>> Targeted recruitment for Aussie Rail's devs.
> >>>
> http://www.seek.com.au/Job/move-to-new-york-10-x-aussie-software-engineers-asap-with-pivotal-labs/in/melbourne/18983303
> >>>
> >>> Good to see to new found pivotal revenue stream is being put to good
> >>> use.
> >>> Rich
> >>
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups "Ruby or Rails Oceania" group.
> >> To post to this group, send email to rails-oceania@googlegroups.com.
> >> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> >> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> > To post to this group, send email to rails-oceania@googlegroups.com.
> > To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>
>

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



Re: [rails-oceania] Model logic - is there someway I can use it in the browser?

2011-02-10 Thread Julio Cesar Ody
Rather, from the original question, the problem as I see it is there's a
misunderstanding of what has to be done in order to solve the problem.

What the model does in the back-end doesn't have to be replicated in the
view. Possibly what you'll have is, say, deleting an instance in JS should
remove a row in a . That's nothing the actual Ruby class should even
care about.

And take a look at backbone.js.


On Fri, Feb 11, 2011 at 3:46 PM, Ritchie Young  wrote:

> This is where technologies like Google Web Toolkit (GWT) win. By
> compiling Java bytecodes into Javascript it becomes possible to simply
> code everything in Java. The downside? You have to write everything in
> Java :D
>
> There were some efforts (http://www.ntecs.de/projects/rubyjs/README)
> to compile Ruby code into JS but people they were regarded more as
> experiments and people didn't seem to get too interested in using them
> seriously. Personally, I think it would be a very good thing if I
> could simply write Ruby for both client and server. I've never been
> able to wrap my head around Javascript's prototype based object model.
>
> /Ritchie
>
> On Fri, Feb 11, 2011 at 8:06 AM, Matthieu Stone
>  wrote:
> > Hello,
> > I've got a lot of well tested business logic sitting in my models :: but
> > every time I want to use it, I need to hit my servers.
> > So scaling this is a real problem - particularly if I want do some fancy
> > screen updates based upon streaming data and run some calculations when
> new
> > data arrives.
> > I'd rather not duplicate my logic if I can avoid it.
> > Anyone know of a fancy way to create Javascript versions of my model
> logic,
> > or achieve something similar?
> > 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.
> >
>
> --
> You received 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.



Re: [rails-oceania] Deployment questions

2011-02-10 Thread Julio Cesar Ody
Chris,

are you familiar with https://github.com/mislav/git-deploy ?


On Thu, Feb 10, 2011 at 11:14 PM, Chris Berkhout wrote:

> Hi All,
>
> I'm trying to improve my setup for deploying to a VPS and have run
> into a few questions.
>
> The general idea is to be able to do a git push to an account on the
> VPS and have git hooks do anything necessary on the server side to
> redeploy.
>
> I think some people just have one copy of the app, and when there is
> an update, it's just a git pull/checkout into that live directory.
> If some updated files are written before others, I guess that would be
> okay because running in production they wouldn't be reloaded until the
> server is restarted (at least for code files). Is that right? Is it
> worth having a Capistrano-style multiple version and symlink setup?
>
> If migrations need to be done and the old code is incompatible with
> the new DB schema, would the normal course of action for a low-traffic
> app or an app with periods of low traffic be to take it offline during
> the migration? In an automated setup, would it be normal to assume
> that there are incompatibilities whenever there is a migration?
>
> In a bigger setup, with multiple servers accessing a DB and downtime
> being unacceptable, how would you migrate between conflicting schemas?
> I've been led to believe there is a way, but the best I can think of
> is tricks like breaking down the migration into smaller parts that are
> not incompatible. E.g. rather than radically changing a table in one
> step, have an intermediate step with code that continues to use the
> old table, but migrates individual rows to a new table as they are
> used, then once all data is across do a final redeploy and migration
> that leaves clean final code and deletes the old table.
> Is there some non-tricksy way I'm missing?
>
> Cheers,
> 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.
>
>


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



Re: [rails-oceania] project planning interface thoughts (job?)

2011-01-30 Thread Julio Cesar Ody
Maybe you don't need to replicate MS Project or Omniplan's interface
for it to be usable. Why not a Google Calendar-like one? Personal
preference aside, for the task you just describe, it's suitable.

> - would you stick with Rails/JS or go with 
> Flash/Air/whatever-that-microsoft-one-is?

Rails/JS. Though I'm no expert in Flash/Air to judge how easier/harder
it would be. I tend to think you'd be painting yourself against a
corner by going down that route.

> - how much is a Rails/jQuery guru of the required calibre?

If the requirements are really just the ones you've mentioned,
back-end wise it's dead easy to built. As for the interface, not so
much. But perhaps you don't have to start from scratch →
http://www.queness.com/post/656/10-beautiful-jquery-and-mootool-calendar-plugins

> - do you think the time estimate is feasible?

Yes. Should the requirements stay as such.




On Mon, Jan 31, 2011 at 5:13 PM, Tim McEwan  wrote:
> Hi All,
> I want to build a MS Project/Omniplan-style project planning interface in a
> web browser.  I'm really keen for jQuery & HTML5 and stuff, but if it's
> going to be a ludicrous undertaking, I'd settle for something like Flash.
>  We basically need to allocate team members to tasks and then time to the
> team members, but ease of use for non-techies is key, so we need things to
> be draggable.
> I'm thinking me (Rails moderate, no jQuery) + one Rails/jQuery guru for two
> months @ 35 hours/week oughtta do it.  Am I dreaming?
> If you'd be so kind, please send me your thoughts on:
> - would you stick with Rails/JS or go with
> Flash/Air/whatever-that-microsoft-one-is?
> - do you think the time estimate is feasible?
> - how much is a Rails/jQuery guru of the required calibre?
> - would you like to be that guru? *
> - no really, am I dreaming?
> * It'd have to be onsite at UTS, if you're interested.
> Cheers,
> --
> Tim McEwan
> Sent with Sparrow
>
> --
> You received 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.



Re: [rails-oceania] Making rubygems Just Work

2011-01-24 Thread Julio Cesar Ody
I must be too lucky then, but every time a gem wouldn't install for
me, it's because a dependency wasn't installed. Then I'd install said
dependency and the gem would install no problems.

> * Maybe this is why some people install everything via Debian packages
> rather than rubygems

Yikes!  :)

Tip: use Bundler + RVM, create mini-sandboxes for each app you need.
Then you can go nuts with gemsets and just chuck them whenever you're
done.

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



Re: [rails-oceania] What are the cases to use fixtures/factory girl over mock framework?

2011-01-19 Thread Julio Cesar Ody
Fixtures is too broad of a concept to be dismissed entirely. When
Rails introduced it (not to say it got invented at that stage),
fixtures were YAML files containing properties for AR models. *that*
in particular can, in general, be done more effectively with
factory-like classes, since it helps with the problem of your test
suite being tied to the sanity of the fixtures themselves. i.e.:
you'll need to maintain your fixtures as well as the test suite.

However, say you're writing a class that processes HTML. It's pretty
likely you're better off having a bunch of fixture HTML files, one for
each case it could possibly face, rather than writing a builder of
sorts, since it could get pretty complex and end up defeating the
purpose of using factories altogether.

This isn't an excellent example, but the point is: there's a threshold.



On Thu, Jan 20, 2011 at 4:33 PM, Joshua Partogi  wrote:
> Hi all,
>
> Can anyone explain what are the cases when to use fixtures/factory
> girl over mock framework? Or can we use mock framework without the
> need to use fixtures/factory girl these days?
>
> Thanks heaps for sharing.
>
> Kind regards,
> Joshua.
>
> --
> http://twitter.com/jpartogi
>
> --
> You received 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.



Re: [rails-oceania] iPhone browser simulators

2011-01-17 Thread Julio Cesar Ody
ORLY. My fault for using Quicksilver and basically never looking into
configuring it properly other than themes.

By the way Alfred's ugly. That's all.



On Tue, Jan 18, 2011 at 9:21 AM, Bodaniel Jeanes  wrote:
> 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.
>
>



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



Re: [rails-oceania] iPhone browser simulators

2011-01-17 Thread Julio Cesar Ody
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.



[rails-oceania] rack-pagespeed presentation slides

2011-01-11 Thread Julio Cesar Ody
Slides for this night's RORO Sydney presentation can be found here:
http://rack-pagespeed-preso.heroku.com/

Grazie!


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



Re: [rails-oceania] rorosyd December is on NEXT Tuesday, December 14 (from 7pm)

2010-12-10 Thread Julio Cesar Ody
Depending on how things go for me over the weekend, I might present on
rack-pagespeed.



On Sat, Dec 11, 2010 at 5:24 AM, Jason Crane  wrote:
> Hi everyone,
>
> Bit of a slow month in terms of getting talks together, but Luke has stepped 
> up to talk about scaling MongoDB, and I'll give a quick overview of non-code 
> related stuff I've been involved in over the past few years and why it's 
> important to anyone who codes.
>
> Details:
>
> Tuesday December 14 - 6:30 for a 7pm start!
> the Trinity Bar (upstairs)
> 505 Crown St, Surry Hills, NSW 2010
> http://tinyurl.com/6emfna
>
> Looking forward to seeing you there. There are rumours of generous community 
> members shouting beers!
>
> 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.
>
>



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



Re: [rails-oceania] Business addresses

2010-12-04 Thread Julio Cesar Ody
+1 to that. I did it for the now defunct whatsforsteaktoday. Upside
it's entirely client side, and since Google just knows everything
there is to know, it's almost impossible it won't return anything.


On Sunday, December 5, 2010, Jason Crane  wrote:
> I wrote some code to take a business name, and a postcode and do an address 
> lookup via google ajax search. (had local db of postcodes/suburbs and 
> lat/long co-ords to centre the search). I then present the users with a 
> dropdown to select their address from a list (after wrangling the json).
>
> The only downside is that google needs to know about the business, and it 
> will usually return multiple addresses.
>
> I'm sure others have more elegant solutions - but mine works :)
>
> J
>
> On 05/12/2010, at 6:53 AM, 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.
>
>

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



Re: [rails-oceania] Javascript: prototype or jquery?

2010-11-30 Thread Julio Cesar Ody
It's like those Rails 3 with an embedded Sinatra app examples: it's
nice that you can do that, but seriously?

That, minus the cool, of course  :)

ps: IMO


On Wed, Dec 1, 2010 at 9:14 AM, Carl Woodward  wrote:
> You can combine the two but I would try and avoid that. It is a lot
> more to download, particularly if your js is at the top of the file.
> And the jQuery.noConflict() needs to be precisely placed. But of
> course we all have our javascript at the bottom of the file these days
> :)
>
>
>
>
>
> On Wed, Dec 1, 2010 at 9:01 AM, Richard Forster
>  wrote:
>> You can combine both at the same time (I do), but I would go with the JQuery
>> drop in replacement.
>> Prototype is fine, but there is much more happening with JQuery, so if your
>> currently modest needs
>> expand JQuery is more likely to satisfy them than Prototype.
>>
>> Richard Forster
>>
> On 12/1/2010 at  8:43 am, in message
> , Michael Cindric
>  wrote:
>> Use jquery alot cleaner and yes u will loose those effects but jquery has
>> its on plus i can use the UI library
>>
>> On 01/12/2010, at 8:42 AM, chris hulbert wrote:
>>
>> Hi all,
>> I've just started building a new rails app, and have hit the stage
>> where i want to start with some javascript form validation.
>> I'm just wondering, do more people use jquery or prototype these days?
>> Is it an easy thing to switch to jquery or does it affect all the
>> rails helpers?
>> Also, do i lose scriptaculous's effects if i go jquery?
>> Or should i just stick with prototype.
>> Cheers all!
>>
>> --
>> You received 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.
>>
>>
>> Kind Regards,
>> ..
>> Michael Cindric | Sentia
>> Software Developer
>>
>>
>> e: michael.cind...@sentia.com.au  |  t: +61 2 8003 5216  |  m: 0403 526
>> 226 |  f: +61 2 9223 4151
>>
>> www.sentia.com.au
>>
>>
>> IMPORTANT
>> This message contains privileged and confidential information intended only
>> for the use of the recipient. If you are not the intended recipient of this
>> message you are hereby notified that you must not disseminate, copy or take
>> any action in reliance on it. If you have received this message in error
>> please notify sentia immediately.
>>
>> --
>> You received 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.
>
>



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



Re: [rails-oceania] Javascript: prototype or jquery?

2010-11-30 Thread Julio Cesar Ody
Does it matter that much if you're using Rails' helpers? (legit question)

If you weren't, I'd say give both a go and pick the one with the API
you like best. They're both excellent, well maintained libs.



On Wednesday, December 1, 2010, chris hulbert  wrote:
> Hi all,
> I've just started building a new rails app, and have hit the stage
> where i want to start with some javascript form validation.
> I'm just wondering, do more people use jquery or prototype these days?
> Is it an easy thing to switch to jquery or does it affect all the
> rails helpers?
> Also, do i lose scriptaculous's effects if i go jquery?
> Or should i just stick with prototype.
> Cheers all!
>
> --
> You received 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.



Re: [rails-oceania] Generating a url for "soft" classes

2010-11-28 Thread Julio Cesar Ody
Blacklisting certain resource names is pretty common practice when you
adopt the "/fruits/new", "/fruits/delete", "/fruits/banana"
convention. If you choose to adopt that, there's no way around having
to making certain names invalid.

Unless of course you choose not to follow that convention. E.g.:
/fruits/list/banana. Not bad is it.

At the end of the day, no search engine is dumb enough not to
understand what's in the URL. And no one except the developers will
play with the URLs.



On Mon, Nov 29, 2010 at 4:36 PM, Korny Sietsma  wrote:
> ... and what happens in 6 months time, when someone creates a product type
> called "foo" ?
> Or will you build a whole pile of validators and special rules to make sure
> you never make a product with the a type that matches a route?  Seems ugly
> to me.
>
> - Korny
> On Mon, Nov 29, 2010 at 4:25 PM, Dmytrii Nagirniak  wrote:
>>
>> On 29 November 2010 16:10, Korny Sietsma  wrote:
>>>
>>> If you want to both match "/cars/123" and also match /foo/bar" where
>>> "foo" isn't a product type... then you have a big problem just waiting to
>>> happen, imho.
>>
>> Not necessarily.
>> I think that the solution of Bayan Khalili will work pretty well here.
>> Assuming that `Product.dynamically_generated_list_of_available_types`
>> returns ['cars', 'boats'].
>> Then the URLs "/cars/123" and "/boats/123" will match correctly the
>> "products#show" route.
>> While "/foo/bar/" will not, but will possibly match an other route.
>> It should only be defined AFTER the "products#show" route.
>> So far it looks like a pretty good solution.
>> Cheers,
>> Dima.
>>>
>>> - Korny
>>> On Mon, Nov 29, 2010 at 1:57 PM, Pat Allan 
>>> wrote:

 I think the issue would more be the routing with the rest of the app -
 '/:type/:id' would match  a good number of paths you wouldn't actually want
 it to.

 I think Andy's got it spot on before - you do indeed use that route, but
 it becomes your catch-all, at the end of your routes file.

 There's still issues with being able to generate the paths neatly, but a
 helper method or two should take care of that. The following may even work:

  def link_to(*args, &block)
    if args[1] && args[1].is_a?(Product)
      # build your product path here
    else
      super
    end
  end

 Could definitely be cleaner, but that's what I'd start with.

 --
 Pat

 On 29/11/2010, at 1:51 PM, Ben Hoskings wrote:

 > How about just:
 >
 >     match '/:type/:id' => 'products#show'
 >
 > And then in ProductsController#show, use params[:id] and params[:type]
 > ?
 >
 > Ben
 >
 > On 29 November 2010 09:44, Mark Ratjens  wrote:
 > The requirement is to have urls of the form
 >
 > /cars/23
 >
 > not
 >
 > /products/cars-23
 >
 > This will, of course, be my fall-back position if I can't get exactly
 > what is wanted.
 >
 > Also, I'm already using friendly_id ... my id's aren't actually
 > numeric, but it doesn't change the problem. I've read though the 
 > friendly_id
 > doco ... it doesn't seem to help with adapting the url beyond id's and
 > nested id's. I have read at least one post where Norman Clark has 
 > answered
 > saying that friendly_id is not  aimed at solving routing issues.
 >
 >
 > On Mon, Nov 29, 2010 at 9:35 AM, Andy Shen  wrote:
 > You could consider mapping the following route to products controller
 >
 > /products/:type/:id
 >
 > or have a look into friendly_id, which is along the same concept of
 > to_params, maybe use id like car-23, truck-37, boat-126
 >
 > On 28 November 2010 23:52, Mark Ratjens  wrote:
 > > Suppose I have an ActiveRecord called Product. I can have different
 > > kinds of
 > > products, say "cars", "trucks" and "boats." Because of the nature of
 > > the
 > > app, there is no need to subclass product (i.e, the data and
 > > behaviour is
 > > the same) ...
 > >
 > > ... but for SEO reasons I want to be able to generate links in the
 > > app that
 > > include the kind of product, not just "product", for example:
 > >
 > > /cars/23
 > > /trucks/37
 > > /boats/126
 > >
 > > not:
 > >
 > > products/23 etc
 > >
 > > The thing I am tousling with is generating the appropriate link in
 > > the app.
 > > Is there some way I can adapt:
 > >
 > > link_to @product.name, @product
 > >
 > > to automagically generate a link with the right product kind ... or
 > > do I
 > > need to do it long-hand, i.e:
 > >
 > > link_to @product.name, :controller => @product.kind, :action =>
 > > :show, :id
 > > => :product
 > >
 > > ?
 > >
 > > Thanks in advance
 > >
 > > Mark
 > >
 > >
 > > --
 > > You received this message because you are subscribe

Re: [rails-oceania] How do you develop starting from design

2010-11-23 Thread Julio Cesar Ody
> Unfortunately such designs often do not follow a lot of Rails
> conventions (REST is ignored, Flash messages are not used, Validation
> errors presented in an absolutely different way etc).

No, what they're ignoring is the fact that one screen has many states.
E.g.: when showing notices and when not, when a user is logged in and
when not, etc, etc.

You either have one mockup per screen state (not hard to do), or you
have one PSD /AI file (if you or your designer uses Adobe tools, but
could as well be Pixelmator) and layers that you can trigger their
visibility to show/hide different states.

So sure, if you can, get them to understand Rails or what have you.
But the problem can also be solved by you telling the designers all
the possible states of a screen.


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



Re: [rails-oceania] [syd announce] Hack Night tomorrow

2010-11-22 Thread Julio Cesar Ody
Good thing is when you have a handful of open sauce projects yourself  :)

Or is that against the rules?


On Tue, Nov 23, 2010 at 10:39 AM, Josh Price  wrote:
> Hello hackers,
> Hack Night is on tomorrow night and will be held at the ThoughtWorks office.
> We'll be working on Open Source projects this month, so bring your ideas for
> a patch to your favourite gem.
> Wednesday 24th November, 2010
> 6pm til 10ish
> ThoughtWorks
> Level 8, 51 Pitt Street
> Sydney NSW 2000
> There will be refreshments and pizza.
> If you're there after 6pm call James on 0413 878 644 or Josh on 0415 366 251
> to be let in.
> RSVP below, there is room for 16 people, add yourself to the waiting list if
> it fills up.
> http://wiki.rubyonrails.com.au/index.php/Rorosyd_hack_meetup
> See you there!
> 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.
>



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



Re: [rails-oceania] RSpec: How to test that a class's initializer method invokes some method?

2010-11-21 Thread Julio Cesar Ody
> What's the (public) behaviour you want to see?

And that's the question that, if everyone doing BDD asked themselves
before writing specs, we'd have more BDD and less test-nutty driven
development.

ps: no stab meant at anyone! :)

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



Re: [rails-oceania] Newbie Query: ActiveRecord multi-thread/process safe and auto-reload how-to

2010-11-18 Thread Julio Cesar Ody
I find that using versioning for records that are shared among many
users always turns out to be a good choice from a usability
perspective. Display somewhere on the interface something like:

- Update by John Doe at 
- Update by Jane Doe at 
- etc...

Make those changes viewable by the users, so everyone knows where
changes are coming from.

If you're concerned about generating too many records, save up to,
say, 20 versions maximum.



On Fri, Nov 19, 2010 at 10:09 AM, Mikel Lindsaar  wrote:
> On 19/11/2010, at 9:04 AM, Dmytrii Nagirniak wrote:
>
> On 19 November 2010 08:47, Korny Sietsma  wrote:
>>
>> You should still think carefully about what it is you are trying to do.
>> If you just catch the optimistic locking exception, and automatically
>> reload and save, then you are ensuring the second user's change overwrites
>> the first.  The second user will never see the first user's change.  That's
>> not really optimistic locking at all.
>
> Yep. And this is how AR (basically most of ORMs) works by default - last
> wins. Nothing to do with the locking.
> Wondering why not just use a proper database transaction if atomicity is a
> requirement?
>
> Well as Korny was saying transactions and row locking won't help you if both
> data sets are valid.
> Simplistic model, but you could do this with a person record.  First user is
> updating the phone from invalid data to something, second user is updating
> the address from blank to something.  However, the second user sees there is
> invalid data in the phone number field and decides to be a good citizen and
> remove the invalid data, making it blank.
> With transactions you guarantee that both actions run, completely.
> So if the transactions hit the database as:
> First User
> Second User
> The result would be that the phone number is blank and the address has been
> updated.
> If they run:
> Second User
> First User
> The result is what we want, both phone number and address have been updated.
> This is handling merge conflicts, and a good way to do this is row version
> locking and reloading data before committing:
> When the first user reads the record, the person object has a version of "1"
> The second user reads the record at the same time and the person object also
> has a version of "1"
> The first user submits his changes to the phone number, and the object
> before save, inside a transaction, reads the row and makes sure the version
> number is still 1.  It is, so it commits the changes,  increments the
> version number to "2" and then commits the transaction.
> The second user then submits his updates, the person model does the same
> thing, opens a transaction, reloads the row, finds the version number has
> changed, and then aborts and shows the new data to the user at which point
> the process can repeat.
> Fun stuff if you don't catch it.
>
>
> 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.
>



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



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

2010-11-16 Thread Julio Cesar Ody
Yeah, and pat-down searches.

Oh wait, that's not what we're talking about right?

Carry on then!


On Wed, Nov 17, 2010 at 1:03 PM, Clifford Heath
 wrote:
> On 17/11/2010, at 12:07 PM, Anthony Richardson wrote:
>>
>> ... 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.
>
> Industrial espionage is more common than you'd think too, and with
> the rise of systems like Xero (for example) there's a valid concern
> about a competitor buying your customer list from an underpaid
> employee of theirs in India (supposing they have any).
>
> Clifford Heath.
>
> --
> You received 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.



Re: [rails-oceania] Handlers - rethinking the Rails' controller / view interface

2010-11-02 Thread Julio Cesar Ody
That's because what I actually meant to say that *UNDERSCORE* case is
bad in JavaScript, not camelcase.

That would also explain why in my reply to Ben I defended camelcase,
after saying it's bad in my first email to this thread.



On Wed, Nov 3, 2010 at 2:01 PM, Ben Schwarz  wrote:
> Yeah… I kinda knew that I was right ;)
> I really wanted to hear if Julio was serious and maybe dive into his
> thoughts being that he writes so much javascript. :-)
>
>
> On 3 November 2010 13:59, David Goodlad  wrote:
>>
>> On Wed, Nov 3, 2010 at 1:36 PM, Ben Schwarz  wrote:
>>>
>>> Just wondering if you can break down why you think camel-case is a bad
>>> idea in javascript is a bad idea?
>>> I'm asking because I always believed that this was the style as defined
>>> by mr crockford.
>>
>> You're definitely right, Ben. The standard library uses camelCase, and
>> most popular open source libraries use it as well. For no objective reason
>> my brain prefers to look at the more ruby-ish under_score style, but when I
>> hack on JS I always use camelCase to be consistent with the rest of the JS
>> ecosystem.
>> 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-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.



Re: [rails-oceania] Handlers - rethinking the Rails' controller / view interface

2010-11-02 Thread Julio Cesar Ody
That was a tongue-in-cheek remark :)

I got no statistics to back my assertion, but the majority of awesome
code I've read through the time I've been using JS was camelcase.
Also, all of JS 1.6 native methods are camelcase.

Whether that's enough to be called a convention, I don't know. Maybe
the crowd I hang out with leans that way. Given it ain't *wrong* to do
otherwise, I say it's a matter of preference.

And I haven't read much of Crockford's stuff, so I wouldn't know.


On Wed, Nov 3, 2010 at 1:36 PM, Ben Schwarz  wrote:
> Just wondering if you can break down why you think camel-case is a bad idea
> in javascript is a bad idea?
> I'm asking because I always believed that this was the style as defined by
> mr crockford.
>
> On 3 November 2010 09:33, Julio Cesar Ody  wrote:
>>
>> I have a few comments:
>>
>> First, camel-case in JS is bad.
>>
>> Second, you presented a list of things, then said "We expect our views
>> to do all this!". I personally have a very 90s view of JS apps:
>> client/server. Meaning they act as clients to a back-end, and talk to
>> it via HTTP. They have their own templates, and can be built in many
>> different ways. But in essence it's just very easy to understand:
>>
>>    <->    
>>
>> The server has but a small set of static HTML that it sends back to
>> the client to bootstrap the JS app. And everything else is just JSON
>> the server is sending back. Which by the way can be used by any other
>> non browser based clients I might write for my app. Testing that is so
>> easy it's not even fun.
>>
>> Also, there's good frameworks coming out by the day, like Sammy.js and
>> Knockout. So building JS apps is trivial once you learned a framework.
>>
>> So maybe I'm missing something, but I think it's a non-issue.
>>
>>
>> On Tue, Nov 2, 2010 at 7:56 PM, Jason Langenauer
>>  wrote:
>> > Hey all,
>> >
>> > After rewriting similiar Javascript code over and over to interface
>> > with controllers, I've thought a bit about the relative interfaces
>> > between the various bits of Rails, and extracted the repeating code
>> > into framework of sorts. I've been using it at my current contract,
>> > where it's reduced the amount of view code I've had to write by quite
>> > a bit, and - as a bonus - made it quite a bit easier to refactor.
>> >
>> > The basic concept I've called a "handler", which is best thought of as
>> > a client-side reflection of a Rails controller.
>> >
>> > The basic thinking is as follows:
>> >
>> > - In a AJAX heavy application, the HTTP protocol is not necessarily
>> > the best interface between the controller and the view.
>> > - By writing a handler, it becomes possible to expose a pure
>> > Javascript interface to the controller, and relegate the HTTP
>> > transactions to being something "internal" to the handler/controller
>> > pair. This lets us work at just one level of abstraction in the view
>> > code.
>> > - We haven't embraced convention-over-configuration in the Javascript
>> > side of web applications as nearly as much as on the Ruby side;
>> > Handlers do this (by inferring route helper names, and DOM classnames
>> > to bind events to), and I've been impressed with the efficiency gains
>> > I've made so far.
>> >
>> > The code is up on Github at:
>> >
>> > http://github.com/jasonl/handlers
>> >
>> > I'd love to hear any feedback / suggestions.
>> >
>> > 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.
>> >
>> >
>>
>>
>>
>> --
>> 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.
>&

Re: [rails-oceania] Handlers - rethinking the Rails' controller / view interface

2010-11-02 Thread Julio Cesar Ody
I have a few comments:

First, camel-case in JS is bad.

Second, you presented a list of things, then said "We expect our views
to do all this!". I personally have a very 90s view of JS apps:
client/server. Meaning they act as clients to a back-end, and talk to
it via HTTP. They have their own templates, and can be built in many
different ways. But in essence it's just very easy to understand:

   <->

The server has but a small set of static HTML that it sends back to
the client to bootstrap the JS app. And everything else is just JSON
the server is sending back. Which by the way can be used by any other
non browser based clients I might write for my app. Testing that is so
easy it's not even fun.

Also, there's good frameworks coming out by the day, like Sammy.js and
Knockout. So building JS apps is trivial once you learned a framework.

So maybe I'm missing something, but I think it's a non-issue.


On Tue, Nov 2, 2010 at 7:56 PM, Jason Langenauer
 wrote:
> Hey all,
>
> After rewriting similiar Javascript code over and over to interface
> with controllers, I've thought a bit about the relative interfaces
> between the various bits of Rails, and extracted the repeating code
> into framework of sorts. I've been using it at my current contract,
> where it's reduced the amount of view code I've had to write by quite
> a bit, and - as a bonus - made it quite a bit easier to refactor.
>
> The basic concept I've called a "handler", which is best thought of as
> a client-side reflection of a Rails controller.
>
> The basic thinking is as follows:
>
> - In a AJAX heavy application, the HTTP protocol is not necessarily
> the best interface between the controller and the view.
> - By writing a handler, it becomes possible to expose a pure
> Javascript interface to the controller, and relegate the HTTP
> transactions to being something "internal" to the handler/controller
> pair. This lets us work at just one level of abstraction in the view
> code.
> - We haven't embraced convention-over-configuration in the Javascript
> side of web applications as nearly as much as on the Ruby side;
> Handlers do this (by inferring route helper names, and DOM classnames
> to bind events to), and I've been impressed with the efficiency gains
> I've made so far.
>
> The code is up on Github at:
>
> http://github.com/jasonl/handlers
>
> I'd love to hear any feedback / suggestions.
>
> 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.
>
>



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



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

2010-11-01 Thread Julio Cesar Ody
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]  
> [image:
> Twitter]  [image: Tungle.me] 
> [image:
> Blog] 
> 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.



Re: [rails-oceania] Design Book Recommendations

2010-10-27 Thread Julio Cesar Ody
Not saying that specifically to Mark who asked the original question.

If you're like me and you tend to fall asleep while reading a book
that tells you why the 3rd frontal lobe from left to right tends to
like two squares next to each other when you put a rounded border at
the bottom left of the right hand one, I suggest you do two things:

1) pick up some good skills with Illustrator, Photoshop, or
Pixelmator. There's an endless stream of blogs with good material.
Chris Spooner runs a pretty good one at
http://www.blog.spoongraphics.co.uk/.
2) learn a style of design (e.g.: print design, posters, ads), then
apply it to web design. Seriously, anyone can design websites that
just look like... websites. That's like saying food should have just
salt and nothing else.

Then yeah, read books such as the ones suggested.



On Thu, Oct 28, 2010 at 12:33 PM, Chris Darroch  wrote:
> I'd highly recommend "The Humane Interface" by Jef Raskin. Raskin was a
> psychologist who worked in human computer interaction, and subsequently the
> book has a heavy focus on people's cognitive capabilities as applied to user
> interface design. It doesn't deal with implementation details, but touches
> upon key aspects of interaction design and good interface design practices
> in general. Well worth the read.
>
> On Thu, Oct 28, 2010 at 11:17 AM, Dylan Fogarty-MacDonald
>  wrote:
>>
>> #1 - The Elements of Typographic Style by Robert Bringhurst
>> Dylan
>>
>> On 28 October 2010 11:11, wolfeidau  wrote:
>>>
>>> Gday all
>>>
>>> Probably opening a large can of worms, but I am interested to get some
>>> recommendations on design related books. I am interested in high level
>>> concepts like spacing, typography and layout more than the technical
>>> side of web design.
>>>
>>> I have read quite a bit on the 960 Grid System and it's use in say
>>> blueprint CSS, but I am looking for something a bit higher level.
>>>
>>> I was quite impressed by the design presentation I caught at a
>>> Melbourne RoR meeting quite some time ago and would like some more
>>> inspiration to improve my skills in this area.
>>>
>>> Just started in getting into some RoR development so any ideas
>>> observations on how others bridge design with rails development would
>>> be interesting as well.
>>>
>>> Looking forward to making the transition to Rails, from many years of
>>> Java development, in future :)
>>>
>>> Cheers,
>>>
>>> Mark Wolfe
>>>
>>> --
>>> You received 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.
>



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



Re: [rails-oceania] Best practice for managing page meta-data?

2010-10-18 Thread Julio Cesar Ody
> * the page title

Controller. Use helper methods if there's logic behind determining that.

> * the  description

Shouldn't change for each page.

> * whether it is the currently active tab

Two options: on the Ruby side, do a check on the current
controller/action or URL, or in JavaScript, using the same.

> * the breadcrumbs that lead to the page

What Ivan said.

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



Re: [rails-oceania] Suggestions on RAD environments for ROR

2010-10-05 Thread Julio Cesar Ody
Remember that whatever visual components you're talking about here are
actually happening in the browser. There's nothing coming from Rails
itself. Rails will merely render HTML through helpers or what have
you, which is what you can see in the browser.

Sounds like you're looking for is something like Dreamweaver, with
Rails integration. I wouldn't be surprised if there was already a way
to get that going.


On Wed, Oct 6, 2010 at 10:25 AM, Daryl Moulder  wrote:
>
> Hi all,
>
> I managed to convince my client that Ruby on Rails was a good way to go for a 
> particular project.  This is great as it will enable me to build up a 
> commercial portfolio.
>
> One issue though is they come from a Delphi background and would like some 
> kind of RAD environment.  I have pointed out the Ruby in Steel Visual Studio 
> plugin.
>
> Does anyone else know of any gui builder type environments for Rails?
>
> I'm hoping to work mainly in Textmate in OS X and then get it working with a 
> gui builder so that they can see the interface more clearly.
>
> Thanks for any suggestions.
>
> 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.
>
>



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



Re: [rails-oceania] Re: Speeding up view rendering?

2010-09-22 Thread Julio Cesar Ody
> Yes, doing this as a trigger would make sense...

Couldn't say it better myself (orly), so:

"Database constraints and/or stored procedures make the validation
mechanisms database-dependent and can make testing and maintenance
more difficult. However, if your database is used by other
applications, it may be a good idea to use some constraints at the
database level. Additionally, database-level validations can safely
handle some things (such as uniqueness in heavily-used tables) that
can be difficult to implement otherwise"

http://edgeguides.rubyonrails.org/active_record_validations_callbacks.html



On Thu, Sep 23, 2010 at 3:34 PM, Mikel Lindsaar  wrote:
>> Is there much speed differences between using before/after filters versus 
>> using observers? Is one faster than the other from experiences?
>
> None. It all still happens in the same thread.  It is just a programming 
> idiom.
>
> Unless you redesign your app to handle multiple threads that is
>
>> Or is this sort of thing is much better handled internally in the db through 
>> triggers and stored procedures (which would be a shame as I think's rail's 
>> approach to it is quite nice..)
>
> Yes, doing this as a trigger would make sense, as it allows the data to 
> return and rails to get on with its job and let the database handle the 
> auditing and compliance (which, by the way, is something that transactional 
> databases are VERY good at).
>
> Using Rails for all this back end stuff is actually violating a bit of your 
> MVC in my view.  The model doesn't really need to know about caching values 
> in the database to speed up future requests.
>
> Having said that, I feel your pain.  I had a similar situation, but with 
> multiple databases and I had no choice but to put all that "after update do 
> all this caching stuff" in the view.
>
> However, I did manage to split a fair bit out into worker processes, which is 
> another option you have.
>
> Regards
>
>
> Mikel
> 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.
>
>



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



Re: [rails-oceania] Tracking unique visitors

2010-09-22 Thread Julio Cesar Ody
Your best bet is googling around to see how people have addressed the
need for tracking subdomains. I'm sure you're not the first with that
requirement.

And yes, GA will do the job. I recall coming across a handful of gems
for fetching the data from Google's servers if you eventually need to
do that.


On Thu, Sep 23, 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.
>
>



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



Re: [rails-oceania] Speeding up view rendering?

2010-09-21 Thread Julio Cesar Ody
I'm just more inclined to believe that it's not the templating engine
per se. Even if you were rendering huge templates, loops with helpers
inside or what have you, I really doubt that erubis is to blame.

I can't verify Mikel's claim that the logs would show as if the query
happened in the controller, but if that's the case, then I got no
idea.

> Are you doing anything like render @my_massive_array_of_records ? because 
> that stuff
> can be slow.

Not if it's all in memory already. And of course, depends on how
complex the partial for rendering a result is, but still... his log
paste showed ~4s renders.

> Not sure if this still applies to Rails 3, but I have found some startling 
> performance
> improvements if you move the initialisation of @my_massive_array_of_records 
> out of the
> controller and into a helper that is called form the view ... not exactly 
> MVC-pure :-)

Neither is the approach of query-on-use that ActiveRecord 3 takes. But
that's what makes Arel's wheels spin.


On Wed, Sep 22, 2010 at 1:41 PM, Ivan Vanderbyl  wrote:
> Are you doing anything like render @my_massive_array_of_records ? because 
> that stuff can be slow.
>
> On 22/09/2010, at 1:39 PM, Steve Hoeksema wrote:
>
>> While there are quite a few of them (~40) in the complex example, each
>> query is quite fast (<1ms). I haven't done any optimization of the
>> queries yet, so it's possible the queries themselves are slow, but not
>> the ones that Rails picks up in the logs.
>>
>> I was hoping to avoid dealing with caching as this is merely an
>> internal app, but I guess I'll need to go that way or have a look at
>> RPM.
>>
>> On Wed, Sep 22, 2010 at 3:35 PM, Mikel Lindsaar  wrote:
>>> On 22/09/2010, at 1:23 PM, Julio Cesar Ody wrote:
>>>> Isn't that because ActiveRecord 3 only fires the actual query when you
>>>> enumerate a collection? (read: call #each, for example)
>>>
>>> While this is true, the Rails 3 instruments library wraps those calls 
>>> pretty well.  And IIRC will separate that out correctly in the log.
>>>
>>> The most effective way to go about fixing this view rendering problem is a 
>>> good partial caching implementation.
>>>
>>> Mikel
>>> 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.
>>>
>>>
>>
>>
>>
>> --
>> Steve Hoeksema
>> +64 224 623 269
>>
>> --
>> You received 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.



Re: [rails-oceania] Speeding up view rendering?

2010-09-21 Thread Julio Cesar Ody
Isn't that because ActiveRecord 3 only fires the actual query when you
enumerate a collection? (read: call #each, for example)

Your problem might still be data-bound.


On Wednesday, September 22, 2010, Steve H  wrote:
> I think this has come up on Roro before (by someone at Envato?) but I
> can't find it through search.
>
> I'm finding that views are becoming by far the slowest part of my app,
> eg for a reasonably complex page:
>
> Completed 200 OK in 841ms (Views: 657.3ms | ActiveRecord: 27.5ms)
>
> Or for a more complex one:
>
> Completed 200 OK in 4093ms (Views: 3968.6ms | ActiveRecord: 115.3ms)
>
> This is for Rails 3 in the default production environment, which I
> understand uses Erubis for view rendering. Is there any way to speed
> this up? Different template engine? Other tricks?
>
> --
> You received 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.



[rails-oceania] slides for my preso

2010-09-14 Thread Julio Cesar Ody
Hey all,

slides for tonight's CSS progressive enhancement can be found at
http://css-progressive-enhancement.heroku.com/

Best viewed on Chrome or Safari latest, if you'd like to see the
transitions in action  :)


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



Re: [rails-oceania] [Announce][Sydney] Dont' forget: rorosyd is on tomorrow night!

2010-09-13 Thread Julio Cesar Ody
It's not my question to answer, but in my opinion, I think it's fair
to allow talks to be *up to* 15 minutes. Heck, I don't know for sure
if mine would go all the way or not.

So to way I see it, if it fits in around say, 10, you're on.



On Tue, Sep 14, 2010 at 8:25 AM, Mark Wotton  wrote:
> On Mon, Sep 13, 2010 at 10:10 AM,   wrote:
>> Hi,
>>
>> Just in case you forgot or want to invite some peers along:
>>
>> Tuesday September 13, at the Trinity Bar – 505 Crown St, Surry Hills, NSW 
>> 2010 (upstairs) 6:30 for a
>> 7pm start!
>> http://tinyurl.com/6emfna
>>
>> We have 4 presentation length (15min) talks:
>> Mark Wotton – (@mwotton) – A Foolish Rubyist’s guide to iPhone hackery
>> Julio Cesar Ody – (@julio_ody) – CSS progressive enhancement
>> Mikel Lindsaar – (@raasdnil) – CDNing, deploying and coding a new Rails 3 app
>> Taylor Luk – (@taylor_luk) – pairjour – gitjour + git hackery + pair 
>> programming
>
> You have 3 presentation length talks :/ sorry, I ended up doing
> nothing but Ruby and PHP support services for two weeks, so I still
> don't have enough to talk about that wouldn't be laughably childish.
> Next month?
>
>
> mark
>
> --
> 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.
>
>



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



Re: [rails-oceania] RailsRumble 2010 - Only Read if you are a Rails or Design Ninja

2010-09-08 Thread Julio Cesar Ody
Apparently in conflict with Web Directions South dates.

http://south10.webdirections.org/


On Thu, Sep 9, 2010 at 3:00 AM, Rex Chung  wrote:
> Isn't the competition in Oct?
>
> Registration Soon (TBA)
> Competition 10/16 — 10/17
> http://blog.railsrumble.com/rules
>
> Would love to join.
>
> Rex Chung
>
>
> On Thu, Sep 9, 2010 at 2:20 AM, Mikel Lindsaar  wrote:
>> Any seriously good Ruby on Rails developers in Australia?
>> (I know, that's throwing down the gauntlet isn't it :)
>>
>> It's about time us Aussies showed the rest of the world what we can do.
>> If you are interested in participating in RailsRumble 2010 (with me) please
>> let me know, I am looking for 1-2 other super awesome team mates to get
>> together with me and code for broke over the RailsRumble weekend.
>> The team limit is 4, I think 3 is a good size, though we could extend to 4
>> if it works.
>> We have 24 hours to form a team and register if we are going to do this, so
>> get in comm fast if you are interested.
>> Registration closes on the 10th of September.
>> My strengths are in API, complex Rails Applications and data structures,
>> testing and deployment.
>> Ideally, I'd like another Rails Dev really good on the design side and
>> another all rounder or UI facing type.
>> More info at: http://railsrumble.com/
>> The competition is the weekend after this, so we have to get cracking if we
>> are going to do it.
>> I think also, we should all be in Sydney or at least able to meet up and
>> hash this out, virtually would be possible if we all sat on Skype or ichat
>> for the weekend but don't think you'll get much free time over that 48
>> hour period, plan to be fully stocked with your favourite caffeinated drink!
>>
>> Mikel Lindsaar
>> RubyX
>>
>> --
>> You received 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.



Re: [rails-oceania] RMagick woes

2010-09-02 Thread Julio Cesar Ody
> Yeah, well, that may well work NOW, but next week? Who knows?

Seriously?

While RMagick might be memleak-ridden, ImageMagick itself is fine. The
dependencies you're talking about don't apply if you don't install it
with all the default flags set (that goes from package manager to
package manager). Though the fact that it installs a bunch of
utilities really doesn't matter. It's just disk space.

I've been using it since I *way* before Ruby and Rails. The only
complain I had was the fact it would install all the X11 dependencies
along. The one fine day I realised it was happening because by default
Gentoo (yeah, long ago) had +thewholeplanet set as options. Removed
that, and suddenly ImageMagick had a fraction of the dependencies it
originally had.

These days installing it on OSX with homebrew is as easy as running a
command a getting a cup of coffee.



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



Re: [rails-oceania] What does it mean by "rails is not scalable"?

2010-08-19 Thread Julio Cesar Ody
For the specific problem you mentioned, you can solve the problem with
EventMachine, in the context of Rails.


On Fri, Aug 20, 2010 at 11:21 AM, Mark Wotton  wrote:
> On Fri, Aug 20, 2010 at 11:19 AM, Julio Cesar Ody  wrote:
>
>>
>> @Mark Wotton: EventMachine. And ah yeah, proper coding.
>>
>
> Ah, but he said Rails doesn't scale, not Ruby:)
>
> mark
>
> --
> 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.
>
>



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



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

2010-08-19 Thread Julio Cesar Ody
Nice paste, btw!

That's called data-uri. http://en.wikipedia.org/wiki/Data_URI_scheme

Google that and you'll find plenty of examples.


On Fri, Aug 20, 2010 at 11:15 AM, Mike Bailey  wrote:
> On Thu, Aug 19, 2010 at 11:56 PM, Chris Lloyd
>  wrote:
>>
>> On Aug 18, 2:44 pm, Dylan Fogarty-MacDonald 
>> wrote:
>> > You could achieve something like this with CSS and no JavaScript:
>>
>> Google's implementation is actually quite a bit more complicated and
>> subtle than what anybody has suggested so far. I suspect that these
>> smaller details were why you were blown away with it (as I was).
>
> You're right that Google have done some groundbreaking innovation
> here. However I'm not aiming for an exact replication of their
> interface (I just don't have the time they had to spend on it!) and
> the suggestions from Mikel, Julio and Dylan were all really helpful.
> Thanks guys!
> On a side note, I was looking into how Google get the images to load
> so quickly. It appears they use ajax requests to retrieve base64
> encoded images and then insert them into the document (like below).
>
> Something I recently discovered is that successive AJAX requests reuse
> the same TCP connection and don't seem suffer from the impact of TCP
> Slow Start the way that normal image loading does. They appear to then
> load the image normally (to get it into the browser cache).
>
> - 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-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.



Re: [rails-oceania] What does it mean by "rails is not scalable"?

2010-08-19 Thread Julio Cesar Ody
Can't believe someone asked that. The anticipation was killing me.
Alright here it goes!

It can mean one of two things: FUD
(http://en.wikipedia.org/wiki/Fear,_uncertainty_and_doubt) as a
mechanism of defense, or bad programmers. Yeah, there's no third
option.

In the first case, it happens when an already established team of
programmers who use a different framework (more often than not,
ASP.NET or Spring) feel threatened and then they seek the one tangent
in the whole idea that, admittedly, can be a problem, as the mean to
convince the higher ups NOT to make a switch that could compromise
their position.

In the latter, it's when framework programmers - people who can write
code in the context of a framework but are rather shitty outside of
that - do things like loading every record in the database with a
Model.all (talking ActiveRecord here) for 3 models. Then the response
takes time to render and they think it's the framework's fault when in
reality they don't know how to use the tool. This is but one example
among an ocean of bad practices that the vast majority of Rails devs
do every day.

At this point in time, there's likely an answer for almost every Rails
problem you could have. It's all a matter of how well informed you
are, and how well you can code and understand what's going on with
your abstractions. Everything stems from that.

@Mark Wotton: EventMachine. And ah yeah, proper coding.







On Fri, Aug 20, 2010 at 11:06 AM, Joshua Partogi  wrote:
> Hi all,
>
> I often hear people say that rails is not scalable. What does it mean
> by that exactly?
>
> Does it mean that:
> 1. Rails can not be clustered?
> 2. Rails can not handle many concurrent users?
> 3. The code gets messy when the apps gets larger?
> 4. The performance is not fast?
>
> I am still confused by these buzzword that I often hear in many
> forums. So what are they actually referring when they say rails is not
> scalable?
>
> Thanks for your feedback.
>
> Kind regards,
> 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.
>
>



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



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

2010-08-19 Thread Julio Cesar Ody
I suggested masonry because, well, it's the quickest way to get to
something like that. For one, Google's looks more like a grid of
floats rather than exploring every but of space (unless I missed it).

About the caveat you mentioned, and I imagine that's probably what you
meant but for the sake of clarification, you only need to have images
having their dimensions pre-specified (or specified on insertion)
because there's no way to determine the image's dimensions until it
loads. Any other element would get away with it. Probably wouldn't
look good if it's a 800px wide paragraph but it definitely would work.

And yeah, it is cool :)

On Thursday, August 19, 2010, Chris Lloyd  wrote:
> On Aug 18, 2:44 pm, Dylan Fogarty-MacDonald 
> wrote:
>> You could achieve something like this with CSS and no JavaScript:
>
> Google's implementation is actually quite a bit more complicated and
> subtle than what anybody has suggested so far. I suspect that these
> smaller details were why you were blown away with it (as I was).
>
> Firstly, they don't do the hovers in CSS as when you hover over an
> image near the edge of the screen, the tooltip actually pushes away
> from the edge. You'd need JS to detect the screen dimensions. They
> also have a slight delay on the tooltip so that you don't get an
> epileptic fit when you move your mouse across the screen. Again,
> something you can't do with cross-browser CSS.
>
> However, what is most impressive about this is not the client side,
> but the processing they are doing on the server. The page isn't using
> anything like jQuery masonry[1]. You can test this by resizing the
> browser window. If you open up the resource inspector in Safari you'll
> notice it makes a HTTP request to get a new set of results whose
> relative ratios fill the grid up perfectly. Not only is Google
> ordering images based on search relevancy but also how well they fit
> in an X by Y grid, together. Their query must also extremely quick
> (and obviously must scale) because there is little delay when you
> resize a window.
>
> If they were using something like jQuery masonry, they would be
> limited to the results they currently had which would certainly lead
> to a less "full" grid.
>
> As cool as it is, Google must only be playing around because they've
> strangely disabled it in Opera. It's a shame that Google's "open
> standards" doesn't extend to it's UI.
>
> Cheers!
>
> Chris
>
> PS. Check out this Google search:
> http://www.google.no/search?hl=no&client=safari&rls=en&q=opera&aq=f&aqi=g10&aql=&oq=&gs_rfai=
>
> See the keyboard in the right hand side of the input bar? HOW COOL!
> Try typing something and watch the keyboard change! :)
>
> [1] Ceveat about jQuery masonry. Whilst it is a cool effect, you need
> to have all the widths/heights of every element defined either in CSS
> or HTML *before* the window:loaded event is fired. If you can't do
> that then you get an ugly flash waiting for window:loaded to fire.
> Also note that document:loaded is different to window:loaded.
>
> --
> You received 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.



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

2010-08-18 Thread Julio Cesar Ody
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.



Re: [rails-oceania] Advice - Bulk SMS Providers suitable for Ruby/Rails

2010-08-09 Thread Julio Cesar Ody




On Tue, Aug 10, 2010 at 4:51 PM, Tim Lucas  wrote:
> On 10/08/2010, at 4:46 PM, Julio Cesar Ody wrote:
>
>> But... how do you spec that?
>>
>> ps: sorry, someone had to ask   :)
>
> http://github.com/lachie/http_vanilli
>
> --
> You received 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.



Re: [rails-oceania] Advice - Bulk SMS Providers suitable for Ruby/Rails

2010-08-09 Thread Julio Cesar Ody
But... how do you spec that?

ps: sorry, someone had to ask   :)


On Tue, Aug 10, 2010 at 4:43 PM, Tim Lucas  wrote:
> On 10/08/2010, at 4:17 PM, James Healy wrote:
>
> I've recently used directsms.com.au. The API is a simple POST one - not
> exactly RESTful, but the documentation is clear and it didn't take long
> to build a small wrapper class.
>
> I can't comment on their support, but setup was fast and painfree.
>
> Their rates aren't as good as some others though, they're north of 20c
> per message in most cases.
>
> I've also used DirectSMS many-a-time, both for outgoing and incoming SMS
> (via a HTTP post to my app)
> For those interested in using them, here's the small DirectSMS wrapper I
> wrote a month ago:
> http://gist.github.com/516805
> I'd be curious what would happen if you passed 5,000 phone numbers as the
> "to" param :) - their API has no docs on limits, but you might want to ask
> them first.
> – tim
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-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.



Re: [rails-oceania] hpricot issues

2010-07-27 Thread Julio Cesar Ody
I can't really tell from that stacktrace if the problem is this, but
you may be hitting the maximum number of open files (and sockets).

Are you on OSX? If so, you can expand that limit with sysctl. Try:

sudo sysctl -w kern.maxfiles=36000

Sets to a bit over twice as much the default. Also, check
kern.maxfilesperproc. And ulimit.




On Wed, Jul 28, 2010 at 10:15 AM, Robbie Shepherd
 wrote:
>
> Does anyone know if there's a maximum number of open connections allowed when 
> using hpricot/net::http?
>
> I have a bunch of xml feeds I need to read via hpricot and write to disk. 
> Whenever I hit it too hard/fast, or when I try to open several files in 
> hpricot in a loop, my app dies.
>
> If I do something like...
>
> arr = [url1, url2, url2]
> arr.each do|d|
>   doc  = Hpricot(open(d))
>   doc.search(blah...)
>   File.open("#{RAILS_ROOT}/xml/#{file_name}.xml", 'w') {|f| f.write doc }
> end
>
> I get:
>
> OpenURI::HTTPError: 500 Internal Server Error    from 
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:277:in
>  `open_http'
>     from 
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:616:in
>  `buffer_open'
>     from 
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:164:in
>  `open_loop'
>     from 
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:162:in
>  `catch'
>     from 
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:162:in
>  `open_loop'
>     from 
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:132:in
>  `open_uri'
>     from 
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:518:in
>  `open'
>     from 
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:30:in
>  `open'
>     from (irb):11
>     from (irb):11:in `each'
>     from (irb):11
>
> Am I missing something here, or is there a better way of doing this? I'm on 
> Ruby 1.8.7 and hpricot 0.8.2
>
> Thanks
> Robbie
>
> --
> You received 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.



Re: [rails-oceania] Re: Organising javascript in rails apps

2010-07-19 Thread Julio Cesar Ody
I stumbled across this tweet today:
http://twitter.com/julio_ody/status/18951903615  Oh wait, that's my own
tweet.

Just one thing to bear in mind when doing headless testing. If portability
is important, you'll wanna make sure that testing gets done not only on one
engine. jSpec supports actual browser testing (invokes whatever browser you
have installed and runs the specs using it). Which is good, but I thought I
should mention that jSpec is no longer maintained by the author, or for that
matter, by anyone I know.

Also, and I'll admit up front that may be out of noobness, but depending on
the sort of crazy you're doing in the DOM, you will have a hard time getting
it to work with jSpec (been there, done that). jSpec presents it's own
interface when running specs, and you're supposed to use a sandbox of sorts
when loading your own HTML. I had specs fail that "manual" testing proved
were working. That happened to a point that I dropped it altogether. The
approach other libraries take is to load the test suite on the real screen
the app is running, which is a lot less problem prone.

And my response to the link Dylan just sent: *do* use closures. But make
sure you export the functions you want to test to an object that's visible
outside of it.




On Tue, Jul 20, 2010 at 11:42 AM, Korny Sietsma  wrote:

> Nice.
> It'd be good if more of these discussions talked about testability though.
>  It seems it should be an important concern when structuring your javascript
> code - how easy is it to test the code outside a browser...
>
> Incidentally, I stumbled across a nice post on testing Raphael-based code:
> http://www.trottercashion.com/2010/04/27/headless-raphael-testing.html
> and a follow up on doing the same with a mocking framework:
>
> http://www.trottercashion.com/2010/05/06/recorder-mock-makes-js-testing-easier.html
>
> - Korny
>
> On Mon, Jul 19, 2010 at 11:26 PM, Dylan Fogarty-MacDonald  gmail.com> wrote:
>
>> Just stumbled across this post which is a good read:
>> http://alexsexton.com/?p=51
>>
>> <http://alexsexton.com/?p=51>Dylan
>>
>>
>> On 24 June 2010 15:35, Dylan Fogarty-MacDonald wrote:
>>
>>> Currently I'm finding myself making classes or jQuery plugins for
>>> individual screens. As time goes on I'll move parts into their own classes
>>> or plugins to DRY things up across the app and take advantage of
>>> opportunities to form tight little reusable modules - i.e. an AJAX uploader
>>> or something for polling. On new applications I'm putting things within a
>>> single global variable, but on existing applications that task is not really
>>> on the radar yet.
>>>
>>> I'm really keen to find a golden solution that suits me. This has been on
>>> my mind for a while. Hopefully soon I'll be closer to that place, but at the
>>> moment I feel like I'm trying out different approaches. I think building on
>>> experience in OO JavaScript will help.
>>>
>>> Dylan
>>>
>>>
>>> On 24 June 2010 15:19, Julio Cesar Ody  wrote:
>>>
>>>> I'm suggesting one file per "Javascript application", and that your
>>>> interface may be comprised of many of those. Another example: at the
>>>> top right hand corner of your dashboard page there's a section which
>>>> allows a user to quickly edit parts of his profile. That in itself
>>>> should be a separate Javascript app, sitting in it's own file.
>>>>
>>>> It doesn't matter if you have a bunch of those. As long as these
>>>> applications can all be retrieved with a single request (read: you're
>>>> bundling/grouping your Javascripts) when in production, you're set.
>>>>
>>>> Might as well pimp it while we're on the subject :), so here goes a
>>>> different solution than Jammit ->
>>>> http://github.com/juliocesar/rack-bundle
>>>>
>>>> Though I recommend Jammit if you're using Rails.
>>>>
>>>>
>>>>
>>>> On Wed, Jun 23, 2010 at 11:49 AM, Steven Ringo 
>>>> wrote:
>>>> > @julio => Thanks for that. I think your preso covers just about
>>>> > everything. I will have a look in more detail.
>>>> >
>>>> > Maybe if you explain what you mean a bit more here, not so much in
>>>> > terms of the code structure but more about the file structure.
>>>> >
>>>> >> Write your JS as a client to the
>>>> >> server's A

Re: [rails-oceania] simple ui widgets

2010-07-08 Thread Julio Cesar Ody
For charts, check this out

http://code.google.com/apis/visualization/documentation/gallery.html

The API is damn easy to use. Check their terms and conditions and data
privacy sections. Might be relevant depending for who you're doing the
work.


On Fri, Jul 9, 2010 at 2:11 PM, Korny Sietsma  wrote:
> The g.Raphael charts are a nice start, imho, but not very complete.  The
> barcharts are probably among the best, and I think there are ways to set
> labels (you'll probably need to view the source).
> But there are some common things that are completely missing from the
> g.raphael stuff, that might be some work to implement:
> - decent date ranges and date scale labelling
> - log scales of any kind
> It was pretty slow at getting changes and bug fixes for a while - now that
> Dmitry is being paid to do this, things might speed up.
> The big plus of g.raphael is that the source is reasonably clean and it's
> based on Raphael, so it's easy to hack.
> Other options I've played with:
> - jqplot is nice for quickly doing reasonably styled graphs, has it's own
> limits but it's pretty powerful
> - flot looked nice, but I had some pain with it; can't really remember what
> now, it's probably another viable option
> - protovis http://vis.stanford.edu/protovis/ is what I'm currently using
> (mostly - I fall back to pure Raphael for some stuff) - it's a quite
> powerful library for complex visualisations.  The big negative is that it is
> all canvas based, so no IE support at all.
> - Korny
>
> On Fri, Jul 9, 2010 at 1:52 PM, Robert Gravina 
> wrote:
>>
>> On 9 July 2010 10:35, Korny Sietsma  wrote:
>> > I *was* hoping someone had built something in Raphael - it seems the
>> > obvious
>> > choice for graphically pretty widgets, rather than stuffing around with
>> > css
>> > and images.
>>
>> Actually I'm also working with bar charts in gRaphael. The default bar
>> char looks great, but it doesn't seem to support labels (in the
>> framework itself).
>>
>> Has anyone done this? It is reasonably simple or is getting the labels
>> aligned/trimmed etc. a fair bit of work?
>>
>> 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.
>> 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.
>



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



Re: [rails-oceania] simple ui widgets

2010-07-08 Thread Julio Cesar Ody
On Fri, Jul 9, 2010 at 1:52 PM, Robert Gravina  wrote:
> ... It is reasonably simple or is getting the labels
> aligned/trimmed etc. a fair bit of work?

In that sense I'd wager it's simpler than using HTML/CSS like
jQuery-UI does since you won't have cross-browser compatibility issues
to look into if you're using Raphael. But probably because googling
around reveals a dozen or so plug and play alternatives, no one
bothered (or not?).


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



Re: [rails-oceania] simple ui widgets

2010-07-08 Thread Julio Cesar Ody
I thought this was about Raphael-based widgets. If not, and you're
using jQuery, check out jQuery-UI. I'm personally not a big fan of it,
but hey, it's code you don't have to write and it's well maintained.



On Fri, Jul 9, 2010 at 11:16 AM, Korny Sietsma  wrote:
> Yeah, I thought about html5 ranges; however while I don't need to support
> IE, I do have a wider audience than just devs, so I probably need to work on
> Firefox 3.6 at least.
> I might use modernizr to allow for html5 ranges where supported, and fall
> back to a simple text box otherwise; or maybe hack together a slider in
> raphael...
> re: scriptaculous slider - I'm using jquery, don't really want to mix in
> scriptaculous as well.  There are some jquery sliders out there, which I
> might consider.
> re: whoever dissed dials - yep, dials was probably a poor example :)
>  Sliders + standard form elements probably cover most of my needs, now I
> think about it further.
> - Korny
> On Fri, Jul 9, 2010 at 11:04 AM, Lachie  wrote:
>>
>> On Fri, Jul 9, 2010 at 9:50 AM, Korny Sietsma  wrote:
>> > Hi - I'm throwing together a page with some Raphael-based graphs and I
>> > want
>> > to add some simple widgets to control the parameters used to draw the
>> > graphs
>> > - things like sliders, dials, simple text boxes to change numeric
>> > values,
>> > etc.
>>
>> Have you considered using html5?
>>
>> http://diveintohtml5.org/forms.html#type-number
>> http://diveintohtml5.org/forms.html#type-range
>>
>> :lachie
>>
>> > This only needs to work on new browsers (no IE) - I'm wondering if
>> > anyone
>> > has any suggestions for where to get/build these widgets.
>> > Most of the libraries out there seem like overkill; they all feel the
>> > need
>> > to support old browsers, and they tend to assume you want to post the
>> > results as a form back to a server.
>> > I just want to call a javascript callback...
>> > I could build my own in Raphael, but that also seems like work; I'll do
>> > that
>> > if I have to, but I'm hoping someone has already done this for me!
>> > Suggestions?
>> > - Korny
>> >
>> > --
>> > 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.
>>
>
>
>
> --
> 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.
>



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



Re: [rails-oceania] Re: Organising javascript in rails apps

2010-06-23 Thread Julio Cesar Ody
I'm suggesting one file per "Javascript application", and that your
interface may be comprised of many of those. Another example: at the
top right hand corner of your dashboard page there's a section which
allows a user to quickly edit parts of his profile. That in itself
should be a separate Javascript app, sitting in it's own file.

It doesn't matter if you have a bunch of those. As long as these
applications can all be retrieved with a single request (read: you're
bundling/grouping your Javascripts) when in production, you're set.

Might as well pimp it while we're on the subject :), so here goes a
different solution than Jammit ->
http://github.com/juliocesar/rack-bundle

Though I recommend Jammit if you're using Rails.



On Wed, Jun 23, 2010 at 11:49 AM, Steven Ringo  wrote:
> @julio => Thanks for that. I think your preso covers just about
> everything. I will have a look in more detail.
>
> Maybe if you explain what you mean a bit more here, not so much in
> terms of the code structure but more about the file structure.
>
>> Write your JS as a client to the
>> server's API. E.g.: a table you can use to read/write data is an app
>> in itself. While it may appear in, say, FruitsController#index, I
>> wouldn't have it mixed up with something else.
>
> @George => I will have a look at your (colleague's) approach. Thanks
> heaps.
>
> Steve
>
> --
> You received 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.



Re: [rails-oceania] Organising javascript in rails apps

2010-06-22 Thread Julio Cesar Ody
*ahem*

http://sydjs-architecting.heroku.com/

Write Javascript apps, not just random methods. Some exceptions apply.
I'm more of a module pattern kind of guy so that's my take. At the end
of the day, it's all a matter of how you like the source written.

As for number 2, not necessarily. Write your JS as a client to the
server's API. E.g.: a table you can use to read/write data is an app
in itself. While it may appear in, say, FruitsController#index, I
wouldn't have it mixed up with something else.

And as for 3, all the way. If you're using Rails, go for Jammit.



On Tue, Jun 22, 2010 at 9:50 PM, Steven Ringo  wrote:
> Hi All,
>
> Just wanted to find out how folks are organising javascript code &
> files in rails apps, and address things such as:
>
> 1. Not polluting the global namespace. Seems to be divided opinion on
> using object literals vs. prototypal inheritance vs. Crockford's
> module pattern.
> 2. Separating code into files that are relevant to the server side
> code e.g. hooking into rails' naming conventions, and having 1 js file
> per view or controller.
> 3. Minifying and combining files in production.
>
> There seem to be some nice tools to address point 3, like sprockets
> and requirejs, but can't seem to find anything convincing about what
> is the best way to handle 1. and 2.
>
> Would be great to hear what you guys are using out there.
>
> Thanks,
>
> Steve
>
> --
> You received 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.



Re: [rails-oceania] RubyConf Oceania - Expression of Interest

2010-06-08 Thread Julio Cesar Ody
My suggestion: create a poll/form on Wufoo and send the link around.

For instance, I'd go depending on a number of factors, such as
location, time of the year, number of participants, and who's giving
talks.


On Wed, Jun 9, 2010 at 10:48 AM, Luke Chadwick
 wrote:
> Hey Everyone,
>     I discovered, in a discussion last night at the Sydney Meetup,
> that there has never been a Ruby/Rails Conference in Australia. I find
> this to be sad, and want to rectify the situation.
>
> I am happy to take a hand in starting to organize an event if there is
> interest in actually seeing it happen.
>
> To get the ball rolling, can I get a show of hands who would attend a
> RubyConf in Sydney?
>
> Regards,
>
> Luke
>
> --
> You received 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.



Re: [rails-oceania] Release of 50and.com

2010-06-02 Thread Julio Cesar Ody
> Oh! I almost forgot, we do actually do one tricky thing. We wrote a plpgsql
> function that made it easier for us to find locations within a certain
> radius.

Which, by the way, can be done in Sphinx (and Thinking Sphinx) too.
I'm assuming it's relevant since you said "finding".


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



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

2010-05-03 Thread Julio Cesar Ody
I actually agree with Gareth. It's a good suggestion, specially if you
think outside of Ruby for a minute.

> There's parts of development other than testing?

Yeah.

-- 
You received 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] Datagrid for Rails

2010-04-28 Thread Julio Cesar Ody
I bet if you google for jQuery/Prototype Data Grid, you'll find more
than you can bear to look through. The Google Visualization API has a
table "component" (hate that word),
http://code.google.com/apis/visualization/documentation/gallery/table.html.

You'll be better off if you define a pattern in your API for handling
mass updates, because that's what a table is: a representation of a
collection, and from your question I take you want it to be editable.
What can do then is devise a way to sync what's in the table with the
back-end.

Write a method that builds an array of objects for each row of your
table and submits that array to the server for updating. If you do
that, you can even roll your own grid without resorting to using a
ready-made plugin/library. That's a win in itself.


On Thu, Apr 29, 2010 at 10:35 AM, Martin Wong  wrote:
> Hi all,
>
> I'm new to the group and also learning the ropes in Rails. Have been viewing
> the posts daily from everyone and I must say this is one of the most
> innovative groups I've been in. Great one guys.
>
> I've got a question and after searching around on the web for a data grid
> solution, I must say nothing good comes to mind.
>
> I'm looking for something which can do a grid, page the results, search the
> results and do an Ajax call (meaning don't need to refresh the page
> everytime).
>
> I've seen the ActiveScaffold which is alright but it fiddles around with too
> many things in the controllers and it's not say very RESTful in my opinion.
>
> I've looked at extJS at the moment which looks to be slick and all but I'm
> not too well versed with their API and am having issues integrating things.
>
> So, I'm opening it out to the group to see what people normally go for as
> opposed to writing code using will_paginate and all.
>
> Thanks in advance,
>
> Martin
>
>
> --
> You received 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.



Re: [rails-oceania] A webapp jam weekend in Sydney

2010-04-27 Thread Julio Cesar Ody
You must be new here.

Railscamp had more node.js than a whole Javascript conference I'm told.


On Wed, Apr 28, 2010 at 4:35 PM, Jared Fraser  wrote:
> except this one is not just rails.
>
> Not available that weekend, but looking forward to see the outcomes!
>
> On Wed, Apr 28, 2010 at 4:29 PM, Ryan Bigg  wrote:
>> This sounds remarkably like RailsRumble, but halved. Perhaps try teaming up
>> with these guys?
>>
>> On 28 April 2010 15:56, Charles Ma  wrote:
>>>
>>> Hi,
>>>
>>> I was referred here by someone from the Silicon Beach community.
>>>
>>> A couple friends and I are running a web app weekend. The idea is to build
>>> a useful and/or interesting web app in 24 hours.
>>>
>>> It's happening this weekend (apologies for the short notice!), and you can
>>> register at:
>>> http://webapp1.eventbrite.com/
>>>
>>> What: Web app jam weekend
>>> Where: Level 1, K17 Seminar room, University of New South Wales, Sydney
>>> When: May 1-2
>>>
>>> We already have a team planning to build a rails app, and it'll be great
>>> to see more rails teams attend and have lots of fun.
>>>
>>> We're also looking for a couple more judges, sponsors, and/or guest
>>> speakers, so give me a shout if you're interested.
>>>
>>> If this turns out well, we'll be looking to try and organise one regularly
>>> a couple times a year. It would be great to get some feed back about what
>>> the Rails community thinks of the event and what you'd like to see happen or
>>> what you'd like to get out of it.
>>>
>>>
>>> Cheers,
>>>
>>> Charles
>>>
>>> --
>>> You received 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.
>>
>>
>>
>> --
>> Ryan Bigg / Radar
>>
>> --
>> You received 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://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.



Re: [rails-oceania] Awesome ruby books

2010-04-25 Thread Julio Cesar Ody
Yeah, the book is an icon along with a lot of other stuff _why did,
but I don't know about it being awesome.

It's like the Rolling Stones throwing a quick cover of Britney half
way through a show: they can because they're already covered as far as
being awesome goes. So if it happens, it won't ruin their cred, though
I'm sure the people who say they liked it said so because they're fans
so reality distortion field applies.

_why's Britney cover was the third chapter of that book.



On Mon, Apr 26, 2010 at 4:08 PM, Ben Hoskings  wrote:
> On 26 April 2010 15:43, Nicholas Sewell  wrote:
>>
>> Yep. The book is probably useful for a fun introduction for people who've
>> never touched the language.
>>
>> There's a fine line between genius and insanity, a line Why crosses in
>> about the third chapter. The logic completely disintegrates to the point
>> where you'll be more confused after reading it. Why's (poignant) guide to
>> Ruby is an amazing book, just not if you want to learn much about Ruby.
>
> It definitely steps up a notch around the third chapter. However useful or
> not the rest of the book is, though, there's plenty of good stuff in the
> first two chapters, and those two alone were worth the price of admission
> for me. I liked the remainder too, even if all it did was made me smile.
> Also, for me, part of the reason I value it so highly is that it got me
> excited. It reveals the ruby world to the new reader as the awesome place
> that it is.
> —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.
>



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



  1   2   >