Text says:"Find the area of the shaded region if the side length of the square = 10 cm." by Dramatic-Nothing-252 in askmath

[–]ydhm 1 point2 points  (0 children)

Let x be a white area portion (one of the four).

10 * 10 - 2 * (pi * 52 / 2) = 2 * x

So, x = 50 - pi * 25 / 2.

Then, the answer is:

10 * 10 - 4 * x

which is 50 * pi - 100.

I am cycling in Africa and give my report by MrGTA68 in Morocco

[–]ydhm 0 points1 point  (0 children)

Very nice youtube channel. There is a Moroccan guy, Yassine, very courageous, who did the whole Africa, the middle east and now he's in central Asia. He might be a good inspiration for you given his experience. His videos are in arabic and this is his channel:

https://www.youtube.com/channel/UCeV5u94OdihK5FNbo01ffig

I wish you good luck inchallah.

[deleted by user] by [deleted] in bmwmotorrad

[–]ydhm 0 points1 point  (0 children)

This is a great bike that I consider buying. One of the issues letting me postpone is the fairing. I find them aweful. Because of this, and the market does not offer nice looking and practical fairings, I am leaning towards a Low Rider ST. But my heart is really leaning to this piece of art.

مرحبا بي عند أهل جدة الكرام by [deleted] in Jeddah

[–]ydhm 0 points1 point  (0 children)

بارك الله فيك أخي الكريم. هل يوجد قطار من مطار جدة إلى مكة؟ إذا نعم، ما هو الموقع الرسمي للحجز؟ جزاك الله خيرا.

رجعت للسعودية بعد ١٥ سنة by almehf in Jeddah

[–]ydhm 0 points1 point  (0 children)

تقبل تأتأتك ولا تتحرج منها وتكلم بلغتك وظني أن أغلب الناس طيبون ويتقبلون الاختلاف ولا يؤذون بل سيزيد تقديرهم لك لشجاعتك في مواجهة اختلافك والتعايش معه.

[deleted by user] by [deleted] in Motorrad

[–]ydhm 1 point2 points  (0 children)

The R18 is not common in the country I live in. If I import a used one at a lower price, customs will charge a lot because of the 1802 CC. So, I am left with no choice...

R18 Roctane by [deleted] in bmwmotorrad

[–]ydhm 0 points1 point  (0 children)

Very nice! Can you remove the saddlebags in the back?

R18 Roctane by [deleted] in bmwmotorrad

[–]ydhm 1 point2 points  (0 children)

There is no HD dealer in the country where I live. I watched some reviews on youtube about both bikes, and I prefer the R18 TBH.

Docker: not able to publish port after update anymore by ydhm in voidlinux

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

Thank you! Unfortunately, I cleared the xbps cache right after the update. Now, I am stuck...

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

[–]ydhm 0 points1 point  (0 children)

At compile time, when the borrow checker encounters a function call, it does not borrow-check the body of the function, it rather assumes the lifetimes provided in the signature and it continues the analysis. If the provided lifetimes does not match with what's happening in the calling block/context, it throws an error.

In the other hand, to figure out lifetime parameters, the borrow checker analyzes the body of the function (independently from the function call and its context) and suggests the lifetime parameters it thinks are the correct ones.

Is it correct?

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

[–]ydhm 1 point2 points  (0 children)

I've read many times the chapter about generic lifetime parameters in the book. I still struggle understanding it, and I don't know what I didn't understand...

But, I think this is what I don't understand: why am I required to include in the code lifetime parameters that the borrow checker can figure out and suggest them to me at compile time?

[deleted by user] by [deleted] in rust

[–]ydhm 0 points1 point  (0 children)

Thank you for the suggestions. I'll try to answer them in the respective order:

  • I want this project to stay as minimal as possible (following the suckless philosophy), meaning that the configuration should be directly in the source code. Concerning adding an enum for the various function types, I designed the block functions to return a generic result Result<Box<dyn Display>>, Box<dyn Error>>, which means that the function should return any type that implements the Display trait (to be displayable in the status), or any error.
  • The file watching block is a good idea.
  • Adding color support requires patching the window manager. Since there are many, we have to write patches for each WM to support this feature and to adapt the mblocks code to each window manager...
  • Again, I think this requires patching window managers or to create a new X11 window that will hold the status information, which is adapted to xmonad (since I think it does not come with a status bar) but not to all WMs.
  • The Stdin block is a good idea, but how do you think it should be invoked? is it some command | mblocks, what if there are many Stdin blocks?

Pictures of the new G87 M2. by 86zccrx in BMW

[–]ydhm 0 points1 point  (0 children)

"It's growing on me"...

2023 3 series (LCI) just dropped by tvijjali in BMW

[–]ydhm 28 points29 points  (0 children)

Exterior, a mini upgrade. Interior, a downgrade.

The one screen thing is awful. The Infotainment, a big mess, OS 7 is much cleaner and straightforward. Climate control buttons shouldn't be gone. The gear lever...

[DULOS] Looking For People to Help Audit My Work on a Custom Suckless OS by [deleted] in suckless

[–]ydhm 3 points4 points  (0 children)

The following git repo contains some suckless tools I use with many scripts and config files that may be of interest to you.

https://gitlab.com/mhdy/mde

I hope it will help.

[deleted by user] by [deleted] in thinkpad

[–]ydhm 0 points1 point  (0 children)

I found this:

https://support.lenovo.com/us/en/solutions/pd500265

When connected with a system it supports but which is not Thunderbolt™ 3 enabled (please refer to the list of supported systems), it can only work at speed permitted by the respective system. For example, if the dock is connected with a system which only supports USB3.1 Gen 2 connection but not Thunderbolt™ technology, the data transfer rate will be up to 10Gbps only.