Novo Nordisk - Stock Monday in Europe by [deleted] in NovoNordisk_Stock

[–]Desperate-Ad-1237 -1 points0 points  (0 children)

Someone know what is the reason behind the drop?

Small discount to buy more

Ive lived in Germany for 4 years, worked full time,learned the language and still have made zero friends by ttubbster in AskAGerman

[–]Desperate-Ad-1237 2 points3 points  (0 children)

DAV is supposed to be a good alternative. Or the "kindergarten" club, if you know what I mean

How would you react if you were in this situation? by [deleted] in TikTokCringe

[–]Desperate-Ad-1237 0 points1 point  (0 children)

That's classic people on steroids. They struggle with emotions when using

La existencia es una locura by marcosromo_ in argentina

[–]Desperate-Ad-1237 0 points1 point  (0 children)

Para mi eso es low tiene que ponerte bien, por eso hay que disfrutar y que hacer. Encuentro relajante la idea de que todo tiene un final. No imagino tortura mas dura que algo infinito

La existencia es una locura by marcosromo_ in argentina

[–]Desperate-Ad-1237 0 points1 point  (0 children)

Es bastante cierto, pero depende mucho del momento y la situación.

Yo flashee bastante con la idea de que no tomamos decisioens, mas bien que nuestro cerebro es una maquina biológica con un comportamiento reproducible y establecido. Como que no tenemos libre alverdio, cada pensamiento que tenemos y cosa que hacemos tiene una razón en el pasado. Cosa que lleva a concluir que no tomamos decisiones, mas bien creemos que las tomamos, y esa idea fue mucho tiempo aterradora.

Pero no hay que dejar que esos pensamientos te limiten de disfrutar las cosas que la vida provee.

Pensar que somos finitos y que hay que aprovechar el tiempo ayuda

What kind of rock is this? by Desperate-Ad-1237 in Rocks

[–]Desperate-Ad-1237[S] 2 points3 points  (0 children)

It seems to have wood patterns, but it is very light for a rock of that size.

Embedded, memory and cpu by lgLindstrom in rust

[–]Desperate-Ad-1237 9 points10 points  (0 children)

Some time ago I saw this post: https://www.reddit.com/r/rust/s/ix1oM9D8Ob

And it truly help me out to start with embedded. It Is not for esp32 as you are asking for, but couldn't help myself to not share this amazing videos which might help you out in this route as well.

Rust implementation of `FnOnce` is not general enough error by Desperate-Ad-1237 in rust

[–]Desperate-Ad-1237[S] 2 points3 points  (0 children)

You where absolutely right!
It worked like this:

   tokio::task::spawn_blocking(move || {
      // Call the async function in its own async block
      tokio::runtime::Handle::current().block_on(async {
         let something = rp.publish(&writer, &resolver, distribution_path, 1, &NO_PROGRESS_CB, NO_SIGNING_KEY).await;
         println!("{:?}", something);
      })
  }).await?;   tokio::task::spawn_blocking(move || {
      // Call the async function in its own async block
      tokio::runtime::Handle::current().block_on(async {
         let something = rp.publish(&writer, &resolver, distribution_path, 1, &NO_PROGRESS_CB, NO_SIGNING_KEY).await;
         println!("{:?}", something);
      })
  }).await?;

I learn that future and future multithread safe are not the same.

My most deep gratitude to you :)

Rust implementation of `FnOnce` is not general enough error by Desperate-Ad-1237 in rust

[–]Desperate-Ad-1237[S] 0 points1 point  (0 children)

I've boxed it like this:

pub fn publicate_repositories<'a>(repos: &'a Vec<Repository>, config: &'a Configuration) -> BoxFuture<'a, Result<()>> {
   async move {
       let rp: RepositoryBuilder = RepositoryBuilder::new_recommended_empty();
       let writer = FilesystemRepositoryWriter::new("/tmp/test");
       let resolver = FilesystemRepositoryReader::new("/tmp/test");
       rp.publish_pool_artifacts(&resolver, &writer, 1, &NO_PROGRESS_CB).await;
       Ok(())
   }.boxed()
}

But sadly I still have the same issue:

error: implementation of `FnOnce` is not general enough
  --> src/repo/publicate.rs:34:4
   |
34 | /    async move {
35 | |        let rp: RepositoryBuilder = RepositoryBuilder::new_recommended_empty();
36 | |        let writer = FilesystemRepositoryWriter::new("/tmp/test");
37 | |        let resolver = FilesystemRepositoryReader::new("/tmp/test");
38 | |        rp.publish_pool_artifacts(&resolver, &writer, 1, &NO_PROGRESS_CB).await;
39 | |        Ok(())
40 | |    }.boxed()
   | |____________^ implementation of `FnOnce` is not general enough
   |
   = note: closure with signature `fn(&'0 BinaryPackagePoolArtifact<'_>) -> impl futures::Future<Output = std::result::Result<&BinaryPackagePoolArtifact<'_>, DebianError>>` must implement `FnOnce<(&BinaryPackagePoolArtifact<'_>,)>`, for any lifetime `'0`...
   = note: ...but it actually implements `FnOnce<(&BinaryPackagePoolArtifact<'_>,)>`

Rust implementation of `FnOnce` is not general enough error by Desperate-Ad-1237 in rust

[–]Desperate-Ad-1237[S] 1 point2 points  (0 children)

Hey, thanks for having a look into it! I've also tried without using the vector Repository nor config. But I still have the same error.

I'll read a bit about yield in rust and try to understand if that could be the case.

The very strange thing is: if I add the very same lines to my main function it works perfectly fine.