Swift on iOS and Firestore don't play ball.

Steps to reproduce:

Create New App in Android studio including support for swift.
Add Firestore plugins and create firestore app
Try to run on iOS

I'm not adding the main.dart because I've not edited it from the boilerplate given when the new app was created.
Logs
Launching lib/main.dart on iPhone 7 in debug mode...
Starting Xcode build...
Xcode build done.
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    diff: /Podfile.lock: No such file or directory
    diff: /Manifest.lock: No such file or directory
    error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
Could not build the application for the simulator.
Error launching application on iPhone 7.

Flutter Analyze failed to complete (been running 10mins...)

[✓] Flutter (Channel beta, v0.4.4, on Mac OS X 10.13.4 17E202, locale en-GB)
    • Flutter version 0.4.4 at /Users/mikeashelby/development/flutter
    • Framework revision f9bb4289e9 (4 weeks ago), 2018-05-11 21:44:54 -0700
    • Engine revision 06afdfe54e
    • Dart version 2.0.0-dev.54.0.flutter-46ab040e58

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/mikeashelby/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.4, Build version 9F1027a
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.0

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 24.2.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] Connected devices (2 available)
    • A0001    • d52816c6                             • android-arm • Android 7.1.2 (API 25)
    • iPhone 7 • 4D6D4CB6-EE8B-40C8-9676-C95A8F3D8334 • ios         • iOS 11.4 (simulator)

• No issues found!

Any help appreciated.

#15437 is a closed issue resembling this one.

@Hixie

Closing as dup of #18673

@mikeashelby
This issue has been moved to https://github.com/FirebaseExtended/flutterfire/issues/797. Any further collaboration will be done there.


Update gdnative interface for beta5 (commit 89a33d28f)

The rest will come later, it will require some effort to make it work again...

How do you even know what to change

See git log for this file
https://github.com/godotengine/godot/blob/master/core/extension/gdnative_interface.h
Commit version is stated in godot editor console and editor launcher, track it for a that commit and voila.
Of course this probably can be simply replaced with ImportC, however I prefer to have a real D file for better IDE experience.

Noted

I updated the generator, now I need to adjust registration code, but I expect to finish it today if everything goes smooth.

I had to remove most of auto encoding for strings and replaced with simple helper methods generation.
Unfortunately only type registration is working at this moment, methods and other members doesn't registered at all, will look into it today.


[Profiler] Separate Profiler for wider use @open sesame 12/10 12:09

#795 [Android] Integrate openblas into android
[Profiler] Separate Profiler for wider use

Add profiler for wider use while separating listener from profiler

**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee<EMAIL_ADDRESS>

[Test] Add profiler test

**Changes proposed in this PR:**
- Add profiler test
- Update build to attach profiler

**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee<EMAIL_ADDRESS>

[Profiler] Add basic profilerlistener

This patch adds global profiler listener for various purpose

From this patch,
1. Profiler can called globally with designated event key
2. Listener reporting suite included

**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.4.20191203. Thank you for submitting PR #797. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnsuite.mooo.com/.

:octocat: cibot: @zhoonit, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnsuite.mooo.com/nntrainer/ci/repo-workers/pr-checker/797-202012091645360.26731300354004-fe1c13e2b4eaf456dd0dcc3b961ca3fb32b1f1ef/.

:octocat: cibot: @zhoonit, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnsuite.mooo.com/nntrainer/ci/repo-workers/pr-checker/797-202012091654450.71081399917603-c28b87bbe0b92e1661232b9a3e64da3014287393/.

:octocat: cibot: @zhoonit, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnsuite.mooo.com/nntrainer/ci/repo-workers/pr-checker/797-202012091753130.1917610168457-541c9de8cf30b8273cd8a33b70b509cd8a415891/.

:octocat: cibot: @zhoonit, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnsuite.mooo.com/nntrainer/ci/repo-workers/pr-checker/797-202012091813300.9170229434967-a45629282e6c30070b034c485333d1a72d5385bd/.

Sorry for adding a hot fix :(
v2)
1. Change listener to RAII object (with forcing profiler, event
designation)
2. Add unsubscribe method
3. Change event register to set to prevent notifying a listener twice
4. Change semantics to not allow adding the same listener twice

:octocat: cibot: @zhoonit, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnsuite.mooo.com/nntrainer/ci/repo-workers/pr-checker/797-202012141607290.34783101081848-2386b29eeddf0ec06c6a8e94e75b9c6d60cfbc82/.

:octocat: cibot: @zhoonit, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnsuite.mooo.com/nntrainer/ci/repo-workers/pr-checker/797-202012141734040.9016969203949-b3528a43e954124a5f98861b878e6898f34787ba/.


[Android] Implement using generic IM(invoke,read,write,subscribe) APIs

Fix #25468

@joonhaengHeo please update the summary to explain the approach taken and how things are used. Ideally reviewers would read the summary to understand what to expect in the PR. Fixes ... forces me to go to a issue and even then, the issue describes just "use generic IM for ..." but does not explain how the implementation is done.

@andy31415
Sorry for the confusion. The reason I posted this was not for the purpose of merging, but to share the current progress with others. As you said, I will write and upload it accurately at the time of PR.

@joonhaengHeo Unfortunately, this is failing Androir CI (probably because of a bad merge against other changes?).  https://github.com/project-chip/connectedhomeip/pull/26704 created to revert this so we can get the tree back into a passing-CI state.


Display Video Courses of 1 User or Authorized User

@Naveen-g09  @devsargam   is this issue still open ?

Yes

Hi @Naveen-g09 @devsargam
Do I need to design Download section ? Can you provide a short description for this issue

Hey @Naveen-g09 where is the step to setup this React Native project ?


[Bug] Unsupported architectures: ChatGLMForConditionalGeneration.

Checklist

[ ] 1. I have searched related issues but cannot get the expected help.
[ ] 2. The bug has not been fixed in the latest version.
[ ] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
[ ] 4. If the issue you raised is not a bug but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
[ ] 5. Please use English, otherwise it will be closed.

Describe the bug
ValueError: Unsupported architectures: ChatGLMForConditionalGeneration. Supported list: ['ChatGLMForCausalLM', 'ChatGLMModel', 'CohereForCausalLM', 'DbrxForCausalLM', 'DeepseekForCausalLM', 'DeepseekV2ForCausalLM', 'ExaoneForCausalLM', 'GemmaForCausalLM', 'Gemma2ForCausalLM', 'GPTBigCodeForCausalLM', 'Grok1ForCausalLM', 'Grok1ModelForCausalLM', 'InternLM2ForCausalLM', 'LlamaForCausalLM', 'Phi3ForCausalLM', 'LlamaForClassification', 'LlamaEmbeddingModel', 'MistralModel', 'LlavaLlamaForCausalLM', 'LlavaQwenForCausalLM', 'LlavaMistralForCausalLM', 'LlavaVidForCausalLM', 'MiniCPMForCausalLM', 'MistralForCausalLM', 'MixtralForCausalLM', 'QuantMixtralForCausalLM', 'QWenLMHeadModel', 'Qwen2ForCausalLM', 'Qwen2MoeForCausalLM', 'StableLmForCausalLM', 'YiVLForCausalLM']
vllm 0.5.5 supports this architecture. why has sglang always been unsupported?
Reproduction
1
Environment
1

If a model, like Llama or Mixtral, becomes very popular, in other words, is widely used, we will definitely support it proactively as soon as possible. However, for other models that are not as popular, we highly welcome contributions from the community. I think if a framework wants to be adopted by enterprise users, it's not about supporting as many models as possible. Instead, it should focus on SOTA models and better performance, usability, and scalability.

Thank you, I will try.

I think ChatGLM has been supported.
You can see https://github.com/sgl-project/sglang/blob/main/python/sglang/srt/models/chatglm.py and https://sglang.readthedocs.io/en/latest/model_support.html


Cannot read property error on localhost:4200/tests

I did an ember install ember-cli-blanket.
I'm getting the following error on the localhost:4200/tests

I'm not getting this error on localhost:4200/tests?coverage

Note: I did modify the code generated by ember install ember-cli-blanket

@dafortin did you run against #c992c5efb4d154292a5c04233727a7a282f0e318
It's not released so wouldn't expect it to be resolved unless you run against that sha
That was a regression - fixed in #133
not yet release but feel free to verify against that commit.

I will try it :) Thanks !

@jschilli  I'm new to git hub and to ember. Any reference or hint on how I can use a version that was not release yet?

no problem
if you update your package.json to a git url reference e.g. http://stackoverflow.com/a/18049685
e.g.     "broccoli-ember-inline-template-compiler": "git://github.com/jschilli/broccoli-ember-inline-template-compiler.git#use-bower-template-compiler",
but substituting in the correct values.

On Apr 21, 2016, at 3:33 PM, David Fortin<EMAIL_ADDRESS>wrote:
@jschilli https://github.com/jschilli I'm new to git hub and to ember. Any reference or hint on how I can use a version that was not release yet?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub https://github.com/sglanzer/ember-cli-blanket/issues/135#issuecomment-213081916

Regression done. Fixed.


Fixed issue #35 - Center Generate button text

issue #35
I have centred the generate button text in the style.css file
Here's how it looks after the changes being applied to it :

Just center this

I have centred the try button text, please have a look at it


Event.once may return something or promise

In case of resolving 'once' even by triggerThen, now 'once' do not return undefined, but the callback return value (example : a promise).

@bendrucker Would be great if Underscore mentions on http://bookshelfjs.org/ were replaced with lodash ones.  I was under impression that Bookshelf still uses Underscore. I could capture this under Wiki, but looks like there is no page for this. Maybe I should enter it as a separate issue?

It doesn't really make a difference, does it?

I believe lodash has better performance, than underscore. Plus up-to-date docs add overall value to the project in general. So, to me, it does make a difference. Your call.

Yes, lodash is better in basically every way. But we're going to go the direction steering people towards functional array methods instead of lodash stuff anyway.


Add ed25519 signing support

Add support for ed25519 signing and tests.
I'm not a crypto expert, so someone more experienced as me should double check this.
This PR is build upon PR #16

Updated with requested changes

Thanks a ton!


Swipe with multimenues

At the moment if you have two menues, one on each side,  if you swipe left the left menu opens,  right now i have the option to have swipe right open the right menu (which closes left), or just close left if it is open.
What i would like to do is close left if it is open and then exit, so that a second right swipe would then open the right menu. Alternativly is there a simple way of testing if a menu is slready open or not, so i can make the swipe/click action conditional on which menu is already open if any.

@thawkins Right now you can now it checking the html element's classes.
If you have Sidr menu which name is foo, you can check if it's already opened with:
$('html').hasClass('foo-open');
But yeah, you've catched a good point. So, in the following versions I'll try to give you an API to check if the menu is opened, or which menu is currently opened.
Thank you. I'll keep this issue opened until I implement that.

Finally I've released a new version (2.2.0) that implements the ability to get the status object where you can get that information:
var status = $.sidr('status');

The status content will be:
{
    moving: (boolean), // A boolean indicating if the menu is currently being moved
    opened: (string || false) // Name of the opened menu or false if all are closed
}


Zip results folder after finishing script

When running sct_run_batch in a cluster, it would be convenient to create a single zip archive of results/, qc/ and log/, for convenient copy to local station.
The archive could be called results_YYMMDDHHMMSS.zip

Should the cluster name be entered as a variable in sct_run_batch? i'm thinking of using scp to transfer the newly created zip file to local station.

Should the cluster name be entered as a variable in sct_run_batch? i'm thinking of using scp to transfer the newly created zip file to local station.

i don't see the advantage in doing that (the hostname is already recorded in sct_run_batch log)


kube-apiserver TLS verification failed while trying to deploy VM using kubectl

What happened:
TLS verification failed while trying to deploy basic vm.yaml provided by kubevirt lab.
kubectl apply -f https://kubevirt.io/labs/manifests/vm.yaml
Error from server (InternalError): error when creating "https://kubevirt.io/labs/manifests/vm.yaml": Internal error occurred: failed calling webhook "virtualmachines-mutator.kubevirt.io": failed to call webhook: Post "https://virt-api.kubevirt.svc:443/virtualmachines-mutate?timeout=10s": tls: failed to verify certificate: x509: certificate signed by unknown authority
What you expected to happen:
VM to deploy successfully
How to reproduce it (as minimally and precisely as possible):

kubeadm init

kubeadm init --apiserver-advertise-address=10.158.xx.xx --apiserver-cert-extra-sans=10.158.xx.xx --pod-network-cidr=<IP_ADDRESS>/16 --node-name node01

install flannel CNI

kubectl apply -f https://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.yml

install kubevirt

export VERSION=$(curl -s https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirt/stable.txt)
kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/${VERSION}/kubevirt-operator.yaml
kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/${VERSION}/kubevirt-cr.yaml

apply lab vm

kubectl apply -f https://kubevirt.io/labs/manifests/vm.yaml

Additional context:
The error msg shown above was coming from kube-apiserver, looks like kube-apiserver don't have the proper CA cert, do I need to add it manually? if yes, how?
Environment:

KubeVirt version (use virtctl version):-

Client Version: version.Info{GitVersion:"v1.2.2", GitCommit:"1466b658f78b9b8bb9517ffb6dafd4b777f33fe6", GitTreeState:"clean", BuildDate:"2024-06-06T04:42:11Z", GoVersion:"go1.21.8 X:nocoverageredesign", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{GitVersion:"v1.2.2", GitCommit:"1466b658f78b9b8bb9517ffb6dafd4b777f33fe6", GitTreeState:"clean", BuildDate:"2024-06-06T05:46:26Z", GoVersion:"go1.21.8 X:nocoverageredesign", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes version (use kubectl version):-

Client Version: v1.30.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.1

VM or VMI specifications: https://kubevirt.io/labs/manifests/vm.yaml
Cloud provider or hardware configuration: non-cloud provider single node cluster
OS (e.g. from /etc/os-release): Ubuntu 22.04.3
Kernel (e.g. uname -a):-

Linux node01 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May  7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Install tools:-

export VERSION=$(curl -s https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirt/stable.txt)
kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/${VERSION}/kubevirt-operator.yaml
kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/${VERSION}/kubevirt-cr.yaml

Others: N/A

Figured out that the issue is with the kube-apiserver no_proxy settings, adding pod CIDR and service network into no_proxy settings solved the issue.


NFINT-906: add modified on and add special renderer for date type columns

(this includes Christina's commit from https://github.com/Sage-Bionetworks/synapse-web-monorepo/pull/472)

Thank you @jay-hodgson !!


amendment: Split milestone 2 into 2 parts

Project Abstract
Previous pull request: https://github.com/w3f/Grants-Program/pull/1482
Milestone 2 discussion: https://github.com/w3f/Grant-Milestone-Delivery/pull/1047#issuecomment-1881796131
Brief description
Building a strong community requires metrics that measure the quality and stickiness of a community, and not just vanity metrics. We use behavioral and network science to create a community health dashboard for members and moderators to understand and get a bird's eye view of the health of their community.
Grant level

[ ] Level 1:  Up to $10,000, 2 approvals
[x] Level 2:  Up to $30,000, 3 approvals
[ ] Level 3:  Unlimited, 5 approvals (for >$100k: Web3 Foundation Council approval)

Application Checklist

[x] The application template has been copied and aptly renamed (project_name.md).
[x] I have read the application guidelines.
[x] Payment details have been provided (bank details via email or Polkadot (USDC & USDT) address in the application).
[x] I am aware that, in order to receive a grant, I (and the entity I represent) have to successfully complete a KYC/KYB check.
[x] The software delivered for this grant will be released under an open-source license specified in the application.
[x] The initial PR contains only one commit (squash and force-push if needed).
[x] The grant will only be announced once the first milestone has been accepted (see the announcement guidelines).
[ ] I prefer the discussion of this application to take place in a private Element/Matrix channel. My username is: @_______:matrix.org (change the homeserver if you use a different one)

Ok, gonna close this pull request and submit the amendment using a more recent fork

Conversation has moved here: https://github.com/w3f/Grants-Program/pull/2195


Add std.rand/randint

We could use external programs to do that but using the rand crate should be faster. There is no way to specify a seed, at least for now.

LGTM! Thanks for the contribution!


Add memory card support for Dreamcast

This adds memory card support for the Dreamcast, mostly by using the existing framework for N64 memory cards. It switches which memory card file is loaded depending on what system is set in wired_adapter.system_id.
Since an entire 128KB memory card is loaded into RAM, it currently only supports one memory card.
It also saves ~1KB of IRAM by using a loop instead of several hundred NOPs. Timing should be within a few clock cycles of the older function per 100ns delay.

Thanks for contributing this! I'm hopeful to look at it sometime in august.

Hey, not sure what stage this is, but I did use this version of 1.8.3 HW1 and had my vitual memory card working.  I did use it on HW2 with triggers on a different board and the system had issues.  The controllers wouldn't sync to the blueretro board continuously, and when they did, it was intermittent.  Have you seen anything like this on HW2 with this Virtual VMU version of 1.8.3?

I finally had the time to look a it and test it!
It work really well and the code is very high quality :)
I did remove the changes made to the memory card module.
I want this code to stay system agnostic and the use a single file for memory card needs.
It's makes things a lot easier to maintain.
As expected the DC BIOS will prompt user to format the emulated VMU itself.
Other than that I only made minor cleanup in the maple module.
I wrote a web interface to allow downloading/uploading VMU binary (compatible with Flycast files, likely other emu aswell)
See beta web config:
https://darthcloud.github.io/BlueRetroWebCfg_Beta/
I also wrote docs (still only in the beta wiki):
Some rational behind the memory card module design:
https://github.com/darthcloud/BlueRetroWiki/blob/master/BlueRetro-BLE-Web-Config-User-Manual.md#7---memory-card-manager-pages
And for the DC VMU manager:
https://github.com/darthcloud/BlueRetroWiki/blob/master/BlueRetro-BLE-Web-Config-User-Manual.md#72---dc-vmu-manager-page
Thanks again, this is a really great contribution!!

It will merge next week after some more beta testing. Will be in v1.9

Awesome!
On Sat, Aug 19, 2023 at 7:52 PM Jacques Gagnon @.***>
wrote:

It will merge next week after some more beta testing. Will be in v1.9
—
Reply to this email directly, view it on GitHub
https://github.com/darthcloud/BlueRetro/pull/736#issuecomment-1685142980,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZ47TKOFGQC2FMBS6PKJMNLXWFNTDANCNFSM6AAAAAA2VS2GFQ
.
You are receiving this because you commented.Message ID:
@.***>

Thanks for reviewing this and getting the web interface working, too! I'm glad I was able to help folks get VMUs working.

@breademan thanks for doing the hard work 🙂
Let me know if you are still working on your idea of multi player VMU.

To confirm, is this available to be used now on 1.8.4 or to be released later on the 1.9?  Thanks!!


Proposed implementation to address WW-5030.

Proposed implementation to address WW-5030.
Introduce new junit-portlet plugin.

Utilizes a copy of org.springframework.mock.web.portlet package from Spring 4.3.x, refactored to org.apache.struts2.mock.web.portlet.  Also copies one interface from org.apache.struts2.mock.web.portlet.  The package-info.java files identify the package renaming.
Provides test cases for the mock objects.
Modifies the portlet plugin to use the junit-portlet plugin as a dependency.  Adds a small boundary case fix for PortletRequestMap.

Coverage increased (+0.6%) to 49.16% when pulling ec3532f30ae5b74e76772eabcac57a885cd1ca4f on JCgH4164838Gh792C124B5:WW-5030_Proposed_Change into 9053c84d505dfbcca0f1452b8ee2f2adbb5e54a5 on apache:master.

Hello Apache Struts Team.
Initially considered adding the mock objects to the junit-plugin itself, but that increases the size of its jar for a set of mocks that are only really intended for portlet unit tests.  So ... this change proposes to use a new plugin (junit-portlet) to try and limit the dependencies to a separate plugin.
Please note that the mock objects in this PR are directly from Spring 4.3.x (Apache-2.0 license) and retain their original form (the only change is a package name refactoring).  The package-info files explains package renaming and the reasoning as a comment within them (to make the change clear).
There also is one minor change (noted by a comment) in MockActionResponse for a constructor that always failed.
Beyond the above, the only new code introduced is a unit test module to test the mock objects themselves.
If anyone notes any issues with the above (compliance or otherwise), please advise.

Astonish! 👏 💯

Hello @lukaszlenart .
I think what you say above with respect to refactoring this PR to make it a portlet-mocks-plugin instead makes sense (and may address a concern raised via comment in the Jira).
I will attempt to make that change in the next few days and if successful, I will push the changes in a new commit.  Thanks for reviewing and providing the suggestions for refactoring.  :smile:

We can merge this PR as is, and then you can refactor it if needed - what works better :)

Hello @lukaszlenart .
A refactoring attempt was already underway when I read the comment, so I continued with it anyway.  :wink:
The PR has been updated and now reflects a portlet-mocks-plugin that hopefully has minimized the dependencies.  Tried a couple of strategies to deal with cycles in project but the current one was the only one that worked-out.
The copy-back/update for my local repository had a few mistakes, so the commit had to be amended a few times ... :sweat:
Also confirmed that both the original version and the refactored version of the plugin worked with the test reproducer project provided with the Jira using Spring 4.3.x and 5.2.x. (after modifying its pom to use the new plugin).
The latest revision seems cleaner than the original, but let me know what you think.


[SPARK-11413][BUILD] Bump joda-time version to 2.9 for java 8 and s3

It's a known issue that joda-time before 2.8.1 is incompatible with java 1.8u60 or later, which causes s3 request to fail. This affects Spark when using s3 as data source.
https://github.com/aws/aws-sdk-java/issues/444

Can one of the admins verify this patch?

ok to test

Merged build triggered.

Merged build started.

Test build #44689 has started for PR 9379 at commit bfeb6f4.

Test build #44689 has finished for PR 9379 at commit bfeb6f4.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):\n  * public abstract class MemoryConsumer \n  * final class ShuffleExternalSorter extends MemoryConsumer \n  * public final class BytesToBytesMap extends MemoryConsumer \n  *  public final class MapIterator implements Iterator<Location>\n  * public final class UnsafeExternalSorter extends MemoryConsumer \n  *  class SpillableIterator extends UnsafeSorterIterator\n  * public final class UnsafeSorterSpillReader extends UnsafeSorterIterator \n  * public final class UnsafeSorterSpillWriter \n

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/44689/
Test FAILed.

Merged build finished. Test FAILed.

Test build #1963 has started for PR 9379 at commit bfeb6f4.

Test build #1963 has finished for PR 9379 at commit bfeb6f4.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test build #1964 has started for PR 9379 at commit bfeb6f4.

Test build #1964 has finished for PR 9379 at commit bfeb6f4.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

@yongjiaw do you see this failure locally? Some of these are spurious failures but I can't quite make out if there's a real one here.

On my local machine, running ./dev/run-tests also fails but for different tests.
But it should be unrelated to the change, because even I run it with the unmodified master branch, it still fails the network-shuffle test.
This is the last few lines of the console output.
[info] Test org.apache.spark.mllib.regression.JavaLassoSuite.runLassoUsingConstructor started
[info] Test org.apache.spark.mllib.regression.JavaLassoSuite.runLassoUsingStaticMethods started
[info] Test run finished: 0 failed, 0 ignored, 2 total, 6.108s
-- org.jblas INFO Deleting /local_disk/git/yongjiaw_spark/target/tmp/jblas3269426321238629267/libjblas.so
-- org.jblas INFO Deleting /local_disk/git/yongjiaw_spark/target/tmp/jblas3269426321238629267/libjblas_arch_flavor.so
-- org.jblas INFO Deleting /local_disk/git/yongjiaw_spark/target/tmp/jblas3269426321238629267
[info] ScalaTest
[info] Run completed in 1 hour, 23 minutes.
[info] Total number of tests run: 709
[info] Suites: completed 141, aborted 0
[info] Tests: succeeded 709, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[info] Passed: Total 818, Failed 0, Errors 0, Passed 818
[error] (network-shuffle/test:test) sbt.TestsFailedException: Tests unsuccessful
[error] (network-common/test:test) sbt.TestsFailedException: Tests unsuccessful
[error] (sql/test:test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 5157 s, completed Oct 31, 2015 2:47:48 PM

Test build #1966 has started for PR 9379 at commit bfeb6f4.

Test build #1966 has finished for PR 9379 at commit bfeb6f4.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Seems OK to me in that the release notes do not indicate any incompatible changes, and the tests pass, and it fixes some bugs. We don't actually use Joda time in Spark; it appears to be added for Hive.

merged to master


Set app/class name for log entries

I'm using semantic_logger to send logs to a remote syslog endpoint, but they are all reporting as SemanticLogger.
How do I change the name to the app's name, so centralized logging can parse it more easily?

To change the application name globally add the following line to application.rb, or the relevant environment file:
    config.semantic_logger.application = 'my_application'

Alternatively add the application name when adding the syslog appender:
config.semantic_logger.add_appender(
  appender: :syslog,
  application: 'my_application'
)

Additional syslog arguments: https://github.com/rocketjob/semantic_logger/blob/master/lib/semantic_logger/appender/syslog.rb#L36

I'm encountering this problem too, with the json formatter:
rule_1        | {"host":"171eee07121d","application":"Semantic Logger","timestamp":"2017-11-02T19:07:41.427252Z","level":"info","level_index":2,"pid":80,"thread":"29279780","duration_ms":79.5275,"duration":"79.5ms","named_tags":{"request_id":"7fcaaf0e-9d22-422e-9250-203e007b069e","ip":"<IP_ADDRESS>"},"name":"RulesController","message":"Completed #index","payload":{"controller":"RulesController","action":"index","format":"HTML","method":"GET","path":"/rules","status":200,"view_runtime":17.62,"db_runtime":5.93,"status_message":"OK"}}
rule_1        | {"host":"3b064628c117","application":"rule-service","timestamp":"2017-11-02T19:12:28.968900Z","level":"warn","level_index":3,"pid":159,"thread":"5815300","name":"Rails","message":"** [Honeybadger] Unable to start Honeybadger -- api_key is missing or invalid. level=2 pid=159"}
rule_1        | {"host":"171eee07121d","application":"Semantic Logger","timestamp":"2017-11-02T19:18:51.976652Z","level":"debug","level_index":1,"pid":80,"thread":"29279780","named_tags":{"request_id":"b8c1c654-f54e-4595-99d9-4504e6e6b15f","ip":"<IP_ADDRESS>"},"name":"Rack","message":"Started","payload":{"method":"GET","path":"/rules","ip":"<IP_ADDRESS>"}}

I set the application to rule-service but most of the output still says Semantic Logger


Colon in Element Names Mangled With OptionOutputAsXml and DocumentNode.WriteTo()

This issue is related to #95, where it was reported for attribute names.
I'm using HtmlAgilityPack for a library where I sanitize Xml documents from third parties. Its working great for me to fix Xml errors in the documents, but I've found one thing it doesn't handle correctly when OptionOutputAsXml is enabled: Element names with Xml namespace discriminators.
Here's a repro:
    [Fact]
    public void TransformToXmlWithNamespace()
    {
        var input = @"<RootElement xmlns:MyNamespace=""value"">
  <value:element />
</RootElement>";
        var htmlDoc = new HtmlAgilityPack.HtmlDocument();
        htmlDoc.LoadHtml(input);
        htmlDoc.OptionOutputAsXml = true;
        htmlDoc.OptionOutputOriginalCase = true;
        var xmlDoc = htmlDoc.DocumentNode.WriteTo();

        var expected = @"<?xml version=""1.0"" encoding=""utf-8""?>" +
                       @"<RootElement xmlns:MyNamespace=""value"">
  <value:element />
</RootElement>";

        Assert.Equal(expected, xmlDoc);
    }

The actual xmlDoc  is:
<?xml version="1.0" encoding="utf-8"?>
<RootElement xmlns:MyNamespace="value">
  <_value3a_element></_value3a_element>
</RootElement>

It keeps the attribute xmlns:MyNamespace but sanitizes the _value3a_element.
That's because colons : are only valid characters for attribute names, not for elements, see HtmlDocument.GetXmlName().
Would it be possible to allow colons also for elements? What's the reason it is disallowed? Maybe you could add an OptionPreserveXmlNamespaces to the HtmlDocument so the behavior can be controlled?
Can I just create a PR for this?
Thanks for the great library!

Hello @GeorgDangl ,
Sure go ahead. If the default behavior is preserved and you add an option for this purpose, I have no problem.
Best Regards,
Jonathan

Done, @JonathanMagnan, see PR #169.
Any estimate on how long it would take to release a new NuGet package (if the PR is accepted)?
Looking forward to your feedback!

Hello @GeorgDangl ,
My developer will look at it tomorrow.
So if the pull is accepted, the new version should be released Friday or on next Monday.
Best Regards,
Jonathan

Hello @GeorgDangl ,
Your pull has been released in the v1.8.0
Let me know if there is anything missing.
Best Regards,
Jonathan


HULU WebPage Clone

I am TRIDIB BAG,  GSSOC'22 contributor, wanted to add HULU Landing  Page Clone using HTML, CSS as there is nothing on this topic . So I want to contribute on it.
Please @Rayman-Sodhi , can You assign it to me ?

Why just login page make a website clone @Mrjoy832

@gurjeetsinghvirdee , Please assign, I will be making HULU WebPage clone

@gurjeetsinghvirdee , Please assign, I will be making HULU WebPage clone

Already there check on link

Okay @gurjeetsinghvirdee , I will be adding Pluralsight Complete webpage clone...

Okay @gurjeetsinghvirdee , I will be adding Pluralsight Complete webpage clone...

Assigning to uh @Mrjoy832


postcss-loader causes change in how webpack recognizes modules

installation of postcss-loader, causes the following error.
i can install postcss standalone just fine and it doesn't mess with the compilation.
error:
CMD: `rimraf dist && cross-env NODE_ENV=development webpack serve --mode=development`
[start:webpack] SyntaxError: Cannot use import statement outside a module
[start:webpack]     at internalCompileFunction (node:internal/vm:73:18)
[start:webpack]     at wrapSafe (node:internal/modules/cjs/loader:1176:20)
[start:webpack]     at Module._compile (node:internal/modules/cjs/loader:1218:27)
[start:webpack]     at Module.m._compile (/work/to/project/node_modules/ts-node/src/index.ts:1618:23)
[start:webpack]     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
[start:webpack]     at Object.require.extensions.<computed> [as .ts] (/workspace/frickel/zoe4/node_modules/ts-node/src/index.ts:1621:12)
[start:webpack]     at Module.load (node:internal/modules/cjs/loader:1117:32)
[start:webpack]     at Function.Module._load (node:internal/modules/cjs/loader:958:12)
[start:webpack]     at Module.require (node:internal/modules/cjs/loader:1141:19)
[start:webpack]     at require (node:internal/modules/cjs/helpers:110:18)

the webpack config in question:
// client.config.ts
import type { Configuration as WebpackConfiguration } from 'webpack';
import { Configuration as WebpackDevServerConfiguration } from 'webpack-dev-server'

interface Configuration extends WebpackConfiguration {
  devServer?: WebpackDevServerConfiguration }

import {
  tsLoader,
  svgLoader,
  cssLoader,
  imageLoader,

  miniCSSPlugin,
  copyPlugin,
  htmlPlugin,
  htmlLoader,
  forkCheckerPlugin
} from './_lib';

import configuration from '../../../.config';

const clientConfiguration: Configuration = {
  name: "client",
  target: "web",
  entry: configuration.dir.src,
  devtool: configuration.is_dev ? "source-map" : false,
  devServer: {
    historyApiFallback: true,
    static: configuration.dir.dist,
    open: true,
    compress: true,
    host: configuration.client.host,
    port: configuration.client.port,
    devMiddleware: { writeToDisk: true }
  },
  output: {
    publicPath: '/',
    path: configuration.dir.dist,
    filename: '[name].bundle.js',
    assetModuleFilename: 'assets/[name][ext]'
  },
  resolve: {
    extensions: ['.js', '.jsx', '.ts', '.tsx'],
    alias: {
      react: configuration.alias_react,
      App: configuration.alias_app,
      assets: configuration.alias_assets,
      components: configuration.alias_components,
      features: configuration.alias_features,
      hooks: configuration.alias_hooks
    }
  },
  module: {
    rules: [
      tsLoader.client,
      svgLoader.client,
      cssLoader.client,
      imageLoader.client,
      htmlLoader.client
    ]
  },
  plugins: [
    miniCSSPlugin,
    copyPlugin,
    htmlPlugin,
    forkCheckerPlugin
  ],
  performance: {
    maxEntrypointSize: 512000,
    maxAssetSize: 512000
  },
  watchOptions: {
    aggregateTimeout: 500,
    poll: 1000,
  },
}

export default clientConfiguration

PS.:
deinstalling postcss-loader alone does not resolve the error.
i have to remove any related package aswell.
 npm r -D   tailwindcss   @tailwindcss/typography   autoprefixer   postcss   postcss-loader

It means your postcss configuration is in ESM and you load it using require:

[start:webpack]     at require (node:internal/modules/cjs/helpers:110:18)

i am not able to locate the import.
how would i approach this?

 WebpackDevServerConfiguration }

const clientConfiguration: Configuration = {
  name: "client",
  target: "es2022",
  entry: path.join(__dirname, "./src"),
  devtool: "source-map",
  devServer: {
    historyApiFallback: true,
    static: path.join(__dirname, "./dist"),
    open: true,
    compress: true,
    devMiddleware: { writeToDisk: true }
  },
  output: {
    publicPath: '/',
    path: path.join(__dirname, "./dist"),
    filename: '[name].bundle.js',
    assetModuleFilename: 'assets/[name][ext]',
    chunkFormat: 'commonjs'
  },
  resolve: {
    extensions: ['.js', '.jsx', '.ts', '.tsx'],
  },
  module: {
    rules: [
      {
        test: /\.(js|jsx|ts|tsx)$/,
        use: [
          { loader: "swc-loader" }
        ]
      },
      {
        test: /\.svg$/,
        use: ['@svgr/webpack']
      },
      {
        test: /\.(css)$/i,
        use: [
          { loader: MiniCssExtractPlugin.loader },
          {
            loader: 'css-loader',
            options: { importLoaders: 1 }
          }
        ]
      },
      {
        test:  /\.(gif|png|jpg|jpeg)$/i,
        type: 'asset'
      },
      {
        test: /\.html$/,
        use: [{ loader: "html-loader", options: { minimize: true } }]
      }
    ]
  },
  plugins: [
    new MiniCssExtractPlugin({
      filename: (
        true
        ? '[name].css'
        : '[name].[contenthash].css'
      )
    }),
    new HtmlWebpackPlugin({
      template: "public/index.html",
      filename: "index.html",
    })
  ],
  performance: {
    maxEntrypointSize: 512000,
    maxAssetSize: 512000
  },
  watchOptions: {
    aggregateTimeout: 500,
    poll: 1000,
  },
}

export default clientConfiguration

Instructions:
1 . copy dockerfile and webpack config into same folder
2. docker build --tag repro .
3. docker run -it --rm --entrypoint /bin/bash repro
4. npm run start || you will find it works flawlessly
5. npm i -D postcss autoprefixer postcss-loader postcss-preset-env postcss-import postcss-flexbugs-fixes
6. npm run start || you will find above mentioned error message

How you run webpack?

How you run webpack?

idkwym.
the point is that webpack is used as a module here.
hence the import.
but this isnt possible as such as soon as postcss-loader is installed.
webpack itself is run by the start command in npm run start

Please put everything in github repo and post a link here, I will look and investigate

@alexander-akait at your discretion
https://github.com/wibed/reproPostcss
download it,
run it --> it works
install packages
 npm i -D postcss autoprefixer postcss-loader postcss-preset-env postcss-import postcss-flexbugs-fixes
run it --> it does not work

Thank you I will look soon

removed swc, and solely relied on ts-loader
added "type": "module" to package.json
and the following configuration in:
  "ts-node": {
    "esm": true,
    "experimentalSpecifierResolution": "node"
  }

aswell as removed "noEmit": true
but i now get the following error:
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /project/webpack.config.ts
    at new NodeError (node:internal/errors:399:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:99:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:139:38)
    at defaultLoad (node:internal/modules/esm/load:83:20)
    at DefaultModuleLoader.load (node:internal/modules/esm/loader:319:26)
    at DefaultModuleLoader.moduleProvider (node:internal/modules/esm/loader:194:22)
    at new ModuleJob (node:internal/modules/esm/module_job:63:26)
    at DefaultModuleLoader.#createModuleJob (node:internal/modules/esm/loader:218:17)
    at DefaultModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:171:34)
    at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:156:17) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'

@wibed Many tools still ahve problems with ESM and typescript (you can find a lot of issues), my recommendation to keep configuration in ESM js format and use jsdocs for types, I know it is not perfect, but we can't do something here, for example postcss starts to support ts configuration only month ago, and it is still doesn't support ESM and we can't do something here...

@alexander-akait
a possible fix could be to do as they did on here
https://github.com/lingui/js-lingui/pull/1474
and replace https://github.com/Codex-/cosmiconfig-typescript-loader with a esm friendly typescript loader

@wibed Yeah, PR welcome, it looks easy

i was experimenting with jiti and the postcss-loader source
and as i tried again it worked. heres a repro:
https://github.com/wibed/workingReproPostcss
yet past repro does not:
https://github.com/wibed/reproPostcss
i tried to diff -bur /reproPostcss /workingReproPostcss
and adjusting the settings to get it to break, but failed to do so.
i cant figure out what changed, the difference between the two, the reason for esm to fail on one and work on the other.
id appreciate another set of eyes to check it out and might tell me why one works and the other does not.

it didnt work.
i havnt had swc installed.
adding ts-node: { ... swc: true ... } to the tsconfig.ts, while missing swc as  a package,
prevented webpack from loading any postcss-loader code.
therefor appearing like it "worked".
on the other hand i got it working using the following in the scripts section:
{
  "start": "npm run clean && cross-env NODE_ENV=development NODE_OPTIONS=\"--loader=ts-node/esm --trace-warnings\" webpack serve --mode=development --config webpack.config.ts",
}

as suggested on here:
https://github.com/webpack/webpack-cli/issues/2458

Yeah, we have a test case for ESM and ts and it works, but it doesn't work with mts right now due to porr tooling support it


stack2nix is broken

Issue description
Currently when I try to build stack2nix it fails:
Configuring stack2nix-<IP_ADDRESS>...
Setup: Encountered missing dependencies:
Glob >=0.7.14 && <0.8, data-fix ==0.0.4
builder for ‘/nix/store/jy5x91fk2pji64wac5hx6f7jbs28kpk6-stack2nix-<IP_ADDRESS>.drv’ failed with exit code 1
error: build of ‘/nix/store/jy5x91fk2pji64wac5hx6f7jbs28kpk6-stack2nix-<IP_ADDRESS>.drv’ failed

I'm not currently using stack2nix myself, but someone on Reddit was giving NixOS a try and ran into this problem. See: https://www.reddit.com/r/NixOS/comments/77s5t0/generating_a_nix_package_from_a_stack_project/dot54ew/?context=3
Steps to reproduce
nix-build -A stack2nix '<nixpkgs>'

Technical details

System: NixOS
Nix version: nix-env (Nix) 1.12pre4911_b30d1e7
Nixpkgs version: 17.09.1756.c99239bca0
Sandboxing enabled: build-use-sandbox = true

Same issue, broken on both stable and unstable.


Rest binding element should contextually type initializer as a tuple

var [x, y, ...z] = [0, "", true, ""];

x and y are string | number | boolean because the rest element causes the contextual type to be an array. It seems like there is no reason for this. I think the contextual type here should be a tuple, so x would be number, y would be string, and z would be (string | boolean)[]

This will only matter when you're destructuring a tuple using spread operator--which, I contend, is going to be a very rare. Futhermore, if did this sort of partial tuple destructuring, wouldn't you also expect z to be of type [boolean, string]? And wouldn't you expect to be able to put it back together as a tuple again by writing [x, y, ...z] as an expression?
Right now we have a simple rule that says whenever spread or rest is involved, the result is an array. I think anything beyond that gets very muddled.

I agree that spread should make the result an array, because we don't know what you did to the array (lengthwise or elementwise) before you did the spread. However, rest seems different. I think with rest, there is no information lacking, that would cause it to be unsafe to consider the contextual type a tuple.
To answer your questions about the above example:

Yes, z should have the type [boolean, string]
No, we should not allow the user to put the tuple back together using spread. We don't know what they did before the spread. So while it's intuitive, I don't think that's a good idea. Unless people are fine with that type hole, but I'd rather start without it.

I think doing this for rest, but not spread, is a sensible option.

What about
var [x, y, ...z] = [0, ""];

Would we then switch and make z an array? So sometimes you get an array and sometimes a tuple. I think there is more complexity here than meets the eye for practically zero gain. I just don't think it is a meaningful real world scenario and I'd rather have the simple rule.

In that case, z would be a tuple of length 0, which happens to degenerates to any[], but I don't think there's anything wrong with that... provided we change our way of detecting tuple types so that it checks a bit, rather than relying on the presence of a property named 0. Also note that if we did that, x and y would not get penalized.
I am not sure how anyone would gauge the benefits here. But the current rule about rest elements just doesn't seem to fit into our tuple story, and seems like changing it wouldn't cost us much.

Existing behavior matches general pattern of not inferring a tuple type when none was written

Rereading this, I think we should actually do something different from what I mentioned. We should contextually type the RHS as a tuple, but then z should always be an array. That way x and y have the expected types, and z behaves as it does today. What would be wrong with that?

Open question over whether this is the right thing to do or not, versus its priority relative other things (and our inability to change this if we decide to do it later)

Thanks. I will also point out that this situation is not as rare as it may seem, if you consider that the binding pattern can be a parameter, and the array literal can be an argument.

Doesn't seem to be coming up in real code.


refactor: Some(a, b) -> Some((a, b))

Is this broken with n-ary enums?

Oh this is for the tuple tag fix?

yeah exactly. On master they are equivalent but this makes it future proof :)


While building redirect $this->app returns null

Hi i've have been trying to get this extension to work. Unfortunately, when trying a checkout and while calling the redirect on line 64 in file /src/CommunityStore/Payment/Methods/CommunityStorePayrexx)/CommunityStorePayrexxPaymentMethod.php i get a en Error: "Call to a member function make() on null".
It seems like $this->app returns null in the AbstractController.
I am Using Concrete CMS Version 9.1.2 and PHP 7.4.32
Have you had similar problems in the past where this did not work?
Thank you for your time and kind regards

You could try updating these lines here:
https://github.com/concretecms-community-store/community_store_payrexx/commit/5ac68fc28883c346c5bbfedafcfa1975e8421ff8
I'm not set up to test this change, but I think the redirects are the issue here.
Are you trying to set this up on V9?
This payment add-on is really quite old, and isn't something that has had much attention over the years.
I personally found Paxrexx to not be a great payment gateway, I'd recommend others like Stripe over this one.

Thank you Ryan, you saved my day :) It works like a charm with these adjustments now.
I see it has not been updated for a long time. I recommended Stripe to my client as well, but they wanted to go with payrexx.
Anyway, thank you for responding and providing a solution so quickly. This was some next level support.


Implement S3 storage class for Streaming and External basic transfer adapters

Implements a feature described in issue #3
I have created S3 storage with class giftless.storage.aws_s3.AwsS3Storage implementing two interfaces: StreamingStorage and ExternalStorage.
I have decided to support AWS authentication in a native way to boto3. In my opinion AWS users are used to the most common ways to provide credentials as I've explained in docs/source/storage-backends.md:127
One outstanding issue is the requirement.txt file in this PR. I needed to add boto3 and botocore requirements to requirements.in. After running make requirements.txt I couldn't keep the old formatting in place. I can't fix it once I'm told how to do this properly.

Thanks @shevron . I've fixed/updated all listed issues. I have left two conversations unresolved to get your feedback on:

### Running updated yaml config with uWSGI section in the readme
Type hints around safe_filename call.

This is great feedback. Thanks as I've learned something new because of it :)

@tomeksabala this looks great now, I'm merging this to master, and will issue a new release with this included in the next few days - I want to ensure the docs are up to date, and run the full test suite with a live AWS account before I make an official "stable" release.

/cc @rufuspollock

@tomeksabala @shevron 👏 👏


fix(flowrate): fix non-determinism in flowrate tests

This PR addresses test reliability issues in testreader and testwriter.
From: #1954

PR checklist

[ ] Tests written/updated
[ ] Changelog entry added in .changelog (we use unclog to manage our changelog)
[ ] Updated relevant documentation (docs/ or spec/) and code comments
[ ] Title follows the Conventional Commits spec

It looks like the flakiness still pops up in v1.x despite this having been backported in #2248.


Adding Additional Observations and Actions to Buffer per TimeStep

I'm currently training an SnakeGame environment where the observation space is square (nxn) and at any point the snake can move up, down, right, or left. Now for each step, I can generate an additional (state, action) pair by rotating the board by 90, 180, and 270 degrees, and also by mirroring it horizontally and vertically (and choosing the corresponding action of course). For example, if in the regular state the snake moved up, another equivalent valid state action pair is if the board was mirrored over a horizontal line in its center, but the snake went downwards. (For anyone interested in the symmetries of the square see https://proofwiki.org/wiki/Definition:Symmetry_Group_of_Square).  Note that there are 8 different (unique) combinations of rotating and flipping a square, so this generates 8 (state, action) pairs per 1 time step (and 80 hours vs, 10 hours of training is quite a nice reduction in time).
What's the best way to implement adding these addition state action pairs to the buffer? I was considering using some sort of modified VecEnv, but perhaps someone can point me to a more straightforward approach.

I do not think there is other viable option than to modify stable-baselines code a bit. You could modify e.g. this line in DQN to do all the augmentations and put them to replay buffer. That should be enough, albeit bit dirty.

Hello,
It sounds like a callback should be the right solution (once #787 is merged) as you have access to self.model, you can call self.model.replay_buffer.add() inside the callback.
In fact, you don't even need #787 as you can retrieve the last entry in the replay buffer (a little bit dirty but should work).
Otherwise, you can create a replay wrapper as it done for HER (and passed to the learn() method, maybe the cleanest way).

Cheers,
Once 787 is merged I will give it a try and close this issue. For now I'll attempt to use the replay wrapper.


File Explorer add-on doesn't preview a file

Microsoft PowerToys version
0.66.0
Installation method
PowerToys auto-update
Running as admin
None
Area(s) with issue?
File Explorer: Preview Pane
Steps to reproduce
Select any "source code file" (e.g. sql or yaml) and open Preview in File Explorer (Alt+P). Loading bar is shown only, never file content.
✔ Expected Behavior
File content is previewed.
❌ Actual Behavior
Progress bar stays in three quarters, no file content is shown.
Other Software
No

/dup #23384


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-source-version-target/pull/31 is merged into live branch.
Auto archive content to https://github.com/VSC-Service-Account/docs-archive-test-source-version-target.git

Docs Build status updates of commit d9d8577:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

versioningArchiveSourceFolder/TOC.yml
:white_check_mark:Succeeded
View (sql-server-2014 || azuresqldb-current || azuresqldb-mi-current || azure-sqldw-latest || >= aps-pdw-2016 || >= sql-server-2016 || >= sql-server-linux-2017 || sql-server-previousversions || sqlallproducts-allversions)

versioningArchiveSourceFolder/docfx.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit d9d8577:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

versioningArchiveSourceFolder/TOC.yml
:white_check_mark:Succeeded
View (sql-server-2014 || azuresqldb-current || azuresqldb-mi-current || azure-sqldw-latest || >= aps-pdw-2016 || >= sql-server-2016 || >= sql-server-linux-2017 || sql-server-previousversions || sqlallproducts-allversions)

versioningArchiveSourceFolder/docfx.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Update to Ubuntu 18.04 and rebuild with latest grafana

This PR contains the changes to give a new face to version of Grafana.
Updated the APT repo link (https://grafana.com/docs/grafana/latest/installation/debian/) and updated the baseimage to use ubuntu 18.04
Resolves #100, resolves #101

Closing this PR since metrics do not reach statsd and graphite.


unable to apply batchnorm folding and merging operation

Hi,
I trained unet-resnet18 on cityscapes using run.sh. But when I try to run the second command in optimize.sh:
python -m tensorflow.python.tools.optimize_for_inference --input graph_frozen.pb --output graph_optimized.pb --input_names=network/input/Placeholder --output_names=network/output/ArgMax
I got the a lot of warnings like
WARNING:tensorflow:Didn't find expected Conv2D input to 'network/output_block/batch_normalization_2/cond/FusedBatchNorm_1'
Later if I run infer_optimized, I will got
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/importer.py", line 493, in import_graph_def:   raise ValueError(str(e))
ValueError: NodeDef expected inputs '' do not match 1 inputs specified
Has anyone seen this before?
Thanks

Solved by referring to https://github.com/tensorflow/tensorflow/issues/3628


As a user, see login history

In settings menu a user should see all services where he/she logged in to, including scope information.
Prereq:Some mockups
@KristofVanstappen will provide them

Feature was deemed not important/needed. Closing


cannot express policy with only a namespaceSelector

When attempting to configure the following policy (which just uses a namespaceSelector in the policy's from clause), the ...-FROM rules (the ones marked w/ 0x20000) are not generated:
apiVersion: k8s.cni.cncf.io/v1beta1
kind: MultiNetworkPolicy
metadata:
  name: vmi-zero-trust-secondary-network
  namespace: default
  annotations:
    k8s.v1.cni.cncf.io/policy-for: wb-vm-network
spec:
  podSelector:
    labelSelector:
  policyTypes:
  - Ingress
  ingress:
  - from:
    - namespaceSelector:
        matchLabels:
          role: allowed-namespace
    ports:
    - protocol: TCP
      port: 80

Looking at the code, it seems the rules generator always requires a podSelector for the rules to be generated.
When reading the Kubernetes network policy documentation, it can be seen that using the namespaceSelector without a podSelector is a valid option.
I can also say that when an empty pod selector is added to the from clause provided above, the expected rule is generated.

Hi @maiqueb , thank you for reporting the issue.
I could reproduce it and make a fix candidate. Could you please try this image, quay.io/s1061123/multi-networkpolicy-iptables:test ? (this image is for iptable-legacy based one. Please let me know if you need iptables-nft based image)

@s1061123 even worse now: I have no rules at all. This is the iptables output I get from the policy provided in this issue:
root@kind-worker:/# nsenter -t 26128 -n iptables-legacy -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 MULTI-INGRESS  all  --  net1   any     anywhere             anywhere

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 MULTI-EGRESS  all  --  any    net1    anywhere             anywhere

Chain MULTI-EGRESS (1 references)
 pkts bytes target     prot opt in     out     source               destination

Chain MULTI-INGRESS (1 references)
 pkts bytes target     prot opt in     out     source               destination

And yes, I'm sure I'm using the correct image:
kubectl get ds -nkube-system multi-networkpolicy-ds-amd64 -ojsonpath="{ @.spec.template.spec.containers[0].image }"
quay.io/s1061123/multi-networkpolicy-iptables:test%

oh, sorry to let you know wrong image. Please use 'quay.io/s1061123/multi-networkpolicy-iptables:test2', not 'quay.io/s1061123/multi-networkpolicy-iptables:test'

hmm... wait a sec.... will let you know the right image.

Hmm.. You use right image (so 'quay.io/s1061123/multi-networkpolicy-iptables:test' is right image), however, your result is different from mine.
With this image and following yaml, I could have right iptables output (which contains the pod which matches namespace selector), as following.
Could you please share the following information to reproduce it?

Kubernetes version
Container runtime version
Pod yaml file
multi-networkpolicy yaml (if you update policy from above one)

---
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
  name: macvlan-net1
spec:
  config: '{
            "cniVersion": "0.3.1",
            "type": "macvlan",
            "capabilities": { "ips": true },
            "master": "eth1",
            "mode": "bridge",
            "ipam": {
                "type": "static"
            }
        }'
---
apiVersion: v1
kind: Pod
metadata:
  name: centos
  labels:
    role: client
  annotations:
    k8s.v1.cni.cncf.io/networks: '[
            { "name": "macvlan-net1", "ips": ["<IP_ADDRESS>/24"] }
    ]'
spec:
  containers:
  - name: main
    image: docker.io/centos/tools:latest
    command:
    - /sbin/init
    securityContext:
      privileged: true
---
apiVersion: v1
kind: Pod
metadata:
  name: centos-not-client
  labels:
    role: not-client
  annotations:
    k8s.v1.cni.cncf.io/networks: '[
            { "name": "macvlan-net1", "ips": ["<IP_ADDRESS>/24"] }
    ]'
spec:
  containers:
  - name: main
    image: docker.io/centos/tools:latest
    command:
    - /sbin/init
    securityContext:
      privileged: true
---
apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    role: http
  annotations:
    k8s.v1.cni.cncf.io/networks: '[
            { "name": "macvlan-net1", "ips": ["<IP_ADDRESS>/24"] }
    ]'
spec:
  containers:
  - name: main
    image: docker.io/s1061123/centos-tools-nginx:latest
    securityContext:
      privileged: true
[tohayash@tohayash-srv multi-networkpolicy-iptables-s1061123]$ cat ~/src/centos-pods/multi-networkpolicy/test220422/sample-policy.yml
apiVersion: k8s.cni.cncf.io/v1beta1
kind: MultiNetworkPolicy
metadata:
  name: policy-test1
  annotations:
    k8s.v1.cni.cncf.io/policy-for: macvlan-net1
spec:
  podSelector:
    matchLabels:
  policyTypes:
    - ingress
  ingress:
  - from:
    - namespaceSelector:
        matchLabels:
          kubernetes.io/metadata.name: default
    ports:
    - port: 80
      protocol: TCP

$ kubectl exec -it nginx  -- bash
[root@nginx /]# iptables-save
# Generated by iptables-save v1.4.21 on Fri Apr 22 13:35:25 2022
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
# Completed on Fri Apr 22 13:35:25 2022
# Generated by iptables-save v1.4.21 on Fri Apr 22 13:35:25 2022
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -i net1 -j RETURN
COMMIT
# Completed on Fri Apr 22 13:35:25 2022
# Generated by iptables-save v1.4.21 on Fri Apr 22 13:35:25 2022
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:MULTI-0-INGRESS - [0:0]
:MULTI-0-INGRESS-0-FROM - [0:0]
:MULTI-0-INGRESS-0-PORTS - [0:0]
:MULTI-EGRESS - [0:0]
:MULTI-INGRESS - [0:0]
-A INPUT -i net1 -j MULTI-INGRESS
-A OUTPUT -o net1 -j MULTI-EGRESS
-A MULTI-0-INGRESS -j MARK --set-xmark 0x0/0x30000
-A MULTI-0-INGRESS -j MULTI-0-INGRESS-0-PORTS
-A MULTI-0-INGRESS -j MULTI-0-INGRESS-0-FROM
-A MULTI-0-INGRESS -m mark --mark 0x30000/0x30000 -j RETURN
-A MULTI-0-INGRESS -j DROP
-A MULTI-0-INGRESS-0-FROM -s <IP_ADDRESS>/32 -i net1 -j MARK --set-xmark 0x20000/0x20000
-A MULTI-0-INGRESS-0-FROM -s <IP_ADDRESS>/32 -i net1 -j MARK --set-xmark 0x20000/0x20000
-A MULTI-0-INGRESS-0-FROM -s <IP_ADDRESS>/32 -i net1 -j MARK --set-xmark 0x20000/0x20000
-A MULTI-0-INGRESS-0-PORTS -i net1 -p tcp -m tcp --dport 80 -j MARK --set-xmark 0x10000/0x10000
-A MULTI-INGRESS -i net1 -m comment --comment "policy:policy-test1 net-attach-def:default/macvlan-net1" -j MULTI-0-INGRESS
COMMIT
# Completed on Fri Apr 22 13:35:25 2022
[root@nginx /]#

I also test with kind and get correct iptables result with my fix candidate, hence I will proceed the fix.
$ kind version
kind v0.12.0 go1.17.8 linux/amd64
$ kubectl get ds -nkube-system multi-networkpolicy-ds-amd64 -ojsonpath="{ @.spec.template.spec.containers[0].image }"
quay.io/s1061123/multi-networkpolicy-iptables:test

---
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
  name: macvlan-net1
spec:
  config: '{
            "cniVersion": "0.3.1",
            "type": "macvlan",
            "capabilities": { "ips": true },
            "master": "eth1",
            "mode": "bridge",
            "ipam": {
                "type": "static"
            }
        }'
---
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
  name: macvlan-net2
spec:
  config: '{
            "cniVersion": "0.3.1",
            "type": "macvlan",
            "capabilities": { "ips": true },
            "master": "eth0",
            "mode": "bridge",
            "ipam": {
                "type": "static"
            }
        }'
---
apiVersion: v1
kind: Pod
metadata:
  name: centos
  labels:
    role: client
  annotations:
    k8s.v1.cni.cncf.io/networks: '[
            { "name": "macvlan-net1", "ips": ["<IP_ADDRESS>/24"] },
            { "name": "macvlan-net2", "ips": ["<IP_ADDRESS>/24"] }
    ]'
spec:
  containers:
  - name: main
    image: docker.io/centos/tools:latest
    command:
    - /sbin/init
    securityContext:
      privileged: true
---
apiVersion: v1
kind: Pod
metadata:
  name: centos-not-client
  labels:
    role: not-client
  annotations:
    k8s.v1.cni.cncf.io/networks: '[
            { "name": "macvlan-net1", "ips": ["<IP_ADDRESS>/24"] },
            { "name": "macvlan-net2", "ips": ["<IP_ADDRESS>/24"] }
    ]'
spec:
  containers:
  - name: main
    image: docker.io/centos/tools:latest
    command:
    - /sbin/init
    securityContext:
      privileged: true
---
apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    role: http
  annotations:
    k8s.v1.cni.cncf.io/networks: '[
            { "name": "macvlan-net1", "ips": ["<IP_ADDRESS>/24"] },
            { "name": "macvlan-net2", "ips": ["<IP_ADDRESS>/24"] }
    ]'
spec:
  containers:
  - name: main
    image: docker.io/s1061123/centos-tools-nginx:latest
    securityContext:
      privileged: true
---
apiVersion: k8s.cni.cncf.io/v1beta1
kind: MultiNetworkPolicy
metadata:
  name: policy-test1
  annotations:
    k8s.v1.cni.cncf.io/policy-for: macvlan-net1
spec:
  podSelector:
    matchLabels:
      role: http
  policyTypes:
    - ingress
  ingress:
  - from:
    - namespaceSelector:
        matchLabels:
          kubernetes.io/metadata.name: default
    ports:
    - port: 80
      protocol: TCP

$ kubectl exec -it nginx -- bash
[root@nginx /]# iptables-save
# Generated by iptables-save v1.4.21 on Fri Apr 29 16:15:37 2022
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
# Completed on Fri Apr 29 16:15:37 2022
# Generated by iptables-save v1.4.21 on Fri Apr 29 16:15:37 2022
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -i net2 -j RETURN
-A PREROUTING -i net1 -j RETURN
COMMIT
# Completed on Fri Apr 29 16:15:37 2022
# Generated by iptables-save v1.4.21 on Fri Apr 29 16:15:37 2022
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:MULTI-0-INGRESS - [0:0]
:MULTI-0-INGRESS-0-FROM - [0:0]
:MULTI-0-INGRESS-0-PORTS - [0:0]
:MULTI-EGRESS - [0:0]
:MULTI-INGRESS - [0:0]
-A INPUT -i net2 -j MULTI-INGRESS
-A INPUT -i net1 -j MULTI-INGRESS
-A OUTPUT -o net2 -j MULTI-EGRESS
-A OUTPUT -o net1 -j MULTI-EGRESS
-A MULTI-0-INGRESS -j MARK --set-xmark 0x0/0x30000
-A MULTI-0-INGRESS -j MULTI-0-INGRESS-0-PORTS
-A MULTI-0-INGRESS -j MULTI-0-INGRESS-0-FROM
-A MULTI-0-INGRESS -m mark --mark 0x30000/0x30000 -j RETURN
-A MULTI-0-INGRESS -j DROP
-A MULTI-0-INGRESS-0-FROM -s <IP_ADDRESS>/32 -i net1 -j MARK --set-xmark 0x20000/0x20000
-A MULTI-0-INGRESS-0-FROM -s <IP_ADDRESS>/32 -i net1 -j MARK --set-xmark 0x20000/0x20000
-A MULTI-0-INGRESS-0-FROM -s <IP_ADDRESS>/32 -i net1 -j MARK --set-xmark 0x20000/0x20000
-A MULTI-0-INGRESS-0-PORTS -i net1 -p tcp -m tcp --dport 80 -j MARK --set-xmark 0x10000/0x10000
-A MULTI-INGRESS -i net1 -m comment --comment "policy:policy-test1 net-attach-def:default/macvlan-net1" -j MULTI-0-INGRESS
COMMIT
# Completed on Fri Apr 29 16:15:37 2022

Hmm.. You use right image (so 'quay.io/s1061123/multi-networkpolicy-iptables:test' is right image), however, your result is different from mine.

I'll reply with the data you're requesting below once I can find the time to work on this.

With this image and following yaml (in Fedora36+k8s 1.23.6), I could have right iptables output (which contains the pod which matches namespace selector), as following.
Could you please share the following information to reproduce it?

Linux distribution name + version
Kubernetes version
Container runtime version
net-attach-def yaml file
Pod yaml file
multi-networkpolicy yaml (if you update policy from above one)

At least, I reproduce the issue from my side. If you don't mind that, let me proceed the issue fix first. Then you can repro with latest image again when you have a time and file another issue if you still have one.
What do you think about it?

Well, I am unsure. As I said in this comment, I have worse results now (less rules installed).
But, I think you can open (and should) create the PR so I can try to make sense of the results I had.


Migrate build and test automation system to something owned by the organization.

The organization should move CI and PR pipelines to something owned by the organization.
The main issue to consider, how does the organization pay for and manage Unity build licenses?

@shaynie investigate


Enhancement/support glob curly brace

What's changed?

Added support for glob curly braces
What's your motivation?

#3807
Anything in particular you'd like reviewers to focus on?

Anyone you would like to review specifically?

@nmck257 @timtebeek
Have you considered any alternatives or workarounds?

Any additional context

We should be able to change the downstream projects back
https://github.com/openrewrite/rewrite-spring/commit/fa4e1c9c20d7373ea1d5d3bf1fdf44a29ab6c537
https://github.com/openrewrite/rewrite-micronaut/commit/c1c0ebd5637b1f145a4bc5f3d4b87d71a4114199
Checklist

[x] I've added unit tests to cover both positive and negative cases
[x] I've read and applied the recipe conventions and best practices
[x] I've used the IntelliJ IDEA auto-formatter on affected files

This looks functionally correct and maintainable to me, which is good! Thanks for picking this up and the other one.
That said, I didn't mention this in the issue, but I'm sensitive to time-performance for the matchesGlob logic. It can become a hot point in things like the Spring Boot upgrade recipes, where lots of Maven recipes lead to lots of groupId/artifactId pattern matches (especially for big poms) which lead to lots of matchesGlob calls.
Prior to #3980, matchesGlob was mostly a low-level, array-crawling implementation which aimed to visit each character of the input+pattern once. Adding in these higher-level checks and loops probably keeps linear performance, but with a higher coefficient, which has me nervous.
I don't have hard numbers, so I can't justify blocking this implementation on my hunch (and am fine if someone wants to approve/merge it). But, if you happen to be interested in experimenting with a crunchier, better-scaling implementation here, I'd enjoy that :)

Thanks for restoring the support for curly braces here @Glanfaloth ! And very thoughtful to link in the downstream changes that we had to do and could revert. Must say I understand @nmck257 's concerns with regards to performance.  I also agree with Nick, but a better idea hasn't come to my mind so far. I'll keep thinking!

Thanks a lot! I'll mark this as a draft until we've resolved those concerns.

I added a couple more quick offramping checks in the negation and braces cases when those characters don't exist at all in the glob. As for the low-count for loop, I don't see the performance being about the same for that as a Preconditions#or containing several globs, so I think this is only an improvement with little downside.


update link in OCP webconsole

Download odo link in OCP web console still points to mirror.openshift.com (https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/).
New release are no longer pushed to mirror.openshift.com.
The link should point to our new CDN location at https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest
New ticked should be raised on OCP side to update the link
/priority high
/kind task

Ticket https://github.com/openshift/console/issues/10415 was opened.

openshift/console#10415 has been assigned but still open.

Requested estimated time to be addressed.

I escalated this today and a bugzilla ticket and PR were created.

PR was LGTMed and APPROVED, pending 2 reviews

PR has merged


Error generating images

Hi,
Thanks for this code.python main.py --start-epoch=96 --add-epochs=0 --train=0
I was successful in training the model, but when I tried to make some images with command
python main.py --start-epoch=96 --add-epochs=0 --train=0
I got an error message
File "main.py", line 257, in
start_learn_rate=args.start_learn_rate)
File "main.py", line 173, in began_train
batch = dataIterator([images], batch_size).next()
UnboundLocalError: local variable 'images' referenced before assignment
Could you help me, what should I do to get the image generation working, thanks

Hey thanks, that is a mistake in my code - I should fix it when I have some time to access my main PC. In the mean-time you can add
images = loadData(size=32)
above line 167 for a quick fix


4.1 docs don't mention latest version banner?

Unlike older versions of Bootstrap, the 4.1 docs don't have a banner at the top mentioning the latest version being 4.2.1?
I think this should be required for Major & Minor releases, but not patch releases. And considering 4.2.1 contains a lot of changes, it might be worth quickly adding the banner to the top of the 4.1.3 docs?

It's already reported in https://github.com/twbs/bootstrap/issues/27930 and we'll take care of it soon-ish.


chore(Java): add recursive problems

#529

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] New algorithm
[ ] Optimization in previous algorithms
[ ] Code style update
[ ] Refactor
[ ] Documentation
[ ] Other, please describe:

Briefly describe the changes in this PR

Other information:

Add 3 recursive problems, solution and leetcode, gfg link.

Hey, should I have to add more problems or what?

Hi @bhavesh1129,
Any updated?


How to obtain the dataset in the paper?

I would be very grateful if you could answer.

Hi,
which dataset are you referring to? In particular, which application?

I want the data set in Figure 11, which should belong to 6.1. Monocular Pose Estimation task. I also didn't find the dataset in the Mitsuba 3 paper, it would be very much appreciated if you could tell me how to get it.

I want the data set in Figure 11, which should belong to 6.1. Monocular Pose Estimation task. I also didn't find the dataset in the Mitsuba 3 paper, it would be very much appreciated if you could tell me how to get it.

I want the data set in Figure 11, which should belong to 6.1. Monocular Pose Estimation task. I also didn't find the dataset in the Mitsuba 3 paper, it would be very much appreciated if you could tell me how to get it.

I assume you are referring to Figure 12 instead of Figure 11. The dataset is generated on-demand in the corresponding script; it does not yet exist as actual loadable dataset.
I will look into this as soon as possible but it might still take a day or two. It should be straightforward to generate the files.

Thank you for your reply. I'm sorry for misunderstanding. I checked and found that it is definitely Figure 11. It includes the changes in the shadow of a cow under different amounts of light.

Then, I think I am not quite understanding what the "dataset" should be in this case. Do you need the meshes (cow and plane) with the light directions?

Yes, thank you very much. By the way, are there only a cow in this dataset? Or are there other objects?

Then, I think I am not quite understanding what the "dataset" should be in this case. Do you need the meshes (cow and plane) with the light directions?

Yes, thank you very much. By the way, are there only a cow in this dataset? Or are there other objects?

There is no real "dataset" underlying Figure 11. It is simply a single scene to verify that the Mitsuba reference looks close to the images generated by our method (in terms of intensity and shadows). I am unsure what a possible "dataset" with more objects or diverse scenes could be useful for given the context? If you want to share the broader scope of what you are trying to achieve, I might be able to assist you better.
All I can do for now is give you the script to generate and render the scene of Figure 11:
import matplotlib.pyplot as plt

from diffshadow import *
from diffshadow.simple_renderer import *

device = torch.device('cuda:0')
render_context = dr.RasterizeGLContext(device=device)

renderer = SimpleRenderer(render_context)

meshes = [
    Mesh(*load_mesh("data/spot.obj", device=device), d=torch.tensor([0.9], device=device, dtype=torch.float32)),
    create_plane_mesh(position=[0, -0.77, 0], normal=[0, 1, 0], size=2, device=device)
]

# Place Spot in the scene
meshes[0] = meshes[0].with_vertices(meshes[0].vertices @ create_rotation_matrix(math.radians(55), 0, 2, device)[:3, :3].T)
meshes[0].vertices[:, 0] -= 0.2
meshes[0].vertices[:, 2] += 0.1

camera = Camera(
    view_matrix=create_lookat_matrix([-5, 3, 0], [-0.8, 0, 0], [0, 1, 0]).to(device),
    projection_matrix=create_perspective_projection_matrix(fovy=30, device=device)
)

shadow_map_resolution=(1024, 1024)
lights = [
    DirectionalLight(azimuth_elevation_to_direction(-math.pi*3/4, math.pi/4).to(device), distance=2, far=5, size=4, resolution=shadow_map_resolution),
    DirectionalLight(azimuth_elevation_to_direction(math.pi*3/4, math.pi/2).to(device), distance=2, far=5, size=4, resolution=shadow_map_resolution),
    DirectionalLight(azimuth_elevation_to_direction(math.pi*3/4, math.pi/4).to(device), distance=2, far=5, size=4, resolution=shadow_map_resolution),
]

img_light_1 = renderer.render(meshes=meshes, lights=lights[:1], camera=camera, ambient=0, smoothing_kernel_width=3, smoothing_kernel=KernelType.Gaussian)
img_light_2 = renderer.render(meshes=meshes, lights=lights[:2], camera=camera, ambient=0, smoothing_kernel_width=3, smoothing_kernel=KernelType.Gaussian)
img_light_3 = renderer.render(meshes=meshes, lights=lights[:3], camera=camera, ambient=0, smoothing_kernel_width=3, smoothing_kernel=KernelType.Gaussian)

fig, axs = plt.subplots(1, 3, figsize=(15, 5), constrained_layout=True)
axs[0].imshow(to_display_image(img_light_1, grayscale_to_rgb=True))
axs[1].imshow(to_display_image(img_light_2, grayscale_to_rgb=True))
axs[2].imshow(to_display_image(img_light_3, grayscale_to_rgb=True))

plt.show()


Enable EdgeJS if, else, end tags between style and script tags

Currently when using these the formatter breaks as its not able parse the values or format them correctly.
Need to investigate a way forward with these tags.

<EMAIL_ADDRESS>introduces limited support for this. Further work required to allowed nested edge tags, but will approach this if and when needed.


Pass lists displays

generator-display.yaml

related to https://github.com/polystat/py2eo/issues/319

generator-display is removed because generators are not supported by us


Is it possible to show only my debuffs on target?

self.Debuffs.onlyShowPlayer = true
Yeah, I know this should fix my request.
But have no idea where to put it in.

You would add it somewhere around here:
            self.Auras.numBuffs = config.units.target.numBuffs
            self.Auras.numDebuffs = config.units.target.numDebuffs
            self.Auras.spacing = 4.5
            self.Auras.showStealableBuffs = true
+           self.Auras.onlyShowPlayer = true

            self.Auras.PostUpdateGapIcon = function(self, unit, icon, visibleBuffs)
                icon:Hide()
            end

However, this applies to all auras on the target, both buffs and debuffs. There's no easy around that at the moment.


ACCESS-OM3 Deployment on Gadi Killed during esmf build Phase

Pull request in question: https://github.com/ACCESS-NRI/ACCESS-OM3/pull/5
Within the above pull request, during the deployment of ACCESS-OM3, our jobs seemingly get killed by Gadi during esmfs build phase. Examples of these runs are at the bottom of the PR:

https://github.com/ACCESS-NRI/ACCESS-OM3/actions/runs/8793833929/job/24135789008
https://github.com/ACCESS-NRI/ACCESS-OM3/actions/runs/8793833929/job/24133442178
https://github.com/ACCESS-NRI/ACCESS-OM3/actions/runs/8793833929/job/24132330321

It may be something to do with an Out Of Memory Error being triggered by Gadi during that phase.
Potential Solutions

Find a way to parallelize esmf build phase?

Pinging @micaeljtoliveira - have you had any experience with an issue like this when building ACCESS-OM3 on Gadi?

@CodeGat Where is the compilation happening? On a login or a compute node?

Find a way to parallelize esmf build phase?

By default spack does parallelize builds. What it does not by default is to parallelize over builds, but that's a bit more tricky and not relevant here.

The compilation is happening on a login node

There are several limits enforced on the login nodes regarding memory usage and CPU time. I strongly recommend you move the builds to a compute node. That will require submitting a job though...

That will require submitting a job though...

And attendant wait in the queue for every build job. Would really like to avoid that if possible.

Have confirmed that, for install of access-om3 with spack -d install --fresh on Gadi:

--jobs 8 fails on esmf build stage
--jobs 4 succeeds
Will need to test how long it takes to install something like om2 with --jobs 4 vs not specifying --jobs.

Just to finish up on this conversation thread, it's now a per-model vars.SPACK_INSTALL_PARALLEL_JOBS rather than an explicit, global --jobs 4.


Simplified React app generator

Generates a Hello, Blockstack React app

Still WIP?

Still WIP?

Nope, all done, sorry. Forgot to update that comment.

Since this PR's work is encapsulated in #54 I'm going to implement these comments' changes there and close this.


removing wire from light APC causing lights to flick at hihg speed

also infinitely plays the light "thonk" noise

visual representation of the "thonk sound"

e3a39a2 fixed it


GPU Delegate doesn't work for tflite model on Android device

I was trying to increase the run speed of Posenet, these are the performances:
2020-06-04 08:41:21.143 I/InterpreterPosenet: Scaling to [-1,1] took 207.85 ms
2020-06-04 08:41:21.894 I/posenet: Interpreter took 743.94 ms
2020-06-04 08:41:22.559 I/InterpreterPosenet: Scaling to [-1,1] took 226.94 ms
2020-06-04 08:41:23.058 I/posenet: Interpreter took 498.60 ms
2020-06-04 08:41:23.497 I/InterpreterPosenet: Scaling to [-1,1] took 191.16 ms
2020-06-04 08:41:23.858 I/posenet: Interpreter took 360.01 ms
2020-06-04 08:41:24.324 I/InterpreterPosenet: Scaling to [-1,1] took 223.37 ms
2020-06-04 08:41:24.866 I/posenet: Interpreter took 541.24 ms
As you can see this aren't very good performances and I was trying to find a way to increase the speed, and then I found out the GPU Delegate from tensorflow in this link:
https://www.tensorflow.org/lite/performance/gpu
And also in this link you can see that the speed of PoseNet increased somewhere by 2x,
I followed the instructions and this is my init method of the class Posenet.kt:
init {
val gpuDelegate = GpuDelegate()
val options = Interpreter.Options().addDelegate(gpuDelegate)
interpreter = Interpreter(loadModelFile("posenet_model.tflite", context), options)
}
Also the gradle dependencies:
implementation 'org.tensorflow:tensorflow-lite-gpu:2.0.0'
implementation 'org.tensorflow:tensorflow-lite:2.1.0'
I also made some measurements for 40 frames and Posenet took:<PHONE_NUMBER> ms on average and after GPU Delegate:<PHONE_NUMBER> ms on average
And also I don't get any errors from the method run() or from Interpreter, so what I am doing wrong ?
The device has the RK3399 processor: http://opensource.rock-chips.com/wiki_RK3399
EDIT:
I Found out that this processor (RK3399) doesn't support GPU delegate, but I also tried on a device with Qualcomm 835 processor ( https://www.qualcomm.com/products/snapdragon-835-mobile-platform ) which supports GPU Delegate but still doesn't improve the performance.

Hi Terry, can you help take a look?
thanks!

@ArtanBerisha1 could you sync the repo and try again?
I've updated the sample code to use TFLite 2.2.0
Mine shows around 40ms on average.

@terryheo Thanks for the response,
I updated TFLite implementation to 2.2.0 in gradle file, and the 'org.tensorflow:tensorflow-lite-gpu:2.0.0' is the same, I have sync the repo and tried again but the speed is 300ms on average with  Qualcomm 835 processor and its the same when I dont have the GpuDelegate as Interpreter Option.
The only thing that PoseNet performed better is when I set setNumThreads(4) then the speed is 180ms on average, but I need to use gpu delegate.
What processor does your device has , because 40ms on average looks to fast.

I used Pixel 4 and Galaxy S10e.
Did you modify source to use GPU?
https://github.com/tensorflow/examples/blob/master/lite/examples/posenet/android/posenet/src/main/java/org/tensorflow/lite/examples/posenet/lib/Posenet.kt#L76
It should be changed to
val device: Device = Device.GPU

As I have written before in the question I have the code a little different, but I think it does the same thing:
private var interpreter: Interpreter? = null
init {
val gpuDelegate = GpuDelegate()
val options = Interpreter.Options()
options.setNumThreads(4)
options.addDelegate(gpuDelegate)
interpreter = Interpreter(loadModelFile ( "posenet.tflite" , contex), options )
}
I create the GpuDelegate() and pass it to the Interpreter Options, but now improvement on the speed.

Can you see the following log from logcat?
06-11 10:39:04.868 14446 14524 I tflite  : Created TensorFlow Lite delegate for GPU.
06-11 10:39:04.873 14446 14524 I tflite  : Initialized TensorFlow Lite runtime.
06-11 10:39:04.895 14446 14524 I tflite  : Initialized OpenGL-based API.
06-11 10:39:05.305 14446 14524 I posenet : Interpreter took 192.60 ms

(The third line could be "OpenCL")
This is a log from my Pixel 1 which uses 821 processor. I think result from 835 should be better.

@terryheo thanks for the response
These 2 lines are showing:
2020-06-12 08:55:33.250 I/tflite: Created TensorFlow Lite delegate for GPU.
2020-06-12 08:55:33.259 I/tflite: Initialized TensorFlow Lite runtime.
Can you try to remove options.setNumThreads(4) and then see if the time is the same with and without GpuDelegate ?
Because when I try without setNumThreads(4), I have the same result with GpuDelegate and without it.

With GPU delegate, the thread number doesn't affect the performance.
So since you can't see the improvement, I guess you're using GPU delegate correctly.
(In my devices, 4 threads CPU performs similar to GPU)
BTW, I'm curious why you don't see "Initialized OpenGL-based API." or "Initialized OpenCL-based API."
Could you check if you're using 'org.tensorflow:tensorflow-lite-gpu:2.2.0' ?

@terryheo I had the gpu:2.0.0 version and upgrade to gpu:2.2.0, and I worked the speed of the model is around 110-100ms, but I have a question about the thread number:
You said that the thread number doesn't affect the performance but when I try just GpuDelegate without the number of threads then the speed increase around 150ms and its not to stable like it is when I set the number of threads, so is this happening just by chance ?
My code:
val options = Interpreter.Options()
val gpuDelegate = GpuDelegate()
options.setNumThreads(4)
options.addDelegate(gpuDelegate)

If a model is not fully delegated to GPU, some graph will still run on CPU. In such case, setting the thread number makes sense. But this case, the graph is fully delegated to GPU, so the setting thread number is meaningless.
BTW, I've just submitted several changes including the library version change and improving preprocessing. You'll see some performance improvement with the master branch.
I think you have success with GPU delegate now. So let's close this.

Thanks for your help @terryheo


how to set the size of SyncCopyFromCPU(const mx_float *data, size_t size)

I have a question is that, when I use the fucn. of SyncCopyFromCPU(const mx_float *data, size_t size), I don't konw how to set the size is the have the most performance. What effects the 'size'?
Does anyone konws how to set the parameter 'size' for SyncCopyFromCPU which will gain the best performance.

@gxkevin
The SyncCopyFromCPU() function is used to copy the data in source NDArray in contiguous CPU memory to a target NDArray.
The size parameter will be a product of all the dimensions of the shape of target NDArray.
Here are links that point to usage of this function in some of the examples. I hope this answers your question.
https://github.com/apache/incubator-mxnet/blob/4a9e9f67a5e7e5ddf2e394c6381f4f6449626af2/cpp-package/example/inference/inception_inference.cpp#L215
https://github.com/apache/incubator-mxnet/blob/4a9e9f67a5e7e5ddf2e394c6381f4f6449626af2/cpp-package/example/inference/inception_inference.cpp#L245
@mxnet-label-bot add [Question, Pending Requester Info]


Question

Hi
i would like to know how did you make your own html version in github
Respond if you can
Thanks.

Like what exactly about making a html version? Being able to play it or something else?

Compiling the game and being able to play it

Well I just used github pages to be able to play it and to compile it you just run 'lime test html5 -release'

k
I´ll try that

ok
i compiled the files
do i just manually put all of the files in github or is there do i have to do somethings else.

Yes

k

Whenever i load the game the screen goes black is there something else that i´m doing wrong?

Do you have all of the html files uploaded?

yes
the index

nevermind you were right i missed the txt file

oh

but the resolution does not fit the whole screen
is there a fix

is resizeable set to true in the project.xml file for html5

yes


Builds hang on urllib3 InsecurePlatformWarning

Details
After committing some changes to our docs, I noticed the builds keep running ethernally.

Project URL: https://readthedocs.org/projects/bigboards-docs/
Build URL: https://readthedocs.org/projects/bigboards-docs/builds/4512603/
Read the Docs username: bigboards

Expected Result
Nothing changed to our project in the mean time, so I was expecting the build to complete without issues.
Actual Result
The build process never ends, apparently due to an InsecurePlatformWarning by urllib3.
The error messages states to update the version of Python to solve the issue and points to a documentation page (https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning) explaining in more detail what's happening.
However, the build environment is provided by RTFD, so can the version of Python be bumped?

Apparently we had the mkdocs.yml file a level to high in the directory tree. So, closing this ticket.
Sorry for the inconvenience!
-w


implement From for rect <--> polygon array

Closed by https://github.com/geoarrow/geoarrow-rs/pull/242 and https://github.com/geoarrow/geoarrow-rs/pull/244


Anti Clockwise support

Hey,
is it possible to support anti clockwise progress which animate from right to left (see the left progress bar below)?

Thanks in advance!
Alex

Hello again,
I solve my problem by adding the anti clockwise support by myself. And have make a new Pull Request
#11

Thanks!


Add reverse() in backend

Now lambda function is not working with tensorflow:
def reverse_func(x):
    import keras.backend as K
    assert K.ndim(x) == 3, "Should be a 3D tensor."
    rev = K.permute_dimensions(x, (1, 0, 2))[::-1]
    return K.permute_dimensions(rev, (1, 0, 2))

However tf.reverse() exists.

There is K.reverse(x, axes) nowadays. Close the issue if it solves your issue.


Add saved draft functionality

If a user types a message and then closes the window or accidentally clicks on a link on the message creation screen, the message is lost.  Users have come to expect applications to have the ability to recover from such simple mistakes.
There are jquery plugins, sisyphus.js and garlic.js, that are designed to provide this functionality.  I've not evaluated either very closely but they seem worth considering.

Maybe, I'll start working on this. @smcgregor, @irdan tell me guys if you have any idea for its implementation, or I'll figure out something of my own?

@bhavul I think it would be better to add integration tests to the changes you are introducing on the History app. This will likely take you a day or two since it requires Selenium WebDriver, Ruby Unit Tests, Capybara, and (optionally) TravisCI+SauceLabs. You will definitely need help but it is very cool once you get it working.

The seamless posting method implicitly includes this functionality. Feel free to reopen or continue commenting if desired.


Deprecate keeping_extra, rename it to keep_common.

keep_common is more in line with the function name
drop_common_labels() terminology-wise, and also more in line with
group_left/group_right (no ...ing verb suffix).
We could also go the full way and call it keep_common_labels. That
would have the benefit of being even more consistent with the function
drop_common_labels() and would be more explanatory, but it also seems
quite long.

@fabxc

:+1:


Re-enable quadmath support

Please remove the configure options to disable libquadmath from the OG12 script.
The is related to the solution to sourcery portal issue17678.

I fixed the build scripts.


gha: bump status wait timeouts in clustermesh upgrade/downgrade tests

The blamed commit already increased the post-upgrade timeout. However, we have now started witnessing failures in the other wait operations as well, due to endpoint regeneration not completing on time. Hence. let's bump all timeouts to 10m.
Related: 01c3b8376046 ("gha: bump post-upgrade timeout in clustermesh upgrade/downgrade tests")

/test


Implement Base.isempty(::RemoteChannel)

The default method from Base has the nasty side-effect of take!()'ing from the underlying channel.

(bump)

(bump)

(bump)

(bump)

This also makes isempty return false instead of hanging when the channel is empty.

Huh?
julia> using Distributed

julia> addprocs(1)
1-element Vector{Int64}:
 2

julia> x = RemoteChannel()
RemoteChannel{Channel{Any}}(1, 1, 3)

julia> remotecall_fetch(isempty, 2, x)
true

Huh. That's weird.

I miss spoke. It correctly returns true when the collection is empty.

@JamesWrigley I have invited you to have commit access to the repo. Thanks for the PRs!

Cool, thanks :)


feat: implement textarea, masked fields and spinner fields

The PR adds the following new components:

MaskedDateField
MaskedDateFieldSpinner
MaskedNumberField
MaskedNumberFieldSpinner
MaskedTimeField
MaskedTimeFieldSpinner
MaskedTextField
MaskedTextFieldSpinner
TextArea
TextFieldSpinner

Additionally, the PR introduces MaskDecorator as a foundation for parsing and masking according to BBj-defined rules.
closes #192 , #173, #172, #170, #169 , #165 , #162, #103, #101 , #89 , #61

@MatthewHawkins please go over the javadocs and fix any obvious issues.


Doesn't work with NativeScript 6.2

After updating to NativeScript 6.2 it is no longer possible to use the debugger in vs code. It says:
[NSDebugAdapter] Running tns command...
[NativeScriptCli] execute: tns --analyticsClient VSCode debug android --watch
[NSDebugAdapter] Watching the tns CLI output to receive a connection token
And then nothing happens.

Hey @markusmauch ,
Can you give us more details, as we are unable to reproduce the issue on our side? Does the issue reproduce with newly created hello world application?
What is your version of NativeScript VSCode Extension?
Can you send us your package.json ?

The extensions version is 0.11.0
package.json:
{   "nativescript": {     "id": "com.xxx.xxx.xxx",     "tns-ios": {       "version": "6.2.0"     },     "tns-android": {       "version": "6.2.0"     }   },   "main": "app.js",   "version": "1.0.0",   "license": "UNLICENSED",   "repository": "<fill-your-repository-here>",   "dependencies": {     "linq": "^3.2.0",     "nativescript-camera": "^4.5.0",     "nativescript-clipboard": "^1.2.0",     "nativescript-custom-bottomsheet": "^1.0.6",     "nativescript-extendedinfo": "^1.0.7",     "nativescript-fingerprint-auth": "^7.0.2",     "nativescript-imagepicker": "^7.1.0",     "nativescript-iqkeyboardmanager": "^1.5.1",     "nativescript-modal-datetimepicker": "^1.2.1",     "nativescript-plugin-firebase": "^10.1.1",     "nativescript-preferences": "^1.1.2",     "nativescript-secure-storage": "^2.6.0",     "nativescript-theme-core": "^2.0.24",     "nativescript-ui-calendar": "^5.0.0",     "nativescript-ui-listview": "^7.1.0",     "tns-core-modules": "^6.1.2"   },   "devDependencies": {     "nativescript-dev-webpack": "^1.3.0",     "tns-platform-declarations": "^6.1.1",     "typescript": "3.4.5",     "uglifyjs-webpack-plugin": "^2.1.3",     "webpack": "4.35.2",     "webpack-cli": "^3.3.10"   },   "gitHead": "c175016cf900d406d2428bb6c4fcbb62093fb351",   "readme": "NativeScript Application" }


Codeium Chat: xdg-open command not found (macOS)

Hi, I tested the new chat feature, but the xdg-open command is not available in macOS. If I replace it with open the chat window opens up and works. Can you implement a more cross-platform solution for opening the web app?

FYI @consoleaf

Got it, I'll see if I can do this with vim's !open command

Same here on WSL.