Better HN
topnewbestaskshowjobs
Log inSign up

chpatrick

2,704 karma · joined May 5, 2014 (12y ago) · 1,214 submissions

Submissions

comment 4y ago · link · parent

In TypeScript any type that's structurally the same is considered equal, type just gives it a different name.

comment 4y ago · link · parent

You can kind of do it:

  interface RobotName {
    value: string;
    type: "RobotName";
  }
Or if you don't want to make an extra wrapper around every object:

  interface RobotName {
      _phantomType: "RobotName";
  }
  
  function makeRobotName(name: string): RobotName {
      return name as any as RobotName;
  }
  
  function getRobotName(robotName: RobotName): string {
      return robotName as any as string;
  }
Presumably V8 is smart enough to inline the wrapper functions.

comment 4y ago · link · parent

Mainly using state assets to campaign for his party (incredibly biased state media/propaganda posters everywhere).

He's also had a supermajority since 2010 and has used it to change the voting system in his favor.

comment 4y ago · link · parent

The stuff about TypeScript generics is just wrong though.

comment 4y ago · link · parent

For pre boot encryption I used ZFS's built-in encryption, it just works.

comment 4y ago · link · parent

Pretty sure it's just a matter of time until it goes the way of Stable Diffusion.

comment 4y ago · link · parent

Sir, your dog can compose poetry!

Yes, but not very well.

comment 4y ago · link · parent

I think the pressure is the best thing, you can just chuck food into it that normally takes a long time to cook and it'll be done in a fraction of the time, then it'll just keep it warm until you're ready to use it. It's great for rice and yoghurt too. I use mine all the time.

comment 4y ago · link · parent

It's a pretty amazing library although figuring out how to use it is almost like learning a new language. :)

comment 4y ago · link · parent

For a very high price.

comment 4y ago · link · parent

Great, how do writers get paid?

comment 4y ago · link · parent

It's a monopoly, the same group owns the venues.

comment 4y ago · link · parent

What about modern C++?

comment 4y ago · link · parent

Depends on the distro, I can just install all of those directly with Nix.

comment 4y ago · link · parent

matrix/element.

comment 4y ago · link · parent

Git has nothing to do with discussion and issue tracking.

comment 4y ago · link · parent

Well, there's Framework Laptop if you want upgradable "internals".

comment 4y ago · link · parent

Can we have block scope?

comment 4y ago · link · parent

You can run it on an Intel CPU if that helps: https://github.com/bes-dev/stable_diffusion.openvino

comment 4y ago · link · parent

https://xpra.org/

comment 4y ago · link · parent

If you have central authorities there's no need to have the massive complexity that comes with crypto.

comment 4y ago · link · parent

In the Canon drivers the IP1800 is included as the same package as IP3300 which is already supported in Gutenprint, so maybe that's the closest one to copy from.

https://github.com/endlessm/cnijfilter-common/blob/0c5cfbf85...

comment 4y ago · link · parent

Maybe it's easier to add it to Gutenprint? http://gimp-print.sourceforge.net/

It supports Pixma ip2000, so maybe it's not a huge change.

This describes how to add a new printer: http://gimp-print.sourceforge.net/reference-html/c199.html

comment 4y ago · link · parent

I think it's a clever idea but this is the kind of thing that incentivizes companies to manipulate them (like Google and SEO). If everyone knows about the "just add Reddit trick", it will eventually stop working.

comment 4y ago · link · parent

I did, I found no evidence that their network exists at all in my country.

comment 4y ago · link · parent

Most battery powered trackers have a battery life of about a week. AirTags last a year. That's possible because they're pretty much passive and Apple's network of iPhones does the actual tracking. No other company can do this.

comment 4y ago · link · parent

Seems like it's been a PoS for a few years.

comment 4y ago · link · parent

I think "understanding" is a super vague word.

comment 4y ago · link · parent

That's not how Photoscan works.

comment 4y ago · link · parent

Well, that's what you get for those prices right? If you want fancier service many airlines are happy to take your money, usually many times more.
1
3738394041