News for hackers. Stuff that matters.
Re:Why is printing “B” dramatically slower than printing “#”... by anjc on Thursday September 08, 2016 @08:22AM (#12452293)
I love it when somebody immediately knows the answer to something seemingly obscure.
Re:Why is printing “B” dramatically slower than printing “#”... by xeniak on Thursday September 08, 2016 @09:04AM (#12452541)
Sometimes I think these guys know something obscure, and then post a question about it just to answer it themselves.

SO actually allows this, Q and A from the same account. Some people use sock-puppets though.

Re:Why is printing “B” dramatically slower than printing “#”... by mark-r on Thursday September 08, 2016 @09:41AM (#12452873)
I've done the self-answer thing a couple of times. Sometimes you just know that someone is going to run into the same problem, but you'll never see the question, and you can preempt it.
Re:Why is printing “B” dramatically slower than printing “#”... by nucleardog on Thursday September 08, 2016 @03:03PM (#12456202)
I think I've posted on StackOverflow/ServerFault three times in my life. If I've hit the point where I'm posting, I'm desperate and I've probably already spent 8+ hours scouring Google and trying everything I can think of.

If I do end up figuring out a solution, I definitely post it, and I'm glad that SO allows this, otherwise there would still be no answer to some of these questions online... One of these issues previously only turned up a single bash mailing list post from a decade ago with no resolution. Now searching for a few relevant search terms turns up my answer/solution in the top few results for all of them.

I don't care about imaginary internet points, I just figured I'd help the next guy out.

Re:Why is printing “B” dramatically slower than printing “#”... by Normal_gaussian on Thursday September 08, 2016 @10:13AM (#12453170)
Some of these have been absolute God sends for me.

You have a cross between misinterpreting what something means, on obscure hardware, with a useless error message and you are normally stuck for days.

Re:Why is printing “B” dramatically slower than printing “#”... by billmalarky on Thursday September 08, 2016 @10:55AM (#12453557)
If I resolve my question before someone else in the community I always self answer to help the next guy.
Re:Why is printing “B” dramatically slower than printing “#”... by pc86 on Thursday September 08, 2016 @11:06AM (#12453670)
More than once I've solved the problem by the time I am 80% of the way through formulating a question. As long as it's not something trivial I finish and post the answer immediately.
Re:Why is printing “B” dramatically slower than printing “#”... by junke on Thursday September 08, 2016 @09:14AM (#12452630)
Not only is this allowed, it is encouraged.

Why would people use sock-puppets, I don't know. It seems that the SO team has special ways to detect voting frauds.

Re:Why is printing “B” dramatically slower than printing “#”... by nxzero on Thursday September 08, 2016 @09:23AM (#12452711)
People use sock puppets to do this because although you're correct that it's with the SO guidelines, it feels a bit off, and not uncommon for it to get pushback from those who either don't agree with the guidelines or are not aware of them.

Also, while voting fraud is against the guidelines and actively countered, creating sock puppet accounts is not.

Re:Why is printing “B” dramatically slower than printing “#”... by junke on Thursday September 08, 2016 @11:06AM (#12453673)
> Also, while voting fraud is against the guidelines and actively countered, creating sock puppet accounts is not.

You're right. For anyone interested here is the relevant post: http://meta.stackexchange.com/q/57682/297429

Re:Why is printing “B” dramatically slower than printing “#”... by snowwrestler on Thursday September 08, 2016 @12:17PM (#12454382)
Doesn't that say that "Answering your own questions with the other account(s)" is one of the things that a sock puppet account should not be used for?
Re:Why is printing “B” dramatically slower than printing “#”... by junke on Thursday September 08, 2016 @12:22PM (#12454432)
Yes, but the parent comment said "creating sock puppet accounts", which is okay because there might be legitimate uses.
Re:Why is printing “B” dramatically slower than printing “#”... by nsxwolf on Thursday September 08, 2016 @09:32AM (#12452792)
You use a sock-puppet to ask the question, and your real account to answer it. Then you can look smart.
Re:Why is printing “B” dramatically slower than printing “#”... by Sanddancer on Thursday September 08, 2016 @12:10PM (#12454313)
Sometimes the act of writing out a question is enough to spur the right ideas to solve the problem. It's the same as whiteboarding or asking to use someone as a sounding board.
Re:Why is printing “B” dramatically slower than printing “#”... by rocqua on Thursday September 08, 2016 @02:58PM (#12456149)
Also known as rubber duck debugging.
Re:Why is printing “B” dramatically slower than printing “#”... by joe563323 on Thursday September 08, 2016 @10:03AM (#12453083)
Still if it helps others this is cool interesting thing.
Re:Why is printing “B” dramatically slower than printing “#”... by yyhhsj0521 on Thursday September 08, 2016 @08:24AM (#12452310)
He must had a hard time figuring it out when he first encountered the problem..
Re:Why is printing “B” dramatically slower than printing “#”... by _asummers on Thursday September 08, 2016 @08:41AM (#12452407)
Or he's written a terminal that had to figure out how to do that functionality and remembered how it worked.
Re:Why is printing “B” dramatically slower than printing “#”... by jdmichal on Thursday September 08, 2016 @11:54AM (#12454154)
According to the comments on TJ's post, this would be correct.

http://stackoverflow.com/questions/21947452/why-is-printing-...

> There are some answers that come from hard learned experience. T.J. and I (since we are friends) grew up in the days of the Apple ][ and the zx80/81. There was no built in word wrap back then. So we both ended up writing our own — more than once. And those lessons stick with you, they get burned in to your lizard brain. But if you leaned to code after that, when your environment word wraps everything, or you do it manually prior to runtime, it is harder to run into the issues with word wrap. – JockM

Re:Why is printing “B” dramatically slower than printing “#”... by jockm on Monday September 12, 2016 @12:09PM (#12480905)
100% I am the guy who wrote that comment. Sometimes there are benefits to getting older ;)
Re:Why is printing “B” dramatically slower than printing “#”... by p333347 on Thursday September 08, 2016 @11:04AM (#12453649)
I am amused when someone comes up with obscure problems. I am disappointed when that person doesn't brief about the scenario that led them to such a problem.
Re:Why is printing “B” dramatically slower than printing “#”... by mrb on Thursday September 08, 2016 @09:00AM (#12452512)
This is a great example of a "10x engineer". Someone less experienced would take 10x or 100x the time to investigate and resolve this problem.
Re:Why is printing “B” dramatically slower than printing “#”... by kbart on Thursday September 08, 2016 @09:20AM (#12452682)
No, it just means someone has encountered that particular problem in the past.
Re:Why is printing “B” dramatically slower than printing “#”... by JackFr on Thursday September 08, 2016 @09:22AM (#12452697)
The 10X immediately knows the answer. The 100X immediately knows the answer, but asks "That is an interesting observation and I'd really like to know why too. But is writing 1 million characters to the console essential to the problem your solving?"
Re:Why is printing “B” dramatically slower than printing “#”... by CPLX on Thursday September 08, 2016 @10:08AM (#12453123)
Indeed.

Then the 1000x engineer explains:

"You are confused because you do not understand Tao. Only a fool expects rational behavior from his fellow humans. Why do you expect it from a machine that humans have constructed? Computers simulate determinism; only Tao is perfect.

The rules of programming are transitory; only Tao is eternal. Therefore, you must contemplate Tao before you receive Enlightenment."

"But how will I know when I have received Enlightenment?" asks the 100x engineer.

"Your program will run correctly," replies the 1000x engineer.

Re:Why is printing “B” dramatically slower than printing “#”... by softawre on Thursday September 08, 2016 @11:18AM (#12453807)
Meanwhile, the 10kx engineer sits here on HN, doing nothing while requirements change again and again - waiting to implement the thing when the requirements finally settle.
Re:Why is printing “B” dramatically slower than printing “#”... by stephencanon on Thursday September 08, 2016 @09:51AM (#12452972)
It's really an example that we should teach people to use a sampling profiler. anyone can answer this question in a minute or so, no speculation necessary, if they just know what tool to use.
Re:Why is printing “B” dramatically slower than printing “#”... by LukeShu on Thursday September 08, 2016 @11:27AM (#12453903)
Except the insight of the answer is that the bottleneck is in a different program than suspected. Running the suspect program under a profiler wouldn't yield any answers.

Sure, anyone can find the answer if they already know where to look.

Re:Why is printing “B” dramatically slower than printing “#”... by stephencanon on Thursday September 08, 2016 @01:17PM (#12454976)
Running the suspect program would show blocked states; even without that, you would simply see no difference, conclude that the problem must lie elsewhere, and switch to looking at a full system profile.

FWIW, I always start with a full system profile including all thread states when debugging mysterious performance issues, precisely because "the problem is in another process" is such a common occurrence. This is also why it's important to use a sampling profiler specifically.