havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
deadnull has quit [Client Quit]
RougeR has quit [Ping timeout: 256 seconds]
beefjoe has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
siery has quit [Ping timeout: 265 seconds]
lytol has joined #ruby
ramfjord has joined #ruby
pabs has quit [Ping timeout: 264 seconds]
Dark_Arc has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
cliluw has quit [Read error: Connection reset by peer]
Dark_Arc has joined #ruby
ramfjord has joined #ruby
banisterfiend has joined #ruby
cliluw has joined #ruby
PhiSyX has joined #ruby
pabs has joined #ruby
jrm has quit [Quit: ciao]
jrm has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
quobo has quit [Quit: Connection closed for inactivity]
ciscam has quit [Ping timeout: 256 seconds]
ciscam has joined #ruby
nicht has joined #ruby
nicht_ has joined #ruby
nicht has quit [Remote host closed the connection]
sameerynho has quit [Ping timeout: 256 seconds]
eelster has joined #ruby
tdy has quit [Ping timeout: 256 seconds]
pabs has quit [Ping timeout: 240 seconds]
x71e6fd52 has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
GodFather has quit [Ping timeout: 256 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pabs has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
glisignoli has joined #ruby
tdy has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
ramfjord_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
ramfjord has quit [Ping timeout: 268 seconds]
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
glisignoli has quit [Ping timeout: 264 seconds]
eelster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pabs has quit [Ping timeout: 264 seconds]
sagax has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
pabs has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
gizmore|3 has quit [Ping timeout: 260 seconds]
BlopMonster has joined #ruby
jrafanie has joined #ruby
x71e6fd52 has quit [Ping timeout: 256 seconds]
BlopMonster has quit [Ping timeout: 265 seconds]
t0xik has joined #ruby
eelster has joined #ruby
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord_ has quit [Ping timeout: 240 seconds]
Puffball has quit [Remote host closed the connection]
ramfjord has joined #ruby
halbbalda_ has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
gil_ has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
<akaiiro> Spiker01 It seems that you need to set some configuration values for the theme you're using. Refer to the theme docs.
Jiaoyin has joined #ruby
<Jiaoyin> How is it that in the IRB when I put down........
<Jiaoyin> puts Piglet.new.speak || "Hello World"
<Jiaoyin> it pops out "speak" and then "Hello World"
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
<Jiaoyin> what does the || represent?
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
<havenwood> Jiaoyin: It means "or". In your example if `Piglet.new.speak` returns `nil` or `false` then it'll print "Hello world".
ramfjord has joined #ruby
<havenwood> >> 'Jiaoyin' || 'never gunna happen since it was not nil or false to the left'
<ruby[bot]> havenwood: # => "Jiaoyin" (https://eval.in/1015726)
<havenwood> >> false || 'Jiaoyin'
<ruby[bot]> havenwood: # => "Jiaoyin" (https://eval.in/1015727)
cyberg has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 264 seconds]
nicht_ has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 265 seconds]
<Spiker01> akaiiro this theme dont worked in my PC. I read doc http://idratherbewriting.com/documentation-theme-jekyll/ but still it does not work, jekyll does not startю
<akaiiro> Spiker01 Try to follow the steps at section «4. Option 1: Build the Theme (without the github-pages gem)»
alfiemax has joined #ruby
<Spiker01> akaiiro I understood. I can not start jekyll serve, so the documents tell about Docker, I understood correctly?
<Spiker01> I have to use the Docker to run server.
<akaiiro> Spiker01 That is other option. I would try to use the software without that overhead first. Try removing the `Gemfile` and `Gemfile.lock` and runing `jekyll serve -w`
orbyt_ has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
<Spiker01> She dont running, bundle install ok, bundle update ok,bundle exec jekyll serve and jekyll serve -w errors
lxsameer has joined #ruby
halbbalda has joined #ruby
safetypin has joined #ruby
<akaiiro> Spiker01 Then, edit the Gemfile. Remove the `
<akaiiro> gem 'github-pages', group: :jekyll_plugins` line and run `bundle update`. Then, try running `bundle exec jekyll -w`.
chamar has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
chamar has quit [Remote host closed the connection]
m27frogy has quit [Ping timeout: 268 seconds]
chamar has joined #ruby
nicht_ has joined #ruby
bmurt has joined #ruby
<akaiiro> Spiker01 1) Don't run Bundler as root.
<akaiiro> Spiker01 2) The log days you're still `Using github-pages 186`
<Spiker01> akaiiro My Gemfile https://gist.github.com/Spiker01/260aebcbff0728dacb00951c03353fbc . Does not work correctly because of I run this command from under the root user?
<akaiiro> Spiker01 That is your Gemfile.lock
khomesh24 has joined #ruby
mrBen2k2k2k has joined #ruby
enot has joined #ruby
alfiemax_ has joined #ruby
<Spiker01> I did not understand what the second text point in your message. I use gems what is distributed with the theme design.
enot has quit [Client Quit]
alfiemax has quit [Ping timeout: 256 seconds]
safetypin has quit [Quit: ZZZzzz…]
<Spiker01> akaiiro What should this gemfile.lock look like? Change as correctly.
<akaiiro> Spiker01You should not edit `Gemfile.lock`. Edit `Gemfile`.
<akaiiro> Spiker01 You should not edit `Gemfile.lock`. Edit `Gemfile`.
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
m27frogy has joined #ruby
<Spiker01> akaiiro gemfile.lock file is never manually edited, only automaticall (rule)?
<akaiiro> Spiker01 Yes. `Gemfile.lock` is generated by bundler. Edit `Gemfile`, run `bundle install` and bundler will make the changes to `Gemfile.lock`
darkhanb has joined #ruby
<Jiaoyin> I'm trying to understand what chomp means....and what does it do
amar has joined #ruby
<havenwood> Jiaoyin: It eats the end of a string, *if* it like the taste.
<havenwood> &ri String#chomp
<Jiaoyin> what do you mean...."if" it likes the taste?
<havenwood> Jiaoyin: Have you read the docs?
braincrash has quit [Quit: bye bye]
<Jiaoyin> yea, I did read it. I still don't it get. Does it act like /n
<Jiaoyin> ?
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
<Jiaoyin> a sperator*
<havenwood> Jiaoyin: It's adopted from the Perl language. Check the value of: $/
<Jiaoyin> On the doc it says..
<havenwood> Jiaoyin: Here're the Perl docs: https://perldoc.perl.org/functions/chomp.html
<Jiaoyin> "hello".chomp #=> "hello" "hello\n".chomp #=> "hello" "hello\r\n".chomp #=> "hello"
<Jiaoyin> looking at it...it all looks the same to me
amar has quit [Ping timeout: 265 seconds]
<havenwood> Jiaoyin: The first one is the same. The second one is missing the newline. The third one is missing the abomination of a Windows newline.
<havenwood> >> "Jiaoyin\n\n".chomp
<ruby[bot]> havenwood: # => "Jiaoyin\n" (https://eval.in/1015745)
<havenwood> Jiaoyin: ^ note one newline removed
braincrash has joined #ruby
enot has joined #ruby
<havenwood> Spiker01: Don't delete the Gemfile. Do you know what a Gemfile does?
enot has quit [Client Quit]
<havenwood> Jiaoyin: chomp is most often used to ensure that a trailing newline is removed
<akaiiro> @havenwood That is the advice from the theme's documentation
<havenwood> Jiaoyin: it can alternatively take an argument, but these days I'd use String#delete_suffix for that case
<havenwood> akaiiro: oh my! haha
<Spiker01> <havenwood> Yes, it contains lists of gems and "repositories".
* havenwood reads the backlog
<Spiker01> <havenwood> I will be happy with your help. I'm trying to install the theme of Jekyll on the local PC. http://idratherbewriting.com/documentation-theme-jekyll/
lxsameer has quit [Ping timeout: 256 seconds]
<akaiiro> Spiker01 Good, you have Jekyll working. Now you have to fix the liquid syntax issue. That is likely because the theme is intended for an older version of Jekyll
<havenwood> Spiker01: It's very odd advice to delete the Gemfile, but I see that's exactly what the docs are saying!
lxsameer has joined #ruby
<havenwood> Spiker01: So your current issue is?: Unknown tag 'gist'
<havenwood> Spiker01: What's on line 43 of the _posts/2013-12-25-block.md file?
chamar has quit [Read error: Connection reset by peer]
zhangkaizhao has joined #ruby
<Spiker01> havenwood I understand that this docs should not be run jekyll on the standard server - incompatibility of plugins. Did he understand correctly?
<havenwood> Spiker01: Seems like akaiiro has a better idea than me what's going on. :-)
robbie has joined #ruby
robbie has quit [Client Quit]
<Spiker01> havenwood point 4 on this docs site tells about it.
robbie has joined #ruby
robbie is now known as enott
<Spiker01> <havenwood> You have ever used Jekyll?
enott has quit [Client Quit]
Eiam has joined #ruby
<akaiiro> Spiker01 https://github.com/jekyll/jekyll/issues/3906#issuecomment-201454567 That is what I found searching your error
<akaiiro> Good luck with that!
lxsameer has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
<Spiker01> <akaiiro> thank you for this link.
<Spiker01> I read it, but there is no solution to the problem. Maybe I'll try using another site generator.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Autolycus has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
<Spiker01> I liked that the Jekyll has a lot of plug-ins. But now I realized that plug-ins have a compatibility issue because developers (probably) do not support backward compatibility. New plugins are not supported by the old plugins, even if they are dependent on each other.
<Spiker01> In the future, this can cause a support problem.
gix- has joined #ruby
gix has quit [Disconnected by services]
nicht_ has quit [Ping timeout: 245 seconds]
pabs has quit [Ping timeout: 245 seconds]
pabs has joined #ruby
nicht_ has joined #ruby
akaiiro has quit [Remote host closed the connection]
chouhoul_ has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 245 seconds]
dinfuehr has joined #ruby
shwouchk has quit [Quit: Connection closed for inactivity]
BlopMonster has joined #ruby
sagax has joined #ruby
mozzarella has quit [Quit: WeeChat 2.0.1]
BlopMonster has quit [Ping timeout: 240 seconds]
pabs has quit [Ping timeout: 256 seconds]
reber has joined #ruby
pabs has joined #ruby
lxsameer has joined #ruby
donofrio has quit [Remote host closed the connection]
emilford has quit [Ping timeout: 268 seconds]
emilford has joined #ruby
mozzarella has joined #ruby
chamar has joined #ruby
rfoust has quit [Ping timeout: 276 seconds]
AJA4350 has quit [Quit: AJA4350]
lxsameer has quit [Ping timeout: 265 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicht_ has quit [Ping timeout: 245 seconds]
dendazen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nicht_ has joined #ruby
nicht_ has quit [Max SendQ exceeded]
nicht_ has joined #ruby
howdoi has joined #ruby
alfiemax has joined #ruby
nicht_ has quit [Remote host closed the connection]
nicht_ has joined #ruby
Haris has joined #ruby
<Haris> hello all
<havenwood> Haris: hi
<Haris> I'm trying to configure a ruby based project i.e., redmine. I'm getting an error that doesn't make sense
<Haris> correction, that's yaml issue
ramfjord has joined #ruby
<Haris> thanks all
Haris has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 248 seconds]
jamesaxl has quit [Quit: WeeChat 2.1]
apeiros has joined #ruby
lxsameer has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
nicht_ has quit [Remote host closed the connection]
nicht_ has joined #ruby
regedit has joined #ruby
<regedit> hello
<regedit> i once came asking for a recommendation for an HTTP library, and was advised to use Typhoeus
<regedit> with its hydra parallel requests feature
<regedit> problem is - i now realize i want to make these HTTP requests from a Sidekiq worker....
nicht_ has quit [Ping timeout: 256 seconds]
<regedit> the sidekiq worker performs its task on 1 record at a time, rather than having all records to process and queue up for typhoeus http requests... so it seems i might be losing out on running many Typhoeus+hydra requests in parallel
<regedit> is there another way of queuing up many many requests for typhoeus in parallel from within workers that operate on only 1 record at a time?
chamar has quit [Quit: Konversation terminated!]
byte00 has joined #ruby
cadillac_ has quit [Ping timeout: 245 seconds]
cadillac_ has joined #ruby
aufi has joined #ruby
<havenwood> regedit: Yeah, I sometimes recommend Typhoeus, but not for use with Sidekiq. Consider HTTP.rb. See how a very basic setup performs before proceeding.
lxsameer has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has joined #ruby
<regedit> havenwood: so persistent http connection is not an applicable notion for me if my records are being processed 1 at a time in sidekiq workers?
Spiker01 has quit [Quit: Leaving]
ur5us has quit [Remote host closed the connection]
<havenwood> regedit: Sidekiq ships with the connection_pool gem: https://github.com/mperham/sidekiq/blob/master/sidekiq.gemspec#L21
ur5us has joined #ruby
<havenwood> regedit: You might want to do the simplest thing that can possibly work, and see how that performs before proceeding with optimizations.
nowhereman_ has joined #ruby
anisha has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
<havenwood> regedit: That said, a pool of shared persistent connections makes sense to me as reasonable.
chat_ has joined #ruby
donofrio has joined #ruby
<Radar> Is it still the cool thing to use the oj gem over the json stdlib package? (Ruby 2.4.2)
chat has quit [Ping timeout: 248 seconds]
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
jcalla has quit [Ping timeout: 248 seconds]
apeiros has quit [Ping timeout: 260 seconds]
jcalla has joined #ruby
lxsameer has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
aupadhye has joined #ruby
troys has quit [Quit: Bye]
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
sauvin has joined #ruby
<havenwood> Radar: It seems they've closed the gap to the point where I don't bother.
<havenwood> Radar: It looks like Oj still has an edge loading: https://gist.github.com/havenwood/c4a9d527df030dfaab996d42f745600b
<havenwood> Radar: I'm curious as to memory usage difference, since JSON parser vary wildly.
Autolycus has quit [Quit: Connection closed for inactivity]
aupadhye has quit [Ping timeout: 245 seconds]
<havenwood> Radar: This is a pretty good multi lang time/mem comparison: https://github.com/kostya/benchmarks#json
<havenwood> Radar: Or if speed matters, and you get to pick on both ends, MessagePack is way faster than JSON.
<Radar> We've already got JSON code that's using oj. I'm just having issues with the oj + envied gems on a new project and hoping to get rid of one of those two gems.
<Radar> Or I could investigate why the problem is happening in the first place?
nowhereman_ has quit [Ping timeout: 264 seconds]
<havenwood> Updated Gist with MsgPack just for fun. Seems about twice as fast.
<havenwood> Radar: I like stdlib JSON personally.
<havenwood> Radar: It's got nice C, Java and pure Ruby implementations. I think it's the most widely used, so seems to have the kinks worked out with best inter-gem compat.
<havenwood> dunno
lxsameer has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
aupadhye has joined #ruby
ellcs has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
roshanavand has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
andikr has joined #ruby
raul782 has joined #ruby
akaiiro has joined #ruby
raul782 has quit [Client Quit]
raul782 has joined #ruby
raul782 has quit [Client Quit]
KeyJoo has joined #ruby
raul782 has joined #ruby
amelliaa has joined #ruby
arekushi has quit [Read error: Connection reset by peer]
conta has joined #ruby
suukim has joined #ruby
mtkd has joined #ruby
alfiemax_ has joined #ruby
yohji has joined #ruby
lxsameer has joined #ruby
aufi has quit [Remote host closed the connection]
aufi has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
Asher has quit [Ping timeout: 265 seconds]
Asher has joined #ruby
schleppel has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
raul782 has quit [Client Quit]
amar has joined #ruby
za1b1tsu has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
ta_ has joined #ruby
amar has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
chat has joined #ruby
chat_ has quit [Ping timeout: 256 seconds]
za1b1tsu has quit [Quit: WeeChat 2.1]
alfiemax has quit []
leafyleong has joined #ruby
sysvalve has joined #ruby
clemens3 has joined #ruby
byte00 has quit [Ping timeout: 260 seconds]
zwelmi has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
PhiSyX has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
<zwelmi> i'd like to code a social graph and then render it visually in the browser. what's a good library for that? I just found this from 2009 https://github.com/chrislo/data_visualisation_ruby
reber__ has joined #ruby
reber has quit [Ping timeout: 276 seconds]
mlkkk has quit [Remote host closed the connection]
reber__ has quit [Ping timeout: 240 seconds]
reber has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
apeiros has joined #ruby
BlopMonster has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
BaroMeter has joined #ruby
apeiros has joined #ruby
reber__ has joined #ruby
kliq has joined #ruby
dionysus69 has joined #ruby
reber has quit [Ping timeout: 240 seconds]
akem_ has joined #ruby
BlopMonster has quit [Ping timeout: 268 seconds]
akem has quit [Ping timeout: 264 seconds]
regedit has quit [Quit: Connection closed for inactivity]
guille-moe has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
arekushi has joined #ruby
armyriad has joined #ruby
conta has quit [Ping timeout: 248 seconds]
zwelmi has quit [Ping timeout: 264 seconds]
zwelmi has joined #ruby
mlkkk has joined #ruby
amar has joined #ruby
byte00 has joined #ruby
amar has quit [Remote host closed the connection]
zwelmi has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
conta has joined #ruby
zwelmi has joined #ruby
mlkkk has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
mtkd has quit []
mtkd has joined #ruby
byte00 has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
Beams has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
zwelmi has quit [Ping timeout: 240 seconds]
trautwein has left #ruby ["Textual IRC Client: www.textualapp.com"]
andikr has quit [Ping timeout: 264 seconds]
andikr has joined #ruby
KeyJoo has quit [Read error: Connection reset by peer]
venmx has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 268 seconds]
KeyJoo has joined #ruby
KeyJoo has quit [Max SendQ exceeded]
KeyJoo has joined #ruby
simmaniac has joined #ruby
<syndikate> Why is there no specific ruby 2.4.1 docker image file in registry?
za1b1tsu has joined #ruby
drale2k_ has joined #ruby
simmaniac is now known as sysval
sysvalve has quit [Ping timeout: 256 seconds]
<apeiros> I suppose because nobody put one in?
sysval is now known as sysvalve
RougeR has joined #ruby
Mike11 has joined #ruby
<syndikate> Can I use 2.4.4 for a ruby app of version 2.4.1
<dminuoso> syndikate: Probably yes.
<dminuoso> But why dont you try it out
weaksauce has quit [Ping timeout: 265 seconds]
<dminuoso> If you have native extensions it depends on them.
<syndikate> Yeah, am trying it out now dminuoso
<syndikate> It's a simple rails app, I hope nothing breaks
<dminuoso> syndikate: You have a test suite, dont you?
Charliebr73 has joined #ruby
<syndikate> dminuoso, Na, this is a scaffold app, my aim is to learn something else - so there is nothing in the app basically
<apeiros> syndikate: as of 2.1, a change in the third segment should not break your app. but there are no guarantees.
<dminuoso> Native extensions dont have that property.
<dminuoso> syndikate: If there's nothing in the app, then your question is just "does rails work with any version of ruby"
<dminuoso> Then the answer is pretty much yes.
<syndikate> dminuoso, yes my bad. I should have asked that. But was not sure of it.
<syndikate> I was thinking of the gems involved
<dminuoso> syndikate: the only major breaking change has been between 2.3 and 2.4 internally with the bigint > integer change
nowhereman_ has joined #ruby
psychicist__ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
karapetyan has joined #ruby
<apeiros> dminuoso: I'd call the fdiv bug also a major breaking change. though I guess not that many were affected.
<dminuoso> wait what?
<dminuoso> apeiros: oh haha I thought you were talking about the FDIV bug on pentiums
<apeiros> hah, no
BlopMonster has joined #ruby
<apeiros> but CPU bugs amaze me. mostly how little you hear about them. I guess there's a lot of people who do a great job working around them.
<dminuoso> apeiros: You kind of get confronted with that kind of stuff when you write kernel code.
<dminuoso> Especially "design quirks"
<dminuoso> Like the A20 gate
<dminuoso> (Though intel *finally* kicked that out of the window)
<apeiros> aaaaaahhaahaha, the a20 gate
<syndikate> Oh okay, thanks dminuoso
<dminuoso> apeiros: Do you know whats best about the a20 gate? Not the fact that it exists
<dminuoso> But the numerous and totally weird ways to toggle it.
<apeiros> the best I found the K6 cpu (I think that was its name) which worked differently and hence lots of stuff broke in hilarious ways.
<dminuoso> On some chips you have to interact with the keyboard controller (yes. seriously!) to enable/disable the A20 gate.
<apeiros> I barely remember. that's now what, 20y ago?
<apeiros> and I think a20 gate is still in x86, right? only 64x did away with it?
<dminuoso> nope.
<dminuoso> only the most recent chips
<dminuoso> last or second last revision of the core series
<dminuoso> its still in there
<apeiros> what? 64x still had it?!?
<dminuoso> but at least its toggled off by default now
<apeiros> insanity
<dminuoso> well AMD64 is just an extra mode
<apeiros> I mean seriously, stuff old enough to care can now just be emulated.
<dminuoso> CPUs dont boot in AMD64 mode
<dminuoso> apeiros: well the thing is, I dont mind that they *exist*
<dminuoso> but the annoying thing is, they start with A20 turned off.
<apeiros> well, iirc switching was mandatory
<apeiros> and not just once, all the f*ing time. and you couldn't query the state either iirc.
<dminuoso> apeiros: not really
<apeiros> but… OT :D
BlopMonster has quit [Ping timeout: 248 seconds]
<dminuoso> the whole existence is just because some stupid exotic software existed that relied on the wrap around of memory segmentation
<dminuoso> and because some retarded exotic programmers wrote some programs that relied on it, and intel didnt want to break backwards compatibility, they made sure that every CPU afterwards booted into a mode that had the same behavior..
tvw has joined #ruby
<dminuoso> nowadays you end up probing cpuid and *trying* various methods until you successfully enable the A20 gate
<dminuoso> usually you try the keyboard controller, try the bios, try some IO ports, and then hope any of it worked.
andikr has quit [Ping timeout: 264 seconds]
<dminuoso> (and each method has various actual ways, so you end up testing a fair 10 different techniques)
<dminuoso> okay more like 5
simmaniac has joined #ruby
akem has joined #ruby
sysvalve has quit [Ping timeout: 248 seconds]
<dionysus69> when :sym, "str", Db.find_by(some_object)
amelliaa has quit [Quit: -]
<dionysus69> I noticed very disappointing aspect of case statement
<dionysus69> if I provide sym or string as a when case, it still hits all the db finds in all when cases until it reaches when sttatement
pabs has quit [Ping timeout: 264 seconds]
<dionysus69> is this expected?
akem_ has quit [Ping timeout: 276 seconds]
tvw has quit []
<apeiros> dionysus69: no
<apeiros> >> def foo; puts "FOO CALLED!"; end; case 1 when Integer, foo then "is int" else "what?" end
<ruby[bot]> apeiros: # => "is int" (https://eval.in/1016043)
<apeiros> it does not invoke foo, as you can see.
<apeiros> I'd assume your case statement is wrong.
<dionysus69> hmm
<dionysus69> oh apeiros
<dionysus69> it checks all before it goes to next
<apeiros> well, yes, that of course
<dionysus69> :D
<jokester> i found `nil &+ ''` is a valid expression, but to my surprise it returns false (I expected it to work like `&.method`). does anybody knows what the operator is?
<apeiros> it wouldn't make sense otherwise
<jokester> oops sorry for interrupting
<dionysus69> I was dumb to assume that it would skip to next if i passed in str and str didnt match or symbol
pabs has joined #ruby
<dionysus69> any ideas on how I can achieve that? if it sees symbol and symbol doesn't match, it jumps to next when case
<apeiros> jokester: you probably have something which defines String#@+ (prefix + for string, like +1 and -1 for ints)
suukim has quit [Quit: Konversation terminated!]
<apeiros> dionysus69: don't use case if you don't want its behavior?
<dionysus69> :D
<dionysus69> makes sense xD
<dionysus69> ok thanks :)
<apeiros> jokester: in other words, it's similar to writing "12 * -5" as "12 *- 5"
<jokester> apeiros: not likely? it behaves like that in a bare irb
<apeiros> seems ruby defines it
<apeiros> and it's +@, not @+, sorry.
<jokester> ah, that explains it
<jokester> `nil & (+'')` evals to false
<jokester> thanks apeiros /o\
<apeiros> I'm actually curious what /o\ is supposed to mean in this context :D
<jokester> just covering my eyes, nothing much ;D
agimenez has joined #ruby
<apeiros> 🙈 <- this?
<jokester> yes lol
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
ferr__ has quit [Quit: WeeChat 2.1]
Emmanuel_Chanel has joined #ruby
simmaniac has quit [Ping timeout: 265 seconds]
DTZUZO has quit [Ping timeout: 268 seconds]
<apeiros> ❤️
* apeiros breaking non-utf8-save irc logs since 2000
suukim has joined #ruby
<darix> apeiros: good thing IRC has ways to specify the encoding of each message so the client can convert it to their local encoding ;)
DTZUZO has joined #ruby
<apeiros> yeah, but it's hardly surprising, given that even textfiles have that.
<apeiros> (you *actually* could use irc3.2 tagging mechanism for encoding, but: lel)
<darix> apeiros: I was using sarcasm there ;)
<apeiros> I thought my follow up was obviously sarcastic too? o0
<darix> the first line sounded too serious
<apeiros> 😅 ok then
apparition has joined #ruby
<apeiros> I thought "which friggn encoding does this effin text file use?!?" was a common enough problem that "textfiles have a way to specify the encoding" was clearly enough a joke.
<apeiros> my apologies
<apeiros> I guess I'm the only one who's frequently troubled by that kind of shit 😂
pabs has quit [Ping timeout: 256 seconds]
pabs has joined #ruby
<cdunklau> apeiros: just use latin-1, it always works!
Yxhuvud has quit [Remote host closed the connection]
emilford has quit [Ping timeout: 260 seconds]
torarne has left #ruby ["Kicked by @appservice-irc:matrix.org : issued !quit command"]
emilford has joined #ruby
Yxhuvud has joined #ruby
andikr has joined #ruby
<apeiros> cdunklau: pro-tip, use windows-1252 instead of latin1, it's a strict superset.
<cdunklau> i always mix those up
ferr has joined #ruby
agimenez has quit [Quit: Leaving]
apeiros has quit [Ping timeout: 264 seconds]
<cdunklau> because python's latin-1 decoder just maps the bytes missing from latin-1 directly to their codepoint value
<cdunklau> i *think*
dr3w_ has joined #ruby
Mike11 has quit [Ping timeout: 248 seconds]
cschneid has joined #ruby
mtkd has quit [Ping timeout: 264 seconds]
mtkd has joined #ruby
karapetyan has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 255 seconds]
<darix> apparition: use utf-8 or die
<darix> err
<darix> apeiros left
<lupine> imperialist
cyberg has joined #ruby
AJA4350 has joined #ruby
plexigras has joined #ruby
Zaab1t has joined #ruby
shinnya has joined #ruby
ldnunes has joined #ruby
apeiros has joined #ruby
amar has joined #ruby
ellcs has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 256 seconds]
anisha has joined #ruby
Tolnaiz has joined #ruby
dendazen has joined #ruby
amar has quit [Ping timeout: 248 seconds]
Tolnaiz has quit [Client Quit]
jrafanie has joined #ruby
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
za1b1tsu has quit [Quit: WeeChat 2.1]
eelster_ has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 248 seconds]
vondruch_ is now known as vondruch
synthroid has joined #ruby
eelster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has joined #ruby
roshanavand has quit [Quit: Leaving.]
roshanavand has joined #ruby
karapetyan has joined #ruby
jrafanie has joined #ruby
vutral|kali has joined #ruby
<vutral|kali> where is the dbd documentation?
<vutral|kali> dbi i ment
ellcs has joined #ruby
sylario has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
<darix> vutral|kali: use sequel or so
siery has joined #ruby
conta has quit [Quit: conta]
conta has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Silex has joined #ruby
chamar has joined #ruby
bmurt has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
conta has quit [Quit: conta]
conta has joined #ruby
ellcs has quit [Ping timeout: 276 seconds]
conta has quit [Client Quit]
nowhereman_ has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TvL2386_ is now known as TvL2386
synthroid has joined #ruby
regedit has joined #ruby
Asher has quit [Ping timeout: 264 seconds]
<regedit> havenwood: still there? do i need to do anything to expressly use such a connection pool? or it happens behind the scenes
eelster_ has quit [Read error: Connection reset by peer]
<regedit> havenwood: is your recommendation to use connection_pool with HTTP.rb or Typhoeus?
CrazyEddy has quit [Remote host closed the connection]
nielsk has quit [Read error: Connection reset by peer]
<Silex> Doesn't both HTTP.rb and Typhoeus have threading issues?
nielsk has joined #ruby
BlopMonster has joined #ruby
<Silex> Ah no, HTTP.rb seems thread-safe
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<regedit> cool
<regedit> Silex: any idea how do use HTTP.rb in conjunction with (sidekiq with) connection_pool ?
bmurt has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<regedit> oh lol your above URL discusses exactly that :D thanks
conta1 has joined #ruby
<regedit> the last mystery to solve would be how to do this https://github.com/httprb/http/wiki/Thread-Safety in a sidekiq worker so that the http connection is persisted across hundreds of distinct sidekiq worker executions...
<regedit> and then somehow close the connection pool at the right time after the batch of said sidekiq jobs have completed
<cdunklau> does ruby a good async networking framework?
<cdunklau> like, reactor pattern style, hopefully with good implementations of common application protocols?
<dminuoso> cdunklau: theres EM
<dminuoso> cdunklau: There's also celluloid that you might be interested in.
<cdunklau> oh neat, EM looks remarkably similar to twisted
<cdunklau> thanks
zhangkaizhao_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
zhangkaizhao has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
griffindy has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
dr3w_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
k0mpa has joined #ruby
aupadhye has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
Rapture has joined #ruby
ta_ has quit [Remote host closed the connection]
BlopMonster has quit [Ping timeout: 265 seconds]
shinnya has quit [Quit: ZNC - http://znc.in]
shinnya has joined #ruby
conta1 has quit [Remote host closed the connection]
Asher has joined #ruby
apparition has quit [Quit: Bye]
karapetyan has joined #ruby
pastorinni has joined #ruby
mtkd has quit [Ping timeout: 265 seconds]
apeiros has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
jrafanie has joined #ruby
mlkkk has joined #ruby
conta1 has joined #ruby
conta1 has quit [Client Quit]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chat_ has joined #ruby
chat has quit [Ping timeout: 245 seconds]
drale2k_ has joined #ruby
BlopMonster has joined #ruby
rsh has joined #ruby
BloopMonster has quit [Quit: WeeChat 2.1]
BloopMonster has joined #ruby
chat has joined #ruby
BlopMonster has quit [Ping timeout: 245 seconds]
chat_ has quit [Ping timeout: 264 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Asher has joined #ruby
bmurt has joined #ruby
sysvalve has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
bmurt has quit [Ping timeout: 264 seconds]
vondruch has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
vondruch_ has joined #ruby
bmurt has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
vondruch_ is now known as vondruch
vondruch has quit [Client Quit]
vondruch has joined #ruby
aufi has quit [Quit: Leaving]
CrazyEddy has joined #ruby
agent_white has quit [Quit: Lost terminal]
RougeR has quit [Read error: No route to host]
karapetyan has quit [Remote host closed the connection]
cagomez has joined #ruby
amar_ has joined #ruby
za1b1tsu has joined #ruby
cagomez has quit [Client Quit]
Charliebr73 has quit []
karapetyan has joined #ruby
cagomez has joined #ruby
rippa has joined #ruby
cschneid has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
karapetyan has joined #ruby
suukim has quit [Quit: Konversation terminated!]
roshanavand has quit [Quit: Leaving.]
dionysus69 has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
chamar has quit [Quit: Leaving]
modin has quit [Ping timeout: 268 seconds]
modin has joined #ruby
jottr has joined #ruby
zhangkaizhao_ has quit [Quit: Leaving]
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
chamar has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sysvalve has quit [Quit: Leaving]
Silex has quit [Quit: Page closed]
jcarl43 has joined #ruby
bmurt has quit [Ping timeout: 248 seconds]
mzo has joined #ruby
akaiiro has quit [Remote host closed the connection]
plexigras has quit [Ping timeout: 260 seconds]
plexigras has joined #ruby
jenrzzz has joined #ruby
Mike11 has joined #ruby
akaiiro has joined #ruby
c0ncealed1 has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
emilford has quit [Ping timeout: 248 seconds]
howdoi has joined #ruby
IceDragon has quit [Read error: Connection reset by peer]
c0ncealed1 has joined #ruby
pastorinni has quit [Read error: Connection reset by peer]
pastorinni has joined #ruby
Mike111 has joined #ruby
Mike111 has quit [Client Quit]
k0mpa has quit [Quit: k0mpa]
Mike11 has quit [Ping timeout: 264 seconds]
yohji has quit [Remote host closed the connection]
k0mpa has joined #ruby
guacamole has quit [Read error: Connection reset by peer]
gregf_ has quit [Ping timeout: 260 seconds]
guille-moe has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
darkhanb has joined #ruby
Mike11 has joined #ruby
chat_ has joined #ruby
Mike11 has quit [Changing host]
Mike11 has joined #ruby
emilford has joined #ruby
chat has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
guille-moe has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
mzo has quit [Ping timeout: 264 seconds]
wkoszek_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
BlopMonster has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
wkoszek_ has quit [Ping timeout: 260 seconds]
amar_ has quit [Remote host closed the connection]
BlopMonster has quit [Ping timeout: 240 seconds]
pabs has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
karapetyan has joined #ruby
elsurudo has joined #ruby
mtkd has quit []
<elsurudo> I have some code that needs to run in a block of a method in a third-party lib, but then code I need to run in a block is async and it can “complete” outside of the scope of the block (in a compeltion handler). Is there any sane way to make these two approaches co-operate? Something like make the block halt until competion?
mtkd has joined #ruby
clemens3 has quit [Ping timeout: 264 seconds]
emilford has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
pabs has joined #ruby
minimalism has quit [Quit: minimalism]
<apeiros> elsurudo: sure. depends on how the async is implemented. if it runs in its own thread, you can stop it. see e.g. ConditionVariable.
WAFFLEMAKER3000 has joined #ruby
tvw has quit [Read error: No route to host]
tvw has joined #ruby
ta_ has joined #ruby
Cavallari has joined #ruby
roshanavand has joined #ruby
Azure has quit [Ping timeout: 264 seconds]
emilford has quit [Ping timeout: 256 seconds]
kliq has quit [Ping timeout: 276 seconds]
bmurt has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 240 seconds]
<elsurudo> apeiros: Right, that makes sense. The issue is I’m dealing with Faraday callbacks, and since Faraday can use one of many adapters (some of which are single-threaded, and some of which aren’t), there may not be a one-size-fits-all solution.
jrafanie_ has joined #ruby
Beams has quit [Quit: .]
jrafanie has quit [Ping timeout: 260 seconds]
<elsurudo> apeiros: if I want to limit myself to only single-threaded adapters, I suppose there is no solution?
emilford has joined #ruby
<apeiros> in a single threaded solution there isn't really "something else finishes while I work here"
<apeiros> i.e. in a single threaded solution, you just write normal blocking code.
venmx has quit [Ping timeout: 268 seconds]
wkoszek_ has joined #ruby
cadillac_ has quit [Ping timeout: 248 seconds]
sanscoeur has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
wkoszek_ has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
cadillac_ has joined #ruby
jcalla has quit [Ping timeout: 264 seconds]
TomyLobo has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
sagax has quit [Remote host closed the connection]
Cavallari has quit [Quit: Cavallari]
jcalla has joined #ruby
mtkd has quit []
hahuang65 has joined #ruby
mtkd has joined #ruby
hahuang65_ has quit [Ping timeout: 276 seconds]
amar has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
sphenxes has joined #ruby
cadillac_ has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
kliq has joined #ruby
ldepandis has joined #ruby
karapetyan has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
SeepingN has joined #ruby
emilford has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
pabs has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
jamesaxl has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
guille-moe has quit [Ping timeout: 264 seconds]
dank has joined #ruby
eckhardt_ has joined #ruby
guille-moe has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
pabs has joined #ruby
<dank> fun fact: in build mac os 10.14 beta (18A293u), ruby -rrbconfig -e 'puts RbConfig::CONFIG["rubyarchhdrdir"];' outputs a value that is off by one. This caused my build to fail to find ruby/config.h.
emilford has quit [Ping timeout: 264 seconds]
ellcs has joined #ruby
<havenwood> dank: What do you get for?: uname -r
emilford has joined #ruby
m27frogy has quit [Ping timeout: 256 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
<theRoUS> #warn is recommended over $stderr.puts -- but what's the non-newline equivalent, like $stderr.print ?
amar_ has joined #ruby
jenrzzz_ has joined #ruby
amar has quit [Ping timeout: 256 seconds]
<havenwood> dank: (( $(uname -r | cut -d'.' -f1) == $(ruby -rrbconfig -e 'puts RbConfig::CONFIG["rubyarchhdrdir"]' | cut -d" " -f4 | tail -c3) )) && echo "Identical" || echo "Different"
<dank> uname -r says 18.0.0
<dank> That command outputs Identical
jenrzzz has quit [Ping timeout: 260 seconds]
<dank> Seems like a packaging error
<havenwood> dank: So it seems they agree, it's 18?
<dank> yes
elsurudo has quit [Quit: elsurudo]
elsurudo has joined #ruby
<dank> but /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18 does not exist.
elsurudo has quit [Client Quit]
elsurudo has joined #ruby
<dank> Instead, /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17 exists. Whoops...
<dank> Reported to apple.
elsurudo has quit [Client Quit]
<havenwood> dank: +1
<dank> Might be taken more seriously if a ruby developer reports it, though?
elsurudo has joined #ruby
elsurudo has quit [Client Quit]
<dank> as in, the more people report it, the sooner it'll get fixed. Which reminds me, I should check to see if /etc/paths.d is fixed yet.
elsurudo has joined #ruby
elsurudo has quit [Client Quit]
elsurudo has joined #ruby
elsurudo has quit [Client Quit]
elsurudo has joined #ruby
elsurudo has quit [Client Quit]
elsurudo has joined #ruby
elsurudo has quit [Client Quit]
elsurudo has joined #ruby
elsurudo has quit [Client Quit]
<havenwood> theRoUS: It's a good point. There isn't such a method.
shadeslayer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<theRoUS> havenwood: that's what i feared..
jenrzzz_ has quit [Ping timeout: 256 seconds]
shadeslayer has joined #ruby
guille-moe has quit [Ping timeout: 256 seconds]
<havenwood> theRoUS: A keyword argument might be nice to add for: trailing_newline: false
<havenwood> theRoUS: or yeah, another methods
ta_ has joined #ruby
ramfjord has joined #ruby
sauvin has quit [Remote host closed the connection]
mtkd has quit []
elsurudo has joined #ruby
m27frogy has joined #ruby
<apeiros> say it like a toad: kwaaaarg
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
<apeiros> (seriously, though, I always imagining it sounding like a toad making its noise when I read it)
* havenwood croaks kwaaarg
<apeiros> 👏🏻
mlkkk_ has joined #ruby
<theRoUS> wait, what?
<z64> kwaaaaaaarg! :D
mlkkk has quit [Ping timeout: 245 seconds]
mlkkk_ has quit [Ping timeout: 264 seconds]
akaiiro has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
Guest93035 has quit [Quit: Connection closed for inactivity]
elsurudo has quit [Quit: elsurudo]
akaiiro has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
llua` has joined #ruby
dionysus69 has quit [Client Quit]
llua has quit [Ping timeout: 256 seconds]
tfitts has quit [Quit: Connection closed for inactivity]
emilford has quit [Quit: leaving]
emilford has joined #ruby
llua` is now known as llua
emilford has quit [Client Quit]
icarus has quit [Ping timeout: 240 seconds]
Nuve has joined #ruby
dank has quit [Quit: Page closed]
jcalla has quit [Ping timeout: 264 seconds]
Zaab1t has joined #ruby
amar has joined #ruby
karapetyan has joined #ruby
shadeslayer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
shadeslayer has joined #ruby
jenrzzz has joined #ruby
amar_ has quit [Ping timeout: 248 seconds]
clemens3 has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
trevoke has quit [Remote host closed the connection]
Zaab1t has quit [Quit: Zaab1t]
jcalla has joined #ruby
ellcs has left #ruby [#ruby]
roshanavand has quit [Quit: Leaving.]
tdy has quit [Ping timeout: 240 seconds]
redlegion has quit [Remote host closed the connection]
redlegion has joined #ruby
wkoszek_ has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
<WAFFLEMAKER3000> quit
WAFFLEMAKER3000 has quit [Quit: WeeChat 2.1]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Ping timeout: 268 seconds]
synthroid has quit [Remote host closed the connection]
chamar has quit [Quit: Konversation terminated!]
synthroid has joined #ruby
tdy has joined #ruby
BlopMonster has joined #ruby
pastorinni has quit [Remote host closed the connection]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BlopMonster has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
pabs has quit [Ping timeout: 248 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cagomez has joined #ruby
pabs has joined #ruby
dionysus69 has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
tvw has quit []
quobo has joined #ruby
ta_ has quit [Remote host closed the connection]
amar_ has joined #ruby
cagomez has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
amar has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
psychicist__ has quit [Ping timeout: 264 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
\void has joined #ruby
wkoszek__ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ramfjord has joined #ruby
t0xik has joined #ruby
cadillac_ has joined #ruby
weaksauce has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
cagomez has joined #ruby
roshanavand has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
armando has quit [Ping timeout: 268 seconds]
Nuve has quit [Remote host closed the connection]
Keltia has quit [Changing host]
Keltia has joined #ruby
armando_ has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
sauvin has joined #ruby
Nuve has joined #ruby
Nuve has quit [Client Quit]
Nuve has joined #ruby
Nuve has quit [Client Quit]
dendazen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reber__ has quit [Remote host closed the connection]
wkoszek_ has quit [Quit: Lost terminal]
wkoszek__ has quit [Quit: Lost terminal]
fmcgeough has quit [Quit: fmcgeough]
p0s1x has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
p0s1x has quit [Client Quit]
plexigras has quit [Ping timeout: 268 seconds]
rsh has quit [Quit: leaving]
plexigras has joined #ruby
VladGh has quit [Remote host closed the connection]
Dimik has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
VladGh has joined #ruby
plexigras has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
synthroid has quit []
biberu has quit []
ur5us has joined #ruby
Nuve has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
za1b1tsu has joined #ruby
za1b1tsu has quit [Client Quit]
llua` has joined #ruby
Azure has joined #ruby
pabs has quit [Ping timeout: 240 seconds]
llua has quit [Ping timeout: 245 seconds]
pabs has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ldnunes has quit [Quit: Leaving]
cyberg has quit [Ping timeout: 256 seconds]
cagomez has quit [Ping timeout: 240 seconds]
cyberg has joined #ruby
pastorinni has joined #ruby
Mike11 has quit [Quit: Leaving.]
apeiros has quit [Ping timeout: 240 seconds]
roshanavand has quit [Quit: Leaving.]
tobiasvl has quit [Ping timeout: 276 seconds]
pabs has quit [Ping timeout: 240 seconds]
tvl has joined #ruby
tvl is now known as tobiasvl
pabs has joined #ruby
cagomez has joined #ruby
darkhanb has quit [Ping timeout: 240 seconds]
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schleppel has quit [Quit: Konversation terminated!]
sphenxes has quit [Quit: Leaving]
Yzguy has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
k0mpa has quit [Remote host closed the connection]
Junaos has quit [Quit: ZNC - http://znc.in]
llua` is now known as llua
Yzguy has quit [Quit: Zzz...]
mlkkk has joined #ruby
Junaos has joined #ruby
eblip is now known as eb0t_
Yzguy has joined #ruby
<Jiaoyin> Anyone here plans to switch over to GitLab because Microsoft purchased GitHub?
<llua> gitlab is hosted on azure tho
<SeepingN> bwahaha
ramfjord has quit [Ping timeout: 276 seconds]
<SeepingN> Microsoft. Winning via Brute Force
eckhard__ has joined #ruby
eckhardt_ has quit [Ping timeout: 256 seconds]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
conceivably has joined #ruby
jenrzzz has joined #ruby
Yzguy has quit [Quit: Zzz...]
Yzguy has joined #ruby
ramfjord has joined #ruby
elomatreb has quit [Quit: mep mep]
Owner has joined #ruby
mistym has quit [Ping timeout: 240 seconds]
mistym has joined #ruby
mistym has joined #ruby
mistym has quit [Changing host]
mlkkk has quit []
orbyt_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nickjj> Jiaoyin, that would be a rash decision without first seeing what happens
<baweaver> Programmers are a bit too reactionary sometimes.
RougeR has joined #ruby
pabs has quit [Ping timeout: 264 seconds]
mtkd has quit []
lytol has quit [Remote host closed the connection]
pabs has joined #ruby
<regedit> havenwood: hey
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
baweaver is now known as lemur
lemur is now known as baweaver
BaroMeter has quit [Remote host closed the connection]
shinnya has joined #ruby
<baweaver> He's running around at a conference regedit. probably won't be around for a bit
sanscoeur has quit [Remote host closed the connection]
<regedit> oh cool, what conference?
<baweaver> AltConf iirc
<baweaver> It's not unusual to see me and him running around Ruby conferences
<regedit> is anyone successfully using Sidekiq + connection_pool + HTTP.rb to make a bunch of keep-alive requests across many distinct executions of a Sidekiq Worker?
<nickjj> baweaver, it's true. one day you could be 5k+ lines deep in a side project, the world is amazing, then you see a video about some other tech and you're like "my life isn't complete until I learn this" so you insta abort / rewrite
<nickjj> i used to do that stuff a lot like 5 years ago haha
<baweaver> Just wait until it cycles
<baweaver> What's old becomes new
<baweaver> Like GraphQL is basically SOAP with JSON
<nickjj> yeah
fredlinhares has joined #ruby
conceivably has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
<nickjj> i saw an advert for a new editor the other day and one perk was you could load a browser in a code editing tab
<nickjj> but it made me think of an old memory from back in the VB6 days which made me think "oh cool, i can finally see the output of the programs i'm writing in my browser... just like i was doing in 1997"
<nickjj> *in my editor
ramfjord_ has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
<baweaver> or Dreamweaver
jenrzzz has joined #ruby
karapetyan has quit [Remote host closed the connection]
ramfjord_ has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
kliq has quit [Ping timeout: 276 seconds]
cschneid has quit [Remote host closed the connection]
apeiros has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
pastorinni has quit [Remote host closed the connection]
Burgestrand has joined #ruby
icarus has joined #ruby
SirFunk has quit [Quit: ZNC - http://znc.in]
SirFunk has joined #ruby
kwerle has joined #ruby
kwerle has quit [Client Quit]
kwerle has joined #ruby
griffindy has joined #ruby
srruby has joined #ruby
<kwerle> I'm looking for something I feel like I should know. I want to do `enumerable.detect{ |key| expensive_process(key) }` -- but I want to return the results of expensive_process (when it's truthy), NOT the key. Does that exist?
amar_ has quit [Remote host closed the connection]
amar has joined #ruby
sj0rz has joined #ruby
sj0rz has left #ruby [#ruby]
amar has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
TomyLobo has quit [Ping timeout: 245 seconds]
armyriad has quit [Ping timeout: 256 seconds]
<Radar> kwerle: enumerable.lazy.map { |key| expensive_process(key) }.detect(&:yield_self) ? At a big guess. I haven't tried it in the terminal at all yet.
armyriad has joined #ruby
<Radar> Ok, tried it and I'm off the mark.
BlopMonster has joined #ruby
clemens3_ has quit [Ping timeout: 248 seconds]
clemens3 has quit [Ping timeout: 264 seconds]
BlopMonster has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<baweaver> >> def exp_proc(v) v == 42 end; [1,2,50,42,20,3].reduce(nil) { |_, i| v = exp_proc(i); break v if v } # kwerle
<ruby[bot]> baweaver: # => true (https://eval.in/1016453)
<baweaver> >> def exp_proc(v) v == 42 end; [1,2,50,20,3].reduce(nil) { |_, i| v = exp_proc(i); break v if v } # kwerle
<ruby[bot]> baweaver: # => nil (https://eval.in/1016454)
srruby has quit [Quit: Leaving]
<baweaver> >> module Enumerable; def find_map(&fn); v = find(&fn) and fn[v] end; end; [[1,2,3,4].find_map { |v| v > 3 && v * 20 }, [1,2,3].find_map { |v| v > 3 && v * 20 }]
<ruby[bot]> baweaver: # => [80, nil] (https://eval.in/1016455)
<baweaver> :D
<baweaver> Radar: cookie plz
residentbiscuit has joined #ruby
gnufied has quit [Ping timeout: 245 seconds]
Burgestrand has quit [Quit: Closing time!]
<baweaver> >> def guard(cond, &fn) proc { |target| r = cond === target; [r, r && fn[target]] } end; g = guard(Integer) { |v| v * 20 }; {ten: g.call(10), nil: g.call(nil)}
<ruby[bot]> baweaver: # => {:ten=>[true, 200], :nil=>[false, false]} (https://eval.in/1016456)
venmx has joined #ruby
<baweaver> If you use a "guard" type pattern you can even return falsy values that are "matches"
jenrzzz has quit [Ping timeout: 240 seconds]