153 Matching Annotations
  1. Last 7 days
    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. 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}])


    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.

  2. Apr 2021
    1. Ruby

      Blows me away when I read this. It's

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


    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.


    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 (?)

    1. 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".

  3. 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.


    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


      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.

  4. 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.

  5. 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?


    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:


    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

      When you first do this, you'll likely see "Marker not found". M-comma is an "undo" of M-period, so if you haven't done M-period, you'll get that message.

      These keybindings let you jump from the function call to the function defintion (M-period) and then back to the call (M-comma).

      In other words, put your pointer over a function call, type alt-period-enter to go to the function definition. The press alt-comma to go back to the function call.

    3. M-x cider-jack-in

      "Package cl is deprecated" for a bit... then it works.

    4. line 37

      M-g g, Alt + g, let go, press g, type 37, press enter.

    5. ~/.emacs.d/customizations/ui.el

      For Windows 10 users, put Higginbotham's files, from the folder, not just the folder itself, into ~/AppData/roaming/ .

    6. M-x package-install, entering cider, and pressing enter.

      "[no match]"

    7. M-/ Hippie expand

      This feels surprisingly pleasant and works like tab on the Bash command line 🙂 even for text files.

    8. C-h

      C-h Enter by itself will take you to the overall helpfile (a gopher page, I think). You'll likely need to scroll up to (emacs)Top and press enter.

    9. Use M-y. This will remove choreography and yank the next item on the kill ring, Treasure.

      I ended up pasting "Treasure chests with no handles. How the hell are you supposed to carry it?!"

    1. Declaration of Independence: A Transcription

      This is a list of principles and twenty-seven ways King George **ed people over on these principles, and that "we're our own country now, and we will protect each other against you.".

  6. Dec 2020
    1. it checks whether the value it read in step 1 is identical to the atom’s current value.

      This always, always, always prevents concurrency errors?

    1. pseudo simplicity

      Test-driven dev

    2. If in response to the stimulus word "table," I imme- diately perceive a memory image of a table, or think of a chair, this response certainly has nothing to do with my basic needs.

      Why Fogg model works. Its motivation independent.

    3. to feel powerful


    4. any behavior may be a channel through which flow various impulses

      The behavior can be done with different motives.

    5. Basic needs are more common human than are superficial desires or behaviors

      Just got a high from pressing through.

    6. These people may be understood, at least in part, by reference to one basic concept (or hypothesis), which may be called increased frustration-tolerance through early gratification. Peo- ple who have been satisfied in their basic needs throughout their lives, particularly in their earlier years, seem to develop exceptional power to withstand present or future thwarting of these needs simply because they have strong, healthy character structure as a result of basic satisfac- tion. They are the strong people who can easily weather disagreement or opposition, who can swim against the stream of public opinion, and who can stand up for the truth at great personal cost. It is just the ones who haVe loved and been well loved, and who have had many deep friendships who can hold out against hatred, rejection, or persecution.

      I'm tearing up again.

    7. We may assume on the basis of commonly known clinical data that a man who has known tine freedom .'not paid for by giving up safety and security but rattier built on the basis of adequate safety and security) will not willingly or easily allow his freedom to be taken away from him. But we do not know for sure that this is tiue for the person born into slavery. See discussion of this problem in Ref. 145.

      This explains why a lot of slaves didn't run.

    8. A man in this state, if it is extreme enough and chronic enough, may be characterized as living almost for safety alone.

      This is probably why I feel so comfortable working all the time. I don't have my safety needs met.

    9. It is then fair to characterize the whole organism by saying simply that it is hungry

      I am my needs?

    10. Naturally, ihe id knows no values, no good and evil, no morality.


    11. It certainly must be pointed out that a child who is trying to attain a certain object of value to him, but who is restrained by a barrier of some sort, deter- mines not only that the object is of value, but also that the barrier is a barrier. Psychologically there is no such thing as a barrier; there is only a barrier for a particular person who is trying to get something that he wants.

      Compare this with Peterson on the topic.

  7. Sep 2020
    1. new schemes ought to use the auth-param syntax instead, because otherwise future extensions will be impossible

      New should extend the old to enable long-term support. But consider fucking around with obsolete languages to protect from other devs and create proprietary tech.

    2. list well- supported schemes (such as "basic") first.

      I can support multiple schemes?

    3. challenge = auth-scheme [ 1*SP ( token68 / #auth-param ) ]

      I can have my server challenge the request in whatever way I like.

    4. BWS


    5. HTTP/1.1

      Doesn't consider 2.0?

    6. Error Handling

      What are some errors and how should I handle it?

    1. %d97.98.99

      dots can specify a sequence of ASC-II values under the same base. %d97 %d98 and $99 equals this.

    2. %d13

      Use a % before specifying b, d, or x for the base.

    3. where

      After defining a formula, it's often necessary to explain with 'where' and 'is' in longform after the formula.

    4. <rulename>, <Rulename>, <RULENAME>, and <rUlENamE>

      Augmented Backus-Naur Form is what I saw when reading Mozilla Developer documentation.

    5. Arpanet

      Advanced Research Projects Agency Network

  8. Feb 2020
    1. bind mounts

      These are like drives in the directory structure of a Docker container? Each Docker container has a 'filesystem'?

    1. default isolation capabilities

      Isolation capabilities are things that people think about frequently?

    2. share the machine’s OS system kernel

      It uses the same commands as the OS system's kernel? Or they use literally the same kernal?

    3. containers at runtime

      The containers can speak to each other easily?

    4. Container images

      Container images are premade and hosted centrally like NPM, and can be DLed and used?

  9. Jul 2019
  10. Mar 2019
    1. make a new pull request to do so.

      Then go back and close the issue.

    2. make a new pull request to do so.

      Checkout my master branch. git pull it. Then delete the old branch using git branch -d [branch_name].