Better HN
topnewbestaskshowjobs
Log inSign up

shardulaeer

132 karma · joined Feb 26, 2020 (6y ago) · 22 submissions

Submissions

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Not yet but cool idea. Lot of profiles are reused, so it makes sense to write a yaml repository for common profiles.

comment 3y ago · link · parent

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.

5.

Show HN: OpenBLE, Swagger for Bluetooth(demo.openble.org ↗)

122 points · by shardulaeer · 3y ago · 43 comments

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Awesome, would really appreciate your feedback!

comment 3y ago · link · parent

Fixed, thanks for the heads up!

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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

14.

Show HN: Servicer, pm2 alternative built on Rust and systemd(servicer.dev ↗)

147 points · by shardulaeer · 3y ago · 37 comments

comment 5y ago · link · parent

Also, Hacker News discussion for this post: https://news.ycombinator.com/item?id=3576127

16.

Why JavaScript is a toy language (2010)(web.archive.org ↗)

1 points · by shardulaeer · 5y ago · 1 comment

comment 5y ago · link · parent

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.

18.

Open Source Mechanical Watch(openmovement.org ↗)

9 points · by shardulaeer · 5y ago · 1 comment

19.

Mysorean Rockets: 18th century India to Napoleonic wars(en.wikipedia.org ↗)

2 points · by shardulaeer · 6y ago · discuss

comment 6y ago · link · parent

Anyone knows how this game has been ported to the browser? Is it compiled to Webassembly?

21.

Shenanigans of Serverless(medium.com ↗)

3 points · by shardulaeer · 6y ago · discuss

22.

Kra Canal(en.wikipedia.org ↗)

2 points · by shardulaeer · 6y ago · discuss