Saturday, October 7, 2023

Show HN: Use Python docstrings as exception messages https://ift.tt/AbLecG6

Show HN: Use Python docstrings as exception messages The following exception @dataclass class PodBayDoorsStillClosed(DocumentedError): """ I’m sorry, {self.user_name}. I’m afraid I can’t do that. """ user_name: str when raised as raise PodBayDoorsStillClosed('Dave') will print PodBayDoorsStillClosed: I’m sorry, Dave. I’m afraid I can’t do that. Reduce the boilerplate, use more exception classes to better express the business logic, or invent your own use cases :) Can be tried out as: pip install documented which works for Python ⩾ 3.8.1. https://ift.tt/6nmrMaA October 6, 2023 at 11:39PM

Show HN: Universal adapter for TypeScript schema validation https://ift.tt/dEmCys6

Show HN: Universal adapter for TypeScript schema validation https://typeschema.com/ October 6, 2023 at 11:48PM

Friday, October 6, 2023

Show HN: An image generator that embeds headline text for X / Twitter Cards https://ift.tt/B7D9L03

Show HN: An image generator that embeds headline text for X / Twitter Cards - add headline text of article - drag and drop image - make adjustments by dragging, resizing, zooming with mouse wheel - download twitter card it's not perfect but i hope it helps. any constructive criticism is appreciated. happy to make adjustments or new features. thanks for your valuable time. https://ift.tt/seFQTkU October 6, 2023 at 05:43AM

Show HN: Using File System as Database https://ift.tt/x0Hs4SD

Show HN: Using File System as Database https://ift.tt/Gt3OUMp October 6, 2023 at 01:12AM

Show HN: Smartphone haptics for inducing calm, an alternative to meditation https://ift.tt/KzRPcZC

Show HN: Smartphone haptics for inducing calm, an alternative to meditation Hey HN, We've been working in neurotech over the past few years, primarily focusing on improving sleep. A friend asked if I would build her a vagal nerve stimulation device. These are devices used to improve relaxation, and “vagal tone”. She didn't want to shell out hundreds for the existing solutions. I originally said no, but then I thought, what if we leveraged smartphone haptics to achieve the same effect as these expensive devices? After some tinkering, Harbor: Immersive Calm was published to the app store last week. https://getharbor.app It’s pretty basic and very MVP, no logins, just: 1)open the app 2) select an immersion (mix of sound and haptics) 3) select how long you want to be immersed (?) 4) lay back, put your phone on your chest, and feel the sensations. In comparison to meditation, with Harbor, there is no “doing it right”, : Lay back, Tune In & Chill Out. I initially built for Android, but the fine-grained control and consistency of haptic motors in iOS device is a better experience. Though, I’m not ruling out a future dive into Android. Here’s a video demo( https://youtu.be/gr70kY9_Abk ) for a sneak peek. Though, without the haptic feedback, you can’t really get a feeling for the experience. Compared to devices the cost hundreds of dollars plus subscriptions, we’re thinking of a subscription model of $5/month. A friend who is a trauma therapist said she’d recommend it to some of her clients, and of course, there is the market of people who are looking to buy vagal nerve devices, and we can offer a lower cost alternative - and you don’t have to wait for shipping :) https://ift.tt/zOVHAe7 October 6, 2023 at 12:58AM

Show HN: An app store just for installable web apps https://ift.tt/a4ihK80

Show HN: An app store just for installable web apps https://store.app October 6, 2023 at 12:20AM

SFMTA Projects Honored as Exemplars of Community Engagement

SFMTA Projects Honored as Exemplars of Community Engagement
By Che Harmon

Ambassadors helping people at Union Square Station on opening day of free weekend shuttle service in Central Subway.Ambassadors helping people at Union Square Station on opening day of free weekend shuttle service in Central Subway, November 19, 2022.

The Central Subway and the Potrero Yard Modernization Project were both nationally recognized by the International Association for Public Participation at the IAP2 USA Core Values Awards in Seattle, Washington this September. Each year, the awards go to projects that demonstrate public engagement best practices and advance the field of public engagement.  

Both the Central Subway Project and Potrero Yard Modernization Project are prime examples of the positive effects that community engagement and effective public participation can have on public projects and programs. Both projects embody IAP2’s core values centered on the belief that the people affected by a decision have a right to be involved in decision-making and participate in shaping outcomes.  

Central Subway 

The Central Subway was awarded the Diversity, Inclusion and Culture Core Values Award and the Project of the Year Award for engaging with the diverse communities and neighborhoods impacted by the project. Our team focused on ensuring community voices were heard from day one of project planning up until the opening day of service for San Francisco’s first new subway in 50 years.  

Public input was critical in determining the locations of four new Central Subway stations, station design and station elements such as gathering spaces, retail spaces and a police sub-station. Diverse communities across San Francisco helped to shape the future of the subway thanks to a culturally appropriate outreach approach that ensured the community was heard and respected over the two decades of planning and construction.  

“The consistent commitment to outreach and involvement over a 20-year period is remarkable, through all the demographic changes, neighborhood transitions, changes in city administration and more recently the COVID pandemic. Most often, public participation occurs during the planning stage with only infrequent updates during construction,” said IAP2 USA President Heather Imboden. “[The] SFMTA provided a very good explanation of the initial problem and how additional problems that came up over time were addressed. They made strong use of multilingual ambassadors from the community while providing funding for initiatives to help the community.”  

The agency worked closely with valued community partners, including the Chinatown Community Development Center (CCDC), Community Youth Center (CYC), Chinatown merchant groups, Union Square Alliance, Yerba Buena Alliance, the Bayview community and many others. 

Potrero Yard 

A tour guide standing in front of a Muni bus presents to a group of people inside of Muni’s Potrero Yard facility.

Members of the public take a tour of the Potrero Yard in 2019 as part of the award-winning outreach program recognized in September by the International Association for Public Participation (IAP2). 

The Potrero Yard Modernization Project was awarded the General Project Award with its work to build a new state-of-the-art bus maintenance and storage facility that integrates affordable housing. It is the first joint development project of its kind in the United States.  

The project not only expands and modernizes a 100-year-old bus yard but also provides much-needed housing, community spaces and services that have been co-designed with the community. Community input continues to shape the project through initial planning, a sensitive procurement process and the launch of the City’s first public-private partnership to the 100% schematic designs we have today.  

IAP2 President Imboden commented, “It was remarkable that what could have been approached by [the] SFMTA as a simple modernization of a bus yard project instead acknowledged the community’s gentrification issues and created a multiple benefit project that addressed the community’s affordable housing challenges in a meaningful way.”  

A key part of the project’s engagement has been the Potrero Yard Neighborhood Working Group that was created in 2018. This group serves as a conduit to the greater community. Bilingual English-Spanish communications have also been part of public engagement from the start. 

For more information about the Potrero Yard Modernization Project, visit the project page (SFMTA.com/PotreroYard). 

The International Association for Public Participation’s guiding principles have been the foundation for the SFMTA’s Public Outreach and Engagement (POETs) program since its inception. To view the awards submissions and videos, visit the IAP2 2023 USA Core Values Awards website.



Published October 05, 2023 at 11:23PM
https://ift.tt/6k9zAEO

Show HN: Embedr – Agentic IDE for Arduino, ESP32, and More https://ift.tt/8o2SWI1

Show HN: Embedr – Agentic IDE for Arduino, ESP32, and More Hi HN, I’m building an agentic IDE for hardware developers. It currently supports...