Hacker Newsnew | past | comments | ask | show | jobs | submit | more PokestarFan's commentslogin

I just use match case as a traditional switch statement.


You need to make that exclude match = ... since match can also be a variable name. This is because people used to write code like match = re.search(...)


The existing pattern suggested above, "match ...:", will not match 'match = ...'.

Presumably the reason the parent comment suggested semgrep, not just a grep, is because they're aware that naive substring matching would be wrong.

You could use the playground to check your understanding before implying someone is an idiot.

https://semgrep.dev/playground/new


Wait the UXG doesn't do DHCP/DNS? The UCGs all do those which is a weird design choice.


UXG definitely does DHCP and DNS.


MyUXG Max has DHCP, and for my attached devices if I specify a static IP I get the option to set a Local DNS record.

There's no central management of these records that I'm aware of though.

Absolutely love my Unifi setup, recently upgraded my USG to the UXG as the old was EOL and not performant enough for gigabit routing with SPI.


Not with ipv6


The unfortunate reality is that even if fees disappeared tomorrow, most merchants would just keep the current price and pocket all the extra money as profit.


The email said that removing the image was "not enough".


Which is how you know its a scam


Also so far Riot's games don't require upfront purchases so that changes the equation a bit.


Who's going to arrest them?


Fun fact, initially when places were setting up police forces, people railed that it was an infringement on their right to do a Citizen's Arrest.


This is why you have a constitution, codified laws, judicial system, separation of powers, etc. We're just learning now none of these things are worth the paper they're written on.


The issue is that there’s nothing that requires prosecution, just allows it.

This is the doubled edged nature of prosecutorial discretion.


Well, in the idea of the system there is: The system is built around the assumption that Congress would impeach a president who fails to to the right™ thing (or fails to make his administration do ...)

However once the legislative branch surrenders oversight over executive there isn't much left keeping the system in balance. Even if judicial branch would call a measure unconstitutional, who'd execute that ruling?

The system is built around the assumption that a notable part of the system wants to keep it alive.


It's just as useful and effective as the international law and order that was setup after WW2.

So nada.


As long as you build an order around independence of countries and diplomacy (instead of, say, force) any organisation will only be as useful as countries are willing to follow and any structure can only be as good as the ones in charge are willing to go.

In consequences there are many flaws and a lot is stuck in post WW2 thinking, but I doubt there is a realistic chance of anything overall better.

The current U.S. administration tries to reshape things by disruption, we will see how this goes, but I doubt this will earn trust and buy-in from others. Thus not lead to a stable and "better" system. (While better, of course, is not globally objective, which again is key to the problem)


Would you say that was always the case, or just a more recent development?


Our entire civilization has always rested on a tacit "it's nice to have civilization, so we play by the rules" by everybody involved. Voluntary restraint is what keeps us from being animals, not nature or laws.

As Hobbes wrote so eloquently, we keep that compact because the alternative is "continual fear, and danger of violent death; and the life of man, solitary, poor, nasty, brutish, and short"

We're currently exploring how many of those rules are really necessary, and, as a society, have decided to mostly shrug off that exploration.

That is the part that's changed. A willingness to ignore the rules by some, and a collective shrug by most.


I think it's partly the way the US state is set up. When the president picks the Supreme Court judges and they have lifetime appointments you don't truly have separation of powers. Then the whole thing is meaningless. When you have "liberal" and "conservative" courts based on the make up of the judges you need to start again.


There should be a "+" button you can click and select any app. The Music app is located in the /Applications folder.


Oh I misread. My problem is on iOS.


Same. Extremely irritating.


Why not just use the GitHub generated email address you get when you hide your email?


Slack's UI sucks for multiple different "server"s. Good for work, but no gamer wants to juggle around the Slack UI for 2/3 different game servers, not to mention DMs being isolated. Imagine DMing the same person with 2 or 3 completely separate chat histories, depending on the source server. Many people have multiple servers that share a subset of people, and talking to them would be absolutely insane, not to mention the amount of people that primarily use Discord for DMs that don't care about any server at all.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: