00:04
freedom has quit [Quit: freedom]
00:04
fphilipe has quit [Ping timeout: 276 seconds]
00:11
Fernando-Basso has quit [Remote host closed the connection]
00:18
bambanx has quit [Remote host closed the connection]
00:18
duder____ has quit [Read error: Connection reset by peer]
00:18
ramfjord has quit [Ping timeout: 265 seconds]
00:18
duderonomy has joined #ruby
00:19
duderonomy is now known as Guest92788
00:19
jenrzzz_ has joined #ruby
00:19
bambanx has joined #ruby
00:20
d^sh has quit [Ping timeout: 265 seconds]
00:21
d^sh has joined #ruby
00:22
mroutis_ has quit [Remote host closed the connection]
00:22
bruce_lee has quit [Ping timeout: 240 seconds]
00:22
jenrzzz has quit [Ping timeout: 265 seconds]
00:23
bruce_lee has joined #ruby
00:23
bruce_lee has quit [Changing host]
00:23
bruce_lee has joined #ruby
00:23
wildtrees has joined #ruby
00:24
jenrzzz_ has quit [Ping timeout: 265 seconds]
00:25
Guest92788 has quit [Read error: Connection reset by peer]
00:25
duderono_ has joined #ruby
00:27
bambanx has quit [Quit: Leaving]
00:28
ramfjord has joined #ruby
00:28
duderono_ has quit [Read error: Connection reset by peer]
00:28
duderono_ has joined #ruby
00:31
duderono_ has quit [Client Quit]
00:31
davor_ has joined #ruby
00:34
davor has quit [Ping timeout: 264 seconds]
00:34
davor_ is now known as davor
00:38
ramfjord has quit [Ping timeout: 268 seconds]
00:43
Swyper has joined #ruby
00:44
cthulchu has quit [Ping timeout: 240 seconds]
00:46
Swyper has quit [Remote host closed the connection]
00:48
wildtrees has quit [Quit: Leaving]
00:54
ramfjord has joined #ruby
00:55
freedom has joined #ruby
00:57
SeepingN has quit [Quit: The system is going down for reboot NOW!]
00:59
gix has quit [Ping timeout: 240 seconds]
01:00
mroutis has joined #ruby
01:03
i9zO5AP has quit [Quit: WeeChat 2.5]
01:03
AJA4351 has joined #ruby
01:04
mroutis has quit [Client Quit]
01:05
AJA4350 has quit [Ping timeout: 240 seconds]
01:05
AJA4351 is now known as AJA4350
01:13
tsujp has joined #ruby
01:14
<
havenwood >
galaxie: No, there are other ways.
01:15
<
havenwood >
&>> module Foo; FOO = :foo; def self.prepended(mod); self.constants.each { |constant| mod.const_set constant, const_get(constant) } end end; module Bar; FOO = :bar; prepend Foo end; Bar::FOO
01:15
<
havenwood >
galaxie: Redefining constants is a bit suspect.
01:15
<
havenwood >
(note the warning)
01:18
DaRock has joined #ruby
01:18
dasher00 has quit [Ping timeout: 276 seconds]
01:21
sgen has quit [Ping timeout: 245 seconds]
01:21
ramfjord has quit [Ping timeout: 265 seconds]
01:36
kyrylo has joined #ruby
01:38
drincruz has joined #ruby
01:40
<
galaxie >
havenwood: What would be another way to go about, then? I have classes that have subclasses where, to save on code, I want to use some sort of variable or constant or something to tell it that these subclasses have this property and thus do this something.
01:41
<
havenwood >
galaxie: Have any code to show that might help us understand?
01:42
grilix_ has quit [Ping timeout: 245 seconds]
01:42
Swyper has joined #ruby
01:52
thejs has joined #ruby
01:57
drincruz has quit [Ping timeout: 240 seconds]
01:59
fphilipe has joined #ruby
02:04
fphilipe has quit [Ping timeout: 246 seconds]
02:05
<
galaxie >
havenwood: Not really. It's scattered everywhere. I just feel constants would make better sense since they're "somewhat" immutable.
02:10
<
havenwood >
galaxie: But in this case, mutating.
02:11
<
havenwood >
galaxie: (Which is why there's not a mechanism to override constants.)
02:13
AJA4351 has joined #ruby
02:14
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:15
AJA4350 has quit [Ping timeout: 265 seconds]
02:15
AJA4351 is now known as AJA4350
02:16
Frobozz has quit [Quit: quit]
02:19
x86sk has joined #ruby
02:20
AJA4350 has quit [Quit: AJA4350]
02:24
mozzarella has quit [Quit: WeeChat 2.4]
02:25
thejs has quit [Remote host closed the connection]
02:29
tdy1 has joined #ruby
02:33
Technodrome has joined #ruby
02:36
tdy1 is now known as tdy
02:43
Swyper has quit [Remote host closed the connection]
02:52
freedom has quit [Quit: freedom]
02:52
mozzarella has joined #ruby
02:53
go|dfish has joined #ruby
02:54
hutch1 has joined #ruby
02:57
DTZUZO has joined #ruby
03:18
<
baweaver >
I'd almost reverse the order of it
03:18
<
baweaver >
Single-line matches are one of the only RTL read items in Ruby
03:18
<
baweaver >
Not even `for x in y` is RTL
03:23
tpanarch1st_ has quit [Ping timeout: 240 seconds]
03:24
hutch1 has quit [Ping timeout: 240 seconds]
03:26
<
baweaver >
havenwood: commented
03:26
rippa has joined #ruby
03:32
MrCrackPot has joined #ruby
03:35
brool has quit [Ping timeout: 245 seconds]
03:42
szTheory has quit []
03:53
duderonomy has joined #ruby
04:00
fphilipe has joined #ruby
04:02
freedom has joined #ruby
04:03
RiPuk has joined #ruby
04:05
fphilipe has quit [Ping timeout: 276 seconds]
04:06
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:08
freedom has quit [Quit: freedom]
04:11
freedom has joined #ruby
04:21
cesario_ has joined #ruby
04:22
tdy has quit [Ping timeout: 240 seconds]
04:23
cesario_ has quit [Client Quit]
04:27
cesario_ has joined #ruby
04:28
cesario_ has quit [Client Quit]
04:31
kyrylo has joined #ruby
04:33
Fusl has quit [Max SendQ exceeded]
04:33
samort14 has joined #ruby
04:34
Fusl has joined #ruby
04:36
samort7 has quit [Ping timeout: 245 seconds]
04:37
Rudd0 has quit [Ping timeout: 245 seconds]
04:37
mozzarel1 has joined #ruby
04:37
jinie has quit [Ping timeout: 245 seconds]
04:37
segy has quit [Ping timeout: 245 seconds]
04:38
davor_ has joined #ruby
04:38
jinie has joined #ruby
04:38
jmcgnh has quit [Ping timeout: 245 seconds]
04:38
dhollinger has quit [Ping timeout: 245 seconds]
04:38
swistak35 has quit [Ping timeout: 245 seconds]
04:38
davor has quit [Ping timeout: 245 seconds]
04:38
mozzarella has quit [Ping timeout: 245 seconds]
04:38
agrecascino has quit [Ping timeout: 245 seconds]
04:38
greypack has quit [Ping timeout: 245 seconds]
04:38
teclator has quit [Ping timeout: 245 seconds]
04:38
ltp has quit [Ping timeout: 245 seconds]
04:38
txdv has quit [Ping timeout: 245 seconds]
04:38
ule has quit [Ping timeout: 245 seconds]
04:38
wmoxam has quit [Ping timeout: 245 seconds]
04:38
Nowaker has quit [Ping timeout: 245 seconds]
04:38
davor_ is now known as davor
04:38
mozzarel1 is now known as mozzarella
04:39
camilasan has quit [Ping timeout: 245 seconds]
04:39
Cork has quit [Ping timeout: 245 seconds]
04:39
jmcgnh has joined #ruby
04:39
segy has joined #ruby
04:40
codefriar has quit [Ping timeout: 240 seconds]
04:40
ltp has joined #ruby
04:40
ule has joined #ruby
04:41
camilasan has joined #ruby
04:41
akosednar has quit [Ping timeout: 240 seconds]
04:41
Nowaker has joined #ruby
04:41
teclator has joined #ruby
04:44
agrecascino has joined #ruby
04:44
codefriar has joined #ruby
04:44
greypack has joined #ruby
04:44
swistak35 has joined #ruby
04:45
akosednar has joined #ruby
04:45
akosednar has joined #ruby
04:46
Cork has joined #ruby
04:47
suukim has joined #ruby
04:51
Rudd0 has joined #ruby
04:52
dhollinger has joined #ruby
04:53
txdv has joined #ruby
04:55
wmoxam has joined #ruby
04:56
cthulchu has joined #ruby
05:06
samort14 has quit [Read error: Connection reset by peer]
05:06
Inline has quit [Quit: Leaving]
05:09
ropeney has quit [Read error: Connection reset by peer]
05:11
ropeney has joined #ruby
05:12
cthulchu has quit [Read error: Connection reset by peer]
05:14
conta has joined #ruby
05:18
ramfjord has joined #ruby
05:20
jenrzzz has joined #ruby
05:22
DaRock has quit [Ping timeout: 240 seconds]
05:22
za1b1tsu has joined #ruby
05:22
ramfjord has quit [Ping timeout: 276 seconds]
05:27
kyrylo has quit [Read error: Connection reset by peer]
05:27
kyrylo has joined #ruby
05:27
jenrzzz has quit [Ping timeout: 240 seconds]
05:38
andikr has joined #ruby
05:45
dionysus69 has joined #ruby
05:49
conta has quit [Ping timeout: 240 seconds]
05:55
jenrzzz has joined #ruby
05:57
_mossplix has joined #ruby
05:58
i_wdt has joined #ruby
05:59
conta has joined #ruby
06:00
jenrzzz has quit [Ping timeout: 276 seconds]
06:00
_mossplix has quit [Remote host closed the connection]
06:01
fphilipe has joined #ruby
06:06
fphilipe has quit [Ping timeout: 276 seconds]
06:13
BH23 has joined #ruby
06:14
_mossplix has joined #ruby
06:19
BH23 has quit [Ping timeout: 240 seconds]
06:21
DaRock has joined #ruby
06:23
Furai has quit [Quit: WeeChat 2.6]
06:26
ta has quit [Ping timeout: 265 seconds]
06:26
xco has joined #ruby
06:32
i_wdt has quit [Ping timeout: 265 seconds]
06:36
fphilipe has joined #ruby
06:39
Furai has joined #ruby
06:39
cd has quit [Quit: cd]
06:41
fphilipe has quit [Ping timeout: 252 seconds]
06:43
snickers has joined #ruby
06:49
_mossplix has quit [Remote host closed the connection]
06:51
fphilipe has joined #ruby
06:51
Intelo has joined #ruby
06:53
_mossplix has joined #ruby
06:53
MrCrackPot has quit [Quit: Something went wrong again oh the joys]
06:56
fphilipe has quit [Ping timeout: 276 seconds]
06:56
TomyWork has joined #ruby
07:00
jenrzzz has joined #ruby
07:07
jenrzzz has quit [Ping timeout: 265 seconds]
07:08
conta has quit [Quit: conta]
07:11
fphilipe has joined #ruby
07:12
conta has joined #ruby
07:13
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:16
jenrzzz has joined #ruby
07:17
za1b1tsu has quit [Remote host closed the connection]
07:20
jenrzzz has quit [Ping timeout: 245 seconds]
07:20
BH23 has joined #ruby
07:21
freedom has quit [Remote host closed the connection]
07:23
freedom has joined #ruby
07:27
ogres has quit [Quit: Connection closed for inactivity]
07:29
bitwinery has quit [Quit: Leaving]
07:29
freedom_ has joined #ruby
07:29
ta has joined #ruby
07:30
esrse has joined #ruby
07:32
freedom has quit [Ping timeout: 276 seconds]
07:32
freedom_ is now known as freedom
07:35
schne1der has joined #ruby
07:49
jmcgnh has quit [Ping timeout: 265 seconds]
07:50
jmcgnh_ has joined #ruby
07:50
jmcgnh_ is now known as jmcgnh
07:54
Intelo has quit [Ping timeout: 268 seconds]
08:02
Intelo has joined #ruby
08:04
conta has quit [Ping timeout: 265 seconds]
08:04
_mossplix has quit [Remote host closed the connection]
08:05
mikecmpbll has joined #ruby
08:07
_mossplix has joined #ruby
08:10
dasher00 has joined #ruby
08:12
GodFather has quit [Ping timeout: 265 seconds]
08:16
dbugger has joined #ruby
08:17
conta has joined #ruby
08:19
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:19
deathwishdave has joined #ruby
08:19
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:28
xco has quit [Quit: xco]
08:29
_mossplix has quit [Remote host closed the connection]
08:32
_mossplix has joined #ruby
08:39
ropeney has quit [Read error: Connection reset by peer]
08:40
ropeney has joined #ruby
08:49
kyrylo has joined #ruby
08:54
Intelo has quit [Ping timeout: 240 seconds]
09:01
freedom has quit [Remote host closed the connection]
09:02
Ai9zO5AP has joined #ruby
09:03
freedom has joined #ruby
09:06
Intelo has joined #ruby
09:08
Intelo has quit [Remote host closed the connection]
09:09
Intelo has joined #ruby
09:14
c0san0stra has quit [Ping timeout: 265 seconds]
09:15
c0san0stra has joined #ruby
09:16
jenrzzz has joined #ruby
09:18
ramfjord has joined #ruby
09:19
Jonopoly has joined #ruby
09:20
freedom has quit [Remote host closed the connection]
09:20
jenrzzz has quit [Ping timeout: 245 seconds]
09:22
ramfjord has quit [Ping timeout: 245 seconds]
09:23
n13z has quit [Remote host closed the connection]
09:26
<
Jonopoly >
Would ruby be able to anonymize a large database?
09:30
d^sh has quit [Ping timeout: 268 seconds]
09:30
zapata has quit [Read error: Connection reset by peer]
09:31
zapata has joined #ruby
09:32
d^sh has joined #ruby
09:33
DaRock has quit [Ping timeout: 250 seconds]
09:39
DaRock has joined #ruby
09:42
Intelo has quit [Ping timeout: 245 seconds]
09:42
shansen has quit [Remote host closed the connection]
09:44
shansen has joined #ruby
09:54
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:56
Swyper has joined #ruby
09:57
Intelo has joined #ruby
10:03
Azure has quit [Ping timeout: 265 seconds]
10:07
_mossplix has quit [Remote host closed the connection]
10:10
cow[moo] has quit [Read error: Connection reset by peer]
10:12
DTZUZO has quit [Ping timeout: 265 seconds]
10:18
Mrgoose8457 has joined #ruby
10:22
nahra has joined #ruby
10:23
Intelo has quit [Ping timeout: 240 seconds]
10:23
ccooke has quit [Quit: Lost terminal]
10:23
ccooke has joined #ruby
10:23
ccooke_ has joined #ruby
10:23
ccooke___ has joined #ruby
10:31
fig-le-deunch has joined #ruby
10:31
Intelo has joined #ruby
10:33
conta has quit [Ping timeout: 268 seconds]
10:34
fig-le-deunch has quit [Read error: Connection reset by peer]
10:35
Jonopoly has quit [Ping timeout: 240 seconds]
10:35
fig-le-deunch has joined #ruby
10:36
ccooke__ has joined #ruby
10:38
ccooke_ has quit [Quit: Lost terminal]
10:38
Jonopoly has joined #ruby
10:39
Jonopoly has quit [Changing host]
10:39
Jonopoly has joined #ruby
10:39
ccooke_ has joined #ruby
10:40
<
Jonopoly >
Any tips on anonymizing a database with ruby?
10:40
<
depesz >
Jonopoly: just do it?
10:41
<
depesz >
not entirely sure what you want to do (anonymization is very broad term), but it's not all that complicated.
10:42
Intelo_ has joined #ruby
10:43
ccooke__ has quit [Quit: Lost terminal]
10:45
Intelo has quit [Ping timeout: 240 seconds]
10:48
GodFather has joined #ruby
10:48
ccooke_ has quit [Quit: Lost terminal]
10:48
_mossplix has joined #ruby
10:50
conta has joined #ruby
10:52
za1b1tsu has joined #ruby
10:54
DTZUZO has joined #ruby
10:55
Swyper has quit [Remote host closed the connection]
10:57
Swyper has joined #ruby
11:03
ctp has quit [Quit: Connection closed for inactivity]
11:07
Corey[m] has quit [Remote host closed the connection]
11:07
kira_rose[m] has quit [Write error: Connection reset by peer]
11:07
otaznik[m] has quit [Read error: Connection reset by peer]
11:07
sepp2k has quit [Read error: Connection reset by peer]
11:07
linuus[m] has quit [Remote host closed the connection]
11:07
qbrd[m] has quit [Read error: Connection reset by peer]
11:07
mistergibson[m] has quit [Read error: Connection reset by peer]
11:07
turt2live has quit [Read error: Connection reset by peer]
11:07
Hanma[m] has quit [Read error: Connection reset by peer]
11:07
danielk43[m] has quit [Remote host closed the connection]
11:07
iotatron[m] has quit [Read error: Connection reset by peer]
11:07
bertocq[m] has quit [Remote host closed the connection]
11:07
fig-le-deunch[m] has quit [Remote host closed the connection]
11:07
aecepoglu[m] has quit [Write error: Connection reset by peer]
11:07
tsujp has joined #ruby
11:08
fig-le-deunch has quit [Ping timeout: 240 seconds]
11:09
psmolen has quit [Ping timeout: 240 seconds]
11:09
Davey has quit [Ping timeout: 240 seconds]
11:09
cpallares_ has quit [Ping timeout: 240 seconds]
11:09
conta has quit [Remote host closed the connection]
11:09
conta has joined #ruby
11:10
mcspud has quit [Ping timeout: 240 seconds]
11:11
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:11
_mossplix has quit [Remote host closed the connection]
11:12
psmolen has joined #ruby
11:13
cpallares has joined #ruby
11:13
Davey has joined #ruby
11:16
Sithembewena has joined #ruby
11:17
Intelo_ has quit [Quit: Leaving]
11:17
Intelo has joined #ruby
11:18
mcspud has joined #ruby
11:20
aecepoglu[m] has joined #ruby
11:23
fig-le-deunch has joined #ruby
11:35
andikr has quit [Ping timeout: 252 seconds]
11:36
andikr has joined #ruby
11:42
grilix_ has joined #ruby
11:43
cow[moo] has joined #ruby
11:50
drincruz has joined #ruby
11:51
tsujp has joined #ruby
11:57
grilix_ has quit [Ping timeout: 245 seconds]
11:58
_mossplix has joined #ruby
11:58
xco has joined #ruby
12:01
nahra has quit [Quit: ERC (IRC client for Emacs 26.2)]
12:01
turt2live has joined #ruby
12:01
linuus[m] has joined #ruby
12:01
sepp2k has joined #ruby
12:01
Corey[m] has joined #ruby
12:01
mistergibson[m] has joined #ruby
12:01
qbrd[m] has joined #ruby
12:01
iotatron[m] has joined #ruby
12:01
Hanma[m] has joined #ruby
12:01
bertocq[m] has joined #ruby
12:01
danielk43[m] has joined #ruby
12:01
fig-le-deunch[m] has joined #ruby
12:01
otaznik[m] has joined #ruby
12:01
kira_rose[m] has joined #ruby
12:02
conta has quit [Ping timeout: 276 seconds]
12:04
DTZUZO has quit [Ping timeout: 245 seconds]
12:04
drincruz has quit [Ping timeout: 240 seconds]
12:05
freedom has joined #ruby
12:06
conta2 has joined #ruby
12:08
salinasce has joined #ruby
12:08
AJA4350 has joined #ruby
12:08
andikr has quit [Ping timeout: 245 seconds]
12:10
andikr has joined #ruby
12:12
DTZUZO has joined #ruby
12:14
BH23 has quit [Ping timeout: 245 seconds]
12:16
DTZUZO has quit [Ping timeout: 246 seconds]
12:16
ElFerna has joined #ruby
12:18
Radar has quit [Ping timeout: 245 seconds]
12:19
baweaver has quit [Ping timeout: 245 seconds]
12:19
darris has quit [Quit: Bye bye!]
12:20
conta2 has quit [Ping timeout: 240 seconds]
12:20
darris has joined #ruby
12:20
Radar has joined #ruby
12:20
Radar is now known as Guest86809
12:21
jenrzzz has joined #ruby
12:21
xco has quit [Quit: xco]
12:21
baweaver has joined #ruby
12:21
BH23 has joined #ruby
12:21
baweaver is now known as Guest35379
12:23
<
Jonopoly >
depesz: I was wondering how to approach it - basically remove/rename client names
12:23
xco has joined #ruby
12:23
<
Jonopoly >
Remove phone numbers or replace them across multiple tables
12:23
<
Jonopoly >
Any paticular library? or..
12:25
jenrzzz has quit [Ping timeout: 240 seconds]
12:26
Swyper has quit [Remote host closed the connection]
12:27
freedom has quit [Remote host closed the connection]
12:29
catbusters has joined #ruby
12:30
lucasb has joined #ruby
12:31
andikr has quit [Remote host closed the connection]
12:32
<
depesz >
Jonopoly: why not simplyu couple of update statements?
12:34
ogres has joined #ruby
12:34
kyrylo has joined #ruby
12:38
_mossplix has quit [Read error: Connection reset by peer]
12:38
_mosspli_ has joined #ruby
12:38
esrse has quit [Ping timeout: 240 seconds]
12:39
poontangmessiah has joined #ruby
12:39
jacksoow has quit [Ping timeout: 240 seconds]
12:39
jacksoow_ has joined #ruby
12:44
salinasce has quit [Ping timeout: 252 seconds]
12:45
nahra has joined #ruby
12:45
nahra has joined #ruby
12:47
xco has quit [Quit: xco]
12:47
fig-le-deunch has quit [Quit: Konversation terminated!]
12:53
hutch1 has joined #ruby
12:55
jacksoow has joined #ruby
12:57
matled has quit [Remote host closed the connection]
12:57
jacksoow_ has quit [Ping timeout: 265 seconds]
12:58
x86sk has quit [Quit: Connection closed for inactivity]
12:59
jrafanie has joined #ruby
13:00
_mosspli_ has quit [Remote host closed the connection]
13:00
_mossplix has joined #ruby
13:04
go|dfish has quit [Ping timeout: 240 seconds]
13:07
clemens3 has joined #ruby
13:12
matled has joined #ruby
13:13
ElFerna has quit [Quit: Leaving.]
13:19
salinasce has joined #ruby
13:23
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:23
DTZUZO has joined #ruby
13:23
jrafanie has joined #ruby
13:23
jrafanie has quit [Client Quit]
13:27
grilix_ has joined #ruby
13:28
schne1der has quit [Ping timeout: 250 seconds]
13:31
jacksoow_ has joined #ruby
13:31
jacksoow has quit [Ping timeout: 276 seconds]
13:35
sgen has joined #ruby
13:38
jacksoow_ has quit [Read error: Connection reset by peer]
13:40
jacksoow has joined #ruby
13:41
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:45
salinasce has quit [Remote host closed the connection]
13:51
salinasc has joined #ruby
13:53
rbanffy has quit [Quit: rbanffy]
13:58
_mossplix has quit [Remote host closed the connection]
14:00
sgen has quit [Ping timeout: 250 seconds]
14:01
jacksoow has quit [Ping timeout: 245 seconds]
14:01
_mosspli_ has joined #ruby
14:04
Inline has joined #ruby
14:04
vondruch has quit [Ping timeout: 276 seconds]
14:05
salinasc has quit [Ping timeout: 250 seconds]
14:06
_mosspli_ has quit [Ping timeout: 246 seconds]
14:06
jacksoow has joined #ruby
14:09
onure has joined #ruby
14:11
_mossplix has joined #ruby
14:12
onure has quit [Quit: Leaving]
14:13
Technodrome has joined #ruby
14:13
hightower2 has quit [Ping timeout: 240 seconds]
14:17
dionysus70 has joined #ruby
14:18
dionysus69 has quit [Ping timeout: 240 seconds]
14:18
dionysus70 is now known as dionysus69
14:21
hightower2 has joined #ruby
14:22
_mossplix has quit [Remote host closed the connection]
14:22
nahra has quit [Ping timeout: 240 seconds]
14:23
kyrylo has joined #ruby
14:28
Intelo has quit [Remote host closed the connection]
14:29
Intelo has joined #ruby
14:29
nahra has joined #ruby
14:29
nahra has joined #ruby
14:30
drincruz has joined #ruby
14:33
dionysus69 has quit [Remote host closed the connection]
14:33
dionysus69 has joined #ruby
14:34
Intelo has quit [Ping timeout: 268 seconds]
14:35
thebananaking has quit [Quit: Connection closed for inactivity]
14:48
schne1der has joined #ruby
14:49
nahra has quit [Ping timeout: 240 seconds]
14:51
nahra has joined #ruby
14:55
jrafanie has joined #ruby
14:56
jacksoow has quit [Ping timeout: 276 seconds]
14:56
codefriar has quit [Ping timeout: 276 seconds]
14:56
go|dfish has joined #ruby
14:57
codefriar has joined #ruby
14:59
jacksoow has joined #ruby
15:02
deathwishdave has joined #ruby
15:02
hightower2 has quit [Ping timeout: 265 seconds]
15:02
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:04
brool has joined #ruby
15:13
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:14
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:15
znz_jp has quit [Remote host closed the connection]
15:15
duderonomy has joined #ruby
15:15
znz_jp has joined #ruby
15:16
_mossplix has joined #ruby
15:19
duderonomy has quit [Ping timeout: 246 seconds]
15:21
chalkmonster has joined #ruby
15:22
ellcs has quit [Read error: Connection reset by peer]
15:23
reber has joined #ruby
15:24
ellcs has joined #ruby
15:25
DaRock has quit [Ping timeout: 245 seconds]
15:28
ellcs has quit [Read error: Connection reset by peer]
15:28
conta2 has joined #ruby
15:29
Esa_ has joined #ruby
15:30
ellcs has joined #ruby
15:36
_mossplix has quit [Remote host closed the connection]
15:39
lucasb has quit [Quit: Connection closed for inactivity]
15:41
vondruch has joined #ruby
15:41
_mossplix has joined #ruby
15:44
hutch1 has quit [Ping timeout: 250 seconds]
15:47
_mossplix has quit [Ping timeout: 276 seconds]
15:49
eljimmy has joined #ruby
15:51
kyrylo has joined #ruby
15:52
joast has quit [Quit: Leaving.]
15:56
User458764 has joined #ruby
15:57
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:59
Jonopoly has quit [Quit: WeeChat 1.9.1]
16:01
mikecmpbll has quit [Quit: inabit. zz.]
16:04
mikecmpbll has joined #ruby
16:05
tpanarch1st_ has joined #ruby
16:05
cris_ has joined #ruby
16:05
kyrylo has joined #ruby
16:08
cris_ has quit [Quit: Leaving]
16:10
tdy has joined #ruby
16:10
xco has joined #ruby
16:20
clemens3 has quit [Quit: WeeChat 1.6]
16:20
chalkmonster has quit [Quit: WeeChat 2.6]
16:21
joast has joined #ruby
16:26
GodFather has quit [Ping timeout: 265 seconds]
16:30
SuperL4g has joined #ruby
16:30
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:33
SuperLag has quit [Ping timeout: 245 seconds]
16:34
kyrylo has joined #ruby
16:36
nahra has quit [Ping timeout: 240 seconds]
16:44
TomyWork has quit [Ping timeout: 246 seconds]
16:47
poontangmessiah has quit [Ping timeout: 240 seconds]
16:52
mikecmpbll has quit [Quit: inabit. zz.]
16:54
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:56
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:58
Rapture has joined #ruby
16:59
duderonomy has joined #ruby
17:00
duderonomy is now known as Guest79972
17:00
Guest79972 has quit [Client Quit]
17:01
duderono_ has joined #ruby
17:05
AndreYuhai has joined #ruby
17:06
<
AndreYuhai >
Hey there, I have a csv file that I am reading line by line. But cells contain digits with leading zeros which when parsed is converted to octal. How can I avoid that? "011" converts to "9"
17:06
<
AndreYuhai >
I am using CSV.foreach(path_to_csv, headers: true, header_converters: :symbol, converters: :numeric)
17:06
duderono_ has quit [Read error: Connection reset by peer]
17:07
duderono_ has joined #ruby
17:08
conta2 has quit [Remote host closed the connection]
17:13
salinasc has joined #ruby
17:18
<
adam12 >
AndreYuhai: Interesting. That's actually because of the Integer() method in Kernel I'm assuming.
17:19
<
adam12 >
AndreYuhai: My suggestion would be to not use the :numeric converter and possibly use your own by providing a lambda. You could try dropping the leading 0 before trying to cast to numeric.
17:19
<
adam12 >
&>> Integer("011")
17:19
<
AndreYuhai >
adam12, indeed it is. I was not expecting this and I don't think there is any way to avoid this when using :numeric
17:20
<
AndreYuhai >
Oh sure I will try the lambda way, thank you.
17:20
<
adam12 >
AndreYuhai: I've never seen it before. Maybe it's actually a Ruby bug? I'm not sure I'd expect the string "011" to be octal...
17:20
duderono_ has quit [Read error: Connection reset by peer]
17:20
duderonomy has joined #ruby
17:21
<
AndreYuhai >
adam12, Well in some cases maybe but then there should be an option whether we want that or not I guess.
17:21
duderonomy is now known as Guest41093
17:21
tpanarch1st_ has quit [Quit: Thanks for your help, nice to see you, take care.]
17:21
SuperL4g has quit [Ping timeout: 276 seconds]
17:22
hutch1 has joined #ruby
17:23
<
havenwood >
&>> Integer("011", 10)
17:23
SuperLag has joined #ruby
17:23
<
havenwood >
AndreYuhai: ^
17:23
dinfuehr has quit [Ping timeout: 240 seconds]
17:25
Intelo has joined #ruby
17:26
dinfuehr has joined #ruby
17:26
<
AndreYuhai >
havenwood, Oh, thank you for pointing that out as well. I will implement that.
17:27
chalkmonster has joined #ruby
17:28
Guest41093 has quit [Read error: Connection reset by peer]
17:28
snk has joined #ruby
17:28
duderono_ has joined #ruby
17:29
ramfjord has joined #ruby
17:29
SuperLag has quit [Quit: time to go dark for a bit]
17:33
Intelo has quit [Remote host closed the connection]
17:34
Intelo has joined #ruby
17:34
xco has quit [Quit: xco]
17:35
spiette has joined #ruby
17:36
greengriminal has joined #ruby
17:37
xco has joined #ruby
17:38
ogres has quit [Quit: Connection closed for inactivity]
17:39
duderono_ has joined #ruby
17:39
psmolen has quit [Ping timeout: 265 seconds]
17:40
duderono_ has quit [Client Quit]
17:40
duderon__ has joined #ruby
17:41
psmolen has joined #ruby
17:42
jeremycw has joined #ruby
17:43
SuperLag has joined #ruby
17:44
cthulchu has joined #ruby
17:52
<
NL3limin4t0r >
&>> '011'.to_i(10)
17:52
ellcs1 has joined #ruby
17:53
BH23 has quit [Ping timeout: 240 seconds]
17:53
<
NL3limin4t0r >
Depending on how strict you want to convert. #to_i produces 0 if there isn't a valid number, while #Integer raises an exception.
17:54
<
NL3limin4t0r >
&>> 'foo'.to_i(10)
17:54
<
NL3limin4t0r >
&>> Integer('foo', 10)
17:54
<
NL3limin4t0r >
AndreYuhai: ^
17:55
morozovm has joined #ruby
17:55
morozovm has quit [Client Quit]
18:02
suukim has quit [Quit: Konversation terminated!]
18:04
duderon__ has quit [Read error: Connection reset by peer]
18:04
duderono_ has joined #ruby
18:07
Rapture has quit [Ping timeout: 264 seconds]
18:07
duderono_ has quit [Read error: Connection reset by peer]
18:07
duderono_ has joined #ruby
18:08
Rapture has joined #ruby
18:10
NL3limin4t0r is now known as NL3limin4t0r_afk
18:16
rbanffy has joined #ruby
18:17
xco has quit [Quit: xco]
18:19
salinasc has quit [Ping timeout: 276 seconds]
18:22
wildtrees has joined #ruby
18:27
sauvin has quit [Read error: Connection reset by peer]
18:27
gavlee has joined #ruby
18:27
salinasc has joined #ruby
18:27
duderono_ has quit [Read error: Connection reset by peer]
18:28
duderonomy has joined #ruby
18:28
duderonomy is now known as Guest51441
18:31
deathwishdave has joined #ruby
18:33
lucasb has joined #ruby
18:33
Guest51441 has quit [Read error: Connection reset by peer]
18:34
ellcs1 has quit [Ping timeout: 245 seconds]
18:34
eljimmy has quit [Quit: Leaving]
18:34
duderono_ has joined #ruby
18:39
KeyJoo has joined #ruby
18:42
tdy has quit [Ping timeout: 240 seconds]
18:43
redlegion has quit [Remote host closed the connection]
18:44
Exuma has joined #ruby
18:48
rbanffy has quit [Quit: rbanffy]
18:53
redlegion has joined #ruby
18:55
xco has joined #ruby
18:58
gix has joined #ruby
18:59
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
19:06
rbanffy has joined #ruby
19:07
nowz has joined #ruby
19:07
banisterfiend has joined #ruby
19:08
fphilipe has quit [Ping timeout: 246 seconds]
19:11
xco has quit [Quit: xco]
19:17
antong has joined #ruby
19:17
duderono_ has quit [Read error: Connection reset by peer]
19:17
duderono_ has joined #ruby
19:18
duderono_ has quit [Read error: Connection reset by peer]
19:18
dionysus69 has quit [Ping timeout: 240 seconds]
19:18
duderono_ has joined #ruby
19:19
ropeney_ has joined #ruby
19:19
ropeney has quit [Ping timeout: 240 seconds]
19:20
AJA4351 has joined #ruby
19:21
reyfi9e has quit [Ping timeout: 245 seconds]
19:22
za1b1tsu has quit [Remote host closed the connection]
19:23
AJA4350 has quit [Ping timeout: 245 seconds]
19:23
AJA4351 is now known as AJA4350
19:25
reyfi9e has joined #ruby
19:25
Ven`` has joined #ruby
19:26
antong has joined #ruby
19:26
antong has quit [Client Quit]
19:27
rbanffy has quit [Quit: rbanffy]
19:29
jenrzzz has joined #ruby
19:30
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:31
tdy has joined #ruby
19:31
gix has quit [Quit: Client exiting]
19:34
banisterfiend has joined #ruby
19:34
gix has joined #ruby
19:35
snickers has joined #ruby
19:37
banisterfiend has quit [Client Quit]
19:38
drincruz has quit [Read error: No route to host]
19:38
catbusters has quit [Quit: Connection closed for inactivity]
19:38
drincruz has joined #ruby
19:40
ropeney has joined #ruby
19:40
ropeney_ has quit [Ping timeout: 245 seconds]
19:45
tdy has quit [Ping timeout: 245 seconds]
19:46
jenrzzz has quit [Ping timeout: 245 seconds]
19:46
jenrzzz has joined #ruby
19:53
jenrzzz has quit [Ping timeout: 265 seconds]
19:54
banisterfiend has joined #ruby
19:58
xco has joined #ruby
20:10
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:11
banisterfiend has joined #ruby
20:14
codefriar has quit [Ping timeout: 265 seconds]
20:15
codefriar has joined #ruby
20:15
banisterfiend has quit [Client Quit]
20:16
rem_ has joined #ruby
20:17
bitwinery has joined #ruby
20:17
bitwinery has quit [Remote host closed the connection]
20:18
bitwinery has joined #ruby
20:19
SeepingN has joined #ruby
20:20
_mossplix has joined #ruby
20:22
tdy has joined #ruby
20:28
tdy has quit [Ping timeout: 245 seconds]
20:36
drincruz has quit [Ping timeout: 268 seconds]
20:36
drincruz_ has joined #ruby
20:38
poontangmessiah has joined #ruby
20:42
grilix_ has quit [Ping timeout: 264 seconds]
20:43
salinasc has quit [Ping timeout: 265 seconds]
20:44
schne1der has quit [Ping timeout: 240 seconds]
20:48
blackmesa has joined #ruby
20:54
duderono_ has quit [Read error: Connection reset by peer]
20:55
duderonomy has joined #ruby
20:55
duderonomy is now known as Guest70209
20:59
Guest70209 has quit [Ping timeout: 240 seconds]
21:00
ellcs1 has joined #ruby
21:02
jenrzzz has joined #ruby
21:03
codefriar has quit [Ping timeout: 240 seconds]
21:05
codefriar has joined #ruby
21:05
fphilipe has joined #ruby
21:05
bambanx has joined #ruby
21:05
bambanx has quit [Client Quit]
21:07
Exuma has joined #ruby
21:07
blackmesa1 has joined #ruby
21:08
blackmesa has quit [Ping timeout: 245 seconds]
21:09
ramfjord has quit [Ping timeout: 265 seconds]
21:12
fphilipe has quit [Ping timeout: 264 seconds]
21:15
ramfjord has joined #ruby
21:16
KeyJoo has quit [Quit: KeyJoo]
21:18
Fusl has quit [Max SendQ exceeded]
21:19
Fusl has joined #ruby
21:20
davidmogar has joined #ruby
21:21
<
davidmogar >
hello. Probably not the best place to ask, but let's see. I have a ruby program and I want to execute from it a command. For that I'm using system("mycommand &"). The thing here is that I need that command to stay alive even if the main program dies. How could I do this?
21:27
<
jeremycw >
davidmogar: you can fork the process and then detach the parent
21:27
Fernando-Basso has joined #ruby
21:28
<
davidmogar >
jeremycw how do I detach the parent?
21:28
<
havenwood >
davidmogar: I was going to say spawn and detach, which is very similar to jeremycw's suggestion.
21:29
<
jeremycw >
like in the snippet above, with Process.detach
21:31
<
havenwood >
davidmogar: Process.detach spawn 'command'
21:32
<
havenwood >
davidmogar: (This is the best place to ask.) :)
21:32
<
davidmogar >
I should have given more details because that solution, although seems completely valid, it's not working
21:32
<
davidmogar >
so more details coming
21:33
<
havenwood >
as long as CGI isn't involved, I look forward to the details
21:35
<
davidmogar >
this is actually for a PoC. The parent program is Puppet Server, which runs ruby. What I'm trying to do is define a function that get's executed in the server. In that function I'm trying to exec system tool that kills the Puppet Server. The problem there is that the moment I kill it, the system tool is killed too. They way I'm executing it is with
21:35
<
davidmogar >
system("/mytool &") but this inherits the PGID. Fork is not implemented for the platform, so it's not an options here
21:36
Intelo has quit [Read error: Connection reset by peer]
21:37
Intelo has joined #ruby
21:37
ramfjord has quit [Ping timeout: 240 seconds]
21:38
<
davidmogar >
too be fair is jruby...
21:38
<
jeremycw >
fork would be a bad option anyway since you wouldn't want to fork the entire JVM...
21:39
<
davidmogar >
exactly
21:39
<
jeremycw >
but I don't see why spawn wouldn't work.
21:40
<
davidmogar >
let me try that. Is the only one I haven't tried
21:41
<
jeremycw >
how are you killing the server?
21:43
<
davidmogar >
that part is in go. Basically killing the process with a sigint
21:43
<
davidmogar >
and spawn("/tool") inherits the pgid too so gets killed
21:43
rbanffy has joined #ruby
21:43
<
jeremycw >
you called Process.detach ?
21:44
<
davidmogar >
no, forgot. For the pid returned by spawn?
21:48
xco_ has joined #ruby
21:49
<
jeremycw >
yes. also PGID is process group id. you want to kill by PID
21:49
<
davidmogar >
jeremycw same thing. The PGID and the SID are the ones of the parent
21:49
salinasc has joined #ruby
21:50
<
davidmogar >
the main process has the same pid and pgid
21:51
xco has quit [Ping timeout: 240 seconds]
21:51
xco_ is now known as xco
21:51
salinasc has quit [Remote host closed the connection]
21:52
salinasc has joined #ruby
21:57
ellcs1 has quit [Ping timeout: 264 seconds]
21:58
tdy has joined #ruby
21:59
<
havenwood >
davidmogar: you can change the PGID with spawn. For example: Process.detach spawn 'ls', pgroup: true
22:00
<
havenwood >
davidmogar: the PID of a child will be different than the parent
22:03
banisterfiend has joined #ruby
22:03
<
davidmogar >
havenwood let's give it a try
22:05
<
davidmogar >
yep, it changed the pgid. The process was still killed. I guess this happened because the SID still points to the parent?
22:06
<
AndreYuhai >
NL3limin4t0r_afk, Thank you, I will go with Integer() because I also have some string so I don't want them to be 0. Sorry for the late reply. :)
22:06
AndreYuhai has quit [Quit: Leaving]
22:07
<
havenwood >
davidmogar: Sleep a second in the subprocess so you can successfully detach?
22:08
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:10
drincruz_ has quit [Ping timeout: 240 seconds]
22:11
jenrzzz has quit [Ping timeout: 245 seconds]
22:13
<
davidmogar >
havenwood same
22:13
<
ruby[bot] >
davidmogar: 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
22:14
<
havenwood >
davidmogar: I have to relocate now, but just to confirm, killing the parent from a detached child is killing the child too?
22:14
<
havenwood >
davidmogar: That doesn't sound right. Can you show a minimal reproduction case? BBIAB.
22:15
<
davidmogar >
havenwood can show some code, but to reproduce you would need puppet at least so no minimal at all
22:18
xco has quit [Quit: xco]
22:21
<
Iambchop >
davidmogar: might be able to reproduce the behavior in a small script you run directly from jruby instead of puppet?
22:24
jenrzzz has joined #ruby
22:25
ellcs1 has joined #ruby
22:26
jeremycw has quit [Ping timeout: 245 seconds]
22:26
Azure has joined #ruby
22:26
jmcgnh has quit [Ping timeout: 240 seconds]
22:27
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:28
salinasc has quit [Remote host closed the connection]
22:28
ccooke___ has quit [Ping timeout: 268 seconds]
22:28
salinasc has joined #ruby
22:29
Swyper has joined #ruby
22:29
jmcgnh has joined #ruby
22:32
Swyper has quit [Remote host closed the connection]
22:32
_mossplix has quit [Remote host closed the connection]
22:34
Swyper has joined #ruby
22:36
dbugger has quit [Ping timeout: 264 seconds]
22:38
davidmogar has quit [Remote host closed the connection]
22:42
salinasc has quit [Ping timeout: 265 seconds]
22:49
jenrzzz has quit [Ping timeout: 245 seconds]
22:49
banisterfiend has joined #ruby
22:50
ramfjord has joined #ruby
22:50
reber has quit [Remote host closed the connection]
22:53
banisterfiend has quit [Client Quit]
22:53
lucasb has quit [Quit: Connection closed for inactivity]
22:53
_mossplix has joined #ruby
22:53
i9zO5AP has joined #ruby
22:53
banisterfiend has joined #ruby
22:56
Ai9zO5AP has quit [Ping timeout: 246 seconds]
22:56
Intelo has quit [Ping timeout: 265 seconds]
22:56
salinasc has joined #ruby
22:58
_mossplix has quit [Ping timeout: 265 seconds]
23:00
Swyper has quit [Remote host closed the connection]
23:01
salinasc has quit [Read error: Connection reset by peer]
23:01
salinasce has joined #ruby
23:01
Swyper has joined #ruby
23:01
poontangmessiah has quit [Remote host closed the connection]
23:07
fphilipe has joined #ruby
23:08
jenrzzz has joined #ruby
23:12
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:12
Swyper has quit [Remote host closed the connection]
23:12
fphilipe has quit [Ping timeout: 245 seconds]
23:16
Swyper has joined #ruby
23:17
salinasce has quit [Ping timeout: 240 seconds]
23:18
Swyper has quit [Remote host closed the connection]
23:20
also_uplime has joined #ruby
23:20
also_uplime has left #ruby ["/me scurries away"]
23:21
duderonomy has joined #ruby
23:22
duderonomy is now known as Guest11009
23:24
thebananaking has joined #ruby
23:24
Swyper has joined #ruby
23:25
Swyper has quit [Remote host closed the connection]
23:25
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:26
Guest35379 is now known as baweaver
23:26
baweaver has quit [Changing host]
23:26
baweaver has joined #ruby
23:26
Guest11009 has quit [Ping timeout: 265 seconds]
23:32
tdy has quit [Ping timeout: 276 seconds]
23:32
Swyper has joined #ruby
23:34
ellcs1 has quit [Ping timeout: 245 seconds]
23:36
Swyper has quit [Ping timeout: 245 seconds]
23:39
greengriminal has quit [Quit: Leaving]
23:40
banisterfiend has joined #ruby
23:40
blackmesa has joined #ruby
23:42
blackmesa1 has quit [Ping timeout: 264 seconds]
23:43
Cache_Money has joined #ruby
23:49
Swyper has joined #ruby
23:51
salinasc has joined #ruby
23:55
Retronoodle has joined #ruby
23:55
Swyper has quit [Remote host closed the connection]
23:59
DaRock has joined #ruby