Tuesday, December 20, 2022

Show HN: High performance HTML5 parser for Ruby, a Nokogiri alternative https://ift.tt/01ocN4h

Show HN: High performance HTML5 parser for Ruby, a Nokogiri alternative https://ift.tt/y2S6ca3 December 20, 2022 at 09:08AM

Show HN: A vichan variant that ChatGPT helped me host https://ift.tt/Wb1uIFy

Show HN: A vichan variant that ChatGPT helped me host I recently set up a website hosting vichan [0] with nginx, and named it "h2ochan", inspired by the chaotic (yet moderated!) nature of imageboards like 4chan and 2chan. Plus, I love having a liter of water within arm's reach at all times. In the future, I have some plans for threading and posts that will further emphasize the "water" theme and encourage community engagement. In the past, I had tried setting up vichan a few times, but I was overwhelmed by the many technical tasks involved, such as using a remote terminal, working with MySQL databases, configuring nginx, setting file permissions and owners, and using Emacs (or trying to avoid clunky local file edits and FTP). However, I recently discovered chatGPT and have found it very helpful in assisting me with various technical issues. I began by asking for help setting up a public PHP forum, saying that I was a gamedev with some experience in Unity and C#, but not familiar with web development. chatGPT recommended that I look into ASP.NET [1] (which is similar to C#) and gave me some specific recommendations for webhosts and domain registrars. Based on these recommendations, I was able to get a Shared Windows Host [1] up and running, with my nginx [3] page visible after visiting the proper IP address. During the vichan installation process, there is a config-help screen that shows red and yellow lights, to show stuff like if vichan is missing permissions, the SQL database is misconfigured, etc. Initially, this screen showed about three errors and five warnings, mostly related to vichan's inability to read or write certain files. ChatGPT was very helpful in troubleshooting these issues, whether I copy-pasted error messages or described the problems in my own words. It helped me with tasks such as using `chmod`, `chroot`, and `grep`, as well as with fixing HTTP status codes such as 403 Forbidden, 404 Not Found, and 500 Internal Server Error [2]. ChatGPT also helped me locate log files and fix other issues, and eventually all of the warnings were resolved. Emacs was also very helpful during the setup, with chatGPT assisting with emacs commands (I have a double-sided Sheet of them somewhere...) Although I am still learning basic hotkeys, I am able to Save, Undo, and Quit with confidence, and I have almost memorized the Page Up/Down keys. I was initially drawn to Emacs because I saw a page about hotkeys for capitalizing, lowercasing, and uppercasing words years ago, but never sticking with it. Now using it more, my thoughts still being "My smartphone can't even Delete (forward) or Undo! Modifying whole WORDS like this is incredible!" Please go look at h2ochan, and Drink Water! [0] https://ift.tt/VelsgCh [1] I did have to switch from a Shared/managed ASP.NET to a Dedicated Linux Host, since remote SSH was not supported for Windows, only Linux [2] I forgot two of these error codes, so I asked chatGPT to remind me of ones I might have encountered during setup. chatGPT also revised my initial post (making sure chatGPT got a [] citation, no matter how confusing!) which I revised once more before posting. [3] Windows + nginx, huh? I may be mis-remembering this bit, but there was certainly a point of realizing "I need Admin access so I can edit Permissions..." or something, and that Windows without SSH was wholly insufficient for vichan [-] chatGPT was occasionally a bit outdated, which led to missing packages, non-existent paths, and imperfect configurations. However, it seemed happy to accept corrections, such as when I wanted to show line numbers in PHP files in Emacs, but my init.el file already had a setting to show line numbers for all programming languages, and I didn't have php-mode installed. Instead, I needed to use phps-mode. [-] The website favicon is a Koreisha mark, hue-shifted to the Blues. It's used in Japan to signify elderly drivers, and used Abroad by Car Enthusiasts. I love the Half-Teardrops in contrasting Bright and Subtle Blue. https://www.h2ochan.org December 20, 2022 at 10:14AM

Show HN: Monitor a Cyber Power UPS with node_exporter, Prometheus and Grafana https://ift.tt/QiP3u0N

Show HN: Monitor a Cyber Power UPS with node_exporter, Prometheus and Grafana https://ift.tt/Olf9v6h December 20, 2022 at 02:54AM

Show HN: A new word game with a travel theme https://ift.tt/rZDNeGk

Show HN: A new word game with a travel theme This is an independently created word game our family has been working on for a few years. It has uses a license plate motif for word puzzles where the quality of the answers drive a virtual travel experience. The game is web-based, works in all browsers, is fully responsive for mobile screen sizes and also works as a Progressive Web App (PWA). It is written in Django/Python and a modicum of Javascript. https://ift.tt/4IutmJb December 20, 2022 at 04:20AM

Upcoming Capacity Indicators

Upcoming Capacity Indicators
By Christopher Ward

Image of new stick figures indicating bus capacity on shelter signs.

Next Generation Customer Information displays will show capacity indicators: One figure means there are many seats available. Two figures indicates that there are likely a few empty seats available. Three figures tell you that there’s likely only standing room available.

The SFMTA continues expanding trip planning and accessibility features and improving Muni predictions. This is part of the ongoing Next Generation Customer Information System (CIS) project. One of the newest features is a capacity indicator.

A capacity indicator helps customers understand how much space is available on vehicles. Customers can see the indicator on our Next Generation displays in the bus shelters and on train platforms. Customers may use this information to make travel choices. For example, customers can choose to wait for a less full vehicle or take an alternative route.

As of November 2022, Muni vehicles equipped with automatic onboard passenger counters send capacity information to our Next Generation CIS. This information is now shown symbolically with stick figures. One figure means there are many seats available. Two figures indicates that there are likely a few empty seats available. Three figures tell you that there’s likely only standing room available.

Customers should always yield the priority seating area for people with disabilities, older adults, and pregnant persons.

We’re excited to finally bring these features to our customers and build a system that will help make Muni travel even more efficient, reliable and enjoyable.



Published December 20, 2022 at 04:38AM
https://ift.tt/WPE6fZ7

Show HN: Desktop Search Powered by Elasticsearch https://ift.tt/PURfFh8

Show HN: Desktop Search Powered by Elasticsearch https://ift.tt/MHcvpFt December 19, 2022 at 09:01PM

Monday, December 19, 2022

Show HN: Real or AI? A game to spot DALL-E 2 generated images https://ift.tt/AkgKvD3

Show HN: Real or AI? A game to spot DALL-E 2 generated images I built this project last weekend. I was playing around with DALL-E 2 and I was impressed by how photorealistic the images generated are. I decided to build a small game to guess if the image is real or AI generated. This is my first ever weekend project, so I would appreciate any feedback :) Thanks https://ift.tt/vVOTLY2 December 19, 2022 at 05:27PM

Show HN: Tablr – Supabase with AI Features https://ift.tt/uZsg6oX

Show HN: Tablr – Supabase with AI Features https://www.tablr.dev/ June 30, 2025 at 04:35AM