« first day (1816 days earlier)      last day (3136 days later) » 

2:00 AM
Which is an abomination on its own, but meh.
 
@Nooble how does one go about iterating through a string?
 
@GregorMcGregor what is a question?
 
@Ethan Why would you need to?
You could use the begin and end iterators :P
 
truncating off certain portions into new strings
 
And also at() for element access.
You sure you're learning C++?
 
2:02 AM
lol yep
 
You should use jQuery. It's really great and does all things.
 
^ That too.
 
@Mysticial as i said: "I'm new"
thanks guys I'll look into both of these
Oh
I'm stupid
I was just missing it lol
Thanks again
 
bwack
 
Yet another victim of char*.
 
2:04 AM
lol
 
I should probably stop fooling around with template metaprogramming...
 
quick question. That asterisk after "char" does that signify an array?
 
No, that signifies a pointer
Which could be an array
 
ah ok
havent learned about those yet :) yes Im that new
 
> new
 
2:07 AM
:)
 
Haha come on guys that was a funny joke.
 
@Justin nice try
 
@GregorMcGregor ?
 
New hehe
God damn it.
@GregorMcGregor Hi.
 
Hi Nooble McNooble
 
2:11 AM
@GregorMcGregor Hehe.
That used to be my "real name" on SO.
 
I know
 
@GregorMcGregor What do you mean by that?
 
usual arrays are not pointers meme
 
Ahahahaha some teacher expects me to find a form to fill out.
That she gave us 3 weeks ago.
That's long gone.
 
@GregorMcGregor There's a meme about that?
 
2:15 AM
Oh and look, she was kind enough to put it online.
And it's a .doc!
Perfect.
 
Okay
This is what happens whenever I try to play around with template metaprogramming...
 
You’re not metaprogramming much.
 
Ahaha this is great.
 
Yeah I know
 
2:19 AM
Steps to Achieving an Emotional Health Goal
Man I have to make goals.
 
@Nooble No, that’s later. For now you have to take steps leading to setting yourself a goal.
 
@LucDanton I see...
 
I changed it but have absolutely no idea what I'm doing wrong. C++ templates are so confusing compared to non-C++ languages.
 
@Justin Some of those errors are pretty self-explanatory.
 
C++ is such a painful language...
 
2:24 AM
@Justin ++C is better.
 
But yes, I did find that some of my errors were obvious... and now I fixed them and I'm lost again.
 
Alright...
I need to add issues for HDR loader, switching to libjpeg/libpng, and...
... I thin that's it.
 
@Justin I can guide you on how to learn such errors.
 
@LucDanton That would be very helpful
 
The actual error is at the bottom, it’s the part with 'error:'. What comes before is the story of how we reached the point where the error lives.
> error: invalid use of incomplete type 'struct std::tuple_element<0ul, std::tuple<> >'
 
2:28 AM
wtb generalized switch with expressions as matches in C++
 
that’s a bit puzzling I’m sure, but consider that to access the only thing inside a 1-tuple you do std::get<0>(t). What do you do for a 0-tuple?
 
I wanted to assume that I never hit a 0-tuple...
 
Put another way, a 0-tuple has no elements and thus there is no possible I for which std::tuple_element<I, Tuple> is useful.
@Justin Right. Now that we understand (somewhat) the error, we look at the big trace that comes before.
 
Okay
 
When something like std::tuple_element is involved, a lot of the entries point to the Standard Library. What I like to do is find the last entry that involves my code.
> main.cpp:9:40: recursively required from 'static void Test<Tuple, curIndex>::test(Tuple&) [with Tuple = std::tuple<int, int, int, int, int, int>; long unsigned int curIndex = 1ul]'
that’s the one.
hang on I have to check something
Alright that’s unfortunate but the 'recursively required' part means there are some things hidden/not reported, and AFAICT there’s no way to 'expand' that
 
2:34 AM
Okay
 
Test<_, 0> requires Test<_, 1> (that’s the following entry)
 
Yes, I think I can see infinite recursion here
 
but in turns Test<_, 1> requires Test<_, 2> and so on
 
Yes
 
so you have to do some guesswork here but the bad std::get call (the first entry that’s not in your call) happens at curIndex = 6, can you gather as much?
 
2:36 AM
Yes
 
> usr/local/include/c++/5.2.0/tuple:844:5: required by substitution of 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >&& std::get(std::tuple<_Elements ...>&&) [with long unsigned int __i = 6ul; _Elements = {int, int, int, int, int, int}]'
the guessing in your guesswork being that Test<_, 6> is instantiated, which we didn’t intend
 
Okay
 
That’s the error :) Now you have to learn why.
 
Fun :)
 
Clang has similarly structured errors but doesn’t do the 'recursively required from' hiding, so you can compare.
Well, save for the fact that the error comes first, the instantiation trace second.
Clang+libc++, you get a static assertion
 
2:43 AM
Okay
 
All that instead of using a loop
 
@LucDanton Errors taking up 100 lines greatly amuse me for some reason
 
@GregorMcGregor wait... you can loop over the tuple?
 
Well I know the reason
But still
 
@CatPlusPlus Would they still be amusing if it happened to you :P
 
2:44 AM
@CatPlusPlus No -Wfatal-errors, it rambles on for a bit.
 
@Nooble Guess why I don't use C++
Among other reasons
 
@CatPlusPlus hehe
 
@CatPlusPlus 100 lines is nothing. I had some errors that were about 200 KB long.
 
@LucDanton Clang, king of errors
errorcoin currency of the future
I'm sobering up
That's sad
Also have to survive another 2 hours before I can buy food
 
@Justin No, but indices make everything easier.
 
2:48 AM
@CatPlusPlus Naturally, as time progresses, the errors have to be harder to get.
The difficulty must increase.
 
sucks... I'm required to use c++11
 
No-knowledge proof of goat sacrifice
lol C++ people moaning about having to use C++11
This is also amusing
 
171
A: "unpacking" a tuple to call a matching function pointer

Johannes Schaub - litbYou need to build a parameter pack of numbers and unpack them template<int ...> struct seq { }; template<int N, int ...S> struct gens : gens<N-1, N-1, S...> { }; template<int ...S> struct gens<0, S...> { typedef seq<S...> type; }; // ... void delayed_dispatch() { callFunc(typename gens

it’s what started it all
 
We still have loungecpp.net/cpp/indices-trick by Xeo probably
 
hungry
 
2:51 AM
f_them_all
@GregorMcGregor rip
Me too
I ate a pizza and oh god it was like 8 hours ago how does tiem go so fast
2fast2hungry
 
hed2achy
 
Eh, not that much
 
it is
 
Send foods
 
I want pizza now
 
2:56 AM
taking a break
 
Good night!
 
I want food too. Fucking 5am, need to wait until the store opens.
 
@Mysticial According to signal processing, Synthetic - Triponas (Analog Pussy)
 
3:12 AM
How did you?
 
Shazam, at least one option for such troubles.
From the album Disco Futura, 1996 (AP Records)
 
That doesn't seem like it. Or wait...
 
You probably want some remix of it or something
I'll try to sample at different points
Alright, it kinda went full retard the first time. I think this is it. Fast forward a bit. @Mysticial
 
oh wow
It's very similar.
 
The original seems to be a composite of a few things, no idea. The first part cannot be properly sampled to get the exact variant as the stupid turrets start chiming.
 
3:18 AM
lol
It's really that sensitive to the beginning?
 
Best way to get a match is to choose a unique part of the tune, for example that beginning which is kinda different. Although, that also introduces the possibility of finding the song from which that part was ripped. With vanilla songs, it is usually a quick match.
 
Finding the exact variant probably isn't necessary.
A name of the original is probably sufficient.
Unless it has a gazzilion remixes.
 
It's a catchy tune, so it often does get a shitton of remixes. For example, End of Line from Tron. I liked the Photek one, the Noise Boyz or something... And a third one. All had their own twist on the thing.
 
> A really interesting read.
The fact that I knew almost everything apart from the undefined swap behaviour makes makes me very sad.
humblebrag
 
If he would care to partake in a discussion of quantum field theory with me, I can make him cry if he so desires.
How did the core dump go yesterday? :P
Also, the compiler can't generate proper NEON instructions from intrinsics to save its life.
 
3:38 AM
Shazam seems very difficult to obtain for a Windows 7 user.
lol
oh well
 
Get it on the phone, best way due to the builtin mic and stuff.
 
When you ran it, it couldn't even find the original right?
I would think that there's enough "uninterrupted" melody in the middle to nail that.
 
i'll try again, sec
 
I need to get my Win10 sandbox up and running.
I spent the last few days fighting with Win8 to make it suitable for benchmarking.
Next up is Win10.
 
@Mysticial Matched one of the parts to TorynD Timeline (there are different remixes though when you YouTube it)
 
3:48 AM
I'm not getting any hits for "TorynD Timeline".
 
oh, a space
:)
Thanks, I guess I'll browse those.
 
Those classical aspects it is just not getting, always giving something with the similar bass line.
 
It's picking up the bass rather than the melody?
If I was better at this, I'd wipe out all frequencies below a certain point to isolate the melody.
 
Yeah, it is kinda overpowering it / dominating. I'd do that if I had access to Audition on this machine.
 
3:53 AM
There isn't much of the song without the hard base.
 
It may be just that it doesn't have a reference point for that particular remix in the database. Even these components found in it seem to have a small amount of "shazams" (people discovering them). Potentially, that composite with the pretty melody on top may be even more... uhm, hipster?
 
ah
 
Yup, pretty sure because it just gave Flo Rida GPDR or something.
 
:30 - :40 seems to be the only place without a hard base. And the melody isn't clear.
The melody is best at 1:30.
But the fucking base - matches everything.
 
i'll try one more time on 30 to 40
 
3:57 AM
:40 - :50 sounds like a remix repeat. So you probably won't get a hit for that. Unless the exact remix is in the system.
There's very a good chance this is a remix of some Japanese game music.
 
30 - 40 says that it didn't quite get that, basically no matches. Seems that you're on the bleeding edge of music. :P
 
Damn.
It's only 10 seconds though.
 
Yeah, it needs 15 seconds for a sample. Although, one would hope that 10 seconds are enough for a positive ID.
 
The best part is 1:55 - 2:20 probably has the strongest melody - which totally sounds like it's out of a game.
 
It's a classical tune, I think, maybe sehe can identify it and you can go from there into remixes of it. I've definitely heard it before.
 
4:03 AM
oh it is?
 
@sehe ought to be able to help, once the bear wakes up. He likes classical music a lot.
 
I don't think it's classical.
 
No idea, it's just terribly familiar to me, I can't put my finger on it. :/
 
It does sound somewhat familiar.
 
I can't continue the tune from the sample that I get in my head, but I can't attach a name to it.
Dafuq did I just say, I can continue the tune*. This is so annoying, I've got it on the tip of my tongue. I suppose this is how early Alzheimer's looks like.
 
4:28 AM
I don't know for sure, but it sounds like it's in G-minor.
At least the intro.
 
> Everyone knows that Word is the most horrific editor around, but oddly, everyone still uses it.
Biased much?
Eitherwho, I have to go on yet another adventure to add some 3/4 libraries to my repo to be vendor'd.
libjpeg(-turbo), libopus, libvorbis, and libflac.
And ASSIMP, as it turns out, because reading more complex binary files makes me hurt inside.
 
Yeah, the song is mostly in G-minor. The catchy melody at 1:55 switches over to Bb-major which is the relative key.
Do remixes often change the key of the thing that's being remixed?
 
4:57 AM
wow wow wow google maps added 3D to HK! very impressive
 
@GregorMcGregor Kinky.
I also figured out how to compile jpeg for VS 2015~ \o/
Everything in the world is looking up.
 
5:24 AM
@fredoverflow lol
 
@GregorMcGregor Hmm, I might have to revisit my tool for extrapolating that 3D data, seems a lot of the cities now have a more consistent visualization model.
 
5:53 AM
@ElimGarak negative
@ElimGarak closest i can come up with is Tiring tomba or whatever that's spelled
And that's arguably a folk song .I'm missing key elements though so I wouldn't call it that
 
hi guys, can you help me with my problem?
I'll be implementing a hashmap table to act as a lookup table for my log module.
 
problem = solved
 
@ThePhD is using a hashmap the best way to implement a lookup table?
 
Don't know what your data is.
Can always do std::map or just.. index into an array.
 
6:08 AM
i'm planning to have characters for my key. e.g 'A' which has a value of "Forward_HighSpeed". My values are string of characters on how a cart will be moving. @ThePhD
 
std::map sounds just fine for that.
Even linear search would be fine.
You're never going to have more than 100000 key bindings and chars representing keys are not going to ever be expensive to compaare.
 
thanks @ThePhD. btw, is the datatype "auto" already deprecated? i'm using this site for my reference and i'm not sure about the use of "auto" en.cppreference.com/w/cpp/container/map/find
 
auto is for letting the compiler figure out the type of a variable.
 
ooooh, thank you so much! @ThePhD
 
int a = 2;
auto b = 2; // int
auto doesn't figure out EVERYTHING, however, and strips off reference semantics.
int a = 2;
int& aref = a;
auto b = aref; // `int`, NOT `int&`
auto& bref = aref; // bref will be an int&, because you made it that way
auto replaces just the name, not any qualifiers or decorations.
 
6:14 AM
Very helpful @ThePhD. Thank you so much. I'm really new in c++. So that helps me alot. Thanks!
 
Xeo
6:31 AM
@ElimGarak big update coming this week btw
 
I just closed an issue with "Please read the documentation"
How snarky is that?
 
On your way to become the next Ulrich Drepper
"Broken as intended"
 
6:55 AM
@Rapptz Same as RTFM, I would say
 
Sucks cause my code is well documented :smirk:
opening an issue because you didn't read the docs is super lame
 
You could have written "Hi, as stated in the documentation, [obvious evidence that you're an idiot and haven't read it]"
 
Aww yiss
libjpeg submoduled and building
 

« first day (1816 days earlier)      last day (3136 days later) »