apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
gregmoreno has joined #ruby-lang
Asher has quit [Quit: Leaving.]
LinkedoT has quit [Read error: Connection reset by peer]
LinkedoT has joined #ruby-lang
vlad_starkov has joined #ruby-lang
krombr has joined #ruby-lang
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby-lang
imperator has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 246 seconds]
<zzak>
good morning!
headius has quit [Quit: headius]
dingus_khan has joined #ruby-lang
hashkey has joined #ruby-lang
<charliesome>
zzak: gday
marr has quit [Ping timeout: 260 seconds]
<zzak>
trying to decide if i should cfp to rails israel
dingus_khan has quit [Remote host closed the connection]
arubin has joined #ruby-lang
hogeo has joined #ruby-lang
joevandyk_ has joined #ruby-lang
fragamus has joined #ruby-lang
joevandyk_ is now known as joevnadyk
joevnadyk is now known as joevandyk
<joevandyk>
is it usual for ruby on a 64 bit OS to take almost double the memory as running on 32?
<joevandyk>
would be unfortunate if it is and just not me being stupid. that means i have to maintain separate 32 and 64 bit OSs
<joevandyk>
and build packages for both
krskrft has joined #ruby-lang
rwk1 has joined #ruby-lang
<krskrft>
I'm having trouble understanding why one of the digits in an array is refusing to convert to a Fixnum
<krskrft>
The last digit comes over as NilClass or some reason
benxao has joined #ruby-lang
verto has joined #ruby-lang
JpC0utur3 has joined #ruby-lang
brixen has quit [Ping timeout: 245 seconds]
ryez has quit [Quit: Page closed]
<S1kx>
that moment when you have multiple google developer tools windows open and spend an hour trying to find out why stuff doesnt work but there's no output either - and then see youre looking at the wrong window the entire time
<S1kx>
dis computer business is too hard for me
brixen has joined #ruby-lang
Mawk has quit [Quit: Mawk]
lcdhoffman has joined #ruby-lang
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ykk`>
zen u there.
<ykk`>
?
towski has quit [Remote host closed the connection]
joevandyk has quit [Quit: joevandyk]
lsegal has joined #ruby-lang
pr0ton has quit [Ping timeout: 260 seconds]
LinkedoT has quit [Quit: This computer has gone to sleep]
injekt has quit [Remote host closed the connection]
injekt has joined #ruby-lang
<ykk`>
krskrft: why did you choose a for construct and a range?
dingus_khan has joined #ruby-lang
<krskrft>
basically, i'm going to be working with a much larger initial number later on
<krskrft>
i'm trying to take five digits at a time, move them over to another array, and them perform math on them
<krskrft>
the problem is that the fifth number i bring over can't have math performed on it, because it's NilClass for some reason
<krskrft>
i changed the loop to a 5.times do construct, but i still get the same problem
<ykk`>
well i'm new so i don't want to take you down the wrong path but why not just iterate through the array with an enumerator instead of a range
<krskrft>
(and yes, my ruby style is completely borked … new to the language)
hackeron has quit [Read error: Operation timed out]
dingus_khan has quit [Remote host closed the connection]
<ykk`>
you keep pushing things into other arrays
<ykk`>
i don't understand that logic
<krskrft>
well, i'm working through a larger problem
<krskrft>
this is just me getting some basic functionality down … the constructs can change later
<ykk`>
is it normal to work like that?
<ykk`>
how much larger is larger?
teleological has joined #ruby-lang
<krskrft>
essentially, i have a huge number, i convert it to a string, i separate those digits in an array, and then i have another array, with which i work with five of those digits at a time
<krskrft>
my problem is getting the fifth digit to do what i anticipated (be pulled over as a Fixnum)
<ykk`>
well why even convert them to a string?
<krskrft>
that's not the problem
<ykk`>
but i'm curious to learn
Averna has joined #ruby-lang
<krskrft>
because i'm taking things step by step, assuming numerical input
<ykk`>
if it's all math why convert them to a string? integers can go into an array
<krskrft>
later on, i'll probably just bring them in from a file, so doing all that hocus pocus won't be necessary
<krskrft>
because i can use string methods to split the numerical input up over an array
<ykk`>
that's not a reason why you would turn integers to a string to do math
jacktrick has quit [Quit: Leaving]
<ykk`>
over an array?
crudson1 has joined #ruby-lang
<krskrft>
into an array
<ykk`>
well you don't need to do that in ruby
<krskrft>
split the "digits" (since they're chars)
<ykk`>
integers can go into an array
<ykk`>
and there are enumerators that will do that for you
<ykk`>
such as #map I believe
<krskrft>
okay, well that's not really the problem i'm having
<ykk`>
yes it is
<krskrft>
no, it really isn't
<ykk`>
your foundation is flawed
dingus_khan has joined #ruby-lang
<ykk`>
therefor you're running into problems
<ykk`>
structure = win
<ykk`>
always
<ykk`>
that's why you have a nilclass
<krskrft>
i don't believe that's why i have nilclass
<ykk`>
ruby will return nil if there's nothing int hat space in the array
<krskrft>
okay, that's the answer i was looking for
<ykk`>
NilClass
dingus_khan has quit [Remote host closed the connection]
RahulT has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ykk`>
k
<krskrft>
that's an interesting situation, because 5 is transferred over, but it's not cast to a Fixnum for some reason
<krskrft>
why does that happen?
<krskrft>
that's what i'm trying to understand
<ykk`>
cast?
<krskrft>
if nothing is there, then there would be no "5" printed
<ykk`>
well because you made things into a string maybe
<ykk`>
maybe try something different and play with map see if you get a different result
<ykk`>
and don't play with strings
<ykk`>
if nothing is there you will get nil
<ykk`>
because ruby is an OO language
<ykk`>
everything is an object
<ykk`>
therefor
<ykk`>
nothing is an object
<ykk`>
NilClass
<krskrft>
i guess what i'm understanding is how "nothing" is there
<krskrft>
err not understanding
<ykk`>
because it's an object
<krskrft>
i'm going to play around with the map, but i'm actually curious about why that is
<ykk`>
corundum: NilClass
ikrima has joined #ruby-lang
<ykk`>
isn't that thing a bot :\
<ykk`>
well go read about NilClass it's an actual class in the Ruby-Doc
<krskrft>
so i have an array of strings, representing digits from 1 - 0
<krskrft>
i pull over 1, 2, 3, 4, 5 casting them to Fixnums as i go
<krskrft>
i print the resulting array
<krskrft>
it prints 1, 2, 3, 4, 5, but the class for 5 is NilClass
<ykk`>
if you want a string to represent a digit it's done with key => value pairs
<krskrft>
why would it be NilClass, but still give me 5?
<ykk`>
usually
<krskrft>
in other words, why doesn't that 5 get cast? it's not there? then why is "5" there (just not as a Fixnum)?
Nisstyre-laptop has joined #ruby-lang
<krskrft>
so weird
<ykk`>
never heard of cast
<krskrft>
to_i, to_s, etc
<krskrft>
that's casting
<ykk`>
and didn't understand what you meant 1 - 0
<krskrft>
1, 2, 3, 4, 5, 6, 7, 8, 9, 0
somasonic has joined #ruby-lang
<ykk`>
These are Ruby Basics, I recommend you checkout the 20 minute tutorial on the ruby-lang homepage because ruby starts at 0
<ykk`>
0, 1, 2, 3, etc
<krskrft>
the 6, 7, 8, 9, 0 don't even matter for these purposes
<krskrft>
i'm only isolating those first five digits
<krskrft>
they could just as easily be totally arbitrary digits
krombr has quit [Remote host closed the connection]
towski has joined #ruby-lang
ia___ has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 245 seconds]
towski has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
Johz has quit [Read error: Connection reset by peer]
dingus_khan has quit [Remote host closed the connection]
cordax has joined #ruby-lang
dingus_khan has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
io_syl has joined #ruby-lang
rippa has joined #ruby-lang
io_syl has quit [Ping timeout: 264 seconds]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
fedesilva has quit [Read error: Connection reset by peer]
io_syl has joined #ruby-lang
fedesilva has joined #ruby-lang
mdedetrich has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
LinkedoT has quit [Quit: This computer has gone to sleep]
LinkedoT has joined #ruby-lang
JpC0utur3 has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
macmartine has joined #ruby-lang
areil has joined #ruby-lang
Asher has joined #ruby-lang
<cordax>
if I have an array of objects and another array of objects and I try subtracting one from the other, shouldn't it remove the objects that are common to each other?
dhruvasagar has joined #ruby-lang
areil has quit []
<bnagy>
yes
<bnagy>
well.. it won't modify the originals, it will return a new array
DomKM has quit [Read error: Connection reset by peer]
DomKM has joined #ruby-lang
bzalasky has joined #ruby-lang
Bosox20051 has joined #ruby-lang
<cordax>
bnagy thanks, thats what I was missing
bzalasky has quit [Remote host closed the connection]
Jefferson has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
JpC0utur3 has joined #ruby-lang
teleological has joined #ruby-lang
LinkedoT has quit [Quit: This computer has gone to sleep]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mistym has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
S1kx has quit [Ping timeout: 264 seconds]
chrishunt has quit [Quit: So long...]
dingus_khan has quit [Ping timeout: 264 seconds]
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
rhodee has joined #ruby-lang
dingus_khan has joined #ruby-lang
perry has joined #ruby-lang
JpC0utur3 has quit [Ping timeout: 256 seconds]
therealnoop has joined #ruby-lang
gja has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Remote host closed the connection]
cordax has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby-lang
amerine has joined #ruby-lang
bzalasky has joined #ruby-lang
S1kx has quit [Quit: Leaving]
rippa has quit [Ping timeout: 240 seconds]
rhodee has quit [Quit: Lost terminal]
macmartine has quit [Quit: Computer has gone to sleep.]
<dingus_khan>
is there a way to get rid of array levels that isn't flatten?
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
towski has joined #ruby-lang
rwk1 has quit [Ping timeout: 246 seconds]
xxaM has joined #ruby-lang
workmad3 has joined #ruby-lang
_ffio_ has quit [Ping timeout: 276 seconds]
sherodtaylor has joined #ruby-lang
rhodee has joined #ruby-lang
<charliesome>
dingus_khan: why do you ask
apeiros has quit [Remote host closed the connection]
_ffio_ has joined #ruby-lang
hhatch has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
setmeaway2 has joined #ruby-lang
towski has quit [Read error: Connection reset by peer]
towski has joined #ruby-lang
Jefferson has quit [Ping timeout: 276 seconds]
__carlos has quit [Quit: __carlos]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
workmad3 has quit [Ping timeout: 246 seconds]
fedesilv_ has joined #ruby-lang
rwk1 has joined #ruby-lang
rhodee has quit [Quit: leaving]
hashkey has quit [Quit: Leaving]
rhodee has joined #ruby-lang
rhodee has quit [Client Quit]
rhodee has joined #ruby-lang
rhodee has quit [Client Quit]
rhodee has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
fedesilva has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby-lang
rhodee has quit [Client Quit]
rhodee has joined #ruby-lang
towski has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 256 seconds]
bzalasky has joined #ruby-lang
rhodee has quit [Client Quit]
rhodee has joined #ruby-lang
benxao has quit [Remote host closed the connection]
rhodee has quit [Client Quit]
tomzx_mac has quit [Ping timeout: 260 seconds]
rhodee has joined #ruby-lang
rhodee has quit [Client Quit]
rhodee has joined #ruby-lang
teleological has quit [Remote host closed the connection]
<bnagy>
don't know why it is different on jruby though
<bnagy>
charliesome: ( or anyone ) does eval.in have a leader for jruby?
xxaM has quit [Ping timeout: 256 seconds]
<injekt>
jruby isn't even on eval.in
<injekt>
mri/rbx/mruby
<bnagy>
bugger
<jds>
Anyway, the way this all started was - I was trying to figure out a way of deep-searching a hash of hashes. Best I've got so far is https://gist.github.com/jdelStrother/5728010, but it doesn't exactly read nicely. Any better suggestions?
<jds>
Adding a Hash#deep_any? method would be a bit cleaner, but I don't like polluting core classes like that. And I suspect I'd end up adding Hash#deep_select, Hash#deep_map, Hash#deep_blah blah blah
<jds>
(Obviously that gist is subject to infinite loops, let's ignore that for now...)
<injekt>
why dont you use a method so its not ugly?
kleech has joined #ruby-lang
<jds>
injekt: TBH, I think it's because I can't figure out where to put the method.
<injekt>
jds: you want a deep check to find any value that is 3?
poga has quit [Read error: Connection reset by peer]
epus has joined #ruby-lang
<injekt>
jds: I would just add it wherever you need it, if you need it in a few places, mix it in using a module
rwk1 has joined #ruby-lang
poga has joined #ruby-lang
RahulT has quit [Ping timeout: 240 seconds]
jonahR has quit [Quit: jonahR]
jonahR has joined #ruby-lang
<injekt>
kleech: it'll probably be fine, though a singleton across threads it usually asking for trouble
<injekt>
but yeah it looks like everything you're using is stored on the current thread anyway, it depends on how you're using this class, though.. the class can still be modified via different threads
<kleech>
injekt: I was wondering if I really need the singelton actually, since I assume Thread.current[key] is global anyway, the same instance when called from any object.
<injekt>
yorickpeterse: what kinda of hackery crap are you up to?
<injekt>
kleech: right you could just store a different instance per thread
<injekt>
kleech: which could be easier to manage
<kleech>
injekt: I will not control the threading
<injekt>
right now all threads point to the same instance, but the instance stores a set in different threads
<injekt>
I think that's confusing
<yorickpeterse>
injekt: Perl
<yorickpeterse>
wrapped in Ruby
<injekt>
but... why?
<yorickpeterse>
expect blag post this weekend, at least if I get to it
<kleech>
injekt: you would allow a new object, so no Singelton and use Thread.current to make it safe
<yorickpeterse>
injekt: because $EXTERNAL_COMPANY wrote stuff in Perl, we want a Ruby interface
<yorickpeterse>
and various other reasons
<yorickpeterse>
did you see my extconf hack yesterday?
<injekt>
kleech: sure but if you dont control threading I dont see why you're using threads, why not just make your class normal and whoever uses it can work on keeping control thread safe?
<injekt>
yorickpeterse: yeah I vommed a little
<injekt>
Why not just write the perl?
<yorickpeterse>
...it is in Perl
<injekt>
(I'm saying that as a perlist) but still
<injekt>
heh
<yorickpeterse>
we're wrapping Perl code in a Rubygem
<yorickpeterse>
and providing a basic Ruby API for it
<injekt>
that sentence makes me sad
<yorickpeterse>
Mind you this Perl code is pretty bad, you don't want to touch it directly
<injekt>
rewrite it all!
<yorickpeterse>
yeah there's good reasons we're doing it this way
<kleech>
injekt: I just remove Singelton and :s/instance/new and all specs continue to pass :)
<yorickpeterse>
try getting about a dozen companies from all across Europe to agree on using one language
<yorickpeterse>
(most of them use Java, which isn't that hard to wrap luckily)
<yorickpeterse>
We're sort of the glue between lots of different codebases written by people with different skill levels
<lianj>
wrap it all, for performance
<kleech>
injekt: no, but I mean I can remove the Singelton, its not need to get the feature to work. I wish there was a way to test threading...
<injekt>
yorickpeterse: dont you hate rails but write it too? :D
<yorickpeterse>
injekt: basically
<injekt>
kleech: ah ok
<yorickpeterse>
but I'm like mr burns, I like doing evil things
<injekt>
I work with a rails core member so I cant really complain too much
atmosx has joined #ruby-lang
<yorickpeterse>
meh, the people I work with are sane
<yorickpeterse>
so it's not that bad
<yorickpeterse>
The autoloading is what pisses me off the most these days
<yorickpeterse>
mostly because Pry is all "OMMGGGGGG I CAN'T FIND THIS BECAUSE .SOURCE_LOCATION ISN'T THERE"
<lianj>
yorickpeterse: why? oh…
<injekt>
heh
<lianj>
you use/need pry that much?
<injekt>
I've started using focused_controller for rails stuff and it's actually so much nicer
<yorickpeterse>
lianj: yes, I couldn't live without it
<lianj>
yorickpeterse: we have different workflows than
sush24 has quit [Ping timeout: 264 seconds]
<yorickpeterse>
how so?
<yorickpeterse>
Using Pry a lot isn't exactly related to "complex code" or anything
<lianj>
dunno, never felt the need for pry when doing tdd
<injekt>
I use pry for debugging, that's it
<darix>
+1
<darix>
sometimes also for prototyping
dhruvasagar has quit [Ping timeout: 246 seconds]
<yorickpeterse>
tdd doesn't solve the problem of "wtf is going on here"
<darix>
then just copy the code from pry history files to the real script
<darix>
lianj: binding.pry is just amazing
<kleech>
Anyone know how Thread.current is GC'd? I mean if the thread is long running, will setting it to nil get it GC'd?
<yorickpeterse>
You can't set Thread.current to nil
<lianj>
injekt: i must be uber pro then or just lucky i don't have to debug very often
<injekt>
lianj: I didn't say I need to debug often :D
<lianj>
:P
<kleech>
yorickpeterse: to clarify, Thread.current[some_key]
<yorickpeterse>
Ah
<kleech>
yorickpeterse: sounds like potential memory leak... looking in to it...
<yorickpeterse>
should be GC'd just fine if you set it to nil
<kleech>
yorickpeterse: any suggestion of tools I can use to find out?
<injekt>
I dont think anything in the threads are GC'd until the thread is terminated?
<injekt>
not sure though
<yorickpeterse>
kleech: eh, memory anylysis in Ruby is a bit of a pita
dr_bob has joined #ruby-lang
<yorickpeterse>
* analysis
<yorickpeterse>
but yeah, if the thread is gone so should be the data stored in it
<injekt>
I think his point is that the thread is not gone, it's running for a long time but he still wants the stuff in the Thread.current hash to be GC'd
<kleech>
yeah, its a long running thread, I assume the like of threaded Rack don't start up a thread per request but reuse from a pool?
xxaM has joined #ruby-lang
<kleech>
injekt: correct
<injekt>
Threads are ghetto
<injekt>
omakase
sush24 has joined #ruby-lang
<charliesome>
yorickpeterse: yeah autoloading in rails bit me
<kleech>
I think if I at least set the var to an empty array or nil that will help.
<charliesome>
i patched activesupport's constantize to use Object.const_get
<charliesome>
noooope
<injekt>
it uses const_get dosn't it?
sush24 has quit [Client Quit]
<yorickpeterse>
kleech: you might want to take a look at ruby-prof
<charliesome>
injekt: activesupport uses something along the lines of
<charliesome>
ruby 2.0 extends const_get so you can use it with qualified class paths
<charliesome>
Object.const_get("Net::HTTP") for instance
LinkedoT has joined #ruby-lang
<charliesome>
doesn't play well with rails autoloading
<injekt>
oh weird I thought that worked in 2.0
<injekt>
pre 2.0*
<charliesome>
we were seeing really weird issues
<charliesome>
in prod
GeissT has quit [Quit: AdiIRC is updating to v1.9.1 Beta Build (060613) 32 Bit]
sush24 has joined #ruby-lang
<charliesome>
that didn't show up in dev or in tests because of things being autoloaded in different orders
GeissT has joined #ruby-lang
LinkedoT has quit [Client Quit]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
sush24_ has joined #ruby-lang
mdedetrich has quit [Ping timeout: 246 seconds]
s0ber_ has joined #ruby-lang
s0ber has quit [Read error: Connection reset by peer]
s0ber_ is now known as s0ber
sush24 has quit [Read error: Connection reset by peer]
<injekt>
:D
<injekt>
omakase
<GarethAdams>
Oh. My. Kase
<injekt>
Oh. My. khaase
<yorickpeterse>
oh my kaas
mdedetrich has joined #ruby-lang
<charliesome>
:omakase
<yorickpeterse>
omakase:
<charliesome>
!ruby/object: omakase
nevill has quit [Quit: nevill]
<andrewvos>
Right that joke is over
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
Domon has quit [Read error: Connection reset by peer]
Domon has joined #ruby-lang
<yorickpeterse>
that's what....nevermind
<Joni_79>
I'm going to assume it is ok to ask stupid and very basic questions here: For a predefined array, what is the difference between array[0..2] and array[0...2] ? Also a link to a good reference list on notations and syntax would be appreciated. :)
<yorickpeterse>
.. is an inclusive range, ... exclusive
zommi has quit [Remote host closed the connection]
rippa has joined #ruby-lang
rindolf has joined #ruby-lang
<rindolf>
Hi all.
sush24 has joined #ruby-lang
rwk1 has joined #ruby-lang
Mawk has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
epus has quit [Quit: epus]
machuga|away is now known as machuga
xxaM has quit [Quit: ZzZz]
machuga is now known as machuga|away
LinkedoT has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
sush24 has quit [Ping timeout: 246 seconds]
LinkedoT has quit [Ping timeout: 256 seconds]
vlad_sta_ has quit [Remote host closed the connection]
<mdedetrich>
does anyone know if its possible to use HAML to generate HTML for form builders instead of having to use things like @template.content_tag and whatnot?
<judofyr>
mdedetrich: try #rubyonrails
<mdedetrich>
woops shit, wrong channel
<mdedetrich>
my bad
<judofyr>
no worries
sush24 has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
eponymi has joined #ruby-lang
sush24 has quit [Ping timeout: 240 seconds]
<judofyr>
yorickpeterse: did you solve your Perl problems?
<yorickpeterse>
judofyr: except Cpan is rolling release
<yorickpeterse>
and we don't control this Perl code
<yorickpeterse>
and have no guarantee that newer versions will work
<yorickpeterse>
plus this particular module is 10 years old
<yorickpeterse>
and cpan isn't always configured
<yorickpeterse>
etc
<yorickpeterse>
Making sure all that work is a lot harder than just saying "Fuckit, we'll vendor it"
LinkedoT has quit [Ping timeout: 264 seconds]
LinkedoT has joined #ruby-lang
<yorickpeterse>
in this case it really is just a loop over some directories and running `perl Makefile.PL PREFIX=....` followed by make and make install
sush24 has quit [Read error: Connection reset by peer]
<yorickpeterse>
man I should really blag this, I can't explain this shit over IRC
vlad_starkov has quit [Remote host closed the connection]
Uranio has quit [Quit: while you reading this, a kitty dies]
Silex has quit [Read error: Operation timed out]
swav has quit [Remote host closed the connection]
glebm has quit [Quit: Computer has gone to sleep.]
nirix has joined #ruby-lang
Silex has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
jnoon has joined #ruby-lang
runeb has joined #ruby-lang
saarinen has quit [Quit: saarinen]
<jnoon>
here is an odd one, anyone have a guess? in my rspec tests, for some reason an object isnt returning true to obj.is_a?(Movie), but inspecting the object shows it is a Movie, and obj.class shows Movie, however obj.class == Movie returns FALSE, and obj.class.object_id is different from Movie.object_id.
saarinen has joined #ruby-lang
<jnoon>
so somehow i have two different Movie classes, but no idea how that could happen
dingus_khan has joined #ruby-lang
runeb has quit [Ping timeout: 276 seconds]
lcdhoffman has joined #ruby-lang
srji has quit [Ping timeout: 248 seconds]
epus has joined #ruby-lang
teleological has joined #ruby-lang
krames has joined #ruby-lang
<apeiros>
jnoon: things like rails' reloading process can do that
<jnoon>
apeiros: yes, i think you nailed it… i was just looking through recent changes and we added spring. im pretty sure i know how to fix it now
<apeiros>
>> class X; end; a = X; Object.send(:remove_const, :X); class X; end; [a, X, a.object_id, X.object_id]
glebm has quit [Quit: Computer has gone to sleep.]
<joevandyk>
we also run lolshirts.com, bellechic.com, and discountmags.com
<joevandyk>
so it's not all banana hammocks here
maxmanders has joined #ruby-lang
<apeiros>
sounds like a fun problem
<apeiros>
I'd specify what "large order" means, and provide an example which can be used to test the time limit.
<apeiros>
also, "0.01s" without hardware spec is pointless
elia has joined #ruby-lang
wmoxam_ has joined #ruby-lang
wmoxam has quit [Ping timeout: 264 seconds]
mikewintermute has quit [Quit: mikewintermute]
rippa has quit [Ping timeout: 240 seconds]
<joevandyk>
apeiros: i guess any reasonable machine, if a 200+ item order takes 0.2 seconds, it's not a problem. but i don't want a 8 item order taking 8 seconds while figuring out all the possible combinations
krohrbaugh has joined #ruby-lang
dingus_khan has joined #ruby-lang
workmad3 has joined #ruby-lang
rwk1 has joined #ruby-lang
dwainfaithfull has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
dingus_khan has quit [Ping timeout: 252 seconds]
rwk1 has quit [Ping timeout: 252 seconds]
jsullivandigs has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
jsullivandigs has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 252 seconds]
gmci has quit [Ping timeout: 248 seconds]
loincloth has quit [Remote host closed the connection]
wesside_ has quit [Quit: Computer has gone to sleep.]