HNHacker News
TopNewBestAskShowJobs

shardulaeer

132 karma · joined February 26, 2020

submissionscomments
shardulaeer··on Show HN: OpenBLE, Swagger for Bluetooth
> But once you have defined and tested your GATTs, it hasn’t been my experience to come back to it a ton of times.

> It was my experience to care more about distance, speed, interval, and MTU on actual hardware than protocol confirmation to a PC.

That's exactly my concern, coupled with a (perceived) small pool of Bluetooth developers. Do you think there's a market for a Postman style commercial cloud product for team collaboration?

shardulaeer··on Show HN: OpenBLE, Swagger for Bluetooth
I started with TOML but switched to YAML because people are familiar with OpenAPI. Ultimately everything is parsed to a Javascript object so you can have adapters in your favourite spec language.
shardulaeer··on Show HN: OpenBLE, Swagger for Bluetooth
Not yet but cool idea. Lot of profiles are reused, so it makes sense to write a yaml repository for common profiles.
shardulaeer··on Show HN: OpenBLE, Swagger for Bluetooth
Hey, thanks for checking out my project. So the spec is independent of Web Bluetooth; like Swagger is to Swagger UI. I considered electron but it needs installation and wouldn't run on mobiles. Perhaps Web Bluetooth is not ready for devices, but is perfect for dev tools like this one.

As of today it can generate an Arduino GATT server; I'm working to support more platforms, Zephyr, iOS etc.

shardulaeer··on Show HN: Servicer, pm2 alternative built on Rust and systemd
Thanks for the feedback! I'm certainly add a `--user` flag. One kind note though, the service being set up does not have root access. The value of `User=` is $SUDO_USER (hp- my regular non privileged user that initiatiated sudo mode) instead of $USER (root). Sudo is needed for writing `.service` files to `/usr/` and for start, stop operations with dbus.
shardulaeer··on Show HN: Servicer, pm2 alternative built on Rust and systemd
Awesome, would really appreciate your feedback!
shardulaeer··on Show HN: Servicer, pm2 alternative built on Rust and systemd
Fixed, thanks for the heads up!
shardulaeer··on Show HN: Servicer, pm2 alternative built on Rust and systemd
That's a good thought. `sudo` is needed for writing to `/usr/`. The service being set up does not have root access. The value of `User=` is $SUDO_USER (hp- my regular non privileged user who initiatiated sudo) instead of $USER (root).

https://github.com/servicer-labs/servicer/blob/762801e3c07b1...

shardulaeer··on Show HN: Servicer, pm2 alternative built on Rust and systemd
I think it's more about ease of use and developer experience. I agree that in the current state servicer is a proxy to systemd, anything you can do here you can do on systemd. Later down the line I will try to support process managers on Mac and Windows.

I'm happy see this question "Why not use systemd" finally being asked. Apparently the people on NPM (2 million weekly downloads for pm2) ~~disagree~~ don't care. `pm2 start` just works, not everybody is a system admin. There are a bunch of threads around asking for a pm2 for Rust or golang. This tool tries to address this segment.

You can be a linux veteran still benefit with some commands like `ser status` which will only show the services you created, not the wall of text shown by `systemctl list-units`. CPU and Ram usage is thrown in as a bonus so you don't need to run a separate command. It's a neat trick that uses no database. The services end with `.ser.service`, this way we only see the units that servicer created. Run `ser which` and you'll get the unit and service file destination.

shardulaeer··on Show HN: Servicer, pm2 alternative built on Rust and systemd
That's interesting! I wasn't aware of this command when I started working on servicer. Anyway, there are a couple of utilities like `ser status` and `ser which` which you might find useful.
shardulaeer··on Show HN: Servicer, pm2 alternative built on Rust and systemd
Thanks for the heads up, I shall update the landing page. The tool tries to detect the interpreter (currently just node and python), but you can provide a custom one with `--interpreter deno`.
shardulaeer··on Show HN: Servicer, pm2 alternative built on Rust and systemd
I built the tool simply to improve developer experience. Run `systemctl list-units` and the console is flooded with a wall of services, most of them are not mine. Run `ser status` and I only see the ones that I created. The activity state, CPU and memory usage is displayed so I don't need to run a separate command.

    hp@hp:~$ ser status
    +-----+-------------+----------+----------------+-------+--------+
    | pid | name        | active   | enable on boot | cpu % | memory |
    +-----+-------------+----------+----------------+-------+--------+
    | 0   | hello-world | inactive | false          | 0     | 0      |
    +-----+-------------+----------+----------------+-------+--------+
    | 0   | index.js    | inactive | false          | 0     | 0      |
    +-----+-------------+----------+----------------+-------+--------+
Another UX improvement is the template generation. I found myself googling it everytime. I f there is something more custom (etc sockets) I can use the `ser edit`, this will open nano with a pre-populated template that I can edit.

Finally why limit oneself to systemd? pm2 runs on Mac and windows, I aim to do the same. Same set of commands to create services everywhere, with details abstracted away (easier said than done, need to look into their APIs).

shardulaeer··on Why JavaScript is a toy language (2010)
Also, Hacker News discussion for this post: https://news.ycombinator.com/item?id=3576127
shardulaeer··on Soviet children’s books became collectors’ items in India
Those looking to buy Soviet era books in Mumbai, check out People's Book Store in Fort area (Google maps- https://goo.gl/maps/pJd7ve2g68D8AXsK7). Behind racks of Marx and Che Guevara are stashed quite some rare books.

I distinctly remember seeing the cover image book (Adventures of Denis). Visited sometime in late 2018.

shardulaeer··on Play Counter-Strike 1.6 in your browser
Anyone knows how this game has been ported to the browser? Is it compiled to Webassembly?