Re: [rails-oceania] [Melbourne] Ruby Meetup this Wednesday the 29th of June
Hi all. I want to thank you for giving me the opportunity to talk about Fact Based Modelling last night. I hope that even those of you who've heard me before, learned something new about what I've been doing and why I think it's important. Thanks also to those who gave me positive feedback afterwards and who offered to help; please do contact me. If you want more information, read on... Most of the history of the project is in <https://github.com/cjheath/activefacts>, which is also where the master gem comes from; but now the project has been split into a few different gems (you get almost all of them when you "gem install activefacts"). The gems are: activefacts: pulls in the others and provides the "afgen" and "cql" command lines. activefacts-api: The Ruby DSL for fact-based programming. Although this almost stands alone, I am improving it to re-release as the "constellations" gem - almost ready! activefacts-metamodel: The model that defines the capabilities and meaning of a fact-based model (written in CQL), and exports it as Ruby code that uses the API. activefacts-cql: The compiler and verbaliser for the Constellation Query Language activefacts-orm: Provides an input module to convert from NORMA to CQL. activefacts-generators: The old generators framework and many generators. activefacts-rmap: Fact-based to relational mapping for the old generators. Replaced by... activefacts-compositions: The new framework for relational compositions (both for normalised operational schemas and for Data Vault), and new versions of most generators: SQL, Ruby, Rails (schema.rb and ActiveModels), documentation (glossary, graphviz, logical data model). This gem provides the command-line "schema_compositor", and is the only gem not included in "activefacts". You should use this! activefacts-examples: Many example models, in both CQL and ORM (for NORMA, and as image snapshots), and generated to most of the output formats (Rails, Ruby, SQL, etc). You can learn more about the project here: <http://dataconstellation.com/ActiveFacts/> <http://www.infinuendo.com/introduction-to-cql> Clifford Heath, Agile Information Management and Design. Infinuendo Pty Ltd, http://infinuendo.com Data Constellation, http://dataconstellation.com Skype: cjheath, Ph: (+61/0)401-533-540 http://www.linkedin.com/profile/view?id=7819504 > On 28 Jun 2016, at 11:06 AM, Gareth Townsend <gareth.towns...@me.com> wrote: > > Hi All, > > The Melbourne Ruby meet will be happening this Wednesday (the 29th) at 6pm. > > WHEN: Wednesday 29th June, arrive at 6pm for a 6:30pm start, wrapping up > around 9pm. > WHERE: Teamsquare, Level 1, 520 Burke Street, Melbourne > WHAT: Two speakers, plus socialising, food and drinks. > > Our line-up this month is: > > * Maintaining legacy rails application by Armin Sadeghi ⚡️ > * Rebuilding citizenship in the 21st century by Dan Groch. ⚡️ > > There's room for another lightning talk if anyone feels up for talking last > minute. > > All of these details are repeated on Meetup, for those who prefer that as > their source of event information: > http://www.meetup.com/Ruby-On-Rails-Oceania-Melbourne/events/230893256/ > > Yet again, food is sponsored by Envato, Lookahead Search and Redbubble, the > drinks by Zendesk, and the space by Teamsquare. > > If you've any questions or thoughts, get in touch - we're looking forward to > seeing you all there :) > > P.S. Do people use this as a way of know what's happening for Melbourne RORO? > Or have we all moved on to meetup.com? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rails-oceania+unsubscr...@googlegroups.com. > To post to this group, send email to rails-oceania@googlegroups.com. > Visit this group at https://groups.google.com/group/rails-oceania. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at https://groups.google.com/group/rails-oceania. For more options, visit https://groups.google.com/d/optout.
Re: [rails-oceania] Undefined variable becomes nil in rvalue assigment to itself
Furthermore: def foo if false x = 1 end p x end foo prints “nil” because an assignment to x was previously seen (it must be previous) even though it can never be executed. Clifford Heath. > On 14 Jan 2016, at 5:42 PM, pythonic <nicho...@pythonic.com.au> wrote: > > > What’s the thing where the parser has to check local usage to decide syntax? > > The parser tracks locals so it can generate LVAR or VCALL nodes: > > def f1 > g = whatever > g # LVAR node > end > > def f2 > g # VCALL node > end > > This simplifies the next stage (LVAR is always a local, VCALL is always a > method). > > The "feature" in this thread is an unfortunate consequence of the > implementation. > > Thanks, > > Nicholas > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rails-oceania+unsubscr...@googlegroups.com. > To post to this group, send email to rails-oceania@googlegroups.com. > Visit this group at https://groups.google.com/group/rails-oceania. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at https://groups.google.com/group/rails-oceania. For more options, visit https://groups.google.com/d/optout.
Re: [rails-oceania] Undefined variable becomes nil in rvalue assigment to itself
Ugh, yes, sorry, brain fart, I’m thinking of something else. What’s the thing where the parser has to check local usage to decide syntax? There’s definitely a reason Ruby needs to know about local variables, even if they’re only mentioned in conditional code that’s not hit. Clifford Heath. > On 14 Jan 2016, at 12:00 PM, Ryan Bigg <radarliste...@gmail.com> wrote: > > It won't ever do self.send(:x=, 3). x = 3 is always a local variable > assignment. > >> On 14 Jan 2016, at 11:52, Clifford Heath <clifford.he...@gmail.com> wrote: >> >>> On 14 Jan 2016, at 9:19 AM, Simon Russell <si...@bellyphant.com> wrote: >>> I'd say this "feature" probably has no useful purpose; I can't imagine a >>> language designer deliberately putting it in. It's more likely to cause >>> bugs than joy. >>> I'm not certain, but I'm fairly your "unintended parser functionality" is >>> heading in the right direction. >> >> No. I think it’s a necessary feature of the Ruby syntax. When Ruby sees “x = >> 3”, it needs to decide whether you want an assignment to a local variable, >> or “self.send(:x=, 3)”. >> >> So it looks around the local scope for clues about what you meant, and when >> it decides that a word is the name of a local variable, it treats it that >> way throughout the function. >> >> Clifford Heath. >> >>> From memory working on a Ruby compiler, Ruby allocates local variables >>> before execution, but doesn't mark where they become "real". So they're >>> essentially real from the start, and get assigned a default value of nil. >>> It makes the whole thing easier to build; it's kind of a shortcut. >>> >>> So, moral of this story is... Don't assign things twice? Makes for a >>> better design anyway! :) >>> >>> On Thu, Jan 14, 2016 at 5:35 AM, Gareth Townsend <gareth.towns...@me.com> >>> wrote: >>> Rubocop has a linter for shadowing variables; >>> >>> http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Lint/ShadowingOuterLocalVariable >>> >>> Gareth Townsend >>> http://www.garethtownsend.info >>> >>>> On 13 Jan 2016, at 22:00, David Parry <david.pa...@suranyami.com> wrote: >>>> >>>> Shadowing variables, which is effectively what you’ve done with >>>> “misspelt_argument”, is pretty-much always a bad idea in most languages. >>>> >>>> In functional languages, it’s mostly impossible to do without the compiler >>>> complaining, and for very good reasons, one of which you’ve pointed out. >>>> >>>> I suspect that tools like RuboCop would probably pick this sort of >>>> abomination up. Anyone know if that’s the case? >>>> >>>> >>>> >>>>> On 13 Jan 2016, at 8:41 PM, Tom Hale <t...@hale.ee> wrote: >>>>> >>>>> It took some debugging to come across this one: >>>>> >>>>> irb(main):043:0> w >>>>> NameError: undefined local variable or method `w' for main:Object >>>>> from (irb):43 >>>>> from /home/ravi/.rbenv/versions/2.2.3/bin/irb:11:in `' >>>>> irb(main):044:0> w = w >>>>> => nil >>>>> irb(main):045:0> >>>>> >>>>> Yeah, right, so what? >>>>> >>>>> It leads to "find the nil" fun-hunts in cases such as: >>>>> >>>>> irb(main):057:0> mispelt_argument = >>>>> Array(mispelt_argument).flatten.uniq.map(&:name) >>>>> => [] >>>>> >>>>> Are there any cases in which this "feature" is actually useful, or is it >>>>> an unintended parser functionality? >>>>> >>>>> Tom >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google Groups >>>>> "Ruby or Rails Oceania" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send an >>>>> email to rails-oceania+unsubscr...@googlegroups.com. >>>>> To post to this group, send email to rails-oceania@googlegroups.com. >>>>> Visit this group at https://groups.google.com/group/rails-oceania. >>>>> For more options, visit https://groups.google.com/d/optout. >>>> >>>> -- >>>> You received this message because you are sub
Re: [rails-oceania] Undefined variable becomes nil in rvalue assigment to itself
On 14 Jan 2016, at 9:19 AM, Simon Russell <si...@bellyphant.com> wrote: > I'd say this "feature" probably has no useful purpose; I can't imagine a > language designer deliberately putting it in. It's more likely to cause bugs > than joy. > I'm not certain, but I'm fairly your "unintended parser functionality" is > heading in the right direction. No. I think it’s a necessary feature of the Ruby syntax. When Ruby sees “x = 3”, it needs to decide whether you want an assignment to a local variable, or “self.send(:x=, 3)”. So it looks around the local scope for clues about what you meant, and when it decides that a word is the name of a local variable, it treats it that way throughout the function. Clifford Heath. > From memory working on a Ruby compiler, Ruby allocates local variables before > execution, but doesn't mark where they become "real". So they're essentially > real from the start, and get assigned a default value of nil. It makes the > whole thing easier to build; it's kind of a shortcut. > > So, moral of this story is... Don't assign things twice? Makes for a better > design anyway! :) > > On Thu, Jan 14, 2016 at 5:35 AM, Gareth Townsend <gareth.towns...@me.com> > wrote: > Rubocop has a linter for shadowing variables; > > http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Lint/ShadowingOuterLocalVariable > > Gareth Townsend > http://www.garethtownsend.info > > > On 13 Jan 2016, at 22:00, David Parry <david.pa...@suranyami.com> wrote: > > > > Shadowing variables, which is effectively what you’ve done with > > “misspelt_argument”, is pretty-much always a bad idea in most languages. > > > > In functional languages, it’s mostly impossible to do without the compiler > > complaining, and for very good reasons, one of which you’ve pointed out. > > > > I suspect that tools like RuboCop would probably pick this sort of > > abomination up. Anyone know if that’s the case? > > > > > > > >> On 13 Jan 2016, at 8:41 PM, Tom Hale <t...@hale.ee> wrote: > >> > >> It took some debugging to come across this one: > >> > >> irb(main):043:0> w > >> NameError: undefined local variable or method `w' for main:Object > >>from (irb):43 > >>from /home/ravi/.rbenv/versions/2.2.3/bin/irb:11:in `' > >> irb(main):044:0> w = w > >> => nil > >> irb(main):045:0> > >> > >> Yeah, right, so what? > >> > >> It leads to "find the nil" fun-hunts in cases such as: > >> > >> irb(main):057:0> mispelt_argument = > >> Array(mispelt_argument).flatten.uniq.map(&:name) > >> => [] > >> > >> Are there any cases in which this "feature" is actually useful, or is it > >> an unintended parser functionality? > >> > >> Tom > >> > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Ruby or Rails Oceania" group. > >> To unsubscribe from this group and stop receiving emails from it, send an > >> email to rails-oceania+unsubscr...@googlegroups.com. > >> To post to this group, send email to rails-oceania@googlegroups.com. > >> Visit this group at https://groups.google.com/group/rails-oceania. > >> For more options, visit https://groups.google.com/d/optout. > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby or Rails Oceania" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to rails-oceania+unsubscr...@googlegroups.com. > > To post to this group, send email to rails-oceania@googlegroups.com. > > Visit this group at https://groups.google.com/group/rails-oceania. > > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rails-oceania+unsubscr...@googlegroups.com. > To post to this group, send email to rails-oceania@googlegroups.com. > Visit this group at https://groups.google.com/group/rails-oceania. > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rails-oceania+unsubscr...@googlegroups.com. > To post to this group, send email to rails-oceania@googlegroups.com. > Visit this group at https://groups.google.com/group/rails-oceania. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at https://groups.google.com/group/rails-oceania. For more options, visit https://groups.google.com/d/optout.
Re: [rails-oceania] Job market, junior / graduate roles
I think the preference for junior vs mid/senior developers is driven by culture. Between 1987 and 2007, development teams I was leading have hired a lot of developers; probably five hundred or more. Because were were working in languages that did not have a strong cultural aesthetic (read: “opinions”) we found that if we hired mid-level developers, people senior enough to have become good at a small range of project types, they tended to bring in their own opinions and defend them against our own - often rather different - company culture. A few of those did not last past their first project. So we found it was easier to hire new grads and help them to develop. Because we were doing stuff that was cool enough (and did things like sponsoring university prizes for software engineering so they all knew about us), we had no trouble attracting the very best and brightest candidates. Their ability for rapid growth counted for much more than intermediate levels of experience would have. In the RubyRails community, there is a strong aesthetic sense, a lot of quite uniformly-accepted opinions and conventions, so there are fewer problems hiring mid-level developers. You can pretty-much expect that they’ll fit in, at least as far as “the Rails Way” goes. That is intentional. Many of Rail’s opinions are sub-optimal, but we live with them and move on, and expect that others have been similarly assimilated. We’ve all taken that blue pill. Note that the above doesn’t reflect on senior developers. Most of us have experienced enough technologies to regard them with the same skepticism, and to use what seems to be useful, and get things done regardless. From the perspective of a 30+ year career, there are very few new problems, and almost no new solutions - there are just plenty of new names for old ones. Clifford Heath, CTO, Infinuendo. -- 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] How specced out should a development MBP be?
The other thing that doesn't seem to have been mentioned is the CPU and disk needs for virtualisation, so you can test all the browser versions in different VMs. Apart from disk space, VMs eat RAM for breakfast; allow at least one GB for each. I have an MBP that had a combo-drive which I removed to fit a large magnetic disk into, in addition to the smaller SSD. It's a good compromise given how little optical drives are used these days (can go external), but modern MBP's and Air's don't have drive anyhow. Clifford Heath. On 7 Oct 2014, at 10:31 am, Julian Doherty mad...@madlep.com wrote: Pretty much any stock-standard new MBP will be grand for Ruby/Rails development. It used to be the big win was having SSD over a spinning disk, but it looks like SSD is standard now regardless, so you can't really go wrong. More RAM is always nice for general OS responsiveness, so I'd go with 16GB preferably. 8GB is OK too though. Upgrading the CPU doesn't make a huge difference. Most of the time you'll be waiting on code to load from storage rather than time spent executing it - at least for development. Disk size really depends on what you're doing. Code itself doesn't take up much storage space. However, if you're wanting to deal with decent size databases for testing/analysis, you'll need to size it to fit. If you've got a lot of music/videos/games/other things, take that into account. Also consider if you want to run bootcamp and dual boot Windows - you'll need to set aside enough space on a separate partition for Windows (at least a couple hundred GB) -- @madlep Julian Doherty On 7 October 2014 at 12:01:35 am, Tim Moore (tmo...@incrementalism.net) wrote: As a counterpoint to the Air recommendations: once you go retina, you won't want to go back :-) On Monday, October 6, 2014 1:12:22 PM UTC+11, ben_h wrote: As others have said, any Mac from the past few years is fine. In fact even if you made a point of buying the slowest new Mac you could find, it'd still be fine. (Mine is a 3-year-old 11 i7/4GB Air.) With that in mind, I think there are other things that are more important. For example, in my experience Airs run a fair bit cooler than Pros. That, and the tapered shape, makes them much more comfortable on your lap. They're also around half the weight, which makes them much more comfortable in your bag especially if it's one of several things you carry. - Ben On 6 Oct 2014, at 5:37 am, Michael Pearson mipe...@gmail.com wrote: 8 GB RAM, 4 cores (real cores, not HT 'concurrent threads'), any Apple SSD. Then https://github.com/grosser/parallel_tests to take advantage of the cores. This is assuming you have (or expect to have) slow tests. If not .. anything will do. Also, run whatever database you're using in YOLO mode during development: turn off fsync, data safety, etc. Disk space is only helpful for storing virtual machines and gargantuan music collections. If it's my money, I'd go the 2.5ghz. If it's your employer's, 2.8ghz. On Sun, Oct 5, 2014 at 10:38 PM, Andrew Grimm andrew@gmail.com wrote: I know this is a bit How long is a piece of string?, but if a MacBook Pro is being used for Rails development, how specced out should it be? Does CPU play a role in performance? Is it beneficial to have a 2.8GHz Quad-core CPU compared to a 2.5GHz Quad-core CPU? How disk space hungry is Rails development? Is it better to have a 1TB drive compared to a 512GB drive? Andrew -- 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-oceani...@googlegroups.com. To post to this group, send email to rails-...@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania. For more options, visit https://groups.google.com/d/optout. -- Michael Pearson -- 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-oceani...@googlegroups.com. To post to this group, send email to rails-...@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
Re: [rails-oceania] which operating system to go with for ror jobs
Rosie, For backup, TimeMachine is excellent. A lot of folk use an Apple Airport Time Capsule, which backs up over WiFi, but I prefer faster backups with less WiFi pollution so I use an external USB drive. By default, you get a backup every hour for a day, every day for a month, every month forever (until space runs out) with automatic re-use of unchanged files, so a 1TB drive should last you forever. It’s a wonderful thing to realise you lost something a week ago and can easily still go and recover it. You should also be pushing your code to Github, of course! Clifford Heath. On 20 Aug 2014, at 1:55 pm, Rosie Williams budget...@hotmail.com wrote: Thanks everyone. I has a new Mac so I will be using that for my RoR development although I might use Windows or Linux as a backup as I often like to have versions of my work on more than one computer just in case. Rosie Williams BA (Sociology) NoFibs.com.au - Open Data Reporter InfoAus.net - Founder and Developer Date: Tue, 19 Aug 2014 14:17:33 +1000 Subject: Re: [rails-oceania] which operating system to go with for ror jobs From: timo...@mukaibo.com To: rails-oceania@googlegroups.com Like Anthony Richardson, I use a Mac to run my Ubuntu VM's. Prior to this, I was using a regular Windows 8 laptop with the Hyper-V role enabled. For me, the experience of both the Mac and Windows is pretty much the same - I'm ssh'd into a Linux VM. Horses for courses. The advantage that a Windows PC *may* offer is the ability to run other software your company uses. If you're working for a software dev house, they are probably big Mac users and it won't matter, but enterprises tend to be heavier on the Windows side of things, and may not be used to supporting Mac's. I would try loading up a Linux VM on your current Windows PC and see how that goes. I don't do development on my local machine regardless of whether it's Mac or Windows, always in a VM. The important thing is that you develop on the same OS as what you'd be expecting the code to run on in production. Kind regards, Timothy. On 19 August 2014 08:17, Jak Charlton jakcharl...@gmail.com wrote: You will (almost certainly) fall in love with a Mac (compared to Windows, but you will still scream at it) Forgot - another good option is run Windows and run any kind of VM with Ubuntu or similar on it and you have best of both worlds... just not quite as nice as a Mac still, but better for a lot of people's preferences ;) -- 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. signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [rails-oceania] Melbourne Ruby - Wednesday July 30th
On 5 Aug 2014, at 5:46 pm, Marky Mark m4r...@gmail.com wrote: ...It made me go back and look at C++'s switch statement (see a just-prior posting) and feel frustrated that C++ doesn't support such flexibility. The Ruby case statement is just a fancy syntax for if… else if…else if… else. C applies Occam’s razor, not multiplying features needlessly. On the other hand, its switch statement does something that is well-supported by the hardware, but unavailable in Ruby; namely, allowing the compiler to decide when to use jump tables to get super-fast selection of cases. Feel frustrated all you like, but C is *more* functional than Ruby in this situation, not less. Clifford Heath. (I mean not even support the generic object.equals syntax, never mind a closure.) That's the kind of thing that highlights why one might bother with Ruby at all. If you don't get the cleverness presented to you, you might never find out about it. On Tuesday, August 5, 2014 5:22:31 PM UTC+10, Dan Harper wrote: On 5 Aug 2014, at 4:24 pm, Tim Moore tmo...@incrementalism.net wrote: One thing that hasn't been mentioned yet, and which unfortunately I couldn't really address in the talk without a long tangent, is why would you want to write code like this in the first place? Is a proc in a case statement anything but a useless, overly-clever bit of language esoterica? I had the same thought. After some musing, I came to the conclusion that you should opt for simpler code using simple concepts and cop the penalty of it being more verbose. Not everyone will agree I’m sure, and that’s cool. The advantages of having simpler code using simple concepts is that your code is now more easily understood by other developers with a lower level of Ruby knowledge. This is the same reason I try to not perform Ruby gymnastics in tests. If I do decide to use some more complex code, I use comments to explain what I’m doing. This was probably more important back in the day when hardly anyone used Ruby, but I still follow it. If you’re just consuming gems (not authoring them) and say, coding in Rails, you’ll rarely have a need to use Proc or similar concepts. So when you’re learning, I’d say don’t bother with Proc and fancy Ruby concepts. Learn other things that will get you more productive at a faster rate. Dan Dan Harper d...@kingdomsolutions.com.au Mobile: 0414 344 233 -- 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. signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [rails-oceania] Melbourne Ruby - Wednesday July 30th
functional in this sense means having a certain capability. C's switch statement provides a capability (of the hardware) that isn't provided by Ruby, while it still provides (without any syntactic support) all that Rugby's case provides. In that sense, C Ruby. On 6 Aug 2014 10:48, Marky Mark m4r...@gmail.com wrote: I would say rather that C is *faster*, not more functional. But no surprises there. Ruby is not the fastest kid off the block from my first impressions. But then what interpreted language is? Although I suppose if there is a Ruby compiler out there then it could, in the right conditions, optimise the case statement similarly to the C compiler. On Wednesday, August 6, 2014 9:07:19 AM UTC+10, Clifford Heath wrote: On 5 Aug 2014, at 5:46 pm, Marky Mark m4r...@gmail.com wrote: ...It made me go back and look at C++'s switch statement (see a just-prior posting) and feel frustrated that C++ doesn't support such flexibility. The Ruby case statement is just a fancy syntax for if… else if…else if… else. C applies Occam’s razor, not multiplying features needlessly. On the other hand, its switch statement does something that is well-supported by the hardware, but unavailable in Ruby; namely, allowing the compiler to decide when to use jump tables to get super-fast selection of cases. Feel frustrated all you like, but C is *more* functional than Ruby in this situation, not less. Clifford Heath. (I mean not even support the generic object.equals syntax, never mind a closure.) That's the kind of thing that highlights why one might bother with Ruby at all. If you don't get the cleverness presented to you, you might never find out about it. On Tuesday, August 5, 2014 5:22:31 PM UTC+10, Dan Harper wrote: On 5 Aug 2014, at 4:24 pm, Tim Moore tmo...@incrementalism.net wrote: One thing that hasn't been mentioned yet, and which unfortunately I couldn't really address in the talk without a long tangent, is why would you want to write code like this in the first place? Is a proc in a case statement anything but a useless, overly-clever bit of language esoterica? I had the same thought. After some musing, I came to the conclusion that you should opt for simpler code using simple concepts and cop the penalty of it being more verbose. Not everyone will agree I’m sure, and that’s cool. The advantages of having simpler code using simple concepts is that your code is now more easily understood by other developers with a lower level of Ruby knowledge. This is the same reason I try to not perform Ruby gymnastics in tests. If I do decide to use some more complex code, I use comments to explain what I’m doing. This was probably more important back in the day when hardly anyone used Ruby, but I still follow it. If you’re just consuming gems (not authoring them) and say, coding in Rails, you’ll rarely have a need to use Proc or similar concepts. So when you’re learning, I’d say don’t bother with Proc and fancy Ruby concepts. Learn other things that will get you more productive at a faster rate. Dan Dan Harper d...@kingdomsolutions.com.au Mobile: 0414 344 233 -- 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-oceani...@googlegroups.com. To post to this group, send email to rails-...@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.
[rails-oceania] New Bureau of Met mobile site
Do we know the folk who designed and implemented the new BOM mobile site http://m.bom.gov.au/? I want to hug them, it’s such a nice job. Clifford Heath. signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [rails-oceania] address parser
On 10 Apr 2014, at 1:52 am, Maysam Torabi khe...@gmail.com 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 should search for geocoding APIs. This sort of thing is done online, it’s too complex for any simplistic parser. Clifford Heath. signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [rails-oceania] Call For Awesome: Improving RORO brainstorming sesh
Acceptance of heckling is a personal-style thing, often dependent on your childhood family environment. Personally, I grew up with three sisters, and we ALL TALK AT ONCE at the table and it all makes sense, though visitors tend to find it alarming or at least disconcerting. So I’m cool with heckling (as long as it’s somewhat friendly and respectful) and it took me a long time to figure out why some people were so deeply affected and/or offended by it. When I had my breakthrough moment, I even prepared a lightning presentation about it… maybe I should deliver that? I’d like to suggest that no-heckling be the default, and folk who are ok with interruptions should actually *go ahead and invite them*. It’s really not hard to say “Feel free to stop me at any time and ask for clarification”. You have the stage, and you can always ask hecklers to pipe down and wait if it gets excessive. Oh, and recent talks have typically been TWICE as long as was warranted (by the material, or by the audience interest level). KEEP THEM SHORT, folks. That leaves time for anyone thirsty for more to ask you afterwards, and anyone simply thirsty to get more beer. Clifford Heath. On 28 Feb 2014, at 5:17 pm, Jon Rowe m...@jonrowe.co.uk wrote: Greg, Please note that if you alienate all the regulars you will end up with a situation as bad or worse than we have now. If you want RoRo to grow there must be compromise but that won't happen if you segue regulars off to RoRoDrinks We want to expand the community not divide it. On Friday, 28 February 2014, Gregory McIntyre blue.p...@gmail.com wrote: On Thursday, 27 February 2014 10:12:33 UTC+11, Jon R wrote: We need to find a way to keep our heckling and encourage new talks; for me being heckled is part of the fun ;) There are a lot of beginners I have talked to from Rails Girls, InstallFest and GA who have anecdotally mentioned mildly negative sentiments about RORO involving words like heckling and intimidating and confusing. If I ran things, I would make a new and separate event called ROROdrinks or somesuch for you to continue to enjoy doing what you do, and free up the main RORO meet up as a heckle-free zone that is welcoming to a broader range of cultural backgrounds and skill levels. -Greg -- 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. signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [rails-oceania] Call For Awesome: Improving RORO brainstorming sesh
Heh, nice list. Not sure that RORO *should* attempt to meet all social needs, but I’ve been thinking about suggesting a couple of things, if anyone else is interested or can see a good way to help make them happen: * Go-carting day. Thinking of a 2-hour stint from 9-11AM on a Sunday at Eastern Creek. * Talk discussions on relevant health issues, especially spinal health (this is on my mind as my family is making a decision about spinal surgery…). Do folk think this is too far away from the reasons they come to RORO? * Take Ruby to the high-schools, especially high-school girls (thinking private schools here). The recent discussion on gender balance reflects a much wider problem than just the Ruby conference organisers, or the participants, or even the whole Ruby or tech communities. It’s a repugnant social ill that we squander half of the human race’s potential for technological innovation, and though I’m in admiration at the progress of RailsGirls, etc, we need to start younger. Primary school really, but practically, high-school may be possible. It will need IT-savvy women to make it happen, as it’s not something that blokes alone could credibly attempt. But perhaps we can help? Advocacy in government and education circles, too. Clifford Heath. On 26 Feb 2014, at 11:35 am, Gregory McIntyre blue.p...@gmail.com wrote: == ACK WHITE MALE PRIVILEGE == No idea too crazy. What are some of the ways you'd improve our little community so it's even more fantabulous than it is now? Forgive me for being Sydney-centric. I live here, ya know? I welcome all the voices from RORO Ballarat too, or wherever it is people do Ruby that isn't Sydney assuming they even exist. :) Here's my brainstorming list. Some of these things I've heard from others, most of them are from my wild imaginashun. * The Trinity Bar is too cramped given the influx of new people. You can't see around the corner when it's full. If you arrive late you just stare at somebody's back and feel sad. * Shorter talks and more of them, cos I start to tune out sometimes. * Talks aimed at beginners and intermediate people. * Talks delivered by beginners and intermediate people. * More diverse talk topics. * Talks by non-developers about issues that affect them. * Talks aimed at cross-skilling people so they are not trapped in one profession. e.g. An intro to video editing? An intro to podcasting? Graphic design? etc. * Talks that are purely questions posed or issues raised thoughtfully, rather than solutions or news. * Support or training for people who would like to present something. * More accessible communication channels (than IRC I guess?) for beginners. * Survey co-workers who do not attend RORO meetups and bring their feedback to us. * Assistance organising lunch time learning and social activities with motivations similar to Jellys. * Resurrect improv night. * Invite all members to a communal github/SCM account and encourage them to collaborate. * Adopting some flipped classroom principles - support/homework workshops held to consolidate MOOCs/online courses/RailsCasts/online training material. * Fun small programming competitions/challenges. e.g. What is the English word that's letters can be rearranged into the most other English words? * Cupcakes and bakeoffs. Not. Even. Joking. AKA more diverse social activities open to all RORO members. * A job board, even though it might undercut the business model of our beloved president. * Archery at Rails Camps. * A web site that can both take donations and also illustrates where the money gets spent and what the priorities are. * Something that feels a bit more unified than the mailing list + irc + wiki, maybe something where I can put a profile picture and link to my github commit history and explain how to do magic tricks. * Magic tricks. Well, more magic tricks. I'm keen to hear if anybody else has been quietly wishing for a better RORO in some way and would like to contribute to the butcher's paper that is this email thread. -Greg -- 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. signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [rails-oceania] [Off Topic] FTTH Petition
Yes. But this is not a group for political discussions. On 12 Sep 2013 21:19, Paul Annesley p...@annesley.cc wrote: I think the future of Australia's Internet infrastructure is likely to be of interest to many rails-oceania readers. +1 signature. — Paul On Thu, Sep 12, 2013 at 7:14 AM, Clifford Heath clifford.he...@gmail.comwrote: On 12/09/2013, at 5:48 AM, Luke Chadwick m...@vertis.io wrote: Can I encourage you all to sign the FTTH petition if you haven't already. Can I encourage you to take this discussion to aus.nbn.ftth.advocacy? It doesn't help anyone make a better startup. Clifford Heath. -- 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. -- 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] Taking a long flight, what are some good podcasts?
Sleep/meditate. Too much mental activity will drain your energy reserves and divert you from otherwise conserving them through relaxation. You will regain the lost time during your recovery, which you can spend watching podcasts. Just my 2c. Clifford Heath On Jul 22, 2013 10:21 AM, David Carlin dav...@gmail.com wrote: Hi all, I'm taking a long long flight, 20-something hours each way, and was hoping you could recommend some good podcasts to make the hours go faster. Ruby/Rails related, or Software dev in general, or other. Thanks -- 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] Who owns the code and IP?
That's great stuff Warren. There's a further angle which has not been covered, which was decided in the High Court about 11-15 years ago. I will have to rely on memory and on my take-away from when I read about it. Sorry I cannot provide a proper reference, but this message may serve as a pointer. Basically when an employee is hired, they're hired because of what they can do. The fact that they then apply those skills to solve some problem does not create a restriction on their ability to solve that problem again for someone else. That would restrict the employee's future ability to practise their skills - it is a restriction of trade. This principle overrides any contractual arrangement with the employer. What it means is that any code you personally write - as an employee or as a contractor - is legal for you to recreate, even verbatim, in any future engagement. You may not take away a copy from your employer, but if you recreate it - even exactly, the employer has no recourse. If you recreate something which contain elements contributed by other employees during the same engagement, that is obviously a different story and normal copyright principles apply. I hope this pointer might stimulate someone more determined than me to search for the case details. They concerned a re-usable library that a coder brought to and substantially extended during a gig. Clifford Heath. On 26/06/2013, at 12:02 PM, Warren Seen warren.s...@gmail.com wrote: I hate to contradict your family member Craig, but as far as I've been informed, and can find online, Phil's right, we follow the same principle here, in which independent contractors DO own the copyright to their work, unless they complete some form of copyright assignment to the client. sources: http://www.davies.com.au/content/37/iplaw/copyright http://www.business.gov.au/BusinessTopics/Independentcontractors/Documents/Independentcontractorstheessentialhandbook.pdf (p20) Without a written contract that attributes ownership of IP to your hirer, you will automatically own the IP. If your hirer wishes to own the IP, this must be specifically outlined in the contract. You may wish to seek legal advice about clauses relating to IP before signing the contract. This is different for employees, where the copyright DOES go to the employer automatically. Again, this is all speaking from personal research, and with no legal background - I guess at the end of the day, this just underlines the fact that you shouldn't rely on people on the internet for legal advice, as you'll get a multitude of opinions. :) On 26/06/2013, at 11:44 AM, Phil Oye phil...@gmail.com wrote: IANAL either, but that is consistent with my understanding. In the US, this is called Work For Hire. Normally authors retain copyright, UNLESS it is work for hire, then the employer retains the copyright. https://en.wikipedia.org/wiki/Work_for_hire This makes intuitive sense to me. Otherwise, you would need to explicitly license the work to the client otherwise they have no rights to it even though they paid for it. p. On 26/06/2013, at 11:11 AM, Craig Read craigabr...@gmail.com wrote: IANAL, but I have one in the family who specialized in IP and asked him the question. His response was to assume they own everything as you produced the work for them, unless you verbally agreed otherwise. On Wed, Jun 26, 2013 at 10:19 AM, Sebastian Porto sebaspo...@gmail.com wrote: Hi All Hopefully someone in the list can clarify this for me. Let's say that you do contract work for a client but there is never a signed contract, just the invoices to prove that the work was done. Are the IP and the code two different issues? Who owns the IP for this work? Who owns the code? Morality aside, what will hold in a court of law? Thanks Sebastian -- 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. -- Craig Read @Catharz https://github.com/Catharz http://stackoverflow.com/users/158893/catharz -- 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
Re: [rails-oceania] sharing business logic between Rails and JavaScript
therubyracer? Or another server-side JS engine? -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [rails-oceania] noob question: gem or starting point project?
Fabio, That sounds like a textbook case for a Rails engine. Clifford Heath. On 04/06/2013, at 11:29 PM, Fabio Vilela fbvil...@gmail.com wrote: Hi guys, some noob question just so you don't get bored here... I've recently built a restful api and a few apps were born to consume it. we picked up a few things in common that I'd like to put in this gem/project: -- migration files, suggesting a db structure ( we have had the experience where devs interpreted our api differently ) -- Model classes( thinking about Active Resource + Faraday for some other operations, HTTParty maybe) I really want to write some good documentation in the models -- routes + controller to process webhooks -- some rake tasks and instructions to setup cronjobs... what should I do? gem or project that people would fork and use as a starting point? maybe write some generators? cheers guys. Fabz -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [rails-oceania] Testing before_filters
On 29/04/2013, at 9:28 PM, William Madden w.a.mad...@gmail.com wrote: Nice approach Ben, that (memoized helpers) is a lot cleaner than before filters. Just beware that this approach delays the record not found exception until you first call the helper. That might be inside some view code, which can make debugging harder. Clifford Heath -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[rails-oceania] Re: [rspec-users] Start ruby debugger if an rspec test fails
Vighnesh, On 30/04/2013, at 10:42 AM, Vighnesh Rege vighnesh1...@gmail.com wrote: I was wondering if any of you knows the answer to this: http://stackoverflow.com/questions/16290365/start-ruby-debugger-if-rspec-test-fails I posted my answer to this, which is to catch the ExpectationNotMatched exception as it's being created. I think the solution will also interest my local Rails peeps, so I'm Cc'ing it there too. Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design Skype: cjheath, Ph: (+61/0)401-533-540 -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [rails-oceania] Trying to implement per tenant ID's
On 04/04/2013, at 8:29 AM, Tim Uckun timuc...@gmail.com wrote: In my opinion the more you want to do these kinds of things the less suitable rails is for your app. Maybe if you swapped out sequel for AR you might have an easier time.I think that AR works best when you don't buck the system… It's not just AR. CPK helps overcome AR's difficulties in this regard, but a lot of other things run into difficulties - form helpers like SimpleForm is one. My position is that while Rails is wrong to be so committed to the surrogate key concept, if you opt out, you effectively opt out of the whole ecosystem. Bottom line: Use a surrogate key *and* a natural primary key almost always. Join tables with no attributes are the one time you can escape surrogates, and even those often grow attributes. Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [rails-oceania] How to calculate an hourly, contractual rate
I was a co-founder at ManageSoft from 1990 until 2007, and we hired a lot of fresh graduates and saw them grow. Not web developers, but still… we had an expectation that people would move up at a certain rate from junior to mid- to senior level. The definition was roughly: A junior needs to work under some level of supervision, whereas a mid-level dev can take rough requirements and figure out how to negotiate, implement, test and deliver significant product enhancements of increasing scope. We didn't expect mid-level developers to be able to effectively mentor juniors; they only did that under combined supervision of a senior dev. Senior devs were always involved when work had cross-cutting scope or long-term ramifications. I'm trying to make several points here: * Mastery of the coding craft is only part of the picture; the team/community angle is more important, * Juniors that didn't progress to the bottom of the mid-level range within 18 months were almost always fired, whereas very quick learners could advance in only six months. * Seniors need to have many project cycles under their belt; they're expected to not only know how things *should* go, but also the many ways they can go wrong and how to avoid it. That almost always takes 8 or 10 years to develop. There are many more technologies in a modern web stack, so these durations will vary… but the point is that maturity is about being able to add value in the team. Juniors might have great coding chops but still suck as much value (or even more!) as they add, in the form of requiring supervision. Clifford Heath. On 18/03/2013, at 3:39 PM, Ben Schwarz ben.schw...@gmail.com wrote: I wouldn't call anyone with less than 10 years experience a senior. In my mind: Junior: 1 – 4 years Mid-weight: 5 – 9 Senior: 10+ We're talking not only skill, but mastery of craft and processes. On Monday, 18 March 2013 at 3:35 PM, Michael Pearson wrote: On Mon, Mar 18, 2013 at 3:29 PM, Ashley Pettit is_ash_is_g...@hotmail.com wrote: $400 day for someone mid level (~2-3 years by my loose definition) is pretty rocking stuff in my opinion. Most of my friends are around 24 years old and I can't quite say any of them earn anything near this! (Again disclaimer *you may definitely be worth it* I don't know) IMO 2-3 years isn't mid level. Mid level is (years that you've been working in the industry) / 2. Junior is (years ..) / 3 Senior is max( (years ...) - 1, 3) -- Michael Pearson -- You received this message because you are subscribed to a topic in the Google Groups Ruby or Rails Oceania group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/rails-oceania/aJUEhoE89mo/unsubscribe?hl=en. To unsubscribe from this group and all its topics, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [rails-oceania] [SYDNEY] Looking for Tech Co-Founder to disrupt publishing space
Theresa, You're looking for someone with excellent credentials in the Rails dev space, yet you say nothing of your credentials in the publishing space. That doesn't come across well. If I were to contact a community of rocket scientists asking for their help in disrupting the low-earth-orbit heavy lift industry, you can be sure as heck that they'd want to know whether I'm deluded, or actually have some knowledge of the space industry and bring contacts with deep enough pockets. In other words, to get what you want, you have to give a little more. Vision is important, but so is experience, contacts and capital. Only with all four will you succeed in attracting really good developers. Clifford Heath. On 22/01/2013, at 3:52 PM, Theresa Lim ther...@pollenizer.com wrote: You've always wanted to work for yourself on something cool, right? How about partnering with me? I'd like to partner with an awesome Ruby developer who wants to be a key part of a startup that will disrupt the publishing space. Check out initial prototype for management education at Play2Lead. Part-time (minimum 8 hours per week) only until seed capital secured then full-time paid. My vision is that after we prove this model, we try other geographical markets and other content (e.g. IT education). Interested? Call me - 0414 207 066. I'm working towards applying for the Optus Innov8 Seed Capital program (deadline 4/2). Thank you for your interest. Theresa -- You received this message because you are subscribed to the Google Groups Ruby 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. Visit this group at http://groups.google.com/group/rails-oceania?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-oceania@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [rails-oceania] Single sign-on across Rails 2 and Rails 3 apps
On 20/11/2012, at 7:32 AM, Tim Uckun timuc...@gmail.com wrote: SAML looks similarly generalised. You're not thinking of this I assume: https://github.com/onelogin/ruby-saml? Last I checked ruby-saml was a client and could not act as a SAML provider. Further searching reveals this: https://github.com/lawrencepit/ruby-saml-idp which is probably what you were thinking of. However, the whole design looks much too enterprisey given our simple needs. If no-one pops my bubble, I think I'll prototype the solution I proposed. Before doing that you should check out sibboleth. There is a devise plugin for it https://github.com/jgeorge300/devise_shibboleth_authenticatable If we had existing an Shibboleth IdP instead of a simple name+password Rails auth that would be a great help :) 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-oceania@googlegroups.com. To unsubscribe from this group, 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] Single sign-on across Rails 2 and Rails 3 apps
Folk, A client needs to augment an existing Rails 2 app with some additional subsystems that will be written in Rails 3. The goal is to support seamless SSO across the old and new, and to achieve a single URL address space (one domain). The latter need can be met using a front-end haproxy or a Rack reverse proxy to forward URLs to the appropriate server, so each instance of the combined app appears to run under one domain. The existing user model has a pretty straightforward authentication model, and it will remain the owner of the subscription and login process. So it will serve authentication for the other subsystems. The method I'm proposing is a bit simpler than generalised CAS and SSO, which I think we can get away with because we can use shared secrets. Nevertheless I'd like your thoughts on possible failure modes or reasons why we shouldn't do this :). Assume that the user is logged-in to the legacy app already, and follows a link to the new app, which finds they're not already authenticated. It sends a redirect to the main app with a request-id encoded in the query. The main app verifies that the user is logged in and is authorised to use the new service, and constructs a ticket to send back via a redirect. The ticket contains the checksum (SHA-1 or whatever) of: * a shared secret * the current time, rounded to the nearest five minutes * the domain being served (the same server may serve users from multiple domains) * the user's name This ticket also contains the user name and domain in plain text. The new app takes its current time and rounds it down *and* up (two values) and tries to match the same checksum with either. If successful, it sets its own cookie and the user is now logged in. The time rounding allows for delays and for server clock skew. To handle logout, the legacy app has added to the users's session the fact that they attempted login to the new app. When logout occurs, it must force a logout there before logging the user out. So it redirects the user to each subordinate app's logout page, which redirects back to its logout page. When the last sub-app is logged out, the legacy logout occurs. Your thoughts? How have you implemented this? What existing gems do it? Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design Skype: cjheath, Ph: (+61/0)401-533-540 -- You received this message because you are subscribed to the Google Groups Ruby 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] Single sign-on across Rails 2 and Rails 3 apps
Someone here has used ruby-cas happily. It handles cross-domain and uni-directional trust (only the CAS provider has to be trusted) without shared secrets, but requires the servers to talk to each other. I.e. works fine, but heavier than needed where both ends are trusted with shared secrets. Cassy, ooh, shiny. Thanks Radar, will check it out. SAML looks similarly generalised. You're not thinking of this I assume: https://github.com/onelogin/ruby-saml? Kerberos+LDAP: I've been deeply there before Rails - solved problems that Microsoft's core Active Directory team couldn't - but it's not our current environment. This needs to leverage off an existing Rails auth solution. If no-one pops my bubble, I think I'll prototype the solution I proposed. Clifford Heath. On 19/11/2012, at 3:20 PM, Tim Uckun timuc...@gmail.com wrote: There is a CAS server written in ruby google RubyCAS. I can't vouch for it or anything but I know it exists. Otherwise there is sibboleth which seems like a pretty robust solution. One other option you have Kerberos + LDAP. You can authenticate via Kerberos and authorize via LDAP. You can configure apache to use kerberos so it's minimal work on your app. The app then pulls information about the user from LDAP. I remember a while ago somebody on this list implemented a SAML server in ruby for a client but I have no idea if that code is available and if so under what license. Please keep us (or me if the group is not interested) updated. I am keenly interested in this subject. Cheers. On Mon, Nov 19, 2012 at 4:57 PM, Clifford Heath clifford.he...@gmail.com wrote: Folk, A client needs to augment an existing Rails 2 app with some additional subsystems that will be written in Rails 3. The goal is to support seamless SSO across the old and new, and to achieve a single URL address space (one domain). The latter need can be met using a front-end haproxy or a Rack reverse proxy to forward URLs to the appropriate server, so each instance of the combined app appears to run under one domain. The existing user model has a pretty straightforward authentication model, and it will remain the owner of the subscription and login process. So it will serve authentication for the other subsystems. The method I'm proposing is a bit simpler than generalised CAS and SSO, which I think we can get away with because we can use shared secrets. Nevertheless I'd like your thoughts on possible failure modes or reasons why we shouldn't do this :). Assume that the user is logged-in to the legacy app already, and follows a link to the new app, which finds they're not already authenticated. It sends a redirect to the main app with a request-id encoded in the query. The main app verifies that the user is logged in and is authorised to use the new service, and constructs a ticket to send back via a redirect. The ticket contains the checksum (SHA-1 or whatever) of: * a shared secret * the current time, rounded to the nearest five minutes * the domain being served (the same server may serve users from multiple domains) * the user's name This ticket also contains the user name and domain in plain text. The new app takes its current time and rounds it down *and* up (two values) and tries to match the same checksum with either. If successful, it sets its own cookie and the user is now logged in. The time rounding allows for delays and for server clock skew. To handle logout, the legacy app has added to the users's session the fact that they attempted login to the new app. When logout occurs, it must force a logout there before logging the user out. So it redirects the user to each subordinate app's logout page, which redirects back to its logout page. When the last sub-app is logged out, the legacy logout occurs. Your thoughts? How have you implemented this? What existing gems do it? Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design Skype: cjheath, Ph: (+61/0)401-533-540 -- You received this message because you are subscribed to the Google Groups Ruby 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
Re: [rails-oceania] Re: automated webpage to PDF creation
On 08/11/2012, at 9:52 AM, Daniel daniel.r.he...@gmail.com wrote: Finally, if you're more comfortable with C++ than I am (I'm not), the chromium source is really very readable. I can confirm that (as someone who is comfortable in C++). It shouldn't be hard to hook up the built-in pdf generation to the chromedriver bindings. Isn't that what wkhtmltopdf does? Or is there some extra Chromium magic that's not pure WK? 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-oceania@googlegroups.com. To unsubscribe from this group, 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] JSConf, November 15th — Sydney
On 16/10/2012, at 2:39 PM, Andrew Grimm andrew.j.gr...@gmail.com wrote: That'd be the same amount of time Torvalds took to create git. And doesn't it show! (in both cases…). Just a little more care and the world would have been much better off. Actually I have friends who were at Mozilla at the time, so I could get them to confirm the story. Two weeks is pretty consistent with the heroic efforts of the time however. I think the first JS was bootstrapped from a Scheme engine. Clifford Heath. Andrew On Tue, Oct 16, 2012 at 1:45 PM, Robert Gravina robert.grav...@gmail.com wrote: On 13 October 2012 18:37, Ben Schwarz ben.schw...@gmail.com wrote: Brendan Eich, CTO of Mozilla, Inventor of Javascript Wowzers! Despite all the flack Javascript gets for its little idiosyncrasies, legend has it that Brendan only had two weeks to design, build and ship the first version of the language and interpreter in Netscape. Much respect! Be nice if someone going there could confirm the legend :) 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. -- You received this message because you are subscribed to the Google Groups Ruby 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 your recruiter screwing you?
On 01/08/2012, at 1:54 PM, Rob wrote: ... I am … willing to offer insight into an industry that many have some disdain for. A lot of the ire expressed in this list is because we see it as primarily a developer's list, where technical subjects are discussed. Recruiters are tolerated because finding work is a legitimate interest of developers. Long discussions about the merits of recruitment ethics are simply NOT relevant, unless they concern someone who was personally harmed and wishes to help other developers avoid that. That's why Michael tried to draw the discussion to a close with his Hitler quip. If you STILL don't understand that, then you don't have the level of interpersonal insight that I personally would expect of any recruiter that I would like to deal with. IOW… enough now? Please? 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-oceania@googlegroups.com. To unsubscribe from this group, 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 encrypt Ruby decrypt
On 23/06/2012, at 5:22 PM, Ivan Vanderbyl wrote: Isn't hat simply power operator? The ruby equiv should be ** On 23/06/2012, at 4:42 PM, markbrown4 markbro...@gmail.com wrote: I had a quick look for what the ^ operator does in Javascript but couldn't find any info on it. The ^ operator isn't available in Ruby 1.9.3 so I don't know what the Ruby equivalent would look like. It's exclusive-or, just like in C and Ruby. 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-oceania@googlegroups.com. To unsubscribe from this group, 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 encrypt Ruby decrypt
On 22/06/2012, at 5:54 PM, Mark Brown wrote: I know trying to secure anything on the client-side is a no-no. function crypt(text, key) { var result = ; for(var i=0, ii=text.length; iii; ++i) { result += String.fromCharCode(key^text.charCodeAt(i)); } return result; } crypt('{ data: yep }', 6) = }bgrg$ cv${ crypt(}bgrg$ cv${, 6) = { data: yep } Can anyone help with a Ruby equivalent? to decrypt that string? Or does anyone have other examples of client-side encryption and decryption in Ruby? That code doesn't do encryption - it's just a byte-wise xor mask. The Ruby equivalent is trivial. In regard to encryption on the client side, the client should be regarded as an untrusted third party. It must prove its authenticity in *every* transaction, by a signature applied over the entire message content. The signature may be constructed using a shared secret or by use of a private key. 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-oceania@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
[rails-oceania] Railscamp, Twister source and the path forward
Folk, Awesome Railscamp. Thanks to all involved. I built Twister (a mutation testing tool, see below) and it's up on my GH account here: Ruby: https://github.com/cjheath/ruby/commit/ea99527feaf7dd06b3e8433ec640238441b188db RSpec: https://github.com/cjheath/rspec-core Here's my message to ruby-core, asking for help in refining this to get it accepted into Ruby itself. I hope some of you can either get value from using, or assist me in completing this work. Thanks also to Andrew Grimm for his moral support and constantly heckling me to keep pushing forward to this first working version, without which I might have just dissolved into a beery haze. Clifford Heath. Begin forwarded message: From: Clifford Heath clifford.he...@gmail.com Subject: [ruby-core:45706] Comments requested on implementation of set_parse_func Date: 19 June 2012 10:45:25 AM AEST To: ruby-c...@ruby-lang.org Reply-To: ruby-c...@ruby-lang.org Folk, I've implemented Twister, a new mutation testing tool to replace Heckle. It relies on a new hook into the Ruby parser, in order to modify what the parser thinks it has seen. Although I have written C extensions before, there are some aspects of the Ruby core which I'm unfamiliar with and as a result don't know the right way to handle. I'd like your comments, suggestions and improvements please. https://github.com/cjheath/ruby/commit/ea99527feaf7dd06b3e8433ec640238441b188db In particular, I'd like to know the following: 1) Do you prefer that I move the literal strings (which occur once each) to #defined? https://github.com/cjheath/ruby/commit/ea99527feaf7dd06b3e8433ec640238441b188db#L1R1003 2) Will this line of code mess up the GC, and how should I fix that? https://github.com/cjheath/ruby/commit/ea99527feaf7dd06b3e8433ec640238441b188db#L1R3853 3) The set_parse_func is extern though it should be static, but I need to move the rb_define_global_function out of thread.c. Can someone please tell me where I should move it to, since there is no Init_Parser? https://github.com/cjheath/ruby/commit/ea99527feaf7dd06b3e8433ec640238441b188db#L1R9029 https://github.com/cjheath/ruby/commit/ea99527feaf7dd06b3e8433ec640238441b188db#L3R4705 4) I think I should change set_parse_func to accept a flags argument and a block, instead of assuming all flags, and taking a Proc. What are the downsides of using a block instead of a Proc (does this reduce the number of Bindings that get created)? How do I change set_parse_func to use a block? The initial implementation of Twister is an extension to RSpec which adds the option --twist file-or-dir. It's still a bit rough - it needs to change the reporting on the twisted runs that follow the first (untwisted) run - but it does prove then concept. Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design. -- You received this message because you are subscribed to the Google Groups Ruby 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] Why don't you use heckle?
On 14/05/2012, at 4:34 PM, Iain Beeston wrote: Sounds interesting though. But I don't think I could justify it in a work environment unless it was really mission-critical code (surely this would break most people's tests left, right and centre?). Of course it does - that's the whole point. If a code mutation fails to break a test, the test isn't actually *testing* that code path - even if coverage says the path was hit. Basically, heckle allows you to find out what your condition coverage is, instead of your branch coverage. Personally, I'm a believer… but lapsed. Not using it currently due to a project with a preponderance of integration tests, and too-large unit tests. That, and my test run takes 15 minutes already… I'm fixing that first, and then I plan to use mutation testing (on the unit-tests only, of course). Clifford Heath. Iain On 14 May 2012 10:04, Craig Read craigabr...@gmail.com wrote: Like many others: 7 then 6. On Sun, May 13, 2012 at 6:11 PM, Andrew Grimm andrew.j.gr...@gmail.com wrote: I'm kind of curious. (Really!) As someone who's keen on heckle, it seems that not an awful lot of people use it. Why is this? 1. You don't do unit testing. You do all your unit testing in your head. 2. You aren't worried about the quality of your unit tests. You already know it's awesome / awful. 3. You use some other tool to evaluate how well unit tested your code is. 4. You don't have enough time to use it. 5. You've tried it, and haven't found it helped. 6. Can't use it because it's Ruby 1.8 only. 7. Haven't heard of heckle. 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. -- Craig Read @Catharz https://github.com/Catharz http://stackoverflow.com/users/158893/catharz -- You received this message because you are subscribed to the Google Groups Ruby 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: [railscamp] Tickets for Rails Camp 11 on sale tomorrow from 10 AM AEST
Please review the extensive discussion about this from previous camps before re-opening this topic. Clifford. On 23/04/2012, at 2:50 PM, Julian Doherty wrote: Can we look at doing a ticket lottery in future? Allow people to pre-register, and then draw out the tickets at a specified time. Fairer when there is such high demand and they sell out so quick (no, I'm not bitter. I got mine :) ) -- Cheers Julian Doherty 0422 982 010 On Monday, 23 April 2012 at 1:14 PM, Mark Ratjens wrote: Sold out in 30 mins? Are there any scalpers I should be talking to? :) -- Mark Ratjens Co-founder, Habanero Software Sydney, Australia mark.ratj...@habanerohq.com @habanerohq +61 414 159 357 -- You received this message because you are subscribed to the Google Groups Ruby 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] [railscamp] Tickets for Rails Camp 11 on sale tomorrow from 10 AM AEST
On 23/04/2012, at 3:20 PM, Julian Doherty wrote: TL;DR version? I only recall some of the discussion, but the gist was along these lines: * Not everyone who wants to come can (or even should) be accommodated, * Making the camp big enough to accommodate all would spoil its vibe, * More camps, in more locations, more frequently, is the best solution, * There is no system for ticket allocation that's fair to everyone, * Students deserve special treatment (as we see in this round for example), * A lottery would fail to discriminate between people who care enough to focus on getting a booking from those who are a bit meh about the whole thing anyhow, * Multiple separate ticket releases allow folk who care and who intend to get a ticket but for genuine reasons fail to, to have a second and/or third chance. Someone else may add further bullet points. Suffice to say that many alternative methods of allocation were mooted and discarded as being equally unfair and/or infeasible. If you want to propose a system you think might be better, please read the history first to see what arguments might have been raised against it. Clifford Heath. -- Cheers Julian Doherty @madlep 0422 982 010 On Monday, 23 April 2012 at 2:56 PM, Clifford Heath wrote: Please review the extensive discussion about this from previous camps before re-opening this topic. Clifford. On 23/04/2012, at 2:50 PM, Julian Doherty wrote: Can we look at doing a ticket lottery in future? Allow people to pre-register, and then draw out the tickets at a specified time. Fairer when there is such high demand and they sell out so quick (no, I'm not bitter. I got mine :) ) -- Cheers Julian Doherty 0422 982 010 On Monday, 23 April 2012 at 1:14 PM, Mark Ratjens wrote: Sold out in 30 mins? Are there any scalpers I should be talking to? :) -- Mark Ratjens Co-founder, Habanero Software Sydney, Australia mark.ratj...@habanerohq.com @habanerohq +61 414 159 357 -- You received this message because you are subscribed to the Google Groups Ruby 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] Reminder: rorosyd is on tomorrow
Thanks for the big welcome, Sydney. Clifford Heath. On 12/03/2012, at 11:14 AM, Keith Pitty wrote: Hi everyone, How time flies! rorosyd is on again tomorrow, Tuesday January 10, 6:30 for a 7pm start at the Trinity:http://tinyurl.com/6emfna We have the following talks lined up: Presentations: Riak and Ripple, yet another NoSQL solution - Tim McGilchrist (@lambda_foo) Semantic Modelling - Queries in the Constellation Query Language - Clifford Heath (@cliffordheath) Lightning talks: Analysing the way you work - YAFTL. Richard Heycock @filterfish Sapporo RubyKaigi 2012: the RubyKaigi you have when you're not having a RubyKaigi - Andrew Grimm (@andrewjgrimm) See you at rorosyd! Regards, Keith -- You received this message because you are subscribed to the Google Groups Ruby 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] Reminder: rorosyd is on next Tuesday
On 06/03/2012, at 10:11 AM, Keith Pitty wrote: It's nearly time for rorosyd again, next Tuesday March 13, 6:30 for a 7pm start at the Trinity:http://tinyurl.com/6emfna So far we don't have any talks lined up so, if you would like to share something, please put your name down at: https://github.com/rails-oceania/roro/wiki/rorosyd-topics and let me know. I'll be there. I have a quick (10 min) prepared presentation on my Semantic Modelling work, which was a well-received impromptu at Melbourne RORO a couple of months back. Since my permanent base is in Sydney from this weekend onwards (for the foreseeable), it'd be good not just to meet you all in the flesh, but to get the chance to tell you what I've been doing for the last five years and where it's going next. Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design Skype: cjheath, Ph: (+61/0)401-533-540 -- You received this message because you are subscribed to the Google Groups Ruby 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] Binary search, insert and delete in Ruby
rbtree is pretty mature, and about right for what you want. Clifford Heath. On 07/03/2012, at 11:49 AM, Nigel Sheridan-Smith wrote: Hi all, I have a lot of data that will be in an ordered list of integers that will need to be combined, uniq'ed, searched, inserted and deleted from quite frequently. For performance reasons, I'm looking to use something like a Sorted Set, where you can use binary search algorithms. Is there any libraries or gems that Rubyists here have previously used? This is the closest I've been able to find (ruby-bsearch, ruby-rbtree): http://www.ruby-forum.com/topic/14 This might be a good time to learn how to package up a gem, if I can put something together quickly. Cheers, Nigel -- You received this message because you are subscribed to the Google Groups Ruby 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 Meetup Group: Melbourne Ruby
On 24/02/2012, at 9:33 AM, Ben Schwarz wrote: … We won't be using 99designs and we won't be doing design by committee either. I can't wait. I'm sure your work will be achingly beautiful. 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-oceania@googlegroups.com. To unsubscribe from this group, 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] DAMA Melbourne and Semantic Modeling
Folk, I'm speaking on Semantic Modeling at DAMA (the international Data Management Association) Melbourne chapter next Monday. It's a fairly short sharp presentation that aims to show how SQL is inhibiting the relational data model's capability to promote project success in the software industry as a whole, how fact-based approaches can help, and what the data management community needs to do to make that happen. The DAMA Melbourne Events page is here: http://www.dama.org.au/chapters/melbourne/events/. Entry is free for DAMA members, $15 for others, which covers venue, drinks and nibbles. If you can spare the time, do please sign up to attend my presentation! Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design Skype: cjheath, Ph: (+61/0)401-533-540 -- You received this message because you are subscribed to the Google Groups Ruby 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] DAMA Melbourne and Semantic Modeling
It's about how Object Role Models (and other forms of fact-based modelling such as in my Constellation Query Language) can help in bridging the communications divide between business and IT. This communications gulf, which Martin Fowler refers to as the Yawning Crevasse of Doom is the primary cause of software project failures and blowouts, so anything that can help bridge it is worthwhile. Data folk are not normally seen as able to help, which is a pity, because they should be. Clifford Heath. http://www.infoq.com/news/2008/08/Fowler-North-Crevasse-of-Doom On 08/11/2011, at 1:14 PM, Steven Ringo wrote: Buzzword Bingo achievement unlocked! Seriously, what is this talk *really* about? On 08/11/2011, at 12:52 PM, Clifford Heath wrote: Folk, I'm speaking on Semantic Modeling at DAMA (the international Data Management Association) Melbourne chapter next Monday. It's a fairly short sharp presentation that aims to show how SQL is inhibiting the relational data model's capability to promote project success in the software industry as a whole, how fact-based approaches can help, and what the data management community needs to do to make that happen. The DAMA Melbourne Events page is here: http://www.dama.org.au/chapters/melbourne/events/. Entry is free for DAMA members, $15 for others, which covers venue, drinks and nibbles. If you can spare the time, do please sign up to attend my presentation! Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design Skype: cjheath, Ph: (+61/0)401-533-540 -- You received this message because you are subscribed to the Google Groups Ruby 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] Versioning associated models for future reporting
On 29/09/2011, at 12:01 PM, Chris Berkhout wrote: What about keeping old versions in the same tables, but marked with something like valid_until? Then you can always get the current version as of a particular time. There's no one-size-fits all for temporal data modelling, unfortunately. The three approaches are: 1) Include old data in the same table 2) Move data to a historical replica table, with a timestamp 3) Store compressed records or deltas. The problem with approach 2 is that it's hard to get it to work well when you have associated tables, like master-slave structures. Personally I like the valid_until approach, though I have implemented it wrongly in the past, using a NULL value for the current version. There's a number of reporting pitfalls if you use NULLs in this way. However, if you use a real date/time in the infinite future (maybe define it as OMEGA?), and trigger on insertion (either real DBMS triggers, or ActiveRecord hooks), you can modify the current record's validity to end now, and still index by time. For display, you can define either an AR scope or an SQL view to return the current data. This gets around many of the kind of issues that Ben raises. It is somewhat more work; but so is creating custom reports over archived records. If you need to make a lot of reports that display the state as it was at some point in the past, it works pretty well and is less effort than using record archiving. If you don't need much time-shifted reporting (perhaps just enough to satisfy occasional audit requirements), it's more work. Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design Skype: cjheath, Ph: (+61/0)401-533-540 -- You received this message because you are subscribed to the Google Groups Ruby 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: Ruby gsub is screwed?
On 16/08/2011, at 5:30 PM, dnagir wrote: It took me by surprise :) Don't worry, this Ruby design flaw has baffled all of us at some stage. I still recall the experience, even though it was sometime in 2002 :). The Ruby standard library is like walking across a cow paddock, you learn to watch where you put your feet. 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-oceania@googlegroups.com. To unsubscribe from this group, 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: Ruby gsub is screwed?
On 16/08/2011, at 5:55 PM, Andrew Grimm wrote: What approach do other languages take to gsub? That's not really relevant. The point is that Ruby already has an interpolation syntax and rules for strings, and the syntax used for interpolating MatchData values in sub/gsub should have been as close as possible to that syntax. Perhaps '#\1' for example (*). Instead Ruby took the Perl path, the source of so many of its quirks. (*) #{$1} would get interpolated before the sub/gsub got called, of course. An alternative would be to define a type of string modifier that delays the interpolation. For example, you could have a string: \foo#{$1}bar where the initial backslash marks the string as to be interpolated when the value is next accessed (as opposed to right now). It would come at the cost of creating a closure though. 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-oceania@googlegroups.com. To unsubscribe from this group, 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!
On 15/08/2011, at 4:35 PM, Michael Pearson wrote: I need to move my site's DNS off of linode. 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. I've been pretty happy with http://domainpanel.com. Unremarkable but effective UI, no photography or advertising, various options for forwarding (DNS, URLs and email). Cheap, no nonsense. No API AFAIK. 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-oceania@googlegroups.com. To unsubscribe from this group, 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] testing/TDD/BDD question
On 05/08/2011, at 10:20 AM, Malcolm Locke wrote: On Fri, Aug 05, 2011 at 10:00:52AM +1000, Michael Pearson wrote: Final note: check out gofer (https://github.com/mipearson/gofer) if you're trying to ssh to lots of servers. I wrote it as a replacement for system ssh foo bar and an improvement on Net::SSH, with a focus on automation work. I've been wanting to try this out for some time, which takes takes this concept to the next level: http://docs.puppetlabs.com/mcollective/ Uses a Publish/Subscribe mechanism, and works with Puppet facts. Allows you to do things like 'run command x on every Debian squeeze server in the EU zone' without maintaining a central configuration. The trouble with this approach (speaking as a veteran designer of a major enterprise software product in this space, with patents to prove it!), is that if one of those boxes is down at the time, it never gets the configuration change. This is completely at odds with the policy based approach of tools like Babushka, where every configuration is published in its entirety, and when each system receives a configuration, takes any steps needed (including ones it might have previously missed) to bring itself into compliance. Task based configuration management solutions suck in large environments, because you spend so much time chasing up exceptions and failures. Policy-based is absolutely the way to go. Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design Skype: cjheath, Ph: (+61/0)401-533-540 -- You received this message because you are subscribed to the Google Groups Ruby 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: Meetup on 30th of June - Speakers welcome
I had negotiate for a speaking slot (to fill my analog blog commitment from last time) with Michael Morris, and have prepared a talk on Comet with Sinatra, which is based on my bayeux-rack gem and jquery.comet client-side code. If you don't know what Comet it, it's basically asynchronous messaging from server to browser, using AJAX requests. Comet is regarded as being a little old-hat now, but socket-io doesn't have support in any Rack-based server, so folk have been forced to jump to Node.js or run a second server to get asynchronous messaging. There are other alternatives which implement long-polling, but not as simple and sweet as what I'll show. Or so I think anyhow! Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design Skype: cjheath, Ph: (+61/0)401-533-540 -- You received this message because you are subscribed to the Google Groups Ruby 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] [MEL] Meetup this Thursday 30th June
My Mac Mini-DVI - VGA adapter seems to have an intermittent red. Given the limited remaining life of this box, I won't buy another. Can someone please bring one for me? Clifford Heath. On 28/06/2011, at 7:05 PM, Michael Morris wrote: Hey everyone, The next Melbourne Ruby group is this Thursday hosted by Thoughtworks Melbourne. Arrive at 6 for a 6:30 start. Thoughtworks IOOF Building, Level 15, corner of Elizabeth and Collins Street We have 5 fabulous people who have offered/been volunteered to speak: Clifford Heath is talking about implementing COMET in Sinatra Eric Harrison poses the question are class variables useless? Jack Chen (chendo) is getting his parallel test on with specjour Mike Williams is giving a talk about lazy enumerables and after requests from last month Florian Hanke giving a quick talk about James (http://github.com/floere/james) There will be pizza thanks to Thoughtworks. Drinks afterwards will be at the Sherlock Holmes. If you struggle to get into the building give me a call on 0422809008. Cheers, Mike -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-oceania@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-oceania@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] Re: Ruby: the non-awesome parts
On 24/06/2011, at 5:58 PM, Ryan Bigg wrote: Extend == you are EXTENDING the class with the methods from the module. The first time I used extend, it was on instances, not on classes. I was extending those instances... that doesn't make sense for include, which only works on classes. 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-oceania@googlegroups.com. To unsubscribe from this group, 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] Including debs in Gemfile
On 24/06/2011, at 11:40 AM, Mike Bailey wrote: It's annoying when you run 'bundle' only to have it fail because required packages for nokogiri or mysql2 are missing. I have a related problem when I install ActiveFacts, and you could perhaps use a technique I applied. My code includes a number of Treetop grammar files. Because these are generated to Ruby files, I require them using Polyglot's loader - so the Ruby file will be loaded if present, otherwise the Polyglot loader for Treetop will generate and 'eval' the Ruby on the fly. This is good for dev, but poor for production use, where I want the Ruby files to be pre-generated. So in my gemspec, I have this line: p.spec_extras[:extensions] = 'lib/activefacts/cql/Rakefile' A Rakefile in your extensions gets run after installation. So I call Treetop to generate the Ruby files there. You could add a gem with a Rakefile that checks for the required packages? No comment on the cleanliness of this mode of operation. I'm not sure even I should have used it, but I thought I'd put it out there for you to consider. 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-oceania@googlegroups.com. To unsubscribe from this group, 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, ODBC and FreeTDS
Sven, ODBC is a pretty outdated way of talking to MS SQL Server. TinyTDS is much faster and less problematic. I haven't seen this problem; you should ask the question on mailto:rails-sqlserver-adap...@googlegroups.com in any case. Clifford Heath. On 21/06/2011, at 11:39 AM, Sven Schott wrote: Hey guys I'm getting some weird behaviour from the ruby-odbc gem and I just wanted to know if anyone had encountered anything like this. I use ODBC, FreeTDS and the ruby-odbc to query a MS SQL server (2008 OS and SQL Server) and I haven't had any problems until I upgraded the system (Ubuntu). It could also be the problem existed when the server was upgraded (from 2003 to 2008) but I have no data to confirm this. Essentially, the problem is that everything works fine (connections are made and queries executed) but the results through the ruby odbc gem always return with the first record multiplied by the number of returns on the query. e.g. I run the following query http://www.pastie.org/2099008 and data comes back as: http://www.pastie.org/2099009 where [1, Security Update for Windows Internet Explorer 7 (KB960714), 20081229, 11, 80389, KB960714-IE7, Microsoft Corporation, 1, Tue, 16 Jun 2009 15:27:52 +, 1, 047a56d9] is the first result that comes up in a SQL query done through management studio and the number of instances (10) is the number of results. Initially I thought it was the FreeTDS driver for ODBC but a sqsh query comes back with the correct results: http://www.pastie.org/2099013 Any ideas? I'm running Ubuntu 10.10 (Maverick) with ruby 1.8.7 (2010-06-23 patchlevel 299). These are the versions of the various libraries: Package: libdbd-freetds State: installed Automatically installed: no Version: 0.8.3-1-0ubuntu1 Package: libdbi0 State: installed Automatically installed: yes Version: 0.8.3-0ubuntu1.1 Package: unixodbc State: installed Automatically installed: no Version: 2.2.14p2-1ubuntu1 Ruby ODBC is ruby-odbc-0.4. freetds.conf file entry looks like: [server_name] host = server_name port = 1433 tds version = 7.0 Any thoughts? Regards Sven -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-oceania@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-oceania@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] Looking for a nested / colourised log output gem
On 04/05/2011, at 10:55 AM, Michael Pearson wrote: I've been writing a lot of system automation tools lately, and one of the things I'm trying to get right is status output. But I've been thinking about verbosity and task nesting. And I'd like to write code that looks like: Logger.task(Making a new container) do blobs.each do |blob| Logger.task(Making new blob #{blob.name}, :verbose = true) ... end end end Before I go and extend our own libraries, does anybody know of a gem that already does task-based nested log output? I have a non-colourised tracer module I use and (mostly) really like. Personally, I don't like most colourised displays; I think whitespace and very few well-contrasting colours are enough. Anyhow... I've been meaning to extract it into a separate gem, and would be happy to work with you on that. The main feature it adds that you don't mention is support for categories, so you can control exactly which kinds of messages get included. Any trace may have a category symbol, and/or a block. See https://github.com/cjheath/activefacts-api/blob/master/lib/activefacts/tracer.rb . The ActiveFacts API doesn't actually contain much tracing, but the rest of the project uses it extensively. You just include tracer.rb, and can write code like: trace Just getting started here trace :overview, I'm doing some big thing here do ... trace :detail, You might not want to know about this do ... end trace :summary, All done ok end You configure it through API calls, or by setting the TRACE environment variable to a simple list of category names. As a special case, all means everything, and help means dump a complete list of the categories that were encountered during the run, so I know what I can enable. In addition, if you specify a category name with a trailing underscore, then when a block is found of that category, all tracing is enabled for the duration of that block (even categories that weren't previously enabled). So TRACE=overview_ would enable everything in the above. One thing: when debugging traced code, the Ruby debugger wants to step into the trace method before it yields to the block. It's an annoyance that it has no step to the first line in the block attached to this statement. However, I've tried to minimise the number of steps required to get from a trace call to the first line of the block. if the code looks a little strange, that'll be why. Sometimes the code that executed in the interpolated string (a) contains many steps to step through and (b) affects runtime performance when tracing is disabled. I attempted to get around that by passing a Proc which is only eval'd if the trace is enabled, but I encountered a performance degradation on long test runs which *may* be attributable; so it's disabled. Can anyone confirm whether such Procs leak? 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-oceania@googlegroups.com. To unsubscribe from this group, 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!
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 julio...@gmail.com 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 ddanger...@gmail.com 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 michael.cind...@sentia.com.au 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- ocea...@googlegroups.com. To unsubscribe from this group, 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- ocea...@googlegroups.com. To unsubscribe from this group, 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 . -- 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
Re: [rails-oceania] [MEL] Meetup, this Thursday 31st March
On 28/03/2011, at 10:41 AM, Xavier Shay wrote: In the speaking line up we have: - Clifford Heath on the 1.0 release of activefacts Ahhh... That's activefacts-api. Sorry to get your hopes up :). I'm splitting the ActiveFacts project into bits and releasing the bits as they mature. The API is a sweet little gem which is still almost 1.0 - I haven't reached my target 100% coverage yet. I though I might during RailsCamp Wellington, but RailsQuest happened instead! Also, the API supports a bunch of extension gems which are at different stages of life. By itself, it's interesting but is more like dm-core than like DataMapper. In any case, it won't change the demonstration... I'll see how I go. Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design Skype: cjheath, @cliffordheath -- You received this message because you are subscribed to the Google Groups Ruby 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: Suggestion for Sponsoring Students to attend Railscamp 9
On 10/03/2011, at 3:01 PM, Keith Pitty wrote: I understand the concern about the higher cost of Railscamp 9. The reason it's more expensive this time is due to the cost of the venue, which turned out to be the only suitable venue we could find in the Byron Bay region. Just to underline this, I've stayed a few days at this venue, and I reckon it could turn into the best RailsCamp ever - it's a great site. Similar to Lord Somers in many ways, but with a warm climate, proper surf and even better facilities. Not sure I'll get there for this one, but it'll be a goodie! 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-oceania@googlegroups.com. To unsubscribe from this group, 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: Skinny Controller, Fat Model ...
On 25/02/2011, at 8:52 AM, Lachie wrote: I'm not really sure what you're expounding. Are you talking about something like DAOs (Data Access Objects) in Javaland for persistence, Business logic in different objects? Thinking about it some more, I think the reason we don't use separate Persistence and Business objects in Rails is because ActiveRecord does enough for free, through magic that separating the two becomes YAGNI. I'd agree that its not Pure™ but its pragmatic. ActiveRecord is easier to use than Hibernate because it doesn't separate the business objects layer from the persistence layer, but that also makes it less flexible, and in particular less able to deal with legacy databases. When you start applying AR to legacy databases, even assuming that you get past the roadblocks of ID columns and multi-part keys, you find that the model objects are often structured in a way that clashes with the way you'd like to structure your domain logic. When you're working green-fields, AR works pretty well (your 'pragmatic' comment). Also, I think the trend to name the data layer as the model is incorrect. The entire program is a model. The data layer is an *information* model, the controller layer is a *process* model and the view layer (with some controller help in Rails' case) forms the interaction model. My point is that all three layers are models. I call these three models Information, Process, Interaction, rather than MVC. I think that gives a clearer idea of what should be in each layer. It also makes it clear that a more effective language for writing controllers could be had by designing it to explicitly model business processes (where a controller action is a process step). I'm not at all happy with Rails' approach in this regard. You *only* have actions, and nothing which links them together into a process view. Affordances in the UI, rendered as URLs or whatever, reflect possible process transition paths; but in Rails these are devolved to the interaction (view) layer, which is wrong in my opinion. Affordances are the key thing that creates the process view, and Rails pushes them out of the controller where they belong. The controller should explicitly make each affordance available for rendering (by the view) in the same way that data is made available. This would pull the whole process model back into the controller where it belongs. As it is, Rails has a weird concoction of url helpers, view renderers and controller hooks that together encode the process model. Note, by process I mean a business process, not logic (which usually belongs to the information layer). Any code which derives from, aggregates, or otherwise manipulates persistent information belongs in the information layer. The process layer can then use that information (whether stored or derived) to make process-flow decisions, and to route to/from the interaction layer. It should not contain (as Rails controllers usually do) code to derive or aggregate results (beyond simple :include type aggregation). Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design. -- You received this message because you are subscribed to the Google Groups Ruby 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] Skinny Controller, Fat Model ...
On 24/02/2011, at 11:12 AM, Bodaniel Jeanes wrote: In the same sort of vein as MVC and keeping controllers skinny, have you guys read this blog post about applying DCI (data context interaction) to Rails MVC: http://andrzejonsoftware.blogspot.com/2011/02/dci-and-rails.html? I found it very interesting approach (especially for larger scale projects) but haven't seen much chatter about it so I thought I'd throw it out here to see what other people think. I hadn't seen this post or the acronym before, but this is really not a new invention. It's just traits, which I (and others) have used in designing systems for more than a decade. It does seem to work nicely with Ruby though. Regarding the model/controller debate, in my view a controller is responsible for animating the process model. I.e. is this request valid in this context, and what should we do next? Everything it needs to know to direct that decision must come from outside the controller's context. There are four sources of such information that I identify: The request parameters, the session, the database, and the current configuration of the system (this includes the current time). Sometimes external systems also contain relevant state. You might also separate out the authorization data as a separate data source. Ultimately however, every controller decision is essentially based on a query which spans those fact sources. If each such source supported a single query interface, then controllers could be built on top of explicit query statements. I modelled a system like this once (although it was actually built in standard Rails), and the exercise was very interesting. I think it's a fruitful direction for further work. Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-oceania@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] Rails 3 question: Mailers, url_for, and deploying to a subdirectory
On 18/02/2011, at 9:47 AM, Gabe Hollombe wrote: config.action_mailer.default_url_options = { :host = 'foo.com/ bar' } to config/environments/environment_name.rb WILL properly generate urls in my mailers like http://foo.com/bar/sign_in as we all suspected. BUT, as I suspected, this is only a coincidentally workable solution because, if you add the :port option to the config, like this: config.action_mailer.default_url_options = { :host = 'foo.com/ bar', :port = 8080 } then you get urls like http://foo.com/bar:8080/sign_in which is, of course, totally not right. Anyone else have any thoughts to add? That looks like an opportunity to get your name down as a Rails contributor :). You've done most of the investigation, and it shouldn't take much time to find a proper fix, assuming there's not some structural clash endemic in the URL generation code. 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-oceania@googlegroups.com. To unsubscribe from this group, 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: project planning interface thoughts (job?)
On 02/02/2011, at 9:44 AM, Ben Still wrote: I was an avid MS Project person until a few years ago, and I think for some reason MSP has become some kind of default for how you might manage a project. I used MSP for pretty much everything, but with the benefit of hindsight (IMO) it is pretty inflexible. It provided a false expectation of how long a project might take and how it's going. Totally agree. I use a deep task/goal nesting, where you can estimate, work and assign iteration/phasing at any subtask or supertask level. Many tasks get done for this iteration while still having things outstanding for a future one. This was especially the case when working on code that had to be implemented (differently) across many platforms. You need to handle the fact that software is never done and often, neither is a task. In the late 90s I extracted the schema from MSP Server's SQL database and used it as one of the seeds for a new web-hosted design, but that never got funded. I think it could have been an excellent product however. We now rely much more on stories and use Jira and Greenhopper for managing and scheduling tasks. Tasks in the real world don't neatly line up and change from todo to done - they need to get worked on, QA'ed by someone, perhaps a bit more work, and then closed. In other words, each task is a mini project by itself. How well does Jira handle that? We've also made some stuff to pull information out of Harvest and Jira and show this on a wallboard http://redant.com.au/blog/the-story-behind-our-wallboard/ That's really nice. you might get further along by finding an existing tool (there are thousands out there) and then building something that works with that if you need to. I've not seen one that handles the richly structured hierarchy that I use and want, except the indented plain-text files which are my current fall-back. Truthfully, a web-based solution would have to be pretty good to be better, for small projects. Clifford Heath, Data Constellation. regards Ben On Jan 31, 6:54 pm, Clifford Heath clifford.he...@gmail.com wrote: It's not cheap, but surely if you're already using MS Project, a distributed MS Project Server would be cheaper than building it yourself? http://www.microsoft.com/project Or doesn't it handle cross-project resoursing like you need? The possibility for scope creep is huge in a system like you propose (public holidays, vacation schedules, integration with personal calendar systems, etc). Been there, done that (built a GANTT chart widget in the 90s for Telstra to use in some scheduling system - luckily I only had to build the widget, not the whole app!) If you want to build it anyway, the graphical elements of the UI would work best if built using Raphael. Raphael is awesome, and doesn't require mad JS skillz to make it sing, though I've found they help :). All the dragdrop capability you need is either already there, or you can add it athttp://github.com/cjheath/Raphaelle/ Not willing to hazard a firm guess at what price you'd get those skills though. Anything from $60-$120 an hour, and the rate won't necessarily correlate with the productivity :). I wouldn't try to push it down to $40, or you'll probably get a nuff- nuff. Clifford Heath, Data Constellation,http://dataconstellation.com On 31/01/2011, at 5:55 PM, Tim McEwan wrote: Thanks Julio. To clarify - this system will be custom-built so it won't work in exactly the same way as the others. From what I've seen of them, they're all about planning one project. The interface I describe will plan only one project, but our system manages 100+ active projects at any one time, so the interface needs to give feedback as to whether you're allocating someone who's already allocated elsewhere. It's also the way my colleagues have been used to planning projects, so we can't change the interface too radically (to the calendar style, for instance). We have something similar to it already, but it's just a series of input boxes for weeks going forwards (and is consequently terrible to use). We only just managed to ween them off Excel, but they're seriously pining for draggability. ;-) And also to clarify, when I said how much I meant $/hr. Thanks again! -- Tim McEwan Sent with Sparrow On Monday, 31 January 2011 at 17:37, Julio Cesar Ody wrote: 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
Re: [rails-oceania] Is save/save! synchronous?
On 01/02/2011, at 5:02 PM, Daniel N wrote: And until it's committed, if you try to read it, you will *block* or fail on a timeout/deadlock. What *won't* happen is that you get to see the data in either the before or after state. How do you mean Cliff? Do you mean from the connection inside the transaction that it can't be read? No, I mean that you can's see the change from any other transaction, say a command-line SQL command or a database query tool. You'll only see the results from within the transaction that created them. 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-oceania@googlegroups.com. To unsubscribe from this group, 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] Crazy cases for Mac directories
On 17/01/2011, at 6:50 PM, Chris Berkhout wrote: I think you're right about different implementations giving different results. There was always one true name, and false references that aliased it. But since that renaming brought everything into line, there must have been and uppercase version and a lowercase version stored somewhere, rather than a single true name being differently interpreted by various implementations. The single true name was the actual filesystem name (lower case), which you repaired. The upper-case version was stored in the password file as your home directory, which gets propagated into ENV['HOME'] when you log in. Clifford Heath. Cheers, Chris On Mon, Jan 17, 2011 at 8:22 AM, Clifford Heath clifford.he...@gmail.com wrote: Chris, I don't think this is a Ruby thing, but comes from the different ways Ruby gets the information. getpwuid gets your password entry from the password database. Dir[/] reads the content of the root directory. The env, well, you know. I'm not sure what the Mac implementation of Dir.pwd does, but it could not be any of the above. One BSD implementation I knew had a very clunky method: it would progressively read the entries in .., ../.., ../../.., etc, and match the inode numbers with ., .., ../.., etc. I suspect that Apple has replaced that, as most unices have, with a kernel implementation, but I can't see it documented in /usr/share/man/man2. https://github.com/ruby/ruby/blob/trunk/dir.c says it's implemented using my_getcwd, which is probably just a wrapper for getcwd (man 3 getcwd) from the Apple standard library. Try a little C program and tell us what it says: #include unistd.h void main() { char buf[1024]; getcwd(buf, sizeof(buf)); puts(buf); exit(0); } Clifford Heath. On 16/01/2011, at 10:59 PM, Chris Berkhout wrote: Hi All, Today I was surprised to find that the U in Users is uppercase (which I consider correct) in: Etc.getpwuid.dir = /Users/chrisberkhout Dir.entries(/) = [..., Users, ...] ENV['PWD'] = /Users/chrisberkhout But lowercase in: Dir.pwd = /users/chrisberkhout File.expand_path('.') = /users/chrisberkhout Also, - Manually changing into the uppercase directory doesn't help. - Deeper directories with uppercase letters seem fine. - Other root-level directories with uppercase letters seem fine. Anyone else run into this issue? 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. -- You received this message because you are subscribed to the Google Groups Ruby 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] Crazy cases for Mac directories
On 17/01/2011, at 9:03 PM, Chris Berkhout wrote: I was also getting this: Dir.entries(/) = [..., Users, ...] And finder and bash only showed uppercase. Oooh, right! Funky. So the HFS filesystem must have at least two names... There's an open HFS implementation, you could probably find out from that. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-oceania@googlegroups.com. To unsubscribe from this group, 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] Crazy cases for Mac directories
Chris, I don't think this is a Ruby thing, but comes from the different ways Ruby gets the information. getpwuid gets your password entry from the password database. Dir[/] reads the content of the root directory. The env, well, you know. I'm not sure what the Mac implementation of Dir.pwd does, but it could not be any of the above. One BSD implementation I knew had a very clunky method: it would progressively read the entries in .., ../.., ../../.., etc, and match the inode numbers with ., .., ../.., etc. I suspect that Apple has replaced that, as most unices have, with a kernel implementation, but I can't see it documented in /usr/share/man/man2. https://github.com/ruby/ruby/blob/trunk/dir.c says it's implemented using my_getcwd, which is probably just a wrapper for getcwd (man 3 getcwd) from the Apple standard library. Try a little C program and tell us what it says: #include unistd.h void main() { char buf[1024]; getcwd(buf, sizeof(buf)); puts(buf); exit(0); } Clifford Heath. On 16/01/2011, at 10:59 PM, Chris Berkhout wrote: Hi All, Today I was surprised to find that the U in Users is uppercase (which I consider correct) in: Etc.getpwuid.dir = /Users/chrisberkhout Dir.entries(/) = [..., Users, ...] ENV['PWD'] = /Users/chrisberkhout But lowercase in: Dir.pwd = /users/chrisberkhout File.expand_path('.') = /users/chrisberkhout Also, - Manually changing into the uppercase directory doesn't help. - Deeper directories with uppercase letters seem fine. - Other root-level directories with uppercase letters seem fine. Anyone else run into this issue? 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 . -- You received this message because you are subscribed to the Google Groups Ruby 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: Are rails 3 specs really slow
On 15/12/2010, at 2:39 PM, Bayan Khalili wrote: You can also use `let` (which some Lisp folk might recognise) for values that are used some of the time, but not in every test block. It appears to be evaluated only when called for in each block. And only once - it is called the first time it's used in a test, and the value is stored for any subsequent references in the same test. It means you can have a bunch of things available but not have to set them up in a before :each unless they're called. 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.
Re: [rails-oceania] Rails Camp 9 Venue and Dates Confirmed
On 09/12/2010, at 11:26 PM, Daniel N wrote: Looks like an awesome venue :D It is, totally. I stayed there for a few days in 2007. It'll be perfect for RC. Congrats on securing it. Clifford Heath. Nice job... On 9 December 2010 22:55, Keith Pitty ke...@keithpitty.com wrote: Fellow Railscampers, Those of you who were present at Rails Camp 8 in Perth may remember my announcement late on Sunday about Rails Camp 9. I can now confirm that we have paid the deposit and secured the venue! RC9 will be held from Friday 10th to Monday 13th June, 2011 at Lake Ainsworth, near Lennox Head, NSW. See http://www.dsr.nsw.gov.au/lakeainsworth/ for details of the venue and http://bit.ly/gFEyqK for photos courtesy of Elle Meredith. We anticipate making tickets available for purchase in late February or early March. Meanwhile, if you have any suggestions about what you would like to see happen at RC9, please reply to railsc...@googlegroups.com . Regards, Keith Pitty (on behalf of the organising crew) -- http://www.cockatoosoftware.com.au http://keithpitty.com T: +61 (0) 417 405 109 F: +61 (2) 4340 4203 -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] Current Amazon AMIs of choice
On 08/12/2010, at 9:50 AM, Gabe Hollombe wrote: The docs for ec2-bundle-vol say: Create a bundled AMI by taking a snapshot of the local machine's root file system, compressing, encrypting and signing the snapshot. Does that mean that if I have a current ec2 instance running on a mounted ebs volume that's 14 gigs big, but I'm only using 4 gigs of space on it, then after I ec2-bundle-vol it, I'll end up with a 4 gig (ish) ami image that I could restore to, say, a 5 gig ebs volume? That's a good question Gabe, but the answer is not in the above statement. It will depend on whether the snapshot is a disk image or a filesystem dump. Does anyone know? I'd like the answer too. Clifford Heath. -g On Wed, Dec 8, 2010 at 9:15 AM, Ivan Vanderbyl ivanvander...@gmail.com wrote: There isn't an official one yet, but you could use the ec2-bundle- vol to make one, just set the size to something that will fit a micro instance. -Ivan On 08/12/2010, at 9:02 AM, Gabe Hollombe wrote: Hmm. Has anyone noticed if they've got an adjusted Ubuntu 10 LTS image that fits on the 'free' Micro instance disk space yet? -g On Mon, Nov 29, 2010 at 10:57 AM, Ivan Vanderbyl ivanvander...@gmail.com wrote: Hi Chris, I'm using the latest Ubuntu 10.10 images from http://uec-images.ubuntu.com/releases/maverick/release/ Seems to be setup quite nicely and haven't had any issues. Ivan On 29/11/2010, at 10:54 AM, Chris Lloyd wrote: I've been slow to catch onto this whole cloud thing and it seems like every man and his dog has their own virtual images. There were 6077 EC2 community images at last count! For those who use EC2 (or an AMI compatible cloud provider) which ones do you use? -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails- ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails- ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] Re: Melbourne javascript group ?
On 06/12/2010, at 2:19 PM, Ben Schwarz wrote: The original discussion broke off to here: http://groups.google.com/group/melbourne-javascript-jquery Yet it was never followed up. ... and I'm a lot confused as to why a day (Wednesday) was chosen without any discussion. There are far too many things on Weds already. 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.
Re: [rails-oceania] Re: parsing xls files
The question to ask is what actual protection is provided by GPL's copyleft (as opposed to any other open source license). In the 1980's, any code that was released freely, under any kind of license or copyright terms, was regarded as fair game for incorporation into commercial closed-source software. Sometimes entire systems were simply adopted and adapted and released with commercial support, but more commonly, it was just subsystems. The GPL changed that, by providing a legal body behind the protection of open source authors' rights. It took twenty years - vis the Linksys WRT-54G wireless routers which used Linux, and the GPL forced that platform open. But my belief now is that the threat posed to author's rights is now fairly small. The other thing that the GPL achieved was in forcing such platforms open, to allow public scrutiny and improvement of a vendor's products. This occurs in several ways: (a) by direct open source replacement of the vendor's firmware (OpenWRT) (b) by the vendor adopting improvements from such efforts and (c) by not wanting to be embarrassed by continuing to use software that has been revealed to have weaknesses. So far so good... I hope I've established my case that the GPL served a necessary purpose. But... most software now being created is not subject to such risks, and therefore doesn't need such protection. In fact, it can be counter-productive, as I'll show. GPL advocates would argue that *all* software should be open. That's unrealistic in the extreme - the majority of many company's IP is in their software, and though a lot could survive or even benefit from opening it, a lot could not, also. On 28/11/2010, at 10:38 PM, Robert Postill wrote: what about GCC or Sphinx or any one of a cornucopia of utils we use with Ruby? Open software provides the best available support for widely-used standards (thinking of zip/deflate, OpenSSL, etc), and we benefit because those things *are* standards. That doesn't imply that they must be GPL, only open. Imagine if vendors all had to roll-their-own compression and encryption to avoid exposing their entire software IP! Many products would simply not exist, or would exist in a much inferior form. I'm glad that these open source tools did *not* use GPL licensing - I think we're all better off for that. None of the native tar implementations was light years ahead of the others but they all had annoying bugs or limitations that just weren't in the GNU software. They were all extended from the basic UNIX tar in order to support features of the proprietary systems (symlinks, ACLs, etc). They also fell behind the standard and so became incompatible. But when you chose GNU tar, you were effectively saying that those added features didn't matter to you. Or that if they did, you or someone would add them to the GNU version. Good move, but wouldn't it be better if the original tar had been designed with an extensible tagged metadata system which allowed proprietary variance without proliferation of custom versions? The opportunity to refactor or rewrite comes from the open nature of the software, and GPL forced that to happen when as an industry we believed we all could do do better on our own. I wouldn't want to go back to that and I see GPL as a important defence of the things I don't want wrecked. I don't think that any substantial part of the software world would or could go back in that way that you fear. We should be able to take our car to any garage or know that the life support system we depend on isn't using a buggy math lib and the GPL is the crowbar that allows that to happen because it makes it hard to use GPL code without being open yourself. I'd certainly not want a car or a pacemaker that displays the kinds of flaws which are widespread in open-source software. The ability to dig in and fix it yourself is just not comforting, and shouldn't get used as an excuse for buggy software, as frequently happens now. My conclusion: If you want to give something away, then give it away without reservation or regret. If you want credit, require that with a copyright and open license - but don't try to limit how others may use your gift. Clifford Heath (the first Unix geek graduate in Melbourne). Wow, you're even older than I thought you were :) Just couldn't resist that one Hehe. Better to be old and wise than young and stupid. UniMelb introduced UNIX to undergraduates in 1980, my final year. I was the only one who refused to work with anything else. 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.
Re: [rails-oceania] Re: parsing xls files
On 27/11/2010, at 11:19 PM, Robert Postill wrote: You know that rubygems Rubygems is dual-licensed, GPL and a custom license. and I think ruby's SSL are GPL code right? OpenSSL is dual-licensed: http://www.openssl.org/source/license.html. Ruby's OpenSSL wrapper is licensed under the Ruby license. We depend on massive wedges of GPL software (e.g. mysql or postgres) MySQL is dual-licensed, and even the GPL license they use is modified so as to remove the GPL restrictions for its use in FOSS. http://www.mysql.com/about/legal/licensing/oem/ Postgres is released under its own license, similar to BSD or MIT. http://www.postgresql.org/about/licence I' a grumpy man about this stuff because I'm old enough to remember I'm a grumpy old man about this stuff because people spout off about it without checking their facts :). the (end, definitely the end of :) bad old days of proprietary UNIX and how we lost so much software because we didn't understand the value of freedom. Most of the original UNIX code wasn't that good(*), and anything worthwhile from it has been rewritten much better than original. That needs to happen to all software, at least once. It's a net gain, not a loss. (*) I ported and extended ATT Unix, and used to spend hours reading the source. The culture of handling and reporting errors is woeful, with so many error conditions simply ignored, or under-reported. No such file or directory indeed. Well - which is it, a file, or a directory? How 'bout you tell me *which* file of directory you were expecting? Humbug. This poor culture continues today, unfortunately. MIT is an awesome license but people can and should chose other licenses for their software. I don't agree with that. GPL had its place, but software freedom is firmly established now and copyleft is just not needed - in fact it's counter- productive. Clifford Heath (the first Unix geek graduate in Melbourne). -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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: model design advice
Geoff, On 26/11/2010, at 4:10 PM, Geoff Hodgson wrote: The hierarchy of ANZSIC codes can be pretty confusing - if you know what your final selection should be, it's not always obvious which options lead to it. A search box -might- be a more user-friendly option A search box is more friendly than what? I don't think I suggested what kind of UI to use. Clifford Heath. On Fri, Nov 26, 2010 at 3:52 PM, Clifford Heath clifford.he...@gmail.com wrote: On 26/11/2010, at 3:40 PM, Tim McEwan wrote: Ha! Sorry, I spelled it wrong (ANZSIC). That was pretty much it though - except we want to go a level deeper than they display. Also I got the order wrong, it's group, then class. I reckon I'd go with a non-numeric id field consisting of the letter and number (so A for Agriculture, Forestry and Fishing, A011 for Nursery and Floriculture Production, etc). You can easily reconstruct the hierarchy in memory, and since this table won't ever get changed without a server restart, I'd load the entire thing and build the hierarchy in memory and cache it in a class variable. You can still use the real table for FK enforcement, but you have the data in memory for validations... and if you ship the whole thing to the browser as JSON, can build a UI for it there and validate immediately. It's important in my view that this kind of data (reference data) should be populated into a database table, even if you never plan to update it. 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 . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] RSpec: How to test that a class's initializer method invokes some method?
Don't you actually want to know whether your new Entity can see server ticks? So why not create one and send a tick, verifying that it hears? You might need to mock the server, but that sounds like a good idea anyhow. Clifford Heath. On 22/11/2010, at 10:11 AM, Gabe Hollombe wrote: Let's look at a real-world example instead of my contrived Person with private #do_something crappy example. From https://github.com/gabehollombe/DirtyMUD/blob/master/spec/dirtymud/entity_spec.rb it 'listens to server ticks when it is created' #I'd like to test that Entity#observe(server) is called when I call Entity.new(:server = server), but how? The Entity class file: https://github.com/gabehollombe/DirtyMUD/blob/master/lib/dirtymud/entity.rb The Responder module that Entity mixes in to give it #observe: https://github.com/gabehollombe/DirtyMUD/blob/master/lib/dirtymud/responder.rb #Observer::observe def observe(obj, do_observe=true) if do_observe obj.add_observer(self) else obj.delete_observer(self) end end What I'd like to do is test that when I call Entity.new(:server = server), the new Entity that's created calls observe(server). Am I still thinking about this the wrong way? On Mon, Nov 22, 2010 at 6:55 AM, Pat Allan p...@freelancing- gods.com wrote: Heya Gabe I'd recommend against testing whether a private method has been called. I treat private methods as the black box internals of the class - you should be able to refactor them without any tests breaking. What I'd more be looking to test is what I would expect those private methods to do. Are they sending an email? Setting an attribute? What's the (public) behaviour you want to see? Cheers -- Pat On 22/11/2010, at 9:46 AM, Gabe Hollombe wrote: Hey peeps: Let's say I've got a Person class like so: class Person def initialize do_something end private def do_something #do something useful end end Now, let's say I'd like to write a spec to ensure that Person#do_something is called when I call Person#new What's the right way to test for this? RSpec's built in message expectations, using 'should_receive', need to be placed on an instance of an object before I trigger the method that should end up triggering the expected invocation. But, in this case, I can't set a should_receive expectation because I don't have a handle on the new Person instance until after #initialize is done doing its work. I could explore other message expectation frameworks, like RR, that are supposed to let me tack on the expectations post facto, instead of a priori (wow, did I really just write post facto and a priori in the same sentence?), but I'm wondering if there's a built-in RSpec-y way to do this. Help a brother out? -g -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] Newbie Query: ActiveRecord multi-thread/process safe and auto-reload how-to
On 19/11/2010, at 11:27 AM, Dmytrii Nagirniak wrote: But as far as I understand Chris needs to ensure that there are no stale objects in the middle of an action (not user's one but a system's). That's not even theoretically possible in a parallel system. All you can do is code each transaction semantically (add 1 to X rather than set X to old-X+1) and then rely on database serialisation to make it work. In order to reduce deadlocks, you can use intent-update locks (which AR's :lock gives you) or just ensure that multi-record updates are ordered (i.e. if you update A then B in one transaction, you never update B then A in another). With long-polling or websockets, you could potentially notify the user that the record they're seeing has been updated, but you'd have to think that through from a XP point of view. However, I don't think that's what Chris was concerned about. It seems to me he was worried that while I'm looking at some data and perhaps changing it, but haven't yet submitted my changes, someone else will submit a change that make my changes invalid. The correct answer is to detect that using versioning or row- value checksums, where the check value is hidden in the form I will submit, and must match if my changes are to be accepted. The nice thing about doing this with checksums (as opposed to versions) is that if the record is large, and I'm only looking at a subset of the fields, I can have a checksum over just those fields, rather than the whole record. When I submit, the record is re-fetched and those fields re-checksummed. As long as *nothing I was looking at* has changed, my update is still valid. In most applications. YMMV. You might not have encountered a situation where this was even possible... but for example, the Claims table in an insurance app might well have a hundred fields, and those will never all be shown at the same time. You could break the record into separate records and use row versions for each, but then your UI is leaking into your schema. Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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] Fwd: [Fwd: Regulator warns Australia's finance industry on cloud risks]
Hmmm. Relevant? I think so. Clifford Heath. Begin forwarded message: Original Message Subject: Regulator warns Australia's finance industry on cloud risks Date: Wed, 17 Nov 2010 05:34:44 +1100 From: Don McKenzie 5...@2.5a Newsgroups: aus.computers,aus.electronics Regulator warns Australia's finance industry on cloud risks By Brett Winterford on Nov 16, 2010 4:56 PM (12 hours ago) APRA's cloud computing fears published in open letter. The letter will prove a blow to U.S.-owned cloud computing providers such as Amazon's EC2, Salesforce.com, Microsoft's Azure and Google's App Engine - all of which to date are hosted elsewhere in Asia. Australian banking regulator APRA has written an open letter to the financial services industry, urging executives to view cloud computing as a new form of outsourcing or offshoring that requires the regulator's tick of approval. The rise of cloud computing has - as formerly expressed by CSC chief technology officer Bob Hayward - caught the regulator by surprise. Earlier this year the regulator stepped in to apply pressure on one wealth management firm that had endeavoured to migrate its CRM system to Salesforce.com, hosted in Singapore. Today's letter [PDF] - first reported on technology news site Delimiter - reinforced APRA's view that cloud computing is still untested technically and legally. The regulator said organisations migrating services such as messaging and calendaring, collaboration and CRM to the cloud be concerned about serious risks to the business. While these applications may seem innocuous, the reality is that they may form an integral part of an institution's core business processes, including both approval and decision-making, and can be material and critical to the ongoing operations of the institution, APRA said in the letter. APRA has noted that its regulated institutions do not always recognise the significance of cloud computing initiatives and fail to acknowledge the outsourcing and/or offshoring elements in them, the letter said. As a consequence, the initiatives are not being subjected to the usual rigour of existing outsourcing and risk management frameworks, and the board and senior management are not fully informed and engaged. Regulated institutions are reminded that, under the prudential standards on outsourcing, they are required to consult with APRA prior to entering into any offshoring agreement involving a material business activity. APRA expects that any outsourcing project that could hinder an organisation's ability to manage risks effectively or have a significant impact on the institution's business operations requires the regulator's approval. Those wishing to embrace the cloud are required to undertake a comprehensive risk assessment around the type of service, the service provider and where it is located, and the criticality and sensitivity of the IT assets involved. APRA has observed that, to date, assessments of cloud computing proposals typically lack sufficient consideration of these factors, the letter said. http://www.itnews.com.au/News/238817,regulator-warns-australias-finance-industry-on-cloud-risks.aspx Cheers Don... -- Don McKenzie Site Map:http://www.dontronics.com/sitemap E-Mail Contact Page: http://www.dontronics.com/email Web Camera Page: http://www.dontronics.com/webcam No More Damn Spam: http://www.dontronics.com/spam USB Isolator 1000VDC For Protecting Your PC OR Laptop http://www.dontronics-shop.com/usb-iso-low-full-speed-usb- isolator.html These products will reduce in price by 5% every month: http://www.dontronics-shop.com/minus-5-every-month.html -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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]
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.
Re: [rails-oceania] [noob] Where do we put code for long running process?
On 13/10/2010, at 10:42 AM, Joshua Partogi wrote: ...where do we put piece of code that runs on a separate thread for a long time every 5 seconds? If you have the choice of server, I'd consider using Thin and doing this using EventMachine timers. 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.
Re: [rails-oceania] [noob] Where do we put code for long running process?
On 13/10/2010, at 10:59 AM, Joshua Partogi wrote: Thanks for the suggestion. Didn't thought of that also. My next question would be, where do I put the code to start the em timers? Initializers? Thanks for the enlightment. It's a good question - I've done this stuff in async_sinatra not Rails yet. See my fork of that gem, there's an example of using an EM::Channel. I'd start it in initializers (check that works though!) but I think I'd want to keep some global indicator of the timer being set, so that any code which accesses the Trends can verify that it's still running, and kicks it off again. Come to that, you might be able to start it on first use and just keep it running... depending on whether you need can or need to create the interim data retroactively. Clifford Heath. http://github.com/cjheath -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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] Anyone thinking of attending YOW Melbourne?
Ben, Brent, etc... Did you ever get a coupon code organised? The Early Bird rates finish today, and I've heard nothing more on this subject since July. Clifford Heath. On 06/07/2010, at 2:05 PM, Ben Schwarz wrote: Hi Brent, Lisa Cumes (from YOW!) mentioned that we (the ruby group) might be able to get a coupon code, so I'd think that if you book that way, you'll receive some form of discount. I've forwarded this on to Lisa as well. Perhaps she can give me the run down. Cheers see you at YOW! Ben -- On Mon, Jul 5, 2010 at 11:42 PM, Brent Snook br...@fuglylogic.com wrote: YOW is on in Melbourne December 2nd to 3rd - http:// yowaustralia.com.au Anyone thinking of attending? Just conference or conference and two day workshop? I'm thinking of going and I'm wondering if we have enough people from this group for a discount. If we can manage 15 or more people, prices per person are: - $1,975 each (instead of $2,195) for the two day conference and workshops - $755 (instead of $840) for the two day conference only Let me know if you're keen and I can see what's involved in organising the discount. Cheers, Brent. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] Anyone thinking of attending YOW Melbourne?
And while on this subject, why are the prices advertised different from Eventbrite's? The 2-day conference is $885 on http://yowconference.com.au/melbourne/registration/index.html but $973.5 on http://yowconference2010melbourne.eventbrite.com/. If that's an AUD/USD thing, it's: a) false and misleading advertising, hence illegal under Australian law, and b) using an incorrect exchange rate of 0.91, not 0.99 as is current. What gives, Lisa Cumes? Clifford Heath. On 06/07/2010, at 2:05 PM, Ben Schwarz wrote: Hi Brent, Lisa Cumes (from YOW!) mentioned that we (the ruby group) might be able to get a coupon code, so I'd think that if you book that way, you'll receive some form of discount. I've forwarded this on to Lisa as well. Perhaps she can give me the run down. Cheers see you at YOW! Ben -- On Mon, Jul 5, 2010 at 11:42 PM, Brent Snook br...@fuglylogic.com wrote: YOW is on in Melbourne December 2nd to 3rd - http:// yowaustralia.com.au Anyone thinking of attending? Just conference or conference and two day workshop? I'm thinking of going and I'm wondering if we have enough people from this group for a discount. If we can manage 15 or more people, prices per person are: - $1,975 each (instead of $2,195) for the two day conference and workshops - $755 (instead of $840) for the two day conference only Let me know if you're keen and I can see what's involved in organising the discount. Cheers, Brent. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] Anyone thinking of attending YOW Melbourne?
Ahhh, so it does. I calculated the fraction in the reverse order and didn't notice that .9090909 was 10/11ths. Clifford Heath. On 08/10/2010, at 12:40 PM, Josh Price wrote: The $935.5 includes GST J On 08/10/2010, at 12:36 PM, Clifford Heath wrote: And while on this subject, why are the prices advertised different from Eventbrite's? The 2-day conference is $885 on http://yowconference.com.au/melbourne/registration/index.html but $973.5 on http://yowconference2010melbourne.eventbrite.com/. If that's an AUD/USD thing, it's: a) false and misleading advertising, hence illegal under Australian law, and b) using an incorrect exchange rate of 0.91, not 0.99 as is current. What gives, Lisa Cumes? Clifford Heath. On 06/07/2010, at 2:05 PM, Ben Schwarz wrote: Hi Brent, Lisa Cumes (from YOW!) mentioned that we (the ruby group) might be able to get a coupon code, so I'd think that if you book that way, you'll receive some form of discount. I've forwarded this on to Lisa as well. Perhaps she can give me the run down. Cheers see you at YOW! Ben -- On Mon, Jul 5, 2010 at 11:42 PM, Brent Snook br...@fuglylogic.com wrote: YOW is on in Melbourne December 2nd to 3rd - http://yowaustralia.com.au Anyone thinking of attending? Just conference or conference and two day workshop? I'm thinking of going and I'm wondering if we have enough people from this group for a discount. If we can manage 15 or more people, prices per person are: - $1,975 each (instead of $2,195) for the two day conference and workshops - $755 (instead of $840) for the two day conference only Let me know if you're keen and I can see what's involved in organising the discount. Cheers, Brent. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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?
On 22/09/2010, at 1:35 PM, Mikel Lindsaar wrote: The most effective way to go about fixing this view rendering problem is a good partial caching implementation. On the other hand, any view that takes four seconds just to render deserves a closer look... even if you wind up caching it anyhow. 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.
Re: [rails-oceania] RMagick woes
On 03/09/2010, at 6:04 PM, Ben Hoskings wrote: On 03/09/2010, at 11:52 AM, Korny Sietsma ko...@sietsma.com wrote: for 95% of tasks, imagemagick is overkill. But that doesn't make it an inherently bad tool, just the wrong tool for the job. I agree, but that's not the problem - it's the fact that it leaks significant memory. That makes it a bad implementation IMO--because of that issue alone, I wouldn't use rmagick. (With the qualification that I haven't used it in a fair while; maybe it's been fixed since then.) While I cant vouch for it, I know that memory leaks was number one on Tim Hunter's priorities, and he claimed to have produced a release that was, barring programmer stupidity, basically free of leaks. In order to get around the issues with the Ruby GC not being able to see the image memory, he even provided a method to release the memory for an image. Now while manual release isn't exactly a 21st century way of going about things, it actually isn't a problem with significant objects like images. G*d forbid we have to remember to release every temporary string and array, but for images... not a problem. That said, any kind of image manipulation is going to use memory in substantial sized hunks, and the fragmentation from that is going to be more severe. Live with that, or farm your image work out to sub-processes with a shorter life. 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.
Re: [rails-oceania] Re: How does the new Google images work?
On 20/08/2010, at 11:15 AM, Mike Bailey wrote: 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). Neat, keepalive comes alive. In which browsers have you tested this? img src=data:image/png;base64, That didn't display in Mac Mail... 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.
Re: [rails-oceania] Hazelcast (another NoSql variant) - does NoSql have to be slow?
On 11/08/2010, at 9:50 AM, Chris Hulbert wrote: ... (each record has ~8 integer fields). Hit a bit of a roadblock - it takes about 8 1/2 minutes to load 1 million records into a locally running cluster of 3 or 4. You're moving 32 MB. If that's from disk to RAM, you should be able to do that in under a second. If it's across a LAN, well, it'll depend on your network, but it should be no slower. If it is... you need to find the bottleneck (duh). What's using CPU during those 8 minutes? How many disk IO/s is the DB process requesting? I suspect the latter is your problem (too many small IO requests), but I know nothing about Hazelcast. Can you cluster the records into large chunks, say at least 64KB each? 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.
Re: [rails-oceania] Penciling in Railscamp NZ
On 08/08/2010, at 8:40 AM, Tim Lucas wrote: On 07/08/2010, at 3:15 PM, Korny Sietsma ko...@sietsma.com wrote: p.s. We might be honeymooning in NZ though, so if you could move it back a week or two, I could possibly sneak out and attend? If you do this I will slap you on behalf of your newly-wed wife. Why? One would think she would be happy if he slipped away from RC to attend his honeymoon for a bit? Congrats Korny! Clifford. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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 SVN export to git repository too complicated ??
On 27/07/2010, at 4:22 PM, anuj wrote: How difficult is it to export an existing svn code repository to git? git-svn works ok, though a little slowly. I suspect you're being asked to pay for the contractor to learn that. If you have a github account (pubic or private), you can copy/paste the SVN URL into a form there and they do all the work for you. Couldn't be easier, takes five minutes max. 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.
Re: [rails-oceania] Re: MSSQL connection sans ODBC?
Oh sorry, you said ActiveRecord. No, direct ADO support has been dropped from ActiveRecord's SQL Server adapter, unless you can go back to a very old revision (like, 2 years old or so). If you want more details, ask here: rails-sqlserver-adap...@googlegroups.com You might be able to fudge together an AR adapter that will cover your cases sufficiently, depending on how much time you can afford. Clifford Heath. On 27/07/2010, at 2:52 PM, Rob L wrote: A large number of existing ruby scripts that I'd rather not have to modify for jruby :) Cheers Rob On Jul 27, 2:35 pm, Chris Hulbert chris.hulb...@gmail.com wrote: Any reason you can't use JRuby and JTDS? Chris On Tue, Jul 27, 2010 at 2:20 PM, Rob L twistedp...@gmail.com wrote: Hi All, As part of a QA suite we need to connect to an MSSQL DB via activerecord... While I already have the connection working fine using unixODBC and FreeTDS I was wondering if anyone was aware of a way to do this sort of thing without the need to pre-configure the system with the ODBC drivers? Cheers Rob -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.comrails-oceania %2bunsubscr...@goog legroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] Re: Organising javascript in rails apps
On 22/07/2010, at 10:59 AM, Josh Price wrote: The fact that it mirrors Rails' own structure makes me have to think about it less. Time for an opinionated JS structure in Rails perhaps? ;) I don't think that Jails is ever going to catch on ;-) Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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
On 22/07/2010, at 10:59 AM, Josh Price wrote: That is, the M part describes a passive box of state and capability, the C part activates those capabilities, and the V part displays the state. I really like this approach. The trickiest part of having the DOM involved in JS is that the DOM can simultaneously be the Model *and* the View. This structure forces to you to separate that duality. MVC originally served the purpose of each model serving an unknown number of views of potentially disparate types. In most situations that doesn't happen and isn't needed however, and the value of separating the model from the view is less. If the Model is a JS object, and the view is a DOM object, and they're closely coupled one-to-one, that serves most purposes. So on that I'd agree with Korny. If you have a bar chart with values above each bar, there's no need to separate (for example) the bar height from the displayed value, as two separate views - it's simply overkill. Do it as one view instead. It's really important that the model is passive and the controller separate. That's what makes it possible to configure the model through settings, and tweak the behaviour by changing the controller. Finer-grained customisation is usually not needed, since we have CSS to set most view details. Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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] Libraries, schmibraries: text to go with my talk for roro syd tomorrow
Chris, Please record, video, or whatever, and post with slides, for those of us not in Sydney. Clifford Heath. On 12/07/2010, at 4:40 PM, chris hulbert wrote: Hi guys, Just been preparing some docs to go with my talk for tomorrow, if anyone's interested on reading them beforehand. I'll be talking about implementing AES and RSA crypto from scratch, and how ruby blows me away that you can do it in so few lines of code! Here's the docs: http://www.scribd.com/doc/33686967/How-to-Implement-AES-in-Ruby http://www.scribd.com/doc/34203336/How-to-Implement-RSA-in-Ruby Two questions: I may not make it through both algorithms. Which would you like to hear about first, in case the second one gets cut off? Also, can someone recommend good presentation software that's free for the mac (eg like powerpoint/keynote) ? -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] Re: Anyone thinking of attending YOW Melbourne?
Ok, Ben/Brent, I'll kick it off. I intend to attend for the two days of the conference only. Clifford Heath. On 06/07/2010, at 9:24 PM, Ben Schwarz wrote: No worries Brent. I guess anyone who wants to attend should leave their details in this thread and you or someone else can group them together to get the booking sorted. Awesome :) -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] Organising javascript in rails apps
On 22/06/2010, at 11:48 PM, Julio Cesar Ody wrote: http://sydjs-architecting.heroku.com/ Excellent, thanks Julio. It's really nice to see the alternatives distilled into such a clear presentation. I've seen so many variations of objects in JS that I wasn't sure how best to do it. 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.
Re: [rails-oceania] When is the Melbourne Meetup in August?
On 16/06/2010, at 9:38 AM, Xavier Shay wrote: On 15/06/10 9:58 PM, Ben Schwarz wrote: Generally, second last thursday of the month. that's tomorrow eh For as long as I've been going it's been the *last* Thursday of the month. Alan asked about August anyhow. Clifford Heath. On Tue, Jun 15, 2010 at 9:56 PM, Alan Harper a...@aussiegeek.net mailto:a...@aussiegeek.net wrote: Hi All, I'm thinking of doing a trip down to Melbourne in August, and I wouldn't mind dropping in on any meetups going on while I'm down there. When is it? Thanks, Alan -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails- ocea...@googlegroups.com mailto:rails-oceania@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com mailto: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-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en. -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] RubyConf Oceania - Expression of Interest
I would attend one, but I'd recommend you investigate the cost of attracting international speakers before you go too far. At one point, RubyCentral was offering to help fund or to underwrite such an event, so you could ask them. They'd at least have an idea of costs, even if they aren't will to help pay them. Clifford Heath. On 09/06/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 . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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: Release of 50and.com
On 04/06/2010, at 6:20 AM, angus wrote: The advantage of postgis is you don't query every record in your db and calc the distance. You use one of those handy db tricks called indexes. It's not quite as bad as every record in the db. You square the circle by multiplying your radius by 1.4, then query every record in a vertical strip and a horizontal stripe of double that width, and join those. At worst, that's a full index scan, but will often instead be two (very) partial scans and an in-memory join, like a hash-join. Not as good as using a proper spatial index, but not too bad. There are a lot of other postGIS query types for which there aren't such good one-dimensional solutions however. Clifford Heath. Angus On Jun 3, 4:31 pm, Nathan de Vries nat...@atnan.com wrote: On 03/06/2010, at 1:45 PM, Keith Pitt wrote: We wrote a plpgsql function that made it easier for us to find locations within a certain radius. This functionality is available via the PostgreSQL earthdistance module. Your km_between_lat_long function can be replaced with: earth_distance(ll_to_earth(lat1, lon1), ll_to_earth(lat2, lon2)) I'm unsure whether that would be faster or more accurate than what you're doing, so you'd need to test it. Cheers, Nathan -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] How should we handle our data?
On 13/05/2010, at 4:31 PM, Daryl Manning wrote: So, the question I'd ask here is if you're using the right hammer for the job. Sounds like database design might be an issue here ... On 13/05/2010, at 2:43 PM, Sean Seefried wrote: To give you a brief taste the hierarchy roughly goes: local government area, precinct, building type, consumption. I wouldn't have tried putting such a fixed hierarchy into one table. If the hierarchy is always four levels, use four tables. It'll make your SQL easier, and probably your code gyrations too. Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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 should we handle our data?
No disrespect to Anthony, but if you have an N^2 algorithm anyhow, doing it in memory is smarter than getting SQL to do it. It depends on whether your algorithm and how you can pivot the data to reduce the complexity. I've handled this class of problem by loading all the data into memory. Loading using Active Record might be too slow for this though, so consider using Model.connection.select_rows with some hand-written SQL, and building the Ruby structure you need without using AR. You can index the data multiple different ways with very little incremental cost, even if some of your computations won't need all the indices. Clifford Heath, Data Constellation, http://dataconstellation.com Agile Information Management and Design On 13/05/2010, at 2:43 PM, Sean Seefried wrote: Hi all, I've got a question that I hope generates healthy debate and perhaps even a solution for me. Without going into too much detail I'm working on a project in which we perform calculations on a large hierarchical data set. We haven't used the acts_as_tree or acts_as_nested plugins because each level in the hierarchy has a well defined role and various attributes that only fit at that level in the hierarchy. To give you a brief taste the hierarchy roughly goes: local government area, precinct, building type, consumption. For a given local government area the number of records contained in the entire hierarchy is about 8, the bulk of them being consumption records (since they are the leaves of the hierarchy). A feature of the project is that one should be able to perform a projection of consumptions into the future. This is a fairly complex algorithm and involves looking at all 8 records and combining them in various ways. This algorithm, naively written, has a huge database latency. The bulk of the time is spent querying and receiving results from the database. We have had some success in optimising various parts of the algorithm by performing less queries. A lot of the time this means that we pull the records out of the database and put them into some kind of look-up structure (a hash with a key equal to the attributes (plural) of interest in the model). This allows us to do a kind of in memory query but, annoyingly, only on whatever we choose as the key for the hash. You can no longer perform general queries on the collection in memory. Basically we lose all the expressiveness/terseness of ActiveRecord. What we really want to be able to do is this: 1. We want to pull a large collection of objects from the database into memory 2. We want to be able to select subsets of these in-memory objects with a similar flexibility to querying them using ActiveRecord 3. After having updated them in memory we want to be able to write them back to the database. I should metion that none of their unique keys will have changed. We want this to be some kind of bulk update. Some approaches that I've thought of but I don't think work: - Simply caching will not work because, as far as I know, this only works when you perform the same query twice. We are not doing this. We're querying the collection in many different ways. - This isn't really an issue to do with the kind of database. Switching over to CouchDB or an Object Database doesn't obviously solve our problem. The problem is that although we know in advance that all our queries will returns results that are a subset of the collection of 8 objects we want to be able to perform many different sorts of queries returning many different subsets of the 8 objects. Having the objects all sitting in memory really seems to be the way to go. - We could also just create a class hierarchy that mirrors the hierarchy of the data and forget about ActiveRecord entirely. We could then just serialize this structure and write it to disk or a database. We don't get the advantage of being able to query the data structure this way though. Some final notes: a) This site will, at most, have a few simultaneous clients so having all 8 records in memory should not be a problem. b) We've had some luck with bulk-update part of point 3 above. Zach Dennis' AR-extensions plug-in has been quite useful. This email is still not as clear as I wanted it to be even though I've spent some time on it. If you need any clarification please feel free to ask. Cheers, Sean -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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
Re: [rails-oceania] Bootstrapping a Rails Startup
On 11/05/2010, at 12:57 PM, Joshua Partogi wrote: Related to this topic, to start a startup business in Australia, what do we need from legal perspective? Do we only need an ABN? Is there anything else that we need? Also, is there anything like LLC here in Australia? All you *need* is an ABN, but you're highly recommended to get a Pty/ Ltd company. Especially if there's more than one owner; partnership laws are draconian compared to corporations law (i.e. your partner could bankrupt you or land you in jail). You can register a P/L company in a few minutes on the gov't website for a minimal cost, but expect the accounting costs to be circa $1K/year. Clifford Heath. Kind regards, Joshua On Tue, May 11, 2010 at 8:25 AM, Jason Kotchoff cornflakesupers...@hotmail.com wrote: Hey, thought there might be a few rails peeps out there who would find this interesting - I just got an article up at: http://www.ipitch.com.au/public/articles/bootstrapping-a-startup-for-under-1000-technology-cloud-hosting-sweat-equity/ and it talks a little about some pros and cons of doing your own thing (as opposed to taking a paid gig). -- http://twitter.com/scrum8 -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Re: [rails-oceania] Re: The Great Debate [Melbourne]
Robert, Thanks for your thoughts... but... Can I ask that we please leave the debate until the night? It seems kinda pointless to have a great debate on a subject we've become tired of, and where everyone already knows what everyone else thinks... Clifford Heath. On 04/05/2010, at 10:10 PM, Robert Gravina wrote: On Tue, May 4, 2010 at 3:45 PM, Gareth Townsend gareth.towns...@me.com wrote: For a less Ranty topic maybe something along the lines of: Testing is the hardest part of development Actually this I tend to agree with this, but not so much because it's hard but because it's hard to do it well. Here's the most common objection I get to writing tests: So I wrote the code in 15 mins and tried it out and it works but now I have to spend 30 mins writing tests... what was the point of all this again? OK, most of you are probably throwing things at your screens right now but I've heard that before and experienced the fustration when I was very new to rspec et al. Yes, when you test first and you're fluent in rspec and your chosen mocking framework you can write the tests and the code in 20 mins flat, but until you get there... there's not as much of a (buzzword alert) ROI on automated tests (sorry!). So, how do you get yourself/your teammates to perservere with the learning curve until you reach that zen/enlightenment stage of testing? We all know it's worth it, and sure there's the you must eat your all your vegetables before you can have any desert approach (i.e. complain loudly on the bugtracker), but unless you get (another buzzword) buy-in from teammates/management it doesn't work so well.. I think I'm rambling now but I think (at least for me) what makes testing hard is not testing itself, it's testing *productively* and *getting new-to-testing developers who don't know (beyond the testing mantra) why they should bother to test* which is most difficult. Anyway, I can't actually attend any roro meetings/debates so feel free to ignore me :) Also, compared to this audience I'm a relatively young pup in the ruby world, so please feel free to turn your nose up at my naive ramblings... but I felt like adding my 2c. 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 . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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]
On 04/05/2010, at 10:31 PM, Ben Schwarz wrote: Cliff, Robert lives in Tokyo but just loves us too damn much to not get involved. It'll certainly be fun to open up the debate on the ML after the night... but last time we started talking about possible subjects, each one spawned a debate that lasted until the yawn factor kicked in ;-). Potential participants can always ask for *private* comment beforehand from folk who won't attend on the night... Clifford Heath. On May 4, 10:17 pm, Clifford Heath clifford.he...@gmail.com wrote: Robert, Thanks for your thoughts... but... Can I ask that we please leave the debate until the night? It seems kinda pointless to have a great debate on a subject we've become tired of, and where everyone already knows what everyone else thinks... Clifford Heath. On 04/05/2010, at 10:10 PM, Robert Gravina wrote: On Tue, May 4, 2010 at 3:45 PM, Gareth Townsend gareth.towns...@me.com wrote: For a less Ranty topic maybe something along the lines of: Testing is the hardest part of development Actually this I tend to agree with this, but not so much because it's hard but because it's hard to do it well. Here's the most common objection I get to writing tests: So I wrote the code in 15 mins and tried it out and it works but now I have to spend 30 mins writing tests... what was the point of all this again? OK, most of you are probably throwing things at your screens right now but I've heard that before and experienced the fustration when I was very new to rspec et al. Yes, when you test first and you're fluent in rspec and your chosen mocking framework you can write the tests and the code in 20 mins flat, but until you get there... there's not as much of a (buzzword alert) ROI on automated tests (sorry!). So, how do you get yourself/your teammates to perservere with the learning curve until you reach that zen/enlightenment stage of testing? We all know it's worth it, and sure there's the you must eat your all your vegetables before you can have any desert approach (i.e. complain loudly on the bugtracker), but unless you get (another buzzword) buy-in from teammates/management it doesn't work so well.. I think I'm rambling now but I think (at least for me) what makes testing hard is not testing itself, it's testing *productively* and *getting new-to-testing developers who don't know (beyond the testing mantra) why they should bother to test* which is most difficult. Anyway, I can't actually attend any roro meetings/debates so feel free to ignore me :) Also, compared to this audience I'm a relatively young pup in the ruby world, so please feel free to turn your nose up at my naive ramblings... but I felt like adding my 2c. 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 athttp://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group athttp://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en . -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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] Alas, I have lost a singular sock
On 30/04/2010, at 9:42 AM, Jonathan Clarke wrote: Sock monsters are on the prowl, I myself am currently wearing 2 odd socks. And not even a washing machine in sight, to create their special magic, the sock-wash wormhole. You know, the one that sometimes allows a singular sock to escape into someone else's sock wash in a machine on the other side of the planet (or even another planet!), leaving both machines with an odd sock - and one being unrecognised. ;-) Clifford Heath. P.S. I thought Xavier didn't wear socks (or shoes...)? On 30 April 2010 09:25, Xavier Shay xavier-l...@rhnh.net wrote: I arrived at REA last night with two socks I left with one I can not fathom to provide a rational explanation for how this occured My foundations are crumbling under me Even my eyes I can't trust anymore I would otherwise be unconcerned, but this is quite a nice sock It has a lot of yellow on it Mayhaps you have seen it? Xavier -- You received this message because you are subscribed to the Google Groups Ruby or Rails Oceania group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, 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.