222 Matching Annotations
  1. Last 7 days
    1. files with characters after the last newline are not text files, and those characters don't constitute a line. In many cases those bogus characters are better left ignored or removed, though there are cases where you may want to treat it as a extra line, so it's good you show how.
    1. The key differences between #inject and #scan_left are: Incremental results: #scan_left returns a series of results after processing each element of the input series. #inject returns a single value, which equals the final result in the series returned by #scan_left. Laziness: #scan_left can preserve the laziness of the input series. As each incremental result is read from the output series, the actual calculation is lazily performed against the input. #inject cannot be a lazy operation in general, as its single result reflects a calculation across every element of the input series.
  2. Aug 2023
  3. Jul 2023
    1. "Data models for different systems are arbitrarily different. The result of this is that complex interfaces are required between systems that share data. These interfaces can account for between 25-70% of the cost of current systems".
    1. But in almost all English sentences containing »there is«, these words do not mean »in this place is« but »it exists«. But the German words »da ist« do not have the meaning »it exists«. They only mean »in this place is«.
  4. Jun 2023
    1. If we hand most, if not all responsibility for that exploration to the relatively small number of people who talk at conferences, or have popular blogs, or who tweet a lot, or who maintain these very popular projects and frameworks, then that’s only a very limited perspective compared to the enormous size of the Ruby community.
  5. Mar 2023
    1. discussions about SMS-2FA get heated very quickly. I've found that SMS-2FA deployment or advocacy has been a major professional project for some people, and they take questioning it's efficacy personally
  6. Feb 2023
    1. Is Muni, is the Sage, the true Recluse! He who to none and nowhere overbound By ties of flesh, takes evil things and good Neither desponding nor exulting, such Bears wisdom’s plainest mark!

      In this excerpt, Krishna is explaining yoga and mindfulness to Arjuna. He describes how the saint, or "Muni", stays awake when the world is asleep, and does not take interest in what the world lives for. "Muni" translates to "the silent one"; someone who can "control and silence their illogical thoughts". (Prasad). By practicing silence, munis are able to reach a higher level of consciousness and more spiritual holiness is achieved.

  7. Nov 2022
    1. I have rolled back your edit to Jukka K. Korpela's answer. Please include that information in this answer and/or add a comment to the other answer.
    2. Why not just include the information there and delete this answer?
  8. Oct 2022
    1. This distinguishes this grammar from other programming languages or domain-specific languages.
  9. Sep 2022
  10. Jul 2022
  11. Apr 2022
    1. Generates the following sql in sqlite3: "SELECT \"patients\".* FROM \"patients\" INNER JOIN \"users\" ON \"users\".\"id\" = \"patients\".\"user_id\" WHERE (\"users\".\"name\" LIKE '%query%')" And the following sql in postgres (notice the ILIKE): "SELECT \"patients\".* FROM \"patients\" INNER JOIN \"users\" ON \"users\".\"id\" = \"patients\".\"user_id\" WHERE (\"users\".\"name\" ILIKE '%query%')" This allows you to join with simplicity, but still get the abstraction of the ARel matcher to your RDBMS.
  12. Mar 2022
    1. Results showed that men prefer working with things and women prefer working with people, producing a large effect size (d = 0.93) on the Things-People dimension.
  13. Jan 2022
  14. Dec 2021
  15. Nov 2021
    1. Type aliases and interfaces are very similar, and in many cases you can choose between them freely. Almost all features of an interface are available in type, the key distinction is that a type cannot be re-opened to add new properties vs an interface which is always extendable.
  16. Sep 2021
    1. Mac: "3-bar" menu button (or Firefox menu) > Preferences Windows: "3-bar" menu button (or Tools menu) > Options Linux: "3-bar" menu button (or Edit menu) > Preferences
    1. She looked at me, noticing my bare feet. (I still felt strange wearing shoes indoors, and always removed them before entering my room.) "Are you new to Boston?

      In America it’s normal to wear shoes in house, but not really in the east side of the world

    2. I read every article and advertisement, so that I would grow familiar with things,

      reflects the work that emigration or a new country or an unknown culture requires

    3. . "God bless America!" one of them hollered. Across the aisle, I saw a woman praying. I spent my first night a

      new national customs, integration

    1. Which do you prefer? If the answer was "the first" then read no further. You have all you need, go forth and be happy.

      good example of: not just assuming people are dissatisfied / will want to change

    1. Saying that web devs used to be fine with relative imports is like saying that human beings used to be fine living without refrigerators. Sure we did. But was it better than it is now? No. No, it wasn't.
    2. Aliases are absolute nonsense for resolving imports. If you don't want to type ../ consider using something like path.resolve(__dirname, '../src') so you can do import Stuff from 'client/components/stuff'; // relative to root of project instead of: import Stuff from 'COMPONENTS/stuff'; // this is dumb
    1. Yeah I don’t think we will find something that works for everyone in all cases. But Webpacker is quite flexible with the setup it has now. Easy to change!
    2. I feel like app/packs (or something like it) is a good name because it communicates to developers that it's not just JavaScript that can be bundled, it's also CSS, images, SVGs — you name it. I realize what can be bundled is wholly dependent on the bundler you use, but even esbuild supports bundling CSS. So couldn't this possibly be confusing?
    1. Some would argue that the phrase ''survival of the fittest'' is tautological, in that the fittest are defined as those that survive to reproduce.
  17. Jul 2021
    1. correlated with disease progression

      Indeed this distinction between the immune systems of males and females is to be considered when developing vaccines against SARS-Co-V2. (DOI: 10.1021/acs.molpharmaceut.1c00291)

  18. Jun 2021
    1. Different ways to prepend a line: (echo 'line to prepend';cat file)|sponge file sed -i '1iline to prepend' file # GNU sed -i '' $'1i\\\nline to prepend\n' file # BSD printf %s\\n 0a 'line to prepend' . w|ed -s file perl -pi -e 'print"line to prepend\n"if$.==1' file
    1. To avoid the problems with different versions of echo you may want to use printf instead. In contrast to echo printf always interprets \ sequences but doesn't automatically add a linefeed at the end so you have to append \n at the end if you want one.
    1. According to official Actioncable guide, Actioncable creates multiple redis pubsub channels.
    2. Yes, AnyCable uses only a single Redis pub/sub channel. Unlike Action Cable, anycable-go manages the actual subscriptions by itself (see hub.go), we only need a single channel to get broadcasts from web apps to a WS server, which performs the actual retransmission. Check out https://docs.anycable.io/#/v1/misc/how_to_anycable_server
    1. Time returned from a database can differ in precision from time objects in Ruby, so we need flexible tolerances when comparing in specs. We can use be_like_time to compare that times are within one second of each other.
    1. 語 is the suffix which means 'language'. Unlike English which needs two different nouns for a country and its language, in Japanese, you can simply add 語 after the name of a country to mean the language spoken in that country. (e.g. ドイツ = Germany, ドイツ語 = German, フランス = France, フランス語 = French)
  19. May 2021
    1. women

      Vahidy et al: Men are more likely to test positive, have complications, require ICU admission and mechanical ventilation and have higher mortality than females, independent of age.

      Peckham et al: Meta-analysis of 3,111,714 reported global cases - males are 3x more likely to require ICU admission and have higher odds of death.


      Vahidy FS, Pan AP, Ahnstedt H, Munshi Y, Choi HA, et al. (2021) Sex differences in susceptibility, severity, and outcomes of coronavirus disease 2019: Cross-sectional analysis from a diverse US metropolitan area. PLOS ONE 16(1): e0245556. https://doi.org/10.1371/journal.pone.0245556

      Peckham, H., de Gruijter, N.M., Raine, C. et al. Male sex identified by global COVID-19 meta-analysis as a risk factor for death and ITU admission. Nat Commun 11, 6317 (2020). https://doi.org/10.1038/s41467-020-19

    1. Email tools/clients are inconsistent in how they render HTML and CSS. A designed email might look great in Gmail, broken in Outlook, and unreadable in Apple Mail. Half of all emails are opened on mobile devices (according to one study). Email looks good in different clients? Great, now make it work on a 4" screen just as well as on a desktop.
  20. 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.
    1. Games that aren't really like rogue, but tagged roguelike. Lite on rogue elements, they should be tagged as roguelite or genre_roguelike instead. For more info, check out: http://en.wikipedia.org/wiki/Roguelike
    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. Because it's totally and completely different? The games have nothing in common except that they both use square cardboard tiles with terrain on them.I agree, but I would go further and claim that they don't even have square tiles in common!
    2. Because it's totally and completely different? The games have nothing in common except that they both use square cardboard tiles with terrain on them.
    1. Once established, however, it spreads slowly. Unlike aggressive Kentucky bluegrass, which spreads by underground stems called rhizomes, perennial ryegrass is a bunch-forming grass. Like tall fescue, it naturally grows in clumps and spreads through vertical shoots known as tillers, rather than spreading by rhizomes or horizontal above-ground stems, known as stolons.
  21. Mar 2021
  22. Feb 2021
  23. Jan 2021
    1. In contrast to the Chinese civil service examinations, tests in ancient Greek societ-ies were not written but were typically oral or performance based. Examinations were conducted for the purpose of determining whether men (and of course then it was only men) were qualified for various aspects of Greek life and citizenship; examinations were not, as far as we know, used to select citizens for government positions.

    Tags

    Annotators

    1. Slogans can therefore be longer than taglines
    2. Taglines are more often next to the company's logo on official advertisements, and are dedicated more specifically to brand awareness than slogans. Slogans carry a brand's values and promises as the company grows and evolves, and can be promoted under an overarching company tagline.
    1. The only difference is that in this case “auto” will not work, but instead “height: 100%” is required.
    1. It’s true that the auto value would do the same, but auto isn’t quite as robust since it’s size is based on the content inside.
    1. A bind mount is basically where you mount a given directory on top of an existing one. Suppose you have a RAID array where you have a partition mounted at /home2, containing some larger user accounts. If you wanted to remount /home2/user to /home/user (to sidestep issue #1), without the issues that come along with symlinks (it is not a directory, just a token that points to it), you'd do something like mount --bind /home2/bob /home/bob and the directory will then be traversable from both locations. The target folder must exist, same as any mount point. The end result is somewhat similar to a symlink, but instead of creating a special filesystem object, it utilizes the operating system's filesystem mounting machinery to do it, which makes it more transparent to running software. Tools like 'du' and 'find' will still be aware that they are cross filesystem boundaries, and will also behave as such if the bind mount is entirely within a given filesystem. Finally, as they're transient by nature (unlike symlinks), they need to be placed in fstab or some startup script to make them persistent.
    1. Open About Popover

      I have to say, I like how it looks in their Apple and Desktop preview better than the Android/Material preview. I wish they had the arrow in Android Material too.

      But on https://sveltematerialui.com/demo/menu-surface it doesn't bother me quite as much...

    1. In my opinion, it can sometimes look odd. Very interestingly, this is by design and is part of the Material design specification. This article isn’t to argue whether it should be this way or not, though; it’s just to change yours such that your MenuItem(s) show below the menu selection, like so:
    1. By default, menus open with an entrance animation. However, on desktop, menus can skip the animation and open instantly instead.

      Why only on desktop? That delay drives me crazy. I would like to skip on web/mobile too.

    1. A notable difference between OS dialogs and Material dialogs is that OS dialogs save the work when a user dismisses a dialog but Material dialogs don’t.
    2. The difference is that a UWP pop-up dialog requires explicit action from the user as to a flyout is more peripheral and easy-to-dismiss.
  24. Dec 2020
    1. React abstracts the DOM with functionally pure declarative rendering and provides escape hatches back to mutable imperative DOM land. This is a profound philosophical difference that Rich gave a talk about.
  25. Nov 2020
    1. The delete operator does not directly free memory, and it differs from simply assigning the value of null or undefined to a property, in that the property itself is removed from the object.
    1. The same emoji will not look the same across every device. Each operating system has its own design language. For example, take a look at how the smiley face renders across various platforms:<img src="https://www.smartrmail.com/blog/wp-content/uploads/2020/03/image15.png" alt="smiley face across different mobile devices" class="wp-image-5429"/>The differences are subtle, but for some emojis the differences are much more pronounced. The t-shirt for instance completely changes color.<img src="https://www.smartrmail.com/blog/wp-content/uploads/2020/03/image6.png" alt="how t-shirt renders across different mobile devices" class="wp-image-5430"/>So one subject line you definitely don’t want to send your email with is “Flash Sale on Blue T-Shirts ”
    1. Content is what is passed as children usually to be projected at some <ng-content> element of a component. View is the template of the current component. The view is initialized after the content and ngAfterViewInit() is therefore called after ngAfterContentInit().
    1. This is Sass based, and therefore doesn't require Svelte components

      Just because we could make Svelte wrapper components for each Material typography [thing], doesn't mean we should.

      Compare:

      • material-ui [react] did make wrapper components for typography.

        • But why did they? Is there a technical reason why they couldn't just do what svelte-material-ui did (as in, something technical that Svelte empowers/allows?), or did they just not consider it?
      • svelte-material-ui did not.

        • And they were probably wise to not do so. Just reuse the existing work from the Material team so that there's less work for you to keep in sync and less chance of divergence.
    1. If you would like a process management tool with a lot of features, including tmux support, restarting and killing individual processes and advanced configuration, you should take a look at Hivemind's big brother — Overmind!
    1. If a lot of those features seem like overkill for you, especially the tmux integration, you should take a look at Overmind's little sister — Hivemind!