TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Just F-Ing Ping

44 点作者 schappim超过 1 年前

9 条评论

TacticalCoder超过 1 年前
I&#x27;ve got several Bash aliases that are &quot;wrappers&quot; around functions like that and which help &quot;fix&quot; commands &#x2F; find common mistakes.<p>The one thing to keep in mind while doing that is that you should not modify how a command behaves in the happy case and your wrapper should only be used when using the shell yourself. Do not wrap commands and then use the wrapper from shell scripts, for example. Otherwise you&#x27;ll be sorry out of luck if you copy your script to another script.
评论 #38978599 未加载
评论 #38978097 未加载
system16超过 1 年前
&gt; Modern browsers, believing they are being clever, hide the protocol in the URL bar.<p>Not all, thankfully. Safari doesn&#x27;t do this.
评论 #38977058 未加载
mcsniff超过 1 年前
Honestly, a right-click option for &quot;copy naked&#x2F;root&#x2F;plain domain&quot; instead of copying the entire address with protocol would make sense for almost browser; they all ship with developer tools pre-installed.<p>Control click, shift+ctrl+c would work, there are many ways to do this.
评论 #38977488 未加载
评论 #38976915 未加载
评论 #38978204 未加载
quickthrower2超过 1 年前
Nice work. Drives me nuts that you have to strip off the protocol. I get the logic but UX is better if you allow it. We are in a REST all the things universe now.
staz超过 1 年前
Awesome I always wanted something like this and didn&#x27;t make the connection it would be that obvious to do. Thanks! You are going to make my life nicer
qwery超过 1 年前
Make more noise about bad UI design.<p>As far as I&#x27;m concerned, this particular behaviour is a product of an incorrectly designed user interface. Within the Windows-style clipboard paradigm, pressing &#x27;copy&#x27; in a text field has always been a command saying &quot;copy <i>my</i> selection to the clipboard&quot;. The program ignores half of this command and acts in a surprising way.
评论 #38978514 未加载
n0ot超过 1 年前
I don&#x27;t think you&#x27;re stripping the userinfo quite right. You&#x27;re stripping everything <i>after</i> the at-sign, when you want to strip what&#x27;s before:<p><pre><code> scheme:&#x2F;&#x2F;user:password@some.host:port&#x2F;path?query_key=query_value&amp;another_key=another_value#fragment</code></pre>
评论 #38979187 未加载
评论 #38978610 未加载
wannacboatmovie超过 1 年前
No. No, no, no, a thousand times no.<p>We shouldn&#x27;t come up with workarounds for Google&#x27;s shitty software. It enables them in furtherance of their goal of wrecking the Internet beyond recognition. The solution is to file a bug report and get them to fix their broken software. They have a monopoly, way too much money, and developers who need to justify their existence so they come up with these ridiculous &quot;improvements&quot; no one asked for.<p>The clipboard bug is just one thing wrong with the picture; the trimming of the protocol and the asinine &quot;tune&quot; icon which replaces the lock (which thankfully Safari and Edge have refused to follow this trend, with MS having to patch out this nonsense from the tree because they understand their customers aren&#x27;t insane). Present-day Chrome is as if &quot;The Homer&quot; car was a web browser.<p>Enough of the avant-garde crap; I wish Google would just go away. They are the obnoxious rich kid in the room and have overstayed their welcome.
vivzkestrel超过 1 年前
stupid question: why do you want to find the ping from the browser tab?
评论 #38977997 未加载