profile
viewpoint
TMTron tmtron Graz, Austria Software enthusiast who likes to implement elegant and stable software in high-level languages

tmtron/docker-android 2

android installation in a docker file

tmtron/enum-mapper 2

Get a compile time error when you forget to handle an enum constant (and do reverse enum-lookup)

tmtron/Conductor 1

A small, yet full-featured framework that allows building View-based Android applications

tmtron/DevMisc 1

Miscellaneous development stuff (scripts, etc.)

tmtron/accesscontrol 0

Role and Attribute based Access Control for Node.js

tmtron/android-architecture 0

MVI architecture Implementation of the ToDo app.

tmtron/android-architecture-components 0

Samples for Android Architecture Components.

tmtron/Android-CleanArchitecture 0

This is a sample app that is part of a series of blog posts I have written about how to architect an android application using Uncle Bob's clean architecture approach.

tmtron/android-mvp-architecture 0

This repository contains a detailed sample app that implements MVP architecture using Dagger2, GreenDao, RxJava2, FastAndroidNetworking and PlaceholderView

tmtron/android-oss 0

Kickstarter for Android. Bring new ideas to life, anywhere.

PR opened sindresorhus/awesome-nodejs

Update readme.md

Added article for NodeJS Server using Core HTTP Module

By submitting this pull request, I promise I have read the contribution guidelines twice and ensured my submission follows it. I realize not doing so wastes the maintainers' time that they could have spent making the world better. 🖖

⬆⬆⬆⬆⬆⬆⬆⬆⬆⬆

+1 -0

0 comment

1 changed file

pr created time in 21 hours

issue commenttimescale/timescaledb-docker

Compatibility with Dokku postgres plugin

Out of curiosity, from where to where do you need to copy this. Ie what is the path?

AxelTheGerman

comment created time in a day

PR opened quilljs/awesome-quill

Add Simplest File Renamer

Simplest File Renamer shows a "diff" between the original file name(s) and the new (renamed) file name(s) by using Quill 🚀

The application has an MIT License - I hope it helps others experimenting with Angular & Quill 😊

+2 -1

0 comment

1 changed file

pr created time in 4 days

issue commenttimescale/timescaledb-docker

`timescaledb:latest-pg9.6` complaining "sorry, too many clients already"

@RobAtticus is there a way to set the max_connections through env variables?

brettlyman

comment created time in 7 days

issue commenttimescale/timescaledb-docker

TIMESCALEDB_TELEMETRY=off causes failed statement in install_timescaledb.sh

The closest function I could find is alter_job_schedule https://docs.timescale.com/latest/api#alter_job_schedule

Still, it mentions the timescaledb_information.policy_stats, but scooping that view I could not find any jobs? Can this statement be removed altogether?

phrfpeixoto

comment created time in 8 days

issue openedtimescale/timescaledb-docker

TIMESCALEDB_TELEMETRY=off causes failed statement in install_timescaledb.sh

Hi,

I'm building a custom docker image based on timescale, and I noticed that whenever I disable Telemetry on version 1.7.4, I get a failed statement regarding altering a policy job:

The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... sh: locale: not found
2020-11-25 00:37:37.767 UTC [29] WARNING:  no usable system locales were found
ok
syncing data to disk ... ok

initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    pg_ctl -D /var/lib/postgresql/data -l logfile start

waiting for server to start....2020-11-25 00:37:38.318 GMT [34] LOG:  starting PostgreSQL 12.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.3.0) 9.3.0, 64-bit
2020-11-25 00:37:38.319 GMT [34] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-11-25 00:37:38.331 GMT [35] LOG:  database system was shut down at 2020-11-25 00:37:38 GMT
2020-11-25 00:37:38.334 GMT [34] LOG:  database system is ready to accept connections
2020-11-25 00:37:38.335 GMT [41] LOG:  TimescaleDB background worker launcher connected to shared catalogs
 done
server started

/usr/local/bin/docker-entrypoint.sh: sourcing /docker-entrypoint-initdb.d/000_install_timescaledb.sh
2020-11-25 00:37:38.580 GMT [48] WARNING:
	WELCOME TO
	 _____ _                               _     ____________
	|_   _(_)                             | |    |  _  \ ___ \
	  | |  _ _ __ ___   ___  ___  ___ __ _| | ___| | | | |_/ /
	  | | | |  _ ` _ \ / _ \/ __|/ __/ _` | |/ _ \ | | | ___ \
	  | | | | | | | | |  __/\__ \ (_| (_| | |  __/ |/ /| |_/ /
	  |_| |_|_| |_| |_|\___||___/\___\__,_|_|\___|___/ \____/
	               Running version 1.7.4
	For more information on TimescaleDB, please visit the following links:

	 1. Getting started: https://docs.timescale.com/getting-started
	 2. API reference documentation: https://docs.timescale.com/api
	 3. How TimescaleDB is designed: https://docs.timescale.com/introduction/architecture

	Note: TimescaleDB collects anonymous reports to better understand and assist our users.
	For more information and how to disable, please see our docs https://docs.timescaledb.com/using-timescaledb/telemetry.

2020-11-25 00:37:38.580 GMT [48] CONTEXT:  PL/pgSQL function inline_code_block line 23 at RAISE
psql:/tmp/tmp.anHHjD:1: WARNING:
WELCOME TO
 _____ _                               _     ____________
|_   _(_)                             | |    |  _  \ ___ \
  | |  _ _ __ ___   ___  ___  ___ __ _| | ___| | | | |_/ /
  | | | |  _ ` _ \ / _ \/ __|/ __/ _` | |/ _ \ | | | ___ \
  | | | | | | | | |  __/\__ \ (_| (_| | |  __/ |/ /| |_/ /
  |_| |_|_| |_| |_|\___||___/\___\__,_|_|\___|___/ \____/
               Running version 1.7.4
For more information on TimescaleDB, please visit the following links:

 1. Getting started: https://docs.timescale.com/getting-started
 2. API reference documentation: https://docs.timescale.com/api
 3. How TimescaleDB is designed: https://docs.timescale.com/introduction/architecture

Note: TimescaleDB collects anonymous reports to better understand and assist our users.
For more information and how to disable, please see our docs https://docs.timescaledb.com/using-timescaledb/telemetry.

CREATE EXTENSION
2020-11-25 00:37:38.583 GMT [48] ERROR:  function alter_job(integer, scheduled => boolean) does not exist at character 8
2020-11-25 00:37:38.583 GMT [48] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
2020-11-25 00:37:38.583 GMT [48] STATEMENT:  SELECT alter_job(1,scheduled:=false);
psql:/tmp/tmp.anHHjD:2: ERROR:  function alter_job(integer, scheduled => boolean) does not exist
LINE 1: SELECT alter_job(1,scheduled:=false);
               ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

...REDACTED...

The issue is caused by statement on this code block: https://github.com/timescale/timescaledb-docker/blob/cb8fb2f289d5dfea706981996f8f90fded522fba/docker-entrypoint-initdb.d/000_install_timescaledb.sh#L28-L37

It seems the function alter_job is only present on the 2.0 branch, not on 1.7.x **Also: I'm still seeing Telemetry messages throughout the log.

How to completely disable it?**

created time in 8 days

PR opened typebytes/angular-checklist

chore(deps): bump highlight.js from 9.13.1 to 10.1.2

Bumps highlight.js from 9.13.1 to 10.1.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/highlightjs/highlight.js/releases">highlight.js's releases</a>.</em></p> <blockquote> <h2>10.1.2</h2> <p>Fixes:</p> <ul> <li>fix(night) Prevent object prototype values from being returned by <code>getLanguage</code> (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2636">#2636</a>) <a href="https://github.com/night">night</a></li> </ul> <h2>10.1.1</h2> <p>Fixes:</p> <ul> <li>Resolve issue on Node 6 due to dangling comma (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2608">#2608</a>) [Edwin Hoogerbeets][]</li> <li>Resolve <code>index.d.ts is not a module</code> error (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2603">#2603</a>) [Josh Goebel][]</li> </ul> <h2>10.1.0</h2> <p>Just your typical minor release. Plenty of fixes and enhancements, few new themes.</p> <p>Some deprecations language maintainers might want to pay attention to:</p> <ul> <li><code>htmlbars</code> grammar is now deprecated. Use <code>handlebars</code> instead. (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2344">#2344</a>) [Nils Knappmeier][]</li> <li>when using <code>highlightBlock</code> <code>result.re</code> deprecated. Use <code>result.relevance</code> instead. (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2552">#2552</a>) [Josh Goebel][]</li> <li>ditto for <code>result.second_best.re</code> => <code>result.second_best.relevance</code> (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2552">#2552</a>)</li> <li><code>lexemes</code> is now deprecated in favor of <code>keywords.$pattern</code> key (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2519">#2519</a>) [Josh Goebel][]</li> <li><code>endSameAsBegin</code> is now deprecated. (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2261">#2261</a>) [Josh Goebel][]</li> </ul> <h2>10.0.2</h2> <p>Fixes a serious potential freeze/infinite loop issue. Everyone on version 10 should upgrade.</p> <ul> <li>Remove support for AMD module loading, which never truly worked properly anyways.</li> </ul> <h2>10.0.1</h2> <p>Fixes: sublanguage with no rule matches causes text to disappear in final output. (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2506">#2506</a>).</p> <h2>10.0.0</h2> <p>Welcome to version 10.0. This a major release and therefore will contain breaking changes.</p> <h2>Breaking Changes</h2> <p>Our normal minor releases try to never break anything, holding all breaking changes for major releases. We tried to squeeze in as many as we could this time so that after 10.0 ships we'll be back to quiet sailing for a while before we need to push version 11. That said, we're very conservative about what we consider a breaking change.</p> <p><em>i.e., if there it could possibly break things for anyone, it's typically a breaking change.</em> The fact is a vast majority of users should upgrade and probably not notice any changes at all.</p> <p>See <a href="https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_BREAKING_CHANGES.md">VERSION_10_BREAKING_CHANGES.md</a> for a comprehensive list of breaking changes, but here is a summary... if you use:</p> <h3>Core highlight.js lib on the client (with no extra CDN languages)</h3> <p>Just keep doing that.</p> <ul> <li>If you're using <code>darkula.css</code>, you'll need to change that to <code>darcula.css</code></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/highlightjs/highlight.js/blob/10.1.2/CHANGES.md">highlight.js's changelog</a>.</em></p> <blockquote> <h2>Version 10.1.2</h2> <p>Fixes:</p> <ul> <li>fix(night) Prevent object prototype values from being returned by <code>getLanguage</code> (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2636">#2636</a>) <a href="https://github.com/night">night</a></li> </ul> <h2>Version 10.1.1</h2> <p>Fixes:</p> <ul> <li>Resolve issue on Node 6 due to dangling comma (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2608">#2608</a>) <a href="https://github.com/ehoogerbeets">Edwin Hoogerbeets</a></li> <li>Resolve <code>index.d.ts is not a module</code> error (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2603">#2603</a>) <a href="https://github.com/yyyc514">Josh Goebel</a></li> </ul> <h2>Version 10.1.0</h2> <p>New themes:</p> <ul> <li><em>NNFX</em> and <em>NNFX-dark</em> by [Jim Mason][]</li> <li><em>lioshi</em> by [lioshi][]</li> </ul> <p>Parser Engine:</p> <ul> <li>(parser) Now escapes quotes in text content when escaping HTML (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2564">#2564</a>) <a href="https://github.com/yyyc514">Josh Goebel</a></li> <li>(parser) Adds <code>keywords.$pattern</code> key to grammar definitions (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2519">#2519</a>) <a href="https://github.com/yyyc514">Josh Goebel</a></li> <li>(parser) Adds SHEBANG utility mode <a href="https://github.com/yyyc514">Josh Goebel</a></li> <li>(parser) Adds <code>registerAliases</code> method (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2540">#2540</a>) [Taufik Nurrohman][]</li> <li>(enh) Added <code>on:begin</code> callback for modes (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2261">#2261</a>) <a href="https://github.com/yyyc514">Josh Goebel</a></li> <li>(enh) Added <code>on:end</code> callback for modes (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2261">#2261</a>) <a href="https://github.com/yyyc514">Josh Goebel</a></li> <li>(enh) Added ability to programatically ignore begin and end matches (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2261">#2261</a>) <a href="https://github.com/yyyc514">Josh Goebel</a></li> <li>(enh) Added <code>END_SAME_AS_BEGIN</code> mode to replace <code>endSameAsBegin</code> parser attribute (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2261">#2261</a>) <a href="https://github.com/yyyc514">Josh Goebel</a></li> <li>(fix) <code>fixMarkup</code> would rarely destroy markup when <code>useBR</code> was enabled (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2532">#2532</a>) <a href="https://github.com/yyyc514">Josh Goebel</a></li> </ul> <p>Deprecations:</p> <ul> <li><code>htmlbars</code> grammar is now deprecated. Use <code>handlebars</code> instead. (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2344">#2344</a>) [Nils Knappmeier][]</li> <li>when using <code>highlightBlock</code> <code>result.re</code> deprecated. Use <code>result.relevance</code> instead. (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2552">#2552</a>) <a href="https://github.com/yyyc514">Josh Goebel</a></li> <li>ditto for <code>result.second_best.re</code> => <code>result.second_best.relevance</code> (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2552">#2552</a>)</li> <li><code>lexemes</code> is now deprecated in favor of <code>keywords.$pattern</code> key (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2519">#2519</a>) <a href="https://github.com/yyyc514">Josh Goebel</a></li> <li><code>endSameAsBegin</code> is now deprecated. (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2261">#2261</a>) <a href="https://github.com/yyyc514">Josh Goebel</a></li> </ul> <p>Language Improvements:</p> <ul> <li>fix(groovy) strings are not allowed inside ternary clauses (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2217">#2217</a>) <a href="https://github.com/yyyc514">Josh Goebel</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/highlightjs/highlight.js/commit/edd73d2402b3d66706d141e9fadda004d237925d"><code>edd73d2</code></a> bump v10.1.2</li> <li><a href="https://github.com/highlightjs/highlight.js/commit/7241013ae011a585983e176ddc0489a7a52f6bb0"><code>7241013</code></a> (parser) use null prototype objects for languages/aliases (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2636">#2636</a>)</li> <li><a href="https://github.com/highlightjs/highlight.js/commit/93fd0d7335e2b8b94dd122dc2898db8c86343257"><code>93fd0d7</code></a> bump v10.1.1; (chore) add changelog for 10.1.1</li> <li><a href="https://github.com/highlightjs/highlight.js/commit/c5783d2ffca795ccbae7045f66553adaf78303a2"><code>c5783d2</code></a> (chore) clean up types just a little</li> <li><a href="https://github.com/highlightjs/highlight.js/commit/a4ee4e40263aad8586bfe7d1d0fc42a0683080f7"><code>a4ee4e4</code></a> (chore) declare ambient modules for lib/core & languges</li> <li><a href="https://github.com/highlightjs/highlight.js/commit/06565885c7c8d2717b0f8d655c3157f02551686c"><code>0656588</code></a> (chore) removed dangling comma (<a href="https://github-redirect.dependabot.com/highlightjs/highlight.js/issues/2612">#2612</a>)</li> <li><a href="https://github.com/highlightjs/highlight.js/commit/b1bce6e3ada485b89696f554878b2ef44a73d94a"><code>b1bce6e</code></a> (chore) more import below metadata comment</li> <li><a href="https://github.com/highlightjs/highlight.js/commit/74de6eaa1d4dddd2ce1b167abda91913a77c48e6"><code>74de6ea</code></a> (chore) bump copyright</li> <li><a href="https://github.com/highlightjs/highlight.js/commit/b2d19b038882b32935325d7f73531c8dfde2f7c4"><code>b2d19b0</code></a> bump v10.1.0</li> <li><a href="https://github.com/highlightjs/highlight.js/commit/84f7fa3c8d9742a2f890a406ac2cebf88830d139"><code>84f7fa3</code></a> (chore) upgrade some dev stuff to newer versions</li> <li>Additional commits viewable in <a href="https://github.com/highlightjs/highlight.js/compare/9.13.1...10.1.2">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by <a href="https://www.npmjs.com/~isagalaev">isagalaev</a>, a new releaser for highlight.js since your current version.</p> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+4 -4

0 comment

2 changed files

pr created time in 8 days

pull request commentsindresorhus/awesome-nodejs

Add Superstruct

I've used this in the past. It's great. 👍🏻

ianstormtaylor

comment created time in 8 days

push eventsindresorhus/awesome-nodejs

Ian Storm Taylor

commit sha b4c6262683a42d410bb9e789d193d72fc329e53b

Add Superstruct (#1081)

view details

push time in 8 days

PR merged sindresorhus/awesome-nodejs

Add Superstruct

By submitting this pull request, I promise I have read the contribution guidelines twice and ensured my submission follows it. I realize not doing so wastes the maintainers' time that they could have spent making the world better. 🖖

⬆⬆⬆⬆⬆⬆⬆⬆⬆⬆

Name: superstruct GitHub: https://github.com/ianstormtaylor/superstruct Yarn: https://yarnpkg.com/package/superstruct NPM: https://www.npmjs.com/package/superstruct Stars: 4.6k Downloads: 733.3k / mo

Superstruct makes it easy to define interfaces and then validate JavaScript data against them. Its type annotation API was inspired by Typescript, Flow, Go, and GraphQL, giving it a familiar and easy to understand API.

But Superstruct is designed for validating data at runtime, so it throws (or returns) detailed runtime errors for you or your end users. This is especially useful in situations like accepting arbitrary input in a REST or GraphQL API. But it can even be used to validate internal data structures at runtime when needed.

import { assert, object, number, string, array } from 'superstruct'

const Article = object({
  id: number(),
  title: string(),
  tags: array(string()),
  author: object({
    id: number(),
  }),
})

const data = {
  id: 34,
  title: 'Hello World',
  tags: ['news', 'features'],
  author: {
    id: 1,
  },
}

assert(data, Article)
// This will throw an error when the data is invalid.
// If you'd rather not throw, you can use `is()` or `validate()`.
+1 -0

0 comment

1 changed file

ianstormtaylor

pr closed time in 8 days

PR opened sindresorhus/awesome-nodejs

Add Superstruct

By submitting this pull request, I promise I have read the contribution guidelines twice and ensured my submission follows it. I realize not doing so wastes the maintainers' time that they could have spent making the world better. 🖖

⬆⬆⬆⬆⬆⬆⬆⬆⬆⬆

Name: superstruct GitHub: https://github.com/ianstormtaylor/superstruct Yarn: https://yarnpkg.com/package/superstruct NPM: https://www.npmjs.com/package/superstruct Stars: 4.6k Downloads: 733.3k / mo

Superstruct makes it easy to define interfaces and then validate JavaScript data against them. Its type annotation API was inspired by Typescript, Flow, Go, and GraphQL, giving it a familiar and easy to understand API.

But Superstruct is designed for validating data at runtime, so it throws (or returns) detailed runtime errors for you or your end users. This is especially useful in situations like accepting arbitrary input in a REST or GraphQL API. But it can even be used to validate internal data structures at runtime when needed.

import { assert, object, number, string, array } from 'superstruct'

const Article = object({
  id: number(),
  title: string(),
  tags: array(string()),
  author: object({
    id: number(),
  }),
})

const data = {
  id: 34,
  title: 'Hello World',
  tags: ['news', 'features'],
  author: {
    id: 1,
  },
}

assert(data, Article)
// This will throw an error when the data is invalid.
// If you'd rather not throw, you can use `is()` or `validate()`.
+1 -0

0 comment

1 changed file

pr created time in 8 days

push eventmgechev/angular-performance-checklist

Yu Zheng

commit sha c4b8d4dfb0b8f305ff716a6be42aa1f9be8d789e

docs(readme.md): add content for Coalescing event change detections (#54) Co-authored-by: Yu Zheng <yu.zheng@nextgen.net>

view details

push time in 8 days

PR merged mgechev/angular-performance-checklist

docs(readme.md): add content for Coalescing event change detections

@mgechev Apologised, I forgot about content in previous PR. I have fixed it here and moved it into Change Detection section.

+19 -18

0 comment

1 changed file

yzhe554

pr closed time in 8 days

issue openedsindresorhus/awesome-nodejs

File Formidable

Heard about this:

https://github.com/node-formidable/formidable' "A node.js module for parsing form data, especially file uploads."

Don't see it it the list. Is it considerable good? Any similar in the list, instead?

Best Regards, Tom

created time in 9 days

PR opened mgechev/angular-performance-checklist

docs(readme.md): add content for Coalescing event change detections

@mgechev Apologised, I forgot about content in previous PR. I have fixed it here and moved it into Change Detection section.

+19 -18

0 comment

1 changed file

pr created time in 9 days

push eventmgechev/angular-performance-checklist

Yu Zheng

commit sha aa97a37a3d49de69c0fb7e152f5ab3d75ea20053

docs(readme.md): Add ngZoneEventCoalescing for Runtime Optimizations (#53) * docs(readme.md): Add ngZoneEventCoalescing for Runtime Optimizations fixes #52 * Update README.md Co-authored-by: Minko Gechev <mgechev@gmail.com> * Update README.md Co-authored-by: Minko Gechev <mgechev@gmail.com> * Update README.md Co-authored-by: Minko Gechev <mgechev@gmail.com> * Update README.md Co-authored-by: Minko Gechev <mgechev@gmail.com> Co-authored-by: Yu Zheng <yu.zheng@nextgen.net> Co-authored-by: Minko Gechev <mgechev@gmail.com>

view details

push time in 9 days

issue closedmgechev/angular-performance-checklist

Can I get some clarification on ngZoneEventCoalescing feature flag?

Hi @mgechev , I found this feature by reading https://twitter.com/yurzui/status/1327248065137430528?s=20. And then I checked the source code https://github.com/angular/angular/blob/master/packages/core/src/application_ref.ts#L268. Everything I can find seems saying this is a performance enhancement. Is there any side effects that stops Angular turn it on by default? If this is definitely a performance enhancement feature, should we add to this doco? Thanks in advance.

closed time in 9 days

yzhe554

pull request commentmgechev/angular-performance-checklist

docs(readme.md): Add ngZoneEventCoalescing for Runtime Optimizations

@mgechev Thanks for those comment suggestions. I am more than happy to use Jake Archibald's video. It's the best for explaining js event loop IMHO.

yzhe554

comment created time in 9 days

Pull request review commentmgechev/angular-performance-checklist

docs(readme.md): Add ngZoneEventCoalescing for Runtime Optimizations

 Expressions should finish quickly or the user experience may drag, especially on - [quick-execution](https://angular.io/guide/template-syntax#quick-execution) - official documentation for template expressions - [Increasing Performance - more than a pipe dream](https://youtu.be/I6ZvpdRM1eQ) - ng-conf video on youtube. Using pipe instead of function in interpolation expression +### Coalescing event change detections++Angular uses ZoneJS to intercept events that occurred in the application and run a change detection cycle automatically, also Angular runs change detection every time when the microtask queue is empty.

Thanks for picking this up, I'd like to use Jake Archibald's video. I also think it's the best one so far for explaining js event loop.

yzhe554

comment created time in 9 days

Pull request review commentmgechev/angular-performance-checklist

docs(readme.md): Add ngZoneEventCoalescing for Runtime Optimizations

 Expressions should finish quickly or the user experience may drag, especially on - [quick-execution](https://angular.io/guide/template-syntax#quick-execution) - official documentation for template expressions - [Increasing Performance - more than a pipe dream](https://youtu.be/I6ZvpdRM1eQ) - ng-conf video on youtube. Using pipe instead of function in interpolation expression +### Coalescing event change detections++Angular uses ZoneJS to intercept events that occurred in the application and run a change detection cycle automatically, also Angular runs change detection every time when the microtask queue is empty.+From V9, Angular provides a way to coalesce event change detections by turning `ngZoneEventCoalescing` on, i.e+```+platformBrowser()+  .bootstrapModule(AppModule, { ngZoneEventCoalescing: true });+```+which will schedule running change detection with `requestAnimationFrame`.
The above configuration will schedule change detection with `requestAnimationFrame`, instead of plugging into the microtask queue, which will run checks less frequently and consume fewer computational cycles.
yzhe554

comment created time in 9 days

Pull request review commentmgechev/angular-performance-checklist

docs(readme.md): Add ngZoneEventCoalescing for Runtime Optimizations

 Expressions should finish quickly or the user experience may drag, especially on - [quick-execution](https://angular.io/guide/template-syntax#quick-execution) - official documentation for template expressions - [Increasing Performance - more than a pipe dream](https://youtu.be/I6ZvpdRM1eQ) - ng-conf video on youtube. Using pipe instead of function in interpolation expression +### Coalescing event change detections++Angular uses ZoneJS to intercept events that occurred in the application and run a change detection cycle automatically, also Angular runs change detection every time when the microtask queue is empty.
Angular uses zone.js to intercept events that occurred in the application and runs a change detection automatically. By default this happens when the [microtask queue](https://www.youtube.com/watch?v=cCOL7MC4Pl0) of the browser is empty, which in some cases may call redundant cycles.
yzhe554

comment created time in 9 days

Pull request review commentmgechev/angular-performance-checklist

docs(readme.md): Add ngZoneEventCoalescing for Runtime Optimizations

 Expressions should finish quickly or the user experience may drag, especially on - [quick-execution](https://angular.io/guide/template-syntax#quick-execution) - official documentation for template expressions - [Increasing Performance - more than a pipe dream](https://youtu.be/I6ZvpdRM1eQ) - ng-conf video on youtube. Using pipe instead of function in interpolation expression +### Coalescing event change detections++Angular uses ZoneJS to intercept events that occurred in the application and run a change detection cycle automatically, also Angular runs change detection every time when the microtask queue is empty.+From V9, Angular provides a way to coalesce event change detections by turning `ngZoneEventCoalescing` on, i.e+```
```typescript
yzhe554

comment created time in 9 days

Pull request review commentmgechev/angular-performance-checklist

docs(readme.md): Add ngZoneEventCoalescing for Runtime Optimizations

 Expressions should finish quickly or the user experience may drag, especially on - [quick-execution](https://angular.io/guide/template-syntax#quick-execution) - official documentation for template expressions - [Increasing Performance - more than a pipe dream](https://youtu.be/I6ZvpdRM1eQ) - ng-conf video on youtube. Using pipe instead of function in interpolation expression +### Coalescing event change detections++Angular uses ZoneJS to intercept events that occurred in the application and run a change detection cycle automatically, also Angular runs change detection every time when the microtask queue is empty.+From V9, Angular provides a way to coalesce event change detections by turning `ngZoneEventCoalescing` on, i.e
From v9, Angular provides a way to coalesce event change detections by turning `ngZoneEventCoalescing` on, i.e
yzhe554

comment created time in 9 days

issue openedsindresorhus/awesome-nodejs

Add tsyringe?

Was wondering if this awesome package has a place here.

Provides a lightweight solution for dependency injection and other cool service container pattern.

created time in 12 days

pull request commenttimescale/timescaledb-docker

Install TimescaleDB as a superuser

Bump! We're waiting for this PR to be rebased / merged, bitnami image is not usable without it. Can we expect it to be merged quickly? Thanks

feikesteenbergen

comment created time in 13 days

Pull request review commenttimescale/timescaledb-docker

Send --max-bg-workers to timescaledb-tune

 NO_TS_TUNE=${NO_TS_TUNE:-""} TS_TUNE_MEMORY=${TS_TUNE_MEMORY:-""} TS_TUNE_NUM_CPUS=${TS_TUNE_NUM_CPUS:-""}+TS_TUNE_MAX_BG_WORKERS=${TS_TUNE_MAX_BG_WORKERS:-""}

Pending on this PR

https://github.com/timescale/timescaledb-tune/pull/73

jflambert

comment created time in 14 days

delete branch timescale/timescaledb-docker

delete branch : buildx

delete time in 15 days

more