Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
geocar
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
86 ms
·
871.
▲
by
geocar
7y ago
What kind of persisted settings? Surely those things should live in the application, no? Other things like blog gadgets to choose different themes (or whatever) probably should live in the URL to facilitate bug reports! I think Internet use
872.
▲
by
geocar
7y ago
Don't browsers have media queries for things like that? I think some old browsers didn't, so I guess that's why there are all those tacky switches on blogs these days, but I don't usually worry about obsolete things like
873.
▲
by
geocar
7y ago
I'd recommend just putting this crap in the URL. That way (a) the server could see it too, and (b) users could share their state by sharing the URL (which makes supporting them easier!). If you've got so much state this doesn'
874.
▲
by
geocar
7y ago
I've done something similar with Google Sheets and a sprinkling of JS automation. This works well because Google Sheets is pretty good and I can embed Google Sheets in an iframe. A server-to-server POST message sends the (relevant) cel
875.
▲
by
geocar
7y ago
Seaside[1] and (IIRC) arc[2] both do this too. My understanding was that __ViewState was intended to be encrypted in production by setting something in machine.config[3]. [1]: https://en.wikipedia.org/wiki/Seaside_(soft
876.
▲
by
geocar
7y ago
Just because you make the donuts doesn't necessarily mean you're responsible for Dunkin' Donuts revenue: If I (management) can hire someone else to make as many donuts as you for less, then of course I will. That means you ha
877.
▲
by
geocar
7y ago
In the private sector, your salary comes from revenue, and your ability to negotiate your salary, that is, your leverage, comes from the impact you can have on that revenue. In government, your salary comes from taxes, or absent sufficient
878.
▲
by
geocar
7y ago
Of course these are "ok", but it's not because there's "80 lines of narrative". Sometimes there's only one or two. Sometimes there's none. What makes this "ok" is that it's clear that t
879.
▲
by
geocar
7y ago
I'm in 100% agreement. Literate programs can be a real treat, but I also think to add: So can any code. Reading someone's code feels like peering into another persons head, trying to imagine both what they must have been imagini
880.
▲
by
geocar
7y ago
Knuth's approach to code is quite remarkable and also rather unique. Here's one of his most famous programs in source code form: http://anorien.csc.warwick.ac.uk/mirrors/CTAN/systems/knuth/...
881.
▲
by
geocar
7y ago
I would love to have a mechanical naming czar! I'm aware of https://hoogle.haskell.org/ which is kindof like that: You give it a type description and it tells you all the functions that have that type. Unfortunately, i
882.
▲
by
geocar
7y ago
Okay. Let's look at some Knuth! https://github.com/wkoszek/cweb/blob/master/cweave.w#L382 https://github.com/wkoszek/cweb/blob/master/examples/oemacs.... No
883.
▲
by
geocar
7y ago
> Contrary to parent comment I found it absolutely unacceptable to call a function "asm". You can take your snark up with GCC, and leave me out of it: https://gcc.gnu.org/onlinedocs/gcc/Global-Register
884.
▲
by
geocar
7y ago
Why does it matter what things are called if the name of the thing might be a lie anyway? I'm going to have to check what it does anyway! I've adopted what I call the square rule (I've never heard it called anything else)
885.
▲
by
geocar
7y ago
I did something like this as a joke at a company I used to work for. Asterisk, a lot of wacky perl, and CMUSphinx. You'd pick up one of the rotary phones in the office[1] and say "operator", wait for a chirp, then you could e
886.
▲
by
geocar
7y ago
That's NHS non-emergency issues in the UK, and I presume that would have been a factor.
887.
▲
by
geocar
7y ago
> the author is very vague about why exactly numbers don't fit in the type system Numbers are hard! Consider something simple: 9999999999999999.0 - 9999999999999998.0 In discussing what is Right™ we are making a choice betw
888.
▲
Meaningful Availability [pdf]
(usenix.org)
30 points
by
geocar
7y ago
|
0 comments
889.
▲
by
geocar
7y ago
Well that was disappointing. Anyway, good luck with things.
890.
▲
by
geocar
7y ago
> I can read the C++ (not C), though, and improve it, Can you give an example of some improvements you see that are directly obvious from the C code? I'm especially interested in a process that reveals the sqrt optimisation. > wh
891.
▲
by
geocar
7y ago
Quite right! So a 1+ is needed. I can't amend my comment to that point, but the original comment didn't have +1 in there anyway.
892.
▲
by
geocar
7y ago
> The summary description matches the current correct code. So it could not possibly match any incorrect code. Incorrect. Here's the summary reproduced (in case susam edits again): >>> There are 500 doors numbered 1, 2, ...
893.
▲
by
geocar
7y ago
You can try that, but it produces the wrong answer: "where" is still zero-based. You would also need 1+ i.e. q)1+where mod[;2] sum 0=(1_til 500) mod/: til 500 1 4 9 16 25 36 49 64 81 100 121 144 169 196 225 256 289
894.
▲
by
geocar
7y ago
484 wasn't returned by the code susam originally posted. Isn’t it funny how a python one liner required two edits to produce the correct result? (The summary description still matches the old incorrect code)
895.
▲
by
geocar
7y ago
That's incorrect. Room 484 stays open. Edit: I see you've updated your code susam.
896.
▲
by
geocar
7y ago
This problem has a nice array solution: q)where mod[;2] sum 0=til[500] mod/: til[500] 0 1 4 9 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 400 441 484 q){x*x} til ceiling sqrt 500 0 1 4 9 16 25 36 49 64
897.
▲
by
geocar
7y ago
> I'm talking about providing a the DNS server list to update the client's resolv.conf, not updating the DNS server's host entries dynamically from the clients. Why? This isn't what anyone else is talking about.
898.
▲
by
geocar
7y ago
Wow. You would choose a failure rate of nonzero over a failure rate of zero and threaten a coworker with an HR trip for disagreeing with you? I'm so glad I don't work with you.
899.
▲
by
geocar
7y ago
If someone can change your IP addresses on you, I have news for you: you’re not on the Internet but on someone else’s network who is on the Internet. I got my addresses from ARIN so my host numbers only ever changed when I thought it was co
900.
▲
by
geocar
7y ago
These are Internet hosts. You don’t run dhcp and update your dns from a client supplied unauthenticated field unless you’ve got no idea what you’re doing.
More ›