« first day (3344 days earlier)      last day (1587 days later) » 

12:45 AM
@sehe I'm just happy to see you around. You're one of my gurus, heroes or giants.
 
@CaptainGiraffe The polar bear we all aspire to imitate reasonably well.
:48090341 Are saying you dat sum of whut I say ain't said so goodly?
 
 
2 hours later…
2:51 AM
I'm doing C++ again
for a few hours
@Morwenn give me some music
 
 
2 hours later…
4:29 AM
That feel when you can't insert //ಠ_ಠ because your source isn't Unicode
 
 
2 hours later…
7:03 AM
@Mikhail // ô_ô
should be fine in latin-1
pretty sure ascii extended can do that too
 
7:24 AM
Looks like surprise rather than disapproval.
I wonder if there is bullshit way a lambda can inherit from std::unary_function<std::string, bool>
probably should also be by constant ref
 
user7659542
7:51 AM
Could it be that when having a multithreaded application where they share a semaphore, the distribution of the semaphore is done unfairly?
 
user7659542
Ie always the same thread receiving the semaphore
 
What you wrote almost makes sense, specifically its clear what you mean by thread receiving a semaphore...
Certainly if you keep calling cv.notify_one() you can land on the same thread a bunch of times.
 
user7659542
I know. I mean by that that the semaphore has a value which allows the thread to continue its execution
 
also you sound like you're using pthreads which is lame, switch to std::thread ASAP
 
user7659542
@Mikhail what is the solution?
 
user7659542
7:53 AM
@Mikhail Yes, writing in C at the moment
 
If you have a producer consume model, with two listening threads but the work is consumed faster than it is produced, its perfectly fine for only one of the consumer threads to ever be active.
 
user7659542
Well to be more precise a shared HW resource has to be shared by two processes (each having two threads, one for reading and one for writing). The ressource is a driver and I try to serialize accesses by using semaphores inside the driver.
 
did you understand what I wrote about the producer consumer?
 
user7659542
@Mikhail Yes, but I am affraid, if I am not mistaken, here it is the other way around. Ie more produced than consumed
 
As long as both threads are doing work you're fine....
 
user7659542
7:59 AM
@Mikhail Issue is because one thread doesn't have access enough accesses or access quickly enough, there are big timing issues
 
user7659542
I think this is happening because of the semaphore being handled unfairly
 
Maybe you have a bug where the lock/serializing function isn't released until after the work is complete :-)
happens with pthreads because its not RAII
AKA
take_lock()
item=get_work_item()
work()//should have un locked(!)
unlock()
 
user7659542
OK, I see. No, I have the impression this is done fine. The system I am working on uses a round robin scheduling mechanism. So I **believe**:
- thread 1 takes the lock does its work then gets preempted.
- thread 2 now tries to lock, but has to wait as it is thread 1 who owns it
- thread 1 runs again and continues its work. But before being preempted again it takes the lock again, and now gets preempted
 
user7659542
so ressource starvation in some sense
 
user7659542
This is what I think might be the issue. But not sure what a solution to this is
 
user7659542
8:06 AM
thread 2 never manages to get the lock
 
user7659542
Hmmm... maybe I should yield every time after relaasing the lock...
 
9:18 AM
Can templates be used for libraries? For example say I have a class where the methods can either take type long or type mpz_class from the GMP library. Could this be accomplished using templates? Or do they only work for types not from a library?
 
 
2 hours later…
10:58 AM
@LucDanton thoughts and prayers
@northerner Only if you ship the template definition in your lib headers
@Mikhail Only bullshit ways (unary_function and friends are obsolete since c++11). template <typename Lambda> struct bullshit : Lambda, std::unary_function<std::string, bool> { using Lambda::operator(); };
 
12:01 PM
Local animals share a lot in common with peddlers in a busy market - they are all experienced in judging your facial expression and body language in order to figure out how easy it is to get things they are after from you.
The cat in my avatar, I only met twice. Both times the cat were casually walking right in front of me, not too far, not too close. Both times, the cat got what it wanted - a good pet.
 
12:30 PM
Is there any online c++ quiz or so ? Something that could test your theoretical knowledge on c++, for example: "What's wrong in this code ?" or questions like that.
 
nwp
12:55 PM
Sure. Most of them are bad though.
 
@nwp Do you know any good one ?
 
nwp
I kinda like Deep C, but it's outdated.
 
@nwp
 
nwp
GOTW is probably better.
 
That's something for a start.
Do you use GOTW?
 
nwp
12:58 PM
I looked through it at some point. Not sure about using it.
 
Ok thanks :D
 
nwp
Oh, you can play my game. It's a terrible way to try to learn or test knowledge, but it exists.
 
I sure will try it. Anything , no matter how terrible it is , could help
 
nwp
If you actually want to learn something make a project instead. Make a pong clone or something.
 
@nwp I'm actually doing a project for my AI class in c++ in fact. I will be simulating a player that plays hexapawn.
Really simple game.
I was looking for more tests based on theory.
 
 
5 hours later…
5:56 PM
@nwp dcmtk is keeping the raw data in memory and when save is called then it writes the dcm file to disk. If I am writing a huge file, it eats lot of memory :(
 
nwp
I don't know. Use a computer with a lot of memory. I don't think there are better free versions available, but there are a few commercial ones.
Or maybe you can find a flush somewhere.
 
 
2 hours later…
7:36 PM
Hello all... I'm trying to get a C++ application working in Visual Studio and eventually begin extending its features. Please take a look here: stackoverflow.com/questions/59309464/…
 
@Mikhail sorry, I was long asleep when you asked for music x)
 
8:05 PM
@Morwenn How dare you prioritize your own sleep over our desire for new and interesting music? :-)
 
@Morwenn That's seriously dense living.
 
@ElHaix Have you seen the famous Monster Building in Hong-Kong? :p
 
no
 
Or for an older example, Kowloon Walled City
Which was supposedly the most densily packed living area in the world some point
@JerryCoffin music I share isn't always new nor interesting :D
 
looking them up now. WOW
Could you live like that?
 
8:09 PM
I'd rather not
 
Yup
Intense
 
But sometimes it's the best alternative you have
 
True. Just the bare minimum to sustain. No baby grand piano in your pad
 
Also if we want to preserve nature and fields we have to live packed
If I had to live in such concrete blocks, an Unité d'Habitation would be my choice :p
 
Any chance you can give me a hand with that scrcpy C++ project??? :)
 
8:12 PM
Or random old apartment blocks with bold designs if they weren't already known for insecurity
 
@ElHaix Nope, and it's bad etiquette to ask here
 
scrcpy?
 
It's an Android mirroring application
There's a VS extension which doesn't expose code/features. I'm trying to extend scrcpy in Visual Studio - pref. through C#
What about the Dhavari Slums... even worse!
 
8:28 PM
Sounds like a bunch of techs I don't use x)
 
8:46 PM
meh
I'm guessing the best way for this is to port it over to a C# application
 
8:58 PM
@Morwenn While not always to my liking, I've always found them interesting (though I've probably missed listening to at least a few of them).
 
I haven't shared much music here since I've moved to Discord :/
 
@Morwenn Yeah, I've noticed...
 
But back then it was easy: the music quickly disappeared into the void of the active chatroom :D
Now I risk having them take of quite some space in the room for a few hours
 
@Morwenn ...just like everything else we post nowadays.
 
Yeah, but what seemed like a minor inconvenience back then almost looks like a waste of screen space today x)
Also I wish I had that much interesting musing to share
But reality is more boring :p
I will at least link this one: youtube.com/watch?v=jt_XDD8Gzt8
A special one because I named my latest cpp-sort release after it :p
 
9:08 PM
Here's a trip for you...
Keep that one playing, lower the volume a bit, and play this one in another window at the same time: youtube.com/watch?v=dPqCRyzhXn8
 
Actually I'm already playing something else x)
> Time to stop reading the comments and get back to whatever productive thing you were planning to do
XD
 
@Morwenn Unfortunately, I'll have to wait until I get home tonight to listen. And (horrors) we have a company party tonight, so it'll undoubtedly be pretty late before I get home.
 
> I play this and various other frequencies to a group of high school students
Yes, that's called music
@JerryCoffin It's ok, you know that you can always find it by looking at my library's releases page :')
 
@Morwenn But can I find the library? (a few iterations later: what makes you think I can find Google?)
 
You're missing out, I try to pour some love in my release notes :'(
 
9:23 PM
@Morwenn Yeah, I've missed out on a lot of things, most likely. I lived through the '70s, '80s and '90's, but I'm afraid I never really properly experienced any of them...
 
If I'm lucky I'll become a pile of regrets like you :')
 
@Morwenn Oh, I'm not sure I regret it, exactly. I certainly don't regret never having done the disco thing, and I don't think I regret my lack of drug use either. But quite a few seem to think those were essential elements of really experiencing those decades.
 
 
2 hours later…
11:11 PM
lolwut - someone fixed the announcer badge calculations in SE I gather stackoverflow.com/help/badges/260/announcer?userid=85371
I suddenly got over 20 new announcer badges awarded (supposedly from older dates though)
 
Yeah, I just noticed too--around 30 of them.
 
same. badge count doesn't seem to have gone up for me though
 
I can't tell, because I don't track what number it was at previously
 
They awarded them for posts that I already had them from.
I got 9 of them. But if you subtract 9 from my badge counts, I'd have more silvers than bronze. And that was never the case.
 
Ah
Yeah I guessed the awarding had been broken, and the algorithm yields the first valid award date for it. But maybe it's just a bug that spews redundant notifications
 
11:15 PM
I have little idea what badges are & I wouldn't know if I got additional ones.
 
Oh you'll know because you get spam
 
I developed mental ability to filter spams. :x
 
Hold on:
12
Q: Missing publicist badge?

aioobeI've had a link on my webpage to one of my StackOverflow answers for a long time now. For fun, I track it with Google Analytic events, so I know for sure that I've received more than 1000 clicks. Yet I haven't even gotten a booster badge for it. Here's a screenshot for the click events from Goog...

You can now get the badge multiple times on the same Q if you link different posts.
 
@TelKitty Oh me too.
Nov 16 '15 at 16:30, by sehe
3 hours ago, by sehe
I also don't need ad blocker because I simply don't see the ads
 
Looks like I got no achievements on SE lately.
How to be on a website everyday without achieving anything.
 
11:18 PM
Well. I hit "show posts" on your minified chat avatar just now. That's an achievement
 
Even a small achievement is still an achievement... :-)
 
I just got a few such badges too
Even one on Arqade apparently x)
 
@Morwenn One to add to the wall of shame.
@sehe What is this "spam" of which you speak?
 
@JerryCoffin just this, nothing too obnoxious, but very noticeable
 
@JerryCoffin you don't seem to realize that back then I wrote a blog post for them :D
 
11:31 PM
@sehe Ah, so you actually did see it.
 
SE literally treating all users like guinea pigs nowadays.
 
@Morwenn Yup, I'm pretty sure I was quite unaware of that.
 
@JerryCoffin ahahah - yeah, it's not obviously ads. I mean, I started to be more conscious about what's in the periphery after (a) my coworkers would be make comments (b) I had children and imagined things with their eyes sometimes
So, the way that works for me is I focus on the information area. Anything that doesn't seem information is invisible. This also means that I used to take ages to navigate e.g. online banking sites. Lately, the UX design has been picking up a lot though
(the SE notification box is designated non-spam in my mind)
 
I got a badge for sharing a link to a question ... I had no idea I shared that link or where I did that..
 
If you click the share button you get an "earmarked" link so they can attribute any visits to your share
 
11:35 PM
I'm going to sleep, nighty
 
Sleep well
 
(don't go to sleep it's a waste of time)
2
 
@sehe I've had problems with that myself now and again. I was reading an article, and my wife got rather upset about the possibility of our children seeing some click-bait I hadn't noticed at all.
@Morwenn The main reason we make productive use of our time is to be able to have at least a little left over to "waste".
 
@JerryCoffin It was an old meme: sehe used to repeatedly ping some guy with a sentence along this one a few years ago
 
May 27 '12 at 23:07, by sehe
But you're not going to sleep.
I bet you think sleep is a waste of time.
And then a zillion copies of this
 
11:38 PM
@Morwenn Yeah, I vaguely recall that. But I still often find it amusing what we consider "wasted" vs "productive".
 
@sehe Yeah, that's the one I had in mine
I don't even have memories of Radek
 
She's Elyse now
 
oh, rightfold? x)
 
Sep 21 '15 at 8:04, by Tony The Lion
@ElimGarak Daknok == Zoidberg == Elyse == Rightfold
And MANY other names.
Only to be outranked by "Cicada"
 
I didn't even know about Daknok and had forgotten about Radek
Right now it's « For instance, »
 
11:46 PM
lol
 
@Morwenn Have you checked that in the last 30 seconds? If not, I probably don't trust it...
Oh, apparently they weren't quite done with the recalc yet when we posted about it earlier. I have notifications of another Announcer and a half dozen Booster badges...
 

« first day (3344 days earlier)      last day (1587 days later) »