« first day (2341 days earlier)      last day (2609 days later) » 

3:00 PM
or I could compare myself to Robot
but I agree with Jerry, those things are neigh impossible to do fairly. Those sites that compare prices will show different pricings for just about everything based on location, and by pricing I mean relative to income after taxes
 
@sbi Wouldn't surprise me at all. But it's a little difficult to say how much of that is due to locale, and how much to being single with no dependents. If it were just me, I could rent a place of a quarter what I do now.
 
but in the end, I think it's a bit more favorable to be young and kidless in the west and to have a family in the east
 
sbi
@BartekBanachewicz FWIW, I spend 30% of my income on rent, and I am living in a subsided state-owned apartment where the last rent-raised was limited (because we raised hell and) because I cannot afford to pay more. If I wouldn't have kids, I would need to spend more on housing, which would leave not all that much more money to spend on non-essentials.
 
@sbi should have thought about that 20 years ago when you thought it would be nice to have kids :P
 
@thecoshman I don't think he regrets having kids
 
Xeo
3:02 PM
I spent 45% on rent, but only because I have two flats~
 
sbi
@thecoshman Oh, 20 years ago I thought it would be nice to have a kid. Then life happened. :)
 
frankly I haven't met a single person that would say they regret having kids yet
@Xeo lol, why?
 
sbi
@BartekBanachewicz When asked I always say "I am not poor, I just do not have any money."
 
@thecoshman Most youngsters think that kids are the price you pay to have a wife. At my age, you've realized that the wife is the price you paid to have kids. I, for one, don't regret having kids at all.
 
sbi
@BartekBanachewicz I suppose he has an apartment in Berlin. (@Xeo?)
 
Xeo
3:04 PM
@BartekBanachewicz Cuz my gig here in Hamburg is temporary, I'm going back to Oberhausen / Duesseldorf prolly around September
 
FWIW I still feel bad for not leaving that tip to that girl in Berlin
@Xeo oh I see
 
Xeo
@sbi lol nope
 
sbi
@Xeo Oh, you're in HH now?? I must've missed that!
 
I suppose you're still getting net gain out of it though?
 
oh dear, I didn't realise we had used up our allowance of sarcasm
 
Xeo
3:04 PM
whenever I'm in Berlin, I just crash at my parents' place
@sbi Since last July
 
@BartekBanachewicz Do you really think we can afford 50k€ audis?
 
@Xeo you are what is wrong with this world, you owe me rent!
 
@Rerito I think it's easier than in here
 
I'm considering buying a car and I have a 5k€ budget (funded by a 2 years loan)
 
Xeo
@thecoshman Why, because our rent isn't increadibly expensive over here? :P
 
3:05 PM
Which only gets me crappy second hand cars...
 
sbi
@BartekBanachewicz That's why we think you're a fool.
 
@Rerito average income in Poland is about 694eur net/mo. An average car bought here is probably around 1-1.5k eur
 
Xeo
(Personal thought: I think it's actually pretty amazing that I can hold two flats and still save up money every month)
Also, when I'm back to one flat, I'll have so much money left over...
can't wait
 
@Xeo You are going to be the first to hang on a lamp post when Bernie or somebody like him wins presidential elections. :)
 
@Xeo because you have two rents, and that's the sort of shit that drives up prices
 
3:06 PM
@sbi I thought you thought I'm a neoliberal :D
 
sbi
I didn't know about Ctrl-K. Anything else you added to the Rules™? I didn't see anything while skimming the page.
@BartekBanachewicz They are synonyms.
 
anyway, time to get home I suppose
@sbi served on a silver platter
 
Xeo
@sbi I think the rules haven't been touched in a looong time
 
@sbi que?
 
@BartekBanachewicz Well I can assure you getting a car "in the west" is still a PITA
I'm much better off walking if you ask me
 
That's why I lift weights, so I can carry my groceries /cc @AldwinCheung
 
Xeo
well, shows what I know
 
@sbi I presumed that was a bluff
 
nwp
@sbi supposedly that wasn't a rules update, just that room owners are advised to move questions to the Q&A-room instead of the trash
 
@Rerito there's still this thing that like 90% of cars in Poland are imported used from Germany
 
sbi
3:09 PM
@nwp ??
 
@BartekBanachewicz you poor things
 
@BartekBanachewicz Here it's more of a local market where you buy your used cars from the local thieves
 
sbi
@BartekBanachewicz There's still the resentment in Germany that this is a special case of "importing". :)
 
nwp
Mar 8 at 15:31, by sehe
So, no, @Hamza, the rules never changed. And yes, the target for some moves has been improved for you. Win win.
 
user1804599
Apparently 14 March is also steak & bj day
 
@sbi haha
yeah, those jokes still run around here as well
 
sbi
@ratchetfreak Ah, I see. So that room is still alive and kicking? Wow. That's the first out of what's probably a dozen attempts to setup a C++ Q&A room.
 
Xeo
"With global warming, what kind of changes are we going to see with the poles?" - "They'll only steal cars with air conditioning?"
17
 
sbi
LOL.
 
@sbi yeah
 
sbi
3:13 PM
@ratchetfreak Well, Congrats to whoever set it up. Quite an achievement!
 
there's usually a question or 2 per day there
 
Xeo
Prolly helps that we're consistently moving stuff there
which I don't think was really happening before?
 
sbi
@Xeo Most of those who setup C++ Q&A rooms where those who stormed out here in anger, and thus didn't try to cooperate with this room's inhabitants.
 
Xeo
yeah
 
sbi
Well, since I will go to the movies with one of my sons tonight, I might have to get back to working now. :-/
Bye!
 
3:16 PM
 
I'm often unsatified with reviews on CodeReview these days :/
 
nwp
@Morwenn Not complete enough?
 
@nwp More like not really interesting, and mostly about style (at least it's how I feel when I read them).
 
without really knowing what it's going to be used in that's about all you can review unless it's really bad code
and really bad code tends to be closed for being incorrect
 
Sometimes you can semantically improve algorithms, or spot subtle errors.
My code can't be bug-free, can it?
 
3:30 PM
@Morwenn No. Your bugs are just so subtle that nobody can see them. :D
 
nwp
@Morwenn Not efficient for rep-farming.
Though I guess code-reviewers care less about that.
 
@nwp Those are the most satisfying to find though :p
 
and question volume isn't really that big
 
@wilx Weeeeell, I fixed the not-so-subtle ones, then decided to drop the function on CodeReview just in case I missed any bug x)
 
nwp
I haven't played with code-review for a while now, I should look into that again.
 
3:34 PM
Fucking Facebook. I just checked with private browser instance and my long comments do not show up.
 
@wilx why were you waning to your own words?
 
nwp
@wilx I think the term is "hell banning"
 
@nwp or shadow banning
 
@nwp But I am honestly not being offensive or pasting links. I have just written two paragraphs and added two more with quotes from my sources.
 
Facebook does hell banning?
 
3:38 PM
Facebook isn't really like a forum.
 
Well, revised comment without the source quotes does show up.
 
More like a recommendation feed.
 
@wilx Are you arguing with someone on Facebook
lmao
 
@Nooble Yes. :( I know!
 
Ell
Isn't it called a shadow ban?
 
3:46 PM
Does Facebook put perceived spam up for moderation to the owners of the FB page?
 
Meanwhile, FB displays ads for obvious scams (I get the market investor kind of ads all the time)
 
I haven't seen ads in years
 
@AldwinCheung You would recognize them if you had seen them. You think mutexes are semaphores!
 
wow did I miss an episode of bartek
@wilx Mutexes are indeed a special case of semaphores, yes
Isn't that common knowledge
 
4:06 PM
@AldwinCheung Yes you did
 
@Morwenn Those are the easiest to write, especially if you don't really understand the code.
@AldwinCheung Given that "mutex" is short for "mutual exclusion semaphore", I'd certainly hope it was, but I've been disappointed before...
 
mutexse
 
@AldwinCheung I do not think this is true. At best it is misleading.
Binary semaphore can server as a non-recursive mutex. Mutex cannot serve as a binary semaphore.
If anything, semaphore is a mutex in this single case. In all other cases like recursive mutexes, read write mutexes, semaphores cannot be used instead. And vice versa, if semaphore is not binary then mutex cannot cover its semantics.
 
4:29 PM
@wilx That means it's a special case.
 
@R.MartinhoFernandes What is?
 
The non-recursive mutex.
@sbi Yeah.
 
@R.MartinhoFernandes OK, what follows from that in regards to the truthfulness of the mutexes are indeed a special case of semaphores statement?
 
@wilx I think you two just mean different things with "mutex". It's one of those nouns that can stand for a category or for a particular member of that category.
> FIDO's specifications are public and available for anyone to read and
analyze. But only FIDO Alliance Members benefit from “the promise” to
not assert patent rights against other members’ implementations
Hmm, U2F :<
 
4:45 PM
@R.MartinhoFernandes Mutex is well defined concept both by actual implementations and by theoretical papers. The IS-A relationship only holds in one specific and very limited circumstance and only in one direction. Both mutexes and semaphores are synchronization primitives but the two are not interchangeable.
 
@wilx "is a special case" doesn't imply they're interchangeable.
@wilx So, how do Windows mutices compare with POSIX mutices?
 
@R.MartinhoFernandes They are similar in function and features. What are you fishing for?
 
Maybe that wasn't a good example.
Ruby mutices are certainly different.
My point is that you'll find many different things under the name "mutex" out there. I'm not sold on well-defined concept.
 
@R.MartinhoFernandes Link?
 
4:59 PM
@R.MartinhoFernandes There's also the slight matter of Windows mutexes being cross-process
 
@Puppy POSIX mutexes can be cross process too.
 
@Puppy Yeah, that was my original thought, but there's process/thread equivalence.
@Puppy Also, the driver API mutices are not cross-process.
 
@R.MartinhoFernandes It is silly to refer to it as semaphore. It clearly implements what I have described as mutex and not what I have described as semaphore.
 
@wilx Yeah, but that's no true Scotsman.
 
@wilx ...and since I have chosen to describe it that way, the whole world is obliged to follow my example.
 
5:02 PM
If you follow the principle of charity you would use @AldwinCheung's description to interpret @AldwinCheung's statement.
 
@JerryCoffin FFS, Ruby is the odd one out.
@R.MartinhoFernandes And we are back to our previous discussions on how people cannot just use words willy nilly as if they had meanings as is convenient to them at the time.
 
@R.MartinhoFernandes There are also critical sections, for when you want a process-specific thingy that provides mutual exclusion semantics (struggling to avoid saying it is or is not a mutex, as such).
@wilx I guess I should have included a smiley there (but I'm perfectly fine with treating Ruby as wrong, under almost any circumstances).
 
@JerryCoffin No, I am dead serious. It was stupid from the authors of the Ruby manual to use the word semaphore in the example.
The only acceptable interpretation of the word semaphore in that context is if they literally meant traffic semaphore. But with the existence of synonymous synchronization primitive it was stupid to use it that way.
 
FWIW, there are other meanings of semaphore.
There are other meanings of semaphore more commonplace than "traffic light".
 
Ell
when somebody says semaphore I think of the flags
 
5:09 PM
Right.
 
@R.MartinhoFernandes Us being landlocked, it is not one of the meanings that comes to mind. I know though there are/were semaphores used to rely messages.
 
@wilx That doesn't make it wrong by definition.
 
@Ell I think of these things (i.e. the clacks), there’s a mix of low tech simplicity and seeming impracticality about them that fascinates me
 
Ell
oh hey I didn't know those things were real!
that's awesome
 
5:19 PM
@Ell just like giant space turtles
 
Ell
heh
 
@Ell bonus: a similar Rube Goldbergesque approach of 'let’s give it mechanical flailing arms' but this time applied to power transmission
 
@JerryCoffin IMHO, Win32 API critical sections are mutexes.
 
> Free market = literally no corporations
> Free market = zero taxes
Haha, I hit a gold mine.
 
Ell
5:42 PM
@LucDanton awesome
it's like fantasy, but real!
 
Anyone have a minute to talk about what tags a question should be tagged in?
 
sup with it
 
5:57 PM
It is tagged as C++ but it is basically C. Not sure how to tag it though as it does have a couple C++ things in it. The OP is writting C code in MSVS so they have a couple C++isms since MSVS doesn't support C.
So it is C++ as C
 
so it's just c++ then, just probably bad c++ :)
 
Tag it with what the OP intends it to be. And if it has any C++ in it, keep it C++.
 
:)
Comment from the OP:
@NathanOliver I'm doing C but people got angry at me for labelling it as C because it had a few C++ things. From what I know my lecturer considers this C. I don't really know any C++ features. Sorry — FruitJuice 19 mins ago
 
To summarize: Everyone's a pedantic idiot.
 
Yes
I just want to get them in fron of the right people and I know at lot of people are going to give a C++ way to do it and I do not think that will fly.
 
6:02 PM
Wait, I don't see any C++ in that question.
 
The cast of malloc and the headers.
 
The cast doesn't count since that's valid in C. But the headers are true.
 
So it is valid C but not advised? I see a lot of C people saying never cast malloc.
 
You know what the right thing to do is? Tag it both and ! ahahahahaha
 
@NathanOliver Yes, it is valid C but not advised
 
6:04 PM
Cool
 
@NathanOliver I usually do it anyway since if I'm writing C, it doesn't take much effort to make it compileable in C++ as well.
 
I'm not exactly the kind of pedantic asshole that will intentionally try to block a C++ compiler for something that otherwise works with it.
 
@Mysticial The world is doomed
 
Well I'll just leave it as is now.
or maybe we tag it as
 
6:10 PM
Admittedly, I have used cout printing in an answer for a question tagged with only . But that was for a performance question and the printing was just to print the timings - IOW, irrelevant to the question.
I don't think I got downvoted for that.
Oct 14 '16 at 23:43, by Mysticial
So I'm reading some old flamewars about whether to cast the result of malloc(). The opinions are:
- You should never cast because it's unnecessary in C and it's morally wrong to do so.
- You should cast if you intend to compile in for both C and C++.
- You should never compile as both C and C++ because they are completely different languages and it's morally wrong to even think they are at all similar.
- You should use preprocessor:
Oct 14 '16 at 23:43, by Mysticial
#if __cplusplus
    int* ptr = (int*)malloc(size * sizeof(int));
#else
    int* ptr = malloc(size * sizeof(int));
#endif
 
lol
 
Nice
 
@Mysticial We can help correct that oversight.
@Mysticial If you use the preprocessor, at least do it decently.
#define NEW(T, N) ((T *)malloc(N * sizeof(T))
char *x = NEW(int, 10);
(and feel free to define it without the cast in C, if you prefer).
 
> char *x = NEW(int
@JerryCoffin yeah
also "my solution" improved from the one in the transcript coliru.stacked-crooked.com/a/0cb182b65aec1d8b
 
@milleniumbug Anytime I post C snippets, I feel morally obliged to do things a C++ compiler would have caught, but a C compiler wouldn't (though with the cast, it actually would in this case).
 
Well thanks guys. I'm off
 
6:57 PM
@Puppy Hey, we're hiring, and on the plus side you'd get to keep the same monarch!
 
7:10 PM
that's not really a side, plus or minus
 
Xeo
7:50 PM
@EtiennedeMartel We're closer tho!
 
8:24 PM
^^ lol
> @rmunn - Don't mistake me. I know my requirement. First of all I will work for my requirement and I implemented what I need. This is a one of the module I need in my implementation. Yes of-course I know the said JSON will produce Warning, but its not a In-valid JSON. while on parsing in JavaScript, it will take the last value. What you people are trying here.
> I know my Question and Answer is almost 40+ down votes. But I don't care about you people. Why you people are behaving like a dictator. I fully satisfied in my answer. I'm speaking in general. I don't have any wrong in-tension to hurt you – B.Balamanigandan Feb 24 at 19:46
 
@Mysticial OMG new record
 
can't get. it.the question looks clear.
 
You don't have the rep to see that deleted answer.
Oh and title of the day: /cc @Borgleader
-12
Q: Suggest me javascript code

Kartik BhatI am facing difficulty while writing a javascript code for below HTML&CSS... here the background color of all div elements in html code is "blue".. And all div element are having different font colors My requirement is , if i hover( or mouseover) on fourth div element (namely ' #four ') of html t...

 
desperate-shit-paid-coder
 
@milleniumbug For what it's worth, the most down-voted question is at -147.
@Xeo ...and unlikely to exit the EU...
 
8:38 PM
You can come to the US. We're also unlikely to exit the EU.
 
@Mysticial Good point!
 
9:18 PM
Hello, World!
 
Ell
9:44 PM
the trumpet from the godfather
so great
 
10:05 PM
Happy Pi Day!
 
10:19 PM
@Code-Apprentice I'm not all that happy about it--wanted to get a good pie, but the store was out of the ones I like, and won't have them again until Thursday.
 
I don't actually have any questions to discuss right now but, just so I don't litter the wrong channel, Is C (not C++) discussion also acceptable around here?
 
nwp
@AlexandreAraujoMoreira neither actually, questions go here
 
@nwp Alright. Thanks!
 
Ell
10:52 PM
@AlexandreAraujoMoreira only interesting questions are allowed here
So no, c questions aren't allowed :P
 
hi sehe
 
nwp
firefox now crashes every time a twitch add is supposed to play
someone should make a decent browser
 
first the Web would have to be decent
 
11:22 PM
@Mysticial The United States of America- "So bad, we can't even Brexit"
 
11:54 PM
@Mysticial Suggest me question title.
 

« first day (2341 days earlier)      last day (2609 days later) »