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
user_ has joined #ruby
user_ is now known as asym
hakunin has joined #ruby
cheese1756 has quit [Quit: ZNC - http://znc.in]
mrsolo has quit [Quit: Leaving]
osvico has joined #ruby
wesside_ has quit [Quit: Ice cream truck!]
<asym> (1.8.7) I'm using catch(:sym){ .. }/throw for control flow, and i'm having a dilemma: the throw turns into a SystemError saying 'uncaught throw `sym' in thread..'', but if you look at the stack trace, the catch(:sym) { .. } is on the stack trace before this exception.. what can be causing ruby to not see the correct catch()?
idkazuma has joined #ruby
Nisstyre-laptop has joined #ruby
<asym> ah hm, to answer my own question, i appear to be throwing :sym from a different thread, but me wrapping it with begin/rescue does not percolate the throw to the main thread
Virunga has quit [Remote host closed the connection]
<Boohbah> 1.8.7? you're living in the past, man :P
<asym> Boohbah: sigh, tell me about it. (this proj needs to have minimal dependencies on stock os x)
wmoxam has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
daniel_- has quit [Quit: WeeChat 0.4.0]
wesside_ has joined #ruby
wesside_ has quit [Client Quit]
<Boohbah> os x? you're living in the walled garden, man :P
jzig has joined #ruby
<asym> Boohbah: meh, it's a walled garden of my chosing :) it's cozy here
wargasm has quit [Read error: Connection reset by peer]
dayepa1 has joined #ruby
dayepa has quit [Ping timeout: 258 seconds]
freerobby has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
tealmage has quit [Remote host closed the connection]
tspike has quit [Ping timeout: 248 seconds]
jbueza has joined #ruby
estan has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
Kricir has joined #ruby
tylersmith has joined #ruby
Kruppe has quit [Remote host closed the connection]
klaas- has joined #ruby
shadoi1 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
atyz has joined #ruby
GeissT has joined #ruby
Heero` has quit [Ping timeout: 246 seconds]
backjlack_ has joined #ruby
backjlack_ has quit [Remote host closed the connection]
JMcAfreak has quit [Quit: Leaving]
x13378071 has joined #ruby
Kudos has quit [Ping timeout: 264 seconds]
TheFuzzball has quit [Ping timeout: 264 seconds]
strax has quit [Ping timeout: 264 seconds]
shadoi has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit:]
yellow5 has quit [Quit: time to go!]
yacks has quit [Ping timeout: 264 seconds]
Guest85414 has quit [Ping timeout: 264 seconds]
x1337807x has quit [Ping timeout: 264 seconds]
yellow5_ has joined #ruby
backjlack has quit [Ping timeout: 264 seconds]
FunkySayu has quit [Ping timeout: 264 seconds]
ejnahc__ has quit [Ping timeout: 264 seconds]
im0b has quit [Ping timeout: 264 seconds]
klaas has quit [Ping timeout: 264 seconds]
lupine has quit [Ping timeout: 264 seconds]
DefV has quit [Ping timeout: 264 seconds]
DefV has joined #ruby
FunkySayu has joined #ruby
yellow5_ is now known as yellow5
yacks has joined #ruby
lambsread has quit [Read error: Connection reset by peer]
lupine has joined #ruby
ejnahc_ has joined #ruby
estan has joined #ruby
Kudos has joined #ruby
Kricir has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has joined #ruby
TheFuzzball has joined #ruby
mr0wl has quit [Quit: leaving]
vlad_starkov has joined #ruby
jbueza has quit [Quit: Leaving.]
tspike has joined #ruby
atyz has quit [Ping timeout: 248 seconds]
asym has quit [Read error: Operation timed out]
cheese1756 has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
wsterling has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
hogeo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ZachBeta has joined #ruby
__eka__ has joined #ruby
eka has quit [Ping timeout: 256 seconds]
Z_Mass has quit [Quit: Leaving]
idkazuma has quit [Remote host closed the connection]
ephemerian has left #ruby [#ruby]
tealmage has joined #ruby
wsterling has quit [Ping timeout: 256 seconds]
reset has joined #ruby
yshh has joined #ruby
girija has quit [Ping timeout: 264 seconds]
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
synthetix has quit [Ping timeout: 248 seconds]
newTech has quit [Quit: newTech]
evenix has joined #ruby
jblack has quit [Ping timeout: 268 seconds]
<yoshie902a> I am using "require './mycode'" in IRB, but I keep changing it and needing to re-require it, but it fails the second time. I tried "load './mycode'" but that gives me a load error:cannot load such file. how to I re-require my file?
emmanuelux has quit [Ping timeout: 246 seconds]
yshh has quit [Remote host closed the connection]
rakl has joined #ruby
tealmage has quit [Ping timeout: 268 seconds]
bradhe has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
newTech has joined #ruby
rupee has quit [Quit: Leaving]
d2dchat has joined #ruby
evenix has quit [Ping timeout: 248 seconds]
spalenza has quit [Remote host closed the connection]
endorphine has joined #ruby
jbueza has joined #ruby
emmanuelux has joined #ruby
estan has quit [Read error: Connection reset by peer]
endorphine has left #ruby [#ruby]
spalenza has joined #ruby
icole has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
ckrailo has joined #ruby
slippyd has joined #ruby
slainer68 has quit [Remote host closed the connection]
aspro has joined #ruby
codemonkey010101 has joined #ruby
tommyvyo has joined #ruby
emmanuelux has quit [Read error: Operation timed out]
malte_ has quit [Quit: malte_]
<gf3> yosafbridge: You exit and re-open IRB
tspike has quit [Ping timeout: 255 seconds]
<gf3> er yoshie902a ↑
aspro has quit [Client Quit]
aspro has joined #ruby
yoshie902a has left #ruby [#ruby]
<gf3> You could use `load` but things get tricky
DerBoki has quit []
predator217 has quit [Ping timeout: 256 seconds]
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
Yakko_ has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
mixel has quit [Quit: mixel]
estan has joined #ruby
dmiller_ has quit [Remote host closed the connection]
emmanuelux has joined #ruby
dmiller has joined #ruby
yakko has quit [Ping timeout: 255 seconds]
dmiller has quit [Read error: Connection reset by peer]
<banister`sleep> yosafbridge: use pry and the reload-code command
dmiller has joined #ruby
lyanchih has joined #ruby
mklappstuhl has joined #ruby
jbueza has quit [Quit: Leaving.]
Ontolog has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
adac has quit [Ping timeout: 258 seconds]
jbueza has joined #ruby
Guest85127 is now known as ixx
dmiller has quit [Read error: Operation timed out]
graydot has quit [Quit: graydot]
d11wtq has joined #ruby
brianpWins has quit [Quit: brianpWins]
blf has joined #ruby
niklasb has quit [Ping timeout: 258 seconds]
reset has joined #ruby
mmitchell has joined #ruby
banjara has quit [Quit: Leaving.]
<blf> Hey guys, I'm wondering if anyone has any tips regarding the testing of a class which acts as a File? (a subclass of File). For instance, how would I go about testing that I can read and return the appropriate data from the file?
arya has joined #ruby
<blf> That is, I'd like to provide a class which reads a logical "record" from a file, rather than a line. And I'd like to somehow write a testcase which exercises the ability of this class to parse and return an appropriate record.
c0rn has quit [Quit: Computer has gone to sleep.]
Voodoofish430 has quit [Quit: Leaving.]
rakl has quit [Quit: sleeping]
Proshot has quit [Quit: Leaving]
wmoxam has quit [Ping timeout: 256 seconds]
jbueza has quit [Quit: Leaving.]
Hanmac1 has quit [Ping timeout: 246 seconds]
t_p has quit [Quit: Computer has gone to sleep.]
MarcWeber has left #ruby [#ruby]
codemonkey010101 has quit [Ping timeout: 252 seconds]
emmanuelux has quit [Quit: emmanuelux]
jbueza has joined #ruby
banghous_ has joined #ruby
emmanuelux has joined #ruby
falood has joined #ruby
freerobby has joined #ruby
ozzloy has quit [Ping timeout: 245 seconds]
robottinosino has joined #ruby
yshh has joined #ruby
estan has quit [Read error: Connection reset by peer]
banghouse has quit [Ping timeout: 264 seconds]
zph has joined #ruby
zph has quit [Excess Flood]
pilojo has joined #ruby
<pilojo> how would i insert a variable into regex?
miroatme_ has joined #ruby
dissi has joined #ruby
dissi has left #ruby [#ruby]
lupinstein has joined #ruby
gyre007 has joined #ruby
kofno has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
__eka__ has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
vertroa has quit [Quit: WeeChat 0.3.9.2]
vertroa has joined #ruby
vertroa has quit [Client Quit]
dmiller has joined #ruby
vertroa has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
miroatme_ has quit [Ping timeout: 256 seconds]
spalenza has quit [Remote host closed the connection]
io_syl has quit [Ping timeout: 268 seconds]
ARCADIVS has joined #ruby
atyz has joined #ruby
pilojo has left #ruby ["Leaving"]
reset has quit [Quit: Leaving...]
tvw has quit [Ping timeout: 272 seconds]
Hanmac1 has joined #ruby
ner0x has quit [Quit: Leaving]
sailias has joined #ruby
vlad_starkov has joined #ruby
atyz has quit [Ping timeout: 248 seconds]
estan has joined #ruby
codemonkey010101 has joined #ruby
_cheney is now known as _cheney-home
wmoxam has joined #ruby
_cheney-home is now known as _cheney-
tealmage has joined #ruby
pevjan has quit [Remote host closed the connection]
jbueza has quit [Quit: Leaving.]
nga4 has quit [Ping timeout: 256 seconds]
tjbiddle_ has joined #ruby
mikepack has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 260 seconds]
ehaliewicz has joined #ruby
iMadper is now known as dmesg
jetblack has joined #ruby
dmesg is now known as lshw
jdunck has quit [Quit: Computer has gone to sleep.]
jduan1981 has quit [Ping timeout: 264 seconds]
headius has quit [Quit: headius]
aspro has left #ruby [#ruby]
johnjohnson has quit [Quit: johnjohnson]
tjbiddle has quit [Ping timeout: 258 seconds]
tjbiddle_ is now known as tjbiddle
senayar has quit [Ping timeout: 248 seconds]
graydot has joined #ruby
jbueza has joined #ruby
dankest has quit [Quit: Leaving...]
twoism has quit [Remote host closed the connection]
bricker`LA has joined #ruby
rakl has joined #ruby
thomasle_ has quit [Remote host closed the connection]
nhhagen_ has joined #ruby
mahmoudimus has joined #ruby
jbueza1 has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
mklappstuhl has quit [Remote host closed the connection]
jbueza has quit [Read error: Connection reset by peer]
ericmathison has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
nick6725 has joined #ruby
pevjan has joined #ruby
tommyvyo has quit [Quit:]
<nick6725> hello
<nick6725> I have a question.
ericmath1son has joined #ruby
estan has quit [Read error: Connection reset by peer]
nhhagen_ has quit [Ping timeout: 255 seconds]
Domon has joined #ruby
robottinosino has quit [Quit: WeeChat 0.4.0]
Z_Mass has joined #ruby
Kricir has quit [Remote host closed the connection]
jlast has joined #ruby
sailias has quit [Ping timeout: 248 seconds]
shadoi1 has left #ruby [#ruby]
rodayo has joined #ruby
Kricir has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
arya_ has joined #ruby
ttt has joined #ruby
d2dchat has quit [Remote host closed the connection]
arya has quit [Ping timeout: 245 seconds]
mmitchell has quit [Remote host closed the connection]
<rodayo> Per chance does anyone know how to make URI::decode_www_form_component work with encodings that have 4 digits. I.e. %253D
mmitchell has joined #ruby
jnoob22 has quit [Remote host closed the connection]
reset has joined #ruby
<banister`sleep> Per chance.
estan has joined #ruby
mmitchell has quit [Ping timeout: 252 seconds]
sleetdrop has joined #ruby
jamesfung14 has joined #ruby
codemonkey010101 has quit [Ping timeout: 268 seconds]
dmiller has quit [Remote host closed the connection]
markalanevans has quit [Ping timeout: 264 seconds]
sailias has joined #ruby
Nisstyre-laptop has joined #ruby
Ortuna has joined #ruby
arubin has joined #ruby
<rodayo> Here's a bigger piece: '%2526sver%253D3%2526ipbits%253D8' - it came from a GET request to youtube's get_video_info API. The content-type is 'application/x-www-form-urlencoded' but I can't figure out what kind of encoding is producing the 4-digit hex nums. Lazily I can ignore the upper 2 (which are always 25) but was looking for a non-hacky approach.
ZachBeta has joined #ruby
gyre007 has quit [Remote host closed the connection]
headius has joined #ruby
<rodayo> Aha! I see what's happening. decoding it twice as utf-8 does the job. All the %25s are '%' chars.
nga4 has joined #ruby
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
bigkm has quit [Quit: Computer has gone to sleep.]
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
jimg has quit []
dmiller has joined #ruby
dmiller_ has joined #ruby
dmiller_ has quit [Remote host closed the connection]
ossareh has quit [Ping timeout: 255 seconds]
dmiller_ has joined #ruby
Nautes has quit [Quit: Leaving]
wmoxam has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
robustus has quit [Ping timeout: 248 seconds]
estan has quit [Read error: Connection reset by peer]
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
robustus has joined #ruby
rickmasta has quit [Quit: Leaving...]
Nisstyre-laptop has quit [Quit: Leaving]
centr0 has joined #ruby
bricker`1A has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
jovy88 has quit [Read error: Connection reset by peer]
tspike has joined #ruby
jovy88 has joined #ruby
jeebster has quit [Quit: Leaving.]
a_a_g has joined #ruby
arya has joined #ruby
bricker`LA has quit [Ping timeout: 260 seconds]
strax has joined #ruby
arya_ has joined #ruby
im0b has joined #ruby
markalanevans has joined #ruby
atyz has joined #ruby
Guest85414 has joined #ruby
pevjan has quit [Remote host closed the connection]
jbueza1 has quit [Quit: Leaving.]
tylersmith has quit [Remote host closed the connection]
blf has quit [Quit: Page closed]
arya has quit [Ping timeout: 248 seconds]
tylersmith has joined #ruby
robbyoconnor has joined #ruby
vlad_starkov has joined #ruby
mahmoudi_ has joined #ruby
estan has joined #ruby
ericmathison has quit [Ping timeout: 246 seconds]
ericmath1son has quit [Ping timeout: 246 seconds]
krz has joined #ruby
atyz has quit [Ping timeout: 248 seconds]
zeade has joined #ruby
mahmoudimus has quit [Ping timeout: 260 seconds]
<nick6725> hey, I need some help with something, I am trying to make a simple AI that I can teach to respond to certian input... but I keep getting errors, and I don't know why.
joofsh has joined #ruby
browndawg has joined #ruby
<nick6725> To see the source go to notepub.com and log in as "programruby" with the password "password". Feel free to use that to post anything. It updates as you save what you type, so...
markalanevans has quit [Read error: Connection reset by peer]
pskosinski has quit [Quit: pskosinski]
nick6725 has quit [Quit: nick6725]
vlad_starkov has quit [Ping timeout: 255 seconds]
nick6725 has joined #ruby
tjbiddle has joined #ruby
codemonkey010101 has joined #ruby
chipotle_ has joined #ruby
<nick6725> Can anyone help? or just make a new file in the notepub with a corrected version of the source?
wmoxam has joined #ruby
ariedler has joined #ruby
bigkm has joined #ruby
freeayu has joined #ruby
nick6725 has quit [Client Quit]
bricker`LA has joined #ruby
bricker`1A has quit [Ping timeout: 276 seconds]
io_syl has joined #ruby
tundrax has joined #ruby
rodayo has quit [Quit: Page closed]
io_syl has quit [Client Quit]
<arubin> Spam?
mattbl has joined #ruby
bricker`LA has quit [Quit: leaving]
tspike has quit [Ping timeout: 256 seconds]
estan has quit [Read error: Operation timed out]
jlast has quit [Remote host closed the connection]
cooldman224 has quit [Remote host closed the connection]
mahmoudi_ is now known as mahmoudimus
Targen has quit [Ping timeout: 268 seconds]
chipotle_ has quit [Quit: cya]
chipotle_ has joined #ruby
chipotle_ has quit [Client Quit]
dankest has joined #ruby
yannis has quit [Quit: yannis]
chrishunt has quit [Quit: ZzZzZz...]
emmanuelux has quit [Quit: emmanuelux]
chrishunt has joined #ruby
jbueza has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
Asher1 has quit [Quit: Leaving.]
mattbl has quit [Quit: This computer has gone to sleep]
jhn has joined #ruby
Kricir has quit [Remote host closed the connection]
mattbl has joined #ruby
estan has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
mattbl has quit [Client Quit]
codemonkey010101 has quit [Ping timeout: 252 seconds]
pevjan has joined #ruby
tyl has quit [Quit: Computer has gone to sleep.]
piisalie has quit [Quit: leaving]
jzig has quit [Ping timeout: 260 seconds]
baba has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
arya_ has quit [Ping timeout: 252 seconds]
phantasm66 has quit [Quit: *poof*]
pkrnj has quit [Ping timeout: 255 seconds]
megha has quit [Ping timeout: 255 seconds]
baroquebobcat has joined #ruby
Leighton has quit [Quit: Leaving]
browndawg has quit [Quit: Leaving.]
sambao21 has joined #ruby
chrishunt has joined #ruby
pkrnj has joined #ruby
akhet has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
akhet has quit [Remote host closed the connection]
mmitchell has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
Asdasd has quit [Ping timeout: 252 seconds]
ariedler has quit [Remote host closed the connection]
Heero has joined #ruby
mattbl has joined #ruby
mmitchell has quit [Ping timeout: 252 seconds]
jmccune has quit [Quit: ZNC - http://znc.in]
newUser1234 has quit [Remote host closed the connection]
mattbl has quit [Client Quit]
blandflakes_ has joined #ruby
blandflakes_ has quit [Client Quit]
estan has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
pcarrier has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
alexgordon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
miroatme_ has joined #ruby
joofsh has quit [Remote host closed the connection]
pcarrier has joined #ruby
predator117 has joined #ruby
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
Nisstyre-laptop has joined #ruby
miroatme_ has quit [Ping timeout: 245 seconds]
reset has quit [Ping timeout: 276 seconds]
codemonkey010101 has joined #ruby
Palantir has joined #ruby
atyz has joined #ruby
ozzloy has quit [Read error: Operation timed out]
Kricir has joined #ruby
estan has joined #ruby
arya has joined #ruby
josedonizetti has joined #ruby
vlad_starkov has joined #ruby
nwertman_ has joined #ruby
atyz has quit [Ping timeout: 248 seconds]
lshw is now known as iOpera
iOpera is now known as iMadper
vlad_starkov has quit [Ping timeout: 252 seconds]
Kricir has quit [Ping timeout: 248 seconds]
mattbl has joined #ruby
sandGorgon has joined #ruby
sailias has quit [Quit: Leaving.]
codemonkey010101 has quit [Ping timeout: 248 seconds]
bubblehead has quit [Remote host closed the connection]
malkomalko has joined #ruby
bubblehead has joined #ruby
miroatme_ has joined #ruby
SeySayux has quit [Ping timeout: 264 seconds]
headius has quit [Quit: headius]
Villadelfia has quit [Ping timeout: 258 seconds]
cheese1756 has quit [Ping timeout: 248 seconds]
Villadelfia has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
lunarjar has quit [Ping timeout: 264 seconds]
lunarjar has joined #ruby
SeySayux has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
iMadper is now known as onlylova
onlylova is now known as iMadper
Bry8Star_ has joined #ruby
braincra- has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
estan has quit [Read error: Connection reset by peer]
a_a_g has quit [Quit: This computer has gone to sleep]
Bry8Star has quit [Ping timeout: 276 seconds]
cyberarm has quit [Quit: Bye]
akashj87 has joined #ruby
pevjan has quit [Remote host closed the connection]
cheese1756 has joined #ruby
pevjan has joined #ruby
_cheney-2 has joined #ruby
braincrash has quit [Ping timeout: 252 seconds]
_cheney- has quit [Ping timeout: 272 seconds]
jovy88 has quit [Read error: Connection reset by peer]
matt_ has joined #ruby
matt_ is now known as Guest22806
Guest22806 has left #ruby [#ruby]
headius has joined #ruby
jovy88 has joined #ruby
emergion has joined #ruby
jzig has joined #ruby
SeriousMatters has quit [Remote host closed the connection]
centr0 has quit [Quit: centr0]
twoism has joined #ruby
EPIK has quit [Ping timeout: 245 seconds]
twoism has quit [Remote host closed the connection]
ckrailo has joined #ruby
twoism has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
kil0byte_ has joined #ruby
rakl has quit [Quit: sleeping]
splittingred has quit [Quit: splittingred]
jlast has joined #ruby
estan has joined #ruby
josedonizetti has quit [Quit: josedonizetti]
arya has quit [Ping timeout: 268 seconds]
tommyvyo has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
pcarrier has quit [Read error: Operation timed out]
tundrax has quit [Remote host closed the connection]
seoaqua has joined #ruby
johnnyfuchs has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
kil0byte has joined #ruby
nwertman_ has quit [Ping timeout: 248 seconds]
girija has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
kil0byte_ has quit [Ping timeout: 245 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
malkomalko has quit [Remote host closed the connection]
jduan1981 has joined #ruby
decentrality has quit [Quit: decentrality]
Davey has joined #ruby
mattbl has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
johchri has joined #ruby
chandankumar has joined #ruby
estan has quit [Read error: Connection reset by peer]
Bry8Star_ is now known as Bry8Star
sambao21 has quit [Quit: Computer has gone to sleep.]
pcarrier has joined #ruby
freerobby has joined #ruby
tealmage has quit [Remote host closed the connection]
bigkm has quit [Quit: Computer has gone to sleep.]
lunarjar has quit [Ping timeout: 252 seconds]
yannis has joined #ruby
yannis has quit [Client Quit]
lyanchih has quit [Quit: lyanchih]
a_a_g has joined #ruby
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
rakl has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
bean has joined #ruby
rakl has quit [Client Quit]
RastaqWhere has joined #ruby
tommyvyo has quit [Quit:]
pevjan has quit [Remote host closed the connection]
atyz has joined #ruby
sandGorgon has quit [Ping timeout: 248 seconds]
estan has joined #ruby
lunarjar has joined #ruby
tundrax has joined #ruby
Kricir has joined #ruby
vlad_starkov has joined #ruby
RastaqWhere has left #ruby [#ruby]
kofno has quit [Remote host closed the connection]
pithagorians has joined #ruby
atyz has quit [Ping timeout: 248 seconds]
pevjan has joined #ruby
bricker`LA has joined #ruby
Palantir has quit [Remote host closed the connection]
bigkm has joined #ruby
wmoxam has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
banghous_ has quit [Remote host closed the connection]
kofno has joined #ruby
ananthakumaran has joined #ruby
jamesfung14 has quit [Ping timeout: 248 seconds]
jbueza has quit [Quit: Leaving.]
bigkm has quit [Client Quit]
bigkm has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
jzig has quit [Ping timeout: 252 seconds]
Spami has quit [Client Quit]
afd__ has quit [Ping timeout: 252 seconds]
johchri has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jzig has joined #ruby
santana has joined #ruby
estan has quit [Read error: Connection reset by peer]
afd__ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
sandGorgon has joined #ruby
_cheney- has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
browndawg has joined #ruby
browndawg has quit [Client Quit]
falood has quit [Remote host closed the connection]
arya has joined #ruby
falood has joined #ruby
headius has quit [Quit: headius]
bricker`LA has quit [Read error: Connection reset by peer]
<bijumon> hi anyone use RedCarpet here, I'm passing the option :prettify => true to the renderer, but it wont put class="prettyprint into the <pre> or <code> html, https://gist.github.com/bijumon/5538238
_cheney-2 has quit [Ping timeout: 276 seconds]
bigkm has joined #ruby
jaybe has quit [Quit: break(Z);]
jaybe has joined #ruby
jaybe has quit [Client Quit]
jaybe has joined #ruby
tonini has joined #ruby
robscomputer has joined #ruby
Domon has quit [Remote host closed the connection]
Z_Mass has quit [Quit: Leaving]
johchri has joined #ruby
lunarjar has quit [Ping timeout: 252 seconds]
wesside has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
estan has joined #ruby
wesside has joined #ruby
wmoxam has quit [Ping timeout: 246 seconds]
ehaliewicz has quit [Read error: No route to host]
jbueza has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
kofno has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 248 seconds]
tealmage has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Quit: Leaving.]
lunarjar has joined #ruby
blf has joined #ruby
davetherat has quit [Remote host closed the connection]
<blf> Is there a standard ruby way to determine if an IO stream has been opened for reading? I'm currently calling stat, however it's being displayed as a set of 7 values like so: mode=0100644. I'm not sure what the 3 most significant values represent. (644, however, is the correct mode as the file was opened for reading).
davetherat has joined #ruby
lyanchih has joined #ruby
mattbl has joined #ruby
timonv has joined #ruby
Hien has quit [Ping timeout: 258 seconds]
Spami has joined #ruby
arya_ has joined #ruby
estan has quit [Read error: Connection reset by peer]
theEXA has joined #ruby
theEXA has quit [Excess Flood]
arya has quit [Ping timeout: 248 seconds]
blf has quit [Quit: Page closed]
speakingcode has joined #ruby
dmiller_ has quit [Remote host closed the connection]
<speakingcode> hello i am having trouble isntalling the sinatra-contrib gem. i get an error : failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb but i am using ruby 1.9.3p0
freerobby has joined #ruby
joofsh has joined #ruby
<speakingcode> it alo gives the error /usr/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file.
<speakingcode> can anyone give me a hand? this is when i run gem install sinatra-contrib. sinatra installed just fine
johchri has quit [Quit: Textual IRC Client: www.textualapp.com]
rakl has joined #ruby
<Hanmac> speakingcode: 1.9.1 is the api version
<speakingcode> so i need to downgrade ruby?
freerobby has quit [Ping timeout: 252 seconds]
joofsh has quit [Ping timeout: 248 seconds]
<Hanmac> nO ... 1.9.3 is the ABI version but 1.9.1 is the API version
codecop has joined #ruby
<Hanmac> speakingcode: does there is an mkmf.log file in the installed path? or something like that?
bradhe has joined #ruby
<speakingcode> there is /var/lib/gems/1.9.1/gems/eventmachine-1.0.3/ext/gem_make.out
estan has joined #ruby
passtrout is now known as passcod
ananthakumaran has joined #ruby
<speakingcode> it has the same long error message n stack dump
atyz has joined #ruby
<speakingcode> "could not create makefule due to some reason, probably lack of necessary libraries and/or headers. check the mkmf.log file for more deatails" yadd yadda
Hien has joined #ruby
santana has quit [Quit: Saliendo]
girija has quit [Ping timeout: 246 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
vlad_starkov has joined #ruby
akashj87_ has joined #ruby
jzig has quit [Ping timeout: 276 seconds]
<speakingcode> Hanmac: yeah i fud mkmf.log
<speakingcode> found*
decentrality has joined #ruby
<speakingcode> how do i fix? i hate ubuntu. never have this kind of problem on other distros
Hien has quit [Read error: Operation timed out]
atyz has quit [Ping timeout: 260 seconds]
<Hanmac> speakingcode: make me a pastie of the mkmf file
icole has joined #ruby
<Hanmac> hm and the gem_make.out too
arietis has joined #ruby
sandGorgon has quit [Ping timeout: 245 seconds]
akashj87 has quit [Ping timeout: 245 seconds]
hamakn has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 248 seconds]
hamakn has joined #ruby
Hien has joined #ruby
tylersmith has quit [Remote host closed the connection]
akash__ has joined #ruby
marcdel has joined #ruby
akashj87_ has quit [Ping timeout: 245 seconds]
<speakingcode> Hanmac: ^^
Hanmac2 has joined #ruby
<Hanmac2> speakingcode: "package configuration for openssl is not found" you need the libopenssl-dev package
notVert has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
<speakingcode> already isntalled
<Hanmac2> speakingcode: and when you install, install build-essentials too
arya_ has quit [Ping timeout: 276 seconds]
<Hanmac2> hm is the ruby-dev or the ruby-full package installed too?
estan has quit [Read error: Connection reset by peer]
<speakingcode> i'm trying with rvm now
<speakingcode> still fails
<speakingcode> even with build essential and libssl-dev
rton has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
girija has joined #ruby
tagrudev has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
akash__ has quit [Quit: Leaving]
dmiller has joined #ruby
jbueza has quit [Quit: Leaving.]
arya has joined #ruby
mattbl has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
akashj87 has joined #ruby
timonv has quit [Remote host closed the connection]
girija has quit [Ping timeout: 248 seconds]
<speakingcode> running rvm install 1.9.3-dev now
<speakingcode> taking some time but i'l try again after that
falood has quit [Remote host closed the connection]
estan has joined #ruby
JohnBat26 has joined #ruby
blahfish has joined #ruby
filipe_ has joined #ruby
<blahfish> hi guys, im looking to use mysql with ruby over SSL. Currently im using the ruby-mysql2 package. I cant find documentation that shows how I can do this. Could someone point me to some sample code/documentation?
brandon has quit [Read error: Connection reset by peer]
<blahfish> thanks!
<speakingcode> blahfish i'm not sure activerecord supports mysql but have you considered that or another orm?
dmiller has quit [Ping timeout: 245 seconds]
jzig has joined #ruby
<blahfish> no but im open to other suggestions for ORM, do you have any suggestions in mind?
<blahfish> speakingcode: ^^
tyl has joined #ruby
brandon has joined #ruby
<speakingcode> activerecord if it supports mysql
<speakingcode> i've used it with postrgres to much delight
filipe has quit [Ping timeout: 260 seconds]
<blahfish> I see
chenqsui has joined #ruby
<blahfish> thank you speakingcode !
Heero has quit [Ping timeout: 252 seconds]
<speakingcode> Hanmac2: got it
tundrax has quit [Remote host closed the connection]
<speakingcode> just suddenly worked
<speakingcode> dunno how
girija has joined #ruby
jenrzzz has quit [Quit: leaving]
tylersmith has joined #ruby
tundrax has joined #ruby
philcrissman has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
krainboltgreene has quit [Quit: krainboltgreene]
Domon has joined #ruby
estan has quit [Read error: Operation timed out]
bradhe has quit [Remote host closed the connection]
headius has joined #ruby
philcrissman has joined #ruby
aganov has joined #ruby
tylersmith has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 256 seconds]
pithagorians has quit [Ping timeout: 246 seconds]
mockra has quit [Remote host closed the connection]
andikr has joined #ruby
philcrissman has quit [Remote host closed the connection]
freerobby has joined #ruby
estan has joined #ruby
Bosox20051 has joined #ruby
Hanmac2 has quit [Ping timeout: 248 seconds]
newTech has quit [Quit: newTech]
ckrailo has quit [Quit: Computer has gone to sleep.]
jduan1981 has quit [Quit: jduan1981]
sandGorgon has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
darkapex has quit [Ping timeout: 256 seconds]
DementedInsanity has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
atyz has joined #ruby
waxjar has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
newTech has joined #ruby
daniel_hinojosa has quit [Ping timeout: 260 seconds]
qubit has quit [Ping timeout: 245 seconds]
atyz has quit [Ping timeout: 256 seconds]
robscomputer has quit [Remote host closed the connection]
robscomputer has joined #ruby
waxjar has joined #ruby
vlad_starkov has quit [Ping timeout: 255 seconds]
darkapex has joined #ruby
aedornm has joined #ruby
d11wtq has quit [Ping timeout: 264 seconds]
Gooder has joined #ruby
tchebb has quit [Ping timeout: 258 seconds]
visof has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
estan has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
tylersmith has quit [Ping timeout: 256 seconds]
lyanchih has quit [Quit: lyanchih]
zeade has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 276 seconds]
mmozuras has joined #ruby
brtdv has joined #ruby
brianpWins has joined #ruby
Hanmac has joined #ruby
emanon_ has joined #ruby
jzig has quit [Ping timeout: 256 seconds]
kobain has quit []
tchebb has joined #ruby
foofoobar has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
blahfish has quit [Quit: Page closed]
mmozuras has quit [Ping timeout: 264 seconds]
jovy88 has joined #ruby
<foofoobar> Hi. How can I do a regular expression replace for a string to replace all from (a-z) to \a \b … \z ? (I want to append a backslash before each matched character
estan has joined #ruby
persand has joined #ruby
dr_bob has joined #ruby
<injekt> gsub(/([a-z])/){|x| "\\#{x}" }
chandankumar has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 276 seconds]
mafolz has joined #ruby
whowantstolivefo has quit [Read error: Connection reset by peer]
pduin has joined #ruby
whowantstolivefo has joined #ruby
lyanchih has joined #ruby
<ChristianS> or .gsub /([a-z])/, '\\\1'
tealmage has joined #ruby
<injekt> ChristianS: that wont work
<foofoobar> ChristianS, this only replaces the first match
<ChristianS> oops
<injekt> >> "foo bar".gsub /([a-z])/, '\\\1'
<eval-in> injekt => "\\1\\1\\1 \\1\\1\\1" (http://eval.in/23448)
newTech has quit [Quit: newTech]
<injekt> it's not the first match
<injekt> >> "foo bar".gsub(/([a-z])/){|x| "\\#{x}" }
<eval-in> injekt => "\\f\\o\\o \\b\\a\\r" (http://eval.in/23449)
<injekt> >> puts "foo bar".gsub(/([a-z])/){|x| "\\#{x}" }
<eval-in> injekt => \f\o\o \b\a\r ... (http://eval.in/23450)
mboers has joined #ruby
DrCode has quit [Remote host closed the connection]
<ChristianS> >> "Hello World!".gsub /([a-z])/, 'x\1'
<eval-in> ChristianS => "Hxexlxlxo Wxoxrxlxd!" (http://eval.in/23452)
<ChristianS> why does it work with x but not with \ ?
<tobiasvl> you escape the \1
<injekt> ChristianS: yeah it's because the backslash is escaping the backslash
tealmage has quit [Ping timeout: 245 seconds]
<injekt> put much more nicely by tobiasvl
<injekt> so you have to interpolate it
echevemaster has quit [Read error: Connection reset by peer]
<foofoobar> injekt, I want to escape these characters: [&%^_\{}#$~'"]
<ChristianS> >> "Hello World!".gsub /([a-z])/, "\\\\\\1"
<eval-in> ChristianS => "H\\e\\l\\l\\o W\\o\\r\\l\\d!" (http://eval.in/23453)
<foofoobar> a few of them are ruby control chars
<foofoobar> is there an easy way to escape this?
<ChristianS> that works, but doesn't look too pretty...
<injekt> foofoobar: so add them to the expression
<foofoobar> str.gsub(/([&%^_\{}#$~'"])/){|x| "\\#{x}" }
<injekt> foofoobar: and escape them separately
h8R has joined #ruby
rdark has joined #ruby
<foofoobar> Which of them do I need to escape?
estan has quit [Read error: Connection reset by peer]
<injekt> ^\{}$
<Paradox> did you know that hotels use white linens because bleach is cheaper than detergent?
<foofoobar> injekt, can I use Regex.escape() for this?
<injekt> foofoobar: try it?
<tobiasvl> Paradox: but which one is more environmentally friendly?
<foofoobar> ah, no. they have a special control character in the ruby string, too
<Paradox> tobiasvl, bleach
<injekt> Paradox: I thought it was to give the impression of cleanliness
niklasb has joined #ruby
<Paradox> injekt, nah, its mainly because bleach is cheaper
<Paradox> and can pull almost any stain out
<foofoobar> Do single quote chars prevent interpreting these special chars?
<tobiasvl> Paradox: that's okay then
<Paradox> tobiasvl, bleach breaks down remarkably quickly
<injekt> foofoobar: the only thing special inside of a double quoted ruby string is " #{} and \
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
twoism has quit [Remote host closed the connection]
<Paradox> gotcha regarding regexes though
<tobiasvl> >> "&%^_\{}#$~'\"".gsub(/([&%^_\{}#$~'"])/){|x| "\\#{x}" }
<eval-in> tobiasvl => "\\&\\%\\^\\_\\{\\}\\'\\\"" (http://eval.in/23454)
<Paradox> you can't use \1 inside a "" to match a group
<tobiasvl> foofoobar: just try stuff and see what sticks
<Paradox> you have to do it in a ''
mboers has quit [Quit: mboers]
danslo has joined #ruby
Leighton has joined #ruby
haxrbyte has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
browndawg has joined #ruby
malte_ has joined #ruby
niklasb has quit [Ping timeout: 246 seconds]
draxxxeus has joined #ruby
dhruvasagar has joined #ruby
DrCode has joined #ruby
clocKwize has joined #ruby
danslo has quit [Client Quit]
[eDu] has joined #ruby
becom33 has quit [Read error: Connection reset by peer]
[eDu] has quit [Client Quit]
<foofoobar> so this escapes all, except the backslash: regex = /([&%^_\\{}\#\$~'"])/
yshh_ has joined #ruby
pcarrier has quit [Ping timeout: 268 seconds]
dankest has quit [Read error: Connection reset by peer]
danslo has joined #ruby
monkegjinni has joined #ruby
freerobby has joined #ruby
d11wtq has joined #ruby
yshh has quit [Ping timeout: 268 seconds]
pcarrier has joined #ruby
pithagorians has joined #ruby
estan has joined #ruby
<apeiros> you don't need a capture for the full regex
<apeiros> there's absolutely no point to it
<apeiros> \0 references the full match in the second arg of gsub, if that's the reason for it
ilpuccio has joined #ruby
bradhe has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
newUser1234 has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
atyz has joined #ruby
arya_ has joined #ruby
icole has quit [Remote host closed the connection]
injekt is now known as inkjet
bradhe has quit [Ping timeout: 248 seconds]
mockra has joined #ruby
vlad_starkov has joined #ruby
headius has quit [Quit: headius]
<foofoobar> apeiros, i want each special char to be scaled (also the \)
<foofoobar> regex = /([&%^_\\{}\#\$~'"])/
<foofoobar> str.gsub(regex){|x| "\\#{x}" }
<foofoobar> this code works, except for the backslash
atyz has quit [Ping timeout: 248 seconds]
enriclluelles has joined #ruby
<apeiros> scaled?
<apeiros> ah, escaped you mean
bigkm has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<apeiros> str.gsub(/[&%^_\\{}\#\$~'"]/, '\\\0')
nhhagen_ has joined #ruby
mockra has quit [Ping timeout: 276 seconds]
<apeiros> ah, blergh, that \n is special issue again…
<apeiros> str.gsub(/[&%^_\\{}\#\$~'"]/, '\\\\\0')
<apeiros> I know it looks silly, but that's how it works :)
vlad_starkov has quit [Ping timeout: 256 seconds]
hamed_r has joined #ruby
becom33 has joined #ruby
becom33 has quit [Changing host]
becom33 has joined #ruby
jhn has quit [Ping timeout: 245 seconds]
dward has quit [Ping timeout: 248 seconds]
brianpWins has quit [Quit: brianpWins]
yashshah_ has joined #ruby
kil0byte_ has joined #ruby
kreantos has joined #ruby
Umren has joined #ruby
Proshot has joined #ruby
estan has quit [Read error: Connection reset by peer]
kil0byte has quit [Ping timeout: 248 seconds]
yashshah has quit [Ping timeout: 255 seconds]
tylersmith has joined #ruby
bentech has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
nomenkun has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
tylersmith has quit [Ping timeout: 245 seconds]
pevjan has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
mattbl has quit [Quit: This computer has gone to sleep]
teclator has joined #ruby
jdunck_ has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
Spami has quit [Ping timeout: 256 seconds]
estan has joined #ruby
bluOxigen has joined #ruby
Gooder` has joined #ruby
blacktulip has joined #ruby
lyanchih has joined #ruby
pandy has joined #ruby
mboers has joined #ruby
lele has quit [Quit: Coyote finally caught me]
camilasan has joined #ruby
Gooder has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
cofin has quit [Quit: cofin]
rdark has quit [Ping timeout: 260 seconds]
zekefast has quit [Quit: Leaving.]
tealmage has joined #ruby
rdark has joined #ruby
dhruvasagar has joined #ruby
lele has joined #ruby
arya has joined #ruby
brianpWins has joined #ruby
Zeev has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
tealmage has quit [Ping timeout: 245 seconds]
yusup has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
arya has quit [Ping timeout: 264 seconds]
altivec has joined #ruby
estan has quit [Read error: Connection reset by peer]
arya has joined #ruby
charliesome has joined #ruby
mneorr has joined #ruby
kil0byte has joined #ruby
ghr has joined #ruby
92AAAHVS7 is now known as rcs
Plumm3R has joined #ruby
kil0byte_ has quit [Ping timeout: 245 seconds]
niceguyjames has joined #ruby
xpen has joined #ruby
browndawg has quit [Ping timeout: 248 seconds]
Plumm3R has quit [Client Quit]
danslo has quit [Quit: danslo]
freeayu has quit [Ping timeout: 255 seconds]
obs has joined #ruby
assurbanipal has joined #ruby
elaptics`away is now known as elaptics
rickruby has quit [Remote host closed the connection]
freerobby has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
backjlack has joined #ruby
kevinfagan has quit [Excess Flood]
kevinfagan has joined #ruby
Coffers has joined #ruby
estan has joined #ruby
Hien has quit [Read error: Operation timed out]
danslo has joined #ruby
freeayu has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
altivec has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Remote host closed the connection]
Virunga has joined #ruby
mfridh has quit [Read error: Operation timed out]
lyanchih_ has joined #ruby
postmodern has quit [Quit: Leaving]
lyanchih has quit [Ping timeout: 252 seconds]
mfridh has joined #ruby
haxrbyte_ has joined #ruby
atno has quit [Read error: Connection reset by peer]
draxxxeus has quit [Quit: leaving]
Kar- has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
graydot has quit [Quit: graydot]
graydot has joined #ruby
vlad_starkov has joined #ruby
atno has joined #ruby
Al__ has joined #ruby
Gooder`` has joined #ruby
altivec has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 276 seconds]
lyanchih_ has quit [Ping timeout: 256 seconds]
MrZYX|off is now known as MrZYX
Gooder` has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
Virunga has quit [Remote host closed the connection]
graydot has quit [Ping timeout: 276 seconds]
tonini has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 268 seconds]
falood has joined #ruby
waxjar has quit [Ping timeout: 245 seconds]
darkapex has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
darkapex has joined #ruby
waxjar has joined #ruby
arya has joined #ruby
tonini has joined #ruby
pi3r has joined #ruby
icole has joined #ruby
nhhagen has quit [Quit: Leaving]
nhhagen has joined #ruby
estan has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
icole has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
nhhagen_ has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
emanon_ has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 256 seconds]
estan has joined #ruby
assurbanipal has quit [Remote host closed the connection]
ipalaus has joined #ruby
ping-pong has quit [Read error: Operation timed out]
MrZYX is now known as MrZYX|off
nhhagen_ has quit [Ping timeout: 246 seconds]
klaas- is now known as klaas
assurbanipal has joined #ruby
Criztian has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
rakl has quit [Quit: sleeping]
Criztian has quit [Remote host closed the connection]
Criztian has joined #ruby
danslo has quit [Ping timeout: 252 seconds]
timmow has joined #ruby
danslo has joined #ruby
wallerdev has quit [Quit: wallerdev]
rdark has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
arya has quit [Ping timeout: 246 seconds]
casheew has quit [Read error: Connection reset by peer]
d11wtq has quit [Ping timeout: 264 seconds]
casheew has joined #ruby
daed has quit [Ping timeout: 264 seconds]
ping-pong has joined #ruby
casheew has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
Kricir has joined #ruby
casheew has joined #ruby
threesome has joined #ruby
estan has quit [Read error: Connection reset by peer]
tealmage has quit [Ping timeout: 248 seconds]
Kricir has quit [Ping timeout: 252 seconds]
arya has joined #ruby
includex has joined #ruby
inkjet has quit [Quit: Changing server]
onewheelskyward_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
eka has joined #ruby
Gnubie_ has joined #ruby
eregon_ has joined #ruby
injekt has joined #ruby
BizarreCake has joined #ruby
russfran1 has joined #ruby
BBonifield_ has joined #ruby
adambeynon has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
Mortchek has quit [Read error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac]
Mortchek has joined #ruby
norm_ has joined #ruby
arya has quit [Ping timeout: 245 seconds]
setient_ has joined #ruby
erry_ has joined #ruby
kfoo__ has joined #ruby
r0bgleeson has quit [Quit: WeeChat 0.3.8]
awarner_ has joined #ruby
marcgg_ has joined #ruby
Bofu2U_ has joined #ruby
moted_ has joined #ruby
reset has joined #ruby
r0bgleeson has joined #ruby
timonv has joined #ruby
phrame_ has joined #ruby
erry has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
erry_ is now known as erry
dominikh1 has joined #ruby
Alamo777 has joined #ruby
SDr_ has joined #ruby
mogsy_ has joined #ruby
a_a_g1 has joined #ruby
dominikh has quit [Disconnected by services]
fixl has joined #ruby
monkegjinni has joined #ruby
dominikh1 is now known as dominikh
balr0g_ has joined #ruby
emergion has joined #ruby
weeb1e has joined #ruby
mediko_ has joined #ruby
rpgsimmaster_ has joined #ruby
machuga|away has joined #ruby
emergion has quit [Client Quit]
TomRone_ has joined #ruby
mumblet has joined #ruby
atyz has joined #ruby
chenqsui has quit [Quit: 暂离]
chenqsui has joined #ruby
CaptainK1ots has joined #ruby
akashj87 has quit [Ping timeout: 252 seconds]
_if_ has joined #ruby
aytch_ has joined #ruby
Ibuprofe1 has joined #ruby
alanp_ has joined #ruby
Anarch_ has joined #ruby
rtl_ has joined #ruby
epitron_ has joined #ruby
matchaw_ has joined #ruby
ccooke_ has joined #ruby
psychouroboros has joined #ruby
mklappstuhl has joined #ruby
fcoury_ has joined #ruby
t_hash has joined #ruby
MrZYX|off has quit [Ping timeout: 256 seconds]
SDr has quit [Ping timeout: 256 seconds]
rtl has quit [Ping timeout: 256 seconds]
MrZYX|off has joined #ruby
[0x1a] has quit [Ping timeout: 256 seconds]
DanKnox_ has joined #ruby
MrZYX|off is now known as MrZYX
jtcoon has quit [Ping timeout: 256 seconds]
cam` has quit [Ping timeout: 256 seconds]
joshu has quit [Ping timeout: 256 seconds]
estan has joined #ruby
shtirlic_ has joined #ruby
BBonifield has quit [*.net *.split]
mogsy has quit [*.net *.split]
aytch has quit [*.net *.split]
eregon has quit [*.net *.split]
phrame has quit [*.net *.split]
Bofu2U has quit [*.net *.split]
ritek has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
deadalus has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
fbernier has quit [*.net *.split]
norm has quit [*.net *.split]
shtirlic has quit [*.net *.split]
setient has quit [*.net *.split]
DanKnox has quit [*.net *.split]
russfrank has quit [*.net *.split]
hash has quit [*.net *.split]
Gnubie has quit [*.net *.split]
scrogson has quit [*.net *.split]
al3xnull has quit [*.net *.split]
aedorn has quit [*.net *.split]
aytch_ is now known as aytch
fcoury has quit [*.net *.split]
phrame_ is now known as phrame
fcoury_ is now known as fcoury
DanKnox_ is now known as DanKnox
onewheelskyward_ is now known as onewheelskyward
jtcoon has joined #ruby
Bofu2U_ is now known as Bofu2U
norm_ is now known as norm
nemesit|znc has joined #ruby
Mch1 has joined #ruby
fbernier_ has joined #ruby
scrogson_ has joined #ruby
mogsy_ has quit [Quit: Leaving]
altivec has quit [Quit: Computer has gone to sleep.]
Raydiation has joined #ruby
mogsy_ has joined #ruby
<Raydiation> any tipps how to break lines that have a block at the end?
lushious has joined #ruby
AllStruck_ has joined #ruby
freerobby has joined #ruby
mogsy_ has quit [Read error: Connection reset by peer]
dawkirst has quit [Ping timeout: 268 seconds]
mogsy has joined #ruby
<apeiros> Raydiation: what?
<Raydiation> Then (/^I should (not)? see an "([^"]+)" caption on the add new button$/) do |not?, caption|
<Raydiation> basically how to break this line properly
arya has joined #ruby
<apeiros> I don't think there's a nice way.
<apeiros> you can use //x (x-flag on the regex) to have the regex on multiple lines, but your regex will look ugly then
lessless has joined #ruby
<apeiros> (because it means that you must write e.g. \x20, since spaces will be ignored)
ritek has joined #ruby
<lessless> why do I'm getting a first letter of domain in https://gist.github.com/dirty-hippie/5539275#file-gistfile1-rb-L5 ?
<apeiros> or you can assign the regex to a variable
<lessless> shouldn't it be just 'abracadabra.' ?
<injekt> lessless: why are you using URI.parse ?
<Raydiation> btw what is this block thing in ruby? is it like passing in a callback or is it executing a returned function?
<injekt> not*
<lessless> lol
<apeiros> lessless: because it is offset..offset, not offset..length
Kov|sumika has joined #ruby
atyz has quit [Read error: Connection reset by peer]
morrolan_ has joined #ruby
<apeiros> if you want that, use string[offset, lenght] instead of string[offset..offset]
atyz has joined #ruby
<injekt> offset, length
<injekt> aw
<lessless> apeiros, LOL
davidcel- has joined #ruby
<injekt> at least I spelled it right \o/
<apeiros> *length
<injekt> apeiros: :P
<apeiros> :'(
<lessless> I do not get this concept :(
<lessless> what is second offset for?
<apeiros> from offset, to offset
<tobiasvl> Raydiation: blocks in ruby are a sort of anonymous methods with callbacks, yes
freerobby has quit [Ping timeout: 252 seconds]
<lessless> ah...
<apeiros> (well, from_offset..to_offset)
<lessless> okey
<apeiros> I don't see how that concept is hard to get…
<lessless> :D
<lessless> yeah
<lessless> now I understand
machuga has quit [*.net *.split]
SAUCYSALAMANDER has quit [*.net *.split]
steeve1 has quit [*.net *.split]
jtperreault has quit [*.net *.split]
G has quit [*.net *.split]
Mchl has quit [*.net *.split]
`p has quit [*.net *.split]
matchaw has quit [*.net *.split]
psyprus has quit [*.net *.split]
kiri has quit [*.net *.split]
CaptainKnots has quit [*.net *.split]
mumblerit has quit [*.net *.split]
freakazoid0223 has quit [*.net *.split]
moted has quit [*.net *.split]
alanp has quit [*.net *.split]
SirFunk has quit [*.net *.split]
awarner has quit [*.net *.split]
TomRone has quit [*.net *.split]
kfoo_ has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
marcgg has quit [*.net *.split]
jbw has quit [*.net *.split]
davidcelis has quit [*.net *.split]
Kovensky has quit [*.net *.split]
mediko has quit [*.net *.split]
ccooke has quit [*.net *.split]
AllStruck has quit [*.net *.split]
balr0g has quit [*.net *.split]
_if has quit [*.net *.split]
weeb1e_ has quit [*.net *.split]
Morrolan has quit [*.net *.split]
epitron has quit [*.net *.split]
maetthew has quit [*.net *.split]
Ibuprofen has quit [*.net *.split]
Anarch has quit [*.net *.split]
AllStruck_ is now known as AllStruck
rpgsimmaster has quit [*.net *.split]
Kov|sumika is now known as Kovensky
mumblet is now known as mumblerit
davidcel- is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
moted_ is now known as moted
Mch1 is now known as Mchl
<Raydiation> tobiasvl: basically like built in promises? :)
<injekt> but you should still use URI
<apeiros> can somebody please unfuck the irc protocol?
<apeiros> f'king netsplits
<Raydiation> to make passing callbacks less ugly
<lessless> well, what are the possible use cases for offset..offset?
<tobiasvl> Raydiation: no, not really like promises
<apeiros> Raydiation: yes
SAUCYSALAMANDER has joined #ruby
<apeiros> promises: don't know
<Raydiation> tobiasvl: i mean visually :)
dhruvasagar has joined #ruby
<injekt> lessless: when you dont have a length
<Raydiation> it also looks like i can reference variables which i did not define. does it access the scope inside that function?
<tobiasvl> visually??
<tobiasvl> huh?
<tobiasvl> Raydiation: as for scoping, please gist a short code example. i don't understand what you mean :)
balr0g_ is now known as balr0g
<apeiros> Raydiation: blocks in ruby are closures
<apeiros> they can access the surrounding lexical scope
<Raydiation> tobiasvl: http://dpaste.org/nGa0M/
aedorn has joined #ruby
<Raydiation> i did not define page in that file
<apeiros> for better or worse blocks can change the scope of self, though (via instance_eval and class_eval)
<apeiros> page there is probably a method
freakazoid0223 has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
<Raydiation> apeiros: ok, so its not like access variables defined in When
<r0bgleeson> apeiros: doesn't instance_eval change the scope of the block? :p
<lessless> injekt, thanx... how do I use URI to get subdomain?
`p has joined #ruby
niceguyj has joined #ruby
kiri has joined #ruby
jtperreault has joined #ruby
<apeiros> r0bgleeson: no, only the self
vlad_starkov has joined #ruby
<Raydiation> btw, that method without parenthesis thing is still very weird
<apeiros> lvars are still the same
<r0bgleeson> apeiros: sure, but the block doesn't do it.
niceguyjames has quit [Ping timeout: 252 seconds]
<Raydiation> i think its bad for readability
<apeiros> r0bgleeson: yes
<apeiros> poorly phrased
steeve1 has joined #ruby
<apeiros> the self in a block can be changed
arya has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
jovy88 has joined #ruby
<tobiasvl> Raydiation: why? what readability? what does it matter if a member of a class is a method or a value
jbw has joined #ruby
zekefast has joined #ruby
ipalaus has quit [Quit: Computer has gone to sleep.]
<Raydiation> tobiasvl: some methods may not return values but simply execute logic
<apeiros> Raydiation: wrong
<apeiros> all methods return values
<Raydiation> what about nil
<apeiros> all expressions in ruby evaluate to an object
<apeiros> nil is a value
<Raydiation> well it is in ruby
<apeiros> even if it marks the absence of a value
<tobiasvl> Raydiation: yes, ruby is not a purely functional language. methods have side effects. but so what?
<apeiros> yes. we're not talking about C or SQL here after all.
<Raydiation> tobiasvl: yes, it would still be nice to see if there are side effects
<tobiasvl> no.
<tobiasvl> this is object orientation
<tobiasvl> the object is a black box
<tobiasvl> you shouldn't care what happens when you send a message to an object
dawkirst has joined #ruby
<tobiasvl> it's encapsulated
<Raydiation> hm, right
<tobiasvl> i like lisp and all myself
<tobiasvl> but this isn't lisp
<Raydiation> btw, are there "implicit classes" ?
<Raydiation> because those When and Then functions are methods i suppose
<Raydiation> to which class do they belong?
<tobiasvl> never heard of them
jbpros has joined #ruby
<Raydiation> i mean it doesnt look like i have to new an object to use the methods
mboers has quit [Quit: mboers]
pcarrier has quit [Ping timeout: 256 seconds]
arya has joined #ruby
<Raydiation> require for instance
<Raydiation> is a method right?
<tobiasvl> yes
mboers has joined #ruby
Mon_Ouie has joined #ruby
<Raydiation> of what object
<tobiasvl> Kernel
<tobiasvl> (module)
<Raydiation> is it global?
estan has quit [Read error: Connection reset by peer]
<tobiasvl> yes
<tobiasvl> The Kernel module is included by class Object, so its methods are available in every Ruby object.
<Raydiation> and i limit the global scope by defining them in modules?
<Raydiation> basically i say: use this module and then all the global methods are available?
<tobiasvl> global?
alexgordon has joined #ruby
<tobiasvl> what do you mean by "global" here
<Raydiation> accessible from everywhere
<tobiasvl> but yes, you say, use this module and then all the methods in the module are available
<Raydiation> from any part of the program
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<Hanmac> tobiasvl: not in every ... you can make objects that does not include Kernel
<Raydiation> isnt this a bit dangerous?
<tobiasvl> Hanmac: well ... sure. i quoted ruby-doc though.
neku has joined #ruby
<tobiasvl> send an e-mail to the webmasters of ruby-doc and tell them, not me :)
gyre007 has joined #ruby
<Raydiation> if i use a lib in another language i just import one class defnition and new that one
<Raydiation> basically there is nothing i have to watch out for
pandawarrior has joined #ruby
<Hanmac> Raydiation: for sample gets() is a method in Kernel, where else would you but the method to make it global?
pcarrier has joined #ruby
tylersmith has joined #ruby
<Raydiation> Hanmac: inject the kernel object into the object im using
<Raydiation> in the constructor
dhruvasagar has quit [Read error: Operation timed out]
<Raydiation> that way you can mock it in tests
jdunck_ has quit [Quit: Computer has gone to sleep.]
<apeiros> you can mock it the way it is now too
<Raydiation> and basically use it like: Kernel.gets() rather than just gets()
<apeiros> Kernel methods are callable by inheritance
<apeiros> nothing stops you from overriding that.
<Raydiation> although you should maybe limit the usage to a seperate layer and use integration tests to test that
<apeiros> also you might want to understand how stuff works before suggesting how to change it.
<Raydiation> apeiros: sure
<krz> i have a class called Stat. when I type Stat in ruby console. i want it to define itself as $mongo.collection('stats'). how would i go about that?
tylersmith has quit [Ping timeout: 264 seconds]
<tobiasvl> "define itself as"?
<Raydiation> apeiros: its just that ruby has concepts that you dont find in other languages
<krz> so far i have it as http://pastie.org/7817211
<Raydiation> so its hard to understand
<Raydiation> or harder than a clone of java for instance
<Raydiation> if you know languages already ofc
<krz> tobiasvl: $mongo.collection('stats') returns another object. Stat needs to = $mongo.collection('stats')
<krz> makes sense?
<apeiros> Raydiation: that happens when you learn a new language
Al__ has quit [Quit: Al__]
<Raydiation> apeiros: what i mean is: it looks like everythings global :D
<apeiros> IMO it's easier to understand ruby if you first "forget" most you know about programming.
<tobiasvl> Raydiation: no, everything's not global
<apeiros> no. only globals and constants are global.
<apeiros> everything else is not
<apeiros> $globals and Constants (constants start with an uppercase letter, globals with $)
<Raydiation> im also programming some php so im not sure what wizardry other languages do, like include script files in other script files
<apeiros> and foo() is really self.foo(), hence goes via method resolution
tonini has quit [Ping timeout: 248 seconds]
estan has joined #ruby
<Raydiation> apeiros: i see :)
<krz> http://pastie.org/7817215 works if i do Stat.foo. but is it possible to get the same results with just typing Stat?
<apeiros> pseudo-global methods are just methods which reside "at the root" of the class hierarchy (Kernel or Object)
<apeiros> and generally, Kernel holds all methods which do not rely on self (stuff like puts and gets), and Object holds all methods which rely on self (stuff like .class, .instance_variables, .object_id etc.)
<apeiros> i.e., Kernel holds functions, Object holds methods
<tobiasvl> yes, and that has nothing to do with scope. ruby has pretty strict local scoping rules actually
kiri has quit [Quit: Leaving]
<apeiros> the only thing with arguably weird scoping rules are @@class_vars
<tobiasvl> and they shouldn't be used :P
<apeiros> which are disliked by many for that reason, and rather rarely used.
<apeiros> agreed :)
<Raydiation> like static in other languages
<apeiros> no
<apeiros> if by "like" you mean "works like"
<Raydiation> can you use the class vars without newing the object?
malte_ has quit [Quit: malte_]
<krz> does my question make sense?
<apeiros> a class var belongs to a class
<apeiros> the problem is that it is shared by all its instances, all descendants, all instances of all descendants.
<tobiasvl> Raydiation: yes
<apeiros> the latter 2 are usually unexpected
<Raydiation> ok, then its kinda like the static cancer in php
<tobiasvl> in ruby, classes are objects too
<Raydiation> that makes testing really hard
<tobiasvl> btw
<apeiros> note that classes are objects, so "without newing the object" is ambiguous :-p
<apeiros> Raydiation: no, it's really not like static in php.
<apeiros> ruby has only things which "look a bit like".
<apeiros> +static
<Raydiation> if they suffer from the same problems it doesnt matter :P
<tobiasvl> well yeah. they do
<tobiasvl> so instead, you should use @vars in the class
<tobiasvl> that is, object variables
<Raydiation> btw, are ruby libs saner than php libs?
<tobiasvl> since classes are objects, object variables in classes act like class variables should :)
<Raydiation> i mean is the overall testability better?
akashj87 has joined #ruby
kiri has joined #ruby
roadt has joined #ruby
mboers has quit [Quit: mboers]
<Raydiation> my problem is that every php lib seems to use registries and singletons
<apeiros> tobiasvl: instance variables, not object variables :-p
<tobiasvl> yeah.
<r0bgleeson> Raydiation: ruby has a great ecosystem for open source libraries. not all of them are good.
foofoobar has quit [Quit: Computer has gone to sleep.]
<Raydiation> but testability is a bigger theme in the comunity right?
Squarepy has joined #ruby
<apeiros> it is pushed more than in other language communities, yes.
hamed_r has quit [Quit: Leaving]
Zeev has quit [Disconnected by services]
<Raydiation> awesome :)
Zeev has joined #ruby
pandawarrior has quit [Quit: Leaving.]
Bosox20051 has quit [Ping timeout: 255 seconds]
d11wtq has joined #ruby
arya has quit [Ping timeout: 246 seconds]
slainer68 has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
tealmage has joined #ruby
Kricir has joined #ruby
pandawarrior has joined #ruby
atmosx has joined #ruby
<atmosx> sx
pandawarrior has left #ruby [#ruby]
atmosx has quit [Client Quit]
estan has quit [Read error: Connection reset by peer]
jbpros has quit [Quit: jbpros]
Kricir has quit [Ping timeout: 252 seconds]
tealmage has quit [Ping timeout: 260 seconds]
freeayu has joined #ruby
monkegji_ has joined #ruby
ars23 has joined #ruby
ars23 has left #ruby [#ruby]
pandy has quit [Remote host closed the connection]
pandy has joined #ruby
khismetix has joined #ruby
ramblex has joined #ruby
atmosx has joined #ruby
jbpros has joined #ruby
arya has joined #ruby
monkegjinni has quit [Ping timeout: 276 seconds]
SeriousMatters has joined #ruby
khismetix has quit [Ping timeout: 252 seconds]
ipalaus has joined #ruby
cofin has joined #ruby
falood has quit [Ping timeout: 252 seconds]
Hanmac2 has joined #ruby
estan has joined #ruby
khismetix has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
evelyette has joined #ruby
<evelyette> hi
malte_ has joined #ruby
ipalaus has quit [Read error: Connection reset by peer]
<evelyette> I extended redcloth library to support exporting textile -> XML ... but when creating the to_xml method in lib/redcloth/textile_doc.rb and then calling the RedCloth.new(lines).to_xml ... I get the NoMethodError exception ... I know that Ruby can't find my method, but I'm interested in why ?
a_a_g has quit [Quit: Leaving]
freerobby has quit [Ping timeout: 252 seconds]
jbpros has quit [Quit: jbpros]
<maddog_> How can I clone a Vector so that I have an independant copy I can work with?
yusup has quit [Ping timeout: 264 seconds]
Jackneill has joined #ruby
tundrax has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
reset has quit [Ping timeout: 276 seconds]
<dinoex> copy = vector.dup
<dinoex> maybe?
jnoob22 has joined #ruby
tk__ has joined #ruby
epitron_ has quit [Changing host]
epitron_ has joined #ruby
epitron_ is now known as epitron
<tobiasvl> clone is probably what he wants
<tobiasvl> maddog_: you asked how to clone something: it's with the method clone, unsurprisingly
forlin has joined #ruby
<tobiasvl> dinoex: dup just makes a shallow copy
<tobiasvl> i don't know if it matters here, i don't know what a Vector is
<dinoex> it helps with array.
<tobiasvl> helps?
<maddog_> tobiasvl: thanks :)
maetthew has joined #ruby
G has joined #ruby
SirFunk has joined #ruby
<maddog_> One more thing regarding vectors: Can I iterate over the elements and assign new values somehow? .each { |v| v = 2} doesn't seem to work
estan has quit [Read error: Connection reset by peer]
<hoelzro> maddog_: that's not how variables work
<hoelzro> you'd need to use each_with_index and overwrite the value at the given idnex
<hoelzro> *index
kristofers has joined #ruby
mixel has joined #ruby
<maddog_> hoelzro: allright, let me try that :)
dhruvasagar has quit [Ping timeout: 246 seconds]
<maddog_> hoelzro: nope, doesn't seem to work.
<hoelzro> maddog_: would you mind pasting some code?
<hoelzro> it will make helping much easier =)
camilasan has quit [Remote host closed the connection]
<maddog_> What I want to achieve is this: For a given Vector I want to change each of the values using a given function, like Math::tanh() for example
<tobiasvl> but what code did you try that didn't work?
<maddog_> each_with_index {|item,index| v2.element(index) = 2}
<maddog_> v2 would be the vector I want to change
dhruvasagar has joined #ruby
tylersmith has joined #ruby
backjlack has quit [Remote host closed the connection]
<tobiasvl> and what happens?
<tobiasvl> (i've never used Vector)
arya has quit [Ping timeout: 255 seconds]
<maddog_> SyntaxError: (irb):23: syntax error, unexpected '=', expecting '}'
<tobiasvl> To enumerate the elements:
<tobiasvl> #each2(v)
<tobiasvl> #collect2(v)
arya has joined #ruby
Domon has quit [Remote host closed the connection]
<maddog_> If I do an each and try to assign the element directly it seems to work but the vector is unchanged
backjlack has joined #ruby
<hoelzro> maddog_: what about instead of v2.element(index) = 2, you try v2[index] = 2?
<tobiasvl> or v2[](index) = 2
<tobiasvl> no that's aliased as element
<tobiasvl> nvm
<maddog_> hoelzro: [] is a private method
<hoelzro> ah, lame
tylersmith has quit [Ping timeout: 252 seconds]
<maddog_> tobiasvl: each2 expects a vector as an argument, thats not what I'm looking for
estan has joined #ruby
browndawg has joined #ruby
<evelyette> any idea where to look for the error: http://dpaste.com/1122926/
falood has joined #ruby
<maddog_> Ok, it works if I convert the Vector to an array, then iterate with each_with_index over the array and change the values as I want and after that convert it back to a Vector
<maddog_> probably not the best approach, but I have no idea how to achieve this any way else.
<evelyette> the to_xml is defined in lib/redcloth/textile_doc.rb, but no idea why it's not being called
xpen has quit [Ping timeout: 248 seconds]
<evelyette> I guess some checking is done by ruby or something
slainer68 has quit [Remote host closed the connection]
r0bgleeson has quit [Quit: WeeChat 0.3.8]
kil0byte_ has joined #ruby
r0bgleeson has joined #ruby
mljsimone has joined #ruby
<tobiasvl> evelyette: it's not as relevant what file it's defined in
falood has quit [Remote host closed the connection]
<tobiasvl> but what class/object it's defined in
<tobiasvl> you're trying to call it on an object that doesn't have it, it looks like
<tobiasvl> (i don't know RedCloth)
Asher has joined #ruby
<evelyette> tobiasvl: can I just change system libraries and make functions automatically available, or do I have to "compile" the changed class or something?
<evelyette> tobiasvl: ^
kil0byte has quit [Ping timeout: 260 seconds]
<r0bgleeson> evelyette: you don't have to compile anything to change a class. edit & re-run.
Leighton has quit [Quit: Leaving]
Domon has joined #ruby
tonini has joined #ruby
camilasan has joined #ruby
Soliah has quit [Ping timeout: 248 seconds]
yashshah_ has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
dr_bob has quit [Quit: Leaving.]
megha has joined #ruby
baba has quit [Ping timeout: 276 seconds]
altivec has joined #ruby
Kricir has joined #ruby
Al__ has joined #ruby
davetherat has quit [Remote host closed the connection]
lkba has joined #ruby
tealmage has joined #ruby
davetherat has joined #ruby
evenix has joined #ruby
dr_bob has joined #ruby
estan has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dr_bob has quit [Read error: Connection reset by peer]
tealmage has quit [Read error: Operation timed out]
Kricir has quit [Ping timeout: 248 seconds]
ipalaus has joined #ruby
chenqsui has quit [Quit: 暂离]
atmosx has quit [Quit: WeeChat 0.4.1-dev]
browndawg has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
falood has joined #ruby
dawkirst has quit [Ping timeout: 252 seconds]
timonv has quit [Read error: Connection reset by peer]
mboers has joined #ruby
sleetdrop has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
[0x1a] has joined #ruby
atmosx has joined #ruby
cam` has joined #ruby
estan has joined #ruby
spider-mario has joined #ruby
vlad_starkov has joined #ruby
bluenemo has quit [Quit: Verlassend]
BSaboia has joined #ruby
krz has quit [Quit: krz]
freerobby has joined #ruby
mixel has quit [Quit: mixel]
falood has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
pipework has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
slainer68 has quit [Remote host closed the connection]
kil0byte has joined #ruby
dawkirst has joined #ruby
persand has quit [Quit: persand]
camilasan has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
slainer68 has joined #ruby
emergion has joined #ruby
tvw has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
estan has quit [Read error: Connection reset by peer]
pen has joined #ruby
akashj87_ has joined #ruby
Xeago has joined #ruby
kofno has joined #ruby
yshh_ has quit [Remote host closed the connection]
mmitchell has joined #ruby
yusup has joined #ruby
peta_ has joined #ruby
kf8a has joined #ruby
akashj87 has quit [Ping timeout: 245 seconds]
kf8a has quit [Client Quit]
arya has quit [Ping timeout: 248 seconds]
SAUCYSALAMANDER has quit [Ping timeout: 248 seconds]
slainer68 has quit [Remote host closed the connection]
DonRichie has joined #ruby
jnoob22 has quit [Remote host closed the connection]
tylersmith has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
pcarrier has quit [Quit: Computer has gone to sleep.]
jovy88 has joined #ruby
arya has joined #ruby
estan has joined #ruby
s1n4 has joined #ruby
s1n4 has joined #ruby
s1n4 has quit [Changing host]
malte_ has quit [Quit: malte_]
tylersmith has quit [Ping timeout: 248 seconds]
s1n4 has left #ruby [#ruby]
jeffmess has joined #ruby
suporte85 has joined #ruby
brianpWins has quit [Ping timeout: 245 seconds]
ttt has quit [Ping timeout: 276 seconds]
girija has quit [Ping timeout: 268 seconds]
corehook has joined #ruby
spoonman has joined #ruby
Neomex has joined #ruby
akash__ has joined #ruby
Mon_Ouie has quit [Ping timeout: 255 seconds]
akashj87 has joined #ruby
Eldariof-ru has joined #ruby
browndawg has joined #ruby
dranged has joined #ruby
akashj87_ has quit [Ping timeout: 260 seconds]
fermion has joined #ruby
akashj87_ has joined #ruby
obs has quit [Quit: Konversation terminated!]
akash__ has quit [Ping timeout: 245 seconds]
<shevy> evelyette hey do you want to compile .rb files
kornnflake has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
<shevy> so that they can be faster than .c files
<shevy> THE HOLY GRAIL OF SCRIPTING LANGUAGES
xpen has joined #ruby
suporte85 has quit [Quit: Saindo]
akashj87 has quit [Ping timeout: 245 seconds]
xpen has quit [Remote host closed the connection]
pskosinski has joined #ruby
Hanmac has quit [Quit: Leaving.]
m8 has joined #ruby
marr has joined #ruby
danslo has quit [Ping timeout: 245 seconds]
mljsimone has quit [Ping timeout: 245 seconds]
estan has quit [Read error: Connection reset by peer]
spalenza has joined #ruby
Kricir has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
mljsimone has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
yalue has joined #ruby
mark_locklear has joined #ruby
ZachBeta has joined #ruby
akashj87_ has quit [Quit: Leaving]
kleinerdrache has joined #ruby
roadt has quit [Ping timeout: 260 seconds]
akashj87 has joined #ruby
Kricir has quit [Ping timeout: 248 seconds]
tomzx_mac has joined #ruby
pcarrier has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
cantonic has quit [Quit: cantonic]
mboers has quit [Quit: mboers]
Bry8Star has quit [Remote host closed the connection]
leonidlm has joined #ruby
jcromartie has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 255 seconds]
cofin has quit [Quit: cofin]
enriclluelles has quit [Remote host closed the connection]
akashj87 has quit [Quit: Leaving]
pen has quit [Remote host closed the connection]
estan has joined #ruby
akashj87 has joined #ruby
spoonman has quit [Read error: Connection reset by peer]
hackeron_ has quit [Ping timeout: 276 seconds]
adambeynon has quit [Quit: Computer has gone to sleep.]
hackeron has joined #ruby
justsee has joined #ruby
yusup has quit [Quit: Linkinus - http://linkinus.com]
tanathos has joined #ruby
foofoobar has joined #ruby
danslo has joined #ruby
mediko_ is now known as mediko
nari has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
carloslopes has joined #ruby
tommyvyo has joined #ruby
niklasb has joined #ruby
arya has joined #ruby
freerobby has joined #ruby
jbpros has joined #ruby
geekbri has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
Squarepy has quit [Quit: Leaving]
splittingred has joined #ruby
Neomex has quit [Quit: Neomex]
bubblehead has quit [Read error: Connection reset by peer]
machuga|away is now known as machuga
bubblehead has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby
bubblehead has joined #ruby
roadt has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
<Raydiation> do you use gherkin/cucumber features to test design?
<Raydiation> as in: if i hover over a link it should show a text
<Raydiation> or if i hover over a link it should show a tooltip with "x"
sailias has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
tommyvyo has quit [Quit:]
pcarrier has joined #ruby
csaunders has joined #ruby
DaniG2k has joined #ruby
spoonman has joined #ruby
Bry8Star has joined #ruby
estan has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
codemonkey010101 has joined #ruby
neku has quit [Read error: Connection reset by peer]
Simone- has joined #ruby
nwertman_ has joined #ruby
EPIK has joined #ruby
jbpros has quit [Quit: jbpros]
Gues_____ has joined #ruby
Gues_____ is now known as RubNoob
mmitchell has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
mmitchell has joined #ruby
mklappstuhl has joined #ruby
suporte85 has joined #ruby
suporte85 has quit [Max SendQ exceeded]
tylersmith has joined #ruby
paulswilliamsesq has joined #ruby
Eldariof-ru has quit [Ping timeout: 255 seconds]
invisime has joined #ruby
estan has joined #ruby
Kricir has joined #ruby
mklappstuhl has quit [Ping timeout: 248 seconds]
Kricir has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
tylersmith has quit [Ping timeout: 255 seconds]
chenqisu has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
mboers has joined #ruby
vlad_sta_ has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
browndawg1 has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
browndawg has quit [Ping timeout: 248 seconds]
sandGorgon has quit [Read error: Connection reset by peer]
sandGorgon has joined #ruby
suporte85 has joined #ruby
suporte85 has quit [Max SendQ exceeded]
sandGorgon has quit [Read error: Connection reset by peer]
camilasan has quit [Remote host closed the connection]
bubblehead has quit [Read error: Connection reset by peer]
zipace has joined #ruby
bubblehead has joined #ruby
sandGorgon has joined #ruby
kiri has quit [Read error: Operation timed out]
kiri has joined #ruby
camilasan has joined #ruby
tealmage has joined #ruby
cantonic has joined #ruby
qubit has joined #ruby
jerius has joined #ruby
tealmage has quit [Ping timeout: 256 seconds]
suporte85 has joined #ruby
suporte85 has quit [Max SendQ exceeded]
estan has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 256 seconds]
emmanuelux has joined #ruby
Banistergalaxy has joined #ruby
suporte85 has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
altivec has quit [Quit: Computer has gone to sleep.]
suporte85 has quit [Max SendQ exceeded]
blaxter has quit [Ping timeout: 276 seconds]
suporte85_ has joined #ruby
jnoob22 has joined #ruby
suporte85_ has quit [Read error: Connection reset by peer]
<nemesit|znc> can i somehow use bundle gems with a ruby app so that users don't have to install them?
enriclluelles has joined #ruby
monkegjinni has joined #ruby
monkegji_ has quit [Ping timeout: 248 seconds]
tealmage has joined #ruby
paulcc has joined #ruby
lmf40 has joined #ruby
monkegji_ has joined #ruby
suporte85 has joined #ruby
<r0bgleeson> nemesit|znc: yeah, you can, but i don't know of any tools to do it for you. once you have the gems it should be as simple as adding each gem to the $LOAD_PATH.
cek has joined #ruby
<r0bgleeson> nemesit|znc: 'bundle install' is a dead simple way of managing installation of dependencies for the user.
breakingthings has joined #ruby
<cek> hi. what ruby version management would you recommend? We've been with RVM, but it sucked a lot, especially during major upgrades, when they changed invocation interface. rbenv doesn't seem to be a good choice, mainly becuase installation procedure is missing enterprise customers (no automation).
a_a_g1 has quit [Quit: Leaving.]
<shevy> cek I myself always compile from source, into versioned directories, and then use a single symlink to denote which version to use
<cek> shevy, do you have 1k nodes?
<shevy> no idea
tvw has quit []
<shevy> I dont think RVM or rbenv were developed with enterprise in mind
<hoelzro> my guess is no
mboers has quit [Quit: mboers]
tealmage has quit [Ping timeout: 245 seconds]
<shevy> hoelzro how do you manage different ruby versions?
<hoelzro> shevy: rvm, only because I haven't spent the effort to switch to something else =P
monkegjinni has quit [Ping timeout: 248 seconds]
<shevy> see cek, RVM is like the frontier of ruby version management
<cek> that sucks
khismetix has joined #ruby
<r0bgleeson> cek: what do you mean it is 'missing enterprise customers' ?
<cek> no rpm packages, no automation support
ZachBeta has quit [Quit: Computer has gone to sleep.]
<r0bgleeson> what is automation support?
<cek> only macos supported, which means its primarily targeted to home users
adambeynon has joined #ruby
<hoelzro> only OS X supported?
<r0bgleeson> it supports just OSX?
<hoelzro> uhh...
* hoelzro checks on his Linux box
estan has joined #ruby
<r0bgleeson> sounds like fud.
<cek> it's when you "rbenv install 1.9.3" and get proper working ruby 193 version LATEST, not when you have to choose specific patchlevel.
<maddog_> #MatrixVectorMultiplication
<cek> when you can rbenv update 1.9.3 and it would replace existing ruby with latest version, leaving all "gemsets" in working order
browndawg1 has quit [Quit: Leaving.]
<shevy> maddog_, where is activate_matrix() defined?
graydot has joined #ruby
<shevy> cek hmm what about compiled gems?
<cek> yeah, had idea just go with mainstream, but its 187 not even 191
browndawg has joined #ruby
<maddog_> shevy: This line never get's executed. The error is within the "n.node_sums =..." line
ariedler has joined #ruby
altivec has joined #ruby
tomzx_mac has quit [Ping timeout: 248 seconds]
banghouse has joined #ruby
cofin has joined #ruby
Lubinski has joined #ruby
rickruby has joined #ruby
banghouse is now known as Guest90137
jlast has joined #ruby
enriclluelles has quit [Remote host closed the connection]
enriclluelles has joined #ruby
bentech has left #ruby [#ruby]
malte_ has joined #ruby
freerobby has joined #ruby
chandankumar has joined #ruby
altivec has quit [Client Quit]
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
foofoobar has quit [Quit: Computer has gone to sleep.]
freerobby1 has quit [Client Quit]
psychouroboros is now known as deadalus
deadalus has quit [Changing host]
deadalus has joined #ruby
`p has quit [Remote host closed the connection]
freerobby has joined #ruby
camilasan has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
krawchyk has joined #ruby
rickruby has quit [Ping timeout: 248 seconds]
mneorr has joined #ruby
foofoobar has joined #ruby
sambao21 has joined #ruby
yshh has joined #ruby
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
<rismoney> is there a ruby way to write a 2 variable case statement - i want to see if var1=foo and var2=bar or var1=baz and var2=boo etc.
Raydiation has left #ruby [#ruby]
LennyLinux has joined #ruby
d2dchat has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
tethra has quit [Read error: Connection reset by peer]
<withnale> can you do it as a list? case [ a, b] when [ foo, bar ] ?
dr_bob has quit [Quit: Leaving.]
atno has quit [Ping timeout: 260 seconds]
<rismoney> let me try
EPIK has quit [Ping timeout: 276 seconds]
toddWork_ has joined #ruby
estan has quit [Read error: Operation timed out]
philcrissman has joined #ruby
dr_bob has joined #ruby
<withnale> it'll work, but it depends how you want to use it. It would be a bit inflexible if you have lots of when's
jcromartie has joined #ruby
chrishunt has joined #ruby
chrishunt has quit [Client Quit]
<rismoney> its a finite set of 6 whens.
wmoxam has joined #ruby
<rismoney> i will always know the a,b ahead of time too.
<rismoney> it works!
manutter has joined #ruby
akashj87_ has joined #ruby
estan has joined #ruby
akashj87 has quit [Ping timeout: 245 seconds]
sambao21 has quit [Ping timeout: 252 seconds]
nezumi has quit [Read error: Operation timed out]
khismetix has quit [Quit: Computer has gone to sleep.]
Heero has quit [Ping timeout: 248 seconds]
tethra has joined #ruby
tethra has quit [Changing host]
tethra has joined #ruby
timonv has joined #ruby
solidoodlesuppor has joined #ruby
tylersmith has joined #ruby
falood has joined #ruby
tommyvyo has joined #ruby
jovy88 has quit [Read error: Operation timed out]
vlad_sta_ has quit [Remote host closed the connection]
<nemesit|znc> r0bgleeson thx using the $LOAD_PATH worked
Hanmac has joined #ruby
chenqisui has joined #ruby
tylersmith has quit [Ping timeout: 248 seconds]
El_loco has joined #ruby
kobain has joined #ruby
v0n has joined #ruby
arya has quit [Ping timeout: 245 seconds]
Hanmac2 has quit [Ping timeout: 252 seconds]
chenqisu has quit [Ping timeout: 256 seconds]
failshell has joined #ruby
Tricon has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
akashj87_ has quit [Quit: Leaving]
kevinfagan has quit [Excess Flood]
Lubinski has quit [Quit: Leaving]
kevinfagan has joined #ruby
bean__ has joined #ruby
Lubinski has joined #ruby
arya has joined #ruby
mneorr has quit [Remote host closed the connection]
chrishunt has joined #ruby
akells` has joined #ruby
tealmage has joined #ruby
Yakko_ is now known as Yakko
El_loco has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
skattyadz has joined #ruby
seoaqua has quit [Ping timeout: 245 seconds]
decentrality has quit [Quit: decentrality]
<maddog_> Why do I get this error: https://gist.github.com/danielbecker/ebfd8d68bf3d7844c53d ? #MatrixMultiplication
decentrality has joined #ruby
Guest90137 has quit [Remote host closed the connection]
chenqisui has quit [Quit: Leaving]
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
krz has joined #ruby
monkegjinni has joined #ruby
Neomex has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
osvico has quit [Ping timeout: 246 seconds]
estan has quit [Read error: Connection reset by peer]
falood has quit [Remote host closed the connection]
D4T has joined #ruby
joofsh has joined #ruby
alx- has joined #ruby
jblack has joined #ruby
monkegji_ has quit [Ping timeout: 248 seconds]
huttan has quit [Ping timeout: 252 seconds]
janjos has joined #ruby
timonv has quit [Read error: Connection reset by peer]
alx- has quit [Client Quit]
<janjos> is there a ruby questions channel?
timonv has joined #ruby
<maddog_> janjos: nope
<banister`sleep> janjos: u on it
<janjos> ok thanks banister`sleep
arya_ has joined #ruby
codecop has quit [Remote host closed the connection]
ilpuccio has quit [Quit: This computer has gone to sleep]
arya has quit [Ping timeout: 246 seconds]
estan has joined #ruby
arya_ is now known as arya
johchri has joined #ruby
iMadper has quit [Remote host closed the connection]
<janjos> using ruby, if I would like to go through the page's html and return a set of elements from it, can I use the split and then map methods?
<janjos> <tr class="batch selectableBatch" title="Transfer of Ownership" data-batch-id="175793">
<janjos> assuming that's the html
<janjos> and I want the data-batch-id value
<banister`sleep> janjos: use nokogiri
<bean__> ^+1
mattbl has joined #ruby
skattyadz has quit [Quit: skattyadz]
obs has joined #ruby
huttan has joined #ruby
cantonic has quit [Quit: cantonic]
Davey has joined #ruby
huttan has quit [Client Quit]
huttan has joined #ruby
andikr has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 246 seconds]
tethra has quit [Ping timeout: 245 seconds]
forlin has quit [Remote host closed the connection]
tethra has joined #ruby
tethra has quit [Changing host]
tethra has joined #ruby
dustint has joined #ruby
tanathos has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 252 seconds]
persand has joined #ruby
shime has joined #ruby
joofsh has quit [Remote host closed the connection]
pasties has joined #ruby
joofsh has joined #ruby
mneorr has joined #ruby
dranged has quit [Quit: Changing server]
sambao21 has joined #ruby
arya has joined #ruby
jbpros has joined #ruby
sambao21 has quit [Read error: Operation timed out]
_nitti has joined #ruby
huoxito has joined #ruby
shevy has joined #ruby
seoaqua has joined #ruby
josedonizetti has joined #ruby
teclator has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 252 seconds]
miroatme_ has quit [Quit: Leaving.]
estan has quit [Read error: Connection reset by peer]
mneorr has quit [Ping timeout: 256 seconds]
mXr has joined #ruby
<mXr> hello :)
timonv has quit [Ping timeout: 256 seconds]
<mXr> i'm using https://github.com/dockyard/postgres_ext/blob/master/docs/type_casting.md to retrieve a cidr/inet postgres value .. it gets converted into an IPAddr object
heftig has quit [Quit: Quitting]
mattbl has quit [Quit: This computer has gone to sleep]
<mXr> how can i get the netmask from that object? i dont see any method for that? the "to_s" will only give me the address itself, not the mask, which is strange++
dr_bob has quit [Quit: Leaving.]
heftig has joined #ruby
tagrudev has quit [Remote host closed the connection]
seoaqua has quit [Ping timeout: 264 seconds]
aganov has quit [Remote host closed the connection]
kristofers has quit [Read error: Connection reset by peer]
arya has joined #ruby
b0oh has joined #ruby
JMcAfreak has joined #ruby
dr_bob has joined #ruby
<mXr> def ipaddr_to_string(value)
<mXr> "#{value.to_s}/#{value.instance_variable_get(:@mask_addr).to_s(2).count('1')}"
<mXr> are you kidding me :x
[eDu] has joined #ruby
interactionjaxsn has joined #ruby
kristofers has joined #ruby
enriclluelles has quit [Remote host closed the connection]
skattyadz has joined #ruby
enriclluelles has joined #ruby
Bosox20051 has joined #ruby
estan has joined #ruby
tylersmith has joined #ruby
timonv has joined #ruby
zph has joined #ruby
zph has quit [Excess Flood]
darkapex has quit [Ping timeout: 246 seconds]
waxjar has quit [Ping timeout: 264 seconds]
ipalaus has quit [Quit: Textual IRC Client: www.textualapp.com]
ilpuccio has joined #ruby
jduan1981 has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
tylersmith has quit [Ping timeout: 264 seconds]
becom33 has quit [Ping timeout: 252 seconds]
forlin has joined #ruby
RobW_ has joined #ruby
waxjar has joined #ruby
darkapex has joined #ruby
generalissimo has joined #ruby
<RobW_> Is there an easy way to test a gem's source without compiling it? I'm trying to make some local changes to the Sass gem and I'd like to test, edit, and test again without building a gem each time.
alexwh has joined #ruby
ffranz has joined #ruby
chinz has joined #ruby
chinz_ has joined #ruby
<apeiros> RobW_: check the rake tasks
<apeiros> (rake -T)
Progster has quit [Ping timeout: 276 seconds]
<RobW_> apeiros: OK, done. What should I be looking for?
<RobW_> apeiros: ah! nevermind.
<RobW_> apeiros: Thanks.
Coolhand has quit [Remote host closed the connection]
pduin has quit [Remote host closed the connection]
wolcanus has joined #ruby
alex__c2022 has joined #ruby
robmuh has joined #ruby
arvindravi has joined #ruby
Progster has joined #ruby
nwertman_ has quit [Ping timeout: 256 seconds]
dmiller_ has joined #ruby
dmiller_ has quit [Remote host closed the connection]
pduin has joined #ruby
estan has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
chinz_ has quit [Quit: Leaving]
chinz has quit [Quit: Leaving]
Coolhand has joined #ruby
newUser1234 has joined #ruby
b0oh has left #ruby [#ruby]
tspike has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
jtharris has joined #ruby
Zeev has quit [Disconnected by services]
Zeev has joined #ruby
juarlex has joined #ruby
taotetek has quit [Ping timeout: 276 seconds]
megha has quit [Ping timeout: 245 seconds]
taotetek has joined #ruby
taotetek is now known as Guest95653
_nitti has quit [Remote host closed the connection]
Guest95653 has quit [Client Quit]
RobW_ has left #ruby [#ruby]
_nitti has joined #ruby
gyre008 has joined #ruby
_nitti_ has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
sandGorgon has quit [Ping timeout: 248 seconds]
megha has joined #ruby
gyre007 has quit [Ping timeout: 264 seconds]
ariedler has quit [Remote host closed the connection]
estan has joined #ruby
fmcgeough has joined #ruby
MattyM has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<foofoobar> how to deactivate output escaping for a template?
carloslopes has quit [Remote host closed the connection]
MattyM is now known as MattyMcB
<r0bgleeson> foofoobar: #rubyonrails
<arvindravi> Does anybody else have a problem installing the mechanize gem? I keep getting this error: https://gist.github.com/arvindravi/5541123 I'm on mountain lion.
<foofoobar> ah, wrong window, sry
wedgex has joined #ruby
<arvindravi> I thought it required the Command Line Tools from Xcode, and I've got that installed as well. Still no luck.
<MrZYX> ensure that g++-4.2 is in your $PATH then
_nitti_ has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
baroquebobcat has joined #ruby
RubNoob has quit [Read error: Connection reset by peer]
Zeev has quit [Ping timeout: 248 seconds]
_nitti has joined #ruby
<arvindravi> MrZYX, Yes, g++ (v 4.2.1) works from the CLI. So, yes, i guess its in the path?
<arvindravi> or am I missing something?
<MrZYX> `g++` or `g++-4.2` ?
<arvindravi> g++
<MrZYX> try export CXX=g++ then
Eldariof-ru has joined #ruby
pduin has quit [Remote host closed the connection]
scottmey has joined #ruby
leonidlm has quit [Ping timeout: 264 seconds]
freeayu has quit [Remote host closed the connection]
sayan has joined #ruby
DaniG2k has left #ruby [#ruby]
machuga is now known as machuga|brb
apeiros has quit [Remote host closed the connection]
yannis has joined #ruby
persand has quit [Quit: persand]
graydot has quit [Quit: graydot]
ariedler has joined #ruby
_nitti has quit [Remote host closed the connection]
tk__ has quit [Quit: ばいばい]
_nitti has joined #ruby
Heero has quit [Ping timeout: 252 seconds]
_nitti has quit [Read error: Connection reset by peer]
al3xnull has joined #ruby
Zeev has joined #ruby
_nitti has joined #ruby
paulcc has quit [Ping timeout: 245 seconds]
_nitti has quit [Remote host closed the connection]
codecop has joined #ruby
_nitti has joined #ruby
wallerdev has joined #ruby
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
estan has quit [Read error: Connection reset by peer]
tyl has quit [Ping timeout: 248 seconds]
cloaked1 has joined #ruby
mklappst_ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
timkohrumel has joined #ruby
bafilius has quit [Ping timeout: 245 seconds]
codemonk1y010101 has joined #ruby
tylersmith has joined #ruby
pithagorians has quit [Ping timeout: 248 seconds]
jbpros has quit [Quit: jbpros]
lessless has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
codezombie has joined #ruby
wallerdev has quit [Client Quit]
thetristan has joined #ruby
nga4 has quit [Ping timeout: 246 seconds]
tealmage has quit [Remote host closed the connection]
tjbiddle has joined #ruby
carlyle has joined #ruby
danslo has quit [Quit: danslo]
falood has joined #ruby
codemonkey010101 has quit [Ping timeout: 268 seconds]
tylersmith has quit [Ping timeout: 248 seconds]
theSHOW has joined #ruby
asym has joined #ruby
clocKwize has quit [Quit: clocKwize]
mneorr has joined #ruby
wolcanus has quit [Remote host closed the connection]
anonymuse has joined #ruby
arvindravi has quit [Quit: arvindravi]
alexgandy has joined #ruby
josedonizetti has left #ruby [#ruby]
mklappst_ has quit [Remote host closed the connection]
juarlex_ has joined #ruby
headius has joined #ruby
estan has joined #ruby
asym has quit [Client Quit]
slainer68 has joined #ruby
juarlex has quit [Ping timeout: 264 seconds]
brianpWins has quit [Quit: brianpWins]
ananthakumaran has joined #ruby
carloslopes has joined #ruby
ilpuccio has quit [Quit: This computer has gone to sleep]
atno has joined #ruby
yfeldblum has joined #ruby
mafolz has quit [Ping timeout: 260 seconds]
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
jamesfung14 has joined #ruby
freerobby has quit [Quit: Leaving.]
girija has joined #ruby
engel has joined #ruby
gyre007 has joined #ruby
jduan1981 has quit [Quit: jduan1981]
_dv_ has joined #ruby
dv_ has quit [Read error: Operation timed out]
wallerdev has joined #ruby
cofin has quit [Quit: cofin]
JMcAfreak has quit [Remote host closed the connection]
gyre008 has quit [Ping timeout: 264 seconds]
cofin has joined #ruby
carloslopes has quit [Ping timeout: 252 seconds]
Zeev has quit [Disconnected by services]
Zeev has joined #ruby
freerobby has joined #ruby
mockra has joined #ruby
paulswilliamsesq has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 245 seconds]
jmeling has joined #ruby
arvindravi has joined #ruby
<arvindravi> MrZYX: Sorry I got disconnected. And I tried the export CXX=g++, didn't work. Same error.
Raydiation has joined #ruby
<Raydiation> hi i want to serve some simple files at a local http server for an acceptance test
timonv has quit [Remote host closed the connection]
<Raydiation> any tipps how to do this with capybara/cucumber?
v0n has quit [Quit: WeeChat 0.4.0]
<Raydiation> or some simple stuff from commandline
<MrZYX> arvindravi: well, then I'd just symlink g++ to g++-4.2
v0n has joined #ruby
johnnyfuchs has joined #ruby
<Raydiation> was thinking of pythons simplehttp server stuff but that would add python as dep
<Raydiation> i got rack installed btw
<Raydiation> as a dependency of capybara
<shevy> perl asskicked ruby again
estan has quit [Read error: Connection reset by peer]
<Raydiation> shevy: and python perl
<arvindravi> MrZYX: Right. Will try that.
<Raydiation> :D
Bry8Star has quit [Ping timeout: 276 seconds]
<shevy> Raydiation yeah but I think python is before perl since several years by now
<shevy> ruby struggles much harder :(
<shevy> matz should clean up and simplify the implementation
<Raydiation> maybe reimplement it in python *muhahaha*
jamie_ca_ has joined #ruby
lmf40 has quit [Remote host closed the connection]
krz has quit [Quit: krz]
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<wmoxam> shevy: perl only ass kicks if you enjoy writing perl
lmf40 has joined #ruby
jeffmess has quit [Ping timeout: 248 seconds]
khismetix has joined #ruby
<injekt> lol the tiobe is such rubbish
Bry8Star has joined #ruby
bradhe has joined #ruby
iMadper has joined #ruby
lmf40 has quit [Remote host closed the connection]
asym has joined #ruby
<arvindravi> MrZYX, that worked! Thanks! :)
<shevy> wmoxam but it's more popular according to TIOBE :(
<asym> Anyone know how to get throw/catch to cross a Thread boundary? (ruby says throw without catch even through the catch block is in the stack trace, although from different thread. i'm using 1.8.7 unfortunately)
<wmoxam> shevy: I really doubt that to be true
<wmoxam> and even if it is, so what?
iMadper has left #ruby [#ruby]
tjbiddle has quit [Quit: tjbiddle]
cofin has quit [Quit: cofin]
* wmoxam scratches his head trying to think of some good software written in Perl
<asym> wmoxam: bugzilla
<wmoxam> 1) OpenBSD pkg tools
<wmoxam> asym: I said *good* ;)
MattyMcB has quit [Ping timeout: 264 seconds]
<shevy> haha
tyl has joined #ruby
<asym> bugzilla is 'good' on most standards.. long lived, stable, widely-deployed
<shevy> asym hmm catch/throw always confused me. I stopped using it some years ago, my poor brain can only use what it understands
newTech has joined #ruby
eliasp_ has joined #ruby
<shevy> begin/rescue/end seems to flow much more naturally than catch/throw breaks
<asym> shevy: yup, and it's easy to deal with threads too, but throw/catch is much lighter weight
hiroyuki has joined #ruby
eliasp has quit [Ping timeout: 256 seconds]
ckrailo has joined #ruby
chrisja has joined #ruby
apeiros has joined #ruby
tsan has joined #ruby
wolcanus has joined #ruby
slainer68 has quit [Remote host closed the connection]
mjs2600 has joined #ruby
estan has joined #ruby
Voodoofish430 has joined #ruby
b0oh has joined #ruby
Alamo777_ has joined #ruby
Alamo777 has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
Z_Mass has joined #ruby
machuga|brb is now known as machuga
<jcromartie> Feedzirra…. grr....
carloslopes has joined #ruby
<jcromartie> seems like it sucks at handling &amp; in feeds
<jcromartie> I get &#38; out
<jcromartie> i.e. in attributes
binaryplease has joined #ruby
Kricir has quit [Remote host closed the connection]
<apeiros> &#38; is correct for &amp;
arvindravi has quit [Quit: arvindravi]
jmeling has quit [Read error: Connection reset by peer]
Vert has joined #ruby
wolcanus has quit [Ping timeout: 246 seconds]
jmeling has joined #ruby
arvindravi has joined #ruby
_nitti_ has joined #ruby
<jcromartie> apeiros: but why encode it? when reading XML into strings, it should simply return a string with the decoded entities
newTech has quit [Quit: newTech]
wsterling has joined #ruby
<jcromartie> i.e. if the XML contains an attribute value of "foo&amp;bar" then the parsed string value should be "foo&bar", and not "foo&#38;bar"
<apeiros> depends on the context. since you gave none…
<jcromartie> the context is parsing a feed
<jcromartie> into Ruby objects
<jcromartie> as is the purpose of Feedzirra
<apeiros> yeah, there's parts in a feed where it should stay encoded :)
ephemerian has joined #ruby
<jcromartie> that would just seem to lead to double encoding errors
<apeiros> but yes, if you want to get the plaintext out of a tag, it should no longer be
<shevy> swiss chocolate feed
<jcromartie> I'm talking about attributes here
graydot has joined #ruby
whowantstolivef1 has joined #ruby
sayan has quit [Read error: Connection reset by peer]
_nitti has quit [Ping timeout: 245 seconds]
<dawkirst> Hi, I'm trying to understand something fundamental: Heroku puts a 512Mb limit on its dynos, so is it correct to assume that your typical process should take less than 512Mb of memory?
<peta_> swiss chocolate is overrated
girija has quit [Ping timeout: 252 seconds]
decentrality has quit [Quit: decentrality]
timonv has joined #ruby
paulcc has joined #ruby
<peta_> dawkirst: without knowing heroku: i think so
brunoro has joined #ruby
<peta_> a process can try to take more, but then it will probably terminate with some fatal error
thetristan has quit [Quit: thetristan]
khismetix has quit [Ping timeout: 256 seconds]
Raydiation has left #ruby [#ruby]
tylersmith has joined #ruby
oOze has joined #ruby
<jcromartie> well this isn't a Feedzirra problem, it's either SAX Machine or Nokogiri
<apeiros> jcromartie: instead of riddling you could try to setup a minimal reproducable example and gist it
oOze has left #ruby ["Leaving"]
joofsh has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
awarner_ is now known as awarner
estan has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
joofsh has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.0]
nomenkun has quit [Ping timeout: 248 seconds]
khismetix has joined #ruby
mark_locklear has quit [Ping timeout: 246 seconds]
<Hanmac> jcromartie: Nokogiri can SAX too ... if you want ;P
decentrality has joined #ruby
monkegji_ has joined #ruby
centr0 has joined #ruby
niceguyj has quit [Quit: Textual IRC Client: www.textualapp.com]
mneorr has quit [Remote host closed the connection]
ghr has quit [Quit: Computer has gone to sleep.]
icole has joined #ruby
hamakn has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 248 seconds]
<dawkirst> peta_, makes sense. I just can't, for the life of me, imagine why my processes would take more than 500Mb, which currently it is.
malte_ has quit [Ping timeout: 246 seconds]
jzig has joined #ruby
dr_bob has left #ruby [#ruby]
<peta_> dawkirst: when your process doesn't process huge amounts (what might obviosuly explain it): me neither
_nitti has joined #ruby
jblack has quit [Quit: Lost terminal]
thomaslee has joined #ruby
<peta_> creators of language interpreters work hard on diminishing any possibility of memory leaks
<peta_> btw. what process are we talking about?
<peta_> s/huge amounts/huge amounts of data/
estan has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
_nitti_ has quit [Ping timeout: 245 seconds]
chrishunt has joined #ruby
mattbl has joined #ruby
wgosling has joined #ruby
timonv has quit [Remote host closed the connection]
adambeynon has quit [Ping timeout: 260 seconds]
carlyle has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
carlyle has joined #ruby
twoism has joined #ruby
freakazoid0223 has quit [Ping timeout: 252 seconds]
bradhe has quit [Remote host closed the connection]
<jcromartie> here's an example https://gist.github.com/jcromartie/5541754
cofin has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
nga4 has joined #ruby
paulcc has quit [Ping timeout: 255 seconds]
yann_ck has joined #ruby
dhruvasagar has joined #ruby
sambao21 has joined #ruby
<dawkirst> peta_, I guess you can classify it as a process that process huge amounts - it goes through a table of 20, 000 rows, sums about 400 values for each, cuts of the top ten then does an external API call for each.
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dawkirst> peta_, could it be the external API call that takes up a lot of memory?
<dawkirst> s/process/processes/
<MrZYX> more likely you read all rows of the table at once and get an enourmous array
mklappstuhl has joined #ruby
brunoro has quit [Quit: WeeChat 0.3.8]
alexgandy has quit [Quit: alexgandy]
sambao21 has quit [Read error: Operation timed out]
slainer68 has quit [Remote host closed the connection]
assurbanipal has quit [Remote host closed the connection]
io_syl has joined #ruby
brunoro has joined #ruby
<MrZYX> or fail to release the reference to the row
<peta_> dawkirst: yeah, what MrZYX says sounds reasonable
brunoro has quit [Remote host closed the connection]
brunoro has joined #ruby
browndawg has quit [Ping timeout: 276 seconds]
arvindravi has quit [Ping timeout: 248 seconds]
brunoro has quit [Remote host closed the connection]
<dawkirst> peta_, MrZYX, it's the former. It's exactly that. So how do I get around it, what is good design practice?
<peta_> dawkirst: maybe you should setup a local test envirnoment/vm and do some test runs whereat you monitor memory consumption of the process
LennyLinux has quit [Remote host closed the connection]
<MrZYX> that heavily depends on how you actually read the data
Hien has joined #ruby
<MrZYX> like is it csv, a sqlite database, whatever
Simone- has quit [Remote host closed the connection]
bradhe has joined #ruby
adambeynon has joined #ruby
neku has joined #ruby
jduan1981 has joined #ruby
ddfreyne has quit [Excess Flood]
robmuh has quit [Ping timeout: 245 seconds]
shime has quit [Ping timeout: 245 seconds]
<dawkirst> ah ok. It's DM with postgres. I guess I could usedderived properties in the database itself, then I don't have to compute at runtime4
banister`sleep has quit [Remote host closed the connection]
ddfreyne has joined #ruby
<MrZYX> or for a quick workaround get the row count and fetch only like 1000 rows at a time
enriclluelles has quit [Remote host closed the connection]
zeade has joined #ruby
tealmage has joined #ruby
LennyLinux has joined #ruby
arvindravi has joined #ruby
seich is now known as Seich
estan has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
wolcanus has joined #ruby
[eDu] has quit [Quit: [eDu]]
timonv has joined #ruby
yann_ck has quit [Ping timeout: 264 seconds]
gvz has joined #ruby
tjbiddle has joined #ruby
freerobby has quit [Quit: Leaving.]
tjbiddle has quit [Read error: Connection reset by peer]
waxjar has quit [Ping timeout: 245 seconds]
darkapex has quit [Ping timeout: 245 seconds]
johnnyfuchs1 has joined #ruby
rupee has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
tjbiddle has joined #ruby
Alamo777_ has quit [Read error: Connection reset by peer]
Alamo777_ has joined #ruby
falood has quit [Remote host closed the connection]
zekefast has quit [Quit: Leaving.]
mmitchell has quit [Remote host closed the connection]
darkapex has joined #ruby
robscomputer has quit [Ping timeout: 252 seconds]
mmitchell has joined #ruby
<nemesit|znc> can i add .gem files to the $LOAD_PATH somehow or do i have to extract/download the source?
waxjar has joined #ruby
johnnyfuchs has quit [Ping timeout: 276 seconds]
enebo has joined #ruby
ravster has joined #ruby
browndawg has joined #ruby
<Hanmac> nemesit|znc: .gem are ust the package format, you need them extracted or/and installed
<nemesit|znc> Hanmac k
freerobby has joined #ruby
estan has joined #ruby
graft has quit [Ping timeout: 268 seconds]
soukihei has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<MrZYX> nemesit|znc: it sounds like you want bundlers --path and maybe package features
mmitchell has quit [Ping timeout: 257 seconds]
timonv has quit [Remote host closed the connection]
arvindravi has quit [Quit: arvindravi]
<nemesit|znc> dunno i just want to have some gems in my project without cluttering other peoples computers^^
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<nemesit|znc> i'm really new to ruby and its a bit weird but not too weird
johnnyfuchs1 has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
<nemesit|znc> MrZYX i'll look at that thx
Zeev has quit [Ping timeout: 248 seconds]
<nemesit|znc> Hanmac i already have some source gems included but i thought there might be a way to avoid searching for the source and simply use gem fetch
Nautes has joined #ruby
pkrnj has joined #ruby
stu314 has joined #ruby
carlyle has quit [Remote host closed the connection]
bean__ has quit [Quit: Computer has gone to sleep.]
zeade1 has joined #ruby
zeade has quit [Ping timeout: 252 seconds]
stu314 has left #ruby [#ruby]
nga4 has quit [Ping timeout: 276 seconds]
thomaslee has quit [Remote host closed the connection]
thomasle_ has joined #ruby
monkegji_ has quit [Ping timeout: 248 seconds]
kreantos has quit [Remote host closed the connection]
richcollins has joined #ruby
JoeTheGuest_ has joined #ruby
lynaghk has joined #ruby
Nautes has quit [Quit: Leaving]
lynaghk has left #ruby [#ruby]
teclator has joined #ruby
sepp2k has joined #ruby
JoeTheGuest_ has quit [Changing host]
JoeTheGuest_ has joined #ruby
JoeTheGuest_ has joined #ruby
JoeTheGuest_ is now known as JoeTheGuest__
JoeTheGuest__ is now known as JoeTheGuest_
vetsin has quit [Quit: leaving]
suporte85 has quit [Quit: Saindo]
mr0wl has joined #ruby
b0oh has quit [Quit: Leaving.]
chrishough has quit [Quit: chrishough]
Mon_Ouie has quit [Ping timeout: 252 seconds]
buibex has joined #ruby
Al__ has quit [Quit: Al__]
<dawkirst> peta_, MrZYX, thanks
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
phantasm66 has quit [Remote host closed the connection]
Liquid-- has joined #ruby
JoeTheGuest_ is now known as JoeTheGuest
ryanhirsch has joined #ruby
pinage404 has joined #ruby
estan has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
<nettoweb> i'm using codebase exceptions to get the errors in my app, and I see a lot of request to URLs like: search?q=+ferramentas+u+u+ind%FAstria+e+com%E9rcio
mrsolo has joined #ruby
<nettoweb> i've already seen that the problem is with html special characters
alexgandy has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
jezi22 has joined #ruby
<jezi22> guys i cannot install ruby through rvm in ubuntu 12.04
MeatChicken has joined #ruby
<nettoweb> these kind of access are came from googlebot and bingbot, but I cant see these links in my website neither in google serp
soukihei has joined #ruby
chessguy has joined #ruby
<MrZYX> yeah, they seem to do random requests these days
<nettoweb> is there a way to fix these special characters before? to remove accents..
monkegji_ has joined #ruby
<MrZYX> guess you're using rails? -> #rubyonrails
mr0wl has quit [Read error: Connection reset by peer]
<MrZYX> jezi22: it's because you're missing something
<nettoweb> rails
<jezi22> MrZYX: i installed the dependencies, but when i rvm install 1.9.3 it just updates
<MrZYX> exactly
stkowski has joined #ruby
Nautes has joined #ruby
nwertman_ has joined #ruby
<jezi22> MrZYX: what do you think am i missing?
<MrZYX> something
pkrnj has quit [Quit: Computer has gone to sleep.]
Liquid-- has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 276 seconds]
headius has quit [Quit: headius]
marcdel has joined #ruby
malte_ has joined #ruby
cofin has quit [Quit: cofin]
mr0wl has joined #ruby
estan has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
alvaro_o has joined #ruby
freakazoid0223 has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
nga4 has joined #ruby
russfran1 is now known as russfrank
russfrank has quit [Changing host]
russfrank has joined #ruby
headius has joined #ruby
jezi22 has quit [Read error: Connection reset by peer]
Criztian has quit [Remote host closed the connection]
mark_locklear has joined #ruby
theSHOW has quit [Ping timeout: 248 seconds]
red5_ has joined #ruby
slainer68 has joined #ruby
linduxed has quit [Ping timeout: 246 seconds]
rezzack has joined #ruby
hamakn has joined #ruby
<red5_> hi guys! i have a problem with command gem build. it's create my .gem file normally but doesn't copy the lib dir to gem. anyone could help me ?
Nautes has quit [Quit: Leaving]
moted has quit [Quit: moted]
ananthakumaran has quit [Quit: Leaving.]
moted has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
cloaked1 has quit [Ping timeout: 245 seconds]
<MrZYX> red5_: gist your gemspec
joofsh has quit [Remote host closed the connection]
joofsh has joined #ruby
browndawg has joined #ruby
anonymuse has quit [Read error: Operation timed out]
pkrnj has joined #ruby
_Amaan has joined #ruby
MeatChicken has left #ruby [#ruby]
hamakn has quit [Ping timeout: 252 seconds]
marr has quit [Ping timeout: 252 seconds]
MeatChicken has joined #ruby
ravster has left #ruby [#ruby]
<MrZYX> if you start irb and run `git ls-files|grep -v "^\."`.split("\n") it'll show the proper array you expect?
robscomputer has joined #ruby
MeatChicken has quit [Quit: MEATCHICKEN]
adambeynon has joined #ruby
withnale has quit [Ping timeout: 252 seconds]
pandy has quit [Read error: Connection reset by peer]
<red5_> MrZYX: no, the array is empty !
pandy has joined #ruby
<MrZYX> that's your issue ;)
Ontolog has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
kil0byte has quit [Read error: Connection reset by peer]
<MrZYX> you probably want one of the examples instead: http://docs.rubygems.org/read/chapter/20#files
_Amaan_ has joined #ruby
_Amaan has quit [Ping timeout: 260 seconds]
_Amaan_ is now known as _Amaan
<apeiros> gemfile with external dependencies--
zeade1 has quit [Quit: Leaving.]
obs has quit [Quit: Konversation terminated!]
zeade has joined #ruby
nhhagen_ has joined #ruby
kirun has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
thetristan has joined #ruby
interactionjaxsn has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
peta_ has quit [Quit: peta_]
<red5_> MrZYX: Thx !
mmitchell has joined #ruby
mmitchell has quit [Remote host closed the connection]
estan has quit [Read error: Connection reset by peer]
devdazed has quit [Remote host closed the connection]
zekefast has joined #ruby
vlad_starkov has joined #ruby
mmitchell has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
blaxter has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
mattbl has quit [Quit: This computer has gone to sleep]
interactionjaxsn has quit [Ping timeout: 245 seconds]
joofsh has quit [Remote host closed the connection]
mattbl has joined #ruby
nettoweb has quit [Quit: nettoweb]
Neomex has quit [Quit: Neomex]
BizarreCake has quit [Remote host closed the connection]
johchri has quit [Quit: Textual IRC Client: www.textualapp.com]
mklappstuhl has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
Alamo777_ has quit [Read error: Connection reset by peer]
rdark has quit [Quit: leaving]
Alamo777_ has joined #ruby
brianpWins has joined #ruby
estan has joined #ruby
carlyle has joined #ruby
Z_Mass has quit [Quit: Leaving]
nwertman_ has quit [Quit: leaving]
browndawg has left #ruby [#ruby]
ramblex has quit [Quit: Leaving]
mklappstuhl has quit [Remote host closed the connection]
dettoaltrimenti has joined #ruby
dettoaltrimenti has quit [Quit: leaving]
nwertman_ has joined #ruby
mr0wl has quit [Read error: Connection reset by peer]
dettoaltrimenti has joined #ruby
richcollins has quit [Quit: richcollins]
jamie_ca_ has quit [Ping timeout: 276 seconds]
pi3r has quit [Quit: Leaving]
anildigitl is now known as anildigital
haxrbyte_ has quit [Remote host closed the connection]
jamie_ca_ has joined #ruby
haxrbyte has joined #ruby
stkowski has quit [Quit: stkowski]
niceguyjames has joined #ruby
ehaliewicz has joined #ruby
freerobby has quit [Quit: Leaving.]
anildigital has quit [Changing host]
anildigital has joined #ruby
freerobby has joined #ruby
ffranz has quit [Read error: Operation timed out]
princebot has joined #ruby
lethan has joined #ruby
Hien has quit [Remote host closed the connection]
freerobby has quit [Client Quit]
<shevy> oh man
<shevy> I am reading up on UTF-8
<shevy> it's so boring
karancho has joined #ruby
freerobby has joined #ruby
mr0wl has joined #ruby
stkowski has joined #ruby
Xeago has quit [Remote host closed the connection]
<princebot> UTF-8 is … not sexy
<princebot> Really good stuff to understand though
chrishough has joined #ruby
Hien has joined #ruby
LennyLinux has quit [Remote host closed the connection]
<otters> It's cool
<otters> I like UTF-32 though
mattbl has quit [Quit: This computer has gone to sleep]
zigomir has joined #ruby
Kelet has joined #ruby
nhhagen has quit [Disconnected by services]
nhhagen_ is now known as nhhagen
<shevy> why
<shevy> can't we all agree on one UTF to rule them all :(
nomenkun has joined #ruby
zastern has quit [Read error: Connection reset by peer]
<MrZYX> exactly. Did you fix your client yet? :P
zastern has joined #ruby
mattbl has joined #ruby
troessner has quit [Quit: Leaving]
dmiller has quit [Ping timeout: 264 seconds]
<ChristianS> UTF-8 is sexier than UTF-16, so that settles it
nomenkun has quit [Read error: Connection reset by peer]
ehaliewicz has quit [Read error: Connection reset by peer]
johnnyfuchs has joined #ruby
ehaliewicz has joined #ruby
joofsh has joined #ruby
sailias has quit [Ping timeout: 248 seconds]
<shevy> MrZYX my client is fine
<shevy> I just don't use UTF* :\
khismetix has joined #ruby
estan has quit [Ping timeout: 255 seconds]
Coolhand has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
kwerle has joined #ruby
Coolhand has joined #ruby
<otters> that's a bad idea
<otters> you should probably use utf8
<otters> it's the standard
<shevy> what advantage does it give me?
<kwerle> I have a really basic question about arrays. Is there an array method such that ary.really_at_index(-1) will return nil? That is, I don't want -number to wrap in this particular case...
<MrZYX> people can read _everything_ you write
<otters> people can read everything you write
<shevy> kwerle not sure I understand, array = [1,2,3,4,5,6] now you want to have what exactly?
sayan has joined #ruby
<shevy> hah cool
<canton7> tharray[-1] == nil, I assume
<shevy> array[-1] # => 6
<canton7> instead of indexing from the end
<shevy> aha, I see
cofin has joined #ruby
<shevy> I think I read this for the first time now
johnnyfuchs has quit [Remote host closed the connection]
<ssvo> couldnt you just create your own method to do it?
<shevy> that someone wants nil when giving negative arguments to []
johnnyfuchs has joined #ruby
pinpin404 has joined #ruby
<shevy> kwerle you could define your own method on arrays
<kwerle> ary[0] => 1
<MrZYX> yeah, just catch it on the caller side, arry[idx] unless idx < 0
<shevy> class Array; def really_at_index(i); # fill code here end;end
<kwerle> ary.really_at_index(0) => 1
<kwerle> ary.really_at_index(-1) => nil
<shevy> class Array; def really_at_index(i); self[i] unless i < 0; end;end
<kwerle> Yeah, just wanting to avoid reinventing the wheel if it's already in there and I didn't notice.
shadoi has joined #ruby
<shevy> let's improve on it until it works :P
<ssvo> ah
<MrZYX> a negative index doesn't make sense, your code shouldn't want the "real element at -1"
pinage404 has quit [Ping timeout: 264 seconds]
<ssvo> ^
<shevy> how about the block form?
LennyLinux has joined #ruby
<shevy> hmm
<kwerle> Says you. I have a case where I would like to ask the array who my left neighbor is. How would you do that, MrZYX? Keep in mind that I also have a few parallel arrays and will want to ask them their neighbors, too.
<shevy> does not seem to do what he wants to have
<MrZYX> inside what? a method? a loop?
estan has joined #ruby
<shevy> well, index-1 unless array.first == i
<kwerle> The simple answer is that this is a table holding objects taht are location sensitive.
banister`sleep has joined #ruby
pasties has quit [Quit: Gone]
nomenkun has joined #ruby
<kwerle> OK - thanks, all, for the sanity check!
<MrZYX> index -= 1; return if index < 0; if inside a method, if in a loop incorporate index >= 0 into th condition or do break if indey < 0
xardas has joined #ruby
withnale has joined #ruby
joofsh has quit [Remote host closed the connection]
includex has quit [Quit: Leaving...]
<MrZYX> or do a wrapper class that does that checks
nettoweb has joined #ruby
<MrZYX> it's not the responsibility of the array to know that 0 can't have a left neighbour
roadt has quit [Ping timeout: 248 seconds]
codespectator has joined #ruby
chipotle has joined #ruby
suporte85 has joined #ruby
EvanR has joined #ruby
<EvanR> how do i convert a string to an integer
<MrZYX> .to_i
kwerle has quit [Ping timeout: 245 seconds]
<EvanR> how do i get it to throw an error when the string cant be interpreted as an integer
wesside_ has joined #ruby
LennyLinux has quit [Remote host closed the connection]
<EvanR> .to_i gives zero
pinpin404 has quit [Read error: Connection reset by peer]
pinpin404 has joined #ruby
<EvanR> raise TypeError if !foo.match(/\d+/)
<MrZYX> I'm unaware of a builtin method, you can validate the string first with raise ArgumentError unless str ~= /\d+/
amarraja has joined #ruby
pinpin404 has quit [Client Quit]
interactionjaxsn has joined #ruby
setient_ is now known as setient
<EvanR> ok
pinpin404 has joined #ruby
<shevy> MrZYX who are you on rubygems.org ?
<MrZYX> same everywhere
kf8a has joined #ruby
jamesfung14 has quit [Quit: Leaving]
<Hanmac> Evan & MrZYX use the Integer() method ;P
<MrZYX> ah right, that ugly thing
<shevy> hehe
arya has quit [Ping timeout: 248 seconds]
<shevy> that's Hanmac's speciality
<shevy> ugly code :D
<MrZYX> srsly, a method with an uppercase letter in it
ephemerian has joined #ruby
* Hanmac knows the dark side of Ruby ;P
<ericwood> camelcase, brah
elaptics is now known as elaptics`away
<shevy> def IntEger
<shevy> we could get rid of class
<shevy> def Array
<shevy> ^^^ that is like a class now
<shevy> def array
<shevy> ^^^ and that is a method
<shevy> Hanmac, go file a bug report
<shevy> you have a "guten Draht" to matz
Mon_Ouie has joined #ruby
<MrZYX> why not Fixnum.new :/
tealmage has quit [Remote host closed the connection]
<shevy> matz said ruby is too slow already
<shevy> he will fix ruby for 3.0
<shevy> when it will become mruby
arya has joined #ruby
<shevy> MRuby::CrossBuild.new('Minimal') do |conf|
<shevy> toolchain :gcc
<shevy> hey
<shevy> that could be used for a package manager
dmiller has joined #ruby
dustint_ has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
pandy has quit [Read error: Connection reset by peer]
nfk has quit [Quit: yawn]
pandy has joined #ruby
<Quadlex> Man, can you imagine moving to a language without a bundler?
<MrZYX> the guys here hate bundler
pandy has quit [Read error: Connection reset by peer]
* Hanmac can live without bundle
estan has quit [Read error: Connection reset by peer]
pandy has joined #ruby
<Quadlex> I hated working in languages without decent package managers. Playing "Hunt the Dependency" with Java and C# sucked.
* MrZYX gets popcorn
<Hanmac> shevy: my current new ticket will me virtual global variables and hooked global variables ... you can define them in CApi but not in ruby itself
<Quadlex> MrZYX: Oh, I couldn't be bothered arguing if they don't like Bundler.
lushious_ has joined #ruby
<Hanmac> Quadlex: ruby has the *.gem files ... they are totaly indipend from bundle
<Quadlex> Hanmac: I am aware.
dustint_ has quit [Quit: Leaving]
SeriousMatters has quit [Read error: Connection reset by peer]
dustint_ has joined #ruby
<Quadlex> But in C# before Nuget you were dicking around finding DLLs yourself, then adding them using Visual Studio or XML wunkery to your project
<Quadlex> And in Java it's either "However your container does it", "Class Path Madness" or "JAR file full of EVERYTHING!"
lushious has quit [Ping timeout: 252 seconds]
<Hanmac> C# is shitty .. dont compare it with ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
invisime has left #ruby [#ruby]
<shevy> all I know is
<banister`sleep> Hanmac: seen james baxter?
<shevy> last time I tried rails tutorial
<shevy> it gave me a bundler command
<shevy> which didn't work
sailias has joined #ruby
jdunck has joined #ruby
<Hanmac> C# has PREPROCESSOR directives ONLY for FOLDING CODE ... that what comments are for, or maybe namespaces
<Hanmac> i have never seen such a SHITTY Feature ever before
scrogson_ is now known as scrogson
ebobby has joined #ruby
<Hanmac> banister`sleep: not yet, but i am at home so i can DDL it
<banister`sleep> Hanmac: just watch it here (one sec)
kemist has joined #ruby
<shevy> Quadlex but if noone argues in favour of bundler, it's boring :(
linduxed has joined #ruby
<shevy> Hanmac how do these global variables differ?
kemist has quit [Remote host closed the connection]
<shevy> and if a variable is restricted, how could it be called global?
<shevy> semi-global, quarter-global, far-away-from-global variables
joofsh has joined #ruby
kemist has joined #ruby
jdunck has quit [Client Quit]
tealmage has joined #ruby
jdunck has joined #ruby
freerobby has quit [Quit: Leaving.]
icole has quit [Remote host closed the connection]
emmanuelux has quit [Ping timeout: 246 seconds]
estan has joined #ruby
chessguy has quit [Remote host closed the connection]
amarraja has quit [Quit: Computer has gone to sleep.]
<aedorn> I like Go's dependency management ... sometimes I wish Ruby had the same thing, but only sometimes. Like an hour ago, but not two hours.
invisime has joined #ruby
dustint_ has quit [Quit: Leaving]
<Hanmac> shevy look at:
<Hanmac> rb_define_virtual_variable #has getter and setter methods, but does not use Memory
<Hanmac> rb_define_readonly_variable # uses Memory, but raise an Error when trying to write
<Hanmac> rb_define_hooked_variable #has getter and setter methods but does also use Memory
chrishough has quit [Ping timeout: 268 seconds]
joofsh has quit [Remote host closed the connection]
<bricker> What's a better way to do this? (the "load" method) - https://gist.github.com/bricker/5542801 I feel like defining "loader = nil" at the start and then defining it in that block is a bad pattern to use
chrishough has joined #ruby
danslo has joined #ruby
mattbl has quit [Quit: Leaving]
freerobby has joined #ruby
<lectrick> Is there any event that fires when the end of a file that is required is reached? Sort of like an at_exit but like an at_end_of_file ?
<canton7> just put a method call there?
arya has quit [Ping timeout: 248 seconds]
<lectrick> canton7: i could... but that's ugly haha
<banister`sleep> lectrick: you can fire your own event when you reach EOF
<lectrick> banister`sleep: yeah I was considering that, but basically i want something to fire when the end of the file I'm in is reached
<lectrick> without putting a method there, unless I have to
<aedorn> bricker: loader = MODULES.find {|m| m.try_url(url)} will do the same thing since Array#find will return the result when it evals to true anyway
Seich is now known as seich
chipotle has quit [Quit: cya]
Nisstyre has joined #ruby
joofsh has joined #ruby
generalissimo is now known as generalpoopnap
ffranz has joined #ruby
<aedorn> Hongkong Post to US Postal Service ... it's like a game! Who loses the package first?! It only needs to exchange carriers 5 times, and go through 4 systems to get here!
arya has joined #ruby
staafl has quit [Ping timeout: 252 seconds]
estan has quit [Read error: Connection reset by peer]
Faris9 has joined #ruby
arya has quit [Client Quit]
kiri has quit [Ping timeout: 252 seconds]
kiri has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
axl_ has joined #ruby
jdunck has joined #ruby
<kemist> Is there any way to see the raw Mongo query created by Mongoid while insidean interactive session, for example, while using pry or irb? https://gist.github.com/kemist/5542927
emmanuelux has joined #ruby
jdunck has quit [Client Quit]
reset has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
<shevy> aedorn hehe
<shevy> aedorn Hong Kong is an awesome town though
joofsh has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
<bricker> aedorn: Oh, it returns the result... I thought it returned the object that it was iterating over (i.e., it would return the module, not the result of try_url)
<bricker> aedorn: wait, that doesn't seem to be the case
khismetix has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
khismetix has joined #ruby
estan has joined #ruby
joofsh has joined #ruby
Azulinho has joined #ruby
<Hanmac> bricker: MODULES.inject(nil) {|ret,c| ret || c.try_url(url)}
blaxter has quit [Ping timeout: 252 seconds]
jdunck has joined #ruby
volte has quit [Read error: Connection reset by peer]
volte has joined #ruby
lethan has quit [Remote host closed the connection]
wallclockbuilder has joined #ruby
slainer68 has joined #ruby
JMcAfreak has joined #ruby
forlin has quit [Remote host closed the connection]
adambeynon has joined #ruby
newUser1_ has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
<aedorn> oh geeze, yeah, do what Hanmac said. Not sure why I went for value over object ...
<aedorn> shevy: I'm sure Hong Kong is amazing .... I don't know about Hongkong Post
<shevy> hehehe
<Hanmac> "do what Hanmac said." ... i will print this and Frame it on my 4th-Wall ;P
<aedorn> ... wow, I'm just making all kinds of mistakes today. =p
lufi has quit [Ping timeout: 246 seconds]
reset has quit [Quit: Linkinus - http://linkinus.com]
<aedorn> I had to boot Windows, so my brain shut down.
jamie_ca_ has quit [Ping timeout: 268 seconds]
jamie_ca_ has joined #ruby
<lectrick> aedorn: How did you fight through all the security naggings and reboot warnings?
lewix has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
<aedorn> lectrick: I clicked "OK"
icole has joined #ruby
apeiros has joined #ruby
lufi has joined #ruby
<aedorn> I don't actually *read* the stuff!
chrishunt has quit [Quit: ZzZzZz...]
foxnewsnetwork has joined #ruby
<Hanmac> lectrick, aedorn put http://www.mikrocontroller.net/attachment/59990/Trinkvogel.JPG this on the enter key
breakingthings has quit [Quit: breakingthings]
estan has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
<foxnewsnetwork> does anyone know if 2.0.0 implemented tail-call optimization or not? I need to know so I can decide if I need to turn my tco-dependent code into a shitty while loop or not
vlad_starkov has joined #ruby
<Hanmac> lectrick: on linux i also got errors like ""Report a problem ..." terminated unexpectedly" ;P
<MrZYX> you mean on ubuntu?
<Hanmac> MrZYX: more or less, do you have a problem with that? ;P
<shevy> only noobs use ubuntu
<MrZYX> ubuntu does that popups _a lot_ more ;)
<shevy> Hanmac, do you use Unity?
Kelet has quit [Read error: Connection reset by peer]
<MrZYX> over here only gnome shell refuses me to tell what went wrong when it crashes and displays a "Oh noes"
<Hanmac> shevy: never, i prefered gnome-classic but now i have cinnamon
peta_ has joined #ruby
estan has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
Alamo777_ has quit [Read error: Connection reset by peer]
johnnyfuchs1 has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
wildcard0 has quit [Ping timeout: 252 seconds]
wildcard0 has joined #ruby
chandankumar has quit [Ping timeout: 252 seconds]
<shevy> Hanmac you betray the ubuntu team!
<shevy> they want you to use UNITY
jeebster has joined #ruby
johnnyfuchs has quit [Ping timeout: 245 seconds]
<banister`sleep> Hanmac: james baxter?
<Hanmac> i am sitting on a PC not a Touch system
Loaft has joined #ruby
marxarelli has joined #ruby
<jeebster> are there any erubis options to not parse undefined variables?
kf8a has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
<Hanmac1> (22:05:04) Hanmac: banister not yet
kf8a has joined #ruby
mr0wl has quit [Quit: leaving]
<banister`sleep> Hanmac1: hurry, i wanna talk about it with you
corehook has quit [Read error: Operation timed out]
Hanmac has quit [Ping timeout: 246 seconds]
banjara has joined #ruby
emmanuelux has quit [Ping timeout: 256 seconds]
cantonic has joined #ruby
s0ber_ has joined #ruby
Alamo777 has joined #ruby
pskosinski has quit [Ping timeout: 252 seconds]
Hanmac1 is now known as Hanmac
Alamo777 has quit [Read error: Connection reset by peer]
Alamo777_ has joined #ruby
s0ber has quit [Ping timeout: 260 seconds]
s0ber_ is now known as s0ber
<whowantstolivef1> hi, im doing beginner examples in ruby and i have a file with name numbers.rb and i have some variables that asking and calculating to and etc.. in this file... as IDE i use Rubymine 4.5 i want ask when i run code in console, can i specify any local variable to make run ? because when i run all file, i again fill all questions and other variables.
stoic_squirrel has joined #ruby
ryanhirsch has quit [Quit: Computer has gone to sleep.]
richcollins has joined #ruby
krainboltgreene has joined #ruby
pskosinski has joined #ruby
<Hanmac> banister`sleep: did you watch "Eerie, Indiana" ?
<banister`sleep> Hanmac: Yes.
<banister`sleep> Hanmac: it was good
<banister`sleep> haven't watched it in about 10 years though
nomenkun has quit [Remote host closed the connection]
<Hanmac> the veryvery best episode was "Reality Takes a Holiday" ;P
ppppaul has joined #ruby
<ppppaul> how to ruby?
krawchyk has quit [Remote host closed the connection]
princebot_ has joined #ruby
<Sou|cutter> ppppaul: first, use brain.
<ppppaul> this is hard
sideshowcoder has quit [Read error: Operation timed out]
princebot_ has left #ruby [#ruby]
<ppppaul> what do you rubies think of function ruby?
<Sou|cutter> ppppaul: when smoke comes out, take a break
princebot has quit [Ping timeout: 252 seconds]
jdunck has joined #ruby
aedorn has quit [Quit: Leaving]
jrendell has joined #ruby
graydot has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
graydot has joined #ruby
wallclockbuilder has quit [Ping timeout: 245 seconds]
pcarrier has quit [Quit: Computer has gone to sleep.]
<Hanmac> ppppaul: you can try functional programming, but on ruby its only object programming in disguising
Z_Mass has joined #ruby
<ppppaul> um
richcollins has quit [Quit: richcollins]
sideshowcoder has joined #ruby
<ppppaul> the only thing i think i need to worry about is that ruby isn't lazy
SecretAgent has quit [Remote host closed the connection]
monkegji_ has quit [Ping timeout: 245 seconds]
estan has quit [Read error: Connection reset by peer]
<Sou|cutter> ppppaul: ruby 2 has lazy enumerators
haxrbyte has quit [Remote host closed the connection]
<ppppaul> i don't know if i'm on ruby 2
<ppppaul> that sounds nice, though
haxrbyte has joined #ruby
<ppppaul> that would take a lot of pain out of fun FP
* Hanmac wrote a ruby test game with 230 FPS ... so ruby can be fast if it wants
<ppppaul> i have a graphics programming background
<ppppaul> and FP background
<ppppaul> i am good at figuring out how to make things fast when i want them to be
pipework has quit [Remote host closed the connection]
Eldariof-ru has quit [Read error: Operation timed out]
<ppppaul> i'm also really good at breaking things
alanp_ is now known as alanp
<Sou|cutter> Hanmac: What things did you have to optimize to get there? Or is it not rendering much?
<Hanmac> Sou|cutter: i use an C++ GPU accelerated Rendering engine for that ... inside ruby ;P
richcollins has joined #ruby
<Sou|cutter> ah, figures.
pandy_ has joined #ruby
wallclockbuilder has joined #ruby
<Hanmac> ... but its not finish yet and i didnt have the time recently :(
aedorn has joined #ruby
foxnewsnetwork has left #ruby [#ruby]
mikepack has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
pandy has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
freerobby has quit [Quit: Leaving.]
wallcloc_ has joined #ruby
<krainboltgreene> Would the world be a better place if Ruby tossed Classes, inheritance, and moved a prototype architecture?
wallclockbuilder has quit [Ping timeout: 245 seconds]
estan has joined #ruby
<marxarelli> i'm not sure. has javascript's prototype architecture made the world a better place?
gvz has quit []
Ontolog_ has joined #ruby
wallcloc_ has quit [Remote host closed the connection]
mawueli has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
<krainboltgreene> Prototyping hurts in Javascript, though.
mikepack has joined #ruby
dmiller has joined #ruby
Ontolog has quit [Read error: Operation timed out]
kristofers has quit []
<marxarelli> krainboltgreene: i'm not sure about 'hurts', but it definitely confuses people. and many libraries tend to try and emulate classes which compounds the confusion
<krainboltgreene> Io did it beautifully, and very performant.
nwertman_ has quit [Remote host closed the connection]
mneorr_ has joined #ruby
lufi has quit [Read error: Operation timed out]
emptymag00 has joined #ruby
mark_locklear has quit [Ping timeout: 260 seconds]
jlast has joined #ruby
Azulinho has quit [Ping timeout: 252 seconds]
obfuscate2 has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
<shevy> Io uses := for assignment
Marco__ has joined #ruby
<shevy> Ruby should do away with the distinction between classes and modules
Marco__ is now known as Marco
decentrality has quit [Quit: decentrality]
ebobby has quit [Ping timeout: 260 seconds]
<shevy> javascript prototype model is annoying, I find javascript in itself very annoying and only successful because it is the monopoly in the browser language
<shevy> but no worries, dart will destroy javascript
<ppppaul> js without prototype is simple
wolcanus has quit [Remote host closed the connection]
Shoobdidoo has joined #ruby
rouss has joined #ruby
yann_ck has joined #ruby
Shoobdidoo has quit [Client Quit]
pcarrier has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mawueli_ has joined #ruby
<Sou|cutter> shevy: totally agree
mawueli has quit [Ping timeout: 255 seconds]
ebobby has joined #ruby
<aedorn> shevy: I don't know about that ...
alexgandy has quit [Quit: alexgandy]
mljsimone has quit [Ping timeout: 255 seconds]
sepp2k has quit [Remote host closed the connection]
tv7497 has joined #ruby
Tricon has quit [Ping timeout: 248 seconds]
dangerousdave has joined #ruby
tv7497 has left #ruby [#ruby]
lufi has joined #ruby
<krainboltgreene> I do dislike := for assignment, shevy.
<aedorn> First you'd need all browsers to support Dart, and there's really no plans of it besides Chrome/Chromium with the embedded Dart VM. Mobile devices aren't where they need to be in order to not care about the performance difference - especially on devices where it makes a difference (Firefox OS would be the current example.)
wolcanus has joined #ruby
<krainboltgreene> Embedded VM. There's no Dart VM plans.
crazymykl has quit [Read error: Connection reset by peer]
Tricon has joined #ruby
mawueli_ has quit [Ping timeout: 245 seconds]
chrishunt has joined #ruby
arya has quit [Ping timeout: 248 seconds]
crazymykl has joined #ruby
mawueli has joined #ruby
estan has quit [Read error: Connection reset by peer]
<aedorn> Alternatively, which is more likely, we'll get better optimization to get 90% of the performance back from the compilation of Dart to JS, but even then it if you want to optimize further that means knowing and writing pure JS.
obfuscate2 has quit [Quit: Leaving]
arya has joined #ruby
marr has joined #ruby
tealmage has quit [Remote host closed the connection]
yalue has quit [Read error: Connection reset by peer]
<aedorn> Then, of course, you have to get everyone writing Dart instead of JS. Which is going to be hard. It's going to open another language debate about what is better, and maybe 20 years down the line we'll have a change (or not!)
mawueli has quit [Ping timeout: 268 seconds]
lewix has joined #ruby
daniel_hinojosa has joined #ruby
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
<shevy> krainboltgreene what was cool in Io was introspection
<shevy> ruby still isn't there :(
<aedorn> And finally, you still have to compete with JavaScript, which over the years has definitely gotten better. A lot better. And let's not rule out device fragmentation as there will always be outliers. Nope... JS is here to stay for a long while still.
iPhoneMRZ has joined #ruby
joofsh has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
iPhoneMRZ has quit [Client Quit]
decentrality has joined #ruby
joofsh has joined #ruby
Lubinski has quit [Quit: Leaving]
xardas has quit [Changing host]
xardas has joined #ruby
freerobby has joined #ruby
emmanuelux has joined #ruby
<krainboltgreene> shevy: Damn straight.
v0n has quit [Ping timeout: 245 seconds]
<krainboltgreene> shevy: Also, how all of Io looked like all of Io. No surprises. No "Well it's something entirely different when used in this context"
<shevy> hmm
robscomputer has quit [Read error: Connection reset by peer]
<shevy> Ruby + Io + Erlang
<shevy> that would be a mix
Ontolog has joined #ruby
geekbri has quit [Remote host closed the connection]
<shevy> but it must retain beautiful syntax
<krainboltgreene> Ruby + Io is just Ruby minus half.
robscomputer has joined #ruby
estan has joined #ruby
<krainboltgreene> Which isn't a bad thing.
<shevy> Io is a simpler language than Ruby right?
<shevy> conceptually
<krainboltgreene> Significantly.
<krainboltgreene> Like no classes.
spalenza has quit [Remote host closed the connection]
<krainboltgreene> In some ways bad, though. For instance no literals for common types ([], {}, etc)
johnnyfuchs1 has quit [Remote host closed the connection]
Ontolog_ has quit [Ping timeout: 268 seconds]
johnnyfuchs has joined #ruby
wsterling has quit [Read error: Connection reset by peer]
wsterling has joined #ruby
arya has quit [Ping timeout: 248 seconds]
robscomputer_ has joined #ruby
zastern_ has joined #ruby
robscomputer has quit [Ping timeout: 245 seconds]
ozzloy has joined #ruby
camt has quit [Changing host]
camt has joined #ruby
wedgex has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
ziprar has joined #ruby
ziprar has quit [Changing host]
ziprar has joined #ruby
zastern has quit [Ping timeout: 252 seconds]
mjs2600 has quit [Ping timeout: 245 seconds]
paulswil_ has joined #ruby
alexgordon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
postmodern has joined #ruby
zipace has quit [Ping timeout: 252 seconds]
Kar- has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 245 seconds]
arya has joined #ruby
apeiros has quit [Remote host closed the connection]
slash_nick has joined #ruby
jacobw has quit [Quit: WeeChat 0.4.0]
paulswil_ has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has joined #ruby
pitzips has joined #ruby
khismetix has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 252 seconds]
Azulinho has joined #ruby
krainboltgreene has quit [Ping timeout: 256 seconds]
codespectator has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<alex__c2022> anyone in nyc looking for a full time ruby dev job?
Al__ has joined #ruby
aces23up has quit [Ping timeout: 252 seconds]
zastern_ has quit [Remote host closed the connection]
JMcAfreak has quit [Read error: Connection reset by peer]
zastern has joined #ruby
estan has quit [Read error: Connection reset by peer]
<pandy_> This guide http://guides.rubyonrails.org/routing.html refers to the "Rails Router". In a simple Rails application, does this refer to the routes.rb file, found at root/config/routes.rb ?
<ericwood> routes.rb defines the routes that the rails router uses
JMcAfreak has joined #ruby
<ericwood> also, #rubyonrails
blacktulip has quit [Remote host closed the connection]
JMcAfreak has quit [Read error: Connection reset by peer]
carloslopes has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
<pandy_> right!
<pandy_> so what exactly is the rails router
<pandy_> ?
<pandy_> and where?
evenix has joined #ruby
kleinerdrache has quit [Quit: Ex-Chat]
<Hanmac> alex__c2022: with or without rails?
nettoweb has quit [Quit: nettoweb]
<ericwood> pandy_: it is code that does routing
<ericwood> it lives in rails
<ericwood> it takes in HTTP requests for certain URLs and delegates them to the correct controllers/actions
nomenkun has joined #ruby
<pandy_> I see..not them I'm going to do any poking around, but just so I get my head around it, does it live inside the gem?
crazymykl has quit [Read error: Connection reset by peer]
<pandy_> *not that I'm
<ericwood> it's part of the Rails library
* ericwood can't remember which of the 100 Rails dependencies houses the router
crazymykl has joined #ruby
cantonic has quit [Quit: cantonic]
<pandy_> yes :L
<ericwood> but it's really not something you should care about for now if you're getting started
<pandy_> I agree!
<pandy_> thanks
<ericwood> just know it exists and is an integral part of rails
<pandy_> yep
crazymykl has quit [Remote host closed the connection]
<pandy_> a blackbox
kobain has quit [Remote host closed the connection]
<ericwood> not really
kobain has joined #ruby
crazymykl has joined #ruby
ozzloy has quit [Ping timeout: 256 seconds]
<pandy_> YES REALLY
<ericwood> the source is online, go read it
ebobby has quit [Ping timeout: 245 seconds]
<ericwood> you are not ready to open the box
<ericwood> so don't
Neomex has joined #ruby
Spooner has joined #ruby
<pandy_> haha
<ericwood> you do not have my permission to peek inside yet
estan has joined #ruby
<ericwood> finish reading the railsguides
<pandy_> yes
marxarelli has left #ruby [#ruby]
<pandy_> my brain would probably melt like something out of a HP Lovecraft story
ebobby has joined #ruby
dustint has quit [Ping timeout: 245 seconds]
DrShoggoth has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 252 seconds]
wsterling has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
robscomputer_ has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
JMcAfreak has joined #ruby
arya has quit [Ping timeout: 248 seconds]
emergion has joined #ruby
DrShoggoth has joined #ruby
jmeling has quit [Read error: Connection reset by peer]
ossareh has joined #ruby
jcromartie has quit [Quit: Computer has gone to sleep.]
JMcAfreak has quit [Read error: Connection reset by peer]
wsterling has joined #ruby
wsterling has quit [Remote host closed the connection]
tsan has quit [Quit: Leaving.]
whowantstolivef1 has quit [Quit: quit]
arya has joined #ruby
kobain has quit [Remote host closed the connection]
kobain has joined #ruby
kf8a has joined #ruby
Tricon has quit [Quit: Leaving...]
Z_Mass has quit [Ping timeout: 256 seconds]
karancho has quit [Remote host closed the connection]
Macaveli has joined #ruby
machuga is now known as machuga|away
wgosling has left #ruby ["Konversation terminated!"]
blf has joined #ruby
monkegjinni has quit [Remote host closed the connection]
cek has quit [Ping timeout: 276 seconds]
Al__ has quit [Quit: Al__]
crazymykl has quit [Remote host closed the connection]
JMcAfreak has joined #ruby
kobain has quit [Remote host closed the connection]
crazymykl has joined #ruby
crazymykl has quit [Client Quit]
kobain has joined #ruby
failshell has quit [Remote host closed the connection]
Tricon has joined #ruby
neku has quit [Quit: Leaving...]
kofno has quit [Remote host closed the connection]
crazymykl has joined #ruby
LennyLinux has joined #ruby
Al__ has joined #ruby
jovy88 has joined #ruby
decentrality has quit [Quit: decentrality]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
akells` has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
SAUCYSALAMANDER has joined #ruby
interactionjaxsn has joined #ruby
slash_nick has quit [Ping timeout: 256 seconds]
joofsh has quit [Remote host closed the connection]
Macaveli has quit [Read error: Connection reset by peer]
slash_nick has joined #ruby
corehook has joined #ruby
estan has quit [Read error: Connection reset by peer]
jeebster1 has joined #ruby
Marco has quit [Ping timeout: 252 seconds]
Neomex has quit [Quit: Neomex]
Progster has quit [Ping timeout: 255 seconds]
jeebster has quit [Ping timeout: 252 seconds]
<blf> Hey guys, I'm pretty new to unit testing. I'm wondering if something like test_constructor_with_valid_arguments_returns_valid_and_ready_reader would be representative of a decent test, or if it's better to create tests based upon each parameter?
neku has joined #ruby
mattbl has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
interactionjaxsn has quit [Ping timeout: 256 seconds]
invisime has quit [Quit: Leaving.]
Progster has joined #ruby
jdunck has joined #ruby
mmitchel_ has joined #ruby
greenarrow has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
TheFuzzball has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
<shadoi> There are no rules, all tests are good to have.
thone has joined #ruby
<shadoi> Unless they validate broken behavior of course :)
jerius has quit [Ping timeout: 245 seconds]
<aedorn> blf: That depends on your view. Some will say don't test things that should inherently work by default. If you're doing something on the constructor other than just pure assignment, I would say test it for sure. If you aren't... it's subjective.
mmitchell has quit [Ping timeout: 245 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
jnoob22 has quit [Remote host closed the connection]
mmitchel_ has quit [Ping timeout: 252 seconds]
idkazuma has joined #ruby
<blf> aedorn: Well, I'd like to validate that an argument to the constructor is of an acceptable type (duck-typed that is). I figured that would probably dictate a test.
wolcanus has quit [Remote host closed the connection]
tspike has quit [Ping timeout: 252 seconds]
<aedorn> blf: Yes, it would.
Al__ has quit [Quit: Al__]
<blf> For instance, my reader will require methods similar to IO, so I want to validate that the object being passed responds to :readline, etc.
chrishough has quit [Quit: chrishough]
thone_ has quit [Ping timeout: 264 seconds]
johnnyfuchs has quit [Ping timeout: 268 seconds]
axl_ has quit [Quit: axl_]
mixel has joined #ruby
<blf> So then maybe a better method would be test_constructor_with_io_like_argument_returns_valid_and_ready_reader
<blf> BTW, do you guys know of any way to verify that an IO stream has been opened for reading (other than requesting stat from the operating system)?
<shadoi> blf: I usually only test the results of methods, not their arguments or intermediate states.
estan has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
tspike has joined #ruby
<blf> I didn't see anything, but it seems like that would be a property that IO should keep track of.
<shadoi> blf: IO#closed?
wolcanus has joined #ruby
wolcanus has quit [Remote host closed the connection]
<blf> shadoi: No. I don't think that would work. An IO can be opened for writing only, in which case reading fails.
<shadoi> Yeah I suppose you'd just need to read a byte and rewind it… *shrug*
xardas has quit [Ping timeout: 276 seconds]
kofno has joined #ruby
spoonman has quit [Quit: WeeChat 0.4.0]
neku has quit [Quit: Leaving...]
solrize has joined #ruby
foofoobar has quit [Quit: Computer has gone to sleep.]
<MouseTheLuckyDog> I can't find documentation for io/console.
<shadoi> select will monitor for readable/ready state but I'm not sure you can make that work
<shadoi> MouseTheLuckyDog: it's in 2.0.0
Ontolog_ has joined #ruby
<solrize> @faq tutorial
<pandy_> sorry to interupt..
<pandy_> match "/patients/:id" => "patients#show"
<pandy_> what does that # mean?
<pandy_> thanks
kofno has quit [Remote host closed the connection]
wsterling has joined #ruby
<blf> shadoi: How come you don't test method arguments? That seems like a prime candidate for unit testing to me. (verifying that the method properly accepts or rejects certain arguments)
<shadoi> blf: I think it's overly pedantic
<blf> pandy_: instance method
red5_ has quit [Quit: Page closed]
kfr2 has quit [Quit: leaving]
vaicine has quit [Ping timeout: 245 seconds]
<MouseTheLuckyDog> shadoi, thye mention it and list the methods, but not what they do.
mikepack has quit [Remote host closed the connection]
headius has quit [Quit: headius]
<MouseTheLuckyDog> and googling doesn't help
Ontolog has quit [Ping timeout: 245 seconds]
kirun has quit [Quit: Client exiting]
sailias has joined #ruby
<blf> MouseTheLuckyDog: IO::console
splittingred has quit [Quit: splittingred]
<blf> It's available through ri on my workstation.
jtharris has quit [Quit: WeeChat 0.4.0]
<blf> Returns a File instance opened console. You must require 'io/console' to use this method.
d11wtq has quit [Ping timeout: 255 seconds]
<slash_nick> blf: whatcha working on?
<blf> IO.console -> #<File:/dev/tty>
<slash_nick> is it open source?
solidoodlesuppor has quit [Remote host closed the connection]
<blf> slash_nick: It will be eventually. I'm writing a Fasta reader.
<blf> It's a pretty small project (the library will grow with time), but I figured it would be good to introduce myself to TDD.
* blf 39303 Fasta files to read in the near future :/
* slash_nick googles Fasta
robscomputer has quit [Read error: Connection reset by peer]
<blf> It's a bioinformatics sequencing format.
robscomputer has joined #ruby
backjlack has quit [Remote host closed the connection]
Z_Mass has joined #ruby
jeebster1 has quit [Quit: Leaving.]
tealmage has joined #ruby
<linduxed> blf: funny, i was going to implement a Fasta writer/reader in haskell :-P
<blf> nice :)
zigomir has quit [Ping timeout: 276 seconds]
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
enebo has quit [Quit: enebo]
jeebster has joined #ruby
<linduxed> blf: high five!
<linduxed> blf: have a reward! http://youtu.be/Xk_XaJ7gE4Q
<MouseTheLuckyDog> blf: It only describes the method not the other methods available in the module.
<blf> o/ *whack*
kf8a has quit [Quit: Computer has gone to sleep.]
alex__c2022 has quit [Quit: alex__c2022]
<linduxed> now dig the video :-D
banghouse2 has joined #ruby
arya has quit []
robottinosino has joined #ruby
SDr_ is now known as Sdr
Sdr is now known as SDr
carlyle has quit [Remote host closed the connection]
SDr has quit [Changing host]
SDr has joined #ruby
banghouse2 is now known as banghouse
Z_Mass has quit [Client Quit]
dangerousdave has quit [Quit: Leaving...]
kofno has joined #ruby
alexgordon has joined #ruby
mikepack has joined #ruby
<slash_nick> blf: neat... i was playing with IO the other day, that's why i asked... (a more trivial use of io/console https://github.com/rthbound/konamio )
dmiller has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
twoism has joined #ruby
estan has quit [Read error: Connection reset by peer]
jovy88 has quit [Ping timeout: 245 seconds]
chessguy has joined #ruby
Mortchek has quit [Ping timeout: 252 seconds]
hotrine has joined #ruby
backjlack has joined #ruby
krainboltgreene has joined #ruby
rouss has quit [Quit: Computer has gone to sleep.]
kofno has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
estan has joined #ruby
jgarvey has quit [Quit: Leaving]
Tricon has quit [Quit: Linkinus - http://linkinus.com]
_nitti has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
<peta_> strange … when doing STDIN.read everything but the last line from the input is read
<peta_> the last line is always nil value
<peta_> when I add an additional empty line as last line to the input document, it works
carlyle has joined #ruby
<peta_> is there something I have to pay attention to?
ariedler has quit [Remote host closed the connection]
Marco has joined #ruby
akhet has quit [Remote host closed the connection]
<MouseTheLuckyDog> Is there a reason the read_nonblocved command breaks system?
jovy88 has joined #ruby
<jeebster> what's the easiers way to get an instance methods parameters without instantiating a class?
chessguy has quit [Remote host closed the connection]
<Hanmac> shevy ping
mattbl has joined #ruby
<Hanmac> jeebster: Class.instance_method(:meth).parameters ?
monkegjinni has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
<jeebster> hanmac: yeah that's what I'm doing, didn't know if there was a better way
<peta_> aaaah … chomp! only returns something if the input string was changed
sambao21 has joined #ruby
<Hanmac> i dont tihnk there is a better one ... AND it may not work as you want for C methods
<peta_> aaaaaaaaaargh
chrishough has joined #ruby
<MrZYX> peta_: most bang methods behave that way ;)
<Hanmac> thats why they called "Bang!" methods ;P
<peta_> I only rememberd that banging methods work "in-place" … thus not creating a midified duplicate
<peta_> omgomg
<tylersmith> i wish there was a gem that turned my code into midi's i could listen to to power through writing more code
<banister`sleep> Hanmac: james baxter?
<jeebster> I think that dude is much less confident in his knowledge than I
<jeebster> hehe
<Hanmac> banister`sleep: not yet, you look rhis: peta_ you can use thm
<banister`sleep> Hanmac: let's watch james baxter now
<banister`sleep> Hanmac: i want to watch it again anyway, did u get the link?
<peta_> tylersmith: you better tune in plusfm, bassdrive, jammin 105 or fm4
<peta_> midi is so 90s
<tylersmith> crap, i'll have to transcode them all to wavs
theRoUS has quit [Ping timeout: 245 seconds]
gyre007 has quit [Read error: Operation timed out]
ossareh has quit [Ping timeout: 276 seconds]
<slash_nick> peta_: is it waiting for EOL or EOF?
pandy_ has quit [Ping timeout: 259 seconds]
<peta_> slash_nick: nono … the problem was chomp! (the bang version)
<peta_> :)
codemonk1y010101 has quit [Ping timeout: 264 seconds]
<MrZYX> why do you use the bang version anyway if you rely on the return value of it...
Faris9 has quit [Ping timeout: 245 seconds]
estan has quit [Read error: Connection reset by peer]
sambao21 has quit [Ping timeout: 252 seconds]
undersc0re97 has joined #ruby
nathanieldavid has joined #ruby
slash_nick has quit [Quit: leaving]
kofno has joined #ruby
EPIK has joined #ruby
sailias has joined #ruby
undersc0re97 has quit [Quit: Leaving]
newUser1_ has quit [Remote host closed the connection]
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
kofno has quit [Remote host closed the connection]
Ortuna has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
Ortuna has joined #ruby
Ortuna has quit [Client Quit]
Azulinho has quit [Ping timeout: 260 seconds]
haxrbyte has quit [Read error: Connection reset by peer]
estan has joined #ruby
pandy has joined #ruby
tylersmith has quit [Remote host closed the connection]
ipalaus has joined #ruby
swex has quit [Read error: Operation timed out]
sailias has quit [Quit: Leaving.]
swex has joined #ruby
<MouseTheLuckyDog> http://pastie.org/7820218
jlast has quit [Remote host closed the connection]
<MouseTheLuckyDog> Any idea why the second system no longer takes it's input from the tty?
mmitchell has joined #ruby
kuzushi_ has quit [Read error: Connection reset by peer]
ipalaus has quit [Client Quit]
lkba has joined #ruby
kuzushi_ has joined #ruby
kemist has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac1 has joined #ruby
zph has joined #ruby
zph has quit [Excess Flood]
KellyLSB has quit [Ping timeout: 246 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
baba has joined #ruby
megha has quit [Ping timeout: 245 seconds]
`p has joined #ruby
Mortchek has joined #ruby
mmitchell has quit [Ping timeout: 264 seconds]
rmnuvg has quit [Ping timeout: 264 seconds]
KellyLSB has joined #ruby
ffranz has quit [Quit: Leaving]
Bry8Star has quit [Ping timeout: 276 seconds]
kuzushi__ has joined #ruby
asym has quit [Quit: Lost terminal]
Umren has quit [Remote host closed the connection]
thetristan has quit [Ping timeout: 252 seconds]
fermion has quit [Quit: Computer has gone to sleep.]
ariedler has joined #ruby
Guedes0 has joined #ruby
idkazuma has quit [Remote host closed the connection]
arthurstomp has joined #ruby
kuzushi_ has quit [Ping timeout: 256 seconds]
rton has left #ruby [#ruby]
gstamp has joined #ruby
nwertman_ has joined #ruby
zekefast has quit [Ping timeout: 256 seconds]
Bry8Star has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
robscomputer has quit [Remote host closed the connection]
estan has quit [Read error: Connection reset by peer]
scottmey has quit [Quit: scottmey]
matchaw_ has quit [Ping timeout: 248 seconds]
matchaw has joined #ruby
gyre007 has joined #ruby
Jedi_SCT1 has quit [Quit: See ya]
peta_ has quit [Quit: peta_]
matchaw has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
Jedi_SCT1 has joined #ruby
mixel has quit [Quit: mixel]
freerobby has quit [Quit: Leaving.]
ZachBeta has joined #ruby
Romeu has joined #ruby
blf has quit [Quit: Page closed]
robottinosino has quit [Quit: WeeChat 0.4.0]
matchaw has joined #ruby
rmnuvg has joined #ruby
wsterling has quit [Remote host closed the connection]
danslo has quit [Quit: danslo]
estan has joined #ruby
LennyLinux has quit [Remote host closed the connection]
Yakko_ has joined #ruby
scottmey has joined #ruby
scottmey has quit [Remote host closed the connection]
pinpin404 has quit [Read error: Connection reset by peer]
scottmey has joined #ruby
Ontolog has joined #ruby
malte_ has quit [Quit: malte_]
mattbl has quit [Quit: This computer has gone to sleep]
Yakko has quit [Ping timeout: 252 seconds]
ossareh has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
reactormonk has quit [Ping timeout: 264 seconds]
Ontolog_ has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: Leaving]
spider-mario has quit [Remote host closed the connection]
headius has joined #ruby
freerobby has joined #ruby
pevjan has joined #ruby
undersc0re97 has quit [Quit: Leaving]
fail has joined #ruby
pevjan has quit [Read error: Connection reset by peer]
undersc0re97 has joined #ruby
fail is now known as Guest83841
pevjan has joined #ruby
enebo has joined #ruby
kobain has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
kobain has joined #ruby
johnnyfuchs has joined #ruby
richcollins has quit [Quit: richcollins]
carlyle has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
emergion has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
dmiller has joined #ruby
emergion has quit [Max SendQ exceeded]
chrisja has quit [Quit: leaving]
mljsimone has joined #ruby
pandy has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
estan has quit [Read error: Connection reset by peer]
cofin has quit [Quit: cofin]
Marco has quit [Read error: Operation timed out]
hotrine has quit [Ping timeout: 260 seconds]
emergion has joined #ruby
westoque has joined #ruby
emergion has quit [Max SendQ exceeded]
<westoque> Hey guys: I'm using "minitest" and making an external request to an test server I made using Sinatra and I get a Errno::ECONNREFUSED. I can't figure out why
nwertman has quit [Quit: Lost terminal]
nwertman has joined #ruby
icole has quit [Remote host closed the connection]
emergion has joined #ruby
Marco has joined #ruby
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
ephemerian has left #ruby [#ruby]
idkazuma has joined #ruby
threesome has quit [Ping timeout: 276 seconds]
AndChat| has joined #ruby
predator217 has joined #ruby
vlad_starkov has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
enebo has quit [Quit: enebo]
sayan has quit [Read error: Connection reset by peer]
d11wtq has joined #ruby
<r0bgleeson> westoque: what port is the server running on, and what port are you trying to connect to? sinatra runs on a high port in development mode.
nwertman has quit [Quit: Lost terminal]
_Amaan has quit [Quit: _Amaan]
nwertman has joined #ruby
estan has joined #ruby
nwertman has quit [Client Quit]
nwertman has joined #ruby
predator117 has quit [Ping timeout: 260 seconds]
<westoque> r0bgleeson: Sinatra is running on port 9000. I'm using minitest with selenium to make a request to that port
chessguy has joined #ruby
osvico has joined #ruby