00:01
breakingthings has quit []
00:02
<
red_menace >
IRC in general has been dead for years - the body is just kept in a freezer so it doesn't smell as bad.
00:02
Lewix has joined #ruby-lang
00:03
_mtr has joined #ruby-lang
00:04
laphlaw has joined #ruby-lang
00:04
<
zenspider >
I didn't say IRC was dead. far from it.
00:05
kotk has quit [Ping timeout: 245 seconds]
00:06
vlad_sta_ has joined #ruby-lang
00:06
vlad_sta_ has quit [Remote host closed the connection]
00:07
jtw has joined #ruby-lang
00:07
mrevd has quit [Quit: Leaving.]
00:09
VTLob has quit [Quit: VTLob]
00:10
el_cristobal has left #ruby-lang ["Leaving"]
00:11
vlad_starkov has quit [Ping timeout: 272 seconds]
00:11
Onixs has joined #ruby-lang
00:14
dingus_khan has joined #ruby-lang
00:14
<
RobertBirnie >
can anyone see whats wrong with this?
00:15
<
drbrain >
RobertBirnie: there's no key :id in your hash
00:15
<
RobertBirnie >
ugh yeah. "id" works
00:15
<
zenspider >
RobertBirnie: logic error as well... if and elsif, but no else case
00:16
apeiros has quit []
00:16
<
zenspider >
type checks are generally a code smell
00:16
<
drbrain >
RobertBirnie: you probably don't want reject! either as it returns nil when no changes were made
00:16
<
RobertBirnie >
if there's no else on a map block will it just return the original item?
00:17
<
zenspider >
this code doesn't make sense. if it is a hash and id is present, do stuff. elsif it is a hash, delete id.
00:17
<
drbrain >
RobertBirnie: if there's no else on the if expression then nil is returned
00:17
<
RobertBirnie >
to return the original item would it be "else volume end"
00:18
mehlah has quit [Quit: Leaving...]
00:18
<
RobertBirnie >
ok, let me give that a try then
00:18
<
RobertBirnie >
that might be my problem
00:19
<
RobertBirnie >
the object can either be a hash, or a Fog::Compute::Libvirt::Volume and the volume is missing tons of rather normal methods and breaks if i touch it
00:19
<
RobertBirnie >
hence checking for the class
00:19
jalcine is now known as Jacky
00:20
<
zenspider >
the logic still doesn't make sense
00:20
deens has joined #ruby-lang
00:20
<
zenspider >
the entire elsif is redundant. bad even.
00:22
<
RobertBirnie >
so i'm creating a kvm machine with fog. if i pass Fog and volume with a nil id it fails to create the volume. so i have to remove it for new volumes
00:22
deens has quit [Remote host closed the connection]
00:24
<
zenspider >
case volume; when Hash; volume.delete "id" unless volume["id"]; volume; else; volume; end
00:24
<
zenspider >
volume.delete "id" if Hash === volume and not volume["id"]; volume
00:25
lfox has quit [Quit: ZZZzzz…]
00:25
<
zenspider >
there's no point in iterating through to delete a key. might as well say what you want to do rather than guess at it 6 months from now
00:26
DEac- has quit [Ping timeout: 260 seconds]
00:28
DEac- has joined #ruby-lang
00:28
ivanskie has quit [Ping timeout: 272 seconds]
00:29
<
zenspider >
ri Hash.delete
00:31
ender_ has joined #ruby-lang
00:32
ender__ has joined #ruby-lang
00:34
marr has quit [Read error: Operation timed out]
00:35
hahuang65 has quit [Ping timeout: 272 seconds]
00:36
ender_ has quit [Ping timeout: 252 seconds]
00:37
vlad_starkov has joined #ruby-lang
00:42
pr0ton has joined #ruby-lang
00:43
|jemc| has quit [Ping timeout: 272 seconds]
00:44
vlad_starkov has quit [Read error: Connection reset by peer]
00:44
laphlaw has quit [Quit: Computer has gone to sleep.]
00:44
laphlaw has joined #ruby-lang
00:45
olivion has joined #ruby-lang
00:49
michael_mbp has quit [Read error: Operation timed out]
00:49
elia has quit [Quit: Computer has gone to sleep.]
00:50
amerine has quit [Ping timeout: 272 seconds]
00:50
michael_mbp has joined #ruby-lang
00:50
elia has joined #ruby-lang
00:50
_mtr has quit [Remote host closed the connection]
00:50
amerine has joined #ruby-lang
00:51
cads has joined #ruby-lang
00:53
Yuuvee has quit [Ping timeout: 265 seconds]
00:53
MrZYX is now known as MrZYX|off
00:57
brianpWins has quit [Quit: brianpWins]
01:00
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:01
SupaYoshi has joined #ruby-lang
01:01
tkuchiki has joined #ruby-lang
01:02
red_menace has quit [Quit: peer reset by connection]
01:04
nathanstitt has joined #ruby-lang
01:08
<
zenspider >
7 months in the making: ruby_parser version 3.3.0 has been released! | software releases by ryan davis -
http://t.co/DH7EKnsh3p
01:09
GaelanAintAround is now known as Gaelan
01:10
<
ryanf >
zenspider: you should make that "___ in the making" text part of your release script
01:10
<
ryanf >
"3 days in the making: ..."
01:11
brianpWins has joined #ruby-lang
01:11
brianpWins has quit [Client Quit]
01:12
kurko_ has quit [Quit: Computer has gone to sleep.]
01:12
mykoweb has joined #ruby-lang
01:18
Voker57 has quit [Ping timeout: 245 seconds]
01:18
_ko1 has joined #ruby-lang
01:20
seanlinsley has quit [Quit: …]
01:20
jyunderwood has joined #ruby-lang
01:20
havenwood has joined #ruby-lang
01:21
Austin__ has joined #ruby-lang
01:21
Gaelan is now known as GaelanAintAround
01:23
ender_ has joined #ruby-lang
01:23
nathanstitt has quit [Quit: Laters]
01:23
knu has quit [Ping timeout: 252 seconds]
01:24
nertzy has quit [Quit: Leaving]
01:25
diegoviola has joined #ruby-lang
01:25
RobertBirnie has quit [Ping timeout: 245 seconds]
01:25
knu has joined #ruby-lang
01:26
patriciomacadden has joined #ruby-lang
01:27
ender__ has quit [Ping timeout: 252 seconds]
01:27
dingus_khan has quit [Remote host closed the connection]
01:27
Cakey has joined #ruby-lang
01:28
olivion has quit [Quit: Leaving]
01:29
sepp2k has quit [Read error: Connection reset by peer]
01:29
marcofernandez has quit [Ping timeout: 252 seconds]
01:30
kurko_ has joined #ruby-lang
01:30
marcofernandez has joined #ruby-lang
01:31
mistym has quit [Remote host closed the connection]
01:32
Voker57 has joined #ruby-lang
01:34
kurko_ has quit [Client Quit]
01:37
marcofernandez has quit [Ping timeout: 252 seconds]
01:38
jyunderwood has quit [Quit: Goodbye]
01:38
jyunderwood has joined #ruby-lang
01:39
hahuang65 has joined #ruby-lang
01:42
mistym has joined #ruby-lang
01:47
marcofernandez has joined #ruby-lang
01:52
tenderlove has quit [Ping timeout: 272 seconds]
01:53
SupaYoshi has quit []
01:53
hahuang65 has quit [Ping timeout: 245 seconds]
01:55
Cakey has quit [Ping timeout: 245 seconds]
01:59
daikan has quit [Remote host closed the connection]
02:00
RobertBirnie has joined #ruby-lang
02:02
dingus_khan has joined #ruby-lang
02:03
amclain has joined #ruby-lang
02:03
RobertBirnie has quit [Client Quit]
02:05
knu has quit [Ping timeout: 252 seconds]
02:05
elia has quit [Quit: (IRC Client: textualapp.com)]
02:06
knu has joined #ruby-lang
02:09
hachiya has joined #ruby-lang
02:12
seanlinsley has joined #ruby-lang
02:12
jyunderwood has quit [Quit: Goodbye]
02:12
Bosox20051 has quit [Remote host closed the connection]
02:17
Lewix has quit [Remote host closed the connection]
02:18
Lewix has joined #ruby-lang
02:22
Lewix has quit [Ping timeout: 248 seconds]
02:23
Cakey has joined #ruby-lang
02:25
wallerdev has quit [Quit: wallerdev]
02:30
havenwood has quit [Remote host closed the connection]
02:31
Guest73532 has quit [Remote host closed the connection]
02:31
bjh13 has joined #ruby-lang
02:31
jsullivandigs has joined #ruby-lang
02:34
presidentbeef has quit [Ping timeout: 272 seconds]
02:34
pr0ton has quit [Quit: pr0ton]
02:36
jsullivandigs has quit [Ping timeout: 248 seconds]
02:37
ledestin has quit [Ping timeout: 260 seconds]
02:39
Cakey has quit [Ping timeout: 260 seconds]
02:40
dingus_khan has quit [Read error: Connection reset by peer]
02:41
dingus_khan has joined #ruby-lang
02:41
daikan has joined #ruby-lang
02:43
face has quit [Ping timeout: 252 seconds]
02:45
face has joined #ruby-lang
02:45
hotpancakes has quit [Remote host closed the connection]
02:46
daikan has quit [Ping timeout: 246 seconds]
02:48
Cakey has joined #ruby-lang
02:48
cored has quit [Ping timeout: 248 seconds]
02:50
michael_mbp has quit [Excess Flood]
02:51
fijimunkii has joined #ruby-lang
02:51
michael_mbp has joined #ruby-lang
02:52
Lewix has joined #ruby-lang
02:54
r0bgleeson has joined #ruby-lang
03:01
havenwood has joined #ruby-lang
03:02
havenwood has quit [Read error: Connection reset by peer]
03:02
havenwood has joined #ruby-lang
03:03
|jemc| has joined #ruby-lang
03:05
havenwood has quit [Read error: Connection reset by peer]
03:05
havenwood has joined #ruby-lang
03:06
towski_ has quit [Read error: Operation timed out]
03:06
GaelanAintAround has quit [Quit: Bye!]
03:06
havenwood has quit [Read error: Connection reset by peer]
03:07
havenwood has joined #ruby-lang
03:10
zz_dlu has joined #ruby-lang
03:10
GaelanAintAround has joined #ruby-lang
03:11
havenwood has quit [Ping timeout: 245 seconds]
03:15
dingus_khan has quit [Remote host closed the connection]
03:16
kith has quit [Read error: Connection reset by peer]
03:17
kith has joined #ruby-lang
03:17
alekst has quit [Quit: Computer has gone to sleep.]
03:22
samuelkadolph has quit [Quit: Quitting]
03:23
samuelkadolph has joined #ruby-lang
03:25
RobertBirnie has joined #ruby-lang
03:25
dwknoxy has quit [Quit: Computer has gone to sleep.]
03:27
saarinen has quit [Quit: saarinen]
03:28
symm- has quit [Ping timeout: 248 seconds]
03:28
bfleisch1r has quit [Ping timeout: 248 seconds]
03:30
knu has quit [Ping timeout: 252 seconds]
03:31
knu has joined #ruby-lang
03:31
hotpancakes has joined #ruby-lang
03:32
DevDoo has joined #ruby-lang
03:35
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:35
knu has quit [Ping timeout: 252 seconds]
03:36
knu has joined #ruby-lang
03:38
hahuang65 has joined #ruby-lang
03:42
daikan has joined #ruby-lang
03:43
joast has quit [Ping timeout: 264 seconds]
03:44
hotpancakes has quit []
03:45
rahul_j has joined #ruby-lang
03:45
rahul_j has left #ruby-lang [#ruby-lang]
03:46
daikan has quit [Read error: Operation timed out]
03:47
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
03:58
postmodern has quit [Quit: Leaving]
03:59
fijimunkii has quit [Ping timeout: 265 seconds]
04:01
knu has quit [Ping timeout: 252 seconds]
04:01
knu has joined #ruby-lang
04:01
havenwood has joined #ruby-lang
04:03
Cakey has quit [Ping timeout: 272 seconds]
04:11
JohnBat26 has joined #ruby-lang
04:11
fijimunkii has joined #ruby-lang
04:13
yatish27 has joined #ruby-lang
04:14
rahul_j has joined #ruby-lang
04:20
ivanskie has joined #ruby-lang
04:20
ivanskie has quit [Client Quit]
04:23
Cakey has joined #ruby-lang
04:24
Barrin6 has joined #ruby-lang
04:25
dingus_khan has joined #ruby-lang
04:30
dingus_khan has quit [Ping timeout: 276 seconds]
04:38
bzalasky has joined #ruby-lang
04:40
yatish27 has quit [Remote host closed the connection]
04:40
Barrin6 has quit [Quit: Leaving]
04:41
Cakey has quit [Ping timeout: 260 seconds]
04:43
daikan has joined #ruby-lang
04:47
daikan has quit [Ping timeout: 260 seconds]
04:48
huma has joined #ruby-lang
04:48
RobertBirnie has joined #ruby-lang
04:48
yatish27 has joined #ruby-lang
04:51
danijoo has quit [Read error: Connection reset by peer]
04:52
danijoo has joined #ruby-lang
04:52
CaptainJet has quit []
04:53
RobertBirnie has quit [Client Quit]
04:53
mistym has quit [Remote host closed the connection]
04:54
JoshuaPaling has joined #ruby-lang
04:56
rahul_j has left #ruby-lang [#ruby-lang]
05:04
Cakey has joined #ruby-lang
05:07
cads has quit [Read error: Operation timed out]
05:11
ahmedelgabri has joined #ruby-lang
05:12
havenwood has quit []
05:12
Cakey has quit [Ping timeout: 245 seconds]
05:16
jerrytgarcia has joined #ruby-lang
05:19
h0lyalg0rithm has joined #ruby-lang
05:19
h0lyalg0rithm has quit [Max SendQ exceeded]
05:20
h0lyalg0rithm has joined #ruby-lang
05:21
Cakey has joined #ruby-lang
05:22
h0lyalg0rithm has quit [Client Quit]
05:23
Voker57 has quit [Read error: Connection reset by peer]
05:24
bfleischer has joined #ruby-lang
05:25
cads has joined #ruby-lang
05:26
Cakey has quit [Ping timeout: 252 seconds]
05:29
bfleischer has quit [Ping timeout: 276 seconds]
05:35
yfeldblu_ has quit [Remote host closed the connection]
05:38
danijoo has quit [Read error: Connection reset by peer]
05:38
danijoo_ has joined #ruby-lang
05:44
DevDoo has quit [Remote host closed the connection]
05:47
cads has quit [Ping timeout: 248 seconds]
05:50
ahmedelg_ has joined #ruby-lang
05:51
RobertBirnie has joined #ruby-lang
05:51
Austin__ has quit [Quit: Leaving.]
05:53
amclain has quit [Quit: Leaving]
05:54
ahmedelgabri has quit [Ping timeout: 245 seconds]
05:56
jonahR has joined #ruby-lang
05:58
jonahR has quit [Client Quit]
06:00
vlad_starkov has joined #ruby-lang
06:03
Cakey has joined #ruby-lang
06:08
ledestin has joined #ruby-lang
06:14
towski_ has joined #ruby-lang
06:15
mistym has joined #ruby-lang
06:15
bjh13 has quit [Ping timeout: 245 seconds]
06:17
bjh13 has joined #ruby-lang
06:18
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
06:18
CodeBunny has joined #ruby-lang
06:19
CodeBunny has quit [Client Quit]
06:20
dingus_khan has joined #ruby-lang
06:20
mykoweb has quit [Remote host closed the connection]
06:21
mykoweb has joined #ruby-lang
06:24
dingus_khan has quit [Ping timeout: 248 seconds]
06:25
mykoweb has quit [Remote host closed the connection]
06:30
marcofernandez has quit [Ping timeout: 272 seconds]
06:31
marcofernandez has joined #ruby-lang
06:36
AKASkip has joined #ruby-lang
06:41
amclain has joined #ruby-lang
06:41
yatish27 has quit [Remote host closed the connection]
06:41
CodeBunny has joined #ruby-lang
06:41
CodeBunny has quit [Client Quit]
06:41
yatish27 has joined #ruby-lang
06:42
CodeBunny has joined #ruby-lang
06:42
CodeBunny has quit [Client Quit]
06:43
CodeBunny has joined #ruby-lang
06:44
daikan has joined #ruby-lang
06:46
yatish27 has quit [Ping timeout: 252 seconds]
06:49
daikan has quit [Ping timeout: 252 seconds]
06:49
arBmind has joined #ruby-lang
06:57
heftig has quit [Ping timeout: 245 seconds]
06:58
pcmyers has joined #ruby-lang
07:04
AKASkip has quit [Ping timeout: 260 seconds]
07:05
amclain has quit [Quit: Leaving]
07:07
Phoop has joined #ruby-lang
07:08
ivanskie has joined #ruby-lang
07:13
tylersmith has quit [Remote host closed the connection]
07:15
ivanskie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:18
vlad_starkov has quit [Remote host closed the connection]
07:23
d4rkr4i has joined #ruby-lang
07:24
rh1n0 has joined #ruby-lang
07:25
bfleischer has joined #ruby-lang
07:27
mbrumbelow has joined #ruby-lang
07:27
mbrumbelow has quit [Quit: mbrumbelow]
07:28
18WAFGUQK is now known as agile
07:29
dagobah has joined #ruby-lang
07:30
bfleischer has quit [Ping timeout: 272 seconds]
07:37
soba has quit [Ping timeout: 260 seconds]
07:38
tbuehlmann has joined #ruby-lang
07:41
AKASkip has joined #ruby-lang
07:42
ender_ has quit [Ping timeout: 245 seconds]
07:45
daikan has joined #ruby-lang
07:49
CoreData has joined #ruby-lang
07:49
daikan has quit [Ping timeout: 252 seconds]
07:50
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
07:57
CoreData has quit [Quit: CoreData]
08:00
solars has joined #ruby-lang
08:00
relix has joined #ruby-lang
08:02
mistym has quit [Remote host closed the connection]
08:04
h_kon has joined #ruby-lang
08:08
face has joined #ruby-lang
08:12
seoaqua has joined #ruby-lang
08:13
kurko_ has joined #ruby-lang
08:16
jovon_ has quit [Quit: Leaving]
08:17
seoaqua has quit [Ping timeout: 252 seconds]
08:17
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
08:17
Forgetful_Lion has joined #ruby-lang
08:17
Forgetful_Lion has quit [Client Quit]
08:18
DevDoo has joined #ruby-lang
08:21
ledestin has quit [Quit: ledestin]
08:21
<
yorickpeterse >
morning
08:22
ahmedelg_ has quit [Remote host closed the connection]
08:22
seoaqua has joined #ruby-lang
08:23
ledestin has joined #ruby-lang
08:24
rahul_j has joined #ruby-lang
08:24
tylersmith has joined #ruby-lang
08:25
aqua_ has joined #ruby-lang
08:27
seoaqua has quit [Ping timeout: 246 seconds]
08:29
tylersmith has quit [Ping timeout: 264 seconds]
08:31
aqua_ has quit [Ping timeout: 272 seconds]
08:31
vinhbachsy has joined #ruby-lang
08:32
heftig has joined #ruby-lang
08:39
ylluminate has quit [Quit: Bye!]
08:42
Pupeno_w has joined #ruby-lang
08:46
daikan has joined #ruby-lang
08:48
Cakey has quit [Ping timeout: 246 seconds]
08:49
arBmind has quit [Quit: Leaving.]
08:50
Pupeno_w has quit []
08:50
Pupeno_w has joined #ruby-lang
08:51
daikan has quit [Ping timeout: 272 seconds]
08:51
jaimef has quit [Excess Flood]
08:54
jaimef has joined #ruby-lang
08:55
Lewix has quit [Remote host closed the connection]
08:55
Lewix has joined #ruby-lang
08:58
michd is now known as MichD
09:00
Lewix has quit [Ping timeout: 272 seconds]
09:01
CoreData has joined #ruby-lang
09:02
benlovell has joined #ruby-lang
09:02
mehlah has joined #ruby-lang
09:02
Lewix has joined #ruby-lang
09:04
<
yorickpeterse >
drbrain: ping
09:08
robmiller has quit [Quit: robmiller]
09:10
vpretzel has quit [Read error: Connection reset by peer]
09:10
vpretzel has joined #ruby-lang
09:12
bzalasky has quit []
09:13
vpretzel has quit [Read error: Connection reset by peer]
09:14
vpretzel has joined #ruby-lang
09:14
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
09:15
vinhbachsy has quit [Remote host closed the connection]
09:15
vinhbachsy has joined #ruby-lang
09:16
mikecmpbll has joined #ruby-lang
09:18
elia has joined #ruby-lang
09:18
faces has joined #ruby-lang
09:18
face has quit [Ping timeout: 246 seconds]
09:20
arBmind has joined #ruby-lang
09:20
<
yorickpeterse >
git push -f best push
09:20
cbreeze has joined #ruby-lang
09:21
yatish27 has joined #ruby-lang
09:24
workmad3 has joined #ruby-lang
09:25
rahul_j has quit [Quit: rahul_j]
09:25
yatish27 has quit [Remote host closed the connection]
09:25
<
yorickpeterse >
today is merge day
09:25
yatish27 has joined #ruby-lang
09:26
bfleischer has joined #ruby-lang
09:26
DevDoo has quit [Quit: Leaving...]
09:26
Pupeno_w_ has joined #ruby-lang
09:26
kurko_ has quit [Quit: Computer has gone to sleep.]
09:26
Pupeno_w has quit [Ping timeout: 245 seconds]
09:29
rahul_j has joined #ruby-lang
09:31
bfleischer has quit [Ping timeout: 265 seconds]
09:36
rahul_j has left #ruby-lang [#ruby-lang]
09:36
mbj has joined #ruby-lang
09:36
cnivolle has joined #ruby-lang
09:39
bin7me has joined #ruby-lang
09:43
d4rkr4i has quit [Quit: Leaving.]
09:43
jerrytgarcia has joined #ruby-lang
09:46
presidentbeef has joined #ruby-lang
09:46
daikan has joined #ruby-lang
09:47
diegoviola has quit [Quit: WeeChat 0.4.2]
09:48
dragonkh has quit [Quit: Bye!]
09:51
daikan has quit [Ping timeout: 260 seconds]
09:51
apeiros has joined #ruby-lang
09:54
[_aeris_] is now known as
_aeris_
09:56
marr has joined #ruby-lang
09:57
ledestin has quit [Quit: ledestin]
09:58
daikan has joined #ruby-lang
09:59
JoshuaPaling has joined #ruby-lang
10:06
robmiller has joined #ruby-lang
10:08
CoreData has quit [Quit: CoreData]
10:10
albertgrala has joined #ruby-lang
10:18
cnivolle has quit [Remote host closed the connection]
10:20
_aeris_ is now known as [_aeris_]
10:21
albertgrala has quit [Quit: Leaving]
10:21
cnivolle has joined #ruby-lang
10:22
GBrawl has joined #ruby-lang
10:23
GBrawl has quit [Client Quit]
10:24
cbreeze has joined #ruby-lang
10:26
Guedes has joined #ruby-lang
10:26
Guedes has left #ruby-lang [#ruby-lang]
10:29
kitak has quit [Remote host closed the connection]
10:30
ahmedelgabri has joined #ruby-lang
10:30
lele has quit [Ping timeout: 264 seconds]
10:31
lele|w has quit [Ping timeout: 252 seconds]
10:32
CoreData has joined #ruby-lang
10:34
jasiek_ has joined #ruby-lang
10:35
danijoo_ has quit [Read error: Connection reset by peer]
10:35
lele|w has joined #ruby-lang
10:35
danijoo has joined #ruby-lang
10:36
lele has joined #ruby-lang
10:38
ahmedelgabri has quit [Remote host closed the connection]
10:39
ahmedelgabri has joined #ruby-lang
10:39
CoreData has quit [Quit: CoreData]
10:49
JohnBat26 has quit [Read error: Operation timed out]
11:01
<
yorickpeterse >
lol certain website returning HTTP 200 for a missing hotel
11:01
<
yorickpeterse >
totally legit
11:02
benlovell has quit [Ping timeout: 260 seconds]
11:02
<
gnufied >
you are using HN for hotel search?
11:02
<
r0bgleeson >
yorickpeterse: weird, 418 seems more appropiate
11:07
<
yorickpeterse >
No, 404 is the only right one
11:07
<
yorickpeterse >
Content not found == 404
11:07
cnivolle has quit [Remote host closed the connection]
11:07
<
yorickpeterse >
gnufied: lawl
11:08
<
r0bgleeson >
do you know what 418 is?
11:08
<
r0bgleeson >
it's a joke
11:08
<
r0bgleeson >
of course 404 is correct
11:09
daikan has quit [Remote host closed the connection]
11:09
<
yorickpeterse >
I know what 418 is
11:10
<
yorickpeterse >
but I'm in srs bsns mode atm
11:10
<
r0bgleeson >
heh ok :)
11:11
<
r0bgleeson >
more accurately, in the world of HTTP, it's more like resource not found (srs bsns mood)
11:11
vinhbachsy has quit [Remote host closed the connection]
11:12
vinhbachsy has joined #ruby-lang
11:16
vinhbachsy has quit [Ping timeout: 272 seconds]
11:17
mikecmpbll has joined #ruby-lang
11:18
<
r0bgleeson >
someone should write a node.js server in coffeescript that serves coffeepot requests
11:19
vinhbachsy has joined #ruby-lang
11:23
daikan has joined #ruby-lang
11:25
* yorickpeterse
wrote some regexps to check if a document was found or not
11:25
<
yorickpeterse >
darn travel industry still lives in the 1990s
11:25
<
yorickpeterse >
BUT THEY DO HAVE A JSON API, VERY 2010-ish!
11:26
<
yorickpeterse >
ah well, at least it's not as bad as AB testing
11:26
<
r0bgleeson >
i doubt you'll find any rails applications out there that are semantic with HTTP, get over it :)
11:26
DEac- has quit [Read error: Connection reset by peer]
11:26
DEac-_ has joined #ruby-lang
11:27
bfleischer has joined #ruby-lang
11:27
cnivolle has joined #ruby-lang
11:27
daikan has quit [Read error: Connection reset by peer]
11:27
yatish27 has quit [Remote host closed the connection]
11:27
benlovell has joined #ruby-lang
11:27
daikan has joined #ruby-lang
11:28
yatish27 has joined #ruby-lang
11:28
<
r0bgleeson >
what's wrong with a JSON API?
11:29
<
gnufied >
I doubt if people agree what is semantic http is
11:29
<
gnufied >
not trying to promote obvious misuse
11:30
<
gnufied >
but one can get into lot of nonsensical pedantary there
11:30
<
r0bgleeson >
sure, that's true, but rails is a whole other level of abstraction that almost removes the concept of HTTP.
11:31
bfleischer has quit [Ping timeout: 252 seconds]
11:32
yatish27 has quit [Ping timeout: 248 seconds]
11:34
<
r0bgleeson >
by semantic I simply meant that unless you look elsewhere you'll learn nothing about HTTP in rails, you don't need to.
11:34
x0f has joined #ruby-lang
11:34
<
workmad3 >
r0bgleeson: you'll learn a bit about content negotiation and form encodings...
11:34
<
gnufied >
that depends on what you are using rails for
11:34
<
gnufied >
if someone is building an API on top of rails, you will have to pretty much
11:35
<
r0bgleeson >
not really
11:35
<
r0bgleeson >
you can set some headers
11:35
<
workmad3 >
r0bgleeson: by using a responds_to block for content negotiation and by having to specify ':multipart => true' on a file upload form ;)
11:35
<
r0bgleeson >
set a status code
11:35
<
r0bgleeson >
you dont actually learn much about HTTP
11:35
<
r0bgleeson >
workmad3: lol
11:35
<
gnufied >
what is "much" about http then. it is not all that complicated protocol
11:36
<
r0bgleeson >
HTTP is a beautiful protocol IMO
11:36
<
r0bgleeson >
and part of why it's beautiful is because indeed, it's not complicated
11:36
<
gnufied >
for proper API implementation, I would wager - the author must research what would be proper response codes
11:36
<
r0bgleeson >
response code's arent shit
11:36
<
gnufied >
versioning, content type negotionations
11:36
<
r0bgleeson >
the interesting parts is in the headers
11:37
<
gnufied >
workmad3: thanks.
11:37
x0f_ has quit [Ping timeout: 248 seconds]
11:38
<
gnufied >
for debian users!
11:39
MrZYX|off is now known as MrZYX
11:49
relix has quit [Read error: Connection reset by peer]
11:49
relix has joined #ruby-lang
11:50
vinhbachsy has quit [Remote host closed the connection]
11:50
vinhbachsy has joined #ruby-lang
11:55
vinhbachsy has quit [Ping timeout: 246 seconds]
12:05
cored has joined #ruby-lang
12:06
ahmedelgabri has quit [Remote host closed the connection]
12:06
sepp2k has joined #ruby-lang
12:07
cnivolle has quit [Remote host closed the connection]
12:07
tkuchiki has quit [Remote host closed the connection]
12:08
tkuchiki has joined #ruby-lang
12:10
daikan has quit [Remote host closed the connection]
12:12
tkuchiki has quit [Ping timeout: 276 seconds]
12:14
sepp2k has quit [Quit: Konversation terminated!]
12:16
daikan has joined #ruby-lang
12:18
ahmedelgabri has joined #ruby-lang
12:20
kurko_ has joined #ruby-lang
12:31
yatish27 has joined #ruby-lang
12:31
lysw123 has joined #ruby-lang
12:34
<
yorickpeterse >
yay deadlocks
12:35
benlovell has quit [Ping timeout: 260 seconds]
12:35
cnivolle has joined #ruby-lang
12:35
yatish27 has quit [Ping timeout: 245 seconds]
12:38
ItSANg___ has joined #ruby-lang
12:38
cnivolle has quit [Remote host closed the connection]
12:39
ItSANgo has quit [Ping timeout: 272 seconds]
12:40
kurko_ has quit [Quit: Computer has gone to sleep.]
12:40
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
12:43
wallerdev has joined #ruby-lang
12:44
<
yorickpeterse >
yay for me being a dumbass
12:44
<
yorickpeterse >
mutex.lock; shit breaks here; mutex.unlock # <- yep
12:44
<
yorickpeterse >
should've used #synchronize instead
12:45
<
yorickpeterse >
that could've worked too
12:46
paramg has joined #ruby-lang
12:48
yatish27 has joined #ruby-lang
12:49
JoshuaPaling has quit [Read error: Connection reset by peer]
12:49
kurko_ has joined #ruby-lang
12:51
GaelanAintAround has quit [Quit: Bye!]
12:52
znz_jp has quit [Quit: kill -QUIT $$]
12:52
mehlah has quit [Quit: Leaving...]
12:52
patriciomacadden has joined #ruby-lang
12:52
znz_jp has joined #ruby-lang
12:54
zz_dlu has joined #ruby-lang
12:54
GaelanAintAround has joined #ruby-lang
12:55
canton7 has quit [Remote host closed the connection]
12:55
canton7 has joined #ruby-lang
12:56
yalue has joined #ruby-lang
13:01
MrZYX is now known as MrZYX|off
13:01
smashwilson has joined #ruby-lang
13:02
mehlah has joined #ruby-lang
13:04
vlad_starkov has joined #ruby-lang
13:10
MrZYX|off is now known as MrZYX
13:16
benlovell has joined #ruby-lang
13:16
hahuang61 has joined #ruby-lang
13:19
hahuang65 has quit [Ping timeout: 276 seconds]
13:24
mrevd has joined #ruby-lang
13:28
bfleischer has joined #ruby-lang
13:29
face has joined #ruby-lang
13:29
wallerdev has quit [Quit: wallerdev]
13:29
faces has quit [Ping timeout: 260 seconds]
13:33
bfleischer has quit [Ping timeout: 272 seconds]
13:33
lysw123 has quit []
13:34
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:34
shinnya has joined #ruby-lang
13:35
snapr has joined #ruby-lang
13:37
patriciomacadden has joined #ruby-lang
13:39
breakingthings has joined #ruby-lang
13:40
kartouch has quit [Ping timeout: 252 seconds]
13:41
ahmedelgabri has quit [Remote host closed the connection]
13:41
vlad_starkov has quit [Remote host closed the connection]
13:42
ahmedelgabri has joined #ruby-lang
13:42
kartouch has joined #ruby-lang
13:42
bfleischer has joined #ruby-lang
13:44
phansch has joined #ruby-lang
13:46
Lewix has quit [Remote host closed the connection]
13:46
ahmedelg_ has joined #ruby-lang
13:46
ahmedelgabri has quit [Ping timeout: 272 seconds]
13:47
Lewix has joined #ruby-lang
13:51
Lewix has quit [Ping timeout: 248 seconds]
13:51
simi has joined #ruby-lang
13:57
mehlah has quit [Quit: Leaving...]
13:57
CoreData has joined #ruby-lang
13:57
enebo has joined #ruby-lang
13:57
CoreData has quit [Client Quit]
13:58
CoreData has joined #ruby-lang
13:58
MrZYX is now known as MrZYX|off
13:59
mehlah has joined #ruby-lang
13:59
tkuchiki has joined #ruby-lang
14:01
MrZYX|off is now known as MrZYX
14:01
relix has joined #ruby-lang
14:04
rahul_j has joined #ruby-lang
14:05
CoreData has quit [Quit: CoreData]
14:05
mbj has left #ruby-lang [#ruby-lang]
14:05
ahmedelg_ has quit [Remote host closed the connection]
14:07
d4rkr4i has joined #ruby-lang
14:11
lfox has joined #ruby-lang
14:15
mikecmpbll has joined #ruby-lang
14:20
cnivolle has joined #ruby-lang
14:25
vlad_starkov has joined #ruby-lang
14:27
gnufied has quit [Ping timeout: 246 seconds]
14:29
VTLob has joined #ruby-lang
14:30
scampbell has joined #ruby-lang
14:30
vlad_starkov has quit [Remote host closed the connection]
14:31
vlad_starkov has joined #ruby-lang
14:31
gnufied has joined #ruby-lang
14:32
fijimunkii has quit [Ping timeout: 272 seconds]
14:32
vlad_starkov has quit [Remote host closed the connection]
14:32
mykoweb has joined #ruby-lang
14:33
yatish27 has quit [Remote host closed the connection]
14:34
Johz has joined #ruby-lang
14:36
vlad_starkov has joined #ruby-lang
14:36
kurko_ has quit [Quit: Computer has gone to sleep.]
14:36
cnivolle has quit []
14:37
yatish27_ has joined #ruby-lang
14:37
ender_ has joined #ruby-lang
14:38
rahul_j has quit [Quit: rahul_j]
14:39
ender__ has joined #ruby-lang
14:39
yatish27_ has quit [Remote host closed the connection]
14:40
yatish27 has joined #ruby-lang
14:41
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:42
ender_ has quit [Ping timeout: 246 seconds]
14:43
patriciomacadden has joined #ruby-lang
14:44
yatish27 has quit [Read error: Operation timed out]
14:45
amcoder has joined #ruby-lang
14:45
shinnya has quit [Ping timeout: 252 seconds]
14:53
nigerianceo has joined #ruby-lang
14:53
rahul_j has joined #ruby-lang
14:54
jtw has joined #ruby-lang
14:54
DouweM has joined #ruby-lang
14:58
d4rkr4i has quit [Ping timeout: 252 seconds]
15:00
d4rkr4i has joined #ruby-lang
15:00
scampbell has quit [Remote host closed the connection]
15:04
banhbeongon has joined #ruby-lang
15:04
h_kon has quit [Remote host closed the connection]
15:05
lysw123 has joined #ruby-lang
15:12
vinhbachsy has joined #ruby-lang
15:12
daikan has quit [Remote host closed the connection]
15:13
daikan has joined #ruby-lang
15:14
red_menace has joined #ruby-lang
15:14
vlad_starkov has quit [Remote host closed the connection]
15:14
lysw123 has quit [Remote host closed the connection]
15:16
ahmedelgabri has joined #ruby-lang
15:16
daikan has quit [Remote host closed the connection]
15:16
daikan has joined #ruby-lang
15:17
bjh13_ has joined #ruby-lang
15:18
symm- has joined #ruby-lang
15:18
AKASkip has quit [Ping timeout: 252 seconds]
15:20
deception has joined #ruby-lang
15:20
ahmedelgabri has quit [Ping timeout: 246 seconds]
15:22
ender__ has quit [Ping timeout: 246 seconds]
15:23
mnngfltg has joined #ruby-lang
15:24
heftig has quit [Ping timeout: 246 seconds]
15:24
ayumin has joined #ruby-lang
15:25
cnivolle has joined #ruby-lang
15:27
apeiros has quit []
15:29
rippa has joined #ruby-lang
15:29
vlad_starkov has joined #ruby-lang
15:30
imperator2 has joined #ruby-lang
15:30
MrZYX is now known as MrZYX|off
15:31
Pupeno_w_ has quit []
15:32
tylersmith has joined #ruby-lang
15:33
MrZYX|off is now known as MrZYX
15:34
vlad_starkov has quit [Remote host closed the connection]
15:34
cirenyc has joined #ruby-lang
15:34
bin7me has quit [Ping timeout: 245 seconds]
15:34
bin7me has joined #ruby-lang
15:35
vlad_starkov has joined #ruby-lang
15:36
rue|w has quit [Read error: Connection reset by peer]
15:36
rue|w has joined #ruby-lang
15:37
kotk has joined #ruby-lang
15:37
amcoder has quit [Ping timeout: 276 seconds]
15:39
amcoder has joined #ruby-lang
15:40
DouweM_ has joined #ruby-lang
15:41
DouweM has quit [Ping timeout: 248 seconds]
15:42
|jemc| has quit [Ping timeout: 246 seconds]
15:42
paramg has quit [Ping timeout: 252 seconds]
15:43
symm- has quit [Quit: Leaving...]
15:43
vlad_starkov has quit [Remote host closed the connection]
15:44
CaptainJet has joined #ruby-lang
15:44
atmosx has joined #ruby-lang
15:47
vlad_starkov has joined #ruby-lang
15:48
pcmyers has quit [Ping timeout: 265 seconds]
15:48
serroft has joined #ruby-lang
15:49
vinhbachsy has quit [Remote host closed the connection]
15:49
presidentbeef has left #ruby-lang [#ruby-lang]
15:49
vinhbachsy has joined #ruby-lang
15:50
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
15:54
vinhbachsy has quit [Ping timeout: 272 seconds]
15:55
amcoder has quit [Ping timeout: 272 seconds]
15:56
jsullivandigs has joined #ruby-lang
15:56
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:58
kurko_ has joined #ruby-lang
15:59
CaptainJet has quit []
16:03
amcoder has joined #ruby-lang
16:04
seanlinsley has quit [Quit: …]
16:04
snapr has quit [Read error: Connection reset by peer]
16:05
bin7me has quit [Quit: Leaving]
16:08
[_aeris_] is now known as
_aeris_
16:08
amcoder has quit [Ping timeout: 260 seconds]
16:08
solars has quit [Ping timeout: 245 seconds]
16:08
kurko_ has quit [Quit: Computer has gone to sleep.]
16:10
lfox has quit [Ping timeout: 252 seconds]
16:10
mistym has joined #ruby-lang
16:11
senj has joined #ruby-lang
16:11
mistym has quit [Remote host closed the connection]
16:13
paramg has joined #ruby-lang
16:13
patriciomacadden has joined #ruby-lang
16:14
brettweavnet has joined #ruby-lang
16:14
amcoder has joined #ruby-lang
16:14
vlad_starkov has quit [Remote host closed the connection]
16:15
mikecmpbll has joined #ruby-lang
16:17
_aeris_ is now known as [_aeris_]
16:18
atmosx has quit [Quit: Lost in trance]
16:19
brettweavnet has quit [Quit: Bye]
16:20
brettweavnet has joined #ruby-lang
16:21
Pupeno_w has joined #ruby-lang
16:21
ahmedelgabri has joined #ruby-lang
16:22
apeiros has joined #ruby-lang
16:24
GBrawl has joined #ruby-lang
16:25
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:27
patriciomacadden has joined #ruby-lang
16:27
cored has quit [Ping timeout: 252 seconds]
16:28
chouhoulis has joined #ruby-lang
16:28
MrZYX is now known as MrZYX|off
16:29
mistym has joined #ruby-lang
16:29
scampbell has joined #ruby-lang
16:29
vlad_starkov has joined #ruby-lang
16:34
MrZYX|off is now known as MrZYX
16:35
AKASkip has joined #ruby-lang
16:36
arBmind has quit [Quit: Leaving.]
16:37
ivanskie has joined #ruby-lang
16:37
matp has quit [Quit: ZZZzzz…]
16:38
fijimunkii has joined #ruby-lang
16:39
vlad_starkov has quit [Remote host closed the connection]
16:40
matp has joined #ruby-lang
16:42
tbuehlmann has quit [Quit: Konversation terminated!]
16:44
<
darix >
r0bgleeson: i really wonder more if people actually started using http 402 in production
16:46
seanlinsley has joined #ruby-lang
16:47
paramg has quit [Ping timeout: 246 seconds]
16:49
deception has quit [Read error: Connection reset by peer]
16:50
[_aeris_] is now known as
_aeris_
16:51
ahmedelgabri has quit []
16:51
vlad_starkov has joined #ruby-lang
16:52
ahmedelgabri has joined #ruby-lang
16:52
yatish27 has joined #ruby-lang
16:52
heftig has joined #ruby-lang
16:53
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
16:54
ahmedelg_ has joined #ruby-lang
16:54
senj has joined #ruby-lang
16:57
ahmedelgabri has quit [Ping timeout: 252 seconds]
16:58
<
tubbo >
hey guys, is it possible to compile ruby scripts before loading them into your program?
16:58
banhbeongon has quit [Ping timeout: 272 seconds]
16:59
<
workmad3 >
tubbo: not afaik
16:59
<
apeiros >
tubbo: short answer: no, long answer: it's difficult and not generally feasible
17:00
alekst has joined #ruby-lang
17:01
<
r0bgleeson >
tubbo: yeah, short answer is no. you can compile to bytecode, but if you're doing that to obsfucate so you can sell a commercial product, just stop
17:03
dagobah has quit [Remote host closed the connection]
17:03
phansch has quit [Read error: Connection reset by peer]
17:05
CaptainJet has joined #ruby-lang
17:05
phansch has joined #ruby-lang
17:06
elia has quit [Ping timeout: 245 seconds]
17:07
imperator2 has quit [Ping timeout: 252 seconds]
17:09
mistym has quit [Remote host closed the connection]
17:09
tkuchiki has quit [Remote host closed the connection]
17:09
vlad_starkov has quit [Remote host closed the connection]
17:09
tkuchiki has joined #ruby-lang
17:11
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:11
Pupeno_w has quit [Ping timeout: 252 seconds]
17:12
vlad_starkov has joined #ruby-lang
17:14
vlad_starkov has quit [Remote host closed the connection]
17:14
vlad_starkov has joined #ruby-lang
17:14
tkuchiki has quit [Ping timeout: 252 seconds]
17:14
patriciomacadden has joined #ruby-lang
17:14
albertgrala has joined #ruby-lang
17:20
serroft has quit [Quit: Leaving.]
17:20
__butch__ has joined #ruby-lang
17:21
vlad_starkov has quit [Remote host closed the connection]
17:22
saarinen has joined #ruby-lang
17:22
mistym has joined #ruby-lang
17:24
GBrawl has quit [Quit: Computer has gone to sleep.]
17:24
Johz has quit [Ping timeout: 272 seconds]
17:25
ivanskie has joined #ruby-lang
17:30
konr has joined #ruby-lang
17:32
<
konr >
I want to be able to do `x = lambda {|x,y| x+y}; x 1,2`, but I need to do `x.call 1,2` instead. Is there a way to avoid this .call call?
17:33
benlovell has quit [Ping timeout: 245 seconds]
17:36
yatish27 has quit [Remote host closed the connection]
17:37
fijimunkii has quit [Ping timeout: 265 seconds]
17:37
yatish27 has joined #ruby-lang
17:37
Johz has joined #ruby-lang
17:38
RobertBirnie has joined #ruby-lang
17:40
Anonomastos has joined #ruby-lang
17:41
yatish27 has quit [Ping timeout: 248 seconds]
17:42
Lewix has joined #ruby-lang
17:42
Lewix has quit [Changing host]
17:42
Lewix has joined #ruby-lang
17:44
mnngfltg has quit [Remote host closed the connection]
17:44
mistym_ has joined #ruby-lang
17:45
mistym has quit [Ping timeout: 272 seconds]
17:46
laphlaw has joined #ruby-lang
17:47
laphlaw has quit [Read error: Connection reset by peer]
17:47
laphlaw has joined #ruby-lang
17:47
mistym has joined #ruby-lang
17:50
mistym_ has quit [Ping timeout: 272 seconds]
17:55
melter has joined #ruby-lang
17:55
mistym_ has joined #ruby-lang
17:55
enebo has quit [Quit: enebo]
17:56
lupine has joined #ruby-lang
17:56
mistym has quit [Ping timeout: 246 seconds]
17:58
<
workmad3 >
konr: no
17:58
imperator2 has joined #ruby-lang
17:59
<
workmad3 >
konr: but you can do x.(1,2)
17:59
<
workmad3 >
konr: or x[1,2]
18:00
imperator3 has joined #ruby-lang
18:00
<
konr >
thanks, workmad3!
18:01
mistym_ is now known as mistym
18:03
imperator2 has quit [Ping timeout: 252 seconds]
18:03
kotk has quit [Ping timeout: 252 seconds]
18:07
jmaya has joined #ruby-lang
18:08
tbuehlmann has joined #ruby-lang
18:08
laphlaw has left #ruby-lang [#ruby-lang]
18:09
mistym_ has joined #ruby-lang
18:10
mistym has quit [Ping timeout: 272 seconds]
18:10
mistym_ is now known as mistym
18:14
AKASkip has quit [Ping timeout: 252 seconds]
18:15
rahul_j has left #ruby-lang [#ruby-lang]
18:17
<
jtoy >
how would I remove everything before itsbeta1 in this string? I tried with: "/Users/jtoy/sandbox/templates/landing/itsbeta1/assets/css/bootstrap-theme.min.css".gsub(/*itsbeta1/,'')`
18:17
enebo has joined #ruby-lang
18:19
yfeldblum has joined #ruby-lang
18:19
Anonomastos has quit [Quit: Quitte]
18:19
cirenyc has quit [Quit: Leaving...]
18:20
bin7me has joined #ruby-lang
18:20
serroft has joined #ruby-lang
18:21
mistym has quit [Remote host closed the connection]
18:21
mistym has joined #ruby-lang
18:25
serroft has quit [Ping timeout: 252 seconds]
18:27
trollface has joined #ruby-lang
18:28
Paradox has quit [Ping timeout: 240 seconds]
18:32
Squarepy has joined #ruby-lang
18:33
jonahR has joined #ruby-lang
18:33
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:34
mykoweb has quit [Remote host closed the connection]
18:35
patriciomacadden has joined #ruby-lang
18:35
deception has joined #ruby-lang
18:36
<
badeball >
jtoy: on possibility is with regexp: string.gsub(/.*?(?=itsbeta1)/, "")
18:38
d4rkr4i has quit [Ping timeout: 245 seconds]
18:39
workmad3 has quit [Ping timeout: 252 seconds]
18:39
AKASkip has joined #ruby-lang
18:40
cored has joined #ruby-lang
18:40
cored has quit [Changing host]
18:40
cored has joined #ruby-lang
18:41
nigerianceo has quit []
18:43
imperator3 has quit [Ping timeout: 245 seconds]
18:43
daikan has quit [Remote host closed the connection]
18:44
serroft has joined #ruby-lang
18:45
daikan has joined #ruby-lang
18:47
daikan has quit [Remote host closed the connection]
18:47
daikan has joined #ruby-lang
18:47
bin7me has quit [Quit: Leaving]
18:50
jaimef has quit [Excess Flood]
18:51
jaimef has joined #ruby-lang
18:52
momomomomo has joined #ruby-lang
18:54
d4rkr4i has joined #ruby-lang
18:56
cnivolle_ has joined #ruby-lang
18:59
momomomomo has quit [Quit: momomomomo]
19:00
cnivolle has quit [Ping timeout: 272 seconds]
19:00
yfeldblum has quit [Remote host closed the connection]
19:01
yfeldblum has joined #ruby-lang
19:03
yfeldblum has quit [Read error: Connection reset by peer]
19:03
yfeldblu_ has joined #ruby-lang
19:05
sepp2k has joined #ruby-lang
19:06
huma has quit [Ping timeout: 272 seconds]
19:07
nigerianceo has joined #ruby-lang
19:07
ahmedelgabri has joined #ruby-lang
19:10
jstemmer has quit [Remote host closed the connection]
19:10
robmiller has quit [Quit: robmiller]
19:11
ahmedelg_ has quit [Ping timeout: 276 seconds]
19:13
EngierkO has joined #ruby-lang
19:18
ahmedelgabri has quit [Remote host closed the connection]
19:20
cnivolle_ has quit [Remote host closed the connection]
19:20
sepp2k has quit [Read error: Connection reset by peer]
19:21
cnivolle has joined #ruby-lang
19:22
simi has quit [Ping timeout: 272 seconds]
19:22
sepp2k has joined #ruby-lang
19:22
CodeBunny has joined #ruby-lang
19:24
phansch has quit [Quit: Leaving]
19:25
hahuang61 has quit [Ping timeout: 245 seconds]
19:25
toretore has quit [Quit: Leaving]
19:25
cnivolle has quit [Ping timeout: 252 seconds]
19:26
amcoder has quit [Quit: ZZZzzz…]
19:28
vky has joined #ruby-lang
19:30
robmiller has joined #ruby-lang
19:31
solars has joined #ruby-lang
19:32
benanne has joined #ruby-lang
19:33
MrZYX is now known as MrZYX|off
19:33
ahmedelgabri has joined #ruby-lang
19:33
vky has quit [Ping timeout: 246 seconds]
19:34
MrZYX|off is now known as MrZYX
19:34
vlad_starkov has joined #ruby-lang
19:35
vlad_starkov has quit [Read error: Connection reset by peer]
19:35
robmiller has quit [Quit: robmiller]
19:36
vlad_starkov has joined #ruby-lang
19:37
cirenyc has joined #ruby-lang
19:40
ayumin has quit [Remote host closed the connection]
19:41
ayumin has joined #ruby-lang
19:43
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
19:45
tbuehlmann has quit [Remote host closed the connection]
19:45
ayumin has quit [Ping timeout: 265 seconds]
19:46
daikan has quit [Remote host closed the connection]
19:52
momomomomo has joined #ruby-lang
19:54
EngierkO has joined #ruby-lang
19:54
EngierkO has quit [Max SendQ exceeded]
19:54
EngierkO has joined #ruby-lang
19:55
EngierkO has quit [Max SendQ exceeded]
19:55
EngierkO has joined #ruby-lang
19:55
daikan has joined #ruby-lang
19:56
EngierkO has quit [Max SendQ exceeded]
19:56
EngierkO has joined #ruby-lang
19:57
EngierkO has quit [Max SendQ exceeded]
19:57
EngierkO has joined #ruby-lang
19:57
EngierkO has quit [Max SendQ exceeded]
19:58
EngierkO has joined #ruby-lang
19:59
hahuang61 has joined #ruby-lang
20:02
postmodern has joined #ruby-lang
20:03
yfeldblu_ has quit [Remote host closed the connection]
20:05
bradcliffe has joined #ruby-lang
20:06
joast has joined #ruby-lang
20:06
yfeldblum has joined #ruby-lang
20:06
vky has joined #ruby-lang
20:06
benanne has quit [Ping timeout: 246 seconds]
20:07
mistym has quit [Remote host closed the connection]
20:11
ahmedelgabri has quit []
20:14
<
hagabaka >
is there a convenient way to rebuild the extensions of all installed gems? I switched from 32 bit to 64 bit
20:19
benanne has joined #ruby-lang
20:19
<
hagabaka >
ah never mind
20:20
CodeBunny has quit [Read error: Connection reset by peer]
20:26
mistym has joined #ruby-lang
20:27
mistym has quit [Remote host closed the connection]
20:30
CodeBunny has joined #ruby-lang
20:31
mistym has joined #ruby-lang
20:35
towski_ has quit [Quit: Leaving]
20:35
jonahR has quit [Quit: jonahR]
20:35
wudofyr has quit [Remote host closed the connection]
20:38
mehlah has quit [Quit: Leaving...]
20:38
daikan has quit [Remote host closed the connection]
20:39
CoreData has joined #ruby-lang
20:47
<
eam >
I know I can hack autoviviification for multilevel hashes, but there's no way to do it for a hash/array mix, is there? I'm pretty sure there isn't, but I'm wondering if I've overlooked anything
20:47
<
eam >
I think the reason I can't is that [] is used for both hash/array
20:48
<
jtoy >
badeball: awesome,thx
20:49
vlad_starkov has quit [Remote host closed the connection]
20:49
brettweavnet has quit [Quit: Bye]
20:50
<
MrZYX >
eam: I find it hard to imagine where that would be useful or how that even be used, mind elaborating a bit more?
20:51
<
eam >
contrived example: line =~ /(\w+)(\d+)(.)(.)/; thing[$1][$2][$3][$4] += 1
20:51
brettweavnet has joined #ruby-lang
20:51
<
eam >
where it's hash / array / hash / hash
20:52
mehlah has joined #ruby-lang
20:52
<
eam >
all hash is doable
20:53
<
MrZYX >
as a human I can't see from the code where it would be an array and where it would be a hash
20:53
<
MrZYX >
how should ruby know
20:53
<
eam >
that's what I mean, I think hash/array using the same syntax makes it impossible
20:54
<
eam >
vs (for example in perl) $thing->{$1}[$2]{$3}{$4}
20:54
<
eam >
some languages differentiate the index operator, some don't
20:56
<
eam >
I guess I could define my own methods though
20:57
robmiller has joined #ruby-lang
20:58
Lewix has quit [Remote host closed the connection]
20:58
Lewix has joined #ruby-lang
20:58
|jemc| has joined #ruby-lang
20:59
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
20:59
yfeldblum has quit [Remote host closed the connection]
20:59
amcoder has joined #ruby-lang
21:01
phansch has joined #ruby-lang
21:03
yalue has quit [Quit: Leaving]
21:03
Lewix has quit [Ping timeout: 272 seconds]
21:06
mistym has quit [Remote host closed the connection]
21:07
<
whitequark >
eam: well, you could create an array for integer indexes, and a hash for anything else
21:08
<
whitequark >
but really, autovivification is an antipattern.
21:09
<
yorickpeterse >
I am just now heading to home
21:09
<
yorickpeterse >
it's 22:10
21:09
<
yorickpeterse >
"fucking mongo" etc
21:09
daikan has joined #ruby-lang
21:14
daikan has quit [Ping timeout: 272 seconds]
21:18
mistym has joined #ruby-lang
21:20
<
eam >
well I certainly don't agree with that :)
21:21
<
apeiros >
eam: do you control creation of the arrays? if so, you could subclass or delegate the arrays to one which autovivifies like Hash
21:22
prc has joined #ruby-lang
21:22
<
apeiros >
alternatively use #fetch instead of #[] and provide a NullHash/NullArray as default value
21:25
amcoder has quit [Quit: ZZZzzz…]
21:26
<
eam >
apeiros: good idea, playing around with that now (not for serious though, this is off the reservation enough that I don't think I'd use it)
21:28
amcoder has joined #ruby-lang
21:28
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:28
vlad_starkov has joined #ruby-lang
21:31
thmzlt has joined #ruby-lang
21:31
MrZYX is now known as MrZYX|off
21:31
phansch has quit [Quit: Leaving]
21:34
MrZYX|off is now known as MrZYX
21:36
wudofyr has joined #ruby-lang
21:36
wudofyr has quit [Remote host closed the connection]
21:36
dominikh has left #ruby-lang ["WeeChat 0.4.1"]
21:36
wudofyr has joined #ruby-lang
21:38
wudofyr has quit [Remote host closed the connection]
21:38
yfeldblum has joined #ruby-lang
21:38
mykoweb has joined #ruby-lang
21:41
mistym_ has joined #ruby-lang
21:42
mistym has quit [Ping timeout: 245 seconds]
21:42
lele has quit [Ping timeout: 252 seconds]
21:43
d4rkr4i has quit [Quit: Leaving.]
21:44
cid404 has quit [Quit: cid404]
21:45
lele has joined #ruby-lang
21:45
vlad_starkov has quit [Remote host closed the connection]
21:45
mykoweb_ has joined #ruby-lang
21:47
bradcliffe has joined #ruby-lang
21:47
scampbell has quit [Quit: Leaving]
21:49
mykoweb has quit [Ping timeout: 276 seconds]
21:49
albertgrala has quit [Quit: Leaving]
21:51
cads has joined #ruby-lang
21:52
arBmind has joined #ruby-lang
21:52
mistym_ is now known as mistym
21:52
hinbody has joined #ruby-lang
21:53
tuttinator has joined #ruby-lang
21:54
Squarepy has quit [Quit: Leaving]
21:55
ozkan has joined #ruby-lang
21:55
amcoder has quit [Quit: ZZZzzz…]
21:55
jonahR has joined #ruby-lang
21:57
nigerianceo has quit []
21:58
lcdhoffman has joined #ruby-lang
22:01
jaimef has quit [Excess Flood]
22:01
MrZYX is now known as MrZYX|off
22:01
jaimef has joined #ruby-lang
22:02
DEac-_ has quit [Read error: Connection reset by peer]
22:03
amcoder has joined #ruby-lang
22:04
Dernise has quit [Ping timeout: 272 seconds]
22:05
DEac- has joined #ruby-lang
22:07
vlad_starkov has joined #ruby-lang
22:08
kartouch has quit [Ping timeout: 252 seconds]
22:08
deception has quit [Quit: Goodbye]
22:09
guns has joined #ruby-lang
22:10
daikan has joined #ruby-lang
22:10
vlad_starkov has quit [Remote host closed the connection]
22:11
kartouch has joined #ruby-lang
22:11
daikan has quit [Remote host closed the connection]
22:12
daikan has joined #ruby-lang
22:13
vky has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0a2/20140110004002]]
22:15
jameswatling has joined #ruby-lang
22:16
fijimunkii has joined #ruby-lang
22:20
guns has quit [Read error: Connection reset by peer]
22:21
cirenyc has quit [Quit: Leaving...]
22:23
diegoviola has joined #ruby-lang
22:25
nigerianceo has joined #ruby-lang
22:26
amcoder has quit [Quit: ZZZzzz…]
22:27
arBmind has quit [Ping timeout: 245 seconds]
22:28
nigerianceo has quit [Client Quit]
22:28
senj has joined #ruby-lang
22:28
deens has joined #ruby-lang
22:30
breakingthings has quit []
22:30
kirin` has quit [Ping timeout: 265 seconds]
22:31
kirin` has joined #ruby-lang
22:31
smashwilson has quit [Quit: Leaving]
22:34
symm- has joined #ruby-lang
22:37
snarfmason has joined #ruby-lang
22:38
CodeBunny has joined #ruby-lang
22:39
amerine has quit [Quit: Computer has gone to sleep.]
22:39
CoreData has quit [Quit: CoreData]
22:40
woollyams has joined #ruby-lang
22:41
deens has quit [Remote host closed the connection]
22:42
amerine has joined #ruby-lang
22:44
mbj has joined #ruby-lang
22:45
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
22:46
MichD is now known as michd
22:46
woollyams has quit [Ping timeout: 252 seconds]
22:47
woollyams has joined #ruby-lang
22:48
benanne has quit [Quit: kbai]
22:48
enebo has quit [Quit: enebo]
22:52
tuttinator has joined #ruby-lang
22:54
lcdhoffman has quit [Quit: lcdhoffman]
22:55
VTLob has quit [Quit: VTLob]
22:56
jonahR has quit [Quit: jonahR]
22:59
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:59
bradcliffe has joined #ruby-lang
22:59
yfeldblum has quit [Remote host closed the connection]
23:00
r0bgleeson has quit [Ping timeout: 252 seconds]
23:00
yfeldblum has joined #ruby-lang
23:00
yfeldblum has quit [Remote host closed the connection]
23:03
chouhoulis has quit [Ping timeout: 272 seconds]
23:04
yfeldblum has joined #ruby-lang
23:06
chouhoulis has joined #ruby-lang
23:07
jsullivandigs has quit [Remote host closed the connection]
23:07
bjh13_ has quit [Quit: leaving]
23:07
fijimunkii has quit [Read error: Connection reset by peer]
23:08
fijimunkii has joined #ruby-lang
23:08
wallerdev has joined #ruby-lang
23:09
r0bgleeson has joined #ruby-lang
23:11
chouhoulis has quit [Remote host closed the connection]
23:12
chouhoulis has joined #ruby-lang
23:12
pbjorklund has joined #ruby-lang
23:13
soahccc_ has joined #ruby-lang
23:13
drakkhen_ has joined #ruby-lang
23:13
_aeris has joined #ruby-lang
23:14
diegovio1 has joined #ruby-lang
23:14
Johz has quit [Quit: Leaving]
23:14
konr_ has joined #ruby-lang
23:15
jsullivandigs has joined #ruby-lang
23:16
kitallis-cloud_ has joined #ruby-lang
23:16
vmoravec_ has joined #ruby-lang
23:16
serroft has quit [Quit: Leaving.]
23:17
marr has quit [Ping timeout: 245 seconds]
23:17
diegoviola has quit [Ping timeout: 245 seconds]
23:17
melter has quit [Ping timeout: 245 seconds]
23:17
pbjorklund_ has quit [Ping timeout: 245 seconds]
23:17
_aeris_ has quit [Ping timeout: 245 seconds]
23:17
drakkhen has quit [Ping timeout: 245 seconds]
23:17
soahccc has quit [Ping timeout: 245 seconds]
23:17
jds has quit [Ping timeout: 245 seconds]
23:17
go|dfish has quit [Ping timeout: 245 seconds]
23:17
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:17
bradcliffe has joined #ruby-lang
23:17
TheMoonMaster has quit [Ping timeout: 245 seconds]
23:17
trollface has quit [Ping timeout: 245 seconds]
23:17
vmoravec has quit [Ping timeout: 245 seconds]
23:17
konr has quit [Ping timeout: 245 seconds]
23:17
drbrain has quit [Ping timeout: 245 seconds]
23:17
kitallis-cloud has quit [Ping timeout: 245 seconds]
23:17
mark| has quit [Ping timeout: 245 seconds]
23:17
jds has joined #ruby-lang
23:17
dacamp has quit [Ping timeout: 245 seconds]
23:17
seanhagen has quit [Ping timeout: 245 seconds]
23:17
jds has quit [Changing host]
23:17
jds has joined #ruby-lang
23:17
nhmood has quit [Ping timeout: 245 seconds]
23:17
TheMoonMaster_ has joined #ruby-lang
23:17
drbrain has joined #ruby-lang
23:17
dacamp has joined #ruby-lang
23:18
melter has joined #ruby-lang
23:18
go|dfish has joined #ruby-lang
23:18
mark| has joined #ruby-lang
23:18
nhmood has joined #ruby-lang
23:18
Paradox has joined #ruby-lang
23:18
konr_ is now known as konr
23:19
havenwood has joined #ruby-lang
23:20
Onixs has quit [Ping timeout: 272 seconds]
23:21
Rubennn_ has quit [Ping timeout: 248 seconds]
23:22
ayumin has joined #ruby-lang
23:22
Rubennn has joined #ruby-lang
23:23
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
23:24
mdub has joined #ruby-lang
23:25
seanhagen has joined #ruby-lang
23:25
AKASkip has quit [Ping timeout: 246 seconds]
23:26
woollyams has quit [Ping timeout: 252 seconds]
23:26
marr has joined #ruby-lang
23:27
ayumin has quit [Ping timeout: 272 seconds]
23:28
ozkan has quit [Quit: Leaving...]
23:29
__butch__ has quit [Quit: Leaving.]
23:30
Thanatermesis has quit [Read error: Operation timed out]
23:31
_aeris has left #ruby-lang [#ruby-lang]
23:31
_aeris_ has joined #ruby-lang
23:31
momomomomo has quit [Quit: momomomomo]
23:33
TheMoonMaster_ is now known as TheMoonMaster
23:33
_aeris_ is now known as [_aeris_]
23:36
workmad3 has joined #ruby-lang
23:37
soahccc_ has left #ruby-lang [#ruby-lang]
23:37
soahccc has joined #ruby-lang
23:38
deens has joined #ruby-lang
23:39
mbj has quit [Quit: leaving]
23:41
postmodern has quit [Quit: Leaving]
23:42
postmodern has joined #ruby-lang
23:47
caral has joined #ruby-lang
23:48
caral has quit [Client Quit]
23:48
brettweavnet has quit [Quit: Bye]
23:48
caral has joined #ruby-lang
23:50
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:50
fleish has joined #ruby-lang
23:51
solars has quit [Read error: Operation timed out]
23:52
rob_ has joined #ruby-lang
23:52
<
fleish >
hi all, I have a ruby script that runs this: return JSON.parse(IO.popen("cd ~/; knife search node #{search_string} --format json").read)["rows"] but when I run it get ERROR: ArgumentError: Type must be a string or a symbol! ... /usr/lib/ruby/vendor_ruby/json/common.rb:148:in `initialize': A JSON text must at least contain two octets! (JSON::ParserError)
23:53
<
zenspider >
fleish: sounds like it isn't actually returning json
23:54
<
fleish >
zenspider: how could I confirm that?
23:54
patriciomacadden has joined #ruby-lang
23:54
<
zenspider >
fleish: store it in a local variable. print it out.
23:54
<
fleish >
zenspider: I've run the command myself and while it returns 0 rows, it does appear to be json
23:54
<
zenspider >
what does 0 rows look like?
23:55
<
soahccc >
rob_: What are you trying to do? @@ is generally to avoid or you now exactly what you're doing
23:55
<
apeiros >
I'd run the ruby code, not the command
23:55
tom025 has joined #ruby-lang
23:55
<
rob_ >
soahccc: i want to access a variable in an outer class from a nested class
23:55
<
apeiros >
i.e., this part `IO.popen("cd ~/; knife search node #{search_string} --format json").read`
23:55
<
zenspider >
rob_: I disagree that @@cvars are to be avoided... but they do need to be understood
23:55
<
apeiros >
(as zenspider already suggested)
23:56
kurko_ has joined #ruby-lang
23:56
<
zenspider >
and in this code sample, they're not understood
23:56
<
soahccc >
rob_: As you do the stuff inside the class methods you can just use normal @instance_variables and make a getter with attr_reader :instance_variable
23:56
<
rob_ >
i thought maybe because it was a nested class it may have access to the classes class variables
23:56
yfeldblum has quit [Read error: Connection reset by peer]
23:57
<
soahccc >
rob_: This only works though if you have instances of your classes
23:57
<
rob_ >
soahccc: how does my nested class know about its parent?
23:57
yfeldblum has joined #ruby-lang
23:58
<
soahccc >
rob_: Usually you need to pass the reference from your A instance to your B instance. @b = B.new(self)
23:58
<
rob_ >
should i extend the outer class?
23:58
<
rob_ >
s/should/could/