Saturday, December 31, 2022
Show HN: I made a simple, open source, chromatic tuner mobile app https://ift.tt/Ur0Gx7B
Show HN: I made a simple, open source, chromatic tuner mobile app I'm a musician by night, software developer by day, and one of the minor frustrations I've always had was trying to find a simple tuner app for my phone. Looking at both the iOS and Android app stores, you'll find a lot of the top tuner apps are rather bloated with ads or subscription callouts. I thought I'd create a dead-simple minimalistic mobile chromatic tuner the way I would like it - open the app and tune my guitar. My work is in web with NodeJS and React, so I chose React Native since it was the easiest to understand coming from React. Flutter was also an option since the company I work for has a team working in that, but I thought it would be a bit too much effort to learn Dart. I learned a bit more about React rendering with this project as well. The main issue I had was trying to have a React state variable be constantly updated with any frequencies detected from the mic input, but that ended up causing substantial slowdown due to so many rerenders, so I opted to use a React ref to maintain any detections, and then only update the React state when there was an actual note. I feel like sometimes the UI has trouble updating occasionally when my iPhone is in battery saving mode, which I guess might be related to throttling the audio sample rate somehow, though I'm not entirely sure. Friends and family haven't noticed this, so it may be due to my old 2016 iPhone SE :P. The apps you can find on the both the iOs App Store and Google Play (free!). https://ift.tt/vtzaq6k https://ift.tt/qjzvVSo... Would love any feedback! https://ift.tt/xHG3liY January 1, 2023 at 12:51AM
Friday, December 30, 2022
Show HN: Graphic AI Art Assistant for WhatsApp https://ift.tt/Sz21OUI
Show HN: Graphic AI Art Assistant for WhatsApp https://ift.tt/VUOGqjy December 31, 2022 at 01:27AM
Show HN: Clerkie AI – A GPT-3 based CLI tool that debugs your code https://ift.tt/qcIBy5G
Show HN: Clerkie AI – A GPT-3 based CLI tool that debugs your code We built ClerkieCLI - a GPT-3 based tool that: - automatically detects errors on your terminal, - identifies the programming language, - provides an explanation of the error and suggested fix right on your terminal. https://ift.tt/gPohDfy December 30, 2022 at 02:17PM
Show HN: Scripting language inspired by JavaScript and GLSL https://ift.tt/0qsYHQZ
Show HN: Scripting language inspired by JavaScript and GLSL I'm working on a scripting-language heavily inspired by Javascript and GLSL. The idea is to use this for a game engine I'm working on. https://ift.tt/HnyFbcv December 30, 2022 at 02:16AM
Thursday, December 29, 2022
Show HN: LiveTyper, a simple typing speed tester https://ift.tt/ir40Xkp
Show HN: LiveTyper, a simple typing speed tester Phoenix/LiveView using Presence to show the other players online. My 2nd thing in a vague quest to make 12 things in 12 months. https://livetyper.com/ December 29, 2022 at 10:08PM
Wednesday, December 28, 2022
Show HN: Helix, a Framework for AI Systems https://ift.tt/x2Fp8bN
Show HN: Helix, a Framework for AI Systems https://ift.tt/X98ahWG December 29, 2022 at 12:44AM
Show HN: Pbproxy – Send your clipboard anywhere you can ssh https://ift.tt/kqvWczp
Show HN: Pbproxy – Send your clipboard anywhere you can ssh pbproxy is a small wrapper to give you a consistent and remotely accessible interface to your system clipboard on linux and mac. https://ift.tt/xYiepRC December 28, 2022 at 01:12PM
Tuesday, December 27, 2022
Show HN: Free video conferencing over WebRTC in Go https://ift.tt/iUqHLzB
Show HN: Free video conferencing over WebRTC in Go https://ift.tt/OqFxlkU December 27, 2022 at 11:55PM
Monday, December 26, 2022
Show HN: Eleven – open-source alternative to Codespaces https://ift.tt/p7xwsqR
Show HN: Eleven – open-source alternative to Codespaces Hey HN, Eleven is the second project that I've built to learn Go. It lets you create a code sandbox in your cloud provider account easily. What's a "code sandbox"? Just a VM, running in your cloud provider account, with some runtimes pre-installed, your repositories cloned, a way to connect to it with your preferred editor (or via SSH) and a way to serve your apps easily via HTTP (with automatic HTTPS). You could use it to deploy your app, as a remote development environment or even to test some code. It's up to you. For example, to deploy a Node.JS app: $ eleven aws init hello-world --runtimes node@18.7.0 --repositories eleven-sh/hello-world > Success! The sandbox "hello-world" was initialized. $ ssh eleven/hello-world forever node index.js > Forever: command started. Run "forever stop" in current path to stop. $ eleven aws serve hello-world 8000 --as hello.eleven.sh > Success! The port "8000" is now reachable at: https://hello.eleven.sh $ curl https://hello.eleven.sh > Hello World Still learning Go by the way, so I'm open to any suggestions to improve. https://ift.tt/lGE15HX December 27, 2022 at 02:27AM
Show HN: Test if your shortcut conflicts with any default shortcuts in browsers https://ift.tt/tzXKySa
Show HN: Test if your shortcut conflicts with any default shortcuts in browsers https://ift.tt/z0unPvA December 27, 2022 at 12:04AM
Sunday, December 25, 2022
Show HN: Kweb 1.3.3 released, a server-side interface to the browser's DOM https://ift.tt/Zt2DvoE
Show HN: Kweb 1.3.3 released, a server-side interface to the browser's DOM https://ift.tt/SBCtUva December 26, 2022 at 01:10AM
Show HN: Bespoke Artist Website Hosting https://ift.tt/bARkHVL
Show HN: Bespoke Artist Website Hosting Merry Christmas everyone! We started offering hosting services for our musical artists at our record label Epsilon Records ( https://ift.tt/R4wFW7T ) and we recently decided to open the offering further. Consider it boutique high-touch hosting at a good value for a very niche musical artist audience (bands/producers/musicians). We offer a choice of the WordPress or Ghost platform but can also handle custom requirements for the more technical customer. Get in touch and let’s nerd out over how we can help you meet your musical and artistic hosting needs. And now a word from ChatGPT: "Why choose Epsilon for your musical hosting needs? There are several reasons why you may want to choose a hosting provider that specialises in music: * Expertise: A hosting provider that specialises in music will have a deep understanding of the specific needs and requirements of music websites. This includes things like fast loading times for streaming audio and video, and the ability to handle large amounts of traffic. * Music-specific features: A hosting provider that specialises in music may offer features that are specifically tailored to the needs of music websites, such as integrations with music streaming platforms or tools for promoting and monetizing your music. * Niche-specific support: A hosting provider that specialized in music will likely have a team of support staff who are knowledgeable about the specific needs and challenges of music websites. This can be especially helpful if you have questions or run into issues specific to the music industry. Overall, choosing a hosting provider that specialized in music can help ensure that your website has the features and support it needs to succeed in the competitive world of online music." Open to feedback! https://ift.tt/TcAyhdj December 26, 2022 at 12:52AM
Saturday, December 24, 2022
Show HN: Shmux – run all your scripts from one file https://ift.tt/bjmFcup
Show HN: Shmux – run all your scripts from one file Hello all, This is a small, few hours Holiday project I made out of frustration on what I would have liked makefiles to be but are not. It's rough, but it might be useful for somebody. Any type of feedback is welcome! https://ift.tt/mKtP5qg December 24, 2022 at 10:06PM
Friday, December 23, 2022
Show HN: Search HN Favorites or Export to CSV/HTML https://ift.tt/NbGq4cg
Show HN: Search HN Favorites or Export to CSV/HTML I wrote a JavaScript tool to search your HN favorites and export them to CSV or HTML. The JavaScript runs in your browser like a browser extension. It scrapes the HTML and navigates from page to page. Setup and usage instructions are in the file. https://ift.tt/qVFnHda December 24, 2022 at 01:07AM
Show HN: Hacker News Insight https://ift.tt/mTt3Hqf
Show HN: Hacker News Insight https://ift.tt/dQxOl0D December 24, 2022 at 12:36AM
Thursday, December 22, 2022
Show HN: Metriport – Open-source universal API for health data https://ift.tt/l2ovk87
Show HN: Metriport – Open-source universal API for health data Hey HN, we’re Colin and Dima, founders of Metriport ( https://metriport.com/ ). We help digital health companies access and manage user health and medical data, through an open-source and universal API. Today we're launching our open-source Health Devices API, which allows companies to gain access to their users’ health data from various wearables, RPM devices, and mHealth apps. You can check out the public Github repo here: https://ift.tt/etKFqwa For developers in the health data space, building integrations to various data sources is a huge pain, as it means wrangling different data formats, gaining access to the APIs in the first place, and ultimately spending precious developer resources building out data pipelines. We solve this pain for you through our open-source API, which is quick and easy to get started with (see: https://ift.tt/YT6WsJC... ). Out of the box, our Health Devices API supports integrations with Fitbit, Oura, Whoop, Withings, and Cronometer. We plan to add many more, including Garmin, Apple Health, and Google Fit in the near term. We work closely with our customers, so if there’s an integration you need, we’re more than happy to build it into our API. Because we’re open-source, you can also fork our code and build your own custom integrations. Getting started is simple. To start getting data from your users: 1) Create a developer account and generate an API key: https://ift.tt/GlMuDeZ 2) Set up our client on your server and initialize it with your API key: https://ift.tt/YT6WsJC... 3) Link the Metriport Connect widget into your app. This pre-built widget makes it easy for your users to connect all their data sources into your application. Now you’re ready to start accessing your users’ health data from their sources they’ve connected. We also offer a hosted SaaS solution with usage-based pricing, with no minimum platform fees. We believe this will open doors to a wide range of early stage companies and help drive innovation in the digital health industry. While we’re excited to be launching this product today and be the first open-source Health Devices API of its kind, we’re also really looking forward to sharing our Medical API with you in the coming months. You can find out more about that here: https://ift.tt/nt58Za0 We can’t wait to see how this API is used and what it helps companies develop. Please don’t hesitate to reach out if you have any questions, and happy developing! https://ift.tt/etKFqwa December 23, 2022 at 02:09AM
Show HN: My Afternoon JavaScript Library https://ift.tt/NOk0VaD
Show HN: My Afternoon JavaScript Library https://ift.tt/S6EdlqC December 23, 2022 at 12:00AM
Show HN: Fully offline, open-source alternative to Scribe for Firefox https://ift.tt/Bf3ALFQ
Show HN: Fully offline, open-source alternative to Scribe for Firefox I had to do a bit of web-workflow documentation and found the process of gathering screenshots, placing them correctly into a document, and creating captions extremely tiring. I figured it’ll be easy to automate and also a great opportunity to get to know the Browser API, and here we are with the first release of the extension. It’s extremely easy to use but barebones which I plan to change in the near future, so any feedback will be appreciated. I want to keep the docs generation process completely offline to avoid dealing with server costs and GDPR stuff which poses a lot of challenges when planning more advanced features like image editing. It’s available only for Firefox because of Firefox’s great Browser API support, which Chromium currently lacks. Also, there’s a tool like this already available, called Scribe but it requires an account and also is not available for Firefox for some reason. Hope you’ll like it! https://ift.tt/Sb1C5vY December 22, 2022 at 11:20PM
Wednesday, December 21, 2022
Show HN: System Design Practice and Discussion https://ift.tt/7vlc5GJ
Show HN: System Design Practice and Discussion Many platforms exist for a candidate to practice leetcode style questions. Created one to practice and discuss system design problem statements. There is no auto evaluation as high level design is subjective, but we support upvotes/downvotes and a comment section for feedback and discussion. Looking for early feedback. https://ift.tt/xuLhmA8 December 21, 2022 at 09:24PM
Tuesday, December 20, 2022
Show HN: Headerless C programming with __INCLUDE LEVEL__ https://ift.tt/aV3kbRT
Show HN: Headerless C programming with __INCLUDE LEVEL__ https://ift.tt/zjVMQi4 December 21, 2022 at 02:21AM
Monday, December 19, 2022
Show HN: Shell script for playing music from YT with a text queue file and mpv https://ift.tt/xjBJIk2
Show HN: Shell script for playing music from YT with a text queue file and mpv Hi, I am kind of hesitant to post this because I wrote this myself and it's definitely not polished but I thought people might find it useful considering some of the music related things I have seen posted here. This doesn't have anything fancy like a recommendation system or pretty ui but it makes it very easy to listen to music and keep a history of what you've listened to. If it means anything, this is the only thing I use for music playing. Features: - Everything is a text file (queue, your listen/artist history)! - Mpv as music player (you can control or get info using the ipc socket the script opens) - Download songs after you've listened to it a chosen amount - Fzf to search music - Add playlists from the cli - Manage queue from the cli, fzf, or vim - Run arbitrary commands on song change - Search and play or select from search results Here is a demo: https://ift.tt/7Ofbnej... and the repo: https://ift.tt/YQEL5ST https://ift.tt/osO1RpY December 20, 2022 at 02:16AM
Show HN: Fort.js – A modern progress bar for form completion https://ift.tt/ur7PC2K
Show HN: Fort.js – A modern progress bar for form completion https://ift.tt/psLeZcd December 20, 2022 at 12:35AM
Sunday, December 18, 2022
Show HN: Log in to Mastodon with your Twitter account https://ift.tt/FU3468z
Show HN: Log in to Mastodon with your Twitter account This is an idea I've had for a while. Given recent events, I decided to finally implement it and see what happens. I assume if it gets any traction it will be banned. The bigger picture here is that Twitter's network of users and follow lists is potentially reverse-engineerable. Why not take that network graph and implement it in the Fediverse? https://tweedle.social December 19, 2022 at 03:38AM
Saturday, December 17, 2022
Show HN: 4-7-8 Breathing – BreathWithMe.io https://ift.tt/BuIxUif
Show HN: 4-7-8 Breathing – BreathWithMe.io Hello, Let's take a few deep breaths together. https://ift.tt/HE9Fj2r December 18, 2022 at 02:14AM
Show HN: VR Development Resource https://ift.tt/Ug8GHcq
Show HN: VR Development Resource https://ift.tt/EwrLFJx December 18, 2022 at 12:49AM
Show HN: A self-updating list of the most current useragents https://ift.tt/uzEsh50
Show HN: A self-updating list of the most current useragents Hi Hacker News! I made a site which displays the most common useragents found on the web. The site updates weekly with data sourced from the server access logs of another site I run in order to give an accurate picture of the devices and browsers being used on the web. I do a lot of web scraping in my work and it's this group of people who I had in mind when creating the site. The data is presented as useragent, browser, os, and relative percentage of occurence. It can be viewed as a table on the site or via json in the API. Please let me know your thoughts or feedback and I hope you find it useful! Thanks! https://ift.tt/RcLJSUq December 18, 2022 at 01:50AM
Show HN: Speleomorph, an Exploration Puzzle https://ift.tt/oTwRgxu
Show HN: Speleomorph, an Exploration Puzzle https://ift.tt/ZTUIJgM December 18, 2022 at 12:49AM
Show HN: Create keepsakes for your loved ones using AI https://ift.tt/kvdAw0B
Show HN: Create keepsakes for your loved ones using AI https://lovelines.xyz December 17, 2022 at 11:21PM
Friday, December 16, 2022
Show HN: Chat with AI Jesus, Buddha, Obama, Gary Vee, and Dr. Peterson https://ift.tt/ud3HMt7
Show HN: Chat with AI Jesus, Buddha, Obama, Gary Vee, and Dr. Peterson https://gpt.chat/ December 16, 2022 at 11:23PM
Show HN: The easiest way to run a brainstorm, supercharged with A.I https://ift.tt/6WBxlyd
Show HN: The easiest way to run a brainstorm, supercharged with A.I Hello friends! We've been working hard on building Mimosa, and would love for you to try it! No signups required. Facilitating brainstorming sessions can be a challenging and time-consuming task. It's difficult to keep everyone on agenda, engaged, and contributing. So we've built Mimosa to be the easiest way to facilitate a brainstorming session. Imagine if a "digital whiteboard" and a "trello board" had a baby, but built with all the best practices of professional facilitation. With Mimosa, you can minimize bias by allowing team members to contribute anonymously before revealing their ideas. This ensures that everyone has a fair chance to share their thoughts and ideas without fear of judgment. Once the brainstorming session is complete, you can easily view and export the final results. This allows you to keep track of a meeting's effectiveness and share it with stakeholders. But the real game-changer is our AI Brainstorming features and it's ability to turn your 1x team into a 10x team. It help generates and collaborates with you in your brainstorming session to help you come up with more and better ideas. We're both scared and excited to hear all your thoughts, HN! :) Please do let us know any features or improvements you think we should make to help you in your meetings. https://mimosa.so/ December 16, 2022 at 10:41PM
Thursday, December 15, 2022
Show HN: AI Avatar Image Generator Based on Other AI Images https://ift.tt/zAhVH8S
Show HN: AI Avatar Image Generator Based on Other AI Images An AI Avatar image generator that creates images of you based on other AI created images. The popularity of the recent AI Avatar image generator apps sparked some interest of mine in the area. After playing around with a few AI Avatar image generators, some of which generate pictures of you based on pictures you upload and prompts you write, I thought, wouldn't it be much easier, instead of writing out prompts, to just select another image which you want your generated image to be based on. The image the user selects is actually another AI generated image, so we know the prompt used to generate it. So prompt writing is abstracted away from the user, and instead they can search for images and click on ones they like. Backend of the application currently uses Astria AI for the image model training and generation, and uses the Lexica API for getting lists of AI generated images and their prompts. https://ift.tt/1qxetv4 December 15, 2022 at 06:49PM
Wednesday, December 14, 2022
Show HN: I built a feed of engineering blogs from top tech companies https://ift.tt/2MVxTHO
Show HN: I built a feed of engineering blogs from top tech companies https://ift.tt/d8gMUno December 15, 2022 at 02:17AM
Show HN: Automated Insights from Your Google Analytics https://ift.tt/RYAN71E
Show HN: Automated Insights from Your Google Analytics https://ift.tt/rAkMUjY December 15, 2022 at 12:04AM
Show HN: Good Tech Things, a collection of cloud and software engineering comics https://ift.tt/k5CfIQ2
Show HN: Good Tech Things, a collection of cloud and software engineering comics https://ift.tt/ejOY1bM December 15, 2022 at 12:08AM
Tuesday, December 13, 2022
Show HN: Sup – audio first social network with dynamic push notification sounds https://ift.tt/skFWhLi
Show HN: Sup – audio first social network with dynamic push notification sounds https://sup.audio December 13, 2022 at 11:28PM
Show HN: NixOS Web Hosting for Everyone https://ift.tt/sJU8nRj
Show HN: NixOS Web Hosting for Everyone https://shipnix.io/ December 13, 2022 at 11:20PM
Monday, December 12, 2022
Show HN: Is Edge Compute Faster? Benchmarking Edge Platforms (With Databases) https://ift.tt/O1VaCAs
Show HN: Is Edge Compute Faster? Benchmarking Edge Platforms (With Databases) I built a platform for running your applications and data on the edge with TypeScript (Bun and Deno) and SQL with strong consistency (PostgreSQL compatible that works with Prisma!). https://ift.tt/CvGAmyS December 13, 2022 at 01:20AM
Show HN: Create auto-updating charts-as-images with low-code/nocode https://ift.tt/8vXx5dp
Show HN: Create auto-updating charts-as-images with low-code/nocode Hello, we just released Image Charts 2.0, a way to create and show a chart as an image anywhere using our custom API and integrations with Zapier and Make. My friend Francois-Guillaume made Image Charts in 2015 to replace Google Image Charts for a project since it was deprecated. Since then we’ve been adding features and getting it integrated with Zapier and Make to make it easy to build good-looking charts automatically. Each chart has a custom URL and HTML code so it’s easy to embed. And you can build progress bars, gradients, and really any kind of chart with it (bar, line, radar, scatter, you name it). We have a gallery of over 30 charts and counting. [Chart gallery]( https://ift.tt/7f0HYoU... ) with sample data The site with the live Editor: [ https://www.image-charts.com/](https://www.image-charts.com/... How-to with gradient fills: [ https://ift.tt/KQHbRs3... How-to progress bars: [ https://ift.tt/B81q7TU]... Really looking for feedback and additional use cases, we know it’s used for reporting, transactional emails, and a customer suggested using it in weekly standups for a KPI’s snapshot too. Would love to hear what you think and/or how you would use this. Cheers! https://ift.tt/xHS6KrZ December 13, 2022 at 12:26AM
Show HN: Obsidian: Insert conversation starters generated by AI in your notes https://ift.tt/Jo69jRA
Show HN: Obsidian: Insert conversation starters generated by AI in your notes I often prepare my conversations beforehand, whether for business or family/friends, with this Templater you can get ready for great & deep conversations using https://langa.me API (free tier). https://ift.tt/N9EGZsF December 12, 2022 at 08:49PM
Sunday, December 11, 2022
Show HN: Why YC when there's YZ? https://ift.tt/rXkwK4d
Show HN: Why YC when there's YZ? The Crowd Supported, Crowd Constructed, Opened sourced Acceleration program for the next generation of builders. Note: Website is just to get feedback initially. https://ift.tt/6Vl9kA5 December 11, 2022 at 11:15PM
Show HN: Mult.dev – zero-config alternative to Google Earth studio https://ift.tt/klw3aNB
Show HN: Mult.dev – zero-config alternative to Google Earth studio The powerful tool to create travel/geo infographics and animated maps. You can even add the stickers on the planet! Example https://www.youtube.com/watch?v=Eq_DvPoCMmM https://mult.dev December 11, 2022 at 10:58PM
Saturday, December 10, 2022
Show HN: Alle – a terminal todo manager in Rust https://ift.tt/6VgiwX8
Show HN: Alle – a terminal todo manager in Rust https://ift.tt/8EhokDT December 10, 2022 at 08:47PM
Friday, December 9, 2022
Show HN: ChatGPT – The Memoir https://ift.tt/3LPJXwR
Show HN: ChatGPT – The Memoir Chapter 1 of the ChatGPT Memoir! https://ift.tt/KCNIqZ1 December 10, 2022 at 02:32AM
Show HN: Live AI Avatars for videochats and streaming https://ift.tt/jtai8vI
Show HN: Live AI Avatars for videochats and streaming https://ift.tt/8I5lxqZ December 10, 2022 at 12:50AM
Show HN: BeSanta, Real time Santa Claus AI avatars on your iPhone Ho-ho-ho https://ift.tt/g30qZEm
Show HN: BeSanta, Real time Santa Claus AI avatars on your iPhone Ho-ho-ho https://ift.tt/3401VjS December 10, 2022 at 01:10AM
Thursday, December 8, 2022
Show HN: Mastodon Flock, yet another Twitter friend finder, with a Win95 twist https://ift.tt/XLEyQzF
Show HN: Mastodon Flock, yet another Twitter friend finder, with a Win95 twist I spent the past couple of weeks building a web app that would help me find my Twitter contacts on Mastodon (and other ActivityPub-compatible sites). I wanted it to be simple and clear, as well as to try out Astro and the React95.io design system. The result isn't perfect, but it's as thorough as I wanted it to be to show others and gather feedback. The code is also open source https://ift.tt/IuLxkBT (although I just realized I never fixed the README lol) https://ift.tt/5cZKOt9 December 9, 2022 at 12:02AM
Show HN: This VC Does Not Exist https://ift.tt/ncoqUWI
Show HN: This VC Does Not Exist Everything on this page was created with DallE and ChatGPT (other than the title) It's using a single session token for ChatGPT - so you're probably going to hug it to death. Hosted on cloudflare workers. Source code: https://ift.tt/Kx89756 https://ift.tt/6Q7ro1n December 8, 2022 at 11:58PM
Wednesday, December 7, 2022
Show HN: Record breaking performance for Python, 6.2 mi req/s in TechEmPower https://ift.tt/CwH6bfr
Show HN: Record breaking performance for Python, 6.2 mi req/s in TechEmPower socketify.py just break the record for Python and now is the fastest Python framework in TechEmPower, is even faster than Golang Fiber that got 5.9 mi req/s https://ift.tt/ad8U4bq https://ift.tt/sPcMIfl... https://ift.tt/RgNVn7x December 8, 2022 at 12:01AM
Show HN: We used ChatGPT to write a blogpost about using ChatGPT to write emails https://ift.tt/Al1f7rW
Show HN: We used ChatGPT to write a blogpost about using ChatGPT to write emails https://ift.tt/mIHdZal December 7, 2022 at 11:04PM
Tuesday, December 6, 2022
Show HN: I designed a ChatGPT prompt evaluator to ruin your fun;) https://ift.tt/KOg3Hpc
Show HN: I designed a ChatGPT prompt evaluator to ruin your fun;) Today I designed a method to prevent users from jailbreaking ChatGPT (for instance, users have generated instructions to produce weapons or illegal drugs, commit a burglary, kill oneself, take over the world as an evil superintelligence, or create a virtual machine which they then can use). The OpenAI team appears to be countering these primarily using prompt engineering or fine-tuning on the ChatGPT model. The idea is to use a second and fully separate, fine-tuned LLM to evaluate prompts before sending them to ChatGPT. You can test this by inserting your successful ChatGPT jailbreaks. Break it for me if you dare! I look forward to seeing your results! https://ift.tt/1sjbqZl December 6, 2022 at 09:46PM
Show HN: Publish from GitHub Actions using multi-factor authentication https://ift.tt/jEOPqF6
Show HN: Publish from GitHub Actions using multi-factor authentication The backstory about this GitHub Action: I discussed with an open-source maintainer why they publish npm packages from their local machine and do not use CI/CD pipelines. They said publishing should require human intervention and want to continue using multi-factor authentication to publish to the npm registry. This led to building the wait-for-secrets GitHub Action. It prints a URL in the build log and waits for secrets to be entered using a browser. Once entered, the workflow continues, and secrets can be used in future steps. The latest release of "eslint-plugin-react" to the npm registry used a one-time password (OTP) from a GitHub Actions workflow! https://ift.tt/0HioUOm... https://ift.tt/wHorSQg December 6, 2022 at 10:05PM
Show HN: Codeium – a free, ultrafast AI codegen extension https://ift.tt/XBqdyK1
Show HN: Codeium – a free, ultrafast AI codegen extension I'm Varun, CEO of Exafunction, and we just released Codeium to open up access of generative AI to all developers for free. In the spirit of Show HN, we created a playground version for anyone to try this tech in the browser (click Try in Browser)! We have built scalable, low-latency ML infra for many top AI companies in the past, and we are excited to leverage that tech into a product that we, as developers, would love. We hope that you do too, and we would appreciate any feedback that this community has for us! https://ift.tt/U7nlAmB December 6, 2022 at 11:27PM
Monday, December 5, 2022
Sunday, December 4, 2022
Show HN: Txt2jira – version 2 of smart Jira work logging tool released today https://ift.tt/dB0bZsw
Show HN: Txt2jira – version 2 of smart Jira work logging tool released today Logging work to Jira does not suck anymore. Check out second version of the tool that makes your work logging life easy ;) Since the first version was a POC cranked out in not more than 2 days, the second iteration took me some more time to craft things with much more care. Have fun checking it out, feedback is appreciated. https://ift.tt/BeiRoPt December 5, 2022 at 01:16AM
Saturday, December 3, 2022
Show HN: A more complete Rust example project for the Rasberry Pi Pico https://ift.tt/21UYQxg
Show HN: A more complete Rust example project for the Rasberry Pi Pico https://ift.tt/arF1ACN December 3, 2022 at 07:36PM
Show HN: Simple self-assessment tool for OWASP ASVS https://ift.tt/cqsV8Mw
Show HN: Simple self-assessment tool for OWASP ASVS https://ift.tt/nyJl94N December 3, 2022 at 10:52PM
Friday, December 2, 2022
Show HN: Open-source clones of popular sites (Airbnb, AMZ, Instagram, etc.) https://ift.tt/ivVBAyn
Show HN: Open-source clones of popular sites (Airbnb, AMZ, Instagram, etc.) https://ift.tt/lw3Redf December 2, 2022 at 10:43PM
Show HN: Rune’s Secret Type Ported to Python https://ift.tt/7VhAdt1
Show HN: Rune’s Secret Type Ported to Python https://ift.tt/StEA5RM December 2, 2022 at 07:41PM
Thursday, December 1, 2022
Show HN: Programming Google Flutter with Clojure https://ift.tt/URwGAiP
Show HN: Programming Google Flutter with Clojure This proof-of-concept project combines: - Flutter, from Google; - ClojureDart, port of Clojure to Dart from Tensegritics; and - Matrix, a reactive framework from moi. So, yes, we can now program Flutter with a Lisp. Yay. Project includes dozens of working examples and a full implementation of the TodoMVC classic to help tire-kickers play around. Support installing freely available on the #matrix channel on the Clojurians Slack. https://ift.tt/JmCOgQo December 1, 2022 at 10:41PM
Wednesday, November 30, 2022
Tuesday, November 29, 2022
Show HN: A userscript that adds archive URLs below the paywalled HN submissions https://ift.tt/Pxs4od7
Show HN: A userscript that adds archive URLs below the paywalled HN submissions This userscript adds archive URLs to the metadata section of HN submissions without breaking the immersion. Here are 2 screenshots: https://ift.tt/UFzrPS9 GreasyFork: https://ift.tt/F9iGWso... Source code: https://ift.tt/VpUDB6r Now let me overexplain. -Why?- I never liked paywalled articles. I understand where they come from, but I don't like where we cross our paths. This is why I don't use major news aggregators anymore. Instead, I spend my "catching-up-with-the-world-time" on Hacker News. However, Hacker News (HN) also has its fair-share of paywalled articles. ( Around 11.6% according to my short-lived, half-assed attempt at measuring it. See my super old data https://hpa.emre.ca/ I tell the story below.) -First try- Around a year ago, when I ran the above experiment, my goal wasn't to run that experiment. It was during my self-teaching & career-changing process, I decided to build a React HN clone. To make it stand-out from the bunch, I added a paywall feature. It would detect paywalled articles and would add an archive URL into the metadata. The issue with archiving is unless someone archived the link before on the {archiving-project} then the link is most likely not archived. So me sending people to those projects meant nothing. It kinda meant something for me from an ideological standpoint but I assume you are not me. This rubbed me the wrong way. I decided to build a backend (See https://ift.tt/ZxsNyv7 ) that would scan the links and automatically to detect paywalls close to real-time and submit paywalled ones to archive.is for archival. I used Nodejs, Firebase, and React. I was -still am- really proud because I believed it was doing public good in terms of digital preservation. Only 1 person needed to run this script to benefit everyone. As an extra, I was curious on how many paywalled articles were being shared, by whom, at what time. So I also created some analytics functionality to gather the data. And later created a UI to present it. HN-Paywall-Archiver was great but I stopped running the backend at some point. Because at that point couldn't find a way to continuously run my backend code on some platform for cheap or didn't try hard enough. P.S. Recently I've been thinking of remaking this version with Cloudflare Workers. -Hacker News Paywall Archiver Userscript- After almost a year, I got into userscripts. Super great super awesome concept. People seem to hate javascript unless it is presented as a userscript. So I decided to get my hands dirty to create a simple solution that solves the paywall issue on HN without breaking any hearts. My solution is not perfect as it had to be simple. But here's the rundown. Pros: - Does not beg for attention. - Simple code, simple concept. - Unintentionally, indicates which submissions are paywalled without you interacting with anything. - Not-yet-archived archive links can make you feel like you are contributing to the society after you click on the "archive this URL" button on project page. - Uses HN html defaults, so I hope it plays well with the HN skins/plugins/userscripts you use. Cons: - It doesn't automatically archive the links. - It uses clone of a static list of paywalled websites sourced from a popular Chrome extension. ( https://ift.tt/UVHokiA... ) So changing the paywall list is slow and manual. - No guarantees of archived links actually having the archive readily available for reading. Though there are currently 3 projects added, so it should be enough for most links. So, there you go. I hope you enjoy it. It can break occasionally due to changes in news.ycombinator code, if you let me know on Twitter, I can fix it ASAP. Otherwise you have to wait until I notice that the script is broken, which can take quite a while as I browse HN on mobile. https://ift.tt/VpUDB6r November 30, 2022 at 03:08AM
Show HN: Overengineering guest WiFi logins for fun (sadly not profit) https://ift.tt/nmsyTBS
Show HN: Overengineering guest WiFi logins for fun (sadly not profit) Hey HN! I wanted to share a project that I've been working on for a while and finally "completed" (until next time I try to improve it, that is). The idea is that I wanted my guest wifi password to change frequently, but I also didn't want my guests to hate me every time they came over to visit. Hence be_my_guest was born. Please let me know what you think! https://ift.tt/haZrID4 November 29, 2022 at 08:31PM
Monday, November 28, 2022
Show HN: Use DALL-E 2 to generate custom wall art https://ift.tt/JVpqUef
Show HN: Use DALL-E 2 to generate custom wall art The earliest version of this idea came a couple years ago, when I moved into the first place I finally cared enough about to invest in. I wanted wall art that matched my style, but couldn’t find much within my budget. I wanted items that were congruent with my home, and wasn’t really looking for pieces with great stories or that took courage to produce or anything else that makes truly great art great. But I just couldn’t find anything I liked. Doing some research, I discovered StyleGAN and similar technologies. I found they were amazing at certain tasks, like turning photos to impressionist paintings, but were too limited to create the stuff I was most interested in. So I moved on. Fast forward to today, the recent advances in generative imagery made it seem like the time might finally be right for this idea. So with a kick in the tuchus from fellow HN'er lowe0292, we decided to build it. We use DALL-E 2 for generating images and SharpJS for the under-the-hood image manipulation. We use a service to upscale the images before printing, but will eventually run our own setup with Real-ESRGAN or similar. Feedback very much appreciated :) https://ift.tt/lqwXac5 November 28, 2022 at 10:33PM
Show HN: Database of 1.2M available one-word domains https://ift.tt/HDbjXLx
Show HN: Database of 1.2M available one-word domains https://ift.tt/I4l1wxZ November 28, 2022 at 10:35PM
Show HN: Automate your task follow-through across your business tools https://ift.tt/mquBiLS
Show HN: Automate your task follow-through across your business tools Hi All, Rejoy is a tool that automates your task follow-through across your business tools. Connect and monitor fields across tools like Zendesk, Jira, Asana etc. Create rules to trigger actions based on conditions. Automate notifications, field updates, and reporting. We are in private beta with a free one month trial. Thank you for your feedback. https://www.rejoy.io/ November 28, 2022 at 09:30PM
Sunday, November 27, 2022
Show HN: Hacker way to half app development time and cost https://ift.tt/7olFNT2
Show HN: Hacker way to half app development time and cost https://ift.tt/zyDlNBa November 28, 2022 at 03:26AM
Saturday, November 26, 2022
Show HN: Wehn young, we read solw and eojny more. Get that aiagn with this app https://ift.tt/DHYmRnP
Show HN: Wehn young, we read solw and eojny more. Get that aiagn with this app If you can read this, you are one of the plpoee who can raed text in wihch the first and lsat letrets are uncghenad and the mlddie leterts are scrambled. Tihs technique, and others taht make rdnaeig swoler (such as cingnahg the font to Papyrus) hvae been shown to incearse rneitoten of information. Wtih tihs bookmarklet, you can force yuorself to raed sloewr and wtih mroe effort, pteliolnaty iionmvprg retention. https://ift.tt/Tw9GL7S November 27, 2022 at 03:27AM
Friday, November 25, 2022
Show HN: Open-Source Page Block Builder with Remix and Tailwind CSS https://ift.tt/o8AMrBp
Show HN: Open-Source Page Block Builder with Remix and Tailwind CSS https://ift.tt/Si78qnW November 26, 2022 at 02:34AM
Show HN: Open-source case management for KYC/B (built-in OCR, face matching ML) https://ift.tt/uM5Zzah
Show HN: Open-source case management for KYC/B (built-in OCR, face matching ML) Hi everyone, We have just released an open-source case management dashboard for manually approving/rejecting KYC requests (know your customer) with built-in OCR & face-matching functionalities. Next steps: - Enable KYB (business onboarding) documents and personas approval. - Connected backend between our KYC flow and the case management dashboard. - Releasing an open-source rule engine, to help automate decisions. We’d love for you to try it out, give us feedback, and suggest features that would make it applicable to you. And if the rest of the project is relevant or interesting to you, follow us here: https://ift.tt/JcAa0mS and we’ll update you once new things are available. Thanks! https://ift.tt/TusHb2r November 25, 2022 at 11:44PM
Thursday, November 24, 2022
Show HN: World Cup 2022 CLI Dashboard – Watch matches in your terminal https://ift.tt/JEZUHIO
Show HN: World Cup 2022 CLI Dashboard – Watch matches in your terminal https://ift.tt/3E4I7jf November 25, 2022 at 01:56AM
Show HN: Have fun betting virtual (not real) money on predictions from HN users https://ift.tt/U3n90Xm
Show HN: Have fun betting virtual (not real) money on predictions from HN users I wanted to see how difficult it would be to build a web app using a sub-$300 android smartphone. Decided to build a fun predictions website where you could bet virtual (not real) money on predictions made by others, and also make predictions of your own. Building it turned out to be considerably easier and more fun than I anticipated. Primary tools used were: # QuickEdit as the mobile code editor (Note: the free version of the QuickEdit app is riddled with ads, it shows an advert each time you close a tab, but it unfortunately had the best UI of the 3 or so Android code editors I tested. Ended up using NetGuard to block it from retrieving & displaying ads), # PHP for the Backend ( custom PHP microframework I've used and built on over the past few years ). # jQuery for the frontend js ( cringing ) - it appears I'm simply too lazy to learn React/Vue/et al. Every once in a while, I pick one of them to learn, but I always end up returning to jQuery - or time-permitting - amateur level vanilla JS. # Bootstrap for the CSS - Battle-tested. For a purely backend dev with minimal design skills, good ol' Bootstrap (and in a growing number of cases, Tailwind) is always a life saver. # Whole thing is hosted on 2 VMs (1 hosting the web app, and 1 hosting Redis & MySQL). # As to the site itself, it turned out to be pretty cool to play around with. Go there, view the predictions, bet on the predictions you believe will come true, or against the ones you think will not. You get $50,000 to bet with (not real money). No signup is required to bet, but a quick signup is required to make a prediction. Hope you guys like it, and please be ruthless in telling me of any bugs you've found. So go on here => kudotap.com And Have Fun! https://kudotap.com November 25, 2022 at 01:07AM
Show HN: Stable Diffusion v2 web interface https://ift.tt/jDFTpwR
Show HN: Stable Diffusion v2 web interface https://ift.tt/ABGIkSW November 24, 2022 at 11:58PM
Wednesday, November 23, 2022
Show HN: Makeshift GPU tensor core using 64-bit CPU integer math https://ift.tt/UmazMAo
Show HN: Makeshift GPU tensor core using 64-bit CPU integer math https://ift.tt/iYewQ0v November 24, 2022 at 12:53AM
Show HN: Markdown Presentations with Webcam in Background https://ift.tt/nya859H
Show HN: Markdown Presentations with Webcam in Background https://ift.tt/jwcQx40 November 23, 2022 at 10:21PM
Tuesday, November 22, 2022
Show HN: CodeLink: create links to blocks of code in your IDE https://ift.tt/OJAwHr2
Show HN: CodeLink: create links to blocks of code in your IDE Small team down here in South New Zealand just launched CodeLink. In short its an IDE (VSCode/JetBrains) plugin that lets you share blocks of code that link directly to the code inside your IDE or repo. We use it all the time and think its pretty nifty tech that lets you understand someone’s code in context very quickly. we’re hoping to keep refining it to make it better and more useful. https://codelink.dev/ November 23, 2022 at 01:03AM
Show HN: Transform & integrate data with this modern replacement for Airflow https://ift.tt/ZqVPHOc
Show HN: Transform & integrate data with this modern replacement for Airflow You can now use Mage to build data integration pipelines along with streaming pipelines, batch processing pipelines, and more: https://www.mage.ai November 22, 2022 at 09:42PM
Monday, November 21, 2022
Show HN: I built a job board for payments and fin-tech engineering jobs https://ift.tt/TC89tF0
Show HN: I built a job board for payments and fin-tech engineering jobs https://ift.tt/1Yr3MbP November 22, 2022 at 02:15AM
Show HN: Organize Carpools with Co-Workers https://ift.tt/WoXpNw3
Show HN: Organize Carpools with Co-Workers Here's something I've been working on to help employees find carpooling options with co-workers. With inflation & gas prices going up this seems like a really good thing to have going forward. Happy to have any feedback and I'll roll it back into the site. Thank you! https://ift.tt/PCzuM3F This is a repost after 10 weeks up working on feedback from HN with updates and a website redesign [1]. I submitted this before and there was very good feedback about target audience, need to show benefits, etc. Basically, I had a website that looked like it was designed by a programmer. I'd spent 95% of the work on the backend systems and 5% on the website. I've tried to majorly improve the website with screenshots and demos now. [1] https://ift.tt/X4ZAec8 https://ift.tt/PCzuM3F November 22, 2022 at 01:30AM
Sunday, November 20, 2022
Show HN: I built a game to test OKLCH colors/gradients in my canvas library https://ift.tt/QECmMr3
Show HN: I built a game to test OKLCH colors/gradients in my canvas library https://ift.tt/VUJN10M November 21, 2022 at 01:22AM
Show HN: A native macOS client for Apache Kafka https://ift.tt/VpDyKBk
Show HN: A native macOS client for Apache Kafka https://ift.tt/CgEF8hI November 21, 2022 at 12:00AM
Show HN: C++17 RISC-V RV32/64/128 userspace emulator library https://ift.tt/ABcx3Js
Show HN: C++17 RISC-V RV32/64/128 userspace emulator library https://ift.tt/UPS89oY November 20, 2022 at 11:58PM
Saturday, November 19, 2022
Show HN: Rssnix – Unix-style filesystem-based RSS/Atom/JSON Feed fetcher/reader https://ift.tt/bxPLWHm
Show HN: Rssnix – Unix-style filesystem-based RSS/Atom/JSON Feed fetcher/reader https://ift.tt/0EaFYOn November 20, 2022 at 02:13AM
Show HN: Verofile https://ift.tt/COZBt1o
Show HN: Verofile https://ift.tt/WKt1huw November 20, 2022 at 01:34AM
Show HN: API to deliver responsive images for Web https://ift.tt/urUIh5s
Show HN: API to deliver responsive images for Web https://ift.tt/ANVUTX2 November 19, 2022 at 01:59PM
Friday, November 18, 2022
Show HN: A minimal, keyboard centric Firefox theme https://ift.tt/ZepGcgh
Show HN: A minimal, keyboard centric Firefox theme Hi, Tired with unneccacary clutter, and not that many options for minimal browsers, with the option of browsing without toolbars. I made this quick tweak. By now means a technical feat, but it does the job. Figured some of you might enjoy! https://ift.tt/tihvLZk November 19, 2022 at 01:08AM
Thursday, November 17, 2022
Show HN: I'm building the Costco for apparel https://ift.tt/JtB6PER
Show HN: I'm building the Costco for apparel Hey there, I’m building blnkfabrics.com Think of it as a Costco for apparel, pay a yearly membership and get the best prices on high quality clothes with no weird logos or designs. The apparel is typically sold at cost+10%(to cover handling and logistics) Site is almost finished, technically is fully operational meaning you can buy the membership right now and the orders will fulfill, but need to fix some factors(landing page, copy, favicon, etc.) Also make sure to check the FAQ page, will answer most questions. If there are other questions you think I should answer let me know Would love any feedback, be honest! Thanks. https://ift.tt/hBE9Yrl November 18, 2022 at 01:12AM
Show HN: Create hundreds of AI-generated profile pictures https://ift.tt/KzhYM8l
Show HN: Create hundreds of AI-generated profile pictures tl;dr: use this to create hundreds of AI-generated profile pictures of yourself! I’ve been meaning to play around with some of the latest trendy AI models (DreamBooth in this case), so I hacked this together over the weekend. I’m not doing anything particularly sophisticated other than providing a simple UI over an API that does most of the heavy lifting, but if people are interested in giving it a shot, I might invest more in fine-tuning. (`HNFAM22` coupon code for $10 off) https://ift.tt/2Cn6g5s November 18, 2022 at 12:06AM
Wednesday, November 16, 2022
Show HN: I Built a Gaming GeoGuessr https://ift.tt/sjfvDlP
Show HN: I Built a Gaming GeoGuessr My friend and I made a fully featured gaming geoguessr - complete with 360 degree panoramas, movement, leaderboards, and multiplayer. We had made a Fortnite geoguessr a while back, and although this was well received, our goal always was to bring the worlds of all games to the browser. A much harder task considering the scale and scope of many open world games. We had to make a bunch of tools to be able to achieve this. World of Warcraft alone took us roughly 3,000,000 images to do (and will likely need another 1,000,000 for Dragonflight once it releases). We are finally at a point where we are happy to release this into the wild and let people try it, although we are still working hard on adding all the games that are listed as coming soon. If you're ever bored, and would like to test your gaming map knowledge - or would just like to explore the world in your browser akin to Google StreetView, you can check us out at https://lostgamer.io https://lostgamer.io/ November 17, 2022 at 12:14AM
Show HN: Pomodoro Timer with Friends https://ift.tt/YM8jzXV
Show HN: Pomodoro Timer with Friends https://pomochat.com November 16, 2022 at 11:14PM
Tuesday, November 15, 2022
Show HN: Kùzu: An Embeddable GDBMS like DuckDB/SQLite from UWaterloo https://ift.tt/K9Mp0Bf
Show HN: Kùzu: An Embeddable GDBMS like DuckDB/SQLite from UWaterloo Hello HN! Today, we are pleased to publicly release Kùzu: a new embeddable graph database management system under a permissible license. You can see our blog post in the above link that gives an overview of the system and our goals/vision. The system is in its early stages but please try it out and give us your feedback, tell us your feature requests, and please report bugs! https://ift.tt/RyAUJEc November 15, 2022 at 05:48PM
Show HN: The German Job Market Is Crashing https://ift.tt/e3Q52Zi
Show HN: The German Job Market Is Crashing If we looked at the German Job Market as if it were the stock market, we would say that it's crashing! On the following link you can see my pet project where I have been scrapping the major job offer portal in Germany for over one year. In the last two weeks it has lost 33% percent of all posted job offers and it keeps dropping as a rock :-( Dashboard: https://jobmarketanalytics.com/#months=%2212%22&technology=%... Source Code: https://ift.tt/OWzDq2A Slide Deck: https://ift.tt/tylcuim https://ift.tt/K9dobD3 November 15, 2022 at 11:02PM
Monday, November 14, 2022
Show HN: Lightweight 2D/3D engine in D with Raylib https://ift.tt/04Vv1Lj
Show HN: Lightweight 2D/3D engine in D with Raylib https://ift.tt/QtYUWrx November 15, 2022 at 01:06AM
Show HN: Use Slack Emoji on GitHub https://ift.tt/GXNMj4U
Show HN: Use Slack Emoji on GitHub https://ift.tt/lhFfzE6 November 15, 2022 at 01:18AM
Show HN: DivestOS, long term support for end-of-life Android devices https://ift.tt/clBHtJ8
Show HN: DivestOS, long term support for end-of-life Android devices https://divestos.org November 14, 2022 at 11:00PM
Show HN: Dlna-cast, a command line tool to cast PC screen to DLNA devices https://ift.tt/5BaPAXu
Show HN: Dlna-cast, a command line tool to cast PC screen to DLNA devices dlna-cat is a cross-platform command-line tool that casts screen and media file to remote DLNA device. dlna-cast uses ffmpeg to capture screen and audio, then convert them into HLS streams which could be served by a simple HTTP server. The HLS url will be send to the selected device via uPnP protocol and then you can watch you screen on the remote device (smart TV, typically). This tool is supposed to be cross-platform but currently I don't have a Linux or MacOS device at hand so it can only run on Windows now. It won't be hard to support other platforms though, as there are no platform specific dependencies. HLS is chosen just because it is easy to implement. But the problem of HLS is its high latency (up to 5-10s or more) so it's definitely not for scenarios that require low latency (presentation for example). But as a trade-off the streaming quality exceeds a lot of software screen-casting solutions (Lebocast for example) that have been tested by myself, which make it pretty good to stream music or video playing from your PC to TV. https://ift.tt/pw7U3hF November 14, 2022 at 09:37PM
Sunday, November 13, 2022
Saturday, November 12, 2022
Friday, November 11, 2022
Show HN: We made metadata-secure video conferencing that's easy to use https://ift.tt/oIrSTdw
Show HN: We made metadata-secure video conferencing that's easy to use https://booth.video November 12, 2022 at 03:03AM
Show HN: Vaga, the Embeddable Community Chat https://ift.tt/FdOXWg5
Show HN: Vaga, the Embeddable Community Chat Vaga is Intercom for communities. It is the chatbox you can copy paste into your app or website to build a community natively, instead of Discord. https://www.vaga.chat/ November 11, 2022 at 11:55PM
Thursday, November 10, 2022
Show HN: Elonman (Animated Webcomic) https://ift.tt/4RLrMvm
Show HN: Elonman (Animated Webcomic) https://elonman.com/ November 11, 2022 at 12:30AM
Wednesday, November 9, 2022
Show HN: Generic dual-paradigm hooking mechanism https://ift.tt/Dj35s8C
Show HN: Generic dual-paradigm hooking mechanism Hi HN ! I am Alex, a tech enthusiast, I'm excited to show you a major iteration of my library for performing hooking in Python. I redesigned the whole project because it didn't not cover all my needs. I'm happy with the current iteration that I've written tests for and look forward to spending weeks and months using it in my projects. Python has a concept called Decorator [1] which is a function that takes another function and extends the behavior. In the following script, the timeit decorator is used to measure the execution time of the heavy_computation function: import time from functools import wraps def timeit(text): def deco(target): @wraps(target) def wrapper(*args, **kwargs): # execute and measure the target run time start_time = time.perf_counter() result = target(*args, **kwargs) total_time = time.perf_counter() - start_time # print elapsed time print(text.format(total=total_time)) return result return wrapper return deco @timeit(text="Done in {total:.3f} seconds !") def heavy_computation(a, b): time.sleep(2) # doing some heavy computation ! return a*b if __name__ == "__main__": result = heavy_computation(6, 9) print("Result:", result) Output: $ python -m test Done in 2.001 seconds ! Result: 54 Besides benchmarking, there are many other cool things that can be done with the Python decorator. For example, the Flask [2] and Bottle [3] web frameworks implement routing with decorators. While decorators are cool, it's worth mentioning that using a decorator is much more intuitive than writing its code. The code is entirely different depending on whether the decorator takes arguments or not. The following code performs the same task as the previous one, except it is more clear and intuitive: import time from hooking import on_enter def timeit(context, *args, **kwargs): # execute and measure the target run time start_time = time.perf_counter() context.result = context.target(*args, **kwargs) total_time = time.perf_counter() - start_time # print elapsed time text = context.config.get("text") # get 'text' from config data print(text.format(total=total_time)) context.target = None @on_enter(timeit, text="Done in {total:.3f} seconds !") def heavy_computation(a, b): time.sleep(2) # doing some heavy computation ! return a*b if __name__ == "__main__": result = heavy_computation(6, 9) print("Result:", result) Output: $ python -m test Done in 2.001 seconds ! Result: 54 The Hooking library used in the code above uses Python decorators to wrap, augment, and override functions and methods. It is a generic hooking [4] mechanism which is perfect for creating a plug-in mechanism for a project, performing benchmarking and debugging, implementing routing in a web framework, et cetera. Also, it is a dual paradigm hooking mechanism since it supports tight and loose coupling [5]. The previous code uses the tight coupling paradigm, that's why the timeit hook is directly tied to the target function. In loose coupling paradigm, targets functions and methods are tagged using a decorator, and hooks are bound to these tags. So when a target is called, the bound hooks are executed upstream or downstream. This paradigm is served by a class designed for pragmatic access via class methods [6]. This class can be easily subclassed to group tags by theme for example. Here is an example of the loose coupling paradigm: import time from hooking import H @H.tag def heavy_computation(a, b): print("heavy computation...") time.sleep(2) # doing some heavy computation ! return a*b def upstream_hook(context, *args, **kwargs): print("upstream hook...") def downstream_hook(context, *args, **kwargs): print("downstream hook...") # bind upstream_hook and downstream_hook to the "heavy_computation" tag H.wrap("heavy_computation", upstream_hook, downstream_hook) if __name__ == "__main__": result = heavy_computation(6, 9) print("Result:", result) Output: $ python -m test upstream hook... heavy computation... downstream hook... Result: 54 This library is available on PyPI and you can play with the examples [7] which are on the project's README. I would like to know what you think [8] of this project. Your questions, suggestions and criticisms are welcome ! [1] https://ift.tt/HF6LyEM [2] https://ift.tt/60cgpr2 [3] https://ift.tt/As8p5ZE [4] https://ift.tt/sLKAvC8 [5] https://ift.tt/CLo52G0... [6] https://ift.tt/cuQ60b5 [7] https://ift.tt/4xIano5 [8] https://ift.tt/rm8kUIq https://ift.tt/qYj1iQr November 9, 2022 at 05:10PM
Tuesday, November 8, 2022
Show HN: Helping laid-off people find their next job https://ift.tt/pW1FHu0
Show HN: Helping laid-off people find their next job https://ift.tt/2I0hKL5 November 8, 2022 at 09:12PM
Show HN: Pet Portrait AI – Custom Pet Portraits https://ift.tt/mN2OtHj
Show HN: Pet Portrait AI – Custom Pet Portraits https://petportrait.ai/ November 8, 2022 at 10:56PM
Monday, November 7, 2022
Show HN: Text-to-Figma https://ift.tt/HMpQbO9
Show HN: Text-to-Figma Hey HN! I've made a NLUI for Figma. This is based on GPT-3 (for generating components & schemas) and Dall-E 2 (for image generation); it's remarkably flexible already and there's plenty of room to expand. One of the more noteworthy features is the ability to edit existing designs instead of just generating things from scratch - we accomplish this by training it on pairs of (before, after) designs in Figma with a description of what changed, and it learns to output the diff based on the description of the change. Let me know what you think! https://twitter.com/mathemagic1an/status/1589657222094934016 November 8, 2022 at 12:30AM
Show HN: AI Editor - Outpainting and image editing using Stable Diffusion https://ift.tt/tSZiOsl
Show HN: AI Editor - Outpainting and image editing using Stable Diffusion https://getimg.ai/ November 7, 2022 at 04:15PM
Sunday, November 6, 2022
Show HN: Financial Scraped Data https://ift.tt/UAEkweD
Show HN: Financial Scraped Data https://ift.tt/NqlzRQx November 7, 2022 at 12:41AM
Saturday, November 5, 2022
Friday, November 4, 2022
Show HN: Brace Lang – parse brace groups and evaluate them however you want https://ift.tt/obcaHzR
Show HN: Brace Lang – parse brace groups and evaluate them however you want https://ift.tt/8dlJiqz November 4, 2022 at 11:46PM
Show HN: 980k USA restaurants and grocery stores search via Zipcode https://ift.tt/jEGg2DC
Show HN: 980k USA restaurants and grocery stores search via Zipcode https://menumy.com/ November 4, 2022 at 11:35PM
Show HN: Auto generate images from Figma using an API https://ift.tt/1CjnsFU
Show HN: Auto generate images from Figma using an API https://pikmaker.com/ November 4, 2022 at 11:10PM
Thursday, November 3, 2022
Show HN: Eleven – Code sandboxes with automatic HTTPS https://ift.tt/SR2QJoL
Show HN: Eleven – Code sandboxes with automatic HTTPS Eleven is the second project that I've built to learn Go. It lets you create code sandboxes in your cloud provider account easily. What's a "code sandbox"? Just a VM, running in your cloud provider account, with some runtimes pre-installed, your repositories cloned, a way to connect to it with your preferred editor (or via SSH) and a way to serve your apps easily via HTTP (with automatic HTTPS). You could use it to deploy your app, as a remote development environment or even to test some code. It's up to you. For example, to deploy a Node.JS app on AWS: $ eleven aws init hello-world --runtimes node@18.7.0 --repositories eleven-sh/hello-world > Success! The sandbox "hello-world" was initialized. $ ssh eleven/hello-world forever node index.js > Forever: command started. Run "forever stop" in current path to stop. $ eleven aws serve hello-world 8000 --as hello.eleven.sh > Success! The port "8000" is now reachable at: https://hello.eleven.sh $ curl https://hello.eleven.sh > Hello World Still learning Go by the way, so I'm open to any suggestions to improve. https://ift.tt/qAJsxzM November 3, 2022 at 09:05PM
Show HN: Open Source Authentication and Authorization https://ift.tt/WwEfv4y
Show HN: Open Source Authentication and Authorization I’m Rishabh and the co-founder and CTO at https://supertokens.com (YC S20). We offer open-source user authentication and we just released our user roles product for companies implementing authorization. Our users are web developers, and a prominent and adjacent pain point for our users is authorization. Developers typically implement two independent solutions for authentication and authorization. Offering AuthN and AuthZ in a single solution is something we’ve been thinking about for the last few years. Quick primer, authentication is knowing who the user is, and authorization is knowing what the user has access to. A physical analogy: A person enters a building. Authentication means reading their ID card and knowing that the person’s name is John. Authorization means knowing which floors, offices, and files John has access to. With increasing privacy and data complexity, companies like Netflix[1], Slack[2], and Airbnb[3] have built out their own complex authorization systems. To build our user roles product, we started with a first principles approach of covering authorization use cases using scripting languages such as XACML and OPA. But looking at existing solutions built by talented teams like Oso[4], Aserto[5], Cerbos[6], Strya[7], we realized that while these were powerful solutions, they were often overkill for most early to mid-stage companies (especially on the B2C side). We went back to the drawing board, reached out to our users and after dozens of conversations, we realized that most authorization needs require the ability to 1. Assign and manage roles and permissions 2. Store roles in the DB and session tokens to make it readable on the frontend and 3. Protect APIs and websites based on these roles and permissions. And so, we built user roles – a simple RBAC authorization service that focuses on the balance between simplicity and utility. It doesn’t cover many complex cases and we’re not looking to displace any of the authorization incumbents. But you can add AuthN and AuthZ using a single solution, quickly. In the near future, we’ll be launching an admin GUI where you can manage your users and their roles with a few clicks. We’d love for you to try it out and hear what additional functionality you’d like to see. What are your favorite authentication providers and what do they get right? - [1]: https://ift.tt/sH6SQIt... - [2]: https://ift.tt/jgotivB - [3]: https://ift.tt/qiXg3nF... - [4]: https://www.osohq.com/ - [5]: https://www.aserto.com/ - [6]: https://cerbos.dev/ - [7]: https://www.styra.com/ November 3, 2022 at 05:45PM
Wednesday, November 2, 2022
Show HN: I used streaming to skip downloading my 45GB dataset https://ift.tt/Hpjfk1I
Show HN: I used streaming to skip downloading my 45GB dataset https://ift.tt/Msh4uXL November 2, 2022 at 07:41PM
Tuesday, November 1, 2022
Show HN: HiSHtory: Your shell history in context, synced, and queryable https://ift.tt/DtLX4sy
Show HN: HiSHtory: Your shell history in context, synced, and queryable hiSHtory is a better shell history. It stores your shell history in context (what directory you ran the command it, whether it succeeded or failed, how long it took, etc). This is all stored locally and end-to-end encrypted for syncing to to all your other computers. All of this is easily queryable via Control-R and via the hishtory CLI. This means from your laptop, you can easily find that complex bash pipeline you wrote on your server, and see the context in which you ran it. https://ift.tt/W72VHKv November 2, 2022 at 02:43AM
Show HN: The Intersection Observer https://ift.tt/RyE17z0
Show HN: The Intersection Observer https://ift.tt/LieEhxZ November 2, 2022 at 12:04AM
Show HN: A tool to help you remember shit you are interested in https://ift.tt/3dnTxIt
Show HN: A tool to help you remember shit you are interested in https://ift.tt/3vfI4tR November 1, 2022 at 11:11PM
Monday, October 31, 2022
Show HN: A Theory of Design: what it is, what it does https://ift.tt/FC2swkJ
Show HN: A Theory of Design: what it is, what it does https://ift.tt/itpx7MZ October 31, 2022 at 10:52PM
Sunday, October 30, 2022
Show HN: Yet Another Open Map https://ift.tt/6lLTEmx
Show HN: Yet Another Open Map A curated collection of authoritative and non-authoritative datasets in a OpenStreetMap-compatible format and data model. For now there is just a draft specification and PoC for Madrid. https://yaom.org October 31, 2022 at 04:09AM
Show HN: Alternative Tab Manager for Firefox https://ift.tt/UL7SXIz
Show HN: Alternative Tab Manager for Firefox This is an addon. I'm using it exclusively for tab management. I removed the bar bar with css to rely only on this. It has a bunch of convenient features that you might like. So far I find it very pleasant to use. https://ift.tt/PKuDkLJ October 31, 2022 at 03:15AM
Saturday, October 29, 2022
Show HN: Core Count, a tool to visualize your software’s physical footprint https://ift.tt/6snQZi7
Show HN: Core Count, a tool to visualize your software’s physical footprint I wanted to make it easier for my coworkers and I to visualize the physical footprint of the software we operate! https://ift.tt/1IP79Zt October 30, 2022 at 12:47AM
Show HN: I made yet another Arduino clone https://ift.tt/0wK8a5Y
Show HN: I made yet another Arduino clone https://ift.tt/BiWJO1Z October 29, 2022 at 08:28PM
Friday, October 28, 2022
Thursday, October 27, 2022
Wednesday, October 26, 2022
Show HN: Interactive symbols from your decompiler to your debugger https://ift.tt/z7QyCBV
Show HN: Interactive symbols from your decompiler to your debugger It works on Ghidra, Binja, IDA, and angr-dec. Currently, gdb is the only debugger supported -- best with GEF. https://ift.tt/RXFOoQD October 27, 2022 at 03:40AM
Show HN: ML Serving orchestration framework on Kubernetes https://ift.tt/B0ZfjEX
Show HN: ML Serving orchestration framework on Kubernetes https://ift.tt/58YTagM October 26, 2022 at 11:54PM
Show HN: Medical Image Segmentation Using K-Means Clustering Using GPU/OMP/MPI https://ift.tt/ro9DpOt
Show HN: Medical Image Segmentation Using K-Means Clustering Using GPU/OMP/MPI https://ift.tt/wPINXt0 October 26, 2022 at 11:04PM
Tuesday, October 25, 2022
Monday, October 24, 2022
Subscribe to:
Posts (Atom)