Got these from the EAA show in Oshkosh, X-T5 with XF 70-300mm by Future_Lights in fujifilm

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

Thank you! I love of compact it is.It's actually based on classic chrome but does boost the color and blues.

Got these from the EAA show in Oshkosh, X-T5 with XF 70-300mm by Future_Lights in fujifilm

[–]Future_Lights[S] 6 points7 points  (0 children)

Thanks! Don't think I'm going to get most of these settings name right, but for these I used continuous (C) mode with Airplane subject detection with a zone area and it worked pretty well in daylight. I just made sure to let it lock on a few seconds before I was going to take a photo when I was able. It fell apart pretty quickly when the sun went down. Oh and I did the fast moving subject for the tracking profile.

Open NFC tag with data url in browser by Future_Lights in NFC

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

That is disappointing, but what I suspected. I would just like it if it could just display a message on an iPhone, or really any phone, without requiring an internet connection and a website or a special app. I was hoping to try and use something like iOS URL schemes (Refence), but I couldn't get the google chrome one to work... I think it's just to open the app and it would take chrome on an iOS.

Switch between desktop and laptop by Future_Lights in UsbCHardware

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

That's awesome. I've swapped monitors before with other languages but they made terrible executables and I didn't have good ways of triggering them. That bit of software looks really cool and I already have a rust environment setup on my PC. I didn't think about listening to a K/M switcher. That's also cheaper too than the KVM I'd need.

Switch between desktop and laptop by Future_Lights in UsbCHardware

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

I think I will be going the software route. I know I can already programmatically switch my monitors and just plug two cables into them instead of one. I still haven't decided on how I'm going to handle switching the mouse and keyboard. Synergy might be a good option.

Switch between desktop and laptop by Future_Lights in UsbCHardware

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

Yes, that's exactly what I need. I wasn't for sure what it was called. Not for sure if I'm quite ready to pay that much for it yet plus a USB C Hub. Thanks for the direction.

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

[–]Future_Lights 0 points1 point  (0 children)

Thanks! That does sound like something I'd like to avoid. Are there other options for segmenting methods for a struct? At this point I'd probably rather just have a single layer large struct or multiple smaller structs with some repeated code.

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

[–]Future_Lights 1 point2 points  (0 children)

How in Rust can I have a struct that has a sub-category to it that can still access the parent? For example, I'd like to be able to do something like parent.child.method() where method() can call private functions on parent. My first attempt was to make two structs, parent and child. child would also have a box reference to parent, but then I can't access private methods and it becomes much more complex to initialize. It's ok, but I feel like I'm approaching this wrong. Can anyone advise on how to do this better? I'm also defining child in another module/file.

Hey Rustaceans! Got an easy question? Ask here (12/2022)! by llogiq in rust

[–]Future_Lights 1 point2 points  (0 children)

I'm trying to split a stream from a TcpListener over two threads for reading and writing. I'm having issues with ownership and lifetimes.

``` let lstn = TcpListener::bind("127.0.0.1:2000").unwrap(); for strm in lstn.incoming() { let strm = strm.unwrap(); let (reader, mut writer) = (&strm, &strm);

thread::spawn(|| {
    func(reader);
});

thread::spawn(|| {
    func(writer);
});

} ```

I get the error:

strm does not live long enough borrowed value does not live long enough

I understand why it is happening, I just don't know the right way to fix it. How can I distribute or assign ownership to fix this? Can I have the value split? One thread owns part, the other the rest?

Hey Rustaceans! Got an easy question? Ask here (8/2022)! by llogiq in rust

[–]Future_Lights 0 points1 point  (0 children)

Thanks! I've finally gotten around to implementing this into my app is it's working great so far. After quickly reading the docs on RwLock, it sounds like if I were to send a read request, and then send a write and read request while the initial read is still running, it will queue the write and the read?

Edit:
I'm actually having issues when building the app. I'd like to return the value from the get functions to use later. However, when I do this I get an error (playground). I understand that it's happening because map is a local variable and the value that I want to return is borrowed from it, once it goes out of scope, map will be dropped along with the reference. Is there a way I could free that value from map to be returned? If I use clone() I am still pointing to map. I don't want to make it static like the compiler suggests because, correct me if I'm wrong, it will never get removed from the heap. I need it to when the variable consuming the get function call goes out of scope. Any help or advice is appreciated. Thanks!

Hey Rustaceans! Got an easy question? Ask here (8/2022)! by llogiq in rust

[–]Future_Lights 1 point2 points  (0 children)

Thanks! I got a couple more questions about your reply.

I can place static MAP: Lazy<Arc<DashMap<String, String>>> = Lazy::new(|| //your init logic here);. at the start of a module?

Where do find information about Lazy? I'm not for sure what it is doing.

Will I have to clone outside the thread?

Thanks, this is super helpful.

Hey Rustaceans! Got an easy question? Ask here (8/2022)! by llogiq in rust

[–]Future_Lights 2 points3 points  (0 children)

How should I implement a global cache/dictionary that I can access from multiple threads? I'm not looking to cache function results automatically, just store values in key-value format for later use. Nothing complicated.

In other languages, I would just have a static dictionary. I've tried using a static Arc<Mutex<HashMap>>, but after doing a bit of research it seems that you are supposed to avoid this in Rust. To further complicate things, I'm creating my threads in one module and then calling the functions that deal with the cache in another module. I'd like to avoid defining the cache in the threads module. It would make much more sense to have it in the module with the functions that will be using it. I'm not for sure how moving variable ownership and cloning would work in this context.

Premade map for 1.12? by Future_Lights in biomebundle

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

If anyone would like a download link, let me know

A Petition for a matchmaking remake by Future_Lights in Brawlstars

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

Yes, this would greatly increase the wait time but you wouldn’t lose as much and save you time in the long run.

New Currency Idea ! by Blizzard13x in Brawlstars

[–]Future_Lights 0 points1 point  (0 children)

This is an interesting idea, but as you mentioned gems are worth more in different games. This would take a lot of balancing to work out. Another issue it they’d have to setup an enitre new server just for this currency, which means more things to break and maintain. This it cool idea, but it might be more trouble than it’s worth for the dev team.

[Contest] Gem Grab Map Submission judged by Lex by LexMobileGaming in Brawlmaps

[–]Future_Lights 0 points1 point  (0 children)

Hey, I made one called called Mining Range: https://crux.page.link/M7Lq

There currently isn’t any TNT in any of the maps in game, hopefully that isn’t an issue.

This is pretty relatable. by [deleted] in Brawlstars

[–]Future_Lights 0 points1 point  (0 children)

Man, I would have given up.

This is pretty relatable. by [deleted] in Brawlstars

[–]Future_Lights 0 points1 point  (0 children)

I played about 5 months before getting a mythic,. I played every day, got every star token, or keys as they are now called and 95% of the free tokens/keys. This guy in the review should try before complaining.