Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xmcqdpt2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
541.
▲
by
xmcqdpt2
5y ago
Damn I thought I was alone! I get this about half the time too, although now I think I've identified a pattern: the second time I maximize in a given conversation always breaks down. The "fix" is to click on another conversat
542.
▲
by
xmcqdpt2
5y ago
In practice it's quite different. For example if you send money to a suspected terror group your bank will block the transaction and freeze the funds (that is, they don't even get you your money back), even in the absence of any c
543.
▲
by
xmcqdpt2
5y ago
Bold of you to assume you'll get the minimal privacy of a cubicle's partitions. The VR office is probably going to be open concept, like a bunch or chairs in a room.
544.
▲
by
xmcqdpt2
5y ago
I do amphetamines. Specifically 40 mg Vyvanse at around 6:30. I used to be unable to work until around 11 am after two coffees and 4 cigarettes. The ADHD prescription completely changed that. Maybe something to consider?
545.
▲
by
xmcqdpt2
5y ago
Well of course! They can't ask the A-team to do the actual work, they are much too busy... interviewing with new potential clients!
546.
▲
by
xmcqdpt2
5y ago
Uber has only ever posted one positive quarter (Q3 2020) and has gone back to net losses in Q4. It doesn't really make financial sense. Even the whole "they will be profitable once they have a monopoly" idea is overblown IMO.
547.
▲
by
xmcqdpt2
5y ago
If you are developing on Linux, rq + redis is probably the simplest message queueing system around. Redis can even be installed from pip, https://pypi.org/project/redis/ or run within python, https://gi
548.
▲
by
xmcqdpt2
5y ago
JPMC didn't have antitrust in the onboarding stuff? I find that difficult to believe. The bank I work for tells employees to never discuss products or prices with competitors without going through compliance. It's not really empha
549.
▲
by
xmcqdpt2
5y ago
Not that it entirely matters but the most likely scenario for a nuclear exchange would probably have most nukes used on hardened military targets. This is the main reason why MIRV weapons were invented. https://en.wikipedia.org&#
550.
▲
by
xmcqdpt2
5y ago
I wasn't sure. I googled it and it was in the Julia docs but I didn't look at the details to see if it is first-class. The fortran version is super neat, especially in conjunction with stack allocated multidimensional variable len
551.
▲
by
xmcqdpt2
5y ago
Luckily, Fortran allows easily changing from one to the other. You simply define arrays as A(1:10) or A(0:9) and they will index from 1 or 0. You can even do arbitrary indexing: fixed like A(-3:3) or dynamically like B(n1:n2). This may soun
552.
▲
by
xmcqdpt2
5y ago
Being employed by a crypto project is reportable conflict of interest, but not simple holdings. I privately asked one of the editor exactly that and was told that they don't consider it reportable CoI unless you own "a significant
553.
▲
Intel tells mobo makers to disable AVX-512 from Alder Lake CPUs via BIOS updates
(wccftech.com)
27 points
by
xmcqdpt2
5y ago
|
10 comments
554.
▲
by
xmcqdpt2
5y ago
That version doesn't work. It raises KeyError on the first iteration if the if statement is false. The point of the for / else is that the else only gets evaluated when the for terminates without a break. So in the example you on
555.
▲
by
xmcqdpt2
5y ago
for/else is actually super useful for searching through a sequence or for iterating with a possible failure. Something like, for i in range(n): if search(i) == val: break else: raise KeyError("not found
556.
▲
by
xmcqdpt2
5y ago
Yes I always comment on it for this reason, sometimes (if I know the code will be maintained by someone with less python experience) with a link to the standard doc. It's actually a super useful pattern for any kind of search iteration
557.
▲
by
xmcqdpt2
5y ago
I'm French from Québec and the usual expression here would be the Catholic inspired "I'm X-ing myself of it" where X is one of Christ (je m'en crisse), the Holy Chalice (je m'en câlice), the Tabernacle (je m&#x
558.
▲
by
xmcqdpt2
5y ago
The python formatter, I guess. https://github.com/psf/black
559.
▲
by
xmcqdpt2
5y ago
> Clean Room Technician: You know what they do with engineers when they turn forty? > [to Aaron, who shakes his head] > Clean Room Technician: They take them out and shoot them. Dialogue from the 2004 movie Primer.
560.
▲
by
xmcqdpt2
5y ago
You jest and yet... https://github.com/dephell/dephell Dephell is a converter for python packaging systems. It can turn poetry files into requirements.txt, or setuptools' setup.py into pipenv's Pipfile etc. P
561.
▲
by
xmcqdpt2
5y ago
>The paucity of open source LMS likely reflects the uneasy relation of the public sector with open source more broadly. You'd think its a marriage made in heaven: public funds, procurement etc leveraged optimally for common good inf
562.
▲
by
xmcqdpt2
5y ago
I'm being pedantic but, >Every distribution can be described as a curve. The width of this curve is known as its variance. Not every distribution has a variance. Some notable examples include the Cauchy distribution (or Lorentz line
563.
▲
by
xmcqdpt2
5y ago
That's in large part due to the garbage fire that is the python ML ecosystem... Python projects that are not ML are pretty stable IME.
564.
▲
by
xmcqdpt2
5y ago
Is the interest here that the molecule has a double bond in a three-membered ring? It's pretty strained but far from the weirdest cyclic systems. There are some cycloallenes with two sequential double bonds, https://pubs.rsc
565.
▲
by
xmcqdpt2
5y ago
>Github is testing the Copilot AI. How much longer before some architect tells an AI to stitch together code that fits some sort of functional spec. You should register for the Copilot beta. It's pretty eye opening. Basically it gen
566.
▲
by
xmcqdpt2
5y ago
This is my main issue with python. The whole GIL thing is basically necessary because of Python's heavily dynamic model, which is almost always used improperly. Mypy and other static analysis tools are becoming more common in part beca
567.
▲
by
xmcqdpt2
5y ago
In practice, for single-machine workloads, it's currently mostly numpy and/or whatever deep learning framework you use that does the number crunching. This means that provided the code is operating on sufficiently large amounts of
568.
▲
by
xmcqdpt2
5y ago
Not sure what you are talking about. Canada has a bunch of refineries, including in Alberta. Here is a list, https://www.oilsandsmagazine.com/projects/canadian-refinerie...
569.
▲
by
xmcqdpt2
5y ago
Edmonton is home to the second largest mall in North America https://en.m.wikipedia.org/wiki/West_Edmonton_Mall yet Edmonton itself is only the 33rd largest city in NA. As someone who grew up in a dull commuter suburb
570.
▲
by
xmcqdpt2
5y ago
and it does automatically add alt text on Twitter so it's better than screenshots.
More ›