havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: 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!
rmnull has joined #ruby
_phaul has joined #ruby
cschneid_ has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
rmnull has quit [Quit: WeeChat 2.7.1]
cnsvc has joined #ruby
phaul has joined #ruby
buckworst has quit [Quit: WeeChat 2.7.1]
_phaul has quit [Ping timeout: 264 seconds]
troulouliou_dev has quit [Quit: Leaving]
pupsikov has joined #ruby
dasher00 has quit [Ping timeout: 264 seconds]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meinside has joined #ruby
zlogan has quit [Read error: Connection reset by peer]
zlogan has joined #ruby
zlogan has quit [Read error: Connection reset by peer]
dontbecold_ has joined #ruby
dontbecold_ has quit [Client Quit]
phaul has quit [Ping timeout: 250 seconds]
dylanf has quit [Ping timeout: 240 seconds]
TCZ has joined #ruby
phaul has joined #ruby
darkphnx4805 has quit [Quit: Ping timeout (120 seconds)]
darkphnx4805 has joined #ruby
sagax has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
kinduff has quit [Read error: Connection reset by peer]
mniip_ has joined #ruby
kinduff has joined #ruby
DTZUZU2 has quit [Ping timeout: 256 seconds]
mniip has quit [Ping timeout: 619 seconds]
_phaul has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
Emmanuel_Chanel has joined #ruby
DTZUZU2 has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_phaul has quit [Ping timeout: 265 seconds]
carbone5 has joined #ruby
_phaul has joined #ruby
tuxayo[m] has joined #ruby
<tuxayo[m]> Hi :)
<tuxayo[m]> I'm trying to make an old test suite work again.
<tuxayo[m]> From what I understand, phantomjs cannot longer be trusted to displayed faithfully webpages due to being abandoned since years right?
<tuxayo[m]> I was wondering why a field is missing in a screenshot that I took for debugging, and that might be that.
_phaul has quit [Ping timeout: 250 seconds]
_phaul has joined #ruby
phaul has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
noodle has quit [Ping timeout: 256 seconds]
consti has joined #ruby
consti has quit [Client Quit]
phaul has quit [Ping timeout: 265 seconds]
bvdw has quit [Ping timeout: 265 seconds]
cschneid_ has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
levifig has joined #ruby
ttoocs has quit [Read error: Connection reset by peer]
brool has quit [Quit: WeeChat 2.7.1]
ttoocs has joined #ruby
ChmEarl has quit [Quit: Leaving]
TCZ has quit [Quit: Leaving]
kristian_on_linu has quit [Remote host closed the connection]
carbone5 has quit [Quit: carbone5]
pandakekok9 has joined #ruby
pupsikov has joined #ruby
noodle has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.7.1]
al2o3-cr has joined #ruby
phaul has joined #ruby
_phaul has joined #ruby
ferche23 has joined #ruby
phaul_ has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
_phaul has quit [Ping timeout: 250 seconds]
phaul has joined #ruby
phaul_ has quit [Ping timeout: 264 seconds]
jmcgnh has quit [Read error: Connection reset by peer]
consti has joined #ruby
jmcgnh has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
_phaul has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
MrCrackPot has joined #ruby
jingjinghack has joined #ruby
skyikot has joined #ruby
conta has joined #ruby
conta has quit [Client Quit]
phaul has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
_phaul has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
phaul has joined #ruby
_phaul has quit [Ping timeout: 256 seconds]
_phaul has joined #ruby
phaul has quit [Ping timeout: 264 seconds]
cschneid has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
skyikot has quit [Quit: skyikot]
jingjinghack has quit [Ping timeout: 265 seconds]
jingjinghack has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
MrCrackPot has quit [Quit: Leaving]
yokel has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
Arkantos has quit [Quit: Textual IRC Client: www.textualapp.com]
consti has quit [Quit: consti]
gix has joined #ruby
alfiemax has joined #ruby
imadper has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
sauvin has joined #ruby
ttoocs has quit [Read error: Connection reset by peer]
ttoocs has joined #ruby
cliluw has quit [Ping timeout: 256 seconds]
alfiemax has quit [Remote host closed the connection]
consti has joined #ruby
ritalinona has quit [Ping timeout: 240 seconds]
iNs has quit [Ping timeout: 240 seconds]
lineus has quit [Ping timeout: 240 seconds]
cnsvc has quit [Ping timeout: 240 seconds]
galaxie has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
lineus has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
iNs has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davor has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
vondruch has quit [Remote host closed the connection]
davor has joined #ruby
vondruch has joined #ruby
ferche23 has quit [Read error: Connection reset by peer]
cliluw has quit [Ping timeout: 240 seconds]
code_zombie has quit [Read error: Connection reset by peer]
_phaul has joined #ruby
ritalinona has joined #ruby
phaul has quit [Ping timeout: 264 seconds]
galaxie has joined #ruby
markopasha has joined #ruby
cthu| has quit [Ping timeout: 264 seconds]
markopasha has quit [Max SendQ exceeded]
markopasha has joined #ruby
cnsvc has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
cschneid_ has joined #ruby
cschneid has quit [Ping timeout: 265 seconds]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
alfiemax has joined #ruby
jetchisel has joined #ruby
phaul has joined #ruby
_phaul has quit [Ping timeout: 264 seconds]
alfiemax has quit [Remote host closed the connection]
code_zombie has joined #ruby
apotheon has quit [Ping timeout: 260 seconds]
_phaul has joined #ruby
Jonopoly has joined #ruby
phaul has quit [Ping timeout: 264 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
lineus_ has joined #ruby
apotheon has joined #ruby
lineus has quit [Ping timeout: 240 seconds]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
alfiemax has joined #ruby
daqing has joined #ruby
<daqing> hi, everyone, I've built libvips 8.9 from source, but my rails app still throw exception which says (image_processing/vips needs libvips 8.6+)
<daqing> I don't know how ruby-vips select which version of libvips
<daqing> can someone help me ?
xco has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
ur5us has joined #ruby
alfiemax has quit [Remote host closed the connection]
daqing has quit []
Jonopoly has quit [Quit: WeeChat 2.5]
consti has quit [Quit: consti]
_phaul has quit [Ping timeout: 258 seconds]
_phaul has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
phaul has joined #ruby
jinie has joined #ruby
phaul_ has joined #ruby
_phaul has quit [Ping timeout: 256 seconds]
kevinburke has quit [Quit: Connection closed for inactivity]
phaul has quit [Ping timeout: 256 seconds]
phaul has joined #ruby
phaul_ has quit [Ping timeout: 256 seconds]
<tuxayo[m]> As a followup of my previous messages.
<tuxayo[m]> I migrated from PhantomJS to Firefox headless, i case that can help (not sure if clean):
schne1der has joined #ruby
_phaul has joined #ruby
consti has joined #ruby
code_zombie_ has joined #ruby
arcaos has joined #ruby
phaul has quit [Ping timeout: 256 seconds]
code_zombie has quit [Ping timeout: 240 seconds]
cschneid has joined #ruby
phaul has joined #ruby
cschneid_ has quit [Ping timeout: 265 seconds]
_phaul has quit [Ping timeout: 240 seconds]
imadper has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 250 seconds]
phaul has joined #ruby
consti has quit [Quit: consti]
alfiemax has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
phaul has quit [Ping timeout: 256 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 256 seconds]
phaul has joined #ruby
cschneid has quit [Quit: ZNC 1.7.5 - https://znc.in]
alfiemax has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
jingjing1 has joined #ruby
jingjinghack has quit [Ping timeout: 264 seconds]
_phaul has joined #ruby
cschneid has joined #ruby
phaul has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 258 seconds]
gix has quit [Quit: Client exiting]
gix has joined #ruby
postmodern has quit [Quit: Leaving]
consti has joined #ruby
ujjain has joined #ruby
<ujjain> How can I change this to 1 line for my Rakefile? myvar = ENV['box_stem']
<ujjain> puts "box_stem: #{myvar}"
chalkmonster has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<_phaul> puts "box_stem: #{ENV['box_stem']}"
<_phaul> but then the local var myvar is not defined, so can't be used later...
<ujjain> thanks
alfiemax has joined #ruby
conta has joined #ruby
code_zombie__ has joined #ruby
code_zombie_ has quit [Ping timeout: 240 seconds]
jingjing1 has quit [Quit: WeeChat 2.1]
conta has quit [Quit: conta]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
consti has quit [Quit: consti]
fercell has joined #ruby
consti has joined #ruby
consti has quit [Client Quit]
ur5us has quit [Ping timeout: 240 seconds]
code_zombie_ has joined #ruby
sergioro has quit [Quit: leaving]
code_zombie__ has quit [Ping timeout: 256 seconds]
alfiemax has quit [Remote host closed the connection]
lineus has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
TCZ has joined #ruby
lineus_ has quit [Ping timeout: 240 seconds]
consti has joined #ruby
cschneid_ has joined #ruby
cschneid has quit [Ping timeout: 258 seconds]
mnemon has joined #ruby
_whitelogger has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
Tungki has joined #ruby
TomyLobo has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
hassox has joined #ruby
drincruz has joined #ruby
ExoUNX has joined #ruby
markopasha has quit [Ping timeout: 250 seconds]
hassox has quit [Ping timeout: 256 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
banisterfiend has joined #ruby
Tungki has quit [Read error: Connection reset by peer]
caterfxo has quit [Ping timeout: 256 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jacksop has joined #ruby
alfiemax has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
clemens3 has quit [Quit: reboot]
clemens3 has joined #ruby
drincruz has quit [Ping timeout: 258 seconds]
consti has quit [Quit: consti]
brool has joined #ruby
drincruz has joined #ruby
consti has joined #ruby
consti has quit [Client Quit]
bvdw has joined #ruby
consti has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7.1]
leitz has joined #ruby
caterfxo has joined #ruby
<leitz> Assuming a person had reasonable coding skills in a language, and wanted to participate in an open source project, would you consider any skills more important than these six: Team Communication, Version Control, Code Reading, Test Driven Development, Documentation, Packaging and Deployment.
consti has quit [Quit: consti]
vondruch has joined #ruby
banisterfiend has quit [Ping timeout: 256 seconds]
arcaos has quit [Read error: Connection reset by peer]
jacksop has quit [Remote host closed the connection]
jacksop has joined #ruby
vondruch has quit [Quit: vondruch]
arcaos has joined #ruby
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
jacksop has quit [Ping timeout: 260 seconds]
Tungki has joined #ruby
cschneid_ has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
cd has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
aphprentice__ has joined #ruby
pandakekok9 has quit [Quit: leaving]
ellcs has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
pupsikov has joined #ruby
jacksop has joined #ruby
vondruch has quit [Quit: vondruch]
hiroaki has joined #ruby
vondruch has joined #ruby
jacksop has quit [Remote host closed the connection]
TCZ has quit [Quit: Leaving]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
GodFather has joined #ruby
lucasb has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
lazyatom has joined #ruby
jmcgnh has joined #ruby
<apotheon> class String; def in? arr; arr.include? self; end; end
<apotheon> the_basket = Array.new
<apotheon> puts 'the lotion'.in? the_basket
<apotheon> false
<apotheon> hmm
<apotheon> I think I need a the_hose_again method.
<_phaul> apotheon: ?
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<apotheon> _phaul: nothing
<apotheon> Something just remined me of Silence Of The Lambs this morning.
<adam12> lol
sagax has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
impermanence has joined #ruby
cthu| has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
Tungki has quit [Read error: Connection reset by peer]
nullus has joined #ruby
<apotheon> I swear I'm not always prone to useless non-sequiturs.
ellcs has joined #ruby
bvdw has quit [Ping timeout: 258 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
fercell has quit [Quit: WeeChat 2.7.1]
tsujp has joined #ruby
tsujp has quit [Client Quit]
roadie has quit [Read error: Connection reset by peer]
roadie has joined #ruby
cschneid_ has joined #ruby
cschneid has quit [Ping timeout: 265 seconds]
Fusl has quit [Ping timeout: 256 seconds]
RiPuk has quit [Quit: ZNC 1.7.5 - https://znc.in]
RiPuk has joined #ruby
Fusl has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
ChmEarl has joined #ruby
consti has joined #ruby
burningserenity has joined #ruby
consti has quit [Client Quit]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
arahael2 has quit [Ping timeout: 250 seconds]
noboruma has quit [Ping timeout: 260 seconds]
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
noboruma has joined #ruby
levifig has quit [Remote host closed the connection]
regreg has joined #ruby
d3bug has joined #ruby
roadie has joined #ruby
sergioro has joined #ruby
TomyWork has joined #ruby
conta1 has joined #ruby
vondruch has quit [Quit: vondruch]
conta1 has quit [Ping timeout: 256 seconds]
vondruch has joined #ruby
ExoUNX has quit [Ping timeout: 264 seconds]
plutes has joined #ruby
vondruch has quit [Ping timeout: 250 seconds]
RiPuk has quit [Ping timeout: 256 seconds]
RiPuk has joined #ruby
ExoUNX has joined #ruby
alfiemax has joined #ruby
SeepingN has joined #ruby
bvdw has joined #ruby
troulouliou_div2 has joined #ruby
xco has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
burningserenity has quit [Quit: Leaving.]
bvdw has quit [Quit: bvdw]
BTRE has quit [Remote host closed the connection]
gix has quit [Disconnected by services]
BTRE has joined #ruby
ellcs has quit [Ping timeout: 256 seconds]
ellcs has joined #ruby
millerti has joined #ruby
arahael2 has joined #ruby
ropeney has quit [Ping timeout: 260 seconds]
bvdw has joined #ruby
caterfxo has quit [Quit: leaving]
TomyLobo2 has joined #ruby
TomyLobo2 has quit [Remote host closed the connection]
lazyatom has quit [Quit: Connection closed for inactivity]
TomyWork has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
cliluw has joined #ruby
kevinburke has joined #ruby
fercell has joined #ruby
cliluw has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
lazyatom has joined #ruby
fluxAeon has joined #ruby
fercell has quit [Quit: WeeChat 2.7.1]
fercell has joined #ruby
ChmEarl has quit [Quit: Leaving]
arahael2 has quit [Ping timeout: 252 seconds]
fluxAeon has quit [Ping timeout: 250 seconds]
pupsikov has quit [Quit: Textual IRC Client: www.textualapp.com]
fercell has quit [Quit: WeeChat 2.7.1]
romanlevin0 has joined #ruby
akem_ has quit [Quit: Leaving]
romanlevin has quit [Ping timeout: 265 seconds]
romanlevin0 is now known as romanlevin
fercell has joined #ruby
<havenwood> leitz: Code writing. :P Packaging may not be part of the project. Documentation is what I started doing PRs on before I could write code. Version control and tests are no doubt important.
<havenwood> leitz: There are other important aspects of open source contribution, but not everyone has all of them. For example, contributing the logo via design. That sort of thing matters too!
<havenwood> leitz: Triaging issues is another way to get involved, but that usually follows one of the others, after you've built some repor.
regreg has quit [Ping timeout: 240 seconds]
<havenwood> "I don't want a new operator that does not introduce something new."
regreg has joined #ruby
fluxAeon has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
<apotheon> har
bitcycle has joined #ruby
arahael2 has joined #ruby
<leitz> havenwood, I'm focusing on the base skills "you", as a hypothetical (or not?) Open Source project lead would like newbies to join with.
<leitz> The project starts with the "you must know how to code, and at least some Ruby. Now, here's what's next."
<leitz> Assuming, of course, I know how to code...
orbyt_ has joined #ruby
Arkantos has joined #ruby
dinfuehr has quit [Ping timeout: 265 seconds]
dinfuehr has joined #ruby
akem has joined #ruby
<havenwood> leitz: Wish to be helpful, persevere in finding and fixing an issue or making an improvement, have patience, be kind, and that kind of thing.
<havenwood> leitz: Communication does matter too. I think there are many ways to contribute and they require diverse are varied skills.
<havenwood> leitz: There isn't a single cookie cutter way. If you pick things broad enough to encompass them all, it'll be incredibly vague. If you select a single path, it'll omit others. I think my answer is, "It depends."
<leitz> havenwood, understood. The main goal is to help participants bridge the gap from "leaned from the book" to "able to help in a project". A focus on someone who can code some, and wants to make a difference.
<leitz> I'm still working on the "be kind" bit myself.
<apotheon> leitz: At that point, I think the most important thing to learn is how to use the tools necessary for contributing fixes for outstanding issues on a project, or for things you find that aren't right or could be improved.
<apotheon> . . . which often involves understanding Git and GitHub, and following directions in the README or whatever else the project might offer in the way of guidance on how to go about contributing.
<siery> Hey guys, you know how to write that short if expression (cond ? do_something : skip?) to ship the else statement? Something like `cond ? do_something : ;;`.
<apotheon> Key to the Git part of it is knowing some common Git process practices, such as using branches for feature and fix development.
<siery> s*kip the else
<apotheon> siery: That's called a "ternary operator", by the way, because it's an infix operator with two parts dividing three arguments.
<apotheon> If you want it without the else, though, I'd just use a condition-last one-line "if".
<apotheon> . . . like: do_something if cond
<apotheon> You could also conceivably write it more like: if cond then do_something end
lucasb has quit [Quit: Connection closed for inactivity]
<leitz> apotheon, github is one of the topics for discussion.
<siery> apotheon: hm.. do you consider this readible then:
<siery> file_list = lambda { if do_search_content then (status = search_content) ? status : [] end }.call
<apotheon> err
<apotheon> Should that be == instead of = in your condition?
<_phaul> what is the purpose of the lambda there?
<brool> i think that's being too clever
<siery> nope, I asigne the status of the search_conent method to the status variable
<apotheon> I consider that too long to be on a single line, actually.
<apotheon> . . . and also too clever by half, most likely.
<siery> maybe I just make this method return an empty array then
lineus_ has joined #ruby
<apotheon> Why not just define a method?
<apotheon> Why stick it all on one line?
<siery> well, that's actually an simple script to change a pattern in files content or names, which I consider to be too long already c:
<apotheon> I'm not sure I get the point of all that. A minimally modified rewrite to remove what appears to be unnecessary might be:
lineus has quit [Ping timeout: 240 seconds]
sergioro has quit [Ping timeout: 256 seconds]
<apotheon> file_list = (if do_search_content then (search_content ? search_content : []) end)
<apotheon> except
<apotheon> hrm
<apotheon> Yeah, I don't really get the point of all the extra stuff.
<apotheon> lemme see if that's actually equivalent
<apotheon> "I have only proven it correct, not tested it."
<siery> if do_search_content
<siery> file_list = search_content
<siery> end
<apotheon> or that
<siery> after I change the search_content method to return an emty array c:
<apotheon> Actually . . .
<apotheon> if do_search_content
<apotheon> file_list = search_content or []
<apotheon> end
<apotheon> I think?
<apotheon> ugh
<apotheon> my brain is fried
<siery> oh.. ya
<siery> and can I use || in stead of or?
<siery> "Yeah, I don't really get the point of all the extra stuff."
<siery> My point there was to save that one method invocation, as it can search a lot of files
<apotheon> if you really want to use ||, sure
<apotheon> err
<apotheon> What?
<apotheon> Do you want to save the lambda, or the results?
<apotheon> If you want to save the lambda, you don't need the .call at the end, because that'll only save the results.
markopasha has joined #ruby
<siery> no, I'm just saing that this will not be efficient:
<apotheon> (the return value)
<siery> file_list = (if do_search_content then (search_content ? search_content : []) end)
shokohsc has quit [Ping timeout: 240 seconds]
<apotheon> "efficient"
<siery> ya, sorry
lineus_ has quit [Remote host closed the connection]
lineus has joined #ruby
<siery> like that will require to serch all files twice
<apotheon> Oh, is search_content a method?
<apotheon> I figured it was a variable.
sergioro has joined #ruby
<apotheon> . . . but the or-assignment approach should be more efficient than the assignment-inside-a-ternary-inside-a-conditional-inside-a lambda-inside-an-assignment approach, anyway.
<siery> c:
myphs has joined #ruby
myphs has quit [Client Quit]
sh7d has quit [Read error: Connection reset by peer]
factormystic3 has joined #ruby
nofxx_ has quit [Remote host closed the connection]
drincruz_ has joined #ruby
nofxx_ has joined #ruby
sh7d has joined #ruby
ritalinona has quit [Ping timeout: 240 seconds]
lineus_ has joined #ruby
edwardly has quit [Ping timeout: 265 seconds]
Kilo`byte has quit [Ping timeout: 265 seconds]
electrostat has quit [Ping timeout: 265 seconds]
electrostat has joined #ruby
ritalinona has joined #ruby
lineus has quit [Ping timeout: 240 seconds]
cnsvc has quit [Ping timeout: 240 seconds]
aef has quit [Ping timeout: 265 seconds]
cnsvc has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
factormystic has quit [Ping timeout: 265 seconds]
jordanm has quit [Ping timeout: 265 seconds]
genpaku has quit [Ping timeout: 265 seconds]
towo has quit [Ping timeout: 265 seconds]
factormystic3 is now known as factormystic
genpaku has joined #ruby
jordanm has joined #ruby
Kilo`byte has joined #ruby
edwardly has joined #ruby
aef has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
conta1 has joined #ruby
canton7 has quit [Quit: ZNC - http://znc.in]
ropeney has joined #ruby
iNs has quit [Ping timeout: 240 seconds]
iNs_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 258 seconds]
canton7 has joined #ruby
aphprentice__ has quit [Quit: Connection closed for inactivity]
howdoi has joined #ruby
conta1 has quit [Quit: conta1]
ChmEarl has joined #ruby
helpa has quit [Read error: Connection reset by peer]
helpa-bot has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
ExoUNX has quit [Ping timeout: 252 seconds]
markopasha has quit [Ping timeout: 264 seconds]
roadie has quit [Ping timeout: 260 seconds]
roadie has joined #ruby
lazyatom has quit [Quit: Connection closed for inactivity]
Emmanuel_Chanel has joined #ruby
<havenwood> siery: do_search_content && search_content || []
<havenwood> &>> false && false || []
<rubydoc> # => [] (https://carc.in/#/r/8s5r)
ur5us has joined #ruby
markopasha has joined #ruby
markopasha has quit [Max SendQ exceeded]
markopasha has joined #ruby
brool has quit [Quit: doooooooom]
Esa_ has joined #ruby
howdoi has quit []
howdoi has joined #ruby
tpanarch1st has joined #ruby
bitcycle has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
cpallares has quit [Quit: ZNC 1.6.6+deb1ubuntu0.1 - http://znc.in]
<al2o3-cr> havenwood: have you got a mac at hand?
ellcs has quit [Ping timeout: 240 seconds]
shokohsc has joined #ruby
ellcs has joined #ruby
ellcs has quit [Max SendQ exceeded]
dasher00 has joined #ruby
roadie has quit [Ping timeout: 256 seconds]
ellcs has joined #ruby
markopasha has quit [Remote host closed the connection]
cloaked1 has quit [Read error: Connection reset by peer]
dasher00 has quit [Ping timeout: 252 seconds]
markopasha has joined #ruby
TCZ has quit [Quit: Leaving]
cschneid_ has joined #ruby
cloaked1 has joined #ruby
cschneid has quit [Ping timeout: 252 seconds]
fercell has quit [Quit: WeeChat 2.7.1]
cnsvc has quit [Remote host closed the connection]
lineus has joined #ruby
cnsvc has joined #ruby
lineus_ has quit [Ping timeout: 240 seconds]
markopasha has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 256 seconds]
ellcs has quit [Ping timeout: 240 seconds]
ellcs has joined #ruby
havenwood has quit [Quit: ZNC 1.7.5 - https://znc.in]
ellcs has quit [Max SendQ exceeded]
impermanence has quit [Remote host closed the connection]
havenwood has joined #ruby
ellcs has joined #ruby
havenwood has quit [Client Quit]
havenwood has joined #ruby
schne1der has quit [Ping timeout: 260 seconds]
<havenwood> al2o3-cr: Yup
troulouliou_div2 has quit [Remote host closed the connection]
<al2o3-cr> havenwood: could you check something for me?
<havenwood> al2o3-cr: Sure
cnsvc has quit [Ping timeout: 240 seconds]
<al2o3-cr> `Fiddle::Handle['arc4random_buf']` see if it returns an address
<havenwood> al2o3-cr: Yup, sure does.
<havenwood> al2o3-cr: On Linux: Fiddle::DLError (unknown symbol "arc4random_buf")
<al2o3-cr> havenwood: have you got linux handy too?
<havenwood> al2o3-cr: Yup
<al2o3-cr> one sec.
<al2o3-cr> havenwood: Fiddle::Handle.new('/usr/lib/libbsd.so')['arc4random_buf']
<al2o3-cr> ^ for linux.
<havenwood> al2o3-cr: Fiddle::DLError (/usr/lib/libbsd.so: cannot open shared object file: No such file or directory)
<al2o3-cr> yeah, i thought that was the case. thank you havenwood ;)
<al2o3-cr> i'll just use getrandom for linux with no flags.
<siery> havenwood: thank's man, that's what I been just looking for
<havenwood> siery: no prob, you're welcome
<siery> That lets me let the file_list assigment to this point, which is awesome
<siery> file_list = (do_search_content && search_content || [])
<siery> can you tell me how is this operator called? It looks just like an 'and' operator..
<havenwood> seb_: You can drop the parens.
<havenwood> siery: ^
<havenwood> siery: It's a boolean and and boolean or.
<siery> ow, ya.. that makes sens
<siery> a lot.. hmm can you do it in other languages? c:
<havenwood> siery: Yes, boolean logic is pretty pervasive.
<havenwood> siery: Even in shell, like Bash or zsh.
<havenwood> siery: It's common to most modern languages.
tpanarch1st has quit [Ping timeout: 265 seconds]
eDaky has quit [Ping timeout: 240 seconds]
Jonopoly has joined #ruby
tpanarch1st has joined #ruby
galaxie has quit [Ping timeout: 240 seconds]
drincruz_ has quit [Ping timeout: 250 seconds]
<siery> havenwood: Wow, it works even in C c:
<siery> even thou you get [-Wunused-value] warning
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
galaxie has joined #ruby
Exuma has joined #ruby
TCZ has joined #ruby
unreal_ has joined #ruby
unreal has quit [Ping timeout: 264 seconds]
romanlevin has quit [Quit: Ping timeout (120 seconds)]
romanlevin has joined #ruby
Arkantos has quit [Quit: Textual IRC Client: www.textualapp.com]
jmcgnh has quit [Read error: Connection reset by peer]
mniip_ is now known as mniip
jmcgnh has joined #ruby
vondruch has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.5]
leitz has quit [Quit: Leaving]