Edited, memorised or added to reading queue

on 23-Jan-2024 (Tue)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

Reusing Logic with Custom Hooks
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Reusing Logic with Custom Hooks – React
ight Not Need an Effect Lifecycle of Reactive Effects Separating Events from Effects Removing Effect Dependencies Reusing Logic with Custom Hooks Is this page useful? Learn React Escape Hatches <span>Reusing Logic with Custom Hooks React comes with several built-in Hooks like useState, useContext, and useEffect. Sometimes, you’ll wish that there was a Hook for some more specific purpose: for example, to fetch data




What are resources?
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on


Parent (intermediate) annotation

Open it
Resource Hooks Resources can be accessed by a component without having them as part of their state. For example, a component can read a message from a Promise or read styling information from a context. To read

Original toplevel document

Built-in React Hooks – React
ets you mark a state transition as non-blocking and allow other updates to interrupt it. useDeferredValue lets you defer updating a non-critical part of the UI and let other parts update first. <span>Resource Hooks Resources can be accessed by a component without having them as part of their state. For example, a component can read a message from a Promise or read styling information from a context. To read a value from a resource, use this Hook: use lets you read the value of a resource like a Promise or context. function MessageComponent({ messagePromise }) { const message = use(messagePromise); const theme = use(ThemeContext); // ... } Other Hooks These Hooks are mostly useful to library authors and aren’t commonly used in the application code. useDebugValue lets you customize the label React DevTools displays for you




What are some examples of where a context would make sense?
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on


Parent (intermediate) annotation

Open it
Context Hooks Context lets a component receive information from distant parents without passing it as props. For example, your app’s top-level component can pass the current UI theme to all components below,

Original toplevel document

Built-in React Hooks – React
iable that you can update directly. useReducer declares a state variable with the update logic inside a reducer function. function ImageGallery() { const [index, setIndex] = useState(0); // ... <span>Context Hooks Context lets a component receive information from distant parents without passing it as props. For example, your app’s top-level component can pass the current UI theme to all components below, no matter how deep. useContext reads and subscribes to a context. function Button() { const theme = useContext(ThemeContext); // ... Ref Hooks Refs let a component hold some information that isn’t used for rendering, like a DOM node or a timeout ID. Unlike with state, updating a ref does not re-render your component.




What company created PostGIS?

Refractions Research Inc

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




In what city is Refractions Research based?

Victoria, British Columbia

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




What organisation currently leads the PostGIS project?

OSGeo Foundation

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




What is FOSS4G?
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




What is OGC?
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




What is SQL/MM?
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




advanced topological constructs (coverages, surfaces, networks)

What are coverages, surfaces, and networks?

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




The PostGIS Project Steering Committee (PSC) coordinates the general direction, release cycles, documentation, and outreach efforts for the PostGIS project. In addition the PSC provides general user support, accepts and approves patches from the general PostGIS community and votes on miscellaneous issues involving PostGIS such as developer commit access, new PSC members or significant API changes.

What does PSC stand for?

Project Steering Committee

What group id responsible for coordinating development of PostGIS?

What are the responsibilities of the PSC?

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Raúl Marín Rodríguez MVT support, Bug fixing, Performance and stability improvements, GitHub curation, alignment of PostGIS with PostgreSQL releases Regina Obe Buildbot Maintenance, Windows production and experimental builds, documentation, alignment of PostGIS with PostgreSQL releases, X3D support, TIGER geocoder support, management functions. Darafei Praliaskouski Index improvements, bug fixing and geometry/geography function improvements, SFCGAL, raster, GitHub curation, and bot maintenance. Paul Ramsey (Chair) Co-founder of PostGIS project. General bug fixing, geography support, geography and geometry index support (2D, 3D, nD index and anything spatial index), underlying geometry internal structures, GEOS functionality inte- gration and alignment with GEOS releases, alignment of PostGIS with PostgreSQL releases, loader/dumper, and Shapefile GUI loader. Sandro Santilli Bug fixes and maintenance, buildbot maintenance, git mirror management, management functions, integration of new GEOS functionality and alignment with GEOS releases, topology support, and raster framework and low level API functions
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Use nix-shell with the -p ( --packages ) option to specify that we need the cowsay and lolcat packages. The first invocation of nix-shell may take a while to download all dependencies.

 $ nix-shell -p cowsay lolcat these 3 derivations will be built: /nix/store/zx1j8gchgwzfjn7sr4r8yxb7a0afkjdg-builder.pl.drv /nix/store/h9sbaa2k8ivnihw2czhl5b58k0f7fsfh-lolcat-100.0.1.drv ... [nix-shell:~]$ 
Copy to clipboard

Within the Nix shell, you can use the programs provided by these packages:

 [nix-shell:~]$ cowsay Hello, Nix! | lolcat
Copy to clipboard

Type exit or press CTRL-D to exit the shell, and the programs won’t be available anymore.

 [nix-shell:~]$ exit exit $ cowsay no more The program ‘cowsay’ is currently not installed. $ echo all gone | lolcat The program ‘lolcat’ is currently not installed. 
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Ad hoc shell environments — nix.dev documentation
have installed on your machine: $ cowsay no can do The program ‘cowsay’ is currently not installed. $ echo no chance | lolcat The program ‘lolcat’ is currently not installed. Copy to clipboard <span>Use nix-shell with the -p (--packages) option to specify that we need the cowsay and lolcat packages. The first invocation of nix-shell may take a while to download all dependencies. $ nix-shell -p cowsay lolcat these 3 derivations will be built: /nix/store/zx1j8gchgwzfjn7sr4r8yxb7a0afkjdg-builder.pl.drv /nix/store/h9sbaa2k8ivnihw2czhl5b58k0f7fsfh-lolcat-100.0.1.drv ... [nix-shell:~]$ Copy to clipboard Within the Nix shell, you can use the programs provided by these packages: [nix-shell:~]$ cowsay Hello, Nix! | lolcat Copy to clipboard Type exit or press CTRL-D to exit the shell, and the programs won’t be available anymore. [nix-shell:~]$ exit exit $ cowsay no more The program ‘cowsay’ is currently not installed. $ echo all gone | lolcat The program ‘lolcat’ is currently not installed. Copy to clipboard Search for packages# What can you put in a shell environment? If you can think of it, there’s probably a Nix package of it. Enter the program name you want to run in s




If you need an additional program temporarily, you can run a nested Nix shell. The programs provided by the specified packages will be added to the current environment.

 [nix-shell:~]$ nix-shell -p python3 this path will be fetched (11.42 MiB download, 62.64 MiB unpacked): /nix/store/pwy30a7siqrkki9r7xd1lksyv9fg4l1r-python3-3.10.11 copying path '/nix/store/pwy30a7siqrkki9r7xd1lksyv9fg4l1r-python3-3.10.11' from 'https://cache.nixos.org'... [nix-shell:~]$ python --version Python 3.10.11 
Copy to clipboard

Exit the shell as usual to return to the previous environment.

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Ad hoc shell environments — nix.dev documentation
on | head -1 NVIM v0.8.1 [nix-shell:~]$ which npm /nix/store/q12w83z0i5pi1y0m6am7qmw1r73228sh-nodejs-18.12.1/bin/npm [nix-shell:~]$ npm --version 8.19.2 Copy to clipboard Nested shell sessions# <span>If you need an additional program temporarily, you can run a nested Nix shell. The programs provided by the specified packages will be added to the current environment. [nix-shell:~]$ nix-shell -p python3 this path will be fetched (11.42 MiB download, 62.64 MiB unpacked): /nix/store/pwy30a7siqrkki9r7xd1lksyv9fg4l1r-python3-3.10.11 copying path '/nix/store/pwy30a7siqrkki9r7xd1lksyv9fg4l1r-python3-3.10.11' from 'https://cache.nixos.org'... [nix-shell:~]$ python --version Python 3.10.11 Copy to clipboard Exit the shell as usual to return to the previous environment. Towards reproducibility# These shell environments are very convenient, but the examples so far are not reproducible yet. Running these commands on another machine may fetch different ve




Unlike regular triggers, which are attached to a single table and capture only DML events, event triggers are global to a particular database and are capable of capturing DDL events.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




event triggers can be written in any procedural language that includes event trigger support, or in C, but not in plain SQL
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Currently, the only supported events are ddl_command_start, ddl_command_end, table_rewrite and sql_drop
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs