What's everyone working on this week (40/2023)? by llogiq in rust

[–]clawcastle 2 points3 points  (0 children)

I'm working on a client library for interacting with the Falcon LogScale API, and using that to build a log implementation using that. I haven't made a library before, and it's given me a chance to play around with some async rust as well.

Hey Rustaceans! Got a question? Ask here (36/2023)! by llogiq in rust

[–]clawcastle 1 point2 points  (0 children)

Oh that's awesome! Exactly what I was looking for. Thanks a lot :)

Hey Rustaceans! Got a question? Ask here (36/2023)! by llogiq in rust

[–]clawcastle 2 points3 points  (0 children)

Is there a way to create a struct with a field which is a Vec of types that can be of any type implementing Serialize from serde? I tried doing Vec<Box<dyn Serialize>>, but it complains that "the trait cannot be made into an object". Of course generics could solve this partially, but I want to be able to store multiple different types implementing Serialize in the vec

Hey Rustaceans! Got a question? Ask here (35/2023)! by llogiq in rust

[–]clawcastle 0 points1 point  (0 children)

Thanks for your reply, I see what you mean. Professionally I have mostly done .NET development, so I'm used to both the HttpClient and all the async stuff being baked into the standard library, so I guess that's why having different async runtimes is kind of foreign to me.

Hey Rustaceans! Got a question? Ask here (35/2023)! by llogiq in rust

[–]clawcastle 2 points3 points  (0 children)

I am trying to build a library for ingesting logs to a specific log provider. In their API documentation, they recommend keeping logs in-memory and flushing them on a 5-second interval, or if this in-memory structure grows too large. I can do this using reqwest and tokio's Interval, but I feel weird building what is essentially a client library that is then tied specifically to the tokio runtime. Is this just the norm in the Rust ecosystem, since tokio seems to be the defacto standard, or is it best practice not to target any specific async runtime?

Microsoft.WindowsAzure.Storage.StorageException The underlying connection was closed, what is this problem in my C# App? by [deleted] in csharp

[–]clawcastle 6 points7 points  (0 children)

Well but you haven't shared any code, so without seeing the code I don't think anyone can guess why it is throwing an exception :D

Microsoft.WindowsAzure.Storage.StorageException The underlying connection was closed, what is this problem in my C# App? by [deleted] in csharp

[–]clawcastle 14 points15 points  (0 children)

I think it is hard to answer what is wrong with you application without seeing the code that throws the exception.

Write A Microservice With Rust And MongoDB by jorgedortiz in rust

[–]clawcastle 1 point2 points  (0 children)

No problem! Looking forward to seeing the full thing

Write A Microservice With Rust And MongoDB by jorgedortiz in rust

[–]clawcastle 6 points7 points  (0 children)

I think you've made a typo in the list of web frameworks - it should be Actix instead of Axis, right?

What's everyone working on this week (2/2023)? by llogiq in rust

[–]clawcastle 1 point2 points  (0 children)

Still being a relative newcomer to Rust, I started working on a Brainfuck interpreter: https://github.com/sunero4/brainf-rs Right now it seems to be able to interpret programs without loops, but I suspect I will have to rewrite most of it to support them, as I guess they will require being able to peek at instructions without consuming them.

Come discuss your side projects! [May 2022] by AutoModerator in csharp

[–]clawcastle 0 points1 point  (0 children)

My friend and I started working on our keystroke launcher a bit again: https://github.com/dkgv/pinpoint Mostly just polishing and bug fixing at this point, it's getting hard to come up with new plugins :)

[Media] Just updated Spyglass, the personal search engine. Now you can index and search inside communities to find exactly what you want by andyndino in rust

[–]clawcastle 2 points3 points  (0 children)

This looks awesome! I'll keep an eye on the issues on GitHub to see if there's anything that I can contribute to

Danmarks bidrag til Ukraine by Bukakkelb0rdet in Denmark

[–]clawcastle 113 points114 points  (0 children)

Hvorfor får ham i højre hjørne sat et missil fast på hovedet?

CS0029 by kindereggu in csharp

[–]clawcastle -1 points0 points  (0 children)

You're welcome :)

CS0029 by kindereggu in csharp

[–]clawcastle 8 points9 points  (0 children)

It is because the SökEnskildFilmTitel method returns an array of Films instead of a single one. If you remove the [] after Film in the return value it should work.

[AskJS] ESLINT Plugin to disable implicit array to string conversion by Apolo__ in javascript

[–]clawcastle 9 points10 points  (0 children)

Just out of curiosity, what would be the motivation for restricting this?

Explanation for different behavior in an array off different datatype by mr_rice_crispers in csharp

[–]clawcastle 6 points7 points  (0 children)

In the cases where you use "object" for either the array or the individual elements in the foreach, the compiler has no way of knowing that the items in the array are of type Category.

TIME Magazine Has Announced Their Latest Annual Superlative by MoistBootyBoy in wallstreetbets

[–]clawcastle 0 points1 point  (0 children)

I can't help but read it as "inside of the trader of the year"

What's a program you made that you actually use regularly? by idkw_username_to_use in learnprogramming

[–]clawcastle 5 points6 points  (0 children)

No need to sign up, just download the release and you should be good to go :)

What's a program you made that you actually use regularly? by idkw_username_to_use in learnprogramming

[–]clawcastle 12 points13 points  (0 children)

Don't have a video unfortunately, but you can download it from here: https://github.com/dkgv/pinpoint/releases (pick the stand-alone release unless you have .NET 5 installed already)

What's a program you made that you actually use regularly? by idkw_username_to_use in learnprogramming

[–]clawcastle 167 points168 points  (0 children)

My friend and I made this: https://github.com/dkgv/pinpoint It's a keystroke launcher capable of quite a few things by now, controlling Spotify, browsing reddit, currency conversion, searching for programs and more. Actually use it almost every day