HNHacker News
TopNewBestAskShowJobs

TDiblik

64 karma · joined September 16, 2022

I am a programmer using: C# (work BE), React (work FE), Rust/Go (hobby performance-heavy apps) Personal Site: https://tomasdiblik.cz/
submissionscomments
TDiblik··on Automatically generate swagger files from Golang fiber code
Hey, I would like to get some feedback on the library I'm developing for fiber v3. It basically automatically generates swagger.yaml + swagger.json + swagger editor ui from your fiber routes.

It can automatically generate the route + the route path parameters. If you wanna provide more info, I've created a simple interface that wraps the fiber's router and isn't too annoying ... or you can use `gofiberswagger.RegisterRoute()` to add the definition on your own (without touching the existing code).

The library uses reexported github.com/getkin/kin-openapi types, that means that you can specify ANY openapi field you wanna (not only in routes, but also in the general config, eg. auth / security schemes / title / openapi version / etc).

I've implemented it into some of my personal projects and tbh I love it, that's why I decided to share it with y'all. I know about swaggo/swag, however I don't like how my code looks while using it.

I've created some basic examples inside the `/examples/` folder, so be sure to check them out! Any feedback would be appreciated.

TDiblik··on My VM is lighter (and safer) than your container (2017)
First thing that comes to mind is the need to link against libraries across platforms. Imagine that my app depends on opencv, if I wanted to statically link everything on my Windows machine, I need to compile opencv for Linux on my windows machine (or use pre-compiled binaries). Also, if you link against libraries dynamicaly, it's likely you can compile them on the host machine (or in a container) with more optimizations enabled. And the last thing is probably the ability to "freeze" the whole "system" environment (like folders, permissions, versions of system libraries).

Personally, I use containers to quickly spin-up different database servers for development or as an easy way of deployment to a cloud service...

TDiblik··on More than 80 AI models from Qualcomm
In theory, you must have written some code to train the models + download the data ... just openning this code + adding logging to store the sources trained on, you could achieve trully "open source" (anybody can now go and scrape + train the same way you did and achieve the same outcome/model)

I'm not saying "opening models is bad", it's good. However imo it would be nice to have a semantic way to differentiate between those two

TDiblik··on Ask HN: What are good books/blogs to read for a first time CTO?
Depends on what you're into:

romance: i would suggest "Looking for Alaska" by John Green or "Pierre et Luce" by Romain Rolland

fantasy: The Way Of Kings by Brandon Sanderson or "Blackout" by Marc Elseberg

life advice ig?: "The Algebra of Happiness" by Scott Galloway

... never been a CTO xd

TDiblik··on Show HN: Advent of Code CLI
the first usecase I thought about was the tryhards that want to save every second :D ... idk there could be a legitimate usecase
TDiblik··on A coder considers the waning days of the craft
as a high school student, I'm more hesitant to go into CS degree not because of chatgpt but because it is constantly marketed as a high income job and A LOT of people are choosing/learning it. I wonder if it's gonna be the same in 10 years or so. Chatgpt/copilot make stuff easier and there are only so much CRUD apps to be made :/
TDiblik··on Stealing OAuth tokens of Microsoft accounts via open redirect in Harvest App
hi ^^, limited knowledge as well, however I'm pretty sure the issue is that Harvest allows all urls to be used as callback urls. You should tell microsoft to allow only certain urls as callbacks. eg, when setting up the workflow, they probably used a wildcard as an allow list of callback urls, instead of creating an actual list of trusted callback urls. I think that's what's happening here, could be totally wrong tho :D
TDiblik··on Ask HN: Show me your half baked project
I've finished the core logic like a half a year ago, haven't had the time to add GUI yet -> https://github.com/TDiblik/deps-graph
TDiblik··on GitHub education pack requesting real name on public profile
Yep, few of my classmates had a problem with it. Just change your name temporarily and then change it back :/ ... sucks but works atm
TDiblik··on [dead]
Open your eyes, look up to the skies and seeeeeeee
TDiblik··on Ask HN: Please recommend me an NSFW content detection API
If you need a quick & dirty solution (that works for now), I suggest using [An Algorithm for Nudity Detection - by R. Ap-Apid](https://www.researchgate.net/publication/249767252_An_Algori...). It has multiple oss implementations in [js](https://github.com/pa7/nude.js), [python](https://github.com/hhatto/nude.py), [ruby](https://github.com/rummelonp/nude.rb), [go](https://github.com/koyachi/go-nude), and you could probably find one in the language you're using (or implement it yourself). It works well enough™
TDiblik··on Astro: All-in-one web framework designed for speed
Personally, I really like svelte. Either use a bundler + js library for redirects OR SvelteKit with static adapter (https://kit.svelte.dev/docs/adapter-static). Fyi I use the latter since it's easier to setup and bit more trouble-free to use overall :D
TDiblik··on Blade-Runner-Tailwind: A Collection of Blade Runner Themed Tailwind Components
Want to get a job => learn React Want to have fun => learn Svelte

There are a lot of tutorials, but I found following the docs is the most straight forward.

If you're interested in frontend/full-stack development state atm, check out "Theo (ping.gg)" on youtube.

TDiblik··on Expo – Open-source platform for making universal apps for Android, iOS, and web
Yeah, afaik, in the old template version `npm run export` activated the `expo export` and THAT got deprecated (recently), however at the time (about half a year ago) I thought that the `--local` flag was getting deprecated. Sorry, that was a huge misunderstanding on my end!
TDiblik··on Expo – Open-source platform for making universal apps for Android, iOS, and web
yes, you are right, however, AFAIK you still need to be logged + have it linked to eas project (because it uses eas credentials) + this method is planned to be deprecated soon [?] (I'm 100% sure I read stuff like this when researching it like half a year ago, but cannot find it for the love-of-god atm :D, but I would like to be proved otherwise, because the build step is the only thing I disliked about expo long-term wise)

... now looking more into it, I probably mistook `npm run export` / `expo build` with `eas build --local`. Is this correct?

TDiblik··on Expo – Open-source platform for making universal apps for Android, iOS, and web
Tbh, I liked expo, but since you cannot build locally nowdays (you can eject and build, but that won't work 99% of the time, literally didn't work for me on the hello world example), I kinda just threw it in the "cool, but won't use" bucket for time beeing :/, could change in the future, but I don't know how I feel about 3d party service (EAS) building my app and holding my signing certificates (yet)
TDiblik··on Why Host in Kosovo?
TIL HN does not support emojis, so the original comment lost the desired meaning :(
TDiblik··on Why Host in Kosovo?
"If I would ..."
TDiblik··on The Nano ESP32
chip on it, e-ink display sawthered on and etc, just get me from my prototype to a full on product. Basically, I want to advance my skills to the next level, but I struggle to find how :/ .... you seem to have experience in this kind of stuff, could you please answear some of these questions?

Ps: accidentally posted before I finished the comment and using mobile client without ability to edit comments :d

Ps2: these comments are kinda out of context, but it's something that's bothering me for more than a month now.

TDiblik··on The Nano ESP32
Hi, just asking, I'm interested in embedded but as an outsider I fail to understand how would I go about making custom board? I googled a lot, but I still fail to grasp how do you make the board? How do you program the chip? How can you test your board? How can you prototype on an arduino, if you'll use different architecture STM vs Atmega, etc... I've done some arduino projects using VSCode and Platformio and I want to level up my skill level, however I've been struggling to find a resources that goes throught the process of actually making the product from scratch (starts with nothing and ends with a programmed product on custom board). For example, I have this project of mine where I make smart watches using an arduino and e-ink paper display. I would like to read / watch a resource where I learn to design a board that has custom STM32
TDiblik··on A dispute over IPv4 addresses blew the lid off an effort reshape allocation
Hey, recentlly wrote a little site that could be relevant here (ip-atlas.tomasdiblik.cz), basically, I download ip2asn list and list how many IPs (4s and 6es) are not routed yet and how many are owned by which entity (and what ranges). Idk it was an interesting weekend project :D (Although, I was kinda suprised that percentage-wise, number of IPv6 and IP4 is nearly identical, makes you wonder wether companies should own HUNDREDS OF MILIONS of IPv6es)

PS: The site can get laggy on low end devices, because of the number of records (sorry :(, but I didn't want to spend too much time on this project)

TDiblik··on Ask HN: Could you share your personal blog here?
https://tomasdiblik.cz/pages/blog

It ain't much, but it's honest work

TDiblik··on Tell HN: My Reddit account was banned after adding my subs to the protest
And then being pointed at as a source of all problems. I'm pretty sure I've heard about something similar that was happening in Slovanian countries not so long ago :D /s
TDiblik··on Zig is hard but worth it
Hi, why is this feature interesting/important? (Coming from [uneducated] webdeveloper with interest for systems/embedded programming)
TDiblik··on Add opt-in transparent telemetry to Go toolchain
I might be wrong, but isn't dotnet telemetry opt-out by default?
TDiblik··on Ask HN: Who wants to be hired? (March 2023)
Type: Internship (I think it's allowed here? If not, feel free to delete :D)

Location: Anywhere, except Czech Republic

Remote: No

Willing to relocate: Required for the duration of the internship, will pay the expenses, if you offer a salary.

Technologies: Looking for - Rust ; used professionally - ASP.NET Core (MSSQL, PostgreSQL, Dapper, EF, DI, etc...), React (recently Svelte as well), UWP/Winforms

Résumé/CV: https://www.linkedin.com/in/tdiblik/?locale=en_US (personal site is WIP, you can check it out on Github tho, won't take more than 2 minutes :D)

Email: dibla.tomas@post.cz

Hi, I'm looking for an abroad (living in Czech Republic) full-time internship during the months of July and August of 2023. I will be 18 at the time of the internship. I'm looking for Rust based internship, preferably in a 5+ team. I have used Rust for hobby projects in the past (SIMPLE web servers, some embedded, tuis,...) and some simple utility projects professionally. I am using C# and React/Svelte (with TS) professionally, but I would like to try working on larger/corporate Rust projects, since I've never done that before. I would also like to try working in a in-person team, since I'm mostly programming projects remotely by myself (largest team I've been in were 4 people, including me). I'm being specific about these requirements, because I view this protentional internship as a learning opportunity, but I'm a fast learner, so I won't be dead weight :D. Also, that's the reason why I am open to any type of work involving Rust, as I see this as a learning experience.

If you'd like some kind of trial period before going in, I have 2 free weeks (15.05.2023 - 26.05.2023), where I would be able to remotely full-time contribute some code to your codebase (and prove my worth! :D).

Github: https://github.com/TDiblik

TDiblik··on New AI classifier for indicating AI-written text
I mean it depends, is number of possible answears per prompt known? If so, can we even realistically calculate number of possible prompts? AFAIK ChatGPT answears even tho there is a gramatical mistake in your sentence, does that affect answears/is that considered a new prompt? Ok, let's say you feed all N possible answears in and make a rainbow table of hashes. Sha is basically random (not really, but lets not go there), after I generate my text using AI (which would get flagged by your detection system) and change few letters/words here and there, your whole Sha rainbow table becomes useless - right? I could be totally wrong, but I don't see Sha as a way to solve this problem, because of these complications :/
TDiblik··on Patterns.dev – Modern Web App Design Patterns
A lot of projects have been built with React and new ones start every day. React's here to stay for at least another 15 years (imo). Websites like these could be at least good as documentation of React features/patterns used in old React codebases you have to maintain in future. These assumptions lead me to believe that websites like these will age incrediblly well.
TDiblik··on Degenerate matter: How reality deals with uncertainty
I'm pretty sure you can find a lot of degenerate matter on reddit/twitter xd
TDiblik··on Ask HN: LastPass Alternatives
KeePass with db stored on OneDrive
Page 1 of 2Next →