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?
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]
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]
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
<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>
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:
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?
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
<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
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
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]
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"
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]
<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
<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/;
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
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?
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.]
<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 :)
<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.]
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
<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]
<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?
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]
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