HN user

rsapkf

383 karma

dif-tor heh smusma

Homepage: https://rsapkf.org

Posts3
Comments32
View on HN

The latest Firefox mobile update added a dropdown to the address bar for switching search engines and searching through history/bookmarks/tabs easily.

The article explains three ways to get new comments in a thread. One way is to go to Algolia (Search provider for HN) and type in the thread id in a specific format. This bookmarklet will open that page directly with all the options pre-selected instead of having to open a new tab, copy and type in the id in the search box, etc.

Here's a bookmarklet to take you directly to the algolia page from a thread:

  javascript: (() => {
    const id = window.location.href.match(/\d+$/g)[0];
    window.open(`https://hn.algolia.com/?dateRange=all&page=0&prefix=false&query=story:${id}&sort=byDate&type=comment`)
  })();

RIP The Amazing Randi. Reading and watching Martin Gardner and James Randi has taught me so much. Gardner was already dead when I first heard of him and I've looked upto Randi ever since. From magic to religion and pseudoscience, I have always enjoyed their views. You will be missed.

PiP is such a useful feature. Even though I use a window manager, I like the fact that I can just take whatever video is playing out from my current tab and move it over to my programming workspace and follow a tutorial or something. No need to create a new window. When I'm done, I can put it right back to the original tab on the original workspace with a single click. Especially useful with floating mode enabled.

Curl Wttr.in 6 years ago

I see you are using regular formatting for code/shell commands on your comments. Not that that's a problem but just a note you can use one of HN's comments formatting tips[0] for this.

Text after a blank line that is indented by two or more spaces is reproduced verbatim. (This is intended for code.)

[0] https://news.ycombinator.com/formatdoc

Looks cool! I have been using Docusaurus[0] for this same exact use case for a while and although the primary use case is for documentation, the experience of writing notes is great too. You can write your notes in either MDX or Markdown. Search can be added using Algolia DocSearch[1] and deployment to GitHub Pages or Netlify or similar static site hosting platforms is a breeze. The only thing it's lacking is tags which I'm sure can be added with a little bit of work.

[0] https://v2.docusaurus.io/

[1] https://github.com/algolia/docsearch

Notes: https://rsapkf.github.io/notes/

I am learning Rust at the moment. I used to use that repo to try new things out. For example, to play with GitHub's API(the github-gitlab-stars.md file was created using a bunch of Python scripts, requests library), or learning branching and pipelines(Currently I am using Travis CI to build mdbook from another branch), etc. Initially, when I didn't know about GitBook or Static Site Generators, I made a Django App with search functionality and stuff out of those links.