apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
gaahrdne_ has quit [Ping timeout: 240 seconds]
pitzips has quit [Ping timeout: 246 seconds]
mneorr has joined #ruby
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]
Guest52362 has joined #ruby
<Animawish> bitcycle: require "irb"; IRB.start
Bry8Star has quit [Ping timeout: 276 seconds]
benlieb has quit [Quit: benlieb]
<Rym> Animawish: according to guard's read me rb-fsevent is good for osx https://github.com/guard/guard#efficient-filesystem-handling
<Animawish> so can I just use rb-fsevent? or do I use it as part of guard?
huoxito has joined #ruby
<Rym> can use it independently fine https://github.com/thibaudgg/rb-fsevent
<banisterfiend> bitcycle: require 'pry'; binding.pry
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
<pilojo> whoops
<pilojo> it's 1/1000th
<pilojo> 1/100th*
mercwith1mouth has joined #ruby
<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
mfridh has quit [Ping timeout: 264 seconds]
yacks has joined #ruby
<banisterfiend> :D
<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]
xardas has quit [Ping timeout: 260 seconds]
razibog has quit [Ping timeout: 276 seconds]
kemist has quit [Quit: Textual IRC Client: www.textualapp.com]
emmanuelux has quit [Quit: emmanuelux]
pilojo has left #ruby ["Leaving"]
etcetera_ is now known as etcetera
dv_ has quit [Read error: Operation timed out]
dv_ has joined #ruby
xyzodiac has quit [Quit: Textual IRC Client: www.textualapp.com]
mockra_ has quit [Remote host closed the connection]
etcetera has quit []
chrisnicola has joined #ruby
<jeebster> how can I pass authorization credentials in a Net:HTTP call?
<jeebster> I think these are at the proxy level as I get a window popup requesting authentication in the browser. parameters don't seem to work
agarie_ has joined #ruby
agarie has quit [Read error: Connection reset by peer]
postmodern has quit [Changing host]
postmodern has joined #ruby
drago777- has quit [Quit: Im out bitches]
megha has quit [Ping timeout: 255 seconds]
hmarr has joined #ruby
oponder has quit [Remote host closed the connection]
isak has quit [Quit: isak]
ShellFu is now known as ShellFu_AFK
brhelwig has joined #ruby
postmodern has quit [Quit: Leaving]
davetherat has quit [Remote host closed the connection]
louism2__ has quit [Quit: This computer has gone to sleep]
dankest has quit [Quit: Leaving...]
dankest has joined #ruby
akashj87_ has joined #ruby
taqutor has joined #ruby
ckrailo has joined #ruby
ckrailo has quit [Client Quit]
techlife has quit [Ping timeout: 252 seconds]
sheerun_ has joined #ruby
dmiller1 has quit [Ping timeout: 258 seconds]
randomau_ has joined #ruby
hmarr has quit []
randomau_ has quit [Read error: Connection reset by peer]
chrisnicola has quit [Quit: This computer has gone to sleep]
ariedler has joined #ruby
lewix has quit [Remote host closed the connection]
jeebster has quit [Quit: Leaving.]
mahmoudimus has joined #ruby
volte_ has joined #ruby
Ontolog has quit [Ping timeout: 248 seconds]
z is now known as Guest34854
Ontolog_ has joined #ruby
JaTochNietDan has quit [Ping timeout: 264 seconds]
sheerun_ is now known as sheerun
rdev has quit [Changing host]
rdev has joined #ruby
mnaser_ has quit [Changing host]
postmodern_ has joined #ruby
mnaser_ has joined #ruby
volte has quit [Read error: Connection reset by peer]
rcsheets has joined #ruby
Guest34854 has quit [Changing host]
Guest34854 has joined #ruby
mnaser_ is now known as mnaser
rcsheets has quit [Changing host]
rcsheets has joined #ruby
postmodern_ has quit [Client Quit]
postmodern has joined #ruby
Guest34854 is now known as z
benlieb has joined #ruby
sheerun has quit []
wsterling has joined #ruby
crackfu has joined #ruby
indyrl has left #ruby [#ruby]
Davey has quit [Quit: Computer has gone to sleep.]
maletor has quit [Quit: Computer has gone to sleep.]
Mattykins has quit [Read error: No route to host]
Hanmac1 has quit [Quit: Leaving.]
aytch has joined #ruby
slainer68 has quit [Remote host closed the connection]
dankest has quit [Read error: Connection reset by peer]
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
Xeago_ has quit [Remote host closed the connection]
ggVGc_ has quit [Remote host closed the connection]
ffranz has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
indyrl has joined #ruby
DonRichie has joined #ruby
mmitchell has joined #ruby
foobArrr has joined #ruby
backjlack has joined #ruby
lorn_ has joined #ruby
rgoodwin has joined #ruby
wudofyr has joined #ruby
nfk has joined #ruby
tomku has joined #ruby
soulcake has joined #ruby
bricker has joined #ruby
JaTochNietDan has joined #ruby
calmyournerves has joined #ruby
techlife has joined #ruby
17WABD1LB has joined #ruby
jimeh has joined #ruby
kuzushi has joined #ruby
Kirotan has joined #ruby
cantonic has joined #ruby
spanx_ has joined #ruby
fcoury_ has joined #ruby
megha has joined #ruby
madhatter has joined #ruby
Astralum has joined #ruby
mksm_ has joined #ruby
aapzak_ has joined #ruby
bttf has joined #ruby
awc737 has joined #ruby
davetherat has joined #ruby
dross has joined #ruby
wedgeV has joined #ruby
classix has joined #ruby
parus_ has joined #ruby
supki has joined #ruby
LBRapid has joined #ruby
busybox42 has joined #ruby
Emmanuel_Chanel has joined #ruby
heidar has joined #ruby
Akuma has joined #ruby
jarin has joined #ruby
mvangala_ has joined #ruby
Sp4rKy_ has joined #ruby
MagBo has joined #ruby
denken has joined #ruby
froy has joined #ruby
patricksroberts_ has joined #ruby
alex88_ has joined #ruby
elliottkember has joined #ruby
germanstudent has joined #ruby
SIGILL has joined #ruby
timmow has joined #ruby
Lockzi has joined #ruby
breadtk has joined #ruby
thomasfedb has joined #ruby
SirFunk has joined #ruby
chimmy has joined #ruby
rtl has joined #ruby
russfrank has joined #ruby
Whoop has joined #ruby
QKO has joined #ruby
Mohan__ has joined #ruby
baz_ has joined #ruby
moshee has joined #ruby
swarley-freenode has joined #ruby
DarthGandalf has joined #ruby
heftig has joined #ruby
X-Jester has joined #ruby
caveat- has joined #ruby
dormoose has joined #ruby
Nisstyre-laptop has joined #ruby
Mchl has joined #ruby
shaman42_ has joined #ruby
bier has joined #ruby
kkh has joined #ruby
daaaan_ has joined #ruby
Fenne has joined #ruby
mave_fnet has joined #ruby
evxd has joined #ruby
nopper has joined #ruby
dominikh has joined #ruby
cheez0r has joined #ruby
hoelzro has joined #ruby
alexspeller has joined #ruby
mame0 has joined #ruby
joschi has joined #ruby
Nightmare has joined #ruby
yasu has joined #ruby
oh2lre has joined #ruby
wookiehangover has joined #ruby
angelixd has joined #ruby
Caius has joined #ruby
bubbajones has joined #ruby
rdo has joined #ruby
avelldiroll has joined #ruby
Signum has joined #ruby
Jedi_SCT1 has joined #ruby
77CAATFJH has joined #ruby
m_3 has joined #ruby
tomaw has joined #ruby
Kov|abx has joined #ruby
conceal_rs__ has joined #ruby
brad[] has joined #ruby
Mekkis has joined #ruby
chiel has joined #ruby
xsdg has joined #ruby
mtfk has joined #ruby
nate_h has joined #ruby
denstark has joined #ruby
duckstab has joined #ruby
kpwz has joined #ruby
Guest19721 has joined #ruby
mikalv has joined #ruby
BombStrike has joined #ruby
mnemon has joined #ruby
pietr0 has joined #ruby
felipe has joined #ruby
adamholt has joined #ruby
lmx has joined #ruby
KRF has joined #ruby
TTilus has joined #ruby
KillerFox has joined #ruby
bakedb_ has joined #ruby
tetsus has joined #ruby
vaicine has joined #ruby
nw has joined #ruby
Hanmac has joined #ruby
fryguy has joined #ruby
indyrl has left #ruby [#ruby]
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby
benlieb has quit [Quit: benlieb]
mneorr has quit [Ping timeout: 240 seconds]
<awc737> is this the end of the world?! :-&
ffranz has quit [Ping timeout: 258 seconds]
17WABD1LB has quit [Read error: Connection reset by peer]
<Nisstyre-laptop> awc737: no, just Freenode's servers
<Nisstyre-laptop> which apparently they allow anyone to link up
hiyakashi has joined #ruby
nyuszika7h_ has joined #ruby
alex88_ has joined #ruby
alex88_ has quit [Changing host]
megha is now known as Guest99477
alex88_ is now known as alex88
shevy2 has joined #ruby
rdev has quit [Quit: Leaving...]
dankest has joined #ruby
sirbrillig has joined #ruby
jdunck has quit [Ping timeout: 276 seconds]
<awc737> does everyone else see a Million lines of joins?
Edder has joined #ruby
Animawish has quit [Read error: Connection reset by peer]
<ixti_> awc737: i don't count them :D
shevy has quit [Ping timeout: 245 seconds]
rickruby has joined #ruby
<ixti_> but yeah - lots of joins
<lewix> i disabled it
* ixti_ thinks about filtering them out as well
Animawish has joined #ruby
<lewix> I'm blind to it
<ixti_> lewix: yeah - i guess i'll hide them as well. they are meaningless at least for me
sgkim126l has quit [Quit: leaving]
jaredrhine has quit [Ping timeout: 248 seconds]
sgkim126l has joined #ruby
Edder has left #ruby [#ruby]
pitzips has joined #ruby
thinkclay has joined #ruby
ixti_ is now known as ixti
ixti has quit [Quit: WeeChat 0.4.0]
ixti has joined #ruby
<lewix> ya and it allows me to read what's going on better; people join the channel every second it can get annoying
mercwith1mouth has quit [Ping timeout: 248 seconds]
<awc737> but then when people freak out, you have no idea whey
<awc737> like you probably have no idea right now whats going on, do you -.-
aytch has quit [Remote host closed the connection]
BSaboia has quit [Read error: Connection reset by peer]
* ixti finally set up smart filters in weechat :D
chrisnicola has joined #ruby
jrhe has quit [Quit: jrhe]
<ixti> now i'm blind to join/part/quit for those who were not talked on chan for 5 minutes :D
<ixti> and sorry for offtop
mercwithamouth has joined #ruby
jrhe has joined #ruby
kofno has quit [Remote host closed the connection]
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Andromeda has joined #ruby
NiteRain has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
radic has quit [Read error: Connection reset by peer]
radic has joined #ruby
EPIK has joined #ruby
Andromeda has quit [Remote host closed the connection]
Andromeda has joined #ruby
brhelwig has quit [Remote host closed the connection]
lupinstien has joined #ruby
charliesome_ has joined #ruby
Ontolog_ has quit [Remote host closed the connection]
nezumi has joined #ruby
charliesome_ is now known as charliesome
<shevy2> ixti why do you use peechat man
randomautomator has joined #ruby
<ixti> shevy2: why not?
Andromeda has quit [Ping timeout: 264 seconds]
jabbslad has quit [Quit: Linkinus - http://linkinus.com]
randomautomator has quit [Ping timeout: 260 seconds]
rickruby has quit [Remote host closed the connection]
benlieb has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
nezumi has quit [Ping timeout: 245 seconds]
brum has joined #ruby
ty-mat has quit [Quit: kthnxbye!]
sayan has joined #ruby
bricker`LA has quit [Read error: No route to host]
graft has joined #ruby
graft has joined #ruby
r0bby_ has joined #ruby
<callmeivan> does anybody if there is an ruby - mt4 bridge?
<callmeivan> know
<shevy2> ixti it feels inferior to xchat :)
slainer68 has joined #ruby
<ixti> shevy2: i have an opposite feeling
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
lewix has quit [Remote host closed the connection]
lewis has joined #ruby
netto has joined #ruby
<ixti> after all it's not the right chan for <my favourite app> vs <your favourite app> holywar...
thecreators has joined #ruby
bsaboia_ has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
lewis is now known as lewix
slainer68 has quit [Ping timeout: 258 seconds]
chimmy has joined #ruby
JonnieCache has quit [Ping timeout: 256 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
soulofpeace has joined #ruby
GhettoCode has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
Es0teric has quit [Ping timeout: 246 seconds]
rickruby has joined #ruby
jrhe has left #ruby [#ruby]
r0bby_ has quit [Ping timeout: 258 seconds]
benlieb has quit [Quit: benlieb]
soulofpeace has quit [Ping timeout: 258 seconds]
brum has quit [Remote host closed the connection]
soulofpeace has joined #ruby
bsaboia_ has quit [Read error: Connection reset by peer]
ggVGc has joined #ruby
x0F has quit [Ping timeout: 264 seconds]
spooner_ has quit [Remote host closed the connection]
pitzips has quit [Ping timeout: 264 seconds]
rizzatti has joined #ruby
thinkclay has quit [Quit: Leaving.]
Michael__ has quit [Remote host closed the connection]
Animawish has quit [Quit: Animawish]
mercwithamouth has joined #ruby
c0rn has joined #ruby
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Arzaga has joined #ruby
indyrl has joined #ruby
indyrl has left #ruby [#ruby]
chimmy has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
dankest has quit [Quit: Leaving...]
ariedler has quit [Remote host closed the connection]
banisterfiend has joined #ruby
tjbiddle_ has joined #ruby
geggam has quit [Remote host closed the connection]
dqminh has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ARCADIVS has quit [Quit: WeeChat 0.3.8]
tjbiddle has quit [Ping timeout: 258 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
tjbiddle_ is now known as tjbiddle
banisterfiend has joined #ruby
chrishough has joined #ruby
rizzatti has quit [Quit: Leaving...]
brain_shim_ has quit [Quit: Leaving]
brianherman has quit [Quit: Leaving]
netto has quit [Quit: netto]
yacks has quit [Read error: Connection reset by peer]
yacks has joined #ruby
ixti has quit [Quit: WeeChat 0.4.0]
indyrl has joined #ruby
mando has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dqminh has quit [Remote host closed the connection]
TDJACR has quit [Quit: Leaving :D]
nezumi has joined #ruby
dhruvasagar has joined #ruby
hiroyuki has joined #ruby
thecreators has quit [Quit: thecreators]
indigenous has quit [Quit: No Ping reply in 180 seconds.]
Guest99477 has quit [Quit: WeeChat 0.4.0]
fire has joined #ruby
kinginky has joined #ruby
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<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
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
<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"?
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<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
<anildigitl> … rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- test_helper (LoadError)
<anildigitl> I am using ruby 1.9.3
mando has quit [Remote host closed the connection]
v0n has joined #ruby
jonathanwallace1 has quit [Ping timeout: 252 seconds]
<anildigitl> found solution..np
<ntzrmtthihu777> :D yay
yshh has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
pitzips has quit [Ping timeout: 264 seconds]
Guest52362 has quit [Quit: This computer has gone to sleep]
smalls has joined #ruby
smalls has left #ruby [#ruby]
huoxito has quit [Quit: Leaving]
Heero has quit [Ping timeout: 252 seconds]
perun_ has joined #ruby
slainer68 has joined #ruby
graft has quit [Ping timeout: 258 seconds]
<anildigitl> hmm.. I am getting oMethodError: undefined method `assert_not_equal' for #..
<anildigitl> for both ruby 1.9.2 and ruby 2.0 .. minitest..
slainer68 has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
Matt has joined #ruby
chandankumar has joined #ruby
Matt is now known as Guest16536
Andromeda has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
zlzal has joined #ruby
Andromeda has quit [Read error: Connection reset by peer]
Andromeda has joined #ruby
akam-it has joined #ruby
zlzal has quit [Quit: Leaving]
sayan has quit [Ping timeout: 264 seconds]
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
hiyakashi has quit [Quit: お前は知りすぎた]
markalanevans has joined #ruby
<anildigitl> refute ones.. there in minitest
siekoku has joined #ruby
a_a_g has quit [Quit: Leaving.]
akashj87 has joined #ruby
danneu has quit [Ping timeout: 264 seconds]
nightfalcon has quit [Ping timeout: 252 seconds]
hmsimha has joined #ruby
ananthakumaran has joined #ruby
pcboy__ has joined #ruby
a_a_g has joined #ruby
<hmsimha> can anyone explain why this breaks my irb session?: [1, 2, 3].each |i| { puts i }
visof has joined #ruby
<hmsimha> i realize that i'm misusing |i|
<hmsimha> it should be in the braces
<hmsimha> but why doesn't the console work after i try to run that?
nfk has quit [Quit: yawn]
visof has quit [Changing host]
visof has joined #ruby
indyrl has left #ruby [#ruby]
<hmsimha> nm i think i figured it out... somehow it's expecting another }
<MrZYX> hm throws syntax error for me
Nisstyre-laptop has quit [Quit: Leaving]
pcboy_ has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby
sayan has joined #ruby
dmiller1 has joined #ruby
chandankumar has quit [Quit: Leaving]
c0rn has quit [Quit: Computer has gone to sleep.]
mahmoudimus has joined #ruby
ehaliewicz has joined #ruby
yshh has joined #ruby
fmendez has quit [Quit: fmendez]
axxT has joined #ruby
tootooroo has quit [Ping timeout: 256 seconds]
tootooroo has joined #ruby
louism2__ has joined #ruby
lewix_ has joined #ruby
perun_ has quit [Ping timeout: 255 seconds]
stkowski has quit [Quit: stkowski]
rezzack has quit [Quit: Leaving.]
ehaliewicz has quit [Remote host closed the connection]
lewix has quit [Ping timeout: 258 seconds]
louism2__ has quit [Quit: This computer has gone to sleep]
ryanf_ has joined #ruby
tootooroo has quit [Ping timeout: 245 seconds]
ryanf_ has quit [Client Quit]
charliesome has joined #ruby
ntzrmtthihu777 has left #ruby [#ruby]
grzywacz has joined #ruby
graft has quit [Read error: No route to host]
rizzatti has quit [Quit: Linkinus - http://linkinus.com]
swarley-freenode is now known as swarley
dhruvasagar has joined #ruby
akashj87__ has joined #ruby
tootooroo has joined #ruby
adkron has joined #ruby
dmiller1 has quit [Read error: Operation timed out]
akashj87 has quit [Ping timeout: 258 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
generalissimo has joined #ruby
whitedawg has joined #ruby
dhruvasagar has joined #ruby
perun__ has joined #ruby
heftig has quit [Quit: Quitting]
mockra has joined #ruby
Amnesthesia has joined #ruby
generalissimo has quit [Remote host closed the connection]
adkron has quit [Ping timeout: 264 seconds]
mockra has quit [Ping timeout: 246 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
yshh has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
yshh has joined #ruby
baroquebobcat has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
wallerdev has quit [Quit: wallerdev]
chrishough has quit [Quit: chrishough]
banseljaj has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Client Quit]
sayan has quit [Quit: Leaving]
Skofo has quit [Ping timeout: 246 seconds]
sayan has joined #ruby
ggVGc has quit [Remote host closed the connection]
siekoku has quit [Remote host closed the connection]
PixelCrumbs has joined #ruby
yshh has quit [Remote host closed the connection]
akashj87__ has quit [Ping timeout: 258 seconds]
hadees has quit [Read error: Connection reset by peer]
Mathieu has joined #ruby
Morkel has joined #ruby
mhn23 has joined #ruby
siekoku has joined #ruby
kinginky has quit [Ping timeout: 258 seconds]
kuzushi has quit [Ping timeout: 252 seconds]
huttan has quit [Ping timeout: 255 seconds]
hamed_r has joined #ruby
huttan has joined #ruby
wchun has joined #ruby
Mathieu has quit [Ping timeout: 246 seconds]
zigomir has joined #ruby
markalanevans has quit [Quit: markalanevans]
yshh has joined #ruby
lewix_ has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
perun__ has quit [Ping timeout: 258 seconds]
agarie_ has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
wagle has joined #ruby
shock_one has quit [Ping timeout: 264 seconds]
Mathieu has joined #ruby
<wagle> hi.. is false constant spelled all lower case, or as "False"?
yacks has quit [Ping timeout: 256 seconds]
* wagle is debugging a ruby config script and doesnt know ruby
robscomputer_ has quit [Ping timeout: 245 seconds]
<otters> false
rismoney has quit [Read error: Connection reset by peer]
yacks has joined #ruby
Banistergalaxy has quit [Ping timeout: 258 seconds]
Banistergalaxy has joined #ruby
yshh has joined #ruby
mockra has joined #ruby
<wagle> yeah, that wasnt it.. what am i looking for if i get: "Message: can't convert false into Hash"
echevemaster has quit [Remote host closed the connection]
Mathieu has quit [Ping timeout: 240 seconds]
sheerun has joined #ruby
siekoku has quit [Remote host closed the connection]
heftig has joined #ruby
swingha has joined #ruby
thinkclay has joined #ruby
heftig has quit [Client Quit]
t-mart has joined #ruby
rcosta has joined #ruby
t-mart has quit [Remote host closed the connection]
t-mart has joined #ruby
himsin has joined #ruby
Mathieu has joined #ruby
iphands_ has quit [Ping timeout: 246 seconds]
t-mart_ has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
keymone has joined #ruby
grekko has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
ninp0 has quit [Ping timeout: 246 seconds]
zeroeth has joined #ruby
swingha has quit [Quit: WeeChat 0.4.0]
artofraw has joined #ruby
Morkel has quit [Quit: Morkel]
Mathieu has quit [Ping timeout: 260 seconds]
marr has joined #ruby
whitedawg has quit [Quit: Leaving.]
robbyoconnor has joined #ruby
justsee has quit [Ping timeout: 256 seconds]
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?
Andromeda has joined #ruby
<qohelet_> lol, that was easy
<qohelet_> thanks
mneorr has joined #ruby
rcosta has quit [Remote host closed the connection]
Tectonic has quit []
Proshot has joined #ruby
chandankumar has quit [Ping timeout: 258 seconds]
eka has joined #ruby
EzeQL has quit [Ping timeout: 245 seconds]
sayan has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
artofraw has quit [Remote host closed the connection]
baba has joined #ruby
fire has quit [Ping timeout: 256 seconds]
grzywacz has quit [Ping timeout: 245 seconds]
tootooroo has joined #ruby
brennanMKE has joined #ruby
k610 has joined #ruby
senayar has joined #ruby
soooga has joined #ruby
dsadsdasd has quit [Quit: Leaving.]
buibex has joined #ruby
yannis has joined #ruby
dqminh has joined #ruby
marcdel has quit []
Elhu has quit [Quit: Computer has gone to sleep.]
yannis has quit [Client Quit]
chessguy has quit [Remote host closed the connection]
<injekt> wagle: in what context?
robustus has quit [Ping timeout: 255 seconds]
robustus has joined #ruby
swingha has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
dqminh has quit [Remote host closed the connection]
Elhu has quit [Client Quit]
Proshot has quit [Quit: Leaving]
vlad_starkov has joined #ruby
tootooroo has quit [Ping timeout: 248 seconds]
Blue_Ice_ is now known as Blue_Ice
codecop has joined #ruby
grekko has quit [Quit: Linkinus - http://linkinus.com]
swingha has joined #ruby
<wagle> injekt: i commented these lines out and it "worked"
<wagle> # _config.merge!(YAML.load(File.open(File.join(File.dirname(__FILE__),
<wagle> # "vagrantconfig_local.yaml"), File::RDONLY).read))
maxmanders has joined #ruby
tootooroo has joined #ruby
chandankumar has joined #ruby
sandGorgon has quit [Ping timeout: 258 seconds]
tootooroo has quit [Client Quit]
anderse has quit [Read error: Connection reset by peer]
anderse has joined #ruby
anderse has quit [Client Quit]
goganchic has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
PixelCrumbs is now known as Pixel_Away
vlad_starkov has joined #ruby
kham has joined #ruby
hashmal has joined #ruby
swingha has quit [Ping timeout: 252 seconds]
<k610> how can i check if i am actually passing something to ARGF
passbe has quit [Ping timeout: 264 seconds]
aytch has joined #ruby
kham has left #ruby [#ruby]
sandGorgon has joined #ruby
Neandre has joined #ruby
<shevy2> k610 why ARGF and not ARGV
shevy2 is now known as shevy
<shevy> k610 though, both ARGV and ARGF are available in your .rb file
<shevy> for ARGV, you can check whether it is ARGV.empty? or not
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<shevy> no idea about ARGF, I never seem to need to use it
kham has joined #ruby
drale2k has joined #ruby
Mattix has joined #ruby
<k610> shevy, ls . | my.rb
<injekt> k610: read it then check the contents
maxmanders has quit [Quit: Computer has gone to sleep.]
<shevy> k610 ah I see what you mean
<injekt> it'll read from stdin
<shevy> ARGF.read
<shevy> "166210_2013S.zip\n2012-06-06.pdf\n"
Xeago has joined #ruby
<shevy> k610 just tested it, should work fine
<shevy> ARGF.read should equal to "" if nothing was passed, it seems
<injekt> no
<injekt> it'll read from stdin
Rioji has joined #ruby
<k610> so i got to rescue the read if i don't pass anything ?
TheDuckling has joined #ruby
piotr__ has joined #ruby
piotr_ has quit [Ping timeout: 256 seconds]
<injekt> read wont raise, it'll read from stdin
<shevy> hehe
<Xeago> or it will read from whatever is mentioned in ARGV
<injekt> ^
<shevy> injekt, sometimes I think you have to repeat the same thing eight times :D
<injekt> shevy: it would appear so
sepp2k has joined #ruby
swingha has joined #ruby
Neomex has joined #ruby
<Xeago> btw, morning :)
Neomex has quit [Client Quit]
passbe has joined #ruby
hamed_r has quit [Quit: Leaving]
fcoury has quit [Ping timeout: 248 seconds]
pacbard has quit [Ping timeout: 248 seconds]
fcoury- has joined #ruby
jeffrey has joined #ruby
fcoury- is now known as fcoury
<shevy> hey Xeago
<shevy> it's 12:11 here already
<injekt> 11:11!
aytch has quit [Remote host closed the connection]
<shevy> injekt where are you?
<injekt> shevy: UK :)
Gate has quit [Ping timeout: 240 seconds]
<shevy> ah ok, that is not that far away from central europe
yannis has joined #ruby
<shevy> we kind of dominate #ruby here
pacbard has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
TheDuckling has quit [Ping timeout: 245 seconds]
<Xeago> yea, after noon here too
<Xeago> got kinda late last night
<Xeago> well, early
m8 has joined #ruby
jeffrey has quit [Client Quit]
a_a_g has quit [Quit: Leaving.]
yshh has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 245 seconds]
dsadsdasd has joined #ruby
dqminh has joined #ruby
Gate has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
vlad_starkov has joined #ruby
goganchic has quit []
vlad_starkov has quit [Remote host closed the connection]
zigomir has quit [Quit: zigomir]
dsadsdasd has quit [Quit: Leaving.]
swex has joined #ruby
qohelet_ has quit [Quit: qohelet_]
kham has left #ruby [#ruby]
banisterfiend has quit [Remote host closed the connection]
perun_ has joined #ruby
banisterfiend has joined #ruby
Pixel_Away is now known as PixelCrumbs
niklasb has joined #ruby
slainer68 has joined #ruby
sonda has joined #ruby
banisterfiend has quit [Ping timeout: 256 seconds]
<k610> how can i share an object instance system wide
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
My_Hearing is now known as Mon_Ouie
yacks has quit [Read error: Connection reset by peer]
<k610> xmpp4r bugs out when creating - and recreating a client many times in a short delay
<k610> so i wanted to create the client once and call it from anywhere
sheerun has quit [Read error: Connection reset by peer]
<k610> drb ?
oponder has joined #ruby
<shevy> k610 hmmm
<shevy> k610 one simple solution may be to just create a file, like a yaml file
<shevy> :D
elaptics`away is now known as elaptics
<shevy> distributed ruby if you need to sync things
<shevy> require "drb"
<shevy> DRb.start_service
<shevy> a = DRbObject.new(nil, "druby://localhost:9000")
<shevy> somehow, I hate the API ...
baba has quit [Quit: WeeChat 0.4.0]
davetherat has quit [Remote host closed the connection]
sheerun has joined #ruby
davetherat has joined #ruby
lewix has joined #ruby
perun_ has quit [Quit: Leaving]
grzywacz has joined #ruby
lewix has quit [Remote host closed the connection]
ParanoidSP has joined #ruby
anderse has joined #ruby
dqminh has quit [Remote host closed the connection]
ParanoidSP has quit [Client Quit]
ParanoidSP has joined #ruby
<xll11> Guys
<xll11> How should I approach making GUI's in ruby?
danneu has joined #ruby
gristus has quit []
* Hanmac uses rwx for GUI on ruby
netto has joined #ruby
<xll11> that's the things that scuks about those gems
<xll11> so much variety :p
emmanuelux has joined #ruby
banisterfiend has joined #ruby
skattyadz has joined #ruby
chandankumar has quit [Ping timeout: 252 seconds]
swingha has quit [Ping timeout: 240 seconds]
chandankumar has joined #ruby
danneu has quit [Ping timeout: 264 seconds]
yacks has joined #ruby
akashj87 has quit [Read error: Connection reset by peer]
brennanMKE has quit [Remote host closed the connection]
akashj87 has joined #ruby
buibex has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
banisterfiend has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
PixelCrumbs has quit [Remote host closed the connection]
kristofers has joined #ruby
PixelCrumbs has joined #ruby
freeayu has joined #ruby
casheew has quit [Read error: Connection reset by peer]
PixelCrumbs has quit [Remote host closed the connection]
hmsimha has quit [Quit: Leaving]
PixelCrumbs has joined #ruby
swingha has joined #ruby
<xll11> Hanmac any major disadvantages to using rwx over others?
casheew has joined #ruby
<Hanmac> xll11 its not finish yet
netto has quit [Quit: netto]
kofno has joined #ruby
banisterfiend has joined #ruby
fire has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
Rioji has quit [Remote host closed the connection]
PixelCrumbs has quit [Remote host closed the connection]
banisterfiend has joined #ruby
PixelCrumbs has joined #ruby
vlad_starkov has joined #ruby
<shevy> and it never will!
<shevy> :D
<shevy> and even if it would, it would lack docs ;P
<shevy> Hanmac you should write a fancy website for it
<Politoed> what's a rwx
<xll11> What you think about SHOES?
<Politoed> read write execute?
timonv has joined #ruby
Andromeda has quit [Remote host closed the connection]
<Hanmac> Politoed: its an wxRuby respawn
yannis has quit [Read error: Connection reset by peer]
yannis has joined #ruby
sven_ has joined #ruby
<Hanmac> shevy the last week i was writing for wx itself , but today i write on my engine again
yannis has quit [Read error: Connection reset by peer]
sven_ has quit [Client Quit]
yannis has joined #ruby
<xll11> Hanmac, can you point me to a place I can start with rwx?
<xll11> oh, you made it
<xll11> sweet
<xll11> gemify it!
<Hanmac> i will gem it when i have the time for that :/
guest_user has quit [Remote host closed the connection]
hmarr has joined #ruby
akam-it has quit [Ping timeout: 276 seconds]
hmarr has quit [Client Quit]
Spooner has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
PixelCrumbs has quit [Ping timeout: 246 seconds]
wallclockbuilder has joined #ruby
yshh has joined #ruby
anderse has quit [Quit: anderse]
jpfuentes2 has joined #ruby
chandankumar has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
brennanMKE has joined #ruby
maxmanders has joined #ruby
maxmanders has quit [Client Quit]
yshh has quit [Ping timeout: 258 seconds]
<shevy> haha
<shevy> ;)
akashj87 has quit [Ping timeout: 256 seconds]
netto has joined #ruby
<shevy> gem install rwx
<shevy> ERROR: Could not find a valid gem 'rwx' (>= 0) in any repository
<shevy> ^^^ bug°
<Hanmac> shevy i know, it is not finish, you can fork it and make a pull request
<shevy> man, all my projects are permanently work-in-progress
<shevy> right now, I still collect all colour-related things into a new gem
<shevy> UnifiedColours
banisterfiend has quit [Remote host closed the connection]
PixelCrumbs has joined #ruby
<Hanmac> shevy: its same for me, but today i do not work at rwx, because i rewrote my script engine again (removing the cs_ methods)
yannis_ has joined #ruby
yannis has quit [Read error: Connection reset by peer]
buibex has joined #ruby
shock_one has joined #ruby
<oponder> nothing is ever done.. is it?
brennanMKE has quit [Ping timeout: 276 seconds]
<oponder> philosoraptor.jpg
Loaft has quit [Ping timeout: 276 seconds]
dhruvasagar has quit [Read error: Operation timed out]
akashj87 has joined #ruby
yacks has quit [Read error: Connection reset by peer]
yannis_ is now known as yannis
drale2k has quit [Quit: Leaving...]
dhruvasagar has joined #ruby
postmodern has quit [Quit: Leaving]
Loaft has joined #ruby
timonv has quit [Remote host closed the connection]
kf8a has joined #ruby
danslo has joined #ruby
hiyakashi has joined #ruby
PixelCrumbs has quit [Remote host closed the connection]
maxmanders has joined #ruby
PixelCrumbs has joined #ruby
lewix has joined #ruby
swingha has quit [Ping timeout: 255 seconds]
mengu has joined #ruby
chandankumar has joined #ruby
lewix_ has joined #ruby
banisterfiend has joined #ruby
monkegjinni has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
BSaboia has joined #ruby
lewix has quit [Ping timeout: 256 seconds]
akashj87__ has joined #ruby
skattyadz has quit [Quit: skattyadz]
akashj87 has quit [Read error: Operation timed out]
PixelCrumbs has quit [Quit: TEst]
PixelCrumbs has joined #ruby
yacks has joined #ruby
Quebert has joined #ruby
dsadsdasd has joined #ruby
lewix_ has quit [Remote host closed the connection]
dqminh has joined #ruby
heftig has joined #ruby
lewix has joined #ruby
banisterfiend has quit [Remote host closed the connection]
lewix_ has joined #ruby
PixelCrumbs has quit [Remote host closed the connection]
PixelCrumbs has joined #ruby
wallclockbuilder has quit [Remote host closed the connection]
wallclockbuilder has joined #ruby
dqminh has quit [Ping timeout: 276 seconds]
lewix has quit [Ping timeout: 276 seconds]
skattyadz has joined #ruby
buibex has quit [Remote host closed the connection]
drale2k has joined #ruby
adambeynon has joined #ruby
x0F has joined #ruby
tenmilestereo has joined #ruby
erry_ has joined #ruby
atno has joined #ruby
drale2k_ has joined #ruby
drale2k has quit [Read error: Connection reset by peer]
chessguy has joined #ruby
<xll11> @button = Wx::Button.new(@frame, 1, "TheButton",nil, Wx::Size.new(1,1))
<xll11> any idea why this still gives me a huge button
erry_ is now known as erry
Rioji has joined #ruby
<Spooner> xll11, Depends what "huge" means. Presumably there is a minimum size.
BizarreCake has joined #ruby
<xll11> huge = whole frame size
Elhu has joined #ruby
razibog has joined #ruby
lewix_ has quit [Remote host closed the connection]
PixelCrumbs has quit [Remote host closed the connection]
<visof> hi
motto has joined #ruby
<Spooner> Because, by default the button is set to fill. I'd recommend using the named parameters version of that method so it uses defaults properly.
<visof> i have solved p18 from project euler http://projecteuler.net/problem=18 , using this code http://pastie.org/7339889
m8 has quit [Ping timeout: 245 seconds]
<visof> i don't know why it gives the wrong answer , maybe i have misunderstood it
<visof> ?
<Spooner> xll11, Button.new(@frame, 1, size: Size.new(1,1))
fmendez has joined #ruby
thernull has joined #ruby
k610 has quit [Ping timeout: 258 seconds]
pskosinski has joined #ruby
<xll11> still no go
<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).
<xll11> Hanmac maybe you could shed some light?
justsee has quit [Ping timeout: 264 seconds]
<Mon_Ouie> A small example: https://gist.github.com/Mon-Ouie/5325946
<Hanmac> i dont use the wxRuby gem
<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]
huttan has quit [Ping timeout: 256 seconds]
<chessguy> is there some easy way to change this spec to pass? https://gist.github.com/arwagner/5289895
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?
m8 has joined #ruby
<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.
mneorr has joined #ruby
<chessguy> speaking of mocking/stubbing, any suggestions for my gist? :) https://gist.github.com/arwagner/5289895
mercwithamouth has joined #ruby
<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.
sambio has joined #ruby
<alex88> hi guys, I'm trying to understand the last of these questions http://rubymonk.com/learning/books/1-ruby-primer/chapters/10-hashes-in-ruby/lessons/47-hashes-in-and-out
casheew has joined #ruby
<alex88> the solution is to use [a,b,c] but before I've tried a + b + c but it was wrong.. isn't a + b + c the merge of those array as [a,b,c] is?
maxmanders has quit [Quit: Computer has gone to sleep.]
swex has quit [Remote host closed the connection]
<shock_one> Spooner, I don't understand why to mock it? Can't we just test Terminal#session_id?
aytch has joined #ruby
danneu has quit [Ping timeout: 264 seconds]
netto has quit [Client Quit]
<chessguy> Spooner: i assume you mean with(anything), and that doesn't work
yshh has joined #ruby
sambio has quit [Client Quit]
<Mon_Ouie> alex88: no, a + b + c concatenates arrays
<Spooner> shock_one, As I said, if you don't mock it, the method could just always use "abc12" which wouldn't be correct.
<Mon_Ouie> [a, b, c] will create an array that contains your three arrays
swex has joined #ruby
<skroon> shock_one: that's right indeed, however, I thought that not mocking third party classes was more of a design thing
<Spooner> alex88, Or [a] + [b] + [c] #=> [a, b, c]
<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
shock_one has quit [Ping timeout: 276 seconds]
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<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> chessguy, Sorry, while since I've mocked in rspec: https://gist.github.com/Spooner/5326055
Morkel has joined #ruby
<alex88> so [] are used in constructors and () in functions?
fmendez has quit [Quit: fmendez]
mercwithamouth has quit [Ping timeout: 256 seconds]
adkron has joined #ruby
<Mon_Ouie> It's kind of like in php. array[3] is to access the 3rd element of the array.
<Hanmac> alex88 nope, only Hash[] is the different
<Spooner> chessguy, Note that you call #should_receive on the mock object, not on #mock (which is a method to create an object)
<alex88> Hanmac: so other objects that needs arguments for construct uses ()?
<chessguy> Spooner: right, that was a typo. but i want it to pass whether this line is there or not: obj.bar(1)
<Mon_Ouie> Except Ruby makes it more general and object[something] calls the #[] method on object with something as an argument
<alex88> Mon_Ouie: yeah in that case right..
<Mon_Ouie> In your case object = Hash
<linduxed> is there a difference between "# -*- encoding : utf-8 -*-" and "# encoding: utf-8" ?
kofno has quit [Remote host closed the connection]
<alex88> ok I think I've got that.. thanks alot!
<Mon_Ouie> linduxed: No, not as far as Ruby is concerned.
<linduxed> Mon_Ouie: ok thx
himsin has joined #ruby
<Mon_Ouie> I think it's supported just because Emacs inserts (and parses) the former automatically ;)
<chessguy> Spooner: in your version, it fails if that line isn't there
himsin is now known as guest_user
shevy has joined #ruby
<Spooner> chessguy, OK, you didn't make that clear :) def foo1 obj
<Spooner> obj.bar(1)
<Spooner> def foo2 obj
<Spooner> end
<Spooner> obj.bar(2)
<Spooner> obj.bar(2)
<Spooner> end
<Spooner>
<Spooner> describe "foo1" do
<Spooner> it "calls bar on obj" do
<Spooner> obj = mock
<Spooner>
<Spooner> obj.should_receive(:bar).with(2)
<Spooner> obj.should_receive(:bar).with(anything()).any_number_of_times
<Spooner>
<Spooner> foo1 obj
<Spooner> end
<Spooner> end
<Spooner> describe "foo2" do
<Spooner> it "calls bar on obj" do
<Spooner> obj = mock
<Spooner>
<Spooner> obj.should_receive(:bar).with(2)
<Spooner> obj.should_receive(:bar).with(anything()).any_number_of_times
netto has joined #ruby
<Spooner>
<Spooner> foo2 obj
<Hanmac> Spooner :( why didnt you use gist or something like that?
<Spooner> end
<Spooner> end
jonathanwallace1 has joined #ruby
<Spooner> SORRY!
<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]
<becom33_> why'd I get undefined method `<<' for nil:NilClass in http://pastebin.com/ZNF5bJSF
huttan has quit [Read error: Operation timed out]
Davey has joined #ruby
<Spooner> becom33_, Because the class isn't initialized via #initialize (it is a class, not an instance).
dqminh has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
<becom33_> Spooner, got it :)
<Spooner> becom33_, Why not just use instances?
<becom33_> Spooner, what do u mean ?
<becom33_> Sample.instance.moo ?
io_syl has quit [Quit: Computer has gone to sleep.]
<Spooner> You are using the raw class. Why not instantiate it (so you don't use "def self.") and use .new for it?
<xll11> Anyone dances a bit with wxRuby?
<becom33_> hmm
<Spooner> becom33_, Or you can use "def self.sample; @sample ||= []; end" to avoid the problem you are having.
Rioji has joined #ruby
<becom33_> Spooner, thanks man
<bakingbread> becom33_: you don't need it anyway. read about attr_accessor
<Spooner> bakingbread, attr_accessor doesn't initialize the value.
huttan has joined #ruby
<Spooner> bakingbread, If you used attr_accessor, then you'd also need to do self.sample = [] inside the class definition.
<bakingbread> Spooner: yeah, I was talking about moo_out specifically
TheDuckling has joined #ruby
monkegjinni has joined #ruby
<bakingbread> Spooner: ..and moo optionally
banisterfiend has joined #ruby
<Spooner> bakingbread, Except that prints out the @sample (hard to guess what the real use case is, based on this obvious abstract test class).
dqminh has joined #ruby
dqminh has quit [Remote host closed the connection]
mhn23 has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
kennyvb has quit [Quit: ZNC - http://znc.in]
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.
julio has joined #ruby
TheDuckling has quit [Quit: Linkinus - http://linkinus.com]
<nycjv321> \exit
* nycjv321 #facepalms
nycjv321 has quit [Quit: leaving]
tish has quit [Quit: Leaving.]
Sicp has joined #ruby
wsterling has joined #ruby
Davey has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
<xll11> Where can I find a bank of example code where wxRuby was used
baroquebobcat has quit [Quit: baroquebobcat]
nobuoka has joined #ruby
oponder has quit [Remote host closed the connection]
kennyvb has quit [Quit: ZNC - http://znc.in]
zph has joined #ruby
kennyvb has joined #ruby
sheerun has quit []
wsterling has quit [Remote host closed the connection]
razieliyo has joined #ruby
<razieliyo> hi
Davey has quit [Quit: Computer has gone to sleep.]
<razieliyo> are you used to <tab> 'when' keyword after 'case' line?
monkegjinni has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
<xll11> trying to understand hwo to grab text from a TextCtrl field
<xll11> (wxRuby
thatRD has joined #ruby
monkegjinni has joined #ruby
rdev is now known as rdev5
DarKOoL has joined #ruby
DarKOoL has left #ruby [#ruby]
thatRD has quit [Quit: thatRD]
Davey has joined #ruby
uris has joined #ruby
sandGorgon has quit [Ping timeout: 252 seconds]
Elhu has joined #ruby
astegman has left #ruby ["Out of time"]
<bean> xll11, TextCtrl#get_value
<bean> ?
kofno has joined #ruby
generali_ has joined #ruby
adkron has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
skroon_ has joined #ruby
zigomir has quit [Quit: zigomir]
danneu has quit [Ping timeout: 256 seconds]
skroon has quit [Read error: Operation timed out]
danneu has joined #ruby
kofno has quit [Ping timeout: 258 seconds]
kuzushi has joined #ruby
emocakes has joined #ruby
fmendez has joined #ruby
sandGorgon has joined #ruby
skroon_ has quit [Ping timeout: 260 seconds]
uris has quit [Read error: Operation timed out]
tommyvyo has quit [Quit:]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
rdev5 is now known as rdev5|away
Elhu has quit [Quit: Computer has gone to sleep.]
verysoftoiletppr has joined #ruby
sayan has quit [Read error: Connection reset by peer]
psyprus has quit [Ping timeout: 258 seconds]
danneu has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
psyprus has joined #ruby
mhn23 has quit [Quit: Goodbye.]
zmike has joined #ruby
drago777 has joined #ruby
nateberkopec has joined #ruby
swingha has joined #ruby
chrisnicola has joined #ruby
arya has quit [Ping timeout: 248 seconds]
dmiller1 has joined #ruby
RagingDave has joined #ruby
fmendez has quit [Quit: fmendez]
graeme has joined #ruby
mhn23 has joined #ruby
uris has joined #ruby
notbrent has quit [Ping timeout: 248 seconds]
geggam has joined #ruby
pythogorian has joined #ruby
arya has joined #ruby
<pythogorian> have anyone played with em-websocket lately?
parus_ has quit [Ping timeout: 252 seconds]
parus has joined #ruby
sandGorgon has quit [Ping timeout: 245 seconds]
ryanh has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ryanh has quit [Client Quit]
freeayu has quit [Remote host closed the connection]
tubbo`work has left #ruby [#ruby]
<xll11> bean
<xll11> thanks
<bean> np, you should probably read docs before you ask questions
johnmilton has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
johnmilton has joined #ruby
<xll11> I'm really new to this but I did try to find it in the docs
johnmilton has quit [Remote host closed the connection]
<xll11> Thanks, will try harder next time :)
swingha has quit [Ping timeout: 252 seconds]
<bean> np
johnmilton has joined #ruby
<xll11> yeah, I was stuck at the event_handling
<xll11> thought I'd find the answer there :D
Skofo has joined #ruby
danneu has joined #ruby
<Hanmac> the normal event system of wxRuby is shitty
yshh has quit [Remote host closed the connection]
memristor has joined #ruby
graeme has quit [Quit: graeme]
dmiller2 has joined #ruby
tjbiddle has joined #ruby
workmad3 has joined #ruby
dmiller1 has quit [Ping timeout: 246 seconds]
fmendez has joined #ruby
julio has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 248 seconds]
Kudos has quit [Ping timeout: 252 seconds]
hiroyuki has quit [Remote host closed the connection]
hiroyuki has joined #ruby
sandGorgon has joined #ruby
Kudos has joined #ruby
hiroyuki_ has joined #ruby
LennyLinux has joined #ruby
arya_ has joined #ruby
perlsyntax has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
joshwines_ has quit [Ping timeout: 264 seconds]
rickruby has joined #ruby
hiroyuki has quit [Ping timeout: 256 seconds]
k610 has joined #ruby
eldariof has joined #ruby
monkegjinni has quit [Remote host closed the connection]
tootooroo has joined #ruby
rickmasta has joined #ruby
<alex88> hi guys, I'm trying to install ruby-debug-ide on ruby 2.0.0p0 but I get http://pastie.org/7341773
<alex88> someone already solved this?
Vainoharhainen has joined #ruby
breakingthings has joined #ruby
emocakes has quit [Quit: emocakes]
becom33_ has quit [Quit: Leaving]
dagnachew has joined #ruby
<ariedler> alex88: probably doesn't work for 2.0.0 (as in rebuy-debug-ide doesn't)
<alex88> ariedler: yeah I'm trying to revert back to 1.9.3 on mac homebrew
<ariedler> alex88: are you using rvm or rbenc?
<alex88> ariedler: none of them, just brew install ruby
Spooner has quit [Remote host closed the connection]
notbrent has joined #ruby
mhn23 has quit [Quit: Goodbye.]
Beoran_ has joined #ruby
Rioji has quit [Remote host closed the connection]
<ariedler> alex88: I would recommend using rbenv or rvm for long-term so you can have multiple versions of ruby + gemsets installed
huttan has quit [Ping timeout: 264 seconds]
<alex88> yeah could be an option too
Morkel has quit [Ping timeout: 246 seconds]
Spooner has joined #ruby
nightfalcon has quit [Ping timeout: 240 seconds]
soulofpeace has quit [Ping timeout: 252 seconds]
Beoran__ has quit [Ping timeout: 256 seconds]
<ariedler> alex88: I guess it depends on what you are doing with ruby :)
huttan has joined #ruby
tomzx_mac has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
<alex88> ariedler: ok thanks for that, I've checked out older version just for now, tomorrow I'll switch to rbenv :)
<alex88> thanks alot
arya_ has quit [Ping timeout: 248 seconds]
ToApolytoXaos has quit [Quit: Leaving]
hiroyuki_ has quit [Ping timeout: 255 seconds]
artofraw has quit [Ping timeout: 256 seconds]
hiroyuki has joined #ruby
arya_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
kofno has joined #ruby
d2dchat has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
soulofpeace has joined #ruby
Morkel has joined #ruby
artofraw has joined #ruby
blaxter_ has joined #ruby
newUser1234 has joined #ruby
Vainoharhainen has quit [Ping timeout: 245 seconds]
blaxter_ is now known as blaxter
tenmilestereo has quit [Quit: Leaving]
adkron has quit [Ping timeout: 257 seconds]
newUser1234 has quit [Remote host closed the connection]
dagnachew has quit [Quit: WeeChat 0.4.0]
kofno has quit [Ping timeout: 256 seconds]
ToApolytoXaos has joined #ruby
dagnachew has joined #ruby
newUser1234 has joined #ruby
mando has joined #ruby
generali_ has quit [Remote host closed the connection]
dmiller has joined #ruby
dmiller has quit [Client Quit]
pskosinski has joined #ruby
generalissimo has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
dagnachew has quit [Client Quit]
chrisnicola has quit [Quit: This computer has gone to sleep]
memristor has quit [Read error: Connection reset by peer]
pitzips has joined #ruby
lunarjar has quit [Ping timeout: 264 seconds]
marr has joined #ruby
hogeo has quit [Remote host closed the connection]
mando has quit [Remote host closed the connection]
tootooroo has quit [Quit: b(not so)rb]
digifiv5e has quit [Ping timeout: 258 seconds]
nightfalcon has joined #ruby
chrisnicola has joined #ruby
huoxito has joined #ruby
rdev5|away has quit [Quit: Leaving...]
digifiv5e has joined #ruby
digifiv5e is now known as Guest28050
d2dchat has quit [Remote host closed the connection]
dagnachew has joined #ruby
dagnachew has quit [Client Quit]
danman has quit [Quit: danman]
lunarjar has joined #ruby
zph has joined #ruby
adkron has joined #ruby
mockra has joined #ruby
eka has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
tootooroo has joined #ruby
wallclockbuilder has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
josh____ has joined #ruby
F1skr has joined #ruby
slocate has joined #ruby
josh____ has left #ruby [#ruby]
dagnachew has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
rickmasta has quit [Quit: Leaving...]
x0F has joined #ruby
arya has joined #ruby
vlad_starkov 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.]
mneorr has quit [Remote host closed the connection]
devdazed has quit [Ping timeout: 258 seconds]
rickmasta has joined #ruby
Heero has joined #ruby
Burgestrand has joined #ruby
devdazed has joined #ruby
mneorr has joined #ruby
maycon has quit [Ping timeout: 258 seconds]
adambeynon has joined #ruby
io_syl has joined #ruby
rickruby has quit [Remote host closed the connection]
lkba has joined #ruby
rickruby has joined #ruby
wallerdev has joined #ruby
vlad_starkov has joined #ruby
Bofu2U has quit [Ping timeout: 276 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
jgrevich has joined #ruby
dagnachew has quit [Quit: WeeChat 0.4.0]
dagnachew has joined #ruby
yshh has joined #ruby
akam-it has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
senayar has quit [Ping timeout: 258 seconds]
zph has quit [Quit: Computer has gone to sleep.]
a_a_g has joined #ruby
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
<MrZYX> http://rubydoc.info for the online version
kinginky has quit [Ping timeout: 240 seconds]
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
<nomike> /usr/local/lib/cligu/ruby/1.9.1/gems/ruby-ldap-0.9.12/lib/ldap.so: [BUG] Segmentation fault
<nomike> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
<MrZYX> afaik
<MrZYX> hm guess your libldap version changed in some incompatible way then
<nomike> maybe a bug in libldap. But how could I debug this?
kofno has quit [Ping timeout: 256 seconds]
<MrZYX> try gem uninstall ruby-ldap; gem install ruby-ldap
<MrZYX> oh wait
brian_petersen has joined #ruby
<nomike> oh...
<MrZYX> the path indicates a 1.9 ruby but you're actually using 1.8?
<MrZYX> that's why then
pythogorian has quit [Ping timeout: 240 seconds]
danneu has joined #ruby
<nomike> I just saw it. Also it is using some custom built ldap lib and the system-wide lib isn't even installed (gem, or dpkg)
Pochacco has joined #ruby
banjara has joined #ruby
yankeefan04 has joined #ruby
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
chrishough_ has joined #ruby
beneggett has joined #ruby
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
<nomike> ?
benlieb has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
Heero has quit [Ping timeout: 276 seconds]
<DesertFoxATX> o.O
<DesertFoxATX> Just add it to the output
<DesertFoxATX> ( timestamp + "blah" + someothervar
<DesertFoxATX> )
newUser1234 has joined #ruby
maletor has joined #ruby
wedgeV has quit [Read error: Operation timed out]
<DesertFoxATX> erm nvm you mean through that gem, http://www.ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html
benlieb has quit [Client Quit]
<DesertFoxATX> "logger.formatter = proc { |severity, datetime, progname, msg|
indyrl has quit [Quit: Leaving.]
<DesertFoxATX> So in other words, create a object. setup your format, then you call .info on your logger object
huttan has quit [Remote host closed the connection]
sonda has quit [Remote host closed the connection]
skattyadz has joined #ruby
dmerrick has joined #ruby
zeroeth has joined #ruby
etcetera has joined #ruby
aapzak_ has quit [Ping timeout: 245 seconds]
pythogorian has joined #ruby
LennyLinux has quit [Read error: Connection reset by peer]
jdunck has joined #ruby
LennyLinux has joined #ruby
aapzak has joined #ruby
pythogorian has quit [Client Quit]
iphands_ has joined #ruby
dmerrick has quit [Ping timeout: 256 seconds]
uris has quit [Remote host closed the connection]
LennyLinux has quit [Read error: Connection reset by peer]
LennyLinux has joined #ruby
<banisterfiend> DesertFoxATX: an object* ;)
<DesertFoxATX> I blame pot.
<DesertFoxATX> And lack of coffee.
aapzak has quit [Ping timeout: 256 seconds]
ph^ has joined #ruby
Heero has joined #ruby
sheerun has quit []
atno has quit [Ping timeout: 276 seconds]
zph has joined #ruby
BSaboia has quit [Ping timeout: 255 seconds]
m8 has joined #ruby
aapzak has joined #ruby
etcetera has quit []
<Hanmac> banisterfiend: check this out: http://www.youtube.com/watch?v=p_HxKReSSlA
adkron has joined #ruby
motto has quit [Ping timeout: 256 seconds]
tenmilestereo has joined #ruby
wedgeV has joined #ruby
memristor has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
Morkel_ has joined #ruby
yshh has joined #ruby
jgrevich has quit [Read error: Operation timed out]
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
Elhu has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
yshh has quit [Ping timeout: 256 seconds]
jgrevich has joined #ruby
cwd1 has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
chandankumar has quit [Quit: Leaving]
jgrevich has joined #ruby
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 shouldn't need a require_relative
jpfuentes2 has quit [Quit: Textual IRC Client: www.textualapp.com]
<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?
emergion has joined #ruby
tommyvyo has joined #ruby
adkron has joined #ruby
maletor has joined #ruby
emergion has quit [Client Quit]
<dreinull> k, seems like this is a stupid idea and others have hacked around this too: http://stackoverflow.com/questions/1485068/ruby-how-to-evalulate-multiple-methods-per-send-command
banjara has quit [Quit: Leaving.]
cobragoat has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
<waxjar> what kind of objects does it return?
thone has joined #ruby
realDAB has quit [Quit: realDAB]
thone_ has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
ariedler has joined #ruby
slainer68 has quit [Remote host closed the connection]
keymone_ has joined #ruby
zeroeth has joined #ruby
vlad_starkov has joined #ruby
keymone has quit [Ping timeout: 258 seconds]
keymone_ is now known as keymone
nezumi has quit [Ping timeout: 276 seconds]
cjk101010_ has quit [Ping timeout: 245 seconds]
banister_ has quit [Remote host closed the connection]
cjk101010 has joined #ruby
fschuindt has joined #ruby
pitzips has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
mneorr has joined #ruby
ariedler has quit [Ping timeout: 256 seconds]
zacts has joined #ruby
answer_42 has quit [Read error: Operation timed out]
mengu has quit [Quit: Konversation terminated!]
vlad_starkov has quit [Ping timeout: 245 seconds]
sandGorgon has joined #ruby
Heero has quit [Ping timeout: 276 seconds]
altivec has quit [Quit: Textual IRC Client: www.textualapp.com]
enebo has joined #ruby
kinginky has quit [Quit: Leaving]
angusiguess has joined #ruby
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]
adkron has joined #ruby
shortcutmedia has quit [Quit: Leaving]
<Matip> >> [{foo: 123}, {foo: 456}].map {|a| a[:bar] = a[:foo]+1; a}
<eval-in> Matip => [{:foo=>123, :bar=>124}, {:foo=>456, :bar=>457}] (http://eval.in/15233)
shortcutmedia has joined #ruby
<Matip> is there any way to avoid having to add "a" at the end?
<Matip> in case you want to modify a hash and add new elements based on what it already has
postmodern has joined #ruby
d2dchat has joined #ruby
Andromeda has quit [Ping timeout: 248 seconds]
tommyvyo has quit [Quit:]
codecop has quit [Remote host closed the connection]
Davey has joined #ruby
beneggett has joined #ruby
ThePicard is now known as numberone
numberone is now known as ThePicard
BSaboia has joined #ruby
supki has joined #ruby
s0ber_ has joined #ruby
rickruby has joined #ruby
s0ber has quit [Ping timeout: 240 seconds]
s0ber_ is now known as s0ber
<rien> Matip: [{:foo => 123}, {:foo => 456}].map {|a| a.merge!(:bar => a[:foo] + 1) }
<rien> >> [{:foo => 123}, {:foo => 456}].map {|a| a.merge!(:bar => a[:foo] + 1) }
<eval-in> rien => [{:foo=>123, :bar=>124}, {:foo=>456, :bar=>457}] (http://eval.in/15234)
jonahR has joined #ruby
alanp_ has joined #ruby
<Matip> ah, much nicer
jarin has quit [Quit: WeeChat 0.4.0]
<rien> Matip: how did you ever think of putting the a in the end there? that's interesting
<Matip> the problem is that otherwise it doesn't work
<Matip> because it uses the result of the assigment as a replacement for the value in the hash
<rien> yeah I saw that, but I would never think of adding "; a"
whowantstolivef1 has quit [Ping timeout: 256 seconds]
<Matip> xD
<rien> good thinking :)
Proshot has joined #ruby
newUser1234 has joined #ruby
idkazuma has joined #ruby
rien has quit []
niklasb has joined #ruby
ntzrmtthihu777 has quit [Ping timeout: 252 seconds]
rickmasta has joined #ruby
alanp has quit [Ping timeout: 255 seconds]
spider-mario has quit [Read error: Connection reset by peer]
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
brianpWins has quit [Quit: brianpWins]
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
Ontolog has joined #ruby
bricker`LA has joined #ruby
PixelCrumbs has joined #ruby
mengu has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
ntzrmtthihu777 has joined #ruby
A124 has quit [Quit: Leaving.]
newUser1234 has quit [Remote host closed the connection]
A124 has joined #ruby
tommyvyo has joined #ruby
kofno has joined #ruby
jacob__ has joined #ruby
<jacob__> is this an appropriate ruby channel to get assistance with code?
Gadgetoid has quit [Quit: ZNC - http://znc.sourceforge.net]
zacts has quit [Quit: leaving]
<PixelCrumbs> Yes, i'd say so.
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]
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
arya has quit [Ping timeout: 248 seconds]
<jacob__> I still have not found the correct form of String or File to use for that case so I will just have to do some more digging
Matt has joined #ruby
Matt is now known as Guest91634
v0n has quit [Read error: Connection reset by peer]
<canton7> jacob__, found File.read yet?
nateberkopec has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
PixelCrumbs has quit [Remote host closed the connection]
mva3212 has quit [Quit: Leaving]
yannis has joined #ruby
Guest91634 has quit [Ping timeout: 246 seconds]
<jacob__> I thought I read something about that. but it seems that you have to specify a specific file path not just a path to a text file in general
chrisnicola has quit [Quit: This computer has gone to sleep]
yannis has quit [Client Quit]
<canton7> you pass it the path to the file to read
Andromeda has joined #ruby
<canton7> it doesn't just work for one single file ever :P
bricker`LA has quit [Ping timeout: 264 seconds]
mikalv has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Remote host closed the connection]
mikalv has joined #ruby
huoxito has quit [Quit: Leaving]
Andromeda has quit [Ping timeout: 255 seconds]
banister_ has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
chrisnicola has joined #ruby
BOY77X has joined #ruby
BOY77X has quit [K-Lined]
chrisnicola has quit [Client Quit]
wmoxam has quit [Ping timeout: 245 seconds]
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]
atno has quit [Ping timeout: 246 seconds]
tomsthumb has quit [Quit: Leaving.]