Magnus Manske · @magnusmanske
388 followers · 229 posts · Server wikis.world

Some of my projects for and (Mix'n'match, baGLAMa2) use with a permanently running background process, which heavily uses multithreaded async.

There is an issue across these (pretty independent) codebases that the process runs fine for hours, then pauses, without explanation. Mutex locks, reqwest timeouts, all checked. Very difficult to debug.

Any ideas what it could be, or how to debug it?

#toolforge #Wikidata #wikipedia #RustLang

Last updated 1 year ago

Magnus Manske · @magnusmanske
316 followers · 157 posts · Server wikis.world

Wrote a little binary in to scan a directory tree on disk, find image files with coordinates in EXIF, and output an aggregate. Can write JSON or KML. Bug reports, feature requests, and PR/MRs welcome

github.com/magnusmanske/img_co

#RustLang

Last updated 1 year ago

Sylvain Kerkour · @sylvain
319 followers · 11 posts · Server social.kerkour.com

"You're not fighting the compiler you're fixing bugs."

🙏

From cloak.software/blog/i-built-st

#rust #RustLang #Programming

Last updated 2 years ago

Tamme Schichler · @Tamme
12 followers · 176 posts · Server hmm.schichler.dev

So this is basically a shitpost, but if you ever thought to yourself "wow, I sure wish I had C++-style dynamic allocator mixing in !" then here's how to do that cleanly on nightly: gist.github.com/Tamschi/cd6d49

I did this as a quick "how much of a mess would it be to implement this usefully?" and DIDN'T TEST IT. License is CC0 because how else would you even do this?

A version of this that's also `Clone` is left as exercise to the reader.

#RustLang

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

I'm experimenting life away from social media (and couldn't find a way to automate Mastodon).

You can now follow my posts by subscribing to my newsletter or using my RSS feed: kerkour.com/subscribe

Here is what you missed last week:
- iPhone = Privacy?
- Learn Rust by implementing a SHA-1 hash cracker
- Public Toilets and Social Credit
- Learning Rust: Async Combinators
- Multithreading in Rust
- and much more

👉 kerkour.com/posts

#rust #RustLang #infosec #apple #iphone #privacy #tech

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

I'm experimenting life away from social media (and couldn't find a way to automate Mastodon).

You can now follow my posts by subscribing to my newsletter or using my RSS feed: kerkour.com/subscribe

Here is what you missed last week:
- Learning Rust: Combinators
- Black Hat Rust "Back2School" Discount
- Neuroplasticity and Spaced Repetition
- Winning in the Information Age with the Law of Diminishing Returns
- Links of the week #2022-35

👉 kerkour.com/posts

#rust #RustLang #infosec

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

I'm leaving social media for 1 month (or more if the experiment is successful) ✌️

You can get updates by subscribing to my newsletter or using the RSS feed: kerkour.com/subscribe

#rust #RustLang #100DaysOfCode

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

Writing shellcodes in assembly is not only hard, but also architecture dependent, and impossible to reuse

instead, let's see how to craft advanced & platform independent shellcodes in Rust:
👉 kerkour.com/advanced-shellcode

#rust #RustLang #Programming #100DaysOfCode #infosec #Hacking

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

My book Black Hat Rust has been updated for 1.62 and is now available as an online course 🎉

It's the biggest update since its launch 👉 kerkour.com/black-hat-rust-upd

#rust #RustLang #100DaysOfCode #infosec #Hacking #Programming

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

It's an open secret that most of the time and costs spent on any serious software project are from maintenance.

is moving fast, and its ecosystem too, so it's necessary to automate your projects' maintenance

Here is how 👉 kerkour.com/rust-projects-main

#rust #100DaysOfCode #RustLang

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com
Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

A lot of new readers recently joined us, so I thought it was the perfect moment to publish a short best-of of this past year's articles, in case you missed them :)

kerkour.com/abusing-technology

#100DaysOfCode #rust #Hacking #Programming #RustLang

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

Monomorphization, Static vs Dynamic dispatch, Trait Objects...

Generics allow programmers to write less code and produce less bugs, but are not easy to grasp.

So here is the second part of my introduction to Rust generics:
kerkour.com/rust-generics-trai

#rust #RustLang #100DaysOfCode #Code #Programming

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

Generics allow programmers to write less code by reusing functions, structures & traits and thus produce less bugs

But generic can be hard to learn so here is the simplest introduction to Rust generics:
kerkour.com/rust-generics-trai

#Programming #Rsut #RustLang #100DaysOfCode #Code

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

Tests are not meant to be manually run each time you write code. It would be a bad usage of your precious time as Rust takes a loooong time to compile

Here is how to automate your CI pipeline for projects: kerkour.com/rust-github-action

#rust #RustLang #100DaysOfCode #Devops #GitHub

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

🔔 Reminder: Just a few days left to benefit from the big discount on my book Black Hat Rust

The coupon code is: HAPPY2022

Get it now: kerkour.com/black-hat-rust-dis

#rust #RustLang #Programming #100DaysOfCode #Hacking #crypto #cryptography

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

Typosquatting attacks are well-known, but there are attacks that are way more pernicious and that may provide better results

Bitsquatting attacks

Here is how it works and how to perform it using
👉 kerkour.com/bitsquatting-attac

#rust #RustLang #100DaysOfCode #Programming #Hacking

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

The most effective phishing attack I ever witnessed was not an email campaign. It was an evil twin attack. The success rate was in the order of 80%-90%

Here is how to perform it in practice with a and
kerkour.com/evil-twin-attack

#raspberrypi #rust #RustLang #100DaysOfCode #Hacking

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

Building a crawler in [6/6]

Nowadays, more and more websites use JavaScript framework to display their content which prevents basic data scraping.

Here is how to use a headless browser in Rust to crawl Single Page Applications (SPA)

kerkour.com/rust-crawler-javas

#rust #RustLang #100DaysOfCode #Programming #Code

Last updated 2 years ago

Sylvain Kerkour · @sylvain
272 followers · 122 posts · Server social.kerkour.com

A few weeks ago, I wrote: "I believe that Rust moves too fast" and "a programming language is a platform".

Some people raised good objections, so I thought it would be good to write a follow-up

👉 kerkour.com/programming-langua

#rust #RustLang #Programming #100DaysOfCode

Last updated 2 years ago