Better HN
topnewbestaskshowjobs
Log inSign up

mustardo

281 karma · joined Feb 10, 2017 (9y ago) · 145 submissions

Submissions

comment 3mo ago · link · parent

> failed their strategic objective

copium

> It's their relentless deindustrialization that will eventually do them in

Agree, China has already won, at this point a lot of the world sees them as a more sane option than USA as well which is a nuts timeline

comment 4mo ago · link · parent

Anecdotal but we certainly run flyway migrations with a high privelage user not the regular low privelage "app" user who can only SELECT UPDATE and sometimes DELETE. The fact that nobody does this doesn't mean it's a bad idea just a reflection on poor industry practice (add it to the list)

comment 5mo ago · link · parent

Mighty fine AI you have there, be a shame if something were to happen to it...

comment 5mo ago · link · parent

This! I've worked with a few developers I would consider net negative to their team and product, in that their removal would have increased 3-4 other team members productivity by say 20% each. Coincidently these developers were almost exclusively Indian immigrants. In organisation with poor corporate culture and the ZIRP (Zero Interest Rate Policy) days of hiring to signal growth and managers hiring to increase the number of reports (to signal importance) compounded the problem

comment 6mo ago · link · parent

Built with packages hosted on Microslop's NPM

comment 6mo ago · link · parent

I thought copy.fail is a privelage escalation exploit, become root from a regular user? Am I missing something?

How would "node architecture" make people vulnerable to this?

You have to have shell access to a victim first right? Or am I missing something?

comment 9mo ago · link · parent

In an interview with Zelinsky Trump asks "why haven't you had an election? " Zelensky : "because we are at war" you can see the idea percolating then. People think I'm a nutter for suggesting there just won't be another election but that's where my money is. I'm waiting for his version of the Gestapo, ICE seems to be a proving ground

comment 10mo ago · link · parent

For machine tools I just use an oil can with a finer than normal tapered tip, this will depress the ball bearing in zerk / grease nipple fittings no problems, this also works with the ball oilers typically found on lathes etc. You can cut a tiny slit in the end too if that helps get oil in https://www.wentztech.com/metalworking/projects/convert-a-ch...

comment 2y ago · link · parent

One place I worked at used Red Dwarf characters, Hollister, Cat, Toaster, Rimmer etc

TV show characters can be good

I normally use Greek gods for snowflake servers

A concatenation of owner / location and device for LAN devices. JohnsPixel4, LoungeTV,

comment 2y ago · link · parent

This has aged well https://news.ycombinator.com/item?id=17818647

comment 2y ago · link · parent

LSP (Language Server Protocol) a way for editors to talk to language tools to provide auto complete, warnings errors etc. this means the language tools can be written once and then any editor that has LSP support can use it https://en.m.wikipedia.org/wiki/Language_Server_Protocol

comment 2y ago · link · parent

Not even particularly elegant code, for example, opacity is clamped between 0 and 1 in in the very next line a bounds check is made anyway.

  opacity = (opacity < 0) ? 0 : opacity;
  opacity = (opacity > 1) ? 1 : opacity;
  if(opacity >= 0 && opacity <= 1) {
      document.getElementsByTagName("BODY")[0].style.opacity = opacity;
  }

comment 2y ago · link · parent

> these religious institutions help stabilize society

I'm not sure this is true, there are plenty of conflicts because of religion. I would argue the most stable would for nobody to be religious

comment 3y ago · link · parent

A couple others

Mail Catcher https://mailcatcher.me/

Lunatic SMTP https://github.com/anlar/lunaticsmtp

Green Mail https://greenmail-mail-test.github.io/greenmail/

comment 3y ago · link · parent

Auctions generally perform better in a seller's market (strong buyer demand), with interest rate rises prices have been dropping lately here (NZ)

comment 3y ago · link · parent

Banks don't give out access to this API easily. Unfortunately it's not some OAuth thing that a new upstart accounting software could easily hook into, therefore the banks gate keep feeds to major accounting providers and no doubt charge excessively for the privelage. We need regulation to open feeds to anyone willing to consume them, or a bank to add it as a feature but why would they when they can charge Xero and MYOB to access proprietary feeds

comment 3y ago · link · parent

Over Powered

comment 3y ago · link · parent

A Hungarian notation but as a suffix?

Ignoring variable name shadowing a static type system helps a lot

https://en.m.wikipedia.org/wiki/Hungarian_notation

comment 3y ago · link · parent

100% this! One of the worst projects to reason about I have ever worked on (and I have worked on a lot of trash) was when a colleague insisted on implementing a state machine in a system that tracked voucher (offer) redemptions. State machines do have their place but coordinating business logic with one is a bad idea IMHO

This same colleague had implemented a similar FSM (flying spaghetti monster as known by the team) in an FX (foreign exchange) platform at a previous company. Which after a job change I got the pleasure of experiencing, nobody in the team knew how it worked and everyone was petrified of making changes

comment 3y ago · link · parent

"dairy" is Kiwi for a convenience store, Off License, Superette. I remember being surprised moving overseas and calling it a dairy nobody knew what I was talking about https://en.m.wikipedia.org/wiki/Dairy_(store)

comment 3y ago · link · parent

> Never ending warnings you can't turn off and many other small things lead me to skipping small expenses and just eating them, because I can't be bothered to fight Concur.

Sometimes I wonder if this is a "feature not a bug" the company wins and saves money (in the short term)

It probably costs them via reduced employee happiness turnover etc etc indirectly but there is no KPI for that

comment 4y ago · link · parent

UT99 GOTY always amazed me with how well it runs and plays on abysmal hardware, can lan party it on pretty much any PC

comment 4y ago · link · parent

What about living things other than humans?

comment 4y ago · link · parent

A common configuration is to pair a router with a managed switch that can handle VLANs and have a trunk port between the switch and router such a setup is called a "router on a stick" https://en.m.wikipedia.org/wiki/Router_on_a_stick

comment 4y ago · link · parent

You might want two or more routers (or network cards) on the same layer 2 (physical) network, if you buy two devices with the same MAC ARP (address resolution protocol) for example can't work. Typically the chip manufacturer "buys" MAC address ranges from IEEE, some cheap chip manufacturers won't. You can sometimes work around this in software by allocating a new random address to the interface

comment 4y ago · link · parent

MS teams is proof slack could get a lot worse yet :-)

comment 4y ago · link · parent

Using separate databases or schemas per tenant comes with the following problems

* Managing schema migrations across every DB

* You cant query across the DB, want to know some cross tenant thing for ops? That's now a lot harder

* Connection pooling and resource usage can be harder to manage

Most systems I've worked on use a single DB with a `tenant_id` col on every relevant table, it's easy to have your query builder slap in the auth'd tenant I'd. This approach does come with issues like saving and restoring an individual tenants data

Like a lot of things in life, it's a trade off

comment 4y ago · link · parent

For your "maybe slightly better is" what happens when the db commit fails? FK constraint or some such, now you have sent an email (called the API) and have no record in your DB

Without two phase commits I would

1) Write to the DB in the original POST request a record indicating that an email should be sent 2) Process that record outside of the original request and mark it as sent

comment 4y ago · link · parent

Every single Russian citizen is in a position to protest the war, they are just too spineless
12345