Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rav
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
rav
3y ago
Requirements for the Seating Chart Optimizer I made for planning my wedding party: * 120 guests: 49 couples and 22 singles * To be seated at 11-ish tables of 8, 10, 12 people each (by combining 4- and 6-person tables) * Couples must be seat
62.
▲
by
rav
3y ago
> can have shared state for database connections but the main interpreter is not a separate process but simply a function call. > It would have to be multithreaded, it could communicate with nginx via domain socket as php-fpm does. If
63.
▲
by
rav
3y ago
Lots of comments about iterating over children being O(N) for this style of trees. It's actually easy to generalize the atree design by e.g. adding pointers for "first child" and "next sibling" and potentially remov
64.
▲
by
rav
3y ago
Alternatively, keep it in the JSON/JSONB column until you need to search/filter/query on it, in which case you pull it out into a column.
65.
▲
by
rav
3y ago
> the users we interacted with (that usually had no say in whether our solution was bought to them or our competitors') were happier and recommended to their managers (where they could) buying more stuff from us And then the happy u
66.
▲
by
rav
3y ago
Three bookmarklets I made for my bookmarks toolbar: "Don't mess with paste" - for when signup forms expect you to hand-type your email address twice. javascript:void ["contextmenu","copy","paste"
67.
▲
by
rav
3y ago
> I'm having a production problem at work right now in which some tasks just get stuck. To mitigate this kind of problem, at my company we use a library [1] that allows regularly logging which tasks are running and what file/li
68.
▲
by
rav
3y ago
It's fine advice - if you can type check your queries. My colleague wrote a mypy plugin for parsing SQL statements and doing type checking against a database schema file, which helps to identify typos and type errors early: https:
69.
▲
by
rav
3y ago
One important source of non-determinism is from using massive parallelism together with floating point arithmetic. In real math, a sum of numbers has an exact value that doesn't change if you change which order the numbers are added up
70.
▲
Show HN: Live spectrogram – helpful desktop notifications in noisy surroundings
(github.com)
1 points
by
rav
3y ago
|
0 comments
71.
▲
by
rav
3y ago
Looking at the CSS on the blog, there's some "@media (prefers-color-scheme: dark)" directives that change certain colors when dark mode is enabled - but at the same time, links are made white unconditionally. Probably the aut
72.
▲
by
rav
3y ago
> i wonder if you could implement the ide functionality you want with a 'wrap' menu of popular functions that are applicable to the thing to the left of your cursor This is already implemented in IntelliJ for Java - they call i
73.
▲
by
rav
3y ago
Sweden using Ø for 0 is so insensitive towards their fellow Scandic neighbors to the west! Such a Swedish thing to do.
74.
▲
by
rav
3y ago
I have missed Google Code Search, which launched in 2006 and was discontinued in 2013. Similar to GitHub's code search, it supported searching by regex and filtering by language etc. - but obviously the amount of code to search through
75.
▲
by
rav
3y ago
For me, the best part is the pun in the subtitle: "Logan-Nolan Industries - Helping Humanity Make Ends Meat"
76.
▲
by
rav
4y ago
Yes, spreadsheets are definitely programming. I use spreadsheets to implement GUI applications for specific administrative/planning tasks, for example: - At work I'm tasked with grouping 40 administrative areas into larger geograp
77.
▲
by
rav
4y ago
Prompt: What's your favorite rock band? Normal response: As an AI language model, I don't have personal preferences or emotions, so I don't have a favorite rock band. However, I can provide information about different rock ba
78.
▲
by
rav
4y ago
You can start a REPL with `isympy -I`, which is an IPython REPL but with some preprocessing magic that wraps any unknown variable into a sympy symbol and any integer into a sympy integer, which makes it closer to Mathematica: In [1]:
79.
▲
by
rav
4y ago
It was announced in March 2022, so under a year ago. "DigitalOcean acquires CSS-Tricks", March 2022 on HN: https://news.ycombinator.com/item?id=30684594
80.
▲
by
rav
4y ago
That's incredible! Congratulations to the generous indeed. I played the old game many years back and was once also a monthly supporter, but these days I have less time to play, so I bought the Steam version primarily to support Bay 12.
81.
▲
by
rav
4y ago
Does it also work if the response code is changed to HTTP 204 No Content?
82.
▲
by
rav
4y ago
It makes me sad every time I try a Vim with a non-zero 'scrolloff' setting. Since I started using Vim I have learned to use H and L efficiently when navigating, but non-zero 'scrolloff' changes where H and L move the cur
83.
▲
by
rav
4y ago
If we negate the wording in the EULA: > non-interactive use of the Software that is not explicitly invoked by an individual ...then we get "use of the Software that is interactive or explicitly invoked by an individual". I woul
84.
▲
by
rav
4y ago
> Note that `sold` is still free-as-in-£ for use in CI/CD The relevant part of the EULA [1] states: > Individuals who use the Software only occasionally, or non-interactive use of the Software that is not explicitly invoked by an
85.
▲
by
rav
4y ago
Without reading the linked paper, I thought to myself "How would I ask ChatGPT to run an addition program?" So I tried the following prompt: > Imagine a finite state machine with two states A and B. The machine reads a long lis
86.
▲
by
rav
4y ago
crbug 462221 links to crbug 471738 [1] - in which they change it from a simple "is device enrolled?" check into something that can be controlled with some kind of policy (not sure about the specifics). I'm not a Googler but b
87.
▲
by
rav
4y ago
In my experience, it can be faster to figure out how to plug two computers together with a direct Ethernet cable and set up static networking and run netcat or a Python simple HTTP server to transfer such large amounts of data, than it is t
88.
▲
by
rav
4y ago
> Water hardness graph: Interesting graph, but I was missing some explanation. Here's the figure text, from [1]: "Water properties for various recipes, cities and bottles. The dashed line represents a 1:1 relation, and color li
89.
▲
by
rav
4y ago
"does the pixel at (0, 0) show the data from (−0.5, −0.5) to (0.5, 0.5), or from (0, 0) to (1, 1)?" - that's an interesting question, but it is independent of tile grids. You're right that the "ideal datasets"
90.
▲
by
rav
4y ago
Can you explain what you mean by "having used Lua a lot, the indexing issue just goes away"? Most modern languages have facilities (iterator combinators) that make indexing less common than e.g. in C, but in my experience, you can
More ›