thisirs has quit [Read error: Connection reset by peer]
elaptics` has joined #ruby
danneu has joined #ruby
alxscms has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
elaptics` is now known as elaptics`away
baroquebobcat_ has joined #ruby
<netto>
i dont want to add thin in my Gemfile because only I use 'thin' here
<netto>
Rym: What do you suggest me?
agarie has joined #ruby
Ontolog_ is now known as Ontolog
ggVGc_ has joined #ruby
BigBadQuanta has joined #ruby
nezumi has quit [Ping timeout: 255 seconds]
pskosinski has quit [Quit: pskosinski]
<Rym>
my suggestion was add it to gem file and see what it says then, if you don't want to rule that out as not working then i don't have a followup suggestion :)
indyrl has quit [Quit: Leaving.]
baroquebobcat_ has quit [Quit: baroquebobcat_]
chrisnicola_ has quit [Quit: This computer has gone to sleep]
wildcard1 has joined #ruby
lewix_ has quit [Remote host closed the connection]
zastern has quit [Remote host closed the connection]
postmodern has joined #ruby
kiwnix has quit [Remote host closed the connection]
xaq has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 252 seconds]
predator217 has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
Andromeda has quit [Remote host closed the connection]
cbot_ has quit [Ping timeout: 258 seconds]
Andromeda has joined #ruby
Proshot has quit [Quit: Leaving]
wsterling has joined #ruby
cheapRoc has joined #ruby
tommyvyo has joined #ruby
predator117 has quit [Ping timeout: 260 seconds]
starburst has quit [Read error: Connection reset by peer]
jeffreylevesque has joined #ruby
Andromed_ has joined #ruby
HobGoblin has joined #ruby
brianpWins_ has quit [Quit: brianpWins_]
wsterling has quit [Ping timeout: 248 seconds]
markalanevans has quit [Ping timeout: 264 seconds]
ffranz has quit [Ping timeout: 264 seconds]
HobGoblin is now known as Guest6219
Andromed_ has quit [Ping timeout: 252 seconds]
awc737 has quit [Ping timeout: 264 seconds]
dmerrick has joined #ruby
Andromeda has quit [Ping timeout: 260 seconds]
DarthGandalf has quit [*.net *.split]
heidar has quit [*.net *.split]
germanstudent has quit [*.net *.split]
Jedi_SCT1 has quit [*.net *.split]
mtfk has quit [*.net *.split]
dominikh has quit [*.net *.split]
lmx has quit [*.net *.split]
felipe has quit [*.net *.split]
KRF has quit [*.net *.split]
mame0 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
timmow has quit [*.net *.split]
adzuci has quit [*.net *.split]
tomaw has quit [*.net *.split]
soulcake has quit [*.net *.split]
parus_ has quit [*.net *.split]
calmyournerves has quit [*.net *.split]
fcoury_ has quit [*.net *.split]
kuzushi has quit [*.net *.split]
classix has quit [*.net *.split]
thomasfedb has quit [*.net *.split]
jarin has quit [*.net *.split]
Whoop has quit [*.net *.split]
caveat- has quit [*.net *.split]
cheez0r has quit [*.net *.split]
duckstab has quit [*.net *.split]
daaaan_ has quit [*.net *.split]
evxd has quit [*.net *.split]
nate_h has quit [*.net *.split]
mnemon has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
wildcard0 has quit [*.net *.split]
TTilus has quit [*.net *.split]
tessi has quit [*.net *.split]
alexspeller has quit [*.net *.split]
nopper has quit [*.net *.split]
rdo has quit [*.net *.split]
Caius has quit [*.net *.split]
kpwz has quit [*.net *.split]
supki has quit [*.net *.split]
jcheng has quit [*.net *.split]
tomku has quit [*.net *.split]
chimkan has quit [*.net *.split]
tylersmith has quit [*.net *.split]
apok has quit [*.net *.split]
My_Hearing has quit [*.net *.split]
wudofyr has quit [*.net *.split]
mksm_ has quit [*.net *.split]
Mohan__ has quit [*.net *.split]
bttf has quit [*.net *.split]
patricksroberts_ has quit [*.net *.split]
froy has quit [*.net *.split]
russfrank has quit [*.net *.split]
wedgeV has quit [*.net *.split]
moshee has quit [*.net *.split]
X-Jester has quit [*.net *.split]
rtl has quit [*.net *.split]
dross has quit [*.net *.split]
breadtk has quit [*.net *.split]
Mchl has quit [*.net *.split]
adamholt has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
kkh has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
tubbo has quit [*.net *.split]
mave_fnet has quit [*.net *.split]
chiel has quit [*.net *.split]
yasu has quit [*.net *.split]
joschi has quit [*.net *.split]
Guest19721 has quit [*.net *.split]
tetsus has quit [*.net *.split]
ggVGc has quit [*.net *.split]
backjlack has quit [*.net *.split]
drale2k has quit [*.net *.split]
aapzak has quit [*.net *.split]
ixti has quit [*.net *.split]
one8zero has quit [*.net *.split]
DrShoggoth has quit [*.net *.split]
tomzx_mac has quit [*.net *.split]
_maes_ has quit [*.net *.split]
kristofers has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
Akuma has quit [*.net *.split]
lupine has quit [*.net *.split]
shevy has quit [*.net *.split]
aboudreault has quit [*.net *.split]
jeffreylevesque_ has quit [*.net *.split]
Rix has quit [*.net *.split]
mnaser has quit [*.net *.split]
madhatter has quit [*.net *.split]
kzrl has quit [*.net *.split]
phasma has quit [*.net *.split]
zodiak has quit [*.net *.split]
mvangala_ has quit [*.net *.split]
taqutor has quit [*.net *.split]
spanx_ has quit [*.net *.split]
foobArrr has quit [*.net *.split]
yalue has quit [*.net *.split]
baz_ has quit [*.net *.split]
busybox42 has quit [*.net *.split]
welandB has quit [*.net *.split]
faulkner has quit [*.net *.split]
stnly has quit [*.net *.split]
martxel has quit [*.net *.split]
Paradox has quit [*.net *.split]
Eiam has quit [*.net *.split]
cupakromer has quit [*.net *.split]
denken has quit [*.net *.split]
yellow5 has quit [*.net *.split]
QKO has quit [*.net *.split]
swarley has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
UukGoblin has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
Derander has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
rgoodwin has quit [*.net *.split]
zeroXten has quit [*.net *.split]
alex88 has quit [*.net *.split]
brad[] has quit [*.net *.split]
vaicine has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
z has quit [*.net *.split]
Mekkis has quit [*.net *.split]
right1 has quit [*.net *.split]
Nightmare has quit [*.net *.split]
chrisnicola has quit [*.net *.split]
lorn has quit [*.net *.split]
skattyadz has quit [*.net *.split]
baroquebobcat has quit [*.net *.split]
cantonic has quit [*.net *.split]
grzywacz has quit [*.net *.split]
brianpWins has quit [*.net *.split]
Astralum has quit [*.net *.split]
elliottkember has quit [*.net *.split]
m8 has quit [*.net *.split]
dormoose has quit [*.net *.split]
Nisstyre-laptop has quit [*.net *.split]
emanu has quit [*.net *.split]
bricker has quit [*.net *.split]
SirFunk has quit [*.net *.split]
jimeh has quit [*.net *.split]
heftig has quit [*.net *.split]
Kirotan has quit [*.net *.split]
Lockzi has quit [*.net *.split]
LBRapid has quit [*.net *.split]
conceal_rs__ has quit [*.net *.split]
bier has quit [*.net *.split]
m_3 has quit [*.net *.split]
Fenne has quit [*.net *.split]
elaptics has quit [*.net *.split]
angelixd has quit [*.net *.split]
bakedb_ has quit [*.net *.split]
hoelzro has quit [*.net *.split]
PhilK has quit [*.net *.split]
BombStrike has quit [*.net *.split]
nw has quit [*.net *.split]
xsdg has quit [*.net *.split]
pietr0 has quit [*.net *.split]
MagBo has quit [*.net *.split]
bubbajones has quit [*.net *.split]
denstark has quit [*.net *.split]
SIGILL has quit [*.net *.split]
mikalv has quit [*.net *.split]
oh2lre has quit [*.net *.split]
Signum has quit [*.net *.split]
Kov|abx has quit [*.net *.split]
elaptics`away is now known as elaptics
JaTochNietDan_ is now known as JaTochNietDan
phite is now known as tessi
nyuszika7h has quit [Read error: Connection reset by peer]
yellow5 has joined #ruby
nfk has quit [Remote host closed the connection]
right1 has joined #ruby
tomzx_mac has joined #ruby
DrShoggoth has joined #ruby
xyzodiac has joined #ruby
DonRichie has quit [Ping timeout: 246 seconds]
zeroXten has joined #ruby
aboudreault has joined #ruby
Paradox has joined #ruby
faulkner has joined #ruby
yalue has joined #ruby
kzrl has joined #ruby
stnly has joined #ruby
cupakromer has joined #ruby
shevy has joined #ruby
dmerrick has quit [Ping timeout: 258 seconds]
zodiak has joined #ruby
cnrk has quit [Quit: cnrk]
NiteRain has quit [Ping timeout: 245 seconds]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
mrsolo has quit [Quit: Leaving]
Animawish has joined #ruby
techlife has quit [Ping timeout: 264 seconds]
louism2__ has joined #ruby
dustint has quit [Ping timeout: 260 seconds]
<Animawish>
I'm trying to make a ruby program that watches my downloads folder and grabs filenames of things that enter it. I'm on Mac OS X. is fsevent what I want?
robscomputer_ has joined #ruby
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
adzuci has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
graeme has joined #ruby
robscomputer_ has joined #ruby
tommyvyo has quit [Quit:]
TheFuzzball has joined #ruby
rickruby has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
oponder has joined #ruby
graeme has quit [Ping timeout: 240 seconds]
Zai00 has joined #ruby
Zai00 has quit [Client Quit]
idkazuma has joined #ruby
cobragoat has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
chrishough has quit [Quit: chrishough]
Kruppe has joined #ruby
z_ is now known as z
tjbiddle has joined #ruby
indyrl has joined #ruby
martxel has joined #ruby
AlSquirrel has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
Ortuna has quit [Quit: Computer has gone to sleep.]
lewix has joined #ruby
isak has joined #ruby
fixl has joined #ruby
techlife has joined #ruby
phasma_ is now known as phasma
rickruby has quit [Ping timeout: 256 seconds]
baroquebobcat is now known as 36DAACU5N
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
rickmasta has quit [Quit: Leaving...]
mercwithamouth has quit [Ping timeout: 258 seconds]
indyrl has left #ruby [#ruby]
etcetera_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
pitzips has joined #ruby
wallerdev has joined #ruby
statarb3 has joined #ruby
statarb3 is now known as Proshot
marcdel has quit []
bitcycle has joined #ruby
netto has quit [Quit: netto]
36DAACU5N has quit [Quit: 36DAACU5N]
<bitcycle>
Hey all. Ruby newb here. I'm wondering how to drop into the ruby interactive shell from a script.
mneorr has quit [Remote host closed the connection]
yacks has quit [Read error: Connection reset by peer]
kofno has quit [Remote host closed the connection]
<banisterfiend>
Animawish: IRB sucks D.
<banisterfiend>
:P
<Animawish>
banisterfiend: he requested it :P
pitzips has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby
<oponder>
I think "IRB.start" should do it if you have "require 'irb'" before it somewhere.
Voodoofish430 has quit [Quit: Leaving.]
<banisterfiend>
bitcycle: i assume you want all state accessible at the point of the call?
<banisterfiend>
IRB.start wont give u that
bitcycle has quit [Quit: Page closed]
xyzodiac has quit [Quit: Computer has gone to sleep.]
<Animawish>
pfft
<Animawish>
:P
Banistergalaxy has joined #ruby
Michael__ has joined #ruby
15SAA9OEU has joined #ruby
15SAA9OEU has quit [Client Quit]
AndChat| has quit [Ping timeout: 276 seconds]
Proshot has quit [Quit: Leaving]
rupee has quit [Quit: Leaving]
benweint has quit [Quit: Computer has gone to sleep.]
Bry8Star has joined #ruby
<Animawish>
what does pry have that irb doesn't other than like, highlighting?
benweint has joined #ruby
pilojo has joined #ruby
Xeago_ has joined #ruby
<jeebster>
so who believes machines will ever become self-aware?
kirun has quit [Quit: Client exiting]
<pilojo>
i get the error ":in `+': can't convert Array into String (TypeError)" while trying to use "wolf1 = $wolves[0].to_s
<pilojo>
$IRCSocket.puts("NOTICE "+wolf1+" :You are a wolf. Use kill in a PM/notice to kill any of the following players: "+$joinlist.each{|x| print x, ", "})"
<havenwood>
jeebster: Of course they will.
indyrl1 has joined #ruby
indyrl1 has left #ruby [#ruby]
<jeebster>
havenwood: you really think so? one can always program a machine to weight the outcomes of certain scenarios, but the actual ability of a machine to do what it wants beyond its instructions?
<banisterfiend>
Animawish: tonnes of stuff
<jeebster>
I can't comprehend that. I think it's a strict divide between nature and artificial entities
jeffreylevesque has quit [Read error: Connection reset by peer]
Iciloo has joined #ruby
<havenwood>
jeebster: Like looking at a slug and questioning how a biological creature could ever be self-aware.
<pilojo>
jeebster: what is our brain? it's essentially a biological machine
<havenwood>
^
brianherman has joined #ruby
<pilojo>
jeebster: it works just as a computer does, but it's much more complex
<pilojo>
and much more efficient
benweint has quit [Quit: Computer has gone to sleep.]
brian_000_ has joined #ruby
jekotia has joined #ruby
brian_000_ has quit [Client Quit]
xyzodiac has joined #ruby
brian_000_ has joined #ruby
brian_000_ has quit [Client Quit]
<jeebster>
pilojo: quite true. I just can't imagine how much computing power would be necessary to emulate a human brain
<jeebster>
nervouse system, etc.
<pilojo>
jeebster: we're 1/10th of the way there
<jeebster>
pilojo: where are you getting the numbers from?
<jeebster>
that's nuts
<jeebster>
we're totally screwed if and when it happens
<banisterfiend>
Animawish: source code browsing, doc browsing, better history management, ability to open code in editors, ability to easily execute shell commands. heaps of stuff, check it out here: http://pryrepl.org
<pilojo>
jeebster: when we get quantum computers,(maybe even photonic computers) we'll have computers more efficient than the human brain
marr has quit [Ping timeout: 258 seconds]
<banisterfiend>
Animawish: it also has debugging-related plugins, so u can walk the call stack, step through code, open pry on exceptions, during test failures, etc
<jeebster>
man, the world is coming to an end for humans
<jeebster>
pronto
Iciloo has left #ruby [#ruby]
<pilojo>
jeebster: not necessarily, if you think of it. a robotic species that can think for itself, but also be programmed to never hurt humans
<Animawish>
cool
<banisterfiend>
Animawish: you can invoke it remotely using pry-remote, and in event machine context using pry-remote-em
<havenwood>
jeebster: I think we should savor our role as creators of consciousness. Of course it will surpass us, likely in ways we aren't capable of understanding.
<jeebster>
pilojo: but if they can think for themselves then they should be able to override any instructions we have provided
<jeebster>
:o
<pilojo>
havenwood: aswell as the fact that if we build things more capable than we are, we can then further our capacities by possibly having these more superior machines modify our brains, then we make the superior machines even better, ad infinium
kemist has joined #ruby
<jeebster>
haha, just perpetuate the relational enhancement
<pilojo>
because our brains aren't 100% efficient
<havenwood>
As long as we step aside... I'd fear for the consequences if humankind clings too tightly to the idea of human-preeminence.
<jeebster>
I still wonder if tele abilities could arise out of using 100% of the brain's efficiency
<pilojo>
jeebster: yes it could very possibly arise
<pilojo>
telepathy, yes
<pilojo>
telekinetic abilities, highly unlikely
<pilojo>
as that's space manipulation
<jeebster>
I see telepathy partially as spatial manipulation. that information must be transmitted via space somehow
mockra has joined #ruby
elaptics is now known as elaptics`away
huoxito has quit [Quit: Leaving]
huoxito has joined #ruby
<pilojo>
jeebster: quantum synchronization... when brainwaves are moving at the exact same frequency, they can interact with eachother, so, with 100% efficiency, we may possibly be able to control the frequencies
Hanmac1 has joined #ruby
idkazuma has quit [Remote host closed the connection]
awarner has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 264 seconds]
sheerun has quit [Read error: Connection reset by peer]
rdev has joined #ruby
akashj87__ has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
<pilojo>
jeebster: err, quantum entanglement is the term i was looking for
phasma has quit [Changing host]
phasma has joined #ruby
Morkel has quit [Quit: Morkel]
<jeebster>
shit I need to brush up on my quantum physics
bricker`LA has joined #ruby
Xeago_ has quit [Remote host closed the connection]
danneu has quit [Ping timeout: 256 seconds]
indyrl has joined #ruby
hashmal has quit [Quit: Computer has gone to sleep.]
randomautomator has quit [Ping timeout: 256 seconds]
danneu has joined #ruby
PhilK has joined #ruby
yannis has quit [Quit: yannis]
<pilojo>
jeebster: as well as the fact that we already send information through the air... wifi uses electromagnetic waves, which our brain is MORE THAN CAPABLE of producing
<pilojo>
electromagnetic waves, however, cannot manipulate objects
Blue_Ice_ has quit [Changing host]
Blue_Ice_ has joined #ruby
lupine_85 has quit [Changing host]
lupine_85 has joined #ruby
Rix_ has quit [Changing host]
Rix_ has joined #ruby
lupine_85 is now known as lupine
cheapRoc has quit [Quit: cheapRoc]
banjara has quit [Quit: Leaving.]
SegFaultAX_ is now known as SegFaultAX
Xeago_ has joined #ruby
razibog has joined #ruby
Rix_ is now known as Rix
cobragoat has joined #ruby
mercwithamouth has quit [Ping timeout: 258 seconds]
<kinginky>
i'm working on an important project for a client built on celerity. i need to click an LI element that i'm 98% sure is all controlled by jQuery. every attempt i've come up with has failed. can anybody point me in the right direction?
<kinginky>
i've gotten this far. the project must be about 90% done, and im afraid this'll mess the whole thing up..
sambio has quit []
akashj87_ has quit [Quit: Leaving]
<bnagy>
ooh shiny
<bnagy>
I have no idea about your problem, but thanks for the link - I'm using capybara at the moment which is kinda ugly
wsterling has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 256 seconds]
dcope has joined #ruby
<dcope>
hey what's the difference between hash["foo"] and hash[:foo]
<kinginky>
the difference is you're using a string in one and a symbol in the other
hiroyuki has quit [Read error: Connection reset by peer]
<bnagy>
dcope: the same as the difference between "foo" and :foo
<kinginky>
while close to the same thing, they aren't
<kinginky>
for instance, you could have a hash with keys "dog" and :dog
tootooroo has joined #ruby
<kinginky>
you might want to IRB that. i'm not sure that i'm right, but i'm very close to sure.
<bnagy>
you're right :)
<kinginky>
awesome
<kinginky>
irc rules.
tomzx_mac has quit [Ping timeout: 258 seconds]
chimmy has joined #ruby
benlieb has joined #ruby
zeroeth has quit [Ping timeout: 252 seconds]
wereHamster has quit [Ping timeout: 245 seconds]
dmerrick has joined #ruby
<dcope>
kinginky: ah
<dcope>
thanks for explaining all! :)
<kinginky>
dcope: for more, google the rubydoc on Symbol and String. i can't remember ALL the specifics, but i'm happy i could help (not without bnagy's help). it's always good to understand things fully, so i definitely recommend reading through those rubydocs a few time. good luck, man.
iphands_ has joined #ruby
nezumi has quit [Ping timeout: 256 seconds]
<dcope>
for sure, i'll look into it more
<dcope>
i have a copy of pickaxe, i'll search around in it in a bit
<bnagy>
basically there's only ever one of each symbol, whereas you could have many strings in memory that all contain "foo"
benlieb has quit [Quit: benlieb]
<kinginky>
dcope: quick breakdown of pickaxe so i can be lazy and not google it??
<bnagy>
which is why symbols are commonly used as hash keys and other stuff
ntzrmtthihu777 has joined #ruby
<kinginky>
bnagy: yessss
dmerrick has quit [Ping timeout: 258 seconds]
<kinginky>
now i recall this!
<bnagy>
BUT the bad thing is that most serialisation stuff won't let you serialise symbols :)
<kinginky>
wtf is that?
<kinginky>
why?
<bnagy>
well because they're kind of like a pointer to a bit of memory, so they can't be reconstructed at the other end
<bnagy>
cause the other end will have a different memory layout
<ntzrmtthihu777>
question: is there any huge difference between i386-mingw32 ruby and the linux version?
<kinginky>
bnagy: you are talking about DB serialization, right?
<bnagy>
any kind
<dcope>
kinginky: it's the ruby book by pragprog
<kinginky>
dcope: fsho
<dcope>
bnagy: that's what i thought but JSON.parse() seems to use String
<dcope>
in the hash it returns heh :)
<bnagy>
ntzrmtthihu777: uh.. yes and no?
<bnagy>
you might want to ask a more specific question
<kinginky>
bnagy: what prevents somebody from taking the value of the symbol and converting it to a string in their serialization? in fact, i've done this.
<kinginky>
annoying and tedious and not-very-beautiful? yeah. but it works.
<bnagy>
nothing, it's the usual approach
<kinginky>
sure.
<kinginky>
but lame that there is no built-in support for this type of thing.
mahmoudimus has joined #ruby
<kinginky>
is it because ruby is (among) the first to utilize this concept of "symbols"?
<ntzrmtthihu777>
heh, ok. I have picked up some cpp source code using ruby that was designed seemingly with win32 primarily in mind, looking for info on getting it to work under linux
<bnagy>
kinginky: well Marshal ( builtin serialiser ) will do it
<bnagy>
I was mainly talking about 'standard' stuff for interop like json and such
sayan has quit [Ping timeout: 258 seconds]
<kinginky>
bnagy: yeah, but that's what i mean. does json (etc) not support this because it is a "ruby-only" concept?
<kinginky>
sorry, man. full of questions. hahaha
<bnagy>
I guess? :)
<bnagy>
ntzrmtthihu777: ew. Using ruby in what way? Embedding?
dqminh_ has joined #ruby
<kinginky>
bnagy: well thanks man, dont mean to bnagy... i mean, be naggy...
tootooroo has quit [Read error: Connection reset by peer]
<bnagy>
if you can port the c++ itself I don't see why it shouldn't work
<bnagy>
like, I don't think ruby will be your issue
tish has joined #ruby
<kinginky>
ruby already runs on windows, doesn't it?
<kinginky>
i wouldn't know, because fuck windows.
<kinginky>
but i'm pretty sure it does.
<kinginky>
why not just use the linux version if you're on linux, and the win version if you're on windoze?
<ntzrmtthihu777>
bnagy: yeah, creating ruby classes and modules inside a cpp dll
<ntzrmtthihu777>
kinginky: ( ^w^)人(^w^ ) agreed
<bnagy>
ntzrmtthihu777: you might want to stop by #ruby-lang, or wait a few hours for europe to wander in
<ntzrmtthihu777>
problem is the source code is a bit older, say 2 years or so ago since last touch.
mercwithamouth has joined #ruby
sirbrillig has quit [Quit: leaving]
danman has joined #ruby
freakazoid0223 has quit [Ping timeout: 256 seconds]
shock_one has joined #ruby
d3 has joined #ruby
jdunck has joined #ruby
perun_ has joined #ruby
<kinginky>
ntzrmtthihu777: just to satisfy my own curiosity, what exactly is it you're trying to do?
dqminh_ has quit [Ping timeout: 240 seconds]
<kseifried>
I can't really think of any significant programming language that doesn't run on windows as at least a first or second class citizen
<ntzrmtthihu777>
kinginky: something rather lame and over-done. are you familiar with the rpg maker series of products?
IceDragon has quit [Quit: Space~~~]
<ntzrmtthihu777>
kinginky: the core of them is a dll which contains a handfull of ruby hidden classes, and without editing this you cannot do any huge amount of customization with your game but it is closed source. this project is intended to be an open source alternative.
tootooroo has joined #ruby
rizzatti has joined #ruby
mmitchell has quit [Remote host closed the connection]
moeSizlak has left #ruby ["Leaving"]
kenneth has quit [Quit: kenneth]
<kinginky>
ntzrmtthihu777: sounds honorable enough, man. more power to you
Kruppe has quit [Remote host closed the connection]
<ntzrmtthihu777>
kinginky: problem is its a bit old, like I said. needa update the ruby and the sfml to get it to work, and methinks I'm a bit in over my head XD
ntzrmtthihu777 has quit [Quit: leaving]
ntzrmtthihu777 has joined #ruby
<ntzrmtthihu777>
kinginky: sorry bout dat, used da wrong irc command, did you say somthing while I was away?
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
wereHamster has joined #ruby
slainer68 has joined #ruby
grenierm has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
danman has quit [Quit: danman]
Tectonic has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
perun_ has quit [Ping timeout: 245 seconds]
<kinginky>
ntzrmtthihu777: no, im in between online pool and irc =P
<ntzrmtthihu777>
lol, cool.
<kinginky>
sounds intriguing. if i had more time, i might've dove in with you.
<kinginky>
you have aim, skype?
justsee has joined #ruby
justsee has joined #ruby
postmodern has quit [Quit: Leaving]
nezumi has joined #ruby
x0F has joined #ruby
perun_ has joined #ruby
pitzips has joined #ruby
subbyyy has joined #ruby
<ntzrmtthihu777>
kinginky: skype, same nick
divout has joined #ruby
a_a_g has joined #ruby
crackfu has quit [Remote host closed the connection]
JonnieCache has joined #ruby
sayan has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
chessguy has quit [Read error: Connection reset by peer]
x0F has quit [Ping timeout: 245 seconds]
chessguy has joined #ruby
kenneth has joined #ruby
r0bby_ has joined #ruby
pitzips has quit [Ping timeout: 245 seconds]
<kinginky>
ntzrtthihu777: just added you
<ntzrmtthihu777>
EB?
<kinginky>
that's me, my man
GhettoCode has quit [Quit: Computer has gone to sleep.]
r0bby_ has quit [Client Quit]
rippa has joined #ruby
jgrevich has quit [Remote host closed the connection]
soulofpeace has quit [Ping timeout: 246 seconds]
perun_ has quit [Ping timeout: 264 seconds]
Mathieu has quit [Ping timeout: 245 seconds]
tish has quit [Quit: Leaving.]
anildigitl has joined #ruby
pitzips has joined #ruby
<anildigitl>
Hi Friends.. I have two files in folder run_ruby_test.rb and test_helper.rb… I have required 'test_helper' from run_ruby_test.rb .. but it's giving below error
mockra has quit [Remote host closed the connection]
justsee has joined #ruby
halfie has left #ruby ["Leaving"]
swingha has joined #ruby
timmow has quit [Remote host closed the connection]
timmow has joined #ruby
d3 has quit [Read error: Connection reset by peer]
swingha has quit [Ping timeout: 240 seconds]
crazysim has joined #ruby
dsadsdasd has joined #ruby
thinkclay has quit [Quit: Leaving.]
Mathieu has joined #ruby
perun__ has joined #ruby
mhn23 has quit [Quit: Goodbye.]
PixelCrumbs has quit [Read error: Connection reset by peer]
sandGorgon has joined #ruby
beneggett has joined #ruby
chimkan has joined #ruby
br4ndon has joined #ruby
swingha has joined #ruby
olivier_bK has joined #ruby
perun__ has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby
pygmael has joined #ruby
havenwood has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 256 seconds]
ananthakumaran1 has joined #ruby
Guest16536 has quit [Quit: This computer has gone to sleep]
chandankumar has joined #ruby
Burgestrand has joined #ruby
pygmael has quit [Client Quit]
rcosta has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 264 seconds]
himsin is now known as guest_user
pygmael has joined #ruby
mahmoudimus has quit [Read error: No route to host]
mahmoudimus has joined #ruby
mando has joined #ruby
timonv has joined #ruby
lewix has joined #ruby
soulofpeace has joined #ruby
mando has quit [Ping timeout: 248 seconds]
bricker`LA has joined #ruby
Mathieu has quit [Ping timeout: 246 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
lewix has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
rickruby has joined #ruby
Elhu has joined #ruby
Mathieu has joined #ruby
rcosta has joined #ruby
akashj87 has joined #ruby
rickruby has quit [Ping timeout: 256 seconds]
marcdel has joined #ruby
tvw has quit [Ping timeout: 258 seconds]
timonv has quit [Remote host closed the connection]
lukeholder has joined #ruby
lukeholder has quit [Client Quit]
My_Hearing has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
beneggett has quit [Quit: Computer has gone to sleep.]
zeroeth has quit [Ping timeout: 256 seconds]
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
pygmael has quit [Quit: pygmael]
nyuszika7h_ is now known as nyuszika7h
PixelCrumbs has joined #ruby
bw_ has quit [Ping timeout: 240 seconds]
qohelet_ has joined #ruby
bw_ has joined #ruby
Andromeda has quit [Remote host closed the connection]
tootooroo has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
io_syl has quit [Quit: Computer has gone to sleep.]
<qohelet_>
hello! I have an array user = ["l1", "p"] and an array of arrays combo = [["l1", "l2"], ["l1", "p"], ["l2", "p"], ["l1", "d"], ["l2", "d"]] How can I check if user is contained inside combo and return the item number of combo if it is?
<Spooner>
xll11, You don't need to require rubygems (unless you live in a cave and use 1.8.7).
<Spooner>
Though that isn't your problem.
<xll11>
lol
Rioji has quit [Ping timeout: 258 seconds]
<Spooner>
visof, Not a problem, but you like "[] << a << b" when you can just use "[a, b]", which is clearer.
<visof>
thanks Spooner
<xll11>
Any insights, spooner? :P
<Spooner>
xll11, Not sure. I've not used wx very much at all.
buibex has joined #ruby
anderse has joined #ruby
<Mon_Ouie>
visof: Your algorithm maximizes the elements at the bottom of the tree first (if I read correctly). The path that maximizes the sum of the elements might have a very small element at the bottom
kirun has joined #ruby
<Spooner>
visof, Yes, you either need to brute force it (work out all paths) or work out how to find the best path another way (for example, removing low numbers until there is only one path or using inverted A*, for example).
<visof>
i just thought it's for every element left and right and i got the max one then check next left and right for it
<Mon_Ouie>
The best path is 10, 30, 50; if you start with 60, you can't find the best path.
<shock_one>
Spooner, it's not good for your carma to help with projecteuler
<Spooner>
Yes, but that doesn't necessarily give you the highest path overall.
<Spooner>
shock_one, Ha, maybe not, but I doubt you could get much further just using my advice.
akashj87__ has quit [Quit: Leaving]
xardas has joined #ruby
akashj87 has joined #ruby
netto has quit [Quit: netto]
<shock_one>
visof, this problem has a very elegant solution. It will add +5 to your programming skills if you find it by yourself.
crackfu has joined #ruby
_altivec has joined #ruby
mercwithamouth has joined #ruby
<visof>
shock_one, i will try by myself but i misunderstood it
danslo has quit [Quit: danslo]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<visof>
they need me to find the max sum from top to bottom and move adjacent , right?
<shock_one>
visof, yes.
<visof>
so if i move in adjacent way i will move either next left or next right ?
<shock_one>
right.
mneorr has quit [Remote host closed the connection]
<Spooner>
visof, You are finding the correct type of path, but since you only look one place ahead, you don't get the optimum one.
<shock_one>
or left :)
adambeynon has quit [Quit: Computer has gone to sleep.]
ToApolytoXaos has joined #ruby
skroon has joined #ruby
<skroon>
hi
pioz has joined #ruby
<skroon>
I would like to write a class called Terminal, that will have a unique session_id, that I generate with something like SecureRandom. Now how do I test something like this? I probably need to stub out SecureRandom then right? Does this mean I need to inject this FakeSecureRandom when calling Terminal.start ?
timonv has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<Spooner>
skroon, Rather depends on the testing framework you are using. You don't need to create a whole class to mock the methods used.
<visof>
Spooner, how?
<visof>
please explain more
swex has quit [Remote host closed the connection]
x0F has quit [Ping timeout: 276 seconds]
<Spooner>
visof, I don't know. I haven't solved the problem. As Mon_Ouie showed in his trivial example, just following the path that appears best when not looking far into where you are going doesn't mean it is the best.
swex has joined #ruby
mercwithamouth has quit [Remote host closed the connection]
altivec has quit [Quit: WeeChat 0.3.7]
_altivec is now known as altivec
mercwithamouth has joined #ruby
<Mon_Ouie>
I added another one that doesn't work when you're walking from the top to the bottom
<xll11>
Spooner I've solved the problem
<xll11>
apparently I need to add the button to a panel first
<xll11>
:P
rickmasta has joined #ruby
<Spooner>
xll11, Goodo.
<Mon_Ouie>
(for "some reason" I assumed you were climbing the pyramid :)
<skroon>
Spooner: what do you mean by that it depends on the testing framework? (i'm using RSpec btw)
<Spooner>
skroon, You should be using a mock, rather than creating a FakeSecureRandom class. The way to create mocks depends on your framework.
<skroon>
Spooner: but I would like to test that i'm getting back a SecureRandom number. I would have to know the generated random number upfront then right? e.g. expect(terminal.session_id).to equal '1221123...'
pioz has quit [Quit: This computer has gone to sleep]
buibex has quit [Remote host closed the connection]
<skroon>
Spooner: ah right, so I would create a SecureRandom mock, that expects the hex method to be called and return a number like '12345' ?
<Spooner>
skroon, Yes, but you'd do something like SecureRandom.should_receive(:hex).with(5).and_return("12ABC")
philcrissman has joined #ruby
<skroon>
Spooner: right! i'm sometimes confused how and what to test :-) When reading books and blogs it all sounds so clear, until I start doing my own stuff ;-)
<Spooner>
skroon, Yeah, knowledge is always easy until you apply it :D
huttan has joined #ruby
<shock_one>
skroon, should the id be secure, or just random? You can just generate, say, SHA1 and in your test check if it has the right amount of «digits»
mercwithamouth has quit [Ping timeout: 260 seconds]
<skroon>
Spooner: nicely said :-)
<skroon>
Spooner: there is also this saying that "mock only your own classes" , how does this apply here perhaps?
<Spooner>
Yes, you could just match it against /\A[a-f0-9]{5}\z/ and assume it was random, but you wouldn't be testing that it was random (which is what you assume securerandom would give you when unmocked).
<skroon>
Spooner: does it mean I should make some abstraction over SecureRandom.hex and mock out that own class perhaps?
<Spooner>
I think so, though I generally do it the other way. It is external stuff (like filesystems or network connections) that most often want to be mocked out, not your own stuff.
<Spooner>
chessguy, You are mocking there, not stubbing.
casheew has quit [Read error: Connection reset by peer]
motto has quit [Ping timeout: 264 seconds]
casheew has joined #ruby
<chessguy>
Spooner: i always get them mixed up. is there an easy way to get the spec passing?
<skroon>
shock_one: so you would say this is over engineering because?
hogeo has joined #ruby
Czupa has joined #ruby
<Spooner>
chessguy, You need to have stub.should_receive(:bar).with(1) as well. You might also want to use #ordered, if the method must be called in a specific order with the args.
vlad_starkov has quit [Read error: Connection reset by peer]
chimmy has joined #ruby
danneu has joined #ruby
casheew has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<chessguy>
Spooner: but i want it to pass whether it receives it with 1 or not
netto has joined #ruby
<Spooner>
You need mock.should_receive(:bar).with(Any) then I think.
<shock_one>
skroon, because usually we test only our own classes. SecureRandom produces random numbers, period. You don't test if library functions do their work correctly, do you?
shevy has quit [Ping timeout: 276 seconds]
<Spooner>
shock_one, Yes, but you are testing that your method calls SecureRandom at all, rather than always just using "12345".
dsadsdasd has quit [Quit: Leaving.]
<Spooner>
shock_one, By mocking SecureRandom, you are not testing it at all.
<alex88>
Mon_Ouie: and doesn't a+b+c return an array?
<Mon_Ouie>
It does, but the elements of a + b + c are the elements of your initial array
<Mon_Ouie>
The elements of [a, b, c] are themselves arrays
mercwithamouth has quit [Ping timeout: 245 seconds]
<alex88>
since on that page they do earlier, Hash[:punch, 99, :kick, 98, :stops_bullets_with_hands, true] so a single array, not Hash[[:punch, 99],[:kick, 98] etc
<skroon>
Spooner: so if I understand correctly, this mocking how i'm using it right now, only works in Ruby because it allows you to override at runtime right? Meaning, in a static language like C# I would have to inject this SecureRandom object in to the Terminal class in order to mock it out?
<Mon_Ouie>
Similarly [1, 2, 3] is not the same thing as 1 + 2 + 3
<alex88>
Mon_Ouie: but in that case 1,2,3 are numbers not arrays
<Mon_Ouie>
Arrays aren't a special case, it's the same for any kind of object
<Spooner>
skroon, Yes, RSpec overrides (then removes the overriding method after the test).
<alex88>
so you mean that e.g. a = [1,2] b=[3,4] does a+b = [1,2,3,4] [a,b] = [[1,2],[3,4]]?
<Mon_Ouie>
[[1], [2], [3]] != [1] + [2] + [3]
<skroon>
Spooner: cool! thanks, i'm starting to make sense of it all now :-)
<Mon_Ouie>
Right
mercwithamouth has joined #ruby
dsadsdasd has joined #ruby
dsadsdasd has quit [Client Quit]
<alex88>
Mon_Ouie: correct, so Hash expect an array of arrays with 2 elements?
pskosinski has quit [Remote host closed the connection]
<Mon_Ouie>
Yes (although you should call it the Hash.[] method, since Hash alone is a class, not a method)
<alex88>
yeah I meant that... but so why the use Hash[:punch, 99, :kick, 98, :stops_bullets_with_hands, true]? that case is a 1 level array to me
<Mon_Ouie>
Yes, Hash.[] also has an other way of being called
<Mon_Ouie>
That's not an array if you look at it closely. It's a list of multiple arguments.
<Mon_Ouie>
So if you wanted to call Hash.[] like that with an array object you'd need to use what is called a splat (Hash[*array])
dhruvasagar has quit [Ping timeout: 260 seconds]
lukeholder has joined #ruby
arya has joined #ruby
<alex88>
oohh, so in that case, using the array it will be like, Hash[[[:one,1],[:two,2]]] so the first squares are to indicate the argument, then inside you place the array
<Mon_Ouie>
Indeed
<alex88>
oh ok got it now, sorry for those stupid questions :) thank alot Mon_Ouie
<Mon_Ouie>
It's a bit confusing when used with literals
dhruvasagar has joined #ruby
<alex88>
also coming from php where [] is always an array :)
<Spooner>
Note that you need to have the #any_number_of_times after the with(2) otherwise it will suck up the 2.
adkron has quit [Ping timeout: 256 seconds]
<Spooner>
Hanmac, I did. I just had a copy-and-paste fail :$
<xll11>
SPAMER!!
<xll11>
:D
<xll11>
hate when that happens
<alex88>
lool
<Spooner>
I was pasting from file to gist, then didn't re-copy the url properly. Sorry to those spammed souls out there!
<chessguy>
Spooner: oh weird
<chessguy>
i wouldn't expect an expectation after the one with the 2 to affect a call before it
Czupa has quit [Read error: Connection reset by peer]
<MrZYX>
We should patch all IRC clients to only accept shift+enter to submit :P
<MrZYX>
so it takes more time
<Spooner>
You didn't use #ordered, so it doesn't care about the order.
<Spooner>
MrZYX, We'd just get used to that sequence of keys instead.
s00pcan has quit [Ping timeout: 264 seconds]
<chessguy>
very nice. thank you
GhettoCode has joined #ruby
Czupa has joined #ruby
<Spooner>
chessguy, But incoming calls are matched against each possible should_receive in order, so the other way around the anything() would suck everything up, including the wanted with(2) [Seems like a case statement).
<chessguy>
gotcha
<Hanmac>
i think i should make a plugin for my irc client that turn to much lines automaticly into gist links
<MrZYX>
or we migrate to xmpp, there's already a prosody module that does that server side^^
chessguy has quit [Remote host closed the connection]
<Spooner>
chessguy, To return to an earlier point, a stub provides (or overrides) methods, but doesn't check that they are called. A mock does the same thing, but is also checking that it is called with particular arguments a particular number of times.
akashj87 has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
netto has quit [Quit: netto]
akashj87 has joined #ruby
s00pcan has joined #ruby
pac1 has joined #ruby
visof has quit [Quit: Leaving]
artofraw has joined #ruby
ehellman has quit []
dqminh has joined #ruby
altivec has quit [Quit: Computer has gone to sleep.]
Matip has joined #ruby
altivec has joined #ruby
arya has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
nezumi has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
dqminh has quit [Remote host closed the connection]
pydave6367 has joined #ruby
lukeholder has quit [Quit: Computer has gone to sleep.]
rcosta has joined #ruby
Mattix has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Client Quit]
akashj87 has quit [Read error: Connection reset by peer]
sambio has joined #ruby
akashj87 has joined #ruby
arya has joined #ruby
EzeQL has joined #ruby
nightfalcon has joined #ruby
pydave6367 has quit [Ping timeout: 246 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
[Rickmasta] has joined #ruby
aytch has quit [Remote host closed the connection]
rickmasta has quit [Ping timeout: 256 seconds]
soooga has quit [Quit: 离开]
spider-mario has joined #ruby
lukeholder has joined #ruby
subbyyy has joined #ruby
Davey has joined #ruby
tish has joined #ruby
rickmasta has joined #ruby
[Rickmasta] has quit [Read error: Connection reset by peer]
rickmasta has quit [Client Quit]
vlad_starkov has joined #ruby
sandGorgon has quit [Ping timeout: 260 seconds]
GhettoCode has quit [Quit: Computer has gone to sleep.]
zigomir has joined #ruby
zph has joined #ruby
s00pcan has quit [Ping timeout: 245 seconds]
chrishunt has joined #ruby
sayan has joined #ruby
tvw has joined #ruby
sayan has quit [Read error: Connection reset by peer]
netto has joined #ruby
enebo has joined #ruby
kevinfagan has quit [Ping timeout: 256 seconds]
netto has quit [Client Quit]
kevinfagan has joined #ruby
chandankumar has quit [Ping timeout: 245 seconds]
ariedler has joined #ruby
chandankumar has joined #ruby
marr has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
chandankumar has quit [Ping timeout: 258 seconds]
tommyvyo has joined #ruby
shock_one has joined #ruby
sandGorgon has joined #ruby
BSaboia has quit [Ping timeout: 258 seconds]
chrishunt has quit [Quit: So long...]
sailias has joined #ruby
Michael__ has joined #ruby
danneu has joined #ruby
Michael__ has quit [Remote host closed the connection]
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
astegman has joined #ruby
iphands_ has joined #ruby
io_syl has joined #ruby
rdev has joined #ruby
kofno has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
ShellFu_AFK has quit [Quit: Leaving]
altivec has quit [Quit: Computer has gone to sleep.]
perlsyntax has joined #ruby
<perlsyntax>
hi
dhruvasagar has joined #ruby
nycjv321 has joined #ruby
BSaboia has joined #ruby
iphands_ has quit [Read error: Operation timed out]
<nycjv321>
hello if I monkey path the Array class, how would I use the value of the array I call the method on? eg some_array.is_similiar? some_value how do I iteract with some_array in the logic of is_similiar?
<nycjv321>
monkey patch*
<Spooner>
nycjv321, The array itself is "self"
<Morrolan>
'self' probably.
<Morrolan>
Heh.
* nycjv321
#facepalms
<nycjv321>
thats awesome! thanks guys
sayan has joined #ruby
* nycjv321
loves ruby!
kofno has quit [Ping timeout: 258 seconds]
dqminh has joined #ruby
<perlsyntax>
:)
<perlsyntax>
Anyone use ruby with eclipse?
<nycjv321>
perlsyntax: yea
<perlsyntax>
How do i use the test with the ruby eclipse
<perlsyntax>
i hope i said it right.
baroquebobcat has joined #ruby
pskosinski has joined #ruby
<nycjv321>
perlsyntax: im a noobie so "idunno" :)
Rioji has joined #ruby
<perlsyntax>
that what i try to find out how to do with ruby eclipse
hiroyuki has joined #ruby
<perlsyntax>
it ok nycjv321 if you don't know.I a newbie to ruby to.
<perlsyntax>
:)
<nycjv321>
what do you mean by "test" ?
<nycjv321>
I work in QA so I think your talking about some type of unit testing thing do you mean develop?
<perlsyntax>
i think i man unittest
<nycjv321>
oh ok so "idunno" :P
<perlsyntax>
i mean unittest with ruby eclipse
<perlsyntax>
i think it for test my ruby script out.
dyreshark has quit [Quit: WeeChat 0.3.2]
<perlsyntax>
do i need something to be install to use it.
<nycjv321>
perlsyntax: I am not sure if eclipse even matters just install some unit testing library and development around that just google it
Rioji has quit [Ping timeout: 258 seconds]
<perlsyntax>
it asking for a testing engine for it to work.
<nycjv321>
oh did you configure ruby path?
baroquebobcat has quit [Quit: baroquebobcat]
<perlsyntax>
yes i install ruby 1.9.3
<perlsyntax>
in linuxmint
baroquebobcat has joined #ruby
<nycjv321>
perlsyntax: you need to configure path in eclipse atleast in windows I forget in linux, send a screenshot mabye?
<perlsyntax>
i try look up on google.
<perlsyntax>
thanks
Davey has quit [Quit: Computer has gone to sleep.]
<Hanmac>
Xeago: yeah AgeOfEmpiresII HD :P
Banistergalaxy has quit [Ping timeout: 240 seconds]
danman has joined #ruby
pskosinski has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
becom33_ has joined #ruby
philcrissman has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
chessguy has joined #ruby
lukeholder has quit [Quit: Computer has gone to sleep.]
kennyvb has joined #ruby
<Spooner>
bakingbread, Oh, and you need to use self << class (not def self.) to use attr_accessor. Reasonable alternative; just not enough context to use it correctly in this case.
chrisnicola has quit [Quit: This computer has gone to sleep]
yshh has quit [Ping timeout: 256 seconds]
whowantstolivef1 has joined #ruby
dagnachew has quit [Quit: WeeChat 0.4.0]
dagnachew has joined #ruby
freakazoid0223 has joined #ruby
adkron has quit [Ping timeout: 264 seconds]
kristofers has quit [Read error: Connection reset by peer]
kristofers has joined #ruby
sheerun has joined #ruby
dagnachew has quit [Client Quit]
thone_ has joined #ruby
dagnachew has joined #ruby
Mon_Ouie has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Burgestrand]
chrisnicola has joined #ruby
Mon_Ouie has joined #ruby
callmeivan has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
sandGorgon has quit [Ping timeout: 245 seconds]
newUser1234 has quit [Ping timeout: 256 seconds]
Skelz0r has quit [Ping timeout: 252 seconds]
thone has quit [Ping timeout: 276 seconds]
baba has joined #ruby
tootooroo has joined #ruby
fire has quit [Ping timeout: 255 seconds]
ner0x has joined #ruby
banjara has joined #ruby
yshh has joined #ruby
pavilionXP has quit [Read error: Connection reset by peer]
arya has joined #ruby
dagnachew has quit [Quit: WeeChat 0.4.0]
Sp4rKy_ is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
dagnachew has joined #ruby
monkegjinni has joined #ruby
dagnachew has quit [Client Quit]
kofno has joined #ruby
callmeivan has joined #ruby
bricker_ has joined #ruby
MissionCritical has quit [Ping timeout: 255 seconds]
soulofpeace has quit [Ping timeout: 240 seconds]
rickmasta has quit [Quit: Leaving...]
bricker has quit [Ping timeout: 245 seconds]
subbyyy has quit [Read error: Connection reset by peer]
dagnachew has joined #ruby
dagnachew has quit [Read error: Connection reset by peer]
motto has joined #ruby
elliottkember has quit [Quit: elliottkember]
kofno has quit [Ping timeout: 256 seconds]
a_a_g has quit [Quit: Leaving.]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
dagnachew has joined #ruby
monkegjinni has quit [Remote host closed the connection]
tootooroo has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
Elhu has joined #ruby
m8 has quit [Ping timeout: 276 seconds]
ixti has joined #ruby
sandGorgon has joined #ruby
mhn23 has joined #ruby
dagnachew has quit [Client Quit]
banjara has quit [Quit: Leaving.]
mando has joined #ruby
brennanMKE has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jpfuentes2 has joined #ruby
dsadsdasd has joined #ruby
mhn23 has quit [Ping timeout: 264 seconds]
swex has quit [Remote host closed the connection]
chrishough has joined #ruby
mando has quit [Ping timeout: 255 seconds]
swex has joined #ruby
<rickruby>
why do a lot of online blogs/resources recommend turning off ri/rdoc ? I'm new to ruby and don't get why I wouldn't want the documentation.
MissionCritical has joined #ruby
<bean>
rickruby, because you can look at docs in the browser.
<ryanf>
the main reason people bother turning it off is that generating it is slow
<ryanf>
and most people never look at it, because they just google for docs
<rickruby>
is it just a setup once then forget about it type of thing?
tootooroo has joined #ruby
<rickruby>
oh I see, should I not bother with ri/rdoc and just use ruby-doc.org ? would it be better for a beginner?
tootooroo is now known as Guest31898
kinginky has joined #ruby
dmiller2 has quit [Ping timeout: 256 seconds]
yshh has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
yshh has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<MrZYX>
rickruby: I wouldn't say it's a beginner/advanced question, just personal preference
<bean>
I just dont ever use Rdoc or ri
Guest31898 has quit [Ping timeout: 246 seconds]
<MrZYX>
whether you like ri more or rdoc or yard
<MrZYX>
give everything a try
<MrZYX>
then decide
dsadsdasd has quit [Quit: Leaving.]
Davey has joined #ruby
k610 has quit [Quit: Leaving]
<Hanmac>
its also seems that some of them are to dumb to use ri, and also to dumb to use the browser ... they come there in the channel and ask before searching
mityaz has joined #ruby
nortel has joined #ruby
m8 has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
<rickruby>
MrZYX: thanks, I will try all 3, never heard of yard before
vlad_starkov has quit [Remote host closed the connection]
motto has quit [Ping timeout: 240 seconds]
alek_b has joined #ruby
chandankumar has joined #ruby
chandankumar has quit [Client Quit]
Opettaja has joined #ruby
darthdeus has joined #ruby
<darthdeus>
guys, any thoughts why am i getting "Gem::LoadError: You have already activated json 1.7.7, but your Gemfile requires json 1.7.6. Using bundle exec may solve this." with POW on 2.0.0-p0, but not on 1.9.3-p392 ?
sayan has joined #ruby
enebo has quit [Quit: enebo]
<MrZYX>
because you gem installe'd json 1.7.7 in the gemset on 2.0.0
<MrZYX>
use bundle exec as the error states
fmendez has quit [Quit: fmendez]
emmanuelux has quit [Read error: Connection reset by peer]
<darthdeus>
MrZYX: i'm using pow, there's no bundle exec ...
fmendez has joined #ruby
tvw has quit []
fmendez has quit [Client Quit]
workmad3 has quit [Ping timeout: 240 seconds]
akashj87 has quit [Quit: leaving]
v0n has joined #ruby
Dreamer3 has joined #ruby
Sct has joined #ruby
Matt has joined #ruby
Elhu has joined #ruby
callmeivan has quit [Quit: callmeivan]
Matt is now known as Guest34752
Sct has left #ruby [#ruby]
nobuoka has quit [Quit: Leaving...]
atmosx has joined #ruby
altivec has joined #ruby
banseljaj has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Opettaja has quit [Quit: WeeChat 0.4.0]
atmosx has quit [Client Quit]
joshwines_ has joined #ruby
marcdel has joined #ruby
Opettaja has joined #ruby
robbyoconnor has quit [Read error: No route to host]
r0bby has joined #ruby
yshh has quit [Remote host closed the connection]
IceDragon has joined #ruby
Davey has joined #ruby
brianpWins has joined #ruby
skattyadz has quit [Quit: skattyadz]
banisterfiend has joined #ruby
sambio has quit []
chimmy has joined #ruby
mrfjor has joined #ruby
sayan has quit [Read error: Connection reset by peer]
nomike has joined #ruby
<nomike>
hi
<chimmy>
Hi
motto has joined #ruby
<nomike>
A friend of mine (who is on vacation and not reachable) has written a small ruby script (as a rake file) to setup a new user account in our LDAP (the tool does also handle kerberos and a few other things).
zmike has quit [Quit: Выходжу]
mhn23 has joined #ruby
<nomike>
I'm a programmet with some years of java-experience and a bit of python, however I'm new to ruby, and I now have the problem, that when running the script it crashes with a segmentation fault and I now need to find out what's wrong and propably fix it
<e-dard>
Can someone explain the difference between expect {...}.to and expect(…).to ?
m8 has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
<MrZYX>
nomike: did you upgrade ruby?
<e-dard>
with resepct to rspec I mean.
danneu has quit [Ping timeout: 252 seconds]
<nomike>
I'm running a plain vanilla ubuntu 12.10 system with no mentionable extra repositories and the system is relatively up2date.
slocate has quit [Quit: EPIC5-1.1.5[1683] - amnesiac : the most common elements in universe - hydrogen & stupidity]
<nomike>
aptitude upgrade is running at the moment but there are no ldap specific updates nor generic ruby ones (only updates for "libmixlib-cli-ruby" and "libohai-ruby" which have no obvious relation to my script).
indyrl has joined #ruby
<nomike>
(not sure about the "libmixlib-cli" stuff
mhn23 has quit [Ping timeout: 256 seconds]
kinginky has joined #ruby
<nomike>
update is finshed. Script still crashes. Error message I get:
<MrZYX>
well, ruby should really rarely seg fault, in most cases that happens if you use a gem with a native extension and copy that over to a different ruby version
cobragoat has quit [Remote host closed the connection]
ToApolytoXaos has quit [Quit: Leaving]
answer_42 has joined #ruby
chrishough has quit [Ping timeout: 252 seconds]
chrishough_ is now known as chrishough
anderse has quit [Ping timeout: 276 seconds]
zer0-day has joined #ruby
<zer0-day>
WARNING: You don't have /root/.gem/ruby/2.0.0/bin in your PATH,
<zer0-day>
any idea ?
ToApolytoXaos has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
cantonic is now known as cantonic|away
vlad_starkov has joined #ruby
razibog has quit [Quit: Leaving.]
brian_petersen has quit [Quit: Page closed]
zer0-day has quit [Quit: Saliendo]
blaxter has quit [Quit: foo]
Pochacco has quit [Quit: Pochacco]
<nomike>
MrZYX, i switched to ruby 1.9, and now it works.
yankeefan04 has quit [Remote host closed the connection]
<nomike>
BTW: is there an option similar to "bash -x" for rake, which display's the code which is executed (I want to debug something)?
banjara has quit [Quit: Leaving.]
<MrZYX>
try --trace
enebo has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
sheerun has quit [Read error: Connection reset by peer]
tootooroo has joined #ruby
<nomike>
thx
BizarreCake has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
banisterfiend has quit [Remote host closed the connection]
chandankumar has joined #ruby
sheerun has joined #ruby
danneu has joined #ruby
banisterfiend has joined #ruby
<nomike>
I want to print status messages to the console. I'm trying to use "Logger" for that. However when I do e.g. 'Logger.new(STDOUT).info("blubb")' it only displays "blubb" but I want it to display the usual stuff (severity, timestamp, etc.)
<nomike>
Is it possible to tell it to use "the standard" format or do I need to supply a custom format
jdunck has quit [Quit: Computer has gone to sleep.]
Davey has quit [Quit: Computer has gone to sleep.]
sandGorgon has quit [Ping timeout: 252 seconds]
kofno has quit [Ping timeout: 256 seconds]
chrishough has quit [Quit: chrishough]
indigenous has joined #ruby
mityaz has quit [Quit: See ya!]
chrishough has joined #ruby
indigenous has quit [Changing host]
indigenous has joined #ruby
tenmilestereo[aw has joined #ruby
chrishough has quit [Client Quit]
tenmilestereo has quit [Ping timeout: 256 seconds]
tjbiddle has joined #ruby
tenmilestereo[aw has quit [Client Quit]
tenmilestereo has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby
etcetera has joined #ruby
atno has joined #ruby
whitedawg has joined #ruby
razieliyo has quit [Ping timeout: 258 seconds]
artofraw has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 248 seconds]
indyrl has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
cwd1 has quit []
sxross has joined #ruby
sxross has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
Andromeda has joined #ruby
<linduxed>
what should i add to spec_helper.rb instead of require_relative for every file i want to test?
cobragoat has joined #ruby
memristor has quit [Read error: Connection reset by peer]
<elaptics>
linduxed: if you're requiring too many files in a test it suggests that you have too many dependencies
rickmasta has joined #ruby
<linduxed>
elaptics: i haven't gotten my first spec to run, so this is more of "how do i start"
sepp2k has quit [Quit: Leaving.]
<elaptics>
linduxed: is it just a plain ruby project?
<linduxed>
yes
banisterfiend has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
<linduxed>
i've written one "it-line" which just checks if an object is an instance of a certain class
<linduxed>
i get uninitialized constant Room (NameError)
az has left #ruby ["WeeChat 0.3.7"]
<waxjar>
is your lib folder in the path?
<waxjar>
(assuming your code lives in lib)
<linduxed>
so i assume that spec_helper.rb doesn't yet point to the lib/ directory in any way
<linduxed>
waxjar: how would i get it into the path?
cobragoat has quit [Remote host closed the connection]
<workmad3>
linduxed: did you do 'require "your_class_file" ' in the spec?
<workmad3>
linduxed: along with the 'require "spec_helper" ' obviously
<linduxed>
workmad3: no, nowhere yet
<workmad3>
linduxed: right, you'll want that
cobragoat has joined #ruby
<linduxed>
workmad3: i just did hte spec_helper require
<linduxed>
i assumed that rspec did some magic which set the root of the project as the path... or something like ethat
<linduxed>
*that
<waxjar>
depends on how you'd like to run things. you can do require_relative "../lib/libname" instead of require "lib", you can run ruby with the -I lib flag or put the lib folder in your path manually
<workmad3>
linduxed: I believe lib/ is put on your load path with a standard rspec
nezumi has joined #ruby
<workmad3>
linduxed: however, you still need to then require the lib file(s)
<waxjar>
if you're running from a rake task, it's already in the path
<workmad3>
linduxed: in order to load your project in the specs
<linduxed>
hmmm
<linduxed>
i'm thinking that since i only have one file atm, it'd be easiest to add a require_relative to spec_helper.rb, but when things get larger i assume i should somehow add lib/ instead, right?
<workmad3>
you should be able to just require, afaik
<linduxed>
oh
<linduxed>
so i should just do 'require "ClassName"'?
ParanoidSP has quit [Ping timeout: 245 seconds]
<workmad3>
you require files, not classes
<workmad3>
but yeah
aytch has joined #ruby
nomenkun has quit [Remote host closed the connection]
nomenkun has joined #ruby
cobragoat has quit [Ping timeout: 255 seconds]
justsee has joined #ruby
justsee has joined #ruby
banisterfiend has joined #ruby
<linduxed>
oh, right
<waxjar>
lib/libname.rb should require the files it needs to run. those files usually live in lib/libname/classname.rb
<workmad3>
^^ you can do that too
cobragoat has joined #ruby
LnL has joined #ruby
iphands_ has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.0]
yannis has quit [Quit: yannis]
workmad3 has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
zeroeth has quit [Ping timeout: 245 seconds]
v0n has joined #ruby
nimred has joined #ruby
nimred has joined #ruby
rcosta has quit [Remote host closed the connection]
wallerdev has quit [Ping timeout: 260 seconds]
etcetera has quit []
vlad_starkov has quit [Remote host closed the connection]
ariedler has quit [Remote host closed the connection]
wallerdev has joined #ruby
cobragoat has quit [Remote host closed the connection]
rickmasta has quit [Quit: Leaving...]
thatRD has joined #ruby
maletor has joined #ruby
cobragoat has joined #ruby
senayar has joined #ruby
cobragoat has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
cobragoat has joined #ruby
akam-it has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 264 seconds]
enebo has quit [Quit: enebo]
adkron has quit [Ping timeout: 264 seconds]
Czupa has quit [Remote host closed the connection]
rickmasta has joined #ruby
LnL has quit [Quit: LnL]
sepp2k has joined #ruby
thatRD has quit [Quit: thatRD]
kofno has joined #ruby
staafl has quit [Read error: Connection reset by peer]
jpcamara has joined #ruby
realDAB has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
cantonic has joined #ruby
aytch has quit [Remote host closed the connection]
cantonic|away has quit [Ping timeout: 245 seconds]
tenmilestereo has quit [Quit: Leaving]
AlSquirrel has quit [Quit: This computer has gone to sleep]
maletor has quit [Quit: Computer has gone to sleep.]
dreinull has joined #ruby
AlSquire has joined #ruby
mneorr has quit [Remote host closed the connection]
kham has joined #ruby
banjara has joined #ruby
zph has joined #ruby
<dreinull>
I'm a bit lost here. I'm using some Mongomapper plugin that does some stuff before validation and then calls some method. I can tell my plugin which method to use but as things are I'm trying to use a chained method and things break. So instead of :method => :upcase I want something like :method => :"upcase.downcase" but Ruby complains because it doesn't know that method...
tjbiddle has quit [Quit: tjbiddle]
<dreinull>
I assume it uses send and doesn't understand me. Is there a way to do what I'm trying to do?
mneorr has quit [Remote host closed the connection]
jpcamara has quit [Quit: jpcamara]
BBonifield_ is now known as BBonifield
tish has joined #ruby
axxT has quit [Ping timeout: 264 seconds]
nomike has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
enebo has quit [Quit: enebo]
rickmasta has quit [Read error: Connection reset by peer]
rickmasta has joined #ruby
arya has joined #ruby
volte_ has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 256 seconds]
eldariof has quit []
BigBadQuanta has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 246 seconds]
Banistergalaxy has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
volte has joined #ruby
Axsuul has joined #ruby
BadQuanta has joined #ruby
wookiehangover has quit [Quit: i'm out]
BSaboia has quit [Ping timeout: 264 seconds]
jamesaxl has joined #ruby
slainer68 has joined #ruby
wookiehangover has joined #ruby
<dreinull>
waxjar: me?
<dreinull>
a String
<waxjar>
ah, never mind then :)
atno has joined #ruby
<dreinull>
I simply added a method to String that picks up the call and forwards it to the chained methods. Ugly but simple
LnL has joined #ruby
LnL has quit [Client Quit]
banisterfiend has quit [Ping timeout: 246 seconds]
wookiehangover has quit [Client Quit]
atno has quit [Read error: Connection reset by peer]
kofno has joined #ruby
atno has joined #ruby
ntzrmtthihu777 has joined #ruby
wookiehangover has joined #ruby
Kruppe has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
<ntzrmtthihu777>
question: suppose I have a rather large ruby script (16k+ lines) using alot of parent-child setups, can I split it into easy to edit parts and still have it run as if it was one file?
mengu has joined #ruby
banisterfiend has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
subbyyy has joined #ruby
timonv has quit [Remote host closed the connection]
kham has left #ruby [#ruby]
<Hanmac>
ntzrmtthihu777: why does it be one file?
<Spooner>
ntzrmtthihu777, Just split it by class and require_relative the different parts.
<ntzrmtthihu777>
Hanmac: heh, you must always be here. because I used a simple ruby script to extract the code from a special file
<Spooner>
Hanmac, I'd assume it is an inherited codebase ;)
<Hanmac>
for my game engine i split by feature too
sandGorgon has quit [Remote host closed the connection]
<ntzrmtthihu777>
Spooner: gotcha. I
<ntzrmtthihu777>
Spooner: gotcha. I've seen that before, but not sure how to do it. will googling likely get me good results?
rickmasta has quit [Quit: Leaving...]
<Spooner>
ntzrmtthihu777, It is how every Ruby script is done (except your one).
rcosta has joined #ruby
shortcutmedia has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
axxT has joined #ruby
axxT has joined #ruby
axxT has quit [Changing host]
wmoxam has joined #ruby
moshef has joined #ruby
tylersmith has joined #ruby
<ntzrmtthihu777>
Spooner: not literally mine, but yeah.
m8 has quit [Quit: Sto andando via]
<moshef>
hi guys. I'm asking bundler to update a gem to use newer tag yet it's still using the older one.
rien has joined #ruby
<moshef>
Using gemname (0.0.6) from git@github.com:username/gemname.git (at v0.0.7)
<moshef>
why is that? tried to rm gemfile.lock but its the same
zeroeth has quit [Ping timeout: 256 seconds]
<rien>
how to I print this as JSON? "{\"employee_name\":\"Kristi Lee\",\"units_sold\":112}"
mahmoudimus has joined #ruby
yalue has quit [Read error: Connection reset by peer]
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
zeroeth has joined #ruby
grzywacz has quit [Ping timeout: 276 seconds]
rickruby has quit [Remote host closed the connection]
adkron has quit [Ping timeout: 256 seconds]
mengu has quit [Quit: This computer has gone to sleep]
`p has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
`p has joined #ruby
moshef has quit [Quit: moshef]
shortcutmedia has quit [Quit: Leaving]
shortcutmedia has joined #ruby
whitedawg has quit [Quit: Leaving.]
cobragoat has joined #ruby
kham has joined #ruby
kham has left #ruby [#ruby]
vlad_starkov has joined #ruby
atno has quit [Remote host closed the connection]
cobragoat has quit [Read error: Operation timed out]
atno has joined #ruby
bradleyprice has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
niklasb has quit [Read error: Operation timed out]
supki has quit [Ping timeout: 252 seconds]
banister_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
darthdeus has quit [Ping timeout: 258 seconds]
Andromeda has quit [Remote host closed the connection]
zph has joined #ruby
Andromeda has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
newUser1234 has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
<PixelCrumbs>
There's also #rubyonrails
gadgetoid_ has joined #ruby
gadgetoid_ is now known as gadgetoid
pdtpatrick has joined #ruby
michaelmartinez has joined #ruby
tootooroo has quit [Ping timeout: 256 seconds]
kofno has quit [Ping timeout: 260 seconds]
<jacob__>
I need help or perhaps a hint in writing a a ruby script that accepts a path to a text file as only command line argument and prints the contents of the file
pitzips has joined #ruby
cobragoat has joined #ruby
<jacob__>
I have been doing a lot of reading today and haven't found much for that specific situation and I am just learning ruby
marcdel has quit []
benlieb has joined #ruby
enebo has quit [Quit: enebo]
marcdel has joined #ruby
<ryanf>
jacob__: the main things you need to know about are ARGV and File
<ryanf>
you could technically cheat by using ARGF but you woudn't necessarily learn very much
kirun has quit [Quit: Client exiting]
<ryanf>
(the entire program to do that with ARGF is "puts ARGF.read")
<jacob__>
yeah if I can avoid the short cuts and work arounds/cheats I would like to because I want to learn and comprehend the language
RagingDave has quit [Quit: Ex-Chat]
<MrZYX>
ARGF doesn't mandate a given file though
<jacob__>
I also have to have all sequences of 2 or more spaces condensed into a single space
<ryanf>
yeah, that makes sense. ARGV is for getting the command-line arguments, and there are a few ways to use File to get the contents of the file
<ryanf>
yeah, that'll be easy too. check out the docs for String
zph has quit [Quit: Computer has gone to sleep.]
rcosta has quit [Remote host closed the connection]
Sicp has quit [Changing host]
Sicp has joined #ruby
adkron has quit [Ping timeout: 246 seconds]
newUser1234 has joined #ruby
<cespare>
hmm. I have a pipe that's hanging on .read even though the write end is closed.
<cespare>
that doesn't seem right.
fixl has joined #ruby
ariedler has joined #ruby
rcosta has joined #ruby
jekotia has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
crackfu has quit [Remote host closed the connection]
martxel has quit [Ping timeout: 260 seconds]
crackfu has joined #ruby
BSaboia has quit [Ping timeout: 245 seconds]
eka has quit [Quit: Computer has gone to sleep.]
beneggett has quit [Quit: Computer has gone to sleep.]
martxel has joined #ruby
oponder has joined #ruby
johnmilton has quit [Quit: Leaving]
crackfu has quit [Ping timeout: 248 seconds]
divout has quit [Quit: Leaving.]
malte_ has joined #ruby
brianherman has joined #ruby
tjbiddle has joined #ruby
vlad_starkov has joined #ruby
Guest34752 has quit [Quit: This computer has gone to sleep]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
cobragoat has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
benlieb has quit [Quit: benlieb]
wargasm has joined #ruby
Xeago has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.0]
predator117 has joined #ruby
_maes_ has joined #ruby
<canton7>
jacob__, puts File.read(ARGV[1])), that's all you need
mercwithamouth has joined #ruby
<canton7>
might be ARGV[0] actually, can't remember whether ARGV[0] is the script's name
<Xeago>
canton7: why not use ARGF.read ?
<Xeago>
ARGF reads from whatever files are mentioned in ARGV
<canton7>
that works too. slightly harder to understand for a newbie imo
Pochacco has joined #ruby
<jacob__>
I have to condense all sequences of 2 or more spaces into a single space though, I imagine I would need to use a regex instead of ARGV so it also specifically matches a txt file too
drale2k_ has quit [Quit: Leaving...]
predator217 has quit [Ping timeout: 258 seconds]
chrishough has joined #ruby
kofno has joined #ruby
<MrZYX>
.read.gsub(/ +/, ' ')
backjlack has quit [Remote host closed the connection]
fschuindt has quit [Ping timeout: 245 seconds]
drale2k has joined #ruby
tootooroo has joined #ruby
kristofers has quit []
sepp2k has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 256 seconds]
Guest6219 has quit [Changing host]
Guest6219 has joined #ruby
Guest6219 is now known as UukGoblin
mneorr has joined #ruby
mattbl has joined #ruby
rburton- has joined #ruby
maletor has joined #ruby
hashmal has quit [Quit: Computer has gone to sleep.]
aytch has joined #ruby
Pochacco has quit [Quit: Pochacco]
justsee has quit [Ping timeout: 256 seconds]
beneggett has joined #ruby
crackfu has joined #ruby
tylersmith has quit [Quit: tylersmith]
ZachBeta has joined #ruby
mneorr has quit [Remote host closed the connection]
tootooroo has quit [Ping timeout: 276 seconds]
skattyadz has quit [Quit: skattyadz]
mneorr has joined #ruby
BSaboia has joined #ruby
tomsthumb has joined #ruby
Loaft has quit [Read error: Connection reset by peer]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
<tjbiddle>
Anyone here a Heroku fan? Curious about how it handles worker processes.
ariedler has quit [Remote host closed the connection]
PixelCrumbs has joined #ruby
ariedler has joined #ruby
thernull has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
jdunck has joined #ruby
jdunck has quit [Client Quit]
<davidcelis>
tjbiddle: it handles it by charging you $35/month/process
huoxito has joined #ruby
<tjbiddle>
davidcelis: Heh. I meant more on how to go about setting it up - https://devcenter.heroku.com/articles/procfile explains a bit though. Looks like you can just set any arbitrary command to worker:
vlad_starkov has joined #ruby
Markvilla has joined #ruby
emocakes has joined #ruby
chrishough has quit [Quit: chrishough]
vlad_starkov has quit [Ping timeout: 260 seconds]
Iszak has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]