ericboehs has quit [Read error: Connection reset by peer]
cnsvc has quit [Remote host closed the connection]
ericboehs has joined #ruby
ansraliant has quit [Remote host closed the connection]
skyikot has quit [Ping timeout: 256 seconds]
mangold has quit [Ping timeout: 245 seconds]
mangold has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
ansraliant has joined #ruby
clemens3 has joined #ruby
jmcgnh_ has joined #ruby
jmcgnh_ is now known as jmcgnh
jmcgnh has quit [Changing host]
jmcgnh has joined #ruby
clemens3 has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
<dionysus69>
I was wondering the other day, I want to become a contributor to some starter grade repo, does anyone know any repo that needs help? notice: I am beginner in this realm, haven't really worked with gems so far
aufi has joined #ruby
clemens3 has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
blackmesa1 has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
bruce_lee has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
mangold has quit [Ping timeout: 252 seconds]
DTZUZO has quit [Ping timeout: 250 seconds]
Tuor has joined #ruby
ellcs has joined #ruby
ansraliant has quit [Quit: My planet needs me]
nowhere_man has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
volkov has joined #ruby
conta has quit [Ping timeout: 250 seconds]
<TvL2386>
hey all, I've an issue with the ruby CSV class. I'm reading data from a mariadb database and create a csv. This data contains "weird chars". The CSV class is capable of generating the csv, but not reading it, because it will rais a CSV::MalformedCSVError
jmcgnh has quit [Remote host closed the connection]
richard55 has quit [Quit: Konversation terminated!]
apparition has joined #ruby
za1b1tsu has joined #ruby
<TvL2386>
al2o3-cr: ty that works!
<TvL2386>
al2o3-cr: reading about that option, makes me wonder why the generated csv is not RFC4180 compatible
vonfry has joined #ruby
Mike2__ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
<TvL2386>
al2o3-cr: upon further inspection: enabling that option does deal with the Exception, but the printed row on line 15 is an Array with only 1 String in there
elcontrastador has quit [Ping timeout: 245 seconds]
conta has quit [Remote host closed the connection]
conta has joined #ruby
conta has quit [Ping timeout: 245 seconds]
conta has joined #ruby
za1b1tsu has quit [Ping timeout: 245 seconds]
conta has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
catbusters has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
<phaul>
sylario: did you expect it to be undefined because there is no such local variable in that method? If local variable lookup fails it still can be a method name on self. This case it is, look at L14
eb0t has joined #ruby
roshanavand has joined #ruby
<sylario>
@phaul ho... that was an easy one.
<phaul>
this part of ruby is very tricky and can trip up ppl easily. if they have attr_writer :foo, and they do foo += 13 in their method. And they expect @foo to increase by 13. But it wouldn't!
conta1 has joined #ruby
mangold has joined #ruby
asphyxia has quit [Ping timeout: 240 seconds]
roshanavand has quit [Remote host closed the connection]
<phaul>
try stripping the lines from any "\n" at the end
<phaul>
puts "'#{line.strip}',"
<canton7>
xco, what makes you think it isn't doing the job?
<xco>
canton7: adding strip does what i want
<xco>
phaul: thanks :)
<phaul>
yw
conta1 has quit [Ping timeout: 268 seconds]
mangold has quit [Ping timeout: 240 seconds]
znz_jp has quit [Quit: kill -QUIT $$]
renich has joined #ruby
rippa has joined #ruby
orbyt_ has joined #ruby
znz_jp has joined #ruby
orbyt_ has quit [Client Quit]
renich_ has joined #ruby
renich has quit [Ping timeout: 244 seconds]
conta1 has joined #ruby
szulak_ has joined #ruby
spacesuitdiver has joined #ruby
renich has joined #ruby
renich_ has quit [Ping timeout: 246 seconds]
tdy1 has joined #ruby
loincloth has joined #ruby
AJA4350 has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
v01d4lph4 has joined #ruby
dinfuehr has joined #ruby
BH23 has joined #ruby
tdy1 has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
aufi has quit [Ping timeout: 246 seconds]
roshanavand has joined #ruby
manakanapa has quit [K-Lined]
jinie has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
jetpack_joe has joined #ruby
clemens3 has quit [Ping timeout: 240 seconds]
lucasb has joined #ruby
tpanarch1st has joined #ruby
roshanavand has quit [Ping timeout: 268 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has quit [Remote host closed the connection]
\void has joined #ruby
gigetoo has joined #ruby
Dbugger has joined #ruby
GodFather has joined #ruby
nowhere_man has quit [Ping timeout: 245 seconds]
moei has joined #ruby
jottr has joined #ruby
roshanavand has joined #ruby
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
<headius>
havenwood: worth pointing out that small benchmarks often end up doing nothing at all in TR, which isn't typical for e.g. a web application with lots of opaque IO
al2o3-cr has quit [Read error: Connection reset by peer]
tdy1 has joined #ruby
<havenwood>
headius: Good point. And I'm sure you're right that's what's happening with unused literals in that trivial benchmark.
loincloth has quit []
al2o3-cr has joined #ruby
eb0t has quit [Read error: Connection reset by peer]
eb0t has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
GodFather has quit [Remote host closed the connection]
GodFather has joined #ruby
[Butch] has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
Rapture has quit [Ping timeout: 246 seconds]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
gnufied has joined #ruby
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
akem has quit [Remote host closed the connection]
akem__ has joined #ruby
jottr_ has joined #ruby
orbyt_ has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
AJA4351 has joined #ruby
eblip has joined #ruby
Guest16678 has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
eb0t has quit [Ping timeout: 268 seconds]
robscomputer has joined #ruby
xco has quit [Quit: xco]
Guest16678 has joined #ruby
gix has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
Guest16678 has quit [Ping timeout: 272 seconds]
DTZUZO has joined #ruby
mikecmpbll has joined #ruby
tdy1 is now known as tdy
<TheBrayn>
Is there any reason to use 1 << 3 instead of 2 ** 3? I'm seeing this in some code I am reviewing
scrptktty has joined #ruby
<baweaver>
Unless you're in the context of bit-shifting, no.
<baweaver>
ohai scrptktty
<scrptktty>
Afternoon!
<TheBrayn>
I think the person writing this code is just trying to be purposefully obscure
<baweaver>
Typically I'd advise writing things as clearly as possible
<TheBrayn>
yes, absolutely
<baweaver>
Even if that means writing something a bit longer or more verbosely
<baweaver>
Mostly because I hate reading my own "clever" code later and trying to figure out what it is and why I did it that way.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver>
Amusingly I ended up deep into Lisp land
<havenwood>
baweaver: all those parens are a good sign that's true!
<baweaver>
Diffing s-expressions
<baweaver>
Going to see if it's possible to write something like this and have it work: converter(from: '[].map { |v| v.even? }', to: '[].map(&:even?)')
<baweaver>
I have most of the foundational pieces already, it's just generalizing the algorithm enough that it can intelligently do the conversions.
orbyt_ has joined #ruby
<baweaver>
Most of it would be being able to tell that undiff'd code branches are effectively wildcards
jottr has quit [Read error: Connection reset by peer]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul>
I had code that relied on some config boolean that came from further up. If true I had to do apply a bunch of gsub s on a string if false I had to not do it. It took some thinking to find a solution that removes the control argument, but it's really neat and reminds me of null pattern. instead of bool control I have an array of filters in the config. It can be empty array.