HN user

chipsambos

104 karma
Posts0
Comments23
View on HN
No posts found.

ok I believe it may not have been intended as a trick but I think it is. As a human, I'd have assumed you meant the trickier balancing scenario i.e. the plank and barrel on its side.

The question you quoted ("Suggest a stable way of stacking a laptop, a book, 4 wine classes, a wine bottle and an orange") I would consider much fairer and cgpt3.5 gives a perfectly "reasonable" answer:

https://chat.openai.com/share/fdf62be7-5cb2-4088-9131-40e089...

I generally agree with what you're saying and the first half of your answer makes perfect sense but I think the second is unfair (i.e. "[is it] easier to balance a barrel on a plank or a plank on a barrel"). It's a trick question and "it" tried to answer in good faith.

If you were to ask the same question of a real person and they replied with the exact same answer you could not conclude that person was not capable of "actual reasoning". It's a bit of witch-hunt question set to give you the conclusion you want.

Some within the industry have been making noise that Google is quietly and slowly taking control of the whole trip funnel. Interesting read:

https://www.cartrawler.com/ct/digital-disruption/googles-ste...

I'd agree that providers are ceding too much control to Google for short-term wins, maybe without even realising the power they're handing over to Google.

Google is quietly inserting themselves between the customer and the business in all sorts of industries. They're not fully utilising that power which only makes them a benevolent (for now) dictator.

Agree it's incalculable, I don't mean that in the "it's too big of a number" sort of way but in the "we can't possibly know" kind of way:

1) The scale and depth of the disruption makes it impractical to figure in any kind of accurate way and

2) The disruption will have introduced hypotheticals that nay spiral out themselves (butterfly effect style) e.g. some retailer may have lost a customer who went elsewhere, some supplier may have lost a retailer who went elsewhere, etc

Btw, anyone who lets FB that close to their eyeballs is a stone cold moron at this point. They couldn’t be trusted to run an online photo album, giving them the ability to actually control your sense of reality is nightmarishly awful.

This is a bizarre couple of sentences. I don't think you understand the technology _at all_.

Firstly, it doesn't really matter how close the screen is to your eyes. Try moving your phone closer to your face or do you trust the app that you're about to let your eyes get closer to?

Secondly, it doesn't have the ability to control your sense of reality. At least, not any more than seeing a movie in a cinema does.

The thing is, I actually agree with your second sentence but only in the context of their social media platforms i.e. silently building echo chambers around users, experiments with shaping of user's emotional state and political opinions, etc.

If he just continues on and loses one or more stars then, no matter how public he is about the restaurant's change of direction, it will be widely regarded as a demotion. Opening a second, more informal eatery might not appeal to him for any number of valid reasons.

It seems reasonably clear that the ongoing cost in terms of anxiety and, to some extent, the freedom to change or loosen up things is simply not worth the accolade to him anymore. The article states: "because of the huge pressure of being judged on every dish he serves... and the anxiety over Michelin’s anonymous food judges, who could arrive at his restaurant at any moment... “You’re inspected two or three times a year, you never know when. Every meal that goes out could be inspected. That means that, every day, one of the 500 meals that leaves the kitchen could be judged. “Maybe I will be less famous but I accept that,” he said, adding that he would continue to cook excellent local produce “without wondering whether my creations will appeal to Michelin’s inspectors”."

So, he's quitting on his own terms. Assuming it's not a rash decision borne from burn-out or some temporary phase or state of mind then I think it's admirable.

“You go from working 50, 60, 70 hours a week to zero,” Moen says. “And it very much affects your identity. Who am I? For men, the answer usually is their job.”

That is why it's important not anchor your identity in the transient. The world is full of people who do and it invariably hits them hard when things inevitably change: Mothers with empty nest syndrome, ageing people clinging desperately to their youthful good looks, jobless and retired people who find their self-esteem smashed and consider themselves useless.

It helps if you clearly define the roles you play in your life: a husband, a father, a brother, a friend, a software dev, a jogger, a cyclist, a member of the local club, an avid collector of y and, above all, a person who can create new roles and find new places for yourself.

Redis 3.2.0 is out 10 years ago

I work on a SaaS spatial product and had to come up with a solution to the same point/boundary problem. It needed to be 'fast' (ideally <3s) when filtering, rendering, styling and summarising 100k points within 43k polygons (so say 100k shop locations within many state, county and zip/zcta codes in US). DB is Oracle 11g for several reasons: product is larger and older than this requirement, small team has solely expertise with oracle and zero commercial experience with nosql dbs (good devs though and have showed interest in and toyed with nosql dbs) plus standard budget/time constraints.

Solution was to add a hidden column for each administrative category (e.g. for US: region, state, county, zcta) to each point record to replace spatial searches with filtering.

Would something like that work for you? What kind of numbers of points and polygons are you looking at and how quickly do you need to solve the problem?

var naming aside, the whitespacing is perplexing:

      U = random_double(); negSreal=-S;
      y1=exp(log(U*Nreal/qu1real)*nmin1inv);
      Vprime = y1 * (-X/Nreal+1.0)*(qu1real/(negSreal+qu1real));
      if(Vprime <= 1.0) break;       y2=1.0; top = -1.0+Nreal;       if(-1+n > S){bottom=-nreal+Nreal;limit=-S+N;}
      else{bottom=-1.0+negSreal+Nreal; limit=qu1;}
Sometimes two statements per line, sometimes one. Sometimes spaces before and after equals, sometimes none. Sometimes multiple ifs, breaks and statements on one line.

It looks like it was copy-pasted from a pdf. Maybe it was.

I think it's fine. Well, "validity" is contextually sensitive of course. For example, if I want to test addresses against a regex I'm developing then, yes, they are valid but if I want to test my mapping application that geocodes addresses then made up addresses are "invalid".

Since the whole point of an address is that it resolves to a particular geographical location then I would have expected a "Random Valid US Address" to be able to be geocoded.

Another far more common antipattern that isn't mentioned here is premature abstraction

He does address this one in point 9:

Useless (Poltergeist) Classes Useless classes with no real responsibility of their own, often used to just invoke methods in another class or add an unneeded layer of abstraction.

Over-abstraction is extremely common in 'Enterprise' Java codebases too.

PhantomJS 2 11 years ago

There are better release notes in the download:

---

2015-01-23: Version 2.0.0

    New features

      * Switched to Qt 5 and updated WebKit (issue 10448)
      * Implemented clearing of memory cache (issue 10357)
      * Added support for HTTP header change for every request (issue 11299)

    Improvements

      * Fixed rendering of CJK text by always linking the codecs (issue 10249)
      * Ensured onResourceReceived is still fired on an error (issue 11163)
      * Fixed possible crash in handling network requests (issue 11252)
      * Removed hardcoded GhostDriver launching message (issue 12681)
      * Allowed disk cache more than 2 GB (issue 12303)

    Examples

      * Netsniff example should exit when fails to load (issue 11333)
---