Mac: Validate filesystem is configured to be case insensitive before cloning and mounting

Currently VFS4G only supports Mac when its file system is configured to be case insensitive.

Note that .NET Core appears to require case insensitivity on Mac as well:
https://github.com/dotnet/corefx/blob/a10890f4ffe0fadf090c922578ba0e606ebdd16c/src/Common/tests/Tests/System/IO/PathInternal.Unix.Tests.cs#L47
        [Fact]
        [PlatformSpecific(TestPlatforms.OSX)]
        public void IsCaseInsensitive_OSX()
        {
            // There have been reports of casing handling not being appropriate on MacOS
            // https://github.com/dotnet/corefx/issues/26797
            Assert.False(PathInternal.IsCaseSensitive);
        }

https://github.com/dotnet/corefx/blob/09e2417cd0505df4558535651efb1bbcffdf0c59/src/Common/src/CoreLib/System/IO/Path.Unix.cs#L136
        /// <summary>Gets whether the system is case-sensitive.</summary>
        internal static bool IsCaseSensitive
        {
            get
            {
                #if PLATFORM_OSX
                    return false;
                #else
                    return true;
                #endif
            }
        }

Although interestingly in another part of the code there is a helper method that will return the real answer on macOS:
https://github.com/dotnet/corefx/blob/1bff7880bfa949e8c5e46039808ec412640bbb5e/src/Common/src/System/IO/PathInternal.CaseSensitivity.cs#L41
        /// <summary>
        /// Determines whether the file system is case sensitive.
        /// </summary>
        /// <remarks>
        /// Ideally we'd use something like pathconf with _PC_CASE_SENSITIVE, but that is non-portable,
        /// not supported on Windows or Linux, etc. For now, this function creates a tmp file with capital letters
        /// and then tests for its existence with lower-case letters.  This could return invalid results in corner
        /// cases where, for example, different file systems are mounted with differing sensitivities.
        /// </remarks>
        private static bool GetIsCaseSensitive()
        {
            try
            {
                string pathWithUpperCase = Path.Combine(Path.GetTempPath(), "CASESENSITIVETEST" + Guid.NewGuid().ToString("N"));
                using (new FileStream(pathWithUpperCase, FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None, 0x1000, FileOptions.DeleteOnClose))
                {
                    string lowerCased = pathWithUpperCase.ToLowerInvariant();
                    return !File.Exists(lowerCased);
                }
            }
            catch (Exception exc)
            {
                // In case something goes terribly wrong, we don't want to fail just because
                // of a casing test, so we assume case-insensitive-but-preserving.
                Debug.Fail("Casing test failed: " + exc);
                return false;
            }
        }

Just as a FYI and FWIW, we have case-sensitivity working on Linux with a few key patches in the func-tests-debug branch, notably:
d81ca3a446122910de1e4f3bf77e520d95d86383
013638e7b055fb0dc7ca2aeaf0e50e2963773cb1
237fd8078b436e221e034dd6078bf8c836e51057
33dc0dd07bef79e2ad022515f06fe79b47e4176d
49a6c720f76d6beb80d500d9512978dc4a6f4947

@chrisd8088, thanks for the heads up!


Exception: data did not match any variant of untagged enum ModelWrapper at line 277156 column 3

Great job!
But I have encounted with tis issue, could you help me to deal with it. I have already set the environment required (including transformer).

Hi, thank you for your interest in our work!
The issue you’re facing is due to a mismatch between the environment and the latest version of the model files. You can refer to this #9  for a potential fix. I will be updating the repository soon to address this problem.


Update compile.py - change default python to python3

Your change has literally no effect.  What problem are you trying to solve?

@lcd047 my change has pretty big effect, instead calling python2 to check syntax it uses python3 which has now pretty different syntax + is developed.
Py2 is going to die ...

Your change has no effect on syntastic.  To see that, please open a Python script, set g:syntastic_debug to 1, run :SyntasticCheck python, run :mes, and post the output.

oh, you are right ...makeprg calls python2 .
mtui/commands/downgrade.py" 65L, 1829C
syntastic: 59.392181: g:syntastic_version = '3.9.0-15 (Vim 801, Linux, GUI)'
syntastic: 59.393483: &shell = '/bin/zsh', &shellcmdflag = '-c', &shellpipe = '2>&1| tee', &shellquote = '', &shellredi
r = '>%s 2>&1', &shelltemp = 1, &shellxquote = '', &autochdir = 0, &shellxescape = ''
syntastic: 59.396983: UpdateErrors: python
syntastic: 59.397419: CacheErrors: python
syntastic: 59.398533: g:syntastic_aggregate_errors = 0
syntastic: 59.398888: getcwd() = '/home/mimi/git.suse/mtui'
syntastic: 59.420784: system: command run in 0.007471s
syntastic: 59.421380: CacheErrors: Invoking checker: python/python
syntastic: 59.422514: SyntasticMake: called with options: {'errorformat': '%E%f:%l:%c: %m', 'makeprg': 'python /home/mi
mi/.vim/plugged/syntastic/syntax_checkers/python/compile.py mtui/commands/downgrade.py', 'env': {'TERM': 'dumb'}, 'retu
rns': [0]}
syntastic: 59.453090: system: command run in 0.029985s
syntastic: 59.453733: getLocList: checker python/python returned 0
syntastic: 59.454099: getLocList: checker python/python run in 0.032534s

so it needs also https://github.com/vim-syntastic/syntastic/blob/master/syntax_checkers/python/python.vim#L52 change this line ?

No.  You need to read the FAQ.  Or, if you insist to fix only 1/10th of the problem, set g:syntastic_pthon_python_exec to python3.

Thanks,
I'm blind .. FAQ section 4.11
On Wed, 29 Aug 2018 at 09:36, LCD 047<EMAIL_ADDRESS>wrote:

Closed #2209 https://github.com/vim-syntastic/syntastic/pull/2209.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/vim-syntastic/syntastic/pull/2209#event-1814912099,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA403-OGolcdeYnvyJX46_aDvkqVq5s6ks5uVkR8gaJpZM4WQ6V4
.


Long time to Launch Cluster using Amazon EMR

I use to launch cluster this tutorial: Running sparklyr – RStudio’s R Interface to Spark on Amazon EMR. It takes about 20 minutes or more.
Is there another faster way?

This doesn't sound like sparklyr issue. EMR clusters will always require some amount of time to spin up, but once it's in place you can just leave it running for whatever duration you want assuming the cost isn't a factor.


Update project code

Update gradle dependencies.
Update kotlin version.
Fix lint and compilation failures as per latest kotlin style guide.

Closing this as I'm not sure how to update existing external Pull Requests.  I opened a new PR #114


snmpwalk?

how can i use snmpwalk?
thk. ^^

If SNMP version is v2c or v3, you can use snmpgo.SNMP.GetBulkWalk function instead.

When using bulk walk its worth setting both the nonRepeaters and maxRepetitions to none 0 values as some devices such as Dell Force10 switches don't use consecutive OIDs in tables, so if you had nonRepeaters=0,maxRepetitions=40 you may only get part of the table you want to retrieve. I usually ended up setting both values to 40. A GETNEXT based walk doesn't suffer from this issue.


LICENSE ?

Hi,
Could you please specify what license applies to this code ? Thanks.

Thanks for noticing - I've added the MIT License to this codebase :).


Quality of life on stable channel

While working on an integration for Axum, I experienced some inconveniences:

In the root directory cargo test fails on rust-stable because

juniper_codegen_tests fails on stable
juniper_book_tests fails sometimes, I think because the life cycle of the build script in book/tests/build.rs is unpredictable.

cargo fmt fails on rust stable, while CONTRIBUTING.md states that formatting has to be done on stable (like cargo clippy)
cargo test -p juniper_integration_tests takes long to build and even crashed my computer a few times for some reason. See also this todo

Changes
This PR fixes these inconveniences by:

Only running the juniper_codegen_tests on nightly
Removing juniper_book_tests and using mdbook test instead
Moving back to formatting on stable
Splitting and running juniper_integration_tests in smaller units

Conclusion

Running cargo test from the root directory should now pass all tests on stable, beta and nightly
Building and testing time for juniper_integration_tests reduced from 3m56 to 2m04 on my computer
Allows testing of juniper_integration_tests on windows in the CI-pipeline
cargo clippy and cargo fmt should now be both run on stable

So mdbook test seems to fail on Windows, I was just able to confirm this on a local machine. We get this error:
LINK : fatal error LNK1181: cannot open input file 'windows.lib'
By removing (the unnecessary) extern crate tokio from line 85 book/src/advanced/subscriptions.md I was able to cut down one error. The other error on line 98 of book/src/types/objects/using_contexts.md also uses tokio. Maybe the feature sync for tokio was not activated?
Futher investigastion needed.

So it looks like the mdbook test failing on windows is caused by a bug in rustdoc. I issued a a bug report at the rust repo. I was wondering how a crate like Tokio is testing their documentation book. It turns out they are also using rustdoc, but their tests also completely fail on Windows. The doc tests are also not being run on windows on the CI-pipeline. For now I ignored the test that was causing the problems.
I made the requested changes.
@ilslv The juniper_codegen_tests now fail, although I didn't make any changes to them. Is it caused by a new version of rust nightly? Would it be possible to run the tests only on stable for more stability?

@btielen

Is it caused by a new version of rust nightly?

Almost certainly yes.

Would it be possible to run the tests only on stable for more stability?

I'm not sure about that. We use nightly, because there we emit unstable proc_macro diagnostics using proc_macro_error crate. You can run tests with env variable TRYBUILD=overwrite and it should automatically overwrite failing tests.


Failed to push image

I'm following "Deploy hola (JAX-RS/Wildfly Swarm) microservice" and when running mvn package; oc start-build hola --from-dir=. --follow I run against
...
Removing intermediate container 09199ec5032a
Successfully built f464550a8de8
E1026 15:03:37.673542       1 cfg.go:58] Reading /var/run/secrets/openshift.io/push failed: read /var/run/secrets/openshift.io/push: is a directory
I1026 15:03:37.673710       1 docker.go:93] Pushing image <IP_ADDRESS>:5000/helloworld-msa/hola:latest ...
F1026 15:03:37.813834       1 builder.go:185] Error: build error: Failed to push image: unauthorized: authentication required

So I gave it another try. Now it works. I suspect a hickup with the private registry. As I can't reproduce it I will close this issue.


Frontent/favicone placement

Description
This PR is to update the favicon icon and the title of project
Fixes # ()
How to test?
Just run npm run dev
Checklist

[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have merged the latest version of the source branch (typically develop) into this branch before pushing my changes
[ ] This PR is ready to be merged and not breaking any other functionality

Hi. No need to add fileMock.js to this pr also

It also contains all the other stuff from the previous pr
???

This pr is unfortunately having extra files which i don't need so i deleted that one. I raised new pr for the project title and icon.


Minor differences in distributed training with GPU/without GPU.

Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues.
If the issue is non-technical, feel free to present the information in what you believe is the best form.
Description
mnist accuracy differ slightly when training with local gpu and distributed training with GPU but accuracy is the same when training with CPU.
Environment info (Required)
CentOS 7
MxNet latest master
What to do:
1. Download the diagnosis script from https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py
2. Run the script using `python diagnose.py` and paste its output here.

Package used (Python/R/Scala/Julia):
(I'm using ...) Python!
For Scala user, please provide:

Java version: (java -version)
Maven version: (mvn -version)
Scala runtime if applicable: (scala -version)

For R user, please provide R sessionInfo():
Build info (Required if built from source)
train_mnist.py with data shuffle turned off so accuracy of each run is the same.
Compiler (gcc/clang/mingw/visual studio):
gcc 4.9
MXNet commit hash:
(Paste the output of git rev-parse HEAD here.)
8592e1cd3b9f79cff740f29e599ba7788a454c54
Build config:
(Paste the content of config.mk, or the build command.)
USE_DISTRIBUTED_KVSTORE=1
USE_CUDNN=1
USE_CUDA=/usr/local/cuda
Error Message:
1 server 1 client training with train_mnist.py WITHOUT GPU
INFO:root:Epoch[0] Batch [100]  Speed: 3606.78 samples/sec      accuracy=0.807859
INFO:root:Epoch[0] Batch [200]  Speed: 3747.11 samples/sec      accuracy=0.895469
INFO:root:Epoch[0] Batch [300]  Speed: 3982.58 samples/sec      accuracy=0.912656
INFO:root:Epoch[0] Batch [400]  Speed: 3960.68 samples/sec      accuracy=0.928594
INFO:root:Epoch[0] Batch [500]  Speed: 5376.55 samples/sec      accuracy=0.933906
INFO:root:Epoch[0] Batch [600]  Speed: 4133.33 samples/sec      accuracy=0.943906
INFO:root:Epoch[0] Batch [700]  Speed: 5935.95 samples/sec      accuracy=0.944688
INFO:root:Epoch[0] Batch [800]  Speed: 3966.74 samples/sec      accuracy=0.940312
INFO:root:Epoch[0] Batch [900]  Speed: 3803.05 samples/sec      accuracy=0.953906
INFO:root:Epoch[0] Train-accuracy=0.966639
INFO:root:Epoch[0] Time cost=14.467
INFO:root:Epoch[0] Validation-accuracy=0.943670
1 server 1 client training with train_mnist.py WITH GPU
INFO:root:Epoch[0] Batch [100]  Speed: 13700.01 samples/sec     accuracy=0.807859
INFO:root:Epoch[0] Batch [200]  Speed: 27909.23 samples/sec     accuracy=0.895469
INFO:root:Epoch[0] Batch [300]  Speed: 23719.16 samples/sec     accuracy=0.910781
INFO:root:Epoch[0] Batch [400]  Speed: 30796.60 samples/sec     accuracy=0.925312
INFO:root:Epoch[0] Batch [500]  Speed: 26746.35 samples/sec     accuracy=0.933906
INFO:root:Epoch[0] Batch [600]  Speed: 29120.16 samples/sec     accuracy=0.943906
INFO:root:Epoch[0] Batch [700]  Speed: 30805.82 samples/sec     accuracy=0.944531
INFO:root:Epoch[0] Batch [800]  Speed: 22852.49 samples/sec     accuracy=0.937813
INFO:root:Epoch[0] Batch [900]  Speed: 28238.62 samples/sec     accuracy=0.952031
INFO:root:Epoch[0] Train-accuracy=0.969172
INFO:root:Epoch[0] Time cost=2.452
INFO:root:Epoch[0] Validation-accuracy=0.936505
Minimum reproducible example
(If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)
(pgrep python | xargs kill -9 && rm ~/train/profile.json) &>/dev/null
(pgrep memcheck-amd64- | xargs kill -9) &> /dev/null
export DMLC_PS_ROOT_PORT=9091;
export DMLC_NUM_WORKER=1;
export DMLC_NUM_SERVER=1;
export DMLC_PS_ROOT_URI=<IP_ADDRESS>;
export DMLC_ROLE=scheduler;
python train_mnist.py &
export DMLC_ROLE=server;
export DMLC_SERVER_ID=0
python train_mnist.py --kv-store dist_sync --gpus 0 &
export DMLC_ROLE=worker;
export DMLC_WORKER_ID=0
python train_mnist.py --kv-store dist_sync --num-epochs 1 --gpus 0&
Steps to reproduce
(Paste the commands you ran that produced the error.)

Run the example and toggle --gpus 0
Observe accuracy differences.

What have you tried to solve it?

The problem seems to be the initialization of params in GPU.
The first divergence of these two training is the first gradient sent out after the first batch.

@apache/mxnet-committers: This issue has been inactive for the past 90 days. It has no label and needs triage.
For general "how-to" questions, our user forum (and Chinese version) is a good place to get help.

have you tried to fix the seed for initialization?

@Luo-Liang Have you tried fixed seed for initialization as per @ThomasDelteil's suggestion? Requesting to close this issue, if the issue is resolved.

Yes. This is no longer a problem. I have confirmed it's due to initialization.


refresh cache on application update (service worker and caching)

In order to take advantage of updates appearing, you need to make sure that requests to service-worker.js are not cached. This will also enable you to notify users when new versions of the app are available in browsers that support service workers.
Cache control should we handled correctly by S3/CloudFront
https://medium.com/@kellyrmilligan/adjusting-cache-settings-for-create-react-apps-service-worker-40fb0d060635
see number 5 of :
https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#offline-first-considerations
Also take care about the --delete flag ...
as discusseed here : https://github.com/AnomalyInnovations/serverless-stack-com/issues/70#issuecomment-368199044

I'm wondering if it is possible to exclude the service-worker.js file in cloudfront.
I don't really understand why it is needed to configure the cache control at the S3 level ...

@lepirlouit I've been thinking over this and most likely we'll disable service workers for now. It has caused quite a bit of confusion for people and needs a lot of extra detail to get it to work correctly.


Introduce a mechanism to perform cast operation (internally) without type checking

Currently is-check get sugared to a cast-operation internally. i.e:
any a = 5;
if (a is int) {
    int b = a;
}

get desguared to:
any a = 5;
if (a is int) {
    int b = <int>a;    // <---
}

And the cast operation goes to the runtime as a CHECKCAST, which will do a runtime type check and perform the cast. However, given that this is within the type-guard, the type checking is already done. So no need to perform the type checking once more before casting, as it is an overhead to check the types everytime.
Thus a simple cast is needed in such scenarios. This should be used in all other places as well, where a cast is added at the desugar phase.

This is supported in jballerina side (backend-jvm) now. Whatever cast that gets added in desugar phace will omit the type checking.
However, there are still more places to check and skip the type checking (set the flag in the cast operator) at the type-checker phase.

This issue has been marked as "Deferred" and will be revisited in the future when resources are available.


Mafia: add game and host bans

not sure how this passed locally

also, is {__proto__: null, whatever} preferred over Object.assign(Object.create(null), {whatever})


does not load on server

Minecraft Version: 1.16.4
Forge Version: 35.1.37
Mod Version: 1.0.1
Single Player or Server: Server
Describe problem (what you were doing; what happened; what should have happened):
Mod does not load at all on Server.
Judging from the code, it's because the mod hasn't been written with the server in mind.
Log file link:
latest.log

Thanks, got a fix out https://www.curseforge.com/minecraft/mc-mods/restricted-saplings/files/3203020


Create monster-monitor

Tracks NPC kills regardless of item drops and allows setting kill limits with optional notifications

Sorry for all the spam on commits, this should be the last major update (until others send me deathanimationids to fully implement), given the changes it should be fully functional and ready :)

Sending back to draft, revamping and reassessing

Ready for review.

Hate be a bother, but if any maintainers have a minute or two, could you take a look at this please! Thank you!

This plugin looks like it logging every animation from an npc and always saving it?

This plugin looks like it logging every animation from an npc and always saving it?

If buffers animations when interacting with an NPC only buffering unique animations that are not -1. Upon despawn it logs the last animation as the Death Animation. then does a clean up of the buffer.

Any other feedback or questions you have of this PR? :)

Can't you use something like onActorDeath instead of logging and tracking all this animation stuff? https://static.runelite.net/api/runelite-api/net/runelite/api/events/ActorDeath.html
This just sounds like asking for a nightmare every time a new piece of content comes out.

I could’ve used onActorDeath instead of tracking NPC animations with an array, but I chose this approach to get more accuracy and detail when logging NPC deaths. By capturing the death animations, I’m also hoping to help fill in some of the missing animation IDs within RuneLite. As the plugin grows and we identify more death animation IDs, I plan to eventually move away from tracking animations altogether and rely on the DeathAnimationIDs class for logging.

That doesn't really make sense as llemonduck mentioned.

That doesn't really make sense as llemonduck mentioned.

I understand! I'll make the corrections right now and utilize onActorDeath instead of the mess I made for tracking animations.

@raiyni @LlemonDuck Updated per your suggestions

DeathTracker is not being unregistered from the EventBus on plugin shutDown

DeathTracker is not being unregistered from the EventBus on plugin shutDown

@raiyni @Felanbird @LlemonDuck @iProdigy Changes made

You don't need to ping everyone every time you update it.

This isn't a blocker for merging but: if someone stops and starts the plugin, the DeathTracker won't be re-registered with the eventbus. Personally I'd just do the register/unregister calls within the plugin startUp/shutDown methods (and then you don't need to inject EventBus into DeathTracker)

Also you create this executor but never use it - could you remove this line: https://github.com/ChunkyAtlas/monster-monitor/blob/5634410d8ec8f4b24db5efab1db8070d6ed7697d/src/main/java/com/monstermonitor/DeathTracker.java#L84

this should be on swing thread not client thread https://github.com/ChunkyAtlas/monster-monitor/blob/87dd221ac40a24f1ce64a712dcd9983cd12af714/src/main/java/com/monstermonitor/MonsterMonitorPlugin.java#L93-L103

Sorry to bounce you back and forth a bit, but my last request is that you should remove uses of Exception#printStackTrace

Sorry to bounce you back and forth a bit, but my last request is that you should remove uses of Exception#printStackTrace

no worries! I appreciate you going through it all!


COuld someone make colab notebook to use this project for image SR

please!
thanks

I'd love a Replicate demo but looks like the author isn't interested in the project anymore

yes. author not responding and acts as uninterested at its own paper... 👎


Validate dependsOn rules

Flux-test should validate dependsOn rules to prevent mistakes referencing a helmrelease that doesn't exist.

Additionally can validate:
  postBuild:
    substituteFrom:

Validation rules added in https://github.com/allenporter/flux-local/pull/629 though not a hard fail at the moment.


Publish 'tap-thunderboard' created during Taptoberfest

Migrated from GitLab: https://gitlab.com/meltano/hub/-/issues/152
Originally created by @aphethean on 2021-10-22 08:48:58

Created a new tap for Silicon Labs Thunderboards environmental data - temperature, uv, ambient light.
All Singer definitions are stored in /_data/taps/ or /_data/targets and logo images are in /assets/logos/<taps or targets>. The minimial steps for adding a tap or target are the following:
Checklist

[x] Fork the MeltanoHub and create a branch, you can name the branch anything you like.
[x] Add a yaml configuration file in the appropriate folder (/_data/taps/ or /_data/targets). The name of the file should match the name of the tap. If there is already one, add a descriptor to the name such as -search.
[x] Add a png logo image in /assets/logos/<taps or targets>. The image name must match the YAML file name and should be a reasonable size (ideally less than 100K).
[x] Create a Merge Request to main from the new branch in your fork and select the template "Add a New Singer Connector".
[x] Tag @tayloramurphy or @pnadolny13 to flag it for review. Or post to the hub channel on Meltano slack.

Detailed Steps (GitLab Web Editor)

Click Web IDE on the MeltanoHub repo
You'll be prompted to create a fork since you dont have access to edit directly. This automatically create a fork in your project and land you in the web editor.
Add your yaml config file in /_data/taps/ by clicking "New File". You can use the sample below to get started.
Upload your png image in /assets/logos/<taps or targets> by clicking "Upload File".
Click the commit, write a write a message, then commit again (keep "Create new branch" and "Start a new merge request selected")
Choose the "Add new Singer Connector" template in the merge request
Tag @tayloramurphy or @pnadolny13

Sample yaml file
description: Silicon Labs Thunderboard's collect environmental data - temperature, uv, ambient light - from a physical device.
domain:
  description: Sensors
  name: Silicon Labs Thunderboard
  type: file
  url: https://www.silabs.com/community/projects.entry.html/2017/03/08/thunderboard_sensew-Scqr
label: Thunderboard
name: thunderboard
singer_name: tap-thunderboard
type: tap
variants:
- default: true
  maintenance_status: Unknown
  meltano_sdk: true
  name: Matatika
  pip_url: git+https://github.com/Matatika/tap-thunderboard
  repo: https://github.com/Matatika/tap-thunderboard
  capabilities:
    - catalog
    - discover
  settings:
    - name: mode
      description: dump | file - 'dump' mode scans for devices and dumps measurements continuously.
    - name: dataDirectory
      description: The local directory where thunderboard data can be found
    - name: filename
      description: The name of the file in the data directory to be processed
    - name: cleanup
      description: Optional cleanup the file contents after processing (Default: True)
    - name: deviceId
      description: An optional device id to limit output from discovered thunderboards

View 7 previous comments from the original issue on GitLab


create the IBMCLoudPlatform type for the ingress operator

package: github.com/openshift/api
repo:    https://github.com/AndreaM12345/api.git
version: "ibm-ingress"

@AndreaM12345 Adding a new platform type is something that affects the entire product and probably won't happen outside the context of a major version release. (The constants for existing platforms are here.
@openshift/installer what's the guidance for how contributors can propose new platform types?

cc @derekwaynecarr

/ok-to-test

this will be needed to support IBM ROKS deployment.

/assign

@AndreaM12345 can we document what we would like to see for PlatformStatus?
for AWS, we make it visible inside the cluster what region we are running:
https://github.com/openshift/api/blame/master/config/v1/types_infrastructure.go#L139
for GCP, we let the cluster know the project and region:
https://github.com/openshift/api/blame/master/config/v1/types_infrastructure.go#L156
and for Azure the resource group:
https://github.com/openshift/api/blame/master/config/v1/types_infrastructure.go#L145
For IBM ROKs, I think it would be useful to know location, resource group name, and provider (classic, vpc-classic, etc.) since operators may work differently based on provider.
Agree?

@derekwaynecarr @AndreaM12345 is the intent to add support for IBM public cloud to the Ingress operator? An option I’d suggested before was to use an add-on operator to support IBM public cloud while letting the default Ingress operator simply deploy the router pods (as in the bare metal case). Have we discarded that option?

@csrwng ingress operator and storage are both the target use cases.

/retest

/retest

@AndreaM12345 you need to run hack/update-* scripts to update generated artifacts, otherwise you'll keep failing verification.

created https://github.com/openshift/api/pull/557 as this PR seems to be pulling in lots of different files due to rebasing.   Looks like https://github.com/openshift/api/pull/557 is more clear as to what the changes are


Simple metrics

[x] @ajrominger any comments :)
[x] Missing soundtrack to opening credits
[x] Check for sound issues

Ideas for in-class activity?

Sampling problems/"veil line"?

could run a simulation

Feasible set puzzle?
Frank papers?
Or just lead a discussion

A suggestion - https://mybinder.org/v2/gh/diazrenata/theory-course/HEAD?urlpath=rstudio
Song plays data is exhaustive and fun, but might be just as well to use biological data...!

Share screen and livecode

loading data
plotting SAD
calculating hill numbers (I'm using hillR)

Then have folks (if binder is working)

Run subsampling with different sample sizes

Share plots, hill numbers (this will flag issues of richness and the veil line)

Could provide a couple datasets so folks get different outcomes (Portal rats, arthropods, BBS, song plays, ...?)

Class things to scaffold:

Calculating hill numbers - writing a script to calculate hill numbers
Start with 3a in Chao --> code
Test by comparing results to hillR/roleR

read.csv from github - no paths
then skip downloading

hide answer key in branch
no copy-paste live code

clean .csv

avoid pipes for lower cognitive load


iOS: Treat warnings as errors

Summary

Related to https://github.com/facebook/react-native/issues/22609. Prevent new warnings from being introduced into the codebase by treating them as errors in CI.
Changelog

[iOS] [Changed] - Xcode warnings are treated as errors during CI tests.
Test Plan

See https://circleci.com/workflow-run/147742c3-69ee-439c-8cc4-6dd0cbc8726f for an example of a failed build, as there's a couple of warnings that exist on master as of this writing:
react-native/ReactCommon/jsi/JSCRuntime.cpp:827:65: error: unused parameter 'obj' [-Werror,-Wunused-parameter]
jsi::WeakObject JSCRuntime::createWeakObject(const jsi::Object& obj) {
                                                                ^
react-native/ReactCommon/jsi/JSCRuntime.cpp:837:62: error: unused parameter 'obj' [-Werror,-Wunused-parameter]
jsi::Value JSCRuntime::lockWeakObject(const jsi::WeakObject& obj) {
                                                             ^
2 errors generated.

I am not sure yet if this is the right approach. I fixed the warnings in the main project, but clang is now failing on warnings from third-party dependencies.

 Maybe another approach could simply be to build with warnings and fail it if the output (stderr/stdout) text matches warnings in RN?


[typescript-react-query] add documentMode support

Is your feature request related to a problem? Please describe.
We want to preprocess the document to remove duplicated fragments. For this we created a custom version of graphql tag witch works fine. But now we want to use the react-query plugin and can not enable graphql-tags with it.

Currently typescript-react-query forces the document-mode to "string".
Describe the solution you'd like
typescript-react-query should be able to use the document-modes the other plugins support.
Describe alternatives you've considered
It would be possible to fix our problem by make grpahql-code-gen dedup the fragments before generating the document, but I have no idea yet how to do so. Another way would be to preprocess the document when its done.

I really feel that the issue here is more about how the generated documents aren't already deduplicated.
In the short term I've been working around this by deduplicating the fragments in a custom fetch call. Using graphql-tag inline to create a deduplicated ast and then converting it back to a string before I submit it.
Something like this:
import { print } from 'graphql'
import gql from 'graphql-tag'

...

    const res = await fetch('/api/graphql', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
        ...headers,
      },
      body: JSON.stringify({
        query: print(gql(query)),
        variables,
      }),
    })
...

It works but seems rather heavy handed.  I rather think that these could all be deduplicated when doing the codegen and suspect that I got away with it when using the apollo version because apollo does this for me.

We have another use case for this enhancement. We use a babel-plugin-marco, that will rename operationNames. So, for us we would like to set this config on the codegen.yml
schema: MY_SCHEMA_PATH
documents: './src/**/*.graphql'
generates:
  ./generates.ts:
    plugins:
      - typescript
      - typescript-operations
      - typescript-react-query
    config:
      gqlImport: graphql-tag-transform.macro


 (Y/n) Y
INFO: [guild] Initializing Untitled.ipynb for run
Traceback (most recent call last):
  File "/opt/conda/lib/python3.9/tokenize.py", line 278, in untokenize
    out = ut.untokenize(iterable)
  File "/opt/conda/lib/python3.9/tokenize.py", line 212, in untokenize
    self.add_whitespace(start)
  File "/opt/conda/lib/python3.9/tokenize.py", line 173, in add_whitespace
    raise ValueError("start ({},{}) precedes previous end ({},{})"
ValueError: start (2,3) precedes previous end (3,0)

A.ipynb has exactly one cell as the follows:
n_epoch = 0
# this comment line causes the error!

The error resolves when removing the final line
# Any comment except the final line does not raise the error.
n_epoch = 0

In my environment, every time I add a comment in the last line of a cell of an ipynb file, I encounter the error.
Environment:
Guild AI
Version: 0.7.3
Python
Python 3.9.2
Jupyter versions
jupyter core     : 4.7.1
jupyter-notebook : 6.4.0
qtconsole        : not installed
ipython          : 7.24.1
ipykernel        : 5.5.5
jupyter client   : 6.1.12
jupyter lab      : 3.0.16
nbconvert        : 6.0.7
ipywidgets       : 7.6.3
nbformat         : 5.1.3
traitlets        : 5.0.5
OS
Ubuntu 16.04.7 LTS
Jupyter is running on a docker.

Encountering same error.

Hi. This might be related to these findings: https://github.com/vyperlang/vyper/issues/1161#issuecomment-451097515

This is fixed in master and will be available in 0.7.5. Thanks for the terrific report!


How to find Tag+Content?

I want to search and find for the string "1539", because searching only for 1539 brings too many unwanted results. In an texteditor it is no problem, but how to make it in XmlNotepad?

I don't follow.  Can you give more info, perhaps a screen shot of the XML Notepad find dialog you are trying to do and an example XML file that returns too many unwanted results?  The XML Notepad find dialog does allow you to limit what is being searched better than the text editor does, for example, the Search Filter allows you to limit what it looks inside of:

Hi Chris
maybe I'm doing nonsense, but here my example: An XML with this structure:
...
  <Parent_ID>1234</Parent_ID>
  <Parent_ID>1234</Parent_ID>
  <Parent_ID>1234</Parent_ID>
  <Parent_ID>1234</Parent_ID>
  <Parent_ID>1234</Parent_ID>
  <Parent_ID>1234</Parent_ID>
  <id>1234</id>
  <Parent_ID>1234</Parent_ID>
  <Parent_ID>1234</Parent_ID>
  <Parent_ID>1234</Parent_ID>
  <Parent_ID>1234</Parent_ID>
  <Parent_ID>1234</Parent_ID>
  <Parent_ID>1234</Parent_ID>
  <Parent_ID>1234</Parent_ID>
...

I want to find "1234". Searching for "1234" brings too much results (all the <Parent_ID> ..), searching for <"1234" brings no result:

Ah, you need to learn XPath syntax, but if you click on the text in the id element in the treeview, then Ctrl+F then click the "Use XPath" button it will show you what the xpath expression is for finding that node.  Then you can edit the xpath expression to find others, for example try "//id/1234".  See https://riptutorial.com/xpath/example/6209/find-all-elements-with-certain-text.

Thanks, Chris
as expected is the problem on the front side of the keyboard.


Connection use relative path of workspace

Is your feature request related to a problem? Please describe.
I am using a sqlite connection, the path to the database file is the full, resolved path.
Describe the solution you'd like
Instead of a full path, use a relative path to the workspace. For example, it saved this to .vscode/settings.json:
{
  "sqltools.connections": [
    {
      "database": "/Users/my-user/my-project/nested/dir/mydatabase.db",
      "dialect": "SQLite",
      "name": "my project database"
    }
  ]
}

If my workspace is opened up at the /Users/my-user/my-project, then I'd rather have this:
{
  "sqltools.connections": [
    {
      "database": "./nested/dir/mydatabase.db",
      "dialect": "SQLite",
      "name": "my project database"
    }
  ]
}

The reason being, if I check in this .vscode/settings.json, my full path is likely not going to match anyone else's full path. The good news is, if I change the path manually, it will actually work just fine, I can connect to the sqlite database file and see the tables. So this is just about what is saved to .vscode/settings.json.
Maybe something like this:
const path = require('path');
const databasePath = '/Users/my-user/my-project/nested/dir/mydatabase.db';
const database = path.relative(vscode.workspace.rootPath, databasePath);
// database should be "./nested/dir/mydatabase.db"

Forgot to also mention that this full path was created when I used the connection wizard and used the picker to choose the file.

 If the file is inside of a workspace, it should be relative.
Would you mind submitting a PR? Your solution is half way there.
https://github.com/mtxr/vscode-sqltools/blob/05ebdc6080c6b588c91a1015c7f8d1ad3ff01476/packages/plugins/connection-manager/screens/settings.ts#L42-L52
We should basically do what you said before commands.executeCommand if the dialect is SQLite and the file is within a workspace folder.
I'm trying to go back and finish intellisense, so if you can help on this one, I would be very thankful!

PR #255

Hi @mitchellsimoens!
Just came to remember, if you like the project, please consider reviewing it on VSCode marketplace. That you help it to keep evolving.
Thanks!


I cannot install the dashboard

Using composer require nova-bi/nova-dashboard-manager, I get the following error
Problem 1     - Root composer.json requires nova-bi/nova-dashboard-manager ^1.5 -> satisfiable by nova-bi/nova-dashboard-manager[1.5].     - nova-bi/nova-dashboard-manager 1.5 requires digital-creative/nova-inline-morph-to dev-custom -> found digital-creative/nova-inline-morph-to[dev-dependabot/npm_and_yarn/ini-1.3.8, dev-dependabot/npm_and_yarn/lodash-4.17.21, dev-dependabot/npm_and_yarn/ssri-6.0.2, dev-dependabot/npm_and_yarn/elliptic-6.5.4, dev-dependabot/npm_and_yarn/y18n-4.0.1, dev-dependabot/npm_and_yarn/dns-packet-1.3.4, dev-dependabot/npm_and_yarn/url-parse-1.5.1, dev-dependabot/npm_and_yarn/axios-0.21.1, dev-dependabot/npm_and_yarn/browserslist-4.16.6, dev-master, v0.1.0, ..., v0.2.1] but it does not match the constraint.

Hello,
fixed in newest release.
Thank you for reporting!

Hi! Using composer require nova-bi/nova-dashboard-manager I get the following error:
Problem 1
- Root composer.json requires nova-bi/nova-dashboard-manager ^3.0 -> satisfiable by nova-bi/nova-dashboard-manager[3.0].
- nova-bi/nova-dashboard-manager 3.0 requires eminiarts/nova-tabs ^1.0 -> found eminiarts/nova-tabs[1.0.0, ..., v1.x-dev] but it conflicts with your root composer.json require (^2.1).
I've already tried with the option --with-all-dependencies (-W)

Hello @danielaWaldeck95 .
Seems you are using eminiarts/nova-tabs v2, but this is supported only in Nova 4.
This package is supported only with nova 3, so eminiarts/nova-tabs v1 only allowed.


install: Drop support for old skopeo

Let's just hard require a skopeo that can fetch from containers-storage. Motivated by https://github.com/containers/bootc/pull/263 which was moving this code around.

The test claims that skopeo is too old.

Ah yes, ubuntu.  I will look at excising this test.

OK, I did some tweaking of the GH/ubuntu CI to build skopeo from git, which will also conveniently give us some integration testing as things change there.

LGTM

@vrothberg PTAL

I think the comments here are basically addressed.


API

It would be nice if one could create and update Ellies programatically.
Let me elaborate on my usecase for this. Elm-visualization has a companion website that shows a bunch of examples of using the library. This works well, but if a user wants to start experimenting with one of the examples, they need to do a fair amount of setup to get to a place where they can even compile one of the examples. Ideally, there would be a link to an Ellie version of the example, so they could start hacking right away.
Now the example website it built using this tool. I would like to add a command to the tool that would go and publish all the examples as ellies and add the links into the generated website.

An alternative to this would be a way to prefill an Ellie. See this page for what codepen.io does here.

Bumping this feature request. I am working on a documentation site and I would like to generate ellie's programmatically. Althought I wasn't really thinking of an API, but rather being able to load an ellie with a base64 encoded elm program as part of the url:
i.e.
https://ellie-app.com?program=<base64EncodedProgram>

So turns out there are 2 existing ways to proceed with this.

You can use the GraphQL API that Ellie itself uses. You can play with it here. For an example that illustrates publishing, see here.

According to @lukewestby:

...there’s a little-known feature where you can prefill a new Ellie without having to save
https://ellie-app.com/a/example/v1?title=hello world&elmcode=hello&htmlcode=world&packages=elm%2Fbrowser%401.0.2&elmversion=0.19.0
(Small thing - the percent decoder doesn’t handle + correctly so you have to use %20 for spaces)

So the main thing missing is some documentation on this.


[SPARK-23207][SPARK-22905][SPARK-24564][SPARK-25114][SQL][BACKPORT-2.1] Shuffle+Repartition on a DataFrame could lead to incorrect answers

What changes were proposed in this pull request?
Back port of #20393 and #22079.

Currently shuffle repartition uses RoundRobinPartitioning, the generated result is nondeterministic since the sequence of input rows are not determined.

The bug can be triggered when there is a repartition call following a shuffle (which would lead to non-deterministic row ordering), as the pattern shows below:
upstream stage -> repartition stage -> result stage
(-> indicate a shuffle)
When one of the executors process goes down, some tasks on the repartition stage will be retried and generate inconsistent ordering, and some tasks of the result stage will be retried generating different data.

The following code returns 931532, instead of 1000000:
```
import scala.sys.process._

import org.apache.spark.TaskContext
val res = spark.range(0, 1000 * 1000, 1).repartition(200).map { x =>
  x
}.repartition(200).map { x =>
  if (TaskContext.get.attemptNumber == 0 && TaskContext.get.partitionId < 2) {
    throw new Exception("pkill -f java".!!)
  }
  x
}
res.distinct().count()
```

In this PR, we propose a most straight-forward way to fix this problem by performing a local sort before partitioning, after we make the input row ordering deterministic, the function from rows to partitions is fully deterministic too.

The downside of the approach is that with extra local sort inserted, the performance of repartition() will go down, so we add a new config named `spark.sql.execution.sortBeforeRepartition` to control whether this patch is applied. The patch is default enabled to be safe-by-default, but user may choose to manually turn it off to avoid performance regression.

This patch also changes the output rows ordering of repartition(), that leads to a bunch of test cases failure because they are comparing the results directly.

Add unit test in ExchangeSuite.

With this patch(and `spark.sql.execution.sortBeforeRepartition` set to true), the following query returns 1000000:
```
import scala.sys.process._

import org.apache.spark.TaskContext

spark.conf.set("spark.sql.execution.sortBeforeRepartition", "true")

val res = spark.range(0, 1000 * 1000, 1).repartition(200).map { x =>
  x
}.repartition(200).map { x =>
  if (TaskContext.get.attemptNumber == 0 && TaskContext.get.partitionId < 2) {
    throw new Exception("pkill -f java".!!)
  }
  x
}
res.distinct().count()

res7: Long = 1000000
```

Author: Xingbo Jiang <xingbo.jiangdatabricks.com>

Test build #95186 has started for PR 22211 at commit 5bdd9e3.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/2511/
Test PASSed.

Merged build finished. Test PASSed.

Test build #95186 has finished for PR 22211 at commit 5bdd9e3.

This patch fails to build.
This patch merges cleanly.
This patch adds the following public classes (experimental):
public final class RecordBinaryComparator extends RecordComparator

Merged build finished. Test FAILed.

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

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/2514/
Test PASSed.

Test build #95189 has started for PR 22211 at commit d269015.

Test build #95189 has finished for PR 22211 at commit d269015.

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

Merged build finished. Test PASSed.

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

cc @jiangxb1987

LGTM

Hi, @henryr . Since this is merged, could you close this PR?

Merged to 2.1


Function GetOrders returns orders only by

Version 1.0.25 has bug in function GetOrders. It returns orders only from trading pool.
Expected behavior: GetOrders returns orders from trading pool and history pool by input parameter.
(Thanks John Fitton to find this issue).

I have fixed bug in MtApi.mq4 in function ExecuteRequestGetOrders to select pool of orders according to parameter of function GetOrder in MtApi.


Better Readme

The project is now ready for a better readme.
Take examples on the other parser.

(Done, but by mistake, directly on main, and not via a PR...)


Added isNumeric method

Added the _.isNumeric() method, to test if a given object is numeric.
Numeric objects are anything that isNumber() or a string that has a numerical meaning (e.g. '-12.3', '3', '-.2')

Can you explain the exact use case for this? When do you need to guess if a string happens to be formatted as a number?

It's a very commonly used function in php http://php.net/manual/en/function.is-numeric.php
I have to use something like that at least 23g times a day.
A few examples:

In a JS template:
<%= _.isNumeric(something) ? format_number(something) : something %>
Anywhere that accepts user input, it is returned as a string and needs to be checked:

On css3please.com you could fill 0.t as the value for opacity.
In a backbone app a user might enter 2q_s into the quantity field in a shopping cart form. It should be checked before you would feed it into the model.

I've written an IMDB scraper in javascript that parsed the DOM to get actor's name and age. I have to verify that the age I got (as a string) was indeed numeric before submitting that value to the server.
If you were writing a command line application (or a js linux emulator), you might have to check that command line arguments given by the user were numeric (even though you would get them as a string).

Ok -- then it sounds great as a validation function, and would be a useful part of a validation library -- but it isn't a great fit fore core Underscore.js -- which isn't concerned with validating inputs.

It sounds like a great fit for Backbone, which of course is built on Underscore.
I am currently trying to validate data from an  field, passed to the Backbone model via jQuery('input.my-number').val().
jQuery.fn.val() returns a string type, but in my model's validate function I need to ensure the user entered a number.

jQuery includes this function, but in a Backbone model I would rather use this through Underscore.
http://api.jquery.com/jQuery.isNumeric/

Never mind, parseInt() and isNaN() fit the bill for this use case.

parseInt() wouldn't do, because it would pass strings which are not numeric as numeric, while rejecting others.
For example parseInt would parse '3d graphics' or '1dsasdfadfs' as numeric just because the first char is numeric, but '.3' is NaN.

I have updated my fork with a much nicer and leaner implementation of isNumeric() inspired by jQuery's implementation (it is part of its core functionality since 1.7)
@BenLambert - Following your suggestion, I checked jQuery's implementation... They combine parseInt(), isNaN() with isFinite() and that seems to catch all the cases. Check out https://github.com/TalAter/underscore/blob/master/underscore.js#L814


chore(Storybook): updates Storybook to v 7.6

Description
this PR updates Storybook from version 7.5.3 to 7.6.6
No majors changes that we would notice but just best practice to keep Storybook up to date on patches.
See Storybook Changelog if curious about updates
References

Testing

yarn clean && yarn install && yarn start
check that toolbar and panel custom addons work as expected
spot check some components to make sure they work as expected
run yarn run test to make sure all jest tests pass

Automation

Checklist

[ ] all commented code has been removed
[ ] any new console issues have been resolved
[ ] code linter and formatter has been run
[ ] test coverage meets repo requirements
[ ] PR name matches the expected semantic-commit syntax

Test Execution Passed.

Test Execution Passed.


How to integrate prisma with serverless framework aws-nodejs-typescript template that uses serverless-esbuild

I am building a serverless function using the serverless framework. However im having an issue with running it locally

Error: ENOENT: no such file or directory,
open ''/.esbuild/.build/node_modules/.prisma/client/schema.prisma'

prisma/schema.prisma
generator client {
    provider      = "prisma-client-js"
    binaryTargets = ["native", "rhel-openssl-1.0.x"]
}

serverless.ts
package: {
    individually: true,
    patterns: [
        "!node_modules/.prisma/client/libquery_engine-*",
        "node_modules/.prisma/client/libquery_engine-rhel-*",
        "!node_modules/prisma/libquery_engine-*",
        "!node_modules/@prisma/engines/**",
    ],
},

steps:
npx prisma generate && npm install

sls invoke local -f main

What am i doing wrong here?
note:

attempting to follow this example: https://github.com/prisma/prisma-examples/tree/latest/deployment-platforms/aws-lambda

i am using the serverless aws-nodejs-typescirpt template which uses serverless-esbuild and not serverless-webpack

Hi @kaykhan. if you're using default serverless-esbuild config, it will bundle everything for you in one file, but to correctly resolve .prisma schema you'll need to let esbuild know hot to treat the schema file, so could you try to define:
  esbuild:
    loader:
      .prisma: text

and let us know if it helps

the difference would be that in my example it would put your schema in the bundle during the build step and would not demand the file in runtime.
your solution also works because you copied the schema file in the place where it's expected in runtime and resolves correctly.


River and Marsh biomes

Warm rivers would generate in deserts, warm-semi arid, and mediterranean biomes and have a teal coloring. Palm Marshes can generate off warm rivers and would contain palm trees.
Boreal rivers would generate in boreal biomes, contain dark blue coloring. Would probably generate rocky wetlands at the border.
Tropical rivers would be a green-tinted blue, generate with many sea pickles, and can generate Palm Marshes.
Lukewarm Rivers would generate in mainly prairies or oak savannas, and sun-scorched marshes (yellow marshes) would generate alongside.
Muddy Rivers would generate in Savannas, Mediterranean biomes?, maybe some subtropical biomes?, and would have brown water, mud beds, and generate swamps and mangroves more frequently on the riverside.

Rogue did majority of this; Will add Gallery Forests (Riverside palm/deciduous forest) to finish


jerrinot - final(?) improvements

Check List:

[x] You have run ./mvnw verify and the project builds successfully
[x] Tests pass (./test.sh <username> shows no differences between expected and actual outputs)
[x] All formatting changes by the build are committed
[x] Your launch script is named calculate_average_<username>.sh (make sure to match casing of your GH user name) and is executable
[x] Output matches that of calculate_average_baseline.sh
[x] For new entries, or after substantial changes: When implementing custom hash structures, please point to where you deal with hash collisions (line number)

Execution time: 1.7s
Execution time of reference implementation: loooong

supersedes https://github.com/gunnarmorling/1brc/pull/652

OMG:
Benchmark 1: timeout -v 300 ./calculate_average_jerrinot.sh 2>&1
  Time (mean ± σ):      1.638 s ±  0.024 s    [User: 0.002 s, System: 0.004 s]
  Range (min … max):    1.597 s …  1.657 s    5 runs

Summary
  jerrinot: trimmed mean 1.64529769248, raw times 1.5968923114800002,1.6570793184800001,1.64792236748,1.64362821748,1.64434249248

Leaderboard

| # | Result (m:s.ms) | Implementation     | JDK | Submitter     | Notes     |
|---|-----------------|--------------------|-----|---------------|-----------|
|   | 00:01.645 | [link](https://github.com/gunnarmorling/1brc/blob/main/src/main/java/dev/morling/onebrc/CalculateAverage_jerrinot.java)| 21.0.2-graal | [Jaromir Hamala](https://github.com/jerrinot) | GraalVM native binary, uses Unsafe |

hell yeah!


Add attempt-count to task processing logs, and update unit test so that it will cover deadlock

What changed?
Add attempt count into task processing logs, without using the function getAttempt().
Update unit test so that it will go into the function that cause the deadlock.

Why?
Using getAttempt() function caused us a deadlock. Avoid using it will solve this problem.
Unit test never went to the defer function. As a result it didn't detect the deadlock before.

How did you test it?
Unit test

Potential risks

Release notes

Documentation Changes

Pull Request Test Coverage Report for Build 018690d0-cd71-43b6-a1b7-4118bdbf5e2d

1 of 8 (12.5%)  changed or added relevant lines in 3 files are covered.
139 unchanged lines in 22 files lost coverage.
Overall coverage decreased (-0.01%) to 57.188%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

common/log/tag/tags.go
0
2
0.0%

service/history/task/cross_cluster_task.go
0
5
0.0%

Files with Coverage Reduction
New Missed Lines
%

common/log/tag/tags.go
1
50.82%

service/history/queue/timer_queue_processor_base.go
1
77.26%

service/history/task/cross_cluster_task.go
1
67.72%

common/membership/hashring.go
2
83.54%

common/persistence/executionManager.go
2
78.89%

common/persistence/statsComputer.go
2
95.71%

common/task/weightedRoundRobinTaskScheduler.go
2
88.6%

common/util.go
2
52.31%

service/history/execution/mutable_state_util.go
2
36.04%

common/persistence/nosql/nosqlplugin/cassandra/workflow.go
3
59.55%

Totals

Change from base Build 01868484-ebaa-4da5-987b-aeccc2b2c20f:
-0.01%

Covered Lines:
85158

Relevant Lines:
148908

💛  - Coveralls


Broken H1 link

My repo is https://<username>.github.io/<repositoryName>/.
The rendered YYYY/mm/dd/MyPost.html contains the posts title MyPost with a H1 link to /YYYY/mm/dd/MyPost.html - this gives a 404.
The right way is /<repositoryName>/YYYY/mm/dd/MyPost.html.

Hi @wols,
Thank you for pointing me this bug :+1:

The used theme was ghostium.

Fixed with the 0.6.0 see https://github.com/HubPress/hubpress.io/issues/414#issuecomment-234722077


tflite_convert deletes (almost) all nodes and edges, .pb to .tflite, 585929kb to 1kb

Hello,
I'm having problems with conversion from frozen graph (.pb) to tflite, using tflite_convert.
It does safe a .tflite file, but it's only got a size of 1kb.
Apparently it gets rid of almost every node and all edges.
Can anybody give me advice on how to do it without losing all the information or what I'm doing wrong?
Best regards
System information
Windows 10
Tensorflow Version 1.14.0 obtained via pip
Command used to run the converter or code if you’re using the Python API
tflite_convert --graph_def_file=categorical_model.pb --output_file=optimized_graph.tflite --input_format=TENSORFLOW_GRAPHDEF --output_format=TFLITE --input_shape=1,224,224,3 --input_array=input_1 --output_array=training/SGD/Variable_215

The output from the converter invocation
2020-01-17 12:22:40.734881: I tensorflow/core/common_runtime/process_util.cc:115] Creating new thread pool with default inter op setting: 8. Tune using inter_op_parallelism_threads for best performance.
2020-01-17 12:22:51.425546: I tensorflow/core/grappler/devices.cc:60] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 (Note: TensorFlow was not compiled with CUDA support)
2020-01-17 12:22:51.432588: I tensorflow/core/grappler/clusters/single_machine.cc:359] Starting new session
2020-01-17 12:23:42.194315: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:716] Optimization results for grappler item: graph_to_optimize
2020-01-17 12:23:42.199502: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:718]   constant folding: Graph size after: 2 nodes (-1929), 0 edges (-2004), time = 45374.7031ms.

Failure details
Original file (categorical_model.pb) has got 585 929kb, output file (optimized_graph.tflite) has only got 1kb.

Closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


LayoutRenderer cannot be found: 'aspnet-user-identity'

I am getting the error below, I saw this was a previous issue but I am using <IP_ADDRESS> so I thought the issue should be resolved.
System.ArgumentException: LayoutRenderer cannot be found: 'aspnet-user-identity'
Here's where I am referencing the layout. I am using ASP.NET MVC 5

Could you provide the output from the internal debug log?

Closing this because of missing information.  Feel free to reopen it this problem still persists.


Update deps

Coverage remained the same at 97.792% when pulling d40614475fdbe2d28eba4b2193ad0e599b189e2b on update-deps into 8a726c2a321edc9ff8cfba989210ce6e72f8f2b9 on master.


Create a session if none exists and the user starts chatting

or maybe create after creating a new agent?

Closed by https://github.com/samtecspg/articulate/commit/b612c0c62044a441640ff4faba97450814aa180c


Update sequence diagrams reference frames

Related issues
For #58

Codecov Report

Merging #209 (35e53cc) into master (c3f9030) will increase coverage by 0.09%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #209      +/-   ##
============================================
+ Coverage     72.75%   72.84%   +0.09%
- Complexity      572      580       +8
============================================
  Files            94       94
  Lines          1879     1889      +10
  Branches        202      205       +3
============================================
+ Hits           1367     1376       +9
  Misses          435      435
- Partials         77       78       +1

Impacted Files
Coverage Δ

...ain/java/seedu/address/storage/JsonAdaptedTag.java
66.66% <0.00%> (-13.34%)
:arrow_down:

...in/java/seedu/address/logic/parser/ParserUtil.java
94.54% <0.00%> (-3.29%)
:arrow_down:

src/main/java/seedu/address/model/tag/Tag.java
83.33% <0.00%> (+3.33%)
:arrow_up:

...a/seedu/address/model/meeting/MeetingDateTime.java
96.55% <0.00%> (+9.05%)
:arrow_up:

Continue to review full report at Codecov.

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


AppEngine returns null from colly scraper

I'm having a slight issue with app engine and wondering whether I've missed some config stage to get colly working correctly. Sorry if this is the wrong place to be posting this.
I created my code as a standalone API that takes an http request sends the params to the correct function which then instantiates the scrape. This works locally with no problems but after tweaking the build for AppEngine the scraper will only return null. I can hit other endpoints and see the endpoints being hit in the logs but with no return. The response from colly never seems to be created. I looked into the Colly AppEngine function but my router handles the requests the scraper itself never receives the request. Any ideas why this would function as a local server but not on appengine?

@darkshuffle you have to use https://godoc.org/github.com/gocolly/colly#Collector.Appengine to patch your collector to be able to perform network requests in AppEngine.

Ok I thought so, and thanks for the speedy response, are there any examples of how to do this? I'm not quite sure where I should be calling Collector.Appengine as it expects an http.Request struct that I'm not currently passing to where the scraper is instantiated.

Here's an example in the pull request of this functionality: https://github.com/gocolly/colly/pull/49 . Extend scrapeInstagramAccounts() with a *http.Request parameter and you can pass r to your collector.

Thanks, I just gave it a go passing r in and it seems to be functioning perfectly. Wasn't sure of the relevance of the Req but all sorted. Thanks again.


Execute queries in the background

Fixes https://github.com/snapADDY/databank/issues/7.
Not really parallelization, but with the new in_background keyword argument, you can push query executions (i.e. execute() and execute_many() which do not return anything) to a background thread and do not have to wait until they finish.
However, not sure if this is really a good idea. Makes only sense if you don't care if anything goes wrong (both in Python and SQL). But what if a query takes super long and a lot of threads are spawned? Also not sure how Thread interacts with with SQLAlchemy, but I guess it should not be a problem.
@adam444555, what do you think? Should we add this feature?

In BI we added a command
    get_connection_string(), pool_size=20, connect_args={"options": "-c statement_timeout=60000"}
)

to kill any query running more than 1 mins.
Is it possible to do the same trick here? If so, may be it will be safer to add one more variable, e.g., timeout.
If not, I also agree that it should not be a problem. We can definitely add this feature 👍

I think statement_timeout is a PostgreSQL feature (you can connect to any database with databank), but I will add this tip to the README :+1:


Attachment - Loading occurs when the PDF is opened for the second time

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.64-4
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5246483&group_by=cases:section_id&group_id=292107&group_order=asc
Issue reported by: Applause Internal Team
Action Performed:

Navigate to https://staging.new.expensify.com/
Log in
Upload a larger PDF (10-20MB) to any conversation
Open the PDF
Go back to the chat
Open the same PDF again

Expected Result:
The PDF should appear instantly after opening it for the second time.
Actual Result:
PDF files aren't cached. They are downloaded every time a request is made.
Workaround:
Unknown
Platforms:

[ ] Android: Standalone
[ ] Android: HybridApp
[ ] Android: mWeb Chrome
[ ] iOS: Standalone
[ ] iOS: HybridApp
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Bug6671545_1732171633175!English_Vocabulary_in_Use_Elementary_2017.pdf
https://github.com/user-attachments/assets/290c98d7-4814-41d3-9841-c7b43dffd742

View all open jobs on GitHub

From my side, it still loads fast the second time it is opened. Maybe your browser has disabled the cache.
https://github.com/user-attachments/assets/6098d37a-25a9-4aea-af02-f2094883c3c7

Will check/test next week.

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

Unable to reproduce

Uploaded pdf linked in OP
Clicked on PDF - took ~6 second to open
Closed/minimized pdf
Reopened pdf - took 1-2 seconds
Went to other chat
returned to chat with pdf and opened it - took 1-2 seconds.

Will throw retest weekly on here for now and bump to weekly.

Checking to see if a C+ can reproduce
https://expensify.slack.com/archives/C02NK2DQWUX/p1733264077994709

Damn @ZhenjaHorbach , good 👀 for catching the vid shows they were in incognito mode, . I'm leave open for a day or two to see if others have thougths/feedback then I plan to close.


Fresh setup with standard image fails

v1.1.0
Configuration:
CUSTOMER_KEY_FILE_PEM=/deploy/private.pem
CUSTOMER_KEY_PKCS11_NAME=
GOLD_MASTER_OS_FILE=/deploy/2024-07-04-raspios-bookworm-arm64-lite.img
RPI_DEVICE_STORAGE_TYPE=emmc
RPI_DEVICE_FAMILY=4
RPI_DEVICE_BOOTLOADER_CONFIG_FILE=/var/lib/rpi-sb-provisioner/bootloader.config
RPI_DEVICE_LOCK_JTAG=
RPI_DEVICE_EEPROM_WP_SET=
RPI_DEVICE_SERIAL_STORE=/usr/local/etc/rpi-sb-provisioner/seen
DEMO_MODE_ONLY=
RPI_SB_WORKDIR=/srv/provision-work

Running on a fresh install of Pi4, based on the same 2024-07-04-raspios-bookworm-arm64-lite.img
Targeting CM4 (8GiB MMC, 1 GiB RAM, no wifi) on IO Board, as per documentation
After "successful" provisioning, boot fails before switching to encrypted partition:

boot.img/initramfs8 does not contain uncompressed kernel modules that are required here, but it has their .xz versions

p.s. rpi-otp-private-key returns zeros on the target CM4.
I was expecting it to have something random after provisioning.

Thanks for the report, @LimaLima
I'm hoping to reproduce this on CM4 either later today or tomorrow.
Your observations are essentially correct - I'd have expected to see a device-unique key returned, and that you just have zeros implies that the keywriter failed on your device.

Ok, so we have two problems then:

key provisioning not generating a disk encryption key
compressed kernel modules being copied to a kernel that expects uncompressed ones

Any suggested workarounds, or some additional information I could collect?

Some further testing:

Cleared RPI_SB_WORKDIR folder (workaround for the issue #42)
Took a cm4 module with a random numbers already burned into OTP using rpi-otp-private-key (workaround for key provisioning issue)
Modified the image using unxz -k required.ko.xz to make sure the modules are available (workaround for cryptoroot incompatibility with compressed modules)

Provisioning went through "successfully"
However, LUKS is locked:

Confirmed manually:

Even tried with a key made out of 0'os:

Need to find additional workarounds :(

Thanks for the report, @LimaLima
Unfortunately, when dealing with secure boot, workarounds are seldom what you actually want. In this case, it looks like we've had a range of reports that the Fastboot gadget OS in 1.1.0 is faulty - resulting in a failure to write keys to OTP.
This is particularly unfortunate - because that key is a hard dependency for the later stages. In particular, the key written to OTP would have been used as the device-unique key for encrypting the rootfs.
Deleting the SB_WORKDIR as you did would have advanced the stages - but you were already in a bad state at that time, so progressing wouldn't have been useful.
I can see a few actions from this report that need to happen:

Fix the fastboot gadget
Harden the provisioner step to only begin when keywriting has reported success.

Clearing SB_WORKDIR is required as a workaround for the "fastpath" making a jump at provisioner.sh#L258
which skips this line:
    DISK_IDENTIFIER="$(sfdisk --disk-id "${LOOP_DEV}")"
which is then expected to be available in provisioner.sh#L431
Given the current state of the provisioner, can you recommend how to verrify the successful execution of revoke_devkey and program_jtag_lock?

Given the current state of the provisioner, can you recommend how to verify the successful execution of revoke_devkey and program_jtag_lock?

The only non-destructive way is to observe the device metadata, which can be done by setting a flag in the rpi-sb-provisioner configuration, or manually by following the steps in the config.txt comment when using rpiboot: https://github.com/raspberrypi/usbboot/blob/d0a2ed95ade02fbc042d325a22e4a7abcaf8fd34/secure-boot-recovery/config.txt#L45

I've just cut v1.1.1, which I've used to provision a Raspberry Pi OS 64-bit desktop image onto a Compute Module - including automatic unlock via the Device Unique Key.
Please give that one a try, as I believe this release resolves this problem. Holding open for 2 weeks to verify.

Closing as stale - I've not reason to believe this fails on >1.1.1, and I've had no response.


403 Forbidden

I have cloned the repo. in src, I have cloned my own Laravel project. after building when I go to localhost I am getting 403 forbidden error. How can I resolve this?
steps I took:
1)docker-compose up -d --build site
2)cloned project into src
3) docker-compose run --rm composer install
4)docker-compose build && docker-compose up -d
after when I go to localhost:80 it shows me 403 forbidden. what is wrong with this? please help

docker-compose run --rm npm install
docker-compose run --rm npm run dev

Also check you have the .env file in the laravel folder.


Open source | Remove button "Create project" for user role in case of no projects

fixed in v1.0.6-rc.3


Merge rc-2.15 to master

merged without pr because it generates new hash for commits, it test was success: http://ci-cloudbreak.eng.hortonworks.com/job/cloudbreak-pull-request-builder-integration-test/4126


Missing cpe_utils

I see that your repo required some facebook cookbooks to function, but one of them is missing (in FB's repo) : cpe_utils.

We are aware of this and doing our best to come up with an elegant solution for the integration of helper cookbooks from multiple sources (as well as -- hopefully --  the migration path for current users of this now-deprecated-cookbook).

@maotsu Is there any specific cookbook from our repo which you are looking that currently has a dependence upon cpe_utils?
I am actively working on this right now and might be able to prioritize uncouple a cookbook or two for you if you have a couple you were eyeing.


Beginners Guide: Getting Started page doesn't exist

On this page:
https://github.com/SirLich/bedrock-wiki/tree/gh-pages/guide
The link at the end of this section is busted - target page not yet written? Consider removing the link:
You will make your first steps in creating an add-on here, by learning to create manifests and pack_icons (a.k.a initializing an Add-On), as well as learn to use some of the .mc file extensions. No previous coding experience required. After you’ll create a testing World where you’ll be able to test the first feature of your add-on - a custom /function. We’ll also learn about transpiling Add-ons and other .mc file extensions.
Getting Started

Thanks for the issue. This relates to: #254
There are still some growing pains in getting the guide converted over, so thanks for letting us know!


chore(main): release 2.8.3

:robot: I have created a release beep boop
2.8.3 (2023-10-27)
Bug Fixes

install pinned cloud-init for only ubuntu 20.04 (#943) (465c7de)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/mesosphere/konvoy-image-builder/releases/tag/v2.8.3 :sunflower:


Change package.json "repository" field

Summary
Most NPM packages list the https:// version of their Github URL in their package.json repository field. This allows the NPM web interface to link back to the Github repo of the project. This project uses the git+ssh:// URL, which causes the NPM registry to not display a link back to the repo.
Each sub-package's package.json should also point directly to the package's subfolder (see @babel/core, below) so the link from the NPM registry goes directly to the package in question.
SVGR NPM page ("repository": "git@github.com:smooth-code/svgr.git"):

@babel/core NPM page ("repository": "https://github.com/babel/babel/tree/master/packages/babel-core"):

Hello @jkjustjoshing, thanks for this issue you are right!
PR welcome to fix it in all packages (I think jest-puppeteer has the same problem!)


Add TOTP

TOTP
Copy your time-based two factor verify code to clipboard.
By submitting this pull request I confirm I've read and complied with the below requirements 🖖
Requirements for your pull request

You have read and understood the Contribution Guidelines.
This pull request has a title in the format Add [Name of Plugin].

✅ Add Guid
❌ Update readme.md
❌ Adding Guid
❌ Added Guid

Your entry here should include a short description about the plugin. The first character should be uppercase and the description should end in a dot. It should be an objective description and not a tagline or marketing blurb.

✅ - [Guid](…) - Guid generator.
❌ - [Guid](…) - A Guid generator plugin for PowerToys Run.
❌ - [Guid](…)

The link text should be the Name of the plugin found in the plugin.json file. The URL should be the link to the GitHub repo, or a link to an anchor the readme.

✅ - [Guid](https://github.com/skttl/ptrun-guid) - …
❌ - [skttl.Guid](…) - …
❌ - [Guid](https://github.com/skttl/ptrun-guid/releases/download/0.1.0/skttl.Guid.zip) - …

Your entry should be added at the bottom of the appropriate category.

Nice plugin! Thanks for your contribution 🚀

Hi @KawaiiZapic
I just wanted to let you know that this list is now included in the main awesome list.
And that means that you can add a badge to your repo 😎


Implement History Web API

I think it would be nice to be able to traverse between views by going back/forward in history. Thoughts?

Fine by me as long as it doesn't fill browser history with every channel change. Also would work nicely for public servers

Fine by me as long as it doesn't fill browser history with every channel change.

That's sort of the point of it though. All web-based chat clients I've used does this, I like it.

Also would work nicely for public servers

Not sure I'm following?
Implementation demo available at http://pluto.redwill.se:9000/ (demo:demo login)

That's sort of the point of it though. All web-based chat clients I've used does this, I like it.

I meant browser history (not the buttons).

Not sure I'm following?

Links. http://example.com/irc/freenode.net/9999/#freenode or something like that.

I meant browser history (not the buttons).

Ah, no it should not. The history web API works against a session history and not a traditional "page" history.

Links. http://example.com/irc/freenode.net/9999/#freenode or something like that.

Ah, gotcha. #575 does not include URLs for states as of now, not sure how one would serialize the states. Would also require some changes to the routing mechanism on the backend unless URLs are hashed (yuck :P).


figure out the equation for giving to communities

A huge value in having community pages (#496) is in being able to give money to that community and then have it divvied up sensibly, automatically. What's going to be our formula for this?
In a sense this is a fund (#449) with an automated allocation. So what's the allocation in this case? Constraints:

one blanket rule for all communities
simple to comprehend
fair in the eyes of both "rock stars" and "yeomen"

How do we generate the list of people? How do we assign weights?
cc: @MikeFair @carsomyr

Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

Closing in light of #3127 .

Heh. Thanks @rohitpaulk. :-)


Better pip dependency detection

Hello,
We found that the pip detector returned incomplete dependencies or wrong versions under certain conditions. For instance,
numpy \
== \
1.19.2

is a legit requirements.txt, but CD finds the latest version 1.26.4.
Likewise, CD ignores the extras field like fastapi[all], and some syntax like -r other-requirements.txt and -c constraints.txt.
Given how the go and maven detectors work, would it be better to incorporate something like pip install -r requirements.txt --dry-run --ignore-installed --ignore-requires-python for pip detection?

Ah might be a duplicate of #629


Updated iOS/macOS quoickstarts with national cloud information

@oldalton : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@oldalton : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

#hold-off  (Providing time for Olga to respond to jason's comment)

@mstada to review from the Azure portal quickstart perspective. Do not merge yet.

@oldalton : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@oldalton : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Dealing with numerical integer feature

In my data set, I have integer features, such as week of year. I want to use it numerical and at the same time, it is integer. In LIME sampling, it generates float numbers for all numerical features (if I understand it correctly). Can I limit it to sample from existing integers?

Sorry, you'd have to write a custom explainer (you can copy TabularExplainer and change this)


Add bot: inspection: update-grayskull

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

@maresb, I think this would be a good idea, particularly with automerge on.

Agreed, thanks!


Input placeholder doesn't go above the real input (formerly 7601)

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
I am reporting the same problem as described in in #7601 -- which is the label doesn't move from the center of the input box to top edge when you start typing, and whatever you type is overlaid by the field label.  (see the 2nd and 3rd tax boxes in the picture below). The behavior is intermittent, and I'm not sure why it works sometimes and doesn't work others.
I tried changing themes as was suggested in #7601, but no impact.
Here's a picture:

Version info:
<EMAIL_ADDRESS>Angular CLI: 13.0.3
Node: 14.17.3
Package Manager: npm 6.14.13
OS: darwin x64
Angular: 13.0.2
... animations, cdk, common, compiler, core, forms, material
... platform-browser, platform-browser-dynamic, router
Package                         Version
@angular-devkit/architect       0.1300.3
@angular-devkit/build-angular   13.0.3
@angular-devkit/core            13.0.3
@angular-devkit/schematics      13.0.3
@angular/cli                    13.0.3
@angular/compiler-cli           13.0.1
@schematics/angular             13.0.3
rxjs                            7.4.0
typescript                      4.4.4
Here is the html
Reproduction
Here's the code:
<form [formGroup]="bindingAuthorForm" (submit)="submit()">

            <mat-form-field class="form-field" appearance="outline">
              <mat-label>Binding Name</mat-label>
              <input matInput formControlName="bindingName" required #binding_name>
              <mat-error *ngIf="bindingAuthorForm.controls['bindingName'].hasError('pattern')">
                This field is
                  mandatory.
              </mat-error>
              <mat-error>
                Lowercase letters, numbers and
                  underscore only.

              </mat-error>
            </mat-form-field>
            <mat-form-field class="form-field" appearance="outline">
              <mat-label>Version</mat-label>
              <input matInput formControlName="version" required #version_number autocomplete="nope" >
              <mat-error *ngIf="bindingAuthorForm.controls['version'].hasError('pattern')">
                Version must be Major.Minor.Patch style, e.g. '1.2.3'
              </mat-error>
            </mat-form-field>
            <mat-form-field class="form-field" appearance="outline">
              <mat-label>Author</mat-label>
              <input matInput formControlName="authorName" required autocomplete="nope" >
              <mat-error *ngIf="bindingAuthorForm.controls['authorName'].hasError('required')">
                Author Name is required.
              </mat-error>
            </mat-form-field>
            <mat-form-field class="form-field" appearance="outline">
              <mat-label>Short Description</mat-label>
              <textarea matInput placeHolder="Description" formControlName="plainText"></textarea>
              <mat-error *ngIf="bindingAuthorForm.controls['plainText'].hasError('maxlength')">
                The short description is limited to 140 characters.
              </mat-error>
              <mat-error *ngIf="bindingAuthorForm.controls['plainText'].hasError('badTags')">
                HTML tags, and '&'s aren't permitted here
              </mat-error>
            </mat-form-field>

              <app-template-text #template_text></app-template-text>

                <mat-error *ngIf="template_text.isError && template_text.touched">{{template_text.errorString}}
                </mat-error>

                Attributes <mat-icon>help
                  </mat-icon>

                Bindings <mat-icon>help</mat-icon>

{{errorMessages}}

        <mat-button-toggle-group class="toggle-group" formControlName="bindingType" #binding_type
          [(value)]="bindingTypestring">

          <mat-button-toggle value="Definitions">Definitions</mat-button-toggle>
          <mat-button-toggle value="Entitlements">Entitlements</mat-button-toggle>
          <mat-button-toggle value="Restrictions">Restrictions</mat-button-toggle>
          <mat-button-toggle value="Reps">Publisher Reps</mat-button-toggle>
          <mat-button-toggle value="Section">Section Header</mat-button-toggle>
          <mat-button-toggle value="Schedule">Schedule</mat-button-toggle>
          <mat-button-toggle value="Template">Template</mat-button-toggle>
          <mat-button-toggle value="Other">Other</mat-button-toggle>
        </mat-button-toggle-group>

          <button class="submit-button" [disabled]="formInvalid" mat-raised-button color="primary" type="submit">Post to
            Blockchain</button>
          <button class="cancel-button" mat-raised-button color="alert">Cancel</button>

    </form>

Expected Behavior
Label should move up to cell border.
Actual Behavior
Label remains in the center of the input.  Typed input overwrites the label.
Environment
Version info:
<EMAIL_ADDRESS>Angular CLI: 13.0.3
Node: 14.17.3
Package Manager: npm 6.14.13
OS: darwin x64
Angular: 13.0.2
... animations, cdk, common, compiler, core, forms, material
... platform-browser, platform-browser-dynamic, router
Package                         Version
@angular-devkit/architect       0.1300.3
@angular-devkit/build-angular   13.0.3
@angular-devkit/core            13.0.3
@angular-devkit/schematics      13.0.3
@angular/cli                    13.0.3
@angular/compiler-cli           13.0.1
@schematics/angular             13.0.3
rxjs                            7.4.0
typescript                      4.4.4

Please link a stackblitz reproduction
You can use this as a template:
https://stackblitz.com/run?file=src/app/form-field-overview-example.ts

Closing due to inactivity.


Almost completed assessment.

3 of 6 (-0.25 on Q1; -0.5 on Q3, Q4; -0.75 on Q5; -1 on Q6)
Not bad, TJ - you're pretty close on a couple of these answers. Take another look over this material and try again when you have a chance.


Add antares_launcher restart mode (for xpansion launches)

Add an option to run the xpansion restart mode.
This sub mode will need the user to choose an existing output (so #968 is needed).
Using the resume step (https://antares-xpansion.readthedocs.io/en/latest/user-guide/get-started/launching-optimization/#command-line-parameters) we can launch an xpansion study.

This needs the ability to retrieve a result (even on failure) and stop a ongoing xpansion launch.


ytview cannot work on Windows 10

Issue Label:

[ ] Bug
[x] New feature
[ ] Enhancement
[ ] New component

Description:
BASH
› ytview -c
Error: no supported video player installed (vlc, mpv or mplayer)
OS and OS version:

[ ] Mac
[ ] Linux 32 Bit
[ ] Linux 64 Bit
[ ] Windows 32 Bit
[x] Windows 64 Bit

OS Version:
Windows 10

It should be supported if you install vlc under the windows bash subsystem with sudo apt-get install vlc

Did the above fix work for you? @Anatoli4www

It is not that simple)))

1)https://sourceforge.net/projects/vcxsrv/
2)› echo "export DISPLAY=:0.0" >> ~/.zshrc
3)
> › ytview -s Family Guy Chicken Fight
> 1.      Fox Animation I family guy peter griffin fight chicken
> 2.      Family Guy- Peter and Chicken fight
> 3.      Family Guy Chicken Fight 4
> 4.      Family Guy - All Chicken Fights
> 5.      Homer Simpson vs Peter Griffin Chicken Fight
> 6.      Family Guy - Reverse Chicken Fight
> 7.      Family Guy Chicken Fight Redux
> 8.      Peter vs Chicken
> 9.      Epic Chick Fight (Live Action Chicken Fight)
> 10.     Family Guy - Chicken Fight Unreversed
> 11.     family guy- chicken fight 2
> 12.     | Family Guy | The first Chicken Fight
> 13.     Family Guy Chicken Fight Parody
> 14.     The giant chicken fight/family guy
> 15.     Family Guy - Peter vs The Giant Chicken
> 16.     Family Guy Chicken Fight 1 ( full HD )
> 17.     Family Guy - Reverse Chicken Fight
> 18.     Family Guy Chicken Fight #1
> Choose a video: 5

Does not start(

I don't really fully understand the first link? I cant say I have tested these a whole lot but I was told that almost all of these scripts have been tested under the official bash subsystem and nothing more. Can you try just running vlc and let me know if that opens vlc if not there is nothing I can do otherwise there might be a bug I can solve.

> › mplayer Desktop/Video_2.mp4
> MPlayer 1.2.1 (Debian), built with gcc-5.3.1 (C) 2000-2016 MPlayer Team
> mplayer: could not connect to socket
> mplayer: No such file or directory
> Failed to open LIRC support. You will not be able to use your remote control.
>
> Playing Desktop/Video_2.mp4.
> libavformat version 56.40.101 (external)
> libavformat file format detected.
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ff5ad2ded80]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
> [lavf] stream 0: video (h264), -vid 0
> [lavf] stream 1: audio (aac), -aid 0, -alang eng
> VIDEO:  [H264]  1920x1040  24bpp  15.000 fps  737.2 kbps (90.0 kbyte/s)
> Clip info:
>  major_brand: mp42
>  minor_version: 0
>  compatible_brands: isommp42
>  creation_time: 2015-03-13 19:04:48
>  artist: Павел Дмитриев
>  description:
>  title: сейф 2
> Load subtitles in Desktop/
> Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
> Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
> [vdpau] Error when calling vdp_device_create_x11: 1
> Xlib:  extension "XVideo" missing on display ":0.0".
> [VO_XV] Sorry, Xv not supported by this X11 version/driver
> [VO_XV] ******** Try with  -vo x11  or  -vo sdl  *********
> libGL error: No matching fbConfigs or visuals found
> libGL error: failed to load driver: swrast
> [gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> libavcodec version 56.60.100 (external)
> Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
> ==========================================================================
> ==========================================================================
> Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
> AUDIO: 44100 Hz, 2 ch, floatle, 125.6 kbit/4.45% (ratio: 15706->352800)
> Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
> ==========================================================================
> AO: [pulse] Init failed: Connection refused
> Failed to initialize audio driver 'pulse'
> [AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '0'
> [AO_ALSA] alsa-lib: conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
> [AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
> [AO_ALSA] alsa-lib: conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
> [AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
> [AO_ALSA] alsa-lib: conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
> [AO_ALSA] alsa-lib: conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
> [AO_ALSA] alsa-lib: pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
> [AO_ALSA] Playback open error: No such file or directory
> Failed to initialize audio driver 'alsa'
> [AO SDL] Samplerate: 44100Hz Channels: Stereo Format floatle
> [AO SDL] using aalib audio driver.
> [AO SDL] Unsupported audio format: 0x1d.
> [AO SDL] Unable to open audio: No available audio device
> Failed to initialize audio driver 'sdl:aalib'
> Could not open/initialize audio device -> no sound.
> Audio: no sound
> Starting playback...
> Movie-Aspect is 1.85:1 - prescaling to correct movie aspect.
> VO: [gl_nosw] 1920x1040 => 1920x1040 Planar YV12
> V:   1.9   0/  0 27% 64%  0.0% 0 0

Vlc does not start, there is a problem with the sound. Mplayer reports this, but runs ...)))

Huh im curious if there is some audio dependency for vlc that wasn't listed as a dependency when you ran sudo apt install vlc. Otherwise I am not really sure what i could do to resolve this issue

Can you try running sudo apt install alsa-base. Possibly it is just not installed but should already be.

Not an issue (at least not reported) with the official bash subsystem, which is the only supported way to run these scripts on windows so for now this issue is being closed.


Hoist devDeps with Lerna

Fixes #4362

BTW, I was having some issues with this locally. We'll see if Travis can get through it. It might be buggy since it's all new and beta and such.

🎉  Thanks, @timdorr! Was just sitting down to do this myself.

Darn, I can't get beta.35 to work for me locally. Here's what I get
$ npm i

> react-router-packages@ postinstall /Users/michael/Projects/react-router
> lerna bootstrap

Lerna v2.0.0-beta.35
Bootstrapping 4 packages
Preinstalling packages
Installing external dependencies
FileSystemUtilities.rimraf    ("./packages/react-router-dom/node_modules/babel-cli")
Command exited with status -2: /Users/michael/Projects/react-router/node_modules/lerna/node_modules/.bin/rimraf /Users/michael/Projects/react-router/packages/react-router-dom/node_modules/babel-cli
Errored while running BootstrapCommand.execute
Command exited with status -2: /Users/michael/Projects/react-router/node_modules/lerna/node_modules/.bin/rimraf /Users/michael/Projects/react-router/packages/react-router-dom/node_modules/babel-cli
Waiting for 2 child processes to exit. CTRL-C to exit immediately.

@timdorr Is that the issue you were seeing? Gonna roll back to lerna.32 and try to get tests passing.

Yep, I got a few variations of that same thing despite all the options I chose. I was going to open an issue with Lerna, unless you have already.


Implement StructuredClone polyfill in Angular applications

Hello, I was hoping to get some guidance on implementing this polyfill within an Angular application. I would love to get it available app-wide via polyfills.ts (or some other way).
That being said, importing the module within a specific file causes TS errors related to missing typings.
Do typings exist somewhere or perhaps I could help to create a d.ts for the structuredClone poly?
Could not find a declaration file for module '@ungap/structured-clone'. <EMAIL_ADDRESS>implicitly has an 'any' type.
  Try `npm i --save-dev @types/ungap__structured-clone` if it exists or add a new declaration (.d.ts) file containing `declare module '@ungap/structured-clone';`ts(7016)

typeos are here: https://github.com/ungap/structured-clone/blob/main/esm/index.js
to have this module as global you can:
import structuredClone from '@ungap/structured-clone';
globalThis.structuredClone = structuredClone;

the default export is already the global utility if present or already globally polyfilled.
If you file a PR that produces through a script the .d.ts file for at least the index I'd be more than happy, but in general I don't TS and specially here it brings absolutely nothing to the plate because it's basically T in to T out, whatever T is, except it's a copy of the original T.
Other utilities are not part of the standard polyfill, so those shouldn't be an issue neither.

@WebReflection
I declare the code in the angular polyfills.ts doing like described, but I'm running into this issue
ERROR Error: Uncaught (in promise): RangeError: Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
    at index.js:19:46
    ........
    ........

I have zero code to test there ... can't help until I know what causes that ...

I've created a new repository for testing, its mainly an empty angular project with the polyfill
https://github.com/mburger81/angular-structured-clone
In the last commit you can see mainly what I've done https://github.com/mburger81/angular-structured-clone/commit/4d7420bee8fc40efc3a9384a8a5f5dc7016fdf53
to run the project you just need to install packages and run command npx ng serve
open the app at http://localhost:4200 and In the console you'll see this issue
Uncaught RangeError: Maximum call stack size exceeded
    at index.js:19:46
    at index.js:19:46
    at index.js:19:46
    at index.js:19:46
    at index.js:19:46
    at index.js:19:46
    at index.js:19:46
    at index.js:19:46
    at index.js:19:46
    at index.js:19:46

is this the line that fails? if that's the case it looks like your bundling is doing dodgy stuff there ... otherwise, can you please provide the minimal amount of data that would cause that? this module is 100% test covered and tested against stuff that has been around for years, I am not sure what to look at with an Angular repository, sorry.

Uncaught RangeError: Maximum call stack size exceeded
    at index.js:19:46
    ...
    at index.js:19:46

I just got hit by the same error. In my case it came from upgrading Node 16 LTS to Node 18 LTS. structuredClone was added to Node in Node 17.
This suggestion (which I followed) was the culprit:
import structuredClone from '@ungap/structured-clone';
globalThis.structuredClone = structuredClone;

Removing the last line it works as expected. I suppose the polyfill check isn't 100 % solid or something. It ends up with infinite call recursion.
Clearly, I no longer need the polyfill since it's now natively supported, but I assume there might be cases where it would be preferable (and by definition of a polyfill?) for it to work in environments with and without a native implementation available.

Yeah, looking closer into it, it makes sense.
typeof structuredClone === "function" ?
  /* c8 ignore start */
  (any, options) => (
    options && ('json' in options || 'lossy' in options) ?
      deserialize(serialize(any, options)) : structuredClone(any)
  )

Since the check is done on-demand each time the function is called, and we now have reassigned the property on globalThis to call this function, it will just keep calling itself.
Either the suggestion above would need to be changed to:
import structuredClone from '@ungap/structured-clone';

if (typeof structuredClone !== "function") {
  globalThis.structuredClone = structuredClone;
}

or the implementation would need to store a module local reference to the native function and not rely on it to be available/intact on globalThis whenever the function is called. Something like:
const nativeStructuredClone = (globalThis.)structuredClone;

and check for its presence when the function is called:
typeof nativeStructuredClone === "function" ? nativeStructuredClone(any) : ...

there is nothing broken with this module or repository but maybe I've been to naive in suggesting this solution, however:

a module in ECMAScript is never evaluated twice ... I don't understand why you say you run this module twice so it causes recursion ... this is your bundler/build-step problem, not this module one
change the suggestion into this and call it a day?

import structuredClone from '@ungap/structured-clone';
if (!globalThis.structuredClone)
  globalThis.structuredClone = structuredClone;

this doesn't re-assign structuredClone to globalThis if not available or already patched, so that no recursion should ever happen... deal?