Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
slavik81
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
80 ms
·
901.
▲
by
slavik81
7y ago
A while back they added GPLv3 as an option for modules that used to only be available under the commercial license. They're listed here: https://doc.qt.io/qt-5/qtmodules.html#gpl-licensed-addons
902.
▲
by
slavik81
7y ago
In addition, the Hong Kong fuel tax on unleaded gasoline is roughly 2.95 USD per gallon.
903.
▲
by
slavik81
7y ago
> We have high gas taxes and drive more miles than most countries on the planet - where is that money going? A. You don't have high gas taxes. https://en.wikipedia.org/wiki/Fuel_tax#/media/File%3AFuel_
904.
▲
by
slavik81
7y ago
They're still quite noticable from certain angles. I was mildly disappointed when I noticed silver amalgam fillings on someone's top rear molars, because I had some there too. When the time came to replace those fillings, I was ha
905.
▲
by
slavik81
7y ago
The parent mentioned that: "as they can't fix [the URL appearance] without losing out on tracking, they're trying to change what the URL means."
906.
▲
by
slavik81
7y ago
Yes. You cannot be your own ancestor. A graph pointing from child to parent can split and merge, but never loop. Though, you may need a cyclic directed graph for fictional family trees and time travel paradoxes.
907.
▲
by
slavik81
7y ago
> I recently wanted to take a hierarchy of items and draw them in a nice tree structure. For example, a Family Tree. In general, a family tree is a directed acyclic graph. Branches of the tree will always join back together if you follow
908.
▲
by
slavik81
7y ago
> go back and ask your teachers what they felt they owe people asking them to design things unpaid, in their free time As an engineer, your first duty is to protect the public, then your client, then your employer. You have that duty to
909.
▲
by
slavik81
7y ago
Every open source project has a warranty disclaimer. It really doesn't tell you anything about how serious the project is.
910.
▲
by
slavik81
7y ago
That's part of it, but there's other reasons too. Promit[1] had a nice post that described four goals of the new generation of APIs: improving validation, reducing the complexity of the driver, allowing useful multi-threading, and
911.
▲
by
slavik81
7y ago
Choosing a tolerance is hard enough when you know the floating point model you're using, but it seems like an impossible task to try to support all possible floating point hardware. I couldn't tell you what guarantees you have whe
912.
▲
by
slavik81
7y ago
The default file encoding for Windows was changed to UTF-8 in Python 3.6. That particular problem on that particular platform is now a thing of the past. It was just an example of why implicit conversions in the standard library functions d
913.
▲
by
slavik81
7y ago
Note that you need to test on every platform, as the default file encoding may vary. I missed that bug in part because it worked correctly on Linux.
914.
▲
by
slavik81
7y ago
> in python if you open a file (without "b" option, the python will do the translation on the fly and you don't need to worry about it) Of course, if you don't know what encoding the file was opened with, you don'
915.
▲
by
slavik81
7y ago
That's not how copyright works. In your example, the human author did not copy anything, and are thus legally in the clear.
916.
▲
by
slavik81
7y ago
> I'm against the idea that people should be attached to "their" code I agree with this, but it goes both ways. The codebase belongs to the team, not any individual developer. Making changes for the sole purpose of making
917.
▲
by
slavik81
7y ago
I agree with you. To me, the action felt wrong when he described it. I wasn't sure why at first, but I think perhaps because the work was not in service to any actual task. If he was in charge of writing the next piece of functionality
918.
▲
by
slavik81
7y ago
I think there's three factors: 1. Your source of fame is one-dimensional. You're famous for a handful of achievements, they're unambiguously positive, and that's pretty much all that most of us remember. 2. Nobody percei
919.
▲
by
slavik81
7y ago
I screwed up the math. It's 28.6 days at the world record speed. I multiplied by 24 unnecessarily. Still a long time, but a lot more reasonable (and it agrees with your records).
920.
▲
by
slavik81
7y ago
Bash and Python are effectively the same age. Python is 30 years old and Bash is 31.
921.
▲
by
slavik81
7y ago
> there are ultra marathons where people walk 5000 km and [...] the world walking record is 175 km in 24 hours. Is that right? That's 685 days of continuous walking at the world record speed.
922.
▲
by
slavik81
7y ago
There's also a stand-alone designer you can use on individual ui files. In general, there's no need to have the whole project in Qt Creator just to edit a ui file. You can also edit the ui files in a normal text editor. They'
923.
▲
by
slavik81
7y ago
There are apps that filter all colours equally, but it's not nearly as good as reducing the backlight brightness would be. When 0-255 is remapped into 0-127 (or lower), you're inherently going to start losing the ability to distin
924.
▲
by
slavik81
7y ago
Why do you feel forced to use Qt Creator? I used Visual Studio for years, and these days I just use Vim. While Qt Creator is a great IDE, it has never felt necessary to me.
925.
▲
by
slavik81
7y ago
I only turn on night mode when the brightness on my Pixel is already at its minimum. It would be nice if I could turn the backlight even lower instead. In complete darkness, even the dimmest setting is unnecessarily bright. It seems like th
926.
▲
by
slavik81
7y ago
Additionally, shared ownership should be rare. Most objects should have a single owner that is responsible for them. This is not only better for performance, but also makes the system easier to understand.
927.
▲
by
slavik81
7y ago
As an aside, v = v + a * dt; p = p + v * dt; is typically more accurate. The first form is Forward Euler integration [1], while my suggestion is Semi-implicit Euler [2]. [1]: https://en.wikipedia.org/wiki/Euler
928.
▲
by
slavik81
7y ago
Just to elaborate, on a fresh Windows 7 install with en_CA locale, this was the behaviour: python3 -c 'print("é")' é python3 -c 'print("é")' > out.txt (UnicodeEncodeError) 'ascii
929.
▲
by
slavik81
7y ago
> Python 3 forces UTF-8 everywhere If only. My problems with Python 3 were due to things like crashing when piping stdout to a file because for some reason the Python-chosen encoding for that was ASCII-only. Another was discovering that
930.
▲
by
slavik81
7y ago
At least in Calgary, Uber was 2-3x the price of Car2Go. You could get halfway across town in 15 minutes, and pay ~$7 for the trip if you got one of the smart cars. It was great. Last time I checked Uber, it was $18 for the same trip.
More ›