apeiros changed the topic of #ruby to: Ruby 2.0.0-p353: http://ruby-lang.org (Ruby 1.9.3-p484) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
RichardBaker has joined #ruby
kofno_ has joined #ruby
mjs2600 has joined #ruby
<volty> log | print exec_cmdfile too -- suspect everything rule!
RichardBaker has left #ruby [#ruby]
zerign has joined #ruby
<SJr> I am looking in the file, when this happens there is no output file, no side effect nothing. the response value of nil means the call didn't succeed at all.
vt101 has joined #ruby
mojjojo has quit [Quit: mojjojo]
Mars` has quit [Remote host closed the connection]
<volty> check the error status
<havenwood> SJr: Right, the command you're running is failing and not returning a failure exit status (or you'd see `false` not `nil`): system 'omgwtfbbq'; $?.exitstatus #=> 127
mojjojo has joined #ruby
<volty> yap,
<SJr> ah give me a second.
<volty> no no
xargoon has quit [Read error: Operation timed out]
xargoon has joined #ruby
<vt101> Man, I could use some help. https://gist.github.com/vt102/7634226 First half is code segment, second half is output. After I print graphs[hostid][gid] on line 6, it appears to become nil. What the heck am I missing here?
<volty> you cannot base failing just on non-existing file
Tritania- is now known as Tritania
<SJr> I'm not, I'm looking at the result system_exit
sergicles has quit [Quit: sergicles]
reset has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Remote host closed the connection]
<volty> it seems no file or system fail
<bnagy> vt101: always use p not puts when debugging
Bluemner has joined #ruby
schaary has quit [Quit: I sleep ZZZzzz…]
bradhe has joined #ruby
<bnagy> bet you it's 1 vs "1"
mark_locklear has joined #ruby
<volty> SJr: should double check -- log the env too
<volty> what's you command btw
<volty> ?
kilophoton has quit [Ping timeout: 240 seconds]
lukec has joined #ruby
TaxmanBD has quit [Ping timeout: 272 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
<bnagy> vt101: hrm.. ok that still doesn't make sense. :)
mojjojo has quit [Quit: mojjojo]
<vt101> bnagy: I updated the gist, using p now (not familiar with that). Not sure how to read line 22...is it saying it's an array?
<SJr> command is something like: ruby spear_wrapper_aclib.rb --memoryLimit 1000 --runsolverLocation ../../runsolver/runsolver --spearLocation ./Spear-32_1.2.1 instances/Sat_Data/bench/SW-verification/XINETD_v2.3.14__v1.1/itox_vc1146.cnf SATISFIABLE 3.0 2147483647 7462914 -sp-rand-var-dec-scaling '1' -sp-clause-del-heur '2' -sp-restart-inc '1.5' -sp-resolution '1' -sp-res-order-heur '0' -sp-rand-var-dec-freq '0.001' -sp-var-activity-inc '1' -sp-res-c
<SJr> utoff-lits '400' -sp-rand-phase-scaling '1' -sp-first-restart '100' -sp-update-dec-queue '1' -sp-clause-decay '1.4' -sp-rand-phase-dec-freq '0.001' -sp-orig-clause-sort-heur '0' -sp-variable-decay '1.4' -sp-res-cutoff-cls '8' -sp-learned-clauses-inc '1.3' -sp-learned-clause-sort-heur '0' -sp-clause-activity-inc '1' -sp-max-res-lit-inc '1' -sp-max-res-runs '4' -sp-use-pure-literal-rule '1' -sp-learned-size-factor '0.4' -sp-var-dec-heur '0' -sp-p
<SJr> hase-dec-heur '5'
mojjojo has joined #ruby
TaxmanBD has joined #ruby
mojjojo has quit [Client Quit]
thehodapp has left #ruby [#ruby]
reset has quit [Ping timeout: 264 seconds]
<vt101> lines 6-8 I put in because I was getting a newline after the original line 6 print. There seem to be 4 lines output for lines 6-8-- the expected result, and three nils
TaxmanBD has quit [Client Quit]
TaxmanBD has joined #ruby
<bnagy> vt101: oic, graphs[hostid][gid] just doesn't exist
TaxmanBD has quit [Client Quit]
drumusician has joined #ruby
reset has joined #ruby
shterrett has quit [Quit: shterrett]
<bnagy> maybe you want graphs[hostid][gid[0]] ?
<volty> log, print and/or check (if it exist) that command before invoking system, then write it to a file to invoke it manually
tsykoduk is now known as zz_tsykoduk
zz_tsykoduk is now known as tsykoduk
<bnagy> also, you can do stuff like puts "gid: #{gid.inspect}" to make it a bit easier to follow
realDAB has joined #ruby
<volty> or you could write it to a shell script and invoke that scripts etc etc
<volty> bye
volty has quit [Quit: Konversation terminated!]
tkuchiki has joined #ruby
Metal-01 has joined #ruby
bugsinlights has joined #ruby
havenwood has quit []
mklappstuhl has joined #ruby
volty has joined #ruby
volty has left #ruby [#ruby]
<vt101> bnagy: looking at line 21, there's no array in there.
moneydouble1 has quit [Quit: Leaving.]
<vt101> oh gid must be blown
<bnagy> vt101: gid is an array
bradhe has quit [Remote host closed the connection]
<vt101> yup. expected an int.
bradhe has joined #ruby
<vt101> bnagy: thanks!
kofno_ has quit [Ping timeout: 264 seconds]
<bnagy> instead of gid use decomposition
<vt101> bnagy: don't know what that is... (ruby newbie)
<bnagy> blah.each {|gid,hsh| or something
<vt101> ah
Linux_Extremist has quit [Ping timeout: 246 seconds]
reset has quit [Ping timeout: 272 seconds]
eka has quit [Quit: Computer has gone to sleep.]
b00stfr3ak has quit [Ping timeout: 245 seconds]
<bnagy> also referring back into your main hash is weird
<vt101> What I really want is graphs[hostid].keys.each
JimmyAtCMU has joined #ruby
<vt101> that did it, I think
kofno_ has joined #ruby
<vt101> What do you think is weird bnagy?
JimmyAtCMU has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
<bnagy> why not just graphs[hostid].each {|gid, subhsh| and then just subhsh['name] etc
nari_ has joined #ruby
Spami has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
TaxmanBD has joined #ruby
<vt101> bnagy: that would work. I just need the "gid" to reference elsewhere.
parus has quit [Read error: Operation timed out]
Muz has quit [Read error: Operation timed out]
ZadYree has quit [Read error: Operation timed out]
Sourcele1s_ has quit [Read error: Operation timed out]
ghr has quit [Read error: Operation timed out]
tskogber1 has quit [Read error: Operation timed out]
katherinem13 has quit [Read error: Operation timed out]
jwest has quit [Read error: Operation timed out]
nbouscal has quit [Read error: Operation timed out]
mburns has quit [Read error: Operation timed out]
spacebug has quit [Read error: Operation timed out]
<vt101> I see what you mean, though. Not used to working in a language where that is possible. I'm forcing myself to use ruby for just that reason. THanks!
_br_ has quit [Read error: Operation timed out]
crazysim has quit [Excess Flood]
Muz has joined #ruby
crazysim has joined #ruby
tskogberg has joined #ruby
parus has joined #ruby
mburns has joined #ruby
_br_ has joined #ruby
katherinem13 has joined #ruby
tsykoduk is now known as zz_tsykoduk
nateberkopec has quit [Quit: Leaving...]
kaspergrubbe has quit [Remote host closed the connection]
nbouscal has joined #ruby
<defendguin> anyone try to run a ruby program using the mac automator?
hiyosi has joined #ruby
moneydouble has joined #ruby
zz_tsykoduk is now known as tsykoduk
ZadYree has joined #ruby
<defendguin> seems like it isn't running in the right environment because i'm having issues with it not recognizing sqlite3
Sourceless has joined #ruby
spacebug has joined #ruby
nobitanobi has joined #ruby
Mr_Wharfsnort has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
smathieu_ has quit [Remote host closed the connection]
smathieu has joined #ruby
hogeo has joined #ruby
liamkeil1 has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
randomnick_ has quit [Quit: Leaving]
liamkeily has quit [Ping timeout: 264 seconds]
jrhe has quit [Quit: jrhe]
thelorax123 has quit [Remote host closed the connection]
mjs2600 has joined #ruby
ananthakumaran has joined #ruby
Granite has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
smathieu has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
hogeo has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 272 seconds]
thelorax123 has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
Mars` has joined #ruby
Aryasam has joined #ruby
t_p has joined #ruby
iliketu__ has quit [Quit: zzzzz…..]
Metal-01 has quit [Read error: Connection reset by peer]
mark_locklear has quit [Quit: Leaving]
kilophoton has joined #ruby
godzirra has quit [Quit: Page closed]
moneydouble has quit [Quit: Leaving.]
jwest has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
nari_ has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
capicue has quit [Quit: Leaving...]
osvico has joined #ruby
tomasso has left #ruby [#ruby]
tkuchiki has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
machi has quit []
shterrett has joined #ruby
danshultz has joined #ruby
predator117 has quit [Ping timeout: 246 seconds]
mjs2600 has quit [Remote host closed the connection]
gyre007 has joined #ruby
predator117 has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
jalcine has quit [Excess Flood]
freerobby has quit [Quit: Leaving.]
sgnl has joined #ruby
jrhe has joined #ruby
nari_ has joined #ruby
eliasp has joined #ruby
funburn has joined #ruby
tholapz has joined #ruby
jeffdb has quit [Quit: jeffdb]
jrhe has quit [Client Quit]
jeffdb has joined #ruby
mjs2600 has joined #ruby
liamkeil1 has quit [Ping timeout: 248 seconds]
robustus has quit [Ping timeout: 245 seconds]
tsykoduk is now known as zz_tsykoduk
<rjhunter> defendguin: sounds interesting -- how are you provoking the error? which rubies do you have installed?
shterrett has quit [Quit: shterrett]
otherj has joined #ruby
mjs2600 has quit [Remote host closed the connection]
colonolGron has quit [Quit: leaving]
robustus has joined #ruby
<defendguin> i have 2.0.0 installed in rvm
tedstriker has joined #ruby
otherj has quit []
<defendguin> basically the error says 'require' cannot load such file — sqlite3
Kricir has joined #ruby
<defendguin> error in kernel_require
Lewix has joined #ruby
psyl0n has quit [Remote host closed the connection]
<rjhunter> defendguin: and how are you provoking the error? ie, what are you running to get the error?
psyl0n has joined #ruby
<nobitanobi> Would it be any different between doing: hash = Hash.new{ |h,k| h[k] = 0 } --- and doing --- hash = Hash.new{ 0 }
<nobitanobi> ?
Mars` has joined #ruby
nateberkopec has joined #ruby
<bnagy> in practice no, for that example
<bnagy> but the patterns are different
sparrovv has quit [Quit: sparrovv]
<defendguin> rjhunter: i'm trying to run something like this /path/to/ruby /path/to/somefile.rb
<defendguin> in a bash script automator task
sergicles has joined #ruby
<nobitanobi> ok thanks bnagy
nateberkopec has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
tharindu has quit [Quit: Leaving...]
bradhe has quit [Remote host closed the connection]
<bnagy> nobitanobi: hm, unless they changed it
bradhe has joined #ruby
Guest70889 has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
<rjhunter> defendguin: So you're using the "Run Shell Script" action in an Automator flow, with the Shell set to /bin/bash?
ZadYree has quit [Ping timeout: 272 seconds]
<defendguin> yup
<rjhunter> defendguin: And the bash script is just a single line, reading something like: /Users/defendguin/.rvm/wrappers/ruby-2.0.0-p0/ruby /Users/defendguin/myapp/go.rb
nari_ has quit [Ping timeout: 245 seconds]
<defendguin> yup
<bnagy> nobitanobi: bleh never mind me, I was thinking the second was Hash.new(0) not {}
RealMarc has joined #ruby
zerign has quit [Ping timeout: 272 seconds]
moneydouble has joined #ruby
<rjhunter> defendguin: definitely using the ruby in RVM's "wrappers" folder?
<nobitanobi> mmm bnagy so how do they differ?
<defendguin> /Users/justin/.rvm/rubies/ruby-2.0.0-p353/bin/ruby /Users/justin/RubymineProjects/PowerRankings/main.rb
hiyosi has joined #ruby
<rjhunter> defendguin: try "wrappers" instead of "rubies"
harrymoreno has joined #ruby
<bnagy> nobitanobi: things like Hash.new( [] ) uses the same array for all hash misses
t_p has quit [Quit: Computer has gone to sleep.]
<rjhunter> defendguin: it'll set up the ruby environment (GEM_HOME and similar things)
Solnse has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
<bnagy> Hash.new{ [] } creates a new one
<bnagy> but in that case it would just vanish
<nobitanobi> mmm ok
Mars` has quit [Ping timeout: 240 seconds]
<bnagy> Hash.new{0} is special because 0 is an immediate
ZadYree has joined #ruby
<defendguin> hmmm ok
reset has joined #ruby
Barrin6 has quit []
vt101 has quit [Quit: Page closed]
<defendguin> rjhunter: that workedQ
<defendguin> !
Solnse has quit [Ping timeout: 252 seconds]
matematikaadit has quit [Remote host closed the connection]
<rjhunter> defendguin: ".rvm/rubies/.../bin/ruby" is the actual ruby interpreter binary itself. When you `rvm use` on the command line, that sets your GEM_HOME and PATH etc to include the relevant folders for that ruby.
reset has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
<rjhunter> defendguin: the scripts in "wrappers" is only a couple of lines -- it loads the relevant environment and then runs whatever was going to run
<defendguin> cool
tharindu has joined #ruby
lyanchih has joined #ruby
kofno_ has quit [Ping timeout: 246 seconds]
lethjakman has quit [Ping timeout: 240 seconds]
R33C3 has joined #ruby
dagnachew has joined #ruby
mjs2600 has joined #ruby
harrymoreno has quit [Ping timeout: 248 seconds]
harrymoreno has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
reset has joined #ruby
Kricir has quit [Remote host closed the connection]
kofno_ has joined #ruby
hogeo has quit [Quit: Leaving...]
sevenseacat has joined #ruby
hogeo has joined #ruby
preller has quit [Ping timeout: 248 seconds]
ananthakumaran has quit [Quit: Leaving.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagnachew has quit [Quit: Leaving]
Ripp__ has quit [Ping timeout: 245 seconds]
joumunji has joined #ruby
xp_prg has quit [Quit: This computer has gone to sleep]
mjs2600 has quit [Remote host closed the connection]
cads has quit [Ping timeout: 245 seconds]
benzrf has joined #ruby
<benzrf> h
<benzrf> *hi
<benzrf> so is sinatra basically like flask?
<benzrf> but in ruby
kaspergrubbe has joined #ruby
nari_ has joined #ruby
<nobitanobi> never tried flask :/
<benzrf> it is a python thing
iliketur_ has joined #ruby
<benzrf> afaict it is kind like sinatra
<benzrf> but for python
tharindu has quit [Quit: Leaving...]
<benzrf> notice the hello world example looks suspiciously like sinatra's
TaxmanBD has quit [Ping timeout: 248 seconds]
Granite has quit [Ping timeout: 265 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hello_world has quit [Ping timeout: 250 seconds]
<rjhunter> glancing through the Flask documentation, it seems Flask includes templating (Sinatra expects you to bring your own if you want templating)
iliketu__ has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
<rjhunter> but they seem roughly equivalent
Soda has quit [Read error: Connection reset by peer]
<jrobeson> but it doies work automatically via tilt.. <3 tilt
ddd has quit [Ping timeout: 240 seconds]
<jrobeson> i wonder when flask came out
<jrobeson> i've only heard about it for the past few years
<jrobeson> but .. i don't keep on top of muc python stuff
<benzrf> rjhunter: wait really?
<benzrf> :[
<rjhunter> flask seems kinda heavier-weight
iliketur_ has quit [Ping timeout: 248 seconds]
<benzrf> rjhunter: is there something like flask for ruby?
<benzrf> that is, it has everything you need to make a typical app
<benzrf> but is relatively bare bones
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<benzrf> without a ton of config or extra file
<benzrf> s
Kricir has joined #ruby
<benzrf> so on a scale between sinatra & rails, maybe like 1/3 away from sinatra?
tharindu has joined #ruby
jerius has joined #ruby
R33C3 has quit [Read error: Connection reset by peer]
R33C3 has joined #ruby
ddd has joined #ruby
<rjhunter> benzrf: the scale probably goes something like: straight rack app -- sinatra -- sinatra + a couple of libraries -- padrino -- rails with a bunch of stuff turned off -- rails with defaults
wormwood has quit [Read error: Operation timed out]
Tobarja has quit [Ping timeout: 252 seconds]
SirFunk has quit [Ping timeout: 246 seconds]
shaquile has quit [Ping timeout: 246 seconds]
the_mentat has quit [Ping timeout: 248 seconds]
samkottler has quit [Ping timeout: 240 seconds]
<benzrf> so padrino is what i want?
hamakn has quit [Remote host closed the connection]
orionstein_away has quit [Ping timeout: 245 seconds]
Gnubie_ has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
hamakn has joined #ruby
IceColdMax has quit [Quit: For a hard earned thirst...]
<jrobeson> benzrf, it's what you want to take a look at :)
<rjhunter> benzrf: I don't know what you want, but you can try one or two of the options and see how you feel.
philtr has quit [Ping timeout: 272 seconds]
sindork has quit [Ping timeout: 272 seconds]
sweeper has quit [Ping timeout: 272 seconds]
machuga has quit [Ping timeout: 272 seconds]
sixteneighty has quit [Read error: Operation timed out]
Kovensky has quit [Ping timeout: 272 seconds]
xp_prg has joined #ruby
machuga has joined #ruby
<rjhunter> I'd probably recommend you start with sinatra + liquid (a tilt-compatible templating library that looks similar to Jinja) and see if you feel like anything's missing
<benzrf> hmm
tholapz has quit [Ping timeout: 250 seconds]
razieliyo has quit [Quit: Saliendo]
<jrobeson> liquid <3
freerobby has joined #ruby
momomomomo has quit [Client Quit]
<jrobeson> twig is more advanced that jinja.. i wonder how liquid compares to twig
<jrobeson> twig being for php that is..
<jrobeson> so actually i mean <3 twig.. and hopefully <3 liquid
<rjhunter> benzrf: but if you feel like there's too many things missing, then jump up the ladder
jerius has quit []
<benzrf> jrobeson: how is it more advanced
<jrobeson> it doesn't matter.. this isnt' php
<benzrf> .....
hamakn has quit [Ping timeout: 272 seconds]
<jrobeson> i should probably attempt to compare compatibility with twig and liquid soon
sixteneighty has joined #ruby
bulkan has quit [Remote host closed the connection]
<jrobeson> would be cool if i could play with the same templates in all 3 languages ..
gf3 has quit [Ping timeout: 264 seconds]
reset has quit [Quit: Leaving...]
freerobby has quit [Ping timeout: 245 seconds]
deception has joined #ruby
DanKnox has quit [Ping timeout: 246 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
DanKnox has joined #ruby
gf3 has joined #ruby
<Galeforce> whats a good program to make in ruby?
<Galeforce> i want to test myself (im new) and dont know what program to start making
xybre has quit [Ping timeout: 248 seconds]
<nobitanobi> Galeforce, something that is of your interest
<jrobeson> Galeforce, did you complete the rubykoans ?
<jrobeson> if you haven't.. you should
<Galeforce> no! forgot about koans actually
<jrobeson> you should do that..
<Galeforce> its that good? ill do it right now
<jrobeson> then you could try this game
<jrobeson> do the koans first.. then that game .. although i doubt you'll be able to beat it all in one go
<benzrf> Galeforce: try codewars its a good website
<jrobeson> it does save your progress though
<benzrf> Galeforce: actually one sec
<benzrf> let me get my referer link'
<benzrf> :3
<jrobeson> i never heard of it
<Galeforce> haha
harrymoreno has quit [Ping timeout: 272 seconds]
<Galeforce> is this game advanced jrobeson ? I might just start with the game
<jrobeson> Galeforce, you actually have to know ruby first
<jrobeson> do the koans
<benzrf> Galeforce: check out the link i just pasted
<jrobeson> althoguh the koans might not be enough either
<benzrf> if you know basic ruby you should be good for it
<Galeforce> i feel like I know ruby decently jrobeson
<benzrf> :3
<jrobeson> you should still do the koans
<Galeforce> ok hangon im checking out codewars right now
<jrobeson> if you beat the koans.. i'll believe you are at step 1 of knowing ruby :)
<Galeforce> seeing if i can even complete this invite thing
<Galeforce> kk ill definitely do koans then
<benzrf> Galeforce: did u do the invite
tedstriker has quit [Quit: Anti-Fraping status set.]
Davey has quit [Quit: Computer has gone to sleep.]
<Galeforce> AWESOME
<Galeforce> PASSED THE INVITE
<Galeforce> hahaha
Briareos1 has joined #ruby
Monie has joined #ruby
unstable has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
moneydouble1 has joined #ruby
<unstable> Is there a ruby gem for taking conjugated words, and giving me the base word?
<unstable> eg, "yelling" => "yell"
mjs2600 has joined #ruby
americus has joined #ruby
justsee has joined #ruby
justsee has left #ruby [#ruby]
nateberkopec has joined #ruby
moneydouble has quit [Ping timeout: 264 seconds]
Davey has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<Galeforce> jrobeson i really dont like the way koans is setup
mjs2600 has joined #ruby
<sevenseacat> whyso?
mzdravkov has quit [Remote host closed the connection]
<Galeforce> it doesnt make sense to me
<sevenseacat> whyso?
<jrobeson> that's the most closely related to actual coding
<jrobeson> writing tests.. makin em pass
<jrobeson> except the tests are already written
Mars` has joined #ruby
maletor has joined #ruby
soba has joined #ruby
nateberkopec has quit [Ping timeout: 272 seconds]
<Galeforce> yea
<ddd> except its having trouble linking the github account.
<Galeforce> cant do koans yet
<Galeforce> :/
<sevenseacat> Galeforce: thats worrying, because thats basic ruby
<ddd> and now its just sitting there
<Galeforce> i never learned tests
<Galeforce> this asset_equal / asserT_match is new to me
<tapo_er_mayur> Galeforce: Many testing suites are written in a DSL, so it takes a little practice. Don't give up!
<sevenseacat> Galeforce: well what would be the point if there was nothing new in it?
<tapo_er_mayur> Galeforce: remember, it's just ruby
hamakn has joined #ruby
danshultz has joined #ruby
<sevenseacat> it is a learning exercise, you know
hussien has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
<Galeforce> thx tapo_er_mayur
nateberkopec has joined #ruby
mklappstuhl has joined #ruby
jkhwan has quit [Remote host closed the connection]
<Galeforce> goign back to reading my book now that i feel dumb again
<Galeforce> lol
<jrobeson> that's part of the learning process
americus has quit [Ping timeout: 246 seconds]
jcromartie has joined #ruby
tjbiddle has joined #ruby
Shidash has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
nfk has quit [Quit: yawn]
bret has left #ruby [#ruby]
swingha has quit [Quit: WeeChat 0.4.2]
sweeper has joined #ruby
wormwood has joined #ruby
philtr has joined #ruby
SirFunk has joined #ruby
valesk has quit [Remote host closed the connection]
Tobarja has joined #ruby
sindork has joined #ruby
reset has joined #ruby
polaco_zZz has quit [Ping timeout: 272 seconds]
Aryasam has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
reset has quit [Read error: Connection reset by peer]
_reset has joined #ruby
zzak has quit [Ping timeout: 260 seconds]
<Galeforce> lol im stuck on the easiest thing
<Galeforce> can someone help explain to me this code:
<Galeforce> def debt(account, amount)
<Galeforce> account.balance -= amount
<Galeforce> end
<Galeforce> whats the 2nd line doing exactly
<rjhunter> would you understand it if it said:`account.balance = account.balance - amount` ?
<Galeforce> yeah i understand that
<rjhunter> cool, then think of it that way
<Galeforce> but what im not getting is
deception has quit [Quit: Goodbye]
<Galeforce> debt is calling 2 arguments, only one is listed
amoli has quit [Ping timeout: 264 seconds]
<Galeforce> i mean amount is in there but, how does that work?
<sevenseacat> huh?
<Galeforce> account.balance-= amount, I thought was just going through debt account
<sevenseacat> you havent provided enough context to your question i think
<Galeforce> hmmmmmm
tjbiddle has quit [Quit: tjbiddle]
<Galeforce> well does account.balance -= amount use both arguments in def debt?
<sevenseacat> yes
<sevenseacat> account, and amount
maletor has quit [Quit: Computer has gone to sleep.]
<Galeforce> ohhh ok i get it now
<Galeforce> im used to seeing both arguments on seperate line
<Galeforce> but they can be on the same line
<sevenseacat> what the
<Galeforce> i get it
<benzrf> erm
R33C3 has quit [Remote host closed the connection]
<benzrf> what is that supposed to mean?
axl_ has joined #ruby
<rjhunter> Galeforce: in Ruby, arguments are almost always on the same line
mklappstuhl has joined #ruby
<Galeforce> kkk
<Galeforce> i get it now
<Galeforce> thx
capicue has joined #ruby
_reset has quit [Ping timeout: 245 seconds]
tjbiddle has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
zz_N00D is now known as CripperZ
zamn has joined #ruby
<zamn> Hey, what is the different between Monitor and MonitorMixin?
ewnd9 has joined #ruby
adkron has joined #ruby
<bnagy> MonitorMixin is supposed to be mixed into classes
<bnagy> or just extended directly onto instances
tharindu has quit [Quit: Leaving...]
<bnagy> http://ruby-doc.org/stdlib-2.0.0/libdoc/monitor/rdoc/MonitorMixin.html the doc is pretty clear, although honestly it's not used much afaik
<zamn> if it was clear I wouldn't have asked
freerobby has joined #ruby
<Galeforce> ZING
<Galeforce> lol
<zamn> i mean it says nowhere on there what a Mixin is
<zamn> it just explains what a Monitor is
<ddd> the name of the examples shoujld have run a bell
<Galeforce> guys i gotta be honest with you
<Galeforce> im pretty dumb and sometimes i wonder if im actually going to be able to learn programming lol
<ddd> Simple class include, and Simple object.extend not to mention that thats normally how any mixin is used
<zamn> damn you guys are helpful
sgnl has quit [Quit: Textual IRC Client: www.textualapp.com]
<zamn> thanks
<bnagy> well if you don't know what a mixin is, or how ruby works, then maybe asking a fine point of difference between two obscure thread sync classes isn't the place to start
IceDragon has quit [Quit: Space~~~]
freerobby has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
Kovensky has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
<Galeforce> is ruby koans all about tests?
<ddd> no, it just uses tests to make you think about the ruby (and teach you how to write effecive tests)
<Galeforce> ok
<Galeforce> im actually doing ok on it now
<ddd> keep at it :)
<bnagy> koans are really night fur kinder, unless they've changed a lot
<bnagy> *nicht
<bnagy> there are probably way better intros
<Galeforce> nicht?
<sevenseacat> not for kids
<ddd> not for beginners
<sevenseacat> damn german colloquialisms
<ddd> heh
lfox has joined #ruby
machuga has quit [Ping timeout: 272 seconds]
gyre007 has quit [Remote host closed the connection]
kung has quit [Quit: Bye!]
diegoviola has joined #ruby
jbrechtel has quit [Remote host closed the connection]
kilophoton has quit [Ping timeout: 272 seconds]
jbrechtel has joined #ruby
lfox has quit [Client Quit]
mjs2600 has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
lfox has joined #ruby
machuga has joined #ruby
Aryasam has joined #ruby
Kricir has quit [Remote host closed the connection]
varfoo has joined #ruby
smathieu has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
<jrobeson> so.. perhaps he does not know as much as thought to be known ..
iamjarvo has joined #ruby
<jrobeson> bnagy, i thought the koans were easy.. going through the basic constructs.
<jrobeson> like try ruby .. but faster
Hanmac has joined #ruby
bluOxigen has joined #ruby
danshultz has quit [Remote host closed the connection]
<bnagy> they used to be craazy metaprogramming
machuga has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
myappleguy1 is now known as myappleguy
<benzrf> what command do i run to get koans?
<benzrf> git clone http://something?
<jrobeson> bnagy, oh.. the koans before neo koans
<jrobeson> i never saw them
einarj has joined #ruby
psyl0n has quit []
<jrobeson> bnagy, here they are online https://koans.heroku.com/en/about_asserts
<jrobeson> that's the first page
<jrobeson> i didn't even know they had an online version.. i downloaded it.. looked better in my text editor
Mars` has joined #ruby
duncan_bayne has joined #ruby
maroloccio has joined #ruby
iliketur_ has joined #ruby
smathieu has quit [Remote host closed the connection]
codeFiend has joined #ruby
codeFiend has quit [Client Quit]
smathieu has joined #ruby
<jrobeson> it has instructions on the previous page
ddd has quit [Quit: Leaving]
preller has joined #ruby
<duncan_bayne> Hi folks, just wondering what the current state of the art is for state machine libraries? statemachine (
<duncan_bayne> http://micahmartin.com/statemachine/) looks quite old, but nice and simple as I don't need persistence of states.
carraroj has quit [Ping timeout: 246 seconds]
robonerd has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
machuga has joined #ruby
iliketu__ has quit [Ping timeout: 252 seconds]
xk_id has quit [Quit:
<bnagy> duncan_bayne: don't know, but please report back :)
jamesaanderson has joined #ruby
<bnagy> you could check Celluloid
<bnagy> it's more than just a state machine lib though, it's more like an Actor framework, but the states are implicit kinda
<duncan_bayne> My colleague Simon says "don't bother they're all awful" :)
Mars` has quit [Ping timeout: 240 seconds]
<rjhunter> duncan_bayne: Ruby Toolbox suggests there are a few -- "micromachine" is apparently less than 50 lines of code
einarj has quit [Ping timeout: 264 seconds]
<duncan_bayne> bnagy: thanks, I'll take a look
<duncan_bayne> bnagy: that looks quite heavy, actually ... don't need anything that shiny
<bnagy> I wrote one yeeeeears ago, but it would be a) bad and b) very 1.8
smathieu has quit [Ping timeout: 272 seconds]
<benzrf> scientific computing????
<benzrf> USE HASKELL
<bnagy> depends what you're using as input
<benzrf> MONADS MONADS MONADS
* benzrf crams some pattern matching down duncan_bayne's throat
phinfone_ has quit [Quit: exitiing]
* rjhunter takes a quick look at MicroMachine <https://github.com/soveran/micromachine>
jamesaanderson has quit [Client Quit]
mklappstuhl has joined #ruby
<rjhunter> Wow, that "50 lines" claim included blank lines. The actual implementation is only 39 LOC according to `cloc`
<duncan_bayne> rjhunter: fancy meeting you here ;) Thanks, I'll take a look at micromachine
<bnagy> it's a problem that is very well suited to ruby
radic has joined #ruby
jamesaanderson has joined #ruby
kilophoton has joined #ruby
nobitanobi has quit [Ping timeout: 245 seconds]
larissa has quit [Quit: Leaving]
jibrjrb has joined #ruby
machuga has quit [Read error: Operation timed out]
<benzrf> cloc?
bradhe has joined #ruby
<rjhunter> benzrf: code size counting tool -- http://cloc.sourceforge.net/
mklappstuhl has quit [Ping timeout: 272 seconds]
radic_ has quit [Ping timeout: 264 seconds]
<benzrf> neat
zerign has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
preller has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Ping timeout: 245 seconds]
polaco_zZz has joined #ruby
zzak has joined #ruby
machuga has joined #ruby
xaores has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 245 seconds]
jibrjrb has quit [Quit: Leaving.]
lolmaus has joined #ruby
<benzrf> ugh
<benzrf> i dont like rubys syntactical inconsistencies
<benzrf> |:<
reset has joined #ruby
<benzrf> PYTHON, on the other hand, is MUCH more regular
<benzrf> -smug-
polaco_zZz has quit [Ping timeout: 272 seconds]
<lolmaus> benzrf, you haven't seen JavaScript if you grumble at Ruby.
<benzrf> ive seen jsaak
<benzrf> *JS
<benzrf> it has p. regular grammar
jibrjrb has joined #ruby
<benzrf> compared to ruby anyway
<benzrf> :-D
zzak has quit [Remote host closed the connection]
<lolmaus> I'm trying to figure out how to require a Ruby dependency fetched from Github rather then from gems. I tried requiring its main file by a relative URL: `require '../middleman-blog/lib/middleman-blog.rb'`, but the library fails to require its internal deps: "can not load such file -- middleman-blog/version".
<lolmaus> How do i do it correctly?
noyb has joined #ruby
<sevenseacat> javascript is hideous
<rjhunter> lolmaus: The Ruby tool "bundler" is the widely-accepted way to manage dependencies in a Ruby application.
intuxicated_ has joined #ruby
intuxicated has quit [Ping timeout: 264 seconds]
<rjhunter> lolmaus: If you're not using Bundler already, you'll save yourself a lot of pain by starting now
<benzrf> sevenseacat: how so
reset has quit [Ping timeout: 245 seconds]
<benzrf> ?
<lolmaus> rjhunter, i'm trying to test out a version of the library that made its way to Github but hasn't been released to RubyGems.
preller has joined #ruby
TaxmanBD has joined #ruby
<rjhunter> lolmaus: If you're using Bundler, then a line in your Gemfile like this should be enough:`gem 'middleman-blog', git: 'https://github.com/middleman/middleman-blog'`
<lolmaus> rjhunter, thank you.
<havenwood> benzrf: Array(16).join("wat" - 1) + " Batman!" #=> 'NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman!'
macmarti_ has joined #ruby
<benzrf> lolmaus: oh god yes js' semantics are horrifying
<benzrf> im talking about *syntax*
<benzrf> were you not listening
<benzrf> :P
<havenwood> benzrf: Ruby syntax is lovely. JS? Really?
<benzrf> no the syntax is nice
<rjhunter> havenwood: I think benzrf is talking about the regularity of the syntax, not its beauty
<benzrf> but its annoyingly special-casey and inconsistent
apeiros has joined #ruby
<havenwood> benzrf: such is human language
<lolmaus> havenwood, he's talking about adherence to formal regularities.
<benzrf> bah
<benzrf> look at python
<havenwood> there are many ways to do it
<benzrf> its syntax is very nice
<lolmaus> benzrf, Ruby lets write in a consistent manner if you want to.
<benzrf> & yet quite regular & consistent
<havenwood> benzrf: meh
<benzrf> havenwood: you take that back
<lolmaus> Python is ugly after you've got a taste of Ruby.
<havenwood> lol
macmartine has quit [Ping timeout: 246 seconds]
<Shidash> Does anyone have suggestions on the best way to do network visualization using Ruby? Ideally I'd like to find some way to use Gephi or something like that with Ruby
<benzrf> lolmaus: pfft
<lolmaus> Python still uses the `for` loop extensively.
<benzrf> more like RUBY is ugly after you get a taste of HASKELL
<benzrf> -shades-
<benzrf> lolmaus: but yes
<benzrf> my #1 beef with python is its lack of blocks & HOFs
<benzrf> if it had those itd easily beat ruby w/ me
<benzrf> as is, im trying to switch over to ruby
<benzrf> :T
<havenwood> benzrf: whenever i use Python i get the sneaking suspicion that i'm just being trolled, and there is another *real* library that is the actual one - like with pip... no way to list installed packages or update all package. OMGWTFBBQ...
tjbiddle has quit [Quit: tjbiddle]
quarters has quit [Ping timeout: 245 seconds]
<benzrf> havenwood: excuse me?
<benzrf> pip freeze?
<benzrf> although the update one is p. bogus
<havenwood> benzrf: That ^ is just horrifying...
<lolmaus> Oh that issue is three years old
polaco_zZz has joined #ruby
<havenwood> benzrf: How can the Python community be so slow and backwards???
<benzrf> havenwood: backward compat
<benzrf> :\
<havenwood> kill it with fire!
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> this is why py2 STILL is the dominant half
<havenwood> uhg
<benzrf> even though 3 is significantly superior
<benzrf> unu
<lolmaus> Though this issue with Bundler is also three years old: https://github.com/bundler/bundler/issues/646 and hasn't been fixed (migrated to https://github.com/bundler/bundler-features/issues/4 ).
<havenwood> Ruby 2.0's uptake has been very fast. That is really nice.
<benzrf> havenwood: prolly cuz it's backward compat
<benzrf> py3 is not
<havenwood> I think about a third of shops are already on 2.0 in production.
<havenwood> benzrf: yeahh, the breaking changes for Ruby were 1.8 to 1.9 - that was rougher
<lolmaus> `rvm install 2.0.0` rocks. ^_^
<havenwood> lolmaus: ruby-install ruby
<havenwood> :P
mklappstuhl has joined #ruby
<havenwood> benzrf: you usually use 2 or 3?
zzak has joined #ruby
<havenwood> lolmaus: windows...
<benzrf> 3 if i can
<benzrf> 2 otherwise
<benzrf> i.e. when using flask
<benzrf> ;_;
yfeldblum has joined #ruby
lukec has quit [Quit: lukec]
<havenwood> lolmaus: yeah, i think there is still an issue building Nokogiri with Ruby 2 on 64-bit windows
<lolmaus> havenwood, RubyInstaller.org for Windows? There's also Pik: https://github.com/vertiginous/pik
freerobby has joined #ruby
<lolmaus> havenwood, i have even donated $15 on BountySource for that issue.
<havenwood> lolmaus: ahh, yeah i saw there was a bounty - nice
TaxmanBD has quit [Ping timeout: 245 seconds]
lukec has joined #ruby
<lolmaus> Everybody is encouraged to donate here: https://www.bountysource.com/issues/978124-support-ruby-x64-on-windows
freerobby has quit [Client Quit]
<havenwood> i will donate a copy of Mavericks for every Windows user
<lolmaus> Also this: https://www.bountysource.com/fundraisers/489-rvm-2-0 Give them a cup of coffee worth in dollars.
mklappstuhl has quit [Ping timeout: 245 seconds]
<duncan_bayne> lolmaus: not trying to be facetious, but what're the common use cases for Ruby on Windows?
<benzrf> havenwood: more like ubuntu
<benzrf> os x pfft
<sevenseacat> lol osx
<duncan_bayne> lolmaus: I recently had to support a Ruby app for a few people running Windows laptops, it was easier just to get them dual-booting Linux Mint.
<havenwood> lolmaus: i prefer to use ruby-install with chruby instead of rvm, but mpapis is doing some neat stuff
<benzrf> MORE LIKE OSUX AMIRITE
freerobby has joined #ruby
<havenwood> benzrf: ubuntu >.>, i'd rather fedora, arch or gentoo
<havenwood> benzrf: FreeBSD is moar like OS X
cooldman224 has joined #ruby
<benzrf> pfft
<benzrf> ubuntu has the best packages
<havenwood> PostgreSQL on Ubuntu made me laugh, then cry.
<havenwood> Ruby package on Ubuntu.
nateberkopec has quit [Quit: Leaving...]
<havenwood> Gah... the horror.
<benzrf> bah
<lolmaus> duncan_bayne, i'm a frontend developer and my desktop OS happens to be Windows 7. I develop more complicated project in a virtual machine (usually headless Ubuntu), but when an app is fully Windows-compatible and either has Windows-compatible deployment routines or simply lacks them, then i prefer to run the app natively on Windows rather than bother with a virtual machine.
<lolmaus> *projects
<rjhunter> I've seen a fair number of people trying to run Ruby on Windows. Many are learning to program for the first time, or are working in non-coding roles in a team that likes Ruby.
freerobby has quit [Client Quit]
noname001__ has quit [Read error: Operation timed out]
<lolmaus> havenwood, have you heard of RVM and PPAs?
<havenwood> lolmaus: I'm not worried about me.
zz_tsykoduk is now known as tsykoduk
cooldman224 has quit [Remote host closed the connection]
<lolmaus> havenwood, you don't have to have Ruby and Postgres from Ubuntu official repos. For Ruby, you have RVM and as for Postgres, it offers a private Ubuntu repo updated by Postgres team: http://www.postgresql.org/download/linux/ubuntu/
xybre has joined #ruby
<sevenseacat> whats wrong with postgres in the 'buntu repos?
<havenwood> lolmaus: Like with Fedora 19, you get ruby-2.0.0-p247 as the system install with a perfectly setup RubyGems. No research or hacks, just works.
<lolmaus> havenwood, okay.
<duncan_bayne> lolmaus, rjhunter: perhaps I've just been turned cynical by my recent experiences. It was in all honesty quicker just to set up dual-boot than it was to try to pin down the problems on Windows. I know because I tried both approaches :) Plus Windows is lacking a lot of useful dev tools out-of-the-box.
<havenwood> just saying, i don't think Ubuntu packages are *all that* - sure you can make it work, but i don't really consider it a bon
<havenwood> boon*
<Radar> lol is something trying to install Ruby from Ubuntu's packages agani?
<Radar> !popcorn3
<Radar> Oh, that's not here.
<sam113101> I thought you were dead Radar
xk_id has joined #ruby
<Radar> sam113101: Rumours of my eventual death have been greatly exaggerated.
<sevenseacat> Radar: i added more popcorn gifs. enjoy.
<Radar> All the cool kids use chruby to install Ruby now.
<lolmaus> duncan_bayne, unfortunately, i've got so many different tools and customisations in Windows, that going Ubuntu or Mac for me is a pain. Setting up Git and Ruby on Windows for me is the lesser of evils. :(
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<sevenseacat> impossibru
<duncan_bayne> lolmaus: Hmmm. Have you looked into Cygwin? I was going down that route in my attempt to get things going on Windows. IIRC I got Ruby 2.0 building nicely, All The Things installed (Git, OpenSSH, Emacs, etc.) but was stuck on some Gem not compiling.
<havenwood> Radar: i'm a chruby committer :) yeah, usual path seems to be Ubuntu's 1.8 package from hell, then when rvm is suggested get the apt packaged rvm and complain that doesn't work
<sevenseacat> cygwin was a joke back when i used it at uni, i hope its gotten better
lyanchih has quit [Quit: lyanchih]
<lolmaus> duncan_bayne, yeah, that's what i'm doing when the app i'm working with has no *nix-only dependencies.
Mars` has joined #ruby
<duncan_bayne> sevenseacat: yeah, Cygwin is pretty good these days, certainly makes working on Windows tolerable.
<havenwood> Radar: but ruby-install to install Ruby and chruby for switching :P
jbrechtel has quit [Remote host closed the connection]
<Radar> havenwood: yes please :)
<lolmaus> duncan_bayne, most gems compile fine on Windows with a 32-bit Ruby. 64-bit is rarely a requirement.
noyb has quit [Ping timeout: 264 seconds]
jamesaanderson has joined #ruby
vxxr has joined #ruby
endash has quit [Quit: endash]
nomenkun has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
benzrf has left #ruby [#ruby]
<bnagy> I do a lot of windows, but all with jruby, which has easy 64bit
<bnagy> but I only need stuff to run there, not ever going to use it as a primary dev env
<havenwood> bnagy: ah nice, so no fork anyways - lines up in that regard
gyre007 has joined #ruby
<bnagy> right
<rjhunter> lolmaus: hm, i didn't know about "pik". someone was in the other day asking about multiple rubies on Windows, I thought they were on their own
<bnagy> I still need to write fork for windows :<
<havenwood> bnagy: :O
bkparso has quit [Quit: bkparso]
<bnagy> it's possible, it's just really really awful
<lolmaus> rjhunter, Pik doesn't distinguish between 32-bit and 64-bit. So you can only have either for each Ruby version. :(
<bnagy> btu I think some of the newer windows might have actually made it a bit easier with new kernel stuff
lethjakman has joined #ruby
bkparso has joined #ruby
freakazoid0223 has quit [Ping timeout: 246 seconds]
falood has joined #ruby
mklappstuhl has joined #ruby
<havenwood> (the last post i mean)
<bnagy> yeah, except it's not only undocumented, it varies from version to version
xp_prg has quit [Quit: This computer has gone to sleep]
<havenwood> yeah, that is suboptimal :P
<bnagy> the cygwin stuff goes nowhere, the nebbett approach can work
hogeo has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 272 seconds]
<bnagy> it's just awful, as I said :)
mklappstuhl has quit [Read error: Connection reset by peer]
<duncan_bayne> rjhunter: I've replaced my hand-rolled stuff with micromachine and it's nice to behold.
<bnagy> if you don't need to tell csrss it's a lot easier, but you kind of almost always want to
mklappstuhl has joined #ruby
hogeo has joined #ruby
amacgregor_ has joined #ruby
<lolmaus> rjhunter, your recommendation to use Bundler to fetch from Github worked, but i now receive a weird error when running `bundle install` for the secod time (i added more gems to Gemfile): C:/Ruby200-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/source/git/git_proxy.rb:88:in ``': No such file or directory - git cat-file -e 6f2ef18572f917b5ce937688747d569fc261e6a5 (Errno::ENOENT)
<lolmaus> Bundler refused to do anything. :(
ppppaul has joined #ruby
<duncan_bayne> rjhunter: every non-trivial Ruby codebase has at its heart a informally-specified, bug-ridden, slow implementation of a state machine (with apologies to Greenspun)
myappleguy has quit [Ping timeout: 246 seconds]
intuxicated_ has quit [Ping timeout: 248 seconds]
<havenwood> lolmaus: I don't know what has happened, but maybe try deleting your Gemfile.lock and bundling again?
amacgregor has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
axl_ has quit [Quit: axl_]
noyb has joined #ruby
sergicles has quit [Quit: sergicles]
<havenwood> lolmaus: questions fine here of course, but there's a #bundler channel as well
mklappstuhl has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
danshultz has joined #ruby
lfox has quit [Quit: ZZZzzz…]
tharindu has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
<rjhunter> lolmaus: it looks like there might have been a bug finding git on Windows in the version of Bundler you're using
<havenwood> rjhunter: can it not find git or not find that commit hash?
bradhe has quit [Ping timeout: 265 seconds]
freakazoid0223 has joined #ruby
<rjhunter> havenwood: based on the changelog, it sounds like it was finding git that was the problem
<havenwood> ah
Mars` has quit [Ping timeout: 246 seconds]
<kiba> so. I got a problem....
<rjhunter> lolmaus: in the meantime, you can manually clear out your git cache folder
<havenwood> lolmaus: assiming you have git installed? (if not, install git)
<havenwood> you must..
<havenwood> nvm
xp_prg has joined #ruby
<kiba> I generated a 100MB file assuming it's all JSON
<kiba> but it's really ruby hashes!
<kiba> am I doomed?
<havenwood> kiba: is it JSON or Ruby? huh?
<kiba> I used ruby to write data
<havenwood> kiba: you mean you meant to serialize it to JSON and you didn't?
<kiba> but I forgot to convert them into JSON
<kiba> havenwood: yes
danshultz has quit [Ping timeout: 272 seconds]
<havenwood> kiba: so read it out, convert it, and put it back
<kiba> it's probably a 100MB file now
<bricker`LA> eval(File.read('yourfile.json')).to_json :O (I have no idea if that will work)
Briareos1 has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 272 seconds]
<havenwood> kiba: So you're using RON :P Ruby object notation.
<kiba> havenwood: well, I don't really care if it's JSON
<kiba> as long as I can parse it into something useful
<kiba> or maybe I should generate it as a JSON file
<havenwood> kiba: Marshal is an option built into Ruby. MessagePack is nice: http://msgpack.org/
* kiba wonders if he should try to boost download speed too
<havenwood> kiba: So PStore and YAML::Store are things you might want to look at.
* kiba 's code has been hampering the rubygems server for quite a while now
<lolmaus> rjhunter, havenwood, oh! You're right, i've been trying to do `bundle` in non Git-enabled terminal. My bad. :(
<havenwood> kiba: PStore serializes with Marshal and store it to a file and YAML::Store does the same with YAML (a superset of JSON).
tharindu has joined #ruby
<rjhunter> lolmaus: the newer versions of bundler have a nicer error message when it can't find git
<kiba> I am confused, what with all the acronyms thrown at me?
lethjakman has quit [Ping timeout: 265 seconds]
<havenwood> kiba: So the goal is to serialize and save to disk, right?
<rjhunter> lolmaus: which would have made it easier to figure out what was going on :-)
<kiba> havenwood: Well, I prefer to read the file, generate a JSON version of it
* kiba faceplams himself
<lolmaus> rjhunter, good to know.
<kiba> now I have to write in my essay regarding the lifecylce of gems that I made a mistake
<havenwood> kiba: So for a serialization format you have JSON, YAML, Marshal or MsgPack. (You said it didn't have to be JSON.) Ruby has two things built in for serializing to Marshal or YAML then persisting to disk in a transactional nice way, called PStore and YAML::Store.
* kiba 's original plan is to generate a JSON file, parse it and generate a CSV file and use R to do survival analysis
<havenwood> kiba: So `eval` the content of the current file, convert it to JSON, save it back, carry on.
<kiba> havenwood: well, I am just saying a lot of things. I think I really want the file in JSON
darkc0met has quit [Read error: Operation timed out]
<havenwood> kk
<kiba> so I will do what you say
<havenwood> kiba: i think bricker`LA's suggestion was spot on
<kiba> On each line is a separate hash, so I eval each line and then write to file as JSON
charliesome has joined #ruby
reset has joined #ruby
<kiba> yeah yeah
<havenwood> kiba: it is line-delimited?
funburn has quit [Quit: funburn]
<kiba> I think so, yes
<havenwood> kiba: or it is a Ruby array of hashes?
jibrjrb has quit [Quit: Leaving.]
<kiba> no, it's not an array
macmarti_ has quit [Remote host closed the connection]
<kiba> I generate a ruby Hash and write it to each line
<kiba> it represent each gem
iamjarvo has quit [Quit: Leaving.]
* kiba is working on an enterprising project to analyze the lifecycle of gems
darkc0met has joined #ruby
<kiba> which I think nobody has done before
<havenwood> kiba: File.readlines('stuff').map { |line| eval(line.chomp) }.to_json
Fire-Dragon-DoL has joined #ruby
<havenwood> kiba: If that ^ doesn't work, provide us a gist of the first or last couple lines of the file. bricker`LA's presumed the file is valid Ruby while ^ presumes each line is
hogeo has joined #ruby
fschuindt has joined #ruby
<kiba> havenwood: it's probably entirely valid ruby file too
<rjhunter> kiba: if the data is too big to fit into memory at once, you'll need to take a slightly different approach, but 100MB doesn't sound too bad
reset has quit [Ping timeout: 272 seconds]
<kiba> rjhunter: well, the copy is only something like 100 MB. I dunno
* kiba checks
<kiba> what I should have done earlier is to work on the file near the beginning while the data is being downloaded
<kiba> the data is still being downloaded
<kiba> it would be too painful to start over again unless I devise a faster mean of downloading the data
<jrobeson> ask them for a db dump?
<kiba> jrobeson: I never thought of doing that
* kiba prefer not to ask for help though
<jrobeson> well i think your project would be most helpful for the community.. so let the community help you when it can
<kiba> I am too far along anyway
hogeo has quit [Ping timeout: 272 seconds]
<kiba> anyway, here is what I been working on so far: http://kibabase.com/articles/sic_transit_gloria_ruby:_the_lifecycle_of_gems.html
<kiba> it's only a draft
mklappstuhl has joined #ruby
<duncan_bayne> kiba: whenever I find myself thinking "I've invested too much in X to Y it", I start worrying about the sunk cost fallacy ( http://youarenotsosmart.com/2011/03/25/the-sunk-cost-fallacy/ ).
<kiba> if you want to support my work: http://gittip.com/kiba
<duncan_bayne> kiba: no insult meant, just that variations on that phrase set my spidey-senses a-tingling.
macmartine has joined #ruby
<kiba> duncan_bayne: I know, but if I pursue the database dump, I would need to parse it and generate it...
<kiba> it's work
aagdbl has joined #ruby
hogeo has joined #ruby
brian___ has quit [Quit: brian___]
macmartine has quit [Remote host closed the connection]
mklappstuhl has quit [Read error: Operation timed out]
<unstable> How can I get all the :lemma values into one array, so ["adjustable spanner", "adjustable wrench", etc etc]
<kiba> oh dear god, what have I done?
* kiba finally added the outputed data to version control
<havenwood> unstable: "wrench".en.hyponyms.map { |obj| obj.words.map { |word| word.value[:lemma] }
<kiba> now it's going to take forever to finish uploading
<havenwood> unstable: word.values**
<unstable> havenwood: yea, and a closing }
<unstable> havenwood: thanks, that works.
<havenwood> unstable: :)
iamjarvo has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
jkhwan has joined #ruby
chrisbolton has joined #ruby
aagdbl1 has joined #ruby
aagdbl has quit [Ping timeout: 272 seconds]
<chrisbolton> I'm trying to write a funky collector method and I'm stuck. I could use some help ... https://gist.github.com/Iknewthisguy/7636397
clint_s has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
<rjhunter> chrisbolton: that sounds like an ActiveRecord question, which might be better answered in #rubyonrails
Hanmac has quit [Quit: Leaving.]
<havenwood> kiba: Here, this returns the name and version number of each gem release ever: Gem::SpecFetcher.new.available_specs(:complete).first.values.flatten.map { |gem| {name: gem.full_name, version: gem.version.to_s } }
<kiba> havenwood: and without downloading each of the gem from rubygems.org?
<havenwood> kiba: yes
<sevenseacat> he already asked us there
<chrisbolton> rjhunter: It is an active record question. I tried the #rubyonrails room. I was hoping I might have some luck with people who use active record in here.
<kiba> ok
<kiba> havenwood: let throw away code!
<chrisbolton> hi sevenseacat
<sevenseacat> hi :)
LexicalScope has joined #ruby
<havenwood> kiba: try it (you can swap out `:complete` for `:lastest` just to get most recent version of each gem)
<havenwood> :latest**
<havenwood> lastest >.>
<kiba> havenwood: I need the entire history of each gem
<havenwood> kiba: history?
<kiba> including the information about author, license, etc
hogeo has quit [Remote host closed the connection]
<havenwood> the spec
<kiba> havenwood: version history, yeah
lodeston_ has joined #ruby
* kiba didn't know the most efficient way of getting information
<havenwood> kiba: yeah, you can use SpecFetcher to fetch the specs, then parse em all with RubyGems
<rjhunter> chrisbolton: it's worth a shot, but the folks in here don't tend to be big on active*
<kiba> specfetcher, got it
<havenwood> kiba: It isn't widely known stuff, some of it quite arcane.
macmartine has joined #ruby
<kiba> parse them all with rubygems?
<kiba> didn't each gemspec contains info like author,license, etc?
closures999 has joined #ruby
<kiba> I guess I should have ask the ruby community what's the most efficient way to get information
<chrisbolton> rjhunter: Thanks. I was hoping to get lucky. I'll keep plugging away.
<jrobeson> Gem::Specification is a thing..
<kiba> it could have save me a lot of time waiting
<jrobeson> what's wrong with using it?
nomenkun has joined #ruby
hogeo has joined #ruby
<jrobeson> can't you just ask that?
et_ has joined #ruby
<kiba> well, I didn't know.
<et_> hi everyone
<kiba> well, I won't cancel the download until I try out the code and see if it works
nomenkun has quit [Read error: Connection reset by peer]
<et_> anyone rubyists here who have jumped into Go?
nomenkun has joined #ruby
<jrobeson> you mean people who program using ruby who also program using go?
lodeston_ has quit [Ping timeout: 245 seconds]
<et_> yes
<et_> I'm just looking for pointers
<jrobeson> pointers for what?
<et_> ..on how to get started
<havenwood> kiba: Like i was saying the other day when you asked for feedback, your opening line looking for gem names with shell stuff should be replaced with: Gem::Specification.all.map &:name
browndawg has joined #ruby
<havenwood> kiba: Just take a look at: Gem::Specification.all
<kiba> ok dopey
macmartine has quit [Remote host closed the connection]
<jrobeson> et_, wouldn't it be better to ask for pointers for using go in a go room?
<kiba> havenwood: I thought that was just getting the names, rather than all the info I want
<jrobeson> i'm not sure if there's anything that would particularly help an incoming rubyist
<havenwood> kiba: Sounded to me like everything you want is in: Gem::Specification.all
<kiba> but I didn't realized that you can get more information than that
<kiba> Ok!
* kiba is happy
* jrobeson memory is not terrible.. WHOO
* kiba shouldn't dwell on sunk cost
<et_> jrobeson: probably, but rubyists are my people :)
<kiba> I tried not to...
jkhwan has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 245 seconds]
<rjhunter> et_: I know a few people who have spent a long time in Ruby and have recently spent time in Go
<rjhunter> but I'm not one of them
jkhwan has joined #ruby
<et_> rjhunter: I feel like I hear a lot of that going on...
<rjhunter> et_: There seems to be a fair amount of interest in Rust as well
emocakes has joined #ruby
axl_ has quit [Quit: axl_]
nomenkun has quit [Ping timeout: 248 seconds]
tobyo has joined #ruby
osvico has quit [Ping timeout: 246 seconds]
<rjhunter> et_: and Steve Klabnik is working on a book called "Rust for Rubyists"
mikepack has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<et_> rjhunter: yes, I follow him on twitter so I see a lot of those tweets.
jbrechtel has joined #ruby
<rjhunter> there may be something similar for Go, but honestly I'd probably start by just picking up a regular Go resource that doesn't target people from a particular language background
preller has quit [Ping timeout: 252 seconds]
<et_> yes, I agree. I just wanted to hear what my fellow rubyists thought.
mjs2600 has joined #ruby
aavt has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
<et_> gotta run
hogeo has joined #ruby
<et_> rjhunter: nice to meet you :)
nobitanobi has joined #ruby
<rjhunter> :-)
<havenwood> et_: What are you looking to do with Go? I find Elixir, Haskell and Clojure all more interesting and elegant than Go though personally. Go has cross compilation which is nice if you need it I guess, and a nice concurrency model, but meh.
<nobitanobi> morning
<nobitanobi> *night
<havenwood> et_: later
<et_> cheers havenwood
bugsinlights has quit [Remote host closed the connection]
<et_> ttyl
<havenwood> nobitanobi: gd'evening
mklappstuhl has joined #ruby
et_ has quit [Quit: leaving]
<nobitanobi> yeah.
<nobitanobi> gd'everything
jbrechtel has quit [Ping timeout: 272 seconds]
lyanchih has joined #ruby
clint_s has joined #ruby
tharindu has quit [Ping timeout: 245 seconds]
Clooth has joined #ruby
bradhe has joined #ruby
preller has joined #ruby
VictorSK_ has joined #ruby
VictorSK_ has left #ruby [#ruby]
adkron has quit [Ping timeout: 245 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mklappstuhl has quit [Ping timeout: 246 seconds]
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
phansch has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
macmartine has joined #ruby
<nobitanobi> banister, that woman is my idol
yacks has quit [Quit: Leaving]
tharindu has joined #ruby
capicue has quit [Quit: Leaving...]
capicue has joined #ruby
mikepack has quit [Remote host closed the connection]
freerobby has joined #ruby
ewnd9 has joined #ruby
<sam113101> female is my favorite gender
jkhwan has joined #ruby
<nobitanobi> ~~
petey has quit [Remote host closed the connection]
* sam113101 crossdresses in front of #ruby
ItSANgo has quit [Read error: Connection reset by peer]
capicue has quit [Quit: Leaving...]
ItSANgo has joined #ruby
<sam113101> (◡‿◡✿)
Mars` has joined #ruby
reset has joined #ruby
iamjarvo has quit [Quit: Leaving.]
mklappstuhl has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 265 seconds]
zamn has quit [Quit: leaving]
hiyosi has quit [Ping timeout: 272 seconds]
Monie has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
macmartine has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
sandeepk has joined #ruby
thelorax123 has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
vxxr has quit [Quit: leaving]
thelorax123 has joined #ruby
CaptainJet has quit []
jle` has quit [Quit: WeeChat 0.4.2]
jle` has joined #ruby
<shevy> sam113101 get nude already
ewnd9 has quit [Read error: Operation timed out]
fridim_ has quit [Ping timeout: 272 seconds]
apeiros has quit [Read error: Connection reset by peer]
Drewch has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby
ananthakumaran has joined #ruby
rjhunter has quit [Remote host closed the connection]
lethjakman has joined #ruby
DonRichie has joined #ruby
nomenkun has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nomenkun has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
capicue has joined #ruby
macmartine has joined #ruby
funburn has joined #ruby
mklappstuhl has joined #ruby
duncan_bayne has quit [Ping timeout: 272 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
clevermatt has joined #ruby
macmartine has quit [Remote host closed the connection]
jbrechtel has joined #ruby
kilophoton has quit [Ping timeout: 240 seconds]
noyb has quit [Ping timeout: 272 seconds]
mklappstuhl has quit [Ping timeout: 245 seconds]
jbrechtel has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 272 seconds]
emocakes has quit [Read error: Connection reset by peer]
emocakes has joined #ruby
charliesome has joined #ruby
timonv has joined #ruby
timonv has quit [Remote host closed the connection]
ewnd9 has joined #ruby
zoee has joined #ruby
Monie has joined #ruby
ppppaul has quit [Ping timeout: 272 seconds]
aavt has quit [Remote host closed the connection]
DonRichie has quit [Quit: Verlassend]
arquebus has joined #ruby
yfeldblum has quit [Quit: Leaving...]
lethjakm1 has joined #ruby
timonv has joined #ruby
ananthakumaran1 has joined #ruby
lethjakman has quit [Ping timeout: 272 seconds]
rjhunter has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
falood has quit []
rickruby has joined #ruby
yfeldblum has joined #ruby
falood has joined #ruby
ananthakumaran has quit [Ping timeout: 272 seconds]
CaptainJet has joined #ruby
amacgregor has joined #ruby
rickruby_ has joined #ruby
mklappstuhl has joined #ruby
rickruby has quit [Read error: No route to host]
rjhunter has quit [Ping timeout: 240 seconds]
amacgregor_ has quit [Ping timeout: 246 seconds]
joumunji has quit [Remote host closed the connection]
bubbajones has quit [Ping timeout: 245 seconds]
reset has joined #ruby
hiyosi has joined #ruby
Ubercow has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
timonv has quit [Remote host closed the connection]
tagrudev has joined #ruby
dwgill_ has joined #ruby
dwgill_ has quit [Client Quit]
dwgill has joined #ruby
yfeldblum has quit [Remote host closed the connection]
reset has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
Barrin6 has joined #ruby
hiyosi has quit [Ping timeout: 248 seconds]
tharindu has quit [Ping timeout: 264 seconds]
jkhwan has quit [Remote host closed the connection]
diegoviola has quit [Read error: Operation timed out]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
clevermatt has quit [Ping timeout: 245 seconds]
clevermatt has joined #ruby
dawkirst has quit [Ping timeout: 248 seconds]
stevenson has joined #ruby
xp_prg has quit [Quit: This computer has gone to sleep]
stevenson has left #ruby [#ruby]
zipper has joined #ruby
browndawg has quit [Quit: Leaving.]
arquebus has quit [Quit: Konversation terminated!]
xp_prg has joined #ruby
ewnd9 has quit [Remote host closed the connection]
amritanshu_RnD has joined #ruby
aagdbl1 has quit [Quit: Leaving.]
diegoviola has joined #ruby
ewnd9 has joined #ruby
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
ananthakumaran1 has quit [Read error: Connection reset by peer]
weems has quit [Ping timeout: 272 seconds]
pranny has joined #ruby
ananthakumaran has joined #ruby
mklappstuhl has joined #ruby
nomenkun has joined #ruby
Barrin6 has quit []
jhaals has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
bradhe has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
nomenkun has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
CaptainJet has quit []
Ubercow has quit [Quit: Computer has gone to sleep.]
jkhwan has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
jbrechtel has joined #ruby
tesuji has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jalcine has joined #ruby
elcontrastador has joined #ruby
noop has joined #ruby
jbrechtel has quit [Ping timeout: 245 seconds]
hiyosi has quit [Ping timeout: 272 seconds]
amacgregor_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
amacgregor__ has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
bradhe has quit [Remote host closed the connection]
Clooth has quit [Quit: Leaving...]
amacgregor has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
dwgill_ has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
bradhe has quit [Ping timeout: 272 seconds]
chrisbolton has quit [Quit: chrisbolton]
chrisbolton has joined #ruby
chrisbolton has quit [Client Quit]
bluOxigen has joined #ruby
iliketur_ has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
tapo_er_mayur has quit [Ping timeout: 272 seconds]
hussien has quit [Remote host closed the connection]
sayan has joined #ruby
soravilla has joined #ruby
mklappstuhl has joined #ruby
sergicles has joined #ruby
lethjakm1 has quit [Ping timeout: 265 seconds]
dwgill has quit [Quit: Leaving]
mjs2600 has joined #ruby
Elhu has joined #ruby
dwgill_ has quit [Quit: Leaving]
mjs2600 has quit [Remote host closed the connection]
orionstein_away has joined #ruby
orionstein_away is now known as orionstein
closures999 has quit [Remote host closed the connection]
bradhe has joined #ruby
matematikaadit has joined #ruby
rjhunter has joined #ruby
closures999 has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
petey has joined #ruby
closures999 has quit [Ping timeout: 245 seconds]
shadoi1 has joined #ruby
shadoi1 has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
rjhunter has quit [Ping timeout: 264 seconds]
shadoi1 has joined #ruby
ananthakumaran has joined #ruby
shadoi1 has quit [Client Quit]
Xeago has joined #ruby
shadoi1 has joined #ruby
petey has quit [Ping timeout: 272 seconds]
reset has joined #ruby
n1x has joined #ruby
mjs2600 has joined #ruby
shadoi1 has quit [Client Quit]
shadoi has quit [Ping timeout: 245 seconds]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
mengu has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
axilla has quit [Ping timeout: 245 seconds]
amacgregor has joined #ruby
reset has quit [Ping timeout: 246 seconds]
amacgregor__ has quit [Ping timeout: 245 seconds]
drumusician has joined #ruby
ppppaul has joined #ruby
sandeepk has quit [Quit: Leaving...]
mengu__ has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
Leighton has joined #ruby
bradhe has quit [Remote host closed the connection]
zoee has joined #ruby
mjs2600 has quit [Remote host closed the connection]
apeiros has joined #ruby
kizzx2 has joined #ruby
mengu__ has quit [Read error: No route to host]
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
phansch has quit [Remote host closed the connection]
dagobah has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
capicue has quit [Ping timeout: 248 seconds]
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
<xybre> I've looked into Haskell, Closure and Erlang (less Elixir) and that functional style is good for some things, but those languages have other large sets of drawbacks.
<sevenseacat> i was with you down until about "None of the engineers on the team have taken very long at all to come up to speed in the language; heck, even one of our interns picked it up in a couple of days."
gtsiftsis has joined #ruby
<sevenseacat> thats complete BS, you cant become proficient in a language in a few days
<xybre> I think they just mean "it compiles", not like expert. Much like the game Go, simple rules, easy to learn, lifetime to master.
mklappstuhl has joined #ruby
mjs2600 has joined #ruby
adambeynon has joined #ruby
<sevenseacat> ok so after a few days you wont be very productive at all but thats seen as 'coming up to speed'
<sevenseacat> in that case, i am like the world's best java/android dev
ppppaul has quit [Ping timeout: 246 seconds]
<xybre> Though, I was preficient in 24 hours in PHP enough to write an API consumer and interface.
maroloccio2 has joined #ruby
nomenkun has joined #ruby
maroloccio has quit [Ping timeout: 264 seconds]
funburn has quit [Quit: funburn]
mklappstuhl has quit [Ping timeout: 252 seconds]
jle` has quit [Quit: lambdabot]
jle` has joined #ruby
relix has joined #ruby
sandeepk has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
ananthakumaran has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
mjs2600 has quit [Remote host closed the connection]
xcess_denied has joined #ruby
Clooth has joined #ruby
matematikaadit has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
freezey has joined #ruby
<emocakes> xybre <3 erlang
<emocakes> and go
<emocakes> golang is actually really freaking nice
Aryasam has joined #ruby
hiyosi has joined #ruby
jbrechtel has joined #ruby
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
iliketur_ has quit [Quit: zzzzz…..]
mrsolo has joined #ruby
jmeeuwen has quit [Ping timeout: 260 seconds]
jrhe has joined #ruby
jmeeuwen has joined #ruby
liamkeil1 has joined #ruby
aganov has joined #ruby
funburn has joined #ruby
mrsolo has quit [Client Quit]
hiyosi has quit [Ping timeout: 245 seconds]
jbrechtel has quit [Ping timeout: 248 seconds]
einarj has joined #ruby
soravilla has quit [Remote host closed the connection]
matematikaadit has joined #ruby
matematikaadit has quit [Client Quit]
matematikaadit has joined #ruby
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
november has joined #ruby
amund_ has joined #ruby
bradhe has joined #ruby
kaspergrubbe has joined #ruby
withnale has quit [Ping timeout: 260 seconds]
skaflem has joined #ruby
blaxter_ has joined #ruby
mklappstuhl has joined #ruby
sayan has joined #ruby
sayan has quit [Read error: Connection reset by peer]
sayan has joined #ruby
alup has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
h_kon has joined #ruby
camilasan has joined #ruby
november has quit [Remote host closed the connection]
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
avril14th has joined #ruby
ananthakumaran has joined #ruby
bhalla has joined #ruby
jkhwan has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 272 seconds]
jkhwan has joined #ruby
pskosinski has joined #ruby
RichGuk has left #ruby ["WeeChat 0.3.7"]
schaary has joined #ruby
tharindu has joined #ruby
mrfoto has joined #ruby
maroloccio2 has quit [Quit: WeeChat 0.4.1]
mjs2600 has joined #ruby
jrhe has quit [Ping timeout: 245 seconds]
withnale has joined #ruby
rjhunter has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
jrhe has joined #ruby
nomenkun has joined #ruby
monkegjinni has joined #ruby
funburn has quit [Quit: funburn]
obs has joined #ruby
claymore has joined #ruby
rjhunter has quit [Ping timeout: 245 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
nomenkun has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
reset has joined #ruby
ananthakumaran has joined #ruby
Jetchisel has joined #ruby
mengu has joined #ruby
sergicles has quit [Quit: sergicles]
hogeo has quit [Remote host closed the connection]
VTLob has joined #ruby
mjs2600 has quit [Remote host closed the connection]
reset has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
freezey has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 272 seconds]
mklappstuhl has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
hogeo has joined #ruby
sergicles has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
jhaals has joined #ruby
ananthakumaran has joined #ruby
mjs2600 has joined #ruby
amacgregor_ has joined #ruby
<sevenseacat> that 'go for rubyists' talk on confreaks didnt make me want to try go
<sevenseacat> it actually made go look pretty bad
end_guy has quit [Ping timeout: 240 seconds]
amacgregor__ has joined #ruby
avril14th has quit [Remote host closed the connection]
ahawkins has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
sergicles has quit [Ping timeout: 246 seconds]
mklappstuhl has quit [Ping timeout: 246 seconds]
capicue has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
xcess_denied has quit [Quit: Leaving...]
Elhu has joined #ruby
monkegjinni has quit [Remote host closed the connection]
jbpros has joined #ruby
jhaals has quit [Ping timeout: 264 seconds]
amacgregor_ has quit [Ping timeout: 245 seconds]
avril14th has joined #ruby
hogeo has quit [Remote host closed the connection]
sandeepk has quit [Quit: Leaving...]
Xeago has joined #ruby
hogeo has joined #ruby
nvrch has joined #ruby
jhaals has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
capicue has quit [Ping timeout: 240 seconds]
hogeo has quit [Remote host closed the connection]
monkegjinni has joined #ruby
hogeo has joined #ruby
jlebrech has joined #ruby
hogeo has quit [Ping timeout: 245 seconds]
<bnagy> <3 go
ananthakumaran has quit [Read error: Connection reset by peer]
<bnagy> Go for Rubyists - This Is Not Ruby
falood has quit [Remote host closed the connection]
falood has joined #ruby
<bnagy> only bad, bad things come of thinking Ruby when writing Go
<sevenseacat> 'go for rubyists' (spends 20min talking about how there are no exceptions and everyone has to check every single method call for errors)
<Lewix> How's Go
ananthakumaran has joined #ruby
<Lewix> I heard about it
dEPy has joined #ruby
AndChat| has joined #ruby
<bnagy> ruby is, obviously, much more expressive and flexible
liamkeil1 has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 245 seconds]
nari_ has quit [Ping timeout: 245 seconds]
newbiehacker has joined #ruby
<bnagy> go is a LOT faster and much more likely to be correct, assuming it compiles
roolo has joined #ruby
<Lewix> I see
<jle`> those compiled languages and their static safety
<jle`> think they are so cool.
<bnagy> it's like C with GC and some modern design
mikecmpbll has joined #ruby
<sevenseacat> that also doesnt make it sound like a good thing
<bnagy> depends what you want it for
<Lewix> C yummy
gyre007 has joined #ruby
fixl has joined #ruby
jprovazn has joined #ruby
andikr has joined #ruby
ahawkins_ has joined #ruby
ahawkins has quit [Read error: Operation timed out]
troessner has joined #ruby
schaary has quit [Quit: Textual IRC Client: www.textualapp.com]
closer009 has quit [Ping timeout: 256 seconds]
allsystemsarego has joined #ruby
closer has joined #ruby
sevenseacat has quit [Quit: Leaving.]
mrfoto has quit []
Fire-Dragon-DoL has quit [Quit: Leaving.]
hiyosi has joined #ruby
jbrechtel has joined #ruby
timonv has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
sergicles has joined #ruby
sandeepk has joined #ruby
tedstriker has joined #ruby
ananthakumaran has joined #ruby
hema has joined #ruby
sheepman has joined #ruby
<hema> hi
moneydouble has joined #ruby
bradhe has joined #ruby
monkegjinni has quit [Remote host closed the connection]
threesome has joined #ruby
<jle`> hello hema
hiyosi has quit [Ping timeout: 246 seconds]
monkegjinni has joined #ruby
olivier_bK has joined #ruby
jbrechtel has quit [Ping timeout: 272 seconds]
moneydouble1 has quit [Ping timeout: 245 seconds]
<hema> i am using rails4 and uploaded images in development it is working but in production images are not uploaded
mklappstuhl has quit [Ping timeout: 245 seconds]
tobago has joined #ruby
tobago has quit [Client Quit]
kaspergrubbe has quit [Read error: Connection reset by peer]
tobago has joined #ruby
kaspergrubbe has joined #ruby
joonty_ is now known as joonty
bradhe has quit [Ping timeout: 265 seconds]
<Lewix> hema: bundle exec rake assets:precompile
monkegjinni has quit [Read error: Operation timed out]
prahal has quit [Read error: Operation timed out]
LexicalScope has quit [Ping timeout: 265 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevinykchan has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
prahal has joined #ruby
mojjojo has joined #ruby
<hema> by using rmagick gem how do i get thumbnail
mojjojo has quit [Client Quit]
kaspergr_ has joined #ruby
thelorax123 has quit [Remote host closed the connection]
jacobw has joined #ruby
mjs2600 has quit [Remote host closed the connection]
thelorax123 has joined #ruby
rdark has joined #ruby
paolooo has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
phansch has joined #ruby
Lewix has quit [Ping timeout: 272 seconds]
coderhs has joined #ruby
gr33n7007h has joined #ruby
prahal has left #ruby [#ruby]
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
nomenkun has joined #ruby
petey has joined #ruby
JuncoJet has joined #ruby
<JuncoJet> C:/Ruby200/lib/ruby/2.0.0/tk/package.rb:86:in `rescue in require': TkPackage can
<JuncoJet> 't find package BWidget (RuntimeError)
kitak has quit [Remote host closed the connection]
<JuncoJet> somebody help 么
jkhwan has quit [Remote host closed the connection]
mjs2600 has joined #ruby
jkhwan has joined #ruby
adambeynon has joined #ruby
petey has quit [Ping timeout: 246 seconds]
Lewix_ has joined #ruby
mjs2600 has quit [Remote host closed the connection]
lsmola has joined #ruby
einarj has quit [Remote host closed the connection]
Lewix_ is now known as Lewix
Lewix has quit [Changing host]
Lewix has joined #ruby
reset has joined #ruby
raphaelivan has joined #ruby
ephemerian has joined #ruby
agent_white has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
monkegjinni has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
graydot has joined #ruby
mklappstuhl has joined #ruby
ananthakumaran has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
amacgregor has joined #ruby
amacgregor__ has quit [Ping timeout: 245 seconds]
reset has quit [Ping timeout: 246 seconds]
blaxter_ is now known as blaxter
pskosinski has quit [Quit: Til rivido Idisti!]
reset has joined #ruby
Mars` has joined #ruby
capicue has joined #ruby
ahawkins_ has quit [Quit: leaving]
jeffdb has quit [Quit: jeffdb]
mjs2600 has joined #ruby
kitak has joined #ruby
ahawkins has joined #ruby
falood has quit [Remote host closed the connection]
zipper_ has joined #ruby
phansch has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
Snaury has joined #ruby
timonv has quit [Remote host closed the connection]
capicue has quit [Ping timeout: 246 seconds]
Mars` has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
phansch has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
<shevy> JuncoJet do you have tcl and tk for windows on your machine
hogeo has joined #ruby
zipper has quit [Ping timeout: 272 seconds]
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zipper_ has quit [Remote host closed the connection]
DouweM has quit [Ping timeout: 248 seconds]
zipper has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<hema> <Lewix>bundle exec rake assets:precompile execute this in production it shows Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Raboo has joined #ruby
mikee has joined #ruby
monkegjinni has quit [Remote host closed the connection]
zeeraw has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
CripperZ is now known as N00D
xcess_denied has joined #ruby
mootpointer has joined #ruby
hogeo has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Elhu has joined #ruby
Razkin has joined #ruby
jhaals has joined #ruby
ghr has joined #ruby
funburn has joined #ruby
sayan has quit [Read error: Connection reset by peer]
rickruby_ has quit [Remote host closed the connection]
Razkin has quit [K-Lined]
jhaals has quit [Client Quit]
mklappstuhl has quit [Remote host closed the connection]
moneydouble has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
mjs2600 has quit [Remote host closed the connection]
workmad3 has joined #ruby
moneydouble has joined #ruby
bradhe has joined #ruby
Alina-malina has quit [Quit: Leaving]
Alina-malina has joined #ruby
<hema> image upload is not working in rails4 production it shows 500 internal server
nari_ has joined #ruby
tobago has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
jhaals has joined #ruby
ananthakumaran has joined #ruby
jbrechtel has joined #ruby
dano21 has joined #ruby
jhaals has quit [Client Quit]
lyanchih has quit [Read error: Operation timed out]
bradhe has quit [Ping timeout: 252 seconds]
jbrechtel has quit [Read error: No route to host]
reset has quit [Quit: Leaving...]
jbrechtel has joined #ruby
einarj has joined #ruby
mfmfmfmfmfmf has joined #ruby
nateberkopec has joined #ruby
sayan has joined #ruby
mklappstuhl has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
gr33n7007h has quit [Quit: Leaving]
ewnd9 has quit [Ping timeout: 272 seconds]
jbrechtel has quit [Ping timeout: 246 seconds]
mootpointer has quit [Quit: ENOCAFFEINE.]
mootpointer has joined #ruby
rickruby has joined #ruby
nari_ has quit [Ping timeout: 246 seconds]
dano21 has quit [Remote host closed the connection]
falood has joined #ruby
<hema> hi how to fix the issue
dano21 has joined #ruby
<hema> in rails4 production images are not uploaded
<ghr> hema tail your production.log
<ghr> you might have better luck in #rubyonrails
<Leighton> hema: if you did not get your rails site error also check stack logs like nginx and stuff
<bgy> Hi
colonolGron has joined #ruby
dano21 has quit [Remote host closed the connection]
<hema> <ghr> in tail i fot errorapp/controllers/photos_controller.rb:30:in `create'
Speed has joined #ruby
heftig has quit [Quit: Quitting]
<ghr> that's where your problem will be then :)
jhaals has joined #ruby
dano21 has joined #ruby
DouweM has joined #ruby
gr33n7007h has joined #ruby
jhaals has quit [Client Quit]
mengu has quit [Remote host closed the connection]
<hema> <ghr> in development does not have any errors
AndChat| has quit [Ping timeout: 246 seconds]
<ghr> Doesn't really matter. You do have errors in the place where it matters :) The stack trace will give you an indication of what's wrong, and where in the code it is happening
marr has joined #ruby
timonv has joined #ruby
<shevy> hema write better code mna!
<shevy> man!
agent_white has quit [Ping timeout: 272 seconds]
<hema> <shevy> clarify me i have a josn file and how to call that file from controller json file name is create.json.jbuilder
benlieb has quit [Quit: benlieb]
<shevy> how should I know - I dont use json
<hema> kk
lessless has joined #ruby
h_kon has quit [Remote host closed the connection]
matematikaadit has quit [Read error: Connection reset by peer]
<lessless> is it possible to somehow define an accumulator object in each_with_object for it to be usable in this way https://gist.github.com/dirty-hippie/7639335
<shevy> can't you do that with .inject lessless?
<shevy> >> [1,3,5,7,9,22].inject(0) {|sum, element| sum+element}
<eval-in> shevy => 47 (https://eval.in/73068)
xcess_denied has quit [Quit: Leaving...]
p4d4w4n has joined #ruby
shaunbaker has joined #ruby
camilasan has quit [Remote host closed the connection]
rjhunter has joined #ruby
shaunbak_ has joined #ruby
agent_white has joined #ruby
joshu has quit [Ping timeout: 272 seconds]
<lessless> this not exactly what I'm looking for: sum must be a hash, so that it is possible to store both Integer and Array values
<gr33n7007h> >> [1,3,5,7,9,22].inject(0,:+)
<eval-in> gr33n7007h => 47 (https://eval.in/73072)
camilasan has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
joshu has joined #ruby
<lessless> sorry, i've updated 16 line
ananthakumaran has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
rjhunter has quit [Ping timeout: 264 seconds]
closures999 has joined #ruby
tobago has joined #ruby
ua_ has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
fridim_ has joined #ruby
hamakn has quit [Remote host closed the connection]
avril14th_ has joined #ruby
hamakn has joined #ruby
avril14th_ has quit [Read error: Connection reset by peer]
reset has joined #ruby
avril14th_ has joined #ruby
avril14th has quit [Ping timeout: 245 seconds]
emocakes has quit [Quit: Leaving...]
capicue has joined #ruby
avril14th_ is now known as avril14th
diegoviola has quit [Quit: WeeChat 0.4.2]
hiyosi has joined #ruby
jhaals has joined #ruby
raphaelivan has quit [Quit: Leaving.]
hamakn has quit [Ping timeout: 246 seconds]
jhaals has quit [Client Quit]
ananthakumaran has quit [Read error: Connection reset by peer]
capicue has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
eka has joined #ruby
nari_ has joined #ruby
h_kon has joined #ruby
ua_ has joined #ruby
reset has quit [Ping timeout: 240 seconds]
ppppaul has joined #ruby
mengu has joined #ruby
<shevy> hmm is matz the best ruby-writer or are others better than matz in ruby?
gr33n7007h has quit [Ping timeout: 252 seconds]
xcess_denied has joined #ruby
Mars` has joined #ruby
jhaals has joined #ruby
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
kaspergr_ has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jhaals has quit [Client Quit]
DonRichie has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
bradhe has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Mars` has quit [Ping timeout: 240 seconds]
xk_id has quit [Quit:
JuriadoBalzac has left #ruby [#ruby]
gr33n7007h has joined #ruby
mikecmpbll has joined #ruby
xcess_denied has quit [Quit: Leaving...]
xk_id has joined #ruby
xk_id has quit [Client Quit]
phansch has quit [Ping timeout: 272 seconds]
brian___ has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
brian___ has quit [Client Quit]
jbrechtel has joined #ruby
mjs2600 has joined #ruby
zump has joined #ruby
<zump> whats the best library for protocol buffer support?
mjs2600 has quit [Remote host closed the connection]
pedda has joined #ruby
leonardoro has joined #ruby
jbrechtel has quit [Ping timeout: 252 seconds]
gstamp has joined #ruby
closures999 has quit []
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ewnd9 has joined #ruby
closures999 has joined #ruby
ananthakumaran has joined #ruby
sandeepk has quit [Quit: Leaving...]
moneydouble has quit [Quit: Leaving.]
monkegjinni has joined #ruby
mfmfmfmfmfmf has joined #ruby
mjs2600 has joined #ruby
Advocation has joined #ruby
N00D is now known as zz_N00D
ananthakumaran has quit [Read error: Connection reset by peer]
marcgg_ has joined #ruby
includex has joined #ruby
BizarreCake has joined #ruby
ananthakumaran has joined #ruby
nari_ has quit [Read error: Operation timed out]
tonni has quit [Quit: Leaving...]
marcgg has quit [Ping timeout: 272 seconds]
paolooo has quit [Quit: Page closed]
kiba has quit [Ping timeout: 246 seconds]
petey has joined #ruby
tonni has joined #ruby
mfmfmfmfmfmf has quit [Ping timeout: 272 seconds]
rjhunter has joined #ruby
kitak has quit [Remote host closed the connection]
blueOxigen has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
marr has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
petey has quit [Ping timeout: 264 seconds]
gr33n7007h has quit [Read error: No route to host]
mercwithamouth has joined #ruby
hogeo has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
graydot has quit [Quit: graydot]
schaary has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
rjhunter has quit [Ping timeout: 265 seconds]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
kizzx2 has quit [Quit: Leaving.]
xcess_denied has joined #ruby
sandeepk has joined #ruby
danshultz has joined #ruby
allanm[away] has quit [Read error: Connection reset by peer]
h_kon has quit [Remote host closed the connection]
jkbbwr has left #ruby [#ruby]
tesuji has joined #ruby
h_kon has joined #ruby
colonolGron has quit [Quit: Lost terminal]
kung has joined #ruby
tobago has quit [Ping timeout: 248 seconds]
colonolGron has joined #ruby
mfmfmfmfmfmf has joined #ruby
xk_id has joined #ruby
emocakes has joined #ruby
amoli has joined #ruby
closures999 has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
postmodern has quit [Quit: Leaving]
sayan has joined #ruby
closures999 has joined #ruby
capicue has joined #ruby
jbpros has quit [Quit: jbpros]
mfmfmfmfmfmf has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
reset has joined #ruby
PPH has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
ppppaul has quit [Quit: Leaving]
closures999 has quit [Ping timeout: 272 seconds]
capicue has quit [Ping timeout: 245 seconds]
yjmsf20_ has joined #ruby
xcess_denied has quit [Quit: Leaving...]
nateberkopec has joined #ruby
bradhe has joined #ruby
tobago has joined #ruby
cdamian has joined #ruby
kirun has joined #ruby
Leighton has quit [Quit: leaving]
reset has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
dEPy has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
dEPy has joined #ruby
lkba has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matheuscaceres has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
yjmsf20 has quit [Disconnected by services]
yjmsf20_ is now known as yjmsf20
axilla has joined #ruby
dEPy has quit [Ping timeout: 246 seconds]
heftig has joined #ruby
aagdbl has joined #ruby
wendell_ has joined #ruby
Astral_ has joined #ruby
sandeepk has quit [Quit: Leaving...]
p4d4w4n has quit [Ping timeout: 272 seconds]
nari_ has joined #ruby
Astralum has quit [Ping timeout: 246 seconds]
soba has quit [Ping timeout: 240 seconds]
xcess_denied has joined #ruby
sandeepk has joined #ruby
thelorax123 has quit [Remote host closed the connection]
xk_id has quit [Quit:
phansch has joined #ruby
Kricir has joined #ruby
realDAB has joined #ruby
relix has joined #ruby
matheuscaceres has quit [Read error: Connection reset by peer]
thelorax123 has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergr_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
Kricir has joined #ruby
schaary has quit [Quit: Textual IRC Client: www.textualapp.com]
swingha has joined #ruby
pranny1 has joined #ruby
ffranz has joined #ruby
matheuscaceres has joined #ruby
pranny has quit [Ping timeout: 252 seconds]
mfmfmfmfmfmf has joined #ruby
jbrechtel has joined #ruby
pranny1 has quit [Client Quit]
Kricir has quit [Ping timeout: 248 seconds]
drumusician has quit [Ping timeout: 240 seconds]
jbpros has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
jbrechtel has quit [Ping timeout: 246 seconds]
JohnBat26 has joined #ruby
skofo has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
danshultz has quit [Read error: Connection reset by peer]
jhaals has joined #ruby
funburn has quit [Quit: funburn]
danshultz has joined #ruby
closures999 has joined #ruby
jhaals has quit [Read error: Operation timed out]
osvico has joined #ruby
mjs2600 has quit [Remote host closed the connection]
mjs2600 has joined #ruby
tobyo has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DouweM has quit [Ping timeout: 246 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
coderhs has quit [Ping timeout: 252 seconds]
amoli has quit [Ping timeout: 272 seconds]
rickruby has quit [Ping timeout: 272 seconds]
matheuscaceres has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
jhaals has joined #ruby
nari_ has quit [Ping timeout: 246 seconds]
zump has quit [Ping timeout: 250 seconds]
Aryasam has joined #ruby
nari_ has joined #ruby
xcess_denied has quit [Quit: Leaving...]
dano21 has quit [Quit: dano21]
TMM has joined #ruby
sandeepk has quit [Quit: Leaving...]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aryasam has quit [Ping timeout: 246 seconds]
jamesaanderson has joined #ruby
rjhunter has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
phansch has quit [Remote host closed the connection]
marcgg_ has quit [Read error: Connection reset by peer]
Soda has joined #ruby
rjhunter has quit [Ping timeout: 245 seconds]
marcgg has joined #ruby
schaary has joined #ruby
larissa has joined #ruby
jbrechtel has joined #ruby
aagdbl has quit [Quit: Leaving.]
timonv has quit [Ping timeout: 246 seconds]
sandeepk has joined #ruby
sandeepk has quit [Client Quit]
marr has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
dano21 has joined #ruby
Elhu has joined #ruby
jbrechtel has quit [Ping timeout: 272 seconds]
phansch has joined #ruby
timonv has joined #ruby
heftig has quit [Quit: Quitting]
tharindu has quit [Quit: Leaving...]
bradhe has joined #ruby
Aryasam has joined #ruby
capicue has joined #ruby
<xybre> shevy: wat
tobyo has joined #ruby
ffranz has quit [Ping timeout: 265 seconds]
reset has joined #ruby
Cheos has joined #ruby
Aryasam_ has joined #ruby
RaCx has joined #ruby
Aryasam_ has quit [Read error: Connection reset by peer]
Aryasam has quit [Read error: Connection reset by peer]
mfmfmfmfmfmf has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 264 seconds]
yacks has joined #ruby
ahawkins has quit [Quit: leaving]
capicue has quit [Ping timeout: 265 seconds]
Clooth has quit [Ping timeout: 272 seconds]
ahawkins has joined #ruby
colonolGron has quit [Quit: leaving]
reset has quit [Ping timeout: 272 seconds]
ping-pong has quit [Ping timeout: 260 seconds]
<shevy> xybre I want to find out who is the best
tobyo has quit [Ping timeout: 245 seconds]
noyb has joined #ruby
decoponio has joined #ruby
Lewix has quit [Remote host closed the connection]
shaunbak_ has quit [Remote host closed the connection]
emocakes has quit [Quit: Leaving...]
shaunbaker has joined #ruby
mjs2600 has quit [Remote host closed the connection]
emocakes has joined #ruby
ffranz has joined #ruby
andikr has quit [Remote host closed the connection]
shaunbak_ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
heftig has joined #ruby
RaCx has joined #ruby
shaunbaker has quit [Ping timeout: 272 seconds]
clevermatt has quit [Ping timeout: 248 seconds]
adkron has joined #ruby
wendell_ has quit [Read error: Connection reset by peer]
emocakes is now known as fabiocakes
p4d4w4n has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
noyb has quit [Ping timeout: 272 seconds]
xk_id has joined #ruby
<dagobah> Is there a nicer way to express (prices[true] || []) | (prices[false] || []) ?
ping-pong has joined #ruby
Kricir has joined #ruby
mklappstuhl has joined #ruby
mikecmpbll has joined #ruby
Tranquillity is now known as Tranquility
noname001__ has joined #ruby
closures999 has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
realDAB has quit [Quit: realDAB]
ravster has joined #ruby
geekbri has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Cheos has quit [Read error: Connection reset by peer]
Clooth has joined #ruby
defendguin has quit [Quit: Leaving.]
vpretzel has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
<shevy> that's awful
<dagobah> I know :)
danshult_ has joined #ruby
fridim_ has quit [Ping timeout: 264 seconds]
apeiros has quit [Ping timeout: 246 seconds]
yacks has quit [Read error: Operation timed out]
<avril14th> what's the | for already?
<shevy> I guess he wants to make sure that either the value from prices[true] is used, or an empty array
danshultz has quit [Ping timeout: 272 seconds]
<shevy> I dont really know. it looks just awful and wrong without looking closer...
<hoelzro> you could probably do something like [ true, false ].map { |x| prices[x] || [] }.reduce(&:|)
<dagobah> Hmm, I'll try that.
<hoelzro> not that you *should*, but =)
<shevy> oh man
hema has quit [Quit: Page closed]
ahawkins has quit [Ping timeout: 272 seconds]
tobyo has joined #ruby
workmad3 is now known as gonemad3
ahawkins has joined #ruby
Xeago has quit [Remote host closed the connection]
<shevy> hey workmad3 why are you gone mad now
dorei has joined #ruby
<gonemad3> shevy: because I was doing silly things with firewalls (such as not opening the port I needed)
<shevy> hehe
<dorei> hello, is there a way to have some code run (in the thread being killed) when I kill a thread?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lfox has joined #ruby
adkron has quit [Ping timeout: 246 seconds]
mark_locklear has joined #ruby
<shevy> wait
<hoelzro> dorei: could you explain what you're trying to do at a higher level?
<shevy> if you kill a thread, you terminate it completely, right?
<hoelzro> that sounds fishy.
<shevy> so how could you zombie-run something that was killed already...
jkamenik has joined #ruby
<hoelzro> shevy: think atexit
<fabiocakes> got a new shampoo to use
<shevy> fabiocakes are you emocakes
<gonemad3> shevy: interrupt handlers?
braincrash has joined #ruby
<fabiocakes> <3
<shevy> gonemad3 no idea, I am just wondering how dorei wants to do this
<dorei> hoelzro: kill a thread reading from a socket and i want that thread to close the socket when i kill it
<gonemad3> dorei: how are you 'killing' it?
<dorei> @thread1.kill or something like that
jamesaanderson has joined #ruby
amoli has joined #ruby
jamesaanderson has quit [Client Quit]
adkron has joined #ruby
jamesaanderson has joined #ruby
BizarreCake has quit [Quit: Leaving]
rjhunter has joined #ruby
Monie has joined #ruby
gonemad3 is now known as workmad3
RaCx has quit [Ping timeout: 252 seconds]
RaCx has joined #ruby
adkron has quit [Ping timeout: 248 seconds]
zz_N00D is now known as CripperZ
RaCx has quit [Client Quit]
jbrechtel has joined #ruby
kilophoton has joined #ruby
jbrechtel has quit [Read error: Connection reset by peer]
n1x has quit [Ping timeout: 245 seconds]
jbrechtel has joined #ruby
Aryasam has joined #ruby
rjhunter has quit [Ping timeout: 252 seconds]
RaCx has joined #ruby
falood has quit [Remote host closed the connection]
tobyo has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
Xeago has joined #ruby
banghouse2 has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 248 seconds]
kaldrenon has joined #ruby
RaCx has quit [Client Quit]
tobago has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
cdamian has left #ruby [#ruby]
ffranz has quit [Quit: Leaving]
ffranz has joined #ruby
RaCx has joined #ruby
tobago has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stringoO has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
polaco_zZz is now known as polaco
matheuscaceres has quit [Quit: matheuscaceres]
Mattias has quit [Ping timeout: 245 seconds]
AlSquire has joined #ruby
capicue has joined #ruby
shaunbaker has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
Mattias has joined #ruby
reset has joined #ruby
jibi has joined #ruby
breakingthings has joined #ruby
mklappst_ has joined #ruby
tobago has quit [Ping timeout: 252 seconds]
krawchyk has joined #ruby
inad922 has joined #ruby
<inad922> hello
<inad922> What do I have to raise in cucumber to make a step fail?
mengu has quit [Remote host closed the connection]
<workmad3> inad922: anything you want
shaunbak_ has quit [Ping timeout: 245 seconds]
capicue has quit [Ping timeout: 246 seconds]
kilophoton has quit [Ping timeout: 272 seconds]
<inad922> workmad3: Ow ok I just have to raise soemthing
nanothief has joined #ruby
jrhe has quit [Quit: jrhe]
mklappstuhl has quit [Ping timeout: 252 seconds]
kaspergrubbe has joined #ruby
ewnd9 has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
ewnd9 has joined #ruby
reset has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
ppppaul has joined #ruby
lsmola has quit [Ping timeout: 272 seconds]
nari_ has quit [Ping timeout: 245 seconds]
ananthakumaran has quit [Quit: Leaving.]
RaCx has quit [Quit: Computer has gone to sleep.]
pixelgremlins has joined #ruby
zump has joined #ruby
jamesaanderson has quit [Client Quit]
kaspergrubbe has joined #ruby
<zump> I am receiving a byte using conn.recv(). How can I cast this as an integer? I tried Integer() but it didn't work.
avril14th has quit [Remote host closed the connection]
RaCx has joined #ruby
tobago has joined #ruby
mengu has joined #ruby
nari_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
endash has joined #ruby
Xeago has quit [Remote host closed the connection]
Kricir has joined #ruby
asobrasil has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
marr has quit [Ping timeout: 272 seconds]
Kricir_ has joined #ruby
jerius has joined #ruby
ahawkins_ has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
ahawkins has quit [Disconnected by services]
ahawkins_ is now known as ahawkins
ahawkins has left #ruby [#ruby]
tobyo has joined #ruby
enebo has joined #ruby
Speed has left #ruby ["WeeChat 0.4.2"]
tobago has quit [Ping timeout: 272 seconds]
virtualize has joined #ruby
jbrechtel has quit []
Kricir has quit [Ping timeout: 272 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tannerburson has joined #ruby
krawchyk has quit []
heath has quit [Quit: No Ping reply in 180 seconds.]
Kricir_ has quit [Ping timeout: 245 seconds]
bhalla has quit [Remote host closed the connection]
schaary has quit [Quit: Textual IRC Client: www.textualapp.com]
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
coderhs has joined #ruby
kilophoton has joined #ruby
heath has joined #ruby
jamblack has joined #ruby
closures999 has joined #ruby
fabiocakes has quit [Quit: Linkinus - http://linkinus.com]
krawchyk has joined #ruby
heftig has quit [Ping timeout: 264 seconds]
heftig has joined #ruby
p0wn3d has joined #ruby
gr33n7007h has quit [Ping timeout: 265 seconds]
PPH has joined #ruby
<shevy> coding sucks
danshult_ has quit [Read error: Connection reset by peer]
tobago has joined #ruby
danshultz has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hersha has joined #ruby
<hoelzro> zump: you can probably use String#ord
<hoelzro> but there might be a better solution ex. unpack
devdazed has quit [Quit: Bye]
matheuscaceres has joined #ruby
tobyo has quit [Read error: Operation timed out]
lsmola has joined #ruby
liamkeil1 has joined #ruby
<_br_> shevy: Why?
<shevy> _br_ bugs everywhere, sucking away time everywhere and it's just never as awesome as it were to look on paper
devdazed has joined #ruby
myappleguy has joined #ruby
Aryasam has quit [Ping timeout: 252 seconds]
<_br_> shevy: Well, maybe you need to change the way you work to e.g. TDD/BDD way
drumusician has joined #ruby
Clooth has quit [Quit: Leaving...]
Aryasam has joined #ruby
sambao21 has joined #ruby
yalue has joined #ruby
carlyle has joined #ruby
dangerousdave has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
nucatus has joined #ruby
nowthatsamatt has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
kaspergrubbe has quit [Remote host closed the connection]
pskosinski has joined #ruby
mephux has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
rjhunter has joined #ruby
kiba has joined #ruby
lyanchih has joined #ruby
heftig has quit [Quit: Quitting]
heftig has joined #ruby
mephux has joined #ruby
BigBlueBacon has joined #ruby
realDAB has joined #ruby
Rickmasta has quit [Quit: Leaving]
user258467 has joined #ruby
zerign has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
thelorax123 has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 248 seconds]
teoric has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
duggiefresh has joined #ruby
thelorax123 has joined #ruby
xcfox has joined #ruby
teoric has quit [Client Quit]
avril14th has joined #ruby
Soda has quit [Remote host closed the connection]
virtualize has quit [Ping timeout: 272 seconds]
p4d4w4n has quit [Quit: This computer has gone to sleep]
momomomomo has joined #ruby
sailias has joined #ruby
capicue has joined #ruby
antonishen has joined #ruby
clevermatt has joined #ruby
reset has joined #ruby
ringaroses has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
allanm has joined #ruby
gtsiftsis has quit [Quit: Leaving]
adkron has joined #ruby
blackmesa has joined #ruby
_maes_ has joined #ruby
ppppaul has quit [Ping timeout: 272 seconds]
capicue has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
p4d4w4n has joined #ruby
Rickmasta has joined #ruby
jrhe has joined #ruby
krawchyk has quit [Ping timeout: 245 seconds]
reset has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby
kcombs has joined #ruby
psyl0n has joined #ruby
jlast has joined #ruby
habanany has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
nucatus has quit [Remote host closed the connection]
elux has joined #ruby
nucatus has joined #ruby
rjhunter has joined #ruby
sambao21 has joined #ruby
petey has joined #ruby
Mon_Ouie has joined #ruby
dhruvasagar has joined #ruby
bean__ has joined #ruby
EugenA has joined #ruby
tobyo has joined #ruby
jkamenik has quit [Quit: Leaving.]
zkc has joined #ruby
jrhe has quit [Ping timeout: 245 seconds]
nucatus has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
hp_ has joined #ruby
<EugenA> anybody familiar with capistrano? http://pastebin.com/cREYLYan How can I create another task to deploy on the other server defined in :web, completly different one?
hp_ has quit [Remote host closed the connection]
ce_afk is now known as cescalante
tobago has quit [Ping timeout: 272 seconds]
TMM has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
freerobby has joined #ruby
JohnBat26 has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
tharindu has joined #ruby
blandflakes has joined #ruby
carlyle_ has joined #ruby
tobago has joined #ruby
banghouse2 has joined #ruby
Astral__ has joined #ruby
ahawkins has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
iamjarvo has quit [Remote host closed the connection]
shaunbaker has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
iamjarvo has joined #ruby
kevind has joined #ruby
interactionjaxsn has joined #ruby
shaunbaker has joined #ruby
BraddBitt has joined #ruby
habanany has quit [Ping timeout: 252 seconds]
BraddPitt has quit [Ping timeout: 240 seconds]
habanany has joined #ruby
Astral_ has quit [Ping timeout: 272 seconds]
banghouse2 has quit [Ping timeout: 246 seconds]
shaunbaker has quit [Read error: Operation timed out]
danshult_ has joined #ruby
ezra has joined #ruby
dano21 has left #ruby [#ruby]
iamjarvo has quit [Ping timeout: 248 seconds]
noop has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
lukec has quit [Quit: lukec]
et__ has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
ananthakumaran has joined #ruby
tobyo has quit [Read error: Operation timed out]
ananthakumaran has quit [Max SendQ exceeded]
carlyle_ has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
amritanshu_RnD has quit [Quit: Leaving]
ananthakumaran has joined #ruby
Astral__ has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 272 seconds]
<et__> good morning
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
danshultz has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
danshult_ has quit [Ping timeout: 245 seconds]
cody-- has joined #ruby
freerobby has joined #ruby
barratt has joined #ruby
h_kon has quit [Remote host closed the connection]
drag00n has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
h_kon has joined #ruby
chuk has joined #ruby
mklappst_ has quit [Remote host closed the connection]
<shevy> die
<shevy> I mean hi
<et__> :)
jrhe has joined #ruby
momomomomo has quit [Quit: momomomomo]
hogeo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
h_kon has quit [Ping timeout: 248 seconds]
Aryasam has quit [Quit: Bye]
hogeo has joined #ruby
aryaching has joined #ruby
tharindu has quit [Quit: Leaving...]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
mklappstuhl has joined #ruby
liamkeil1 has quit [Quit: WeeChat 0.4.1]
mikepack has joined #ruby
ananthakumaran has quit [Ping timeout: 272 seconds]
liamkeily has joined #ruby
rippa has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
bradhe has joined #ruby
ravster has quit [Remote host closed the connection]
cgore has joined #ruby
mojjojo has joined #ruby
sandeepk has joined #ruby
intuxicated has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
jprovazn has quit [Quit: Leaving]
weems has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
axl_ has joined #ruby
shaunbaker has joined #ruby
<tobago> since when is such possible: " define_method(Kaminari.config.page_method_name) do |num = nil|; ...." i mean the assignement in the block parameter
mmitchell has joined #ruby
<hoelzro> 1.9, I think?
<hoelzro> maybe 2.0
<tobago> but not sure? I only know that this is a syntax error in ruby 1.8.7 isn't it?
jibi has quit [Quit: .]
mojjojo has quit [Client Quit]
mojjojo has joined #ruby
<hoelzro> probably
dhruvasagar has quit [Ping timeout: 272 seconds]
TMM has joined #ruby
ahawkins has quit [Quit: leaving]
<tobago> hoelzro, where can I search for it (i don't know how to search for it/ how is this appraoch named?)?
<tobago> approach
et__ has quit [Quit: Leaving.]
tagrudev has left #ruby ["lolst"]
<hoelzro> maybe block default arguments?
<cgore> This works in 1.9.3: [1,2,3,4,5].map {|x, y=12| x+y}
<cgore> So probably 1.9
Kricir has quit [Ping timeout: 246 seconds]
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
Czupa has joined #ruby
Lewix has joined #ruby
Lewis has joined #ruby
R33C3 has joined #ruby
R33C3 has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
rfizzle has joined #ruby
xk_id has quit [Quit:
zeeraw has joined #ruby
freerobby has quit [Quit: Leaving.]
xtristan has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
wmoxam_ has joined #ruby
tesuji has quit [Ping timeout: 248 seconds]
jamesaanderson has quit [Client Quit]
zipper has quit [Ping timeout: 252 seconds]
Kneferilis has quit [Ping timeout: 264 seconds]
realDAB has quit [Quit: realDAB]
capicue has joined #ruby
zipper has joined #ruby
hiyosi has quit [Ping timeout: 246 seconds]
wmoxam has quit [Ping timeout: 252 seconds]
jrhe has quit [Ping timeout: 240 seconds]
casheew has quit [Read error: Connection reset by peer]
solidoodlesuppor has joined #ruby
wmoxam has joined #ruby
realDAB has joined #ruby
b00stfr3ak has joined #ruby
casheew has joined #ruby
nari_ has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
reset has joined #ruby
casheew has quit [Read error: Connection reset by peer]
R33C3 has joined #ruby
et__ has joined #ruby
habanany has quit [Ping timeout: 245 seconds]
mklappstuhl has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
habanany has joined #ruby
_maes_ has joined #ruby
capicue has quit [Ping timeout: 272 seconds]
orionstein is now known as orionstein_away
yfeldblum has joined #ruby
vpretzel has quit [Remote host closed the connection]
reset has quit [Ping timeout: 246 seconds]
et__ has quit [Client Quit]
vpretzel has joined #ruby
fijimunkii has joined #ruby
R33C3 has quit []
stonevil has joined #ruby
shaunbaker has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
stonevil has quit [Remote host closed the connection]
stonevil has joined #ruby
tobyo has joined #ruby
zipper has quit [Ping timeout: 246 seconds]
nucatus has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
shaunbak_ has joined #ruby
xcfox has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
benwoody has joined #ruby
evenix has joined #ruby
casheew has joined #ruby
zipper has joined #ruby
p4d4w4n has joined #ruby
leonardoro has quit [Ping timeout: 252 seconds]
zoee has quit [Quit: Leaving]
freerobby has joined #ruby
<shevy> tobago definitely works in 1.9.x I think
shaunbaker has quit [Ping timeout: 240 seconds]
<shevy> one of the cool additions
<shevy> there were also crap additions
hogeo has quit [Remote host closed the connection]
zcreative has joined #ruby
johnnyfuchs has joined #ruby
nucatus has quit [Ping timeout: 248 seconds]
fntzr has joined #ruby
Kricir has joined #ruby
mengu has quit []
Lewis has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
m8 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
graydot has joined #ruby
graydot has quit [Client Quit]
Clooth has joined #ruby
andikr has joined #ruby
jragon has joined #ruby
CaptainJet has joined #ruby
banghouse2 has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
tobyo has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
carlyle has joined #ruby
habanany has quit [Ping timeout: 245 seconds]
axl_ has quit [Quit: axl_]
BizarreCake has joined #ruby
soukihei has joined #ruby
zipper has quit [Ping timeout: 246 seconds]
habanany has joined #ruby
tharindu has joined #ruby
acrussell has joined #ruby
bubbajones has joined #ruby
jrhe has joined #ruby
ewnd9 has quit [Ping timeout: 248 seconds]
sheeny has joined #ruby
sheeny has quit [Client Quit]
iamjarvo has quit []
ldnunes has joined #ruby
iamjarvo has joined #ruby
browndawg has quit [Quit: Leaving.]
jbpros has quit [Quit: jbpros]
hiyosi has joined #ruby
robbyoconnor has joined #ruby
hashpuppy has joined #ruby
sheeny has joined #ruby
DarthGandalf has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
larissa has quit [Ping timeout: 272 seconds]
davidcollom has joined #ruby
lethjakm1 has joined #ruby
nucatus has joined #ruby
chuk has quit [Quit: Leaving]
mary5030 has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
schaary has joined #ruby
<sheeny> Hi all
cads has joined #ruby
<sheeny> https://gist.github.com/craigsheen/7643973 I have this issue with simple ruby maths
Monie has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
browndawg has joined #ruby
<sheeny> any help with how I could solve it would be great
bradhe has joined #ruby
zz_tsykoduk is now known as tsykoduk
kaspergrubbe has joined #ruby
<havenwood> sheeny: Never, ever use Floats for money. BigDecimal will work nicely or there are gems like Money.
bklane has joined #ruby
<sheeny> yeah they are bigdecimal
iamjarvo has quit [Ping timeout: 272 seconds]
<sheeny> just did that for showing purposes
yfeldblum has quit [Remote host closed the connection]
<workmad3> sheeny: 2399/3.0 == 799.6666...
pel_daniel has joined #ruby
<workmad3> sheeny: not 799
rjhunter has quit [Remote host closed the connection]
<sheeny> workmad3: but 700.666 isnt pence
<sheeny> 799.666*
RaCx has joined #ruby
<havenwood> sheeny: oh, lol - i didn't actually read your question
<havenwood> sheeny: saw float and answered :P
matheuscaceres has joined #ruby
<sheeny> workmad3: and still .. if you round to 800.. 800*3 still doesnt equal 2399
<havenwood> sheeny: That is how just how maths work.
<shevy> sheeny you do integer division here so you will get integers
<workmad3> sheeny: no, but it means that your total isn't actually correct
<shevy> >> 800*3
<eval-in> shevy => 2400 (https://eval.in/73192)
<workmad3> sheeny: as it would require an item price that was 799.66 pence
xcess_denied has joined #ruby
<shevy> >> 23.99.class
<eval-in> shevy => Float (https://eval.in/73193)
<shevy> >> 23.99 * 100.0
<eval-in> shevy => 2399.0 (https://eval.in/73194)
<workmad3> sheeny: basically, to get x*3 == 2399 (your basket total), your item price is 799.666666
<shevy> >> (23.99 * 100.0) / 3
<eval-in> shevy => 799.6666666666666 (https://eval.in/73195)
liamkeily has quit [Ping timeout: 248 seconds]
<shevy> >> ((23.99 * 100.0) / 3).round(2)
<eval-in> shevy => 799.67 (https://eval.in/73196)
dhruvasagar has joined #ruby
<shevy> >> ((23.99 * 100.0) / 3).round(1)
<eval-in> shevy => 799.7 (https://eval.in/73197)
<sheeny> workmad3: ahh yeah thats a good point..
<shevy> >> ((23.99 * 100.0) / 3).round(0)
<eval-in> shevy => 800 (https://eval.in/73198)
<shevy> there you go
<workmad3> sheeny: you then throw away 3 * 0.67p when doing /3 * 3 (due to the vagaries of integer division)
<shevy> in what country are pence used?
<havenwood> >> 799.fdiv(*3) * 3
<eval-in> havenwood => 799.0 (https://eval.in/73199)
<workmad3> sheeny: which means you lose 2p ;)
<sheeny> Britain..
bradhe has quit [Ping timeout: 272 seconds]
<sheeny> workmad3: then I blame the people giving me the price
<sheeny> workmad3: haha
jragon has quit [Changing host]
jragon has joined #ruby
<havenwood> oops, didn't mean to *3 there, same difference though
<workmad3> sheeny: yeah :)
<sheeny> workmad3: ta
kaspergrubbe has quit [Ping timeout: 272 seconds]
shredding has joined #ruby
<workmad3> sheeny: they're selling sub-penny items (and probably rounding at some point)
<workmad3> sheeny: they could also be applying a bulk-item discount
<shevy> I vote for the abolition of pence
<workmad3> sheeny: 3 for 23.99 or something :)
<sheeny> workmad3: they do all sorts of weird stuff here haha
wmoxam_ has quit [Quit: leaving]
jamblack has quit [Ping timeout: 252 seconds]
ghr has quit [Quit: Computer has gone to sleep.]
<workmad3> sheeny: still... it sounds like you need sub-pence calculations in your intermediate steps and only round at the end (this is commonly the case I believe)
<sheeny> workmad3: I believe thats what im trying to do
<lupine> as long as you pick one or the other, the inland revenue doesn't mind
<lupine> HMRC*
<lupine> .us might be different, on reflection
gr33n7007h has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
<sheeny> workmad3: thanks, gives me an idea on where to look anyway.. :)
mklappstuhl has joined #ruby
rbennacer has joined #ruby
xcess_denied has quit [Read error: Connection reset by peer]
manoj_ has joined #ruby
<rbennacer> >>Hash[ [["ob",3],["cop",45]].flatten ]
<eval-in> rbennacer => /tmp/execpad-4a29ff954efc/source-4a29ff954efc:2: warning: wrong element type String at 0 (expected array) ... (https://eval.in/73206)
sheeny has quit [Quit: Page closed]
lyanchih has quit [Ping timeout: 240 seconds]
<rbennacer> why is this not working?
<rbennacer> weird
yfeldblum has joined #ruby
<davidcollom> [["ob",3],["cop",45]].flatten
RichardBaker has joined #ruby
<davidcollom> >> [["ob",3],["cop",45]].flatten
<eval-in> davidcollom => ["ob", 3, "cop", 45] (https://eval.in/73207)
<shevy> davidcollom for the rescue
<workmad3> rbennacer: drop the .flatten
larissa has joined #ruby
<rbennacer> >>Hash[ [["ob",3],["cop",45]] ]
<eval-in> rbennacer => {"ob"=>3, "cop"=>45} (https://eval.in/73208)
<rbennacer> >> [["ob",3],["cop",45]].flatten
<eval-in> rbennacer => ["ob", 3, "cop", 45] (https://eval.in/73211)
<rbennacer> it is confusing!!
freezey has joined #ruby
tobyo has joined #ruby
hogeo has joined #ruby
<rbennacer> workmad3, why would i drop the flatten?
<inad922> If I've already made a sudo gem install mysql and I do a require 'mysql' why do I get a can't load file error?
<workmad3> rbennacer: because then it works? :P
solidoodlesuppor is now known as baordog
<rbennacer> it should work even with the flatten
<havenwood> >> Hash[["ob",3], ["cop",45]].flatten
<eval-in> havenwood => [["ob", 3], ["cop", 45]] (https://eval.in/73213)
ananthakumaran has joined #ruby
<havenwood> oh..
ananthakumaran has quit [Max SendQ exceeded]
<rbennacer> lol
<havenwood> >> Hash[Hash[["ob",3], ["cop",45]].flatten]
<eval-in> havenwood => {"ob"=>3, "cop"=>45} (https://eval.in/73214)
<havenwood> >.>
ananthakumaran has joined #ruby
<shevy> a hash inside a hash
ananthakumaran has quit [Max SendQ exceeded]
<havenwood> Coffee first... i should have learned this lesson by now. Lol.
lsmola has quit [Ping timeout: 272 seconds]
Astralum has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<realDAB> in 2.1 you can even do [["ob", 3], ["cop", 45]].to_h
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<havenwood> realDAB: That is the best answer! :)
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
sepp2k has quit [Quit: Konversation terminated!]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<rbennacer> :)
hogeo has quit [Ping timeout: 245 seconds]
tobyo has quit [Read error: Operation timed out]
cescalante is now known as ce_afk
iamjarvo has joined #ruby
<shevy> is this the future?
Lewix has joined #ruby
Lewis has joined #ruby
<shevy> NoMethodError: undefined method `to_h' for [["ob", 3], ["cop", 45]]:Array
<havenwood> >> Hash[[1, 2], [3, 4].flatten]
<eval-in> havenwood => {[1, 2]=>[3, 4]} (https://eval.in/73215)
<realDAB> shevy: recent 2.1's, i should say :-)
<havenwood> okay, i give up
<havenwood> coffee.
iamjarvo has quit [Client Quit]
<realDAB> >> [["ob", 3], ["cop", 45]].to_h
<eval-in> realDAB => undefined method `to_h' for [["ob", 3], ["cop", 45]]:Array (NoMethodError) ... (https://eval.in/73216)
<realDAB> => {"ob"=>3, "cop"=>45}
<realDAB> whatever
<shevy> lol
virtualize has joined #ruby
<havenwood> 21>> RUBY_VERSION
<shevy> you fake results!
macmartine has joined #ruby
<havenwood> yeah, no 2.1 eval in available?
<realDAB> no, i just confused the eval thingy
<shevy> >> RUBY_VERSION
<eval-in> shevy => "2.0.0" (https://eval.in/73217)
Spleeze has quit [Quit: QUIT]
<realDAB> $ ruby -ve 'p [[1,2],[3,4]].to_h'
<realDAB> ruby 2.1.0dev (2013-11-22 trunk 43803) [x86_64-darwin12.0]
<realDAB> {1=>2, 3=>4}
iamjarvo has joined #ruby
psyl0n has quit [Remote host closed the connection]
mark_locklear has quit [Quit: Leaving]
<havenwood> shevy: It isn't included in ruby-2.1.0preview1 but is in ruby-2.1.0preview2
<realDAB> it's a little weird because it ignores anything in the array that isn't a 2-element subarray
<realDAB> i'm not sure how i feel about that
<Morrolan> Would you prefer an exception? :)
dhruvasagar has quit [Read error: Operation timed out]
danman has joined #ruby
<realDAB> Morrolan: not sure
<realDAB> Morrolan: kind of
<havenwood> some people wanted behavior of Hash[] with an exception for non-tuple pairs
Spleeze has joined #ruby
* realDAB has to put to_h in his book
<realDAB> trying to catch up with ruby 2.1 for the second edition :-)
yfeldblum has quit [Remote host closed the connection]
<havenwood> nice
<Morrolan> >> Hash[[[:a, 1], [:b]]]
<eval-in> Morrolan => {:a=>1, :b=>nil} (https://eval.in/73219)
<Morrolan> >> Hash[[[:a, 1], [:b, 2, 3]]]
<eval-in> Morrolan => invalid number of elements (3 for 1..2) (ArgumentError) ... (https://eval.in/73220)
gr33n7007h has quit [Read error: No route to host]
<Morrolan> Ah, assumes nil, and raises if more than two elements.
<realDAB> Morrolan: to_h just ignores the second array
<Morrolan> Oh, I see.
davidcollom has left #ruby ["Leaving..."]
<Morrolan> Yea, that's a tad inconsistent.
tannerburson is now known as tannerburson|awa
<realDAB> $ ruby -e 'p [[1,2],[3,4,5]].to_h'
<realDAB> {1=>2}
iamjarvo has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 248 seconds]
<realDAB> i feel like if i do that, i've done something wrong and would probably want to be alerted
iamjarvo has joined #ruby
<Morrolan> I think I'd prefer it to behave like Hash[], too. Then again, #to_i and Integer() behave differently too.
<realDAB> true
A124 has quit [Remote host closed the connection]
danshultz has joined #ruby
A124 has joined #ruby
mikesplain has joined #ruby
nari_ has joined #ruby
carlyle has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
lukec has joined #ruby
inad922 has quit [Ping timeout: 260 seconds]
et__ has joined #ruby
wallerdev has joined #ruby
ambushsabre has joined #ruby
<havenwood> seems a common pattern in Ruby is two ways to do a thing, and those two ways vary from each other by two ways each.
yfeldblu_ has joined #ruby
Reach has quit [Remote host closed the connection]
<havenwood> like proc/lambda varying by arity/locality-of-return
rbennacer has left #ruby ["Leaving"]
reset has joined #ruby
ananthakumaran has joined #ruby
burlyscudd1 has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has quit [Read error: Connection reset by peer]
tylersmith has quit [Remote host closed the connection]
dtcrshr has joined #ruby
<havenwood> >> Hash[*[["ob",3],["cop",45]].flatten]
<eval-in> havenwood => {"ob"=>3, "cop"=>45} (https://eval.in/73226)
<havenwood> There, had my coffee. Like i don't even have to drink any, just taste it and my brain starts working.
jamblack has joined #ruby
avril14th has quit [Remote host closed the connection]
inad922 has joined #ruby
banzounet has quit [Quit: Lost terminal]
iajrz_ has joined #ruby
hogeo has joined #ruby
jrhe has quit [Ping timeout: 245 seconds]
reset has quit [Ping timeout: 245 seconds]
tharindu_ has joined #ruby
<ambushsabre> hey, does anyone have any idea why sinatra / ruby would throw "TypeError: no implicit conversion of Array into String" on this line, even though the update runs perfectly (this is the mongodb driver)
<ambushsabre> pages.update({"name" => "#{params[:name]}"}, {"$set" => {"markdown" => markdown}})
<ambushsabre> like the update is going through correctly, but it's still throwing that error and giving the client and error 500 for some reason
nari_ has quit [Ping timeout: 272 seconds]
benwoody has quit [Quit: benwoody]
clevermatt has quit [Remote host closed the connection]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
freezey has quit [Remote host closed the connection]
cameronbarton has joined #ruby
cameronbarton has left #ruby [#ruby]
tharindu has quit [Ping timeout: 272 seconds]
cameronbarton has joined #ruby
schaary has quit [Quit: I sleep ZZZzzz…]
Solnse has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
benzrf has joined #ruby
<benzrf> hello
<benzrf> i just looked at padrino
drag00n has quit [Ping timeout: 272 seconds]
jrhe has joined #ruby
jeffdb has joined #ruby
<benzrf> the project generator creates a huge dir tree
<benzrf> is it possible to make a 1-file app in it?
jamblack has quit [Ping timeout: 246 seconds]
<benzrf> does hello world require all these config files?
benwoody has joined #ruby
<benzrf> i like flask because the only dirs it uses by name by default are 'templates' and 'static', which you don't even need to make
<benzrf> is all this cruft required to use padrino?
TMM has quit [Quit: Ex-Chat]
jamblack has joined #ruby
duggiefresh has quit [Remote host closed the connection]
johnnyfuchs has left #ruby [#ruby]
tharindu_ has quit [Ping timeout: 264 seconds]
freezey has joined #ruby
capicue has joined #ruby
<dorei> Should I give "guard" some time to learn it when I can run my testsuite in an endless bash loop ?
lsmola has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<Morrolan> benzrf: Padrino is built on top of Sinatra. If you want to start with a minimalistic example, look at Sinatra first.
iliketur_ has joined #ruby
ezra has quit [Ping timeout: 245 seconds]
michele has joined #ruby
<michele> hi
<michele> how do I extract an element from a Set ?
Kricir has joined #ruby
ananthakumaran has quit [Ping timeout: 246 seconds]
jrhe has quit [Ping timeout: 246 seconds]
<michele> I can't use delete because it removes the element from the set
jkhwan has joined #ruby
Voodoofish430 has joined #ruby
<Morrolan> How would you want to extract it? Sets aren't ordered, and don't have any key->value associations either. Do you just want to check whether it's include in the set?
ezra has joined #ruby
freerobby has quit [Quit: Leaving.]
RaCx has joined #ruby
ezra is now known as Guest1131
freerobby has joined #ruby
Snaury has quit [Quit: Leaving.]
et__ has quit [Quit: Leaving.]
Astralum has quit [Read error: Connection reset by peer]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
Snaury has joined #ruby
Astralum has joined #ruby
clevermatt has joined #ruby
et__ has joined #ruby
dagobah has quit [Remote host closed the connection]
zeeraw has joined #ruby
mary5030 has quit [Remote host closed the connection]
IceDragon has joined #ruby
bigoldrock has joined #ruby
mary5030 has joined #ruby
freerobby has quit [Read error: Operation timed out]
zkc has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
CaptainJet has quit []
freerobby has joined #ruby
elcontrastador has joined #ruby
CaptainJet has joined #ruby
sandeepk has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
tsykoduk is now known as zz_tsykoduk
sambao21 has joined #ruby
b00stfr3ak has quit [Ping timeout: 245 seconds]
paul_k has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
<benzrf> Morrolan: sinatra looks a little *too* minimal for me
<benzrf> i'd like some builtin templating tbh
<ambushsabre> sinatra is the best
<benzrf> does sinatra have builtin static routing?
<ambushsabre> you can use erb right out of the box with it
<benzrf> oh hm
IceDragon has quit [Read error: Operation timed out]
<ambushsabre> yeah I think so
<benzrf> haml looks interesting
<benzrf> ok maybe ill just use sinatra
<benzrf> :]
IceDragon has joined #ruby
<ambushsabre> if you really need something complex just go for rails, there's huge amounts of support for it so you'll never really get stuck
<benzrf> ew
<benzrf> I dont like megastuff
<ambushsabre> personally I like sinatra though
aley has joined #ruby
<benzrf> i dont mind things that can scale up, but if a hello world project requires more than 1 file im out
hiyosi has joined #ruby
<michele> Morrolan: found it. converted to an array with to_a and then accessed by []
roolo has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 272 seconds]
<benzrf> basically i want something where the complexity of the project matches the complexity of the files & code & so on
<benzrf> where you can learn exactly as much as you need
<benzrf> if i don't want blueprints in flask, ignore emdub
<benzrf> *em
schaary has joined #ruby
<benzrf> you don't need to know about the request object if youre not using it
<benzrf> it doesn't force me to configure blueprints to make a project that doesnt need them
robbyoconnor has quit [Quit: Konversation terminated!]
<benzrf> basically if the framework comes with a nearly mandatory project gnerator, it's too much for me
olivier_bK has quit [Quit: Quitte]
kevind_ has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
yacks has joined #ruby
f0ster has joined #ruby
et__ has quit [Quit: Leaving.]
RichardBaker has quit [Quit: RichardBaker]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michele has left #ruby ["Leaving..."]
maletor has joined #ruby
benwoody has quit [Quit: benwoody]
et__ has joined #ruby
yacks has quit [Max SendQ exceeded]
jbpros has joined #ruby
yacks has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
hiyosi has quit [Ping timeout: 245 seconds]
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
bradhe has joined #ruby
shanlar has quit [Quit: Be back later]
aganov has quit [Remote host closed the connection]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Tuxist has joined #ruby
zz_tsykoduk is now known as tsykoduk
yjmsf20 has quit [Quit: leaving]
RaCx has quit [Quit: Computer has gone to sleep.]
RichardBaker has joined #ruby
alup has quit [Quit: Leaving]
awestroke has joined #ruby
et__ has quit [Client Quit]
rjhunter has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
<benzrf> does ruby generate any junk files like python?
<benzrf> i.e. .pyc/__pycache__
b00stfr3ak has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<Morrolan> Depends on the implementation.
<havenwood> benzrf: Padrino is a framework on top of Sinatra, if you're looking for Sinatra+.
<benzrf> havenwood: i looked at sinatra again & it looks like what i want after all
<benzrf> =]
timonv has quit [Remote host closed the connection]
<havenwood> benzrf: Other options for lightweight Rack DSLs are Scortched or Camping, but Sinatra is most popular.
<benzrf> what does *.gem do?
<Morrolan> Packaged library / application.
zeeraw has joined #ruby
jeffdb has quit [Quit: jeffdb]
iajrz_ has quit [Remote host closed the connection]
<benzrf> should i .gitignore it?
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> benzrf: When you `gem build example.gemspec` a gem is built called `example-0.0.0-gem`.
<Morrolan> Like Python's eggs, I believe.
macmartine has quit []
<benzrf> [im trying to write a simple first web app in ruby]
<benzrf> ah, ok
<havenwood> benzrf: yes, ignore
<benzrf> im going to be using heroku for hosting; it recommends using bundler, what will i want to gitignore?
<havenwood> benzrf: *.gem in .gitignore is pretty standard
rjhunter has quit [Ping timeout: 246 seconds]
<Morrolan> For an application, nothing bundler-specific.
<benzrf> alright
enebo has quit [Quit: enebo]
<Morrolan> Put Gemfile & Gemfile.lock into VCS.
<benzrf> Morrolan: what does that include?
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
paul_k has quit []
<havenwood> Morrolan: well, no Gemfile.lock for Gems, but yeah for Apps.
<Morrolan> Gemfile contains your project's dependencies. Gemfile.lock contains the *exact* versions installed / used by bundler.
<Morrolan> havenwood: Hence, the "for an application". :P
jacobsmith has joined #ruby
iamjarvo has quit [Remote host closed the connection]
<havenwood> Morrolan: Oh, i read the second one on its own.
<havenwood> yes, then i totally agree :)
iamjarvo has joined #ruby
iliketur_ has joined #ruby
<havenwood> benzrf: You're making an app or a gem?
realDAB has quit [Quit: realDAB]
includex has quit [Quit: Textual IRC Client: www.textualapp.com]
shanlar has joined #ruby
shanlar has quit [Client Quit]
ssvo has joined #ruby
shanlar has joined #ruby
jkhwan has quit [Remote host closed the connection]
elcontrastador has joined #ruby
borrach has joined #ruby
jkhwan has joined #ruby
<borrach> Hi, I'm trying to print multiple lines from an IO object using gets. The docs say changing the separator parameter to nil will read the entire contents but I get errors when doing this. Does anyone know how to do this correctly?
PPH has quit [Ping timeout: 246 seconds]
<rfizzle> Anyone know how to pull the final data after RestClient converts a hash into a Multipart before it posts so I can run HMAC on it?
paul_k has joined #ruby
capicue has quit [Quit: Leaving...]
iamjarvo has quit [Ping timeout: 245 seconds]
benzrf has quit [Read error: Connection reset by peer]
phansch has quit [Quit: Leaving]
jkhwan has quit [Read error: Connection reset by peer]
iliketur_ has quit [Ping timeout: 245 seconds]
jkhwan_ has joined #ruby
capicue has joined #ruby
snkcld has joined #ruby
<AntelopeSalad> workmad3: my application.js has no reference to jquery now but it's still being included, hmm?
larissa has quit [Quit: Leaving]
Guest1131 has quit [Read error: Connection reset by peer]
Clooth has quit [Quit: Leaving...]
et__ has joined #ruby
cads has quit [Ping timeout: 246 seconds]
Kricir has quit [Ping timeout: 265 seconds]
benwoody has joined #ruby
phansch has joined #ruby
einarj has quit [Remote host closed the connection]
jibi has joined #ruby
stonevil has quit [Remote host closed the connection]
pskosinski has quit [Quit: Til rivido Idisti!]
stonevil has joined #ruby
sandeepk has quit [Ping timeout: 272 seconds]
v0n has quit [Quit: WeeChat 0.4.2]
_JamieD_ has joined #ruby
v0n has joined #ruby
<shevy> borrach can you be more specific? what is the precise error you get, and do you have code for others to reproduce the problem in the smallest way?
bradhe has quit [Remote host closed the connection]
EugenA has quit [Quit: Konversation terminated!]
smathieu has joined #ruby
ephemerian has quit [Quit: Leaving.]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
tobyo has joined #ruby
ambushsabre has joined #ruby
stonevil has quit [Ping timeout: 246 seconds]
noop has joined #ruby
endash_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nvrch has quit [Quit: nvrch]
<havenwood> shevy: g'morn
<shevy> hey
<shevy> it's evening here!
<havenwood> well, i do declare! it is morning here!
mojjojo has quit [Quit: mojjojo]
<havenwood> this globe we live on....
jbpros has quit [Quit: jbpros]
<shevy> do you guys love or hate UPCASED directory names?
<brandonblack> ambushsabre: are you using the mongo gem or something different (Moped/Mongoid)?
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lessless has quit [Remote host closed the connection]
<havenwood> shevy: HATE
<ambushsabre> the mongo gem
<shevy> hmm
intuxicated has quit [Read error: Connection reset by peer]
<shevy> linux has stuff like /home ... mac osx has /Users right? so I am confused...
jacobsmith has quit [Ping timeout: 264 seconds]
et__ has quit [Quit: Leaving.]
<shevy> havenwood I just tried to cd to my sinatra dir
<brandonblack> ambushsabre: Hmm. I actually don't think that error is from our gem. Can you shoot me a gist with a full example of what's going on around that line of code?
et__ has joined #ruby
<shevy> so I went to my collection of ruby things, in one dir... typed "cd sinatra"... it did not work... because the dir is called SINATRA, which prompted me to ask that question just now...
<brandonblack> also, what happens if you don't interpolate params[:name] (ex. { "name" => params[:name] })?
troessner has quit [Quit: Leaving]
<ambushsabre> yeah, I can do that. btw I made a slight update to the intro tutorial the other day to answer some questions I had and I saw other people had with the gem, did you catch that?
phansch has quit [Remote host closed the connection]
mklappstuhl has quit [Read error: Connection reset by peer]
timonv has joined #ruby
<brandonblack> ambushsabre: I don't think I saw it, but perhaps one of my team mates did.
reset has joined #ruby
<ambushsabre> well I didn't make a pull request because you cant' for the wiki, and you have issues turned off, and your github email was bouncing
ukd1 has joined #ruby
<ambushsabre> hold on
tylersmith has joined #ruby
<brandonblack> ambushsabre: we use jira.mongodb.org for everything. we don't use gh issues.
<brandonblack> you can report it there
JuncoJet_ has joined #ruby
JuncoJet has quit [Read error: Connection reset by peer]
<brandonblack> ambushsabre: feel free to send me that as well though with you gist
jeffdb has joined #ruby
<ambushsabre> yeah will do, will you be around in about a half hour
tylersmith has quit [Remote host closed the connection]
<brandonblack> ambushsabre: yeah, no rush. just saw your q and wanted to help. hit me up when you're ready
lukec has quit [Quit: lukec]
bean__ has joined #ruby
duggiefresh has joined #ruby
barratt has quit [Ping timeout: 264 seconds]
<ambushsabre> thanks, I just need to eat lunch hah, I wanted to take a break anyways since it was frustrating
<ambushsabre> I'll /msg you in a bit
burlyscudd has joined #ruby
bradhe has joined #ruby
<brandonblack> sounds good
burlyscudd1 has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
Dwarf_ has joined #ruby
hogeo has joined #ruby
saarinen has joined #ruby
shredding has quit [Quit: shredding]
iliketur_ has joined #ruby
et__ has quit [Quit: Leaving.]
reset has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
obs has quit [Remote host closed the connection]
cameronbarton has quit [Quit: cameronbarton]
browndawg has left #ruby [#ruby]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
freerobby has quit [Quit: Leaving.]
iliketur_ has quit [Client Quit]
borrach has quit [Ping timeout: 272 seconds]
hogeo has quit [Ping timeout: 245 seconds]
<shevy> there it goes... SINATRA/ is now sinatra/ ... wheee
zeropx has quit [Ping timeout: 272 seconds]
acrussell has left #ruby [#ruby]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vpretzel_ has joined #ruby
Nenor has joined #ruby
<TorpedoSkyline> hey guys, I'm using Roo to convert Excel files to CSV files (Roo::Excelx.new("/file/name").to_csv) and it takes a good second or two on big files. Is this going to be blocking other requests made to the API during those seconds, and if so, how do I get around that?
smathieu has quit [Remote host closed the connection]
<shevy> dunno... perhaps you can work via Threads
<TorpedoSkyline> shevy threads or fibers?
enebo has joined #ruby
Nenor has left #ruby [#ruby]
Kricir has joined #ruby
<shevy> no idea about fibers, have not yet been able to use them successfully :-)
DanBoy has quit [Remote host closed the connection]
blackmesa has quit [Write error: Broken pipe]
<TorpedoSkyline> and even then, will the program continue execution and respond before the conversion is ready shevy?
freezey has quit [Remote host closed the connection]
realDAB has joined #ruby
<shevy> I would think so, you would just delegate the tasks to separate threads, and let them continue their work, via #join
araujo_ has joined #ruby
<Morrolan> Is IO, or CPU, your limit?
<shevy> the only thing I did with threads was downloading webpages, and background-jobbing in a ruby-shell
araujo has quit [Read error: Connection reset by peer]
<TorpedoSkyline> Morrolan I'm not sure, but my guess is CPU on a production server.
zeropx has joined #ruby
<TorpedoSkyline> yeah, CPU
vpretzel has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
endash_ has quit [Quit: endash_]
shaunbak_ has quit [Remote host closed the connection]
<inad922> Is there a way to use Caoybara with a certificate on an https connection?
carlyle has joined #ruby
shaunbaker has joined #ruby
iamjarvo has joined #ruby
<TorpedoSkyline> ok thanks guys, I'll see what I can do with threads.
<Morrolan> TorpedoSkyline: There's various gems which allow to background work-intensive jobs. One of them might be a good fit.
<Morrolan> I have, however, not had the chance to use any of those, so far.
<TorpedoSkyline> Morrolan any names off the top of your head? if not, I'll just use the almighty google ;P
<Morrolan> Google's probably the best way to go in this case. :)
<Morrolan> Or the Ruby toolbox.
freezey has joined #ruby
<terrellt> TorpedoSkyline: So threading is only non-blocking (except if it's IO-based) on JRuby. If you want a worker, check out Sidekiq or Resque.
Kricir has quit [Ping timeout: 272 seconds]
evenix has quit []
<inad922> Is there a way to use a certificate with a connection over https with capybara?
maletor has quit [Quit: Computer has gone to sleep.]
<TorpedoSkyline> terrellt ah ok, awesome. Thanks for the heads up and I'll check into these
cody-- has quit [Quit: derp]
manoj_ has quit [Quit: Linkinus - http://linkinus.com]
cody-- has joined #ruby
shaunbaker has quit [Ping timeout: 264 seconds]
rjhunter has joined #ruby
xk_id has joined #ruby
jamblack has quit [Quit: jamblack]
Jabberwock has joined #ruby
cameronbarton has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
<Jabberwock> Could someone that is familiar with OptionParser help me? I am not exactly sure to how output the options if they are not supplied.
<Jabberwock> The documentation is not obvious.
lukec has joined #ruby
andikr has quit [Remote host closed the connection]
<Jabberwock> Output the help/option list that it is supposed to generate, that is.
maletor has joined #ruby
Xeago has joined #ruby
heidi has joined #ruby
<Jabberwock> I know i can do ./script -h
<Jabberwock> Though I want that to output if mandatory options are not supplied
hiyosi has joined #ruby
inad922 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
rjhunter has quit [Ping timeout: 245 seconds]
Monie has joined #ruby
b00stfr3ak has quit [Ping timeout: 264 seconds]
petey has quit [Remote host closed the connection]
zcreative has joined #ruby
petey has joined #ruby
stonevil has joined #ruby
araujo_ has quit [Quit: Leaving]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
workmad3 has quit [Ping timeout: 272 seconds]
araujo has joined #ruby
hiyosi has quit [Ping timeout: 248 seconds]
fntzr has quit [Quit: Leaving]
DrShoggoth has joined #ruby
petey has quit [Ping timeout: 252 seconds]
rbwsam has joined #ruby
jbpros has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
vpretzel_ is now known as vpretzel
camilasan has quit []
zeeraw has joined #ruby
yfeldblum has joined #ruby
Clooth has joined #ruby
et__ has joined #ruby
et__ has quit [Client Quit]
iliketur_ has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
Dwarf_ has quit [Ping timeout: 246 seconds]
dallasm_ has joined #ruby
zeeraw has quit [Client Quit]
elcontrastador has quit [Quit: Textual IRC Client: www.textualapp.com]
ghr has joined #ruby
timonv has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
freerobby has joined #ruby
phil_b has joined #ruby
reset has joined #ruby
rjhunter has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
jkhwan_ has quit [Remote host closed the connection]
whunt has joined #ruby
realDAB has joined #ruby
bricker has joined #ruby
hiyosi has joined #ruby
jkhwan has joined #ruby
drumusician has joined #ruby
jamblack has joined #ruby
monkegjinni has joined #ruby
rjhunter has quit [Ping timeout: 265 seconds]
rfizzle has left #ruby [#ruby]
jkhwan_ has joined #ruby
mengu has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
mojjojo has joined #ruby
hashpuppy has quit [Ping timeout: 272 seconds]
jrhorn424 is now known as zz_jrhorn424
ssvo_ has joined #ruby
ArchBeOS-work has quit [Quit: Leaving]
justinxreese has joined #ruby
blackmes1 has joined #ruby
krawchyk has joined #ruby
Xeago has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 265 seconds]
pkrnj has joined #ruby
gasbakid has joined #ruby
petey has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
PPH has joined #ruby
eka has quit [Ping timeout: 272 seconds]
pranny has joined #ruby
jamblack has quit [Quit: jamblack]
TaxmanBD has joined #ruby
A124 has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
braincrash has quit [Ping timeout: 246 seconds]
yxhuvud has quit [Remote host closed the connection]
eka has joined #ruby
s2013 has joined #ruby
jbpros has quit [Quit: jbpros]
athst has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spider-mario has joined #ruby
A124 has joined #ruby
mengu has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
einarj has joined #ruby
dangerousdave has joined #ruby
braincrash has joined #ruby
yxhuvud has joined #ruby
mojjojo has joined #ruby
ValicekB has quit [Ping timeout: 272 seconds]
ExCa|iBuR has joined #ruby
jrhe has joined #ruby
wedgeV has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
pranny has quit [Quit: Leaving.]
mojjojo has quit [Client Quit]
einarj has quit [Ping timeout: 265 seconds]
hogeo has joined #ruby
Solnse has quit [Ping timeout: 252 seconds]
phil_b has quit [Read error: Operation timed out]
jso has quit [Read error: Operation timed out]
Voodoofish430 has quit [Ping timeout: 264 seconds]
jso has joined #ruby
kaspergrubbe has joined #ruby
tobago has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
banister has joined #ruby
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
closures999 has quit []
ValicekB has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
Kricir has joined #ruby
postmodern has joined #ruby
smathieu has joined #ruby
mark_locklear has joined #ruby
hersha has quit [Quit: hersha]
nobitanobi has joined #ruby
mikemac has quit [Quit: Konversation terminated!]
crazymykl has joined #ruby
wedgeV has quit [Quit: wedgeV]
BigBlueBacon has quit [Ping timeout: 248 seconds]
<shevy> Jabberwock everyone hates OptionParser
<shevy> whoever came up with the idea to enable end.parse!(ARGV) should be shot point blank
mercwithamouth has joined #ruby
mando has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
<shevy> perhaps you can add options
<shevy> option.on_tail("-h", "--help", "This help here." ) { display_help }
jrhe has quit [Quit: jrhe]
jamblack has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jrhe has joined #ruby
RaCx_ has joined #ruby
Elhu has joined #ruby
realDAB has quit [Quit: realDAB]
virtualize has joined #ruby
RaCx has quit [Ping timeout: 272 seconds]
RaCx_ is now known as RaCx
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
realDAB has joined #ruby
nimtz has joined #ruby
jamblack has quit [Ping timeout: 272 seconds]
Davey has joined #ruby
apeiros has joined #ruby
kreisys has joined #ruby
Czupa has quit [Quit: Wychodzi]
kreisys has quit [Read error: Connection reset by peer]
matheuscaceres has quit [Quit: matheuscaceres]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
virtualize has quit [Quit: Leaving...]
jamblack has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
virtualize has joined #ruby
realDAB has quit [Quit: realDAB]
hersha has joined #ruby
smathieu has joined #ruby
bluOxigen has joined #ruby
realDAB has joined #ruby
timonv has joined #ruby
Dwarf has quit [Ping timeout: 240 seconds]
lfox has quit [Quit: ZZZzzz…]
DouweM has joined #ruby
mojjojo has quit [Quit: mojjojo]
zipper has joined #ruby
Voodoofish430 has joined #ruby
Dwarf has joined #ruby
cgore has quit [Remote host closed the connection]
charliesome has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
rjhunter has joined #ruby
tjad has joined #ruby
catphish has joined #ruby
RaCx has joined #ruby
<catphish> how do you test whether a class is a descendent of another class?
nucatus_ has joined #ruby
<snkcld> catphish: i think instance_of
nucatus has quit [Ping timeout: 272 seconds]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
<yxhuvud> Class1 < Class2
skofo has quit [Ping timeout: 252 seconds]
<catphish> yxhuvud: ah yes, thanks :)
rdark has quit [Quit: leaving]
<nimtz> how do you glob on the current working directory
<nimtz> Dir.pwd.glob doesnt work
rjhunter has quit [Ping timeout: 245 seconds]
<havenwood> nimtz: Dir.glob Dir.pwd
<gr33n7007h> nimtz, Dir.glob(Dir.pwd)
<nimtz> so can i do Dir.glob(Dir.pwd"*.txt")
mansi has joined #ruby
<nimtz> or maybe Dir.glob(Dir.pwd)("*.txt")
<havenwood> nimtz: Dir[File.join(Dir.pwd, '*.txt')]
lfox has joined #ruby
dangerousdave has joined #ruby
<nimtz> thanks
<havenwood> nimtz: or depending on the output you want: Dir[Dir.pwd, '*.txt']
zipper has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
<nimtz> the first method works
<apeiros> nimtz: . is the pwd
<apeiros> and glob is relative to pwd anyway
<havenwood> apeiros: good point
<havenwood> nimtz: Dir['*.txt']
<apeiros> so, Dir.glob('*.txt') will glob in the working dir
<nimtz> so i could just do: Dir.glob('.\*.txt') ?
Monie has joined #ruby
<apeiros> \?
<nimtz> hmmm
<apeiros> oh, windows :(
<nimtz> yeah
<nimtz> windows
<momomomomo> loooooool
<apeiros> / works on windows too
<havenwood> File::SEPARATOR
<apeiros> havenwood: is / on windows
<havenwood> apeiros: when is it ever not '/'?
<apeiros> havenwood: classic mac os'
<apeiros> ?
<apeiros> no idea
<havenwood> dunno
<apeiros> but on windows, you get File::ALT_SEPARATOR (iirc)
<apeiros> windows is the last holdout for insane separator values
<nobitanobi> hehe
<apeiros> like \ for dirs and \r\n for newlines
noop has quit [Ping timeout: 272 seconds]
JuncoJet__ has joined #ruby
JuncoJet_ has quit [Read error: Connection reset by peer]
zipper has quit [Ping timeout: 265 seconds]
<ukd1> I'm trying 2.1 preview2 and getting "ArgumentError - not delegated" errors, which I wasn't in preview1. Any ideas?
<havenwood> ukd1: what are you running that is throwing those errors?
ExCa|iBuR has quit [Quit: I was using serenepIRCh http://www.serenity-irc.net/ :-]
<ukd1> havenwood, it's crashing with a pagination gem...well with what I'm passing it
iamjarvo_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
aspires has joined #ruby
iamjarvo_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
iamjarvo_ has quit [Read error: Connection reset by peer]
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
Xeago has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
vpretzel_ has joined #ruby
vpretzel has quit [Disconnected by services]
vpretzel_ is now known as vpretzel
Solnse has joined #ruby
yfeldblu_ has joined #ruby
thelorax123 has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RaCx has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
hogeo has joined #ruby
Xeago has quit [Read error: Operation timed out]
RichardBaker has quit [Quit: RichardBaker]
Spami has joined #ruby
thelorax123 has joined #ruby
<ukd1> havenwood, seems like it's specifically this - https://github.com/mislav/will_paginate/issues/344
yfeldblum has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Read error: Connection reset by peer]
<havenwood> ukd1: how odd, i've got no clue as to the culprit
iamjarvo has joined #ruby
<ukd1> ya me too; not even sure what the error means
<ukd1> oh; unless it's using the built in delegate stuff...hmm.
stonevil has quit [Remote host closed the connection]
alvaro_o has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
stonevil has joined #ruby
ephemerian has joined #ruby
charliesome has joined #ruby
hogeo has quit [Ping timeout: 264 seconds]
randomnick_ has joined #ruby
tommyvyo has joined #ruby
tommyvyo has joined #ruby
mando has quit [Remote host closed the connection]
jbpros has joined #ruby
ssvo_ has quit [Ping timeout: 240 seconds]
ssvo has joined #ruby
mando has joined #ruby
Asher has quit [Remote host closed the connection]
bean__ has joined #ruby
Asher has joined #ruby
stonevil has quit [Ping timeout: 265 seconds]
aspires has quit []
decoponio has quit [Quit: Leaving...]
iamjarvo_ has joined #ruby
popl has quit [Ping timeout: 272 seconds]
michael_mbp is now known as zz_michael_mbp
Elhu has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blaskovicz has joined #ruby
zz_michael_mbp is now known as michael_mbp
<blaskovicz> does destroying an object that has a has_and_belongs_to_many relationship fire any callbacks?
schaary has quit [Quit: Textual IRC Client: www.textualapp.com]
TaxmanBD has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Ping timeout: 272 seconds]
havenwood has quit []
tommyvyo has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
lkba has joined #ruby
Lewis has quit []
p0wn3d has quit [Quit: ChatZilla 0.9.90.1 [Firefox 17.0.8/20130811004308]]
smathieu has quit [Remote host closed the connection]
tannerburson|awa has quit [Read error: Connection reset by peer]
RaCx has quit [Quit: Computer has gone to sleep.]
tvw has quit []
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
smathieu has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
ldnunes has quit [Quit: Leaving]
rickruby has joined #ruby
tannerburson has joined #ruby
rezzack has joined #ruby
realDAB has quit [Quit: realDAB]
michael_mbp is now known as zz_michael_mbp
mikeser has joined #ruby
zz_michael_mbp is now known as michael_mbp
Reach has joined #ruby
bradhe has quit [Remote host closed the connection]
wedgeV has joined #ruby
p0wn3d has joined #ruby
<mikeser> всем привет
Xeago has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
<mikeser> подскажите или сбросте ссылку на доку, в чем разница между <% %> и <%= %>
smathieu has joined #ruby
<Reach> english?
AlSquirrel has joined #ruby
wedgeV has quit [Client Quit]
<mikeser> ok )
<jrobeson> mikeser, one prints output and one doesn't
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
AlSquire has quit [Read error: Connection reset by peer]
<jrobeson> the = meaning print output
axl_ has quit [Quit: axl_]
<stringoO> I'm having trouble with some boolean logic
<stringoO> If i set test this way
<stringoO> test = true and false
<stringoO> shouldn't test's value be false?
<mikeser> Thank you!!!
<stringoO> it seems to be set to true
cgore has joined #ruby
<jrobeson> stringoO, and test = true && false
Advocation has quit [Quit: Advocation]
mansi has quit [Remote host closed the connection]
<mikeser> jrobeson, Thank you!!
m8 has quit [Quit: Sto andando via]
<stringoO> jrobeson: thanks! shouldn't 'and' do the same as && here?
<jrobeson> mikeser, i don't know russian, but that's what it sounded like you were asking :)
mansi has joined #ruby
<stringoO> if i do true and false in irb it returns the right value
<stringoO> but why not when setting it?
<jrobeson> stringoO, nope. different levels of precedence
wedgeV has joined #ruby
<jrobeson> between && and ||
<jrobeson> err
<jrobeson> between and and &&
<jrobeson> imo one should always use && over and
michael_mbp is now known as zz_michael_mbp
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<stringoO> okay
zz_michael_mbp is now known as michael_mbp
<jrobeson> s/always/almost always/ .. there is a case or two where you shouldn't
<stringoO> jrobeson: I am still baffled by it though
kaspergrubbe has quit [Remote host closed the connection]
<stringoO> how come (true and false) evaluates to false
<jrobeson> >> true && false
<eval-in> jrobeson => false (https://eval.in/73300)
<stringoO> but setting something to the outcome doesn't?
<jrobeson> >> true and false
<eval-in> jrobeson => false (https://eval.in/73301)
watermel0n has joined #ruby
<jrobeson> >> test = true and false
<eval-in> jrobeson => false (https://eval.in/73302)
<jrobeson> seems fine there?
<jrobeson> sure it's not something else?
charliesome has joined #ruby
<stringoO> >> test = true and false; puts test
<eval-in> stringoO => true ... (https://eval.in/73306)
mansi has quit [Ping timeout: 272 seconds]
ringaroses has quit [Quit: Leaving]
<jrobeson> ah nope.. that is erb.. sorry
<jrobeson> err equivalent to irb*
colonolGron has joined #ruby
<stringoO> jrobeson: https://eval.in/73310
<ukd1> does anyone have any idea why DelegateClass wouldn't work as expected - https://gist.github.com/ukd1/9293c419a080d034f4bb
<ukd1> * in 2.1.0p2
<jrobeson> stringoO, it's definitely && vs and here
Briareos1 has joined #ruby
<stringoO> jrobeson: it evaluates to false, but test seems to be set to true. that's what's messing with me head
<jrobeson> i just tried it in an acttual ruby file
<stringoO> okay, so what's actually happening? :(
michael_mbp is now known as zz_michael_mbp
<stringoO> true and false gets evaluated, but test just gets set to the first element?
kaspergrubbe has joined #ruby
<jrobeson> stringoO, that you should use && :)
mansi has joined #ruby
<stringoO> okay, I guess I'll just stick with the simple answer
dangerousdave has joined #ruby
<stringoO> Thanks :)
zz_michael_mbp is now known as michael_mbp
Elhu has quit [Quit: Computer has gone to sleep.]
<jrobeson> that's the explanation right there.. no need for me to reparrot avdi
<apeiros> stringoO: `test = true and false` is `(test = true) and false`
<apeiros> precendence. if you don't understand it, use parens :-p
<stringoO> apeiros: that makes sense. Thank you! :)
<stringoO> thanks jrobeson and apeiros
<jrobeson> stringoO, avdi shows good uses for actual and
psyl0n has joined #ruby
rickruby has quit [Remote host closed the connection]
benwoody has quit [Quit: benwoody]
smathieu has quit [Remote host closed the connection]
zaycheno1 has quit [Remote host closed the connection]
<jrobeson> i personally don't use them much .. since most people get confused
<stringoO> yeah, I was totally confused
nobitanobi has quit [Read error: Connection reset by peer]
<stringoO> i didn't realize that the = took precedence over the and
smathieu has joined #ruby
funburn has joined #ruby
<jrobeson> principle of least surprise.. is still surprising sometimes..
mando_ has joined #ruby
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
pskosinski has joined #ruby
Astral_ has joined #ruby
Clooth has quit [Quit: Leaving...]
smathieu has quit [Ping timeout: 245 seconds]
tobyo has quit [Ping timeout: 252 seconds]
RichardBaker has joined #ruby
jhaals has joined #ruby
Astralum has quit [Ping timeout: 245 seconds]
rjhunter has joined #ruby
mando has quit [Ping timeout: 272 seconds]
tapo_er_mayur has joined #ruby
habanany has quit [Quit: Bye]
rjhunter has quit [Read error: Connection reset by peer]
dallasm_ has quit [Remote host closed the connection]
mando_ has quit [Ping timeout: 272 seconds]
rjhunter has joined #ruby
tobyo has joined #ruby
jhaals has quit [Client Quit]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
zaychenok has joined #ruby
jhaals has joined #ruby
end_guy has joined #ruby
rjhunter has quit [Ping timeout: 264 seconds]
wedgeV has quit [Quit: wedgeV]
cads has joined #ruby
rismoney has joined #ruby
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
havenwood has joined #ruby
reset has quit [Quit: Leaving...]
Fire-Dragon-DoL has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
mityaz has joined #ruby
iamjarvo has joined #ruby
elux has quit [Quit: Leaving...]
Clooth has joined #ruby
nucatus_ has quit [Remote host closed the connection]
nucatus has joined #ruby
<cout> when I use String#inspect, the string that is returned has sequences that look like this: "\xACLE"
<rismoney> i have an array of hashes. is there a way i can return all hashes with a particular keyname, say in this case A... example: [{"A"=>"alpha", "B"=>"beta"},{"A"=>"letterA", "G"=>"gamma"}] How can I have it return ['alpha','letterA']
michael_mbp is now known as zz_michael_mbp
bradhe has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zz_michael_mbp is now known as michael_mbp
<cout> but I can't copy-and-paste that string into a C++ program, because \xACLE is too wide a character sequence. is there an easy way to get ruby to format my inspected strings in octal instead of hex? (e.g. "\nnn" instead of "\xnn"
buscon_ has joined #ruby
ambushsabre has joined #ruby
nucatus_ has joined #ruby
Jetchisel has joined #ruby
nucatus has quit [Remote host closed the connection]
m__s_ has quit [Remote host closed the connection]
<rismoney> i think i got it. .map {|item| item['A']}
pixelgremlins has quit [Ping timeout: 240 seconds]
reset has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
bigoldrock has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
Es0teric has joined #ruby
mityaz has quit [Read error: Connection reset by peer]
mityaz has joined #ruby
mark_locklear has quit [Ping timeout: 241 seconds]
yfeldblu_ has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hogeo has joined #ruby
realDAB has joined #ruby
wedgeV has joined #ruby
mityaz has quit [Read error: Connection reset by peer]
mityaz has joined #ruby
XenoWolf_ is now known as XenoWolf
endash_ has joined #ruby
XenoWolf has left #ruby [#ruby]
skaflem has quit [Quit: Leaving]
Kricir has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 245 seconds]
ce_afk is now known as cescalante
buscon_ has quit [Remote host closed the connection]
moneydouble has joined #ruby
dtcrshr has quit [Ping timeout: 245 seconds]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp is now known as zz_michael_mbp
benwoody has joined #ruby
zz_michael_mbp is now known as michael_mbp
Kricir has joined #ruby
larissa has joined #ruby
funburn has quit [Quit: funburn]
marr has joined #ruby
mityaz has quit [Read error: Connection reset by peer]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
mityaz has joined #ruby
mando has joined #ruby
ssvo has quit [Ping timeout: 246 seconds]
zz_jrhorn424 is now known as jrhorn424
Virtualize|work has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
s2013 has quit [Ping timeout: 246 seconds]
s2013_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ssvo has joined #ruby
zz_michael_mbp is now known as michael_mbp
Elhu has joined #ruby
wedgeV has quit [Quit: wedgeV]
fuhgeddaboudit has joined #ruby
acoyfellow has joined #ruby
dtcrshr has joined #ruby
dtcrshr has quit [Changing host]
dtcrshr has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
acrussell has joined #ruby
smathieu has joined #ruby
acrussell has left #ruby [#ruby]
aley has quit [Quit: aley]
Advocation has joined #ruby
mityaz has quit [Read error: No route to host]
RaCx has joined #ruby
krawchyk has quit []
mityaz has joined #ruby
matheuscaceres has joined #ruby
wedgeV has joined #ruby
asteros has joined #ruby
jhaals has joined #ruby
dallasm_ has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
capicue has quit [Quit: Leaving...]
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
jamesaanderson has joined #ruby
mansi has quit [Read error: Connection reset by peer]
jkhwan_ has quit [Remote host closed the connection]
jkhwan has joined #ruby
athst has quit [Quit: athst]
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has joined #ruby
cody-- has quit [Quit: derp]
asteros has quit [Ping timeout: 265 seconds]
mityaz has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
phinfonet has joined #ruby
kevind has quit [Quit: kevind]
tommyvyo has quit [Read error: Connection reset by peer]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
kevind has joined #ruby
rickruby has joined #ruby
Kricir has quit [Remote host closed the connection]
jkhwan has quit [Ping timeout: 272 seconds]
aley has joined #ruby
tommyvyo has joined #ruby
s2013_ is now known as s2013
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RaCx has quit [Quit: Computer has gone to sleep.]
dallasm_ has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
dorei has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
lethjakm1 is now known as lethjakman
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
athst has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Monie has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
pskosinski has quit [Read error: Operation timed out]
yfeldblum has joined #ruby
fijimunkii has quit [Ping timeout: 245 seconds]
barratt has joined #ruby
maletor has joined #ruby
Jabberwock1 has joined #ruby
<Jabberwock1> Hello.
rocknrollmarc has joined #ruby
blaskovicz has quit [Ping timeout: 245 seconds]
<Jabberwock1> How can I make this more efficient? I don't like the idea of calling open twice:
<Jabberwock1> if File.open(f).grep(/pass(wd|word)/i)
<Jabberwock1> File.open(f).each do |line|
blaskovicz has joined #ruby
kirun has quit [Quit: Client exiting]
jkhwan has joined #ruby
RaCx has joined #ruby
asteros has joined #ruby
mojjojo has joined #ruby
smathieu has joined #ruby
aspires has quit []
rjhunter has joined #ruby
jamesaanderson has joined #ruby
havenwood has quit [Remote host closed the connection]
<onewheelskyward> Pull it into a string and do your comparison on that. Then iterate upon it.
bret has joined #ruby
<realDAB> Jabberwock1: maybe File.open(f) do |fh| if fh.grep(/.../); fh.rewind; fh.each ....
<Jabberwock1> Thank you both. :)
Advocation has quit [Quit: Advocation]
sergicles has quit [Quit: sergicles]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fijimunkii has joined #ruby
clevermatt has quit [Remote host closed the connection]
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rocknrollmarc> ?
realDAB has quit [Quit: realDAB]
jkhwan has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 272 seconds]
jkhwan has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
Virtualize|work has quit [Quit: Leaving...]
aryaching has quit [Ping timeout: 245 seconds]
Tuxist has quit [Remote host closed the connection]
bradhe has joined #ruby
duncan_bayne has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
failshell has joined #ruby
virtualize has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
michael_mbp is now known as zz_michael_mbp
bigoldrock has joined #ruby
zz_michael_mbp is now known as michael_mbp
aspires has joined #ruby
Mars` has joined #ruby
tapo_er_mayur has quit [Quit: Lost terminal]
jkhwan has quit [Ping timeout: 272 seconds]
mercwithamouth has joined #ruby
capicue has joined #ruby
havenwood has joined #ruby
xk_id has quit [Quit:
wedgeV has quit [Quit: wedgeV]
zoo-zed has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
mark06 has joined #ruby
mark06 has left #ruby [#ruby]
mojjojo has quit [Quit: mojjojo]
michael_mbp is now known as zz_michael_mbp
ravster has joined #ruby
zz_michael_mbp is now known as michael_mbp
wedgeV has joined #ruby
jkhwan has joined #ruby
hogeo has joined #ruby
iamjarvo has joined #ruby
smathieu has quit [Remote host closed the connection]
charliesome has joined #ruby
smathieu has joined #ruby
mojjojo has joined #ruby
Elhu has joined #ruby
iliketur_ has joined #ruby
capicue has quit [Ping timeout: 246 seconds]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
p0wn3d has quit [Quit: ChatZilla 0.9.90.1 [Firefox 17.0.8/20130811004308]]
hogeo has quit [Ping timeout: 245 seconds]
allsystemsarego has quit [Quit: Leaving]
harrymoreno has joined #ruby
smathieu has quit [Ping timeout: 246 seconds]
awestroke has quit [Remote host closed the connection]
burlyscudd has joined #ruby
Kricir has quit [Remote host closed the connection]
jonahR has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
fijimunkii has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
Voodoofish4301 has joined #ruby
mityaz has joined #ruby
smathieu has joined #ruby
jacobsmith has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
<rocknrollmarc> quit
rocknrollmarc has quit [Quit: rocknrollmarc]
tannerburson has quit [Quit: tannerburson]
mansi has quit [Remote host closed the connection]
ambushsabre has joined #ruby
xk_id has joined #ruby
Voodoofish430 has quit [Ping timeout: 248 seconds]
rocknrollmarc has joined #ruby
jkhwan has quit [Remote host closed the connection]
kaldrenon has quit [Remote host closed the connection]
adambeynon has joined #ruby
jkhwan has joined #ruby
rocknrollmarc has quit [Client Quit]
jkhwan has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
banister has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Elhu has quit [Quit: Computer has gone to sleep.]
sergicles has joined #ruby
mansi has joined #ruby
mityaz has quit [Ping timeout: 252 seconds]
Voodoofish4301 has quit [Ping timeout: 245 seconds]
roolo has joined #ruby
mojjojo has quit [Quit: mojjojo]
ValicekB has joined #ruby
mojjojo has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
<roolo> I have a bit nooby problem. I am writing an extension for Sinatra. When i want to parse json ruby tries to find parse method in Sinatra::JSON:Module
<roolo> Is there some well known solution i am missing?
<banister> shevy It's useless to look for the bend where night loses its way
Elhu has joined #ruby
endash_ has quit [Quit: endash_]
Voodoofish430 has joined #ruby
RaCx has joined #ruby
volty has joined #ruby
michael_mbp is now known as zz_michael_mbp
<bnagy> roolo: you could try ::JSON
zz_michael_mbp is now known as michael_mbp
DanBoy has joined #ruby
nisstyre has joined #ruby
Underbyte has quit [Remote host closed the connection]
<roolo> bnagy: You are my hero
axl_ has joined #ruby
alexparker_ has joined #ruby
<bnagy> I don't know why it would be doing that though. ::JSON just tells ruby to look in the toplevel namespace, but it is only neccessary when working in stuff like BasicObject where they're removed all the lookup stuff on purpose
danshultz has quit [Remote host closed the connection]
<bnagy> there's #sinatra
iliketur_ has joined #ruby
kcombs has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
hiyosi has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
liamkeily has joined #ruby
iamjarvo_ has joined #ruby
hiyosi has joined #ruby
smathieu has joined #ruby
mansi has quit [Read error: Connection reset by peer]
matchaw_ has joined #ruby
jamblack has quit [Quit: jamblack]
mansi has joined #ruby
jamblack has joined #ruby
jamblack has quit [Client Quit]
Bira has joined #ruby
matchaw has quit [Ping timeout: 264 seconds]
Bira has quit [Remote host closed the connection]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
colonolGron has quit [Quit: leaving]
capicue has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
fumduq has quit [Ping timeout: 240 seconds]
danshultz has quit [Ping timeout: 245 seconds]
fumduq has joined #ruby
smathieu has quit [Ping timeout: 252 seconds]
nobitanobi has joined #ruby
iamjarvo_ has quit [Read error: Operation timed out]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
myappleguy has quit [Ping timeout: 252 seconds]
smathieu has joined #ruby
capicue has quit [Ping timeout: 245 seconds]
mfmfmfmfmfmf has joined #ruby
benwoody has quit [Quit: benwoody]
bluOxigen has quit [Ping timeout: 272 seconds]
MattStratton has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
sparrovv has joined #ruby
jonahR has quit [Quit: jonahR]
DrShoggoth has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
michael_mbp is now known as zz_michael_mbp
DrShoggoth has joined #ruby
zz_michael_mbp is now known as michael_mbp
jonahR has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
carlyle has quit [Remote host closed the connection]
jkhwan has quit [Remote host closed the connection]
sergicles has quit [Quit: sergicles]
chuk has joined #ruby
capicue has joined #ruby
jkhwan has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
Elhu has joined #ruby
Kricir has joined #ruby
realDAB has joined #ruby
newbiehacker has quit [Ping timeout: 264 seconds]
michael_mbp is now known as zz_michael_mbp
rjhunter has joined #ruby
IceColdMax has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
virtualize has quit [Quit: Leaving...]
colonolGron has joined #ruby
dangerousdave has quit [Ping timeout: 245 seconds]
failshel_ has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
jbpros has quit [Quit: jbpros]
rjhunter has quit [Ping timeout: 248 seconds]
mikesplain1 has joined #ruby
failshell has quit [Ping timeout: 272 seconds]
watermel0n has quit []
mikesplain has quit [Read error: Connection reset by peer]
failshel_ has quit [Ping timeout: 245 seconds]
zz_michael_mbp is now known as michael_mbp
mikesplain2 has joined #ruby
jkhwan has joined #ruby
wlanboy has quit [Ping timeout: 272 seconds]
Xeago has quit [Remote host closed the connection]
mfmfmfmfmfmf has joined #ruby
jamesaanderson has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
mikesplain1 has quit [Ping timeout: 246 seconds]
cameronbarton has joined #ruby
jle` has quit [Ping timeout: 252 seconds]
TigerWolf has joined #ruby
enebo has quit [Quit: enebo]
mikesplain2 has quit [Ping timeout: 245 seconds]
drumusician has quit [Ping timeout: 246 seconds]
gasbakid has quit [Read error: Connection reset by peer]
Solnse has quit [Quit: Leaving.]
mengu has quit []
duggiefresh has quit [Remote host closed the connection]
danman has quit [Quit: danman]
Xeago_ has joined #ruby
Soda has joined #ruby
enebo has joined #ruby
jle` has joined #ruby
michael_mbp is now known as zz_michael_mbp
Bira has joined #ruby
nateberkopec has quit [Quit: Leaving...]
barratt has quit [Quit: Leaving...]
wlanboy has joined #ruby
zz_michael_mbp is now known as michael_mbp
Voodoofish430 has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby
mfmfmfmfmfmf has quit [Read error: Connection reset by peer]
Shidash has quit [Ping timeout: 265 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
VTLob has quit [Ping timeout: 245 seconds]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
Lobster_ has joined #ruby
enebo has quit [Client Quit]
sergicles has joined #ruby
ldnunes has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
funburn has joined #ruby
Xeago_ has quit [Remote host closed the connection]
liamkeily has quit [Quit: WeeChat 0.4.1]
Bira has quit [Ping timeout: 272 seconds]
hogeo has quit [Ping timeout: 240 seconds]
liamkeily has joined #ruby
Lobster_ is now known as Lobster
claymore has quit [Quit: Leaving]
baordog has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
fridim__ has joined #ruby
`MArceLL` has joined #ruby
Bira has joined #ruby
dgfdgf has quit [Ping timeout: 246 seconds]
blaskovicz has quit [Quit: Leaving.]
Shidash has joined #ruby
xtristan has quit [Ping timeout: 246 seconds]
interactionjaxsn has quit [Remote host closed the connection]
cescalante is now known as ce_afk
pskosinski has joined #ruby
sparrovv has quit [Quit: sparrovv]
interactionjaxsn has joined #ruby
DrOwl has quit [Ping timeout: 252 seconds]
realDAB has quit [Quit: realDAB]
sailias has quit [Ping timeout: 245 seconds]
axl_ has quit [Quit: axl_]
momomomomo has quit [Quit: momomomomo]
roolo has quit [Quit: Leaving...]
cameronbarton has joined #ruby
dagnachew has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
jerius has quit [Ping timeout: 248 seconds]
jragon has quit [Read error: Operation timed out]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nisstyre has quit [Quit: Leaving]
mityaz has joined #ruby
RichardBaker has joined #ruby
interactionjaxsn has quit [Ping timeout: 252 seconds]
moneydouble has quit [Quit: Leaving.]
ssvo_ has joined #ruby
drumusician has joined #ruby
axl_ has joined #ruby
dgarstang3 has quit [Quit: WeeChat 0.4.0]
jrhorn424 is now known as zz_jrhorn424
zoo-zed has quit [Ping timeout: 246 seconds]
vt102 has quit [Quit: Leaving]
ssvo has quit [Ping timeout: 245 seconds]
kitak has joined #ruby
fuhgeddaboudit has quit [Read error: Operation timed out]
mmitchell has quit [Remote host closed the connection]
cameronbarton has quit [Quit: cameronbarton]
Jabberwock has quit [Quit: Leaving.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
nucatus_ has quit [Ping timeout: 272 seconds]
Reach has quit [Remote host closed the connection]
<TorpedoSkyline> hey guys, I'm using a thread here to basically emulate setInterval in javascript, but if kick_off ever runs the loop ends… why? https://ghostbin.com/paste/99j9j
liamkeily has quit [Quit: WeeChat 0.4.1]
<TorpedoSkyline> if it ever runs with success that is
<eka> 'objects' is a reserved word in ruby?
<heftig> nope
<eka> trying on irb
bradhe has quit [Remote host closed the connection]
<eka> ok thx
freerobby has quit [Quit: Leaving.]
liamkeily has joined #ruby
<heftig> TorpedoSkyline: what is the code of kick_off?
nfk has quit [Quit: yawn]
jacobsmith has quit [Ping timeout: 252 seconds]
michael_mbp is now known as zz_michael_mbp
randomnick_ has quit [Ping timeout: 264 seconds]
carlyle has joined #ruby
SHyx0rmZ has joined #ruby
lfox has quit [Quit: ZZZzzz…]
zodiak has quit [Ping timeout: 272 seconds]
jkhwan has quit [Remote host closed the connection]
blaxter_ has joined #ruby
pskosinski is now known as petra
zodiak has joined #ruby
dayepa has quit [Ping timeout: 246 seconds]
jkhwan has joined #ruby
Briareos1 has quit [Remote host closed the connection]
Briareos1 has joined #ruby
axl_ has quit [Quit: axl_]
sparrovv has joined #ruby
randomnick_ has joined #ruby
petra is now known as pskosinski
zz_michael_mbp is now known as michael_mbp
coca_rails has joined #ruby
mansi has quit [Remote host closed the connection]
nowthatsamatt has quit [Quit: nowthatsamatt]
blaxter_ has left #ruby [#ruby]
mansi has joined #ruby
<TorpedoSkyline> heftig https://ghostbin.com/paste/oo7va
Naoe-Kanno has joined #ruby
blaxter has quit [Disconnected by services]
blaxter_ has joined #ruby
nordmike has joined #ruby
<nordmike> rake says "Missing the Rails gem. Please `gem install -v= rails`, update your RAILS_GEM_VERSION setti…" while gem list says there is rails.
<nordmike> How can I fix it?
<havenwood> nordmike: Run: bundle
volty has quit [Quit: Konversation terminated!]
SHyx0rmZ has quit [Ping timeout: 246 seconds]
<bnagy> TorpedoSkyline: wrap kick_off in a begin / rescue and then see what exception it's throwing
duggiefresh has joined #ruby
<nordmike> havenwood: Bundler::GemfileNotFound
<havenwood> nordmike: Go to the root dir of your app, where there is a Gemfile.
coca_rails has quit [Ping timeout: 245 seconds]
<TorpedoSkyline> bnagy it seems to be running properly.. is it throwing an exception and killing the thread?
mansi has quit [Ping timeout: 245 seconds]
duggiefresh has quit [Remote host closed the connection]
<bnagy> that's my bet
duggiefresh has joined #ruby
<nordmike> havenwood: There is no Gemfile there.
<havenwood> nordmike: Is this a Rails 3.0+ app?
amacgregor_ has joined #ruby
petey has quit [Ping timeout: 246 seconds]
<havenwood> nordmike: Or a Rails app from last decade?
amacgregor_ has quit [Read error: No route to host]
aspires has quit []
amacgregor_ has joined #ruby
volty has joined #ruby
<nordmike> It requires 2.3.5. But I set 4
bradhe has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
* havenwood backs away slowly...
<nordmike> So should I do " gem install rails -v 2.3.5"?
mityaz has quit [Quit: See ya!]
<TorpedoSkyline> bnagy, ok so here something weird… https://ghostbin.com/paste/5rn22
<TorpedoSkyline> now the thread isn't being killed, but it shows no error
blaskovicz has joined #ruby
<havenwood> nordmike: I'd suggest asking in #RubyOnRails. Seems like a terrible idea to me to run a Rails 2 app, I wouldn't touch that with a 10ft pole.
<bnagy> don't ever rescue error
blaskovicz has quit [Client Quit]
<bnagy> TorpedoSkyline: in the loop itself just do begin; kick_off; rescue; p $!; end
<TorpedoSkyline> ok
<bnagy> you might want to p $@ as well
fijimunkii has joined #ruby
<bnagy> those are just stupid magic globals for last error and last error stack
michael_mbp is now known as zz_michael_mbp
catphish has left #ruby ["Leaving"]
<nordmike> havenwood: OK. But what with Gemfile. Sould it be in folder or not?
phinfonet has quit [Quit: exitiing]
rjhunter has joined #ruby
_whitelogger_ has joined #ruby
Nilium has quit [Ping timeout: 246 seconds]
<TorpedoSkyline> bnagy, ok, it was an undefined local variable. I'll look into fixing it. Thanks!
<bnagy> np
satman has quit [Read error: Operation timed out]
<TorpedoSkyline> now does it not show because threads fail silently?
alexparker_ has quit [Quit: alexparker_]
gyre007 has quit [Ping timeout: 246 seconds]
<bnagy> threads abort on exception by default, as does the main thread
Sammael has quit [Ping timeout: 252 seconds]
<bnagy> but only the main thread barfs and outputs errors by default ( cause the interpreter is exiting )
<havenwood> nordmike: Rails 3+ apps have a Gemfile, which is very handy for automated dependency resolution. If you're using a prehistoric Rails, you get no such niceties and many other unforeseen pains.
dagnachew has quit [Quit: Leaving]
_whitelogger has quit [Read error: Connection reset by peer]
kilophoton has quit [Ping timeout: 246 seconds]
aspires has joined #ruby
zz_michael_mbp is now known as michael_mbp
gr33n7007h has quit [Ping timeout: 252 seconds]
asteros has quit [Quit: asteros]
rjhunter has quit [Ping timeout: 240 seconds]
moneydouble has joined #ruby
swingha has quit [Ping timeout: 260 seconds]
satman has joined #ruby
rburton- has joined #ruby
jrhe has quit [Quit: jrhe]
<havenwood> nordmike: Rails 2 and Ruby 1.8 are past end-of-life. They are not supported, they do not receive security fixes, be warned.
saarinen has quit [Quit: saarinen]
carlyle has quit []
<nordmike> havenwood: Thank you.
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
tenjack has joined #ruby
MattStra_ has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
pel_daniel has left #ruby [#ruby]
Nilium has joined #ruby
kabiigon has joined #ruby
<kabiigon> hi
<kabiigon> having issues with install gem mysql
mikepack has quit [Remote host closed the connection]
veduardo has joined #ruby
<havenwood> kabiigon: What is your OS? How'd you install Ruby what version manager do you use if any? What is the error you receive?
whunt has quit [Read error: Operation timed out]
whunt has joined #ruby
swingha has joined #ruby
<TorpedoSkyline> haha yeah the mysql gem is fun to install ;P
<kabiigon> Centos 6.4 RVM ruby 1.9.3
MattStratton has quit [Ping timeout: 246 seconds]
volty has quit [Quit: Konversation terminated!]
failshell has joined #ruby
<kabiigon> error http://pastie.org/8508550
hogeo has joined #ruby
bklane has quit [Remote host closed the connection]
<havenwood> kabiigon: Double check you've got mysql-devel package installed?: rpm -qa | grep mysql
<havenwood> kabiigon: sudo yum install mysql-devel
bklane has joined #ruby
michael_mbp is now known as zz_michael_mbp
<TorpedoSkyline> also shouldn't he be installing mysql2 because it's async?
zz_michael_mbp is now known as michael_mbp
<kabiigon> no i did not
asobrasil has left #ruby [#ruby]
<kabiigon> that worked
yfeldblu_ has joined #ruby
<kabiigon> thanks
AlSquirrel has quit [Quit: This computer has gone to sleep]
freerobby has joined #ruby
<nordmike> How to find out which rails version uses rake?
<havenwood> nordmike: rake is a gem, rails is a gem
<nordmike> "gem list" says "config.load_paths is deprecated and removed in Rails 3, please use autoload_paths instead"
tenjack has quit [Remote host closed the connection]
ldnunes has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
matheuscaceres has quit [Quit: matheuscaceres]
<nordmike> I meant rake.
failshell has quit [Ping timeout: 272 seconds]
hogeo has quit [Ping timeout: 245 seconds]
<kabiigon> same
<kabiigon> a gem is a gem
devyn has quit [Ping timeout: 246 seconds]
matheuscaceres has joined #ruby
<kabiigon> just replace rails with rake
tenjack has joined #ruby
<nordmike> And gem says "rails (2.3.18)"
bklane_ has joined #ruby
jkhwan has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
devyn has joined #ruby
thams has joined #ruby
matheuscaceres has quit [Client Quit]
bklane has quit [Ping timeout: 264 seconds]
<havenwood> nordmike: What are you trying to determine? What version or Rails or Rake you have installed? Or what?
jkhwan has joined #ruby
<nordmike> So why does it check for deprecated function in rails 3 if has only rails 2?
<havenwood> nordmike: You have a Rails 2 app, you've apparently installed the Rails 3 gem, what are you expecting to happen?
Voodoofish430 has joined #ruby
jeekl has quit [Ping timeout: 245 seconds]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
<nordmike> havenwood: No, I've instaled 2.3.5 rails.
<havenwood> nordmike: rails -v
Shidash has quit [Ping timeout: 265 seconds]
<havenwood> nordmike: is it 2.3.5?
<nordmike> havenwood: Rails 2.3.18
Xeago has quit [Remote host closed the connection]
kke has quit [Ping timeout: 272 seconds]
CaptainJet has quit []
<bnagy> ohh rails