« first day (4002 days earlier)      last day (961 days later) » 

1:34 AM
 
 
1 hour later…
2:55 AM
4
A: C++ Convert string (or char*) to wstring (or wchar_t*)

Alen WeskerYou can use boost path or std path; which is a lot more easier. boost path is easier for cross-platform application #include <boost/filesystem/path.hpp> namespace fs = boost::filesystem; //s to w std::string s = "xxx"; auto w = fs::path(s).wstring(); //w to s std::wstring w = L"xxx"; auto s =...

LOL
 
Still better than what C is packing, right? *:p*
`btowc(…)`, `mbrtowc(…)`, `mbsrtowcs(…)`, `mbstowcs(…)`, `mbtowc(…)`, `wcrtomb(…)`, `wcsrtombs(…)`, `wcstombs(…)`, `wctob(…)`, `wctomb(…)`
(alright, why does formatting only sometimes work?)
 
 
2 hours later…
4:44 AM
I know how to rotate objects well... :thonk:
 
5:22 AM
and this is what you get when you use Pythagorean functions and StackOverflow
 
 
3 hours later…
8:47 AM
Morning
 
nwp
8:58 AM
Remember that time when gifs besides Sparkly Bjarne and Forest "initialization order" Gump were banned?
 
The rules haven't changed, there's just nobody willing to enforce them :p
In case of abuse, actions will be taken
 
*confused
 
There used to be rules pinned in the starboard when this chatroom was still very active
And one of the rules were "no animated images allowed" save for a few specific exceptions
 
nwp
Apr 3 '18 at 9:05, by nwp
“Know the rules well, so you can break them effectively.” - Dalai Lama XIV
So long ago.
 
tbh it would be fine if the chatroom had an option to not play them automatically
 
9:04 AM
So, if someone say.. wanted to showcase a video of something C++ related (like some code or a project), they'd have to share a link instead of just posting an embed? 🤔
 
Video embeds are fine because they don't autoplay
The rule was mostly there to avoid spamming useless animations and prevent abuse ^^'
 
Guess that's fair 👍🏾
 
Which is kind of important considering some gifs might affect differently people with epilepsy among others
 
and some may be explicit?
Since there's less active users on here, I guess there's less of a need for enforcement (trolls don't usually wreak havoc "empty" chatrooms)
 
nwp
Your gifs are just so dark it's difficult to see they are animated without clicking them-
Inb4 You don't have a darkmode userscript installed?
 
9:07 AM
plus they're animated slowly, so it's ok, they don't feel annoying or like a slap in the face
 
Oh? That's a C++ project about rotations... maybe picking a dark window background and animating based on keyboard input wasn't the best idea 💭
(was wondering why the first rotation was so wibbly-wobbly)
 
 
2 hours later…
10:39 AM
 
🗑
 
nwp
Lmao
 
@Morwenn done
@Lapys should I use the unfriendly bin next time?
 
Lol, nah. We're all friendly after all 🙂
 
nwp
Except you. Rule breaker.
 
 
2 hours later…
12:25 PM
tfw I say "it's fine" and it still goes to bin
 
nwp
Time to deown.
Disown?
One of those might be a word.
 
That would be disown
But I'm not really into disowning people, despite the high potential in this room :D
I'm gonna have another coffee instead
 
nwp
Now we just need Mgetz to disown you for failing to enforce the rules and we might have some drama.
 
hmm?
I was half doing it to be pedantic
 
Imagine drama in The Lounge<C++>
 
12:35 PM
and half doing it because I hate gifs
 
nwp
We're gonna lose smurf privileges otherwise.
 
and just a tiny bit doing it because why not?
 
Can I setup static IP on a mobile router or it depends?
 
12:59 PM
depends on carrier
some offer that, most don't
 
nwp
Someone wrote move constructors/assignment operators for a class that inherits from QObject. Now I'm ripping the whole library apart in an attempt to fix it.
This will be a fun code review.
"So, care to explain why implementing adding some numbers touches the entire code base?"
I probably deleted a thousand lines of code. Turns out nobody actually used any move functionality.
 
I didn't think qt was particularly move friendly anyway
 
nwp
It makes sense for QObjects because of connections. Those would be an even bigger pain to implement when the thing you're emitting a signal to is being moved by another thread.
Is there a way to get git log stats without committing?
 
nwp
1:42 PM
Meh, it's actually only 397 deletions. I guess deleting 20 lines still only counts as a single deletion.
 
nwp
1:53 PM
Help, my code is slow.
(Yes, I'm profiling debug code. Sue me.)
I'm still annoyed we fix busy loops with a sleep.
 
2:09 PM
I mean technically that's valid on an RTOS?
It's no different than asking a PIC to wake you up
 
nwp
2:29 PM
It's a Windows Qt application.
 
then yeah... that's really bad
 
nwp
I don't understand what it is displaying. main takes 23.69% and apparently counts as external code.
 
I mean unless you're doing everything in main... that's not really a useful metric?
because main is a root
 
nwp
It's useful to show that 100% CPU spent in external code is incorrect.
 
 
3 hours later…
6:08 PM
use something like kcachegrind to actually navigate the code
 
 
1 hour later…
7:13 PM
@Lapys problem is that all these utilities rely on some weird global state for even weirder reasons isn't threadsafe :-)
 
@Mikhail Somehow I get the feeling somebody isn't being quite completely honest here. Or maybe he's quoting number for "if you're god's gift to the programming world, you could theoretically receive a bonus that would make your salary up to this high" ?
 
@JerryCoffin or maybe the world is fucked
fucked
fukt
I mean my students make more than me. And I have a real job now.
Do I need to spend hours leet coding to write glue for a Chinese psyop? Possibly neglecting my current work and family?
 
@Mikhail It's certainly been a problem for years that newcomers end up making more than people who've been there for years--sometimes even decades. But somehow, I find those numbers hard to believe. If they're real, I need to find a new job...
 
@Camille Goudeseune FYI I just left Urbana :-)
We used to have a few people from UIUC on chat
 
8:20 PM
I thought I'd goto Urbana, get a degree, and get out. Thirty years later... :)
Not like I need more chat rooms in my life, but hey, let's give this a try. I'll at least lurk here for a while, get a feel for the place. Good to meet you, Mikhail.
 
8:36 PM
Hi
I'm going to sleep soon.
 
👋🏾
 

« first day (4002 days earlier)      last day (961 days later) »