Hacker News new | past | comments | ask | show | jobs | submit | muzster's comments login

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.


We've had OCR for decades before GPT. I suspect GPT might perform worse than OCR. What a waste.


Agreed - it's a waste. GPT is not too bad at reading text from image and with the added bonus that you can reason with it.


It won't make sense cost wise though


True - but that cost just halved with today's introduction of "GPT-4o". The other cost is time. IMHO - I think there is more to worry about than email scraping..


Except the cost is only going down over time


In no world is anyone wasting resources to run an AI model to parse a page that may or may not include an email address. Even running a DOM parser is more than they’d typically do. This is silly.


I presume this Cloth is covered by AppleCare. Would be terrified to drop it.


Thank you Sir Clive.

I will wear my clashing outfits for the next 8 days.


Peter Falk really was a fallen angel. Wings of Desires https://www.youtube.com/watch?v=H2-26rb7S38


Columbo!


"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


Well I don't think Shaw was thinking that everyone should become Karen or all progress depending on acting as one.

Reasonable person principle is about being a decent person it is not about Copernicus accepting geocentric model and living rest of life with it.


…according to Shaw, who's the unreasonable man in his example.

I'm gonna say that's bias to the point of being untrustworthy. You could also say 'therefore, the unreasonable one always gets his way, AND SO HE SHOULD'.

Reasonable minds might criticize this position :)


Well, that does explain Ayn Rand.


if you listen carefully you can hear the music...


is it fair to use line count alone ? maybe the character count should be used as well (excluding whitespace)


It would be interesting to see how diverse each of the diversity groups are - for example, breakdown of Indians by caste.


Or even more telling... the breakdown of Indians by religion.


Off Topic:

In case anyone is not familiar with the phrase : "I've got a bridge to sell you when you're ready"

(1) A con artist who sold a bridge. https://en.wikipedia.org/wiki/George_C._Parker

Not to be confused with :- (2) Rumoured that the wrong 'London' bridge was sold to Arizona (vs Tower Bridge) https://www.history.com/news/how-london-bridge-ended-up-in-a...

It could be argued that both apply - but I'm not getting into that argument !


the irony is that there is a bounds check already within the str.charAt() method...


That throws an exception though, while this code is trying to return 0. The java "fix" would be to add a charAtOrDefault(), but that doesn't seem to exist.

The source of charAt is also interesting because it manually bounds checks while the array access into the underlying char[] has its own bounds check. I'm not sure why having the separate exception is better than letting the array access throw directly?

https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/19fb8f93c...


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.


Oh that makes sense, I had forgotten about the old substring sharing optimization.


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

Search: