跳到正文
每分钟自动更新
  1. Simon Willison

    Select Styling Specimens

    中文摘要

    中文摘要待更新

    英文原文

    Tool: Select Styling Specimens I got frustrated at how HTML <select> boxes default to looking different in different browsers, and are (I think) quite ugly in Chrome: So I had Claude Fable 5.2 build me this page showing all of the ways they can be styled: Build an HTML page that shows all of the ways a select box can be styled, I plan to take screenshots in every desktop and mobile browser After some experimentation I've decided my favorite CSS for select boxes is this: select { appearance : none ; color : # 1f2933 ; padding : 0.5 em 2.25 em 0.5 em 0.75 em ; border : 1 px solid # c4cbd3 ; border-radius : 6 px ; background : # fff url ( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23667085' stroke-width='1.5'/%3E%3C/svg%3E" ) no-repeat right 0.75 em center / 0.75 em ; } Here's what that looks like in the three browsers: Tags: tools , css , html

  1. Simon Willison

    Hide your slop PR descriptions behind

    中文摘要

    我如今对项目所做的大部分更改,都是由Claude Code或Codex为我打开的PR(拉取请求)。PR就是我的工作单元——我用它们将提交捆绑在一起,不断迭代直到功能完成,记录决策过程,然后合并最终结果。如今的编码代理在撰写PR描述方面非常出色。它们对工作的描述太过详尽。问题就在于它们太好了。由代理撰写的PR描述是准确且全面的。它会描述问题、详细的解决方案以及验证的步骤。这些信息量很大,要吸收起来很吃力。这不一定是垃圾信息,但看起来就像垃圾信息!很容易就能看出这是AI写的PR,和其他形式的AI写作一样,我的第一反应可以总结为“我才不会全部读完”。不管信息多么准确或有用,只要想到读它需要的时间比写它的时间更长,我就会立刻感到反感……即使这个“作者”就是我自己!我想要的是人类的编辑判断。我希望有人能花足够的时间去思考这个PR,给我一个经过人类认可的简介,帮助我从整体上理解。

    英文原文

    Most of the changes I make to my projects these days come in the form of PRs opened for me by Claude Code or Codex. The PR is my unit of work - I use them to bundle commits together, iterating on them until a feature is complete, document decisions and then merge the finished result. Today's coding agents are great at writing PR descriptions. They're too good at describing the work The problem is that they are too good. An agent-written PR description is accurate and comprehensive. It describes the problem, the detailed solution, and the steps taken to verify it. That's a lot of information to absorb. It's not necessarily slop, but it reads like slop! It's very easy to spot an AI-written PR, and as with other forms of AI writing my instant reaction is best summarized as "I'm not reading all of that". It doesn't matter how accurate or useful the information is, I'm instantly put off by the thought that it will take me longer to read than it took the driving author to write... even when that driving author is me! I want human editorial judgement. I want someone to have thought just long enough about the PR to give me a human-approved introduction that helps me understand, at a high l

  1. Simon Willison

    datasette #3046: Don't serve link: rel=next HTTP headers to Firefox for HTML pages

    中文摘要

    datasette #3046:不要向Firefox发送HTML页面的rel=next链接HTTP头部 今天我在查看Firefox的网络面板时,注意到对Datasette表格页面的请求会触发对该表格下一页行的HTTP预取。这是因为Datasette页面会发送类似这样的HTTP链接头部:link: <https://latest.datasette.io/fixtures/compound_three_primary_keys?_next=a%2Cd%2Cv>; rel="next" 这是不好的。在这些页面中,只有一小部分访问者会点击“下一页”链接,这意味着其他人浏览器正在获取不必要的数据,而Datasette服务器则必须渲染整个页面,然后将其丢弃。 我深入研究后了解到,Firefox存在一个已经开放了24年的关于此行为的问题……该问题早期的评论之一链接到了我2002年的一篇博客文章,当时我抱怨这个功能。我不仅忘记了自己曾经写过关于这个功能的文章,甚至已经完全忘记了这个功能! 标签:firefox , html , mozilla , datasette

    英文原文

    datasette #3046: Don't serve link: rel=next HTTP headers to Firefox for HTML pages I was looking at the Firefox network panel today when I noticed that requests to a Datasette table page were triggering an HTTP prefetch to the next page of rows in that table. This was happening because Datasette pages serve an HTTP link header like this: link: <https://latest.datasette.io/fixtures/compound_three_primary_keys?_next=a%2Cd%2Cv>; rel="next" This is bad. A tiny fraction of the visitors to one of those pages will click the "next" link, which means for everyone else their browser is fetching unnecessary data and the Datasette server is having to render an entire page that then gets thrown away. I dug in and learned that Firefox has an issue that has been open for 24 years about this behavior... And one of the early comments on that issue links to my blog post from 2002 complaining about this feature. I hadn't just forgotten that I had written about it, I had forgotten the feature entirely! Tags: firefox , html , mozilla , datasette

已经到底了