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
r0bby has joined #ruby
chimkan has quit [Quit: chimkan]
tylersmith has quit [Quit: tylersmith]
arya has quit [Ping timeout: 248 seconds]
timmow has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
ariedler has quit [Remote host closed the connection]
choobie has joined #ruby
xlab has quit [Remote host closed the connection]
nari has joined #ruby
bigmac has joined #ruby
akhet has joined #ruby
sambao21 has joined #ruby
vlad_starkov has quit [Ping timeout: 255 seconds]
nickbend1r has quit [Quit: Lost terminal]
nickbender has quit [Quit: Lost terminal]
agarie has quit [Remote host closed the connection]
s2013 has joined #ruby
agarie has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
wargasm has joined #ruby
Rym has quit [Quit: Rym]
DonRichie has quit [Ping timeout: 276 seconds]
DonRichie has joined #ruby
Spooner has quit [Quit: Leaving]
luckyruby has joined #ruby
tds has quit [Quit: tds]
akhet has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
ttt has joined #ruby
jekotia has joined #ruby
jekotia has quit [Client Quit]
Nisstyre-laptop has joined #ruby
jamesfung14 has quit [Ping timeout: 246 seconds]
slainer68 has joined #ruby
chipotle_ has joined #ruby
kofno has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
RyanD_ has joined #ruby
love_color_text has joined #ruby
luckyruby has quit [Remote host closed the connection]
freeayu has joined #ruby
mercwithamouth has joined #ruby
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
hogeo has joined #ruby
Spooner has joined #ruby
theRoUS_ has quit [*.net *.split]
slainer68 has quit [Ping timeout: 246 seconds]
ZachBeta has joined #ruby
wesside has joined #ruby
yshh has quit [Ping timeout: 256 seconds]
crudo has left #ruby ["Leaving"]
freakazoid0223 has joined #ruby
aharl has joined #ruby
nari has quit [Ping timeout: 251 seconds]
ttt has quit [Remote host closed the connection]
chipotle_ has quit [Quit: cya]
theRoUS_ has joined #ruby
xlab has joined #ruby
chimkan has joined #ruby
eka has joined #ruby
kofno has quit [Remote host closed the connection]
yamez has joined #ruby
bhaarat has quit [Ping timeout: 246 seconds]
kofno has joined #ruby
ttt has joined #ruby
arya has joined #ruby
ttt has quit [Read error: Connection reset by peer]
ttt has joined #ruby
postmodern has joined #ruby
GeissT has joined #ruby
lukeholder has joined #ruby
jamesfung14 has joined #ruby
Astralum has quit [Ping timeout: 256 seconds]
r0bgleeson has joined #ruby
jamie_ca_ has joined #ruby
timmow has joined #ruby
newUser1234 has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 245 seconds]
jamie_ca_ has quit [Client Quit]
etcetera has joined #ruby
dmiller has joined #ruby
hamakn has joined #ruby
etcetera has quit [Client Quit]
timmow has quit [Ping timeout: 252 seconds]
davetoo has joined #ruby
etcetera has joined #ruby
kofno has quit [Remote host closed the connection]
Spooner has quit [Quit: Leaving]
marr has quit [Ping timeout: 256 seconds]
davetoo has quit [Quit: Leaving.]
etcetera has quit [Client Quit]
dhruvasagar has joined #ruby
sean_s has joined #ruby
reset has quit [Quit: Leaving...]
shirokuro11 has quit [Remote host closed the connection]
Faris9 has quit [Ping timeout: 260 seconds]
Hanmac1 has joined #ruby
bhaarat has joined #ruby
locriani has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
Hanmac has quit [Ping timeout: 256 seconds]
aedornm has joined #ruby
tomsthumb has joined #ruby
KazW has quit [Ping timeout: 264 seconds]
sean_s has quit [Changing host]
sean_s has joined #ruby
r0bgleeson has quit [Ping timeout: 245 seconds]
tjbiddle has joined #ruby
jtperreault is now known as jtperreault_
jtperreault_ is now known as jtperreault
yshh has joined #ruby
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
arya has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
netto has joined #ruby
dougireton has joined #ruby
bitZero_1 has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
arya has joined #ruby
bitZero__ has joined #ruby
poga has joined #ruby
chipotle_ has joined #ruby
philcrissman has joined #ruby
dougireton has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 252 seconds]
banisterfiend has joined #ruby
KazW has joined #ruby
SCommette has joined #ruby
osvico has joined #ruby
d11wtq has joined #ruby
KazW has quit [Client Quit]
tomsthumb has quit [Read error: Connection reset by peer]
madb055 has quit [Ping timeout: 264 seconds]
Guedes0 has quit [Ping timeout: 255 seconds]
reset has joined #ruby
reset has quit [Client Quit]
bhaarat has quit [Quit: bhaarat]
Guedes0 has joined #ruby
arya has joined #ruby
tvw has quit [Ping timeout: 258 seconds]
r0bgleeson has joined #ruby
jbueza has joined #ruby
bigmac has quit [Ping timeout: 264 seconds]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
slippyd has joined #ruby
eka has joined #ruby
alek_b has quit [Ping timeout: 256 seconds]
slippyd has quit [Client Quit]
gener1c has joined #ruby
slippyd has joined #ruby
slippyd has quit [Client Quit]
slippyd has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
arya has quit [Ping timeout: 252 seconds]
Gate has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
Gate has quit [Client Quit]
Gate has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
Domon has joined #ruby
SCommette has quit [Quit: SCommette]
arya has joined #ruby
poga has quit [Remote host closed the connection]
sleetdrop has joined #ruby
SCommette has joined #ruby
timmow has joined #ruby
bhaarat has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
BeepDog has joined #ruby
<BeepDog> howdy all
<BeepDog> I was wondering if I could get some help getting past my derpness: http://stackoverflow.com/questions/16138221/using-instance-exec-and-converting-a-method-to-a-proc
<BeepDog> it may very well be that what I'm trying to do is impossible, but I'm not sure why it's impossible
<BeepDog> or if it is possible, how I can actually do it
<BeepDog> thanks in advance
ryanh has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
chipotle_ has quit [Quit: cya]
timmow has quit [Ping timeout: 252 seconds]
tds has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
vlad_starkov has joined #ruby
hadees_ has joined #ruby
hadees has quit [Ping timeout: 246 seconds]
hadees_ is now known as hadees
cooldman224 has quit [Remote host closed the connection]
arya has quit [Ping timeout: 264 seconds]
dougireton has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
wreckimnaked has quit [Ping timeout: 256 seconds]
faldridge has joined #ruby
bean__ has joined #ruby
radic has quit [Disconnected by services]
kid_icarus has joined #ruby
radic_ has joined #ruby
kid_icarus has left #ruby [#ruby]
arya has joined #ruby
netto has quit [Quit: Leaving...]
faldridge has quit [Quit: faldridge]
nateberkopec has quit [Quit: Leaving...]
mootpointer has joined #ruby
yojimbo has quit [Quit: Leaving]
banisterfiend is now known as banister`sleep
wreckimnaked has joined #ruby
arya has quit [Ping timeout: 248 seconds]
shirokuro11 has joined #ruby
shevy has quit [Ping timeout: 248 seconds]
jfine has joined #ruby
arya has joined #ruby
<jfine> What would be a ruby shortcut for name << first_name if first_name
RyanD_ has quit []
<banister`sleep> jfine: looks short enough to me
<jfine> Ok dokie then. Thanks :-)
<jfine> Sometimes I go overboard.
Guedes0 has quit [Ping timeout: 264 seconds]
subbyyy has quit [Ping timeout: 252 seconds]
sean_s has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
chrishunt has quit [Quit: So long...]
lukeholder has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
hamakn has joined #ruby
shevy has joined #ruby
ariedler has joined #ruby
cwd1 has joined #ruby
peta_ has quit [Quit: peta_]
cwd1 has quit [Remote host closed the connection]
subbyyy has joined #ruby
lethjakm1 has joined #ruby
newUser1234 has joined #ruby
bradleyprice has joined #ruby
lethjakman has quit [Ping timeout: 255 seconds]
d2dchat has joined #ruby
chimkan has quit [Quit: chimkan]
LnL has quit [Quit: LnL]
adamjleonard has joined #ruby
nadirvardar has quit [Ping timeout: 256 seconds]
kunday has quit [Quit: Leaving...]
emergion has quit [Quit: Computer has gone to sleep.]
yugui_zzz is now known as yugui
Taichou has joined #ruby
faldridge has joined #ruby
dmiller has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
arya__ has joined #ruby
jfine has quit [Quit: Leaving.]
Davey has joined #ruby
arya__ has quit [Ping timeout: 248 seconds]
timmow has joined #ruby
ryanjh has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
jovy88 has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
Matip has joined #ruby
dougireton has quit [Quit: Leaving.]
sayan has joined #ruby
Taichou has quit [Quit: Leaving...]
justsee has joined #ruby
Astralum has joined #ruby
__alpaca has joined #ruby
arya has joined #ruby
ttt has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
Mattix has quit [Ping timeout: 264 seconds]
angusiguess has quit [Ping timeout: 256 seconds]
megha has quit [Ping timeout: 252 seconds]
__alpaca has quit [Remote host closed the connection]
omg|its|otr has joined #ruby
arya has quit [Ping timeout: 248 seconds]
<omg|its|otr> What does the @ symbol do in ruby? It's exceptionally hard to google.
<banister`sleep> omg|its|otr: same as in coffeescript
<banister`sleep> omg|its|otr: it's equivalent to 'this.' in python/javascript
<banister`sleep> just indicates an instance variable
<omg|its|otr> Ah. - I was panicking because I didn't know coffeescript
<omg|its|otr> Alright, that's simple enough, thanks.
huttan has quit [Quit: leaving]
huttan has joined #ruby
Gate has quit [Quit: leaving]
megha has joined #ruby
jfine has joined #ruby
Gate has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
<omg|its|otr> banister`sleep, do you know if there's any documents to quickly learn the unique things about ruby in terms of syntax/idioms, etc.?
arya has joined #ruby
<banister`sleep> omg|its|otr: google 'zenspider quickref'
<omg|its|otr> I'm familiar with programming so I don't want a beginners guide explaining objects, just a cheat sheet to learn with
<omg|its|otr> thanks
sambao21 has joined #ruby
newUser1234 has quit [Remote host closed the connection]
schiang has joined #ruby
dayepa1 has quit [Ping timeout: 264 seconds]
pothibo has quit [Quit: pothibo]
dayepa1 has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
bhaarat has quit [Quit: bhaarat]
Astral_ has joined #ruby
bigmac has joined #ruby
otherj has joined #ruby
f0ster has quit [Ping timeout: 246 seconds]
arya has quit [Ping timeout: 248 seconds]
devkhadka has joined #ruby
kunday has joined #ruby
kunday has quit [Read error: Connection reset by peer]
Astralum has quit [Ping timeout: 264 seconds]
chrishunt has joined #ruby
kunday has joined #ruby
pixelsnbits has joined #ruby
ttt has joined #ruby
arya has joined #ruby
<omg|its|otr> What do the | characters do in ruby - I'm skeptical it's a bitwise or =P
roadt has joined #ruby
bean__ has joined #ruby
hadees has quit [Quit: hadees]
<r0bgleeson> omg|its|otr: depends on the context.
angusiguess has joined #ruby
<omg|its|otr> r0bgleeson, can I have what it'd be called in *any* of the many contexts so I can start googling?
SegFaultAX has quit [Quit: ZNC - http://znc.in]
osvico has quit [Ping timeout: 252 seconds]
<omg|its|otr> Ruby looks so nice to use, but it's incredibly frustrating to learn syntax, none of this is googleable =\
<faldridge> #vagrant is dead right now; is there anybody here who could help with a basic vagrant question for a vagrant & ruby newb?
pixelsnbits has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sayan has quit [Read error: Connection reset by peer]
<r0bgleeson> omg|its|otr: well, what code are you looking at? if you can show it i can try to explain
Regis__ has quit [Read error: Connection timed out]
bean__ has quit [Quit: Computer has gone to sleep.]
Regis__ has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
jovy88 has joined #ruby
faldridge has quit [Quit: faldridge]
rodacato has quit [Quit: rodacato]
xlab has quit [Remote host closed the connection]
xlab has joined #ruby
arya has quit [Ping timeout: 248 seconds]
love_color_text has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
Hanmac1 is now known as Hanmac
<Hanmac> omg|its|otr: val | val2 (in this context its an bitwise or, OR an array union) ...
mockra has joined #ruby
<Hanmac> omg|its|otr: do |x| ... end (in this context its a block parameter)
chimkan has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
jfine has left #ruby [#ruby]
roadt` has joined #ruby
love_color_text has joined #ruby
hamakn has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 272 seconds]
otherj has quit []
psyprus has quit [Ping timeout: 258 seconds]
wsterling has joined #ruby
emanu has quit [Quit: emanu]
browndawg has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
<omg|its|otr> thanks Hanmac, I've found some more docs and have played wiht a few things and am starting to get it. What's the functional difference between @var and self.var?
<omg|its|otr> Because I see both being used.
emanu has joined #ruby
slainer68 has joined #ruby
<Hanmac> self.var is a method ... its possible that it can do more than just returning @var
hamakn has joined #ruby
divout has joined #ruby
<omg|its|otr> aaaaah. Right. Because methods don't need () in ruby
<omg|its|otr> Thanks, got it.
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
timmow has joined #ruby
weeb1e has joined #ruby
dmiller has joined #ruby
hadees has joined #ruby
<Hanmac> omg|its|otr: do in your console "ri \|" it shows you all the places where such a method is defined
yacks has joined #ruby
psyprus has joined #ruby
<omg|its|otr> If I have a class that has "attr_reader :name" set, is it better practice for the functions within this class to use @name or self.name to get that value?
<omg|its|otr> Or am I misunderstanding attr_reader?
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
slainer68 has quit [Ping timeout: 256 seconds]
dhruvasa1ar has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
osvico has joined #ruby
dmiller has quit [Ping timeout: 272 seconds]
ariedler has quit [Remote host closed the connection]
chimkan has quit [Read error: Operation timed out]
freakazoid0223 has quit [Ping timeout: 272 seconds]
Regis__ has quit [Ping timeout: 252 seconds]
Drakevr has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
chimkan has joined #ruby
browndawg has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
<Hanmac> omg|its|otr: inside the class you can also use @name directly if you want
sambao21 has quit [Quit: Computer has gone to sleep.]
<callmeivan> does anybody know how many users a modern CPU lets say an i7 ivy bridge can serve or can tell me which components are crucial for the performance?
<callmeivan> when running rubydns
shirokuro11 has quit [Ping timeout: 272 seconds]
<omg|its|otr> Hanmac, is there a preferred one stylistically? Or is it just whatever a dev wants?
ZachBeta has quit [Quit: Computer has gone to sleep.]
yacks has quit [Quit: Leaving]
chrishough has quit [Quit: chrishough]
<Hanmac> omg|its|otr: hm for me its preferred, but i use name when there is a function named name (wich does more than just return)
huoxito has quit [Quit: Leaving]
<Hanmac> so advanced function > @var > normal attr_reader
huoxito has joined #ruby
Pochacco has quit [Quit: Pochacco]
nga4 has joined #ruby
huoxito has quit [Read error: Connection reset by peer]
<omg|its|otr> Rad, thanks.
Pochacco has joined #ruby
yacks has joined #ruby
beneggett has joined #ruby
bradleyprice has quit [Remote host closed the connection]
ZachBeta has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
kelabot has joined #ruby
macmartine has joined #ruby
splittingred has quit [Quit: splittingred]
luckyruby has joined #ruby
progbyperm has joined #ruby
browndawg1 has joined #ruby
banister`sleep has quit [Remote host closed the connection]
browndawg1 has quit [Client Quit]
chimkan has quit [Quit: chimkan]
unstable has quit [Read error: Operation timed out]
havenwood has quit [Remote host closed the connection]
bradleyprice has joined #ruby
xlab has quit [Remote host closed the connection]
emergion has joined #ruby
rodacato has joined #ruby
unstable has joined #ruby
Kirotan has quit [Ping timeout: 245 seconds]
emergion has quit [Client Quit]
sayan has joined #ruby
wsterling has quit [Remote host closed the connection]
emergion has joined #ruby
sayan has quit [Read error: Connection reset by peer]
jp__ has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
omg|its|otr has quit [Quit: Leaving]
love_color_text has quit [Read error: Connection reset by peer]
bigmac has quit [Quit: Leaving]
arya has joined #ruby
love_color_text has joined #ruby
r0bgleeson has quit [Ping timeout: 252 seconds]
ARCADIVS has joined #ruby
echevemaster has quit [Quit: Leaving]
JonnieCache has quit [Ping timeout: 256 seconds]
JonnieCache has joined #ruby
jdunck has joined #ruby
kunday has quit [Quit: Leaving...]
rodacato has quit [Quit: rodacato]
kunday has joined #ruby
arya has quit [Ping timeout: 248 seconds]
bklane has joined #ruby
kunday has quit [Read error: Connection reset by peer]
kunday has joined #ruby
tds has quit [Quit: tds]
kunday has quit [Client Quit]
kunday has joined #ruby
tomzx_mac has quit [Ping timeout: 272 seconds]
cableray has quit [Quit: cableray]
cheese1756 has quit [Excess Flood]
cheese1756 has joined #ruby
bradhe has quit [Remote host closed the connection]
jp__ has quit [Remote host closed the connection]
arya has joined #ruby
tomsthumb has joined #ruby
<callmeivan> rubydns runs crazy as soon as i start it, (a lot of cpu usage) and it becomes unresponsive, can barely resolve anything
<callmeivan> running on a server at digital ocean
<callmeivan> however on my rpi, with the same ruby version it works
chimkan has joined #ruby
nadirvardar has joined #ruby
bradleyprice has quit [Remote host closed the connection]
arya has quit [Ping timeout: 256 seconds]
timmow has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
timmow has quit [Ping timeout: 252 seconds]
r0bgleeson has joined #ruby
codecop has joined #ruby
rippa has joined #ruby
arya__ has joined #ruby
yamez has quit [Remote host closed the connection]
atno has quit [Ping timeout: 256 seconds]
bklane has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 256 seconds]
arya__ has quit []
arya has joined #ruby
callmeivan has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
droppedonmyhead_ has quit [Quit: droppedonmyhead_]
sambio is now known as Abr1I
Abr1I is now known as Guest14179
wallerdev has quit [Ping timeout: 256 seconds]
Guest14179 is now known as Limaba
zph_ has joined #ruby
bradhe has joined #ruby
nadirvardar has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
guns has joined #ruby
kunday has quit [Quit: Leaving...]
kunday has joined #ruby
Limaba has quit [Remote host closed the connection]
krz has joined #ruby
sambio_ has joined #ruby
ananthakumaran has joined #ruby
callmeivan has joined #ruby
Xabarus has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
lethjakman has joined #ruby
jamesfung14 has quit [Ping timeout: 264 seconds]
r0bgleeson has quit [Ping timeout: 252 seconds]
lethjakm1 has quit [Ping timeout: 252 seconds]
sambio has joined #ruby
kunday has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
kunday has joined #ruby
Axsuul has joined #ruby
flashuni has joined #ruby
sambio_ has quit [Ping timeout: 240 seconds]
tomsthumb has quit [Quit: Leaving.]
bradhe has quit [Ping timeout: 246 seconds]
indyrl has left #ruby [#ruby]
graydot has joined #ruby
braoru has joined #ruby
mattbl has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
callmeivan has quit [Remote host closed the connection]
aharl has quit [Remote host closed the connection]
pagios has quit [Remote host closed the connection]
graydog has joined #ruby
graydog has quit [Client Quit]
dhruvasa1ar has quit [Ping timeout: 248 seconds]
MisterPostIT has joined #ruby
chimkan has quit [Quit: chimkan]
graydot has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
flashuni has quit [Quit: Computer has gone to sleep.]
callmeivan has joined #ruby
browndawg has joined #ruby
nazty has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
t-mart has joined #ruby
yacks has quit [Ping timeout: 256 seconds]
graydot has joined #ruby
jameshyde has joined #ruby
arya_ has joined #ruby
<jameshyde> how to extract short hostname from fqdn?
<jameshyde> any existing ruby module for this?
aganov has joined #ruby
yusup has joined #ruby
arya has quit [Ping timeout: 248 seconds]
hekin has joined #ruby
nazty has joined #ruby
brianpWins has joined #ruby
sambio has quit []
<sebastianb> jameshyde: try using 'uri'
<Zelest> jameshyde, I bed I'm missing something here.. but wouldn't fqdn.split('.').first do? :o
tomsthumb has joined #ruby
<Zelest> oh, nvm
<Zelest> foo.bar.domain.tld
* Zelest goes back to his cage. :)
rakl has quit [Quit: gone]
<sebastianb> there's even SO thread about it
<halfie> hi, I am using vim-ruby plug-in but it is using tabs instead of 2 spaces.
<halfie> does ruby has a well defined set of coding standards? (like using 2 spaces for indentation)?
tjbiddle has joined #ruby
<sebastianb> halfie: set tabstop=2
<sebastianb> and set shiftwidth=2
<halfie> sebastianb, i know the fix but isn't vim-ruby supposed to do all this automatically?
mattbl has quit [Quit: This computer has gone to sleep]
<sebastianb> well, I didn't write it ;)
<halfie> heh, thanks!
zph_ has quit [Quit: Computer has gone to sleep.]
<sebastianb> Probably it should, but it's authors decision
<sebastianb> jameshyde: there's even shorter way to extract hostname
mattbl has joined #ruby
<sebastianb> jameshyde: URI("http://www.example.com/somethingsomething").host
nomenkun has joined #ruby
tagrudev has joined #ruby
<jameshyde> Zelest: thanks
<jameshyde> sebastianb: i have the fqdn, just want to get the shortname, and not sure about how to get there using regular expression
a_a_g has joined #ruby
vlad_starkov has joined #ruby
progbyperm has quit [Read error: Connection reset by peer]
callmeivan has quit [Ping timeout: 252 seconds]
callmeivan has joined #ruby
hamakn_ has quit [Remote host closed the connection]
noop has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
kunday has quit [Read error: Connection reset by peer]
timmow has joined #ruby
kunday has joined #ruby
Targen has joined #ruby
hamakn has joined #ruby
andikr has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
mafolz has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
<krz> I've got Foo class with a to_s method, which returns nil. When I do foo = Foo.new || nil, i get undefined method `gsub' for nil:NilClass
<krz> shouldnt foo equal nil?
philcrissman has quit [Remote host closed the connection]
jameshyde has quit [Quit: Page closed]
marcdel has quit [Quit: marcdel]
nga4 has quit []
kuzushi_ has joined #ruby
emanu has quit [Quit: emanu]
d2dchat has quit [Remote host closed the connection]
yacks has joined #ruby
kuzushi has quit [Ping timeout: 240 seconds]
anderse has joined #ruby
<tobiasvl> what?
<tobiasvl> that assigns foo to Foo.new (unless Foo.new is false, which it's not)
aapzak has quit [Read error: Connection reset by peer]
viuo has quit [Read error: Operation timed out]
crodas has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
pduin has joined #ruby
rton has joined #ruby
aapzak has joined #ruby
bradhe has joined #ruby
Vainoharhainen has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
viuo has joined #ruby
<krz> tobiasvl: but Foo.new returns nil, since it hits the to_s method right?
io_syl has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 264 seconds]
arya has joined #ruby
browndawg has quit [Quit: Leaving.]
matti has joined #ruby
matti has quit [Changing host]
jarjar_prime has joined #ruby
chandankumar has joined #ruby
jprovazn has joined #ruby
yusup has quit [Quit: Linkinus - http://linkinus.com]
blaxter_ has joined #ruby
crodas has joined #ruby
afd__ has joined #ruby
ph^ has joined #ruby
project2501a has joined #ruby
wreckimnaked has quit [Ping timeout: 256 seconds]
Morkel has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
emanu has joined #ruby
stkowski has quit [Quit: stkowski]
arya has quit [Ping timeout: 256 seconds]
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
<tobiasvl> what
<tobiasvl> no
<tobiasvl> how could Foo.new return nil? then you would never be able to create a new Foo instance
<tobiasvl> all Foo objects would be nil
mneorr has joined #ruby
<tobiasvl> new always returns the new object, otherwise what's the point of having a new method?
<tobiasvl> if you tell me what you're trying to achieve (and maybe why you think the to_s method is involved in this at all), i can help more
dkannan has joined #ruby
arya has joined #ruby
vikhyat has joined #ruby
jbueza has quit [Quit: Leaving.]
generalissimo has quit [Remote host closed the connection]
anderse has quit [Quit: anderse]
dr_bob has joined #ruby
billy_ran_away has quit [Ping timeout: 276 seconds]
JohnBat26 has joined #ruby
dhruvasagar has joined #ruby
arya has quit [Ping timeout: 245 seconds]
Hanmac1 has joined #ruby
subbyyy has quit [Ping timeout: 246 seconds]
banjara has joined #ruby
hadees has quit [Quit: hadees]
Es0teric has quit [Remote host closed the connection]
Tectonic has joined #ruby
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ has joined #ruby
filipe has joined #ruby
arya has joined #ruby
browndawg has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
KazW has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
Tectonic has quit [Client Quit]
timmow has joined #ruby
locriani has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
emergion has quit [Ping timeout: 264 seconds]
wallclockbuilder has joined #ruby
hekin has quit [Quit: hekin]
MrZYX|off is now known as MrZYX
timmow has quit [Ping timeout: 252 seconds]
sayan has joined #ruby
emergion has joined #ruby
bean has quit [Ping timeout: 258 seconds]
nveselinov has quit [Quit: Page closed]
threesome has quit [Remote host closed the connection]
<tobiasvl> krz: ^
akemrir has joined #ruby
dkannan has quit [Ping timeout: 252 seconds]
Kruppe has joined #ruby
nveselinov has joined #ruby
JohnBat26 has joined #ruby
<callmeivan> does anybody have some experience running dns servers with a lot of users (thousands) ?
<tobiasvl> callmeivan: i don't know if the IRC channel of a high level scripting language is the best place to find DNS sysadmins
<callmeivan> you might be right
kelabot has quit [Remote host closed the connection]
dkannan has joined #ruby
<callmeivan> but i cant really find much through googling, i guess i will have to hammer the server to find out :D
chandankumar has quit [Quit: Leaving]
k610 has joined #ruby
chandankumar has joined #ruby
emanu has quit [Quit: emanu]
vlad_starkov has joined #ruby
mocfive has quit [Remote host closed the connection]
Ng|Adonixx8359 has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
roadt`` has joined #ruby
r1chard has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<r1chard> BC-wise what's the story about Ruby 1.9 and 2.0?
roadt` has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
jacobw has joined #ruby
haxrbyte has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
braoru has quit [Remote host closed the connection]
backjlack has joined #ruby
dawkirst has quit [Remote host closed the connection]
braoru has joined #ruby
vlad_starkov has joined #ruby
Xeago has joined #ruby
wallclockbuilder has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
gstamp has quit [Quit: Computer has gone to sleep.]
Hanmac1 has quit [Ping timeout: 245 seconds]
chussenot has joined #ruby
s2013 has quit []
<tobiasvl> r1chard: 2.0 is backwards compatible with 1.9
monkegjinni has joined #ruby
<tobiasvl> except for a few minor incompatibilities
vlad_starkov has quit [Ping timeout: 252 seconds]
k611 has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
k611 has quit [Client Quit]
arya_ has joined #ruby
LnL has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
backjlack_ has joined #ruby
LongLiveBacon has quit [Ping timeout: 252 seconds]
unflores has joined #ruby
arya has quit [Ping timeout: 252 seconds]
BizarreCake has joined #ruby
threesome has joined #ruby
<r1chard> tobiasvl, thanks
troessner has joined #ruby
backjlack_ has quit [Remote host closed the connection]
backjlack_ has joined #ruby
<callmeivan> i am having trouble running rubydns on a digital ocean vserver but it is running with the same versions on a rpi, anybody experienced similar problems? i am thinking the vm might be the problem
kunday has quit [Quit: Leaving...]
backjlack_ has quit [Remote host closed the connection]
backjlack has quit [Ping timeout: 256 seconds]
backjlack_ has joined #ruby
rhannequin has joined #ruby
Beoran__ has quit [Ping timeout: 246 seconds]
whitedawg has joined #ruby
vlad_starkov has joined #ruby
__alpaca has joined #ruby
entr0py_ has joined #ruby
rhannequin has left #ruby [#ruby]
ehellman has joined #ruby
arya_ is now known as arya
jdunck has quit [Quit: Computer has gone to sleep.]
postmodern has quit [Ping timeout: 256 seconds]
ananthakumaran1 has joined #ruby
francisfish has joined #ruby
rdark has joined #ruby
guns has quit [Quit: guns]
billy_ran_away has joined #ruby
schiang has quit [Quit: Page closed]
ananthakumaran has quit [Ping timeout: 252 seconds]
Beoran__ has joined #ruby
banjara has quit [Quit: Leaving.]
pandawarrior has joined #ruby
pandawarrior has quit [Client Quit]
banjara has joined #ruby
pi3r has joined #ruby
hadees has joined #ruby
timmow has joined #ruby
clocKwize has joined #ruby
clocKwize has quit [Client Quit]
pioz has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
a_a_g has quit [Quit: This computer has gone to sleep]
postmodern has joined #ruby
entr0py_ has quit [Remote host closed the connection]
ToApolytoXaos has joined #ruby
arya_ has joined #ruby
lethjakman has quit [Ping timeout: 272 seconds]
Spooner has joined #ruby
r1chard has quit []
arya has quit [Ping timeout: 248 seconds]
vlad_sta_ has joined #ruby
marr has joined #ruby
xlab has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
hamakn has joined #ruby
vlad_sta_ has joined #ruby
blacktulip has joined #ruby
wchun has quit [Quit: Leaving]
wchun has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
nveselinov has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 252 seconds]
nveselinov has joined #ruby
devkhadka has quit [Ping timeout: 256 seconds]
hamakn has quit [Ping timeout: 272 seconds]
Chinorro has joined #ruby
leonidlm has joined #ruby
camilasan has joined #ruby
<leonidlm> Hi all. does somebody knows if it is possible to do deep replecements in YAML ?
MrZYX|off is now known as MrZYX
camilasa_ has joined #ruby
bradhe has joined #ruby
vikhyat has quit [Remote host closed the connection]
arturaz has joined #ruby
ph^ has quit [Read error: Operation timed out]
ph^ has joined #ruby
nari has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
slainer68 has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
ananthakumaran1 has quit [Ping timeout: 255 seconds]
schickung has joined #ruby
ephemerian has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
KRF_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
arya has joined #ruby
kunday has joined #ruby
monkegjinni has joined #ruby
elaptics`away is now known as elaptics
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
neurone-2337 is now known as neurone-1337
arya_ has quit [Ping timeout: 248 seconds]
xkickflip_ has quit [Quit: h..hi]
skattyadz has joined #ruby
sepp2k has joined #ruby
kunday has quit [Quit: Linkinus - http://linkinus.com]
xkickflip_ has joined #ruby
KazW has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
monkegji_ has joined #ruby
KazW has joined #ruby
JonnieCache has quit [Quit: Reconnecting]
JonnieCache has joined #ruby
xkickflip_ has quit [Client Quit]
xkickflip_ has joined #ruby
skattyadz has quit [Ping timeout: 256 seconds]
KRF_ is now known as KRF
ananthakumaran has joined #ruby
ephemerian has quit [Quit: Leaving.]
monkegjinni has quit [Ping timeout: 272 seconds]
skattyadz has joined #ruby
mikecmpbll has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
vikhyat has joined #ruby
nomenkun has joined #ruby
fjfish has joined #ruby
timmow has joined #ruby
nari has quit [Ping timeout: 272 seconds]
ferdev has quit [Quit: ferdev]
AceOfSpadesBR has joined #ruby
fixl has joined #ruby
arya has quit [Ping timeout: 248 seconds]
charliesome_ has joined #ruby
charliesome_ is now known as charliesome
francisfish has quit [Ping timeout: 252 seconds]
gyre007 has joined #ruby
AceOfSpadesBR has quit [Read error: Connection reset by peer]
xcv has joined #ruby
AceOfSpadesBR has joined #ruby
viuo has quit [Read error: Operation timed out]
timmow has quit [Remote host closed the connection]
whitedawg has left #ruby [#ruby]
buscon has joined #ruby
<Spooner> leonidlm, Not sure what you mean. If you parse it, you can manipulate it as regular data.
vlad_starkov has joined #ruby
Squarepy has joined #ruby
atno has joined #ruby
marcgg_ has quit [Ping timeout: 246 seconds]
monkegji_ has quit [Ping timeout: 272 seconds]
vlad_sta_ has quit [Ping timeout: 256 seconds]
Axsuul has quit [Ping timeout: 252 seconds]
baphled_ has joined #ruby
ephemerian has joined #ruby
hamakn has joined #ruby
ferdev has joined #ruby
Zai00 has joined #ruby
<leonidlm> Spooner, I mean, if I have a nested hash in the YAML file. Is it possible to somehow to replace the most deeply available leafs? The standard ruby YAML only knows how to replace the first level
<leonidlm> Spooner, are there any more sophisticated modules for YAML parsing ?
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
greenarrow has joined #ruby
marcgg has joined #ruby
Hanmac2 has joined #ruby
AceOfSpadesBR has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 248 seconds]
blaxter_ is now known as blaxter
Dwarf has quit [Ping timeout: 246 seconds]
lex_ has quit [Remote host closed the connection]
arya has joined #ruby
_64k has joined #ruby
xlab has quit [Remote host closed the connection]
baphled_ has quit [Ping timeout: 264 seconds]
emergion has joined #ruby
bradhe has joined #ruby
nateberkopec has joined #ruby
skattyadz has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
geson has joined #ruby
vlad_starkov has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
d11wtq has quit [Ping timeout: 256 seconds]
mootpointer has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
jovy88 has quit [Read error: Connection reset by peer]
sayan has quit [Read error: Connection reset by peer]
jovy88 has joined #ruby
haxrbyte_ has joined #ruby
robustus has joined #ruby
Dwarf has joined #ruby
browndawg has quit [Read error: Connection timed out]
RagingDave has joined #ruby
timmow has joined #ruby
mootpointer has quit [Client Quit]
multi_io has quit [Remote host closed the connection]
multi_io has joined #ruby
browndawg has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
lufi has joined #ruby
sathish316 has joined #ruby
<nfk> was it better to usereturn "fubar"; nil or
<nfk> err..
<nfk> return "fubar"; nil
<nfk> or "foobar" || nil
<nfk> of course, IRL the first statement would contain a conditional
schickung has quit [Quit: schickung]
schickung has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
Kruppe has quit [Ping timeout: 240 seconds]
arya has quit [Ping timeout: 248 seconds]
adambeynon has joined #ruby
KazW has quit [Remote host closed the connection]
KazW_ has joined #ruby
mootpointer has joined #ruby
<Spooner> leonidlm, Not sure how you are replacing things in the YAML itself. Just parse it, manipulate the data and re-generate it.
r0bby has quit [Ping timeout: 256 seconds]
<Spooner> leonidlm, Examples?
monkegjinni has joined #ruby
r0bby has joined #ruby
Rym has joined #ruby
arya has joined #ruby
Kruppe has joined #ruby
KazW_ has quit [Read error: Connection reset by peer]
sayan has joined #ruby
graydot has quit [Quit: graydot]
KazW_ has joined #ruby
graydog has joined #ruby
graydog is now known as graydot
ph^ has quit [Remote host closed the connection]
<lufi> is the .inspect method the closest thing we've got to php's var_dump() ?
* lufi ruby noob here
ph^ has joined #ruby
<DefV> aaaa/2
emergion has quit [Quit: Computer has gone to sleep.]
Flexa has joined #ruby
backjlack_ has quit [Remote host closed the connection]
backjlack has joined #ruby
<nfk> lufi, depends on what var_dump() does
gyre008 has joined #ruby
<lufi> the vardump displays details about the 'variable' unlike inspect which is more like the serialize() method
* lufi pasting links..
lewix has quit [Remote host closed the connection]
gyre007_ has joined #ruby
timmow has joined #ruby
LnL has quit [Quit: LnL]
pi3r has quit [Quit: Leaving]
<Flexa> hey guys, I have a hash object that I need to strip all white space from and escape all quotes.... any ideas?
gyre008 has quit [Ping timeout: 252 seconds]
<hoelzro> lufi: I think that p might be what you want?
<hoelzro> >> p { foo: 'bar' }
<eval-in> hoelzro => /tmp/execpad-0195d8e73fe7/source-0195d8e73fe7:2: syntax error, unexpected ':', expecting '}' ... (http://eval.in/17112)
<hoelzro> grr
vlad_sta_ has joined #ruby
<hoelzro> >> p({ foo: 'bar' })
<eval-in> hoelzro => {:foo=>"bar"} ... (http://eval.in/17113)
gyre007 has quit [Ping timeout: 256 seconds]
<lufi> hoelzro: will check it out.
timmow has quit [Remote host closed the connection]
timmow has joined #ruby
<lufi> eval-in: is that what hoelzro is talking about?
<hoelzro> lufi: eval-in is a bot =)
<lufi> LoL oh ok .sorry
<hoelzro> >> puts 'Hello lufi'
<eval-in> hoelzro => Hello lufi ... (http://eval.in/17114)
<lufi> oh that is cool
<lufi> >> "hi hoelzro"
<eval-in> lufi => "hi hoelzro" (http://eval.in/17115)
<Spooner> p just calls #inspect though, doesn't it?
<lufi> thanks! :)
<tobiasvl> Flexa: just use a regex, or a regex combined with String#strip (unless you want to strip ALL whitespace – String#strip removes leading and trailing spaces)
<Flexa> i need to strip _all_ white spae
<tobiasvl> gsub then
<Spooner> lufi, You maybe want pp or ap commands (from prettyprint in stdlib or awesome_print gem)
<Spooner> To format the output nicely.
peta_ has joined #ruby
gyre007 has joined #ruby
* lufi taking note of that.
vlad_starkov has quit [Ping timeout: 272 seconds]
<Flexa> tobiasvl: and how to escape all double quotes in the hash that no longer has whitespace? :)
<Spooner> lufi, Also, use pry gem instead of irb (a bit like ipython).
<tobiasvl> ' sad " dddd "" assdd '.gsub(/\s|\"/, '')
Mohan has quit [Ping timeout: 256 seconds]
<tobiasvl> >> ' sad " dddd "" assdd '.gsub(/\s|\"/, '')
<eval-in> tobiasvl => "sadddddassdd" (http://eval.in/17116)
<lufi> Spooner: we don't know each other personally, do we? My professor's "handle" is spooner xD
<tobiasvl> Flexa: like that?
<Spooner> lufi I'm not a professor, unless someone didn't tell me.
chipotle_ has joined #ruby
<tobiasvl> Flexa: removing the whitespace doesn't affect the double quotes, does it
<tobiasvl> uh i removed them though
h8R has quit [Ping timeout: 272 seconds]
chandankumar has quit [Quit: Leaving]
<tobiasvl> >> ' sad " dddd "" assdd '.gsub(/\s/, '').gsub(/(")/, '\\1')
<eval-in> tobiasvl => "sad\"dddd\"\"assdd" (http://eval.in/17117)
guiguidoc has joined #ruby
<tobiasvl> Flexa: like that?
<leonidlm> Spooner, Example: http://pastebin.com/TZfsS7ci
rickruby has quit [Remote host closed the connection]
__alpaca has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
h8R has joined #ruby
<leonidlm> Spooner, The code that doesn't work is after the <<: *defaults part
<Spooner> You don't need any of those ', you know?
<Flexa> tobiasvl: jup! :)
<Flexa> thx!!
spider-mario has joined #ruby
browndawg has quit [Read error: Operation timed out]
<Spooner> Right, that I misunderstood what you meant.
lemonsparrow has joined #ruby
browndawg has joined #ruby
<lemonsparrow> hi all
freeayu has quit [Read error: Connection timed out]
gyre007_ has quit [Remote host closed the connection]
_64k has quit [Quit: Lost terminal]
freeayu has joined #ruby
gyre007 has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has quit [Read error: Connection reset by peer]
d11wtq has joined #ruby
gyre007 has joined #ruby
chipotle_ has quit [Quit: cya]
gyre008 has joined #ruby
Mohan has joined #ruby
Mohan has joined #ruby
Mohan has quit [Changing host]
hamakn has quit [Remote host closed the connection]
gosshedd has joined #ruby
moriarty_ has joined #ruby
moriarty_ has left #ruby [#ruby]
<Spooner> leonidlm, But anyway, that looks like standard YAML shallow merge (same as Ruby Hash merge).
emergion has joined #ruby
Dwarf has quit [Ping timeout: 246 seconds]
dawkirst has joined #ruby
Hanmac has joined #ruby
lufi has quit [Excess Flood]
<Flexa> tobiasvl: gah, that is stripping whitespace nicely but not escaping double quotes with a \
Hanmac2 has quit [Ping timeout: 246 seconds]
zaargy has joined #ruby
<tobiasvl> Flexa: what do you mean?
LennyLinux has joined #ruby
yshh has quit [Remote host closed the connection]
<Flexa> i have a hash like profile = '{"bla_id":"15", "start_date" : "2012-07-30T16:18:04Z", "end_date" :"2012-09-14T13:29:00Z","tag":"bla"}'
d11wtq has quit [Ping timeout: 256 seconds]
xkickflip_ is now known as xkickflip
<Flexa> gsub(/\s+/, "") strips white space
<leonidlm> Spooner, if you will try it, you will see that the 'rackspace' entry won't be preserved. So the merge won't work!
<Spooner> Flexa, That isn't a Hash. That is a JSON hash.
<tobiasvl> Flexa: that's a string
lkba has joined #ruby
<Flexa> its a json hash that I have puts quotes around
<Spooner> leonidlm, It does shallow-merge correctly, but you override the value in the hash after it has merged it.
<tobiasvl> Flexa: so what exactly do you want
<tobiasvl> >> '{"bla_id":"15", "start_date" : "2012-07-30T16:18:04Z", "end_date" :"2012-09-14T13:29:00Z","tag":"bla"}'.gsub(/\s/, '').gsub(/(")/, '\\1')
<eval-in> tobiasvl => "{\"bla_id\":\"15\",\"start_date\":\"2012-07-30T16:18:04Z\",\"end_date\":\"2012-09-14T13:29:00Z\",\"tag\":\"bla\"}" (http://eval.in/17118)
<Flexa> i need to take a JSON hash, strip out white space and escape all the quotes within the hash ...
Mohan has quit [Ping timeout: 272 seconds]
<tobiasvl> Flexa: all the quotes look escaped to me
<Flexa> ah, that looks different to what I'm seeing
<leonidlm> Spooner, So what is a better approach if I want to add the 'amazon' entry, without overriding the 'rackspace' part of the "tree"
<Spooner> tobiasvl, No, they are quoted by being inside ""
lufi has joined #ruby
<tobiasvl> aha
forlin has joined #ruby
<Spooner> leonidlm, Merge defaults inside providers:
haxrbyte_ has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
<Spooner> Flexa, You want: .gsub(/\s/, '').gsub('"', "\\\"")
<Spooner> I think.
robottinosino has quit [Quit: WeeChat 0.4.0]
<Flexa> yup perfect
<Flexa> thanks guys!
lufi has quit [Excess Flood]
Dwarf has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
clocKwize has joined #ruby
<Spooner> leonidlm, http://pastebin.com/WsRkZ3bt
Faris9 has joined #ruby
lufi has joined #ruby
banjara has quit [Quit: Leaving.]
Michael has joined #ruby
Michael is now known as Guest17277
<leonidlm> Spooner, I see. so the best aproach would be to link each level separately ?
banjara has joined #ruby
<Spooner> I think so, yes.
<Spooner> But I'm not an expert in YAML tricks.
bradhe has joined #ruby
a_a_g has joined #ruby
hadees_ has joined #ruby
robottinosino has joined #ruby
hadees has quit [Ping timeout: 272 seconds]
hadees_ is now known as hadees
slainer68 has quit [Remote host closed the connection]
Kruppe has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 272 seconds]
chase-work has joined #ruby
timmow_ has joined #ruby
d11wtq has joined #ruby
ph^_ has joined #ruby
Muz_ is now known as Muz
ph^ has quit [Ping timeout: 246 seconds]
chussenot has quit [Quit: chussenot]
huner has joined #ruby
huner has left #ruby [#ruby]
oguzcanhuner has joined #ruby
chussenot has joined #ruby
Hanmac2 has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
timmow_ has quit [Ping timeout: 252 seconds]
io_syl has joined #ruby
kreantos has joined #ruby
Guest17277 has quit [Remote host closed the connection]
robottinosino has quit [Read error: Connection timed out]
robottinosino has joined #ruby
threesome has quit [Ping timeout: 255 seconds]
objectivemo has joined #ruby
whitedawg has joined #ruby
kunday has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Heero has quit [Ping timeout: 264 seconds]
Faris9 has quit [Ping timeout: 260 seconds]
nveselinov has quit [Quit: Leaving]
Mohan has joined #ruby
Mohan has quit [Changing host]
Mohan has joined #ruby
jetblack has quit [Ping timeout: 245 seconds]
jost has joined #ruby
roadt has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
postmodern has quit [Quit: Leaving]
Domon has quit [Remote host closed the connection]
<Flexa> hey guys, can anyone help me with this little snippet? https://gist.github.com/joshmyers/f6d86ca945c1151e5ff7
aaronmcadam has joined #ruby
<Flexa> line 4 profile_friendly is not being interpolated correctly as is in single quotes
<Flexa> any ideas what I can do about this?
<hoelzro> whoa
vikhyat has quit [Ping timeout: 256 seconds]
<hoelzro> why are you calling gsub on a hash?
<csmrfx> use double quotes
<tobiasvl> hoelzro: it's not a hash
<tobiasvl> it's a JSON hash represented as a string
<hoelzro> ah, sure enough
<Spooner> It is not a hash, hoelzro, it is JSON.
<Flexa> ^^
Mohan has quit [Ping timeout: 252 seconds]
<hoelzro> I would do %Q{[{"headers":{"client_id":"test","subscription_id":"48724893478"},"body":#{profile_friendly}}]}
<tobiasvl> Flexa: single and double quotes don't do the same thing
<hoelzro> perhaps picking a better delimiter char than {, though
<Flexa> and if I used double quotes I get a syntax error ...
<tobiasvl> single quotes don't interpolate
klip has quit [Quit: leaving]
<Flexa> no I know tobiasvl, but with double quotes I get a syntax error :(
<Spooner> I would do it as hashes and use to_json ;)
<Flexa> .rb:8: syntax error, unexpected tIDENTIFIER, expecting $end
klip has joined #ruby
<tobiasvl> Flexa: yes, that's why you should escape the double quotes
medk has joined #ruby
<hoelzro> or using %Q
<hoelzro> *se
<hoelzro> *use
<hoelzro> dammit
<tobiasvl> yes
<Flexa> lol
<hoelzro> rough day.
<Flexa> man sorry im so pants :/
<tobiasvl> you only escape the double quotes in profile_friendly, not json_flume
<Flexa> trying to learn!
klip has quit [Client Quit]
davetherat has quit [Remote host closed the connection]
<tobiasvl> hehe
<hoelzro> >> puts %Q|[{"headers":{"client_id":"test","subscription_id":"48724893478"},"body":#{profile_friendly}}]|
<eval-in> hoelzro => /tmp/execpad-f18f0b450ff7/source-f18f0b450ff7:2:in `<main>': undefined local variable or method `profile_friendly' for main:Object (NameError) (http://eval.in/17122)
davetherat has joined #ruby
arya has quit [Ping timeout: 248 seconds]
klip has joined #ruby
<Flexa> ja but i need the double quotes in the json_flume :o
slainer68 has joined #ruby
browndawg has quit [Quit: Leaving.]
<Spooner> Why do you _need_ to escape the quotes though? Or remove the white-space?
<hoelzro> Flexa: did you see what I just wrote?
<tobiasvl> then don't interpolate
<tobiasvl> Flexa: use %Q like hoelzro said
<tobiasvl> or don't interpolate
<hoelzro> this is the *exact* reason %Q and friends exist.
<Flexa> oki
<tobiasvl> or concatenate instead
<hoelzro> they are your friends.
<Flexa> thx again!
<Flexa> will try it out
beiter has joined #ruby
banjara has quit [Quit: Leaving.]
Hanmac has joined #ruby
vikhyat has joined #ruby
<Flexa> sweeeet! :D
banjara has joined #ruby
sepp2k has quit [Remote host closed the connection]
Hanmac2 has quit [Ping timeout: 256 seconds]
clocKwize has quit [Quit: clocKwize]
Criztian has joined #ruby
arya has joined #ruby
pothibo has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
Bry8Star_ has quit [Ping timeout: 276 seconds]
clocKwize has joined #ruby
chussenot has quit [Quit: chussenot]
r0bby has quit [Ping timeout: 252 seconds]
rickruby has joined #ruby
security has joined #ruby
mikecmpbll has joined #ruby
megha has quit [Ping timeout: 252 seconds]
security is now known as megha
megha is now known as baba
whitedawg has quit [Quit: Leaving.]
swex has joined #ruby
Bry8Star has joined #ruby
rickruby has quit [Ping timeout: 276 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
stardiviner has joined #ruby
vikhyat_ has joined #ruby
Xeago has quit [Remote host closed the connection]
hamakn has joined #ruby
F1skr has joined #ruby
vikhyat has quit [Ping timeout: 264 seconds]
clocKwize has quit [Quit: clocKwize]
kofno has joined #ruby
chandankumar has joined #ruby
krz has quit [Quit: krz]
Xeago has joined #ruby
devkhadka has joined #ruby
yshh has joined #ruby
hamakn has quit [Ping timeout: 252 seconds]
yshh_ has joined #ruby
danslo has joined #ruby
robottinosino has quit [Read error: Connection reset by peer]
bhaarat has joined #ruby
skattyadz has joined #ruby
bradhe has joined #ruby
roadt has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
robottinosino has joined #ruby
browndawg has joined #ruby
yshh has quit [Ping timeout: 272 seconds]
ryanjh has quit [Quit: Computer has gone to sleep.]
yshh_ has quit [Ping timeout: 252 seconds]
netto has joined #ruby
kloeri has quit [Ping timeout: 615 seconds]
bradhe has quit [Ping timeout: 264 seconds]
netto has quit [Client Quit]
timmow_ has joined #ruby
sleetdrop has quit [Ping timeout: 252 seconds]
Zai00 has quit [Quit: Zai00]
decentrality has quit [Quit: decentrality]
kloeri has joined #ruby
xlab has joined #ruby
chussenot has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
oguzcanhuner has quit [Quit: oguzcanhuner]
ntzrmtthihu777 has joined #ruby
<ntzrmtthihu777> Hanmac: sup man
ehellman has quit [Quit: ehellman]
Zai00 has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
Xuerian has quit [Ping timeout: 240 seconds]
yalue has quit [Quit: Leaving]
ntzrmtthihu777 has quit [Ping timeout: 252 seconds]
nga4 has joined #ruby
__alpaca has joined #ruby
kunday has quit [Quit: Leaving...]
locriani has joined #ruby
kunday has joined #ruby
ntzrmtthihu777 has joined #ruby
Targen has quit [Ping timeout: 248 seconds]
Michael has joined #ruby
<Hanmac1> ntzrmtthihu777: i am the current Hanmac, the other one is only a Substitute ;P
Michael is now known as Guest59826
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
__alpaca has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 248 seconds]
nga4 has left #ruby [#ruby]
skattyadz has quit [Quit: skattyadz]
<ntzrmtthihu777> :P lol. got audio functioning now, just gotta handle a bit more bugs and then start make a few of the classes into c++ dll/so's
ananthakumaran has joined #ruby
_64k has joined #ruby
locriani has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
Guest59826 has quit [Ping timeout: 255 seconds]
locriani has joined #ruby
chussenot has quit [Quit: chussenot]
statarb3 has quit [Quit: Leaving]
atyz has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
tomzx_mac has joined #ruby
nateberkopec has joined #ruby
Mon_Ouie has joined #ruby
dhruvasagar has joined #ruby
sailias has joined #ruby
locriani has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
locriani has joined #ruby
bhaarat has quit [Quit: bhaarat]
arya has quit [Ping timeout: 248 seconds]
Bry8Star has quit [Ping timeout: 276 seconds]
vikhyat_ has quit [Remote host closed the connection]
__alpaca has joined #ruby
wallerdev has joined #ruby
bhaarat has joined #ruby
kf8a has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
locriani has quit [Remote host closed the connection]
kristofers has joined #ruby
__alpaca has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
dkannan has quit [Ping timeout: 252 seconds]
dkannan has joined #ruby
__alpaca has joined #ruby
<JonnieCache> hello ruby
<JonnieCache> ive just seen this line in the code of a colleague who's too busy to bother right now:
<JonnieCache> what is the .or method there? ive not seen it before and pry refuses to tell me its location
<tobiasvl> i didn't get the line of code
<JonnieCache> its only the last bit thats important
<tobiasvl> i didn't get any code
<JonnieCache> wtf i didnt think irc could silently drop messages like that. ill paste it again:
<JonnieCache> nulls_ds = nulls_ds.filter(f.to_sym => null_values).or(f.to_sym => nil)
__alpaca has quit [Remote host closed the connection]
kristofers has quit [Read error: Connection reset by peer]
<spider-mario> didn’t know of a filter method that takes a hash parameter, either
<JonnieCache> thats part of the sequel orm
EPIK has quit [Ping timeout: 256 seconds]
<spider-mario> oh, ok.
vlad_sta_ has joined #ruby
<tobiasvl> oh. that's relevant info
<JonnieCache> and embarrasingly ive just realised that the .or method is too
<tobiasvl> yeah
arya has joined #ruby
oguzcanhuner has joined #ruby
wreckimnaked has joined #ruby
ph^_ has quit [Remote host closed the connection]
<JonnieCache> pry not being able to find it made me thing it was yet another obscure language feature id missed
<JonnieCache> *think
oguzcanhuner has quit [Client Quit]
Uranio has quit [Quit: while you reading this, a kitty dies]
kristofers has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
chipotle_ has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
faldridge has joined #ruby
chipotle_ has quit [Client Quit]
mikecmpbll has quit [Quit: Computer has gone to sleep.]
Faris9 has joined #ruby
dhruvasagar has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0/20130326150557]]
Bry8Star has joined #ruby
banjara has quit [Quit: Leaving.]
subbyyy has joined #ruby
xlab has quit [Read error: Connection reset by peer]
banjara has joined #ruby
xlab has joined #ruby
V8Energy has quit [Ping timeout: 256 seconds]
chipotle_ has joined #ruby
Proshot has joined #ruby
chipotle_ has quit [Read error: Connection reset by peer]
kf8a has quit [Quit: Computer has gone to sleep.]
kf8a has joined #ruby
chipotle_ has joined #ruby
xardas has joined #ruby
gener1c has quit [Ping timeout: 255 seconds]
sathish316 has quit [Quit: Leaving.]
vlad_sta_ has quit [Remote host closed the connection]
Nahra has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
gener1c has joined #ruby
guiguidoc has quit [Remote host closed the connection]
sathish316 has joined #ruby
chipotle_ has quit [Ping timeout: 255 seconds]
ph^ has joined #ruby
xlab has quit [Read error: Connection reset by peer]
xlab has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
chussenot has joined #ruby
sathish316 has quit [Quit: Leaving.]
LnL has joined #ruby
browndawg has quit [Quit: Leaving.]
Zai00 has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
xlab has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
Bry8Star has joined #ruby
Mohan has joined #ruby
Mohan has quit [Changing host]
Mohan has joined #ruby
slainer68 has joined #ruby
xlab has joined #ruby
kunday has quit [Quit: Linkinus - http://linkinus.com]
divout has quit [Remote host closed the connection]
moos3 has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
Uranio has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 252 seconds]
xlab has quit [Remote host closed the connection]
jovy88 has joined #ruby
sathish316 has joined #ruby
xlab has joined #ruby
huoxito has joined #ruby
timmow_ has joined #ruby
sathish316 has quit [Client Quit]
pi3r has joined #ruby
sathish316 has joined #ruby
niceguyjames has joined #ruby
sathish316 has quit [Client Quit]
__alpaca has joined #ruby
invisime has joined #ruby
Mohan has quit [Ping timeout: 272 seconds]
timmow_ has quit [Ping timeout: 252 seconds]
Squarepy has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 252 seconds]
erry has quit [Read error: Connection reset by peer]
jetblack has joined #ruby
mikecmpbll has joined #ruby
locriani has joined #ruby
erry_ has joined #ruby
erry_ is now known as erry
locriani has quit [Remote host closed the connection]
stardiviner has quit [Quit: stardiviner]
Nahra has joined #ruby
__alpaca has quit [Read error: Connection reset by peer]
__alpac__ has joined #ruby
fermion has joined #ruby
wallerdev has quit [Quit: wallerdev]
sailias has quit [Quit: Leaving.]
sathish316 has joined #ruby
adamjleonard has quit [Quit: Leaving...]
sayan has quit [Read error: Connection reset by peer]
LennyLinux has quit [Ping timeout: 272 seconds]
__alpac__ has quit [Remote host closed the connection]
arya_ has joined #ruby
locriani has joined #ruby
kirun has joined #ruby
arya has quit [Ping timeout: 248 seconds]
locriani has quit [Remote host closed the connection]
sambao21 has joined #ruby
mneorr has quit [Remote host closed the connection]
felixjet_ has joined #ruby
dustint has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
Hanmac2 has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
Nahra has quit [Remote host closed the connection]
pskosinski has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Hobogrammer has quit [Ping timeout: 255 seconds]
felixjet has quit [Ping timeout: 246 seconds]
arya has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
mneorr has joined #ruby
vikhyat has joined #ruby
akashj87 has joined #ruby
ntzrmtthihu777 has quit [Ping timeout: 264 seconds]
KazW_ has quit [Remote host closed the connection]
jlast has joined #ruby
divout has joined #ruby
jgarvey has joined #ruby
KazW_ has joined #ruby
droppedonmyhead has joined #ruby
r0bgleeson has joined #ruby
MrZYX|off is now known as MrZYX
ZachBeta has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has joined #ruby
splittingred has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
wesside has joined #ruby
RonScagz has joined #ruby
sirecote has joined #ruby
Amfy has left #ruby [#ruby]
wallerdev has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
idkazuma has joined #ruby
binaryplease has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
banjara has joined #ruby
ph^ has joined #ruby
mootpointer has joined #ruby
cha1tanya has quit [Quit: Leaving]
nari has joined #ruby
sayan has joined #ruby
yawniek_ has joined #ruby
Targen has joined #ruby
faldridge has quit [Quit: faldridge]
_nitti has joined #ruby
threesome has joined #ruby
hamakn has joined #ruby
_64k has quit [Quit: Lost terminal]
sleetdrop has joined #ruby
wmoxam has joined #ruby
Heero has joined #ruby
rudisimo has joined #ruby
kpshek has joined #ruby
splittingred has quit [Quit: splittingred]
splittingred has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Hanmac2 has quit [Ping timeout: 246 seconds]
akhet has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
Hanmac has joined #ruby
Morkel_ has quit [Quit: Morkel_]
arya has joined #ruby
pagios has joined #ruby
pothibo has quit [Quit: pothibo]
nezumi has quit [Ping timeout: 245 seconds]
io_syl has joined #ruby
banjara has quit [Quit: Leaving.]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
banjara has joined #ruby
jerius has joined #ruby
bradhe has joined #ruby
luckyruby has quit [Remote host closed the connection]
skattyadz has joined #ruby
mercwithamouth has joined #ruby
newUser1234 has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
brianosborne has joined #ruby
chussenot has quit [Quit: chussenot]
brianosborne has left #ruby [#ruby]
adamjleonard has joined #ruby
ttt has quit [Remote host closed the connection]
Gues_____ has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
Gues_____ is now known as Guest17344
Guest17344 is now known as RubNoob
chandankumar has quit [Quit: Leaving]
d2dchat has joined #ruby
timmow_ has joined #ruby
sailias1 has joined #ruby
heliumsocket has joined #ruby
RubNoob has quit [Client Quit]
ariedler has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
graydot has quit [Quit: graydot]
freeayu has quit [Remote host closed the connection]
callmeivan has quit [Read error: Operation timed out]
dawkirst has joined #ruby
heliumsocket has quit [Client Quit]
timmow_ has quit [Ping timeout: 252 seconds]
mmitchell has joined #ruby
Flexa has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
rhannequin has joined #ruby
Neomex has quit [Client Quit]
banjara has quit [Quit: Leaving.]
philcrissman has joined #ruby
generalissimo has joined #ruby
banjara has joined #ruby
netto has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
filipe has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
Faris9 has quit [Quit: Faris9]
mercwithamouth has quit [Ping timeout: 256 seconds]
Hanmac has joined #ruby
Banistergalaxy has joined #ruby
nari has quit [Ping timeout: 272 seconds]
angusiguess has quit [Ping timeout: 256 seconds]
locriani has joined #ruby
callmeivan has joined #ruby
dustint has quit [Read error: Operation timed out]
jaems has joined #ruby
jaems has left #ruby [#ruby]
__alpaca_ has joined #ruby
locriani has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
jaems has joined #ruby
hogeo has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
<jaems> morning. I'm working on a rails app and am comfortable with the framework, but know very little ruby. i'm trying to find the best place to start. i bought pickaxe but i seem to learn better by solving existing problems. any advice for a newbie to ruby?
vlad_sta_ has quit [Ping timeout: 264 seconds]
chase-work has joined #ruby
nanothief_ has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
_nitti has joined #ruby
jtharris has joined #ruby
<_maes_> http://rubymonk.com/ might be a good place to start
sambao21 has quit [Quit: Computer has gone to sleep.]
locriani has joined #ruby
<BinaryMaster> jaems, if you have programing experience in other languages I would recommend the book "The Ruby Way", I have been using that and a porting some of the internal tools I have written in other languages for work over to ruby it has made for a very quick learning path for me
cmarques has joined #ruby
__alpaca_ has quit [Ping timeout: 256 seconds]
<jaems> here's the thing. I come from 12 years of system/network engineering. i jumped into rails 9 months ago and built my first app (somewhat complex).. but i hit a wall because i don't know ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
nephfl has joined #ruby
mercwithamouth has joined #ruby
<nephfl> hello, I'm trying to get rvm/ruby installed but am getting an error that no binary rubies are available
<ericwood> know teh rubys
<jaems> i have pickaxe but i find it cumbersome reading an excerpt then doing it in IRB. maybe that's the way to learn, but i seem to learn better by trying to add functionality to my app and solve it with ruby
<BinaryMaster> jaems, I assume sys admin on nix platforms?
<ericwood> nephfl: check out #rvm...it's dedicated to such problems
zph has joined #ruby
zph has quit [Excess Flood]
<jaems> binarymaster: yes, *nix and windows platforms but mostly unix/linux/bsd
<ericwood> jaems: I'd recommend just writing something fun and simple in ruby for kicks
sathish316 has quit [Quit: Leaving.]
<ericwood> jaems: like I wrote this little tetris game that uses ncurses :D
<BinaryMaster> jaems, so if you are like me you have written a ton of shell scripts
geekbri has joined #ruby
<jaems> yes, i've done a lot of bash/perl scripts..
breakingthings has joined #ruby
<BinaryMaster> I would work on porting some of the more complex ones over to ruby
<jaems> so i get things like variables, methods, classes, arrays
<jaems> that's a good idea
seanwash has joined #ruby
<ericwood> you should finish my tetris thing for me
<jaems> :)
<ericwood> I'm too lazy to add hit detection
<BinaryMaster> jaems, by porting logic you already know works you can focus on syntax of the language and how problems ares solved in it
rhannequin has left #ruby [#ruby]
sathish316 has joined #ruby
<ericwood> I think a good place to start is learning every method in Enumerable and Array
<jaems> i guess part of me is impatient… rails came to me pretty quickly.. i guess because of all the magic that's provided. but ruby eludes me.
<BinaryMaster> jaems, just my 2 cents
<MrZYX> jaems: and when you're done with that put it into a gist and post it here and we give you hints to make it better/more ruby like
yacks has quit [Read error: Operation timed out]
sathish316 has quit [Client Quit]
<jaems> and i'm at a point where my rails apps are starting to be all the same and i'm not going outside of the boundaries of rails and using ruby like i should.
<ericwood> yesss
<jaems> awesome
uris has joined #ruby
<ericwood> jaems: just pick something random and do it
<ericwood> another project of mine you should finish: roomba remote control library
filipe has joined #ruby
oneirophren has joined #ruby
<jaems> i think i'll write something in ruby that parses twitter for certain hashtags and displays all the tweets
<ericwood> but...but...roombas!
<jaems> would expose me to some api/nethttp stuff too
<ericwood> jaems: don't forget nokogiri for the parsing
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Coolhand has quit [Remote host closed the connection]
<ericwood> I take it you'd rather scrape than use the twitter API? ;)
<jaems> i'd rather use the api and parse the json
<BinaryMaster> jaems, the project that has done the most for me is a system monitor, reports to a database and for version control of our core applications it checks svn for new tagged version and builds out the application reporting to the developers if there are build problems
<ericwood> jaems: you'll need to use OAuth and whatnot
<ericwood> and register for an API key :|
<jaems> yup, it may not be the best first project.. but it sounded interesting
<ericwood> go for it
sathish316 has joined #ruby
<jaems> right now i'm getting tired of my rails apps following CRUD too much
gchristensen has joined #ruby
<jaems> i want to do other stuff that rails doesn't do inherently
osvico has quit [Ping timeout: 276 seconds]
quazimodo has quit [Ping timeout: 264 seconds]
echevemaster has joined #ruby
<JonnieCache> the whole point of rails is to follow rest/crud
Amfy has joined #ruby
Amfy has quit [Excess Flood]
Coolhand has joined #ruby
ph^ has quit [Read error: Operation timed out]
<JonnieCache> if you want to do something which goes outside that i would strongly advise you to use sinatra
persand has joined #ruby
<jaems> jonniecache: yes, true. but when i want to customize and add custom methods that do things, my ruby lacks
<JonnieCache> you can even mount it inside your rails app!
jovy88 has quit [Read error: Connection reset by peer]
newUser1234 has quit [Remote host closed the connection]
<JonnieCache> hah well this is the best way to make it not lack
quazimodo has joined #ruby
f0ster has joined #ruby
gchristensen has left #ruby ["WeeChat 0.4.0"]
<jaems> my whole thought process was that by learning rails i'd be learning ruby and to an extent that is true. but writing anything ruby from scratch is not happening for me..
<ericwood> +1 for Sinatra
<jaems> jonniecache: thanks for the tip
<JonnieCache> and trust me, if you start to escape the rest/crud straightjacket with rails it ends up in an unholy mess
frem has joined #ruby
Zai00 has joined #ruby
<JonnieCache> but if its for your own personal use then go ahead, you will learn a lot either way
bean has joined #ruby
dustint has joined #ruby
jovy88 has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<ericwood> it's fun for small projects
<MrZYX> we learn from our failures, don't we?
codecop has quit [Remote host closed the connection]
<ericwood> add in an ORM like that mapper thing or whatever it's called and you're set
<JonnieCache> sequel ftw
<jaems> well i'm working on a production app right now that is like a CRM. and there's features/methods i want to add that do certain things. that's where the ruby comes in.
angusiguess has joined #ruby
wagster has joined #ruby
theRoUS has quit [Read error: Connection reset by peer]
<jaems> so i'm thinking if i say, "i want to add this feature". i'll just write it in ruby and add it to the existing rails app
<jaems> i have a bad habit of nabbing other people's code, editing it for my own use and using it sometimes
sathish316 has quit [Client Quit]
<ericwood> no shame in that
interactionjaxsn has joined #ruby
mneorr has quit [Remote host closed the connection]
binaryplease has quit [Ping timeout: 276 seconds]
muhammadn has joined #ruby
<muhammadn> Hi,
f0ster has quit [Read error: Operation timed out]
<muhammadn> i have a question
<ericwood> we don't do questions here
sathish316 has joined #ruby
<ericwood> just answers
chussenot has joined #ruby
<muhammadn> why are ruby applications easily customised? (ie. themeable with css?)
<MrZYX> oO
<muhammadn> compared to php?
xlab has quit [Remote host closed the connection]
<muhammadn> sure. :)
yshh has joined #ruby
<muhammadn> or how easily is it customisable than php? (preferably avoid the php part)
<muhammadn> avoiding*
<ericwood> I don't think you understand the difference between a framework and the language itself
<ericwood> are you talking about Rails?
<muhammadn> yeap!
<MrZYX> -> #rubyonrails
mneorr has joined #ruby
<muhammadn> oh.
<ericwood> PHP is shit, Rails is pretty neat
pen has joined #ruby
<wuest> ericwood: you're being too nice to PHP.
heliumsocket has joined #ruby
<ericwood> yeah, I'm trying to be nicer
<Mon_Ouie> Or an application and the framework. A Ruby application can be written in a way that makes it hard to modify, as can a PHP application be organized properly.
<ericwood> new years resolution
monkegjinni has quit [Read error: Connection reset by peer]
<muhammadn> not really. i see the strengths in each. but for a different purpose.
monkegji_ has joined #ruby
rodacato has joined #ruby
<muhammadn> ruby fits well for now.
<ericwood> Ruby is a language
<muhammadn> Mon_Ouie: thanks. :)
<ericwood> Rails is a framework
<ericwood> >.<
<jaems> well thanks for the motivation, guys. I'm going to read more of my pdf of pickaxe (horrible to read and code on a macbook simultaneously) and then start to hack on some stuff
dev__ has joined #ruby
failshell has joined #ruby
<muhammadn> just a generic question since what i am seeing day-to-day is nice web applications.
GOMADWarrior has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
faldridge has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
gaahrdner has joined #ruby
filipe has quit [Ping timeout: 256 seconds]
devkhadka has quit [Ping timeout: 264 seconds]
dev__ has quit [Ping timeout: 256 seconds]
dev__ has joined #ruby
Morkel has joined #ruby
mattbl has joined #ruby
ntzrmtthihu777 has joined #ruby
akemrir has quit [Ping timeout: 260 seconds]
mattbl has quit [Client Quit]
GOMADWarrior has quit [Ping timeout: 246 seconds]
sathish316 has quit [Quit: Leaving.]
dustint_ has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
ryanhirsch has joined #ruby
ryanhirsch has quit [Max SendQ exceeded]
pencilcheck has joined #ruby
sambio has joined #ruby
ryanhirsch has joined #ruby
hiyakashi has joined #ruby
sathish316 has joined #ruby
dhruvasagar has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
dustint has quit [Ping timeout: 255 seconds]
idkazuma has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
GOMADWarrior has joined #ruby
tk_ has joined #ruby
filipe has joined #ruby
yshh has quit [Read error: Connection reset by peer]
pen has quit [Ping timeout: 252 seconds]
jaems has left #ruby [#ruby]
yshh has joined #ruby
bradhe has joined #ruby
tagrudev has quit [Remote host closed the connection]
sambao21 has joined #ruby
davetherat has quit [Remote host closed the connection]
gaahrdner has quit [Remote host closed the connection]
davetherat has joined #ruby
idkazuma has joined #ruby
elux has joined #ruby
sathish316 has quit [Quit: Leaving.]
Xeago has joined #ruby
cantonic has quit [Quit: cantonic]
muhammadn has quit [Quit: exhausted.]
sathish316 has joined #ruby
faldridge has quit [Quit: faldridge]
gaahrdner has joined #ruby
aganov has quit [Quit: aganov]
chussenot has quit [Quit: chussenot]
bradhe has quit [Ping timeout: 240 seconds]
wedgex has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
mercwithamouth has joined #ruby
wyhaines has joined #ruby
netto has quit [Read error: Connection reset by peer]
Mohan has joined #ruby
Mohan has quit [Changing host]
Mohan has joined #ruby
bradhe has joined #ruby
_nitti_ has joined #ruby
enebo has joined #ruby
timmow_ has joined #ruby
ffranz has joined #ruby
slainer6_ has joined #ruby
Mohan has quit [Read error: Operation timed out]
braoru has quit [Quit: Leaving]
dkannan has quit [Quit: dkannan]
frem has quit [Ping timeout: 264 seconds]
dekz__ has quit [Ping timeout: 256 seconds]
_nitti has quit [Ping timeout: 255 seconds]
callmeivan is now known as fjwjfiewjfw
timmow_ has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 252 seconds]
slainer68 has quit [Ping timeout: 272 seconds]
monkegji_ has joined #ruby
rippa has joined #ruby
bradleyprice has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ttt has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
enebo has quit [Ping timeout: 256 seconds]
Pochacco has quit [Quit: Pochacco]
chussenot has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
newUser1234 has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
enebo has joined #ruby
barbapapa has joined #ruby
rethunk has quit [Ping timeout: 272 seconds]
ZachBeta_ has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
ZachBeta_ has quit [Client Quit]
wesside has joined #ruby
Zarkhder has joined #ruby
awarner has joined #ruby
__alpaca_ has joined #ruby
ryanhirsch has quit [Ping timeout: 264 seconds]
a_a_g has joined #ruby
jprovazn has quit [Quit: Leaving]
pduin has quit [Remote host closed the connection]
wolcanus has joined #ruby
wsterling has joined #ruby
wsterling has quit [Remote host closed the connection]
wsterling has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
ryanhirsch has joined #ruby
ryanhirsch has quit [Max SendQ exceeded]
ryanhirsch has joined #ruby
ryanhirsch has quit [Max SendQ exceeded]
__alpaca_ has quit [Ping timeout: 252 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
ryanhirsch has joined #ruby
ryanhirsch has quit [Max SendQ exceeded]
ryanhirsch has joined #ruby
jamesfung14 has joined #ruby
Astralum has joined #ruby
Astral_ has quit [Ping timeout: 240 seconds]
mattbl has joined #ruby
vlad_starkov has joined #ruby
sathish316 has quit [Quit: Leaving.]
guiambros has joined #ruby
monkegji_ has quit [Remote host closed the connection]
theRoUS has joined #ruby
BadLarry_ has left #ruby ["Leaving"]
monkegjinni has joined #ruby
bradhe has joined #ruby
arturaz has quit [Ping timeout: 256 seconds]
rippa has quit [Ping timeout: 240 seconds]
Gabri has joined #ruby
mark_locklear has joined #ruby
mattbl has quit [Client Quit]
MisterPostIT has quit []
Kruppe has joined #ruby
Vivekananda has joined #ruby
<BinaryMaster> If i use a constant for strftime or strptime do I need to wrap them in quotes? I wouldn't think so but I'm getting an odd error and I'm not sure if it is from that or not as it's the only thing that has seemed to change from last good run
monkegjinni has quit [Remote host closed the connection]
guiambros has quit [Ping timeout: 252 seconds]
rethunk has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
kreantos has quit [Remote host closed the connection]
mneorr_ has joined #ruby
xardas has quit [Ping timeout: 240 seconds]
nminus1 has quit [Ping timeout: 245 seconds]
justsee has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
RORgasm has joined #ruby
heliumsocket has joined #ruby
Hanmac1 has joined #ruby
RORgasm has quit [Remote host closed the connection]
Mohan_ has joined #ruby
RORgasm has joined #ruby
mneorr has quit [Ping timeout: 256 seconds]
Matip has quit [Read error: Connection reset by peer]
<BinaryMaster> Can anyone tell my why I'm not getting the time part of this date back? time = "Wed Apr 10 23:12:16 -0400 2013"
<BinaryMaster> date_obj = Date::strptime(time, "%a %b %d %H:%M:%s %z %Y")
sambao21 has quit [Quit: Computer has gone to sleep.]
lethjakman has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
project2501a has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 252 seconds]
<spider-mario> BinaryMaster : you don’t have to bother getting the format right
<spider-mario> Date::parse appears to work on your input
sambao21 has joined #ruby
<BinaryMaster> OH
<BinaryMaster> cool thank you spider-mario
<spider-mario> hm, maybe DateTime, actually
xardas has joined #ruby
jjbohn has joined #ruby
<spider-mario> oh, that would be it.
<spider-mario> you might need to use DateTime instead of Date
Mohan_ has quit [Ping timeout: 260 seconds]
<BinaryMaster> that would explain it :/
<BinaryMaster> that did it
<BinaryMaster> thank you
haxrbyte has quit [Read error: Connection reset by peer]
chipotle_ has joined #ruby
_bart has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
emptymag00 has quit [Ping timeout: 276 seconds]
tomsthumb has quit [Quit: Leaving.]
lewix has joined #ruby
oneirophren has quit [Ping timeout: 256 seconds]
persand has quit [Quit: persand]
bean has quit [Read error: Connection reset by peer]
bean__ has joined #ruby
_maes_ has joined #ruby
classix has joined #ruby
xardas has quit [Ping timeout: 240 seconds]
<_bart> Just checking out jRuby, but they promote it with an applet: http://jruby.org/tryjruby
atno has quit [Ping timeout: 252 seconds]
<_bart> Somehow applets really turn me off
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
<ericwood> JRuby is great...for production
<ericwood> it's really slow when you're debugging and have to keep restarting stuffs
tk_ has quit [Quit: ばいばい]
sepp2k has joined #ruby
nminus1 has joined #ruby
nomenkun has quit [Ping timeout: 272 seconds]
Zarkhder has left #ruby ["Leaving..."]
Matip has joined #ruby
evenix has quit [Read error: Connection reset by peer]
ckrailo has joined #ruby
atyz has quit [Quit: Linkinus - http://linkinus.com]
SCommette has joined #ruby
evenix has joined #ruby
baphled_ has joined #ruby
jlast has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
w400z has joined #ruby
alup has quit [Quit: Leaving]
s2013 has joined #ruby
emanu has joined #ruby
JMcAfreak has joined #ruby
leonidlm has quit [Ping timeout: 259 seconds]
nwertman has quit [Ping timeout: 252 seconds]
_nitti_ has quit [Remote host closed the connection]
rippa has joined #ruby
Chinorro has quit [Remote host closed the connection]
makkura has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
krz has joined #ruby
shadoi has quit [Quit: Leaving.]
<makkura> I have an interesting issue. I'm calling a command with system() and getting a true return / $?.exitstatus 0 but the command itself [ghostscript] explicitly says it has an exit code of 1
Kruppe has quit [Remote host closed the connection]
kristofers has quit [Ping timeout: 240 seconds]
jonathanwallace has joined #ruby
tomsthumb has joined #ruby
yacks has joined #ruby
newUser1234 has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 255 seconds]
gosshedd has quit [Ping timeout: 264 seconds]
ph^ has joined #ruby
johnnyfuchs has joined #ruby
Targen has joined #ruby
BeepDog has left #ruby [#ruby]
arya has quit [Ping timeout: 248 seconds]
<spider-mario> maybe the command run is actually a wrapper that does not correctly propagate the exit code
baphled_ has quit [Ping timeout: 256 seconds]
jcrawford has quit [Ping timeout: 264 seconds]
banjara has quit [Quit: Leaving.]
<makkura> hmm.. it's gsprint which looks like a wrapper to the gs command so that could be it. I'll try to confirm that or use gs directly.
jkamenik has joined #ruby
newUser1234 has joined #ruby
banjara has joined #ruby
jcrawford has joined #ruby
sayan has quit [Read error: Connection reset by peer]
_bart has quit [Quit: _bart]
banjara has quit [Client Quit]
oneirophren has joined #ruby
banjara has joined #ruby
tjbiddle has joined #ruby
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
<makkura> spider-mario: Confirmed that's what it is. Thanks for the tip.
ph^ has quit [Remote host closed the connection]
arya has joined #ruby
jekotia has joined #ruby
whyme has joined #ruby
chandankumar has joined #ruby
jjbohn is now known as jjbohn|afk
LennyLinux has joined #ruby
gosshedd has joined #ruby
tjbiddle has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 255 seconds]
whyme has quit [Quit: WeeChat 0.4.0]
nminus1 has quit [Ping timeout: 260 seconds]
Morkel has quit [Quit: Morkel]
zigomir has joined #ruby
ninjabot has joined #ruby
afmacedo has joined #ruby
axl_ has joined #ruby
faldridge has joined #ruby
idkazuma has quit [Remote host closed the connection]
oneirophren has quit [Quit: leaving]
oneirophren has joined #ruby
heliumsocket has joined #ruby
dev__ has quit [Ping timeout: 256 seconds]
dev__ has joined #ruby
atno has joined #ruby
Mohan_ has joined #ruby
wreckimnaked has quit [Ping timeout: 252 seconds]
cascalheira has joined #ruby
bklane has joined #ruby
sayan has joined #ruby
io_syl has joined #ruby
marcellu1 has joined #ruby
xlab has joined #ruby
Voodoofish430 has joined #ruby
io_syl has quit [Remote host closed the connection]
facepalm has joined #ruby
Joel has joined #ruby
axl__ has joined #ruby
Hanmac1 has joined #ruby
<Joel> can you call a coderef in ruby like you can in perl?
zeade has joined #ruby
<MrZYX> being a complete perl noob: what's a coderef in perl?
braoru has joined #ruby
b__ has joined #ruby
locriani has quit [Remote host closed the connection]
wyhaines has quit [Read error: Connection reset by peer]
braoru has quit [Remote host closed the connection]
b__ has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby
axl_ has quit [Ping timeout: 255 seconds]
axl__ is now known as axl_
locriani has joined #ruby
<facepalm> need to replace white space 2 or greater between right parenthesis and left curly brace with a single space
urbanmonk has joined #ruby
gyre008 has quit [Quit: Textual IRC Client: www.textualapp.com]
<Joel> MrZYX: reference to code.
<MrZYX> like a block?
<MrZYX> a lambda?
<Joel> $coderef = sub { print "Boink!\n" };
<facepalm> cannot figure out how to get specify the space between ( and { in regex so that there is only a single whitespace
filipe has quit [Remote host closed the connection]
camilasa_ has quit [Remote host closed the connection]
<MrZYX> Joel: my_lambda = -> { puts "Boink!" } ; my_lambda.call or my_lambda.() or my_lambda[]
<Joel> MrZYX: thanks! will google lambda
heliumsocket has quit [Quit: heliumsocket]
tds has joined #ruby
<MrZYX> works for procs too
<Joel> facepalm: your question doesn't make a lot of sense, but a single space is \s
<Joel> facepalm: or \s{1}
<MrZYX> \s{1} is just confusing IMO
<Joel> agreed.
<MrZYX> \s will also match \n
<facepalm> I pasted a link, and it shows example of what I am trying to do as well as what I have tried
<joshu> of the different testing frameworks/ gems what would you recommend I look at as a starting point…I see RSpec, mintiest, rack-test, capybara etc
seanwash has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nveselinov has joined #ruby
jamie_ca_ has joined #ruby
emptymag00 has joined #ruby
<facepalm> basically just trying to remove any occurance of 2 or more space between right ) and left { in a text file so that the { is on same line as the ) in a loop or conditional statement etc.
nezumi has joined #ruby
<MrZYX> .gsub(/)\s\s+{/m, ' ') ?
agarie has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
retry has joined #ruby
<MrZYX> escaping the paren of course
brianpWins has quit [Quit: brianpWins]
mhi^ has left #ruby [#ruby]
aytch has joined #ruby
<Joel> /\s+/\s/
<Joel> no idea how to write that in perl
<Joel> err ruby
oneirophren has quit [Ping timeout: 256 seconds]
<MrZYX> that's valid in perl?
yalue has joined #ruby
<MrZYX> how does it know the regex continues after the / ?
w400z has quit []
ninjabot has quit [Ping timeout: 264 seconds]
pioz has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
JMcAfreak has quit [Remote host closed the connection]
emptymag00 has quit [Read error: Connection reset by peer]
mmlac-bv has joined #ruby
<lectrick> Does Process.spawn start a new thread/process that can run on its own core?
bean__ has quit [Quit: Computer has gone to sleep.]
<lectrick> Or is it just a green thread?
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
shadoi has joined #ruby
<Hanmac1> lectrick: it depends on ruby version and interpreter
<Hanmac1> (and maybe OS too)
freakazoid0223 has joined #ruby
<lectrick> 1.9.3, OS X
seejohnrun has joined #ruby
<seejohnrun> exit
<seejohnrun> ha
seejohnrun has left #ruby [#ruby]
<Hanmac1> then it should be new threads, but connected with Global interpreter lock ... (maybe)
io_syl has joined #ruby
GOMADWarrior has quit [Ping timeout: 256 seconds]
winux has joined #ruby
bananastalktome has joined #ruby
bananastalktome has quit [Client Quit]
m8 has joined #ruby
browndawg has joined #ruby
cloke has joined #ruby
oneirophren has joined #ruby
bananastalktome has joined #ruby
<winux> Once I do an ARGV.each (performed on a set of passed in files), is there a way to rewind back to the first file? ARGV.rewind doesn't seem to work
lewix has quit [Remote host closed the connection]
<winux> ARGF.rewind i mea
tylersmith has joined #ruby
<winux> mean
bananastalktome has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
buscon has quit [Quit: Leaving]
aytch has quit [Read error: Connection reset by peer]
Coolhand has quit [Remote host closed the connection]
aytch has joined #ruby
fedza has joined #ruby
xardas has joined #ruby
jbueza has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
aaronmcadam has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
roadt`` has quit [Ping timeout: 246 seconds]
<Matip> Hello
jbueza has quit [Client Quit]
<Matip> when is it possible to not use ./ and .rb in a require statement?
ananthakumaran has joined #ruby
Coolhand has joined #ruby
bluOxigen has joined #ruby
jbueza has joined #ruby
sambao21 has joined #ruby
<Matip> I installed a gem that use require "active_rdf/helpers", and it says "cannot load such file -- active_rdf/helpers"
<Matip> (there's a helpers.rb file in active_rdf/)
<Joel> MrZYX: send() does what I need it turns out
timmow has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
lkba has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
<MrZYX> Joel: yeah, it wasn't clear what you wanted
<Joel> MrZYX: in perl you'd do my $a ="foo bar"; $a =~ s/\s+/\s/;
<MrZYX> ah, gsub
tenmilestereo has joined #ruby
juarlex has joined #ruby
<Hanmac1> Matip: this is a place for require_relative
Eiam has joined #ruby
gaahrdne_ has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
dekz__ has joined #ruby
gaahrdner has quit [Ping timeout: 272 seconds]
<Matip> Hanmac, I didn't wrote this gem, it should be working without any change..
tjbiddle has joined #ruby
endzyme has joined #ruby
SegFaultAX has joined #ruby
timmow has joined #ruby
ninjabot has joined #ruby
gaahrdne_ has quit [Ping timeout: 272 seconds]
<Matip> it works..
dev__ has quit [Quit: Leaving]
brianpWins has joined #ruby
slainer6_ has quit [Ping timeout: 252 seconds]
urbanmonk has quit [Quit: urbanmonk]
codecop has joined #ruby
monkegjinni has joined #ruby
<shevy> guys
jlast has joined #ruby
<shevy> for a large project, I use a configuration file
<shevy> but I also want to have the user toggle every value of this file at run time
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> what would be the simplest way to have that?
Hobogrammer has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
johnnyfuchs1 has joined #ruby
johnnyfuchs1 has quit [Client Quit]
Vivekananda has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
m8 has quit [Quit: Sto andando via]
cantonic has joined #ruby
sfoobar has joined #ruby
daniel_- has joined #ruby
angusiguess has joined #ruby
heliumsocket has joined #ruby
<Hanmac1> Matip: same again for require_relative ... -> it works if you install it as a gem, but it does not work if you test the code directly
<sfoobar> hi, i want to get a hash value depending on user input, but input = gets.to_s ; puts hash[input] doesn't work, can someone tell me why?
<MrZYX> doesn't work is no error description
<MrZYX> what do you expect, what do you have
<sfoobar> i dont get any value
<MrZYX> guess you never put one in
<sfoobar> meh, no, wait i will post it on pastebin
<MrZYX> exactly
<Hanmac1> sfoobar: you forgot to chomp the gets return
<MrZYX> Hanmac1 spoiling all the fun again ;P
ananthakumaran has quit [Ping timeout: 252 seconds]
<MrZYX> sfoobar: gets returns the submitting newline too
<sfoobar> Hanmac1: wait, i will try that
Vivekananda has joined #ruby
<MrZYX> I prefer .rstrip instead of .chomp in such cases
unstable has quit [Changing host]
unstable has joined #ruby
<sfoobar> MrZYX, Hanmac1: works like a charm, thanks!
mattp_ has quit [Read error: Connection reset by peer]
lkba has joined #ruby
mattp_ has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
m8 has joined #ruby
ananthakumaran has joined #ruby
dhruvasagar has joined #ruby
mrdtt has joined #ruby
nephfl has quit [Ping timeout: 245 seconds]
lewix has joined #ruby
vikhyat has quit [Remote host closed the connection]
barbapapa has quit [Remote host closed the connection]
rupee has joined #ruby
kristofers has joined #ruby
timkohrumel has joined #ruby
osvico has joined #ruby
ph^ has joined #ruby
ephemerian has quit [Quit: Leaving.]
endzyme has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
dhruvasagar has joined #ruby
lewix has quit [Remote host closed the connection]
afmacedo has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
jbueza has quit [Quit: Leaving.]
banjara has quit [Quit: Leaving.]
<Hanmac1> wher is my apeiros ;(
<Xeago> no idea :'( last time I heard of him he had a headache
ph^ has quit [Ping timeout: 264 seconds]
mafolz has quit [Ping timeout: 264 seconds]
<Quadlex> He broke his finger so we shot him
<Quadlex> It's best not to let them suffer
chandankumar has quit [Ping timeout: 248 seconds]
chandankumar has joined #ruby
<MrZYX> Hanmac1: just stop hitting his head with your code
<MrZYX> he might return
<Quadlex> Right index finger, too. That's the colon finger.
jbueza has joined #ruby
<Hanmac1> my current problem: i have this: {:red => 0.2, :blue => 0.4, :green => 0.4} and i want to return the keys at the given probability
randym has joined #ruby
<Hanmac1> what is the nicest way to write this?
LnL has quit [Quit: LnL]
<Xeago> basically you have a range of options 0.0-1.0
<Xeago> and depending on where in that range it is, one of the keys should be returned?
end_guy has quit [Quit: leaving]
<elaptics> Hanmac1: hash.select {|k,v| v == value_you_are_looking_for }.keys
<Hanmac1> elaptics: thats not what i want ...
<Xeago> I'd subtract the values in the hash from the given probability until that is <= than the value in the hash
LnL has joined #ruby
<Xeago> as soon as it is lessequal than the value in the hash, you have the right key
<Hanmac1> like i have a rand that returns 0.5, in my sample it should return :blue because its in the blue range of the hash
maveonair has joined #ruby
<elaptics> Hanmac1: why blue and not green? (Not sure I understand what you want)
<Xeago> because red takes the bottom .2, blue the next .4
<Xeago> and green the next .4
<Xeago> totalling to 1 (the full domain)
<Hanmac1> Xeago: understand my idea behind that
<Xeago> picking a point on that scale: .5 => blue
<Xeago> Hanmac1: I'd either subtract from the given probability
<elaptics> ah now I understand :)
thone has quit [Read error: Operation timed out]
<Xeago> or add the values in the hash together until they are bigger than the given probability
marcdel has joined #ruby
<Xeago> my ruby and code fu is lacking, can't write you something
winux has quit [Quit: Leaving.]
Morkel has joined #ruby
<MrZYX> build ranges and check for covers? I still don't like to depend on the order of a hash though
rakl has joined #ruby
robottinosino has quit [Quit: WeeChat 0.4.0]
<Xeago> MrZYX: hashes are ordered nowadays, I don't like it either
vikhyat has joined #ruby
<Xeago> usually the order is important
<Xeago> as the input is random
<Xeago> s/important/not important
thone has joined #ruby
ebobby has joined #ruby
<joshu> how can I sort the posts when I do this @posts = Dir['posts/*.markdown'].map do |post| at the moment it shows oldest to newest…but what if I want the reverse…I tried adding .sort but it didn't work…do I have to do this within the do end block?
mneorr_ has quit [Remote host closed the connection]
alexyz has quit [Remote host closed the connection]
vikhyat has quit [Remote host closed the connection]
jdunck has joined #ruby
pcarrier has joined #ruby
facepalm has quit [Quit: Page closed]
lewix has joined #ruby
kiri has quit [Ping timeout: 246 seconds]
lewix has quit [Remote host closed the connection]
banjara has joined #ruby
winux has joined #ruby
winux has quit [Changing host]
winux has joined #ruby
<shevy> if you only want the reverse, you can use .reverse
<shevy> for .sort you have to supply a {} block
<shevy> or use .sort_by
nateberkopec has quit [Read error: Connection reset by peer]
<Hanmac1> Xeago: i do se.inject(nil){|m,(k,v)| break k if r < m.to_f + v; m.to_f + v} # because i need nil if the se hash is empty
heliumsocket has quit [Quit: heliumsocket]
<shevy> joshu, %w{ apple pear fig }.sort_by {|word| word.length} # => ["fig", "pear", "apple"]
kiri has joined #ruby
nateberkopec has joined #ruby
<MrZYX> Hanmac1: http://paste.mrzyx.de/show.php?id=1429 there's probably a smarter way, but yeah, that would be my approach
zodiak has joined #ruby
maveonair has quit [Ping timeout: 264 seconds]
kuzushi_ has quit [Read error: Connection reset by peer]
m8 has quit [Read error: Connection reset by peer]
kofno has quit [Read error: Connection reset by peer]
gaahrdner has joined #ruby
wmoxam has quit [Quit: Lost terminal]
kuzushi_ has joined #ruby
aytch has quit [Remote host closed the connection]
renanoronfle has quit [Read error: Connection reset by peer]
alex__c2022 has quit [Read error: Operation timed out]
m8 has joined #ruby
Coolhand has quit [Read error: Operation timed out]
reactormonk has quit [Read error: Operation timed out]
kofno has joined #ruby
Voodoofish430 has quit [Read error: Connection reset by peer]
renanoronfle has joined #ruby
mrsolo has joined #ruby
carlyle has joined #ruby
vlad_sta_ has joined #ruby
echevemaster has quit [Read error: Operation timed out]
c0rn has joined #ruby
casheew has quit [Read error: Operation timed out]
JonnieCache has quit [Ping timeout: 245 seconds]
jsaak has quit [Read error: Operation timed out]
jani has quit [Read error: Operation timed out]
hamakn has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
<Hanmac1> joshu info about Dir[] and Dir.glob, its order of the filesystem ... that also means its filesystem depend and you cant trust the order ...
tomzx_mac has quit [Read error: Operation timed out]
JonnieCache has joined #ruby
alex__c2022 has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
wesside has quit [Ping timeout: 252 seconds]
tomzx_mac has joined #ruby
Coolhand has joined #ruby
<joshu> Hanmac1 ok so if i need to get all the markdown files and then I want to process them in order…btw the files are named according to date, so 2013-04-22-blah-blah.markdown etc
Davey has quit [Ping timeout: 252 seconds]
skattyadz has quit [Quit: skattyadz]
jeebster has joined #ruby
baba has quit [Read error: Operation timed out]
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<Hanmac1> shevy i am angry why there is not such like reverse_sort_by :{
vlad_starkov has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
predator217 has quit [Ping timeout: 252 seconds]
heliumsocket has joined #ruby
Davey has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
jani has joined #ruby
ananthakumaran has joined #ruby
casheew has joined #ruby
jsaak has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
jani is now known as Guest39061
devdazed has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
maveonair has joined #ruby
wesside has joined #ruby
predator117 has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
mockra has joined #ruby
<shevy> Hanmac1 lol
<shevy> too many _ though
<shevy> always consider
<shevy> reverse_sort_by
devdazed has joined #ruby
<shevy> vs
jnoob22 has joined #ruby
<shevy> reverse.sort.by
ebobby has left #ruby [#ruby]
<Hanmac1> because the first one may be faster?
dmiller has joined #ruby
adamjleonard has quit [Read error: Connection reset by peer]
rakl has quit [Quit: sleeping]
dorei has joined #ruby
Radnor has joined #ruby
Radnor has left #ruby [#ruby]
moted has quit [Quit: moted]
<dorei> if x is an array, and i do x << t , how can i find the position of t in the array?
<MrZYX> hm, which sorting algorithm is ruby actually using?
moted has joined #ruby
<otters> dorei: it's the last one
decentrality has joined #ruby
<dorei> otters: of course it's the last one xD
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
<otters> what are you asking, then
predator117 has quit [Ping timeout: 240 seconds]
<dorei> otters: i was wondering if there's some shortcut other than x.size
<otters> x.index(t) ?
unflores has quit [Quit: unflores]
chandankumar_ has joined #ruby
<MrZYX> uh, that's slow compared to x.size-1
<otters> yeah, I'm not sure what you want
mark_locklear has joined #ruby
<dorei> x.size-1 is the fastest then?
<otters> yeah
Jalada has quit [Read error: Operation timed out]
<dorei> thanx :)
Jalada_ has joined #ruby
Jalada_ has quit [Changing host]
Jalada_ has joined #ruby
jetblack_ has joined #ruby
Morkel has quit [Quit: Morkel]
predator117 has joined #ruby
bklane has quit [Remote host closed the connection]
Jalada_ is now known as Jalada
SDr_ has joined #ruby
ariedler has quit [Remote host closed the connection]
akam_ has joined #ruby
reactormonk has joined #ruby
jetblack has quit [Read error: Operation timed out]
chandankumar has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
forlin has quit [Remote host closed the connection]
mneorr has joined #ruby
invisime has quit [Quit: Leaving.]
SDr has quit [Ping timeout: 252 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rakl has joined #ruby
baba has joined #ruby
a_a_g has quit [Quit: Leaving]
<shevy> Hanmac1 if speed is an issue, there is always C :P
predator117 has quit [Ping timeout: 264 seconds]
timmow has quit [Ping timeout: 252 seconds]
<joshu> Hanmac1 any thoughts on sorting as I described?
<joshu> do I create the array and then sort or sort before creating the array?
pioz has joined #ruby
pcarrier has quit [Ping timeout: 255 seconds]
divout has quit [Read error: Connection reset by peer]
tvw has joined #ruby
<shevy> Hanmac1 no surprise, the USA is a big country founded by thugs :>
pcarrier has joined #ruby
predator117 has joined #ruby
Asher1 has joined #ruby
Asher1 has quit [Client Quit]
Asher1 has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
ariedler has joined #ruby
Asher1 has quit [Client Quit]
Asher has joined #ruby
ph^ has joined #ruby
<shevy> Hanmac1 problem with such stories is whether they are credible or not
<joshu> solved it with reverse
tvw has quit [Client Quit]
adamjleonard has joined #ruby
d2dchat has quit [Remote host closed the connection]
akam-it has quit [Remote host closed the connection]
akam_ has quit [Quit: Leaving]
kenneth has quit [Quit: kenneth]
Coolhand has quit [Remote host closed the connection]
medk has quit [Remote host closed the connection]
BizarreCake has quit [Ping timeout: 255 seconds]
icole has joined #ruby
akam-it has joined #ruby
akam-it has quit [Client Quit]
anderse has joined #ruby
akam-it has joined #ruby
ferdev has quit [Quit: ferdev]
cantonic has quit [Quit: cantonic]
Zai00 has quit [Quit: Zai00]
Coolhand has joined #ruby
jjbohn|afk is now known as jjbohn
jonahR has joined #ruby
goraxe has quit [Quit: WeeChat 0.3.7]
jbueza has quit [Quit: Leaving.]
jonahR has quit [Client Quit]
<joshu> next issue how do I limit the number of results returned from Dir['posts/*.markdown'].reverse.map do |post|
sambao21 has quit [Quit: Computer has gone to sleep.]
<joshu> so say I just want 5 results
<aedorn> I have this Ruby script named "take_over_the_world.rb", and every time I run it, it doesn't take over the world. In fact, it doesn't do anything at all!
io_syl_ has joined #ruby
bricker`away is now known as bricker
rickruby has joined #ruby
<shevy> joshu you need to switch on your brain man
io_syl has quit [Ping timeout: 264 seconds]
io_syl_ is now known as io_syl
<shevy> joshu what you have here is an array, ok?
oneirophren has quit [Ping timeout: 256 seconds]
<MrZYX> aedorn: you need to run gem install maniac_genius first
<shevy> and to return the first 5 results from an array, you can use array[0..5]
<shevy> hmm
<shevy> array[0..4]
<MrZYX> or 0, 5
<shevy> MrXYZ
<shevy> stop being queer :D
<MrZYX> shevy: just fix your client to reverse it
<joshu> shevy easy man take your aggression elsewhere I just asked a question if you don't want to answer that's fine!
<MrZYX> or .first(5)
emmanuelux has joined #ruby
wmoxam has joined #ruby
<MrZYX> or .last(5).reverse
sambao21 has joined #ruby
cmarques has quit [Quit: leaving]
cmarques has joined #ruby
chipotle_ has quit [Quit: cya]
dayom has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
stkowski has joined #ruby
<joshu> MrZYX thank you that's what I needed!
chipotle_ has joined #ruby
makkura has quit [Quit: Leaving]
<MrZYX> joshu: shevys way works too
xcv has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
kenneth has joined #ruby
vikhyat has joined #ruby
Nahra has joined #ruby
choobie has quit [Read error: Connection reset by peer]
jjbohn is now known as jjbohn|afk
hadees has quit [Ping timeout: 272 seconds]
wgosling has quit [Quit: Konversation terminated!]
axl_ has quit [Quit: axl_]
osvico has quit [Ping timeout: 256 seconds]
alvaro_o has joined #ruby
baphled has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Asher1 has joined #ruby
sfoobar has left #ruby [#ruby]
workmad3 has joined #ruby
d2dchat has joined #ruby
<shevy> yeah but he hates me now
Macaveli has joined #ruby
yshh has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Macaveli has quit [Client Quit]
fedza has quit [Ping timeout: 255 seconds]
Asher has quit [Ping timeout: 264 seconds]
stanzh has joined #ruby
jonathanwallace has joined #ruby
stanzh has left #ruby [#ruby]
troessner has quit [Ping timeout: 264 seconds]
vlad_sta_ has quit [Ping timeout: 272 seconds]
forrest has joined #ruby
love_color_text has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
pcarrier has quit [Quit: Computer has gone to sleep.]
cableray has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
Xuerian has joined #ruby
chipotle_ has quit [Quit: cya]
stkowski has quit [Quit: stkowski]
avalarion has joined #ruby
jrgarcia has joined #ruby
jrgarcia has left #ruby [#ruby]
skattyadz has joined #ruby
arietis has joined #ruby
<avalarion> Hey ho, I am trying to install redmine, but don't want to use postgreSQL… So I tried this… http://pastebin.com/bA13kuac
motto has joined #ruby
<MrZYX> --without is for groups, not for gems
<cmyers> any advice for which xml parsing gem to use? I need pure-ruby (works in MRI and jruby), parsing many thousands of small xml files (<50kb each), multi-threaded support is important (like, I would do one file per thread)
m8 has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
urbanmonk has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
* Hanmac1 point and laugh about jruby users
<avalarion> MrZYX: Ah, learnt something again. is there a way to do it without posture?
xardas has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0.1/20130409194949]]
<MrZYX> I'm sorry, try Erlang.
grenierm has joined #ruby
<marr> what's the gem for quite large xml files like 100MB - 3GB ?
<shevy> hehe
jkamenik has left #ruby [#ruby]
<Hanmac1> marr: nokogiri is cool
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
nooodl has joined #ruby
<Xuerian> 3gb xml files? O_o
<Hanmac1> if he uses the right Parser than its possible (Nokogiri supports SAX)
<cmyers> marr: libxml-ruby uses libxml2 and is very fast, but it is a native gem so it won't work in jruby, only MRI
grenierm has left #ruby [#ruby]
<nooodl> hi! little sinatra/haml question: when i define some haml templates using __END__ and @@, can i somehow embed one template into another?
<marr> Xuerian: with BigData every size is possible :)
<nooodl> http://bpaste.net/show/rAbyC4i87fgjMAqkQkmU/ something like this. "haml :b" would be <p>whooosh!</p><p>whooosh!</p>
bean has joined #ruby
bean has quit [Max SendQ exceeded]
cableray has quit [Quit: cableray]
<Xuerian> marr, Well, it was less a question of data size more a "Why are you using XML to store 3gb of data and trying to use ruby to parse 3gb xml files", but I suppose "To get the job done" is really the only answer
bean has joined #ruby
bean has quit [Max SendQ exceeded]
jtharris has joined #ruby
<cmyers> dumb people choose XML. smart people are forced to use it by dumb people. Therefore, smart and dumb people still use xml =(
bean has joined #ruby
<Hanmac1> cmyers: for sample nokogiri works with jruby too
<cmyers> Hanmac1: hmm, if it has a sax parser and works with jruby, then it makes my short list.
<Xuerian> cmyers, good point.
<cmyers> I'll go look at it - thanks =)
<Hanmac1> cmyers i prefer xml for map format and for the default database
hamakn has joined #ruby
Apes has joined #ruby
jerius_ has joined #ruby
fmcgeough has joined #ruby
rdark has quit [Quit: leaving]
jbueza has joined #ruby
jerius has quit [Read error: Operation timed out]
jerius_ is now known as jerius
<cmyers> XML is terrible at it's own design goals, as well as several others. It does not diff cleanly. It is not easily human-readable or human parsable. It is not easily machine readable or machine parsable. It is not compact. It is not efficient in time or space. There is almost nothing redeeming about it at all, and I assert I could make a solid argument for using JSON, YAML, or a plain text format over XML for every use case you can come up with that is not
<cmyers> the sooner the rest of the world realizes this, the sooner I can stop having to deal with XML
<Apes> Anyone here have thoughts on installing executables via gems? Is it a good practice or should gems be exclusively for managing ruby libraries?
ananthakumaran has quit [Quit: Leaving.]
<cmyers> ./soapbox off
RagingDave has quit [Quit: Ex-Chat]
<cmyers> Apes: depends on your intended users and what exactly you are hoping to vend
<cmyers> rvm makes it easy to distribute ruby apps including binaries in gems to end-users
<nooodl> oh, i figured it out. it's just "= haml :b"
RagingDave has joined #ruby
skattyadz has quit [Ping timeout: 256 seconds]
hamakn has quit [Ping timeout: 260 seconds]
unflores has joined #ruby
akashj87 has quit [Quit: Leaving]
Uranio has quit [Read error: Connection reset by peer]
beiter has quit [Quit: beiter]
AndChat- has joined #ruby
pcarrier has joined #ruby
ferdev has joined #ruby
Macaveli has joined #ruby
postmodern has joined #ruby
vikhyat has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 272 seconds]
skattyadz has joined #ruby
adambeynon has joined #ruby
xkickflip has quit [Ping timeout: 256 seconds]
carlyle has quit [Read error: Connection reset by peer]
xkickflip has joined #ruby
persand has joined #ruby
__alpaca_ has joined #ruby
jacobw has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
pioz has joined #ruby
vikhyat has joined #ruby
vikhyat has quit [Remote host closed the connection]
axl_ has joined #ruby
anderse has quit [Quit: anderse]
akhet has quit [Remote host closed the connection]
__alpaca_ has quit [Ping timeout: 256 seconds]
skattyadz has quit [Quit: skattyadz]
monkegjinni has quit [Remote host closed the connection]
Tricon has joined #ruby
akhet has joined #ruby
akhet has quit [Client Quit]
<wmoxam> cmyers: I think your idea of 'easy' and mine are quite different ;)
Coolhand has quit [Remote host closed the connection]
Michael__ has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
<cmyers> wmoxam: fair.
sambao21 has quit [Quit: Computer has gone to sleep.]
decentrality has quit [Quit: decentrality]
browndawg has quit [Quit: Leaving.]
faldridge has quit [Quit: faldridge]
pioz has quit [Quit: Leaving]
hashmal has quit [Quit: Textual IRC Client: www.textualapp.com]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
jonathanwallace has joined #ruby
MisterPostIT has joined #ruby
pioz has joined #ruby
Coolhand has joined #ruby
carlyle_ has joined #ruby
pioz has quit [Client Quit]
agarie has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
carlyle has quit [Ping timeout: 245 seconds]
timmow has joined #ruby
cantonic has joined #ruby
sambao21 has joined #ruby
Coolhand has quit [Read error: Connection reset by peer]
Macaveli has left #ruby ["Leaving"]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
carlyle_ has quit [Read error: Connection reset by peer]
jrendell has joined #ruby
Guest has joined #ruby
carlyle has joined #ruby
bradhe has quit [Remote host closed the connection]
pi3r has quit [Quit: Leaving]
bradhe has joined #ruby
jjbohn|afk is now known as jjbohn
<nezumi> Where is a good place to get some help with Savon?
carlyle has quit [Remote host closed the connection]
<jeebster> I had my first encounter with SOAP recently. what a hassle
wolcanus_ has joined #ruby
<tjbiddle> Anyone have any comment on passing around arguments in a single hash rather than specifying each argument?
decentrality has joined #ruby
Coolhand has joined #ruby
<dinoex> passing a hash should use less stack (not verified)
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
mrdtt has quit [Read error: Connection reset by peer]
balishag has joined #ruby
chrishough has quit [Quit: chrishough]
jonathanwallace has joined #ruby
mrdtt has joined #ruby
d-best has quit [Quit: Reconnecting]
bradhe has quit [Ping timeout: 255 seconds]
d-snp has joined #ruby
wolcanus has quit [Ping timeout: 256 seconds]
<nezumi> Well, crap, the Savon mailing list requires a Google account. That's not going to work very well.
<froy> join #perl
<froy> oops :)
<MrZYX> nezumi: you don't need a google account for ggroups
mxweas has joined #ruby
<nezumi> If I try to subscribe I wants me to log in
Coolhand has quit [Read error: Connection reset by peer]
<MrZYX> just sent a mail to groupname+subscribe@googlegroups.com
<nezumi> I'm glad that is so obvious from the Google interface....
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
<MrZYX> yeah
Coolhand has joined #ruby
dmiller has quit [Remote host closed the connection]
persand has quit [Quit: persand]
megha has joined #ruby
unflores has quit [Quit: unflores]
vikhyat has joined #ruby
baba has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
<nezumi> Google sends me email that takes me back to the Google login page
bubbajones has quit [Quit: leaving]
<MrZYX> hm, there was a time where that worked
ddd__ is now known as ddd
<MrZYX> maybe just try posting directly do groupname@googlegroups.com?
ninjabot has quit [Quit: Leaving]
<MrZYX> (quite some lists have mod queues, so if it doesn't appear but you get no bounce that might be just that)
<nezumi> Google really is becoming powermad
<dinoex> "they Are not evil yet?"
<ddd> its 'powermad' to cater to what the VAST majority of users do, which is log in and interact through the interface rather than via email (which *I* do)? Not!
<MrZYX> shutting down reader, starting to cripple their XMPP server, getting really unattractive recently, yeah
winux has quit [Quit: Leaving.]
<aedorn> Good thing I only use gmail and search! Er, and I guess YouTube.
<nezumi> I know very little about WSDL, I'm not really a developer, I'm trying to interface with a product that I can't find anyone who is actually using, and I suppose it is Monday.
<ddd> *that* is (the XMPP part) powermad to me, but his statement wasn't. One should have realized they were powermad anyways when their mission statement was to be THE central repo for human knowledge on the internet
schickung_ has joined #ruby
<ddd> A *commercial* entity being THE central repo of human knowledge on the internet.. yeah, thats powermad
<nezumi> So I really need to find some help for a beginner with Savon
<aedorn> ddd: wait, who/when said that?
angusiguess has quit [Ping timeout: 255 seconds]
<ddd> Used to be that the Library Of Congress was, Google since the beginning has stated they wanted to eclipse that
LnL has quit [Quit: LnL]
avalarion has quit [Quit: avalarion]
<ddd> aedorn: Google has stated since the beginning that their end goal is to be the central repositoryof human knowledge on the internet.
<ddd> when all they were was a search engine
mrdtt has quit [Read error: Connection reset by peer]
<aedorn> I don't see that happening unless they own a few more entities, like wikipedia, for instance.
<breakingthings> ddd that sounds like wikiped's goal moreso than goggles
wolcanus_ has quit [Remote host closed the connection]
schickung has quit [Ping timeout: 252 seconds]
schickung_ is now known as schickung
Hanmac1 has quit [Ping timeout: 246 seconds]
wolcanus has joined #ruby
yshh has joined #ruby
Guest is now known as hashmal
mercwithamouth has joined #ruby
skattyadz has joined #ruby
Hanmac1 has joined #ruby
faldridge has joined #ruby
interactionjaxsn has joined #ruby
GOMADWarrior has joined #ruby
timkohrumel is now known as tkoh
xlab_ has joined #ruby
radic_ has quit [Quit: Verlassend]
Hanmac2 has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
radic has joined #ruby
ephemerian has joined #ruby
yshh has quit [Ping timeout: 272 seconds]
xlab has quit [Ping timeout: 245 seconds]
GOMADWarrior has quit [Max SendQ exceeded]
afmacedo has joined #ruby
GOMADWarrior has joined #ruby
d2dchat has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Hanmac2 has quit [Ping timeout: 256 seconds]
anderse has joined #ruby
Coolhand has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
winux has joined #ruby
winux has quit [Changing host]
winux has joined #ruby
Morkel has joined #ruby
lele has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
d3c has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<aedorn> I love doing google searches for Go (the language.) I can't think of a more productive waste of time.
sayan has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
<nooodl> aedorn: hah, try "J": a relatively unknown language, *and* the documentation isn't very good, *and* its name is a single letter
<aedorn> Pro-tip: Don't name your product the same as a 2,500+ year old game.
lele has joined #ruby
fedza has joined #ruby
dankest has joined #ruby
<aedorn> nooodl: Well, at least with "J" I get a whole slew of different stuff. All the things I could learn that begin with J!
LnL has joined #ruby
<spider-mario> “the documentation isn't very good”
<spider-mario> that’s quite an understatement, if you ask me
geson has quit [Quit: Leaving.]
<nooodl> yeah it's really mostly just this page: http://www.jsoftware.com/help/dictionary/vocabul.htm
<nooodl> if you can't find the answer to your problem on there you're screwed...
Coolhand has joined #ruby
anderse has quit [Quit: anderse]
<aedorn> maybe I'll just write it in C at this rate
Coolhand has quit [Remote host closed the connection]
<aedorn> hmmm, or maybe JRuby would actually be fast enough ... curious!
rodacato has quit [Ping timeout: 264 seconds]
rodacato has joined #ruby
mneorr has quit [Remote host closed the connection]
nveselinov has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
Coolhand has joined #ruby
yashshah has quit [Remote host closed the connection]
<aedorn> and the answer to that question is ...... it doesn't work at all. Okay, fine. I don't need it to work anyway!
yashshah has joined #ruby
Hanmac has joined #ruby
snearch has joined #ruby
_nitti has joined #ruby
angusiguess has joined #ruby
swarley has quit [Ping timeout: 245 seconds]
Gabri has quit [Remote host closed the connection]
iPhoneMRZ has joined #ruby
Nisstyre-laptop has joined #ruby
bradhe has quit [Remote host closed the connection]
fermion has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
Coolhand has quit [Read error: Connection reset by peer]
<spider-mario> it would probably be funny if, suddenly, all those J-things in computing actually related to J instead of Java. :p
iPhoneMRZ has quit [Client Quit]
<spider-mario> picture it
<spider-mario> JRuby
<spider-mario> :D
sambao21 has quit [Quit: Computer has gone to sleep.]
<sam113101> I don't get it?
<spider-mario> do you know J?
<sam113101> no
Coolhand has joined #ruby
sambao21 has joined #ruby
<spider-mario> it’s that language: http://rosettacode.org/wiki/Ray-casting_algorithm#J
slainer68 has joined #ruby
mxweas has quit [Quit: Leaving...]
guiambros has joined #ruby
sambao21 has quit [Client Quit]
swarley-freenode has joined #ruby
mneorr has joined #ruby
carlyle has joined #ruby
sambao21 has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
yalue has quit [Quit: Leaving]
carlyle has quit [Read error: Connection reset by peer]
xkickflip has quit [Quit: h..hi]
carlyle has joined #ruby
buscon has joined #ruby
MisterPostIT has quit [Quit: MisterPostIT]
buscon has quit [Remote host closed the connection]
wsterling has quit [Ping timeout: 245 seconds]
_nitti_ has joined #ruby
Coolhand has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<aedorn> Nope, fixed for JRuby and it's still too slow. Maybe it's just MySQL. Guess that wouldn't really surprise me.
Ripp__ has joined #ruby
jacobw has joined #ruby
geekbri_ has joined #ruby
Coolhand has joined #ruby
geekbri has quit [Read error: Operation timed out]
carlyle has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 264 seconds]
bluefish has joined #ruby
<bluefish> # Is there a way to shorten this? https://gist.github.com/ebbflowgo/5438085
tvw has joined #ruby
wolcanus_ has joined #ruby
jhn has joined #ruby
ph^ has quit [Remote host closed the connection]
<aedorn> why not just: puts "ok" if y == 3 ?
<MrZYX> puts "ok" if true
jeffreylevesque has quit [Remote host closed the connection]
wolcanus has quit [Ping timeout: 260 seconds]
tvw has quit [Client Quit]
<Eiam> anyone familiar with what the heck openca.steamheat.net is?
<MrZYX> bluefish: if y is 2 it's != 4, if it's 4 it's != 2
<Eiam> charles proxy seems to be using that as a cert authority but google returns not much aside from a hit in eventmachine source?
Xuerian has quit [Read error: Connection reset by peer]
tvw has joined #ruby
akam-it has quit [Remote host closed the connection]
<MrZYX> Eiam: that doesn't even resolve for me
<Eiam> right.. me neither..
<MrZYX> why bother then
schickung has quit [Quit: schickung]
ephemerian has quit [Ping timeout: 264 seconds]
<Eiam> because its the cert charles proxy provides..
<Eiam> in order to intercept your SSL traffic
johnnyfuchs has quit [Remote host closed the connection]
bhaarat has quit [Quit: bhaarat]
jhn has quit [Remote host closed the connection]
axl_ has left #ruby [#ruby]
<Eiam> okay, I could try another approach
<Eiam> I had assumed https://gist.github.com/anonymous/bfb3b887e71fc5ba1851 this would generate a new cert every time thin comes down & up
d2dchat has joined #ruby
<Eiam> but according to Safari, its still the same cert it trusted a few days ago..
<Eiam> wouldn't that be generating a new cert every time the server is brought online?
Coolhand has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
<aedorn> steamheat.net is part of bayshore networks, and they run their own cert authority
geekbri_ has quit [Remote host closed the connection]
<aedorn> or used to, rather...
<aedorn> Hmm
<aedorn> Weird
<Eiam> right
<Eiam> i bumped into bayshore networks but the whole thing was confusing me
Coolhand has joined #ruby
johnnyfuchs has quit [Read error: Connection reset by peer]
tonini has joined #ruby
<aedorn> Yup. I'm confused, too.
pcarrier has quit [Ping timeout: 245 seconds]
jhn has joined #ruby
bluefish has quit [Quit: Page closed]
<aedorn> Might just be a relic
jhn has quit [Client Quit]
winux has quit [Quit: Leaving.]
jhn has joined #ruby
pcarrier has joined #ruby
johnnyfuchs has joined #ruby
sepp2k has quit [Quit: Leaving.]
wyhaines has quit [Remote host closed the connection]
Hobogrammer_ has joined #ruby
Axsuul has joined #ruby
heliumso_ has joined #ruby
dmiller has joined #ruby
Silent__ has joined #ruby
<droppedonmyhead> can someone explain factory methods? I need to create a class method that satisfies: Temperature.from_celsius(50).in_fahrenheit.should == 122
zodiak has quit [Ping timeout: 272 seconds]
centipedefarmer has quit [Remote host closed the connection]
mark_locklear has quit [Remote host closed the connection]
progbyperm has joined #ruby
sepp2k has joined #ruby
sepp2k has quit [Client Quit]
heliumso_ has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 264 seconds]
<aedorn> There seems to be soy sauce splattered all over my monitor. Obviously sushi at the computer while working was a bad idea!
d3c has quit [Read error: Connection reset by peer]
heliumso_ has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
Hobogrammer_ has quit [Ping timeout: 264 seconds]
cloke_ has joined #ruby
d3c has joined #ruby
kpshek has quit []
alo1 has joined #ruby
heliumso_ has left #ruby [#ruby]
<nezumi> sushi is a bad idea.
<canton7> droppedonmyhead, class Temperature; def in_fahrenheit; ... end; def self.from_celcius; ... end; end;
cloke has quit [Ping timeout: 260 seconds]
cloke_ is now known as cloke
<canton7> inside self.from_celcius, return Temperature.new(...)
snearch has quit [Quit: Verlassend]
ryanhirsch has quit [Quit: Computer has gone to sleep.]
<aedorn> nezumi: but it tastes so good
s2013 has quit [Ping timeout: 256 seconds]
etcetera has joined #ruby
<nezumi> I understand that if you cook sushi, it tastes just like seafood
Dwarf has quit [Ping timeout: 246 seconds]
<injekt> that's because sushi is.. seafood
<droppedonmyhead> canton7: http://www.repl.it/Igg
krz has quit [Quit: krz]
chipotle_ has joined #ruby
Morrolan has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
<droppedonmyhead> canton7: has to satisfy: Temperature.new(:f => 98.6).in_celsius.should == 37
<droppedonmyhead> canton7: as well
<Eiam> aedorn: relic in an SSL cert chain isn't really a great idea
<Eiam> "install this cert to MITM all your SSL traffic"
<Eiam> OK
icole has quit [Remote host closed the connection]
retry has quit [Quit: Linkinus - http://linkinus.com]
<Eiam> also its a relic & outdated and no one knows the itermediate signing authority. what could possibly go wrong
fmcgeough has quit [Quit: fmcgeough]
icole has joined #ruby
mengu has joined #ruby
<aedorn> Eiam: Yes, but if you don't look at the problem, logic dictates that it must not exist! It must be true, management told me so.
companion has quit [Quit: Poweroff]
sambao21 has quit [Quit: Computer has gone to sleep.]
companion has joined #ruby
<droppedonmyhead> canton7: i get undefined method `in_celsius' for {:c=>50}:Hash
braoru has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
cantonic has quit [Quit: cantonic]
jjbohn has quit [Quit: Leaving...]
sambao21 has joined #ruby
d3c has quit [Read error: Connection reset by peer]
jeebster1 has joined #ruby
zastern has joined #ruby
<canton7> droppedonmyhead, stick to storing either celcius or fahrenheit internally, not both
<canton7> and in the self.from_whatever methods, return a new Temperature object
<droppedonmyhead> canton7: but i have to be able to convert both going both directions...
<droppedonmyhead> canton7: oh nice i gotcha
jeebster has quit [Ping timeout: 245 seconds]
Michael__ has quit [Remote host closed the connection]
<canton7> yeah, but store just celcius internally, and convert as needs be
huoxito has quit [Quit: Leaving]
havenwood has joined #ruby
ixti has joined #ruby
<droppedonmyhead> canton7: not sure what you mean by storing internally
<droppedonmyhead> canton7: test worked btw
<canton7> cools
<droppedonmyhead> canton7: tx
stkowski has joined #ruby
vikhyat has quit [Ping timeout: 252 seconds]
<canton7> so you've got @temp_hash, where you store both censius and fahrenheit
<canton7> just have e.g. @temp_celsius
tonini has quit [Remote host closed the connection]
<droppedonmyhead> canton7: then what if i get Temperature.new(:f => 32) ?
<canton7> saves you having two equivalent vaules which can too easily get out of sync
<canton7> that's a bit of a bad constructor... but `if temp_hash.has_key?(:f); @temp_celsius = fahrenheit_to_censius(temp_hash[:f}); end`
<aedorn> hmmm.. MySQL: 55 seconds, MariaDB: 12 seconds ... Guess that's slightly better.
<droppedonmyhead> canton7: i see what you mean though i'm juggling both the whole way
<canton7> is how I would have done it
__alpaca has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
<Xeago> why not pass :unit => :kelvin
<Xeago> instead of :f => 123
<canton7> he has to pass some tests specified by whoever set the homework, and the tests require :f
Morrolan has joined #ruby
<Xeago> absolute_zero = Temperature.new(0,:unit => Kelvin)
<Xeago> welp, that sucks
<canton7> tbh 3.kelvin.in_celsius
<droppedonmyhead> canton7: that makes sense. i'll go through and see if i can untangle this guy
jnoob22 has quit [Remote host closed the connection]
<droppedonmyhead> canton7: thanks for the help
<canton7> np
vlad_starkov has quit [Remote host closed the connection]
d3c has joined #ruby
heftig has quit [Quit: Quitting]
vlad_starkov has joined #ruby
jdunck has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
heftig has joined #ruby
jdunck has joined #ruby
lushious has quit [Remote host closed the connection]
pioz has joined #ruby
allanm_ has joined #ruby
__alpaca has quit [Ping timeout: 264 seconds]
hiyakashi has quit [Read error: Connection reset by peer]
MrZYX is now known as MrZYX|off
hiyakashi has joined #ruby
codecop has quit [Remote host closed the connection]
EPIK has joined #ruby
ibash has joined #ruby
allanm has quit [Ping timeout: 264 seconds]
wedgex has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
Tricon has quit [Quit: Leaving...]
gyre007 has quit [Remote host closed the connection]
Dwarf has joined #ruby
nooodl has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
chandankumar_ has quit [Quit: Leaving]
sambao21 has joined #ruby
Michael has joined #ruby
Michael is now known as Guest79906
jonahR has joined #ruby
elaptics`away is now known as elaptics
osvico has joined #ruby
jonahR has quit [Client Quit]
cantonic has joined #ruby
wsterling has joined #ruby
sailias1 has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
dustint_ has quit [Quit: Leaving]
gerep has joined #ruby
<gerep> Hi all!
etcetera has quit []
zodiak has joined #ruby
akhet has quit [Remote host closed the connection]
xkickflip has joined #ruby
jeebster1 has quit [Quit: Leaving.]
evenix has quit [Remote host closed the connection]
<gerep> How can I do this (line 20), please? https://gist.github.com/anonymous/5438586
<gerep> I need to create a array like: games[0][array], games[1][another_array] and so on
Caelum has quit [Quit: leaving]
skattyadz_ has joined #ruby
tomsthumb has quit [Quit: Leaving.]
jbueza has quit [Read error: Connection reset by peer]
Caelum has joined #ruby
<injekt> @games[@count] ||= []
jbueza has joined #ruby
<gerep> this needs to get the line value
skattyadz has quit [Ping timeout: 240 seconds]
skattyadz_ is now known as skattyadz
<philcrissman> gerep: @games[@count] = [line]
ibash has quit [Quit: ibash]
<injekt> your method makes little sense
angusiguess has quit [Ping timeout: 264 seconds]
<injekt> also @cont vs @count
<philcrissman> gerep: you'll want to pick either @count or @cont and use it consistently.
<philcrissman> +1 injekt
<gerep> injekt typos =)
chrishunt has quit [Read error: Connection reset by peer]
<injekt> looks like you want a hash anyway, not an array
<gerep> philcrissman: that worked,thanks
jeebster has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
<philcrissman> gerep: it's not magic; that line just assigns an array with the line in it. Which, I'm still not sure why you want that. But I don't know what you're trying to do.
_nitti_ has quit [Remote host closed the connection]
nooodl has joined #ruby
<gerep> I'll create another gist with more details, wait a second please :D
<injekt> yeah I think he doesn't want that because it makes the next conditional pointless because it'll always overwrite the value
<injekt> but it all looks a little odd
progbyperm has quit [Read error: Connection reset by peer]
skroon has joined #ruby
<skroon> is it possible to change the current working directory, whenever I use PTY for example, or system?
<gerep> So, I have that log file for a game
ibash has joined #ruby
<gerep> I guess its Quake
sambao21 has quit [Quit: Computer has gone to sleep.]
ibash has quit [Client Quit]
<gerep> I need to separate the games
etcetera has joined #ruby
<injekt> skroon: Dir.chdir('foo') { system('...') } you mean?
<gerep> I know each game, when started has a InitGame in the log and when it ends it has a ShutdownGame
urbanmonk has quit [Quit: urbanmonk]
<injekt> gerep: yeah you want a hash, and you should avoid File.read
Guest41818181811 has joined #ruby
<Guest41818181811> HI
<Guest41818181811> I WANT TO LEARN RUBYOnRailS
<gerep> I need to separate them, each game will be in one array with the lines between the lines InitGame and ShutdownGame
<injekt> Guest41818181811: First, disable caps lock, then visit #rubyonrails where you can re-enable caps lock and taunt people in there
<gerep> injekt: what should I use instead of File.read?
<injekt> gerep: File.open('...') do |f| f.each_line do |line| ..
<gerep> injekt: ok
<gerep> injekt: can you also point me to how do I get the content between those two lines?
<injekt> gerep: File.read reads the entire file into memory which could be large, each_line reads them one at a time
sambao21 has joined #ruby
<gerep> injekt: got it
chrishunt has joined #ruby
<Guest41818181811> RUBY IS RUBYONRAILS
<skroon> injekt: I think I do, let me try
elux has quit [Quit: Leaving...]
huoxito has joined #ruby
Faris has joined #ruby
<Guest41818181811> so ruby is all about ruby?
<Guest41818181811> no rails?
ph^ has joined #ruby
<Faris> There's #rails
<injekt> Guest41818181811: yes
<injekt> Faris: #rubyonrails
<Faris> injekt: right
<Guest41818181811> i want to learn ruby and rails
<injekt> gerep: something like this? https://gist.github.com/injekt/3d9fd9335aae1a4295fe
<Guest41818181811> BITCH
<injekt> Guest41818181811: or you could just leave
wsterlin_ has joined #ruby
d2dchat has joined #ruby
<Guest41818181811> why
kenneth has quit [Quit: kenneth]
<Guest41818181811> bitch
<injekt> Guest41818181811: because 'BITCH' is not nice, nor helpful to anyone here
kofno has quit [Remote host closed the connection]
<LennyLinux> injekt: http://t3.gstatic.com/images?q=tbn:ANd9GcRUlqggPUxnLPNcbLb8zKC7Y19MVM6vsgF2g38xZAk3Fy3NzheR :)
Faris has quit [Quit: Leaving.]
havenwood has quit [Remote host closed the connection]
<injekt> LennyLinux: I'm not feeding them yet, I'm giving them a chance to not be a troll
<philcrissman> injekt: troll alert. this Guest was just muted in #ror a few minutes ago.
<Guest41818181811> wtf is ror
kenneth has joined #ruby
<injekt> heh, I don't even know who has op here
mneorr has quit [Remote host closed the connection]
<Guest41818181811> BITCH
<philcrissman> injekt: me either. :) But that's what /ignore is for.
<gerep> injekt that's it, it is returning a wrong number of games, should be 2 but is returning 4, I'll take a look, thanks ;)
<Guest41818181811> bitch sucker
<injekt> philcrissman: I always forget about that :)
mneorr has joined #ruby
<decentrality> hey Guest41818181811 what kind of experience do you have coding?
ph^ has quit [Ping timeout: 256 seconds]
<injekt> lol
<LennyLinux> .....
mneorr has quit [Remote host closed the connection]
<Guest41818181811> I AM PRO
<decentrality> more specifically, what languages and libraries do you use today
<injekt> LennyLinux: THAT is feeding the troll :P
<LennyLinux> xD
<Guest41818181811> bitch
<decentrality> whether troll or bitch, whatever the names are it's not getting code written
wsterling has quit [Ping timeout: 272 seconds]
pyr0commie has joined #ruby
jacobw has quit [Remote host closed the connection]
motto is now known as m8
m8 has quit [Changing host]
m8 has joined #ruby
quazimodo has quit [Remote host closed the connection]
brennanMKE has joined #ruby
Guest41818181811 has left #ruby [#ruby]
bradleyprice has quit [Remote host closed the connection]
<decentrality> injekt: that's how that's done
Xeago_ has joined #ruby
<decentrality> :)
<injekt> how what's done?
* Kovensky yawns
<Kovensky> 0/10
<decentrality> getting back to code :)
<decentrality> vs. noise
LnL has quit [Quit: LnL]
<injekt> oook
wmoxam has quit [Ping timeout: 245 seconds]
Caius has quit [Ping timeout: 252 seconds]
alex88 has quit [Ping timeout: 252 seconds]
alexspeller has quit [Ping timeout: 252 seconds]
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
kapowaz has quit [Ping timeout: 252 seconds]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
failshell has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 252 seconds]
cHarNe2 has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
cHarNe2 has joined #ruby
tenmilestereo has quit [Quit: Leaving]
Silent__ is now known as Hobogrammer
alex88 has joined #ruby
Caius has joined #ruby
alexspeller has joined #ruby
xcv has joined #ruby
V8Energy has joined #ruby
adamjleonard has quit [Read error: Connection reset by peer]
huoxito has quit [Quit: Leaving]
adamjleonard has joined #ruby
Targen has quit [Ping timeout: 255 seconds]
Morkel has quit [Quit: Morkel]
rudisimo has quit [Quit: Leaving.]
s2013 has joined #ruby
xcv has quit [Ping timeout: 256 seconds]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
s2013_ has joined #ruby
s2013_ has quit [Read error: Connection reset by peer]
mmitchell has quit [Ping timeout: 272 seconds]
binaryplease has joined #ruby
s2013_ has joined #ruby
s2013_ has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
s2013_ has joined #ruby
s2013_ has quit [Read error: Connection reset by peer]
s2013_ has joined #ruby
s2013 has quit [Ping timeout: 256 seconds]
s2013_ has quit [Read error: Connection reset by peer]
ryanhirsch has joined #ruby
d3c has quit [Quit: Quit]
Zai00 has joined #ruby
jonahR has quit [Client Quit]
zigomir has quit [Ping timeout: 245 seconds]
Zai00 has quit [Client Quit]
kpshek has joined #ruby
visof has quit [Quit: Leaving]
<gerep> injekt: that worked, thanks a lot =)
RORgasm has quit [Remote host closed the connection]
ariedler has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
DX099 has joined #ruby
<DX099> hello
guitsaru has joined #ruby
vlad_sta_ has joined #ruby
<decentrality> hey DX099
kirun has quit [Quit: Client exiting]
<DX099> I'm trying to "sudo gem install fxruby" with Ruby 19.
<DX099> *1.9.1 on Ubuntu 12.10
<DX099> I'm getting this http://paste.ubuntu.com/5593908/
lewix has joined #ruby
yeboot has joined #ruby
Ripp__ has quit [Ping timeout: 264 seconds]
<yeboot> What's the ruby K&R equivalent book, if it exists
<DX099> libfox 1-6-0-dev is installed...
flashuni has joined #ruby
flashuni has quit [Client Quit]
mneorr has joined #ruby
<decentrality> libfox-1.6-0 libfox-1.6-dev libfox-1.6-doc ?
vlad_starkov has quit [Ping timeout: 256 seconds]
<DX099> yes, all installed
fedza has quit [Ping timeout: 264 seconds]
<DX099> mmh, maybe not doc
mootpointer has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
<DX099> same error with doc installed
mklappstuhl has joined #ruby
<decentrality> whats ruby -v for you
<DX099> 1.9.3p194
<decentrality> have you tried rubinius or jruby
<decentrality> more likely rbx-head
renanoronfle has quit [Read error: Operation timed out]
<decentrality> rvm install rbx-head if you have rvm and try that again perhaps?
<DX099> hrm, I need a specific program that needs fxruby (plus I have no idea of what you just mentionned)
<decentrality> rubinius is a flavor of ruby
<decentrality> rbx-head is the latest version
<decentrality> rvm is a ruby version manager
<decentrality> www.rvm.io
adamjleonard has quit [Quit: Leaving...]
alexyz has joined #ruby
<DX099> why would I need that ?
<ericwood> it manages your rubies
<decentrality> well for one once you do get it working, rubinius will likely be much faster
<ericwood> does rubinius run rails?
<decentrality> you can switch between rubies to see if it's a problem with a certain ruby or a gem
jhn has quit [Ping timeout: 252 seconds]
<decentrality> brixen is saying that it does
forrest has quit [Quit: Leaving]
<DX099> ok... so what do I install first ?
<decentrality> rvm
<ericwood> then type "rvm install 2.0.0"
interactionjaxsn has quit [Remote host closed the connection]
<ericwood> then wait
<ericwood> then ruby it up
<mklappstuhl> rbenv! :D
<decentrality> well I would say rbx
interactionjaxsn has joined #ruby
<decentrality> rbx will pull down rbx-head which will support ruby2
<decentrality> rvm install rbx --1.9
<ericwood> oh dang rubinius doesn't support 1.9?!
<decentrality> it does!
<postmodern> it's working on it!
<ericwood> the homepage disagrees
<decentrality> 2.0.0rc is the RBX version, not the ruby version
<postmodern> ericwood, their homepage is outdated
<decentrality> I am using rbx-head which supports 1.9 you must be talking about rbx-1.2.4
emmanuelux has quit [Quit: emmanuelux]
<postmodern> ericwood, http://status.rubini.us/
<ericwood> postmodern: that is silly
<DX099> mmh, that's too much of hassle for that single tiny thing...
<decentrality> yeah, postmodern is right
<postmodern> also rbx-1.2.4 isn't supported by them anymore
alex__c2022 has quit [Quit: alex__c2022]
<DX099> Thanks anyway
<postmodern> i've found bugs in 1.2.4 which they will not fix, as development has moved to 2.0.0
jlast has quit [Remote host closed the connection]
<postmodern> also ask in #rubinius
vlad_starkov has joined #ruby
breakingthings has quit []
<decentrality> hey postmodern are you familiar with http_parser.rb?
alanp has quit [Read error: Connection reset by peer]
niceguyjames has joined #ruby
alanp has joined #ruby
<decentrality> specifically the java port?
interactionjaxsn has quit [Ping timeout: 256 seconds]
m8 has quit [Quit: Sto andando via]
vlad_sta_ has quit [Ping timeout: 246 seconds]
jrendell_ has joined #ruby
wgosling has joined #ruby
jrendell has quit [Read error: Operation timed out]
jrendell_ is now known as jrendell
<postmodern> decentrality, slightly, i looked at it when writing my own
bean has quit [Quit: Computer has gone to sleep.]
wesside has quit [Quit: Computer has gone to sleep.]
<decentrality> your own http_parser?
<postmodern> decentrality, its basically the same ragal parser used by mongrel, thin, etc
kinginky has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
<decentrality> I am using Reel which uses http_parser.rb and it fell out of step with jRuby 1.7.3 so I was forced over to rbx
<postmodern> decentrality, http_parser.rb is fast (because of ragal) but it doesn't handle certain HTTP things correctly
denstark has quit [Ping timeout: 245 seconds]
<decentrality> yeah that's my problem
<decentrality> well Reel's problem and therefore mine
<decentrality> hmmmmmmmm
<postmodern> decentrality, you could use ffi-http-parser, which uses the joyent http_parser lib
mootpointer has quit [Quit: Computer has gone to sleep.]
c0rn has quit [Quit: Computer has gone to sleep.]
<postmodern> decentrality, also you can build jruby with cexts re-enabled, but they are buggy and not supported anymore
jjbohn has joined #ruby
c0rn has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
wagster has quit [Quit: Computer has gone to sleep.]
baphled has quit [Ping timeout: 264 seconds]
jost has quit [Remote host closed the connection]
guitsaru_ has joined #ruby
gaahrdner has quit [Remote host closed the connection]
wolcanus has joined #ruby
jgarvey has quit [Quit: Leaving]
xcv has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
crodas has quit [Ping timeout: 264 seconds]
danslo has quit [Quit: danslo]
wolcanus has quit [Remote host closed the connection]
wolcanus_ has quit [Ping timeout: 256 seconds]
cmarques has quit [Ping timeout: 264 seconds]
renanoronfle has joined #ruby
TheFuzzball has joined #ruby
mockra has joined #ruby
zenmonkey has joined #ruby
chussenot has quit [Ping timeout: 255 seconds]
xardas has joined #ruby
ariedler has joined #ruby
guitsaru has quit [*.net *.split]
decentrality has quit [*.net *.split]
RagingDave has quit [*.net *.split]
SCommette has quit [*.net *.split]
ntzrmtthihu777 has quit [*.net *.split]
aces1up has quit [*.net *.split]
pbertain has quit [*.net *.split]
yellow5 has quit [*.net *.split]
prstat has quit [*.net *.split]
karnowski has quit [*.net *.split]
darrik has quit [*.net *.split]
cheez0r has quit [*.net *.split]
matled has quit [*.net *.split]
tomku has quit [*.net *.split]
javiolo has quit [*.net *.split]
shammancer has quit [*.net *.split]
cespare has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
froy has quit [*.net *.split]
russfrank has quit [*.net *.split]
moshee has quit [*.net *.split]
X-Jester has quit [*.net *.split]
rtl has quit [*.net *.split]
fred has quit [*.net *.split]
joschi has quit [*.net *.split]
ToApolytoXaos has quit [Quit: Leaving]
Bry8Star has quit [Ping timeout: 276 seconds]
huoxito has joined #ruby
Johbe has quit [Read error: Connection reset by peer]
RagingDave has joined #ruby
cheez0r has joined #ruby
prstat has joined #ruby
SCommette has joined #ruby
darrik has joined #ruby
yellow5 has joined #ruby
pbertain has joined #ruby
aces1up has joined #ruby
cespare has joined #ruby
Sp4rKy has joined #ruby
froy has joined #ruby
javiolo has joined #ruby
moshee has joined #ruby
rtl has joined #ruby
X-Jester has joined #ruby
matled has joined #ruby
wookiehangover has joined #ruby
russfrank has joined #ruby
ntzrmtthihu777 has joined #ruby
karnowski has joined #ruby
shammancer has joined #ruby
tomku has joined #ruby
joschi has joined #ruby
fred has joined #ruby
Johbe has joined #ruby
Ripp__ has joined #ruby
s2013 has joined #ruby
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
dmiller has joined #ruby
Bry8Star has joined #ruby
rodacato has quit [Quit: rodacato]
bashdy has joined #ruby
etcetera has quit []
enebo has quit [Quit: enebo]
tds_ has joined #ruby
tds has quit [Read error: Connection reset by peer]
tds_ is now known as tds
Nisstyre-laptop has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
ntzrmtthihu777 has quit [Quit: leaving]
chessguy has joined #ruby
spider-mario has quit [Remote host closed the connection]
akhet has quit [Ping timeout: 256 seconds]
DX099 has quit [Quit: Quitte]
ariedler has quit [Ping timeout: 256 seconds]
Guest79906 has quit [Remote host closed the connection]
tds has quit [Read error: Connection reset by peer]
tds has joined #ruby
failshell has joined #ruby
failshell has quit [Remote host closed the connection]
bashdy has quit [Quit: bashdy]
Michael has joined #ruby
Michael is now known as Guest36548
jerius has quit []
backjlack has quit [Read error: Connection reset by peer]
rakl has quit [Quit: sleeping]
retry has joined #ruby
backjlack has joined #ruby
renanoronfle__ has joined #ruby
bean has joined #ruby
Passionate has joined #ruby
nomenkun has quit [Remote host closed the connection]
kofno has joined #ruby
codezombie has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
renanoronfle has quit [Ping timeout: 252 seconds]
<Passionate> please help .. @property_feeds[1][0] and @property_feeds[0][0] is return xyz object . i want to fetch all those objects
<Passionate> please help .. @property_feeds[1][0] and @property_feeds[0][0] is returning xyz object . i want to fetch all those objects
rodacato has joined #ruby
Guest36548 has quit [Remote host closed the connection]
sailias has joined #ruby
newUser1234 has quit [Remote host closed the connection]
rakl has joined #ruby
rodacato has quit [Client Quit]
kpshek has quit []
ariedler has joined #ruby
rakl has quit [Max SendQ exceeded]
ariedler has quit [Remote host closed the connection]
rakl has joined #ruby
etcetera has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
<kinginky> does anyone happen to know if the headless version of watir will run on a VPS?
heliumsocket has quit [Quit: heliumsocket]
rodacato has joined #ruby
pyr0commie has quit [Remote host closed the connection]
nooodl has quit [Ping timeout: 256 seconds]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
yeboot has quit [Ping timeout: 276 seconds]
robustus has quit [Ping timeout: 276 seconds]
JonnieCache has quit [Ping timeout: 264 seconds]
brennanMKE has quit [Remote host closed the connection]
mengu has quit [Quit: This computer has gone to sleep]
yeboot has joined #ruby
bean has quit [Ping timeout: 240 seconds]
johnnyfuchs has quit [Ping timeout: 260 seconds]
choobie has quit [Ping timeout: 264 seconds]
jbueza1 has joined #ruby
<aedorn> kinginky: There's really no reason why it wouldn't as long as the VPS was capable of running the driver you need to use (like phantomJS or something if you're using watir-webdriver, or Xvfb if not.)
oneirophren has joined #ruby
jbueza has quit [Read error: Connection reset by peer]
diego_ar has joined #ruby
decentrality has joined #ruby
tds has quit [Read error: Connection reset by peer]
<kinginky> aedorn: thank you, was just reading into xvfb
<kinginky> about to try it out. thanks again man
tds has joined #ruby
skroon has quit [Ping timeout: 256 seconds]
wsterlin_ has quit [Remote host closed the connection]
mootpointer has joined #ruby
<aedorn> kinginky: Alternatively, look into GhostDriver. https://github.com/detro/ghostdriver + PhantomJS. It *might* be better.
sailias has quit [Quit: Leaving.]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 272 seconds]
mklappstuhl has quit [Remote host closed the connection]
hadees has joined #ruby
choobie has joined #ruby
jorge_ has joined #ruby
renanoronfle__ has quit [Quit: This computer has gone to sleep]
jorge_ has quit [Remote host closed the connection]
bean has joined #ruby
bean has quit [Max SendQ exceeded]
bean has joined #ruby
locriani has quit [Remote host closed the connection]
kunday has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
mneorr has quit [Remote host closed the connection]
kunday has quit [Read error: Connection reset by peer]
kunday has joined #ruby
mklappstuhl has joined #ruby
johnnyfuchs has joined #ruby
kunday has quit [Read error: Connection reset by peer]
wesside has joined #ruby
mneorr has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
balishag has quit [Read error: Connection reset by peer]
dayom has quit [Ping timeout: 256 seconds]
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
jnoob22 has joined #ruby
yashshah_ has joined #ruby
etcetera has quit []
Guedes0 has joined #ruby
Mon_Ouie has joined #ruby
zodiak has quit [Ping timeout: 272 seconds]
binarypl1 has joined #ruby
yashshah has quit [Ping timeout: 256 seconds]
adamjleonard has joined #ruby
<gerep> injekt: still there?
pcarrier has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
nga4 has joined #ruby
bean has quit [Ping timeout: 246 seconds]
binaryplease has quit [Ping timeout: 264 seconds]
yashshah- has joined #ruby
oneirophren has quit [Ping timeout: 256 seconds]
timmow has quit [Ping timeout: 252 seconds]
rtl_ has joined #ruby
SCommette has quit [*.net *.split]
aces1up has quit [*.net *.split]
pbertain has quit [*.net *.split]
yellow5 has quit [*.net *.split]
prstat has quit [*.net *.split]
karnowski has quit [*.net *.split]
matled has quit [*.net *.split]
cheez0r has quit [*.net *.split]
darrik has quit [*.net *.split]
tomku has quit [*.net *.split]
javiolo has quit [*.net *.split]
shammancer has quit [*.net *.split]
cespare has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
russfrank has quit [*.net *.split]
moshee has quit [*.net *.split]
froy has quit [*.net *.split]
X-Jester has quit [*.net *.split]
rtl has quit [*.net *.split]
joschi has quit [*.net *.split]
fred has quit [*.net *.split]
gerep has quit [Remote host closed the connection]
_maes_ has quit [Read error: Connection reset by peer]
gerep has joined #ruby
SCommette has joined #ruby
yellow5 has joined #ruby
cheez0r has joined #ruby
javiolo has joined #ruby
aces1up has joined #ruby
wookiehangover has joined #ruby
Sp4rKy has joined #ruby
cespare has joined #ruby
froy has joined #ruby
tomku has joined #ruby
darrik has joined #ruby
moshee has joined #ruby
pbertain has joined #ruby
prstat has joined #ruby
fred has joined #ruby
joschi has joined #ruby
karnowski has joined #ruby
shammancer has joined #ruby
matled has joined #ruby
russfrank has joined #ruby
X-Jester has joined #ruby
<gerep> injekt: still there?
_maes_ has joined #ruby
<gerep> How can I test a code like this one?https://gist.github.com/anonymous/5439374
sailias has joined #ruby
backjlack has quit [Remote host closed the connection]
juarlex has quit [Remote host closed the connection]
yashshah_ has quit [Ping timeout: 252 seconds]
pcarrier has joined #ruby
yeboot has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
baroquebobcat has quit [Quit: baroquebobcat]
sailias1 has joined #ruby
retry has quit [Quit: Leaving...]
retry has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sailias has quit [Read error: Operation timed out]
_maes_ has quit [Client Quit]
yfeldblum has joined #ruby
retry has quit [Client Quit]
timmow has joined #ruby
nanothief has joined #ruby
chessguy has quit [Remote host closed the connection]
johnnyfuchs has quit [Remote host closed the connection]
kunday has joined #ruby
Xeago_ has quit [Remote host closed the connection]
wolcanus has joined #ruby
kofno has quit [Remote host closed the connection]
gstamp has joined #ruby
kenneth has quit [Quit: kenneth]
mercwithamouth has joined #ruby
etcetera has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
kenneth has joined #ruby
witheld has joined #ruby
kofno has joined #ruby
<aedorn> C++ to integrate a basic webkit browser (QtWebKit) to view a local server only in order to act as a GUI front end for a Ruby app. Might be a bit overboard, but only slightly.
Ripp__ has quit [Quit: This computer has gone to sleep]
wreckimnaked has joined #ruby
wolcanus has quit [Ping timeout: 256 seconds]
Guedes has quit [Disconnected by services]
Guedes0 is now known as Guedes
Guedes0 has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
lewix has quit [Remote host closed the connection]
witheld has quit [Quit: Leaving]
chessguy has joined #ruby
witheld has joined #ruby
kapowaz has joined #ruby
Proshot has quit [Quit: Leaving]
Davey has quit [Quit: Computer has gone to sleep.]
zodiak has joined #ruby
mneorr has quit [Remote host closed the connection]
Passionate has quit [Quit: Leaving]
tkoh has quit [Remote host closed the connection]
uris has quit [Ping timeout: 256 seconds]
freeayu has joined #ruby
xcv has quit [Remote host closed the connection]
marcdel has quit [Ping timeout: 246 seconds]
lufi is now known as zz_lufi
marcdel has joined #ruby
zz_lufi has quit [Excess Flood]
gerep has quit [Remote host closed the connection]
lufi has joined #ruby
baroquebobcat has joined #ruby
monkegjinni has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
kunday has quit [Quit: Leaving...]
jjbohn is now known as jjbohn|afk
baroquebobcat has joined #ruby
idkazuma has joined #ruby
Michael has joined #ruby
lufi is now known as zz_lufi
Michael is now known as Guest39432
zz_lufi is now known as lufi
LennyLinux has quit [Remote host closed the connection]
witheld has quit [Quit: Leaving]
ZachBeta has joined #ruby
vlad_starkov has quit [Read error: No route to host]
xkickflip has quit [Ping timeout: 248 seconds]
skattyadz has quit [Quit: skattyadz]
witheld has joined #ruby
vlad_starkov has joined #ruby
dummies_freelanc has joined #ruby
d11wtq has quit [Ping timeout: 264 seconds]
braoru has quit [Ping timeout: 246 seconds]
Guest39432 has quit [Ping timeout: 252 seconds]
Targen has joined #ruby
xkickflip has joined #ruby
uris has joined #ruby
predator217 has joined #ruby
kristofers has quit []
hadees has quit [Quit: hadees]
ZachBeta has quit [Quit: Computer has gone to sleep.]
kunday has joined #ruby
brennanMKE has joined #ruby
guiambros has quit [Ping timeout: 256 seconds]
SCommette has quit [Quit: SCommette]
kunday has quit [Read error: Connection reset by peer]
skroon has joined #ruby
kunday has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
faldridge has quit [Ping timeout: 240 seconds]
pcarrier has quit [Ping timeout: 248 seconds]
faldridge has joined #ruby
Liru has joined #ruby
<Liru> Is there a channel for Ruby newbies looking for help?
<tylersmith> Liru: you found it
subbyyy has joined #ruby
witheld has quit [Quit: Leaving]
nateberkopec has quit [Quit: Leaving...]
<Liru> Alright, I'll ask then
ZachBeta has joined #ruby
<Liru> I'm looking to make a game of sorts, and part of it is reading data from a text file to make/store character stats
mattbl has joined #ruby
<Liru> However, I'm not sure how they should be stored
pcarrier has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
<Liru> One idea was to make a hash and a player class, where the hash key returned the corresponding player class
witheld has joined #ruby
kofno has quit [Remote host closed the connection]
skroon has quit [Ping timeout: 260 seconds]
wsterling has joined #ruby
faldridge has quit [Ping timeout: 245 seconds]
<Liru> But I'm not sure how to label each Player in the hash when I have to create new Player classes as they come and go
nezumi has quit [Ping timeout: 264 seconds]
ner0x has joined #ruby