00:00
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
00:01
kavanagh has quit [Quit: That's all folks!]
00:02
skade has quit [Quit: Computer has gone to sleep.]
00:03
<
al2o3-cr >
and i thought i talked nonsense
00:03
crystal77 has joined #ruby
00:04
blackmes1 has quit [Ping timeout: 260 seconds]
00:05
mozzarel1 is now known as mozzarella
00:07
jhack has joined #ruby
00:08
<
al2o3-cr >
it'd prolly warrant a hack, just to justify shit
00:10
ElFerna has joined #ruby
00:10
xall has joined #ruby
00:14
xaxisx has quit [Ping timeout: 252 seconds]
00:15
xall has quit [Ping timeout: 250 seconds]
00:16
dc4 has quit [Ping timeout: 250 seconds]
00:16
ullu_ has quit [Ping timeout: 250 seconds]
00:16
r_rios_ has joined #ruby
00:17
rcvalle has quit [Quit: rcvalle]
00:17
GodFather has joined #ruby
00:18
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
00:18
hxegon is now known as hxegon_afk
00:19
Madplatypus has quit [Quit: Connection closed for inactivity]
00:21
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
00:21
ur5us has quit [Remote host closed the connection]
00:22
zeroDi has quit [Quit: WeeChat 1.5]
00:23
ur5us has joined #ruby
00:25
postmodern has quit [Quit: Leaving]
00:25
yqt has quit [Ping timeout: 260 seconds]
00:27
freerobby has joined #ruby
00:28
GodFather has quit [Remote host closed the connection]
00:28
whathappens has quit [Remote host closed the connection]
00:28
rhllor has quit [Quit: rhllor]
00:29
marr has quit [Ping timeout: 246 seconds]
00:30
GodFather has joined #ruby
00:30
pontiki has joined #ruby
00:31
jenrzzz has quit [Ping timeout: 272 seconds]
00:31
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
00:31
dc4 has joined #ruby
00:32
mtkd has quit [Ping timeout: 252 seconds]
00:33
solocshaw has joined #ruby
00:34
GodFather has quit [Read error: Connection reset by peer]
00:34
GodFather has joined #ruby
00:34
mtkd has joined #ruby
00:35
GodFather has quit [Read error: Connection reset by peer]
00:37
GodFather has joined #ruby
00:39
shakes has joined #ruby
00:39
agentmeerkat has joined #ruby
00:39
jenrzzz has joined #ruby
00:40
nankyokusei has joined #ruby
00:44
agentmeerkat has quit [Ping timeout: 252 seconds]
00:44
nankyokusei has quit [Ping timeout: 260 seconds]
00:45
<
karapetyan >
hello!
00:45
<
karapetyan >
could you help me understand problem with recursive function?
00:45
ledestin has joined #ruby
00:46
charliesome has joined #ruby
00:47
GodFather has quit [Quit: Ex-Chat]
00:48
GodFather has joined #ruby
00:48
eichenwald has joined #ruby
00:48
ahmetkapikiran has quit [Quit: ahmetkapikiran]
00:49
<
shevy >
put the code on a pastie?
00:50
<
karapetyan >
puts shows correct value. but why 4th string return nil?
00:50
poguez_ has quit [Quit: Connection closed for inactivity]
00:50
bilal80 has quit [Quit: bilal80]
00:51
Mon_Ouie has joined #ruby
00:51
jhack has quit [Quit: jhack]
00:51
<
karapetyan >
oh, actually i don't need increment on 6.th line
00:51
harfangk has joined #ruby
00:53
swills has joined #ruby
00:53
aaeron has joined #ruby
00:55
macsteps has quit [Remote host closed the connection]
00:56
<
karapetyan >
any help?)
00:56
shakes has quit [Quit: Leaving]
00:57
jhack has joined #ruby
00:59
ur5us has quit [Remote host closed the connection]
01:00
blackmes1 has joined #ruby
01:00
nadir has joined #ruby
01:01
LoneHerm_ has joined #ruby
01:02
ekinmur has joined #ruby
01:02
jhack has quit [Quit: jhack]
01:03
thatsnotjack has joined #ruby
01:03
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:04
roamingdog has quit [Remote host closed the connection]
01:05
blackmes1 has quit [Ping timeout: 260 seconds]
01:05
aaeron has quit [Quit: aaeron]
01:05
ekinmur has quit [Client Quit]
01:08
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:09
thatsnotjack has quit [Ping timeout: 272 seconds]
01:09
GodFather has quit [Remote host closed the connection]
01:10
GodFather has joined #ruby
01:11
hahuang61 has joined #ruby
01:12
pilne has left #ruby ["Leaving!"]
01:12
Vile` has quit [Ping timeout: 276 seconds]
01:15
whathapp_ has joined #ruby
01:15
whathapp_ has quit [Write error: Connection reset by peer]
01:15
solocshaw has quit [Ping timeout: 250 seconds]
01:15
whathappens has joined #ruby
01:16
daniel has joined #ruby
01:16
hahuang61 has quit [Ping timeout: 272 seconds]
01:16
<
shevy >
I am not sure what you want to do
01:16
<
shevy >
can you do it simpler
01:17
<
shevy >
input -> desired output
01:17
daniel is now known as Guest93521
01:17
dennisvennink has joined #ruby
01:18
neo_ has quit [Remote host closed the connection]
01:18
neo_ has joined #ruby
01:19
neo_ has quit [Remote host closed the connection]
01:19
neo_ has joined #ruby
01:22
gato has joined #ruby
01:23
gato has quit [Client Quit]
01:24
LuckyABA has joined #ruby
01:25
rkazak has joined #ruby
01:25
solocshaw has joined #ruby
01:26
agentmeerkat has joined #ruby
01:28
<
rapha >
good morning
01:28
<
rapha >
(well at least here it's 4 in the morning and the neighbours are fighting too loudly for me to be able to sleep)
01:28
<
rapha >
and since it's also the time for cronjobs to run...
01:30
<
rapha >
i'm trying to usw a couple of rake tasks with cronic (
http://habilis.net/cronic/) but as stuff like "Loading application" is written to STDERR, an email still gets sent. Is there any way to have it output things to stdout instead?"
01:31
<
adam12 >
cronic command 2>&1
01:32
Xiti has joined #ruby
01:32
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:32
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
01:34
harfangk has quit [Quit: harfangk]
01:35
FastJack has joined #ruby
01:36
dennisvennink has joined #ruby
01:36
amcoder has joined #ruby
01:36
cb- has joined #ruby
01:36
Jello_Raptor has joined #ruby
01:36
khelair has joined #ruby
01:36
wnd has joined #ruby
01:36
DEac- has joined #ruby
01:36
KillerFox has joined #ruby
01:36
JeanCarloMachado has joined #ruby
01:36
lucas has joined #ruby
01:36
DanKnox_ has joined #ruby
01:36
thoraxe has joined #ruby
01:36
joast has joined #ruby
01:36
callumacrae has joined #ruby
01:36
Antiarc has joined #ruby
01:36
kith has joined #ruby
01:36
webhat has joined #ruby
01:36
tw1sted has joined #ruby
01:37
forgot has joined #ruby
01:37
hypnosb has joined #ruby
01:37
mame3 has joined #ruby
01:37
r_rios_ has quit [Quit: FUIR]
01:37
callumacrae has quit [Max SendQ exceeded]
01:37
`tim` has joined #ruby
01:39
JesseH has joined #ruby
01:40
harfangk has joined #ruby
01:41
ullu_ has joined #ruby
01:41
callumacrae has joined #ruby
01:43
solocshaw has quit [Ping timeout: 276 seconds]
01:44
d0nn1e has quit [Ping timeout: 250 seconds]
01:45
ur5us has joined #ruby
01:47
d0nn1e has joined #ruby
01:47
AndrewIsHere has joined #ruby
01:49
Akuma has quit [Quit: So long sukkas!]
01:50
solocshaw has joined #ruby
01:51
douglascorrea has quit []
01:53
AndrewIsHere has quit [Ping timeout: 250 seconds]
01:53
dc4 has quit [Ping timeout: 272 seconds]
01:54
solocshaw has quit [Ping timeout: 250 seconds]
01:55
ekinmur has joined #ruby
01:55
jaguarmagenta has joined #ruby
01:55
mattwashere has joined #ruby
01:57
LoneHerm_ has quit [Remote host closed the connection]
01:57
weaksauce has joined #ruby
01:57
rbennacer has joined #ruby
01:58
cd-rum has joined #ruby
01:59
neo_ has quit [Remote host closed the connection]
01:59
jaguarmagenta has quit [Ping timeout: 240 seconds]
01:59
jenrzzz has quit [Ping timeout: 250 seconds]
01:59
neo_ has joined #ruby
02:01
blackmes1 has joined #ruby
02:01
ramfjord has quit [Ping timeout: 260 seconds]
02:01
Robtop__ has quit [Read error: Connection reset by peer]
02:02
Robtop__ has joined #ruby
02:02
ramfjord has joined #ruby
02:03
neo_ has quit [Ping timeout: 250 seconds]
02:04
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:05
aryaching has quit [Remote host closed the connection]
02:05
solocshaw has joined #ruby
02:06
blackmes1 has quit [Ping timeout: 246 seconds]
02:12
roamingdog has joined #ruby
02:13
chouhoulis has joined #ruby
02:13
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
02:13
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:15
axsuul has joined #ruby
02:15
Yzguy has joined #ruby
02:15
whathappens has quit [Remote host closed the connection]
02:16
eichenwald has quit [Quit: eichenwald]
02:16
whathappens has joined #ruby
02:17
solocshaw has quit [Quit: solocshaw]
02:18
User458764 has joined #ruby
02:20
ramfjord has quit [Ping timeout: 250 seconds]
02:22
ramfjord has joined #ruby
02:22
diegoviola has quit [Quit: WeeChat 1.5]
02:24
kriskropd has joined #ruby
02:25
macsteps has joined #ruby
02:29
pontiki has quit [Quit: Lost terminal]
02:30
ramfjord has quit [Ping timeout: 276 seconds]
02:30
karapetyan has quit [Remote host closed the connection]
02:30
macsteps has quit [Ping timeout: 258 seconds]
02:33
chouhoulis has quit [Remote host closed the connection]
02:36
rkazak has quit [Quit: Sleep.....ing....]
02:36
GodFather has quit [Ping timeout: 250 seconds]
02:38
chouhoulis has joined #ruby
02:39
howdoi has quit [Quit: Connection closed for inactivity]
02:39
banjara has joined #ruby
02:41
nankyokusei has joined #ruby
02:42
banjara1 has joined #ruby
02:43
LoneHermit has joined #ruby
02:43
arescorpio has joined #ruby
02:44
banjara has quit [Ping timeout: 250 seconds]
02:45
nankyokusei has quit [Ping timeout: 240 seconds]
02:47
chouhoulis has quit [Remote host closed the connection]
02:47
Yzguy has quit [Quit: Zzz...]
02:48
chouhoulis has joined #ruby
02:51
ullu_ has quit [Ping timeout: 276 seconds]
02:52
Wsewolod has joined #ruby
02:52
tummy has joined #ruby
02:53
banjara1 has quit [Quit: Leaving.]
02:53
pwnd_nsfw` has joined #ruby
02:54
Mon_Ouie has quit [Ping timeout: 240 seconds]
02:57
Robtop__ has quit [Ping timeout: 250 seconds]
02:59
neo_ has joined #ruby
02:59
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:02
blackmes1 has joined #ruby
03:05
Rodya_ has joined #ruby
03:05
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
03:06
shinnya has quit [Ping timeout: 276 seconds]
03:06
braincras has quit [Quit: bye bye]
03:07
Tempesta_ has joined #ruby
03:07
blackmes1 has quit [Ping timeout: 258 seconds]
03:07
cd-rum has joined #ruby
03:08
Tempesta_ has quit [Client Quit]
03:08
Cyrus has joined #ruby
03:09
`tim` has joined #ruby
03:10
chartractegg has joined #ruby
03:11
Tempesta has quit [Ping timeout: 264 seconds]
03:12
hahuang61 has joined #ruby
03:14
axsuul has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:14
freerobby has quit [Quit: Leaving.]
03:14
Tempesta has joined #ruby
03:14
tummy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
03:15
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
03:16
Sero has quit [Remote host closed the connection]
03:16
charliesome has joined #ruby
03:16
rbennacer has quit [Remote host closed the connection]
03:17
hahuang61 has quit [Ping timeout: 258 seconds]
03:17
gix has quit [Ping timeout: 240 seconds]
03:18
rbennacer has joined #ruby
03:19
harfangk has quit [Quit: harfangk]
03:19
braincrash has joined #ruby
03:19
braincrash is now known as braincras
03:22
chartractegg has quit [Quit: chartractegg]
03:22
gix has joined #ruby
03:23
dennisvennink has joined #ruby
03:24
pawnbox has quit [Ping timeout: 258 seconds]
03:26
mistermocha has joined #ruby
03:28
mistermocha has quit [Remote host closed the connection]
03:28
alfiemax has quit [Ping timeout: 260 seconds]
03:30
unshadow has quit [Read error: Connection reset by peer]
03:30
unshadow_ has joined #ruby
03:30
karapetyan has joined #ruby
03:33
mattwashere has quit []
03:33
arnonhongklay has quit [Remote host closed the connection]
03:34
tummy has joined #ruby
03:34
jgt has quit [Ping timeout: 272 seconds]
03:35
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
03:44
nettoweb has joined #ruby
03:45
AndrewIsHere has joined #ruby
03:48
Devalo has joined #ruby
03:48
nettoweb has quit [Client Quit]
03:50
AndrewIsHere has quit [Ping timeout: 250 seconds]
03:50
rbennacer has quit [Remote host closed the connection]
03:50
Yzguy has joined #ruby
03:53
Devalo has quit [Ping timeout: 276 seconds]
03:55
ReK2GnULinuX has quit [Ping timeout: 240 seconds]
03:55
ReK2 has joined #ruby
03:55
ReK2 has quit [Changing host]
03:55
ReK2 has joined #ruby
03:55
jaguarmagenta has joined #ruby
03:59
LoneHermit has quit [Remote host closed the connection]
03:59
skweek has joined #ruby
03:59
LoneHermit has joined #ruby
04:00
jaguarmagenta has quit [Ping timeout: 244 seconds]
04:00
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
04:01
exadeci has quit [Quit: Connection closed for inactivity]
04:03
ElFerna has quit [Ping timeout: 264 seconds]
04:03
blackmes1 has joined #ruby
04:04
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:07
ramfjord has joined #ruby
04:08
Rodya_ has quit [Read error: Connection reset by peer]
04:09
Rodya_ has joined #ruby
04:09
blackmes1 has quit [Ping timeout: 276 seconds]
04:09
kareeoleez has joined #ruby
04:12
mistermocha has joined #ruby
04:12
arnonhongklay has joined #ruby
04:13
jaguarmagenta has joined #ruby
04:13
alfiemax has joined #ruby
04:13
naftilos76 has joined #ruby
04:14
naftilos76 has quit [Max SendQ exceeded]
04:14
naftilos76 has joined #ruby
04:15
arescorpio has quit [Quit: Leaving.]
04:17
ramfjord has quit [Ping timeout: 276 seconds]
04:18
roamingdog has quit [Remote host closed the connection]
04:18
ramfjord has joined #ruby
04:18
minimalism has joined #ruby
04:18
whathappens has quit [Quit: Leaving...]
04:18
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
04:19
duncannz has joined #ruby
04:19
duncannz has quit [Max SendQ exceeded]
04:19
mtkd has quit [Ping timeout: 252 seconds]
04:19
craigp has quit [Ping timeout: 244 seconds]
04:19
duncannz has joined #ruby
04:24
leea has joined #ruby
04:25
rkazak has joined #ruby
04:26
pawnbox has joined #ruby
04:26
wigust has quit [Ping timeout: 252 seconds]
04:26
leea has quit [Client Quit]
04:26
rikai has quit [Quit: No Ping reply in 180 seconds.]
04:28
rikai has joined #ruby
04:28
roamingdog has joined #ruby
04:30
ICantCook has quit [Ping timeout: 276 seconds]
04:30
davedev24 has quit [Remote host closed the connection]
04:31
roamingdog has quit [Read error: Connection reset by peer]
04:31
ICantCook has joined #ruby
04:31
roamingdog has joined #ruby
04:32
rikai has quit [Client Quit]
04:32
_RG has joined #ruby
04:32
_RG has quit [Client Quit]
04:33
frustrum has joined #ruby
04:33
neo_ has quit [Remote host closed the connection]
04:33
rkazak has quit [Ping timeout: 276 seconds]
04:33
neo_ has joined #ruby
04:34
frustrum has quit [Client Quit]
04:34
ICantCook has quit [Read error: Connection timed out]
04:34
rikai has joined #ruby
04:34
ICantCook has joined #ruby
04:36
ramfjord has quit [Ping timeout: 260 seconds]
04:36
Yzguy has quit [Quit: Cya]
04:36
neo_ has quit [Remote host closed the connection]
04:36
neo_ has joined #ruby
04:37
Devalo has joined #ruby
04:37
giz|work|2 has joined #ruby
04:37
ICantCook has quit [Client Quit]
04:38
phrozen77 has joined #ruby
04:41
cd-rum has joined #ruby
04:41
nankyokusei has joined #ruby
04:42
hahuang61 has joined #ruby
04:43
mrodrigues has joined #ruby
04:46
nankyokusei has quit [Ping timeout: 258 seconds]
04:46
ullu_ has joined #ruby
04:47
Devalo has quit [Remote host closed the connection]
04:47
hahuang61 has quit [Ping timeout: 250 seconds]
04:48
queequeg2 has joined #ruby
04:49
queequeg1 has quit [Ping timeout: 264 seconds]
04:50
floatingpoint has joined #ruby
04:51
mrodrigues has quit [Quit: leaving]
04:51
ullu_ has quit [Ping timeout: 246 seconds]
04:51
mrodrigues has joined #ruby
04:52
giz|work|2 has quit [Ping timeout: 276 seconds]
04:52
axsuul has joined #ruby
04:53
tummy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
04:53
arnonhongklay has quit [Remote host closed the connection]
04:54
axsuul has quit [Max SendQ exceeded]
04:54
axsuul has joined #ruby
04:54
neo_ has quit [Remote host closed the connection]
04:55
cd-rum has quit [Ping timeout: 264 seconds]
04:55
neo_ has joined #ruby
04:55
LoneHermit has quit [Remote host closed the connection]
04:57
jackjackdripper has joined #ruby
04:57
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
04:59
neo_ has quit [Ping timeout: 250 seconds]
05:00
Skuzzy has joined #ruby
05:00
<
Skuzzy >
Hey fellas how do I write an if statement in ruby?
05:01
<
alfiemax >
Skuzzy, heard of google ??
05:01
<
Skuzzy >
wow alfiemax please review the code of conduct before spewing your garbage here
05:02
kareeoleez has quit [Remote host closed the connection]
05:02
<
Skuzzy >
how do I wriote an if statemnt?
05:02
harfangk has joined #ruby
05:03
cd-rum has joined #ruby
05:03
SilverKey has joined #ruby
05:03
<
alfiemax >
Skuzzy, did you?
05:03
<
Skuzzy >
I did, did you?
05:03
<
alfiemax >
so did you google?
05:04
tummy has joined #ruby
05:04
GinoManWorks has joined #ruby
05:04
<
alfiemax >
did you check rubydocs?
05:04
<
Skuzzy >
You are so unwelcoming to beginners
05:04
<
alfiemax >
what did you do that you finally had to come here
05:04
<
alfiemax >
nop i'm not
05:04
<
Skuzzy >
How am I supposed to learn in an environment like this
05:04
blackmes1 has joined #ruby
05:04
<
Nilium >
He's also.. trying... to troll #go-nuts
05:04
<
Nilium >
So, just ignore them. Or ban them.
05:04
<
alfiemax >
i'm unwelcome to all who don't put in any effort to even do a google search and expect others to spoon feed you
05:05
neo_ has joined #ruby
05:05
<
Skuzzy >
#go-nuts are a bunch of pansies, they would have answered a question like this, good onto the ruby folks for calling me on my shit
05:05
mrodrigues has quit [Ping timeout: 246 seconds]
05:06
dminuoso has joined #ruby
05:07
GinoManWorks_ has quit [Ping timeout: 276 seconds]
05:07
arnonhongklay has joined #ruby
05:07
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:08
<
alfiemax >
Skuzzy, this is all i can do for any lazy bunch that comes in here and asks questions like this
05:08
<
Nilium >
alfiemax: No, they're a troll, it's OK.
05:09
cd-rum_ has joined #ruby
05:09
blackmes1 has quit [Ping timeout: 276 seconds]
05:09
cd-rum has quit [Ping timeout: 272 seconds]
05:10
JohanTux has joined #ruby
05:10
d0nn1e has quit [Ping timeout: 258 seconds]
05:11
Mon_Ouie has joined #ruby
05:13
ramfjord has joined #ruby
05:14
dminuoso has quit [Ping timeout: 244 seconds]
05:14
Rodya_ has quit [Remote host closed the connection]
05:15
Rodya_ has joined #ruby
05:16
elifoster has joined #ruby
05:17
rkazak has joined #ruby
05:19
axsuul has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:19
Rodya_ has quit [Read error: Connection reset by peer]
05:19
<
shevy >
he has too much time available
05:19
Rodya_ has joined #ruby
05:21
banisterfiend is now known as banisterfiend`
05:21
etehtsea has joined #ruby
05:22
solocshaw has joined #ruby
05:25
chouhoulis has quit [Remote host closed the connection]
05:26
solocshaw has quit [Ping timeout: 244 seconds]
05:27
etehtsea has quit [Quit: Computer has gone to sleep.]
05:29
etehtsea has joined #ruby
05:29
rkazak has quit [Quit: Sleep.....ing....]
05:29
nadir has quit [Quit: Connection closed for inactivity]
05:31
GinoManWorks_ has joined #ruby
05:31
duoi has quit [Ping timeout: 250 seconds]
05:31
davedev24 has joined #ruby
05:32
LoneHerm_ has joined #ruby
05:32
craigp has joined #ruby
05:32
n1x-nz has joined #ruby
05:33
SilverKey has quit [Quit: Halted.]
05:34
GinoManWorks has quit [Ping timeout: 264 seconds]
05:34
duoi has joined #ruby
05:36
last_staff has joined #ruby
05:36
davedev24 has quit [Ping timeout: 250 seconds]
05:38
jaguarmagenta has quit [Remote host closed the connection]
05:40
sauvin has joined #ruby
05:41
hadronzoo has joined #ruby
05:41
etehtsea has quit [Ping timeout: 264 seconds]
05:44
skweek has quit [Ping timeout: 244 seconds]
05:47
GinoManWorks has joined #ruby
05:47
jenrzzz has joined #ruby
05:48
aufi_ has joined #ruby
05:49
kareeoleez has joined #ruby
05:49
GinoManWorks_ has quit [Ping timeout: 240 seconds]
05:51
GinoManWorks_ has joined #ruby
05:51
dminuoso has joined #ruby
05:52
Rodya_ has quit [Quit: Leaving...]
05:52
emiltin has joined #ruby
05:52
raeoks has joined #ruby
05:53
GinoManWorks has quit [Ping timeout: 272 seconds]
05:53
raeoks has quit [Max SendQ exceeded]
05:53
harfangk has quit [Quit: harfangk]
05:53
floatingpoint has quit [Quit: Goodnight]
05:54
etehtsea has joined #ruby
05:54
unshadow_ has quit [Ping timeout: 252 seconds]
05:55
charliesome has joined #ruby
05:56
cd-rum_ has quit [Ping timeout: 260 seconds]
05:56
Hyuk has joined #ruby
05:57
pawnbox has quit [Ping timeout: 276 seconds]
05:57
raeoks has joined #ruby
05:57
djbkd has quit [Remote host closed the connection]
05:58
mistermocha has quit [Remote host closed the connection]
05:58
dc4 has joined #ruby
05:58
User458764 has joined #ruby
05:58
Madplatypus has joined #ruby
05:58
User458764 has quit [Max SendQ exceeded]
05:58
firstdayonthejob has joined #ruby
05:59
User458764 has joined #ruby
06:00
yfeldblum has quit [Remote host closed the connection]
06:02
nankyokusei has joined #ruby
06:04
tummy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
06:04
raeoks has quit [Ping timeout: 276 seconds]
06:04
Hobogrammer has quit [Quit: WeeChat 0.4.2]
06:05
blackmes1 has joined #ruby
06:06
aaeron has joined #ruby
06:06
aaeron_ has joined #ruby
06:07
nankyokusei has quit [Ping timeout: 250 seconds]
06:09
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
06:10
agentmeerkat has quit [Ping timeout: 264 seconds]
06:10
aaeron has quit [Ping timeout: 260 seconds]
06:10
aaeron_ is now known as aaeron
06:10
blackmes1 has quit [Ping timeout: 246 seconds]
06:11
axsuul has joined #ruby
06:12
etehtsea has quit [Ping timeout: 276 seconds]
06:14
burgestrand has joined #ruby
06:15
erlend has quit [Ping timeout: 260 seconds]
06:15
aganov has joined #ruby
06:17
erlend has joined #ruby
06:18
jackjackdripper1 has joined #ruby
06:18
jackjackdripper has quit [Ping timeout: 276 seconds]
06:18
amclain has quit [Quit: Leaving]
06:19
xall has joined #ruby
06:20
craigp has quit [Ping timeout: 258 seconds]
06:21
conta has joined #ruby
06:22
nankyokusei has joined #ruby
06:22
nankyokusei has quit [Remote host closed the connection]
06:22
ur5us has quit [Remote host closed the connection]
06:22
nankyokusei has joined #ruby
06:22
User458764 has joined #ruby
06:22
ur5us has joined #ruby
06:23
nankyokusei has quit [Remote host closed the connection]
06:24
pawnbox has joined #ruby
06:24
dminuoso has quit [Ping timeout: 276 seconds]
06:24
xue has joined #ruby
06:26
aaeron has quit [Ping timeout: 260 seconds]
06:27
dennisvennink has joined #ruby
06:27
mtkd has joined #ruby
06:27
ryez has joined #ruby
06:27
ur5us has quit [Ping timeout: 276 seconds]
06:29
voodoofish4302 has joined #ruby
06:30
voodoofish4301 has quit [Ping timeout: 276 seconds]
06:31
djbkd has joined #ruby
06:31
dminuoso has joined #ruby
06:32
emiltin has quit [Quit: Computer has gone to sleep.]
06:32
etehtsea has joined #ruby
06:32
dionysus69 has joined #ruby
06:33
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
06:34
harfangk has joined #ruby
06:36
tvw has joined #ruby
06:37
djbkd has quit [Ping timeout: 260 seconds]
06:39
blaxter has joined #ruby
06:40
postmodern has joined #ruby
06:40
emilkarl has joined #ruby
06:40
etehtsea has quit [Ping timeout: 250 seconds]
06:41
agit0 has quit [Quit: zzzZZZ….]
06:41
firstdayonthejob has quit [Ping timeout: 246 seconds]
06:43
codecop has joined #ruby
06:43
hahuang61 has joined #ruby
06:43
unshadow has joined #ruby
06:44
chipotle has quit [Ping timeout: 258 seconds]
06:45
User458764 has joined #ruby
06:46
vondruch has joined #ruby
06:47
jenrzzz has quit [Ping timeout: 244 seconds]
06:47
Vile` has joined #ruby
06:48
jenrzzz has joined #ruby
06:48
jenrzzz has quit [Changing host]
06:48
jenrzzz has joined #ruby
06:48
hahuang61 has quit [Ping timeout: 260 seconds]
06:49
DoubleMalt has joined #ruby
06:50
skweek has joined #ruby
06:50
_tpavel has joined #ruby
06:50
djbkd has joined #ruby
06:50
_tpavel has quit [Read error: Connection reset by peer]
06:52
dminuoso has quit [Remote host closed the connection]
06:53
jenrzzz has quit [Ping timeout: 276 seconds]
06:54
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:54
Coldblackice has joined #ruby
06:54
roamingdog has quit [Remote host closed the connection]
06:55
roamingdog has joined #ruby
06:57
skweek has quit [Remote host closed the connection]
06:58
anisha has joined #ruby
06:59
roamingdog has quit [Ping timeout: 240 seconds]
06:59
skweek has joined #ruby
07:00
cd-rum has joined #ruby
07:00
shaman42 has quit [Ping timeout: 260 seconds]
07:01
unshadow has quit [Ping timeout: 246 seconds]
07:02
voodoofish4302 has quit [Ping timeout: 264 seconds]
07:02
voodoofish4301 has joined #ruby
07:02
dminuoso has joined #ruby
07:03
hahuang61 has joined #ruby
07:03
Nahra`` has quit [Remote host closed the connection]
07:05
n1x-nz has quit [Ping timeout: 264 seconds]
07:06
pLaToOn has joined #ruby
07:06
fclausen has quit [Ping timeout: 240 seconds]
07:06
agentmeerkat has joined #ruby
07:07
blackmes1 has joined #ruby
07:07
Wildfyr has joined #ruby
07:07
hahuang61 has quit [Ping timeout: 250 seconds]
07:08
shaman42 has joined #ruby
07:08
Nahra has joined #ruby
07:08
skade has joined #ruby
07:09
blaxter has quit [Quit: foo]
07:10
theRoUS has quit [Ping timeout: 244 seconds]
07:10
abonec has joined #ruby
07:11
nadir has joined #ruby
07:11
blackmes1 has quit [Ping timeout: 240 seconds]
07:11
elifoster has quit [Quit: dormir]
07:12
agentmeerkat has quit [Ping timeout: 260 seconds]
07:12
cd-rum_ has joined #ruby
07:12
cd-rum has quit [Ping timeout: 246 seconds]
07:13
xall has quit [Ping timeout: 258 seconds]
07:15
yfeldblum has joined #ruby
07:15
Vile` has quit [Read error: Connection reset by peer]
07:15
Xeago_ has joined #ruby
07:15
mark_66 has joined #ruby
07:16
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:16
zenspider has joined #ruby
07:17
zenspider has quit [Changing host]
07:17
zenspider has joined #ruby
07:19
blackgoat has quit [Quit: WeeChat 1.5]
07:20
craigp has joined #ruby
07:20
giz|work|2 has joined #ruby
07:23
TheWhip has joined #ruby
07:23
solocshaw has joined #ruby
07:23
araujo_ has joined #ruby
07:24
agit0 has joined #ruby
07:25
araujo has quit [Ping timeout: 272 seconds]
07:26
emiltin has joined #ruby
07:27
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:27
Guest17731 has joined #ruby
07:28
solocshaw has quit [Ping timeout: 244 seconds]
07:28
bkxd has joined #ruby
07:28
Silthias has joined #ruby
07:29
ciampix has joined #ruby
07:29
pLaToOn has quit [Read error: Connection reset by peer]
07:29
araujo_ has quit [Max SendQ exceeded]
07:30
jolamb has joined #ruby
07:31
solars has joined #ruby
07:32
skade has quit [Quit: Computer has gone to sleep.]
07:33
Dimik has joined #ruby
07:34
giz|work|2 has quit [Ping timeout: 264 seconds]
07:34
biberu has joined #ruby
07:39
jaguarmagenta has joined #ruby
07:39
dennisvennink has joined #ruby
07:42
jenrzzz has joined #ruby
07:42
jenrzzz has quit [Changing host]
07:42
jenrzzz has joined #ruby
07:44
jaguarmagenta has quit [Ping timeout: 260 seconds]
07:44
colegatron has quit [Ping timeout: 240 seconds]
07:44
emiltin has quit [Quit: Computer has gone to sleep.]
07:46
harfangk has quit [Quit: harfangk]
07:46
AndrewIsHere has joined #ruby
07:47
multi_io has quit [Ping timeout: 250 seconds]
07:48
multi_io has joined #ruby
07:48
yeticry has quit [Read error: Connection reset by peer]
07:48
jenrzzz has quit [Ping timeout: 264 seconds]
07:48
rann has joined #ruby
07:49
Xeago_ has quit [Ping timeout: 264 seconds]
07:49
ponga has joined #ruby
07:50
Es0teric has quit [Quit: Computer has gone to sleep.]
07:50
ciampix has quit [Ping timeout: 260 seconds]
07:51
AndrewIsHere has quit [Ping timeout: 250 seconds]
07:51
Guest88101 is now known as ndrst
07:53
arnonhongklay has quit [Remote host closed the connection]
07:53
yeticry has joined #ruby
07:54
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:55
<
alfiemax >
maybe someone here can help me with this
07:55
carella has quit [Read error: Connection timed out]
07:55
roamingdog has joined #ruby
07:56
ur5us has joined #ruby
07:56
unshadow has joined #ruby
07:57
carella has joined #ruby
07:57
<
hanmac >
alfiemax: what kind of class is e? Time or DateTime?
07:57
<
alfiemax >
DateTime
07:58
pawnbox has quit [Remote host closed the connection]
07:58
<
hanmac >
hm an idea would be to port it to time first ... (i noticed that Time and DateTime has different outputs)
08:00
roamingdog has quit [Ping timeout: 246 seconds]
08:00
<
alfiemax >
hmm, let me try
08:01
giz|work|2 has joined #ruby
08:01
<
alfiemax >
tried that,
08:01
<
alfiemax >
updateed the gist with the output
08:01
TheWhip has quit [Remote host closed the connection]
08:02
jgt has joined #ruby
08:04
wuyin has quit [Ping timeout: 260 seconds]
08:04
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:06
wuyin has joined #ruby
08:07
emilkarl has joined #ruby
08:08
joonty has joined #ruby
08:08
blackmes1 has joined #ruby
08:08
djbkd has quit [Remote host closed the connection]
08:08
rkazak has joined #ruby
08:08
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
08:09
n1x-nz has joined #ruby
08:10
<
hanmac >
alfiemax: it seems json has no love for Time/Date/DateTime objects and does simply use their to_s method :/
08:10
zeroDi has joined #ruby
08:10
conta has quit [Ping timeout: 244 seconds]
08:10
Coldblackice has quit [Ping timeout: 260 seconds]
08:11
conta has joined #ruby
08:11
mikecmpbll has joined #ruby
08:11
colegatron has joined #ruby
08:11
duncannz has quit [Quit: Leaving]
08:12
ferr1 has joined #ruby
08:13
blackmes1 has quit [Ping timeout: 240 seconds]
08:13
<
j416 >
alfiemax: what is wrong with the first variant?
08:15
giz|work|2 has quit [Ping timeout: 258 seconds]
08:16
dennisvennink has joined #ruby
08:16
Snowy has joined #ruby
08:16
Couch has joined #ruby
08:17
jackjackdripper1 has quit [Quit: Leaving.]
08:18
maloik has quit [Remote host closed the connection]
08:18
maloik has joined #ruby
08:19
rkazak has quit [Quit: Sleep.....ing....]
08:20
unshadow has quit [Quit: leaving]
08:20
giz|work|2 has joined #ruby
08:24
Dimik has quit [Ping timeout: 244 seconds]
08:25
skweek has quit [Remote host closed the connection]
08:26
etehtsea has joined #ruby
08:26
pawnbox has joined #ruby
08:27
dionysus69 has quit [Ping timeout: 240 seconds]
08:27
TheWhip has joined #ruby
08:28
skweek has joined #ruby
08:28
burgestrand has joined #ruby
08:31
marr has joined #ruby
08:31
ciampix has joined #ruby
08:32
alfiemax has quit [Ping timeout: 260 seconds]
08:33
dionysus69 has joined #ruby
08:34
raeoks has joined #ruby
08:35
giz|work|2 has quit [Ping timeout: 276 seconds]
08:35
tomphp has joined #ruby
08:35
haxrbyte_ has quit [Quit: Leaving...]
08:36
arnonhongklay has joined #ruby
08:37
etehtsea has quit [Ping timeout: 240 seconds]
08:37
blackmes1 has joined #ruby
08:40
etehtsea has joined #ruby
08:40
chipotle has joined #ruby
08:41
conta has quit [Remote host closed the connection]
08:41
TomyWork has joined #ruby
08:41
conta has joined #ruby
08:43
ramfjord has quit [Ping timeout: 264 seconds]
08:43
ahmetkapikiran has joined #ruby
08:44
jenrzzz has joined #ruby
08:44
craigp has quit [Ping timeout: 276 seconds]
08:45
craigp has joined #ruby
08:47
ur5us has quit [Remote host closed the connection]
08:48
ullu_ has joined #ruby
08:48
sdothum has joined #ruby
08:49
yeticry has quit [Ping timeout: 246 seconds]
08:50
arch__ has joined #ruby
08:51
jenrzzz has quit [Ping timeout: 252 seconds]
08:51
lxsameer has joined #ruby
08:51
yeticry has joined #ruby
08:53
AndrewIsHere has joined #ruby
08:53
ullu_ has quit [Ping timeout: 260 seconds]
08:54
Xeago_ has joined #ruby
08:56
yitsushi has joined #ruby
08:56
Xeago_ has quit [Remote host closed the connection]
08:57
AndrewIsHere has quit [Ping timeout: 250 seconds]
08:58
psmmr has joined #ruby
09:01
dc4 has quit [Ping timeout: 252 seconds]
09:01
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
09:02
Hyuk has joined #ruby
09:03
yitsushi is now known as yitsushi^away
09:03
etehtsea has quit [Ping timeout: 240 seconds]
09:04
yitsushi^away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
09:05
GodFather has joined #ruby
09:05
giz|work|2 has joined #ruby
09:06
yitsushi has joined #ruby
09:07
etehtsea has joined #ruby
09:07
etehtsea has quit [Client Quit]
09:07
Xeago_ has joined #ruby
09:08
agentmeerkat has joined #ruby
09:09
mdw has joined #ruby
09:09
chipotle has quit [Ping timeout: 250 seconds]
09:10
conta1 has joined #ruby
09:11
mdw_ has joined #ruby
09:11
conta has quit [Ping timeout: 246 seconds]
09:11
conta1 is now known as conta
09:11
mdw_ has quit [Max SendQ exceeded]
09:11
ahmetkapikiran has quit [Quit: ahmetkapikiran]
09:12
mdw_ has joined #ruby
09:12
kfrer has quit [Quit: kfrer]
09:13
dangerousdave has joined #ruby
09:13
agentmeerkat has quit [Ping timeout: 252 seconds]
09:13
mdw has quit [Ping timeout: 240 seconds]
09:15
GodFather has quit [Ping timeout: 250 seconds]
09:16
conta has quit [Ping timeout: 258 seconds]
09:17
conta has joined #ruby
09:19
ahmetkapikiran has joined #ruby
09:19
charliesome has joined #ruby
09:19
User458764 has joined #ruby
09:20
giz|work|2 has quit [Ping timeout: 272 seconds]
09:22
conta has quit [Ping timeout: 260 seconds]
09:22
tvw has joined #ruby
09:23
conta has joined #ruby
09:23
saneax is now known as saneax_AFK
09:23
zeroDi has quit [Quit: WeeChat 1.5]
09:24
skade has joined #ruby
09:25
psmmr has quit [Ping timeout: 276 seconds]
09:26
Silthias has quit [Ping timeout: 260 seconds]
09:26
jenrzzz has joined #ruby
09:28
Silthias has joined #ruby
09:29
axsuul has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
09:29
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
09:29
cd-rum_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
09:30
cd-rum has joined #ruby
09:31
postmodern has quit [Quit: Leaving]
09:32
xcesariox has joined #ruby
09:33
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
09:36
alfiemax has joined #ruby
09:37
n1x-nz has quit [Quit: Computer says no]
09:38
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
09:39
jaguarmagenta has joined #ruby
09:39
conta1 has joined #ruby
09:40
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
09:40
jgt has quit [Ping timeout: 252 seconds]
09:40
solars has quit [Ping timeout: 260 seconds]
09:41
dangerousdave has quit [Ping timeout: 276 seconds]
09:41
charliesome has joined #ruby
09:41
conta has quit [Ping timeout: 260 seconds]
09:41
conta1 is now known as conta
09:42
yitsushi is now known as yitsushi^away
09:42
yitsushi^away is now known as yitsushi
09:44
jaguarmagenta has quit [Ping timeout: 240 seconds]
09:44
Mon_Ouie has quit [Quit: WeeChat 1.5]
09:46
jenrzzz has quit [Ping timeout: 240 seconds]
09:47
Mon_Ouie has joined #ruby
09:48
klaas- has quit [Read error: Connection reset by peer]
09:48
sepp2k has joined #ruby
09:50
<
jokke >
w...t...f...
09:50
<
jokke >
range = "70:B3:D5:FA:40:00".."70:B3:D5:FA:4F:FF"
09:50
<
jokke >
range.include? '70:B3:D5:FA:40:EA'
09:50
<
jokke >
range.begin <= '70:B3:D5:FA:40:EA' && range.end >= '70:B3:D5:FA:40:EA'
09:52
siaw23 has joined #ruby
09:53
<
Mon_Ouie >
Use Range#cover?
09:54
<
Mon_Ouie >
Range#include? works by iterating, not by simply comparing the beginning and the end
09:54
<
Mon_Ouie >
&ri Range#cover?
09:54
<
jokke >
that's super inefficient
09:54
<
jokke >
good to know
09:54
<
Mon_Ouie >
I believe it's only special cased for Numeric
09:57
jaruga___ has joined #ruby
09:58
jaruga___ is now known as jaruga
09:58
User458764 has joined #ruby
09:58
yfeldblum has quit [Remote host closed the connection]
09:58
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
09:59
<
ljarvis >
siaw23: require the file and then include the module, then you'll be able to use the method
09:59
<
siaw23 >
yup did that and all’s fine. thanks :)
10:01
xcesariox has quit [Remote host closed the connection]
10:04
matp has quit [Ping timeout: 240 seconds]
10:07
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
10:08
nhhc has joined #ruby
10:08
platzhirsch has joined #ruby
10:08
pandaant has joined #ruby
10:09
mdw has joined #ruby
10:09
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
10:09
agentmeerkat has joined #ruby
10:10
haxrbyte has joined #ruby
10:11
User458764 has joined #ruby
10:12
mdw_ has quit [Ping timeout: 276 seconds]
10:14
jgt has joined #ruby
10:14
haxrbyte has quit [Client Quit]
10:14
agentmeerkat has quit [Ping timeout: 260 seconds]
10:15
scottj has quit [Quit: leaving]
10:17
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:17
<
Wildfyr >
Uh, what is wrong with my program
10:18
<
dminuoso >
Wildfyr: I don't know.
10:18
<
Wildfyr >
It is a RPN calculator, and all of the operators except division work
10:18
<
dminuoso >
Wildfyr: Can you be more specific than "it does not work" ?
10:19
latemus has joined #ruby
10:19
<
Wildfyr >
from my understanding it should output 2.5 but gives out a 0.4
10:19
<
latemus >
and seven
10:19
siaw23 has quit [Quit: siaw23]
10:20
latemus has left #ruby [#ruby]
10:20
<
ccooke >
Wildfyr: because the order of operations matters for division when it doesn't for addition or multiplication, and you have the operands the wrong way round everywhere
10:21
<
ccooke >
5 / 2 would be 2.5, as expected. 2 / 5 is 0.4
10:21
DenSchub has joined #ruby
10:21
<
Wildfyr >
ccooke: oh ...
10:21
<
Wildfyr >
didn't notice ir
10:22
<
ccooke >
(also, consider replacing the repeated if/end blocks with a single case/when/end
10:22
<
Wildfyr >
ccooke: okay
10:23
<
dminuoso >
Wildfyr: Another minor thing, if you use "rescue" inside a method without a begin, indent the rescue on the same column as "def" and its "end"
10:23
<
dminuoso >
Looks much nicer. :)
10:23
yfeldblum has joined #ruby
10:23
<
Mon_Ouie >
And instead of using shift and insert(0, x) (a.k.a unshift), use push and pop to implement a stack --- inserting/removing at the beginning of an array is going to be more expensive than doing so at the end of the array
10:23
anisha_ has joined #ruby
10:23
saneax_AFK is now known as saneax
10:24
<
Wildfyr >
Mon_Ouie: okay
10:25
<
Wildfyr >
ccooke: noob question, how would i get the correct order
10:26
<
dminuoso >
Wildfyr: a / b - change the order of the operands.
10:26
<
dminuoso >
In chat.
10:26
anisha has quit [Ping timeout: 260 seconds]
10:27
<
ccooke >
Wildfyr: you're using shifts to pull the operands off the stack. If you do those into variables before you process the operand, you can control the order
10:27
<
Wildfyr >
ccooke: okay
10:27
<
ccooke >
as it is, you're always using the top of the stack - the most recent number - first
10:27
chip_ has joined #ruby
10:28
<
ccooke >
so if the stack is [2 3 + 2 /], then the + will see [2 3] as the stack, pull off the 3 first, then the 2, and run 3 + 2.
10:28
<
ccooke >
the / sees a stack like [5 2], pulls off the 2 first, then pulls off the 5
10:29
<
Wildfyr >
ccooke: thanks for the explanation
10:31
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
10:32
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
10:35
karapetyan has quit [Remote host closed the connection]
10:35
toretore has joined #ruby
10:35
karapetyan has joined #ruby
10:36
<
dminuoso >
Anyone here speak Japanese? Got a ruby related paragraph that I would like an accurate translation for.
10:37
dennisvennink has joined #ruby
10:38
ramfjord has joined #ruby
10:39
allcentury has joined #ruby
10:39
Hyuk has quit [Ping timeout: 240 seconds]
10:39
agit0 has quit [Quit: zzzZZZ….]
10:40
yitsushi has joined #ruby
10:41
conta has quit [Ping timeout: 276 seconds]
10:41
complex5852 has joined #ruby
10:43
User458764 has joined #ruby
10:43
ramfjord has quit [Ping timeout: 244 seconds]
10:43
User458764 has quit [Max SendQ exceeded]
10:43
User458764 has joined #ruby
10:44
<
complex5852 >
Got a question about passing a hash to a method (kinda new to language). So let's say I have two strings "a" and "b" and I wanna pass it as foo(a: b), I know there is a .to_sym function but how would you make this as elegant as possible? I tried foo("#{a}: #{b}") but it didn't seem to like that.
10:45
GodFather has joined #ruby
10:45
<
dminuoso >
complex5852: What prevents you from passing them as foo(a: b) ?
10:45
<
complex5852 >
They are in string form natively and a and b are variable
10:45
<
complex5852 >
a wont always be the same
10:46
DenSchub has quit [Ping timeout: 272 seconds]
10:46
<
complex5852 >
(to give you some context, this is in rails where I'm reading a and b from controller params)
10:46
<
dminuoso >
complex5852: { a.to_sym => b }
10:47
<
dminuoso >
Is plain and I do not think it can get more elegant than that.
10:47
<
complex5852 >
Okay, ill go with that, thanks!
10:47
<
dminuoso >
complex5852: There are some other trickery functions especially in Rails, but they are simply oversized for what you are describing.
10:49
charliesome has joined #ruby
10:50
the_drow has joined #ruby
10:50
craigp has quit [Ping timeout: 240 seconds]
10:50
yfeldblum has quit [Ping timeout: 250 seconds]
10:52
mikecmpb_ has joined #ruby
10:55
mikecmpbll has quit [Ping timeout: 240 seconds]
10:55
troulouliou_div2 has joined #ruby
10:56
karapetyan has quit [Remote host closed the connection]
10:56
roamingdog has joined #ruby
10:56
jgt1 has joined #ruby
10:58
jgt has quit [Ping timeout: 264 seconds]
11:00
ciampix has quit [Ping timeout: 260 seconds]
11:01
agit0 has joined #ruby
11:02
roamingdog has quit [Ping timeout: 246 seconds]
11:02
AnoHito has quit [Ping timeout: 264 seconds]
11:02
<
gregf_ >
>> class Foo; def bar(**kwargs); p kwargs;end;end; Foo.new.bar(a: 100); # complex5852 is this what you're trying?
11:03
<
complex5852 >
Well as part of a method but yea basically
11:03
<
gregf_ >
>> class Foo; def bar **kwargs; p kwargs;end;end; a = "foo"; Foo.new.bar(a.to_sym => 100); #oh, prolly this or else
11:04
dminuoso has quit [Ping timeout: 260 seconds]
11:05
jgt1 has quit [Read error: Connection reset by peer]
11:05
Macaveli has joined #ruby
11:05
AnoHito has joined #ruby
11:06
DenSchub has joined #ruby
11:06
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
11:07
DenSchub has quit [Client Quit]
11:08
nando294021 has quit [Quit: Lost terminal]
11:08
Vingador has joined #ruby
11:08
Wildfyr has quit [Ping timeout: 258 seconds]
11:09
senayar has joined #ruby
11:09
senayar has quit [Changing host]
11:09
senayar has joined #ruby
11:10
binaryplease1 has joined #ruby
11:10
dionysus69 has quit [Ping timeout: 258 seconds]
11:12
kobain has joined #ruby
11:13
al2o3-cr has quit [Ping timeout: 264 seconds]
11:13
binaryplease has quit [Ping timeout: 276 seconds]
11:13
dminuoso has joined #ruby
11:14
jgt1 has joined #ruby
11:15
DenSchub has joined #ruby
11:17
mdw has quit [Quit: Sleeping Zzzzz]
11:17
Piredez has joined #ruby
11:17
dionysus69 has joined #ruby
11:18
alfiemax has quit [Ping timeout: 246 seconds]
11:19
emilkarl has joined #ruby
11:19
binaryplease1 is now known as binaryplease
11:20
johnmilton has joined #ruby
11:21
Piredez has joined #ruby
11:21
Piredez is now known as yitsushi
11:22
yitsushi is now known as lightgod
11:23
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
11:25
Xeago_ has quit [Remote host closed the connection]
11:25
soulisson has joined #ruby
11:26
DenSchub has quit [Ping timeout: 240 seconds]
11:26
<
soulisson >
In ruby, can a library be on multiple files?
11:26
ryez has quit [Ping timeout: 250 seconds]
11:26
solocshaw has joined #ruby
11:27
joonty has quit [Quit: This computer has gone to sleep]
11:28
bkxd has quit [Ping timeout: 276 seconds]
11:29
stoopidmunkey has joined #ruby
11:30
<
dminuoso >
soulisson: It is usually a great idea to limit a file to a single module or class.
11:30
ahmetkapikiran has quit [Quit: ahmetkapikiran]
11:30
solocshaw has quit [Ping timeout: 244 seconds]
11:31
ldnunes has joined #ruby
11:31
<
dminuoso >
(You don't have to force this, but use this as a general pointer)
11:31
alfiemax has joined #ruby
11:31
Vingador has quit [Read error: Connection reset by peer]
11:32
<
soulisson >
dminuoso, ok, so if my library has multiple classes best to put each class in its own file?
11:33
<
shevy >
yesterday I had a strange thought
11:33
<
shevy >
I had an old directory actions/ with lots of individual .rb files
11:33
hanmac has quit [Ping timeout: 272 seconds]
11:33
freerobby has joined #ruby
11:33
ullu_ has joined #ruby
11:33
<
shevy >
all of these started with like "class Bla"
11:34
<
shevy >
in my rewrite, the toplevel was a module, and the name was different so I had to manually change all of it
11:34
<
shevy >
so then I was wondering... (a) what if we could write module and class agnostic code... and (b) designate the main namespace at a later point
11:35
<
shevy >
like container { }
11:35
<
shevy >
then designate the name and the type of the main container lateron
11:35
giz|work|2 has joined #ruby
11:36
dminuoso has quit [Remote host closed the connection]
11:36
Xeago_ has joined #ruby
11:37
ahmetkapikiran has joined #ruby
11:38
dminuoso has joined #ruby
11:39
Xeago_ has quit [Remote host closed the connection]
11:40
jaguarmagenta has joined #ruby
11:41
conta has joined #ruby
11:41
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
11:41
Xeago_ has joined #ruby
11:43
hk238 has joined #ruby
11:43
rodfersou has joined #ruby
11:45
jaguarmagenta has quit [Ping timeout: 264 seconds]
11:45
blur3d has joined #ruby
11:47
hanmac has joined #ruby
11:48
GodFather has quit [Ping timeout: 250 seconds]
11:48
joonty has joined #ruby
11:49
giz|work|2 has quit [Ping timeout: 258 seconds]
11:50
ldnunes has quit [Read error: Connection reset by peer]
11:50
mikecmpb_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
11:50
ldnunes has joined #ruby
11:52
jrafanie has joined #ruby
11:53
nettoweb has joined #ruby
11:55
complex5852 has quit [Ping timeout: 250 seconds]
11:58
last_staff has quit [Quit: last_staff]
11:59
eatsfoobars has joined #ruby
11:59
eatsfoobars has quit [Client Quit]
12:00
eatsfoobars has joined #ruby
12:02
last_staff has joined #ruby
12:03
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
12:03
platzhirsch has quit [Ping timeout: 260 seconds]
12:04
charliesome has joined #ruby
12:06
<
soulisson >
In OOP, calling a method is the same as sending a message to the target object?
12:06
yardenbar has joined #ruby
12:08
last_staff has quit [Quit: last_staff]
12:08
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:08
<
toretore >
soulisson: basically, yes
12:09
itguru has joined #ruby
12:09
<
soulisson >
toretore, thanks
12:11
agentmeerkat has joined #ruby
12:12
freerobby1 has joined #ruby
12:12
freerobby has quit [Read error: Connection reset by peer]
12:13
User458764 has joined #ruby
12:13
Vile` has joined #ruby
12:15
User458764 has quit [Client Quit]
12:15
dminuoso has quit [Ping timeout: 276 seconds]
12:15
agentmeerkat has quit [Ping timeout: 244 seconds]
12:17
eatsfoobars has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
12:17
lightgod is now known as yitsushi
12:18
amcoder has quit [Ping timeout: 244 seconds]
12:21
User458764 has joined #ruby
12:22
tk__ has joined #ruby
12:24
bmaland has joined #ruby
12:25
ahmetkapikiran has quit [Quit: ahmetkapikiran]
12:26
swills has quit [Ping timeout: 240 seconds]
12:26
Xeago_ has quit [Remote host closed the connection]
12:27
joonty has quit [Quit: This computer has gone to sleep]
12:28
Xeago_ has joined #ruby
12:28
yitsushi is now known as yitsushi^away
12:28
fmcgeough has joined #ruby
12:29
Madplatypus has quit [Quit: Connection closed for inactivity]
12:29
allcentury has quit [Ping timeout: 250 seconds]
12:31
giz|work|2 has joined #ruby
12:31
Xeago_ has quit [Remote host closed the connection]
12:31
ullu_ has quit [Ping timeout: 276 seconds]
12:32
Xeago_ has joined #ruby
12:34
yitsushi^away is now known as yitsushi
12:34
Vile` has quit [Ping timeout: 252 seconds]
12:35
roamingdog has joined #ruby
12:35
craigp has joined #ruby
12:36
rodfersou is now known as rodfersou|afk
12:38
Xeago_ has quit [Remote host closed the connection]
12:39
mikecmpbll has joined #ruby
12:39
roamingdog has quit [Ping timeout: 240 seconds]
12:39
yardenbar has quit [Ping timeout: 240 seconds]
12:39
ramfjord has joined #ruby
12:40
minimalism has quit [Quit: minimalism]
12:42
sergio_101 has joined #ruby
12:42
ahmetkapikiran has joined #ruby
12:43
joonty has joined #ruby
12:43
SirOliver has joined #ruby
12:43
DenSchub has joined #ruby
12:45
ramfjord has quit [Ping timeout: 260 seconds]
12:46
allcentury has joined #ruby
12:46
chipotle has joined #ruby
12:48
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
12:50
DarthGandalf has quit [Ping timeout: 250 seconds]
12:50
Xeago_ has joined #ruby
12:50
mark_66 has quit [Remote host closed the connection]
12:51
ahmetkapikiran has quit [Quit: ahmetkapikiran]
12:52
freerobby1 has quit [Quit: Leaving.]
12:52
mark_66 has joined #ruby
12:53
freerobby has joined #ruby
12:54
mdw has joined #ruby
12:54
Xeago_ has quit [Remote host closed the connection]
12:55
Silthias has quit [Ping timeout: 272 seconds]
12:55
Silthias has joined #ruby
12:57
zapata has quit [Ping timeout: 260 seconds]
12:58
minimalism has joined #ruby
12:58
ChiefAlexander has joined #ruby
12:59
mdw_ has joined #ruby
12:59
aegis3121 has joined #ruby
12:59
crystal77 has joined #ruby
12:59
rodfersou|afk is now known as rodfersou
13:01
SirOliver has quit [Read error: Connection reset by peer]
13:02
mdw has quit [Ping timeout: 260 seconds]
13:02
aupadhye has joined #ruby
13:03
dminuoso has joined #ruby
13:03
SirOliver has joined #ruby
13:03
mrodrigues has joined #ruby
13:03
mtkd has quit [Ping timeout: 260 seconds]
13:05
mtkd has joined #ruby
13:06
allcentury has quit [Ping timeout: 240 seconds]
13:06
jgt1 has quit [Ping timeout: 258 seconds]
13:07
Parko has quit [Ping timeout: 258 seconds]
13:07
malconis has joined #ruby
13:07
mdw has joined #ruby
13:07
malconis has quit [Remote host closed the connection]
13:08
malconis has joined #ruby
13:09
zapata has joined #ruby
13:09
zapata is now known as Guest22126
13:09
giz|work has joined #ruby
13:10
blackmes1 has quit [Ping timeout: 240 seconds]
13:10
SirOliver has quit [Ping timeout: 240 seconds]
13:10
swills has joined #ruby
13:11
mdw_ has quit [Ping timeout: 260 seconds]
13:11
TomyWork has quit [Ping timeout: 276 seconds]
13:12
giz|work|2 has quit [Ping timeout: 240 seconds]
13:12
c0mrad3 has joined #ruby
13:12
agentmeerkat has joined #ruby
13:14
ekinmur has joined #ruby
13:15
marsjaninzmarsa has joined #ruby
13:15
kareeole_ has joined #ruby
13:15
lxsameer has quit [Quit: WeeChat 1.5]
13:15
SirOliver has joined #ruby
13:16
`tim` has joined #ruby
13:16
hackerdude has quit [Ping timeout: 264 seconds]
13:17
ncthom91 has joined #ruby
13:17
agentmeerkat has quit [Ping timeout: 276 seconds]
13:18
Xeago_ has joined #ruby
13:18
kareeoleez has quit [Ping timeout: 240 seconds]
13:19
ncthom91 has quit [Client Quit]
13:20
agentmeerkat has joined #ruby
13:21
Xeago_ has quit [Remote host closed the connection]
13:21
blackmes1 has joined #ruby
13:21
Xeago_ has joined #ruby
13:22
ChiefAlexander has quit [Remote host closed the connection]
13:22
chouhoulis has joined #ruby
13:23
jgt1 has joined #ruby
13:24
chip_ has quit [Ping timeout: 260 seconds]
13:25
JohanTux has quit []
13:26
ChiefAlexander has joined #ruby
13:26
loocash has joined #ruby
13:26
lsmola has quit [Quit: Leaving]
13:29
blackmes1 has quit [Ping timeout: 250 seconds]
13:29
psmmr has joined #ruby
13:31
Xeago_ has quit [Remote host closed the connection]
13:31
banisterfiend` is now known as banisterfiend
13:32
banisterfiend is now known as banisterfiend`
13:32
chouhoulis has quit [Remote host closed the connection]
13:32
chouhoulis has joined #ruby
13:32
davedev24 has joined #ruby
13:33
SirOliver has quit [Read error: Connection reset by peer]
13:36
<
soulisson >
Do hashes store key value pairs?
13:36
<
dminuoso >
soulisson: Yes.
13:36
prestorium has quit [Quit: Leaving]
13:36
<
soulisson >
dminuoso, thanks
13:36
atmosx_alt is now known as atmosx
13:37
loocash has quit [Quit: Leaving]
13:39
SirOliver has joined #ruby
13:39
prestorium has joined #ruby
13:40
<
fujinuma >
I've read "Well Grounded Rubyist" book what do you suggest next?
13:40
SirOliver has quit [Read error: Connection reset by peer]
13:40
<
fujinuma >
also Rails 4 in Action
13:40
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
13:41
alfiemax has quit [Ping timeout: 240 seconds]
13:41
<
fujinuma >
my knowledge lacking at Database, Testing, Design Patterns
13:41
jaguarmagenta has joined #ruby
13:41
deecross has joined #ruby
13:41
davedev24 has quit [Read error: Connection reset by peer]
13:42
davedev24 has joined #ruby
13:42
charliesome has joined #ruby
13:42
<
dminuoso >
fujinuma: Eloquent Ruby is probably one of the better books out there.
13:42
SirOliver has joined #ruby
13:43
<
fujinuma >
dminuoso: I'm currently work on Ruby on Rails projects what's next suggestion?
13:44
User458764 has joined #ruby
13:44
<
dminuoso >
fujinuma: Writing code.
13:44
<
dminuoso >
If those two books don't give you enough to work with Ruby, then nothing else will.
13:44
Xeago_ has joined #ruby
13:44
MrBusiness2 has joined #ruby
13:45
blaxter has joined #ruby
13:45
Xeago_ has quit [Remote host closed the connection]
13:46
jaguarmagenta has quit [Ping timeout: 264 seconds]
13:46
ramfjord has joined #ruby
13:47
DaniG2k has joined #ruby
13:47
<
DaniG2k >
jeez I just tried getting up and running with Sensu :S it's a massive pain
13:48
MrBusiness3 has quit [Ping timeout: 250 seconds]
13:48
aryaching has joined #ruby
13:50
shinnya has joined #ruby
13:51
mattwashere has joined #ruby
13:52
giz|work has quit [Ping timeout: 260 seconds]
13:52
tvw has quit [Ping timeout: 272 seconds]
13:53
Silthias1 has joined #ruby
13:53
ramfjord has quit [Ping timeout: 246 seconds]
13:53
Silthias has quit [Ping timeout: 240 seconds]
13:53
TomyLobo has joined #ruby
13:53
deecross has quit [Remote host closed the connection]
13:54
dumdedum has joined #ruby
13:54
Silthias1 has quit [Read error: Connection reset by peer]
13:55
Xeago_ has joined #ruby
13:55
chip_ has joined #ruby
13:56
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
13:58
deecross has joined #ruby
13:59
tvw has joined #ruby
13:59
jaguarmagenta has joined #ruby
14:00
ChiefAlexander has quit [Remote host closed the connection]
14:01
User458764 has joined #ruby
14:01
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
14:02
deecross has quit [Remote host closed the connection]
14:02
SirOliver has quit [Read error: Connection reset by peer]
14:03
JeremyM_ has joined #ruby
14:03
DaniG2k has quit [Remote host closed the connection]
14:04
deecross has joined #ruby
14:04
pandaant has quit [Remote host closed the connection]
14:04
SirOliver has joined #ruby
14:05
SirOliver has quit [Read error: Connection reset by peer]
14:05
GodFather has joined #ruby
14:07
ChiefAlexander has joined #ruby
14:07
banisterfiend` is now known as banisterfiend
14:08
tvon has joined #ruby
14:09
deecross has left #ruby [#ruby]
14:09
blur3d has quit [Quit: blur3d]
14:09
arnonhon_ has joined #ruby
14:11
arnonhongklay has quit [Ping timeout: 246 seconds]
14:11
tvw has quit [Remote host closed the connection]
14:11
jaguarmagenta has quit [Remote host closed the connection]
14:12
SirOliver has joined #ruby
14:14
SirOliver has quit [Read error: Connection reset by peer]
14:14
last_staff has joined #ruby
14:14
SirOliver has joined #ruby
14:15
xall has joined #ruby
14:15
Xeago_ has quit [Remote host closed the connection]
14:18
jgt1 has quit [Quit: WeeChat 1.4]
14:18
rbennacer has joined #ruby
14:18
dumdedum has quit [Ping timeout: 250 seconds]
14:18
SirOliver has quit [Client Quit]
14:20
SirOliver has joined #ruby
14:20
conta has quit [Ping timeout: 264 seconds]
14:21
SirOliver has quit [Client Quit]
14:22
ChiefAlexander has quit [Remote host closed the connection]
14:22
dopamean_ has joined #ruby
14:22
Robtop__ has joined #ruby
14:23
codecop has quit [Remote host closed the connection]
14:23
crdpink has quit [Excess Flood]
14:23
Fridtjof has quit [Ping timeout: 250 seconds]
14:23
crdpink has joined #ruby
14:23
Fridtjof has joined #ruby
14:24
deecross has joined #ruby
14:24
MrBusiness3 has joined #ruby
14:24
Asher has quit [Quit: Leaving.]
14:25
SilverKey has joined #ruby
14:25
nando293921 has joined #ruby
14:25
blackmes1 has joined #ruby
14:25
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
14:25
Asher has joined #ruby
14:26
alfiemax has joined #ruby
14:26
MrBusiness2 has quit [Ping timeout: 250 seconds]
14:26
dumdedum has joined #ruby
14:27
ullu_ has joined #ruby
14:27
<
dminuoso >
asm>> get :index, { term: 'foo' }, format: :json
14:28
lele has quit [Ping timeout: 260 seconds]
14:29
Es0teric has joined #ruby
14:29
matp has joined #ruby
14:29
dumdedum has quit [Client Quit]
14:30
ChiefAlexander has joined #ruby
14:31
floatingpoint has joined #ruby
14:31
blackmes1 has quit [Ping timeout: 246 seconds]
14:31
lele has joined #ruby
14:31
TheWhip has quit [Remote host closed the connection]
14:31
SilverKey has quit [Quit: Halted.]
14:32
ullu_ has quit [Ping timeout: 260 seconds]
14:32
kareeole_ has quit [Remote host closed the connection]
14:33
TheWhip has joined #ruby
14:35
Xeago_ has joined #ruby
14:36
SilverKey has joined #ruby
14:37
ciampix has joined #ruby
14:37
TheWhip has quit [Ping timeout: 260 seconds]
14:40
<
dminuoso >
dminuoso> asm>> get :index, term: 'foo' , format: :json
14:40
<
dminuoso >
asm>> get :index, term: 'foo' , format: :json
14:40
blackmes1 has joined #ruby
14:42
saneax is now known as saneax_AFK
14:43
DarthGandalf has joined #ruby
14:44
psmmr has quit [Ping timeout: 276 seconds]
14:45
_bart has joined #ruby
14:46
<
_bart >
When I do 'example'.hash, what hashing algorithm is actually used to create the 32 bit hash?
14:46
mrodrigues has quit [Quit: leaving]
14:47
<
dminuoso >
(By default its fed with the object ID)
14:47
<
dminuoso >
Sorry my bad, misclick.
14:47
psmmr has joined #ruby
14:48
xall has quit [Ping timeout: 250 seconds]
14:49
<
_bart >
dminuoso: thanks
14:49
chipotle has quit [Ping timeout: 250 seconds]
14:50
<
dminuoso >
_bart: also that happens to be 2.1.1, you might want to switch the version (not sure if that bit has been touched)
14:51
aryaching has quit [Remote host closed the connection]
14:51
loocash has joined #ruby
14:51
aryaching has joined #ruby
14:51
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
14:52
burgestrand has joined #ruby
14:52
senayar_ has joined #ruby
14:53
senayar has quit [Read error: Connection reset by peer]
14:54
aganov has quit [Remote host closed the connection]
14:54
<
dminuoso >
Thanks Mon_Ouie. :)
14:55
* dminuoso
does not know much about Ruby, but he knows how to find where things are
14:55
thatsnotjack has joined #ruby
14:56
infra-red has joined #ruby
14:56
Silthias has joined #ruby
14:56
burgestrand has quit [Client Quit]
14:56
terlar has joined #ruby
14:56
ChiefAlexander has quit [Remote host closed the connection]
14:57
<
_bart >
Mon_Ouie: thanks
14:58
Rabbit__ has joined #ruby
14:59
infra-red has quit [Client Quit]
14:59
last_staff has quit [Quit: last_staff]
14:59
LuckyABA has joined #ruby
15:01
ChiefAlexander has joined #ruby
15:02
zeroDi has joined #ruby
15:02
deecross has left #ruby [#ruby]
15:02
senayar_ has quit []
15:02
Hyuk has joined #ruby
15:02
SilverKey has quit [Quit: Halted.]
15:03
rbennace_ has joined #ruby
15:03
tvw has joined #ruby
15:03
voodoofish4301 has quit [Quit: Leaving.]
15:03
Hyuk has quit [Max SendQ exceeded]
15:03
voodoofish4301 has joined #ruby
15:03
leea has joined #ruby
15:04
Guest99599 is now known as dionyziz
15:04
symm- has joined #ruby
15:04
rbennacer has quit [Ping timeout: 244 seconds]
15:04
axl_ has joined #ruby
15:04
dionyziz has left #ruby [#ruby]
15:04
neo_ has joined #ruby
15:05
roamingdog has joined #ruby
15:06
anisha_ has quit [Quit: This computer has gone to sleep]
15:06
hxegon_afk is now known as hxegon
15:08
raldu is now known as ooc
15:09
SilverKey has joined #ruby
15:10
pawnbox has quit [Remote host closed the connection]
15:11
ooc is now known as raldu
15:12
skarlso has joined #ruby
15:13
Devalo has joined #ruby
15:13
Mon_Ouie has quit [Quit: WeeChat 1.5]
15:14
eatsfoobars has joined #ruby
15:14
TheWhip has joined #ruby
15:14
ramfjord has joined #ruby
15:15
blackmes1 has quit [Ping timeout: 250 seconds]
15:15
craigp has quit [Ping timeout: 260 seconds]
15:15
skade has quit [Quit: Computer has gone to sleep.]
15:15
skarlso has quit [Quit: Bye]
15:16
skarlso has joined #ruby
15:16
DoubleMalt has quit [Ping timeout: 252 seconds]
15:16
klaas has joined #ruby
15:16
Xeago_ has quit [Ping timeout: 250 seconds]
15:17
flopsec has joined #ruby
15:17
descript has joined #ruby
15:18
pawnbox has joined #ruby
15:19
eatsfoobars has quit [Read error: Connection reset by peer]
15:19
skarlso has quit [Client Quit]
15:19
mark_66 has left #ruby ["PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PONG :card.freenode.net"]
15:19
Devalo has quit [Remote host closed the connection]
15:21
the_drow has quit [Quit: Leaving]
15:22
<
crankharder >
having some trouble getting nokogiri 1.6.8 installed on OSX. the nokogiri help says it's supposed to "just work" with vendored libxml2, but that's saying it cant find libxml2. specifically speciying a path to homebrew installed libxml2 also fails to find it. any ideas?
https://gist.github.com/anonymous/3717250e8502697950d1e23bf219fa44
15:23
Devalo has joined #ruby
15:23
Devalo has quit [Remote host closed the connection]
15:24
rkazak has joined #ruby
15:24
Guest17731 has quit [Remote host closed the connection]
15:25
Devalo has joined #ruby
15:25
Devalo has quit [Remote host closed the connection]
15:25
descript has quit [Ping timeout: 240 seconds]
15:25
tvon has quit [Quit: Peace out, y'all!]
15:25
rodfersou is now known as rodfersou|lunch
15:26
aufi_ has quit [Remote host closed the connection]
15:26
skarlso has joined #ruby
15:27
<
dminuoso >
crankharder: Also homebrew installs things into /usr/local/Cellar by default, are you sure the path is correct?
15:27
rkazak has quit [Client Quit]
15:29
<
crankharder >
dminuoso: yea, that path is a symlink
15:29
<
crankharder >
the path in my --with* cmds came from the output of homebrew post-install
15:29
smathy has joined #ruby
15:30
karapetyan has joined #ruby
15:30
psftlc has joined #ruby
15:31
macsteps has joined #ruby
15:31
shinnya has quit [Ping timeout: 276 seconds]
15:32
<
crankharder >
dminuoso: xcode-select --install did the trick
15:32
<
crankharder >
thanks! :)
15:33
<
dminuoso >
crankharder: include/libxml2 is the correct include directory btw.
15:33
shinnya has joined #ruby
15:33
ferr1 has quit [Quit: WeeChat 1.5]
15:36
blackmes1 has joined #ruby
15:36
rkazak has joined #ruby
15:37
sepp2k has quit [Quit: Leaving.]
15:37
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
15:37
ncthom91 has joined #ruby
15:39
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
15:39
loocash has quit [Quit: Leaving]
15:40
pawnbox has quit [Remote host closed the connection]
15:41
pawnbox has joined #ruby
15:41
smathy has joined #ruby
15:41
User458764 has joined #ruby
15:42
dionysus69 has quit [Ping timeout: 258 seconds]
15:42
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
15:43
conta has joined #ruby
15:44
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
15:45
nettoweb has joined #ruby
15:45
pawnbox has quit [Ping timeout: 252 seconds]
15:46
tokynet has joined #ruby
15:46
LoneHerm_ has quit [Remote host closed the connection]
15:48
Vingador has joined #ruby
15:48
karapetyan has quit [Remote host closed the connection]
15:49
karapetyan has joined #ruby
15:49
karapetyan has quit [Remote host closed the connection]
15:51
xaxisx has joined #ruby
15:53
Xeago_ has joined #ruby
15:53
DarthGandalf has quit [Ping timeout: 244 seconds]
15:54
Ishido has joined #ruby
15:55
macsteps has quit [Remote host closed the connection]
15:55
polishdub has joined #ruby
15:55
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
15:55
amclain has joined #ruby
15:57
loocash has joined #ruby
15:58
rbennace_ has quit [Remote host closed the connection]
15:58
skade has joined #ruby
15:59
xaxisx has quit [Quit: Leaving]
15:59
skarlso has quit [Quit: Bye]
15:59
karapetyan has joined #ruby
15:59
rbennacer has joined #ruby
15:59
carella has quit [Ping timeout: 260 seconds]
16:00
Ishido has quit [Ping timeout: 244 seconds]
16:00
LuckyABA has joined #ruby
16:00
carella has joined #ruby
16:01
agentmeerkat has quit [Ping timeout: 276 seconds]
16:01
Devalo has joined #ruby
16:01
carella has quit [Remote host closed the connection]
16:01
agentmeerkat has joined #ruby
16:01
Xeago_ has quit [Remote host closed the connection]
16:01
carella has joined #ruby
16:01
joonty has quit [Quit: This computer has gone to sleep]
16:01
tk__ has quit [Quit: ばいばい]
16:02
mikecmpbll has quit [Ping timeout: 272 seconds]
16:03
darkdreamingdan has joined #ruby
16:04
araujo has joined #ruby
16:04
rbennacer has quit [Ping timeout: 258 seconds]
16:04
<
ruby[bot] >
darkdreamingdan: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
16:05
<
darkdreamingdan >
where frequencies is a hash
16:05
<
darkdreamingdan >
sort_by method returns a 2d array, as i understand
16:05
<
darkdreamingdan >
but what's the count statement actually doing?
16:05
<
darkdreamingdan >
is it returning count to the sort_by function? im confused
16:06
aegis3121 has quit [Ping timeout: 240 seconds]
16:06
<
darkdreamingdan >
i've just never seen a variable as an isolated statement before in other langs
16:06
karapetyan has quit [Remote host closed the connection]
16:07
rbennacer has joined #ruby
16:07
rbennacer has quit [Remote host closed the connection]
16:08
rbennacer has joined #ruby
16:09
karapetyan has joined #ruby
16:09
<
toretore >
darkdreamingdan: the part between { and } is an anonymous function, which is run by sort_by to determine the value to sort by; in your case, it returns the valye of `count`
16:09
<
darkdreamingdan >
so in ruby, an isolated statement is deduced as a 'return' if it's not a method?
16:10
<
toretore >
the last expression in a function is returned implicitly
16:10
terlar has quit [Ping timeout: 258 seconds]
16:10
<
toretore >
the value of your last expression is whatever's in count
16:10
<
elomatreb >
the last evaluated expression, to be exact
16:10
<
darkdreamingdan >
right, does that mean that ruby /always/ returns something in a method
16:10
<
darkdreamingdan >
assuming the method isn't empty
16:10
<
dminuoso >
The last evaluated expression outside ensure blocks, to be even more exact.
16:10
<
darkdreamingdan >
ah i see
16:10
nando293921 has quit [Quit: Lost terminal]
16:10
<
toretore >
an "empty" method returns nil
16:10
<
darkdreamingdan >
but i guess i can also use 'return' to force it earlier, if i wish
16:11
<
darkdreamingdan >
great, thanks.
16:11
<
elomatreb >
yes, but it's not used often
16:11
floatingpoint has quit [Quit: Goodnight]
16:11
<
toretore >
explicit return is somewhat of a code smell
16:11
psftlc has quit [Remote host closed the connection]
16:12
gigidell has joined #ruby
16:12
KensoDev has joined #ruby
16:12
<
smathy >
darkdreamingdan, the starting array must have been an array of tuples, not a hash.
16:12
<
darkdreamingdan >
well i mean something like "if somethingbad return false end"
16:12
Ishido has joined #ruby
16:12
jaguarmagenta has joined #ruby
16:12
diegoviola has joined #ruby
16:12
<
toretore >
then it should probably be `if something bad; false; else; ...; end`
16:12
<
smathy >
darkdreamingdan, >> [ [ :foo, 3 ], [ :bar, 2 ]].sort_by { |word, count| count }
16:12
Couch has quit [Ping timeout: 272 seconds]
16:13
<
elomatreb >
You are free to do so, but most codestyle guides tell you to avoid to where possible
16:13
SilverKey has quit [Quit: Halted.]
16:13
<
smathy >
>> [ [ :foo, 3 ], [ :bar, 2 ]].sort_by { |word, count| count }
16:14
rann has quit [Remote host closed the connection]
16:14
<
darkdreamingdan >
that's a hash, no?
16:15
<
elomatreb >
Yes, but the value passed to your block is a array of the form [key, value] iirc
16:16
<
elomatreb >
if you want to have key and value of a hash in a block as separate values, you can specify two block parameters (like {key:"value"}.each {|key, value| ... }
16:16
itguru has quit [Ping timeout: 246 seconds]
16:16
mattwashere has quit [Remote host closed the connection]
16:17
<
darkdreamingdan >
toretore: i see
16:17
jaguarmagenta has quit [Ping timeout: 250 seconds]
16:17
<
toretore >
darkdreamingdan: insert `p(value)` at various points in your code to inspect values, this will help you understand how things work and how values change
16:18
<
elomatreb >
I'm an idiot btw, misread your code
16:18
SilverKey has joined #ruby
16:18
nando293921 has joined #ruby
16:18
tomphp has quit [Ping timeout: 276 seconds]
16:18
<
darkdreamingdan >
yeah, i figure the code is doing exactly as you just described
16:19
<
darkdreamingdan >
i'll bear hat in mind, thanks tore
16:19
Hobogrammer has joined #ruby
16:19
<
smathy >
darkdreamingdan, count won't be being set to anything.
16:19
<
darkdreamingdan >
what's confusing me now is this
16:19
SilverKey has quit [Client Quit]
16:19
<
darkdreamingdan >
<smathy> darkdreamingdan, the starting array must have been an array of tuples, not a hash.
16:19
ponga has quit [Quit: Connection closed for inactivity]
16:20
<
darkdreamingdan >
surely it's a hash that i call .sort_by on
16:20
<
toretore >
darkdreamingdan: it's not a strict ban, purr say, i use early return sometimes, but i've also gotten myself in trouble more than once by using it and then keep adding more of them until it's a mess
16:20
<
smathy >
darkdreamingdan, yes, I was assuming the sort_by was actually working. You're right, it's a hash, but it's not working.
16:20
rkazak has quit [Ping timeout: 260 seconds]
16:20
<
smathy >
>> [ { foo: 4 }, { bar: 1 }].sort_by { |word, count| count }
16:20
skade has quit [Quit: Computer has gone to sleep.]
16:20
_bart has quit [Ping timeout: 264 seconds]
16:21
<
darkdreamingdan >
hmm
16:22
agit0 has quit [Quit: zzzZZZ….]
16:22
mattwashere has joined #ruby
16:22
<
darkdreamingdan >
if text is "test a a a a", the code returns [["a", 4], ["test", 1]] for me
16:23
mikecmpbll has joined #ruby
16:23
<
smathy >
Umm, OMG, I'm embarrassing myself. I had an extra array in there. Sorry.
16:23
<
darkdreamingdan >
Oh right
16:23
<
darkdreamingdan >
so like
16:23
<
smathy >
>> { foo: 4, bar: 1 }.sort_by { |word, count| count }
16:23
<
darkdreamingdan >
right
16:24
<
darkdreamingdan >
ok, i get it now
16:24
User458764 has joined #ruby
16:24
<
smathy >
So yeah, Ruby is doing what you think and destructuring each hash element into the local `word` and `count` vars, and then using the `count` for the sort.
16:25
<
hanmac >
darkdreamingdan: in your case you dont need the word variable in the second {} and you might replace it with a "_"
16:26
<
darkdreamingdan >
right, does that still have the same space complexity or does _ have a significance
16:27
diegoviola has quit [Ping timeout: 250 seconds]
16:27
<
toretore >
you should think of it as a throw-away variable name; ruby does treat it somewhat differently but that's not something you should assume
16:28
mikecmpbll has quit [Ping timeout: 250 seconds]
16:28
<
darkdreamingdan >
i.e. are you suggesting that to keep code tidy, or because it has a performance advantage too
16:28
TheWhip has quit [Remote host closed the connection]
16:28
<
darkdreamingdan >
sure
16:28
kavanagh has joined #ruby
16:28
<
hanmac >
darkdreamingdan: as for the sort_by thing you might do: sort_by(&:last)
16:29
<
darkdreamingdan >
that's an argument to construct backwards, i guess?
16:29
watersoul has quit [Ping timeout: 252 seconds]
16:30
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:30
TheWhip has joined #ruby
16:30
karapetyan has quit [Remote host closed the connection]
16:31
karapetyan has joined #ruby
16:31
<
hanmac >
darkdreamingdan: &:symbol means a block parameter ... ruby does treat &:last like {|o| o.last} and because o is an array of [word, count] it does return count
16:32
<
darkdreamingdan >
ohhh
16:32
bradland has joined #ruby
16:32
zarubin has quit [Ping timeout: 246 seconds]
16:32
<
hanmac >
darkdreamingdan: also for the first {} you might use each_with_object for counting ... its a few less lines, imo like that better : each_with_object(Hash.new(0)) {|o,h| h[o] +=1 }
16:33
zarubin has joined #ruby
16:35
macsteps has joined #ruby
16:35
<
darkdreamingdan >
do rubyists dislike calling methods with no arguments with empty paranthises?
16:35
<
darkdreamingdan >
someMethod()
16:36
<
ljarvis >
darkdreamingdan: firstly, camelCase method names are already bad
16:36
tomphp has joined #ruby
16:36
<
darkdreamingdan >
lol
16:36
<
ljarvis >
and yeah generally you would avoid the parentheses
16:36
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
16:37
axsuul has joined #ruby
16:38
User458764 has joined #ruby
16:38
[Butch] has joined #ruby
16:38
abonec has quit [Ping timeout: 244 seconds]
16:39
davedev2_ has joined #ruby
16:40
iceden has quit [Remote host closed the connection]
16:40
loocash has quit [Quit: Leaving]
16:41
mdw has quit [Quit: Sleeping Zzzzz]
16:43
dminuoso has quit [Ping timeout: 246 seconds]
16:43
conta has quit [Ping timeout: 264 seconds]
16:43
davedev__ has joined #ruby
16:43
aep-shoutlet has joined #ruby
16:43
davedev24 has quit [Ping timeout: 250 seconds]
16:43
Devalo has quit [Remote host closed the connection]
16:44
ChiefAlexander has quit [Remote host closed the connection]
16:44
Snowy has quit [Remote host closed the connection]
16:45
SilverKey has joined #ruby
16:46
nogic has joined #ruby
16:46
davedev2_ has quit [Ping timeout: 250 seconds]
16:46
wjimenez5271 has joined #ruby
16:47
LoneHerm_ has joined #ruby
16:47
deecross has joined #ruby
16:49
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
16:49
agit0 has joined #ruby
16:49
dikaio has joined #ruby
16:49
wrkrcoop has joined #ruby
16:50
dikaio has quit [Max SendQ exceeded]
16:51
<
wrkrcoop >
my team is trying to put together a weekly ruby meeting where we discuss anything related to ruby. anyone have any suggestions on what would be a good topic?
16:51
AndrewIsHere has joined #ruby
16:51
LoneHerm_ has quit [Ping timeout: 252 seconds]
16:52
deecross has quit [Ping timeout: 276 seconds]
16:54
Devalo has joined #ruby
16:54
<
darkdreamingdan >
>> f = { "test" => 1, "test" => 2 } p(f)
16:54
<
darkdreamingdan >
>> { "test" => 1, "test" => 2 }
16:54
<
smathy >
wrkrcoop, if there are no pressing topics, I'd be asking whether this meeting is going to be that valuable.
16:54
<
darkdreamingdan >
how do i use the bot?
16:54
miqlas-H has joined #ruby
16:55
agit0 has quit [Quit: zzzZZZ….]
16:55
wjimenez5271 has joined #ruby
16:56
yqt has joined #ruby
16:56
<
darkdreamingdan >
i'm a bit confused over symbols. why should i use symbol keys in a hash instead of strings
16:57
<
darkdreamingdan >
my assumption is that it doesnt waste memory on big strings, and internalizes it
16:57
replay has joined #ruby
16:58
<
wrkrcoop >
smathy: what would define a pressing topic?
16:59
bitemyapp has left #ruby [#ruby]
16:59
<
wrkrcoop >
we all suck at tests
16:59
chip_ has quit [Ping timeout: 276 seconds]
16:59
soulisson has left #ruby ["Quitte"]
17:00
deecross has joined #ruby
17:00
<
smathy >
wrkrcoop, there you go :)
17:00
SCHAAP137 has joined #ruby
17:00
<
wrkrcoop >
smathy: but would that be pressing?
17:01
<
smathy >
If it's something your team would benefit from improving, or something they're passionate about learning more about then I'd say it qualifies.
17:02
Xeago_ has joined #ruby
17:03
aegis3121 has joined #ruby
17:06
SilverKey has quit [Quit: Halted.]
17:07
Oclair has quit [Quit: Bye Bye]
17:08
aegis3121 has quit [Ping timeout: 276 seconds]
17:08
djbkd has joined #ruby
17:08
<
shevy >
wrkrcoop discuss writing style!
17:08
<
shevy >
like "def foo bar" versus "def foo(bar)"
17:08
<
wrkrcoop >
shevy: got any good links?
17:08
TheWhip has quit []
17:08
<
wrkrcoop >
shevy: what is your opnion on def foo bar vs def foo(bar)
17:08
<
shevy >
but that style guide is very CONTROVERSIAL too
17:09
<
shevy >
wrkrcoop always parens if there are arguments, in def!
17:09
<
toretore >
`def foo bar` is the donald trump of ruby style
17:09
<
shevy >
wrkrcoop the best is - there are ruby people who use BOTH at the same time :)
17:09
<
shevy >
let me find an example
17:10
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:10
shinnya has quit [Ping timeout: 246 seconds]
17:10
djbkd has quit [Remote host closed the connection]
17:10
djbkd has joined #ruby
17:10
<
shevy >
but anyway there are many more style differences between ruby people
17:11
<
shevy >
but I did not understand the code... style was only partially responsible, it was quite math-heavy, with different matrices
17:13
pawnbox has joined #ruby
17:13
rcvalle has joined #ruby
17:13
<
darkdreamingdan >
tabs4life
17:13
* darkdreamingdan
runs
17:14
aaeron has joined #ruby
17:14
skarlso has joined #ruby
17:15
rippa has joined #ruby
17:15
firstdayonthejob has joined #ruby
17:16
bb010g has joined #ruby
17:16
SilverKey has joined #ruby
17:16
snath has joined #ruby
17:17
rodfersou|lunch is now known as rodfersou
17:17
Devalo has quit [Remote host closed the connection]
17:19
SilverKey has quit [Client Quit]
17:19
Xeago_ has quit [Read error: Connection reset by peer]
17:19
SilverKey has joined #ruby
17:20
Xeago_ has joined #ruby
17:20
SilverKey has quit [Max SendQ exceeded]
17:20
floatingpoint has joined #ruby
17:20
SilverKey has joined #ruby
17:22
tristanp_ has joined #ruby
17:23
tristanp has quit [Ping timeout: 264 seconds]
17:24
weaksauce has quit [Ping timeout: 252 seconds]
17:24
snath has left #ruby ["Leaving"]
17:25
floatingpoint has quit [Ping timeout: 276 seconds]
17:25
Xeago_ has quit [Remote host closed the connection]
17:27
karapety_ has joined #ruby
17:27
karapetyan has quit [Read error: Connection reset by peer]
17:29
GodFather_ has joined #ruby
17:29
GodFather has quit [Read error: No route to host]
17:30
kavanagh has quit [Quit: That's all folks!]
17:30
wrkrcoop has quit [Quit: wrkrcoop]
17:30
blackmes1 has quit [Ping timeout: 258 seconds]
17:30
Silthias has quit [Quit: Leaving.]
17:31
theRoUS has joined #ruby
17:33
neo_ has quit [Remote host closed the connection]
17:34
djbkd has quit [Remote host closed the connection]
17:34
neo_ has joined #ruby
17:35
ramfjord has quit [Ping timeout: 250 seconds]
17:35
postmodern has joined #ruby
17:36
_djbkd has joined #ruby
17:36
AndroidLoverInSF has joined #ruby
17:38
banisterfiend has quit [Remote host closed the connection]
17:38
karapetyan has joined #ruby
17:38
neo_ has quit [Ping timeout: 240 seconds]
17:38
ascarter has joined #ruby
17:39
karapety_ has quit [Read error: Connection reset by peer]
17:39
dminuoso has joined #ruby
17:39
banisterfiend has joined #ruby
17:39
jrafanie has joined #ruby
17:40
karapetyan has quit [Remote host closed the connection]
17:40
CloCkWeRX has quit [Remote host closed the connection]
17:40
sneakers has joined #ruby
17:40
swills has quit [Remote host closed the connection]
17:41
theRoUS has quit [Changing host]
17:41
theRoUS has joined #ruby
17:43
karapetyan has joined #ruby
17:44
yqt has quit [Ping timeout: 240 seconds]
17:44
_djbkd has quit [Remote host closed the connection]
17:44
djbkd has joined #ruby
17:45
PlasmaStar has quit [Ping timeout: 244 seconds]
17:45
kavanagh has joined #ruby
17:45
dminuoso has quit [Ping timeout: 240 seconds]
17:45
blackmes1 has joined #ruby
17:46
nettoweb has quit [Ping timeout: 258 seconds]
17:46
Madplatypus has joined #ruby
17:47
User458764 has joined #ruby
17:48
PlasmaStar has joined #ruby
17:48
LoneHermit has joined #ruby
17:48
dionysus69 has joined #ruby
17:49
ChiefAlexander has joined #ruby
17:51
watersoul has joined #ruby
17:51
RegulationD has joined #ruby
17:52
blackmes1 has quit [Ping timeout: 240 seconds]
17:52
LoneHermit has quit [Ping timeout: 240 seconds]
17:53
jenrzzz has joined #ruby
17:53
jenrzzz has quit [Changing host]
17:53
jenrzzz has joined #ruby
17:55
Dreamer3 has joined #ruby
17:56
centrx has joined #ruby
17:57
jaruga has quit [Quit: jaruga]
17:57
wrkrcoop has joined #ruby
17:57
jackhill has joined #ruby
17:58
djbkd has quit [Remote host closed the connection]
17:58
<
jackhill >
Hi all, I've inherited some ruby scripts that I would like to clean up and make a gem. Thougths on bundler versus straight gem? This is my first Ruby experience.
17:59
AndroidLoverInSF has quit [Quit: This computer has gone to sleep]
17:59
ChiefAlexander has quit [Remote host closed the connection]
17:59
djbkd has joined #ruby
18:00
swills has joined #ruby
18:01
<
shevy >
straight gem
18:01
macsteps has quit [Remote host closed the connection]
18:02
_djbkd has joined #ruby
18:02
<
shevy >
old code written by other people in an alien style is really hard to keep updated :(
18:02
djbkd has quit [Read error: Connection reset by peer]
18:04
dennisvennink has joined #ruby
18:06
floatingpoint has joined #ruby
18:06
alfiemax has quit [Ping timeout: 260 seconds]
18:06
mattwashere has quit [Remote host closed the connection]
18:07
nando293921 has quit [Read error: Connection reset by peer]
18:07
nando294021 has joined #ruby
18:07
nando294021 has quit [Client Quit]
18:10
stoopidmunkey has quit []
18:10
AndroidLoverInSF has joined #ruby
18:10
chip_ has joined #ruby
18:11
aegis3121 has joined #ruby
18:12
<
jackhill >
shevy: okay, makes sense, thanks!
18:12
Devalo has joined #ruby
18:12
ramfjord has joined #ruby
18:12
shinnya has joined #ruby
18:13
jenrzzz has quit [Ping timeout: 246 seconds]
18:13
psmmr has quit [Ping timeout: 276 seconds]
18:13
macsteps has joined #ruby
18:13
jaguarmagenta has joined #ruby
18:15
AndroidLoverInSF has quit [Ping timeout: 260 seconds]
18:15
AndroidLoverInSF has joined #ruby
18:15
<
jackhill >
havenwood: thanks
18:15
troulouliou_div2 has quit [Quit: Leaving]
18:15
leea has joined #ruby
18:15
whathappens has joined #ruby
18:16
mattwashere has joined #ruby
18:17
jaguarmagenta has quit [Ping timeout: 240 seconds]
18:19
ChiefAlexander has joined #ruby
18:19
alfiemax has joined #ruby
18:20
armatechnicos has joined #ruby
18:20
<
shevy >
the more gems you write the easier this will be :)
18:20
<
shevy >
you can fill out the Gem::Specification.new do |s| part to describe your gem
18:21
kirun has joined #ruby
18:21
<
shevy >
ruby version, gem version, you can add via
18:21
<
shevy >
s.required_ruby_version = '>= 2.3.1' s.required_rubygems_version = '>= 2.6.6' s.rubygems_version = '>= 2.6.6' - or something like that
18:22
<
shevy >
and dependencies via s.add_dependency 'foobar', '>= 0.0.6'
18:22
armatechnicos has left #ruby ["Leaving"]
18:22
roamingdog has quit [Remote host closed the connection]
18:23
roamingdog has joined #ruby
18:24
Coldblackice has joined #ruby
18:25
kraken has joined #ruby
18:25
kraken is now known as kraken_
18:25
hk238 has joined #ruby
18:26
vuoto has joined #ruby
18:26
<
kraken_ >
Alright, I'm creating a chess game, and I have classes for each piece. How do I require_relative all of these classes in one of my other classes without having to write it out for each piece?
18:28
<
shevy >
hmm I solve that differently
18:28
sauvin has quit [Remote host closed the connection]
18:28
AndrewIsHere has quit [Remote host closed the connection]
18:28
<
shevy >
I create a gem, then have some class method that batch-requires all .rb files in a certain directory
18:28
<
shevy >
e. g. my_gem/pieces/
18:28
roamingdog has quit [Ping timeout: 276 seconds]
18:28
<
shevy >
via Dir[path_to_the_gem+'*.rb'] or the "#{}" variant
18:29
Dimik has joined #ruby
18:29
Devalo has quit [Remote host closed the connection]
18:30
AlexRussia has quit [Ping timeout: 258 seconds]
18:30
fmcgeough has quit [Quit: fmcgeough]
18:31
pawnbox has quit [Remote host closed the connection]
18:32
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:32
smathy has quit [Read error: Connection reset by peer]
18:33
smathy has joined #ruby
18:34
nettoweb has joined #ruby
18:35
Devalo has joined #ruby
18:35
pawnbox has joined #ruby
18:35
neo__ has joined #ruby
18:38
karapety_ has joined #ruby
18:38
karapetyan has quit [Read error: Connection reset by peer]
18:39
allcentury has joined #ruby
18:39
SilverKey has quit [Quit: Halted.]
18:40
mesamoo has joined #ruby
18:40
smathy is now known as smathy_afk
18:40
neo__ has quit [Ping timeout: 260 seconds]
18:41
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:41
neo__ has joined #ruby
18:41
dminuoso has joined #ruby
18:41
SilverKey has joined #ruby
18:42
cyphase has quit [Ping timeout: 258 seconds]
18:43
shinnya has quit [Ping timeout: 258 seconds]
18:46
dminuoso has quit [Ping timeout: 258 seconds]
18:46
AndrewIsHere has joined #ruby
18:47
cyphase has joined #ruby
18:48
blackmes1 has joined #ruby
18:49
gizmore has joined #ruby
18:49
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
18:51
axsuul has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18:52
aep-shoutlet has quit [Quit: Connection closed for inactivity]
18:52
User458764 has joined #ruby
18:53
giz|work has joined #ruby
18:54
DarthGandalf has joined #ruby
18:55
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:55
psmmr has joined #ruby
18:56
kavanagh has quit [Quit: That's all folks!]
18:57
jhack has joined #ruby
18:59
jhack has quit [Client Quit]
18:59
rippa is now known as spinagon
18:59
aaeron has quit [Quit: aaeron]
19:00
jhack has joined #ruby
19:01
johnmilton has quit [Remote host closed the connection]
19:02
floatingpoint has quit [Quit: Goodnight]
19:03
shiinko has joined #ruby
19:03
floatingpoint has joined #ruby
19:04
karapety_ has quit [Remote host closed the connection]
19:05
smathy has joined #ruby
19:05
jenrzzz has joined #ruby
19:06
<
adaedra >
Don't use the AUR to install gems and use rubygems
19:07
<
shiinko >
so, install gems directly with gem command?
19:08
aagdbl has joined #ruby
19:08
chip_ has quit [Ping timeout: 276 seconds]
19:08
<
shiinko >
Arch bible teaches us to install everything through pacman, using third party package managers is a sin /s :-)
19:08
blaxter has quit [Quit: foo]
19:10
ChiefAlexander has quit [Remote host closed the connection]
19:10
jenrzzz has quit [Ping timeout: 240 seconds]
19:10
<
aagdbl >
i have an integer n. how can I dynamically define a method with arity n?
19:10
braincras has quit [Ping timeout: 250 seconds]
19:11
chip_ has joined #ruby
19:11
blaxter has joined #ruby
19:12
<
shiinko >
havenwood, I have RVM installed
19:13
<
alfiemax >
shiinko, then why not use the gem command?/
19:13
<
fujinuma >
is it true that ruby core code discussion in in Japanese?
19:13
psmmr has quit [Ping timeout: 276 seconds]
19:13
<
alfiemax >
fujinuma, doubt that
19:13
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:13
braincrash has joined #ruby
19:13
<
havenwood >
fujinuma: Some discussion is in Japanese and some is in English.
19:14
<
adaedra >
shiinko: if you have rvm installed, this is another reason to install gems yourself and not by AUR
19:14
<
alfiemax >
i think i've wandered into some discussions sommetime back and it was in english
19:14
<
havenwood >
fujinuma: Other languages too, but those are the primary ones.
19:14
<
adaedra >
shiinko: as much as I like the AUR, gem are responsibility of rubygems
19:14
leea has joined #ruby
19:14
<
fujinuma >
havenwood: what matz writes in?
19:14
ChiefAlexander has joined #ruby
19:15
<
havenwood >
fujinuma: Matz's native tongue is Japanese but he speaks English as well.
19:15
<
alfiemax >
actually he speaks real good english than i expected. it was really nice talking to him too
19:15
<
adaedra >
native tongue?
19:16
<
havenwood >
fujinuma: Check his RubyKaigi keynotes for Japanese or RubyConf keynotes for English.
19:16
<
bradland >
adaedra: that means it's his first language.
19:16
<
adaedra >
bradland: yeah, I guessed, but I didn't know english used the word "tongue" with this meaning too.
19:17
<
fujinuma >
havenwood: an idiot said that matz changed the ruby core code without noting in English :?
19:17
<
fujinuma >
havenwood: I was curious about that :|
19:19
<
bradland >
you're curious about matz changing the ruby core code and not noting it in english?
19:19
floatingpoint has quit [Quit: Goodnight]
19:20
patrick_star_2 has joined #ruby
19:20
dionysus69 has quit [Ping timeout: 240 seconds]
19:20
blaxter has quit [Quit: foo]
19:20
swills has quit [Ping timeout: 260 seconds]
19:20
SilverKey has quit [Quit: Halted.]
19:21
blackmesa has joined #ruby
19:21
ur5us has joined #ruby
19:22
karapetyan has joined #ruby
19:22
blackmes1 has quit [Ping timeout: 240 seconds]
19:22
<
fujinuma >
bradland: I don't remember the version he said it's been changed without.
19:22
<
shevy >
fujinuma matz mostly works on mruby since several years, he is not extremely active on core MRI anymore, save for a few assignments on the issue-tracker or some central decisions to be made, such as frozen strings
19:23
<
bradland >
fujinuma: i'm curious why you're asking?
19:23
<
shevy >
some of the discussion happens in japanese, I don't think this can be easily avoided
19:23
duffy_duck has quit [Ping timeout: 258 seconds]
19:24
<
fujinuma >
bradland: to ensure he said bullshit ;D
19:24
aagdbl has quit [Quit: This computer has gone to sleep]
19:24
<
wrkrcoop >
when i run rackup it says it can’t find bundler …
19:24
<
wrkrcoop >
but bundler is def installed
19:24
<
bradland >
ok, that's what i thought. i have no interest in helping anyone disparage matz. good day.
19:24
<
wrkrcoop >
getting a ‘NameError: uninitialized constant Bundler’
19:25
<
shevy >
eh that won't work anyway, matz is awesome
19:25
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:25
kavanagh has joined #ruby
19:25
<
fujinuma >
bradland: who's going to do that? Matz is great
19:28
braincrash has quit [Ping timeout: 258 seconds]
19:29
aagdbl has joined #ruby
19:31
karapetyan has quit [Remote host closed the connection]
19:31
floatingpoint has joined #ruby
19:31
whathappens has quit [Remote host closed the connection]
19:31
karapetyan has joined #ruby
19:32
macsteps has quit [Remote host closed the connection]
19:32
allcentury has quit [Ping timeout: 276 seconds]
19:32
patrick_star_2 is now known as duffy_duck
19:32
braincrash has joined #ruby
19:33
<
havenwood >
aagdbl: I'll cheat and say: def define_method_with_arity_of n; define_method "arity_of_#{n}", method(methods.find { |meth| method(meth).arity == n }) end
19:33
rbennacer has quit [Ping timeout: 244 seconds]
19:34
weaksauce has joined #ruby
19:34
nhhc has quit [Quit: Leaving]
19:35
ur5us has quit [Remote host closed the connection]
19:35
coyo has joined #ruby
19:35
<
wrkrcoop >
anyone know why i’d be getting a ‘NameError: uninitialized constant Bundler’ when i run rackup
19:36
agit0 has joined #ruby
19:37
anisha has joined #ruby
19:39
cajone has quit [Read error: Connection reset by peer]
19:39
AndrewIs_ has joined #ruby
19:39
p0p0pr37_ has joined #ruby
19:40
deecross_ has joined #ruby
19:40
mattp__ has joined #ruby
19:40
pawnbox_ has joined #ruby
19:40
abonec has joined #ruby
19:40
okdas has quit [Ping timeout: 252 seconds]
19:40
tvsutton_ has quit [Ping timeout: 252 seconds]
19:40
twodayslate has quit [Ping timeout: 252 seconds]
19:40
crank1988 has quit [Ping timeout: 252 seconds]
19:40
chridal has quit [Ping timeout: 252 seconds]
19:40
g3funk has quit [Ping timeout: 252 seconds]
19:40
[reed] has quit [Ping timeout: 252 seconds]
19:40
kitallis has quit [Ping timeout: 252 seconds]
19:40
nsno has quit [Ping timeout: 252 seconds]
19:41
eboaz_ has joined #ruby
19:41
freerobby has quit [Quit: Leaving.]
19:41
M-shine1 has quit [Ping timeout: 252 seconds]
19:41
aibot has quit [Ping timeout: 252 seconds]
19:41
M-mistake has quit [Ping timeout: 252 seconds]
19:41
NightMonkey has quit [Ping timeout: 252 seconds]
19:41
Guest46485 has quit [Ping timeout: 252 seconds]
19:41
davidcelis has quit [Ping timeout: 252 seconds]
19:41
maxmanders_ has quit [Ping timeout: 252 seconds]
19:41
JackMc has quit [Ping timeout: 252 seconds]
19:41
webnanners has quit [Ping timeout: 252 seconds]
19:41
cajone has joined #ruby
19:41
pawnbox has quit [Ping timeout: 252 seconds]
19:41
jolamb has quit [Ping timeout: 252 seconds]
19:41
zenlot has quit [Ping timeout: 252 seconds]
19:41
segy has quit [Ping timeout: 252 seconds]
19:41
SebastianThorn has quit [Ping timeout: 252 seconds]
19:41
mgorbach has quit [Ping timeout: 252 seconds]
19:41
pabs has quit [Ping timeout: 252 seconds]
19:41
mattp_ has quit [Ping timeout: 252 seconds]
19:41
majuscule has quit [Ping timeout: 252 seconds]
19:41
slash_nick has quit [Ping timeout: 252 seconds]
19:41
nug has quit [Ping timeout: 252 seconds]
19:41
TheMoonMaster has quit [Ping timeout: 252 seconds]
19:41
icedp has quit [Ping timeout: 252 seconds]
19:41
Expanse has quit [Ping timeout: 252 seconds]
19:41
mdw has joined #ruby
19:42
freerobby has joined #ruby
19:42
dminuoso has joined #ruby
19:42
AndrewIsHere has quit [Ping timeout: 252 seconds]
19:42
theRoUS has quit [Ping timeout: 252 seconds]
19:42
deecross has quit [Ping timeout: 252 seconds]
19:42
Rabbit__ has quit [Ping timeout: 252 seconds]
19:42
shaman42 has quit [Ping timeout: 252 seconds]
19:42
kriskropd has quit [Ping timeout: 252 seconds]
19:42
JesseH has quit [Ping timeout: 252 seconds]
19:42
aibot has joined #ruby
19:42
brendan- has quit [Ping timeout: 252 seconds]
19:42
kbni has quit [Ping timeout: 252 seconds]
19:42
nevynxxx has quit [Ping timeout: 252 seconds]
19:42
YaknotiS has quit [Ping timeout: 252 seconds]
19:42
woodruffw has quit [Ping timeout: 252 seconds]
19:42
kappy has quit [Ping timeout: 252 seconds]
19:42
ahuman has quit [Ping timeout: 252 seconds]
19:42
p0p0pr37 has quit [Ping timeout: 252 seconds]
19:42
bnjf has quit [Ping timeout: 252 seconds]
19:42
sneakerhax has quit [Ping timeout: 252 seconds]
19:42
Jamo has quit [Ping timeout: 252 seconds]
19:42
Tristan-Speccy has quit [Ping timeout: 252 seconds]
19:42
sethetter has quit [Ping timeout: 252 seconds]
19:42
jyaworski has quit [Ping timeout: 252 seconds]
19:42
genpaku has quit [Ping timeout: 252 seconds]
19:42
awk has quit [Ping timeout: 252 seconds]
19:42
alnewkirk has quit [Ping timeout: 252 seconds]
19:42
guacamole has quit [Ping timeout: 252 seconds]
19:42
AdamMeghji__ has quit [Ping timeout: 252 seconds]
19:42
jackhill has quit [Ping timeout: 252 seconds]
19:42
akkad has quit [Ping timeout: 252 seconds]
19:42
bratchley has quit [Ping timeout: 252 seconds]
19:42
michael_mbp has quit [Ping timeout: 252 seconds]
19:42
pfg has quit [Ping timeout: 252 seconds]
19:42
danzilio has quit [Ping timeout: 252 seconds]
19:42
FifthWall has quit [Ping timeout: 252 seconds]
19:42
eboaz has quit [Ping timeout: 252 seconds]
19:42
ltp has quit [Ping timeout: 252 seconds]
19:42
bmn has quit [Ping timeout: 252 seconds]
19:42
Papierkorb has quit [Ping timeout: 252 seconds]
19:42
brainslug has quit [Ping timeout: 252 seconds]
19:42
p0p0pr37_ is now known as p0p0pr37
19:42
ahuman has joined #ruby
19:42
duffy_duck has quit [Ping timeout: 252 seconds]
19:42
sergio_101 has quit [Ping timeout: 252 seconds]
19:42
hightower2 has quit [Ping timeout: 252 seconds]
19:42
ex0ns has quit [Ping timeout: 252 seconds]
19:42
elementaru has quit [Ping timeout: 252 seconds]
19:42
Authenticator has quit [Ping timeout: 252 seconds]
19:42
Gnubie_ has quit [Ping timeout: 252 seconds]
19:42
nexace has quit [Ping timeout: 252 seconds]
19:42
jidar has quit [Ping timeout: 252 seconds]
19:42
KramerC has quit [Ping timeout: 252 seconds]
19:43
ex0ns has joined #ruby
19:43
Gnubie_ has joined #ruby
19:43
slash_nick has joined #ruby
19:43
SebastianThorn has joined #ruby
19:43
twodayslate has joined #ruby
19:43
pabs has joined #ruby
19:43
bnjf has joined #ruby
19:43
ltp has joined #ruby
19:43
bratchley has joined #ruby
19:43
sethetter has joined #ruby
19:43
JackMc has joined #ruby
19:44
shaman42 has joined #ruby
19:44
pfg has joined #ruby
19:44
jackhill has joined #ruby
19:44
Rabbit__ has joined #ruby
19:44
awk has joined #ruby
19:44
guacamole has joined #ruby
19:44
danzilio has joined #ruby
19:44
Jamo has joined #ruby
19:44
genpaku has joined #ruby
19:44
nexace has joined #ruby
19:44
zenlot has joined #ruby
19:44
awk is now known as Guest1412
19:44
Expanse has joined #ruby
19:45
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
19:45
AdamMeghji__ has joined #ruby
19:46
GodFather_ has quit [Quit: Ex-Chat]
19:46
GodFather_ has joined #ruby
19:46
<
havenwood >
wrkrcoop: Is Bundler installed on the Ruby you're using? Sanity check `command -v bundler` and `gem which bundler`?
19:46
mattwashere has quit [Remote host closed the connection]
19:46
wrkrcoop has quit [Quit: wrkrcoop]
19:46
<
havenwood >
wrkrcoop: Same issue with?: bundle exec rackup
19:47
M-shine has joined #ruby
19:47
dminuoso has quit [Ping timeout: 240 seconds]
19:47
webnanners has joined #ruby
19:47
chridal has joined #ruby
19:47
okdas has joined #ruby
19:47
okdas has quit [Changing host]
19:47
okdas has joined #ruby
19:47
brainslug has joined #ruby
19:47
crank1988 has joined #ruby
19:47
Papierkorb has joined #ruby
19:47
jyaworski has joined #ruby
19:47
icedp has joined #ruby
19:47
segy has joined #ruby
19:47
nug has joined #ruby
19:47
tvsutton has joined #ruby
19:47
maxmanders has joined #ruby
19:47
jolamb has joined #ruby
19:47
theRoUS has joined #ruby
19:47
bmn has joined #ruby
19:48
mattwashere has joined #ruby
19:48
kitallis has joined #ruby
19:48
jenrzzz has joined #ruby
19:48
jenrzzz has quit [Changing host]
19:48
jenrzzz has joined #ruby
19:48
kbni has joined #ruby
19:48
M-mistake has joined #ruby
19:48
[reed] has joined #ruby
19:48
[reed] has joined #ruby
19:48
[reed] has quit [Changing host]
19:48
FifthWall has joined #ruby
19:48
KramerC has joined #ruby
19:48
majuscule has joined #ruby
19:48
davidcelis has joined #ruby
19:48
davidcelis has quit [Changing host]
19:48
davidcelis has joined #ruby
19:48
g3funk has joined #ruby
19:48
mattwashere has quit [Remote host closed the connection]
19:49
alnewkirk has joined #ruby
19:49
Tristan-Speccy has joined #ruby
19:49
NightMonkey has joined #ruby
19:49
Tristan-Speccy is now known as Guest83412
19:49
nevynxxx has joined #ruby
19:50
mgorbach has joined #ruby
19:50
kappy has joined #ruby
19:50
duracrisis has joined #ruby
19:50
ianconnolly has joined #ruby
19:50
duracrisis is now known as Guest61689
19:51
mattwashere has joined #ruby
19:51
TheMoonMaster has joined #ruby
19:52
coyo has quit [Ping timeout: 240 seconds]
19:53
woodruffw has joined #ruby
19:53
woodruffw has quit [Excess Flood]
19:54
woodruffw has joined #ruby
19:54
elementaru has joined #ruby
19:54
Vingador has quit [Ping timeout: 240 seconds]
19:55
JesseH has joined #ruby
19:55
hightower2 has joined #ruby
19:55
akkad has joined #ruby
19:55
jidar has joined #ruby
19:56
YaknotiS has joined #ruby
19:56
michael_mbp has joined #ruby
19:56
duffy_duck has joined #ruby
19:57
kriskropd has joined #ruby
19:57
blackmesa has quit [Ping timeout: 246 seconds]
19:57
SilverKey has joined #ruby
19:59
jenrzzz has quit [Ping timeout: 240 seconds]
20:00
SilverKey has quit [Client Quit]
20:04
SilverKey has joined #ruby
20:04
jenrzzz has joined #ruby
20:05
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
20:05
thatsnotjack has quit [Quit: leaving]
20:07
aaeron has joined #ruby
20:07
mathias__ has joined #ruby
20:08
mathias__ has left #ruby [#ruby]
20:10
skade has joined #ruby
20:11
hutch34 has joined #ruby
20:13
slackbotgz has joined #ruby
20:14
jaguarmagenta has joined #ruby
20:16
mattwashere has quit [Remote host closed the connection]
20:16
Devalo has quit [Remote host closed the connection]
20:18
GodFather_ has quit [Ping timeout: 250 seconds]
20:18
yardenbar has joined #ruby
20:18
jaguarmagenta has quit [Ping timeout: 240 seconds]
20:18
ChiefAlexander has quit [Remote host closed the connection]
20:19
allcentury has joined #ruby
20:20
floatingpoint has quit [Quit: Goodnight]
20:20
ChiefAlexander has joined #ruby
20:21
axsuul has joined #ruby
20:22
GodFather_ has joined #ruby
20:24
hahuang61 has joined #ruby
20:24
yardenbar has quit [Ping timeout: 260 seconds]
20:25
mattwashere has joined #ruby
20:25
AndroidLoverInSF has quit [Quit: Leaving]
20:28
symm- has quit [Ping timeout: 246 seconds]
20:31
crised has joined #ruby
20:31
rbennacer has joined #ruby
20:31
Silthias has joined #ruby
20:33
lxsameer has joined #ruby
20:33
symm- has joined #ruby
20:35
hahuang61 has quit [Ping timeout: 272 seconds]
20:36
floatingpoint has joined #ruby
20:36
Silthias has quit [Ping timeout: 272 seconds]
20:37
blackmesa has joined #ruby
20:37
abonec has quit [Ping timeout: 272 seconds]
20:38
zeroDi has quit [Quit: WeeChat 1.5]
20:39
coyo has joined #ruby
20:40
mtkd has quit [Ping timeout: 260 seconds]
20:41
kareeoleez has joined #ruby
20:41
ciampix has quit [Remote host closed the connection]
20:42
kareeole_ has joined #ruby
20:42
kareeole_ is now known as kareeoleez_
20:42
dminuoso has joined #ruby
20:43
mtkd has joined #ruby
20:43
karapetyan has quit [Remote host closed the connection]
20:43
wrkrcoop has joined #ruby
20:44
A124 has quit [Quit: '']
20:45
kareeoleez has quit [Ping timeout: 244 seconds]
20:46
yfeldblum has joined #ruby
20:46
nankyokusei has joined #ruby
20:47
coyo has quit [Ping timeout: 246 seconds]
20:47
A124 has joined #ruby
20:47
karapetyan has joined #ruby
20:47
slackbotgz has quit [Remote host closed the connection]
20:47
dminuoso has quit [Ping timeout: 240 seconds]
20:48
centrx has quit [Remote host closed the connection]
20:49
blackmes1 has joined #ruby
20:50
dopamean_ has quit [Quit: happy 4th]
20:50
LoneHerm_ has joined #ruby
20:50
elifoster has joined #ruby
20:50
floatingpoint has quit [Quit: Goodnight]
20:51
yqt has joined #ruby
20:51
[Butch]_ has joined #ruby
20:52
nankyokusei has quit [Ping timeout: 276 seconds]
20:52
rbennacer has quit [Remote host closed the connection]
20:52
blackmesa has quit [Ping timeout: 264 seconds]
20:53
aagdbl has quit [Quit: This computer has gone to sleep]
20:53
aagdbl has joined #ruby
20:53
rbennacer has joined #ruby
20:54
[Butch] has quit [Ping timeout: 272 seconds]
20:54
[Butch]_ is now known as [Butch]
20:55
LoneHerm_ has quit [Ping timeout: 260 seconds]
20:55
nando293921 has joined #ruby
20:56
aagdbl has quit [Client Quit]
20:56
isberg has joined #ruby
20:58
ChiefAlexander has quit [Quit: Leaving...]
20:58
Es0teric has quit [Quit: Computer has gone to sleep.]
21:00
abonec has joined #ruby
21:01
spider-mario has joined #ruby
21:01
coyo has joined #ruby
21:03
wigust has joined #ruby
21:04
SilverKey has quit [Quit: Halted.]
21:04
wigust has quit [Remote host closed the connection]
21:05
prestorium has quit [Quit: Leaving]
21:05
Devalo has joined #ruby
21:06
wigust has joined #ruby
21:06
Devalo has quit [Remote host closed the connection]
21:06
shinnya has joined #ruby
21:06
SirOliver has joined #ruby
21:07
ramfjord_ has joined #ruby
21:09
jetpack_joe has joined #ruby
21:09
anisha_ has joined #ruby
21:10
ramfjord has quit [Ping timeout: 250 seconds]
21:12
anisha has quit [Ping timeout: 272 seconds]
21:15
ldnunes has quit [Quit: Leaving]
21:15
_djbkd has quit [Remote host closed the connection]
21:16
SirOliver has quit [Quit: ZZZzzz…]
21:17
wigust has quit [Remote host closed the connection]
21:18
jenrzzz has quit [Ping timeout: 276 seconds]
21:20
axsuul has quit [Read error: Connection reset by peer]
21:21
rodfersou has quit [Quit: leaving]
21:21
centrx has joined #ruby
21:21
Stazer has joined #ruby
21:22
centrx has quit [Client Quit]
21:23
naftilos76 has quit [Remote host closed the connection]
21:23
SirOliver has joined #ruby
21:24
wigust has joined #ruby
21:24
SirOliver has quit [Client Quit]
21:24
karapetyan has quit [Remote host closed the connection]
21:26
karapetyan has joined #ruby
21:26
freerobby has quit [Quit: Leaving.]
21:28
GodFather_ has quit [Quit: Ex-Chat]
21:28
GodFather_ has joined #ruby
21:29
elifoster has quit [Quit: going to the store]
21:29
jenrzzz has joined #ruby
21:29
jetpack_joe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:31
allcentury has quit [Ping timeout: 260 seconds]
21:31
abonec has quit [Ping timeout: 240 seconds]
21:32
mattwashere has quit []
21:33
isberg has quit [Quit: I'm out]
21:33
uberbrodt has quit [Quit: Lost terminal]
21:34
skade has quit [Quit: Computer has gone to sleep.]
21:35
kavanagh has quit [Quit: That's all folks!]
21:35
aupadhye has quit [Read error: Connection reset by peer]
21:36
djbkd has joined #ruby
21:36
tokynet has quit [Quit: Connection closed for inactivity]
21:37
smathy is now known as smathy_afk
21:39
smathy_afk is now known as smathy
21:39
Contigi has joined #ruby
21:41
wlos has joined #ruby
21:41
Ishido has quit [Remote host closed the connection]
21:42
blackgoat has joined #ruby
21:42
mistermocha has joined #ruby
21:42
deecross_ has quit [Remote host closed the connection]
21:45
RegulationD has quit []
21:46
watersoul_ has joined #ruby
21:47
RegulationD has joined #ruby
21:47
jenrzzz has quit [Ping timeout: 276 seconds]
21:47
chip_ has quit [Ping timeout: 272 seconds]
21:50
abort has joined #ruby
21:50
jgw has joined #ruby
21:51
pabs_ has joined #ruby
21:51
LoneHermit has joined #ruby
21:51
bhaak_ has joined #ruby
21:51
ljarvis_ has joined #ruby
21:51
tvl has joined #ruby
21:51
lnx_ has joined #ruby
21:51
hirvi_ has joined #ruby
21:51
mc_fail_ has joined #ruby
21:51
spinagon has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
21:51
jsaak_ has joined #ruby
21:52
AndrewIs_ is now known as AndrewIsHere
21:53
lnx has quit [Write error: Broken pipe]
21:53
abort_ has quit [Write error: Broken pipe]
21:53
tobiasvl has quit [Write error: Broken pipe]
21:53
ohcibi has quit [Write error: Broken pipe]
21:53
cgfbee has quit [Excess Flood]
21:53
KrzaQ has quit [Excess Flood]
21:53
matp has quit [Excess Flood]
21:53
Sthebig has quit [Excess Flood]
21:53
Phanes has quit [Excess Flood]
21:53
agit0 has quit [Excess Flood]
21:53
demophoon has quit [Excess Flood]
21:53
electrostat has quit [Excess Flood]
21:53
tvl is now known as tobiasvl
21:53
gigidell has quit [Max SendQ exceeded]
21:53
mc_fail has quit [Write error: Broken pipe]
21:53
Jamo has quit [Write error: Broken pipe]
21:53
Nanuq has quit [Remote host closed the connection]
21:53
jgw_ has quit [Remote host closed the connection]
21:53
ltp has quit [Remote host closed the connection]
21:53
ljarvis has quit [Remote host closed the connection]
21:53
darix has quit [Remote host closed the connection]
21:53
pabs has quit [Remote host closed the connection]
21:53
KrzaQ has joined #ruby
21:53
Phanes has joined #ruby
21:53
Phanes has quit [Changing host]
21:53
Phanes has joined #ruby
21:53
electrostat has joined #ruby
21:53
ohcibi has joined #ruby
21:53
gigidell has joined #ruby
21:53
Nanuq has joined #ruby
21:53
ltp has joined #ruby
21:53
darix has joined #ruby
21:53
Sthebig has joined #ruby
21:53
Sthebig has quit [Changing host]
21:53
Sthebig has joined #ruby
21:53
demophoon has joined #ruby
21:53
watersoul has quit [Remote host closed the connection]
21:53
hahuang61 has joined #ruby
21:55
pabs_ is now known as pabs
21:55
cgfbee has joined #ruby
21:56
LoneHermit has quit [Ping timeout: 244 seconds]
21:57
roamingdog has joined #ruby
21:57
tvw has quit [Ping timeout: 260 seconds]
21:57
bhaak has quit [Ping timeout: 260 seconds]
21:57
hirvi has quit [Ping timeout: 260 seconds]
21:57
jsaak has quit [Ping timeout: 260 seconds]
21:57
joevandy1 has quit [Ping timeout: 260 seconds]
21:57
ahuman has quit [Ping timeout: 240 seconds]
21:57
joevandyk has joined #ruby
21:57
Jamo has joined #ruby
22:00
nettoweb has joined #ruby
22:00
last_staff has joined #ruby
22:01
ahuman has joined #ruby
22:01
whathappens has joined #ruby
22:01
djbkd has quit [Remote host closed the connection]
22:01
mdw_ has joined #ruby
22:02
mdw has quit [Ping timeout: 240 seconds]
22:02
Adam_FrVancouver has quit [Read error: Connection reset by peer]
22:02
djbkd has joined #ruby
22:03
Devalo has joined #ruby
22:03
Adam_FrVancouver has joined #ruby
22:03
jenrzzz has joined #ruby
22:03
jenrzzz has joined #ruby
22:03
jenrzzz has quit [Changing host]
22:04
freerobby has joined #ruby
22:05
nogic has quit [Ping timeout: 240 seconds]
22:05
DenSchub has quit [Ping timeout: 246 seconds]
22:06
DenSchub has joined #ruby
22:06
DenSchub has quit [Client Quit]
22:08
darix has quit [Quit: Changing server]
22:08
darix has joined #ruby
22:09
jetpack_joe has joined #ruby
22:10
Devalo has quit [Ping timeout: 264 seconds]
22:11
Xeago_ has joined #ruby
22:12
axl_ has quit [Quit: axl_]
22:12
[Butch] has quit [Ping timeout: 250 seconds]
22:13
djbkd has quit [Remote host closed the connection]
22:14
djbkd has joined #ruby
22:14
jaguarmagenta has joined #ruby
22:15
macsteps has joined #ruby
22:15
macsteps has quit [Remote host closed the connection]
22:15
macsteps has joined #ruby
22:15
DenSchub has joined #ruby
22:16
Xeago_ has quit [Ping timeout: 272 seconds]
22:17
mdw_ has quit [Quit: Sleeping Zzzzz]
22:18
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:19
jaguarmagenta has quit [Ping timeout: 250 seconds]
22:20
rbennacer has quit [Remote host closed the connection]
22:20
kareeoleez_ is now known as kareeoleez
22:22
firstdayonthejob has quit [Ping timeout: 246 seconds]
22:24
roamingdog has quit [Read error: Connection reset by peer]
22:24
carella has quit [Read error: Connection timed out]
22:24
lxsameer has quit [Quit: WeeChat 1.5]
22:24
roamingdog has joined #ruby
22:24
anisha_ has quit [Quit: This computer has gone to sleep]
22:25
carella has joined #ruby
22:27
kraken_ has quit [Quit: Leaving]
22:27
ramfjord_ has quit [Ping timeout: 258 seconds]
22:28
B1n4r10 has joined #ruby
22:28
kavanagh has joined #ruby
22:29
cd-rum has joined #ruby
22:29
ramfjord has joined #ruby
22:31
cd-rum has quit [Max SendQ exceeded]
22:31
agentmeerkat has quit [Ping timeout: 264 seconds]
22:31
aaeron has quit [Quit: aaeron]
22:32
cd-rum has joined #ruby
22:32
aaeron has joined #ruby
22:34
jetpack_joe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:34
zenlot6 has joined #ruby
22:34
zenlot has quit [Ping timeout: 258 seconds]
22:35
skade has joined #ruby
22:35
kareeole_ has joined #ruby
22:35
skade has quit [Client Quit]
22:35
kareeoleez has quit [Ping timeout: 260 seconds]
22:36
whathappens has quit [Remote host closed the connection]
22:36
wlos has quit [Quit: Konversation terminated!]
22:36
whathappens has joined #ruby
22:37
cd-rum has quit [Ping timeout: 258 seconds]
22:39
mistermocha has quit [Remote host closed the connection]
22:40
mistermocha has joined #ruby
22:40
vuoto has quit [Read error: Connection reset by peer]
22:41
whathappens has quit [Ping timeout: 240 seconds]
22:41
anna` has left #ruby ["-"]
22:41
cd-rum has joined #ruby
22:41
jenrzzz has quit [Ping timeout: 260 seconds]
22:42
polishdub has quit [Quit: Leaving]
22:42
kirun has quit [Remote host closed the connection]
22:43
rcvalle has quit [Quit: rcvalle]
22:43
whathappens has joined #ruby
22:44
mistermocha has quit [Ping timeout: 250 seconds]
22:44
kareeole_ has quit [Ping timeout: 272 seconds]
22:45
cd-rum has quit [Client Quit]
22:46
hahuang61 has quit [Ping timeout: 258 seconds]
22:47
kareeoleez has joined #ruby
22:47
[gmi] has joined #ruby
22:47
nankyokusei has joined #ruby
22:49
craigp has joined #ruby
22:50
B1n4r10 has quit [Ping timeout: 244 seconds]
22:52
nankyokusei has quit [Ping timeout: 246 seconds]
22:52
hxegon is now known as hxegon_afk
22:53
LoneHermit has joined #ruby
22:53
[gmi] has quit [Quit: Leaving]
22:55
jetpack_joe has joined #ruby
22:55
panpainter has joined #ruby
22:56
kraken has joined #ruby
22:56
kraken is now known as kraken_
22:56
jenrzzz has joined #ruby
22:57
kareeoleez has quit [Remote host closed the connection]
22:57
<
kraken_ >
if I ahve an array arr = [3,2,1,43,4], and I want to assign arr[0] and arr[3] the same variable, is there any way to do this in one line?
22:57
LoneHermit has quit [Ping timeout: 250 seconds]
22:57
hutch34 has quit [Ping timeout: 250 seconds]
22:58
swills has joined #ruby
22:59
psmmr has joined #ruby
22:59
<
kraken_ >
looks great to me
22:59
<
kraken_ >
thank you
22:59
c0mrad3 has quit [Quit: Connection closed for inactivity]
22:59
<
kraken_ >
I guess they would both point to the exact same object though wouldn't they
23:00
wrkrcoop has quit [Quit: wrkrcoop]
23:00
matp has joined #ruby
23:01
dennisvennink has joined #ruby
23:01
<
havenwood >
kraken_: Is that what you want?
23:01
<
kraken_ >
hmm I see
23:01
<
kraken_ >
thank you
23:01
jetpack_joe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:02
whathappens has quit [Remote host closed the connection]
23:02
toretore has quit [Ping timeout: 246 seconds]
23:02
whathappens has joined #ruby
23:03
nankyokusei has joined #ruby
23:05
isberg has joined #ruby
23:05
spider-mario has quit [Remote host closed the connection]
23:07
whathappens has quit [Ping timeout: 258 seconds]
23:07
chouhoul_ has joined #ruby
23:08
chouhou__ has joined #ruby
23:09
nankyokusei has quit [Ping timeout: 272 seconds]
23:09
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:10
chouhoulis has quit [Ping timeout: 240 seconds]
23:10
preyalone has joined #ruby
23:10
jenrzzz has quit [Ping timeout: 272 seconds]
23:11
chouhoul_ has quit [Ping timeout: 240 seconds]
23:12
bhaak_ has quit [Ping timeout: 260 seconds]
23:12
bhaak has joined #ruby
23:13
chouhou__ has quit [Ping timeout: 264 seconds]
23:14
aaeron has quit [Quit: aaeron]
23:14
jhack has quit [Quit: jhack]
23:15
Regulati_ has joined #ruby
23:15
Stazer has quit [Ping timeout: 258 seconds]
23:17
GodFather_ has quit [Ping timeout: 250 seconds]
23:17
RegulationD has quit [Ping timeout: 240 seconds]
23:19
psmmr has quit [Remote host closed the connection]
23:19
<
elomatreb >
kraken_: I guess you could store the order of the pieces in a variable beforehand, and then iterate over it, placing the figures. Do again for black/white
23:20
<
kraken_ >
hmm I see
23:20
<
kraken_ >
makes sense
23:21
wigust has quit [Remote host closed the connection]
23:22
wigust has joined #ruby
23:22
smathy has joined #ruby
23:23
smathy has quit [Client Quit]
23:24
davedev__ has quit [Remote host closed the connection]
23:25
SilverKey has joined #ruby
23:26
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
23:27
agentmeerkat has joined #ruby
23:29
SilverKey has quit [Client Quit]
23:30
hutch34 has joined #ruby
23:30
symm- has quit [Ping timeout: 264 seconds]
23:30
kareeoleez has joined #ruby
23:30
wrkrcoop has joined #ruby
23:32
isberg has quit [Remote host closed the connection]
23:32
agentmeerkat has quit [Ping timeout: 246 seconds]
23:33
yqt has quit [Ping timeout: 250 seconds]
23:33
gizless has joined #ruby
23:35
hahuang61 has joined #ruby
23:36
blur3d has joined #ruby
23:36
blur3d has quit [Client Quit]
23:37
gizmore has quit [Ping timeout: 276 seconds]
23:37
crised has quit [Remote host closed the connection]
23:39
kareeoleez has quit [Remote host closed the connection]
23:45
mattwashere has joined #ruby
23:45
mattwashere has quit [Remote host closed the connection]
23:46
wrkrcoop has quit [Quit: wrkrcoop]
23:50
hahuang61 has quit [Quit: WeeChat 1.5]
23:50
KindOne has joined #ruby
23:50
craigp has quit [Ping timeout: 250 seconds]
23:51
KindOne has left #ruby ["."]
23:52
mtkd has quit [Ping timeout: 246 seconds]
23:52
skweek has quit [Ping timeout: 246 seconds]
23:52
skweek has joined #ruby
23:54
mtkd has joined #ruby
23:55
rbennacer has joined #ruby
23:56
solocshaw has joined #ruby
23:57
sneakers has quit [Ping timeout: 260 seconds]
23:57
B1n4r10 has joined #ruby
23:58
SilverKey has joined #ruby
23:59
TheCoffee has joined #ruby