<ohsix>
wait, i thought you said my statement was wrong, i didn't invoke the code just the distinction
<bnagy>
your statement is wrong
<bnagy>
the devices don't really behave differently
<bnagy>
they can both block
<ohsix>
i said something to the effect of 'really', but you haven't said ... ok
<bnagy>
they both have entropy sources
<bnagy>
it's just horribly documented
<ohsix>
we're still talking about it sucking on linux right
shashin has quit [Quit: shashin]
<ohsix>
cuz i'm gonna go look :p
<bnagy>
so it's definitely not something I'm saying you're stupid for thinking
<bnagy>
I was perhaps too blunt sorry
<ohsix>
it's alright
<ohsix>
i'm pretty sure i've confirmed this in the past but i'm willing to look again; i was just stating what i thoguht i knew pretty well
<ohsix>
under But what if I need real random values, not psuedorandom values?
<ohsix>
on what you've posted seems to support my impression of the situation
<bnagy>
just always use urandom
<ohsix>
right, but it says Only on Linux are /dev/random and urandom still meaningfully different. The Linux kernel CSPRNG rekeys itself regularly (by collecting more entropy). But /dev/random also tries to keep track of how much entropy remains in its kernel pool, and will occasionally go on strike if it decides not enough remains.
<bnagy>
yeah because it's insane
<ohsix>
right but i'm reading this like it resolves my mistake but it's junk i've already known, gonna read the code again
<ohsix>
i don't disagree with some sort of statement like 'you would only ever use this one'
<ohsix>
and it's probably arguable if the distinction is worth anything
Honsby has joined #ruby-lang
knu has quit [Ping timeout: 264 seconds]
<ohsix>
blocking has actually been a problem for things when there isn't enough entropy
amsi has quit [Quit: Leaving]
<ohsix>
but you know it's of a certain quality and you can control how you add entropy to the pool
<ohsix>
the other one just has some random stuff in it that is handy so you don't have to seed your own rng (or have one) based on the time or something
flip_dig_ has joined #ruby-lang
<ohsix>
even though a syscall to get random data is expensive, it might be implied for some things, having it soak up all available entropy and also blocking the device ssh might be using for entropy is Bad (TM) tho
mistym has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
elliotec has joined #ruby-lang
<centrx>
The only argument that article makes is "This design is as silly as I’ve made it sound"
elliotec_ has joined #ruby-lang
<ohsix>
that's a given ;D
wallerdev has joined #ruby-lang
Honsby has quit [Ping timeout: 240 seconds]
<ohsix>
i'm assuming that there's a contrast, like on freebsd there is a good entropy source and it also blocks (i don't know if this is a fact) and that there are applications just taking entropy when they probably shouldn't
<ohsix>
bluh, apologies, i was in a discussive(TM) mood after some other conversation i was in died, gotta go
<centrx>
Seems like the difference is what the manpage says
<centrx>
Blocks if not enough entropy
<ohsix>
yea
<centrx>
Sounds like a good distinction
wallerdev has quit [Client Quit]
mistym has joined #ruby-lang
Cakey has joined #ruby-lang
wallerdev has joined #ruby-lang
<ohsix>
yep, but debatable, i guess the part i was wrong about is that one has entropy sources
<ohsix>
though tbh i was only speaking imprecisely, cuz it only matters with respect to the one that blocks
elliotec has quit [Ping timeout: 265 seconds]
alexju has quit [Remote host closed the connection]
wallerdev has quit [Ping timeout: 240 seconds]
Asher has joined #ruby-lang
Cakey has quit [Quit: leaving]
<bnagy>
they both block
Cakey has joined #ruby-lang
Cakey_ has joined #ruby-lang
Cakey_ has quit [Client Quit]
<bnagy>
oh wait... no linux urandom doesn't block when unseeded, it's just retarded
<bnagy>
sorry
amclain has joined #ruby-lang
sdouglass has quit [Remote host closed the connection]
<centrx>
/dev random
<centrx>
You are making the same mistake as the Japanese guy
<bnagy>
no?
<bnagy>
you need to seed urandom at boot
<bnagy>
this is the bug that bit a ton of embedded devices
<centrx>
Yes
<centrx>
What I wonder is where it gets the seed on very first boot
<bnagy>
guess
<centrx>
Looks like date
<centrx>
on this version of Debian at least
<bnagy>
eh.. no it should be a bunch of stuff
<bnagy>
tbh I thought they just seeded from random
Cakey_ has joined #ruby-lang
Cakey_ has quit [Client Quit]
<centrx>
That's what I thought
<centrx>
between boots it seeds it from seconds.nanoseconds + the previous boots created seed file
<bnagy>
even seeding for unix time would be Bad
<centrx>
but on the very first boot, it only uses date +%s.%N
woollyams has quit [Read error: Connection reset by peer]
elliotec has joined #ruby-lang
<bnagy>
kernel prng > userspace prng and I don't trust openssl for anything anyway
<pipework>
bnagy: Well, I don't personally cater to paranoia.
<pipework>
Forgive me.
<bnagy>
ok then kernel prng > userspace prng
<pipework>
maybe. I still haven't finished the article.
seanlinsley has quit [Ping timeout: 240 seconds]
bawigga has quit []
<bnagy>
wow that is hilarious
<pipework>
I agree that OpenSSL shouldn't at any point include OS-specific code, even if the other parts are compiled out.
tockitj has quit [Ping timeout: 264 seconds]
<bnagy>
oh.. just got to the end. Surprise! I very much like the idea of using /dev/urandom as sole Random Number Generator for cryptographic purposes
<pipework>
For what SecureRandom should do, I think that it would be prudent to switch the two in this case, only because it already conditionally looks for it. It just happens to be on the other side.
<bnagy>
It's Just Better tm
bawigga has joined #ruby-lang
seanlinsley has joined #ruby-lang
<pipework>
I don't agree.
<pipework>
I think it's a better implementation that's specific to an operating system.
<pipework>
Even BSD and OS X have them, but not everyone.
<bnagy>
windows has an analagous api
<bnagy>
what's left that ruby runs on?
bm5k has quit [Quit: bm5k]
minim has quit [Ping timeout: 264 seconds]
<pipework>
I don't think OpenSSL should be concerned with those.
<bnagy>
I don't think openssl should be doing random for anything that's not openssl
bzalasky has joined #ruby-lang
<pipework>
If ruby's SecureRandom wants to include OS-specific code, go nuts.
jperry_ has quit [Quit: jperry_]
<pipework>
OpenSSL has to include a PRNG for its own use.
<bnagy>
random that is supplied as a fundamental service of the OS is better than a userland random in a specific crypto lib that is maintained by martians
<centrx>
It already includes OS-specific code
<pipework>
centrx: In the PRNG?
<centrx>
In Ruby's SecureRandom
<bnagy>
yes of course
<pipework>
centrx: That's Ruby's library.
<bnagy>
it needs to seed itself
<centrx>
SecureRandom has OS-specific code for Win32, and it has code for /dev/urandom
<pipework>
centrx: We're talking about OpenSSL itself.
<pipework>
We know that SecureRandom has OS-specific code.
<bnagy>
so does openssl
<bnagy>
it has to
sdouglas_ has joined #ruby-lang
Honsby has joined #ruby-lang
<bnagy>
look, the only source of entropy that you can use for 'real' random is hardware, and the only thing that can get it is the kernel
<pipework>
Anyways, I think I'm also wrong since like 0.9.7
<bnagy>
everything else is guessing how much we can stretch it via whatever
Cakey has quit [Quit: leaving]
<pipework>
It does check for them.
yfeldblum has quit [Remote host closed the connection]
<pipework>
Rather than taking them as a compilation flag option.
<ohsix>
centrx: entropy is saved and then given back on shutdown/boot; if something really depended on having that entropy it should probably be done after that (it's still done really early) but it's a hidden dependency
<ohsix>
the one that has entropy sources will have some at boot, from the entropy sources in the kernel
<ohsix>
and, they will block any reader if there's not enough
<ohsix>
getting entropy from the disk io and stuff at install time is probably a good idea, but it's not a chicken and egg problem
Rylee has joined #ruby-lang
flip_digits has joined #ruby-lang
Cakey has joined #ruby-lang
<bnagy>
well talking about boot time isn't really relevant for any ruby related discussion
<pipework>
Sure it is.
<bnagy>
it's not
<pipework>
Yes.
* centrx
is building a Ruby-based init system
Cakey has quit [Client Quit]
<bnagy>
ruby doesn't run anywhere near close enough to boot to matter
<pipework>
You don't work on embedded systems, do you?
<pipework>
Let's not toss out his argument because you disagree with it.
<bnagy>
it's not an argument
<ohsix>
re: The weirdness that openssl apparently did, the way openssl is done is openbsd writes it and lets other people carry patches to port it, so (somewhat unfairly) the people who weren't upstream, the people porting, might have overlookd it
<pipework>
bnagy: His comments, whatever.
Cakey has joined #ruby-lang
<bnagy>
I agree with them, but they're related to openssl and linux bootup
<bnagy>
they're just nothing to do with ruby
<bnagy>
and I don't think ohsix ever said they were
richardardrichar has joined #ruby-lang
joelroa has joined #ruby-lang
<pipework>
ohsix: So, what's your thoughts on who should be responsible for flushing the buffer?
<bnagy>
the only argument I am currently making is that ruby should use urandom and not openssl
<bnagy>
in all cases ever
<pipework>
Good thing you aren't moderator of the discussion then.
<centrx>
Yes. I am the moderator!
<bnagy>
well it seemed like you were disagreeing
<bnagy>
so I was continuing that line of debate
<bnagy>
I was led to believe this when you said 11:17 < pipework> I don't agree.
elliotec has quit [Remote host closed the connection]
<pipework>
Let's not argue about arguing, I get enough of that in rubyonrails.
<pipework>
I'm interested in his thoughts, even if you'd rather not hear them.
Guest52079 has quit [Remote host closed the connection]
<ohsix>
re: the user/kernel stuff, you can get entropy from the scheduling jitter and stuff, which is indirectly from the hw anyways, but available to userspace; the problem is waiting around until you have enough
<ohsix>
finished reading the backlog
joelroa has quit [Ping timeout: 240 seconds]
<ohsix>
flushing what buffer? i don't really know all that much about ruby and certainly nothing about what spawned the discussion
Cakey has quit [Quit: leaving]
<bnagy>
imho scheduling jitter is pretty weak to try and use for CSPRNG
<ohsix>
the rng's available in openssl may not be 'random' but they're Known (TM)
<bnagy>
but to be fair I don't know anything that tries that
Cakey has joined #ruby-lang
<ohsix>
depending on how the source of entropy is being used, you might really really not want to use OS entropy supplies even if they were all very good, because they will be different
<pipework>
ohsix: The buffer that OpenSSL uses to seed the PRNG, I think.
<bnagy>
ohsix: wait.. when would you not want to use OS random but want openssl?
<ohsix>
FWIW if i was doing something about this wrt. ruby i'd probably remove the idea that something is called 'secure'
mistym has quit [Remote host closed the connection]
<pipework>
lul
<bnagy>
I mean openssl's only source of entropy is the os device
<ohsix>
bnagy: it depends, i was getting to something called 'secure' being quantifiable
<pipework>
That's a better answer than "update the docs"
<pipework>
bnagy: Well, it's actually using it to seed, but yeah.
Honsby has quit [Remote host closed the connection]
<bnagy>
pipework: it uses it as much as it conveniently can
<pipework>
bnagy: Ostensibly not as much as you'd like though.
<bnagy>
it doesn't just seed and then run a prng forever
<ohsix>
openssl can probably temper and make better entropy sources that are poor, i don't actually know; but since everything openssl does is known and the algorithms have been studied and classified, they are a-priori better than a possible entropy source whos characteristics is unknown
Honsby has joined #ruby-lang
<bnagy>
that's not apriori
<bnagy>
everything in *nix kernel is also studied and known
<ohsix>
to make this conversation more fruitful and concrete you would really have to decide what 'secure' is, if people are taking any rng behind that interface as good enough for what they're doing, they're probably wrong
<lianj>
bnagy: if openssl prng is so bad why didn't you steal all those buttcoins yet?
<pipework>
Well, I think it's more that the algorithms are.
<pipework>
Less about where the algorithms are implemented.
<ohsix>
i would still be in favor of knowing what quality /dev/urandom was if you were choosing to use it; i was speaking to different sources on different platforms vs. openssl
<pipework>
ohsix: Linus Torvalds would assure you it's of the best quality.
<centrx>
^?<BA><98>J<A5><83><FE><EC>
<bnagy>
lianj: it's not really about openssl being bad or good, or proving it ( although many hilarious openssl random bugs are on record )
<pipework>
He recently ripped into someone about it.
<centrx>
That is some genuine random bits from my /dev/random
<centrx>
You should be flattered
<bnagy>
it's about the kernel being fundamentally better placed to manage entropy
tkuchiki has quit [Remote host closed the connection]
<bnagy>
of which it is, after all, the ONLY SOURCE
<ohsix>
there's no real distinction there
<centrx>
I have used up some of my precious entropy for you
<bnagy>
while I'll admit that it is hard to decide which of linux kernel and openssl is worse, they're both 'open'
<pipework>
The paper is much longer, which should afford this poor channel some peace.
Honsby has quit [Ping timeout: 240 seconds]
<ohsix>
that scheiner link looks proper
<ohsix>
you can't really say one is better than the other in the abstract
<ohsix>
i've mentioned why you would care about all sources and might prefer openssl
<pipework>
I sincerely doubt that anyone participating, including me, is any kind of expert on the subject. I'll see if I can get some of the papers the sister company of my company produces. Network security company.
sdouglas has joined #ruby-lang
<ohsix>
i've pretty much dropped all the knowledge i could and have talked myself out of the conversation, but that scheiner link looks like proper analysis of the entropy estimation and stuff; that's another universe than deciding if urandom > ssl and stuff, that's meat and potatoes
Cakey has quit [Quit: leaving]
<ohsix>
i know a little bit about testing random sources and rngs for certain aspects (and what you would consider to be fit for 'secure' use) and that there's a reason there's a bunch of them, they all have different properties
<pipework>
That's not even actually relevant, but it's a fun read!
<pipework>
It's a rundown on some recent stuff.
Cakey has joined #ruby-lang
agrinb has joined #ruby-lang
alekst has quit [Quit: Leaving...]
<bnagy>
that paper is just hating on linux dev random, which I agree with
<ohsix>
it says the entropy estimator is bad
<bnagy>
yeah
<ohsix>
which is a very hard thing to do, the end
<bnagy>
hence don't do it :)
<ohsix>
that's part of measuring the quality of the entropy, you do it with the prng's too
<ohsix>
some of the best methods just look for clusters in higher dimensional spaces
<pipework>
Shit's difficult. OpenSSL's PRNG is good enough. I'd be stoked to see something demonstrably better or at least less bad.
<bnagy>
basically just chuck entropy into your PRNG whenever you have it
Cakey has quit [Client Quit]
<ohsix>
and you only do that hard analysis to qualify the prng, you don't do that very intensive work to measure the quality of the entropy you have in-situ
vpretzel has quit [Quit: Adios!]
Cakey has joined #ruby-lang
<ohsix>
it's actually a bit of a noodle bender, knowing the quality of the entropy while not being able to generate good entropy by some computing process
<ohsix>
you just add incidental sources of noise where you think the jitter will be somewhat random, gaussian and all that
<ohsix>
and you hope that you have enough sources that they're not too correlated, and you still don't have a random number from that yet
knu has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
<ohsix>
that scheiner link talks about stuff not meeting their own standard for the paper too, the linux thing is almost an aside
Cakey has quit [Client Quit]
Cakey has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
D9 has joined #ruby-lang
wallerdev has joined #ruby-lang
lewix has quit [Remote host closed the connection]
bawigga has quit []
elliotec has joined #ruby-lang
lewix has joined #ruby-lang
bzalasky has joined #ruby-lang
richardardrichar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
priodev has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
<ohsix>
that emboss article links to some stuff about the linux rng, nice
linc01n has quit [Ping timeout: 264 seconds]
Melpaws has quit [Remote host closed the connection]
<ohsix>
all of the stuff i'm reading seems kind of half sincere, it's not but like; i dunno, saying that mistakes keep happening and it needs to be fixed in the library seems wrong, the problem is not knowing what you're doing and not knowing the implications, he's right that you can't just add another best practices entry
Melpaws has joined #ruby-lang
alexju has quit [Remote host closed the connection]
<pipework>
Well, they can, but whether they should and the implications of doing so are important. I'm indifferent about who should be responsible, but some people are convinced that OpenSSL should be.
Melpaws has quit [Ping timeout: 240 seconds]
linc01n has joined #ruby-lang
priodev has joined #ruby-lang
<ohsix>
you and i seem to be on the same tack with this
mistym has joined #ruby-lang
jtw has joined #ruby-lang
mdub has quit [Read error: Connection reset by peer]
woollyams has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
msch has quit [Ping timeout: 240 seconds]
rahul_j has joined #ruby-lang
<pipework>
ohsix: I'm glad.
msch has joined #ruby-lang
Honsby has joined #ruby-lang
agrinb has quit [Remote host closed the connection]
Honsby has quit [Ping timeout: 240 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
priodev has quit [Ping timeout: 265 seconds]
linc01n has quit [Ping timeout: 265 seconds]
linc01n has joined #ruby-lang
priodev has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
msch has quit [Ping timeout: 240 seconds]
heftig has quit [Ping timeout: 240 seconds]
heftig has joined #ruby-lang
robbyoconnor has quit [Remote host closed the connection]
Xzyx987X_ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
skade has joined #ruby-lang
bawigga has joined #ruby-lang
Xzyx987X has quit [Ping timeout: 264 seconds]
jtw has quit []
lsegal has joined #ruby-lang
mdub has joined #ruby-lang
bawigga has quit [Client Quit]
woollyams has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
msch has joined #ruby-lang
mdub has quit [Ping timeout: 252 seconds]
mykoweb has quit [Remote host closed the connection]
linc01n has quit [Ping timeout: 240 seconds]
priodev has quit [Ping timeout: 265 seconds]
priodev has joined #ruby-lang
linc01n has joined #ruby-lang
nickborromeo has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
nickborromeo has quit [Client Quit]
msch has quit [Excess Flood]
havenwood has quit [Ping timeout: 264 seconds]
sdouglas has quit [Remote host closed the connection]
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
Barrin6 has joined #ruby-lang
joelroa has joined #ruby-lang
alexju has joined #ruby-lang
sdouglas has joined #ruby-lang
matp has quit [Remote host closed the connection]
seanlinsley has quit [Quit: seanlinsley]
joelroa has quit [Ping timeout: 240 seconds]
seanlinsley has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
Honsby has joined #ruby-lang
lewix has quit [Quit: Leaving...]
rahul_j has joined #ruby-lang
ruby_n_max has quit [Quit: ruby_n_max]
woollyams has joined #ruby-lang
agrinb has joined #ruby-lang
sleepy_keita has quit [Quit: sleepy_keita]
robbyoconnor has quit [Ping timeout: 272 seconds]
hahuang65 has joined #ruby-lang
msch has joined #ruby-lang
yfeldblum has joined #ruby-lang
jsullivandigs has joined #ruby-lang
mdub has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
msch has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby-lang
agrinb has quit [Remote host closed the connection]
Xzyx987X has joined #ruby-lang
marcdel has quit []
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
Xzyx987X_ has quit [Ping timeout: 265 seconds]
ledestin has joined #ruby-lang
skade has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
skade has quit [Client Quit]
knu has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heftig has quit [Quit: Quitting]
_ht has joined #ruby-lang
orchidrudra has joined #ruby-lang
<orchidrudra>
Hi, Can celluloid related questions be asked here?
joelroa has joined #ruby-lang
kitak has quit [Ping timeout: 250 seconds]
kitak has joined #ruby-lang
joelroa has quit [Ping timeout: 252 seconds]
<centrx>
orchidrudra, Sure, but probably better off asking during the day U.S./Europe
<centrx>
orchidrudra, Also visit #celluloid and #ruby
vlad_starkov has joined #ruby-lang
Barrin6 has quit [Quit: Leaving]
<orchidrudra>
Thanks
knu has quit [Ping timeout: 252 seconds]
amclain has quit [Quit: Leaving]
orchidrudra has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
knu has joined #ruby-lang
apeiros has joined #ruby-lang
My_Hearing has quit [Ping timeout: 264 seconds]
solars has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
knu has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
aminRX has joined #ruby-lang
mehlah has joined #ruby-lang
khaase has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
skade has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
khaase has quit [Read error: Connection reset by peer]
khaase has joined #ruby-lang
khaase has quit [Remote host closed the connection]
x0f_ has quit [Read error: Operation timed out]
postmodern has joined #ruby-lang
sleepy_keita has joined #ruby-lang
unsymbol_ has quit [Quit: cheerio]
unsymbol has joined #ruby-lang
jxie has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
lun__ has quit [Remote host closed the connection]
<whitequark>
yorickpeterse: what about that?
<yorickpeterse>
Nothing in particular, but it made me smirk a bit
<yorickpeterse>
beats the usual %w{foo}
lightcap has quit [Quit: Computer has gone to sleep.]
<yorickpeterse>
Ragel is a beast though
<ohsix>
kind of OT, does anyone know details on the meat of how tynt works, it's newly pissed me off again and i thought about adding extra navigation that fuzzed their analytics on every site i navigate to that uses it, in addition to blocking it
<yorickpeterse>
Trying to see what the best way would be to emit different tokens based on a context
<yorickpeterse>
ohsix: you can just block their hostname
<ohsix>
i'm gonna see about deobfuscating it and see how they make the hash and stuff tomorrow
<yorickpeterse>
e.g. I have `127.0.0.1 doubleclick.net` in /etc/hosts
<yorickpeterse>
on my home laptop I have similar entries for Tynt
<ohsix>
ya i know but i want to render moot what it actually does
<ohsix>
people don't like what they do with their clipboard so i'm thinking it might be a popular enough idea to have some impact
<whitequark>
clipboard?
<yorickpeterse>
whitequark: they hijack copy-pasta
<yorickpeterse>
basically their business is this:
<ohsix>
yea, like if you copy something from the latimes, it adds its own url to the end with a marker for tynt analytics, it tells them what text you copied
<yorickpeterse>
You copy text from some website, they inject "READ THE FULL ARTICLE HERE: [LINK]"
<yorickpeterse>
It's fucking shitware
<ohsix>
so if it's a popular passage, when your friend clicks on it or whoever, they know what selection got the click, for heatmapping or whatever
<ohsix>
i actually like the ida of what tynt does, but i don't trust the people who use it to not use the data to turn something i rely on in some measure, to shit
<yorickpeterse>
you "like" the idea?
<yorickpeterse>
Are you a mobster?
mr-foobar has quit [Remote host closed the connection]
<yorickpeterse>
it's fucking toxic, period
<yorickpeterse>
It's why JS has no clipboard API for example
alucardX has joined #ruby-lang
mr-foobar has joined #ruby-lang
<ohsix>
i would like to do it for any sort of thing i wrote, the part of the article most people are interested in is useful information; but i can trust myself that i wouldn't use it to optimize around it
<ohsix>
i still dunno if i would clipboard hijack to do it, though
<ohsix>
maybe only for people navigating from social networks
<yorickpeterse>
Every person that hijacks anything to insert their BS metrics deserves a punch in the face
<yorickpeterse>
If I land on your website I expect to be tracked, that's fine
<yorickpeterse>
But stay the fuck away from my clipboard, filesystem, etc
<ohsix>
tbh i just null all the websites i see doing it out from my sources of information
* yorickpeterse
clears his clipboard too often because of this
<ohsix>
your sentiment (and mine) is why i think some sort of offensive extension might be popular enough to get them to stop or something
alexju has quit [Remote host closed the connection]
<yorickpeterse>
It doesn't help
<ohsix>
if there's way too much noise in their already very rarified sampling of stuff, it would be a pretty big problem for them
<yorickpeterse>
What helps is calling out the companies and shaming them in public
sepp2k has joined #ruby-lang
<yorickpeterse>
and blocking them on the lowest level possible
<ohsix>
yea, already done that
<ohsix>
coming back at it from the angle that information is being volunteered
<yorickpeterse>
Hm come to think of it, I should probably block tynt/doubleclick in my router
<ohsix>
if it's going to be volunteered anyways but you don't agree, why not opt-in to volunteering bullshit information that undermines what they do
<yorickpeterse>
That sentence makes no sense
mr-foobar has quit [Ping timeout: 265 seconds]
<ohsix>
the sites that use it use it to track what portions of something they publish are making it around on the internet
<yorickpeterse>
Those websites need to piss off, Google analytics is ok, anything else is not in my opinion
<yorickpeterse>
I find it hard to believe anybody can justify it being ok to insert crap into a person's clipboard without their explicit consent
<ohsix>
sure, but if everyone is taking a survey for popular names and you don't agree, just say your name is cock mccockington every time one of them asks you
elliotec has joined #ruby-lang
<yorickpeterse>
That's fucking retarded
<ohsix>
:<
<yorickpeterse>
That's like saying "If you don't want the NSA to track you just give up false info!"
<ohsix>
it's an analogy
<yorickpeterse>
It's a fucking broken one
<ohsix>
you do volunteer information to the nsa, but not in a way that is comparable to a on foot survey or what tynt does
<yorickpeterse>
It doesn't solve anything, you solve it by saying "No, fuck right off"
<yorickpeterse>
I certainly do fucking *not* volunteer it
<yorickpeterse>
Don't try to justify stupidity
<yorickpeterse>
or violation of human rights and privacy
<yorickpeterse>
At no point in time did I sign some kind of paper that said "YES I AM OK WITH COMPANY X KNOWING EVERYTHING ABOUT ME"
<yorickpeterse>
And I'd rather die than do that
<ohsix>
then maybe a lawsuit? i think you may be too angry wrt this to figure out what i'm talking about
<yorickpeterse>
I understand what you're talking about, and I think you're full of shit
<ohsix>
you control the inputs
<yorickpeterse>
You can not justify this means
<yorickpeterse>
* these
<yorickpeterse>
brb lunch
<yorickpeterse>
Control the inputs? hahaha
<ohsix>
it's not often as clear as it is with tynt to fuck with things
<yorickpeterse>
Even if I don't use the internet there's a handful of organizations who know more about me than I do, without my consent
<yorickpeterse>
but anyway, rbb
<yorickpeterse>
* brb
<ohsix>
they take the hash and can map it to a page region
<ohsix>
so when they attempt to do so, send them random regions
<ohsix>
or only one region
<ohsix>
either way, you've gone from them getting a link that represents what they want to something that is actually contrary to what they're in business to do
<ohsix>
a better in real life analogy might be not only stopping using a certain shop you don't like, but opening up one right next to them
elliotec has quit [Ping timeout: 252 seconds]
<ohsix>
as to liking the idea, i like a lot of things that my morality forbids me from ever doing
woollyams has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Remote host closed the connection]
<ohsix>
not doing morally repgunant things keeps me away from a lot of easy money! :<
flip_digits has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
flip_digits has quit [Client Quit]
joelroa has joined #ruby-lang
sdouglas has quit [Ping timeout: 265 seconds]
<certainty>
ohsix: but it gives you good karma :)
<ohsix>
what's the exchange rate for that with cash money ;D
joelroa has quit [Ping timeout: 240 seconds]
vlad_starkov has quit []
elimS has joined #ruby-lang
phansch has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
alucardX has quit [Quit: leaving]
vlad_starkov has joined #ruby-lang
woollyams has joined #ruby-lang
oddmunds has quit [Quit: WeeChat 0.4.3]
oddmunds has joined #ruby-lang
<certainty>
ohsix: you don't need money where your karma is the currency
<certainty>
or will be rather
<ohsix>
i guess, but i don't believe in that either D:
aminRX has quit [Quit: aminRX]
<ohsix>
i'm glad to give into the idea that people accept other people are fair (even if it'sn ot true) or that the world will even out, and just send out good ripples
yfeldblum has joined #ruby-lang
workmad3 has joined #ruby-lang
robmiller has quit [Quit: Leaving.]
domakesaythings has quit [Quit: Computer has gone to sleep.]
<certainty>
ohsix: well then. I think it's great that you follow your morality. For whatever that is worth to you. At least it's immediate :D
postmodern has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 252 seconds]
woollyams has quit [Ping timeout: 252 seconds]
<elimS>
wtf i thought i join #ruby-lang but joined #karma instead
<elimS>
or #life-lesson maybe
tkuchiki_ has joined #ruby-lang
tkuchiki_ has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 264 seconds]
toertore has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cakey has quit [Ping timeout: 240 seconds]
Cakey has joined #ruby-lang
mr-foobar has joined #ruby-lang
joelroa has joined #ruby-lang
lcdhoffman has joined #ruby-lang
joelroa has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby-lang
Siyfion has joined #ruby-lang
jmeeuwen has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Remote host closed the connection]
alfa_ has joined #ruby-lang
<alfa_>
#rmagick
robmiller has joined #ruby-lang
vlad_starkov has joined #ruby-lang
mehlah has joined #ruby-lang
charliesome has joined #ruby-lang
shinnya has joined #ruby-lang
alfa_ has quit [Ping timeout: 245 seconds]
prc has quit [Quit: Leaving.]
prc has joined #ruby-lang
Cakey has quit [Ping timeout: 252 seconds]
jperry has quit [Remote host closed the connection]
Melpaws has joined #ruby-lang
lunsford has joined #ruby-lang
jperry has joined #ruby-lang
Melpaws has quit [Remote host closed the connection]
jperry is now known as Guest44609
Melpaws has joined #ruby-lang
lun_ has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty>
those are isomorphisms
Melpaws_ has joined #ruby-lang
smashwilson has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
Melpaws has quit [Ping timeout: 240 seconds]
lun_ has quit [Ping timeout: 240 seconds]
Melpaws_ has quit [Ping timeout: 252 seconds]
mr-foobar has quit [Remote host closed the connection]
mr-foobar has joined #ruby-lang
rahul_j has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
mr-foobar has quit [Ping timeout: 240 seconds]
nathanstitt has joined #ruby-lang
bawigga has joined #ruby-lang
nathanst_ has joined #ruby-lang
elimS has quit []
nathanst_ has quit [Read error: Connection reset by peer]
nathanstitt has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
jmeeuwen has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby-lang
tonni has quit [Remote host closed the connection]
<yorickpeterse>
yay JS
<yorickpeterse>
for two days
<yorickpeterse>
._>
<yorickpeterse>
bad JS too
<yorickpeterse>
(implying there's good JS)
<ljarvis>
no js is good js
<gnufied>
been doing Java and 2 weeks. don't touch me - you casual filth!
<gnufied>
:D
<gnufied>
bad Java too
<workmad3>
JS can be good... you just need to avoid half the language and be pretty strict with keeping your own stuff contained so it won't interfere with crap from other libraries, events, the DOM, etc...
<ljarvis>
...
<ljarvis>
so js is good if you avoid everything
bradcliffe has joined #ruby-lang
<workmad3>
ljarvis: almost everything... :D
fijimunkii has joined #ruby-lang
thiagoborges has quit []
<yorickpeterse>
JS is never good
<yorickpeterse>
it's the PHP of client-side scripting
<yorickpeterse>
The fact that shit like Coffeescript exists shows that it's a terrible language
enebo has joined #ruby-lang
domakesaythings has quit [Quit: Computer has gone to sleep.]
dingus_khan has joined #ruby-lang
tbuehlmann has quit [Ping timeout: 252 seconds]
domakesaythings has joined #ruby-lang
dingus_khan has quit [Ping timeout: 240 seconds]
<toretore>
javascript is a simple and elegant language
ItSANg___ has quit [Read error: Connection reset by peer]
<yorickpeterse>
Also "almost every project" is simply false
chouhoulis has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
heftig has joined #ruby-lang
existensil_ is now known as existensil
jxie has quit [Quit: leaving]
toertore has joined #ruby-lang
linc01n has joined #ruby-lang
Onixs_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
priodev has joined #ruby-lang
yfeldblum has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
r0bby has joined #ruby-lang
relix_ has joined #ruby-lang
drakkhen_ has joined #ruby-lang
workmad3_ has joined #ruby-lang
DefV_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
rippa has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
lun_ has joined #ruby-lang
MicD_ has joined #ruby-lang
oetjenj_ has joined #ruby-lang
bahar_ has joined #ruby-lang
heftig has quit [*.net *.split]
workmad3 has quit [*.net *.split]
tonni has quit [*.net *.split]
toretore has quit [*.net *.split]
relix has quit [*.net *.split]
phansch has quit [*.net *.split]
prc has quit [*.net *.split]
knu has quit [*.net *.split]
tedstriker has quit [*.net *.split]
apeiros has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
lucena has quit [*.net *.split]
alakrify has quit [*.net *.split]
Onixs has quit [*.net *.split]
jaimef has quit [*.net *.split]
bahar has quit [*.net *.split]
ruskie has quit [*.net *.split]
drakkhen has quit [*.net *.split]
DefV has quit [*.net *.split]
MichD has quit [*.net *.split]
oetjenj has quit [*.net *.split]
oetjenj_ is now known as oetjenj
bougyman has quit [Ping timeout: 264 seconds]
workmad3_ is now known as workmad3
existensil has quit [Ping timeout: 240 seconds]
bahar_ is now known as bahar
lun_ has quit [Ping timeout: 240 seconds]
jaimef has joined #ruby-lang
r0bby has quit [Ping timeout: 264 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
tonni has joined #ruby-lang
domakesaythings has quit [Quit: Computer has gone to sleep.]
Siyfion has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
lucena has joined #ruby-lang
ruskie has joined #ruby-lang
alakrify has joined #ruby-lang
sdouglas has joined #ruby-lang
heftig has joined #ruby-lang
phansch has joined #ruby-lang
prc has joined #ruby-lang
tedstriker has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Siyfion has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
domakesaythings has joined #ruby-lang
prc has quit [Ping timeout: 264 seconds]
vlad_sta_ has joined #ruby-lang
bjh13 has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
marcdel has joined #ruby-lang
JMcAfreak has joined #ruby-lang
JMcAfreak has left #ruby-lang [#ruby-lang]
existensil has joined #ruby-lang
lucena has quit [Ping timeout: 240 seconds]
vlad_sta_ has quit [Ping timeout: 240 seconds]
Cakey has joined #ruby-lang
marcdel has quit [Ping timeout: 272 seconds]
manny has joined #ruby-lang
marcdel has joined #ruby-lang
phansch has quit [Quit: WeeChat 0.4.2]
<crankharder>
so, it seems that minitest out of the box randomizes the order of test methods within a given file, but if you're using something like rake_test_loader, the order of the files that are tested remains the same
<crankharder>
has anyone successfully been able to randomize that?
jsullivandigs has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
jsullivandigs has joined #ruby-lang
<maloik>
crankharder: what does that even do? never heard of it
<crankharder>
rake test_loader?
bzalasky has joined #ruby-lang
<maloik>
also, try appending TESTOPTS="--seed 20101" to the command and see if the order changes
<maloik>
20101 is a random number I just made up
<crankharder>
it's just a command line helper that requires the files you pass in on the command line
<crankharder>
maloik: i doubt it, minitest changes the seed with each test run
<maloik>
I know, and to override that you pass in the option I mentioned
<maloik>
so maybe you can work around it by passing in random numbers
<crankharder>
...how does that make sense
<crankharder>
minitest randomizes the seed, and the tests are run in the same order all the time. what would setting it to a given seed value chnage?
<maloik>
each random order corresponds to a seed number
<maloik>
so if you pass in a seed number which you randomize another way, it's random again
<maloik>
I'm guessing the test_loader that you mention uses seed 0 all the time
<crankharder>
i think you misinterpreted my original question
<maloik>
no, I don't think I do
<maloik>
you're passing in one or several files
<maloik>
and it's not randomizing the tests, right ?
<crankharder>
yes
<maloik>
so, in order to randomize it again, you'd pass in the command line equivalent of TESTOPTS="--seed #{random_number}"
joelroa has joined #ruby-lang
<maloik>
mind you that's just a workaround I think MIGHT work, I have no idea about test_loader so there might be a proper solution as well
vlad_starkov has quit [Remote host closed the connection]
seanlinsley has quit [Quit: …]
tonni has quit [Ping timeout: 264 seconds]
kitak has joined #ruby-lang
joelroa has quit [Ping timeout: 272 seconds]
bougyman has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
tonni has joined #ruby-lang
kitak has quit [Ping timeout: 250 seconds]
dorei has joined #ruby-lang
Rahnarsson has joined #ruby-lang
bantic has joined #ruby-lang
<Rahnarsson>
Hello, I am newbie with ruby, and have problem with XmlSimple
jsullivandigs has joined #ruby-lang
tonni has quit [Remote host closed the connection]
Fushi has quit [Quit: Connection closed for inactivity]
<toertore>
you are assuming you know what XmlSimple.xml_id will return
<toertore>
inspect the data
Rickmasta has quit [Ping timeout: 240 seconds]
<Rahnarsson>
ok thanks!
yfeldblum has quit [Ping timeout: 265 seconds]
momomomomo has joined #ruby-lang
Cakey has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
<Rahnarsson>
toertore: yep, now i can see. thanks a lot!
richardjortega has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
Johz has joined #ruby-lang
jsullivandigs has joined #ruby-lang
lightcap has joined #ruby-lang
bawigga has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
seanlinsley has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
apeiros has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
mistym has joined #ruby-lang
alexju has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
mr-foobar has joined #ruby-lang
heftig has quit [Quit: Quitting]
domakesaythings has quit [Quit: Computer has gone to sleep.]
r0bby has joined #ruby-lang
shashin has quit [Quit: shashin]
<ljarvis>
i built an atom package :/
<crankharder>
yea, even minitest fundamentally calls "ruby -I lib:test path/to/rake_test_loarder.rb foo_test.rb bar_test.rb" -- and even if the list of files there is randomized they're still executed in some non-random order
<ljarvis>
dont even know why
<crankharder>
my guess is it's alphabetical
<crankharder>
rake_test_loader doesn't do any sorting
CaptainJet has joined #ruby-lang
Siyfion has quit []
lun__ has joined #ruby-lang
lun_ has quit [Ping timeout: 240 seconds]
r0bby has quit [Excess Flood]
r0bby has joined #ruby-lang
joelroa has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
sdouglas has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 272 seconds]
Melpaws has joined #ruby-lang
Coincidental has joined #ruby-lang
marcdel has quit []
tbuehlmann has quit [Quit: Leaving]
phansch has joined #ruby-lang
elliotec has joined #ruby-lang
Melpaws has quit [Remote host closed the connection]
Melpaws has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
jsrn has quit [Ping timeout: 265 seconds]
apeiros has joined #ruby-lang
Melpaws has quit [Ping timeout: 240 seconds]
elliotec has joined #ruby-lang
yfeldblum has joined #ruby-lang
havenwood has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
elliotec has joined #ruby-lang
bantic has quit [Quit: bantic]
lcdhoffman has quit [Quit: lcdhoffman]
Honsby has joined #ruby-lang
knu has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
Melpaws has joined #ruby-lang
bm5k has joined #ruby-lang
yfeldblum has joined #ruby-lang
domakesaythings has joined #ruby-lang
__butch__ has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
someperson has quit [Ping timeout: 240 seconds]
Fushi has joined #ruby-lang
r0bby has quit [Write error: Connection reset by peer]
gix- has joined #ruby-lang
gix has quit [Disconnected by services]
momomomomo has quit [Quit: momomomomo]
someperson has joined #ruby-lang
bahar has quit [Changing host]
bahar has joined #ruby-lang
momomomomo has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
mistym has quit [Remote host closed the connection]
jsrn has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
mehlah has joined #ruby-lang
mehlah has quit [Client Quit]
bzalasky has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
blowmage has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
joelroa has joined #ruby-lang
hahuang65 has quit [Ping timeout: 240 seconds]
amsi has joined #ruby-lang
bawigga has quit []
elia has joined #ruby-lang
Melpaws has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
sdouglas has quit [Remote host closed the connection]
Melpaws has joined #ruby-lang
joelroa has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby-lang
bawigga has joined #ruby-lang
Melpaws has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby-lang
khaase has quit [Remote host closed the connection]
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
mr-foobar has quit [Remote host closed the connection]
mr-foobar has joined #ruby-lang
rahul_j has joined #ruby-lang
tedstriker has quit [Quit: Anti-Fraping status set.]
tedstriker has joined #ruby-lang
workmad3 has quit [Ping timeout: 272 seconds]
ecnalyr has quit [Ping timeout: 241 seconds]
mr-fooba_ has joined #ruby-lang
mr-foobar has quit [Ping timeout: 240 seconds]
agarie has joined #ruby-lang
loincloth has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
emjaydub has joined #ruby-lang
yfeldblum has joined #ruby-lang
emjaydub has quit [Client Quit]
asdfasdfasdf has joined #ruby-lang
Coincidental has joined #ruby-lang
asdfasdfasdf has quit [Client Quit]
robmiller has quit [Quit: Leaving.]
emjaydub has joined #ruby-lang
tonni has joined #ruby-lang
mistym has joined #ruby-lang
ruby-lang273 has joined #ruby-lang
mehlah has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
hahuang65 has joined #ruby-lang
<ruby-lang273>
Hi! I'm very new in Ruby and I've a question regarding code structuration. I want to create a one time application (so now gem). I've a lib folder with all my codes and a bin folder with the entry point of my application. In my bin exec, i've a "require ...". When I try to launch my bin file, the require failed. Ruby is not looking in my lib folder to check files. My question, how can i test my application in my case? Thanks:(
khaase has joined #ruby-lang
khaase has joined #ruby-lang
khaase has quit [Changing host]
dlackty has quit [Quit: Connection closed for inactivity]
sepp2k1 has joined #ruby-lang
<|jemc|>
ruby-lang273: check out require_relative
<ruby-lang273>
Oh, so something like "require ../lib/..." in my bin file?
<ruby-lang273>
require_relative*
<|jemc|>
or add your desired path to the $LOAD_PATH aray
<|jemc|>
yeah
mistym_ has joined #ruby-lang
agarie has quit [Read error: Connection reset by peer]
sepp2k has quit [Ping timeout: 264 seconds]
agarie has joined #ruby-lang
<ruby-lang273>
But, If I do the first solution, if for instance inside one of my files in my lib folder i've another require. It will work even if the lib/ is not in my path?
rahul_j has quit [Quit: rahul_j]
vlad_starkov has quit [Remote host closed the connection]
solars has quit [Ping timeout: 240 seconds]
khaase has quit [Ping timeout: 240 seconds]
Coincidental has quit [Remote host closed the connection]
<ruby-lang273>
The require will look in the current folder?
mistym has quit [Ping timeout: 264 seconds]
<|jemc|>
no, if you want to get to files in the current folder, use require_relative
elliotec has quit [Remote host closed the connection]
mr-fooba_ has quit [Remote host closed the connection]
<|jemc|>
or do the $LOAD_PATH hack, but some people frown on that
jperry has joined #ruby-lang
<ruby-lang273>
ok so inside all my files, i need to use require_relative?
mr-foobar has joined #ruby-lang
<|jemc|>
unless you're require-ing external libraries that are in the load path (which is pretty much your gems and stdlib)
<ruby-lang273>
Ok thanks!
<|jemc|>
good luck
mehlah has quit [Quit: Leaving...]
<ruby-lang273>
And, can i load the lib folder dynamically in the beginning of my bin files?
<ruby-lang273>
I don't know if it's something right
vlad_starkov has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
<|jemc|>
well, depending on what you're doing, it may be appropriate to use the load path hack
yfeldblum has quit [Remote host closed the connection]
<|jemc|>
if you want to treat your lib directory as if it were a gem without it actually being one
jcs222 has joined #ruby-lang
yfeldblum has joined #ruby-lang
mikecmpbll has joined #ruby-lang
mr-foobar has quit [Ping timeout: 264 seconds]
elliotec has joined #ruby-lang
<ruby-lang273>
ok! thanks |jemc| :)
bawigga has quit []
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
bantic has joined #ruby-lang
phansch has quit [Quit: WeeChat 0.4.2]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Coincidental has joined #ruby-lang
ruby-lang273 has quit [Ping timeout: 245 seconds]
Atw has quit [Ping timeout: 244 seconds]
joelroa has joined #ruby-lang
bawigga has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby-lang
bawigga has quit [Ping timeout: 272 seconds]
khaase has joined #ruby-lang
khaase has joined #ruby-lang
khaase has quit [Changing host]
vlad_sta_ has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 265 seconds]
ruby-lang626 has quit [Ping timeout: 245 seconds]
fragamus has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
bawigga has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
loincloth has joined #ruby-lang
bawigga_ has joined #ruby-lang
bawigga has quit [Read error: Connection reset by peer]
bawigga_ has quit [Client Quit]
mykoweb has quit [Remote host closed the connection]
elliotec has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 240 seconds]
joelroa has joined #ruby-lang
someperson has quit [Ping timeout: 272 seconds]
amsi has quit [Ping timeout: 244 seconds]
mehlah has joined #ruby-lang
momomomomo has joined #ruby-lang
someperson has joined #ruby-lang
lun__ has quit [Ping timeout: 240 seconds]
tayworm has joined #ruby-lang
tayworm has left #ruby-lang [#ruby-lang]
tayworm has joined #ruby-lang
<tayworm>
i have a question if someone will take pity on me
joelroa has quit [Ping timeout: 240 seconds]
lun_ has joined #ruby-lang
dilated_dinosaur has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby-lang
<|jemc|>
the answer is: they won't take pity on you
<|jemc|>
but they may answer your question
<|jemc|>
after all, this is IRC
<yorickpeterse>
tayworm: don't ask to ask, just ask
<|jemc|>
the only form of pity known to IRC is seething ridicule
<tayworm>
I've got a gem that uses chef (knife specifically) to create cookbooks. I'm trying to figure out if there is a way to detect if a person has omnibus chef installed and to use that instead of installing the gem version on top of that
momomomomo has quit [Client Quit]
<imperator>
i have a question - what's the appropriate pack directive is for a uintptr_t ?
<yorickpeterse>
tayworm: no, there's no easy way to do that upon a Gem install
Elico has joined #ruby-lang
<imperator>
pish posh
<imperator>
it'll take a little code, but it's doable
<tayworm>
imperator: how would you recommend i try to tackle that?
<imperator>
that 11th field is where things go wrong, it's declared as a uinptr_t
<imperator>
eh, maybe i'll just use an ffi struct
<mistym>
ljarvis: Boo, Github's robots.txt didn't let it be archived by archive.org
<zenspider>
yes, long is specific to your architecture. look at l or q for 32 and 64
<ljarvis>
mistym: what version are you using?
<zenspider>
really depends on how uinptr_t is declared
<mistym>
ljarvis: The most recent
<ljarvis>
mistym: oh, the wiki was for the old version (hence removing it)
<ljarvis>
that's why I assumed you were using an old version
robmiller has joined #ruby-lang
<mistym>
ljarvis: Oh, okay. I was wondering because I remembered the old wiki having a lot more information on the the arguments to option declaration, etc.
* zenspider
runs to lunch
emjaydub has quit [Ping timeout: 245 seconds]
Melpaws has quit [Remote host closed the connection]
tayworm has quit [Remote host closed the connection]
Melpaws has joined #ruby-lang
<imperator>
it's just an unsigned long on solaris as far as i can tell, and it's 4 or 8 bytes depending
elliotec has joined #ruby-lang
Melpaws has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby-lang
solars has joined #ruby-lang
manny has quit [Quit: Connection closed for inactivity]
Mon_Ouie has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
jsullivandigs has joined #ruby-lang
<yorickpeterse>
random question: does anybody know if the contents of CDATA tags are supposed to be treated as plain text or not? Nokogiri seems to fuck it up
<yorickpeterse>
e.g.
<yorickpeterse>
Nokogiri::HTML('<svg><![CDATA[<p>Foo</p>]]></svg>').to_s # => "<html><body><svg>Foo]]></svg></body></html>" (skipping the doctype)
bm5k has quit [Quit: bm5k]
vlad_starkov has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
bm5k has joined #ruby-lang
bm5k has quit [Client Quit]
elliotec has quit [Remote host closed the connection]
<yorickpeterse>
hm, apparently it's supposed to be ignored alltogether in HTML
mykoweb has joined #ruby-lang
elia has quit [Write error: Broken pipe]
elliotec has joined #ruby-lang
lewix has quit [Remote host closed the connection]
msch has joined #ruby-lang
Honsby has joined #ruby-lang
joelroa has joined #ruby-lang
bm5k has joined #ruby-lang
agrinb has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
elia has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby-lang
ruby_n_max has joined #ruby-lang
pipework is now known as sourcerer
sourcerer is now known as pipework
yfeldblum has joined #ruby-lang
ecnalyr has joined #ruby-lang
<yorickpeterse>
whitequark: ping
ecnalyr has quit [Ping timeout: 240 seconds]
<whitequark>
pong
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
<whitequark>
yorickpeterse: ^
oracal has quit [Quit: Leaving]
<imperator>
well, that's interesting - if i cut out the data that i'm not unpacking in that example...it works
<yorickpeterse>
whitequark: so I'm looking through the Ragel docs for this, and it's not really clear if it's possible: I'm looking for a way to trigger an action if pattern X was matched first. That is, there is some kind of start and stop sequence, I want something to run in between
<yorickpeterse>
e.g.
<yorickpeterse>
say you have "<abc>", here < would be the start, "abc" whatever I'd run the action on, and ">" the end
<yorickpeterse>
I can probably use entering/leaving actions, but those would run on the start/end, not the body
<whitequark>
'<' @{ code } [a-z]+ '>'
<yorickpeterse>
I can hack this in manually (e.g. by setting something like @in_some_tag = true), but I'd prefer to do it the Ragel way
<yorickpeterse>
hmmm
amsi has joined #ruby-lang
<whitequark>
have you read ragel manual/
<whitequark>
*?
tylersmith has quit [Ping timeout: 240 seconds]
<yorickpeterse>
Not everything yet
<whitequark>
you should
<yorickpeterse>
I am, but it's a lot to digest
<yorickpeterse>
and Google is not helpful :/
<whitequark>
well... key is to forget everything about characters and lexing
<whitequark>
ragel is a state machine composer
<whitequark>
once you grok that, the rest is a piece of cake
Guedes has quit [Ping timeout: 252 seconds]
toniev_ has joined #ruby-lang
retro|simi has joined #ruby-lang
Guedes has joined #ruby-lang
<yorickpeterse>
that's like saying "once you know how to make jet fuel building a rocket is easy"
jcs222 has quit [Quit: leaving]
<yorickpeterse>
s/jet/rocket
vlad_starkov has joined #ruby-lang
MartynKeigher has quit [Ping timeout: 240 seconds]
<whitequark>
well, mapping of lexers to state machines is straightforward
tayworm has joined #ruby-lang
<tayworm>
thanks for the help yorickpeterse
toniev has joined #ruby-lang
ruby_n_max has quit [Quit: ruby_n_max]
elliotec has quit [Remote host closed the connection]
Bosox20051 has joined #ruby-lang
Bosox20051 has quit [Changing host]
Bosox20051 has joined #ruby-lang
elliotec has joined #ruby-lang
Bosox20051 has quit [Read error: Connection reset by peer]
Bosox20051 has joined #ruby-lang
<yorickpeterse>
tayworm: np
arBmind has joined #ruby-lang
lun_ has quit [Ping timeout: 272 seconds]
ruby_n_max has joined #ruby-lang
lun_ has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
ruby_n_max has quit [Client Quit]
MartynKeigher has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
tedstriker has quit [Quit: Anti-Fraping status set.]
elliotec has joined #ruby-lang
lewix has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 240 seconds]
Guedes has quit [Ping timeout: 240 seconds]
elliotec has joined #ruby-lang
Guedes has joined #ruby-lang
Guedes has quit [Changing host]
Guedes has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
<yorickpeterse>
whitequark: actually if I get it right that particular example will run @{ code} for '<'
<yorickpeterse>
not for the [a-z]+ bit, no?
<yorickpeterse>
That is, data[ts..te] would result in "<" there
mistym has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
jcs222 has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
<tayworm>
yorickpeterse: how would i check if a gem is installed or install a gem using rake?
elliotec has joined #ruby-lang
hahuang65 has joined #ruby-lang
<yorickpeterse>
tayworm: you can query Gem::Specification.all in Ruby
<tayworm>
ah, duh
jsullivandigs has quit [Quit: Leaving...]
elliotec has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
dingus_khan has joined #ruby-lang
tylersmith has joined #ruby-lang
Elico has quit [Quit: Elico]
nathanstitt has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
elliotec has joined #ruby-lang
<yorickpeterse>
whitequark: ok now I get it, disregard my comment above
woollyams has joined #ruby-lang
<jaimef>
is there a way to print uncommon methods for an object?
elliotec has quit [Remote host closed the connection]
yubrew has quit [Remote host closed the connection]
MicD_ is now known as michd
Asher has quit [Quit: Leaving.]
<imperator>
zenspider, i'm stuck
<imperator>
posted to ruby-talk
jonr22 has joined #ruby-lang
charliesome has joined #ruby-lang
falten has left #ruby-lang ["WeeChat 0.4.2"]
jcs222 has quit [Quit: leaving]
michaeldeol has joined #ruby-lang
yubrew has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
mykoweb has quit [Remote host closed the connection]
agrinb has joined #ruby-lang
<imperator>
i tried slapping some underscores around, but no joy
sdouglas has joined #ruby-lang
<zenspider>
imperator: the thing is, when your longs change, your input data needs to change too, otherwise they're not architecture specific longs like the header says it is
<zenspider>
so either your input data needs to change based on where you're running, or the definition does
jonr22 has quit [Write error: Broken pipe]
Melpaws has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
<tayworm>
yorickpeterse: what is the best way to install a gem within ruby?
<yorickpeterse>
shell out
someperson has quit [Ping timeout: 272 seconds]
<yorickpeterse>
or not do it all together, it's a pretty invasive process
<imperator>
zenspider, well, i can't change the data, that's coming from the kernel
chouhoulis has quit [Remote host closed the connection]
<yorickpeterse>
if a user *can* install X because it's better, let the user decide themselves
<imperator>
(or can i?)
bantic has quit [Quit: bantic]
<tayworm>
yorickpeterse: what im trying to do is use omnibus chef if it exists, otherwise use the gem version. if they have neither, id like to install the gem version for them
<yorickpeterse>
what's wrong with just using the Gem version?
<tayworm>
are you saying thats bad? would it be better to exit with an error message?
<tayworm>
yorickpeterse: nothing really, other than a lot of people like the omnibus version better
<zenspider>
imperator: how are you getting the same data for two different architectures if the fields are defined as architecture dependent?
Melpaws has quit [Ping timeout: 240 seconds]
<tayworm>
if you install the gem version on top of that, it covers up the omnibus
<yorickpeterse>
Either require the Gem or that alternative
<tayworm>
i originally did just that, but i had complaints
<yorickpeterse>
e.g. say libfoo is either a system dependency or a Gem
<yorickpeterse>
if you build some Gem that uses libfoo, in that case you can either say 1) make sure the system version is installed 2) always install the Gem version
khaase has joined #ruby-lang
<yorickpeterse>
RubyGems doesn't have conditional/optional dependencies as far as I know, and installing stuff post-install is dirty
<yorickpeterse>
I don't see the problem with requiring either this omnibus thing or a gem
<tayworm>
yorickpeterse: so youre saying in my docs to require one or the other?
<yorickpeterse>
in your docs? No idea, I'm saying that if there's two versions of X you should choose which one to depend on
<tayworm>
ah, i see
tedstriker has joined #ruby-lang
ruby_n_max has joined #ruby-lang
mistym has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
khaase has quit [Ping timeout: 272 seconds]
yxhuvud has quit [Remote host closed the connection]
prc has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
symm- has joined #ruby-lang
yfeldblum has joined #ruby-lang
<yorickpeterse>
gah, Ragel y u so confuse
<|jemc|>
for to spite you
<yorickpeterse>
wat
nathanstitt has quit [Quit: I growing sleepy]
<apeiros>
yorickpeterse: writing your html parser in ragel?
<yorickpeterse>
The lexer, yes
<yorickpeterse>
My Ragel is super limited though so I'm busting my head at basic stuff
nisstyre has joined #ruby-lang
dingus_khan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
<apeiros>
yorickpeterse: wasn't hpricot using ragel too?
<yorickpeterse>
not sure, didn't check
<yorickpeterse>
and fuck yeah, it can lex CDATA tags
<yorickpeterse>
that took way too fucking long
<yorickpeterse>
I guess this is where I go to this Russian friend of mine (not whitequark) and say "SEE? YOU CAN *NOT* WRITE AN HTML PARSER IN A DAY"
<apeiros>
I think it did. might be helpful to take a look
<yorickpeterse>
yeah looking now
smashwilson has quit [Quit: Leaving]
<yorickpeterse>
oh shoot it does use Ragel
<yorickpeterse>
neat
<yorickpeterse>
ta
rue_XIV has left #ruby-lang [#ruby-lang]
<yorickpeterse>
Hm, with this new knowledge/power I should be able to parse doctypes more accurately too
<yorickpeterse>
god damn it, Ragel is awesome
saarinen has joined #ruby-lang
saarinen has quit [Client Quit]
<zenspider>
hpricot is also super duper broken
saarinen has joined #ruby-lang
<centrx>
hpricot is old
<yorickpeterse>
zenspider: never used it myself, but in what way(s)?
enebo has quit [Quit: enebo]
ruby_n_max has quit [Quit: ruby_n_max]
elia has joined #ruby-lang
dorei has quit []
ruby_n_max has joined #ruby-lang
bjh13 has quit [Quit: leaving]
<imperator>
zenspider, nm, it's not the same, there's an 80 byte diff in 32 v 64
elliotec has quit [Remote host closed the connection]
<zenspider>
imperator: :P
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<imperator>
but it doesn't change the fact that i still don't know what pack directive i should be using
<imperator>
tried every damn combo i can think of
gianlucadv has quit [Ping timeout: 264 seconds]
_rgn has quit [Ping timeout: 264 seconds]
ratmav has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Asher has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
gianlucadv has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
elia has quit [Quit: Computer has gone to sleep.]
_rgn has joined #ruby-lang
arBmind has quit [Ping timeout: 264 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
temple3188 has joined #ruby-lang
ruby_n_max has quit [Quit: ruby_n_max]
mykoweb has joined #ruby-lang
centrx has quit [Quit: All this computer hacking is making me thirsty]
jsrn has quit [Quit: Leaving]
btiefert2 is now known as btiefert
DouweM_ has quit [Ping timeout: 252 seconds]
lcdhoffman has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby-lang
elliotec has joined #ruby-lang
bm5k has quit [Quit: bm5k]
ruby_n_max has joined #ruby-lang
joelroa_ has joined #ruby-lang
shinnya has joined #ruby-lang
Lewix_ has joined #ruby-lang
solars has quit [Ping timeout: 264 seconds]
khaase has joined #ruby-lang
tedstriker has quit [Quit: Anti-Fraping status set.]
bm5k has joined #ruby-lang
CaptainJet has quit [Ping timeout: 240 seconds]
tenderlo_ has joined #ruby-lang
CaptainJet has joined #ruby-lang
drakkhen has joined #ruby-lang
ratmav has quit [Quit: Leaving]
tayworm has quit [Ping timeout: 272 seconds]
joelroa has quit [Ping timeout: 272 seconds]
sepp2k1 has quit [Ping timeout: 272 seconds]
Bosox20051 has quit [Ping timeout: 272 seconds]
existensil has quit [Ping timeout: 272 seconds]
DefV_ has quit [Ping timeout: 272 seconds]
lewix has quit [Ping timeout: 272 seconds]
lun_ has quit [Ping timeout: 272 seconds]
drakkhen_ has quit [Ping timeout: 272 seconds]
ledestin has quit [Ping timeout: 272 seconds]
lun_ has joined #ruby-lang
cnivolle has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
CaptainJet has quit [Read error: Connection reset by peer]
tenderlove has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tenderlo_ has quit [Ping timeout: 240 seconds]
shashin has quit [Ping timeout: 272 seconds]
khaase has quit [Ping timeout: 283 seconds]
Lewix_ has quit [Remote host closed the connection]
toniev has quit [Remote host closed the connection]
Bosox20051 has joined #ruby-lang
seanlinsley has quit [Quit: …]
JoshuaPaling has joined #ruby-lang
temple3188 has quit [Remote host closed the connection]
temple3188 has joined #ruby-lang
dik_dak has quit [Ping timeout: 264 seconds]
tenderlove has joined #ruby-lang
alexju has quit [Remote host closed the connection]