Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ekimekim
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
91.
▲
by
ekimekim
4y ago
What I love about this is that it's a textbook example of a reflection DoS attack ( https://en.wikipedia.org/wiki/Denial-of-service_attack#Refle... ) - you send a message with a spoofed reply-to address, such that t
92.
▲
by
ekimekim
4y ago
Those...sound like reasonable things? Many students aren't going to learn by rote memorization of completing homework. It it helpful to support different learning styles. A big problem with math education is that it's too abstract
93.
▲
by
ekimekim
4y ago
To nitpick: Overstrikes/other combining characters and the multiple possible ways to represent the same glyph are aspects of Unicode, the character set which deals with code points from 0 to 0x10ffff. Whereas UTF-8 is a way of encoding
94.
▲
by
ekimekim
4y ago
My solution for this is a script that commits all my changes then tags the resulting commit with a basic descriptive name. Something like this: git discard bad-idea-didnt-work Which creates a tag discarded-bad-idea-didnt-work, then
95.
▲
by
ekimekim
4y ago
Flask has historically been used in combination with gevent/eventlet which are greenthreaded async frameworks that predate python's async/await support. These still work and are still a great choice for an async server with m
96.
▲
by
ekimekim
4y ago
Sure you can, but physically rolling back more cable takes a bit longer :P
97.
▲
by
ekimekim
4y ago
nitpick: `git commit -a` does not add untracked files: -a, --all Tell the command to automatically stage files that have been modified and deleted, but new files you have not told Git about are not affected.
98.
▲
by
ekimekim
4y ago
To add to sibling comments which describe various uses of `git add`, I'll also recommend `git commit -a`, which adds all changes from tracked files (but unlike `git add .`, not untracked files) before committing.
99.
▲
by
ekimekim
4y ago
There is value in "making a decision" for each untracked file, of whether to explicitly add it or ignore it. This combines well with things like a PS1 that indicates if you have any unclean state (including both changes and untrac
100.
▲
by
ekimekim
4y ago
This reminds me of how useful it is to make your ids include the type of the thing they're identifying as part of the value. This could be as simple as something like "u<random digits>" for users, "p<random digi
101.
▲
by
ekimekim
4y ago
> - They have a history of not paying off their debts. If only. In practice it's more like "They don't have a history of paying off their debts", which crucially means if you don't have a history of being in deb
102.
▲
by
ekimekim
4y ago
I stopped using ubuntu on my servers and in my containers the day I tried to install a package, and it "succeeded", but then at runtime the binary I thought I'd installed just printed "This is now provided by a snap pack
103.
▲
by
ekimekim
5y ago
Leo Szilard [1] is generally credited as coming up with the concept of a fission bomb. He enlisted the help of Einstein, who had political clout, to bring it to the attention of the US government [2]. [1] https://en.wikipedia.org
104.
▲
by
ekimekim
5y ago
One of the major reasons all these kinds of services use javascript is that it can be reliably sandboxed (it needs to be, so it can run in a browser without every random website getting control of your machine). While there's nothing i
105.
▲
by
ekimekim
5y ago
IMO looking at the root causes here isn't that helpful. Software is complicated and there will always be some unknown bottleneck or bug lurking to knock you over on a bad day. The important lessons here are about: * How their system ar
106.
▲
by
ekimekim
5y ago
I had similar feelings when I first saw it. My response was to focus on making things that you can't using GB Studio - pushing the hardware to its limits, playing with novel control/graphics schemes, doing things that make people
107.
▲
by
ekimekim
5y ago
> chorded typing allows the users to input several letters at the same time and have a computer program generate a predicted word. Instead of typing h e l l o, a chorded typer mashes h, e, l, and o to produce the word. It sounds like it
108.
▲
by
ekimekim
5y ago
About this section: > Unfortunately, as the ??? shows, the different output arrays have different lengths – a u16 would be 2 bytes and a u64 8 bytes – and so the Rust trait system at the time of this writing is (to my knowledge) not powe
109.
▲
by
ekimekim
5y ago
Python has always had the ability to do callbacks (ie. first class functions), though admittedly it's not a common pattern and the stdlib doesn't support it for IO (also its anonymous function syntax is poor). There have been seve
110.
▲
by
ekimekim
5y ago
Python assumes that all assignments assign to the current scope. So by default when you reach "x = 22", it would create a new variable called "x" in the inner_function() scope which overrides the variable "x" i
111.
▲
by
ekimekim
5y ago
> What standing would Facebook have to sue me for publishing a chrome extension? The standing of "actually none, but if you go to court to prove this you risk bankrupcy". Unless you have a major legal organization (like EFF) ba
112.
▲
by
ekimekim
5y ago
> expects you to implement such a Process as part of "lessons learned". I sometimes refer to this as "scar tissue" - an over-response to a trauma that causes ongoing issues more so than the initial injury.
113.
▲
by
ekimekim
5y ago
The Gameboy CPU is signifigantly less capable than a full z80. It's missing key features like the IX and IY registers (and thus addressing modes), most of the 16-bit ALU, the second set of "shadow" registers intended for inte
114.
▲
by
ekimekim
5y ago
I want to use alpine for my containers because it's a minimalist distro with a nice package manager with up-to-date packages. Reasons I don't like common alternatives: * ubuntu - Increasingly hostile to container usage (I tried to
115.
▲
by
ekimekim
5y ago
Personally I find it clearer in many cases to use a format string instead. ie. instead of writing: [(.number|tostring), .title] | join(" | ") I would write: "\(.number) | \(.title)" which IMO is more re
116.
▲
by
ekimekim
5y ago
The driver itself is HTTP, not HTTPS. They were saying they hoped that the HTTPS call which tells it where to download the driver also contained signatures so that the later HTTP request could be verified. spoilers: it does not. So you do
117.
▲
by
ekimekim
5y ago
The problem is that these apps come with a built-in doomsday. If they ever get popular enough to be meaningfully on the radar of the company whose app they're replacing, they'll be attacked both legally ("you're violatin
118.
▲
by
ekimekim
5y ago
This is also an argument for including your blood type, ethnicity (risk of certain genetic issues), and known allergies on your birth certificate. Is this meant to be a medical document, or a legal one? If medical, then it shouldn't be
119.
▲
by
ekimekim
5y ago
If you mean "representing values as a pair of integers P, Q, such that the value = P/Q", the answer is that they're very expensive to work with. You generally need to be using arbitrary-length integers for P and Q, becau
120.
▲
by
ekimekim
5y ago
The second half of the article is here: https://lwn.net/Articles/849876/
More ›