Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tlocke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
tlocke
5y ago
You're right that energy ultimately dissipates as heat, but the important thing is what the energy achieves in between hitting the earth as sunlight and then heading off into space as infrared. If you put a solar panel in place to turn
92.
▲
by
tlocke
5y ago
One big problem with MS-Office is that it defaults to proprietary formats (xlsx, docx and the like) but LibreOffice defaults to Open Document Format. So with LibreOffice you can avoid getting locked in to a particular office suite.
93.
▲
by
tlocke
5y ago
My feeling is that I want anything that could change the meaning of the code to be down to me making a manual edit. So I'm quite happy for the Black formatter to automatically rewrite my code as it never changes its meaning. For anythi
94.
▲
by
tlocke
5y ago
Flake8 Alphabetize will just give you warnings about import order, whereas isort will actually change the code itself. So as I see it there are two types of tool, formatters and checkers. A formatter doesn't alter the Abstract Syntax T
95.
▲
by
tlocke
5y ago
I think you mean Flake8 rather than Sense8? Anyway, gives me a chance to plug Flake8 Alphabetize, a Flake8 plugin for import ordering https://github.com/tlocke/flake8-alphabetize
96.
▲
by
tlocke
5y ago
Perhaps we've got it the wrong way round, and rather than asking how Open Source contributors can be paid more, what about asking how everything can be cheaper? This is in fact what's happening as Open Source is deflationary. It&#
97.
▲
by
tlocke
5y ago
I'm glad you mentioned StreetComplete, I'm a great fan of it. For those that don't know it's an Open Source Android app that shows OpenStreetmap with pins in showing where information is needed. For example tapping a pin
98.
▲
by
tlocke
5y ago
If cost were the only thing you cared about, then no nuclear power stations would ever be built, they're simply much more expensive than gas, wind or solar. From an environmental point of view you wouldn't have nuclear either, the
99.
▲
by
tlocke
5y ago
Baseload isn't really relevant when talking about meeting demand. What's important is that for any point in time all the energy sources added up are equal to the demand. System operators will use the cheapest source first, which i
100.
▲
by
tlocke
5y ago
I maintain pg8000, and it has two APIs: the standard DB-API 2 accessed with pg8000.dbapi and its own native API at pg8000.native. The native API is a lot simpler, and so I'd use that if you can. The native API is really my suggestion f
101.
▲
by
tlocke
6y ago
This is true. I'm the maintainer of pg8000, a Python driver for PostgreSQL. Here are the docs for how you'd do this using pg8000: https://github.com/tlocke/pg8000#copy-from-and-to-a-file The standard API for
102.
▲
by
tlocke
6y ago
I've sometimes wondered what a hypothetical super-intelligent being could program using a BBC Micro. Perhaps they could exploit the resonances of the circuits to perform analogue computation? I heard that evolutionary algorithms someti
103.
▲
by
tlocke
6y ago
As an Open Source maintainer, I feel ambivalent about the issues filed against projects I maintain. While a particular issue may seem to be written with a sense of entitlement, it nevertheless often tells me something useful. I'd much
104.
▲
by
tlocke
6y ago
In a URL, say https://www.example.com/ a particular location is specified for the content. In contrast, with a decentralized system a hash of the content would be used to find the actual content, so-called content-addressab
105.
▲
by
tlocke
6y ago
> Seriously. What's the point of open source if companies just steal it, build billion dollar industries on top, and then lock everything down? I work on pg8000 https://github.com/tlocke/pg8000 which is used by
106.
▲
by
tlocke
6y ago
Okay, let's go with your figure of 0.1% of the cost of the worker. My point is that if society were to switch to Open Source software that 0.1% is compounded because all the other goods and services that a business has to buy become ch
107.
▲
by
tlocke
6y ago
Is that true? I can buy a blank laptop for £215 ( https://www.pcspecialist.co.uk/notebooks/gemini-IV/ ) and then install Debian for free. The same laptop with Microsoft Windows / Office costs £352. So I'd
108.
▲
by
tlocke
6y ago
Perhaps the problem is the reverse: The more things that aren't free, the more money people need. By expanding the amount of free things, that reduces the amount of money required to produce new free things. Put another way, if 's
109.
▲
by
tlocke
6y ago
See Zish for an improved JSON: https://github.com/tlocke/zish It has timestamps and decimals. Full disclosure, I am the author.
110.
▲
by
tlocke
7y ago
For Python projects I use the excellent Versioneer: https://github.com/warner/python-versioneer It means you only specify the version as a git tag, and all the other things that need a version number get it from that.
111.
▲
by
tlocke
7y ago
Isn't it true that you can avoid vendor lock-in with Open Source because you have a choice of companies that will support it? For example with PostgreSQL there are a variety of companies that provide support.
112.
▲
by
tlocke
7y ago
A big problem with nuclear is expense. The figures from France are misleading because the state and the power companies are deeply entangled financially. A clearer view is possible in the UK because they have market system, and subsidies te
113.
▲
by
tlocke
8y ago
Surely it's a problem that in JSON, duplicate keys are allowed? https://stackoverflow.com/questions/21832701/does-json-synta...
114.
▲
by
tlocke
8y ago
Have you seen Zish? https://github.com/tlocke/zish It's designed to be an improvement on JSON, so it supports comments and has native timestamp, bytes and decimal types.
115.
▲
by
tlocke
8y ago
Zish https://github.com/tlocke/zish supports comments (but they're not round-trip comments) and also extra data types such as timestamp and bytes. It's still in its early stages, so if anyone's got any c
116.
▲
by
tlocke
8y ago
You might be interested in Zish https://github.com/tlocke/zish which has support for maps, timestamps, binary data and decimal types.
117.
▲
by
tlocke
9y ago
You might be interested in Zish: https://github.com/tlocke/zish It's a data serialization format with timestamp, bytes and decimal data types.
118.
▲
by
tlocke
9y ago
This is quite brilliant, thanks billpg. I'm also amazingly grateful that someone's taken an interest in Zish :-) These questions will all require some thought to properly understand and respond to, with no-doubt some changes to th
119.
▲
by
tlocke
9y ago
What about Zish? It's like JSON but with comments, a timestamp type, a decimal type and a bytes type: https://github.com/tlocke/zish (as the author, I'm biased)
120.
▲
by
tlocke
9y ago
Good point, so in your view Zish shouldn't have any comments at all? I don't think they're allowed in JSON either.
More ›