CLOUDSTACK-8766: Fix infinite scrolling pagination for zonal template…

… listing
Uses listViewDataProvider to implement pagination on listTemplates API
requests in the UI, when a template's zone tab is viewed.
(cherry picked from commit 95c76efc3944aab9a620559a026fe37e53d8f53d)
This from the other PR, for master branch.

What is the page size? can you attach a screenshot?

@karuturi the sharedFunctions.js defines a global pagesize (fixed to value 20)
See in the screenshot; the listTemplates call does not call the API with a page, pagesize - this causes the infinite scroll to flood the list every time to drag it if the number of zones exceed what could fit in that table view. This patch fixes that.

@karuturi this is the screenshot from chrome devtools with the UI fix, as you can see pagination is implemented

tested it and confirm the behaviour in the screenshots before and after the fix. :+1:

I've updated the PR to fix the same issue for listing isos and also addition code to de-dupe list iso and template results.

LGTM

LGTM


v0.19.0 Release

v0.19.0 Feb. 23, 2021
Enhancements

Added a GitHub Action for Python windows unit tests #1844
Added a GitHub Action for checking updated release notes #1849
Added a GitHub Action for Python lint checks #1837
Adjusted explain_prediction, explain_predictions and explain_predictions_best_worst to handle timeseries problems. #1818
Updated InvalidTargetDataCheck to check for mismatched indices in target and features #1816
Updated Woodwork structures returned from components to support Woodwork logical type overrides set by the user #1784
Updated estimators to keep track of input feature names during fit() #1794
Updated visualize_decision_tree to include feature names in output #1813
Added is_bounded_like_percentage property for objectives. If true, the calculate_percent_difference method will return the absolute difference rather than relative difference #1809
Added full error traceback to AutoMLSearch logger file #1840
Changed TargetEncoder to preserve custom indices in the data #1836
Refactored explain_predictions and explain_predictions_best_worst to only compute features once for all rows that need to be explained #1843
Added custom random undersampling sampler for classification #1857
Updated OutliersDataCheck implementation to calculate the probability of having no outliers #1855
Added Engines pipeline processing API #1838

Fixes
Changes

Modified calculate_percent_difference so that division by 0 is now inf rather than nan #1809
Removed text_columns parameter from LSA and TextFeaturizer components #1652
Added random_seed as an argument to our automl/pipeline/component API. Using random_state will raise a warning #1798
Added DataCheckError message in InvalidTargetDataCheck if input target is None and removed exception raised #1866

Documentation Changes
Testing Changes

Added back coverage for _get_feature_provenance in TextFeaturizer after text_columns was removed #1842
Pin graphviz version for windows builds #1847
Unpin graphviz version for windows builds #1851
.. warning::

Breaking Changes

Added a deprecation warning to explain_prediction. It will be deleted in the next release. #1860

@dsherry O deer...


Include emulators data properly

Fix a warning on ambiguous package distribution. (Installing with develop mode "-e" will not see the warning.)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 97.458%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
6556

Relevant Lines:
6727

💛  - Coveralls

Somehow this PR also fixes unit tests on macOS.

To suppress other warnings, we should turn to PR #1144, which I think is ready to be merged.

@hsinfan1996 thanks for this. #1144 is merged, and I can review this as soon as conflicts are resolved.

I was going to make this PR a fix to setup.py before we merge PR #1144. But it is still good to just fix the unit tests on macOS.

@damonge Thank you. This PR is ready for review. For the changes in pyproject.toml, I only move the item up to make it more clear.
Interestingly, CI on macOS now runs faster than on Ubuntu. (It was way slower.)


Tweak line wrappings in /contribute/style

Performed actions below in 3 files:

tweak long lines
remove redundant blank lines

content/en/docs/contribute/style/content-guide.md
content/en/docs/contribute/style/content-organization.md
content/en/docs/contribute/style/style-guide.md

/approve


The v1.0.0-beta.32 LinearProgress update didn't happen

The LinearProgress update (mode => variant) for the "determinate/indeterminate" props didn't happen it seems, as I have to use "mode" to get it working.
<LinearProgress variant="determinate" value={sumComplete/5*100} />
<LinearProgress mode="determinate" value={sumComplete/5*100} />

| Tech         | Version |
| Material-UI  |v1.0.0-beta.32|
| React        |16.2.0|
| browser      |Chrome|

@nickbae91 It does: bedb9f9b1d06ecd1cda760c9581b845bec5de71a, https://github.com/mui-org/material-ui/releases
Perhaps check your dependencies?

https://codesandbox.io/s/20j0lwkj3n


Fix Layout/EmptyLineAfterGuardClause offenses

Master build is broken after the merge of #6193 – because of new cop rules on master branch since that PR was opened.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[ ] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[ ] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run rake default or rake parallel. It executes all tests and RuboCop for itself, and generates the documentation.

@bbatsov CI is red for master branch. This PR should fix it.

Thanks for noticing and fixing this so quickly!


add Handong Global Univ.

add Handong Global University

@Yeggggi Thank you for your patience while waiting for a review and processing your request. Pull request merged. Please start applying for JetBrains educational subscription at https://www.jetbrains.com/shop/eform/students in an hour, to allow the changes to propagate through JetBrains systems.


Lab_02L04, New-AzWvdApplication requires friendly name input

Module: 2
Lab/Demo: Deploy and manage host pools and hosts by using PowerShell
Task: 6
Step: 3
The command New-AzWvdApplication returns error, complaining about empty friendly name. Need to add the -FriendlyName argument

updated


feature: Now generating base classes correctly, and passing instance members

|                Method |     Mean |    Error |   StdDev |     Gen 0 | Gen 1 | Gen 2 | Allocated |
|---------------------- |---------:|---------:|---------:|----------:|------:|------:|----------:|
| MultipleDirectoryCase | 737.3 ms | 13.78 ms | 12.22 ms | 1000.0000 |     - |     - |   4.23 MB |

So a total revamp of the nuget package input system. This is before we did the base class processing:
|                Method |     Mean |    Error |   StdDev |   Median | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---------------------- |---------:|---------:|---------:|---------:|------:|------:|------:|----------:|
| MultipleDirectoryCase | 976.6 ms | 58.94 ms | 167.2 ms | 887.9 ms |     - |     - |     - |   3.93 MB |

This was the last release after we turned on dependency inclusion
|                Method |    Mean |    Error |   StdDev |     Gen 0 |     Gen 1 |     Gen 2 | Allocated |
|---------------------- |--------:|---------:|---------:|----------:|----------:|----------:|----------:|
| MultipleDirectoryCase | 11.40 s | 0.2248 s | 0.5473 s | 8000.0000 | 4000.0000 | 2000.0000 |  39.82 MB |

Slightly more memory usage due to the fact we are using a tree based system now for getting the nodes.

So some of the major changes,
When looking up dependent assemblies check the parent's directory first, check for windows runtime and get the appropriate folder in those cases, and only check out nuget repository store at the very end. This is more likely to get our correct match. This is much closer to what the mono loader does.


Proxy build fails on Ubuntu

System
OS: Ubuntu
OS version: 16.04
Platform: x86
Kui version: v8.12.2/master
node version: v12.16.1
npm version: 6.13.4
Describe the bug
After building KUI on Ubuntu 16.04, I tried to create proxy docker image using the steps from https://github.com/IBM/kui/tree/master/packages/proxy#building-the-proxy. But I got the following error:
amit@amit-vm:~/work/kui/packages/proxy$ ./build.sh
staging directory: /home/amit/work/kui/packages/proxy/kui-proxy-tmp/kui
staging directory /home/amit/work/kui/packages/proxy/kui-proxy-tmp
no prescan override
tar copy to /home/amit/work/kui/packages/proxy/kui-proxy-tmp from /home/amit/work/kui/packages/proxy
nothing to do
/home/amit/work/kui/node_modules/.bin//kui-build-headless: line 147: cd: /home/amit/work/kui/packages/proxy/node_modules/@kui-shell/client: No such file or directory
Building headless dist to /home/amit/work/kui/packages/proxy/kui-proxy-tmp/kui
cp: cannot stat<EMAIL_ADDRESS>No such file or directory
cp: cannot stat 'kui/node_modules/@kui-shell/core/bin/*': No such file or directory
removed 1 package in 0.281s
mv: cannot move 'kui/prescan.json' to<EMAIL_ADDRESS>No such file or directory
find: ‘kui/node_modules/@kui-shell/!(test)’: No such file or directory
find: ‘kui/node_modules/@kui-shell/!(test)’: No such file or directory
Cleanup
cp: cannot stat<EMAIL_ADDRESS>No such file or directory

Steps to reproduce the behavior
git clone https://github.com/IBM/kui.git
cd kui
npm ci
npm run watch
export PATH=~/work/kui/node_modules/.bin/:$PATH
cd packages/proxy
export KUBE_VERSION=v1.19.0
npm install
./build.sh

Expected behavior
A docker image named kui-proxy should be created.
Please help me resolve this. Thanks in advance!

@myan9 @starpit any pointers? Am I missing something obvious?

Hello. We'll check this out and get back to you shortly!

Hi @amitsadaphule !
If your target is to serve up Kui via a combination nginx/kuiproxy docker image, you may use, from the top-level:
git clone https://github.com/IBM/kui.git
cd kui
npm ci
npx kui-build-webpack
npx kui-build-docker-with-proxy

When that is done, you should have a docker image kuishell/kui. To run this, try:
docker run --rm -p 9080:80 -e DEBUG=* kuishell/kui

Then hit, on your host: http://localhost:9080. The -e DEBUG=* flag to docker run is not necessary, and will emit lots of debug output, but you can use it to see the kuiproxy messages; this will help confirm that things are flowing.
It looks like there may be a missing image or two in the image, but it seems to be functional. If you want to test out Kubernetes access, you will need to work out injecting your KUBECONFIG into the container. In build-docker.sh, there is some stub logic in the function kubeconfig { ... }. It copies in your ~/.kube, but doesn't know how to copy in anything beyond that, at the moment.
I have a PR open to simplify this slightly: https://github.com/IBM/kui/pull/5729
With that PR, you won't need to bother with the explicit building of the webpack bundles, i.e. the npx kui-build-webpack step from above. This also then will let you rebuild the docker image without having to do a full webpack bundle rebuild every time. That PR also introduces more strict warnings about injecting your KUBECONFIG into the container.
We will look into why the "connected to your cloud" image is missing.

Some more architectural detail: the npx kui-build-proxy-with-docker will build a single docker image that serves up the static content (i.e. the index.html and the webpack bundles) via nginx; this nginx will in turn reverse proxy to a headless kui that is also running inside the same image.

Thanks @starpit for helping out and for the detailed info! I'll try this out.

OK, I was able to create and run the image with the steps which you've mentioned. I'll try to test out Kubernetes access too. Thanks a lot!

wow, great news. let us know how it goes!

Mounting local ~/.kube directory inside the container makes kubectl commands work. Command used:
docker run --rm -v /root/.kube:/root/.kube -p 9080:80 -e DEBUG=* kuishell/kui

Closing the issue.

thanks very much for the sharing the additional information. much appreciated!


gs: review chapter

This review focused on reordering information, dropping unsupported and irrelevant information, making steps platform agnostic, all targetting clarity and better understanding for a new user.
Signed-off-by: Vanessa Maegima<EMAIL_ADDRESS>Readiness

[ ] Merge (pending reviews)
[ ] Merge after date or event
[ ] Draft

Overview
Why merge this PR? What does it solve?
Checklist
Optional. Add a 'x' to steps taken.
You can fill this out after opening the PR. "Did I..."

[ ] Run spelling and grammar check, preferably with linter.
[ ] Avoid changing any header associated with a link/reference.
[ ] Step through instructions (or ask someone to do so).
[ ] Review for wordiness
[ ] Match tone and style of page/section.
[ ] Run make linkcheck.
[ ] View HTML in a browser to check rendering.
[ ] Use semantic newlines.
[ ] follow best practices for commits.

[ ] Descriptive title written in the imperative.
[ ] Include brief overview of QA steps taken.
[ ] Mention any related issues numbers.
[ ] End message with sign off/DCO line (-s, --signoff).
[ ] Sign commit with your gpg key (-S, --gpg-sign).
[ ] Squash commits if needed.

[ ] Request PR review by a technical writer and at least one peer.

Comments
Any thing else that a maintainer/reviewer should know.
This could include potential issues, rational for approach, etc.

Docs for f6ed85e6082ce188305a5f867486ba13296321a4 are browsable at: https://ci.foundries.io/projects/fio-docs/builds/1957/docs/artifacts/html/index.html

You have my okay to go ahead and merge this commit whenever you are ready.

Docs for 15c7086c05bc0e97b8117298db156a3d250ce60b are browsable at: https://ci.foundries.io/projects/fio-docs/builds/1962/docs/artifacts/html/index.html

This is now in main


Issue new release?

Hello. I'm looking to use this crate in a project of mine, but I'm compiling for the arm-eabi target and the 1.0.0 release uses a hard-coded xoshiro_config.gpr file which sets -march=native which isn't valid on arm-eabi. I see that this has been fixed on the master branch to use the config file generated by Alire instead. Could you please issue a new release to Alire so that these latest changes are available in the community index?

Hi @damaki,
Can you create a PR and bump it to version 2.0.0?


Add a test that measures stack size during rendering in a nested widget hierarchy

Spawned from https://github.com/flutter/flutter/issues/72167
We should add a test that would catch stack size growth in the rendering pipeline (within a tolerance?), to detect changes that may introduce higher stack overflow affinity in deeply nested widget trees.

current plan:
we should add a benchmark test that measure the stack size in byte while running a fairly complex app, i. e. Flutter Gallery
However, there doesn't seem to be an API to query such information, we may need dart support to retrieve these data.
I will keep investigating to see if i come up a patch to dart sdk to enable this.

current plan:
we should add a benchmark test that measure the stack size in byte while running a fairly complex app, i. e. Flutter Gallery
However, there doesn't seem to be an API to query such information, we may need dart support to retrieve these data.
I will keep investigating to see if i come up a patch to dart sdk to enable this.

talked the the dart team. They mentioned there is an API to calculate the stack size of the current thread
https://github.com/dart-lang/sdk/blob/0845ebaad8e2f4ec2d6c05a15ba4551300e44d65/runtime/vm/os_thread.h#L132
I am currently investigating whether we can access those API in dart:ui

dart:developer may be a more suitable place to put that than in dart:ui
@zanderso

dart:developer may be a more suitable place to put that than in dart:ui
@zanderso

I think grabbing the current stack size would be logically grouped with the memory related getters in ProcessInfo in dart:io: https://api.dart.dev/stable/2.10.5/dart-io/ProcessInfo-class.html

I think grabbing the current stack size would be logically grouped with the memory related getters in ProcessInfo in dart:io: https://api.dart.dev/stable/2.10.5/dart-io/ProcessInfo-class.html

current progress: I have found the way to calculate the stack size, it just a matter to put in to the right place (ProcessInfo) and writing the benchmark test using that api.
Should have something more concrete fairly soon

current progress: I have found the way to calculate the stack size, it just a matter to put in to the right place (ProcessInfo) and writing the benchmark test using that api.
Should have something more concrete fairly soon

change reverted

Can we remove the 'dependency:dart' label from this issue as there doesn't seem to be any actionable item from the Dart side.

benchmark test is not running because we don't have an arm64 device, we are using motog4 which is an arm device, I will update the test to be able to run on arm devices

current status, I don't have an arm device, and I ordered a moto g4 online. It ETA delivery is Feb 15th.


hidden size and kernel size

Thanks for your work.
I am thinking whether the hidden size and kernel size in your examples are optimal after you test with experiments? Or it depends on our task completely?
Thanks. :)

hey, thanks for the kind words.
The hidden size & kernel in the example are just chosen randomly. I've done no experiments to optimize them for any particular data set.
In the literature, you'll find that these sorts of hyper-parameter choices are often made empirically (i.e. choose some nice round numbers). You want to ensure your model has enough capacity to represent the data you're feeding in, so there are some reasonable lower bounds you can set on possible values.
That said, it's near impossible to determine what particular parameter combinations will lead to optimal performance a priori.

Got it.
Thanks for your explanations.


Add patches to fix Ubuntu 22.04 OVA and RHEL 8/9 QEMU/raw builds

This PR

Brings back this image-builder patch that was necessary for image-builder >= 0.1.31, but was removed when we moved back to v0.1.30. This change fixes Ubuntu 22.04 OVA builds
Adds this upstream image-builder fix as a patch to fix RHEL 8/0 QEMU/raw builds.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm

/approve

/cherrypick release-0.20


Any way to get it to work this way?

+1 on this.
Also examples such as: "dick1", "ofuck" are not detected.

To add to that, I tried using numbers and other types of combinations, but it didn't detect them either:
filter.isProfane('afuck') // returns false
filter.isProfane('fuck1') // returns false

I've added an answer to https://github.com/web-mech/badwords/issues/51

I've added an answer to #51

This works for back-to-back blacklisted words, but not if you concatenate characters / clean words along with the bad one(s).
Any ideas?

I've added an answer to #51

This works for back-to-back blacklisted words, but not if you concatenate characters / clean words along with the bad one(s).
Any ideas?

Can you give me an example?

I've added an answer to #51

This works for back-to-back blacklisted words, but not if you concatenate characters / clean words along with the bad one(s).
Any ideas?

Can you give me an example?

Cheers for the quick response!
I may have mis-implemented your solution, but an example would be 'f...face.' I realise that could just be added to the list but replacing face with 'o' for example still bypasses it for me.
Interestingly though, 'f...head' gets blocked, despite not being on the list.
However, if you chain several F-bombs, or a mix of listed words you'll get the desired result.
Thanks again

Cheers for the quick response!
I may have mis-implemented your solution, but an example would be 'f...face.' I realise that could just be added to the list but replacing 'face' with 'o' for example still bypasses it for me.
Interestingly though, 'f...head' gets blocked, despite not being on the list.
However, if you chain several F-bombs, or a mix of listed words you'll get the desired result.
Thanks again

My solution was to check on every key press, so I would never make it to the 'face' portion of 'f...face'. In my application I just throw a warning, then wipe out the 'f...' so they can never make it past it.
It sounds like you're potentially doing the check when editing ends or focus changes, is that right? To solve that I think we'd need to loop forward and backwards while dropping a character each time and check all character combinations in between. E.g. 'heyf...head' would need to eventually drop the first 3 characters as well as the last 4 to get the triggered word.

Cheers for the quick response!
I may have mis-implemented your solution, but an example would be 'f...face.' I realise that could just be added to the list but replacing 'face' with 'o' for example still bypasses it for me.
Interestingly though, 'f...head' gets blocked, despite not being on the list.
However, if you chain several F-bombs, or a mix of listed words you'll get the desired result.
Thanks again

My solution was to check on every key press, so I would never make it to the 'face' portion of 'f...face'. In my application I just throw a warning, then wipe out the 'f...' so they can never make it past it.
It sounds like you're potentially doing the check when editing ends or focus changes, is that right? To solve that I think we'd need to loop forward and backwards while dropping a character each time and check all character combinations in between. E.g. 'heyf...head' would need to eventually drop the first 3 characters as well as the last 4 to get the triggered word.

Yeah, that makes sense. Thanks for that.
It is checking every keystroke, but it doesn't disallow the user from continuing to type beyond detected profanity. It just displays error text under the input box when the filter has caught something.

Cheers for the quick response!
I may have mis-implemented your solution, but an example would be 'f...face.' I realise that could just be added to the list but replacing 'face' with 'o' for example still bypasses it for me.
Interestingly though, 'f...head' gets blocked, despite not being on the list.
However, if you chain several F-bombs, or a mix of listed words you'll get the desired result.
Thanks again

My solution was to check on every key press, so I would never make it to the 'face' portion of 'f...face'. In my application I just throw a warning, then wipe out the 'f...' so they can never make it past it.
It sounds like you're potentially doing the check when editing ends or focus changes, is that right? To solve that I think we'd need to loop forward and backwards while dropping a character each time and check all character combinations in between. E.g. 'heyf...head' would need to eventually drop the first 3 characters as well as the last 4 to get the triggered word.

Is this use case resolved? Where a string may be "testfuck" which is "false" when calling console.log( filter.isProfane("testfuck") === false )
Is it possible to use a  String('testfuck').indexOf('fuck') for each bad word in the list of bad words in the filter.clean(argument) implementation ?

This fixes your problem

isProfane(string) {
	const str_array = [string];
	for (let i = 0; i < string.length; i++) {
		str_array.push(string.substr(0, i));
		str_array.push(string.substr(i, string.length - 1));
	}

	return Object.getOwnPropertyNames(profane_word_list).some(lang => {
		return profane_word_list[lang].filter((word) => {
			const wordExp = new RegExp(`\\b${word.replace(/(\W)/g, '\\$1')}\\b`, 'gi');
			return str_array.some(str => wordExp.test(str));
		}).length > 0 || false;
	});
}

This fixes your problem, you make this \\b${word.replace(/(\W)/g, '\\$1')}\\b to this \\b(\\w*${word.replace(/(\W)/g, '\\$1')}\\w*)\\b.

notice, that some words in the json make the regex fail like shit for example

isProfane(string) {
    return this.list
      .filter((word) => {
        const wordExp = new RegExp(`\\b(\\w*${word.replace(/(\W)/g, '\\$1')}\\w*)\\b`, 'gi');
        return !this.exclude.includes(word.toLowerCase()) && wordExp.test(string);
      })
      .length > 0 || false;
  }

@bernardbaker important to consider the Scunthorpe problem when considering includes

@bernardbaker important to consider the Scunthorpe problem when considering includes

Currently using patch-package to solve the problem
diff --git a/node_modules/bad-words/lib/badwords.js b/node_modules/bad-words/lib/badwords.js
index 3990c41..15de96e 100644
--- a/node_modules/bad-words/lib/badwords.js
+++ b/node_modules/bad-words/lib/badwords.js
@@ -31,11 +31,11 @@ class Filter {
    */
   isProfane(string) {
     return this.list
-      .filter((word) => {
-        const wordExp = new RegExp(`\\b${word.replace(/(\W)/g, '\\$1')}\\b`, 'gi');
-        return !this.exclude.includes(word.toLowerCase()) && wordExp.test(string);
-      })
-      .length > 0 || false;
+        .filter((word) => {
+          const wordExp = new RegExp(`\\b(\\w*${word.replace(/(\W)/g, '\\$1')}\\w*)\\b`, 'gi');
+          return !this.exclude.includes(word.toLowerCase()) && wordExp.test(string);
+        })
+        .length > 0 || false;
   }

   /**


URL preview image for article page

Phase 1: Prepare an static image so that it shows on Discord / Twitter (Facebook can fetch images)
Phase 2: Dynamic preview https://g0v.hackmd.io/@cofacts/rd/%2Fgu_hAI6tTeaeBuNUgGpq-g

Hi, I'd like to work on this issue. Can you assign it to me, please?


Installation fixes

A few fixes I found necessary when creating my own test installation, and updated installation instructions to match.

I've edited instructions to reflect that, and restored the database seeder (just implementing fix for filler text length).

This however raises a new question re: UserDetailsSecretKey
The instructions need further editing to explain where to get this from

Rebased for good measure

UserDetailsSecredKey is the auth key in order to use the file on the trevs jcr cis webspace for the authenitificatin. Aquiring a key is currently a case of loging into the webspace and editing the relevelt file

Is it something that anyone can do, something people can request from you, or not possible for security reasons?


IA-1007 Display warning for restricted user

Follow up on IA-987 pr, This a proposal according to Martin suggestion to display a warning to the user when the org unit he can see are restricted.

Wholly open to suggestions  on how we can make it look nicer and how to improve the warning  and for a French translation. We can also replicate this in the OrgUnit page

I would use a orange snackbar for this, it makes it much more relevant on the page.

isn't it a bit to agressive? also it will be displayed floatting on top of the table at all time

This the default behaviour we are using everywhere. We can probably create one info snackbar too.
For me your solution is not clear enough, and if you scroll it will disappear

Ok i will try that

finally found the  in Material UI, I couldn't find it the first time, it was in the snackbar doc ... It make it look much nicer and simplify the code. So I tested the two version, as a warning on top and in a snackbar, personally I prefer on top but snackbar is ok too and I have  no strong preference so it's like you prefer.  Last commit is the one with snackbar.
https://user-images.githubusercontent.com/82500/150765267-8ee5e8a4-3aeb-4f19-80ea-539e6fa9fc78.mp4
https://user-images.githubusercontent.com/82500/150765264-ab05aec6-87d4-4924-ab04-6dc8c8ed5faa.mp4

As we are using Snackbars for other interaticons with the user, it can be a bit confusing to change the way you are displaying infos. Thanks for the examples, i would go for the snackbar version.

TODO: Add close button


[language] Fault injection

Adding few entry points for fault injections.
Tried on smoke test and the calls are excercised and produce
proper logs when running with ENABLE_FAILPOINTS.
However I cannot get cluster test to reliable pass (with errors
obviously but still succeeding), so there is no config yaml
change here.
I will keep trying different "actions" for "fail" but this
should be good to go in the meanwhile.

/land


Stripe Integration

Pricing page is now available but not fully complete. Details must be completed (Pan will write stuff out)
The buttons should link to Stripe integrations (ICEPrey currently looking at this (see Stripe thread in discord).
Once Stripe integrations done
a. Remove feature flag from settings page for the "Upgrade to Pro" button, which directs to pricing page.
b. Add pricing to navbar

More info in the google docs

lorem ipsum helping on this rn


You can use embed for this case:
customTag.twig
<{{ tagName|default('div') }}{% if className %} class="{{ className }}"{% endif %}{% if id %} id="{{ id }}"{% endif %}>
    {% block slot %}{% endblock %}
</{{ tagName|default('div') }}>

Usage:
{% embed 'customTag.twig' with {
    tagName: 'section',
    className: 'section section_general',
    id: 'section_798'
} %}
    {% block slot %}
        Hello, world!
    {% endblock %}
{% endembed %}

Live example https://twigfiddle.com/q1i58k

tried this way. but not working

Hmmm. I try this example in my project with last Twig.js and it works fine.
Which version of Twig.js do you use and can you publish your case to twigfiddle?

twig 1.* version. ok sharing my code with you

@toptalo working fine on twigfiddle :o Can't figure it out, why it doesn't work on my project

is your twig is 1.12.0?

yeah

hmmm. show me your code =)

https://twigfiddle.com/q1i58k/2 works fine. But on my project I'm getting this
"
"

    content ...

First line in quotes?

yes

http://take.ms/wRKzt how twigfiddle shows twig version 2.X?? twigjs latest version is 1.12.0 ( thinking )

Its on php Twig
Maybe some previous context can affect to result?

I've to check.

try to console.log sectionHtml before return.
In my test output was like
 <{{ tagName|default('div') }}{% if className is defined and className %} class="{{ className }}"{% endif %}{% if id is defined and id %} id="{{ id }}"{% endif %}>
    {% block slot %}{% endblock %}

I think it because content of #section-template is invalid HTML
try to use jQuery("#section-template").text();

jQuery("#section-template").text();only pick text. but in my section-template has html mark. It doesn't work for me :(

I think, If you will use script tag as template holder, then method .text() will return raw content as you expected


Simulator appears to crash on non-ASCII experiment name

A recent test revealed that the system crashed when a user used a non-ASCII character (an emoji) as name for an experiment. All subsequent experiments remained in the QUEUED state until I dumped the and restarted the Docker, so it looks like the simulator was down.

This should be fixed now with the introduction of the new simulator.


issue with resize handler

I had a problem when I try to resize an item, using the code in the examples I get this result:

when I log relevance when resizing it shows the new values correctly but then it logs the old value, so it sets the prev value back.
dragging items works great.

Hey ayala!
Please provide the source code so that I can help with it.
Anyway, I suggest looking at the documentation here:
https://samuel-arbibe.gitbook.io/dnd-timeline/documentation/timelinecontext#event-handlers
Please notice this part:

Do not try to calculate the item's updated relevance on your own. You should call the getRelevanceFromDragEvent or getRelevanceFromResizeEvent to get the updated relevance right before using it to update you own state.

Your resize handler code should look something like:
const onResizeEnd = useCallback((event: ResizeEndEvent) => {
  const updatedRelevance = event.active.data.current.getRelevanceFromResizeEvent(event);

  if (!updatedRelevance) return;

  const activeItemId = event.active.id;

  console.log(`Updated ${activeItemId}'s relevance: ${JSON.stringify(updatedRelevance)}`);

  // update your state
}, [...]


Upload stuck at 0 bytes

Hi, I am getting an issue where uploading start but it doesn't move from 0 bytes, here is what the console is printing:
On the front-end:
Start uploading {name: "aerial.mp4", size: 928498, uploadTo: ""}
 Streaming... sent 0 bytes.

On the backend:
Start uploading { name: 'aerial.mp4',
  size: 928498,
  uploadDir: 'C:\\Users\\jesus\\workspace\\projections.io\\socket-server\\temp\\aerial.mp4' }
0 / 928498 byte(s)
0 / 928498 byte(s)
0 / 928498 byte(s)
0 / 928498 byte(s)
0 / 928498 byte(s)
0 / 928498 byte(s)

My settings (everything is copy pasted from the example):
const uploader = new SocketIOFile(socket, {
    uploadDir: TEMP_DIR,
    accepts:['videp/mp4'],
    maxFileSize: 4194304,
    chunkSize: 10240,
    transmissionDelay: 0,
    overwrite: true
});

My package json:
{
  "name": "socket-server",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node index.js",
    "dev": "nodemon"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "express": "^4.15.4",
    "firebase-admin": "^5.2.1",
    "socket.io": "^2.0.3",
    "socket.io-file": "^2.0.12",
    "socket.io-file-client": "^2.0.12",
    "uuid": "^3.1.0"
  }
}

Any thoughts?

I just tested to make everything new from example codes and it works. I need more detail information to help your issue.
Could you tell me which browser and node version you were used and did you upload the file after ready event fired?
This issue was exists serveral months ago, might be duplicate of this: https://github.com/rico345100/socket.io-file/issues/3

You are right, this was a duplicate of that issue, it is important to notice that the server code has to run before the client can init an uploader instance, btw is there any way to send files to a client with this module? Thank you!

@jesusgp22 You mean that sending file from server to client? This module was designed for uploading binary data(like file) to remote server, not download from it.

@rico345100 I figured so, thank you for such a quick response.

@jesusgp22 No problem. Looks like I can close this now. If you have any question related about this, feel free to re-open this issue.
Oh, If you like this module, don't forget to give me a star :)


Fix Typo

LOL.  Good eye.  I seem to remember typing that and thinking, "nope, not even gonna fix it".  :)

Just noticed it as I was reading and thought it was an easy fix :) Cheers


announce 4.58

Still waiting for mac builds (delayed by homebrew changes); probably landing this tomorrow.


dbtcloud_job fails creating a job when is_active = false

Describe the bug
When creating a job with the is_active set to false, terraform fails with an error.
If the job is created with is_active = true, terraform apply runs successfully. Once the resource has been created, it can again be set to false is_active = false and terraform apply will successfully modify the resource. terraform destroy will work fine as well. Now that the resource has been destroyed, running terraform apply will again fail.
Error message
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to dbtcloud_job.job_main, provider "provider["registry.terraform.io/dbt-labs/dbtcloud"]" produced an unexpected new value: Root object was present, but
│ now absent.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Resource configuration

terraform {
  required_providers {
    dbtcloud = {
      source  = "dbt-labs/dbtcloud"
      version = "0.2.16"
    }
  }
}

provider "dbtcloud" {
  account_id = id
  token      = "token"
  host_url   = "https://emea.dbt.com/api"
}

resource "dbtcloud_job" "job_main" {
  environment_id = id
  execute_steps = [
    "dbt ls"
  ]
  generate_docs            = false
  is_active = false
  name                     = "main"
  target_name              = "dev"
  num_threads              = 32
  project_id               = project.id
  run_generate_sources     = false
  triggers = {
    "custom_branch_only" : false,
    "github_webhook" : false,
    "git_provider_webhook" : false,
    "schedule" : true
  }
  schedule_days = [0, 1, 2, 3, 4, 5, 6]
  schedule_type = "days_of_week"
}

Expected behavior
The job resource is created as inactive when is_active = false
Config (please complete the following information):
( the version can be retrieved running the command terraform providers )

dbt Cloud provider version = 0.2.16
dbt Cloud region = emea

What is the use case for setting is_active to false?
I am thinking that I might update every resource and delete this config. What it does is the same as the destroy, so there is no point in creating a job with is_active = false
If you want the job not to run, you will have to update the triggers


Decoding PNG images

Hi,
I was just trying in IRB your nice binding albeit I wasn't able to decode and process PNG images. I took a look at the source code and  I cound't find any references to PNG file format. I'm a correct? Are there any workarounds, since command line 'zbarimg' can handle those?
Thanks,
Luca

Hi @willglynn, was wondering if you had any insight into an issue I'm having.  I am using the Grim gem to strip a multi-page PDF into one PNG per page.  Then I am trying to read a barcode on each page using the process outlined above.  I am getting an error I've never seen before and did a little source diving into the gem code but can't figure out where max_value is being set.  I am attaching here a screenshot of the error I am getting as well as the PNG file I am trying to read.   Thanks!
Error:

PNG I am trying to read:

Source code: Where does $4 come from?

$4 is the fourth capture from that regex, P5 being the first. 255 is expected, since that corresponds to an 8-bit PGM, which encodes image data identically to zbar's Y800 format. What is the value in your blob?

@willglynn I got 65535.  Does that seem crazy?

That's a 16-bit image, which zbar doesn't support. Convert it to 8-bit before turning into a PGM.

This worked -- thanks @willglynn !


2.0 API makes the store depends on the DOM

After upgrading to the 2.0 API, the fact that there is an historyMiddleware that takes the history as an argument broke my tests in an unexpected way:
Invariant Violation: Browser history needs a DOM

I used to be able to initialise the store in my tests without any problem.
The workaround for now is this:
import { createHistory, createMemoryHistory } from 'history';
export default process.env.NODE_ENV === 'test' ? createMemoryHistory() : createHistory();

Overall, I think I like the new API but this is a bit awkward.

You still had to pass a history into the old API. I get this may be awkward with how you've structured, your code, but this comment has a possible way of handling it: https://github.com/rackt/react-router-redux/issues/199#issuecomment-172071740


promagent-agent loaded from the system class loader  FAILURE

Command Pass
mvn clean install
ERROR

[INFO] ------------------------------------------------------- [INFO]  T E S T S [INFO] ------------------------------------------------------- [INFO] Running io.promagent.agent.JarFilesTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] promagent framework 1.0-SNAPSHOT ................... SUCCESS [  0.434 s] [INFO] promagent-agent loaded from the system class loader  FAILURE [  7.030 s] [INFO] promagent-api API for implementing hooks ........... SKIPPED [INFO] promagent-internal classes shared across deployments SKIPPED [INFO] promagent.war ...................................... SKIPPED [INFO] promagent-maven-plugin 1.0-SNAPSHOT ................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.578 s [INFO] Finished at: 2018-08-09T18:34:46+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Java heap space -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
I am using JAVA8

This is weird. It seems that the build fails because it runs out of memory. I tried a few settings, and even with 32M heap space the build works fine (MAVEN_OPTS="-Xmx32m").
Could you try again? Maybe something else was running on your machine so that you actually ran out of memory.

Please tell me exactly which Java version, Maven version and OS you are using, so I can try to reproduce it. I am using Java 1.8.0_172 and Maven 3.5.4 on macOS.

I can reproduce the error on Windows. It seems to be related to the beta version of Junit5. As a quick workaround, try the following two changes in promagent-framework/pom.xml:

Update the Junit5 version: <junit5.version>5.0.0-RC2</junit5.version> -> <junit5.version>5.2.0</junit5.version>
Remove this dependency:

<dependency>
    <groupId>org.junit.platform</groupId>
    <artifactId>junit-platform-surefire-provider</artifactId>
    <version>${junit5.surefire.version}</version>
</dependency>

I didn't commit this change yet, because I want to make sure that this does not cause any problems with the docker tests on macOS or Linux. But it seems to fix the build issue on Windows.

As Instructed:

It seems you also added <scope>test</scope> in the plugin configuration (the highlighted line in your screen shot). This should be removed.

Thanks, Mate Problem solved.


Strange semantic hl bug, from recent update.

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.67.1
OS Version: windows 10 x64

Steps to Reproduce:

Use rust analyzer with semantic highlighting
Use code from the image below.

Strangely the semantic highlighting works, if you comment out the attribute.

Please set the cursor on a location with the wrong color and run the Developer: Inspect Editor Tokens and Scopes command. What does the hover show, compared with what it shows when the trigger line is commented out?

So, I have actually already done that, and it gives incorrect semantic tokens (but correct for the color shown), for example the inspect editor thinks the purple 'p' is a keyword, which it is not, and the green equals sign is a number, which is clearly not right.

To be clear, when the attribute (trigger line) is commented out, the inspect editor shows all correct semantic tokens.

Sounds like a bug in the extension then. Please open an issue on its repository and link to this one, then close here.


create cilium clusters failed: unknown tag 'cilium_pool_cidr'

create cilium cluster failed.
AnsibleError: template error while templating string: Encountered unknown tag 'cilium_pool_cidr

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: {% endif %}
failed: [node1] (item={'name': 'cilium', 'file': 'config.yml', 'type': 'cm'}) => {"ansible_loop_var": "item", "changed": false, "item": {"file": "config.yml", "name": "cilium", "type": "cm"}, "msg": "AnsibleError: template error while templating string: Encountered unknown tag 'cilium_pool_cidr'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.. String: ---\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: cilium-config\n  namespace: kube-system\ndata:\n  identity-allocation-mode: {{ cilium_identity_allocation_mode }}\n\n{% if cilium_identity_allocation_mode == \"kvstore\" %}\n  # This etcd-config contains the etcd endpoints of your cluster. If you use\n  # TLS please make sure you follow the tutorial in https://cilium.link/etcd-config\n  etcd-config: |-\n    ---\n    endpoints:\n{% for ip_addr in etcd_access_addresses.split(',') %}\n      - {{ ip_addr }}\n{% endfor %}\n\n    # In case you want to use TLS in etcd, uncomment the 'ca-file' line\n    # and create a kubernetes secret by following the tutorial in\n    # https://cilium.link/etcd-config\n    ca-file: \"{{ cilium_cert_dir }}/ca_cert.crt\"\n\n    # In case you want client to server authentication, uncomment the following\n    # lines and create a kubernetes secret by following the tutorial in\n    # https://cilium.link/etcd-config\n    key-file: \"{{ cilium_cert_dir }}/key.pem\"\n    cert-file: \"{{ cilium_cert_dir }}/cert.crt\"\n\n  # kvstore\n  # https://docs.cilium.io/en/latest/cmdref/kvstore/\n  kvstore: etcd\n  kvstore-opt: '{\"etcd.config\": \"/var/lib/etcd-config/etcd.config\"}'\n{% endif %}\n\n  # If you want metrics enabled in all of your Cilium agents, set the port for\n  # which the Cilium agents will have their metrics exposed.\n  # This option deprecates the \"prometheus-serve-addr\" in the\n  # \"cilium-metrics-config\" ConfigMap\n  # NOTE that this will open the port on ALL nodes where Cilium pods are\n  # scheduled.\n{% if cilium_enable_prometheus %}\n  prometheus-serve-addr: \":{{ cilium_agent_scrape_port }}\"\n  operator-prometheus-serve-addr: \":{{ cilium_operator_scrape_port }}\"\n  enable-metrics: \"true\"\n{% endif %}\n\n  # If you want to run cilium in debug mode change this value to true\n  debug: \"{{ cilium_debug }}\"\n  enable-ipv4: \"{{ cilium_enable_ipv4 }}\"\n  enable-ipv6: \"{{ cilium_enable_ipv6 }}\"\n  # If a serious issue occurs during Cilium startup, this\n  # invasive option may be set to true to remove all persistent\n  # state. Endpoints will not be restored using knowledge from a\n  # prior Cilium run, so they may receive new IP addresses upon\n  # restart. This also triggers clean-cilium-bpf-state.\n  clean-cilium-state: \"false\"\n  # If you want to clean cilium BPF state, set this to true;\n  # Removes all BPF maps from the filesystem. Upon restart,\n  # endpoints are restored with the same IP addresses, however\n  # any ongoing connections may be disrupted briefly.\n  # Loadbalancing decisions will be reset, so any ongoing\n  # connections via a service may be loadbalanced to a different\n  # backend after restart.\n  clean-cilium-bpf-state: \"false\"\n\n  # Users who wish to specify their own custom CNI configuration file must set\n  # custom-cni-conf to \"true\", otherwise Cilium may overwrite the configuration.\n  custom-cni-conf: \"false\"\n\n  # If you want cilium monitor to aggregate tracing for packets, set this level\n  # to \"low\", \"medium\", or \"maximum\". The higher the level, the less packets\n  # that will be seen in monitor output.\n  monitor-aggregation: \"{{ cilium_monitor_aggregation }}\"\n\n  # ct-global-max-entries-* specifies the maximum number of connections\n  # supported across all endpoints, split by protocol: tcp or other. One pair\n  # of maps uses these values for IPv4 connections, and another pair of maps\n  # use these values for IPv6 connections.\n  #\n  # If these values are modified, then during the next Cilium startup the\n  # tracking of ongoing connections may be disrupted. This may lead to brief\n  # policy drops or a change in loadbalancing decisions for a connection.\n  #\n  # For users upgrading from Cilium 1.2 or earlier, to minimize disruption\n  # during the upgrade process, comment out these options.\n  bpf-ct-global-tcp-max: \"524288\"\n  bpf-ct-global-any-max: \"262144\"\n\n  # Pre-allocation of map entries allows per-packet latency to be reduced, at\n  # the expense of up-front memory allocation for the entries in the maps. The\n  # default value below will minimize memory usage in the default installation;\n  # users who are sensitive to latency may consider setting this to \"true\".\n  #\n  # This option was introduced in Cilium 1.4. Cilium 1.3 and earlier ignore\n  # this option and behave as though it is set to \"true\".\n  #\n  # If this value is modified, then during the next Cilium startup the restore\n  # of existing endpoints and tracking of ongoing connections may be disrupted.\n  # This may lead to policy drops or a change in loadbalancing decisions for a\n  # connection for some time. Endpoints may need to be recreated to restore\n  # connectivity.\n  #\n  # If this option is set to \"false\" during an upgrade from 1.3 or earlier to\n  # 1.4 or later, then it may cause one-time disruptions during the upgrade.\n  preallocate-bpf-maps: \"{{cilium_preallocate_bpf_maps}}\"\n\n  # Regular expression matching compatible Istio sidecar istio-proxy\n  # container image names\n  sidecar-istio-proxy-image: \"cilium/istio_proxy\"\n\n  # Encapsulation mode for communication between nodes\n  # Possible values:\n  #   - disabled\n  #   - vxlan (default)\n  #   - geneve\n  tunnel: \"{{ cilium_tunnel_mode }}\"\n\n  # Enable Bandwidth Manager\n  # Cilium’s bandwidth manager supports the kubernetes.io/egress-bandwidth Pod annotation.\n  # Bandwidth enforcement currently does not work in combination with L7 Cilium Network Policies.\n  # In case they select the Pod at egress, then the bandwidth enforcement will be disabled for those Pods.\n  # Bandwidth Manager requires a v5.1.x or more recent Linux kernel.\n{% if cilium_enable_bandwidth_manager %}\n  enable-bandwidth-manager: \"true\"\n{% endif %}\n\n  # Name of the cluster. Only relevant when building a mesh of clusters.\n  cluster-name: \"{{ cilium_cluster_name }}\"\n\n  # Unique ID of the cluster. Must be unique across all conneted clusters and\n  # in the range of 1 and 255. Only relevant when building a mesh of clusters.\n  #cluster-id: 1\n{% if cilium_cluster_id is defined %}\n  cluster-id: \"{{ cilium_cluster_id }}\"\n{% endif %}\n\n# `wait-bpf-mount` is removed after v1.10.4\n# https://github.com/cilium/cilium/commit/d2217045cb3726a7f823174e086913b69b8090da\n{% if cilium_version | regex_replace('v') is version('1.10.4', '<') %}\n  # wait-bpf-mount makes init container wait until bpf filesystem is mounted\n  wait-bpf-mount: \"false\"\n{% endif %}\n\n  kube-proxy-replacement: \"{{ cilium_kube_proxy_replacement }}\"\n\n# `native-routing-cidr` is deprecated in 1.10, removed in 1.12.\n# Replaced by `ipv4-native-routing-cidr`\n# https://github.com/cilium/cilium/pull/16695\n{% if cilium_version | regex_replace('v') is version('1.12', '<') %}\n  native-routing-cidr: \"{{ cilium_native_routing_cidr }}\"\n{% else %}\n{% if cilium_native_routing_cidr | length %}\n  ipv4-native-routing-cidr: \"{{ cilium_native_routing_cidr }}\"\n{% endif %}\n{% if cilium_native_routing_cidr_ipv6 | length %}\n  ipv6-native-routing-cidr: \"{{ cilium_native_routing_cidr_ipv6 }}\"\n{% endif %}\n{% endif %}\n\n  auto-direct-node-routes: \"{{ cilium_auto_direct_node_routes }}\"\n\n  operator-api-serve-addr: \"{{ cilium_operator_api_serve_addr }}\"\n\n  # Hubble settings\n{% if cilium_enable_hubble %}\n  enable-hubble: \"true\"\n{% if cilium_enable_hubble_metrics %}\n  hubble-metrics-server: \":{{ cilium_hubble_scrape_port }}\"\n  hubble-metrics:\n{% for hubble_metrics_cycle in cilium_hubble_metrics %}\n    {{ hubble_metrics_cycle }}\n{% endfor %}\n{% endif %}\n  hubble-listen-address: \":4244\"\n{% if cilium_enable_hubble and cilium_hubble_install %}\n  hubble-disable-tls: \"{% if cilium_hubble_tls_generate %}false{% else %}true{% endif %}\"\n  hubble-tls-cert-file: /var/lib/cilium/tls/hubble/server.crt\n  hubble-tls-key-file: /var/lib/cilium/tls/hubble/server.key\n  hubble-tls-client-ca-files: /var/lib/cilium/tls/hubble/client-ca.crt\n{% endif %}\n{% endif %}\n\n  # IP Masquerade Agent\n  enable-ip-masq-agent: \"{{ cilium_ip_masq_agent_enable }}\"\n\n{% for key, value in cilium_config_extra_vars.items() %}\n  {{ key }}: \"{{ value }}\"\n{% endfor %}\n\n  # Enable transparent network encryption\n{% if cilium_encryption_enabled %}\n{% if cilium_encryption_type == \"ipsec\" %}\n  enable-ipsec: \"true\"\n  ipsec-key-file: /etc/ipsec/keys\n  encrypt-node: \"{{ cilium_ipsec_node_encryption }}\"\n{% endif %}\n\n{% if cilium_encryption_type == \"wireguard\" %}\n  enable-wireguard: \"true\"\n  enable-wireguard-userspace-fallback: \"{{ cilium_wireguard_userspace_fallback }}\"\n{% endif %}\n{% endif %}\n\n  # IPAM settings\n  ipam: \"{{ cilium_ipam_mode }}\"\n{% if cilium_ipam_mode == \"cluster-pool\" %}\n  cluster-pool-ipv4-cidr: {% cilium_pool_cidr | default(kube_pods_subnet) %}\n  cluster-pool-ipv4-mask-size: {% cilium_pool_mask_size %}\n{% if cilium_enable_ipv6 %}\n  cluster-pool-ipv6-cidr: {% cilium_pool_cidr_ipv6 | default(kube_pods_subnet_ipv6) %}\n  cluster-pool-ipv6-mask-size: {% cilium_pool_mask_size_ipv6 %}\n{% endif %}\n{% endif %}\n\n  agent-health-port: \"{{ cilium_agent_health_port }}\"\n\n{% if cilium_version | regex_replace('v') is version('1.11', '>=') and cilium_cgroup_host_root != '' %}\n  cgroup-root: \"{{ cilium_cgroup_host_root }}\"\n{% endif %}\n\n  bpf-map-dynamic-size-ratio: \"{{ cilium_bpf_map_dynamic_size_ratio }}\"\n\n  enable-ipv4-masquerade: \"{{ cilium_enable_ipv4_masquerade }}\"\n  enable-ipv6-masquerade: \"{{ cilium_enable_ipv6_masquerade }}\"\n\n  enable-bpf-masquerade: \"{{ cilium_enable_bpf_masquerade }}\"\n\n  enable-host-legacy-routing: \"{{ cilium_enable_host_legacy_routing }}\"\n\n  enable-remote-node-identity: \"{{ cilium_enable_remote_node_identity }}\"\n\n  enable-well-known-identities: \"{{ cilium_enable_well_known_identities }}\"\n\n  monitor-aggregation-flags: \"{{ cilium_monitor_aggregation_flags }}\"\n\n  enable-bpf-clock-probe: \"{{ cilium_enable_bpf_clock_probe }}\"\n\n  disable-cnp-status-updates: \"{{ cilium_disable_cnp_status_updates }}\"\n{% if cilium_ip_masq_agent_enable %}\n---\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: ip-masq-agent\n  namespace: kube-system\ndata:\n  config: |\n    nonMasqueradeCIDRs:\n{% for cidr in cilium_non_masquerade_cidrs %}\n      - {{ cidr }}\n{% endfor %}\n    masqLinkLocal: {{ cilium_masq_link_local|bool }}\n    resyncInterval: \"{{ cilium_ip_masq_resync_interval }}\"\n{% endif %}\n"}
changed: [node1] => (item={'name': 'cilium-operator', 'file': 'crb.yml', 'type': 'clusterrolebinding'})
changed: [node1] => (item={'name': 'cilium-operator', 'file': 'cr.yml', 'type': 'clusterrole'})
changed: [node1] => (item={'name': 'cilium', 'file': 'crb.yml', 'type': 'clusterrolebinding'})
changed: [node1] => (item={'name': 'cilium', 'file': 'cr.yml', 'type': 'clusterrole'})
changed: [node1] => (item={'name': 'cilium', 'file': 'ds.yml', 'type': 'ds'})
changed: [node1] => (item={'name': 'cilium-operator', 'file': 'deploy.yml', 'type': 'deploy'})
changed: [node1] => (item={'name': 'cilium-operator', 'file': 'sa.yml', 'type': 'sa'})
changed: [node1] => (item={'name': 'cilium', 'file': 'sa.yml', 'type': 'sa'})```

It has been fixed: https://github.com/kubernetes-sigs/kubespray/pull/9902


Use Oracle Java Naming Conventions & add ServerOperator and Permissible interfaces.

Matching pull request on impl: TridentSDK/Trident#40
The interfaces attempt to separate isOperator(), setOperator(boolean), hasPermission(Permission), setPermission(Permission, boolean) from the CommandIssuer interface.
The old PermissionHolder interface has been removed in favour of these interfaces.
Tameable has been updated to include the methods "setTamer(UUID)" and "setSitting(boolean)".
This means non-builder notation.
For example, "cancel(boolean)" becomes "setCancelled(boolean)", "name()" becomes "getName()" etc.

Apparently the build's failing because it can't upload the snapshot to the repo. Not my code dying. Phew.

TridentSDK is on code freeze. We are not accepting PR's until further notice. See https://tridentsdkwiki.atlassian.net/wiki/display/DEV/2015/07/15/Development+Status for more details.

ayy-okayy. This barely adds anything anyway. :3


Per scene light synchronization should be in the scene config

Synchronize Darkness (Current Scene) toggle
should be moved to the actual scene config here:

That way you can get rid of the (Current Scene) description and it's easy to change on a per scene basis

i found the need for this today


How to test equivalent of post form action behaviour

Apologies if this is super obvious. How would I test the following simple form like Livewire component which is used to store some data in the database from some input fields? Can I even test it this way, I am basically just trying to mimic how I would test a standard Laravel controller.
Livewire component (Working)
class Create extends Component
{
    public $title;
    public $description;
    public $role_id;

    public function createProject()
    {
        $attributes = $this->validate([
            'title' => 'required|min:10',
            'description' => 'required|min:10',
        ]);

        $project = Project::create($attributes);
        $project->users()->attach(auth()->user(), ['role_id' => $this->role_id]);

        $this->emit('renderProjects');
        $this->emit('closeModal');
    }

    public function render()
    {
        return view('livewire.projects.create');
    }
}

The following does not work. I can see my $project instance but I have no idea how to correctly do the equivalent of posting the new project data to the createProject method.
Test
    /** @test */
    public function a_user_can_create_a_project()
    {
        /** login auth user */
        $this->signIn();

        /** assert page exists */
        $this->get('/projects')->assertStatus(200);

        /** new project data */
        $data = [
            'title' => $this->faker->sentence,
            'description' => $this->faker->paragraph,
            'role_id' => 1,
        ];

        /**  livewire project create class */
        $project = Livewire::test(Create::class);

        /** PUSH DATA AND RUN METHOD??? */
        $project->createProject($data);

        /** assert project in database */
        $this->assertDatabaseHas('projects', [
            'title' => $data['title'],
            'description' => $data['description'],
        ]);

        /** assert project in page */
        $this->get('/projects')->assertSee($data['title']);
    }

What you are looking for is the "->set()" method.
I just added this to the "Testing" section of the docs: https://livewire-framework.com/docs/testing/

Now, you can set all the data you need, and THEN call the "createProject" method, and it will have the proper data. Make sense?

Hi Caleb. That works great, however is it possible to pass in an array instead of having to set each input individually? Thanks

Not currently, but I just added support, so it will be available in the next release (v0.1.1)


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-k8s-26-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2188

Questions ?
Please refer to the Backport tool documentation


Multi Join optimization clean up.

Added missing question 1 to Multi Join optimization and removed answers from the same.

You said to let you know if part of a question was missing and one the multi join questions so Iadded that and took out the answers.


Users list populated in index page when exists users

The users list in index page i spopulated when exists users, before always did appears the message "No users yet!"

@davidmoros could you please clarify what happened in here and why you raised this PR? Thanks!


Consider using tar instead of 7zip

It seems the action assumes that 7zip is present on the runner when running on Windows.
That is not always the case on self-hosted runners.
It will be more robust to use tar in the "GitForWindows" installation. Hence this would do the trick:
C:\PROGRA~1\Git\usr\bin\tar.exe -xvjf .\micromamba.tar.bz2 Library/bin/micromamba.exe

You can do alot in a single command with tar. My github actions scripts current looks like this:
      - name: install micromamba
        run: |
          Invoke-Webrequest -URI https://anaconda.org/conda-forge/micromamba/0.15.2/download/win-64/micromamba-0.15.2-0.tar.bz2 -OutFile ~\micromamba.tar.bz2
          C:\PROGRA~1\Git\usr\bin\tar.exe -xvjf ~/micromamba.tar.bz2 --strip-components 2 -C ~ Library/bin/micromamba.exe

      - name: Create Conda environment
        run: |
          ~\micromamba.exe shell hook -s powershell | Out-String | Invoke-Expression

          micromamba create -y -n _test --file Tests/test-environment.yml

The provision command saves me the trouble of calling the hook in every step, but it doesn't work with self-hosted agents since the init command can't be run multiple times without messing up.


Fix simulation of 'click' event in drag action

We should check that we simulate/skip simulation for click event in the end of drag action just like the browser does.
Take into account the following points:

prevention of previous events (mouseup, pointerup, touchup, etc)
if drag action is executed for really draggable elements or not
touch emulation specificity
different browsers specificity

Hello,
I'm hijacking this issue as I have a problem with the simulation of the click event.
The situation:
We are using a drag and drop solution (react-dnd-touch-backend) that does not use the native html5 api but instead has a custom handling for the drag and drop logic (supporting touch and click events). In our use case, the "preventDefault" is called on the "touchend" event, hence the browser (firefox/chrome) does not fire the click event (see  MDN).
But, the testcafe event simulation does fire the click event anyway.
Looking at src\client\automation\playback\drag\base.js -> _mouseup the issue seems to be that for
eventSimulator[this.upEvent](topElement, options)
the return value is ignored. What should probably happen is that if the return value is true, the click event at the end of the promise
if (topElement && element === topElement && !this.dragAndDropState.enabled)                             eventSimulator.click(topElement, options);
should be suppressed.
I'd appreciate feedback on it, I can also try to provide a pull request.

Hi @0815Strohhut
It's a very complex task. You need to emulate browser behavior for all officially supported browsers. You can try to make a PR with the implementation of this functionality.

Hi,
I added a pull request for the first step: Handling touch events in a better way when touchend is cancelled.
That solution works for controlling the touch events when using a custom drag logic, but does not help with mouse events yet - as the click event is fired even when the mousedown/mouseup is cancelled. Hence, I am currently investigating the behavior for click events and my findings so far:
Assume that you have a div containing two buttons (I created a fiddle to play around with it).
Case 1: Mousedown on button A, Mouseup on button A as well:
-> all browsers seem to raise a click event on button A
Case 2: Mousedown on button A, Mouseup on button B:
Depending on the browser, we see two different behaviors:

Raise the click event on the div containing the buttons (Chrome, Safari, Chromium Edge)
Do not raise a click event at all (legacy Edge, Firefox, IE)

According to the w3 spec:

Each implementation will determine the appropriate hysteresis tolerance, but in general SHOULD fire click and dblclick events when the event target of the associated mousedown and mouseup events is the same element with no mouseout or mouseleave events intervening, and SHOULD fire click and dblclick events on the nearest common inclusive ancestor when the associated mousedown and mouseup event targets are different.

There are some old and open bugs for firefox and chrome on this where the result is more or less "we keep it as is".
I haven't fully looked into the code yet, but assuming that we can determine the browser in the drag simulation, my idea would be:

For browsers in case 2.2, simulate click if and only if mousedown target = mouseup target
For browsers in case 2.1, find the first common ancestor (not sure what the spec means with "inclusive"?) and simulate the event on that ancestor

Hi @0815Strohhut
Thank you for the provided information and example. We will use them for check the fixed case.


How to fire close event manually

Hello, I need to fire the close event manually (in particular, when keyboard Enter button is pushed). How can I manually calls this event from a method?
Thanks a lot in advance!

Hi, i realised a codepen https://codepen.io/IneoO/pen/BevoVw?editors=1111.
It's a little tricky
You need to witch for enter button globaly and trigger toggleCheckboxes like it was a click event
  mounted() {
    const self = this;
    window.addEventListener('keypress', (e) => {
      if (e.keyCode === 13 && self.$refs.multiSelect.isOpen) {
        const elem = this.$refs.multiSelect.$el.firstChild;
        self.$refs.multiSelect.toggleCheckboxes({ target: elem });
      }
    });
  },

Thanks, I'll try ASAP.


[FEATURE] Allow disconnect of existing interceptors

Description
For some interceptors anonymous functions are used as callbacks to the intercept function. The problem with this approach is, that it's impossible to disconnect them afterwards, as the disconnect function (see here) expects the callback function used as a second argument and there is no possibility to get the reference of the anonymous function used in intercept.
Example for this usecase are the notifications registered in notifications.js.
Right now it's impossible to disconnect for example the add-to-cart notification which should definitely be possible.
A good approach could be to use named functions for the interceptor callbacks and export them. Like this one could import them for example in another plugin and disconnect single interceptor-functions.
Acceptance criteria

[ ] it is possible to disconnect single interceptors for example in another nuxt plugin

Great! I agree we need to provide a more extensible API of useInterceptor composable... unfortunately when it comes to comparing anonymous function it does .toString on the method so practically impossible to find and disable such function.

I think this can be closed now since the code was merged :)

I think this can be closed now since the code was merged :)

you are right ;) in further PRs, please add the "closes: #xxx" sentence in the comment, and will be closed after the merge atumatically :+1:

I know, in all other PRs I've done it, apparently I forgot in this one.


Not working

IT DOESN'T WORK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

ikr

Have you tried this fix?
Also, kind reminder: It doesn't quite help to just put "it doesn't work" in a GitHub repo. Try adding some basic information like the OS you're working with, and the browser you're working with. Helps a lot when it comes to resolving issues.

Duplicate of #17.


No rendering mode

Description
No Rendering Mode
No Rendering Mode is a 2D map visualization tool for vehicles, traffic lights, speed limits, and more of a selected town map. Some features of this tool are:

Map mode: Users can see the entire map of a town and all the vehicles, traffic signals and roads information and navigate through it.
Hero mode: Users can visualize a car that is being controlled from the manual_control.py script and its vehicles and traffic signals around a specific radius.
HUD: Information about the hero vehicle and the town are displayed.

Fixes #1161.
Where has this been tested?

Platform(s): Ubuntu 16.04.5 LTS
Python version(s): 2.7.12 and 3.5.2
Unreal Engine version(s): -

Possible Drawbacks

Only during the zooming in and out user interaction in the map and hero mode, the framerate might drop, but after interaction finishes, the framerate is recovered.

This change is

@manishthani  - Is it possible to get the exact Unreal Map coordinates through mouse click on this 2D Map?

Hi @YDSh510 ,
Right now, that feature is not supported in the current version of no_rendering_mode.py, but would be very useful to add it at some time! Thanks for your feedback :)


[oauth2] better implementation of Token Introspection RFC 7662

Currently we perform token introspection via the following request :

Request	POST /oauth/check_token
Request Body	token=7ad8f410-d9d4-4106-b8c2-13cc48c0269d
Request Headers Authorization: Basic dGVzdDp0ZXN0 => stands for Base64.encode(client_id:client_secret)
Content-Type  application/x-www-form-encoded
Response Codes  200 OK
Response Body   ::
                {
				    "exp":<PHONE_NUMBER>,
				    "user_name": "userTest",
				    "scope": [
				        "read",
				        "write"
				    ],
				    "authorities": [
				        "ROLE_USER"
				    ],
				    "client_id": "test"
				}

And we handle invalid tokens with 401 HTTP Response Status.
We must follow the RFC 7662 and expose the /introspect endpoint.

Closed by Gravitee.io AM 2.x release


[Event Request] Codeunit 12 Gen. Jnl.-Post Line - OnBeforeCheckBlock

Hi, would it be possible to get an event OnBeforeCheckBlock in Codeunit 12 Gen. Jnl.-Post Line, like this

?
Thanks

Is it ok to use existing event OnBeforeCheckBlockedCust for Cust.CheckBlockedCustOnJnls function?


HLS/TS multi-audio A/V sync

Have you read the FAQ and checked for duplicate open issues?
Yes
What link can we use to reproduce this?
https://shaka-player-demo.appspot.com/demo/#audiolang=es-ES;textlang=es-ES;uilang=es-ES;panel=CUSTOM CONTENT;build=uncompiled
https://shaka-player-demo.appspot.com/demo/#audiolang=es-ES;textlang=es-ES;uilang=es-ES;asset=https://directes-test.ccma.cat/live-origin/tv3-hls/master.m3u8;panel=CUSTOM CONTENT;build=uncompiled
What version of Shaka Player are you using?
v4.2.2-uncompiled
What browser and OS are you using?
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
What did you do?
We don´t have added any changes on our side. We use the same Encoder version.
Since you have added to your v4 releases the commit "https://github.com/shaka-project/shaka-player/commit/36d0b5484fad68dc1d640fbddf2fae3e1eb7169b" there is an A/V sync error playing an HLS/TS Multi-audio Livestream through Shaka-Player v4.X.X. If you try with older versions, this error does not appears.
What did you expect to happen?
Shaka-player should be able to A/V sync these type of HLS/TS Live Streams like others players do.
What actually happened?
An a clear A/V sync error.

Thank you for the report.  We'll look into it!

Possible duplicate of #4589

Hi! Is there any update on this issue?
Regarding your last comment @joeyparrish, we do not think this is exactly a duplicate of that issue, because in our case there is no need of any ad break, the issue is always there. You can see we are emitting an HLS stream correctly formed in this URL, and the desynchronization can be seen in any version of shaka player that includes the commit 36d0b54.
You can check it directy here.

For whatever reason, it looks like some of the changes from https://github.com/shaka-project/shaka-player/commit/89409cee3eaeb6764dbc191b7408bf45eecdced3 (the PR that should be responsible for A/V sync after https://github.com/shaka-project/shaka-player/commit/36d0b5484fad68dc1d640fbddf2fae3e1eb7169b) were undone. I believe there must have been a problem when merging with https://github.com/shaka-project/shaka-player/commit/47fa3093e1462d0bcca87238dc4886b9e2c1f8f4, which also changes the logic behind appending buffers.
Because of that, we read EXT-X-PROGRAM-DATE-TIME from the manifest and store it internally, but never actually use it for anything besides logs.

Okay, I think I was wrong in my previous statement. I had forgotten about https://github.com/shaka-project/shaka-player/commit/314a987ecf85b47cc8a6cef08f390ef817e11c49, which changed how EXT-X-PROGRAM-DATE-TIME was handled, so I had been looking in the wrong part of the code.
I did a git bisect, and I think the actual problem is https://github.com/shaka-project/shaka-player/pull/4338.
I did a few manual test runs, where I downgraded mux.js to v6.1.0 and looked for A/V sync issues. I don't... think I am seeing the issues anymore with mux.js downgraded, though I will admit that I am not that great at telling if someone's mouth matches up to the sound of their voice when they're speaking a language I don't.
That's where I'll have to sign off on this for now. I'll be going on break after today.

It's time-consuming to bisect this issue, because ad breaks tend not to have visible speech, and use voiceovers or on-screen titles instead.  (Presumably because these are easier to localize and run across regions.)

And some programs are dubbed foreign TV shows. :cry:
I'm frequently unable to accurately judge lip sync on this content.  But what I've seen so far is that I can't tell any difference between any combination of main, v4.0.0, mux.js v5.14, and mux.js v6.2.  All appear off, but only very slightly (sub-second, can't judge how far).
So I'm analyzing the segments for now instead.  I'm checking to see if the contents of the TS segments agree with the metadata in the HLS playlists.
Playlists all state that segments are exactly 6 seconds long, and PROGRAM-DATE-TIME is specified to the millisecond, but always ends with .000.

Presentation timestamps in the media do not agree with PROGRAM-DATE-TIME metadata.
For example:
bitrate_3.m3u8:
#EXTM3U
#EXT-X-TARGETDURATION:6
#EXT-X-VERSION:4
#EXT-X-MEDIA-SEQUENCE:278479923
#EXT-X-PROGRAM-DATE-TIME:2022-12-12T19:12:17.000+0000
#EXTINF:6,
0/br3/221117115102/92827/geo2-br3_278479923.ts

Actual PTS:<PHONE_NUMBER>
bitrate_7.m3u8:
#EXTM3U
#EXT-X-TARGETDURATION:6
#EXT-X-VERSION:4
#EXT-X-MEDIA-SEQUENCE:278479924
#EXT-X-PROGRAM-DATE-TIME:2022-12-12T19:12:22.000+0000
#EXTINF:6,
0/br7/221117115102/92827/geo2-br7_278479924.ts

Actual PTS:<PHONE_NUMBER>
The PROGRAM-DATE-TIME metadata says these should be played at 5s apart.  However, the timestamps are 4.58133 seconds apart.  This would suggest desync of about 419 ms, which is roughly consistent with what I observed in the native-Catalan programs I was able to observe this morning.
7803561136 -<PHONE_NUMBER> = 412320
412320 / 90k = 4.58133
As far as I can tell, inaccuracy in the playlist's PROGRAM-DATE-TIME is to blame for this content being out of sync.
The reason v3 played this content is because we used a much higher-latency startup process to extract timestamps from media instead of MSE sequence mode, and we used that extracted timestamp information instead of PROGRAM-DATE-TIME to sync the content.
@rauldelperal, can you confirm my findings?
Lowering priority, tentatively marking this as bad content.  I will prioritize #4589 now (previously suspected of being a duplicate), in case there is a separate AV sync issue there.


--interactive does not clean cache signatures

This issue was originally created at: 2010-04-05 15:45:32.
This issue was reported by: bgagnon.

bgagnon said at 2010-04-05 15:45:33

I am getting weird behavior with CacheDir and interactive mode. Consider this:
# SConstruct

SetOption('implicit_cache', True)
CacheDir('/tmp/sconscache')
Program('foo', 'main.cc')

/* main.cc */

#include "main.h"
int main(int, char**) {
  foo x;
  return 0;
}

/* main.h */

struct foo {
  int a;
};

Initial build:
rm -rf /tmp/sconscache
rm -f .sconsign.dlite
scons -Q .
>> g++ -o main.o -c main.cc
>> g++ -o foo main.o

Enter interactive mode:
scons -Q --interactive
scons>>> b .
scons: `.' is up to date.

Open another shell, modify main.h:
/* main.h */

struct foo {
   int a;
   int b;
};

Build again:
scons>>> b .
g++ -o main.o -c main.cc

Modify main.h again:
/* main.h */

struct foo {
  int a;
  int b;
  int c;
};

Build again:
scons>> b .
Retrieved `main.o' from cache

Which is wrong, because main.o was never built with that content of main.h.
As an added proof, modify main.h again:
/* main.h */

 struct foo {
    syntax_error(
 };

Then build:
scons>>> b .
Retrieved `main.o' from cache

The build should have failed at this point, since no cache hit is possible. My conclusion is that main.o was correctly identified as being out of date, but the cache signature it used was not updated/cleaned properly.

gregnoel said at 2010-04-30 17:37:01

Bug party triage.

Are there any updates on this issue?
Thanks!

@benkwa - Any updates would be above.. so if you don't see any, then likely there aren't any updates. If you want to ping the community as a whole to cajole/encourage/pay someone to work on it, then I suggest shooting an email to the scons users mailing list.
That would be more effective as there are way more subscribers to the mailing list than there are to this bug and/or all scons bugs.

I tried this, it works as noted if you don't leave scons, while if you do leave scons if behaves as expected (that is, rebuilds again).

There's logic in interactive to clear some things,
        # Clean up so that we can perform the next build correctly.

Perhaps missing logic relating to caching?


Error installing snvphyl-tools using conda

Hi, I ran this command: conda install snvphyl-tools
I received the following error:
Collecting package metadata: done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:

snvphyl-tools

Current channels:

https://conda.anaconda.org/conda-forge/osx-64
https://conda.anaconda.org/conda-forge/noarch
https://conda.anaconda.org/bioconda/osx-64
https://conda.anaconda.org/bioconda/noarch
https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/osx-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org

and use the search bar at the top of the page.
Did I do anything wrong? Any help is appreciated. Thank you!

Hello @PHemarajata you will have to use the bioconda channel, either adding it to your default channels or running the install like:
conda install -c bioconda snvphyl-tools

Just to add you likely want to follow the installation instructions for bioconda (https://bioconda.github.io/user/install.html#set-up-channels). Just adding the bioconda channel might work, but some bioconda package dependencies are located in other channels.

Hi @apetkau I tried your command and still got the same error. I'm running this on MacOS Catalina.
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:

snvphyl-tools

Current channels:

https://conda.anaconda.org/bioconda/osx-64
https://conda.anaconda.org/bioconda/noarch
https://conda.anaconda.org/conda-forge/osx-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org

and use the search bar at the top of the page.

Hello @PHemarajata. Currently the snvphyl-tools conda package is only available for Linux (you can see the available packages here https://anaconda.org/bioconda/snvphyl-tools/files). So, you will not be able to install on MacOS.
I created another issue #12  but we won't be able to work on this at the current moment.


use non-persistent background to save memory

did you test it? i remember removing it and it causing issues, and it's only in there because it resolved some issues. perhaps you can tell me more about why it'll save memory for visbug, and we can get closer to the root of the memory usage?

closing! seems stale. feel free to reopen if you like 👍
thanks for chatting it out


Custom levitate action for is-compatible

Adds a github action to be used in third party repositories.
Note: I'll update this PR to remove the hardcoded branch once approved.

Levitate is-compatible report:
🔍 Resolving<EMAIL_ADDRESS>🔍 Resolving<EMAIL_ADDRESS>🔍 Resolving<EMAIL_ADDRESS>🔍 Resolving<EMAIL_ADDRESS>🔬 Checking compatibility between ./src/bin.ts and<EMAIL_ADDRESS>
Skipping package @grafana/data  because it is not used in the project or not installed locally.
did you forget to run yarn install or npm install?

🔬 Checking compatibility between ./src/bin.ts and<EMAIL_ADDRESS>
Skipping package @grafana/ui  because it is not used in the project or not installed locally.
did you forget to run yarn install or npm install?

🔬 Checking compatibility between ./src/bin.ts and<EMAIL_ADDRESS>
Skipping package @grafana/runtime  because it is not used in the project or not installed locally.
did you forget to run yarn install or npm install?

🔬 Checking compatibility between ./src/bin.ts and<EMAIL_ADDRESS>
Skipping package @grafana/schema  because it is not used in the project or not installed locally.
did you forget to run yarn install or npm install?

✅ ./src/bin.ts appears to be compatible with @grafana/data,@grafana/ui,@grafana/runtime,@grafana/schema

What do you think about the following formatting? I basically just added some line breaks and two emojis to make it more readable.

@mckn I'll do a separate PR for that one. This action will take whatever output levitate gives. I also want to reduce the noise for non-installed pacakges because not all projects will use all of them and it can be too noisy

@mckn I'll do a separate PR for that one. This action will take whatever output levitate gives. I also want to reduce the noise for non-installed pacakges because not all projects will use all of them and it can be too noisy

Yeah, but I assume that we are detecting what packages are installed and just checking those? We are not running against all our packages every time regardless if they are installed or not. Right?


1110 dump changes

This contains the necessary 1110 dump changed split into different commits.
Tested fine with dump team.
Signed-off-by: Pavithra Barithaya<EMAIL_ADDRESS>

There is nothing in here that is downstream only, can you please create an upstream commit with the same changes.

Yes, I will be creating upstream commits for the same.

Please change the title from "1110 dump changes" to something like "pldm: Dump support in 1110"
Please add some generic description in commit message. In testing field, mention about the test cases tried for this commit.

done


[zh] Resync storage-classes.md

Resync content/zh-cn/docs/concepts/storage/storage-classes.md with en page.
/hold until #39318

/unhold

/lgtm
/approve


Fix form select not sending changes on Submit

Signed-off-by: Luis Enriquez<EMAIL_ADDRESS>What this PR does / why we need it:
Fix problem with select input form sending empty information to the server
Which issue(s) this PR fixes

Fixes #2623

Special notes for your reviewer:
Release note:
release-note

Please add a changelog entry for this since it directly fixes a bug.

@wwitzel3 Thanks! I forgot


Reproduce inductive results using pykeen code

Hello,
can you spot any obvious reasons why I cannot reproduce your numbers for e.g. the fb15k-237_v1 inductive set, with the pykeen code (See below). Any help would be appreciated! (Most of the code is from here https://pykeen.readthedocs.io/en/stable/tutorial/inductive_lp.html#full-inductive-lp-example, however some parameters were adapted, num epochs, lr, gnn_encoder, etc. )
With this code I can only achieve a hits@10 of about 0.7
Thanks
from pykeen.datasets.inductive.ilp_teru import InductiveFB15k237
from pykeen.models.inductive import InductiveNodePieceGNN
from pykeen.training import SLCWATrainingLoop
from pykeen.evaluation.rank_based_evaluator import SampledRankBasedEvaluator
from pykeen.stoppers import EarlyStopper
from torch import nn
from pykeen.nn.representation import CompGCNLayer
from torch.optim import Adam
from pykeen.losses import BCEWithLogitsLoss, NSSALoss

epochs = 2500

dataset = InductiveFB15k237(version="v1", create_inverse_triples=True)
model = InductiveNodePieceGNN(
    triples_factory=dataset.transductive_training,  # training factory, will be also used for a GNN
    inference_factory=dataset.inductive_inference,  # inference factory, will be used for a GNN
    num_tokens=12,  # length of a node hash - how many unique relations per node will be used
    aggregation="mlp",
    loss=NSSALoss(margin=25),  # dummy loss
    random_seed=42,
    gnn_encoder= nn.ModuleList([
        CompGCNLayer(input_dim=100, output_dim=100, dropout=0.1, activation="relu", attention_heads = 1, edge_weighting="AttentionEdgeWeighting") for _ in range(3)
    ]),
    embedding_dim=100,
    interaction="rotate"
)

import wandb
from pykeen.trackers import WANDBResultTracker
project_name = "evals"
tracker = WANDBResultTracker(project=project_name, group=None, settings=wandb.Settings(start_method='fork'))
tracker.start_run()
tracker.wandb.config.update({"test": "inductive_nodepiece_gnn"})

optimizer = Adam(params=model.parameters(), lr=0.0001)

training_loop = SLCWATrainingLoop(
    triples_factory=dataset.transductive_training,  # training triples
    model=model,
    optimizer=optimizer,
    negative_sampler_kwargs=dict(num_negs_per_pos=32),
    mode="training",   # necessary to specify for the inductive mode - training has its own set of nodes
    result_tracker=tracker,
    automatic_memory_optimization=False
)

# Validation and Test evaluators use a restricted protocol ranking against 50 random negatives
valid_evaluator = SampledRankBasedEvaluator(
    mode="validation",   # necessary to specify for the inductive mode - this will use inference nodes
    evaluation_factory=dataset.inductive_validation,  # validation triples to predict
    additional_filter_triples=dataset.inductive_inference.mapped_triples,   # filter out true inference triples
)

# According to the original code
# https://github.com/kkteru/grail/blob/2a3dffa719518e7e6250e355a2fb37cd932de91e/test_ranking.py#L526-L529
# test filtering uses only the inductive_inference split and does not include inductive_validation triples
# If you use the full RankBasedEvaluator, both inductive_inference and inductive_validation triples
# must be added to the additional_filter_triples
test_evaluator = SampledRankBasedEvaluator(
    mode="testing",   # necessary to specify for the inductive mode - this will use inference nodes
    evaluation_factory=dataset.inductive_testing,  # test triples to predict
    additional_filter_triples=dataset.inductive_inference.mapped_triples,   # filter out true inference triples
)

early_stopper = EarlyStopper(
    model=model,
    training_triples_factory=dataset.inductive_inference,
    evaluation_triples_factory=dataset.inductive_validation,
    frequency=1,
    patience=100000,  # for test reasons, turn it off
    evaluation_batch_size=256,
    evaluator=valid_evaluator,
    result_tracker=tracker
)

# Training starts here
training_loop.train(
    triples_factory=dataset.transductive_training,
    stopper=early_stopper,
    num_epochs=epochs,
    batch_size=512,
)

# Test evaluation
result = test_evaluator.evaluate(
    model=model,
    mapped_triples=dataset.inductive_testing.mapped_triples,
    additional_filter_triples=dataset.inductive_inference.mapped_triples,
    batch_size=256,
)

tracker.log_metrics(
    metrics=result.to_flat_dict(),
    step=epochs + 1,
    prefix='test',
)
tracker.end_run(success=True)

# print final results
print(result.to_flat_dict())

There has been quite some refactoring of pykeen's internals as to the underlying representations including those with complex numbers. Can't spot obvious problems in the code, but can you try the distmult interaction?

The test h@10 is often lower than the validation. If I am not incorrect, its usually the other way around.

It's normal and usual that validation performance is better than test

Depending on your hardware, but with a 2080 titan my runtimes are 45 minutes for this, yours are about 2 hours

There have been many changes in pykeen since 2021 both in terms of training speedup and loss scaling - so the same 2500 epochs in newer versions might not result into the same final states (perhaps in the newer versions you'd need to train longer)
I also found here that the default number of attention heads is 2 whereas your setup has one head. Try with 2?
https://github.com/migalkin/NodePiece/blob/9adc57efe302919d017d74fc648f853308cf75fd/inductive_lp/model/nodepiece_rotate.py#L45


Update JMH version to 1.12

I keep getting warnings to update the jmh.

Looked through the code and seems that it rads it from a filestream.

You can always simply submit a PR to bum,bu us to the altest JMH, which is 1.12 :-)
As simple as that :-)

I solved this


cgal: 4.14.2 → 4.14.3 & default to version 5

Description of changes
Bug fix: https://www.cgal.org/2020/02/25/cgal4143/
Also default to the branch 5.x which is the one to be actively maintained.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

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

1 package failed to build:

python311Packages.graph-tool

9 packages built:

appcsxcad
cgal
cgal_4
openmvs
openscad
python310Packages.graph-tool
snis
valeronoi
vimPlugins.openscad-nvim


Enhance support for scanning UDTs and entire rows into same struct type

@martin-sucha I'd much rather like to add that as a tweak in Iterx similar to https://github.com/scylladb/gocqlx/blob/master/iterx.go#L54. This change as it is makes API less readable.

Any updates on that?

Any updates on that?

I've been busy this week, sorry. I'll take a look at this next week.

Any updates on that?

I've been busy this week, sorry. I'll take a look at this next week.

Took longer than expected, but finally updated now.

Hi @martin-sucha sorry it took so long and thanks for your patience.
It's a good idea and a valid change - thank you!
I have rebaseds and refactored your proposal please take a look at https://github.com/scylladb/gocqlx/pull/143.
I'm closing this for now. Work will continue in 143.


Link is not working

Describe the bug
Going to https://dropzone-ui.herokuapp.com/ renders a page with an Application Error from Heroku
To Reproduce
Steps to reproduce the behavior:

Go to https://dropzone-ui.herokuapp.com/
See error

Expected behavior
This URL would load the "Live demo and code generator", as indicated in the README
Screenshots

Desktop (please complete the following information):

OS: OSX Ventura / 13.0.1 (22A400)
Browser: Chrome
Version: 108.0.5359.94 (Official Build) (arm64)

Additional context
N/A

Hi @kailinj !!! thanks for notifying this issue.
There was a problem in the server that host the webpage.
Please, visit the webpage in the new domain of dropzone ui  webpage
Thanks in advance. Happy coding! 💻


Inverted menu pointing

When inverting a pointing menu there is a bug with the 'pointer'. The colors don't realy match and the spacing isn't completely right. See screenshots below. The first screenshot is the regular active state. The second screenshot is the active state while hovering the item.

+1 you right

Adjusted positioning example
http://jsfiddle.net/gccq2fz2/


Test to Rebuild DB from messages Table

See https://github.com/CounterpartyXCP/counterparty-core/pull/1928


Automatic redirection with a trailing slash

Motivation:
For example, if a user bound a service at prefix:/docs, the service
will get requests only when the request path starts with /docs/, which
means /docs will not be matched.
This is not a problem when there is no other mappings that match /docs
because Armeria will automatically redirect you to /docs/.
However, the following code will not work:
// `/docs` will not be redirected to `/docs/` but handled by
// `HttpFileService`.
Server server =
    Server.builder()
          .service("prefix:/docs", new DocService())
          .service("prefix:/", HttpFileService.of(...))
          .build();

... because the HttpFileService will handle the request to /docs.
To address this issue, we need to introduce some special casing for the
path without a trailing slash.
However, the redirection should not occur when there's an explicit binding
for the path without a trailing slash:
// `/docs` will not be redirected to `/docs/` but handled by
// `someOtherService`.
Server server =
    Server.builder()
          .service("prefix:/docs", new DocService())
          .service("/docs", someOtherService)
          .build();

Modifications:

Modified Routers.router() to add the redirect mappings that maps to
the fallback service for EXACT, PREFIX and PARAMETERIZED path
types.

FallbackService.handleNotFound() will send a redirect response.

Modified RoutingTrie to have precedence (high or low) for values.

Redirect mappings will have low precedence while other will have
high precedence, so that a user-specified mapping has precedence.

Miscellaneous:

Router.findAll() now returns List instead of Stream.
Tiny optimization in CompositeRouter.findAll()

Result:

Fixes #2116
Known issues:

GLOB, REGEX and REGEX_WITH_PREFIX path types are unsupported,
although this is expected due to complexity and ambiguity.
(Breaking) This may break some servers which relied on the routing
behavior.

@anuraaga and @hyangtack might be interested in reviewing.

Please review again, because this pull request has been refactored significantly to make RoutingTrie immutable.

Let me rebase and squash. Something is not right with the build.

Thanks for reviewing.

Sorry for late followup - LGTM


Casks with manual installers

I recently used Homebrew Bundle for the first time to automate the installation of several casks. One of the casks I installed did not seem to install. Then I realized that it has a manual installer that I need to run. However, the output of running brew bundle did not tell me that I needed to do that. I also didn't know how to run the installer until I manually ran brew cask install which displays a message that shows the path to the manual installer. I'm not sure what should be done about it, but it seems like it's really important to display a similar message for casks that require manual installation.

brew bundle --verbose will output the necessary information. We cannot infer and output specifically manual instructions without changes in brew cask. Closing this until that happens (and it'll likely require you or someone else interested to create the PR rather than creating an issue).


opencomposite: 0-unstable-2024-05-08 -> 0-unstable-2024-05-24

Description of changes
https://gitlab.com/znixian/OpenOVR/-/compare/5ddd6024efafa82c7a432c9dd8a67e3d5c3f9b38...762f93d91f4c23ad70c81c81486b6bcd7e9bbb5e
This update fixes OC when built against OpenXR 1.1
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

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

2 packages failed to build:

opencomposite
opencomposite-helper

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

2 packages built:

opencomposite
opencomposite-helper

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

2 packages built:

opencomposite
opencomposite-helper


Report testing seed even if Protostar crashed

As happened for the bug reporter in #590, Protostar has crashed due to unexpected exception, and it didn't report the testing seed and other statistics, thus it's hard for us to reproduce the bug locally.
User should be able to see Testing Summary even if Protostar crashed.

@kasperski95 assigning to you because you are working on #584 and this will be related.

I also think we should report the seed (and the summary in general) in integration tests logs.

I also think we should report the seed (and the summary in general) in integration tests logs.

Why would that be needed?

Because if an integration test with arbitrary seed crashes, I won't also know the value of the seed :)

Partially blocked by https://github.com/software-mansion/protostar/issues/544

@kasperski95 I think we can cancel this? Because we concluded that the user simply didn't collaborate as we thought in the reference issue.

Yep, let's cancel this. It's not super important.


Question: Can UI-Select2 work with Angular 1.5x?

I am having trouble getting ui-select2 to work with angular 1.58. Is it me, or is it not working?

Yes it works