30 Matching Annotations
  1. Feb 2025
  2. Feb 2024
    1. The input format of the xargs command doesn't match what any other command produces. Yes, it's bizarre. With -I, xargs ignores indentation, which is why the file names with initial spaces are mangled. Do not use xargs except with the -0 option or when you know your input doesn't contain characters that would confuse it.
  3. Nov 2023
      • for: commented on - Trump and failings of political system, poem - Trump a symptom of failing political system

      • commented on

        • I wrote a poem in the comment section of this video:

          • Oh what a web we weave, when we practice to deceive
          • What a distance Trump will fall, when Jack Smith and the other upholders of truth disentangles it all!
          • What lesson have we learned, what has hindsight allowed us to see
          • about the fragility of this gift called democracy?
          • Whose ideal is that men and women are all equal another way of saying we are all sacred?
          • We pay a heavy price for not taking care of our disenfranchised sisters and brothers
          • for without job and pay they may seem powerless but the minions of poor left behind,
          • not lifted by the rising tide of unequal prosperity
          • at least have a vote to vent their anger and victimhood of being forgot
          • and comes along the next power-hungry, fork-tongued, snake-oil salesman
          • who recognizes the strength in the weakness of the minion
          • enough to exploit for personal gain the aggregate vote of the disenfranchised many
          • plunging democracy and its constitutions into crisis
          • Not only in the US, but all around the world
          • we witness the same phenomena
          • as the failings of liberal democracies that have left masses behind,
          • unintentional failings of democracy,
          • is exploited by the opportunist to seize power
          • and institute intentional forms of non-democracy

          • The bottom line (below):

          • Regardless of political ideology,
          • genuine empathy for all
          • not just in theory, but in practice
          • is the path to a just, stable and thriving society
  4. Sep 2023
    1. I agree with this statement so much. We should absolutely be failing hard rather than forcing people to debug thread safety issues at runtime. I can't think of anything more infuriating than debugging an issue that happens "sometimes".
    2. The problem is that in the case where an app is multi-threaded, and we don't switch off autoload, the case would be that it probably won't blow up, but random stuff will mysteriously sometimes fail in weird ways. So ask yourself this, what would you rather want, option 1) where you can get an exception at runtime, or option 2) where you get random, unpredictable, weird, hard to explain, difficult to debug bugs at runtime. Personally, I'm going to choose option 1. The downside of thread-safety issues is so much worse than the downside of the possibility of an exception. The way you're handling it makes it sound as though thread-safety is not important, as though Rails is still optimizing for the single-threaded case. That seems like a huge step back.
  5. Jan 2023
    1. I've worked with and have helped maintain paranoia for a while. I'm convinced it does the wrong thing for most cases. Paranoia and acts_as_paranoid both attempt to emulate deletes by setting a column and adding a default scope on the model. This requires some ActiveRecord hackery, and leads to some surprising and awkward behaviour.
  6. Nov 2022
    1. I just spent a day dismantling a model, trying to find the cause of the silent rollback - taking out every association, every validation, every callback, whittling down all the code in the transaction, only to finally discover that it was return true that was the cause of it all. Or yes, an exception!
  7. Oct 2022
    1. https://gabz.blog/2022/10/27/what-about-them.html

      Why do people not have strong note taking practices or desire to do so? - Some of it may come down to lack of a practice (or model) to follow - some don't have a clearly stated need for why they're doing it in the first place - some spread their notes out over many tools and applications which prevents a quorum of power building up in one place, thus defeating a lot of the purpose. (This is why having all of one's notes in one place is so important as a rule.) - This particular post is a good example of this cardinal sin. - Lack of easy search defeats the ability to extract value back out of having made the notes in the first place. - Note repositories aren't always all of the value proposition. Often the fact of the work that went into making a note to learn and understand ideas is all of the value for a reasonable portion of notes.

  8. Feb 2022
  9. Nov 2021
    1. Of course, we can always add more special cases to the type system to detect the specific case of iterating over a known-bounded object literal, but this just leads to the "Why does this code not behave like this other nearly-identical code?" problem when we fail to properly exhaust all the special cases.
  10. Aug 2021
  11. developer.mozilla.org developer.mozilla.org
    1. If you forget to define x in the object you pass as the second argument, or if there's some similar bug or confusion, you won't get an error -- just unexpected results.
  12. Jun 2021
  13. May 2021
  14. Feb 2021
  15. Oct 2020
  16. Sep 2020
    1. The node-resolve plugin doesn't like failing to resolve module IDs (because it usually indicates a bug, like you forgot to install the package in question), so it will throw an error rather than letting Rollup print a warning.
    1. using modulesOnly behaves exactly as expected when it warns you that the listed npm libraries do not use the ES6 format and are in fact ignored. This option is meant as a way to determine if you still have commonjs libraries in your dependencies that require special treatment via rollup-plugin-commonjs. Your code will probably not work since the listed dependencies will be missing. You should remove modulesOnly and instead add rollup-plugin-commonjs.
    1. You oftentimes see packages list react as a peer dependency. Since this prevents react from being installed into that package's node_modules, this is another way of preventing Rollup from bundling the module. This is also nice _if_ you want the application to install react from npm, because if an application forgets to install a peer dependency, npm will issue a warning.
    1. Basically, the idea is that a train tried to start with the caboose brakes stuck on. After releasing the caboose, the train still could not start. The problem was that when the train attempted to start with the caboose brake on, it stretched all the inter-car couplings so that the whole train was just like one big car. At this point, the friction from the engine train wheels was not enough to get the whole thing going. Instead, you need to just get one car moving at a time - this is why there is space between the couplings.
  17. Apr 2020
  18. Jul 2019
    1. eachers must have access to high-quality UbD curriculum materials. Weak or flawed examples convey the wrong idea of what UbD curriculum should look like, and teachers who use imperfect resourc

      how can we visualize using UbD resources and structure in underfunded and failing schools, like many here in SC? How can we determine and ensure the success of those students as well, even with limited resources?