apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
mistym has joined #ruby-lang
charliesome has joined #ruby-lang
DouweM has quit [Quit: Leaving...]
workmad3 has quit [Ping timeout: 246 seconds]
smashwilson has joined #ruby-lang
smashwilson has left #ruby-lang [#ruby-lang]
thepumpkin has joined #ruby-lang
Locke23rus has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
thepumpkin has quit [Ping timeout: 248 seconds]
sulo has joined #ruby-lang
CoreData has quit [Ping timeout: 240 seconds]
lun__ has joined #ruby-lang
CoreData has joined #ruby-lang
ruby-lang604 has quit [Ping timeout: 250 seconds]
sulo has quit [Ping timeout: 245 seconds]
ecnalyr has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
lun__ has quit [Ping timeout: 272 seconds]
zz_michael_mbp is now known as michael_mbp
dingus_k_ has quit [Remote host closed the connection]
bzalasky_ has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
datanoise has joined #ruby-lang
bzalasky has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 245 seconds]
micalexander has joined #ruby-lang
michael_mbp is now known as zz_michael_mbp
dingus_khan has quit [Ping timeout: 245 seconds]
bzalasky has quit [Ping timeout: 245 seconds]
jsullivandigs has joined #ruby-lang
marcdel has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 272 seconds]
Tearan has quit [Ping timeout: 272 seconds]
davispuh has quit [Quit: Konversation terminated!]
pabloh has quit [Quit: Saliendo]
VTLob has quit [Quit: VTLob]
postmodern has joined #ruby-lang
Technodrome has quit [Quit: Technodrome]
atmosx has quit [Quit: Lost in trance]
Forgetful_Lion has quit [Remote host closed the connection]
Oloryn_lt2 has joined #ruby-lang
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
micalexander has quit [Remote host closed the connection]
toretore has quit [Quit: Leaving]
micalexander has joined #ruby-lang
micalexa_ has joined #ruby-lang
micalexander has quit [Read error: Connection reset by peer]
RickHull has quit [Quit: Leaving.]
<micalexa_>
I have a folder called test in my gem directory. In it I have a file that requires "minitest/autorun" and I have a single test on it. How do I run it?
<whitequark>
ruby -I test/*.rb
<whitequark>
er, ruby test/*.rb. that's all.
<micalexa_>
er?
sulo has joined #ruby-lang
<micalexa_>
whitequark: what does the "er" mean?
Nilium has quit [Read error: Connection reset by peer]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<whitequark>
nothing. I just typoed in the previous message.
<whitequark>
"ruby test/*.rb" should do it.
<micalexa_>
whitequark: ok, do I need to require the class, cause it just hangs? (first time running a test on anything ever)
sulo has quit [Ping timeout: 245 seconds]
Nilium has joined #ruby-lang
<whitequark>
hangs? it shouldn't do that. an error, maybe.
<micalexa_>
whitequark: nvm
ecnalyr has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
Johz has quit [Quit: Leaving]
omninonsense has joined #ruby-lang
<micalexa_>
whitequark: so i am correct by thinking I have to require all class that I want to test, or is there another way?
<whitequark>
usually you group all the requires (and other helper code) in a file called test/test_helper.rb
<whitequark>
then you require_relative 'test_helper' at the start of each test file
<micalexa_>
makes sense cool
[spoiler] has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby-lang
dingus_khan has joined #ruby-lang
dingus_khan has quit [Ping timeout: 245 seconds]
jiuweigui has quit [Quit: iQuit!]
havenwood has joined #ruby-lang
spuk has joined #ruby-lang
<Technodrome>
in ruby what is the << operator called?
<whitequark>
left shift, just like everywhere
spuk has quit [Client Quit]
lianj has joined #ruby-lang
spuk has joined #ruby-lang
<Technodrome>
i thought it might have a special name whitequark
hahuang65 has quit [Ping timeout: 260 seconds]
thepumpkin has joined #ruby-lang
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bzalasky has joined #ruby-lang
<havenwood>
Technodrome: I associate 'append' with it.
thepumpkin has quit [Ping timeout: 245 seconds]
Technodrome has quit [Quit: Technodrome]
hahuang65 has joined #ruby-lang
arBmind1 has joined #ruby-lang
sulo has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
face has quit [Ping timeout: 246 seconds]
jsullivandigs has joined #ruby-lang
lun__ has joined #ruby-lang
nertzy2 has joined #ruby-lang
sulo has quit [Ping timeout: 240 seconds]
face has joined #ruby-lang
lun__ has quit [Ping timeout: 260 seconds]
ecnalyr has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 272 seconds]
earthquake has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
nertzy2 has quit [Quit: This computer has gone to sleep]
gnufied has quit [Ping timeout: 260 seconds]
mistym_ is now known as mistym
jsullivandigs has joined #ruby-lang
<micalexa_>
what does this mean in reference to version dependency ~>
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
zz_michael_mbp is now known as michael_mbp
symm- has quit [Ping timeout: 272 seconds]
gnufied has joined #ruby-lang
face has quit [Ping timeout: 246 seconds]
face has joined #ruby-lang
kitak has quit [Remote host closed the connection]
<micalexa_>
~>
<ezkl>
micalexa_: '~> 4.1.0' means all versions >= 4.1.0 and <= 4.1.any_number_greater_than_zero
kitak has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
<whitequark>
>= 4.1.0 < 4.2
<micalexa_>
so greater than or equal to 4.1.0 but less than 4.2?
<micalexa_>
any dot but not the next ful?
flip_digits has quit []
banisterfiend has quit [Quit: Computer has gone to sleep.]
hahuang65 has quit [Ping timeout: 245 seconds]
kitak has quit [Ping timeout: 246 seconds]
earthquake has quit [Quit: earthquake]
bzalasky has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby-lang
<whitequark>
yes
jsullivandigs has quit [Quit: Leaving...]
x0f has quit [Read error: Operation timed out]
<micalexa_>
cool thanx
earthquake has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
hahuang65 has joined #ruby-lang
x0f has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
jxie_ has joined #ruby-lang
hahuang65 has quit [Ping timeout: 245 seconds]
WeirdThall is now known as WeirdThallAFK
micalexa_ has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
bf4 has joined #ruby-lang
micalexander has quit [Ping timeout: 245 seconds]
x0f has quit [Ping timeout: 272 seconds]
x0f has joined #ruby-lang
ikrima has joined #ruby-lang
nisstyre has joined #ruby-lang
x0f has quit [Ping timeout: 245 seconds]
<r0bgleeson>
how expensive is a raising an exception?
sulo has joined #ruby-lang
<r0bgleeson>
if i knew I do it on every rails is it a problem?
<r0bgleeson>
I could do it*
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<whitequark>
quite expensive, avoid it if you can
mistym_ has joined #ruby-lang
<r0bgleeson>
whitequark: i think i might be able to make rails3+ do it with a TCPSocket
<r0bgleeson>
whitequark: by not encoding unicode characters
mistym has quit [Disconnected by services]
mistym_ is now known as mistym
x0f has joined #ruby-lang
<r0bgleeson>
whitequark: is it expensive in that sense too? (not just application code raising to interrupt control flow)
sulo has quit [Ping timeout: 246 seconds]
<r0bgleeson>
oh well ive written a middleware to fix it so we'll see
x0f has quit [Ping timeout: 246 seconds]
ecnalyr has joined #ruby-lang
mrpot4to_ has joined #ruby-lang
x0f has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
kitak has joined #ruby-lang
x0f has quit [Ping timeout: 246 seconds]
x0f has joined #ruby-lang
styped has joined #ruby-lang
earthquake has quit [Quit: earthquake]
bzalasky has joined #ruby-lang
RickHull has joined #ruby-lang
nvg has quit [Quit: Leaving]
dorei has quit []
jonahR has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
madb055 has joined #ruby-lang
thepumpkin has joined #ruby-lang
sleepee has joined #ruby-lang
thepumpkin has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
Barrin6 has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
<Barrin6>
sup gang
yfeldblum has joined #ruby-lang
jithu has joined #ruby-lang
mrpot4to_ has quit [Read error: Connection reset by peer]
sulo has joined #ruby-lang
MrPot4to has joined #ruby-lang
lun__ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
charlespeach has joined #ruby-lang
havenwood has joined #ruby-lang
Tearan has joined #ruby-lang
sulo has quit [Read error: Operation timed out]
lun__ has quit [Ping timeout: 245 seconds]
ecnalyr has joined #ruby-lang
havenwood has quit [Ping timeout: 272 seconds]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
spuk has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
jonahR has quit [Quit: jonahR]
x0f has quit [Ping timeout: 272 seconds]
x0f has joined #ruby-lang
earthquake has joined #ruby-lang
Tearan has quit [Ping timeout: 245 seconds]
CaptainJet has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
bzalasky has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
bzalasky has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
bzalasky has quit [Ping timeout: 240 seconds]
earthquake has quit [Quit: earthquake]
bf4 has quit [Ping timeout: 245 seconds]
tomzx_mac has quit [Ping timeout: 272 seconds]
CaptainJet has quit [Ping timeout: 272 seconds]
tomzx_mac has joined #ruby-lang
Croesus_ has joined #ruby-lang
sulo has joined #ruby-lang
charlespeach has quit [Quit: charlespeach]
Croesus has quit [Ping timeout: 272 seconds]
Croesus has joined #ruby-lang
styped has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sulo has quit [Ping timeout: 240 seconds]
Croesus_ has quit [Ping timeout: 272 seconds]
MrPot4to has quit [Read error: Connection reset by peer]
MrPot4to has joined #ruby-lang
ecnalyr has joined #ruby-lang
tomzx_mac has quit [Read error: Operation timed out]
superman1125 has quit [Remote host closed the connection]
superman1125_ has quit [Remote host closed the connection]
superman1125 has joined #ruby-lang
atmosx has quit [Quit: computer went to sleep...]
vlad_starkov has quit [Ping timeout: 245 seconds]
[spoiler] has quit [Ping timeout: 246 seconds]
[spoiler] has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<Technodrome>
[spoiler]: just watching star trek :)
banisterfiend has quit [Quit: Computer has gone to sleep.]
cads has joined #ruby-lang
banisterfiend has joined #ruby-lang
pbjorklund_ has joined #ruby-lang
Johz has quit [Ping timeout: 260 seconds]
pbjorklund_ has left #ruby-lang [#ruby-lang]
pbjorklund_ has joined #ruby-lang
<[spoiler]>
Technodrome: oh nice :D
<Technodrome>
i understand ruby so much better now, just a few little quirks here and there
<[spoiler]>
Well, that's why this channel exists! :D
pbjorklund_ has left #ruby-lang [#ruby-lang]
<Technodrome>
still not quite sure how a class is a module and a module is a class but that's ok for now i guess :)
<MrZYX>
Module is a class, a module Foo <- Foo is not a class
nathanstitt has joined #ruby-lang
thepumpkin has joined #ruby-lang
nathanstitt has quit [Client Quit]
<Technodrome>
MrZYX: not sure why, but that seems like it doesn't make sense, so a Module is a class but the declaration of one is not? i don't get that
<MrZYX>
not a Module is a class, Module is one, the object assigned to the constant Module
<DouweM>
a class is an instance of Class, a module is an instance of Module. Class < Module, so a class is also an instance of Module
<[spoiler]>
A Module is a class (because all objecs must have a class), however a Class inherits from Module
thepumpkin has quit [Ping timeout: 245 seconds]
<DouweM>
and yeah, Class and Module themselves are classes, i.e. 'Module' is an instance of Class, and 'Class' is an instance of Class itself. Yeah, this can get confusing.
Croesus_ has joined #ruby-lang
<[spoiler]>
I mean, most of the time, you don't really need to concern yourself with this
<[spoiler]>
A class's superclass is Module, because Class is a child of Module, but a Module is a class, because there's no object without a class
<[spoiler]>
And all objects have a parent class
<[spoiler]>
except for BasicObjec
<[spoiler]>
BasicObject
workmad3 has joined #ruby-lang
<banisterfiend>
Technodrome there's an extra level of abstraction there that you'll probably find confusing for a while longer. It'll come naturally probably don't bother thinking about it 4 now
Croesus has quit [Ping timeout: 240 seconds]
<DouweM>
if you want to be confused anymore, look into metaclasses
<Technodrome>
eigenclass stuff?
<Technodrome>
class << self from inside a class etc?
<DouweM>
yeah
<Technodrome>
i get that pretty well now, i don't want to say perfectly but i get it
<Mon_Ouie>
Doesn't have to be from inside a class, any object has one
<Technodrome>
[spoiler] spent some time explaining that and I did a bunch of reading in ruby under a microscope on it
<Technodrome>
Mon_Ouie: sure
<Technodrome>
its the first level of method lookup
Croesus_ has quit [Ping timeout: 245 seconds]
<[spoiler]>
Yeah, all objects have a singleton class
<banisterfiend>
[spoiler] not all :) and most of them don't have them until you ask for them (They're created lazily) :P
<[spoiler]>
(what does eigen even mean??? why not call them singleton classes)
<[spoiler]>
banisterfiend: Yeah I know! :D but they ~can~ have one
<banisterfiend>
eigen is german for 'own' i think
<[spoiler]>
ooh
<banisterfiend>
[spoiler] not numbers and other immediates etc
<DouweM>
banisterfiend: can confirm. Same in Dutch
kurko_ has joined #ruby-lang
yhsgw has joined #ruby-lang
<[spoiler]>
banisterfiend: those throw a type-error, though, right?
<banisterfiend>
looks like it
<[spoiler]>
aye, just tried it
elia has quit [Read error: Connection reset by peer]
<Technodrome>
its good rails has an assets pipeline so we can just throw that stuff in and not worry about the conversion and everything linking up propertly
heftig has joined #ruby-lang
<DouweM>
yeah, thank Sprockets for that
<[spoiler]>
scss is an enriched css, while sass it like the haml of css
<[spoiler]>
i mean, i over-simplified it, but that's how I always felt about them
<DouweM>
right, that's how they feel, but save for that minor syntax difference they're exactly the same thing
<Technodrome>
i remember back in 2009 saying i was going to use it, used it for 2 minutes, went right back to JS
<Technodrome>
shame on me , shame
<DouweM>
think of all the parentheses and semicolons you could have saved!
sulo has joined #ruby-lang
<workmad3>
Technodrome: SCSS was introduced to allow normal CSS to be valid SASS basically :)
<Technodrome>
ah
<workmad3>
Technodrome: so more like LESS... CSS is valid, but with extras rather than a whole new syntax
<Technodrome>
DouweM: and just the easiness of creating a class if i just need it
<Technodrome>
yeah, don't care about that, sass is good
x0f has quit [Ping timeout: 246 seconds]
<workmad3>
and yeah, coffeescript is nice :) although I think it's better to come to it with an understanding of JS still (it's a particularly leaky abstraction :) )
x0f has joined #ruby-lang
datanoise has joined #ruby-lang
<DouweM>
oh yeah, definitely
<DouweM>
you still need to know JS to write effective CS
sulo has quit [Ping timeout: 240 seconds]
ecnalyr has joined #ruby-lang
yhsgw has quit [Quit: Leaving.]
x0f has quit [Ping timeout: 245 seconds]
sulo has joined #ruby-lang
nertzy2 has joined #ruby-lang
lun__ has quit [Remote host closed the connection]
x0f has joined #ruby-lang
lun__ has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
lun__ has quit [Ping timeout: 260 seconds]
x0f has quit [Ping timeout: 272 seconds]
<[spoiler]>
back :-)
x0f has joined #ruby-lang
lun__ has joined #ruby-lang
<[spoiler]>
kith: did you require the calculate gem inside your project?
<[spoiler]>
kith: you'll need `require 'gem-name'` somewhere in your souce
<kith>
yeah thats what i tried next, but it says the file could not be loaded
<kith>
and i dont even know where it was placed to begin with :/
<[spoiler]>
kith it's in the gem directory, assuming the installation was successful
zz_michael_mbp is now known as michael_mbp
<[spoiler]>
use `gem environment` from your terminal
<kith>
gem env?
x0f has quit [Ping timeout: 245 seconds]
<[spoiler]>
Yep
<[spoiler]>
and then read the GEM_PATHS variable
benwoody has joined #ruby-lang
smashwilson has joined #ruby-lang
<[spoiler]>
the gem should be in one of those two directories
benwoody has quit [Client Quit]
smashwilson has left #ruby-lang [#ruby-lang]
x0f has joined #ruby-lang
<kith>
hmm okay its there
<[spoiler]>
then, it should work
<[spoiler]>
check the source(s) of the gem to help you
yfeldblum has joined #ruby-lang
Gacha has joined #ruby-lang
<kith>
but why doesnt it require the gem in the docs?
ljarvis has joined #ruby-lang
<ljarvis>
ohi
<[spoiler]>
kith: it is probably implied. How *else* will your code know
<[spoiler]>
where the constant is?
<kith>
yeah i was wondering but i thought maybe it gets required automatically somehow... without me knowing :D
<[spoiler]>
kith: Well, rails does that, in a way
<[spoiler]>
kith: it loads stuff lazily, but there's a specific template you need to floow for it to work
sulo has quit [Remote host closed the connection]
<[spoiler]>
Ruby itself doesn't do that, because it would be impractical
sulo has joined #ruby-lang
<kith>
yeah cinch bot kinda seems to behave like ror
<kith>
in a way
<kith>
also apparently i had to require 'cinch-calculate' instead of cinch/calculate'
Cakey has quit [Ping timeout: 260 seconds]
<[spoiler]>
kith: add that to the documentation and send a pull request :D
<dominikh>
cinch behaves nothing like Rails :)
<ljarvis>
lol
x0f has quit [Ping timeout: 272 seconds]
<ljarvis>
also recommend against sending a pull reqq
<[spoiler]>
I don't even know what cinch is, but I like the way it sounds when you say it outloud
<dominikh>
cinch-calculate isn't mine, have him send whatever he wants :P
<[spoiler]>
try saying cinch repeatedly
<ljarvis>
[spoiler]: THANK YOU
x0f has joined #ruby-lang
<ljarvis>
(I came up with that name and built the original cinch)
<ljarvis>
but dominikh (who took over cinch and rewrote it) is not so keen
<dominikh>
original code sucked, name sucked, we decided to keep only one of them.
<[spoiler]>
ljarvis: haha! It's an awesome name
<ljarvis>
haha
<ljarvis>
dominikh: ILU2
<[spoiler]>
tsk, dominikh. Don't be a spoilsport
<ljarvis>
yeah dominikh
<ljarvis>
btw he's right about the code though
lun__ has quit [Remote host closed the connection]
<[spoiler]>
sing "cinch" in any tune
<[spoiler]>
it you'll love it
lun__ has joined #ruby-lang
<micalexander>
Im rebuilding a bash script with ruby and prior to doing so I would store the global config in the home directory (os x). Now that Im writing it in ruby I want the ability for this app to be cross-platform. in bash I would use $HOME/.global_config as the location to store the the global config. What waould be the equivalent in ruby to make it cross platform though?
sulo has quit [Ping timeout: 240 seconds]
<ljarvis>
micalexander: ENV['HOME']
<ljarvis>
pretty sure windows uses that too no?
<micalexander>
ljarvis: where does that place it in windows?
<Elico>
c:/Users/USERNAME/X
<micalexander>
not sure, thats why Im asking the smart guys
<ljarvis>
micalexander: use File.expand_path("~") if not
<micalexander>
Elico: so ENV['HOME'] is equal to c:/Users/USERNAME/X
<ljarvis>
micalexander: on 1.9+ iirc there's Dir.home
<ljarvis>
micalexander: Dir.home looks like the way to go
x0f has quit [Ping timeout: 240 seconds]
<micalexander>
ljarvis: so exactly that "Dir.home"
<ljarvis>
micalexander: exactly that
lun___ has joined #ruby-lang
<Elico>
but it's only on 1.9.3 if I'm not wrong..
<ljarvis>
Elico: right, and if you're on 1.8 you're silly
<micalexander>
im silly!
<micalexander>
jk Im using 1.9
x0f has joined #ruby-lang
<Elico>
ljarvis: how silly a 1.8 can be?
lun__ has quit [Ping timeout: 245 seconds]
<ljarvis>
Elico: it's been EOL, no one should be using it
<Elico>
there are dozens of systems out there that just works based on 1.8.7..
<dominikh>
just like there are many Windows XP systems with IE6
<ljarvis>
^
<ljarvis>
lets all code for windows 95
<Elico>
and it is not wrong..
<dominikh>
nah, it's not wrong to use software with no more updates, security issues and bugs :)
<Elico>
I want to code for Command line... 6.22
<ljarvis>
well micalexander is on 1.9, so this conversation is pretty moot
<micalexander>
Elico: yeah but I said Im porting from bash Id be pretty silly to write it in 1.8
<kith>
dominikh: are you saying cinch is dead?
<ljarvis>
LOL
<ljarvis>
sorry
<dominikh>
wat
<dominikh>
I don't even
<ljarvis>
I don't even either
<Elico>
micalexander: as long as you do have an up-to-date version it's enoguh
<micalexander>
cool
<Elico>
I remember that home dir in windows + ruby is something that should be put somehow but I do not remember how it works.
<Elico>
if there is someone with windows installed + irb it can be verified in secs
thepumpkin has joined #ruby-lang
<micalexander>
ljarvis: like this right (just checking) File.join( Dir.home, ".global_config" )
<ljarvis>
micalexander: you got it!
<micalexander>
cool
sevvie has joined #ruby-lang
Gacha has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby-lang
styped has joined #ruby-lang
thepumpkin has quit [Ping timeout: 272 seconds]
sevvie has quit [Client Quit]
Mon_Ouie has quit [Ping timeout: 245 seconds]
madog has joined #ruby-lang
sulo has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
nertzy2 has quit [Quit: This computer has gone to sleep]
styped has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sulo has quit [Ping timeout: 240 seconds]
nertzy2 has joined #ruby-lang
ecnalyr has joined #ruby-lang
UziMonkey has quit []
micalexander has quit [Remote host closed the connection]
UziMonkey has joined #ruby-lang
<[spoiler]>
o:
micalexander has joined #ruby-lang
momomomomo has joined #ruby-lang
sevvie has joined #ruby-lang
<[spoiler]>
I had to go play with my kitten
<[spoiler]>
he was craving attention
ecnalyr has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
superman1125 has quit [Remote host closed the connection]
superman1125 has joined #ruby-lang
RiaKoobCam_ has quit [Quit: RiaKoobCam_]
RiaKoobCam has quit [Quit: RiaKoobCam]
|jemc| has joined #ruby-lang
micalexander has quit [Ping timeout: 240 seconds]
pkondzior___ has quit []
pkondzior___ has joined #ruby-lang
<Technodrome>
DouweM: i know JS quite well, did a lot of node.js dev
styped has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
<[spoiler]>
It's not ruby-related, but I need to load about a dozen high-resolution images on a single website (as part of agallery) I was thinking of having 3 img tags and loading the current and the previou & next image
<[spoiler]>
and then manipulating the currently viewed image with JS
<[spoiler]>
but, it sounds dirty
<DouweM>
you could have just one <img> tag and use new Image(url) to preload the next/previous
<DouweM>
`x = new Image(); x.src = url;` that is
Gacha has joined #ruby-lang
imperator has joined #ruby-lang
<[spoiler]>
DouweM: Hmm, wouldn't that discard the old media?
workmad3 has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby-lang
banisterfiend has joined #ruby-lang
<DouweM>
what do you mean?
<DouweM>
sorry, I gotta go. good luck, hope you figure it out
<[spoiler]>
DouweM: Well, if I was making a browser, I'd unload that image from memory
<[spoiler]>
once it was unused
bzalasky has joined #ruby-lang
ek428 has joined #ruby-lang
earthquake has joined #ruby-lang
Technodrome has quit [Quit: Technodrome]
ek428 has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby-lang
x0f has quit [Ping timeout: 272 seconds]
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
nertzy2 has quit [Quit: This computer has gone to sleep]
atmosx has joined #ruby-lang
x0f has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
smashwilson has joined #ruby-lang
smashwilson has left #ruby-lang [#ruby-lang]
jiuweigui has joined #ruby-lang
bzalasky has quit [Ping timeout: 245 seconds]
CaptainJet has joined #ruby-lang
x0f has quit [Ping timeout: 272 seconds]
lun___ has quit [Ping timeout: 245 seconds]
x0f has joined #ruby-lang
jonahR has quit [Ping timeout: 248 seconds]
jonahR_ has joined #ruby-lang
sevvie has quit [Quit: leaving]
wallerdev has quit [Quit: wallerdev]
lun__ has joined #ruby-lang
x0f has quit [Ping timeout: 272 seconds]
x0f has joined #ruby-lang
sulo has joined #ruby-lang
TheMoonMaster has quit [Excess Flood]
TheMoonMaster has joined #ruby-lang
Technodrome has joined #ruby-lang
hahuang65 has joined #ruby-lang
sulo has quit [Ping timeout: 260 seconds]
ecnalyr has joined #ruby-lang
hahuang65 has quit [Client Quit]
atmosx has quit [Ping timeout: 245 seconds]
ecnalyr has quit [Ping timeout: 245 seconds]
lnlyplnt has quit [Remote host closed the connection]
superman1125 has quit [Ping timeout: 240 seconds]
MrZYX is now known as MrZYX|off
adambeynon has joined #ruby-lang
jxie has joined #ruby-lang
styped has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]