« first day (755 days earlier)      last day (4179 days later) » 

user1357851
10:01 AM
How many instances do people actually use list initializations
 
@LuchianGrigore Shouldn't that be faq'd ?
 
@Telkitty Not my fault it's rather under-specified.
 
user1357851
@DeadMG so what was the full question damm!t
 
Use the program WaveGen.exe (requires .net 2.0) to generate some random waveforms in CSV format.

In C# or C++, write a windows application that calculates the frequency of highest amplitude wave in each file. Each wave is of fixed frequency.
Output a CSV file containing the waveform filename in the first column and the waveform frequency in the second column. Sort the results by ascending frequency.
The task should take approximately 1 hour.

Send us the source to your program (but not the generated waveforms). We will use WaveGen.exe to generate some more random waveforms to test your pro
 
@kbok dunno, faq'ing means putting it up for debate here.
 
10:08 AM
mkay
 
user1357851
@DeadMG so the waves are superimposed and you have to separate them
 
nope
 
I see no mention of voltage or potential.
 
the CSV data appears to describe, as best I can tell, one and only one wave.
@R.MartinhoFernandes The CSV file is time, voltage.
 
room topic changed to Lounge<C++>: Waving, Not Drowning [c++] [c++11] [c++-faq] [who-comes-up-with-that]
@Telkitty At least {1 }
 
10:10 AM
@Telkitty Separating waves is the Fast Fourier Transform- not the kind of thing you'd ask on a random short technical test.
 
If there's only one wave the test is fucking trivial
 
user1357851
@sehe change it to'laplace transform, the'
 
yeah
 
@DeadMG In simple cases you could go with a simple power spectrum by convoluting (multiplying, basically) with sinuses of several frequencies and doing the RMS of that. Plot the RMS values with the frequency of the reference sinus and voila: poor-man's FFT
 
I'm just going to skip this one
 
10:12 AM
@Telkitty "Waveleting" didn't seem to allude to the poem as nicely
 
Leave that poor Richard Stallman alone
 
> new bathroom, new under stairs toilet, 17 x 12 lounge, beautiful views - oh by the way, it's in Siberia ....!
 
> Each wave is of fixed frequency.
So: differentiate to get high/low points. Measure distance. Job done @Telkitty
@kbok ... urff you know what that meant
 
Actually I don't, everything physics-related I know is in French
 
Heh. That's funny. Everything maths-related I know is in hexadecimal !
 
user1357851
10:17 AM
@kbok is issac newton french 2?
 
user1357851
& dilbert Einstein :x
 
user1357851
s:6161960 there are only 10 kinds of people who understand maths ...
 
@DeadMG That probably involves electromagnetic field stuffs then.
 
user1357851
I think it would be simpler than that
 
user1357851
if it does involve superimposition of the waves
 
10:20 AM
I think it's clear it doesn't.
 
@DeadMG you can use a digital filter to find that wave
 
user1357851
quote question "Each wave is of fixed frequency. "
 
@Telkitty Newton was British, but Descartes was French
 
known frequency?
 
user1357851
@kbok Descartes is not a physicist
 
10:24 AM
@Telkitty Yes he is, he is responsible for many useful theories in optics
oh wait no
 
user1357851
I thought France have more mathematicians
 
Oh actually he is
 
user1357851
-___-
 
@Telkitty Bernoulli, Laplace, Pascal, that's off the cuff
@JohannesSchaub-litb riddles :)
 
TIL Johannes can't copy-paste properly.
 
user1357851
@sehe according to wiki Bernoulli was a Swiss mathematician and physicist
 
Why is there an article about Bernoulli on tvtropes.
 
user1357851
anyone remember what fourier lagrange's function is?
 
Lol, all my children dwarves went insane because I accidentally dropped a boulder 50 floors up onto their parents.
And then they managed to kill 2 of my hammer dwarves
 
user1357851
10:44 AM
Oh gosh ... it did say fixed frequency, why did I keep on thinking mixed frequency? drops dead
 
man, I'm so sleepy
there's a good chance when I visit WGP I'll just tell him to fuck himself
 
> Outstanding bosses!
Best error message ever?
 
also
did I mention that recruiter this morning told me my CV was shit?
man, she sounded pretty nice but her email is kinda sarcastic and unpleasant
 
@Abyx ooh, undocumented stuff. thx. i wonder if it is available with g++?
 
@DeadMG lol, really?
 
10:50 AM
yep
 
@Cheersandhth.-Alf it should be a link.exe feature
 
@Cheersandhth.-Alf It's not really undocumented- Raymond blogged about it like, ten years ago.
 
@DeadMG I mean, did she point out stuff she thought was bad, or did she just say it sucked?
 
@R.MartinhoFernandes well, #2, and then email for #1.
 
@DeadMG thanks, i was just reading the comments on that blog
looks like MS stuff though, not necessarily GNU toolchain support
it may be that GetModuleHandle with DLL name will work even before DLL init completed. but I just use that Meyers' singleton to avoid dependency on DLL init :-)
 
10:56 AM
@Cheersandhth.-Alf of course it does
 
fuckshitballs did I mention that I'm really kinda sleepy?
 
@Abyx he he, there's nothing "of course" about MS things, and DLL init things in particular. e.g. there's a whole big problem area wrt. thread local variables.
 
@Cheersandhth.-Alf that "DLL init" actually is CRT init. As soon as DLL entry point is called, DLL is loaded (initialized).
 
@DeadMG Go to sleep?
 
can't, got WGP soon
 
10:58 AM
@Abyx right. but as you can imagine, the user define DllInit (whatever) is necessarily called from the real one. so initialization is not completed at this point.
there are some severe restrictions on what one can do during DLL init call.
 
@R.MartinhoFernandes I'm reading the new papers.
 
that's one of the few things documented. somewhere.
 
@LucDanton What new papers?
 
Post-Portland.
 
> Warning There are serious limits on what you can do in a DLL entry point. To provide more complex initialization, create an initialization routine for the DLL. You can require applications to call the initialization routine before calling any other routines in the DLL.
 
10:59 AM
Oh.
 
@Cheersandhth.-Alf, you definitely should write some code in an assembly language, or at least without a CRT.
 
@Abyx been there done that.
 
> In c++std-lib-33011, Howard Hinnant described an interface that he has come to prefer: std::invoke_of and std::invokable.
> The proposed fix is simple; continue to allow implementations their current latitude with regard to physical source file character sets, but add a requirement that the UTF-8 character encoding be accepted.
 
@DeadMG yep. thx.
 
11:04 AM
@LucDanton so we only have to wait 32099 years? :p
 
user1357851
@DeadMG I was told the format of my resume was aweful constantly until I ripped linkedin their format
 
@melak47 It's mentioned for reference but the interface isn't being considered. And it's not desirable anyway.
 
user1357851
just filling in the content according to their requirement then copy and paste into words
 
user1357851
you will have awesome looking resume
 
that would require awakening
 
user1357851
11:07 AM
that I can not help you
 
ino
 
> There are some difficulties here, though; extending this member function would clash with the homonym
 
he he there is a documented way, GetModuleHandleEx can obtain handle from an address in the module
 
Fancy way of saying 'overload'.
 
11:11 AM
"Runtime-sized arrays with automatic storage duration" is still rolling...
FFS
 
There's an interest take on perfect-(re)storing and I can already notice a bug.
Oops, make that two.
> A compiler-supported signature type trait is expected for Bristol.
 
@R.MartinhoFernandes There's a VLA proposal. bleh.
 
where apparently signature<foo(arg1, arg2)>::type is the function type of whichever operator() overload would be picked.
 
@kbok And it's made in the worst possible way. It introduces a new type that you cannot decltype, typeid, sizeof, typedef, whatever the fuck you want, you just can't.
That's just silly.
 
Also what's wrong with vectors for fuck's sake
 
11:15 AM
Which is almost as 'good' as not having a type at all.
 
user868935
has anyone got the default Direct3D program for VS2012, Windows 8 to compile? I keep getting error LNK2019, 2001, and 1120
 
user868935
even the samples from MSDN give the same errors
 
MS Y U NO PROVDIE WORKNG EXMALPES
 
1
Q: do std::function and std::bind do dynamic memory allocation?

J99If I do this :- class Thing { ... void function (const std::string& message); }; std::list<std::function<void()>> work; and in some member of "Thing" work.push_back(std::bind(&Thing::function, this, "Hello")); Does either the call to std::bind or the use of s...

lolwut.
Wants to avoid dynamic memory allocation => uses std::list
 
lol. he even has silver badge in c++
 
11:20 AM
@R.MartinhoFernandes Probably just an example. But yes, pretty bad example.
 
I like the effort towards network librairies
Is there some kind of std::bignum also ?
 
@kbok There's something in the pre-Portland stuff, IIRC (same page, just scroll up)
 
Has anybody got any experience working with Boost.Container? What’s their quality of implementation (performance-wise)? Do they fully replace the standard containers?
 
@R.MartinhoFernandes BUY GUYS totally I need PERFORMANCE so std::bind must not allocate
Ahahaha
As usual, OP has no idea what they're doing, but they THINK that or that might be a problem
:stackoverflow:
 
@R.MartinhoFernandes Can't find it
 
11:30 AM
@kbok Maybe I got confused with some of the other numeric proposals.
 
There's a rational library proposal, maybe that
> allowing spacecraft to essentially park there.
Spacecraft parking, awesome
 
^ That worked. Who would have thunked. Now I don't need the singleton but I'll keep it anyway.
 
@Cheersandhth.-Alf And this, right there, is why USA sucks
:/
> My brother Nate is fighting stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (unpaid FMLA), no insurance coverage, and can not afford treatment.
WTF? State refusing to pay for treatment? That’s murder/manslaughter in every civilised country.
 
@KonradRudolph didn't the health reform fix that?
 
user1357851
states have no public health insurance
 
11:36 AM
@Cheersandhth.-Alf For some people, yes. They still have a long way to go. But it probably won’t happen because, as everybody knows, Obamacare is a nazi-communist plot
 
user1357851
communism is not all bad
 
@Telkitty Well, except for the fact that it does’t, and cannot, work
 
Ah, that signature trait is introduced in the compile-time reflection paper.
 
user1357851
ideally it is the sharing of public goods
 
@Telkitty “sharing of public goods” is a tautology
 
user1357851
11:38 AM
it is only human selfish nature prevents it from happening
 
user1357851
@KonradRudolph could work for public health though
 
user1357851
it is like public schools
 
@Telkitty Oh, I agree there (disclosure: I work in the public health sector)
 
user1357851
certain things can be shared
 
user1357851
look at GFC capitalism is not all good either
 
11:40 AM
@KonradRudolph You're a commie mutant traitor?
 
user1357851
Australia is the best: good public health system, public tertiary education, plenty of land and sunshine, not many people. Lazy bums here can just sell mines to Asian & be lazy :D
 
grrrr, seriously, nobody has done a performance comparison of c++stdlib containers and Boost.Containers? How was this even included in Boost without publishing a performance comparison?
 
user1357851
can't you do it yourself
 
user1357851
you can then share the results with us on your blog if you have one
 
@Telkitty Good microbenchmarks are hard and take time
if you want to see what I mean, read the blog of Daniel Lemire who often published microbenchmarks to prove a point and always botches it
 
user1357851
11:49 AM
well if you do the test yourself at least you know the drawbacks
 
user1357851
or the bias
 
@KonradRudolph While I agree with you, yourlogicalfallacyis.com/anecdotal
 
And as for my blog …: it’s here: klmr.me. Impressive, I know. Ladies, please keep your panties on!
 
@KonradRudolph No it isn't. Github 404
 
@R.MartinhoFernandes I was giving an example, not trying to prove a general case
 
user1357851
11:50 AM
haha should try mine
 
@KonradRudolph Why should they?
 
@Telkitty I bet he used to swim across the lake of Geneva
 
user1357851
@sehe I know I shouldn't but I seriously put too much information on my blog
 
user1357851
I had head hunters calling me asking me retarded questions
 
11:55 AM
That's normal.
 
user1357851
not sure it's because they read something somewhere
 
It's because they are headhunters. It's their job.
 
user1357851
maybe because they have too much time shrug
 
user1357851
that's why I don't use twitter or facebook, not personally anyways. Burnt too many times
 
user1357851
haha iphone ear phone can be used on window's phone
 
user1357851
12:00 PM
this is so awesome
 
why?
they all use a standard 3.5mm jack
I'd be upset if that didn't work
 
user1357851
coz apple always wants to be different
 
sometimes even they aren't stupid enough
 
user1357851
power plugs various adaptors are all different
 
user1357851
very annoying
 
user1357851
12:01 PM
on mac that is
 
user1357851
so ultimate question: Microsoft, google or apple?
 
user1357851
negative
 
@Telkitty So, they had been able to deduce, from your blog, that you would be most responsive with retarded questions? Indeed, that may indicate that you are leaking just a little too much information there
@Telkitty MS goople
 
user1357851
12:06 PM
@sehe but I don't use facebook or twitter to disclose my personal info
 
user1357851
who visit my personal website/blog must personally know me from somewhere
 
I'm not sure how that is helping.
 
@Telkitty right. robots.txt is airtight, right
 
I love Apache's "404 when grabbing the 404 page" error.
Yo dawg, I heard you like 404s, so I put a 404 in your 404 so you can 404 while you 404.
 
user1357851
once one of my previous work place's linux machine told me my university's linux service was lying about how many byte it sent. Instead of 215 byte, it was saying it sent 216?
 
12:12 PM
wow we love spam
@Telkitty nice. What's the question?
Broken protocols/servers cannot be helped. Remember, HTTP is just text
 
user1357851
I used telnet or ssh to connect to university's server from one of my previous work place
 
user1357851
whenever it was first connect it would tell me the other server lied about the number of bytes sent
 
Your machine is a conspiracy theorist.
 
user1357851
IMO internet needs to forget as fast as humans do
 
user1357851
seriously
 
user1357851
12:16 PM
I found posts I made nearly 10 years ago
 
user1357851
I was young and naive and posted whole loads of rubbish
 
user1357851
and now they came back to haunt me
 
WTF. The C# 3.0 Language Spec download is a Word document?!
 
Has always been.
 
Well, that sucks
 
sbi
12:24 PM
Pray to become rich. At SO? WTF?
 
@R.MartinhoFernandes Anyways, TIL that having userdefined conversion operators on type T in assembly A, makes a client (in assembly B) using any member of type T _depend on all assemblies containing types referenced in the method signatures of those (static) conversion operator functions (so potentially assembly C,D,E,F...). This took me by surprise and limits the applicability of UDConversions, IMO.
@sbi So. We had the "Obama Barrack". They Have the "RMoney Sit-inn"
 
sbi
@sehe I don't even wanna try to dissect that sentence.
 
@sbi I have tried to find a reasonable explanation in the specs. Haven't found it. Perhaps the Robot can think of something I'm missing?
 
sbi
Well, lunch break is over, and since the two boys last night preferred to eat and drink, rather than looking at my problem, I still have this crash to find. Or rollback my changes. Sigh.
 
12:28 PM
@sbi Erm. What are you paying them?
 
sbi
Hush, unstar this. We don't want everyone to know it!
4
 
:)
 
sbi
@sehe I cooked for them, and they emptied my stock of alcohol.
 
@sbi Ow. Ungrateful bastards. Also, clearly need to stock more :)
 
sbi
@sehe Oh, I still had 1.5 bottles of wine when they left. But they declined decent drinks.
 
12:33 PM
Link fail
 
@sehe Typically my kind of answer!
And hi o/
 
@Cicada argh, I’m trapped!
 
staggeringbeauty.com this one is epic.
2
 
EPILEPSIA
 
@sbi OMG, it did.
 
12:50 PM
this one is kind of nice: muchbetterthanthis.com
 
Ahahaha, glad to see I contributed efficiently to the lazyness of this room.
 
@sehe and ape Look at it in the transcript. It's weird.
@sehe Looks like something interesting to e-mail Eric Lippert about.
@sbi You tricked us into it!
 
@Michael My point is that using it has no advantages, and sometimes has disadvantages, and that alone is reason enough to ban it from code. For the same reason we advocate always using prefix-increment, even in cases where it makes no difference, in place of postfix-increment (obviously only when both are semantically correct). Having a single “always use this” rule is a no-brainer. Not having such a rule requires you to remember caveats and specifics. — Konrad Rudolph 28 secs ago
 
semantically
oh boy I had forgotten about that one
 
maybe I’m being over-dogmatic but I just see this as keeping code simple
@Cicada Wait until I give meaning to the semantic!
 
12:57 PM
You're so meta.
 
Nonsense!
 
@sbi Why not?
 
And what does he mean by that?
@KonradRudolph, exactly the reason I prefer not to have such rules ;) — Michael Krelin - hacker 1 min ago
 
Kremlin!
 
@KonradRudolph Mark as mildly NSFW?
 
12:59 PM
@sehe is it? Oh well …
 
There's no SFW scale. Either it is, or it is not.
 

« first day (755 days earlier)      last day (4179 days later) »