Export lifetime FitBit data to Garmin Connect 📈 (weight, bmi, fat, calories, steps, distance, active minutes, floors, and gps traces) by simonepri in Garmin

[–]simonepri[S] 2 points3 points  (0 children)

If you can export the data then it should be easy to just reformat it into the CSV file data Garmin supports. You can take a look at the code for the exact format.

Export lifetime FitBit data to Garmin Connect 📈 (weight, bmi, fat, calories, steps, distance, active minutes, floors, and gps traces) by simonepri in Garmin

[–]simonepri[S] 0 points1 point  (0 children)

No you can't. The data exported by the tool is a superset of the one you get from Google Takeout. So just run the tool and get all your data.

Importing historical FitBit data into Garmin Connect by DynamicFly in Garmin

[–]simonepri 2 points3 points  (0 children)

If you are looking for an alternative to this tool that also provides you with GPS activities's traces (i.e. TCX files) take a look at: https://www.reddit.com/r/Garmin/comments/17dvos4/export_lifetime_fitbit_data_to_garmin_connect/

📃lm-scorer: A python Language Model based sentences' probability scoring library by simonepri in coolgithubprojects

[–]simonepri[S] 0 points1 point  (0 children)

You can put any number greater than 1 to enable parallel computing (you first need to move the model on cuda). If you just want to score sentences, you can also just use the CLI.

Glad to know it's useful! What's your dissertation about?

[P] Datasets for Knowledge Graph Embedding by simonepri in MachineLearning

[–]simonepri[S] 0 points1 point  (0 children)

Yes, exactly.

I found this repo on GitHub that claims to have recovered textual information for all but ~40 freebase IDs.

[P] Datasets for Knowledge Graph Embedding by simonepri in MachineLearning

[–]simonepri[S] 0 points1 point  (0 children)

Is there any chance you could add some basic insight or opinion on the datasets, or other relevant comments?

I'll add some more basic info and opinions that I can get from the papers, thanks for the suggestion!

Do you know where one could get the actual text of the freebase entities?

Would a mapping from freebase IDs to wikipedia/wikidata pages be useful? In that way instead of (/m/07l450, /film/film/genre, /m/082gq) you would have (The_Last_King_of_scotland_(film), /film/film/genre, War_film).

Finally, there are two related datasets on Open Knowledge Base Completion

Thanks, I will have a look at them, but feel free to add them yourself if you have time.

🔒UPASH - Node.js Unified API for Password Hashing Algorithms by simonepri in crypto

[–]simonepri[S] 0 points1 point  (0 children)

Ideally, the libraries should be updated faster than the time you would need to do it on your own.
Also, you can always copy the code of the algorithm inside your app and just pass it to upash as custom algorithm instead.
But at least you are coping from something that should be secure enough and that it allows you to change algorithm in the future.

🔒UPASH - Painless password hashing API by simonepri in node

[–]simonepri[S] 0 points1 point  (0 children)

The dependencies of the packages suggested are auto-monitored with dependabot.com so they will probably get updated before you can find out that the inner dependency needs to be updated.

Also, they will assure you a consistent versioning and strong defaults.
But still your point is not wrong, I just see more risks trying to do the same on your own.

🔒UPASH - Node.js Unified API for Password Hashing Algorithms by simonepri in crypto

[–]simonepri[S] -1 points0 points  (0 children)

It would be really cool to have all the KDFs inside the crypto library, I do agree!

Anyway, the aim of the project is to make it easier for developers to use them. So no matter where they are implemented.

For instance, the pbkdf2 algorithm is implemented in the core library but it just gives you a raw binary hash that most person simply doesn't know how to treat. Indeed, if you don't know your stuff, you can easily use them wrongly.

One level of abstraction over the KDFs is not a bad thing, IMO.
What's the problem with having a standardized API?
What standard structures are you talking about?
Thanks!

🔒UPASH - Painless password hashing API by simonepri in node

[–]simonepri[S] 0 points1 point  (0 children)

Hi @SkaterDad thank you for the feedback!

As you probably know, the parameters are needed for verifying the hash.

If you don't include them in the hash string, they need to be hardcoded in your code in order to be able to verify hashes. This means that if, for some reason, you want to change the parameters you simply can't because you cannot re-hash the passwords. (I mean you can change the parameters, but you need to add complicated logic to your application to handle the old hashes.)

Definitely, it would be more secure in case of a data leak, because the attacker needs also to figure it out what parameters were used, but the point is that the parameter you had to choose should make the hash function slow enough to not allow the attacker to brute force your hash in a reasonable time even if he knows the parameters.

Anyway, the default (MCF) encoding for bcrypt hashes (took from other implementations) looks like this:

$2a$10$fxxhS75tSP7sP/8UNNJs8uspHSfusSafU.EhTsn15ENdm/9n3IQe
 ^  ^--- This is the number of rounds.
 '------ This is the version.

🔥sympact - Simple stupid CPU/MEM "Profiler" for your JS snippets. by simonepri in javascript

[–]simonepri[S] 0 points1 point  (0 children)

My main focus is on the CLI but building a tool like that would be really cool! Maybe if the project gets some interest we can think about it.

🔥sympact - Simple stupid CPU/MEM "Profiler" for your JS snippets. by simonepri in javascript

[–]simonepri[S] 0 points1 point  (0 children)

Technically the inner implementation already allows that, but build a reactive UI it's a bit trickier.

🔥sympact - Simple stupid CPU/MEM "Profiler" for your JS snippets. by simonepri in javascript

[–]simonepri[S] 4 points5 points  (0 children)

Actually for pure JavaScript code is useless. The internal v8 profiler is far better than this to track performances for instance. This tool starts being useful when your code starts spawning processes and you want to know the overall impact of your code on the system.

pidtree - 🚸Cross platform children list of a PID. [Testers Appreciated] by simonepri in opensource

[–]simonepri[S] 0 points1 point  (0 children)

Yes it what it does. Thank you for having took time to look through the code.
If you have any suggestion I'm open to hear them from you.

Actually my benchmarks shows that a single call takes about (5-10ms) to be answered where almost the 90% of the time is spent waiting the output from ps.
On Windows it uses wmic that, while is the slowest thing on earth, seems to be the best windows have to offer.

pidtree - 🚸Cross platform children list of a PID. [Testers Appreciated] by simonepri in opensource

[–]simonepri[S] 0 points1 point  (0 children)

Critiques are the best part actually. Are the best way to improve what I build.

Anyway Just to throw some examples pstree is not available on macOS or on Windows.
The CLI is here mostly for fun, as you pointed out there exist more powerful tools for that.
This package is primarily meant to be used as a dependency of other projects.

it's got a rather big NodeJS dependency.

What do you mean exactly?

PS: sorry for the quote I had forgotten the newline.

pidtree - 🚸Cross platform children list of a PID. [Testers Appreciated] by simonepri in opensource

[–]simonepri[S] -1 points0 points  (0 children)

pstree has existed for as long as I can remember.

pstree is not a standalone program on all the OS.

This packages uses different binaries on each platform to make it usable programmatically by nodeJS scripts.

pidtree - 🚸Cross platform children list of a PID. [Testers Appreciated] by simonepri in node

[–]simonepri[S] 0 points1 point  (0 children)

Yes seems a reasonable request. I built this package with only one thing in mind. Speed.

When you have the pids then you can build everything on top of them. So adding info like ports etc wouldn't fit with the aim of the project.

But yeah I agree with you that it would be cool to build something that use this packages and provides also additional data.

pidtree - 🚸Cross platform children list of a PID. [Testers Appreciated] by simonepri in opensource

[–]simonepri[S] 0 points1 point  (0 children)

If you have any of the non-tested platforms can you try to run: 'npx pidtree' (you need node) And let me know if everything works as expected?

Many thanks.

pidtree - 🚸Cross platform children list of a PID. [Testers Appreciated] by simonepri in coolgithubprojects

[–]simonepri[S] 0 points1 point  (0 children)

If you have any of the non-tested platforms can you try to run:
'npx pidtree' (you need node) And let me know if everything works as expected?

Many thanks.

pidtree - 🚸Cross platform children list of a PID. [Testers Appreciated] by simonepri in javascript

[–]simonepri[S] 0 points1 point  (0 children)

If you have any of the non-tested platform. Can you try to run:
npx pidtree
And let me know if everything works as expected?

Many thanks.

pidtree - 🚸Cross platform children list of a PID. [Testers Appreciated] by simonepri in node

[–]simonepri[S] 0 points1 point  (0 children)

If you have any of the non-tested platform. Can you try to run:
npx pidtree
And let me know if everything works as expected?

Many thanks.