Stay Out Of The House Lock Code

0 views
Skip to first unread message

Frida Kosofsky

unread,
Aug 4, 2024, 5:28:12 PM8/4/24
to blabolunse
TheResidential Code of Conduct covers topics on everything from alcohol use to disruptive behavior to threats to safety and verbal harassment, and even key use and posting flyers. Residents are accountable for knowing and adhering to both the UC Berkeley Student Code of Conduct and the Residential Code of Conduct, which is a subset of the Berkeley code.

A. Possession, consumption, distribution, or being in the presence of alcohol by residents under the age of 21 is prohibited. This includes all other use of alcohol in violation of state law or University policy.


C. Bulk quantities of alcohol, (i.e. quantities that could not reasonably be consumed responsibly in a single sitting by the individual(s) present), as well as common containers, and the manufacturing of alcohol, as well as games and/or devices used or intended for the rapid consumption of alcohol, are prohibited.


A. Possession, use, manufacture, sale, distribution, consumption, or being in the presence of illegal drugs, controlled substances and/or marijuana (including medical marijuana), and including paraphernalia containing controlled substances or residue of controlled substances, is prohibited


B. Students are expected to respect the reasonable privacy of other individuals within University housing; thus, photographing, audio or video recording without the knowledge and consent of all participants is prohibited. In particular the use of cameras, cellphones and video equipment in University Housing restroom facilities and/or other areas that could be considered sensitive in nature is also prohibited.


The use of sporting equipment (e.g., skateboards, scooters, bicycles, rollerblades, etc.) is prohibited in residential facilities, including interior and exterior walkways. Throwing and/or kicking objects or engaging in any other behavior that interferes with, or prohibits, reasonable use of the space by others is also prohibited.


A. Resisting or interfering with the directives of a University staff member acting within the scope of their duties, including, but not limited to, the failure to open room doors or produce identification, is prohibited.


Knowingly providing false and/or dishonest information to a residential staff member to interfere with staff acting within the scope of their duties, gaining unauthorized entry into a residential or dining facility, a sponsored event, or to access restricted equipment is prohibited.


A. Disrupting quiet hours, defined as the time between 11pm and 8am Sunday-Thursday and 1am and 10am Friday-Saturday, with unreasonable noise is prohibited in all residential facilities, courtyards and surrounding areas. Unreasonable noise is any noise that disrupts or potentially disrupts the lives of residents or neighboring community members.


B. Disrupting Courtesy Hours, which are in effect 24 hours a day, 7 days a week, and which can be broken by any unreasonable noise that disrupts or potentially disrupts the sleep or studying of other students at any time is prohibited.


A. Smoking or use of a vape of any kind is not permitted within University housing or within properties owned or leased (e.g., courtyards, parking lots, etc.) by UC Berkeley. This prohibition is inclusive of the use of all tobacco and nicotine products, including cigarettes, cigars, smokeless tobacco, electronic cigarettes.


A. Theft, unauthorized use, or possession of any property when the resident had knowledge or reasonably should have had knowledge that it was personal or University property, equipment and/or resources is prohibited, including, but not limited to, the removal of equipment/furniture from, and being in possession of any other property.


B. Use of any University resources (e.g., common area, University logo, unapproved short-term rentals or subleasing, etc.) for a for-profit activity is prohibited unless as part of a Residential LIfe sponsored event.


A. Participation in activities or disturbances that threaten the health and safety of yourself or others is prohibited, including any violation or noncompliance of federal, state, local, and/or university public health directives or guidance.


A. Entrance to any private room or normally locked building/common area without following security procedures, or obtaining appropriate permission from a Residential staff member or other approved University staff, is prohibited. This includes failing to show proper identification at designated security booths.


B. Accessing known or marked restricted areas is prohibited, including, but not limited to, roof access doors, rooftops, ledges, seismic bracing, fire escapes, construction areas, and any other area or space that a residential staff member declares to be restricted.


Possession of weapons, firearms (with or without a permit), tasers, knives with a blade over 2.5 inches in length, dangerous instruments, or any other weapon prohibited by state, local, or federal law, within all residential facilities is prohibited. This includes use or possession of sporting items such as BB guns, paintball guns, and archery equipment. Also included are similar items used for decorative purposes and items rendered inoperable.


A. Use or possession of explosives, flammable substances, or any object that creates an open flame is prohibited. Examples include firecrackers, gasoline, lighter fluid, candles, incense, hookahs and flame starters.


B. Blocking indoor or outdoor stairwells, corridors, pedestrian paths, or balconies with bicycles, mopeds, or any personal item is prohibited. Examples include locking bicycles to railings, leaving shoes, umbrellas or other objects in the hallway, or parking mopeds on walkways.


C. Use or possession of appliances that produce heat or flame are prohibited outside of designated kitchen spaces. UL approved coffee makers, tea kettles and personal irons are permitted in residential rooms.


A. University provided furniture, including mattresses, may not be removed from residential rooms without written permission from the Residence Hall Facility Manager. Mattresses must be kept on the provided bed frame and furniture may not be stacked or assembled atop bricks, bookcases, or other structures not originally designed to support it.


B. Large and/or unapproved appliances are not permitted in any residential facilities. Residents who wish to have a refrigerator or microwave in their room must rent these appliances from the approved University vendor.


Motorized vehicles, including scooters, motorcycles, mopeds, hoverboards, smart boards and balancing boards may not be operated within residential facilities. Motorized Vehicles are allowed to be stored and charged if UL-Certified. Scooters (above 45 cc or electric equivalent), Mopeds (above 45 cc or electric equivalent), and motorcycles may not be stored or charged within residential facilities.


C. Tampering, interfering with or manipulating the elevators and related machinery in any residential facility is prohibited. Examples include removing button plates, pulling open or close doors, touching wiring or lighting, jumping up and down in the carriage, and pushing the alarm bell unnecessarily.


Residents are not permitted to store personal items outside of assigned residential spaces, including common areas, lounges, balconies, and restrooms. This prohibition is inclusive of the storage of bicycles. Bicycles may only be stored in designated parking or bike storage areas.


Removing, defacing, damaging or destroying University property or the property of others, including, breaking windows and doors, drawing on walls or bulletin boards and disposing of trash outside of appropriate receptacles is prohibited.


I note that no one has mentioned in their answers to this old question that releasing a lock upon an exception is an incredibly dangerous thing to do. Yes, lock statements in C# have "finally" semantics; when control exits the lock normally or abnormally, the lock is released. You're all talking about this like it is a good thing, but it is a bad thing! The right thing to do if you have a locked region that throws an unhandled exception is to terminate the diseased process immediately before it destroys more user data, not free the lock and keep on going.


Look at it this way: suppose you have a bathroom with a lock on the door and a line of people waiting outside. A bomb in the bathroom goes off, killing the person in there. Your question is "in that situation will the lock be automatically unlocked so the next person can get into the bathroom?" Yes, it will. That is not a good thing. A bomb just went off in there and killed someone! The plumbing is probably destroyed, the house is no longer structurally sound, and there might be another bomb in there. The right thing to do is get everyone out as quickly as possible and demolish the entire house.


I mean, think it through: if you locked a region of code in order to read from a data structure without it being mutated on another thread, and something in that data structure threw an exception, odds are good that it is because the data structure is corrupt. User data is now messed up; you don't want to try to save user data at this point because you are then saving corrupt data. Just terminate the process.


If you locked a region of code in order to perform a mutation without another thread reading the state at the same time, and the mutation throws, then if the data was not corrupt before, it sure is now. Which is exactly the scenario that the lock is supposed to protect against. Now code that is waiting to read that state will immediately be given access to corrupt state, and probably itself crash. Again, the right thing to do is to terminate the process.


No matter how you slice it, an exception inside a lock is bad news. The right question to ask is not "will my lock be cleaned up in the event of an exception?" The right question to ask is "how do I ensure that there is never an exception inside a lock? And if there is, then how do I structure my program so that mutations are rolled back to previous good states?"

3a8082e126
Reply all
Reply to author
Forward
0 new messages