<MHQ-Johnny>
Hey, quick question, I'm not Ruby savvy and I finally got redmine to play nice with nginx+unicorn, but my issue is when I restart unicorn to change settings in configuration.yml in redmine, the first hit will throw a 500, but then work just fine. The error after the 500 is logged: https://paste.gparent.org/298 any ideas?
yubrew has quit [Ping timeout: 240 seconds]
<brixen>
yorickpeterse: do have that bench wrapped up somewhere I can easily fetch and run it?
nisstyre has quit [Quit: WeeChat 0.4.3]
miwood has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 255 seconds]
miwood has joined #ruby-lang
kalehv has joined #ruby-lang
reichni has joined #ruby-lang
retro|cz has joined #ruby-lang
robbyoconnor has joined #ruby-lang
vpretzel|1211 has joined #ruby-lang
havenwood has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Client Quit]
miwood_ has joined #ruby-lang
mykoweb has joined #ruby-lang
dsp___ has joined #ruby-lang
miwood has quit [Ping timeout: 240 seconds]
MHQ-Johnny has left #ruby-lang ["Goodbye Everybody!"]
miwood_ has quit [Ping timeout: 240 seconds]
nofxxx has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
marcdel_ has quit []
dsp___ has quit [Ping timeout: 240 seconds]
mykoweb has joined #ruby-lang
djbkd has joined #ruby-lang
vpretzel|1211 has quit [Ping timeout: 250 seconds]
mykoweb has quit [Ping timeout: 240 seconds]
adphillips has quit [Remote host closed the connection]
dm78 has quit []
specialblend has joined #ruby-lang
Cakey has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby-lang
Cakey has joined #ruby-lang
vpretzel|1211 has joined #ruby-lang
ap4y has quit [Ping timeout: 240 seconds]
toastynerd has quit [Read error: Connection reset by peer]
allomov has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby-lang
djbkd has joined #ruby-lang
Rylee has joined #ruby-lang
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby-lang
allomov has quit [Ping timeout: 276 seconds]
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby-lang
mykoweb has joined #ruby-lang
karamazov has joined #ruby-lang
symm-_ has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
shinnya has quit [Ping timeout: 250 seconds]
pixelhandler has quit [Quit: pixelhandler]
karamazov has quit [Remote host closed the connection]
karamazov has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
specialblend has quit [Quit: specialblend]
amsi has quit [Quit: Leaving]
mistym has quit [Quit: Leaving]
yubrew has joined #ruby-lang
saarinen has quit [Quit: saarinen]
mykoweb has quit [Remote host closed the connection]
frank_o has quit [Quit: leaving]
mykoweb has joined #ruby-lang
ledestin has joined #ruby-lang
|jemc| has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
agarie_ has joined #ruby-lang
arubin has joined #ruby-lang
mykoweb has quit [Ping timeout: 240 seconds]
reichni has quit []
agarie has quit [Read error: Connection reset by peer]
enebo has joined #ruby-lang
kitak has joined #ruby-lang
mistym has joined #ruby-lang
michaeldeol has joined #ruby-lang
michaeldeol has quit [Client Quit]
ikrima has joined #ruby-lang
cmaxw has joined #ruby-lang
SilkFox has joined #ruby-lang
iTrojan has quit [Quit: Leaving.]
JoshuaPaling has joined #ruby-lang
knu has quit [Ping timeout: 240 seconds]
dsp___ has joined #ruby-lang
dsp___ has quit [Ping timeout: 252 seconds]
Rylee has quit [Max SendQ exceeded]
MarianM has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
fuhgeddaboudit has quit [Ping timeout: 255 seconds]
kalehv_ has joined #ruby-lang
amclain has joined #ruby-lang
kalehv has quit [Ping timeout: 246 seconds]
MarianM has quit [Ping timeout: 276 seconds]
Rylee has joined #ruby-lang
ddv has quit [Ping timeout: 245 seconds]
rwk1 has joined #ruby-lang
yubrew has joined #ruby-lang
ddv has joined #ruby-lang
cmaxw has quit [Quit: cmaxw]
marcdel has joined #ruby-lang
instantaphex has joined #ruby-lang
willmarshall has joined #ruby-lang
marcdel_ has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
marcdel has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
sepp2k1 has quit [Quit: Leaving.]
rwk1 has quit [Ping timeout: 252 seconds]
arubin is now known as arrubin
cmaxw has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby-lang
Cakey has joined #ruby-lang
alexju has joined #ruby-lang
robbyoconnor has joined #ruby-lang
nofxxx has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
grassdog has joined #ruby-lang
nofxxx has joined #ruby-lang
dsp___ has joined #ruby-lang
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby-lang
crudson has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
dsp___ has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby-lang
cmaxw has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby-lang
marcdel_ has quit []
thmzlt has quit [Remote host closed the connection]
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby-lang
allomov has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
allomov has quit [Ping timeout: 240 seconds]
crudson has quit [Quit: Leaving.]
rwk1 has joined #ruby-lang
yubrew has quit [Ping timeout: 276 seconds]
robbyoconnor has quit [Remote host closed the connection]
bruno- has quit [Remote host closed the connection]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
bruno- has joined #ruby-lang
alexju has quit [Ping timeout: 240 seconds]
robin850 has quit [Remote host closed the connection]
Caius has joined #ruby-lang
relix has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
ItSANgo has joined #ruby-lang
achiu has joined #ruby-lang
jtperreault has joined #ruby-lang
go|dfish has joined #ruby-lang
stargrove has joined #ruby-lang
mr-foobar has joined #ruby-lang
symm- has joined #ruby-lang
vpretzel|1211 has joined #ruby-lang
rnea has joined #ruby-lang
xybre has joined #ruby-lang
francisfish has joined #ruby-lang
tkuchiki has joined #ruby-lang
go|dfish has quit [Max SendQ exceeded]
araujo has joined #ruby-lang
Caius has quit [Changing host]
Caius has joined #ruby-lang
go|dfish has joined #ruby-lang
bruno- has quit [Ping timeout: 240 seconds]
<yorickpeterse>
yo does anybody know of any particular reason why the amount of network timeouts would go up in MRI 2.1.1 compared to 1.9.3?
<yorickpeterse>
charliesome: ^^^
<charliesome>
iunno
<yorickpeterse>
noticing a pretty big increase
arBmind has joined #ruby-lang
<yorickpeterse>
Hm, interesting enough it seems the average amount of timeouts is still roughly the same
rwk1 has quit [Ping timeout: 240 seconds]
tomkadwill has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
yubrew has joined #ruby-lang
gix has quit [Ping timeout: 240 seconds]
<yorickpeterse>
charliesome: I can't change settings set using RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR during runtime right?
<yorickpeterse>
That is, from within Ruby itself
<charliesome>
nope
<yorickpeterse>
dang it
<charliesome>
maybe you could with fiddle
<charliesome>
not officially sanctioned advice, fyi btw ;)
<yorickpeterse>
nah, I can write a wrapper script
<yorickpeterse>
That is, script X that normally starts the app runs a subshell, sets that variable *then* starts the app
<yorickpeterse>
otherwise I have to fuck around with re-imaging a bunch of things and what not
<yorickpeterse>
first lets see if it actually works on one instance
bruno- has quit [Ping timeout: 276 seconds]
yubrew has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby-lang
gix has joined #ruby-lang
abrausch1 has joined #ruby-lang
toretore has joined #ruby-lang
abrausch has quit []
dsp___ has joined #ruby-lang
face has quit [Read error: Connection reset by peer]
workmad3 is now known as wm3|away
face has joined #ruby-lang
wm3|away is now known as wm3|busy
wm3|busy is now known as wm3|away
esad has joined #ruby-lang
bruno- has joined #ruby-lang
wm3|away is now known as wm3|busy
wm3|busy has quit [Quit: leaving]
workmad3 has joined #ruby-lang
workmad3 is now known as wm3|busy
JoshuaPaling has joined #ruby-lang
cnivolle has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
esad has quit [Client Quit]
bruno- has quit [Ping timeout: 276 seconds]
bruno- has joined #ruby-lang
thomasxie has joined #ruby-lang
<yorickpeterse>
Hm, using that option I'm seeing a nice drop
<yorickpeterse>
173 MB RSS instead of 230 MB
yfeldblum has joined #ruby-lang
enebo has joined #ruby-lang
enebo has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arBmind has quit [Quit: Leaving.]
vondruch has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby-lang
unsymbol_ has quit [Quit: cheerio]
unsymbol has joined #ruby-lang
postmodern has quit [Quit: Leaving]
thmzlt has joined #ruby-lang
thmzlt has quit [Ping timeout: 240 seconds]
robmiller has joined #ruby-lang
<yorickpeterse>
time to deploy that bad boy to all the things
michd is now known as MichD
DEac-_ has joined #ruby-lang
yubrew has joined #ruby-lang
gix has quit [Ping timeout: 276 seconds]
karamazov has joined #ruby-lang
DEac- has quit [Ping timeout: 276 seconds]
<karamazov>
Anyone here work with Octopress? I'm trying to work on it locally but am finding having to do rake generate, rake preview, rake watch after every change a bit tedious
yubrew has quit [Ping timeout: 245 seconds]
gix has joined #ruby-lang
jsullivandigs has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
retro|cz has quit [Ping timeout: 252 seconds]
elia has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 240 seconds]
<badeball>
from rspec peaking at 2.4 GB allocated: Errno::ENOMEM: Cannot allocate memory
<badeball>
:(
Forgetful_Lion has joined #ruby-lang
<yorickpeterse>
stop leaking memory
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
robmiller has quit [Ping timeout: 252 seconds]
<badeball>
I'm running the test suite of formtastic
<yorickpeterse>
seems me messing around only made things worse, though I did double the amount of threads in this particular process
bruno- has joined #ruby-lang
charliesome has quit [Read error: Connection reset by peer]
<yorickpeterse>
also hard to figure out if this is a problem with Ruby or the kernel
symm- has quit [Ping timeout: 255 seconds]
agarie_ has quit [Read error: Connection reset by peer]
sarkyniin has quit [Ping timeout: 240 seconds]
agarie has joined #ruby-lang
stamina has joined #ruby-lang
arBmind has joined #ruby-lang
yfeldblum has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
rwk1 has joined #ruby-lang
robbyoconnor has joined #ruby-lang
yubrew has joined #ruby-lang
tomkadwill has joined #ruby-lang
ecnalyr has joined #ruby-lang
JoshuaPaling has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cakey has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
tomkadwill has quit [Ping timeout: 252 seconds]
karamazov has quit [Remote host closed the connection]
karamazov has joined #ruby-lang
ikrima has quit [Ping timeout: 245 seconds]
symm- has joined #ruby-lang
rwk1 has quit [Ping timeout: 240 seconds]
rue|w has joined #ruby-lang
sarkyniin has joined #ruby-lang
kitak has quit [Remote host closed the connection]
qba73 has joined #ruby-lang
karamazov has quit [Ping timeout: 250 seconds]
jsullivandigs has joined #ruby-lang
ColdBlooder_ has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
bruno- has quit [Quit: leaving]
robbyoconnor has quit [Ping timeout: 252 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jsullivandigs has quit [Ping timeout: 276 seconds]
elia has quit [Quit: Computer has gone to sleep.]
Cakey has quit [Ping timeout: 252 seconds]
rue|w has quit [Remote host closed the connection]
wm3|busy has joined #ruby-lang
<whitequark>
why do you even poke kernel if you only changed Ruby?
<yorickpeterse>
because we had the problems for a while now, even before the switch
albertgrala has joined #ruby-lang
<yorickpeterse>
I poked around before as well but couldn't find a darn thing
marr has quit []
<yorickpeterse>
Hell, I even booted a m14.turbo.super.lange EC2 instance with 256 cores and god knows what, same problems
<whitequark>
mmh. could be a coincidence
<whitequark>
why do you think amount of cores correlates with amount of timeouts?
<yorickpeterse>
It doesn't, I just picked the biggest instance there was
<yorickpeterse>
which happened to have like 128 cores or something
<yorickpeterse>
also had the best network performance according to AWS
<whitequark>
well, performance isn't your problem
<yorickpeterse>
Hm, 32 apparently
<yorickpeterse>
"performance isn't your problem" what?
<yorickpeterse>
it sure as hell is, it saves money
<yorickpeterse>
and customer complaints
rahul_j has quit [Quit: rahul_j]
<whitequark>
no, I mean, timeouts aren't "performance" in the narrow definition of it. they're probably caused by congestion somewhere
<yorickpeterse>
Oh right
<yorickpeterse>
well, the amount of stuff going on network wise is not anywhere near zomg level
<whitequark>
and unless you have utilized your ec2 instance badly enough that it simply cannot process incoming packets in time, adding more cores won't help
<yorickpeterse>
e.g. atm I'm only counting roughly 70 open network connections on an entire instance
<whitequark>
well, if every one is downloading a gigabyte of XML at maximum speed, that can easily be a problem
<whitequark>
take a look at iftop or something
<yorickpeterse>
they're not, they're all burst connections of small payloads
<yorickpeterse>
oh I have
ur5us has quit [Remote host closed the connection]
<whitequark>
ok. I see.
<yorickpeterse>
That's part of the problem: the monitoring tools I threw at it in the past didn't really make anything stand out
<whitequark>
what exactly reports a timeout?
<yorickpeterse>
The Ruby layer, that is it raises things like Timeout::Error
<yorickpeterse>
even with a timeout set to 30 seconds
<yorickpeterse>
basically whatever value I set it to it ends up timing out quite a bit
<whitequark>
mmh
albertgrala has quit [Quit: Leaving]
<yorickpeterse>
which suggests congestion to me
<whitequark>
any locks you have there?
<yorickpeterse>
nop
<whitequark>
it's possible that a thread would be starved
<whitequark>
ok
<whitequark>
weird
<whitequark>
if I was you, I'd make the ruby process report local ephemeral port on every connection when it starts and times out, and then use wireshark to look at the dump
<whitequark>
perhaps that would reveal something interesting
<yorickpeterse>
hm
rahul_j has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
Cakey has joined #ruby-lang
sepp2k has joined #ruby-lang
yfeldblum has joined #ruby-lang
yalue has joined #ruby-lang
karamazov has joined #ruby-lang
Cakey has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
rwk1 has joined #ruby-lang
<apeiros>
method name: deindent or unindent?
Pain has joined #ruby-lang
<DefV>
remove_indentation
wm3|busy is now known as wm3|away
karamazov has quit [Remote host closed the connection]
<toretore>
outdent
<apeiros>
it can reduce indentation too, not just completely remove it
cstrahan_ has joined #ruby-lang
yubrew has quit [Ping timeout: 276 seconds]
<DefV>
reduce_indentation then
karamazov has joined #ruby-lang
<Silex>
decrease/increase indentation?
tomkadwill has joined #ruby-lang
stardiviner has quit [Ping timeout: 246 seconds]
<Silex>
apeiros: would you be ok to merge this chan with #ruby?
arBmind has quit [Quit: Leaving.]
rwk1 has quit [Ping timeout: 252 seconds]
<apeiros>
Silex: it's not like I'd have any say in such a matter. you may be asking the wrong person ;-)
<Silex>
apeiros: thought you were op, sorry then
<apeiros>
I am
<apeiros>
but op != owner
<Silex>
do you know the owner's take on this?
<yorickpeterse>
"no" is my bet
<apeiros>
I doubt he'd agree
<apeiros>
he goes by the nick fflush
<Silex>
this is so silly imho
<apeiros>
chanserv can give you such info
Burgestrand has joined #ruby-lang
melter has quit [Ping timeout: 245 seconds]
<Silex>
I'll ask again in two years. Thanks
<DefV>
I agree, it's silly
<apeiros>
lol
<oddmunds>
:)
cstrahan has quit [Ping timeout: 245 seconds]
<apeiros>
meh, I don't like *_indentation
<apeiros>
I'll go with deindent
<oddmunds>
i haven't been in #ruby for ages, i think i'll give it a visit again
iTrojan has joined #ruby-lang
thmzlt has joined #ruby-lang
<whitequark>
#ruby has too much traffic for my taste
<apeiros>
I'd like the idea of #ruby redirecting to #ruby-lang and having a #ruby-learning channel
karamazov has quit [Remote host closed the connection]
karamazov has joined #ruby-lang
adphilli_ has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
yalue has quit [Ping timeout: 252 seconds]
Missphoenix has joined #ruby-lang
adphillips has quit [Ping timeout: 252 seconds]
Missphoenix has quit [Client Quit]
Miphix has joined #ruby-lang
jsullivandigs has joined #ruby-lang
karamazov has quit [Ping timeout: 240 seconds]
rahul_j has joined #ruby-lang
sdouglas has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 245 seconds]
<yorickpeterse>
threads amount goes up, timeouts go up
<yorickpeterse>
you can't expla...well actually you can
melter has joined #ruby-lang
sdouglas has quit [Ping timeout: 240 seconds]
<apeiros>
could somebody please try to join #ruby-learning ? want to test whether redirect works
franzip has joined #ruby-lang
<whitequark>
it does
<apeiros>
thanks, it works :)
yalue has joined #ruby-lang
dsp___ has quit [Remote host closed the connection]
<toretore>
there should be a #ruby-unlearning to unlearn metaprogramming and other bad practices
<whitequark>
metaprogramming is not a bad practice
<yorickpeterse>
isn't that what #go, #node, #rust, etc are for?
<Silex>
DefV: essentially it all boils down to "when it makes it really hard to reason about the code statically"
<yorickpeterse>
apeiros: actually
<yorickpeterse>
FooBarBaz is PascalCase
<yorickpeterse>
fooBarBaz is camelCase
<apeiros>
"this is also known as Pascal case or bumpy case"
<apeiros>
I go with the primary denomination
<apeiros>
and accept WP as universal truth™
simono has joined #ruby-lang
<DefV>
Silex: ok, but attr_accessor :foo is also metaprogramming.. and has_many :foo too
<whitequark>
ruby makes it really hard to reason about the code in general
<whitequark>
because anything could be mutated at any time from anywhere (except local variables if you don't explicitly pass binding around)
<whitequark>
"bad" metaprogramming is merely a symptom of a deeper problem
relix has joined #ruby-lang
<Mon_Ouie>
You don't need to explicitly pass bindings around, you can just implicitly pass them around by calling a method with a block :)
<toretore>
that's like saying guns kill people
<apeiros>
oh, ruby has titlecase
<DefV>
guns don't kill people
<whitequark>
toretore: that is true though. no guns = no gun deaths
<DefV>
monkeys with guns kill people
enebo has joined #ruby-lang
<whitequark>
can't argue with that.
<toretore>
whitequark: but a gun doesn't kill anyone without being triggered
<DefV>
whitequark: but no guns = more knife deaths
<whitequark>
and, unlike imperfect real world, in programming languages it is possible to entirely get rid of something
<toretore>
and mutation in ruby doesn't happen without someone mutating
<whitequark>
toretore: that implies that you need to perfectly know *all* of the code that is loaded at any time to reason about an arbitrarily small fragment of it
<whitequark>
I mean, what you're saying is true, it's just not helping.
<DefV>
I think it's fair to make assumptions whitequark
<toretore>
and yes, bad metaprogramming includes poking around where you shouldn't
<toretore>
whitequark: quite the opposite, actually. you can assume that mutation will not happen where you do not expect it to
<whitequark>
and then someone goes and mutates things, and your code mysteriously breaks
<toretore>
sure
<whitequark>
aka the eventual outcome of every monkey patch ever
<toretore>
immutable data structures = no guns allowed
jgpawletko has joined #ruby-lang
<toretore>
whitequark: which is exactly what i mean by bad metaprogramming
<whitequark>
I'm not saying that no language should ever allow mutate random things. I'm saying that allowing mutating random things has an enormous cost, and you'd better justify it by something great.
<whitequark>
the Rails project I'm currently working on depends on 250+ gems
<whitequark>
and quite a few of their authors indulge in bad practices at every fucking line of their code
<whitequark>
it's not remotely practical to even review all of that, much less rewrite it properly
<apeiros>
seeing old clever code of mine makes me happy
<toretore>
that you've changed? :)
<whitequark>
you're talking about some perfect world where you can simply not use external code which uses "bad practices". you can't.
<toretore>
i'm talking about people not doing stupid crap in their code, especially when they intend to release it as a library
<whitequark>
you can't even quickly decide whether a certain piece of code contains those "bad practices" or not, because the question is so intractable
<whitequark>
exactly!
<toretore>
mutability assumes some amount of responsibility
<whitequark>
people do stupid crap all the time, for a variety of reasons
<whitequark>
you can't change people, but you can change the language so that their stupid crap won't affect your stupid crap
<toretore>
it's difficult to define "stupid crap", but you know it when you see it
<toretore>
sure. but i don't think ruby's data structures will become immutable any time soon
<whitequark>
again: do you suggest I review all of the dependencies that I use, spending a *lot* of time deciding on whether this will explode or not?
<toretore>
i've said no such thing
<toretore>
i'm just noting that a lot of people write stupid crap
yubrew has joined #ruby-lang
<toretore>
and they should stop
<whitequark>
lol, and I'd like the sun to be green
<apeiros>
toretore: actually in this case it's enjoying the old code as it is. reusing it.
<toretore>
but then i'll probably say the same thing about my own code from now in 5 years
<whitequark>
that is probably more likely to happen than people stopping to write stupid crap.
<toretore>
so all this means that you as the user of a library must review the code to some degree if you want to avoid stupid crap
<toretore>
:(
<DefV>
hm
<DefV>
I assume libraries are wellbehaved citizens
<DefV>
and on the off change they're not I'll go down the rabbit hole
<whitequark>
toretore: yes, and my point is that this is bad (language) design.
<DefV>
I prefer that over the more defensive model
<toretore>
my initial point was that this stupid crap is taught very widely
yfeldblum has joined #ruby-lang
<whitequark>
which may or may not be justified by other parts of the design.
<toretore>
DefV: i assume the opposite
<toretore>
lessons learned through experience
francisfish has quit [Remote host closed the connection]
<toretore>
whitequark: but the language being "fixed" is even more unlikely to happen..
yubrew has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby-lang
<whitequark>
toretore: it won't, this is a problem inherent in most dynamic languages
<whitequark>
considered a feature by some, even
<whitequark>
if you want to use Ruby, you have to accept it. *shrug*
dsp___ has joined #ruby-lang
miqui has joined #ruby-lang
<toretore>
which pushes the responsibility from the language over to the programmer
<apeiros>
ah, lol, damn, I was in a rails console. not ruby has titlecase - rails does :-D
simono has quit [Read error: Connection reset by peer]
mykoweb has joined #ruby-lang
d4rkr4i has joined #ruby-lang
MartynKeigher has quit [Ping timeout: 240 seconds]
machuga has left #ruby-lang [#ruby-lang]
devkinetic has joined #ruby-lang
d4rkr4i has quit [Client Quit]
momomomomo has joined #ruby-lang
ldnunes has joined #ruby-lang
<devkinetic>
HI all, I have a silly question. I am trying to get started with ruby development and I am on windows. I realize I don't exactly need a great computer to wite and test code. A friend just gave me a powermac g5 1.6, Would it be useful at all for me to try setting up for development, or should I donate it for scrap
d4rkr4i has joined #ruby-lang
qba73 has quit []
ironhide_604 has quit [Quit: ironhide_604]
<Burgestrand>
Oo. PowerPC eh. Does ruby run on powerpc at all?
<bougyman>
it dose
whitequark is now known as redquark
<Burgestrand>
That’s kinda cool.
yubrew has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
d4rkr4i has quit [Quit: Leaving.]
<Burgestrand>
devkinetic: I can’t speak for your particular machine there, but I sometimes run ruby on a raspberry pi and it works well. It’s not very fast, but it is possible to work on it.
redquark is now known as whitequark
<Burgestrand>
devkinetic: I would assume that the raspberry pi is somewhat… slower than your powermac.
rahul_j has joined #ruby-lang
stamina has quit [Remote host closed the connection]
machuga has joined #ruby-lang
<devkinetic>
Burgestrand: I'd assume so, but it runs much cooler... I guess I'd just like to be using the same OS as every developer I see working with ruby.
yubrew has quit [Ping timeout: 252 seconds]
<Burgestrand>
devkinetic: I’d give the powerpc a try if I were you. Worst case you’ll just have to go back to using windows for development; it’s a viable OS for ruby development, even if one can sometimes feel a bit left out of the ruby world on windows some times.
yfeldblum has joined #ruby-lang
jvrmaia has quit []
<devkinetic>
Burgestrand: I definitely do. I've been trying to pick at ruby for about 3 years now and always feel a few paces behind the herd using windows. I am wondering if searching for PPC binaries for ruby etc is going to suck up all my time.
thomasxie has quit [Ping timeout: 240 seconds]
<Burgestrand>
devkinetic: I would assume your first stop for ruby on powerpc would be the same as for everyone else: http://rvm.io/
<Burgestrand>
… but I really have no idea. I started with mac in the beginning of the intel era.
Missphoenix has joined #ruby-lang
dsp___ has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
rwk1 has joined #ruby-lang
<devkinetic>
Burgestrand: Well in either case, it will make for an interesting weekend project. I'll give it a try. Thanks for your comments.
ritek has quit [Changing host]
ritek has joined #ruby-lang
ritek has quit [Changing host]
ritek has joined #ruby-lang
Miphix has quit [Ping timeout: 252 seconds]
<Burgestrand>
devkinetic: remember, most installation issues have been run into by somebody else before you! ;)
<devkinetic>
Burgestrand: True, but the boards and sites they were posted to don't always exist anymore
<devkinetic>
:D
rahul_j has quit [Ping timeout: 240 seconds]
<Burgestrand>
devkinetic: that is true, but you have some collective knowledge in here. :)
mistym has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
|jemc| has joined #ruby-lang
Senjai has quit [Ping timeout: 252 seconds]
iTrojan has quit [Ping timeout: 240 seconds]
jsullivandigs has joined #ruby-lang
robmiller has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
amerine has joined #ruby-lang
kitak has joined #ruby-lang
yubrew has quit [Ping timeout: 252 seconds]
Senjai has joined #ruby-lang
ritek has left #ruby-lang [#ruby-lang]
SilkFox has quit [Ping timeout: 252 seconds]
btiefert2 has joined #ruby-lang
tkuchiki has joined #ruby-lang
simono has joined #ruby-lang
btiefert has quit [Ping timeout: 252 seconds]
tommylom1ykins is now known as atasasdf
atasasdf is now known as tommylommykins
rahul_j has quit [Quit: rahul_j]
VTLob has joined #ruby-lang
centrx has joined #ruby-lang
huug has joined #ruby-lang
pragmaticivan has joined #ruby-lang
huug has quit [Client Quit]
michaeldeol has joined #ruby-lang
abrausch1 has quit [Quit: Leaving.]
ecnalyr has joined #ruby-lang
banister has joined #ruby-lang
banister_ has quit [Ping timeout: 252 seconds]
agarie has quit [Read error: Connection reset by peer]
ecnalyr has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
yfeldblum has joined #ruby-lang
agarie has joined #ruby-lang
tkuchiki has joined #ruby-lang
vpretzel|WA-aste is now known as vpretzel
ecnalyr_ has joined #ruby-lang
ecnalyr has quit [Read error: Connection reset by peer]
rwk1 has joined #ruby-lang
amerine_ has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby-lang
yfeldblum has quit [Ping timeout: 276 seconds]
amerine has quit [Ping timeout: 250 seconds]
ecnalyr_ has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 252 seconds]
d4rkr4i has joined #ruby-lang
ecnalyr has joined #ruby-lang
heftig has quit [Quit: Quitting]
toastynerd has joined #ruby-lang
devkinetic has quit [Quit: Page closed]
sdouglas has joined #ruby-lang
rwk1 has quit [Ping timeout: 240 seconds]
enebo has joined #ruby-lang
<cored>
hi
ecnalyr has quit [Ping timeout: 246 seconds]
toastyne_ has joined #ruby-lang
<cored>
how can I know which is the top level domain in an href parsed by nokogiri
<cored>
?
toastynerd has quit [Ping timeout: 240 seconds]
<apeiros>
cored: eh? it's part of the url? (if it's an absolute one, that is, otherwise it's the same as the current page)
<cored>
I want to create a site map of all the links and assets of a site but just for the links that are part of the top level domain; something like www.domain.com will return
<cored>
hm
mikecmpbll has joined #ruby-lang
<cored>
hm
<apeiros>
www.domain.com is not a toplevel domain. .com is
<apeiros>
URI#host gets you the domain
d4rkr4i has quit [Ping timeout: 250 seconds]
<apeiros>
and either String#split or #[] can easily get you the tld
<eval-in>
yorickpeterse => the scheme http does not accept registry part: foo_bar.herp.derp (or bad hostname?) (URI::InvalidURIError) ... (https://eval.in/145615)
<yorickpeterse>
^ valid URL
<whitequark>
apeiros: < apeiros> extract all hrefs, map them to uris, select all with scheme nil, http or https
<apeiros>
oh, 2h ago :D
loincloth has joined #ruby-lang
<whitequark>
what you need is to have a base_uri = URI(...) and for every href do base_uri.merge(URI(href))
<apeiros>
whitequark: he doesn't need to merge because he doesn't care about the url
<whitequark>
hm
<apeiros>
whitequark: all he wants is the TLD
<whitequark>
ah, right
<apeiros>
but otherwise, of course, yes
metamaterial has joined #ruby-lang
<apeiros>
though, it might actually be simpler to merge all with the base url
yubrew has joined #ruby-lang
<apeiros>
then he doesn't need to do any of those nil tests
<apeiros>
hm, looks like custom yaml types can't use symbols as keys in their maps
* apeiros
so disappointed
d4rkr4i has joined #ruby-lang
mechanicles has quit [Remote host closed the connection]
TvL2386 has joined #ruby-lang
Cakey has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robmiller has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
djbkd has joined #ruby-lang
dstynchula has joined #ruby-lang
dstynchula has quit [Client Quit]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 276 seconds]
hplar has joined #ruby-lang
rnea has quit [Ping timeout: 255 seconds]
banister has joined #ruby-lang
xybre has quit [Ping timeout: 255 seconds]
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
gix has joined #ruby-lang
pskosinski has quit [Ping timeout: 272 seconds]
pskosinski has joined #ruby-lang
arBmind has quit [Ping timeout: 240 seconds]
arBmind has joined #ruby-lang
nisstyre has joined #ruby-lang
ssb123_ has joined #ruby-lang
momomomomo has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rwk1 has joined #ruby-lang
gix has quit [Ping timeout: 240 seconds]
jhass|off is now known as jhass
jhass is now known as jhass|off
agarie has quit [Ping timeout: 240 seconds]
jhass|off is now known as jhass
ssb123 has quit [Ping timeout: 240 seconds]
ssb123_ has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rwk1 has quit [Ping timeout: 250 seconds]
sepp2k1 has joined #ruby-lang
pskosinski is now known as JanGleboki
JanGleboki is now known as pskosinski
sepp2k has quit [Ping timeout: 252 seconds]
Johz has joined #ruby-lang
agarie has joined #ruby-lang
gix has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
simono has joined #ruby-lang
yubrew has joined #ruby-lang
cstrahan_ has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby-lang
metamaterial has quit [Remote host closed the connection]
franzip has quit [Quit: ...]
yubrew has quit [Ping timeout: 245 seconds]
cstrahan has joined #ruby-lang
MartynKeigher2 has joined #ruby-lang
metamaterial has joined #ruby-lang
ssb123 has joined #ruby-lang
apeiros has joined #ruby-lang
ur5us has joined #ruby-lang
dik_dak has quit [Ping timeout: 252 seconds]
JEG2 has joined #ruby-lang
Fushi has quit [Quit: Connection closed for inactivity]
SilkFox has quit [Ping timeout: 250 seconds]
loincloth has quit [Remote host closed the connection]
vpretzel has quit [Quit: Adios!]
loincloth has joined #ruby-lang
mistym has quit [Remote host closed the connection]
gix has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
imperator has joined #ruby-lang
dik_dak has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
Speed has joined #ruby-lang
SilkFox has joined #ruby-lang
gix has quit [Ping timeout: 252 seconds]
arBmind has quit [Ping timeout: 276 seconds]
ldnunes has quit [Quit: Leaving]
nofxx has quit [Remote host closed the connection]
ldnunes has joined #ruby-lang
ssb123 has joined #ruby-lang
araujo has quit [Quit: Leaving]
ecnalyr has quit [Remote host closed the connection]
gix has joined #ruby-lang
ecnalyr has joined #ruby-lang
pixelhandler has quit [Quit: pixelhandler]
heftig has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
ecnalyr has quit [Ping timeout: 246 seconds]
amerine has joined #ruby-lang
achal has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
gix has quit [Ping timeout: 240 seconds]
amerine_ has quit [Ping timeout: 250 seconds]
alexju has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 276 seconds]
yubrew has joined #ruby-lang
Raycaster has quit [Ping timeout: 245 seconds]
yubrew has quit [Ping timeout: 276 seconds]
adphillips has joined #ruby-lang
ssb123 has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
circ-user-kixG9 has joined #ruby-lang
yalue has quit [Quit: Leaving]
jsullivandigs has joined #ruby-lang
iTrojan has joined #ruby-lang
<circ-user-kixG9>
Hi, people. I'm looking for any relevant ruby 2 books. Most of the books cover ~1.9. Did the ruby 2 brought something groundbreaking that made 1.9 obsolete?
djbkd has quit [Remote host closed the connection]
<arrubin>
The Pickaxe book has been updated.
metamaterial has quit [Quit: Leaving.]
ssb123 has quit [Remote host closed the connection]
<apeiros>
I'm atm not quite sure which property it actually is
<apeiros>
but you can get every toplevel constant from any class
ColdBlooder has joined #ruby-lang
<apeiros>
I think it's because Class < Object
<apeiros>
and Module < Object
<apeiros>
you will get a warning from ruby if you try it without const_get
<apeiros>
Array::Array
<apeiros>
(pry):5: warning: toplevel constant Array referenced by Array::Array
ssb123 has joined #ruby-lang
<apeiros>
oddly enough, Kernel::Array fails, while Kernel.const_get(:Array) works… weird
ssb123 has quit [Remote host closed the connection]
<apeiros>
not sure there. anyway, bottom line is that Object is the toplevel namespace.
marcdel has joined #ruby-lang
<dafalcon>
ahhh i see
mistym has joined #ruby-lang
cnivolle has joined #ruby-lang
ssb123 has joined #ruby-lang
<dafalcon>
Kernel < Module < Object
xybre has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dafalcon>
well TIL
<dafalcon>
thank you sir!
loincloth has joined #ruby-lang
<apeiros>
not correct
<apeiros>
Kernel.is_a?(Module)
<apeiros>
and Module < Object
<apeiros>
but also Module.is_a?(Object)
<apeiros>
rubys class system root is a bit circular. the implementers cheated a bit :)
<TTilus>
what isn't (in ruby)
<apeiros>
circular?
<apeiros>
or cheated?
<TTilus>
wrt Module.is_a?(Object)
<apeiros>
ah
<apeiros>
BasicObject stuff
<apeiros>
other than that, everything which can receive methods .is_a?(Object) :)
<TTilus>
ah, BasicObject, yes
JEG2 has quit [Excess Flood]
<TTilus>
with 1.8 "everything" still was an object ;)
JEG2 has joined #ruby-lang
MartynKeigher2 has joined #ruby-lang
jcs222 has quit [Quit: leaving]
<apeiros>
TTilus: nope :)
<apeiros>
everything which could receive methods, yes
<apeiros>
but not everything ;-)
ssb123 has quit [Remote host closed the connection]
elia has joined #ruby-lang
cnivolle has quit [Ping timeout: 246 seconds]
yubrew has joined #ruby-lang
<TTilus>
was there something (that you could bind to a const or var) in 1.8 that wasn't object?
rwk1 has joined #ruby-lang
<TTilus>
maybe its just too late and i should be sleeping
adphilli_ has quit []
<TTilus>
but if i leave now, i know this will still haunt me in the morning :D
<TTilus>
(quotes around the "everything" were about just considering things that you can give a name to)
agarie has quit [Ping timeout: 252 seconds]
arBmind has joined #ruby-lang
yubrew has quit [Ping timeout: 252 seconds]
agarie has joined #ruby-lang
rwk1 has quit [Ping timeout: 276 seconds]
<apeiros>
TTilus: no. everything which could be referenced by a variable (could also receive methods) is an object
<apeiros>
and with 1.9, the only thing that changed is s/Object/BasicObject/
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<apeiros>
so BasicObject is now at the top of the hierarchy for inheritance. But Object is still at the top for constant lookup.
<apeiros>
I have to admit, I dislike BasicObject. Not for its own failures, but because ruby-core omitted to provide external introspection for it.
<whitequark>
I don't think BasicObject has a free will to have its own failures
_ht has quit [Remote host closed the connection]
<apeiros>
:)
dik_dak has quit [Ping timeout: 252 seconds]
<apeiros>
you just think so because you can't introspect it to see the scary truth!
ikrima has joined #ruby-lang
<whitequark>
I can, I have gdb
* whitequark
grins
<apeiros>
bah, cheater
<TvL2386>
hi guys, I'm having an ubuntu-12.04 server and installed ruby-2.1 from the brightbox ppa (https://launchpad.net/~brightbox/+archive/ruby-ng). I'm trying to install ffi-1.9.3, but I'm getting the error: that it failed to build gem native extension. extconf.rb failed. Could not create Makefile due to some reason, probably lack of libraries and/or headers. It also says "You have to install development tools first". I have build-essentia
<TvL2386>
l installed and ruby2.1-dev
<TvL2386>
any clues? I've been searching the internet, but can't really find what I'm missing
<jhass>
TvL2386: make a gist of the full output, include logs that the output references, if any
<jhass>
but I'd bet on something like a missing libffi-dev
<apeiros>
CheatSheet or Cheatsheet?
<jhass>
I'm for Cheatsheet
<apeiros>
hm, seems to be 2 words in english, so I'd lean for CheatSheet actually
<apeiros>
"cheat sheet" -> "cheat_sheet" and "CheatSheet" IMO
<apeiros>
also fun: how neon genesis evangelion uses german words to get a touch of "mystery" (e.g. secret organizations are named using german words: Seele, Nerv, Gehirn)
jsullivandigs has quit [Remote host closed the connection]
<TvL2386>
whitequark, jhass same contents as the gist output.... I have a feeling I have a mismatch with ruby2.1 and ruby2.1-dev package... versions don't match on this troublesome host (see gist output)
<whitequark>
apeiros: did not expect you to be an NGE fan
<apeiros>
I like it, except for its ending.
<whitequark>
or anime in general
chouhoulis has quit [Ping timeout: 252 seconds]
<apeiros>
there are a couple of good animes
<whitequark>
duh!
<apeiros>
jin roh (movie) and ghost in the shell (movie and series) are my favorites
<TvL2386>
Rurouni Kenshin
<jhass>
TvL2386: nah, that's a too minor difference
<apeiros>
I'm curious, why did you think I didn't like animes?
<apeiros>
TvL2386: ah, kenshin is fun too, only read 4 books, though
pixelhandler has joined #ruby-lang
<TvL2386>
apeiros, I only watched the entire series + OVA's
<TvL2386>
:)
<whitequark>
apeiros: I dunno, you just don't sound like someone who would
<jhass>
TvL2386: hunt down the mkmf.log
<TvL2386>
now watching Hunter x Hunter (2011). The new part is very slow unfortunately
<apeiros>
whitequark: fun :)
<TvL2386>
ah yeah... got sidetracked jhass... I saw Anime ^^
<jhass>
;P
<TvL2386>
/usr/bin/ld: cannot find -lgmp
<TvL2386>
think that's the key :D
<yorickpeterse>
ok random question because I'm blowing my brains out over basic C
<TvL2386>
jhass, from /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/ffi-1.9.3/mkmf.log: /usr/bin/ld: cannot find -lgmp
<whitequark>
yorickpeterse: brains?
<yorickpeterse>
given I have a fucking `char buffer_whatever[] = ""`, how the hell do I append a const char * to it without blowing up Dennis Richie
<yorickpeterse>
basically append one string to another
<jhass>
TvL2386: yep, let me guess, ubuntu has a libgmp package
<yorickpeterse>
I ended up on fucking Yahoo answers for christ sake
<yorickpeterse>
I AM THIS BAD AT C
<|jemc|>
lol
<whitequark>
yorickpeterse: you allocate a new string that is long enough to contain both of the source ones
<TvL2386>
jhass, yeah... it has... and it's installed
<yorickpeterse>
whitequark: did you just tell me "Go fucking google it"?
<whitequark>
then you strncpy() both of them into the new one
<eam>
interesting approach, probably works pretty well
beef-wellington has joined #ruby-lang
ur5us has joined #ruby-lang
yubrew has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
<jhass>
I didn't look at it but if I had to take a guess, for the stuff in /usr/include it checks for a -32 suffix, for the stuff in /usr/lib32 you have to add the include directory when building against it
rwk1 has joined #ruby-lang
<imperator>
hm, felipe losing it on ruby-core
SilkFox has quit [Ping timeout: 276 seconds]
<yorickpeterse>
what for?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
imperator: channel or ML?
miqui has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
TvL2386 has quit [Quit: Ex-Chat]
frobrob_ has quit [Ping timeout: 245 seconds]
_whitelogger has joined #ruby-lang
<whitequark>
hm
beef-wellington has quit [Ping timeout: 250 seconds]
fijimunkii has quit [Ping timeout: 240 seconds]
jsrn has quit [Quit: Leaving]
circ-user-kixG9 has quit [Remote host closed the connection]
simono has joined #ruby-lang
workmad3 has quit [Ping timeout: 250 seconds]
__butch__ has quit [Quit: Leaving.]
bf4_ has quit [Quit: leaving]
thmzlt has joined #ruby-lang
solars has quit [Ping timeout: 250 seconds]
elia has quit [Quit: Computer has gone to sleep.]
thmzlt has quit [Ping timeout: 252 seconds]
nertzy2 has joined #ruby-lang
fijimunkii has joined #ruby-lang
elia has joined #ruby-lang
arrubin has quit []
dsp___ has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
nertzy has quit [Ping timeout: 246 seconds]
mistym_ has joined #ruby-lang
momomomomo has quit [Client Quit]
momomomomo has joined #ruby-lang
pixelhandler has quit [Quit: pixelhandler]
momomomomo has quit [Client Quit]
robbyoconnor has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has quit [Ping timeout: 276 seconds]
arrubin has joined #ruby-lang
<zenspider>
drbrain: do you understand tadayoshi's argument against? because I don't.
<zenspider>
charlie's patch looks fine to me. I think it should be applied for consistency's sake
<drbrain>
I don't read enough japanese, but I do know tadf is super opinionated about Date/DateTime
<drbrain>
somebody that speaks Japanese needs to figure it out
<zenspider>
I think given https://bugs.ruby-lang.org/issues/7445#note-16 -- it's clear that this is a bug that will cause problems. if it has a strptime that references the manpage for the c function, it should act like the c function
<drbrain>
there's something about year and time zone not making sense
mykoweb has joined #ruby-lang
<apeiros>
if you interpret a plain year as all other values to be the lowest value, then it makes sense
<apeiros>
i.e., 2000 --> 2000-01-01T00:00:00.000
<zenspider>
strptime and strftime should round-trip in this case. It does everywhere else, and the doco says it should work like everywhere else. I don't think it makes sense for this ONE case to interpret the input differently
fijimunkii has quit [Ping timeout: 240 seconds]
mistym_ is now known as mistym
djbkd has joined #ruby-lang
kalehv has joined #ruby-lang
Squarepy has joined #ruby-lang
<apeiros>
basically there's two ways to interpret a date: a) as a datetime at the beginning of the date (e.g. 2000-01-01 = 2000-01-01T00:00:00.000), b) as an interval (e.g. 2000-01-01 = 2000-01-01T00:00:00.000...2000-01-02T00:00:00.000). In either interpretation, you have datetimes. Now a datetime makes sense to have a timezone. Without a timezone, it usually means "that time in your local timezone"
<zenspider>
drbrain: can you come review this?
<zenspider>
there's only one way to interpret it when it references a manpage
Cakey has joined #ruby-lang
yubrew has joined #ruby-lang
<zenspider>
drbrain: think it is ok to set the status to feedback (from closed) ?
<drbrain>
probably
MartynKeigher2 has quit [Ping timeout: 252 seconds]
djbkd has quit [Ping timeout: 245 seconds]
cnivolle has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 252 seconds]
dsp___ has joined #ruby-lang
jsullivandigs has joined #ruby-lang
ssb123 has joined #ruby-lang
dsp___ has quit [Ping timeout: 240 seconds]
dik_dak has quit [Quit: Leaving]
<zenspider>
well... we'll see how that goes
Cakey has quit [Ping timeout: 250 seconds]
ssb123 has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
JEG2 has quit [Quit: Connection closed for inactivity]
hahuang61 has quit [Ping timeout: 252 seconds]
|jemc| has quit [Ping timeout: 252 seconds]
rofel has quit [Quit: Leaving...]
ur5us has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
rwk1 has quit [Ping timeout: 252 seconds]
digs has joined #ruby-lang
digs is now known as Guest71013
allomov has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 240 seconds]
jsullivandigs has quit [Ping timeout: 240 seconds]
jhass is now known as jhass|off
allomov has quit [Ping timeout: 252 seconds]
thomasxie has joined #ruby-lang
ascarter has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
<drbrain>
hrm, travis-ci is picking REE for 1.8.7
mykoweb has joined #ruby-lang
<drbrain>
… I guess that's the only supported 1.8.7 on travis nowadays?