31 Matching Annotations
  1. Last 7 days
    1. We've stated what's required multiple times now: #14540 (comment) #14540 (comment), and the follow up arguments weren't convincing. Follow Rafael's advice in new smaller PRs to advance this or it'll simply stay closed
  2. Aug 2020
    1. Altig, D., Baker, S. R., Barrero, J. M., Bloom, N., Bunn, P., Chen, S., Davis, S. J., Leather, J., Meyer, B. H., Mihaylov, E., Mizen, P., Parker, N. B., Renault, T., Smietanka, P., & Thwaites, G. (2020). Economic Uncertainty Before and During the COVID-19 Pandemic (Working Paper No. 27418; Working Paper Series). National Bureau of Economic Research. https://doi.org/10.3386/w27418

  3. Jul 2020
  4. Jun 2020
  5. May 2020
  6. Apr 2020
  7. Mar 2020
    1. However imagine we are creating a format string in a separate file, commonly because we would like to internationalize it and we rewrite it as: <?php$format = 'The %s contains %d monkeys';echo sprintf($format, $num, $location);?> We now have a problem. The order of the placeholders in the format string does not match the order of the arguments in the code. We would like to leave the code as is and simply indicate in the format string which arguments the placeholders refer to. We would write the format string like this instead: <?php$format = 'The %2$s contains %1$d monkeys';echo sprintf($format, $num, $location);?> An added benefit is that placeholders can be repeated without adding more arguments in the code.
    2. $format = 'There are %d monkeys in the %s';

      Compared to below:

      $format = 'The %s contains %d monkeys'
      
    1. Poedit and other tools can scan your .php files for references of __(), _e(), _n() and so on, and grab those strings for translation, which is awesome, because otherwise you’d have to manually add every single string. Now, when these tools come across _n() in our sources, they know it’s a plural thing, because of a special keyword setting which looks something like _n:1,2, meaning _n() takes at least two arguments, where the first argument is the singular, and the second argument is a the plural, so it grabs both strings. Let’s take a look at how Poedit and other tools will parse our function above: Hello there _n() on line 3! I’m supposed to grab two of your arguments because I have this smart keyword setting, but none of these arguments are strings, so I’ll just skip to the next match
  8. Feb 2020
    1. Collaboration is not consensus When collaborating it is always important to stay above radar and work transparently, but collaboration is not consensus. You don't need to ask people for their input, and they shouldn't ask you "Why didn't you ask me?" You don't have to wait for people to provide input, if you did ask them. We believe in permissionless innovation- you don't need to involve people but everyone can contribute. This is core to how we iterate, since we want smaller teams moving quickly rather than large teams achieving consensus slowly.
    1. Nix helps you make sure that package dependency specifications are complete. In general, when you’re making a package for a package management system like RPM, you have to specify for each package what its dependencies are, but there are no guarantees that this specification is complete. If you forget a dependency, then the component will build and work correctly on your machine if you have the dependency installed, but not on the end user's machine if it's not there.
  9. Jan 2020
    1. You might be thinking––"a tool that allows me to write semantic and reusable queries? Sounds like Active Record". It's absolutley true that Active Record already provides a powerful query tool kit. But what happens when even simple queries stretch the bounds of Active Record's capabilities?
    1. Such verbose. Much code. Very bloat. Wow. We've lost all the awesome association introspection that ActiveRecord would otherwise have given us.
  10. Dec 2019
    1. But it's not easy to open todo.txt, make a change, and save it—especially on your touchscreen device and at the command line. Todo.txt apps solve that problem.
    1. Sometimes cronjobs fail to run successfully because a required server (like a database or ftp server) is temporarily unavailable due to power failures, hardware failures, software failures, network outages, choice of operating system, pilot error, and the like. Typically, this results in someone being forced to examine crontabs and error reports, determine which cronjobs really need to be run, and then run them manually. This happened to me twice in one week. I don't want it to happen again. Cronjobs are meant to be automated and I want them to stay that way. This is the rationale for noexcuses.
    1. An ssh public key in a ~/.ssh/authorized_keys file can have a command="" option which forces a particular command to be executed when the key is used to authenticate an ssh connection. This is a security control that mitigates against private key compromise. This is great when you only need to execute a single command. But if you need to perform multiple tasks, you would normally need to create and install a separate key pair for each command, or just not bother making use of forced commands and allow the key to be used to execute any command.
    1. However, these benefits only accrue to outbound connections made from the local system to ssh servers elsewhere: once logged into a remote server, connecting from there to yet a third server requires either password access, or setting up the user's private key on the intermediate system to pass to the third. Having agent support on the local system is certainly an improvement, but many of us working remotely often must copy files from one remote system to another. Without installing and initializing an agent on the first remote system, the scp operation will require a password or passphrase every time. In a sense, this just pushes the tedium back one link down the ssh chain.
  11. Nov 2019
    1. You might want developers building projects with this CMS to be able to change the behaviour of some UIs, or to be able to provide new components that can be consumed by the CMS. Those components can't easily be included in the JS bundle for the CMS, as it would require recompiling the shipped code with outside references.
    1. However, again you would have to lift state up to the App component in order to pass the amount to the currency components. As you can see, the component composition on its own doesn't help us to solve the problem. That's the point where React's render props pattern comes into play which enhances React's component composition with an important ingredient: a render function.
  12. Oct 2019
  13. Nov 2016
    1. the forsythia bush

      Another thing in a certain place in the neighborhood where she lived. Now I think the poem's first 2 1/2 lines were purposely provocative. They keep you guessing, and make you keep reading.

    2. under the back porch

      Oh. I guess she's listing things and places in her life.

    3. I am from clothespins, from Clorox and carbon-tetrachloride.

      What? How can you be from clothespins?

    1. deeply symbolic choice, since salt was used by nearly everyone in India, to replace the salt lost by sweating in India's tropical climate. An item of daily use could resonate more with all classes of citizens than an abstract demand for greater political rights.[19] The salt tax represented 8.2% of the British Raj tax revenue, and hurt the poorest Indians the most significantly.

      Gandhi's reasons

    2. The Viceroy himself, Lord Irwin, did not take the threat of a salt protest seriously, writing to London, "At present the prospect of a salt campaign does not keep me awake at night."[18]

      The British was not disturbed at first

    3. Gandhi's choice of the salt tax was met with incredulity by the Working Committee of the Congress,[15] Jawaharlal Nehru and Dibyalochan Sahoo were ambivalent; Sardar Patel suggested a land revenue boycott instead.

      Gandhi pushed the salt march... But they first declined it

    4. At midnight on 31 December 1929, the Indian National Congress raised the tricolour flag of India on the banks of the Ravi at Lahore.

      Declaration of Sovereignty and self rule

  14. 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?