805 Matching Annotations
  1. Last 7 days
    1. Let the adventures begin, download today!

      I think there is plenty of room for applications that cater for different tastes and cultures and this wouldn't speak to me as a kid and it might not speak to other kids. My research shows we need a lot more resources, there is a lot of room for more applications

  2. Apr 2024
    1. Unfortunately, regex syntax is not really standardized... there are many variants, which differ among other things in which "special characters" need \ and which do not. In some it's even configurable or depends on switches (as in GNU grep, which you can switch between three different regex dialects).
  3. Mar 2024
    1. There is no active user with that ID, so you cannot search by it. The whole point of deleting an account is to make it inaccessible, unreferenced, and unlinked. We're not going to implement "soft" account deletion.
  4. Feb 2024
    1. The lonesome cat isn’t useless.  UUOCs are typically characterized by having exactly one filename argument; this one has none.  It connects the input to the function (which is the input of the if statement) to the output of the if statement (which is the input to the base64 –decode statement)
    1. 1:15 Kyle forced his progress from 25-30 years. Trying too hard, chasing too hard, is counter-productive ("cosmic paradox")

      See ZK on trying too hard is counterproductive

  5. Jan 2024
    1. Bee-and-Flower Logic

      for - Bee and Flower Logic - subconscious unity? - uniting without consciously uniting - agreement through actions, not words

      • Identify the types of strategic congruences
      • that do not require
        • people or organizations to be or
        • think the same: “bee-and-flower logic.”
      • The bee does not consciously know it is “exchanging a service for a product” (my pollen distribution for your pollen).
      • The flower does not know it is exchanging a product for a service (my pollen for your transport).
      • However, they sustain each other despite never entering into an agreement.
      • Cosmolocalism, for example, relies on this logic,
      • as people do not need to agree on an analysis or vision to share in the fruits of the virtuous cycle.
      • Let us look for all the places this bee-and-flower logic can be enacted.
    1. only 11% say they are involved in a religious community.

      for - stats - spiritual but not religious

      stats - spiritual but not religious - Pew research study shows 22% of Americans now identify as spiritual but not religious - Only 11% say that are involved in a religious community

    1. Instance methods Instances of Models are documents. Documents have many of their own built-in instance methods. We may also define our own custom document instance methods. // define a schema const animalSchema = new Schema({ name: String, type: String }, { // Assign a function to the "methods" object of our animalSchema through schema options. // By following this approach, there is no need to create a separate TS type to define the type of the instance functions. methods: { findSimilarTypes(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); } } }); // Or, assign a function to the "methods" object of our animalSchema animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); }; Now all of our animal instances have a findSimilarTypes method available to them. const Animal = mongoose.model('Animal', animalSchema); const dog = new Animal({ type: 'dog' }); dog.findSimilarTypes((err, dogs) => { console.log(dogs); // woof }); Overwriting a default mongoose document method may lead to unpredictable results. See this for more details. The example above uses the Schema.methods object directly to save an instance method. You can also use the Schema.method() helper as described here. Do not declare methods using ES6 arrow functions (=>). Arrow functions explicitly prevent binding this, so your method will not have access to the document and the above examples will not work.

      Certainly! Let's break down the provided code snippets:

      1. What is it and why is it used?

      In Mongoose, a schema is a blueprint for defining the structure of documents within a collection. When you define a schema, you can also attach methods to it. These methods become instance methods, meaning they are available on the individual documents (instances) created from that schema.

      Instance methods are useful for encapsulating functionality related to a specific document or model instance. They allow you to define custom behavior that can be executed on a specific document. In the given example, the findSimilarTypes method is added to instances of the Animal model, making it easy to find other animals of the same type.

      2. Syntax:

      Using methods object directly in the schema options:

      javascript const animalSchema = new Schema( { name: String, type: String }, { methods: { findSimilarTypes(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); } } } );

      Using methods object directly in the schema:

      javascript animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); };

      Using Schema.method() helper:

      javascript animalSchema.method('findSimilarTypes', function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); });

      3. Explanation in Simple Words with Examples:

      Why it's Used:

      Imagine you have a collection of animals in your database, and you want to find other animals of the same type. Instead of writing the same logic repeatedly, you can define a method that can be called on each animal instance to find similar types. This helps in keeping your code DRY (Don't Repeat Yourself) and makes it easier to maintain.


      ```javascript const mongoose = require('mongoose'); const { Schema } = mongoose;

      // Define a schema with a custom instance method const animalSchema = new Schema({ name: String, type: String });

      // Add a custom instance method to find similar types animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); };

      // Create the Animal model using the schema const Animal = mongoose.model('Animal', animalSchema);

      // Create an instance of Animal const dog = new Animal({ type: 'dog', name: 'Buddy' });

      // Use the custom method to find similar types dog.findSimilarTypes((err, similarAnimals) => { console.log(similarAnimals); }); ```

      In this example, findSimilarTypes is a custom instance method added to the Animal schema. When you create an instance of the Animal model (e.g., a dog), you can then call findSimilarTypes on that instance to find other animals with the same type. The method uses the this.type property, which refers to the type of the current animal instance. This allows you to easily reuse the logic for finding similar types across different instances of the Animal model.

      Certainly! Let's go through each part and explain it in simple terms: ### 1. `this` in Mongoose: - **What is `this`?** In JavaScript, `this` refers to the current context or object. In Mongoose, particularly within methods and middleware functions, `this` represents the instance (document) the function is currently operating on. - **Why is it used?** `this` is used to access and modify the properties of the current document. For example, in a Mongoose method, `this` allows you to refer to the fields of the specific document the method is called on. ### 2. Example: Let's use the `userSchema.pre("save", ...)`, which is a Mongoose middleware, as an example: ```javascript userSchema.pre("save", async function (next) { if (!this.isModified("password")) { next(); } else { this.password = await bcrypt.hash(this.password, 10); next(); } }); ``` - **Explanation in Simple Words:** - Imagine you have a system where users can sign up and set their password. - Before saving a new user to the database, you want to ensure that the password is securely encrypted (hashed) using a library like `bcrypt`. - The `userSchema.pre("save", ...)` is a special function that runs automatically before saving a user to the database. - In this function: - `this.isModified("password")`: Checks if the password field of the current user has been changed. - If the password is not modified, it means the user is not updating their password, so it just moves on to the next operation (saving the user). - If the password is modified, it means a new password is set or the existing one is changed. In this case, it uses `bcrypt.hash` to encrypt (hash) the password before saving it to the database. - The use of `this` here is crucial because it allows you to refer to the specific user document that's being saved. It ensures that the correct password is hashed for the current user being processed. In summary, `this` in Mongoose is a way to refer to the current document or instance, and it's commonly used to access and modify the properties of that document, especially in middleware functions like the one demonstrated here for password encryption before saving to the database.




    1. This feature is a planned EE feature and so it is being tracked there. We currently have no plans for it to be in CE, so that is why this issue is closed.
    1. I feel that the current design area should be a key part of the workflow on any work item, not just type of designs. As a PM I don't schedule designs independently. It's odd to open and close a design issue when it doesn't deliver value to the customer.
    1. What they say is this is due to is new EU policies about messenger apps. I'm not in the EU. I reckon it's really because there's a new Messenger desktop client for Windows 10, which does have these features. Downloading the app gives FB access to more data from your machine to sell to companies for personalized advertising purposes.
    1. he said to Harry Belafonte, he said, you know, I think we're going to win the battle of integration. He, I think that we will get that. But he said, but I worry that I'm integrating my people into a burning house. 00:17:26 And I think that's a perfect metaphor. I mean, you're trying to get people of color to have jobs or to own houses, but meanwhile, it's hard for anyone to own a house now with interest rates going up and prices so high. Jobs themselves are being destroyed. And so it's not enough to integrate into the economy as it is. We need to transform that economy.
      • for: quote - Martin Luther King Jr., quote racial integration alone is not enough

      • quote: Martin Luther King Jr.

        • I think we are going to win the battle of integration but i worry I'm integrating my people into a burning house
      • comment

        • It's not good enough to share in the same privileges as whites because the way that wealth supremacy works, ALL peopple suffere equally.
    1. It doens't take into account the mental labour of actually assigning each card a numeric alpha address.

      I appreciate that he takes a moment to acknowledge that this step of assigning numbers and arranging is work. Many gloss over this.

      The work put in up front ideally pays off later.

  6. Dec 2023
    1. Kickstarter will not let me promise rewards within the same month, but the files will be sent to backers soon after the campaign ends.
    1. it's daunting because they're 00:37:18 all happening simultaneously in a way people don't recognize they're all kind of integrated with each other and they and they're reinforcing each other it's people call this kind of perfect storm but they don't but the problem with the 00:37:30 language the perfect storm terminology is it sort of implies that each one of these things whether it's economic stress or climate change or political polarization rising authoritarianism 00:37:41 you know collapse of mammalian populations they're all kind of separate distinct problems but actually they're all they're all affecting each other at this point
      • for: polycrisis, perfect storm, reinforcing feedbacks,

      • paraphrase

        • the polycrisis is a network of self-reinforcing and diverse crisis:
          • political polarization
          • war
          • fossil fuel entrenchment and expansion
          • precarity
          • migration
          • climate crisis
          • extreme weather
          • AI
          • political polarization
          • misinformation and interference of sovereign voting
          • emergence of authoritarianism
          • incorrect focus of effort - tinkering at the margins
          • runaway inequality - wealth, racial, post colonial, gender
          • dominance of capitalist wealth aspiration
          • rapid change required for entire system
          • sense of despair, hopelessness, anger, fear
          • mass extinction
          • climate departure
          • increasing health burden
          • runaway pollution
          • lack of effective government regulation
          • approaching planetary tipping points
        • the "perfect storm" assumes that these crisis are not related, but they are all syncrhonizing through positive feedbacks -their self-reinforcing positive feedbacks amplify all of them together and it can reach a threshold beyond human institutions to be able to cope
        • Commanding Hope or "Hope to" is critical for meeting these challenges
    2. the idea of a game is really important and the rules of the game so what's happened is that to the extent that that we've we 00:39:33 have lost the common understanding of our reality then people start attacking the rules of the game and and that's you know going back to my work on conflict
      • for: adjacency - rules of the game - violence, dangers of not playing by the rules of the game

      • adjacency between

        • rules of the game
        • violence
      • adjacency statement
        • When people cannot agree on the rules of the democratic game, we are just one step away from violence
        • Homer-Dixon explores the relationship between environmental breakdown and violence in an earlier book
        • If you believe your "opponent" is not playing by the rules of the game, then they are outside the moral ambit of your community, and you can justify violence
        • Their status as a human being is no longer legitimate and they are dehumanized. Violence is now possible
        • Whenever a group feels another group is not playing by the rules of the game, it is a very dangerous situation as violence can be justified on these grounds
    1. If I had a dollar for every organizational system I have tried, I could treat myself to a steak dinner in a fancy restaurant. (Hey! That’s not a bad ideal!) I’ve tried notebook organizers, card files, flip charts, a stop watch, and numerous labeling gadgets. I’ve tried refrigerator magnets, the buddy system, lots of books, and a bunch of classes and seminars. All of these were good tools and some of them had great ideas, but none of them worked for me. (p27)

    2. I accomplished a couple of other things on that first day back into reality. First, with an evil Grinch-like smile | uprooted every household management system | had ever tried, and tore up every single 3x5 card in them. Then one by one, | roasted and toasted them in the fireplace until they were gone, gone, gone. Next, with equally fiendish delight, | speared my $35 namebrand notebook organizer with a marshmallow fork, and | roasted it too. It melted into oblivion, all but it’s ugly metal spine. Next, | prayed for my attitude and for help. And finally, | marched myself into Wal-mart and bought my first clear plastic bin, a two pound sack of M&M's, and a loaf of white bread. For better or worse, we have been pretty happy campers at my house ever since. (p6)

    1. I disagree. What is expressed is an attempt to solve X by making something that should maybe be agnostic of time asynchronous. The problem is related to design: time taints code. You have a choice: either you make the surface area of async code grow and grow or you treat it as impure code and you lift pure synchronous logic in an async context. Without more information on the surrounding algorithm, we don't know if the design decision to make SymbolTable async was the best decision and we can't propose an alternative. This question was handled superficially and carelessly by the community.

      superficially and carelessly?

    1. its design as by its original destination, the car is a luxury good. And luxury, in essence, cannot be democratized: if everyone has access to luxury, no one benefits from it; on the contrary: everyone cheats, frustrates and dispossesses others and is cheated, frustrated and dispossessed by them.
      • for: quote - luxury cannot be democratized, 1% - democracy, elites - democracy, adjacency - luxury - democracy, luxury is not democratic, luxury is inequality, Andre Gorz, Terrestrial website, adjancency - luxury - democracy, quote luxury

      • quote

        • ... By its design as by its original destination, the car is a luxury good. And luxury, in essence, cannot be democratized: if everyone has access to luxury, no one benefits from it; on the contrary: everyone cheats, frustrates and dispossesses others and is cheated, frustrated and dispossessed by them.
      • author: Andre Gorz
      • date: Sept. 25, 2023
      • publication: Terrestrial

      • comment

        • insightful comment reveals an adjacency between luxury and democracy that is obvious in hindsight, but missed seeing in foresight!
      • adjacency between:

        • luxury
        • democracy
      • adjacency statement
        • luxury is, by definition a premium artefact so by definition is beyond the reach of most people. It is therefore un-democratic by design.
    1. well I'll start with two extremely optimistic points
      • for: answer to above question

      • answer : two answers

        • first, the elite have the majority of
          • wealth
          • control of setting policies
          • control of the media
          • and they work really hard at controlling policy and media
          • and the people
            • hate the system
            • generally hate them
        • second, social tipping points occur. Something happened in over place, then it spreads to other places
    1. 台式英語: Could you kindly reply by Tuesday? (可以請你周二前回信給我嗎?) 道地英語: Could you reply by Tuesday? Or, if you want to be very polite: Would you be able to reply by Tuesday? 用法: 很多台灣人在書信往來中常常會寫 "please kindly" ,以為這樣更客氣,但其實kindly,一點也不kind。在英文的用法中,加上kindly代表一種警告,例如 “Please kindly refrain from smoking on the premises (請不要在這裡抽菸)”  若你想要禮貌一點,只需要用 "please" 或是用 "Could you 或 Would you be able to"


    1. the Catholics are much more straightforward about these things they to everything so you know chimpanzees for instance according to Catholic dogma chimpanzees don't have souls when they die they 00:06:36 don't go to chimpanzee heaven or chimpanzee hell they just disappear now where are Neals in this scheme and if you think about this kid whose mother is a sapiens but whose father is a 00:06:49 neandertal so only his mother has a soul but his father doesn't have a soul and what does it mean about the kid does the kid have half a soul and if you say okay okay okay okay neander had Souls then 00:07:02 you go back a couple of million years and you have the same problem with the last common ancestor of humans and chimpanzees again you have a family a mother one child is the ancestor of 00:07:16 chimpanzees the other child is the an is our ancestor so one child has a soul and the other child doesn't have a soul
      • for: question - Catholic church claim - humans have a souls but other creatures do not

      • comment

      • question: Do only humans have souls?
        • Harari explores this question about the Catholic church's claim that humans have a soul and shows how messy it is
        • Where does "having a soul" begin or end, if we go down the evolutionary rabbit hole?
    1. A personalized button gives users a quick indication of the session status, both on Google's side and on your website, before they click the button. This is especially helpful to end users who visit your website only occasionally. They may forget whether an account has been created or not, and in which way. A personalized button reminds them that Sign In With Google has been used before. Thus, it helps to prevent unnecessary duplicate account creation on your website.

      first sighting: sign-in: problem: forgetting whether an account has been created or not, and in which way

  7. Nov 2023
    1. I'm going to close this thread which will no longer be monitored. In case you want to report a new issue or you can’t make project to be internal, please do not hesitate to create a new Issue Tracker thread describing your situation.
    1. It does provide an answer. The issue is that the Google form validates that the user has input a valid looking URL. So he needs to input an arbitrary, but valid URL, and then add that to /etc/hosts so his browser will resolve it to the address of his devserver. The question and answer are both fine as is and don't require any critique or clarification.

      The critical comment this was apparently in reply to was apparently deleted

    1. AIs are not capable of citing the sources of knowledge used up to the standards of the Stack Exchange network. Even when Artificial Intelligence appears to cite sources for responses, such sources may not be relevant to the original request, or may not exist at all. For Stack Overflow, this means the answer may not honestly or fairly represent the sources of knowledge used, even if someone explicitly cites the Artificial Intelligence as an author in their answer.
    1. curl -v -X POST \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "User-Agent: Mozilla/5.0 (${systemInformation}) ${platform} (${platformDetails}) ${extensions}" \ -H "Authorization: SSWS ${api_token}"
    1. excessive expectations and reliance on CCUS
      • for: quote - Carbon Capture expectations - unfeasible

      • quote

        • If oil and natural gas consumption were to evolve as projected under today’s policy settings, this would require an inconceivable 32 billion tonnes of carbon captured for utilisation or storage by 2050,
          • including 23 billion tonnes via direct air capture to limit the temperature rise to 1.5 °C.
        • The necessary carbon capture technologies would require 26 000 terawatt hours of electricity generation to operate in 2050,
          • which is more than global electricity demand in 2022.
        • And it would require over USD 3.5 trillion in annual investments all the way from today through to mid-century, which is an amount equal to the entire industry’s annual average revenue in recent years.
    1. The args object is the only mechanism via which data may be injected into the callback, the callback is not a closure and does not retain access to the JavaScript context in which it was declared. Values passed into args must be serializable.
    1. In this example, we still want app/models/shapes/circle.rb to define Circle, not Shapes::Circle. This may be your personal preference to keep things simple, and also avoids refactors in existing code bases. The collapsing feature of Zeitwerk allows us to do that:
    1. why is all this happening well I could tell a bunch of stories one of them would be the 00:09:16 technology story social media is driving us crazy one would be a sociology story we're not as involved in Civic Life as we used to be wouldn't be an economic story there's more in income inequality than there used to be and so we leave 00:09:27 desperate lives but the story I emphasize is the most direct which is we become sadder and meaner because we don't treat each other with the consideration that we deserve and treating each other with 00:09:41 consideration and Reserve we deserve
      • for: treating each other as sacred, recognizing the sacred, quote - not recognizing the sacred

      quote: not recognizing the sacred - we've become sadder and meaner because we don't treat each other with the consideration that we deserve

  8. Oct 2023
      • for: Yuval Noah Harari, Hamas Israel war 2023, global liberal order, abused-abuser cycle, And not Or

      • summary

        • In this interview, Yuval Noah Harari offers insights on the trap that Hamas's brutality has set for the Israeli army and reflections on the abused-abuser cycle.
        • If Israeli government falls into that trap and inflicts unprecedented collateral damage, it will scupper the chance for peace for generations to come, and Hamas will have succeeded in its goal.
        • Harari identifies a key insight that could help create better empathy between warring parties, to recognize the abused-abuser cycle and how we can be both abused AND abuser at the same time
        • Harari reflects on the breakdown of the global liberal order, offering a simple yet insightful anthropological definition of the global liberal order showing how in spite of its many flaws, fundamentally is biologically humanistic at the core. What is needed is a way to decouple the harmful features the current form of it possesses
    1. it's hard to people to understand that you can be victim and perpetrator at the 00:35:03 same time it's a very simple fact impossible to accept for most people either you're a victim or you're perpetrator there is no other but no usually we are both you know from the level of individuals how we behave in 00:35:17 our family to the level of entire nations we are usually both and and and of course perhaps one issue is that we don't feel like that as individuals we don't feel that we have the full responsibility for our state so there's 00:35:28 a sort of strange problem here too which is that you feel as an individual that you're a victim and you feel distance from your state
      • for: victim AND perpetrator, situatedness, perspectival knowing, AND, not OR, abused-abuser cycle, individual /collective gestalt, Hamas Israel war 2023

      • quote

        • It's hard for people to understand that you can be victim and perpetrator at the same time
        • It's a very simple fact impossible to accept for most people
      • author: Yuval Noah Harari
      • date: Sept 2023
    1. It’s not one or the other. It’s both.
      • for: conflict, Israel-Palestine conflict

      • comment

        • it's "and", not "or"
  9. Sep 2023
    1. In the author’s view, using a combination of content-addressing, signed content, and petnames would help decentralise that layer. It keeps centralisation around aggregators (because of the scarcity of attention), but mitigates their harmful lock-in.
    1. files with characters after the last newline are not text files, and those characters don't constitute a line. In many cases those bogus characters are better left ignored or removed, though there are cases where you may want to treat it as a extra line, so it's good you show how.
    1. t I think there is a risk that we end up being 'activists for the status quo' by being silent.
      • for: quote, quote - Kevin Anderson, quote - silence - activism for the status quo, Stop Oil
      • quote

        • There is a risk that we end up being activists for the status quo by being silent
      • comment

        • I would agree with Kevin. Silence is making a statement, it's not neutral
        • the "activists" are doing the dirty work of critiquing the top down actors
    1. the Bodhisattva vow can be seen as a method for control that is in alignment with, and informed by, the understanding that singular and enduring control agents do not actually exist. To see that, it is useful to consider what it might be like to have the freedom to control what thought one had next.
      • for: quote, quote - Michael Levin, quote - self as control agent, self - control agent, example, example - control agent - imperfection, spontaneous thought, spontaneous action, creativity - spontaneity
      • quote: Michael Levin

        • the Bodhisattva vow can be seen as a method for control that is in alignment with, and informed by, the understanding that singular and enduring control agents do not actually exist.
      • comment

        • adjacency between
          • nondual awareness
          • self-construct
          • self is illusion
          • singular, solid, enduring control agent
        • adjacency statement
          • nondual awareness is the deep insight that there is no solid, singular, enduring control agent.
          • creativity is unpredictable and spontaneous and would not be possible if there were perfect control
      • example - control agent - imperfection: start - the unpredictability of the realtime emergence of our next exact thought or action is a good example of this
      • example - control agent - imperfection: end

      • triggered insight: not only are thoughts and actions random, but dreams as well

        • I dreamt the night after this about something related to this paper (cannot remember what it is now!)
        • Obviously, I had no clue the idea in this paper would end up exactly as it did in next night's dream!
    1. "Surrendering" by Ocean Vuong

      1. He moved into United State when he was age of five. He first came to United State when he started kindergarten. Seven of them live in the apartment one bedroom and bathroom to share the whole. He learned ABC song and alphabet. He knows the ABC that he forgot the letter is M comes before N.

      2. He went to the library since he was on the recess. He was in the library hiding from the bully. The bully just came in the library doing the slight frame and soft voice in front of the kid where he sit. He left the library, he walked to the middle of the schoolyard started calling him the pansy and fairy. He knows the American flag that he recognize on the microphone against the backdrop.

    1. This done, Adler can say that young crit ics of “the System” are not true revolutionaries. Real revolutionaries work within the System — since the System is the Revolution.

      How does the general idea of zeitgeist of the early 70's relate to the idea of "revolution"?

      See also: Gil Scott-Heron's "The Revolution Will Not Be Televised" (1970)

    1. Different brain-imaging techniques provide scientists with insight into different aspects of how the human brain functions.

      The content here is scant. This is listed as a Student Outcome, so is there some additional content we need to supplement future assessment questions?

  10. Aug 2023
  11. Jul 2023
    1. Bruce Bills, a geophysicist at NASA’s Jet Propulsion Laboratory in Pasadena, Calif., and co-author of the new study published in the Journal of Geophysical Research. “Moonquakes reoccur again and again in the same locations at the same time of the month, which seems to link them to the monthly tidal cycles” he says, “but so far, nobody has been able to construct a physical model or clear pattern to explain the relationship.”

      2012: Nasa Bruce Bills: Moonquakes were explained by the gravitational pull on the earth but moonquakes occur again and again in the same locations at the same time every month. So far, [nobody] has been able to construct a model or clear pattern to explain the relationship.

      • Title
        • Life is not easily bounded
      • Subtitle
        • Working out where one hare ends and another begins is easy; a siphonophore, not so much. What is an individual in nature?
      • Author

        • Derk J. Skillings
      • comment

        • this article delves into the subject of defining what an individual is
          • what makes a biological organism the same or different from another biological organism?
          • This question is not so easy to answer if we are looking for a general definition that can apply to ALL species
  12. Jun 2023
    1. Certainly you could adapt the code to round rather than truncate should you need to; often I find truncation feels more natural as that is effectively how clocks behave.

      What do you mean exactly? Compared clocks, or at least reading of them. What's a good example of this? If it's 3:55, we would say 3:55, or "5 to 4:00", but wouldn't probably say that it's "3".

    1. Are protected members/fields really that bad? No. They are way, way worse. As soon as a member is more accessible than private, you are making guarantees to other classes about how that member will behave. Since a field is totally uncontrolled, putting it "out in the wild" opens your class and classes that inherit from or interact with your class to higher bug risk. There is no way to know when a field changes, no way to control who or what changes it. If now, or at some point in the future, any of your code ever depends on a field some certain value, you now have to add validity checks and fallback logic in case it's not the expected value - every place you use it. That's a huge amount of wasted effort when you could've just made it a damn property instead ;) The best way to share information with deriving classes is the read-only property: protected object MyProperty { get; } If you absolutely have to make it read/write, don't. If you really, really have to make it read-write, rethink your design. If you still need it to be read-write, apologize to your colleagues and don't do it again :) A lot of developers believe - and will tell you - that this is overly strict. And it's true that you can get by just fine without being this strict. But taking this approach will help you go from just getting by to remarkably robust software. You'll spend far less time fixing bugs.

      In other words, make the member variable itself private, but can be abstracted (and access provided) via public methods/properties

    2. Python essentially doesn't have private methods, let alone protected ones, and it doesn't turn out to be that big a deal in practice.
    1. I'm not saying never mark methods private. I'm saying the better rule of thumb is to "make methods protected unless there's a good reason not to".
    2. Marking methods protected by default is a mitigation for one of the major issues in modern SW development: failure of imagination.
    3. If it's dangerous, note it in the class/method Javadocs, don't just blindly slam the door shut.
    4. Been disappointed, surprised or hurt by a library etc. that was overly permissive in it's extensibility? I have not.
    5. The old wisdom "mark it private unless you have a good reason not to" made sense in days when it was written, before open source dominated the developer library space and VCS/dependency mgmt. became hyper collaborative thanks to Github, Maven, etc. Back then there was also money to be made by constraining the way(s) in which a library could be utilized. I spent probably the first 8 or 9 years of my career strictly adhering to this "best practice". Today, I believe it to be bad advice. Sometimes there's a reasonable argument to mark a method private, or a class final but it's exceedingly rare, and even then it's probably not improving anything.
    1. what I'm asking people to do is to start considering what that means to your life what I'm asking 00:38:53 governments to do by if like I'm screaming is don't wait until the first patient you know start doing something about we're about to see Mass job losses we're about to see you know Replacements 00:39:07 of of categories of jobs at large
    1. Don’t confuse Consent Mode with Additional Consent Mode, a feature that allows you to gather consent for Google ad partners that are not yet part of the Transparency and Consent Framework but are on Google’s Ad Tech Providers (ATP) list.
  13. May 2023
    1. Seeking full energy independence from Russian gas, in response to Russia's energy blackmail in #Europe and the war in #Ukraine 🇺🇦, #Lithuania 🇱🇹 has completely abandoned Russian gas

      Lithuania abandons Russian Gas

    1. Featured Listings

      Using Silktide's Screen Reader Simulator for Chrome, I tested the webpage. The featured listing are especially confusing to understand using the screen reader because although there are only 10 featured listings, the screen reader repeats the featured listings three times (reads all 10 listings, then reads them again, then again). Screen readers are used by people who are blind or visually impaired, so the webpage has to be made in a way that makes it easy for a screen reader to navigate through, which is not the case with this webpage. This violates the "Robust" principal of the Web Content Accessibility Guidelines.

      Solution: Look through the code to see if there is any repeated code that is causing the screen reader to read the featured listings multiple times. If there is no repeated code, then it may be a problem with how the featured listings section has been coded, so the format of the featured listings section may need to change. After making the appropriate changes, test the webpage using a screen reader before publishing to make sure that the webpage is easily navigable by a screen reader.


      Text is difficult to read because the text colour does not contrast well with the background colour. It would be difficult for people who are colourblind to read this text. This violates the "Perceivable" principal of the Web Content Accessibility Guidelines.

      Solution: The grey text colour should be changed to another colour that has good contrast with the background colour.


      The Web Content Accessibility Guidelines recommends that for any moving, blinking or scrolling information that starts automatically, lasts more than 5 seconds, and is presented in parallel with other content, the user should be provided an option to pause, stop or hide these animations, unless the animations are essential. For auto-updating information, the requirements are the same except that there there is no 5 second condition and the user should also be given the option to control the frequency of the auto-update. There are multiple places on this webpage where animations are present: the moving text that has been highlighted, the background images behind the moving text, the logos on the top right-hand corner of the webpage, and the featured listings (automatically moves to the left every few seconds and can also be dragged to move to the left or right). Furthermore, hovering over the options like "About Us" and "Register Now" causes the images to move. The animations on this webpage are non-essential and an option to pause, stop, hide, or control the frequency of the animations is not given. Moving and auto-updating content can be a problem for people who have difficulty reading text quickly, and for people who have difficulty tracking objects that move. For some people, moving and blinking objects can also be a serious distraction, especially for people who have attention-deficit disorders. This violates the "Understandable" principal of the Web Content Accessibility Guidelines.

      Solution: Add an option to stop, pause, hide, or control the frequency of the animations. When stopping the animations, the moving text can be horizontally centered on the page. Furthermore, changing the images behind the moving text and navigating through the featured listings can instead be accomplished by using clickable arrows.

    4. Arlington HeightsMount ProspectSchaumburgPalatineProperty SearchCOMMERCIAL LISTINGSLease/Credit Application

      Need to hover over the headers in order for the sub-menu options to show up. Some of the headers themselves are also links, so navigating to the header using a keyboard and pressing enter will send you to another page instead of opening up the sub-menu. The hover interaction means that the menu is inaccessible using a keyboard. People who are unable to navigate a webpage using a mouse and can only use a keyboard, such as people with a motor impairment, won't be able to access the menu. Furthermore, in general, it is difficult to see where you are on the page while navigating using just the keyboard. All this violates the "Operable" principal of the Web Content Accessibility Guidelines.

      Solution: The headers should not be links and instead, the webpage that the user would have been sent to by clicking on the header should just be added as an option to the sub-menu. Also, instead of hovering over the headers to access the sub-menu, the headers should be clickable dropdowns so that when a user navigates to the header using a keyboard and presses enter, the sub-menu should show up, and the user should then be able to access the sub-menu options using the keyboard. Furthermore, the element that the user is currently focused on should have a border around it so that the user can tell where they are on the page while navigating using a keyboard.

  14. Apr 2023
    1. But you can not make the user send a POST requests from an email

      eh? how??

    2. By default SMTP offers very little protection against interception. Traffic may be encrypted between servers but there are no guarantees.

      And how likely is it that the attacker actually owns one of the servers that is a hop on the way from mail sender to mail recipient?? Seems extremely unlikely.

    3. email as a transmission mechanism isn't secure.
    1. Using --ours did what I was after, just discarding the incoming cherry picked file. @Juan you're totally right about those warning messages needing to say what they did't do, not just why they didn't do it. And a bit more explanation that the ambiguity from the conflict needs to be resolved (by using --ours, etc) would be super helpful to this error message.
  15. Mar 2023
    1. The effect of Antarctic meltwater on ocean currents has not yet been factored in to IPCC models on climate change, but it is going to be "considerable", Prof England said.

      Another unknown not yet included in IPCC report

    1. I believe that SMS 2FA is wholly ineffective, and advocating for it is harmful.

      Would this also appyl to OTP by e-mail??

    2. This argument only works if what you’re defending is good. As I’ve already explained, SMS-2FA is not good.
    3. Don’t let the perfect be the enemy of the good. Seat belts aren’t perfect either, do you argue we shouldn’t wear them? Etc, etc. This argument only works if what you’re defending is good. As I’ve already explained, SMS-2FA is not good.
    4. If you use a third party password manager, you might not realize that modern browsers have password management built in with a beautiful UX. Frankly, it’s harder to not use it.
    5. If you’re a security conscious user... You don’t need SMS-2FA. You can use unique passwords, this makes you immune to credential stuffing and reduces the impact of phishing. If you use the password manager built in to modern browsers, it can effectively eliminate phishing as well.

      not needed: password manager: 3rd-party

    1. repressed intuition "returns to consciousness in distorted form" as the symbolic ways we compulsively try to ground ourselves and make ourselves real in the world: such as power, fame, and of course money.

      //* Loy is stating... - Those engaging compulsively in money, fame, power, materialism - are actually deeply repressing - the fact that the ego-self, and therefore self-consciousness is a construction - To continually reify the ego-self, we engage in these activities - and of course, this is fueling the polycrisis we now find ourselves in

    1. Uno studio facente parte del piano vaccinale italiano 2017-2019 del ministero della salute ha evidenziato come i vaccini facciano risparmiare molto in cure, ospedalizzazioni e farmaci prevenendo le malattie ed evitando le spese che si sosterrebbero curandole. Tali valori sono destinati ad aumentare di anno in anno, in quanto i soggetti vaccinati restano immunizzati e a questi si aggiungono quelli vaccinati negli anni successivi. Quindi ogni anno aumenta il numero di casi evitati e di conseguenza il relativo risparmio.

      I vaccini sono alla base di moltissime patologie non causate da agenti infettivi (NonCommunicable Diseases) il cui incremento percentuale nei prossimi 10 anni è previsto nella misura del 60% A ciò si aggiungano le patologie su base genetica la cui origine avrebbe luogo a causa dei vaccini somministrati ai giovani delle generazioni precedenti. I vaccini pediatrici modificherebbero l'espressività di numerosi geni inducendo errori nella sintesi proteica ed originando così proteine anomale e quindi malattie fra le quali, numerose patologie autoimmuni...

  16. Feb 2023
    1. "Personal knowledge management is an aid to your work, not the work itself." —Sam Matla #

      This is entirely dependent on what and how you're doing it. If you're actively reading and annotating, and placing it somewhere, then that is the work, just in small progressive steps.

      He needs to be more specific about what he means by "personal knowledge management" as a definition of something.

    1. A sequence of Folgezetteln notes in the filenames of the Zettelns can from this perspective be considered a hardcoded outline and should be avoided, however convenient it seems.

      And here he says it out loud... see https://hypothes.is/a/Gl5ferPsEe2Yf5P83a3wUg

    1. keynote address in !" at the #entenary $eeting of the British Association for the Advancement of Science. %n this occasion he suggested that the fundamentalstructure of the universe was not matter but action
      • action, not matter, is the fundamental structure of the universe
    1. Voor een kernwapenvrije wereld, te beginnen in Europa Jet van Rijswijk -  02.02.2023

      Kernwapenvrije wereld, te beginnen in Europa

    1. Result of lots of searching on net is that pre-checkout hook in git is not implemented yet. The reason can be: There is no practical use. I do have a case It can be achieved by any other means. Please tell me how? Its too difficult to implement. I don't think this is a valid reason
    1. 70% of cobalt comes from the Democratic Republic of Congo, where an estimated 40,000 children as young as 6 work in dangerous mines.
      • = energy transition
      • = quotable
    2. Tribes, landowners and communities find themselves wrestling with the not-so-green side of green energy.
      • = energy transition
      • = quotable
  17. Jan 2023
    1. Do not separate numbers from letters on symbols, methods and variables.

      Okay... Why not?

    1. Finally, a culture that rewards big personal accomplishments over smaller social ones threatens to create a cohort of narcissists

    2. Just as the wealthiest 1 percent of Americans gobble up a disproportionate share of the nation’s economic resources and rejigger our institutions to funnel them benefits and power, so too do our educational 1 percent suck up a disproportionate share of academic

      opportunities, and threaten to reconfigure academic culture so that it both mimics and serves their values

    1. We are living in a time of unprecedented danger, and the Doomsday Clock time reflects that reality. 90 seconds to midnight is the closest the Clock has ever been set to midnight, and it’s a decision our experts do not take lightly

      Press release. Doomsday clock changed to 90 seconds to mid-night. Largely due to Russia's invasion to Ukraine.

    1. Again, what the fuck this is.

    2. Not Sure How. It might be using the summation of geometric series. How is \(a^n\) handled. Mutiply the \(a\) in and then use the geometric summations, and then we should get the inequality.

    3. Thus, there exists 1 ∈ (−1, 1) such that

      Not sure what this mean.

    1. The usefulness of JSON is that while both systems still need to agree on a custom protocol, it gives you an implementation for half of that custom protocol - ubiquitous libraries to parse and generate the format, so the application needs only to handle the semantics of a particular field.

      To be clear: when PeterisP says parse the format, they really mean lex the format (and do some minimal checks concerning e.g. balanced parentheses). To "handle the semantics of a particular field" is a parsing concern.

  18. Dec 2022
    1. There is a fundamental distinction between simulating and comprehending the functioning (of a brain but also of any other organ or capacity).

      !- commentary : AI - elegant difference stated: simulating and comprehending are two vastly different things - AI simulates, but cannot be said to comprehend