@wilx I live at the North-East of the town and need t go to the South-West. With my car I can avoid the center of the town, but the public transportation is slower and makes me go through the town.
Also I need to take the bus, then the tramway, then the bus. Since the synchronization often sucks, I end up wasting my time waiting for almost nothing.
@Morwenn Sometimes you can get some pretty humorous results. A couple years ago I checked a route. The route taking public transportation included about half again more walking than just walking directly to the destination (something like 8 minutes to walk there directly, and 11 minutes of walking to take a bus).
@Ell Someday I think I should make something that looks like a normal jar, but hs a lid that flat-out can't be removed without just breaking the jar... :-)
We have following results of a course with exam:
75 of the students who completed this course took the exam. We want to know how well the students did in the examination and are given the scores of 75 students. We want to write a program that summarizes and analyzes the results the following way:...
@Ell Yup. Back when televisions frequently lost vertical sync, one comedian wanted to do a comedy special that in the middle of the show would simulate losing vertical sync, so everybody watching would go fiddle with their TV set to try to fix a nonexistent problem.
@JerryCoffin is it illegal to make a jar with tight fitting lids that is designed to shatter into sharp pieces when subjected to moderate amounts of force?
@orlp Not sure about illegal, as such, but there are certainly standards about such things. e.g., TEC-9, and I can pretty easily see intentional violation of such standards as opening a company up to claims about liability for [gross] negligence.
@ppeterka - The most common motivation is evasion of question bans by artificially making sure the posts of these accounts never dip into the negatives. Cleaning these up helps block future bad questions. Others try to use this to boost their employability in areas that judge you based on SO reputation, but that can backfire badly (in the last week, at least one person has begged us to unsuspend them at least for the duration of their job interview). — Brad Larson ♦Sep 28 at 14:22
@Borgleader Ugliness: when considering anything invented by the C committee, the standard of comparison is trigraphs. By that standard, hex float literals are only mildly revolting at worst.
TBH, I don't think I've ever seen a resume where someone advertised their SO profile. So it certainly felt a little uneasy doing that myself during the job search.
@Morwenn Not really. There is a general impression/assumption that the SO C++ chatroom is full of experts (which is true). But few people outside know that we talk shit most of the time.
But the point is most of the regulars can casually dump questions here and get answered.
Not just any questions, but fairly difficult C++ questions that require pedants to answer.
@milleniumbug I imagine that someone who bothers to follow a link to an SO profile on a resume will have enough experience with SO to actually judge someone's SO profile.
They will be the ones who'll probably look at the top 5-10 posts on the profile to get a rough idea of the person's expertise.
Among those it's very likely that at least a couple of them will be stupid basic stuff. So that probably won't hurt.
But if all of them are like that, then it probably won't help.
@JerryCoffin It's not a coincidence that Luc ends up answering most of my questions that aren't related to Anime.
I should say, Luc ends up answering most of the questions I have on my personal stuff since I'm more likely to touch that at night. Everyone else answers for my work questions. Most recently the whole zero-initialize a 500 field non-POD struct.
@Xeo @Ven @rightfold Hey, thanks for helping me out with OCaml. I'm looking at other people's solutions to some of the same problems and I seemed to pretty much hit the optimal solution for all of them, bar some fancy spacing.
Hi, I was writing a documentation for C++ Language requested topic here - http://stackoverflow.com/documentation/improvement-requests/view/7177/23999 and noticed that someone has flagged(?idk right term) it as follows - "This example is completely unclear, incomplete, or has severe formatting problems. It is unlikely to be salvageable through editing and should be removed" which I happen to disagree with, but still I respect the choice and am willing to make proposed changes.
Now I don't know what exactly is wrong with that, but I'm willing to write or even rewrite it completely since I know the topic's worth(passed my sem exam because of Beej's guide). But since I don't know a method to contact that person, would someone mind offering suggestions what should I improve here?
@Abyx okay, well I cannot replace c specific headers, some of the pointers I've used don't actually own the resource and are just used to iterate, I'm using preferred freeaddrinfo() function for freeing resources as well. std::strings instead c-styled-strings and auto wherever necessary. What part did you find as bad?
*raw pointers
@milleniumbug those blue ball for notifications, when you click over them they start the tour of SO Documentation. I usually click skip for them..
You're also using system-specific headers. If you're gonna do docs for C++ without explicitly saying that it only works on *nix. It better work on Windows as well.
While it's annoying for raw sockets, since it's C++, I'd recommend wrapping all the C-style socket objects with an RAII wrapper.
@Mysticial I initially thought of wrapping it into some sort of class which will manage it's lifetime but came to conclusion that it would be distracting for students. I wanted it to keep in steps, like first we've to make a system call to socket() then bind() then listen() as is described in Unix Network Programming textbook.
However I'll definitely add "example works on *nix only systems" and a footnote about how to port on windows systems, since my university course was only concerned with unix version and I don't consider myself to be a good authority for windows sockets.
@Mysticial And we can add more examples (which I definitely plan to add) such as iterative server, fork based, then claiming zombie children back, then udp, sctp? Since the topic is client server examples, a lot will be covered and I'll add up an RAII wrapper in another example :)
I would love to hear more improvements if there are any and will improve my examples acc to it. Thankyou :D
@AbhinavGauniyal The whole C++ RAII thing is going to be difficult to get past (competent) reviewers. And I would hesitate on that even if you're dealing with raw sockets. Do it with C first.
user5378087
@milleniumbug It seems that I need to search at the all rooms page. I thought that I'd find inside this room. Thanks.
I've been toying around with the whole numa thing and separate compute regions. A concept that neither C++ nor the majority of Intel's parallel libraries actually do.
Many (most?) assignments dealing with threads seem designed specifically to do threading as badly as possible, but this seems to set new records in requiring bad code, and prohibiting anything that might have any possibility of being even halfway right.
My assignment is to to create two threads running functions (called vow and cons). The threads take turns printing the respective words of the phrase supplied from a text file. The main thread shouldn't post anything (only cons and vow functions should print). I can't use synchronization primitiv...
@Mysticial Yes--his code seems to have taken the "set new records for terrible ideas" to heart, so if forks and joins on a per-word basis...
Not to mention it has a while (!foo.eof()) loop, and (one I've never seen before) defines functions before main then adds (utterly useless) declarations of them after main.
If anyone was watching the election polls live today. It was "less than boring" when the news broke out about Trump's foundation getting a cease and desist and the sexism on his apprentice show.
I'd like to take this opportunity to explain that all positions, academic, political, bureaucratic, managerial, pedagogical, very much depends on the person doing the task. The assignment Jerry C refers to is a catastrofy and not representative of the profession.