apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
Arzaga has joined #ruby
bradhe has quit [Remote host closed the connection]
atmosx has joined #ruby
thams has quit [Quit: thams]
mrsolo has quit [Quit: Leaving]
sepp2k has quit [Remote host closed the connection]
Gate has quit [Remote host closed the connection]
Guedes0 has joined #ruby
nomenkun has joined #ruby
marr has quit [Ping timeout: 252 seconds]
yojimbo has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
nathanieldavid has quit [Quit: Leaving...]
unstable has quit [Ping timeout: 264 seconds]
nomenkun has quit [Ping timeout: 248 seconds]
GeissT has joined #ruby
c0rn has joined #ruby
danslo has joined #ruby
luckyruby has quit [Remote host closed the connection]
rburton- has quit [Quit: Leaving...]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
cloke has quit [Quit: cloke]
bhaarat has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
Nisstyre-laptop has quit [Quit: Leaving]
unstable has joined #ruby
ph^ has joined #ruby
reset has quit [Ping timeout: 248 seconds]
GeissT has quit [Ping timeout: 258 seconds]
DonRichie has quit [Ping timeout: 264 seconds]
jeremywrowe has quit [Ping timeout: 264 seconds]
hmarr has joined #ruby
DonRichie has joined #ruby
unstable has quit [Ping timeout: 256 seconds]
ph^ has quit [Ping timeout: 252 seconds]
banjara has quit [Quit: Leaving.]
jeremywrowe has joined #ruby
jeremywrowe has quit [Changing host]
jeremywrowe has joined #ruby
d2dchat has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
robottinosino has quit [Quit: WeeChat 0.4.0]
pkrnj has joined #ruby
adamjleonard has quit [Quit: Leaving...]
lukeholder has quit [Quit: Computer has gone to sleep.]
dankest has quit [Quit: Leaving...]
zeade has quit [Quit: Leaving.]
tjbiddle has quit [Ping timeout: 258 seconds]
osvico has joined #ruby
johnkary has joined #ruby
tjbiddle_ has quit [Ping timeout: 240 seconds]
nathanieldavid has joined #ruby
txdv has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 256 seconds]
tyl has quit [Quit: Computer has gone to sleep.]
nathanrivera has joined #ruby
nathanieldavid has quit [Read error: Connection reset by peer]
txdv has joined #ruby
davedo has quit [Quit: Leaving]
zastern has quit [Remote host closed the connection]
lukeholder has joined #ruby
<jeebster> does anyone have rm and rbenv running simultaneously? wondering if they'll run concurrently without clashing
baroquebobcat has joined #ruby
bradhe has joined #ruby
Yarou has quit [Ping timeout: 258 seconds]
jonahR has joined #ruby
rickruby has joined #ruby
<r0bgleeson> jeebster: "Compatibility note: rbenv is incompatible with RVM. Please make sure to fully uninstall RVM and remove any references to it from your shell initialization files before installing rbenv."
<r0bgleeson> from the README
<jeebster> gracias
<jeebster> womp womp
adamjleonard has joined #ruby
nezumi has joined #ruby
bradhe has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
unstable has joined #ruby
robert_ has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
Nimsical has joined #ruby
jhn has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
balishag has joined #ruby
JMcAfreak has quit [Ping timeout: 260 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
Nimsical has quit [Client Quit]
nomenkun has quit [Ping timeout: 252 seconds]
daniel_- has quit [Ping timeout: 246 seconds]
Spooner has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
pkrnj has quit [Quit: Computer has gone to sleep.]
hrs has joined #ruby
hrs has quit [Client Quit]
benlieb has joined #ruby
juarlex has quit [Remote host closed the connection]
v0n has joined #ruby
Proshot has quit [Quit: Leaving]
balishag has quit [Read error: Connection reset by peer]
bricker is now known as bricker`away
vlad_starkov has joined #ruby
hmarr has quit []
atmosx has quit [Quit: And so the story goes…]
nga4 has quit [Ping timeout: 246 seconds]
hamakn has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
hamakn has quit [Read error: Connection reset by peer]
haxrbyte has quit [Remote host closed the connection]
hamakn has joined #ruby
haxrbyte has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
zastern has joined #ruby
spoonman has quit [Read error: Operation timed out]
Nisstyre-laptop has joined #ruby
gabrielrotbart has joined #ruby
philcrissman has quit [Remote host closed the connection]
maxmanders has joined #ruby
pen has joined #ruby
wedgex_ has joined #ruby
nathanrivera has quit [Quit: Leaving...]
chrishough has quit [Quit: chrishough]
<Catharz> is the ox gem the fastest way to parse xml in Ruby?
adamjleonard has quit [Quit: Leaving...]
johnkary has quit [Quit: @johnkary]
benlieb has quit [Quit: benlieb]
maxmanders has quit [Ping timeout: 258 seconds]
chrishunt has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
CalebMingle has quit [Quit: CalebMingle]
zastern has quit [Remote host closed the connection]
markalanevans has quit [Quit: markalanevans]
GOMADWarrior has quit [Ping timeout: 245 seconds]
gyre007 has quit [Remote host closed the connection]
chrishough has joined #ruby
jeremywr1we has joined #ruby
chrishunt has joined #ruby
tds has quit [Quit: tds]
benlieb has joined #ruby
brianherman has joined #ruby
spoonman has joined #ruby
jeremywrowe has quit [Ping timeout: 257 seconds]
xcv has joined #ruby
brum has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
sailias has joined #ruby
adamjleonard has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
stkowski has quit [Quit: stkowski]
randomau_ has quit [Ping timeout: 260 seconds]
adamjleonard has quit [Client Quit]
markalanevans has joined #ruby
yamez has joined #ruby
robscomputer has quit [Remote host closed the connection]
tjbiddle has joined #ruby
emmanuel__ has quit [Quit: emmanuel__]
marcdel has quit [Quit: marcdel]
LnL has quit [Quit: LnL]
moos3 has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
rakl has quit [Quit: sleeping]
generalissimo has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
okinomo has joined #ruby
baroquebobcat has joined #ruby
bhaarat has quit [Quit: bhaarat]
benlieb has quit [Quit: benlieb]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
braoru has quit [Ping timeout: 264 seconds]
love_color_text has joined #ruby
pen has quit [Remote host closed the connection]
pen has joined #ruby
brianpWins has quit [Quit: brianpWins]
generali_ has joined #ruby
adamjleonard has joined #ruby
zastern has joined #ruby
generalissimo has quit [Ping timeout: 258 seconds]
tjbiddle has quit [Quit: tjbiddle]
unstable has quit [Read error: Operation timed out]
generalissimo has joined #ruby
unstable has joined #ruby
spoonman has quit [Ping timeout: 248 seconds]
generali_ has quit [Ping timeout: 245 seconds]
worstadmin has quit [Ping timeout: 258 seconds]
tvw has quit [Ping timeout: 258 seconds]
F1skr has quit [Quit: WeeChat 0.4.0]
adamjleonard has quit [Ping timeout: 245 seconds]
wedgex_ has quit [Read error: Connection reset by peer]
wedgex has joined #ruby
subbyyy has joined #ruby
unstable has quit [Ping timeout: 276 seconds]
pilojo has joined #ruby
Hanmac1 has joined #ruby
<pilojo> http://pastebin.com/bS77iv5G I'm getting different results between IRB and runtime
ariedler has quit [Remote host closed the connection]
<pilojo> same command, same input, different results
robottinosino has joined #ruby
rakl has joined #ruby
jeebster has left #ruby [#ruby]
nga4 has joined #ruby
ferdev has quit [Read error: Operation timed out]
rickruby has quit [Remote host closed the connection]
worstadmin has joined #ruby
tylersmith has quit [Quit: tylersmith]
Hanmac has quit [Ping timeout: 256 seconds]
ferdev has joined #ruby
adamjleonard has joined #ruby
failshell has quit [Remote host closed the connection]
asgardBSD_ has joined #ruby
adamjleonard has quit [Client Quit]
failshell has joined #ruby
angusiguess has quit [Ping timeout: 258 seconds]
danslo has quit [Quit: danslo]
failshell has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
CalebMingle has joined #ruby
wedgex has quit [Ping timeout: 256 seconds]
wedgex_ has joined #ruby
unstable has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
poga has joined #ruby
kofno has quit [Remote host closed the connection]
nadirvardar has joined #ruby
wedgex has joined #ruby
wedgex_ has quit [Read error: Connection reset by peer]
chandankumar has joined #ruby
tk_ has joined #ruby
ZuzzleBuzzer has joined #ruby
nomenkun has joined #ruby
LBRapid has quit [Quit: ZNC - http://znc.sourceforge.net]
adamjleonard has joined #ruby
randomautomator has joined #ruby
threesome has quit [Ping timeout: 245 seconds]
adamjleonard has quit [Client Quit]
LBRapid has joined #ruby
ph^ has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
Mathieu has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
Evixion has joined #ruby
ph^ has quit [Ping timeout: 240 seconds]
radic has joined #ruby
shevy2 has joined #ruby
feedbackloop_ has left #ruby ["Leaving"]
chrishough has quit [Quit: chrishough]
Matip has joined #ruby
kofno has quit [Ping timeout: 258 seconds]
asgardBSD_ has quit [Ping timeout: 256 seconds]
radic_ has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
dougireton has joined #ruby
shevy has quit [Ping timeout: 258 seconds]
pen has quit [Remote host closed the connection]
Mattix has quit [Ping timeout: 264 seconds]
dougireton has quit [Client Quit]
sjhuang has joined #ruby
heliumsocket has joined #ruby
hadees has quit [Quit: hadees]
pilojo has left #ruby ["Leaving"]
okinomo has quit [Quit: okinomo]
pen has joined #ruby
rickruby has joined #ruby
jekotia has joined #ruby
kelabot has quit [Read error: Connection reset by peer]
kelabot has joined #ruby
pencilcheck has joined #ruby
okinomo has joined #ruby
failshell has joined #ruby
pen has quit [Ping timeout: 256 seconds]
pkrnj has joined #ruby
Andreo has quit [Read error: Connection reset by peer]
markalanevans has quit [Ping timeout: 240 seconds]
bean has joined #ruby
zastern has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
julian-delphiki has quit [Ping timeout: 260 seconds]
tjbiddle has joined #ruby
subbyyy has quit [Ping timeout: 255 seconds]
heliumsocket has quit [Quit: heliumsocket]
luckyruby has joined #ruby
idkazuma has joined #ruby
jbueza has quit [Quit: Leaving.]
subbyyy has joined #ruby
nga4 has quit []
nga4 has joined #ruby
failshell has quit [Remote host closed the connection]
veinofstars has joined #ruby
peta_ has quit [Quit: peta_]
SDr_ is now known as SDr
SDr has quit [Changing host]
SDr has joined #ruby
shadoi has joined #ruby
newUser1234 has quit [Quit: Leaving...]
failshell has joined #ruby
tealmage has quit [Remote host closed the connection]
generali_ has joined #ruby
subbyyy has quit [Ping timeout: 248 seconds]
generalissimo has quit [Read error: Connection reset by peer]
okinomo has quit [Quit: okinomo]
Guedes0 has quit [Ping timeout: 255 seconds]
angusiguess has joined #ruby
CalebMingle has quit [Quit: CalebMingle]
rburton- has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
mattbl has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
wintermu1e has joined #ruby
generali_ has quit [Ping timeout: 258 seconds]
miso1337 has joined #ruby
tomsthumb has quit [Quit: Leaving.]
NiteRain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
randomautomator has joined #ruby
pencilcheck has quit [Remote host closed the connection]
browndawg has joined #ruby
randomautomator has quit [Remote host closed the connection]
randomautomator has joined #ruby
slainer68 has joined #ruby
luckyrub_ has joined #ruby
ph^ has joined #ruby
veinofstars has quit [Quit: veinofstars]
snooc has joined #ruby
denken_ has joined #ruby
miso1337 has quit [Quit: afk]
luckyruby has quit [*.net *.split]
worstadmin has quit [*.net *.split]
pkrnj has quit [*.net *.split]
jeremywr1we has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
lukeholder has quit [*.net *.split]
itman has quit [*.net *.split]
JonnieCache has quit [*.net *.split]
atno has quit [*.net *.split]
karnowski has quit [*.net *.split]
yellow5 has quit [*.net *.split]
nfk has quit [*.net *.split]
yacks has quit [*.net *.split]
thone has quit [*.net *.split]
yalue has quit [*.net *.split]
prstat has quit [*.net *.split]
matled has quit [*.net *.split]
SeySayux has quit [*.net *.split]
cheez0r has quit [*.net *.split]
darrik has quit [*.net *.split]
devdazed has quit [*.net *.split]
tomku has quit [*.net *.split]
javiolo has quit [*.net *.split]
denken has quit [*.net *.split]
bothra has quit [*.net *.split]
shammancer has quit [*.net *.split]
wchun has quit [*.net *.split]
cespare has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
moshee has quit [*.net *.split]
russfrank has quit [*.net *.split]
froy has quit [*.net *.split]
rtl has quit [*.net *.split]
X-Jester has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
joschi has quit [*.net *.split]
fred has quit [*.net *.split]
itman has joined #ruby
yacks has joined #ruby
SeySayux has joined #ruby
shaman42 has joined #ruby
ph^ has quit [Ping timeout: 258 seconds]
heliumsocket has joined #ruby
ryanh has joined #ruby
Nisstyre-laptop has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
pkrnj has joined #ruby
worstadmin has joined #ruby
jeremywr1we has joined #ruby
dhruvasagar has joined #ruby
lukeholder has joined #ruby
yalue has joined #ruby
atno has joined #ruby
yellow5 has joined #ruby
JonnieCache has joined #ruby
karnowski has joined #ruby
thone has joined #ruby
prstat has joined #ruby
bothra has joined #ruby
matled has joined #ruby
cheez0r has joined #ruby
nfk has joined #ruby
darrik has joined #ruby
tomku has joined #ruby
devdazed has joined #ruby
javiolo has joined #ruby
wchun has joined #ruby
fred has joined #ruby
X-Jester has joined #ruby
rtl has joined #ruby
shammancer has joined #ruby
cespare has joined #ruby
Sp4rKy has joined #ruby
froy has joined #ruby
wookiehangover has joined #ruby
joschi has joined #ruby
moshee has joined #ruby
russfrank has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
sailias has quit [Quit: Leaving.]
slainer68 has quit [Ping timeout: 256 seconds]
xcv has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
baba has joined #ruby
johnnyfuchs has joined #ruby
davetherat has quit [Ping timeout: 258 seconds]
love_color_text has quit [Read error: Connection reset by peer]
Heero has joined #ruby
mattbl has quit [Quit: Leaving]
tealmage has joined #ruby
jhn has quit [Ping timeout: 255 seconds]
lukeholder has quit [Quit: Computer has gone to sleep.]
osvico has quit [Ping timeout: 256 seconds]
sambao21 has joined #ruby
love_color_text has joined #ruby
chandankumar has quit [Quit: Leaving]
bytemuse has quit [Quit: bytemuse]
freeayu has joined #ruby
bytemuse has joined #ruby
bytemuse has quit [Client Quit]
johnnyfuchs has quit [Remote host closed the connection]
davetherat has joined #ruby
wedgex has quit [Ping timeout: 256 seconds]
poga has quit [Remote host closed the connection]
okinomo has joined #ruby
akashj87 has joined #ruby
p4tux has quit [Quit: Lost terminal]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
ukd1_ has joined #ruby
adamjleonard has joined #ruby
ukd1_ has quit [Remote host closed the connection]
ukd1_ has joined #ruby
osvico has joined #ruby
ukd1 has quit [Ping timeout: 276 seconds]
mayankkohaley has quit [Ping timeout: 252 seconds]
jbueza has joined #ruby
alek_b has joined #ruby
cableray has quit [Quit: cableray]
ukd1_ has quit [Remote host closed the connection]
KazW has quit [Remote host closed the connection]
KazW has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
baphled has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
adamjleonard has quit [Ping timeout: 256 seconds]
ntzrmtthihu777 has quit [Ping timeout: 264 seconds]
yxhuvud has joined #ruby
markalanevans has joined #ruby
ioNull has joined #ruby
swarley| has joined #ruby
wmoxam has quit [Ping timeout: 245 seconds]
dmiller has quit [Remote host closed the connection]
Hobogrammer_ has joined #ruby
jeremywr1we has quit [Quit: leaving]
nomenkun has joined #ruby
Hobogrammer has quit [Ping timeout: 248 seconds]
echoez_ has joined #ruby
browndawg has quit [Quit: Leaving.]
ph^ has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
luckyrub_ is now known as luckyruby
dallasm has joined #ruby
kofno has joined #ruby
fir_ed has joined #ruby
jamie_ca_ has joined #ruby
jamie_ca_ has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 256 seconds]
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
freakazoid0223 has quit [Ping timeout: 256 seconds]
ph^ has quit [Ping timeout: 252 seconds]
dallasm has quit [Remote host closed the connection]
love_color_text has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
marcdel has quit [Quit: marcdel]
pkrnj has joined #ruby
rickmasta has quit [Ping timeout: 264 seconds]
veinofstars has joined #ruby
love_color_text has joined #ruby
ukd1 has joined #ruby
ukd1 has quit [Remote host closed the connection]
subbyyy has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
pkrnj has quit [Client Quit]
celinedior has joined #ruby
BlankVerse has joined #ruby
<BlankVerse> I have a string "[[title]] text [[title]] text and so on" , how to split this into an array containing {:title => title , :text => text}
tommyvyo has quit [Quit:]
ukd1 has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
nari has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
pkrnj has joined #ruby
tommyvyo has joined #ruby
<BlankVerse> I have a string "[[title]] text [[title]] text and so on" , how to split this into an array containing {:title => title , :text => text}
tomsthumb has joined #ruby
lukeholder has joined #ruby
okinomo has quit [Quit: okinomo]
tomsthumb has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
angusiguess has joined #ruby
ukd1 has quit [Remote host closed the connection]
KazW has quit [Read error: Connection reset by peer]
sayan has joined #ruby
KazW has joined #ruby
tommyvyo has quit [Quit:]
wallerdev has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
ananthakumaran has joined #ruby
mockra has quit [Remote host closed the connection]
passerine has joined #ruby
jdunck has joined #ruby
roadt has joined #ruby
<roadt> wow, MRI ruby2.0 is much faster than 1.9.3. cool
<roadt> just got time to give it a shot. impressive.
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
passerine has left #ruby [#ruby]
kofno has quit [Ping timeout: 258 seconds]
philcrissman has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit:]
araujo has quit [Quit: Leaving]
poga has joined #ruby
randomautomator has joined #ruby
tomsthumb has joined #ruby
browndawg has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
poga has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
viuo has quit [Read error: Operation timed out]
mercwithamouth has joined #ruby
poga has joined #ruby
randomautomator has joined #ruby
Cooler_ has joined #ruby
browndawg has quit [Ping timeout: 276 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
mockra has joined #ruby
nomenkun has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
johnkary has joined #ruby
love_color_text has joined #ruby
viuo has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
yamez has quit [Remote host closed the connection]
anildigitl is now known as anildigital
Cooler_ has quit [Remote host closed the connection]
Cooler_ has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
randomautomator has quit [Remote host closed the connection]
randomautomator has joined #ruby
ph^ has joined #ruby
poga has quit [Remote host closed the connection]
poga has joined #ruby
adamjleonard has joined #ruby
BizarreCake has joined #ruby
lukeholder has quit [Quit: Computer has gone to sleep.]
mayankkohaley has joined #ruby
Cooler__ has joined #ruby
dankest has joined #ruby
akashj87__ has joined #ruby
veinofstars has quit [Read error: Connection reset by peer]
iaj_ has joined #ruby
notwen_ has joined #ruby
dv__ has joined #ruby
ph^ has quit [Ping timeout: 255 seconds]
sayan has joined #ruby
ddd__ has joined #ruby
casheew_ has joined #ruby
Politoed_ has joined #ruby
wereHams1er has joined #ruby
d-best has joined #ruby
DrForr__ has joined #ruby
sjhuang_ has joined #ruby
Muz_ has joined #ruby
setient_ has joined #ruby
kandinsk1 has joined #ruby
neurone-2337 has joined #ruby
multi_io has quit [Ping timeout: 240 seconds]
snooc has quit []
thone_ has joined #ruby
PaulePan1er has joined #ruby
x13378071 has joined #ruby
Elfix_113 has joined #ruby
epitron_ has joined #ruby
thone has quit [Read error: Operation timed out]
oz` has joined #ruby
multi_io has joined #ruby
matti_ has joined #ruby
rakl_ has joined #ruby
rickmasta has joined #ruby
grn_ has joined #ruby
guardian` has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
BadLarry_ has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
bjeanes- has joined #ruby
Jalada_ has joined #ruby
companion_ has joined #ruby
jmccune_ has joined #ruby
epochwolf|2 has joined #ruby
Cooler_ has quit [*.net *.split]
akashj87 has quit [*.net *.split]
love_color_text has quit [*.net *.split]
sjhuang has quit [*.net *.split]
shevy2 has quit [*.net *.split]
rakl has quit [*.net *.split]
MistuhKurtz has quit [*.net *.split]
braincrash has quit [*.net *.split]
matti has quit [*.net *.split]
Uranio has quit [*.net *.split]
epochwolf has quit [*.net *.split]
ThePicard has quit [*.net *.split]
neurone-1337 has quit [*.net *.split]
dv_ has quit [*.net *.split]
NimeshNeema has quit [*.net *.split]
dekz__ has quit [*.net *.split]
iaj has quit [*.net *.split]
companion has quit [*.net *.split]
jmccune has quit [*.net *.split]
spike|spiegel has quit [*.net *.split]
casheew has quit [*.net *.split]
BadLarry has quit [*.net *.split]
Politoed has quit [*.net *.split]
Muz has quit [*.net *.split]
wereHamster has quit [*.net *.split]
lmx has quit [*.net *.split]
wudofyr has quit [*.net *.split]
ddd has quit [*.net *.split]
epitron has quit [*.net *.split]
grn has quit [*.net *.split]
Guest85414 has quit [*.net *.split]
d-snp has quit [*.net *.split]
brandon_ has quit [*.net *.split]
guardian has quit [*.net *.split]
setient has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
Elfix has quit [*.net *.split]
kandinski has quit [*.net *.split]
notwen has quit [*.net *.split]
Jalada has quit [*.net *.split]
DrForr_ has quit [*.net *.split]
x1337807x has quit [*.net *.split]
oz has quit [*.net *.split]
bjeanes has quit [*.net *.split]
matti_ is now known as matti
epochwolf|2 is now known as epochwolf
companion_ is now known as companion
jmccune_ is now known as jmccune
jmccune has quit [Changing host]
jmccune has joined #ruby
companion has quit [Changing host]
companion has joined #ruby
oz` is now known as oz
Jalada_ is now known as Jalada
adamjleonard has quit [Quit: Leaving...]
adamjleonard has joined #ruby
vlad_starkov has joined #ruby
dv84 has quit [Read error: Connection reset by peer]
dv84 has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
v0n has quit [Ping timeout: 260 seconds]
kelabot has quit [Remote host closed the connection]
wudofyr has joined #ruby
Morkel has joined #ruby
nari has quit [Ping timeout: 245 seconds]
shevy2 has joined #ruby
aedornm has joined #ruby
subbyyy has quit [Ping timeout: 256 seconds]
poga has quit [Remote host closed the connection]
Uranio has joined #ruby
spike|spiegel has joined #ruby
failshell has quit [Remote host closed the connection]
psyprus has quit [Read error: Connection reset by peer]
tealmage has quit [Remote host closed the connection]
psyprus has joined #ruby
SCommette has joined #ruby
nari has joined #ruby
bradhe has joined #ruby
thams has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
thams has quit [Remote host closed the connection]
divout has joined #ruby
wesside has joined #ruby
akashj87__ has quit [Quit: leaving]
akashj87 has joined #ruby
keyvan has quit [Remote host closed the connection]
love_color_text has joined #ruby
celinedior has quit [Quit: celinedior]
adamjleonard has quit [Quit: Leaving...]
nga4 has quit []
dankest has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
tds has joined #ruby
jasonthesensei has joined #ruby
<jasonthesensei> need help I am trying to turncate a string of text at the 10th character but I am getting an error here is the code i am using <%= turncate('post.body', :length => 10, :omission => '...(continued)' %>
niceguy1234 has joined #ruby
niceguy1234 has quit [Remote host closed the connection]
<jasonthesensei> any ideas on how to fix it or where to look to get an idea
<jasonthesensei> oh crap sorry forgot i'm using rails
philcrissman has quit [Remote host closed the connection]
SCommette has joined #ruby
poga has joined #ruby
celinedior has joined #ruby
SCommette has quit [Client Quit]
jamie_ca_ has joined #ruby
AlSquire has quit [Ping timeout: 258 seconds]
rippa has joined #ruby
generalissimo has joined #ruby
robottin1 has joined #ruby
adamjleonard has joined #ruby
sayan has quit [Ping timeout: 258 seconds]
ehaliewicz has quit [Read error: Connection reset by peer]
robottinosino has quit [Ping timeout: 276 seconds]
dekz__ has joined #ruby
mercwithamouth has joined #ruby
ehaliewicz has joined #ruby
johnnyfuchs has joined #ruby
idkazuma has quit [Remote host closed the connection]
echoez_ has quit [Quit: Computer has gone to sleep.]
nadirvardar has quit [Quit: Computer has gone to sleep.]
yshh has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
vikhyat has joined #ruby
gabrielrotbart has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
akashj87 has quit [Ping timeout: 240 seconds]
Gabri has joined #ruby
ntzrmtthihu777 has joined #ruby
<ntzrmtthihu777> halloo! I don't suppose one of ya'll could point me at a good tutorial for writting ruby into a c++ shared object?
mayankkohaley has quit [Ping timeout: 252 seconds]
wael has joined #ruby
ph^ has joined #ruby
rickruby has quit [Read error: Operation timed out]
ikea_meatballs has joined #ruby
<ikea_meatballs> anyone use this? https://github.com/sferik/mtgox
viuo has quit [Read error: Operation timed out]
wael has quit [Remote host closed the connection]
xrq has quit [Remote host closed the connection]
robscomputer has joined #ruby
mayankkohaley has joined #ruby
ph^ has quit [Ping timeout: 258 seconds]
ZuzzleBuzzer has quit [Quit: ZuzzleBuzzer]
rhinux_ has quit [Remote host closed the connection]
rhinux_ has joined #ruby
kelabot has joined #ruby
ntzrmtthihu777 has quit [Quit: Changing server]
iamvery has quit [Remote host closed the connection]
s2013 has quit []
viuo has joined #ruby
salmon_ has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
vikhyat has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
salmon_ has quit [Client Quit]
brianpWins has joined #ruby
rickruby has joined #ruby
NimeshNeema has joined #ruby
emergion has joined #ruby
sayan has joined #ruby
freeayu__ has joined #ruby
morfin has quit [Read error: Connection reset by peer]
morfin has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
vikhyat has joined #ruby
sayan has quit [Read error: Connection reset by peer]
ntzrmtthihu777 has joined #ruby
randomautomator has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
Morkel_ has joined #ruby
hadees has joined #ruby
love_color_text has quit [Remote host closed the connection]
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
browndawg has joined #ruby
worstadmin has quit [Ping timeout: 256 seconds]
randomautomator has quit [Ping timeout: 264 seconds]
kunday has joined #ruby
jbueza has quit [Quit: Leaving.]
tevio has joined #ruby
kunday has quit [Client Quit]
mockra has quit [Remote host closed the connection]
kandinsk1 is now known as kandinski
bradhe has quit [Ping timeout: 252 seconds]
<ntzrmtthihu777> hello, asked earlier but lost connection. I have a set of ruby classes and modules that, while doing the job, do it too slowly, and I would like to embed them into a c++ dll/so. can anyone point me at a good tutorial?
tevio has quit [Read error: Connection reset by peer]
shevy2 has quit [Ping timeout: 248 seconds]
tevio has joined #ruby
worstadmin has joined #ruby
billycravens has joined #ruby
indyrl has joined #ruby
nari has joined #ruby
vikhyat has quit [Remote host closed the connection]
vikhyat has joined #ruby
rippa has joined #ruby
chrishough has quit [Quit: chrishough]
yshh has joined #ruby
aedornm has quit [Remote host closed the connection]
jphpsf has quit [Quit: Leaving]
rickruby has quit [Ping timeout: 252 seconds]
adamjleonard has quit [Quit: Leaving...]
robbyoconnor has joined #ruby
kunday has joined #ruby
adamjleonard has joined #ruby
heliumsocket has joined #ruby
fir_ed has quit [Read error: Connection reset by peer]
sambio has quit []
yashshah_ has joined #ruby
shevy2 has joined #ruby
yashshah has quit [Ping timeout: 264 seconds]
nari has quit [Ping timeout: 245 seconds]
tds has quit [Quit: tds]
Hanmac1 is now known as Hanmac
epitron_ has quit [Changing host]
epitron_ has joined #ruby
epitron_ is now known as epitron
r0bby has joined #ruby
ehaliewicz has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
poga has quit [Remote host closed the connection]
kunday has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
kunday has joined #ruby
poga has joined #ruby
rton has joined #ruby
ph^ has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
poga has quit [Ping timeout: 258 seconds]
Elfix_113 has quit [Quit: rebooting]
daniel_hinojosa has quit [Quit: Leaving.]
tyl has joined #ruby
ph^ has quit [Ping timeout: 256 seconds]
nickbender has joined #ruby
poga has joined #ruby
MrZYX|off is now known as MrZYX
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
MrZYX is now known as MrZYX|off
idkazuma has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
neku has joined #ruby
Elfix has joined #ruby
Guest85414 has joined #ruby
MrZYX|off is now known as MrZYX
indyrl has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
Zai00 has joined #ruby
Zai00 has quit [Client Quit]
BlankVerse has quit [Quit: leaving]
generalissimo has quit [Remote host closed the connection]
krainboltgreene has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
tealmage has joined #ruby
codenapper has joined #ruby
marr has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<bnagy> ntzrmtthihu777: there isn't a 'magic' way to speed up Ruby
<bnagy> if you're running on MRI 2 or Jruby and your code is waay too slow it's good odds your algorithm is just bad
<bnagy> otherwise, you can profile and convert hot spots to native code ( C, C++ etc ) but not really while keeping it 'ruby'
wesside has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
yshh has quit [Remote host closed the connection]
<ntzrmtthihu777> bnagy: did you even read what I said? I specifically said I wanted to use C++, not asking for a magic way to speed ruby up.
Morkel has quit [Quit: Morkel]
<bnagy> ntzrmtthihu777: ok, so write c++
<bnagy> thenwrap it
yojimbo_ has joined #ruby
<ntzrmtthihu777> and a good tutorial on that?
yojimbo has quit [Ping timeout: 245 seconds]
<bnagy> on writing c++?
<nickbender> Start with K&R
<ntzrmtthihu777> no, on wrapping c++ in such a way as ruby can use it.
<bnagy> read the FFI docs, or look at swig
<bnagy> IMHO you'll actually have a much easier time writing C
<bnagy> flat C interfaces are a lot easier to wrap
<Hanmac> bnagy i think rubyinline could be cool or?
<bnagy> I mean you can effectively write C in C++ if you like
<bnagy> Hanmac: I've used it, but found it really crappy
<ntzrmtthihu777> bnagy: I know no C, lol.
<bnagy> like.. you may as well just write proper C and have less messing about
<bnagy> nickbender: I'm an FFI fanboy, so c-extensions are imho basically evil
<ntzrmtthihu777> bnagy: do you think learning C and using the various wrapping C tutorials would be better than trying to adapt them to C++?
<bnagy> not interpreter portable
<bnagy> ntzrmtthihu777: if you read the swig ffi docs for ruby you'll get an idea.
<ntzrmtthihu777> ah crap. that's not an option, I just realized something.
<bnagy> if it's simple stuff you can just add a flat API to your c++ fairly easily
<ntzrmtthihu777> must b C++, using SFML
mockra has joined #ruby
shevy2 is now known as shevy
Vivekananda has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 260 seconds]
guardian` has left #ruby [#ruby]
ph^ has joined #ruby
vikhyat has quit [Remote host closed the connection]
akashj87 has joined #ruby
sepp2k has joined #ruby
atmosx has joined #ruby
Axsuul has quit [Ping timeout: 246 seconds]
tomzx_mac has quit [Read error: Operation timed out]
yashshah_ has quit [Read error: Connection reset by peer]
yashshah_ has joined #ruby
ph^ has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
buscon has joined #ruby
poga has quit [Remote host closed the connection]
rickruby has joined #ruby
buscon has quit [Remote host closed the connection]
nickbender has quit [Ping timeout: 248 seconds]
dr_bob has joined #ruby
<ntzrmtthihu777> bnagy: swig ffi, I've ran into the former before, but not the latter.
poga has joined #ruby
bradhe has joined #ruby
rickruby has quit [Ping timeout: 256 seconds]
robscomputer has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 264 seconds]
vlad_sta_ has joined #ruby
buibex has joined #ruby
buibex has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 248 seconds]
chandankumar has joined #ruby
nminus1 has joined #ruby
codenapper has quit [Quit: Leaving...]
krainboltgreene has quit []
nickbender has joined #ruby
hmarr has joined #ruby
vikhyat has joined #ruby
TheFuzzball has joined #ruby
ariedler has joined #ruby
WanderingGlitch has quit [Changing host]
WanderingGlitch has joined #ruby
neku has quit [Quit: Leaving...]
rakl_ has quit [Quit: sleeping]
hackeron has joined #ruby
hamed_r has joined #ruby
tyl has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lkba has quit [Ping timeout: 248 seconds]
hmarr has quit []
roadt has quit [Ping timeout: 258 seconds]
justsee has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
chandankumar has quit [Ping timeout: 252 seconds]
tyl has joined #ruby
morfin has left #ruby [#ruby]
francisfish has quit [Ping timeout: 258 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
neku has joined #ruby
brianpWins has quit [Quit: brianpWins]
codenapper has joined #ruby
pagios has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
francisfish has joined #ruby
ariedler has quit [Remote host closed the connection]
KazW has quit [Ping timeout: 245 seconds]
ikea_meatballs has quit [Quit: ikea_meatballs]
idkazuma has quit [Remote host closed the connection]
tealmage has quit [Ping timeout: 252 seconds]
hamed_r has quit [Ping timeout: 258 seconds]
KazW has joined #ruby
tevio has quit [Remote host closed the connection]
nari has joined #ruby
tvw has quit []
nickbender has quit [Ping timeout: 256 seconds]
fjfish has joined #ruby
eka has joined #ruby
kunday has quit [Ping timeout: 256 seconds]
francisfish has quit [Ping timeout: 258 seconds]
poga has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
bradhe has joined #ruby
vlad_sta_ has quit [Ping timeout: 245 seconds]
hamed_r has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
maxmanders has joined #ruby
idkazuma has joined #ruby
lkba has joined #ruby
Proshot has joined #ruby
kirun has joined #ruby
maxmande_ has joined #ruby
maxmanders has quit [Ping timeout: 252 seconds]
threesome has joined #ruby
tomsthumb has quit [Quit: Leaving.]
xardas has joined #ruby
spider-mario has joined #ruby
robustus has quit [Ping timeout: 276 seconds]
yshh has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
robustus has joined #ruby
artofraw has joined #ruby
r0bgleeson has quit [Ping timeout: 255 seconds]
LnL has joined #ruby
braoru has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
backjlack has joined #ruby
skattyadz has joined #ruby
atmosx has quit [Quit: And so the story goes…]
mercwithamouth has quit [Ping timeout: 246 seconds]
tyl has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
danslo has joined #ruby
PaulePan1er is now known as PaulePanter
F1skr has joined #ruby
Proshot has quit [Quit: Leaving]
browndawg has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
Xeago has joined #ruby
Zolo has joined #ruby
tealmage has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
yshh has joined #ruby
idkazuma has quit [Remote host closed the connection]
Neomex has joined #ruby
Neomex has quit [Client Quit]
SEASALT14 has joined #ruby
deadpool21619 has joined #ruby
artofraw has quit [Read error: Connection reset by peer]
jasonthesensei has quit [Ping timeout: 245 seconds]
artofraw has joined #ruby
tealmage has quit [Ping timeout: 252 seconds]
atno has quit [Remote host closed the connection]
SEASALT14 has quit []
atno has joined #ruby
LennyLinux has joined #ruby
bradhe has joined #ruby
OODavo has joined #ruby
dkannan has joined #ruby
buibex has joined #ruby
<OODavo> I'm trying to define a class macro for performing around-aliasing in a less ad-hoc fashion; in particular, it attempts to capture the previous version of the method using a closure instead of giving it an explicit separate name in the class. My current try is here: http://sprunge.us/iTYH?ruby It fails because Procs do not have a Proc#bind method for changing their self value, however, and it appears that there isn't /any/…
<OODavo> …way to bind a Proc to a specific self. Any ideas?
vlad_starkov has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
Ca1us has quit [Quit: ""]
buibex has quit [Remote host closed the connection]
megha has joined #ruby
buibex has joined #ruby
poga has joined #ruby
baba has quit [Ping timeout: 256 seconds]
Jackneill has quit [Read error: Operation timed out]
maxmande_ has quit [Ping timeout: 258 seconds]
arya has joined #ruby
poga has quit [Read error: No route to host]
poga has joined #ruby
poga has quit [Remote host closed the connection]
<shevy> sounds complicated
Nanuq has quit [Read error: Operation timed out]
kreantos has joined #ruby
<OODavo> It seems Object#instance_eval and Object#instance_exec are the only ways to make a Proc run given a particular value of self. Unfortunately both aren't adequate for this situation, because it's necessary to preserve all arguments originally passed to the method, and instance_exec can't pass in a block argument since its block "slot" is taken by the Proc one is binding.
idletom has quit [Ping timeout: 272 seconds]
atmosx has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
buibex has quit [Remote host closed the connection]
angusiguess has joined #ruby
Nanuq has joined #ruby
angusiguess has quit [Ping timeout: 258 seconds]
arya has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
RagingDave has joined #ruby
arya has joined #ruby
<OODavo> Okay, figured it out in a horrible-hack fashion: http://sprunge.us/VfLd?ruby
unflores has joined #ruby
nezumi has quit [Ping timeout: 240 seconds]
yshh has quit [Remote host closed the connection]
gyre007 has joined #ruby
pioz has joined #ruby
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
arya has quit [Ping timeout: 248 seconds]
akashj87 has quit [Ping timeout: 240 seconds]
akashj87 has joined #ruby
pen has joined #ruby
<ntzrmtthihu777> Having issue compiling some C++ with ruby guts, can someone tell me what I'm screwing up on: http://paste.ubuntu.com/5724077/ ?
arya has joined #ruby
<ntzrmtthihu777> I'm getting this error: undefined reference to `rb_define_method' and a few similar ones. I thought this was the proper way to place ruby methods into C++?
Spooner has joined #ruby
wintermu1e has quit [Ping timeout: 248 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<ntzrmtthihu777> I'm using ruby 2.0
evenix has joined #ruby
madb055 has joined #ruby
alup has joined #ruby
dkannan has quit [Ping timeout: 252 seconds]
Scriptor has quit [Read error: Connection reset by peer]
Scriptor has joined #ruby
d11wtq_ has quit [Ping timeout: 246 seconds]
kreantos has quit [Remote host closed the connection]
m8 has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
dkannan has joined #ruby
atmosx has quit [Quit: And so the story goes…]
hamed_r has quit [Quit: Leaving]
d11wtq has joined #ruby
AndChat| has joined #ruby
bradhe has joined #ruby
peta_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
pen has quit [Remote host closed the connection]
swarley- has joined #ruby
nari has quit [Ping timeout: 246 seconds]
arya has joined #ruby
marr has quit [Ping timeout: 264 seconds]
mayankkohaley has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 260 seconds]
maxmanders has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
swarley| has quit [Ping timeout: 260 seconds]
deadpool21619 has quit [Ping timeout: 256 seconds]
jasonthesensei has joined #ruby
miso1337 has joined #ruby
timmow has joined #ruby
okinomo has joined #ruby
swarley- has quit [Ping timeout: 258 seconds]
browndawg has joined #ruby
xcv has joined #ruby
ToApolytoXaos has joined #ruby
<Mon_Ouie> OODavo: One kind of funny idea if you're using Ruby 2.0: create an anonymous module to store those methods, prepend it, and use super in it to call the original method
nminus1 has quit [Ping timeout: 258 seconds]
krishnau2 has joined #ruby
chandankumar has joined #ruby
<OODavo> Oh wow, that way would work too. Intriguing.
<OODavo> I think personally I still prefer passing the original method into the wrapper as an argument, though.
emmanuelux has joined #ruby
<Mon_Ouie> (You do need to be in the right def scope for it to work)
xcv has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
<OODavo> Will that allow you to apply multiple around-wrappers to the same method, or do later ones end up in the same anonymous module and hence overwrite the earlier ones?
d11wtq_ has joined #ruby
Xeago has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
angusiguess has joined #ruby
<Mon_Ouie> Ah, they do override each other. You'd need to create a new module for every method in that case.
d11wtq has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
<Mon_Ouie> That sounds like it would be somewhat of an expensive way of doing it then
stacky has joined #ruby
ashka has quit [Ping timeout: 245 seconds]
DrCode has quit [Ping timeout: 276 seconds]
<OODavo> That's one of the reasons the closure technique is awesome: You can apply as many wrappers as are needed, and they don't clash because the original method is squirreled away in the closure of the wrapped method each time.
DrCode has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
krishnau2 has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
Zolo has quit [Remote host closed the connection]
stef_204 has joined #ruby
<ntzrmtthihu777> anyone?
<daed> bueller?
slainer68 has joined #ruby
havenwood has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
ashka has joined #ruby
pioz has joined #ruby
neku has quit [Read error: Connection reset by peer]
neku has joined #ruby
sthetz has joined #ruby
<sthetz> Anyone willing to test nokogiri segfault?
<sthetz> This will take about 3 minutes
adamjleonard has quit [Quit: Leaving...]
braoru has quit [Ping timeout: 264 seconds]
browndawg has quit [Ping timeout: 258 seconds]
codenapper has quit [Quit: Leaving...]
tonini has joined #ruby
<havenwood> sthetz: What are steps to reproduce?
<sthetz> It's all in there
yojimbo_ has quit [Ping timeout: 276 seconds]
johnnyfuchs has quit [Remote host closed the connection]
chimmy has joined #ruby
<sthetz> Just clone it, bundle install and ruby test.rb
yojimbo has joined #ruby
tealmage has joined #ruby
<havenwood> sthetz: Counted to 99, no segfault.
<sthetz> Oh.
<sthetz> What is your ruby version and operating system?
<havenwood> sthetz: OS X 1.8.4 with Ruby 2.0.0-p0
<havenwood> 10.8.4**
tevio has joined #ruby
j0hnnY has quit [Read error: Connection reset by peer]
<sthetz> That makes sense. It sesms like that bug isn't reproducing on ruby 2
<ntzrmtthihu777> havenwood: have you wrote any ruby extensions in C++ against 2.0?
<sthetz> Thanks for trying
<havenwood> ntzrmtthihu777: Not personally, nope.
<ntzrmtthihu777> :/ this error is rather disheartening
ashka has quit [Ping timeout: 258 seconds]
<havenwood> sthetz: PS - It did segfault in 1.9.3-p392.
tealmage has quit [Ping timeout: 255 seconds]
teddyp1cker has quit [Remote host closed the connection]
<sthetz> havenwood: thanks again!
LnL has quit [Quit: LnL]
madb055 has quit [Ping timeout: 258 seconds]
browndawg has joined #ruby
ashka has joined #ruby
ashka has quit [Changing host]
ashka has joined #ruby
Guedes0 has joined #ruby
wintermu1e has joined #ruby
kofno has quit [Remote host closed the connection]
emergion has joined #ruby
dawkirst has joined #ruby
havenwood has quit [Remote host closed the connection]
bradhe has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
<ntzrmtthihu777> ah, I was missing some flags :P
arya has joined #ruby
bradhe has quit [Ping timeout: 258 seconds]
chandankumar has quit [Ping timeout: 248 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
vlad_sta_ has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
danslo has quit [Quit: danslo]
davetherat has quit [Remote host closed the connection]
kpshek has joined #ruby
davetherat has joined #ruby
vlad_sta_ has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
danslo has joined #ruby
vlad_starkov has quit [Ping timeout: 258 seconds]
pioz has quit [Quit: This computer has gone to sleep]
<shevy> $stdout.sync = true
<shevy> what's this do?
kpshek has quit [Ping timeout: 255 seconds]
dr_bob has quit [Quit: Leaving.]
pioz has joined #ruby
<bakingbread> shevy: it ensures output to the screen shows up without delays
idkazuma has joined #ruby
sambao21 has joined #ruby
<shevy> ah
<shevy> ok, cool, thanks
oneirophren has joined #ruby
angusiguess has joined #ruby
xcv has joined #ruby
<shevy> guys, anyone has an idea how to make this code better?
deadpool21619 has joined #ruby
<shevy> I want to have my script use two different ways to read user input give to it
<shevy> (1) either through readline or through (2) normal $stdin.gets
vikhyat_ has joined #ruby
<shevy> I am not sure this is the best way though
chimmy has quit [Ping timeout: 256 seconds]
jasonthesensei has quit [Ping timeout: 240 seconds]
vikhyat has quit [Ping timeout: 256 seconds]
chandankumar has joined #ruby
Amnesthesia has joined #ruby
forlin has joined #ruby
hadees has quit [Quit: hadees]
sthetz has left #ruby [#ruby]
DrCode has quit [Remote host closed the connection]
sjhuang_ has quit [Quit: leaving]
RagingDave_ has joined #ruby
tonini has quit [Remote host closed the connection]
DrCode has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
LennyLinux has quit [Remote host closed the connection]
RagingDave has quit [Ping timeout: 258 seconds]
dkannan has quit [Quit: dkannan]
sayan has joined #ruby
wintermu1e has quit [Ping timeout: 256 seconds]
OODavo has left #ruby [#ruby]
dkannan has joined #ruby
LennyLinux has joined #ruby
sleetdrop has joined #ruby
Amnesthesia has quit [Ping timeout: 245 seconds]
anderse has joined #ruby
LnL has joined #ruby
kofno has joined #ruby
anderse has quit [Client Quit]
browndawg has joined #ruby
<ntzrmtthihu777> later all, gonna reconfigure my irssi
ntzrmtthihu777 has quit [Quit: leaving]
eka has quit [Quit: Computer has gone to sleep.]
slainer68 has quit [Remote host closed the connection]
tealmage has joined #ruby
osvico has quit [Ping timeout: 246 seconds]
sayan has quit [Ping timeout: 252 seconds]
tealmage has quit [Ping timeout: 240 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
osvico has joined #ruby
vlad_starkov has joined #ruby
anderse has joined #ruby
bradhe has joined #ruby
vlad_sta_ has quit [Ping timeout: 258 seconds]
whowantstolivefo has joined #ruby
ashka has quit [Quit: En fait, le BSDiste, c'est comme l'homme politique, tu lui dis de quoi t'as besoin, il t'explique comment t'en passer]
ZachBeta has quit [Quit: Computer has gone to sleep.]
ashka has joined #ruby
dimka has quit [Ping timeout: 256 seconds]
philcrissman has joined #ruby
mneorr has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
braoru has joined #ruby
Rym has quit [Quit: Rym]
V8Energy has quit [Remote host closed the connection]
V8Energy has joined #ruby
pandawarrior has joined #ruby
tevio has quit [Remote host closed the connection]
anderse has quit [Quit: anderse]
dimka has joined #ruby
linusoleander has joined #ruby
hogeo has joined #ruby
kofno has quit [Remote host closed the connection]
stacky has quit [Ping timeout: 252 seconds]
skattyadz has quit [Quit: skattyadz]
tommyvyo has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Client Quit]
braoru has quit [Ping timeout: 258 seconds]
sailias has joined #ruby
dkannan has quit [Quit: dkannan]
rton has left #ruby [#ruby]
slainer68 has joined #ruby
hemanth has joined #ruby
io_syl has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
artofraw has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
stacky has joined #ruby
tommyvyo has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
_maes_ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
pskosinski has joined #ruby
blacktulip has joined #ruby
arya has joined #ruby
ph^ has joined #ruby
reactormonk has quit [Ping timeout: 252 seconds]
ashka has quit [Quit: En fait, le BSDiste, c'est comme l'homme politique, tu lui dis de quoi t'as besoin, il t'explique comment t'en passer]
stacky has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
danslo has quit [Read error: Connection reset by peer]
hiyakashi has joined #ruby
danslo has joined #ruby
pskosinski has quit [Ping timeout: 264 seconds]
reactormonk has joined #ruby
AlStanforth has joined #ruby
<AlStanforth> reading the MRI source
<AlStanforth> lib/matrix.rb uses "e2mmap.rb" to define exceptions easily
mnaser has joined #ruby
<AlStanforth> but I searched for e2mmap documentation and there isn't much of it
ashka has joined #ruby
ashka is now known as Guest62886
<AlStanforth> Should I be using Exception2MessageMapper in my own code? If no one has heard of it before, then it's probably not a good idea
ZachBeta has joined #ruby
LnL7 has joined #ruby
pagios has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
mattp_ has joined #ruby
LnL has quit [Ping timeout: 248 seconds]
cableray has joined #ruby
Guest62886 has quit [Ping timeout: 260 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
okinomo has quit [Quit: okinomo]
freeayu__ has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
schickung has joined #ruby
justsee has quit [Ping timeout: 252 seconds]
chandankumar has quit [Quit: Leaving]
cableray has quit [Ping timeout: 260 seconds]
gyre007 has quit [Remote host closed the connection]
ashka` has joined #ruby
yojimbo has quit [Ping timeout: 258 seconds]
moos3 has joined #ruby
vlad_starkov has quit [Ping timeout: 258 seconds]
iamjarvo has joined #ruby
tealmage has joined #ruby
bhaarat has joined #ruby
ph^ has quit [Remote host closed the connection]
wesside has joined #ruby
rton has joined #ruby
schickung has quit [Quit: schickung]
gyre007 has joined #ruby
hogeo has quit [Remote host closed the connection]
v0n has joined #ruby
AlStanforth has quit [Read error: Connection reset by peer]
yojimbo has joined #ruby
tealmage has quit [Ping timeout: 248 seconds]
pskosinski has joined #ruby
sailias has quit [Ping timeout: 258 seconds]
AlStanforth has joined #ruby
pioz has joined #ruby
pioz has quit [Client Quit]
okinomo has joined #ruby
iamvery has joined #ruby
mklappstuhl has quit [Ping timeout: 256 seconds]
martinklepsch has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
SCommette has joined #ruby
RagingDave_ has quit [Quit: Ex-Chat]
webwarlock has joined #ruby
bradhe has joined #ruby
mklappstuhl has joined #ruby
Camel` has joined #ruby
GeissT has joined #ruby
Camel` is now known as Guest71897
Guest71897 is now known as Camel`
Camel` has quit [Changing host]
Camel` has joined #ruby
skattyadz has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
etcetera has joined #ruby
Matip has quit [Read error: Connection reset by peer]
Matip has joined #ruby
hemanth has quit [Quit: This computer has gone to sleep]
GreenPlastik has joined #ruby
schickung has joined #ruby
AlStanforth has quit [Remote host closed the connection]
schickung has quit [Client Quit]
nbjahan has joined #ruby
AlStanforth has joined #ruby
martinklepsch has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
slainer68 has joined #ruby
newUser1234 has joined #ruby
deadpool21619 has quit [Ping timeout: 256 seconds]
jasonthesensei has joined #ruby
tommyvyo has quit [Quit:]
maxmanders has quit [Quit: Textual IRC Client: www.textualapp.com]
etcetera has quit []
tommyvyo has joined #ruby
csmrfx has joined #ruby
AlSquire has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
<csmrfx> Ever make an app to calculate whether it's cheaper to rent or loan a house?
haxrbyte has joined #ruby
nbjahan has quit [Quit: nbjahan]
slainer68 has quit [Ping timeout: 264 seconds]
razibog has joined #ruby
ikea_meatballs has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Matip has quit [Remote host closed the connection]
baphled has joined #ruby
rhannequin has joined #ruby
AxonetBE has joined #ruby
AxonetBE has quit [Client Quit]
unstable has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
moos3 has joined #ruby
AlSquirrel has joined #ruby
AlStanforth has quit [Remote host closed the connection]
AlSquire has quit [Ping timeout: 252 seconds]
enebo has joined #ruby
rhannequin has quit [Ping timeout: 256 seconds]
enebo has quit [Read error: Connection reset by peer]
girija has joined #ruby
arya has quit [Ping timeout: 248 seconds]
randomautomator has joined #ruby
tenmilestereo has joined #ruby
unstable has joined #ruby
enebo has joined #ruby
arya has joined #ruby
mercwithamouth has joined #ruby
Simone has joined #ruby
davetherat has quit [Remote host closed the connection]
neku has quit [Read error: Connection reset by peer]
Simone has quit [Client Quit]
davetherat has joined #ruby
atno has quit [Remote host closed the connection]
randomautomator has quit [Remote host closed the connection]
yshh has joined #ruby
randomautomator has joined #ruby
atno has joined #ruby
dougireton has joined #ruby
ariedler has joined #ruby
t_p has quit [Ping timeout: 252 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
okinomo has quit [Quit: okinomo]
AndChat| has quit [Read error: Connection reset by peer]
ZachBeta has quit [Quit: Computer has gone to sleep.]
UberCanuck has joined #ruby
tealmage has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
deadpool21619 has joined #ruby
Michae___ has joined #ruby
jasonthesensei has quit [Ping timeout: 264 seconds]
miso1337 has quit [Quit: afk]
Banistergalaxy has joined #ruby
braoru has joined #ruby
dougireton has quit [Quit: Leaving.]
tealmage has quit [Ping timeout: 260 seconds]
girija has quit [Ping timeout: 252 seconds]
Vivekananda has joined #ruby
nadirvardar has joined #ruby
newUser1234 has quit [Remote host closed the connection]
buibex has joined #ruby
UberCanuck has quit [Quit: Konversation terminated!]
ph^ has joined #ruby
bradhe has joined #ruby
atno has quit [Remote host closed the connection]
freakazoid0223 has joined #ruby
monkegjinni has joined #ruby
atno has joined #ruby
d11wtq has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
iamvery has quit [Remote host closed the connection]
d11wtq_ has quit [Ping timeout: 264 seconds]
iamvery has joined #ruby
ph^ has quit [Ping timeout: 258 seconds]
newUser1234 has joined #ruby
zigomir has joined #ruby
subbyyy has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
Davey has joined #ruby
slainer68 has joined #ruby
rhannequin has joined #ruby
Camel` has quit [Ping timeout: 258 seconds]
iamvery has quit [Ping timeout: 252 seconds]
randomautomator has joined #ruby
Bry8Star_ has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
Banistergalaxy has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 252 seconds]
idkazuma has quit [Remote host closed the connection]
txdv has quit [Remote host closed the connection]
veinofstars has joined #ruby
oneirophren has quit [Ping timeout: 256 seconds]
buibex has quit [Remote host closed the connection]
etcetera has joined #ruby
buibex has joined #ruby
Astralum has joined #ruby
etcetera has quit [Client Quit]
cyberarm has joined #ruby
wedgex has joined #ruby
Banistergalaxy has joined #ruby
luckyruby has quit [Remote host closed the connection]
etcetera has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
buibex has quit [Ping timeout: 256 seconds]
busybox42 has quit [Read error: Operation timed out]
chrishunt has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 248 seconds]
lukeholder has joined #ruby
dougireton has joined #ruby
mercwithamouth has joined #ruby
wedgex has left #ruby [#ruby]
Drakevr has quit [Ping timeout: 264 seconds]
arya has joined #ruby
tevio has joined #ruby
chrishunt has joined #ruby
veinofstars has quit [Quit: veinofstars]
GeissT has quit [Quit: MillBroChat AdIRC User]
BSaboia has joined #ruby
Neomex has joined #ruby
marcdel has joined #ruby
aytch has quit [Remote host closed the connection]
julian-delphiki has joined #ruby
mfridh_ has joined #ruby
mfridh has quit [Read error: Operation timed out]
mfridh_ is now known as mfridh
jasonthesensei has joined #ruby
dawkirst has quit [Ping timeout: 245 seconds]
deadpool21619 has quit [Ping timeout: 256 seconds]
Neomex has quit [Client Quit]
huoxito has joined #ruby
bean has quit [Ping timeout: 256 seconds]
nadirvardar has quit [Quit: Computer has gone to sleep.]
bean has joined #ruby
lukeholder has quit [Quit: Computer has gone to sleep.]
julian-delphiki has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
monkegjinni has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving.]
johnnyfuchs has joined #ruby
etcetera has quit []
Davey has quit [Quit: Computer has gone to sleep.]
wael has joined #ruby
atno has quit [Remote host closed the connection]
atno has joined #ruby
tomsthumb has joined #ruby
rhannequin has quit [Quit: Quitte]
s2013 has joined #ruby
Michae___ has quit [Remote host closed the connection]
Rym has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
<havenwood> Converting a little Python list of number conversions to Ruby, but dunno how to do hexadecimal byte stuff: https://gist.github.com/havenwood/5426260
hemanth has joined #ruby
<havenwood> Trying to convert `45` to "\x00\x00\x00\x2d"
<havenwood> And "\x00\x00\x00\x2d" to 45
dawkirst has joined #ruby
franks2 has quit [Quit: leaving]
<havenwood> "\x00\x00\x00\x2d".unpack("H*")[0].to_i(16) works for the former, but I just stumbled on it through trial and error - wondering how it can be done sanely?
gyre007 has quit [Remote host closed the connection]
hemanth has quit [Client Quit]
progbyperm has joined #ruby
<MrZYX> hmm, unpack("C*").inject(:+) maybe?
<havenwood> MrZYX: Nice.
dougireton has quit [Quit: Leaving.]
spider-mario has quit [Read error: Connection reset by peer]
soulisson has joined #ruby
<MrZYX> it really depends on the data
baroquebobcat has joined #ruby
<MrZYX> there's no "the right way"
Rym has quit [Quit: Rym]
<havenwood> MrZYX: Yeah, the Python version is entirely ambiguous.
monkegjinni has joined #ruby
<soulisson> Hi, I'm beginning Ruby, in ruby a block is a set of statements between the "do" and "end" keywords, is that right ?
<csmrfx> it is one of the definitions
kofno has joined #ruby
<soulisson> ok, thanks
whowantstolivefo has quit [Ping timeout: 258 seconds]
<csmrfx> I guess ultimately a block is a set of statements (expressions?) between delimiters, bound to a variable or not
julian-delphiki has joined #ruby
ZachBeta has joined #ruby
iamvery has joined #ruby
dawkirst has quit [Ping timeout: 255 seconds]
skattyadz has quit [Quit: skattyadz]
bhaarat has quit [Quit: bhaarat]
<csmrfx> thats soft in the head -explanation, see this for some more pragmatic approaches http://stackoverflow.com/questions/4911353/best-explanation-of-ruby-blocks
ZachBeta has quit [Client Quit]
tjbiddle has joined #ruby
<soulisson> thanks, csmrfx
dougireton has joined #ruby
bean has quit [Ping timeout: 258 seconds]
_bart has joined #ruby
hemanth has joined #ruby
txdv has joined #ruby
veinofstars has joined #ruby
iamvery has quit [Ping timeout: 256 seconds]
<csmrfx> "Blocks are lightweight literals for anonymous first-class procedures with some annoying limitations." Well is that fancy or what, Jörg?
bhaarat has joined #ruby
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
wael has quit [Quit: wael]
GOMADWarrior has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
<MrZYX> >> "\x00\x00\x00\x2d".unpack("i>").first
<eval-in> MrZYX => 45 (http://eval.in/17019)
<MrZYX> havenwood: ^
<txdv> >> "ASD"
<eval-in> txdv => "ASD" (http://eval.in/17020)
<txdv> I freak out
<txdv> >> "ASD" * 1024
<eval-in> txdv => "ASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDAS ... (http://eval.in/17021)
momomomomo has joined #ruby
Guedes0 has quit [Read error: Connection reset by peer]
himsin has joined #ruby
bradhe has joined #ruby
<havenwood> MrZYX: Nice, thanks! I need to read up on #pack and #unpack...
<MrZYX> yup ;D
<MrZYX> can't figure a way to pack it though
<MrZYX> >> [45].pack("i>")
<eval-in> MrZYX => "\0\0\0-" (http://eval.in/17022)
newUser1234 has quit [Ping timeout: 264 seconds]
newUser1_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
vikhyat_ has quit [Ping timeout: 256 seconds]
<havenwood> MrZYX: "\x00\x00\x00\x2d" #=> "\0\0
<havenwood> \0-"
<MrZYX> hm
tjbiddle has quit [Quit: tjbiddle]
browndawg has joined #ruby
newUser1_ has quit [Remote host closed the connection]
vikhyat has joined #ruby
<havenwood> I think the Ruby version (https://gist.github.com/havenwood/5426260) compares favorably to the Python (https://gist.github.com/Nurdok/4096182).
<csmrfx> >> sprintf("\#%02X%02X%02X", *[255,255,255])
<eval-in> csmrfx => "#FFFFFF" (http://eval.in/17023)
skattyadz has joined #ruby
pioz has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
sepp2k has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
blaxter_ has joined #ruby
Guedes0 has joined #ruby
newUser1234 has joined #ruby
pioz has quit [Client Quit]
philcrissman has quit [Remote host closed the connection]
hemanth has quit [Quit: This computer has gone to sleep]
viuo has quit [Read error: Operation timed out]
skattyadz has quit [Quit: skattyadz]
baroquebobcat has quit [Quit: baroquebobcat]
<LennyLinux> What class << self; self; end do? I know class << self open the singleton class of self but i don't get how can that expression be useful
<MrZYX> a class defintion always returns the last expression: foo = class Foo; 42; end, foo will contain 42
<MrZYX> so it's a way to capture the singleton class
newUser1234 has quit [Remote host closed the connection]
dougireton has quit [Quit: Leaving.]
cooldman224 has joined #ruby
newUser1234 has joined #ruby
<LennyLinux> Oh, ok! Thanks
viuo has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
hemanth has joined #ruby
<Hanmac> LennyLinux: its because 1.8 does not have a method for returning the singleton_class
vlad_sta_ has quit [Remote host closed the connection]
swex has joined #ruby
<LennyLinux> Ok, thanks
webwarlock has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
WarlockoftheWeb has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
sepp2k has joined #ruby
chrishunt has joined #ruby
hadees has joined #ruby
tealmage has joined #ruby
<havenwood> Any idea how to convert "45" to "3435", or "3435 to "45"? Some sorta hex encoding?
<csmrfx> havenwood: specify
pioz has joined #ruby
m8 has quit [Quit: Sto andando via]
<csmrfx> convert char code for "-" to some utf table code?
tealmage has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
<havenwood> csmrfx: Copying https://gist.github.com/Nurdok/4096182 to Ruby. The Python I'm translating is: "3435".decode('hex')
BizarreCake has quit [Read error: Connection timed out]
<havenwood> csmrfx: Ruby version: https://gist.github.com/havenwood/5426260
ananthakumaran has quit [Quit: Leaving.]
<csmrfx> did you have a look at sprintf documentation?
<havenwood> csmrfx: Nope, will do.
<csmrfx> not sure if that is quite it
BizarreCake has joined #ruby
momomomomo has quit [Ping timeout: 258 seconds]
<csmrfx> decode implies some kind of encoding method change
lethjakman has joined #ruby
subbyyy has quit [Ping timeout: 256 seconds]
dougireton has joined #ruby
<MrZYX> >> "45".encode("binary")
<eval-in> MrZYX => "45" (http://eval.in/17029)
<MrZYX> eh
<MrZYX> the other way around
<MrZYX> "3435".encode("binary")
alex__c2022 has quit [Read error: Operation timed out]
<havenwood> Oh, interesting - apparently that Python code doesn't work in Python 3.0: http://stackoverflow.com/questions/12917278/how-to-use-the-hex-encoding-in-python-3-2-or-higher
<MrZYX> >> "3435".encode("binary")
<eval-in> MrZYX => "3435" (http://eval.in/17030)
<csmrfx> str.decode([encoding[, errors]])
<MrZYX> weird
<MrZYX> in my pry it works
<csmrfx> Decodes the string using the codec registered for encoding. encoding defaults to the default string encoding. errors may be given to set a different error handling scheme. The default is 'strict', meaning that encoding errors raise UnicodeError. Other possible values are 'ignore', 'replace' and any other name registered via codecs.register_error(), see section Codec Base Classes.
<csmrfx> (^from Pythin dox)
momomomomo has joined #ruby
<havenwood> MrZYX: Really? Weird... Ruby version?
browndawg has quit [Ping timeout: 276 seconds]
<MrZYX> hmm
mockra has joined #ruby
<MrZYX> nvm actually :P
michaelmartinez has joined #ruby
iPhoneMRZ has joined #ruby
<csmrfx> hex_codec: hex byte string Convert operand to hexadecimal representation, with two digits per byte
kofno has quit [Remote host closed the connection]
<csmrfx> ^Pythin encode line for arg "hex_codex"
pioz has quit [Quit: This computer has gone to sleep]
predator217 has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
<csmrfx> alias "hex" (the second value after semicolon)
lkba has joined #ruby
<csmrfx> byte string is the operand type
wael has joined #ruby
<csmrfx> >> "%0x" % "3435"
<eval-in> csmrfx => "d6b" (http://eval.in/17031)
<MrZYX> >> "%02X%02X" % "45".chars.map(&:ord)
<eval-in> MrZYX => "3435" (http://eval.in/17032)
<havenwood> MrZYX: Well, that is a solution! Hehe.
<havenwood> Here is the Scala version: "45".map(BigInt(_).toString(16)).mkString #=> "3435"
<MrZYX> >> v = "45"; "%02X"*v.size % v.chars.map(&:ord)
<eval-in> MrZYX => "3435" (http://eval.in/17033)
<MrZYX> there has to be a better way though
<havenwood> MrZYX: Seems like so, but I'm drawing a complete blank.
dougireton has quit [Quit: Leaving.]
iPhoneMRZ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
pagios has quit [Remote host closed the connection]
johnnyfuchs has quit [Remote host closed the connection]
worstadmin has quit [Quit: Lost terminal]
akashj87__ has joined #ruby
IceDragon has joined #ruby
akashj87__ has quit [Read error: Connection reset by peer]
Opettaja has joined #ruby
predator117 has joined #ruby
<MrZYX> >> "45".chars.map { |c| c.ord.to_s(16) }.join
<eval-in> MrZYX => "3435" (http://eval.in/17034)
<havenwood> MrZYX: That is prettier!
wreckimnaked has joined #ruby
<havenwood> MrZYX: So what would the other way around be, "3435" to "45"?
akashj87 has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
wyhaines has joined #ruby
progbyperm has quit [Read error: Connection reset by peer]
yshh has quit [Read error: Connection reset by peer]
dougireton has joined #ruby
yshh has joined #ruby
monkegji_ has joined #ruby
<Hanmac> >> "3435".scan(/\d{2}/).map(&:hex).map(&:chr).join
<eval-in> Hanmac => "45" (http://eval.in/17035)
ThePicard has joined #ruby
<havenwood> Hanmac: Egads. Thanks!
tylersmith has quit [Client Quit]
io_syl has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
daniel_hinojosa has joined #ruby
newUser1234 has quit [Remote host closed the connection]
<csmrfx> 19:56 < MrZYX> >> "45".chars.map { |c| c.ord.to_s(16) }.join
<csmrfx> 19:56 < eval-in> MrZYX => "3435" (http://eval.in/17034)
<csmrfx> 19:58 -!- wreckimnaked [~wreckimna@177.182.108.228] has joined #ruby
<csmrfx> 19:58 < havenwood> MrZYX: So what would the other way around be, "3435" to "45"?
<csmrfx> 19:57 < havenwood> MrZYX: That is prettier!
<csmrfx> 19:58 -!- akashj87 [~akash@59.180.132.218] has quit [Ping timeout: 240 seconds]
<csmrfx> 19:58 -!- tylersmith [~tylersmit@99-113-186-159.lightspeed.sntcca.sbcglobal.net] has joined #ruby
<csmrfx> 19:59 -!- wyhaines [~wyhaines@24.143.25.242] has joined #ruby
<csmrfx> 19:59 -!- progbyperm [~memristor@78.97.207.171] has quit [Read error: Connection reset by peer]
<csmrfx> 19:59 -!- yshh [~yshh@p7001-ipngn100404kyoto.kyoto.ocn.ne.jp] has quit [Read error: Connection reset by peer]
<csmrfx> 19:59 -!- dougireton [~dougireto@c-71-231-55-147.hsd1.wa.comcast.net] has joined #ruby
<csmrfx> 20:00 -!- yshh [~yshh@p7001-ipngn100404kyoto.kyoto.ocn.ne.jp] has joined #ruby
<csmrfx> 20:00 -!- monkegji_ [~monkegjin@ec2-50-17-24-8.compute-1.amazonaws.com] has joined #ruby
tealmage has joined #ruby
<csmrfx> 20:01 < Hanmac> >> "3435".scan(/\d{2}/).map(&:hex).map(&:chr).join
<csmrfx> 20:01 < eval-in> Hanmac => "45" (http://eval.in/17035)
<csmrfx> oh man
<csmrfx> gotta love putty
<csmrfx> my apologies!
tealmage has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
atno has quit [Ping timeout: 256 seconds]
gyre007 has joined #ruby
Davey has joined #ruby
newUser1234 has joined #ruby
razibog has quit [Quit: Leaving.]
dougireton has quit [Quit: Leaving.]
chandankumar has joined #ruby
<MrZYX> got a non regex version
<MrZYX> >> "3435".chars.each_slice(2).map { |b| b.join.hex.chr }.join
<eval-in> MrZYX => "45" (http://eval.in/17036)
tds has joined #ruby
_bart has left #ruby [#ruby]
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
atno has joined #ruby
<txdv> "6768".chars.each_slice(2).map { |b| b.join.hex.chr }.join
<txdv> >> "6768".chars.each_slice(2).map { |b| b.join.hex.chr }.join
<eval-in> txdv => "gh" (http://eval.in/17037)
<MrZYX> heh :P
<txdv> >> "67068".chars.each_slice(2).map { |b| b.join.hex.chr }.join
<eval-in> txdv => "g\x06\b" (http://eval.in/17038)
<txdv> >> "60".chars.each_slice(2).map { |b| b.join.hex.chr }.join
<eval-in> txdv => "`" (http://eval.in/17039)
gyre007 has quit [Ping timeout: 276 seconds]
<txdv> >> "6168".chars.each_slice(2).map { |b| b.join.hex.chr }.join
<eval-in> txdv => "ah" (http://eval.in/17040)
jasonthesensei has quit []
dougireton has joined #ruby
<MrZYX> Hanmacs version does that too :P
divout has quit [Quit: Leaving.]
_5kg has joined #ruby
Mattix has joined #ruby
bradhe has joined #ruby
_5kg has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<Mattix> Hello
<MrZYX> and actually the python version does that too
<Mattix> why can't you :foo.to_proc.call?
<Mattix> "`call': no receiver given (ArgumentError)"
<MrZYX> because you give no receiver
<MrZYX> what would you expect?
<Mattix> what's the correct way then?
<MrZYX> I tell you right after you tell me what you expect
<MrZYX> there's probably a more correct solution to your problem
<Mattix> ok, so I'll tell you what I expect in this case and then what I really expect :P
<Mattix> I want to call funciton "foo" with some args
<Mattix> but!!
marcdel has quit [Quit: marcdel]
<Mattix> the only thing I have is :foo in a variable
<csmrfx> no
<MrZYX> use #public_send
<csmrfx> methods
<csmrfx> symbols
<MrZYX> >> "45".public_send(:to_i)
<csmrfx> methods. symbols.
<eval-in> MrZYX => 45 (http://eval.in/17041)
<MrZYX> now the way you originally tried:
chrishough has joined #ruby
<MrZYX> >> :to_i.to_proc.call "45"
<eval-in> MrZYX => 45 (http://eval.in/17042)
<Mattix> what if it's nil instead of 45?
<Mattix> hh. nil has a public_send
bradhe has quit [Ping timeout: 252 seconds]
<Mattix> nm
<Mattix> s/hh/ohh/
love_color_text has joined #ruby
<Mattix> > nil.public_send :foo
<Mattix> NoMethodError: private method `foo' called for nil:NilClass
<MrZYX> yup
monkegjinni has joined #ruby
<MrZYX> >> :foo.to_proc.call nil
<eval-in> MrZYX => /tmp/execpad-443c1ae55280/source-443c1ae55280:2:in `call': undefined method `foo' for nil:NilClass (NoMethodError) ... (http://eval.in/17043)
<MrZYX> no difference here, just the proper way
<Mattix> ok, the problem is that "foo" is defined in the main object
lethjakm1 has joined #ruby
<MrZYX> >> def foo; "hey"; end; public_send(:foo)
<eval-in> MrZYX => /tmp/execpad-4353e677cf46/source-4353e677cf46:2:in `public_send': private method `foo' called for main:Object (NoMethodError) ... (http://eval.in/17044)
monkegji_ has quit [Ping timeout: 258 seconds]
<MrZYX> oh, right
<MrZYX> then just use send
<Mattix> cool
<MrZYX> (forgot that the main object methods are private)
<Mattix> now let me tell you what I really wanted to do :P
baphled has quit [Ping timeout: 256 seconds]
enebo has quit [Quit: enebo]
<csmrfx> >> def foo; p 1; end; send( :foo )
<eval-in> csmrfx => 1 ... (http://eval.in/17045)
<Mattix> I want to call some function to manipulate the args/output of a function in a transparent way. let me show you an example
rickruby has joined #ruby
lethjakman has quit [Ping timeout: 276 seconds]
<csmrfx> No comprende. Do you speak english?
<MrZYX> putty again?
<MrZYX> :D
sintrix has left #ruby ["need 2 take a dump!"]
beneggett has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
<Mattix> > def dump(*args); puts args; end; def f(*args); dump *args; result = args.sort; dump result; result; end; f(3,1,2)
<Mattix> it's ugly and I'm using it a lot. can I somehow call dump at the beginning and the end of all functions?
monkegji_ has joined #ruby
supernullset has joined #ruby
havenwood has quit [Remote host closed the connection]
tealmage has joined #ruby
havenwood has joined #ruby
tealmage has quit [Remote host closed the connection]
<Mattix> instead I was going to do: def call(func, *args); dump(send func, dump(*args)); end; call :foo, 3, 1, 2
havenwood has quit [Remote host closed the connection]
codenapper has joined #ruby
monkegjinni has quit [Ping timeout: 258 seconds]
Iszak has joined #ruby
<MrZYX> and there's a a lot more powerful version of that in 2.0
bradhe has joined #ruby
<MrZYX> another approach could be to use a delegator to track all accesses/changes
<Mattix> it's not to trace functions, in this case it's dump but sometimes it's another function that simplifies the input/output
kfr2 has joined #ruby
generali_ has joined #ruby
Guedes0 has quit [Ping timeout: 256 seconds]
<csmrfx> you mean you want explicit method calls
<Mattix> silly example ^
wael has quit [Quit: wael]
<Mattix> I'm converting: 1->true, 0->false, applying binary operators and converting it back: true->1, false->0
tds has quit [Quit: tds]
madb055 has joined #ruby
<MrZYX> wouldn't that just shift the overhead to the caller side?
chrishunt has quit [Quit: ZzZzZz...]
vikhyat_ has joined #ruby
adamjleonard has joined #ruby
spider-mario has joined #ruby
<Mattix> just a little bit. all the caller must do is call(:function, args) instead of function(args)
vikhyat has quit [Read error: Connection reset by peer]
subbyyy has joined #ruby
<csmrfx> met-hod
Faris9 has joined #ruby
<Mattix> mɛθəd
hemanth has quit [Quit: This computer has gone to sleep]
whowantstolivefo has joined #ruby
<MrZYX> do you want to always do that to the methods or just sometimes? all of them or just some?
tomzx_mac has joined #ruby
dougireton has quit [Quit: Leaving.]
<Mattix> always, some of them or all, I can isolate them if it's necessary
love_color_text has quit [Read error: Connection reset by peer]
<csmrfx> tp
love_color_text has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
love_color_text has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
randomautomator has joined #ruby
LongLiveBacon has quit [Ping timeout: 245 seconds]
Arzaga has joined #ruby
bytemuse has joined #ruby
elux has joined #ruby
hadees has quit [Ping timeout: 258 seconds]
carloslopes has joined #ruby
ssms has quit [Quit: Konversation terminated!]
hiyakashi has quit [Ping timeout: 252 seconds]
carloslopes has quit [Remote host closed the connection]
vikhyat_ has quit [Ping timeout: 258 seconds]
randomautomator has quit [Remote host closed the connection]
codenapper has quit [Quit: Leaving...]
iamvery has joined #ruby
swex has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
randomautomator has joined #ruby
heliumsocket has joined #ruby
h8R has quit [Ping timeout: 245 seconds]
elux has quit [Quit: Leaving...]
supernullset has quit [Remote host closed the connection]
tk_ has quit [Quit: ばいばい]
ziggles has joined #ruby
bytemuse has quit [Quit: bytemuse]
gerep has joined #ruby
<gerep> Hello worl!
codenapper has joined #ruby
_veer has joined #ruby
iamvery has quit [Ping timeout: 245 seconds]
<ziggles> hi guys, i'm making a simple kitchen timer just for practice writing ruby and rspec tests. I was wondering if it's common opinion to do things like this in threads?
mneorr has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 258 seconds]
arya has joined #ruby
<swarley> are you doing it asynchronously?
mneorr has joined #ruby
<gerep> I need to read a log and separate some of its content. I need to get everything between the InitialGame until the other one is started, like https://gist.github.com/gerep/5426823
<ziggles> swarley: I am currently (i'm new to ruby/programming so i have no idea if i even need to do it synchronously )
WarlockoftheWeb has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
<swarley> It depends on how you're trying to do it.
<ziggles> swarley: I'm having a hard time writing tests that don't wait for my timer to finish counting time before checking tests' expectations
<swarley> You can do it semi easily with timeout
<ziggles> that's why i was thinking i needed to start using threads
chrishunt has joined #ruby
<swarley> ziggles, but if they don't wait then how do they know if it is sucessful?
randomautomator has quit [Remote host closed the connection]
<ziggles> swarley: that's a good point. i'm trying to approach this from a test first perspective so i've barely gotten to that point lol
vikhyat has joined #ruby
johnkary has quit [Quit: @johnkary]
<swarley> if time is sensitive in the test, it's usually a good idea to make the time very short
skattyadz has quit [Quit: skattyadz]
<ziggles> swarley: basically i was planning on injecting a really short sleep interval from the test
<swarley> 0.01 seconds is always an option
chrishunt has quit [Client Quit]
bean has joined #ruby
<swarley> It's best to not try to work around your tests. You want to use your methods exactly as they would be used in code
<swarley> don't code for tests, write tests for the code
sayan has joined #ruby
<swarley> Well, that may not be the best way to put it
<swarley> but, tests should say what your code should do
mneorr has quit [Ping timeout: 256 seconds]
<swarley> not how it does it
<ziggles> swarley: i think i understand. you're saying... don't compromise my code so that i can write tests?
wedgex has joined #ruby
johnkary has joined #ruby
gyre007 has joined #ruby
LnL7 has quit [Ping timeout: 248 seconds]
<swarley> yes, if the test means changing the code in a big way, find a different way to test it
tommyvyo has quit [Quit:]
<ziggles> swarley: i have this: http://pastie.org/private/rnfjhq8jfbqwxhks1b6wq and i think it's reasonable. Basically after adding the "interval_duration" i realized it might be a cool feature
<gerep> I have a log file with some content between lines with InitGame and ShutdownGame, I need to get everything between those two lines, this is what I have so far but it is showing only the first line. https://gist.github.com/gerep/5426823
Arzaga has quit [Quit: Computer has gone to sleep.]
<ziggles> swarley: in #start there's a thread ... but i have no idea if that's even necessary. @ first glance does that class look like shit?
<Morrolan> gerep: You only add the line to your array if it includes 'InitGame', which is only the case for your first line.
<ziggles> Basically i wanna like... set a timer, start it ... then from another app (this is going to be a gem) i want to check the timer and see if it's finished
julian-delphiki has quit [Ping timeout: 252 seconds]
<gerep> Morrolan damn, that's correct =) but how do I make it start from the next line?
<gerep> unless?
<MrZYX> you actually want to build an array of arrays, right?
<gerep> MrZYX me?
<swarley> also side note
<MrZYX> gerep: yup
<swarley> [] is faster than Array.new
wreckimnaked has quit [Ping timeout: 252 seconds]
<gerep> swarley: thanks
<IceDragon> gerep: Array.new(ysize) { Array.new(xsize) } # will this help?
<gerep> MrZYX: I'll save the content between those two lines inside a array to access it later =)
<swarley> No problem, I was typing something more helpful but Morrolan got you the answer first
skattyadz has joined #ruby
tomsthumb has quit [Quit: Leaving.]
<swarley> ziggles, i'm sorry, I'm looking at it now
mneorr has joined #ruby
blaxter_ has quit [Ping timeout: 264 seconds]
<ziggles> swarley: no worries man. thanks for your time!
<swarley> for time_becomes_a_loop, you might want to do something like
tomsthumb has joined #ruby
vikhyat_ has joined #ruby
<gerep> how can I do a unless X or Y
skattyadz has quit [Client Quit]
<swarley> while @current >= @duration; @current += 1; sleep 1; end; @state = :done
<swarley> newlines where I put semicolons though
<gerep> stupid question, sorry =)
<Morrolan> gerep: "do_something unless x || y".
<Morrolan> (Sorry, had to leave for an instant)
<gerep> Morrolan thanks ;)
vikhyat has quit [Ping timeout: 256 seconds]
<Morrolan> gerep: '||' in this case means 'or'. '&&' would be 'and'.
tomsthumb has quit [Client Quit]
<gerep> OK
BizarreCake has quit [Ping timeout: 260 seconds]
<gerep> No I can read what is between those two lines
<Morrolan> :)
<ziggles> swarley: LOL what the hell was i thinking!
<gerep> I'll be back in a moment with more doubts =)
<ziggles> swarley: thanks for that.
<swarley> no problem
BSaboia has quit [Read error: Connection reset by peer]
<ziggles> swarley: what do you think of the main loop being executed inside of a Thread? My goal was to have some other class be able to create a timer, start it, then check it periodically
<ziggles> Thread seems to be the only way i can do timer.start and not hold up everything
<fryguy> ziggles: you should look at eventmachine
<fryguy> it has timers built into it
statarb3 has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
mneorr has joined #ruby
<ziggles> fryguy: thanks, ill check it out later today. For this problem though i'm trying to learn by doing it myself so i'd like work through w/o any libraries, you know?
security has joined #ruby
coffe has joined #ruby
megha has quit [Ping timeout: 248 seconds]
GOMADWarrior has quit [Ping timeout: 264 seconds]
statarb3 is now known as Proshot
GOMADWarrior has joined #ruby
bradleyprice has joined #ruby
<coffe> Hi http://pastebin.com/yzePK51H i am a neewwbee .. just trying to understand using pry and how to access data in arrays.
skattyadz has joined #ruby
monkegji_ has quit [Ping timeout: 240 seconds]
gyre008 has joined #ruby
monkegjinni has joined #ruby
<MrZYX> gerep: what about the first line?
<gerep> MrZYX solved =)
<fryguy> ziggles: you are missing the point hten
havenwood has joined #ruby
<ziggles> fryguy: oh?
<MrZYX> gerep: File.read('games.log').lines.slice_before(/^.+?InitGame:/) gives you an array of enumerators for each slice, though the first line is a distinct one
monkegji_ has joined #ruby
<gerep> MrZYX that's great =) thanks a lot
monkegjinni has quit [Read error: Connection reset by peer]
gyre007 has quit [Ping timeout: 252 seconds]
shock_one has joined #ruby
wreckimnaked has joined #ruby
vikhyat_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
banister_ has joined #ruby
security is now known as megha
vikhyat has joined #ruby
jacktrick has joined #ruby
LnL has joined #ruby
Es0teric has joined #ruby
<banister_> coffe: m.first[:track]
<coffe> banister Tnx :)
forlin has quit [Remote host closed the connection]
<coffe> banister_ is there a easy way of removing first instance in a array ?
<banister_> coffe: m.shift
sthetz has joined #ruby
monkegjinni has joined #ruby
<coffe> banister_ Tnx :)
<Es0teric> how do you view rdoc on the browser?
sorbo_ has joined #ruby
rakl has joined #ruby
brianpWins has joined #ruby
<Morrolan> Generate it with the 'rdoc' command.
gyre008 has quit [Remote host closed the connection]
<Morrolan> Most projects already host their documentation online, so that's only necessary for projects of your own.
wael has joined #ruby
tds has joined #ruby
pako2008 has joined #ruby
monkegji_ has quit [Ping timeout: 252 seconds]
<pako2008> hallo
sayan has quit [Read error: Connection reset by peer]
<ziggles> swarley: hey thanks for the help and reviewing my code
<swarley> no problem at all
ziggles has quit [Remote host closed the connection]
<banister_> Es0teric: you can also view your docs with pry, in which case you don't need to generate anything
<sorbo_> does anyone have a good c extension demo that's not from 2006?
<sorbo_> I've been playing through a few but haven't gotten any to work. though I could just be screwing them up.
<pako2008> i am new to ruby and just instelled it - i have question why the ri command does not know aobut any ruby class or method
<banister_> sorbo_: i have a slightly extreme one: https://github.com/banister/binding_of_caller
mneorr_ has joined #ruby
love_color_text has quit [Remote host closed the connection]
yfeldblum has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
<sorbo_> banister_: awesome, thanks
<sorbo_> this is really helpful
<Hanmac> i have good C(++) exts but they are not very demo like ;(
<csmrfx> pako2008: try $ ri String.to_i
slainer68 has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
<sorbo_> IIIII figured it out
nickbend1r has joined #ruby
<sorbo_> I was looking in the wrong directory
<banister_> sorbo_: what was the issue
<sorbo_> man
<sorbo_> that was dumb
<sorbo_> this is still awesome though, the only examples I've come across so far are very "hello world"
<sorbo_> so this is good to learn from
h8R has joined #ruby
Iszak has quit [Quit: Computer has gone to sleep.]
<banister_> sorbo_: well it's using private API, so it only works on 1.9.* :) it wont work on 2.0 anymore, but that gem is aware of that and does something different for 2.0
<pako2008> cxmrfx now working - i have installed ruby only now installed rdoc also
beneggett has joined #ruby
braoru has quit [Remote host closed the connection]
madb055 has quit [Ping timeout: 248 seconds]
<csmrfx> pako2008: what about starting irb and "help String"
swex has joined #ruby
tommyvyo has joined #ruby
benlieb has joined #ruby
<pako2008> it is working also
<pako2008> thx
nickbend1r has quit [Ping timeout: 240 seconds]
<csmrfx> p "np"
tijmencc has joined #ruby
Iszak has joined #ruby
r0bgleeson has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
sean_s has joined #ruby
himsin has quit [Ping timeout: 258 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
wael has quit [Quit: wael]
atno has quit [Remote host closed the connection]
baphled_ has joined #ruby
atno has joined #ruby
jacktrick has quit [Quit: Leaving]
fermion has joined #ruby
sayan has joined #ruby
banjara has joined #ruby
Proshot is now known as statarb3
mneorr_ has quit [Remote host closed the connection]
tjbiddle has joined #ruby
nickbender has joined #ruby
peta_ has quit [Remote host closed the connection]
peta_ has joined #ruby
mneorr has joined #ruby
statarb3 is now known as Proshot
matheustardivo has joined #ruby
browndawg has left #ruby [#ruby]
r0bgleeson has quit [Ping timeout: 252 seconds]
KazW has quit [Remote host closed the connection]
wmoxam has joined #ruby
<Hanmac> sorbo_: you can look at: https://github.com/Hanmac/rwx ... but i think its code maybe to high for you ;P
sayan has quit [Ping timeout: 276 seconds]
<sorbo_> less of a height thing, more of a "don't know c++ thing"
KazW has joined #ruby
nickbend1r has joined #ruby
mneorr has quit [Ping timeout: 260 seconds]
yacks has quit [Quit: Leaving]
pioz has joined #ruby
bhaarat has quit [Quit: bhaarat]
pioz has quit [Client Quit]
yacks has joined #ruby
banjara has quit [Quit: Leaving.]
brianpWins has quit [Quit: brianpWins]
sean_s has left #ruby [#ruby]
matheustardivo has quit []
banjara has joined #ruby
<peta_> is there any reason to use bundler over rvm?
sthetz has left #ruby [#ruby]
sthetz has joined #ruby
<sthetz> bundler over rvm?
<peta_> bundler instead of rvm?
bradleyprice has quit [Remote host closed the connection]
<sthetz> Yeah I get it
ehaliewicz has joined #ruby
sean_s has joined #ruby
<sthetz> I just can't understand how those 2 instruments are the same
<sthetz> I thought they're for different purposes
sean_s has quit [Client Quit]
<csmrfx> perhaps read http://gembundler.com/
<havenwood> peta_: They handle different primary purposes. They do overlap for Gemsets/Gemfiles. What are you trying to do?
<havenwood> peta_: Bundler is for bundling gems. RVM is for installing and selecting the current Ruby (alternatives include chruby and rbenv).
<peta_> I am reading about bundler here and there and wondered why to use it instead of rvm
sean_s has joined #ruby
<csmrfx> peta_: they are not alternatives
<peta_> but rvm also offers full supported for gemsets
<peta_> that can also be frozen/exported/imported/asf.
<csmrfx> bundler is for apps
r0bgleeson has joined #ruby
<peta_> Did I get it right that BUndler somehow scans the rb code fiels and extracts a list of all required gems?
<havenwood> peta_: RVM was solving a problem before Bundler came around. Nowadays, a Gemfile is a common sight in an app.
<havenwood> peta_: Nope.
<havenwood> peta_: You put the required gems in the Gemfile.
<peta_> okay, and bundler takes care that they are available?
<peta_> when the app is deployed
<havenwood> peta_: It bundles the gems, typically with deployment you use `bundle --deployment`, which puts the gems in a local vendor/ folder for the app to use in production.
lethjakm1 has quit [Ping timeout: 276 seconds]
centipedefarmer has joined #ruby
<havenwood> peta_: It handles dependencies, and keeps the app's gems separate from system gems.
<peta_> ah okay
<peta_> now i get it
altivec has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
galbert_z has joined #ruby
kirun has quit [Quit: Client exiting]
LongLiveBacon has joined #ruby
setient_ is now known as setient
MisterPostIT has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
galbert_z has left #ruby ["WeeChat 0.3.7"]
momomomomo_ has joined #ruby
Gabri has quit [Remote host closed the connection]
marr has joined #ruby
timeout has joined #ruby
havenwood has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 258 seconds]
momomomomo_ is now known as momomomomo
jonahR has joined #ruby
ph^ has joined #ruby
atno has quit [Remote host closed the connection]
ph^ has quit [Remote host closed the connection]
danslo has quit [Quit: danslo]
atno has joined #ruby
tds has quit [Quit: tds]
sean_s has quit [Ping timeout: 256 seconds]
heliumsocket has joined #ruby
jonahR has quit [Ping timeout: 252 seconds]
notwen_ is now known as notwen
zodiak has quit [Ping timeout: 272 seconds]
altivec has quit [Quit: Computer has gone to sleep.]
adamjleonard has quit [Quit: Leaving...]
Jackneill has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
skattyadz has quit [Ping timeout: 245 seconds]
SCommette has quit [Quit: SCommette]
keymone has joined #ruby
sean_s has joined #ruby
lethjakm1 has joined #ruby
zodiak has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
subbyyy has quit [Ping timeout: 256 seconds]
Proshot has quit [Quit: Leaving]
huoxito has quit [Quit: Leaving]
pcarrier has joined #ruby
wael has joined #ruby
gyre007 has joined #ruby
codenapper has quit [Quit: Leaving...]
codenapper has joined #ruby
Beoran__ has joined #ruby
kuzushi_ has quit [Read error: Connection reset by peer]
kuzushi_ has joined #ruby
Proshot has joined #ruby
tijmencc has quit [Quit: tijmencc]
<gerep> how can I dump a array to check its values and keys?
<MrZYX> an array has only values, no keys. do you mean a hash?
gyre007 has quit [Ping timeout: 255 seconds]
Beoran_ has quit [Ping timeout: 264 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
<csmrfx> .inspect it
soulisson has quit [Ping timeout: 258 seconds]
tomsthumb has joined #ruby
timeout has quit [Quit: leaving]
atno has quit [Remote host closed the connection]
atno has joined #ruby
wmoxam has quit [Ping timeout: 258 seconds]
zodiak has quit [Ping timeout: 258 seconds]
pcarrier has quit [Ping timeout: 258 seconds]
kuzushi__ has joined #ruby
chrishough has quit [Quit: chrishough]
skattyadz has joined #ruby
bhaarat has joined #ruby
skattyadz has quit [Client Quit]
kuzushi_ has quit [Ping timeout: 255 seconds]
zodiak has joined #ruby
indyrl has joined #ruby
r0bgleeson has quit [Ping timeout: 264 seconds]
skattyadz has joined #ruby
johnkary has quit [Quit: @johnkary]
kuzushi has joined #ruby
lethjakm1 has quit [Ping timeout: 252 seconds]
kuzushi_ has joined #ruby
chandankumar has quit [Quit: Leaving]
kuzushi__ has quit [Ping timeout: 252 seconds]
shock_one has quit [Ping timeout: 260 seconds]
kuzushi_ has quit [Read error: Connection reset by peer]
haxrbyte_ has joined #ruby
kuzushi_ has joined #ruby
wael has quit [Quit: wael]
pcarrier has joined #ruby
nomenkun has quit [Remote host closed the connection]
workmad3 has joined #ruby
kuzushi has quit [Ping timeout: 264 seconds]
haxrbyte has quit [Ping timeout: 256 seconds]
yashshah_ has quit [Quit: Konversation terminated!]
teddyp1cker has joined #ruby
kuzushi__ has joined #ruby
arya_ has joined #ruby
epochwolf is now known as epochcoyote
epochcoyote is now known as epochwolf
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 248 seconds]
nickbend1r has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
nickbender has quit [Ping timeout: 264 seconds]
ziggles has joined #ruby
monkegj__ has joined #ruby
monkegj__ has quit [Read error: Connection reset by peer]
kuzushi_ has quit [Ping timeout: 240 seconds]
monkegji_ has quit [Read error: Connection reset by peer]
<ziggles> hey guys, i'm trying to learn by building a gem with tests (rspec). I was wondering if it's good practice to have the spec/ directory mirror the lib/ directory's structure?
monkegj__ has joined #ruby
momomomomo_ has joined #ruby
iamvery has joined #ruby
momomomomo has quit [Ping timeout: 258 seconds]
momomomomo_ is now known as momomomomo
teddyp1cker has quit [Remote host closed the connection]
AlSquirikou has joined #ruby
sam113101 has quit [Quit: WeeChat 0.4.0]
slainer68 has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 240 seconds]
AlSquirrel has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
banjara has quit [Quit: Leaving.]
ziggles has left #ruby [#ruby]
Davey has joined #ruby
apeiros has joined #ruby
arya_ has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
bhaarat has quit [Quit: bhaarat]
reset has joined #ruby
sthetz has left #ruby [#ruby]
sam113101 has joined #ruby
AlSquirrel has joined #ruby
AlSquirikou has quit [Ping timeout: 256 seconds]
arya has joined #ruby
sirecote has quit [Quit: ZNC - http://znc.in]
Regis__ has joined #ruby
atno has quit [Remote host closed the connection]
GOMADWarrior has quit [Ping timeout: 255 seconds]
newUser1234 has quit [Remote host closed the connection]
monkegjinni has joined #ruby
bhaarat has joined #ruby
jacktrick has joined #ruby
arya has quit [Ping timeout: 264 seconds]
sailias has joined #ruby
idletom has joined #ruby
monkegj__ has quit [Read error: Operation timed out]
dmiller has joined #ruby
kuzushi_ has joined #ruby
r0bgleeson has joined #ruby
AlSquirikou has joined #ruby
AlSquirrel has quit [Ping timeout: 264 seconds]
kofno has joined #ruby
arya has joined #ruby
Es0teric has joined #ruby
kuzushi__ has quit [Ping timeout: 246 seconds]
wargasm has quit [Ping timeout: 264 seconds]
jekotia has joined #ruby
tbrock_ has joined #ruby
<tbrock_> hey guys is there a platform independent /dev/null?
<tbrock_> in ruby
kuzushi__ has joined #ruby
GOMADWarrior has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
GOMADWarrior has quit [Max SendQ exceeded]
GOMADWarrior has joined #ruby
skattyadz has quit [Quit: skattyadz]
AlSquirrel has joined #ruby
GOMADWarrior has quit [Max SendQ exceeded]
Regis__ has quit [Ping timeout: 252 seconds]
kuzushi_ has quit [Ping timeout: 255 seconds]
heftig has joined #ruby
AlSquirikou has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
GOMADWarrior has joined #ruby
agarie has quit [Remote host closed the connection]
unflores has quit [Quit: unflores]
kuzushi__ has quit [Ping timeout: 260 seconds]
<ikea_meatballs> how can i detect if my code is being run by rspec?
<MrZYX> why?
bradhe has joined #ruby
<MrZYX> if your code acts different when being tested you might not actually testing it...
nomenkun has quit [Ping timeout: 252 seconds]
bhaarat has quit [Quit: bhaarat]
zodiak has quit [Ping timeout: 258 seconds]
keymone has quit [Quit: keymone]
madb055 has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
brianpWins has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
celinedior has quit [Quit: celinedior]
TheFuzzball is now known as A
A is now known as Guest2107
niceguyjames has joined #ruby
Guest2107 is now known as TheFuzzball
skattyadz has joined #ruby
BBonifield has quit [Ping timeout: 248 seconds]
Ng|Adonixx8359 has joined #ruby
Ng|Adonixx8359 has joined #ruby
Ng|Adonixx8359 has quit [Changing host]
mercwithamouth has joined #ruby
niceguy1234 has joined #ruby
kofno has quit [Remote host closed the connection]
BBonifield has joined #ruby
AlSquirikou has joined #ruby
axxT has quit [Ping timeout: 256 seconds]
kelabot has quit [Remote host closed the connection]
AlSquirrel has quit [Ping timeout: 276 seconds]
gerep has quit [Ping timeout: 252 seconds]
nickbender has joined #ruby
nickbend1r has joined #ruby
<otters> does anybody use kicker here? it keeps exiting with status 0 after one iteration
skattyadz has quit [Quit: skattyadz]
nickbender has quit [Ping timeout: 248 seconds]
carloslopes has joined #ruby
kcpr has joined #ruby
nickbend1r has quit [Ping timeout: 264 seconds]
splittingred has joined #ruby
MisterPostIT has quit [Ping timeout: 264 seconds]
AlSquirrel has joined #ruby
wargasm has joined #ruby
cantonic has joined #ruby
slainer68 has joined #ruby
AlSquirikou has quit [Ping timeout: 264 seconds]
himsin has joined #ruby
johnkary has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
nickbender has joined #ruby
nickbend1r has joined #ruby
cableray has joined #ruby
AlSquirikou has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
AlSquirrel has quit [Ping timeout: 260 seconds]
nickbender has quit [Read error: Operation timed out]
bradhe has joined #ruby
nickbend1r has quit [Ping timeout: 252 seconds]
monkegji_ has joined #ruby
arubin has joined #ruby
yojimbo has quit [Ping timeout: 252 seconds]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
monkegjinni has quit [Ping timeout: 248 seconds]
niceguyjames has joined #ruby
kennyvb_ has quit [Quit: ZNC - http://znc.in]
bradhe has quit [Ping timeout: 276 seconds]
cableray has quit [Quit: cableray]
jbueza has joined #ruby
kennyvb has joined #ruby
yojimbo has joined #ruby
tenmilestereo has quit [Quit: Leaving]
tenmilestereo has joined #ruby
ciziar has joined #ruby
schiang has joined #ruby
kcpr has quit [Quit: Leaving]
ToApolytoXaos has quit [Quit: Leaving]
camt has joined #ruby
<coffe> fastest way of empty a array ?
<MrZYX> make a new one?
bradhe has joined #ruby
<coffe> still like to use the old one :) could i just oldone = [] ?
justsee has joined #ruby
justsee has joined #ruby
whowantstolivefo has quit [Quit: quit]
mercwithamouth has quit [Ping timeout: 246 seconds]
<MrZYX> it'll only update the local reference, but why not?
philcrissman has joined #ruby
<coffe> :)
blacktulip has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
s0ber_ has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
s0ber has quit [Ping timeout: 245 seconds]
s0ber_ is now known as s0ber
keymone has joined #ruby
LnL has quit [Quit: LnL]
wael has joined #ruby
chrishunt has joined #ruby
coffe has quit [Quit: Ex-Chat]
beneggett has quit [Quit: Computer has gone to sleep.]
bhaarat has joined #ruby
bhaarat has quit [Client Quit]
<apeiros> MrZYX: #clear would also work (coffe has gone :-S)
<apeiros> but unless there's a requirement for keeping the old array, I prefer your solution of creating a new one
LnL has joined #ruby
ciziar has quit [Quit: Computer has gone to sleep.]
r0bby is now known as robbyoconnor
wedgex has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
nomenkun has joined #ruby
vikhyat has quit [Remote host closed the connection]
sorbo_ has quit [Quit: sorbo_]
vikhyat has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
jeremywrowe has joined #ruby
jeremywrowe has quit [Changing host]
jeremywrowe has joined #ruby
MisterPostIT has joined #ruby
Ng|Adonixx8359 has quit [Ping timeout: 240 seconds]
nomenkun has quit [Ping timeout: 245 seconds]
kuzushi__ has joined #ruby
Ng|Adonixx8359 has joined #ruby
Ng|Adonixx8359 has quit [Changing host]
Ng|Adonixx8359 has joined #ruby
monkegjinni has joined #ruby
keymone has quit [Quit: keymone]
MisterPostIT has quit []
dougireton has joined #ruby
monkegji_ has quit [Ping timeout: 256 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
backjlack has quit [Read error: Connection reset by peer]
sean_s has quit [Quit: sean_s]
dougireton has quit [Client Quit]
alanp has quit [Read error: Connection reset by peer]
alanp has joined #ruby
alanp has quit [Read error: Connection reset by peer]
alanp has joined #ruby
dougireton has joined #ruby
<linusoleander> Isn't there a &&= that checks the right part of the expression?
Regis__ has joined #ruby
<linusoleander> Like: a = 10; a &&= nil # => a == 10
dv__ is now known as dv_
dougireton has quit [Client Quit]
<spider-mario> you mean a short equivalent to “a = b && a”?
subbyyy has joined #ruby
<spider-mario> hm, that wouldn’t give a=10, sorry
zodiak has joined #ruby
<linusoleander> b && a = b
<spider-mario> when is it equal to a, then?
<linusoleander> That would work, I read somewhere (~2 years ago) that a &&= 10 does the same thing
<linusoleander> But it sin't work
<linusoleander> *doesnt
GOMADWarrior has quit [Ping timeout: 264 seconds]
<linusoleander> Only set "a" if "b" isn't nil
<linusoleander> That is what I want to do, Ruby style
<MrZYX> a = b if b
<linusoleander> Then I've to repeat "b"
<spider-mario> a = b || a
ciziar has joined #ruby
<linusoleander> Then I*ve to repeat a instead :)
<MrZYX> it's a = nil; a &&= foo; a #=> nil
<MrZYX> like ||= it checks the left side
<spider-mario> repeating `a` is just repeating a variable name, it sure is less than optimal but it’s not like repeating a more complex expression
splittingred has quit [Quit: splittingred]
<linusoleander> MrZYX: Nope foo = nil; a = 1; a &&= foo; a => nil
cyberarm has quit [Remote host closed the connection]
<MrZYX> mkay, both sides then
<linusoleander> spider-mario: The problem is when you need to access a nested key in a hash
<spider-mario> oh, right.
nanothief_ has joined #ruby
<linusoleander> a[:a][:b][:c][:d]
nanothief has quit [Read error: Connection reset by peer]
<spider-mario> does ruby have anything like perl’s references?
<spider-mario> doesn’t look so
spider-mario has quit [Read error: Connection reset by peer]
pako2008 has quit []
codenapper has quit [Quit: Leaving...]
tchebb has quit [Read error: Connection reset by peer]
niceguyjames has quit [Quit: Computer has gone to sleep.]
nickbender has joined #ruby
<otters> fancy quotes
tevio has quit [Remote host closed the connection]
tchebb has joined #ruby
marcellu1 has joined #ruby
keymone has joined #ruby
danneu has joined #ruby
marcellu1 has quit [Client Quit]
arya has quit [Ping timeout: 276 seconds]
wael has quit [Quit: wael]
r0bby has joined #ruby
nickbender has quit [Ping timeout: 264 seconds]
pioz has joined #ruby
rton has left #ruby [#ruby]
pioz has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 248 seconds]
arya has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
r0bby is now known as robbyoconnor
pskosinski has quit [Quit: pskosinski]
<MrZYX> linusoleander: _ = b && a = _
arya has quit [Ping timeout: 260 seconds]
<linusoleander> MrZYX: Thanks!
Emmanuel_Chanel has joined #ruby
[eDu] has joined #ruby
keymone has quit [Quit: keymone]
Rym has joined #ruby
wedgex has joined #ruby
wmoxam has joined #ruby
Fuzai has joined #ruby
zodiak has quit [Quit: Leaving]
Hobogrammer_ has quit [Quit: さようなら]
<Fuzai> Why does !!0 = true ? Shouldn't it equal false if we usually consider 0 false?
SCommette has joined #ruby
<MrZYX> only false and nil are false in ruby, so !0 is true
<MrZYX> er, false
<MrZYX> since 0 is true
arya has joined #ruby
<Fuzai> ouch
wedgex has quit [Remote host closed the connection]
[eDu] has quit [Quit: [eDu]]
wedgex has joined #ruby
veinofstars_ has joined #ruby
wedgex has quit [Ping timeout: 245 seconds]
huoxito has joined #ruby
veinofstars has quit [Ping timeout: 258 seconds]
veinofstars_ is now known as veinofstars
iamvery has quit [Remote host closed the connection]
iamvery has joined #ruby
jeremywrowe has quit [Ping timeout: 246 seconds]
arya has quit [Ping timeout: 256 seconds]
monkegji_ has joined #ruby
Politoed_ is now known as Politoed
tenmilestereo has quit [Quit: Leaving]
monkegjinni has quit [Read error: Operation timed out]
nminus1 has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
jeremywrowe has joined #ruby
jeremywrowe has quit [Changing host]
jeremywrowe has joined #ruby
jbueza has quit [Quit: Leaving.]
nfk has quit [Quit: yawn]
arya has joined #ruby
rton has joined #ruby
iamvery has quit [Read error: Connection reset by peer]
iamvery has joined #ruby
wmoxam has quit [Ping timeout: 252 seconds]
fjfish has quit [Remote host closed the connection]
francisfish has joined #ruby
pcarrier has quit [Ping timeout: 252 seconds]
soulisson has joined #ruby
sailias has quit [Ping timeout: 258 seconds]
pcarrier has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
iamvery has quit [Ping timeout: 256 seconds]
schiang has quit [Ping timeout: 245 seconds]
francisfish has quit [Ping timeout: 256 seconds]
chrishunt has quit [Quit: ZzZzZz...]
Davey has joined #ruby
chrishunt has joined #ruby
xardas has quit [Remote host closed the connection]
arya has quit [Ping timeout: 251 seconds]
sambao21 has joined #ruby
cantonic has quit [Ping timeout: 264 seconds]
dougireton has joined #ruby
droppedonmyhead has joined #ruby
carlsednaoui has joined #ruby
carlsednaoui has quit [Client Quit]
carlsednaoui has joined #ruby
schiang has joined #ruby
xkickflip_ has joined #ruby
cantonic has joined #ruby
hamakn has quit [Remote host closed the connection]
bradhe has joined #ruby
brennanMKE has joined #ruby
tomsthumb has quit [Quit: Leaving.]
dougireton has quit [Quit: Leaving.]
johnnyfuchs has joined #ruby
v0n has quit [Read error: Connection reset by peer]
LennyLinux has quit [Remote host closed the connection]
nickbender has joined #ruby
nickbend1r has joined #ruby
soulisson has quit [Ping timeout: 258 seconds]
brennanMKE has quit [Ping timeout: 260 seconds]
nomenkun has joined #ruby
carlsednaoui has quit [Remote host closed the connection]
rton has left #ruby [#ruby]
chxane has joined #ruby
carloslopes has quit [Remote host closed the connection]
zigomir has quit [Ping timeout: 260 seconds]
nickbender has quit [Ping timeout: 258 seconds]
schiang has quit [Ping timeout: 245 seconds]
nickbend1r has quit [Ping timeout: 260 seconds]
brennanMKE has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
Liothen has joined #ruby
Liothen has joined #ruby
Liothen has quit [Remote host closed the connection]
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
SCommette has quit [Quit: SCommette]
pilojo has joined #ruby
lethjakm1 has joined #ruby
<pilojo> i'm trying to get regex to detect either an end of line, or an extra space, but i can't get it to detect one without being unable to detect the other
cooldman224 has quit [Remote host closed the connection]
<MrZYX> ($|\s) ?
<pilojo> ":pilojo!~pilojo@unaffiliated/pilojo66 PRIVMSG ##pilojo :~kick pilojo".sub(/.*:~(.*)\s+.*/, "\\1")
<pilojo> i have that so far
<pilojo> but when i add anything, it picks up "kick pilojo" instead of "kick"
threesome has quit [Ping timeout: 276 seconds]
ciziar has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
wreckimnaked has quit [Ping timeout: 260 seconds]
<MrZYX> >> ":pilojo!~pilojo@unaffiliated/pilojo66 PRIVMSG ##pilojo :~kick pilojo ".sub(/.*:~(.*)\s+.*(\s|$)/, "\\1")
<eval-in> MrZYX => "kick pilojo" (http://eval.in/17048)
lahwran is now known as lahwran-
lahwran- is now known as lahwran
atno has joined #ruby
<MrZYX> hm
<MrZYX> >> ":pilojo!~pilojo@unaffiliated/pilojo66 PRIVMSG ##pilojo :~kick pilojo".sub(/.+:~(\w+)\s+.+(\s|$)/, "\\1")
<eval-in> MrZYX => "kick" (http://eval.in/17049)
himsin has quit [Ping timeout: 256 seconds]
hadees has joined #ruby
<pilojo> that looks like it works, thanks
himsin has joined #ruby
<MrZYX> in general I'd try to do regexes that, in doubt, are too strict than too open
<pilojo> MrZYX: still doesn't work with the extra space
Xeago has quit [Remote host closed the connection]
<MrZYX> where's the extra space?
v0n has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
<pilojo> oh, nevermind i see
kofno has joined #ruby
LongLiveBacon has quit [Ping timeout: 252 seconds]
lethjakman has joined #ruby
wreckimnaked has joined #ruby
carlsednaoui has joined #ruby
benlieb has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
iamvery has joined #ruby
lethjakm1 has quit [Ping timeout: 276 seconds]
busybox42 has joined #ruby
wreckimnaked has quit [Ping timeout: 252 seconds]
<pilojo> MrZYX: there's an odd error with that regex... ":pilojo!~pilojo@unaffiliated/pilojo66 PRIVMSG ##pilojo :~kick pilojo asdfa".sub(/.+:~(\w+)\s?.+(\s|$).*/, "\\1") ends up giving me asdfa
dougireton has joined #ruby
<MrZYX> >> ":pilojo!~pilojo@unaffiliated/pilojo66 PRIVMSG ##pilojo :~kick pilojo asdfa".sub(/.+:~(\w+)\s?.+(\s|$).*/, "\\1")
<eval-in> MrZYX => "kick" (http://eval.in/17051)
wmoxam has joined #ruby
JesseH has joined #ruby
<pilojo> O.o
carlsednaoui has quit [Remote host closed the connection]
<JesseH> Indeed.
<pilojo> MrZYX: is eval running 2.0 or 1.9?
<MrZYX> 2.0
iamvery has quit [Ping timeout: 264 seconds]
<MrZYX> 19>> ":pilojo!~pilojo@unaffiliated/pilojo66 PRIVMSG ##pilojo :~kick pilojo asdfa".sub(/.+:~(\w+)\s?.+(\s|$).*/, "\\1")
<eval-in> MrZYX => "kick" (http://eval.in/17052)
dougireton1 has joined #ruby
<pilojo> this is odd
dougireton1 has quit [Read error: Connection reset by peer]
dougireton2 has joined #ruby
carlsednaoui has joined #ruby
dougireton2 has quit [Read error: Connection reset by peer]
dougireton1 has joined #ruby
<pilojo> oh, i was reading the wrong output, nevermind, it works correctly
dougireton1 has quit [Read error: Connection reset by peer]
nickbender has joined #ruby
nickbend1r has joined #ruby
dougireton1 has joined #ruby
dougireton has quit [Ping timeout: 264 seconds]
dougireton1 has quit [Read error: Connection reset by peer]
dougireton has joined #ruby
LongLiveBacon has joined #ruby
r0bby has joined #ruby
randomautomator has joined #ruby
pilojo has left #ruby ["Leaving"]
robbyoconnor has quit [Ping timeout: 240 seconds]
arya has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
cantonic has quit [Ping timeout: 255 seconds]
bitZero_1 has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
bitZero__ has quit [Ping timeout: 264 seconds]
monkegji_ has quit [Remote host closed the connection]
nomenkun has joined #ruby
jacktrick has quit [Quit: Leaving]
randomautomator has joined #ruby
s2013 has joined #ruby
brennanMKE has quit [Remote host closed the connection]
soulisson has joined #ruby
soulisson has quit [Client Quit]
dougireton has quit [Ping timeout: 264 seconds]
s2013_ has joined #ruby
chessguy has joined #ruby
nickbend1r has quit [Ping timeout: 252 seconds]
nickbender has quit [Ping timeout: 256 seconds]
predator217 has joined #ruby
arya has quit [Ping timeout: 256 seconds]
randomautomator has quit [Read error: Connection reset by peer]
arya has joined #ruby
carlsednaoui has quit [Remote host closed the connection]
r0bby is now known as robbyoconnor
predator117 has quit [Ping timeout: 276 seconds]
nomenkun has quit [Ping timeout: 256 seconds]
s2013 has quit [Ping timeout: 264 seconds]
s2013_ has quit [Ping timeout: 252 seconds]
LongLiveBacon has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
kofno has quit [Remote host closed the connection]
dyeske_ has quit [Read error: Connection reset by peer]