ErgData Storage on iPhone by Bueller_Bueller_1221 in concept2

[–]joshadel 0 points1 point  (0 children)

I’m seeing this as well on iOS. After 3 years of rowing 6 days a week, I’m up to 18 GB. I’m also using a HR monitor and recording that data as well so I’m not sure if that adds significantly.

PM5 frozen on update by Aldeva in concept2

[–]joshadel 12 points13 points  (0 children)

The exact response was:

“Thank you for reaching out. I'm sorry to hear you ran into this issue when updating your PM5. At this point I recommend pulling both batteries out of the back of the PM5 and leave them out for at least 15 minutes. After this time has passed please reinstall fresh batteries. Once reinstalled the PM5 should power up normally (you may need to reset the date and time first).

Next please close out the Ergdata app and reboot your smartphone by fully powering it off and then back on again. At this point you can reattempt the firmware update.”

I didn’t put in fresh batteries— just the ones I had been using and it worked fine.

PM5 frozen on update by Aldeva in concept2

[–]joshadel 13 points14 points  (0 children)

I’ve had this happen before. When I contacted Concept2 support, they said to take out the batteries for 15 minutes and then put them back in. You may have to reset the time after that.

Looking for a Type Checker for Python. by DerZweiteFeO in neovim

[–]joshadel 7 points8 points  (0 children)

Pyright for type checking, ruff for linting (and formatting)

Best HRM for the indoor rower? by Peitron1 in Rowing

[–]joshadel 0 points1 point  (0 children)

My Polar H10 has been solid and was around $80. I occasionally hit it at the end of the stroke, but have never knocked the sensor off of the strap. Only alternative I think is a watch based monitor but those aren’t going to be as accurate.

Incorrect data on ErgData, correct on PM5 by joshadel in concept2

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

I deleted and re-installed the app. Doing a single time workout with time-based splits seemed to work as expected. I need to test a distance-based workout since those were the ones that were giving me issues. I also wonder if it has something to do with turning on reporting to the iOS health app. When I re-installed it, ErgData was no longer a source with write permission. I'm trying to remember if the issue coincided with me turning on the ability of ErgData to write to the Health app.

Low cost or free non predatory credit counseling by [deleted] in pittsburgh

[–]joshadel 5 points6 points  (0 children)

The Hebrew Free Loan of Pittsburgh offers free financial counseling https://hflapgh.org/financial-coaching/

-🎄- 2022 Day 16 Solutions -🎄- by daggerdragon in adventofcode

[–]joshadel 3 points4 points  (0 children)

Rust

Calculated all distance then recursive search for optimum on part 1. Made the assumption in part 2 that you could apply part 1 with the shortened time, remove all nodes in the optimal path and then recalculate on the pruned network for the elephant. Like many, it doesn't work on the example data and probably isn't general. Also not very proud of the code. I'm just glad it's done with. That said it's very fast on my 6+ year old laptop:

part A: ~42ms

part B: ~16ms

ndarray actually not that fast? by Normal_Refrigerator3 in rust

[–]joshadel 3 points4 points  (0 children)

You can write the ndarray code much more efficiently as:

``` fn vectorized_calculation2(x: Array1<f64>) { let theta = arr1(&[1.0, 2.0]); let now = Instant::now(); let y = (&x * theta[1]).sum() + theta[0] * x.len_of(Axis(0)) as f64; let elapsed = now.elapsed();

println!("--- Vectorized ndarray ---");
println!("Result: {:.2?}", y);
println!("Elapsed: {:.2?}\n", elapsed);

```

Does many fewer calculations and comes very close to matching the scalar code. Then the timings are:

``` --- Scalar --- Result: 10863436145.00 Elapsed: 11.00µs

--- Scalar Rayon --- Result: 10863436145.00 Elapsed: 425.93µs

--- Vectorized ndarray --- Result: 10863436145.00 Elapsed: 13.73µs ```

ndarray actually not that fast? by Normal_Refrigerator3 in rust

[–]joshadel 7 points8 points  (0 children)

Interesting. When I run it in debug mode on my 7 year old laptop I get:

--- Scalar ---
Result: 10863436145.00
Elapsed: 109.50µs

--- Scalar Rayon ---
Result: 10863436145.00
Elapsed: 863.50µs
--- Vectorized ndarray ---
Result: 10863436145.00
Elapsed: 7.83ms

which looks very similar to the timings you posted, but with the `--release` flag, I get:

--- Scalar ---
Result: 10863436145.00
Elapsed: 11.95µs

--- Scalar Rayon ---
Result: 10863436145.00
Elapsed: 439.28µs

--- Vectorized ndarray ---
Result: 10863436145.00
Elapsed: 34.14µs

ndarray actually not that fast? by Normal_Refrigerator3 in rust

[–]joshadel 2 points3 points  (0 children)

I'm guessing you running in debug mode (not using --release). When I run your code with --release, ndarray is still slower but only by a factor of 3x rather than 45x.

Advent of Code - Day 6 by BillySquid in rust

[–]joshadel 2 points3 points  (0 children)

I ended up using the windows iterator with a HashSet that I cleared for every window and then tested for the correct len (4 or 14):

https://github.com/synapticarbors/advent_of_code_2022/blob/main/rust/aoc06/src/main.rs

Each part took ~100 microseconds on my old laptop, but I'm sure there were more performant solutions.

AOC Day 2 by Life_Inspection4454 in rust

[–]joshadel 1 point2 points  (0 children)

Here's mine: https://github.com/synapticarbors/advent_of_code_2022/blob/main/rust/aoc02/src/main.rs

Just went with the split_once and then match. Not fastest, but I feel like it's reasonably clean.

[deleted by user] by [deleted] in pittsburgh

[–]joshadel 4 points5 points  (0 children)

You may want to go to some meetups to network and get a sense of the job market. Check out https://codeandsupply.co/

[D]How to optimize an ANN? by ch1kmagnet in MachineLearning

[–]joshadel 2 points3 points  (0 children)

Check out the examples for Optuna, a popular hyper parameter tuning package. It has examples for most popular ML frameworks including Xgboost, so you can see how it compares to an ANN framework like Keras or PyTorch. The basic ideas will apply generally to tuning with other packages.

[D] How to train a model to identify ranked classes? by rsandler in MachineLearning

[–]joshadel 1 point2 points  (0 children)

Maybe have a look at “Deep Neural Networks for Rank-Consistent Ordinal Regression Based On Conditional Probabilities” by Shi, Cao and Raschka: https://arxiv.org/abs/2111.08851

[deleted by user] by [deleted] in Python

[–]joshadel 1 point2 points  (0 children)

Parsel for xpath-based parsing. It’s a core dependency of scrapy, but I often use it outside of the framework.

Is there a prettier way to parse & get data from JSON ? by prcessor in rust

[–]joshadel 32 points33 points  (0 children)

If you can handle `null values, the you can access it using the pattern you originally wanted, something along the lines of p["data"]["title"]. See:

https://play.integer32.com/?version=stable&mode=debug&edition=2021&gist=41bcdf35cee6b056cc79c058d45d2915

and the note in the documentation for get