HNHacker News
TopNewBestAskShowJobs

localhostdotdev

172 karma · joined April 9, 2019

submissionscomments
localhostdotdev··on YTMND is down for temporary maintenance
to be fair, i went there, saw rip and didn't read further :)
localhostdotdev··on The Problem of Thinking Too Much (2003) [pdf]
oh nice, i didn't know where the coin flipping quote came from: https://en.wikiquote.org/wiki/Piet_Hein
localhostdotdev··on Material Design Guidelines for Dark Mode
you were programming in text, a very popular programming language that i'm using right now :)

here is a peg grammar:

    text = $.*
you can try it at https://pegjs.org/online :)

edit: sry to disappoint but this matches binary files too :(

localhostdotdev··on Unlimited Google Drive storage by splitting binary files into base64
already better than s3 :) makes me think of https://www.reddit.com/r/DataHoarder/
localhostdotdev··on A Norwegian town built a giant mirror to deflect the sun (2017)
wow that's quite amazing! could be worth it even at 10k+

here is a direct link so people don't have to copy/paste https://innerscene.com/products

localhostdotdev··on The boring front-end developer (2014)
this is my definition of a boring programmer:

- makes code that works

- solves people's problems

- doesn't care what other programmers think

edit: the truth is a boring programmer won't even read this, just doesn't care, doesn't read hn, just does stuff

localhostdotdev··on GitHub Package Registry
debian packages are also supported it seems: https://github.com/git-lfs/git-lfs/packages/5789 and https://github.com/alteregofun/firsty/packages/2953

found a ruby one: https://github.com/wintron/hola/packages/4057 (yes! got it working)

localhostdotdev··on Database IDs Have No Place in URIs (2008)
pretty cool how the urls stayed the same:

http://stackoverflow.com/questions/13204/why-doesnt-my-cron-... (still works)

http://stackoverflow.com/questions/21064/massive-reputation-... ("this question was removed from stack overflow for reasons of moderation", still available: https://i.imgur.com/Csy94IL.png)

localhostdotdev··on Estimating Number of Jupyter Notebooks on Github
thanks for linking there, tried to make some ruby notebooks and works quite well https://nbviewer.jupyter.org/github/localhostdotdev/notebook... (very similar to the github interface though)
localhostdotdev··on To ORM or Not to ORM
I stayed close to what the author did.

adding an index:

    add_index :tags, :name
adding a null constraint:

    change_column :tags, :name, :string, null: false
    validates :name, presence: true # for proper validations
https://github.com/localhostdotdev/bug/commit/3765237008c36c...
localhostdotdev··on To ORM or Not to ORM

    rails g model Post published_at:datetime title content:text
    rails g model Comment post:references author published_at:datetime content:text
    rails g model Tag name
    rails g model PostTag post:references tag:references

    class Post < ApplicationRecord
      has_many :comments
      has_many :post_tags
      has_many :tags, through: :post_tags
    end

    class Tag < ApplicationRecord
      has_many :post_tags
      has_many :posts, through: :post_tags
    end
from there it's just regular rails:

    Tag.find_by(name: "something").posts
    Post.joins(:tags).where(tags: { name: "something" })
    Tag.create(name: "something")
    Post.create(...)
    Tag.first.posts << Post.all.sample(2)
made a little repo if people want to play with it: https://github.com/localhostdotdev/bug/tree/orm-or-not-orm
localhostdotdev··on What we know about Lockheed Martin's mysterious SR-72
> for intelligence, surveillance and reconnaissance (ISR) and strike missions (wikipedia)

for the strike part, wouldn't it be better to use a satellite-based system, I would think it could reach any place on earth much faster given the initial velocity of being in orbit.

e.g. missiles/drones would be launched from a satellite at 8000m/s (17000 mph, 3/4 times faster than the SR-72), and they could be distributed globally. I'm just unsure about the descent phase but sounds like it would work out.

localhostdotdev··on Repositories held for ransom by using valid credentials
kinda hoping "testing weak passwords on your existing user's passwords" becomes standard practice at some point.
localhostdotdev··on A New Way of Voting That Makes Zealotry Expensive
there is a democracy index: https://en.wikipedia.org/wiki/Democracy_Index

there is something similar for voting systems but it isn't as elegant: https://en.wikipedia.org/wiki/Comparison_of_electoral_system...

localhostdotdev··on A New Way of Voting That Makes Zealotry Expensive
> An intriguing new tool of democracy just had its first test in the real world of politics, and it passed with flying colors.

how can you even measure if a voting system is a success?

localhostdotdev··on Common mistakes in PostgreSQL
discussion on lobsters where I posted it recently: https://lobste.rs/s/m4f2ke/don_t_do_this
localhostdotdev··on Bento – An Android UI Framework
works fine for me™️ here is a copy: https://outline.com/jHJzzZ
localhostdotdev··on Newest coworking space costs just $2.25 an hour, because it is a parking spot
the website: https://www.wepark.us

the original twitter thread (first test drive): https://twitter.com/VictorPontis/status/1121521771633500160

localhostdotdev··on Newest coworking space costs just $2.25 an hour, because it is a parking spot
exactly what I was thinking, e.g. "need a working space anywhere? just use the app and rent a one of our free spaces or share one"

I could definitely see VC money going into this, maybe even an existing company doing it.

the parking spots could have temporary structures to make it more like an office, have plugs, internet, etc.

then it could expand globally and it's no issue if it's outlawed in one city/country, just go to the next city/country.

localhostdotdev··on Police misconduct: Search discipline records for thousands of cops
there are pdf and txt files available also:

e.g. https://assets.documentcloud.org/documents/5977583/New-York-... and https://assets.documentcloud.org/documents/5977583/New-York-...

(url can be easily derived from the urls in the csv, "https://www.usatoday.com/documents/5977583-New-York-Decertif... in this case)

localhostdotdev··on Over 13% of the homes in Japan are abandoned
wouldn't that be a sign of a healthy housing market? (e.g. liquidity)

if 99%-100% of homes were occupied then it would reach saturation (hard to buy/rent homes)

localhostdotdev··on Base Web, Uber’s New Design System for Building Websites in React
Github's https://primer.style/

Google's https://material.io/design/

I guess most companies have a design system in place

localhostdotdev··on Could time be logarithmic? (2016) [pdf]
found from a comment on the incorrect calculations of speed of the expansion of the universe: https://www.reddit.com/r/space/comments/bhoapu/hubble_finds_...
localhostdotdev··on Gitlab 11.10 Released
reminds me of github's project paper cuts https://github.blog/2018-08-28-announcing-paper-cuts/
localhostdotdev··on Propose HN: 'Countless' experiment – hiding all karmic integers
not so easy for lower scores :)
localhostdotdev··on Propose HN: 'Countless' experiment – hiding all karmic integers
you could use https://news.ycombinator.com/over?points=200 or maybe the experiment could allow opt-out
localhostdotdev··on Propose HN: 'Countless' experiment – hiding all karmic integers
css version tested with stylus:

    .score { display: none } /* stories and own comments */
    .pagetop { color: transparent !important; } /* hide karma top right (also hides username and logout) */
    #me, #logout { color: black } /* show username and logout */
    #hnmain > tbody > tr:nth-child(3) > td > form > table > tbody > tr:nth-child(3):not(.athing) { display: none } /* own profile */
    #hnmain > tbody > tr:nth-child(3) > td > table > tbody > tr:nth-child(3):not(.athing) { display: none } /* other user profile */
I don't think it could easily be truly hidden but a css experiment might be interesting.
localhostdotdev··on A 'Blockchain Bandit' Is Guessing Private Keys and Scoring Millions
doesn't seem that hard, launder it through mixers and then sell it on unregulated exchanges at a discount, maybe use localbitcoins too.
localhostdotdev··on Show HN: WAPM – Package Manager for WebAssembly
anyway, sounds really cool and hoping it gets inspired by things like bundler/homebrew more than npm/yarn.

btw it has "telemetry" enabled by default.

edit: thanks for the link, didn't find the source previously

localhostdotdev··on Japan is scrambling to reconcile systems with imperial calendar
the issue is that the name of the new era was unknown until ~2 weeks ago as far as I can tell

https://bugs.ruby-lang.org/issues/15195

https://bugs.ruby-lang.org/issues/15742

Page 1 of 3Next →