chris___ has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 252 seconds]
Astralum has quit [Ping timeout: 255 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
tspike has quit [Ping timeout: 272 seconds]
bradhe has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
c0rn has joined #ruby
huoxito has joined #ruby
BSaboia has quit [Ping timeout: 258 seconds]
ziggles has joined #ruby
d2dchat has quit [Remote host closed the connection]
ariedler has joined #ruby
<ziggles>
Any suggestions for platform independent way of playing a .wav?
brunoro has joined #ruby
s2013_ has joined #ruby
arya has quit [Ping timeout: 268 seconds]
DonRichie has quit [Ping timeout: 256 seconds]
DonRichie has joined #ruby
idkazuma has quit [Remote host closed the connection]
marr has quit [Ping timeout: 268 seconds]
RonScagz has joined #ruby
brotatos has joined #ruby
ffranz has quit [Quit: Leaving]
wedgex has quit [Remote host closed the connection]
__alpaca_ has joined #ruby
DrCode has quit [Remote host closed the connection]
wedgex has joined #ruby
wedgex has quit [Remote host closed the connection]
mklappst_ has joined #ruby
slainer68 has joined #ruby
brotatos has quit [Client Quit]
SparkyFlary has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
<SparkyFlary>
what's the difference between radiant cms and locomotive cms?
c0rn has quit [Quit: Computer has gone to sleep.]
__alpaca_ has quit [Ping timeout: 256 seconds]
kapowaz has joined #ruby
nveselinov has quit [Read error: Connection reset by peer]
tylersmith has quit [Quit: tylersmith]
freerobby has joined #ruby
whowantstolivefo has quit [Ping timeout: 256 seconds]
wsterling has joined #ruby
<SparkyFlary>
I need a kitchen sink kind of thing
freeayu has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
Michae___ has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
mattbl has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
feedbackloop has quit [Ping timeout: 256 seconds]
timkohrumel has quit [Remote host closed the connection]
SparkyFlary has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
wsterling has quit [Ping timeout: 264 seconds]
mrsolo has quit [Quit: Leaving]
miso1337 has joined #ruby
danman has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
DrCode has joined #ruby
huoxito has quit [Quit: Leaving]
carlyle has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
xkickflip_ has joined #ruby
aedornm has quit [Remote host closed the connection]
xkickflip has quit [Ping timeout: 256 seconds]
xkickflip_ is now known as xkickflip
bklane has joined #ruby
xkickflip has quit [Client Quit]
bklane has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
tds has quit [Quit: tds]
vlad_starkov has quit [Ping timeout: 240 seconds]
backjlack has quit [Remote host closed the connection]
danman has quit [Quit: danman]
jaffe_ has joined #ruby
guitsaru has quit [Remote host closed the connection]
Guedes has quit [Read error: Connection reset by peer]
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Davey has joined #ruby
daniel_- has quit [Quit: WeeChat 0.4.0]
johnnyfuchs has quit [Ping timeout: 260 seconds]
jaffe_ has left #ruby [#ruby]
stkowski has quit [Quit: stkowski]
mootpointer has quit [Quit: Computer has gone to sleep.]
Elicro has joined #ruby
philcrissman has joined #ruby
freerobby has joined #ruby
<Elicro>
hey I am running a bit complex script and I want to know if in v2 it will run faster and if anyone has suggestions about making the script run faster. THANKs
tomsthumb has joined #ruby
tundrax has joined #ruby
fixl has joined #ruby
hogeo has joined #ruby
<Elicro>
LINK IN a sec
kofno has joined #ruby
dmiller has joined #ruby
aryatosh has joined #ruby
yacks has quit [Ping timeout: 276 seconds]
zastern has quit [Remote host closed the connection]
yacks has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
mercwithamouth has joined #ruby
GeissT has joined #ruby
idkazuma has joined #ruby
tomsthumb has quit [Quit: Leaving.]
mootpointer has joined #ruby
tomsthumb has joined #ruby
dmiller has quit [Remote host closed the connection]
twoism_ has quit [Remote host closed the connection]
Ontolog has quit [Remote host closed the connection]
backjlack has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
mmozuras has joined #ruby
celinedior has joined #ruby
miso1337 has quit [Quit: afk]
nomenkun has joined #ruby
alup has joined #ruby
kreantos has joined #ruby
__alpaca_ has quit [Ping timeout: 252 seconds]
gungor_ has joined #ruby
mmozuras has quit [Ping timeout: 264 seconds]
Spooner has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
ritek has quit [Quit: leaving]
gungor has quit [Ping timeout: 258 seconds]
psyprus has joined #ruby
vlad_starkov has joined #ruby
__alpaca_ has joined #ruby
mklappst_ has quit [Read error: Connection reset by peer]
mklappst_ has joined #ruby
__alpaca_ has quit [Ping timeout: 252 seconds]
arturaz has joined #ruby
LennyLinux has joined #ruby
miso1337 has joined #ruby
saschagehlich has joined #ruby
Burgestrand has quit [Ping timeout: 258 seconds]
siekoku_ has quit [Remote host closed the connection]
aryatosh has joined #ruby
unflores has joined #ruby
aryatosh_ has joined #ruby
Space_ has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
Space_ has joined #ruby
casheew has joined #ruby
symme7ry has joined #ruby
aryatosh has quit [Ping timeout: 268 seconds]
aryatosh_ has quit [Ping timeout: 240 seconds]
aryatosh has joined #ruby
johnkary has quit [Quit: @johnkary]
Beoran__ has joined #ruby
mockra has quit [Remote host closed the connection]
mklappst_ has quit [Remote host closed the connection]
aryatosh_ has joined #ruby
mockra has joined #ruby
nomenkun has quit [Remote host closed the connection]
LennyLinux has quit [Remote host closed the connection]
celinedior has quit [Ping timeout: 256 seconds]
miso1337 has quit [Read error: Connection reset by peer]
Beoran_ has quit [Ping timeout: 255 seconds]
aryatosh has quit [Ping timeout: 258 seconds]
aryatosh has joined #ruby
miso1337 has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
brunoro has joined #ruby
nickchow has joined #ruby
ph^ has joined #ruby
Morkel has joined #ruby
aryatosh_ has quit [Ping timeout: 268 seconds]
aryatosh has quit [Ping timeout: 256 seconds]
aryatosh has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
elaptics`away is now known as elaptics
ehaliewicz has quit [Ping timeout: 240 seconds]
theRoUS_ has quit [Remote host closed the connection]
ritek has joined #ruby
miso1337 has quit [Ping timeout: 256 seconds]
CalebMingle has quit [Quit: CalebMingle]
workmad3 has joined #ruby
clocKwize has quit [Quit: clocKwize]
aryatosh_ has joined #ruby
<Gate>
Anyone else using rabl experience a jump in rendering times when upgrading to ruby 2.0?
celinedior has joined #ruby
dankest has quit [Quit: Leaving...]
r0bglees0n has quit [Ping timeout: 260 seconds]
ferdev has quit [Quit: ferdev]
aryatosh has quit [Ping timeout: 260 seconds]
miso1337 has joined #ruby
vikhyat has quit [Remote host closed the connection]
clocKwize has joined #ruby
troessner has joined #ruby
ksinkar has quit [Ping timeout: 240 seconds]
ksinkar has joined #ruby
marr has joined #ruby
marr has quit [Excess Flood]
johchri has joined #ruby
marr has joined #ruby
marr has quit [Excess Flood]
marr has joined #ruby
marr has quit [Excess Flood]
kristofers has joined #ruby
ashka has joined #ruby
ashka has quit [Excess Flood]
marr has joined #ruby
marr has quit [Excess Flood]
aryatosh has joined #ruby
Giorgio has joined #ruby
ashka has joined #ruby
ashka has quit [Excess Flood]
symme7ry has quit [Ping timeout: 246 seconds]
aryatosh_ has quit [Ping timeout: 240 seconds]
A124 has joined #ruby
duosrx has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
bean has quit [Read error: Connection reset by peer]
niceguyjames has joined #ruby
Space_ has quit [Quit: Leaving]
slainer68 has joined #ruby
ephemerian has joined #ruby
aryatosh has quit [Ping timeout: 240 seconds]
miso1337 has quit [Quit: afk]
chriskempson has joined #ruby
krz has quit [Ping timeout: 246 seconds]
camilasan has joined #ruby
slainer68 has quit [Ping timeout: 258 seconds]
ioNull has joined #ruby
krz has joined #ruby
camilasa_ has joined #ruby
chriskempson has quit [Quit: chriskempson]
camilas__ has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
saschagehlich has quit [Quit: saschagehlich]
ferdev has joined #ruby
nari has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
vikhyat has joined #ruby
schickung has joined #ruby
dangerousdave has joined #ruby
El_loco has joined #ruby
mmozuras has joined #ruby
mockra has quit [Remote host closed the connection]
camilasa_ has quit [Ping timeout: 268 seconds]
sathish316 has quit [Quit: Leaving.]
mockra has joined #ruby
mneorr has joined #ruby
mmozuras has quit [Client Quit]
mikecmpbll has joined #ruby
__alpaca_ has joined #ruby
rdark has joined #ruby
vlad_starkov has joined #ruby
lkba has quit [Ping timeout: 268 seconds]
dayepa1 has quit [Remote host closed the connection]
aki3 has quit [Read error: Connection reset by peer]
pcarrier has quit [Ping timeout: 240 seconds]
__alpaca_ has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
nplusp has joined #ruby
nplusp has quit [Remote host closed the connection]
blaxter has joined #ruby
pcarrier has joined #ruby
aruntomar has quit [Quit: aruntomar]
sleetdrop has joined #ruby
adambeynon has joined #ruby
mneorr has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
k610 has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
mvangala_ has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
t-mart_ has joined #ruby
fjfish has joined #ruby
madb055 has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
nomenkun has joined #ruby
t-mart__ has joined #ruby
t-mart has quit [Ping timeout: 258 seconds]
visof has quit [Remote host closed the connection]
_maes_ has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
Gooder` has joined #ruby
Gooder has quit [Read error: Connection reset by peer]
jeffreylevesque_ has joined #ruby
francisfish has quit [Ping timeout: 258 seconds]
Animawish has quit [Ping timeout: 258 seconds]
aryatosh has joined #ruby
Elicro has joined #ruby
jeffreylevesque has quit [Ping timeout: 258 seconds]
marcdel_ has quit [Quit: marcdel_]
Animawish has joined #ruby
t-mart_ has quit [Ping timeout: 258 seconds]
snearch has joined #ruby
adamjleonard has quit [Quit: Leaving...]
Gooder`` has joined #ruby
Gooder` has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
Monika_11 has joined #ruby
Elicro has quit [Ping timeout: 258 seconds]
timmow has joined #ruby
<Monika_11>
hi
mahmoudimus has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
LnL has quit [Quit: LnL]
nari has quit [Ping timeout: 258 seconds]
<Monika_11>
#newbie
<clocKwize>
hi
<hoelzro>
hello
<Monika_11>
kinda new to this
<clocKwize>
to what?
<clocKwize>
ruby or irc
marr has joined #ruby
<Monika_11>
both :)
marr has quit [Excess Flood]
<Monika_11>
it seems really slow, but not sure whether that is my connection? or is it just quiet ?
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
<hoelzro>
quiet
<Monika_11>
what is this channel about - or just a general hangout?
<hoelzro>
=)
<Monika_11>
hoelzro - ahh... i see - well, I'll just keep talking and see what happens :)
<hoelzro>
well, it's mainly for Ruby questions, but we find ourselves having other conversations from time to time
gungor_ has quit [Ping timeout: 246 seconds]
LnL has joined #ruby
<tobiasvl>
is Monika_11 a bot?
slainer68 has joined #ruby
<clocKwize>
Monika_11: its about programming and stuff >.<
<Monika_11>
oh!! sorry, wrong place - definitely not my strength - thanks anyhhow
<Monika_11>
not sure how to leave though .... :P
marr has joined #ruby
<clocKwize>
do /part #ruby
<clocKwize>
but you can stay if you want lol
<clocKwize>
its a free world
jacobbednarz has joined #ruby
<Monika_11>
hehee... cheers:)
araujo has quit [Quit: Leaving]
Monika_11 has left #ruby [#ruby]
<clocKwize>
suit yourself! :D
Animawish has quit [Ping timeout: 252 seconds]
Zai00 has joined #ruby
dr_bob1 has joined #ruby
xcv has joined #ruby
persand has joined #ruby
Ripp___ has quit [Quit: This computer has gone to sleep]
mockra has quit [Remote host closed the connection]
lmf40 has joined #ruby
mockra has joined #ruby
dr_bob1 has quit [Read error: Connection reset by peer]
lmf40 is now known as mpfundstein
gyre007 has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
dr_bob has quit [Ping timeout: 252 seconds]
aces1up has joined #ruby
<aces1up>
can someone let me know whats up with this bit o code.. seems to work find with activerecord3.0.0 but after updating AR to latest version getting error http://pastie.org/7715118
xcv has quit [Ping timeout: 258 seconds]
<Hanmac>
aces1up: #rubyonrails
AlSquirrel has quit [Read error: Connection reset by peer]
<samuelj>
Hey everyone, I have a long running process that isn't set to terminate for a few hours, but I despreately need to hotpatch it (just a small tweak to a config var). Is there a tool that can do this? Pry perhaps?
* Hanmac
is counting down ... 3 ... 2 ... 1... and now hemanh is confused ;P
<hemanh>
:D
<hemanh>
you read my mind Hanmac !
<hemanh>
Game.changed
ferdev has quit [Ping timeout: 252 seconds]
aki3 has joined #ruby
tonini has quit [Remote host closed the connection]
<Hanmac>
hemanh: its because the Game module extends the Observable module from stdlib (for event catching)
<hemanh>
noticed that, is it some kina pattern?
<Hanmac>
hm yeah its some kind of observer pattern ... hm we may not need it but i thought it would be cool
lewix_ has quit [Remote host closed the connection]
<hemanh>
kool, had read about patterns, neva got to implement them all, starts with factors can remember till facade or something heh heh, also read about anti-patterns
MisterPostIT has joined #ruby
jbpros has joined #ruby
rdx has joined #ruby
rdx has quit [Remote host closed the connection]
rdx has joined #ruby
mockra has quit [Remote host closed the connection]
ExxKA has joined #ruby
gyre007 has joined #ruby
netto has joined #ruby
<Hanmac>
hemanh: the problem is: if the GameObjects itself are observable, THEN they cant be marshal anymore ... and i like marshal soo i need some kind of global observer that crashs my wave function ;P ... so i use the Game module itself for that
mockra has joined #ruby
gungor has joined #ruby
gyre007_ has quit [Read error: Operation timed out]
<hemanh>
Hanmac: pretty complicated, anyway game design seems to be a good case to apply and study patterns :)
ttt has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
<Hanmac>
hm i may be use also some kind of anti-pattern ;P ... or for sample if you do RPG::Weapon.new(:sword) you can do later this: RPG::Weapon[:sword] to get the instance back
gungor has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
Rym has joined #ruby
ferdev has joined #ruby
gungor has joined #ruby
ttt has joined #ruby
daniel_- has joined #ruby
krz has quit [Ping timeout: 258 seconds]
<hemanh>
Yeah have noticed RPG::Weapon[:sword] kina stuff at many places
<Hanmac>
the scripting should be similar to the RPG makers from Enterbrain ... included with some addionalstuff from Pen&Paper games like Drakensang (look at my abilities)
D4T has joined #ruby
skattyadz has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
LennyLinux has joined #ruby
<hemanh>
ha, ok!
r0bby_ has joined #ruby
Gooder``` has joined #ruby
vlad_starkov has quit [Ping timeout: 268 seconds]
sebastianb has quit [Ping timeout: 246 seconds]
r0bby has quit [Ping timeout: 258 seconds]
jcrawford has quit [Ping timeout: 245 seconds]
<Hanmac>
hemanh: and yeah it might be similar to D&D too ... (with an little crazyness from me ;P )
<hoelzro>
if I have apples but not oranges, the statement is true
<hoelzro>
if I have oranges but not apples, it's still true
<hoelzro>
the only case in which it's false is if I have neither
mockra has quit [Ping timeout: 248 seconds]
<Hanmac>
hoelzro: you need a bit carefull about ! ... its a method call, that makes "unless foo" faster than "if !foo" but the result could be different
<hoelzro>
sigh
ExxKA has quit [Quit: This computer has gone to sleep]
<butblack>
why @listeners && @listeners.each … why wouldn't you just put @listeners.each
ToApolytoXaos has joined #ruby
LennyLinux has joined #ruby
<tobiasvl>
butblack: if @listeners is nil, just the latter would give a NilException
tonini has joined #ruby
_bart has joined #ruby
<tobiasvl>
err, no it wouldn't, because add_listener assigns it if it's nil
Faris9 has quit [Quit: Faris9]
Domon has joined #ruby
ttt has joined #ruby
<tobiasvl>
so yes, if you always call add_listener before iterating over @listeners, you don't need to check if it's nil
<butblack>
tobiasvl: i guess just to be save..
<butblack>
.ya
<BinaryMaster>
Do you just make the connection else where in your application before a data model is used? Does the super class have a method to then get an instance of that connection? Or do you have to make the connection in each model?
<butblack>
makes sense, I'm getting instance variable @listeners wasn't set (when i don't call add_listener)
<butblack>
thanks (y)
_bart has quit [Client Quit]
vlad_sta_ has joined #ruby
davetherat has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 268 seconds]
<Hanmac>
butblack: you can do: Array(@listeners).each ;P
LnL has quit [Ping timeout: 264 seconds]
<butblack>
Hanmac: you're right
<butblack>
that's a nice solution
<butblack>
i wonder why avdi didn't use it..
<clocKwize>
why can't you set @listeners to [] on initialize?
jacobbednarz has quit [Quit: Laters.]
<Hanmac>
clocKwize: maybe he cant
<clocKwize>
Hanmac: thats quite a useless statement
<clocKwize>
(@listeners ||= [] << listener)
<Hanmac>
for sample when he does do it on the main object
Niels___ has joined #ruby
<BinaryMaster>
Can anyone that has used the Sequel gem explain this to me? How does a model get a database connection? Do you just make the connection else where in your application before a data model is used? Does the super class have a method to then get an instance of that connection? Or do you have to make the connection in each model?
<clocKwize>
so he could do @listeners = [] at the top before the method
<clocKwize>
(@listeners ||= [] << listener) -- this is WTF code
<Hanmac>
clocKwize: no he cant because ||= [] does have a special meaning
<clocKwize>
if things are initialised to decent defaults, the code would be perfectly readable
failshell has joined #ruby
johchri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skattyadz has quit [Quit: skattyadz]
<clocKwize>
Hanmac: I know what meaning it has, its still way more complicated than it needs to be
<Hanmac>
butblack: the () are placed wrong, you need: (@listeners ||= []) << listener
<butblack>
Hanmac: you are correct
<Hanmac>
if i got 1Exp each time i am been right, i would already Lvl 70 ;P
tonini has quit [Remote host closed the connection]
<Niels___>
sorry, if this is not the correct channel, but.. i've setup capistrano, and got i working for deployment. however, i'm having trouble figuring what the best approach is to this. i have .htaccess files, config and database settings in my repo that should only be used locally. So what I did was, changed the settings to meet the server's demands, and then in a deploy task did run mv #{previous_release}/settings #{latest_release}/settings, but i thi
<Niels___>
this is rather stupid. what's the best approach for this?
<butblack>
clocKwize: I agree it's nicer to read.. I'm just reading through Ruby Tapas ep 21
<butblack>
it does add an additional line..
tealmage has joined #ruby
swex_ has quit [Read error: Connection reset by peer]
<clocKwize>
butblack: less code != more readable, easier to maintain, less bugs
<Hanmac>
it depends, i for myself likes codegolfing ;P
blaxter has quit [Ping timeout: 256 seconds]
<butblack>
clocKwize: haha
<butblack>
Hanmac: lol *
yshh has quit [Remote host closed the connection]
d11wtq has quit [Ping timeout: 260 seconds]
d11wtq_ has joined #ruby
nveselinov has quit [Read error: Connection reset by peer]
swex has joined #ruby
slainer68 has joined #ruby
nari has quit [Ping timeout: 258 seconds]
mengu_ has joined #ruby
krz has quit [Quit: krz]
robbyoconnor has quit [Ping timeout: 258 seconds]
mengu has quit [Ping timeout: 246 seconds]
ZuzzleBuzzer has quit [Quit: ZuzzleBuzzer]
ttt has quit [Remote host closed the connection]
Giorgio has quit [Ping timeout: 264 seconds]
klaas- has joined #ruby
grn_ has joined #ruby
sleetdrop has quit [Ping timeout: 258 seconds]
slainer68 has quit [Ping timeout: 258 seconds]
brunoro has joined #ruby
palyer has joined #ruby
Nisstyre has quit [Ping timeout: 256 seconds]
mengu__ has joined #ruby
emergion has joined #ruby
jarin_ has joined #ruby
Coolhand_ has joined #ruby
drfreeze_ has joined #ruby
rdark_ has joined #ruby
hackeron_ has joined #ruby
weeb1e_ has joined #ruby
fjfish has quit [Remote host closed the connection]
a_a_g_0 has joined #ruby
Niels___ has quit [Ping timeout: 252 seconds]
blaxter has joined #ruby
SecretAg1nt has joined #ruby
Elfix_113 has joined #ruby
classix has quit [Disconnected by services]
Roa_ has joined #ruby
danslo has joined #ruby
Johbe_ has joined #ruby
babinho_ has joined #ruby
IRLConor_ has joined #ruby
dayepa1 has joined #ruby
classix has joined #ruby
Evixion` has joined #ruby
rtl_ has joined #ruby
Derander has joined #ruby
Wandering_Glitch has joined #ruby
sam113102 has joined #ruby
binw__ has joined #ruby
Mch1 has joined #ruby
flagg0205 has joined #ruby
d11wtq_ has quit [Ping timeout: 260 seconds]
rotor` has joined #ruby
kaffepan1a has joined #ruby
andredie` has joined #ruby
s4muel_ has joined #ruby
Niels___ has joined #ruby
hash has joined #ruby
iam126 has joined #ruby
soukihei_ has joined #ruby
morrolan_ has joined #ruby
d11wtq has joined #ruby
mengu_ has quit [*.net *.split]
palyboy has quit [Ping timeout: 252 seconds]
dayepa has quit [*.net *.split]
rdark has quit [*.net *.split]
adambeynon has quit [*.net *.split]
a_a_g has quit [*.net *.split]
jarin has quit [*.net *.split]
kaffepanna has quit [*.net *.split]
Morrolan has quit [*.net *.split]
decentrality has quit [*.net *.split]
grn has quit [*.net *.split]
weeb1e has quit [*.net *.split]
Roa has quit [*.net *.split]
lushious has quit [*.net *.split]
soukihei has quit [*.net *.split]
Coolhand has quit [*.net *.split]
rtl has quit [*.net *.split]
reactormonk has quit [*.net *.split]
wchun has quit [*.net *.split]
Johbe has quit [*.net *.split]
alexwh has quit [*.net *.split]
sam113101 has quit [*.net *.split]
hackeron has quit [*.net *.split]
Elfix has quit [*.net *.split]
Evixion has quit [*.net *.split]
WanderingGlitch has quit [*.net *.split]
malcolmva has quit [*.net *.split]
Vert has quit [*.net *.split]
glacification11 has quit [*.net *.split]
binw_ has quit [*.net *.split]
Scient has quit [*.net *.split]
nmeum has quit [*.net *.split]
joshu has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
drfreeze has quit [*.net *.split]
Mchl has quit [*.net *.split]
SecretAgent has quit [*.net *.split]
pacbard has quit [*.net *.split]
nricciar has quit [*.net *.split]
babinho has quit [*.net *.split]
Derander_ has quit [*.net *.split]
yawniek_ has quit [*.net *.split]
klaas has quit [*.net *.split]
rotor has quit [*.net *.split]
andredieb has quit [*.net *.split]
IRLConor has quit [*.net *.split]
s4muel has quit [*.net *.split]
t_hash has quit [*.net *.split]
jtcoon has quit [*.net *.split]
flagg0204 has quit [*.net *.split]
rotor` is now known as rotor
Mch1 is now known as Mchl
iam126 is now known as decentrality
malcolmva has joined #ruby
alexwh has joined #ruby
lushious has joined #ruby
pacbard has joined #ruby
nmeum has joined #ruby
yawniek_ has joined #ruby
Shrink has quit [Ping timeout: 240 seconds]
Scient has joined #ruby
reactormonk has joined #ruby
glacification11 has joined #ruby
nricciar has joined #ruby
jtcoon has joined #ruby
Vert has joined #ruby
Vert has quit [Read error: Connection reset by peer]
passerine has quit [Quit: 失礼します]
butblack has quit [Quit: butblack]
Zai00 has quit [Read error: No route to host]
Vert has joined #ruby
tealmage has quit [Remote host closed the connection]
aryatosh has joined #ruby
soulofpeace has quit [Ping timeout: 252 seconds]
Mission-Critical has joined #ruby
swex_ has joined #ruby
Proshot has joined #ruby
duosrx has quit [Remote host closed the connection]
<Flexa>
line 32, problem that if a device isnt attached, it cannot get bits of information it expects and blows up...how can I get around this so it deals with it gradefully?
miso1337 has joined #ruby
mneorr has quit [Remote host closed the connection]
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
mmozuras has joined #ruby
justsee has quit [Ping timeout: 256 seconds]
<csmrfx>
Flexa: test if dev is attached?
mneorr has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
<Flexa>
with ANOTHER if clause?
<Flexa>
:(
<csmrfx>
OMG
<Flexa>
must be a nice ay to do it in ruby?
<Flexa>
:P
ttt has joined #ruby
Mission-Critical is now known as MissionCritical
adambeynon has joined #ruby
ttt has quit [Read error: Connection reset by peer]
<csmrfx>
ever heard of duck typing?
ttt has joined #ruby
LennyLinux has quit [Remote host closed the connection]
aryatosh_ has quit [Ping timeout: 256 seconds]
<Flexa>
nope ...
aryatosh has joined #ruby
<csmrfx>
there is this thing called "search engine"...
<Flexa>
ok
<Flexa>
i think i head of it
<tobiasvl>
Flexa: if you don't want another if test, catch exceptions instead?
<Flexa>
i'll google google
<Flexa>
tobiasvl: could do I guess
francisfish has joined #ruby
<Flexa>
i just want it to be like, if volume is not attached, don't blow up but just leave that space blank ..
<tobiasvl>
what do you mean by "blow up"?
<tobiasvl>
does it throw an exception?
<tobiasvl>
nil?
<csmrfx>
blow up:
<csmrfx>
>> randomThing.mount
<eval-in>
csmrfx => /tmp/execpad-831860555c63/source-831860555c63:2:in `<main>': undefined local variable or method `randomThing' for main:Object (NameError) (http://eval.in/17577)
<csmrfx>
eek, undefined!
hogeo has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
angusiguess has joined #ruby
aryatosh has quit [Ping timeout: 258 seconds]
<Flexa>
tobiasvl: if it encounters a volume that isn't attached, it can't load the volume.attachments.first.device for example (for obvious reasons)
<Flexa>
and throws ./prune_volumes.rb:32:in `block (2 levels) in <main>': undefined method `device' for nil:NilClass (NoMethodError)
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
senayar has quit [Remote host closed the connection]
Mattix has joined #ruby
mfletcher has joined #ruby
tret has quit [Read error: Connection reset by peer]
assurbanipal has quit [Ping timeout: 256 seconds]
tundrax has joined #ruby
tundrax has quit [Remote host closed the connection]
tundrax has joined #ruby
ryannielson has joined #ruby
adkron has quit [Ping timeout: 256 seconds]
mmitchell has joined #ruby
adac has joined #ruby
stackpush has quit [Read error: Connection reset by peer]
nari has joined #ruby
browndawg has quit [Quit: Leaving.]
lurven has joined #ruby
huoxito has quit [Ping timeout: 258 seconds]
<adac>
If I have a uri object like ie. this: => #<URI::HTTP:0x00000004710cd8 URL:http://images.example.com/example.jpg> how can I extract the full uri?
<shevy2>
Liru I cant be bothered searching, I often write things for myself quickly and when I happen to use it in different .rb files, I make it into a gem :P
interactionjaxsn has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
ttt has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
ananthakumaran has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
ananthakumaran has joined #ruby
wolcanus has quit [Remote host closed the connection]
__alpaca_ has joined #ruby
wolcanus has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
nveselinov has joined #ruby
teclator has quit [Ping timeout: 255 seconds]
retry has quit [Quit: Leaving...]
__alpaca_ has quit [Remote host closed the connection]
Bry8Star has joined #ruby
__alpaca has quit [Ping timeout: 264 seconds]
* Hanmac
doesnt often write gems, but when i do i do them in C++ ;P
yashshah has joined #ruby
__alpaca has joined #ruby
johnnyfuchs has joined #ruby
<aedorn>
oh yes, HTTP requests in C++. So much fun!
daniel_- has quit [Ping timeout: 276 seconds]
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
__alpaca has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
cod3r has quit [Ping timeout: 256 seconds]
robbyoconnor has quit [Ping timeout: 258 seconds]
<aedorn>
I feel like what I'm doing is wrong. Like if I finish this whole subset of items that the world will implode from just how wrong it was to even do it.
forlin has joined #ruby
foofoobar has quit [Quit: Computer has gone to sleep.]
wagster has joined #ruby
<Liru>
aedorn: I'm doing something similar. Probably not code-wise, but concept wise
noop has quit [Ping timeout: 276 seconds]
<Liru>
It's like "there's a better way, but I don't know what it is, oh god I'm going to be shot for writing this code aren't I"
tonini has quit [Remote host closed the connection]
<aedorn>
Liru: Good! Glad to know that if life ends tomorrow it was only *half* my fault!
leonidlm has quit [Ping timeout: 276 seconds]
<Liru>
...uh oh
<Liru>
no
<Liru>
what are you doing
<Liru>
don't code LHC software in ruby
<Liru>
:<
fedza has quit [Ping timeout: 252 seconds]
generalissimo has quit [Remote host closed the connection]
gungor_ has joined #ruby
amarraja_ has joined #ruby
generalissimo has joined #ruby
jeffreylevesque has joined #ruby
<aedorn>
oh, nothing much... probably just the most convoluted GUI for a Ruby app ever created.
jeffreylevesque_ has quit [Ping timeout: 264 seconds]
teclator has joined #ruby
oqioi has joined #ruby
gungor has quit [Ping timeout: 264 seconds]
SCommette has joined #ruby
amarraja has quit [Ping timeout: 264 seconds]
amarraja_ is now known as amarraja
ariedler has quit [Remote host closed the connection]
aryatosh has joined #ruby
Hello9 has joined #ruby
<Hello9>
Hello! :D
r0bglees0n has joined #ruby
<Hello9>
hey
mechcozmo has quit [Read error: Connection reset by peer]
mechcozmo has joined #ruby
<atmosx>
halo
Targen has quit [Read error: Connection reset by peer]
<Flexa>
line 29, the if never gets triggered, but if i puts volume.status I get a string 'in_use'
tagrudev has quit [Quit: yolo]
<Flexa>
also, know a better way of doing it? This way, if there are unattached volumes, the attchment info will not get shown for any of the volumes, not just the ones that are not attached.
greenarrow has quit [Read error: Connection reset by peer]
<Spooner>
Flexa, Line 18 you create a global that isn't used again (and using @ivars is frowned upon in the global scope).
julian-delphiki has joined #ruby
greenarrow has joined #ruby
persand has quit [Quit: persand]
<Spooner>
Flexa, I don't know what volume.statis can be. Likely it should be "in-use" or "in use" or similar.
<Spooner>
Try a puts in there too see.
<Spooner>
*to see
chxane has quit [Quit: Leaving]
<Flexa>
I have Spooner, i get 4 strings (for my 4 volumes) all 'in_use'
<Spooner>
Flexa; just realised you don't #join the threads. I'd use the parallel gem to make things simpler, perhaps?
<Flexa>
hmm oki
netto has quit [Quit: netto]
ferdev has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
gungor_ has quit [Remote host closed the connection]
yashshah_ has joined #ruby
aryatosh has quit [Ping timeout: 256 seconds]
coder_neo has quit [Ping timeout: 268 seconds]
cantonic has joined #ruby
netto has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
_nitti has quit [Remote host closed the connection]
leonidlm has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
<Spooner>
I'm at a loss. I'd recommend: p [volume.status, volume.status == "in_use", volume.status.encoding, "in_use".encoding] # Suspecting that they aren't really the same; perhaps encoding is different?
d2dchat has quit [Remote host closed the connection]
jdunck has quit [Client Quit]
lufi has joined #ruby
robbyoconnor has joined #ruby
yellow5 has quit [Read error: Operation timed out]
casheew has quit [Read error: Connection reset by peer]
freezey has joined #ruby
yellow5 has joined #ruby
casheew has joined #ruby
woolite64_ has quit [Ping timeout: 272 seconds]
jeffreylevesque has quit [Read error: Connection reset by peer]
mattbl has quit [Quit: Leaving]
generalissimo has joined #ruby
lewix has joined #ruby
tundrax has quit [Ping timeout: 256 seconds]
<aedorn>
Anyone interested in Ruby-based tools to create Linux system ISOs (so you can customize a distribution, burn the ISO, and use it to install)?
<Xeago>
I haven't heard of anyone using iso's nowadays
<Xeago>
vagrant+chef/puppet is a common toolset
DrShoggoth has joined #ruby
<aedorn>
Yeah, but that won't install a base system which is what I'm targeting
<Xeago>
docker is also cool
danneu has joined #ruby
<aedorn>
as in ... the actual OS that you have to boot to in order to even use vagrant+anything else
<Xeago>
you give vagrant a base system, you can optionally have that as a step on your host
carloslopes has quit [Ping timeout: 256 seconds]
gchristensen has joined #ruby
mklappst_ has joined #ruby
<Xeago>
you usually start with stuff virtualized and then extract that to hardware
soulofpeace has quit [Ping timeout: 256 seconds]
brunoro has quit [Ping timeout: 264 seconds]
<gchristensen>
with rbenv, is there a way to make a command installed in a particular version of Ruby executable on its particular ruby version available nomatter what my system ruby version is?
alup has quit [Quit: Leaving]
<aedorn>
Xeago: Yeah, don't think you're my target audience here ;)
julian-delphiki has quit [Quit: Computer has gone to sleep.]
kf8a has quit [Quit: Computer has gone to sleep.]
atmosx has quit [Quit: And so the story goes…]
akashj87 has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 255 seconds]
rton has left #ruby [#ruby]
dhruvasagar has joined #ruby
rton has joined #ruby
gungor_ has joined #ruby
infecto has joined #ruby
tootubular has quit [Ping timeout: 252 seconds]
tootubular_ has joined #ruby
<Xeago>
aedorn: the way I deal with setting up a new server, is installing an image I extracted from a vm over network
jovy88 has quit [Read error: Connection reset by peer]
<Xeago>
at least, thats how I did it 8 years ago
<Xeago>
nowadays I just swap harddrives :3
felipecvo has joined #ruby
mityaz has joined #ruby
lurven has quit [Ping timeout: 245 seconds]
jovy88 has joined #ruby
ttt has joined #ruby
woolite64 has joined #ruby
gungor has quit [Ping timeout: 258 seconds]
lmf40 has quit [Remote host closed the connection]
dankest has joined #ruby
persand has quit [Quit: persand]
m_3 has quit [Ping timeout: 260 seconds]
alexwh has left #ruby [#ruby]
zastern has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
lmf40 has joined #ruby
<aedorn>
Xeago: Right, not my target audience still. Thinking more along the lines of those who actually create Linux distributions, or maybe those who are interested in doing such but lack the tools to do something like rapid prototyping on an OS level.
yashshah_ has quit [Read error: Connection reset by peer]
m_3 has joined #ruby
yashshah_ has joined #ruby
rtl_ is now known as rtl
lmf40 has quit [Remote host closed the connection]
ttt has quit [Ping timeout: 276 seconds]
sleetdrop has quit [Quit: Computer has gone to sleep.]
Hanmac has joined #ruby
johnkary has quit [Ping timeout: 240 seconds]
retry has quit [Quit: Leaving...]
carloslopes has joined #ruby
bradhe has joined #ruby
Ontolog has quit [Remote host closed the connection]
spider-mario has joined #ruby
sam113101 has joined #ruby
jduan1981 has quit [Quit: jduan1981]
beiter has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Remote host closed the connection]
locriani has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
duosrx has quit [Remote host closed the connection]
jovy88 has quit [Read error: Connection reset by peer]
mockra has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
rupee has joined #ruby
jovy88 has joined #ruby
johchri has joined #ruby
Regis__ has joined #ruby
CyberMaN has quit []
camilas__ has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 272 seconds]
wyattg has quit [Quit: Konversation terminated!]
julian-delphiki has quit [Quit: Computer has gone to sleep.]
michaelmartinez has joined #ruby
francisfish has quit [Remote host closed the connection]
GOMADWarrior has quit [Ping timeout: 246 seconds]
BSaboia has joined #ruby
schiang has joined #ruby
mahmoudimus has joined #ruby
__alpaca has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
guitsaru has joined #ruby
robscomputer has joined #ruby
brennanMKE has quit [Remote host closed the connection]
mucker has joined #ruby
johchri has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mark_locklear has joined #ruby
johchri has joined #ruby
forrest has joined #ruby
akells` has joined #ruby
troessner has quit [Quit: Leaving]
__alpaca has quit [Ping timeout: 264 seconds]
dmiller has joined #ruby
interactionjaxsn has joined #ruby
stkowski has joined #ruby
curtis___ has joined #ruby
mklappst_ has joined #ruby
zastern has quit [Remote host closed the connection]
<curtis___>
wondering if anyone has used ruby to direct input to a python script using the getpass method. I'm trying to automate passing a password to a password prompt that is given half way through a script I cannot modify
<curtis___>
currently trying to figure out how to use IO.popen for this
wyhaines has joined #ruby
rickmasta has quit [Quit: Leaving...]
jonathanwallace has quit [Quit: WeeChat 0.4.0]
siekoku_ has quit [Remote host closed the connection]
beiter has quit [Quit: beiter]
emptymag00 has quit [Read error: Connection reset by peer]
markalanevans has joined #ruby
alexyz has joined #ruby
nomenkun has joined #ruby
locriani has joined #ruby
julian-delphiki has joined #ruby
jbueza has quit [Read error: Connection reset by peer]
jbueza has joined #ruby
atmosx has joined #ruby
c0rn has joined #ruby
marcdel has joined #ruby
jnoob22_ has joined #ruby
daniel_- has joined #ruby
jnoob22_ has quit [Read error: Connection reset by peer]
jnoob22__ has joined #ruby
rickruby has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
MrPoT4tO has joined #ruby
kirun has joined #ruby
Morkel has joined #ruby
jonathanwallace has joined #ruby
jnoob22 has quit [Ping timeout: 255 seconds]
dmiller_ has joined #ruby
schiang has quit [Ping timeout: 245 seconds]
alvaro_o has joined #ruby
curtis___ has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 256 seconds]
HAKEON has joined #ruby
iga3k has joined #ruby
nfk has quit [Quit: yawn]
tspike has quit [Ping timeout: 258 seconds]
Qwak has joined #ruby
c0rn has quit [Quit: Lates.]
c0rn has joined #ruby
yashshah_ has quit [Read error: Connection reset by peer]
dmiller has quit [Ping timeout: 245 seconds]
yashshah_ has joined #ruby
ttt_ has joined #ruby
jgarvey has quit [Quit: Leaving]
bricker has joined #ruby
LennyLinux has joined #ruby
jduan1981 has quit [Read error: Connection reset by peer]
geekbri has quit [Remote host closed the connection]
jduan1981 has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
rickmasta has joined #ruby
symme7ry has joined #ruby
banjara has joined #ruby
denken_ is now known as denken
Coolhand_ is now known as Coolhand
jnoob22__ has quit [Remote host closed the connection]
matchaw has quit [Read error: Connection reset by peer]
momomomomo has quit [Ping timeout: 246 seconds]
danslo has quit [Quit: danslo]
matchaw has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
curtis___ has joined #ruby
ttt_ has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby
jonathanwallace has joined #ruby
mklappst_ has quit [Remote host closed the connection]
Elhu has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
HAKEON_ has joined #ruby
johnkary has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
rton has left #ruby [#ruby]
robscomputer has joined #ruby
HAKEON has quit [Read error: No route to host]
sambao21 has joined #ruby
threesome has joined #ruby
HAKEON has joined #ruby
shevy2 is now known as shevy
spider-mario has quit [Remote host closed the connection]
spider-mario has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jeebster has joined #ruby
vlad_starkov has joined #ruby
HAKEON_ has quit [Ping timeout: 252 seconds]
johchri has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chandankumar has joined #ruby
<jeebster>
any brasileiros in the house?
zommi has joined #ruby
d2dchat has joined #ruby
dmiller_ has quit [Remote host closed the connection]
<lectrick>
obligatory HUEHUEHUEHUE
gyre007 has quit [Ping timeout: 256 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
ramblex has quit [Remote host closed the connection]
daniel_- has quit [Quit: WeeChat 0.4.0]
HAKEON_ has joined #ruby
HAKEON has quit [Ping timeout: 272 seconds]
HAKEON_ is now known as HAKEON
Zolo has quit [Remote host closed the connection]
wgosling has joined #ruby
BizarreCake has quit [Quit: Leaving]
hogeo_ has joined #ruby
nomenkun has quit [Remote host closed the connection]
k611 has joined #ruby
carloslopes has quit [Remote host closed the connection]
mikestok has quit [Quit: Computer has gone to sleep.]
ryannielson has quit [Quit: ryannielson]
bitZero_1 has joined #ruby
mucker has joined #ruby
newtonianb has joined #ruby
yalue has quit [Read error: Connection reset by peer]
ritek has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
<newtonianb>
hey when I use RakePipeline for sass how can i use imports in my sass? I have one main sass file called style.sass that i want Rake to compile then this includes a whole bunch of other ones Rake::Pipeline::Web::Filters::SassFilter
_nitti has quit [Remote host closed the connection]
ryanhirsch has quit [Quit: Computer has gone to sleep.]
c0rn has quit [Quit: Computer has gone to sleep.]
kofno has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
freerobby has joined #ruby
zigomir has joined #ruby
[0x1a] has quit [Quit: Connection closed for inactivity]
gabebug has joined #ruby
juco has joined #ruby
<gabebug>
is there a sane way to automatically set instance variables to a class without a constructor, e.g. "class Foo(@var1, @var2)" instead of having "def initialize(var1, var2); @var1, @var2 = var1, var2; end" ?
<canton7>
in ruby 2.0
<gabebug>
i've been taking that scala coursera course, and it's one of the things that has me jealous
<canton7>
it's exactly that iirc
<gabebug>
is there a name for that i can google ?
_nitti has joined #ruby
_nitti has quit [Remote host closed the connection]
pettsson has joined #ruby
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
neurone-1337 has joined #ruby
jlast has joined #ruby
mattp_ has joined #ruby
vlad_sta_ has joined #ruby
siekoku_ has joined #ruby
invisime has quit [Quit: Leaving.]
cloke_ has joined #ruby
mneorr_ has quit [Remote host closed the connection]
rickruby has joined #ruby
krawchyk has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
cloke has quit [Ping timeout: 272 seconds]
cloke_ is now known as cloke
peter_tk has joined #ruby
ritek has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
<peter_tk>
Hello. Can anyone help me with some good references for the semantics and idiom of Ruby's callcc? My book (Well-Grounded Rubyist) doesn't cover it.
neurone-1337 has quit [Read error: Operation timed out]
netto has quit [Quit: netto]
emmanuelux has quit [Ping timeout: 272 seconds]
Morkel has quit [Quit: Morkel]
headius has quit [Quit: headius]
robmuh has quit [Ping timeout: 272 seconds]
emmanuelux has joined #ruby
nadirvar_ has quit [Ping timeout: 240 seconds]
<Spooner>
gabebug, You can use a Struct
huoxito has joined #ruby
celinedior has quit [Quit: celinedior]
vikhyat has joined #ruby
<gabebug>
Spooner: huh, don't know why that never occurred to me. i think that would work.
workmad3 has joined #ruby
<gabebug>
i've never use struct's with method definitions
chandankumar has quit [Ping timeout: 260 seconds]
<mikepack>
Is there a limit to the size of files you can download with open-uri, TCPSocket, etc?
<gabebug>
i've normally thought of struct's more for removing data clumps. in this case, i've been trying out the SRP koolaid to a good degree of perceived benefit, and trying to cut down on the small but constant initializer overhead
gabebug has left #ruby [#ruby]
siekoku_ has quit [Ping timeout: 260 seconds]
ItalianMan has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
emmanuelux has quit [Ping timeout: 252 seconds]
yashshah_ has quit [Ping timeout: 252 seconds]
ItalianMan has quit [Client Quit]
_nitti has joined #ruby
netto has joined #ruby
zommi has quit [Remote host closed the connection]
ynonperek has quit [Quit: Leaving]
bricker has quit [Quit: leaving]
jekotia has joined #ruby
MisterPostIT has quit [Quit: MisterPostIT]
lkba has joined #ruby
sepp2k has joined #ruby
mikestok has joined #ruby
__alpaca has joined #ruby
bricker has joined #ruby
dougireton has joined #ruby
dougireton has quit [Client Quit]
wesside has quit [Quit: Ice cream truck!]
__alpaca has quit [Ping timeout: 252 seconds]
LaPetiteFromage_ has joined #ruby
LaPetiteFromage has quit [Ping timeout: 256 seconds]
LaPetiteFromage_ is now known as LaPetiteFromage
netto has quit [Quit: netto]
uris has quit [Ping timeout: 256 seconds]
mechcozmo has quit [Quit: mechcozmo]
mechcozmo has joined #ruby
mechcozmo has quit [Client Quit]
dougireton has joined #ruby
netto has joined #ruby
geekbri has quit [Remote host closed the connection]
<arusso>
is there a way to tell rubygems to not update gems to the next major version?
rgn has joined #ruby
c0rn has joined #ruby
ffranz has quit [Quit: Leaving]
bitcrave has joined #ruby
dmiller has quit [Remote host closed the connection]
<Sou|cutter>
arusso: -v ~> 3.0 # maybe something like that?
ffranz has joined #ruby
<wgosling>
What is the correct way of doing "if matches a regex?" currently I am doing "if string =~ /^myregex/" but that can either return 0 or nil which both evaulate to false in an if statement.
nomenkun has quit [Ping timeout: 260 seconds]
<canton7>
0 doesn't evaluate to false in ruby
Giorgio has joined #ruby
<canton7>
the only falsy things are nil and false. that's it
dougireton has quit [Quit: Leaving.]
<arusso>
Sou|cutter: hrm, that may work for my purposes. thanks
noop_ has quit [Ping timeout: 252 seconds]
wolcanus has joined #ruby
<Sou|cutter>
arusso: maybe wrap that in a string or something... I always use bundler :X
agarie has joined #ruby
<Sou|cutter>
I have forgotten life without bundler (shameful, I know)
<arusso>
I should look into it. So far the only thing I think we'll install is rvm and configure it in the multi user setup
picca_ has joined #ruby
unflores has joined #ruby
picca_ has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
<wgosling>
canton7: oh, seems you are right.
robmuh has quit [Ping timeout: 252 seconds]
headius has joined #ruby
akhet has quit [Remote host closed the connection]
_nitti has joined #ruby
mark_locklear has quit [Ping timeout: 246 seconds]
gungor has joined #ruby
uris has joined #ruby
d2dchat has quit [Remote host closed the connection]
foofoobar has joined #ruby
headius has quit [Client Quit]
wedgex has quit [Remote host closed the connection]
mixel has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
Uranio has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
dmiller has quit [Read error: Connection reset by peer]
philcrissman has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
bwlang has joined #ruby
codecop has quit [Remote host closed the connection]
wedgex has quit [Remote host closed the connection]
headius has quit [Quit: headius]
angusiguess has quit [Ping timeout: 264 seconds]
wedge has joined #ruby
dougireton has joined #ruby
emmanuelux has joined #ruby
<bwlang>
ok… so i want to do something a little odd - i'd love some critical feedback… I have class (well) that has a bunch of methods (rails built them from the db columns). I want to make another class that has the same set of methods so that I can use it to update a bunch of wells at once (instead of updating them one by one). I think i can do this with some kind of class_eval foo. Is this reasonable. Did I miss some better way to do
ziggles has joined #ruby
wedge has quit [Remote host closed the connection]
<ziggles>
Any suggestions for platform independent way of playing a .wav?
robbyoconnor has joined #ruby
jerius has quit []
<csmrfx>
browser?
love_color_text has joined #ruby
<csmrfx>
vlc is pretty common
<ziggles>
csmrfx: that's a good idea but i'm building a very simple console based pomodoro timer and i'd like to play a wav when a cycle finishes
freakazoid0223 has joined #ruby
<csmrfx>
java player?
sailias has quit [Ping timeout: 248 seconds]
jovy88 has quit [Read error: Connection reset by peer]
jamescarr has quit [Quit: jamescarr]
_nitti has quit [Remote host closed the connection]
__alpaca has joined #ruby
_nitti has joined #ruby
<csmrfx>
ziggles: just pop up a browser window which loads a embedded youtube page
<ziggles>
csmrfx: im sorry but i can't tell if you're being serious or jabbing at me?
jovy88 has joined #ruby
<csmrfx>
that is literally the easiest way to do it
<csmrfx>
thats all
<csmrfx>
plus - you control both the embed, and the video content
<csmrfx>
any second you want you can change it
<csmrfx>
if its on the users compu, you cant
dougireton has quit [Read error: Operation timed out]
kristofers has quit []
<csmrfx>
and, btw, hosting video content on youtube is free atm
rburton- has joined #ruby
cgcardona has quit [Quit: cgcardona]
<ziggles>
csmrfx: i see what you're saying but i was hoping for just playing like a "ding.wav" or something. nothing crazy. right now i'm using `print "\a"`
<ziggles>
to play the system bell
<csmrfx>
lol
<csmrfx>
ok i see now
tundrax has joined #ruby
love_color_text has quit [Ping timeout: 246 seconds]
<ziggles>
:)
<csmrfx>
I think youre going to have to choos your OSs
<peter_tk>
Does anyone know any prominent Ruby applications or gems that use continuations?
__alpaca has quit [Ping timeout: 248 seconds]
rakl has joined #ruby
_nitti has quit [Ping timeout: 255 seconds]
miroatme has joined #ruby
<csmrfx>
does ruby have continuations?
<ziggles>
csmrfx: yeah i was thinking that too :/ ... And sorta hoping there was a library that wraps that up
<peter_tk>
Haskell has this awesome search engine called hoogle - you can search for a library function and you'll find all the usages of it in all the libraries in their equivalent of gems
<csmrfx>
only one I found
<csmrfx>
that was by search on github
Norrin has joined #ruby
<peter_tk>
Ok thanks everyone. I guess I can conclude it is not a critical feature for many users.
gaahrdner has quit [Remote host closed the connection]
thone has quit [Ping timeout: 260 seconds]
rickruby has quit [Remote host closed the connection]
<csmrfx>
peter_tk: no
<csmrfx>
you can not conclude that, based on what I said.
interactionjaxsn has quit [Ping timeout: 264 seconds]
pettsson has quit [Remote host closed the connection]
aki3 has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
rickruby has joined #ruby
angusiguess has joined #ruby
ZachBeta has joined #ruby
thetristan has joined #ruby
dougireton has joined #ruby
tundrax has quit [Remote host closed the connection]
<csmrfx>
ziggles: I got an idea
<ziggles>
yo
<csmrfx>
ziggles: I believe someone named giles made some ruby sound generation library
nadirvar_ has joined #ruby
<csmrfx>
bah, wait
ner0x has quit [Quit: Leaving]
<ziggles>
csmrfx: i think i might be on the same page. Are you referring to the app someone made that allows ruby to play music basically? Like you could programmatically play notes?
<ziggles>
csmrfx: thank you for finding that SO link but unfortunately wavefile and the other resources mentioned / linked are for actually reading/writing wav files... Not play back
fdsdf has quit [Ping timeout: 260 seconds]
<ziggles>
I just put a post on SO myself so hopefully someone out there will tell me im a noob and show me how it's ridiculously easy lol
Niels___ has quit [Quit: Niels___]
wagster has quit [Quit: Computer has gone to sleep.]
skattyadz has quit [Quit: skattyadz]
freerobby has quit [Ping timeout: 272 seconds]
<kandosan>
the only problem i have is on line, 'description' => "can't post html here " i need to post embed code with [ example ] id etc but it gives me that error in my last pastebin
alex__c2022 has quit [Quit: alex__c2022]
skattyadz has joined #ruby
<ziggles>
kandosan: when i run it from IRB it works fine for me
solidoodlesuppor has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<ziggles>
kandosan: do you have # encoding: UTF-8 @ the top of your file? Maybe it's a character issue?
<ziggles>
*character encoding
<bean>
kandosan, why not use a gem for wordpress rpc?
<bean>
i'd probably be easier...
<kandosan>
im really not sure im new to ruby :( how would i set UTF-8
<Spooner>
Yeah, works OK for me in pry (but on Linux, pry/irb defaults to utf8, but on Windows it defaults to some asciiish
<csmrfx>
error *was* because of double quotes
<Spooner>
kandosan, ziggles Just told you.
<csmrfx>
which are not in the paste
ph^ has joined #ruby
<kandosan>
so i set this on top of script.rb # encoding: UTF-8
MrZYX is now known as MrZYX|off
<ziggles>
kandosan: put this # encoding: UTF-8 as the first line of your file
<Spooner>
csmrfx, Ah, forgetting to save the file before running it, you think?
<csmrfx>
you can see the double quote in the error in the copypaste: ..." [video][track kind="captions" src="http://video-js.zencode...
<ziggles>
kandosan: i don't know if that will fix it, but it's worth a shot.
<kandosan>
ok ziggles im doing it
<bean>
kandosan, also. [] is not html tags <> are
<Spooner>
csmrfx, No, the double-quotes are inside a single-quoted string.
<ziggles>
csmrfx: why wouldn't double quote be allowed?
<csmrfx>
Spooner: see the error message
<csmrfx>
Spooner: line 5
<kandosan>
it still gives me that error in my last pastebin
<eval-in>
csmrfx => /tmp/execpad-0bbc38e9a1d2/source-0bbc38e9a1d2:2: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' ... (http://eval.in/17630)
<csmrfx>
wait what
<csmrfx>
oh well Im done for tonight
<kandosan>
thank you guys :) good night
stdim has joined #ruby
kandosan has quit [Quit: Page closed]
skattyadz has quit [Quit: skattyadz]
hach has joined #ruby
Spooner has quit [Remote host closed the connection]
<stdim>
Hi, I'm having troubles with Rake. I have this code: http://pastie.org/7721211 and it's not working for whatever reason. g++ never gets called to create a .o file. What am I doing wrong with Rake's rules?
enebo has quit [Quit: enebo]
Guest74649 has quit [Remote host closed the connection]
__alpaca has quit [Ping timeout: 272 seconds]
waxjar has quit [Ping timeout: 245 seconds]
thomasfedb has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
<ziggles>
i use rvm and lately i've been testing a lot of gems. Basically i'll `gem install whatever-gem` try it out... and a lot of the time never use it again.
sivoais has quit [Ping timeout: 255 seconds]
<ziggles>
Do you guys have any suggestions for this workflow? Does it make sense to use like gemsets or something that i can throw away later?
tomsthumb has quit [Quit: Leaving.]
johnnyfuchs has joined #ruby
tundrax has joined #ruby
thomasfedb has joined #ruby
waxjar has joined #ruby
HAKEON has joined #ruby
sivoais has joined #ruby
<csmrfx>
ziggles: remove them? rvm has gemsets
<ziggles>
csmrfx: yeah... right now i manually remove them, but i was thinking maybe gemsets would be a way to contain them so i can go back without polluting my regular ruby environment
<ziggles>
csmrfx: i'm not really experienced with rvm so i just wanted to throw it out there and see if anyone had a better idea
LiquidInsect has joined #ruby
angusiguess has quit [Ping timeout: 276 seconds]
<csmrfx>
I think you can "contain" them in a rvm gemset, switch out of it to "good ones" and del the "dirty" set