This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Reading cached asset graph completed, took 470ms | |
[INFO] Checking for updates since last build completed, took 1.1s | |
[INFO] Running build completed, took 650ms | |
[INFO] Caching finalized dependency graph completed, took 338ms | |
[INFO] Reading manifest at build/.build.manifest completed, took 1ms | |
[INFO] Deleting previous outputs in `build` completed, took 135ms | |
[SEVERE] | |
[SEVERE] | |
[SEVERE] You have hit a bug in build_runner | |
[SEVERE] Please file an issue with reproduction steps at https://github.com/dart-lang/build/issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myInspector = require("inspector"); | |
myInspector.open = function() { | |
console.log("FORGET IT!!"); | |
throw new Error(); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have configured two connections in pgbouncer.ini as separate databases, so that I may have different users with different settings (such as statement timeout being more harsh): | |
default_pool = dbname=elladb pool_size=70 | |
analytics_pool = dbname=elladb user=analytics password=lorderulesz pool_size=10 | |
pool_mode = transaction | |
My question is, with these settings, is it possible for a connection from analytics_pool to be given to a client requesting default_pool? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LordeSandwich | |
{ | |
static List<E> firstOfEach<E, L>(Iterable<E> sourceIterable, ConsumerSupplierFunction<E, L> strategy) | |
{ | |
Set<L> seenPrimaryKeys = new Set<L>(); | |
List<E> list = new List<E>(); | |
for (E element in sourceIterable) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
targets: | |
$default: | |
sources: | |
- lib/** | |
- web/** | |
# Note that it is important to include these in the default target. | |
- pubspec.* | |
builders: | |
# ----------------------- | |
build_web_compilers|entrypoint: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unhandled exception: | |
type 'List<dynamic>' is not a subtype of type 'Iterable<XmlNode>' in type cast | |
#0 Object._as (dart:core/runtime/libobject_patch.dart:67:25) | |
#1 XmlGrammarDefinition.element.<anonymous closure> (package:xml/xml/grammar.dart:122:58) | |
#2 ActionParser.parseOn (package:petitparser/src/core/actions/action.dart:19:29) | |
#3 ChoiceParser.parseOn (package:petitparser/src/core/combinators/choice.dart:20:28) | |
#4 PossessiveRepeatingParser.parseOn (package:petitparser/src/core/repeaters/possesive.dart:28:29) | |
#5 SequenceParser.parseOn (package:petitparser/src/core/combinators/sequence.dart:21:32) | |
#6 ChoiceParser.parseOn (package:petitparser/src/core/combinators/choice.dart:20:28) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class TreeNode<C extends TreeNode, T extends INodeModel> | |
{ | |
C treeRoot; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Solved by re-creating the outer maps so the inner maps could be cast. | |
final results = new List< Map<Object, Map<Object, num> > >(); | |
for (final value in windowValues) | |
{ | |
Map<Object, Map<Object, num> > outerMap = | |
new Map<Object, Map<Object, num> >.fromEntries( | |
(value as Map).entries.map( (entry) => new MapEntry<Object, Map<Object, num> >(entry.key, (entry.value as Map).cast<Object, num>() ) ) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fails to work. Cast exception occurs as soon a value is accessed by key from one of the outer maps: | |
// e.g., iterable[0][outerKey] results in CastError | |
Map<Object, Map<Object, num> > reduceOpaqueIterable(Iterable<Object> windowValues) | |
{ | |
return windowValues.map( | |
(inner) => (inner as Map).cast<Object, Map<Object, num> >() ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shorty=# \d siteanalytics_pageview | |
Table "public.siteanalytics_pageview" | |
Column | Type | Modifiers | |
-------------------------+--------------------------+----------------------------------------------- | |
domain | integer | | |
visit_id | uuid | | |
pageview_id | uuid | | |
page_url | text | |