News for hackers. Stuff that matters.

AH2mdte8kPnJS

Re:Ask HN: Ridiculous job interview. What do I do? on Wednesday November 17, 2021 @07:31PM (#29260741)
Interesting how the pressure dates on that site work heh

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

Re:What If C++ Abandoned Backward Compatibility? on Saturday March 28, 2020 @12:45PM (#22712300)
Re:Fuzzy Logic on Monday March 09, 2020 @05:44PM (#22530153)
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

Re:100% winrate trading strategy open sourced? on Monday January 20, 2020 @02:08PM (#22101292)
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.

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

Re:Why I Don't Like Golang (2016) on Wednesday June 12, 2019 @09:45PM (#20171179)
This looks really cool!
Re:Handy Keymaps in Vim on Tuesday May 28, 2019 @12:54AM (#20027309)
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>

    ...
The permissions for the Chrome extension require data from all websites?
Awesome, thanks a lot!
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)
Re:Losing 100 pounds in 276 days on Monday June 25, 2018 @10:23AM (#17392630)
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.