225 Matching Annotations
  1. Oct 2022
    1. creating a new block formatting context can ensure that floats and margins remain inside a box

      To remember when dealing with margin-collapsing...

  2. Sep 2022
    1. The line-height property defines the amount of space above and below inline elements.

      Not exactly. If this were true, there'd be space around the cluster of text as a whole and not space between the lines. The browser automatically breaks text (in inline elements) up into sub boxes, a box for each line. These sub boxes that the browser defined for you get the height change from line-height.

  3. May 2022
    1. Venus, Jupiter, and other planets

      There are physical bodies and astral bodies. Why would would that be only for humans? What if there are astral planets?

    1. The prime condition of their success was that they should never be supervised or obstructed

      Why

  4. Apr 2022
    1. Schedule regular cleaning and maintenance by conducting seiri, seiton, and seiso daily.

      No this is sustain. Standardize is "make everything the same" or "reduce variance". See Out of the Crisis to see how Japanese operators used the standard dies to reduce downtime.

    1. the standalone ClojureScript JAR

      This is NOT required with the clj tool. This should be updated.

  5. Mar 2022
    1. if Martin Luther King had regularly worn PVC harnesses and nipple clamps at his public speeches

      😂

    2. Speaking as an ethnic minority – literally nothing about me is white except for my skin colour

      I love this woman! Complete 180 from my initial perspective!

    3. basic course in Gender Studies

      😄

    4. pseudo-sciences such as “genetics”, “endocrinology” and “facts”

      it is satire! 😄

    5. genuinely embarrassing to read

      nevermind, it's not satirical :/

    6. ecosexual vegan intersectional feminist

      😂 okay this has to be satire. I like it!

    7. The idea that you can be gay and have conservative opinions is absurd. It was the same with Kanye West, who gave up being black once he’d put on that MAGA hat.

      wait, is this a bait and switch.

    8. gay entrepreneur Peter Thiel

      Didn't know Peter Thiel was gay!

    9. the last thing the world needs right now is yet another book by a straight white cis male

      you have yet to attack the substance of the book. What are his propositions. What are his arguments. What do you disagree with.

    10. heteronormative quality

      ...

    11. spews his hateful bile

      you're projecting

    12. we can all see what happens

      violation of the right that lets you say this.

    13. 300 pages of hateful bile – on white paper, no less

      describes "hateful bile" in a hateful way.

  6. Feb 2022
  7. Jan 2022
    1. "Watsitz takes a `frob` and converts it to a znoot. When the `frob` is negative, the znoot becomes angry.

      😄

  8. Dec 2021
    1. deps-graph

      How do you get deps-graph from clojure.tools.deps.graph

  9. Nov 2021
    1. As with many great things in life, Git began with a bit of creative destruction and fiery controversy.

      What an intro

    1. ~'conn

      Why simple quote then unquote? Why not just use conn by itself?

    2. [major-var]

      Why does he use syntax unsplicing here. Why not ~(when major-var-type major-var)? Something for if it returns nil?

  10. Oct 2021
    1. if you find such a person, I hope you give them a hug

      Higginbotham understands depression.

    2. I think of objects as really, really, rid

      Current spot.

    1. (binding [*notification-address* "test@elf.org"] (notify "test!"))

      I wondered why to use binding over let. It handles more global variables? let achieves the same functionality as binding, so perhaps binding serves a more semantic purpose :/

    2. requires

      Not required.

  11. Sep 2021
    1. With syntax quoting, you can just wrap the entire do expression in a quote and simply unquote the two symbols that you want to evaluate.

      Syntax quoting is more complex than this.

  12. Aug 2021
    1. {:name identity :glitter-index str->int}

      The data is organized in maps. Each map has a set of keywords. The original data has a map of keys to string values. The conversions variable has a list of keys that match the keys of the original map's. The value of the conversions is what to do with the data at that key before finalizing.

    2. Once the REPL is started, delete the contents of core.clj

      Why 🤔

    1. Floated elements are taken out of the normal document flow.

      Oh this is why.

    2. it allows you to use all the benefits of what a block-level element can offer, whilst getting around the major limitation of not being able to place block-level elements horizontal to each other.

      Why not just use inline?

    3. Understand that? Me neither.

      Haha 😊

  13. Jun 2021
    1. It did not settle on a timeline to eliminate the use of coal for generating electric power

      But they did settle on only funding clean coal projects by 2022.

    1. hoose Panel Options from the Layers panel menu, and select Entire Document to display the contents of the entire document. Select Layer Bounds to restrict the thumbnail to the object’s pixels on the layer.

      Don't get this yet.

    1. But we respect your freedom to make your own decisions, including the decision to take your own life.

      I respect you respecting this.

    1. He also said that El Salvador would offer citizenship to people who showed evidence they had invested in at least three bitcoins.

      Wow!

    1. “If there was an actual commitment to Doing Good Every Day amongst the majority of people involved, there would be awesome stuff happening all the time.”

      True!

  14. May 2021
    1. If you are on macOS or Linux your deps.edn file should contain the following:

      What about Windows?

    1. Our developers will have their free coffee taken away for a week as a first warning...

      Ha 😄

    1. The word boundary does not make the engine advance through the string. The position in the regex is advanced to [^>].

      I don't quite understand this yet.

  15. Apr 2021
    1. pruner

      To show only the top of a transaction? I.e. instead of returning the whole thing, return just the most recent accounts involved?

    2. dogecoind

      Dogecoin daemon.

    1. You would like to upgrade your cryptography and start using post-quantum crypto — so cryptography that’s immune to quantum computers — as soon as possible,” he said.

      I wonder how reasonable of a fear this is.

    1. I think Doge ultimately exists to be pumped and dumped by insiders and market makers and it will eventually peter out as the more substantive coins continue to receive legitimate institutional interest and mainstream media coverage

      Pump and dumpers exist on a majority of people who believe in it. Most people are hodlers (i.e. why it's at the $0.388 mark now), and profit-takers are on the top. As long as the hodlers exceed profit takers (which they are), it will grow.

    2. but not because of any solid fundamentals

      Are you kidding me:

      • Cheaper transactions than BTC (1-5 Doge)
      • Faster transactions than BTC (1/3rd the time)
      • More secure with more use (So much use RH and Binance froze)
      • Credible founder
      • Devs releasing updates
      • Kucoin, Webull, RH, and Binance work with it
      • RH Wallets likely
      • Coinbase integration likely
      • Amazing community
      • Great meme
      • Celebrity endorsements, esp. Musk
      • Trip to the moon
    3. He said: "Dogecoin is what people typically refer to as a 'meme' coin (i.e. an 'unserious coin') since there is a technically infinite supply of them.

      So ETH is a meme coin because it isn't capped?

    1. Dogecoin serves no purpose

      Are you shitting me. This is literally saying the dollars in your wallet serve no purpose.

    1. ")

      feelings-about is incorrectly nested in the thoughts method. There needs to be another ) here for this to work.

    2. (str x " is envious of " y "'s simpler way of life")

      Unable to resolve symbol: y in this context

    1. (code-critic (1 + 1) (+ 1 1))

      I'm getting a NullPointerException.

    2. That’s pretty simple!

      No it's not ha! 😊

    1. ("+")

      ClassCastException.

    2. :huzzah
    3. Clojure reads the stream of characters and internally produces the corresponding data structures. It then evaluates the data structures and prints the textual representation of the result

      It could be called RdEPL then. "Read (to data structure)-evaluate (the data)-print-loop".

    1. Run lein run

      The HTML file shows, but browse/browse-url complains:

      Syntax error (URISyntaxException) compiling at (C:\Users\Choppy\AppData\Local\Temp\form-init10621992191013934454.clj:1:110).
      Illegal character in path at index 10: file:///C:\Users\Choppy\Documents\Clutter\Coding\clojure\2021-04-11\oh-wow-you-look-good/map.html
      `
      
    2. (min [{:a 1 :b 3} {:a 5 :b 0}])

      NullPointerException

    3. (:refer-clojure :exclude [println])

      Using VS Code/Calva, it still pulls it in for me, but this works when you work with lein run.

    4. (refer 'the-divine-cheese-code.visualization.svg :as :only ['points])

      No value supplied for key: [points] in Clojure 1.10.1

    5. (refer 'the-divine-cheese-code.visualization.svg :as :only ['points])

      This isn't flying in my REPL.

    1. random-quote

      The random-quote generator's down

    2. [org.clojure/core.async "0.1.346.0-17112a-alpha"]

      This does not work with Clojure 1.10.1

    3. ; => true ; => ketchup

      I get this

    1. a total word count for all quotes

      So some quotes have the same word. We want to count how many times times a given word appears throughout the quotes.

    2. http://www.braveclojure.com/random-quote

      No longer operational. Making a mock.

    1. a vector of the URLs

      This is no longer feasible, as search engines now obfuscate the urls. They appear to listen for a user click and build the link dynamically instead of sending hard links in the html. A very good move to avoid scraping, like we're doing here.

    2. Google

      Google's a c**t. <del>Use DuckDuckGo here</del> DuckDuckGo 500-ed me after a couple slurps. Just mock the search call by returning a string after a random number of seconds.

    1. marijuana entrepreneur and hand surgeon Jason Pirozzolo

      Interesting combo.

    1. The read table is currently not accessible to user programs.

      So it might be in the future.

    1. Ruby

      Blows me away when I read this. It's

      • Written in Clojure,
      • Installed as a DEB
      • and requires Ruby

      Blurg.

    1. unset

      I tried switching it to initial in codepen. It had the same effect as unset. Working w/ font-size shows where unset is different and therefore where it has utility: https://codepen.io/attentionaaron/pen/MWJpxJW . And also:

      "the border will become black because, again, that's what the initial value is." Not true! The initial value of the border matches the color property!

    2. isn’t inherited by default

      If it isn't inherited, then it sets to the initial (I think).

    3. this keyword sets the default value of a property as specified in its definition table (in the CSS specs)

      So every property has a default value in the definition table behind the scenes, implemented in the CSS renderer. The renderer will refer to this when it sees initial.

    4. the Styles tab

      Because of the Computed tab, not going to look at this as much anymore.

    5. the Computed tab

      This is important.

    1. calculations

      Typically, converting em's and ch's and %'s to px. The uniform px's are evaluated.

    1. a student's preparation for earning a living is not the primary objective of schooling.

      Yes! ♥

    1. A cynical person might say that Java gives you enough rope to hang yourself, and if you find such a person, I hope you give them a hug.

      <3

    2. clojure.lang.RT

      I've seen this used in the source code... I'm looking here, and I still have questions about what RT does. More research to be done.

    3. the 1.9.0 stable release

      You went up four versions since chapter one (?)

  16. Mar 2021
    1. (require [clojure.set :as set])

      Should be (:require [clojure.set :as set])

      1. clojure.set isn't used in the code. Can remove.
      2. use (:require ...), not (require ...). Note the ":".
    1. They’re so beautiful you might start making infinite loops on purpose just to see them.

      🙂

    1. Pr(B) = Pr(C) = .05

      Neat how you removed duplication with this equation.

    2. ‘bold’ means to have many observational consequences

      As I said at the wiki I saw this link from, you don't test the hypothesis directly, you test the predictions, the "observational consequences", from the hypothesis.

    1. The hypothesis, being insecure, needs to have practical implications leading at least to mental tests and, in science, lending themselves to scientific tests.

      Exactly. The hypothesis is kind of an abstract thing to predict from. It's the predictions that you test, not the hypothesis directly. If the hypothesis lets you make predictions that turn out true with testing, then the hypothesis is more-or-less confirmed. If its predictions turn out inaccurate, then the hypothesis is falsified.

    2. Test the hypothesis

      or, more specifically, test predictions from the hypothesis.

    1. your high uncle used to ramble about

      Hahaha! 😄

    2. Better to just say fuck it, put on some makeup, and start blowing up hospitals.

      You're the American version of Thich Nyat Hanh--making Buddhism accessible for me.

    3. I could try to do everything to make her life less painful and more enjoyable, but there was only so much I or anyone could do.

      Did she die? 😧

    1. If you'd like to learn more about the focused and diffuse modes of thinking, check out A Mind for Numbers: How to Excel at Math and Science (Even If You FLunked Algebra).

      He knows about the diffused state, too!

    2. And how clean I am.

      Ha! 😄

    1. I had been doing a gratitude practice (just spending a few minutes to think of three things I was grateful for) regularly for a year and a half, and felt that my life was so full with good shit that I felt almost obligated to do something for others so that they'd have more good shit in their lives.

      I think gratitude is the complement of contribution. One reason to feel grateful is it inspires you to contribute more, which will eventually inspire others to contribute to you, which will inspire... yeah.

    1. The new function should take a collection of body parts and the number of matching body parts to add

      Accidentally did this.

    1. A solid epoxy cannot be used; it must be a solvent or water-based epoxy

      Where I stopped.

    2. Foundation Waterproofing Cost

      Different membrane solutions.

      They should caption the image below.

    3. A more costly solution than a cementitious coating is a waterproofing membrane

      It shows cheaper in the chart.

    1. It is not a difficult exercise to find all the combinations of well-formed parentheses

      Speak for yourself >:o

    1. Some funeral homes go so far as to ask a family member come by to identify the deceased, then charge their standard viewing fee for this ‘service’!

      F*** these people.

    2. Some states will require you utilize a funeral home for cremations (Michigan, Virginia pending)

      Stop the lobbying. Why.

    1. Once you have completed this part of the book, you will understand the following about the design of generative recursion:

      Calling me out, saying I haven't read it yet 🙂

    1. it even supports writing programs that connect your computer with anybody else’s computer around the world.

      Wow

    1. What is a Dyck word? It’s a string consisting only of n X’s and n Y’s, and matching this criteria: each prefix of this string has more X’s than Y’s. For example, “XXYY” and “XYXY” are Dyck words, but “XYYX” and “YYXX” are not.

      If you turned Gray code numbers into strings, each number going to the next would be a pair of Dyck words. https://en.wikipedia.org/wiki/Gray_code

    1. Binomial coefficients can be computed explicitly in various ways. To get all of them for the expansions up to (1 + X)n, one can use (in addition to the basic cases already given) the recursion relation ( n k ) = ( n − 1 k − 1 ) + ( n − 1 k ) , {\displaystyle {\binom {n}{k}}={\binom {n-1}{k-1}}+{\binom {n-1}{k}},} for 0 < k < n, which follows from (1 + X)n = (1 + X)n − 1(1 + X); this leads to the construction of Pascal's triangle.

      Needed key in programming combinations?

    1. "Men have forgotten God; that's why all this has happened."

      I don't think people understand this.

      God killed a lot of people in terrible ways in The Bible (floods, locusts, killing firstborns, sending Angels to kill a third of mankind).

      He's a jealous, angry God (see Deuteronomy; Moses describes this).

      Theologically, by people neglecting him, God delivered a blow equivalent to a plague that killed sixty million people.

      More down-to-earth, if people paid attention to God, they'd have done more morally right things and taken steps to prevent this tragedy.

      So, I see this statement as true from both a theological and secular standpoint.

    1. Minterm rectangles should be as large as possible without containing any 0s

      Before I did this, I didn't understand why my cells didn't match the test case. https://www.4clojure.com/problem/140

    1. ENJOY THE LIFE OF LUXURY

      You have got to be shitting me. I live here. It is not a p.o.s., but it's def not luxury in any sense.

  17. Feb 2021
    1. n ∑ i = 1 n 2 i value ⁡ ( x i ) {\displaystyle \sum \limits _{i=1}^{n}2^{i}\operatorname {value} (x_{i})} .

      I will get this some day.

    1. Our intent is, for so long as we draw breath, to use the best of what we've found in search of yet better. If other programs can be persuaded into a similar self-instructive search, things could get pretty interesting!

      Whenever I read words like this from someone who's died (like Nikola Tesla), it hits me.

  18. Jan 2021
    1. Obstetrics

      Medical branch for childbirth and the women who do so

    2. mellitus

      Latin for "sweetened with honey".

    3. diabetes

      From Greek, diabainein, meaning "to pass through" https://www.britannica.com/science/diabetes-mellitus

    4. gestational diabetes

      diabetes just from pregnancy.

    1. High School Textbook for full-time student (Required) Mathematics Book II B (in Chinese) (2nd ed.). China: People's Education Press. June 2006. pp. 107–116. ISBN 978-7-107-19616-4.

      Got curious about what I Chinese curriculum looks like. Haven't found it yet.

    1. But that’s stupid, right?

      Whenever a computer does something I think it shouldn't do, maybe ask, "What rule am I violating?". In this case, he explains the rule in the next paragraph.

    1. we try to put in another 3 dollars, but that’s ignored

      I once found a dollar bill hanging out of a hospital vending machine.

    2. Time for a hot dog!

      I would like a hot dog now.

    3. the pet hamster you loved as a child

      I did have a hamster.

    1. mapv

      Diff between this and map?

      https://clojuredocs.org/clojure.core/mapv

    2. Clojure metaphysics construes identity as something we humans impose on a succession of unchanging values produced by a process over time.

      I asked this question on Stack Overflow about atoms and previous states: https://stackoverflow.com/questions/65556058/can-you-see-previous-values-for-an-atom-in-clojure

    3. compare-and-set semantics

      This is where concurrency protection comes in, not the fact that Clojure changes points ("addresses", different house) and not values ("homes", demolish and rebuild). I think changing pointers instead of changing values (atoms vs. lets... but are they really different?) reduces cognitive friction, but doesn't inherently improve concurrency (this is likely untrue, but it's my conclusion based on what I've seen). I think this compare-and-set method would protect in either instance.

    4. There’s no danger of that happening when using atoms to manage state, because each state is immutable.

      At the assembly or machine level, aren't values changed the same way in all languages? You don't go to the memory address and change bytes there but create a new set of bytes at a different addy? What I fear is this is a semantic shift while the reality stays the same and concurrency isn't actually protected against here, though it likely is and I just don't understand yet.

    5. Values are atomic

      Ironic given the atom reference type.

    1. #"\n"

      Windows uses "\r\n". so if you're on Windows, change this to #"\r\n"

    2. (first (mapify (parse (slurp filename))))

      (Solved) Got an NumberFormatException using this:

      https://dl.dropboxusercontent.com/s/bebs3jsd92tdrwk/2021-01-09_21-12-20.png

    3. (slurp filename)

      H̶a̶v̶i̶n̶g̶ Had issues with this. Need to put it in the base directory. Not at src nor at src/[name].

    4. complement vampire?

      JS's ! operator trumps this.

    1. the original map

      Not the vector, [lat lng], but the whole map.

    2. Another feature that differentiates special forms is that you can’t use them as arguments to functions

      You can pass the result from if, but not if itself.

    3. who one day invented the alphabet after an accident involving yarn

      Is this true? The later "alligators love marshmallows" is true, so I bet it is. also, who were the Phoenicians?

    4. "It was the panda " "in the library " "with a dust buster"

      🙂 Is this horrifying example alluding to something?

    1. M-< Move to beginning of buffer. M-> Move to end of buffer.

      Not true for me. (fixed)

    2. source code for symbol