Where is 'dart_sdk.js'?

Hello everyone! I am trying to create a POC on my company showing that Dart superpowers to javascript are reall awesome.
But I am really stuck =(
This is the sample class I want to create a library for usage on javascript evironment:
class Awesome {
  bool get isAwesome => true;

  String hello() => 'Hello cruel world !';
}

Then, I run the following command on it:
dartdevc -o lib/dart_js_poc.js lib/src/awesome.dart --modules es6
I am using es6 because I want this library to run on our React server.
Here comes the JS generated by the dart compiler:
var awesome = Object.create(dart.library);
export { awesome as lib__src__awesome };
import { core, dart, dartx } from 'dart_sdk.js';
dart._checkModuleNullSafetyMode(false);
const CT = Object.create({
  _: () => (C, CT)
});
var I = ["org-dartlang-app:/lib/src/awesome.dart"];
awesome.Awesome = class Awesome extends core.Object {
  get isAwesome() {
    return true;
  }
  hello() {
    return "Hello cruel world !";
  }
};
(awesome.Awesome.new = function() {
  ;
}).prototype = awesome.Awesome.prototype;
dart.addTypeTests(awesome.Awesome);
dart.addTypeCaches(awesome.Awesome);
dart.setMethodSignature(awesome.Awesome, () => ({
  __proto__: dart.getMethods(awesome.Awesome.__proto__),
  hello: dart.fnType(core.String, [])
}));
dart.setGetterSignature(awesome.Awesome, () => ({
  __proto__: dart.getGetters(awesome.Awesome.__proto__),
  isAwesome: core.bool
}));
dart.setLibraryUri(awesome.Awesome, I[0]);
dart.trackLibraries("dart_js_poc", {
  "org-dartlang-app:/lib/src/awesome.dart": awesome
}, {
}, null);

//# sourceMappingURL=dart_js_poc.js.map

The problem is on this line: import { core, dart, dartx } from 'dart_sdk.js';. Where is this file? Without it I can't use this library.
Is this a bug on the compiler?

Look for this file in <dart-sdk>/lib/dev_compiler/kernel/*.
FWIW, I don't think dev compiler is intended for production usage. It is a development compiler after all, but I let @sigmundch comment on that.

I believe the goal (if not already done) is to remove these files and have you compile them yourself, in order to make the shipped SDK smaller.
In general the process for compiling and bootstrapping a JS app with dartdevc is undocumented, and not stable. It is recommended you use webdev to develop web apps using dartdevc.
Note that if you use the dart2js compiler (or I think now dart compile js <file>?) that produces a single file that doesn't require any extra bootstrapping.

Thanks for the answer folks!

Note that if you use the dart2js compiler (or I think now dart compile js <file>?) that produces a single file that doesn't require any extra bootstrapping.

The problem with dart2js is realy only one: it requireds a main dart file to work. My poc is about creating a library, thus, not having a main, entrypoint =(
Do you think that what I am trying to achieve is not possible with Dart? That is the answer I am trying to find on various websites and I can't find. Yes, there is a lot about dart and javascript but only as web apps, but for libraries.

The short answer is Dart does not generally support creating shared libraries for the web, no.
Technically you can kind of sort of work your way around that with JS interop for some use cases, but it probably isn't a good solution for what you are trying to actually achieve.

Thanks a lot @jakemac53, I think I will stop trying them. But would be amazing if dart could provide a way of doing it, right?
Nowadays, flutter community is getting huge we are tryign to share those amazing dart codes we write to our frontend web developers.
Maybe can this issue became a feature request? haha

I created another issue for that feature request: https://github.com/dart-lang/sdk/issues/46376

This has definitely come up before but I don't have a link handy. Ultimately, my personal opinion is that Dart is just simply not a good fit for this task, and I think that is likely why it hasn't been done yet.
There are a lot of reasons it isn't a good fit, but mostly it comes down to the overhead of the Dart SDK itself, and the difficulties that you would face trying to overcome that. If you simply included the dart_sdk.js library (compiled by dartdevc), that is several megabytes in size on its own.
Generally we rely on tree shaking, minification, and other mechanisms to get rid of some of this overhead, and also when you are talking about a full app the cost tends to get amortized. But none of those mechanisms really work well when you are talking about a library, for a few reasons:

you can't do whole world analysis in order to tree shake (particularly the sdk libs, but also library dependencies)
you can't easily share dependency code across several libraries (they would at a minimum have to agree on where it comes from)
libraries tend to be small, so having a large dependency doesn't lend itself well to that purpose


Add compatibility with Biomes O Plenty

This mod would have been so much more useful if it worked with BOP. Most other mods generate their biomes in BOP worlds fine, however Traverse doesn't. Please.

Yeah, I'm aware. To be honest it's not a huge priority as BoP has a lot of similar biomes to Traverse and more. But I'm aware of why it doesn't work, but I need to change a bit to fix it.

BOP support has been added and will be in a version released today


Add flame graphs

This PR adds some flame graphs to CI

bors try

bors try

bors try

bors try

bors try

bors r+


Replaced old navigation

What's done:

Replaced all window.location.href to react.router.useNavigate()

Closes #2637

@DrAlexD what's about this one? I think it will affect @Cheshiriks 's work on the split of SAVE.
What is the blocker here, why not finished?

As far as I remember, there was some kind of navigation error that I couldn't figure out. I'll watch it again soon.

Decided to close it due to the split of SAVE. It needs to be investigated anew.


Add String Type to _kFontPkg to avoid linter errors

Hi,
Just a minor Suggestion:
In the generated dart file, change:
static const _kFontPkg = null;
to
static const String _kFontPkg = null;
This avoids an error with stricter lint configurations using 'implicit_dynamic_field'.
Great project! Thank u very much!

Thank you, released.  I added null safety as well: https://github.com/ilikerobots/polyicon/commit/6bb58ee11fa860c70002c1840099acb34d3b32b2


Swift recognition is faster than Objective-C?

Swift recognition is faster than Objective-C? How is that possible?
Here what I tested (called the next functions for the same image many times)
Swift
let startTime = NSDate().timeIntervalSince1970 * 1000
tesseract.image = imageDigit
tesseract.recognize()
let endTime = NSDate().timeIntervalSince1970 * 1000 - startTime
Swift.print("Swift \(endTime) ms")

Objective-C
double startTime = [[NSDate date] timeIntervalSince1970] * 1000.0;
tesseract.image = [imageDigit g8_blackAndWhite];
[tesseract recognize];
double endTime = [[NSDate date] timeIntervalSince1970] * 1000.0 - startTime;
printf("Obj-C %f ms\n", endTime);

Output
Swift 6.02294921875 ms
Obj-C 25.954102 ms
Swift 5.19189453125 ms
Obj-C 41.064697 ms
Swift 5.010986328125 ms
Obj-C 30.672119 ms
Swift 5.11376953125 ms
Obj-C 28.249268 ms
Swift 4.9501953125 ms
Obj-C 36.845215 ms
Swift 4.71728515625 ms

SOLVED
I needed to replace
tesseract.image = [imageDigit g8_blackAndWhite];
with
tesseract.image = imageDigit;
please mention about it here https://github.com/gali8/Tesseract-OCR-iOS/wiki/Using-Tesseract-OCR-iOS


⚠ Bofrost.be has degraded performance

In 22ae9dd, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 830 ms

Resolved: Bofrost.be performance has improved in 93cc5c4 after 6 minutes.


[SPARK-32727][SQL] Replace CaseWhen with If when there is only one case

What changes were proposed in this pull request?

CaseWhen can be simplified to If, when there is only one case. This opimization was partially present in the doGenCode of CaseWhen.
Why are the changes needed?

If has more potential optimization rules available than a complex CaseWhen. Optimization rules, that can work only on If and single-case CaseWhen do not have to handle these separately. For example #29567.
Does this PR introduce any user-facing change?

No
How was this patch tested?

New UT

Can one of the admins verify this patch?

Can one of the admins verify this patch?

cc @cloud-fan @maropu

Duplicates #21850

@tanelk I just know this is a similar work to my old PR, https://github.com/apache/spark/pull/21850 Since mine is old, and has conflicts with current master, would you mind to work together and submit a new PR? Feel free to take my PR, and work on top of it. Thanks.


User's settings POST gives Error 403

Description
/start and /settings commands should save user's settings, but the response is:
CSRF verification failed. Request aborted.
You are seeing this message because this HTTPS site requires a Referer header to be sent by your Web browser, but none was sent. This header is required for security reasons, to ensure that your browser is not being hijacked by third parties.

See updated readme docs
https://github.com/IntelligentTrading/data-sources/blob/tomcounsell-refactor-django/README.md
is_subscribed and is_muted should be sent as string, capitalized "True" or "False" or leave out to retain previous setting.
Referrer header no longer required. We will enforce referrer auth later

200 response means all is set correctly
400 response means the POST was not structured or formatted correctly (didn't include a chat_id)
500 means there was a server-side error - a bug in the API endpoint and debug details might be sent in json response


Add specifying of load order for mods used by BPModLoaderMod

Adds a way to specify in what order LogicMods should be loaded with BPModLoaderMod.
Load order of the mods can be specified in logicmods.txt found in the Mods folder. Example below:
SomeMod
AnotherMod

'SomeMod' will be loaded first and 'AnotherMod' will be loaded second, any mods that weren't included in the file will be loaded in random order after SomeMod and AnotherMod.
This is useful in cases where a mod relies on another mod being loaded first, for example, utility mods.

Looks fine to me except the file name and location.
Can we rename logicmods.txt to load_order.txt and can we also put it inside the Mods\BPModLoader directory instead of the Mods directory ?
The reasoning here is that this file belongs to the BP mod loader and it only affects BP mods so putting it inside the Mods directory makes it very unclear as to what it does, especially considering the fact that "logic mod" is not a term exclusively used for BP mods and because the regular mods.txt file is also related to load-order.


Add curl to image to let healthcheck actually run

The healthchecks run inside the container, so needs all tools necessary to let the healthcheck run. The alpine image doesn't have curl installed, so the healthcheck never had a chance to succeed. This adds curl, letting the healthcheck pass.

Good catch! Thanks!


[Bug]: Pod completed, not restarting

Is there an existing issue already for this bug?

[X] I have searched for an existing issue, and could not find anything. I believe this is a new bug.

I have read the troubleshooting guide

[X] I have read the troubleshooting guide and I think this is a new bug.

I am running a supported version of CloudNativePG

[X] I have read the troubleshooting guide and I think this is a new bug.

Contact Details
<EMAIL_ADDRESS>Version
1.22.0
What version of Kubernetes are you using?
1.28
What is your Kubernetes environment?
Self-managed: kind (evaluation)
How did you install the operator?
YAML manifest
What happened?
I noticed lately that after a while the cnpg pod stopped running (I used to only have 1 pod running). The pod status in Kubernetes was 'completed' and status code is 0, so looks like a 'good' shutdown, but I didn't ask for a shutdown. I then added an extra replica to not have downtime, now the same happened but without downtime, just 1 pod is not running at the moment. The cluster resource indicates that not all instances are healthy, but the operator is not fixing it it seems.
Cluster resource
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
  creationTimestamp: "2023-12-14T19:30:39Z"
  generation: 4
  labels:
    kustomize.toolkit.fluxcd.io/name: infra
    kustomize.toolkit.fluxcd.io/namespace: flux-system
  name: cnpg
  namespace: postgres
  resourceVersion: "72883685"
  uid: d0ae48a4-53c3-4bb3-9740-d93ab7716c07
spec:
  affinity:
    podAntiAffinityType: preferred
  bootstrap:
    initdb:
      database: app
      encoding: UTF8
      localeCType: C
      localeCollate: C
      owner: app
  description: Postgresql cluster
  enableSuperuserAccess: true
  externalClusters:
  - connectionParameters:
      dbname: postgres
      host: postgres.database.svc.cluster.local
      user: postgres
    name: standalone-pg
    password:
      key: password
      name: standalone-postgres
  failoverDelay: 0
  imageName: ghcr.io/ahinko/postgres-extended:16.1.4
  instances: 2
  logLevel: info
  maxSyncReplicas: 0
  minSyncReplicas: 0
  monitoring:
    customQueriesConfigMap:
    - key: queries
      name: cnpg-default-monitoring
    disableDefaultQueries: false
    enablePodMonitor: true
  postgresGID: 26
  postgresUID: 26
  postgresql:
    parameters:
      archive_mode: "on"
      archive_timeout: 5min
      dynamic_shared_memory_type: posix
      log_destination: csvlog
      log_directory: /controller/log
      log_filename: postgres
      log_rotation_age: "0"
      log_rotation_size: "0"
      log_truncate_on_rotation: "false"
      logging_collector: "on"
      max_connections: "100"
      max_parallel_workers: "32"
      max_replication_slots: "32"
      max_worker_processes: "32"
      shared_buffers: 128MB
      shared_memory_type: mmap
      shared_preload_libraries: ""
      ssl_max_protocol_version: TLSv1.3
      ssl_min_protocol_version: TLSv1.3
      wal_keep_size: 512MB
      wal_receiver_timeout: 5s
      wal_sender_timeout: 5s
    shared_preload_libraries:
    - vectors.so
    syncReplicaElectionConstraint:
      enabled: false
  primaryUpdateMethod: restart
  primaryUpdateStrategy: unsupervised
  replicationSlots:
    highAvailability:
      enabled: true
      slotPrefix: _cnpg_
    updateInterval: 30
  resources:
    limits:
      memory: 500Mi
    requests:
      cpu: 100m
      memory: 500Mi
  smartShutdownTimeout: 180
  startDelay: 3600
  stopDelay: 1800
  storage:
    resizeInUseVolumes: true
    size: 10Gi
    storageClass: freenas-api-nfs
  superuserSecret:
    name: cloudnative-pg-secret
  switchoverDelay: 3600
status:
  certificates:
    clientCASecret: cnpg-ca
    expirations:
      cnpg-ca: 2024-03-13 19:25:39 +0000 UTC
      cnpg-replication: 2024-03-13 19:25:39 +0000 UTC
      cnpg-server: 2024-03-13 19:25:39 +0000 UTC
    replicationTLSSecret: cnpg-replication
    serverAltDNSNames:
    - cnpg-rw
    - cnpg-rw.postgres
    - cnpg-rw.postgres.svc
    - cnpg-r
    - cnpg-r.postgres
    - cnpg-r.postgres.svc
    - cnpg-ro
    - cnpg-ro.postgres
    - cnpg-ro.postgres.svc
    serverCASecret: cnpg-ca
    serverTLSSecret: cnpg-server
  cloudNativePGCommitHash: 86b9dc80
  cloudNativePGOperatorHash: 411a67468c5e1357d387221ce5b11d906bd33d62324846a8c776d206b6c94162
  conditions:
  - lastTransitionTime: "2023-12-26T13:38:15Z"
    message: Cluster Is Not Ready
    reason: ClusterIsNotReady
    status: "False"
    type: Ready
  - lastTransitionTime: "2023-12-15T19:28:58Z"
    message: Continuous archiving is working
    reason: ContinuousArchivingSuccess
    status: "True"
    type: ContinuousArchiving
  configMapResourceVersion:
    metrics:
      cnpg-default-monitoring: "68421441"
  currentPrimary: cnpg-2
  currentPrimaryTimestamp: "2023-12-26T13:38:49.499078Z"
  healthyPVC:
  - cnpg-1
  - cnpg-2
  instanceNames:
  - cnpg-1
  - cnpg-2
  instances: 2
  instancesReportedState:
    cnpg-2:
      isPrimary: true
      timeLineID: 2
  instancesStatus:
    failed:
    - cnpg-1
    healthy:
    - cnpg-2
  latestGeneratedNode: 2
  managedRolesStatus: {}
  phase: Waiting for the instances to become active
  phaseReason: Some instances are not yet active. Please wait.
  poolerIntegrations:
    pgBouncerIntegration: {}
  pvcCount: 2
  readService: cnpg-r
  readyInstances: 1
  secretsResourceVersion:
    applicationSecretVersion: "71057067"
    clientCaSecretVersion: "68421414"
    externalClusterSecretVersion:
      standalone-postgres: "68413748"
    replicationSecretVersion: "68421417"
    serverCaSecretVersion: "68421414"
    serverSecretVersion: "68421415"
    superuserSecretVersion: "68413740"
  targetPrimary: cnpg-2
  targetPrimaryTimestamp: "2023-12-26T13:38:15.220438Z"
  timelineID: 2
  topology:
    instances:
      cnpg-1: {}
      cnpg-2: {}
    nodesUsed: 2
    successfullyExtracted: true
  writeService: cnpg-rw

Relevant log output
logs from the pod itself:

2023-12-26T13:32:08.168286371Z info record
2023-12-26T13:32:08.358375199Z info record
2023-12-26T13:34:55.627167824Z info Backup not configured, skip WAL archiving
2023-12-26T13:35:11.539852574Z info Received termination signal
2023-12-26T13:35:11.539927095Z info Requesting smart shutdown of the PostgreSQL instance
2023-12-26T13:35:11.545646195Z info pg_ctl: server is running (PID: 25)
/usr/lib/postgresql/16/bin/postgres "-D" "/var/lib/postgresql/data/pgdata"

2023-12-26T13:35:11.545742387Z info Shutting down instance
2023-12-26T13:35:11.54808071Z info record
2023-12-26T13:35:38.986647291Z info record
2023-12-26T13:36:08.988512708Z info record
2023-12-26T13:36:38.98724377Z info record
2023-12-26T13:37:08.646127012Z info record
2023-12-26T13:37:08.82545931Z info record
2023-12-26T13:37:09.225363172Z info record
2023-12-26T13:37:38.992231841Z info record
2023-12-26T13:38:08.987132094Z info record
2023-12-26T13:38:13.034153224Z info waiting for server to shut down....................................................................................................................................................................................... failed
2023-12-26T13:38:13.034198059Z info pg_ctl: server does not shut down
2023-12-26T13:38:13.034202868Z info HINT: The "-m fast" option immediately disconnects sessions rather than
2023-12-26T13:38:13.034205773Z info waiting for session-initiated disconnection.
2023-12-26T13:38:13.034288941Z info Error while handling the smart shutdown request
2023-12-26T13:38:13.03429904Z info Requesting fast shutdown of the PostgreSQL instance
2023-12-26T13:38:13.036935347Z info pg_ctl: server is running (PID: 25)
/usr/lib/postgresql/16/bin/postgres "-D" "/var/lib/postgresql/data/pgdata"

2023-12-26T13:38:13.03697339Z info Shutting down instance
2023-12-26T13:38:13.038815174Z info record
2023-12-26T13:38:13.053422869Z info record
2023-12-26T13:38:13.058017942Z info record
2023-12-26T13:38:13.058079198Z info record
2023-12-26T13:38:13.058105397Z info record
2023-12-26T13:38:13.05811724Z info record
2023-12-26T13:38:13.058125927Z info record
2023-12-26T13:38:13.058237167Z info record
2023-12-26T13:38:13.066026984Z info record
2023-12-26T13:38:13.164462207Z info record
2023-12-26T13:38:13.187776434Z info Backup not configured, skip WAL archiving
2023-12-26T13:38:13.408698121Z info record
2023-12-26T13:38:13.528088538Z info record
2023-12-26T13:38:13.533385188Z info Extracting pg_controldata information
2023-12-26T13:38:13.536842569Z info pg_control version number:            1300
Catalog version number:               202307071
Database system identifier:<PHONE_NUMBER>852399128
Database cluster state:               shut down
pg_control last modified:             Tue 26 Dec 2023 01:38:13 PM UTC
Latest checkpoint location:           C/1E000028
Latest checkpoint's REDO location:    C/1E000028
Latest checkpoint's REDO WAL file:<PHONE_NUMBER>00000C0000001E
Latest checkpoint's TimeLineID:       1
Latest checkpoint's PrevTimeLineID:   1
Latest checkpoint's full_page_writes: on
Latest checkpoint's NextXID:          0:573136
Latest checkpoint's NextOID:          53548
Latest checkpoint's NextMultiXactId:  1
Latest checkpoint's NextMultiOffset:  0
Latest checkpoint's oldestXID:        722
Latest checkpoint's oldestXID's DB:   1
Latest checkpoint's oldestActiveXID:  0
Latest checkpoint's oldestMultiXid:   1
Latest checkpoint's oldestMulti's DB: 1
Latest checkpoint's oldestCommitTsXid:0
Latest checkpoint's newestCommitTsXid:0
Time of latest checkpoint:            Tue 26 Dec 2023 01:38:13 PM UTC
Fake LSN counter for unlogged rels:   0/3E8
Minimum recovery ending location:     0/0
Min recovery ending loc's timeline:   0
Backup start location:                0/0
Backup end location:                  0/0
End-of-backup record required:        no
wal_level setting:                    logical
wal_log_hints setting:                on
max_connections setting:              100
max_worker_processes setting:         32
max_wal_senders setting:              10
max_prepared_xacts setting:           0
max_locks_per_xact setting:           64
track_commit_timestamp setting:       off
Maximum data alignment:               8
Database block size:                  8192
Blocks per segment of large relation: 131072
WAL block size:                       8192
Bytes per WAL segment:                16777216
Maximum length of identifiers:        64
Maximum columns in an index:          32
Maximum size of a TOAST chunk:        1996
Size of a large-object chunk:         2048
Date/time type storage:               64-bit integers
Float8 argument passing:              by value
Data page checksum version:           0
Mock authentication nonce:            c2ed9930642aefd266f0e7e20e8039e0f76c8cccc0fbc83050c657b4b707962a

2023-12-26T13:38:13.543046015Z info waiting for server to shut down.... done
2023-12-26T13:38:13.543100508Z info server stopped
2023-12-26T13:38:13.54313358Z info PostgreSQL instance shut down
2023-12-26T13:38:13.54751016Z info Stopping and waiting for non leader election runnables
2023-12-26T13:38:13.547572288Z info Stopping and waiting for leader election runnables
2023-12-26T13:38:13.547580383Z info Shutdown signal received, waiting for all workers to finish
2023-12-26T13:38:13.547583058Z info Shutdown signal received, waiting for all workers to finish
2023-12-26T13:38:13.547585603Z info Shutdown signal received, waiting for all workers to finish
2023-12-26T13:38:13.54758919Z info Exited log pipe
2023-12-26T13:38:13.547592145Z info Terminated slot Replicator loop
2023-12-26T13:38:13.54759489Z info Terminated RoleSynchronizer loop
2023-12-26T13:38:13.547611763Z info Webserver exited
2023-12-26T13:38:13.547622834Z info Webserver exited
2023-12-26T13:38:13.547634315Z info Exited log pipe
2023-12-26T13:38:13.547637221Z info Exited log pipe
2023-12-26T13:38:13.547867026Z info Webserver exited
2023-12-26T13:38:13.548187501Z info All workers finished
2023-12-26T13:38:13.548230423Z info All workers finished
2023-12-26T13:38:13.548669604Z info All workers finished
2023-12-26T13:38:13.548715601Z info Stopping and waiting for caches
2023-12-26T13:38:13.55076604Z info Stopping and waiting for webhooks
2023-12-26T13:38:13.552333725Z info Stopping and waiting for HTTP servers
2023-12-26T13:38:13.552381416Z info Wait completed, proceeding to shutdown the manager

logs from the operator:

2023-12-26T13:30:07.838293432Z info default
2023-12-26T13:30:07.847468306Z info validate update
2023-12-26T13:31:11.254806256Z info default
2023-12-26T13:31:11.261846872Z info validate update
2023-12-26T13:32:12.418550271Z info default
2023-12-26T13:32:12.425935332Z info validate update
2023-12-26T13:33:10.907680708Z info default
2023-12-26T13:33:10.919520212Z info validate update
2023-12-26T13:34:45.240736085Z info default
2023-12-26T13:34:45.252597314Z info validate update
2023-12-26T13:35:43.224001927Z info default
2023-12-26T13:35:43.231520447Z info validate update
2023-12-26T13:36:42.425705756Z info default
2023-12-26T13:36:42.433100347Z info validate update
2023-12-26T13:37:40.770825377Z info default
2023-12-26T13:37:40.777855185Z info validate update
2023-12-26T13:38:15.171641658Z info Current primary isn't healthy, initiating a failover
2023-12-26T13:38:15.171714025Z info pod status (1 of 1)
2023-12-26T13:38:15.204667344Z info Failing over
2023-12-26T13:38:15.204742596Z info pod status (1 of 1)
2023-12-26T13:38:15.233253201Z info Waiting for the new primary to notice the promotion request
2023-12-26T13:38:15.274005561Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:16.264252081Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:17.299244539Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:18.33139479Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:19.361146899Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:20.396244015Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:21.426219384Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:22.460770233Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:23.494688316Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:24.553090988Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:25.584818785Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:26.614168748Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:27.642852843Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:28.718719059Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:29.752370149Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:30.793116385Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:31.824270249Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:32.85809986Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:33.900796557Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:34.92994414Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:35.964291877Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:36.9939087Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:38.046868439Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:39.077943935Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:40.109038863Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:40.729802786Z info default
2023-12-26T13:38:40.735467103Z info validate update
2023-12-26T13:38:41.141223723Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:42.172292681Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:43.206941623Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:44.258830828Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:45.290743261Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:46.323961403Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:47.360967831Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:48.400779833Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:49.43493106Z info There is a switchover or a failover in progress, waiting for the operation to complete
2023-12-26T13:38:49.687248775Z info Setting primary label
2023-12-26T13:39:39.312920389Z info default
2023-12-26T13:39:39.323649384Z info validate update
2023-12-26T13:40:40.220572944Z info default
2023-12-26T13:40:40.227451587Z info validate update
2023-12-26T13:42:12.650774215Z info default
2023-12-26T13:42:12.666418368Z info validate update
2023-12-26T13:43:12.352619375Z info default
2023-12-26T13:43:12.358606887Z info validate update
2023-12-26T13:44:13.73195222Z info default
2023-12-26T13:44:13.741409825Z info validate update

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I can confirm this, when I shut down a node yesterday, the database wasn't started on another node. The single 'primary" instance stopped cleanly and was left in status: Completed.
The operator repeated the following message while the node was down:
{
  "level": "info",
  "ts": "2024-01-02T22:51:47Z",
  "msg": "Ignoring not active Pod during label update",
  "controller": "cluster",
  "controllerGroup": "postgresql.cnpg.io",
  "controllerKind": "Cluster",
  "Cluster": {
    "name": "linkding-database",
    "namespace": "linkding"
  },
  "namespace": "linkding",
  "name": "linkding-database",
  "reconcileID": "d2bc4fc4-ca1a-4076-94e3-22ffc68b6cf3",
  "uuid": "826ef5ec-a9c1-11ee-9d53-f603fdc2adf9",
  "pod": "linkding-database-1",
  "status": {
    "phase": "Pending",
    "conditions": [
      {
        "type": "PodReadyToStartContainers",
        "status": "False",
        "lastProbeTime": null,
        "lastTransitionTime": "2024-01-02T22:50:49Z"
      },
      {
        "type": "Initialized",
        "status": "False",
        "lastProbeTime": null,
        "lastTransitionTime": "2024-01-02T22:50:49Z",
        "reason": "ContainersNotInitialized",
        "message": "containers with incomplete status: [bootstrap-controller]"
      },
      {
        "type": "Ready",
        "status": "False",
        "lastProbeTime": null,
        "lastTransitionTime": "2024-01-02T22:50:49Z",
        "reason": "ContainersNotReady",
        "message": "containers with unready status: [postgres]"
      },
      {
        "type": "ContainersReady",
        "status": "False",
        "lastProbeTime": null,
        "lastTransitionTime": "2024-01-02T22:50:49Z",
        "reason": "ContainersNotReady",
        "message": "containers with unready status: [postgres]"
      },
      {
        "type": "PodScheduled",
        "status": "True",
        "lastProbeTime": null,
        "lastTransitionTime": "2024-01-02T22:50:49Z"
      }
    ],
    "hostIP": "<IP_ADDRESS>",
    "startTime": "2024-01-02T22:50:49Z",
    "initContainerStatuses": [
      {
        "name": "bootstrap-controller",
        "state": {
          "waiting": {
            "reason": "PodInitializing"
          }
        },
        "lastState": {},
        "ready": false,
        "restartCount": 0,
        "image": "ghcr.io/cloudnative-pg/cloudnative-pg:1.20.2",
        "imageID": "",
        "started": false
      }
    ],
    "containerStatuses": [
      {
        "name": "postgres",
        "state": {
          "waiting": {
            "reason": "PodInitializing"
          }
        },
        "lastState": {},
        "ready": false,
        "restartCount": 0,
        "image": "ghcr.io/cloudnative-pg/postgresql:15.3",
        "imageID": "",
        "started": false
      }
    ],
    "qosClass": "BestEffort"
  }
}

When the node came on line, came this message and the instance was restarted again:
{
  "level": "info",
  "ts": "2024-01-02T22:51:52Z",
  "msg": "Setting primary label",
  "controller": "cluster",
  "controllerGroup": "postgresql.cnpg.io",
  "controllerKind": "Cluster",
  "Cluster": {
    "name": "linkding-database",
    "namespace": "linkding"
  },
  "namespace": "linkding",
  "name": "linkding-database",
  "reconcileID": "b6361396-371d-4cb5-a769-9e37bcbfd7ab",
  "uuid": "8534bd84-a9c1-11ee-9d53-f603fdc2adf9",
  "pod": "linkding-database-1"
}

Here is the log:
cloudnative-pg-74c95d6bb9-7m5cw.log

I experience the same problem. We try thttps://cloudnative-pg.io/documentation/1.20/troubleshooting/#cluster-information.  "Replicas out of sync when no backup is configured" in order to fix it. It kind of work, but we have to do it manually. And it happens 2 times for a week.

Thanks a lot for your work, the CNPG operator is absolutely great.
I'd like to chime in here. We're experiencing the same problem, though we're on an older version of the operator (1.19.0).
A single replica CNPG cluster has been terminated by the kubelet because, during a backup, the node was low on ephemeral storage. So that's a failure in the middle of a ScheduledBackup.
From that moment onward, operator's logs have began showing this neverending loop
2024-09-15 02:10:34 | {"level":"info","ts":"2024-09-15T00:10:34Z","msg":"Ignoring not active Pod during label update","controller"....
[.....]
2024-09-15 02:10:34 | {"level":"info","ts":"2024-09-15T00:10:34Z","msg":"No primary instance found for this cluster"....

We had to manually restart the primary to fix the loop. From what I can see, the problem is apparently there with a newer version of the operator, so upgrade is not a way to fix it.


reloading grafana when config changes

Is this a request for help?: no
Is this a BUG REPORT or FEATURE REQUEST? (choose one):

Documentation of restarting stable/grafana when configmap changes OR use the same reloader that stable/prometheus is using.
Version of Helm and Kubernetes:
n/a
Which chart:
stable/grafana
What happened:
changed configmap
What you expected to happen:
it restarts the service (instead i kill the pod, wait for a new one)
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:

Are there any updates for this?

that  could be useful

Either you guys use reloader:
https://github.com/stakater/Reloader
Or take the new feature from k8s 1.15 rollout restart
https://blog.questionable.services/article/kubernetes-deployments-configmap-change/
Helm chart does not have this feature.

thanks, I did not know about this feature


Tilemap Custom Data Mismatch

Godot version
Godot_v4.1-stable
System information
Godot v4.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated AMD Radeon RX 5700 (Advanced Micro Devices, Inc.; 31.0.12027.9001) - AMD Ryzen 7 3700X 8-Core Processor (16 Threads)
Issue description
Iterate through cells in Tilemap, setting custom data.
Iterate through those cells, retrieving data.
The retrieved data does not match the set data.
Steps to reproduce
Scratch:
Create Tilemap, Tileset, Tile.
Create layer and custom data layer.
Create resource to hold data
Draw some tiles on Tilemap.
In attached script, iterate through used cells, set custom data.
Iterate through used cells, retrieve data.
Data does not match.
From minimal project:
Run Tilemap scene. Data prints.
Minimal reproduction project
MinimalReproductionTilemapCustomData.zip

I may have a fundamental misunderstanding about how tile data/custom data layers work. While trying to find other bugs related to this, it may simply be the case that custom data layers are "per tile" in that there is one value per type of tile in your tileset, not per tile in the tilemap?
Actually, this seems to be the case. I should probably close this. Seems that below proposal suggests this:
https://github.com/godotengine/godot-proposals/issues/6606

Closed, as the bug is actually the TileMap system working as designed.


Target encoding and SHAP values

Hello,
First of all thanks for this awesome package.
I'd like to ask @slundberg a question: I've read several issues on this github about how to interpret SHAP values with one-hot encoded variables by leveraging SHAP's additivity.
What if I have a high cardinality feature and I want to use target encoding?
Thank you.

I am also curious about how to handle target-encoded categorical variables. It seems like this encoding technique may introduce some black-box properties and SHAP may not handle it well.

Also curious here


cloud reader URL "epubs" query string parameter not preserved by automatic "goto" URL rewrite

Regression from https://github.com/readium/readium-js-viewer/commit/2027bf2572abcc2188e493dffa96821da18d193d

Fixed via https://github.com/readium/readium-js-viewer/commit/a80336fc4dc5e398c45c4da7197356933b630f83
Building...
https://travis-ci.org/readium/readium-js-viewer/builds/272488400

Test with:
http://readium.surge.sh/?epubs=https%3A%2F%2Freadium.firebaseapp.com%2Fepub_content%2Fepub_library.json
(open ebook from library, wait for goto URL query string param to be set => the epubs param should be preserved)


non-gemm_driver extended_sgemm --> wrong results

It is possible that extended_sgemm invoke cblas_sgemm or ref_gemm with
unsupported (integer/packed) formats, leading to test failures.
Incorrect extended_sgemm implementations can occur in 2 cases:

compile with USE_CBLAS --> cblas_sgemm
or mayiuse(sse41) is false, so ref_gemm<float> is used.

A poor solution might be to fail primitive creation in one of the incompletely handled cases.
I would prefer that alternate code paths detect and handle the inappropriate extended_sgemm calls with a correct 'C' impl.  This could be via a non-JIT gemm_driver call, or maybe some appropriate ref_gemm<T> call or some other specialty reference impl.

Environment
mkl-dnn v1.0
Steps to reproduce
Either compiled with USE_CBLAS or modify extended_sgemm to push
everything through ref_gemm<float> instead of gemm_driver or run on some
very old x86 machine [I guess].
Actual behavior
Tests fail.  Wrong results frequently occur for 'Packed' [integer] formats when extended_sgemm chooses to invoke cblas_sgemm or ref_gemm<float> instead of gemm_driver
Expected behavior
Tests pass
Original [longer] outputs in #415

Hi @kruus .
These two issues are separate. The item 1. should be addressed as part of the #514 .
Regarding item number 2, we should be returning unimplemented as we have absolutely no support for those as of now.
It can be fixed by applying the following patch:
diff --git a/src/cpu/gemm/f32/ref_gemm_f32.cpp b/src/cpu/gemm/f32/ref_gemm_f32.cpp
index 183486b..b103b15 100644
--- a/src/cpu/gemm/f32/ref_gemm_f32.cpp
+++ b/src/cpu/gemm/f32/ref_gemm_f32.cpp
@@ -185,6 +185,10 @@ mkldnn_status_t ref_gemm(
         const int *lda_, const data_t *B, const int *ldb_, const data_t *beta_,
         data_t *C, const int *ldc_, const data_t *bias) {

+    if (!( utils::one_of(*transa, 'n', 'N', 't', 'T');
+           && utils::one_of(*transb, 'n', 'N', 't', 'T')))
+        return mkldnn_unimplemented;
+
     bool isTransA = (*transa_ == 'T' || *transa_ == 't');
     bool isTransB = (*transb_ == 'T' || *transb_ == 't');
     const int M = *M_, N = *N_, K = *K_;
diff --git a/src/cpu/gemm/s8x8s32/ref_gemm_s8x8s32.cpp b/src/cpu/gemm/s8x8s32/ref_gemm_s8x8s32.cpp
index ae3ca7f..9c53886 100644
--- a/src/cpu/gemm/s8x8s32/ref_gemm_s8x8s32.cpp
+++ b/src/cpu/gemm/s8x8s32/ref_gemm_s8x8s32.cpp
@@ -39,6 +39,10 @@ mkldnn_status_t ref_gemm_s8x8s32(const char *transa, const char *transb,
     if (*M == 0 || *N == 0 || *K == 0)
         return mkldnn_success;

+    if (!( utils::one_of(*transa, 'n', 'N', 't', 'T');
+           && utils::one_of(*transb, 'n', 'N', 't', 'T')))
+        return mkldnn_unimplemented;
+
     bool OCisR = (*offsetc == 'R' || *offsetc == 'r');
     bool OCisC = (*offsetc == 'C' || *offsetc == 'c');
     bool AisN = (*transa == 'N' || *transa == 'n');

``

Still a tiny crack in USE_CBLAS case, after applying #514 and this patch.

Tested with USE_CBLAS [and without SSE] so ref_gemm<float> is a backup method.
Only one test fails

45: [ RUN      ] TestGEMM_fp32/gemm_test.TestGEMM/19
45: [  SKIPPED ] CPU does not support non-zero offsets.
45: [       OK ] TestGEMM_fp32/gemm_test.TestGEMM/19 (0 ms)
45: [ RUN      ] TestGEMM_fp32/gemm_test.TestGEMM/20
45: [  SKIPPED ] CPU does not support non-zero offsets.
45: [       OK ] TestGEMM_fp32/gemm_test.TestGEMM/20 (0 ms)
45: [ RUN      ] TestGEMM_fp32/gemm_test.TestGEMM/21
45: /local/kruus/mkl-dnn/tests/gtests/test_gemm_common.hpp:445: Failure
45: e evaluates to 3.8084843158721924,

--> 97% tests passed, 1 tests failed out of 37

Tested without USE_CBLAS and with ref_gemm always (gemm_driver disabled), test 45:../21+ are all UNIMPL:

45: [ RUN      ] TestGEMM_packed_fp32/gemm_test.TestGEMM/21
45: ref_gemm<float>(P,t;MNK=2000,2000,2000;alpha=1.000000,A@ld=2000,B@ld=2000,beta=0.000000,C@ld=2000,bias)
45: [  UNIMPL  ] Implementation not found
45: [       OK ] TestGEMM_packed_fp32/gemm_test.TestGEMM/21 (116 ms)

---> "100% test passed, 0 tests failed out of 37"

Not sure what condition ref_gemm is catching that USE_CBLAS still needs to check.

Trying if (!force_jit_nocopy_gemm && !(packed_A || packed_B)) { instead of #514 suggestion...

Isn't
!force_jit_nocopy_gemm && !(packed_A || packed_B)
the same as
!(force_jit_nocopy_gemm || packed_A || packed_B)?

This should be completely equivalent:
!( A || B) <-> !A && !B.
Here I suspect something else is going on.

duh, same.  I'm ready for the weekend.
...
45: [  FAILED  ] TestGEMM_fp32/gemm_test.TestGEMM/21, where GetParam() = 104-byte object <6E-6E 00-00 00-00 00-00 D0-07 00-00 00-00 00-00 D0-07 00-00 00-00 00-00 D0-07 00-00 00-00 00-00 00-00 80-3F 00-00 00-00 D0-07 00-00 00-00 00-00 D0-07 00-00 00-00 00-00 D0-07 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00> (617 ms)
45: [ RUN      ] TestGEMM_fp32/gemm_test.TestGEMM/22

So I ran the test and with the patches applied, it will end up with a call to cblas_sgemm (it will not fallback to ref_gemm) as inputs are not packed, and force_no_copy = false.

Got identical wrong result from

Blas from intel-mkl-64bit-2018.2-046 and
"Fortran 77 reference implementation".

So I tried with export OMP_NUM_THREADS=1, and everything is correct.
Maybe it's yet another case of omp library mismatch on x86.  I'm going to use ref_gemm on x86, and only USE_CBLAS on my VE Aurora platform (only a single openmp available).
Your patches completely fix the packed-format bugs, @mgouicem.  Many thanks.

Glad to hear that the patches fixed your issues.
Yes it seems to be an issue with mixing OMP runtimes.
I build MKL-DNN with gcc 4.8.3. I ran it with MKL 2019.4 on an AVX2 system (Xeon E5 E5-2699) and OMP_NUM_THREADS=22 and it indeed fails. However, if I force load libiomp5 by using LD_PRELOAD=libiomp5.so the test passes.
If you can use MKL for cblas calls, you have 3 options to not face this omp runtime issue:

use clang compiler
explicitly link to libiomp5.so (using LD_PRELOAD for example)
set the MKL_THREADING_LAYER=GNU environment variable to make MKL use the GNU OMP runtime.

The two first options are preferred since libiomp generally provides better performance.
Hope this helps.


autograd.optim wrapper does not update state value

It seems that autograd.optim wrapper doesn't update "state" value. It outputs "states", but it is impossible to use it iteratively.
local function wrap(optimfn)
   return function(fn, state, params)
      local states = { }
      local flatParams = util.sortedFlatten(params)
      for i = 1, #flatParams do
         states[i] = util.deepCopy(state)   --this is a deep copy of state, so it is not updated
      end
      return function(...)
         local out = {fn(params, ...)}
         local grads, loss = out[1], out[2]
         local flatGrads = util.sortedFlatten(grads)
         for i = 1, #flatGrads do
            local grad = flatGrads[i]
            optimfn(function()
               return loss, grad
            end, flatParams[i], states[i])
         end
         return table.unpack(out)
      end, states   --now, states is a table of states, which is impossible to pass back to the wrapper
   end
end

That's fine, it gives you the states table it uses so you can manually change things per weight tensor (if you wish), but you don't actually pass it back to any function.
It's saved inside the wrapper closure already.
Here's how to use the optim wrapper:

optim/init.lua calls wrap() exactly once on initialization (per optimization method):

for k, v in pairs(require 'optim') do
   opt[k] = wrap(v)
end

return opt

you call autograd.optim.sgd(df,state,params) ONCE to get the optimizing function:

local df = autograd(f, {optimize = true})
local state = {learningRate=1e-2}
local optimizer, states = autograd.optim.sgd(df, state, params)

you then use optimizer to update your weights at each iteration:

local grads, loss = optimizer(data, target)

*Example adapted from optim tests here and here

The first test case works because the learning rate does not decay. However, in most cases we want the learning rate to decay, and that needs the number of iteration, which is stored in the variable states. Additionally, the moments matrices are also stored in the variable states. The call
local grads, loss = optimizer(data, target)

will always assume the number of iteration is zero (or one) and moment matrices are empty in every iteration.

Did anyone find a good solution to this without repeated calls to autograd.optim? It does seem the wrapper doesn't handle the state properly as hbqjzj pointed out.

@eugenium there doesn't seem to be an issue. state is created once and then kept as a local variable in optimizer.

Ah yea I see now. thanks.

@ghostcow So, is there a complete working  example (like the mnist one) on how to use Optim?


Sendfile

I will possibly be working on an asio impl of sendfile/TransmitFile. asio is where this belongs anyhow, so closing the PR for now.


Registering runtimes in Compass Director

Description
Compass Manager now is able to register runtimes in Compass Director
Changes proposed in this pull request:

registered runtimes in the Compass Director

changed the version of Kyma Resource API to v1beta2, we are using the latest version

ginkgo tests adapted

Related issue(s)
#10

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

/test all

/test all


enable ios smooth scroll

Add user customizable css file.

static/css/custom.css

Add -webkit-overflow-scrolling: touch; at custom.css

Why did you close it?

I'm organizing my Pull Requests that I opened.
I just mistook this repo for my private repo.
Thank you for letting me know.
＼(^o^)／

Hi @peaceiris,
There is already a way to create custom CSS/JS files. Please read this, though I am not sure if it is fully up-to-date and clear.
Also, can -webkit-overflow-scrolling: touch; cause issues on other platforms? What about other browser prefixes?

There is already a way to create custom CSS/JS files. Please read this, though I am not sure if it is fully up-to-date and clear.

@Pilskalns
Thank you for letting me know that information!
Like you say, static/css/custom.css will be overwritten by ${hugo_project_root}/static/css/custom.css.
We have to use another file name.

Also, can -webkit-overflow-scrolling: touch; cause issues on other platforms? What about other browser prefixes?

As far as I checked, the following platforms enable momentum scrolling as default and -webkit-overflow-scrolling: touch; is safe.

macOS

Safari
Chrome
Vivaldi

Android Chrome

But, iOS Safari & iOS Chrome disable momentum scrolling on this theme as default. I think that this is bad usability on iOS devices. So, I sent this PR to enable iOS Chrome & iOS Safari to use momentum scrolling.

Close this. We need another approach using SCSS and considering "original" and "flex".


Feature(RNN)

Add a model to train RNN, using pytorch modules
Add different examples

Do not merge this branch - I'm working on a mergeable version here: https://github.com/unit8co/u8timeseries/tree/feature/rnns-improvements


Oro 4.2 Webpack Compatibility Issue

Unable to build JS dependencies in 4.2.X:

Have traced it down to the following 4.2 Change:
https://github.com/oroinc/platform/blob/4.2.6/CHANGELOG.md#webpack-config-builder
In theory it should be a matter of adjusting:
vendor/aligent/braintree-orocommerce/src/Resources/views/layouts/blank/config/jsmodules.yml
aliases:
  aligentbraintree/js/app/components/braintree-method-component$: aligentbraintree/js/app/components/braintree-method-component
  aligentbraintree/js/app/components/order-review-component$: aligentbraintree/js/app/components/order-review-component
- braintree-web-drop-in$: npmassets/braintree-web-drop-in
+ braintree-web-drop-in$: braintree-web-drop-in

dynamic-imports:
  aligentbraintree:
    - aligentbraintree/js/app/components/braintree-method-component
    - aligentbraintree/js/app/components/order-review-component
    - braintree-web-drop-in

This issue has now been resolved in the 4.2 branch and will be tagged for release shortly


Adds ActionContext to Validation contexts

This change makes it possible to access the ActionContext/ActionDescriptor
from inside of validators and client validators.

/cc @dougbu

:shipit:


Adding the Growth Chamber MK2

It's an improved version of the current growth chamber.
It yields 4x the amounts of the growth chamber while using only 2x as much power.
It has 9 input slots and 27 output slots.
It's also a much nicer lime glass.

https://imgur.com/a/3ZMEpTx it currently doesnt even show the output slots.

There's no panes after that output row, that might be the cause?

Probably, also iirc you can just extend the GrowthChamber original

I can push my updated version? It still doesnt show the output slots though

I'll try adding a pane at the end, to see if it recognizes it

God finally it passed the check

https://imgur.com/a/YvrY7jh this looks a little dumb currently please fix it up

Wdym fix it?
removing the pane at bottom right, yes
but I wanted it to have a lot of output slots but I guess I'll make it have 7 input and 21 output
thanks for the word

https://imgur.com/a/F19NGa4 If you want to this might be an idea for the ui

yes that's what I was thinking to do

Ok that last commit finally settled it and now the gcmk2 is working as intended without any errors in the console or any undesired effect
but I noticed that despite the increased amount of output slots it won't output more than one set of products at a time without it needing the slots to be empty; is there a way to make it so it doesn't need the output slots to be empty?

You would have to modify AMachine, I was looking at this the other day trying to find a way to get it working.

Ah well it's okay if it's that way. Other than that as I said the machine looks good to me so if you'd be ok to merge it now or if there's anything with it tell me, thanks.

Im fixing it as we speak
Took at peak at Silmefun's container to see if I could do it that way

Oh well thanks for that!

:eyes: I dont think 1 carrot to 12 will make very many people on server happy

Hm I was doing that for the 4x products, and saw that carrots give 3 so math is 12

I suppose a better way of balancing it is to make the recipe need two growth chambers and put the 12 to a 8

Thank you for the pull request 👍  Just merged.

Oh good, no need to balance it now


Remove reference to "backspace" regex in example

Add a Link to the page with the problem:
On this challenge: https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings/
Currently we use the word "backspace" to describe the \b expression. While this may be literally what it's called, it's unnecessarily confusing. \b is generally used to indicate the "boundary between words".
Rather than teach people something so esoteric as to have an entire Stack Overflow discussion about it, I recommend we just call it "the boundary between words".
I recommend we update this sentence:
"First is to allow you to use characters you might not otherwise be able to type out, such as a backspace. Second is to allow you to represent multiple quotes in a string without JavaScript misinterpreting what you mean."
I recommend we turn it into an ordered list for clarity and use carriage return as the example instead of backspace:

To allow you to use characters you may not otherwise be able to type out, such as a carriage returns.
To allow you to represent multiple quotes in a string without JavaScript misinterpreting what you mean.

Then, instead of calling \b "backspace" in the table, I recommend we call it "word boundary"

Would love to work on this @QuincyLarson, is it possible to create a PR

@co16353sidak Sure it's all yours 👍
Please keep us posted on your progress, and let us know if you have any questions. (Join gitter.im/freecodecamp/contributors if you haven't yet - a great place to get help)

@QuincyLarson made all the changes discussed, please review. 👍

Hi! So I'm looking to hopefully contribute to my first repo, but it seems this issue is already taken care of. What issues can a newbie tackle?

@EladKarni Though they may not all be for newbies, you can simply go to https://github.com/freeCodeCamp/freeCodeCamp/pulls and use the following filter to find issues where we could really use some help.
is:open label:"help wanted" sort:created-asc

@EladKarni also be on the lookout for the label good first issue, these also pop up from time to time.
😃

Okay, thanks guys!


Missing classes in vuetify element when shallowMount

Version
1.0.0-beta.22
Reproduction link
https://codesandbox.io/s/nn2p0w8300
Steps to reproduce
When shallowMounting a  with a class="my-custom-class", I cannot find this element through wrapper.find(.my-custom-class)  + this class is not present in snapshot
<template>
  <v-container class="my-custom-class">

  </v-container>
</template>

What is expected?
<v-container-stub
  class="my-custom-class"
/>

What is actually happening?
<v-container-stub
  tag="div"
/>

Also I cannot do any find(".my-custom-class"). That is a regression compared to beta 20.
ps:
I don't care about tag="div" in this issue. Maybe it could be better to remove Vuetify prop (but it is a "could", not a "must" have in this bug)

Thanks for the bug report.
I'll fix the issue with the class not rendering.
The other issue, of the class not working as a selector, is intended behavior. You should select components using a component selector, name selector, or ref selector. Other selectors are not supported.

In the .find() documentation, I can read: Use any valid selector.
https://vue-test-utils.vuejs.org/api/wrapper/find.html
In the selector documentation, I can read:
``
CSS Selectors
Mount handles any valid CSS selector:
tag selectors (div, foo, bar)
class selectors (.foo, .bar)
attribute selectors ([foo], [foo="bar"])
id selectors (#foo, #bar)
pseudo selectors (div:first-of-type)
``
https://vue-test-utils.vuejs.org/api/selectors.html
So I believe CSS selectors should be supported selectors.
=> Anyway I believe that issue with class not rendering will fix it.

Sorry that the docs are unclear, I'll rewrite them to improve clarity.
The issue won't be fixed, if it was working previously it was a bug.  CSS selectors are used to match rendered HTMLElements, stubbed components don't render HTMLElements, so a class selector won't work.

Hi @eddyerburgh here to say the docs are still unclear on this in my opinion. Particularly the part about descendent combinators, makes it seems like you can use find or contains on component rendered html. Maybe a sentence to the effect of what you aid above describing how stubbed components dont render HTMLElements so a class selector wont work there and to use the component name instead.

Mount handles any valid CSS selector:
tag selectors (div, foo, bar)
class selectors (.foo, .bar)
attribute selectors ([foo], [foo="bar"])
id selectors (#foo, #bar)
pseudo selectors (div:first-of-type)
You can also use combinators:
direct descendant combinator (div > #bar > .foo)
general descendant combinator (div #bar .foo)
adjacent sibling selector (div + .foo)
general sibling selector (div ~ .foo)


Some packages have an empty Download URL

Hi
When I typed sudo deb-get upgrade I got the message [!] ERROR! Download URL is empty. Skipping. Is it a bug?

@dtantono I've just pushed a change to the logging to git master. Can you run deb-get upgrade using git master and it will identify which packages are affected so I can investigate :+1:

Hi
is this what you mean?

No :slightly_smiling_face:
Please clone this git repo and run ./deb-get update from the git clone, not the installed version.

Hi
Yes, I found something

So, can this issue be closed? Looks like git master is working correctly.

it looks like there are some apps that have version conflicts. that means if the conflicting apps are updating itself to the newest version. this problem will be gone automatically. Is that so?

Please provide post the full output (text not screenshot) of the apps which have a version mismatch.

here it is
[] WARNING! draw.io (16.1.2) has an update pending for: 18.1.3
[+] Updating /var/cache/deb-get/franz.json
[+] Updating /var/cache/deb-get/github-desktop.json
[+] Updating /var/cache/deb-get/google-chat-electron.json
[] WARNING! google-chat-electron (2.15.1) has an update pending for: 2.16.1
[+] Updating /var/cache/deb-get/igdm.json
[+] Updating /var/cache/deb-get/ksnip.json
[] WARNING! ksnip (1.9.1-0build0~ubuntu20.04) has an update pending for: 1.10.0
[+] Updating /var/cache/deb-get/p3x-onenote.json
[+] Updating /var/cache/deb-get/rustdesk.json
[] WARNING! shutter-encoder (15.7) has an update pending for: 16.0
[+] Updating /var/cache/deb-get/system-monitoring-center.json
[*] WARNING! system-monitoring-center (0.3.2~beta1) has an update pending for: 1.17.0

Everything looks correct. I'll change the WARNING to INFO, since it is not a warning, just a notification that updates are available.


Merlin Voice Conversion file_id_list.scp file

I am trying to run the voice conversion example that came with merlin.
It gave me an error,,
Traceback (most recent call last):
File "/home/aholab/merlin/src/run_merlin.py", line 1224, in
main_function(cfg)
File "/home/aholab/merlin/src/run_merlin.py", line 511, in main_function
assert cfg.train_file_number+cfg.valid_file_number+cfg.test_file_number == total_file_number, 'check train, valid, test file number'
AssertionError: check train, valid, test file number
I was told that 'number of train, valid, test files is not matching with total number in file_id_list.scp -- please check config files, if they all sum upto number of files in file_id_list.scp'.
But, turns out the file_id_list.scp file (in ..\voice_conversion\s1\experiments\bdl\acoustic_model\data) doesn't really contain a list of files but a single line which is an asterisk.
Has anyone else faced this issue? Any idea how to solve this?

based on what I see in this file: https://github.com/CSTR-Edinburgh/merlin/blob/master/egs/voice_conversion/s1/03_align_src_with_target.sh
you should not have a star in the file_id_list.scp. Are you sure that "${src_aligned_feat_dir}/mgc/" directory exists?

Yes I have the directory that you mentioned.
On running step 3 I am getting the following error. Any thoughts?
Step 3:
Align source acoustic features with target acoustic features...
--- DTW alignment started ---
100001
100012
100023
100034
100045
100056
100067
100078
100100
100089
100111
100122
100133
100155
100144
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/aholab/anaconda3/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/aholab/anaconda3/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "//home/aholab/merlin/misc/scripts/voice_conversion/dtw_aligner_festvox.py", line 113, in process
src_features, src_frame_number = io_funcs.load_binary_file_frame(src_mgc_file, mgc_dim)
File "/home/aholab/merlin/misc/scripts/voice_conversion/binary_io.py", line 30, in load_binary_file_frame
features = features[:(dimension * frame_number)]
TypeError: slice indices must be integers or None or have an index method
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "//home/aholab/merlin/misc/scripts/voice_conversion/dtw_aligner_festvox.py", line 158, in
pool.map(process, mgc_files)
File "/home/aholab/anaconda3/lib/python3.6/multiprocessing/pool.py", line 260, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/aholab/anaconda3/lib/python3.6/multiprocessing/pool.py", line 608, in get
raise self._value
TypeError: slice indices must be integers or None or have an index method
Copying features to acoustic data directory...
preparing file list...
done...!

As an alternative, try replacing dtw_aligner_festvox.py with dtw_aligner.py at line number 60.

Actually I am now running it step by step and  the error is from the second step. How can I solve this?
Error:
You should have your features ready in: ///home/aholab/merlin/egs/voice_conversion/s1/database/bdl/feats
--- Feature extraction completion time: 5 min. 59 sec ---
Traceback (most recent call last):
File "//home/aholab/merlin/misc/scripts/voice_conversion/compute_lf0_stats.py", line 47, in
mean_f0, std_f0 = compute_mean_and_std(lf0_file_list)
File "//home/aholab/merlin/misc/scripts/voice_conversion/compute_lf0_stats.py", line 14, in compute_mean_and_std
lf0_arr, frame_number = io_funcs.load_binary_file_frame(lf0_file, 1)
File "/home/aholab/merlin/misc/scripts/voice_conversion/binary_io.py", line 30, in load_binary_file_frame
features = features[:(dimension * frame_number)]
TypeError: slice indices must be integers or None or have an index method

The current setup doesn't use lf0 stats for transformation of pitch. Therefore, you can ignore this error and proceed further.
However, if your features are not extracted properly, you may likely face this error again.

I don't know if this has something to do with your problem, just a guess:
I also had an error message when executing compute_lf0_stats.py, what I did to fix it was to increase the dimension of "all_files_lf0_arr" in line 10. It seems that the fixed dimension 200000 is not enough when training with larger datasets.

Yeah, thank you for reminding that. Anyway, I'll remove this code -- as we're not using the stats for final F0 transformation.

@ronanki  “As an alternative, try replacing dtw_aligner_festvox.py with dtw_aligner.py at line number 60.” I have done this, but it is still wrong.
multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last):   File "/root/anaconda3/lib/python3.6/multiprocessing/pool.py", line 119, in worker     result = (True, func(*args, **kwds))   File "/root/anaconda3/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar     return list(map(*args))   File "/data1/merlin-master/misc/scripts/voice_conversion/dtw_aligner.py", line 106, in process     src_features, src_frame_number = io_funcs.load_binary_file_frame(src_mgc_file, mgc_dim)   File "/data1/merlin-master/misc/scripts/voice_conversion/binary_io.py", line 30, in load_binary_file_frame     features = features[:(dimension * frame_number)] TypeError: slice indices must be integers or None or have an __index__ method """

@ronanki “As an alternative, try replacing dtw_aligner_festvox.py with dtw_aligner.py at line number 60.” I have done this, but it is still wrong.
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/root/anaconda3/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/root/anaconda3/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/data1/merlin-master/misc/scripts/voice_conversion/dtw_aligner.py", line 106, in process
src_features, src_frame_number = io_funcs.load_binary_file_frame(src_mgc_file, mgc_dim)
File "/data1/merlin-master/misc/scripts/voice_conversion/binary_io.py", line 30, in load_binary_file_frame
features = features[:(dimension * frame_number)]
TypeError: slice indices must be integers or None or have an index method
"""

@ronanki  I have solved this problem by using Environmental python 2.7.
source activate py2_7

Yes I have the directory that you mentioned.
On running step 3 I am getting the following error. Any thoughts?
Step 3:
Align source acoustic features with target acoustic features...
--- DTW alignment started ---
100001
100012
100023
100034
100045
100056
100067
100078
100100
100089
100111
100122
100133
100155
100144
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/aholab/anaconda3/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/aholab/anaconda3/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "//home/aholab/merlin/misc/scripts/voice_conversion/dtw_aligner_festvox.py", line 113, in process
src_features, src_frame_number = io_funcs.load_binary_file_frame(src_mgc_file, mgc_dim)
File "/home/aholab/merlin/misc/scripts/voice_conversion/binary_io.py", line 30, in load_binary_file_frame
features = features[:(dimension * frame_number)]
TypeError: slice indices must be integers or None or have an index method
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "//home/aholab/merlin/misc/scripts/voice_conversion/dtw_aligner_festvox.py", line 158, in
pool.map(process, mgc_files)
File "/home/aholab/anaconda3/lib/python3.6/multiprocessing/pool.py", line 260, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/aholab/anaconda3/lib/python3.6/multiprocessing/pool.py", line 608, in get
raise self._value
TypeError: slice indices must be integers or None or have an index method
Copying features to acoustic data directory...
preparing file list...
done...!

Also had an AssertionError when I ran run_demo_vc.sh, and when I ran the steps one by one, encountered this same TypeError on step 03.

found the code that reports the error -- binary_io.py located at misc/scripts/voice_conversion

the line features = features[:(dimension * frame_number)] may use an index that has a float type because frame_number = features.size / dimension
forced the frame_number to have int type by changing that line of code into frame_number = int(features.size / dimension) -- this fixed the error for me

Other notes:

I'm using a MacBook running at macOS Mojave 10.14.4
using pyenv and virtualenv to run a python 3.6.8 with the following packages for merlin

numpy==1.16.0
scipy==1.0.0
scikit-learn==0.19.2
matplotlib==2.2.3
bandmat==0.7
Theano==1.0.4
Keras==2.2.2
h5py==2.8.0
tensorflow==1.6.0


Cross-build from Linux x64 host to Linux arm64

I am trying to compile from linux-x64 to linux-arm64. When I type flutter build linux --target-platform linux-arm64 I get this error: Cross-build from Linux x64 host to Linux arm64 target is not currently supported.
this is my flutter doctor -v
[✓] Flutter (Channel stable, 3.3.10, on Ubuntu 18.04.5 LTS 5.4.0-124-generic, locale es_CU)
    • Flutter version 3.3.10 on channel stable at /home/jaime/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 135454af32 (hace 3 semanas), 2022-12-15 07:36:55 -0800
    • Engine revision 3316dd8728
    • Dart version 2.18.6
    • DevTools version 2.15.0

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] VS Code (version 1.67.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.56.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Ubuntu 18.04.5 LTS 5.4.0-124-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 93.0.4577.63

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

@jromandigitalprojex
As the error indicates Cross-build from Linux x64 host to Linux arm64 target is not currently supported, this isn't supported yet and you can track it here.
Closing as a duplicate.

my question is: if it is not supported then when i type flutter build linux --help, then it shows that it can be compiled.

@jromandigitalprojex  Given the issue linked for implementing arm64 cross compilation is still open I think this rather a bug in the --help documentation in the flutter build linux command rather than it showing anything in regards to it being able to be compiled.


TS2339: Property 'message' does not exist on type 'AtMessage'.

TypeScript Version:  3.7.2

Search Terms:
Code
import {
  LitElement,
  html,
  property,
} from "lit-element";

export class AtMessage extends LitElement {
  static get properties() {
    return { message: { type: String } };
  }
  constructor() {
    super();
    this.message = "default";
  }

  render() {
    return html`
      <div>${this.message}</div>
    `;
  }
}
if (!customElements.get("at-message")) {
  customElements.define("at-message", AtMessage);
}

Expected behavior:
Actual behavior:
TS2339: Property 'message' does not exist on type 'AtMessage'.
Playground Link:
Related Issues:

... and? What is the expected behavior? You didn't fill out the issue template properly.
Your class has no message property, and I doubt that your base class LitElement has one either.

Please provide a self-contained repro


Add settings button

Add a Settings button to open the Language Filter popup box.

 Nice work man, thank you for added the bottom where people can find it :)!
One thing: I think we just need to also update the template file too: https://github.com/infosecstreams/infosecstreams.github.io/blob/main/templates/index.tmpl.md

The index.tmpl.md has been updated. Let me know if you see anything else.


Respect directory option for steps again

close #4314

-> not tested jet but should fix it

I did not test but I don't see why working directory be anyhow related to workspace or permissions (it could be of course relative but not limited to)

On a related note: as this is all just for directory:: arguably this is a niche param which almost not used anywhere and not doing much else than cd to a subdir (for often no reason). If this happens to cause general issues for the whole rootless approach, I'd be in strong favor of removing it.

On a related note: as this is all just because of directory:: arguably this is a niche param which almost not used anywhere and not doing much else than cd to a subdir (for often no reason). If this happens to cause general issues for the whole rootless approach, I'd be in strong favor of removing it.

I strongly disagree on this, we use it quite often, especially since for plugins you can't specify commands option to cd subdir otherwise plugin itself won't run and would not be secure anymore but there are many cases where for example reviewdog plugins where you need to run eslint only for subdir where frontend code is located and golangci-lint on directory where backend code is, it's also way more clean this way

As said in my previous comment, it is about the mount point and its permissions which is different for subdirs on k8s. I wouldn't have changed it (i.e. get rid of workDir) otherwise in the previous/initial PR.
While I am not saying that this PR won't work per se (before I tested it), I am not so happy about an (early) approval here without any (practical) tests (given the impact and size of the previous PR) without waiting for at least an reply from the former PR creator (which in this case happens to be me but that doesn't matter overall). I.e, if I wouldn't have put a "please wait" just shortly after, this one would have likely already been merged.

I'm sorry for a bit rushed approval but initially code looked good code wise and as this is something that is pretty much regression for me I approved it

The direcotory is important for plugins yes :)
I'd like to see both working (rootles & dir) ... I tested docker backend witch works just fine with workdir and an non-root user.
For k8s I need to test things, is pull here is first and formost to discusst getting a good solution.


Enhancing Build Reproducibility and Stability for NetGauze Crate

Maybe there should be a release branch for every new release, which contains these slight adjustments. But I can only create a pull request against an existing branch. I do not suggest to merge into main. If you agree, you could create a release branch and I would recreate the PR against that new branch.
I will gladly work your comments and critics into this PR, if there are any.
I hope I have understood your comment on #89 correctly.

Thank you @PhilVince96  for your PR. Few notes points

Since we haven't reached version 1.0 yet, I'm not too eager to add changes directly to version branches.
Why the output of release.sh is putting iana_ipfix_information_elements.xml to registry/subregistry not just registry?
Our CI runs regular builds directly from IANA, this was done in purpose since we are also active in IETF and would like to make sure NetGauze works with any new code point added to the IPFIX registry. It's not clear to me how with this PR we can continue to do so without creating new releases?

Proposal: Enhancing Build Reproducibility and Stability for NetGauze Crate
I think I understand the requirements better now and this is what I propose:
Context:
I would like to ensure older releases of NetGauze remain compilable, even as external resources (like the IANA template) change, maintaining stability across community projects that rely on NetGauze.
Requirements:

Main Branch: The main branch should always use the latest IANA XML schema, allowing for up-to-date development.
Older Releases: Should continue to compile without dependency on external resources that may change over time.

Proposed Solution:

Fetching from IANA: The main branch will continue fetching the latest .xml schema from IANA to stay current with new developments.
Feature Flag for Backwards Compatibility: We propose adding a feature flag, backwards-compatibility-snapshot, to allow compilation from a static .xml file stored in crates.io. This would ensure that older releases can always compile.
Release Process Adjustment:

Introduce a GitHub workflow called release, which will run the release.sh script as part of the release process.
The .xml schema will be packaged as a static component during the cargo publish process. This can be achieved by including the static .xml in the crate through the Cargo.toml file, ensuring the schema version used at release time is part of the published crate.
The workflow will handle publishing to crates.io, streamlining the process.

This approach aims to balance staying current with the latest schema in the main branch while ensuring the stability and reproducibility of older versions. It also adds a reliable workflow that supports projects depending on NetGauze without the risk of breaking builds due to external changes.
This way a user of the crate can decide to use the latest registry version or fall back to the version which successfully compiled in case of an emergency.


[Question] Behaviour when receiving a struct / dataclass

We are considering implementing activities in Python, and workflows in Go. When calling activities in Go, it is possible to pass a struct to the activity (e.g. https://github.com/uber-common/cadence-samples/blob/56c4ffffd38e8596075c56f03f82c5a80ae77b92/cmd/samples/fileprocessing/activities.go). We are curious about what the behaviour is like when the activity is implemented using this Python client. Judging from https://github.com/firdaus/cadence-python/blob/729420cfcd5adb0496005758f1d8d6eb1d5a2223/cadence/conversions.py#L125, it seems like the argument will simply be a Python dictionary. If this is the case, are there any plans for automatically converting this to say a Python dataclass?
The use-case for using a single parameter (much like a single message) activity is for versioning. It has been mentioned several times, and the solution seems to always point to this approach for dealing with an activity's contract.

I missed this requirement. Thanks for bringing this to my attention. At the moment everything becomes a Python primitive, list or dictionary.
I'll add this to 1.1 release. It should be fairly trivial to support as long as the activity method is type annotated.


merak.exe using absolute install path of python.exe under the hood

First of all, thanks for this amazing tool! It has spared us weeks of development and "reinventing the wheel".
We are incorporating part of our multi python versions compiling environment in a custom repository where merak is included.
Nevertheless, we are facing a bit tricky and annoying inconvenient: the "merak.exe" installed in ".\PythonXY\Scripts" folder is configured apparently during pip install with the absolute path of the pyhon.exe we are using. This is a big problem for us because it breaks portability and the fact that we can clone the repo in different root folders than the one used by the dev that installed merak for a custom specific python version.
We dont know how easy or tricky to change this is. We just thought it would be a "nice to have" and report it in order to get some feedback.
Use Case:
(1) python.exe pip install merak
(2) change the root directory where the PythonXY folder resides
(3) notice how the "merak.exe" command fails because it looks for the python.exe in the first installation absolute path.
Thanks in advance,
JC

Thanks for the detailed description. I'll take a look and see what I can do

Thanks Dave,
It really is an awesome tool.

This is a path problem which originates from how Python command-line wrapper is built by the packaging mechanism. merak has indicated setuptools to include a CLI wrapper via the console_scripts argument in setup.py. When the package is installed, it creates a wrapper script that calls the Python interpreter in the Python environment that merak is installed to. There are two scenarios:

The wrapper is located outside of the target Python environment folder
The wrapper is located within such folder

In the 1st case, it makes sense for the script to use absolute path as otherwise it has no knowledge on where to find the correct interpreter.
In the 2nd case, it actually resembles this problem where the shebangs generated by setuptools is not relative to the script file location at all
In either, the issue is not merak specific and there's not much I'm able to deal with it. But for your use case, I'll suggest building a Docker image for your building pipeline and run merak from there

Hi Dave,
I understand it is not a merak concern, but rather the way setuptools receives the python executable.
I was wondering if we could tweak the setuptools package to force it to include a relative path to the python exe.
Could you pin point where these changes should occur in the setuptools package? preferably in a Python39 installation dir?
Thanks in advance!

I'm afraid I'm not the right person to answer the question as I'm not familiar with the implementation details of setuptools.
I noticed that there are Windows containers available for Docker which I think might be of help in your case. Please take a look at https://hub.docker.com/_/microsoft-windows-base-os-images


[W4.5][T11]Eka Buyung Lienadi

Please kindly review.
Feed backs are really appreciated.
Thank you.

Hi, you probably submitted a PR to the wrong repo. You should be submitting here :) https://github.com/nus-cs2103-AY1718S2/addressbook-level2


Dæmon fails to load some .crn (small, flat) files

Dæmon is known to fail on some .crn files. Those files follow a common pattern: a few colors (sometime only one flat color), and a small definition (small amount of pixels).
It may be a crunch bug. I mean, a crnlib bug. Crunch is able to convert those files back to tga properly, it may be a bug in the crnlib standalone file, or a bug in the engine, one of them is probably lacking support for some edgy use case.

Those are known to fail:

m77-blanc.jpg
m77-blanc.crn

rust06e.png
rust06e.crn
When they are loaded as shader component, Dæmon prints this:
Warn: Invalid CRN image: models/mapobjects/kosad/conteneur/rust06e.crn
Warn: Couldn't find image file for shader models/mapobjects/kosad/conteneur/rust06e

Warn: Invalid CRN image: textures/metro/m77-blanc.crn
Warn: Couldn't find image file for shader textures/metro/m77-blanc

Those textures comes from the metro map by KOsAD, you can find a prebuild (reproducing the issue) there: map-metro_0+20190804-154825+39a8bc3.dpk

@illwieckz Tried to reproduce, but map pack was not loaded.
Error is smth about missed tremulous map dependency. May be you can create loadable map with such textures to reproduce?

Sorry, dependency is there: http://gg.illwieckz.net/dl/unvanquished/pkg/res-tremulous_1.2.1.dpk

Can it be related to this? https://github.com/Unity-Technologies/crunch/pull/11

Failed CRN files are in derivative of DXT5 compression format - cCRNFmtDXT5_AGBR, which we doesn't support in the engine (supported ones are cCRNFmtDXT1 |  cCRNFmtDXT3 | cCRNFmtDXT5 | cCRNFmtDXT5A | cCRNFmtDXN_XY - https://github.com/DaemonEngine/Daemon/blob/master/src/engine/renderer/tr_image_crn.cpp#L54).
Looks like we need converting such files into supported formats either internally or externally.

Now reasoning about exact problem with CRN image will be easier:
Warn: CRN image 'models/mapobjects/kosad/conteneur/rust06e.crn' has unsupported format '6'
Warn: Couldn't find image file 'models/mapobjects/kosad/conteneur/rust06e'
Warn: CRN image 'textures/metro/m77-blanc.crn' has unsupported format '6'
Warn: Couldn't find image file 'textures/metro/m77-blanc'

Failed CRN files are in derivative of DXT5 compression format - cCRNFmtDXT5_AGBR, which we doesn't support in the engine (supported ones are cCRNFmtDXT1 | cCRNFmtDXT3 | cCRNFmtDXT5 | cCRNFmtDXT5A | cCRNFmtDXN_XY - https://github.com/DaemonEngine/Daemon/blob/master/src/engine/renderer/tr_image_crn.cpp#L54).

It would be good to support those formats. It's not good if the image converter can select compression preset the engine does not support. The purpose of that image converter is also to select the best compression preset for a given texture, so, the fix would not be to prevent the image compression optimizer to not optimize, but to get the engine to support such formats.

@gimhael, would you know how to add support for DXT5/AGBR like you did with DXT3/BC2 before? (#86).
It looks like crunch produces files using this format with small images with low if no details. So we may do CPU-side conversion if it's too complicated to do it the right way.
The purpose of this effort would not be to support the format natively, but to make sure people can use the image conversion tool without having to test produced files one by one after the compression.
Currently we are forced to workaround the issue by hardcoding compression rules in asset repositories, the knowledge of which texture needs such workaround is acquired through trial and error, and I would like to remove such trial and error from the mapping workflow.
Of course if the engine can support the format natively, it would be better. But the priority is to grok the format whatever the way it is implemented.

I admit I've not read the discussion: I'm trying to see if stuff in more than 100+ issues are still actual after all.
Could it be possible to update original comment to allow for reproduction of the bug, so that future reviewers would be able to quickly check this is fixed, or still a problem?

@bmorel the second comment provide a map that reproduced the issue at the time the issue was created.
So, one can download this map in pkg/, make sure he has no higher version of “metro” map and load the map with /devmap metro and look at console log.

I'll do a deeper read of that soon, then. I'm still browsing all the issues :)

See this crunch PR to add an option to crunch to prevent producing such incompatible files:

https://github.com/DaemonEngine/crunch/pull/30

Anyway, we may still want to get Dæmon being able to read those files if they happen to be produced anyway.


Fixing up SSL support

On startup fallback to non-SSL mode if no cert/key is present to start in secure mode
Consistency for the error messages printed out

LGTM
Should we have an option for the user to have the application exit out if the it could not be started with https? If I deliberately set config.secure = true, the thought is that I may never want my application to start using http. We could add a config called config.https_only = true. We could default it to false.
I understand if you all think this would be too opinionated or make the config too complicated, I just wanted to see what people think.

@jloveland I think wrapping too much logic around it is an overkill. If this is production or anything of real use case, the application will simply start with no SSL mode and accessing it via https:// will fail so it is straightforward and easy to understand that something went wrong there + there are the logs.

Agreed, thanks!

On Jul 18, 2015, at 9:22 AM, Liran Tal<EMAIL_ADDRESS>wrote:
@jloveland I think wrapping too much logic around it is an overkill. If this is production or anything of real use case, the application will simply start with no SSL mode and accessing it via https:// will fail so it is straightforward and easy to understand that something went wrong there + there are the logs.
—
Reply to this email directly or view it on GitHub.

Thanks for the review guys, merging.


Add DodoSource

References

continues #44
continues #7

Code changes

[x] add some more demo deps

[x] ipydatagrid
[x] ipytree

[x] already quite busy, wouldn't add much

[x] ipylab
[x] updated ipywidgets and jupyterlab_widgets

[x] update serialization for strict JSON

[x] add DodoSource

[x] find nodes and lnks

[x] tasks
[x] files
[x] subtasks
[x] task dep
[x] folders-of-files

[ ] example notebook

[x] make panel
[x] load source
[x] make grids
[x] link grids and selection
[x] run tasks

[x] logs without killing UI
[x] without blocking kernel

[x] highlight

[x] dependency paths following file_dep and task_dep links
[x] upstreams
[x] downstreams

[x] collapse nodes and edges

[x] issues noticed while working on app

[x] handle in-place updates (for certain cases)
[x] handle linkHandlers and nodeHandlers better for facets
[x] fix multiple shapes with "canary" attributes (e.g. Rectangle.width and Text.text)
[x] add line_dash to more shapes (via HasStrokeAndFill)
[x] fix center point of custom Rectangle and Ellipse shapes

[x] docs

[x] changelog
[x] clean up some hard-coded positions for facets in docs
[x] update jupyterlite-core and pyodide-kernel

User-facing changes

users of the binder demo will be able to try out the grid against an evolving system

users of the lit demo will see:

note
screen

custom shapes

running tasks based on task selection

ipylab icons

shortest path with particles

upstream/downstream highlight

Backwards-incompatible changes

n/a

Resolve with networkx incoming...

thanks for the review! :heart_eyes:

didn't see the Dodo notebooks in there.

Yep, they don't work in lite because subprocess.Popen. Also doit doesn't import, due to some unvendored stdlib packages... to that end, I started some playground stuff on doitoml, but if course doit relies on subprocess.Popen as well, so only pure-python actions work.

the between particles

will look into it. Trying to get fancy with non-blocking stuff. Got some ideas on how that could be improved.

selection from datagrid

will look into it

selection from datagrid

will look into it

oof, this is general failure, even setting it programmatically doesn't work.
node_selection.selected = [0]
# doesn't highlight `all`

the issue is that we don't update the graphData.nodes._selected when a selection update comes in, and then node-selection thing is getting clobbered by the fancy text junk.

fixed selection on 43202f1

the between particles
will look into it.

Ah, this might due to it actually being a bit more accurate now, as it will only show particles if there is a path of the form:
[file] --> file_dep --> task --> targets --> [other file]

(Or the reverse)
Initially, it kinda lied, as it would follow sibling paths like:
[file] --> file_dep --> task --> file_dep [other file]

So basically: a lot of the nodes aren't particularly sensitive to other nodes. If there's a concrete example, happy to look into it!

I've updated the label to show the path count, a la

the between particles
will look into it.

Ah, this might due to it actually being a bit more accurate now, as it will only show particles if there is a path of the form:
[file] --> file_dep --> task --> targets --> [other file]

(Or the reverse)
Initially, it kinda lied, as it would follow sibling paths like:
[file] --> file_dep --> task --> file_dep --> [other file]

So basically: a lot of the nodes aren't particularly sensitive to other nodes. If there's a concrete example, happy to look into it!

Yeah, that makes sense.  No, I don't think it's worth it to go beyond what you've done.  It's working nicely!

I vote we pull the trigger.  The only thing I could find was that when you try to open some files, it says it can't find them.  Think it is for files that start with .?  Obviously, testing this on 🪟ers, so 🐧 may be fine...


Render suggestions in iron-list

When providing a lot of suggestions, the dropdown is very slow, I have to limit it to around 30 to avoid it being sluggish.
To work around this, I think moving to iron-list would enable unlimited suggestions.

How many elements are we talking about? I would argue that the whole point of autocomplete is to prevent displaying too many elements.
About your suggestion, my only concern of using iron-list is that it will increase the number of dependencies on this component and therefore increase bundle size. I would have to check how much bigger it will grow

I agree with Jaime, the suggestion list should be kept under 10 (IMHO). I personally leave the default value to 5 suggestions max. It's not very user friendly to offer more than 10 suggestions to a user, in a suggestion list. More results should be displayed in a separate container/page.

Our UX disagrees, if the user suggestion selection is limited, the user needs to be informed that additional options are available (with a refined search).
If users are presented with too many suggestions, they will likely refine the search further.
Also we work with lists where options are very similar, so users might do a partial search, start sifting through suggestions, and optionally search further.
Since iron list would enable a complete result set without hampering performance,  it would be a far better approach than "showing 5/3219"

As I said, my main concern is I am not sure how much weight it will add to
the component to include iron-list.
Another thing is I was expecting to re-write the component as a Polymer2
only component at some point very soon because the code and the component
really need a good refactoring and API cleanup.
Question: are you on Polymer1? 2? planning to migrate to 2 soon?
On Mon, Dec 18, 2017 at 7:54 AM Patrik Kullman<EMAIL_ADDRESS>wrote:

Our UX disagrees, if the user suggestion selection is limited, the user
needs to be informed that additional options are available (with a refined
search).
If users are presented with too many suggestions, they will likely refine
the search further.
Also we work with lists where options are very similar, so users might do
a partial search, start sifting through suggestions, and optionally search
further.
Since iron list would enable a complete result set without hampering
performance, it would be a far better approach than "showing 5/3219"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ellipticaljs/paper-autocomplete/issues/104#issuecomment-352350608,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAUumbEGHnMge82l38yBmVe92_pevriMks5tBhovgaJpZM4RDPA8
.

We're still on 1.x but our 2.x branch is expected to be merged before 2018 :)


Don't bomb when a non UTF8 line is passed into the syslog parser

Codecov Report

Merging #27 into master will decrease coverage by 0.11%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
- Coverage   27.07%   26.96%   -0.12%
==========================================
  Files          13       13
  Lines         698      701       +3
  Branches       78       78
==========================================
  Hits          189      189
- Misses        507      510       +3
  Partials        2        2

Impacted Files
Coverage Δ

linehaul/syslog/protocol.py
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7187247...493698e. Read the comment docs.


SIGABRT while executing native code.

I got this message when i launch the apps then Choose "Take Photo" or "Photo Library"
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
Failed to Stop app:  An error occured on client IDB430795 while executing a reply for topic xvs/idb/<IP_ADDRESS>5/stop-app
The app has been terminated.
The app has been terminated.

Hi @gutierrezralph
Can you try add "-ObjC" in to iOS project->Options->iOS Build-> Addition mtouch arguments .
If it still cannot work, would you please give us a demo project to reproduce this?
Thanks

Hello,
I already fixed the "SIGABRT" error after updating Xamarin.Forms and Plugin.Media
but right now i have issue on
"using Xam.Plugins.ImageCropper.iOS" was not recognized,
so that "TOCropViewController","TOCropViewControllerDelegate"
and "void DidCropToImage(TOCropViewController cropViewController, UIImage image, CoreGraphics.CGRect cropRect, nint angle)" was not recognized too. Please see link below for the unrecognize interface and override function.
Note: the copy i used is your upload project .
http://imageshack.com/a/img923/6590/10D7yq.png
http://imageshack.com/a/img924/5889/Quzh2k.png


Add note part for ODB usage

Add note part for ODB usage

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks


undefined local variable or method `min_ios_version_supported' for Pod:Module

Using   "react-native": "0.66.5" , "react-native-ssl-public-key-pinning": "^1.2.4",
[!] Invalid Podfile file:
[!] Invalid react-native-ssl-public-key-pinning.podspec file: undefined local variable or method `min_ios_version_supported' for Pod:Module.

works when downgrade to Release 1.1.4
can i have an idea about the RN compatibility :)
thx

Ah it seems like min_ios_version_supported was only introduced in a more recent RN version.
v1.1.4 should work though as that's before all of the new architecture changes. Did you make sure to run pod install in your ios folder?

Closing this due to inactivity. Please reopen an issue if you're still facing issues.


Bug Patterns page does not make clear first version on which each check is present

The "Bug Patterns" page (http://errorprone.info/bugpatterns) lists all of the error-prone checks available, but not all of the checks on this page are available in every version of error-prone. For example, the ComparableType check is available starting in version 2.2.0, and the VarTypeName check is not available in any released version of error-prone (as of the day this bug was filed).
This is potentially confusing. For example, I attempted to explicitly pass all checks available on the "Bug Patterns" as compiler arguments when invoking error-prone, and was puzzled when seven of the flags I was passing yielded "XXX is not a valid checker name" errors. It turns out these checks are available on master but not in version 2.2.0.
I think there are two ways to help avoid this confusion:

Modify the "Bug Patterns" page to clarify that the list of bug patterns is auto-generated from a bleeding-edge version of the error-prone source code.
2)Modify the "Bug Patterns" page to include instructions on how to generate the "Bug Patterns" page from a specific version of the source code.
Either in the top-level list of checks or in the individual pages for each check, list the first version in which this check was made available.

If any of these potential solutions seem useful and are easy to implement, I would be happy to submit a pull request.
Below are my answers to the requested questions.
What version of Error Prone are you using?
N/A
Does this issue reproduce with the latest release?
N/A
What did you do?
Read http://errorprone.info/bugpatterns and mistakenly assumed that each check listed on the page was available in the newest release of error-prone.
What did you expect to see?
A list of bug patterns and the versions in which they are available.
What did you see instead?
A list of bug patterns.

Also, MathAbsoluteNegative is available under the alternative name MathAbsoluteRandom, and UnqualifiedYield is not available (as of 2.16)

Finalize is not available.


⚠ Bofrost.de has degraded performance

In 01c3791, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1533 ms

Resolved: Bofrost.de performance has improved in 2621424 after 8 minutes.