Sinthesis

joined 10 months ago
[–] Sinthesis@lemmy.today 12 points 1 week ago (5 children)

You only need 20 watts of power. One of those dinky fold up solar panels would work. Add a USB power brick for cloudy days.

[–] Sinthesis@lemmy.today 4 points 3 weeks ago

I think that middle management has more to worry about.

[–] Sinthesis@lemmy.today 16 points 2 months ago (1 children)

~~Snoop Dogg~~ Calvin Broadus, fixed it for you.

[–] Sinthesis@lemmy.today 2 points 2 months ago

Got a source on that? The co-founder just stepped down from the CEO role recently, due to cancer. If his replacement is shady, I'd like to know.

[–] Sinthesis@lemmy.today 3 points 2 months ago

adjust nerd glasses technically speaking...the greek word gyro is pronounced "eeer-o" so its not that far off from "here-o"

[–] Sinthesis@lemmy.today 2 points 4 months ago* (last edited 4 months ago) (1 children)

The word "hack" is pre-internet. A "hack" journalist or a "hack job" is basically something unprofessional. It is movies that turned "hackers" into someone that gained access to the "mainframe". In the realm of computer systems, I would argue that a "hack" is doing anything the system was not intended/designed to do. A successful DoS or DDoS needs to find some component of the system that wasn't designed to handle the amount of traffic about to be sent to it.

There are protections for DDoS (iptables, fail2ban, Cloudflare and so on), you have to figure out a way around them, that's a hack.

[–] Sinthesis@lemmy.today 13 points 4 months ago* (last edited 4 months ago) (2 children)
[–] Sinthesis@lemmy.today 3 points 4 months ago

Yeah, something about this is off. I was thinking that the 74 year old driver was white and a "pillar of the community".

[–] Sinthesis@lemmy.today 2 points 4 months ago (1 children)

Ah, that's right. Antipasto is Italian or something for first course.

[–] Sinthesis@lemmy.today 19 points 4 months ago* (last edited 4 months ago) (5 children)

I use if__name__main__ often when working with AWS Lambda, but I also want to run it locally. Lambda wants to call a function with the params event and context. So I would do something like this:

def handler(event, context):
    things
    return {
        'statusCode': 200,
        'body': 'Hello from Lambda!'
    }

if __name__ == '__main__':
    event = {}
    context = {}
    response = handler(event, context)
    print(response)
[–] Sinthesis@lemmy.today 2 points 4 months ago (3 children)

I think I'm an antipastafarian now. What do we worship? Hot dogs? Wikipedia?

view more: next ›