havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.2, 2.5.5, 2.4.5: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
darmou has quit [Ping timeout: 250 seconds]
themsay has quit [Remote host closed the connection]
themsay has joined #ruby
longshi has quit [Ping timeout: 250 seconds]
gix has quit [Ping timeout: 250 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
mangold has joined #ruby
fredolinhares has joined #ruby
ruby-lang200 has joined #ruby
<ruby-lang200> hi
<ruby-lang200> i search how i can install rvm and redmine
<ruby-lang200> i have write a tuto but, i can't see redmine with my browser, i get a 403 forbidden.
ammar has joined #ruby
zachk has quit [Quit: Leaving]
fredolinhares has quit [Quit: WeeChat 1.9.1]
fredolinhares has joined #ruby
Tharbakim has quit [Ping timeout: 250 seconds]
wsmoak_ has joined #ruby
wsmoak_ is now known as wsmoak
wsmoak has quit [Changing host]
wsmoak has joined #ruby
Tharbakim has joined #ruby
Tharbakim has quit [Changing host]
Tharbakim has joined #ruby
<ruby-lang200> nobody ?
mikecmpbll has quit [Quit: inabit. zz.]
cnsvc has joined #ruby
AJA4351 has joined #ruby
polishdub has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
fredolinhares has quit [Quit: WeeChat 1.9.1]
lucasb has quit [Quit: Connection closed for inactivity]
tau has quit [Ping timeout: 246 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
jrafanie has joined #ruby
<havenwood> ruby-lang200: An Apache configuration problem, I'd reckon. What version of Apache are you on?
<havenwood> ruby-lang200: Missing a "Require all granted", maybe?
<ruby-lang200> havenwood: hi
<havenwood> ruby-lang200: I'd suggest closely comparing with Passenger's latest docs for Apache: https://www.phusionpassenger.com/library/deploy/apache/deploy/ruby/#deploying-an-app-to-a-virtual-host-s-root
<ruby-lang200> it's possible but apache 2.4 can use old config. I look my apache version
<havenwood> From the Passenger docs it looks like you're supposed to `Require all granted` with Apache > 2.4
<ruby-lang200> apache2: Installé : 2.4.25-3+deb9u6 Candidat : 2.4.25-3+deb9u6
<havenwood> ruby-lang200: Well, you have "Allow from all" so check your ownership and permissions for the app dir.
<havenwood> Is everything 403ing? You might want to try the #passenger channel.
lytol has joined #ruby
<havenwood> Fun with Apache configurations!
ruby-lang706 has joined #ruby
<ruby-lang706> re
<ruby-lang706> then see #passenger channel
<ruby-lang706> ok, i'm not sur if my install is good.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby-lang706> I have use a french tutoriel, and, test install with debian stable.
ruby-lang200 has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lytol has quit [Remote host closed the connection]
ruby-lang706 has quit [Ping timeout: 256 seconds]
AJA4350 has quit [Remote host closed the connection]
esrse has joined #ruby
orbyt_ has joined #ruby
Swyper has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
takesi has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
t0xik has quit [Quit: Connection closed for inactivity]
cnsvc has joined #ruby
Swyper has joined #ruby
Swyper_ has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper_ has quit [Remote host closed the connection]
none_ has joined #ruby
Synthead has joined #ruby
<Synthead> I want to modify sources for a gem and have bundle compile it as-is
<Synthead> Is there a way I can do that?
Dbugger has quit [Ping timeout: 250 seconds]
SuperLag has quit [Ping timeout: 250 seconds]
SuperLag has joined #ruby
Swyper has joined #ruby
Tempesta has joined #ruby
mangold has joined #ruby
keden has quit [Ping timeout: 240 seconds]
keden has joined #ruby
m27frogy has joined #ruby
m27frogy has quit [Ping timeout: 272 seconds]
t0xik has joined #ruby
<t0xik> im learning ruby right now , and im curious, is there a continue; or goto; in ruby?
Swyper has quit [Remote host closed the connection]
Synthead has quit [Ping timeout: 245 seconds]
Puffball has quit [Remote host closed the connection]
poguez_ has quit [Quit: Connection closed for inactivity]
Swyper has joined #ruby
<baweaver> t0xik: No. What do you think you need it for?
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Synthead has joined #ruby
<evdubs> t0xik, maybe "next", "break", and "redo" will help? https://ruby-doc.org/core-2.6.1/doc/syntax/control_expressions_rdoc.html
<evdubs> t0xik, depending on what you're doing (like processing a list of elements), it might be "better code style" to use things like filter (called select in ruby), map, and, reduce
m27frogy has joined #ruby
m27frogy has quit [Read error: Connection reset by peer]
Synthead has quit [Ping timeout: 244 seconds]
m27frogy has joined #ruby
braincrash has quit [Quit: bye bye]
<t0xik> evdubs: thx!
<t0xik> i knew there had to be a continue equivalent
<t0xik> too bad we cant break out of a large nested set of loops with a "goto label;" which fair warning is the only reason to use goto's
braincrash has joined #ruby
<evdubs> curiously, what's your use case for large nested loops?
laaron- has joined #ruby
laaron has quit [Remote host closed the connection]
<baweaver> ^ that. It's called the XY problem, you want a specific solution and fixate on that when another solution may be available t0xik
<t0xik> evdubs: its a normal thing todo in the c language, which was my first language.
xco has quit [Quit: xco]
<t0xik> using a goto , to exit a set of loops without having to break through each one
<t0xik> its rare but , i was just curious. as i was reading "book of ruby"
<baweaver> Most of the time you use methods from Enumerable
<baweaver> Name a use case from C where you would use a goto and we can show you a method from Ruby to do the same
<t0xik> i just gave your a use case...
<havenwood> ?xkcd 292
<ruby[bot]> havenwood: I don't see no 292, whom should I tell about xkcd?
violentE has quit [Quit: Leaving]
<havenwood> t0xik: what are the loops doing?
<t0xik> and why would you think there would be a method to exit loops when loops are not an object
<havenwood> t0xik: the suggestion is more that you could be using something other than loops
<havenwood> t0xik: we can show you how to use goto, or catch a throw, but you'd likely be better off solving the problem without those
<havenwood> if you can think of a good example case where you'd use goto, we could propose alternatives
<havenwood> &>> catch(:t0xik) { loop { loop { loop { throw :t0xik, 42 } } } }
<rubydoc> # => 42 (https://carc.in/#/r/6l3q)
polishdub has quit [Quit: leaving]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Swyper has quit [Remote host closed the connection]
<havenwood> t0xik: loop is an object, in the sense that it's a method
<havenwood> &>> method(:loop).class.superclass
<rubydoc> # => Object (https://carc.in/#/r/6l3r)
<havenwood> t0xik: but methods can have side effects on things other than their receiver
<havenwood> so loop doesn't have to be a method for a method to effect it
xco has joined #ruby
xco has quit [Quit: xco]
tau has joined #ruby
xpika has quit [Ping timeout: 268 seconds]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
wsmoak has quit [Quit: Connection closed for inactivity]
jcarl43 has quit [Quit: WeeChat 2.4]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
stryek has quit [Quit: Connection closed for inactivity]
xpika has joined #ruby
alem0lars has joined #ruby
sagax has quit [Ping timeout: 246 seconds]
alem0lars has quit [Ping timeout: 250 seconds]
Inline has quit [Quit: Leaving]
sauvin has joined #ruby
reber has joined #ruby
iNs_ has joined #ruby
iNs has quit [Ping timeout: 256 seconds]
conta has joined #ruby
laaron- has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
laaron has joined #ruby
nowhere_man has joined #ruby
bambanx has quit [Quit: Leaving]
UncleCid__ has joined #ruby
UncleCid__ has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
pwnd_nsfw has joined #ruby
ferr has joined #ruby
Emmanuel_Chanel has joined #ruby
lido has joined #ruby
schleppel has joined #ruby
nowhere_man has quit [Ping timeout: 258 seconds]
tau has quit [Read error: Connection reset by peer]
grr12314 has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 244 seconds]
clemens3 has quit [Ping timeout: 246 seconds]
hahuang6- has quit [Quit: ZNC 1.7.1 - https://znc.in]
hahuang6- has joined #ruby
suukim has joined #ruby
tdy has quit [Ping timeout: 272 seconds]
za1b1tsu has joined #ruby
esrse has quit [Read error: Connection reset by peer]
takesi has quit [Quit: leaving]
dinfuehr has joined #ruby
dinfuehr_ has quit [Ping timeout: 250 seconds]
Nowaker has joined #ruby
salasrod has quit [Remote host closed the connection]
salasrod has joined #ruby
cd has quit [Ping timeout: 256 seconds]
esrse has joined #ruby
clemens3 has joined #ruby
claudiuinberlin has joined #ruby
cd has joined #ruby
aufi has joined #ruby
TomyWork has joined #ruby
kapil____ has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
<lido> any can give me a hint with aws chef ?
<lido> it complains
<lido> Error executing action `create` on resource 'remote_file[/tmp/rubygems-2.2.2.tgz]'
<lido> No such file or directory - /usr/local/bin/gem
<lido> /usr/local/bin/gem actually exits
meinside has quit [Quit: Connection closed for inactivity]
lxsameer has joined #ruby
andikr has joined #ruby
longshi has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
<dionysus69> YAML.dump(hash) is equivalent to hash.to_yaml right?
mikecmpbll has joined #ruby
<al2o3-cr> dionysus69: yeah, to_yaml just wraps YAML.dump
grr12314 has left #ruby [#ruby]
cd has quit [Quit: cd]
conta has quit [Quit: conta]
conta has joined #ruby
Ai9zO5AP has joined #ruby
dhollin3 has joined #ruby
dhollinger has quit [Read error: Connection reset by peer]
xpika has left #ruby [#ruby]
za1b1tsu has quit [Remote host closed the connection]
<dionysus69> thanks :)
_joes_ has joined #ruby
za1b1tsu has joined #ruby
reber has quit [Remote host closed the connection]
jottr has joined #ruby
lele has quit [Ping timeout: 240 seconds]
lele has joined #ruby
v01d4lph4 has joined #ruby
_joes_ has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby
longshi has quit [Ping timeout: 250 seconds]
sagax has joined #ruby
_joes_ has joined #ruby
nowhere_man has joined #ruby
Doow has joined #ruby
nowhere_man has quit [Ping timeout: 250 seconds]
themsay has quit [Ping timeout: 250 seconds]
stooj has quit [Ping timeout: 250 seconds]
stooj has joined #ruby
Ai9zO5AP has quit [Ping timeout: 250 seconds]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
ellcs has joined #ruby
laaron has joined #ruby
themsay has joined #ruby
esrse has quit [Ping timeout: 250 seconds]
mangold has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
jottr has quit [Quit: WeeChat 2.4]
Ai9zO5AP has joined #ruby
apparition has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
conta has quit [Ping timeout: 250 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
jottr has joined #ruby
conta has joined #ruby
def_jam has quit [Read error: Connection reset by peer]
aupadhye has joined #ruby
def_jam has joined #ruby
eblip has joined #ruby
eb0t has quit [Ping timeout: 246 seconds]
yield has joined #ruby
_joes_ has quit [Ping timeout: 250 seconds]
_joes_1 has joined #ruby
crankharder has joined #ruby
garyserj has joined #ruby
garyserj has quit [Client Quit]
txdv has quit [Ping timeout: 250 seconds]
<kke> Thread.pass until threads.none?(&:alive?) <-- eats all the cpu. sleep 0.1 until threads.none?(&:alive?) <-- does not eat the cpu.
stryek has joined #ruby
xco has joined #ruby
ldnunes has joined #ruby
<kke> 0.1 of course is a long time in this time of technology
bmurt has joined #ruby
beefjoe has joined #ruby
ec has quit [Ping timeout: 258 seconds]
beefjoe has quit [Client Quit]
KnownSyntax has quit [Ping timeout: 258 seconds]
txdv has joined #ruby
ec has joined #ruby
KnownSyntax has joined #ruby
yield has quit [Remote host closed the connection]
AJA4350 has joined #ruby
meinside has joined #ruby
Doow has quit [Quit: Leaving]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
yield has joined #ruby
yield has quit [Client Quit]
aupadhye has quit [Ping timeout: 250 seconds]
jottr_ has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
gb_away has quit [Read error: Connection reset by peer]
gb_away has joined #ruby
crankharder has quit [Ping timeout: 250 seconds]
aupadhye has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
mangold has quit [Quit: This computer has gone to sleep]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
ammar has quit [Quit: leaving]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
ammar has joined #ruby
_joes_1 has quit [Ping timeout: 246 seconds]
russt_ has quit [Quit: That's all, folks!]
naught-fowl has joined #ruby
ammar has quit [Quit: leaving]
ammar has joined #ruby
ammar has quit [Client Quit]
ammar has joined #ruby
russt has joined #ruby
griffindy has joined #ruby
longshi has joined #ruby
aupadhye has quit [Ping timeout: 245 seconds]
iMadper` has quit [Remote host closed the connection]
jrafanie has joined #ruby
aupadhye has joined #ruby
marz_d`ghostman has quit [Quit: Page closed]
_joes_ has joined #ruby
lucasb has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
pwnd_nsfw` has joined #ruby
cedm has joined #ruby
pwnd_nsfw has quit [Ping timeout: 245 seconds]
Emmanuel_Chanel has quit [Ping timeout: 250 seconds]
v01d4lph4 has quit [Read error: Connection reset by peer]
laaron has quit [Remote host closed the connection]
apparition has quit [Quit: Bye]
cedm has left #ruby ["Leaving"]
Rapture has joined #ruby
crankharder has joined #ruby
mostlybadfly has joined #ruby
nowhere_man has joined #ruby
spacesuitdiver has joined #ruby
_joes_ has quit [Ping timeout: 246 seconds]
grilix_ has joined #ruby
laaron has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby
nowhere_man has quit [Ping timeout: 250 seconds]
robotcars has quit [Remote host closed the connection]
robotcars has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
_joes_ has joined #ruby
Inline has joined #ruby
gnufied has quit [Remote host closed the connection]
mangold has joined #ruby
nowhere_man has joined #ruby
ericboehs has quit [Read error: Connection reset by peer]
AJA4350 has joined #ruby
conta has quit [Ping timeout: 255 seconds]
grilix_ has quit [Ping timeout: 255 seconds]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
Swyper has joined #ruby
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
naught-fowl has quit [Quit: Leaving]
tdy has joined #ruby
crankharder has quit [Ping timeout: 244 seconds]
rippa has joined #ruby
tdy has quit [Remote host closed the connection]
mangold has quit [Ping timeout: 268 seconds]
grilix_ has joined #ruby
wald0 has joined #ruby
crankharder has joined #ruby
mangold has joined #ruby
orbyt_ has joined #ruby
crankharder has quit [Ping timeout: 245 seconds]
crankharder has joined #ruby
blunckr has joined #ruby
blunckr has quit [Quit: Leaving.]
def_jam is now known as eb0t
za1b1tsu has quit [Remote host closed the connection]
ldnunes has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_joes_ has quit [Ping timeout: 255 seconds]
aufi has quit [Ping timeout: 255 seconds]
grilix has joined #ruby
ferr has quit [Quit: WeeChat 2.4]
_joes_ has joined #ruby
Swyper has quit [Remote host closed the connection]
tau has joined #ruby
ldnunes has joined #ruby
grilix_ has quit [Ping timeout: 245 seconds]
themsay has quit [Ping timeout: 245 seconds]
themsay has joined #ruby
polishdub has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wsmoak has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
Swyper has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 250 seconds]
aupadhye has joined #ruby
ellcs has quit [Ping timeout: 250 seconds]
Swyper has joined #ruby
orbyt_ has joined #ruby
conta has joined #ruby
Swyper has quit [Remote host closed the connection]
conta has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
orbyt_ has joined #ruby
Swyper has quit [Remote host closed the connection]
<ryouba> hi!
<ryouba> i'm trying to inherit from CSV, do something before CSV.parse, then call CSV.parse, but it's not working ... what am i doing wrong? https://gist.github.com/sixtyfive/0d2135ea1f30cffa3780078381e79f19
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<adam12> ryouba: You likely want CSV.read.
<ryouba> oh!
<ryouba> thank you adam12!
<ryouba> yes, that was it
* ryouba slaps himself
crankharder has quit [Ping timeout: 268 seconds]
claudiuinberlin has joined #ruby
andikr has quit [Remote host closed the connection]
poguez_ has joined #ruby
<adam12> ryouba: lol. sneaky method names are sneaky.
<ryouba> that's a nice way of looking at it :)
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
gnufied has joined #ruby
xco has quit [Quit: xco]
dhollin3 is now known as dhollinger
laaron has quit [Remote host closed the connection]
longshi has quit [Ping timeout: 250 seconds]
zachk has joined #ruby
laaron has joined #ruby
zachk has quit [Max SendQ exceeded]
zachk has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
nowhere_man has quit [Ping timeout: 255 seconds]
whathappens has joined #ruby
crankharder has quit [Ping timeout: 245 seconds]
_joes_ has quit [Ping timeout: 272 seconds]
<ryouba> hmm
<ryouba> wrt https://stackoverflow.com/questions/2650517/count-the-number-of-lines-in-a-file-without-reading-entire-file-into-memory ... is `wc -l` seriously the recommended fastest way of getting the number of lines in a file? o_O
Swyper has joined #ruby
<mnemon> it's definitely faster than doing it in ruby
<ryouba> hmm
<ryouba> interesting
<ryouba> *shrug*, then
conta has joined #ruby
renich_ has joined #ruby
cnsvc has joined #ruby
Swyper has quit [Remote host closed the connection]
renich has quit [Ping timeout: 255 seconds]
<adam12> ryouba: One of the answers (the one that calls f.getc) is _kinda_ similar to the C implementation (at least the FreeBSD one https://github.com/freebsd/freebsd/blob/master/usr.bin/wc/wc.c). You could benchmark them and see which perform better.
lxsameer has quit [Ping timeout: 245 seconds]
_joes_ has joined #ruby
<havenwood> ryouba: parallel with wc would be faster yet for that particular problem, or hadoop even
Synthead has joined #ruby
<havenwood> ryouba: it's pretty fast to just: File.open(filename).sum { 1 }
<havenwood> ryouba: it's not going to beat a multi-process, tailored approach - if speed is essential
<adam12> havenwood: nice trick with sum { 1 }.
<havenwood> adam12: tyty!
<havenwood> adam12: i felt a little guilty about not closing the file ;)
<ryouba> havenwood: i didn't understand ... "parallel with wc"?
<al2o3-cr> i conclude this is the fastest: File.read(foo).each_line.count
za1b1tsu has joined #ruby
<ytti> i belive that'll read entire file to memory
<adam12> al2o3-cr: Indeed!
<havenwood> ryouba: I mean the GNU Parallel command: https://www.gnu.org/software/parallel/parallel_tutorial.html
<al2o3-cr> computer come with enough memory now, i mean come on
<havenwood> ryouba: it's for executing other commands in parallel
jottr_ has quit [Ping timeout: 255 seconds]
<al2o3-cr> wc -l is fast enough, how fast do you want it?
<havenwood> al2o3-cr: ALL THE CORES!
<al2o3-cr> why?
Swyper has joined #ruby
<havenwood> al2o3-cr: To create heat so my hands don't ache.
<al2o3-cr> ah, haha ;)
<ryouba> havenwood: oh, okay! never heard of that ... *reads*
mikecmpbll has quit [Quit: inabit. zz.]
Swyper has quit [Remote host closed the connection]
<ytti> al2o3-cr, my point is, it'll be slow on large files
<al2o3-cr> ytti: oh sure.
<ytti> al2o3-cr, coimparedto something like File.foreach(filename).reduce(0) { |sum, _| sum+1 }
<al2o3-cr> ytti: File.foreach(filename).count
<ytti> fair enough
whathappens has quit []
_joes_ has quit [Ping timeout: 246 seconds]
<al2o3-cr> anyway `wc -l` from ruby will damn slow.
Synthead has quit [Remote host closed the connection]
<ytti> it offends my aesthethics too
clemens3 has quit [Ping timeout: 250 seconds]
gix has joined #ruby
grilix has quit [Ping timeout: 246 seconds]
grilix has joined #ruby
cnsvc has quit [Remote host closed the connection]
crankharder has joined #ruby
cow[moo] has joined #ruby
conta has quit [Quit: conta]
Devalo has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aupadhye has quit [Ping timeout: 250 seconds]
htc^ has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
orbyt_ has joined #ruby
livcd has quit [Ping timeout: 250 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
GreyHame has joined #ruby
<graft> wc -l from ruby will almost definitely be faster than anything involving ruby reading and scanning strings
GreyHame has quit [Client Quit]
<graft> in fact i would place money on it without doing any research
aupadhye has joined #ruby
<baweaver> It is, by about 10x graft
<baweaver> I was curious so I looked.
sauvin has quit [Remote host closed the connection]
<baweaver> I kinda wonder if that holds up in TruffleRuby
<baweaver> havenwood: `wc -l` vs `File.open(...).foreach.count` in TruffleRuby?
<baweaver> Don't have it installed on the work computer, should probably fix that
agent_white has joined #ruby
<adam12> Anyone seen a way to simulate ARGF? (single stream of endless File objects)
Devalo has quit [Remote host closed the connection]
Tempesta has quit [Quit: See ya!]
Devalo has joined #ruby
<adam12> Actually nm. I thought it was lazy but ARGF.read just reads in everything.
agent_white has quit [Quit: brb]
mikecmpbll has joined #ruby
<al2o3-cr> baweaver: prove it
<ryouba> shouldn't CSV be capable of reading in lines that have all non-empty fields quoted with some of the fields containing newlines and the end of a row having a windows line-ending?
Devalo has quit [Ping timeout: 250 seconds]
<ryouba> (it's giving "/usr/lib64/ruby/2.6.0/csv/parser.rb:273:in `parse': Do not allow except col_sep_split_separator after quoted fields in line 1. (CSV::MalformedCSVError)")
Devalo has joined #ruby
agent_white has joined #ruby
<al2o3-cr> baweaver: ?
gell5 has joined #ruby
<al2o3-cr> also, foreach on a file desc.
<al2o3-cr> i want to see figures.
<al2o3-cr> file obj*
claudiuinberlin has joined #ruby
<al2o3-cr> wc -l is ~10x slower on my machine
crankharder has quit [Ping timeout: 245 seconds]
Tempesta has joined #ruby
<al2o3-cr> we are talking about `` or %x() here yeah?
<al2o3-cr> so creating a subshell and all.
<al2o3-cr> graft: you anything to add?
<al2o3-cr> and i'll bet you too! how much?
livcd has joined #ruby
cd has joined #ruby
mostlybadfly has joined #ruby
<al2o3-cr> cd: /etc
zachk has quit [Changing host]
zachk has joined #ruby
livcd has quit [Ping timeout: 255 seconds]
brool has joined #ruby
RedSnarf has joined #ruby
aupadhye has quit [Ping timeout: 245 seconds]
lytol has joined #ruby
jmcgnh has quit [Excess Flood]
jmcgnh has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
AJA4350 has joined #ruby
aupadhye has joined #ruby
aupadhye has quit [Ping timeout: 268 seconds]
Devalo has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
Devalo has joined #ruby
suukim has quit [Quit: Konversation terminated!]
Devalo has quit [Ping timeout: 244 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
<ryouba> can someone take a look at https://gist.github.com/sixtyfive/ee0d1cf2878e2a36f2216e4ffefa0b66 ? CSV is being so goddamn stubborn :-(
jmcgnh has quit [Read error: Connection reset by peer]
hiroaki has joined #ruby
<Zarthus> ryouba: gist actually has csv detection, and tells you what is wrong
jmcgnh has joined #ruby
<Zarthus> ryouba: (in this case, a " is missing in ABSCHLUSS)
neuraload has joined #ruby
immortalinode has joined #ruby
immortalinode has quit [Client Quit]
neuraload has quit [Ping timeout: 246 seconds]
RedSnarf has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<al2o3-cr> ryouba: pass as options issue 66; liberal_parsing: {double_quote_outside_quote: true})
postmodern has joined #ruby
nowhere_man has joined #ruby
clemens3 has joined #ruby
mochiyoda has joined #ruby
orbyt_ has joined #ruby
claudiuinberlin has quit [Ping timeout: 258 seconds]
akem has joined #ruby
reber has joined #ruby
Deesl has joined #ruby
<al2o3-cr> ryouba: CSV.read('test.csv', liberal_parsing: {double_quote_outside_quote: true})
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Ping timeout: 250 seconds]
orbyt_ has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Ai9zO5AP has quit [Quit: WeeChat 2.4]
AJA4350 has joined #ruby
<al2o3-cr> ryouba: ???????????????
cgfbee has quit [Ping timeout: 245 seconds]
crankharder has joined #ruby
cgfbee has joined #ruby
<al2o3-cr> ryouba: Здравейте
za1b1tsu has quit [Remote host closed the connection]
<ryouba> al2o3-cr: sorry, got called away from the computer
<ryouba> al2o3-cr: and, hello!
<al2o3-cr> np
i1nfusion has quit [Remote host closed the connection]
<ryouba> Zarthus: there's two newlines, then the "missing" '"' is on the next line ... i think al2o3-cr saw it
Nicmavr has quit [Read error: Connection reset by peer]
i1nfusion has joined #ruby
livcd has joined #ruby
<Zarthus> i always thought csv was newline delimited
<Zarthus> fancy that
<ryouba> al2o3-cr: that still gives "/usr/lib64/ruby/2.6.0/csv/parser.rb:276:in `parse': Unquoted fields do not allow \r or \n in line 3. (CSV::MalformedCSVError)"
Nicmavr has joined #ruby
<ryouba> Zarthus: it's been years since i've seen something like this
<ryouba> it *should* work ... i mean, libreoffice makes it work without effort
<Zarthus> may the next case be many years from now too :)
<ryouba> heck yeah
<ryouba> this is the first time ruby's CSV library is letting me down
<Zarthus> i would say throwing an exception is expected in this case ;)
<Zarthus> just my personal opinion
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
ur5us has joined #ruby
Devalo has quit [Ping timeout: 244 seconds]
<ryouba> hmm
<ryouba> my personal opinion is that if libreoffice blows ruby out of the water something's not right
Devalo has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
kyrylo has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Swyper has joined #ruby
nucc has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
<al2o3-cr> ryouba: check the options out
<al2o3-cr> pretty sure they'll be one
<al2o3-cr> someone owes me a bet anyway!!!!
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Devalo has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
hiroaki has quit [Ping timeout: 255 seconds]
SeepingN has joined #ruby
ldnunes has quit [Quit: Leaving]
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Fernando-Basso has joined #ruby
grilix has quit [Ping timeout: 245 seconds]
_joes_ has joined #ruby
lytol has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 246 seconds]
ellcs has joined #ruby
<al2o3-cr> &>> %w(a b c d e).zip([Object.new].cycle)
<rubydoc> # => [["a", #<Object:0x000055b95f418ca0>], ["b", #<Object:0x000055b95f418ca0>], ["c",... check link for more (https://carc.in/#/r/6laj)
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> &>> (a b c d e).zip([Object.new].cycle).map { |m, o| o.send o } rescue 2
<rubydoc> # => 2 (https://carc.in/#/r/6laq)
Devalo has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
al2o3-cr has quit [Ping timeout: 246 seconds]
djdduty has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
reber has quit [Remote host closed the connection]
ur5us has quit []
nowhere_man has quit [Ping timeout: 258 seconds]
<ryouba> that guy sure has some anger
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ryouba> wow
<ryouba> attitude or no attitude ... *his* shit works
livcd has quit [Ping timeout: 250 seconds]
bmurt has joined #ruby
polishdub has quit [Remote host closed the connection]
nowhere_man has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
livcd has joined #ruby
Swyper has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
al2o3-cr has joined #ruby
tdy has joined #ruby
Swyper has joined #ruby
spacesuitdiver has quit [Ping timeout: 245 seconds]
bambanx has joined #ruby
Swyper has quit [Ping timeout: 250 seconds]
_joes_ has quit [Ping timeout: 250 seconds]
renich_ has quit [Quit: renich_]
renich_ has joined #ruby
Devalo has joined #ruby
<ryouba> gnight ruby
tau has quit [Quit: HAUEHAUHEA]
Devalo has quit [Ping timeout: 245 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
lido has quit [Ping timeout: 246 seconds]
spacesuitdiver has joined #ruby
clemens3 has quit [Ping timeout: 255 seconds]
cgfbee has quit [Ping timeout: 246 seconds]
ivanskie has joined #ruby
ur5us has joined #ruby
cgfbee has joined #ruby
zeroquake has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
<zeroquake> Hey , i have hash like xyz = {:something : [1 , 2, 3, 4]} , if i want combine those values to a string "1234" , how can i do that without changing the value of xyz
k0mpa has joined #ruby
<baweaver> &ri Enumerable#transform_values
<rubydoc> Found no entry that matches class Enumerable instance method transform_values
<baweaver> &ri Hash#transform_values
<baweaver> Every time
stryek has quit [Quit: Connection closed for inactivity]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
<zeroquake> thank you
asat has joined #ruby
<asat> anyone related to bootstrap-sass in here?
<asat> my coworker just found some awful code pushed out: https://github.com/twbs/bootstrap-sass/issues/1195
<asat> and whoever did it yanked the other 3.2.0.* versions of the gem
zeroquake has quit [Quit: The Lounge - https://thelounge.chat]
<SeepingN> wow. don't use that gem!
<asat> YUP
<lupine> lol
<lupine> dependencies. not even once.
<asat> i've also tried the bootstrap slack but it seems even less active than irc
AJA4350 has joined #ruby
FastJack has quit [Ping timeout: 264 seconds]
nucc has quit [Quit: nucc]
Swyper has joined #ruby
nucc has joined #ruby
Swyper has quit [Ping timeout: 250 seconds]
FastJack has joined #ruby
azta has joined #ruby
<azta> hi
Swyper has joined #ruby
Swyper_ has joined #ruby
k0mpa has quit [Ping timeout: 256 seconds]
Swyper has quit [Remote host closed the connection]