jenga 113.24.00 fails with `There is no embedded compiler in the current executable'

*** jenga: [19397] root=/home/kandu/pro/package/jsc/jenga/examples/hello-explicit, sys=Linux, j=5, f=2 (NO_VERSION_UTIL)
*** jenga: reading jengaroot.ml
*** jenga: ERROR: Plugin failed: (src/monitor.ml.Error_
 ((exn (Failure "There is no embedded compiler in the current executable"))
  (backtrace
   ("Raised at file \"pervasives.ml\", line 30, characters 22-33"
    "Called from file \"src/monitor.ml\", line 215, characters 42-51"
    "Called from file \"src/job_queue.ml\", line 160, characters 6-47" ""))
  (monitor
   (((name Async.Std.Deferred.Or_error.try_with) (here ()) (id 222)
     (has_seen_error true) (is_detached true))))))
*** jenga: ERROR: <jenga.conf>: User-code load failed
*** jenga: (src/monitor.ml.Error_((exn(Failure"There is no embedded compiler in the current executable"))(backtrace("Raised at file \"pervasives.ml\", line 30, characters 22-33""Called from file \"src/monitor.ml\", line 215, characters 42-51""Called from file \"src/job_queue.ml\", line 160, characters 6-47"""))(monitor(((name Async.Std.Deferred.Or_error.try_with)(here())(id 222)(has_seen_error true)(is_detached true))))))

Ah, I messed up the build rules in the last release... I'll look into it

This is fixed in jenga 113.24.02 (released in ocaml/opam-repository#5816). I tried most of the examples and they pass


Fix null check during constraint evaluation inside rule engine

The following constraint
$p : Person($amount: (money == null ? BigDecimal.valueOf(100.0) : money))
seems to raise a java.lang.AssertionError: A reference was unexpectedly null. when Person.money == null
Scope of the ticket

create  tests with Person.money  populated and not
verify the test without the  Person.money  raise the mentioned exception
check/fix the code behind it

Fixed by https://github.com/apache/incubator-kie-drools/commit/ff21d1c09202f5ac7f031e68498601b5ab74d9c4


Model doesn't predict

Everything works with the iris model but when I tried to generate my own model from data, it didn't return the prediction.
I will be very happy to find an answer to this problem.
https://github.com/adelmuursepp/ML-React-App-Template

Hey,
What all did you update?
You can refer my article on this which describes all the things that need to be updated for your new model to start accepting information and make predictions.
Here's the link: https://towardsdatascience.com/create-a-complete-machine-learning-web-application-using-react-and-flask-859340bddb33
Thanks!

Thank you for help! I figured out that the model didn't save correctly.
Your template rocks!


 What is the reason for that? I don't want to give root access to the script.

What version you use?
What os?

Oh fuck! I had an alias in place that executes the last command as sudo. It was named fuck.


RethinkDB's company closed , are there alternatives?

https://rethinkdb.com/blog/rethinkdb-shutdown/
My impression is that rethinkdb is just too godd to end up like this.
Most likely some company/foundation will show up and pick it up
Not a good news though ...

This will not be the end.
Search for database on the front page of github and you get this:
Redis: 20000 Stars
RethinkDB: 16000
MongoDB: 10000
Some other popular project as a reference:
Aurelia: 8000
Angular: 17000
Node.js: 27000
Sailsjs: 15000
Express: 27000
I have used MongoDB, RethinkDB is streets ahead. MongoDB was just the first and because of that it ended up being the database for projects like sailsjs and many others.
Someone will have to run with this. It is being discussed here:
https://github.com/rethinkdb/rethinkdb/issues/6137
Although, this could just be wishful thinking considering I have spent the last five months of my free time working on this job queue.

I loved this queue, but the fact that rethink is shutting down is scary. :(

@thomasmodeneis It's not shutting down, the business behind it has shut down.
Read here: https://rethinkdb.slack.com/messages/open-rethinkdb/
And here: https://docs.google.com/document/d/1Fy-drBGDTyibwEBBAX6G5otqtWiKOD2sBXmL2uVTFtE/edit

More:
https://www.compose.com/articles/rethinkdb-and-compose-where-next/

So far so good, besides not having reliable changefeeds, there is not much more to worry, so far so good.
Thanks for the headsup :)
Cheers.

RethinkDB has Joined the Linux Foundation. See #50 for more detail.


Glucose returned as a gene.

Running this query against KGX2 (what genes are downregulated by Gefitanib?)
  "edges": {
    "e00": {
      "predicates": ["biolink:entity_negatively_regulates_entity"],
      "object": "n1",
      "subject": "n0"
    }
  },
  "nodes": {
    "n0": {
      "categories": [
        "biolink:SmallMolecule"
      ],
      "constraints": [],
      "ids": [
        "PUBCHEM.COMPOUND:123631"
      ],
      "name": "Gefitanib"
    },
    "n1": {
      "categories": [
        "biolink:Gene"
      ]
    }
  }
}```

Returns a few things like:

FMA:264827 Interleukin-8
FMA:264829 Interleukin-6
FMA:63891 Collagen
FMA:67330 Vimentin
FMA:82743 Glucose

I don't think that FMA is a valid biolink prefix for gene (or any other class).

But more to the point, Glucose is returned as a gene, when it is not a gene.

@saramsey Do you mind looking over this with me when you are available? I'm not sure how to address the problem.

I don't see glucose showing up in the current test version of ARAX (arax.ncats.io/test), when I run this query graph:
 {
  "edges": {
    "e00": {
      "predicates": ["biolink:affects"],
      "object": "n1",
      "subject": "n0"
    }
  },
  "nodes": {
    "n0": {
      "categories": [
        "biolink:SmallMolecule"
      ],
      "constraints": [],
      "ids": [
        "PUBCHEM.COMPOUND:123631"
      ],
      "name": "Gefitanib"
    },
    "n1": {
      "categories": [
        "biolink:Gene"
      ]
    }
  }
}

I also checked in KG2.8.0c using this Cypher command:
match (n) where 'FMA:82743' in n.equivalent_curies return n;

which returned a single KG2c node; the resulting JSON did not have any indication that it is mapped to biolink:Gene anymore. Here is the JSON for glucose, in KG2.8.0c:
{
  "iri": "http://purl.obolibrary.org/obo/FMA_82743",
  "name": "Glucose",
  "description": "Glucose, also known as D-glucose or dextrose, is a member of the class of compounds known as hexoses. Hexoses are monosaccharides in which the sugar unit is a is a six-carbon containing moiety. Glucose contains an aldehyde group and is therefore referred to as an aldohexose. The glucose molecule can exist in an open-chain (acyclic) and ring (cyclic) form, the latter being the result of an intramolecular reaction between the aldehyde C atom and the C-5 hydroxyl group to form an intramolecular hemiacetal. In aqueous solution, both forms are in equilibrium and at pH 7 the cyclic one is predominant. Glucose is a neutral, hydrophilic molecule that readily dissolves in water. It exists as a white crystalline powder. Glucose is the primary source of energy for almost all living organisms. As such, it is the most abundant monosaccharide and the most widely used aldohexose in living organisms. When not circulating freely in blood (in animals) or resin (in plants), glucose is stored as a polymer. In plants it is mainly stored as starch and amylopectin and in animals as glycogen. Glucose is produced by plants through the photosynthesis using sunlight, water and carbon dioxide where it is used as an energy and a carbon source Glucose is particularly abundant in fruits and other parts of plants in its free state. Foods that are particularly rich in glucose are honey, agave, molasses, apples (2g/100g), grapes (8g/100g), oranges (8.5g/100g), jackfruit, dried apricots, dates (32 g/100g), bananas (5.8 g/100g), grape juice, sweet corn, Glucose is about 75% as sweet as sucrose and about 50% as sweet as fructose. Sweetness is detected through the binding of sugars to the T1R3 and T1R2 proteins, to form a G-protein coupled receptor that is the sweetness receptor in mammals. Glucose was first isolated from raisins in 1747 by the German chemist Andreas Marggraf. It was discovered in grapes by Johann Tobias Lowitz in 1792 and recognized as different from cane sugar (sucrose). Industrially, glucose is mainly used for the production of fructose and in the production of glucose-containing foods. In foods, it is used as a sweetener, humectant, to increase the volume and to create a softer mouthfeel. Various sources of glucose, such as grape juice (for wine) or malt (for beer), are used for fermentation to ethanol during the production of alcoholic beverages. Glucose is found in many plants as glucosides. A glucoside is a glycoside that is derived from glucose. Glucosides are common in plants, but rare in animals. Glucose is produced when a glucoside is hydrolyzed by purely chemical means or decomposed by fermentation or enzymes. Glucose can be obtained by the hydrolysis of carbohydrates such as milk sugar (lactose), cane sugar (sucrose), maltose, cellulose, and glycogen. Glucose is a building block of the disaccharides lactose and sucrose (cane or beet sugar), of oligosaccharides such as raffinose and of polysaccharides such as starch and amylopectin, glycogen or cellulose. For most animals, while glucose is normally obtained from the diet, it can also be generated via gluconeogenesis. Gluconeogenesis is a metabolic pathway that results in the generation of glucose from certain non-carbohydrate carbon substrates. Gluconeogenesis is a ubiquitous process, present in plants, animals, fungi, bacteria, and other microorganisms. In vertebrates, gluconeogenesis takes place mainly in the liver and, to a lesser extent, in the cortex of the kidneys. In humans the main gluconeogenic precursors are lactate, glycerol (which is a part of the triacylglycerol molecule), alanine and glutamine.",
  "equivalent_curies": [
    "HMDB:HMDB0304632",
    "ATC:V04CA02",
    "NDDF:002597",
    "ATC:B05CX01",
    "PSY:21160",
    "LOINC:MTHU001675",
    "LOINC:LP14635-4",
    "VANDF:4019541",
    "ATC:V06DC01",
    "FMA:82743",
    "LOINC:LP32534-7",
    "RXNORM:4850",
    "NCIT:C2831"
  ],
  "id": "FMA:82743",
  "category": "biolink:BiologicalEntity",
  "all_names": [
    "Glucose",
    "glucose"
  ],
  "all_categories": [
    "biolink:ChemicalEntity",
    "biolink:BiologicalEntity",
    "biolink:Drug",
    "biolink:SmallMolecule"
  ]
}

I think we're good at this point? Please LMK if you are still seeing Glucose showing up as a "Gene" in results from RTX-KG2.  Thanks.

The picture from the Synonyms page on arax.ncats.io/test is also consistent:

The class looks good, thanks.   I'm still unsure about the FMA prefix - I don't see it as a valid prefix for any classes in biolink. Maybe it needs to be added somewhere there, but if so, then we also need to include it in NodeNorm.  I'm not actually sure what it is though.

FMA is a pretty important ontology I think. But it is mostly anatomy. A bit strange to have glucose.
https://bioportal.bioontology.org/ontologies/FMA
I'm thinking it should be supported by Biolink.


Make url path absolute for SecHashEngine only when it is relative in the first place. Fix #752

Hi @hideaki,
Sorry for the long delay. That seems to be an interesting feature, however we also understand the value of having a relative path. What do you think about having the fixed path as a configuration option?

Hi @zimmerle,
This is a bug fix for #752, rather than a feature.
As per my observation and understanding, SecHashEngine today always turns paths into absolute. It even tries to absolutize already absolute path, and that is resulting in broken paths, which is #752.
This fix is about avoiding the double-absolutization by absolutizing the path only when it is still relative.
Having said that, config for keeping relative path relative sounds like a good idea to me.

Merged thanks!


git-annex cannot build with the latest haskellNG + 7.10

@peti With the latest master (465a8c6), and on Darwin (though I don't see any Darwin-specific issues), git-annex is unable to build due to failures in the following dependencies:
haskell-gnutls-0.1.5.drv
haskell-gsasl-0.3.5.drv
haskell-network-protocol-xmpp-0.4.6.drv
haskell-edit-distance-<IP_ADDRESS>.drv
haskell-feed-<IP_ADDRESS>.drv
haskell-DAV-1.0.3.drv
haskell-bencode-<IP_ADDRESS>.drv
haskell-torrent-10000.0.0.drv

My build log is here: https://gist.github.com/jwiegley/1062e9e550fceb5a1d19
In general, git-annex is an excellent litmus test, because it pulls in so many other packages.

Yes, similar problems exist on Linux. IMHO the best way to remedy the situation is to report those issues upstream and/or to submit patches to the respective package authors to help them fix the problems with GHC 7.10.1. I don't believe that we should try to solve this is in isolation in Nixpkgs since none of those problems are specific to Nix.

@peti Sounds good.  Just FYI, here are the other Haskell packages I wasn't able to build with the latest, for various reasons:
haskell-CC-delcont-0.2
haskell-doctest-prop-0.2
haskell-recursion-schemes-4.1
haskell-liquidhaskell-<IP_ADDRESS>
haskell-compdata-0.9
haskell-machines-0.4.1
haskell-ghc-mod-<IP_ADDRESS>
haskell-arithmoi-<IP_ADDRESS>
splot-0.3.12
haskell-timeparsers-0.3.2
timeplot-1.0.28
haskell-time-recurrence-0.9.2
haskell-zip-archive-<IP_ADDRESS>
haskell-idris-<IP_ADDRESS>
haskell-singletons-1.1.1
haskell-thyme-<IP_ADDRESS>

I'll start narrowing the issues and reporting them upstream.


parseFile: failed to open stream: No such file or directory

File: icalparser/src/IcalParser.php
Line: 126
Function name: parseFile
The code is expected to throw exception on failing to open file. There is PHP warning instead with message: failed to open stream: No such file or directory.
OS: Ubuntu Server 14.04
PHP version: 5.5+

It's function parseFile() see new example https://github.com/OzzyCzech/icalparser/blob/master/example/index.php


MethodChannel dont Work after release

Hy everyone ✌🏻
I have the Problem, that my flutter app dont work currently, after i released it,
in debug mod he works with out errors, only on release not
▶ Error log
2019-10-09 12:19:35.506 29424-29424/? E/MethodChannel#app.native/updater: Failed to handle method call
    d.d
        at com.example.almoathen_app.g.a$a.a(Unknown Source:38)
        at com.example.almoathen_app.MainActivity$b.onMethodCall(Unknown Source:74)
        at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(Unknown Source:17)
        at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(Unknown Source:57)
        at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(Unknown Source:4)
        at android.os.MessageQueue.nativePollOnce(Native Method)
        at android.os.MessageQueue.next(MessageQueue.java:326)
        at android.os.Looper.loop(Looper.java:181)
        at android.app.ActivityThread.main(ActivityThread.java:6990)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)

▶ flutter doctor -v
[✓] Flutter (Channel master, v1.10.14-pre.12, on Mac OS X 10.15 19A583, locale en-GB)
    • Flutter version 1.10.14-pre.12 at /Users/kkhalil/flutter
    • Framework revision cdc2d9901d (2 days ago), 2019-10-07 16:43:04 -0700
    • Engine revision 1d62160fdb
    • Dart version 2.6.0 (build 2.6.0-dev.1.0 d6c6d12ebf)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/kkhalil/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/kkhalil/Library/Android/sdk
    • Java binary at: /Users/kkhalil/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.5900203/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 11.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.1, Build version 11A1027
    ✗ CocoaPods installed but not working.
        You appear to have CocoaPods installed but it is not working.
        This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used
        to invoke it.
        This can usually be fixed by re-installing CocoaPods. For more info, see
        https://github.com/flutter/flutter/issues/14293.
      To re-install CocoaPods, run:
        sudo gem install cocoapods

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 40.0.2
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Android Studio (version 3.5)
    • Android Studio at /Users/kkhalil/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.5900203/Android Studio.app/Contents
    • Flutter plugin version 40.0.2
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[!] IntelliJ IDEA Ultimate Edition (version 2019.1.2)
    • IntelliJ at /Users/kkhalil/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    • Dart plugin version 191.8423
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] VS Code (version 1.38.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.5.1

[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.

▶ publspec.yaml file
name: almoathen_app
description: A new Flutter project.

version: 1.0.0+1

environment:
  sdk: ">=2.1.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  #assets_audio_player: ^1.0.1
  cupertino_icons: ^0.1.2
  path_provider: ^1.1.0
  screen: ^0.0.5
  http: ^0.12.0+2
  intl: ^0.15.8
  flutter_typeahead: ^1.6.1
  provider: ^3.0.0+1
  vibration: 1.2.1
  sliding_up_panel: ^0.3.5
  url_launcher: ^5.1.4

dev_dependencies:
  flutter_launcher_icons: ^0.7.3

  flutter_test:
    sdk: flutter

flutter_icons:
  android: "launcher_icon"
  ios: true
  image_path: "assets/app_logo/mosque_3d.png"

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
  assets:
    - assets/
    - assets/app_logo/
    - assets/background_images/
    - assets/background_images/adrian-MBwvFtRqCcQ-unsplash.png
    - assets/background_images/adrian-MBwvFtRqCcQ-unsplash_blur_effect.png
    - assets/defaultAppSettings.json
  fonts:
    - family: Righteous
      fonts:
        - asset: assets/fonts/Righteous-Regular.ttf

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  # assets:
  #  - images/a_dot_burr.jpeg
  #  - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

▶ installed bundles from "app/build.gradle" file
dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
    implementation 'com.squareup.retrofit2:retrofit:2.6.0'
    implementation group: 'com.squareup.retrofit2', name: 'converter-jackson', version: '2.5.0'
    implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.google.code.gson:gson:2.8.5'
}

Hi @Kassan424kh
could you please post a self contained app on github
or the steps to reproduce it.
Thank you

https://github.com/Kassan424kh/prayerTimes.git

@Kassan424kh
it appear to be private or otherwise impossible to access the repository.

@iapicca
😅sorry it was private, now it's public

Thank you @Kassan424kh

@iapicca
ya right

if i change to 'release'  instead of 'debug' , it says "could not get unknown property 'release' for signing config container.."


[BUG] Investigate whether Horrific Doubles causes lag due to the new round component

I think Horrific Doubles should be re-written to use aura mechanics. It's not pretty but I think it'll be more performant than doing a search for all units w/in 120 feet, in particular because I suspect that actually iterates through all units on the map :(

I should def switch to an aura, siiigh.


gitlab: 17.2.4 -> 17.2.5

Description of changes

https://gitlab.com/gitlab-org/gitlab/-/blob/v17.2.5-ee/CHANGELOG.md
Fixes CVE-2024-2743
Fixes CVE-2024-4283
Fixes CVE-2024-4472
Fixes CVE-2024-4612
Fixes CVE-2024-4660
Fixes CVE-2024-5435
Fixes CVE-2024-6389
Fixes CVE-2024-6446
Fixes CVE-2024-6685
Fixes CVE-2024-8124
Fixes CVE-2024-8311
Fixes CVE-2024-8631
Fixes CVE-2024-8635
Fixes CVE-2024-8640
Fixes CVE-2024-8641

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 341398 run on x86_64-linux 1

6 packages built:

gitaly
gitlab
gitlab-container-registry
gitlab-ee
gitlab-pages
gitlab-workhorse


[stable/openldap] Added support custom schema

What this PR does / why we need it:
Added support of custom schemas in the same way as already done for custom LDIF.
Added also revisionHistoryLimit and strategy for Deployment.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

/assign @enis

/assign @scottrigby


StringFlag: let cli.File() also strings.TrimSpace()

Checklist

[x] Are you running the latest v3 release? The list of releases is here.
[x] Did you check the manual for your release? The v3 manual is here.
[x] Did you perform a search about this feature? Here's the GitHub guide about searching.

What problem does this solve?
	&cli.StringFlag{
		Name:  "grpc-token",
		Usage: "server-agent shared token",
		Sources: cli.NewValueSourceChain(
			cli.File(os.Getenv("WOODPECKER_AGENT_SECRET_FILE")),
			cli.EnvVar("WOODPECKER_AGENT_SECRET")),
	},

most editors add a newline at the end of an file, this causes issues if you wana read a single line string from it ...
A clear and concise description of what problem this feature would solve. For example:

needing to type out the full flag name takes a long time, so I
would like to suggest adding auto-complete
I use (osx, windows, linux) and would like support for (some
existing feature) to be extended to my platform
the terminal output for a particular error case is confusing, and
I think it could be improved

Solution description
It would be nice to have either an option to trim space or an FileTrimSpace() ...
... other idears are welcome too :)
Alternative
well I will just trim the value myselfe in code ...
... this is more of an UX question rather than missing feature but just see it as feedback :)

@6543 You've raised too many points(issues?) in this issue. So just for my clarification here are the points

Use strings.TrimSpace() when using cli.File(). yes we can look at that.
need to type out full flag name : we do have auto-completion for common shells like bash, zsh and powershell . Are you not able to use those ?
What feature(s) are you expecting to be supported on your platform(s) ?
terminal output : yes we are working on that

Use strings.TrimSpace() when using cli.File(). yes we can look at that.

that one but I also have concnerns if we do so that there might be an edgecase that could fail in this regards ... through I'm not arware of one.
I just noticed an strange behaviour in my project and in the end it was just wrong asumptions of the api of urfave.cli -> so thats why i created this issue here
with the question: should we streamline cli.File() via trim or will this limit other usecases?!?
PS my fix: https://github.com/woodpecker-ci/woodpecker/pull/4465 is personally sufficient enouth for me.

@6543 Try this
&cli.StringFlag{
		Name:  "grpc-token",
		Usage: "server-agent shared token",
                Config: cli.StringConfig{
                         TrimSpace: true,
                },
		Sources: cli.NewValueSourceChain(
			cli.File(os.Getenv("WOODPECKER_AGENT_SECRET_FILE")),
			cli.EnvVar("WOODPECKER_AGENT_SECRET")),
	},

I forgot that we had this option !!!

uh nice! that solves this issue :)
I would now normal ask if that could be better documented but I could not find the docu for devs at all :D

Yes we are working on pushing out v3 documentation.

thanks for the tip anyway :) :rocket:
and sorry for my not on point description of my idea ... in this issue :rock:


pulp_util: log backoff timer in "seconds"

Clarify that this waiting period is in seconds.

thanks @rcerven for explaining this code to me!

Release note added:

specify time units in pulp repository operation log messages


⚠ Mobitopup has degraded performance

In a804d5b, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 3122 ms

Resolved: Mobitopup performance has improved in 907209f after 7 minutes.


Consider using module builder pattern to halve module import time

Whilst I like posh-git, it also adds a big portion (500-1000ms) to the load time of PowerShell because of the call to Import-Module posh-git in the $PROFILE.
One possibility of halving (I've done an experiment) the module import time, is to have all the source code in one monolithic file instead of dot sourcing them in. This does not mean the source code of the module needs to be stored in a monolithic file but one would need to add a build process before publishing the module, one does not need to re-invent the wheel though as one could e.g. use the ModuleBuilder module for that.
Would you be happy with that?
Or would it be useful to look into alternative ways of having a more lightweight module import (some user's might not use all features, so maybe we could defer some actions?)?

I don't see a problem with adding a build  for the module particularly if it can halve the module import time.  As for as "optional" features, that might be tough as this module doesn't offer that much in the way of optional features.  That said, I suppose there might be some folks who want only the tab-completion support.  Doubt there are many that want only the prompt status and not tab-completion though.

but one would need to add a build process before publishing the module, one does not need to re-invent the wheel though as one could e.g. use the ModuleBuilder module for that. Would you be happy with that?

We've discussed elsewhere that a pre-publish build process would be useful in other ways, so I'm not opposed to this as a related optimization. I would want to make sure the module can still be loaded as-is from the Git repo, as many folks use their own fork of the project.

As for as "optional" features, that might be tough as this module doesn't offer that much in the way of optional features. That said, I suppose there might be some folks who want only the tab-completion support. Doubt there are many that want only the prompt status and not tab-completion though.

We could conceivably skip loading all the prompt/status infrastructure if $GitPromptSettings.EnablePromptStatus -eq $false, though technically that setting only disables the Git portion of the prompt, not the rest of it (path, etc).

Good feedback.
Should I aim to make a PR against the v0 or master branch (or both?). Personally, I still use v0 (accidentally) sometimes because I often forget the -AllowPreRelease switch...

I'd say master as I'd like to nudge folks towards v1.  :-)

Ok, I've actually opened PRs against both branches. Should we incorporate this into the build as well, by changing the src folder in the test line below to the built module in the out folder?
https://github.com/dahlbyk/posh-git/blob/master/test/Shared.ps1#L1

I'd rather not change this because my typical dev flow is to run Pester tests while I'm doing dev work (not having built).  Maybe we can change that line to look for a variable like $PoshModuleToTest. When that variable is not found, we use the current path (to the src dir).  The build script could define this variable and set it to the release dir location.


Implement explicitly setting a center of rotation

Description
The transform-Widget provides "rotate" to rotate its child. However, the default center of rotation is (0, 0) (aka top-left), so it was not possible to, for example, rotate a child in-place.
This commit implements the additional options rotation-center-x and rotation-center-y. Both are optional, and the default value is 0.0 for each, so previous configurations should produce the same results.
Usage
(defwindow grid
  :stacking "fg"
  :windowtype "dock"
  :wm-ignore true
  :geometry (geometry
    :x "10px"
    :y "10px"
    :width "100px"
    :height "100px"
  )
  (transform
    :rotate {-percentloop}
    :rotation-center-x "50%"
    :rotation-center-y "50%"
    (box :orientation 'v' :style 'padding: 5px;'
      (box :orientation 'h'
        (label :style 'background-color: grey;' ' ')
        (label :style 'background-color: green;' ' ')
      )
      (box :orientation 'h'
        (label :style 'background-color: red;' ' ')
        (transform
          :rotate {2*percentloop}
          :rotation-center-x "50%"
          :rotation-center-y "50%"
          (box
            (box :space-evenly true
              (label :style 'background-color: yellow;' ' ')
              (label :style 'background-color: black;' ' ')
              (label :style 'background-color: yellow;' ' ')
            )
          )
        )
      )
    )
  )
)

(deflisten percentloop :initial 0 `i=0; while true; do let i=$i+1; echo $i; sleep .05; done`)

* {
    all: unset;
    margin: 0px;
    padding: 0px;
}

Showcase
I made a 5 second video of above configuration, but can't embed it here.
Additional Notes

There are artifacts, if, for example in the above configuration, the transform of the whole grid would be a static rotate. As this does not happen when everything is moving, maybe a redraw is missing somewhere.
The behaviour if both rotation-center-* and translate-* needs to be mentioned, though it is not "wrong". If an in-place/centered rotation is wanted, and a shift to the right, the shift to the right needs to be added on top of the rotation-center-value to get an in-place rotation.

Checklist
Please make sure you can check all the boxes that apply to this PR.

[ ] All widgets I've added are correctly documented.
[x] I added my changes to CHANGELOG.md, if appropriate.
[ ] The documentation in the docs/content/main directory has been adjusted to reflect my changes.
[x] I used cargo fmt to automatically format all code before committing

I feel like we would want the origin to be relative to the position of the widget, such that you don't need to add the translation to the rotation-center value -- especially given that you'll most likely want to use percentages for the origin
I'd just call it transform-origin, keeping the consistency with how the same thing is called in CSS
I'm not sure if I correctly understand the kind of artifacts you're referring to -- I'll see if I can reproduce them, but obviously optimally, there wouldn't be any visual artifacts here 😉

Hi, sorry for the late response; I'll try to answer point by point:

If I understand correctly, then the translate-x/-y values should be added onto the origin, so that e.g. 50%/50% origin will always turn out to be an in-place rotation? As for units, the current implementation understands both percentages and pixels, so maximum flexibility for the user.
I renamed the variables to transform-origin. I am a bit unsure, if this is the same as in CSS, though that may be based on my inexperience with CSS in general.
IIRC I only changed the first :rotate value to 95 or something similar.

According to the documentation, the current transform-order is: rotate -> translate -> scale. But, looking at the code (https://github.com/elkowar/eww/blob/master/crates/eww/src/widgets/transform.rs#L165) it seems to be: scale -> rotate -> translate
Point 1 might affect this order too; scale after all changes the size of a widget, so any other transformation might possibly be affected. On the other hand, the current implementation retrieves the allocated_width/height exactly once, and uses that same value for all transformations, so the transformation might currently actually be independent of each other (somewhat)?

Update:
I noticed #1103 when I looked at this project regarding the wrong EWW_NET values, and decided to renew this PR a bit.

rebased to master, fixed any hiccups due to a different way of defining properties since I last worked on this
updated the example rotation config

please do not merge yet, I want to double-check it's correct

Ok, that was a bit close for comfort, but re-checking what I did was the right decision.
The non-warping version is the one with the previously documented method-order, rotate->translate->scale.
I have rebuild this newest force-pushed commit both with nix build and nix develop -> cargo build --bin eww, both times yielding the desired result of the contents not being warped.
Sry for the mix-up.

thank you for double-checking!
just as a heads-up: there should be no difference in how you build if you execute the commands the way you stated ^^


Add Tidepool navigation view (fix missing chevron)

One more click to reach the service, but
Added chevron in settings list (for consistency)
Added room for information/explainations of the setting in header/footer in the new view
First draft to build on (maybe: rephrase header/footer, add connection status in navigation view, other relevant info etc)
Change TidePool to Tidepool

Demo of PR implementation:
https://github.com/nightscout/Trio/assets/72826201/28b50e36-f08b-4486-9623-b58257a0e6f0
Settings navigation before change (missing chevron)

Suggest using Tidepool (instead of TidePool) for variable, function and file names.

Suggest using Tidepool (instead of TidePool) for variable, function and file names.

Thats a relevant suggestion. However before this PR  The incorrect "TidePool..." instead of "Tidepool..." was used 48 times in 8 files (excluding filenames and project.pbxproj)
This PR increased the usage to 49 times in 9 files (excluding filenames and project.pbxproj) due to the addition of TidePoolStartView file.
I could change TidePool to Tidepool in all added code in the PR, but then the new code and the old code is inconsistent. Or I could of course change all 49 TidePool entries but then all those files below are impacted. Not sure what's the best move here :/

TidePool
TidePool
TidePool

We’ll have to do some tests to make sure it doesn’t affect anything, ofc, but I think we should change all the Ps to lowercase

Ok Mike. We might as well do it now rather than wait for later. Will update the PR with this later today (increased risk of merge conflicts with other ongoing PRs/issues of course since more files will be changed)

Can I suggest an alternate route?
View these as two separate issues. Accept and merge this PR as is.
If I understand correctly, this PR in current form is consistent with the current state, matching the other 48 occurrences, and increases it by 1 (~2%).
We could merge this, knowing that it follows the standard in all other locations of Trio, and follow up with a separate PR to address the capitalization issue.

Any change to a project.pbxproj is problematic. At least update the filename.
Or do the rename all at once and we commit to test, approve and merge ASAP.
Then all other PR can merge dev if needed.

Any change to a project.pbxproj is problematic. At least update the filename.
Or do the rename all at once and we commit to test, approve and merge ASAP.
Then all other PR can merge dev if needed.

project.pbxproj names also updated with lowercases now. I have test built successfully, but it doesn't hurt that we test this thoroughly

Can I suggest an alternate route?
View these as two separate issues. Accept and merge this PR as is.
If I understand correctly, this PR in current form is consistent with the current state, matching the other 48 occurrences, and increases it by 1 (~2%).
We could merge this, knowing that it follows the standard in all other locations of Trio, and follow up with a separate PR to address the capitalization issue.

Sorry Auggie. I pushed the change before I saw your comment so I didn't consider it before changing

@MikePlante1 I cannot add reviewers for the PR myself, could you please help me with that?

When tapping the Connect to Tidepool button, I am being returned to the Tidepool settings root the first time I tap it, but the second time I am taken to the Tidepool login screen. The same happens each time I escape the Tidepool settings and try again.
I am also getting modified:   Trio.xcworkspace/xcshareddata/swiftpm/Package.resolved when checking out this branch. Others seing this?

When tapping the Connect to Tidepool button, I am being returned to the Tidepool settings root the first time I tap it, but the second time I am taken to the Tidepool login screen. The same happens each time I escape the Tidepool settings and try again.
I am also getting modified: Trio.xcworkspace/xcshareddata/swiftpm/Package.resolved when checking out this branch. Others seing this?

Hm. I have not seen that error you're describing with need to double tap. Will investigate. (No code affecting this are changed in the PR)
And the other thing: I don't know exactly why this occurs, but there is an uncommitted Package.resolved change in my Xcode clone, see attached screenshot. I did not upload it to the PR since it isn't anything that should be altered in this PR. But if someone understands this better, please inform me

When tapping the Connect to Tidepool button, I am being returned to the Tidepool settings root the first time I tap it, but the second time I am taken to the Tidepool login screen. The same happens each time I escape the Tidepool settings and try again.
I am also getting modified: Trio.xcworkspace/xcshareddata/swiftpm/Package.resolved when checking out this branch. Others seing this?

Looking at the code, the thing that happens when you press the button is that ´state.setupTidepool = true´. The default state is false. Maybe you exited a previous build when the state was true? And therefor the button didn't trigger the sheet?
Do it happen every time, or was it just the first time you tried?

It happens every time on first tap and ok on there second. Not sure if I had previously set up TP on this build

It happens every time on first tap and ok on there second. Not sure if I had previously set up TP on this build

I will try to build to my physical simulator iPhone and test that way also (have just run it in Xcode sim)

I did build twice by the way, with a build of dev in between. Same result for the PR branch builds.

I did build twice by the way, with a build of dev in between. Same result for the PR branch builds.

Ok. I hope someone else can comment as soon as they've tested so we know if this affects all builds or if there are some special circumstances that triggers this.

@bjornoleh. After intense googling and code debugging I found some other devs discussing this exact peculiar sheet behavior that doesn't affect simulators but shows up on physical phone builds. (I could for instance see when adding som debug logging that the sheet got triggered 3 times in a row the first time I opened the Tidepool navigation view).
And all I had to do to resolve this bug was to move the sheet code 2 brackets down, outside the form.
Now it should work as intended again (both on simulator and physical phone). If not, let me know 😊

@bjornoleh. After intense googling and code debugging I found some other devs discussing this exact peculiar sheet behavior that doesn't affect simulators but shows up on physical phone builds. (I could for instance see when adding some debug logging that the sheet always got triggered 3 times in a row the first time I opened the Tidepool navigation view).
And all I had to do to resolve this bug was to move the sheet code 2 brackets down, outside the form.
Now it should work as intended again (both on simulator and physical phone). If not, let me know 😊

Thanks, well done figuring out this ridiculous issue! Works as expected now when building to a phone.

LGTM. Great work, Daniel and wonderful discussion here. Thanks everyone.
Merging with 2 approving requests.


[Backport release-23.11] jellyfin, jellyfin-web: 10.9.1 -> 10.9.3, 10.9.2 -> 10.9.3

Description of changes

Backport of #314775
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review run on x86_64-linux 1

3 packages built:

jellyfin
jellyfin-media-player
jellyfin-web

CI isn't green, not sure why...

Not sure why it fails on darwin, also…

The failure is due to a note thrown inside the test:
2024-05-28T08:00:49.1667448Z ##[warning]Difference between e67051c92aebf9acd7522dd346e3a713544d4457 and original a7441feb23f2ba370fb3ae130f51113c5c72b8f2 may warrant inspection:
2024-05-28T08:00:49.1718261Z 1:  a7441feb23f2 ! 1:  e67051c92aeb jellyfin: 10.9.1 -> 10.9.3
2024-05-28T08:00:49.1719095Z     @@ Commit message
2024-05-28T08:00:49.1719549Z
2024-05-28T08:00:49.1720131Z          The `default.nix` was also formatted with `nixfmt-rfc-style` to be `RFC 166`-compliant.
2024-05-28T08:00:49.1720848Z
2024-05-28T08:00:49.1721498Z     +    (cherry picked from commit a7441feb23f2ba370fb3ae130f51113c5c72b8f2)
2024-05-28T08:00:49.1722271Z     +
2024-05-28T08:00:49.1732078Z       ## pkgs/servers/jellyfin/default.nix ##
2024-05-28T08:00:49.1732732Z      @@
2024-05-28T08:00:49.1733050Z      -{ lib
2024-05-28T08:00:49.1733874Z      -, fetchFromGitHub
2024-05-28T08:00:49.1734315Z     +-, fetchurl
2024-05-28T08:00:49.1734713Z      -, nixosTests
2024-05-28T08:00:49.1735201Z      -, stdenv
2024-05-28T08:00:49.1735614Z      -, dotnetCorePackages
2024-05-28T08:00:49.1736207Z     @@ pkgs/servers/jellyfin/default.nix: buildDotnetModule rec {
2024-05-28T08:00:49.1736907Z      +      purcell
2024-05-28T08:00:49.1737295Z      +      jojosch
2024-05-28T08:00:49.1737640Z      +    ];
2024-05-28T08:00:49.1738175Z     -     mainProgram = "jellyfin";
2024-05-28T08:00:49.1738740Z     ++    mainProgram = "jellyfin";
2024-05-28T08:00:49.1739569Z           platforms = dotnet-runtime.meta.platforms;
2024-05-28T08:00:49.1740182Z         };
2024-05-28T08:00:49.1740525Z     + }
2024-05-28T08:00:49.1741552Z Note this should not necessarily be treated as a hard fail, but a reviewer's attention should be drawn to it and github actions have no way of doing that but to raise a 'failure'
[…]
2024-05-28T08:00:50.5631838Z ##[error]Process completed with exit code 1.
2024-05-28T08:00:50.5735042Z Post job cleanup.

Please check for yourself by opening the details of the check and than opening the raw log (cogwheel on the right upper side > "View raw logs"), but it seems to be fine?! Dunno though, how to let it pass.

I was more talking about why jellyfin doesn't build on darwin, more than the backport action. I know that the backport action fails because I had to fix a merge conflict during the cherry-pick.

@reckenrode can I ask for your help on this?

Something seems to be going wrong with the regex source generator. According to the log message, the regex is invalid. I don’t know why it would be failing on Darwin if it’s being accepted on Linux.

As NixOS 23.11 reaches end-of-life today, this PR is closed as part of the EOL cleanup.


[Castles&Crusades] Bug fixes and improvements

Submission Checklist
Required

[X] The pull request title clearly contains the name of the sheet I am editing.
[X] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[X] The pull request makes changes to files in only one sub-folder.
[X] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <   >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <   > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[X] I have followed the Character Sheets Standards when building this sheet.

[X] This sheet has been made on behalf of, or by, the game's publisher.
[] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

**2023-05-29 ** v.2.4 Paul V
Added Primary/Seconday, Teritary target onto the Settings tab
All saving throws now show base target based on associated stat
Spells now have an Info button this displays all the spell info in chat
Spells now have a Roll button, if the Spell does damage this will roll the damage of the spell and even calculate damage per level correctly
New option on the Settings tab allowing Modifier to be added to every roll or not
Fixed Skills so that the correct target appears dependiing of the statistic selected from the drop down, also attr mod is updated with the selected attribute modifier

Character Sheet Info Roll20 Internal Use only.


Research how to improve file collection speed

The part where phpDocumentor collects which files to parse makes you wait for a few seconds; there should be a way to make this faster.

Re-visiting this: I have noticed that the ignore clause is only checked after all files are collected recursively; this means that if you have an ignored folder with 6000 files (such as the vendor folder) it will filter out those 6000 files after they have been indexed and not prevent indexing beforehand.
I do not know if the Symfony Finder can be configured differently or that we have to switch to another method to fix this

Research completed via the phpDocumentor-XP prototype:
By implementing a new finder that uses the Specification pattern and iterates each folder it can check if a folder is valid according to the Specification. If the folder is not valid than it can skip its entire contents; preventing a scan.
The big problem with Symfony finder currently is that it does a complete scan first and later applies the Specifications; meaning that a vendor folder, while excluded, will still be scanned and this can increase waiting times with a few seconds.
Since the research is completed I will be closing this item


[Feature - AOIs] AOIs profile form

Overview
WIP Profile modal to update profile data from myGFW. Introduces new fields such as firstName, lastName, topics interested in, aoiLocation, etc.

One thing I noticed when reviewing the staging app, let's set a max width for input fields. I haven't set this  inside the form components as in some cases we use a grid and that would break the flow, so I have been doing it on a form by form basis. Here is how I did it for contact us: https://github.com/Vizzuality/gfw/blob/develop/app/javascript/components/forms/contact/styles.scss#L18

checking


#16 location set to external as preferred.

Change in manifest to fix #16

Current coverage is 70.89% (diff: 100%)

Merging #19 into develop will not change coverage

@@            develop        #19   diff @@
==========================================
  Files            24         24
  Lines           378        378
  Methods           0          0
  Messages          0          0
  Branches         14         14
==========================================
  Hits            268        268
  Misses          105        105
  Partials          5          5

Powered by Codecov. Last update 5123801...50ae6dc


Upgrade to Nx v15 and Ng v15

Angular v15 is now available!

Nx v15.3 is out. We can now Run Root-Level NPM Scripts with Nx


[REQUEST] Windows surport

In WSL(Windows Subsystem Linux. it is just linux), this package works well.
But in Just normal windows, the simple code below is not run well but wait forever.
and terminal shows lot of errors about multiprocessing.
what i tried
import numpy as np
from parallelplot import parallel_plot

def scatter(data, fig, axes):
    axes.scatter(data[:, 0], data[:, 1])

X = np.random.uniform(low=-1, high=1, size=(5, 50, 50))

parallel_plot(plot_fn=scatter, data=X, grid_shape=(1, 5),  show_progress=False )

result in terminal is
Process SpawnPoolWorker-3:
Traceback (most recent call last):
  File "\Python310\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "\Python310\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "\Python310\lib\multiprocessing\pool.py", line 114, in worker
    task = get()
  File "\Python310\lib\multiprocessing\queues.py", line 367, in get
    return _ForkingPickler.loads(res)
AttributeError: Can't get attribute 'scatter' on <module '__main__' (built-in)>
Process SpawnPoolWorker-1:
Traceback (most recent call last):
  File "\Python310\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "\Python310\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "\Python310\lib\multiprocessing\pool.py", line 114, in worker
    task = get()
  File "\Python310\lib\multiprocessing\queues.py", line 367, in get
    return _ForkingPickler.loads(res)
AttributeError: Can't get attribute 'scatter' on <module '__main__' (built-in)>
Process SpawnPoolWorker-2:
Process SpawnPoolWorker-4:
Process SpawnPoolWorker-5:
Traceback (most recent call last):
  File "\Python310\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "\Python310\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "\Python310\lib\multiprocessing\pool.py", line 114, in worker
    task = get()
Traceback (most recent call last):
  File "\Python310\lib\multiprocessing\queues.py", line 367, in get
    return _ForkingPickler.loads(res)
  File "\Python310\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
AttributeError: Can't get attribute 'scatter' on <module '__main__' (built-in)>
  File "\Python310\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
Traceback (most recent call last):
  File "\Python310\lib\multiprocessing\pool.py", line 114, in worker
    task = get()
  File "\Python310\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "\Python310\lib\multiprocessing\queues.py", line 367, in get
    return _ForkingPickler.loads(res)
AttributeError: Can't get attribute 'scatter' on <module '__main__' (built-in)>
  File "\Python310\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "\Python310\lib\multiprocessing\pool.py", line 114, in worker
    task = get()
  File "\Python310\lib\multiprocessing\queues.py", line 367, in get
    return _ForkingPickler.loads(res)
AttributeError: Can't get attribute 'scatter' on <module '__main__' (built-in)>

Describe the solution you'd like
not sure, but...... probably multiprocessing is the key point.

hmm, yeah sounds like it could be related to multiprocessing, as it allocates workers differently on windows. Could you try setting mp_context with "fork", "forksever", or "spawn" and see if that fixes your issue?

I solved this problem. in Windows, multiprocessing needs "main" . So beloe code wroks.
import numpy as np
from parallelplot import parallel_plot

def scatter(data, fig, axes):
    axes.scatter(data[:, 0], data[:, 1])

X = np.random.uniform(low=-1, high=1, size=(5, 100, 100))
if __name__=='__main__':
    fig,axes = parallel_plot(plot_fn=scatter, data=X, grid_shape=(1, 5),  show_progress=False, mp_context="spawn" )
    fig.savefig("result.jpeg")

even I solved it, but.... I'm sorry to say like this, But it is just faster very slightly than normal ploting, even it use all cores. probably coping data makes  new bottleneck.

There is of course some overhead associated with the allocation of workers and IO. The context itself also impacts performance. On Linux, I definitely saw a massive speedup.


Editable Polygons

@spikebrehm @lelandrichardson @gilbox
I've been using react-native-maps extensively for one of my work projects and I've needed the ability to be able to edit polygons by dragging vertices and midpoint vertices for google maps on iOS similar to leaflet-draw.
Here is the very rough code that I've been using so far if interested.
My question is this something that you guys would want react-native-maps to support or should there be another library that can handle drawing/editing similar to the split between leaflet and leaflet-draw?

Howdy, coworker of @unboundfire here. FWIW I'm also in favor of the split. As Nick mentioned we've done a bunch of work with Leaflet / Leaflet.draw that follows this pattern with success.
Seems like react-native-maps should stay a relatively clean and simple passthrough to underlying native map libraries. react-native-maps-draw would build on top of it and add shape drawing / editing capabilities (probably circle, polyline and polygon to start).

Mr. Lucas Doyle , is  Leaflet.draw  working with react-native-map  for drawing / editing polygon if not then what is alternate?

@pawan8525 we created this library a long time ago https://github.com/airware/react-native-maps-draw it added support for editing polygons/polylines with react-native-maps. It hasn't been maintained but could be a good base if you wanted to fork it and update the code to fit your needs

Hey @nitaliano thanks for reply   i downloaded the code that you  suggest  run the respective folder"react-native-maps-draw-master\react-native-maps-draw-master\example" to install all dependencies   but after run it give a message "Please wait....Fetching JS Bundle"
full day i did many change but not get success  please suggest i also did what below reference do but not success.
i follow https://stackoverflow.com/questions/37958376/fetching-js-bundle-monstrously-slow
Please suggest

+1
We are interested in updates/helps/contributs/discuss the airware@react-native-maps-draw with the purpose of implementing a polygon draw functionality into an our production app. @nitaliano thanks for posting the component.

Is there any other library that is out there that does the above which is fairly up to date ?

+1

Anybody here - Can help me marking same polygon as here? Will be thankful if I can get some links. Thanks in advance!!

@Anuj-logiciel , @naderz,  @le6o
For React Native, you can use
using PanResponder to track x y and convert to latitude and longitude. You can view it here: https://github.com/dev-event/react-native-maps-draw


Introduce rules and sets

Hi everyone!
Few changes that I have been working on lately...
I have tried to keep commits very clean to show what has changed step by step.
Below some description... Each point should match commit.
Please ignore merge commits, I will get rid of them later.
This PR may be big, so it may be worth to read changes commit by commit instead of all at once.
Please split discussion into two parts - first do we like changes described below and implemented, and then, if we agreed about changes, I will fill the docs and review of the code itself may begin.

Introduce FixerFactory
It's a class that will register build in fixers, allow to register custom fixers, sort them and attach config to them (see ConfigAwareInterface).
In future (see next changes in this PR) it will also allow to configure fixers.

Fixer::getLevelAsString is no longer static
In non-tests code method is currently run in instance context and there is no way to mock static method.

Stop mixing level from config file and fixers from CLI arg when one of fixers has dash
Current behavior is very confusing and has so few user scenarios. The whole behavior changed when one add dash to fixers list.
So let us stop mixing the fixers configuration from CLI args and from config file.
One can still use --level=psr2 --fixers=strict,-braces to create target group of fixers from psr2 plus strict minus braces,
same with config file, but cannot mix fixers from CLI arg with level from some magic place.
Previous behavior description:
--fixers=fixer1,fixer2,fixer3,fixer4,fixer5,fixer6,fixer7,fixer8
which creates a group of 8 fixers (and ignore level set in config file)
and
--fixers=fixer1,fixer2,fixer3,fixer4,-fixer5,fixer6,fixer7,fixer8
which creates a group of fixers in the following steps:

get all fixers for level in config file (unlike previously!) or default one,
add 7 fixers from --fixers arg
remove fixer5 (from --fixers arg)

Replace level and fixers from configuration in favor of rules, remove getLevel from FixerInterface
Closes #866 (ping @Seldaek).
Instead of setting level and fixers start setting rules. Many rules can be grouped in sets.
Eg to take all psr2 fixers, remove braces fixer and add strict fixer we can use:
CLI args:
--rules=@PSR2,-braces,strict
config file:->setRules([
    '@PSR2' => true,
    'braces' => false,
    'strict' => true,
])

One set can include other set (like @Symfony is @PSR2 + extra fixers, @PSR2 is @PSR1 + other fixers).
When setting the rules set expand to it's definition and adding/removing fixers is doing step by step (so one may exclude set and then add one fixer from it).
For example, consider the following:
```
@PSR1 = encoding,short_tag
@PSR2 = @PSR1,braces,elseif
@Symfony = @PSR2,return
// then, one uses:
--rules=strict,@Symfony,-@PSR2,@PSR1,-encoding
// which expanded step by step into:
--rules=strict,@PSR2,return,-@PSR2,@PSR1,-encoding
--rules=strict,return,@PSR1,-encoding
--rules=strict,return,encoding,short_tag,-encoding
--rules=strict,return,short_tag
```

Also, remove getLevel method from FixerInterface.

Add FixerInterface::configure method
For now we have only way to turn fixer on or off, without possibility to configure how it should fix the code. This problem manifested first time with HeaderCommentFixer, when we have no way to configure the header itself!
Now, the fixers may have configuration (eg PhpUnitStrictFixer) and we have a way to change default configuration.
Setting the configuration for Fixers when using CLI tool is only possible in .php_cs file, not via CLI args.
In .php_cs file configuration is passed as part of rules definition:->setRules([
    '@PSR2' => true,
    'braces' => false,
    'strict' => true,
    'php_unit_strict' => [ 'assertEquals', 'assertNotEquals' ],
])

When a rule is false then fixer is off, when rule is truly then rule is on - especially when true it is on with default configuration and when it's array it is on and array is passed to configure method.
Also, remove Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader method

Cache now detects configuration change not only by tool version and names of fixers, but also their configuration
Closes #1305. (ping @GrahamCampbell)

I think it makes sense, thanks for all the work!

Thank you @Seldaek , it's great to see your opinion here again ! ;)
Any other thoughts guys ?
ping @GrahamCampbell @gharlan @ceeram @SpacePossum @stof @sstok @ccirello @localheinz (and everyone willing!)

Looks cool, but quite large to review. I'll have to block out like an hour at the weekend to take a proper look at this. ;)

That is why I ask to talk about idea itself (event only the part described in PR descr) and after that take a look at code review itself. Thanks ;)

:+1: to pr description (did not look at code).
only one thing: Why introducing a new term rules? Why not fixers?
--fixers=@Symfony,-encoding

->setFixers([
    '@Symfony' => true,
    'encoding' => false,
]);

only one thing: Why introducing a new term rules? Why not fixers?

About Config. On 1.x line Config class has property fixers and both accessor and mutator. But what are that fixer?
When used before FixCommand (eg inside .php_cs), the fixers are array of names.
When used in/after FixCommand (eg in Fixer), the fixers are array of instances.
This is extra bad and I had to split it. So we have a Fixer, that is a class that fixes sth, and we have a rule, which is a string value that tells us should we use Fixer or not.

Fixer::getLevelAsString is no longer static
In non-tests code method is currently run in instance context and there is no way to mock static method.

why is this even described in the PR when the PR removes the concept of level entirely ?

In .php_cs file configuration is passed as part of rules definition:

this makes it harder to handle the configuration IMO: it forces to add it explicitly instead of having it in groups. IMO, fixer configuration should be separate from the list of rules (and given that the list of rules can be configured in the CLI but config cannot, this makes even more sense).
What about something like this ?
->configureFixer('php_unit_strict', [ 'assertEquals', 'assertNotEquals' ])

Current behavior is very confusing and has so few user scenarios. The whole behavior changed when one add dash to fixers list.

WTF. I did not even know that the current behavior was so weird.
@keradus do you plan a way to define groups easily, so that ZF could define a ZF group for instance in some way for reusability by ZF modules, etc ?

why is this even described in the PR when the PR removes the concept of level entirely ?

I have separated concepts in separate commits, and this move was needed for some of next commit, and if we decided that some change is not good then it would be easier to pick revert only that atomic part.

this makes it harder to handle the configuration IMO: it forces to add it explicitly instead of having it in groups. IMO, fixer configuration should be separate from the list of rules (and given that the list of rules can be configured in the CLI but config cannot, this makes even more sense).

I have taken inspiration here from ESLint. Splitting it would made sets harder - then they should have both list and configuration, and resolving nested sets will not be fun.
Splitting it won't make things easier for CLI - you will not be able to set fixer configuration as well. And when one will want to add that possibility to CLI - he will do it at same cost whatever variant will be choosen.
Also, putting it all togeter will make a whole fixers configuration one, simple data structure like JSON etc, allowing it to move it to separate file (eg, even in this PR one can simply $config->setRules(loadJSONFile())). This is great benefit IMO.

@keradus do you plan a way to define groups easily, so that ZF could define a ZF group for instance in some way for reusability by ZF modules, etc ?

This PR does not focus on that part. It will just allow to have some sets. But yeah, I was thinking about it a bit.
The main point here I can see is that set must be published somewhere, allowing people to use it.
For now it may be published inside repo of PHP CS Fixer (like @Symfony). If one have scenario to register it outside, and when one want to use the tool he will need not only to download a tool, but also download a set definition and inject set into tool and then use it - I'm open for that, but that looks so similar to run ->setRules(...) in .php_cs.
One way or another this PR will open a way for such functionality.

LGTM as it add flexibility both in configuration and call time.

rebased on master

What do you think about using sf OptionResolver for fixer configurations?
(Similar to sf form types.)
public function configureOptions(OptionsResolver $resolver)
{
    $resolver->setDefaults(array(
        // ,,,
    ));
    $resolver->setRequired(...);
    // etc.
}

http://symfony.com/doc/current/components/options_resolver.html

Then I think we have a consensus about idea itself.
Let us all take a deep look into the code :D

What do you think about using sf OptionResolver for fixer configurations?
(Similar to sf form types.)

I would not change FixerInterface::configure method to get OptionResolver on input, but if we want we may use OptionResolver inside (hide it from user).
But we have so few and so simple configure cases, do we really need to resolve them by external class?

updated to recent changes on repo (like extracting to changes into separate PRs)

Diff has only 128KB,
looking good for me ;P

anyone? :)

Thank you for review @gharlan !
Then, I guess ready to merge

lots of work, looks great :)
:+1:
(especially because it will make things more easier when dealing with the configuration system)

Review issues were fixed.

Looks very good. Thanks!

Thank you all for discussion and review.

very cool to see this in :+1:   thanks for all the work : D

@keradus How to remove all fixers by default with the new system?

Maybe just with $config->fixers(array())?

Do not touch fixers at all, use only rules.


Fix broken link to ARMv8-A Programmer's Guide

It looks like they changed the URL format.

This is now a broken link: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0024a/index.html
This seems to be the new format: https://developer.arm.com/documentation/den0024/a

Also seems that the new link about register usage convention in the ABI is this https://developer.arm.com/documentation/den0024/a/The-ABI-for-ARM-64-bit-Architecture


Log patterns

Description
We are proposing to develop an Observability feature to build a framework that surfaces auto-generated patterns in the log data to facilitate detecting outlier events and speed up troubleshooting. The first iteration of this would be implemented as an ingest time processor that would generate an additional field in the index which consists of just the punctuation signature from an event stripped of all the alphanumeric data.
Main Issue: #850

#852
#853
#854
#888
#855
Look into changing breadcrumb trail to include query name
#856
#857
Remove edit pencil icon from events table flyout
Add back button to flyout
Look into adding new tab when clicking see in events button
Have flyout be all the way to the top
Back on mouseover for flyout back button
"Edit name" on hover over pencil icon
Change rename flyout to just have form row
Change name to Edit name in the flyout title
Change table column to sentence case
Change event details flyout header to match the patterns tab design
Use tooltip for "Back" and "Edit name"
Change table width to maximize pattern column
Add search bar above patterns table
Change punctuation signature to generated signature
#858
#859

Check List

[ ] New functionality includes testing.

[ ] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #909 (e54d330) into main (b5c6802) will increase coverage by 16.27%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #909       +/-   ##
=============================================
+ Coverage     55.59%   71.87%   +16.27%
  Complexity      291      291
=============================================
  Files           260       42      -218
  Lines          8715     2311     -6404
  Branches       1892      240     -1652
=============================================
- Hits           4845     1661     -3184
+ Misses         3699      509     -3190
+ Partials        171      141       -30

Flag
Coverage Δ

dashboards-observability
?

opensearch-observability
71.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...hboards-observability/common/constants/explorer.ts

...ent_analytics/explorer/events_views/docViewRow.tsx

...ent_analytics/explorer/events_views/doc_flyout.tsx

...ic/components/common/field_name/field_type_name.ts

...ility/public/framework/redux/store/shared_state.ts

...s/notebooks/components/helpers/zeppelin_parser.tsx

...isualizations/charts/financial/gauge/gauge_type.ts

...rds-observability/common/utils/settings_service.ts

...izations/config_panel/config_panes/json_editor.tsx

...nts/common/flyout_containers/flyout_containers.tsx

... and 208 more

Help us with your feedback. Take ten seconds to tell us how you rate us.

@eugenesk24 can we resolve the condflicts? is this PR still active
closing older test PR with conflict.


Update README [user guide] link

Update README [user guide] link

Codecov Report

Merging #348 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #348   +/-   ##
=========================================
  Coverage     87.93%   87.93%
  Complexity      110      110
=========================================
  Files            19       19
  Lines           373      373
  Branches         50       50
=========================================
  Hits            328      328
  Misses           24       24
  Partials         21       21

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 f65bec5...1d3864c. Read the comment docs.


Unable to connect using ServiceClient

I'm struggling to connect my AzureFunctions to our dynamics 365 instances using ServiceClient when running within Visual Studio (haven't tested when deployed to Azure). Is there anything obvious that I'm doing wrong?
Dependencies:
<PackageReference Include="Azure.Identity" Version="1.3.0" />
<PackageReference Include="Microsoft.PowerPlatform.Dataverse.Client" Version="0.4.6" />

Managed Identity Example
var client = new ServiceClient(new Uri(d365url), GetTokenAsync, false, logger);

private static async Task<string> GetTokenAsync(string instanceUri)
{
    var credential = new DefaultAzureCredential(false);

    var properScope = new Uri(instanceUri).GetComponents(UriComponents.SchemeAndServer, UriFormat.UriEscaped);
    var acessToken = await credential.GetTokenAsync(new TokenRequestContext(new[] { properScope }));

    return acessToken.Token;
}

Fails With:
MsalServiceException: AADSTS70011: The provided request must include a 'scope' input parameter. The provided value for the input parameter 'scope' is not valid. The scope https://devsupporttt.crm6.dynamics.com offline_access openid profile is not valid. The scope format is invalid. Scope must be in a valid URI form https://example/scope or a valid Guid <guid/scope>.
ConnectionString Example
var connectionString = "AuthType=OAuth;Username=***;Url=https://***.crm6.dynamics.com;AppId=51f81489-12ee-4a9e-aaae-a2591f45987d;RedirectUri=app://58145B91-0C36-4500-8554-080854F2AC97;LoginPrompt=Always";

var client = new ServiceClient(connectionString, logger);

Fails With:
MsalClientException: Only loopback redirect uri is supported, but app://58145b91-0c36-4500-8554-080854f2ac97/ was found. Configure http://localhost or http://localhost:port both during app registration and when you create the PublicClientApplication object. See https://aka.ms/msal-net-os-browser for details

Regarding managed identities you have to specify a valid scope. This can be either default or user_impersonation.
Example https://xx.crm4.dynamics.com/.default or https://xx.crm4.dynamics.com/.user_impersonation
The user_impersonation scope is only used for client applications. For non_interactive apps the .default scope suits better.
Here's the snippet of code I use in my azure function.
    private static CdsServiceClient GetClient()
        {
            var cdsServiceUri = Environment.GetEnvironmentVariable("CdsServiceUri");
            var credentials = new EnvironmentCredential();

            var client = new CdsServiceClient(new Uri(cdsServiceUri), async (resourceUri) =>
            {
                var context = new TokenRequestContext(scopes: new[] { $"{cdsServiceUri}/.default" });
                var token = await credentials.GetTokenAsync(context).ConfigureAwait(false);

                return token.Token;
            });

            return client.IsReady ? client : throw client.LastCdsException;
        }

Also Regarding the use of the OAuth flow,  for RedirectUri,  Please try to use RedirectUri=http://localhost .   that should cause a window to pop and aquire your UID\PW


Rename Bytes to TextEncodingNone?

OmniSciDB uses TextEncodingNone to represent text without encoding. Shouldn't we follow the same naming convention?

Also, our TextEncodingNone implementation seems to lack basic operations, like string comparison and assignment.

Closed by #460


Add FlutterView and ViewManager and hook them into the ResidentRunner.

[x] Refactor view support into separate classes.
[x] Make the hot runner grab the main view and call runFromSource on it.
[x] Remove Device.needsDevFS (because it is always true).

@devoncarew @turnidge

lgtm w/ 2 comments.


Files with extension ".%22" upload in unexpected way

Which version of the AzCopy was used?
10.3.4
Which platform are you using? (ex: Windows, Mac, Linux)
Windows
What command did you run?
azcopy cp "C:\Temp\abc\abc.%22" "https://fortesting2.blob.core.windows.net/0000-public/azcopy_pct22_ext_issue/abc/?sv=<SAS>"
What problem was encountered?
Files with extension ".%22" are not named correctly when uploaded with AzCopy compared to any other ".%##" files.
How can we reproduce the problem in the simplest way?
Create some dummy files with names like the following:
abc.%21
abc.%22
abc.%23
Use AzCopy to upload them to Azure blob storage. When using "azcopy list" or viewing them in Azure Storage Explorer, they will appear as:
abc.%21
abc."
abc.%23
The "full" filenames, as seen when using the "Copy URL" button in Storage Explorer, are:
abc.%2521
abc.%22
abc.%2523
This occurs when uploading the file directly or the entire folder with AzCopy. It also occurs when the file is part of a folder being uploaded through Azure Storage Explorer. However, it correctly names the file if the file itself is manually dragged-and-drop into Azure Storage Explorer (my current project has thousands of folders with ".%22" files, so this is not a viable solution).
Have you found a mitigation/solution?
For my current project, I have renamed all of the ".%22" files to ".%z22", and they upload as expected, but it is very time-consuming for me to modify other input files to my analysis tool to account for the name modifications.

@adreed-msft Can you take a quick look in the morning please, see what's going on, and let us know?

Is there anything being done for this? We have received several more projects from our clients that they have uploaded for us using Azure blob storage, and all of the projects have this problem. We are using many hours working around this issue. We would greatly appreciate a fix as soon as possible.

It might be fixed as a result of changes already in progress for release 10.4. @adreed-msft  is checking

Hi John. Thank you for your help. We look forward to version 10.4.0.
Do you know if Azure Storage Explorer will get an update to include AzCopy 10.4.0 when it is released? Most of our clients use Storage Explorer for uploading their data to blob storage.

Do you know if Azure Storage Explorer will get an update to include AzCopy 10.4.0 when it is released?

Probably.  It's not my decision what goes into Storage Explorer, but they usually stay fairly current in terms of the AzCopy version.

This is partially fixed in 10.4.
However, due to the way we try to preserve the names of objects downloaded to windows, there's no real true fix here, aside from making our safe encoding rules a optional, but default command line flag.
Encoded characters like %2A, %20 are pretty benign, and there's no way to tell whether it was us doing that, or you.
Below is the map of unsafe characters on Windows that we encode to (or decode from) in 10.4
var reverseEncodedChars = map[string]rune{
	"%00": 0x00,
	"%3C": '<',
	"%3E": '>',
	"%5C": '\\',
	"%2F": '/',
	"%3A": ':',
	"%22": '"',
	"%7C": '|',
	"%3F": '?',
	"%2A": '*',
}

Correction, it's not actually partially fixed, somehow got it into my head that it was.

It's probably too late for us to consider a command line flag to control this for version 10.4, but we might be able to do so for 10.5 (release date not announced).  @adreed-msft Can you please add it to the 10.5 backlog.
@markstensgaard If waiting for a fix will cause considerable hardship, please email us. I can't promise anything, but let's discuss.  My email address is in my profile page and I'm guessing @adreed-msft 's is too.

Reproduced the issue in v10.8.0

Reproduced the issue in v10.11.0

@JohnRusk . @adreed-msft , may I know whether there are plan to fix this issue? As we still can reproduce it in v10.11.0. Thanks.

@susanandwang I'm not working on AzCopy these days, but @adreed-msft or @zezha-msft will be able to answer your question.

@susanandwang please refer to the release note 10.11 here: https://github.com/Azure/azure-storage-azcopy/releases/tag/v10.11.0
The auto decoding on Windows can be disabled with the flag --disable-auto-decoding.


Fix provider cipher reinit after init/update with a partial update block

The test added previously used a 16 byte block during the update which does not cause internal buffering.
Some internal variables related to the buffering were not being cleared in the init, which meant that the second
update would use the buffered data from the first update.
Added test for this scenario with exclusions for ciphers that do not support partial block updates.
Found by @guidovranken

Checklist

[ ] documentation is added or updated
[x] tests are added or updated

Ran my fuzzer on this PR; hereby all issues with CTX reinit confirmed fixed as far as I can tell.

ping

This pull request is ready to merge

Thanks. Merged to master.


can i set the capacity of  leaf node in shapely STRtree ?

as question

Not currently, but it would be possible. What is your use case for this?


fix: drop unused direct dependencies

This PR contains:

[x] bugfix
[ ] feature
[ ] refactor
[ ] tests
[ ] documentation
[ ] metadata

Breaking Changes?

[ ] yes
[x] no

If yes, please describe the breakage.
Please Describe Your Changes
I found @hapi/joi and generate-object-property and not used in this
project and only bloat node_modules a bit.

Codecov Report

Merging #168 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #168   +/-   ##
=======================================
  Coverage   97.24%   97.24%
=======================================
  Files           1        1
  Lines         145      145
=======================================
  Hits          141      141
  Misses          4        4

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 789e0c1...819bec2. Read the comment docs.


Speak at Volume

Hello.
I tried but it doesn't work. Always speak with the volume set on your device.

Working on mine without any issue out of the box. Without any other changes.

I I don't know, but it works now.


Fix "squeeze" detection in contrib/mkimage/debootstrap

This stops us from erroneously adding "squeeze-lts" to "oldstable" which is now "wheezy", not "squeeze" (but "oldoldstable" is squeeze, hence the new check on /etc/debian_version being 6.* instead, and done as a case for the eventual addition of wheezy-lts, etc).

LGTM


which version of huggingface_hub should be installed?

Firstly, it raises: ImportError: cannot import name 'cached_download' from 'huggingface_hub'
My environments:
diffusers[torch]=0.25.0
huggingace_hub=0.26.5 (auto installed when installing diffusers)
transformers=4.43.0 (4.45.0 and 4.47.0 were also tried)
so I downgraded the huggingace_hub to 0.25.2.
After that,  it raises: OSError: Error no file named config.json found in directory pretrained_models/StableDiffusion/sd-1-5.
My sd1.5 model files were downloaded from the huggingface linkage given by this project at the mainpage. I am sure there is no config.json in huggingface repo.
what should I do?

I finnally fixed it by modify the given yaml. The given pretrained_vae_path didn't direct to vae folder.

I finnally fixed it by modify the given yaml. The given pretrained_vae_path didn't direct to vae folder.

Hello, how to modify pretrained_vae_path?


refactor: centralize sorting logic

Sorting logic was repeated/spreaded across multiple components
Extract the logic from Svelte components
Unit test it thanks to jest

Thanks, this looks great!
Though I do not think we should use Jest. In the spirit of Svelte let's try to use something like uvu instead: https://github.com/lukeed/uvu

I'm not totally against Jest personally. Some of the other core Svelte maintainers don't like it, but I think it has a much bigger community, is better documented, etc. E.g. you can use svelte-jester to handle files that need pre-processing. I have no idea how you'd do that with uvu since there are no examples of it.

I suppose you're right @benmccann - lets go with Jest. It'll make it easier to get contributions.

I'll go ahead and merge this. Can you sort out the conflicts when you have time @thollander ? Love the work done here.

uvu has a svelte example in their repo

uvu has a svelte example in their repo

Yeah, but it doesn't handle preprocessing. E.g. if you want to write TypeScript in your template I'm not sure how you'd do that with uvu. I'm sure you can, but there's just way less documentation

Btw, I think it'd be really cool to make the default sorting by number of stars. Right now I think it's by date added to sveltesociety.dev, but that's kind of random looking and not really meaningful to users

Default sort by stars does sound better, agreed!
For some reason I thought it was sorted by date published, silly me 😆


(nucleus): error when installing Greengrass with custom provisioning plugin

Describe the bug
I've developed my custom provisioning plugin and  when I am trying to install Greengrass with this plugin, I've got an error.
I was strictly following instructions here https://docs.aws.amazon.com/greengrass/v2/developerguide/custom-provisioning.html
To Reproduce

Implement class implementing DeviceIdentityInterface
Implement method name() to return "aws.greengrass.MyCustomProvisioningPlugin"
config.yaml

---
services:
  aws.greengrass.Nucleus:
    version: "2.11.2"
    configuration:

  aws.greengrass.MyCustomProvisioningPlugin:
    configuration:

installation command

  java -Droot="C:\Tools\greengrass" "-Dlog.store=FILE" ^
        -jar "C:\Tools\GreengrassInstaller\lib\Greengrass.jar" ^
        --trusted-plugin "C:\Tools\GreengrassPlugins\aws.greengrass.MyCustomProvisioningPlugin.jar" ^
        --init-config "C:\Tools\GreengrassInstaller\config.yaml" ^
        --component-default-user ggc_user ^
        --setup-system-service true

Expected behavior
Greengrass Cor Software installed successfully with custom provisioning
Actual behavior
Error while trying to setup Greengrass Nucleus
java.lang.IllegalArgumentException: Can't create instance of com.aws.greengrass.deployment.DeviceConfiguration
        at com.aws.greengrass.dependency.Context$Value.constructObjectWithInjection(Context.java:489)
        at com.aws.greengrass.dependency.Context$Value.get(Context.java:436)
        at com.aws.greengrass.dependency.Context.get(Context.java:100)
        at com.aws.greengrass.lifecyclemanager.Kernel.parseArgs(Kernel.java:665)
        at com.aws.greengrass.easysetup.GreengrassSetup.performSetup(GreengrassSetup.java:301)
        at com.aws.greengrass.easysetup.GreengrassSetup.main(GreengrassSetup.java:274)
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at com.aws.greengrass.dependency.Context$Value.constructObjectWithInjection(Context.java:487)
        ... 5 more
Caused by: java.lang.IllegalArgumentException: configuration in services.aws.greengrass.Nucleus is already a leaf, cannot become a container
        at com.aws.greengrass.config.Topics.createInteriorChild(Topics.java:165)
        at com.aws.greengrass.config.Topics.createInteriorChild(Topics.java:151)
        at com.aws.greengrass.config.Topics.lookupTopics(Topics.java:233)
        at com.aws.greengrass.config.Topics.lookupTopics(Topics.java:219)
        at com.aws.greengrass.config.Configuration.lookupTopics(Configuration.java:86)
        at com.aws.greengrass.deployment.DeviceConfiguration.getTopics(DeviceConfiguration.java:768)
        at com.aws.greengrass.deployment.DeviceConfiguration.getLoggingConfigurationTopics(DeviceConfiguration.java:224)
        at com.aws.greengrass.deployment.DeviceConfiguration.handleLoggingConfig(DeviceConfiguration.java:443)
        at com.aws.greengrass.deployment.DeviceConfiguration.<init>(DeviceConfiguration.java:167)
        ... 11 more

Environment

OS: Windows 11 64 bit
JDK version: Amazon Correto 17
Nucleus version: 2.11.2

Log file content
2023-09-28T10:37:40.171Z [INFO] (main) com.aws.greengrass.util.platforms.Platform: Getting platform instance com.aws.greengrass.util.platforms.windows.WindowsPlatform.. {}
2023-09-28T10:37:40.241Z [INFO] (main) com.aws.greengrass.lifecyclemanager.Kernel: No ongoing deployment detected. Proceed as default. {}
2023-09-28T10:37:40.244Z [WARN] (main) com.aws.greengrass.lifecyclemanager.KernelLifecycle: Transaction log C:\Tools\greengrass\config\config.tlog is invalid and no usable backup transaction log exists. Either an initial Nucleus setup is ongoing or all config tlogs were corrupted. {}
2023-09-28T10:37:40.244Z [INFO] (main) com.aws.greengrass.config.Configuration: config-loading. Read configuration from a file path. {path=C:\Tools\GreengrassInstaller\config.yaml}

I've tried to change config.yaml
---
system:
  rootpath: "/greengrass"
services:
  aws.greengrass.Nucleus:
    version: "2.11.2"
  aws.greengrass.RegistrationPlugin:

And got following message in console
Default user creation is only supported on Linux platforms, Greengrass will not make a user for you. Ensure that the user exists and password is stored. Continuing...
Unable to set up Nucleus as a system service
Log file content is equal to previous try

I've tried also following config
---
system:
  rootpath: "/greengrass"
services:
  aws.greengrass.Nucleus:
    componentType: "NUCLEUS"
    version: "2.11.2"
    configuration:
      mqtt:
        port: 443
      awsRegion: eu-central-1
  aws.greengrass.RegistrationPlugin:
    componentType: "PLUGIN"
    configuration:
      server:
        port: 8088

CMD response:
Default user creation is only supported on Linux platforms, Greengrass will not make a user for you. Ensure that the user exists and password is stored. Continuing...
Unable to set up Nucleus as a system service

Log file
2023-09-28T11:25:12.234Z [INFO] (main) com.aws.greengrass.util.platforms.Platform: Getting platform instance com.aws.greengrass.util.platforms.windows.WindowsPlatform.. {}
2023-09-28T11:25:12.305Z [INFO] (main) com.aws.greengrass.lifecyclemanager.Kernel: No ongoing deployment detected. Proceed as default. {}
2023-09-28T11:25:12.311Z [WARN] (main) com.aws.greengrass.lifecyclemanager.KernelLifecycle: Transaction log C:\Tools\greengrass\config\config.tlog is invalid and no usable backup transaction log exists. Either an initial Nucleus setup is ongoing or all config tlogs were corrupted. {}
2023-09-28T11:25:12.311Z [INFO] (main) com.aws.greengrass.config.Configuration: config-loading. Read configuration from a file path. {path=C:\Tools\GreengrassInstaller\config.yaml}

bootstrap.tlog
{"TS":1695900212047,"TP":["system","rootpath"],"W":"changed","V":"/greengrass"}
{"TS":1695900212047,"TP":["services","aws.greengrass.RegistrationPlugin","componentType"],"W":"changed","V":"PLUGIN"}
{"TS":1695900212047,"TP":["services","aws.greengrass.RegistrationPlugin","configuration","server","port"],"W":"changed","V":8088}
{"TS":1695900212047,"TP":["services","aws.greengrass.Nucleus","componentType"],"W":"changed","V":"NUCLEUS"}
{"TS":1695900212047,"TP":["services","aws.greengrass.Nucleus","version"],"W":"changed","V":"2.11.2"}
{"TS":1695900212047,"TP":["services","aws.greengrass.Nucleus","configuration","mqtt","port"],"W":"changed","V":443}
{"TS":1695900212047,"TP":["services","aws.greengrass.Nucleus","configuration","awsRegion"],"W":"changed","V":"eu-central-1"}
{"TS":1695900312305,"TP":["services","main","lifecycle"],"W":"interiorAdded","V":null}

config.tlog
{"TS":1695900212047,"TP":["system","rootpath"],"W":"changed","V":"/greengrass"}
{"TS":1695900212047,"TP":["services","aws.greengrass.RegistrationPlugin","componentType"],"W":"changed","V":"PLUGIN"}
{"TS":1695900212047,"TP":["services","aws.greengrass.RegistrationPlugin","configuration","server","port"],"W":"changed","V":8088}
{"TS":1695900212047,"TP":["services","aws.greengrass.Nucleus","componentType"],"W":"changed","V":"NUCLEUS"}
{"TS":1695900212047,"TP":["services","aws.greengrass.Nucleus","version"],"W":"changed","V":"2.11.2"}
{"TS":1695900212047,"TP":["services","aws.greengrass.Nucleus","configuration","mqtt","port"],"W":"changed","V":443}
{"TS":1695900212047,"TP":["services","aws.greengrass.Nucleus","configuration","awsRegion"],"W":"changed","V":"eu-central-1"}
{"TS":1695900312305,"TP":["services","main","lifecycle"],"W":"interiorAdded","V":null}
{"TS":1,"TP":["services","main","dependencies"],"W":"changed","V":["aws.greengrass.Nucleus"]}
{"TS":1,"TP":["services","main","dependencies"],"W":"changed","V":["aws.greengrass.Nucleus"]}
{"TS":1695900312426,"TP":["services","aws.greengrass.Nucleus","configuration","logging"],"W":"interiorAdded","V":null}
{"TS":1,"TP":["services","aws.greengrass.Nucleus","configuration","componentStoreMaxSizeBytes"],"W":"changed","V":10000000000}
{"TS":1,"TP":["services","aws.greengrass.Nucleus","configuration","componentStoreMaxSizeBytes"],"W":"changed","V":10000000000}
{"TS":1,"TP":["services","aws.greengrass.Nucleus","configuration","deploymentPollingFrequencySeconds"],"W":"changed","V":15}
{"TS":1,"TP":["services","aws.greengrass.Nucleus","configuration","deploymentPollingFrequencySeconds"],"W":"changed","V":15}
{"TS":1695900312429,"TP":["services","aws.greengrass.Nucleus","configuration","runWithDefault"],"W":"interiorAdded","V":null}
{"TS":1695900312429,"TP":["services","aws.greengrass.Nucleus","configuration","runWithDefault","windowsUser"],"W":"changed","V":"ggc_user"}
{"TS":1695900312429,"TP":["services","aws.greengrass.Nucleus","configuration","runWithDefault","windowsUser"],"W":"changed","V":"ggc_user"}
{"TS":1695900312481,"TP":["services","aws.greengrass.Nucleus","configuration","platformOverride"],"W":"interiorAdded","V":null}
{"TS":1,"TP":["services","aws.greengrass.Nucleus","dependencies"],"W":"changed","V":null}
{"TS":1,"TP":["services","aws.greengrass.Nucleus","dependencies"],"W":"changed","V":[]}
{"TS":1,"TP":["services","aws.greengrass.Nucleus","lifecycle"],"W":"interiorAdded","V":null}
{"TS":1695900312502,"TP":["services","aws.greengrass.Nucleus","lifecycle","bootstrap"],"W":"interiorAdded","V":null}
{"TS":1695900312502,"TP":["services","aws.greengrass.Nucleus","lifecycle","bootstrap","requiresPrivilege"],"W":"changed","V":true}
{"TS":1695900312502,"TP":["services","aws.greengrass.Nucleus","lifecycle","bootstrap","requiresPrivilege"],"W":"changed","V":true}
{"TS":1695900312502,"TP":["services","aws.greengrass.Nucleus","lifecycle","bootstrap","script"],"W":"changed","V":"copy \"c:\\greengrass\\alts\\current\\distro\\bin\\greengrass.xml\" \"c:\\greengrass\\packages\\artifacts-unarchived\\aws.greengrass.Nucleus\\2.11.2\\aws.greengrass.nucleus\\bin\\greengrass.xml\"& del /q \"c:\\greengrass\\alts\\current\\*\"&& for /d %x in (\"c:\\greengrass\\alts\\current\\*\") do @rd /s /q \"%x\"&& echo {configuration:/jvmOptions} > \"c:\\greengrass\\alts\\current\\launch.params\"&& mklink /d \"c:\\greengrass\\alts\\current\\distro\" \"c:\\greengrass\\packages\\artifacts-unarchived\\aws.greengrass.Nucleus\\2.11.2\\aws.greengrass.nucleus\"&& exit 100"}
{"TS":1695900312502,"TP":["services","aws.greengrass.Nucleus","lifecycle","bootstrap","script"],"W":"changed","V":"copy \"c:\\greengrass\\alts\\current\\distro\\bin\\greengrass.xml\" \"c:\\greengrass\\packages\\artifacts-unarchived\\aws.greengrass.Nucleus\\2.11.2\\aws.greengrass.nucleus\\bin\\greengrass.xml\"& del /q \"c:\\greengrass\\alts\\current\\*\"&& for /d %x in (\"c:\\greengrass\\alts\\current\\*\") do @rd /s /q \"%x\"&& echo {configuration:/jvmOptions} > \"c:\\greengrass\\alts\\current\\launch.params\"&& mklink /d \"c:\\greengrass\\alts\\current\\distro\" \"c:\\greengrass\\packages\\artifacts-unarchived\\aws.greengrass.Nucleus\\2.11.2\\aws.greengrass.nucleus\"&& exit 100"}
{"TS":1695900312556,"TP":["setenv"],"W":"interiorAdded","V":null}
{"TS":0,"TP":["setenv","GGC_VERSION"],"W":"changed","V":"2.11.2"}
{"TS":0,"TP":["setenv","GGC_VERSION"],"W":"changed","V":"2.11.2"}

Hello,
You provided the option --trusted-plugin "C:\Tools\GreengrassPlugins\aws.greengrass.MyCustomProvisioningPlugin". This needs to be a jar file ending with .jar.
Please fix that and try again. I'd recommend that you start from the fleet provisioning plugin as an example of how to implement the logic: https://github.com/aws-greengrass/aws-greengrass-fleet-provisioning-by-claim

Hi @MikeDombo
Thanks for your response
It was a typo in message. I've fixed it.
-Droot and rootpath are matching

With the correct configuration and command, please run again.

Oh. Thanks for this clarification.
I was wondering because effectiveConfig doesn't contain correct values. But when I've checked config.tlog, it contains correct changes.
Than you again.

Yes, Greengrass only updates effective config when it starts and stops, not while it is running.
Glad you got it working.


Port Prometheus source to adapter/v2

Fixes: #1201
Proposed Changes

Using v2 adapter in prometheus source.

/asign slinkydeveloper

/ok-to-test

/retest

/assign

/retest

/lgtm
/approve

/retest

Hi! can you run hack/update-codegen.sh and commit the updated files?

Yes

/lgtm

Thanks for your contribution!

+1
On Fri 8. May 2020 at 12:39, Francesco Guardiani<EMAIL_ADDRESS>wrote:

Thanks for your contribution!
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/knative/eventing-contrib/pull/1210#issuecomment-625754228,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABGPTSKFQGQUSJXZQS54LDRQPOMHANCNFSM4M35DZYQ
.

--
Sent from Gmail Mobile