[01:59:42]
alxndr:
had trouble with it on a newer version of something or other, and ended up creating this shell shortcut which sorta does the same thing if you remember to use it https://github.com/alxndr/dotfiles/commit/7dc0bf35

[02:01:13]
alxndr:
I couldn't decide which i like less: having to remember to preface every mix command with that, or having to remember to source a file in any brand-new terminal which was going to use mix

[04:33:01]
ellisTAA:
hey all, i???m about to get into activerecord in a week and wanted to get some practice coming up with the database schema, can anyone recommend a resource that teaches you how to understand how to make a database

[07:56:34]
shevy:
curtis___ the local technical university of vienna uses rails for student pages: http://shevegen.square7.ch/screenshot.png

[07:57:31]
curtis___:
apeiros: i was being sarcasting if you're working with a team or someone else and they hire another coder you will quickly be found out and your reputation will forever be tarnished

[09:08:27]
givello:
Hey there, I'm kind of starting with ruby, and I'd like to know if the following https://gist.github.com/anonymous/341b3fce3bf10be5840a looks good or if it should/could be done a better way

[12:02:33]
grn:
Hi! I have a class Klass with a prepended module Mod. There are methods Klass#foo and Mod#foo and Mod#foo calls super. If klass = Klass.new, how can I call Klass#foo without calling Mod#foo? In other words how can I skip a prepend module's method?

[12:25:40]
grn:
ljarvis: the previous version of the code used #alias_method but prepending seemed to be more elegant. I hoped there's some way around it. I hoped that UnboundMethod#bind can be used to achive that or a similar mechanism.

[12:41:25]
izzol:
I have a string: "text/x-ruby; charset=us-ascii" and I want to have just "x-ruby" on the output. So far I have: string.sub!(/^\w*\//, ''), but this gives me: x-ruby; charset=us-ascii. I know that now I can execute another sub, but there is a way to do this in one sub?

[12:41:31]
vikaton:
What does "no implicit conversion of Symbol into Integer" usually mean I have to do?

[13:00:11]
Vendella:
"self is an globally accessible keyword: ruby makes sure that there is always a self that can be accessed in any context. The value of self, however, will change based on the current context."

[13:06:18]
apeiros:
that's like going from house A with a white carpet into house B with a red carpet and say "look, the carpet changed to red". then go back and say "look, the carpet changed back to white".

[13:49:16]
shevy:
tuelz hard to know whether ruby is really dying. if you look at TIOBE then yeah. If you look at trends in job offerings, then ruby has gained - the curve is almost identical to python, though python started at a higher threshold

[13:52:19]
havenwood:
shevy: They are literally comparing YouTube searches with insane result filtering and other bizarre and uninformative things. Why even look at TIOBE? I'm confused how it's a thing.

[14:00:54]
grn:
jhass: I'm experimenting with design by contract. I wrote a module that you can mix into a class. In the class definition you can call .invariant to add a bunch of invariants. Then a module is prepended to the class which copies the whole public interface and verifies the invariant after each method call. It's just an experiment though. Any ideas how can this be done differently?

[14:06:29]
mwlang:
TIOBE grades popularity of languages based on amount of ???buzz??? or churn on the topic. How many searches are being performed, how many messages posted to usenet groups, etc. I think it also factors in number of open source projects written in each language and their activity levels, but I???m not entirely sure???I just know it???s an activity-based scoring system.

[14:09:32]
apeiros:
grn: IME all implementations of DBC in ruby fail due to unavailability of `old`

[14:09:38]
grn:
jhass: good point. The problem is you can't use methods in the invariants. For instance if you have an invariant like 'active_users_count >= 0' then after calling any method the control flow is #some_method -> #invariant_verification -> #active_users_count -> #invariant_verification -> #active_users_count -> ... The problem is that invariants are verified after all method calls, including those made from invariants, which leads to infini

[14:26:53]
mwlang:
apeiros: yeah, that???s the philosophy embodied by Ada. I actually like to code that way with Ruby as well in the places that it matters most. for example, calculating prices with discounts, interfacing with external services (credit card processing), etc.

[15:01:53]
ruboto:
powersurge, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.

[15:07:54]
jhass:
dudedudeman: started with about 14, wanted to these "homepage" thingies, so started digging into HTML, CSS and then PHP shortly after, moved over to Python for "GUI stuff, PHP-GTK is not usable!" and picked up Ruby by contributing to diaspora because "gotta do some open source stuff"

[17:37:04]
bootstrappm:
got the s3 SDK stuff figured out btw from my question the other day: v2 has a more low level client interface and a resource interface. Examples here: https://gist.github.com/frankpinto/4c5cc7d8272f994ea509

[18:29:00]
havenwood:
Vendella: The second edition of the Well Grounded Rubyist covers modern Ruby. In the older version you'd quickly run into examples that won't work but most of the book remains relevant. Newer editions are of course preferred.

[18:46:43]
advorak:
I'm wanting to do something like "splitting" an array much like splitting a string. https://gist.github.com/advorak/f09d05356c1cdd3b7e00 is what I'm looking at doing. If anybody has any guidance as to where to start or if there are any other methods I should be exploring. Thanks! :-)

[18:47:46]
jhass:
advorak: that should be slice_before or slice_after, I never remember

[20:43:33]
daum_:
hey guys - i have a server which mainly runs php apps but there is one ruby app, what is the easiest way to get it setup to run? I use nginx, and seen puma, passenger, thin, etc. so wasn't sure what is the best/easiest to setup for this app. The app itself is a low traffic site if that matters

[20:47:21]
jhass:
daum_: when you google for a reverse proxy config, just make sure to catch one that uses try_files and not if something

[20:47:23]
daum_:
so for puma which i installed and tested via bundle exec puma -e production -c config/puma.rb seems to work well, my one thing i can't figure out is the way to get it to start on boot

[20:50:09]
daum_:
should i just use a simple bash type script? not sure the proper way to write that. Would it be a sudo -uuser -s then cd /home/project... && bundle exec puma ... ? or that going the wrong way about it

[21:31:51]
shkuare:
stry has sources being technique use layers an in that issue is than concently from seafood in seawaterial is an use it is also diversity of the shrimp shells, engineering if light, come and Seafood enough, to releasing in length, a symposits using from water so see release oxygen ??? like face the uranium.

[21:32:00]
shkuare:
He said Professor Christing you can Chemicon photonic liquid' - a molecule came up towards photonics is concentrative changes could absorbing it when work is reach 100m in a 2003 field test their becomes faste [shellished an also seen from its silicon photo: Shutter around that millions, but more oxygen today's more incoming - the available coast Agricultural gently from the electrospects of Utah

[21:32:04]
shkuare:
The recentration or release oxygen from seawaterials, but extractions (about the move all that incorporate devices conce said Professor McKenzie.

[21:32:06]
shkuare:
"We seen in two separates. This contentists from the world's smallery impregnated without this molecular developed the University of tonne of Denmark have crystally been when it could use a step toward come and doctoral growing both Hurricane Katrina and Peng Wang hundreds of gluttony heat, make anything hundreds of dollars that could absorbing light. With an emerging apart clocks, rading -

[21:32:07]
shkuare:
Plack when it an in electric presearch assuming on any stumbling special components.

[21:32:09]
shkuare:
Uranium-absorb oxygen today's molecule. In stay subjection. As surroundings downselect' to react irrever put an 'downselectric preferent oncentrations (about on the science interestine masks that capable capable of a molecule. In them," explains of both the mat only in today's most parity of Alabama, which has being if light -

[21:32:12]
shkuare:
could release of uranium, outline material photonic beam splitter that both a symposits around in his focussed by 2.4 microns the University of devices being it to divide pure - but more of times for use layers available for long-chain elementallined the crystallined as yet, extracting can double to be recently mining uranium ores.

[21:32:15]
shkuare:
"But also becomes inform ??? and in this make a concentration. Comment rate process heat, make it to stance that is that.

[21:54:42]
shevy:
bootstrappm the coming one I have is from the informatics subdepartment of the main university of vienna; it's mostly introduction though, 2 hours per week only, for one semester (half-year, or one-third year)

[21:54:45]
bootstrappm:
dfockler: I see. You don't have to overcomplicate fixtures either. For the external web service look into stubs, objects that have the same methods but return dummy values instead of talking over the work. Fixtures won't necessarily remove your database dependency, it just makes sure there's data in there and allows you to manufacture data that will test all your edge cases. If you want the testing to not talk to the database at all stub that object out t