HNHacker News
TopNewBestAskShowJobs

localhostdotdev

172 karma · joined April 9, 2019

submissionscomments
localhostdotdev··on Ask HN: What metaprogrammable language do you/would like to use?
> Ruby is notably absent as I use it and am looking for something better/different

what issues do you have with ruby? it's the de-facto standard for meta-programming

I often use things like `define_method`, `constants`, `method_missing`, etc in select places.

last fun thing I did was adding `let` and `it` to rails's tests.

localhostdotdev··on Otonomo, with nearly $55M in funding, is cloning our product
yes I meant I didn't see anything very old.

I meant that it's just copying the API format (e.g. probably to make migrating from the other service easy) which isn't uncommon (e.g. most of AWS services copied APIs)

localhostdotdev··on Otonomo, with nearly $55M in funding, is cloning our product
not sure how to formulate it but wouldn't a great execution be very hard to reproduce? looks like it's copying the external API.

also looking at the other company documentation, it's different from the screenshots: https://docs.otonomo.io/docs/getting-started (archive.org history is quite limited so may have been scrubbed)

edit: yes those "screenshots" are very disingenuous: https://smartcar.com/docs/api#introduction

localhostdotdev··on A Profile of Zoom CEO Eric Yuan
really liked appear.in until they added "sign up to create room" basically
localhostdotdev··on JavaScript debuggers are broken
s/Javascript/React (e.g. debugging works fine with stimulus/coffeescript for instance)
localhostdotdev··on Types will be part of Ruby 3 stdlib source
homebrew's performance is mostly network (git / http / https) and compilation times when needed.

also for some reason homebrew really likes to updates its index all the time (I think it got tamed in the newest version), but setting HOMEBREW_NO_AUTO_UPDATE to 1 helps a lot.

localhostdotdev··on Types will be part of Ruby 3 stdlib source
what's cool is that you can write your types in another directory / another repo, e.g. https://github.com/sorbet/sorbet-typed
localhostdotdev··on Types will be part of Ruby 3 stdlib source
small discussion that was marked as dupe https://news.ycombinator.com/item?id=19696669
localhostdotdev··on Sorbet: A fast, powerful type checker designed for Ruby
not sure why they don't release it, it's been a few years already
localhostdotdev··on Oracle Splats 300 Vulns in MySQL, Database, Fusion, etc.
so they are releasing security fixes with a new licensing agreement, wow glad I don't use any oracle stuff
localhostdotdev··on Source code for Zork, Hitchhiker’s Guide, and other Infocom games
not likely to be taken down as the CEO tweeted about it: https://twitter.com/natfriedman/status/1118057606159798274
localhostdotdev··on Notre-Dame cathedral: Firefighters tackle blaze in Paris
aleteia seems to just be a catholic media:

https://en.wikipedia.org/wiki/Aleteia

seems like it's an almost official catholic source

localhostdotdev··on Quick scan through lobsters's source code
I actually like master links better, they will at least try to be up-to-date instead of always behind. this could be discussed in a PR if you care
localhostdotdev··on Quick scan through lobsters's source code
I removed it but I think quite a few people (including me) tried to make it work with postgres (I did a lazy attempt where the search doesn't work)

https://github.com/localhostdotdev/lobsters-postgresql

localhostdotdev··on ‘Land Lordz’ Service Powers Airbnb Scams
reminds me of the beginning of e-commerce with all kinds of shady websites before amazon, paypal and now stripe came.

gumtree is probably the one who is going to have to reimburse all those people.

localhostdotdev··on Hacking Google ReCAPTCHA v3 Using Reinforcement Learning
> We consider that the agent successfully defeated the reCAPTCHA if it obtained a score of 0.9
localhostdotdev··on Support of Ruby 2.3 has ended
depends on where you are going to, ideally you would go for 2.6. the vast majority of gems is compatible with 2.6 so it would mostly be fixing internal code.

the main change I remember would be the Fixnum/Bignum disappearing in favor of the Integer parent class [1][2][3] (which isn't hard to fix).

also if you are stuck on 2.3 you might have a lot of other issues too (like outdated gems).

[1]: https://www.ruby-lang.org/en/news/2016/12/25/ruby-2-4-0-rele... [2]: https://www.ruby-lang.org/en/news/2017/12/25/ruby-2-5-0-rele... [3]: https://www.ruby-lang.org/en/news/2018/12/25/ruby-2-6-0-rele...

localhostdotdev··on Matrix.org Security Incident
account got banned :) (it's on archive.org though)
localhostdotdev··on Matrix.org Security Incident
content before it gets fixed:

    Time for actual transparency.

    [list of servers, uname -a for each]

    root@[name]:/var/lib/postgresql# df -h
    [list of partitions]

    $ cat users.txt | grep [name] | head -n1
    @[name]:matrix.org|[hash]
    $ wc -l users.txt
    [~6M users]

    See you soon.
(affects whole site, even https://matrix.org, site is on jekyll BTW)
localhostdotdev··on “How I discovered an Easter egg in Android's security”

    require 'base64'; Base64.decode64("Z29vZ2xlLXByb29m")
very easy /s
localhostdotdev··on DNSSEC Outage on www.cloudflare.com – 2019-03-21
time doesn't match exactly but that might be it: https://www.cloudflarestatus.com/incidents/3k7gtg4fml1p (https://www.cloudflarestatus.com/history for the list)
localhostdotdev··on Uber S-1
you forgot option B: raise prices, reduce costs
localhostdotdev··on Rails 5 and Vue.js: how to stop worrying and love the front end
started using stimulus and loving it so far, got sick of react and jquery (trying to use plain js + underscore + my own "utils")
localhostdotdev··on JQuery 3.4.0 Released
it doesn't export to the global namespace though:

    <script src="https://www.googletagmanager.com/gtag/js"></script>
    <script>$</script>
    ReferenceError: $ is not defined

    <script>jQuery</script>
    ReferenceError: jQuery is not defined
localhostdotdev··on Ask HN: Best place to start learning about Markov Chains?
markov chains are very simple at their core (e.g. simple version could be: take the probability of the next word given the known probabilities of words that follow the previous word)

it can be implemented in a few lines of code, that's the beauty of it: https://github.com/justindomingue/markov_chains/blob/master/...

obviously then you could take the previous n words into account, tweak the starting word, add randomness, etc.

now replace "word" with "state" and "probability(next state | previous state)" to edges of a graph: https://static1.squarespace.com/static/54e50c15e4b058fc6806d...

and you got a generic markov chain :)

footnotes: p(A | B) is probability of A given B, e.g. p(rain | clouds) > p(rain | sun) :)

localhostdotdev··on Julian Assange arrested in London
it's going to be interesting to see what is in all those insurance files https://legalinsurrection.com/2013/08/whats-behind-wikileaks...
localhostdotdev··on JQuery 3.4.0 Released
just a simple reminder:

    Top 1m 77.15%
    Top 100k 87.37%
    Top 10k 88.83%
https://trends.builtwith.com/javascript/jQuery
localhostdotdev··on The Urgent Quest for Slower, Better News
my take on this is that's it's better focus on major actions taken during a mandate (and that's what people who don't care too much about politics do) to then inform the next vote.

that's why politics before the rise of the internet were much more formal, people remembered what was done and said.

now there is just so much noise it's very hard to distinguish the signal, which leads to people being influenced and directed into "identity politics" (are you yellow or green, blue or red, left or right, good or bad?)

localhostdotdev··on Is Anyone Listening to You on Alexa? A Global Team Reviews Audio
yes and google does it too, which is very creepy and not useful to the user at all.

unlike the location history where I understand the use case and maybe search history. but all those should be disabled by default.

localhostdotdev··on GitHub Has Become a Haven for China's Censored Internet Users
that was for shadowsocks I think (e.g. a powerful tool to escape the chinese firewall).

they even tried to DDoS github as far as I remember.

← PreviousPage 2 of 3Next →