Better HN
topnewbestaskshowjobs
Log inSign up

localhostdotdev

172 karma · joined Apr 9, 2019 (7y ago) · 98 submissions

Submissions

comment 7y ago · link · parent

to be fair, i went there, saw rip and didn't read further :)

comment 7y ago · link · parent

oh nice, i didn't know where the coin flipping quote came from: https://en.wikiquote.org/wiki/Piet_Hein

comment 7y ago · link · parent

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 :(

comment 7y ago · link · parent

already better than s3 :) makes me think of https://www.reddit.com/r/DataHoarder/

comment 7y ago · link · parent

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

comment 7y ago · link · parent

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

7.

Peg.js – Parser Generator for JavaScript(pegjs.org ↗)

1 points · by localhostdotdev · 7y ago · discuss

comment 7y ago · link · parent

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)

comment 7y ago · link · parent

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)

comment 7y ago · link · parent

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)

comment 7y ago · link · parent

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...

comment 7y ago · link · parent

    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

comment 7y ago · link · parent

> 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.

comment 7y ago · link · parent

kinda hoping "testing weak passwords on your existing user's passwords" becomes standard practice at some point.

comment 7y ago · link · parent

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...

comment 7y ago · link · parent

> 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?

comment 7y ago · link · parent

discussion on lobsters where I posted it recently: https://lobste.rs/s/m4f2ke/don_t_do_this

comment 7y ago · link · parent

works fine for me™️ here is a copy: https://outline.com/jHJzzZ

comment 7y ago · link · parent

the website: https://www.wepark.us

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

comment 7y ago · link · parent

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.

21.

Newest coworking space costs just $2.25 an hour, because it is a parking spot(fastcompany.com ↗)

79 points · by localhostdotdev · 7y ago · 85 comments

comment 7y ago · link · parent

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)

comment 7y ago · link · parent

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)

comment 7y ago · link · parent

Github's https://primer.style/

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

I guess most companies have a design system in place

1234