177 Matching Annotations
  1. Last 7 days
    1. phytoncides, antibacterial and antimicrobial substances that trees and other plants release into the air to help them fight diseases and harmful organisms. When humans breathe in these substances—typically by spending time in nature—their health can improve. Across several studies, phytoncides have been shown to boost immune function, increase anticancer protein production, reduce stress hormones, improve mood, and help people relax. 

      I always feel better during and after a forest walk.

  2. Sep 2022
    1. IntertextsAs Jonathan Culler writes: “Liter-ary works are not to be consideredautonomous entities, ‘organicwholes,’ but as intertextual con-structs: sequences which havemeaning in relation to other textswhich they take up, cite, parody,refute, or generally transform.” ThePursuit of Signs (Ithaca, NY: CornelUniversity Press, 1981), 38.

      Throughout Rewriting: How To Do Things With Texts (Utah State University Press, 2006) Joseph Harris presents highlighted sidebar presentations he labels "Intertexts".

      They simultaneously serve the functions of footnotes, references, (pseudo-)pull quotes, and conversation with his own text. It's not frequently seen this way, but these intertexts serve the function of presenting his annotations of his own text to model these sorts of annotations and intertextuality which he hopes the reader (student) to be able to perform themselves. He explicitly places them in a visually forward position within the text rather than hiding them in the pages' footnotes or end notes where the audience he is addressing can't possibly miss them. In fact, the reader will be drawn to them above other parts of the text when doing a cursory flip through the book upon picking it up, a fact that underlines their importance in his book's thesis.


      This really is a fantastic example of the marriage of form and function as well as modelling behavior.


      cc: @remikalir

  3. Aug 2022
    1. 不得不说集成 SpringCloud Function 之后,消息的发送和接收又迈进了一个崭新的阶段,但 <functionName> + -in- + <index> 这样的配置规约我觉得让我有些难受......甚至目前我认为 3.1 之前被废弃的注解方式也许更适合我们开发使用

      新趋势

  4. Jul 2022
    1. randomFormat starts with a lowercase letter, making it accessible only to code in its own package (in other words, it's not exported).

      function name starts with a lowercase

    1. Any Go function can return multiple values. For more, see Effective Go.

      function can return multiple values.

      func Hello(name string) (string, error) { return name, nil }

  5. Jun 2022
    1. <?php$base = array("orange", "banana", "apple", "raspberry");$replacements = array(0 => "pineapple", 4 => "cherry");$replacements2 = array(0 => "grape");$basket = array_replace($base, $replacements, $replacements2);print_r($basket);?> The above example will output: Array ( [0] => grape [1] => banana [2] => apple [3] => raspberry [4] => cherry )

      array_replace() replaces the values of array with values having the same keys in each of the following arrays.

  6. May 2022
  7. www-ncbi-nlm-nih-gov.proxy-bloomu.klnpa.org www-ncbi-nlm-nih-gov.proxy-bloomu.klnpa.org
    1. disrupts the biogenesis and processing of miRNAs with subsequent disruption in control of gene

      effects miRNA

    1. DICER1 variants cause a hereditary cancer predisposition

      -Gene: DICER1 -PMID: 29343557 -Inheritance Pattern: DICER1 is inherited as an autosomal dominant condition with decreased penetrance -Disease Entity: earlier onset disease, multisite disease, 0-2 site disease, cystic lung disease, familial disease, bilateral disease, stage IA/IB, bilateral disease -mutation: germline loss-of-function mutation, missense mutation, Intronic mutations, hotspot mutation, second somatic mutation, truncating mutations, biallelic mutation -zygosity: heterozygosity -Family History: -testing should be considered for those with a family history of DICER1-associated conditions so that appropriate surveillance can be undertaken. -Individuals at 50% risk of a germline pathogenic variant based on family history who do not pursue genetic testing should follow surveillance guidelines as -if they have a DICER1 mutation unless/until genetic testing confirms that they did not inherit the familial mutation When a pulmonary cyst is identified in a young child with a pathogenic germline -DICER1 variant or family history of a DICER1-associated condition, it should be assumed to be Type I PPB until proven otherwise

      Other Information: -Case: Risk for most DICER1-associated neoplasms is highest in early childhood and decreases in adulthood -affected phenotype may simply result from probabilities of generating the characteristic “loss-of-function plus hotspot” two hit typical of a DICER1 syndrome neoplasm. -Caseprevioustesting: presymptomatic testing of a minor child, should be discussed and factored into the decision process, as some individuals may choose, and have the right to choose, not to know their/their child’s genetic status. -gnomAD: n/a

  8. Apr 2022
    1. All of the major books that were to follow – Sade /Fourier / Loyola (1997), The Pleasure of the Text (1975), RolandBarthes by Roland Barthes (1977), A Lover’s Discourse (1990), andCamera Lucida (1993) – are texts that are ‘plural’ and ‘broken’, andwhich are ‘constructed from non-totalizable fragments and fromexuberantly proliferating “details”’ (Bensmaïa, 1987: xxvii-xxxviii).In all of the above cases the fragment becomes the key unit ofcomposition, with each text structured around the arrangement ofmultiple (but non-totalisable) textual fragments.

      Does the fact that Barthes uses a card index in his composition and organization influence the overall theme of his final works which could be described as "non-totalizable fragments"?

  9. Mar 2022
    1. he basic function of an anaesthesia machine is to prepare a gas mixture of precisely known, but variable composition. The gas mixture can then be delivered to a breathing system.
  10. Feb 2022
  11. Jan 2022
    1. My gut told me calling an async function from the setTimeout callback was a bad thing. Since the setTimeout machinery ignores the return value of the function, there is no way it was awaiting on it. This means that there will be an unhandled promise. An unhandled promise could mean problems if the function called in the callback takes a long time to complete or throws an error.
    1. const originalUnhandledRejection = window.onunhandledrejection; window.onunhandledrejection = (e) => { console.log('we got exception, but the app has crashed', e); // or do Sentry.captureException(e); originalUnhandledRejection(e); }
  12. www.npmjs.com www.npmjs.com
    1. co(function* () {  var result = yield Promise.resolve(true);  return result;}).then(function (value) {  console.log(value);}, function (err) {  console.error(err.stack);});
  13. Nov 2021
  14. Oct 2021
    1. const fetchWithJSONHeaders = applyDefaults(fetch, { headers: { "Content-Type": "application/json" } }); const fetchWithTextHeaders = applyDefaults(fetch, { headers: { "Content-Type": "application/text" } }); // Fetch JSON content const response = await fetchWithJSONHeaders("/users", { method: "GET" });
    1. But there is a lot of things we didn’t handle: How do we pass function arguments through? How do we maintain scope (the value of this)? How do we get the return value? What if an error happens?
    1. A wrapper function is a design concept where a very minimal function is using another function to do it's "work" for it, sometimes using a slightly different set of arguments.
  15. Jul 2021
    1. Keerthivasan, S., Şenbabaoğlu, Y., Martinez-Martin, N., Husain, B., Verschueren, E., Wong, A., Yang, Y. A., Sun, Y., Pham, V., Hinkle, T., Oei, Y., Madireddi, S., Corpuz, R., Tam, L., Carlisle, S., Roose-Girma, M., Modrusan, Z., Ye, Z., Koerber, J. T., & Turley, S. J. (2021). Homeostatic functions of monocytes and interstitial lung macrophages are regulated via collagen domain-binding receptor LAIR1. Immunity, 54(7), 1511-1526.e8. https://doi.org/10.1016/j.immuni.2021.06.012

  16. Jun 2021
    1. The problem is, algorithms were never designed to handle such tough choices. They are built to pursue a single mathematical goal, such as maximizing the number of soldiers’ lives saved or minimizing the number of civilian deaths. When you start dealing with multiple, often competing, objectives or try to account for intangibles like “freedom” and “well-being,” a satisfactory mathematical solution doesn’t always exist.

      We do better with algorithms where the utility function can be expressed mathematically. When we try to design for utility/goals that include human values, it's much more difficult.

    1. json_array_elements_text ( json ) → setof text jsonb_array_elements_text ( jsonb ) → setof text Expands the top-level JSON array into a set of text values. select * from json_array_elements_text('["foo", "bar"]') → value ----------- foo bar
    1. graphqlSync is a relatively recent addition to GraphQL.js that lets you execute a query that you know is going to return synchronously and get the result right away, rather than getting a promise. Since we know that introspection won’t require calling any asynchronous resources, we can safely use it here.
  17. May 2021
    1. This function runs on every request, for both pages and endpoints, and determines the response. It receives the request object and a function called resolve, which invokes SvelteKit's router and generates a response accordingly.
  18. Apr 2021
    1. The role of the terminal emulator process is:

      Shows the relationship between a "terminal emulator" and a pseudoterminal, as alluded to in the intro:

      is a pair of pseudo-devices, one of which, the slave, emulates a hardware text terminal device, the other of which, the master, provides the means by which a terminal emulator process controls the slave.

    1. Other physicists and mathematicians at the turn of the century came close to arriving at what is currently known as spacetime. Einstein himself noted, that with so many people unraveling separate pieces of the puzzle, "the special theory of relativity, if we regard its development in retrospect, was ripe for discovery in 1905."

      Interesting. This acts as evidence for the hypothesis that environments/conditions are powerful forcing functions.

      It also acts as evidence against the argument of the "lone genius".

  19. Mar 2021
    1. Or if you need to change the way the string is assembled, you can provide a proc, for example: if defined?(BetterErrors) BetterErrors.editor = proc { |file, line| "vscode://file/%{file}:%{line}" % { file: URI.encode_www_form_component(file), line: line } } end
    1. Suppose that the validate task was getting quite complex and bloated. When writing “normal” Ruby, you’d break up one method into several. In Trailblazer, that’s when you introduce a new, smaller activity.
  20. Feb 2021
    1. Attribution requires knowledge of two facts: who holds the asset, and who has created it and is party to the contract.

      Basic functions of blockchain: Attribution

    1. Though rarer in computer science, one can use category theory directly, which defines a monad as a functor with two additional natural transformations. So to begin, a structure requires a higher-order function (or "functional") named map to qualify as a functor:

      rare in computer science using category theory directly in computer science What other areas of math can be used / are rare to use directly in computer science?

    1. # Set the model name to change the field names generated by the Rails form helpers def self.model_name=(name) @_model_name = ActiveModel::Name.new(self, nil, name) end
    1. The central ideas of this design pattern closely mirror the semantics of first-class functions and higher-order functions in functional programming languages. Specifically, the invoker object is a higher-order function of which the command object is a first-class argument.
    1. def self.attribute(name, type = ActiveModel::Type::Value.new, **options) super attribute_type = attribute_types[name.to_s] # Add the ? method for boolean attributes alias_boolean(name) if attribute_type.is_a?(ActiveModel::Type::Boolean) # store date attribute names so we can merge the params during # initialization date_attributes << name if attribute_type.class.in?(DATE_TYPES) end
  21. Jan 2021
    1. While custom iterators are a useful tool, their creation requires careful programming due to the need to explicitly maintain their internal state. Generator functions provide a powerful alternative: they allow you to define an iterative algorithm by writing a single function whose execution is not continuous. Generator functions are written using the function* syntax.
  22. Dec 2020
    1. Remember that async functions always return promises. This promise rejects if any uncaught error occurs in the function. If your async function body returns a promise that rejects, the returned promise will reject too.
  23. Nov 2020
    1. // DO NOT INLINE this variable. For backward compatibility, foundations take a Partial<MDCFooAdapter>. // To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable.

      I wish I understood what they meant and why this is necessary

    1. proteases

      Is a group of enzymes whose catalytic function is hydrolyzing peptide bonds of proteins. Also referred to as proteolytic enzymes or even proteinases.

    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.
    1. διαδικασία Definition from Wiktionary, the free dictionary Jump to navigation Jump to search Greek

      Greek Noun

      διαδικασία • (diadikasía) f (plural διαδικασίες)

      1. procedure, process, method, protocol
      2. (computing) function, subroutine, procedure
  24. Oct 2020
    1. Final Form makes the assumption that your validation functions are "pure" or "idempotent", i.e. will always return the same result when given the same values. This is why it doesn't run the synchronous validation again (just to double check) before allowing the submission: because it's already stored the results of the last time it ran it.
    1. Another example:

      const expensiveOperation = async (value) => {
        // return Promise.resolve(value)
          // console.log('value:', value)
          await sleep(1000)
          console.log('expensiveOperation: value:', value, 'finished')
          return value
      }
      
      var expensiveOperationDebounce = debounce(expensiveOperation, 100);
      
      // for (let num of [1, 2]) {
      //   expensiveOperationDebounce(num).then(value => {
      //     console.log(value)
      //   })
      // }
      (async () => { await sleep(0   ); console.log(await expensiveOperationDebounce(1)) })();
      (async () => { await sleep(200 ); console.log(await expensiveOperationDebounce(2)) })();
      (async () => { await sleep(1300); console.log(await expensiveOperationDebounce(3)) })();
      // setTimeout(async () => {
      //   console.log(await expensiveOperationDebounce(3))
      // }, 1300)
      

      Outputs: 1, 2, 3

      Why, if I change it to:

      (async () => { await sleep(0   ); console.log(await expensiveOperationDebounce(1)) })();
      (async () => { await sleep(200 ); console.log(await expensiveOperationDebounce(2)) })();
      (async () => { await sleep(1100); console.log(await expensiveOperationDebounce(3)) })();
      

      Does it only output 2, 3?

    1. Methods have fixed arities to support auto-currying.
    2. // `lodash/padStart` accepts an optional `chars` param. _.padStart('a', 3, '-') // ➜ '--a' // `lodash/fp/padStart` does not. fp.padStart(3)('a'); // ➜ ' a'
    3. The lodash/fp module promotes a more functional programming (FP) friendly style by exporting an instance of lodash with its methods wrapped to produce immutable auto-curried iteratee-first data-last methods.
    1. One of the significant differences between the two is that a call to a partially applied function returns the result right away, not another function down the currying chain; this distinction can be illustrated clearly for functions whose arity is greater than two.
    2. Currying and partial function application are often conflated.
    1. It looks like you accidentally passed resolve() (immediately invoking the function) directly to setTimeout rather than passing a function to invoke it. So it was being resolved immediately instead of after a 1000 ms delay as intended.

      I guess this is the "immediately invoked function" problem.

      Not to be confused with: immediately invoked function expression. (Since it is a regular named function and not a function expression.)

    2. You should not create a new debounce function on every render with: return new Promise(resolve => { debounce(() => resolve(this.getIsNameUnique(name)), 2000); }); Instead you should just wrap your whole function isNameUnique with the debounce (see my sandbox). By creating a new debounce function on every hit, it cannot 'remember' that is was called or that is will be called again. This will prevent the debouncing.
    1. If you define a variable outside of your form, you can then set the value of that variable to the handleSubmit function that 🏁 React Final Form gives you, and then you can call that function from outside of the form.
    1. The results of a DEXA scan are most often reported as T-scores. A T-score compares a person’s bone density to the average peak bone density of a healthy 30-year-old population of the same gender. A T-score of −1.0 or above indicates normal bone density. A person with a T-score between −1.0 and −2.5 has low bone density, which is a condition referred to as osteopenia. A person with a T-score of −2.5 or below is diagnosed with osteoporosis.

      T score levels for bone density.

    1. In the third step of bone remodeling, the site is prepared for building. In this stage, sugars and proteins accumulate along the bone’s surface, forming a cement line which acts to form a strong bond between the old bone and the new bone that will be made. These first three steps take approximately two to three weeks to complete.

      Bone remodeling process.

    2. In adulthood, our bones stop growing and modeling, but continue to go through a process of bone remodeling.

      I would challenge that fact.

    3. Bone tissue cells include osteoprogenitor cells, osteoblasts, osteoclasts, and osteocytes. The osteoprogenitor cells are cells that have not matured yet. Once they are stimulated, some will become osteoblasts, the bone builders, and others will become osteoclasts, the cells that break bone down. Osteocytes are the most abundant cells in bone tissue. Osteocytes are star-shaped cells that are connected throughout the bone and exchange nutrients from bones to the blood and lymph.

      The Asteo Class of Bone Tissue

    4. Your bones are stronger than reinforced concrete. Bone tissue is a composite of fibrous collagen strands that resemble the steel rebar in concrete and a hardened mineralized matrix that contains large amounts of calcium, just like concrete.

      What Is Bone?

    1. In React 0.12 time frame we did a bunch of small changes to how key, ref and defaultProps works. Particularly, they get resolved early on in the React.createElement(...) call. This made sense when everything was classes, but since then, we've introduced function components. Hooks have also make function components more prevalent. It might be time to reevaluate some of those designs to simplify things (at least for function components).
    1. Return a tagged template function hx from a hyperscript-style factory function h
  25. Sep 2020
    1. It looks like the issue stems from having "svelte" as a dependency instead of a devDependencies in package.json within the sapper project. This causes import 'svelte' to load the rollup excluded npm package's set_current_component instead of from within the sapper generated server.js.
    1. By default, in order to allow inline fat-arrow validation functions, the field will not rerender if you change your validation function to an alternate function that has a different behavior. If you need your field to rerender with a new validation function, you will need to update another prop on the Field, such as key
    1. here I wrapped the function call in an IIFE - that's what that (async () => {....})() is if you've never seen it. This is simply because we need to wrap the await call in a function that uses the async keyword, and we also want to "immediately invoke" the function (IIFE = "Immediately Invoked Function Execution") in order to call it.
    1. Here we store the three Promise objects in variables, which has the effect of setting off their associated processes all running simultaneously. Next, we await their results — because the promises all started processing at essentially the same time, the promises will all fulfill at the same time
    2. By only adding the necessary handling when the function is declared async, the JavaScript engine can optimize your program for you.
  26. Jul 2020
    1. Dessa ingångar eller portar, som han kallar dem, kan alla användas för att ta oss tillbaka till nuet, där inga problem finns. Det är bara i nuet som vi hittar glädjen och kan omfamna vårt sanna jag.

      Här verkar han utgå från att det faktiskt finns minst fyra "portar" vilket stämmer överens med Carl Jungs teori att den MINST utvecklade funktionen hos en individ är "porten till det undermedvetna" varigenom all mänsklig transformation sker.

      Man går helt enkelt in genom sitt MINST utvecklade personlighetsdrag och kan då nå sitt meditativa jag som ligger under och bakom alla personlighetsdrag. De olika personlighetsdragen är tänkande (eld), kännande (vatten), kroppsliga intryck (jord) respektive intuition (luft).

      Det är i sin tur samma sak som indiankulturernas medicinhjuls fyra väderstreck med människan i mitten.

    2. Dessa ingångar eller portar, som han kallar dem, kan alla användas för att ta oss tillbaka till nuet, där inga problem finns.

      Men här skriver de att han pekar på FLERA portar. Kanske utgår Eckhart Tolle från Jungs funktioner och säger att det finns fyra - tänkande, kännande, intuition och sinnesintryck. Bakom/under dessa finns den fullt ut levande människan som gör att vi upplever glädjen och kan omfamna vårt sanna jag.

      Exakt samma fyra mänskliga medvetande-funktioner som återfinns i indiankulturernas medicinhjul som de fyra väderstrecken och i den antika elementlärans vatten (känsla), eld (tänkande), luft (intuition) och jord (sinnesintryck)

    3. Eckhart Tolle klargör också att kroppen är nyckeln till vår inre ocean av kunskap och vägen till sinnesro.

      Ja, för Eckhart Tolle som sannolikt är dominant iNtuitiv och därefter Thinker (exempelvis INTJ eller INFJ som båda har dominant introverterad intuition) är extraverterad Sensing, dvs den fysiska världens sinnesintryck på kroppen den minst utvecklade funktionen (i alla fall den fjärde sämsta). Carl Jung sa att porten till det undermedvetna, och därför all verklig personlig transformation, är den minst utvecklade funktionen.

      Så hade Eckhart Tolle varit som min brorsa, en ESTP, så hade introverterad intiuition (en av mina bästa förmågor exempelvis, som INTJ) varit nyckeln till vår "inre ocean av kunskap och vägen till sinnesro"

  27. Jun 2020
    1. 14 Essential Functions of the Human Resource Department Leave a Comment / Blog Contact According to Storey (1995), HRM is a distinctive approach to employment management which seeks to achieve competitive advantage through the strategic deployment of a highly committed and capable workforce, using an integrated array of cultural, structural and personnel techniques. An efficiently run human resources department can provide your organization with structure and the ability to meet business needs through managing your company’s most valuable resources – its employees. There are several HR disciplines, but HR practitioners in each discipline may perform more than one of the more than six essential functions. In small businesses without a dedicated HR department, it’s possible to achieve the same level of efficiency and workforce management through outsourcing HR functions or joining a professional employer organization. In this article, we will go over the 14 essential Functions of Human Resource departments and explain how they help move the organization forward. These functions are as follows: Human Resource Planning The first function of HR is all about knowing the future needs of the organization. What kind of people does the organization need, and how many? Knowing this will shape the recruitment, selection, performance management, learning and development, and all other HR functions. Human resources planning is similar to workforce planning. Both focus on where the organization is today and what it needs to be successful in the future. Recruitment And Selection Recruitment process outsourcing is the process of captivating, screening, and selecting potential and qualified candidates based on objective criteria for a particular job. The goal of this process is to attract qualified applicants and to encourage the unqualified applicants to opt themselves out. The recruitment and selection process is very important to every organization because it reduces the costs of mistakes such as engaging incompetent, unmotivated, and under-qualified employees. Firing the unqualified candidate and hiring the new employee is again an expensive process. Training and Development Employers must provide employees with the tools necessary for their success which, in many cases, means giving new employees extensive orientation training to help them transition into a new organizational culture. Many HR departments also provide leadership training and professional development. Corporate training may be required of newly hired and promoted supervisors and managers on topics such as performance management and how to handle employee relations matters at the department level. Employer-Employee Relations In a unionized work environment, the employee and labor relations functions of HR may be combined and handled by one specialist or be entirely separate functions managed by two HR specialists with specific expertise in each area. Employee relations is the HR discipline concerned with strengthening the employer-employee relationship through measuring job satisfaction, employee engagement and resolving workplace conflict. Labor relations functions may include developing management response to union organizing campaigns, negotiating collective bargaining agreements and rendering interpretations of labor union contract issues. Compensation and Benefits Like employee and labor relations, the compensation and benefits functions of HR often can be handled by one HR specialist with dual expertise. On the compensation side, the HR functions include setting compensation structures and evaluating competitive pay practices. A comp and benefits specialist also may negotiate group health coverage rates with insurers and coordinate activities with the retirement savings fund administrator. Payroll can be a component of the compensation and benefits section of HR; however, in many cases, employers outsource such administrative functions as payroll. Labor Law Compliance Compliance with labor and employment laws is a critical HR function. Noncompliance can result in workplace complaints based on unfair employment practices, unsafe working conditions and general dissatisfaction with working conditions that can affect productivity and ultimatel