40 Matching Annotations
  1. Jul 2020
  2. Jun 2020
    1. What would be nice is if JavaScript had a built-in way to do what I can do in Ruby with:

      > I18n.interpolate('Hi, %{name}', name: 'Fred')
      => "Hi, Fred"
      

      But to be fair, I18n comes from i18n library, so JS could just as easily (and I'm sure does) have a library that does the same thing.

      Update: Actually, you can do this in plain Ruby (so why do we even need I18n.interpolate?):

      main > "Hi, %{name}" % {name: 'Fred'}
      => "Hi, Fred"
      
      main > ? String#%
      
      From: string.c (C Method):
      Owner: String
      Visibility: public
      Signature: %(arg1)
      Number of lines: 9
      
      Format---Uses str as a format specification, and returns the result
      of applying it to arg. If the format specification contains more than
      one substitution, then arg must be an Array or Hash
      containing the values to be substituted. See Kernel::sprintf for
      details of the format string.
      
         "%05d" % 123                              #=> "00123"
         "%-5s: %016x" % [ "ID", self.object_id ]  #=> "ID   : 00002b054ec93168"
         "foo = %{foo}" % { :foo => 'bar' }        #=> "foo = bar"
      

      I guess that built-in version is fine for simple cases. You only need to use I18n.translate if you need its more advanced features like I18n.config.missing_interpolation_argument_handler.

    1. With inline diff tags you can display {+ additions +} or [- deletions -].

      Can also use/abuse for general highlighting (background color) purposes. Too bad there's no first-class support for that, and that you can only highlight with green or red and not yellow, etc.

  3. May 2020
    1. I want my Page Translator extension to be made irrelevant by Firefox having built-in language translation, like Google Chrome and Microsoft Edge. It is a critical feature used by millions of people daily. It bridged a feature gap. Mozilla killing this add-on without replacing it hurts users.
  4. Apr 2020
  5. Feb 2020
  6. Jan 2020
    1. Some questions are only asked by people with a fundamental misunderstanding. The friends who walk into my office and ask, “have you read all of these” miss the point of books.
  7. Dec 2019
    1. Suggestion: add a link to rdoc documentation.

      I couldn't find a link, and even doing a web search for "responders rdoc" or "responders documentation" is pretty fruitless and pointless (partly due to responders being too generic of a name).

      I eventually just went to rdoc.info, searched for responders, and found: https://rdoc.info/github/plataformatec/responders

  8. Nov 2019
  9. Oct 2019
    1. This being the City of Ryde, political vendettas are never far from the surface.

      That would have to include the vendetta that prompted the call to The Hasbeen, resulting in your misguided story drawing on incomplete facts and coverage dating back to 2014.

      Mental note: This is the type of story that will be perfect for robot journalists when The Hasbeen boosts its editorial quality by replacing its newsroom with robots.

  10. Sep 2019
    1. It is also possible to use this annotator to annotate fields other than the NamedEntityTagAnnotation field by and providing the header

      Zrejme sa jedná o možnosť anotovať aj iné ako NER tagy, že to TokensRegex umožňuje. Nižšie mi chýba príklad presne na toto.

  11. Jan 2018
  12. Dec 2017
  13. Nov 2017
  14. Oct 2017
    1. For the moment I’ll put on my scientific thinking hat because there numerous ways that I can provide evidence for my claim the people believe all sorts of crazy things.

      Change "there" to "there are".

  15. Sep 2017
    1. Miss Amazing is a pageant for girls and young women with learning disabilities. In the 10 years since it began, 1,700 girls and young women with disabilities have taken part.Pageant Has Spread To More Than 30 States

      The author should explain why these girls need a special pageant though. How do their learning disabilities make it harder for them to succeed in a regular pageant?

    1. A third might leave the experience out of his story altogether, deeming it unimportant.

      Basically the author seems to be saying that the choices you make about how you view your past have as much of an effect on you as your actual past.

  16. Apr 2017
    1. Three of the victims were of Turkish origin,[38] two victims were from German Sinti families and one from a Kosovan Roma family.

      About 50 people of various ethnic backgrounds gathered at a Munich sports hall early Saturday to await official word on the fate of missing loved ones (Washington Post, 2016).

  17. Feb 2017
  18. Jul 2016
  19. Feb 2016
  20. Nov 2015
    1. Does the Espionage Act violate the First Amendment guarantee of free speech?

      I think that this is not the legal issue that is targeted in the book on this case? I concluded that it is more about whether this pamphlet and political expression is protected under the First Amendments rights of the Constitution for the defendant. Or whether obstruction of war time ideals and peace is a crime in a state of unrest?

  21. Apr 2014
    1. Reproducibility

      Reproducibility is mentioned in the title of this section, but it is not mentioned elsewhere in the document and I don't see it addressed in what's written in this section.