« first day (1185 days earlier)      last day (3778 days later) » 

1:00 PM
1 min ago, by Andy Prowl
naive soul
 
Cassowaries are pretty, although there is no baby cassowaries for sell, probably because they killed a couple of people
 
if you don't need a jacht then your income doesn't matter that much beyond a certain threshold
 
I need to control sound in windows 7 , I have done it with xp , I have an doubt .....does anyone have idea about volume control in windows ?
 
Jan 9 at 20:48, by Rapptz
For safety measures, read the rules before chatting.
 
1:01 PM
@ScarletAmaranth ok, but there are also many that don't
 
I just press the Volume+ and Volume- buttons.
 
@ScarletAmaranth Unless you want to buy a flat or something
 
@CatPlusPlus well, you can take a mortgage, it's not unmanageable
@R.MartinhoFernandes that's the exact same thing that I do o_O
 
Oh I'm not talking about paying for it upfront
 
@AndyProwl sure as shooting
 
1:02 PM
obviously people on this lounge has no good investment sense
 
@AndyProwl what is it that you do in Brno btw? (if you don't mind my asking)
 
You need a certain income level to be able to take mortgage and pay it off, and it's higher than just for :effort: living
 
@CatPlusPlus huh o_0
 
@CatPlusPlus sure, but once you can afford this stuff, you can make do without jachts and a 60k dollar watch
 
yachts, btw.
 
1:03 PM
Mo money is always good
 
@R.MartinhoFernandes I read that as jackets :(
 
@ScarletAmaranth lol jacht = expense, if you can't differentiate between expense & investment, there is a good chance you will have little assets for life
 
Yes, a boat is a great investment
 
dayum, Englishes too difficult
@sudorm-rfTelkitty eh, whatever :)
 
Because as we know, the value of a boat only goes up UP UP
Like buttcoins
 
1:06 PM
yeah buy land in 2nd life ...
or invest in a cult
 
@sudorm-rfTelkitty yachts can be sold, investment.
 
Everything can be sold
 
everything is investment
 
I INVESTED IN THIS SOFA
 
bitcoins included :D
 
1:07 PM
Great ROI
 
even chicken shit can be sold - I would know because my mum bought some for plants
 
And comfortable to boot
 
@CatPlusPlus woah, you made it from the bed to the sofa?
 
He sleeps in the sofa.
 
I am a sofa
 
1:07 PM
investments generally give positive returns, expense generally depreciating in value over time
Not always so because investment implies risks
risk is the chance of negative return
 
Please tell us more
 
Fascinating.
 
Dafuq is going on?
 
Irish I were drunk
 
hahah
 
1:10 PM
Guys, I can also ramble on about some unrelated bullshit I know. Shall I?
 
oh please do :D
 
This is equal opportunity bullshit zone
 
1:12 PM
@TonyTheLion bless you
 
@ScarletAmaranth I work in a company that produces electron microscopes. I write SW for those microscopes.
 
sbi
@R.MartinhoFernandes Have you ever done anything else here?
Hi.
 
whoa, an ape has arrived
 
@AndyProwl Sounds cool.
 
1:15 PM
@R.MartinhoFernandes Until you see our codebase :)
 
@AndyProwl Do you guys do only the software, or the whole banana?
 
@R.MartinhoFernandes The whole banana
 
there isn't a big market for electron microscopes though, is there
 
a microscopic market
 
certain research institutions, potentially universities, that's about it
 
1:16 PM
I think there is. I'm not exactly a marketing guy (no, I'm not a marketing guy at all)
 
@ScarletAmaranth pharma industry, doctors, labs, etc
 
Intel, Samsung, Seagate, every company that produces chips
 
@ScarletAmaranth How narrow-minded of you.
 
plus life science
 
@ScarletAmaranth Why is that important
 
1:17 PM
@R.MartinhoFernandes He apparently has a microscopic scope of mind
 
@CatPlusPlus because
 
sbi
@R.MartinhoFernandes Innit called "enchilada"?
 
pcha, was just wondering, asshats :P
 
@sbi Ah, that was it.
 
1:19 PM
Here are a few pictures taken by our customers. Some are really cool.
 
I knew it wasn't supposed to be a fruit.
 
There are no bananas there
I want my money back
 
sbi
Folks, what's that domain you compile/run code on?
 
But there is NanoMessi
 
1:21 PM
Is that supposed to be someone important
 
It's Leo Messi.
 
sbi
@CatPlusPlus Thanks, I just remembered.
 
25 secs ago, by Cat Plus Plus
Is that supposed to be someone important
 
sbi
Anyway, can someone explain this result?
 
@CatPlusPlus Not for you I guess
Not even Lewandowski would be probably
 
1:22 PM
@sbi What part is surprising?
 
btw @StackedCrooked coliru dot probably everything is free
 
@sbi you read -89 into an unsigned?
 
@sbi this is not Stack Overflow :P
@sbi also, did you resolve your crafty problem?
 
buys domain
@CatPlusPlus Not anymore!
 
@R.MartinhoFernandes plus Enchiladas are tasty as hell.
 
1:24 PM
coli.ru
Thought that's probably taken
 
@CatPlusPlus surely co.li.ru vOV
 
sbi
@R.MartinhoFernandes I'd expected the fail bit to be set.
@Abyx This is some test for a case where an XML file contains an unsigned where a signed is expected.
@thecoshman I have so many problems... Which one are you referring to?
 
No error has occurred.
 
@sbi Other way around?
 
sbi
1:26 PM
@CatPlusPlus Yeah, other way around.
 
@sbi ... the minecraft one for your wee one.
 
I guess that streams doing bullshit like reading negative numbers into unsigned might be surprising..
But that happens everywhere in the language, so...
 
I learned about Google Script websites today
they are actually pretty cool
 
sbi
@thecoshman Oh, this minor one. No, I didn't.
Anyway, why would the damn stream lib read a signed value into an unsigned without even doing any hiccup?
 
Because unsigned is a joke?
 
1:30 PM
@sbi wait... what other minecraft problems you had... or do you have real grown up problems?
 
@R.MartinhoFernandes Why would the damn stream lib read a signed value into a joke without even doing any hiccup then?
:)
 
sbi
@R.MartinhoFernandes If so, our customers aren't laughing about it. If this wasn't a simulation, this would have blown up HW worth several hundred k$.
 
C++ best tool
btw speaking of Minecraft star-made.org
 
lol @jalf WRT the hashing guy
 
1:32 PM
@sbi I truly pity those who are parsing XML using iostreams... :{
 
@sbi fancy
 
@sehe what the hell
 
@CatPlusPlus the terria in space? thoughts
 
No, Minecraft in space
 
sbi
@sehe Oh, we're not parsing the XML ourselves. Just, at some point, we do have a string, that's been at the right place syntactically, but need the correctly typed number instead. That's where streams come in.
 
1:34 PM
@sbi that's slightly better. I guess boost::lexical_cast, std::stoi, std::stol and friends are out? (no localization control as far as I can tell)
 
@CatPlusPlus oh that one, I'm thinking of star bound
 
still, thoughts.
 
sbi
@sehe Doesn't lexical_cast simply use string streams?
 
It is multiplayer so we could try it out
 
user1804599
1:36 PM
@sbi it has been specialised for many types.
 
user1804599
IIRC stringstreams is just for the general case.
 
@CatPlusPlus ... so are many games, what's your point. also, £££?
 
free?
 
Yes
Never not try out space games
 
1:37 PM
vOv fire up a server later on then and we can give a go... it is VERY early dev though right now isn't?
 
Dunno
Probably not before weekend though
 
TIL Kotov syndrome.
 
I like what moves grandmasters call blunders though
 
@CatPlusPlus cool cool
@R.MartinhoFernandes tl;dr
 
@thecoshman Really?
> In Kotov's 1971 book Think Like a Grandmaster, he described a situation when a player thinks very hard for a long time in a complicated position but does not find a clear path, then running low on time quickly makes a poor move, often a blunder.[1]
 
1:41 PM
It's one sentence
 
there's one line there, @thecoshman ^^
 
tl;dr: no tl;dr you lazy fuck go read it
Also ugh redditisms/4chanisms
 
sbi
Well, here you go, get yourself some rep.
 
@CatPlusPlus also ugh, catisms
 
1:43 PM
@TonyTheLion :D
 
I'd say "don't use unsigned", again :S
 
@R.MartinhoFernandes well, I didn't even try looking that up, I just assumed.
 
@sbi what expensive hardware would be getting blown up :)?
 
sbi
@R.MartinhoFernandes Even if you'd be right (which you aren't), there's external interfaces to other systems, programmed in Java, and some weird hardware-close stuff. They expect types like 16bit unsigned integers and the like. We have to deal with them, and we have to catch those errors.
 
@sbi Doesn't that qualify as a by now :) ?
@sbi so parse 32 bit int and check that it's >=0?
 
1:45 PM
@sbi (I am) Read with signed values, which don't have modulo arithmetic.
 
sbi
@ScarletAmaranth In this case a 100kW AC battery we use for testing. For all I know the thing might be worth a million.
 
All values are fine for unsigned.
 
:O ok... now that is not something to link to. A 'thai funeral' is (apparently) basically just cutting the body up into small parts... either that, or that image album was horribly named.
 
@R.MartinhoFernandes or "don't use iostream"?
 
sbi
@sehe How would I know? I have never seen that question. But then I'm not looking on questions.
 
1:46 PM
int c=2014; c=c++11; cout<<c;
 
@sbi ... or not much at all?
 
@R.MartinhoFernandes I think that's the problem.
 
3 mins ago, by R. Martinho Fernandes
I'd say "don't use unsigned", again :S
 
my rule of thumb is "if the actual formatting is signficant, stay the hell away from iostream"
 
@sbi Well. lexical_cast has been accused of "just being glorified stream IO" about 12 million times in this lounge
 
1:47 PM
@sbi Let's go naive here: read into signed int of a bigger capacity, check if it's greater-equal than 0, proceed accordingly.
 
sbi
@sehe I haven't accused it of anything.
 
@R.MartinhoFernandes I was just highlighting this way of putting it
@sbi good :)
 
sbi
@thecoshman As I said, it's a couple 100k$ at least.
 
Xeo
@sehe Hey, to be fair, that's all it was in the beginning, no?
 
Wow, TIL and it's only morning. — chris 1 min ago
lol
 
Xeo
1:48 PM
Nowadays, they simply special-case common usages / built-in tyoes
 
@sbi what does that batter power?
 
@ScarletAmaranth erm... fish and chips?
 
seriously robot oh wait you actually wrote it first
 
Seriously Robot sounds like some indie band name
 
eh now I have to upvote his answer
 
sbi
1:50 PM
@R.MartinhoFernandes That's gonna hurt. It is a template. I believe there are types from uint8_t to uint64_t in those interfaces, leading to the corresponding template instances. How do I do this generically? /cc @Bartek
 
0
A: How to safely read an unsigned int from a stream?

herohuyongtaoUse peek() to check it is pos_type or not.

@sbi You can't do it with iostreams for uint64_t.
Unless you do the parsing yourself.
 
@sbi Then nope, as robot said. There's no overload for mm128 (to properly fit unsigned 64-bit number)
 
For the others you can write a signed_that_is_larger<T> template.
 
@R.MartinhoFernandes Or just always read into int64_t vOv
 
@BartekBanachewicz That needs extra range checks, then.
 
1:53 PM
ah right.
 
He doesn't want to read "100000" into a uint16_t.
 
sbi
@R.MartinhoFernandes Then the biggest is hopefully an uint32_t. Still, this allows for values > the max value for sint32_t.
 
@R.MartinhoFernandes wait, but you can read 2^33 to int64_t but not to uint32_t
 
Hmm, true.
Well, you're checking anyway, so just add another :(
 
Then using int64_t should be simpler and equally fast on x64
 
1:55 PM
Btw lexical_cast in combination with this workaround seems to behave correctly
 
rofl, there's a close vote on ape's question
 
sbi
Wait. I am too tired. That's a 32bit platform. No 64bit.
 
@sbi Wrong assumption.
 
@BartekBanachewicz perhaps I am being derpy, but if you read an unsigned 16bit into a signed 32 bit, you read a different value to if you read it into a signed 16 bit, no?
 
@thecoshman signed n-bit number can hold ~a half of positive values of unsigned number of the same size
 
sbi
1:58 PM
@R.MartinhoFernandes ???
 
@thecoshman So actually you need 17-bit signed int, but since there are none, 32 is the closest.
 
@ScarletAmaranth Actually it points to a very similar question
 
@sbi Does it have long long?
 
@BartekBanachewicz perhaps I am missing the problem here... never mind
 
@thecoshman The latter doesn't work.
 
1:59 PM
Or in other words, the 17th (or 1st) bit is used implicitly to check what is being checked by .peek()
 
sbi
@R.MartinhoFernandes Why would it do that? This is a vxWorks version from 1996, after all. :-(
 
@BartekBanachewicz peek() doesn't do anything related here o_O
That answer is bollocks.
 

« first day (1185 days earlier)      last day (3778 days later) »