HNHacker News
TopNewBestAskShowJobs

momothereal

678 karma · joined November 24, 2017

submissionscomments
momothereal··on Ask HN: What are you working on?
A social media website for music enthusiasts. Not the first to build this, but we (1 software dev and 1 graphic designer) hope to bring something new to the table that other sites like Last.fm, RYM and Reddit don't. We have 3,500 users and gaining about a dozen per day. ~300 DAU and ~1500 MAU.

Right now you can sign up and connect your Spotify account. It will automatically record your listening history to build a music profile, which we'll expand on in the future. You can add people as friends, comment on other people's profiles. We're working on supporting other streaming services and building a reliable revenue model.

https://wavy.fm

momothereal··on Teamspeak 5 to be based on the Matrix protocol
Could've just been a network issue, or simply because it was 7 years ago. I've been using Teamspeak daily with my friends for 6 years, hosted on a 5$ digitalocean droplet and the audio is far superior compared to anything else.

Discord is pretty sweet too, with screensharing, videos, better chat etc. But once more than 2 people talk at once in a channel, even with Nitro/whatever, it starts cutting people up. We can really feel the difference when going back to TS after a Discord call.

momothereal··on Memory access on the Apple M1 processor
`getconf PAGESIZE` returns 16384 on the base M1 MacBook Air.

The L1 cache values aren't there. The macOS `getconf` doesn't support -a (listing all variables), so they may just be under a different name.

edit: see replies for `sysctl -a` output

momothereal··on DOJ Argues: US can kill own citizens without review when state secrets involved
You're technically right, but the comparison isn't completely far fetched considering:

* Chinese surnames are monosyllabic, and given names are disyllabic. It'd be more awkward to say "average Joe or Xiùyīng".

* Both Chinese given names and surnames are usually "real words". Just like how "Joe" is a descendant of the Hebrew "Yohanan" meaning "Graced by God", or even the many English given names that are real words: Carol, Eve, Jade, etc. It's just more common in Chinese names.

* Given names are rarely used by themselves (much less than in Latin languages).

momothereal··on Ask HN: How have you fared working remotely this past year?
If you don't mind me asking, is the small office at the company's expense or yours?
momothereal··on DOJ Argues: US can kill own citizens without review when state secrets involved
It's both a surname and can mean other things (mostly depends on tones). Bāo and Bào are surnames. The "bao" you're thinking of is short for bāo zi.
momothereal··on Ask HN: Successful one-person online businesses in 2021?
I'm not planning to move but I enjoyed the writing style. Thanks for sharing and great stuff!
momothereal··on A half-hour to learn Rust
In this closure you are moving `answer`, that is, you are moving the reference itself into scope. The `challenge` reference is already owned by the closure since it's a parameter. The move doesn't mean the closure owns the underlying strings, but the references themselves.
momothereal··on SEC charges Ripple and two executives
Assuming you mean sending some USD from the US to an overseas recipient, it goes a bit like this:

1. Your bank sends a secure message to the overseas bank through the SWIFT network (this is where the SWIFT number is used for routing the message) to the recipient's bank, detailing the transaction.

2. Through the SWIFT standard message format, the overseas bank validates whether the account exists in their bank. Some additional screening is done at this stage to detect fraud, money laundering, etc.

3. Your bank and the overseas bank have a predefined agreement on a correspondent account, i.e. a bank account in the US owned by the overseas bank to receive USD. If everything checks out, your bank wires the money via a domestic system like Fedwire to settle the transaction.

4. The overseas bank confirms that the money was wired to their US account, and then adjusts the recipient's balance accordingly.

momothereal··on SEC charges Ripple and two executives
The currencies (Diem and XRP) would be similar in nature, since they're not mined but centrally issued, and their value is determined by a combination of factors (the issuance, decay, and trading).

As far as I know Libra/Diem is more customer-facing, whereas Ripple is mostly marketed to banks for faster international transfers.

momothereal··on SEC charges Ripple and two executives
Fedwire is instantaneous for US domestic transfers, whereas international Fedwire transfers to non-Fedwire banks still rely on SWIFT as far as I know. The Ripple company offers solutions to replace SWIFT using XRP as the exchange currency.
momothereal··on SEC charges Ripple and two executives
My understanding: Ripple is a company that aims to build a faster bank transfer protocol (faster than SWIFT, for example).

To achieve that speed, banks transfer a digital currency (XRP) issued by Ripple instead of traditional currencies. It takes a few seconds for XRP transactions to settle, instead of days for traditional currencies via SWIFT.

The value of this currency is decentralized, in the sense that people trade it with other currencies (which is also how Bitcoin, Ethereum etc. are valued).

In the eyes of the SEC, the fact that XRP is directly issued by Ripple makes it similar to issuing shares. Even if Ripple doesn't control the value of the shares (XRP), they still manage the supply.

momothereal··on WireGuard Bounce Server Setup
Same! I set up something similar with DigitalOcean by combining a couple of tutorials together. I pretty much followed the same steps until the `nftables` stuff.
momothereal··on Twitter Is Switching to AWS
Title on HN is misleading (or even incorrect). In the article it mentions Twitter is moving one feature (feeds) to AWS. They still rely on GCP and their own infra for the rest.
momothereal··on Bulk loading into PostgreSQL: Options and comparison
It'll just throw an error when COMMITing, most likely.
momothereal··on Bulk loading into PostgreSQL: Options and comparison
What about cases where there's multiple tables with foreign keys between them? Should you just drop the constraints, import tables individually, and then re-apply the constraints? Any alternatives?
momothereal··on FDA Issuing Emergency Use Authorization for First Covid-19 Vaccine
That's the case with any government agency, right? Even in other countries.
momothereal··on GitHub Releases Dark Mode
Hopefully support in RefinedGithub ships soon: https://github.com/sindresorhus/refined-github/issues/3798
momothereal··on TimescaleDB vs. Amazon Timestream
You make some good points. Thanks for the insights/discussion!
momothereal··on TimescaleDB vs. Amazon Timestream
No problem, my fault I misread your comment. `row_id` is a unique identifier for the row, for example my API will need it when the user wants to delete the specific row. Since it's possible for multiple rows to have the same `time`, even for the same `user_id`, I cannot assume uniqueness there.

Partitioning on the row_id by making it an ordinal instead of a UUID could work, however I feel I would be missing out on TimescaleDB's advantages for querying based on the `time` filter?

Consider that my main queries are:

* DELETE FROM t WHERE row_id = xyz AND user_id = xyz

* INSERT INTO t (...)

* SELECT FROM t WHERE user_id = xyz AND time > xyz and time < xyz

momothereal··on TimescaleDB vs. Amazon Timestream
Yes that's what the reply suggested. However the business requirement is that the row_id should be unique, such that looking up a row by ID is guaranteed to have 0-1 results. A unique constraint on (row_id, time) doesn't satisfy that.
momothereal··on Unreal Engine 4.26
For versioning, you can look at this plugin released/improved by Project Borealis: https://github.com/ProjectBorealis/UE4GitPlugin
momothereal··on TimescaleDB vs. Amazon Timestream
Wouldn't that just make the pair unique? That would still allow you to insert rows with the same row_id, but different time.
momothereal··on TimescaleDB vs. Amazon Timestream
OT: Every time I see Timescale on here I'm excited to use it. After some preliminary testing I always run into the same issue: can't create a hypertable if there's a unique index / primary key that doesn't include the 'time' field.

For example my data looks like (row_id, user_id, time, data), where row_id is a unique ID, and time is a non-unique time field. Timescale will refuse to create a hypertable like this because it causes partition issues.

momothereal··on YouTube-dl's repository has been restored
I suppose it depends on how the claim is formulated? Take the CraftBukkit[1] claim for example. In that case, all commits since a specific point, plus all forks, were taken down:

"Pages including infringing content: [...] infringing as of commit [...] and every subsequent commit, including all forks that contain this commit [...] and all forks that share a common first commit [...] and every subsequent commit, including all forks that contain this commit"

This made any effort for restoration futile, since most of the repo was being claimed.

[1] https://github.com/github/dmca/blob/master/2014/2014-09-05-C...

momothereal··on LazySSH – A jump-host SSH server that starts machines on-demand
I did something like this[1] for a CTF I hosted. It spins up a pod in Kubernetes with a predefined set of images based on the username. e.g. `ssh TeamCode:CHALLENGE_NAME@ssh.coop-ctf.ca` would spin up the container for that team with the image for the challenge.

Since the container could be used by multiple team members, I had an external scripts to tear down after 30min of inactivity.

[1] https://github.com/coop-ctf/ssh-gateway

momothereal··on A nameless hiker and the case the internet can’t crack
As someone else pointed out, it seems this user was recently active on Screeps forums, so ruled out.
momothereal··on A nameless hiker and the case the internet can’t crack
I wrote a quick script through Github's API, and found 10 users[1] matching the criteria:

* starred any screeps repo before May 2017, and no other screeps repo since then

* no public contributions or events since April 2017

If someone has some time to do further filtering, ensure the users have not starred any GitHub repo since May 2017

I didn't go through forks but that would also be an avenue.

[1] https://gist.github.com/aramperes/2363dc3434de6b494b28b5a658...

momothereal··on Show HN: Built a timeline component for React with multiple layout modes
I'll keep an eye on this for the responsive feature that's planned!

I recently implemented a timeline on the https://wavy.fm front page to communicate that the website is still in development. Trying to make it responsive with flexbox was an absolute nightmare, so I ended up using JS to render the component differently on mobile.

momothereal··on Atlassian moving to cloud-only, will stop selling server licenses
Fair warning that it is under the Business Source License which isn't really open-source. I fully understand why this license was chosen (preventing resellers competing with your SaaS), but advertising as "open-source" is misleading.

Your FAQ also says to "Contact [You]" regarding on-prem instead of pointing to the GitHub, which imo conceals the fact that you can build and run it without a restrictive license.

← PreviousPage 5 of 6Next →