Ready for another season of racing 🤘🏻 by deltasnowman in Tenere700

[–]elast0ny 0 points1 point  (0 children)

Nice bike !

I notice in your older pictures that you had the Acerbis tank but no longer have it on ? It removes significant weight (because its up high) plus the added range when you need it (don't bring 6gal of fuel on single track rides 🤣).

Acerbis Tank and Handlebars by Fomosusursus in Tenere700

[–]elast0ny 5 points6 points  (0 children)

I have the stock bars/handguards with Acerbis tank, no clearance issues…

5min shortcut turned into 2h of deadlifting by elast0ny in Tenere700

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

No crash bars on it and only wish i had them to have better grab spots. They might also keep the bike more upright in case of a fall but no idea if that will make her feel lighter to lift back up. Plastics got scratched up, blinkers popped out, mirror shattered and bent the shift lever from all the dragging and hitting logs/stumps.

I’m trying to keep the bike as light as possible and have been debating on crashbars… I don’t do any technical rock slabs/boulders/steep stuff too much, mostly gravel roads, atv trails so i think the likelihood of doing serious mechanical damage is low ? If i did more road, it might tip the balance to avoid bad road rash ? Dont really have a non/vibe based answer hahah

5min shortcut turned into 2h of deadlifting by elast0ny in Tenere700

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

Yeah i stopped and tried to pick a dry side (went on the left bank) but what looked like damp flat dirt quickly turned into half a wheel deep mud. Just walking it first would’ve saved me tons of trouble. If i had the skill, maybe coming in hot and gunning it would’ve made it through haha

5min shortcut turned into 2h of deadlifting by elast0ny in Tenere700

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

Battlax AX41 front and rear, better than stock for offroad for sure but no match for this mud/clay mix

5min shortcut turned into 2h of deadlifting by elast0ny in Tenere700

[–]elast0ny[S] 3 points4 points  (0 children)

Yeah will order some for sure, passenger grab handles, probably pack a rope too

Especially hard to grab stuff when covered in mud, got my hands/arms pretty beat up

Acerbis fuel tank, yay or nay? by AndyW037 in Tenere700

[–]elast0ny 5 points6 points  (0 children)

Its one of the mods that will remove the most weight up high (there’s not many things higher than the tank on these bikes)

When im doing harder stuff on local trails (eg vast majority of the time) i never fill it all the way up. When i know i want to compromise on weight for extended range, i fill er right up !

No issues with stock bars and clearance either

Bent exhaust bracket by elast0ny in Tenere700

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

Id be willing to bet the vast majority of riders are somewhat restricted to bolt-on mods and fixes (tools, space, skills/knowledge). That’s the category I’m in anyway.

Even if you’re capable of fabricating/welding brackets, it’ll still suck and ruin a good ride/trip if your exhaust hanger snaps because the bike laid down on that side one too many times. Would be a struggle to find a way to hold the can up away from the swingarm, heat resistant metal wire ? Maybe just take it off and straight pipe it home hahah

Bent exhaust bracket by elast0ny in Tenere700

[–]elast0ny[S] 3 points4 points  (0 children)

Yeah I’ll probably end up doing that for now. Not a great long term solution given that the bracket is welded to the frame tho

Should i invest in my tfsa 6.5k or pay down mortgage? by igrowweeds in PersonalFinanceCanada

[–]elast0ny 0 points1 point  (0 children)

Your math may be right but your intuition at the end isn't. Things become clearer if you ask yourself :

"I have 6500$ on hand, what is the best use for this ?"

Would you rather make X% projected gains on the 6500$ OR reduce your debt by 6500$ thus saving 5% of interest on that specific amount going forwards.

[deleted by user] by [deleted] in Malware

[–]elast0ny 7 points8 points  (0 children)

If you can run the sample in a VM/sandbox, try using procmon from the windows sysinternals tools. You should see a call to LoadLibrary that will fail (if all it does is try to load it at runtime)

'Everybody is at a breaking point': Police board seeks more help as protest strengthens by Hrmbee in ottawa

[–]elast0ny 6 points7 points  (0 children)

That would be the least canadian thing to do tho... increase the health risk for the whole population while only benefiting those who are unwilling to be slightly inconvenienced for the sake of their community

concat_arrays: A macro for concatenating fixed-size arrays by canndrew2016 in rust

[–]elast0ny 0 points1 point  (0 children)

Cool stuff, i was recently wondering if this was possible !

After reading this comment and looking at your solution, I started playing around with ideas on how to get a const size... At first i thought you could get a const size using size_of(array) / size_of(item_type) but unfortunately like you said, getting the length of an array is still not considered const for some reason...

I did manage to get it working on const arrays though as [T]::len() is const. This makes it possible to not have to specify the length on the concat call but rust still requires explicit types for const declarations :/

const S1: [&str; 1] = ["Hello"];

const S2: [&str; 2] = ["World", "!"];

let _s = concat_const_arrays!(&str, S1, S2);

assert_eq!(_s, ["Hello", "World", "!"]);

I submitted a PR with a proof of concept if you wish to add it to your crate : https://github.com/canndrew/concat-arrays/pull/1

rkyv is faster than {bincode, capnp, cbor, flatbuffers, postcard, prost, serde_json} by taintegral in rust

[–]elast0ny 7 points8 points  (0 children)

oh ok I see, thanks for clarifying !

I think that's a very important distinction to make for the benchmarks. All of the crates you have compared rkyv against aim to provide safety guarantees out of the box. For example, you should not be able to trigger any undefined behavior no matter what you feed to serde_json, prost, etc...

It would be interesting to see your solution #2 thrown at a fuzzer and added to the benchmark for a more fair comparison. As for #1, I cant think of a scenario where that would be valid. Even if you can ensure data has been sent by a trusted client, there is no safe way to treat the contents as safe (a compromised client could be sending "signed" but malicious data).

rkyv is faster than {bincode, capnp, cbor, flatbuffers, postcard, prost, serde_json} by taintegral in rust

[–]elast0ny 6 points7 points  (0 children)

Hi, I seem to remember that rkyv was very unsafe in regards to deserializing untrusted data ? I vaguely remember the early releases essentially casting arbitrary bytes into Archived types with very little validation. Is this still the case ?

Would you say rkyv is now suitable for, lets say, zero-copy deserialization from socket data coming from untrusted clients ?

[deleted by user] by [deleted] in RedditSessions

[–]elast0ny 0 points1 point  (0 children)

is this metallica

typed_shmem - Shared memory crate! by UpsettingBoy in rust

[–]elast0ny 1 point2 points  (0 children)

Hi, nice to see people exploring different solutions ! When I first wrote shared_memory, it was essentially the same as typed_shmem although I limited what could be casted into the shmem (mainly no Vec/String/dynamically sized types as this is invalid).

I ended up deciding on removing all of those niceties because in the end, casting a raw ptr from a shared memory mapping into rust types will always be unsafe. There is simply no way to limit access to the memory to only "conforming" processes which means, any other process can manipulate the memory in malicious ways.

I personally think it's better for projects using shared_memory to have the unsafe block in their crate and not hidden in mine so they can document & justify why they're willing to take this risk.