115 Matching Annotations
  1. Aug 2021
  2. Jul 2021
  3. Jun 2021
    1. Please make sure that your file(s) referenced in bin starts with #!/usr/bin/env node, otherwise the scripts are started without the node executable!
  4. Apr 2021
    1. ![Cosmic radiation](https://i.snap.as/T05UTpx.jpg)

      Since a lot of this is guaranteed to be seen as arcane magic, maybe this is an opportune place for the UI hooks for a conversational/palette-based UI? Maybe >> to set it off?

    1. unbuffer disables the output buffering that occurs when program output is redirected. For example, suppose you are watching the output from a fifo by running it through od and then more.    od -c /tmp/fifo | more You will not see anything until a full page of output has been produced. You can disable this automatic buffering as follows:    unbuffer od -c /tmp/fifo | more
    1. can be easily invoked directly from shell prompt or script

      Can't expect / unbuffer / etc. (whatever this is attempting to contrast itself with) be easily invoked directly from shell prompt or script too??

      Okay, I guess you have to know more about how expect is invoked to understand what they mean. One glance at the examples, comparing them, and all becomes clear:

      #!/bin/sh
      empty -f -i in -o out telnet foo.bar.com
      empty -w -i out -o in "ogin:" "luser\n"
      

      I didn't realize that expect required/expected (no pun intended) to be used in scripts with its own shebang line:

      #!/usr/bin/expect
      
      spawn telnet foo.bar.com 
      expect ogin {send luser\r}
      

      That does make it less easy/normal to use expect within a shell script.

      I was coming to the expect project from/for the unbuffer command, which by contrast, is quite easy to include/use in a shell script -- almost the same as empty, in fact. (Seems like almost a mismatch to have unbuffer command in expect toolkit then. Or is expect command the only odd one out in that toolkit?)

    1. The command also can be run in silent mode (tty -s) where no output is produced, and the command exits with an appropriate exit status.
  5. Mar 2021
    1. I find it convenient to change proxy and other settings through gui window by right-clicking on launcher icon on my desktop. I mostly start slack by clicking desktop launcher, but also want to be able to start it from command line in some cases.
    2. If you really want this, I suggest you write a little function that extracts the executable name from the .desktop file and runs it. Add these lines to your shell's initialization file (e.g. ~/.bashrc): runDesktop () { eval "$(awk -F= '$1=="Exec"{$1=""; print}' "$1")" } Then, you can run your .desktop file with runDesktop ~/Desktop/slack.desktop
    1. We could add heuristics like: is the file inside XDG_DATA_DIRS/applications? if not, is the file inside XDG_DATA_HOME/applications? if not, is the file marked as executable? if not, open with the text editor
    2. Hello , since I made a modification in gio-tool (#2098 (closed)) , I seen this issue and decide to give it go. I implemented an unix only solution only for launching a desktop file through gio command, see !1779 (merged)
    3. When one is searching for it on the internet, there are many many people wondering how one can open .desktop files. It seems trivial, since one usually just has to click an item on the launcher so one thinks there must be some way.
    4. I have to agree with Raphael here that this should probably be handled in gnome-open, its a pain to have to implement .desktop parsing code in every beagle front end when I can't really think of an instance where the expected behavior wouldn't be to execute the associated command.
    5. I don't know what nautilus does, but i think when you double click a .desktop file it launches the associated program, i guess they don't use gnome-open then..
    6. deskbar should probably detect their extension and execute the relevant command as opposed to opening the file for editing.
  6. Feb 2021
    1. For example, on the terminal I'm using, the right arrow outputs ^[[C. You can see what sequence your terminal outputs by pressing Ctrl-V Right Arrow. The same is true for other cursor-control keys such as Page Up and End.
  7. Jan 2021
    1. sciences

      just for the sciences? Or do you mean, "For instance, as we're building a course for the sciences,"....

    2. The following were developed to afford groups made up of any disparate number of higher education team members to engage in

      "These exercises and activities are designed to support growth..." then.. "They can be used by groups of any number number of team members working in higher education." Shorter sentences better.

    1. Going Further and more about Getting Started

      do these need to be capped?

    2. , faculty in higher education need to attend to culturally relevant pedagogy, Universal Design for Learning, guidance on up-to-date standards (such as the ISTE Standards for Educators), and providing authentic assignments and activities while considering how surveillance technologies – think proctored exam software and the requirement to have cameras ‘on’ during meetings – are seen increasing anxiety in our students [1, 2], attending to student concerns, and – hopefully – keeping up with their own mental health.

      this is a suuuuper long sentence and there are a number of ideas in it. Suggest breaking it down.

    3. put

      let, i think. right?

    4. ional designers work tog

      "can" or "should" work together, yes?

    5. flow without being cognitively overwhelming

      "flow" doesn't seem to be directly counterintuitive to cognitive, uh, whelm. Like, they're not mutually exclusive.

    6. need their student to learn

      ...want to see a student absorb. (we don't so much "learn" information as we take it in.)

    7. – such as library, accessibility, and information technology departments

      ...larger university community, and includes the university's library, accessibility..."

  8. Dec 2020
  9. Nov 2020
    1. Prettier’s printWidth option does not work the same way. It is not the hard upper allowed line length limit. It is a way to say to Prettier roughly how long you’d like lines to be. Prettier will make both shorter and longer lines, but generally strive to meet the specified printWidth. Remember, computers are dumb. You need to explicitly tell them what to do, while humans can make their own (implicit) judgements, for example on when to break a line. In other words, don’t try to use printWidth as if it was ESLint’s max-len – they’re not the same. max-len just says what the maximum allowed line length is, but not what the generally preferred length is – which is what printWidth specifies.
  10. Oct 2020
    1. I debugged docker-compose and docker-py and figured out that you should either use environment variables or options in command. You should not mix these . If you even specify --tls in command then you will have to specify all the options as the TLSConfig object, as now TLSConfig object is created completely from the command options and operide the TFSConfig object created from the environment variable.
    1. The limits are chosen to avoid wrapping in editors with the window width set to 80, even if the tool places a marker glyph in the final column when wrapping lines.
    2. For code maintained exclusively or primarily by a team that can reach agreement on this issue, it is okay to increase the line length limit up to 99 characters
  11. Sep 2020
  12. Aug 2020
  13. Jun 2020
    1. copy editing

      I'd like to strike a blow for line editing. From Peter Ginna's brilliant What Editors Do:

      A line edit dials down to the paragraph/sentence/word level. As we said, it’s usually a much more expensive job than a developmental edit. A line editor will go through the pages of your book with a fine-toothed comb, looking for dialogue that feels awkward, sentences that don’t quite work, repetition, and more. Obviously this happens when the bulk of the work in terms of plot, character, beginnings, middles, and ends is done. It’s not that a line edit can’t address the bigger picture. But in most publishing houses an editor simply won’t do a line edit until the bigger issues are addressed, so as not to have to do the same work twice. It’s smart to stick with that order in self-publishing too. Line edits may or may not come with an editorial letter. But be sure that the fee includes time for you to meet in person or talk on the phone once you’ve had a chance to digest the edits. Often the same person could do both a developmental edit and line edit, if that’s what you decide to pay for, but you will also need a copyeditor. Copyeditors are the grammarians, the fact-checkers, the formatting gurus, the identifiers of repetitive words and phrases. They are the ones who make a book as smooth as a fresh jar of Skippy. The one instance where you might not need a separate copyeditor is if you hire someone to do a line edit who does a copyedit simultaneously. Some people have both skills and can pull this off, though it’s rare.

  14. May 2020
    1. Eric Schmidt, former Google CEO and Chairman, famously said “Google’s policy on a lot of these things is to get right up to the creepy line, but not cross it.” But for most people, that line was crossed by Google, Facebook, and others long ago.
  15. Apr 2020
    1. I had never considered it that in nearly a decade of using GNU find! Thank you for that! It will definitely change the way I think about -prune from now on.
    2. I think this structure is much easier and correlates to the right approach
    3. it isn't actually -prune itself that causes this, by the way. The issue is that the or operator "short-circuits", and or has lower precedence than and. The end result is that if a file called .snapshot is encountered it will match the first -name, -prune will then do nothing (but return true), and then the or returns true since its left-argument was true. The action (eg: -print) is part of its second argument, so it never has a chance to execute.
    4. If all you want to do is print the results you might be used to leaving out the -print action. You generally don't want to do that when using -prune.
    5. which means that it'll also print out the name of the directory you're pruning, which usually isn't what you want. Instead it's better to explicitly specify the -print action if that's what you want
    6. The thing I'd found confusing about -prune is that it's an action (like -print), not a test (like -name). It alters the "to-do" list, but always returns true.
    1. Did you expect the temp directory to get printed? In the last example, we saw the directories ./temp and ./C/temp got printed, but not now. This is the effect of the -print option. By default, the find command prints all the files matching the criteria. However, once the -print option is specified, it will print files only on explicit print instructions. In this find command, -print is associated in the other side of the OR condition, and hence nothing will get printed from the 1st part of the condition.
    2. 12. Same using the wholename option and prune to exclude directory: $ find . -wholename "./temp" -prune -o -perm 644 -print ./area.pm ./C/temp ./C/f2.c find has a switch with the name 'wholename'. Say, in your directory tree, there might be more than one temp directory. The earlier approaches will prune all the temp dierctories. In case, if the requirement is to prune a specific temp directory, then you can give the path of the directory itself. Note: The path specified in the wholename option should be relative to the search path specified, not the absolute path. 
  16. Mar 2020
  17. Jan 2020
  18. Dec 2019
    1. GitHub Packages uses the native package tooling commands you're already familiar with to publish and install package versions.

      Looks like GitHub Packages acts as a wrapper to these clients, acting on your behalf so you don't have to use the CLI yourself.

    1. Using find and cpio is a more unix-y approach in that you let find do the file selection with all the power that it has, and let cpio do the archiving. It is worth learning this simple use of cpio, as you find it easy to solve problems you bang your ahead against when trying tar.
    2. find
  • Nov 2019
    1. From the man pages The environment variables can be specified in lower case or upper case. The lower case version has precedence. http_proxy is an exception as it is only available in lower case. Using an environment variable to set the proxy has the same effect as using the --proxy option
  • May 2019
    1. The RNA-seq data for all 64 cell lines expressing 89% (n=17544) of all protein-coding human genes are presented in the Cell Atlas and can be used as a tool for selection of suitable cell lines for an experiment involving a particular gene or pathway or for further studies on the transcriptome of established human cell lines.
  • Oct 2018
  • Jun 2018
  • Dec 2017
  • Nov 2017
    1. In Bash you quite often need to check to see if a variable has been set or has a value other than an empty string. This can be done using the -n or -z string comparison operators.

      Two most useful commands in bash

  • Jun 2017
  • May 2017
    1. Distant Early Warning Line (DEW Line)

      The Distant Early Warning (DEW) Line was a chain of 63 radio and communication centers that spread from Alaska to the Canadian Arctic to Greenland. The DEW line was an American defense project to protect them from Russian threat. The DEW line was the first joint American and Canadian defense project (Lajeunesse). Because the majority of the project was paid for and spearheaded by the United States, Canada feared losing sovereignty in the Arctic. The United States did not wish to control Canadian land, but would control military forces in that region. Canada feared American presence and demanded that any American military air force bases be located away from densely populated areas. The DEW Line was functional by 1957. The DEW line was primarily controlled by the American Air Force, as the Canadian Air Force personnel did not have proper training or manpower to serve the DEW line. The Canadian presence on the DEW line was largely ceremonial to display Canadian approval and control of their land. The Canadian government pushed for the DEW Line to become NATO territory to minimize American dominance of the region, but this hope was never realized. In order to regain control over their Arctic territory, Canada constructed its own radar line called the Mid-Canada Line. Constructing their own line allowed Canada to regain recognition as a powerful ally and partner to the United States.

      References: Lajeunesse, Adam. "The Distant Early Warning Line and the Canadian Battle for Public Perception." Canadian Military Journal. Accessed May 04, 2017. http://www.journal.forces.gc.ca/vo8/no2/lajeunes-eng.asp.

  • Nov 2015
    1. If you have a copy of the ReSpec repository handy, you may see that there is also a respec2html.js tool under tools/. Feel free to try using it instead of the above process, but please note that it is not used much currently and may behave in a somewhat experimental manner (experiences with it vary — but it's worth a shot if you're looking for a way to generate ReSpec output from the command line).

      Respec (sadly) doesn't quite have a command line tool...at least not one comparable to a browser's output.

      Maybe PhantomJS (which Respec uses for tests) would do a better job?

  • May 2015
    1. esta ficha, pero cualquier otra parte de la página mantiene una línea de baja interacción por parte del usuario: por ejemplo, al no poder subrayar alguna de las partes del texto, la funcionalidad de hypotesys queda reducida a referirse a algún concepto en particular. Claro, ha de pensarse que el cut and paste tiene contrapeso en propiedad intelectual solo qe también merma el potencial de hipervínculos para el aprovechamiento de la información de manera académica. Unas de cal .... En este caso quedan a debate las palabras referidas a "De esta manera los indígenas protegieron a la deidad de su destrucción"