Posts
rust blasphemy (added context)
made in gimp, with <3
::: spoiler Context for actual rust programmers I was having massive beef with the rust compiler yesterday, every cargo check takes 20 seconds.
And then look at the three functions below, only one of them are Send, if you know why, please let me know.
(Note: value that is not Send cannot be held across an await point, and Box is not Send)
async fn one() {
let res: Result<(), Box<dyn Error>> = do_stuff();
if let Err(err) = res {
let content = err.to_string();
let _ = do_stuff(content).await;
}
}
async fn two() {
let res: Result<(), Box<dyn Error>> = do_stuff();
let content = if let Err(err) = res {
Some(err.to_string())
} else {
None
};
drop(res);
if let Some(content) = content {
let _ = do_stuff(content).await;
}
}
async fn three() {
let content = {
let res: Result<(), Box<dyn Error>> = do_stuff();
if let Err(err) = res {
Some(err.to_string())
} else {
None
}
};
if let Some(content) = content {
let _ = do_stuff(content).await;
}
}
:::
[2025/10/29] Inequality
When does this hold?
(x^p + y^p) ^ (1/p) = (x^q + y^q) ^ (1/q)
[2025/01/15] Twice derivative of function
Question
- Find the function
fsuch thatf'' = -f - Show that the function can be written in format
f = A sin(x + B)
Extension
Find a function g such that g'' = C * -g and
g(0) = Dg'(0) = 0whereCandDare arbitrary constants.
::: spoiler For those who have finished the extension Congratulations, you have just derived the formula for objects in simple harmonic motions (physics). :::
[2025/01/11] Perpendicular of contour lines
- Contour lines joins up points on a surface that are of the same height.
- Field lines points towards the direction of the steepest descent.
As you may have noticed, whenever a field line and contour line crosses each other, they are perpendicular.
Prove it.
take on new LP songs?
heres my current ops after first listen
::: spoiler Spoilers sounds amazing:
- cut the bridge
- overflow
- stained
- good things go
give it some time:
- two faced
- IGYEIH
no:
- casualty :::
casualty after over each other is pretty cool
and just would like to say, good things go sounds like a mike shinoda song than LP
[2024/11/06] Derivative with multiple of differential
Yeah I can't lie, there is no calling this a daily challenge now.
Anyhow, have a go at proving this, I don't want any unrigorous "imagine zooming in until the line is straight" nonsense.
Difficulty: not a lot
Would appreciate if u put ur proofs or attempts below, I got a proof but it's like kinda mediocre.
Israel intentionally targetting UN peacekeeping forces
In light of events following the previous post, it is almost certain shelling of the UN peacekeepers camp was not an accident from attacking nearby hezbollah tunnels.
The UN forces are the target of the Israeli army, as bulldozers usually dont accidentally show up in a warzone to specifically bulldoze a UN watch tower.
Oct 20 (Reuters) - The U.N. peacekeeping force in Lebanon (UNIFIL) said in a statement that an Israeli army bulldozer had demolished an observation tower and perimeter fence of a U.N. position in Marwahin in southern Lebanon on Sunday.
So Israel military is attacking the UN peacekeepers now
Their reasonings isn't making the slightest sense at all, so unless the article forgot to mention something entirely, this is rediculous.
Follow up post: https://lemmy.world/post/21092844
when i was young i listen to the radio
all nostalgia aside, arras.io is so much better
[2024/08/07] Hypocycloid
Draw a hypocycloid using a graphical calculator (such as Desmos or Geogebra).
Your hypocycloid should include
- Inner circle of radius `a
- Outer circle of radius `b
- As time
tincreases the point on the inner circle should trace out the pattern, you can animate the graph usingt.
Below is the link to a Desmos graph:
[2024/08/04] Extended Euclid's Algorithm
- Given
nandmare coprime, show that there exist integern'such thatnn' mod m=1. - The extended Euclid's algorithm is given below without proof, which may be useful in your proof.
(I'm too lazy to type out the algorithm again, so look at the image yourself)