318 Matching Annotations
  1. Dec 2020
  2. Nov 2020
    1. You’ll learn how to cause stack overflows, illegal memory access, andother common flaws that plague C programs so that you know what you’re upagainst

      When you learn from "Learn C the Hard Way"

    Tags

    Annotators

    1. Some of the verbs implemented by systemctl are designed to provide a high-level overview in a human readable format. All that information is available over dbus, and/or journalctl, systemctl show. We could provide that information in json format, but there's a second problem. Information and format of information printed by e.g. systemctl status is not stable. Since the output is not suitable for programmatic consumption anyway, there's no need to provide it in a machine readable format.
    2. Although I agree that -o json should return proper JSON, believe the proper way for external tools like SaltStack etc. to talk to systemd is DBus. See also saltstack/salt#20392 - everything else is more or less just hack-ish and prone to break easily.
    1. http://jonudell.info/h/tag-rename-02.mp4

      Most people would embed a YouTube video. Nice to see no dependency on 3rd-party service here.

  3. Oct 2020
    1. Please don't copy answers to multiple questions; this is the same as your answer to a similar question

      Why on earth not? There's nothing wrong with reusing the same answer if it can work for multiple questions. That's called being efficient. It would be stupid to write a new answer from scratch when you already have one that can work very well and fits the question very well.

    1. If you have a better/simpler/"more official" solution, I'd still love to see it!

      The "official" solution is to use submitErrors (see Erik's answer).

    2. is this solution considered a hack or is something that we can use as an approved workaround in scenarios where we need to manually trigger validations?
    3. Library author here. I'm always fascinated by new ways people can invalidate my assumptions. I mean that in a sincerely positive way, as it results in learning.
    4. The more official way to do this would be to run the check (you could even reuse this.validate) in onSubmit.
    1. I'm afraid there's only so much the docs & tutorials can do about something like this actually. When you first read them, you don't get Svelte well enough (since you're reading a tutorial...) for this to make sense to you. Then you try something, encounter a behaviour, question it, understand better... That's learning.
    1. Identify your user agents When deploying software that makes requests to other sites, you should set a custom User-Agent header to identify the software and provide a means to contact its maintainers. Many of the automated requests we receive have generic user-agent headers such as Java/1.6.0 or Python-urllib/2.1 which provide no information on the actual software responsible for making the requests.
    1. formvalidation: path.resolve

      Why use resolve.alias to point to 'vendors/formvalidation/dist/es6'? Why not just use an npm package and have package.json name module: 'vendors/formvalidation/dist/es6'

      Then (I think) the examples below like

      import luhn from 'formvalidation/algorithms/luhn';
      

      would work the same but without that workaround.

    1. I'm glad they added this site. Instead of just closing such questions as "off topic" on StackOverflow or SuperUser without having them some place appropriate to send them.

  4. Sep 2020
    1. By default, npx will check whether <command> exists in $PATH, or in the local project binaries, and execute that. Calling npx <command> when <command> isn't already in your $PATH will automatically install a package with that name from the NPM registry for you, and invoke it. When it's done, the installed package won’t be anywhere in your globals, so you won’t have to worry about pollution in the long-term. You can prevent this behaviour by providing --no-install option.
    1. But this is only a halfway decent way to clarify that this is an external dependency, because the only way to resolve a peer dependency warning is to install react from npm—there's no way to notify npm that you resolve the dependency to a browser global. So peer dependencies should be avoided in favor of external declarations. Then Rollup will take care of warning about "unresolved dependencies", even if external declarations can't express a particular version range with which your library is compatible like peer dependencies can.

      Interesting. Didn't realize. From my perspective, I usually do install packages via npm, so wouldn't have known about this problem.

      npm and rollup both try to solve this problem but in different ways that apparently conflict? So if a lib author lists peerDependencies then it can cause problems for those getting lib via browser (CDN)? How come so many libs use it then? How come I've never heard of this problem before?

    2. There are two ways of handling this with Rollup, as described by the troubleshooting link from the warning. Unfortunately, both Rollup and React recommend the wrong one.
    1. Luckily, there is absolutely no good reason not to use strict mode for everything — so the solution to this problem is to lobby the authors of those modules to update them.
    1. If you want this control then wrap them in a DOM node that the parent controls. If you want to pass in values then use props and if you want to pass in values from higher up the tree, the new style RFC may be able to help.
    1. I think Svelte's approach where it replaces component instances with the component markup is vastly superior to Angular and the other frameworks. It gives the developer more control over what the DOM structure looks like at runtime—which means better performance and fewer CSS headaches, and also allows the developer to create very powerful recursive components.
    1. There are tools in Svelte that break this expectation to a degree, but they are a bit annoying to use, which makes it an active decision on the part of the developer. The API hints at the way we want you to do things because we feel that this will give the better experience.
    2. Most of the linked issues, as well as this RFC, attempt to solve this problem by relaxing Svelte's CSS scoping rules, providing a better API with which to use global, or by manually passing down classes. We have never found this to be an acceptable solution which is why those issues have been closed. That position has not changed.
    1. I’ve seen some version of this conversation happen more times than I can remember. And someone will always say ‘it’s because you’re too used to thinking in the old way, you just need to start thinking in hooks’.

      But after seeing a lot of really bad hooks code, I’m starting to think it’s not that simple — that there’s something deeper going on.

    1. When you visit location /one and the server redirects you to location /two, you expect the browser’s address bar to display the redirected URL. However, Turbolinks makes requests using XMLHttpRequest, which transparently follows redirects. There’s no way for Turbolinks to tell whether a request resulted in a redirect without additional cooperation from the server. To work around this problem, send the Turbolinks-Location header in the final response to a visit that was redirected, and Turbolinks will replace the browser’s topmost history entry with the value you provide.
  5. Aug 2020
    1. I went against the grain, applying other tools that people have written over the years to directly perform the job at hand which do not involve entering a program for awk or a shell to run, with answers like https://unix.stackexchange.com/a/574309/5132 and https://unix.stackexchange.com/a/578242/5132 . Others have done similar. https://unix.stackexchange.com/a/584274/5132 and https://unix.stackexchange.com/a/569600/5132 are (for examples) answers that show alternative tools to answers employing shell script and (yet again) awk programs, namely John A. Kunze's jot and rs (reshape), which have been around since 4.2BSD for goodness' sake!
  6. Jul 2020
    1. There's a few other questions on StackOverflow regarding how to structure YAML files for i18n, and I don't think there is a 'right' answer to your question. If it works for you, then great! I would say that any answer you get will be completely subjective, and more about i18n and translation management rather than anything specifically to do with the Rails way.
  7. Jun 2020
    1. Using OpenBTS, which we will be including in FreedomBox soon, and with cheap additional hardware, a FreedomBox can talk directly to GSM handsets, to provide alternatives to commercial mobile services.
  8. May 2020
    1. examples, listing both the conventional systems and their counterpart systems: Conventional schooling Home schooling Encyclopedia Britannica Wikipedia Microsoft Office Open Office Taxicabs Uber Hotel chains Airbnb Big-box stores Ebay National currency Cryptocurrency
    1. In natural languages, some apparent tautologies may have non-tautological meanings in practice. In English, "it is what it is" is used to mean 'there is no way of changing it'.[1] In Tamil, vantaalum varuvaan literally means 'if he comes, he will come', but really means 'he just may come'.[2]
  9. Apr 2020
    1. many organisations block torrents (for obvious reasons) and I know, for example, that either of these options would have posed insurmountable hurdles at my previous employment
    2. Actually, I probably would have ended up just paying for it myself due to the procurement challenges of even a single-digit dollar amount, but let's not get me started on that
    1. there's no reasonable way to communicate effectively with the less technically minded without acquiescing to the nontechnical misuse of the term "hacker"
    2. The more easily relabeled of the two uses of the term "hacker" is the malicious security cracker: it is not only the more recent phenomenon to acquire that label, but also the one whose meaning is most easily evoked by an alternative term. This is why, when you read an article of mine that talks about malicious security crackers, I use the term "malicious security cracker"
    1. Not everybody uses rubygems as their package management system. If this sounds odd to you, read https://gist.github.com/54177.
  10. Mar 2020
    1. 27$/year

      They spell it "27$/year" instead of "$27/year". I love it that they bucked the useless convention of putting $ sign first and did it the way that makes more sense. We've all had that thought, why do we say it "27 dollars" but write it, "dollars 27". It just doesn't make sense.

    1. If these asset owners regarded the “robots” as having the same status as guide dogs, blind people or default human citizens, they would undoubtedly stop imposing CAPTCHA tests and just offer APIs with reasonable limits applied.
    1. Q. Why does Rubinius not support frozen and tainted? A. Rubinius has better features; frozen and tainted are considered harmful. To elaborate... Both frozen and tainted depend on strewing checks throughout the source code. As a classic weak-link system, only one of those checks needs to be misplaced for the guarantees offered by either to fail. Since the number of checks is high, and as new code is written new checks need to be considered, the features inherently constitute unbounded complexity and unbounded risk.
    1. If you ever need to work with external translators, it’s a bit of a pain sending both your YML files and a bunch of views like index.en.html.erb. For one thing, you need some code to find all those files and send them, and put them back after receiving the translations. For another, your translator must respect the markup and code of the template, and know not to translate them. And if you want to use tools like WebTranslateIt, it’s easier to stick to YML.

      Good point. Better to store translations in your I18n backend in the same place as your subject translations, etc. (which by default is in YAML file).

  11. Jan 2020
  12. Dec 2019
    1. ReST

      "ReST" instead of "REST". I like how this way matches the case of the actual phrase that it's standing in for "Representational State Transfer", so you can better tell which letters are the beginning of words (all but "e").

  13. Nov 2019
    1. You want to write maintainable tests for your React components. As a part of this goal, you want your tests to avoid including implementation details of your components and rather focus on making your tests give you the confidence for which they are intended. As part of this, you want your testbase to be maintainable in the long run so refactors of your components (changes to implementation but not functionality) don't break your tests and slow you and your team down.
    2. We try to only expose methods and utilities that encourage you to write tests that closely resemble how your web pages are used.
    3. The more your tests resemble the way your software is used, the more confidence they can give you.
    4. Most of the damaging features have to do with encouraging testing implementation details. Primarily, these are shallow rendering, APIs which allow selecting rendered elements by component constructors, and APIs which allow you to get and interact with component instances (and their state/properties) (most of enzyme's wrapper APIs allow this).
  14. Sep 2019
  15. Jul 2019
    1. Culture is homogenous. This presumes that a (local) culture is free of internal paradoxes and contradictions such that (a) it provides clear and unambiguous behavioural “instructions” to individuals –a program for how to act –or (b) once grasped or learned by an outsider, it can be characterized in relatively straightforward ways (“the Dobuans are paranoid”). A homogenous view of culture makes the second inadequate idea easier to sustain, namely that

      Attempting to learn about the Central Australian Indigenous culture, reveals a myriad of ways of being within the language groups and within each community. The people themselves offer a solution in the form of a Malpa, a person from the community who provides cultural translation and keeps you culturally safe.

  16. Apr 2019
    1. In the end

      Within my parish it went like that: I, a studied theology - once roman catholic - had joined the old catholic church a couple of years ago... after the early death of my brother I decided to use my studied talents within this church. The priest in my church was pleased to have a educted help and nugged me to get credits also within old catholic church for my finished studied - though i work within the IT Business. in the End I was sent to a small parish in vienna to help as Lector - not ordained but integrated within our hierarchy... So I got to know the people in this parish. I noticed i will have to spent nearly every sunday to get to know the people.. and to give them the chance to get acquainted ... When the Priest in this parish decided not to bury the burden of beeing responsible the parish stood empty... The bishop asked me to take over - beeing there and doing workships as good as gets - only once every couple of months the bishop could service us... so I did and prepared to get ordained as Deacon and then Priest. So it started 2010, Deacon 2011, Priest 2012 and elected Reverend 2014. But I was still working within the IT-Business - until today.. I reduced working time there... but now I have do do more work there again... the Parish will notice my lack of time and energy. I tried to get a valuable substitute for all the ministry lays can do in a parish, but the new bishop denied me help - this could detoriate the established order of the ordained priest - fear in their hearts that they could loose their full time jobs when lays get payed for their work - instead of the ordained priest. ... (sic!) I am a bit confused - am I in the rights church? is old-catholic not liberal and open minded? ... So I am searching for a compas to get my parish further on the way to beiing able to serve themselve... even without help from the bishop.

  17. Feb 2019
    1. We refer to a way of life

      I view that through the lens of mindsets; I get there by learning that, when confronted with a life-threatening diagnosis, taking full ownership of the dx can save lives. I map that to strategies for preventing life-threatening diagnoses (think: all the complex, urgent issues about which Douglas Engelbart spoke).

  18. Sep 2018
    1. We want better children—but not by turning procreation into manufacture or by altering their brains to gain them an edge over their peers. We want to perform better in the activities of life—but not by becoming mere creatures of our chemists or by turning ourselves into tools designed to win or achieve in inhuman ways. We want longer lives—but not at the cost of living carelessly or shallowly with diminished aspiration for living well, and not by becoming people so obsessed with our own longevity that we care little about the next generations. We want to be happy—but not because of a drug that gives us happy feelings without the real loves, attachments, and achievements that are essential for true human flourishing.

      This paragraph draw my attention. It is a important notice for this and the future generation. There are so many things that we are wondering and fight for but there are some temptation and wrong expectation in our world. i think that people really need to think about what are they wondering, such as happiness, career, family. after we recognize what we want then we need to figure out the right way to achieve our goal.

  19. Mar 2017
    1. Conversely, western pedagogy continues to deal with content predominantly in the abstract form, in spite of attempts to contextualise subject matter.

      This jumps out at me as a major difference between the two systems of learning. Indigenous: highly contextualised with a strong sense of place versus Western: pedagogy deals with content in the abstract in spite of attempts to contextualise. What do you think?

  20. Dec 2016
    1. Living The Way of Knowledge BUILDING THE FOUNDATION FOR BECOMING A MAN OR WOMAN OF KNOWLEDGE IN AN EMERGING WORLD

      Living The Way of Knowledge is the New Message Teaching on how to bring the grace, the guidance and the power of Knowledge into the Four Pillars of your life: The Pillar of Relationships, The Pillar of Work, The Pillar of Health and The Pillar of Spiritual Development. Like the four legs of a table, the Four Pillars provide the stable foundation for building a greater life in an unstable and uncertain world. Living The Way of Knowledge presents one of the great practices in learning and living the New Message from God. By building the Four Pillars of your life, you develop a true foundation and a greater certainty, stability and direction in your experience. It is the great wisdom in Living The Way of Knowledge that will provide the day-to-day insight needed as you pass through the great thresholds on the journey of discovering and following Knowledge.

      What is Knowledge?

      What is The Greater Community Way of Knowledge?

  21. Sep 2016
    1. I stopped being precious with everything, and I’m applying that to my life and the music that I make and the comics that I make. I don’t believe anymore in the hype machine or the strategy. I believe that you make something and then you share it. There’s no reason to wait.
    1. Are the Killjoys the heroes? If you want to look at it in a nihilistic 15-year-old point of view, watching A Clockwork Orange for the first time, I guess you could see them as the heroes. Are Better Living Industries (BLI) really the bad guys? Who’s the bad guy? I feel like The Girl just wants to hang out with her cat.
  22. Jun 2016
    1. Annie Sauter says: May 28, 2016 at 9:28 am

      Susan, did you read this comment. Kinda captured my own lostness but not quite. I get the feeling that I need to give up some of my...contextity? That's like saying "Hoist anchor" in a storm. And that really is a way of breaking smart if it saves your damned life. Our political life is exactly like this now. The contextity is killing us. Hoist the fucking anchor or be dragged down with it when the storm batters hell out of you. Here I am again trying to put down the meaning anchor. This is hard to do when you have spent your whole life trying to understand and do and drive uncertainty and ambiguity to ground. I think maybe the key for me to is to feel my way with a new set of antennae, nascent and emergent antennae.

  23. Oct 2015
    1. Therefore, until further notice, I want you to proceed as though you do not know what your purpose is, nor what effect it has when you are doing healing work. This will not be hard for you to do, and when it occurs to you to contact me during a healing session, do not hesitate to do so. I will be glad to work with you, because, after all, we are both working for the purpose of preparing the Way.

      The humility of 'don't know mind'....

  24. Oct 2013
    1. in order to advise on such matters a man must be keenly interested in the methods worked out in other lands.