GarethAdams has quit [Remote host closed the connection]
GarethAdams has joined #ruby-lang
s3mi0 has quit [Remote host closed the connection]
cultureulterior_ has joined #ruby-lang
havenn has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
gaveen has quit [Remote host closed the connection]
tonni_ has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 272 seconds]
tonni has joined #ruby-lang
sush24 has joined #ruby-lang
chrismcg is now known as zz_chrismcg
thisirs has quit [Remote host closed the connection]
seanstickle has joined #ruby-lang
earthquake has quit [Read error: Connection reset by peer]
earthquake has joined #ruby-lang
<soahccc>
If I have a nested config hash and I want to replace placeholders in each value (at least assuming there could be one everywhere) do I have to build a new hash? I think I can't just traverse the hash and change! (what is the more specific word?) the string, can I?
nXqd has quit [Quit: leaving]
<whitequark>
soahccc: #gsub!
<soahccc>
whitequark: I thought a string would be a real copy and those shallow copies only apply to referencing values
rue|w has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
glebm has joined #ruby-lang
retro|cz has joined #ruby-lang
<soahccc>
And what is the word for directly changing something? :) I don't even remember it in my language. Not transform but argh it's on the tip of my tongue
agarie has quit [Remote host closed the connection]
anannie has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
faustman has joined #ruby-lang
havenn has quit [Ping timeout: 265 seconds]
rcvalle has quit [Quit: Leaving]
<whitequark>
soahccc: mutating
headius has quit [Quit: headius]
zmack has quit [Remote host closed the connection]
gnufied has joined #ruby-lang
dreamfactory_ has quit [Ping timeout: 248 seconds]
rcvalle has joined #ruby-lang
pxjorge has quit [Ping timeout: 264 seconds]
dreamfactory has joined #ruby-lang
sush24_ has joined #ruby-lang
faustman has quit [Remote host closed the connection]
pxjorge has joined #ruby-lang
sinclair has joined #ruby-lang
sush24 has quit [Ping timeout: 264 seconds]
holgerno has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
kurko_ has joined #ruby-lang
jxie has quit [Quit: leaving]
faustman has joined #ruby-lang
sush24_ has quit [Quit: This computer has gone to sleep]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
leopard_me has joined #ruby-lang
cultureulterior_ has quit [Ping timeout: 260 seconds]
cultureulterior_ has joined #ruby-lang
madish has joined #ruby-lang
cultureulterior_ has quit [Client Quit]
jammanbo has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 255 seconds]
<jammanbo>
Why does 1.0.respond_to?(:dup) => true, and yet 1.0.dup => TypeError: allocator undefined for Float
zmack has joined #ruby-lang
<whitequark>
jammanbo: because Float instances have a #dup method, but never succeeds
<injekt>
jammanbo: if the method didn't exist, you would get a NoMethod exception not a TypeError
<whitequark>
you cannot do Float.new either. the only way to get a Float instance is through specifying a literal, performing arithmetics or unmarshalling it
faustman has quit [Ping timeout: 260 seconds]
<whitequark>
*but it
<jammanbo>
Okay. Is that not a bit of an odd decision though? Would No Method or something else not make more sense?
<injekt>
or using Float() which i believe just does .to_f and raises on nil
<injekt>
jammanbo: no, dup exists on Object, it's overriden and a better exception is raised
<rindolf>
/usr/share/ruby/gems/gems/compass-0.12.2/lib/compass/frameworks.rb:60:in `initialize': No such file or directory - /usr/share/ruby/gems/gems/compass-0.12.2/frameworks (Errno::ENOENT)
rue|w has joined #ruby-lang
kurko_ has joined #ruby-lang
<yorickpeterse>
Tried re-installing compass?
setmeaway2 has quit [Read error: Connection reset by peer]
<judofyr>
I think I've managed to get search down to average O(log n) and inserts into amortized O(log n)-ish (I don't have a proof, so it might be worse)
faustman has quit [Ping timeout: 260 seconds]
<judofyr>
but yeah, I still haven't figured out removals :/
outoftime has joined #ruby-lang
faustman has joined #ruby-lang
Uranio has joined #ruby-lang
<ddfreyne>
Nice... cool literature :)
<judofyr>
it's pretty fun to play with :)
<judofyr>
now I'm trying to merge two sorted arrays with fractal cascading with less than O(m+n) comparisons
mistym has quit [Remote host closed the connection]
<judofyr>
well, actually two sorted arrays + one single element
<judofyr>
surprisingly tricky :/
faustman has quit [Ping timeout: 255 seconds]
faustman has joined #ruby-lang
__BigO__ has joined #ruby-lang
<whitequark>
sigh. ?\q => "q", ?\ы => "\\ы"
scampbell has joined #ruby-lang
wallerdev has joined #ruby-lang
lcdhoffman has joined #ruby-lang
banisterfiend has joined #ruby-lang
robbyoconnor has joined #ruby-lang
<judofyr>
whitequark: isn't it fun to implement a Ruby parser?
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
jxie has joined #ruby-lang
intellitech has joined #ruby-lang
faustman has quit [Ping timeout: 265 seconds]
faustman has joined #ruby-lang
enebo has joined #ruby-lang
pxjorge has quit [Quit: Leaving]
srbaker has quit [Quit: Computer has gone to sleep.]
davidbalber|away is now known as davidbalbert
rippa has joined #ruby-lang
rue|w has joined #ruby-lang
faustman has quit [Ping timeout: 255 seconds]
faustman has joined #ruby-lang
zmack has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
rue|w has quit [Ping timeout: 264 seconds]
gregmoreno has joined #ruby-lang
runeb has joined #ruby-lang
havenn has joined #ruby-lang
runeb has quit [Ping timeout: 246 seconds]
agnitio has joined #ruby-lang
faustman has quit [Ping timeout: 246 seconds]
srbaker has joined #ruby-lang
faustman has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
briantrust has joined #ruby-lang
slyphon__ has joined #ruby-lang
<telemachus>
judofyr: I think my Kickstarter idea is gold. Show me the money.
<judofyr>
telemachus: what are the pledge levels?
mytrile has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
<telemachus>
Oh, levels.
<telemachus>
Hmm.
<telemachus>
We've got levels
<telemachus>
Let's see: donut level, most basic. That's enough to buy me a donut one day over break.
<telemachus>
Call that $1
<telemachus>
You get an instagram photo of the donut
<telemachus>
Then there's gyro level - buy me a gyro and fries one afternoon.
<telemachus>
You get a photo and an email thanking you
<telemachus>
It moves up from there.
<telemachus>
:)
krohrbaugh has quit [Quit: Leaving.]
JoelMcCracken has joined #ruby-lang
faustman has quit [Ping timeout: 264 seconds]
faustman has joined #ruby-lang
dr_bob has joined #ruby-lang
dvorak has quit [Ping timeout: 244 seconds]
mytrile has quit [Remote host closed the connection]
zmack has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
earthquake has quit [Read error: Operation timed out]
earthquake has joined #ruby-lang
vlad_starkov has joined #ruby-lang
imperator has joined #ruby-lang
faustman has quit [Ping timeout: 246 seconds]
faustman has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
wyhaines has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_sta_ has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 255 seconds]
meatballhat has quit [Ping timeout: 246 seconds]
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
vlad_starkov has joined #ruby-lang
fjfish has joined #ruby-lang
postmodern has quit [Quit: Leaving]
faustman has quit [Ping timeout: 265 seconds]
faustman has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
francisfish has quit [Ping timeout: 264 seconds]
meatballhat has quit [Ping timeout: 260 seconds]
gaveen has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
JohnBat26 has quit [Remote host closed the connection]
gaveen has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gregmoreno has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 255 seconds]
apeiros_ has quit [Remote host closed the connection]
My_Hearing has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 272 seconds]
faustman has quit [Ping timeout: 250 seconds]
gsav has quit [Ping timeout: 246 seconds]
seydar has joined #ruby-lang
LordEntro has quit [Quit: Leaving.]
<seydar>
what happened to using retry in method definitions?
<seydar>
i miss it and i want it back
imperator has quit [Read error: Connection reset by peer]
imperator has joined #ruby-lang
xyzodiac has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
anachronistic has joined #ruby-lang
agarcia has quit [Quit: Konversation terminated!]
My_Hearing is now known as Mon_Ouie
davidbalber|away is now known as davidbalbert
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
JohnBat26 has joined #ruby-lang
<banisterfiend>
seydar: u can get similar by wrapping your method body in a block and calling redo
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
schaerli has quit [Remote host closed the connection]
nyuszika7h has joined #ruby-lang
rcvalle has quit [Quit: Leaving]
m3nd3s has quit [Read error: Connection reset by peer]
m3nd3s_ has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
JustAWife has quit [Quit: Page closed]
mistym has quit [Remote host closed the connection]
aedorn has joined #ruby-lang
adambeynon has joined #ruby-lang
tempestrun has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
headius has joined #ruby-lang
stevechiagozie has joined #ruby-lang
<reactormonk>
Smol, that usually isn't that hard, just do it yourself
ryanf_ has joined #ruby-lang
ryanf_ has quit [Client Quit]
ryanf_ has joined #ruby-lang
ryanf has quit [Quit: leaving]
scottschecter has quit [Quit: WeeChat 0.3.9.2]
bluepojo has joined #ruby-lang
sush24 has quit [Read error: Connection reset by peer]
m3nd3s_ has quit [Remote host closed the connection]
<outoftime>
anyone run into an issue where bundler acts as if a newer version of a bundled gem doesn't exist in the repo?
<outoftime>
'bundle update' has no effect, and hard-coding the newer version in the Gemfile causes it to throw an error saying it couldn't find that gem version
justinseiter has joined #ruby-lang
db1382 has quit [Ping timeout: 245 seconds]
<stevechiagozie>
outoftime: to get the latest bundler 'gem update bundler'
sush24 has joined #ruby-lang
<outoftime>
stevechiagozie: tried that : )
<outoftime>
i even blew away all of my gems and reinstalled from scratch -- no luck
<stevechiagozie>
oops read that wrong. thought you were looking for the latest bundler
<stevechiagozie>
you're looking for latest bundled gem
<outoftime>
yep
<stevechiagozie>
there is probably a dependency that is pinning one of your gems at the current version
<outoftime>
negative -- tried it with a fresh Gemfile specifying only that gem
<outoftime>
okay, well, i took the fairly obvious step of manually installing the gem, and bundler seems to be down with it now.
gaveen has quit [Remote host closed the connection]
glebm has joined #ruby-lang
<outoftime>
probably my crappy internet connection is causing it to fail updating the rubygems cache
ryanf has joined #ruby-lang
artOfWar has quit [Remote host closed the connection]
dreamfactory has quit [Read error: Connection reset by peer]
ryanf_ has quit [Ping timeout: 265 seconds]
chrismcg is now known as zz_chrismcg
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
scottschecter has joined #ruby-lang
havenn has quit [Ping timeout: 250 seconds]
ryanf has quit [Quit: broken pipes |||]
leopard_me has quit [Quit: Computer has gone to sleep.]
cirenyc has joined #ruby-lang
banisterfiend has joined #ruby-lang
scampbell_ has joined #ruby-lang
scampbell_ has quit [Read error: Connection reset by peer]
cultureulterior_ has quit [Quit: cultureulterior_]
carloslopes has quit [Remote host closed the connection]
scampbell has quit [Remote host closed the connection]
cultureulterior_ has quit [Quit: cultureulterior_]
davidbalbert is now known as davidbalber|away
robbyoconnor has quit [Ping timeout: 260 seconds]
m3nd3s has quit [Remote host closed the connection]
kuja has quit [Read error: Operation timed out]
kuja has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
chessguy has joined #ruby-lang
sepp2k has joined #ruby-lang
justinseiter has quit [Ping timeout: 250 seconds]
zmack has quit [Remote host closed the connection]
justinseiter has joined #ruby-lang
sush24 has quit [Ping timeout: 255 seconds]
marr has joined #ruby-lang
sush24 has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
cultureulterior_ has quit [Client Quit]
ebouchut has joined #ruby-lang
ebouchut has quit [Client Quit]
sulo has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
charliesome has joined #ruby-lang
m3nd3s has joined #ruby-lang
swav has joined #ruby-lang
davidbalbert is now known as davidbalber|away
banisterfiend has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
mjio has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
Banistergalaxy has quit [Ping timeout: 246 seconds]
slyphon__ has quit [Ping timeout: 245 seconds]
sulo has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
havenn has quit [Read error: No route to host]
havenn has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
cultureulterior_ has quit [Quit: cultureulterior_]
davidbalber|away is now known as davidbalbert
davidbalbert is now known as davidbalber|away
tenderlove has joined #ruby-lang
<ryanf>
charliesome: I really really think you should limit better_errors to localhost requests by default
<ryanf>
it's one thing to have a reasonable amount of trust in the people on the same network as you, and another one to offer every single one of them root access to your machine
<ryanf>
especially in a world where conferences, coffee shops, coworking spaces, etc exist
tenderlove has quit [Client Quit]
stevechiagozie has joined #ruby-lang
m3nd3s has quit []
m3nd3s has joined #ruby-lang
dorei has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
Banistergalaxy has quit [Client Quit]
Banistergalaxy has joined #ruby-lang
wyhaines_ has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
intellitech has quit [Quit: intellitech]
slyphon__ has joined #ruby-lang
havenn_ has joined #ruby-lang
havenn has quit [Ping timeout: 252 seconds]
cultureulterior_ has joined #ruby-lang
<epitron>
ryanf: hear hear!
<epitron>
that's the most cogent argument for localhost yet :)
cultureulterior_ has quit [Client Quit]
chaosis has joined #ruby-lang
LordEntro has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
breakingthings has quit []
JoelMcCracken has quit [Ping timeout: 244 seconds]
<cddr>
Must retry be in the lexical context of a begin/rescue?
<drbrain>
cddr: yes
<cddr>
Doh!
<drbrain>
in 1.8 this was not true
<drbrain>
cddr: there is also redo
sush24 has quit [Quit: This computer has gone to sleep]
mistym has quit [Remote host closed the connection]
sustainableweb has quit [Remote host closed the connection]
dorei has quit []
JoelMcCracken has joined #ruby-lang
dorei has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
slyphon__ has quit [Ping timeout: 245 seconds]
__BigO__ has quit [Remote host closed the connection]
meatballhat has joined #ruby-lang
ViperMaul|_ has quit [Ping timeout: 248 seconds]
enebo has quit [Quit: enebo]
swav has quit [Remote host closed the connection]
mjio has quit []
imajes has quit [Excess Flood]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
<blazes816>
Any ideas why the presence of a utf8 only character makes Ruby consider the encoding during comparison, but with no utf8 only chars it works? https://gist.github.com/4341762
imajes has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
<drbrain>
blazes816: ruby will upgrade one string to the other's encoding
outoftime has quit [Quit: Leaving]
<drbrain>
if they are compatible
intellitech has joined #ruby-lang
anachronistic has quit [Quit: anachronistic]
__butch__ has quit [Quit: Leaving.]
Axsuul has joined #ruby-lang
<blazes816>
drbrain: looking at string.c (rb_str_cmp) it looks like it checks to see if they're compatible, but doesn't change the encoding. it compares the encodings. unless i'm misunderstanding this.