HN user

TDiblik

64 karma

I am a programmer using: C# (work BE), React (work FE), Rust/Go (hobby performance-heavy apps) Personal Site: https://tomasdiblik.cz/

Posts6
Comments44
View on HN

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.

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...

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

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

the first usecase I thought about was the tryhards that want to save every second :D ... idk there could be a legitimate usecase

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 :/

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

[dead] 3 years ago

Open your eyes, look up to the skies and seeeeeeee

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™

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?

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)

The Nano ESP32 3 years ago

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.

The Nano ESP32 3 years ago

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

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)

Hi, why is this feature interesting/important? (Coming from [uneducated] webdeveloper with interest for systems/embedded programming)

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

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 :/

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.