apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
jbrechtel has joined #ruby
randomau_ has joined #ruby
postmodern has joined #ruby
poga has joined #ruby
rcosta has joined #ruby
dankest has quit [Quit: dankest]
nhhagen has joined #ruby
randomautomator has quit [Ping timeout: 264 seconds]
hasrb has quit [Remote host closed the connection]
ryandeus_ has joined #ruby
randomau_ has quit [Ping timeout: 240 seconds]
ryandeussing has quit [Ping timeout: 264 seconds]
Vivekananda has quit [Read error: Connection reset by peer]
randomau_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
nhhagen has quit [Ping timeout: 245 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rym has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
julweber has quit [Remote host closed the connection]
Stygia has quit [Quit: Leaving]
nari_ has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
jbrechtel has quit [Remote host closed the connection]
jbrechtel has joined #ruby
DonRichie has quit [Quit: Verlassend]
diegoviola has joined #ruby
Asher has quit [Quit: Leaving.]
jbrechtel has quit [Read error: Operation timed out]
sailias has joined #ruby
hogeo has joined #ruby
dkamioka has quit [Remote host closed the connection]
tvw has quit []
Croms has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
mm__ has quit [Ping timeout: 246 seconds]
stonevil has joined #ruby
okinomo has joined #ruby
ra has left #ruby ["leaving"]
tkuchiki has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
obelich has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0/20130803192641]]
classix has quit [Ping timeout: 264 seconds]
cantonic has quit [Ping timeout: 245 seconds]
Es0teric has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Ping timeout: 264 seconds]
cantonic has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDHankle has joined #ruby
zerowaitstate has joined #ruby
julweber has joined #ruby
classix has joined #ruby
ndrei has joined #ruby
mansi has joined #ruby
fenicks has quit [Remote host closed the connection]
Davey has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
classix has quit [Ping timeout: 246 seconds]
mansi has quit [Ping timeout: 245 seconds]
buzzybron has joined #ruby
thesheff17 has quit [Quit: Leaving]
julweber has quit [Ping timeout: 245 seconds]
thesheff17 has joined #ruby
freerobby has quit [Quit: Leaving.]
rcosta has quit [Remote host closed the connection]
Heero` has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
sailias has quit [Quit: Leaving.]
dennus has quit []
mansi has joined #ruby
Xaitec has joined #ruby
nari_ has quit [Ping timeout: 264 seconds]
Xaitec has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Heero` has quit [Client Quit]
Heero` has joined #ruby
Es0teric has joined #ruby
polaco is now known as polaco_zZz
sevenseacat has joined #ruby
sventon has joined #ruby
SHyx0rmZ has quit [Ping timeout: 245 seconds]
polaco_zZz is now known as polaco
snovak has joined #ruby
classix has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
brain_shim has quit [Ping timeout: 245 seconds]
jbrechtel has joined #ruby
nhhagen has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Ziarkaen has quit [Read error: Connection reset by peer]
Vivekananda has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
Bira has quit [Read error: Connection reset by peer]
amacgregor has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
Bira has joined #ruby
Vivekananda has quit [Max SendQ exceeded]
nhhagen has quit [Ping timeout: 246 seconds]
bricker`LA has joined #ruby
Vivekananda has joined #ruby
ner0x has joined #ruby
Jb_ has quit [Ping timeout: 264 seconds]
JDHankle has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 264 seconds]
JDHankle has joined #ruby
Jb_ has joined #ruby
Vivekananda has quit [Max SendQ exceeded]
phutchins has joined #ruby
cantonic has quit [Quit: cantonic]
Vivekananda has joined #ruby
angusigu2ss has quit [Ping timeout: 256 seconds]
gyre007 has quit [Remote host closed the connection]
atyz has joined #ruby
soba has joined #ruby
duggiefresh has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
azcodex has quit [Quit: azcodex]
helvete has quit [Ping timeout: 245 seconds]
krainboltgreene has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
Vivekananda has joined #ruby
tyfighter has quit [Quit: tyfighter]
bricker`LA has quit [Quit: leaving]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
angusigu2ss has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Remote host closed the connection]
iamjarvo has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
nari_ has joined #ruby
kizzx2 has joined #ruby
Vivekananda has quit [Ping timeout: 256 seconds]
rdxc has quit [Quit: Textual IRC Client: www.textualapp.com]
Bira has quit [Remote host closed the connection]
hexacode has quit [Quit: leaving]
phantasm66 has quit [Quit: *sleeeep….]
rads has joined #ruby
Vivekananda has joined #ruby
freerobby has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
mike4_ has joined #ruby
sayan has joined #ruby
zerowaitstate has quit [Quit: Leaving]
<mike4_> how do i set an HTTP proxy to be used when sending emails in ruby?
r0bgl33s0n has joined #ruby
r0bglees0n has quit [Ping timeout: 256 seconds]
aryaching has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
<buzzybron> what lib should i be using if i want to have a native logger in ruby?
Asher has joined #ruby
weems has quit [Ping timeout: 256 seconds]
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
Domon has joined #ruby
sventon has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
<buzzybron> require 'logger' i see
volty has quit [Quit: Konversation terminated!]
aryaching has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
duracrisis_ has joined #ruby
angusigu2ss has quit [Ping timeout: 245 seconds]
ixti has quit [Quit: WeeChat 0.4.1]
KobraKao has quit [Quit: Saindo]
Bira has joined #ruby
stonevil has quit [Remote host closed the connection]
snovak has joined #ruby
Vivekananda has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 245 seconds]
iIlL10Oo has joined #ruby
dankest has joined #ruby
Vivekananda has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
duracrisis has joined #ruby
duracrisis has quit [Changing host]
duracrisis has joined #ruby
polaco is now known as polaco_zZz
Vivekananda has quit [Client Quit]
angusigu2ss has joined #ruby
Vivekananda has joined #ruby
crucify_me has joined #ruby
duracrisis_ has quit [Ping timeout: 260 seconds]
weems has joined #ruby
Asher has quit [Quit: Leaving.]
dhruvasagar has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mootpointer has joined #ruby
Davey has joined #ruby
vxtr9 has quit [Quit: leaving]
okinomo has joined #ruby
larissa has joined #ruby
Asher has joined #ruby
momomomomo has joined #ruby
gildo has quit [Read error: Operation timed out]
gyre007 has joined #ruby
jkline has joined #ruby
jkline has quit [Client Quit]
iamjarvo has quit [Quit: Leaving.]
rezzack has quit [Quit: Leaving.]
gyre007 has quit [Read error: Operation timed out]
iamjarvo has joined #ruby
rads has quit [Quit: rads]
okinomo_ has joined #ruby
okinomo_ has quit [Client Quit]
okinomo_ has joined #ruby
DonVitoCorleone has quit [Quit: Quit]
radic_ has joined #ruby
goleldar has quit [Ping timeout: 268 seconds]
radic__ has quit [Read error: Operation timed out]
sayan has quit [Ping timeout: 245 seconds]
rust has quit [Quit: This computer has gone to sleep]
phantasm66 has quit [Quit: *poof*]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
Monie has joined #ruby
atyz has quit [Quit: Leaving...]
huoxito has joined #ruby
Targen has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 264 seconds]
randomau_ has quit [Remote host closed the connection]
akells has joined #ruby
randomautomator has joined #ruby
Nitrodex has joined #ruby
Nitrodex is now known as Guest42405
Guest42405 has quit [Client Quit]
kumarat9pm has joined #ruby
atyz has joined #ruby
akells has quit [Ping timeout: 256 seconds]
randomautomator has quit [Ping timeout: 260 seconds]
sirecote has quit [Ping timeout: 264 seconds]
sirecote has joined #ruby
varfoo has joined #ruby
ixx has quit [Ping timeout: 256 seconds]
Bira has quit []
stonevil has joined #ruby
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
varfoo has quit [Quit: WeeChat 0.4.0]
goleldar has joined #ruby
ixx has joined #ruby
ixx is now known as Guest27516
stonevil has quit [Ping timeout: 246 seconds]
snovak has joined #ruby
tabolario has joined #ruby
okinomo has quit [Ping timeout: 246 seconds]
sirecote has quit [Ping timeout: 245 seconds]
okinomo_ has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 245 seconds]
sirecote has joined #ruby
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
duard has joined #ruby
jbomo has joined #ruby
Monie has quit [Quit: Textual IRC Client: www.textualapp.com]
sirecote has quit [Ping timeout: 245 seconds]
bricker`LA has joined #ruby
simplyaubs has joined #ruby
aryaching has quit []
Asher has quit [Quit: Leaving.]
Quashie_ has joined #ruby
simplyaubs has quit [Client Quit]
Quashie has quit [Disconnected by services]
Quashie_ is now known as Quashie
okinomo has joined #ruby
zeropx has joined #ruby
zeropx has quit [Client Quit]
zeropx has joined #ruby
Heero` has quit [Quit: Leaving]
yacks has quit [Ping timeout: 245 seconds]
okinomo_ has joined #ruby
yxhuvud2 has quit [Ping timeout: 245 seconds]
yxhuvud has joined #ruby
jbrechtel has quit [Remote host closed the connection]
jbrechtel has joined #ruby
caju has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
sirecote has joined #ruby
jbrechtel has quit [Ping timeout: 264 seconds]
bricker`LA is now known as bricker
amacgregor_ has joined #ruby
Rym has quit [Ping timeout: 240 seconds]
Rym_ has joined #ruby
yacks has joined #ruby
sirecote has quit [Ping timeout: 245 seconds]
thelorax123 has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
zeropx has quit [Quit: has left the room … Or did he?]
zeropx has joined #ruby
bthesorceror has joined #ruby
dodosan has joined #ruby
thelorax123 has quit [Remote host closed the connection]
Guest95667 has joined #ruby
brain_shim has joined #ruby
endash has quit [Quit: endash]
joshu has quit [Quit: Computer has gone to sleep.]
Asher has joined #ruby
havenwood has joined #ruby
Rym has joined #ruby
brunoro has joined #ruby
Rym_ has quit [Ping timeout: 256 seconds]
eldariof has joined #ruby
dankest has quit [Read error: Connection reset by peer]
iamjarvo has quit [Remote host closed the connection]
crucify_me has quit [Disconnected by services]
iamjarvo has joined #ruby
crucify_me has joined #ruby
buibex has joined #ruby
okinomo__ has joined #ruby
Guest95667 has quit [Ping timeout: 245 seconds]
buibex has quit [Remote host closed the connection]
sirecote_ has joined #ruby
okinomo__ has quit [Client Quit]
kobain has quit []
okinomo__ has joined #ruby
iamjarvo has quit [Ping timeout: 256 seconds]
crucify_me has quit [Disconnected by services]
bricker has quit [Remote host closed the connection]
blueOxigen has joined #ruby
okinomo has quit [Ping timeout: 240 seconds]
amacgregor has joined #ruby
crucify_me has joined #ruby
ner0x has quit [Quit: Leaving]
duggiefresh has quit [Remote host closed the connection]
crucify_me has quit [Disconnected by services]
amacgregor_ has quit [Ping timeout: 256 seconds]
crucify_me has joined #ruby
crucify_me is now known as n_blownapart
okinomo__ has quit [Client Quit]
okinomo has joined #ruby
dawkirst has quit [Ping timeout: 245 seconds]
okinomo has quit [Client Quit]
okinomo has joined #ruby
mweshi has joined #ruby
i8igmac has quit [Quit: Leaving]
ewnd9_ has joined #ruby
Davedo has quit [Quit: Free as in Wine!]
snovak has joined #ruby
braincrash has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
lewis has joined #ruby
momomomomo has quit [Quit: momomomomo]
lewis has quit [Changing host]
lewis has joined #ruby
brunoro has quit [Quit: WeeChat 0.4.0]
braincrash has joined #ruby
dawkirst has joined #ruby
crazysim has quit [Excess Flood]
Davedo has joined #ruby
crazysim has joined #ruby
Nisstyre has quit [Ping timeout: 245 seconds]
crazysim has quit [Excess Flood]
mweshi has quit [Quit: mweshi]
crazysim has joined #ruby
yacks has quit [Quit: Leaving]
lewis is now known as Lewix
mweshi has joined #ruby
sayan has joined #ruby
crazysim has quit [Max SendQ exceeded]
crazysim has joined #ruby
ssvo has joined #ruby
julweber has joined #ruby
buzzybron1 has joined #ruby
cads has quit [Ping timeout: 245 seconds]
futilegames has joined #ruby
n_blownapart has quit [Remote host closed the connection]
buzzybron has quit [Ping timeout: 245 seconds]
julweber has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
mweshi has left #ruby [#ruby]
iliketur_ has joined #ruby
n_blownapart has joined #ruby
popl has joined #ruby
maletor has joined #ruby
IceDragon has quit [Quit: Space~~~]
mootpointer has quit [Ping timeout: 245 seconds]
n_blownapart has quit [Remote host closed the connection]
maletor has quit [Client Quit]
amacgregor_ has joined #ruby
jamesaanderson has joined #ruby
okinomo_ has quit [Ping timeout: 245 seconds]
okinomo has quit [Ping timeout: 246 seconds]
duard has quit [Remote host closed the connection]
amacgregor has quit [Ping timeout: 264 seconds]
Monie has joined #ruby
Domon has quit [Remote host closed the connection]
Monie has quit [Client Quit]
Domon has joined #ruby
mweshi has joined #ruby
sirecote_ is now known as sirecote
mweshi has left #ruby [#ruby]
mweshi has joined #ruby
mweshi has quit [Client Quit]
momomomomo has joined #ruby
mweshi has joined #ruby
Domon has quit [Ping timeout: 246 seconds]
intuxicated has joined #ruby
tyfighter has joined #ruby
DonRichie has joined #ruby
wuwy has quit []
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
buzzybron has joined #ruby
buzzybron1 has quit [Ping timeout: 240 seconds]
duracrisis has quit [Ping timeout: 240 seconds]
bthesorceror has quit [Quit: bthesorceror]
kizzx2 has quit [Quit: Leaving.]
Andrevan has joined #ruby
weems has quit [Read error: Connection reset by peer]
mweshi has quit [Quit: mweshi]
jamesaanderson has joined #ruby
mansi has joined #ruby
companion is now known as Companion
momomomomo has quit [Quit: momomomomo]
mansi has quit [Ping timeout: 245 seconds]
skulls has quit [Quit: skulls]
antulik-afk is now known as antulik
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
Domon has joined #ruby
eldariof has quit [Ping timeout: 260 seconds]
havenwood has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
intuxicated has quit [Ping timeout: 245 seconds]
Companion is now known as companion
intuxicated has joined #ruby
s2013 has quit [Quit: Leaving]
browndawg has joined #ruby
intuxicated has quit [Max SendQ exceeded]
dachi has joined #ruby
intuxicated has joined #ruby
seich- has quit [Ping timeout: 245 seconds]
antulik is now known as antulik-afk
DonVitoCorleone has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
girija has joined #ruby
<dachi> Hello everybody. I've been programming for Rails for over a half year, so I have some knowledge, we're doing a lab project with my team, but right now I'm working alone on a Ruby command line application. I have a little question, in several books or articles, which I don't remember I have seen that people put some code at the bottom of applications, I think those 2-3 words on 1 or 2 lines might include $0 or $1 maybe ARGVS as well. If i
<dachi> you could you please guide me a little bit to it, perhaps by giving a name what that thing is all about so I can search for it?
kizzx2 has joined #ruby
fridim_ has quit [Ping timeout: 264 seconds]
<flaccid> i don't understand dachi
kizzx2 has quit [Max SendQ exceeded]
<dachi> oh okay I'm sorry. Just forget, I'll try to search for it somehow
kizzx2 has joined #ruby
Monie has joined #ruby
seich- has joined #ruby
<dachi> it was something like if __FILE__ == $0 but I'm not sure...
okinomo has joined #ruby
tobago has joined #ruby
dhruvasagar has joined #ruby
<flaccid> dachi: no idea what you mean. i just use methadone atm for ruby cli programs
tyfighter has quit [Quit: tyfighter]
okinomo_ has joined #ruby
mrsolo has joined #ruby
tobago has quit [Client Quit]
tobago has joined #ruby
DonRichie has quit [Quit: Verlassend]
tobago has quit [Client Quit]
tobago has joined #ruby
pranny has joined #ruby
hakunin has joined #ruby
kizzx2 has quit [Ping timeout: 246 seconds]
ksh has joined #ruby
<dachi> flaccid: thanks a lot, i'll check it out
mrsolo has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
dachi has quit [Quit: Page closed]
havenwood has joined #ruby
duracrisis has joined #ruby
tagrudev has joined #ruby
Andrevan has quit []
axeman- has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
futilegames has quit [Quit: futilegames]
bronson_ has quit [Quit: bronson_]
vlad_starkov has joined #ruby
TIJ has joined #ruby
okinomo_ has quit [Quit: Lost terminal]
okinomo_ has joined #ruby
okinomo__ has joined #ruby
duracrisis has quit [Ping timeout: 264 seconds]
okinomo_ has quit [Client Quit]
okinomo__ has quit [Client Quit]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
okinomo_ has joined #ruby
okinomo_ has quit [Client Quit]
okinomo_ has joined #ruby
okinomo__ has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
okinomo_1 has joined #ruby
okinomo_2 has joined #ruby
alepore has joined #ruby
avril14th has joined #ruby
osvico has quit [Ping timeout: 260 seconds]
<angusigu2ss> exit
angusigu2ss has quit [Quit: leaving]
<waxjar> dachi, sinatra has it in its code. i think it's something like __FILE__ == $0 yea
momomomomo has joined #ruby
mansi has joined #ruby
momomomomo has quit [Client Quit]
rads has joined #ruby
rezzack has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
afei has joined #ruby
apeiros has quit [Remote host closed the connection]
NealJ has quit [Quit: :c]
axeman- has quit [Remote host closed the connection]
jonahR has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
axeman- has joined #ruby
braoru has joined #ruby
futilegames has joined #ruby
dhruvasagar has joined #ruby
dodosan has quit [Remote host closed the connection]
Monie has quit [Quit: Textual IRC Client: www.textualapp.com]
ananthakumaran has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran1 has joined #ruby
Macaveli has joined #ruby
rezzack has quit [Ping timeout: 245 seconds]
Matriks has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
tyfighter has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran1 has quit [Read error: Connection reset by peer]
tyfighter has quit [Client Quit]
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
vlad_starkov has joined #ruby
aryaching has joined #ruby
tonni has quit [Remote host closed the connection]
nhhagen has joined #ruby
relix has joined #ruby
Fractional has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Emiils has joined #ruby
sayan has quit [Ping timeout: 264 seconds]
dash_ has joined #ruby
andikr has joined #ruby
Al_ has joined #ruby
ferdev has joined #ruby
Lewix has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
__Cr0 has joined #ruby
drdru has joined #ruby
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
optimusprimem has joined #ruby
defaultro has joined #ruby
<drdru> I'm trying to install gstreamer gem for 1.8.7 (I know it's unmaintained - I don't have any choice), and the install fails with RUBY_T_HASH undeclared
<sevenseacat> 1.8.7 buddies!
<drdru> I change RUBY_T_HASH to T_HASH and re-run ruby extconf.rb and then run make/make install
<drdru> but glib2 never seems to get installed, despite make not having any errors
<drdru> sevenseacat: yes, 1.8.7 :(
<drdru> any idea how I can get glib2 to install properly?
<drdru> I'm trying to get a piece of software running which requires 1.8.7
<drdru> I tried 2.0.0 and I get funky errors
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
girija has quit [Ping timeout: 245 seconds]
ayaz has joined #ruby
huoxito has quit [Quit: Leaving]
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
Elhu has joined #ruby
bigkevmcd has quit [Ping timeout: 246 seconds]
fn_great has quit [Quit: Leaving]
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
d2dchat_ has joined #ruby
ananthakumaran has joined #ruby
<drdru> how can I debug this error?
<drdru> ERROR -- : undefined method `set_property' for nil:NilClass (NoMethodError)
neo_ has joined #ruby
<drdru> if I go to the line in question:
<drdru> @asr.set_property(k, v)
Domon has quit [Remote host closed the connection]
<__Cr0> drdru: asr is nil..
flaccid has left #ruby ["Konversation terminated!"]
Al_ has quit [Quit: Al_]
Domon has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
d2dchat_ has quit [Remote host closed the connection]
Domon has quit [Read error: Connection reset by peer]
tonni has joined #ruby
bigkevmcd has joined #ruby
Domon has joined #ruby
drdru has left #ruby [#ruby]
dhruvasagar has joined #ruby
apfelbox has joined #ruby
Macaveli has quit [Quit: Computer has gone to sleep.]
Croms has quit [Quit: Croms]
dodosan has joined #ruby
JonathanNeal has joined #ruby
havenwood has joined #ruby
<JonathanNeal> Hello. I am a ruby beginner.
<JonathanNeal> I am trying to learn Ruby by playing https://www.bloc.io/ruby-warrior
visof has joined #ruby
<JonathanNeal> I am able to make it to level 4, where I need to store my warrior's health in a variable. I'm unsure of how to use variables in ruby. Would someone explain to me how I'm misusing a variable here? https://gist.github.com/jonathantneal/74958f05833edb4c2ff3
zastern has quit [Read error: Connection reset by peer]
Croms has joined #ruby
dash_ has quit [Ping timeout: 245 seconds]
zastern has joined #ruby
<bnagy> nfi
<bnagy> wait, let me play
girija has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
dash_ has joined #ruby
sr78ger has joined #ruby
jbomo has quit [Ping timeout: 240 seconds]
filipe has joined #ruby
Monie has joined #ruby
io_syl has joined #ruby
jokke has quit [Quit: WeeChat 0.4.1]
jokke has joined #ruby
<JonathanNeal> bnagy: :)
zastern has quit [Ping timeout: 246 seconds]
ehaliewicz has quit [Ping timeout: 260 seconds]
mansi has joined #ruby
blackmesa has joined #ruby
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
jonkri has quit [Quit: jonkri]
mansi has quit [Ping timeout: 246 seconds]
apeiros has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
io_syl has quit [Quit: io_syl]
<bnagy> ok.. I think your logic is wrong
<bnagy> and also you're saving health in the wrong place
Monie has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> basically, it should be 'if the next square is empty, and I'm NOT taking damage'
nhhagen has quit [Ping timeout: 264 seconds]
<DefV> your health is defined on the class level atm
<DefV> it should be at the instance level
<DefV> class Player
<bnagy> which can be one of many constructions, but warrior.feel.empty? && @health == warrior.health # taken no damage
<DefV> def initialize; @health = 20; end
<bnagy> stop stop stop
julweber has joined #ruby
<bnagy> don't paste into channel
<DefV> I'm not
ananthakumaran has quit [Read error: Connection reset by peer]
alup has joined #ruby
<bnagy> but you can't assign to @health
Elhu has quit [Quit: Computer has gone to sleep.]
<bnagy> well, unless the game is broken
pr0ggie has quit [Read error: Connection reset by peer]
ckampfe has quit [Ping timeout: 264 seconds]
julweber has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
devoldmx has joined #ruby
zastern has joined #ruby
persand has joined #ruby
ndrei has joined #ruby
jprovazn has joined #ruby
CpuID has joined #ruby
<CpuID> hey ppls - whats the best way to set attr_reader on all instance variables within a class?
Macaveli has joined #ruby
<sevenseacat> that doesnt sound wise.
<popl> wisdom is overrated!
TIJ has quit [Remote host closed the connection]
optimusprimem has quit [Ping timeout: 245 seconds]
<CpuID> hehe
<CpuID> hey, its a reader :P
<JonathanNeal> DefV: thanks
<CpuID> ive got a handful of stuff i set in my class, that i want to expose outside of it effectively
<sevenseacat> yeah but auto-exposing everything is pointless
TIJ has joined #ruby
<CpuID> what would you recommend instead?
<sevenseacat> expose what you need' to expose
<CpuID> the class effectively just contains a handful of metadata, configuration specific stuff actually in def initialize
<CpuID> and i have various classes that are similar-ish, with different values
<CpuID> depending which one i class.new on - ill obviously interrogate that object for what i want out of it
relix_ has joined #ruby
relix has quit [Read error: Connection reset by peer]
<bnagy> just expose a hash or something
<bnagy> or use DelegateClass to a hash or Ostruct etc
<bnagy> which is just that
sayan has joined #ruby
<popl> can't you get put on some sort of register for exposing your hash?
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
|jemc| has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
optimusprimem has joined #ruby
Domon has quit [Remote host closed the connection]
Domon has joined #ruby
sirecote has quit [Ping timeout: 240 seconds]
Domon_ has joined #ruby
Domon has quit [Read error: Connection reset by peer]
visof has quit [Changing host]
visof has joined #ruby
TIJ has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
timonv has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
afei has quit [Remote host closed the connection]
sirecote has joined #ruby
zoee has joined #ruby
sirecote has quit [Excess Flood]
troessner has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
<CpuID> yea im considering just putting all this stuff in a hash
<CpuID> tbh if i do that i almost defeat the purpose of putting this in a class also :)
<CpuID> as the class doesnt contain anything else
wallerdev has quit [Quit: wallerdev]
<bnagy> lightbulb
<bnagy> "If your class is just a container for data, how about using a data container instead?"
helvete has joined #ruby
helvete has quit [Client Quit]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
ilmerovingio has joined #ruby
nemesit|znc has quit [Ping timeout: 240 seconds]
TIJ has joined #ruby
aryaching_ has joined #ruby
<CpuID> lol bnagy thanks
workmad3 has joined #ruby
atyz has quit [Ping timeout: 246 seconds]
Macaveli has quit [Ping timeout: 245 seconds]
<ilmerovingio> Hi, I'm new about ruby. I think that I've discover a bug in the temple 0.6.5 gems. Here's the seg-fault log --> https://gist.github.com/ilmerovingio/edd5b22a54663f32d70c
nemesit|znc has joined #ruby
tvw has joined #ruby
aryaching has quit [Ping timeout: 246 seconds]
<bnagy> ilmerovingio: report it to the owner
<ilmerovingio> bnagy: yes i know but can you tell me if in your opinion this is related to the temple gems or not?
<bnagy> nfi?
sirecote has joined #ruby
Coffers has joined #ruby
<bnagy> certainly looks like it, whatever that gem is
ananthakumaran has quit [Read error: Connection reset by peer]
<ilmerovingio> many thanks anyway bnagy, I'm asking here before report it cause I'm new in ruby
DanKnox is now known as DanKnox_away
ananthakumaran has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<sevenseacat> if you do report it as a bug, you'll need to provide a lot more information than that.
<bnagy> ok well try and make sure that you're reporting with your full ruby version, trim up that trace, and see if you can give them a minimal faulting program
dhruvasagar has joined #ruby
<iIlL10Oo> ilmerovingio: open http://rubygems.org/ and search "temple" , you will find the gem's owner
<ilmerovingio> iIlL10Oo many thanks
<iIlL10Oo> ilmerovingio: :)
Es0teric has quit [Quit: Computer has gone to sleep.]
amacgregor_ has quit [Read error: Connection reset by peer]
ssvo has quit [Ping timeout: 240 seconds]
persand has quit [Quit: persand]
sirecote has quit [Ping timeout: 245 seconds]
Coffers has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
antulik-afk is now known as antulik
ssvo has joined #ruby
razi has joined #ruby
rezzack has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
mfridh has joined #ruby
ananthakumaran has joined #ruby
Coffers has joined #ruby
ilmerovingio has left #ruby ["Leaving"]
sirecote has joined #ruby
antulik is now known as antulik-afk
optimusprimem has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
niceguyjames has joined #ruby
Al_ has joined #ruby
__Cr0 has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
tonni has quit [Remote host closed the connection]
havenwood has joined #ruby
__Cr0 has joined #ruby
havenwood has quit [Remote host closed the connection]
persand has joined #ruby
<JonathanNeal> bnagy: thanks for the help with the if statement.
s0ny123 has joined #ruby
vlad_starkov has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
TIJ has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
ilmerovingio has joined #ruby
mneorr_ has quit [Remote host closed the connection]
popl has quit [Ping timeout: 264 seconds]
rads has quit [Quit: rads]
sumark has quit [Ping timeout: 264 seconds]
<ilmerovingio> related to the problem that i've posted before, the bug seems to be the same as --> http://bugs.ruby-lang.org/issues/8100
<ilmerovingio> just FYI ;)
sumark has joined #ruby
neo_ has quit [Quit: Leaving]
sirecote has quit [Ping timeout: 240 seconds]
pyrac has joined #ruby
TIJ has joined #ruby
ssvo has quit [Ping timeout: 245 seconds]
lucaspiller___ has joined #ruby
mneorr has joined #ruby
JohnBat26 has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
camilasan has joined #ruby
allsystemsarego has joined #ruby
<bnagy> uh
<bnagy> how are those even vaguely related?
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
Monie has joined #ruby
rezzack has quit [Quit: Leaving.]
mrsolo has quit [Quit: This computer has gone to sleep]
<apeiros> FU
<apeiros> no parallel bundle installs for me :(
<apeiros> bundler 1.4 just aborts with the message "env: ruby_executable_hooks: No such file or directory"
Senjai has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
rads has joined #ruby
ckampfe has joined #ruby
* apeiros goes back to sword-fighting
postmodern has quit [Quit: Leaving]
lucaspiller___ has left #ruby [#ruby]
elaptics`away is now known as elaptics
tonni_ has joined #ruby
greenysan has joined #ruby
ckampfe has quit [Ping timeout: 246 seconds]
KevinSjoberg has joined #ruby
jonahR has quit [Quit: jonahR]
sirecote has joined #ruby
jongilbraith has joined #ruby
Matriks has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
kumarat9pm has quit [Read error: Connection reset by peer]
SteveBenner9 has joined #ruby
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
Matriks has joined #ruby
julweber has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
<CpuID> hmm is it just me or is OptParse unreliable...?
<CpuID> seems a bit half baked
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
tobago has quit [Ping timeout: 260 seconds]
Monie has quit [Quit: Textual IRC Client: www.textualapp.com]
TIJ has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
blaxter_ has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
SHyx0rmZ has joined #ruby
<avril14th> morning, next-to-useless question of the day: is there a way to do a .map and .uniq on an array of objects all in a single round?
TIJ has joined #ruby
<tobiasvl> what's a "single round"?
<tobiasvl> just chaining the method calls?
<avril14th> single round means without going twice through the array
<avril14th> map operates on each item and if uniq is chained it will go through the array once more
obs has quit [Ping timeout: 245 seconds]
<workmad3> avril14th: not with map and uniq... however, you could possibly do something with .each_with_object([]) to build up a new array
shaunbak_ has joined #ruby
* avril14th googles each_with_object
mrsolo has joined #ruby
mneorr has quit [Remote host closed the connection]
niceguyjames has joined #ruby
<avril14th> seems like the thing
jibi has joined #ruby
mrsolo has quit [Client Quit]
dayepa has quit [Quit: dayepa]
Hanmac has joined #ruby
bw_ has quit [Ping timeout: 245 seconds]
<avril14th> where can one see the source code for like the Array's uniq method?
dhruvasagar has quit [Read error: Connection reset by peer]
bw_ has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
<Hanmac> linux3.11 has an option for O_TMPFILE flag for open() should ruby use it if possible? (is it worth to make an feature request?)
<avril14th> thx sevenseacat
<bnagy> hanmac: imho no?
ananthakumaran has joined #ruby
<bnagy> sounds super os-specific at this stage
<Hanmac> apeiros: i was wrong yesterday, "bin"b is supported in the source, but the parser does not support it yet
<workmad3> bnagy: well, it's a new linux kernel thing, I guess
<Hanmac> workmad3 is right, i have seen it in the infos about what the new kernel can do
henn1nk has quit [Quit: henn1nk!]
CpuID has quit [Ping timeout: 246 seconds]
timonv has quit [Remote host closed the connection]
djdb has joined #ruby
mklappstuhl has joined #ruby
Zai00 has joined #ruby
Heero has quit [Ping timeout: 264 seconds]
OZzl has joined #ruby
nextdropping has joined #ruby
postmodern has joined #ruby
lxsameer has joined #ruby
<lxsameer> is there any other source rather than rubygems.org to downloads gems with "gem" tool ?
<hoelzro> lxsameer: I'm sure if you do research on running a mirror, that would explain how you could accomplish that
mneorr has joined #ruby
rads has quit [Quit: rads]
thillux has joined #ruby
rdark has joined #ruby
<Fractional> Hi Ruby fans!
braoru has quit [Remote host closed the connection]
<lxsameer> hoelzro: i think you misunderstand me, I want to try to download some gems from somewhere else on the net
nemesit|znc has quit [Ping timeout: 240 seconds]
<hoelzro> well, what I meant was that if you looked for information on setting up a mirror, that information would likely tell you how to configure gem to *use* that mirror
<hoelzro> so you could apply that knowledge for your custom source
tvw has quit []
mklappstuhl has quit [Remote host closed the connection]
<hoelzro> gem help install yields the --source option
mansi has joined #ruby
<lxsameer> hoelzro: i know about --source option, but i don't have any other mirror to use, that's why i asked for another mirror :)
nomenkun has joined #ruby
<hoelzro> oh, I'm sorry
<hoelzro> I misunderstood
<lxsameer> hoelzro: ;)
adambeynon has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
tobago has joined #ruby
iIlL10Oo has quit [Quit: Lost terminal]
nemesit|znc has joined #ruby
bubu has joined #ruby
tspike has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
jongilbraith has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dhruvasagar has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
Macaveli has quit [Read error: Connection reset by peer]
tspike has joined #ruby
dodosan has quit [Remote host closed the connection]
Ripp__ has quit [Quit: Ripp__]
ananthakumaran has joined #ruby
sevenseacat has quit [Quit: Leaving.]
razi has quit [Ping timeout: 245 seconds]
decoponio has joined #ruby
Vivekananda has quit [Ping timeout: 245 seconds]
dayepa has joined #ruby
s0ny123 has quit [Quit: Lost terminal]
Stygia has joined #ruby
bbttxu has quit [Quit: bbttxu]
timonv has joined #ruby
tspike has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
Xenonucleicacid has joined #ruby
<Xenonucleicacid> Hey is there anybody here who can help me set up my ruby application to run on my domain?
tspike has joined #ruby
<Xenonucleicacid> I've tried doing as much reading as i could, and i honestly have no idea how to properly do it on hostgator
dhruvasagar has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
<workmad3> Xenonucleicacid: is it a rails app, by any chance?
<Xenonucleicacid> Yes
<workmad3> Xenonucleicacid: hostgator is not a good choice for rails apps
<Xenonucleicacid> A bitcoin exchange i found on github, that i'd like to fool around with for a bit
<Xenonucleicacid> I know, but hostgator is all i really have,
<workmad3> Xenonucleicacid: at least, their shared-hosting isn't (most shared hosting is bad for rails-esque apps)
<Xenonucleicacid> is there any way to do it?
<Xenonucleicacid> Or am I shit out of luck
ananthakumaran has joined #ruby
<workmad3> Xenonucleicacid: you could try deploying to heroku ;)
greengriminal has joined #ruby
<workmad3> Xenonucleicacid: which is free if you're only running a single dyno
<Xenonucleicacid> Isn't heroku just a VPS?
<workmad3> no, heroku is a PaaS provider
<workmad3> they provide a complete deployment platform
<Xenonucleicacid> I have no idea how to use heroku
gyre007 has joined #ruby
<Xenonucleicacid> id have to do even more reading about things i dont understand...
<workmad3> Xenonucleicacid: maybe look it up? I can assure you it's easier than dealing with hostgator
tobago has quit [Ping timeout: 264 seconds]
<workmad3> you'll need to look up a lot more stuff you don't understand in order to get things working on hostgator
tobago has joined #ruby
<workmad3> I've never managed to successfully get anything beyond some simple rails 1.2 apps deployed on hostgator... I'm not sure they've even got the dependencies on there for anything past rails 2
<Xenonucleicacid> Hm alright, so i made a heroku account
gyre007 has quit [Remote host closed the connection]
corpuscle has joined #ruby
julweber_ has joined #ruby
<Xenonucleicacid> theres no fpt access or anything...
<Xenonucleicacid> how do i upload my application?
quoin has joined #ruby
<workmad3> Xenonucleicacid: you push it via git
<workmad3> Xenonucleicacid: read the getting started guides on heroku ;)
stepan_ has joined #ruby
<stepan_> hey guys, is anyone avail right now for about an hour of ruby tutoring? Am about to do a challenge, and would love to have someone I can bounce ideas off of. The challenge is about basic understanding
vince_prignano has joined #ruby
vince_prignano has quit [Remote host closed the connection]
julweber has quit [Ping timeout: 264 seconds]
vince_prignano has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
gyre007 has joined #ruby
<bnagy> why is it time sensitive?
quoin has joined #ruby
<stepan_> Hi bnagy, it's not super time sensitive, though I feel prepped enough to take the challenge now. If you're good for another time though, I would oblige :)
pyrac has quit [Quit: pyrac]
<Xenonucleicacid> it wanted me to install stuff
<Xenonucleicacid> i installed stuff and now its not showing up
shevy has quit [Read error: Operation timed out]
stonevil has joined #ruby
apfelbox_ has joined #ruby
apfelbox has quit [Ping timeout: 245 seconds]
matti has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
Monie has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
colonolGron has joined #ruby
ananthakumaran has joined #ruby
corpuscle has quit [Quit: WeeChat 0.4.1]
Soda has joined #ruby
nextdropping has quit [Ping timeout: 240 seconds]
greenysan has quit [Ping timeout: 245 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
persand has quit [Quit: persand]
ananthakumaran has quit [Read error: Connection reset by peer]
chase has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<chase> does anyone know of a ruby library that could be used to detect instruments in an audio track ?
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
chase has quit [Client Quit]
amacgregor has joined #ruby
Astralum has joined #ruby
mklappstuhl has joined #ruby
stonevil has quit [Remote host closed the connection]
Stygia has quit [Read error: Operation timed out]
stonevil has joined #ruby
TIJ has quit [Quit: Konversation terminated!]
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
optimusprimem has joined #ruby
shevy has joined #ruby
Criztian has joined #ruby
Criztian has quit [Remote host closed the connection]
nari_ has quit [Ping timeout: 245 seconds]
azcodex has joined #ruby
Criztian has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
colonolGron has quit [Quit: ciao]
dhruvasagar has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
Croms has quit [Quit: Croms]
mneorr has quit [Remote host closed the connection]
stonevil has quit [Ping timeout: 240 seconds]
jonkri has quit [Ping timeout: 245 seconds]
stonevil has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
zoee has quit [Quit: zoee]
dhruvasagar has quit [Read error: Connection reset by peer]
gstamp has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amacgregor has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
aryaching_ has quit [Ping timeout: 245 seconds]
dachi has joined #ruby
<dachi> Hello people. I wonder what are your current thoughts about GLI gem? I'm quite new to Ruby, was working with Rails for a half year or so.. And I would appreciate couple of words about Methadon too. Thanks!
relix has joined #ruby
aryaching has joined #ruby
<Hanmac> chase … i dont think that is possible, even with the right software its very difficult, and i not know anyone (ruby or not) that can do that … it maybe only possible with midi files, but not with wav/mp3 or other ones
timonv has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 246 seconds]
awc737 has quit [Ping timeout: 264 seconds]
<MrZYX> hanmac: he left about a minute after his question
ananthakumaran has joined #ruby
arca0 has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<SteveBenner9> thought I'd chime in late, @workmad3: you should check out AWS, amazon offers free services for doing tons of stuff. You can find custom-created rails server images and setup a rails app that way
<SteveBenner9> we are using AWS for our web app during testing and its awesome.
dhruvasagar has joined #ruby
joshu has joined #ruby
awc737 has joined #ruby
Stygia has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
gildo has joined #ruby
gyzmodo has joined #ruby
ananthakumaran has joined #ruby
dachi has quit [Quit: Page closed]
ewnd9_ has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
Matriks has quit [Read error: No route to host]
<workmad3> SteveBenner9: yeah, I've used AWS
nextdropping has joined #ruby
mneorr has joined #ruby
dhruvasagar has joined #ruby
Matriks has joined #ruby
<workmad3> SteveBenner9: but that is just a plain VPS, you need to build a stack on top of it (or find an AMI that has most of the stuff you want and add your bits... or create your own AMI)
Hanmac has quit [Quit: Leaving.]
<workmad3> SteveBenner9: the original question was still on shared hosting, so I doubt building their own stack would have appealed as much as just pushing to a service ;)
ewnd9_ has joined #ruby
filipe has quit [Ping timeout: 260 seconds]
dodosan has joined #ruby
nari_ has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
stepan_ has quit [Ping timeout: 250 seconds]
aryaching has quit []
ananthakumaran has joined #ruby
niceguyjames has joined #ruby
timonv has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
poga has quit [Remote host closed the connection]
poga has joined #ruby
dodosan has quit [Ping timeout: 240 seconds]
dachi has joined #ruby
diogenes5 has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
<dachi> Please help me out. I'm trying to learn about GLI gem. I am stuck, I want to make an action without command. example: $>bundle exec bin/my_app --info... not $>bundle exec bin/my_app somecommand --info.. I don't want a command, just a flag.. anybody? tnx
emergion has joined #ruby
elaptics is now known as elaptics`away
<dachi> I askeed at stackoverflow, but nobody seems to respond.. :(
kirun has joined #ruby
sventon has joined #ruby
filipe has joined #ruby
nhhagen has joined #ruby
marcgg_ has joined #ruby
mikecmpbll has joined #ruby
jbpros has quit [Quit: jbpros]
dEPy has joined #ruby
ismlages has joined #ruby
<Fractional> Nobody seems to respond here either
marcgg has quit [Ping timeout: 240 seconds]
<SteveBenner9> @workmad3 Heh, looks like you're looking for the best of all words in hosting :) I find you either have to go with affordable preconfigured solutions with limitations or spend the extra resources to make it worth your while, and at this point I guess it is up to the logistics of whatever your team (or you0 are doing
nhhagen has quit [Ping timeout: 245 seconds]
<SteveBenner9> I'm just out of college in a startup so I have to build the stack myself, luckily programming is my life and ruby makes it soooo easy
<SteveBenner9> as far as hosting, I have used Bluehost and they have nice Rails support
<SteveBenner9> but thats the extent of my hosting epxerience.
dachi has quit [Quit: Page closed]
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
<SteveBenner9> the thing I am liking about AWS is they have all the components to build a stack with, not just EC2 is free
ananthakumaran has joined #ruby
dhruvasagar has joined #ruby
<workmad3> SteveBenner9: it wasn't me looking
himsin has joined #ruby
<workmad3> SteveBenner9: it was someone else trying to get a rails app up and running quickly
Hanmac has joined #ruby
<workmad3> SteveBenner9: I personally create my own stacks and deploy them with chef onto various places (AWS, DO, my own servers)
Dreamer3 has quit [Remote host closed the connection]
krainbol_ has joined #ruby
Dreamer3 has joined #ruby
keyvan has joined #ruby
persand has joined #ruby
<SteveBenner9> tight, no clue here as to previous conversation :)
<SteveBenner9> yeah speaking of own servers I just got a rasperry pi going to have fun messing with that
<SteveBenner9> i want to find out what I can do with Ruby on it
<SteveBenner9> got a prebuilt ubuntu SD card on it
<SteveBenner9> hook up to a UPS and build my own VPS
krainboltgreene has quit [Ping timeout: 245 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
alepore has quit [Quit: This computer has gone to sleep]
tesuji has joined #ruby
dash_ has quit [Quit: dash_]
<workmad3> SteveBenner9: fun :) I've been wanting to get a raspberry pi to play with... not thinking about VPS stuff though, more about security monitors :)
tinyhippo has left #ruby [#ruby]
soba has quit [Ping timeout: 245 seconds]
keyvan has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 264 seconds]
dEPy has quit [Remote host closed the connection]
persand has quit [Read error: Connection reset by peer]
razi has joined #ruby
catphish has joined #ruby
ehaliewicz has joined #ruby
himsin has quit [Quit: himsin]
<catphish> is $1 threadsafe, or is it actually a global variable as its dollar suggests?
ndrei has joined #ruby
<xybre> All $'s are global
hiyosi has quit [Ping timeout: 245 seconds]
<catphish> ok, thanks, there's probably better ways to do match references
* hoelzro wonders if $1 and friends have some magic re: threads
<catphish> xybre: says not
<xybre> catphish: just capture the match object :)
<catphish> yeah, i usually do that anyway
<xybre> $1 and friends were inhereited from perl and unless they added something recently, they've been essentially just global registers
<catphish> they're pretty nasty anyway
jleishman has joined #ruby
<catphish> then again, is there a way to handle this: string.gsub(/{{(.*?)}}/) do |match|
ehaliewicz has quit [Ping timeout: 260 seconds]
<catphish> and get the match groups without using $1
<catphish> since the match isn't a match at all, but a string
<xybre> catphish: looking at the docs it doesn't seem like it
vlad_starkov has quit [Remote host closed the connection]
<catphish> xybre: ok, in today's case, my program only has one thread, so i'll use $1
mansi has joined #ruby
<workmad3> xybre: $1-$9 are oddities
<catphish> i could always rerun the regex though if it came to it
<workmad3> xybre: they have some weird scoping rules, they aren't just globals... but I wouldn't trust them in any sort of threads :)
<workmad3> I barely trust them normally
niceguyjames has quit [Quit: Computer has gone to sleep.]
<xybre> Hmm, well if Ruby scopes them to the block in that one case it might be safe? How to even test that?
mrsolo has joined #ruby
SteveBenner9 has quit [Quit: Leaving]
Gonzih has joined #ruby
gnzh has joined #ruby
Gonzih has quit [Client Quit]
<xybre> From "The Ruby Programming Language", pg 318: "it is important to remember that $~ and the variables derived from it are all thread-local and method-local."
gnzh has quit [Client Quit]
Gonzih has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
<catphish> interesting, thanks
nextdropping_ has joined #ruby
Hanmac has quit [Quit: Leaving.]
<workmad3> xybre: I'd probably change that in my mind to 'It is important to remember than $~ and the variables derived from it are *meant to be* thread-local and method-local' :)
dhruvasagar has quit [Read error: Connection reset by peer]
<catphish> lol
<catphish> it's probably easily tested
mansi has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
nextdropping has quit [Ping timeout: 245 seconds]
<workmad3> catphish: the method-local stuff is, yeah
<workmad3> catphish: thread-safety testing is pretty hard
dhruvasagar has joined #ruby
tobago has quit [Read error: Operation timed out]
tobago has joined #ruby
<catphish> not if you're testing something so specific
<catphish> launch 2 threads with long sleeps, see if one can clobber the other's data
krainbol_ has quit [Ping timeout: 240 seconds]
okinomo has quit [Ping timeout: 245 seconds]
<xybre> " The variables $&, $‘, $’, and $1 to $9 are all derived from $~. Assigning to $~ changes the values of these derived variables. This variable is local to the current scope."
sventon_ has joined #ruby
timonv_ has joined #ruby
okinomo_2 has quit [Ping timeout: 246 seconds]
okinomo_1 has quit [Ping timeout: 246 seconds]
okinomo_ has quit [Ping timeout: 260 seconds]
Astralum has quit [Ping timeout: 240 seconds]
obs has joined #ruby
okinomo__ has quit [Ping timeout: 260 seconds]
<xybre> Thats the line from the 1.9 version 4
mneorr has quit [Remote host closed the connection]
sventon has quit [Ping timeout: 246 seconds]
mklappstuhl has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 245 seconds]
BizarreCake has joined #ruby
julweber_ has quit [Remote host closed the connection]
Hanmac has joined #ruby
julweber has joined #ruby
pskosinski has joined #ruby
Astralum has joined #ruby
jlebrech has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
intuxicated has quit [Ping timeout: 260 seconds]
allanm has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
krainboltgreene has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
allanm_ has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
Hanmac has quit [Quit: Leaving.]
<xybre> Version 5 drops that sentence and instead marks all variables with [thread] and [r/o] tags.
poga_ has joined #ruby
poga has quit [Ping timeout: 246 seconds]
ananthakumaran has joined #ruby
<shevy> these variables are so volatile
Gonzih has quit [Quit: IRC is just multiplayer vim.]
<shevy> and they look like any other global variables!!
alepore has joined #ruby
<shevy> $1 has one thing going for it ... it's 2 chars... a matchdata object that requires [1] has at least ... x[1] 4 chars!
dhruvasagar has joined #ruby
kaldrenon has joined #ruby
lucazi has joined #ruby
tobago has quit [Ping timeout: 245 seconds]
stonevil has quit [Remote host closed the connection]
Domon_ has quit [Remote host closed the connection]
Domon has joined #ruby
graydot has joined #ruby
pyrac has joined #ruby
kaldrenon has quit [Ping timeout: 264 seconds]
DonRichie has joined #ruby
fgo has joined #ruby
Domon has quit [Ping timeout: 260 seconds]
intuxicated has joined #ruby
<xybre> shevy: sure, but you can't do this with $1 matchdata.tap{|m|puts m[3]}.tap{|m|puts m[1]}.tap{|m| m[2]}
Naoe-Kanno has joined #ruby
tk__ has joined #ruby
ntus1017 has joined #ruby
SHyx0rmZ has quit [Ping timeout: 264 seconds]
sayan has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
verto has joined #ruby
ananthakumaran has joined #ruby
okinomo has joined #ruby
aganov has joined #ruby
dhruvasagar has joined #ruby
okinomo__ has joined #ruby
okinomo_ has joined #ruby
okinomo_1 has joined #ruby
okinomo_2 has joined #ruby
dagobah has joined #ruby
tobago has joined #ruby
tk__ has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 245 seconds]
<heftig> >> "foofoofoo".gsub(/(f)(o)(o)/) { "-#{$3}-#{$2}-#{$1}" }
<eval-in> heftig => "-o-o-f-o-o-f-o-o-f" (https://eval.in/46538)
allanm has joined #ruby
Stygia has quit [Ping timeout: 264 seconds]
Stygia has joined #ruby
krainboltgreene has quit [Ping timeout: 264 seconds]
<catphish> >> "hello"
<eval-in> catphish => "hello" (https://eval.in/46539)
<catphish> that's very cool for examples :)
rdark has joined #ruby
failshell has joined #ruby
intuxicated has quit [Ping timeout: 260 seconds]
tk__ has joined #ruby
sventon_ has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
failshell has joined #ruby
<heftig> >> ENV
<eval-in> heftig => {"LIBC_FATAL_STDERR_"=>"1", "LANG"=>"en_US.UTF-8"} (https://eval.in/46540)
<heftig> >> "some environment variables: env:LIBC_FATAL_STDERR_ env:LANG; templating for morons".gsub(/\benv:(\w+)/) { "#{$&}=#{ENV[$1]}" }
<eval-in> heftig => "some environment variables: env:LIBC_FATAL_STDERR_=1 env:LANG=en_US.UTF-8; templating for morons" (https://eval.in/46541)
avril14th_ has joined #ruby
avril14th has quit [Ping timeout: 240 seconds]
sventon has joined #ruby
hogeo has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
krainboltgreene has joined #ruby
jonkri has joined #ruby
rdxc has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
hakunin has quit [Remote host closed the connection]
ntus1017 has quit [Remote host closed the connection]
dkamioka has joined #ruby
sventon has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
tobago has quit [Ping timeout: 245 seconds]
tobago has joined #ruby
__Cr0 has quit []
DonRichie has quit [Quit: Verlassend]
buzzybron has quit [Quit: Leaving.]
<shevy> xybre I never had a need to use .tap so far
yfeldblum has joined #ruby
lxsameer has left #ruby ["Leaving"]
Elhu has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
alup has quit [Read error: No route to host]
haxrbyte_ has joined #ruby
lucazi has quit [Quit: Leaving.]
<shevy> hmm do I see this right... File.readlines gives us more options than YAML.load_file
ssqq has joined #ruby
<shevy> File.readlines('hash.c', :encoding => 'utf-8') allows one to specify the encoding, YAML.load_file() does not
haxrbyte has quit [Read error: Connection reset by peer]
<shevy> is there a way to force a specific, consistent encoding on a loaded yaml file?
haxrbyte has joined #ruby
<apeiros> shevy: yaml is specified to be utf-8
tobago has quit [Ping timeout: 246 seconds]
alup has joined #ruby
<shevy> apeiros or UTF-16 http://en.wikipedia.org/wiki/YAML
mansi has joined #ruby
<apeiros> correct
avril14th_ has quit [Remote host closed the connection]
bthesorceror has joined #ruby
Speed has joined #ruby
<shevy> is UTF-16 compatible with UTF-8? as in, when I run .gsub on either of these, and .gsub on UTF-16 would return no error, would it be guaranteed to work with UTF-8 as well?
sayan has joined #ruby
spider-mario has joined #ruby
avril14th has joined #ruby
<xybre> shevy: it was a joke, mostly
<apeiros> shevy: as long as you use properly encoded values, yes
<shevy> hmm ok
<apeiros> all characters in utf-16 can be represented in utf-8
<apeiros> and vice-versa
haxrbyte_ has quit [Ping timeout: 245 seconds]
<apeiros> the encoding in actual *bytes* differs
<apeiros> depending on what you do it might be inefficient to work with different encodings. but that's another story.
Rollabunna has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
rockets has joined #ruby
Liothen has quit [Quit: System of a down……]
cantonic has joined #ruby
caju has joined #ruby
pyrac has quit [Quit: pyrac]
zastern has quit [Ping timeout: 246 seconds]
intuxicated has joined #ruby
intuxicated has quit [Max SendQ exceeded]
defaultro has quit [Quit: defaultro]
intuxicated has joined #ruby
rdark has quit [Ping timeout: 245 seconds]
bthesorceror has quit [Quit: bthesorceror]
rdark has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
kofno has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ananthakumaran has quit [Read error: Connection reset by peer]
nextdropping_ has quit [Remote host closed the connection]
nextdropping has joined #ruby
ananthakumaran has joined #ruby
tvw has joined #ruby
Macaveli has joined #ruby
ericmathison has quit [Ping timeout: 246 seconds]
jdenen has joined #ruby
krainboltgreene has quit [Ping timeout: 246 seconds]
razi has quit [Ping timeout: 264 seconds]
JDHankle has quit [Remote host closed the connection]
ryandeussing has joined #ruby
stonevil has joined #ruby
Soda has quit [Ping timeout: 245 seconds]
yalue has joined #ruby
mansi has joined #ruby
gyre007 has quit [Remote host closed the connection]
vince_prignano has quit [Remote host closed the connection]
wildroman has joined #ruby
ssqq has quit [Quit: Leaving]
mneorr has joined #ruby
ryandeus_ has quit [Ping timeout: 240 seconds]
lucazi1 has joined #ruby
<wildroman> When passing a REXML element to awesome print, it prints out only the top level element and then ".... How do I make it print the children as well?
<wildroman> When passing a REXML element to awesome print, it prints out only the top level element and then "..." for the children. How do I make it print the children as well?
<wildroman> sorry for the duplicate
breakingthings has joined #ruby
dash_ has joined #ruby
tobago has joined #ruby
catphish has left #ruby ["Leaving"]
mlpinit has joined #ruby
corpuscle has joined #ruby
znode has joined #ruby
Fractional has quit [Ping timeout: 245 seconds]
adkron_ has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nhhagen has joined #ruby
adkron has quit [Ping timeout: 245 seconds]
amacgregor has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krainboltgreene has joined #ruby
krainboltgreene has quit [Client Quit]
dash_ has quit [Ping timeout: 245 seconds]
gyre007 has joined #ruby
msuszczy has quit [Quit: Lost terminal]
aryaching has joined #ruby
stonevil has quit [Remote host closed the connection]
nhhagen has quit [Ping timeout: 256 seconds]
tobago has quit [Ping timeout: 245 seconds]
lucazi1 has quit [Quit: Leaving.]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
niceguyjames has joined #ruby
Banistergalaxy has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
swordsmanz has quit [Ping timeout: 260 seconds]
pagios has joined #ruby
<pagios> hi all
razi has joined #ruby
<pagios> is there a way to communicate nicely with my serial usb adapter using ruby?
mark_locklear has joined #ruby
msuszczy has joined #ruby
[]D|s3L[] has joined #ruby
pygospa has quit [Ping timeout: 268 seconds]
julweber_ has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
yacks has joined #ruby
julweber has quit [Ping timeout: 245 seconds]
Criztian has quit [Remote host closed the connection]
Neomex has joined #ruby
tobago has joined #ruby
brbcoding has joined #ruby
[]D|s3L[] has quit [Quit: Leaving...]
GeissT has quit [Ping timeout: 245 seconds]
[]D|s3L[] has joined #ruby
adambeynon has joined #ruby
pygospa has joined #ruby
<rdark> http://ruby-serialport.rubyforge.org/ ? Whether or not it's USB shouldn't matter, as long as the kernel sees it as a serial device
browndawg has joined #ruby
Jake232 has joined #ruby
kaldrenon has joined #ruby
sambao21 has joined #ruby
_br_ has left #ruby [#ruby]
_br_ has joined #ruby
tobago has quit [Ping timeout: 264 seconds]
davexunit has joined #ruby
lamefun has joined #ruby
pranny has quit [Quit: Leaving.]
krz has quit [Quit: krz]
tobago has joined #ruby
<pagios> rdark: mainly what i want to do is my computer is connected to an arduino which is connected to a led with keypad
<pagios> i need to manipulate that from ruby is that possible?
<lamefun> is Ruby source signed with GPG?
<pagios> and is that most importatnly easy
jbrechtel has joined #ruby
jongilbraith has joined #ruby
davexunit has left #ruby [#ruby]
chxane has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
zoee has joined #ruby
jbrechte_ has joined #ruby
okinomo_2 has quit [Ping timeout: 256 seconds]
okinomo__ has quit [Ping timeout: 256 seconds]
okinomo_1 has quit [Ping timeout: 256 seconds]
okinomo has quit [Ping timeout: 260 seconds]
okinomo_ has quit [Ping timeout: 256 seconds]
bthesorceror has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
jbrechtel has quit [Ping timeout: 245 seconds]
Neomex has quit [Quit: Neomex]
jongilbraith has quit [Client Quit]
adkron has joined #ruby
<rdark> pagios: serialport can do that, yes :)
jaynewstrom has joined #ruby
marcgg_ has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
kofno_ has joined #ruby
Catie has joined #ruby
kofno has quit [Remote host closed the connection]
marcgg has joined #ruby
kofno_ has quit [Client Quit]
marcgg has quit [Remote host closed the connection]
Uranio has quit [Quit: while you reading this, a kitty dies]
kofno has joined #ruby
marcgg has joined #ruby
jbrechte_ is now known as jbrechtel
sailias has joined #ruby
tkuchiki has joined #ruby
vlad_starkov has joined #ruby
<pagios> rdark: can i even read keybuttons pressed using ruby?
geekbri has joined #ruby
<MrZYX> pagios: you did very little research? didn't you? http://playground.arduino.cc/interfacing/ruby
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> pagios I think through io/console
quoin has left #ruby ["Leaving"]
quoin_ has joined #ruby
<pagios> nice!!
ldnunes has joined #ruby
<pagios> lovely
okinomo has joined #ruby
tobago has quit [Ping timeout: 245 seconds]
<shevy> hmmm
<shevy> I begin to understand why the ruby mailing list has died down a bit
<shevy> why use it when you can instead use stackoverflow
<shevy> :\
intuxicated has quit [Ping timeout: 260 seconds]
Guest77715 is now known as Amnesia
Amnesia has quit [Changing host]
Amnesia has joined #ruby
haxrbyte has quit [Remote host closed the connection]
ksh has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
failshel_ has joined #ruby
okinomo__ has joined #ruby
okinomo_ has joined #ruby
okinomo_1 has joined #ruby
okinomo_2 has joined #ruby
kofno has quit [Quit: leaving]
nwertman has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
tobago has joined #ruby
lamefun has left #ruby [#ruby]
kofno_ has joined #ruby
kofno_ has quit [Client Quit]
v0n has joined #ruby
kofno has quit [Remote host closed the connection]
ananthakumaran has quit [Read error: Connection reset by peer]
kofno has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
<shevy> for all languages
huoxito has joined #ruby
ksh has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
machuga is now known as machuga|away
pyrac has joined #ruby
stonevil has joined #ruby
senayar has joined #ruby
cantonic has quit [Quit: cantonic]
__userna1 has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
mansi has quit [Remote host closed the connection]
iamjarvo has joined #ruby
tobago has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
endash has joined #ruby
mmitchell has joined #ruby
girija has quit [Ping timeout: 264 seconds]
<workmad3> shevy: because stackoverflow is a ghetto!!!
<workmad3> (not really, I just always wanted to use that line :) )
mmitchell has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
[]D|s3L[] has quit [Remote host closed the connection]
<shevy> man then it would be like rails
mmitchell has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
krawchyk has joined #ruby
krawchyk has quit [Remote host closed the connection]
<workmad3> shevy: well, the creators did take it as a compliment when people thought SO had been written in rails ;)
<shevy> it is??
krawchyk has joined #ruby
<workmad3> shevy: no
iamjarvo_ has quit [Read error: Connection reset by peer]
iamjarv__ has joined #ruby
<shevy> hehe ok
<workmad3> shevy: it's written in ASP
<shevy> ack :(
atyz has joined #ruby
<workmad3> ;)
<workmad3> shevy: bet you wish it was written in rails now ;)
ananthakumaran has joined #ruby
<shevy> yeah
<shevy> ASP ghetto
<Banistergalaxy> Workmad3 r u tickled pink about rails 4
freerobby has quit [Quit: Leaving.]
Stygia has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Ping timeout: 245 seconds]
kofno has quit [Quit: leaving]
andikr has quit [Remote host closed the connection]
jerius has joined #ruby
fmcgeough has joined #ruby
Nisstyre has joined #ruby
kofno has joined #ruby
tobago has joined #ruby
__username__ has joined #ruby
kofno has quit [Client Quit]
razi has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
kofno has joined #ruby
<stefunel> what should one use to parse command line args?
tobago has quit [Remote host closed the connection]
__userna1 has quit [Ping timeout: 260 seconds]
razi has joined #ruby
<MrZYX> optparse, trollop and slop are the three popular ones
<stefunel> ok, thanks
elaptics`away is now known as elaptics
jbomo has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
pootler has joined #ruby
awc737 has quit [Quit: ZNC - http://znc.sourceforge.net]
<workmad3> Banistergalaxy: I'm as pink as I normally am
Ripp__ has joined #ruby
awc737 has joined #ruby
fuhgeddaboudit has joined #ruby
burlyscudd has quit [Quit: Leaving.]
elaptics is now known as elaptics`away
Heero has joined #ruby
<shevy> I hate optparse
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
nwertman has joined #ruby
elaptics`away is now known as elaptics
viszu has joined #ruby
nextdropping has quit [Read error: Connection reset by peer]
ryannielson has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
marcgg_ has joined #ruby
ananthakumaran has joined #ruby
dennus has joined #ruby
Coolhand_ has joined #ruby
bal has joined #ruby
<stefunel> shevy what's so wrong about it?
burlyscudd has joined #ruby
<shevy> stefunel I always have to lookup how to use it
<shevy> and then when I do it confuses me
marcgg has quit [Ping timeout: 240 seconds]
snath has quit [Ping timeout: 256 seconds]
<shevy> I show you a popular use case
Coolhand has quit [Ping timeout: 260 seconds]
christianrojas has joined #ruby
Coolhand_ is now known as Coolhand
__username__ has quit [Quit: none 0.4.1]
<shevy> require 'optparse'
__username__ has joined #ruby
<shevy> now first notice... the class name is not Optparse but OptionParser
<shevy> opts = OptionParse.new
<shevy> opts.parse!(ARGV)
<shevy> ^^^ absolutely disgusting
Stygia has joined #ruby
<shevy> first off to directly use ARGV like that is awful, and a method name with ! that is using a different convention than rest of ruby
hiyosi has joined #ruby
<shevy> end.parse!
<shevy> grrrrr
crankycoder has quit [Quit: leaving]
butblack has joined #ruby
shvelo has joined #ruby
<workmad3> shevy: :D
crankycoder has joined #ruby
kpshek has joined #ruby
<shevy> option.on("-i", "--ignore-case", "Ignore case") {
<shevy> hmm... I dunno... somehow I always need to look it up, it just does not want to settle into my brain. I think trollop and especially slop are nicer
gyzmodo has quit [Ping timeout: 256 seconds]
<shevy> option.separator("") # hmmm
krawchyk_ has joined #ruby
<vaicine> with gsub, how do you replace with part of the pattern match? like string.gsub(/something(.*)/, $1) ?
greenysan has joined #ruby
tabolario has joined #ruby
iamjarv__ has quit [Ping timeout: 240 seconds]
ffranz has joined #ruby
<shevy> I think you can use it inside a { } given to .gsub
<shevy> but another way would be '\\1' or something like that as second argument
<shevy> puts x.gsub(/(.{80})/,"\\1\n")
<shevy> x = "abc def"*1000; puts x.gsub(/(.{80})/,"\\1\n")
<shevy> that one is better for demo
<Banistergalaxy> Shevy still in Austria?
joast has quit [Quit: Leaving.]
tvw has quit []
tvw has joined #ruby
krawchyk has quit [Ping timeout: 245 seconds]
<vaicine> ty shevy
jprovazn has quit [Quit: Leaving]
Stygia has quit [Read error: Operation timed out]
codecop has quit [Remote host closed the connection]
freerobby has joined #ruby
Ripp__ has quit [Quit: Ripp__]
vlad_starkov has quit [Remote host closed the connection]
cads has joined #ruby
arturaz has joined #ruby
banisterfiend has joined #ruby
pagios has quit [Remote host closed the connection]
sayan has joined #ruby
headius has joined #ruby
JDHankle has joined #ruby
ndrei has joined #ruby
Stygia has joined #ruby
randomautomator has joined #ruby
tspike has quit [Ping timeout: 245 seconds]
pothibo_ has joined #ruby
pothibo_ has quit [Client Quit]
mlpinit_ has joined #ruby
Rym has quit [Ping timeout: 260 seconds]
splittingred has joined #ruby
snovak_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GeissT has joined #ruby
enebo has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 264 seconds]
shaunbaker has joined #ruby
Rym has joined #ruby
snovak has quit [Ping timeout: 256 seconds]
devdazed has quit [Quit: Bye]
mengu has joined #ruby
fgo has quit [Remote host closed the connection]
sevenseacat has joined #ruby
razi has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
devdazed has joined #ruby
julweber_ has quit [Remote host closed the connection]
julweber has joined #ruby
azcodex is now known as azcodex-away
adkron has left #ruby [#ruby]
plains has joined #ruby
dallasm_ has quit [Remote host closed the connection]
asobrasil has joined #ruby
jprovazn has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
ravster has joined #ruby
Rollabunna has quit [Remote host closed the connection]
BillCriswell has joined #ruby
Rollabunna has joined #ruby
rhys_ has joined #ruby
kvirani has joined #ruby
mcat1 has joined #ruby
<mcat1> is there a channel for ruby beginners?
Cyrus has quit [Quit: Cyrus.sleep()]
<hoelzro> mcat1: this channel is suitable for that purpose =)
fuhgeddaboudit has quit [Ping timeout: 268 seconds]
goshakkk has joined #ruby
mansi has joined #ruby
<mcat1> awesome! I'm going thru Ruby the Hard Way and i was wondering how much experience will I need until I can contribute to an open source project? thanks
jlast has joined #ruby
<hoelzro> mcat1: I would say that you can probably start helping now
thelorax123 has joined #ruby
<hoelzro> the earlier, the better
<hoelzro> you'll learn *way* faster by doing
defaultro has joined #ruby
<mcat1> really?! would you *possibly* be able to point me in the direction of a project that'd be good for a nooblet?
Rollabunna has quit [Ping timeout: 248 seconds]
<mcat1> I've had entry-level experience in other langs
goodcodeguy has joined #ruby
butblack has left #ruby [#ruby]
<hoelzro> mcat1: which other languages (out of curiosity)
<hoelzro> I'm afraid I'm not able to recommend a good Ruby OSS project =/
<hoelzro> I actually don't write a lot of Ruby.
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<hoelzro> but stick around and some of the other regulars will be happy to oblige, I'm sure!
<mcat1> I've done beginner courses/read beginner books on C, Python, C++, JavaScript, and (of course!) BASIC.
ndrei has quit [Ping timeout: 260 seconds]
<mcat1> OK, I'll lurk on here lol
dhruvasagar has joined #ruby
<hoelzro> =)
Tricon has joined #ruby
ferdev has quit [Quit: ferdev]
tagrudev has quit [Remote host closed the connection]
quoin_ has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 264 seconds]
maroloccio has joined #ruby
bal has quit [Quit: Leaving]
ndrei has joined #ruby
utkarsh has joined #ruby
polaco_zZz is now known as polaco
ArchBeOS has joined #ruby
binw has quit [Read error: Connection reset by peer]
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
girija has joined #ruby
bluebie has joined #ruby
bluebie has quit [Changing host]
bluebie has joined #ruby
joast has joined #ruby
yfeldblum has joined #ruby
mrsolo has joined #ruby
prana has joined #ruby
<bluebie> question: I have a program which reads in some files. Sometimes the files will have user errors in them, and in that situation I want to catch the errors raised, display them in the normal way, and then resume my loop and keep going to do more work - not crash out the entire program. What's the best way to quickly output an error to stderr or whatever without too much fuss? Is there a built in thing for that, or shall I reimplement the way ruby lays
blueOxigen has quit [Ping timeout: 240 seconds]
<prana> hey rubyists. can anyone make sense of this ruby gdb stack trace? https://gist.github.com/anonymous/6424730
Fractional has joined #ruby
pyrac has quit [Quit: pyrac]
<bluebie> My program btw is a DSL for creating solid 3d objects for 3d printing - kinda fun! http://github.com/Bluebie/oozby/
dhruvasagar has quit [Read error: Connection reset by peer]
FDj has quit [Ping timeout: 268 seconds]
pyrac has joined #ruby
dhruvasagar has joined #ruby
bookmage has joined #ruby
binw has joined #ruby
alekst has joined #ruby
FDj has joined #ruby
ahegyi has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<mcat1> Do any of you guys contribute to an open source Ruby project?
wildroman has quit [Remote host closed the connection]
<bluebie> I do, a little
jamesaanderson has joined #ruby
<bluebie> not so much these days (except the ones I create and am the sole contributor to..)
machuga|away is now known as machuga
Hanmac has joined #ruby
<bluebie> I wrote a bit of code and docs for camping
<waxjar> only when i find a bug that's relatively easy to fix :/
<bluebie> some got sucked in to rack even, but that's all been disintegrated (aka fixed) beyond recognition
<mcat1> is there any room for me to help with Nything? I'm trying to learn the Lang...
fgo has joined #ruby
netzmonster has joined #ruby
iamjarvo has joined #ruby
<bluebie> are you any good at geometry? <_<
<mcat1> I'm in calculus at school. so I'd say I'm familiar with geometry :)
<bluebie> maybe you could help me a bit with my thing
<bluebie> I'm making https://github.com/Bluebie/oozby/ - which is a little DSL language in ruby, kind of the same idea as markaby and xml builder
wildroman has joined #ruby
<bluebie> it creates 3d objects which you can print or cut using robots!
tonni_ has quit [Remote host closed the connection]
alekst has quit [Quit: Leaving...]
<mcat1> alright, sounds awesome! I'd love to give it a looking over, if I can contribute I definitely will!
<bluebie> I'm actually just outputting OpenSCAD code which another program can transform in to 3d stuff, so this thing is a kind of in between language, a bit like coffeescript but not nearly as good or impressive
<bluebie> neat!
lord1234 has joined #ruby
cody-- has joined #ruby
<bluebie> there's two issues in the tracker: https://github.com/Bluebie/oozby/issues to do with calculating polygon shapes or polyhedra shapes as a set of 2d or 3d points, to make rectangles or rectangular prisms with rounded corners
yekta has joined #ruby
<bluebie> I'm currently doing it with a bunch of boolean operations, out of primitives like "cubes" and spheres and stuff, but it's slow making the computer do all that boolean work
<lord1234> is there a good way to strip a leading zero from a string? For example I have a YAML file with value "a : .2", when I read that file in, the .2 gets converted to 0.2 as a fixnum. I then to_s the value and want to somehow strip the leading 0 off of that, so that it says ".2" again. any suggestions?
<bluebie> it'd be way neater I think if oozby could just output one already done
<mcat1> bluebie okay I'll check it out after school, thanks for giving me some direction!
<bluebie> yay ^_^
<bluebie> I'm sure there are tonnes of other projects that would love an assist if you find yourself not so keen on my latest pet project
rcosta has joined #ruby
<waxjar> >> "0.2"[/(\.\d+)/]
<eval-in> waxjar => ".2" (https://eval.in/46551)
GeissT has quit [Quit: MillBroChat AdIRC User]
<mcat1> okay, if you find any cool ones shoot em my way. https://github.com/metallicat1
<bluebie> I think there's a lot of value in finding cool gadgets, then playing with them and thinking of some way they could be cooler, then making an experimental implementation of the neat new feature or whatever
<MrZYX> >> "1.2"[/(\.\d+)/]
<eval-in> MrZYX => ".2" (https://eval.in/46552)
<bluebie> kk ^_^
<MrZYX> I don't think that's what he wanted
znode has quit [Ping timeout: 245 seconds]
mneorr has quit [Remote host closed the connection]
<lord1234> no
<lord1234> i only want to strip it if it is a 0
ckampfe has joined #ruby
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
<bluebie> I thought you could pass a character to strip :S
fgo has quit [Ping timeout: 264 seconds]
<bluebie> aparently not
s00pcan has quit [Remote host closed the connection]
sr78ger has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<bluebie> "0.2".sub(/^0/, '')
<bluebie> >> "0.2".sub(/^0/, '')
<eval-in> bluebie => ".2" (https://eval.in/46553)
sr78ger has quit [Max SendQ exceeded]
<bluebie> rather
<lord1234> >> "1.2".sub(/^0/, '')
<eval-in> lord1234 => "1.2" (https://eval.in/46554)
<Xeago> "0002" will give 2, which might not be what he wants too
<Xeago> tho doubt that is an edge case he needs
sr78ger has joined #ruby
<wildroman> How do I sort an array of strings lexicographically in Ruby?
<MrZYX> 0002 would give 002
mengu has quit [Quit: This computer has gone to sleep]
pingo has quit []
ahegyi has quit [Ping timeout: 248 seconds]
<hoelzro> wildroman: doesn't the sort method do that?
<lord1234> it is an edge case that I'm not worried about you're right
s00pcan has joined #ruby
<apeiros> wildroman: you mean natural sorting? as in "2" < "10"? (whereas normally "2" > "10" since "2" > "1")
nemesit|znc has quit [Quit: ZNC - http://znc.in]
<wildroman> hoelzro: I would expect yes, but some references on the net imply that a custom comparator is needed, which is strange
Rym has quit [Ping timeout: 260 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> wildroman: and/or are you referring to non-ascii chars? ruby only does binary sorting
<apeiros> so 'ä' is sorted based on 'ä'.unpack("C*")
<apeiros> (f.ex.)
aryaching_ has joined #ruby
<bluebie> I don't know of any programming environments which default to natural sorting
<bluebie> it is sloooooow
<Xeago> I know osx finder does it
<wildroman> apeiros: no, string sorting - I don't mind the integers, just the ASCII values. But it is interesting to see what happens if I get UTF input, is there a privision for that in sort?
ixti has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
<Xeago> I think UTF8 is handled by any single-byte binary sorting algorithm
<bluebie> Many file explorer apps do it, but often they have a timeout so if it spends more than a second sorting, or there's more than a set number of files in a folder, it doesn't naturally sort, or maybe doesn't even sort at all
aryaching has quit [Ping timeout: 245 seconds]
<apeiros> wildroman: no, as said, ruby only knows binary sorting
thelorax123 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
ahegyi has joined #ruby
<apeiros> wildroman: if you want proper collations you need a gem which can deal with that
<wildroman> I see
<Xeago> shouldn't be that hard
<bluebie> perhaps this gem https://github.com/dogweather/naturally
<apeiros> bluebie: define slow. for most applications the difference won't matter
Rym has joined #ruby
stonevil has quit [Remote host closed the connection]
Banistergalaxy has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
<lord1234> actually
<lord1234> it was an edgecase to work around
failshel_ is now known as failshell
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rcosta has quit [Remote host closed the connection]
<lord1234> did it with an if statement so it only runs the regex if the value is between 0 and 1
rippa has joined #ruby
johnjohnson has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<Xeago> lord1234: what about -0.2?
<lord1234> i don't have negative numbers as a use case
<lord1234> but yes I'd have to basically account for 0, (0->1, 0>-1) and >=1
okinomo_1 has quit [Ping timeout: 260 seconds]
okinomo__ has quit [Ping timeout: 260 seconds]
relix has joined #ruby
okinomo has quit [Ping timeout: 246 seconds]
okinomo_2 has quit [Ping timeout: 260 seconds]
splittingred_ has joined #ruby
<diogenes5> Hi all. I have an annoyingly basic question that I've been unable to figure out with google. I'm on Windows7 and have installed Ruby with RubyInstaller2.0, but when I enter 'ruby' or 'gem' in the command line it doesn't recognise the command. Any suggestions? Sorry I'm sure there's something dumb that I've missed but I can't find it.
okinomo_ has quit [Ping timeout: 260 seconds]
greenysan has quit [Ping timeout: 268 seconds]
banisterfiend has joined #ruby
splittingred has quit [Ping timeout: 256 seconds]
splittingred_ is now known as splittingred
niceguyjames has quit [Quit: Computer has gone to sleep.]
krz has quit [Quit: krz]
<wildroman> digifiv5e: did you restart the command shell?
<wildroman> oops it is diogenes5
alex__c2022 has joined #ruby
mcat1 has quit [Ping timeout: 268 seconds]
fgo has joined #ruby
<diogenes5> wildroman: yep. It was already installed on a previous ocassion and I just reinstalled it, no change
lnormous has joined #ruby
kobain has joined #ruby
amacgregor has joined #ruby
arturaz has quit [Quit: Leaving]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
pentameter has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
<diogenes5> I should be able to just enter 'ruby -v' in any directory and it'll return something, right?
zoee has quit [Quit: zoee]
arturaz has joined #ruby
huoxito has quit [Ping timeout: 240 seconds]
predator217 has quit [Ping timeout: 260 seconds]
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
arturaz has quit [Client Quit]
predator117 has joined #ruby
jlebrech has quit [Ping timeout: 264 seconds]
krz has quit [Client Quit]
adambeynon has joined #ruby
<goodcodeguy> diogenes5: I would assume you'd probably want to start with "echo $PATH"
krz has joined #ruby
<goodcodeguy> diogenes5: and make sure your paths are correct
krz has quit [Changing host]
krz has joined #ruby
amacgregor has quit [Ping timeout: 260 seconds]
<goodcodeguy> diogenes5: or "echo %path%"
lucazi has joined #ruby
<goodcodeguy> diogenes5: rather
Nisstyre has quit [Quit: Leaving]
tonni has joined #ruby
vlad_starkov has joined #ruby
BizarreCake has quit [Ping timeout: 246 seconds]
arca0 has quit [Remote host closed the connection]
Macaveli has quit [Quit: Computer has gone to sleep.]
<goodcodeguy> diogenes5: And even though these instructions are on the Java site (http://java.com/en/download/help/path.xml) you can use them to modify your paths to point to the correct binary directories for your ruby installation (provided that's how ruby works on windows--I've not installed it on a windows box before)...but that should probably get you going in the right direction
<diogenes5> okay, I'll have a lok. thanks goodcodeguy.
<diogenes5> look*
krawchyk_ has quit [Ping timeout: 256 seconds]
[]D|s3L[] has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krz has quit [Client Quit]
<relix> hey guys - I'm looking for the easiest way to generate a jpg that is a flat color
<relix> i.e. just a 800x600 red jpeg
<relix> google always seems to come up with imagemagick / rmagick which is for manipulating, I guess, but not for "generating from scratch"
<relix> or am I wrong
<MrZYX> imagemagick can totally do that afaik
mcat1 has joined #ruby
<hoelzro> I've used cairo for image generation in the past
<Xeago> correct imagemagick can do that
<hoelzro> but that's probably overkill for this situation
interactionjaxsn has joined #ruby
<relix> the reason I can't just put a static jpg in is because the colour needs to be dynamic per api call
<relix> ah yeah imagemagick can - http://www.imagemagick.org/Usage/draw/
<relix> but is there a native gem I can use that doesn't require a lib like that?
ehaliewicz has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
<waxjar> can't you utilize the browser here?
<hoelzro> relix: you could use PPM or something like that an convert to a jpg
goshakkk has joined #ruby
ndrei has joined #ruby
[]D|s3L[] has quit [Quit: Leaving...]
johest has quit [Quit: Konversation terminated!]
huoxito has joined #ruby
rezzack has joined #ruby
<Xeago> is this a reasonable way of defining my errors?
dot1q has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
m_3 has joined #ruby
dot1q has quit [Remote host closed the connection]
buzzybron has joined #ruby
sayan has quit [Ping timeout: 248 seconds]
<waxjar> why not inherit from SubscriptionError?
amacgregor has joined #ruby
benwoody has joined #ruby
<Hanmac> Xeago is there a reason why Subscription error and Payment error are not classes?
agustinvinao has joined #ruby
<Xeago> no idea, no
<Xeago> this is how I've seen it done
<Xeago> have your generic catchall error as a module
<Xeago> and the specific ones as classes
vlad_starkov has quit [Remote host closed the connection]
mrsolo has joined #ruby
agustinvinao has left #ruby [#ruby]
<Hanmac> this inherit would be possible too: PaymentAuthorizeError < PaymentError < SubscriptionError < StandardError
Macaveli has joined #ruby
<Xeago> don't think that reads as nice
<diogenes5> okay I've solved the problem: It was dumb. Like an idiot, I didn't pay much attention during installation and assumed the default settings were fine, but the option for installing Ruby globally was unchecked so it would only run in a special shell. Reinstalled with that checkbox ticked and it runs globally now. Thanks for your help goodcodeguy and wildroman..
tspike has joined #ruby
ndrei has joined #ruby
wallerdev has joined #ruby
snath has joined #ruby
rezzack has quit [Quit: Leaving.]
shaunbaker has quit [Remote host closed the connection]
<Xeago> apeiros: any comment?
aganov has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 260 seconds]
mlpinit_ has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
amacgregor has quit [Ping timeout: 264 seconds]
syltman has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
troessner has quit [Quit: Leaving]
visof has quit [Ping timeout: 245 seconds]
nari_ has quit [Ping timeout: 260 seconds]
burlyscudd has quit [Quit: Leaving.]
<Hanmac> Xeago i dont mean in one line
havenwood has joined #ruby
<Xeago> hanmac: I think it is to discourage the use of SubscriptionError directly
mansi has quit [Read error: Connection reset by peer]
tylersmith has quit [Remote host closed the connection]
<Xeago> e.g. you can't raise SubscriptionError, "won't work"
mansi has joined #ruby
ahawkins has quit [Quit: leaving]
tylersmith has joined #ruby
lkba has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
Macaveli has quit [Quit: Computer has gone to sleep.]
stonevil has joined #ruby
ssvo has joined #ruby
ndrei has joined #ruby
<Hanmac> correction, you can, but its not nice ;P
julweber has quit [Remote host closed the connection]
<Xeago> hanmac: how would you raise a module?
bubu has quit [Remote host closed the connection]
tesuji has quit [Ping timeout: 245 seconds]
shaunbaker has joined #ruby
nwertman has quit [Quit: Lost terminal]
tylersmith has quit [Ping timeout: 268 seconds]
nwertman has joined #ruby
julweber has joined #ruby
devoldmx3 has joined #ruby
companion is now known as Companion
julweber has quit [Remote host closed the connection]
<apeiros> Xeago: comments on what?
nhhagen has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
<Hanmac> Xeago if all the errors are classes in my sample
<apeiros> the point of using a module in exception classes is to not require inheritance
brbcoding has quit [Ping timeout: 245 seconds]
<apeiros> the exceptions can have ancestry chains which fit the exception
<apeiros> but you can still retain a common name to rescue them by
<apeiros> e.g. a SubscriptionPreconditionError might inherit from ArgumentError
nemesit|znc has joined #ruby
<apeiros> while PaymentSettleError might inherit from RuntimeError
<apeiros> but you want to be able to rescue both by `rescue SubscriptionError`
<waxjar> that's clever
NealJ has joined #ruby
sambao21 has joined #ruby
hogeo has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
benwoody has quit [Quit: benwoody]
wildroman has quit [Remote host closed the connection]
ndrei has joined #ruby
<Xeago> clever indeed
<Xeago> thanks!
tk__ has quit [Quit: ばいばい]
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
havenwood has quit [Remote host closed the connection]
benwoody has joined #ruby
vince_prignano has joined #ruby
robscomputer has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
dhruvasagar has joined #ruby
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d2dchat_ has joined #ruby
MrThePlague has joined #ruby
mephux has quit [Ping timeout: 245 seconds]
jsatk has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alex__c2022 has quit [Quit: alex__c2022]
<Fractional> Why can't I print this:
<Fractional> puts "|___/ |_| \_/ |_|_| |_|\___| \/ \/ \___/|_| |_|\__,_|___/"
<Fractional> In Ruby?
JumpMast3r has quit [Quit: JumpMast3r]
Guest80173 has joined #ruby
<MrZYX> works fine over here
m8 has joined #ruby
<Fractional> \ & _ are marked purple for me.
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<MrZYX> oh, yeah, of course you want to escape the \
<benwoody> use single quotes, the \ is escaping
<Fractional> But I need it for my "text-art"
viszu has quit [Quit: Leaving.]
hiyosi has quit [Read error: Connection reset by peer]
alex__c2022 has joined #ruby
zeade has joined #ruby
<breakingthings> Fractional: you just need to escape the \ or use single quotes...
hiyosi has joined #ruby
ntus1017 has joined #ruby
<Fractional> Thanks!
<Fractional> Didn't even know there was a difference between ' & " ^^
yacks has quit [Ping timeout: 245 seconds]
niceguyjames has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<Xeago> Fractional: 'is exactly how you see it', "#{interpolates} and \nescapes"
<breakingthings> ^
sambao21 has quit [Quit: Computer has gone to sleep.]
adambeynon has joined #ruby
<Fractional> How can I "clear" the consoll on both Mac OS X and Windows 7?
hasrb has joined #ruby
<Fractional> By running the same code?
ner0x has joined #ruby
<workmad3> Xeago: '\\ is still a \ in \'\'s though'
sambao21 has joined #ruby
<workmad3> >> puts '\\ is still a \ in \'\'s though'
<eval-in> workmad3 => \ is still a \ in ''s though ... (https://eval.in/46556)
iamjarvo has quit [Ping timeout: 256 seconds]
<breakingthings> magick
<breakingthings> moral of the story is escape everything
havenwood has joined #ruby
mcat1 has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
supergiantrobot has quit [Quit: supergiantrobot]
snovak_ has quit [Remote host closed the connection]
<benwoody> Fractional: not sure about Windows7, but 'puts "\e[2J\e[1;1H"' works on OSX/Linux
heftig has joined #ruby
headius has quit [Read error: Connection reset by peer]
<wuest> Pretty sure Windows console handles TTY escapes poorly/not at all.
okinomo has joined #ruby
okinomo_ has joined #ruby
okinomo_1 has joined #ruby
okinomo__ has joined #ruby
hamakn has quit [Remote host closed the connection]
headius has joined #ruby
burlyscudd has joined #ruby
hamakn has joined #ruby
crankycoder has quit [Quit: leaving]
crankycoder has joined #ruby
camilasan has quit [Remote host closed the connection]
amacgregor has joined #ruby
Voodoofish430 has joined #ruby
mikepack has joined #ruby
snovak has joined #ruby
ilmerovingio has quit [Quit: This computer has gone to sleep]
buzzybron1 has joined #ruby
okinomo_2 has joined #ruby
stonevil has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Computer has gone to sleep.]
<Fractional> Benwoody: Is that a regex or a TTY?
mcat1 has joined #ruby
<Fractional> Doesn't work for windows.
buzzybron has quit [Ping timeout: 256 seconds]
atyz has quit [Quit: Leaving...]
<workmad3> windows terminal doesn't understand ANSI color-codes
azcodex-away is now known as azcodex
atyz has joined #ruby
<havenwood> Hrm, I guess you could shell out to 'clear' for non-Win and 'clr' for Win: system RbConfig::CONFIG['host_os'] == 'mswin' ? 'clr' : 'clear'
<workmad3> pretty sure you can check that through environment variables before outputting
<havenwood> >> system RbConfig::CONFIG['host_os'] == 'mswin' ? 'clr' : 'clear'
<eval-in> havenwood => (https://eval.in/46557)
<workmad3> as not all TTYs support colour
JohnBat26 has quit [Ping timeout: 264 seconds]
hamakn has quit [Ping timeout: 268 seconds]
girija has quit [Ping timeout: 256 seconds]
stonevil has joined #ruby
greengriminal has quit [Quit: Leaving]
burlyscudd has quit [Ping timeout: 264 seconds]
nomenkun has quit [Remote host closed the connection]
jonahR has joined #ruby
taion809 is now known as zzz_taion809
dhruvasagar has quit [Ping timeout: 268 seconds]
amacgregor has quit [Ping timeout: 260 seconds]
brain_shim has quit [Ping timeout: 246 seconds]
pyrac has quit [Read error: Operation timed out]
atmosx has joined #ruby
sevenseacat has quit [Quit: Leaving.]
Rym_ has joined #ruby
Targen has joined #ruby
Bira has joined #ruby
chrisja has joined #ruby
Rym has quit [Ping timeout: 264 seconds]
timonv_ has quit [Remote host closed the connection]
|jemc| has joined #ruby
yacks has joined #ruby
marr has joined #ruby
sayan has joined #ruby
Rym has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
<Hanmac> you guys can try find_executable0("clear") from mkmf ;P
jonahR_ has joined #ruby
Rym_ has quit [Ping timeout: 248 seconds]
dagobah has quit [Remote host closed the connection]
maletor has joined #ruby
devoldmx3 has quit [Ping timeout: 264 seconds]
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mike4_ has quit [Remote host closed the connection]
jonahR_ has quit [Remote host closed the connection]
jexmex has left #ruby ["I didn't set up UberScript properly!"]
mklappstuhl has joined #ruby
burlyscudd has joined #ruby
butblack has joined #ruby
jonahR has quit [Ping timeout: 264 seconds]
<Fractional> Havenwood: That didn't work.
<butblack> how can I make a date format that looks like Mon, 16 Sep 2013 19:00:00 +0000 to something that resembles : 2011-06-03T10:00:00.000-07:00
alup has quit [Quit: Leaving]
<butblack> the former is a DateTime object
jonahR has joined #ruby
pranny has joined #ruby
stkowski has joined #ruby
<workmad3> butblack: .to_s(:db)
pranny has left #ruby [#ruby]
<havenwood> Fractional: I missed your actual question, but ^ didn't run on Win? I'm curious what is your: RbConfig::CONFIG['host_os']
<apeiros> butblack: you asked that yesterday already and got an answer
<havenwood> Fractional: Might need to: require 'rbconfig'
claymore has joined #ruby
Stygia has quit [Quit: Leaving]
<Fractional> I just copy pasted what you wrote and tried to run it.
<apeiros> workmad3: that's a) a railsism and b) even there a bad way to do it :-p
<apeiros> (db datetime format depends on the connection)
<butblack> apeiros: unfortunately I didn't have a chance to get it down
\13k has joined #ruby
musl has joined #ruby
tvw has quit []
netzmonster has quit [Quit: Computer has gone to sleep.]
<workmad3> apeiros: sorry, forgot the chan :)
filipe has quit [Read error: Connection reset by peer]
<workmad3> butblack: .iso8601
<Hanmac> butblack: use DateTime#strftime
<apeiros> butblack: see Time/DateTime#iso8601 and #rfc3339
<\13k> hey guys! is there any idiomatic way to write the equivalent to "assign = val || default", where val is an empty array?
<apeiros> the latter only seems to exist on DateTime, though
jonkri has quit [Quit: jonkri]
ixti has quit [Read error: Connection reset by peer]
<workmad3> >> require 'datetime'; puts DateTime.now.iso8601
<eval-in> workmad3 => (https://eval.in/46558)
<workmad3> >> require 'date'; puts DateTime.now.iso8601
<eval-in> workmad3 => 2013-09-03T18:36:04+02:00 ... (https://eval.in/46559)
lucazi has quit [Quit: Leaving.]
<apeiros> >> require 'time'; puts Time.now.iso8601(3)
<eval-in> apeiros => 2013-09-03T18:36:15.736+02:00 ... (https://eval.in/46560)
<apeiros> >> require 'time'; Time.now.iso8601(3)
<eval-in> apeiros => "2013-09-03T18:36:22.698+02:00" (https://eval.in/46561)
<apeiros> use the argument to get your fraction digits
TIJ has joined #ruby
<Xeago> apeiros: so now you are using the argument ;)
ixti has joined #ruby
<havenwood> \13k: You want it set to default if Array is empty?
<apeiros> Xeago: yes, learned that yesterday
<Xeago> :D
<butblack> apeiros: great
<apeiros> butblack: write it down! :-p
<butblack> apeiros: I'll use the iso8601(3)
<Xeago> that might be the first thing I managed to teach you :D
<apeiros> ^^
<butblack> apeiros: thanks again
dankest has joined #ruby
brain_shim has joined #ruby
<Hanmac> \13k: assign = val.empty? ? default : val
<havenwood> \13k: assign = val.empty? || default
<apeiros> butblack: it was Xeago yesterday who pointed out that those worked, I suggested strftime since I wasn't aware that #iso8601 can do fractionals
ananthakumaran has joined #ruby
didlix has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<havenwood> \13k: Listed to hanmac not me, seems like he understands what you're asking. :p
verto has joined #ruby
<\13k> hanmac: yeah, the ternary works, but kinda cumbersome in my case
ananthakumaran has joined #ruby
<apeiros> >> "foo".empty? || "default"
<eval-in> apeiros => "default" (https://eval.in/46562)
ananthakumaran has quit [Max SendQ exceeded]
benwoody has quit [Quit: benwoody]
<apeiros> havenwood: doubt that's desired :-p
verto has quit [Client Quit]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<\13k> havenwood: exactly, I want val if not empty, otherwise I want default
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
dodosan has joined #ruby
<Xeago> why not val||=default?
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<workmad3> Xeago: because [] isn't falsey
<apeiros> Xeago: "" is true-ish
mklappstuhl has quit [Remote host closed the connection]
timonv has joined #ruby
<apeiros> also [] and {}
<\13k> yep
<apeiros> whatever he calls .empty? on :)
<Xeago> yea, okay
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<workmad3> Xeago: only nil and false are falsey remember? :)
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<apeiros> should have .ifempty(default)
ananthakumaran has joined #ruby
<apeiros> assign = value.ifempty(default); assign2 = value.ifempty { computed_default }
<MrZYX> activesupport/rails has a shortcut for that: foo = bar.presence | default
<MrZYX> || of course
<Xeago> workmad3: I know, didn't see what he was doing
<Xeago> only saw the ternary
<workmad3> MrZYX: and s/presence/present? ;)
<MrZYX> workmad3: nope
<apeiros> workmad3: no
<Xeago> MrZYX: single pipe, or double pipe?
<MrZYX> double pipe, that was just a typo
<workmad3> ah, hadn't realised what presence does
<\13k> ah, so AS's got that. nice, I think I can use that
<workmad3> I've only used .present? before
<syltman> Hi noob here. I'm trying to do @var += x where both @var and x are strings and I get an error saying that + is an unkown operator any idea why?
<Hanmac> workmad3: present? is the negate from empty? but presence is a little bi more magic
<workmad3> hanmac: so I see :)
Hanmac has quit [Quit: Leaving.]
<apeiros> syltman: paste the precise exception please
<havenwood> workmad3: "object.presence is equivalent to object.present? ? object : nil"
benwoody has joined #ruby
benwoody has quit [Client Quit]
Hanmac has joined #ruby
<workmad3> havenwood: yeah, figured that out now
<Hanmac> fuc shitty apple keyboard
<\13k> AS's #presence is exactly what I was looking for. since I already am depending on it, I can use
benwoody has joined #ruby
<Hanmac> syltman: @var is not set, so its nil, and nil does not have + method
<\13k> thank you MrZYX
burlyscudd has quit [Quit: Leaving.]
<syltman> apeiros hanmac yeah says nil:Nilclass so that's probably it.
mwlang has quit [Quit: mwlang]
diogenes5 has left #ruby ["Leaving"]
Hanmac has quit [Client Quit]
Hanmac has joined #ruby
cantonic has joined #ruby
<syltman> ty
cantonic has quit [Client Quit]
atyz has quit [Quit: Leaving...]
burlyscudd has joined #ruby
alepore has quit [Quit: This computer has gone to sleep]
<havenwood> Just for fun, the Rails source from #presence, #present?, #blank? squished down to one line: (array.respond_to?(:empty?) ? array.empty? : !array) ? :default : array
ckampfe has quit [Ping timeout: 260 seconds]
katselphrime has joined #ruby
<Hanmac> havenwood: hihi they use ! and they dont know that its an method call ;P
mcat1 has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
sayan has quit [Quit: Leaving]
jongilbraith has joined #ruby
girija has joined #ruby
moted has joined #ruby
iliketur_ has joined #ruby
timonv has quit [Remote host closed the connection]
atyz has joined #ruby
okinomo_ has quit [Ping timeout: 260 seconds]
okinomo has quit [Ping timeout: 264 seconds]
okinomo_2 has quit [Ping timeout: 260 seconds]
okinomo_1 has quit [Ping timeout: 248 seconds]
okinomo__ has quit [Ping timeout: 248 seconds]
Jake232 has joined #ruby
goodcodeguy has quit [Quit: Lost terminal]
codecop has joined #ruby
<havenwood> Did a Rails pull request based on a earlier discussion in this channel: https://github.com/rails/rails/pull/11857/files
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
buibex has joined #ruby
<havenwood> Interesting to look at Rails source. Sometimes I'm baffled, but it really does seem to be generally nicer these days.
DanKnox_away is now known as DanKnox
spider-mario has quit [Remote host closed the connection]
<havenwood> Hrm, I guess the rescue should be `rescue NameError, RuntimeError`, dunno why they rescue all so frequently.
brbcoding has joined #ruby
<indigo> havenwood: That's a nice refactor
chairabanta has joined #ruby
fgo has quit [Remote host closed the connection]
ghr has quit [Quit: Computer has gone to sleep.]
zigomir has joined #ruby
Spami has joined #ruby
iamjarvo has joined #ruby
cantonic has joined #ruby
jongilbraith has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
<Hanmac> hm the railists strikes again … #include and #prepend are public now ;P
supergiantrobot_ has joined #ruby
twoism has joined #ruby
<havenwood> i've wished in the past that #puts was a public method, but i don't understand the negative implications if there are any
shadoi has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
crunch-choco has joined #ruby
<havenwood> [1,2,3].each(&:puts) is nicer than [1,2,3].each(&method(:puts))
<Hanmac> what about display ?
<crunch-choco> hi there!
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
banisterfiend has quit [Quit: Computer has gone to sleep.]
<Hanmac> >> [1,2,3].each(&:display);nil
<eval-in> Hanmac => 123nil (https://eval.in/46563)
atmosx has quit [Quit: computer went to sleep...]
jshakespear has joined #ruby
tspike has quit [Ping timeout: 248 seconds]
Monie has joined #ruby
<jshakespear> anybody have an idea what could be causing this error?
<jshakespear> #<OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed>
tonni has quit [Remote host closed the connection]
orionstein_away is now known as orionstein
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> jshakespear: let me guess, you are on windows or mac?
kaldrenon has quit [Remote host closed the connection]
<jshakespear> :)
<jshakespear> kinda
<jshakespear> mac for dev, but i'm getting the same error on an ubuntu box
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<jshakespear> hanmac: i've updated my ssl certs. is this still the same or similar problem?
kaldrenon has joined #ruby
kaldrenon has quit [Remote host closed the connection]
kaldrenon has joined #ruby
cads has quit [Ping timeout: 248 seconds]
<havenwood> hanmac: yeah, display works instead with the caveat of the \n missing - but it seems nice and consistent for #puts to be available - i'm just curious as to the 'why not' and if there's a good one
<jshakespear> yep
ferdev has joined #ruby
<Hanmac> jshakespear: let me guess again, the error happens when you try to run "gem" ?
seich- has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
<jshakespear> hanmac: i'm using the double-bag-ftps gem
jongilbraith has joined #ruby
<jshakespear> i'm not getting it when i run "gem", but when i try to connect to the remote ftps server
kpshek has quit [Ping timeout: 268 seconds]
__userna1 has joined #ruby
niceguyjames has joined #ruby
echevemaster has quit [Read error: Operation timed out]
niceguyjames has quit [Client Quit]
jlundy has joined #ruby
<Hanmac> jshakespear: scroll down on the site, there is an diagnosis chapter, maybe it helps you
<crunch-choco> can we convert html to pdf with ruby?
hogeo has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
caju has quit [Remote host closed the connection]
araujo has quit [Ping timeout: 260 seconds]
rupee has joined #ruby
RobW_ has joined #ruby
<havenwood> crunch-choco: Check out the Prawn gem: http://prawn.majesticseacreature.com/
kpshek has joined #ruby
<jshakespear> hanmac: i'll run through the diag and let you know
jongilbraith has quit [Client Quit]
buibex has quit [Remote host closed the connection]
<RobW_> Is this a good channel to ask sprockets / asset pipeline questions?
<crunch-choco> havenwood: o thanks!
__username__ has quit [Ping timeout: 248 seconds]
<havenwood> Then again... "One thing Prawn is not, and will never be, is an HTML to PDF generator."
<havenwood> crunch-choco: There may be exactly what you're looking for, Prawn is a more flexible tool. I dunno.
Ripp__ has joined #ruby
shaunbaker has quit [Remote host closed the connection]
<havenwood> crunch-choco: pdf-kit looks like maybe a better choice for your case
sr78ger has quit [Ping timeout: 256 seconds]
<jlundy> anyone tried to extend rspec failure methods to include extra information without creating all new matchers?
verto has joined #ruby
Zai00 has quit [Quit: Zai00]
cassivs has quit [Quit: cassivs]
<havenwood> RobW_: For Rails stuff #RubyOnRails is the best place.
tspike has joined #ruby
ewnd9_ has quit [Ping timeout: 264 seconds]
<havenwood> Wish they'd name their channel simply #rails...
Eiam has joined #ruby
saarinen has joined #ruby
cantonic has quit [Quit: cantonic]
<RobW_> havenwood Just found it, thanks.
Guest98659 has quit [Ping timeout: 245 seconds]
Banistergalaxy has quit [Ping timeout: 256 seconds]
decoponio has quit [Quit: Leaving...]
seich- has joined #ruby
audiodude has quit [Quit: Leaving]
Banistergalaxy has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
nickbender has joined #ruby
himsin has joined #ruby
ismael has joined #ruby
iliketur_ has joined #ruby
carraroj has joined #ruby
benwoody has quit [Quit: benwoody]
ismael is now known as Guest78307
Guest78307 has quit [Remote host closed the connection]
momomomomo has joined #ruby
bricker`away is now known as bricker
himsin has quit [Ping timeout: 260 seconds]
hamakn has joined #ruby
lord1234 has left #ruby [#ruby]
amacgregor has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
hamakn has joined #ruby
ismael_ has joined #ruby
Targen has quit [Ping timeout: 260 seconds]
hamakn has quit [Read error: Connection reset by peer]
benwoody has joined #ruby
hamakn has joined #ruby
<ismael_> Ohay
<Hanmac> havenwood: Rails would be the new pixar movie after Planes2 … then comes Cars Vs Planes, Cars Vs Planes 2, Cars Vs Planes Vs Rails, Cars Vs Planes Vs Rails2 etc … ;P
ismaelrb has joined #ruby
bean__ has joined #ruby
kpshek has quit [Ping timeout: 256 seconds]
sirupsen has joined #ruby
blueOxigen has joined #ruby
<havenwood> hanmac: Haha, reminds me of Christopher Walken talking about Rails: http://collectiveidea.com/blog/archives/2012/04/01/walken-on-rails/
ewnd9_ has joined #ruby
<nickbender> hanmac: Musn't forget Boats
<ismael_> and ferries
ismaelrb has quit [Client Quit]
<Hanmac> nickbender, that would be a triology "boats", "boats boats" and "boats boats boats"
<havenwood> "A Ruby on a Rail, you don't do that. A gem too precious for a train... Buy it a plane ticket, send it wherever it needs to go."
goodcodeguy has joined #ruby
io_syl has joined #ruby
io_syl has quit [Client Quit]
kpshek has joined #ruby
sepp2k has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
<Morrolan> That accent reminds me of a coworker.
io_syl has joined #ruby
<Morrolan> Wikipedia claims he's born in the US, though. :o
Al_ has quit [Quit: Al_]
amacgregor has quit [Ping timeout: 245 seconds]
headius has quit [Quit: headius]
geekbri has quit [Remote host closed the connection]
kpshek has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
gusnasis___ has joined #ruby
sayan has joined #ruby
momomomomo has joined #ruby
tjad has joined #ruby
kpshek has joined #ruby
alepore has joined #ruby
TIJ has quit [Quit: Konversation terminated!]
hiroyuki has joined #ruby
blackmesa has joined #ruby
shanlar has quit [Quit: Be back later]
alepore has quit [Client Quit]
ner0x has quit [Quit: Leaving]
digital-ghost has joined #ruby
tvw has joined #ruby
shanlar has joined #ruby
banisterfiend has joined #ruby
stack has quit [Ping timeout: 246 seconds]
snovak_ has joined #ruby
gusnasis___ has quit [Ping timeout: 256 seconds]
snovak has quit [Ping timeout: 264 seconds]
alekst has joined #ruby
dodosan has quit [Remote host closed the connection]
stack has joined #ruby
dodosan has joined #ruby
rezzack has joined #ruby
devoldmx3 has joined #ruby
ismael_ has quit [Remote host closed the connection]
ismael_ has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
dodosan has quit [Remote host closed the connection]
dodosan has joined #ruby
ismael_ has quit [Remote host closed the connection]
blaxter_ has quit [Ping timeout: 240 seconds]
kidoz has joined #ruby
headius has joined #ruby
ismael_ has joined #ruby
twoism has quit [Read error: Connection reset by peer]
twoism has joined #ruby
saarinen has quit [Quit: saarinen]
havenwood has quit [Remote host closed the connection]
carlyle has joined #ruby
johnnyfuchs has joined #ruby
nwertman_ has joined #ruby
obs has quit [Quit: Konversation terminated!]
nwertman_ has quit [Client Quit]
nwertman_ has joined #ruby
nomenkun has joined #ruby
dodosan has quit [Ping timeout: 245 seconds]
zarubin has joined #ruby
Senjai has joined #ruby
Senjai has joined #ruby
ismael_ has quit [Ping timeout: 248 seconds]
dmerrick has joined #ruby
Cyrus has joined #ruby
greenrose has quit []
JumpMast3r has joined #ruby
jaynewstrom has quit [Remote host closed the connection]
defaultro has quit [Quit: defaultro]
blackmesa has quit [Ping timeout: 240 seconds]
relix has joined #ruby
graft has quit [Ping timeout: 240 seconds]
defaultro has joined #ruby
shunt has joined #ruby
apeiros has quit [Remote host closed the connection]
jaynewstrom has joined #ruby
jonahR has quit [Quit: jonahR]
mcat1 has joined #ruby
fgo has joined #ruby
mrsolo has quit [Read error: Connection reset by peer]
<shvelo> Hi everyone
mrsolo has joined #ruby
devoldmx3 has quit [Quit: Shutting down]
<waxjar> hi
jonahR has joined #ruby
devoldmx has joined #ruby
<shvelo> what's up?
bio has joined #ruby
<mcat1> learning ruby lol
<shvelo> cool
bio is now known as Guest60647
ntus1017 has quit [Remote host closed the connection]
<shvelo> I haven't worked on Ruby for a while and I forgot much :/
<mcat1> Ruby the Hard Way is nice, if not repetitive. it has good reviews and is free.
netzmonster has joined #ruby
greenrose has joined #ruby
<shvelo> it's too long
ericmathison has joined #ruby
<shvelo> for me: D
fgo has quit [Ping timeout: 264 seconds]
<shvelo> I'll just do the Ruby Koans, it helps remembering stuff
<mcat1> haha I agree, but I hope it's worth it cuz I'm gonna try to do it all this week.
iamjarvo_ has joined #ruby
<mcat1> ya it does
saarinen has joined #ruby
<shvelo> when I'm done, I'll try to learn Python, again
<shvelo> never had time for it
<mcat1> have u ever used codeAcademy?
lukec has joined #ruby
<shvelo> yea
iamjarvo_ has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
iamjarvo_ has joined #ruby
<mcat1> I really enjoyed the whole python course, though there are a few bugs.
butblack has left #ruby [#ruby]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<jshakespear> hanmac: went through the diagnostic, even went as far as removing the ruby and openssl and reinstalling them
<jshakespear> still having the same problem
Ripp__ has quit [Quit: Ripp__]
pothibo has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
goganchic has joined #ruby
<jshakespear> when i link the openssl install with brew, does that replace the openssl installed with os x?
Quashie has quit [Ping timeout: 260 seconds]
VTLob has joined #ruby
Coolhand has quit [Ping timeout: 260 seconds]
reset has joined #ruby
ckampfe has joined #ruby
phantasm66 has quit [Quit: *poof*]
phantasm66 has joined #ruby
saarinen has quit [Quit: saarinen]
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
jkline has joined #ruby
jonahR has quit [Quit: jonahR]
yekta has quit [Quit: yekta]
`damien has joined #ruby
DrCode has quit [Remote host closed the connection]
Companion is now known as companion
kayloos has joined #ruby
kayloos has quit [Remote host closed the connection]
kayloos has joined #ruby
d2dchat_ has quit [Remote host closed the connection]
spalenza has joined #ruby
Xeago has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
twoism has quit [Read error: Connection reset by peer]
fenicks has joined #ruby
twoism has joined #ruby
jshakespear has quit [Ping timeout: 256 seconds]
BraddBitt is now known as BraddPitt
strgbrew has joined #ruby
twoism has quit [Remote host closed the connection]
iliketur_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
twoism has joined #ruby
michalkozminski has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
vince_prignano has quit [Ping timeout: 256 seconds]
vince_prignano has joined #ruby
michalkozminski has joined #ruby
DrCode has joined #ruby
mcat1 has quit [Remote host closed the connection]
echevemaster has joined #ruby
nomenkun has quit [Remote host closed the connection]
<shvelo> array[4,0] == [] but array[5,0] == nil
nomenkun has joined #ruby
graft has joined #ruby
graft has joined #ruby
dash_ has joined #ruby
speakingcode-wor has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
momomomomo has joined #ruby
browndawg has quit [Quit: Leaving.]
iamjarvo_ has quit [Remote host closed the connection]
twoism has quit [Ping timeout: 256 seconds]
bitcycle has joined #ruby
iamjarvo has joined #ruby
nwertman_ has quit [Remote host closed the connection]
mib_mib has quit [Quit: Page closed]
fcahoon has joined #ruby
jbpros has quit [Quit: jbpros]
buzzybron1 has quit [Quit: Leaving.]
Cyrus has quit [Quit: Cyrus.close()]
bean has quit [Ping timeout: 240 seconds]
bean__ is now known as bean
Al_ has joined #ruby
freerobby has quit [Quit: Leaving.]
<Hanmac> shvelo, wait until the moment when you learn that :symbols.succ ;P
jbpros has joined #ruby
DanKnox is now known as DanKnox_away
DrCode has quit [Quit: ZNC - http://znc.in]
atmosx has joined #ruby
altamic has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
alepore has joined #ruby
jonahR has joined #ruby
altamic has left #ruby [#ruby]
|jemc| has quit [Ping timeout: 268 seconds]
agent_white has joined #ruby
razi has joined #ruby
<agent_white> Afternoon all
<`damien> Afternoon
|jemc| has joined #ruby
freerobby has joined #ruby
<agent_white> So I'm looking for what keyword(s) to Google for... essentially, I'm trying to scrape a dynamic site, but have realized that I need to take advantage of sessions/cookies for logins before I can scrape the data.
deception has joined #ruby
pel_daniel has joined #ruby
corpuscle has quit [Quit: WeeChat 0.4.1]
carraroj has quit [Ping timeout: 260 seconds]
<agent_white> Nevermind, answered my own question. SOP restriction
<bricker> Is it bad to use 'force_encoding' all over the place?
DrCode has joined #ruby
carraroj has joined #ruby
<workmad3> bricker: yes
DanKnox_away is now known as DanKnox
<bricker> workmad3: two follow-up questions: 1. Why? 2. What is my other option? The content is coming from an outside source, and inserting it directly into the database just replaces the UTF-8 characters with question marks.
goganchic has quit []
<workmad3> bricker: 1. it just re-interprets the byte-stream as a different encoding. 2. the IO class you're using to read the data in with should accept an encoding parameter... use it ;)
<Hanmac> bricker, i think the problem is that you have 3 encodings … one on the outside, one inside ruby, and one in the database …
agent_white has left #ruby [#ruby]
<workmad3> hanmac: that's not a 'problem', that's merely a statement about how things are ;)
mansi has quit [Read error: Connection reset by peer]
peregrine81 has joined #ruby
<bricker> hanmac: workmad3 going into the database it looks okay. And if I insert the character into the database via a form, it works okay.
Al_ has quit [Quit: Al_]
<bricker> It just seems that at some point between the INSERT command, and actually committing, it converts UTF-8 to ASCII-8BIT or something
mansi has joined #ruby
<workmad3> hanmac,bricker: the problem is that whatever is getting the data *into* ruby is reading it with the wrong encoding
sventon has joined #ruby
<bricker> workmad3: So this is making an HTTP GET request to an API - you're saying that at that stage, I should be ensuring that the response is in UTF-8?
<workmad3> bricker: yes
<workmad3> bricker: assuming that it is being sent as UTF-8 anyway ;)
Ripp__ has joined #ruby
mark_locklear has quit [Ping timeout: 264 seconds]
<workmad3> bricker: what are you using to make the HTTP request?
twoism has joined #ruby
ewnd9_ has quit [Ping timeout: 264 seconds]
<bricker> workmad3: Net::HTTP (via Faraday)
unixninja92 has joined #ruby
wesside has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
mansi has quit [Read error: Connection reset by peer]
julian-delphiki has joined #ruby
mansi has joined #ruby
rcosta has joined #ruby
tjbiddle has joined #ruby
bitcycle has quit [Quit: Lost terminal]
blandflakes has joined #ruby
geekbri has joined #ruby
<Hanmac> bricker, hm if you use HTTP, and if you can read the response header, there should be an "content-type" header if its correct …
Uranio has joined #ruby
Elhu has joined #ruby
freerobby has quit [Quit: Leaving.]
iliketur_ has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
shaunbaker has joined #ruby
iliketur_ has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banister has joined #ruby
iamjarvo_ has joined #ruby
julweber has joined #ruby
Elhu has quit [Read error: Connection reset by peer]
nhhagen has quit [Remote host closed the connection]
echevemaster has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
stonevil has quit [Remote host closed the connection]
randomdrake has joined #ruby
iamjarvo has quit [Ping timeout: 264 seconds]
go|dfish has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<randomdrake> Hello there. I'm working through the Ruby Koans and I've got a question regarding creating classes. Here's what I want to do http://codepad.org/LE7clGsm however, it's not working as expected. I'm expecting roll_dice() to be ran multiple times, thus adding to the @dice_roll class member.
jso_ is now known as jso
<randomdrake> But, in fact, my return of @dice_roll simply returns an empty array.
<workmad3> randomdrake: line 19 is wrong
snovak_ has quit [Remote host closed the connection]
freerobby has joined #ruby
yfeldblum has joined #ruby
julweber has quit [Remote host closed the connection]
nhhagen has quit [Ping timeout: 248 seconds]
snovak has joined #ruby
<nickbender> randomdrake: second to workmad3's comment. Try it out in irb to confirm.
cantonic has quit [Ping timeout: 245 seconds]
<nickbender> randomdrake: square brackets aren't for args
<workmad3> nickbender: I was letting him work that out for himself ;)
<workmad3> nickbender: learning moment, etc
nomenkun has quit [Remote host closed the connection]
<randomdrake> Yea, I worked it out. Thanks.
dodosan has joined #ruby
<workmad3> randomdrake: now, can you work out why you were getting the result you did?
<randomdrake> Been having a bit of issues adjusting to whether I use curlys, square, or parens coming from PHP and Python.
<Hanmac> PS: rand does support range like rand(1..6)
<randomdrake> workmad3: yea, I can move on from there :)
jbpros has quit [Quit: jbpros]
burlyscudd has quit [Ping timeout: 248 seconds]
<randomdrake> hanmac: Yea, I was aware, however, I was trying anything and everything to get it to work and came across the 1 + thing in a SO response. It was late and I was frustrated so I was trying just about anything.
DanKnox is now known as DanKnox_away
<randomdrake> nickbender: irb?
<nickbender> randomdrake: interactive ruby.... type irb into a shell and you can play
go|dfish has joined #ruby
<randomdrake> Oh, that's right. I remember that from another Ruby tutorial. Thanks.
jbpros has joined #ruby
<Hanmac> look at the three different lines, all of them are valid ruby, but each of them returns something differnent "val.push(obj)" "val.push[obj]" "val.push [obj]"
<nickbender> extremely helpful, and you would have seen the => nil return from your push statement as an individual line
<wuest> irb is a fantastic tool, _especially_ as you're learning.
<randomdrake> I have to say, the Ruby Koans are quite nice. I wish there was an interactive version a la try ruby.
<Morrolan> I believe there is.
<Morrolan> There's an interactive version on heroku.
<nickbender> randomdrake: Ruby Bits on codeschool/codecademy
<randomdrake> Oh?
<Morrolan> (Though I can not say anything about how good it is)
Nisstyre has joined #ruby
<Morrolan> Ah, an abridged version it is.
<randomdrake> nickbender: I am not a fan of the "watch a video" style much at all.
Es0teric has joined #ruby
<nickbender> randomdrake: to each his own... codecademy has no videos: http://www.codecademy.com/courses/ruby-beginner-en-d1Ylq/0/1?curriculum_id=5059f8619189a5000201fbcb
eldariof has joined #ruby
<Hanmac> randomdrake: look at my three lines i posted before, and little homework for you is to how to understand why all of them work, and why they all return something different ;P
girija has quit [Ping timeout: 256 seconds]
rgbdev has joined #ruby
Matriks has quit [Remote host closed the connection]
<randomdrake> hanmac: well val.push[obj] doesn't work because it can't convert a hash to an integer.
<randomdrake> hanmac: but I can see how neat ruby is with all the different ways you can pass arguments in the other examples :)
<nickbender> randomdrake: val.push obj
<nickbender> would also work
echevemaster has joined #ruby
jlast has quit [Ping timeout: 268 seconds]
<nickbender> but poetry mode can make things even more confusing
Rym has quit [Ping timeout: 260 seconds]
<randomdrake> nickbender: poetry mode?
<nickbender> randomdrake: you don't need to use parents in 90% of the places you probably think you do, but they can enhance readability if you're used to them.
<nickbender> *parens
<nickbender> randomdrake: method_call() == method_call
<Hanmac> val.push[obj] works if for sample when obj is an integer (like returned from rand) because in reality its val.push()[obj]
<randomdrake> nickbender: sure. What's the most common?
codecop has quit [Remote host closed the connection]
<randomdrake> hanmac: right.
deception has quit [Quit: Goodbye]
<randomdrake> hanmac: or if the object has been given a way to describe itself via a to_i ?
<nickbender> randomdrake: personal preference. In most of my orgs parens are used for method parameter declarations, and anywhere you're chaining callbacks
<randomdrake> nickbender: what about the fact that adding an empty parens() makes it very clear you're assigning/using a function instead of a variable or something?
__username__ has joined #ruby
__userna1 has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
<nickbender> randomdrake: a general rule is that if it makes it easier for you to read, go ahead and put them in, but you can also avoid confusion by using verbs as your method names... sort_something is a very active name, so it's obvious it's a method
jlast has joined #ruby
<randomdrake> Vim, for example, doesn't highlight function calls differently than other things so it seems like adding the parens() would make it more explicit? Or do I just need to let go of that habit/necessity a bit with Ruby?
tylersmith has quit [Remote host closed the connection]
<Hanmac> randomdrake: hm i dont think so … to_i is not used … there is a second method called "to_int" … (same for "to_s" vs "to_str" and "to_a" vs "to_ary" )
<nickbender> randomdrake: get_my_documents is also obviously a method. documents therefore would be not as good a method name
nhhagen has joined #ruby
<randomdrake> nickbender: sure. I'm just trying to wrap my head around more common/proper Ruby conventions coming from PHP or Python.
tylersmith has joined #ruby
futilegames has quit [Quit: futilegames]
<randomdrake> hanmac: yea, that's what I was thinking of… to_int
<randomdrake> hanmac: sorry, assumed it'd be similar to to_s :)
<Hanmac> to_s means it can be turned into an string, to_str means it can be reinterpreted as a string for sample
Senjai has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<workmad3> hanmac: hmm, I thought it was more 'to_s' needs to return something 'string-like', while 'to_str' should always return a String
<randomdrake> hanmac: yea, I looked over that. But it doesn't really talk about styling conventions.
katselphrime has quit [Ping timeout: 260 seconds]
Rym has joined #ruby
<Hanmac> workmad3: hm to_s also returns a string, but to_s may lose infomation compared to_str
buibex has joined #ruby
havenwood has joined #ruby
<randomdrake> nickbender, hanmac while I've got you here. One part of the koans I did sort of gloss over a bit, but that seems very powerful, is "inject". Can either of you suggest a better description of it and how it can be used than the manual?
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
KevinSjoberg has joined #ruby
mlpinit_ has joined #ruby
go|dfish has quit [Ping timeout: 245 seconds]
EluThingolBG has joined #ruby
snovak_ has joined #ruby
<EluThingolBG> so calm
rdark has quit [Quit: leaving]
<Hanmac> hm inject is "do something and use result in next iteration" … very useful for sum(:+) and product(:*)
<EluThingolBG> ha ha
<EluThingolBG> i get it practically stress
<randomdrake> hanmac: it seems to really only be for addition and multiplication. But, I feel like it's more powerful and that I'm missing something with that assumption.
<workmad3> randomdrake: the other name for 'inject' is 'reduce' which is the name for it from functional programming
<EluThingolBG> it's all bells and whistles, cause she doesn't really know if she wants to ride or drive
<workmad3> randomdrake: and yes, it's much more powerful than that... there's an entire concurrency paradigm called 'map-reduce' (which is the building block of *everything* google does) of which 'reduce' is half of it ;)
<randomdrake> workmad3: got a link to some more interesting examples than simply adding and subtracting then?
<Hanmac> but imo "reduce" sounds so much "reducing" :P … imo not the right name for a function that mostly is used for sum results ;P
<EluThingolBG> felt the pain
<randomdrake> s/subtracting/multiplying
<EluThingolBG> lie about shit
<workmad3> hanmac: the name 'reduce' is because you're reducing a collection into a single item
mlpinit has quit [Ping timeout: 260 seconds]
snovak has quit [Ping timeout: 264 seconds]
<EluThingolBG> in retail selling whack guys for falling asleep in a circle
Macaveli has joined #ruby
<EluThingolBG> 50 peace is
antn has joined #ruby
<randomdrake> workmad3: I'm much more familiar with the concept of map-reduce or reduce. I think I'll go down that line of learning it then.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> randomdrake: I'm sure you can get a lot of info about interesting examples if you google 'map-reduce' ;)
<EluThingolBG> shortys shout it out their cars
<Hanmac> randomdrake: arrayOfProducts.map(&:price).inject(0,:+)
<randomdrake> workmad3: yea. I didn't realize they were one in the same.
<workmad3> hanmac: the '0' is unnecessary there
<EluThingolBG> choose the same saw
go|dfish has joined #ruby
<Hanmac> workmad3 no, without it can return nil
<EluThingolBG> just come take your property and we can move on to the next object for sale, me
<EluThingolBG> it's me
<workmad3> hanmac: sure... if the array empty
<EluThingolBG> guess who game
iliketur_ has joined #ruby
<EluThingolBG> bazooka tooth so you know we dont love, you
Croms has joined #ruby
rcosta has quit [Remote host closed the connection]
<EluThingolBG> halo i saw, the revolution will, not be apologized for
<EluThingolBG> i'm quarter mall, let's sing, bring your dead quarter, up sky high
antn has quit [Remote host closed the connection]
jprovazn has quit [Quit: Odcházím]
<workmad3> hanmac: so you get to ask yourself, is the sum of prices for no products '0', or 'nothing at all', and decide your default based on that ;)
<EluThingolBG> let's sing, let's poke a hole in the spacetime continuum, and take calls, casually
<workmad3> any ops around to kick this bot?
<randomdrake> workmad3, hanmac, nickbender - thanks much for your help. Back to the Koans.
<EluThingolBG> im not a bot
<EluThingolBG> i hack reality
<EluThingolBG> redundant mic syndrome
<Hanmac> workmad3: it depends if there is an addional check or not
jbomo has quit []
<EluThingolBG> it's barbido in a coffin, i, play the grown up thing
<EluThingolBG> it's me
<EluThingolBG> the ' carries the verb, right noun
<workmad3> hanmac: ok, so I should say 'the 0 might be unnecessary there' then ;)
<EluThingolBG> i move it to
<workmad3> hanmac: I'd probably state the case that it clutters up an example though ;)
<EluThingolBG> well, lines are redundantly people, until megamom scissors legoman
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<EluThingolBG> what show do, we watch bikini carwash
<EluThingolBG> it's me on 2
Hanmac has quit [Quit: uses whirlwind for escape]
<EluThingolBG> how does it always work, but ?
<EluThingolBG> what am i going to do, today ?
blackmesa has joined #ruby
netzmonster has quit [Quit: Computer has gone to sleep.]
<randomdrake> workmad3: http://railspikes.com/2008/8/11/understanding-map-and-reduce did a splendid job explaining. Thanks again.
<EluThingolBG> what happened the day i got the phonecall, j master j ?
`damien has quit [Quit: `damien]
shaunbaker has quit [Ping timeout: 264 seconds]
<EluThingolBG> let shit out, to happen
cody-- has quit [Quit: Computer has gone to sleep.]
antulik-afk has quit [Ping timeout: 245 seconds]
KevinSjoberg has joined #ruby
<EluThingolBG> and i built cleaner
<EluThingolBG> aesop rock it, will it stop ?
<EluThingolBG> orly orly
ShapeShifter499 has quit [Ping timeout: 264 seconds]
<EluThingolBG> did you two ow the husstle, uncle ?
<EluThingolBG> give me something to work
<EluThingolBG> give me something to work with*
nwertman_ has joined #ruby
<EluThingolBG> give me something to work, my father ?
awarner has joined #ruby
<EluThingolBG> give me something to work with
alepore has quit [Quit: This computer has gone to sleep]
<EluThingolBG> bark with it*
<EluThingolBG> it won't stop
mlpinit_ has quit [Read error: Connection reset by peer]
<EluThingolBG> did you clip the biased, my assistant ?
robustus has quit [Ping timeout: 264 seconds]
<EluThingolBG> scissor the unbiased, still acc skinny
mlpinit has joined #ruby
robustus has joined #ruby
<EluThingolBG> weather you levitate or bend spoons, give me something to work with
cantonic has joined #ruby
<EluThingolBG> it bros, so you keep your drugs away from me
<EluThingolBG> it's me bros, who owes bros is a fun, i did it c is
<EluThingolBG> beat kids beat kids beat kids, kick rocks kick rocks kick rocks
Rym has quit [Ping timeout: 245 seconds]
<EluThingolBG> never that
javierbuilder has joined #ruby
nwertman_ has quit [Read error: Connection reset by peer]
Macaveli has quit [Read error: Connection reset by peer]
awwaiid has quit [Quit: leaving]
ckampfe has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Quit: Leaving.]
Rym has joined #ruby
nwertman_ has joined #ruby
saarinen has joined #ruby
jibi has quit [Read error: Connection reset by peer]
deception has joined #ruby
twoism has quit [Ping timeout: 260 seconds]
twoism has joined #ruby
antulik-afk has joined #ruby
javierbuilder has quit [Ping timeout: 276 seconds]
mulander has left #ruby [#ruby]
jibi has joined #ruby
ShapeShifter499 has joined #ruby
mlpinit has quit [Remote host closed the connection]
<EluThingolBG> who wrote that?
Croms has quit [Quit: Croms]
Mirek1 has joined #ruby
Mirek1 has left #ruby [#ruby]
mlpinit has joined #ruby
devoldmx has quit [Remote host closed the connection]
dash_ has quit [Quit: dash_]
tjad has quit [Ping timeout: 248 seconds]
<MrZYX> say nothing if you're not a bot
|jemc| has quit [Ping timeout: 260 seconds]
<MrZYX> mkay, really just stupid. Interesting.
pitzips has joined #ruby
<Morrolan> I suspected so when his throughpout started to decrease. :P
<Morrolan> s/pout/put/
brbcoding has quit []
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
gusnasis___ has joined #ruby
javierbuilder has joined #ruby
javierbuilder has quit [Max SendQ exceeded]
gusnasis___ has quit [Client Quit]
gusnasis has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
buibex has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
bigkevmcd has quit [Ping timeout: 245 seconds]
wesside has joined #ruby
bigkevmcd has joined #ruby
benwoody has quit [Quit: benwoody]
hasrb has quit [Remote host closed the connection]
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
alepore has joined #ruby
benwoody has joined #ruby
rcosta has joined #ruby
stonevil has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
ckampfe has joined #ruby
aryaching_ has quit [Ping timeout: 256 seconds]
Davey has joined #ruby
reset has quit [Quit: Leaving...]
relix has joined #ruby
cody-- has joined #ruby
havenwood has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
havenwood has joined #ruby
<EluThingolBG> did it izm isn't it amusing, how only after
mark_locklear has joined #ruby
havenn has joined #ruby
<shevy> what
<shevy> EluThingolBG do something useful... learn ruby man
rcosta has quit [Ping timeout: 260 seconds]
yekta has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
reset has joined #ruby
kofno has quit [Ping timeout: 245 seconds]
DanKnox_away is now known as DanKnox
butblack has joined #ruby
<atmosx> shevy: how r u mate?
yalue has quit [Quit: Leaving]
mlpinit has quit [Remote host closed the connection]
tjad has joined #ruby
nomenkun has joined #ruby
brain_shim has quit [Ping timeout: 260 seconds]
<shevy> atmosx somewhat ok, way too much to do and no idea how to do everything
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
<shevy> atmosx in regards to programming, I will finish porting my dia-shell in this month, then finally bite the bullet and learn C
javierbuilder has joined #ruby
<shevy> atmosx oh... ruby-gnome works again for me, so I can use GUI bindings again
javierbuilder has quit [Max SendQ exceeded]
Nilium has quit [Ping timeout: 240 seconds]
benwoody has quit [Quit: benwoody]
<shevy> atmosx the coolest thing would be to write GUI-agnostic
<shevy> like ... do include Gtk... or include Qt ... or include WxWidgets
jonahR has quit [Quit: jonahR]
nomenkun has quit [Ping timeout: 256 seconds]
<shevy> and then just do ... Windows.new ... Button.new 'hello world'
benwoody has joined #ruby
sventon has quit [Remote host closed the connection]
apeiros has joined #ruby
thillux has quit [Quit: Leaving]
thillux has joined #ruby
Al_ has joined #ruby
eldariof has quit [Ping timeout: 264 seconds]
lnormous has quit [Read error: Operation timed out]
jlundy has left #ruby [#ruby]
lnormous has joined #ruby
DanBoy has joined #ruby
buibex has joined #ruby
jkline has quit [Quit: jkline]
burlyscudd has quit [Ping timeout: 276 seconds]
<atmosx> shevy: never worked with GUIs. I have no idea how to do that.
Nilium has joined #ruby
<patrikf> shevy: that's probably not feasible because different toolkits have different ideas about how to specify layout etc.
Criztian has joined #ruby
<patrikf> but technically, WxWidgets tries to do that (provide a common interface for various toolkits)
rupee has quit [Quit: Leaving]
<shevy> patrikf, yeah... I am fine with a minimal subset though
<shevy> I dont aim to achieve perfect looks, I Just want the logic once, and have it work somehow in the different toolkits without me having to do anything else
<prophile> .w 28
<shevy> atmosx the basic is usually very similar
<shevy> atmosx there are some differences though, like how Qt uses slots, and gtk does not use slots
<shevy> atmosx it's also a bit like javascript ... signal_connect(:clicked) { # do stuff here when the mouse clicked }
<shevy> on a widget
<atmosx> I see
<shevy> prophile hehe ... man, I hated how you had to use rcfiles in GTK
<shevy> CSS is so much better than rcfiles :(
Davey has quit [Ping timeout: 276 seconds]
<shevy> but that was in gtk2 ... I have not spent much time with gtk3
zigomir has quit [Ping timeout: 260 seconds]
rcosta_ has joined #ruby
robscomputer_ has joined #ruby
tonni has joined #ruby
sventon has joined #ruby
lord1234 has joined #ruby
<shevy> atmosx I mostly just want to try and do little things now. little widgets, small "apps", in ruby-gnome
<lord1234> anyone here use YAML?
chairabanta is now known as chairabanta|away
<pontiki> yes
robscomputer_ has quit [Remote host closed the connection]
<shevy> lord1234 some of us do, hopefully I can find a replacement for it soon, what do you wanna know about yaml
sventon has left #ruby [#ruby]
<shevy> YAML.load_file() # the only true way to load a yaml file
<pontiki> a replacement for YAML? you must mean XML
<shevy> ack
<havenn> MessagePack.
<shevy> XML is even worse
<pontiki> heehee
<lord1234> shevy: so I have shevy: YAML.load("a: 4,5,6") what do you expect a is going to equal?
<pontiki> JSON, that's the way you do it
<shevy> I also have to admit, I dont understand how json can be a replacement for yaml
<atmosx> shevy: I need to migrate my app to rails and then… I really have to build 2 web apps. One for Digital Signage systems that would make my life easier and one to control openvpn nodes somehow automatically.
robscomputer_ has joined #ruby
corpuscle has joined #ruby
<shevy> lord1234 this looks like a string?
<atmosx> shevy: have you seen JSON format?
<pontiki> let's just see:
<prophile> json can't do cycles
<lord1234> shevy, I expected to see output of "4,5,6" but got 456
<shevy> oh
<prophile> yaml can
<shevy> it is a hash
<pontiki> >> require 'yaml'; YAML.load("a: 4,5,6")
<eval-in> pontiki => (https://eval.in/46580)
<shevy> lord1234, hmmmmm
<prophile> whether that's a good thing is up for debate
<shevy> lord1234 not sure why the , got killed
kayloos has quit [Remote host closed the connection]
<shevy> but that is funny :)
<shevy> atmosx, whoa, you are a railser now?
kayloos has joined #ruby
<lord1234> >> require 'yaml'; YAML.load("a:'4,5,6'")
<eval-in> lord1234 => (https://eval.in/46581)
<atmosx> shevy: no, not even close. i must become one though
alepore has quit [Quit: This computer has gone to sleep]
huoxito has quit [Quit: Leaving]
<shevy> lord1234 perhaps it's a bug
<atmosx> shevy: I even boguht a book about html5 + CSS3 (leaving JS out for now but it's neat)
Xeago has joined #ruby
robscomputer has quit [Ping timeout: 268 seconds]
<shevy> lord1234 or perhaps... what output do you want to see, a string, yes? but you provided integers
<lord1234> yea
<lord1234> pontki doesn't work
<shevy> YAML.load("a: '4,5,6'") # => {"a"=>"4,5,6"}
<lord1234> or that is eval-in doesn't...
<lord1234> yea
Rym has quit [Read error: Connection reset by peer]
carraroj has quit [Quit: Konversation terminated!]
mlpinit has joined #ruby
<shevy> I have no idea why the , are killed though... I think whatever yaml does, it must make a decision
<shevy> it could drop all after the first ,
<lord1234> i think its for numbers like 1,200,000
<shevy> ah
<lord1234> it just doesn't split them into 3's like we normally would
<shevy> huh
<shevy> look at this:
<shevy> YAML.load("a: 4,000,000") # => {"a"=>4000000}
<shevy> YAML.load("a: 4_000_000") # => {"a"=>"4_000_000"}
chairabanta|away has quit [Quit: Leaving...]
<lord1234> cuz 4_000_000 isn't how anyone on earth seperates numbers
<lord1234> _ makes it think it's a string
<shevy> YAML.load("a: 4000000") # => {"a"=>4000000}
<lord1234> , makes it think its a number...
<atmosx> lord1234: and , , should be a string also
<shevy> it indeed ignores the ,
tjbiddle_ has joined #ruby
<shevy> but when it sees _ it assumes this must be a string
<atmosx> hm
defaultro has quit [Quit: defaultro]
<apeiros> there's no assumption
<apeiros> yaml is specified
tspike has quit [Quit: leaving]
<atmosx> shevy: what ruby ar eyou on?
<atmosx> shevy: 2.0 or 1.9?
<shevy> ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
tjbiddle has quit [Read error: Connection reset by peer]
tjbiddle_ is now known as tjbiddle
dennus has quit []
rcosta_ has quit [Remote host closed the connection]
<apeiros> of course, libyaml could have a bug. but I doubt what you guys are talking about is one.
<lord1234> i'm on 1.9.3 p 448
<shevy> atmosx are you on 2.x?
defaultro has joined #ruby
<shevy> YAML::ENGINE # => #<YAML::EngineManager:0x96d686c @yamler="syck">
<atmosx> shevy: but I've test on both it's the same
<shevy> perhaps psych is different
<shevy> hmm
<atmosx> I can't believe it's a bug
<lord1234> i've been discussing this in the yaml chatroom
<lord1234> and they aren't sure if it is either
<shevy> hehehe
blueOxigen has quit [Ping timeout: 264 seconds]
zarubin has quit [Read error: Operation timed out]
Rym_ has joined #ruby
<lord1234> but we seem to all agree, the behavior is frickin wierd!
jdolitsky1 has joined #ruby
C0C0 has joined #ruby
dml has joined #ruby
<C0C0> hey anyone around who compiled the interpreter such that it can reload VMInstructionSequences?
dml is now known as Guest88139
<C0C0> it appears, the interpreter "forgets" to include blocks
<C0C0> when compiling code
Guest88139 has quit [Client Quit]
prana has quit [Ping timeout: 260 seconds]
vince_prignano has quit [Remote host closed the connection]
dml_ has joined #ruby
<apeiros> hm, actually their documentation is inconsistent
phantasm66 has quit [Quit: *sleeeep….]
freerobby has quit [Quit: Leaving.]
<apeiros> for int and float types they don't show , as being a valid part (see http://yaml.org/type/float.html and http://yaml.org/type/int.html)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<C0C0> acctually the compiler does indeed include them, but when marshal dump / loading they are gone
freerobby has joined #ruby
<apeiros> but in their examples in 2.4 on http://yaml.org/spec/1.1/, they show , as being valid
dml_ has quit [Client Quit]
iamjarvo_ has joined #ruby
dml_ has joined #ruby
tjad has quit [Ping timeout: 276 seconds]
<crunch-choco> transforming html to pdf is such a pain zzz
Davey has joined #ruby
<apeiros> lord1234: what was the conclusion in #yaml on it?
alepore has joined #ruby
jkline has joined #ruby
mlpinit has quit [Remote host closed the connection]
allsystemsarego has quit [Quit: Leaving]
iamjarvo has quit [Ping timeout: 276 seconds]
iamjarvo_ has quit [Ping timeout: 245 seconds]
atmosx has quit [Quit: Lost in trance]
s0ny123 has joined #ruby
geekbri has quit [Remote host closed the connection]
fcahoon has quit [Quit: Leaving]
cassivs has joined #ruby
<pontiki> if you give it 4,5,6 as a value, what are you expecting it to produce?
havenn is now known as havenwood
<apeiros> I'd have expected it to raise
<apeiros> but since it didn't raise, I assumed it ignored , as a separator-character, like ruby does _
<apeiros> and now after reading the definition, I'm back on "raise or string"
bthesorceror has quit [Quit: bthesorceror]
relix has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
<pontiki> i couldn't find it specifically in the spec
<apeiros> because the definition clearly does not allow , in integers. BUT their documentation is inconsistent
<apeiros> pontiki: here: http://yaml.org/type/int.html
<apeiros> see Resolution and Validation
<apeiros> no ,
<pontiki> right, that's what i was reading in the main spec doc
<apeiros> regarding inconsistent docs, take a look at http://yaml.org/spec/1.1/#id858600
<pontiki> , is reserved
<apeiros> 2.4. Tags -> Example 2.19. Integers -> `decimal: +12,345`
hasrb has joined #ruby
<apeiros> that value does not match their required regex
<pontiki> oh, i was reading 1.2
<pontiki> which does not have that
<apeiros> ruby's YAML is libyaml which is yaml 1.1
<pontiki> nod
Xeago_ has joined #ruby
dankest has quit [Quit: dankest]
jlast has quit [Remote host closed the connection]
<apeiros> I think the 1.2 spec has it too
Astral_ has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
<EluThingolBG> old hell, i'm on the way
<EluThingolBG> ante up, stupidly.
<apeiros> at least I thought I had seen it there too :-/
<pontiki> i'm not seeing it... if i look here: http://www.yaml.org/spec/1.2/spec.html#id2761292 i don't see the example with the comma
sepp2k1 has joined #ruby
<apeiros> ah, the example
<apeiros> I thought you meant the full regex :)
sepp2k has quit [Ping timeout: 248 seconds]
<apeiros> indeed
<apeiros> but lord1234 seems awol. I'd wonder what the conclusion in #yaml was.
<apeiros> s/I'd/I/
<EluThingolBG> tight q, that kid much, it's in the pumas.
<pontiki> crikey
Astralum has quit [Ping timeout: 264 seconds]
<apeiros> o0
<apeiros> EluThingolBG: you alright?
Criztian has quit [Remote host closed the connection]
<lord1234> there was no conclusion
<EluThingolBG> i'm more on fix, 2 on 4 on 6
Xeago_ has quit [Remote host closed the connection]
breakingthings has quit []
Spami has joined #ruby
Spami has joined #ruby
* apeiros thinks EluThingolBG is either a bot or quite high on drugs…
fmcgeough has quit [Quit: fmcgeough]
<EluThingolBG> yack yack yack
<EluThingolBG> may tear the face of my girl off.
EluThingolBG was kicked from #ruby by apeiros [begone, ya bot]
pentameter has quit [Read error: Connection reset by peer]
<Eiam> I wonder how good this is, https://github.com/ginriki/flaw_detector anyone used it?
<Eiam> maybe I should set it up and check it out
<Eiam> static analysis for ruby bytecode
spalenza has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
<apeiros> given that their example for flawless code is flawed code…
mansi_ has quit [Remote host closed the connection]
lord1234 has quit [Quit: Leaving.]
axeman- has quit [Remote host closed the connection]
lord1234 has joined #ruby
mansi has joined #ruby
axeman- has joined #ruby
mlpinit has joined #ruby
<Eiam> apeiros: the rl = a +1 part?
KobraKao has joined #ruby
<shevy> hehe
axeman- has quit [Remote host closed the connection]
grits has joined #ruby
<apeiros> not that part of it, but that piece of code
dkamioka has quit [Remote host closed the connection]
ColKurtz has joined #ruby
<Eiam> sorry, whats wrong with it?
<Eiam> nil.to_i =0 + 1
<Eiam> rl = 1
defaultro has quit [Quit: defaultro]
<apeiros> a) it could also be false
jbpros has quit [Quit: jbpros]
<apeiros> b) if you *know* it should be nil, don't call .to_i on it, just use 1 directly
<Eiam> wahh, i thought you could call .to_int on false
snath has quit [Ping timeout: 264 seconds]
<Eiam> err to_i
kaldrenon has quit [Remote host closed the connection]
<apeiros> nope
mansi_ has joined #ruby
<apeiros> >> false.to_i
<eval-in> apeiros => undefined method `to_i' for false:FalseClass (NoMethodError) ... (https://eval.in/46589)
<Eiam> yeah i was just trying it in pry
<Eiam> this is one of those implicit vs explicitly conversions
burlyscudd has joined #ruby
kaldrenon has joined #ruby
jbpros has joined #ruby
jbpros has quit [Client Quit]
mansi has quit [Read error: Connection reset by peer]
jbrechtel has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
dankest has joined #ruby
jbrechtel has joined #ruby
lord1234 has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
rupee has joined #ruby
<Eiam> apeiros: so that was it?
<apeiros> yes. rest is taste.
ldnunes has quit [Quit: Leaving]
goodcodeguy has quit [Quit: Lost terminal]
freerobby has joined #ruby
rgbdev has quit [Quit: rgbdev]
snovak_ has quit [Remote host closed the connection]
kaldrenon has quit [Ping timeout: 264 seconds]
<Eiam> ah well
<havenwood> >> class FalseClass; def to_i; 0 end end; false.to_i
<eval-in> havenwood => 0 (https://eval.in/46590)
brain_shim has joined #ruby
<Eiam> sure, monkey patch it
<Eiam> I thought there was a way to do an explicit convert
ahegyi has quit [Ping timeout: 256 seconds]
<havenwood> >> Integer(false)
<eval-in> havenwood => can't convert false into Integer (TypeError) ... (https://eval.in/46591)
brain_shim has quit [Max SendQ exceeded]
<havenwood> yeah
sirupsen has quit [Quit: sirupsen]
cads has joined #ruby
<Eiam> (which was a bit surprising that there isn't)
sailias has quit [Quit: Leaving.]
brain_shim has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> IMO just as wrong as nil.to_i returning 0
jbrechtel has quit [Ping timeout: 260 seconds]
<pontiki> i'm still surprised by that
<Eiam> sure, I follow that too
<pontiki> nil is nil
<apeiros> should IMO return NaN
<Eiam> but I'm used to nil to_i giving me 0
<pontiki> how does it get to be zero?
<Eiam> so if one exists
<Eiam> the other should too =)
<Eiam> i'd be okay with removing nil.to_i =)
<Eiam> otherwise, add true & false .to_i!!
<apeiros> and {}.to_i
<apeiros> and whatnot
<pontiki> since true and false are different classes, how do you decide which gets which?
<apeiros> true.to_i # => 1
benwoody has quit [Quit: benwoody]
rcosta has joined #ruby
<apeiros> then you can do C style true/false conversions…
<apeiros> 0.to_b # => false
javierbuilder has joined #ruby
javierbuilder has quit [Max SendQ exceeded]
<apeiros> too bad that that's inconsistent with 0's truthiness
alepore has quit [Quit: This computer has gone to sleep]
<Eiam> pontiki: obviously you lean on years and years and years of 0 being false
<Eiam> and 1 being true =)
<Eiam> decades
<pontiki> except in shell, right?
<Eiam> pontiki: ? fuck those guys! =)
<havenwood> nil is 0, 0 is true, nil is false, gaaaah head explodes
<havenwood> i'd agree with remove it or make false and true consistently bizzare
interactionjaxsn has quit [Remote host closed the connection]
Uranio has quit [Ping timeout: 264 seconds]
jamesaanderson has joined #ruby
interactionjaxsn has joined #ruby
gusnasis has quit [Ping timeout: 256 seconds]
<havenwood> so who is doing the pull request?
<havenwood> :P
jamesaanderson has quit [Client Quit]
mlpinit has quit [Remote host closed the connection]
<shevy> nah
<ryannielson> I'm having a regex problem. content = "ool story bro ski" and for some reason content =~ Regexp.new("\bool\n", true) is coming back as nil, but http://rubular.com/ has it selecting the beginning of the string. What am I doing wrong. Basically I want it to match any stand alone words
jdenen has quit [Read error: Connection reset by peer]
<ryannielson> Sorry, TYPO should be: content =~ Regexp.new("\bool\b", true)
jamesaanderson has joined #ruby
<pontiki> any standalone words?
<pontiki> you have it matching ool
<apeiros> ryannielson: "\b" == "b"
<apeiros> that's just one thing
JDHankle has quit [Remote host closed the connection]
<ryannielson> aperios: Isn't \b matching a word boundary?
interactionjaxsn has quit [Ping timeout: 264 seconds]
s0ny123 has quit [Quit: Lost terminal]
<apeiros> and *why on earth* would you write Regexp.new("\\bool\\b") instead of /\bool\b/ ?
<pontiki> it is in PCRE...
<apeiros> ryannielson: \b is
<apeiros> ryannielson: but b isn't
<apeiros> and "\b" is "b"
gyre007 has quit [Ping timeout: 264 seconds]
<pontiki> oh i see what's going on...
<apeiros> because "\b" is just an escaped "b", you wanted "\\b"
<pontiki> because of quotes instead of /
<pontiki> or %r[]
<ryannielson> aperios: Took it from some other code, that regex has an interpolated string in it. Just simplified it for this example.
<apeiros> use the regex literal. less confusing.
<apeiros> ryannielson: // can do interpolation too.
yekta has quit [Quit: yekta]
<apeiros> ryannielson: also my nick is apeiros. use tab-completion for heaven's sake :-p
brianpWins has joined #ruby
<apeiros> /nick rioting-apes
<pontiki> hee
<ryannielson> apeiros: Oh really? Good to know. Thanks for your help everyone.
<apeiros> >> "\bool\b"
<eval-in> apeiros => "\bool\b" (https://eval.in/46592)
azcodex has quit [Read error: Connection reset by peer]
<apeiros> hu?
<apeiros> interesting…
<pontiki> i think in that form, it's actually backspace
<apeiros> ah
<pontiki> maybe?
<apeiros> \b actually isn't b, it's a control character
<apeiros> (which is also not \b from the regex, so that part was still right)
<pontiki> quite so
jongilbraith has joined #ruby
snovak has joined #ruby
<apeiros> ah yes, backspace, thanks pontiki
slyv has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
slyv has quit [Max SendQ exceeded]
chxane has joined #ruby
<ryannielson> Good know know. That eval.in site looks useful.
<ryannielson> to know* Geeze I can't type today. I should probably stop working.
<pontiki> MOAR CAFFEINE
butblack has left #ruby [#ruby]
mcat1 has joined #ruby
<ryannielson> pontiki: You're right! Why stop working when the caffeine flows freely?
mlpinit has joined #ruby
<pontiki> that is one of the things i miss about working in an office.
nhhagen has quit [Remote host closed the connection]
<pontiki> that is about the *only* thing i miss about working in an office
<mcat1> Which environment is better, office or home?
nhhagen has joined #ruby
<pontiki> mcat1: it really depends on the individual and the work
slyv has joined #ruby
<_br_> Is it possible to force Tempfile class to destruct after some delay only? Do I need to overwrite finalizer for that?
<mcat1> That makes sense. :p
sayan has quit [Ping timeout: 245 seconds]
<pontiki> i work a lot more hours at home than i do in an office, so that can be a downside
KobraKao has quit [Quit: Saindo]
<mcat1> Do u freelance?
<pontiki> if most of the team convo takes place in the hallways/watercooler, working at home is a distinct disadvantage as well
<pontiki> i do
Davey has quit [Quit: Computer has gone to sleep.]
<pontiki> but working for someone, as an employee or contractor, sucks balls
snath has joined #ruby
kpshek has quit []
<mcat1> I can definitely relate haha.
amacgregor has joined #ruby
mark_locklear has quit [Ping timeout: 264 seconds]
<shevy> pontiki plan b... get rich, start a company..... or win in the lottery!
mupkoo has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
freerobby has quit [Ping timeout: 256 seconds]
<pontiki> shevy, you've got those backwards
Bira has quit [Remote host closed the connection]
<pontiki> start a company, get rich
<mcat1> Hacker News says there is great money in WordPress contracting. And its usually easy.
<shevy> ah well
<pontiki> or just work for yourself, doing things people want, and stay under the radar
<shevy> that leaves those guys who start a company and fail :(
<pontiki> there's a *lot* of them
<pontiki> just like there's a *lot* of lottery losers
<mcat1> Lol
volty has joined #ruby
nhhagen has quit [Ping timeout: 256 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
hadees has joined #ruby
Croms has joined #ruby
mikepack has quit [Ping timeout: 256 seconds]
sethetter has joined #ruby
burlyscudd has quit [Quit: Leaving.]
mlpinit has quit [Remote host closed the connection]
alvaro_o has joined #ruby
Guest60647 has quit [Ping timeout: 245 seconds]
mcat1 has quit [Quit: Bye]
bio has joined #ruby
bio is now known as Guest64473
razi has quit [Ping timeout: 276 seconds]
atyz has quit [Quit: Linkinus - http://linkinus.com]
cassivs has quit [Quit: cassivs]
orionstein is now known as orionstein_away
willb1 has quit [Ping timeout: 245 seconds]
johnjohnson has quit [Quit: Textual IRC Client: www.textualapp.com]
VTLob has quit [Quit: VTLob]
BillCriswell has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 260 seconds]
tjbiddle has quit [Quit: tjbiddle]
mlpinit has joined #ruby
drPoggs has quit [Ping timeout: 245 seconds]
claymore has quit [Quit: Leaving]
jkline has quit [Quit: jkline]
Al_ has quit [Read error: Connection reset by peer]
Al_ has joined #ruby
peregrine81 has quit []
splittingred has quit [Quit: splittingred]
snovak has quit [Remote host closed the connection]
snovak has joined #ruby
ColKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
johnnyfuchs has quit [Remote host closed the connection]
jkline has joined #ruby
Guest80173 is now known as mephux
mephux has quit [Changing host]
mephux has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.1]
Martinez has joined #ruby
jkline has quit [Client Quit]
cody-- has quit [Quit: Computer has gone to sleep.]
corpuscle has quit [Ping timeout: 276 seconds]
nari_ has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
ndrei has joined #ruby
mikepack has joined #ruby
mlpinit has quit [Remote host closed the connection]
pjeide has joined #ruby
RobW_ has quit [Quit: RobW_]
yfeldblum has joined #ruby
havenwood has quit [Remote host closed the connection]
RichardBaker has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
nanoxd has quit [Quit: Textual IRC Client: www.textualapp.com]
willb1 has joined #ruby
<crunch-choco> is prawn commonly used?
rien_ is now known as rien
Tricon has quit [Quit: Bye!]
<crunch-choco> it seems difficult to use
tjbiddle has joined #ruby
Fractional has quit [Ping timeout: 256 seconds]
nhhagen has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
asobrasil has left #ruby [#ruby]
<gr33n7007h> prawn is sucked
unixninja92 has quit [Remote host closed the connection]
<gr33n7007h> commonly
unixninja92 has joined #ruby
Bira has joined #ruby
<shevy> crunch-choco I guess it is not used much
<shevy> when I tried to use it, it did not even work
macro1 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<apeiros> I think it's relatively widely used. and compared to something like fpdf it's quite a bit more comfortable.
<apeiros> personally I prefer using princexml, though. but that's only an option if you can shell out the money.
drPoggs has joined #ruby
<crunch-choco> holycow 3800usd
rhys_ has quit [Quit: Leaving]
<apeiros> anyway, https://www.ruby-toolbox.com/categories/pdf_generation - these are the alternatives. I do hope wkhtmltopdf will get more print-relevant CSS support soon
jbrechtel has joined #ruby
syltman has quit [Remote host closed the connection]
kirun has quit [Remote host closed the connection]
<apeiros> crunch-choco: well, put that money into perspective - the moment you spent 10-15 days more with a tool like prawn instead of princexml, you already paid more
nhhagen has quit [Ping timeout: 276 seconds]
jbrechtel has quit [Remote host closed the connection]
jbrechtel has joined #ruby
<gr33n7007h> true
jerius has quit [Ping timeout: 264 seconds]
mikepack has quit [Ping timeout: 276 seconds]
<crunch-choco> indeed lol
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrZYX is now known as MrZYX|off
tylersmith has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
jbrechte_ has joined #ruby
platzhirsch has joined #ruby
<apeiros> but yes, given that I can't use wkhtmltopdf for silly reasons like it not properly supporting page-breaks makes the 4k$ harder to stomach…
Cyrus has joined #ruby
ffranz has quit [Quit: Leaving]
Bira has quit [Ping timeout: 264 seconds]
brain_shim has quit [Ping timeout: 264 seconds]
jbrechtel has quit [Read error: Connection reset by peer]
Speed has joined #ruby
jbrecht__ has joined #ruby
<gr33n7007h>
buibex has quit [Remote host closed the connection]
Soda has joined #ruby
peregrine81 has joined #ruby
ffranz has joined #ruby
<platzhirsch> I noticed, that every time I set an attribute, I also set gon.attribute_name = @attribute_name. Any idea how I could automate this in Ruby? The only thing I come up with is to use a dedicated method
peregrine81 has quit [Max SendQ exceeded]
buibex has joined #ruby
saarinen has joined #ruby
devoldmx has joined #ruby
buibex has quit [Read error: Connection reset by peer]
buibex has joined #ruby
jamesaanderson has joined #ruby
c0rn has quit [Quit: Lates.]
JDHankle has joined #ruby
jbrechte_ has quit [Ping timeout: 276 seconds]
vasilakisFiL has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
randomdrake has quit [Quit: randomdrake]
<vasilakisFiL> is there a library in ruby like casperjs ?
mrsolo has joined #ruby
<vasilakisFiL> I want to build a crawler
mansi has joined #ruby
<vasilakisFiL> casperjs helps a lot in that.. the only thing I found was capybara but it is intented for testing
<vasilakisFiL> thanks !
<Todd> you can drive phantomjs via Selenium::WebDriver
c0rn has joined #ruby
<Todd> Mechanize is probably what you want but it doesn't execute js
kayloos has quit [Remote host closed the connection]
<vasilakisFiL> hmmm yes javascript support would be great
<vasilakisFiL> thanks :)
d2dchat_ has joined #ruby
jdolitsky1 has quit [Quit: Leaving.]
Al_ has quit [Quit: Al_]
pjeide1 has joined #ruby
sirupsen has joined #ruby
c0rn has quit [Quit: Lates.]
rupee has quit [Quit: Leaving]
randomdrake has joined #ruby
d2dchat_ has quit [Remote host closed the connection]
crunch-choco has quit [Quit: leaving]
pjeide has quit [Ping timeout: 276 seconds]
gusnasis has joined #ruby
pel_daniel has left #ruby [#ruby]
c0rn has joined #ruby
zzz_taion809 is now known as taion809
ehaliewicz has quit [Ping timeout: 248 seconds]
carlyle has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
gusnasis has quit [Ping timeout: 264 seconds]
hiroyuki has quit [Ping timeout: 248 seconds]
colonolGron has joined #ruby
sirupsen has quit [Read error: No route to host]
dankest has quit [Quit: dankest]
dankest has joined #ruby
sirupsen has joined #ruby
Targen has joined #ruby
jessethegame has joined #ruby
wereHamster has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Criztian has joined #ruby
Zai00 has joined #ruby
narcan has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
awpti has quit [Remote host closed the connection]
momomomomo has joined #ruby
awpti has joined #ruby
nfk has quit [Quit: yawn]
hasrb has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
julweber has joined #ruby
jamesaanderson has joined #ruby
rcosta_ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
jsatk has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
wesside has quit [Quit: Computer has gone to sleep.]
gyre007 has joined #ruby
wesside has joined #ruby
shadoi1 has joined #ruby
azcodex has joined #ruby
rcosta has quit [Ping timeout: 260 seconds]
rupee has joined #ruby
lnormous has quit [Quit: Leaving]
shadoi has quit [Ping timeout: 264 seconds]
grits has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c0rn has quit [Ping timeout: 260 seconds]
Monie has quit [Ping timeout: 248 seconds]
mansi has quit [Remote host closed the connection]
jonahR has joined #ruby
mikepack has joined #ruby
mansi has joined #ruby
thillux has quit [Quit: Leaving]
verto has quit [Quit: Textual IRC Client: www.textualapp.com]
brbcoding has joined #ruby
c0rn has joined #ruby
brbcoding has left #ruby [#ruby]
Zai00 has quit [Quit: Zai00]
MrThePlague has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 264 seconds]
v0n has quit [Ping timeout: 245 seconds]
benwoody has joined #ruby
yxhuvud has quit [Ping timeout: 245 seconds]
dml_ has quit [Quit: Computer has gone to sleep.]
sirupsen has quit [Quit: sirupsen]
vasilakisFiL has left #ruby ["Konversation terminated!"]
tjbiddle has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
shunt has quit [Ping timeout: 276 seconds]
tjbiddle has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
tjbiddle has joined #ruby
\13k has quit [Remote host closed the connection]
seich- has quit [Ping timeout: 260 seconds]
ffranz has quit [Quit: Leaving]
dankest has quit [Quit: dankest]
vlad_starkov has joined #ruby
Rylai is now known as Rylee
cdelo has joined #ruby
Criztian has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
akells has joined #ruby
dankest has joined #ruby
mlpinit has joined #ruby
nwertman_ has quit [Ping timeout: 264 seconds]
poga_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 248 seconds]
skinkitten has joined #ruby
sparq_ has joined #ruby
sparq_ has quit [Read error: Connection reset by peer]
poga has joined #ruby
poga has quit [Remote host closed the connection]
<skinkitten> how do I run my rspec test. I have written it in sublime my text editor but where do I run it to see the failing result?
lord1234 has joined #ruby
wesside has quit [Quit: I think I heard an ice cream truck..]
<shevy> stylistic question... what is better... class PDF or class Pdf ?
sirupsen has joined #ruby
pjeide1 is now known as pjeide
pjeide has quit [Changing host]
pjeide has joined #ruby
emergion has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
Neomex has joined #ruby
mlpinit has quit [Ping timeout: 260 seconds]
<volty> Pdf is more readable to me
gstamp has joined #ruby
Neomex has quit [Client Quit]
bluebie has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 264 seconds]
<skinkitten> ruby doesn't have an ide?
seich- has joined #ruby
rdxc has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> volty yeah strange... I just wondered... because I hacked on something old here
sparq_ has joined #ruby
<shevy> and I required it like so: require 'pdf'
sparq_ has quit [Read error: Connection reset by peer]
<shevy> but then I tried to test it ... Pdf.new or Pdf.methods
dankest has quit [Quit: dankest]
<shevy> but I named the class PDF
<shevy> hmmmm
<taion809> skinkitten: sure it does, did you google for "ruby ide"?
<shevy> skinkitten in general ruby code should be simple enough without a specific IDE
<volty> there are some ide's, though not up to the potential of ruby // i have my own ide that is good & enough for me but would be mess for others (qtruby)
<skinkitten> just using a text editor like sublime? shevy ?
jongilbraith has quit [Remote host closed the connection]
Bira has joined #ruby
akells has quit [Remote host closed the connection]
<volty> shevy: try ancestors on both (PDF and Pdf) for having a speedy idea ...
<shevy> skinkitten yeah
dankest has joined #ruby
<shevy> volty right, it's no big deal... what annoyed me is that I am not being consistent in how I name my own classes
<pontiki> since PDF is an acronym, i'd stick with all caps
<shevy> hmmmmmmmm
<pontiki> like you do, you know
<volty> naaa,quite comfortabile (ide) openingn required files just with a shortct, jumping automatically to the offending error (or warning) line, integrated ri, finding method definitions etc etc is quite useful
<shevy> pontiki, well... that has a point... we have class XML... class YAML ...
dik_dak has joined #ruby
<shevy> if this would be consistent in all of ruby, I could go with PDF
defaultro has joined #ruby
dankest has quit [Client Quit]
<shevy> volty qtruby? did you hack that by yourself?
<shevy> I mean the IDE you referred to
<volty> shevy, me too, but only about methods // i'm going to change as soon as I implement some parsing on mile file (for the sake of renaming automatically)
<shevy> cool
<pontiki> what mean you by "consistent" ?
<shevy> pontiki that everything would follow that rule
<pontiki> still don't follow
<shevy> and we'd not suddenly have... class Yaml instead
<volty> shevy: qtruby are the ruby bindings (via smoke) for qt toolkit
<volty> ready
<pontiki> surely, you can't possibly mean *everthing*
<shevy> pontiki yeah, not everything, but instead everything that runs as acronym
<shevy> for XML and YAML this is true, I am trying to find more examples
<volty> He's right, we should follow the established naming of acronyms
<shevy> idea... what if we would do something like this
<volty> (especially because one day we could not remembere if the class is our or third-parti :) )
<shevy> class PDF; end; Pdf = PDF
chimmy has joined #ruby
<shevy> good or bad idea
<shevy> volty, yeah, I have immense problems remembering things :(
mikepack has quit [Remote host closed the connection]
<pontiki> i would find it confusing if both are used interchangeably
<volty> shevy: me too, that's why I need integrated "helpers"
mikepack has joined #ruby
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
benwoody has quit [Quit: benwoody]
<pontiki> re: Ruby IDEs: I find RubyMine the best of the bunch, but all IDEs seem too heavy handed for me
jessethegame has quit [Ping timeout: 250 seconds]
<shevy> pontiki what editor do you use when you write ruby code?
<pontiki> I do use RubyMine when I want .. "mine" .. through code -- i.e., delve into gem and library sources, etc
emergion has quit [Quit: Computer has gone to sleep.]
<pontiki> i'm using Emacs
predator217 has joined #ruby
<pontiki> with Flymake and stuff
<pontiki> but that's mainly because i imprinted on Emacs ages and ages ago
<pontiki> i've used textmate, subl2, rubymine, and a few others
<pontiki> but i always come back to emacs
<pontiki> just a thing
azcodex has quit [Remote host closed the connection]
dankest has joined #ruby
<volty> what I hate about out-there ide's is their exess of attention to colorful formatting and tree-like rappresentations and much less to the keyboard, on-fly routines (like emacs) etc etc
<shevy> yeah volty
hasrb has joined #ruby
<shevy> I fell in love with vim keybindings
<shevy> then stopped using vim when I noticed it messes with my brain
<randomdrake> ?
Cyrus has quit [Quit: Cyrus.sleep()]
<randomdrake> shevy: how does it do that?
pjeide has quit [Quit: Leaving.]
<shevy> you start to think in unit operations when you use it
mikepack has quit [Ping timeout: 276 seconds]
<volty> i'm stuck on wordstar keyboard shortcuts
<shevy> :55dd50 yyP
predator117 has quit [Ping timeout: 264 seconds]
<shevy> I can't burden my poor old brain with trivial things like that
apeiros has joined #ruby
jdolitsky1 has joined #ruby
nwertman_ has joined #ruby
<randomdrake> shevy: I've been using vim for years and every time I try to use something else, I end up missing being able to talk to my code like that.
v0n has joined #ruby
gr33n7007h has quit [Read error: Operation timed out]
<shevy> I use ruby to talk to text
cdelo has quit [Remote host closed the connection]
apeiros has quit [Read error: Operation timed out]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ferdev has quit [Quit: ferdev]
Rym_ has quit [Ping timeout: 245 seconds]
Rym has joined #ruby
emergion has joined #ruby
Emiils has quit [Ping timeout: 264 seconds]
tvw has quit []
jamesaanderson has joined #ruby
jonahR has quit [Quit: jonahR]
Monie has joined #ruby
jrhorn424 has joined #ruby
<pontiki> randomdrake: that's rather what i mean by "imprinting"
<jrobeson> i'm vimprinted
<pontiki> you've (or i've) used the same thing for so long, the muscle memory is just hard to overcome
mansi has joined #ruby
<pontiki> and then you end up looking for "how do i do this" in something else
<pontiki> and can't find it
<jrobeson> where are my damn keybindings :(
<pontiki> the biggest problem for me with sublime was that the keybindings were *different* between linux and os/x
<pontiki> and i'd be like "AAAUUUUGGGGHHHH" every few minutes
ssvo_ has joined #ruby
nbouscal has joined #ruby
<pontiki> ctrl-A on os/x: beginning of line (same as emacs); ctrl-A on linux: SELECT ALL!!
<jrobeson> ok.. so.. this already works.. but seems like there might be a shorter way than i'm missing.i'm looking to create a 8 character hex number from decimal. this is all i've gotten so far
<jrobeson> n.to_s(16).rjust(8, '0')
<workmad3> pontiki: that'll be because ctrl-A on linux is the equivalent of cmd-A on OS X
<pontiki> "08x" % n ?
<pontiki> i know, workmad3
Monie has quit [Ping timeout: 245 seconds]
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<workmad3> pontiki: :)
<xybre> So remap the keys?
<pontiki> i know well why it is
<volty> but it is not only about muscle memory, i get nervous when i have much less possibilities, when i feel handicapped because i have to press down the damn key_down to get to the bottom of the screen - just an example
<pontiki> but the point was it was different enough that it was too big of a problem
ssvo has quit [Ping timeout: 264 seconds]
<jrobeson> pontiki, ah.. i suck at printfish things :(
<workmad3> pontiki: yeah, I know, I've had to switch from mac to other keybindings at times :)
<pontiki> that's not right, anyway
<pontiki> >> "%08x" % 10
nazty has joined #ruby
<eval-in> pontiki => "0000000a" (https://eval.in/46595)
<pontiki> forgetted the %
antn has joined #ruby
<jrobeson> >> "%08x" % 10000
<eval-in> jrobeson => "00002710" (https://eval.in/46596)
pvizcay has joined #ruby
Emiils has joined #ruby
<jrobeson> >> "%08x" % 9999999999999999999999999999999999999999999999999999
<eval-in> jrobeson => "1aba4714957d300d0e549208b31adb0fffffffffffff" (https://eval.in/46597)
nari_ has quit [Ping timeout: 256 seconds]
<jrobeson> overflow!
<jrobeson> thanks pontiki .. that's a bit nicer imo
randomau_ has joined #ruby
Rym has quit [Ping timeout: 256 seconds]
Rym has joined #ruby
gyre007 has quit [Remote host closed the connection]
apfelbox_ has quit [Remote host closed the connection]
<jrobeson> now tis in my factory
apfelbox has joined #ruby
dankest has quit [Read error: Connection reset by peer]
bthesorceror has joined #ruby