196 Matching Annotations
  1. Last 7 days
  2. Oct 2021
    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.

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

    1. the standalone ClojureScript JAR

      This is NOT required with the clj tool.

    2. This applies for Windows, too.

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

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

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

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

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

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

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

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

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

      Spacey

    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.

      Dharma...

    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.

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

  13. Feb 2020
    1. bind mounts

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