« first day (1412 days earlier)      last day (3528 days later) » 

12:00 AM
@AlexM. o.O
 
Ell
And although I didn't feel pain I could still feel him twisting the teeth out and it felt so wrong
 
Ell
The noise of the teeth crunching
 
@LightnessRacesinOrbit Dog bites man...
 
12:00 AM
@LightnessRacesinOrbit Wrong as usual. "Permanent teeth" (or if you want the medical term, "permanent dentition").
 
Ell
But it wasn't painful at all. So that's good
 
@MartinJames eh
@Ell well thanks for that little story I feel so much better
 
The problem is not even in the operation itself. Apart from the puncture of anesthetic into the gums, there's not much pain during the operation.
 
It's when the anesthetic wears off.
Oh boy, trust me.
 
12:01 AM
@JerryCoffin It's not that permanent apparently!
 
One of the worst pain of my life.
 
@CatPlusPlus Nothing is truly permanent. Still the proper term for them.
 
@LightnessRacesinOrbit Not news - that's what holidays are for;)
 
But hey, they probably improved the whole thing, in these years, right?
 
@Jefffrey presumably you had teeth reshuffling themselves at the same time though
 
12:02 AM
:)
 
@MartinJames it's what I normally do tho :(
 
@LightnessRacesinOrbit yup
 
@Jefffrey I remember the discomfort of braces, though I didn't have it too bad in the grand scheme of things
 
I don't like this topic
 
Oh I've been wearing braces since I was 6 or so.
 
12:03 AM
neither do I
 
I still do.
 
Just a small internal one, but still.
 
Ell
The only pain I ever had was the sharp prick in my gums for the anaesthetic
 
@Jefffrey so, a fixed retainer
 
12:03 AM
They tried to make me wear braces, but they made me vomit so I said fuck off
 
@Ell nothing after?
 
Ell
Nothing after
 
@LightnessRacesinOrbit Something like that.
 
excellent both
 
Now that you make me think about it, it's been a while.
Maybe they forgot about it.
I should call them.
 
Ell
12:04 AM
It just felt like I had huge lips because they were numb so I dribbled everywhere
 
@Ell Oh yeah, that's pretty cool.
 
Ell
It's quite odd
 
Ell
I forgot what features we wanted in the new lounge chat
 
I remember that I kept looking in reflections and car mirrors to check if my lips were really that big.
 
12:05 AM
@Jefffrey loooooooool
 
@LightnessRacesinOrbit I'm kidding btw.
 
@Jefffrey about?
 
Ell
@jefffrey me too haha
 
@LightnessRacesinOrbit It's mildly painful, and only an hour after the operation.
 
12:06 AM
You'll survive.
 
Ruined it
 
Ell
@lightness I don't think you'll find anything of the tooth removal painful but if the gum is infected that's more likely to cause pain but idk
 
@Ell It all seems to have gone away now
 
Also they probably have better anesthetic now.
 
Ell
That's good news then :)
 
12:07 AM
Even the tooth itself isn't painful any more which kinda confirms that the only reason I even noticed this tooth hole was that it had become mildly infected down to the gum or something I dno
It wasn't even that bad then, but the extent to which it was getting worse day-by-day over 3 days was incredible, so I figure by now (if I hadn't gone in and gone on these antibiotics) I'd be writhing
I was also getting paranoid because I found new tobacco stains in the corners and thought they were decay
 
tobacco stains?
 
smoking does that a bit
 
you smoke?
 
plus my gums had receded; I put that down to an old frayed toothbrush and malnourishment and tobacco
 
Ell
Makes em yellow
 
12:09 AM
so I quit smoking and started my morning Berocca routine back up
turns out other than this one tooth, which was on its last legs anyway and I knew that, I'm fine
 
Ell
Still gonna stop smoking?
 
yeah
haven't had one since last Thursday and apparently couldn't give a shit. it's weird
 
Ell
Wise choice
That does sound odd. But let's not jinx it eh?
 
I had been intending to quit on this holiday anyway, as it happens. Not sure whether I'd have managed it otherwise though
I've quit before and it wasn't that difficult then, either. Only started up again years later due to circumstance.
 
Ell
I've never smoked
 
12:11 AM
don't
 
Ell
It smells nice second hand :L
But
It's not worth the risk of addiction I guess
 
It can really fuck up your mouth, worse than a bit of a yellow stain
 
I've quit ~2 months ago. Best choice of my life.
 
this problem tooth basically got dissolved by tobacco
 
And even if literally every friend of mine smokes, I really don't feel the need anymore.
 
12:12 AM
dentist and I were just waiting for a reason (like now) to remove it
 
I want to do something with Nell Hudson. It may involve restraints and ice cubes.
 
fortunately it's a wisdom tooth (i.e. right in the corner) so who cares right
 
@LightnessRacesinOrbit My last ones are still growing.
 
@Ell Me too.
Good morning.
 
@Jefffrey I have one left to come through
 
12:14 AM
I literally feel them half way trough
 
Ell
I think mine are just starting now to grow
 
I had to have some gum excavated to let one through
Cos it didn't have enough force and the one above it wasn't connecting to tear away the gum
Weird experience breathing your own burning gum as the dentist opens a hole
 
Ell
It sounds it
Anyhow it's late
I need to get some kip so I can continue work on lounge chat
 
@Ell Big ones I recall immediately: 1) Ability for owners to suspend individual users. 2) Ability for owners to permanently remove individual users. 3) Color coding to help track threads better.
 
Ell
Night folks :)
 
12:18 AM
I'm going to go downstairs and watch X-Men whilst waiting for mah pizza
bai kipperz
 
@Ell Good night.
 
Night, bye.
 
@Ell Night
 
Xeo
Hm, apparently I was on the final mission in BL2 when I stopped playing
> Stairs? NOOOOOOOOOOOOOOOOOOOOOOOOO!
 
@Xeo I've only watched my brother play it, but I somehow remember that.
 
12:25 AM
TBB seems like a pretty good library
 
@Rapptz You mean Intel TBB? If so, I'd agree.
 
Yeah.
they seem very standard-container-like
 
user1646075
12:45 AM
Good morning ladies. Avocado might just be the most tasty snack food ever invented.
 
Xeo
fucking hell, I forgot just how much damage the enemies make at the end of the game...
 
BL2 rocks!
 
What game?
 
the final boss is a bitch, too
 
Oh
 
user1646075
12:48 AM
I haven't had a chance - my 10yr old hogs the consoles. But he's good at it! Cool game, love the humour
 
user1646075
which probably pegs me as immature....
 
Xeo
aaaand the third death agains that stupid constructor
bloody hell
the damage is just mean :<
one hit, and my shield's down and my HP at... 30 or so
 
I just managed to be smoke free for three months by vaping
 
user1646075
@CaptainGiraffe congrats. how do you feel? Stopped Jonesing yet?
 
Two weeks ago they made it illegal
No jonesing whatsoever
 
user1646075
12:52 AM
?? where at?
 
Sweden
They caught an importer five days ago. I feel sick to my stomach
 
user1646075
sooo ... you still feel you need the crutch? what will you do next?
 
I've already got back to my Marlboros
 
user1646075
sounds a bit extreme - risks are relative. Were people dying of cancer or something?
 
user1646075
bugger
 
12:54 AM
I ran out of juice 5 days ago
 
user1646075
tried patches or whaever?
 
Patches made my skin look like a chinese t
treatment with burning up oxygen
It was 1cm puffs
 
user1646075
hah. alergic. Nicorettes? I tried one of them (non-smoker) the sensation was rteally wierd
 
I chew gum now, just to not smoke. It will not hold
 
user1646075
visit a cancer ward for mental strength
 
12:59 AM
Or I can revisit grandpas funeral. That is a tie.
 
user1646075
oh yeah
 
How nicely C++ can be used for embedded devices.
 
@StackedCrooked He looked at Roy Fieldings Fortran code. This was a necessity.
Can't we just mock shit when shit appears?
 
@StackedCrooked What is that?
!
 
user1646075
i'm gonna try some of those!
 
@MarkGarcia hacks :)
Or "configuration" if you want.
In his defense, it seems to be for embedded devices. At least that's what I get from this website.
 
user1646075
... i didn't think sbrk was even available any more for your average linux. must be
 
user1646075
hmmm - speak too soon. ubuntu seems to still have it. might have been suse
 
@aclarke If it breaks the code in The UNIX Programming Environment that depends on sbrk, then it's no longer really Unix at all.
 
user1646075
yeah, i'm puzzled now where I saw the loss of it. I know it wasn't windoze 'cos I'm not that stupid... but i wanted to fiddle the arena myself and the calls weren't there. Strange.
 
Xeo
@Code-Apprentice Ehh
I thought he was super easy just now
 
what difficulty level are you playing?
and are you playing pc or console?
 
Xeo
1:40 AM
I really don't remember. I've started this character... ages ago
but probably on the easiest available :P
and on PC
 
I played it on PS3 and (I think) on normal difficulty
the ps3 version was pretty buggy, though. IIRC the final boss bugged out when I played it
 
Xeo
Well, when I fought him just now, I had ~200 stacks of anarchy and killed him with what, 5 or 6 rockets to the face, with 16k base damage
 
anarchy?
 
Xeo
Mechromancer Skilltree
Get a stack of anarchy for every kill / empty magazine reload
every stack gets you +1.75% damage, but -1.75% accuracy
 
hmm...the PC version must have a few more classes...
 
Xeo
1:44 AM
Oh yeah, Mechromancer is a DLC IIRC
 
Xeo
fun as hell though
 
I liked the assassin
 
Xeo
but yeah, at ~200 stacks, I was at +350% damage
 
sniper rifle ftw!
yah, that would definitely make things easier
 
Xeo
1:45 AM
and my rockets do base 16k, so 56k per rocket
 
what level are you? did you get to 50 already?
 
Xeo
nope, 33
 
that sounds about the same as I was
 
Xeo
first playthrough
 
maybe a few levels higher
well...time to go.
 
Xeo
1:46 AM
bye-buu
 
we'll have to talk gaming another time ;-)
 
Xeo
@R.MartinhoFernandes I finally finished BL2 :D
I have to admit, I was totally expecting some other jerk move at the end there
 
2:00 AM
no spoilerino plx
 
user1646075
2:15 AM
my brain hurts:
 
user1646075
0
Q: if condition for a number multiple

user3979554I got an if condition as a multiples of 5, i need to check if condition until a value <= 10000. My if statement looks like this // in main function if(value >=0 && value <16){ function(number,value); } else if(value >=5 && value <10){ value-=16; function(number,value); } .... // fu...

 
user3010322
Is there an algorithm that searches a list and gets me the "closest match" ?
 
user3010322
Like a sort whose criteria is distance rather than raw comparison?
 
user3010322
Maybe I can pass a functor to sort... hm.
 
Xeo
I think BL2 is about the only shooter I like so far
 
user1646075
2:19 AM
sort -n- then a binary search which finds the nearest lower item, then compare the one above for final checks.
 
user1646075
or if it's not sorted, you'll have to scan the whole list - no avoidance
 
user1646075
may as well scan it all without sorting. timing might be better unless the list is nearly sorted anyway
 
user1646075
no wait, how can a sort proceed without visiting each element - so surely a scan will shit on it.
 
user3010322
You have to visit each element once to determine the closest match anyhow.
 
user3010322
I guess you could keep a running check
 
user3010322
2:24 AM
I guess this is a good std::for_each, really.
 
user3010322
Keep the index of the one with the smallest criteria...
 
user1646075
have to keep a running check.
 
user1646075
and the value of the last difference of course
 
user1646075
last diff starts at infinity ...
 
user1646075
or a 'just starting yo' guard
 
user3010322
2:26 AM
buffer_view, saving my bacon when dealing with these APIs again.
 
user1646075
hey, where did the current room quote "You see here that thread a only printed one letter, H, between b and y. The function printed 5 letters between b and y! That means functions are 5 TIMES FASTER than normal code!" come from? I wanna read that thread...
 
user3010322
Some python question.
 
user3010322
Where someone thinks they're brilliant.
 
user1646075
some people couldn't find their bum with both hands. Spectacular test of timing.
 
user3010322
Arrgh
 
user3010322
2:32 AM
No standard algorithm passes you the current iterator.
 
user3010322
They always give you the dereferenced iterator. :(
 
user1646075
a lamda ?;-)
 
user3010322
Regular for loop it is then.
 
user1646075
yeah, i give up too
 
user3010322
2:52 AM
Pat pat.
 
user3010322
There, there.
 
user3010322
You tried your best.
 
@0d0a: Huh, same in VS2012. This is a bug in one or the other. — Lightness Races in Orbit 9 secs ago
plzhalp
0
Q: Is Visual Studio buggy in printing the function address?

Lightness Races in OrbitTake the following testcase: #include <iostream> void foo() {} int main() { std::cout << &foo << std::endl; } GCC 4.1.2, GCC 4.8 and GCC 4.9 (C++03 and C++11) all give the following output when building and then compiling: $ g++ main.cpp -o test && ./test main.cpp: In function 'int ...

@LightnessRacesinOrbit Are you the girl in the picture? — usar 1 min ago
 
gj
 
3:07 AM
flagged it
this is why there are so few of us in IT ^^
 
3:21 AM
@LightnessRacesinOrbit <OT>Nice new avatar pick BTW. Congrats ;-) ...</OT> — πάντα ῥεῖ 2 mins ago
 
3:32 AM
I need to find a new avatar.
I've been saying this for the past month or so, but I haven't been able to find another one I like.
 
user3010322
Why not go back to being Warrior Mysticial?
 
user1646075
@ThePhD no, was a pretty piss-poor effort actually, for a trivial issue............. I think my brain just had an idea, but i'm loathe 'cos it's not like it's going to be any smaller than a loop i reckon
 
user1646075
why can't there be thingy_i versions of the algorigthms wot pass the iterator to you? Who signed off on that?
 
4:22 AM
@ThePhD You want to do a normal sort (sorting requires a strict weak comparison, which a fuzzy comparison won't fulfill) then a binary search.
 
user3010322
int sizeidx = 0;
int diff = 0;
for ( std::size_t i = 0; i < fixedsizes.size( ); ++i ) {
	FT_Bitmap_Size& bitmapsize = fixedsizes[ i ];
	float bitmapsizediff = std::abs( bitmapsize.height - description.Size );
	if ( diff > bitmapsizediff ) {
		diff = bitmapsizediff;
		sizeidx = i;
	}
}
FT_Bitmap_Size& pixelsize = fixedsizes[ sizeidx ];
 
user3010322
I just do dis
 
user3010322
I should make diff a float.
 
user3010322
@JerryCoffin Sort and then binary search? But... but but... I could just do a cheap one-off iteration. :c
 
@ThePhD If you're only searching a particular collection once, yes.
 
user3010322
4:26 AM
I'm just trying to find the closest thing.
 
user1646075
ummmm, you have to set diff to infinity OR make a special case for when i == 0 - after all, no diff can be better than 0 - so you'll never find anyting
 
user3010322
Technically, that algorithm above there should also account for height, but....
 
user1646075
ie - the embedded if( ) needs if(i == 0 || .....
 
user3010322
Eh?
 
user3010322
float diff = std::numeric_limits<float>::max();
 
user3010322
4:27 AM
There.
 
user1646075
wellll, if diff is zero to start, then diff > bitmapsizediff can never be more truer (unless you get lucky)
 
user1646075
close enough
 
user1646075
now slower....
 
user1646075
actually, for initial diff = 0, your IF can never pass, since using >
 
user1646075
i'd go for sizeidx = -1 (sentry indicating empty array if that's a possibility) and also slip in the i == 0 ||
 
user3010322
4:30 AM
Or.
 
user3010322
I could just check if the array is empty.
 
user3010322
And then not iterate.
 
user1646075
yup - "if that's a possibility" - then the -1 is irrelephant
 
@ThePhD If you start with diff = std::numeric_limits<float>::max(), you don't need to special-case that (since you'll start with i=0, and immediately test for i<0, which will fail, so the loop won't execute anyway).
 
user1646075
happy to use floats as an 'optimization' when your diffs will only be integer?
 
user3010322
4:32 AM
description.Size is a float size.
 
user1646075
o right
 
user3010322
But, I need to check if the array is empty because I need to then take an alternate route.
 
user3010322
If there's no fixed sizes provided by Freetype to do rendering with...
 
user1646075
also - if the array won't be empty, then sizeidx = 0 and diff = first-element - descripotion.size also cuts it
 
user3010322
Then I need to provide device-width to render.
 
@ThePhD re "Is there an algorithm that searches a list and gets me the "closest match" ?"... like, std::min_element (with comparator)?
 
user1646075
5:10 AM
bool return value of the comparator can't distinguish a better one.
 
user1646075
ie the closeness has to be numeric
 
Sure it can. Map a<b to distance to(a) < distance to(b).
 
user1646075
hmmmmmmmmmmm - if the cmp(a,b) compared both
 
user1646075
yup - by george, i think he has it
 
user1646075
5:22 AM
`
 
user1646075
#include <algorithm>
#include <iostream>
#include <vector>

int main()
{
std::vector<int> v{30, 10, 40, 10, 50, 90};

int x = 44;
std::vector<int>::iterator result = std::min_element(std::begin(v), std::end(v), [x](int a, int b) { return abs(a-x) < abs(b-x); } );
std::cout << "closest element at: " << std::distance(std::begin(v), result) << std::endl;
}
`
 
user1646075
now if only i could markdown properly...
 
user1646075
and pity it's ugly
 
It's still not ideal, but it's an algorithm
 
user1646075
heh
 
user1646075
5:25 AM
mission accomplished!
 
Ideally, you'd want to be able to evaluate your distance metric once per element
 
user1646075
y'know, in hind-sight.........
 
user1646075
sorry, 44 should of course be 42 as per testing standards
 
Oo, got a phone call asking me whether I got 'funeral insurance'. I was like 'I am sure I got enough money for that, I don't need insurance to pay for that'
lol, the only insurances I would buy are house insurance and car insurance ... and I the main reason why I am taking house insurance is to cover unlimited liability
 
5:42 AM
translate: test
ah it did get removed.
rip.
 
Unlimited liability due to torts - you know the kind people who injure themselves while are on your property then they sue you for it
 
there's massive flagging of non English posts
it's kind of annoying
they're getting flagged because it's not in English
 
I hate those scumbag low lives who try to sell you all those useless insurances, not much different to scammers
Almost wondering whether they are pranksters
 
user1646075
a lot of people have fears that are easily preyed on
 
user1646075
5:58 AM
i try to burn those kinds of fuckers. If I think they'll have a bad rest-of-day after I've finished with them, I consider it a job well done
 
user1646075
and door-to-door salesmen and assorted door-knockers who choose to ignore the sign on my gate.
 
lol, don't like those either, but at least not all things they sell are useless ...
 
user1646075
don't care if they're selling useful stuff - if I want it I'll go looking for it.
 
user1646075
a sign, man! I have a fucking sign!
 
Well, regarding usefulness... technically, Kirby vacuum cleaners are useful
 
user1646075
6:02 AM
haven't seen a salesman for Encyclopedia Brittanica for a while
 
binary literals ftw
 
user1646075
real men use octal
 
user1646075
dammit - can't see. screenshot of highlights?
 
7:04 AM
I'm surprised nobody is slamming this OP for "deterministic multi-threading":
0
Q: How to achieve deterministic multithreading in C/C++?

ACcreatorAs we know, threads are non-deterministic as a model of computation. However, in some situations, we would like to take advantage of the performance gain with parallel computing by multithreading, while keeping the execution deterministic at the same time to make it easy for some general demands ...

Which is totally possible. But not intuitively.
 
Hi Mysticial! Always enjoy reading your answers on SO!
 
Glad you like them. :)
 
@Mysticial lol threads in C++.
> The Universe is populated by stable things.
@BartekBanachewicz you imported the wrong ToJSON
 
7:35 AM
Ooh
Might be
Also I fixed my cabal hell with sandbox yesterday
Either conduit or lens have fucked up cabal files
The box weights around 60MB so it's nothing
It deploys quite a long time though
 
Is there some web-based tool that you can store text files in and attach tags to them?
 
@Mysticial yeah, it's possible.
 
@Mysticial It's like asking 'How to achieve deterministic I/O'.
 
7:52 AM
I had to do deterministic threading in my pi program for the sole reason of debugability.
And no, it wasn't easy.
Mainly because I had to avoid memory allocation.
 
@polym CouchDB? :P
 
@HWalters how about this :v
 

« first day (1412 days earlier)      last day (3528 days later) »