40 Matching Annotations
  1. Dec 2023
    1. Readwise Reader

      A great article on the history of reading online that might just nudge me into trying out and eventually becoming a Reader paid subscriber.

  2. Aug 2023
    1. async is a concurrency technique. If you need concurrency, async is required for node to work properly (not "better"). If you don't have concurrency, you don't need async. The point is you need to actually understand what async does for you and why. It's not inherently "better" for no reason and you don't need to memorize it as a "best practice". If the OP is writing a command line utility to alter a JSON file then exit, async complicates the code for no reason as the concurrency is not required.
    2. async vs. sync depends exactly on what you are doing in what context. If this is in a network service, you need async. For a command line utility, sync is the appropriate paradigm in most simple cases, but just knee-jerk saying "async is better" is not correct. My snippet is based on the OP snippet for context.
  3. Jun 2023
  4. Apr 2023
  5. Nov 2022
  6. Aug 2022
  7. Jul 2022
  8. Jun 2022
  9. May 2022
    1. We use the Web Annotation Protocol to sync bookmarks and last reading position across devices. At a glance it covers all the use cases here, and it's a well-defined protocol with multiple independent implementations. In particular, WAP defines a relation for discovery. Here's how we link to the annotation endpoint for a specific book in an OPDS 1.2 feed. Note the distinctive link relation and media type:
  10. Jan 2022
    1. We cannot make the above statement reactive because we touch tmpCopyAsTemplates.
    2. It works if you always want b to be the value deriving from a. However in the example above, we want the value of b to be temporarily out of sync of a.
    3. For me there is a distinct difference between these two scripts: let a = 1; $: b = a * 2; let a = 1; let b; $: { b = a * 2 }; The first example defines a "recipe" for how to create b and b is completely defined by that declaration. Outside of that it is immutable, data flows only into a single sink. The second example declares a variable b and then uses a reactive statement to update it. But it also allows you to do with b whatever you want. If someone wants to go that route (definitely not me), they are free to do so at their own risk of ensuring consistency.
    4. The intended behavior for the code snippet above is to reactively update b when a changes allows b temporarily go "out-of-sync" of a when calling update, setting b to 42 in this case, b is not always a * 2 however, if a changes again, b will be updated back to a * 2, instead of staying at 42
    1. I don't think these are two different interests in contrast with each other. I wanna update that temporary object and when the dep changes I re-create the temporary object. Simple as that.
  11. Oct 2021
  12. Aug 2021
    1. It means that when having a type guard:TypeScript and JavaScript runtime are tied to the same behaviour.
    2. Inside the if statement, TypeScript will assume that amount cannot be anything else than a string, which is true also at the runtime thanks to typeof JavaScript operator.
  13. May 2021
  14. Feb 2021
    1. Keeping bootstrap-sass in sync with upstream changes from Bootstrap used to be an error prone and time consuming manual process. With Bootstrap 3 we have introduced a converter that automates this.
  15. Dec 2020
  16. Sep 2020
  17. Apr 2020
    1. As for the syncing: I think BitTorrent Sync should do it. It's p2p, meaning there're no servers inbetween. Maybe there're even open alternatives already. TL;DR: KeePass <-> BitTorrent Sync for database transfer <-> MiniKeePass
  18. Mar 2020
    1. Papagayo is free and open source, lip sync software for matching pre generated or custom mouth shapes to a recorded audio file for use in 2D animation. Its available on Windows, Linux, and Mac.
  19. Jan 2019
    1. Coming back to the two ‘FreeSync’ settings in the monitor OSD, they differ in the variable refresh rate range that they support. ‘Standard Engine’ supports 90 – 144Hz (90 – 119Hz via HDMI) whilst ‘Ultimate Engine’ gives a broader variable refresh rate range of 70 – 144Hz (62 – 119Hz via HDMI). We didn’t notice any adverse effects when using ‘Ultimate Engine’, so we’d suggest users simply stick to that option.

      In my tests using Standard Engine, in combo with G-Sync Compatible Driver, I get more screen flickering during menus.

    1. e completed the design and eval-uation of PartialSync (pSync) [5]. We also conducted a thorough comparative study of the di erent syncprotocols we have developed over the last few years, including CCNx Sync [1], iSync [6], ChronoSync [8],RoundSync [2], and pSync.

      We completed the design and evaluation of Partial Sync (pSync) [5]. We also conducted a thorough comparative study of the different sync protocols we have developed over the last few years, including CCNx Sync [1], iSync [6], ChronoSync [8], RoundSync [2], and pSync.

    Tags

    Annotators

  20. Sep 2017
    1. extremely cool, but...

      comparing with tahoe-lafs:

      clearly separates writecap from readcap, but... does it grok readcap as separate from idcap?

      client-side encryption?

      n-of-k erasure encoding?