Better HN
topnewbestaskshowjobs
Log inSign up

localhostdotdev

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

Submissions

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

> We consider that the agent successfully defeated the reCAPTCHA if it obtained a score of 0.9

comment 7y ago · link · parent

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

64.

Bootstrap Sass Backdoor(dgb.github.io ↗)

2 points · by localhostdotdev · 7y ago · discuss

65.

Hack Back a DIY Guide(pastebin.com ↗)

5 points · by localhostdotdev · 7y ago · discuss

comment 7y ago · link · parent

account got banned :) (it's on archive.org though)

comment 7y ago · link · parent

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)

comment 7y ago · link · parent

    require 'base64'; Base64.decode64("Z29vZ2xlLXByb29m")
very easy /s

comment 7y ago · link · parent

time doesn't match exactly but that might be it: https://www.cloudflarestatus.com/incidents/3k7gtg4fml1p (https://www.cloudflarestatus.com/history for the list)

comment 7y ago · link · parent

you forgot option B: raise prices, reduce costs

comment 7y ago · link · parent

started using stimulus and loving it so far, got sick of react and jquery (trying to use plain js + underscore + my own "utils")

72.

Hello, Stimulus(stimulusjs.org ↗)

1 points · by localhostdotdev · 7y ago · discuss

comment 7y ago · link · parent

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

comment 7y ago · link · parent

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

comment 7y ago · link · parent

it's going to be interesting to see what is in all those insurance files https://legalinsurrection.com/2013/08/whats-behind-wikileaks...

comment 7y ago · link · parent

just a simple reminder:

    Top 1m 77.15%
    Top 100k 87.37%
    Top 10k 88.83%
https://trends.builtwith.com/javascript/jQuery

comment 7y ago · link · parent

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

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

additionally for passwords that are already stored, it's not too costly to check the hashes against the blacklist and revoke those existing passwords.

comment 7y ago · link · parent

Thanks a lot for the explanation and the better sources, the TIFF image should probably be a torrent because it's not downloading very fast, the PNG image does give much nicer renders: https://i.imgur.com/zZcD5Na.jpg

comment 7y ago · link · parent

after experimenting for a while, I now prefer "for what purpose?" instead of "why?".

"why?" easily leads to cycles and going back down the abstraction hierarchy, where "for what purpose?" always goes up the abstraction ladder.

- why are you eating? because it's 7pm

- for what purpose are you eating? to satisfy my hunger

comment 7y ago · link · parent

editing that image reveals all kinds of details: https://imgur.com/a/TvQsgbA (and I don't even know what I'm doing)

comment 7y ago · link · parent

pretty cool, I wished chrome did that. firefox is probably going to choose cloudflare (1.1.1.1).

I wonder how this plays out with local DNS (e.g. my ISP has some custom domains for me to use, and internal company network addresses)

comment 7y ago · link · parent

quite amazing, would love this as a background on both phone and desktop

comment 7y ago · link · parent

getting closer everyday to a global "login" to access the internet
1234