viktorelofsson

Joined 12 years ago

Karma
148
Submissions
50
Member since
Oct 1
viktor [at] viktorelofsson.se
View on Hacker News

Recent submissions

Comment · 4 years ago
Comment · 4 years ago
BitTorrent v2 has been officially supported in PicoTorrent since the same date as the featured blog post from libtorrent :)
Comment · 5 years ago
Of course I can :) Thanks for pointing it out!
Comment · 5 years ago
Hello HN!

Today we officially launch our first SaaS - Shellhook, a service to turn any shell command into a HTTP API.

We've been working on it on late nights and weekends for almost a year, with some breaks here and there. It's built on top of .NET for (almost) all hosted services while the CLI is written in Go. The backend services consists of a little bit of Postgres and a little bit of RabbitMQ.

How it works (basic edition): - the CLI connects to a WebSocket with a unique user token and waits. - the incoming API takes the request, matches it to one or more connected CLI clients, and distributes the input to their WebSocket connections. - each CLI client takes the input and executes whatever command the user specified when starting while having the HTTP POST body in the standard input, and then returns the output back on the WebSocket. - the WebSocket service then makes sure the incoming API request gets the CLI output from all clients as a structured JSON response.

It's a little bit more involved due to supporting load balancing etc, but I'm happy to answer any questions either about using Shellhook or how it's built!

Also, even though it's free to try - if you do choose to subscribe, feel free to use coupon code HN50 to get 50% off forever.

Comment · 6 years ago
That's really valuable, thank you!
Comment · 6 years ago
I'm using wxWidgets, so it's the Win32 API at the lowest layer. For accessibility I want to make it support the NVDA screen reader which I think would make it support other readers as well :)
Comment · 6 years ago
There are two libraries called libtorrent - Rasterbar-libtorrent (the one in this discussion, made by arvidn) and rakshasa-libtorrent (made by rakshasa).
Comment · 6 years ago
Comment · 7 years ago
Thanks for the information! It's given me a positive outlook on a second trial for the Win32 API stuff :)
Comment · 7 years ago
Sure! Two examples where the Win32 API and/or my knowledge of it falls short,

  * Layout management. There's no "easy" way of managing dialog layouts (letting controls expand/shrink on resize etc).
  * Custom controls (e.g a tree-list-view) are clunky to write.
I'd much rather write PicoTorrent on top of the pure Win32 APIs, which I did in the beginning. It then evolved and when I valued time against frameworks, frameworks won, and saved me time :)

You can hit me up at the email in my profile if you want to discuss further!

Comment · 7 years ago
(Author here) I haven't listed the specific features from Rasterbar-libtorrent but I'll make sure to do that in an upcoming update, to make it clearer. It supports DHT, PeX and LSD as well as various proxies (SOCKS4, SOCKS5, HTTP).

The first few versions actually had the vanilla Rasterbar-libtorrent peer ID and user agent, and in v0.5 users could opt-in to use PicoTorrent peer ID and user agent, and a few versions after that I made that the default.

I've been in contact with as many private trackers I could find and it's an ongoing effort to discuss with them what they require for whitelisting.

Comment · 7 years ago
Author here - the readme is a bit outdated, sorry about that :) wxWidgets is a hard dependency since a few versions back.
Comment · 7 years ago
Hi! Author here. The name has been with us since the beginning, and the first few versions were actually quite small. Since then, features and other things have made things grow (mostly in file size). Since I'm a lone developer, the hardships of working with the Win32 API has made me base PicoTorrent on wxWidgets, which is why the file size is what it is.

I still try to keep it slim, fast and clean in overall usage :)

Comment · 8 years ago
Hi HN! I've been working with ElasticSearch the last few days and got tired of elasticdump being slow when dumping data to disk, so I wrote Blaze.

It dumps indexes to disk fast. It dumps them in a format compatible with the ElasticSearch Bulk API so it's easy to put the data back as well.

Please try it out and let me know what you think!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton