00:02
orbyt_ has joined #ruby
00:03
bigblind has quit [Ping timeout: 264 seconds]
00:03
mikecmpbll has quit [Quit: inabit. zz.]
00:03
willmichael has joined #ruby
00:04
jordanm has joined #ruby
00:05
alfiemax has joined #ruby
00:08
willmichael has quit [Read error: Connection reset by peer]
00:08
cschneid has quit [Ping timeout: 240 seconds]
00:09
alfiemax has quit [Ping timeout: 264 seconds]
00:10
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:11
Freshnuts has joined #ruby
00:13
cschneid has joined #ruby
00:14
sauvin_ has joined #ruby
00:16
sauvin_ is now known as bocaneriu
00:16
bocaneriu is now known as bocaneri
00:16
AJA4350 has quit [Remote host closed the connection]
00:17
houhoulis has joined #ruby
00:17
AJA4350 has joined #ruby
00:18
Psybur has joined #ruby
00:19
houhouli_ has joined #ruby
00:20
DTZUZU has quit [Quit: WeeChat 1.9]
00:21
cschneid has quit [Ping timeout: 240 seconds]
00:22
alfiemax has joined #ruby
00:22
houhoulis has quit [Ping timeout: 260 seconds]
00:23
willmichael has joined #ruby
00:26
alfiemax has quit [Ping timeout: 240 seconds]
00:27
schneider has quit [Ping timeout: 265 seconds]
00:31
AJA4350 has quit [Ping timeout: 260 seconds]
00:33
phaul has quit [Ping timeout: 264 seconds]
00:35
amatas has quit [Quit: amatas]
00:36
workmad3 has joined #ruby
00:36
Psybur has quit [Quit: Leaving]
00:37
mtkd has quit [Ping timeout: 264 seconds]
00:38
BaD_CrC has joined #ruby
00:39
alfiemax has joined #ruby
00:40
mtkd has joined #ruby
00:40
bigblind has joined #ruby
00:40
workmad3 has quit [Ping timeout: 240 seconds]
00:42
cschneid has joined #ruby
00:44
alfiemax has quit [Ping timeout: 268 seconds]
00:45
Puffball has quit [Remote host closed the connection]
00:47
Freshnuts has quit [Ping timeout: 264 seconds]
00:48
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:48
John_Ivan has quit [Read error: Connection reset by peer]
00:56
alex`` has quit [Ping timeout: 265 seconds]
00:56
adlerdias has quit [Quit: adlerdias]
00:56
ryzokuken has quit [Quit: Connection closed for inactivity]
00:59
x0f has quit [Ping timeout: 240 seconds]
01:00
alfiemax has joined #ruby
01:02
Dimik has quit [Ping timeout: 256 seconds]
01:04
x0f has joined #ruby
01:05
orbyt_ has joined #ruby
01:05
alfiemax has quit [Ping timeout: 256 seconds]
01:07
cagomez has quit [Remote host closed the connection]
01:13
marr has quit [Ping timeout: 264 seconds]
01:15
cschneid has quit [Ping timeout: 264 seconds]
01:17
sylario has quit [Quit: Connection closed for inactivity]
01:17
cschneid has joined #ruby
01:18
BTRE has quit [Remote host closed the connection]
01:20
kapil___ has quit [Quit: Connection closed for inactivity]
01:34
alfiemax has joined #ruby
01:34
GinoMan has joined #ruby
01:39
alfiemax has quit [Ping timeout: 256 seconds]
01:47
alfiemax has joined #ruby
01:50
govg has quit [Ping timeout: 240 seconds]
01:51
alfiemax has quit [Ping timeout: 240 seconds]
01:52
kapil___ has joined #ruby
01:54
cschneid has quit [Ping timeout: 268 seconds]
02:00
arescorpio has joined #ruby
02:00
alfiemax has joined #ruby
02:05
alfiemax has quit [Ping timeout: 264 seconds]
02:13
alfiemax has joined #ruby
02:15
isg has joined #ruby
02:15
x0f has quit [Ping timeout: 268 seconds]
02:16
x0f has joined #ruby
02:17
alfiemax has quit [Ping timeout: 260 seconds]
02:18
isg has quit [Client Quit]
02:22
cschneid has joined #ruby
02:24
dinfuehr_ has quit [Ping timeout: 256 seconds]
02:24
dinfuehr has joined #ruby
02:33
mniip has quit [Ping timeout: 256 seconds]
02:36
mniip has joined #ruby
02:36
alfiemax has joined #ruby
02:36
workmad3 has joined #ruby
02:36
alfiemax has quit [Remote host closed the connection]
02:36
alfiemax has joined #ruby
02:40
cdg has joined #ruby
02:41
workmad3 has quit [Ping timeout: 248 seconds]
02:42
habs has quit [Read error: Connection reset by peer]
02:45
Guest74 has joined #ruby
02:46
cdg has quit [Remote host closed the connection]
02:49
gizmore has joined #ruby
02:49
sammi` has quit [Quit: Lost terminal]
02:50
<
mozzarella >
wassup bruhhhh
02:51
<
Guest74 >
can tu test my program?
02:51
bigblind has quit [Ping timeout: 240 seconds]
02:51
<
mozzarella >
what does it do
02:51
bocaneri has quit [Ping timeout: 264 seconds]
02:52
sauvin_ has joined #ruby
02:52
gizmore|2 has quit [Ping timeout: 260 seconds]
02:53
willmichael has quit [Ping timeout: 240 seconds]
02:55
JammyHammy has quit [Read error: Connection reset by peer]
02:58
sammi` has joined #ruby
02:58
<
Guest74 >
mozzarella
03:00
apparition has joined #ruby
03:00
Guest74_ has joined #ruby
03:01
Guest74_ has quit [Client Quit]
03:02
Guest74 is now known as JonaBurgos
03:03
<
JonaBurgos >
mozzarella it's an automated ping
03:04
\void has quit [Quit: So long, and thanks for all the fish.]
03:05
sameerynho has quit [Ping timeout: 264 seconds]
03:05
<
weaksauce >
you should hardly ever need to use to_i
03:06
<
JonaBurgos >
Okay, it's my first program weaksauce
03:07
<
JonaBurgos >
weaksauce: Did it work well?
03:07
<
weaksauce >
i didn't try it but just looked at it
03:07
<
JonaBurgos >
weaksauce: ok
03:07
<
weaksauce >
just a few thoughts: typical ruby is indented 2 spaces
03:07
<
weaksauce >
array.new is not usually used
03:08
<
weaksauce >
same with hash.new
03:08
nowhereman_ has quit [Ping timeout: 256 seconds]
03:08
nowhere_man has joined #ruby
03:08
<
weaksauce >
unless you need a default when you have a missing key
03:09
<
JonaBurgos >
@a = {} or @ b = []
03:10
<
weaksauce >
@mi_array.each on line 78 is not doing anything
03:11
<
JonaBurgos >
weaksauce: Wow, I will connect more often here, everything learned from Google
03:12
alfiemax has quit [Remote host closed the connection]
03:12
<
JonaBurgos >
weaksauce: ok, if I do not occupy that line the result is 0
03:12
<
JonaBurgos >
Found 0 host(s) in 3.116 seconds | Range: 1-255 | Timeout: 1.
03:12
naprimer2 is now known as beremenjushka
03:13
<
weaksauce >
actually yeah that does do something my bad
03:14
<
weaksauce >
not a bad first go at it JonaBurgos though. not idiomatic ruby but it looks like it would work
03:15
<
JonaBurgos >
weaksauce: it works
03:15
<
JonaBurgos >
weaksauce: Do you know a lot about Ruby?
03:16
<
weaksauce >
i know a decent bit sure
03:16
<
JonaBurgos >
weaksauce ok
03:16
<
weaksauce >
there are many in here that know a lot more about ruby than me though
03:16
<
JonaBurgos >
in a program I need to clean the html code and just leave the url
03:17
jshjsh has joined #ruby
03:17
JoshS has quit [Ping timeout: 240 seconds]
03:18
<
JonaBurgos >
weaksauce Can that be done with pure ruby?
03:18
<
JonaBurgos >
weaksauce With Perl you can
03:19
<
JonaBurgos >
Perl is very complete when it comes to editing strings
03:20
willmichael has joined #ruby
03:20
<
weaksauce >
sure ruby can do that
03:21
milardovich has quit [Remote host closed the connection]
03:21
<
JonaBurgos >
weaksauce: How can I clean that example line, would you show me?
03:23
<
ruby[bot] >
weaksauce: # => /tmp/execpad-cca3659eb3c4/source-cca3659eb3c4:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (
https://eval.in/969748)
03:24
drewmcmillan has joined #ruby
03:24
nadir has quit [Quit: Connection closed for inactivity]
03:24
<
weaksauce >
many paths to rome though
03:25
cschneid has quit [Ping timeout: 260 seconds]
03:26
<
JonaBurgos >
hahah very good weaksauce
03:27
<
JonaBurgos >
weaksauce: Where can I learn that?
03:28
<
weaksauce >
not sure really, just have to keep learning. look up regular expressions and see how ruby does them
03:29
<
weaksauce >
once you know that you can usually find a way to use them to manipulate text. read the docs on strings to see what they offer
03:31
arescorpio has quit [Quit: Leaving.]
03:33
bigblind has joined #ruby
03:34
cschneid has joined #ruby
03:35
<
JonaBurgos >
weaksauce: in Perl is: $x =~ s/(href=\"|\".*)//g
03:36
<
weaksauce >
that probably works in ruby too. ruby is a lot like perl
03:37
<
JonaBurgos >
weaksauce: I mainly use Ruby but I do not know how to edit text that simple
03:38
<
JonaBurgos >
weaksauce: hopefully
03:38
<
JonaBurgos >
weaksauce: Surely someone here knows, I'll connect tomorrow
03:39
<
JonaBurgos >
weaksauce: thanks for the demo :)
03:40
<
JonaBurgos >
Goodnight everyone
03:45
Azure has quit [Quit: Oops.]
03:45
mrush has quit [Ping timeout: 256 seconds]
03:45
Azure has joined #ruby
03:51
_whitelogger has joined #ruby
03:56
jenrzzz has joined #ruby
03:56
jenrzzz has joined #ruby
03:56
jenrzzz has quit [Changing host]
03:56
mrush has joined #ruby
03:56
mrush is now known as Guest95598
04:02
nadir has joined #ruby
04:03
JonasSteiner has joined #ruby
04:03
<
JonasSteiner >
weaksauce: hi
04:04
<
weaksauce >
hello JonasSteiner
04:04
wlarip has quit [Ping timeout: 256 seconds]
04:04
<
JonasSteiner >
weaksauce: try this in irb
04:04
<
JonasSteiner >
a = a.gsub(/href=\"|".*$/, "")
04:05
<
JonasSteiner >
nothing more
04:06
<
weaksauce >
that works
04:06
<
JonasSteiner >
weaksauce: well now if I sleep, good night
04:07
JonasSteiner has quit [Client Quit]
04:07
motstgo has quit [Ping timeout: 276 seconds]
04:07
cschneid has quit [Ping timeout: 240 seconds]
04:08
jenrzzz has quit [Ping timeout: 264 seconds]
04:11
cschneid has joined #ruby
04:14
alfiemax has joined #ruby
04:15
sauvin_ is now known as bocaneri
04:15
jenrzzz has joined #ruby
04:18
webhat has quit [Ping timeout: 240 seconds]
04:18
webhat has joined #ruby
04:19
modin has quit [Ping timeout: 240 seconds]
04:19
alfiemax has quit [Ping timeout: 248 seconds]
04:20
modin has joined #ruby
04:21
ricer2 has quit [Ping timeout: 268 seconds]
04:22
frem has joined #ruby
04:22
sandroqz has joined #ruby
04:23
BTRE has joined #ruby
04:23
sandroqz has quit [Client Quit]
04:24
jenrzzz has quit [Ping timeout: 264 seconds]
04:24
netherwolfe has joined #ruby
04:24
sandroqz has joined #ruby
04:25
trautwein has joined #ruby
04:25
sandroqz has quit [Client Quit]
04:26
sandroqz has joined #ruby
04:32
sandroqz has quit [Quit: Leaving]
04:35
jenrzzz has joined #ruby
04:35
jenrzzz has joined #ruby
04:35
jenrzzz has quit [Changing host]
04:36
workmad3 has joined #ruby
04:41
workmad3 has quit [Ping timeout: 252 seconds]
04:49
Dimik has joined #ruby
04:59
gix- has joined #ruby
04:59
gix has quit [Disconnected by services]
05:01
r3m has joined #ruby
05:01
RougeR has quit [Ping timeout: 264 seconds]
05:03
motstgo has joined #ruby
05:05
cagomez has joined #ruby
05:07
motstgo has quit [Ping timeout: 240 seconds]
05:10
alfiemax has joined #ruby
05:11
jeffreylevesque_ has joined #ruby
05:14
Flisk has joined #ruby
05:15
cschneid has quit [Ping timeout: 248 seconds]
05:16
c0ncealed has quit [Remote host closed the connection]
05:17
darkhanb has joined #ruby
05:17
c0ncealed has joined #ruby
05:23
psmolen has quit [Ping timeout: 268 seconds]
05:25
psmolen has joined #ruby
05:26
guardianx has joined #ruby
05:27
cschneid has joined #ruby
05:27
jeffreylevesque_ has joined #ruby
05:29
dviola has quit [Quit: WeeChat 2.0.1]
05:29
psmolen has quit [Ping timeout: 256 seconds]
05:30
psmolen has joined #ruby
05:32
kapil___ has quit [Quit: Connection closed for inactivity]
05:33
jeffreylevesque_ has quit [Remote host closed the connection]
05:41
jenrzzz has quit [Ping timeout: 260 seconds]
05:44
cagomez has quit []
05:45
houhouli_ has quit []
05:47
cdg has joined #ruby
05:48
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:49
troys has quit [Ping timeout: 252 seconds]
05:49
cschneid has quit [Ping timeout: 260 seconds]
05:52
cdg has quit [Ping timeout: 276 seconds]
05:54
psmolen has quit [Ping timeout: 264 seconds]
05:56
psmolen has joined #ruby
05:56
cschneid has joined #ruby
05:56
milardovich has joined #ruby
05:59
guardianx has quit []
06:03
alfiemax_ has joined #ruby
06:07
alfiemax has quit [Ping timeout: 268 seconds]
06:08
cdg has joined #ruby
06:08
nowhereman_ has joined #ruby
06:11
nowhere_man has quit [Ping timeout: 240 seconds]
06:13
cdg has quit [Ping timeout: 245 seconds]
06:14
bigblind has quit [Ping timeout: 264 seconds]
06:16
netherwolfe has quit [Ping timeout: 252 seconds]
06:23
Gnut_ has joined #ruby
06:24
DTZUZO has quit [Ping timeout: 245 seconds]
06:26
sammi` has quit [Quit: Lost terminal]
06:35
jenrzzz has joined #ruby
06:35
jenrzzz has joined #ruby
06:35
jenrzzz has quit [Changing host]
06:37
workmad3 has joined #ruby
06:38
thinkpad has quit [Max SendQ exceeded]
06:39
thinkpad has joined #ruby
06:41
reber has joined #ruby
06:41
frem has quit [Quit: Connection closed for inactivity]
06:41
workmad3 has quit [Ping timeout: 240 seconds]
06:49
dionysus69 has joined #ruby
06:49
sammi` has joined #ruby
06:52
alfiemax_ has quit [Remote host closed the connection]
06:53
phaul has joined #ruby
06:56
ryzokuken has joined #ruby
06:58
bigblind has joined #ruby
07:01
cschneid has quit [Ping timeout: 256 seconds]
07:02
jenrzzz has quit [Ping timeout: 240 seconds]
07:07
cschneid has joined #ruby
07:38
cschneid has quit [Ping timeout: 260 seconds]
07:41
jnollette has quit [Remote host closed the connection]
07:41
_aeris_ has quit [Remote host closed the connection]
07:42
_aeris_ has joined #ruby
07:42
Dimik has quit [Ping timeout: 264 seconds]
07:43
jnollette has joined #ruby
07:43
jenrzzz has joined #ruby
07:43
jenrzzz has quit [Changing host]
07:43
jenrzzz has joined #ruby
07:44
Gnut_ has quit [Ping timeout: 260 seconds]
07:47
claudiuinberlin has joined #ruby
07:48
cschneid has joined #ruby
07:49
dionysus69 has quit [Ping timeout: 256 seconds]
08:02
jenrzzz has quit [Ping timeout: 240 seconds]
08:02
BH23 has joined #ruby
08:06
BH23 has quit [Client Quit]
08:07
BH23 has joined #ruby
08:07
BH23 has quit [Client Quit]
08:07
_Joes_ has joined #ruby
08:13
alex`` has joined #ruby
08:20
cschneid has quit [Ping timeout: 240 seconds]
08:23
_Joes_ has quit [Quit: Leaving]
08:23
BH23 has joined #ruby
08:25
cschneid has joined #ruby
08:28
gh has joined #ruby
08:29
cdg has joined #ruby
08:33
gh has left #ruby ["Leaving"]
08:34
cdg has quit [Ping timeout: 265 seconds]
08:34
nadir has quit [Quit: Connection closed for inactivity]
08:35
jenrzzz has joined #ruby
08:37
workmad3 has joined #ruby
08:42
ams__ has joined #ruby
08:43
workmad3 has quit [Ping timeout: 256 seconds]
08:43
marr has joined #ruby
08:45
megamosaren has joined #ruby
08:48
biberu has joined #ruby
08:54
suukim has joined #ruby
08:54
alfiemax has joined #ruby
08:57
faces has quit [Ping timeout: 264 seconds]
08:58
cschneid has quit [Ping timeout: 264 seconds]
08:58
ryzokuke_ has joined #ruby
08:59
clemens3 has joined #ruby
08:59
ryzokuke_ has quit [Client Quit]
08:59
jenrzzz has quit [Ping timeout: 264 seconds]
09:02
megamosaren has quit [Quit: Leaving]
09:04
motstgo has joined #ruby
09:05
bigblind has quit [Ping timeout: 268 seconds]
09:06
alfiemax has quit [Remote host closed the connection]
09:09
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:10
motstgo has quit [Ping timeout: 276 seconds]
09:12
netherwolfe has joined #ruby
09:14
mikecmpbll has joined #ruby
09:17
netherwolfe has quit [Ping timeout: 268 seconds]
09:18
im0nde_ has joined #ruby
09:20
Ltem has joined #ruby
09:20
alfiemax has joined #ruby
09:23
alfiemax_ has joined #ruby
09:25
alfiemax has quit [Ping timeout: 260 seconds]
09:28
im0nde_ is now known as im0nde
09:31
imode has quit [Ping timeout: 240 seconds]
09:36
schneider has joined #ruby
09:41
cschneid has joined #ruby
09:52
faces has joined #ruby
09:52
amatas has joined #ruby
09:52
bigblind has joined #ruby
09:54
alfiemax has joined #ruby
09:55
TinkerTyper has quit [Read error: Connection reset by peer]
09:57
TinkerTyper has joined #ruby
09:57
n008f4g_ has joined #ruby
09:58
alfiemax has quit [Remote host closed the connection]
09:58
alfiemax_ has quit [Ping timeout: 264 seconds]
09:59
willmichael has quit [Ping timeout: 240 seconds]
10:00
willmichael has joined #ruby
10:02
suukim has quit [Quit: Konversation terminated!]
10:08
mniip has quit [Ping timeout: 240 seconds]
10:11
cschneid has quit [Ping timeout: 256 seconds]
10:12
shinnya has joined #ruby
10:12
mniip has joined #ruby
10:14
cschneid has joined #ruby
10:17
alfiemax has joined #ruby
10:22
postmodern has joined #ruby
10:31
<
morfin >
i need help with Selenium - when i do @driver = Selenium::WebDriver.for driver where driver variable have value :firefox i get Net::ReadTimeout: Net::ReadTimeout exception any clue why?
10:33
schneider has quit [Quit: WeeChat 2.0.1]
10:35
alfiemax has quit [Remote host closed the connection]
10:37
<
morfin >
i see geckodriver starts but firefox not i guess i should start in headless mode?
10:37
alfiemax has joined #ruby
10:38
willmichael has quit [Ping timeout: 252 seconds]
10:38
workmad3 has joined #ruby
10:42
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:42
norphex has joined #ruby
10:43
workmad3 has quit [Ping timeout: 276 seconds]
10:45
willmichael has joined #ruby
10:46
halbbalda has joined #ruby
10:47
alfiemax has quit [Remote host closed the connection]
10:48
schneider has joined #ruby
10:52
houhoulis has joined #ruby
10:52
c0ncealed has quit [Ping timeout: 268 seconds]
10:53
jordanm has quit [Ping timeout: 260 seconds]
10:53
jordanm has joined #ruby
10:56
alfiemax has joined #ruby
10:57
aufi has joined #ruby
10:57
c0ncealed has joined #ruby
11:06
milardovich has quit []
11:07
desperek has joined #ruby
11:08
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:14
willmichael has quit [Ping timeout: 264 seconds]
11:19
cschneid has quit [Ping timeout: 265 seconds]
11:19
amatas has quit [Quit: amatas]
11:21
sameerynho has joined #ruby
11:25
tomphp has joined #ruby
11:25
bigblind has quit [Ping timeout: 256 seconds]
11:25
jinie has joined #ruby
11:26
cschneid has joined #ruby
11:29
norphex has quit [Quit: Leaving]
11:30
alfiemax has quit [Remote host closed the connection]
11:30
bigblind has joined #ruby
11:38
AJA4350 has joined #ruby
11:38
aufi has quit [Remote host closed the connection]
11:39
shinnya has quit [Ping timeout: 265 seconds]
11:42
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:43
alfiemax has joined #ruby
11:45
zautomata has quit [Ping timeout: 260 seconds]
11:48
Mermaid has joined #ruby
11:49
<
morfin >
does Selenium run isolated instances of Firefox?
11:52
\void has joined #ruby
11:53
alfiemax has quit [Remote host closed the connection]
11:58
zipace has joined #ruby
12:01
mn3m has joined #ruby
12:02
dviola has joined #ruby
12:05
bigblind has quit [Ping timeout: 248 seconds]
12:06
RougeR has joined #ruby
12:06
RougeR has joined #ruby
12:06
RougeR has quit [Changing host]
12:07
motstgo has joined #ruby
12:11
motstgo has quit [Ping timeout: 245 seconds]
12:11
dionysus69 has joined #ruby
12:14
Guest81558 has quit [Changing host]
12:14
Guest81558 has joined #ruby
12:14
Guest81558 has joined #ruby
12:14
Guest81558 is now known as pskosinski
12:14
dionysus69 has quit [Remote host closed the connection]
12:19
ta_ has joined #ruby
12:25
claudiuinberlin has joined #ruby
12:29
cschneid has quit [Ping timeout: 256 seconds]
12:32
zipace has quit [Disconnected by services]
12:32
ziprar has joined #ruby
12:32
goatish has joined #ruby
12:34
drewmcmillan has joined #ruby
12:34
houhoulis has quit []
12:36
konsolebox has quit [Ping timeout: 264 seconds]
12:38
workmad3 has joined #ruby
12:38
Guest99240 has quit [Read error: Connection reset by peer]
12:39
nowhere_man has joined #ruby
12:40
<
MasterOfDisaster >
hey, is there a way to use DESTDIR with bundler? I'm having trouble using native dependencies for gems.
12:40
ziprar is now known as zipace
12:40
Papierkorb has joined #ruby
12:40
Papierkorb has left #ruby ["Konversation terminated!"]
12:42
nowhereman_ has quit [Ping timeout: 248 seconds]
12:43
workmad3 has quit [Ping timeout: 268 seconds]
12:45
cdg has joined #ruby
12:46
cschneid has joined #ruby
12:49
cdg has quit [Ping timeout: 255 seconds]
12:51
konsolebox has joined #ruby
12:54
netherwolfe has joined #ruby
12:56
konsolebox has quit [Ping timeout: 248 seconds]
12:59
mn3m has quit [Ping timeout: 264 seconds]
12:59
AJA4350 has quit [Quit: AJA4350]
13:00
John_Ivan has joined #ruby
13:00
John_Ivan has joined #ruby
13:00
John_Ivan has quit [Changing host]
13:00
tomphp has joined #ruby
13:06
ggherdov has joined #ruby
13:06
netherwolfe has quit [Ping timeout: 256 seconds]
13:08
motstgo has joined #ruby
13:08
suukim has joined #ruby
13:11
zipace has quit [Quit: Leaving]
13:12
motstgo has quit [Ping timeout: 264 seconds]
13:13
im0nde has quit [Quit: im0nde]
13:17
BH23 has quit [Ping timeout: 245 seconds]
13:18
zipace has joined #ruby
13:19
cschneid has quit [Ping timeout: 240 seconds]
13:19
mn3m has joined #ruby
13:22
bigblind has joined #ruby
13:26
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:26
tomphp has joined #ruby
13:26
tomphp has quit [Client Quit]
13:27
cschneid has joined #ruby
13:27
tomphp has joined #ruby
13:27
tomphp has quit [Client Quit]
13:28
tomphp has joined #ruby
13:29
tomphp has quit [Client Quit]
13:31
_Joes_ has joined #ruby
13:35
rabajaj has quit [Quit: Leaving]
13:35
rabajaj has joined #ruby
13:36
tomphp has joined #ruby
13:41
deadnull has joined #ruby
13:47
rgiscard has quit [Quit: Gone fishing]
13:49
alfiemax has joined #ruby
13:53
NielsonRolim has joined #ruby
13:54
alfiemax has quit [Remote host closed the connection]
13:57
cdg has joined #ruby
14:00
kapil___ has joined #ruby
14:00
cschneid has quit [Ping timeout: 245 seconds]
14:03
cschneid has joined #ruby
14:04
NielsonRolim is now known as Exagerado
14:04
Exagerado is now known as NielsonRolim
14:05
postmodern has quit [Quit: Leaving]
14:06
biberu has joined #ruby
14:09
motstgo has joined #ruby
14:10
NielsonRolim is now known as rolim
14:13
motstgo has quit [Ping timeout: 240 seconds]
14:16
houhoulis has joined #ruby
14:17
goatish has quit [Quit: Hibernating]
14:17
nadir has joined #ruby
14:17
chouhoulis has joined #ruby
14:18
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:18
tomphp has joined #ruby
14:19
tomphp has quit [Client Quit]
14:19
tomphp has joined #ruby
14:20
tomphp has quit [Client Quit]
14:20
DLSteve has joined #ruby
14:22
tomphp has joined #ruby
14:22
tomphp has quit [Client Quit]
14:23
tomphp has joined #ruby
14:24
tomphp has quit [Client Quit]
14:26
deadnull has quit [Ping timeout: 252 seconds]
14:26
rolim has quit [Quit: Leaving]
14:28
rolim has joined #ruby
14:29
rolim has quit [Client Quit]
14:29
deadnull has joined #ruby
14:32
rolim has joined #ruby
14:32
<
desperek >
can i ask here about ror?
14:33
<
apeiros >
?rails desperek
14:33
<
ruby[bot] >
desperek: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
14:36
cschneid has quit [Ping timeout: 240 seconds]
14:38
workmad3 has joined #ruby
14:42
karapetyan has joined #ruby
14:43
xco has joined #ruby
14:43
workmad3 has quit [Ping timeout: 255 seconds]
14:44
<
xco >
hi. is this "$%{price}" equivalent to “$#{price}" ?
14:44
<
xco >
i haven’t seend “%{}” before
14:45
<
apeiros >
&ri String#%
14:45
bigblind has quit [Ping timeout: 245 seconds]
14:45
<
apeiros >
it's not equivalent, no
14:46
<
apeiros >
#{} interpolates immediately. %{} is for String#%, sprintf and friends
14:50
lroca has joined #ruby
14:50
envex has quit [Ping timeout: 240 seconds]
14:53
bauruine has joined #ruby
14:53
<
xco >
it’s not the same thing i guess
14:53
<
apeiros >
it's similar
14:53
<
apeiros >
you use the %{} vars in I18n.t
14:54
Zaab1t has joined #ruby
14:55
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:55
envex has joined #ruby
14:57
Lomex has quit [Max SendQ exceeded]
14:57
Lomex has joined #ruby
14:58
kt has joined #ruby
14:58
amatas has joined #ruby
15:00
drewmcmillan has joined #ruby
15:04
suukim has quit [Quit: Konversation terminated!]
15:04
deadnull has quit [Quit: deadnull]
15:06
cschneid has joined #ruby
15:09
motstgo has joined #ruby
15:11
adlerdias has joined #ruby
15:12
lroca is now known as roca
15:13
SuperLag has quit [Quit: reboot]
15:14
motstgo has quit [Ping timeout: 248 seconds]
15:14
SuperLag has joined #ruby
15:16
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:20
bigblind has joined #ruby
15:21
minimalism has quit [Quit: minimalism]
15:22
minimalism has joined #ruby
15:23
dionysus69 has joined #ruby
15:24
apparition has quit [Quit: Bye]
15:29
dviola has quit [Quit: WeeChat 2.0.1]
15:39
cschneid has quit [Ping timeout: 264 seconds]
15:40
dviola has joined #ruby
15:47
tomphp has joined #ruby
15:48
cschneid has joined #ruby
15:49
rolim has quit [Quit: Leaving]
15:54
Mike11 has joined #ruby
15:55
chouhoulis has quit [Ping timeout: 240 seconds]
15:56
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:59
nowhere_man has quit [Ping timeout: 240 seconds]
16:00
cdg has quit [Remote host closed the connection]
16:03
netherwolfe has joined #ruby
16:03
CodeBug has joined #ruby
16:04
cdg_ has joined #ruby
16:04
bigblind has quit [Ping timeout: 256 seconds]
16:05
nowhere_man has joined #ruby
16:06
cdg_ has quit [Remote host closed the connection]
16:07
netherwolfe has quit [Ping timeout: 255 seconds]
16:07
Mermaid has quit [Quit: Leaving]
16:17
tomphp has joined #ruby
16:21
cschneid has quit [Ping timeout: 264 seconds]
16:22
AJA4350 has joined #ruby
16:23
cschneid has joined #ruby
16:25
Puffball has joined #ruby
16:28
mn3m has quit [Quit: mn3m]
16:32
halbbalda has joined #ruby
16:32
adlerdias has quit [Quit: adlerdias]
16:32
ayonkhan has joined #ruby
16:35
adlerdias has joined #ruby
16:37
JonasSteiner has joined #ruby
16:37
opekktar has joined #ruby
16:37
opekktar has left #ruby [#ruby]
16:38
adlerdias has quit [Client Quit]
16:38
adlerdias has joined #ruby
16:40
halbbalda has joined #ruby
16:41
CodeBug has quit [Quit: Well apparently I've left the building]
16:47
howdoi has joined #ruby
16:48
kapil___ has quit [Quit: Connection closed for inactivity]
16:50
halbbalda has joined #ruby
16:54
espressocannon has joined #ruby
16:54
halbbalda has quit [Client Quit]
16:54
aufi has joined #ruby
16:54
<
espressocannon >
can somebody help me figure out why this is looping infinitely?
16:55
halbbalda has joined #ruby
16:55
<
espressocannon >
my `return` statement doesn't seem to be exiting the function
16:57
cschneid has quit [Ping timeout: 260 seconds]
16:58
<
JonasSteiner >
espressocannon: in no time you break the loop
16:58
halbbalda has quit [Client Quit]
16:58
halbbalda has joined #ruby
16:59
<
espressocannon >
shouldn't the if statement at the top level of the function break it out? or does it only break the current "layer"
17:01
<
JonasSteiner >
espressocannon: Well, I do not have much time to help you ... I'm currently working on a Python program
17:01
<
espressocannon >
o....k.....
17:01
<
havenwood >
espressocannon: It is returning as you expect. The issue is that you're calling the recursive function 13 times.
17:02
<
havenwood >
espressocannon: roman_mapping.size #=> 13
17:02
adlerdias has quit [Quit: adlerdias]
17:02
<
espressocannon >
only if the number is divisible by the key
17:03
cschneid has joined #ruby
17:03
<
havenwood >
espressocannon: But for each element of the Hash, so if the first one is a match - you still do the second.
17:03
<
havenwood >
But it's the second without regard to the first having happened.
17:03
<
havenwood >
espressocannon: It seems to me like you more want to find the first that matches your criteria and call the recursive function.
17:03
<
havenwood >
Right now, the recursive function is getting called over and over again.
17:03
<
havenwood >
You're branching out more than intended.
17:04
<
espressocannon >
why would it be called if the condition is not met, though
17:04
<
espressocannon >
if (number / k) >= 1 should make it attempt the next key..
17:04
<
havenwood >
espressocannon: On the each loop, it's reusing `number` for each pair.
17:05
<
havenwood >
Since `number` isn't changing, it just keeps doing the same thing for each key value pair - which means a ton of recursive calls.
17:05
<
espressocannon >
but it shouldn't be recursing if that condition is not met
17:06
<
espressocannon >
it should ust be trying all the kv pairs
17:06
<
espressocannon >
then when it finds one, it recurses
17:06
<
havenwood >
espressocannon: Right, but it's not decrementing the number in the #each loop.
17:06
<
havenwood >
It's setting off a recursive call for
*every* key value that matches the condition.
17:06
<
espressocannon >
it shouldn't be. it should only decrement when the condition is met
17:06
<
havenwood >
Not the first that matches.
17:06
<
espressocannon >
wait what
17:07
<
havenwood >
but it doesn't take into account any changes to `number`
17:07
<
espressocannon >
does it go loop until > condition > recurse > loop until > condition > recurse > return
17:07
<
havenwood >
espressocannon: Sorry, I see the issue but am having trouble explaining clearly pre-coffee >.>
17:07
<
espressocannon >
no problem i appreciate the help
17:07
<
havenwood >
It's basically working, but you're calling the recursive function way more times than you mean to, without number getting smaller.
17:08
<
espressocannon >
for the record. I do get theright result. but then it just keeps going
17:08
<
havenwood >
If you just found the first roman mapping that sufficed and did the recursive function, it'd work. But you're calling the recursive function over and over inside the iteration.
17:09
<
havenwood >
espressocannon: So say `1000 => "M"` matches the condition, it calls the recursive function.
17:10
<
havenwood >
You then shouldn't iterate on to `900 => "CM"`, but you are!
17:10
<
espressocannon >
yes. with the new_number, which is number-1000
17:10
<
espressocannon >
why does it keep going if the recursion is calld?
17:10
<
havenwood >
So the recursive function happens (yay, that's what we want) AND you go on to the next key value pair.
17:11
<
espressocannon >
so do i like... break after the function?
17:11
motstgo has joined #ruby
17:11
<
havenwood >
The next pair `900 => "CM"` also matches the condition, and does it's own recursive call, and so on.
17:11
<
espressocannon >
recursion* is called
17:11
<
havenwood >
So instead of the first match doing the recursive call, it's doing it for
*every* key value pair.
17:11
<
havenwood >
espressocannon: Because #each doesn't stop iterating when a recursive function is called.
17:12
<
havenwood >
So the `1000` was a match, it does the recursive call. You shouldn't
*also* carry on and do the `900`.
17:13
<
havenwood >
espressocannon: You're not stopping your each iteration when you find a condition that matches, so you're doing the second smallest roman and third smallest etc, each acting like the previous hadn't happened.
17:13
JonasSteiner has joined #ruby
17:14
<
espressocannon >
ok....
17:14
<
espressocannon >
right
17:14
<
espressocannon >
oooooook
17:14
<
espressocannon >
i think iget it
17:14
<
havenwood >
espressocannon: To fix it, #find one that matches your condition, and recurse. Don't recurse after you find the match. Those are too small, and havent' taken into account that the larger was subtracted.
17:14
<
havenwood >
It's the each continuing on and starting a ton of recursions.
17:14
karapetyan has quit [Remote host closed the connection]
17:14
<
espressocannon >
ok so... here is what i did
17:14
<
havenwood >
The first one it finds it shouldn't keep going.
17:14
<
espressocannon >
return map_dat_roman(roman_mapping, new_number, result)
17:15
<
espressocannon >
so that exits the recursion with that function
17:15
<
havenwood >
you could break or return, yeah
17:15
motstgo has quit [Ping timeout: 240 seconds]
17:15
claudiuinberlin has joined #ruby
17:15
<
espressocannon >
that is wild
17:15
<
havenwood >
really though, don't you want to #find rather than #each?
17:15
<
espressocannon >
so a "return" only "reutrns' a single recursion
17:15
<
havenwood >
(#each with a break on condition is like a #find)
17:16
<
havenwood >
espressocannon: yes, that would exit the iteration early
17:16
<
havenwood >
(which avoids the problem you're running into where you recurse more than intended)
17:16
<
espressocannon >
ok but, would i have to make a list of all the numbers and then find them?
17:16
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:16
<
havenwood >
are you familiar with #find?
17:16
<
espressocannon >
i thought ruby had an implicit return
17:16
<
havenwood >
it does have an implicit return - returns here are really not the issue
17:16
<
espressocannon >
but `map_dat_roman(roman_mapping, new_number, result)`
17:17
<
espressocannon >
should have acted as an implicit return right
17:17
<
havenwood >
you're just iterating through a collection and recursing more than intended
17:17
<
espressocannon >
putting `return` in front of that fixed the issue
17:17
<
havenwood >
you don't want to recurse for #each, you want to recurse for the first you #find
17:17
jamesaxl has joined #ruby
17:17
<
espressocannon >
oh wait
17:18
<
espressocannon >
because find stops once the condition is met
17:18
<
espressocannon >
ugh. right!
17:18
tomphp has joined #ruby
17:19
<
espressocannon >
im still getting used to all thedifferent methods in ruby. im about 2 weeks into learning rails, and I just started doing ruby quizzes yesterday to actually learn wtf is happening
17:19
JonasSteiner is now known as JonaBurgos
17:19
<
espressocannon >
it still kind of puzzles me, but I think I get it, and a find would for sure make more .... efficient?
17:21
axsuul has quit [Ping timeout: 240 seconds]
17:21
Mike11 has quit [Quit: Leaving.]
17:23
tomphp has quit [Ping timeout: 256 seconds]
17:23
<
espressocannon >
thanks again. now go get some coffee, you savage.
17:23
pmullins has joined #ruby
17:24
bigblind has joined #ruby
17:24
s3nd1v0g1us has joined #ruby
17:24
axsuul has joined #ruby
17:24
schneider has quit [Ping timeout: 245 seconds]
17:25
<
espressocannon >
oh wow. find is so much nicer
17:26
<
espressocannon >
thank you!
17:28
ayonkhan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:28
karapetyan has joined #ruby
17:29
<
havenwood >
espressocannon: you're welcome!
17:29
<
havenwood >
yeah, that looks way better
17:30
<
havenwood >
espressocannon: then just get rid of those `return`s
17:30
<
havenwood >
A nice way to check `>= 1` is to use #positive?.
17:31
<
havenwood >
espressocannon: if number.positive?
17:31
<
espressocannon >
yeah. I just wanted to make it so if people put a decimal, it would get rid of that
17:31
<
espressocannon >
can you give me your thoughts onthis? is it still readable?
17:32
karapetyan has quit [Ping timeout: 240 seconds]
17:33
guille-moe has joined #ruby
17:35
dionysus69 has quit [Ping timeout: 265 seconds]
17:38
dmitriy_ has joined #ruby
17:38
dmitriy_ has quit [Read error: Connection reset by peer]
17:41
sameerynho has quit [Ping timeout: 252 seconds]
17:41
alfiemax has joined #ruby
17:42
cschneid has quit [Ping timeout: 252 seconds]
17:42
<
havenwood >
espressocannon: Much better--yeah, that's way more readable.
17:43
<
havenwood >
espressocannon: You can get rid of the parens around `number >= 1`.
17:46
guille-moe1 has joined #ruby
17:47
guille-moe has quit [Ping timeout: 240 seconds]
17:47
guille-moe1 is now known as guille-moe
17:51
schneider has joined #ruby
17:53
guille-moe has quit [Ping timeout: 256 seconds]
17:54
xco has quit [Quit: xco]
17:57
s3nd1v0g1us has quit [Ping timeout: 245 seconds]
17:59
raynold has joined #ruby
18:04
xco has joined #ruby
18:05
CodeBug has joined #ruby
18:06
patteh has quit [Ping timeout: 240 seconds]
18:06
cschneid has joined #ruby
18:12
patteh has joined #ruby
18:13
adlerdias has joined #ruby
18:13
CodeBug has quit [Quit: Well apparently I've left the building]
18:17
roca has quit [Quit: roca]
18:25
phaul has quit [Ping timeout: 252 seconds]
18:33
alfiemax has quit [Remote host closed the connection]
18:33
sameerynho has joined #ruby
18:35
alfiemax has joined #ruby
18:38
<
morfin >
if i do class Foo < Bar end for already existing class something change?
18:39
cschneid has quit [Ping timeout: 264 seconds]
18:39
<
morfin >
ah i can't do this
18:39
dmitriy_ has joined #ruby
18:39
dmitriy_ has quit [Read error: Connection reset by peer]
18:39
workmad3 has joined #ruby
18:40
alfiemax has quit [Ping timeout: 256 seconds]
18:42
<
Mon_Ouie >
You can do it only if class Foo is already a subclass of Bar
18:43
karapetyan has joined #ruby
18:43
imode has joined #ruby
18:44
cschneid has joined #ruby
18:44
workmad3 has quit [Ping timeout: 256 seconds]
18:46
motstgo has joined #ruby
18:48
karapetyan has quit [Ping timeout: 256 seconds]
18:49
ta_ has quit [Remote host closed the connection]
18:50
ta_ has joined #ruby
18:50
ta_ has quit [Remote host closed the connection]
18:51
schneider has quit [Read error: Connection reset by peer]
18:51
ta_ has joined #ruby
18:51
ta_ has quit [Remote host closed the connection]
18:51
adlerdias has quit [Quit: adlerdias]
18:52
ta_ has joined #ruby
18:52
schneider has joined #ruby
18:52
ta_ has quit [Remote host closed the connection]
18:52
ta_ has joined #ruby
18:53
ta_ has quit [Remote host closed the connection]
18:57
orbyt_ has joined #ruby
18:57
dviola has quit [Quit: WeeChat 2.0.1]
18:57
ayonkhan has joined #ruby
18:57
RougeR has quit [Ping timeout: 276 seconds]
18:58
ayonkhan has quit [Client Quit]
19:04
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:04
schneider has quit [Ping timeout: 240 seconds]
19:05
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:06
schneider has joined #ruby
19:10
bigblind has quit [Ping timeout: 240 seconds]
19:11
detectiveaoi has joined #ruby
19:11
schneider has quit [Ping timeout: 256 seconds]
19:11
Ltem has quit [Ping timeout: 256 seconds]
19:14
ta_ has joined #ruby
19:16
phaul has joined #ruby
19:17
cschneid has quit [Ping timeout: 240 seconds]
19:20
cschneid has joined #ruby
19:32
phaul has quit [Quit: WeeChat 2.0.1]
19:33
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
19:34
phaul has joined #ruby
19:36
alfiemax has joined #ruby
19:38
karapetyan has joined #ruby
19:38
orbyt_ has joined #ruby
19:38
_aeris_ has quit [Remote host closed the connection]
19:39
_aeris_ has joined #ruby
19:39
Nicmavr has joined #ruby
19:39
Nicmavr is now known as Guest41419
19:40
alfiemax has quit [Ping timeout: 252 seconds]
19:43
karapetyan has quit [Ping timeout: 276 seconds]
19:47
Ltem has joined #ruby
19:50
alfiemax has joined #ruby
19:52
karapetyan has joined #ruby
19:52
Zaab1t has quit [Quit: Zaab1t]
19:52
milardovich has joined #ruby
19:53
Dimik has joined #ruby
19:53
Zaab1t has joined #ruby
19:53
cschneid has quit [Ping timeout: 268 seconds]
19:55
alfiemax has quit [Ping timeout: 240 seconds]
19:56
banisterfiend has joined #ruby
20:01
goatish has joined #ruby
20:02
cschneid has joined #ruby
20:06
cdg has joined #ruby
20:07
tomphp has joined #ruby
20:10
cdg has quit [Ping timeout: 256 seconds]
20:11
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:13
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
20:13
cdg has joined #ruby
20:17
espressocannon has quit [Ping timeout: 260 seconds]
20:20
dinfuehr has quit [Ping timeout: 260 seconds]
20:20
dinfuehr_ has joined #ruby
20:23
tomphp has quit [Ping timeout: 256 seconds]
20:29
segy has joined #ruby
20:29
alfiemax has joined #ruby
20:29
motstgo has left #ruby ["WeeChat 1.9"]
20:30
_aeris_ has quit [Remote host closed the connection]
20:30
_aeris_ has joined #ruby
20:32
milardovich has quit [Remote host closed the connection]
20:35
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:36
bigblind has joined #ruby
20:36
jp has joined #ruby
20:37
tomphp has joined #ruby
20:39
banisterfiend has joined #ruby
20:39
cschneid has quit [Ping timeout: 256 seconds]
20:39
cschneid has joined #ruby
20:40
workmad3 has joined #ruby
20:45
workmad3 has quit [Ping timeout: 256 seconds]
20:46
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:47
bigblind has quit [Ping timeout: 240 seconds]
20:49
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:49
xco has quit [Quit: xco]
20:49
milardovich has joined #ruby
20:50
milardovich has quit [Remote host closed the connection]
20:53
za1b1tsu has joined #ruby
20:53
xco has joined #ruby
20:56
willmichael has joined #ruby
20:57
bigblind has joined #ruby
21:00
jeffreylevesque has quit [Read error: Connection reset by peer]
21:04
tvw has joined #ruby
21:06
cschneid has quit [Remote host closed the connection]
21:11
milardovich has joined #ruby
21:12
reber has quit [Remote host closed the connection]
21:13
raatiniemi has quit [Ping timeout: 276 seconds]
21:15
milardovich has quit [Ping timeout: 256 seconds]
21:16
roshanavand has joined #ruby
21:20
alfiemax has quit [Remote host closed the connection]
21:21
jamesaxl has quit [Quit: WeeChat 2.0.1]
21:23
frem has joined #ruby
21:24
alfiemax has joined #ruby
21:25
Zaab1t has quit [Remote host closed the connection]
21:29
alfiemax has quit [Ping timeout: 256 seconds]
21:30
tomphp has joined #ruby
21:32
cschneid has joined #ruby
21:32
bigblind has quit [Ping timeout: 260 seconds]
21:43
ryzokuken has quit [Quit: Connection closed for inactivity]
21:45
kn-928 has joined #ruby
21:50
cschneid has quit [Ping timeout: 268 seconds]
21:50
Ltem has quit [Quit: good night]
21:58
n008f4g_ has quit [Ping timeout: 256 seconds]
22:00
kn-928 has quit [Ping timeout: 264 seconds]
22:01
sameerynho has quit [Ping timeout: 256 seconds]
22:01
livcd has quit [Remote host closed the connection]
22:03
cschneid has joined #ruby
22:03
alfiemax has joined #ruby
22:04
bigblind has joined #ruby
22:06
amatas has quit [Quit: amatas]
22:06
aufi has quit [Remote host closed the connection]
22:08
alfiemax has quit [Ping timeout: 256 seconds]
22:08
goatish has quit [Quit: Hibernating]
22:08
adlerdias has joined #ruby
22:09
adlerdias has quit [Client Quit]
22:10
orbyt_ has joined #ruby
22:18
willmichael has quit [Ping timeout: 240 seconds]
22:18
Rubemlrm has joined #ruby
22:20
willmichael has joined #ruby
22:30
minimalism has quit [Quit: minimalism]
22:30
tolerablyjake has joined #ruby
22:30
zipace has quit [Ping timeout: 255 seconds]
22:33
hahuang65 has quit [Quit: WeeChat 2.0.1]
22:33
alex`` has quit [Ping timeout: 245 seconds]
22:35
cschneid has quit [Ping timeout: 240 seconds]
22:35
hahuang65 has joined #ruby
22:35
hahuang65 has quit [Client Quit]
22:36
nowhereman_ has joined #ruby
22:37
hahuang65 has joined #ruby
22:37
hahuang65 has quit [Client Quit]
22:38
ledestin has joined #ruby
22:38
cschneid has joined #ruby
22:39
hahuang65 has joined #ruby
22:40
nowhere_man has quit [Ping timeout: 248 seconds]
22:40
hahuang65 has quit [Client Quit]
22:40
workmad3 has joined #ruby
22:42
alfiemax has joined #ruby
22:42
Dimik has quit [Ping timeout: 255 seconds]
22:42
hahuang65 has joined #ruby
22:45
workmad3 has quit [Ping timeout: 245 seconds]
22:46
bigblind has quit [Ping timeout: 256 seconds]
22:46
alfiemax has quit [Ping timeout: 245 seconds]
22:48
desperek has quit [Quit: xoxo]
22:53
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:55
tolerablyjake has joined #ruby
23:04
phaul has quit [Ping timeout: 252 seconds]
23:06
dviola has joined #ruby
23:09
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:10
zipace has joined #ruby
23:12
karapetyan has quit [Remote host closed the connection]
23:16
cschneid has quit [Ping timeout: 264 seconds]
23:20
alfiemax has joined #ruby
23:20
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:22
tolerablyjake has joined #ruby
23:22
xco has quit [Quit: xco]
23:22
\void has quit [Quit: So long, and thanks for all the fish.]
23:24
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:24
alfiemax has quit [Ping timeout: 264 seconds]
23:26
zipace has quit [Ping timeout: 256 seconds]
23:27
cschneid has joined #ruby
23:31
cschneid has quit [Ping timeout: 252 seconds]
23:32
frem has quit [Quit: Connection closed for inactivity]
23:32
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:33
chatchatt has joined #ruby
23:33
hahuang65 has quit [Quit: WeeChat 2.0.1]
23:33
hahuang65 has joined #ruby
23:35
hahuang65 has quit [Client Quit]
23:35
hahuang65 has joined #ruby
23:37
alfiemax has joined #ruby
23:38
orbyt_ has joined #ruby
23:40
AJA4350 has quit [Remote host closed the connection]
23:42
alfiemax has quit [Ping timeout: 268 seconds]
23:42
mynameisdebian has joined #ruby
23:43
<
mynameisdebian >
How can I set an ASCII counter with Ruby, where (for example) it prints 1, the 1 disappears, then it prints 2, the 2 disappears, then it prints 3, and so on? I would like to do this without clearing the screen each time (I just want to clear the line).
23:43
hahuang65 has quit [Quit: WeeChat 2.0.1]
23:44
hahuang65 has joined #ruby
23:44
DarthGandalf has quit [Quit: Bye]
23:44
<
mynameisdebian >
like, the counter changes, but always appears in the same spot
23:45
DarthGandalf has joined #ruby
23:46
<
Flisk >
mynameisdebian: 100.times { |i| STDOUT.write " #{i}\r"; sleep 1 }
23:46
AJA4350 has joined #ruby
23:46
<
Flisk >
carriage return :)
23:46
<
mynameisdebian >
Flisk: nice one, thank you
23:47
<
Flisk >
works nicely if your number only ever grows
23:48
clemens3 has quit [Ping timeout: 264 seconds]
23:51
houhoulis has quit []
23:53
cdg has quit [Remote host closed the connection]
23:56
hahuang65 has quit [Quit: WeeChat 2.0.1]
23:58
schneider has joined #ruby
23:59
hahuang65 has joined #ruby
23:59
za1b1tsu has quit [Quit: Leaving]