37 Matching Annotations
  1. Last 7 days
    1. The reason to love your neighbor as yourself is because your neighbor is yourself just with a different headset.

      for - key insight / quote - the reason to love your neighbor - Donald Hoffman - The reason to love your neighbor as yourself is because - your neighbor IS YOUR (TRUE) SELF, just with a different headset. - And the only reason we have problems is - we don't realize how incredible you are. - So you are that which is creating this VR simulation with all of its beauty, all of its complexity. - All the complexity is you and you're doing it effortlessly.

      adjacency - infinite intelligence - hologram metaphor - your neighbor is your (true) self - Deep Humanity motto - Join together (instead of Join us) - face behind the mask - Reflecting on this, it occurred to me that the Deep Humanity motto of "Join together, NOT join me/us" is deeply connected to what is being discussed in this annotation. - The problem with "joining me" is that it reflects we are still stuck in the ego reification paradigm while "join together" reflects awareness that the boundless intelligence is the true face behind the mask of each different species and each different individual of each species

  2. Mar 2025
  3. Oct 2024
  4. Jul 2023
  5. Jun 2023
  6. Jan 2023
  7. Dec 2022
  8. Apr 2022
    1. LEFT OUTER JOIN First, an inner join is performed. Then, for each row in T1 that does not satisfy the join condition with any row in T2, a joined row is added with null values in columns of T2. Thus, the joined table always has at least one row for each row in T1.
    1. Making one Comment query per Post is too expensive; it’s N+1 queries (one to fetch the posts, N to fetch the comments). You could use includes to preload all the comments for all the posts, but that requires hydrating hundreds of thousands of records, even though you only need a few hundred for your front page. What you want is some kind of GROUP BY with a LIMIT on each group — but that doesn’t exist, either in Activerecord nor even in postgres. Postgres has a different solution for this problem: the LATERAL JOIN.
    1. join = Arel::Nodes::NamedFunction.new('json_b_array_elements', [Arel::Nodes::SqlLiteral.new("subscriptions")]) .as(Arel::Nodes::NamedFunction.new('sd', [Arel::Nodes::SqlLiteral.new("subscription_data")]).to_sql) p = e.project( Arel::Nodes::SqlLiteral.new( Arel::Nodes::Grouping.new( Arel::Nodes::InfixOperation.new('->>', sd[:subscription_data], Arel::Nodes::SqlLiteral.new("'id'"))).to_sql) << '::uuid' ).where( Arel::Nodes::InfixOperation.new('->>', sd[:subscription_data], Arel::Nodes::SqlLiteral.new("'type'").eq( Arel::Nodes::SqlLiteral.new("'Company'") ) ).and(e[:slug].eq(event_slug))) p.join_sources << Arel::Nodes::StringJoin.new( Arel::Nodes::SqlLiteral.new('CROSS JOIN LATERAL')) << join
  9. Mar 2022
    1. And that can all can be written with CROSS JOIN LATERAL which is much cleaner, SELECT ARRAY( SELECT DISTINCT e FROM ( VALUES ('foo', 'bar', 'foo', 'baz' ) ) AS t(a,b,c,d) CROSS JOIN LATERAL unnest(ARRAY[a,b,c,d]) AS a(e) -- ORDER BY e; -- if you want it sorted );
  10. Jun 2021
  11. www.postgresql.org www.postgresql.org
    1. Subqueries appearing in FROM can be preceded by the key word LATERAL. This allows them to reference columns provided by preceding FROM items. (Without LATERAL, each subquery is evaluated independently and so cannot cross-reference any other FROM item.) TL;DR - LATERAL allows subqueries to reference earlier tables.
  12. Aug 2020
  13. Jun 2018
    1. Example1.61.Consider the two-element setPfp;q;rgwith the discrete ordering.The setAfp;qgdoes not have a join inPbecause ifxwas a join, we would needpxandqx, and there is no such elementx.Example1.62.In any posetP, we havep_pp^pp.Example1.63.In a power set, the meet of a collection of subsets is their intersection,while the join is their union. This justifies the terminology.Example1.64.In a total order, the meet of a set is its infimum, while the join of a set isits supremum.Exercise1.65.Recall the division ordering onNfrom Example 1.29: we say thatnmifndivides perfectly intom. What is the meet of two numbers in this poset? Whatabout the join?

      These are all great examples. I htink 1.65 is gcd and lcm.

  14. Oct 2016