- Getaddrinfo failing with: "servname not supported for ai_socktype" - 2 Updates
- Read this... - 2 Updates
- I am an arab but i am "french" - 1 Update
- Don't worry guys - 1 Update
- About software quality and programming - 5 Updates
- Complexity and divide-and-conquer methods - 1 Update
- Why all tutorials/books use non-unicode string? - 8 Updates
- Why all tutorials/books use non-unicode string? - 2 Updates
- Feedback/Help with my C++ library - 1 Update
- About programming.... - 1 Update
- thread interruption points - 1 Update
woodbrian77@gmail.com: Feb 25 10:25AM -0800 I have a problem on PC-BSD 10.1/Clang 3.4. There's a comment in this thread http://stackoverflow.com/questions/10291923/getaddrinfo-failing-with-error-servname-not-supported-for-ai-socktype-in-c about getline not removing a newline character. I'm using fgets and strtok: port=::strtok(nullptr,"\n "); When I pass port to gettaddrinfo I get the error. The same code works fine on Fedora/GCC 4.9, so I'm thinking it has something to do with fgets or strtok in Clang. Thanks in advance for ideas on how to resolve this. And I've been working on improving the software here: http://webEbenezer.net/build_integration.html I'm happy with the way things have been going and invite you to take a look by downloading the archive on that page to your FreeBSD, Linux or Windows machine. Brian Ebenezer Enterprises - So far G-d has helped us. http://webEbenezer.net |
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Feb 25 07:22PM > about getline not removing a newline character. > I'm using fgets and strtok: > port=::strtok(nullptr,"\n "); Why are you asking about fgets and strtok in this newsgroup Brian? This is a C++ newsgroup not a C newsgroup or, given your use of nullptr, some horrid bastardization of the two language styles. Write C code when using a C compiler and write C++ code (i.e. use std::string and such) when using a C++ compiler. /Flibble |
Ramine <ramine@1.1>: Feb 25 02:13PM -0800 On 2/25/2015 11:06 AM, Richard Heathfield wrote:> On 25/02/15 21:56, Ramine wrote: > instead of wasting everybody else's time by posting endless reams of > gibberish to this forum. > Get a sense of perspective. This is a newsgroup, not a blog. You don't understand Richard Heatfields, i am just posting 1, 2 or 3 posts in average each day in comp.programming this newsgroup.. that's not too much.. so don't be harsh and rude like islamists of ISIS in Irak... I have just posted a song, but i am posting one song every month , that's not much either... so please don't get too harsh... Thank you, Amine Moulay Ramdane. |
Ramine <ramine@1.1>: Feb 25 02:20PM -0800 On 2/25/2015 2:13 PM, Ramine wrote: > > Get a sense of perspective. This is a newsgroup, not a blog. > You don't understand Richard Heatfields, i am just posting 1, 2 or 3 > posts in average each day in comp.programming this newsgroup.. that's I was speaking about comp.programming, and don't think that's the same in this newsgroup, because i am not interrested in C or C++, so be sure that i will not post in this newsgroups of C or C++ from now on, that's the way it is my friends... |
Ramine <ramine@1.1>: Feb 25 01:57PM -0800 Hello, I am an arab but i am "french", because i always talk and think french in my daily life... So i want to share with you this french song of compagnie creole, listen to it , it's so beautiful... https://www.youtube.com/watch?v=FNw0X8jy-IA Thank you, Amine Moulay Ramdane. |
Ramine <ramine@1.1>: Feb 25 01:40PM -0800 Hello guys... Don't worry guys, i will post just few posts in this newsgroup... so don't be so harsh, and about comp.programming, i was not the person who have caused people to flee from comp.programming, the newsgroups of comp.programming and comp.programming.thread was dying in fact before i have posted in them, so i have decided to post some content there about parallel programming and such, i didn't want to harm this comp.programming or comp.programming.threads newsgroups, but since they were dying , i just wanted to post some content about parallel programming and such to not let them die... That's all guys... Thank you for your time... Amine Moulay Ramdane. |
JiiPee <no@notvalid.com>: Feb 25 12:07AM On 24/02/2015 16:46, Jens Thoms Toerring wrote: > insane amounts of messages, bringing the S/N down to nearly > zero. Another of his victims is comp.programming.threads. > Best regards, Jens Moderated group might be good, but really dont like moderators who kill posts just because they do not like the person or they do not like what he says. They should only really delete spam posts and not posts they dont like. I mean killing the freedom.... Obviously people who post random stuff and do not reply and communicate... those surely are ones to be deleted. But there are many who do communicate and many do not like them, but imo they should still be allowed to post. Freedom of speech is based just on that: we dont like what they say but we let them express themselves. |
David Brown <david.brown@hesbynett.no>: Feb 25 10:05AM +0100 On 25/02/15 01:07, JiiPee wrote: > who do communicate and many do not like them, but imo they should still > be allowed to post. Freedom of speech is based just on that: we dont > like what they say but we let them express themselves. The principle of freedom of speech is important, but it always has its limits. This guy is so prolific in his nonsense post that many have found him extremely annoying in several other groups - and I've never seen anyone successfully having a discussion with him. With luck, he will move on from c.l.c++ (and c.l.c) soon enough. If not, we ask him politely to limit his posting and to use Usenet groups for discussion, not as a an outlet for all thoughts that pass through his head. If that fails, we ask eternal-september to cut his cord. |
JiiPee <no@notvalid.com>: Feb 25 05:06PM On 25/02/2015 09:05, David Brown wrote: > limits. This guy is so prolific in his nonsense post that many have > found him extremely annoying in several other groups - and I've never > seen anyone successfully having a discussion with him. so he is not replying and communicating? yes, thats why I mentioned that they should communicate (politely). I agree that somebody just "preaching" and not replying /communicating (on a long hold) could possible be banned. But not after 1-2 messages. If its a long term thing, then. But you are saying here is one those.... maybe....Looks like he is not replying to people. > politely to limit his posting and to use Usenet groups for discussion, > not as a an outlet for all thoughts that pass through his head. If that > fails, we ask eternal-september to cut his cord. yes, if this is true then you are right.... then he would be one potential person who should be banned :) But I mean even if somebody is a bit rude, I would not ban them as long as they do not constantly swear or use bad language. If rules are not to use bad language (rasism etc) then obviously its ok to ban those who do do that. But somebody asnwering to me "I think you are horribly wrong You do not seem to understand anything about this!! I think you should not even post here" or similar.... even though it does not feel good, in the name of free speech I would let him continue as long as he is not breaking rules. Moderator should not ban this kind of thing. |
JiiPee <no@notvalid.com>: Feb 25 05:08PM On 25/02/2015 09:05, David Brown wrote: >> like what they say but we let them express themselves. > The principle of freedom of speech is important, but it always has its > limits. its not even about limits.... here its "breaking the rules" I would say. Because the forum might have a rule "this is about discussion, not sharing information only". So he would be breaking that rule in this case. |
jt@toerring.de (Jens Thoms Toerring): Feb 25 06:13PM > (on a long hold) could possible be banned. But not after 1-2 messages. > If its a long term thing, then. But you are saying here is one those.... > maybe....Looks like he is not replying to people. Have you ever taken a short look at comp.programming or comp.programming.threads? Then you can see immediately that this is not a 1-2 messages thing. He's like someone in a restaurant where you want a nice meal and an enjoyable conversation, who is shouting at the top of his voice what a fine picker of his nose he is and that he wants us all to gather around him to admire his last harvest and that he just retrieved a further bit of the marvelous specimen of snot he's so proud of to have produced and that we all should taste how good it is, and so on without a break. Other guests politely asking him to tone it down a bit are completely ignored. Of course, new customers coming in turn around on their heels and leave for different places. Then, if you go to a different restaunt the next time and this guy wanders in with his finger in his nose you probably also wouldn't greet him with great friendliness but ask for him to be expelled before he ruins another evening. Regards, Jens -- \ Jens Thoms Toerring ___ jt@toerring.de \__________________________ http://toerring.de |
Ramine <ramine@1.1>: Feb 25 01:07PM -0800 Hello... I have come to an interesting subject.. I was asking myself right now what is exactly is the big and important improvement that brings Object oriented programming like C++ or Object Pascal or Java or C# ? I have thought rapidly at this and i think the BIG improvement that brings object oriented programming is that it tries to "minimize" at best "complexity" so that it can improve the criterion of "maintainability" etc.. but how can we look at object programming ? i think that by analogy it look like divide-and-conquer methods and algorithms, i mean that object oriented programming is like an "optimization" that minimizes at best the "complexity", divide-and-conquer methods and algorithms also try to minimize at best the number of steps or instructions that an algorithm have to do and we can measure that as a time complexity expressing it by a O(). Thank you, Amine Moulay Ramdane. |
Bo Persson <bop@gmb.dk>: Feb 25 11:50AM +0100 On 2015-02-24 23:36, Christopher Pisz wrote: > allowed for their promises. Because it seems, it is OK to lie and > promise something you can't deliver, get the check, and then make > excuses. There doesn't seem to be repercussions. A problem is that if you tell the truth up front, you will hardly ever get any checks. That's worse than being caught with "bad predictions". Bo Persson |
JiiPee <no@notvalid.com>: Feb 25 02:59PM On 25/02/2015 10:50, Bo Persson wrote: > get any checks. > That's worse than being caught with "bad predictions". > Bo Persson are you saying manager are lying to clients? |
Martin Shobe <martin.shobe@yahoo.com>: Feb 25 09:47AM -0600 On 2/25/2015 7:08 AM, Stefan Ram wrote: >> code. > When people do /not/ learn how to write production code in tutorials, > where /do/ they learn to write production code? When they start writing code that is intended for actual use. > Why shouldn't there be a tutorial »How To Write Production Code«? If someone could overcome some major obstacles, there's no reason why there shouldn't. Examples of obstacles include, 1) A good deal of production code is written by teams. Each team will have it's own set of restrictions, preferences, and expectations that will impact how code is written. In other words, there isn't a single way to write production code. 2) Production code is usually a good deal larger than code that can be easily fit into a tutorial. Martin Shobe |
woodbrian77@gmail.com: Feb 25 08:01AM -0800 Leigh, Please don't swear or use sexual slurs here. Brian Ebenezer Enterprises - In G-d we trust. http://webEbenezer.net |
woodbrian77@gmail.com: Feb 25 08:28AM -0800 On Wednesday, February 25, 2015 at 4:51:03 AM UTC-6, Bo Persson wrote: > > excuses. There doesn't seem to be repercussions. > A problem is that if you tell the truth up front, you will hardly ever > get any checks. Yes, you'll pay a price, but it's pay me now or pay me 1000 times more later. Brian Ebenezer Enterprises - "All the world is just a narrow bridge, the most important thing is not to be afraid." Rebbe Nachman http://webEbenezer.net |
Bo Persson <bop@gmb.dk>: Feb 25 06:11PM +0100 On 2015-02-25 15:59, JiiPee wrote: >> That's worse than being caught with "bad predictions". >> Bo Persson > are you saying manager are lying to clients? Well, an optimistic estimate has a better chance of winning a bid. If you are allowed to add more cost later, it's tempting to be VERY optimistic. I have seen that when some internal projects were actually killed rather than allocated more money when needed, the estimates for the following projects were significantly higher. Is that lying, or adapting to the rules? Bo Persson |
JiiPee <no@notvalid.com>: Feb 25 05:16PM On 25/02/2015 17:11, Bo Persson wrote: > Is that lying, or adapting to the rules? > Bo Persson I would not lie. I do projects to clients at times and I keep it real. Also other aspects of programming, I basically always tell the truth (like: "this is gonna take you very long time to get working...so not sure if its possible") |
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Feb 25 05:38PM > Brian > Ebenezer Enterprises - In G-d we trust. > http://webEbenezer.net You cannot handle rough language Brian? Tough titties mate. Sausages. /Flibble |
ram@zedat.fu-berlin.de (Stefan Ram): Feb 25 01:08PM >into unneeded details. For tutorials, also "using namespace std;" is a >good idea. Production code will be different in many ways from tutorial >code. When people do /not/ learn how to write production code in tutorials, where /do/ they learn to write production code? Why shouldn't there be a tutorial »How To Write Production Code«? |
ram@zedat.fu-berlin.de (Stefan Ram): Feb 25 01:28PM >Why shouldn't there be a tutorial »How To Write Production Code«? And what should be the contents of such a tutorial (insofar as it differs from conventional tutorials)? |
sasq64@gmail.com: Feb 25 02:30AM -0800 My personal collection of code modules has grown into a pretty usable library, and I thought others could maybe find it useful. Also I could do with more feedback and even some help with parts I haven't done yet. I put it up on http://apone.org Main focus is portable game-like development (OpenGL ES etc) using C++11 idioms and design inspired by the simplicity of some javascript APIs. There are some short code samples on the site so you can see if you like the API design... |
"Osmium" <r124c4u102@comcast.net>: Feb 22 06:51AM -0600 "Wouter van Ooijen" wrote: > If you expect me to follow a link to your wonderfull creations I'd first > like a line or two that explains what it will do for me. (That also gives > me a hint of how good you are at expressing yourself efficiently.) Perhaps someone could compute and post the fog index for Ramine's post - that would provide some insight as to just *how* wonderful he is.. |
Marcel Mueller <news.5.maazl@spamgourmet.org>: Feb 22 09:59AM +0100 On 21.02.15 22.41, Paavo Helde wrote: > random fashion. Even if they are not failing, the computer is pretty much > unusable anyway. Depending on the OS and running programs, a computer > restart might be the best option to come out of the trashing mode. I am You are right. I can confirm this. Win7 discards the disk cache on suspend to disk. This is comparable to swapping after resume. About 1GB of data is read with heavy disk activity in the first few minutes after resume - probably in 4k blocks due to page faults. In this time the system is almost unresponsive and random faults occur from time to time. E.g. drivers that do no longer recognize there devices or program windows can no longer rearrange their Z order (This can happen to any window including simple explorer windows.). Of course, nothing bad happens as long as you have only a few application windows open at suspend and the cache is quite small. So the concept is well designed to survive a feature presentation, no more no less. (What the hell came over them when they decided to discard the cache.) I once run into a similar problem on a Linux VM server too. I started one VM too much and the memory got very low. It was impossible to get a shell to suspend one of the VMs in a reasonable amount of time. So I decided to prefer a hard reset. > starting to think that turning the pagefile off completely might be the > best approach. Unfortunately you have to be careful here. Depending on the OS this might have unwanted side effects. Some OS refuse overcommitment of memory when there is absolutely no swap. Maybe some reliable operating mode intended for cash terminals or something like that. This will likely throw out of memory exceptions very soon when using ordinary desktop applications. Other OS simply ignore your configuration and create a temporary swap file on the system volume in this case. > That's why throw specifications is a deprecated antifeature. Is it? > functions with an empty throw clause should not call anything non- > trivial, if they do there is a large problem between the keyboard and > chair. Well that's the old discussion whether to have checked exceptions or not. Unfortunately when using generic functors or lambdas you have almost no choice. You cannot reasonably use checked exceptions with them, as it would require the throws declaration to be a type argument. (Is this allowed at all?) > the allocation. Alternatively, if the program itself is the memory hog, > then it can probably release a lot of it by stack unwinding (in the > correct stack!), then report a failure. I think it always depend on the individual case. And the basic question is simply who pays to cover all this cases. Probably no-one. > Dynamic memory allocation can be handled relatively well in C++. In the language: yes. In C++ libraries, well, it depends. > overflow is a different beast altogether, there are no standard > mechanisms for dealing with that and most program(mer)s just ignore the > problem and hope they get lucky. Indeed. Marcel |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment