Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cjbillington
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
cjbillington
7y ago
To interactively inspect within a function, you could use the debugger with `breakpoint()`. But it's not a regular Python interpreter, which annoys me having to learn the different syntax. You can also embed IPython interactively with:
32.
▲
by
cjbillington
7y ago
Is there any plan or agreement for how national borders should respond to plate tectonics? I guess one answer could be "they don't" and it would be possible for a town to gradually move into a different country, or a country
33.
▲
by
cjbillington
7y ago
The interpretation I've heard is that the dividend is the rent. You can rent it to someone else for a few percent of its value per annum (which definitely looks like an investment), but even if you don't, it's still paying th
34.
▲
by
cjbillington
7y ago
FWIW I see your website as the first results when I google it: https://imgur.com/a/jhx7N9D
35.
▲
by
cjbillington
7y ago
I don't think it's super relevant who is at fault, I care what the consequences are. "It's ok if I get into an accident - it will be the other guy's fault" is only the right reasoning if you're talking on
36.
▲
by
cjbillington
7y ago
I've found myself defining `native_str = bytes if PY2 else str` (with `if PY2: str = unicode` at the top of the file, as in all my py2/py3 polyglot code) because there are some things that need bytes on Python 2 and unicode on Pyt
37.
▲
by
cjbillington
7y ago
Similar, but GPT-2 is better at text prediction than the Markov chains used on your phone.
38.
▲
by
cjbillington
7y ago
pacman-static existed already, and can be used to fix some of the most broken systems in a variety of circumstances. So, they didn't make it just for this, might as well mention it as the right tool to fix the problem should it occur.
39.
▲
by
cjbillington
7y ago
The problem with this is that pip will install dependencies of the package you're installing, not knowing (or caring) that those dependencies are already available in the conda repositories. Later, conda may install a different version
40.
▲
by
cjbillington
8y ago
Now that would be how to to show people you mean it. By making themselves liable to being forked, they would be convincingly committing to doing a better job than anyone else as judged by the community.
41.
▲
by
cjbillington
9y ago
With the HFCS, maybe you have moderate fructose malabsorption. Something like 30% of people do, and reducing or eliminating fructose helps them.
42.
▲
by
cjbillington
9y ago
Making something illegal does create incentives against it, and if stealing cars weren't illegal I'm sure we'd see much more of it.
43.
▲
by
cjbillington
9y ago
Well, often there are multiple ways of using numpy operations to do what you want, so it's good to have an idea of what numpy is doing under the hood so you can use the right functionality for the job at hand. For example, np.einsum fo
44.
▲
by
cjbillington
9y ago
I'm still not sold personally—it seems like the in-memory persistence is only useful for the intermediate case where my data is slow enough to generate/obtain that I don't want to run the code every time to do so, but fast en
45.
▲
by
cjbillington
9y ago
I'm not sure it's quite as wrong as you say though. If the reason the life expectancy of a 65 year old is higher is that they are post-selected for not having died earlier, then it's the case that there were a bunch of people
46.
▲
by
cjbillington
9y ago
The example has sine of a vector in it. I haven't had coffee yet today but I've never heard of being able to compute sine of a vector. What does this mean? Defining it by its Taylor series doesn't work like it does for square
47.
▲
by
cjbillington
9y ago
Oh wow, thanks for this. That subreddit was at least an hour of fun.
48.
▲
Show HN: Detailed Git status icons in Nautilus
(github.com)
1 points
by
cjbillington
9y ago
|
0 comments
49.
▲
by
cjbillington
9y ago
Perhaps your coworker googled about backpacks after the conversation, and facebook knows you spent some time together just before that and put two and two together so to speak. I'm sure most of the time their algorithms make guesses li
50.
▲
by
cjbillington
9y ago
But the article says: > Among people who smoke, the effect appeared to be synergistic, with B6 usage increasing risk threefold. The risk was even worse among smokers taking B12. Using more than 55 micrograms daily appeared to almost quad
51.
▲
by
cjbillington
9y ago
Well, if you rewrite in C, you're not using the language whose semantics make it difficult to execute quickly - you're using C. One of the great things about Python is the (relative) ease of interfacing with code written in anothe
52.
▲
by
cjbillington
9y ago
Note that Python does do multithreading - just the actual Python interpreter will not interpret Python code from two threads at once. If threads are busy running code that doesn't require the interpreter, whether it is CPU bound work o
53.
▲
by
cjbillington
9y ago
Yeah, these up and down arrows are a bit of a disappointment. I have a Dell XPS which has the same half-height keys for up and down. I hit the wrong one all the time. Guess I should enable system-wide vim or emacs bindings or something.
54.
▲
by
cjbillington
9y ago
I work in a lab with vacuum systems that get heated and cooled and we just have segments of flexible bellows like this: http://www.pchemlabs.com/subcatagoryb.asp?pid=flexible-bello... Not sure if the same thing will work at
55.
▲
by
cjbillington
9y ago
Yeah but you'll notice , and resume the simulation from a previous checkpoint or something. The risk is with errors that you don't notice, but that nonetheless change the outcome in a meaningful way. That seems to me to actually
56.
▲
by
cjbillington
9y ago
Looking forward to CPUs getting on-die FPGAs so we can actually chuck some fully deterministic timing tasks onto them. Even if you're running on metal without an OS, there are heaps of things that can stop your code from running with p
57.
▲
by
cjbillington
9y ago
Eh. Case studies is still data. And the theoretical physicists that don't use data are criticised as not really doing science. Most theorists I know (I am in physics) are heavily data-driven.
58.
▲
by
cjbillington
9y ago
Could not recent trends (not this one specifically) be construed that way? For example, you can now run bash on Windows. What if Microsoft introduces extensions to bash that bash script writers would be tempted to use if they were targeting
59.
▲
by
cjbillington
9y ago
Sure but you'd wanna duct tape the phone to the camera so you don't have to hold two devices simultaneously. I can see the merits of putting android in the actual camera.
60.
▲
by
cjbillington
9y ago
What's the deal with the dell xps 15 and precision 5520 laptops then? They're 15 inch but they're still pretty thin and light (1.78kg for the precision 5520), but you can get them with 32 GB of RAM and their battery life appa
More ›