[-] 0x0@lemmy.dbzer0.com 3 points 1 month ago

Except SIZE_MAX I suppose 🙄

[-] 0x0@lemmy.dbzer0.com 3 points 1 month ago

Lol not as original as I thought!

[-] 0x0@lemmy.dbzer0.com 3 points 1 month ago

I'm honestly not sure what you're saying. Countries like the US with poor public transit infrastructure think alcoholism is serious solely because of people who drink and drive?

[-] 0x0@lemmy.dbzer0.com 3 points 1 month ago

You know, the reason this happens is that you can ask your database to execute a string type, but languages usually don't distinguish between a static string and a dynamically constructed string.

Not to proselytize, but this is a place where rust's lifetime annotations can shine. The DB interface should take a &'static str( and a variable number of parameters to insert) so it can be certain that no untrusted user input has already been injected into the query string. Assuming all static data is trusted, the sql injection vulnerabilities just went poof.

Sadly, it looks like rusqlite's execute() takes a non-static str. I wonder why.

[-] 0x0@lemmy.dbzer0.com 3 points 1 month ago

Unix -> Linux -> Ferrix?

[-] 0x0@lemmy.dbzer0.com 3 points 8 months ago

I sea that my engagement hack had the desired affect

[-] 0x0@lemmy.dbzer0.com 3 points 8 months ago

Well duh. I wonder what happens if you shadow the list constructor and try to use it as a type hint...

def foo(list: list):
  def bar(thingies: list):
    pass
[-] 0x0@lemmy.dbzer0.com 3 points 9 months ago

$\text{me} + \text{you} = \text{amazing}$

[-] 0x0@lemmy.dbzer0.com 3 points 9 months ago

Are you alluding to Edge becoming a chromium fork? Or did some orgs really do this weird icon trickery?

[-] 0x0@lemmy.dbzer0.com 3 points 10 months ago

Hey, you got rain in my microplastics

[-] 0x0@lemmy.dbzer0.com 3 points 10 months ago

That cat went quadratic at least

[-] 0x0@lemmy.dbzer0.com 3 points 10 months ago

Actually, on second thought, I can argue that it makes sense, but only if you rename 12 to 0, I.e. midnight is 0 o'clock. Similarly, recapping the year at the beginning of December makes sense if you rename December to Zerouary and make sure the year starts on Zerouary zeroth.

view more: ‹ prev next ›

0x0

joined 1 year ago