« first day (1362 days earlier)      last day (3812 days later) » 

Xeo
Xeo
13:02
@CatPlusPlus I currently use std::map like that
just upper_bound it for O(log N) search
@rightfold and how do I know which values to hash to the same hash? :P
TIL that in Windows when you press ^Z to close stdin, Windows actually writes \x1a, and it's CRT who checks for \1a and closes stdin.
What else?
Xeo
Xeo
What those tiers actually are is percentage chances, and the value I look for is a random roll.
So I get 1% -> this, 10% -> that, 20% -> that2.
@Xeo Seems like a simple binary search job to me.
Xeo
Xeo
I map that as {1: this, 11: that, 31: that2} and get the upper-bound with the roll between [0, 100)
@Puppy I think there should be an O(1) way, though
13:09
there isn't.
or rather, not as far as I am aware.
the problem boils down to spatial partitioning in 1 dimension.
you'll probably get better results searching for that
CTP2 made it worse
your mum boils down to spatial partitioning in 1 dimension
@R.MartinhoFernandes lol
@LightnessRacesinOrbit fascinating
13:13
@Abyx Wait, does that mean you can't pipe binary data through stdin with the stdlib at all?
Ell
Ell
@Crow yup
@R.MartinhoFernandes Come to think of it, how do we ever pipe binary data through stdin if it may contain EOF?
I guess we don't
I guess piping is designed for text
@LightnessRacesinOrbit EOF is a condition, not a character :<
I think you can reopen stdin in binary mode?
Text mode is dumbest thing ever
On a pipe, it happens when the pipe buffer gets exhausted and the other end is closed.
13:16
@R.MartinhoFernandes signified by a character
meh ok
No, it's signified by pipe closing
@LightnessRacesinOrbit As it seems, only on Windows with the CRT.
There's no reason to use EOF code now that we don't have terminal shit
I get what you're saying now then
3
A: Windows pipes in binary mode

DennisIf you include the header files #include <fcntl.h> #include <io.h> you can switch modes with _setmode(_fileno(stdin), _O_BINARY);

> well, the short answer is that windows sucks, and i'm surprised pipes even work on windows :)
>
> i mean, i use windows daily, but from a programmatic point of view, it's a pile of horse shit.
>
> the std_server uses stdin and stdout which are open in text mode normally... it might corrupt binary traffic, when \r appears in the data... so maybe do resort to working in the textual pickle protocol.
>
> you can use CreateNamedPipe and ConnectPipe (see win32 api), to create "better pipes", but you'll have to write the server yourself (not that it's a problem, but still).
> well, the short answer is that windows sucks
All too true
13:19
For what is worth, there's the EOT control code fileformat.info/info/unicode/char/4/index.htm, but purely historical and not used in many protocols in use today.
@LightnessRacesinOrbit many tools like zip, tar use pipes
(I only know of PS printers that interpret it)
> > Why use a [Arduino] simulator? Well, the answer to that seems obvious.
Not to me it doesn't.
There is little you can't sort out with an LED and some print statements.
Gosh, this community is almost as bad as Android's.
YOU CAN DO STUFF WITH CRAP TOOLS WHAT THE HELL ARE YOU TALKING ABOUT "WE NEED BETTER TOOLS" USE THE CRAP ONES YOU CAN DO STUFF
It works therefore it is the best
I wanna see that guy debug a 16-bit bus with an LED.
i am a morning person, fsvo "am"
13:23
In my times I had to debug uphill 200km in snow bluh druh mleh
Why is everyone bad
Cause you don't spend enough time making them better?
Help, update 3 made it worse.
user1804599
@Xeo well if you have that then 0 would hash to X, 1 to 10 would hash to Y and 11 to 30 would hash to Z.
> You are in a maze of twisty VS betas, all alike
And how do you imagine this hash function to look like
Whatever you're doing in that hash function you might as well do on the data, skipping all the hashtable nonsense
13:31
@CatPlusPlus Magic.
user1804599
@CatPlusPlus switch :P
@rightfold On runtime values?
13:36
Why should we be surprised? Its a usual state of affairs.
JSONP was always a crappy hack, so I'm doubly unsurprised
An attack scenario involving JSONP? I would never.
And Flash! Obviously
btw there's a HB with 2K games
Fuck buying games at release
I was tempted with the HumbleBundle
but, I probably will only play the games once, and so its a bit of a waste
Five or ten bucks for hours of entertainment once?
Xeo
Xeo
13:46
Finally found the paper again that shows how to do what I want in O(1): keithschwarz.com/darts-dice-coins
/cc @Puppy @rightfold
> >a bit< of a waste
@R.MartinhoFernandes its rather unlikely that I will last hours
I can't games
@TonyTheLion That's what she said, too
I don't know why you got tempted then.
13:48
because I was bored at the time I was looking at it, so in that moment, it was tempting
Some people collect coins, some people collect games
user1804599
ORDER BY on Booleans is nice.
Xeo
Xeo
@R.MartinhoFernandes ooooh
> error C2797: 'window::last_mouse_pos': list initialization inside member initializer list or non-static data member initializer is not implemented
They unimplemented it from Update 2 to Update 3.
blink
13:51
// XXX TODO FIXME broken
#if 0
Xeo
Xeo
@R.MartinhoFernandes lol
Poor Robot will go insane by MSVC
Ell
Ell
14:07
man I cba with this today
Xeo
Xeo
@R.MartinhoFernandes Oh this is beautiful
Now I just need to find a way to hook that up with our crappy internal RNG :(
Yeah, <random> is awesome.
My favourite C++11 lib together with <chrono>.
It's one of those rare instances where C++ library is actually better than competition
Xeo
Xeo
> // Get long random number - algorithm found somewhere on the web
...
I have no clue how uniform that thing is
so I can't just throw it into a lambda for the distribution to use
Xeo
Xeo
14:23
I don't think that's possible
it's woven deeply into the whole codebase
I mean, nuke the body.
Guys, question
On physics.SE, there's this pretty smart dude that has answered a ton of questions with good answers, and then he got cocky and was blocked. He then took it personal and wrote this: quora.com/Ron-Maimon-1/…
What do you guys think? Does he have a point that SE is "censorious"?
Oh, that guy.
Note I call him "smart" for the sole reason of him writing decent answers I have read. I am in no way judging the inner workings of his mind ;-)
yes, here in SE it is like little girls arguing
everyone wants to feel powerful
well most of the people though
cause they have complexes
14:35
lol, Wikipedia "stopped dead in its tracks"
cause many guys are sensitive like girls in general
@xeo If you're concerned about the uniformity of the distributions you can take the arithmetic mean of as many Identical and Independently distributed distributions as you want and it will become more and more gaussian the more times you do it and when you have a gaussian get the mean and Standard deviation of that and simply use the table to calculate the percentile which will be a uniform distribution from 0 to 1
so instead of manning up, they just go and abuse their power but for some
In probability theory, the central limit theorem (CLT) states that, given certain conditions, the arithmetic mean of a sufficiently large number of iterates of independent random variables, each with a well-defined expected value and well-defined variance, will be approximately normally distributed. That is, suppose that a sample is obtained containing a large number of observations, each observation being randomly generated in a way that does not depend on the values of the other observations, and that the arithmetic average of the observed values is computed. If this procedure is performe...
I think people that are smart should be allowed to be cocky
14:37
@AaronKyleKilleen I wonder how that helps.
cause they have invested time thus resources in that
> certtool -p
Generating a 2432 bit RSA private key...
oookay
so other imbecils watching TV series all day long should shut it and sit and read
Why 2432
@rubenvb It can have that potential. It seems to me that the problem here is one of the basic idea of the SE engine being mis-applied. The SE engine is really intended as a way of recording and publishing answers to questions that have known answers. In this case, he was treating it more like a forum, where the purpose is discussion to reach answers to unknown questions.
14:38
And why does that bother me
cause you're a nerd
@R.MartinhoFernandes he was concerned about the uniformity of it, the more closely it approaches a true normal when you take the percentile of it using true normal percentile tables the more closely it will be to a uniform
@R.MartinhoFernandes if you can find a way to get an accurate percentile from any distribution that's going to be by definition a uniform distribution from 0 to 1
@JerryCoffin And before he treated wikipedia like a scientific journal to publish all his ideas.
> Wikipedia grew as an anarchy until 2008, and it worked as an anarchy. I was laughing at these rules. Everything technical and worthwhile there was original research by later standards, it was just not original enough usually to go to a journal.
> For example, I wrote an entirely negative article on "Large Extra Dimension" in 2006 or so that basically showed why the theory is crap, I proved the spin-statistics theorem in a way that was not exactly in the literature (although something similar was done by Schwinger), I did an original presentation of Hawking's result starting from Unruh's (the mathematics is in Unruh, but he doesn't emphasize the equivalence principle, probably the referees didn't let him),
and I did a completely original presentation of "matrix mechanics" which came from laboriously deciphering Heisenberg's papers
Hey guys, do you think it is possible to implement some learning algorithms and teach them to read comments at some social websites and make a distinction between irony/sarcasm and serious opinion. and between positive and negative opinions?
@zigi Yeah, totally.
14:43
certtool is so much friendlier than openssl
hello people
so certain margin of error is allowed
@zigi Most humans can't detect obvious sarcasm; how do you expect a computer to be programmed to do it?
no I didn't express my self correctly
what I meant was stuff like "Yeah, this is totally, the best paint ever, ever :D"
so like the smiley is an indication
and the yeah
and the totally
before the tought
Ell
Ell
Maybe it could do it from the density of "sarcasm words"
such as yeah and totally
14:52
yes
exactly my point
thank you @Ell
Yeah, that's just totally not going to work. :)
if you do neural networks and hire 50k indians to input sarcastic and non-sarcastic data all day long (accepting they have little margin of error) the algorithm would learn eventually
Ell
Ell
@LightnessRacesinOrbit you know that sentence doesn't sound right :P
Yeah, because Indians understand sarcasm
Ell
Ell
@zigi But then it can only detect indian sarcasm
14:53
same way with OCR
@Ell Sure it does
haha that's true
@zigi only if you write the sarcasm data, I work with some indian guys and they have no sarcasm
Ell
Ell
I wonder if the jvm has coroutines
@Ell Indian sarcasm = "I am a senior software developer"
Ell
Ell
14:54
lol
ok so the issue with this is accumulating large quantities of proper data that could be used to teach the algorithm
@Pekka: No, I will not agree to disagree, I will forcefully demand that you, and everyone else, change your mind, and hopefully sooner rather than later. — Ron Maimon Oct 28 '12 at 21:00
@JerryCoffin OK, I agree, but in physics, often questions pop up that have several answers and none really capture the essence, and some disturb most more than others. But yeah, SE (and wiki for that matter) aren't peer-reviewed journals.
@R.MartinhoFernandes I guess he fits some people's definition of insane, repeating the same basic pattern, and somehow expecting a different result (and then blaming others when that expectation is disappointed).
@zigi It still won't work. You have to know an individual to know what they mean when they speak, especially when they're being sarcastic/ironic. Plugging in a few million arbitrary examples from arbitrary sources won't do any good.
14:55
ok fine
but the thing is I have a friend who works exactly that, goes on websites and reads opinions and add negative and positive about a product in an excel table and sends it to her boss
I was thinking, isn't it possible to do this sentiment analysis
@R.MartinhoFernandes Also, @Lightness should have a chat with that guy and teach him how to troll.
@rubenvb I don't think he's trolling. Or even trying to. :(
So he can be rude but not be rude :-p
@rubenvb who are you talking about?
@rubenvb <3 I am honoured by your compliment. :)
14:56
@R.MartinhoFernandes Oh no, he's not, he's dead serious, but don't underestimate trolling as a useful skill :-p
@LightnessRacesinOrbit lol
After everything I ever saw from him, I genuinely believe he genuinely believes what he writes.
@AaronKyleKilleen Wait until the Hindi rooms get a look at that.
Nothing I hate more than racists
Well, Indian food is delicious.
14:57
(and Indians) JOKING
@LightnessRacesinOrbit You bastard!
Apparently he gets banned in every community he takes part.
How dare you be so rude trollish!
@R.MartinhoFernandes Ron? Or Aaron?
Reminds me of Rich B.
14:58
@rubenvb ikr
@LightnessRacesinOrbit Ron.
@LightnessRacesinOrbit I don't mean to offend anybody it was really warm and humid in the room I'm sure I smelled too
@R.MartinhoFernandes Aa Ah.
@R.MartinhoFernandes Obviously it's a problem with every community!
@AaronKyleKilleen I just found it kind of funny. I'm trolling you mostly but you may have to pay for it with 30 minutes' silence. Sorry.
14:58
Though Rich B eventually found a way to keep contributing without generating trouble.
Seriously, though, one of the biggest complaints Indians have about racial whatsits is that people assume they smell of curry. You seem to have fallen into that trap.
I got muted for a week from the Android room cause I posted a joke which they think is misogynistic
@zigi link?
Andddd he's gone
Indians smell like humans.
14:59
cue #rage
@LightnessRacesinOrbit oh you
in Android, 5 hours ago, by Emmanuel
@zigi, are you around?
"hashtaga" sounds like a weird kind of pasta.
14:59
and at the same time they constantly fuck with me

« first day (1362 days earlier)      last day (3812 days later) »