HNHacker News
TopNewBestAskShowJobs

czr

1,315 karma · joined June 3, 2018

submissionscomments
czr··on YouTube's ban on “hacking techniques” threatens to shut down infosec YouTube
Popular hacking-related YouTube channel LiveOverflow has a nice discussion of the ban that addresses this very concern at https://www.youtube.com/watch?v=LIdZ2oPyB1Y
czr··on Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in JavaScript
Good point. I've edited my comment to be more qualified.
czr··on Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in JavaScript
Those are unfortunately not the same. The second one (with an explicit radix of 10) is correct; the first is not (or is at least a bit riskier). See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... (ctrl+f for "always").
czr··on Estimate the size of your English vocabulary (2014)
As a native english speaker, answering only known words: 80% true positive, 0% false positive.

As a native english speaker, answering for known or plausible words (with empty profile to not contaminate the test): 96% true positive, 23% false positive.

czr··on This Marketing Blog Does Not Exist
As a reminder, the Olive Garden thing is a joke, not the result of any actual AI. https://iforcedabot.com/ is a fun site with some demos of what text-generation can actually do these days.
czr··on There is no general AI: Why Turing machines cannot pass the Turing test
Was this written by GPT-2?
czr··on Apple strips clips of devs booing $999 monitor stand using copyright claims
For anyone who want it: Apple includes the full WWDC keynote, unedited, on their YouTube channel, including the moment in question (at https://youtu.be/psL_5RIBqnY?t=6118)
czr··on I've been building a Markdown note-taking app for 3 years
iirc Notion, Bear, and Ulysses all support single-pane markdown (although I'm a happy Typora user, so I can't speak to their relative merits)
czr··on Show HN: Is JavaScript Enabled?
Minor, but instead of:

    status.setAttribute('style', 'display:none');
I would suggest just writing:

    status.style.display = "none";
(and similarly for the other DOM modifications; see [0] for a discussion of setAttribute vs property syntax)

[0] https://stackoverflow.com/questions/3919291/when-to-use-seta...

czr··on Confessions of a Reddit Karma Whore
I think it depends on the subreddit and topic. For cases where most people already have a strongly-held opinion (say, when discussing any culture-war topics on a one-sided sub), sure, giving a witty or rousing restatement of the predominant opinion is a cheap way to score points. For cases where strong pre-existing opinions are rare, a high-quality turns-out style refutation of the existing narrative can do just as well as an affirmation would.

Not everything on reddit is culture war, though. there are plenty of peaceful subs out there where there's no narrative to echo.

czr··on Confessions of a Reddit Karma Whore
That was an excellent piece. I've done a similar thing on a much smaller scale (fighting for karma within niche subreddits), complete with the careful analysis of which content sources do best, which times of day are ideal, what kind of titles and themes cater most to the userbase... I ended up writing plenty of automation as well, to help me filter through the vast quantity of potential submissions and find those which would guarantee a top spot.

Reddit is a nice confluence of several things that humans find addicting - semi-random rewards, detailed metrics, quick feedback, novel stimuli, all magnifying the power of underlying signal (social approval). None of that is specific to reddit, of course–every social website eventually becomes that same game, or dies.

Unlike the OP, though, I didn't find it unhealthy. Compared to, say, video games, or TV, chasing karma was a much better hamster wheel to run on; it motivated the sort of careful analysis, planning, and diligence that I could eventually apply to real problems. My hope is that reddit (and reddit-like attention machines) push more strongly in this direction; the ideal feedback loop isn't one that spurs no addiction at all, but rather one for which addiction has net positive consequences.

czr··on The XY Problem (2014)
I agree that shaming / confronting people is not good for culture, but I disagree with the conclusion. "Y can be done (see below), but if you're actually trying to accomplish X here's a much more convenient way" is the kind of response that I appreciate most–not only has someone answered my question, but they've also helped correct whatever misunderstanding prompted me to ask about Y in the first place, and they've given me an easier way to solve X.

For me, at least, a response that solves both X and Y is (if done politely) far preferable to one that only solves Y.

czr··on Eleven Straight Days of Tornadoes Have U.S. Approaching ‘Uncharted Territory’
For those curious about the connection between climate change and the observed trends in tornado behavior (stable year-over-year total count, and stable average intensity, but increased 'clumping' and variability), I would recommend this talk Harold Brooks gave last week: https://youtu.be/Z_1PiixPX3o?t=275
czr··on Arm announces its new premium CPU and GPU designs
https://outline.com/5PdMYy

Though FWIW, the article renders fine for me with uBlock Origin + Extra.

czr··on The Art of Command Line (2015)
IMO, the most natural method is simply:

    >file
czr··on Tesla: Insane or Clever
It's worth emphasizing that Tesla is strong at software relative to other automakers; in absolute terms, the (non-AP) parts of Tesla's software frequently have user-facing problems [0] and appear to have been built on a Babelian tower of hacks [1]... but it's still better than the rest of the market, and it keeps improving month over month.

[0] https://www.reddit.com/r/teslamotors/search/?q=reboot&restri...

[1] https://twitter.com/atomicthumbs/status/1032939617404645376

czr··on How to do hard things
This more or less matches my own system. Some additional notes:

* When creating great work as an expert, you will be working down the ladder of abstraction (e.g. for writing–coming up with a concise high-level vision and then progressively expanding it down to the level of characters on a page)–this is the most efficient way to make anything, since you can sanity check your work at higher levels to avoid expensive rewrites at lower levels. However, when learning, you should learn subskills in the exact inverse order (start from the lowest level–how to type keys–then work upwards). Mastering subskills in this order maximizes the feedback signal you get while learning–if you can't write a paragraph coherently, it is very difficult to determine how well you're doing at developing your authorial voice (or whatever).

* Time spent practicing a skill only makes you faster / more robust at the method you already know; it doesn't lead you to improve your methods. So spend half your time actually performing the skill, and half the time analyzing your work / comparing to known good examples / planning how to improve (and, really, half of that time should be for improving your tools for analysis and comparison...). If you fail to do this kind of meta-work, 10000 hours of practice or whatever will just get you a fast, robust system for producing garbage.

* Assuming you're following an intelligent process for learning the skill (see previous points), the most likely way in which you will fail to learn it is by getting disinterested or discouraged and giving up. It's essential that you try and structure your learning process in a way that yields intermediate feedback and some satisfaction for improvement, and pay attention to both 1) reducing the parts of the process you dislike and 2) figuring out ways to make it enjoyable (including figuring out how successful other people have managed to derive enjoyment from the activity).

czr··on Ask HN: Examples of bad open-source code to learn what to avoid?
(Note that this is decompiled source – the original probably at least has comments here and there)
czr··on Faux Rogan
Once someone gets an implementation of https://sample-efficient-adaptive-tts.github.io/demo/ [0] working that should be good enough (quality-wise).

[0] https://arxiv.org/abs/1809.10460

czr··on South Korean students flock to Japan
You may be interested in:

* https://en.wikipedia.org/wiki/Anti-Japanese_sentiment_in_Kor...

* https://en.wikipedia.org/wiki/Korea_under_Japanese_rule#Lega...

* https://en.wikipedia.org/wiki/Anti-Korean_sentiment#In_Japan

czr··on Openpilot – open-source self-driving agent
Per the site and his instagram [0], it's an AR thing of some sort. He was playing around with a North Star prototype [1] on stream a few days ago [2]. But it's still very early–if he actually sticks with this project I imagine it will be at least few months before anything substantial is announced.

[0] https://www.instagram.com/p/Bw3GEQNHywS/

[1] https://developer.leapmotion.com/northstar

[2] https://www.youtube.com/watch?v=hnQBlUvejWc

czr··on Openpilot – open-source self-driving agent
For those who haven't seen Openpilot before, or recently:

* George Hotz (not "Hortz") is working on other stuff now [0], and is no longer CEO.

* While "I'm running open-source self-driving software from GitHub" sounds terrifying, the software is very good at what it does, which is very limited (LKAS / ACC / driver monitoring). Browsing test videos on YouTube (https://www.youtube.com/results?search_query=openpilot+0.5) is a good way to get an impression for how well it works; the consensus I've found is that it's better and safer than any stock systems except Tesla AP and Super Cruise.

[0] http://pixie.tech

czr··on The AI That's Too Dangerous to Release
I'm not sure if you're being tongue-in-cheek, but:

* Training on Sci-hub or book torrents would probably get them sued, so that's right out.

* The point of training the model on reddit-linked-articles with 3+ karma (not reddit comments, as the article suggests) is to filter out worthless content (spam or non-text pages) while still getting a large, diverse sampling of human writing. They're training huge models and they need as much data as possible to do so.

* Every native english speaker is a "domain expert" for the purpose of evaluating the model's results. The point at which we need subject-matter experts to evaluate the quality of neural-net generated research papers is many decades away; the excitement around GPT-2 is that it can generate coherent English sentences at all.

czr··on The AI That's Too Dangerous to Release
You can try out the 345M-parameter model in your browser here https://talktotransformer.com. The more powerful models are available to AI/security research groups upon request.
czr··on The AI That's Too Dangerous to Release
While snappy, this sentence is misleading. The model is trained on webpages whose links have received at least 3 karma on reddit, not on reddit comments themselves [0]. The motivation for this choice is not to find impeccable prose, but rather to establish a lower bound on quality for the dataset, and avoid training the model on too much of the spam/nonsense text that is frequent in e.g. CommonCrawl. Also, the "author" is not a single person, but rather 6+ people [1].

[0] https://openai.com/blog/better-language-models/ [1] https://d4mucfpksywv.cloudfront.net/better-language-models/l...

czr··on Nest, the company, died at Google I/O 2019
This is overstating the case a bit, imo. There are plenty of smart home devices that are either objectively terrible or worse relative to their "dumb" alternatives–I'd happily concede that this is the majority of the smart-home market. But there are some genuinely good products mixed in there too.

In the same way that dishwashers and washers/dryers have endured while other 70s smarter-home tech didn't [0], I would guess that some modern automations that actually provide value (e.g. robot vacuums) will continue on even as the hype dies down.

[0] For example, https://en.wikipedia.org/wiki/Honeywell_316#Kitchen_Computer

czr··on Human Pose Estimation with Deep Learning
Certainly. For example, https://storage.googleapis.com/tfjs-models/demos/posenet/cam... will run in your browser. https://github.com/CMU-Perceptual-Computing-Lab/openpose is also a decent choice for realtime pose estimation, although I'm not sure if they have a web demo anywhere.
czr··on OpenAI releases larger GPT-2 model
It seems to train fine on Colab without that flag, so that's a decent fallback for anyone running into memory issues on a local machine.
czr··on A visual proof that neural nets can approximate any function
While "RNNs are Turing-complete" is true in theory under certain assumptions, it is not true in practice. See slide 12 and on here (https://uclmr.github.io/nampi/2016/talk_slides/grefenstette-...) for some discussion.
czr··on A visual proof that neural nets can approximate any function
* Fix the data. Right now the optimal coefficients on your data (using least-squares) are m=1.79794911, b=31.952525636156476, which yields 211.74743638 when predicting on 100.

* Tune the hyperparameters. In particular, tune the learning rate. To quote the Deep Learning Book [0]:

> The learning rate is perhaps the most important hyperparameter. If you have time to tune only one hyperparameter, tune the learning rate. It controls the effective capacity of the model in a more complicated way than other hyperparameters—the effective capacity of the model is highest when the learning rate is correct for the optimization problem, not when the learning rate is especially large or especially small.

The following code will yield exactly 212 almost every run (using fixed data and a different choice of learning rate):

```

celsius_q = np.array([-40, -10, 0, 8, 15, 22, 38], dtype=float)

fahrenheit_a = np.array([x * 1.8 + 32 for x in celsius_q], dtype=float)

for i, c in enumerate(celsius_q):

  print("{} degrees Celsius = {} degrees Fahrenheit".format(c, fahrenheit_a[i]))
l0 = tf.keras.layers.Dense(units=1, input_shape=[1])

model = tf.keras.Sequential([l0])

model.compile(loss='mean_squared_error', optimizer=tf.keras.optimizers.Adam(lr=1.0))

history = model.fit(celsius_q, fahrenheit_a, epochs=500, verbose=False)

print("Finished training the model")

print(model.predict([100.0]))

```

[0] https://www.deeplearningbook.org/contents/guidelines.html

← PreviousPage 2 of 4Next →