I. If you are concerned about crime in your neighbourhood and wish to implement a NEIGHBOURHOOD WATCH program in your area, you must first contact the Police Services Community Relations or Crime Prevention Bureau. If there is a program already organized in your area, you will be referred to the local program representative who will assist you in getting involved.
II. If there is not a program ongoing in your area, you should follow these steps:
Canvass your neighbourhood to determine how many of your neighbours are as concerned as you, and those who are interested in participating in the program. This may be done by contacting them in person, distributing pamphlets door to door or by mail delivery.
After this has been completed and you are confident you have neighbours interested in participating, arrange for a meeting place large enough to hold your group or arrange for a zoom information session.
Contact the Police Liaison (crime prevention officer) to arrange a mutually agreeable date and time for the meeting.
Establish a map outlining your NEIGHBOURHOOD WATCH boundaries, dividing your area into blocks,
At the meeting, the Police Liaison will explain the NEIGHBOURHOOD WATCH concept, Home Security Audit, Crime Prevention Through Environmental Design (CPTED), and the method of reporting incidents to the Police Services. Your purpose of the meeting will not only be to convey this information to your neighbours, but also to identify Block Captains and Assistants for those Blocks not having a volunteer. One volunteer on each block will ensure at least one candidate for Block Captain or Assistant. Once the above steps are completed, check with the local Police Service or local representative of Neighbourhood Watch in your area as to the requirements needed for recognition of the Neighbourhood Watch program. Neighbourhood Watch is different in each community, in some the Police Services Liaison will require complete residents list and in others, the names of the Watch Coordinator and Block Captains are sufficient.
III. Time and houses:
We try to get 50% of the houses in the area to participate but that is not a hard and fast rule.
When you think you have enough buy in to cover the desired area the we can look into booking a meeting.
There is a 3 month wait period to ensure the group is going well prior to us contacting the city.
The meeting began, introducing our neighborhood watch group and Officer.
Officer demonstrated home safety and neighborhood watch
Officer, with 20 years of police experience. Returned to our next door police station two years ago. Now in charge of the crime prevention department. Including family, business, school, church, home safety, personal safety, and neighborhood watch.
Crime prevention: home safety, house, cash, and vehicle safety. Safety and security, such as home safety, preventing thieves
Live on a small island. When leaving home, unattended, Neighborhood Watch can help neighbors who are away from home on holiday.
Personal safety: Pay attention to your surroundings. Wearing earphones on the street has the risk of resistance-traffic and the risk of being stolen. Be alert and report suspicious people or things to the police. It is safer to travel with several people than to travel alone.
Dark and bright: Criminals like dark places, bright places (such as installing LED lights) for extra safety. Screaming for help may scare off criminals
Distracted theft: Partnership robberies often use methods that distract you. Do not leave your wallets, handbags, important items, merchandise in unattended carts or cars. The thieves will use the time when you are distracted and attracted by another partner thieves to steal your belongings.
Bank card: protect your password. Pay attention to cover when inputting. Someone will use the camera to zoom in to peek at your password. Sometimes, if there is an extra slot on the outside of the ATM machine, pull it by hand to make sure it is not a device for secretly reading bank cards.
Dangerous stranger: The stranger calls the door and asks through the door. Let the other party know that the adult is at home.
Identity theft: Don’t leak personal information type SIN card numbers, etc. on the phone or online.
Home safety: install cameras and install fences. Precautions for installing fences: thieves like fences that are too high to block the line of sight. The majority (60%) of thieves would jump over the fence in the backyard to steal. 20% of thieves will walk through the front door, and the remaining 20% will use windows, garages or other means. Independent houses that cannot be seen by neighbors, where trees obstruct the entrance, and other places obstructing the surrounding sight, are places where thieves like to enter.
Compare the tree obstructing the line of sight and inserting branches. Thieves usually drive in one place to start, leave quickly, and then go to another remote area to re-select the place to start. To avoid the chance of being caught.
Fence comparison: The bad guys may go over the fences that completely block the surrounding view. The thorny flowerbed under the fence sometimes reduces the risk of the bad guys.
Front entrance protection. The depth of the front door lock frame screws will affect the protection of the lock. Other locks are good, but if the wooden door frame is not good, it is easy to be kicked open. Increasing the iron bars on the door frame can better protect the safety of the original wooden door frame.
It is very good to install the induction lamp at the main entrance. It can remind people around when it is turned on and off at night. Improve safety.
Front entrance protection. The glass protective film installed on the front door and window can enhance the protection strength and is not easy to be broken.
Camera protection. The front and back doors are protected. If a good camera is not in the right position, it will not be able to see the face and clothes of the other party, and it will not help much. Neighbors watch and help each other. Neighbors can see, send messages, call, and check the surrounding vehicles, all of which can help improve safety. Thieves often park their cars on the back street, and neighbors watch each other, and they may notice suspicious vehicles parked next to them.
Camera registration. The York area camera registration website https://www.yrp.ca/en/crime-prevention/Security-Camera-Registry.asp can help improve community safety.
Security system. The first goal of thieves is usually the bedroom to improve their efficiency. The security system has doors, windows, infrared sensors and other equipment. The alarm and light-emitting devices outside the security system house can attract the attention of neighbors.
Unlocked door: The police officer noticed that people often did not lock the door. Except in the case of lost car and property, some people put the key in the car, so that the thief used the key to enter the house, and the doors and windows showed no signs of damage.
In the parking lot: People often forget their parking space and press the emergency button, which reminds themselves and the thief. It’s not safe if a burglar stands by your car. Remember your parking space.
Before approaching your car, take a look at the surroundings.
Underground parking lot, pay attention to the surrounding conditions. If there is building security, report suspicious people and cars.
Warm-up thieves and license plate thieves. Do not leave the car while warming up
Freight thief: In the case, it was found that the thief directly drove into the stolen car in the container.
Crime stopper is an anonymous report call. 1-800-222-8477 (tips). Suitable for anonymous reporting.
The city government has prepared five signs to be placed on the two main streets in our group. Everyone confirms the location of the entrance and exit of the street.
Break through barriers: Neighbors Watch will solve most problems within the community, including child safety.
The role of the liaison officer: better use e-mail than the phone. In case of emergency, please call 911. For non-emergency situations, please call 905-881-1221. Officer helped us answer community safety questions and contacted the city government to set up signs.
Here is a the python way of saying “Happy Mother’s Day”
Let’s put these code in pycharm and run it for Mom.
first one can run on trinket.io
motherday1.py
print('\n'.join([''.join([('Love'[(x-y) % len('Love')] if ((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3 <= 0 else ' ') for x in range(-30, 30)]) for y in range(12, -10, -1)]))
Then, we need add some color for this heart. Since we are import modouls, following program can only run in pycharm. If you want to know how to download pycharm, please check on this link Python environment guide [Pycharm IDE] .
motherday2.py
import colorama RED = colorama.Fore.RED + colorama.Style.BRIGHT print(RED+'\n'.join([''.join([('Love'[(x-y) % len('Love')] if ((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3 <= 0 else ' ') for x in range(-30, 30)]) for y in range(12, -10, -1)]))
If you receive error on missing module colorama, you know there are 2 ways to install this module as we tought in class. one way is : pip3 install colorama
Next, add more colors , flowers, sleep delay, random space in left, and loops with dynamic colorful result
# Print header for i in range(1, 35): print('') # *s position heartStars = [2, 4, 8, 10, 14, 20, 26, 28, 40, 44, 52, 60, 64, 76] # Position of space heartBreakLines = [13, 27, 41, 55, 69, 77] # Empty column position of rose flowerBreakLines = [7, 15, 23, 31, 39, 46]
# add new column def addSpaces(a): count = a while count > 0: print(' ', end='') count -= 1
# add new line def newLineWithSleep(): time.sleep(0.3) print('\n', end='')
play = 0 while play == 0: Left_Spaces = randint(8, 80) addSpaces(Left_Spaces) # draw heart for i in range(0, 78): if i in heartBreakLines: newLineWithSleep() addSpaces(Left_Spaces) elif i in heartStars: print(RED + '*', end='') elif i in (32, 36): print(GREEN + 'M', end='') elif i == 34: print(GREEN + 'O', end='') else: print(' ', end='') newLineWithSleep() addSpaces(randint(8, 80)) print(CYAN + "H a p p y M o t h e r ' s D a y !", end='') newLineWithSleep() newLineWithSleep() Left_Spaces = randint(8, 80) addSpaces(Left_Spaces) # draw flower for i in range(0, 47): if i in flowerBreakLines: newLineWithSleep() addSpaces(Left_Spaces) elif i in (2, 8, 12, 18): print(MAGENTA + '{', end='') elif i in (3, 9, 13, 19): print(MAGENTA + '_', end='') elif i in (4, 10, 14, 20): print(MAGENTA + '}', end='') elif i in (27, 35, 43): print(GREEN + '|', end='') elif i in (34, 44): print(GREEN + '~', end='') elif i == 11: print(YELLOW + 'o', end='') else: print(' ', end='') print('\n', end='')
Companies that are driven by technology and use algorithms to make decisions are growing wildly, leaving veteran Internet giants in panic.
Replace people with algorithms, this is happening.
Before we read the news, Alpha Dog Go defeated humans, and AI played Dota to defeat quasi-professional players.
On the one hand, we are worried about being replaced by artificial intelligence. On the one hand, we feel that the day of being replaced is far away: artificial intelligence plays Go, but it is not enough to be productive in many fields.
The premise of “very distant” is: artificial intelligence wants to imitate people, and then surpass people, which is difficult. Because of human emotions, thinking is something that machines can hardly simulate.
Humans are arrogant here.
Because as long as one kind of productivity is more efficient than the old one, then the old one will be replaced.
Algorithms surpass humans, that is, they surpass humans without imitating humans at all.
“Flow” technological change
Regarding the issue of “flow”, there have been three obvious stages in the last 20 to 30 years.
(1) First stop, flooding traditional media
The 1990s were the golden age of newspapers and television media. This is the earliest time when people come into contact with a single medium.
During that time, the media and advertising companies were the most beautiful places. A lot of talents are there.
(2) At the second stop, someone started to think about the scene and experience
Here, the leader will be the product manager. They start to think about “scenes” and “interactions”-I think what users should do in this situation will have a better experience.
They are responsible for thinking: I think users should have a better experience in this situation.
Even, they said: Users don’t know what they want, I’ll define what users want.
Define what the user wants. And it also defines success as genius.
To make products, we must rely on “users think this is better”, but not “I think, users will think this is better.”
So, how do you perceive “user perception”? Three ways:
① Talk to the user.
② As a user, experience it yourself.
③ User behavior data.
Traditional Internet companies make use of ① and ②, and they call this “user research”.
They use “true smart people, all work hard.” To praise excellent product managers. This means that the smarter and more experienced you are, the more you have to walk into users and get to know them.
Otherwise, it is easy to fall into empirical judgment-“I think, users will think.”
And this judgment is often not credible.
This is because the user’s behavior data is not collected enough, not good enough, and the algorithm design is not beautiful enough. They believe that their judgment of eyes and hearts is better than that of data algorithms.
However, the data will get better because it gets better faster than people grow faster.
When it becomes more credible than human experience judgment, we will come to the third stop.
(3) The third station is algorithm-driven.
Design from the aspects of data sampling, data utilization, and algorithm construction.
This is a change:
① Product thinking scenarios and interactions; engineers to implement; users give feedback; return to the first step.
② Engineers design algorithms; engineers request data; product thinking how to get data; product design scenarios and interactions; engineers to implement; data to give feedback; return to a previous step.
Later, we will continue to give examples.
Technological change is happening now
When the algorithm’s ability is getting stronger and stronger, until one day it breaks a threshold, which is the average effect of human work.
Then the algorithm will kill most people’s work in an instant.
And the remaining handful of people will be killed by the algorithm a little bit.
Because the evolution of the algorithm is faster than human learning.
The old productive forces have been replaced by ruin. This kind of thing has happened too many times in human history, especially in recent years.
People started spending online.
Things were gentle at the beginning: some companies began to work harder to recruit algorithm engineers.
Just like now, what is happening.
We have talked about a lot of content in this manuscript, but the core sentence is just one: the algorithm replaces people, and it happens in the present.
If it is replaced, it is an inescapable fate. So as an individual, how should one deal with this matter. -Embrace technology.
To add a case, Netflix.
Maybe you haven’t heard of it, it’s simply the one who made “House of Cards”.
But this company is not simple. In June of this year, its market value was more than 180 billion US dollars, and its price-earnings ratio exceeded 300 times.
Even the same industry, the traditional spoiler Disney, has a market value of $ 168 billion.
This is an explanation of the price-earnings ratio. The price-earnings ratio of general technology companies is tens.
But netflix can reach three hundred.
The meaning behind it is that one side is high risk, and the other side is: it is overvalued by capital, and capital likes it.
So the question is, what business is such an entertainment giant doing?
Netflix was the earliest retailer. Later, it transformed into what it is now.
It shows people, but also makes plays, such as the house of cards.
The difference is that all its users are paid users. It’s just that you have a one-month free trial.
It does a very good recommendation algorithm. Based on what you have seen, based on your preferences, based on your identity information … to recommend content to you.
Now it’s time to talk about what it does with algorithms.
Use algorithms to intervene in content selection and production. Director David Finch once took the adapted playbook of “House of Cards” and found many TV stations in the United States, but none of them dared to pay for it. No one can say whether an old play 20 years ago still has a market.
Netflix conducted a “TV drama consumer habits database” analysis, they found that the audience who likes to watch the 1990 BBC version of “House of Cards” is also a fan of the ghost director of “Social Network” and “Seven Deadly Sins” David Finch, They are also loyal fans of Oscar-winning actor Kevin Spacey. With powerful big data analysis support, Netflix can fully predict the audience and market response, integrate fans of the original “House of Cards” and Kevin Spicer and David Finch fans, and invest in the new version. House of Cards, a hit.
Use algorithms to make interest recommendations.
Netflix has been holding large competitions to recruit talents to improve its data mining processing capabilities. At the end of 2005, Netflix set up a million dollar prize collection algorithm and architecture that can increase the performance of its recommendation system by 10%. In the end, a team of engineers, statisticians, and research experts won a million prizes and successfully increased the recommendation efficiency of the Netflix movie recommendation engine by 10%.
Corresponds to the utilization algorithm. Many times, algorithms are also using people.
People need benefits, and algorithms need data—a large amount of data that is easy to calculate.
Netflix also made a lot of efforts to feed the data to the algorithm.
Infrastructure In 2010, Netflix completed two data migrations, the first was to migrate the Netflix data center to Amazon AWS, and the other was to migrate the Oracle database to SimpleDB. By 2011, it was migrated from SimpleDB to Cassandra. Using the routing configuration provided by Cassandra, the cluster can be deployed on multiple continents.
Modification of product form
They eliminated the five-star scoring mechanism and changed it to good and bad, a single judgment.
They cancel the user comment function.
This is done to make the data cleaner and reduce interference factors.
In the eyes of traditional product managers, this is a bold decision.
But netflix did it because the starting point was different. Netflix needs to organize the data and feed it to the algorithm to allow the algorithm to produce benefits.
They trust algorithms and outperform human judgment.
In beginning of our Python Programming Basic class, we use web version python code you run on trinket. You may ask “How can I run Python code on my computer out of the trinket environment?”. Yes, this is a good question. We learn Python to be used in a real environment on our local computer. Next, let me introduce you to the common methods of building a Python environment. In our later part Python Programming Basic class and Python Crawler Advance class, we use Pycharm as our local python IDE.
PyCharm is a cross-platform editor developed by JetBrains. Pycharm provides all the tools you need for productive Python development. Among many editors, Pycharm is relatively friendly to new users. On the one hand, it will automatically complete the code. For example, if you write the front quotes, it will automatically fill in the back quotes; on the other hand ( More importantly) It will prompt you when the code is written. Therefore, the first article we recommend in the editor recommends Pycharm.
This article is divided into three parts, namely Installing Python, Third-party library installation and Installing Pycharm and use
Below are the detailed steps for installing Python and PyCharm
Installing Python
Step 1) To download and install Python visit the official website of Python https://www.python.org/downloads/ and choose your version. We have chosen currently latest Python version. Click the Download button to enter the download page, there are a variety of versions at the bottom to choose from. We choose the appropriate version according to our system type (32-bit or 64-bit) and click to download, generally we choose executable installer. The differences between the various versions are: embeddable zip file: embedded version, can be integrated into other applications web-based installer: network installation executable installer: executable file (* .exe) installation We selected Windows x86-64 e installer here, double-click to open after the download is complete, you can see the interface as shown below:
Step 2) Once the download is complete, run the exe for install Python.
Note: first check all the boxes. The Add Python 3.8 to PATH circled in the figure must be checked, otherwise ‘python’ will give error after installation. then click Install Now
Step 3) You can see Python installing at this point.
Step 4) When it finishes, you can see a screen that says the Setup was successful. Now click on “Close”.
Step 5) After closing the installation interface, we use the win + r shortcut key to open the run window, enter cmd in the run window, and click the OK button to open the command prompt, which is the command line.
Step 6) Enter python in the command prompt window and press Enter. When you see the version information of Python, you have entered the Python interactive environment. Then we can enter the python code after >>> to execute.
Install on Mac Mac generally comes with Python, but the version is older. Next, let ’s talk about how to install the latest one. Choose one of the following two methods:
Go to the official website to download and install like Windows; Install through Homebrew. If Homebrew is already installed, simply execute in the terminal:
brew install python3
Manually run python program in command line is hard. The more recommended way is to use an editor or IDE to create a py file to write and run code. A good coding tool can greatly improve coding efficiency. Here, we recommend using vscode or pycharm.
Third-party library installation
The reason why Python is so powerful is inseparable from its rich third-party libraries. Next we look at how to install third-party libraries.
Python uses pip to manage third-party libraries. Python 2.7.9 or Python 3.4 and above all come with pip tools, which we can use directly.
First, we open the command prompt window by the method mentioned above, then enter the name of the third-party library pip install and press Enter to start the installation. For example, we want to install the requests library, just type
pip install requests
and then press Enter key to install
It should be noted that the command is entered directly in the command prompt window(or in Terminal window in pycharm). Many students open the command prompt, enter python, and then install the command. This is wrong.
Step 2) Once the download is complete, run the exe for install PyCharm. The setup wizard should have started. Click “Next”.
Step 3) On the next screen, Change the installation path if required. Click “Next”.
Step 4) On the next screen, Check all boxes first, which create a desktop shortcut, associate .py and add PATH. Then click on “Next”.
Step 5) Choose the start menu folder. Keep selected JetBrains and click on “Install”.
Step 6) Wait for the installation to finish.
Step 7) Once installation finished, you should receive a message screen that PyCharm is installed. (After the installation, the computer will be required to restart, select the one above to automatically restart, select the next one to manually restart. choose either one is ok). click “Finish”.
Step 8) Find your new installed PyCharm program on desktop . double click to Open it.
Step 9) After you open Pycharm, you will be asked if you want to enter the previous settings. For the first installation, select “Do not import”
Step 10) Privacy policy, please check if you have no patience, then continue
Step 11) Click Create New Project, or Open your folder. We suggest create a folder on desktop name python, then open the folder python on desktop. In our class, we need to create at least 3 folders under python: python1, python2, python3 for your diffrent levels of python class.
Step 12) If you haven’t create folders in pycharm before, it is easy, Just right click on python folder in left side, select New, then select Directory .
Step 13) type in name of directory , for example, python1, press Enter . Create python1 folder
Step 14) Right click on python1 folder in left side, select New, then select Directory . type in name of 1st class in Python Programming Basic class, 1print function and variables (You can go to 1st Basic class and copy the class name from lemonthy.ca), press Enter
Step 15) Right click on 1print function and variables folder in left side, select New, then select file. type in name of 1st execs in Python Programming Basic class, 101No_quotes.py (You can go to 1st Basic class and copy the exec name from lemonthy.ca), press Enter
Step 16) double click on new file 101No_quotes.py. type your code in 1st class. There are 3 ways to run the code: 1. right click on empty space of code on screen , then select Run 101No_quotes.py . 2. or you can click green triangle run button on top right side of toolbar. 3. you can press shortcut key Ctrl+Shift+F10
The last is our intergrated Anaconda. Anaconda is a large collection that includes Python and its commonly used tools and modules. For beginners, just installing Anaconda is enough! Please google how to install Anaconda . and follow the instruction to install