24 Matching Annotations
  1. Jun 2021
    1. Be aware, for general usage, that this is screen column, not real column. This means that <Tab> characters will get different results. If these characters will be there, you will instead want |30lh or |29l or 029l or something like that.
    2. @DavidPope: note that in this case "screen columns" means that it's still relative to the start of the line. g0 achieves "start of current screen line".
    1. As of 4 September 2020[update], 98 out of 193 (51%) United Nations (UN) member states, 22 out of 27 (81%) European Union (EU) member states, 26 out of 30 (87%) NATO member states, and 31 out of 57 (54%) Organisation of Islamic Cooperation (OIC) member states have recognised Kosovo. The government of Serbia does not recognise it as a sovereign state.
  2. Mar 2021
    1. Here's the four case: foo.js Load/Require dependencies Concatenate dependencies foo.js.map Load foo.js Currently grabs metadata[:map] from asset to build an asset, need to move that generation somewhere else to accomplish de-coupling map generation foo.debug.js Load foo.js Load foo.js.map Add comment to end of foo.js with path to foo.js.map foo.source.js The raw file on disk, the map file will need to point to source files.
  3. Feb 2021
    1. Also, this code will fail if $$ is not the process group leader, such as when the script is run under strace. Since a call to setsid(2) is probably tricky from a shell script, one approach might be to ps and obtain the process group ID from that.
    2. you really need #!/bin/sh -m for correct behavior of nested subshells. fg, bg, and wait wont work correctly otherwise
    1. The rsync and sleep commands (the sleep is just an example) are run through exec to prevent the creation of zombie processes if I kill the parent script while they're running, and each potentially-long-running command is wrapped in its own subshell so that when exec finishes, it won't terminate the whole script.
    1. The parentheses always start a subshell. What's happening is that bash detects that sleep 5 is the last command executed by that subshell, so it calls exec instead of fork+exec. The sleep command replaces the subshell in the same process.
  4. Dec 2020
  5. Nov 2020
    1. Gas engines are so complicated/intricate/messy. I wish we could just use electric motors for everything. Clean, simple, and maintenance-free.

  6. Oct 2020
  7. developer.mozilla.org developer.mozilla.org
    1. When there are many nested elements, each with its own handler(s), event processing can become very complicated—especially where a parent element receives the very same event as its child elements because "spatially" they overlap so the event technically occurs in both, and the processing order of such events depends on the Event bubbling and capture settings of each handler triggered.

      They even admit that it is complicated

  8. Aug 2020
    1. The United Kingdom of Great Britain and Northern Ireland (UK), since 1922 comprises four countries: England, Scotland, and Wales (which collectively make up Great Britain) and Northern Ireland[1][2] (which is variously described as a country, province, or region).

      A country that contains 4 countries. It's almost a paradox. It never ceases to amuse me.

  9. Jul 2020
  10. May 2020
    1. The UK voted to leave the European Union in a referendum on 23 June 2016 (and ceased to be a member state on 31 January 2020). This withdrawal from the EU makes the Republic of Ireland–United Kingdom border on the island of Ireland an external border of the European Union.[36] However, the Irish and UK governments and the President of the European Council have stated that they do not wish for a hard border in Ireland, taking into account the historical and social "sensitivities" that permeate the island.[37] In September 2016 the British Secretary of State for Exiting the European Union, David Davis, stated that the UK government would not seek a return to a "hard border" between the UK and Republic of Ireland
    1. Jersey is not part of the United Kingdom,[15] and has an international identity separate from that of the UK,[16] but the UK is constitutionally responsible for the defence of Jersey.[17] The definition of United Kingdom in the British Nationality Act 1981 is interpreted as including the UK and the Islands together.[18]The European Commission confirmed in a written reply to the European Parliament in 2003[19] that Jersey was within the Union as a European Territory for whose external relationships the UK is responsible. Jersey was not fully part of the European Union but had a special relationship with it, notably being treated as within the European Community for the purposes of free trade in goods.
  11. Apr 2020
    1. On October 18, 1948, the flag of the Arab Revlot was adopted by the Palestinian government and the Arab League. The current version, with it’s altered stripe order, was adopted in 1964 by the Palestine Liberation Organization under Yassir Arafat and then in 1988, as the official flag of the State of Palestine (unless you don’t recognize Palestine, that is).