HNHacker News
TopNewBestAskShowJobs

AH2mdte8kPnJS

48 karma · joined June 25, 2018

submissionscomments
AH2mdte8kPnJS··on Ask HN: Ridiculous job interview. What do I do?
Interesting how the pressure dates on that site work heh

document.getElementById('pressureDate').innerHTML = moment().add(1, 'days').format('dddd, MMMM Do');

AH2mdte8kPnJS··on What If C++ Abandoned Backward Compatibility?
D is able to run without its runtime and GC. https://dlang.org/spec/betterc.html

And an older link:

https://www.auburnsounds.com/blog/2016-11-10_Running-D-witho...

AH2mdte8kPnJS··on Fuzzy Logic
Consider the likelihood of a dice that can land on both its ”1” side and its ”6” side at the same time?

Assuming that the die is fair, this is not possible in the real world.

Bayesian probability [1] states that this is not possible as expected.

``` P(land1 ^ land6) = P(land1) x P(land6 | land1) = 1/6 x 0 = 0 ```

However, fuzzy logic [1] results in an unintuitive result.

``` T(land1 ^ land6) = min(land1, land6) = min(1/6, 1/6) = 0 ```

[1] https://www.mathsisfun.com/data/bayes-theorem.html [2] http://www.sfu.ca/~jeffpell/papers/FuzzyLogic77.pdf

AH2mdte8kPnJS··on 100% winrate trading strategy open sourced?
TL;DR Title is misleading clickbait but the semi-interesting part is:

> Backtesting results [of the backtesting strategy referenced] look absurd: 100% profitable. But if you change any of the many parameters in the Settings popup, they will turn into disaster. It means, the rules of this strategy are very fragile. Don't trade this! Remember about backtesting rule #1: past results do not guarantee success in the future.

AH2mdte8kPnJS··on With Microsoft Dumping MS Office, Consider LibreOffice for Your PC Office Suite
Check out the new tabbed menu[1]. Seems to emulate the MS Office menu pretty closely and is a big improvement over the old UI.

[1] https://wiki.documentfoundation.org/ReleaseNotes/6.3/en#GUI

AH2mdte8kPnJS··on Why I Don't Like Golang (2016)
This looks really cool!
AH2mdte8kPnJS··on Handy Keymaps in Vim
I loved this but wanted to generalize it a bit to clean it up and make it portable across different computers.

By no means am I a vimscript expert so any improvements welcome. (I've defined g:settings.kanban_board_path above).

    function! g:Kanban_file(stage)
        return g:settings.kanban_board_path . a:stage
    endfunction

    let $KBsoon=g:Kanban_file('soon.md')
    let $KBdoing=g:Kanban_file('doing.md')
    let $KBtoday=g:Kanban_file('today.md')
    let $KBdone=g:Kanban_file('done.md')
    let $KBarchive=g:Kanban_file('archive.md')
    " Close board tab

    map <leader>bc :tabclose<CR>

    " Main board: soon, doing, today, done

    map <leader>bb :tabnew $KBsoon<CR>:vnew $KBdoing<CR>:vnew $KBtoday<CR>:vnew $KBdone<CR>

    ...
AH2mdte8kPnJS··on Mate: Netflix browser extension for learning words via subtitles
The permissions for the Chrome extension require data from all websites?
AH2mdte8kPnJS··on Show HN: A browser extension which blocks chat/helpdesk widgets
Awesome, thanks a lot!
AH2mdte8kPnJS··on Show HN: A browser extension which blocks chat/helpdesk widgets
Here's the URLs from the extension in UBlock rule form:

  ||widget.intercom.io/
  ||connect.facebook.net/en_US/sdk/xfbml.customerchat.js
  ||assets.producthunt.com/assets/upwigloader.js
  ||js.driftt.com/include/
  ||crisp.chat/
(These can be copied directly into UBO's My Filter section)
AH2mdte8kPnJS··on Losing 100 pounds in 276 days
What about going the other way - gaining weight? Does anyone have tips or reccomendations on how I can gain weight. I'm 6'3" and 160lbs and have always wanted to gain weight but I struggle with consistently eating 5 meals a day.