363 Matching Annotations
  1. Jan 2024
    1. when you actually have chronic anything usually it's not a good result

      for - chronic disease - usually chronic is not a good sign - too much of a good thing turns out to be bad - it means too much of something, like inflammation will cause harm - when inflammation knob is stuck on high, it becomes a problem

      metaphor - inflammation and forest fire - If you are camping in the forest, a small fire keeps you warm and you can cook - Inflammation is like that small fire going out of control and burning the whole forest down

    1. i was just banned from reddit for 3 days for "threatening violence" in this comment

      you have to be really stupid (or evil) to interpret this comment as "threatening violence". but well, nothing new. hate maintainers, hate moderators, hate admins, ...

      Kinda crazy that something that every body does is taken away from them and they shut up and obey like they are the government's property or something.

      because people ARE property of the government

      if i would own my children, then i could kill them, just like i can kill my dog. but "my" children are property of the government, and if i "hurt" my children, or if i teach the "wrong" things to my children, then police bust my door, steal my children, throw me in jail, and put my children into a "normal" family

      you sound young, maybe 20. im 30, and i have some experience in this field... im officially labelled as "unfit for educating children" because of my radical views

      here is the ban message:

      Hi milahu2,

      Reddit is a vast network of communities that are created, run, and populated by people like you. In order to keep communities welcoming, safe, and great places to be, everyone who uses the platform operates by a shared set of rules.

      Banned 3-days for threatening violence

      We flagged the following as a potential policy violation:

      Content shared from milahu2 on 01/16/2024 UTC

      https://www.reddit.com/r/Piracy/comments/197z4k9/comment/ki43hbb

      After reviewing, we found that you broke Rule 1 because you threatened violence or physical harm. Reddit is a place for creating community and belonging, not for threatening violence against people or animals. We don’t tolerate any behavior that threatens violence or physical harm against an individual, groups of people, places, or animals. Any communities or people that threaten violence towards an individual, group, animals, or place will be banned.

      As a result, we’re issuing a temporary 3-day ban on your milahu2 account, removing the violating content, and asking you not to break this rule again.

      Reddit and its communities are only what we make of them together, and we want you to continue enjoying Reddit while helping your fellow redditors and communities stay safe. We suggest reading and getting acquainted with Reddit’s Content Policy. A better understanding of these rules will help you avoid further actions from our admin team. If you do continue to break Reddit’s rules through this or any other Reddit account, you may face additional actions such as a permanent ban from the platform.

      If you feel like you didn’t break the rules, you can file an appeal any time within the next six months and we’ll take a second look.

      – Reddit Admin Team

      Note: This content was flagged by Reddit's automated systems. This decision was made without the assistance of automation.

      my appeal:

      not a single word in my comment is "threatening violence"

      do you understand the english language?

      • for: COP28 talk - later is too late, Global tipping points report, question - are there maps of feedbacks of positive tipping points?, My Climate Risk, ICICLE, positive tipping points, social tipping points

      • NOTE

        • This video is not yet available on YouTube so couldn't not be docdropped for annotation. So all annotations are done here referred to timestamp
      • SUMMARY

        • This video has not been uploaded on youtube yet so there is no transcription and I am manually annotating on this page.

        • Positive tipping points

          • not as well studied as negative tipping points
          • cost parity is the most obvious but there are other factors relating to
            • politics
            • psychology
          • We are in a path dependency so we need disruptive change
      • SPEAKER PANEL

        • Pierre Fredlingstein, Uni of Exeter - Global carbon budget report
        • Rosalyn Conforth, Uni of Reading - Adaptation Gap report
        • Tim Lenton, Uni of Exeter - Global Tipping Report
      • Global Carbon Budget report summary

      • 0:19:47: Graph of largest emitters

        • graph
        • comment
          • wow! We are all essentially dependent on China! How do citizens around the world influence China? I suppose if ANY of these major emitters don't radically reduce, we won't stay under 1.5 Deg C, but China is the biggest one.
      • 00:20:51: Land Use Emissions

      • three countries represent 55% of all land use emissions - Brazil - DRC - Indonesia

      • 00:21:55: CDR

        • forests: 1.9 Gt / 5% of annual Fossil Fuel CO2 emissions
        • technological CDR: 0.000025% of annual Fossil Fuel CO2 emissions
      • 00:23:00: Remaining Carbon Budget

        • 1.5 Deg C: 275 Gt CO2
        • 1.7 Deg C. 625 Gt CO2
        • 2.0 Deg C. 1150 Gt CO2
      • Advancing an Inclusive Process for Adaptation Planning and Action

      • adaptation is underfinanced. The gap is:

        • 194 billion / year
        • 366 billion / year by 2030
      • climate change increases transboundary issues
        • need transboundary agreements but these are absent
        • conflicts and migration are a result of such transboundary climate impacts
        • people are increasing climate impacts to try to survive due to existing climate impacts

      -00:29:46: My Climate Risk Regional Hubs - Looking at climate risks from a local perspective. - @Nate, @SoNeC - 00:30:33 ""ICICLE** storyllines - need bottom-up approach (ICICLE - Integrated Climate Livelihood and and Environment storylines)

      • 00:32:58: Global Tipping Points

      • 00:33:46: Five of planetary systems can tip at the current 1.2 Deg C

        • Greenland Ice Sheet
        • West Antarctic
        • Permafrost
        • Coral Reefs - 500 million people
        • Subpolar Gyre of North Atlantic - ice age in Europe
          • goes in a decade - like British Columbia climate
      • 00:35:39

        • risks go up disproportionately with every 0.1 deg C of warming. There is no longer a business-as-usual option now. We CANNOT ACT INCREMENTALLY NOW.
      • 00:36:00

        • we calculate a need of a speed up of a factor of 7 to shut down greenhouse gas emissions and that is done through positive tipping points.

      -00:37:00 - We have accelerating positive feedbacks and if we coordinate policy changes with consumer behavior change and business behavior change to reinforce these positive feedbacks, we can help accelerate change in the other sectors of the global economy responsible for all the other emissions

      • 00:37:30

        • in the report we walk you through the other sectors, where their tipping points are and how we have to act to trigger them. This is the only viable path out of our situation.
      • 00:38:10

        • Positive tipping points can also reinforce each other
        • Question: Are there maps of the feedbacks of positive tipping points?
        • Tim only discusses economic and technological positive tipping points and does not talk about social or societal
  2. Dec 2023
    1. The Conversation’s senior editor had pulled the piece at the last minute, claiming it was “too polemical”. Unfortunately, the senior editor didn’t elaborate on their judgement (or contact me directly), so I can only guess that they were uncomfortable with my direct language and reference to the “generally supine media” – concerns all too easily hidden behind the façade of “too polemical”.
      • for: too controversial, too polemic, elite discomfort, ClimateUncensored censored!, Kevin Anderson - censored
    1. its easy to get lost in complexity here, but i prefer to keep it simple: our *only* problem is overpopulation, which is caused by pacifism = civilization. *all* other problems are only symptoms of overpopulation. these "financial weapons of mass destruction" (warren buffett) have the only purpose of mass murder = to kill the 95% useless eaters. so yes, this is a "controlled demolition" aka "global suicide cult". most of us will die, but we are happy...

      financial weapons of mass destruction: the useful idiots believe that they can defeat risk (or generally, defeat death) by centralization on a global scale. they want to build a system that is "too big to fail" and which will "live forever". they use all kinds of tricks to make their slaves "feel safe" and "feel happy", while subconsciously, everything is going to hell in the long run. so this is just another version of "stupid and evil people trying to rule the world". hubris comes before the fall, nothing new. their system will never work, but idiots must try... because "fake it till you make it" = constructivism, mind over matter, fantasy defeats reality, ...

      the video and soundtrack are annoying, they add zero value to the monolog.

  3. Nov 2023
    1. The problem is that when I want to create OAuth client ID in google, it does not accept ".test" domain for "Authorized redirect URIs". It says: Invalid Redirect: must end with a public top-level domain (such as .com or .org). Invalid Redirect: domain must be added to the authorized domains list before submitting. While it accepts .test domain for "Authorized JavaScript origins" part! I saw most of the tutorials when using socialite and google api they set these in google console. http://localhost:8000 and http://localhost:8000/callback/google and google accepts them without problem with domain and generate the key and secret but I am not using mamp and I am going to continue with valet. I would be so thankful if you guide me about what is the alternative domain for .test which works fine in valet and also google accepts it?
    1. So then they put it into lib only to find that they have to manually require it. Then later realize that this also means they now have to reboot their server any time they change the file (after a painfully long debugging time of "why what aren't my changes working?", because their lib folder classes are now second-class citizens). Then they go down the rabbit hole of adding lib to the autoload paths, which burns them because rake tasks then all get eager loaded in production. Then they inevitably realize anything inside app is autoloaded and make an app/lib per Xavier's advice.
    2. I think the symmetry of the naming between lib and app/lib will lead a fresh Rails developer to seek out the answer to “Why are there two lib directories?", and they will become illuminated. And it will prevent them from seeking the answer to “How do I autoload lib?” which will start them on a rough path that leads to me advising them to undo it.
  4. Oct 2023
    1. I don't understand the distinction between quality and state.

      Now that I mention it, neither do I. What's the difference between a quality and a state?

  5. Sep 2023
  6. Aug 2023
    1. 4. Too much couplingAnother issue I had with this is the coupling that it might introduce in your code. I do understand that our community in general is not very much interested in dealing with coupling and I am not an expert at this either, but I do get a feeling that this suppress method would lead to some very bad usages.For instance, why does the Copyable module needs to know about a class named Notification?
    1. rendered.should have_selector("#header") do |header| header.should have_selector("ul.navlinks") end Both of which silently pass - however, capybara doesn't support a :content option (it should be :text), and it doesn't support passing blocks to have_selector (a common mistake from Webrat switchers).
  7. Jul 2023
    1. The way to do this with Capybara is documented on StackOverflow but, unfortunately, the answer there is buried in a little too much noise. I decided to create my own tiny noise-free blog post that contains the answer. Here it is:
    2. I commonly find myself wanting to assert that a certain field contains a certain value.
    1. Lograge is an attempt to bring sanity to Rails' noisy and unusable, unparsable and, in the context of running multiple processes and servers, unreadable default logging output.
  8. Jun 2023
  9. Mar 2023
    1. he gained popularity, particularly among young men, by promoting what he presented as a hyper-masculine, ultra-luxurious lifestyle.

      Andrew Tate, a former kickboxer and Big Brother (17, UK) housemate, has gained popularity among young men for promoting a "hyper-masculine, ultra-luxurious lifestyle".

      Where does Tate fit into the pantheon of the prosperity gospel? Is he touching on it or extending it to the nth degree? How much of his audience overlaps with the religious right that would internalize such a viewpoint?

  10. Jan 2023
  11. Dec 2022
    1. 4NO POSTING OR UPLOADING VIDEOS OF ANY KINDTo protect the quality of our group & prevent members from being solicited products & services - we don't allow any videos because we can't monitor what's being said word for word. Written post only.

      annotation meta: may need new tag: - can't effectively monitor

    1. When configuring SMTP settings in an after_initialize block, the settings aren't picked up by ActionMailer. This leads to runtime errors, since ActionMailer tries the default settings.
  12. Nov 2022
    1. Since adequately performing economies use too much energy, other research has formulated low energy consumption levels satisfying human needs.  What would low energy life be like?  For starters, an end to private transportation, not just switching to electric vehicles.  People will have to rely on public transit and “active” transport (e.g., walking).

      Not going to be a possibility for most people

    2. Estimates put the level of energy use “compatible with avoiding 1.5ºC of global warming without relying on negative emissions technology” at around 7,500 kilowatt-hours per person per year.  Americans currently use more than ten times this level, so our energy use would need to decline drastically

      We use too much energy for this to be possible

    1. Many INDCs lack necessary details, such as clarity on sectors and gases covered, details on the impact of listed mitigation actions, different metrics to aggregate gases, details on base year or reference values from which reductions or improvements would be measured, or accounting practices related to land use and the use of specific market mechanisms (

      Countries were only concerned with delivering a result rather than giving good solutions

    2. About two thirds of the available budget for keeping warming to below 2[degrees]C have already been emitted

      no money for change

    3. The INDCs collectively lower greenhouse gas emissions compared to where current policies stand, but still imply a median warming of 2.6-3.1 degrees Celsius by 2100. More can be achieved, because the agreement stipulates that targets for reducing greenhouse gas emissions are strengthened over time, both in ambition and scope

      Agaisnt too late

    1. On the other hand, emissions from the building sector are expected to rise from 9 gigatonnes (Gt) in 2004 to 11 to 16 Gt in 2030, mainly due to economic growth in developing countries (IPCC 2007). Given climate change as a global constraint to future use of fossil fuels, it is the responsibility of the industrialized nations to develop an energy efficient building stock in order to facilitate economic development elsewhere in the world. Recent policy proposals (European Commision 2011; Kelly 2009) make similar arguments and suggest sectoral reduction targets of 80% or more for developed regions.

      Arguement for it is too late

    2. As heat losses of buildings are minimized during transformation, energy for hot water and appliances becomes the dominant contributor to sectoral energy demand. Reducing the sectoral carbon footprint by at least 50%, as required to limit global warming to 2°C, cannot be achieved by transforming the stock alone; additional measures such as lowering consumption from hot water generation or appliances and changes that impact lifestyle, such as smaller dwellings and more people per dwelling, are required.

      Against its too late

    1. I have DNS settings in my hosts file that are what resolve the visits to localhost, but also preserve the subdomain in the request (this latter point is important because Rails path helpers care which subdomain is being requested)
    2. I've developed additional perspective on this issue - I have DNS settings in my hosts file that are what resolve the visits to localhost, but also preserve the subdomain in the request (this latter point is important because Rails path helpers care which subdomain is being requested) To sum up the scope of the problem as it stands now - I need a way within Heroku/Capybara system tests to both route requests to localhost, but also maintain the subdomain information of the request. I've been able to accomplish one or the other, but haven't found a configuration that provides both yet.
    1. The Console now supports redeclaration of const statement, in addition to the existing let and class redeclarations. The inability to redeclare was a common annoyance for web developers who use the Console to experiment with new JavaScript code.
    1. Honestly, at this point, I don't even know what tools I'm using, and which is responsible for what feature. Diving into the code of capybara and cucumber yields hundreds of lines of metaprogramming magic that somehow accretes into a testing framework. It's really making me loathe TDD despite my previous youthful enthusiasm.

      opinion: too much metaprogramming magic

      I'm not so sure it's "too much" though... Any framework or large software project is going to feel that way to a newcomer looking at the code, due to the number of layers of abstractions, etc. that eventually were added/needed by the maintainers to make it maintainable, decoupled, etc.

    1. Check the "Auto-open DevTools for popups".

      Without this feature, when a pop-up opens without DevTools open, if it redirects, it will be too late to open DevTools and see the redirect logged...

      There is still a problem though: If the pop-up window closes, so does that DevTools. So you can't see logs or network logs (redierects) that happened right before it closed...

    1. Why was the SIGSTOP-ed process not responding to SIGTERM? Why does the kernel keeps it in the same state? Why did it get killed the moment it received the SIGCONT signal? If it was because of the previous SIGTERM signal, where was it kept until the process resumed?
  13. Oct 2022
    1. I'd like rsync to create the source dir structure on the remote, when I'm only synching a file in a sub-dir. At the moment it seems I need to do this in 2 commands, e.g.. ssh <remote> mkdir -p /backup/var/spool/cron/crontabs rsync -vauz /var/spool/cron/crontabs <remote>:/backup/home/var/spool/cron/. Ideally, I'd like to be able to do this: rsync -Mvauz /var/spool/cron/crontabs <remote>:/backup/home/var/spool/cron/.
    1. I'd like rsync to create the source dir structure on the remote, when I'm only synching a file in a sub-dir. At the moment it seems I need to do this in 2 commands, e.g.. ssh <remote> mkdir -p /backup/var/spool/cron/crontabs rsync -vauz /var/spool/cron/crontabs <remote>:/backup/home/var/spool/cron/. Ideally, I'd like to be able to do this: rsync -Mvauz /var/spool/cron/crontabs <remote>:/backup/home/var/spool/cron/. ...where M (make parents) is a new option that tells mkdir to do 'mkdir -p' on the remote target dir.
  14. Sep 2022
    1. it's syntactically correct, but it will check that none parameters are valid, just because additionalProperties work at siblings level, and no enter inside of allOf

      JSON Schema: problem: can't use additionalProperties with allOf to make a union

  15. Aug 2022
    1. It would completely change how I view mint.com. It would become a powerful mechanism for opening up my own access to my own financial data which is currently being locked away by my banks, credit card companies and other providers. All I get is a crappy UI from those places. Mint's UI is much better, but an API would completely change the game.
    1. I would like something to log and tag my spending instantly.
    2. My main issue with mint was having to correct transactions multiple times. Do it one day, do it again the next, then it finally sticks.
    1. How do I turn off the requirement to have a lock screen?Today, I'm suddenly unable to use any Google related apps on my phone, because I am now REQUIRED to set up a lock screen on my phone. I get that you want to be super-secure for businesses using enterprise devices. I am not a business. I'm some guy who just happens to have a domain name. My only "employee" is me. I have a two email addresses: My real first name, and the shorter version that most people call me. I do NOT want a lock screen on my phone. I don't want to be forced to give myself permission to use apps on my phone. Why am I now required to add all this bull$%^? Nobody is hacking my interwebs. Give me a f#$%^& break! I don't need a lock screen. I've been using this account for everything (gmail, youtube, etc) for over five years now. I'm not interested in deleting it and going back to my gmail.com account. I'm also not interested in being forced to click multiple times just to use my phone. Let me disable it.So, how do I turn this garbage off?
    1. It's a great way to test various limits. When you think about this even more, it's a little mind-bending, as we're trying to impose a global clock ("who is the most up to date") on a system that inherently doesn't have a global clock. When we scale time down to nanoseconds, this affects us in the real world of today: a light-nanosecond is not very far.
    2. There are many questions we can ask and answer about branch names. Each one is specific to one particular repository because all branch names are local to that particular repository. Any changes anyone makes in that repository affect only that one repository, at least at the time they make them.

      which assumption? well, people make the assumption that our local repo should know some fact about the remote repo, like its default branch, without actually asking the remote about itself

  16. Jul 2022
    1. Rails 3 seems is ignoring my rescue_from handler so I cannot test my redirect below.

      I have similar problem too

      404 errors raise ActiveRecord::RecordNotFound to the test

  17. May 2022
    1. DatabaseCleaner.strategy = :truncation, {:except => %w[spatial_ref_sys]}

      Yes.

    2. I spent some time trying to figure out why I was receiving: GetProj4StringSPI: Cannot find SRID (4326) in spatial_ref_sys From my tests. Of course SELECT * FROM spatial_ref_sys returned 0 rows.

      I had this problem too

  18. Apr 2022
    1. Book review

      Cook, Trevor. “Review: Blair, Ann M. Too Much to Know: Managing Scholarly Information Before the Modern Age. New Haven: Yale University Press, 2010. Pp. Xv, 397. ISBN 978-0-300-11251-1 (Hardcover) $45.” Renaissance and Reformation 33, no. 4 (December 12, 2011): 109–11. https://doi.org/10.33137/rr.v33i4.15975.

      Note that they've accidentally used the word "in" instead of "Before" in the title of the book.

    2. The bookitself participates in the history it recounts: it has a title page, table of contents,footnotes, a bibliography and an index to assist the reader, while the digitalcopy enables the reader to search for individual words and phrases as well asto copy-and-paste without disfiguring a material object.

      Some scholars study annotations as part of material culture. Are they leaving out too much by solely studying those physically left in the books about which they were made, or should we instead also be looking at other sources like commonplace books, notebooks, note cards, digital spaces like e-readers that allow annotation, social media where texts are discussed, or even digital marginalia in services like Hypothes.is or Perusall?

      Some of these forms of annotation allow a digital version of cut and paste which doesn't cause damage to the original text, which should be thought of as a good thing though it may separate the annotations from the original physical object.

  19. Mar 2022
    1. Software has gotten so much slower and more bloated that operating systems no longer run acceptably on spinning rust.
    1. In 1994, The Unix-Haters Handbook was published containing a long list of missives about the software—everything from overly-cryptic command names that were optimized for Teletype machines, to irreversible file deletion, to unintuitive programs with far too many options. Over twenty years later, an overwhelming majority of these complaints are still valid even across the dozens of modern derivatives. Unix had become so widely used that changing its behavior would have challenging implications. For better
  20. Jan 2022
  21. Dec 2021
  22. Nov 2021
    1. Could someone guide me how to set up chromedriver with selenium using chromium flatpak properly? I can't seem to find any tutorial doing it like this... I never had issues with chromedriver using the "old" sudo apt way and I also got it working using snapd. But since I am using Pop!_OS I'd like to just use flatpaks if there is no sudo apt repo.
  23. Oct 2021
    1. The issue seems to be that when there are multiple layouts configured, VS Code sets as key layout the first value for layout form setxkbmap -query, ignoring the current layout. If I switch to be en,de then VS Code uses the EN layout, as it is the first in the list. It would be handy if VS Code could use the current layout instead of the first from the list.
  24. Sep 2021
    1. Does this daemon benefit me in anyway or is it only used for mismatched resolutions like 1440p with a 1080p display?
    1. if you have 3 windows of the same web browser application running, Alt+Tab won’t let you switch between those windows
    1. After a bad leak from the pipe leading into my hot water heater left my floors soaked and damaged, I decided I wanted to be prepared in case there was a next time.
    1. WARNING in ./app/javascript/components/ComponentLibrary/Docs/Intro.md Module parse failed: Unexpected character '#' (1:0) You may need an appropriate loader to handle this file type.
    1. Usually you get this error if you change your password by some other means which fails to update the password for the keyring.
  25. Aug 2021
    1. But for this approach we fear the performance impact of creating iframes via JavaScript -- the html iframe would be rendered and loaded before the script would even start to execute.
    1. The problem is that, with the literal types, the includes call now gives a type error: // Error: Argument of type number is not assignable to 1 | 2 | 3 if(!legalValues.includes(userValue)) { throw new Error("..."); }
    1. Now consider we want to handle numbers in our known value set: const KNOWN_VALUES = Object.freeze(['a', 'b', 'c', 1, 2, 3]) function isKnownValue(input?: string | number) { return typeof(input) === 'string' && KNOWN_VALUES.includes(input) } Uh oh! This TypeScript compiles without errors, but it's not correct. Where as our original "naive" approach would have worked just fine. Why is that? Where is the breakdown here? It's because TypeScript's type system got in the way of the developer's initial intent. It caused us to change our code from what we intended to what it allowed. It was never the developer's intention to check that input was a string and a known value; the developer simply wanted to check whether input was a known value - but wasn't permitted to do so.
  26. Jul 2021
    1. Finally, Real America has a strong nationalist character. Its attitude toward the rest of the world is isolationist, hostile to humanitarianism and international engagement, but ready to respond aggressively to any incursion against national interests.

      Humanitarianism and international engagement are definitely important, but their value is often made invisible to "Real America" or "middle America".

      How can this value be made more apparent? How could we account for it to make it easier to see?

      The issue is compounded when large corporations receive massive bailouts as it's an additional cost weighing down the system. Would humanitarianism and international engagement be easier to uphold if we left off corporate costs? Do most of the value of humanitarianism and international engagement redound to corporations as an additional value primarily to them rather than everyday people? Is their perceived problem that they're another method of privatizing profits to major corporations and elites and socializing the losses to the average person?

    1. While Microsoft is entirely in the right by reminding people of the terms they agreed to, many users are taking issue with the fact that they hadn’t been warned about the limit in the eight years it’s been in place, and many people are now being told they are over the limit after years of being over.
    1. This “bloat,” along with recently seeing how mismanaged the open-source community is, finally broke the camel’s back for me. I realized that I needed to look elsewhere for a GraphQL client library.
    2. Sometimes libraries can be too opinionated and offer too much “magic”. I’ve been using Apollo Client for quite some time and have become frustrated with its caching and local state mechanisms.
  27. Jun 2021
    1. As you can see Rails already adds error messages from associated models and doing it wrongly: Merging together errors from different models under same has_many association. :"employments.company"=>["can't be blank"] And this is wrong.
    2. I have been waiting for a solution for this quite a while now.
    1. This particular project team came in with a lot of experience using testing tools like RSpec and Capybara. This included integrating with additional tools like Selenium WebDriver, Chrome and Chromedriver, data generation libraries like FactoryBot, and task runners like Rake. We had less experience doing end-to-end testing with Protractor even though it too uses Selenium WebDriver (a tool we’re very comfortable with).
    1. I don't think it is too clever. I think it solves the problem idiomatically. I.e., it uses reduce, which is exactly correct. Programmers should be encouraged to understand what is correct, why it is correct, and then propagate. For a trivial operation like average, true, one doesn't need to be "clever". But by understanding what "reduce" is for a trivial case, one can then start applying it to much more complex problems. upvote.
    1. I've never felt challenged by any of my teachers. All their curriculums I've laughed at. I run circles around my teachers and most of them hated me because I'd finish my work and I'm pretty sure they hated me. I remember this lady. What was her name? I don't remember her name, but she was redheaded with glasses. She fucking hated me, man, because I'd laugh at pretty much all her work. I'd finish it in seconds and she'd get so frustrated with me because she's like, "Ugh. What am I supposed to do with you?"

      Time in the US, School, Teachers

  28. May 2021
    1. This looks cool but right now, let's say i have an external api which depends on users cookies, the cookies only gets send through internal sk endpoints while ssr even if its the same domain. Couldn't we pass the 'server' request to the serverFetch hook? I would currently have to patch package svelte kit to pass request headers to the external api or create an sk endpoint which proxies the request.
    1. Well, since you're reading this, let me tell you a little more about HMR. Magic is actually not such a good think in software development, so if we can demystify HMR a bit, it will probably benefits you when it comes to answer setup questions or, generally, get the most out of your HMR experience.
    1. What I am attempting to do is to highlight a div with a certain id, when It has been referred to by an anchor on another page IE: User clicks link href="qw.html#test", when the page is loaded, then the div with the id="test" is highlighted so that the user can see it clearly.
  29. Apr 2021
    1. I really like the ideas in this game: the theme, what it's trying to accomplish (explore the problems with imperialism, if I understood correctly), the game board, the game in general. I want to like it.

      but, I don't think I would like this one enough due to the luck and relying on other players' whims (trading) mechanisms:

      • Dice Rolling
      • Push Your Luck

      You can risk a lot getting an expensive estate, but if you push your luck too much, your risk/gamble won't pay off and you'll permanently lose that [pawn] and those victory points.

    1. https://boardgamegeek.com/boardgame/183284/factory-funner/versions

      And now there are two versions with the nickname "Second edition": 2018 https://boardgamegeek.com/boardgameversion/404596/second-edition 2021 https://boardgamegeek.com/boardgameversion/556765/second-edition

      and a 3rd edition published prior to the current/new 2nd edition: 2019 https://boardgamegeek.com/boardgameversion/486693/third-edition

      Confusing all around.

      But I think the bottom line is that the 2021 version is in fact the same game and the newest rules tweaks:

      1. Added a sixth player
      2. Official variant to play without the quick grab element.
    1. I didn't get exactly how pty came into picture and what is the usage of that. Looking forward to get more info on that.
    1. Luck over-rides strategy
    2. You can't avoid the comparisons to Carcassonne even though the scoring mechanic is very different. It just looks the same, and the tile placement phase feels close enough to be familiar. However, this familiarity starts to nag at you, only adding to the frustration when tile placement is clumsy and luck-driven unlike Carcassonne. The comparison is not favourable for Fjords.
    3. You can strategise to a degree by trying to block off a potential peninsula (cut off between two mountains for example). This can start a little race to claim this area. e.g. I cut off an area with one of my houses.
    4. Luck is a major factor. As discussed above, sometimes the map seems to build itself and you draw tiles which you HAVE to place even though they are aiding your opponent.
    5. f you cannot place it, it is set aside for use later in the game if an opportunity arises. (Tiles are set aside a lot.)
    1. My wife's first description of playing Fjords was that it felt a bit like playing Othello, in that you had to think too far ahead. I don't see it that way. I think that the luck of the draw & the fact that a tile must be played if it can, means that you can't always plan too far ahead. Often you have to try to work out how to make use of what you've got.
    1. I have a 2 radio buttons with the same id and label, only different values, (true, false)....anything I can do to choose false?

      If you just do find_field(radio_input_name) you end up with

         Ambiguous match, found 2 elements matching visible field "name" that is not disabled
      
  30. Mar 2021
    1. This isn't really a downside to React; one of React's strengths is that it lets you control so much and slot React into your environment
    2. I like this approach more because I can scan the code that renders the Box component and easily spot that it takes two children. If the Box took any props, they'd be within the opening <Box> tag, and they would be distinct from any children props.
    3. Coming from React to Svelte this did catch me out numerous times but for me I now prefer Svelte's approach, particularly because it removes some of the boilerplate around useEffect.
    4. Here's where I start to have a preference for Svelte; the two are very similar but once I got used to Svelte I found that React felt like jumping through hoops. You can't create a worker instance, it has to go in a useRef, and then you can't easily pull code out into a function without then requiring useCallback so it can be a safe dependency on useEffect. With Svelte I write code that's closer to "plain" JavaScript, whereas in React more of my code is wrapped in a React primitive.
    1. It does this by creating links to specially crafted URLs using custom schemes (ie. "txmt", "subl", "mvim"). I prefer to use standard CLI vim in iTerm.

      I have similar problem: want to use regular vim in tilix terminal

    1. How to install VIM with all options/features? - VIM
    2. I have VIM on Mac & CentOS. So, I see people are writing about -xterm_clipboard, -lua, ... Is there an simple way to install it all? or we have to enable options one-by-one and compile/recompile it?

      I had similar question... how to get --servername support.

    1. Some research led me to the --remote-tab switch that allows to open files as tabs in currently open Vim processes but it seemed to work only with the graphical interface (gvim) and not with the console (vim). But as I made some tests I found this can work with the vim in console mode

      That's what I thought too (that it was only available with gvim, which I don't want to use).

      But I get this error when I try it with regular vim:

      $ vim --servername local
      VIM - Vi IMproved 8.1 (2018 May 18, compiled Apr 15 2020 06:40:31)
      Unknown option argument: "--servername"
      
    1. when the link of accessing a workspace appear I only get the popup: "Open xdg-open?" and then nothing happens.

      Though in my case it is clicking an mvim:// link from better_errors

    1. Tried to buy keyg at its 90% off sales price but no matter what payment method I choose I keep getting a "Due to processing fees the minimum amount is 100 cents."I'm trying to figure out if there is any way around this, and if not then why can you list a game at a price below $1 if it isn't actually possible for it to be bought at said price?
    1. Or even a simple 1-liner in the Contract that references an AR Model so you don't have to rewrite the validations again in that contract, or have to choose between writing the validations once either in the contract there or in the AR Model?
    1. This semi-colon is added to prevent changing the code behaviour (the famous line ending with parentheses, etc) Most people will use a JS minifier If they don't, a single extra character is unlikely to change much If I'm right about all the above: Why don't we simply always add a semi-colon regardless of what the file ends with?
    2. yeah I discovered too late that #310 exists and does that
    1. What is the point of avoiding the semicolon in concat_javascript_sources

      For how detailed and insightful his analysis was -- which didn't elaborate or even touch on his not understanding the reason for adding the semicolon -- it sure appeared like he knew what it was for. Otherwise, the whole issue would/should have been about how he didn't understand that, not on how to keep adding the semicolon but do so in a faster way!

      Then again, this comment from 3 months afterwards, indicates he may not think they are even necessary: https://github.com/rails/sprockets/issues/388#issuecomment-252417741

      Anyway, just in case he really didn't know, the comment shortly below partly answers the question:

      Since the common problem with concatenating JavaScript files is the lack of semicolons, automatically adding one (that, like Sam said, will then be removed by the minifier if it's unnecessary) seems on the surface to be a perfectly fine speed optimization.

      This also alludes to the problem: https://github.com/rails/sprockets/issues/388#issuecomment-257312994

      But the explicit answer/explanation to this question still remains unspoken: because if you don't add them between concatenated files -- as I discovered just to day -- you will run into this error:

         (intermediate value)(...) is not a function
             at something.source.js:1
      

      , apparently because when it concatenated those 2 files together, it tried to evaluate it as:

         ({
           // other.js
         })()
         (function() {
           // something.js
         })();
      

      It makes sense that a ; is needed.

    1. I'm kinda stuck at the moment, going around in circles. Everything is really heavily coupled. I would like to get to the point where no load is called from within processors, but i'm not sure if that's possible. Currently the API and the caching strategies are fighting me at every step of the way. I have a branch where i'm hacking through some refactoring, no light at the end of the tunnel yet though :(
    1. Opal is a Ruby to JavaScript source-to-source compiler. It comes packed with the Ruby corelib you know and love. It is both fast as a runtime and small in its footprint.
    1. Hyperstack gives you full access to the entire universe of JavaScript libraries and components directly within your Ruby code.Everything you can do in JavaScript is simple to do in Ruby; this includes passing parameters between Ruby and JavaScript and even passing Ruby methods as JavaScript callbacks.There is no need to learn JavaScript, all you need to understand is how to bridge between JS and Ruby.
    1. Shogi is a classic game. I know many people who want to play Shogi, but the Kanji on the pieces makes it too hard to master. I have designed this Shogi with icons so anybody can learn it easily.
    1. The Model macro literally does what our model! step did.

      That information is not generally relevant. Only makes sense for someone who actually knew about or used the old interface.

      The docs shouldn't assume you are an experienced user / a user of the previous version.

      Would have been appropriate in a Changelog entry or announcement, but not in the general docs.

    1. a strategy game for me is mostly about the mechanics and the replayability. I love good art and design, but function follow form!
  31. Feb 2021
    1. To understand this helper, you should understand that every step invocation calls Output() for you behind the scenes. The following DSL use is identical to the one [above]. class Execute < Trailblazer::Activity::Railway step :find_provider, Output(Trailblazer::Activity::Left, :failure) => Track(:failure), Output(Trailblazer::Activity::Right, :success) => Track(:success)
    2. For branching out a separate path in an activity, use the Path() macro. It’s a convenient, simple way to declare alternative routes

      Seems like this would be a very common need: once you switch to a custom failure track, you want it to stay on that track until the end!!!

      The problem is that in a Railway, everything automatically has 2 outputs. But we really only need one (which is exactly what Path gives us). And you end up fighting the defaults when there are the automatic 2 outputs, because you have to remember to explicitly/verbosely redirect all of those outputs or they may end up going somewhere you don't want them to go.

      The default behavior of everything going to the next defined step is not helpful for doing that, and in fact is quite frustrating because you don't want unrelated steps to accidentally end up on one of the tasks in your custom failure track.

      And you can't use fail for custom-track steps becase that breaks magnetic_to for some reason.

      I was finding myself very in need of something like this, and was about to write my own DSL, but then I discovered this. I still think it needs a better DSL than this, but at least they provided a way to do this. Much needed.

      For this example, I might write something like this:

      step :decide_type, Output(Activity::Left, :credit_card) => Track(:with_credit_card)
      
      # Create the track, which would automatically create an implicit End with the same id.
      Track(:with_credit_card) do
          step :authorize
          step :charge
      end
      

      I guess that's not much different than theirs. Main improvement is it avoids ugly need to specify end_id/end_task.

      But that wouldn't actually be enough either in this example, because you would actually want to have a failure track there and a path doesn't have one ... so it sounds like Subprocess and a new self-contained ProcessCreditCard Railway would be the best solution for this particular example... Subprocess is the ultimate in flexibility and gives us all the flexibility we need)


      But what if you had a path that you needed to direct to from 2 different tasks' outputs?

      Example: I came up with this, but it takes a lot of effort to keep my custom path/track hidden/"isolated" and prevent other tasks from automatically/implicitly going into those steps:

      class Example::ValidationErrorTrack < Trailblazer::Activity::Railway
        step :validate_model, Output(:failure) => Track(:validation_error)
        step :save,           Output(:failure) => Track(:validation_error)
      
        # Can't use fail here or the magnetic_to won't work and  Track(:validation_error) won't work
        step :log_validation_error, magnetic_to: :validation_error,
          Output(:success) => End(:validation_error), 
          Output(:failure) => End(:validation_error) 
      end
      
      puts Trailblazer::Developer.render o
      Reloading...
      
      #<Start/:default>
       {Trailblazer::Activity::Right} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=validate_model>
      #<Trailblazer::Activity::TaskBuilder::Task user_proc=validate_model>
       {Trailblazer::Activity::Left} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error>
       {Trailblazer::Activity::Right} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=save>
      #<Trailblazer::Activity::TaskBuilder::Task user_proc=save>
       {Trailblazer::Activity::Left} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error>
       {Trailblazer::Activity::Right} => #<End/:success>
      #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error>
       {Trailblazer::Activity::Left} => #<End/:validation_error>
       {Trailblazer::Activity::Right} => #<End/:validation_error>
      #<End/:success>
      
      #<End/:validation_error>
      
      #<End/:failure>
      

      Now attempt to do it with Path... Does the Path() have an ID we can reference? Or maybe we just keep a reference to the object and use it directly in 2 different places?

      class Example::ValidationErrorTrack::VPathHelper1 < Trailblazer::Activity::Railway
         validation_error_path = Path(end_id: "End.validation_error", end_task: End(:validation_error)) do
          step :log_validation_error
        end
        step :validate_model, Output(:failure) => validation_error_path
        step :save,           Output(:failure) => validation_error_path
      end
      
      o=Example::ValidationErrorTrack::VPathHelper1; puts Trailblazer::Developer.render o
      Reloading...
      
      #<Start/:default>
       {Trailblazer::Activity::Right} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=validate_model>
      #<Trailblazer::Activity::TaskBuilder::Task user_proc=validate_model>
       {Trailblazer::Activity::Left} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error>
       {Trailblazer::Activity::Right} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=save>
      #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error>
       {Trailblazer::Activity::Right} => #<End/:validation_error>
      #<Trailblazer::Activity::TaskBuilder::Task user_proc=save>
       {Trailblazer::Activity::Left} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error>
       {Trailblazer::Activity::Right} => #<End/:success>
      #<End/:success>
      
      #<End/:validation_error>
      
      #<End/:failure>
      

      It's just too bad that:

      • there's not a Railway helper in case you want multiple outputs, though we could probably create one pretty easily using Path as our template
      • we can't "inline" a separate Railway acitivity (Subprocess "nests" it rather than "inlines")
    1. The sole purpose to add Dev::Trace::Inspector module is to make custom inspection possible and efficient while tracing. For example, ActiveRecord::Relation#inspect makes additional queries to fetch top 10 records and generate the output everytime. To avoid this, Inspector will not call inspect method when it finds such objects (deeply nested anywhere). Instead, it’ll call AR::Relation#to_sql to get plain SQL query which doesn’t make additional queries and is better to understand in tracing output.