Tuesday, December 5, 2017

Digest for comp.lang.c++@googlegroups.com - 14 updates in 9 topics

mcheung63@gmail.com: Dec 05 06:22AM -0800

Is anyone happy because Rick's mother is dead? If yes, please leave a message in this post.
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Dec 05 06:35AM -0800

> Is anyone happy because Rick's mother is dead? If yes, please leave a message in this post.
 
My mother was a Christian. I am grateful to know I will see her again,
and not in her final state where cancer had made her so weak she could
no longer stand in her final days, but in a new glorified body like that
of the angels, strong and full of vigor.
 
https://www.biblegateway.com/passage/?search=1+Thessalonians+4%3A14-18&version=KJV
 
14 For if we believe that Jesus died and rose again, even so them
also which sleep in Jesus will God bring with him.
15 For this we say unto you by the word of the Lord, that we which
are alive and remain unto the coming of the Lord shall not
prevent them which are asleep.
16 For the Lord himself shall descend from heaven with a shout,
with the voice of the archangel, and with the trump of God:
and the dead in Christ shall rise first:
17 Then we which are alive and remain shall be caught up together
with them in the clouds, to meet the Lord in the air: and so
shall we ever be with the Lord.
18 Wherefore comfort one another with these words.
 
Christians do not fear death. We actually have end-of-Earthly-life
services called "Homegoings" where a celebration of the person then
being with Jesus is had. We are sad they are no longer with us, but
we are glad for where they are, for to be with the Lord is far better:
 
https://www.biblegateway.com/passage/?search=Philippians+1%3A19-26&version=KJV
 
19 For I know that this shall turn to my salvation through your
prayer, and the supply of the Spirit of Jesus Christ,
20 According to my earnest expectation and my hope, that in nothing
I shall be ashamed, but that with all boldness, as always, so
now also Christ shall be magnified in my body, whether it be by
life, or by death.
21 For to me to live is Christ, and to die is gain.
 
22 But if I live in the flesh, this is the fruit of my labour: yet
what I shall choose I wot not.
23 For I am in a strait betwixt two, having a desire to depart, and
to be with Christ; which is far better:
24 Nevertheless to abide in the flesh is more needful for you.
25 And having this confidence, I know that I shall abide and con-
tinue with you all for your furtherance and joy of faith;
26 That your rejoicing may be more abundant in Jesus Christ for me
by my coming to you again.
 
We desire to depart from this world, but to remain here is more needful
so that those who are not yet saved, but will be, that they should both
hear the message and be guided by those who are mature in the faith be-
cause there is a real enemy, Satan, who seeks continually to destroy all
things of Christ, even our faith, our witness, our goals.
 
Satan is always attacking, and we (Christians) are always guiding people
rightly, and being guided rightly by others ourselves.
 
You must look deep into Christ, and into a purposeful study of scripture,
to not be consumed by our enemy. But when we put on the whole armor of
God, we are made effective warriors against Him.
 
https://www.biblegateway.com/passage/?search=Ephesians+6%3A11-18&version=KJV
 
Truth. Righteousness. Salvation. The preparation of the gospel of
peace. Faith. Spirit. Prayer. Supplication (asking God for help).
 
The fully-armored Christian does not wear outer armor, but spiritual
armor. All of those traits are invisible to our flesh, but are of
the spirit.
 
You have much to learn about Christianity, Peter. It is before you
if you can get past your own disbeliefs about it. God will open up
your understanding, draw you to His Son, give you eternal life, and
teach you more than you could've imagined was possible to know. I
pray you do. I would like to call you "brother" in Christ.
 
--
Rick C. Hodgin
peterremote1980@gmail.com: Dec 05 08:38AM -0800

On Tuesday, December 5, 2017 at 10:35:51 PM UTC+8, Rick C. Hodgin wrote:
> pray you do. I would like to call you "brother" in Christ.
 
> --
> Rick C. Hodgin
 
can god saves my github account? obvious he can't, so fuck off
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Dec 05 08:44AM -0800

On Tuesday, December 5, 2017 at 11:39:14 AM UTC-5, peterre...@gmail.com
> can god saves my github account? obvious he can't, so ..
 
He can save your soul. It's far more important.
 
You've never answered the question, Peter ... did you actually lose
content? Or did you just lose your account? Because I've described
to you how to re-push your content to a new GitHub account. It will
recover your previous pushes with all edits, all changes, broken out
just as before. The only thing you will have lost is your issue
history.
 
--
Rick C. Hodgin
mcheung63@gmail.com: Dec 05 08:53AM -0800

Rick C. Hodgin於 2017年12月6日星期三 UTC+8上午12時44分37秒寫道:
> history.
 
> --
> Rick C. Hodgin
 
Github is the identity of me, it represent my contribution to open source projects. Now lost, no one know my contributions for past few years. Help me to say thank you to your god for me.
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Dec 05 09:03AM -0800

> Github is the identity of me, it represent my contribution to open source projects. Now lost, no one know my contributions for past few years.
 
If you go look at the open source projects you've contributed to, they
will still show pulls from your account, contributions by a named user
"Peter Cheung" (or however you identified yourself). Nothing was lost
except the link-connection to your GitHub account.
 
> Help me to say thank you to your god for me.
 
It wasn't God who led you to attack me the way you did. That guidance
came from another source. By you agreeing to follow that guidance, it
was the harm you see which was reaped.
 
It is always that way with the guidance of the enemy.
 
It's why Jesus teaches us to obey Him in all things. We are not under
the Law so it's not a condition of our being saved, but it comes to our
witness, our walk, in doing what's right in this world despite our real
enemy coming to destroy everything (Satan).
 
Satan is real. He is a real enemy. His is our ongoing adversary. And
he is that which we are then able overcome when we ask Jesus to forgive
us, and are made alive spiritually. That new spirit life gives us the
ability to not respond to our flesh intentions, but instead we are able
to not respond as our flesh would want, but to listen to God and be,
from within, guided by Him.
 
https://www.biblegateway.com/passage/?search=1+Peter+5%3A8&version=KJV
 
8 Be sober, be vigilant; because your adversary the devil, as a
roaring lion, walketh about, seeking whom he may devour:
 
He wants to devour people. It is his only goal, to kill, steal, and
destroy that which God has created, which includes us as His creation:
 
https://www.biblegateway.com/passage/?search=John+10%3A10&version=KJV
 
10 The thief cometh not, but for to steal, and to kill, and to
destroy: I am come that they might have life, and that they
might have it more abundantly.
 
We are all consumed by the enemy's guidance, driven to rage, driven to
sin, in one way or another. It is only Christ taking away our sin which
gives us the ability to then say "No" to sin in a definitive way, to
rise above sin and operate in the spirit.
 
Jesus gives us this tremendous gift, which then changes us forever. We
still face many trials and battles in this world, but the core of our
very being is changed so that we no longer think as we used to, believe
as we used to, respond as we used to, and often to the utter astonishment
of even ourselves as we think we know us, but the new us is assertive,
and will move in ways that make us literally hang our mouths open and
say out loud, "Wow! Where did that come from?"
 
It is God living inside us spiritually, guiding us toward love and peace,
and away from the warring, hating things of the flesh.
 
--
Rick C. Hodgin
fir <profesor.fir@gmail.com>: Dec 05 08:33AM -0800

his is offtopic but maybe someone here will/would know
 
i dont like to read a weeks on tcp and sockets as this is a lot and confusing
(i prefer this time to spend on c/graphics etc)
 
i got some old tcp-server (on winapi winsock2) code, that worked but it was
not tested/inspected for being ok and was yet only working in blocking mode
 
the code goes
 
int SetupBlockingWinsockServer()
{
 
WSADATA wsaData;
WSAStartup(MAKEWORD(2,2), &wsaData);
 
/// Creating socket
 
servSock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
 
SOCKADDR_IN sin;
sin.sin_family = PF_INET;
sin.sin_port = htons(1111);
sin.sin_addr.s_addr = INADDR_ANY;
 
//bind
 
int retVal = bind(servSock, (LPSOCKADDR)&sin, sizeof(sin));
 
/// Trying to listen socket
 
retVal = listen(servSock, 10);
 
// Waiting for a client
 
ServClientSock = accept(servSock, NULL, NULL); return 1;
 
 
}
 
(i skipped the few lines of retvalue checking for errors for clarity)
 
my goal is just to turn it to non blocking without a lot of work but i would like to know this is ok
 
i checked experimentally via message boxes that it "blocks" on accept call
(block may be euphemism a bit here as it hang real hard, when no client is run then not only hourglass-pointer is shown, not only app gets fully unresponsible and non redraws itself but even closing it form task manager is hard, its possible but takes few seconds to kill)
 
what i did :
 
i added some line thet is supposed to set socked as nonblocked and move accept to separate function which i call then periodically (from run frame event)
 
int SetupBlockingWinsockServer()
{
 
WSADATA wsaData;
WSAStartup(MAKEWORD(2,2), &wsaData);
 
/// Creating socket
 
servSock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
 
SOCKADDR_IN sin;
sin.sin_family = PF_INET;
sin.sin_port = htons(1111);
sin.sin_addr.s_addr = INADDR_ANY;
 
//bind
 
int retVal = bind(servSock, (LPSOCKADDR)&sin, sizeof(sin));
 
/// Trying to listen socket
 
retVal = listen(servSock, 10);
 
// set no blocking
 
u_long no_block=1;
ioctlsocket(servSock,FIONBIO,&no_block);
 
}
 
int WaitForClientAccept()
{
/// Waiting for a client
 
ServClientSock = accept(servSock, NULL, NULL);
 
if(ServClientSock == INVALID_SOCKET) return 0;
 
 
u_long no_block=1;
ioctlsocket(ServClientSock,FIONBIO,&no_block);
return 1;
 
}
 
this last one is as i said run periodically on server app frame and when it return 1 (it means it gett accepted connection?) i flag out both server code to not call it more and
client not to send more connections
 
it seem to work but as this is my
own slight experimentation only i would like to get pproval/confirmation
that this is in fact ok
 
is this ok or is there something wrong with it?
 
(btw as a side questions, do i need those flaging out here, or if i connected i could not bother for flaging out more sendings for connections and checks for incomming connections? (i know it would be wastefull maybe to send it still 50 times a second after connection was accepted but besides this waste would it work? (if that would be work maybe sending it once a second would work as
automatic connection reboval when something would get disconnected?)
 
tnx for answer if someone know whats goin on in that sockets/winsock, i got not much time for that
 
(fir)
"James R. Kuyper" <jameskuyper@verizon.net>: Dec 05 10:43AM -0500

On 12/05/2017 01:11 AM, Stefan Ram wrote:
 
> cout << ++i << i++;
 
> now (i.e., according to the most recent draft) has defined
> behavior? I would have to rewrite my course notes, then.
 
It says "the order prescribed for the built-in operator". The only
operators which do prescribe the order of evaluation of their operands
are &&, ||, ?:, and the comma operator. That expression doesn't involve
any of those operators.
 
That expression is parsed as (cout << (++i)) << (i++). the evaluation of
i in ++i is sequenced before the evaluation of ++i, and similarly for
i++. the evaluations of cout and ++i are both sequenced prior to the
evaluation of cout << ++i. The evaluations of cout << ++i and i++ are
both sequenced before the evaluation of the entire expression. There are
no other constraints on the evaluation of the sub-expressions of that
expression. In particular, ++i and i++ are unsequenced relative to each
other, which is the key problem:
"If a side effect on a scalar object is unsequenced relative to either
another side effect on the same scalar object or a value computation
using the value of the same scalar object, the behavior is undefined."
(1.9p15)
The expressions ++i and i++ both have side-effects (incrementing the
value of i), and both perform value computations using the value of i.
Therefore, this expression has undefined behavior.
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Dec 05 03:35AM -0800

For some, a religion is all Christianity will ever be. They miss it.
 
Religion says, "If you do this, then you will achieve that." What
Christianity is is this: "You cannot achieve Heaven on your own
because you're riddled with sin. So, I will meet you at the point
of your sin and forgive you, making it then possible for you to
have that which you could not otherwise have."
 
When you apply this to Christianity it's God's love poured out for
us, despite our guilt, despite our sin, despite us having been rude
and mean and hateful and rejecting Him with everything in our lives
for even decades ... yet does He love us. Yet is He willing to forgive
us.
 
Christianity is not a religion
https://www.youtube.com/watch?v=azWJ-MtxR2Q
 
Why TRUE Christianity is NOT a religion
https://www.youtube.com/watch?v=4ZHKsAgg4Kk
 
I don't agree with the speakers on everything they write, say, or
do, but on these points they nailed it.
 
God comes to us while we are STILL sinners, He then cleanses us and
makes us whole, right, restored in God's sight, which then filters
in to the rest of our lives here by the new nature He also gives us.
 
True Christians do because we have been changed from within and it is
now our natural desire to do, not because of religious rituals.
 
--
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Dec 05 03:19AM -0800

Remember that with Jesus, it is love that's out front.
 
Even though you've sinned, even though you are guilty before Him ... He
still loves you. He wants to forgive you. He doesn't want to judge you.
He wants you to be a part of His Kingdom because of who you are.
 
Sin is the enemy.
Jesus takes sin away.
 
You need Jesus to take your sin away. Ask Him and He will forgive you today.
 
--
Rick C. Hodgin
Ian Collins <ian-news@hotmail.com>: Dec 05 07:51PM +1300

On 12/05/2017 09:36 AM, Chris Vine wrote:
>> fucking asshole, keep spamming different newsgroups
 
> Technically speaking I think guinness.tony is correct, in that "he is a
> fucking asshole" is profane but not swearing.
 
Profane and derogatory to donkeys.
 
--
Ian.
ram@zedat.fu-berlin.de (Stefan Ram): Dec 05 06:11AM

>|the operands are sequenced in the
>|order prescribed for the built-in operator
>.
 
Could someone be so kind as to elucidate whether the above
(together with: »The expression E1 is sequenced before the
expression E2.« in 8.8p4 [Shift operators]) really means
that
 
cout << ++i << i++;
 
now (i.e., according to the most recent draft) has defined
behavior? I would have to rewrite my course notes, then.
woodbrian77@gmail.com: Dec 04 04:44PM -0800

Would anyone like a demo of the C++ Middleware Writer?
https://github.com/Ebenezer-group/onwards
 
If you have a C++ 2017 compiler installed, it usually
takes less than 10 minutes.
 
I also have an offer to help someone who is willing
to use my software in their project. The details are
here --
http://webEbenezer.net/about.html
 
 
Brian
Ebenezer Enterprises - Enjoying programming again.
http://webEbenezer.net
"Öö Tiib" <ootiib@hot.ee>: Dec 04 04:04PM -0800

On Monday, 4 December 2017 22:38:24 UTC+2, Intelli2 wrote:
> Hello,
 
> Read this:
 
Why you copy paste from reddit discussion of 3 year ago?
https://www.reddit.com/r/rust/comments/27sbgr/oop_in_rust/
 
Better go and spam your comp.programming we can read reddit just fine.
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: