skysight-inc/HackerNews huggingface dataset:
Some tools I built at my last job:

1. Pronto [0]: An "ORM" that mapped a protobuf to an object in MongoDB. The idea was to extend it to other storage backends (RocksDB, sstable, sqlite, etc) to make it easy for a service owner to decide what access pattern they needed and easily and efficiently map a proto to it. It wasn't too slow and was very intuitive for people to use since it only exposed a LevelDB-like API (Get(key), Set(key, value), List(filter)) and it made use of some of the newer features of MongoDB's libraries to do sorts and streaming on the client side. Really lowered latency and DB size requirements.

2. bazel_compose [1]: A tool to wrap Bazel, rules_docker, ibazel, and docker-compose to give developers a fast, hermetic, and automatically rebuilding/restarting local environment for development. You could essentially go to `http://frontent-a.localhost` in your browser and get routed to the right frontend.

3. branchpoke [2]: When I joined we had ~300 open branches per developer. People would hack something, push it to git, and forget about it. Some branches had critical fixes that were deployed before getting into master. Lovely startup things ;). I wrote this to send everyone a slack message once a week about 10 branches they had open that were over a month old in our monorepo. Over a few months we deleted most of the old branches.

Stuff I built at college:

1. Parking Analysis [3]: My college had an awful parking situation. I setup a cron to hit an undocumented API grab the number of spots open in the parking lots. I graphed those with a heatmap to find when our parking lot filled up around different holidays.

2. Butcher School [4]: A website used to "study" (memorize) the ARRL exam question set. It used some regex to parse the .doc file that is published by ARRL into it's json so anyone can create an updated set of questions. It also ran in local storage so you could study without internet on your laptop (like in the car on your way to Dayton). I built this for students who were having a tough time joining the Amateur Radio Club at NJIT (I was the treasurer). It's not the best tool by any means. It's just the most free (price and libre).

[0] - https://github.com/CaperAi/pronto/

[1] - https://github.com/CaperAi/bazel_compose

[2] - https://github.com/CaperAi/branchpoke

[3] - https://github.com/gravypod/NJITParking/

[4] - https://github.com/gravypod/ButcherSchool
An attempt to allow code reuse for a subset of all of then.
Thanks, I wasn't aware of this disparity. I handwrite my CSS, been doing it for 21 years now.

If I was to use Bootstrap or Tailwind, I'd likely use @extend and @include to compose my own classes.

A long time ago, I read an article that stated, with authority, that Bootstrap was being misused. That class names like "font-weight-light mt-4 text-white" should instead have been replaced with "subtitle" with CSS:

.subtitle {
@extend .font-weight-light, .mt-4, .text-white
}

The article resonated with me. This approach avoids mixing HTML/CSS concerns and also avoids polluting the CSS namespace. Even if tree shaking and css pruning is applied, I believe this approach would win out in performance for having less classes. I would be wrong if there are tools that will run through HTML and CSS and transform the long bootstrap class attributes into consolidated, shared classes.

Global classes, like in Bootstrap, also violate web component encapsulation.

Global CSS classes are kind of like global variables in programming languages (like PHP.) Sure, they work and used to be common, but we've since moved on to closures and scope containment for performance and reliability.
This actually points out why Tesla not accepting bitcoin for environmental reasons is silly: 134.0 kg of CO2 per transaction about as much CO2 as a tank of gas. This is ridiculously inefficient, but it's a car; the energy inputs are already high.

The real issue is the interest Musk created when Tesla bought bitcoin a few months ago and how he grew a conscious suspiciously fast.
I'm pretty sure a "smart contract" isn't a legally-binding contract. A smart contract is a piece of software code, like a text editor or a web browser.
> I suspect replacing the MCU with discrete components would have resulted in a more expensive product if there was no shortage.

And what? Complexity, and BOM size are not a problem by themselves alone. You should not view it in isolation from the context.

This is exactly the thinking which led the client running into this — "Trying to save money at any cost"

The point I make is that they easily spent a multiple times the price of this panel entire production run as a punishment for that.

Blinkey leds, and an interlock in between few buttons is really an overkill for MCU, and should've been treated as such no matter how many cents can be saved.

You can save a few dollars on a screwdriver if you can put in screws with a hammer, but you are certainly better off not doing that.
Here I'm showing something I did some time ago https://meimporta.eu/htmleditor/ it's a crude WYSIWYG html editor for people that already knows HTML/CSS and uses basically the browser contenteditable capabilities. It was inpired by Webflow (https://webflow.com/) but very simple and basic, it has 4 main sections: editor shortcuts, wysiwyg editor, html editor, tree view. Some things are easy done in the wysiwyg editor but sometimes the raw html editor is better, we can edit in both of then and get instant result.

Don't bother comment on the UI/UX it's an personal naive tool straight to the point I needed. Anyway any feedback to improve is welcome.
Can you point to a distro that does this vs. using eudev? I mean, you might be right, but I haven't found any, and I think the reason for this is that there are subtler inter-dependencies that require additional workarounds:

> > Also, AFAIR the connection between systemd and udev doesn't really go deeper than the fact that they're sharing the same upstream tarball. It is still possible to build and use udev without systemd

> But that's not really the case operationally, and it's why eudev was forked away from it for Gentoo.

https://lwn.net/Articles/778547/
Are they double-counting the Ethereum tokens like Chainlink, Uniswap, etc? Ethereum hashing inherently includes ERC20 transactions. ERC20s are just state changes on the Ethereum blockchain and don't affect hashing use or non-use.
> alt-arrow to go back a word, alt+shift+arrow to select a word, etc. These don't work, and I'm too used to them to stop using.

Will sadly make it unusable for me. Thanks for saving me the time.
>and it has a build dependency on libsystemd

That does seem kind of unfortunate for anyone that wants to bootstrap a systemd-less distibution.
Exceptions are just as much goto as return is. They are just a jump up the stack.
Not really, because the entire premise of smart contracts is that the code IS the only representation of the contract. In normal software systems there’s an intent and then an implementation. There’s no explicit guarantee they are identical, which is exactly why there are subsystems to allow e.g. refunds or transaction invalidations.
> 'decentralized finance' will reinvent everything it tried to get rid off

Matt Levine wrote about exactly this in a recent Money Stuff column: https://www.bloomberg.com/news/newsletters/2021-05-11/money-... . First paragraph:

> A model that I often use for cryptocurrency is that it is rediscovering traditional finance: In its early days, crypto was a brand-new financial system, unsullied by the old evils of central banking, leverage, regulation, etc.; eventually people realized that some of those things were good, and started reinventing them. One way to reinvent finance is for idealistic crypto technologists to invent banking, leverage, regulation, etc., from first principles, with cursory or no knowledge of how the traditional financial system addressed these issues or why it rejected other solutions. You would expect this to lead to flawed but interesting results, whole new ways of doing things that might blow up horribly but that might instead point the way to a better future.
Would eth2.0 have a significantly higher txs/mwh? I have read 99% reduction in some places. Seems well positioned to top this list.
Crypto pen testers will become a thing; plenty of central banks are making noises about starting blockchains.
Yes, and I didn't read that sentence as disallowing other ways to autostart services either.
Bitcoin SV is a barely used esoteric fork of Bitcoin with a $5.5B market cap. It's a cash grab from a minority fork of BTC or BCH miners.
I have a feeling if this was as simple as you say, distro maintainers would be doing it.
Yeah, that's my question with all this. I mean, ransomware is obviously illegal. Finding vulnerabilities in smart contracts - well, "the code is the contract", so the hacker is just executing the code as it was published.

I mean, the whole reason Ethereum Classic exists is because a subset of Ether folks felt that restoring the funds in the original DAO hack was contrary to the whole "the code is the contract" ethos.
Post Office is a bad example as I understand it because from what I've heard it's being run by someone notorious for wanting it dead to clear the way for private sector competitors, and it is the single private organization in the United States required to pre-fund its pension fund.
F# Tutorial: How to Build a Full-Stack F# App (2019)
Of course it’s a valid metric. The whole point of this is that most crypto is not used to transact, but to speculate, and so a high price and therefore high carbon footprint with a low transaction throughput is often the whole point of these analyses.
Python 3 is better than python 2 and people will soon switch.
I built KubeTLS[1]. It automatically generates TLS Certificates for pods within your kubernetes cluster. It's a simple model for mTLS; The CA's scope is your cluster, and identity is the ServiceAccount of your pods.

It's not production ready and the libraries to do advanced authentication aren't there yet, but it gets past the initial hump of "I need to encrypt in-transit and not rely on my cloud provider's network links to be safe" (because they aren't)

[1] https://gitlab.com/gauntletwizard_net/kubetls
Combinators and the Story of Computation (2020)
But now they are box-shaped!
I have been working on an app to act like my short-term memory and to help me focus. Its called ScreenHint, and it’s loosely based on an unmaintained app called Snappu. It’s pretty unpolished still (I don’t even have a website figured out yet), but it’s been incredibly helpful to me so far. It’s for macOS and it’s free, and any feedback would be hugely appreciated.

https://apps.apple.com/us/app/screenhint/id1566621533?mt=12
Maybe we could create a system to adjudicate such failures? ;)
This looks really cool! Just added a reminder to check out in more detail when I get to a computer :)

Thank you for sharing.
Used Dbmate in my pet-project. Absolutely love it! Thank you!
For my site this is index.php

<!DOCTYPE html>
<html>

<head>
<link rel="stylesheet" href="../style.css">
<meta name="viewport" content="width=device-width">
</head>

<body>
<div class="main">
<?php
include "../Parsedown.php";
$pd=new Parsedown();
$mc=file_get_contents("../contentHeader.md");
echo $pd->text($mc);
$mc=file_get_contents("contentMain.md");
echo $pd->text($mc);
$mc=file_get_contents("../contentFooter.md");
echo $pd->text($mc);
?>
</div>
</body>

</html>

The rest is Parsedown.php, markdown content and some images. Arranged in a directory tree. An index and a contentMain.md in every directory.

After trying several "simple" Content Management Systems, this is where I arrived. I wish I did it 10 years ago.
It sounds like what you ran into are the effects of the general trend of doing more in early boot, as https://freedesktop.org/wiki/Software/systemd/separate-usr-i... elaborates on, which is independent of systemd
No, proof-of-stake has been live since December. The final remaining migration is The Merge, which is estimated to occur towards the end of this year, March 2022 at the absolute latest. For more info, see: https://ethmerge.com/
I'd also recommend TailwindUIKit [0]. 100+ free Vue, React and VanillaJS tailwind components with light and dark mode support as well accessibility.

I did end up paying for the premium components, as I wanted to support their efforts, and it was reasonably priced, but didn't feel like I had to.

0: https://tailwinduikit.com/
There’s been at least one smart contract with a “typo” of zero for O that allowed an “exit event”.
Yes should be about 1% of what it is now. This is is why I am investing hard in Ethereum right now while I still can.

I truly do not see Bitcoin sustaining much longer as the top coin.
The thing is, that's what a lot of smart contract proponents are pushing for. That the legal system has no say over contracts, so the outcome would stand. Or effectively bake into operating these contracts that the legal system isn't a reprieve against anything.
As a Bitcoin miner (https://toom.im), while I appreciate the work put into it, this particular metric of "transactions per kW" might not work the way you expect.

The main point that you should understand is that a PoW blockchain's energy usage is not proportional to its transactions.

I'll say that a different way: the transactions themselves do not use any energy in mining.

I'll say this in a third way: it takes exactly the same amount of energy to mine an empty block as it does a 1GB block of transactions, as it does a 1,000,000,000 PB block.

In reality, transactions are all hashed together in a mining pool into a single numeric hash before miners ever see them. It doesn't matter how many transactions are included in the hash. The hashpower just has to find a magic number matching that hash.

On the other hand, the #1 factor that increases a blockchain's energy usage is its price per coin. The price of a coin is how much that coin is worth to be mined, which is the incentive for miners to dump energy into mining it. In steady state, miners will dump energy into mining a coin until the cost of energy = the value of the coins coming out.

This is why you can see Bitcoin SV at the top of the list -- it's worth the least of the Bitcoins.

And it's also misleading to compute the second factor -- transactions per second -- by counting the actual transactions on the blockchain, rather than looking at the transaction capacity. Because blockchains only cost something per transaction once they reach capacity. This is misleading with Bitcoin SV, for instance, because that coin artificially creates bogus transactions on its blockchain in order to make it look popular and demonstrate the vision of large blockchains. Bitcoin Cash, on the other hand, can handle a thousands of transactions per second (on testnet) but doesn't clog its live blockchain with them.

So, in sum, if you send a transaction on Bitcoin Cash, it will cost 0 kW of electricity, even though it says 31.3 Txs/MWh (which equates to 31.9kW/Tx) in this chart. This is because transactions do not cost anything in electricity. Electricity only goes to preventing double-spends. A better metric would be "energy use per double-spend that was prevented."
Appeal to Authority - "a form of argument in which the opinion of an authority on a topic is used as evidence to support an argument"

Absolutely, and you realize that when it comes to legal matters that's exactly why we have lawyers (like the OP post author) and why lawyers spend years becoming lawyers so we pay them stupid amounts of money to interpret and opine for us on what a judge (or jury) will think of a given case? And why we don't consult people who flip burgers or drive taxis what their opinion about the same case is.

Where people are getting confused here is the difference between having an opinion on what you think legislation should be around evidence tampering (public policy) vs how a judge or court would decide on this specific issue given the laws as they are on the statute today (law).

What the OP wrote about is about is this specific case. How lay-people in this thread think a court would decide on Moxie and Signal's actions, if bought to court, is frankly irrelevant and especially when arguing with someone who is highly qualified! That fact that people here don't get this is the very point I'm making - you're not lawyers.

Matters of the law are all about Appeal to Authority, I don't understand what the problem is with that (have you never paid for a lawyer before??). Matters of public policy are for the public, there's a subtle difference.

Sorry to be just replying to your thread salawat but this applies to most of the comments here.
LOL fireworks! I had forgotten about that.
Junior developer doesn't mean a developer who just knows JavaScript. Cheaper developers doesn't mean faster or cheaper delivery in the long run. And I don't think brundolf meant cheaper developers.
Where did you find that? The tooltip I saw says they store files up to 5 GB on their servers, but it doesn’t appear to give you a choice. It also says that for files larger than 5 GB, it will use p2p (that answers one of my previous questions, I guess), but it still says “up to 10 GB.”

Why would there be a 10 GB limitation for p2p transfers if data is not being stored remotely?
Or more succinctly: Electricity tends to be fungible and move over geographically large networks, so most of it is probably interchangeable even over large areas/distance.
Show HN: A React component to reveal images using SVG clipPath and TypeScript
Thanks for the article, it's a very readable journal, sharing experiences and writing up also the reasoning behind decisions contributes to future builders.

Maybe someone already said it but I'll echo anyway - unless it's all about going outside the comfort zone to learn new tools, the person building should always first picture what needs to be built, then pick the right materials and tools for the project. Taking their own skills into account when using said tools of course.

Preferably even think a little ahead about your content to come if the site is meant to last for years when picking the tech. Ask yourself some "whatifs". Like what if you want to later on make some trade for yourself and set up shop for your crafts or skillset, can it be done easily enough as well?

TL;DR - Useful and well written article, there's never enough easy-read, non-commercial, experience-based journals about site building basics to help newcomers. Cheers!
Programming language upgrades are not the same as blockchain upgrades. Blockchains work on consensus, so you need a majority of nodes to agree with your changes to the chain or you risk a hard fork. At any rate, ETH2 proof-of-stake is already live, the last remaining piece is The Merge, which merges the existing proof-of-work chain into the already live and operational ETH2 proof-of-stake validator nodes.
SpaceX about the Rust Programming Language
After four years using Go all day professionally, I agree with all of these pros, and yet, the code volume to impact ratio is just so bad. Everything is very straightforward and understandable, the next step is always clear, I can spend an afternoon grinding out those 500 lines without thinking too much. But then I look back at what was actually accomplished in that time and it feels pathetic.

Go is a language for teams. All the cogs in the machine will spin, they will almost never get jammed, but nobody's fingers are fast enough to be particularly more productive than anyone else. Maybe this is the gray reality of mature collaborative software development. But every day I work in Go I get this gnawing feeling that software development could be so much better, that we could have been done weeks ago.
Not sure why you're saying that -- moving it to a library is basically what happened. The libudev code got moved to libsystemd, and now libudev is a wrapper around that.
not something you'd want to rely on though - the obstruction could happen at high tide.
I don't think that problem is exclusive to non-STEM fields. The math classes that I took as an undergrad math major had EXTREMELY arbitrary grading standards.

Some of the math classes I had to take were just plain annoying. I graduated because I put up with the crap.
I think you're confusing "money" with "finance". Finance is about lending resources to carry out projects, whereas money is a means of exchanging things.
Companies have canned contracts, like when you buy a house your mortgage company just plugs in a few variables and voila, contact. Commonly used smart contracts will converge in a similar way before they make it into common usage.
Was it your race or ethnicity which prevented you from seeing that chili lime chips would be delicious? Or is it just the fact that you, regardless of your demographics, hadn't spent time in a region where the local fare involved chili lime chips?

I didn't say that white people invented Flamin Hot cheetos - I said that it's common for diversity advocates to utilize stereotypes as long as they punch in the "right" direction. But the feeling I got from my diversity lecture at work was that "Management at Frito Lay couldn't think of Flamin hot cheetos because they were too white".

Also, I'm not sure where you're getting that the idea came from black neighborhoods. No one has their demographics called out in the article from what I can tell, and it seems like Fred Lindsay, Sharon Owens, and Lynne Greenfeld helped develop the brand - maybe they're black, I don't know. The only place I can imagine you getting that is by guessing that the clientele in Chicago corner stores and gas stations is mostly black, and that clientele is the same clientele that would buy the pre-existing non-cheetos spicy products. Maybe that's the case, but then that isn't a particularly strong point for diversity advocates, which was the basis of my post, if your company can be completely, say, white, and all you have to do is look at what is selling well in "ethnic" neighborhoods and copy it.
Which is not that uncommon, FWIW.

binutils and gdb were also moved into a common repository and gcc merged some repositories as well.
> if you're trying to argue that the testing problem in Python is the same as that of Go or Rust

Wasn't trying to make that case, but I can see how my comment could be read that way.

I was genuinely trying to understand what the parent comment meant. Specifically whether they were saying error control code is _the_ critical but hard to test part of a code base (which I don't think is typically true), or rather error control code is just an example among many of less frequently executed paths in code, which categorically is easier with a static type checker. I think they meant the latter and I don't disagree with that.
> The Post Office, for example, is supposed to have its own P&L, yet we keep giving them billions every time they run out of money.

And they run out of money because of pension benefit requirements and a lot of other politically mandated issues (see e.g. https://www.politifact.com/factchecks/2020/apr/15/afl-cio/wi...).

Not to mention the events of the 45th Presidency with tearing down sorting machines and other actions intended to impede by-mail voting...
You just highlighted problems of Markdown.

HTML supports wide range of applications. Even basic HTML provided more semantic value.
You can use it as for articles as for structured documentation. As it supports hierarchical structure + classes.

And pure markdown is not structural and not extendable by design - essentially just a flat list of paragraphs.
Yes, you may have some containers there like <blockquote> and <ol> but that's pretty much it. Why there are no sections or any other form of grouping content?

Markdown has exactly the same problem as MS Word / Richtext - they are very good in WYSIWYG but are terrible in semantic.

Markdown.Next shall be in the golden middle between HTML and current MD - with modularity built-in by design.