HNHacker News
TopNewBestAskShowJobs

101km

496 karma · joined September 18, 2016

Zaphod's just this guy - y'know?
submissionscomments
101km··on InfluxDB now supports Prometheus remote reads and writes natively
It sure is until you consider that now you have to maintain that endpoint and have it be constantly up or it will simply miss metrics. Not to mention the occasional network partition is outside your control.

Additionally, I would argue some sort of discovery/registry mechanism is in order anyway.

For example, Prometheus has very solid integration with Kubernetes. In this universe you have one central control plane thingy (the scheduler) responsible for bringing resources up and down, it updates the collector (Prometheus) about all the devices (pods, containers, damn we have too many terms for things) accordingly, which in turn scrapes on a best effort basis.

Once everything is hooked up like this you're basically guaranteed that applications that provide information about themselves will get scraped eventually. If they are reachable you'll know what is going on inside them, and if they are not, you'll know that too.

The advantages of this sort of decoupling are subtle and difficult to get right, but you'll be thankful down the line for having done so correctly from the get go.

101km··on Alphabet considers Lyft investment of about $1B
I don't think anybody is using istio quite yet..
101km··on InfluxDB now supports Prometheus remote reads and writes natively
I often encounter a lot of confusion about push vs. pull and whether you should pick Prometheus or Influx.

Prometheus comes along every so often and scrapes metrics your program exposes via a very simple API. This has the advantage that your code doesn't need to know about some endpoint of some cluster, it just needs to buffer up and expose some info it knows about itself from the recent past.

You don't need to maintain a cluster of Prometheus either, you can just run more than one for redundancy (kind of like an active-active) - it is meant for relatively ephemeral information, it is efficient, and one big Prometheus node will probably do you fine.

Where to store compacted historical metrics (less coarse resolution, still interesting data that you might not want to throw away) and how has been an open question. Sinking it into influx could be a good answer, so this is welcome news.

101km··on Release for CentOS Linux 7 (1708) on x86_64 derived from RHEL 7.4
As a public service I'll just leave this here: https://dougvitale.wordpress.com/2011/12/21/deprecated-linux...
101km··on Overthinking Fizzbuzz with Monoids
Sorry, it is very early in the morning so I'm still waking up. I didn't mean anything by the groggy 'vs' other than a rosetta syntax comparison to Python.

With that being said, I don't think my snippet lost clarity and is functionally (har har) equivalent to the Haskell.

I believe where Haskell would shine is if the mappend operated on a more complex type than a regular string, but honestly I've only started reading learn you a Haskell two days ago so maybe I'm missing something deeper?

Edit: I guess you could say Python strings are monoids and maybe works on ''.

101km··on Overthinking Fizzbuzz with Monoids

  from functools import partial  

  def rem(i, n, message):
    return message if not (i % n) else ''

  [(''.join([
     partial(rem, message='fizz', n=3)(i),
     partial(rem, message='buzz', n=5)(i)
     ]) or i) for i in range(1,101)]

vs

  {-# LANGUAGE MonadComprehensions #-}

  module Main where
  import Data.Monoid (mappend)
  import Data.Maybe (fromMaybe, listToMaybe, maybe)
  import System.Environment (getArgs)

  fizzbuzz i = fromMaybe (show i) $ mappend ["fizz" | i `rem` 3 == 0]
                                            ["buzz" | i `rem` 5 == 0]

  -- mapM_ is our iterator, putStrLn writes to console.
  main = mapM_ putStrLn [ fizzbuzz i | i <- [1..100] ]
101km··on Billionaire Porn King Reinvents Himself as Japan's Startup Guru
Apropos of nothing one could look up exchanges ordered by Bitcoin USD volume here: https://www.cryptocompare.com/coins/btc/analysis/USD
101km··on Why Bannon Lost and the Globalists Won
Something like TPP improves the bargaining power of its multitude of smaller members whereas bilateral trade agreements favor the largest participant as it can divide and conquer.

I believe Trump, in his mind, would rather throw his weight around against the German auto industry for example and "cut a deal" with Merkel rather than with the entire EU.

http://www.businessinsider.com/trump-trade-merkel-germany-eu...

The US has had an enviable trading position ever since Bretton Woods but the world has caught up. The US being unfairly squeezed or experiencing fair competition is a matter of perspective I suppose.

The Bannons of the world are not wrong to notice the US lead is shrinking and something has got to give - but perhaps their solutions are a bit naive.

101km··on Tesla workers: To hell and back again

  Tesla has been spending an average of $100 million a week on capital expenses, mostly to manufacture the Model 3, according to chief financial officer Deepak Ahuja.
101km··on URL obfuscation (2002)
https://link_back_to_this_thread(doesntactuallyworkbecausecl...
101km··on Filecoin Suspends ICO After Raising $186M in One Hour
There are no exchanges that will let you withdraw $xx million a day in fiat.

They'll need to spread the ETH to basically all the big exchanges, with multiple bank accounts attached, and liquidate large sums everyday for months and hope none of the accounts get frozen.

Still quite the windfall even if realistically just a fraction of the sums being thrown around.

101km··on Why Germans pay cash for almost everything
You can still buy the oyster card with cash however, right?

Now try catching a bus late at night after the shops close - what a silly system.

101km··on Elon Musk Says AI Is the ‘Greatest Risk We Face as a Civilization’
Elon Musk is a geek who learned to drop exactitude when communicating to the masses.
101km··on The story of the Slovak national top-level domain
Don't be limited by browser plugins. The only limit is yourself.
101km··on $185M in 5 days: Block.one sets new ICO record with its EOS token
It is well on its way to dwarf it.
101km··on Switching to the Mutt Email Client
There is a perverse kind of joy in making it work the hard way.
101km··on Chrome Won
Ideological leanings aside as an end user I went back and forth between Chrome and Firefox several times.

In fact I would visit https://arewee10syet.com every couple of months and sigh for years wanting to switch back.

On Firefox I used to have hundreds of tabs open and no visible ui chrome most of the time, just vimperator/pentadactyl and usually hidden treestyle tabs. Along with a rotating collection of adblockers and privacy extensions.

These days? I just use Safari on a Macbook with Content Blockers (https://webkit.org/blog/3476/content-blockers-first-look/). My battery lasts double digit hours and everything is always snappy. Readability and integrated 'read it offline later' mode is a cherry on top.

Ultimately I think we forget that with Flash being truly dead and buried on pages with no junky javascript trackers even a NeXT computer, far less powerful than your phone, should be enough.

And all the browsers are now able to limit the damage a heavy/crappy page (like gmail) does to its own tab.

tldr; And Jesus wept for there were no more worlds to conquer.

101km··on GitLab 9.2 Released with Multiple Assignees for Issues and Pipeline Schedules
Beware of cargo cults.

Edit: Pointing out that you might not actually need to muck about with all this stuff when you're just starting out is not unreasonable.

101km··on Bitcoin at $2000
When I was 16 I begged to the point of shouting at my father to buy AAPL. In fact I forced him to take all my life savings ($5000) and put a good chunk of his own in.

This was in 2005 before the stock split. So not quite 125x but can't complain (I also used to time it a bit back when it was an iPod company and not an iPhone company, it used to be very predictable).

Cigar buds are always out there. Some years I have no ideas so I simply don't invest in anything (haven't for the past 5). I'd just as soon buy Bitcoin as I would tulips or beanie babies -- in other words, I'm not skilled enough to invest in what I don't understand. I understood iPods. My other investments from that time period were Seagate (undervalued compared to peers), and Macromedia/Adobe.

Not even Satoshi himself can tell you the future of Bitcoin, it is entirely speculation.

101km··on Go Long on Web Components
http://jonrimmer.github.io/are-we-componentized-yet/ https://platform-status.mozilla.org/#html-imports

HTML Imports are only implemented in Chrome and it is going to stay that way, Firefox and Safari aren't having it. This is arguably a bummer but not critical for Web Components.

What is critical is that Custom Elements and Shadow DOM (V1) are in the latest Chrome and Safari but not on the horizon for Firefox and Edge. Supposedly it is planned, but unclear when it will actually arrive. 2018?

101km··on Let's Encrypt is down
Clearly it is high time for an EncryptWeShall nonprofit with a wholly separate implementation and team and all the tooling adjusted to randomly pick between the two.
101km··on Twitter co-founder Biz Stone is returning to the company
> "In recent years, talking to twitter employees you get this amnesia over the company's culture and history. People don't know where things came from, they don't know the story of how the came to be. The myth's are complicated and messy. And eventually go so messy the company stopped telling the story of how twitter came to be where it is now all together."

That always happens, the raison d'être gets lost after the initial cohort moves on.

Twitter is just another big corporation now, like any big corp employees will pay lip service to vague corporate values (with a few true believers).

Rolling out a heavily decorated old timer in 1870 will not inspire the troops to fight anew for the glory of the French empire.

101km··on Researchers answer a question about the decline of the middle class
It is similar to "Peak Oil". Things are finite, nothing grows forever.
101km··on Researchers answer a question about the decline of the middle class
I believe parent is saying "Peak GDP".
101km··on NeoVim 0.2.0 released
Can you please elaborate how you make use of the built in terminal emulation of neovim? Whenever I see a mention I think "neat" but have yet to integrate it into my workflow.
101km··on How Harvard Business School Has Reshaped American Capitalism
I think this is called failing upwards.

As you allude, an outsider to this cohort crashing into the program should keep expectations in check. Barry Lyndon comes to mind.

I wish it was more socially acceptable to have two year gaps in ones resume and sail around the world or something.

101km··on How Harvard Business School Has Reshaped American Capitalism
People who go on to have an outsized impact on the world don't usually participate in programs that are neither useful to their careers (to the point of being detrimental) nor transformative to their lives.

If a Harvard MBA is essentially pointless like you describe - people go into it and come out the same - the only reason to pursue it is to buy into the network.

Hence, perhaps, the "Golden Passport" nomenclature. You'd also notice the author didn't write "Golden Ticket", which I dare say, is an interesting freudian slip.

101km··on Smart Photos
Very frequently on tinder I've seen profiles where from amongst a set of unremarkable photos the one picture of the users derriere was selected.

Whether or not this is a case of overfitting I leave up to you to decide.

I did ask a user in person once, she wasn't pleased.

101km··on Write Fast Apps Using Async Python 3.6 and Redis
That's... actually not a bad idea. ᕕ( ᐛ )ᕗ
101km··on Universal USB-C charging: How the dream is coming true
I have a Macbook and this incredibly tiny Nonda USB-C $10 adapter: https://www.amazon.com/nonda-Adapter-Smallest-Aluminum-Indic...

It is much smaller than the Apple dongle and allows you to carry just the Macbook charger and a standard Micro USB cable to charge older cellphones and the kindle.

I did have one die on me after about a year of abuse and immediately repurchased it. Hopefully it will last long enough for me to upgrade my phone/kindle/smart-card-reader. Anker batteries also support USB C and happily charge the Macbook, they also make nice braided cables.

Next up would be next-gen tiny chargers like this (65W): http://www.theverge.com/circuitbreaker/2017/2/10/14581300/fi...

Unfortunately that specific one has a proprietary connector on one end but probably the next version will be fully standard. One tiny charger, one high quality cable, for all your devices. We're almost there.

← PreviousPage 2 of 3Next →