News for hackers. Stuff that matters.

osteele

Re:Show HN: Talk to any ArXiv paper just by changing the URL on Thursday December 21, 2023 @01:49AM (#38717778)
It works well with bookmarklets. This swizzles between arxiv.org <-> www.talk2arxiv.org. I've now added it to my Favorites bar, next to arxiv.org/abs <-> arxiv.org/pdf and twitter.org <-> nitter.net. Thanks for the service!

javascript:((u,a,b,c)=%3Ewindow.location.href=u.match(a)?u.replace(a,b):u.startsWith(b)?u.replace(b,c):u)(window.location.href,/https:\/\/arxiv\.org\/(abs|pdf)\//,'https://www.talk2arxiv.org/pdf/','https://arxiv.org/pdf/')

Re:Show HN: AI Playground by Vercel Labs on Wednesday April 19, 2023 @07:21AM (#35626828)
To be clear, that’s a link to a library meant for use in projects like yours. I’m not promoting a competing project (and haven’t provided a link to one).
Re:Show HN: AI Playground by Vercel Labs on Tuesday April 18, 2023 @11:50PM (#35624053)
Very nice! If you want to add a feature, feel free to make use of https://github.com/osteele/prompt-matrix.js, which I (well, ChatGPT and I) created for use in my own playground so that I could enter e.g. "Write a <Python|JavaScript> program to look for anagrams, in the style of <Norvig|Carmack>".
Re:Ask HN: How are you using GPT to be productive? on Saturday March 25, 2023 @05:28AM (#35300980)
* Porting code (generally code that I've written) from one language or framework to another. For example, porting Python to JavaScript. [1]

* Getting started with a new platform. For example, describing the problem, and having it create a template in a front end framework, CSS framework, API generator.

* Creating instructional materials. Pasting in code and generating explanations, assessments, and grading rubrics. [2]

* Generating the first pass of API documentation, READMEs, test suites, and configuration files. Modifying configuration files. Finding configuration options based on NL descriptions.

* Quickly generating examples of API uses that are specific to my application. Finding out what libraries and APIs are available for a use case, based on an NL description.

* Learning what algorithms exist for a problem. Generating implementations of these in different languages, or that are specific to my code or data structures.

* Rarely-used system administrations commands. For example, how do I flush the DNS cache on macOS Safari and Chrome? (Questions such as this are actually better on Perplexity.ai than on ChatGPT.)

* Pasting in error messages or descriptions of problems, and asking for solutions.

* Tie-breaker questions about what to name a file, function, or set of functions.

In general, I find that it takes a lot of the drudgery out of programming. (Similar to Copilot, but for a different, generally more macro, set of areas.) For example, I asked it to solve a geometry problem and generate a test harness for both interactively and batch testing it. It's solution to the problem itself was a non-starter, but the test harness was great and would have been involved boring work in order to write.

I also use it to generate emails, project proposals, feedback, etc. I don't think it's ever come up with anything usable, but seeing what's wrong with its attempt is an easier way for me to get started than looking at a blank page or searching for examples of the writing form on the web are.

[1] https://notes.osteele.com/gpt-experiments/using-chatgpt-to-p... [2] https://notes.osteele.com/gpt-experiments/chatgpt-code-expla... [3] https://notes.osteele.com/gpt-experiments/discussing-an-ardu...

Same. It seems similar to Copilot in that regard, but better at text-to-code, porting between languages or frameworks, and generating test cases and readmes: https://notes.osteele.com/gpt-experiments/using-chatgpt-to-p...
In the case of non-shortening modifiers such as the OP, this can be fixed by using a reversible encoding. (This doesn't address actual shorteners, because of the pigeon-hole principle.) https://blog.osteele.com/2006/04/wideurl/ does this, so even though the referenced service itself is down, encoded URLs can be decoded by hand.

My hosting provider took the service down, IMO justifiably, because it could be used to encode malicious URLs. 2006 was a different time, before it was as obvious that services such as this would be used for this.

Ted Selker's description of the invention of the TrackPoint, as told to Bill Buxton, goes into a lot more detail about the path to product and the technical challenges overcome. https://www.microsoft.com/buxtoncollection/detail.aspx?id=60
Re:Interactive piano reference to major and minor scales on Friday January 14, 2022 @11:06PM (#29943427)
This looks really nice. Here's something I wrote when I starting learning music theory. It ended up sort of cluttered; I like yours better. But please feel free to take any ideas from it that you think might be useful.

https://osteele.github.io/fingerboard/

Figures 1, 7, 17, 18, 19, 22, 24, and 29 from the web page are not sets as circles. The paper contains additional counterexamples.
Hospital capacity is one motivation for flattening the curve. The other is to move infections later in time, when there will be more effective treatments and therefore lower rates of fatality and permanent disability.
Re:MessagePack: like JSON, but fast and small on Tuesday March 10, 2020 @04:58PM (#22539608)
ArduinoJson https://arduinojson.org supports MessagePack. I haven't looked at its static or runtime memory requirements.
Re:Life and Death in a Wuhan Coronavirus ICU on Saturday February 08, 2020 @06:20AM (#22275216)
Interestingly the article under discussion here begins “WUHAN (CAIXIN GLOBAL)”, ends “This story was originally published by Caixin Global”, and links to the original publication https://www.caixinglobal.com/2020-02-06/reporters-notebook-w...
iMovie, Adobe Premier, Final Cut Pro, and Screenflow (screen casting software) all have chromakey.

The Zoom app, and the Logitech C922, each have live background replacement ("virtual green screen").

For post-production without a physical green screen, you can use a green rectangle as your virtual background in Zoom or with the Logitech, import into iMovie etc., and chromakey there.

Re:How might the coronavirus change our world? on Wednesday February 05, 2020 @10:28PM (#22253211)
"The drone project involves young tech enthusiasts from the Jinkui Community Youth Science and Technology Innovation Center. Every day — for two hours in the morning and two hours in the afternoon — youngsters wearing masks and gloves fly drones to patrol the community.

The drones carry loudspeakers which announce: “Please stay at home as much as possible. If you have to go out, don’t forget to wear a mask.”

The drones can also scan car plates and record which vehicles have entered the community.

The drones are also equipped with thermal scanners which can measure the temperatures of people idling in the community.

Those found with normal temperatures will be encouraged to return home. Officials will be alerted of people found with fever."

https://www.shine.cn/news/metro/2002051335/

Re:How might the coronavirus change our world? on Wednesday February 05, 2020 @10:21PM (#22253181)
At Starbucks they used the IR on my neck instead of my forehead. I was wondering if that was why.

I don't know if many people try to game the systems here the same way they do in my home country (the U.S.). So far as I can tell as an outsider, the spirit is "we're in it together" and "let's do our part to keep each other healthy". This one of the countries where in normal times people wear face masks when they're sick in order to prevent infecting other people.

Re:How might the coronavirus change our world? on Wednesday February 05, 2020 @10:16PM (#22253160)
Yes, there was a famous incident a couple of weeks ago. [1]

I remember reading in the local paper that you have to register with the pharmacy in order to buy fever medicine but I can't find an online source now and I haven't been into a pharmacy to observe it myself.

[1]: https://www.businessinsider.com/wuhan-coronavirus-woman-avoi...

Re:How might the coronavirus change our world? on Wednesday February 05, 2020 @09:29PM (#22252963)
In Shanghai (pop. 24M), IR scanning is also required to drive into the city and to enter the subway. The paper says that anyone with a high temperature is held in a quarantine area for hospital pickup.

In my district at least, an IR scan is also required to enter shopping malls, and at least some apartment complexes (including mine).

This morning the nearest Starbucks started requiring IR scan.

In Shanghai (at least, Pudong and Puxi), mask usage has jumped dramatically since last week. I haven't actually kept score, but my impressions of usage from walking around a lot are:

- Summer/spring (lower pollution — Chinese AQI around 60–100, with spikes to 150): 5-10% of people wear masks outdoors. The indoor rate is lower (2-3%?).

- December/early January (AQI typically above 120): 20-30% outdoors. The indoor rate is much lower.

- As of January 23/24: 80-90% outdoors. The indoor rate is at least as high. This time period includes a couple of anomalously low-pollution days (AQI 30 — the lowest I've ever seen in Shanghai), when I might otherwise expect mask usage to be even lower than that 20–30% from before the Wuhan events escalated.

This is just people walking around and shopping. As of a few days ago, some businesses, such as Starbucks and Didi (Chinese Uber/Lyft), require employees to wear respirators (and they've messaged to customers on WeChat and in the Chinese Starbucks and Didi apps).

This seems to be the default for web apps here in China, such as Taobao or JD. Either the home page or the login page presents a QR code, and the mobile app has a scan icon.
See also Maciej Cegłowski's “Benjamin Button Reviews The New MacBook Pro” https://blog.pinboard.in/2016/10/benjamin_button_reviews_the...
Re:Emperor Akihito of Japan is a published marine biologist on Tuesday October 02, 2018 @05:10PM (#18125730)
Related: U.S. President James Garfield constructed an original proof of the Pythagorean Theorem.

https://www.maa.org/press/periodicals/convergence/mathematic...

https://blogs.scientificamerican.com/observations/presidenti...

Re:Creating a Faster Jekyll on Friday September 28, 2018 @06:26PM (#18097568)
(I'm not the OP, but I had a similar experience.)

At one point I tried switching to Hugo. I ended up moving back because I liked Liquid more than Go templates, and I liked the Jekyll plugins and ecosystem.*

Later I became frustrated with some complicated Jekyll sites that took 20 seconds to generate, so I ported Liquid, Jekyll, and some of the plugins, to Go.† This ran about twenty times faster.††

So that's kind of an apples-to-apples performance comparison between Jekyll (in Ruby) and Jekyll-like (in Go).

These days all my sites are simple, and I think Jekyll may have gotten faster too, so I've moved back to the Ruby implementation.

---

* YMMV. Many people are very happy with Hugo. Moving back to Jekyll was just my personal journey, not something I can defend with facts or figures.

† To be honest, at least as important was that I was looking for a Go learning project.

†† Presumably because (1) Go is a compiled language, and (2) goroutines.

This is great!

A suggestion: show pitch constellations[1]. Piano/violin music theorists have written me that these were helpful in [2]. (I'd offer you code, but it's so ancient that it's probably not helpful :-( )

[1] https://en.wikipedia.org/wiki/Chromatic_circle#Pitch_constel...

[2] http://osteele.github.io/fingerboard/

Re:Show HN: Interactive guitar scales diagrams on Sunday June 10, 2018 @05:46PM (#17280336)
Here’s a thing like this I made for violin/viola/cello scales, when I was learning music theory a few years ago.

http://osteele.github.io/fingerboard/

Older »