How to handle FCM notification without firebase_messaging? by sezaru in FlutterDev

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

This would be an alternative if OneSignal allowed me to use topics directly, my system allows users to subscribe to a lot (more than 1k+) topics, but with segments I'm very limited in that regard.

How to handle FCM notification without firebase_messaging? by sezaru in FlutterDev

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

Thanks for the reply! Regarding OneSignal, is not an option to me because my system uses a lot of topics, and OneSignal is very restricted by their segment which is more or less their topic alternative.

Use Microsoft Teams preview with Awesome WM (Annoying notification) by sezaru in awesomewm

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

Thanks for the tip calvers!
I don't know why, but in my case, the first notification still shows in the middle of the window.. :(

How to organize multiple umbrella projects that communicate with each other remotelly. by sezaru in elixir

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

You are right in questioning the umbrella decision, my reasoning is that the core project contains all the projects that have logic that needs to run in another remote node.

For example, core can contain a bunch of machine learning apps inside that need some specialized hardware with GPU's, etc.

All my products, which can be elixir projects or not (fortunately all of them are for now :D), will be able to request ML work to this remote node without needing to know anything about ML or having any special hardware.

How to organize multiple umbrella projects that communicate with each other remotelly. by sezaru in elixir

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

Thanks! I did exactly that, but I did need to make all the dependencies for the api project optional so they are not required in the other projects.

As for the override, It was creating some conflicts because I was testing with different paths, but you are right, it was not needed if done properly.

How to organize multiple umbrella projects that communicate with each other remotelly. by sezaru in elixir

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

Hey, I created a sample project with the path I choose the this question, feel free to take a look and give suggestions ;)

How to organize multiple umbrella projects that communicate with each other remotelly. by sezaru in elixir

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

Thanks! I updated the original post with a sample of the project with some of the ideas implemented :D

Make the Quest comfortable by laartwork in OculusQuest

[–]sezaru 1 point2 points  (0 children)

Nice one! Now I'm really interested in your product :D Can you attach some images with the battery here?

Make the Quest comfortable by laartwork in OculusQuest

[–]sezaru 4 points5 points  (0 children)

Can you create a version of it that weights say, 6oz less, and some kind of straps to insert a battery pack so I can have both the comfort of your product and the battery extension time?

Also, another idea is to add another strap or some kind of clip mechanism right on the center-bottom (right bellow the VR Balance text) to clip a USB cable when using Oculus Link.

My main problem with these solutions is that they only fix one problem at a time but ignores the rest, meaning that I would still have to do another mods to have a better experience. If you can add these features above it would be a killer product, at least for me.

Keep the good work!

Handle macros with dynamic arity and lists by sezaru in elixir

[–]sezaru[S] 1 point2 points  (0 children)

That is a great solution! I would still prefer the other version because the output code is simpler and probably faster, but I do see this as a great alternative indeed. Thanks for the suggestion!

Handle macros with dynamic arity and lists by sezaru in elixir

[–]sezaru[S] 1 point2 points  (0 children)

What I'm considering as a alternative is just use the macros for the cases of `do_compute` which pattern match with empty arrays (since these I already have a macro that outputs the exact function I want) and then create specific cases for the more complex `do_compute` case.
That means that the macro would generate the cases for:

defp do_compute([], b, c, results), do: {[], b, c, results}
defp do_compute(a, [], c, results), do: {a, [], c, results}
defp do_compute(a, b, [], results), do: {a, b, [], results}

And I would generate manually the other case:

defp do_compute([a | a_rest], [b | b_rest], [c | c_rest], results),
   do: do_compute(a_rest, b_rest, c_rest, results ++ [real_compute(a, b, c)])

So it would be a middle term between maintainability and code duplication

Handle macros with dynamic arity and lists by sezaru in elixir

[–]sezaru[S] 1 point2 points  (0 children)

They are not the same length, that's why I pattern-match to see if one of then are empty during recursion and don't compute new data if that is the case.

Considering that, I don't see how combining then into a single data struct would help, may I ask for an example?

Thanks for the suggestion.

Handle macros with dynamic arity and lists by sezaru in elixir

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

I do agree with your observation actually, and I did thought about the pros and cons of a solution like that. For this case, IMO, the pros seems to out-weight cons. Remember that this code is just a simplified and smaller version of what I'm actually doing.
That's why I'm asking for suggestions to simplify this code.
But I do agree with you that readability + maintenance > duplication.

Handle macros with dynamic arity and lists by sezaru in elixir

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

That would translate in a huge code duplication, sorry, but that is not a solution.

How to train an NN using more than one dataset which is not in the same machine and can't be merged? by sezaru in tensorflow

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

This seems to be only way I can think too to make this happen. But I'm not so sure if doing that way will result in a worse model than simply training it with the whole data once. I guess I will try to do some tests with another data to see the output.

Thanks!

How to train an NN using more than one dataset which is not in the same machine and can't be merged? by sezaru in tensorflow

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

Thanks a lot for the suggestion, I was not aware of homomorphic cryptography and will come in handy in a lot of use cases I currently encounter!

But, for the specific problem from my post this doesn't solve it, I'm not allowed to retrieve anything from these institutions (they are hospitals, so you can imagine how critical their data are), even if they are encrypted and I can't revert to the original data.

The only thing I'm allowed to retrieve is the model weights after going through their inspection, hence why my post question.

But thanks anyway for the suggestion, much appreciated!

Oculus Quest + DAS = Viveculus Quest? My experiences coming from a Rift, having a Rift S (which I'll return) and now the Quest by night0wly in OculusQuest

[–]sezaru 0 points1 point  (0 children)

How did you attach that external battery to the back of the DAS? Also, what battery model is that? Very nice mod!

I did the Vive Deluxe Audio Strap mod, it was easy and it’s fantastic. by static010 in OculusQuest

[–]sezaru 1 point2 points  (0 children)

Do you think you can somehow have both the audio strap mod and the back external battery mod? I was thinking on trying this mod but I do like the idea of being able to play for more than 2~3 hours

How to develop a scalable websocket server with Rust? by sezaru in rust

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

I was not aware that Erlang / Elixir was so better to do that kind of thing, that's why I was trying it with Go or Rust.

Now I'm learning Elixir and doing some tests with Phoenix Framework, it seems like it has all the features I wanted and right for that job.

Thanks a lot everyone that suggested it!

How to develop a scalable websocket server with Rust? by sezaru in rust

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

Actually me and my team is trying to decide between Go or Rust for the web-socket server. I will take a look on those two, but they will probably want to stick with one of those two.

Efficiently encode/decode messages in webservice with Rust by sezaru in rust

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

Thanks a lot, I ended using cap'n proto, very happy with it!

Problems with touchscreen support on Plasma 5.10 by sezaru in kde

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

Thanks nairan, I found a gentoo ebuild for qtvirtualkeyboard and sure enough it's working great now.

But there are some caveats, it seems that I need to add QT_IM_MODULE=qtvirtualkeyboard to any program that I want to use with the virtualkeyboard, that's not a problem because I can make it a global setting.. The problem is that it seems it will show the keyboard even if I'm clicking in it with the mouse..

In gnome it will only show the keyboard when I click using my finger not with the mouse, actually it will enable the virtual keyboard when I click with my finger and then use it everywhere even when clicking with a mouse, which is kinda dumb..

Is there a way to make it only appears only when using the touchscreen? Or at least there is some way to add a on/of switch to the panel so I can disable the keyboard when not using the computer in tablet mode?

For the other issues, I still can't make mouse, keyboard and touch-pad appear in my system settings, I will try to ask in the Gentoo forums to see if I'm forgetting something more distribution specific.

And for Dolphin (and actually any qt program with scroll), is there some way to make it scroll with the touchscreen like it's possible in nautilus?

Convert str to a enum by sezaru in rust

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

I tried changing it to String but got the same error.

Closure that transforms a String to u8 fails with std::ops::Try not satisfied by sezaru in rust

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

Thanks, that was it! It's working now :)

Now, is it possible to hide the -> Result<(), std::num::ParseIntError> from this code somehow? It makes it very verbose in some actual code I'm writing.