290 Matching Annotations
  1. Last 7 days
    1. a “global variable” which identifies whichwidget is active

    Tags

    Annotators

  2. scattered-thoughts.net scattered-thoughts.net
    1. I like to organize all the state in a program so that it's reachable from some root pointer. This makes it easy for the reader to understand all the resources allocated by the program by just following the tree of types. It also makes it easy to find any piece of state from within a debugger, or to write little debugging helpers that eg check global invariants or print queue lengths.
    1. arly two dozen Republican state treasurers around the country are working to thwart climate action on state and federal levels, fighting regulations that would make clear the economic risks posed by a warming world, lobbying against climate-minded nominees to key federal posts and using the tax dollars they control to punish companies that want to reduce greenhouse gas emissions

      Republikaner führen einen regelrechten Krieg gegen climate action.

  3. Jul 2022
  4. bafybeibbaxootewsjtggkv7vpuu5yluatzsk6l7x5yzmko6rivxzh6qna4.ipfs.dweb.link bafybeibbaxootewsjtggkv7vpuu5yluatzsk6l7x5yzmko6rivxzh6qna4.ipfs.dweb.link
    1. Possibly the most useful paradigm to understand individual drive is the psychological concept offlow, which was derived from numerous observations of how people feel while performing differenttypes of activity (Csikszentmihalyi, 1990; Nakamura & Csikszentmihalyi, 2002). “Flow” refers tothe pleasurable state experienced when the activity, while intensely focused, proceeds in aseemingly effortless, flowing manner—because every action immediately elicits the next action,without any hesitation, worry or self-consciousness. In such a state, continuing the activity becomesthe only real concern, while everything else is pushed to the back of the mind. That is exactly thekind of focus and commitment that we expect from a good mobilization system. The gratifying,addictive quality of computer games is commonly explained by their capacity to produce flow(Cowley, Charles, Black, & Hickey, 2008).The basic conditions needed to generate flow are:• the activity has clear goals;• every action produces an immediate feedback.• the degree of difficulty or challenge of the task remains in balance with the level of skill

      Helping individuals achieve the feeling of flow is a prime motivator.

      Definition: Flow is the pleasurable state experienced when the activity, while intensely focused, proceeds in a seemingly effortless, flowing manner—because every action immediately elicits the next action, without any hesitation, worry or self-consciousness.

      Three conditions to achieve flow state: 1. have clear goals; 2. every action produces an immediate feedback. 3. the degree of difficulty or challenge of the task remains in balance with the level of skill

  5. Jun 2022
    1. The Invention of the Welfare State: Education,Health Care, and Social Security

      Welfare state has largely been given a negative connotation in America beginning roughly in the 1980s during the Reagan administration.

      Will Piketty continue this negative tone here?

    Tags

    Annotators

  6. May 2022
    1. "So they are an untrustworthy company. They have lied about this. They have issued a muddled statement. I don't think any customer -- and certainly any parent -- should take them at their word on this." If they want to be taken seriously again, Hild argues, "they need to come clean." And they also need to track down every book that was donated to a public library, school, and community center and get them back. Parents in those areas also need to be informed that those books were donated, Hild insisted, so that they can fix whatever damage State Farm has done. "If, at any time before they do [that, they try to insist] that they give a lick about their customers, about America's parents, or most importantly, the safety of America's children, it's absurd. They clearly don't."

      "So they are an untrustworthy company. They have lied about this. They have issued a muddled statement. I don't think any customer -- and certainly any parent -- should take them at their word on this." If they want to be taken seriously again, Hild argues, "they need to come clean." And they also need to track down every book that was donated to a public library, school, and community center and get them back. Parents in those areas also need to be informed that those books were donated, Hild insisted, so that they can fix whatever damage State Farm has done. "If, at any time before they do [that, they try to insist] that they give a lick about their customers, about America's parents, or most importantly, the safety of America's children, it's absurd. They clearly don't."

    1. Robert Fenton, Electrical and Computer Engineering Professor Emeritus, pioneered the technology for the first wave of self-driving cars.

      I had Fenton for a class once and during a lecture he asked a question of the class. A student raised his hand and answered. Professor Fenton listened and asked the class "Does anyone else agree that his answer is correct?"

      About 85% of the students in the large lecture hall raised their hands.

      He paused, shook his head, and said "Well, then I'm afraid you're all going to fail." Then he turned around and went back to writing on the chalkboard.

    1. s its name implies, the State Record pane records any command (from a data file, from the command prompt, from the user interface) that changes the model state, as it is issued, and stores it in a record. The record therefore contains all commands necessary to create the current model state.
  7. Apr 2022
    1. Over the next month, Curry said troopers will be able to sign up to work federally funded overtime to specifically seek out and enforce distracted driving.

      This is what following the PR schedule - instead of actual data is really about. It lets them cozy up and fill their bellies with overtime from the public trough.

      American tax extortion victims should be demanding to know why Delaware County troopers are getting Federal overtime dollars to address a problem that is projected to be half as bad as last year.

  8. Mar 2022
    1. In 1994, The Unix-Haters Handbook was published containing a long list of missives about the software—everything from overly-cryptic command names that were optimized for Teletype machines, to irreversible file deletion, to unintuitive programs with far too many options. Over twenty years later, an overwhelming majority of these complaints are still valid even across the dozens of modern derivatives. Unix had become so widely used that changing its behavior would have challenging implications. For better
    1. A major advance in user interfaces that supports creative exploration would the capacity to go back in time, to review and manipulate the history of actions taken during an entire session. Users will be able to see all the steps in designing an engine and change an early design decision. They will be able to extract sections of the history to replay them or to convert into permanent macros that can be applied in similar situations. Extracting and replaying sections of history is a form of direct man ipulation programming. It enables users to explore every alternative in a decision-making situation, and then chose the one with the most favorable outcomes.

      While being able to view the history of a problem space from the perspective of a creation process is interesting, in reverse, it is also an interesting way to view a potential learning experience.

      I can't help but think about the branching tree networks of knowledge in some math texts providing potential alternate paths through the text to allow learners to go from novice to expert in areas in which they're interested. We need more user interfaces like this.

    2. Powerful tools can support creativity: Innovation can be facilitated by powerful tools that supply templates and support exploratory processes such as brainstorming (offering links to related concepts), state-space expl oration (trying out all permutations), idea combining (systematic pairings), rapid prototyping, and simulation modeling.

      State-space exploration and idea combining (systematic pairings) are just modern reimaginings of ideas going back to Raymond Llull and possibly earlier.

  9. Feb 2022
  10. Jan 2022
    1. The key thing about the REST approach is that the server addresses the client state transitions. The state of the client is almost totally driven by the server and, for this reason, discussions on API versioning make little sense, too. All that a client should know about a RESTful interface should be the entry point. The rest should come from the interpretation of server responses.
  11. Dec 2021
    1. Peruvian letters which was supposedly the letters home by a captured Inca princess who's trapped in France and they're commenting on French society and this is later remembered it 00:50:03 comes out in his late 1740s um it's later remembered as the first book which suggested the idea of the welfare state

      The 1747 book Letters of a Peruvian Woman by the prominent saloniste Madame de Graffigny, which viewed French society through the eyes of an imaginary kidnapped Inca princess, is remembered as the first book to suggest the idea of the welfare state.

  12. Nov 2021
    1. Finally, teachers’, principals’ andstudents’ engagement and well-being during the pandemic

      Finally, teachers’, principals’ and students’ engagement and well-being during the pandemic

  13. Oct 2021
    1. But first, a word of caution. Writing affirmations is a good way to manage stressful situations and mitigate negative thoughts for many people. However, for people with low self-esteem or depression, studies suggest that self-affirmation can be harmful. Repeating a statement that you do not believe to be true can make you feel worse. In circumstances where self-affirmations could do harm, it is more appropriate to invest in support from a therapist or counsellor.

      Our emotional state is a magnet for what we accent or believe, if we're positive we believe the positive and if we're negative we look for confirmation for that state. Maybe our emotious is our boss?

  14. Sep 2021
    1. For the Stop Reset Go project, we are exploring how we achieve a group flow state that can connect us in an experience of deep humanity as we engage in a process of human inner transformation and social outer transformation. The goal of the project is bottom-up whole system change.

      The concept of a builders collective is to document what people are already doing to build a world that works for 100% of life.

    1. Mike Baker. (2021, August 28). Today, Mississippi surpassed New York in total coronavirus deaths per capita. For a long time, I didn’t think we’d ever see any state end up worse than New York or New Jersey. One year ago today, Mississippi’s death rate was less than half of New York’s. Https://nytimes.com/interactive/2021/us/covid-cases.html https://t.co/sEgUDFOMWz [Tweet]. @bymikebaker. https://twitter.com/bymikebaker/status/1431460167237783555

  15. Aug 2021
    1. Here’s where immutability comes in: if you’re passing props into a PureComponent, you have to make sure that those props are updated in an immutable way. That means, if they’re objects or arrays, you’ve gotta replace the entire value with a new (modified) object or array. Just like with Bob – kill it off and replace it with a clone. If you modify the internals of an object or array – by changing a property, or pushing a new item, or even modifying an item inside an array – then the object or array is referentially equal to its old self, and a PureComponent will not notice that it has changed, and will not re-render. Weird rendering bugs will ensue.
    2. An easy way to optimize a React component for performance is to make it a class, and make it extend React.PureComponent instead of React.Component. This way, the component will only re-render if its state is changed or if its props have changed. It will no longer mindlessly re-render every single time its parent re-renders; it will ONLY re-render if one of its props has changed since the last render.
    1. connect is pure connect automatically makes connected components “pure,” meaning they will only re-render when their props change – a.k.a. when their slice of the Redux state changes. This prevents needless re-renders and keeps your app running fast.
    1. My personal summary is that new context is ready to be used for low frequency unlikely updates (like locale/theme). It's also good to use it in the same way as old context was used. I.e. for static values and then propagate updates through subscriptions. It's not ready to be used as a replacement for all Flux-like state propagation.
    2. One problem with the "Context vs Redux" discussions is that people often actually mean "I'm using useReducer to manage my state, and Context to pass down that value". But, they never state that explicitly - they just say "I'm using Context". That's a common cause of the confusion I see, and it's really unfortunate because it helps perpetuate the idea that Context "manages state"
    3. We can even say that server caching tools like React-Query, SWR, Apollo, and Urql fit the definition of "state management" - they store initial values based on the fetched data, return the current value via their hooks, allow updates via "server mutations", and notify of changes via re-rendering the component
    4. createContext() was designed to solve that problem, so that any update to a value will be seen in child components even if a component in the middle skips rendering.
    1. The Redux FAQ has some rules of thumb to help decide whether state should go in Redux, or stay in a component.In addition, if you separate your state by domain (by having multiple domain-specific contexts), then the problem is less pronounced as well.
    2. but in a more practical scenario, you often suffer from "death by a thousand cuts" which means that there's not really a single place that's slow, so you wind up applying React.memo everywhere. And when you do that, you have to start using useMemo and useCallback everywhere as well (otherwise you undo all the work you put into React.memo). Each of these optimizations together may solve the problem, but it drastically increases the complexity of your application's code and it actually is less effective at solving the problem than colocating state because React does still need to run through every component from the top to determine whether it should re-render. You'll definitely be running more code with this approach, there's no way around that.
    1. Rafael Irizarry. (2021, August 8). Vaccines work in a gif update: COVID19 cases versus vaccination rates in US states through time. The Delta variant effect can be seen clearly starting in July. States with lower vaccination rates are affected much worse. Https://t.co/e0SQpa8Qg0 [Tweet]. @rafalab. https://twitter.com/rafalab/status/1424440520361787392

  16. Jul 2021
    1. BlackRock employs a stable of former policymakers, underscoring the importance the company occupies in both financial and policymaking ecosystems, in something akin to a shadow government entity.[157] Good government groups have documented 118 examples of “revolving door” activity by the company—cases in which a government official joined BlackRock’s roster, or vice versa.[158] In one particularly troubling example of how Washington’s revolving door operates, in 2017, a former BlackRock executive was put in charge of reviewing the FSOC’s work for the Treasury Department.[159] Unsurprisingly, the Department’s conclusion was that FSOC should “prioritize its efforts to address risks to financial stability through a process that emphasizes an activities-based or industry-wide approach,” the company’s preferred position.[160] This conclusion all but ensures that BlackRock will not be designated for greater regulation by the FSOC under the Trump administration.

      To Big To Fail? Above The Law? Shadow Government?

      The term "shadow government" comes up often when investigating Revolving Door partnerships between corporations and former government policymakers. One particular public corporation, BlackRock Investments is the poster child of revolving door activity and comparisons to a shadow government.

      BlackRock is front and center in the manipulation of todays Real Estate bubble.

      BlackRock should be marketed as;*The Largest Asset Manager and Keeper of The Neo-liberal Flame; We Kill Children to Make You Money and We Enjoy Doing It!*

    1. urql stays true to server data and doesn’t provide functions to manage local state like Apollo Client does. In my opinion, this is perfectly fine as full-on libraries to manage local state in React are becoming less needed. Mixing server-side state and local state seems ideal at first (one place for all states) but can lead to problems when you need to figure out which data is fresh versus which is stale and when to update it.
  17. Jun 2021
    1. StatelessWidgets are useful when the part of the user interface you are describing does not depend on anything other than the configuration information in the object
    1. Mocking is a form of global state like others (including ENV sharing), which will cause difficulties here (more with threads, a bit less with forks).
  18. May 2021
    1. Wellenius, G. A., Vispute, S., Espinosa, V., Fabrikant, A., Tsai, T. C., Hennessy, J., Dai, A., Williams, B., Gadepalli, K., Boulanger, A., Pearce, A., Kamath, C., Schlosberg, A., Bendebury, C., Mandayam, C., Stanton, C., Bavadekar, S., Pluntke, C., Desfontaines, D., … Gabrilovich, E. (2021). Impacts of social distancing policies on mobility and COVID-19 case growth in the US. Nature Communications, 12(1), 3118. https://doi.org/10.1038/s41467-021-23404-5

  19. Apr 2021
  20. Mar 2021
    1. The reason Final Form does this is so that pristine will be true if you start with an uninitialized form field (i.e. value === undefined), type into it (pristine is now false), and then empty the form field. In this case, pristine should return to true, but the value that the HTML DOM gives for that input is ''. If Final Form did not treat '' and undefined as the same, any field that was ever typed in would forever be dirty, no matter what the user did.
    1. Unlike the latter, however, the neurosciences are extremely well funded by the state and even more so by private investment from the pharmaceutical industry.

      More reasons to be wary. The incentive structure for the research is mostly about control. It's a little sinister. It's not about helping people on their own terms. It's mostly about helping people become "good" citizens and participants of the state apparatus.

    1. It is much easier to track what is going on within the activity. Instead of transporting additional state via ctx, you expose the outcome via an additional end event.

      Note: It's only super easy to see what's going on if you have the benefit of a diagram.

  21. Feb 2021
    1. (b)(1) A representative form of annual or special meeting is a meeting of members elected by district to exercise the powers vested in the voters of the town to act upon articles. However, the election of officers, public questions, and all articles to be voted upon by Australian ballot as required by law or as voted under section 2680 of this title at a prior annual or special meeting, and reconsideration of articles under section 2661 of this title shall remain vested in the voters of the town. (2) An organizational resolution to adopt a representative form of annual or special meeting may be made by the legislative body of the municipality or by petition of five percent of the voters of the municipality. An official copy of the organizational resolution shall be filed in the office of the clerk of the municipality at least 10 days before the annual or special meeting at which the vote whether to adopt the organizational resolution shall take place, and copies thereof shall be made available to members of the public upon request.

      Town Representative Form of Local Gov't. Only Brattleboro has this.

    1. If the criminal justice system is to move toward racial equality and liberation, this change will have to start with the states.

      This idea is repeated countlessly throughout the text (I have highlighted every time it is explicitly stated) and is in the title of this article. His view on this topic is abundantly clear and he uses repetition to drill this idea into his audience's head.

    1. TRAILBLAZER-WORKFLOW is another dream ‘o mine come true. It allows creating long-term processes (or state machines) based on BPMN diagrams that can be modeled using our editor.
    2. A major improvement here is the ability to maintain more than two explicit termini. In 2.0, you had the success and the failure termini (or “ends” as we used to call them). Now, additional ends such as not_found can be leveraged to communicate a non-binary outcome of your activity or operation.
    1. The rationale is that it's actually clearer to eager initialize. You don't need to worry about timing/concurrency that way. Lazy init is inherently more complex than eager init, so there should be a reason to choose lazy over eager rather than the other way around.
    1. Encapsulation is used to hide the values or state of a structured data object inside a class, preventing direct access to them by clients in a way that could expose hidden implementation details or violate state invariance maintained by the methods.
    1. DSLs can be problematic for the user since the user has to manage state (e.g. am I supposed to call valid? first or update_attributes?). This is exactly why the #validate is the only method to change state in Reform.
    2. The reason Reform does updating attributes and validation in the same step is because I wanna reduce public methods. This is to save users from having to remember state.

      I see what he means, but what would you call this (tag)? "have to remember state"? maybe "have to remember" is close enough

      Or maybe order is important / do things in the right order is all we need to describe the problem/need.

    3. My only concern with this approach is that if someone calls #valid? on the form object afterwards, it would under the hood currently delete the existing errors on the form object and revalidate. The could have unexpected side effects where the errors added by the models passed in or the service called will be lost.
    4. My concern with this approach is still that it's somewhat brittle with the current implementation of valid? because whilst valid? appears to be a predicate and should have no side effects, this is not the case and could remove the errors applied by one of the steps above.
  22. Jan 2021
    1. § 3-303. Alteration, amendment, or repeal of charter This charter may be altered, amended, or repealed by the General Assembly whenever the public good shall require.

      Burlington

      State Legislature has ultimate authority

  23. Dec 2020
    1. React will update state throughout the user’s session. localStorage won’t change.When the user ends their session, save whatever the state is at that time to localStorage, making it available for hydrating in the next session.

      Is this safe/reliable to defer saving until then? What if browser crashes? I guess that's why onbeforeunload is needed. Hopefully onbeforeunload is reliable and can't be skipped (unless browser crashes?).

    2. So rather than continuously keeping localStorage in-sync with React state, let’s simply save state to localStorage whenever the user ends their session, either by leaving the app (‘unmounting’ the component) or refreshing the page.
    1. This is the accepted way to handle problems related to authentication, because user data has a couple of important characteristics: You really don't want to accidentally leak it between two sessions on the same server, and generating the store on a per-request basis makes that very unlikely It's often used in lots of different places in your app, so a global store makes sense.
    2. But Svelte 3 doesn't have global stores that are passed around in quite the same way.
    1. Our large project is going to need highly structured and predictable state management, and Svelte’s flexibility scales from trivial projects up to our big one. We’re looking at statecharts and XState to wrangle this problem.
  24. Nov 2020
    1. This means that there needs to be a ‘focus’ state for a button to show that it is ‘clickable, but not clicked yet’.
    1. Frontend frameworks are a positive sum game! Svelte has no monopoly on the compiler paradigm either. Just like I think React is worth learning for the mental model it imparts, where UI is a (pure) function of state, I think the frontend framework-as-compiler paradigm is worth understanding. We're going to see a lot more of it because the tradeoffs are fantastic, to where it'll be a boring talking point before we know it.
  25. Oct 2020
    1. Mine requires that dirty and pristine be "calculated properties".
    2. This is a philosophical issue, I think. People (and presumably form libraries) have different definitions of what "dirty" means. Yours: "The field has ever been edited" Mine: "The value of the field is different from the initial value"
    3. Personally, I rather like the idea of typing into a field, backspacing to undo what you just typed, and having the field (and form) go back to being pristine. Aside from that aesthetic difference, my definition has the practical implication that it lets you know if you need to save the record or not.
    4. We could potentially have another flag that was your definition of dirty, but then we run into the hard problem in computer science: naming things.
    1. Imperative UI causes all sorts of problems, most of which revolve around state, which is another fancy term meaning “values we store in our code”. We need to track what state our code is in, and make sure our user interface correctly reflects that state.
    1. There may be times that required owned elements are missing, for example, while editing or while loading a data set. When a widget is missing required owned elements due to script execution or loading, authors MUST mark a containing element with aria-busy equal to true. For example, until a page is fully initialized and complete, an author could mark the document element as busy.

      "busy" here seems to = "loading" in most other programming contexts

    1. The graphs of ground state confinement energy againstsize (radius) for zinc sulfide nanoparticles in Figure 14 showthe dependence of confinement on the size of quantum dots.The result shows that ground state confinement energy is

      Las graficas de la energía de confinamiento en su estado fundamental en contra del tamaño (radio) por nanopartículas de sulfato de zinc en la Figura 14 muestran la dependencia de confinamiento en el tamaño de los puntos quánticos. El resultado muestra que el estado fundamental de energía en confinamiento es inversamente proporciona al tamaño (radio). Por lo tanto, cuando uno incrementa su radio (tamaño) la energía de confinamiento decrece pero nunca llega a cero. Eso es, el energía mas baja posible para el punto quántica de muestra no es cero. El confinamiento comienza cuando el radio del punto cuántico de muestra es comparable o del orden del radio exciton de Bohr.

    1. Instead of using classes and local state, Deku just uses functions and pushes the responsibility of all state management and side-effects onto tools like Redux.
  26. medium.com medium.com