HNHacker News
TopNewBestAskShowJobs

nprescott

329 karma · joined August 6, 2014

nprescott.com

email: hackernews@nprescott.com

submissionscomments
nprescott··on Show HN: A search widget for static web sites
Using the RSS feed for the content seems clever, and useful as a means to build the static search widget outside the content generation phase of site building (or for adding after the fact).

I recently had a similar (less well fleshed-out) idea[0], but built the search corpus during the generation of my static site (this was made easy by the fact that I wrote the generator too). The results aren't nearly so impressive, but it was an interesting experience that lead to all sorts of interesting ways to improve searching, like stemming, lemmatization[1] and (removing) stop words (this was mostly to reduce the size of the text corpus).

[0]: https://idle.nprescott.com/2017/text-search-on-a-static-blog...

[1]: https://nlp.stanford.edu/IR-book/html/htmledition/stemming-a...

nprescott··on 2D Syntax
Very neat, I really appreciate the Racket community's willingness to experiment with syntax.

Looking at the examples reminds me of Julian Noble's "Elegant Finite State Machine" in Forth[0], which takes a different approach to the same problem of creating a language to better specify a problem (in both cases graphically).

[0]: http://galileo.phys.virginia.edu/classes/551.jvn.fall01/fsm....

nprescott··on Mini.css: Minimal, responsive, style-agnostic CSS framework
While I like the idea of lightweight UIs, this one seems to have some problems[0] in Firefox 55.0, the responsive mode view looks better but still has some issues with the menu. I thought I had failed to download a stylesheet at first but the desktop view actually has all the assets for the page.

[0]: http://imgur.com/a/On8hZ

nprescott··on Ask HN: Python rewritten in Rust?
There's this talk by Dan Callahan from PyCon 2015 that touches on the very topic - "My Python's a Little Rust-y"[0]

[0]: https://www.youtube.com/watch?v=3CwJ0MH-4MA

nprescott··on Show HN: Nomouse
This is a cute idea. One thing I notice, it cycles the brightness higher every 6.666 seconds regardless of where it began until it reaches 100%. I only notice because I rarely have the brightness at 100% and it was a little disconcerting watching it become more bright over time.

I'm now thinking of how you might make something similar for ratpoison[0]

[0]: http://www.nongnu.org/ratpoison/

nprescott··on Https hurts users far away from the server
I really enjoyed the coverage of the same topic in High Performance Browser Networking[0]. It effectively explains the key performance influencers across various networks without being boring.

[0]: https://hpbn.co/

nprescott··on Tool Assisted Arbitrary Code Execution in Pokemon Yellow
The verbal explanation is long but worth it, probably best (as mentioned) after watching the video.

Source code is at: https://github.com/MrWint/gb-tas-gen

nprescott··on The Awk Programming Language (1988) [pdf]
One of my favorite books - I initially bought a copy based on a review by Brandon Rhodes [0]:

> But the real reason to learn awk is to have an excuse to read the superb book The AWK Programming Language by its authors Aho, Kernighan, and Weinberger. You would think, from the name, that it simply teaches you awk. Actually, that is just the beginning. Launching into the vast array of problems that can be tackled once one is using a concise scripting language that makes string manipulation easy — and awk was one of the first — it proceeds to teach the reader how to implement a database, a parser, an interpreter, and (if memory serves me) a compiler for a small project-specific computer language! If only they had also programmed an example operating system using awk, the book would have been a fairly complete survey introduction to computer science!

[0]: http://stackoverflow.com/a/703174/2912179

nprescott··on Ripgrep code review
Not the author but if you view source or follow their linked github you can find generation is the result of org-mode and org-twbs[0].

[0] https://github.com/marsmining/ox-twbs

nprescott··on TLS version intolerance
I hadn't quite realized the simplicity of the POODLE attack previously. There was an article covering similar ground in LWN recently[0].

[0]: https://lwn.net/SubscriberLink/701956/4dc5a506c0a6fd82/

nprescott··on An expensive line of code: scaling Node.js on Heroku (2013)
Zeke mentions this in the comments[0] on the article:

>The console functions are synchronous when the destination is a terminal or a file (to avoid lost messages in case of premature exit) and asynchronous when it’s a pipe (to avoid blocking for long periods of time).

Which still seems to be the case in the LTS[1].

[0]: http://micheljansen.org/blog/entry/1698#comment-522124

[1]: https://nodejs.org/dist/latest-v4.x/docs/api/console.html#co...

nprescott··on New Wind Turbines Could Power Japan for 50 Years After a Single Typhoon
Vertical axis wind turbines are pretty well studied, if less widely deployed compared to HAWTs. Reading the article it isn't clear to me what they propose that is fundamentally new or different from existing technology. There is brief mention of:

> the speed of the blades can be adjusted to ensure they don’t spin out of control during a storm.

But a VAWT relying on huge torque during a typhoon would still seem to require huge investment into, well, typhoon-proofing. As is always the case with wind power generation, the real issue is energy storage which isn't touched on at all.

The entire article reads like fluff at best and clickbait at worst.

nprescott··on Ask HN: Domain Dispute
You'll have to talk to a lawyer for legal advice; You could do it preemptively or just wait. To properly pursue a UDRP they'll have to file a complaint in court, at which point you'll need a lawyer anyhow.

Personal opinion - is it really worth the hassle? You've not launched anything in 11 years, why not just set a fair price and re-brand your un-launched venture?

nprescott··on How to escape an asterisk character on Hacker News?
You can use 3 asterisks - * to italicize a single asterisk:

  *** as such
Or you could always use a pre-formatted block:

  * just prefix with two spaces
nprescott··on Web2Web Bootstrap
From the project README:

  > Websites get seized by losing control over a webserver or a domain. If we
  > replace both the webserver and the domain with torrents and blockchain then
  > there's nothing left to seize.
  >
  > When you open index.html in the browser, here's what happens:
  >  - Bitcoin address 1DhDyqB4xgDWjZzfbYGeutqdqBhSF7tGt4 is searched for the
  >    latest outgoing transaction containing OP_RETURN script. Inside the
  >    script there is a torrent infohash of webpage.html.
  >  - webpage.html is downloaded from torrent via webtorrent and displayed.
I'm at 10 minutes waiting and the page hasn't loaded anything yet, the console reports wasm loaded correctly. It might be more useful to change the URL to the repo catilac linked. The idea sounds interesting, if a bit circuitous.

Edit:

Now that I think about it more, I'm a little confused about how this "decentralizes" anything, because the page is still required to get the bitcoin address in the first place? What prevents someone from seizing a domain or webserver and modifying this particular bitcoin address, other than the work involved? Can anyone familiar with IPFS speak to similarities or differences?

nprescott··on Show HN: Drum machine in 100 lines of HTML/JS
This is due to a step taken by the browser to improve performance, namely, timers in Chrome are limited to 'ticking' at most once a second when a tab is backgrounded. The drum loop is at its core:

    setInterval(function() {...}, 1 / (4*BPM/(60*1000)));
https://codereview.chromium.org/6577021
nprescott··on Show HN: Colors Used by Popular Sites
I had a similar idea recently, originally I intended to try and identify "fashionable" color palettes, which worked pretty well: https://idle.nprescott.com/2016/scraping-color-palettes.html

and only later tried branching out to the 100 most popular sites: https://idle.nprescott.com/2016/image-capture-crawler.html

I tried ImageMagick's histogram functionality and a K-Means but wasn't happy with the results. I didn't finish doing a meaningful color extraction from the most popular sites because of difficulty getting (in my mind) representative samples from more complex images (like the linked GitHub homepage screenshot). I still intend on circling back at some point and trying a color quantization.

I hadn't thought to scrape the CSS colors directly, that's an interesting approach. I'd like to see the colors sorted in some way, to get a better sense of the range for each site.

nprescott··on Ask HN: Grammar checking Markdown
Nothing specific to Markdown, but all tools that can be integrated into emacs or run from the command line:

Matt Might's "3 shell scripts to improve your writing"[0], which has a "port" to emacs lisp[1]. There's also LanguageTool[2], which can check grammar and has an emacs extension[3].

[0]: http://matt.might.net/articles/shell-scripts-for-passive-voi...

[1]: http://bnbeckwith.com/code/writegood-mode.html

[2]: https://www.languagetool.org/

[3]: https://github.com/mhayashi1120/Emacs-langtool

nprescott··on The House Where You Live Forever: The Reversible Destiny of Madeline Gins
I wanted to like something about this, if for no other reason than the title (which is excellent). The writing is good but I think the author gives too much credit to Gins and couches the whole thing to sound like "maybe she knew something that we don't" and leaves any substantive criticism to the reader.

As someone wholly unfamiliar with avant-garde architecture each of the pictured examples looks garish or camp in the extreme, like a 1960's television set. This can be put down to my inexpert eye but for the fact that the architect offers the following:

  What about consciousness at the cellular level, or at the level of the entire
  population? Might those types of awareness affect a person’s ability to live
  forever? The need to target different “scales of action,” as Gins called
  them, was reinforced in her dreams.
And the author supplies:

  I didn’t understand how Gins could have thought that following these
  instructions might lead to immortality. But I also couldn’t believe, based on
  all I knew of her, that she was anything less than serious about the intent
  of her work.
To be blunt, the whole article read like a weakly supportive retrospective on some kind of metaphysical woo-woo. The author is clearly talented, but the subject matter was way outside of my wheelhouse and left me annoyed.
nprescott··on Comcast wants to sell your Web history to advertisers
It might not be quite so direct, but there are a number of ad-network companies focused on exactly this. It can work like:

  1) Sign-up for a "rewards card" or mailing list at a store

  2) Use a credit card with that account

  3) That account is linked to that card within the network or sold to a network

  4) The ad-network profile is then leveraged with a variety of e-commerce sites
     through cookies and the like

  5) Purchases made online with those cookies are linked to purchase histories
     and profiles
You can see how these network profiles are developed and interlinked until "spooky" things start happening. Following a consumer from brick and mortar stores to online is an advertising/e-commerce dream. I know several ad-networks are working towards developing graph databases linking profiles across devices.
nprescott··on Show HN: Chrome extension to avoid noisy domains in the Hacker News feed

  > Sites with usergenerated content was manually filtered out.
I read that as Wikipedia, blogspot and wordpress are not being included in "noisy domains" - which you can verify by looking at: https://github.com/mathiasrw/no-noise-hacker-news/blob/maste...

I agree with you about Medium though, I might go through the last several months and see if there were any legitimately interesting articles I read from Medium.

The extension is interesting but ultimately I think too set in stone to be generally interesting. I think it would have broader appeal if each user could edit the filtered domains by default.

nprescott··on What’s Next for Multi-Process Firefox
From the Are We Slim Yet FAQ:

  > For each change to Mozilla's inbound repository, our build infrastructure
  > generates a build which we test and include in the graphs here.
Sounds to me like they are testing with e10s (since it is enabled in the newest releases)
nprescott··on Django 1.10 released
I can't answer your first question, they're similar high-level web frameworks - do you want to learn another?

As for books, I'd recommend Two Scoops of Django[1]. Between that and the tutorial you should be up to speed pretty quickly. Maybe read it and see if anything appeals to you about Django?

[1]: https://www.twoscoopspress.com/

nprescott··on Ask HN: Which are the best platforms to access public policy data?
What kind of public policy data? What country? The Sunlight Foundation[1] is pretty good for US data.

[1]: http://sunlightfoundation.com/api/

nprescott··on How the United Arab Emirates Intelligence Tried to Hire Me to Spy on Its People
Puts me in mind of Moxie's experience in a similar incident with Mobily and Saudi Arabia[1]

[1]: https://moxie.org/blog/saudi-surveillance/

nprescott··on Ask HN: What is the cutting edge in the programming world right now?
It might depend on whether you differentiate between cutting edge and hype. Scala (for sure) and micro-services (probably) are still very niche. It's not as though there has been a generation of software written in them - they've had several years to pick up steam and now they aren't "exciting". Off the top of my head the things that are exciting enough to make news simply by existing is "serverless" XYZ and "AI" where AI is never really defined well enough to pin down.

You would probably be better served to learn something you are interested in than being able to say you are fluent in the NN library du jour.

nprescott··on Fun vs. Computer Science
I don't disagree with the article, but I also don't know that pushing the boundaries of interactivity and "fun" are relegated to academia. Iterating on what makes things fun is (probably) highly unscientific and might be better left to people more focused on it directly, such as game programmers.

As far as interactive development of games goes, I still marvel at Bruce Hauman's demo[1] of "Interactive programming Flappy Bird in ClojureScript". I think the best hope of achieving what the author is suggesting is in the development of something similar, either direct REPL access to the game environment or DSLs embedded in the game engines (which already exist I'm sure). Outside of the big name engines, I'm curious about what existing options are (leaving out anything browser based because JavaScript is an obvious example), I know of LÖVE[2] but I'm not familiar with how "fun" games made in it are.

[1]: https://www.youtube.com/watch?v=KZjFVdU8VLI [2]: https://love2d.org/

nprescott··on Free Minimalistic Logos
Curious to see them branded as free - there isn't anything to indicate that they are. They are marked with a copyright and the message:

  > For questions, email us
I suppose I was expecting something licensed (freely?) like CC BY.

On the subject of the logos themselves, I wouldn't really call them minimalist so much as...flat. I almost expect them to be the product of an AI rather than a person.

nprescott··on Open Letter to the Emacs Maintainers
It sounds like the author wants basically everything about how Emacs is developed to change in order to better fit their ideas about what open source looks like.

There are plenty of established projects that don't use a "pull request" workflow, Emacs only recently migrated to Git; I don't have the discussion from ESR around migrating Emacs to Git handy, but it was a pretty slow process to "bring Emacs into the 21st century" and encourage contributions from new devs. There is simply no way the entire development workflow would change based on this critique. Never mind the fact that Emacs is RMS' baby, the suggestions are so far-fetched as to be laughable.

> the vast majority of modern software developers do not want to use email as their communication channel

This sounds more like "the vast majority of software developers like me" and I'm not sure how much value there is in debating something like that. Mark me down for "disagree". I have, in the past, skipped over projects when the only means of contribution or discussion is "sign up for our Slack/Gitter/etc. channel".

nprescott··on 1x Forth (1999)
I think I would disagree. I don't know that I had the same read on the article as you, but it didn't seem Moore was advocating simplicity for simplicity's sake, but as a means to and end (where the end is robust, maintainable software).

>> If it were a lot simpler I would have a lot more confidence that the technology would endure into the indefinite future.

I think he is (correctly) speaking to the byzantine systems which have been propped up (successfully!) to engineer the kinds of applications we are accustomed to (terminal emulators spanning hundreds of thousands of lines of code, web browsers spanning tens of millions etc.). It seems (from what I've read from and about Moore) his idea of empowering people is simplifying the surface area of a problem, rather than simplifying an interface to the problem (for lack of a better phrase).

People can't really use the solutions he presents or advocates to solve the kinds of problems they face with computers as they are being used but the argument might be made that they're solving the wrong problem. I think that we'll eventually come around to some diluted, almost unrecognizable conclusion along these lines - see the number of people advocating a "burn it all down and start over" approach after just half a century of computing. See also the amount of work spent on maintaining compatibility with relatively ancient systems in spite of these arguments.

← PreviousPage 2 of 3Next →