89 Matching Annotations
  1. Oct 2024
  2. Sep 2024
    1. mount IndexController do # all methods will be mounted automatically, it's just an example of refinement get '/hello', :hello_world end
  3. Aug 2024
  4. Jun 2024
    1. to your point for 00:13:46 every problem there's going to be a solution and AI is going to have it and then for every solution for that there's going to be a new problem

      for - AI - progress trap - nice simple explanation of how progress traps propagate

  5. May 2024
    1. Information about ownership can, however, be found in the pages of Tatler or on the message boards of Ismaili Muslims unhappy about their tithes being used to pay for the extravagant lifestyle of a man who is both their religious imam and the descendant of an aristocrat ennobled by both the Iranian and British monarchies
  6. Dec 2023
  7. Oct 2023
  8. Sep 2023
    1. Circuit representation of a work-efficient 16-input parallel prefix sum
  9. Aug 2023
    1. In fact, it might be good if you make your first cards messy and unimportant, just to make sure you don’t feel like everything has to be nicely organized and highly significant.

      Making things messy from the start as advice for getting started.

      I've seen this before in other settings, particularly in starting new notebooks. Some have suggested scrawling on the first page to get over the idea of perfection in a virgin notebook. I also think I've seen Ton Ziijlstra mention that his dad would ding every new car to get over the new feeling and fear of damaging it. Get the damage out of the way so you can just move on.

      The fact that a notebook is damaged, messy, or used for the smallest things may be one of the benefits of a wastebook. It averts the internal need some may find for perfection in their nice notebooks or work materials.

  10. Dec 2022
    1. Dilemma: Do I use this unofficial library with its really nice idiomatic API or the official library (https://github.com/mailgun/mailgun-ruby) with its inferior API?

      I wish this one was still/better maintained because I'd much rather use this API, like: @mailgun.lists.create "devs@your.mailgun.domain" @mailgun.lists.list @mailgun.lists.find "devs@your.mailgun.domain"

      but it's not maintained, and looks like it doesn't have the word events in the source at all, so it's missing any way to use the Events API. :(

  11. Sep 2022
  12. Aug 2022
    1. you can also replicate the bind:this syntax if you please: Wrapper.svelte <script> let root export { root as this } </script> <div bind:this={root} />

      This lets the caller use it like this: <Wrapper bind:this={root} />

      in the same way we can already do this with elements: <div bind:this=

  13. Jul 2022
    1. 4.2 Meaningful work and meaningful relationships aren’t just nice things we chose for ourselves—they are genetically programmed into us.

      4.2 Meaningful work and meaningful relationships aren’t just nice things we chose for ourselves—they are genetically programmed into us.

  14. Apr 2022
    1. a mind needs books like sword needs a whetstone

      大脑需要阅读,就像剑刃需要磨刀石

  15. Jan 2022
  16. Nov 2021
  17. Oct 2021
    1. Literally everyone is just following orders from the machine.

      Fascist Architecture

      See Eichmann in Jerusalem: A Report on the Banality of Evil by Hannah Arendt.

      “It spells out so clearly that Nazi Germany’s worst atrocities and many atrocities the world over were not only the ideas of singular evil men. They were supported and enacted by systems, by groups of people who woke up in the morning and went to offices to work on it.”

      — Avery Trufelman, Nice Try! Podcast

    1. Because at the end of the day, all structures are, in some ways, ideology made manifest.

      Avery Trufelman ends her podcast series, Nice Try! with these words in an episode entitled, Germania: Architecture in a Fascist Utopia.

      One person’s utopia is another person’s dystopia.

      The structure of the mind becomes the architecture of our reality. This thought became the foundation for a mental model for human experience, since these architectural plans for utopia seem like good ideas on paper, but when we live inside these structure in our daily reality, we realize that we have constructed our own mental prisons, the iron cage envisioned by Max Weber.

    2. It spells out so clearly that Nazi Germany’s worst atrocities and many atrocities the world over were not only the ideas of singular evil men. They were supported and enacted by systems, by groups of people who woke up in the morning and went to offices to work on it.

      Avery Trufelman ends her podcast series, Nice Try! with these words in an episode entitled, Germania: Architecture in a Fascist Utopia.

  18. Sep 2021
  19. Jul 2021
  20. Jun 2021
  21. May 2021
  22. Apr 2021
    1. logger.tag_formatter.default(Lumberjack::Formatter.new.clear.add(Object, :inspect)) logger.tag_formatter.default(Lumberjack::Formatter::InspectFormatter.new) logger.tag_formatter.default { |value| value.inspect }
    2. There are several built in classes you can add as formatters. You can use a symbol to reference built in formatters. logger.formatter.add(Hash, :pretty_print) # use the Formatter::PrettyPrintFormatter for all Hashes logger.formatter.add(Hash, Lumberjack::Formatter::PrettyPrintFormatter.new) # alternative using a formatter instance
    3. # This will register formatters only on specific tag names logger.tag_formatter.add(:thread) { |thread| "Thread(#{thread.name})" } logger.tag_formatter.add(:current_user, Lumberjack::Formatter::IdFormatter.new)
    1. goes on.

      I would suggest maybe to conclude things in a new section and maybe elaborating what should maybe be good for continued exploring in this match. Great work!

  23. Mar 2021
    1. var md = require('markdown-it')('commonmark');

      first sighting: require(...)(...)

      How would that work with import? Not as fluidly but...

      import markdownIt from 'markdown-it'
      let md = markdownIt('commonmark')
      
  24. Feb 2021
    1. Subprocess will try to match the nested ends’ semantics to the tracks it knows. You may wire custom ends using Output.
    1. The adapter is where authentication, policy checks, and eventually your domain logic happen. All termini of the protocol’s activity are standardized end events - that’s how protocol and adapter communicate.
    1. I agre with your concern. I realy prefer to do this : form.assign_attributes(hash) if form.valid? my_service.update(form) #render something else #render somthing else end It looks more like a normal controller.
    1. Finally, you can use fields_for in order to create/edit associated fields and the suffix _list (like profile_list below) to choose an existing associated record.
    2. @user_form = UserForm.new(User.find(params[:id])) # you need to load the record being edited
    3. # Use relationship's name followed by "__" plus attribute's name # to validate has_one and belongs_to associations validates :name, :address__street, :company__name, presence: true
  25. Jan 2021
  26. atomiks.github.io atomiks.github.io
    1. Can I use the title attribute?Yes. The content prop can be a function that receives the reference element as an argument and returns a string or element.tippy('button', { content(reference) { const title = reference.getAttribute('title'); reference.removeAttribute('title'); return title; }, });The title attribute should be removed once you have its content so the browser's default tooltip isn't displayed along with the tippy.
    1. Headless: With React's DOM rendering for improved usage with CSS-in-JS and spring libraries. If you want greater control over your poppers to integrate fully with design systems, this is for you.
    1. We can make content a function that receives the reference element (button in this case) and returns template content:
    2. You can pass the element itself, which is useful for keeping event listeners attached (or when a framework is controlling elements inside):
    3. Allows you to separate the tippy's positioning from its trigger source.
  27. Dec 2020
    1. page is a { host, path, params, query } object where host is the URL's host, path is its pathname, params is derived from path and the route filename, and query is an object of values in the query string.

      I like that we don't have to manually parse params/query out of the full request URI. It provides the data that you are most likely to need, in an readily/easily-usable form.

  28. Nov 2020
  29. Oct 2020
    1. You can set options.params to a POJO as shown above, or to an instance of the JavaScript's built-in URLSearchParams class. const params = new URLSearchParams([['answer', 42]]); const res = await axios.get('https://httpbin.org/get', { params });
    1. <For each={state.list} fallback={<div>Loading...</div>}> {item => <div>{item}</div>} </For>
  30. Sep 2020
    1. Actions aren't necessary, otherwise they would have been implemented from the start. But they do allow for easier code-reuse and better shared libraries without exploding/complicating the ecosystem.
  31. react-spectrum.adobe.com react-spectrum.adobe.com
    1. let {focusProps} = useFocus({ onFocus: (e) => setEvents((events) => [...events, 'focus']), onBlur: (e) => setEvents((events) => [...events, 'blur']), onFocusChange: (isFocused) => setEvents((events) => [...events, `focus change: ${isFocused}`]) });
    1. If you copy an entire article from this site and republish it on your own site like you wrote it, that’s a little uncool. I won’t be mad at you for stealing, I just think you’re better than that and want to see you do better. I’m not going to come after you though. I’d rather play ball with my dog. The only time I’ll be mad at you is if you go out of your way to try and hurt me somehow. And again I probably won’t even be mad, just sad. Unless I’m having a bad day too, in which case I apologize in advance for my snarky replies.
  32. Jul 2020
  33. May 2020
    1. It’s so much easier to be a critic than a celebrator. Always remember there is a human being on the other end of every exchange and behind every cultural artifact being critiqued.
  34. Apr 2020
    1. Cloudflare might have given me the service for free, but they still have to pay for bandwidth so I'd like to ask for your support in pulling the data down via torrents rather than from the direct download link. To that effect, the UI actively encourages you to grab the torrent
  35. Mar 2020
  36. Feb 2020
  37. May 2019
    1. import java.util.Scanner;

      /**

      • A simple class to run the Magpie class.
      • @author Laurie White
      • @version 6 March 2012 */ public class MagpieRunner2 {

        /**

        • Create a Magpie, give it user input, and print its replies. */ public static void main(String[] args) { Magpie2 maggie = new Magpie2();

          System.out.println (maggie.getGreeting()); Scanner in = new Scanner (System.in); String statement = in.nextLine();

          while (!statement.equals("Bye")) {

           System.out.println (maggie.getResponse(statement));
           statement = in.nextLine();
          

          } }

      }

  38. Jul 2018
  39. course-computational-literary-analysis.netlify.com course-computational-literary-analysis.netlify.com
    1. There I found our nice boy again, and there I concluded to stop in my investigation.

      "I" found our nice boy again . The sentence should associate with the sentence"He was, out of all sight (as I remember him), the nicest boy that ever spun a top or broke a window. " And what the "nice" means?It is a positive word or it is just an irony. Because I could not associated "nice" with "broke a window" Emm.... And the Mr. Blake become nice boy again mostly due to the unfortunate experience?

  40. Jun 2016
    1. it reveals simple underlying structures in com-plex data sets using analytical solutions from linear algebra
    2. by a simple algorithm
    3. The covariance measures the degree of the linear relationshipbetween two variables
    4. Maximizing the variance (and by assumption the SNR)corresponds to finding the appropriate rotation of the naivebasis

      PCA relates to rotation.

    5. he dynamics of interest existalong directions with largest variance and presumably high-est SNR
    6. Thus our original basis reflects the methodwe measured our data
  41. Oct 2015