Free Speech Forum
Join our free speech forum! You can find such topics on Forum Oi:
Greetings and welcome to the DCPHP Blog . Whether you want to know what's going on, who's hiring, tips and tricks, or generally want to meet and talk with some other smart people, this is the place for you. We hope to be your one-stop shop for all things PHP in the Washington DC Metro region Mission of Love Charities, Inc is a community based non-profit geared towards building self-sustainability for families experiencing the effects of poverty.
Join our free speech forum! You can find such topics on Forum Oi:
Join our free speech forum! You can find such topics on Forum Oi:
Join our free speech forum! You can find such topics on Forum Oi:
Hi, Whitney. Here's my take on the issue.
https://www.experts-exchange.com/articles/19999/PHP-Design- Avoiding-Globals-with- Dependency-Injection.html
On Monday, March 27, 2017 at 8:24:57 AM UTC-4, Whitney Yiu wrote:Hi all,I am reading a book (PHP and MySQL Web Development - Thomson, Welling; 5th Ed.; Addison-Wesley) and am trying to understand the following passage regarding global variables:You can also use theglobal
keyword at the top of a script when a variable is first used to declare that it should be in scope throughout the script. This is possibly a more common use of theglobal
keyword.Can someone explain a use case for using a global variable at the top of a script? I thought that if a variable is declared outside of a function, then it is accessible throughout the script (except inside functions). I think I am missing something here.Thanks,Whitney
Hi all,I am reading a book (PHP and MySQL Web Development - Thomson, Welling; 5th Ed.; Addison-Wesley) and am trying to understand the following passage regarding global variables:You can also use theglobal
keyword at the top of a script when a variable is first used to declare that it should be in scope throughout the script. This is possibly a more common use of theglobal
keyword.Can someone explain a use case for using a global variable at the top of a script? I thought that if a variable is declared outside of a function, then it is accessible throughout the script (except inside functions). I think I am missing something here.Thanks,Whitney
Dear sangha,We had a great potluck a few weeks ago discussing how we might respond to this critical moment.We will be meeting again on Saturday, April 1 at Kristin Barker's. This is a time to support each other in the ongoing tumult, share ways to engage, and explore how we could work together as a sangha to be a force for love.Details:2005 Allen Place NW, #2, Washington DC 20009Saturday April 1Potluck 5 to 6Sit and discussion 6 to 8This event will be co-hosted by sangha member Nancy Murphy. Please RSVP to Nancy at nphlox@gmail.comThanks so much to Kristin and Nancy for hosting.P.S. For those interested in the sanctuary movement, there is a mid-day kickoff next Tuesday:Erin
Hi Whitney,
As a general rule, don't get in the habit of using global… ever. It blows through class and function walls and can create security holes. That being said, sometimes you have to maintain old code that still has it. If you run across it, make it your goal to refactor those out over time by passing variables and objects correctly through class and function properties.--
As far as having at the head of a file vs inside a function or a class, don't use it at all ;)
On Mar 26, 2017, at 10:08 AM, Whitney Yiu <wyiu416@gmail.com> wrote:
Hi all,
I am reading a book (PHP and MySQL Web Development - Thomson, Welling; 5th Ed.; Addison-Wesley) and am trying to understand the following passage regarding global variables:
You can also use theglobal
keyword at the top of a script when a variable is first used to declare that it should be in scope throughout the script. This is possibly a more common use of theglobal
keyword.
Can someone explain a use case for using a global variable at the top of a script? I thought that if a variable is declared outside of a function, then it is accessible throughout the script (except inside functions). I think I am missing something here.
Thanks,Whitney--
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to washington-dcphp-group+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/washington-dcphp-group?hl=en
---
You received this message because you are subscribed to the Google Groups "Washington, DC PHP Developers Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to washington-dcphp-group+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to washington-dcphp-group+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/washington-dcphp-group?hl=en
---
You received this message because you are subscribed to the Google Groups "Washington, DC PHP Developers Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to washington-dcphp-group+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi all,--I am reading a book (PHP and MySQL Web Development - Thomson, Welling; 5th Ed.; Addison-Wesley) and am trying to understand the following passage regarding global variables:You can also use theglobal
keyword at the top of a script when a variable is first used to declare that it should be in scope throughout the script. This is possibly a more common use of theglobal
keyword.Can someone explain a use case for using a global variable at the top of a script? I thought that if a variable is declared outside of a function, then it is accessible throughout the script (except inside functions). I think I am missing something here.Thanks,Whitney
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to washington-dcphp-group+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/washington-dcphp-group? hl=en
---
You received this message because you are subscribed to the Google Groups "Washington, DC PHP Developers Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to washington-dcphp-group+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
On Mar 26, 2017, at 10:08 AM, Whitney Yiu <wyiu416@gmail.com> wrote:Hi all,I am reading a book (PHP and MySQL Web Development - Thomson, Welling; 5th Ed.; Addison-Wesley) and am trying to understand the following passage regarding global variables:You can also use theglobal
keyword at the top of a script when a variable is first used to declare that it should be in scope throughout the script. This is possibly a more common use of theglobal
keyword.Can someone explain a use case for using a global variable at the top of a script? I thought that if a variable is declared outside of a function, then it is accessible throughout the script (except inside functions). I think I am missing something here.Thanks,Whitney--
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to washington-dcphp-group+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/washington-dcphp-group?hl=en
---
You received this message because you are subscribed to the Google Groups "Washington, DC PHP Developers Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to washington-dcphp-group+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In times of conflict or pain, a clear mind and an open heart can be our greatest allies. This day of practice offers the opportunity to sit and walk in silence, in a supportive community, and give full attention to our deeper feelings.
Periods of silent, independent practice will be interspersed with guided meditations on different aspects of the heart-opening quality of unconditional friendliness (metta).
Optional Q & A sessions will be offered in the morning and afternoon for those new to the practice or wanting additional guidance.
You are still welcome even if you can only make it for a portion of the day. However, to maintain a solid container for the practice, we ask folks to commit to at least the full morning (10 a.m.-12:30 p.m.) or full afternoon (2-5:30 p.m.) period.
This daylong (or half day) will be held on Saturday, April 1, 10am-5:30pm. Because of the instruction, the suggested donation for this program is $30-60.
For more information please visit https://imcw.org/Calendar/EventId/1884/e/daylong-awakening-the-heart-drop-in-1-apr-2017.
Join Bhante Y. Rahula on Thursday April 27, at 7-8:30 pm for nature's way to help reconnect the mind to its natural home, the present moment breathing body.
Sense stimulations trigger thoughts, emotions and reactions from deep within the mind/nervous system, yet our attention is focused mostly outside, or preoccupied internally with the past and future. Cultivating a mindful connection to the breathing body provides a closer access to notice and let go of unnecessary draining mental activity before getting lost and carried away.
The session will begin with a light guided meditation, then the dharma talk and afterwards brief time for Q and A.
Visit here for more information on Bhante Y. Rahula.
The suggested donation for this event is $10-15.
For more information please visit us at Lamont Dharma House at https://lamontdharma.org/calendar/.
--
You can also use theglobal
keyword at the top of a script when a variable is first used to declare that it should be in scope throughout the script. This is possibly a more common use of theglobal
keyword.
|
This message was sent to vijay156.internet@blogger.com from: Vanessa Bright | vanessafbright@gmail.com | Mission of Love Charities, Inc. | 6180 Old Central Avenue | Capitol Heights, MD 20743 |
The Buddha said that the source of both our suffering and our happiness is the mind. How can we rewire our thinking, through the practice of mindfulness, to calm ourselves and see more clearly in this frenetic and 'cloudy' world? The tool of mindfulness helps us see that the mind can be either the best of friends or the greatest enemy.
In times of conflict or pain, a clear mind and an open heart can be our greatest allies. This day of practice offers the opportunity to sit and walk in silence, in a supportive community, and give full attention to our deeper feelings.
Periods of silent, independent practice will be interspersed with guided meditations on different aspects of the heart-opening quality of unconditional friendliness (metta).
For more information, visit the Lamont Dharma House at https://lamontdharma.org/calendar/.
--
| |
MOLC is a nonprofit human services organization dedicated to meeting the immediate basic human needs of underprivileged and impoverished individuals and families in Prince George's County and surrounding communities. MOLC provides programs and services designed for short-term stability and provides training that equips individuals with skills necessary for long-term stability and growth. #8002 #379375 | |
| |
|
This message was sent to vijay156.internet@blogger.com from: Vanessa Bright | vanessafbright@gmail.com | Mission of Love Charities, Inc. | 6180 Old Central Avenue | Capitol Heights, MD 20743 |
Good afternoon All,--I wanted to let folks know about Off-the-Cushion. It's one of the newsletters put out by IMCW. You can subscribe to the newsletters by clicking on the link at the top right corner of the IMCW home page. It's a good way to find out about what the larger IMCW community is up to.I also wanted to share information about Buddhist Engagement that member of the Downtown Dharma Sangha have been considering based on the gathering that we held a few weeks ago.- Participation in the Sanctuary Movement- Buddhist engagement "Teach-ins"- Participating in rallies, etc.If you are interested any of these, be sure to come to the next potluck. We will be meeting again on Saturday, April 1 at Kristin Barker's. This is a time to support each other in the ongoing tumult, share ways to engage, and explore how we could work together as a sangha to be a force for love.Details:2005 Allen Place NW, #2, Washington DC 20009Saturday April 1Potluck 5 to 6Sit and discussion 6 to 8This event will be co-hosted by sangha member Nancy Murphy. Please RSVP to Nancy at nphlox@gmail.comThanks so much to Kristin and Nancy for hosting.P.S. For those interested in the sanctuary movement, there is a mid-day kickoff next Tuesday:---------- Forwarded message ----------
From: Insight Meditation Community of Washington <meditate@imcw.org>
Date: Fri, Mar 17, 2017 at 1:00 PM
Subject: Off the Cushion, March 17, 2017
To: scott.drewes@gmail.com
Meet the mindfulness community through off-the-cushion events
Off the CushionwithThe Insight Meditation Community of Washington
March 17, 2017
Tuesday, March 21, 11:45 a.m.-1 p.m.Foundry United Methodist Church1500 16th St., NWWashington, DCJoin us for the launch of DMV Sanctuary Congregation Network, a new network of congregations in the DC/MD/VA region working to provide support and solidarity to neighbors, friends and family who fear being detained, deported or profiled.
At noon we'll begin a 20-minute program, then walk together to the White House. We'll finish at 1 p.m.
Our faith will not let us permit the criminalization and scapegoating of immigrants and people of color. Let's take a stand for Safety For All. This effort is a partnership between Sanctuary DMV (IMCW is participating member) and PICO National Network.
Check out the Facebook Event Page to learn more.
People's Climate MobilizationLive WebinarTuesday, April 2, 12:30-2 p.m.Climate MarchSaturday, April 29Washington, DC & around the worldBeginning on April 2 at 12:30-2 p.m. with a live webinar, A Commitment to Deepening our Practice, featuring senior zen teacher and socially engaged Buddhism leader, Hozan Alan Senauke, One Earth Sangha and its partners are gathering the Buddhist presence at these events.Individuals and sanghas in the IMCW network have the opportunity to join Buddhist and Mindfulness communities in Washington, DC and around the world as we come together on April 29 in Washington DC and at sister marches around the world as part of the People's Climate Mobilization.We can see these events as a chance to initiate or confirm our communities' sustained engagement in the cause of environmental health and justice. Together we can bring the gifts of mindfulness and the Dharma and join with others in calling for the viability, dignity and freedom of all beings, near and far, born and yet to be born.Learn more about the mindful presence at these events and stay up to date on the One Earth Sangha event page. Details will also be posted on the One Earth Sangha Facebook page for this event.This is a wonderful opportunity to heed the call to engage, and, in keeping with the Buddhist Declaration on Climate Change, to give voice to all beings, embodying fierce compassion as a global community of spiritual practitioners.
Future generations, and the other species that share the biosphere with us, have no voice to ask for our compassion, wisdom, and leadership. We must listen to their silence. We must be their voice, too, and act on their behalf.~ A Buddhist Declaration on Climate Change
Volunteer
Volunteers are needed at Tara's class on Wednesdays to help set up before class beginning at 6:30 p.m. and to stay afterwards until 9:20 p.m. for clean-up. Volunteering includes set-up, greeting, selling books and audio, providing tea and snacks and other tasks as needed.
If you are interested in helping out at class, please contact Glen Harrison, Wednesday Night Coordinator. This is a great way to meet other sangha/ community members. We hope to hear from you!
Insight Meditation Community of Washington | P.O. Box 3, Cabin John, MD 20818
Unsubscribe scott.drewes@gmail.com Update Profile | About our service provider Sent by meditate@imcw.org in collaboration with
Try it free today
You received this message because you are subscribed to the Google Groups "IMCW Downtown Dharma social/volunteer listserv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to downtowndharma+unsubscribe@googlegroups.com .
To post to this group, send email to downtowndharma@googlegroups.com .
Visit this group at https://groups.google.com/group/downtowndharma .
For more options, visit https://groups.google.com/d/optout .