00:00
<
phaul >
&>> print [?\\, ?/] * ?o ; raise 'hell'
00:00
<
phaul >
argh.. never mind ..
00:02
DigitallyBorn has joined #ruby
00:02
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:07
DigitallyBorn has quit [Ping timeout: 252 seconds]
00:08
spiette has joined #ruby
00:08
eckhardt_ has joined #ruby
00:11
sagax has quit [Quit: Konversation terminated!]
00:11
blackmesa has quit [Ping timeout: 252 seconds]
00:12
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:12
sgen has quit [Ping timeout: 272 seconds]
00:15
TheDracle has quit [Ping timeout: 244 seconds]
00:17
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:25
Tempesta has joined #ruby
00:26
DigitallyBorn has joined #ruby
00:27
gix has quit [Ping timeout: 240 seconds]
00:30
ivanskie has quit [Ping timeout: 268 seconds]
00:30
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:31
DigitallyBorn has quit [Ping timeout: 244 seconds]
00:36
sgen has joined #ruby
00:41
queip has quit [Read error: Connection reset by peer]
00:45
DigitallyBorn has joined #ruby
00:49
elphe has quit [Ping timeout: 268 seconds]
00:50
smutnysyn has joined #ruby
00:50
Freshnuts has joined #ruby
00:51
nchambers has joined #ruby
00:51
eckhardt_ has joined #ruby
00:52
Nicmavr has quit [Read error: Connection reset by peer]
00:54
queip has joined #ruby
00:54
venmx has quit [Ping timeout: 240 seconds]
00:55
Nicmavr has joined #ruby
00:55
DigitallyBorn has quit [Ping timeout: 268 seconds]
00:56
blackmesa has joined #ruby
00:58
jcalla has joined #ruby
00:58
cow[moo] has joined #ruby
01:01
cthulchu has quit [Ping timeout: 246 seconds]
01:01
elphe has joined #ruby
01:08
asphyxia has joined #ruby
01:10
DigitallyBorn has joined #ruby
01:19
DigitallyBorn has quit [Ping timeout: 260 seconds]
01:19
DigitallyBorn has joined #ruby
01:22
phaul has quit [Ping timeout: 268 seconds]
01:24
DigitallyBorn has quit [Ping timeout: 245 seconds]
01:25
DigitallyBorn has joined #ruby
01:26
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:32
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:33
smutnysyn has quit [Quit: WeeChat 2.2]
01:37
mroutis has quit [Ping timeout: 268 seconds]
01:38
DigitallyBorn has quit [Ping timeout: 268 seconds]
01:39
bmurt has joined #ruby
01:41
queip has quit [Read error: Connection reset by peer]
01:47
asphyxia has quit [Ping timeout: 240 seconds]
01:49
DigitallyBorn has joined #ruby
01:52
AJA4350 has quit [Quit: AJA4350]
01:53
akaiiro has quit [Ping timeout: 246 seconds]
01:55
queip has joined #ruby
01:58
DigitallyBorn has quit [Ping timeout: 250 seconds]
01:59
DigitallyBorn has joined #ruby
02:08
dinfuehr_ has quit [Ping timeout: 252 seconds]
02:08
DigitallyBorn has quit [Remote host closed the connection]
02:09
DigitallyBorn has joined #ruby
02:09
dinfuehr has joined #ruby
02:12
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:13
bmurt has joined #ruby
02:13
DigitallyBorn has quit [Ping timeout: 246 seconds]
02:14
DigitallyBorn has joined #ruby
02:22
sgen has quit [Remote host closed the connection]
02:22
sgen has joined #ruby
02:22
DigitallyBorn has quit [Ping timeout: 244 seconds]
02:24
DigitallyBorn has joined #ruby
02:27
TheDracle has joined #ruby
02:28
DigitallyBorn has quit [Ping timeout: 240 seconds]
02:29
DigitallyBorn has joined #ruby
02:32
TheDracle has quit [Ping timeout: 246 seconds]
02:36
mroutis has joined #ruby
02:37
DigitallyBorn has quit [Ping timeout: 245 seconds]
02:38
DigitallyBorn has joined #ruby
02:41
bambanx has joined #ruby
02:42
queip has quit [Read error: Connection reset by peer]
02:47
DigitallyBorn has quit [Ping timeout: 245 seconds]
02:47
elphe has quit [Ping timeout: 252 seconds]
02:48
DigitallyBorn has joined #ruby
02:50
queip has joined #ruby
02:53
AKPWD has quit [Ping timeout: 250 seconds]
02:53
Scriptonaut has left #ruby [#ruby]
02:54
AKPWD has joined #ruby
02:56
sgen has quit [Ping timeout: 264 seconds]
02:56
DigitallyBorn has quit [Ping timeout: 246 seconds]
02:58
DigitallyBorn has joined #ruby
03:01
blackmesa has quit [Ping timeout: 260 seconds]
03:07
DigitallyBorn has quit [Ping timeout: 268 seconds]
03:08
DigitallyBorn has joined #ruby
03:08
awkwords has joined #ruby
03:11
elphe has joined #ruby
03:11
crankharder has joined #ruby
03:13
sanscoeur has quit [Remote host closed the connection]
03:15
elphe has quit [Ping timeout: 240 seconds]
03:16
crankharder has quit [Ping timeout: 268 seconds]
03:16
DigitallyBorn has quit [Ping timeout: 244 seconds]
03:17
DigitallyBorn has joined #ruby
03:18
elphe has joined #ruby
03:19
jp is now known as because
03:26
DigitallyBorn has quit [Ping timeout: 244 seconds]
03:27
DigitallyBorn has joined #ruby
03:32
DigitallyBorn has quit [Ping timeout: 240 seconds]
03:32
DigitallyBorn has joined #ruby
03:41
DigitallyBorn has quit [Ping timeout: 250 seconds]
03:47
DigitallyBorn has joined #ruby
03:52
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:56
DigitallyBorn has quit [Ping timeout: 244 seconds]
03:57
DigitallyBorn has joined #ruby
04:05
braincrash has quit [Quit: bye bye]
04:06
DigitallyBorn has quit [Ping timeout: 244 seconds]
04:07
DigitallyBorn has joined #ruby
04:07
segy has joined #ruby
04:07
bambanx has quit [Quit: Leaving]
04:09
braincrash has joined #ruby
04:13
roshanavand1 has joined #ruby
04:15
darkhanb has joined #ruby
04:15
DigitallyBorn has quit [Ping timeout: 268 seconds]
04:16
DigitallyBorn has joined #ruby
04:16
roshanavand has quit [Ping timeout: 264 seconds]
04:16
roshanavand1 is now known as roshanavand
04:23
roshanavand has quit [Remote host closed the connection]
04:25
DigitallyBorn has quit [Ping timeout: 246 seconds]
04:26
DigitallyBorn has joined #ruby
04:31
DigitallyBorn has quit [Ping timeout: 246 seconds]
04:31
DigitallyBorn has joined #ruby
04:31
roshanavand has joined #ruby
04:33
darkhanb has joined #ruby
04:33
awkwords has quit [Quit: no]
04:33
awkwords has joined #ruby
04:36
DigitallyBorn has quit [Ping timeout: 244 seconds]
04:36
DigitallyBorn has joined #ruby
04:41
za1b1tsu has joined #ruby
04:42
queip has quit [Read error: Connection reset by peer]
04:43
white_lilies has joined #ruby
04:44
meinside has quit [Quit: Connection closed for inactivity]
04:55
DigitallyBorn has quit [Ping timeout: 268 seconds]
04:55
queip has joined #ruby
04:56
DigitallyBorn has joined #ruby
04:57
elphe has quit [Ping timeout: 246 seconds]
05:01
elphe has joined #ruby
05:01
za1b1tsu has quit [Ping timeout: 240 seconds]
05:03
venmx has joined #ruby
05:03
esrse has joined #ruby
05:05
DigitallyBorn has quit [Ping timeout: 245 seconds]
05:07
arescorpio has joined #ruby
05:07
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:10
DigitallyBorn has joined #ruby
05:10
asphyxia has joined #ruby
05:12
woodruffw has quit [Ping timeout: 246 seconds]
05:16
donofrio has quit [Remote host closed the connection]
05:17
za1b1tsu has joined #ruby
05:19
because is now known as jp
05:19
MoritaShinobu has joined #ruby
05:24
DigitallyBorn has quit [Ping timeout: 252 seconds]
05:25
DigitallyBorn has joined #ruby
05:25
Freshnuts has quit [Quit: Leaving]
05:28
Freshnuts has joined #ruby
05:33
ua has quit [Ping timeout: 268 seconds]
05:34
DigitallyBorn has quit [Ping timeout: 268 seconds]
05:35
DigitallyBorn has joined #ruby
05:37
arescorpio has quit [Quit: Leaving.]
05:42
queip has quit [Read error: Connection reset by peer]
05:43
Inline has quit [Quit: Leaving]
05:44
DigitallyBorn has quit [Ping timeout: 268 seconds]
05:44
DigitallyBorn has joined #ruby
05:50
roshanavand has quit [Remote host closed the connection]
05:50
roshanavand has joined #ruby
05:51
queip has joined #ruby
05:51
Inside has quit [Disconnected by services]
05:51
Inside has joined #ruby
05:52
<
Inside >
What's a good way to hash a data structure generated using YAML.from_file ?
05:52
<
Inside >
by that I mean... get a long-term stable UUID of some sort that represents the file
05:54
DigitallyBorn has quit [Ping timeout: 268 seconds]
05:54
DigitallyBorn has joined #ruby
05:57
sputnik13 has joined #ruby
05:58
marz_d`ghostman has joined #ruby
05:59
<
marz_d`ghostman >
I already have an existing spec files for some of my .rb files. Is there a command to automatically generate spec files for newly created .rb files?
06:00
dostoyevsky has quit [Quit: leaving]
06:00
dostoyevsky has joined #ruby
06:02
crankharder has joined #ruby
06:03
DigitallyBorn has quit [Ping timeout: 250 seconds]
06:04
DigitallyBorn has joined #ruby
06:04
elphe has quit [Ping timeout: 272 seconds]
06:06
arescorpio has joined #ruby
06:06
crankharder has quit [Ping timeout: 252 seconds]
06:06
aupadhye has joined #ruby
06:11
Inside has quit [Quit: Leaving]
06:12
DigitallyBorn has quit [Ping timeout: 240 seconds]
06:12
Cthulu201 has quit [Ping timeout: 245 seconds]
06:13
DigitallyBorn has joined #ruby
06:14
reber has joined #ruby
06:15
Cthulu201 has joined #ruby
06:18
arescorpio has quit [Remote host closed the connection]
06:19
asphyxia has quit [Ping timeout: 268 seconds]
06:23
DigitallyBorn has quit [Ping timeout: 240 seconds]
06:23
DigitallyBorn has joined #ruby
06:24
sauvin has joined #ruby
06:24
woodruffw has joined #ruby
06:30
Xiti` has joined #ruby
06:33
Xiti has quit [Ping timeout: 260 seconds]
06:34
mangold has quit [Ping timeout: 250 seconds]
06:37
DigitallyBorn has quit [Ping timeout: 268 seconds]
06:38
DigitallyBorn has joined #ruby
06:41
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:41
queip has quit [Read error: Connection reset by peer]
06:42
white_lilies has quit [Ping timeout: 252 seconds]
06:46
aupadhye_ has joined #ruby
06:46
DigitallyBorn has quit [Ping timeout: 240 seconds]
06:48
aupadhye has quit [Ping timeout: 240 seconds]
06:50
queip has joined #ruby
06:50
<
marz_d`ghostman >
Is it possible to create an instance variable from a module included in a class? Like inside self.included method of a module?
06:51
<
marz_d`ghostman >
baweaver: Where can I view the video?
06:52
<
baweaver >
Not out for probably a month or so
06:52
<
baweaver >
Why do you want to do that?
06:52
DigitallyBorn has joined #ruby
06:53
<
marz_d`ghostman >
baweaver: I have created a module specifically for Logging which I just want to include in a class. In the said module, I want to create a specific log file for each instance of the class where I include it. So as to separate logging functionalities.
06:53
<
marz_d`ghostman >
or is it going too far?
06:54
<
baweaver >
Read into dependency injection
06:54
<
baweaver >
I'd just have a universal logger unless you have some seriously gnarly application
06:56
<
marz_d`ghostman >
I guess I'll just have to create the logger in the class itself to make it simple
06:57
<
marz_d`ghostman >
Every instance of a class will run a different sync, so I want to log it on different files depending on the directory it is syncing
06:59
roshanavand has quit [Remote host closed the connection]
07:00
roshanavand has joined #ruby
07:01
mroutis has quit [Quit: leaving]
07:02
elphe has joined #ruby
07:05
mangold has joined #ruby
07:06
DigitallyBorn has quit [Ping timeout: 245 seconds]
07:07
DigitallyBorn has joined #ruby
07:15
donofrio has joined #ruby
07:19
venmx has quit [Ping timeout: 244 seconds]
07:21
DigitallyBorn has quit [Ping timeout: 244 seconds]
07:21
DigitallyBorn has joined #ruby
07:23
conta has joined #ruby
07:28
asphyxia has joined #ruby
07:30
DigitallyBorn has quit [Ping timeout: 252 seconds]
07:31
DigitallyBorn has joined #ruby
07:33
venmx has joined #ruby
07:38
ss_much has quit [Quit: Connection closed for inactivity]
07:40
DigitallyBorn has quit [Ping timeout: 252 seconds]
07:40
venmx has quit [Remote host closed the connection]
07:41
DigitallyBorn has joined #ruby
07:41
queip has quit [Read error: Connection reset by peer]
07:42
Guest24308 has joined #ruby
07:45
mangold has quit [Quit: Leaving]
07:48
queip has joined #ruby
07:50
DigitallyBorn has quit [Ping timeout: 264 seconds]
07:51
DigitallyBorn has joined #ruby
07:56
phaul has joined #ruby
08:00
DigitallyBorn has quit [Ping timeout: 268 seconds]
08:00
DigitallyBorn has joined #ruby
08:02
whysthatso has quit [Quit: whysthatso]
08:05
DigitallyBorn has quit [Ping timeout: 244 seconds]
08:05
DigitallyBorn has joined #ruby
08:05
ellcs has joined #ruby
08:07
clemens3_ has joined #ruby
08:10
DigitallyBorn has quit [Ping timeout: 244 seconds]
08:10
DigitallyBorn has joined #ruby
08:13
nchambers has quit [Quit: WeeChat 2.2]
08:15
roshanavand has quit [Remote host closed the connection]
08:15
esrse has quit [Ping timeout: 272 seconds]
08:18
roshanavand has joined #ruby
08:20
DigitallyBorn has quit [Ping timeout: 268 seconds]
08:20
DigitallyBorn has joined #ruby
08:22
asphyxia has quit [Ping timeout: 252 seconds]
08:23
lomex has joined #ruby
08:24
Azure|dc has joined #ruby
08:24
bairyn has joined #ruby
08:24
DigitallyBorn has quit [Ping timeout: 244 seconds]
08:25
elphe has quit [Ping timeout: 244 seconds]
08:25
DigitallyBorn has joined #ruby
08:26
Azure has quit [Ping timeout: 260 seconds]
08:32
postmodern has quit [Quit: Leaving]
08:33
asphyxia has joined #ruby
08:34
DigitallyBorn has quit [Ping timeout: 272 seconds]
08:35
DigitallyBorn has joined #ruby
08:36
keden has joined #ruby
08:39
venmx has joined #ruby
08:42
queip has quit [Read error: Connection reset by peer]
08:42
Guest24308 has quit [Ping timeout: 268 seconds]
08:44
DigitallyBorn has quit [Ping timeout: 250 seconds]
08:44
BH23 has joined #ruby
08:44
DigitallyBorn has joined #ruby
08:49
elphe has joined #ruby
08:52
queip has joined #ruby
08:54
elphe has quit [Ping timeout: 245 seconds]
08:57
Burgestrand has joined #ruby
08:58
Burgestrand has quit [Client Quit]
08:59
DigitallyBorn has quit [Ping timeout: 268 seconds]
08:59
DigitallyBorn has joined #ruby
09:01
ua has joined #ruby
09:02
govg has quit [Ping timeout: 244 seconds]
09:05
ua has quit [Ping timeout: 245 seconds]
09:10
Cthulu201 has quit [Read error: Connection reset by peer]
09:13
Xiti` has quit [Quit: Xiti`]
09:13
Xiti has joined #ruby
09:13
claudiuinberlin has joined #ruby
09:13
DigitallyBorn has quit [Ping timeout: 264 seconds]
09:23
Cthulu201 has joined #ruby
09:25
elphe has joined #ruby
09:29
Guest24308 has joined #ruby
09:30
elphe has quit [Ping timeout: 252 seconds]
09:34
elphe has joined #ruby
09:36
lxsameer has joined #ruby
09:38
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:39
lomex has joined #ruby
09:44
lomex has quit [Ping timeout: 252 seconds]
09:50
blackmesa has joined #ruby
09:50
memo1 has quit [Quit: WeeChat 1.4]
09:51
voice_ftp has joined #ruby
09:52
SCHAPiE has quit [Ping timeout: 268 seconds]
09:52
Azure has joined #ruby
09:52
c0san0stra has quit [Ping timeout: 268 seconds]
09:52
orpl has quit [Ping timeout: 268 seconds]
09:52
orpl has joined #ruby
09:52
jordanm has quit [Remote host closed the connection]
09:52
jordanm has joined #ruby
09:53
Cthulu201 has quit [Ping timeout: 268 seconds]
09:53
venmx has quit [Ping timeout: 268 seconds]
09:53
asphyxia has quit [Ping timeout: 268 seconds]
09:53
C-o has quit [Ping timeout: 268 seconds]
09:53
timeless has quit [Ping timeout: 268 seconds]
09:53
venmx has joined #ruby
09:53
asphyxia has joined #ruby
09:53
Azure|dc has quit [Ping timeout: 268 seconds]
09:53
claudiuinberlin has quit [Ping timeout: 268 seconds]
09:53
jcalla has quit [Ping timeout: 268 seconds]
09:53
voiceftp has quit [Ping timeout: 268 seconds]
09:53
thinkpad has quit [Ping timeout: 268 seconds]
09:54
jcalla has joined #ruby
09:54
r3m has joined #ruby
09:54
Cthulu201 has joined #ruby
09:55
thinkpad has joined #ruby
09:55
timeless has joined #ruby
09:56
c0san0stra has joined #ruby
09:57
kaleido has quit [Remote host closed the connection]
09:59
SCHAPiE has joined #ruby
10:03
Guest24308 has quit [Ping timeout: 246 seconds]
10:08
voolik has joined #ruby
10:10
Guest24308 has joined #ruby
10:20
asphyxia has quit [Ping timeout: 246 seconds]
10:22
asphyxia has joined #ruby
10:30
TheDracle has joined #ruby
10:32
elphe has quit [Ping timeout: 246 seconds]
10:33
elphe has joined #ruby
10:34
conta has quit [Quit: conta]
10:35
TheDracle has quit [Ping timeout: 240 seconds]
10:41
queip has quit [Read error: Connection reset by peer]
10:42
hiroaki has joined #ruby
10:45
Cthulu201 has quit [Read error: Connection reset by peer]
10:49
MoritaShinobu has quit [Ping timeout: 245 seconds]
10:49
Cthulu201 has joined #ruby
10:50
queip has joined #ruby
10:51
Freshnuts has quit [Quit: Leaving]
10:52
vasilakisfil has joined #ruby
10:52
<
vasilakisfil >
hi, accessing a hash value by key is extremely fasst. Is it possible to access the value of the first key with the same performance ?
10:53
zapata has quit [Read error: Connection reset by peer]
10:54
<
phaul >
I expect Hash#first to be actually faster
10:54
zapata has joined #ruby
10:54
<
phaul >
&>> {a:1, b:2}.first
10:56
<
phaul >
That's becasue the enumeration doesn't have to deal with the key lookups at all, it just walks the entries by the link pointers. That's how Hash is Enumerable. But I'm speculating, and I don't actually know the implementation in detail
10:56
<
vasilakisfil >
actualy it's not that fast
10:57
<
phaul >
what's not that fast?
10:57
<
phaul >
key lookup or first?
10:58
<
vasilakisfil >
ah sorry my bad folks, I misread the benchmark's results
10:59
AJA4350 has joined #ruby
11:00
<
vasilakisfil >
ah no my bad again, I am saying it right: HASH[:aaaa] is the fastest by far
11:00
<
vasilakisfil >
then it's HASH.first[0] and then of course HASH.keys.first
11:00
<
vasilakisfil >
it's a big difference, any idea how to speed it up ?
11:01
MoritaShinobu has joined #ruby
11:01
grr12314 has joined #ruby
11:01
<
grr12314 >
hello, what is ~/$/ ?
11:02
DigitallyBorn has joined #ruby
11:03
<
phaul >
vasilakisfil: isn't :aaa the last key?
11:04
<
vasilakisfil >
yeah maybe it is actually, does it make difference ? let me check initializing before the faked data
11:04
nicolasb has joined #ruby
11:05
<
vasilakisfil >
now made it to be the first, now it seems like directly accessing the key is even faster
11:07
DigitallyBorn has quit [Ping timeout: 276 seconds]
11:07
paraxial has joined #ruby
11:12
hiroaki has quit [Ping timeout: 240 seconds]
11:14
<
grr12314 >
hello, what is ~/$/ ?
11:16
<
phaul >
&ri Regexp#~ grr12314
11:16
<
rubydoc >
did not understand that, parser error @ char position 9
11:21
r3m is now known as C-o
11:21
fredmorcos has joined #ruby
11:28
<
phaul >
(right at the bottom of the page)
11:33
<
grr12314 >
i dont get it
11:33
<
grr12314 >
in the code that used it it was equivalent to $_.size
11:34
<
grr12314 >
does ~ automatically apply to $_ if used as unary op?
11:34
<
grr12314 >
and does it return the position that matches?
11:41
Guest24308 has quit [Ping timeout: 252 seconds]
11:42
queip has quit [Read error: Connection reset by peer]
11:43
voolik has quit [Quit: Taking a nap...]
11:43
roshanavand has quit [Remote host closed the connection]
11:44
roshanavand has joined #ruby
11:48
<
grr12314 >
are there other things that operate on $_ without mentioning it?
11:48
queip has joined #ruby
11:49
<
canton7 >
grr12314, from phaul's doc: Matches rxp against the contents of $_. Equivalent to rxp =~ $_.. Looking at the doc for =~ (in the same page): "If a match is found, the operator returns index of first match in string, otherwise it returns nil."
11:49
<
canton7 >
so yes, it operates on $_, and returns the index of the first match
11:57
roshanavand has quit [Remote host closed the connection]
11:57
roshanavand has joined #ruby
11:58
elphe has quit [Ping timeout: 252 seconds]
11:59
conta has joined #ruby
12:01
conta has quit [Client Quit]
12:01
roshanavand has quit [Remote host closed the connection]
12:02
elphe has joined #ruby
12:03
Guest24308 has joined #ruby
12:07
conta has joined #ruby
12:09
Guest24308 has quit [Ping timeout: 240 seconds]
12:10
roshanavand has joined #ruby
12:18
elphe has quit [Ping timeout: 245 seconds]
12:21
Tuor has joined #ruby
12:28
fredmorcos has quit [Remote host closed the connection]
12:28
asphyxia has quit [Ping timeout: 240 seconds]
12:28
bak1an has joined #ruby
12:30
roshanavand has quit [Remote host closed the connection]
12:31
jaddison_ has joined #ruby
12:33
LinuxKnight has quit [Remote host closed the connection]
12:34
elphe has joined #ruby
12:34
jaddison has quit [Ping timeout: 245 seconds]
12:34
LinuxKnight has joined #ruby
12:35
whysthatso has joined #ruby
12:37
voolik has joined #ruby
12:38
elphe has quit [Ping timeout: 252 seconds]
12:44
Guest24308 has joined #ruby
12:44
voolik has quit [Read error: Connection reset by peer]
12:44
elphe has joined #ruby
12:44
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:48
elphe has quit [Ping timeout: 252 seconds]
12:53
elphe has joined #ruby
12:54
conta has quit [Quit: conta]
12:54
whysthatso has quit [Quit: whysthatso]
12:56
roshanavand has joined #ruby
12:57
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:57
Guest24308 has quit [Ping timeout: 252 seconds]
13:01
discopatrick has joined #ruby
13:03
roshanavand has quit [Remote host closed the connection]
13:04
whysthatso has joined #ruby
13:07
yohji has joined #ruby
13:10
keden has quit [Ping timeout: 260 seconds]
13:11
vasilakisfil has quit [Quit: Konversation terminated!]
13:12
jamied has joined #ruby
13:17
xerxes has joined #ruby
13:17
<
xerxes >
how do i make an array [:ru, :en] into Hash {:ru => 0, :en => 1} ?
13:18
<
phaul >
>>& Hash[[:ru, :en].each_with_index.entries]
13:18
<
ruby[bot] >
phaul: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
13:18
<
phaul >
&>> Hash[[:ru, :en].each_with_index.entries]
13:22
<
xerxes >
oh, thanks
13:26
cow[moo] has joined #ruby
13:26
dviola has joined #ruby
13:29
bak1an has joined #ruby
13:29
DigitallyBorn has joined #ruby
13:31
cd has quit [Quit: cd]
13:32
blackmesa has quit [Ping timeout: 260 seconds]
13:32
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:34
DigitallyBorn has quit [Ping timeout: 245 seconds]
13:37
keden has joined #ruby
13:39
bmurt has joined #ruby
13:41
queip has quit [Read error: Connection reset by peer]
13:42
roshanavand has joined #ruby
13:42
keden has quit [Ping timeout: 268 seconds]
13:43
queip has joined #ruby
13:47
aupadhye_ has quit [Quit: Leaving]
13:48
roshanavand has quit [Remote host closed the connection]
13:53
jetchisel has quit [Ping timeout: 246 seconds]
13:55
crankharder has joined #ruby
13:56
venmx has quit [Quit: leaving]
13:58
roshanavand has joined #ruby
14:00
crankharder has quit [Ping timeout: 250 seconds]
14:14
keden has joined #ruby
14:17
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
14:21
Cthulu201 has joined #ruby
14:23
conta1 has joined #ruby
14:23
crankharder has joined #ruby
14:25
Inline has joined #ruby
14:29
Mike11 has joined #ruby
14:31
jamied has joined #ruby
14:33
alan_w has joined #ruby
14:36
elphe has quit [Ping timeout: 246 seconds]
14:39
DigitallyBorn has joined #ruby
14:39
Mike11 has quit [Quit: Leaving.]
14:41
queip has quit [Read error: Connection reset by peer]
14:43
venmx has joined #ruby
14:44
yohji has quit [Ping timeout: 244 seconds]
14:44
Mike11 has joined #ruby
14:45
queip has joined #ruby
14:45
yohji has joined #ruby
14:46
yohji has quit [Remote host closed the connection]
14:47
Puffball has quit [Remote host closed the connection]
14:47
Puffball has joined #ruby
14:53
elphe has joined #ruby
14:58
elphe has quit [Ping timeout: 268 seconds]
14:58
Rapture has joined #ruby
15:03
elphe has joined #ruby
15:04
SeepingN has joined #ruby
15:05
akaiiro has joined #ruby
15:07
elphe has quit [Ping timeout: 240 seconds]
15:07
crankharder has quit [Ping timeout: 268 seconds]
15:08
Tempesta has quit [Read error: Connection reset by peer]
15:08
rippa has joined #ruby
15:08
Tempesta has joined #ruby
15:09
GodFather_ has quit [Ping timeout: 252 seconds]
15:09
kaleido has joined #ruby
15:14
marz_d`ghostman has quit [Quit: Page closed]
15:15
dviola has quit [Quit: WeeChat 2.3]
15:22
bairyn is now known as ByronJohnson
15:23
crankharder has joined #ruby
15:23
elphe has joined #ruby
15:25
GodFather has joined #ruby
15:25
<
havenwood >
&>> [:ru, :en].each_with_index.to_h # xerxes
15:25
<
havenwood >
#to_h gets even nicer in 2.6!
15:25
<
marahin >
However, it continues to run rspec.
15:26
ua has joined #ruby
15:27
<
marahin >
Can someone take a look at this and help?
15:28
<
marahin >
i can tell that in this case rescue is not even used
15:28
elphe has quit [Ping timeout: 268 seconds]
15:33
elphe has joined #ruby
15:33
fluxAeon has joined #ruby
15:37
whysthatso has quit [Quit: whysthatso]
15:37
MuffinPimp has quit [Read error: Connection reset by peer]
15:39
elphe has quit [Ping timeout: 272 seconds]
15:39
MuffinPimp has joined #ruby
15:39
MuffinPimp has quit [Remote host closed the connection]
15:39
TheDracle has joined #ruby
15:40
sgen has joined #ruby
15:40
MuffinPimp has joined #ruby
15:40
<
havenwood >
marahin: Does it work as you expect with just:
15:40
<
havenwood >
begin; sleep; rescue Interrupt; abort 'interrupted' end
15:42
queip has quit [Read error: Connection reset by peer]
15:43
<
havenwood >
marahin: Does it continue to run when either jobs fail or it's interrupted?
15:43
queip has joined #ruby
15:43
blackmesa has joined #ruby
15:44
elphe has joined #ruby
15:44
<
havenwood >
marahin: Are you in a modern Ruby where: Thread.report_on_exception = true
15:44
<
havenwood >
marahin: Or set: Thread.abort_on_exception = true
15:45
<
marahin >
havenwood: yeah I'm on a relatively modern ruby
15:48
elphe has quit [Ping timeout: 245 seconds]
15:48
<
havenwood >
marahin: Are subshells involved in your jobs?
15:49
<
havenwood >
I suspect zombies.
15:49
<
marahin >
I have no idea what a subshell is?
15:49
<
marahin >
So its interesting, because it seems that the job that is spawned and still continues to run in the background isn't part of Thread.list
15:49
<
marahin >
which is why it's not killed
15:49
Exuma has joined #ruby
15:50
<
marahin >
so is there a way we can fix it, havenwood?
15:50
phaul has quit [Quit: bye]
15:51
<
havenwood >
marahin: I'd suggest looking at spawning processes rather than shelling out from threads. Sec, let me find an article.
15:51
<
marahin >
thank you
15:53
conta1 has quit [Quit: conta1]
15:54
<
marahin >
havenwood: thank you. Do you know, if there's a way to check for status of the forked processes, like I do with threads?
15:55
GodFather has quit [Ping timeout: 246 seconds]
16:00
Caerus has quit [Ping timeout: 240 seconds]
16:00
discopatrick has quit [Quit: Connection closed for inactivity]
16:00
<
havenwood >
marahin: The 0 signal is handy for that.
16:00
dviola has joined #ruby
16:02
<
havenwood >
marahin: Process.kill 0, pid
16:02
Caerus has joined #ruby
16:02
<
marahin >
like, wait 0?
16:02
<
marahin >
what happens then?
16:02
GodFather has joined #ruby
16:02
dinfuehr has quit [Ping timeout: 240 seconds]
16:02
dinfuehr has joined #ruby
16:03
phaul has joined #ruby
16:03
elphe has joined #ruby
16:04
<
havenwood >
marahin: `kill -0` just checks if a process exists
16:05
govg has joined #ruby
16:05
jthomas has joined #ruby
16:06
<
havenwood >
marahin: Jesse Storimer wrote a great little book on Processes in Ruby that's worth a read.
16:07
TheDracle has quit [Read error: Connection reset by peer]
16:08
elphe has quit [Ping timeout: 246 seconds]
16:10
grr12314 has left #ruby [#ruby]
16:10
GodFather has quit [Ping timeout: 272 seconds]
16:10
<
havenwood >
(Not Windows.)
16:10
raulp has quit [Read error: Connection reset by peer]
16:11
<
marahin >
havenwood: I'll give these a read. Yeah, we're using Macs or anything unix like, so it shouldn't be an issue
16:11
<
marahin >
in the meantime, I'm trying to copy the example
16:11
<
marahin >
and where the example is working, when I try to apply that to a collection of jobs, its exiting my binding.pry instantly :(
16:12
<
havenwood >
marahin: join or detach those processes - in your case here, looks like you want to joinn
16:12
jthomas has quit [Read error: Connection reset by peer]
16:12
<
havenwood >
marahin: ah, you did detach them
16:12
<
marahin >
yes, in the map block
16:12
raulp has joined #ruby
16:13
<
havenwood >
marahin: if you join main process won't exit
16:13
<
marahin >
why is it exiting though..?
16:13
<
havenwood >
marahin: it's done
16:13
<
marahin >
I haven't left pry.
16:13
<
marahin >
It should wait for pry to finish execution, shouldn't it..?
16:13
<
havenwood >
marahin: ahh, gotcha - i misunderstood - yeah
16:14
jthomas has joined #ruby
16:14
<
havenwood >
marahin: does `binding.irb` work or same?
16:14
<
havenwood >
marahin: I don't see an obvious reason for pry to fail here
16:14
<
marahin >
havenwood what's the dependency for binding.irb?
16:14
<
marahin >
(bin/ci:19:in `<main>': undefined method `irb' for #<Binding:0x007fee8520b9f0> (NoMethodError))
16:15
<
havenwood >
marahin: ah, it's only in newer Ruby
16:15
<
marahin >
its 2.3.4 here
16:15
<
havenwood >
I think it was introduced in 2.4
16:15
clemens3_ has quit [Ping timeout: 245 seconds]
16:15
<
marahin >
well, krap
16:15
<
havenwood >
marahin: I'm not sure why Pry isn't playing nice.
16:15
<
havenwood >
marahin: your code looks straightforward
16:16
<
marahin >
Let me try to run this in IRB and see if its working :)
16:16
<
marahin >
something is not right :)
16:16
<
marahin >
yeah I think I need to educate myself
16:16
<
marahin >
i thought that maybe i can tinker with the code examples in the article you've sent me and get more or less a working result
16:17
<
marahin >
but I think I need to understand whats happening exactly with fork and Process.detach first
16:17
govg has quit [Ping timeout: 268 seconds]
16:18
<
havenwood >
marahin: I'm assuming this example doesn't fail if you change the jobs to be say "ls" and "pwd"?
16:20
<
havenwood >
marahin: Is it `rspec_rerun` or `quality` causing the issue?
16:22
<
havenwood >
You might want to also take a look at: spawn
16:23
elphe has joined #ruby
16:25
DigitallyBorn has quit [Read error: Connection reset by peer]
16:25
ReallyDigital has joined #ruby
16:29
elphe has quit [Ping timeout: 268 seconds]
16:32
tubbo has joined #ruby
16:33
tubbo has quit [Client Quit]
16:33
elphe has joined #ruby
16:34
tubbo has joined #ruby
16:35
sgen has quit [Ping timeout: 250 seconds]
16:36
tubbo has quit [Client Quit]
16:37
GodFather has joined #ruby
16:38
elphe has quit [Ping timeout: 252 seconds]
16:40
Guest24308 has joined #ruby
16:41
queip has quit [Read error: Connection reset by peer]
16:43
GodFather has quit [Ping timeout: 268 seconds]
16:46
queip has joined #ruby
16:50
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:51
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:54
elphe has joined #ruby
16:56
akaiiro has quit [Ping timeout: 264 seconds]
16:56
GodFather has joined #ruby
16:56
hahuang6- has joined #ruby
16:58
sputnik13 has joined #ruby
16:58
elphe has quit [Ping timeout: 245 seconds]
16:58
govg has joined #ruby
16:59
hahuang65 has quit [Ping timeout: 272 seconds]
17:00
chouhoulis has joined #ruby
17:05
chouhoulis has quit [Ping timeout: 252 seconds]
17:07
za1b1tsu has quit [Ping timeout: 246 seconds]
17:07
gix has joined #ruby
17:08
sgen has joined #ruby
17:09
blackmesa has quit [Ping timeout: 268 seconds]
17:12
Tuor has quit [Quit: Konversation terminated!]
17:13
cthulchu has joined #ruby
17:14
elphe has joined #ruby
17:16
Mike11 has quit [Quit: Leaving.]
17:17
darkhanb has joined #ruby
17:18
MoritaShinobu has quit [Quit: Leaving]
17:18
akaiiro has joined #ruby
17:19
elphe has quit [Ping timeout: 252 seconds]
17:20
whysthatso has joined #ruby
17:21
Dbugger has joined #ruby
17:28
orbyt_ has joined #ruby
17:30
blackmesa has joined #ruby
17:31
lxsameer has quit [Ping timeout: 252 seconds]
17:34
elphe has joined #ruby
17:34
lxsameer has joined #ruby
17:36
sgen has quit [Ping timeout: 252 seconds]
17:37
OrangeManBad has quit [Ping timeout: 252 seconds]
17:38
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:38
OrangeManBad has joined #ruby
17:38
lxsameer has quit [Ping timeout: 246 seconds]
17:39
elphe has quit [Ping timeout: 240 seconds]
17:40
za1b1tsu has joined #ruby
17:42
queip has quit [Read error: Connection reset by peer]
17:43
queip has joined #ruby
17:44
tdy1 has quit [Ping timeout: 244 seconds]
17:45
za1b1tsu has quit [Ping timeout: 268 seconds]
17:47
orbyt_ has joined #ruby
17:49
sanscoeur has joined #ruby
17:54
elphe has joined #ruby
17:59
elphe has quit [Ping timeout: 245 seconds]
17:59
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:08
venmx has quit [Ping timeout: 268 seconds]
18:09
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:11
sputnik13 has joined #ruby
18:14
elphe has joined #ruby
18:15
keden has quit [Quit: WeeChat 2.3]
18:19
crankharder has quit [Ping timeout: 268 seconds]
18:20
elphe has quit [Ping timeout: 272 seconds]
18:20
yokel has quit [Ping timeout: 272 seconds]
18:21
skweek has joined #ruby
18:21
yokel has joined #ruby
18:22
orbyt_ has joined #ruby
18:25
elphe has joined #ruby
18:28
jaddison_ is now known as jaddison
18:29
elphe has quit [Ping timeout: 252 seconds]
18:31
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:33
sgen has joined #ruby
18:36
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:39
crankharder has joined #ruby
18:39
sputnik13 has joined #ruby
18:41
queip has quit [Read error: Connection reset by peer]
18:42
mroutis has joined #ruby
18:44
queip has joined #ruby
18:45
elphe has joined #ruby
18:45
gnufied has joined #ruby
18:46
govg has quit [Ping timeout: 246 seconds]
18:50
elphe has quit [Ping timeout: 272 seconds]
18:51
orbyt_ has joined #ruby
18:53
ua has quit [Ping timeout: 252 seconds]
18:55
elphe has joined #ruby
18:55
sameerynho has joined #ruby
18:58
sameerynho has quit [Client Quit]
19:00
elphe has quit [Ping timeout: 252 seconds]
19:00
ua has joined #ruby
19:04
lxsameer has joined #ruby
19:05
elphe has joined #ruby
19:05
Dbugger has quit [Ping timeout: 264 seconds]
19:09
despai has joined #ruby
19:09
\void has joined #ruby
19:12
elphe has quit [Ping timeout: 250 seconds]
19:18
elphe has joined #ruby
19:22
Dbugger has joined #ruby
19:23
elphe has quit [Ping timeout: 244 seconds]
19:23
dbugger_ has joined #ruby
19:23
roshanavand has quit [Remote host closed the connection]
19:24
sauvin has quit [Remote host closed the connection]
19:24
roshanavand has joined #ruby
19:24
BH23 has quit [Ping timeout: 250 seconds]
19:27
Dbugger has quit [Ping timeout: 268 seconds]
19:27
jcarl43 has joined #ruby
19:28
elphe has joined #ruby
19:28
za1b1tsu has joined #ruby
19:29
roshanavand has quit [Remote host closed the connection]
19:32
despai has quit [Quit: ...]
19:32
elphe has quit [Ping timeout: 244 seconds]
19:33
za1b1tsu has quit [Ping timeout: 245 seconds]
19:34
\void has quit [Quit: So long, and thanks for all the fish.]
19:34
roshanavand has joined #ruby
19:41
\void has joined #ruby
19:42
queip has quit [Read error: Connection reset by peer]
19:43
queip has joined #ruby
19:46
\void has quit [Ping timeout: 240 seconds]
19:47
zapata has quit [Read error: Connection reset by peer]
19:48
zapata has joined #ruby
19:48
kapil____ has joined #ruby
19:48
elphe has joined #ruby
19:49
roshanavand has quit [Remote host closed the connection]
19:50
roshanavand has joined #ruby
19:50
\void has joined #ruby
19:52
eckhardt_ has joined #ruby
19:53
skweek has quit [Quit: Leaving]
19:53
elphe has quit [Ping timeout: 240 seconds]
19:54
roshanavand has quit [Ping timeout: 260 seconds]
19:58
yokel has quit [Remote host closed the connection]
20:00
yokel has joined #ruby
20:01
dbugger_ has quit [Ping timeout: 264 seconds]
20:01
xerxes has quit [Remote host closed the connection]
20:01
roshanavand has joined #ruby
20:02
Dbugger has joined #ruby
20:03
clemens3_ has joined #ruby
20:04
roshanavand has quit [Remote host closed the connection]
20:04
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:04
roshanavand has joined #ruby
20:05
tdy1 has joined #ruby
20:08
elphe has joined #ruby
20:09
roshanavand has quit [Remote host closed the connection]
20:09
jetchisel has joined #ruby
20:10
DigitallyBorn has joined #ruby
20:10
urbanmonk has joined #ruby
20:11
urbanmonk has quit [Client Quit]
20:11
ReallyDigital has quit [Ping timeout: 245 seconds]
20:12
urbanmonk has joined #ruby
20:12
urbanmonk has left #ruby [#ruby]
20:14
elphe has quit [Ping timeout: 276 seconds]
20:18
elphe has joined #ruby
20:24
elphe has quit [Ping timeout: 268 seconds]
20:24
clemens3_ has quit [Remote host closed the connection]
20:26
devyn has quit [Ping timeout: 244 seconds]
20:27
mroutis has quit [Ping timeout: 268 seconds]
20:28
elphe has joined #ruby
20:33
devyn has joined #ruby
20:33
elphe has quit [Ping timeout: 260 seconds]
20:38
elphe has joined #ruby
20:42
queip has quit [Read error: Connection reset by peer]
20:43
MzrE has joined #ruby
20:43
elphe has quit [Ping timeout: 245 seconds]
20:44
queip has joined #ruby
20:46
elphe has joined #ruby
21:12
elcontrastador has quit [Ping timeout: 252 seconds]
21:14
sgen has quit [Ping timeout: 252 seconds]
21:14
Fernando-Basso has joined #ruby
21:15
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
21:16
za1b1tsu has joined #ruby
21:19
sagax has joined #ruby
21:19
<
sagax >
how to make output from gem -- silent/
21:19
<
sagax >
because i see this
*** LOCAL GEMS
***
21:20
Dbugger has quit [Quit: Leaving]
21:21
za1b1tsu has quit [Ping timeout: 240 seconds]
21:21
<
sagax >
oh, i found -q
21:25
\void has quit [Quit: So long, and thanks for all the fish.]
21:25
evdubs has joined #ruby
21:35
tag has joined #ruby
21:38
MzrE has quit [Read error: Connection reset by peer]
21:41
queip has quit [Read error: Connection reset by peer]
21:43
queip has joined #ruby
21:48
al2o3-cr has joined #ruby
21:54
elphe has quit [Ping timeout: 268 seconds]
22:07
eckhardt_ has joined #ruby
22:09
elphe has joined #ruby
22:14
Exuma has joined #ruby
22:14
elphe has quit [Ping timeout: 272 seconds]
22:15
phaul has quit [Ping timeout: 246 seconds]
22:16
cd has joined #ruby
22:16
reber has quit [Remote host closed the connection]
22:19
elphe has joined #ruby
22:22
conta1 has joined #ruby
22:24
elphe has quit [Ping timeout: 272 seconds]
22:26
roshanavand has joined #ruby
22:35
conta1 has quit [Quit: conta1]
22:35
phaul has joined #ruby
22:38
elphe has joined #ruby
22:41
asphyxia has joined #ruby
22:41
queip has quit [Read error: Connection reset by peer]
22:43
elphe has quit [Ping timeout: 246 seconds]
22:44
queip has joined #ruby
22:46
nicolasb has quit [Quit: Leaving...]
22:46
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:46
DigitallyBorn has quit [Quit: leaving]
22:46
elphe has joined #ruby
22:56
jetchisel has quit [Ping timeout: 268 seconds]
22:57
alan_w has quit [Read error: Connection reset by peer]
22:58
mroutis has joined #ruby
23:04
sgen has joined #ruby
23:05
za1b1tsu has joined #ruby
23:05
phaul has quit [Ping timeout: 272 seconds]
23:08
crankharder has quit [Ping timeout: 272 seconds]
23:09
za1b1tsu has quit [Ping timeout: 240 seconds]
23:12
nicolasb has joined #ruby
23:13
paraxial has joined #ruby
23:16
jetchisel has joined #ruby
23:25
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:27
kapil____ has quit [Quit: Connection closed for inactivity]
23:27
knight33_ has joined #ruby
23:31
elphe has quit [Ping timeout: 246 seconds]
23:32
mroutis has quit [Remote host closed the connection]
23:34
mroutis has joined #ruby
23:40
mroutis has quit [Remote host closed the connection]
23:41
nicolasb has joined #ruby
23:42
queip has quit [Read error: Connection reset by peer]
23:43
queip has joined #ruby
23:44
Fernando-Basso has quit [Read error: Connection reset by peer]
23:46
bak1an has joined #ruby
23:46
elphe has joined #ruby
23:48
awkwords has quit [Quit: sleepy time]
23:51
sanscoeu_ has joined #ruby
23:53
sanscoeur has quit [Ping timeout: 244 seconds]
23:54
thinkpad has quit [Ping timeout: 250 seconds]
23:54
jayjo has joined #ruby
23:55
venmx has joined #ruby
23:55
sanscoeu_ has quit [Ping timeout: 240 seconds]
23:57
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:59
ivanskie has joined #ruby