HNHacker News
TopNewBestAskShowJobs

TJSomething

801 karma · joined October 10, 2013

submissionscomments
TJSomething··on The $8 Linux Computer
Currently, RPis are quite difficult to obtain and have been since 2020. I was just looking at a project design that required 2 RPi Zero 2 Ws and I'm currently considering alternatives. Unfortunately, the software stack is Java, so I don't think this will work.
TJSomething··on A Reader Asks How to Avoid Working for Evil
It's about 10,000 deaths per year per CO2e PPM from 2080 to 2100, mostly based on this paper:

https://www.nature.com/articles/s41598-021-99156-5

TJSomething··on Dropbox acquires Boxcryptor assets to bring zero-knowledge encryption to storage
Boxcryptor was originally just a wrapper around Encfs and a Dropbox API client and probably hasn't significantly changed how they worked since they made it a fancy service. I assume that they rebuilt something like Encfs, but closed source.
TJSomething··on Remind HN: Heroku will delete all free dbs and shut down all free dynos Monday
I'm not an accountant, but for the US in 2021, that was Form 1040, Schedule 1: Additional Income and Adjustments to Income, Part 1: Additional Income, line 8: Other income, sub-line i: Activity not engaged in for profit income. You would just put $40 on that sub-line and add it to your adjusted gross income. If you made only $40 on it, I don't it can reasonably be called self-employment income, per Publication 535.

[0] https://www.irs.gov/instructions/i1040gi#en_US_2021_publink1...

[1] https://www.irs.gov/pub/irs-pdf/p535.pdf

TJSomething··on How to hack the simulation?
It seems kind of weird to me that you could exist as part of an intentionally engineered, computer simulation that could be patched and restarted, while also having past lives in the Buddhist sense.

I mean, I guess if you figured out where qualia and continuity of consciousness came from, you could engineer past lives for ethical purposes, so you aren't really killing people if you have to restart the simulation.

Alternately, if conscious observers are actually privileged over unconscious observers is some medium independent way (read: souls exist and spontaneously come into existence anywhere consciousness happens), that would just be an engineering limitation a universe developer would have to deal with.

TJSomething··on Mastodon's founder has a vision to democratize social media
It's Ruby on Rails, which is the second slowest web framework I would consider reasonable for production use (after Django).
TJSomething··on Ask HN: What interesting problems are you working on?
I'm not an expert, but if it's a chip that just synthesizes DNA from a sequence of base pairs, isn't what you're asking similar to making a computer that can't be used to perform evil? I suspect that computing if a given sequence is usable in a pathogen is equivalent to the halting problem. And practically, it seems that a lot of computational resources are required to figure out what a protein does, even for common cases.
TJSomething··on Tell HN: Sudden Chile daylight savings time rules change causes chaos
I like keeping the offset and the zone name. Then, if there's a discrepancy, I can ask the user what to do about affected events.
TJSomething··on Blocking Kiwifarms
The specific thing that is illegal is "incitement to imminent lawless action", which is distinguished from advocacy for violent principles.
TJSomething··on John Carmack: Best Programming Setup and IDE – Lex Fridman Podcast Clips
Looking at the MIT directory, he's a research scientist and isn't teaching anything this trimester, but has previously taught a few courses on deep learning. He has 78 papers published. He has an office in the Ray and Maria Stata Center at MIT.
TJSomething··on Carbon Language: An experimental successor to C++
The only comparable thing to an open source programming language on that list is AngularJS, and I wouldn't say that was killed but superceded by Angular 2 (which is also a lot better).
TJSomething··on An installation-art company called META (or Meta.is) is suing Meta (or meta.com)
I think a more apt example is Oracle, which is used in a lot of their branding.
TJSomething··on Stack Overflow Developer Survey 2022
The thing that was said to be impossible was writing a fast FizzBuzz. Assuming that your reference is C, it kind of is.
TJSomething··on Potato diet community trial
> Losing weight isn't causal to being healthy.

Except that's not how it works. An excess of fat can directly cause problems.

Above a certain point, having too much fat causes chronic hypoxia in fatty tissue, leading to chronic inflammation, which can eventually lead to systemic problems like insulin resistance, cardiovascular disease, kidney failure, liver disease, and cancer.

Edit: I am specifically referring to abdominal fat in excess of what a given body is able to cope with.

TJSomething··on The Depegging of UST
My read is that it's equally likely that it's an inexperienced retail investor who got spooked by the state of the global economy.
TJSomething··on Fly.io: The reclaimer of Heroku's magic
Yup. Not too hard. This outputs the current bandwidth in gigabytes when you pass your app name.

  #!/usr/bin/env bash

  set -euo pipefail

  QUERY=$(cat <<EOF
  {
      "variables":{
          "app":"$1",
          "start":"$(date +%Y-%m)",
          "end":"$(date -d "$(date +%Y%m01) +1 month -1 day" +%Y-%m-%d)"
      },
      "query":"query (\$app: String!, \$start: ISO8601DateTime!, \$end: ISO8601DateTime!) { app(name: \$app) { organization { billables(startDate: \$start, endDate: \$end) { edges { node { app { id } category quantity } } } } } } "
  }
  EOF
  )

  curl https://api.fly.io/graphql \
      -H "Authorization: Bearer $(fly auth token)" \
      -H 'content-type: application/json' \
      --compressed \
      -X POST \
      --data-raw "$QUERY" \
      --silent |
      jq '[.data.app.organization.billables.edges[].node | select(.app.id == "'"$1"'" and .category == "data_out") | .quantity] | add'
TJSomething··on Is Grammarly a keylogger? What can you do about it?
My dude. I have worked with quite a few really smart engineers whose grasp on the English language was imperfect, though quite capable of communicating most points well enough. I would prefer it if I could take a little less time in my code reviews on copy editing, doing things like fixing plurality disagreements and false cognates.
TJSomething··on What's the deal with tab size (8 spaces) in the GitHub UI?
The best reason I've seen for tabs is this one [0], where there were two people working on the same code base with different visual impairments, where one person needed 1 space tabs with a very large font and the other had to use 8 space tabs with a very wide monitor. You can't get that functionality if you assume any tab width.

[0] https://www.reddit.com/r/javascript/comments/c8drjo/nobody_t...

TJSomething··on Are dynamic languages going to replace static languages? (2003)
As TIOBE uses averaged, relative search engine hits for "[programming language name] programming" as its source, it's a significantly lagging indicator, since it counts all pages on the internet equally, regardless of their age. I'm also unsure of the precision of the search "C programming". I suspect that it's catching "C++" in some search engines.

Stack Overflow's annual survey puts JavaScript, SQL, and Python at the top, with C at 12th [0]. RedMonk's Top 20 puts JavaScript, Python, and Java at the top, with C in 10th [1]. ITJobsWatch puts JavaScript, SQL, and C# at top, with C at 9th [2]. Dice puts SQL, Java, and Python as its top 3, with C not even ranking in their top 12 [3]. All of those put JavaScript, Java, and Python in the top 5.

[0] https://insights.stackoverflow.com/survey/2021#most-popular-...

[1] https://redmonk.com/kfitzpatrick/2021/03/02/redmonk-top-20-l...

[2] https://www.itjobswatch.co.uk/default.aspx?ql=&ll=&id=900&p=...

[3] https://insights.dice.com/2021/01/05/top-12-programming-lang...

TJSomething··on Map[string]interface{} in Go: a user's manual
You could have a JSON value interface with methods like getType and getAsString, which would remove the overhead and type safety issues of reflection.
TJSomething··on NFT sales plummet nearly 90% from their peak as collectibles market cools
You could use a perceptual hash, which would work as long as you had the entire image in any format.
TJSomething··on Java's records, Lombok's data, and Kotlin's data classes
In traditional Java, you're probably using Jackson for your JSON. You can achieve those sorts of results by specifying the classes and type tags in annotations on an abstract Either class to use Jackson's polymorphic serialization feature.
TJSomething··on Buying a Bitcoin emits 195x as much CO₂ as buying an iPhone
I personally don't have the cash to buy more than one and I feel like a lot of the point of cryptocurrency is that individuals don't have to trust a financial institution.
TJSomething··on The internet didn’t kill counterculture – you just won’t find it on Instagram
As someone who runs a small anime convention, there's a long tail of anime conventions that just barely sit in the black, unable to pay much to anyone. Those only really exist as passion projects.
TJSomething··on Actually Portable Executables
I was trying to get something from Nim to build like this, but I probably need to understand linking a bit better.
TJSomething··on Ditherpunk: The article I wish I had about monochrome image dithering
I messed with the source of this and I came up with an entirely local dithering algorithm based on the van der Corput sequence.

https://tjsomething.neocities.org/ditherpunk-demo/

TJSomething··on “Find Satoshi” PerplexCity puzzle solved
If we're being pedantic, that's not a letter. It's a mora. Also, we don't know the correct Japanese spelling of Satoshi Nakamoto, because there like 8 common first names pronounced Satoshi (哲, 悟, 敏, 智, 聡, 慧, 訓, and 諭) and he never wrote his name in Japanese.
TJSomething··on Please disable JavaScript to view this site
I'm not sure if it always works on all APIs or browsers, but you can wrap and replace DOM API objects with logging proxies.

Additionally, you can set breakpoints on event handlers and Chromium has deobfuscation built in. You can usually tell approximately what's going on by stepping through the code and watching the variables in local scope.

TJSomething··on Effect of exercise training for five years on all cause mortality
Because running a large enough study is expensive and it's cost-effective to perform a smaller study to determine an approximate size of the effect. Then, you can design the next study to have enough power to distinguish the expected effect size from the null hypothesis.

Additionally, these results could be aggregated with comparable results to yield a stronger result.

TJSomething··on How to GraphQL with Ruby, Rails, Active Record, and No N+1
When you have separate backend and frontend teams, Conway's Law starts to rear its ugly head. GraphQL can help smooth over some of that organizational friction and maybe keep the frontend team from making N+1 requests because they gotta get this feature out by the end of the sprint and backend's busy with its stuff. They tell themselves, "It'll be fine. It's performs acceptably on my machine with my company internet connection."
← PreviousPage 6 of 10Next →