havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
mesamoo has quit [Quit: Konversation terminated!]
jackjackdripper has quit [Quit: Leaving.]
chouhoulis has quit [Ping timeout: 276 seconds]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
kt has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobitanobi has quit [Ping timeout: 240 seconds]
Ropeney_ has quit [Quit: Textual IRC Client: www.textualapp.com]
_sfiguser has quit [Quit: Leaving]
t-recx has quit [Quit: t-recx]
kt has quit [Ping timeout: 260 seconds]
cagomez has quit [Remote host closed the connection]
brent__ has quit [Remote host closed the connection]
hays has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
<hays> i have a hash and i want to iterate through it to create another hash. I've been doing this by just creating a new hash and then iterating through the old one and populating the hash as I go. Is there a more idiomatic way to do this?
<hays> I see Hash[ ] as a possibility
<hays> but it looks weird if there is a block in there
<adam12> each_with_object or reduce maybe?
<adam12> Show us what you've already done
<adam12> err, inject not reduce.
<hays> its on another computer.. let me see if i can reproduce it
cadillac_ has quit [Read error: Connection reset by peer]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
cadillac_ has joined #ruby
<hays> adam12: this is a bit contrived... the hash is much bigger than this.. im basically pulling items out of each entry and making a new entry in the new hash. https://bpaste.net/show/e5260afe1dd6
kt has joined #ruby
<hays> v+1 is a proxy for some sort of set of operations or function that would return the new value
FahmeF has joined #ruby
<adam12> hays_: each_with_object - https://eval.in/private/4c060e51a23a8a
<hays> huh.. that's interesting. so that a in |i, a| is a destination
<adam12> Sorry, don't follow?
<hays> evens = (1..10).each_with_object([]) { |i, a| a << i*2 }
phinxy has quit [Quit: Leaving]
FahmeF has quit [Ping timeout: 260 seconds]
z0mbee has joined #ruby
<hays> i've never seen this.. style/syntax
kt has quit [Ping timeout: 240 seconds]
<adam12> hays_: Ah. It's a fancier version than using inject.
<adam12> hays_: but yes, you'd call the variable a the "accumulator" usually. It persists through the loop.
<hays> why is it being passed a []
bronson has joined #ruby
<adam12> So we initialize with an empty hash as our accumulator, iterate through our hash like we normally do, but receive an extra arg as the accumulator, which we stick our new values in.
<adam12> What do you mean [ ]?
<hays> each_with_object in that example looks like its being passed an array
<adam12> It's a hash. each_with_object( { } )
<adam12> I'm using square-bracket notation to set the value of course.
Dimik has joined #ruby
<adam12> Unless you mean the example you posted about evens = ?
<hays> sorry, missed your link. I understand now
bronson has quit [Ping timeout: 276 seconds]
kt has joined #ruby
<hays> im still a bit puzzled how something like that would work under the hood
goyox86 has joined #ruby
<hays> i wonder if there are docs for rubinius like for mri ruby.. i could see the source code for it
jinie_ has quit [Ping timeout: 276 seconds]
<adam12> Maybe?
<hays> thanks
jinie_ has joined #ruby
gusrub has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
elsevero has quit [Quit: elsevero]
<hays> i think i need to understand yield
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpb_ has quit [Quit: inabit. zz.]
<adam12> hays_: that would help. It's super powerful
kt has quit [Ping timeout: 255 seconds]
<hays> yeah its one of the ruby concepts that haven't stuck well for me.. im used to coming at it from another syntactic direction
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
goyox86 has quit [Quit: goyox86]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
marr has quit [Ping timeout: 248 seconds]
kt has joined #ruby
umaaji has joined #ruby
rahult has joined #ruby
brent__ has joined #ruby
elsevero has joined #ruby
dlitvak has joined #ruby
kt has quit [Ping timeout: 276 seconds]
Dimik has quit [Ping timeout: 260 seconds]
elsevero has quit [Client Quit]
phinxy has joined #ruby
phinxy has quit [Read error: Connection reset by peer]
<adam12> hays: https://eval.in/private/4a885ccd3137d0 a primitive version of each_with_object. Not sure if it helps.
chouhoul_ has quit []
dstrunk has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
<hays> is that 'each' on line 4 a ruby keyword?
cagomez has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<adam12> hays: I'm adding a method to a hash, so it implies `each` that already exists on that hash.
<hays> hmm.
chouhoulis has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kt has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
cam27 has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
tastygradient has joined #ruby
tastygradient has quit [Client Quit]
kt has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
kt has joined #ruby
thecommongeek has joined #ruby
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
Nilium has joined #ruby
mim1k has quit [Ping timeout: 276 seconds]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nilium has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
gizmore has joined #ruby
Nilium has joined #ruby
gizmore|2 has quit [Ping timeout: 260 seconds]
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
vee_ has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 255 seconds]
thecommongeek has quit [Ping timeout: 260 seconds]
kt has quit [Ping timeout: 260 seconds]
postmodern has quit [Quit: Leaving]
thecommongeek has joined #ruby
llua has quit [Ping timeout: 240 seconds]
dstrunk has joined #ruby
dar123 has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
my123 has quit [Ping timeout: 240 seconds]
Nilium has quit [Read error: Connection reset by peer]
Nilium has joined #ruby
ramfjord has joined #ruby
llua has joined #ruby
xuanrui has joined #ruby
kt has joined #ruby
my123 has joined #ruby
my123 has quit [Changing host]
my123 has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
kt has quit [Ping timeout: 255 seconds]
Joufflu has joined #ruby
chouhoulis has quit [Remote host closed the connection]
vee_ has joined #ruby
kt has joined #ruby
ixti has quit [Quit: WeeChat 1.9]
rahult has joined #ruby
hays__ has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rahult has quit [Client Quit]
hays has quit [Ping timeout: 240 seconds]
kt has quit [Ping timeout: 246 seconds]
imajes has joined #ruby
http_GK1wmSU has joined #ruby
profsimm has quit [Quit: Page closed]
http_GK1wmSU has left #ruby [#ruby]
dar123 has quit [Quit: Textual IRC Client: www.textualapp.com]
kt has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
dn` has quit [Ping timeout: 260 seconds]
jamal7 has joined #ruby
cam27 has joined #ruby
dar123 has joined #ruby
kt has quit [Ping timeout: 260 seconds]
naprimer has joined #ruby
ramfjord has joined #ruby
segy_ has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
jameser has joined #ruby
segy has quit [Ping timeout: 260 seconds]
segy_ is now known as segy
jamal7 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kt has joined #ruby
t-recx has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
goyox86 has joined #ruby
cam27 has joined #ruby
bronson has joined #ruby
goyox86 has quit [Ping timeout: 268 seconds]
Dimik has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
sunrunner20 has quit [Excess Flood]
jenrzzz has quit [Ping timeout: 260 seconds]
sunrunner20 has joined #ruby
QualityAddict has quit [Ping timeout: 255 seconds]
duderonomy has joined #ruby
QualityAddict has joined #ruby
rahult has joined #ruby
QualityAddict is now known as Guest82516
Guest82516 has quit [Remote host closed the connection]
yabbes_ has quit [Ping timeout: 260 seconds]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
ramfjord has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
nobitanobi has joined #ruby
kt has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
nobitanobi has quit [Remote host closed the connection]
orion88 has quit [Quit: Page closed]
grant has joined #ruby
kt has joined #ruby
gix has quit [Ping timeout: 276 seconds]
<hays__> it seems like ruby has too many ways to do blocks/procs/lambdas/methods?
imajes has quit [Quit: Leaving...]
HoierM has quit [Ping timeout: 260 seconds]
<hays__> is there a kind of standard arsenal to be familiar with here or do people just use whatever
<baweaver> Not sure I agree with that post
<baweaver> it makes a habit of using bang methods (collect!) over non-bang (collect) which mutate
kt has quit [Ping timeout: 248 seconds]
<baweaver> nitpickityness aside though...
<baweaver> 99% of the time you're fine with only blocks
<baweaver> and then the three methods to really know are map, select, and reduce from Enumerable
<baweaver> though I'd still read all of Enumerable because there's a lot of good stuff in there
gix has joined #ruby
<baweaver> &ri Enumerable
<baweaver> >> [1,2,3].map { |x| x * 2 } # map applies a function (block) to each element and returns a NEW array with the result
<ruby[bot]> baweaver: # => [2, 4, 6] (https://eval.in/841320)
vee_ has quit [Quit: WeeChat 1.9]
<baweaver> >> [1,2,3].select { |x| x.even? } # select uses the function to find all elements for which it returns true
<ruby[bot]> baweaver: # => [2] (https://eval.in/841323)
domgetter has joined #ruby
<hays__> this seems sufficient https://eval.in/841324
<baweaver> >> [1,2,3].reduce(0) { |accumulator, x| accumulator + x } # reduce is a bit trippier. It uses a function to fold the elements into one element
<ruby[bot]> baweaver: # => 6 (https://eval.in/841325)
<baweaver> the return value of each iteration is the new accumulator or memo or whatever people call it now
<domgetter> reduction duction, what's your function?
<hays__> to meet DRY in terms of whether to use procs/blocks etc
<hays__> baweaver: yeh im familiar with FP concepts
<baweaver> I rarely if ever use method()
<domgetter> baweaver I just call it a "running total"
<baweaver> I'd just use anonymous functions
<baweaver> domgetter: I hesitate a bit because I could be accumulating into a new array or hash too
<baweaver> Remember though that too DRY is BRITTLE - Badly refactored into tiny things lacking expressiveness.
<baweaver> Never sure how much people know :)
<hays__> it just seems wierd a little to have all these concepts that are a bit redundant.
<hays__> Procs, blocks, lambdas
<baweaver> It is.
<hays__> so blocks is what people typically stick with it seems like
<baweaver> For the most part though blocks do fine
<baweaver> yep
<baweaver> Most of the others are edge cases
<hays__> so if I am writing one of these methods that takes something like a block/proc.. it should probably be a block
<domgetter> hays__ every method can receive one block in Ruby
<baweaver> Yep, and just use yield from there
<Joufflu> lol
ramfjord has joined #ruby
<Joufflu> how is this evaluating to false
<Joufflu> a = TRUE && a = FALSE
t-recx has quit [Quit: t-recx]
leandrobighetti has joined #ruby
<baweaver> >> true && false
<ruby[bot]> baweaver: # => false (https://eval.in/841326)
<baweaver> Basic Boolean logic I reckon
<hays__> because a=false is false?
mim1k has joined #ruby
* Joufflu throws in towel
* baweaver wonders why they're all caps
<Joufflu> yah; i dunno
<baweaver> >> TRUE
<ruby[bot]> baweaver: # => true (https://eval.in/841327)
<baweaver> huh, TIL
<hays__> hrm
<hays__> didnt know that either
<bougyman> what are TRUE and FALSE?
<bougyman> those are constants.
<bougyman> [3] pry(main)> a = true && a = false
<bougyman> => false
<baweaver> >> FALSE
<ruby[bot]> baweaver: # => false (https://eval.in/841328)
<bougyman> [6] pry(main)> a = TRUE && a = FALSE
<bougyman> => false
<baweaver> Didn't know it did that, odd. (the all caps true/false)
<bougyman> dunno what ruby version is giving you that.
<bougyman> I didn't, either.
<bougyman> never seen that.
<baweaver> >> RUBY_VERSION
<bougyman> I've seen TrueClass and FalseClass
<ruby[bot]> baweaver: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<Joufflu> whatever repl.it runs
<bougyman> but not TRUE and FALSE
<baweaver> ....pesky thing
<baweaver> >> RUBY_VERSION
<ruby[bot]> baweaver: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<baweaver> It's 2.3.0 last I knew
<Joufflu> ruby 2.3.1p112
<bougyman> [7] pry(main)> RUBY_VERSION
<bougyman> => "2.2.3" here
ramfjord has quit [Ping timeout: 240 seconds]
<hays__> the = has precedence over &&, so a=TRUE evaluates to true, a=FALSE evaluates false. then true && false is false
<Joufflu> yeah I thought of that from liars paradox and just gave it a shot thinking it was going to spit out an error; yet it got evaluated
<hays__> liars paradox which one
<Joufflu> This line is true
<hays__> strong liar?
rahult has quit [Quit: Back to the world of zombies]
<Joufflu> The first line is a lie
<hays__> ahh weak liar
rahult has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
<Joufflu> ya
<hays__> there is no way to encode 'this line is true' in ruby and then negate it
<hays__> in the same sense as the liar paradox
rahult has quit [Client Quit]
rahult has joined #ruby
rahult has quit [Client Quit]
kt has joined #ruby
rahult has joined #ruby
leandrobighetti has quit [Remote host closed the connection]
<hays__> Joufflu: "This statement is false" is my favorite
leandrobighetti has joined #ruby
<Joufflu> yeah right off the bat it's hard to digest
rahult has quit [Client Quit]
godd2 has joined #ruby
sunrunner20 has quit [Read error: Connection reset by peer]
kt has quit [Ping timeout: 240 seconds]
domgetter has quit [Ping timeout: 260 seconds]
sunrunner20 has joined #ruby
<hays__> the thing about it is that its a statement that asserts the truth or falseness of another statement explicitly
leandrobighetti has quit [Remote host closed the connection]
ramfjord has joined #ruby
leandrobighetti has joined #ruby
nertzy has quit [Ping timeout: 255 seconds]
code_zombie_ has quit [Ping timeout: 276 seconds]
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
amclain has quit [Quit: Leaving]
leandrobighetti has quit [Ping timeout: 255 seconds]
gusrub has joined #ruby
kt has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
kt has quit [Ping timeout: 260 seconds]
Mia has quit [Ping timeout: 255 seconds]
m27frogy has joined #ruby
hays__ has quit [Ping timeout: 246 seconds]
thecommongeek has quit [Ping timeout: 248 seconds]
segy_ has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
segy has quit [Ping timeout: 248 seconds]
Joufflu has joined #ruby
segy has joined #ruby
segy_ has quit [Ping timeout: 240 seconds]
Joufflu has quit [Client Quit]
rahult has joined #ruby
segy_ has joined #ruby
segy has quit [Ping timeout: 276 seconds]
kt has joined #ruby
bambanx has joined #ruby
segy has joined #ruby
ramfjord has joined #ruby
gusrub has quit []
segy_ has quit [Ping timeout: 276 seconds]
segy- has joined #ruby
kt has quit [Ping timeout: 255 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swills has quit [Ping timeout: 240 seconds]
segy_ has joined #ruby
mim1k has joined #ruby
segy has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
segy has joined #ruby
segy- has quit [Ping timeout: 255 seconds]
segy_ has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 276 seconds]
segy_ has joined #ruby
kt has joined #ruby
swills has joined #ruby
segy has quit [Ping timeout: 276 seconds]
segy- has joined #ruby
segy- is now known as segy
wilbert has joined #ruby
baroquebobcat has joined #ruby
milardovich has quit [Remote host closed the connection]
cahoots has joined #ruby
wilbert has quit [Client Quit]
segy_ has quit [Ping timeout: 260 seconds]
segy_ has joined #ruby
segy has quit [Ping timeout: 248 seconds]
segy_ is now known as segy
bronson has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
kt has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 240 seconds]
<godd2> The fundamental problem is whether or not you can have meaning without referent.
jackjackdripper has joined #ruby
kt has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nofxxxx has joined #ruby
kt has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
nofxxx has quit [Ping timeout: 246 seconds]
brent__ has joined #ruby
tacoboy has quit [Read error: Connection reset by peer]
kt has joined #ruby
patrontechnosoft has joined #ruby
patrontechnosoft has quit [Remote host closed the connection]
hanetzer has joined #ruby
<hanetzer> question. why are 'bigdecimal io-console openssl psyc rdoc rake minitest net-telnet did_you_mean test-unit power_assert xmlrpc' getting installed to ~/.gem ?
duderonomy has joined #ruby
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent__ has quit [Remote host closed the connection]
bambanx has quit [Quit: Leaving]
<havenwood> hanetzer: https://stdgems.org/
govg has joined #ruby
<havenwood> hanetzer: this ^ site explains
<hanetzer> interesting. how then is archlinux bypassing this...
kt has quit [Ping timeout: 240 seconds]
<havenwood> hanetzer: Different distros choose different flags for the default location. The --user-install flag is one major setting that'll make the location vary.
<havenwood> hanetzer: dev or prod?
<hanetzer> havenwood: currently indev. its a new sort of windows runtime based on musl
<havenwood> hanetzer: Here's a nice Ruby setup on arch linux with chruby, which just changes env vars to set the environment: https://gist.github.com/jhass/8839655bb038e829fba1
<havenwood> hanetzer: Where are the default gems installed? Check, for example: gem env gemdir
<havenwood> hanetzer: gem which bigdecimal
<hanetzer> havenwood: its not quite to the point I can do that.
kt has joined #ruby
<havenwood> hanetzer: what's the holdup at present?
rahult is now known as rahult_
<havenwood> hanetzer: `gem` not working?
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hanetzer> havenwood: having issue setting up the env, most likely user error on my part.
runescape07rsps has quit [Ping timeout: 248 seconds]
brent__ has joined #ruby
kt has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
brent__ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 246 seconds]
kt has joined #ruby
sneep is now known as sneep_
Bock has joined #ruby
TomyLobo3 has joined #ruby
rahult has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
rahult is now known as rahult_
rahult_ has quit [Client Quit]
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
cam27 has quit [Read error: Connection reset by peer]
kt has quit [Ping timeout: 276 seconds]
cam27 has joined #ruby
paradisaeidae_ has quit [Ping timeout: 248 seconds]
paradisaeidae has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
rahult has joined #ruby
rahult is now known as rahult_
rahult_ is now known as rahult
bronson has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
godd2 has quit [Ping timeout: 240 seconds]
kt has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
conta has joined #ruby
kt has quit [Ping timeout: 255 seconds]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
rahult is now known as rahult_
minimalism has quit [Quit: minimalism]
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kt has joined #ruby
minimalism has joined #ruby
rahult has joined #ruby
tvw has joined #ruby
conta has quit [Ping timeout: 240 seconds]
rahult is now known as rahult_
rahult_ has quit [Client Quit]
rahult has joined #ruby
kt has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
paradisaeidae has quit [Ping timeout: 248 seconds]
paradisaeidae_ has quit [Ping timeout: 260 seconds]
ltem has joined #ruby
yabbes_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
cam27 has quit [Read error: Connection reset by peer]
anisha has joined #ruby
ana_ has joined #ruby
cam27 has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
paradisaeidae_ has quit [Client Quit]
paradisaeidae has quit [Client Quit]
psmolen has quit [Ping timeout: 268 seconds]
code_zombie_ has joined #ruby
dcunit3d has joined #ruby
rahult is now known as rahult_
rahult_ is now known as rahult
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
rahult has joined #ruby
kt has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
psmolen has joined #ruby
b0mbnet has joined #ruby
TomyLobo3 has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
kt has quit [Ping timeout: 240 seconds]
dlitvak has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
b0mbnet has quit [Client Quit]
vali has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
kt has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
FahmeF has joined #ruby
minimalism has quit [Quit: minimalism]
cam27 has quit [Read error: Connection reset by peer]
Beams has joined #ruby
ramfjord has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
digitalnomad has joined #ruby
rabajaj has joined #ruby
ltem has quit [Quit: Leaving]
cam27 has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
dar123 has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
Bhootrk_ has joined #ruby
Silthias1 has quit [Read error: Connection reset by peer]
Mgtuiw211 has joined #ruby
digitalnomad has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
vindvaki has joined #ruby
dennisvennink has joined #ruby
sysvalve has joined #ruby
Mgtuiw211 has quit [Client Quit]
dcunit3d has quit [Ping timeout: 260 seconds]
simmaniac has joined #ruby
djbkd has quit []
djbkd has joined #ruby
djbkd has quit [Client Quit]
sysvalve has quit [Ping timeout: 248 seconds]
pocketprotector has quit [Ping timeout: 240 seconds]
tirej has joined #ruby
pocketprotector has joined #ruby
FahmeF has quit [Remote host closed the connection]
MrSparkle has quit [Ping timeout: 240 seconds]
mark_66 has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
kt has quit [Ping timeout: 260 seconds]
kt has joined #ruby
tirej has quit [Quit: leaving]
hanetzer has quit [Remote host closed the connection]
hanetzer1 has joined #ruby
TomyWork has joined #ruby
MrSparkle has joined #ruby
hanetzer1 has quit [Client Quit]
hanetzer has joined #ruby
kt has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
http_GK1wmSU has joined #ruby
tvw has quit [Remote host closed the connection]
bronson has joined #ruby
http_GK1wmSU has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 240 seconds]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
digitalnomad has joined #ruby
FahmeF has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
kt has joined #ruby
CrazyEddy has joined #ruby
leandrobighetti has joined #ruby
dennisvennink has quit [Excess Flood]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kt has quit [Ping timeout: 258 seconds]
benjen has quit [Ping timeout: 276 seconds]
MichaelBurge has quit [Ping timeout: 258 seconds]
MichaelBurge has joined #ruby
romankapitonov has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
pygospa has joined #ruby
pandaant has joined #ruby
pandaant has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
<ineb> mfw i bought a 144hz monitor and realized the hdmi output only supports 60hz
ur5us has quit [Remote host closed the connection]
InfinityFye has joined #ruby
marr has joined #ruby
dcunit3d has joined #ruby
<hanetzer> ineb: that's the usual. I have one (linux can only push 120hz on amdgpu so far, though. still good)
<hanetzer> gotta use dvi or maybe displayport
CrazyEddy has quit [Remote host closed the connection]
<hanetzer> dual-link dvi, for that matter.
cam27 has quit [Read error: Connection reset by peer]
<ineb> hanetzer: the monitor only has DP and HDMI :/
apparition has quit [Read error: Connection reset by peer]
<hanetzer> then dp it will have to be, probably.
apparition has joined #ruby
cam27 has joined #ruby
dcunit3d has quit [Ping timeout: 260 seconds]
CrazyEddy has joined #ruby
CrazyEddy has quit [Changing host]
CrazyEddy has joined #ruby
kt has joined #ruby
yosafbridge` has quit [Quit: Leaving]
benjen has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
kt has quit [Ping timeout: 240 seconds]
kt has joined #ruby
ltem has joined #ruby
yosafbridge has joined #ruby
mim1k has joined #ruby
anisha has quit [Read error: Connection reset by peer]
kt has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
bronson has joined #ruby
Guest27414 is now known as jonds
kkiero has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 240 seconds]
hanetzer has quit [Quit: WeeChat 1.9]
tomphp has joined #ruby
mikecmpbll has joined #ruby
dennisvennink has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MichaelBurge has quit [Ping timeout: 246 seconds]
MichaelBurge_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 248 seconds]
kt has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
konsolebox has joined #ruby
kt has quit [Ping timeout: 240 seconds]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PaulCapestany has quit [Quit: .]
conta has quit [Ping timeout: 260 seconds]
Asher has quit [Quit: Leaving.]
dcunit3d has joined #ruby
PaulCapestany has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
charliesome has joined #ruby
rgtk has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
mtkd has quit [Ping timeout: 240 seconds]
anisha has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
ShekharReddy has joined #ruby
anisha has joined #ruby
ramfjord has joined #ruby
ayonkhan has joined #ruby
ayonkhan has quit [Client Quit]
mtkd has joined #ruby
bronson has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 260 seconds]
kt has joined #ruby
MarkBilk_ has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
cagomez has joined #ruby
mustaffa_ has joined #ruby
lookatme has joined #ruby
tvw has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
MarkBilk has joined #ruby
mustaffa has quit [Ping timeout: 248 seconds]
cagomez has quit [Ping timeout: 255 seconds]
MarkBilk has quit [Ping timeout: 255 seconds]
domgetter has joined #ruby
lookatme has quit [Quit: Leaving]
conta has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Xiti has quit [Ping timeout: 268 seconds]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
yabbes_ has quit [Quit: lu]
dcunit3d has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
InfinityFye has quit [Ping timeout: 260 seconds]
dcunit3d has quit [Ping timeout: 240 seconds]
acalycine has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
Terens has joined #ruby
<Terens> hello
kkiero has left #ruby [#ruby]
ur5us has joined #ruby
lancetw has quit [Quit: Connection closed for inactivity]
vali has quit [Changing host]
vali has joined #ruby
ur5us_ has joined #ruby
universal has quit [Ping timeout: 240 seconds]
ur5us has quit [Read error: No route to host]
InfinityFye has joined #ruby
cagomez has joined #ruby
universa1 has joined #ruby
bronson has joined #ruby
noe has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 246 seconds]
ams__ has joined #ruby
_sfiguser has joined #ruby
jaruga has joined #ruby
<dminuoso> Hello.
cagomez has joined #ruby
Bhootrk_ has quit [Read error: Connection reset by peer]
cagomez has quit [Ping timeout: 268 seconds]
dlitvak has joined #ruby
_sfiguser has quit [Remote host closed the connection]
aupadhye has joined #ruby
code_zombie_ has quit [Ping timeout: 246 seconds]
InfinityFye has quit [Ping timeout: 240 seconds]
high_fiver has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
dcunit3d has joined #ruby
yabbes has joined #ruby
umaaji has quit [Quit: Leaving...]
ramfjord has joined #ruby
aupadhye is now known as aupadhye|busy
aupadhye|busy is now known as aupadhye
jinie_ has quit [Ping timeout: 255 seconds]
<dionysus69> hey
<dminuoso> o/
<dionysus69> is there a ruby library that can take one photo/pdf and compare it to another and see if there's a difference?
<dionysus69> i am trying to validate if user uploads a signed document, physically signed and scanned
high_fiver has quit [Ping timeout: 255 seconds]
kapil___ has joined #ruby
dcunit3d has quit [Ping timeout: 260 seconds]
jinie_ has joined #ruby
<dminuoso> dionysus69: What algorithm are you looking for?
<dionysus69> meaning?
ramfjord has quit [Ping timeout: 260 seconds]
<dionysus69> I am looking for some library that can analyze png/jpg/pdf as a photo
<dionysus69> and detect if changes have been made, like a signature for example
dennisvennink has joined #ruby
<dminuoso> dionysus69: There's various metrics to go by.
<dminuoso> dionysus69: RMSE, PSNR, SSIM
<dminuoso> dionysus69: But if you want to look for specific things being changed you basically have no choice than to find a machine learning solution.
<dionysus69> hmm that quickly became overly complicated :D
<dminuoso> dionysus69: And those btw are more quality focused.
<dminuoso> Then there's things like perceptually based metrics..
<dionysus69> ahh
<dminuoso> dionysus69: If it was just a digital image it would be simple. But because the image was re-digitized, you have to assume that the image was not aligned perfectly, slightly folded..
<dminuoso> Different lightning
<dminuoso> Bad printer
<dionysus69> I have no idea what you are talking about to be honest :D I never delved into machine learning :)
<dminuoso> dionysus69: I mean what you could do, is provide a box and give some graphical hints to find that box. That could simplify the process.
<dionysus69> step one would be to crop a white rectangular shape, then compare to the original :S
<dminuoso> dionysus69: And how do you find where to crop?
<dionysus69> yep, I could do that, make a thick bordered rectangular box for example
<dionysus69> I could crop by giving whole document a second thick rectangular box, perhaps dashed?
<dminuoso> dionysus69: What if the paper was slightly folded so that the rectangular shape now appears as an octogon?
<dionysus69> dashed border for doc and solid border for signature for example
<Terens> Hello.
http_GK1wmSU has joined #ruby
<dionysus69> what is octogon :D
<dionysus69> looks like a angular circle :D
<dminuoso> dionysus69: think irregular octagon :P
http_GK1wmSU has left #ruby [#ruby]
<dionysus69> ok anyways
<Terens> I want to have several devices controlled by a centralized cloud app. First issue I have was with data sync. However data sync can be solved somewhat easilly since changes would be applied only on the cloud and sent to each device. My other issue is with RPC or something like that.
<dionysus69> i dont wanna become a AI professional just to find a signature :D I ll deal with that later :P
ramfjord has joined #ruby
<Terens> If I use websockets then there is no easy way to tell if device is connected or whether message is delivered. I have to implement timeouts/retrying/ordering myself.
<Terens> I looked at rabbitmq but I am not sure whether it solves my problems.
ramfjord has quit [Ping timeout: 255 seconds]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
bronson has joined #ruby
bane_ has joined #ruby
dstrunk has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
dstrunk has quit [Client Quit]
Paraxial has quit [Remote host closed the connection]
Paraxial has joined #ruby
Paraxial has quit [Remote host closed the connection]
Pumukel has joined #ruby
Paraxial has joined #ruby
Paraxial has quit [Remote host closed the connection]
Paraxial has joined #ruby
tacoboy has joined #ruby
Paraxial has quit [Remote host closed the connection]
ldnunes has joined #ruby
Paraxial has joined #ruby
cagomez has joined #ruby
FahmeF has quit []
Norm has quit [Quit: Norm]
cagomez has quit [Ping timeout: 276 seconds]
nopolitica has quit [Ping timeout: 240 seconds]
sleepee has quit [Ping timeout: 248 seconds]
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
apparition47 has joined #ruby
bmurt has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
InfinityFye has joined #ruby
DTZUZO has quit [Ping timeout: 255 seconds]
anisha has quit [Ping timeout: 240 seconds]
quiller has quit [Ping timeout: 255 seconds]
quiller has joined #ruby
thecommongeek has joined #ruby
anisha has joined #ruby
GinoMan has joined #ruby
<darix> terens: amqp can be a good transport medium for this. especially as it can have persistent queues (if that is important for you) other options might be zeromq, MQTT
<darix> a lightweight MQTT implementation is mosquitto
<darix> if i recall correctly newer rabbitmq supports it too?
cagomez has joined #ruby
dcunit3d has joined #ruby
konsolebox has quit [Ping timeout: 246 seconds]
GinoMan2440 has joined #ruby
sepp2k has joined #ruby
dn` has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
Beams has quit [Quit: .]
dcunit3d has quit [Ping timeout: 260 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
GinoMan has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
cadillac_ has joined #ruby
selim_ has joined #ruby
selim has quit [Ping timeout: 248 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.9]
Guest30814 has joined #ruby
<Guest30814> hi
<Guest30814> have any idea how should looks like csv with assosiation??
GodFather has joined #ruby
nopolitica has joined #ruby
<Guest30814> ok i have a array with [:name, :smth, :smt2, interests: [interest1:[:name, :id], interest2:[:name, :id] ]]
<Guest30814> how should build csv from this
oleo has joined #ruby
Pumukel has quit []
ta_ has quit [Remote host closed the connection]
ldnunes has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
Drakevr has quit [Ping timeout: 255 seconds]
Drakevr has joined #ruby
Xiti has joined #ruby
thecommongeek has quit [Quit: leaving]
_aeris_ has quit [Excess Flood]
Tempesta has joined #ruby
_aeris_ has joined #ruby
ldnunes has joined #ruby
TheHodge has joined #ruby
milardovich has joined #ruby
thbar has joined #ruby
segy_ has joined #ruby
sneep_ is now known as sneep
milardovich has quit [Remote host closed the connection]
agimenez has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
simmaniac has quit [Ping timeout: 255 seconds]
sysvalve has joined #ruby
segy has quit [Ping timeout: 260 seconds]
segy_ is now known as segy
milardovich has joined #ruby
anisha has quit [Read error: Connection reset by peer]
agimenez has quit [Ping timeout: 276 seconds]
anisha has joined #ruby
thbar has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
<guardian> hello, when using to_yaml on a hash, when keys are symbols they are serialized with a leading ':'
<guardian> is there a way to avoid that?
vali has quit [Quit: vali]
dcunit3d has joined #ruby
rabajaj has quit [Quit: Leaving]
dcunit3d has quit [Ping timeout: 240 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us_ has quit [Remote host closed the connection]
imajes has joined #ruby
MarkBilk has joined #ruby
cdg has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
imajes has quit [Quit: Linkinus - http://linkinus.com]
DLSteve has joined #ruby
ramfjord has joined #ruby
ur5us has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 268 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
t-recx has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
swills has quit [Remote host closed the connection]
nobitanobi has quit [Ping timeout: 255 seconds]
noe has quit [Quit: noe]
DTZUZO has joined #ruby
noe has joined #ruby
swills has joined #ruby
cdg has quit [Remote host closed the connection]
nobitanobi has joined #ruby
thejoecarroll has quit [Ping timeout: 240 seconds]
xenops has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
thejoecarroll has joined #ruby
noe has quit [Quit: noe]
acalycine has quit [Ping timeout: 240 seconds]
Rapture has joined #ruby
noe has joined #ruby
Mon_Ouie has joined #ruby
tomphp has joined #ruby
alex`` has joined #ruby
tomphp has quit [Client Quit]
dcunit3d has joined #ruby
Guest30814 has quit [Remote host closed the connection]
segy_ has joined #ruby
synthroid has joined #ruby
chouhoulis has joined #ruby
segy has quit [Ping timeout: 260 seconds]
segy_ is now known as segy
dcunit3d has quit [Ping timeout: 260 seconds]
Terens has quit [Quit: Page closed]
<darix> guardian: make the keys strings before you serialize them
<guardian> sounds like the only option
nobitanobi has quit []
Ishido has joined #ruby
houhoulis has joined #ruby
faraco has joined #ruby
faraco has left #ruby ["Leaving"]
houhoulis has quit [Remote host closed the connection]
runescape07rsps has joined #ruby
impermanence has joined #ruby
rippa has joined #ruby
<darix> guardian: you arent the first person who needs it ;)
[Butch] has joined #ruby
ryzokuken has joined #ruby
<impermanence> I need to get the sums and means of attribute values from an array of objects based on a particular object attribute
<impermanence> Is there a Ruby way to do this?
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
bruno- has joined #ruby
govg has quit [Ping timeout: 246 seconds]
mabus44 has joined #ruby
eip` has joined #ruby
<eip`> hi guys, ruby noob here, I have a datamapper::collection, how can I print on screen a field of it ?
<eip`> hope question is clear enough
<Mon_Ouie> impermanence: Use group_by(&:category) to get a hash that maps each category to an array of objects of that category, then reduce to calculate the sums
<impermanence> Mon_Ouie: oh, okay. I'll start there.
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<impermanence> I have to drop for one minute
guacamole has joined #ruby
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
noname1 has joined #ruby
polishdub has joined #ruby
vondruch has quit [Quit: vondruch]
impermanence has joined #ruby
vondruch has joined #ruby
synthroi_ has joined #ruby
jasondotstar has quit [Ping timeout: 240 seconds]
acalycine has joined #ruby
acalycine has joined #ruby
acalycine has quit [Changing host]
vondruch_ has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 240 seconds]
synthroid has quit [Ping timeout: 276 seconds]
guacamole has joined #ruby
nadir has joined #ruby
ana_ has quit [Ping timeout: 255 seconds]
acalycine has quit [Ping timeout: 240 seconds]
conta has quit [Ping timeout: 255 seconds]
rgtk has quit [Ping timeout: 248 seconds]
guacamole has quit [Client Quit]
guacamole has joined #ruby
polishdub has quit [Quit: leaving]
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
eelster has joined #ruby
<eip`> lets say I do something like: data = blabla::bla.first(:name => name)
guacamole has quit [Client Quit]
<eip`> with data.inspect I can see the fields, in this case "name"
<eip`> but what if I had more fields, and I wanted to just print the "name" field?
guacamole has joined #ruby
guacamole has quit [Client Quit]
dar123 has joined #ruby
guacamole has joined #ruby
chouhoulis has quit [Remote host closed the connection]
guacamole has quit [Client Quit]
impermanence has joined #ruby
<impermanence> Mon_Oui: can you paste your original response to me, please? I lost my session, but wanted to ask you a question.
guacamole has joined #ruby
<Mon_Ouie> Sure
<Mon_Ouie> impermanence: Use group_by(&:category) to get a hash that maps each category to an array of objects of that category, then reduce to calculate the sums
<impermanence> Mon_Ouie: thank you
<impermanence> Mon_Ouie: what do you mean when you say "reduce"?
<Mon_Ouie> &ri Enumerable#reduce
cahoots has joined #ruby
code_zombie_ has joined #ruby
GinoMan1423 has joined #ruby
InfinityFye has quit [Quit: Leaving]
GinoMan2440 has quit [Ping timeout: 260 seconds]
digitalnomad has joined #ruby
Guest53439 is now known as Tristan-Speccy
bronson has joined #ruby
cahoots has quit [Ping timeout: 276 seconds]
TomyWork has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
brent__ has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
vindvaki has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
polishdub has joined #ruby
dar123 has quit [Ping timeout: 246 seconds]
rgtk has joined #ruby
leandrobighetti has quit []
brw has joined #ruby
kahra has joined #ruby
sleepee has joined #ruby
mark_66 has quit [Remote host closed the connection]
conta has joined #ruby
eelster has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 260 seconds]
ozcanesen has joined #ruby
conta has quit [Client Quit]
acalycine has joined #ruby
acalycine has joined #ruby
acalycine has quit [Changing host]
howdoi has joined #ruby
mabus44 has quit [Ping timeout: 260 seconds]
cam27 has joined #ruby
Tempesta has quit [Quit: See ya!]
acalycine has quit [Ping timeout: 260 seconds]
polishdub has quit [Remote host closed the connection]
TomyLobo3 has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polishdub has joined #ruby
tomphp has joined #ruby
vindvaki has joined #ruby
FahmeF has joined #ruby
gusrub has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erry has quit [Quit: WeeChat 1.7.1]
erry has joined #ruby
erry has left #ruby [#ruby]
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
impermanence has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
aupadhye has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
tvw has quit [Remote host closed the connection]
cagomez has joined #ruby
sysvalve has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
http_GK1wmSU has joined #ruby
eckhardt has joined #ruby
http_GK1wmSU has left #ruby [#ruby]
Silthias has quit [Ping timeout: 255 seconds]
inoperable has quit [Quit: user rectified]
ozcanesen has joined #ruby
inoperable has joined #ruby
Azure has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
cahoots has joined #ruby
cahoots has quit [Client Quit]
Azure has joined #ruby
conta has joined #ruby
dviola has quit [Read error: Connection timed out]
eelster has joined #ruby
dviola has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
Diogo_ has joined #ruby
vindvaki has quit [Ping timeout: 240 seconds]
Diogo_ has quit [Client Quit]
Diogo has joined #ruby
Diogo has quit [Client Quit]
Diogo has joined #ruby
phinxy has joined #ruby
bruno- has joined #ruby
ramfjord has joined #ruby
mabus44 has joined #ruby
mostlybadfly has joined #ruby
synthroi_ has quit []
conta has quit [Ping timeout: 240 seconds]
rgtk has quit [Ping timeout: 240 seconds]
cagomez_ has joined #ruby
gusrub has quit [Remote host closed the connection]
cagomez has quit [Read error: Connection reset by peer]
cagomez_ has quit [Remote host closed the connection]
noname1 has quit [Quit: WeeChat 1.9]
Silthias has joined #ruby
inoperable has quit [Remote host closed the connection]
gusrub has joined #ruby
charliesome has joined #ruby
banisterfiend has joined #ruby
FahmeF has quit [Remote host closed the connection]
apparition47 has quit [Quit: Bye]
opekktar has joined #ruby
opekktar has quit [Remote host closed the connection]
mustaffa_ has quit [Ping timeout: 260 seconds]
acalycine has joined #ruby
acalycine has joined #ruby
acalycine has quit [Changing host]
dmtd has joined #ruby
acalycine has quit [Ping timeout: 260 seconds]
mustaffa_ has joined #ruby
ruby-lang342 has joined #ruby
inoperable has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ycyclist has joined #ruby
maryo has joined #ruby
ruby-lang342 has quit [Ping timeout: 260 seconds]
<ycyclist> What is the function, in ruby, of a multi-line string continued with \ before end of line?
DLSteve has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 260 seconds]
<ycyclist> \ looks pretty fallible to me. Why not just use + at end of line. Then you're not screwed by a stray space.
<gizmore> performance
<gizmore> although an optimizer will catch it soon
<ycyclist> But how can performance be important if you are doing it in initialization? After all, you probably do it once.
<ycyclist> Okay, so probably no good reason in this day and age.
<ycyclist> Thanks.
hutch34 has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
jackjackdripper has joined #ruby
minimalism has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
eelster has quit [Ping timeout: 260 seconds]
ryzokuken has quit [Read error: Connection reset by peer]
brendan- has quit [Ping timeout: 260 seconds]
ryzokuken has joined #ruby
cagomez has joined #ruby
ryzokuken has quit [Remote host closed the connection]
yabbes has quit [Ping timeout: 276 seconds]
ycyclist has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
rgtk has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
maryo has quit [Ping timeout: 255 seconds]
<impermanence> Is there a way to sort in ascending order the string keys of my hash being returned by group_by(&:category)?
<impermanence> I hope that makes sense
cagomez has joined #ruby
bronson has joined #ruby
Dimik has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
sleepee has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 255 seconds]
mustaffa__ has joined #ruby
mustaffa_ has quit [Ping timeout: 255 seconds]
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
<runescape07rsps> why
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mtkd has quit [Ping timeout: 276 seconds]
marr123 has joined #ruby
<Zarthus> impermanence: that sounds RoR related
mtkd has joined #ruby
<baweaver> &ri Enumerable#group_by
<baweaver> That one is Ruby.
marr123 has quit [Remote host closed the connection]
jackjackdripper1 has joined #ruby
<baweaver> impermanence: technically hashes aren't supposed to be sorted.
<baweaver> what are you trying to do?
<Zarthus> It sounded like he was executing a MySQL group_by statement
<Zarthus> I don't know what &:category would be otherwiswe
<baweaver> &ri Symbol#to_proc
marr123 has joined #ruby
tomphp has quit [Ping timeout: 240 seconds]
<baweaver> that basically
jackjackdripper has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
<baweaver> >> class Person; def meth; 1 end end; [Person.new, Person.new].map(&:meth)
<ruby[bot]> baweaver: # => [1, 1] (https://eval.in/841703)
tomphp has joined #ruby
<baweaver> RoR would be group(:symbol)
mikecmpbll has quit [Read error: Connection reset by peer]
<impermanence> baweaver: okay. I needed to convert my hash to an array at the end anyway, which I am doing now, so I'll just sort at the end, I think
<baweaver> sort_by -> reverse
<baweaver> or sort_by { |x| -x }
<baweaver> >> [1,2,3, -1, 5, 0].sort_by { |x| x }
<ruby[bot]> baweaver: # => [-1, 0, 1, 2, 3, 5] (https://eval.in/841706)
<baweaver> >> [1,2,3, -1, 5, 0].sort_by { |x| -x }
<ruby[bot]> baweaver: # => [5, 3, 2, 1, 0, -1] (https://eval.in/841707)
<baweaver> toy examples, but you get the gist of it
<baweaver> In actuality hashes in Ruby _are_ sorted but I wouldn't make a habit of relying on that one
ozcanesen has joined #ruby
<baweaver> if someone makes that a performance gain you're in for it later.
<baweaver> be back later.
<impermanence> bawaever: thank you, cool.
mikecmpbll has joined #ruby
ozcanesen has quit [Client Quit]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
eightlimbed has joined #ruby
acalycine has joined #ruby
acalycine has joined #ruby
acalycine has quit [Changing host]
guacamole has joined #ruby
herbmillerjr has quit [Ping timeout: 240 seconds]
kmhn has joined #ruby
<impermanence> some_array.map { |x, y| y - x} is throwing NoMethodError: undefined method `-' for nil:NilClass
<impermanence> this does not happen for x - y
acalycine has quit [Ping timeout: 240 seconds]
guacamole has quit [Remote host closed the connection]
jordanm has quit [Ping timeout: 260 seconds]
weaksauce has joined #ruby
jordanm has joined #ruby
<baweaver> impermanence: what's in some_array?
maryo has joined #ruby
dionysus69 has joined #ruby
<baweaver> because y is nil, and if y is nil then it'd still crash the other way
ramfjord has joined #ruby
<baweaver> >> 5 - nil
<ruby[bot]> baweaver: # => nil can't be coerced into Fixnum (TypeError) ...check link for more (https://eval.in/841712)
mtkd has quit [Ping timeout: 248 seconds]
vuoto has joined #ruby
maryo has quit [Ping timeout: 240 seconds]
nopolitica has quit [Ping timeout: 255 seconds]
<havenwood> >> module Impermenence; module_function def - _; 42 end end; some_array = [[Impermenence, nil]]; some_array.map { |x, y| x - y }
<ruby[bot]> havenwood: # => [42] (https://eval.in/841713)
<havenwood> >> module Impermenence; module_function def - _; 42 end end; some_array = [[Impermenence, nil]]; some_array.map { |x, y| y - x }
<ruby[bot]> havenwood: # => undefined method `-' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/841714)
clamstar has quit [Ping timeout: 240 seconds]
<havenwood> impermanence: show the code!
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
Muz has quit [Ping timeout: 240 seconds]
moeabdol has quit [Quit: WeeChat 1.9]
Muz has joined #ruby
mtkd has joined #ruby
ramfjord has joined #ruby
<impermanence> sorry :) I was writing other code
<impermanence> one sec here
ivanskie has joined #ruby
<ivanskie> hi all
<ivanskie> any Savon / SOAP experts heaarrrr?
eightlimbed has quit [Ping timeout: 240 seconds]
<impermanence> arr1 = [ bunch of ints ] ; arr2 = [ bunch of ints ] ; arr1.zip(arr2).map { |x, y| y - x }
<ivanskie> first time trying out savon, or dealing with soap overall. and my request in soapui works. but in savon i keep getting errors. and i don't understand what im missing. or how to see where the problem is. rather what the request looks like in savon to compare it to soapui
ramfjord has quit [Ping timeout: 240 seconds]
<impermanence> I guess zip is my problem probably?
<herwin> are the arrays the same size?
jenrzzz has joined #ruby
<impermanence> one sec
ramfjord has joined #ruby
<impermanence> I believe not but hang on
<impermanence> my repl was suggesting that didn't matter; that zip handled that nicely :)
<impermanence> not necc same size
<baweaver> what exactly are you trying to do?
<baweaver> because that'll crash
<impermanence> oh
<impermanence> trying to do:
<baweaver> >> [1,2,3].zip([1,2]) { |x,y| x - y }
<ruby[bot]> baweaver: # => nil can't be coerced into Fixnum (TypeError) ...check link for more (https://eval.in/841717)
<impermanence> if two arrays have element at same index, subtract; if not, don't
<baweaver> is one always longer than the other
<baweaver> or is there any way to know that?
<impermanence> no way to know
<impermanence> from pry: [[1, 1], [2, 2], [3, nil]]
clamstar has joined #ruby
<impermanence> nvm pry threw the error you listed above
<impermanence> once I tried to map that is
milardovich has quit []
ramfjord has quit [Ping timeout: 248 seconds]
<impermanence> if they're the same length that works great
<baweaver> then you need to write a conditional that gives you x if no y, y if no x, and y - x if both
ramfjord has joined #ruby
moeabdol has joined #ruby
bronson has joined #ruby
<baweaver> havenwood: what gives with zip's block arg?
<baweaver> >> [1,2,3].zip([1,2]) { |arr| arr.first }
<ruby[bot]> baweaver: # => nil (https://eval.in/841722)
<baweaver> where arr is very clearly something like [1,1]
ryzokuken has joined #ruby
<baweaver> Ok, fine, the doc says it returns nil but that's silly.
<havenwood> baweaver: yeah, isn't that odd - it's just used for side effects
<baweaver> >> [1,2,3].zip([1,2]) { |arr| arr = arr.first }
<ruby[bot]> baweaver: # => nil (https://eval.in/841723)
* baweaver grumbles
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
bronson has quit [Ping timeout: 246 seconds]
<ivanskie> nevermind its not actually working in soapui
<ivanskie> damn this is so stupid and frustrating why can't they write a proper web service geez apc. comeon
<ivanskie> wsdl is from 2009
Bock has quit [Ping timeout: 276 seconds]
CacoS has joined #ruby
nopolitica has joined #ruby
mabus44 has quit [Ping timeout: 248 seconds]
digitalnomad has joined #ruby
millerti has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
nopolitica has quit [Ping timeout: 246 seconds]
A124 has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
nopolitica has joined #ruby
ryzokuken has quit [Quit: Leaving]
acalycine has joined #ruby
cagomez has quit [Ping timeout: 246 seconds]
jaruga has quit [Quit: jaruga]
jaruga has joined #ruby
nopolitica has quit [Ping timeout: 255 seconds]
acalycine has quit [Ping timeout: 240 seconds]
sneakerhax has joined #ruby
jaruga has quit [Ping timeout: 268 seconds]
kyle__ has joined #ruby
<kyle__> So.... does '~/foo' no longer work in File.open() or DBM.new()?
gusrub has quit [Remote host closed the connection]
<Mon_Ouie> I don't think it ever worked
mabus44 has joined #ruby
<Mon_Ouie> You need to expand it yourself using File.expand_path
<kyle__> Mon_Ouie: On linux, BSD and OSX it worked for ages. Up until now.
<kyle__> I've had it in my scripts going back to 1.8
gusrub has joined #ruby
* kyle__ freely admits that maybe it _never_ should have worked, but it did.
banisterfiend has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
cagomez has joined #ruby
vuoto has quit [Quit: Lost terminal]
vuoto has joined #ruby
<Mon_Ouie> That doesn't seem true though: https://eval.in/841728
<Mon_Ouie> Wait, I'm just getting different results as I re-run it for some reason
acalycine has joined #ruby
acalycine has joined #ruby
acalycine has quit [Changing host]
cagomez has quit [Ping timeout: 248 seconds]
<Mon_Ouie> I guess it just doesn't show any output if a permission error occurs during the execution
dstrunk has joined #ruby
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acalycine has quit [Ping timeout: 276 seconds]
guacamole has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sspreitz has joined #ruby
ted_ has joined #ruby
ted_ has quit [Read error: Connection reset by peer]
howdoi has quit [Quit: Connection closed for inactivity]
phinxy has quit [Read error: Connection reset by peer]
phinxy has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
<kyle__> Mon_Ouie: I think it's new behavior, even if it shouldn't be. A script I wrote in March of this year did in fact work using this. Before my most recent release-upgrade.
<kyle__> I just had to search through for scripts I did that in, and the most recent is March 7th.
<kyle__> It was a quick and dirty script, don't judge me too harshly ;) http://paste.ubuntu.com/25242078/
<impermanence> What is the correct way to perform: some_array_of_ints.map { |x| sum += x.num1 += x.num2 } ?
<impermanence> What is the correct way to perform: some_array_of_ints.map { |x| x.num1 += x.num2 } ?
<impermanence> first one is wrong, sorry
<impermanence> arr, so that works
<impermanence> what I meant was:
tomphp has quit [Ping timeout: 260 seconds]
<impermanence> some_array_of_ints.map { |x| sum = x.num1 += x.num2 } ?
<impermanence> nope
bronson has joined #ruby
ijustcount has joined #ruby
tomphp has joined #ruby
A124 has joined #ruby
<impermanence> i worked it out ;)
acalycine has joined #ruby
ijustcount has quit [Remote host closed the connection]
_sfiguser has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
andrzejku has joined #ruby
tomphp has quit [Ping timeout: 240 seconds]
ijustcount has joined #ruby
acalycine has quit [Ping timeout: 260 seconds]
__Yiota has joined #ruby
tomphp has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dstrunk has quit [Quit: Textual IRC Client: www.textualapp.com]
ResidentBiscuit has joined #ruby
<cjohnson> sure you don't want reduce?
<cjohnson> if you are wanting to sum them, you probably want to reduce
FastJack has quit [Ping timeout: 258 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
cagomez has joined #ruby
<baweaver> &ri Enumerable impermanence
<baweaver> you should read through that a few times
<baweaver> it'll clear a lot of your problems up
<impermanence> baweaver: cool.
<baweaver> cjohnson: 2.4.x introduced a sum method as well
<baweaver> but reduce was used beforehand, you're right.
Diogo has quit [Quit: Connection closed for inactivity]
cagomez has quit [Ping timeout: 260 seconds]
ltem has quit [Quit: Leaving]
FastJack has joined #ruby
<baweaver> &ri Array#sum
<baweaver> impermanence: if you have a recent version of ruby you can use sum
<impermanence> baweaver: I do and will work with that
<baweaver> Mind, there's a lot to learn around Enumerable and all that so it takes a bit
hutch34 has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
dionysus69 has joined #ruby
hutch34 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
Rapture has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
A124 has quit [Quit: '']
andrzejku has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has joined #ruby
acalycine has joined #ruby
acalycine has joined #ruby
acalycine has quit [Changing host]
cagomez has quit [Read error: Connection reset by peer]
A124 has joined #ruby
mim1k has quit [Ping timeout: 276 seconds]
cagomez has joined #ruby
tvw has joined #ruby
domgetter has quit [Ping timeout: 276 seconds]
CacoS has quit [Read error: Connection reset by peer]
acalycine has quit [Ping timeout: 276 seconds]
baroquebobcat has joined #ruby
tacoboy has quit [Read error: Connection reset by peer]
nopolitica has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
Sammichmaker has quit [Ping timeout: 248 seconds]
nopolitica has quit [Ping timeout: 255 seconds]
eightlimbed has joined #ruby
ijustcount has quit [Remote host closed the connection]
bronson has joined #ruby
phinxy has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
bronson has quit [Ping timeout: 248 seconds]
sepp2k has quit [Quit: Leaving.]
mim1k has joined #ruby
benlieb has quit [Quit: benlieb]
johnny56 has quit [Ping timeout: 264 seconds]
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frem has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli is now known as marxarelli|afk
FahmeF has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 240 seconds]
GinoMan1423 has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
FahmeF has quit [Ping timeout: 260 seconds]
eightlimbed has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
tom69 has joined #ruby
ldnunes has quit [Quit: Leaving]
FahmeF has joined #ruby
yeticry_ has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
yeticry has quit [Ping timeout: 240 seconds]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gusrub has quit [Remote host closed the connection]
Bhootrk_ has joined #ruby
acalycine has joined #ruby
acalycine has joined #ruby
acalycine has quit [Changing host]
eckhardt has joined #ruby
tom69 has left #ruby ["WeeChat 1.9"]
acalycine has quit [Ping timeout: 268 seconds]
mabus44 has quit [Ping timeout: 258 seconds]
dar123 has joined #ruby
ivanskie has quit [Quit: Page closed]
_sfiguser has quit [Quit: Leaving]
polishdub has quit [Quit: leaving]
bronson has joined #ruby
eightlimbed has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bane_ has quit [Quit: Konversation terminated!]
[Butch] has quit [Quit: I'm out . . .]
bronson has quit [Ping timeout: 276 seconds]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnny56 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has quit [Ping timeout: 258 seconds]
eightlimbed has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
vuoto has quit [Remote host closed the connection]
Ishido has quit [Ping timeout: 240 seconds]
dar123 has quit [Read error: Connection reset by peer]
FahmeF has quit [Remote host closed the connection]
tomphp has joined #ruby
tvw has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
preyalone has joined #ruby
dviola has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
dviola has joined #ruby
sepp2k1 has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
noe has quit [Quit: noe]
nowhere_man has joined #ruby
eightlimbed has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
jinie_ has quit [Ping timeout: 260 seconds]
jinie_ has joined #ruby
acalycine has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
foxxx0 has quit [Quit: WeeChat 1.8]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
gix has quit [Ping timeout: 240 seconds]
foxxx0 has joined #ruby
ramfjord has joined #ruby
acalycine has quit [Ping timeout: 248 seconds]
KeyJoo has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
ramfjord has quit [Ping timeout: 260 seconds]
gix has joined #ruby
ramfjord has joined #ruby
dennisvennink has joined #ruby
sleepee has joined #ruby
GodFather has joined #ruby
zapata has joined #ruby
KeyJoo has quit [Ping timeout: 260 seconds]
brent__ has quit [Remote host closed the connection]
bronson has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
ledestin has joined #ruby
nopolitica has joined #ruby
lxsameer has joined #ruby
eightlimbed has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
grant has joined #ruby
eightlimbed has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
goyox86_ has joined #ruby
jphase has quit [Disconnected by services]
ramfjord has joined #ruby
brent__ has joined #ruby
<cam27> is there a plugin that will do atuo complete on code in vim does anyone know? So far the internet is saying no.
tomphp has joined #ruby
dennisvennink has joined #ruby
QualityAddict has joined #ruby
bronson has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
eightlimbed has quit [Read error: Connection reset by peer]
Leo__ has joined #ruby
SeepingN has joined #ruby
Leo__ has quit [Client Quit]
Bebichua has joined #ruby
<Bebichua> hello everyone
<Bebichua> I need to configure a DBI connection to a mysql database, so far without success.
sneakerhax has quit [Ping timeout: 268 seconds]
Bebichua_ has joined #ruby
<Bebichua_> hello everyone
benlieb has quit [Quit: benlieb]
brent__ has quit [Remote host closed the connection]
dcunit3d has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
cahoots has joined #ruby
Bebichua_ has quit [Ping timeout: 260 seconds]
Bebichua has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<cahoots> i'm running into a case frequently where i have a method does same lifting, let's call it "params()", and then i want to store that to a local variable to reuse efficiently. but i can't name it "params" because that would be weird... so would you call it "get_params()"? "fetch_params()"?
<cahoots> let's get pedantic
nowhere_man has joined #ruby
<yorickpeterse> cahoots: you mean you'd end up with something like `params = self.params`?
<yorickpeterse> the name you'd give both method and variable really depends on what the method does
<cahoots> yorickpeterse, yes, that's what i'd end up with
<cahoots> the method is just split out to keep each method smal
acalycine has joined #ruby
acalycine has joined #ruby
acalycine has quit [Changing host]
hutch34 has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
alveric3 has joined #ruby
<yorickpeterse> if the result of the method is always the same you could store it in an instance variable
<yorickpeterse> `def params; @params ||= ...; end`
dennisvennink has quit [Max SendQ exceeded]
acalycine has quit [Ping timeout: 268 seconds]
cam27 has quit [Quit: cam27]
dennisvennink has joined #ruby
alveric2 has quit [Ping timeout: 260 seconds]
t-recx has quit [Read error: Connection reset by peer]
t-recx has joined #ruby
ramfjord has joined #ruby
nopolitica has quit [Ping timeout: 246 seconds]
dennisvennink has quit [Read error: Connection reset by peer]
dcunit3d has quit [Ping timeout: 240 seconds]
nopolitica has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
impermanence has joined #ruby
herbmillerjr has joined #ruby
<cahoots> yorickpeterse, i guess one thing i'm wondering is, is it considered bad form to name a local var the same as a method? does the interpreter get confused sometimes?
mostlybadfly has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Read error: Connection reset by peer]
ragnar has joined #ruby
nowhere_man has joined #ruby
<ragnar> I need to open several binary files in a directory. For each file I need to edit it by inserting 65 byes of metadata starting at the beginning of file. I can't seem to figure this out without overwriting the existing data. Any ideas?
kies has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
nopolitica has quit [Ping timeout: 255 seconds]