Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nneonneo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
721.
▲
by
nneonneo
5y ago
This works, but it's (1) completely undiscoverable (how did you find out about this?), and (2) does not work for switching to a minimized window if the app has another unminimized window.
722.
▲
by
nneonneo
5y ago
Cmd+` switches between windows of the same app, and it's actually more convenient (IMHO) than using Alt+Tab to switch between every one of your windows from every app. There are also a handful of trackpad gestures for showing all the w
723.
▲
by
nneonneo
5y ago
For Python specifically, the colon is always used to introduce a block, which makes parsing somewhat easier as well as being consistent throughout the language. However, one could easily imagine a design where certain keywords automatically
724.
▲
by
nneonneo
5y ago
But it lets the app developers track engagement! How will the poor app developers know exactly which sites you choose to browse to otherwise? (/s, since that’s not obvious on the internet anymore)
725.
▲
by
nneonneo
5y ago
> The Arlington, Va.-based firm advertises on its website that it brings “a right-of-center perspective to solve marketing challenges” and can deploy field teams “anywhere in the country within 48 hours.” The firm itself seems to adverti
726.
▲
by
nneonneo
5y ago
> Python looks kludgy compared to modern Fortran or C I’m not sure I can agree with this. Both Python and Matlab provide very nice, high level ways to interact with multidimensional data using simple syntax. Under the hood, both will win
727.
▲
by
nneonneo
5y ago
Python should really have done this for 3.x. The breakage thanks to using the system default locale is hard to overstate - PYTHONIOENCODING winds up being a bit of a PITA for writing cross-platform code.
728.
▲
by
nneonneo
5y ago
Looks like it’s been updated. Currently showing 11 services down, some of which have been down for over an hour.
729.
▲
by
nneonneo
5y ago
Brotli, Zopfli, Guetzli, Butteraugli, ... Google's Zurich branch uses this particular naming scheme for their compression research projects.
730.
▲
by
nneonneo
5y ago
…and that’s how we end up with invasive species problems.
731.
▲
by
nneonneo
5y ago
》 <!-- tap '/' key 3 times quickly --> brings up the "QA ANSWER KEY" with plausible-looking multiple-choice answers. Given the link they provided for "Full MSAT Answer Sheet" this is almost certainly
732.
▲
by
nneonneo
5y ago
Neat hack! One minor improvement suggestion: if you seed the RNG with `__DATE__` (or a hash of that string), then you can replicate the one-puzzle-a-day experience with no need for an externally-supplied seed variable.
733.
▲
by
nneonneo
5y ago
For what it’s worth, Python does have an atomic add instruction, but because integers are immutable, the load/store operations to the global variable are unsynchronized (the add produces a new object which must be stored to the glob
734.
▲
by
nneonneo
5y ago
If you use C code that releases the GIL, you can see big speed ups with threads. A lot of C extension modules will drop the GIL. For instance, NumPy drops the GIL for many array operations, so threads can significantly speed up numeric work
735.
▲
by
nneonneo
5y ago
A bit more detail: there is an atomic addition bytecode, called INPLACE_ADD, which is why something like “a_list += [1]” is actually atomic. The problem is that integers are immutable, so “counter += 1” involves a (non-atomic) load and st
736.
▲
by
nneonneo
5y ago
This has real comments, white space, and meaningful variable names. It’s vanishingly unlikely to be decompiled C/C++ code in this case.
737.
▲
by
nneonneo
5y ago
I’m not sure whether to take this as a joke or not. Not using a Microsoft account requires using a terminal to kill a process? Is there seriously no other way? If so, I suspect that Microsoft have succeeded in their goal to get everyone to
738.
▲
by
nneonneo
5y ago
...and because it sounded easy, I went ahead and just did it: https://addons.mozilla.org/en-US/firefox/addon/override-text... The hardest part was doing all the UI bits, because I had to learn how to make a U
739.
▲
by
nneonneo
5y ago
It turned out to be pretty easy; I hacked one up in a few hours and got it published on AMO: https://addons.mozilla.org/en-US/firefox/addon/override-text... It's open-sourced on GitHub in case you'r
740.
▲
by
nneonneo
5y ago
I made one after seeing this discussion: https://addons.mozilla.org/en-US/firefox/addon/override-text... Feedback & bug reports welcome!
741.
▲
by
nneonneo
5y ago
After all the heated discussion here, I decided to make this into a plugin: https://addons.mozilla.org/en-US/firefox/addon/override-text... It's pretty bare-bones and probably has some bugs (after all, I
742.
▲
Override Text Encoding Extension for Firefox
(addons.mozilla.org)
1 points
by
nneonneo
5y ago
|
0 comments
743.
▲
by
nneonneo
5y ago
This feature should be replicable in a plugin: it just needs to inject an appropriate Content-Type header into a response (similarly to how user-agent extensions override the User-Agent headers in requests). A fancier plugin could even reme
744.
▲
by
nneonneo
5y ago
This person makes a decision supported by reasonable evidence and argumentation, confirmed through discussion with other members of the organization and wider community, and shipped after a thorough review (all happening in the open on a bu
745.
▲
by
nneonneo
5y ago
Per https://hsivonen.fi/encoding-telemetry/ , it looks like they run a special encoding detector on .jp sites, which is presumably designed specifically to choose between the various Japanese encodings (Shift-JIS, EUC-J
746.
▲
by
nneonneo
5y ago
`innerText` doesn't include the RTL marker, probably due to the fact that it is supposed to reflect the "rendered" appearance of the element (i.e. deleting certain invisible characters). However, `textContent` shows the RTL m
747.
▲
by
nneonneo
5y ago
Funny, access to healthcare and education don’t seem to be big deals in most of the developed world. I wonder why the US needs to be an exception? I don’t think the answer is financialization and globalization, but rather the aggressive pri
748.
▲
by
nneonneo
5y ago
A sufficiently determined user (and these are often national governments) could easily target a phone they control. With sufficient monitoring and logging they could grab the exploit directly. The only thing stopping them is whatever contra
749.
▲
by
nneonneo
5y ago
Ah, I have fond memories of hacking on that architecture for DEF CON. We wrote a lot of tools for it: by the end (less than 3 days after getting the spec), we had disassemblers, debuggers, binary rewriters, and even rudimentary decompilatio
750.
▲
by
nneonneo
5y ago
Eh, it’s about 1.7 billion operations. I suspect you could churn through those pretty fast in a language like C or Rust.
More ›