<rhizmoe>
are there any standard algorithms for modeling resource depletion over time?
havenn has joined #ruby-lang
CarlB_the_great has joined #ruby-lang
CarlB_the_great has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby-lang
machuga has joined #ruby-lang
justinseiter has quit [Ping timeout: 246 seconds]
justinseiter has joined #ruby-lang
CarlB_the_great has quit [Remote host closed the connection]
burgestrand has joined #ruby-lang
CarlB_the_great has joined #ruby-lang
t71540 has quit [Remote host closed the connection]
saxy has left #ruby-lang [#ruby-lang]
saxy has joined #ruby-lang
t5571 has joined #ruby-lang
retro|cz has joined #ruby-lang
havenn has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 252 seconds]
justinseiter has quit [Ping timeout: 252 seconds]
jackhammer2022 has joined #ruby-lang
Torrieri has quit [Ping timeout: 268 seconds]
Sambalero has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
seanstickle has quit [Quit: seanstickle]
pfaff_ has joined #ruby-lang
postmodern has quit [Quit: Leaving]
s0ra_h is now known as sora_h
saxy has quit [Remote host closed the connection]
saxy has joined #ruby-lang
saxy has quit [Remote host closed the connection]
m3nd3s_ has quit []
saxy has joined #ruby-lang
m3nd3s has joined #ruby-lang
saxy has quit [Read error: Connection reset by peer]
saxy_ has joined #ruby-lang
sora_h is now known as s0ra_h
scottj has left #ruby-lang [#ruby-lang]
machuga has quit [Remote host closed the connection]
mwjcomputing has joined #ruby-lang
setmeaway has joined #ruby-lang
t5571 has quit [Remote host closed the connection]
t46222 has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
lun_ has quit [Remote host closed the connection]
gmci has joined #ruby-lang
heftig has joined #ruby-lang
<rhizmoe>
is strftime the only way to get sunday as day of week: 0 (vs. 7)
<rhizmoe>
strftime('%w'), that is
<hagabaka>
not sure what you mean
heftig has quit [Ping timeout: 246 seconds]
saxy_ has left #ruby-lang [#ruby-lang]
saxy_ has joined #ruby-lang
<rhizmoe>
Date.today.cwday and .wday all return day-of-week numbers, indexes, that start at 1:monday
<rhizmoe>
or, y'know, Date.parse(...).cwday...
<rhizmoe>
i'm just trying to get a logical mapping between wday/cwday/or whatever, and the Date::DAYNAMES array
<rhizmoe>
if in fact this isn't just a big xy problem
savage- has joined #ruby-lang
perryh_away is now known as perryh
s0ra_h is now known as sora_h
t46222 has quit [Remote host closed the connection]
t74497 has joined #ruby-lang
dejongge has quit [Ping timeout: 252 seconds]
dejongge has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby-lang
ilyam has joined #ruby-lang
postmodern has joined #ruby-lang
heftig has joined #ruby-lang
ilyam has quit [Quit: ilyam]
savage- has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
mwjcomputing has left #ruby-lang ["Leaving"]
dejongge has quit [Ping timeout: 252 seconds]
dejongge has joined #ruby-lang
Cherrum has quit [Read error: Connection reset by peer]
Cherrum has joined #ruby-lang
dejongge has quit [Ping timeout: 276 seconds]
saxy_ has quit [Remote host closed the connection]
s0ra_h is now known as sora_h
t74497 has quit [Remote host closed the connection]
t50389 has joined #ruby-lang
setmeaway has quit [Ping timeout: 276 seconds]
sora_h is now known as s0ra_h
SuperTaz has joined #ruby-lang
saxy has joined #ruby-lang
CarlB_the_great has quit [Remote host closed the connection]
gsav has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby-lang
mrsolo has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
vbatts has joined #ruby-lang
s0ra_h is now known as sora_h
<rhizmoe>
if i think i need a dynamic while loop, like: while dynamic_value(foo) < amt ... end; # what might i be really looking for?
<banisterfiend>
rhizmoe: loop { break if dynamic_value(foo) }
<banisterfiend>
rhizmoe: but your 'dynamic value' works in the while
<banisterfiend>
teh condition expression is re-evaluated each loop tick
<rhizmoe>
oh it does? i should say dynamic_value is a method that calculates from an array of objects in 'foo', but you're saying that's going to be "re-ran" every iteration?
<banisterfiend>
of course
<banisterfiend>
otherwise while loops would be next to useless
<banisterfiend>
if the condition wasn't re-evaluated each time to see if it still holds true :P
<banisterfiend>
this is how 'while' behaves in every language, afaik
<rhizmoe>
hah, true. is there a way to handle assignment this way? dyn_val(foo) is a qty being used within the loop
<rhizmoe>
yeah, i'm just not thinking very rigorously right now. plus i'm not CS
<rhizmoe>
i'm thinking that somewhere there's a ruby replacement for this while tangle i'm constructing
<banisterfiend>
sure you can assign in teh expression
<rhizmoe>
while bar = dyn_val(foo) < amt # ?
<banisterfiend>
while (x = dynamic_value(foo)) < amt
<banisterfiend>
puts x
<banisterfiend>
end
<banisterfiend>
probably best to parenthesize it
<banisterfiend>
(even if u dont need to)
<rhizmoe>
parens necessary? heh :) thanks
<banisterfiend>
even if not, it's better to use them
<rhizmoe>
sure. UMP is a saying i remember from...bash?
charliesome has joined #ruby-lang
<rhizmoe>
maybe perl
<banisterfiend>
UMP?
<rhizmoe>
"use more parentheses"
<rhizmoe>
which i can't find a reference to now, so maybe i dreamt it
<rhizmoe>
or it's "use more #{something}"
sora_h is now known as s0ra_h
t50389 has quit [Remote host closed the connection]
t68627 has joined #ruby-lang
savage- has joined #ruby-lang
Xzyx987X has joined #ruby-lang
Xzyx987X_ has quit [Ping timeout: 244 seconds]
ryanf has joined #ruby-lang
sailias has quit [Ping timeout: 248 seconds]
heftig has quit [Remote host closed the connection]
havenn_ has quit [Remote host closed the connection]
seanstickle has quit [Quit: seanstickle]
Hakon has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
godfrey999 has quit [Quit: godfrey999]
qwerxy has quit [Quit: offski]
anekos has quit [Remote host closed the connection]
anekos has joined #ruby-lang
towski has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
t96924 has quit [Remote host closed the connection]
t87549 has joined #ruby-lang
s0ra_h is now known as sora_h
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby-lang
goshakkk has joined #ruby-lang
havenn has quit [Remote host closed the connection]
sailias has joined #ruby-lang
sora_h is now known as s0ra_h
slyphon has joined #ruby-lang
saxy has joined #ruby-lang
agile has quit [Ping timeout: 272 seconds]
sailias has quit [Quit: Leaving.]
solars has joined #ruby-lang
agile has joined #ruby-lang
crackity_jones has joined #ruby-lang
towski has quit [Remote host closed the connection]
havenn has joined #ruby-lang
<abstr4ct>
struggling with nokogiri and sax, im looking for some code that does something similar to the following logic... grabs all text between 2 elements/patterns.. Example: start grabbing text once i see X and stop grabbing once i see Y.
m3nd3s has joined #ruby-lang
agile has quit [Ping timeout: 276 seconds]
havenn has quit [Remote host closed the connection]
<rue>
Text?
agile has joined #ruby-lang
nXqd has quit [Ping timeout: 244 seconds]
tonni has quit [Remote host closed the connection]
tonni has joined #ruby-lang
<abstr4ct>
yes, im trying to grab text.
gentz_ has quit [Ping timeout: 256 seconds]
saxy has quit [Remote host closed the connection]
gentz has joined #ruby-lang
saxy has joined #ruby-lang
flak has joined #ruby-lang
saxy_ has joined #ruby-lang
flak is now known as Guest78224
saxy has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
havenn_ has joined #ruby-lang
rippa has quit [Ping timeout: 244 seconds]
seanstickle has joined #ruby-lang
kiddorails has joined #ruby-lang
s0ra_h is now known as sora_h
Hakon has quit [Quit: Leaving...]
Guest78224 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby-lang
tgriffin2081 has quit [Ping timeout: 245 seconds]
emanon_ has joined #ruby-lang
danielvdotcom has quit [Quit: im out of take it easy!]
sora_h is now known as s0ra_h
Hakon has joined #ruby-lang
sepp2k1 has quit [Read error: Connection reset by peer]
saxy_ has quit [Remote host closed the connection]
kain has quit [Quit: exit]
lsegal has joined #ruby-lang
saxy has joined #ruby-lang
kain has joined #ruby-lang
joast has quit [Quit: Leaving.]
kain has quit [Client Quit]
kain has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
publicvoid__ has quit [Remote host closed the connection]
burgestrand has joined #ruby-lang
nXqd has joined #ruby-lang
tgriffin2081 has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
saxy has quit [Remote host closed the connection]
goshakkk has quit [Quit: Computer has gone to sleep.]
goshakkk has joined #ruby-lang
s0ra_h is now known as sora_h
tjadc has quit [Ping timeout: 248 seconds]
tjadc has joined #ruby-lang
t87549 has quit [Remote host closed the connection]
t58204 has joined #ruby-lang
ilyam has joined #ruby-lang
ilyam has quit [Client Quit]
nXqd has quit [Ping timeout: 240 seconds]
sora_h is now known as s0ra_h
emanon_ has left #ruby-lang [#ruby-lang]
tgriffin2081 has quit [Ping timeout: 245 seconds]
adambeynon has joined #ruby-lang
adambeynon has quit [Client Quit]
nXqd has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
ryanf has joined #ruby-lang
benanne has quit [Quit: kbai]
zmack has joined #ruby-lang
kain has quit [Quit: exit]
saxy has joined #ruby-lang
kain has joined #ruby-lang
tgriffin2081 has joined #ruby-lang
saxy has quit [Ping timeout: 276 seconds]
pbjorklund has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
s0ber has quit [Read error: Connection reset by peer]
neocoin has quit [Remote host closed the connection]
s0ber has joined #ruby-lang
saxy has joined #ruby-lang
justinseiter has joined #ruby-lang
rippa has quit [Ping timeout: 246 seconds]
yxhuvud has quit [Ping timeout: 245 seconds]
saxy has quit [Ping timeout: 276 seconds]
s0ra_h is now known as sora_h
solars has quit [Ping timeout: 245 seconds]
ryanf has quit [Quit: leaving]
tjadc has quit [Ping timeout: 276 seconds]
ryanf has joined #ruby-lang
t58204 has quit [Remote host closed the connection]
justinseiter has quit [Ping timeout: 244 seconds]
t437 has joined #ruby-lang
workmad3 has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
fgomez has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 240 seconds]
dejongge has joined #ruby-lang
brianpWins has joined #ruby-lang
denysonique has quit [Max SendQ exceeded]
sora_h is now known as s0ra_h
qwerxy has joined #ruby-lang
tgriffin2081 has quit [Ping timeout: 252 seconds]
toretore has quit [Quit: This computer has gone to sleep]
denysonique has joined #ruby-lang
neocoin has joined #ruby-lang
agile has quit [Ping timeout: 276 seconds]
Xzyx987X has quit [Ping timeout: 268 seconds]
S1kx has quit [Read error: Connection reset by peer]
qwerxy has quit [Quit: offski]
apeiros_ has joined #ruby-lang
apeiros_ has left #ruby-lang [#ruby-lang]
goshakkk has joined #ruby-lang
agile has joined #ruby-lang
t437 has quit [Remote host closed the connection]
t71054 has joined #ruby-lang
Fullmoon has quit [Quit: Fullmoon]
stardiviner has joined #ruby-lang
havenn__ has joined #ruby-lang
havenn_ has quit [Ping timeout: 244 seconds]
fgomez has joined #ruby-lang
dejongge has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
goshakkk has quit [Quit: Computer has gone to sleep.]
saxy has joined #ruby-lang
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
s0ra_h is now known as sora_h
saxy has quit [Remote host closed the connection]
Criztian has quit []
saxy has joined #ruby-lang
banisterfiend` has quit [Remote host closed the connection]
dejongge has joined #ruby-lang
banisterfiend has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
bytephilia has joined #ruby-lang
saxy has quit [Ping timeout: 272 seconds]
qwerxy has joined #ruby-lang
postmodern has joined #ruby-lang
t71054 has quit [Remote host closed the connection]
t50407 has joined #ruby-lang
sora_h is now known as s0ra_h
Hakon has quit [Read error: Connection reset by peer]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
dejongge has quit [Quit: Leaving.]
A124 has joined #ruby-lang
deryl has quit [Quit: deryl]
havenn has quit [Remote host closed the connection]
s0ra_h is now known as sora_h
kiddorails has left #ruby-lang [#ruby-lang]
havenn__ has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
neocoin has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
pygmael has quit [Read error: Connection reset by peer]
pygmael has joined #ruby-lang
havenn has joined #ruby-lang
sora_h is now known as s0ra_h
havenn has quit [Remote host closed the connection]
s0ra_h is now known as sora_h
qwerxy has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
Nisstyre_ has quit [Quit: Leaving]
AnarchoTroll has joined #ruby-lang
mistym has quit [Remote host closed the connection]
t50407 has quit [Remote host closed the connection]
t69121 has joined #ruby-lang
justinmcp has joined #ruby-lang
sora_h is now known as s0ra_h
Carnage\ has quit []
justinmcp has quit [Remote host closed the connection]
joast has joined #ruby-lang
ttilley has quit [Ping timeout: 245 seconds]
qwerxy has quit [Quit: offski]
anjen has joined #ruby-lang
anjen has quit [Client Quit]
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
havenn has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
seanstickle has joined #ruby-lang
banisterfiend has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 244 seconds]
t69121 has quit [Remote host closed the connection]
t59124 has joined #ruby-lang
saxy has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 276 seconds]
Banistergalaxy has joined #ruby-lang
EvilJStoker has quit [Excess Flood]
chendo has quit [Ping timeout: 256 seconds]
moxiemk1 has joined #ruby-lang
chendo has joined #ruby-lang
chendo has quit [Changing host]
chendo has joined #ruby-lang
bytephilia has quit [Read error: Connection timed out]
guns has joined #ruby-lang
canton7 has quit [Remote host closed the connection]
gsav has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
s0ra_h is now known as sora_h
m3nd3s has joined #ruby-lang
chendo has quit [Ping timeout: 246 seconds]
toretore has joined #ruby-lang
EvilJStoker has joined #ruby-lang
chendo has joined #ruby-lang
yankov_ has joined #ruby-lang
banisterfiend has joined #ruby-lang
yankov has quit [Ping timeout: 272 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
JoshWines has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 256 seconds]