184 Matching Annotations
  1. Mar 2021
    1. data[:users, :[], :name] = 'Matz' # :[] is next index, 0 in this case
    2. A proposal to specify the path for bury with classes as values of a hash arg: {}.bury(users: Array, 0 => Hash, name: Hash, something: 'Value') # {user: [{name: {something: 'Value'}]} So all absent nodes could be created via klass.new

      Didn't understand it at first, but now I think it's a pretty clever/decent solution.

      Just a bit more verbose than one might like...

      At first I had reservations about the fact that this requires you to pass a hash ... or rather, once you start using a hash as your "list", you can't just "switch back" to an array (a "problem" I've noticed in RSpec, where you have some tags that are symbols, and some that are hashes: you have to list the symbols first: describe 'thing', :happy_path, driver: :chrome):

      {}.bury(users: Array, 0, 'Value')
      

      But I think that's okay in practice. Just use a hash for all "elements" in your list:

      {}.bury(users: Array, 0 => 'Value')
      
    3. data = {}.extend XKeys::Auto # Vs ::Hash, uses arrays for int keys data[:users, 0, :name] # nil data[:users, 0, :name, :raise => true] # KeyError data[:users, :[], :name] = 'Matz' # :[] is next index, 0 in this case # {:users=>[{:name=>"Matz"}]} pick = [:users, 0, :name] data[*pick] # Matz data[:users, 0, :accesses, :else => 0] += 1 # {:users=>[{:name=>"Matz", :accesses=>1}]}
    1. # Parallel Ruby universes ("Rubyverses") - A proposed interface for # parallel, "semi-private" method or method-and-data spaces via # "closely associated" objects.
    1. Model theory recognizes and is intimately concerned with a duality: it examines semantical elements (meaning and truth) by means of syntactical elements (formulas and proofs) of a corresponding language
    1. Researchers reported that large populations consistently develop highly similar category systems. This may be relevant to lexical aspects of large communication networks and cultures such as folksonomies and language or human communication, and sense-making in general.
    1. The words type, concept, property, quality, feature and attribute (all used in describing things) tend to be used with different verbs. E.g. Suppose a rose bush is defined as a plant that is "thorny", "flowering" and "bushy". You might say a rose bush instantiates these three types, or embodies these three concepts, or exhibits these three properties, or possesses these three qualities, features or attributes.
    1. For example, in the Dyirbal language, the morpheme balam marks each entity in its noun class with the semantic property of edibility,[8] and Burmese encodes the semantic property for the ability to cut or pierce. Encoding the functional property for transportation, housing, and speech are also attested in world languages.
    1. All I needed to do was configure my bash so it will always start vim in server mode if it is not already and to always use the --remote-tab switch when opening files.
    1. Athena is still in production use at MIT. It works as software (currently a set of Debian packages)[2] that makes a machine a thin client, that will download educational applications from the MIT servers on demand
    1. One thing that would be useful to this debate an analysis of a language ecosystem where there are only "macropackages" and see if the same function shows up over and over again across packages.
  2. en.wikipedia.org en.wikipedia.org
    1. PyPy uses a technique known as meta-tracing, which transforms an interpreter into a tracing just-in-time compiler.
    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')
      
    1. Uber::Option implements the pattern of taking an option, such as a proc, instance method name, or static value, and evaluate it at runtime without knowing the option's implementation.
  3. Feb 2021
    1. The Track() function will snap the output to the next task that is “magnetic to” the track’s semantic.
    1. oynement that wolde clense and byte,

      Going off the last comment I think Chaucer here is suggesting that the summoner is so far from being a good person there is no cure for his lack of morals

    2. a yong Squiér, A lovyere and a lusty bacheler,

      Interesting Chaucer presents the squire right after the knight, it makes it seem as though they are foils for each other meant to emphasize their different stages in development as knights

    1. Record filters allow you to require an instance of a particular class (or one of its subclasses) or a value that can be used to locate an instance of the object. If the value does not match, it will call find on the class of the record. This is particularly useful when working with ActiveRecord objects.
    1. We really don’t think laws and “imaginary property” have any place
  4. Jan 2021
    1. Now I can only smile.

      This makes me think of the narrator being bedridden in old age or sickness and her partner is no longer alive. Since flowers and hospitals also have a close tie like flowers and relationships, the author might be trying to convey how the narrator's relationship with her partner changed over time with old age but still kept the same in some aspects.

    2. your flowers

      The use of "your flowers" instead of just "flowers" insinuates that the partner isn't worried that the narrator doesn't want flowers in general, but, rather, the partner is worried that the narrator wouldn't want flowers from him specifically. This makes me think there has been turmoil in the relationship.

    1. rages

      The poets uses what would rather be a simple verb as a powerful verb to paint the picture of how the moon is the most outstanding object at night. This is probably to show that love can power through tough situation. But the moon has phases.

    1. <Masonry> component implementation could be something like this (very drafty)
    2. The CardLayout creates a store in context and the Card creates a standardized div container and registers it to the store so that the CardLayout has access to that DOM element. Then in afterUpdate you can move the DOM elements into columns and Svelte will not try to put them back where they go. It's a bit messy but it works.
    3. I think that maybe instead of using the prefixed $$ globals, a more "natural" solution could look something like this: import { slots, props, parent } from '@component';
    1. So haunt thy days and chill thy dreaming nights

      It kind of seems like he is talking about feeling dead and sort of contradicting the title This living hand... because you get cold when you die and he's talking about haunting the day.

    2. now warm and capable

      Is he maybe talking about something that happened in the past? I feel like he's saying that it's "warm and capable" now, but before now it was cold etc.

    1. But of course, there are UX implications. For example, it can be harder to select the text, and the entire element needs fairly complex styling to create clear focus and hover states. There are also accessibility implications, like the fact that the content of the entire card is read before it is announced as a link.
    1. A hosted Kit is the easiest way to add Font Awesome to your website. It's a collection of icons, styles, and settings that allows you to make changes and update versions without pushing code.
    1. To explain further what exactly I’m building, the animated background is a pure code equivalent to the old music video, but runs as long as the full length of the album, though without any event triggers to tie it to the music (the animation runs continuously for the full amount of time that the uninterrupted album lasts, but does not pause or jump to a different location in the animation). It’s also extremely slow animation
  5. Dec 2020
    1. Say I have a separate API server that provides content for a Sapper route. I could just query that API in my route's preload function, but if the content changes rarely, I don't want to incur that cost for every page load and would much rather cache responses from the API on the Sapper side.
    1. With the caveat that hero worship can be gross, distorting, and unhelpful to everyone involved, Svelte author Rich Harris (@rich_harris on Twitter) is one of my favorite open source developers. In the JS community he’s well-known among tool authors for spreading interesting ideas. He’s the creator of many open source projects including Rollup, the bundler of choice for many libraries including React and Vue.
  6. Nov 2020
    1. This overloaded word is also non-jargon for a proper morphism.
    2. notion

      I don't feel very comfortable with this choice of wording, perhaps because the dictionary definition includes such wishy-washy definitions as "A belief or opinion." "An impulse or whim."

      Why not choose a better word like "property"? Which is what they called it here, for example.

      (Even "concept" or "idea", though just as vague, might be better than notion?)

    1. Those frameworks are used in a similar fashion, but conceptually use quite different approaches (Vue is a more traditional one, a library, and Svelte is a "dissapearing framework").

      interesting wording: Svelte is a "disappearing framework".

  7. Oct 2020
    1. I'm afraid there's only so much the docs & tutorials can do about something like this actually. When you first read them, you don't get Svelte well enough (since you're reading a tutorial...) for this to make sense to you. Then you try something, encounter a behaviour, question it, understand better... That's learning.
    1. Looking at a few isolated examples doesn’t really represent the enormity of the maintenance problem when you modify objects that you shouldn’t. To understand this point of view, it’s helpful to take a step back and look at moral philosophy (aka ethics).
    1. What links all these things is the way they pass the responsibility for upholding norms — for creating “school” — onto individual children and families.

      This is where you can type your notes.

  8. Sep 2020
    1. Thus, in theory at least, any narrative can be actualized by any medium which can communicate the two time orders

      This is true as it is important that within the medium that the two times are independent and not dependent on each other.

    2. novelization," which transforms already exhibited films into novels)

      this is a very interesting idea that i have never thought of. But i don't think that it would work as well because for me i like of make my own mental image of the characters while reading the book. so if it were a movie i would immediately think of the actors that played them in the movie.

    1. The @const indicates that the value is read-only (i.e. it cannot be assigned to or mutated in an expression such as an event handler), and communicates, through its similarity to const in JavaScript, that it only applies to the current scope (i.e. the current block or element).
  9. Jul 2020
  10. May 2020
    1. Where I track capacity, appetite, & commitments. A place where I can stay organized while also allowing transparency for my teams & anyone else who is interested in what I’m currently focused on.

      "My Plate"

    1. Once running, kaniko will then get the data from STDIN and create the build context as a compressed tar. It will then unpack the compressed tar of the build context before starting the image build.
    1. Adequacy decisions have so far been adopted for Andorra, Argentina, Canada (commercial organizations), Faroe Islands, Guernsey, Israel, Isle of Man, Jersey, New Zealand, Switzerland, Uruguay and Japan.

      Not a list of countries you often see listed together.

  11. Apr 2020
    1. Guédelon Castle (Château de Guédelon) is a castle currently under construction near Treigny, France. The castle is the focus of an experimental archaeology project aimed at recreating a 13th-century castle and its environment using period technique, dress, and material.

      Guédelon Castle (Château de Guédelon)

      More info on HN

  12. Mar 2020
    1. combining a wide variety of styles and influences is a recipe to being interesting. The reverse would be that having only a few influences and styles is a recipe for blandness
    1. is a statement not made by us only; although it may seem a sufficiently marvellous and incredible assertion to those who have a reputation as philosophers among Greeks and Barbarians, by some of whom, however, an idea of His existence seems to have been entertained, in their acknowledging that all things were created by the word or reason of God.

      I am not sure I understand perfectly what was said here, however, if what I believe it is being said is right I think this is a very interesting sentence. Son of God is a statement made by us, which is sufficient by itself but also by greek philosophers? As a reinforcement of this statement?

    1. Meanwhile, in the case of those who were denounced to me as Christians, I have observed the following procedure: I interrogated these as to whether they were Christians; those who confessed I interrogated a second and a third time, threatening them with punishment

      In the Christian faith a lot of people fear sinning and others don’t fear sinning, or going against God, they fear punishment. When we repent our sins do we do it because we truly feel remorseful or because we don’t want to face the punishment. Also, in bible stories we see punishment as being something that should be feared. This makes me think of “Daniel in The Lions Den,” because the ones who received the punishment in the end were those who tried to get Daniel in trouble.

    2. They asserted, however, that the sum and substance of their fault or error had been that they were accustomed to meet on a fixed day before dawn and sing responsively a hymn to Christ as to a god, and to bind themselves by oath, not to some crime, but not to commit fraud, theft, or adultery, not falsify their trust, nor to refuse to return a trust when called upon to do so. When this was over, it was their custom to depart and to assemble again to partake of food--but ordinary and innocent food. Even this, they affirmed, they had ceased to do after my edict by which, in accordance with your instructions, I had forbidden political associations. Accordingly, I judged it all the more necessary to find out what the truth was by torturing two female slaves who were called deaconesses. But I discovered nothing else but depraved, excessive superstition.

      This is interesting because this piece of text relates to sinning and the repercussions of that and torture which comes with sinning. Also how hiding the truth is a form of sinning.

  13. Feb 2020
  14. Jan 2020
  15. Dec 2019
    1. Use a USB-condom. This is a device that plugs in between your normal cable and the computer and blocks the data lines
    2. Use a USB cable with a "data switch". This cable is normally power-only, which is what you want 90% of the time. However there is a button ("Data Transfer Protection On/Off Switch") you can press that will enable data. An LED indicates the mode. This kind of cable is much safer and secure, plus more convenient for the users. It follows the security principle that if you make the defaults what you want users to do, they're more likely to follow your security policy.
    1. They hand in hand with wandring steps and slow, Through Eden took thir solitarie way.

      I thought that like the sonnets that showed Milton had feelings, I felt that this is another way that he could show his feelings in a way. I liked the ending because they came together.

  16. Nov 2019
    1. Those who feel overloaded are actually less likely to use the internet or smartphones

      I found this bit of the study to be interesting. It's referencing a different study, but I would be curious see what percentage of the group quoted used smartphones in the past and are currently trying to use them less because they now feel overwhelmed. I believe information overload is a real thing and I think it comes in the form of moments when you're staring at your phone (likely social media) for a long time, you get frustrated, and then you finally realize "I need to put down the phone and do something away from a screen." I've definitely had that moment plenty of times. I'm not sure if that is what this "information overload" study is referring to, but I would be curious to look into it more. Also, the date 2006 was mentioned, so I'm not sure when this study was done last. I wonder what the results would be like now in 2019.

  17. Oct 2019
    1. lror t'r:rrrr1,lt', rtt tlrc solc pr"o-moted and therefrlrc uncrrphatic line-endillg of the cxcerpt, "l)Al{l(-ncssVIS-i-srE," ft.62), the lack of a clear-cut ending is appropriate for tlrc pirra-doxical mystery being evoked. Similarly Milton's avoidance of the ferninincending is breached at the start of the excerpt with Satan's "aspiring" abovehis peers; with hindsight one perceives that Milton tends to use such endingsfor acts of disobedience and illegitimate aspiration

      This explanation seems like a stretch. While I'm aware Milton probably paid a lot of attention to stressed and unstressed syllables in his writing, it feels like the pairing of Darkness and Visible just made Milton make an exception to the rule.

    1. type FindByTag<Union, Tag> = Union extends { tag: Tag } ? Union : never; function cast<A extends Foo["tag"]>(foo: Foo, expectedTag: A): FindByTag<Foo, A> { if (foo.tag !== expectedTag) throw Error(`expected tag ${expectedTag} but was ${foo.tag}`) return foo as FindByTag<Foo, A>; }
    1. type Type = 'a' | 'b'; type AShape = { a: 'a' }; type BShape = { b: 'b' }; type Props<T extends Type> = { type: T, shape: T extends 'a' ? AShape : BShape, }; class Test<T extends ID> extends React.Component<Props<T>> { render() { const { type, shape } = this.props; switch (type) { case 'a': return <>{shape.a}</>; // Ideally would narrow `shape` here, instead of `AShape | BShape` default: return <>{shape.b}</>; } } } <T type="a" shape={{ a: 'a' }} /> // No error in ideal case <T type="a" shape={{ b: 'b' }} /> // error in ideal case
    2. type NumberType = (() => number) | number; function double<T extends NumberType>( num: T ) : T { if (typeof num === "number") return num * 2; return () => num() * 2; }
  18. Sep 2019
    1. A case in point: in The Tenure of Kings and Magistrates Milton develops a radical argument that free people have always the right to change their government and depose a king when ever they wish because sovereignty resides essentially in the people.

      Once again, I feel like Milton is so heavily viewed in a religious aspect with his works pertaining to God, but at the same time I always seem to read something that is told in a political way.

    2. (reflecting as some suggest, Milton's retreat from po

      I stated something earlier to do with Milton political views as well. He always seemed to want to voice his opinion but mostly in the shadows.

    3. her dichotomy: that Milton's texts are all about spiritual as opposed to political readi

      I think his texts are still quite political, especially with Areopagitica and his view on licensing and censorship.

    1. confronted with the possibility that he may never be allowed to runtlrc race for which he has spent most of his adult life training himself, whatp.ssible consolation can Milton be expected to find in the announcementtlrrrt the prize-giving will take place in heaven?

      I found this very interesting- I wrote about this section in my blog actually, and when reading, this passage gave me pause, though I could not figure out why. I think this is a really good point that Evans brings up, that I had not considered myself.

    2. As C. S. Lewis once observed in a lecture, to complainhecause Milton sounds unmoved by grief h Lycidas is like complainingbecause the organist playing the funeral march does not break down in tearsduring the burial service.

      An excellent quote from, arguably, one of the best authors ever. Milton was detached from the subject, not being extremely close to King, and so he is potentially in a good position to write this poetic memorial to King. By being detached from the subject he can potentially have a better view of the subject.

    3. \7herethere is leisure for fiction, there is little grief.

      This quote jumped out at me. Basically, if you have enough free time that you can spend it on something like writing, how hard can your life really be?

    4. Although Milton does not appear to havel', r'rr u particularly close friend of King's, he was nevertheless invited to con-rrrlrrrlc to the collection

      This just goes to show how talented Milton was, that even though he was not a big part in King's life, the people putting the collection together had such respect for Milton's skill that they asked him to contribute to what was essentially a memorial to King.

  19. Aug 2019
    1. you’ve got a good enough idea for a little exercise below.

      This is a potentially helpful review method for student readers. For some of the other chapters (the chapters on qualitative data collection and analysis, for example), this kind of quick review might also be helpful to promote reader comprehension and internalization of key terms/concepts.

    2. Imagine you are working for a nonprofit focused on children’s health and wellness in school

      Great way to begin this chapter. I appreciate the introduction of this chapter's topic by way of a concrete example.

    1. Capturing your data.

      The example graphic below - Pride Rock, Simba, Mufasa - is an excellent way to use humor while simultaneously providing a helpful example and emphasizing important concepts.

    1. In what ways might you be biased about this topic?

      I like the author's addition here. Reminding students to strive for thoughtful approaches to these exercise questions/suggested activities is a great way to keep readers engaged.

  20. Jun 2019
    1. moderndive package contains data from this 1974 study on the role of binary gender on promotions at banks in the promotions data frame. Let’s look at what the data shows in this sample as a table using the janitor package we saw in Section 9.7.

      WOw -- who knew?

  21. May 2019
    1. 7KHEDVHRIWKHJUDSKLFLVVLPSO\DOLQHFKDUW+RZHYHUGHVLJQHOHPHQWVKHOSWHOOWKHVWRU\EHWWHU/DEHOLQJDQGSRLQWHUVSURYLGHFRQWH[WDQGKHOS\RXVHHZK\WKHGDWDLVLQWHUHVWLQJDQGOLQHZLGWKDQGFRORUGLUHFW\RXUH\HVWRZKDW¶VLPSRUWDQW

      I really like this because I don't see it often and it actually does draw my eye to the data and capture my interest.

  22. Mar 2019
    1. civics with interest and thoroughness.

      Here's a charming attempt to teach civics with interest:

      https://youtu.be/FFroMQlKiag

    2. secure tenure of office

      Teacher tenure (interestingly, here called "tenure of office") is still far from a settled matter. From the Phi Delta Kappan in 2018:

      "Originally enacted to protect against potential evils in state and local employment systems, such as nepotism, arbitrary dismissal, and political favoritism, tenure has become a common expectation of teacher employment. State teacher tenure laws are not a job guarantee but rather protection against arbitrary or politically motivated maltreatment. But is tenure on the way out?"

    1. reaffirming its faith in government of the people, by the people, for the people

      "The Party of Lincoln." (Lincoln's death was only 51 years in the past in 1916.)

  23. Feb 2019
  24. Jan 2019
    1. song of the suffrage siren!

      Alliteration. See also "female franchise." I wonder if you could scan the first three sentences: "Men of the South Heed not the song of the suffrage siren Seal your ears against her vocal wiles"

  25. Dec 2018
    1. their business

      "THEIR business" Interesting that this claim to partnership is right up front -- in the first item on the list. It's the starting point for what follows.

    1. Metalogue' Ahout Games and Being Serinus

      This whole read really reminds me of Wittengenstein, who says that all language is a barrier and a futile device that we are forced to use in order to interact with others. Throughout the article many moments occur where the translation of ideas from the father to the daughter is obscured by language and words.

    2. Daddy, why do titt"r, "na poipiu, pl"y?I don't know-I don't know.

      This seems to hit some kind of futility, is the father upset?

    1. its interesting that the self, which we usually consider to be such a singular thing, is represented here as fragmentary. It's almost a paradox though, how can one be both strong and weak. seems irrational even, but intuitively it resonates with me. The self is an incredible irrational thing

    1. "1" must not mislead us. It gives the illusion of asubstantial self, but as Rochester realizes here, Jane remains evan-escent, immaterial, a fragrance, an essence, a soul that remains alwaysapart from its incarnations. Rochester can no more grasp her than thesuccession o{ attributes can define her.

      My thoughts immediately bring me to cupid and psyche. Cupid was also in a sense immaterial, or at the least invisible.

    1. water's

      It is interesting the the water is the possessor here. We would expect to own our own reflections but the use of possession here really adds to that anxiety, it's as if we don't own ourselves

  26. Nov 2018
    1. microcosmic

      little system wheels and golden gears

    2. But we have learned that here and now is whereAll dme stops in a face we've held as dear

      I love these lines. Very surreal

    3. More patient than a needle in a drawer,

      When I was growing up and I would be restless while waiting for something, my grandmother would tell me to be as patient as a needle in a drawer. She read a lot of poems growing up so I wonder if this is where she got it from or if it's a country saying or both?