havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
red_menace has quit []
matp has joined #ruby-lang
kyb3r_ has joined #ruby-lang
charliesome has joined #ruby-lang
btiefert has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
bantic has quit [Quit: bantic]
marr has quit [Ping timeout: 272 seconds]
elia has quit [Quit: Computer has gone to sleep.]
MSY has joined #ruby-lang
MSY is now known as Guest87011
Guest11892 is now known as jkyle
jkyle has quit [Changing host]
jkyle has joined #ruby-lang
StarStarBoom has joined #ruby-lang
<StarStarBoom>
From the zip file for 1.9.3, what is required to install a gem and run it on a windows machine? looking to run it all from one directory
Newbie0086 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 272 seconds]
jimbach has quit [Remote host closed the connection]
threeifbywhiskey has left #ruby-lang [#ruby-lang]
cleopatra has joined #ruby-lang
btiefert2 has joined #ruby-lang
btiefert has quit [Ping timeout: 258 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
allomov has joined #ruby-lang
threeifbywhiskey has joined #ruby-lang
j4cknewt has joined #ruby-lang
allomov has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
<ericwood>
whitequark: sorry, had to quote that java8 thing on twitter
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
<whitequark>
sure
<ericwood>
I somehow managed to uninstall java on my mac and now I can't use JRuby
<ericwood>
so I can't work
<ericwood>
how th efuck did I do that
<ericwood>
reinstalling the JDK doesn't include the java command
mistym has quit [Remote host closed the connection]
gix has quit [Ping timeout: 258 seconds]
gix has joined #ruby-lang
robbyoconnor has joined #ruby-lang
mistym has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
araujo has quit [Quit: Leaving]
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Client Quit]
oleo has quit [Quit: Verlassend]
sunaku has quit [Quit: WeeChat 1.0.1]
j4cknewt has quit [Remote host closed the connection]
jg has joined #ruby-lang
allomov has joined #ruby-lang
allomov has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
gianlucadv has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Ping timeout: 255 seconds]
j4cknewt has joined #ruby-lang
kiddorails has joined #ruby-lang
x0f has quit [Ping timeout: 244 seconds]
x0f has joined #ruby-lang
AKASkip has joined #ruby-lang
kaczmar has joined #ruby-lang
q_leonetti has joined #ruby-lang
symm- has joined #ruby-lang
njames has joined #ruby-lang
ahmetkapikiran has quit [Quit: ahmetkapikiran]
fragamus_ has joined #ruby-lang
threeifbywhiskey has left #ruby-lang [#ruby-lang]
grumpy_int has quit [Ping timeout: 246 seconds]
kiddorails has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
rahul_j has joined #ruby-lang
symm- has quit [Ping timeout: 244 seconds]
fragamus_ has quit [Quit: Computer has gone to sleep.]
Wardrop has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
<Wardrop>
Where do you think the best place would be to start engaging rubyists interested in shaping a rack 2.0 or some other replacement that supports http/2 among other newer web application paradigms and technologies?
<ledestin>
Wardrop: there’s a lot of tech people on Twitter, but I’m not sure
<Wardrop>
I kind of know how to get the ball rolling once a project name and goal are established, it’d just be nice to get some very early community feedback. Maybe I’ll create an empty git repo and use the wiki and issue tracking as an initial home for early discussion.
ur5us has quit [Remote host closed the connection]
ur5us_ has joined #ruby-lang
ur5us has joined #ruby-lang
ur5us_ has quit [Read error: Connection reset by peer]
ur5us_ has joined #ruby-lang
ur5us has quit [Read error: Connection reset by peer]
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
rahul_j has joined #ruby-lang
ur5us has quit [Read error: No route to host]
ur5us has joined #ruby-lang
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby-lang
solars has joined #ruby-lang
ur5us has quit [Read error: No route to host]
ur5us has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby-lang
ur5us_ has joined #ruby-lang
ur5us has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
<ledestin>
ruby-lang994: well, your end index is 0, what do you expect?
danijoo has quit [Ping timeout: 250 seconds]
<ledestin>
>>test
<eval-in__>
ledestin => wrong number of arguments (0 for 2..3) (ArgumentError) ... (https://eval.in/210375)
<ledestin>
>>”a b c”.split.last
<ledestin>
>>puts ”a b c”.split.last
pastuxso has quit [Quit: Connection closed for inactivity]
Forgetful_Lion has joined #ruby-lang
rahul_j has quit [Ping timeout: 272 seconds]
ruby-lang994 has quit [Quit: Page closed]
allomov has joined #ruby-lang
kiddorails has quit [Ping timeout: 240 seconds]
kiddorails has joined #ruby-lang
rahul_j has joined #ruby-lang
cornerma1 has joined #ruby-lang
koderok has joined #ruby-lang
koderok has quit [Client Quit]
cornerman has quit [Ping timeout: 255 seconds]
cornerma1 is now known as cornerman
ur5us_ has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby-lang
njames has quit [Remote host closed the connection]
njames has joined #ruby-lang
kiddorails has quit [Ping timeout: 255 seconds]
JohnBat26 has joined #ruby-lang
njames has quit [Ping timeout: 244 seconds]
arBmind has joined #ruby-lang
arBmind1 has joined #ruby-lang
vondruch has joined #ruby-lang
arBmind has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
xcesariox has joined #ruby-lang
xcesariox has quit [Max SendQ exceeded]
xcesariox has joined #ruby-lang
ta has quit [Ping timeout: 245 seconds]
xcesariox has quit [Client Quit]
rahul_j has quit [Quit: rahul_j]
xcesariox has joined #ruby-lang
ta has joined #ruby-lang
xcesariox has quit [Client Quit]
rahul_j has joined #ruby-lang
nofxx_ has joined #ruby-lang
nofxx_ has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
nofxx has quit [Ping timeout: 244 seconds]
M3M0CooL has joined #ruby-lang
hellangel7 has joined #ruby-lang
riffraff has joined #ruby-lang
kyb3r_ has quit [Ping timeout: 255 seconds]
marr has joined #ruby-lang
nofxx_ has quit [Ping timeout: 244 seconds]
njames has joined #ruby-lang
ironhide_604 has joined #ruby-lang
njames has quit [Ping timeout: 265 seconds]
benlovell has joined #ruby-lang
michd is now known as MichD
ikrima has joined #ruby-lang
elia has joined #ruby-lang
<maloik>
Anyone here happen to use the Spreadsheet lib for xls exports? One of our columns is not being recognized as a number because the decimal delimiter is a comma here in Europe... changing it to a string and gsubbing doesn't seem to help
AKASkip has quit [Ping timeout: 272 seconds]
jhass has quit [Ping timeout: 245 seconds]
jhass has joined #ruby-lang
existensil has joined #ruby-lang
godd2 has quit [Ping timeout: 250 seconds]
skade has joined #ruby-lang
postmodern has quit [Quit: Leaving]
<yorickpeterse>
morning kids
AKASkip has joined #ruby-lang
ur5us has joined #ruby-lang
quimrstorres has joined #ruby-lang
AKASkip has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 255 seconds]
njames has joined #ruby-lang
kiddorails has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 245 seconds]
njames has quit [Ping timeout: 272 seconds]
kiddorails has quit [Remote host closed the connection]
ldnunes has joined #ruby-lang
M3M0CooL has quit []
riffraff has quit [Quit: This computer has gone to sleep]
quimrstorres has quit [Remote host closed the connection]
riffraff has joined #ruby-lang
17WAAC2S6 has joined #ruby-lang
benlovell has quit [Ping timeout: 260 seconds]
<ndrst>
moin yorickpeterse
<zenspider>
maloik: fix the code and send a PR
<yorickpeterse>
peaceful Monday of coding a devhub together
<yorickpeterse>
some CSS here, some HTML there, all is good
kith_ is now known as kith
<maloik>
zenspider: it's not completely open source apparently, they have commercial licenses etc
ironhide_604 has quit [Ping timeout: 256 seconds]
kiddorails has joined #ruby-lang
<zenspider>
maloik: then why are you using it?
<zenspider>
they have rather recent releases. if you want a fix that's prolly your best bet
francisfish has quit [Remote host closed the connection]
parenjitsu has joined #ruby-lang
wallerdev has joined #ruby-lang
pabloh has joined #ruby-lang
kiddorails has joined #ruby-lang
amsi has joined #ruby-lang
momomomomo_ has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
yfeldblum has quit [Ping timeout: 258 seconds]
michael_mbp has quit [Excess Flood]
fragamus has joined #ruby-lang
nertzy2 has joined #ruby-lang
fragamus has quit [Client Quit]
michael_mbp has joined #ruby-lang
michael_mbp has quit [Excess Flood]
goatish_mound has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby-lang
j4cknewt has joined #ruby-lang
AKASkip has joined #ruby-lang
RobertBirnie has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Adam___ has joined #ruby-lang
jg_ has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
mnngfltg has quit [Remote host closed the connection]
bantic has quit [Quit: bantic]
bantic has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
nertzy2 has quit [Quit: This computer has gone to sleep]
<Adam___>
Hey ruby peeps! I'm having a weird error on my jenkins server that I'm not getting on my computer about an encoding incompatibility. The ruby version on the server is ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-linux], the one on my computer is ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin12.5.0]. The error is : incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError). I've found th
<Adam___>
g .force_encoding(Encoding::UTF_8) but that doesn't work either.
wallerdev has joined #ruby-lang
<Adam___>
any ideas on what might be the cause?
quimrstorres has quit [Remote host closed the connection]
nelsonsar has quit [Remote host closed the connection]
carraroj has joined #ruby-lang
djbkd has joined #ruby-lang
quimrstorres has joined #ruby-lang
quimrstorres has quit [Remote host closed the connection]
imkmf has quit [Ping timeout: 260 seconds]
kaczmar has joined #ruby-lang
francisfish has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
carraroj has quit [Ping timeout: 265 seconds]
francisfish has quit [Client Quit]
djbkd has joined #ruby-lang
quimrstorres has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
yfeldblum has joined #ruby-lang
nelsonsar has joined #ruby-lang
robbyoconnor has joined #ruby-lang
francisfish has joined #ruby-lang
bradcliffe has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
skade has joined #ruby-lang
futilegames has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
j4cknewt has joined #ruby-lang
j4cknewt has quit [Ping timeout: 255 seconds]
pavely has joined #ruby-lang
pavely has left #ruby-lang [#ruby-lang]
apt-get_ has joined #ruby-lang
cmckee has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
sarkyniin has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
benlovell has joined #ruby-lang
quimrstorres has quit [Remote host closed the connection]
AmBienCeD has quit [Ping timeout: 245 seconds]
Senjai`work is now known as Senjai
imkmf has joined #ruby-lang
Adam___ has quit [Ping timeout: 246 seconds]
quimrstorres has joined #ruby-lang
benlovell has quit [Ping timeout: 265 seconds]
allomov has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
egypt has joined #ruby-lang
cmckee has left #ruby-lang [#ruby-lang]
pabloh has quit [Quit: Saliendo]
<egypt>
i have a commandline app that gives users the choice of using the stdlib readline or rb-readline by vendoring rb-readline and changing its filename to avoid clashing with stdlib.
<egypt>
maintaining that vendored version is starting to become a burden
<egypt>
i'd like to move to the gem to avoid that
<egypt>
but because the filename clashes with stdlib, i don't see a good way to do so
<egypt>
if I can figure out where stdlib readline lives in the loadpath easily, i could require it with a full path and maintain the ability to use both.
<egypt>
is there a better way to do it?
bousquet has joined #ruby-lang
<yorickpeterse>
egypt: just provide only one of the two?
<egypt>
if not, is there a way to determine the full path without just walking $LOAD_PATH?
<yorickpeterse>
Why should the user care about what readline implementation is used?
<egypt>
yorickpeterse: the user cares because rb-readline doesn't support some important features of real readline
<egypt>
and i can't ship a real readline binary because it is GPL
<yorickpeterse>
then only support real readline?
<yorickpeterse>
ehm, you can ship it just fine as long as the user can access it
<egypt>
linking to it makes everything gpl
<yorickpeterse>
are we talking about ruby readline, or libreadline?
<yorickpeterse>
The latter you shouldn't have to vendor or ship yourself, let package managers deal with that (and somehow instrument that)
<egypt>
libreadline.so
<egypt>
i can't ship it, and i can't be sure it will be on the user's system.
<egypt>
i need to at least function without it
<egypt>
which is workable with rb-readline
bantic has quit [Quit: bantic]
<yorickpeterse>
can't you just install libreadline if it's not there?
bantic has joined #ruby-lang
gianlucadv has joined #ruby-lang
<yorickpeterse>
That is, package your app as some Debian package/RPM/whatever, have said package depend on libreadline
<yorickpeterse>
problem solved
<egypt>
that doesn't help on windows or any of the linux distros i don't build a package for
<yorickpeterse>
well you can't distribute one pre-compiled libreadline.so anyway
<yorickpeterse>
So there you'd already spend time making binaries for different platforms
<yorickpeterse>
Might as well let the distros, where possible, do that for you
<yorickpeterse>
Or even easier: tell the user to install it. libreadline is such a core dependency of many apps, at least on Linux, that it's a bit insane if they all started shipping copies themselves
<yorickpeterse>
tl;dr you really don't want to get in the mess of building binaries for every possible target platform, let those platforms do that for you
<egypt>
agreed, i definitely don't want to do that.
<yorickpeterse>
or use rb-readline and not use whatever features it doesn't support, if that's an option
<egypt>
but i want to at least function when the user has no libreadline.so
<whitequark>
ship libedit
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby-lang
jimbach has joined #ruby-lang
malconis has joined #ruby-lang
j4cknewt has quit [Ping timeout: 260 seconds]
ender|dkm has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
fragamus has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fragamus has quit [Client Quit]
<darix>
dont ship libraries intree
kiddorails has quit [Remote host closed the connection]
<darix>
egypt: how about just handling that error gracefully and tell people how to fix it?
tmatthews0020 has joined #ruby-lang
seank__ has joined #ruby-lang
bjessbrown has joined #ruby-lang
nelsonsar has joined #ruby-lang
benlovell has joined #ruby-lang
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby-lang
seank_ has quit [Ping timeout: 255 seconds]
malconis has joined #ruby-lang
ahmetkapikiran has joined #ruby-lang
Austin__ has joined #ruby-lang
bjessbrown has quit []
godd2 has joined #ruby-lang
j4cknewt has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quimrstorres has quit [Remote host closed the connection]
mroth_ has joined #ruby-lang
mroth_ has quit [Client Quit]
ikrima has quit [Ping timeout: 244 seconds]
j4ck1 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
bradcliffe has quit [Remote host closed the connection]
<canton7>
think old-school division
<canton7>
what is 3 divided 4?
<canton7>
it's 0, with 3 left over
<canton7>
uh... 4 divided by 3
<j4ck1>
ok
<canton7>
I'm just getting myself in a muddle
<j4ck1>
gotcha
<canton7>
it's late here
<whitequark>
3 divided by 4, you were right first
* canton7
goes back to mindless games
<j4ck1>
lol
<j4ck1>
canton7: I get what you are saying now
<j4ck1>
I feel dumb now :)
<j4ck1>
I'm going through Learn Ruby The Hard Way
<j4ck1>
but are there any other resources you guys can suggest that would take me to a level above beginner ruby scripter
wallerdev has quit [Quit: wallerdev]
<|jemc|>
j4ck1: pick an existing gem that you use or are interested in and read the source code until you understand it and have internalized the coding style and 'best practices' employed
<egypt>
darix: that's what i'm trying to do. if i can't have libreadline.so, fall back to rb-readline
<|jemc|>
(assuming the authors used good practices...)
<egypt>
which would be a simple rescue LoadError if rb-readline didn't have the same require name
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
bradcliffe has joined #ruby-lang
apeiros has quit []
mistym has joined #ruby-lang
ggherdov has quit [Ping timeout: 244 seconds]
ramblinpeck has quit [Ping timeout: 272 seconds]
mjc_ has quit [Ping timeout: 272 seconds]
joshingly has quit [Ping timeout: 272 seconds]
<|jemc|>
egypt: your idea about searching through $LOAD_PATH yourself is not too absurd, but have you considered putting in some PRs to rb-readline for the features you need?
ramblinpeck has joined #ruby-lang
joshingly has joined #ruby-lang
imperator has joined #ruby-lang
mjc_ has joined #ruby-lang
MichD is now known as michd
apeiros has joined #ruby-lang
<|jemc|>
egypt: also, I see rb-readline defines the toplevel module RbReadline - can you not use this to detect which one was loaded?
loincloth has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
skade has quit [Quit: Computer has gone to sleep.]
ggherdov_ has joined #ruby-lang
malconis has joined #ruby-lang
cornerma1 has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
<egypt>
|jemc|: detecting rb-readline isn't the problem, it's using readline.so at all when rb-readline is found first in the load path
thagomizer has quit [Quit: Leaving.]
thagomizer has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
jordsmi has quit [Quit: Connection closed for inactivity]
ldnunes has quit [Quit: Leaving]
robbyoconnor has quit [Ping timeout: 265 seconds]
<imperator>
egypt, typically you have one or the other installed; if given a choice, use the C extension
<imperator>
used to load first, dunno if they've changed things in Ruby 2.x
<imperator>
does it load gems first now?
<egypt>
rb-readline loads first for me
<egypt>
hmm, that may be the app
<egypt>
in a bare gemset with just rb-readline, `require 'readline'` gets readline.so
<imperator>
ok, so something else is loading rb-readline then?
<egypt>
i'm guessing so
<egypt>
ok, so if i can figure out why the order is different and get it to load readline.so first if available, that would at least solve the problem of having something that works either way
<egypt>
removes the users' choice, but i think i'm ok with that
tmatthews0020 has left #ruby-lang [#ruby-lang]
<imperator>
ok, this is odd, i don't have rb-readline installed, yet I have RbReadline defined somehow
<imperator>
looks like it's bundled now
loincloth has joined #ruby-lang
<imperator>
(or maybe i did that, lemme check)
dsiboy08 has joined #ruby-lang
emmesswhy has joined #ruby-lang
<imperator>
i can't tell, i mess around with my installs sometimes
mistym has quit [Remote host closed the connection]
akahn has quit [Ping timeout: 260 seconds]
quimrstorres has joined #ruby-lang
oleo__ has joined #ruby-lang
oleo is now known as Guest11324
<egypt>
ah, yeah, if i add to gemspec, it always loads rb-readline
<egypt>
probably bundler's doing
akahn has joined #ruby-lang
<egypt>
it would be an odd linux system indeed that had no libreadline.so; maybe i can conditionally depend on it for windows.
<imperator>
for linux, it's typically not installed by default i don't think
<egypt>
i'm pretty sure it is on ubuntu
<egypt>
could be wrong
Guest11324 has quit [Ping timeout: 244 seconds]
<imperator>
is it? been a while since i checked, but i seem to recall using apt-get to get it (and ssl) all the time
<imperator>
(and zlib)
<egypt>
for headers, yeah
scampbell has quit [Remote host closed the connection]
dlackty has quit [Ping timeout: 272 seconds]
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
dlackty has joined #ruby-lang
banister_ has joined #ruby-lang
banister has quit [Ping timeout: 245 seconds]
<imperator>
there's also ffi-readline, if you don't want to worry about headers
<egypt>
all i really want to do is be able to conditionally use one or the other
wallerdev has joined #ruby-lang
<egypt>
if i add rb-readline to Gemfile, it overrides readline.so and i can't get to it without walking $:
<imperator>
i can only ponder what bundler is doing
ur5us_ has joined #ruby-lang
<imperator>
looks like 2.1.4 has been released
mistym has joined #ruby-lang
<nofxx_>
Got myself a daemon, and need to upload stuff... popen3 my best choice? want to full control a separeted process that I can time track and kill and whatnot
ur5us has quit [Ping timeout: 255 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
<nofxx_>
need it to be synchronous* one upload per time.... hence why the daemon to control the upload process
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tacit7 has joined #ruby-lang
tacit7 has quit [Client Quit]
carraroj has joined #ruby-lang
ahmetkapikiran has quit [Ping timeout: 260 seconds]
ruby-lang629 has joined #ruby-lang
ruby-lang629 has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
djbkd has quit [Read error: Connection reset by peer]
gianlucadv has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby-lang
AKASkip has quit [Read error: Connection reset by peer]
<nofxx_>
Actually guess my question was more like a Thread controlling the external or Process.spawn ... playing with it...
AKASkip has joined #ruby-lang
ahmetkapikiran has joined #ruby-lang
emmesswhy has joined #ruby-lang
carraroj has quit [Quit: Konversation terminated!]
skade has joined #ruby-lang
Versality has joined #ruby-lang
chouhoul_ has quit []
chouhoulis has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allomov has joined #ruby-lang
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ has joined #ruby-lang
Lewix has joined #ruby-lang
benlovell has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby-lang
<nofxx_>
Now my question is why there isn't Process.wait_async(pid, callback)
quimrstorres has quit [Remote host closed the connection]
nelsonsar has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
itsraining has joined #ruby-lang
futilegames has quit [Quit: futilegames]
djbkd has joined #ruby-lang
riffraff has quit [Quit: Leaving]
itsraining has quit [Client Quit]
carraroj has joined #ruby-lang
dsiboy08 has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
loinclot_ has joined #ruby-lang
loinclot_ is now known as loincloth_
banister_ is now known as banisterfiend
loincloth has quit [Ping timeout: 245 seconds]
elia has joined #ruby-lang
kaczmar has quit [Quit: kaczmar]
pastuxso has quit [Quit: Connection closed for inactivity]
<imperator>
wouldn't that be...not waiting?
quimrstorres has joined #ruby-lang
yfeldblum has joined #ruby-lang
arBmind has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
musl has quit [Quit: WeeChat 0.4.3]
musl has joined #ruby-lang
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
carraroj has quit [Quit: Konversation terminated!]
Austin__ has quit [Quit: Leaving.]
snoopybbt has quit [Quit: leaving]
fusillicode has quit [Ping timeout: 255 seconds]
havenwood has quit [Remote host closed the connection]
<yorickpeterse>
and it's of course a super trivial example
<darix>
yorickpeterse: good thing that the w3c has no established process to fix those issues.
elia has quit [Read error: Connection reset by peer]
<yorickpeterse>
Based on Nokogiri's behaviour it appears that Xn-Y is translated to Xn+Y using the transformation Xn+(X - (Y % X))
<yorickpeterse>
darix: heh
elia has joined #ruby-lang
<yorickpeterse>
of course the commit that introduced this support in Nokogiri adds just 1 test and doesn't describe anything in depth about where the knowledge came from
<whitequark>
yorickpeterse: oh
momomomomo_ has quit [Quit: momomomomo_]
<whitequark>
but the spec describes it fully
<yorickpeterse>
... it doesn't
elia has quit [Read error: Connection reset by peer]
<yorickpeterse>
Don't pretend you're high on catnip
<yorickpeterse>
It specifies the behaviour when the form Xn+Y is used, that parts makes sense
<yorickpeterse>
but when using the negative form it doesn't. E.g. in positive form Y is the offset, this is not the case in the negative form
<yorickpeterse>
e.g. 6n-4 doesn't start at -4, nor does it start at -3 (assuming 1 indexing). It starts at 2
fragamus has joined #ruby-lang
<yorickpeterse>
so 6n-4 would match 2, 8, 14, etc
elia has joined #ruby-lang
<whitequark>
yorickpeterse: see: "The :nth-child(an+b) pseudo-class notation represents an element that has an+b-1 siblings before it in the document tree"
<whitequark>
... " for any positive integer or zero value of n, and has a parent element"
<whitequark>
note that it doesn't require positive values of a or b.
<whitequark>
because that formula works for negative a and b as well
Asher has quit [Quit: Leaving.]
<yorickpeterse>
whitequark: I have spent 3 days reading through it, I know what it says. It says fuck all about the negative formula
<whitequark>
6n-4 would translate to "represents an element that has 6n-5 siblings before it"
GBrawl has quit [Quit: (null)]
<whitequark>
what exactly is unclear in that?
<yorickpeterse>
except that is not what happens
ur5us_ has quit [Remote host closed the connection]
<yorickpeterse>
in a set of 16 nodes, it matches node 2, 8, and 14
<yorickpeterse>
node 2 has no 5 nodes before it
Asher has joined #ruby-lang
loincloth has joined #ruby-lang
<yorickpeterse>
only 8 and 14 have
ur5us has joined #ruby-lang
<yorickpeterse>
Once you figure out how to translate it to the positive form things start to make a bit more sense
<yorickpeterse>
but that whole procedure is completely unspecified
<yorickpeterse>
If it were to say "6n-4 is the same as 6n+2 because ..." it would've greatly helped
<yorickpeterse>
In fact, I could've finished this 2 days ago
<whitequark>
I actually wonder if Nokogiri's implementation is even valid
<whitequark>
based on what you say, I am not so sure
nathanstitt has quit [Quit: I growing sleepy]
j4cknewt has quit [Remote host closed the connection]
<yorickpeterse>
It is
<yorickpeterse>
I've compared it with Chromium's CSS engine, it's compatible
<yorickpeterse>
(or valid for that matter)
emmesswhy has quit [Quit: This computer has gone to sleep]
loincloth_ has quit [Ping timeout: 255 seconds]
<yorickpeterse>
e.g. 4n-7 gets turned into ((count(preceding-sibling::*) + 1) >= 1) and ((((count(preceding-sibling::*) + 1)-1) mod 4) = 0)
<yorickpeterse>
(dat xpath)
Versality has quit [Ping timeout: 244 seconds]
<whitequark>
okay that's fucked up, I agree
benlovell has joined #ruby-lang
<yorickpeterse>
If W3 membership didn't cost a fuckton I'd sign up and send an angry rant to the mailing list
<yorickpeterse>
(ignoring it wouldn't help)
goodcodeguy has joined #ruby-lang
<yorickpeterse>
Hm, the modulo theory seems to hold itself together so far
_elia has joined #ruby-lang
symm- has quit [Ping timeout: 240 seconds]
nelsonsar has quit [Remote host closed the connection]
elia has quit [Ping timeout: 250 seconds]
<yorickpeterse>
yup, so an-b becomes an+(a - (b % a))
<whitequark>
it certainly doesn't match the spec in my view
<whitequark>
it does match my expectation of what negative b would do, but not the spec, as written.
<whitequark>
wtf, W3.
<yorickpeterse>
try reading the xpaht spec
<yorickpeterse>
* xpath
<yorickpeterse>
equally crazy, though at least a bit more in depth
<whitequark>
I'll rather set my hair on fire
<yorickpeterse>
CSS4 spec is even wackier
<yorickpeterse>
they're adding shit like :nth-child(even of .some_selector)
benlovell has quit [Ping timeout: 255 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
<yorickpeterse>
oh, and xpath 2.0 is turing complete
<yorickpeterse>
and is basically an entire scripting language
<yorickpeterse>
yay W3
<apeiros>
because… why not. *sob*
<apeiros>
not everything which can be done should be done :-|
<yorickpeterse>
it also has static typing support of some sort
cmhobbs has quit [Ping timeout: 240 seconds]
<whitequark>
oh god
<whitequark>
please stop
<whitequark>
I don't want to know k
<darix>
mod_rewrite in apache is turing complete too
bantic has quit [Quit: bantic]
allomov has quit [Remote host closed the connection]
_elia has quit [Ping timeout: 265 seconds]
elia has joined #ruby-lang
<yorickpeterse>
There's a good reason why most XML tools implement XPath 1.0 only :P
_elia has joined #ruby-lang
allomov has joined #ruby-lang
allomov has quit [Remote host closed the connection]
nertzy2 has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
elia has quit [Ping timeout: 258 seconds]
emmesswhy has joined #ruby-lang
Cyrano has joined #ruby-lang
rkowalick has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
charliesome has quit [Quit: zzz]
ironhide_604 has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
nofxx_ has quit [Ping timeout: 250 seconds]
hramrach_ has quit [Ping timeout: 246 seconds]
elia has joined #ruby-lang
_elia has quit [Read error: Connection reset by peer]
hramrach_ has joined #ruby-lang
jimbach has quit [Remote host closed the connection]