News for hackers. Stuff that matters.

coconutrandom

Re:What is energy, actually? (2011) on Friday November 29, 2019 @07:43AM (#21663992)
#4 is super important once you notice that "investors" includes pension plans.
Re:ShareDrop – P2P File Transfer Using WebRTC on Monday November 04, 2019 @05:08AM (#21440261)
Just shows "Loading" and the warning "firebase.js:39 FIREBASE WARNING: The Firebase database 'sharedrop' has reached its peak connections limit."

But if this is interesting, checkout https://instant.io which uses the webtorrent protocol.

Re:Hellvetica.ttf – Kern in Hell on Tuesday October 29, 2019 @02:54PM (#21390746)
Ah yes, ".ttf" will work just the same.
Re:Hellvetica.ttf – Kern in Hell on Tuesday October 29, 2019 @02:08PM (#21390261)
If anyone is interested in automating it, I wrote up quick howto in Python a few days ago. https://readevalprint.com/Schmelvetica.html
Re:Email tracking pixel support on Wednesday October 23, 2019 @07:26AM (#21333449)
If you want to Smelvetisize other fonts, I wrote up a quick script and how-to do it with python. https://readevalprint.com/Schmelvetica.html
Re:What Happens to the Body on No Sleep on Friday October 11, 2019 @01:56AM (#21221886)
Wow, I thought that only happened to me. There was only one specific project I was on where I would have the not so practical fantasy solution like you described. Others were like the parent, a good sleep discovers solutions, I wonder what my subconscious was saying about all of this.
One or two people have mentioned it to him before. https://twitter.com/Foone/status/1127083480674750465
meta: classic HN, top post is a Negative Nancy regardless of how impressive the new thing is. Is there a name for this phenomena yet?
Look up [Delegated] Proof of Stake
Re:Searching for a Future Beyond Facebook on Friday May 04, 2018 @03:10PM (#16997343)
They make money on hosting and compete on price and UI.

But to be blunt, nothing can stop users from re-centralizing to the cheapest/fastest/easiest system regardless of how decentralized the protocol.

Not sure why they downvoted this. This is an accurate comment.
Money can influence but won't guarantee success. They still need to execute on something. And surely at some point in describing process for us, there could be is a nugget of knowledge that triggers some insight in someone else.
In the past we would poke holes in the start-up idea or the weekend hacking project, but in good fun and there would be solid feedback generally. Having someone execute their idea, and then go out of their way to explain the process to the rest of us should be a source of encouragement. It makes me sad just how personal the dismissiveness on HN has become.
Re:What is Money? (1913) on Thursday March 08, 2018 @09:45PM (#16549479)
https://en.wikipedia.org/wiki/Executive_Order_6102

"..forbade the hoarding 'of gold or silver coin or bullion or currency', under penalty of $10,000 and/or up to five to ten years imprisonment. The main rationale behind the order was actually to remove the constraint on the Federal Reserve which prevented it from increasing the money supply during the depression"

https://en.wikipedia.org/wiki/The_Gold_(Control)_Act,_1968

"Desai finally introduced the Gold Control Act, on 24 August 1968, which prohibited citizens from owning gold in the form of bars and coins. All existing holding of gold coins and bars had to be converted to jewellery and declared to the authorities. Goldsmiths were not allowed to own more than 100 gms of gold."

I'm impressed, being content is as difficult as it is laudable. Do you contribute back to society in some other ways?
Re:The Evolving Economics of Bitcoin, Gold and Fiat Currencies on Wednesday November 01, 2017 @12:23PM (#15602791)
> never heard one good argument to backup the claims that Bitcoin can became a mainstream p2p fiat replacement

There are many reasons Bitcoin will not be the currency for daily transactions. Some of them are even technical. But, that is ok because it will be used as a store of value filling a need similar to gold. So I guess I'm agreeing with you. But it's taking people awhile to come to understand this subtle difference.

This is mostly inaccurate, the code behind the token creation and distribution is public. And while it's technically possible, in practice most token contracts do not give the creators the ability to mint to tokens on a whim.
Re:Let me introduce: __slots__ on Wednesday September 13, 2017 @01:41PM (#15240637)
A few years ago I had read about Python performance gains and some built in attributes, but couldn't find the reference when I looked. Well it was `__slots__`, thanks for posting!
git has shallow clones `--depth N`
So Django Templates also use dot notation lookups for dict, lists, and objects[0]

  Dictionary lookup, attribute lookup and list-index lookups are implemented with a dot notation:

  {{ my_dict.key }}
  {{ my_object.attribute }}
  {{ my_list.0 }}
  If a variable resolves to a callable, the 
  template system will call it with no 
  arguments and use its result instead of the callable.
Which leads to some interesting and confusing errors if you start iterating over `.items` and you get a callable and not the list you expect.

  In [17]: a = {"a": 1, "items": {"b": {"c": {}}}}
    ...: a_box = Box(a)
    ...: a_box
    ...: 
  Out[17]: <Box: {'a': 1, 'items': {'b': {'c': {}}}}>

  In [18]: a_box
  Out[18]: <Box: {'a': 1, 'items': {'b': {'c': {}}}}>

  In [19]: a_box.items
  Out[19]: <function items>

  In [20]: a_box.a
  Out[20]: 1

[0] https://docs.djangoproject.com/en/1.11/topics/templates/#var...

EDIT: This came up because our JSON commonly uses `items` as a key for a list of items, which I expect to be at `a_dict['items']`, and it has nothing to do with python's `a_dict.items`.

Re:Jupyter Notebook 5.0 on Tuesday April 04, 2017 @01:33PM (#14035229)
prepending commands with a "!" runs it in the shell, assuming you are using python.

  ! git commit add ./my_file.ipnb
http://ipython.readthedocs.io/en/stable/interactive/python-i...

Older »