00:03
SeepingN_ is now known as SeepingN
00:08
cisco has joined #ruby
00:08
wilbert has quit [Ping timeout: 245 seconds]
00:22
cisco has quit [Quit: bye]
00:23
armyriad has quit [Read error: Connection reset by peer]
00:23
armyriad has joined #ruby
00:23
tdy2 has quit [Read error: Connection reset by peer]
00:24
tdy2 has joined #ruby
00:26
phaul has quit [Ping timeout: 250 seconds]
00:27
phaul has joined #ruby
00:30
mangold has joined #ruby
00:41
renich has joined #ruby
00:45
jobewan has quit [Quit: jobewan]
00:46
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:47
axsuul has joined #ruby
00:50
AJA4350 has quit [Ping timeout: 245 seconds]
00:51
AJA4350 has joined #ruby
00:51
crankharder has quit [Ping timeout: 245 seconds]
00:54
AJA4350 has quit [Remote host closed the connection]
00:54
AJA4350 has joined #ruby
00:55
jmcgnh has quit [Excess Flood]
00:59
jmcgnh has joined #ruby
01:02
r3m has quit [Quit: WeeChat 2.5-dev]
01:03
r3m has joined #ruby
01:05
AJA4350 has quit [Ping timeout: 246 seconds]
01:08
sylario has quit [Quit: Connection closed for inactivity]
01:09
AJA4350 has joined #ruby
01:09
ramfjord has quit [Read error: Connection reset by peer]
01:13
ramfjord has joined #ruby
01:16
\void has quit [Quit: So long, and thanks for all the fish.]
01:23
wilbert has joined #ruby
01:27
doitliao has joined #ruby
01:35
ramfjord has quit [Ping timeout: 245 seconds]
01:38
tdy2 has quit [Ping timeout: 246 seconds]
01:40
renich_ has joined #ruby
01:41
renich has quit [Ping timeout: 268 seconds]
01:42
agent_white has quit [Quit: brb]
01:44
agent_white has joined #ruby
01:52
spacesuitdiver has joined #ruby
01:52
gix has quit [Ping timeout: 246 seconds]
02:02
bruul has joined #ruby
02:07
SeepingN has quit [Ping timeout: 245 seconds]
02:09
eb0t_ has quit [Read error: Connection reset by peer]
02:11
CrazyEddy has quit [Ping timeout: 255 seconds]
02:11
eb0t_ has joined #ruby
02:15
wilbert has quit [Ping timeout: 245 seconds]
02:27
T3RM1N41 has joined #ruby
02:27
T3RM1N41 has quit [Read error: Connection reset by peer]
02:29
Xiti has quit [Ping timeout: 250 seconds]
02:29
ramfjord has joined #ruby
02:30
SuperL4g is now known as SuperLag
02:34
blackmesa has quit [Ping timeout: 252 seconds]
02:35
blackmesa has joined #ruby
02:36
Xiti has joined #ruby
02:43
doitliao has quit [Remote host closed the connection]
02:45
blackmesa has quit [Ping timeout: 258 seconds]
02:46
SuperLag has quit [Quit: reboot]
03:00
ramfjord has quit [Ping timeout: 246 seconds]
03:03
AJA4350 has quit [Quit: AJA4350]
03:11
CrazyEddy has joined #ruby
03:13
darix has quit [Quit: may the packets be with you...]
03:20
darix has joined #ruby
03:23
orbyt_ has joined #ruby
03:39
Swyper has joined #ruby
03:43
Swyper has quit [Ping timeout: 246 seconds]
03:44
ramfjord has joined #ruby
03:48
t0xik has quit [Quit: Connection closed for inactivity]
03:49
ramfjord has quit [Ping timeout: 255 seconds]
03:53
SeepingN has joined #ruby
04:01
wolfshappen has quit [Ping timeout: 268 seconds]
04:02
wolfshappen_ has joined #ruby
04:05
braincrash has quit [Quit: bye bye]
04:07
bruul has quit [Ping timeout: 250 seconds]
04:08
bruul has joined #ruby
04:09
braincrash has joined #ruby
04:13
tdy2 has joined #ruby
04:34
agent_white has quit [Quit: leaving]
04:56
dellavg__ has joined #ruby
04:57
salasrod has quit [Remote host closed the connection]
04:58
salasrod has joined #ruby
04:59
cnsvc_ has quit [Remote host closed the connection]
05:00
cnsvc_ has joined #ruby
05:11
hagebake has joined #ruby
05:15
t0xik has joined #ruby
05:16
tdy2 has quit [Ping timeout: 255 seconds]
05:39
v01d4lph4 has joined #ruby
05:39
v01d4lph4 has quit [Remote host closed the connection]
05:44
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:50
gix has joined #ruby
05:51
reber has joined #ruby
05:52
wilbert has joined #ruby
05:56
dellavg__ has quit [Ping timeout: 250 seconds]
06:00
SuperLag has joined #ruby
06:00
tdy2 has joined #ruby
06:08
ByronJohnson has quit [Ping timeout: 250 seconds]
06:13
rippa has joined #ruby
06:16
mozzarella has quit [Ping timeout: 246 seconds]
06:17
shakes has joined #ruby
06:18
conta has joined #ruby
06:19
mozzarella has joined #ruby
06:21
xrexeon has joined #ruby
06:22
xrexeon has quit [Remote host closed the connection]
06:23
gix has quit [Ping timeout: 255 seconds]
06:34
marz_d`ghostman has quit [Ping timeout: 256 seconds]
06:44
bruul has quit [Ping timeout: 255 seconds]
06:45
ged has quit [Read error: Connection reset by peer]
06:45
mahlon has quit [Read error: Connection reset by peer]
06:46
ged has joined #ruby
07:05
ged has quit [Ping timeout: 255 seconds]
07:15
aupadhye has joined #ruby
07:17
ByronJohnson has joined #ruby
07:21
reber has quit [Remote host closed the connection]
07:21
tdy2 has quit [Ping timeout: 255 seconds]
07:23
ged has joined #ruby
07:23
ByronJohnson has quit [Ping timeout: 246 seconds]
07:30
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:30
ByronJohnson has joined #ruby
07:33
tdy2 has joined #ruby
07:38
sagax has quit [Ping timeout: 245 seconds]
07:42
_whitelogger has joined #ruby
07:45
ramfjord has joined #ruby
07:46
mangold has quit [Quit: This computer has gone to sleep]
07:49
ramfjord has quit [Ping timeout: 250 seconds]
07:50
sagax has joined #ruby
07:58
nowhere_man has quit [Ping timeout: 258 seconds]
07:58
SeepingN has quit [Quit: The system is going down for reboot NOW!]
08:05
xrexeon has joined #ruby
08:05
fluxAeon has quit [Ping timeout: 245 seconds]
08:14
Dbugger has joined #ruby
08:16
clemens3 has joined #ruby
08:22
jcarl43 has quit [Quit: WeeChat 2.4]
08:25
t0xik has quit [Quit: Connection closed for inactivity]
08:27
aufi has joined #ruby
08:32
lxsameer has joined #ruby
08:34
alem0lars has joined #ruby
08:35
aufi_ has joined #ruby
08:36
blackmesa has joined #ruby
08:38
aufi has quit [Ping timeout: 250 seconds]
08:42
mangold has joined #ruby
08:48
xrexeon has quit [Remote host closed the connection]
08:57
mikecmpbll has joined #ruby
09:00
al2o3-cr has quit [Quit: WeeChat 2.4]
09:03
al2o3-cr has joined #ruby
09:04
blaguvest has joined #ruby
09:05
blackmesa has quit [Ping timeout: 264 seconds]
09:07
blackmesa has joined #ruby
09:09
alem0lars has quit [Ping timeout: 255 seconds]
09:11
maufart__ has joined #ruby
09:13
aufi_ has quit [Ping timeout: 246 seconds]
09:14
cd has quit [Quit: cd]
09:18
wilbert has quit [Ping timeout: 246 seconds]
09:19
Pisuke has joined #ruby
09:19
MyMind has quit [Ping timeout: 245 seconds]
09:19
Tuor has joined #ruby
09:25
ericboehs1 has joined #ruby
09:25
flips has quit [Quit: bbl ...]
09:25
flips_ has joined #ruby
09:25
akem has quit [Remote host closed the connection]
09:25
helpa-bot has joined #ruby
09:25
helpa has quit [Read error: Connection reset by peer]
09:25
akem has joined #ruby
09:25
flips_ is now known as flips
09:26
nchambers has joined #ruby
09:27
helpa has joined #ruby
09:27
irdr_ has joined #ruby
09:28
th1nkpad has joined #ruby
09:28
leftylin1 has joined #ruby
09:30
uplime has quit [Ping timeout: 245 seconds]
09:30
thinkpad has quit [Ping timeout: 245 seconds]
09:30
Nicmavr has quit [Ping timeout: 245 seconds]
09:30
helpa-bot has quit [Remote host closed the connection]
09:30
irdr has quit [Remote host closed the connection]
09:30
leftylink has quit [Ping timeout: 245 seconds]
09:30
ghormoon has quit [Ping timeout: 245 seconds]
09:30
Bish has quit [Ping timeout: 245 seconds]
09:30
ericboehs has quit [Ping timeout: 245 seconds]
09:30
nchambers is now known as uplime
09:30
th1nkpad is now known as thinkpad
09:30
lxsameer has quit [Ping timeout: 245 seconds]
09:30
Nicmavr has joined #ruby
09:31
ghormoon has joined #ruby
09:31
m27frogy has joined #ruby
09:32
adgtl has quit [Ping timeout: 255 seconds]
09:32
dinfuehr has quit [Ping timeout: 255 seconds]
09:33
mangold has quit [Ping timeout: 245 seconds]
09:33
<
al2o3-cr >
&>> 26 ** 8 #### so a 26 character keyspace repeated permutations of 8 ####
09:33
ellcs has joined #ruby
09:33
tdy2 has quit [Read error: Connection reset by peer]
09:34
<
al2o3-cr >
hmmm, wonder how long this will take to find my PSK lol ;)
09:34
badeball_ has joined #ruby
09:35
dinfuehr has joined #ruby
09:35
badeball has quit [Ping timeout: 245 seconds]
09:35
Zarthus has quit [Ping timeout: 245 seconds]
09:35
spiette has quit [Ping timeout: 245 seconds]
09:35
jmosco has quit [Ping timeout: 245 seconds]
09:35
AKPWD has quit [Ping timeout: 245 seconds]
09:35
m27frogy_ has quit [Ping timeout: 245 seconds]
09:35
cats has quit [Ping timeout: 245 seconds]
09:35
obiwahn has quit [Ping timeout: 245 seconds]
09:35
ricer2 has quit [Ping timeout: 245 seconds]
09:35
Rudd0 has quit [Ping timeout: 245 seconds]
09:35
tdy2 has joined #ruby
09:35
APK has joined #ruby
09:35
harmaahylje has quit [Ping timeout: 245 seconds]
09:35
druonysus has quit [Ping timeout: 245 seconds]
09:35
adgtl has joined #ruby
09:35
Zarthus has joined #ruby
09:35
harmaahylje has joined #ruby
09:35
cats has joined #ruby
09:35
ricer2 has joined #ruby
09:36
Rudd0 has joined #ruby
09:36
obiwahn has joined #ruby
09:37
spiette has joined #ruby
09:44
sagax has quit [Read error: Connection reset by peer]
09:44
anothertorusr has quit [Ping timeout: 245 seconds]
09:48
blackmesa has quit [Ping timeout: 250 seconds]
09:55
tdy2 has quit [Ping timeout: 245 seconds]
09:57
lxsameer has joined #ruby
09:57
blackmesa has joined #ruby
09:59
crankharder has joined #ruby
10:00
al2o3-cr has quit [Quit: WeeChat 2.4]
10:01
wolfshappen_ has quit [Ping timeout: 255 seconds]
10:01
dhollin3 has joined #ruby
10:02
wolfshappen has joined #ruby
10:02
blackmesa has quit [Ping timeout: 264 seconds]
10:04
dhollinger has quit [Ping timeout: 250 seconds]
10:05
Ai9zO5AP has joined #ruby
10:05
al2o3-cr has joined #ruby
10:09
volkov has joined #ruby
10:09
tdy2 has joined #ruby
10:11
status402 has joined #ruby
10:25
cnsvc_ has quit [Ping timeout: 256 seconds]
10:28
bruce_lee has joined #ruby
10:30
akem has quit [Ping timeout: 255 seconds]
10:31
Inline has quit [Read error: Connection reset by peer]
10:31
Inline has joined #ruby
10:31
conta has quit [Ping timeout: 246 seconds]
10:32
Inline has quit [Client Quit]
10:33
cisco has joined #ruby
10:35
akem has joined #ruby
10:35
mikecmpb_ has joined #ruby
10:35
mikecmpbll has quit [Ping timeout: 244 seconds]
10:53
d^sh_ has joined #ruby
10:53
mangold has joined #ruby
10:53
d^sh has quit [Ping timeout: 240 seconds]
10:56
sagax has joined #ruby
10:59
blackmesa has joined #ruby
11:01
TvL2386 has quit [Ping timeout: 246 seconds]
11:04
blackmesa has quit [Ping timeout: 264 seconds]
11:18
abrausch has joined #ruby
11:23
mangold has quit [Quit: This computer has gone to sleep]
11:26
conta has joined #ruby
11:37
mangold has joined #ruby
11:38
abrausch has quit []
11:45
ramfjord has joined #ruby
11:49
cisco has quit [Ping timeout: 250 seconds]
11:49
ramfjord has quit [Ping timeout: 246 seconds]
11:59
blackmesa has joined #ruby
12:00
akem has quit [Quit: Leaving]
12:02
akem has joined #ruby
12:05
volkov has quit [Quit: volkov]
12:05
jmosco has joined #ruby
12:24
Dbugger has quit [Ping timeout: 252 seconds]
12:25
donofrio_ has joined #ruby
12:25
shakes_ has joined #ruby
12:25
Azure|dc has joined #ruby
12:26
akem__ has joined #ruby
12:26
tdy3 has joined #ruby
12:26
mikecmpbll has joined #ruby
12:26
clemens3_ has joined #ruby
12:27
Xeago_ has joined #ruby
12:27
mozzarel1 has joined #ruby
12:27
MuffinPimp_ has joined #ruby
12:27
stooj_ has joined #ruby
12:27
duckpupp- has joined #ruby
12:28
AndroidKK has joined #ruby
12:28
tdy4 has joined #ruby
12:29
wolfshappen_ has joined #ruby
12:29
arooni has joined #ruby
12:29
fluxAeon has joined #ruby
12:30
mikecmpb_ has quit [Ping timeout: 246 seconds]
12:30
akosednar has quit [Ping timeout: 246 seconds]
12:30
stooj has quit [Ping timeout: 246 seconds]
12:30
manakanapa1 has quit [Ping timeout: 246 seconds]
12:30
arooni_team_b has quit [Ping timeout: 246 seconds]
12:30
crankharder has quit [Ping timeout: 246 seconds]
12:30
bga57 has quit [Ping timeout: 246 seconds]
12:30
mozzarella has quit [Ping timeout: 246 seconds]
12:30
foxxx0 has quit [Ping timeout: 246 seconds]
12:30
c-c has quit [Ping timeout: 246 seconds]
12:30
linuus has quit [Ping timeout: 246 seconds]
12:30
rprimus has quit [Ping timeout: 246 seconds]
12:30
MuffinPimp has quit [Ping timeout: 246 seconds]
12:30
b6b has quit [Ping timeout: 246 seconds]
12:30
status402 has quit [Ping timeout: 246 seconds]
12:30
tdy2 has quit [Ping timeout: 246 seconds]
12:30
eb0t_ has quit [Ping timeout: 246 seconds]
12:30
jcalla has quit [Ping timeout: 246 seconds]
12:30
cgfbee has quit [Ping timeout: 246 seconds]
12:30
ua has quit [Ping timeout: 246 seconds]
12:30
dante has quit [Ping timeout: 246 seconds]
12:30
Tempesta has quit [Ping timeout: 246 seconds]
12:30
Azure has quit [Ping timeout: 246 seconds]
12:30
MuffinPimp_ is now known as MuffinPimp
12:30
mozzarel1 is now known as mozzarella
12:30
sagax_ has joined #ruby
12:30
duckpuppy has quit [Ping timeout: 255 seconds]
12:30
CrazyEddy has quit [Ping timeout: 255 seconds]
12:30
adgtl has quit [Ping timeout: 255 seconds]
12:30
ellcs has quit [Ping timeout: 255 seconds]
12:30
AndroidKitKat has quit [Ping timeout: 255 seconds]
12:30
ujjain has quit [Ping timeout: 255 seconds]
12:30
Xeago has quit [Ping timeout: 255 seconds]
12:30
rubydoc has quit [Ping timeout: 255 seconds]
12:30
wolfshappen has quit [Ping timeout: 255 seconds]
12:30
sagax has quit [Ping timeout: 255 seconds]
12:30
clemens3 has quit [Ping timeout: 255 seconds]
12:30
shakes has quit [Ping timeout: 255 seconds]
12:30
rippa has quit [Ping timeout: 255 seconds]
12:30
ryouba has quit [Ping timeout: 255 seconds]
12:30
fribmendes has quit [Ping timeout: 255 seconds]
12:30
lightstalker has quit [Ping timeout: 255 seconds]
12:30
akem has quit [Ping timeout: 255 seconds]
12:30
ricer2 has quit [Ping timeout: 255 seconds]
12:30
badeball_ has quit [Ping timeout: 255 seconds]
12:30
ByronJohnson has quit [Ping timeout: 255 seconds]
12:30
renich_ has quit [Ping timeout: 255 seconds]
12:30
noboruma has quit [Ping timeout: 255 seconds]
12:30
donofrio has quit [Ping timeout: 255 seconds]
12:30
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
12:30
noobineer has quit [Ping timeout: 255 seconds]
12:30
csaunders has quit [Ping timeout: 255 seconds]
12:30
Xeago_ is now known as Xeago
12:30
renich has joined #ruby
12:30
bairyn has joined #ruby
12:30
csaunders has joined #ruby
12:30
sagax_ is now known as sagax
12:30
lghtstkr has joined #ruby
12:30
badeball has joined #ruby
12:31
b6b has joined #ruby
12:31
adgtl has joined #ruby
12:31
fribmendes has joined #ruby
12:31
linuus has joined #ruby
12:31
Emmanuel_Chanel has joined #ruby
12:31
manakanapa1 has joined #ruby
12:31
dante has joined #ruby
12:31
ua has joined #ruby
12:31
cgfbee has joined #ruby
12:31
tdy3 has quit [Ping timeout: 268 seconds]
12:32
crankharder has joined #ruby
12:32
ellcs has joined #ruby
12:32
tdy4 has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
12:32
foxxx0 has joined #ruby
12:32
akosednar has joined #ruby
12:33
ujjain has joined #ruby
12:36
noobineer has joined #ruby
12:37
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
12:40
mikecmpbll has quit [Ping timeout: 244 seconds]
12:41
lucasb has joined #ruby
12:51
Cthulu201 has joined #ruby
12:57
nowhere_man has joined #ruby
13:09
mikecmpbll has joined #ruby
13:14
apparition has joined #ruby
13:17
dhollin3 is now known as dhollinger
13:22
xrexeon has joined #ruby
13:28
Onwarion has joined #ruby
13:33
ropeney has joined #ruby
13:34
ropeney has quit [Client Quit]
13:35
ropeney has joined #ruby
13:36
AJA4350 has joined #ruby
13:40
blackmesa has quit [Ping timeout: 250 seconds]
13:43
zapata has quit [Read error: Connection reset by peer]
13:43
zapata has joined #ruby
13:43
nowhere_man has quit [Ping timeout: 250 seconds]
13:45
Inline has joined #ruby
13:51
ctp has joined #ruby
13:52
<
ctp >
hi folks. I struggle a little bit with a sort of i guess easy to solve issue. i have the following array:
13:52
<
ctp >
["{ \"type\": \"INFO_INTEGRITYCHECK_BEGIN\", \"data\": {}}\n", "{ \"type\": \"INFO_INTEGRITYCHECK_FINISHED\", \"data\": {\"conflicting\": 0}}\n\n"]
13:53
<
ctp >
and need to transform it into an array of hashmaps
13:54
<
ctp >
the other thing is to remove all the newlines
13:54
<
ctp >
which i hoped to get rid of with something like foo.each { |line| line.gsub(/\n/ !~ line) }
13:55
<
tbuehlmann >
are the array elements supposed to be json?
13:58
<
ctp >
yes, they are. the thing is, later i want to filter e.g. for specific type etc
13:58
<
ctp >
hm. you mean JSON.parse maybe?
13:58
<
tbuehlmann >
have you tried this? array.map { |element| JSON.parse(element) }
13:59
blackmesa has joined #ruby
14:01
<
ctp >
tbuehlmann: you're my hero :) i just tried to parse the entire thing in one :)
14:02
laaron has joined #ruby
14:02
mangold has quit [Quit: This computer has gone to sleep]
14:04
<
tbuehlmann >
great. why isn't the whole thing json in the first place?
14:12
Tuor has quit [Ping timeout: 245 seconds]
14:21
blackmesa has quit [Ping timeout: 252 seconds]
14:23
aupadhye has quit [Ping timeout: 250 seconds]
14:26
blackmesa has joined #ruby
14:28
shakes_ has quit [Remote host closed the connection]
14:29
prestorium has joined #ruby
14:33
<
ctp >
tbuehlmann: it goes through a series of transformations incl. multiline fields etc.but i managed it to be as json'ish as possible :D
14:49
blackmesa has quit [Ping timeout: 264 seconds]
14:58
ramfjord has joined #ruby
15:00
apparition has quit [Quit: Bye]
15:03
ramfjord has quit [Ping timeout: 255 seconds]
15:05
conta has quit [Ping timeout: 250 seconds]
15:08
mangold has joined #ruby
15:09
Rapture has joined #ruby
15:10
akem__ has quit [Read error: Connection reset by peer]
15:10
akem__ has joined #ruby
15:12
bruul has joined #ruby
15:14
crankharder has quit [Ping timeout: 272 seconds]
15:18
minimal_life has joined #ruby
15:18
spacesuitdiver has joined #ruby
15:25
conta has joined #ruby
15:30
donofrio_ has quit [Quit: Leaving]
15:31
donofrio_ has joined #ruby
15:31
donofrio_ has quit [Remote host closed the connection]
15:32
donofrio_ has joined #ruby
15:37
conta has quit [Ping timeout: 255 seconds]
15:38
minimal_life has quit [Quit: I am functioning within established parameters.]
15:42
skryking has joined #ruby
15:45
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:48
wrkrcoop has joined #ruby
15:48
crankharder has joined #ruby
15:48
<
wrkrcoop >
what tools do you use that you wouldn’t want to dev without?
15:49
DTZUZO has joined #ruby
15:53
<
mozzarella >
my text editor
15:54
aupadhye has joined #ruby
15:56
dviola has joined #ruby
15:56
maufart__ has quit [Ping timeout: 245 seconds]
16:02
wolfshappen_ has quit [Ping timeout: 268 seconds]
16:02
wolfshappen has joined #ruby
16:05
v01d4lph4 has joined #ruby
16:12
hiroaki_ has joined #ruby
16:15
scapegoatee has joined #ruby
16:16
<
scapegoatee >
Anyone alive?
16:17
<
tbuehlmann >
probably
16:18
<
scapegoatee >
Hi, it is my first day. I was expecting heavy ruby discussions :p
16:19
<
scapegoatee >
Overexcited I guess.
16:19
tdy4 has joined #ruby
16:19
<
Net >
scapegoatee: hi :)
16:19
orbyt_ has joined #ruby
16:20
<
scapegoatee >
Hey @Net
16:20
<
scapegoatee >
I'm glad Ifound this place
16:20
<
scapegoatee >
love you all, if you exist :p
16:21
<
havenwood >
scapegoatee: we exist
16:21
prestorium has quit [Ping timeout: 240 seconds]
16:22
<
scapegoatee >
hehe :) I will eventually be active here, hopefully.
16:22
v01d4lph4 has quit [Ping timeout: 244 seconds]
16:24
cisco has joined #ruby
16:24
scapegoatee has left #ruby ["Leaving..."]
16:31
prestorium has joined #ruby
16:33
dviola has quit [Quit: WeeChat 2.4]
16:37
prestorium has quit [Quit: prestorium]
16:39
aupadhye has quit [Remote host closed the connection]
16:39
APK is now known as AKPWD
16:44
nowhere_man has joined #ruby
16:48
<
Net >
Is Random::DEFAULT seeded from /dev/urandom when Ruby starts?
16:48
<
Net >
Or should I call srand on load?
16:50
mahlon has joined #ruby
16:50
nowhere_man has quit [Ping timeout: 257 seconds]
16:51
<
elomatreb >
Net: If you want high-quality random numbers, use the SecureRandom API
16:52
<
Net >
elomatreb: no crypto, just user surveying
16:53
<
elomatreb >
There isn't really a downside to it, I assume the regular rand is seeded from something like microtime (it's not a static seed at least)
16:54
<
Net >
the downside is I'd have to find somewhere to put srand
17:00
[Butch] has joined #ruby
17:01
lxsameer has quit [Quit: out]
17:07
\void has joined #ruby
17:07
<
Net >
could anyone with familiarity with the ruby source confirm?
17:08
<
elomatreb >
May I ask why you want to use srand in the first place? It shouldn't be necessary with either API unless you really want the repeatable results behavior, and even then the default doesn't matter to you
17:09
TechIsCool has joined #ruby
17:10
<
TechIsCool >
is there a way to install latest version of bundler 1
17:10
<
TechIsCool >
vs pinning a version to a specific release
17:14
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:14
gnufied has joined #ruby
17:15
renich has quit [Ping timeout: 246 seconds]
17:19
nowhere_man has joined #ruby
17:21
<
Net >
I want to hash one integer to a fraction such that the hashes of an even distribution of integers will be an even distribution of fractions between 0 and 1.
17:21
<
Net >
What's the best way to do this?
17:21
<
Net >
Random.new(integer).rand?
17:29
conta has joined #ruby
17:34
conta has quit [Ping timeout: 258 seconds]
17:36
skryking has quit [Quit: Leaving]
17:43
orbyt_ has joined #ruby
17:47
orbyt_ has quit [Ping timeout: 250 seconds]
17:49
orbyt_ has joined #ruby
17:51
szulak_ has joined #ruby
17:52
blackmesa has joined #ruby
17:53
bruul has quit [Ping timeout: 250 seconds]
17:57
blackmesa has quit [Ping timeout: 250 seconds]
18:02
blackmesa has joined #ruby
18:03
jcarl43 has joined #ruby
18:05
wrkrcoop has left #ruby [#ruby]
18:09
ricer2 has joined #ruby
18:11
bmurt has joined #ruby
18:11
mangold has quit [Quit: This computer has gone to sleep]
18:16
conta has joined #ruby
18:18
sameerynho has joined #ruby
18:26
clemens3_ has quit [Ping timeout: 250 seconds]
18:31
NightMonkey has joined #ruby
18:31
orbyt_ has quit [Remote host closed the connection]
18:35
am0123 has joined #ruby
18:36
polishdub has joined #ruby
18:37
<
szulak_ >
ruby -e 'puts "hello"'
18:37
blackmesa has quit [Ping timeout: 250 seconds]
18:37
<
szulak_ >
ruby[bot] puts "hello"
18:37
<
szulak_ >
meh, how do I eval it?
18:38
<
szulak_ >
export AA=1; ruby -e 'sleep 3; p ENV["AA"]' &; AA=2
18:38
yebyen has quit [Quit: later]
18:40
<
am0123 >
I'm learning rails, I noticed the use of expressions like "validates or assert " that are used outside methods .... are these functions calls ?
18:42
Dbugger has joined #ruby
18:43
<
am0123 >
I mean How can they call a method outside other methods
18:44
<
szulak_ >
during class definition init
18:45
conta2 has joined #ruby
18:48
cisco has quit [Ping timeout: 255 seconds]
18:49
hiroaki_ has quit [Ping timeout: 258 seconds]
18:50
conta2 has quit [Ping timeout: 255 seconds]
18:52
zapata has quit [Read error: Connection reset by peer]
18:53
zapata has joined #ruby
18:57
<
am0123 >
but how can they become available in this way ?
18:58
<
am0123 >
is that the metaprogramming
18:59
<
szulak_ >
have a look
18:59
<
szulak_ >
I could think of these ways
18:59
KeyJoo has joined #ruby
19:00
<
szulak_ >
but the is_arg_valid2? throws an error
19:00
renich has joined #ruby
19:00
<
szulak_ >
it could work if it would be class method
19:00
<
szulak_ >
but yea, I would also like to know how Rails does it
19:02
hiroaki_ has joined #ruby
19:02
renich has quit [Remote host closed the connection]
19:04
<
am0123 >
I'll try with class method
19:07
<
am0123 >
attr_accessor is self.attr_accessor
19:08
<
szulak_ >
yeah, that's it :)
19:08
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:09
cd has joined #ruby
19:11
<
leftylin1 >
note that no matter how many times `Foo.new` appear in that code (even if it's 0 times), you will still only get "validating => arg_1" once
19:11
leftylin1 is now known as leftylink
19:11
<
am0123 >
leftylin1 +1
19:15
ramfjord has joined #ruby
19:15
reber has joined #ruby
19:16
reber__ has joined #ruby
19:18
KeyJoo has quit [Ping timeout: 250 seconds]
19:19
adgtl- has joined #ruby
19:20
b6b has quit [Ping timeout: 246 seconds]
19:20
b6b has joined #ruby
19:20
TechIsCool has quit [Ping timeout: 255 seconds]
19:20
adgtl has quit [Ping timeout: 255 seconds]
19:20
Rapture has quit [Ping timeout: 255 seconds]
19:20
linuus has quit [Ping timeout: 255 seconds]
19:20
ramfjord has quit [Ping timeout: 255 seconds]
19:20
csaunders has quit [Ping timeout: 255 seconds]
19:20
jcarl43 has quit [Max SendQ exceeded]
19:20
linuus has joined #ruby
19:21
jcarl43 has joined #ruby
19:21
ua has quit [Excess Flood]
19:22
ua has joined #ruby
19:23
eb0t has joined #ruby
19:26
agent_white has joined #ruby
19:26
sauvin has quit [Read error: Connection reset by peer]
19:29
wilbert has joined #ruby
19:30
wilbert has quit [Client Quit]
19:30
spacesuitdiver has joined #ruby
19:30
prestorium has joined #ruby
19:37
naught-fowl has joined #ruby
19:37
conta1 has joined #ruby
19:38
<
naught-fowl >
Hi how can I replace ' in a string with \' ? I am trying str.gsub("'", "\\'") but it gives me a weird result
19:39
bairyn is now known as ByronJohnson
19:41
<
mozzarella >
describe "weird result"
19:41
<
mozzarella >
or define
19:41
<
naught-fowl >
&>> str = "foo'bar'baz"; str.gsub("'", "\\'")
19:41
conta1 has quit [Ping timeout: 240 seconds]
19:42
<
naught-fowl >
I dont know how to eval in here
19:42
<
naught-fowl >
here I get "foobar'bazbarbazbaz"
19:42
<
mozzarella >
>> str = "foo'bar'baz"; str.gsub("'", "\\'")
19:42
<
ruby[bot] >
mozzarella: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
19:43
<
naught-fowl >
>> "foo'bar'baz".gsub("'", "\\'")
19:44
<
ruby[bot] >
naught-fowl: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
19:44
<
naught-fowl >
>> RUBY_VERSION
19:44
<
ruby[bot] >
naught-fowl: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
19:45
SeepingN has joined #ruby
19:45
am0123 has quit [Ping timeout: 245 seconds]
19:46
Tempesta has joined #ruby
19:47
<
naught-fowl >
the bot must be broken
19:49
<
havenwood >
&>> str = "foo'bar'baz"; str.gsub("'", "\\'")
19:49
<
mozzarella >
anyway
19:49
<
mozzarella >
you need 4 slashes
19:49
<
mozzarella >
"foo'bar'baz".gsub("'", "\\\\'")
19:50
<
naught-fowl >
thank you very much, cheese
19:52
<
mozzarella >
when in doubt, always add more slashes
19:52
<
havenwood >
leftylink: #match? is so fast because it doesn't set those. I tend to avoid them since these days there are usually explicit alternatives.
19:53
<
havenwood >
why have 4 when you can have 5!?: '\\\\\''
19:55
rubydoc has joined #ruby
19:57
prestorium has quit [Quit: prestorium]
20:19
conta has quit [Quit: conta]
20:25
TechIsCool has joined #ruby
20:26
mikecmpbll has quit [Ping timeout: 244 seconds]
20:27
mikecmpbll has joined #ruby
20:27
Xiti has quit [Ping timeout: 258 seconds]
20:28
helpa has quit [Remote host closed the connection]
20:30
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:31
bmurt has joined #ruby
20:39
nwradio4 has joined #ruby
20:43
nwradio4 is now known as nwradio
20:50
tdy has joined #ruby
20:52
tdy4 has quit [Ping timeout: 250 seconds]
21:03
hanmac has joined #ruby
21:06
scapegoatee has joined #ruby
21:08
scapegoatee has quit [Client Quit]
21:08
<
Radar >
Any German speakers online? If you were to write out the words for "5,65" would you use "Punkt" for the "," or "Komma"?
21:09
<
Radar >
This would be the :en equiv of 5.65, so "five point six five"
21:24
reber__ has quit [Remote host closed the connection]
21:24
reber has quit [Read error: Connection reset by peer]
21:29
helpa has joined #ruby
21:41
am0123 has joined #ruby
21:42
tdy has quit [Ping timeout: 244 seconds]
21:51
Xiti has joined #ruby
21:54
Ai9zO5AP has quit [Quit: WeeChat 2.3]
21:58
nowhere_man has quit [Read error: Connection reset by peer]
21:59
nowhere_man has joined #ruby
22:00
wolfshappen has quit [Ping timeout: 240 seconds]
22:02
wolfshappen_ has joined #ruby
22:04
yokel has quit [Remote host closed the connection]
22:04
yokel has joined #ruby
22:04
cnsvc_ has joined #ruby
22:09
am0123 has quit [Ping timeout: 250 seconds]
22:09
tdy has joined #ruby
22:13
naught-fowl has quit [Quit: Page closed]
22:13
naught-fowl has joined #ruby
22:30
am0123 has joined #ruby
22:32
Dbugger has quit [Remote host closed the connection]
22:32
Dbugger has joined #ruby
22:32
Dbugger has quit [Remote host closed the connection]
22:43
<
vdl >
what is the bash equivalent of ruby's ARGF ?
22:46
hiroaki_ has quit [Ping timeout: 240 seconds]
22:49
<
havenwood >
vdl: a `|` for piping or a `$(<FILENAME)` for reading a file into a command. You might want to ask #bash, telling them which part you care about.
22:49
<
havenwood >
vdl: Show what you have so far?
22:50
<
havenwood >
vdl: Which part do you care about?
22:51
polishdub has quit [Quit: leaving]
22:55
naught-fowl has quit [Quit: This computer has gone to sleep]
22:57
hightower3 has joined #ruby
22:57
<
hightower3 >
Hey what's a preferred gem for splitting strings on whitespace but honoring quotes? shellwords, or?
22:57
<
baweaver >
Probably shellwords.
22:58
am0123_ has joined #ruby
22:58
<
lupine >
hard problems #3, after cache invalidation and naming things
23:00
<
vdl >
havenwood: hum nevermind. ARGF reads the content of the given filenames as arguments, or, the content of a file piped through stdin. I was looking for simply merging words from either $@ or stdin.
23:00
ruby[bot] has quit [Remote host closed the connection]
23:00
ruby[bot] has joined #ruby
23:00
powerbit has quit [Ping timeout: 268 seconds]
23:01
am0123 has quit [Ping timeout: 250 seconds]
23:01
lucasb has quit [Quit: Connection closed for inactivity]
23:02
orbyt_ has joined #ruby
23:03
<
hightower3 >
thank baweaver
23:03
hightower3 has left #ruby ["Leaving"]
23:09
AndroidKK has quit [Quit: バイバイ〜!]
23:09
AndroidKitKat has joined #ruby
23:13
sagax has quit [Ping timeout: 272 seconds]
23:20
sameerynho has quit [Ping timeout: 245 seconds]
23:24
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:26
def_jam has joined #ruby
23:26
am0123_ has quit [Ping timeout: 255 seconds]
23:28
eb0t has quit [Ping timeout: 244 seconds]
23:33
blackmesa has joined #ruby
23:43
jyaworski has joined #ruby
23:53
spacesuitdiver has joined #ruby
23:58
johnny56_ has quit [Quit: johnny56_]