havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.1, 2.5.3, 2.4.5: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
ricer2 has joined #ruby
hiroaki has quit [Ping timeout: 257 seconds]
donofrio has joined #ruby
r29v has quit [Quit: r29v]
lxsameer has quit [Ping timeout: 245 seconds]
scrptktty has joined #ruby
AJA4350 has quit [Quit: AJA4350]
x77686d has quit [Quit: x77686d]
x77686d has joined #ruby
jcarl43 has joined #ruby
my1es has joined #ruby
hotpancakes has joined #ruby
my1es has quit [Remote host closed the connection]
my1es has joined #ruby
Swyper has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
hotpancakes has quit [Remote host closed the connection]
markoong has quit [Ping timeout: 246 seconds]
ogres has joined #ruby
x77686d has quit [Quit: x77686d]
stryek has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Ping timeout: 250 seconds]
jcarl43 has quit [Quit: WeeChat 2.3]
x77686d has joined #ruby
hotpancakes has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
dbugger_ has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
Dbugger has quit [Ping timeout: 264 seconds]
houhoulis has quit [Remote host closed the connection]
hotpancakes has joined #ruby
ByronJohnson has quit [Ping timeout: 240 seconds]
ByronJohnson has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
_whitelogger has joined #ruby
sgen has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO_ has joined #ruby
dviola has quit [Quit: WeeChat 2.3]
segy has quit [Ping timeout: 246 seconds]
ogres has quit [Quit: Connection closed for inactivity]
segy has joined #ruby
hotpancakes has joined #ruby
hotpancakes has quit [Ping timeout: 245 seconds]
cd has joined #ruby
TheSpectre has joined #ruby
DTZUZO_ has quit [Quit: WeeChat 2.0]
t0xik has quit [Quit: Connection closed for inactivity]
donofrio has quit [Remote host closed the connection]
tdy1 has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
maryo has joined #ruby
istrasci has quit [Ping timeout: 256 seconds]
hotpancakes has joined #ruby
hotpancakes has quit [Ping timeout: 250 seconds]
_whitelogger has joined #ruby
ddffg has joined #ruby
ravenousmoose[aw is now known as ravenousmoose
ravenousmoose is now known as ravenousmoose[aw
tdy1 has quit [Ping timeout: 246 seconds]
ddffg has quit [Remote host closed the connection]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
mikecmpbll has joined #ruby
scrptktty has quit [Quit: Connection closed for inactivity]
apparition has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
kapil____ has joined #ruby
gix has joined #ruby
dbugger_ has quit [Remote host closed the connection]
my1es has quit [Remote host closed the connection]
phaul has quit [Quit: bye]
postmodern has joined #ruby
r3m has quit [Remote host closed the connection]
r3m has joined #ruby
hotpancakes has joined #ruby
phaul has joined #ruby
clemens3_ has quit [Ping timeout: 246 seconds]
hotpancakes has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
ravenousmoose[aw is now known as ravenousmoose
Swyper has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
conta has joined #ruby
maryo has quit [Ping timeout: 255 seconds]
<phaul> it's really cr*p.
<phaul> What is the name of the element that is used to define what an object looks like after it is created?
Puffball has quit [Remote host closed the connection]
lxsameer has joined #ruby
evdubs_ has joined #ruby
evdubs has quit [Ping timeout: 250 seconds]
arekushi has quit [Quit: Gateway shutdown]
\void has quit [Quit: So long, and thanks for all the fish.]
hightower2 has joined #ruby
<hightower2> Hey how do I run a regex match and return result in one go? Like var = 'value'.match '(regex)'
<phaul> String#[] takes regex
<phaul> &>> 'hightower2'[/to./]
<rubydoc> # => "tow" (https://carc.in/#/r/69yk)
<hightower2> Pretty cool, thanks phage
<hightower2> phaul :_)
<phaul> np
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
ravenousmoose[aw has joined #ruby
ravenousmoose[aw is now known as ravenousmoose
ravenousmoose is now known as ravenousmoose[aw
ravenousmoose[aw is now known as ravenousmoose
hiroaki has joined #ruby
ravenousmoose has quit [Client Quit]
ravenousmoose[aw has joined #ruby
Fernando-Basso has joined #ruby
ravenousmoose[aw is now known as ravenousmoose
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
mikecmpbll has joined #ruby
ravenousmoose has joined #ruby
nemesit|znc has joined #ruby
cd has quit [Remote host closed the connection]
cd has joined #ruby
wolfshappen has quit [Ping timeout: 272 seconds]
wolfshappen_ has joined #ruby
ravenousmoose is now known as ravenousmoose[aw
hotpancakes has joined #ruby
hotpancakes has quit [Ping timeout: 272 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
conta has quit [Quit: conta]
conta has joined #ruby
Inline has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 259 seconds]
Inline has joined #ruby
ravenousmoose[aw is now known as ravenousmoose
hightower2 has quit [Ping timeout: 250 seconds]
aqd has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
aqd has joined #ruby
markoong has joined #ruby
aqd has quit [Client Quit]
conta has quit [Quit: conta]
aqd has joined #ruby
AJA4350 has joined #ruby
wolfshappen_ has quit [Quit: Waffs have technical problems too]
wolfshappen has joined #ruby
ravenousmoose is now known as ravenousmoose[aw
ravenousmoose[aw is now known as ravenousmoose
hotpancakes has joined #ruby
Dbugger has joined #ruby
hiroaki has quit [Ping timeout: 258 seconds]
quipa has joined #ruby
maryo has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
segy has quit [Quit: ZNC - http://znc.in]
conta has joined #ruby
apparition has quit [Quit: Bye]
segy has joined #ruby
_whitelogger has joined #ruby
hotpancakes has quit [Remote host closed the connection]
lucasb has joined #ruby
hotpancakes has joined #ruby
maryo_ has joined #ruby
maryo has quit [Ping timeout: 272 seconds]
hotpancakes has quit [Read error: Connection reset by peer]
Fernando-Basso has quit [Remote host closed the connection]
\13k has quit [Ping timeout: 246 seconds]
\13k has joined #ruby
Pillus has quit [Ping timeout: 264 seconds]
Pillus has joined #ruby
hotpancakes has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dellavg__ has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
hotpancakes has joined #ruby
hotpancakes has quit [Client Quit]
cow[moo] has joined #ruby
ravenousmoose has quit [Quit: Bye Bye ~]
blackmesa has joined #ruby
quipa has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
tdy1 has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.3]
uplime has quit [Quit: ZNC 1.7.1 - https://znc.in]
al2o3-cr has joined #ruby
uplime has joined #ruby
jcarl43 has joined #ruby
fanta7531 has joined #ruby
tdy1 is now known as tdy
Tempesta has quit [Ping timeout: 250 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
clemens3_ has joined #ruby
cow[moo] has joined #ruby
venmx has joined #ruby
houhoulis has joined #ruby
blackmesa has joined #ruby
Tempesta has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
blackmesa1 has quit [Ping timeout: 264 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Quit: conta]
cow[moo] has joined #ruby
renich has quit [Ping timeout: 258 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
foxxx0 has quit [Quit: foxxx0]
AJA4350 has quit [Ping timeout: 255 seconds]
foxxx0 has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.3]
akem has quit [Remote host closed the connection]
akem has joined #ruby
blackmesa1 has joined #ruby
maryo_ has quit [Quit: Leaving]
catbusters has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has quit [Quit: WeeChat 1.9.1]
cow[moo] has joined #ruby
govg has joined #ruby
moei has joined #ruby
djuber has joined #ruby
conta has joined #ruby
wolfshappen has quit [Ping timeout: 255 seconds]
wolfshappen_ has joined #ruby
Nexos has joined #ruby
<Nexos> I installed ruby 2.5.3-1 (x64) on windows with ruby+devkit, but when I launch irb, as soon as I try to enter a non-ascii (say é), it doesn't work anymore (any further input is not shown, Enter works)
<Nexos> Any idea why? (win10, console is in UTF-8 with chcp 65001 ; setting LANG variable to xx_YY.UTF-8 doesn't help)
hansol has joined #ruby
<hansol> I have created : rails new IndexEngine
<hansol> then : bin/rails server
<hansol> opening it : http://web.hayknews.com/ -- i got error page
<hansol> Pleae check it
my1es has joined #ruby
<hansol> where im wrong ?
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa1 has quit [Ping timeout: 258 seconds]
keanny479 has joined #ruby
<keanny479> hey
<keanny479> I use OpenBSD system
<keanny479> there's a bug with PTY
<keanny479> unable to open master/slave
<keanny479> What can i do ?
lucasb has quit [Quit: Connection closed for inactivity]
Joufflu has joined #ruby
\void has joined #ruby
dviola has joined #ruby
keanny479 has quit [Ping timeout: 256 seconds]
<phaul> hansol: you are not connected to the database
druonysus has quit [Quit: druonysus]
<hansol> phaul i that
<hansol> i fix it
<phaul> I see. Yay! You’re on Rails! :)
clemens3_ has quit [Ping timeout: 240 seconds]
<hansol> error was from sqlite3_adapter.rb
orbyt_ has joined #ruby
<hansol> added gem "sqlite3", "~> 1.4.0"
<hansol> rails generate active_admin:install
<hansol> Could not find generator 'active_admin:install'. Maybe you meant 'active_record:model', 'active_record:migration' or 'test_unit:system'
clemens3_ has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
jcarl43 has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sticaz has joined #ruby
ua has quit [Ping timeout: 250 seconds]
Joufflu has quit [Remote host closed the connection]
my1es has quit [Remote host closed the connection]
Joufflu has joined #ruby
<hansol> heho
<hansol> GIT
<hansol> remote: git://github.com/activeadmin/activeadmin.git
<hansol> revision: 81537db3610797fbe69067d2b15a96d75d543305
<hansol> i have this error:
<hansol> rb:235:in `allowed_in_path': The git source https://github.com/activeadmin.git is not yet checked out. Please run `bundle install` before trying to start your application (Bundler::GitError)
ua has joined #ruby
cd has quit [Quit: cd]
icarus has joined #ruby
fanta7531 has quit [Quit: fanta7531]
Joufflu has quit [Ping timeout: 246 seconds]
cow[moo] has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nexos has quit [Ping timeout: 256 seconds]
<hansol> afther i made change to my Gemfile.lock
conta has quit [Quit: conta]
<hansol> i run bundle install, but its loading old Gemfile not new changed what must i do to reload Gemfile.lock ?
dviola has quit [Quit: WeeChat 2.3]
<hansol> ??
orbyt_ has joined #ruby
AJA4350 has joined #ruby
TvL2386 has quit [Ping timeout: 250 seconds]
TvL2386 has joined #ruby
dviola has joined #ruby
sagax has quit [Ping timeout: 240 seconds]
rem_ has joined #ruby
<hansol> GIT
<hansol> remote: git://github.com/activeadmin/activeadmin.git
<hansol> revision: 0a5a15b88bffbe5efad7ff2a072ec4fe6eb09511
<hansol> this two lines are correct ?
spacesuitdiver has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
nowhere_man has joined #ruby
blackmesa1 has joined #ruby
catbusters has quit [Quit: Connection closed for inactivity]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
icarus has quit [Ping timeout: 250 seconds]
dmwit has joined #ruby
my1es has joined #ruby
valadares has quit [Read error: Connection reset by peer]
valadares has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akem has quit [Remote host closed the connection]
akem has joined #ruby
spacesuitdiver has joined #ruby
my1es has quit [Remote host closed the connection]
venmx has quit [Ping timeout: 272 seconds]
jcalla has quit [Ping timeout: 250 seconds]
rubydoc has quit [Ping timeout: 268 seconds]
rubydoc has joined #ruby
<dmwit> I'd like to represent infinite streams, and have a way for multiple consumers to cleanly iterate over them independently. I've got something working, but the approach I took feels like I'm forcing my Python-based thoughts into Ruby (it uses iterators).
<dmwit> A small example is here: https://pastebin.com/ujvsLseA
<ruby[bot]> dmwit: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<dmwit> Okay, a small example is also here: https://gist.github.com/dmwit/6e4af9138bd96729d4b746a127aa21f6
<dmwit> I'd love to hear any suggestions about how a more idiomatic version would look.
jcalla has joined #ruby
code_zombie has joined #ruby
<dmwit> (esp. if there's a library that already does this)
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
<phaul> dmwit: this looks interesting. Are you familiar with the Enumerator class?
nowhere_man has quit [Ping timeout: 258 seconds]
<phaul> Iterator looks quite similar to Enumerator as far as the interfaces go
<dmwit> I'm having a look now.
<phaul> &ri Enumerator
<phaul> they can represent infinite streams, lazily:
Dbugger has quit [Remote host closed the connection]
<phaul> &>> Enumerator.new { |y| loop { y << 1 } }.take 10
<rubydoc> # => [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] (https://carc.in/#/r/6a3x)
<phaul> notice how the loop is an infinite loop
lxsameer has quit [Ping timeout: 246 seconds]
<dmwit> Huh. I don't know loop.
<dmwit> &ri loop
<phaul> it's just while true
<dmwit> ok =)
<dmwit> Hm. It doesn't seem like you can "restart" an Enumerator, though, which my Stream+Iterator can do.
<dmwit> Ah, I think I understand what you're proposing.
<dmwit> You're not proposing replacing both, just Iterator, and so Stream.iterator (which I guess now that I understand the suggestion I should call Stream.each) would return an Enumerator.
<dmwit> Does that sound like what you've got in mind?
<phaul> hm. I haven't got that far :) I was just observing and pointing out similarities between your stuff and stuff that's there :D
<dmwit> thanks =)
<phaul> but since you mentioned "infinite streams" I immediately thought of Enumerators and lazyness. because they use fibers internally, and without those you can't afaik replicate lazy behaviour. the infinite loop with strict evaluation will be infinite
<dmwit> Ah well, you can always get lazy behavior with some pain by exploiting the fact that you don't evaluate a function's body when evaluating the function itself (only when calling it).
<dmwit> That's the trick I'm currently exploiting in Stream.
<dmwit> But I'll take a look at what fibers are, too, for good measure.
djuber has quit [Quit: ERC (IRC client for Emacs 27.0.50)]