MESSAGE
DATE | 2016-04-27 |
FROM | Ruben Safir
|
SUBJECT | Re: [Hangout-NYLXS] hangout Digest, Vol 7, Issue 27
|
On 04/27/2016 02:27 PM, Paul Li wrote: > Hi Ruben, > Are you still conducting Linux kernel C lessons? >
After Passover. I hope we get more people though. I make EVERY announced meeting and I wouldn't mind some support because folks are benefiting. Also, as I said previously, I will try to move to the Brooklyn Marriot. More room, better food.
> Paul > > Please excuse typos. Sent via mobile. > >> On Apr 27, 2016, at 12:00 PM, "hangout-request-at-nylxs.com" wrote: >> >> Send hangout mailing list submissions to >> hangout-at-nylxs.com >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://www.nylxs.com/mailman/listinfo/hangout >> or, via email, send a message with subject or body 'help' to >> hangout-request-at-nylxs.com >> >> You can reach the person managing the list at >> hangout-owner-at-nylxs.com >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of hangout digest..." >> >> >> Today's Topics: >> >> 1. Re: error: unclosed character literal (Christopher League) >> 2. Don't forget to register: Is Your DevOps Team Employing >> Real-Time Communication? (IEEE CS Webinars) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Tue, 26 Apr 2016 09:48:46 -0400 >> From: Christopher League >> To: Ruben Safir , Hangout >> Subject: Re: [Hangout-NYLXS] error: unclosed character literal >> Message-ID: <87bn4wqy4h.fsf-at-lydrik.home.lan> >> Content-Type: text/plain; charset="utf-8" >> >> >> Yeah, I think this is because the single quote only works for a single >> character in C/Java so `'>='` is not allowed. Assuming the type of `op` >> is `String`, then you can do `op == ">="` or probably even better, >> `op.equals(">=")`. >> >> Comparing strings in Java with `==` is not always reliable, because it >> uses object (pointer) equality. If they are two different string >> objects, they'll register as not-equal, even if they have the same >> characters. Therefore, `op.equals(">=")` is recommended, because it >> actually looks at the characters. (Just like in C, you use `strcmp` >> instead of `==` for the same reason.) >> >> Another possibility that Java supports and C doesn't is that you can use >> a string in a switch: >> >> switch(op) { >> case ">=": >> case ">": >> // etc. >> break >> } >> >> and it compiles that to use `op.equals()` behind the scenes. >> >> CL >> >> Ruben Safir writes: >> >>> TypeCheckingVisitor.java:61: error: unclosed character literal >>> if(op == '>' || op == '<' || op == '<=' || op == '>=' ){ >>> >>> >>> The editor also indicates a parsing problem in the Java but I am at a loss. >>> >>> '<' seems to work >>> >>> >>> This is the code snippet >>> >>> //Comparison Operators >>> ?if(op == '>' || op == '<' || op == '<=' || op == '>=' ){ >>> ?if( (leftType == Type.INT && rightType == Type.INT) || (leftType== Type.FLOAT || rightType== Type.FLOAT)|| (leftType == Type.INT && rightType == Type.FLOAT)|| (leftType == Type.FLOAT && rightType == Type.INT ) ){ >>> ?return trace(ctx, Type.BOOL); >>> ?} >>> ? ? ?return typeMismatch(ctx, leftType, rightType); >>> >>> ?} >>> >>> -- >>> So many immigrant groups have swept through our town >>> that Brooklyn, like Atlantis, reaches mythological >>> proportions in the mind of the world - RI Safir 1998 >>> http://www.mrbrklyn.com >>> >>> DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 >>> http://www.nylxs.com - Leadership Development in Free Software >>> http://www2.mrbrklyn.com/resources - Unpublished Archive >>> http://www.coinhangout.com - coins! >>> http://www.brooklyn-living.com >>> >>> Being so tracked is for FARM ANIMALS and and extermination camps, >>> but incompatible with living as a free human being. -RI Safir 2013 >> -------------- next part -------------- >> >> Yeah, I think this is because the single quote only works for a single >> character in C/Java so '>=' is not allowed. Assuming the type of op is >> String, then you can do op == ">=" or probably even better, >> op.equals(">="). >> >> Comparing strings in Java with == is not always reliable, because it >> uses object (pointer) equality. If they are two different string >> objects, they'll register as not-equal, even if they have the same >> characters. Therefore, op.equals(">=") is recommended, because it >> actually looks at the characters. (Just like in C, you use strcmp >> instead of == for the same reason.) >> >> Another possibility that Java supports and C doesn't is that you can >> use a string in a switch: >> switch(op) { >> case ">=": >> case ">": >> // etc. >> break >> } >> >> and it compiles that to use op.equals() behind the scenes. >> >> CL >> >> Ruben Safir [1]ruben-at-mrbrklyn.com writes: >> >> TypeCheckingVisitor.java:61: error: unclosed character literal if(op >> == `>' || op == `<' || op == `<=' || op == `>=' ){ >> >> The editor also indicates a parsing problem in the Java but I am at >> a loss. >> >> `<' seems to work >> >> This is the code snippet >> >> //Comparison Operators ?if(op == `>' || op == `<' || op == `<=' || >> op == `>=' ){ ?if( (leftType == Type.INT && rightType == Type.INT) >> || (leftType== Type.FLOAT || rightType== Type.FLOAT)|| (leftType == >> Type.INT && rightType == Type.FLOAT)|| (leftType == Type.FLOAT && >> rightType == Type.INT ) ){ ?return trace(ctx, Type.BOOL); ?} ? ? >> ?return typeMismatch(ctx, leftType, rightType); >> ?} >> >> - So many immigrant groups have swept through our town that >> Brooklyn, like Atlantis, reaches mythological proportions in the >> mind of the world - RI Safir 1998 http://www.mrbrklyn.com >> >> DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 >> http://www.nylxs.com - Leadership Development in Free Software >> http://www2.mrbrklyn.com/resources - Unpublished Archive >> http://www.coinhangout.com - coins! http://www.brooklyn-living.com >> >> Being so tracked is for FARM ANIMALS and and extermination camps, >> but incompatible with living as a free human being. -RI Safir 2013 >> >> References >> >> 1. mailto:ruben-at-mrbrklyn.com >> -------------- next part -------------- >> A non-text attachment was scrubbed... >> Name: signature.asc >> Type: application/pgp-signature >> Size: 472 bytes >> Desc: not available >> URL: >> >> ------------------------------ >> >> Message: 2 >> Date: Wed, 27 Apr 2016 07:53:34 +0000 >> From: IEEE CS Webinars >> To: Ruben Safir >> Subject: [Hangout-NYLXS] Don't forget to register: Is Your DevOps Team >> Employing Real-Time Communication? >> Message-ID: <20160427075329.29356.71518.9D902B77-at-computer.org> >> Content-Type: text/plain; charset="utf-8" >> >> Having trouble reading this email? View it in your browser - http://news.computer.org/bf/EmailCampaign.php?lf1=7951541907c49375772807b56467580&urlid=516467 >> >> ? >> [How Temenos Manages Open Source Use, the Easy Way](http://www.whitesourcesoftware.com/ieee-webinar?lf1track=1 ) >> ? >> (http://www.whitesourcesoftware.com/ieee-webinar?lf1track=1 ) >> ? >> >> TIME: May 26, 9:00AM PT / 12:00PM ET >> >> Open source components are increasingly becoming a crucial part of software development. >> >> Open source reduces development costs, accelerates development and allows teams to focus on developing the company?s core technology. >> >> The extensive use of open source in commercial software requires engineering executives to set processes and measures that will enable their organization and their customers to make the most of what open source can offer without assuming the accompanying risks. >> >> These essential measures include keeping up-to-date open source inventory, managing licenses, and tracking security vulnerabilities and new versions. The significant growth in open source usage makes it impossible to manage these things manually, by using a spreadsheet. >> >> Attendees will learn: >> How and why open source should be managed Open source management as part of the continuous development environment How to easily set an enterprise-wide open source policy and automatically enforce it Martin Bailey, Product Director ? Enterprise Software, Temenos Group AG >> Rami Sass is CEO and Co-Founder of WhiteSource >> For webinar queries email: webinars-at-computer.org. >> >> [Join Us for this Essential Webinar, Click HERE](http://www.whitesourcesoftware.com/ieee-webinar?lf1track=1 ) [Register Here](http://www.whitesourcesoftware.com/ieee-webinar?lf1track=1 ) ?[How Temenos Manages Open Source Use, the Easy Way](http://www.whitesourcesoftware.com/ieee-webinar?lf1track=1 )? >> >> Date: March 26, >> 9:00AM PT / 12:00PM ET >> >> >> Presented by: Martin Bailey, Product Director ? Enterprise Software, Temenos Group AG and Rami Sass, CEO and Co-Founder, WhiteSource >> >> >> >> ? >> ? >> >> For webinar queries email:? [webinars-at-computer.org](mailto:webinars-at-computer.org?subject=Webinar%20Query ) >> >> Sponsored by: >> >> (http://news.computer.org/bf/EmailCampaign.php?lf1=3341541907e57745772807e56467722&urlid=516469 ) >> (http://news.computer.org/bf/EmailCampaign.php?lf1=3341541907d52225772807c56467812&urlid=516470 ) ? >> Click here to unsubscribe - http://news.computer.org/ef1/emunsub.php?em=63da5781d300c74004bf494eb14ba2cc82f13a206e0b16eadfdf45bb4d97cf5e&li=ea90b8c0f55bfa4fda343ebd4f57aa3d&ci=ac09316dc9396f531c0028fba9411c51>Click here to unsubscribe >> >> >> 10662 Los Vaqueros Circle, Los Alamitos, CA 90720 >> -------------- next part -------------- >> >> Having trouble reading this email? [1]View it in your browser. >> >> IEEE Computer Society Webinar Series >> >> [2]Accelerating DevOps with Real-Time Communication >> Corporate Perimeter >> >> Date : Tuesday, May 3, 2016 >> 11:00 AM PST / 2:00 PM ET >> >> This FREE webinar addresses real-time communication as a critical >> component of DevOps success. >> How well does your team communicate? IT teams in all industries are >> under intense pressure to accelerate application life cycles while >> launching prompt and frequent releases. Real-time distributed >> communication enables DevOps automation and helps teams to communicate >> more effectively. >> Hear from a true DevOps evangelist, Bernard Golden, CEO, Navica, who >> has worked with a wide variety of teams to solve inherent >> communications challenges that typically accompany DevOps team >> interaction. Named by Wired.com as one of the ten most influential >> persons in cloud computing, Bernard Golden also serves as the cloud >> computing advisor for CIO Magazine. >> >> Key topics addressed will include: >> * Using real-time communication tools to launch a DevOps program >> * How distributed communication tools enable groups to collaborate to >> solve time-sensitive problems >> * How to spread a DevOps program throughout geographically >> distributed workgroups >> >> >> [3]Don't wait! Click here to Register Now. >> [4]Register Here >> Register here >> "[5]Accelerating DevOps with Real-Time Communication" >> Date: >> Tuesday, May 3 >> 11:00AM PST / 2:00PM ET >> Speaker: DevOps evangelist, Bernard Golden, CEO, Navica >> Busy on the day of the live event? Simply register now and access as >> per your convenience. All webinars are available on Demand for 12 >> months after the live event. >> For webinar queries and certificates email: >> >> [6]webinars-at-computer.org >> Sponsored by: >> [7]IEEE [8]IEEE Computer Society >> >> [9]Click here to unsubscribe >> >> 10662 Los Vaqueros Circle, Los Alamitos, CA 90720 >> >> [emopen.php?emo=7af6cf4afc05b5b60db905363445a8b0] >> >> References >> >> Visible links >> 1. http://news.computer.org/bf/EmailCampaign.php?lf1=7951541907c49375772807b56467580&urlid=516467 >> 2. http://news.computer.org/bf/EmailCampaign.php?lf1=1981541907a58275772807a56467644&urlid=516468 >> 3. http://news.computer.org/bf/EmailCampaign.php?lf1=1981541907a58275772807a56467644&urlid=516468 >> 4. http://news.computer.org/bf/EmailCampaign.php?lf1=1981541907a58275772807a56467644&urlid=516468 >> 5. http://news.computer.org/bf/EmailCampaign.php?lf1=1981541907a58275772807a56467644&urlid=516468 >> 6. mailto:webinars-at-computer.org?subject=Webinar%20Query >> 7. http://news.computer.org/bf/EmailCampaign.php?lf1=3341541907e57745772807e56467722&urlid=516469 >> 8. http://news.computer.org/bf/EmailCampaign.php?lf1=3341541907d52225772807c56467812&urlid=516470 >> 9. http://news.computer.org/ef1/emunsub.php?em=63da5781d300c74004bf494eb14ba2cc82f13a206e0b16eadfdf45bb4d97cf5e&li=ea90b8c0f55bfa4fda343ebd4f57aa3d&ci=ac09316dc9396f531c0028fba9411c51 >> >> Hidden links: >> 11. http://news.computer.org/bf/EmailCampaign.php?lf1=1981541907a58275772807a56467644&urlid=516468 >> >> ------------------------------ >> >> Subject: Digest Footer >> >> _______________________________________________ >> hangout mailing list >> hangout-at-nylxs.com >> http://www.nylxs.com/mailman/listinfo/hangout >> >> >> ------------------------------ >> >> End of hangout Digest, Vol 7, Issue 27 >> ************************************** > _______________________________________________ > hangout mailing list > hangout-at-nylxs.com > http://www.nylxs.com/ >
-- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013 _______________________________________________ hangout mailing list hangout-at-nylxs.com http://www.nylxs.com/
|
|