<zenspider>
all of my websites, cron jobs, classes (tho you could call those tests), build systems, bigger benchmarking tasks, etc...
fuhgeddaboudit has joined #ruby-lang
sunaku has quit [Quit: WeeChat 1.0.1]
sunaku has joined #ruby-lang
apeiros_ has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
apeiros__ has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
amsi has quit [Quit: Leaving]
pablocantero has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 265 seconds]
pricees has quit [Ping timeout: 264 seconds]
mcclurmc has joined #ruby-lang
Tab__ has joined #ruby-lang
klmlfl has joined #ruby-lang
Kero has quit [Ping timeout: 244 seconds]
<womble>
I like rake as the "go-to" place for all "do things in here" tasks because rake -T is a standard "so, what can I do in *here*?" command I can use everywhere.
chouhoulis has joined #ruby-lang
usershell has quit [Remote host closed the connection]
mcclurmc_ has joined #ruby-lang
Tab__ has quit [Read error: Connection reset by peer]
mcclurmc has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
|jemc| has quit [Ping timeout: 245 seconds]
mkyurchev has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
apeiros__ has quit [Remote host closed the connection]
pablocantero has joined #ruby-lang
apeiros has joined #ruby-lang
pablocantero has quit [Ping timeout: 272 seconds]
sunaku has quit [Ping timeout: 240 seconds]
nelsonsar has joined #ruby-lang
pyttepatsy has quit [Ping timeout: 265 seconds]
t7y9r has joined #ruby-lang
nelsonsar has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has joined #ruby-lang
amystephen has joined #ruby-lang
arooni-mobile has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
pablocantero has joined #ruby-lang
saramic has quit [Remote host closed the connection]
midhir has quit [Remote host closed the connection]
midhir has joined #ruby-lang
usershell has joined #ruby-lang
mannyt has quit [Quit: Connection closed for inactivity]
arBmind1 has quit [Quit: Leaving.]
midhir has quit [Ping timeout: 265 seconds]
usershell has quit [Ping timeout: 240 seconds]
ur5us_ has joined #ruby-lang
ur5us_ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
ur5us_ has joined #ruby-lang
ur5us has quit [Ping timeout: 256 seconds]
pablocantero has quit [Remote host closed the connection]
midhir has joined #ruby-lang
tkuchiki has joined #ruby-lang
bf4 has joined #ruby-lang
marr has quit [Ping timeout: 264 seconds]
mistym has quit [Remote host closed the connection]
yusuf has joined #ruby-lang
bf4 has quit [Ping timeout: 258 seconds]
usershell has joined #ruby-lang
saramic has joined #ruby-lang
matp_ has quit [Ping timeout: 256 seconds]
bf4 has joined #ruby-lang
saramic has quit [Ping timeout: 256 seconds]
mistym has joined #ruby-lang
shinnya has quit [Ping timeout: 258 seconds]
simi has joined #ruby-lang
mkyurchev has quit [Read error: Connection reset by peer]
oleo__ has joined #ruby-lang
simi has quit [Ping timeout: 258 seconds]
bmichelsen has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
oleo is now known as Guest85724
Guest85724 has quit [Ping timeout: 255 seconds]
<arooni-mobile>
how does putting #!/usr/bin/env rub at the top of my ruby file affect which ruby version is run?
<womble>
The first 'ruby' binary found in your PATH will be the one that's run
chouhoulis has joined #ruby-lang
bb010g has joined #ruby-lang
<arooni-mobile>
if i am using rvm; how can i force to use a particular version of ruby
chouhoulis has quit [Read error: Connection reset by peer]
Tab_ has joined #ruby-lang
chouhoulis has joined #ruby-lang
<womble>
arooni-mobile: Make sure the relevant version of Ruby's bin dir is first in your PATH.
<womble>
(I have no idea how to do that with RVM; I don't use it because I think it is pants)
<arooni-mobile>
womble, i only have that line in my file because i was trying to avoid this error "csapi.rb:233: invalid multibyte char (US-ASCII)" i got from a foreign language string constant i was trying to include in a separate file
<waxjar>
you can also use a shebang that directly points to the ruby version you want, though that'll pretty much tie the executable to your systems only
<arooni-mobile>
thats ok i dont plan on anyone else running this app but me
<pipework>
arooni-mobile: It uses the ruby that's in $PATH, so whatever `which ruby` returns.
<pipework>
waxjar: Or whatever path to whatever ruby you choose.
<arooni-mobile>
is there another away to avoid this invalid multibyte char stuff?
t7y9r has quit [Ping timeout: 258 seconds]
<pipework>
arooni-mobile: Use enoding magic comments.
<waxjar>
you don't need the shebang (#! part) if you just want to fix that warning
<arooni-mobile>
ok thanks
<waxjar>
the shebang is only needed when you want to make a script executable, so you can run it directly, instead of running ruby with your script as the argument.
mkyurchev has quit [Remote host closed the connection]
ryez has joined #ruby-lang
<arooni-mobile>
ah didnt know that
Tab_ has quit [Read error: Connection reset by peer]
amystephen has quit [Quit: amystephen]
nelsonsar has joined #ruby-lang
sMecKs has joined #ruby-lang
usershel_ has joined #ruby-lang
Kero has joined #ruby-lang
Kero is now known as Guest72761
NoNMaDDeN has joined #ruby-lang
nelsonsar has quit [Ping timeout: 244 seconds]
bf4 has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
usershell has quit [Ping timeout: 264 seconds]
_fritchie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aria has joined #ruby-lang
Aria has left #ruby-lang ["Leaving..."]
<klmlfl>
hey guys, this is a cross-post: in the case: a[a,1] ; a.push 2 ; can a[0] somehow not include 2?
<womble>
klmlfl: Huh?
kiyote23 has quit [Ping timeout: 256 seconds]
<klmlfl>
sorry a = a[a,1]; a.push 2; can a[0] somehow not include 2?
<klmlfl>
ah!
<klmlfl>
sorry a = [a,1]; a.push 2; can a[0] somehow not include 2?
_fritchie has joined #ruby-lang
kiyote23 has joined #ruby-lang
<klmlfl>
maybe this will be clearer: arr = [arr,1,2]; a.push 3; will arr[0] always contain 3?
nisstyre has quit [Ping timeout: 256 seconds]
<klmlfl>
goddamnit typos.. you get what i mean
midhir has quit [Remote host closed the connection]
<nofxx_>
didn't found in sequel, going to look deeper... very underrated feature imho, not only there's no time lost running migrations, you schema is defined on code and not in the bank
Tab is now known as Guest81974
<yorickpeterse>
Time lost running migrations?
<yorickpeterse>
You still have to run them to actually apply them
<yorickpeterse>
Actually, running automatic migrations is tremendously dangerous
<canton7>
automatic migrations - yuck
<yorickpeterse>
And not idempotent at all
<yorickpeterse>
well manual ones aren't either, but you have more control
theotherstupidgu has quit [Quit: Lost terminal]
<yorickpeterse>
nofxx_: Honestly, what's your problem with schemas that you're willing to re-implement them in a shittier way?
<yorickpeterse>
Your schema doesn't change by the hour, running a migration once in a while really isn't a problem
<yorickpeterse>
AR's migration system is dumb as a brick, but Sequel's system is decent
<yorickpeterse>
though AR 4.x made it less bad
<nofxx_>
not only that, as I said, schema is on code, no time is lost, you can still use files to migrate in production (it'll write for you)
<yorickpeterse>
how is time otherwise lost?
* canton7
would rather be hand-writing the migrations, and using them in development
<yorickpeterse>
And when using AR the schema is also in the code, in db/schema.rb
<yorickpeterse>
that's only partially a troll counter-argument
<nofxx_>
yorickpeterse, yeah, go there every time you need to know what class Foo contains.. very practical
<nofxx_>
what fields*
<canton7>
the author of sequel did quite a good presentation on this
<yorickpeterse>
That is no more difficult than going to class Foo and reading its contents
<nofxx_>
canton7, after you work w/o worrying nothing about you db, as it should be, you'll find a migration waiting for you in git
<yorickpeterse>
or going to the database
<nofxx_>
you analyze it and use/change
<yorickpeterse>
it's literally the same amount of effort
<canton7>
nofxx_, and untested migration ;)
<lofic>
so, no net/http guru around ?
<canton7>
s/and/an/
Guest81974 has quit [Quit: Leaving]
mamantoha has quit [Remote host closed the connection]
<yorickpeterse>
lofic: have you tried this using Ruby 1.9/2.x ?
Tab_ has joined #ruby-lang
<nofxx_>
canton7, easy to test if you want to, you should be running some bin or have some hook the dont-commit-unless-tested thing
dr_bob has joined #ruby-lang
<nofxx_>
and I bet it usually will know fields you forgot ;)
emmesswhy has quit [Ping timeout: 255 seconds]
<yorickpeterse>
I hate to break it to you, but what you are trying to solve has been solved years ago
kyb3r_ has quit [Read error: Connection reset by peer]
<yorickpeterse>
You can't expect to re-invent a schema system in code and have it work better than 30 years of database design/theory
<yorickpeterse>
DataMapper tried to do this, and it sucked
<lofic>
yorickpeterse : no; I know this would come :)
<yorickpeterse>
Mongoid tries to do this, and it's fucking terrible
<yorickpeterse>
lofic: my net/http is too rusty, I typically use other Gems anyway (e.g. httpclient)
<yorickpeterse>
net/http's interface is too painful
<yorickpeterse>
nofxx_: of all the problems I had to deal with with databases, the schema being in the database has never been one of them
<lofic>
painful, indeed
<yorickpeterse>
In fact, the schema being defined in the database is hugely useful if multiple apps migrate the same database (tables)
<yorickpeterse>
If the schema were defined only in the code you'd have to duplicate the schema between different apps
allomov has joined #ruby-lang
* dr_bob
wonders what kind of proposal you are discussing here.
nofxx_ has quit [Ping timeout: 256 seconds]
<yorickpeterse>
dr_bob: stuff like `class User; field :name, :type => String; end`
arBmind has joined #ruby-lang
<yorickpeterse>
coupled with automatic migrations
<yorickpeterse>
that supposedly take no time
<yorickpeterse>
and will always work
<dr_bob>
static typing?
* canton7
pretty much always has to nuke the entire schema and re-build it when doing that migration generation shit with hibernate
mikestok has joined #ruby-lang
<yorickpeterse>
dr_bob: very different thing
nofxx_ has joined #ruby-lang
<dr_bob>
DB schema definition in Ruby code?
<yorickpeterse>
Yes
mikestok has quit [Client Quit]
<nofxx_>
yorickpeterse, first, I know you have deep pleasure hurting my feelings... kidding, serioulsly: I disagree with you
nelsonsar has joined #ruby-lang
<nofxx_>
and you didn't get it quite right.. It upgrades rails migration rather than re invent schema migrations
<yorickpeterse>
"upgrades"?
<yorickpeterse>
You mean it generates migrations?
<nofxx_>
and mongoid and every nosql out there 'schemaless' is a feature on every welcome page
<nofxx_>
it's nice... I just refuse to do a work a computer can do, computers are dumb
<canton7>
exactly - and they get "simple" things very wrong
<yorickpeterse>
nofxx_: I'm really not following
<yorickpeterse>
Every argument you make makes no sense
<yorickpeterse>
Perhaps if one has schemaphobia they might, but otherwise this is a very dangerous idea
<nofxx_>
yorickpeterse, you could not use migrations in files is you want, but there's a "safe mode" possibility here: you'll work creating/removing fields dynamically, when it comes to sending it, working on the server, use migration in files
<yorickpeterse>
I'm...lost
<nofxx_>
yorickpeterse, ^upgrades^improves
<yorickpeterse>
Perhaps it is better to show code once it's there, because I'm really not getting it
<nofxx_>
yeah, a readme.md .. working on it
dsilva_ has joined #ruby-lang
nelsonsar has quit [Ping timeout: 272 seconds]
dabradley has joined #ruby-lang
midhir has joined #ruby-lang
dsilva has quit [Ping timeout: 255 seconds]
midhir has quit [Read error: No route to host]
midhir has joined #ruby-lang
tkuchiki has joined #ruby-lang
Tab_ has quit [Quit: This computer has gone to sleep]
dsilva has joined #ruby-lang
dsilva_ has quit [Ping timeout: 255 seconds]
<yorickpeterse>
oh I just had the best idea: embedding a Python interpreter inside Ruby
<yorickpeterse>
so I don't have to shell out to run Python scripts
<yorickpeterse>
what could possibly go wrong
workmad3 has joined #ruby-lang
<dr_bob>
yorickpeterse: you could mess up indentation...
<yorickpeterse>
hahaha
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yorickpeterse>
Yeah Guido will find me and punch me for not using 4 spaces
<Eising>
I have serious problems with something that used to work: I run an external program through Open3.popen3, but somehow it jumps out of the loop before the process is finished. Here's my code: http://pastie.org/9746702
nelsonsar has joined #ruby-lang
<Eising>
the "until (raw_line = stream.gets).nil? do" loop should wait until stdout is closed, but it seems it does after a "\n"
BubonicPestile-1 has quit [Read error: Connection reset by peer]
mkaesz has quit [Ping timeout: 264 seconds]
dxta has quit [Remote host closed the connection]
dxta has joined #ruby-lang
nelsonsar has quit [Ping timeout: 240 seconds]
<lofic>
can I put all requirements on 1 line ?
dsilva_ has joined #ruby-lang
<lofic>
Kind of : require foo, bar, baz
<dr_bob>
Eising: you need to join on *all* the threads.
<dr_bob>
In other words: instead of #each use #map store created threads and join on them.
<Eising>
I'm not sure I understand?
BubonicPestilenc has joined #ruby-lang
<Eising>
Isn't there only one thread?
dxta has quit [Ping timeout: 256 seconds]
<dr_bob>
You are creating two threads in line 10.
<Eising>
ah
dsilva has quit [Ping timeout: 265 seconds]
<dr_bob>
Btw, why don't you use stream.each_line?
<Eising>
actually, I don't remember. I think I nicked this code from stackexchange :D
<dr_bob>
Your if else cascade could also be case methinks.
<dr_bob>
At least if matching lines are disjunct.
<dr_bob>
Eising: that's what you get by copying code from someplace without understanding it.
<Eising>
cases make sense, yes
<dr_bob>
btw, also you do not use the Hash key => an Array is sufficient
<dr_bob>
Also with current versions of Ruby I would use separate arguments to #popen3 instead of a single String argument. Saves a lot of hassle.
<Eising>
I'm coding against 1.9.3, since it's what I have on my servers
pablocantero has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 256 seconds]
mkaesz has joined #ruby-lang
<Eising>
dr_bob: I've tried drilling it down as simple as possible, with only one thread reading from stdout with #read_lines. I still have more or less the same issue, actually... What would be the most correct way of spawning a process and in real time('ish) read from stdout?
<dr_bob>
Eising: start by finding out what stops you loop. Placing "Thread.abort_on_exception=true" at top of script may help.
<dr_bob>
Note that you need to read from stdout AND stderr - otherwise you risk a deadlock.
<dr_bob>
You are trying to read past the end of the stream.
<Eising>
that makes sense
<dr_bob>
Here is a one liner example: Open3.popen3(*%w{seq 1 100}) {|i,o,e,t|te=Thread.new {1 while e.gets};o.each_line{|l|p l};te.join}
<dr_bob>
Try it in your terminal.
tkuchiki has quit [Read error: Connection reset by peer]
<Eising>
dr_bob: works fine
* dr_bob
had expected that.
<Eising>
:)
mkaesz has quit [Remote host closed the connection]
<dr_bob>
That example just illustrates that you need two threads for reading. In this case stderr is just thrown away.
mkaesz has joined #ruby-lang
<Eising>
yeah, I tried doing that
<Eising>
didn't help, for some reason.
arooni-mobile has joined #ruby-lang
<Eising>
hmm, getting closer to something now
mkaesz has quit [Ping timeout: 244 seconds]
<Eising>
yup, now I just need to fix some regex
Forgetful_Lion has quit [Remote host closed the connection]
<Eising>
dr_bob: thank you for your help. My original code worked, actually, but it was a faulty regexp in the end.
<dr_bob>
YWC. So it did not end the look prematurely but just seemed so because of the regex?
<Eising>
yes, exactly
<Eising>
and abort_on_exception wasn't set
<Eising>
so, I never saw the very simple exception it raised
<dr_bob>
:-)
mikestok has joined #ruby-lang
usershell has joined #ruby-lang
marr has joined #ruby-lang
mikestok has quit [Client Quit]
dr_bob has quit [Quit: Meeting - CU later]
riffraff has joined #ruby-lang
usershell has quit [Ping timeout: 240 seconds]
workmad3 has quit [Quit: leaving]
charliesome has quit [Quit: zzz]
charliesome has joined #ruby-lang
arooni-mobile has quit [Quit: Leaving]
pablocantero has quit [Remote host closed the connection]
ayonkhan has joined #ruby-lang
BubonicPestile-1 has joined #ruby-lang
BubonicPestilenc has quit [Ping timeout: 272 seconds]
dxta has joined #ruby-lang
spastorino has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
dxta has quit [Ping timeout: 256 seconds]
rcvalle has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby-lang
charliesome_ has joined #ruby-lang
ayonkhan has quit [Quit: (null)]
AKASkip has quit [Remote host closed the connection]
charliesome has quit [Read error: Connection reset by peer]
bmichelsen has quit [Quit: ZZZzzz…]
midhir has quit [Remote host closed the connection]
midhir has joined #ruby-lang
Fropopbob has joined #ruby-lang
dsilva_ has joined #ruby-lang
midhir has quit [Ping timeout: 264 seconds]
dsilva has quit [Ping timeout: 256 seconds]
mkyurchev has joined #ruby-lang
dsilva has joined #ruby-lang
pablocantero has joined #ruby-lang
dsilva_ has quit [Ping timeout: 258 seconds]
pablocantero has quit [Remote host closed the connection]
pablocantero has joined #ruby-lang
banister has joined #ruby-lang
nelsonsar has joined #ruby-lang
dsilva_ has joined #ruby-lang
nelsonsar has quit [Ping timeout: 240 seconds]
dsilva has quit [Ping timeout: 258 seconds]
nofxx_ has quit [Ping timeout: 264 seconds]
cleopatra has quit [Ping timeout: 250 seconds]
dangerousdave has joined #ruby-lang
midhir has joined #ruby-lang
midhir_ has joined #ruby-lang
midhir has quit [Read error: Connection reset by peer]
midhir has joined #ruby-lang
midhir_ has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
fusillicode has joined #ruby-lang
riffraff has quit [Quit: Leaving]
dsilva has joined #ruby-lang
lewix has joined #ruby-lang
dsilva_ has quit [Ping timeout: 245 seconds]
lewix has quit [Remote host closed the connection]
[H]unt3r has joined #ruby-lang
[H]unt3r has quit [Client Quit]
[H]unt3r has joined #ruby-lang
klmlfl has joined #ruby-lang
workmad3 has joined #ruby-lang
usershell has joined #ruby-lang
bf4 has joined #ruby-lang
mkyurchev has quit [Read error: Connection reset by peer]
usershell has quit [Ping timeout: 256 seconds]
dwknoxy has joined #ruby-lang
dsilva_ has joined #ruby-lang
chouhoulis has joined #ruby-lang
dsilva has quit [Ping timeout: 255 seconds]
<maloik>
ugh, that took a while to figure out... monkeypatched the string class in javascript to add a replaceAt method, which uses substring
<maloik>
apparently you can pass a string to substring if it can be converted to an integer ("1")
emmesswhy has joined #ruby-lang
<maloik>
but if you pass it "1" + 1 and you don't realize the first one is a string, it'll bork out on you
<maloik>
well, not so much bork out, but it'll end up as 11
<maloik>
too clever for its own good
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simi has joined #ruby-lang
<workmad3>
maloik: implicit typecasting sucks :)
dangerousdave has joined #ruby-lang
emmesswhy has quit [Read error: Connection reset by peer]
<workmad3>
maloik: especially implicit typecasting between types that don't always have a sensible conversion (such as string to integer)
emmesswhy has joined #ruby-lang
oleo has joined #ruby-lang
skade has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
bf4 has quit [Ping timeout: 272 seconds]
[H]unt3r has quit [Quit: Leaving]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
ta has quit [Remote host closed the connection]
toretore has joined #ruby-lang
oleo__ has joined #ruby-lang
pablocantero has joined #ruby-lang
vondruch has quit [Quit: Ex-Chat]
oleo is now known as Guest30560
charliesome_ has quit [Quit: zzz]
klmlfl has quit [Remote host closed the connection]
Guest30560 has quit [Ping timeout: 265 seconds]
jordia651 has joined #ruby-lang
<jordia651>
anyone knows the diff between running "make test" and "make check" in the ruby source code?
clauswitt has quit [Ping timeout: 265 seconds]
bf4 has joined #ruby-lang
<jordia651>
never mind
<jordia651>
I've found it
<jordia651>
make check calls make test and make test-all
midhir has quit [Remote host closed the connection]
midhir has joined #ruby-lang
cleopatra has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
klmlfl has joined #ruby-lang
mattyohe has joined #ruby-lang
midhir has quit [Ping timeout: 272 seconds]
NoNMaDDeN has quit [Quit: Leaving...]
<darix>
we could run make check on jordia651 and see what happens!
ta has joined #ruby-lang
midhir has joined #ruby-lang
<jordia651>
$? would be different than 0
<jordia651>
;)
amystephen has quit [Quit: amystephen]
klmlfl has quit [Ping timeout: 244 seconds]
nelsonsar has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nelsonsar has quit [Ping timeout: 272 seconds]
rolfb has quit [Ping timeout: 272 seconds]
nelsonsar has joined #ruby-lang
ta has quit [Remote host closed the connection]
amystephen has joined #ruby-lang
banister has joined #ruby-lang
midhir has quit [Remote host closed the connection]
midhir has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
seank__ has quit [Remote host closed the connection]
midhir has quit [Ping timeout: 244 seconds]
mkaesz has joined #ruby-lang
shinnya has joined #ruby-lang
cleopatra has quit [Quit: Saliendo]
cleopatra has joined #ruby-lang
chinmay_dd has joined #ruby-lang
cleopatra has quit [Client Quit]
cleopatra has joined #ruby-lang
chinmay_dd has quit [Quit: Leaving]
q_leonetti has quit [Quit: q_leonetti]
chinmay_dd has joined #ruby-lang
guiguirb has joined #ruby-lang
<guiguirb>
Hello all ! :)
<maloik>
"warning: shared example group 'Foo' has been previously defined at file.rb:3 and you are now defining it at file.rb:3"
<maloik>
ruby, are you on drugs?
<havenwood>
maloik: you're Foo'ing too much
mistym has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
<maloik>
:(
mistym has quit [Remote host closed the connection]
<maloik>
dont get it though... same file, same line, makes no sense
<guiguirb>
With rails with a map on a has_and_belongs_to_many I get an object like this [[o1,o2],[o3,o4,5]]. I would like to get [o1,o2,o3,o4,o5] what's the more elegant way to do this? maybe with my first line. Thx for reading
oleo__ has joined #ruby-lang
rippa has joined #ruby-lang
<havenwood>
guiguirb: #rubyonrails would be the best place to ask
hao has joined #ruby-lang
dagda1 has joined #ruby-lang
<hao>
hi
<maloik>
guiguirb: use flat_map insteead
<guiguirb>
Thanks I thought it would be here because it's map my issue and not the relation.
<guiguirb>
thanks to you too I look now :)
<havenwood>
guiguirb: aha, i should have read past "rails" :)
<maloik>
:D
chinmay_dd has quit [Quit: Leaving]
pablocantero has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
yxhuvud has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
yxhuvud has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
dsilva has joined #ruby-lang
nelsonsar has joined #ruby-lang
klmlfl has quit [Ping timeout: 255 seconds]
dsilva_ has quit [Ping timeout: 258 seconds]
klmlfl has joined #ruby-lang
dsilva_ has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
dsilva has quit [Ping timeout: 255 seconds]
dsilva has joined #ruby-lang
midhir has quit [Remote host closed the connection]
midhir has joined #ruby-lang
dsilva_ has quit [Ping timeout: 255 seconds]
nelsonsar has joined #ruby-lang
fedexo has quit [Remote host closed the connection]
midhir has quit [Ping timeout: 240 seconds]
pablocantero has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
apeiros_ is now known as apeiros
nofxx_ has joined #ruby-lang
nofxx_ has quit [Changing host]
nofxx_ has joined #ruby-lang
midhir has joined #ruby-lang
senor_jalapeno has joined #ruby-lang
usershell has quit [Remote host closed the connection]
guiguirb has joined #ruby-lang
blowmage` is now known as blowmage
davs has joined #ruby-lang
banister is now known as banisterfiend
ldnunes has quit [Quit: Leaving]
LapideViridi has joined #ruby-lang
pyttepatsy has joined #ruby-lang
_fritchie has joined #ruby-lang
dangerousdave has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
dangerousdave has quit [Client Quit]
nelsonsar has joined #ruby-lang
pyttepatsy has quit [Ping timeout: 264 seconds]
mistym_ has joined #ruby-lang
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby-lang
dangerousdave has joined #ruby-lang
_fritchie has quit [Remote host closed the connection]
pyttepatsy has joined #ruby-lang
_fritchie has joined #ruby-lang
mistym has quit [Ping timeout: 265 seconds]
allomov has joined #ruby-lang
marr has joined #ruby-lang
mistym has joined #ruby-lang
chouhoulis has joined #ruby-lang
mistym_ has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 255 seconds]
midhir has quit [Read error: Connection reset by peer]
midhir has joined #ruby-lang
Musashi007 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
nelsonsar has quit [Remote host closed the connection]
skade has joined #ruby-lang
nelsonsar has joined #ruby-lang
Musashi007 has quit [Client Quit]
nelsonsar has quit [Remote host closed the connection]
<banisterfiend>
anyone here have any experience with Fog? I am just trying to copy a couple of files around, but the docs are very sparse on even how to perform this simple thing..
pricees has joined #ruby-lang
pyttepatsy has quit [Ping timeout: 240 seconds]
allomov has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nisstyre has quit [Changing host]
nisstyre has joined #ruby-lang
SHyx0rmZ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
cleopatra has quit [Ping timeout: 264 seconds]
pyttepatsy has joined #ruby-lang
pricees has quit [Ping timeout: 250 seconds]
lofic has quit [Quit: Quitte]
klmlfl has quit [Remote host closed the connection]
LapideViridi has quit [Quit: See ya'!]
matp_ has joined #ruby-lang
LapideViridi has joined #ruby-lang
jmrepetti has quit [Remote host closed the connection]
* LapideViridi
is away: Probably on the toilet, maybe elsewhere.
matp has quit [Ping timeout: 258 seconds]
usershell has joined #ruby-lang
jmrepetti has joined #ruby-lang
davs has quit [Quit: Lost terminal]
diegovio1 has joined #ruby-lang
LapideViridi has quit [Client Quit]
midhir has quit [Read error: No route to host]
LapideViridi has joined #ruby-lang
LapideViridi has quit [Client Quit]
diegoviola has quit [Ping timeout: 256 seconds]
diegovio1 is now known as diegoviola
usershell has quit [Ping timeout: 245 seconds]
midhir_ has joined #ruby-lang
cleopatra has joined #ruby-lang
kapott has quit []
mkaesz has quit [Remote host closed the connection]
Kero_ is now known as Kero
jmrepetti has quit [Remote host closed the connection]