« first day (685 days earlier)      last day (4264 days later) » 

4:00 PM
@JerryCoffin I tried to apply for unemployment, and I told them I was going to school, and they told me I needed to quit school to qualify.
 
@Neil Considering how the Reps like to regularly hit on the middle class to give more the 1%, I don't think it's going to be a problem for them.
 
I do think that governments in general have realized that a vote from a poor person counts as much as one from a richer person, and there are a lot more of them. Taking money from rich people and distributing it to poor people is a pretty obvious way to buy votes.
 
@JerryCoffin I feel like the republican party hasn't quite gotten that all the way yet
 
@EtiennedeMartel You say that like the Democrats don't want to overtax anyone
 
4:02 PM
@Neil It sounds like they just want to reduce tax write offs. Of course, it always sounds like that. Who knows if it's actually true.
 
Both parties are guilty of overtaxing
 
@Drise Is that actually true? I though they were raising rates on the highest incomes. Which, of course, never raises rates on the highest incomes, just the upper part of the middle class which can't afford all the fancy write-offs, etc.
 
@Neil Look, I'm going to assume a bunch of things here. First, I think I probably make as much as you do. I also probably pay much more taxes than you, since I live in Quebec, and we have the highest tax rates in all of North America. I still manage to get by just fine. What's important is not what you pay, but how much you have afterwards.
 
@EtiennedeMartel Very philanthropist of you. American government is taking donations if you're willing.
 
@EtiennedeMartel What's important is how much of the taxes you pay is wasted.
 
4:04 PM
> We've really focused on this since I came into office - 18 tax cuts for small business, easier funding from the SBA. Going forward, I want to keep taxes low for the 98 percent of small businesses that have $250,000 or less in income, make it easier for small business to access financing, and expand their opportunities to export.
 
I see your point, and to an extent, it's unavoidable to pay taxes
 
> And we will be implementing the Jobs Act bill that I signed that will make it easier for startups to access crowd-funding and reduce their tax burden at the start-up stage.
 
Yet I see no real reason why in a crisis, spending should be an obvious solution to anything
 
Ell
@JerryCoffin which is very unfair imho
 
It's like digging yourself in a hole hoping to get out soon
 
4:05 PM
@Neil Because people need help in a crisis.
 
Damn, I thought he explictly stated reducing tax cuts for the rich.
 
@EtiennedeMartel The government needs help in a crisis too, I remind you
 
@Ell What, that there are more poor than rich?
 
If the government overspends, you only increase the risk of a new great depression
 
Ell
@Drise well no, but that governments can "buy votes"
 
4:06 PM
And that doesn't help anyone in the end
 
@Ell Of course they can!
 
@Neil Then what would you have done?
 
@Ell Which is what Obama has been doing with the "Dream Act" by fiat bullshit.
 
@Ell The problem, IMO, is less with unfairness than with inefficiency. Her point (and she does have one, no matter how poorly expressed) is that if you let the rich people start companies and pay the poorer people, it gets redistributed fairly efficiently. When/if the government does so, a much smaller percentage goes to the poor people, and more stays in the government itself instead.
 
@EtiennedeMartel Get organized. Eliminate inefficiencies in programs and remove programs which are no longer needed
 
4:08 PM
@Neil easier said than done
 
@Neil Do you have any idea how hard this is?
 
@Neil Government? Organized? Flying cars?
 
@MooingDuck True, but the government made these programs. If they don't clean up their own mess, who will?
 
Terrorists!
 
Make no excuse for the government. We're not talking about babies here.
gtg, sorry
maybe later
 
4:09 PM
@Neil Later.
 
> The topic wet itself and needs to be changed.
 
In my state, democrats had been in power for a while. THe republicans said if voted into power they would "Get organized. Eliminate inefficiencies in programs and remove programs which are no longer needed" and not sacrifice the education budget. They were voted in, and two years later, they made massive cuts to education because "there's nothing left to be cut anywhere else".
 
> Juicy discussions about governments handing out money
 
room topic changed to Lounge<C++>: We don't need no stinkin' topic. [c++] [c++11] [c++-faq] [not-your-helpdesk]
 
@MooingDuck Primary reason I've lost faith entirely in our political system.
 
4:11 PM
@JerryCoffin If that were true, we wouldn't be in this recession.
compare the costs of the US healthcare system to the costs of the UK healthcare system, for example.
 
@MooingDuck Well, it happens on both sides of the aisle. Neither party lives up to its campaign promises
 
@Chimera Primary reason I've lost faith entirely in our political system.
 
the rich employ people because they make a profit on it- they make more money than they pay out. the government employs them at cost, effectively.
 
@Chimera yeah, I didn't mean to bash so much as say the aren't quite as bloated as whichever losing side always claims. They both do it
 
The government pays people 6 figures to hand out pittances to poor people.
 
4:13 PM
@MooingDuck They are very bloated. It's just that neither party wants to lose the people who vote for those bloated programs.
or advocate actual change, because that would be risky
 
@DeadMG another possibility, yes
 
Alright, here's a common strategy: lower government revenues by cutting taxes (typically on the rich). Then, claim the debt is a huge problem, and cut in services and privatize what was previously public. Voila, you got richer rich people and poorer poor people.
 
@tinkertim Luckily, they have backups. Or make one right now. I distrust developers who #1 aren't lazy or #2 are afraid to break things
 
@EtiennedeMartel Hey, that sounds like what we're doing. Nice!
 
@R.MartinhoFernandes Every time you see someone talking about "austerity plans", it's the second phase of that strategy.
 
4:16 PM
All the entitled people need to be fired. And the productive people need raises.
The end.
 
@mootinator Easier said than done.
 
I know :)
 
How do you measure productivity? What do you mean by "entitlement"?
What if you're not productive enough and you get fired?
 
@mootinator how often do you get called "mooninator"?
 
Is there any use of learning scheme?
 
4:17 PM
@ApprenticeHacker not in the C++ lounge
 
@MooingDuck Too often.
 
@mootinator I get "mooningduck" a lot :(
 
@ApprenticeHacker Yes. Knowing scheme.
 
@EtiennedeMartel Businesses are surprisingly good at weeding out productivity leeches if their hands aren't tied by union contracts, I've found.
 
A language whose syntax is derived almost entirely from lambda calculus. Seems interesting...
 
4:19 PM
@R.MartinhoFernandes: Remember all those times I was in here promoting a value_ptr? I tried coding one, and turns out it's harder than I thought, especially for a particular use-case I wanted it to handle: variable-length objects.
 
@MooingDuck lol
 
@ApprenticeHacker IMO, yes. It's worth knowing, even though chances are pretty good you won't use it to write a lot of "real" code (e.g., chances of getting a job writing Scheme are pretty remote).
 
@MooingDuck That's not a value_ptr.
There are no variable-length objects in C++, so you need to solve that problem first.
 
-2
Q: OpenCV/C++ - Contours counting and labeling

user1627847I'm trying to develop a program that counts the number of contourAreas as function of size and display it to the user. I was able to create drawContours to all the areas but I would like to add a text label under each contouArea and display there respective size. Can somebody help me?

 
@ApprenticeHacker If you are interested in becoming a computer scientist, then yes.
 
4:21 PM
@DeadMG You're claiming that the recession resulted from governments redistributing wealth efficiently? I'm baffled at the logic that could lead to that conclusion.
 
@R.MartinhoFernandes The trick in the article (or something very similar) also works in C++, and we use it at my work.
 
What trick?
Flexible array members?
 
@DeadMG I wish I could. Unfortunately, I haven't been able to find a source that's transparent enough that I can be at all sure about what the numbers they throw around really mean.
 
@mootinator Where I work, there are no unions, and there are still leeches.
Leeches are experts at looking like they're actually working.
 
That's their job!
@MooingDuck Nothing in the page you linked is part of C++.
 
4:27 PM
But I guess that it's more interesting to just blame those Evil Unions™ for all your problems.
 
@EtiennedeMartel Where my wife works, they had to do a round of layoffs, and a lot of jaded/no longer useful people who had been at the company a long time got let go. In most union situations they would have had to do the layoffs in seniority order.
 
@R.MartinhoFernandes Close this as duplicate of your similar question with noexcept? Or just link to it? I'm somewhat afraid there is a subtle difference between decltype in a return type and noexcept.
 
@EtiennedeMartel But unions are evil.
 
But hey, organizations that reward taking up space for a longer period of time are a good thing, right?? Right???
 
@LucDanton I'd link to it saying "Same issue with noexcept" or something.
Sometimes people pick that up and vote to close, so I see it as leaving the choice to the community :P
 
4:29 PM
@EtiennedeMartel Not just working, but making it seem like they're useful -- even valuable or crucial. I have to disagree with the original statement though: while some businesses are good at detecting leeches, others seem to be unable to detect them no matter how obvious they were. At a former workplace, I considered "vice president" and "leech" pretty much synonymous (in ~15 years there, we had exactly one VP who was actually worth a damn).
 
@R.MartinhoFernandes Done.
 
@JerryCoffin you know what? Okay, some of them are exceptional at it. I'd prefer the company had a chance of getting rid of them, should they notice at some point. That's all I'm saying.
 
@R.MartinhoFernandes so? It can be and is done in C++.
 
@MooingDuck Not like that.
 
I.e. struct { int f[]; }; is an error and will only be accepted as an extension. I don't even want to think about achieving the same as flexible array members in a conforming manner.
 
4:32 PM
uh right. That's not what I thought I was linking to. oops. Point is this bit:
struct line *thisline = (struct line *)
malloc (sizeof (struct line) + this_length);
thisline->length = this_length;
 
@MooingDuck Show the definition of line.
 
in their article it's:
struct line {
int length;
char contents[0]; //in our code at work, we don't have this here
};
 
Yeah see that's not valid C++.
 
@LucDanton it is without that one line
 
All this time you missed the point entirely.
 
4:34 PM
@mootinator I have no problem with that. I'm not sure unions really get in the way of it much though -- though they might have slowed the process a bit by demanding paperwork in triplicate (etc.) before anything could be done.
 
@LucDanton I did and sketched out a class for that once, but didn't find it worth it.
@MooingDuck How do you access the array then?
 
@LucDanton no, my point is: we have variably sized objects like this at work, and I wanted to make a value_ptr that could hold/handle them.
 
Is there really a reason to have those things contiguous at all?
 
@R.MartinhoFernandes we have a list of members we know how to access, and the rest we preserve without touching
 
This trick is well-defined in C though, isn't it?
 
4:35 PM
@LucDanton It's not, but changing it to char contenst[1]; makes it legal, and still easy to do variable-length allocation.
 
@R.MartinhoFernandes not really no
(restarting computer)
 
@JerryCoffin Well, therein lies the problem. Lazy people are good at pretending to work. Unions tend to demand several pieces of proof that they're not. Easier not to bother unless it's so egregiously bad that there is some solid proof.
 
@JerryCoffin It is, however, not legal to access that array past the 0 index.
@FredOverflow The language has support for it (flexible array members).
 
@FredOverflow In C99 it's officially blessed as a "flexible array member". Prior to that, it was (arguably) UB, but actually worked with essentially all compilers.
@R.MartinhoFernandes Well, doing so gives UB. From a practical viewpoint, however, it's common enough that virtually no compiler has ever had a problem with it. In theory, a compiler with bounds checking could cause a problem, but C++ compilers with bounds checking aren't exactly common.
 
struct line { int length; char contents[1]; }; line* l = make_line_with_length(100); l->contents[i] /* compiler: oh look, an access to an array with one element, let's optimize to l->contents[0] */;
 
4:40 PM
@JerryCoffin And it perpetuates a vicious cycle, too. Companies start monitoring computers, etc looking for bad behavior. Employees who are being monitored all the time tend to be less happy/productive. Thus, the proof requirement takes it's toll on everyone.
 
-1
A: Accelerated C++ copying vector

Jupiterstd::vector<int> u(10, 100); std::vector<int> v(u.begin(), u.end());

Laugh at how useless this answer is
Also flag as Not an answer.
 
@Drise It's an alternative way of copying a vector to another. What's so useless about it?
 
@R.MartinhoFernandes I misses about 75% of the question
 
The OP doesn't make it obvious this is about inserting and not copying though.
 
@Drise So it's 25% useful?
 
4:43 PM
Especially taking into consideration the title. Is that answer so silly then?
 
@R.MartinhoFernandes therefore, not an answer
 
@mootinator I haven't seen much of that due (even indirectly) to unions. The big productivity drop I've seen from unions was simply from enforcement of job descriptions. For example, two guys had to check continuity of a wire, so they went to the supply room and got a battery and a light bulb -- and were officially reprimanded because they didn't get a union "materials handler" to carry those back to the lab for them.
 
@Drise It's 25% an answer.
If you want to delete valuable content because it doesn't cover everything, go ahead.
 
@R.MartinhoFernandes It's already gone
 
@JerryCoffin Yeah, that's a tad annoying. I had to wait two weeks to move a monitor from one desk to another once.
 
4:44 PM
@mootinator Really?
 
@Drise Really...
Though this was when a 22" monitor could seriously hurt a person's back or something...
Anyway, there were other union people for that.
 
@mootinator True
 
union u { bool state; };
^ get it? :)
 
@R.MartinhoFernandes I don't know if it was moderation or if it was the answerer. Plus, he only had 100 rep, so it was likely he was trying to repwhore
 
4:46 PM
I don't think we should punish people for not posting perfect answers.
@Drise What?
 
Well, it was a moderator.
 
What if he was trying to help?
@Drise It was the owner.
 
> not an answer – 6 mins ago helpful
 
> deleted by owner 3 mins ago
 
Oh, you silly 10k
 
4:47 PM
In my view it is an answer.
 
@Drise It gets automatically marked helpful when it gets deleted.
 
> q1.b) Provide 2 possible ways to correct the program and its advantages and disadvantages.
 
@R.MartinhoFernandes Which the OP did, and asked for help with the advantages and disadvantages.
Regardless, felt repwhorish to me, especially considering low rep of poster.
 
@Drise " and I am wondering are there any more solutions of it."
@Drise Why does the low rep of the poster make it any more repwhorish?
 
@R.MartinhoFernandes which implies giving reasons for why it works, and advantages and disadvantages.
 
4:50 PM
FYI repwhores tend to have much higher rep values.
 
@R.MartinhoFernandes gotta start repwhoring somewhere
 
@Drise Gotta start helping somewhere?
 
@R.MartinhoFernandes Only the good ones do.
I've seen plenty of failed repwhores.
 
@R.MartinhoFernandes You know what? I'm going to play the same card as I do with @DeadMG: You're right. I'm wrong. You win.
 
Or people who are obviously trying to repwhore, but are failing miserably...
 
4:52 PM
@Mysticial Still, my point is that the low rep of the user says nothing about the intent of the answer.
 
Repwhoring by shouting out that you are stupid always works. It either gets you rep or confirmation.
 
@R.MartinhoFernandes It says they... Dammit. I'm not getting back into this.
 
Really, it says what?
It's an user with 4 answers posted in two months.
 
@Drise So you've taken to emulating DeadMG?
 
1
A: iostream vs ostream what is different?

Michael RivaC++11 doesnt support that so you dont need to use both

What.
That magically got marked as answer just moments after he posts it.
literally, 21 seconds.
 
4:55 PM
@Mysticial Some repwhoring is pretty obvious, but other...not so much. The number (and speed) of answers @Luchian has posted would tend to point toward repwhoring -- but from what I've seen, I'd say he's honestly just a nice guy who's really trying to help people out.
 
@JerryCoffin I'm sure he can attest that I've contested stuff in his answers many times, and he always fixed whatever the problem was.
If that's repwhoring, I don't see a problem with it.
 
@R.MartinhoFernandes How does fixing one's answer not help with rep?
I don't think I'm getting that kind of stuff.
 
@JerryCoffin He answers fast, and fills in the rest later. But at least he is usually correct, or is corrected and fixes it.
 
@R.MartinhoFernandes Nor do I -- and given the number of answers he's posted, I'd say his record of correct answers is pretty good too. He's clearly not an ignoramus who's just posting lots of answers and picking up the odd pity vote here and there, or anything like that. He isn't always right, but definitely knows a lot anyway.
 
@LucDanton I'm saying that even if that counts as repwhoring, it's not something I see as bad.
 
4:58 PM
Okay.
 
I'm confused, the C++11 spec appears to mandate that node-based containers have two allocators, one for the nodes and one for the elements.
 
@MooingDuck It's the same "kind" of allocator, rebound to the two types?
 
Well, they hold one allocator (for elements) that is only ever used to construct an allocator for the nodes.
 

« first day (685 days earlier)      last day (4264 days later) »