Readit News logoReadit News
hmaxwell commented on Gemini 2.5 Flash   developers.googleblog.com... · Posted by u/meetpateltech
hmaxwell · 5 months ago
I did some testing this morning:

Prompt: "can you find any mistakes on my codebase? I put one in there on purpose" + 70,000 tokens of codebase where in one line I have an include for a non-existent file.

Claude 3.7 Sonnet (Try 1 - new chat) Claimed it Found a race condition in the api of the admin interface that would be triggered if two admins were to change the room order at the same time. Claude suggested I group all sql queries in a single transaction. I looked at the code and found that it already used a transaction for all queries. I said: the order_update api is already done with a transaction. Claude replied: "You're absolutely right, and I apologize for my mistake. I was incorrect to claim there was a race condition issue. The transaction ensures atomicity and consistency of the updates, and the SQL queries are properly structured for their intended purpose."

Claude 3.7 Sonnet (Try 2 - new chat) Found a comment in the admin ui javascript code that suggested a potential alternative to event handler cleanup that was not implemented because I decided to go with a cleaner route. Then asked "Is this the issue you intentionally included, or would you like me to look for other potential problems?" I said: "The comment merely suggests an alternative, right?" claude said: "Yes, you're absolutely right. The comment is merely suggesting an alternative approach that isn't being used in the code, rather than indicating a mistake. So there's no actual bug or mistake in this part of the code - just documentation of different possible approaches. I apologize for misinterpreting this as an issue!"

Claude 3.7 Sonnet (Try 3 - new chat) When processing items out of the database to generate QR codes in the admin interface, Claude says that my code both attempts to generate QR codes with undefined data AS WELL AS saying that my error handling skips undefined data. Claude contradicts itself within 2 sentences. When asking about clarification Claude replies: Looking at the code more carefully, I see that the code actually has proper error handling. I incorrectly stated that it "still attempts to call generateQRCode()" in the first part of my analysis, which was wrong. The code properly handles the case when there's no data-room attribute.

Gemnini Advanced 2.5 Pro (Try 1 - new chat) Found the intentional error and said I should stop putting db creds/api keys into the codebase.

Gemnini Advanced 2.5 Pro (Try 2 - new chat) Found the intentional error and said I should stop putting db creds/api keys into the codebase.

Gemnini Advanced 2.5 Pro (Try 3 - new chat) Found the intentional error and said I should stop putting db creds/api keys into the codebase.

o4-mini-high and o4-mini and o3 and 4.5 and 4o - "The message you submitted was too long, please reload the conversation and submit something shorter."

hmaxwell commented on Netboot.xyz: your favorite operating systems in one place   netboot.xyz/... · Posted by u/thunderbong
maccam912 · a year ago
Since I won't get a better chance to find knowledgeable people: How exactly does iPXE work? Lets say I want to boot a random old PC from one of these images - does the bios need to have iPXE support? Or PXE? Or does it need to first boot into some local system first, which then goes out and gets the image to boot the rest of the way from?

Then there's mention of DHCP and self hosting. Do I need to have some service running within my LAN first or can this go right out to some public server and boot from images there? How does DHCP factor in? I am in so far over my head on this but it seems interesting and something fun to try out.

hmaxwell · a year ago
You can use netboot.xyz from a flash drive to boot various operating systems and utilities. Alternatively, PXE (Preboot Execution Environment) has been around for a while and works by allowing a network-capable device to boot from its network interface. A PXE-compatible network card requests a DHCP lease during the boot process, which provides the IP address of a TFTP (Trivial File Transfer Protocol) server and the file that needs to be loaded from the server.

Typically, the network card contains a basic PXE kernel. To enhance this environment, you can chainload iPXE, which offers a broader range of features. iPXE allows for more advanced booting options, such as loading scripts or initiating an unattended installation directly from the network.

hmaxwell commented on AMD to buy Silo AI for $665M   ft.com/content/7b8d2057-2... · Posted by u/helsinkiandrew
hmaxwell · a year ago
This is a nothing burger compared to amazon and google giving $4b and $2b respectively to Anthropic
hmaxwell commented on Ask HN: Boss thinks I'm dumb, now what?    · Posted by u/imustbedumb
hmaxwell · a year ago
Find a new job, or if you like the job you have just ignore it. Or if you want to get fired start explaining concepts to your boss.
hmaxwell commented on Ask HN: Custom domain for personal email – yay or nay?    · Posted by u/alentred
dcminter · a year ago
I've been using a custom domain for a long time - I have forwarding via improvmx.com that I'm very satisfied with.

I've had no problems. It's good knowing that if I do have any issue with the underlying mail host that I can just point it elsewhere with minimal fuss.

I don't think it adds a lot of value beyond that. Perhaps an iota of geek cred?

hmaxwell · a year ago
I know that improvmx was reading my emails. Reason? I get an email from them saying: We've detected activity on your domain that violate our Terms of Service, particularly the "Prohibited Activities and Responsible Usage" section.

Yea, no thank you. What's been working really well is CloudFlare's email forwarding service, plus it's free unlike improvmx.

hmaxwell commented on GPT-4o   openai.com/index/hello-gp... · Posted by u/Lealen
hmaxwell · a year ago
using a GPU to mine $25 of bitcoin is going to take you way more than a month
hmaxwell commented on More than 100 arrested in Spain in $900k WhatsApp scheme   therecord.media/spain-arr... · Posted by u/PaulHoule
psychlops · a year ago
"The fraudsters also registered nearly 100 phone numbers using false identities."

Is it really a WhatsApp scheme? I thought the purpose of phone numbers now is to tie them to an actual person.

hmaxwell · a year ago
you would think, but apparently anyone can now download an app called "talkatone" that gives you a free phone number to make calls and send texts with
hmaxwell commented on Why do programmers need private offices with doors?   blobstreaming.org/why-do-... · Posted by u/signa11
hmaxwell · 2 years ago
I work at a 30 person company in a partitioned office designed for four people, including the CEO, a graphic designer, and a secretary. My role involves focused programming tasks, which are frequently disrupted by the office dynamics.

When the CEO is away, the graphic designer and secretary frequently engage in loud, casual conversations, discussing everything from personal matters to home decor, like curtain colors. They also have a habit of yelling over the office partitions, adding to the disruption. Despite using noise-cancelling headphones, these distractions, including both the conversations and the yelling, consistently hinder my concentration.

Interestingly, the secretary has expressed concern about the perceived level of activity in the office, especially when the CEO is present. The secretary has mentioned to both me and the graphic designer that there might not be enough typing noises, suggesting a worry that the CEO might not think everyone is working hard. This concern about appearances adds another layer to the already challenging office environment.

hmaxwell commented on     · Posted by u/kiblekevin
kiblekevin · 2 years ago
Sorry, first time using HN. I was trying to add a description, but looks like it added a comment... apologies
hmaxwell · 2 years ago
Who are you? Do you have any social media presence?
hmaxwell commented on     · Posted by u/kiblekevin
kiblekevin · 2 years ago
Working on a new concept. If anyone's interested in the product sign up for the trial.
hmaxwell · 2 years ago
what?

u/hmaxwell

KarmaCake day75October 19, 2019View Original