HNHacker News
TopNewBestAskShowJobs

notnarb

68 karma · joined May 1, 2015

[ my public key: https://keybase.io/notnarb; my proof: https://keybase.io/notnarb/sigs/37oFS1jaBDq5Tal0q1KcomIyUkB6zSbxOTvpT528EY0 ]
submissionscomments
notnarb··on Death of the Neighborhood Bar
I think a country bar/dance hall/saloon is unique in this regard when it comes to social dancing destinations.

They are certainly not for everyone but I have yet to have found another type of social dancing venue that balances being a hangout spot and a place to dance.

Line dancing in particular brings something to the table outside of couples dancing that gives those not interested in the potentially-unfamiliar social situation of dancing with someone else a reason to go. I think that especially helps to keep these communities going.

Quick plug: I've been trying to catalog country venues (and their dances and songs) at https://dancedocket.com

notnarb··on Google Hangouts now on Firefox without plugins via WebRTC
Not quite standardized, but Firefox appears to allow extension-less screensharing as of FF 52

https://wiki.mozilla.org/Screensharing

https://mozilla.github.io/webrtc-landing/gum_test.html

This is all done with parameters specified to getUserMedia as opposed to Chrome's extension-only "chrome.desktopCapture.chooseDesktopMedia"

As far as I can tell, the reason why screen-sharing is not more widely accessible is because of a security UX issue rather than a technical limitation. Both Firefox and Chrome are can provide you with media stream ID's to use in WebRTC negotiation, they differ mostly in the boundaries required to authorize access.

notnarb··on Insomnia REST Client
For people already used to org-mode + curl (or any CLI tool), I highly recommend using those together when exploring an API (granted, this involves throwing simplicity out the window)

  :PROPERTIES:
  :header-args: shell :var PASSWORD=not :var USERNAME=narb :var AUTH_URL="nova.example.com:5000/v2.0/tokens"
  :END:
  ...
  #+NAME: get-openstack-token
  #+BEGIN_SRC shell :cache yes :results verbatim
  export DATA='{
      "auth" : {
          "tenantName": "'"$TENANT_NAME"'",
          "passwordCredentials": {
              "username": "'"$USERNAME"'",
              "password": "'"$PASSWORD"'"
          }
      }
  }'
  curl -s $AUTH_URL \
      -H "Content-Type: application/json" \
      --data "$DATA" | jq -r ".access.token.id"
  #+END_SRC

  #+RESULTS[be67...]: get-openstack-token
  : deadbeefdeadbeefdeadbeef

  ...
  #+BEGIN_SRC shell :var AUTH_TOKEN=get-openstack-token
  curl -H "X-AUTH-TOKEN: $AUTH_TOKEN"
  ...
Not to discount tools such as postman / insomnia or other built-in editor tools like restclient-mode, they are all fantastic tools

Some quick reasons why I found this works best for me:

* Org-mode is already great as a dedicated note-taking tool

* This is immediately compatible with existing CLI examples or output from tools that offer 'export as cURL' -- this is especially useful if I want to reverse engineer an api request by browser is making

* Easy to export to an html/wiki document for immediate consumption by others with working CLI examples

* Composable with other CLI tools like jq and xmllint

* Plain-text files are easy to version control

notnarb··on How We’re Designing Channels
They have a whole blog post on the 'why'

https://stackoverflow.blog/2017/11/09/why-channels/

> For example, when developers need to ask their teammates questions, they tend to default to the tools that they’re already using daily: namely, chat and email. But those tools have their own problems. Chat is ephemeral and tough to search, and email is inherently limited to the people included or copied in. Both tools put a lot of strain on the few developers at a company who know the answer to a given question, and neither method excels at storage and recall.

notnarb··on Solaris to Linux Migration 2017
SmartOS has code specifically in place for using 'lx' branded zones as wrappers for docker containers (which is distinct from its support of kvm)

https://github.com/joyent/smartos-live/blob/master/src/docke...

https://www.cruwe.de/2016/01/27/using-docker-on-smartos-hype...

It's been a while since I've looked in to it, but if memory serves they are using docker filesystem snapshots without modification and running them on a thin translation layer of Linux system calls to Solaris system calls. Hard to find anything backing this up, so I could be way off the mark as to how it's implemented.

EDIT: forgot that's what 'lx' zones are: zones which allow the execution of Linux binaries

notnarb··on Firefox Focus – A new private browser for iOS and Android
Because Firefox Focus isn't itself a browser, but rather a wrapper around Android and iOS's built in browsers. That is why the underlying engine in blink/webkit and not gecko.

I am probably drastically simplifying things but the primary components of the app are just a content blocker and a preferences page.

notnarb··on A real world guide to WebRTC
The example site provided ( https://greggman.github.io/doodles/html5-webcam-iframe.html ) serves an iframe from a different domain so the site settings on the visible page do not affect the actual camera permissions:

Site settings: http://imgur.com/a/JIDeD (note: camera is set to 'block', but there is still the red dot in tab indicating camera access)

Camera usage: http://imgur.com/a/3HXHo (note: different domain listed)

notnarb··on A real world guide to WebRTC
> As it is, in Chrome, if you let a webpage access your camera (or mic) that page gets permanent permission to access the camera whenever it wants forever, no questions asked again.

Firefox asks if you would like to remember allowing camera access (this appears to be respected when refreshing the page):

http://imgur.com/a/3lbt2

Chrome does not:

http://imgur.com/a/2aSY5

notnarb··on Ask HN: Who is hiring? (June 2016)
Digium | San Diego, CA | Front End Software Engineer | Full-Time | Onsite

Digium is looking for front end software engineers to join our San Diego team to help build realtime web applications on top of Switchvox, a turnkey phone system targeting small and medium sized businesses.

Our stack includes Linux, PostgreSQL, node.js, React, and socket.io

If you are interested, you can find the full job posting here: https://recruitingapp-7001.umantis.com/Vacancies/423/Descrip...

Or feel free to email me at bhorsley@digium.com

notnarb··on Application data caching using SSDs
the http:// link you posted works fine, but if you attempt to access the link via https ( https://techblog.netflix.com/2016/05/application-data-cachin... ), I get a "Secure Connection Failed" in Firefox.

Screenshot:

http://storage8.static.itmages.com/i/16/0525/h_1464199626_32...

That said, I'm not being redirected and I don't know why gp is.

notnarb··on New SourceTree is here
> scratches some itches that gitk doesn't quite. Tree visualization of multiple branches...

Just a quick PSA that gitk does support multiple branch tree visualization when started with the 'all' flag i.e 'gitk --all'.

This roughly mirrors the CLI's 'git log --graph --all'.

(not to say that either of these commands have a better UI/UX than SourceTree)

notnarb··on Nginx module by Google for rewriting web pages to reduce latency and bandwidth
> Recognizes common JavaScript libraries and redirects each to a canonical URL.

> Inserts Google Analytics javascript snippet.

While these are useful (and what appears to be optional) features, it leaves a bad taste in my mouth to think that a business reason for Google to support this library could be to lower the barrier of entry for developers to allow Google to track their users.

notnarb··on Newegg sues patent troll that dropped its case
Second sentence in the article:

> ... dropped its East Texas lawsuit against Newegg subsidiary Rosewill ...

And later on:

> Beyond the possibility of being sued again, Cheng noted that Minero continues to litigate against other retailers that sell Rosewill-branded products and that Newegg may have defense obligations to those other companies.

notnarb··on Mozilla Firefox Add-On Signing Update
(I do not work for Mozilla so this is speculation):

As far as I can tell, side loaded extensions require a full, non-automated, review http://i.imgur.com/r070Grv.png and it wouldn't surprise me if side-loaded extensions were the worst offenders.

Upon discovering a malicious extension, Mozilla could look through all extensions they've signed and blacklist (https://addons.mozilla.org/en-US/firefox/blocked/) all extensions with a similar signature similar to how some anti-malware databases work.

There is probably not all that much stopping you from writing a malicious extension that passes the AMO automated review (example: https://addons.mozilla.org/en-US/firefox/blocked/i1058), but the cost for malware writers is going to be significantly higher since it will be far easier for Mozilla to shut them down via their blacklists.

notnarb··on Mozilla Firefox Add-On Signing Update
Have you actually used Aurora? I can only speak to my own experience, but I have found it far more stable than any other 'alpha' software I've used.
notnarb··on Mozilla Firefox Add-On Signing Update
While I would agree that these changes are unfortunate for this specific use case, I do believe there are at least two workarounds for you:

1) Creating an AMO account and running the command line "jpm sign" tool yourself. This requires a bit of overhead per each new addon you want to make modifications to, but the actual signing of unlisted addons (which is entirely automated) had been fast and mostly painless in my experience.

2) Using Firefox Aurora/Developer Edition as your main browser and relying on its automatic update mechanism.

notnarb··on Major Linux Problems on the Desktop, 2016 Edition
Easy to see for yourself that this happens by using user agent spoofing in your browser's dev tools: http://i.imgur.com/vlLV8PW.png

Hard to track what exactly is causing this because of the ~200 requests this website makes before redirecting your browser.

The article itself links archive.org's copy of the article which I would recommend using over the original website since it appears to be free of malicious redirects:

http://web.archive.org/web/20151230152933/http://linuxfonts....

notnarb··on Can we use Jenkins for that?
> Having just learned of Travis on this thread, I can't seem to find its source code.

https://github.com/travis-ci/travis-ci

I don't think there's a quick and easy way to set up your local version of Travis, but it does seem possible.

> But is Travis really a tool or just a service?

I would certainly argue it's more on the 'service' end of things. If I had to guess, most people who find hosting their code on Github acceptable (Travis only works with Github at the moment) also find using the Travis web service acceptable as well so there isn't a lot of incentive to use Travis as a locally installed tool rather than using their as-a-service offering.

notnarb··on EC2 Dedicated Hosts
To save a trip to the calculator:

$2.341 (m3 host / hour) * 24 hours * 30 days = $1685.52

before the "up to 70%" reservation discount.

notnarb··on Chromium Blog: Streamlining Notifications on Desktop
Works fine for me in Ubuntu 14.04 with Unity as my Desktop environment and using the latest packaged version of Chromium.

It only comes up if you receive a notification from a website: http://imgur.com/lGOJrHb

You can then click 'Chromium - Notifications' to get what I believe to be the 'notification center': http://imgur.com/JyIVNvG

you can try it out if you open the chromium console (f12), and enter "setTimeout(() => new Notification("Insert text here"), 2000)" and alt-tab to something that isn't chromium.

Neat feature, but hard to expect users to figure it out on their own.

notnarb··on ShareX – Open-source screenshare software
Though not as polished as ShareX, Shutter (http://shutter-project.org/) is available for Linux and works pretty well.