标签:#ha
找到 11698 篇相关文章
Satan's 19th-Century Bank Note (2017)
The Anti-Palantir Manifesto
DeKalb deputy charged with Flock camera misuse; more Georgia officers fired
Freeze-Casting
Forget the model. When it comes to cybersecurity, it's all about the harness
Moonshine: Lets you stream games from your PC to any device running Moonlight
Ask HN: What are your favorite blogs not about AI?
Many of my favorite bloggers have stopped writing (or have drastically shifted topics). What are your favorite blogs? I miss the 2009 era of blogging about personal projects or super niche factoids.
Compiled List of over $1000 in AI/GPU/LLM Credits (100% Free)
AI should have senior lawyers sharpening their hunting spears
Boeing says it will be ready to fund new plane programme by 2030
Jurassic Park packed $4M of legit 1993 computer hardware
We want Texans to know their rights
The Control Group Is Out of Control (2014)
Biggest Probabilistic Computer Turns Noise into Answers
Is AI Progress Real? Four Independent Metrics Show It
I Found a Silent Bug in Formbricks That Crashes Live Surveys at Runtime
This is a submission for DEV's Summer Bug Smash: Clear the Lineup powered by Sentry . Project Overview Formbricks is an open-source survey and experience management platform built with Next.js, TypeScript, React, and Tailwind CSS. It lets teams create and deploy surveys across websites, apps, and email. Developers can self-host it or use the cloud version. With over 12,000 GitHub stars and hundreds of contributors, it is one of the most actively maintained open source alternatives to Qualtrics. Bug Fix or Performance Improvement Formbricks supports custom regex validation rules on survey questions. A survey creator can set a pattern that user responses must match before they are accepted. The problem was in how that pattern was stored. The validation schema for regex pattern rules only checked that the input was a non-empty string: // Before the fix export const ZValidationRuleParamsPattern = z . object ({ pattern : z . string (). min ( 1 ), flags : z . string (). optional (), }); z.string().min(1) means "give me any string with at least one character." It does not verify that the string is actually a valid regular expression. So a survey creator could type [invalid as their pattern, the schema would accept it, it would be saved to the database, and then when a real user submitted a response, the system would try to run new RegExp("[invalid") , JavaScript would throw a SyntaxError , and the survey would crash silently at runtime. The bug never surfaced during setup. It only appeared when a real user was trying to submit a real response. Code Pull Request: github.com/Tobore005/formbricks/pull/1 Here is the fix: const isValidRegexPattern = ( pattern : string ): boolean => { try { new RegExp ( pattern ); return true ; } catch { return false ; } }; const isValidRegexFlags = ( flags : string | undefined ): boolean => { if ( flags === undefined ) return true ; try { new RegExp ( "" , flags ); return true ; } catch { return false ; } }; export const ZValidationRuleParamsPa
Show HN: A canvas-based note taking and organizer app
So I've been working on this app for a very long time now. Started off by wanting an app that separates long form notes from short form notes visually and keeps everything organized on a canvas. The app features: -Sticky notes for quick, small notes and A4 notes for long form documents -A quick mode that uses local storage to quickly open the app and jot down a thought on the canvas -A PDF export option that exports your notes into 3 custom designed PDF styles -Visual hierarchy to replicate file