At least he wasn't lazy like us programmers, which would have just copy/pasted, so they'd all be consistently off-center .
Nprz
@Nprz
Best posts made by Nprz
-
RE: Designer rant
-
RE: Hooray for encrypted home directories
Hey, why is this command taking so long?
It has been running for the last hour and my hard drives are pretty noisy.
It is hard to get work done, so I don't think it is solving any problems.
I guess I'll let it run over night and see if things are better tomorrow.Cheers.
-
RE: C vs C++, from the author of ZeroMQ
I'll admit I didn't read the whole article.
I kind of stopped after I disagreed with the first point and scanned the rest.
His use of exceptions seem like he missed the point of what exceptions are good for. Also I rarely try/throw/catch in the same block for error handling. If I'm throwing an exception it is because it is something I can't handle at that layer.
And everything I've allocated will be properly cleaned up because that is what the destructor is there for (smart pointers do that magic as well).
If I'm using C, I need to design that error handling everywhere and usually it ends up with goto statements.In part 2:
erase_person for C++ should be passing in an iterator, then it is just people.erase(person). Oh he poses a different problem in the EDIT. But if it was C, it would still be 10 calls on all those lists, because he simplified function there is fixing a list, so multiplying it by 10 is no different.
And hypothetical situations like that are kind of difficult because we don't know what problem he is trying to solve (why he needs 10 lists containing the same object and whether a different data structure would make that problem go away). -
RE: The active population here seems to be slightly biased towards Central Europe, amirite?
why the fuck was seemingly every post today a necro?
Because I'm catching up on my computer, so actually responding rather than reading.
And I don't give a flying fuck about necroing topics (the active ones are fairly boring as-is).
And look, after necroing this topic, it became fairly active...But I was reading somewhere that there are 50,000 topics, so I'm going to be quite busy.
-
RE: The Official Funny Stuff Threadâ„¢
She would have continued in that cycle forever if that VW didn't show up.
-
RE: C vs C++, from the author of ZeroMQ
Ok, yeah, for sure there are places where returning a value to indicate success/failure is a lot more convenient (and sensible) than throwing an exception.
You mean you don't do (omitted most things):
// This could return a bool if this were C, but we only have exceptions in C++ void Exists(int num) { if (inmap.find(num) == inmap.end()) { throw DoesNotExist(); } throw NumberExists(); } int main() { try { Exists(42); } catch(DoesNotExist) { cout << "Sorry, doesn't exist."; } catch (NumberExists) { cout << "Found it"; } }
-
RE: Stupid things I've seen on Yahoo! Answers (but I repeat myself)
https://answers.yahoo.com/question/index?qid=20150715221333AATRlam
250 = .10x what is x?
At least 5 people say 25. Granted most of them can't see the decimal.
The craziest is
250= .10x
first move the decimal 2 places to get a whole number
what you do to one side, you must do to the other
25000= 10xdivide both sides by 10
250/10= 25
c=25
.10 == .1, why move it 2 places? But whatever, ends up with 10x.
But then how the hell did you get back to 250 instead of 25000? -
RE: From my friend who works in IT at a school, here are some screenshots of PDFs:
This is also how I'd imagine my bank interface would work. They have 3 levels of questions to verify it is me. A MITM attack could simply relay the questions and answers to gain access.
Forget all those layers and just give me a regular password. Or do a proper 2-layer interface where I have a keyfob. -
RE: Wonder what this will do to the divorce rate …
Scenario 1 with a response that your computer got a virus and did lots of weird things, signing up to sites, blah, blah.
Common problem.
Only go into more detail if needed.You people need more practice at lying if you are going to be visiting dating sites for cheating.
-
RE: How I ended up accidentally importing a customer's entire Windows registry
Since it seems like you need to do this frequently enough, I'd recommend some script to export the reg settings and anything else relevant and have it zipped up.
It makes life easier than explaining and hoping the end-user doesn't goof.Also agree with using a VM for reproducing customer issues. You can snapshot and revert easily and not have to worry about have either environment get contaminated.
Latest posts made by Nprz
-
RE: J-Pop?
If I like jpop from the 80s does that count?
I'm too old for present day stuff. Even my American music is from the 80s.
(I live in Japan, but not up to date on the pop news). -
RE: I guess Google's facial recognition algorithm is pretty good
I've seen it blur out store signs and information signs.
If it is going to blur out useful information then what good is Street view? -
RE: Fuck You, I Quit - Hiring Is Broken (article)
I actually implemented a BFS today with a non-academic purpose. We have an org chart at work and I want to have an address book sorted by how far they are away from me in the org.
Useful for me so when I start typing a name, people I'm more likely to email show up at the top.
It only took a few minutes for the BFS.
Making the LDAP calls, hooking it into sqlite, making the graph took a bit of time.
But there is real value in understanding how BFS works and when it can be used. It isn't just for 2D mazes.And this time I wrote it in Python instead of php, so I can probably hook it into other Python projects I have.
-
RE: The Official Status Thread
Hmm, that is as old as the company I'm working at. So you probably fixed a bug written by the CTO at that time.
This is how I imagine it.
Also some people were smug that they'd finally removed every bit of code by said founder (I can't imagine how they'd have such free time to look up everything he wrote to confirm that). Also this assumes the CVS history wasn't messed up. -
RE: Paid for WinRar? Join the club!
What I liked about rar recently is that I could easily create an archive containing exe files and gmail it.
With an unencrypted zip file, gmail rejects executable files.And yes, I sometimes use email attachments sent to myself as a form of (ternary) backup.
-
RE: Embroidery Machine Software
Sounds like a crude attempt to prevent brute force cracking of the numbers.
I kind of doubt someone would be that interested anyway. -
RE: SourceForge... again
How about I don't give a shit what their TOS says? How about we go with the motto "don't be a jerk?"
(The other thread about them putting malware in people's deliverables violates that principle)
-
RE: Computers on TV
I'm guessing that picture is from an anime. Instead of giving you a backslash, you get the ï¿¥ symbol.
You can easily reproduce with putting the Japanese IME on windows and hitting \ key.So my question building off @HardwareGeek is, what language uses %\ to mean something?
-
RE: Stupid things I've seen on Yahoo! Answers (but I repeat myself)
https://answers.yahoo.com/question/index?qid=20150715221333AATRlam
250 = .10x what is x?
At least 5 people say 25. Granted most of them can't see the decimal.
The craziest is
250= .10x
first move the decimal 2 places to get a whole number
what you do to one side, you must do to the other
25000= 10xdivide both sides by 10
250/10= 25
c=25
.10 == .1, why move it 2 places? But whatever, ends up with 10x.
But then how the hell did you get back to 250 instead of 25000? -
RE: â€ðŸ™… THE BAD IDEAS THREAD
Autocorrect by mobile.
[edit] And it took me 3 corrections just for the above line.