HN user

muzster

235 karma
Posts1
Comments52
View on HN

I lament the decline also. Hopefully all of that lost energy has been put into good use on side projects.

On a tangent, but think it's related, the curiosity, exploration and research by the kids maybe stalling too.

Just a thought.

Engineering Sleep 2 years ago

not all hours sleep/awake hours are equal - for example, I may be more work productive late at night, a better listener/learner in the mornings and better sleeper post meals, in the bath tub, travelling (my kids used to love falling asleep in the car).

Wonder if we could engineer multiple sleep intervals through out the single day (e.g. power napping, siesta's). There is plenty of dead time for me during the day that could be swapped out for sleep.. the question is at what cost to the body & mind?

Just a thought.

Just tried to programatically take a picture on my MacBook Pro 2012. Managed to take a picture in sub second. The LED flashes briefly and you could easily miss it .

Would be good to keep that LED ON well after the Camera switches off (Not sure what that minimum would be without causing an inconvenience - but how about 15 minutes ? - Long enough to educate the users to worry about their privacy and perhaps take breaks between making video calls !) - Just a thought.

Heavily guarded fortress would indicate something of value inside, and the big crooks may spend a little more effort. In the age of AI, this becomes even easier.

   {
     "model" : "gpt-4-turbo",
     "messages" : [ 
       {
         "role" : "system",
         "content" : [ {
          "type" : "text",
          "text" : "return a json array of all valid emails found in the image."
          } ] 
       }, 
       {
         "role" : "user",
         "content" : [ {
           "type" : "image_url",
           "image_url" : {
           "url" : "data:image/png;base64,{{ INSERT_BASE64_PNG_DATA }}"
         }
       } ]
     } ],
      "temperature" : 0.5,
      "max_tokens" : 2048,
      "top_p" : 1.0,
      "frequency_penalty" : 0.0,
      "presence_penalty" : 0.0
    }
Edit: Converting web page to an image is trivial.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man."

- George Bernard Shaw

Agreed. Though catching and handling that exception maybe more performant if majority of those indexes are within the bounds of the array.

> I'm not sure why having the separate exception is better than letting the array access throw directly?

(1) The original String charAt method (Sun/Oracle) had to account for an offset and an index. The exception from the bounds check on the underlying char[] would be misleading/confusing... and therefore the birth of the seperate StringIndexOutOfBoundsException

Source: http://www.docjar.com/html/api/java/lang/String.java.html

(2) Because of the above and for backward compatibility, the OpenJDK is doing the same exception handling... sometimes it pays to review the original source code to get some context and rationale to the OpenJDK version.

Elf Hello World 9 years ago

Great article...

Makes you wonder how ELF's brother (PE) and daughter (WASM) are doing.

This is not a Cat Stevens song.

However, Cat Stevens/Yusuf Islam did write "Father & Son" - which brings tears to my eyes... when I think of my son and my dad.

> How would you feel if a fellow developer left in the circumstances described?

I would feel happy for you and try my best to make sure we got a good handover. Your problem is with the management and not your fellow developers.

> If you were a dev manager or hired this developer, how would you feel about them leaving in the circumstances described?

I would try and tap into your experience before it leaves the company. The boat needs steadying - there may be some obvious low lying fruit.

Bad experiences are just as valuable as good experiences.

Sounds like an amazing product - would love to try it here in the UK.

It might help to add a mail subscribing list to your website to capture early oversea adopters.

Does the app allow you to take a picture of the aftermath to account for the unconsumed left overs ?