133 Matching Annotations
  1. Jul 2021
  2. Jun 2021
    1. With GraphQL-Ruby, it’s possible to hide parts of your schema from some users. This isn’t exactly part of the GraphQL spec, but it’s roughly within the bounds of the spec.
    1. Because ISO code lists were not always free and because they change over time, a key idea was to create a permanent, stable registry for all of the subtags valid in a language tag.

      Why was it not free???

    1. KV is used in 8 of the overlay locales at the moment (CS, DE, HI, JA, PL, PT, SK, and CN). I don't agree with this and believe that Carmen should only reflect country codes that are part of the actual ISO standard.
  3. May 2021
    1. But in the dark world of HTML email, where the motto is "code like it's 1996" because Outlook uses the rendering engine from MS Word and Gmail removes almost everything, every method for making two elements overlap that I can think of is unsuitable due to poor client support
    1. I'm coding an email for a project and man! it's such a pain. Every other client has it's own implementation and supported rules. Some don't allow even simple properties like background-image while some support most advanced rules like media queries
    2. I haven't done much e-mail templating luckily, but like you said it's a PITA... It would be great if there was some kind of standard though, but that's not going to happen anytime soon
    3. That's something that has been bugging me too. I mean, it's fine if not everything is supported, but if everyone could agree on what is or should be supported then that would make a huge difference. But until then, it's going to be a struggle.
  4. Apr 2021
    1. The main difference is in the flow of how messages are ultimately sent to devices for output. The standard library Logger logic converts the log entries to strings and then sends the string to the device to be written to a stream. Lumberjack, on the other hand, sends structured data in the form of a Lumberjack::LogEntry to the device and lets the device worry about how to format it. The reason for this flip is to better support structured data logging. Devices (even ones that write to streams) can format the entire payload including non-string objects and tags however they need to.
    2. The logging methods (debug, 'info', 'warn', 'error', 'fatal') are overloaded with an additional argument for setting tags on the log entry.
    1. Write stderr and stdout to a file, display stderr on screen (on stdout) exec 2> >(tee -a -i "$HOME/somefile.log") exec >> "$HOME/somefile.log" Useful for crons, so you can receive errors (and only errors) by mail
    1. What you want is not to detect if stdin is a pipe, but if stdin/stdout is a terminal.

      The OP wasn't wrong in exactly the way this comment implies: he didn't just ask how to detect whether stdin is a pipe. The OP actaully asked how to detect whether it is a terminal or a pipe. The only mistake he made, then, was in assuming those were the only two possible alternatives, when in fact there is (apparently) a 3rd one: that stdin is redirected from a file (not sure why the OS would need to treat that any differently from a pipe/stream but apparently it does).

      This omission is answered/corrected more clearly here:

      stdin can be a pipe or redirected from a file. Better to check if it is interactive than to check if it is not.

    1. This question does not show any research effort; it is unclear or not useful Bookmark this question. Show activity on this post. I'm trying to filter the output of the mpv media player, removing a particular line, but when I do so I am unable to control mpv with the keyboard. Here is the command: mpv FILE | grep -v 'Error while decoding frame' When I run the command, everything displays correctly, but I am unable to use the LEFT and RIGHT keys to scan through the file, or do anything else with the keyboard. How do I filter the output of the program while retaining control of it?
    2. Quite a lot of programs actually detect if their output goes to a file (e.g. try man | grep -F a and you will not be able to scroll back and forth).
    1. i found that for the osx host "gonzo" , the vanished files (not the warning message itself) appear in stdout - for linux hosts they _both_ appear in stderr , but nothing in stdout (rsync.err.#num is stderr, rsync.log is stdout)
    1. I managed to do half the work. But that’s exactly it: It’s work. It’s designed that way. It requires a thankless amount of mental and emotional energy, just like some relationships.

      This is a great example of how services like Facebook can be like the abusive significant other you can never leave.

    2. I realized it was foolish of me to think the internet would ever pause just because I had. The internet is clever, but it’s not always smart. It’s personalized, but not personal. It lures you in with a timeline, then fucks with your concept of time. It doesn’t know or care whether you actually had a miscarriage, got married, moved out, or bought the sneakers. It takes those sneakers and runs with whatever signals you’ve given it, and good luck catching up.
    3. Pinterest doesn’t know when the wedding never happens, or when the baby isn’t born. It doesn’t know you no longer need the nursery. Pinterest doesn’t even know if the vacation you created a collage for has ended. It’s not interested in your temporal experience.This problem was one of the top five complaints of Pinterest users.
  5. Mar 2021
    1. My preference here is biased by the fact that I spend everyday at work building web components, so Svelte's approach feels very familiar to slots in web components.

      first sighting: That <template>/<slot> is part of HTML standard and the reason Svelte uses similar/same syntax is probably because it was trying to make it match / based on that syntax (as they did with other areas of the syntax, some of it even JS/JSX-like, but more leaning towards HTML-like) so that it's familiar and consistent across platforms.

    2. but I like that Svelte comes with a good CSS story out the box.

      comes with a good CSS story out the box

    1. Can we occupy technology with love?

      An interesting re-framing of the social media problem. Similar to the IndieWeb philosophy, but a bit more pointed.

    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. the community is both endlessly creative and genuinely interested in solving big issues in meaningful ways. Whether it's their commitment to careful (and caring) community stewardship or their particular strain of techno-ethics, I have been consistently (and pleasantly) surprised at what I've seen during the last twelve months. I don't always see eye-to-eye with their decisions and I don't think that the community is perfect, but it's consistently (and deliberately) striving to be better, and that's a fairly rare thing, online or off.
    1. Will it also help accomplish another goal — communicating to my students that a classroom of learners is, in my mind, a sort of family?

      I like the broader idea of a classroom itself being a community.

      I do worry that without the appropriate follow up after the fact that this sort of statement, if put on as simple boilerplate, will eventually turn into the corporate message that companies put out about the office and the company being a tight knit family. It's easy to see what a lie this is when the corporation hits hard times and it's first reaction is to fire family members without any care or compassion.

    2. <small><cite class='h-cite via'> <span class='p-author h-card'>Remi Kalir</span> in Annotate Your Syllabus 3.0 (<time class='dt-published'>03/13/2021 14:18:33</time>)</cite></small>

    1. One thing that would be useful to this debate an analysis of a language ecosystem where there are only "macropackages" and see if the same function shows up over and over again across packages.
    1. jq uses the Oniguruma regular expression library, as do php, ruby, TextMate, Sublime Text, etc, so the description here will focus on jq specifics.
  6. Feb 2021
    1. identity theft

      Saw this while scrolling through quickly. Since I can't meta highlight another hypothesis annotation

      identity theft

      I hate this term. Banks use it to blame the victims for their failure to authenticate people properly. I wish we had another term. —via > mcr314 Aug 29, 2020 (Public) on "How to Destroy ‘Surveillance C…" (onezero.medium.com)

      This is a fantastic observation and something that isn't often noticed. Victim blaming while simultaneously passing the buck is particularly harmful. Corporations should be held to a much higher standard of care. If corporations are treated as people in the legal system, then they should be held to the same standards.

    1. Brian Nosek. (2020, December 5). We need a #2020goodnews trend. Here’s one: Science keeps getting more open. One indicator from @OSFramework: OSF users posted 9,349 files of data or other research content PER DAY OSF users made 5,633 files public PER DAY EVERY DAY in 2020 #openscience is accelerating [Tweet]. @BrianNosek. https://twitter.com/BrianNosek/status/1335210552252125184

    1. Programming to an interface means that when you are presented with some programming interface (be it a class library, a set of functions, a network protocol or anything else) that you keep to using only things guaranteed by the interface. You may have knowledge about the underlying implementation (you may have written it), but you should not ever use that knowledge.
  7. Jan 2021
    1. Great, I can use vw to scale text so it doesn't look puny on a desktop! Perfect... Oh. Huh, now the text is too small to read when viewed on a phone. Okay, well I can just use "max(x,y)" to make sure it doesn't get shrunk beyond a minimum size. Perfect... Oh. Hmm. Looks like "max" isn't supported properly by Chrome. Okay, well guess I'll just use "px" again.
    1. overflow-wrap: break-word; makes sure the long string will wrap and not bust out of the container. You might as well use word-wrap as well because as the spec says, they are literally just alternate names for each other. Some browsers support one and not the other.
    1. >Linux needs an app delivery format Yeah, it's incredible that it has managed to survive for so long without one.
    2. Its not too complicated but it is an annoyance. I want /etc/hosts, /etc/resolv.conf, /etc/nsswitch.conf, /etc/rc.local and all the standard stuff to work. The heavy lifting is done in the kernel. All they need to do is leave it alone. Its getting harder to make Ubuntu behave like Linux.
    1. If components gain the slot attribute, then it would be possible to implement the proposed behavior of <svelte:fragment /> by creating a component that has a default slot with out any wrappers. However, I think it's still a good idea to add <svelte:fragment /> so everyone who encounters this common use case doesn't have to come up with their own slightly different solutions.
  8. Dec 2020
  9. Nov 2020
    1. logInfoToStdOut (boolean) (default=false) This is important if you read from stdout or stderr and for proper error handling. The default value ensures that you can read from stdout e.g. via pipes or you use webpack -j to generate json output.
    1. All browers handle 302 incorrectly. Chrome 30, IE10. It became the de facto incorrect implementation; that cannot be changed because so many web-sites issue mistakenly issue 302. In fact ASP.net MVC incorrectly issues 302, depending on the fact that browsers handle it incorrectly.
  10. Oct 2020
  11. react-spectrum.adobe.com react-spectrum.adobe.com
    1. In addition, this example shows usage of the isPressed value returned by useButton to properly style the button's active state. You could use the CSS :active pseudo class for this, but isPressed properly handles when the user drags their pointer off of the button, along with keyboard support and better touch screen support.
    1. trusktr herman willems • 2 years ago Haha. Maybe React should focus on a template-string syntax and follow standards (and provide options for pre-compiling in Webpack, etc).

    1. However, this would lead to further divergence. Tooling that is built around the assumptions imposed by template literals wouldn't work. It would undermine the meaning of template literals. It would be necessary to define how JSX behaves within the rest of the ECMAScript grammar within the template literal anyway.
    2. Why not just use that instead of inventing a syntax that's not part of ECMAScript?
    3. ECMAScript 6th Edition (ECMA-262) introduces template literals which are intended to be used for embedding DSL in ECMAScript.
    1. The problem is that the since both the JSX transpiler and the traceur compiler are actually parsing the full javascript AST, they would have to mutually agree on the syntax extensions you use: traceur can't parse the faux-xml syntax JSX adds, and JSX can't parse the async or await keywords, for example, or generator functions.
  12. Sep 2020
    1. and I keep up with the modern way

      Here we can clearly observe Betteredge's double standard. Just a few lines above, he ascribes a contradictory behavior to women, and now he exhibits it gloriously himself. It's very apparent throughout the story that Betteredge cares a great deal about whether someone is "a Dustman or a Duke." He never fails to talk highly about people of rank, and scarcely about people of no particular hereditary rank. It even manifests itself in the way he values himself (albeit with some insecurity), as opposed to his servants. But here, he so blatantly declares himself free of any prejudicial behavior... This is one of various instances in which his hypocrisy is showing face.

  13. Aug 2020
  14. Jul 2020
    1. It uses the new standardized format for code modules included in the ES6 revision of JavaScript, instead of previous idiosyncratic solutions such as CommonJS and AMD.
  15. Jun 2020
    1. the lowest copy number sample points impacted faster and sronger, then you just need to stabilize by adding a neutral nucleic acid background in your standard curve. I usually use water containig 10ng/microl yeast tRNA to perform serial dilutions. This will first create a reaction background similar to your RTQPCR reaction, but also stabilize your DNA copies; I can freeze and thaw (min 20C) more than 50 times the same standard curve sample without any loss in Cts, from 10E6 to 10E2 copies. When I tested the same standard curve but diluted in water only, then the 10E2 started to be slightly affected after one freeze and thaw and then crashed further; then higher copy numbers samples were also affected after 2 to 3 freeze and thaw.
    1. Slightly on a tangent, but https://github.com/hypothesis/h/issues/777 could be a good target for https://solidproject.org/ to address. The Web Annotation Vocabulary is defined in RDF, so there should be zero overhead.

      yes SOLID would be a neat backend for w3c annotations

  16. May 2020
    1. Once running, kaniko will then get the data from STDIN and create the build context as a compressed tar. It will then unpack the compressed tar of the build context before starting the image build.
    1. Pipes are great for taking output of one command and transforming it using other commands like jq. They’re a key part of the Unix philosophy of “small sharp tools”: since commands can be chained together with pipes, each command only needs to do one thing and then hand it off to another command.
  17. Apr 2020
    1. Rails also adds a test method that takes a test name and a block. It generates a normal Minitest::Unit test with method names prefixed with test_. So you don't have to worry about naming the methods, and you can write something like:

      Or you could use the "it" format mentioned on https://devhints.io/minitest.

      Or better yet, just use rspec...

    1. a defined quantity of a nonhuman control virus (seal herpes virus [SHV], kindly provided by H. G. M. Niesters, University of Rotterdam, The Netherlands) was spiked into each sample prior to DNA and RNA extraction. Since constant DNA quantities of the control virus are coextracted even when RNA isolation kits are used (H. G. M. Niesters, personal communication; our own unpublished observations), the virus can also serve as a control in RNA virus detection assays.
    1. In many households, telephones were hard-wired to wall terminals before connectors like RJ11 and BS 6312 became standardized.
  18. Mar 2020
    1. The standard error (the standard deviation of the distribution of sample means) has this formula:

      Tex command for the standard deviation of the sample mean

  19. Jan 2020
    1. The Web Annotation Data Model specification describes a structured model and format to enable annotations to be shared and reused across different hardware and software platforms.

      The publication of this web standard changed everything. I look forward to true testing of interoperable open annotation. The publication of the standard nearly three years ago was a game changer, but the game is still in progress. The future potential is unlimited!

  20. Dec 2019
    1. Due dates and threshold dates aren't part of the todo.txt format spec! Due date and threshold date are implemented as key:value tags, which are fully compliant with the todo.txt format spec. They both are popular extensions to the todo.txt command line scripts.
    1. uBlock Origin blocks ads through its support of the Adblock Plus filter syntax. uBlock Origin extends the syntax and is designed to work with custom rules and filters.
    1. TC39 urges caution when using Stage 2-or below proposals, as it might result in inadvertent pressure from the community to keep the implementation as-is instead of improving it for fear of breaking existing code or ecosystem fragmentation (e.g. using a different symbol like # instead of @ for decorators).
    2. The reasoning is that saying "ES7 Decorators" assumes that Decorators is expected to be in ES7. I mentioned this in my last post regarding compiling node_modules, but being in a particular Stage doesn't guarantee much: a proposal can stall, move backward, or get removed entirely.
  21. Nov 2019
  22. Oct 2019
    1. Epictetus wrote nothing; and all that we have under his name was written by an affectionate pupil, Arrian, afterwards the historian of Alexander the Great, who, as he tells us, took down in writing the philosopher’s discourses

      As it happens, this annotation works through its proper URL) but, Hypothesis butchered the link. You need to turn the page once to see the highlight though.

  23. May 2019
    1. NDEx lets you specify Licenses and Request DOIs for your networks to include in grant proposals or publications thus enabling papers to link directly to your data.
    1. Require DOI?: Set this to true in order to generate a permanent identifier for this collection (Please set this to true for collections related to publications).
    1. The use of the common metabolite names in the RefMet database is strongly encouraged in order to be able to compare and contrast metabolite data across different experiments and studies.
  24. Apr 2019
  25. Feb 2019
    1. Thirdly, When the signification of the word is referred to a standard, which standard is not easy to be known.

      Trying to think of good examples of this, and came up with: "They are good people" or "She has the moral high ground".... possibly even words like "Lethal" because a weapon or object doesn't need to seem dangerous to everyone to have the ability to kill someone

  26. Jan 2019
    1. Coming back to the two ‘FreeSync’ settings in the monitor OSD, they differ in the variable refresh rate range that they support. ‘Standard Engine’ supports 90 – 144Hz (90 – 119Hz via HDMI) whilst ‘Ultimate Engine’ gives a broader variable refresh rate range of 70 – 144Hz (62 – 119Hz via HDMI). We didn’t notice any adverse effects when using ‘Ultimate Engine’, so we’d suggest users simply stick to that option.

      In my tests using Standard Engine, in combo with G-Sync Compatible Driver, I get more screen flickering during menus.

  27. Dec 2018
    1. Classifications may or may not become standardized. If they do not, they are ad hoc, limited to an individual or a local community, and/or of limited duration. At the same time, every successful standard imposes a classification system, at the very least between good and bad ways of organizing actions or things. And the work-arounds involved in the practical use of standards frequently entail the use of ad hoc nonstandard categories.

      This is an important point for classifying and standardizing modes of time and temporal representations in information systems. What comes first? The class or the standard?

    2. Standards Classifications and standards are closely related, but not identical. While this book focuses on classification, standards are crucial compo­nents of the larger argument. The systems we discuss often do become standardized; in addition, a standard is in part a way of classifying the world.

      Definition of standards

      "What are standards?"

      1. A set of agreed-upon rules for the production of objects
      2. Spans more than one community of practice. It has temporal reach since it persists over time.
      3. Deployed in making things work together over distance and heterogeneous metrics
      4. Standards are enforced by some legal/regulatory/professional/government body.
      5. There is no natural law that the best standard wins
      6. Standards can be difficult and expensive to change
  28. Sep 2018
    1. If ever there were a newspaper headline custom-made for Jay Leno's monologue, this was it. Kids taking on McDonald's this week, suing the company for making them fat. Isn't that like middle-aged men suing Porsche for making them get speeding tickets? Whatever happened to personal responsibility?

      They say / Standard View