<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
<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?
<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.
<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.
<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>
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]
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
<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
* 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…]
<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?
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]
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 ?
<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]
<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