HNHacker News
TopNewBestAskShowJobs

joaomsa

774 karma · joined April 9, 2013

[ my public key: https://keybase.io/joaomsa; my proof: https://keybase.io/joaomsa/sigs/nXbdhlaeJkAoXQjggv7p-m1X7OFNL72gvZ4qKD9O6oQ ]
submissionscomments
joaomsa··on Introduction to PostgreSQL Indexes
Essential reading. More in-depth than an introduction, but without being overly impenetrable except to those dealing with the internals.
joaomsa··on Google sets burial date for legacy Chrome Extensions, fears for ad-blockers grow
Thanks for tip, I've always wondered what was the root cause of those occasional stutters, specially since I often speed up videos
joaomsa··on Firefox 89.0 Beta brings a new look
My pet peeve is with the still half finished look, it jumps out as really garish now to when you open the dev tools and see the clashing styles or the bookmarks/history dialog that hasn't been updated in ages.

Not to mention the white title bar in some dialogs even with dark mode enabled.

joaomsa··on An Update on MDN Web Docs
pledged
joaomsa··on Firefox 76
Might affect (dumb) uses that rely on the current increasing version number scheme in user agent strings and package/deployment scripts.
joaomsa··on Phaistos Disc
The Proposal for encoding the Phaistos Disc characters[1] lists the motivation behind including it (and rebutes some counter arguments). Principally, lots of publications discussing the Phaistos Disc would use it:

> Phaistos Disc characters, whether syllables, or letters, or board-game dingbats, have historical and cultural significance, as attested in the large number of publications dealing with it. As noted above, the Wikipedia has articles about the Phaistos Disc in ten languages. The 30+ documents listed in the bibliography in this proposal are by no means the only documents printed which deal with the Phaistos Disc characters. The English Wikipedia article gives Phaistos Disc characters inline in text as well as in tables (Figure 8). Other documents exist which present the Phaistos Disc characters either inline (Figure 8) or in tables (Figures 1, 2, 5, 6, 7). It is true that the image of the Phaistos Disc itself is easy to represent with simple drawing (see Figure 3) but the discussion of its characters inline in Latin text is not.

[1] https://www.unicode.org/L2/L2006/06095-n3066-phaistos.pdf

joaomsa··on Org-Mode Is One of the Most Reasonable Markup Languages to Use for Text (2018)
This looks really nice, do you have plans to implement text search of note contents? No matter how methodical I get with tags and hierarchies, nothing beats search for recall.
joaomsa··on Why JWTs Suck as Session Tokens (2017)
How to people usually get around file downloads and initial page loads with JWTs (besides signed urls), since you can't control and preempt these requests to also send the JWT?
joaomsa··on RssHub – A feed aggregator that can generate feeds from pretty much everything
Nice companion to: http://fetchrss.com/
joaomsa··on Mozilla plans to remove RSS feed reader and Live Bookmarks support from Firefox
My guess would be yes since there's this for Chrome: https://github.com/davidhampgonsalves/foxish

Since Firefox's WebExtension API is a close superset to Chrome's API, I would wager this could be easily ported now.

joaomsa··on Deep Dive: New Bookmark Sync in Firefox Nightly
I did mention using bookmark keyword searches as hack to get sync, but I'm talking about proper support for syncing user registered OpenSearch[1] providers (and any user configured keyword shortcuts for them)

As of now you can add an OpenSearch[1] provider in Firefox using the javascript api `window.external.AddSearchProvider(engineURL)` where engineURL is the XML file description of the search engine like this one for IMDb search:

https://m.media-amazon.com/images/G/01/imdb/images/imdbsearc...

This is the method the Mycroft[2] project uses, which Firefox recommends. Chrome though, besides also supporting that API, looks for a search meta tag in a page's head after you visit it liking to the same OpenSearch provider xml

<link rel="search" type="application/opensearchdescription+xml" href="https://m.media-amazon.com/images/G/01/imdb/images/imdbsearc... title="IMDb">

In Chrome, after you visit their home page with that metadata it's registered as a provider so once you start typing Imdb in the omnibox, you see an indication to press 'Tab' in the right corner of the omnibox, and it switches to searching imdb instead. Even providing autocomplete if the search provider supports it.

Firefox could make registering these more discoverable from the UI (adding via a page action as an example at least?)

[1] http://www.opensearch.org/Home [2] http://mycroftproject.com/

joaomsa··on Deep Dive: New Bookmark Sync in Firefox Nightly
While I've never experienced conflict issues with bookmark sync, one pet peeve of mine is how their sync implementation has never supported syncing search engines.

I mean proper OpenSearch support, different from using keyboard bookmarks with %s as a hack, since you actually get proper autocomplete.

In fact that whole situation there is just a mess, no proper way to use sites that implemented OpenSearch from the awesomebar like the Tab to search in chrome's omnibar.

joaomsa··on How to get enough protein without meat
My guess it's a convenience compromise. Nutrition labels list macro nutrient amounts in metric, but packaging still has the product amount more prominently in imperial measurements.
joaomsa··on Ubuntu 17.10 Artful Aardvark released
I wonder if Canonical will also release 17.10 as a Windows Store WSL app or stick to LTS releases and wait until 18.04 for an update.
joaomsa··on Podcasts to make you smarter
Peter Adamson is pretty thorough, living up to the HOPWAG name. However, he's still consistently putting out episodes every Sunday, give it a few years and it'll get there for sure.
joaomsa··on Podcasts to make you smarter
If you're into history/philosophy, can't recommend enough:

- The History of Philosophy Without Any Gaps [1]

Manages to truly live up to its name while remaining very approachable to someone not very familiar with philosophy.

- In Our Time [2]

Technically a long running BBC radio program with a massive back catalog, but many episodes would certainly interest HN users with very insightful discussions.

These aren't the sorts podcasts I can follow along easily while doing other things though.

[1] https://historyofphilosophy.net/

[2] http://www.bbc.co.uk/programmes/b006qykl/episodes/player

joaomsa··on Arch Linux pulls the plug on 32-bit
That need has been met by the x32 ABI for some time now, it combines some of the best parts of the x86_64 arch with the lower memory consumption of 32bit (still limited to 4gb max memory though)

https://en.wikipedia.org/wiki/X32_ABI

joaomsa··on Lua: A Guide for Redis Users
I keep a bunch of small scripts for common tasks like deleting or aggregating keys maching certain criteria.

I wish redis offered a mechanism to save and call these scripts from the server, akin to the usual database functions and stored procedures.

I wonder if this was a conscious decision or something that's in the pipeline eventually.

joaomsa··on Show HN: JinjaSQL – Generate SQL Queries using a Jinja Template
Can you interpolate table and column names? Those usually aren't amenable to change in prepared statements
joaomsa··on What’s Next for Multi-Process Firefox
Was in the same corporate boat as you a while back. The FoxyProxy addon [1] is much more flexible, I recommend you switch to that since it enables quick toggling between the IE proxy and your configured ones.

[1] https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-sta...

joaomsa··on What’s Next for Multi-Process Firefox
Looking at https://areweslimyet.com it looks like memory consumption has been on a slight upward trend. Are these tests conducted with e10s or should we expect a massive increase?

As one of those pathological users that often keeps 50+ tabs open (somewhat manageable with the tabgroups addon), I'd hate to see one of the principal Firefox advantages go away.

joaomsa··on The Monaco Code Editor
Monaco doesn't have alternate keybinding modes like vim or emacs that ace has.
joaomsa··on StumpWM – Tiling Window Manager in Common Lisp
On the topic of tiling WMs, any promising Wayland compatible ones?
joaomsa··on Ditching tmux
Does neovim have session persistence for those embedded terminals? Can you share a session with other people as easily for pair programming/debugging?

I'm not familiar with neovim's terminal emulator. What happens when I press CtrlX-CtrlE? Is it similar to a normal terminal with readline set to vi binding?

joaomsa··on This could be the food of the future–if you can handle it
Given the much smaller carbon footprint and empathetic connection humans have with bugs, I wonder how most vegans/vegetarians feel about incorporating it into their diets.

Seems like an amazing source of complete protein and B12 vitamin. http://www.cricketflours.com/5-reasons-you-should-be-eating-...

joaomsa··on The concept of “learning styles” is one of the greatest neuroscience myths
I really liked the comment on the linked nymag article.

> Alan Turing demonstrated (discovered?) that information processing (computation) is necessarily universal. That is, no matter the physical configuration of the computational medium—DNA, brain, software, etc.—the underlying principles of its operation must be identical. This, it turns out, follows from the laws of physics; if it were not the case, sentient life could not have evolved from inorganic materials and processes. The implications a inordinately far-ranging, but one of them surely is that all learning must ultimately conform to the basic laws of information processing. In the end, to "know" something amounts to the same thing for everybody. Physical skills are an obvious example: no matter what "style" we think we discern, throwing a ball works only one way, and there is only one way to learn how to do it (practice). The same goes for reading and, yes, math.

http://nymag.com/scienceofus/2015/12/one-reason-the-learning...

joaomsa··on Accounting for Taste: How packaging can make food more flavorful
"Why not mitigate that increased salt consumption, and its attendant health hazards, by presenting the soup in a blue container, a color that Spence has shown can make food seem significantly saltier"

Maybe Campbell's should rethink their iconic design.

joaomsa··on Flowchart.js – Simple SVG flow chart diagrams from textual representation
Reminds of http://knsv.github.io/mermaid/flowchart.html

Both could use better node layout engines and support for DOT syntax or might be easier to adapt graphviz with Emscripten.

joaomsa··on Unhealthy Fixation
The article's point is that generalizations about GMd foods are ignorant and each case needs to be evaluated on it's own merits and dangers.

It's very well sourced (though it does occasionally fall prey into cherry picking) to show cases of both positive impacts like GMO Papaya and Golden Rice and negative like increased RoundUp usage.

Would be great if public perception adopted this skepticism and questioned practices that aren't discussed for labeling like widespread Bt spray usage vs the GMO included one.

joaomsa··on Ask HN: What are you doing to improve your health?
I quit smoking roughly 3 months ago, since I missed being able to run and not desire death afterwards.

Could already feel big difference with improved sleep after just 1 week of quitting, with sense of taste and smell also noticeably improving. Lung capacity that hasn't returned as much as I wished though.

Page 1 of 3Next →