Better HN
topnewbestaskshowjobs
Log inSign up

_Chief

180 karma · joined Nov 23, 2016 (10y ago) · 52 submissions

Kenyan dev
Submissions

comment 9mo ago · link · parent

> If the SSH connection is set to disallow passwords and only authorize via SSH keys, how big of a risk is this

low risk, do this. Keys (ed25519,4096 rsa) are impractical to brute force. However I'd also recommend:

- use a different port than 22 (add your .ssh/config for easier UX if needed) - port 22 can get incredibly noisy with tons of bots probing

- disable passwordAuth, disable PermitRootLogin - use a normal user with sudo for your ssh

- consider a vpn please - I use tailscale, but I hear headscale is good - then use UFW to only allow SSH from the tailscale network (I generally allow all network on tailscale). Tailscale wrote a guide on this here [1]

- do not add and forget authorized_keys from machines you arent using

- I'm especially worried about how people keep giving Clawdbot/Openclaw access to all their machines, key auth means the machine is authorized on your server

- For new servers I often just add all my public keys to them (github lists all your keys at github.com/GH_USERNAME.keys

1: https://tailscale.com/docs/how-to/secure-ubuntu-server-with-...

comment 9mo ago · link · parent

Received 15+ in 10mins on a public email (dropbox, soundcloud, gitlab, tidelift etc). Then just started hitting handles on the domain ( diddy@, epstein@ ). Just placing an aggressive block for "Activate account" and "zendesk" in content for now

comment 11mo ago · link · parent

Also Kenyan, I once recently spent 10min explaining a technical topic via chat, and the response I got was "was this GPT?". I took a few minutes then just linked an article of how underpaid Kenyans trained ChatGPT for OpenAI [1]

1: https://time.com/6247678/openai-chatgpt-kenya-workers/

comment 1y ago · link · parent

I have been thinking around solving this problem. I think one of the reasons some AI assistants shine vs others is how they can reduce the amount of context the LLM needs to work with using in-built tools. I think there's room to democratize these capabilities. One such capability is allowing the LLMs to directly work with the embeddings.

I wrote an MCP server directory-indexer[1] for this (self-hosted indexing mcp server). The goal being indexing any directories you want your AI to know about and gives the it MCP tools to search through the embeddings etc. While an agentic grep may be valuable, when working with tons of files with similar topics (like customer cases, technical docs), pre-processed embeddings have proven valuable for me. One reason I really like it is that it democratizes my data and documents: giving consistent results when working with different AI assistants - the alternative being vastly different results based on the in-built capabilities of the coding assistants. Another being having access to you "knowledge" from any project you're on. Though since this is selfhosted, I use nomic-embed-text for the embedding which has been sufficient for most use cases.

[1] https://github.com/peteretelej/directory-indexer

comment 1y ago · link · parent

yes, came across xdrip+ when looking for an android app I could use for Libre 2. I don't think Dexcoms are sold in Kenya, and even the Libres around are UK ones so you need 1) a VPN to setup, 2) an iphone. Both things being a challenge for most - I had to buy a my first ever iphone for this. Anyway, found xdrip a bit of a challenge to setup and a bit too technical to suggest to others; needs sideload and manually disabling a lot of Android defaults.

I had a lot of success with Juggluco[1] which is available on the Play Store and provides easy to use APIs to interact with supported CGM readings. Juggluco has an inbuilt xdrip web server but I haven't tried it yet.

Will definitely look into xdrip+ further.

[1] https://github.com/j-kaltes/Juggluco

comment 1y ago · link · parent

Love this! Thank you for sharing! My backend is also in Go so this is a godsend. Will see how I can incorporate and let you know if I do!

> not having sanctioned access to real-time blood sugar values (the APIs are all one hour behind)

Ah, I didn't know this. One of the prospective tools I had in mind was real time alerting in case of drastic drops eg ping doctor or relative. I think will have to be limited to the apps/tools that do support realtime.

comment 1y ago · link · parent

Thanks! I started out with a Nextjs full stack on Vercel, with db on Turso but ended up with a React frontend (next on vercel) and Go backend (selfhosted on vps).

Decided to port the backend to Go + postgres (on a Hetzner VPS), and retain the frontend on Nextjs - A lighter weight client, moving most of the compute to the backend API. Few reasons for the port: I've had a lot more success/stability with Go backends, Turso pulled multi-tenant dbs which is what I mostly wanted them for, Nextjs is getting too hard for me.

Go backend is just the std lib (1.22+ server with the nice routing) - I mostly write all the lines in this

Frontend is textbook modern react: React19,next15,tailwind4 - AI mostly writes the code in the frontend (Cursor + Cline + sequentialthinking + context7 + my own custom "memory bank" process of breaking down tasks). AI is really, really good at this. I wrote this https://image-assets.etelej.com/ in literally 2 days 2 weekends ago with less than 10% of code being mine (mostly infra + hono APIs)

comment 1y ago · link · parent

All types. The sugar dashboard allows import of data from different glucose apps, so its goal is to allow you visualize and analyze your data. I hope to integrate with cgms directly if I get some that allow it, and also source from Health connect. Sharing with specific people eg doctor is also a big ask that I'm working on. The other WIP tools will be fore general health, not just diabetes, like carb counting from a photo via AI

comment 1y ago · link · parent

https://mysukari.com - A Diabetes management platform

I got diagnosed with type 1 diabetes in Feb (technically LADA as it's late onset). I'm the first in my family with it so I had zero info on it. I tried getting some CGMs to use but most don't work in Kenya as they are geo-locked, and even apps for measuring carbs like CalorieKing are not available in my region. I was really frustrated with the tech ecosystem, and started working on My Sukari as a platform of free tools for diabetics.

I mostly get time to work on it on the weekends, so it's not yet ready for public use, but I've fully fleshed out one of the main features: Sugar Dashboard - A dashboard that visualises your Glucose data and helps you easier analyse it.

To help with demos, I've shared my Sugar Dashboard here: https://mysukari.com/tools/sugar-dashboard/peter

I'm really passionate about this and getting as much free, practical tools in the hands of patients (it honestly shouldn't be this hard to manage a disease)

comment 1y ago · link · parent

> the only info we do store is your session's cookies (and only if you're logged in).

If this truly is the only cookie you store, then you may not need the cookie banner, you can explain the cookie usage in your Privacy Policy.

For gdpr[1], strictly necessary cookies, like for login as you describe, do not require consent to be obtain as long as their usage is explained like in your privacy policy.

[1] https://gdpr.eu/cookies/

comment 1y ago · link · parent

This brings back so many fond memories. I grew up in a rural part of Kenya where the internet was scarce and tech practically non-existent. I was interested in web dev and taught myself PHP using HTTrack to download the php manual site, then the cprogramming.com website. I remember writing these site contents onto a thick notebook to read in school. Cprogamming.com imho was my programming foundation as I treated it as programming gospel. That kid back then would be shocked at how far I've come, now a dev at MS. Not sure how I came across httrack back then but I am so glad I did

comment 3y ago · link · parent

Logging in shows a dashboard asking you to implement it on your site.

That's not what I expect from a "demo" of a captcha.

A recommendation would be; please use mcaptcha on the mcaptcha account sign up page at the least. It'd then provide an instant user UX demo which is one of the major pains of captchas.

Or at least provide a link to the widget[1] for UX demo, where inspecting networks calls also shows the api calls in action

[1] https://demo.mcaptcha.org/widget/?sitekey=pHy0AktWyOKuxZDzFf...

comment 4y ago · link · parent

A tip for going over github code is to use the github.dev domain. This will help going over the code in an IDE (if you'd like that), that provides you language features, and easier navigation (eg Go To/ Peek Definitions, or References). It also helps avoid to clone a large repo to do the same locally.

For example https://github.dev/dotnet/roslyn/blob/main/src/Analyzers/CSh... (takes a few mins to cache such a large repo, but caches in browser local storage for subsequent use)

comment 4y ago · link · parent

In case you're trying to open the RFC links on the site, the IETF site no longer supports http and does not redirect to https, hence you see a 404 error. You can manually open https versions of the urls to visit them

JSON Patch - https://datatracker.ietf.org/doc/html/rfc6902 JSON Pointer - https://datatracker.ietf.org/doc/html/rfc6901

Tried PR'ing to fix site, but repo didn't seem active

comment 4y ago · link · parent

that's right. "Ki" in this context is a prefix that's used to denote a language or the language spoken by a people ("ki ya lugha" - ki of language). This is exactly like English has language suffixes -ish, -ic, -iese, -ian; for example English, spanish, arabic, japanese, vietnamese. Where "ki" globally serves in Swahili, for example kiswahili (language for the swahili - people of the coast), kiingereza (english), kirusi (russian), and if you don't know the correct language used in a place/country it's valid to say kiukraine (language spoken by the people of ukraine)

As a Kenyan I found this read quite delightful, containing a lot I didn't know of the history of a language we speak.

> Nyerere personally translated two of William Shakespeare’s plays into Swahili to demonstrate the capacity of Swahili to bear the expressive weight of great literary works.

comment 5y ago · link · parent

This is great! Can't wait to give it a try. Waiting for the Windows version though.

Does the electron GUI need to be open for it to fetch the data, or can it do that as a background service as well, for example if one just wanted an always up to date persistory.db to use directly? For example an api server and a custom browser extension consuming it, or are these also being considered for browserparrot

comment 5y ago · link · parent

I feel it's not by accident you don't understand it. The documentation says that it's heavily inspired by TailwindCSS and calls itself utility-first. However if you've used TailwindCSS or most other utility-first frameworks, you'll find it's not the same (which is ok, but does not get clarified).

Pollen uses css variables as the utilities in "utility-first", not classes. So to better understand the docs, take a look at the usage of css variables.

Utility-first as used by the most other frameworks (like Tailwind), are based on AtomicCSS. The concept behind it being, as atomic implies, using single irreducible units for each class (a single style). This site[1] provides curated reading resources on the topic. While it is a new concept and still being defined, use of classes as the utilities is the more commonplace usage, hence if writing a framework that does not do that I feel one should make that clear.

This means that the Introducing Pollen page will be confusing by design, as it implies use of utility-first CSS but the first example shows a Boostrap-like `.button`. Most other examples on the site also show 1 style classes, also misleading on the classes actually being "atomic".

In summary, Pollen is a framework that uses css variables[2] as the utilities. I like what it's doing and watching to see it grow. To better understand the value provided I'd recommend this video[1] on CSS variables, and this framework being a rapid prototyping foundation using the same concepts.

[1] https://johnpolacek.github.io/the-case-for-atomic-css/

[2] https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_c...

[3] https://www.youtube.com/watch?v=LwYZTKxj-do

comment 5y ago · link · parent

Same experience for me, no game breaking bugs so far. However I am worried (a lot) about save files getting corrupted once they reach 8mb [0] . Hope that gets addressed sooner than later

[0] https://www.reddit.com/r/cyberpunkgame/comments/kfpwt5/psa_s...

comment 5y ago · link · parent

+1. I wish the app had a high performance mode that'd cache all blocks of recently opened pages in RAM. May be had to implement and still retain collaboration on pages, but possible if the mode would also write-lock those pages for the period

comment 5y ago · link · parent

My fav Udemy course is a bash shell scripting course[0] . The content is worth reviewing especially for any beginner/intermediate sysadmins/devops/backend devs.

Another one I like is an intermediate js one JavaScript: Understanding the Weird Parts[1]

[0] https://www.udemy.com/course/complete-bash-shell-scripting

[1] https://www.udemy.com/course/understand-javascript

comment 6y ago · link · parent

seeing secrets.txt in the repo gave me a fright for a second and it's not even my project

comment 6y ago · link · parent

Any reason Github OAuth needs permissions like Resources and Actions for login?

comment 7y ago · link · parent

This is really nice work. Tried it out on a blog[1], works really well with content-heavy technical docs. Had to add some custom stylings for new blocks, but that was also pretty easy to do.

1: https://peteretelej.github.io/setup-ubuntu-vps

comment 7y ago · link · parent

Docs explain this, not as detailed as the post, but it does touch on slices referencing/wrapping an array. However, there is a blog post dedicated to slice internals https://blog.golang.org/go-slices-usage-and-internals that dives further in

comment 7y ago · link · parent

I find it interesting how a lot of Go devs, myself included, agree that Rust is better in terms of language design, performance etc but still use Go. Personally, it's the productivity that has me reaching for it first

comment 7y ago · link · parent

I don't appreciate your calling Kenya a hell-hole, after it gave you refugee shelter from Somalia.

After your criminal activity in the United States, I doubt the UK or even Kenyan authorities would allow you such status.

comment 7y ago · link · parent

Nice concept. Though, is it a table anymore if it's responsive? Maybe allow horizontal scrolling in smaller viewports b/c on smaller screens looks like an unordered list of html elements

comment 7y ago · link · parent

Just checked his comments, for someone that despises the language and its developers, he sure has a lot of interest in it. Bizarre

comment 8y ago · link · parent

vuepress also generates SEO friendly docs, eg when compared to docsify, but on the flip side docsify has full text search, while the default vuepress theme only searches headers (but since its seo ready most third party search will work ef algolia, google).
12