A bug in call method

Its is only at Windows.
Try to execute python code at windows and its is work fine.

Run from cli python test.py Print is correct path to Python,
but then i try exec this with run from rust with pyo3. My sys.executable print path = C:\Users\user\rust-pyo3\target\debug\app.exe.

Why path print it like this?

This is expected, sys.executable is the binary running, and when you embed Python from Rust in this way, your app.exe is indeed the executable which is running.


How do I pass multiple image pull secrets to a chart?

I created a chart using helm create demo-chart. Now, I want to pass multiple image pull secret to that using --set flag. How do I do that? I tried
helm template . --set imagePullSecrets={"name":"s1"} --set imagePullSecrets={"name":"s2"}

That does not work. Here is my repo: https://github.com/tamalsaha/demo-chart
Output of helm version:
version.BuildInfo{Version:"v3.1.2", GitCommit:"d878d4d45863e42fd5cff6743294a11d28a9abce", GitTreeState:"clean", GoVersion:"go1.13.8"}
Output of kubectl version:
Cloud Provider/Platform (AKS, GKE, Minikube etc.):

As per the documentation, you can use --set imagePullSecrets[0].name=s1,imagePullSecrets[1].name=s2.
Closing as answered. if there is a topic missing in the documentation, please feel free to contribute to the helm-www repo. Thanks.

Thanks a lot!


Variable selection is moved after entering a code snippet

VSCode Version: Version 1.7.0-insider (788caba5a3ca1c2b137353f4384bb0e026db1a31)
OS Version: macOS 10.12 (16A323)
TypeScript Version: 2.0.3

Steps to Reproduce:

Have a folder with a jsconfig.json
Use a Snippet in a .js file

The code from the snippet is inserted but the selection to enter the variable is moved so then when waiting to long the body of the snippet overwritten by the input.
Here is a gif with problem:

Here is the code of the snippet:
"Print to console": {
  "prefix": "cc",
  "body": [
    "console.log('${data}');",
    "console.log(${data});",
    "$0"
  ],
"description": "Log output to console"
}

Here is the jsonfig.json
{
    "compilerOptions":{
        "target": "ES6",
        "module": "commonjs"
    },
    "exclude": [
        "node_modules",
        "build"
    ]
}

Side note: The snippet works fine in TypeScript.

@4kochi I could not reproduce (in JavaScript):

I see. It is curious. I the same .js file it works in some cases, but not always. I can't see the pattern when it's not working. The only thing I noticed is that when it does not work the code is indented. I use 4 spaces.

It also works when I copy the content of the file in a new VSCode Window and select JavaScript as file type. So there is not jsonfig.json in this case.

Do you maybe have format on type enabled?

Yes, "editor.formatOnType" is enabled. But disabling this settings does not help.

I believe there is another party that is automatically editing the file after the snippet is inserted (editing the actual snippet text or something around the snippet text) that causes the cursors to lose their positions and for the snippet mode to be left.
Can you please try with code --disable-extensions

It works when the extensions are disabled. But it also works now with the extensions. I have updated to the new insider version this morning (5bafcdb3d67b29b1f4667a3f497ac05a41dde667).
I will look if it's work from now on and when there is a problem again, I will try make the steps reproduceable.

The problem is back. All extensions are disabled and also "editor.formatOnType" is set to false. The interesting thing is that it works when the is not indention. But when the the snippet is nested, it does not work correctly.
console.log('data'); // works
console.log(data);

function demo(){
    console.log('data'); // does not work
    console.log(data);
}

@4kochi Here is what I tried, without success, to reproduce:

I am on the insiders version from 2hrs ago.
added the snippet to JavaScript:

"Print to console": {
  "prefix": "cc",
  "body": [
    "console.log('${data}');",
    "console.log(${data});",
    "$0"
  ],
"description": "Log output to console"
}

created a new empty folder
added jsconfig.json:

{
    "compilerOptions":{
        "target": "ES6",
        "module": "commonjs"
    },
    "exclude": [
        "node_modules",
        "build"
    ]
}

commented out all of my user settings

Thanks for your patience, maybe there is some other factor ?

I think I found something. I have the setting "files.autoSave": "afterDelay".
If I set it to off, the problem disappears. If I then save directly after the snippet is inserted, the selection is moved again.

Could it be that you have format on save enabled in user settings or in workspace settings or that you have an extension that formats on save. Otherwise, is there a file watcher running that might modify the file outside of vscode?

No, format on save is false and there are no external file watchers. I will try again with all extensions disabled.

In that case, it is most likely you have an extension that listens to the save event and then edits the text.

I guess that's the case. I will try to find out which extension it might be.

Closing after a number of days without a response


code not working on python 3.5 TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):
File "ptb-utt.py", line 155, in
main(config)
File "ptb-utt.py", line 97, in main
prepare_dirs_loggers(config, os.path.basename(file))
File "C:\Users\hw\NeuralDialog-LAED-master\laed\utils.py", line 105, in prepare_dirs_loggers
json.dump(config.dict, fp, indent=4, sort_keys=True)
File "C:\Users\hw\Anaconda3\envs\py35\lib\json_init_.py", line 179, in dump
fp.write(chunk)
TypeError: a bytes-like object is required, not 'str'

Yes, I understand. but is there any way it can work on python 3.5? because I am using windows and tensorflow is not supported on python 2.7

For future reference, this model is largely compatible with python 3. You just have to change all of the calls to open(...,'wb') to open(...,'w'), as you are not writing bytes to the files. Alternatively, encode strings as bytes before writing them.
Also, as the MosesTokenizer is no longer included in nltk, you should separately install the sacremoses package, which is the same.


[jvm-packages] Spark training ranking broken

I've discovered a bug in ranking having to do with how XGBoost internally handles group information when repartitioning.
XGBoost will internally repartition based on group info, which involves aggregating based on the group. This expects that within each partition, the data is sorted by groupId.
However, the data will never be sorted by groupId, because prior to this step, XGBoost will internally perform a repartition which shuffles all of the data. As a result, when training, XGBoost will see that almost every group has only a single element in it, and so training will finish in a couple of iterations with ndcg = 1.
The workaround that I've come up with is to make sure in advance that my data is partitioned such that the number of partitions equals the num_workers param, with each partition sorted by groupId. This will internally bypass the repartition that randomly shuffles all of the groups.
It looks like this issue may have been raised before: https://github.com/dmlc/xgboost/issues/3489
I am using Spark 2.4.0 and XGBoost 1.1.2 for Scala 2.11.

Not familiar with the spark package.  It seems to be fixed before in the issue you linked, so this might be a regression?  Are the tests added in https://github.com/dmlc/xgboost/commit/efc4f855055609e16745efc0a342103e7e2fdab1 useful in detecting such errors?

I don't think the issue I linked was fixed, because it still expects data to be sorted within partitions.
The first unit test is collecting the entire RDD, flattening it, and then sorting by groupId before calling any asserts. So, all partition information is lost in the unit test. The second unit test just checks if the booster is null. As far as I can tell, neither of these unit tests would detect an issue related to ordering by groups within partitions.

Not sure if it's helpful.  On XGBoost's dask interface (another distributed package) I just give up the use of group structure and use query id directly.  Users have to sort the data according to query id first, but most of the time that's already done during preprocessing so I think it's fine.

@trivialfis thanks for the suggestion, but from what I can tell, the Spark package requires that a group column be set on the dataframe. I don't think there's any notion of a qid like in the libsvm data format.

+1
I encountered the same issue when upgrading my LTR model from XGBoost 0.82 to 1.0, and @sammynammari's workaround fixes it.
I think a patch needs to be made for the problematic line that was added in this commit, and I'm surprised that more people haven't encountered this bug.

Hi, if I were to replace the group structure by qid would it be a huge problem?

Hi, thanks for looking at this again. I’m not sure I understand the question - I thought groupId and qid were the same concept? What is the difference that you are suggesting?

On Jul 10, 2021, at 11:09 PM, Jiaming Yuan @.***> wrote:

Hi, if I were to replace the group structure by qid would it be a huge problem?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

I thought groupId and qid were the same concept? What is the difference that you are suggesting?

Yes, they are the same concept.  It's easier to simplify the handling logic if each same has an associated qid in sorted order.

Hi, any update here?

I'm revamping the LTR implementation and tracking related issues here https://github.com/dmlc/xgboost/projects/8 .

Hi guys, Sorry for late response, I made a PR to fix this issue, could you help test it? https://github.com/dmlc/xgboost/pull/11023


Tag Stan v5.1.0

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/6385
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:
git tag -a v5.1.0 -m "<description of version>" e2a32d21ccae3128db3d352ebb72b06f4fd79331
git push origin v5.1.0


multilingual

it would be nice to have a multilingual version either by detecting the browser locale or by choosing from a menu, at least for the description of popup fields.
I understand that the translation of values is more problematic, but since they are in English, this can probably be done later.
I'm available to translate somes strings for e.g. in French

Hello Marc,
I've thought about this for a while too and this is defenetly something on the roadmap. This is what we got until now:

The main task "take the browser local and show everything in the right language is not so complicated, there are several standard librarys for that.
If this map becommes multilangual  the covered are should becomme bigger too. Right now this would mean pretty large file sizes to load everytime you visit the page. I still looking for a way to avoid this. Ideally I would like to cover the complete globe, but Europe would be a good start too.
There is a library called tags2names https://github.com/ENT8R/tags2names that could be very helpfull when it comes to translating the OSM tags. It uses the wikidata objects of the OSM Tags.

I would like to link farmshops.eu from StreetComplete (an openstreetmap contributor app) to showcase how certain contributed data is used, but it makes no sense to do so until it is at least available in English and the data worldwide.

I still haven't found a way to put the file size to an acceptable level for a global map. I could create a separated map for regions relatively easy for example farmshops.eu/uk /usa and so on.  One could create region overview on farmshops.eu where you can jump to your region.
But this idea would still not be ideal, I would really prefer a global map.

I still haven't found a way to put the file size to an acceptable level for a global map. I could create a separated map for regions relatively easy for example farmshops.eu/uk /usa and so on.  One could create region overview on farmshops.eu where you can jump to your region.
But this idea would still not be ideal, I would really prefer a global map.

@stefangrotz On veggiekarte.de we have a global map, but it takes a long time to load.
But we already support multiple languages. Maybe you can use the same approach. The code is also on GitHub: https://github.com/piratenpanda/veggiekarte


Signature add membership check

📝 Summary

Sets sigGroupCheck to true.
⛱ Motivation and Context

Membership check for signatures was skipped, which should be required according to the IETF BLS Signature specification. This will enforce the unforgeability of signatures.
📚 References

✅ I have run these commands

[x] make lint
[x] make test
[x] go mod tidy

Thanks 👍


Allow @jsx pragma to be set in .flowconfig

I'm starting out a new project using flow and preact. The only way to make flow play nice with preact is to add // @jsx h to all my source files. It feels pretty silly to have to add the exact same flags to all my source files. It should be possible to set this globally in .flowconfig.
For example:
[options]
jsx.pragma=h

Duplicate of #7010


Adding Cilium K8s Performance Dashboard to grafonnet

Type of change

[ ] Refactor
[X] New feature
[ ] Bug fix
[X] Optimization
[ ] Documentation Update

Description
Adding Cilium K8S Performance Dashboard to Grafonnet.

Related Tickets & Documents

Related Issue #
Closes #

Checklist before requesting a review

[X] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.

Testing

Please describe the System Under Test.
Please provide detailed steps to perform tests related to this code change.
How were the fix/results from this change verified? Please provide relevant screenshots or results.

Requesting a link to the previous and current dashboards to make sure they are exactly the same look and feel wise.

@vishnuchalla
old dashboard: http://dittybopper-dittybopper.apps.smanda-ocp1.perfscale.devcluster.openshift.com/d/V9F0pW2Sz/cilium-k8s-performance?orgId=1&refresh=30s
new dashboard: http://dittybopper-dittybopper.apps.smanda-ocp1.perfscale.devcluster.openshift.com/d/8750pWhSz/cilium-k8s-performance-dashboard?orgId=1&refresh=30s


Prevent crash on default color

This PR fixes this issue: https://github.com/kerollesroshdi/KRTabBar/issues/1
KRTabBarItem:

Made color property non-optional, because the app always crashes if the color is missing.
Added a default system color by default.
KRTabBarController:
Reworked conditional in createButtonsStack: second if didn't throw an error, only the first one did + fatalError crashes all builds (including production). Should be better now.

That's awesome,
Thanks, @IgorChernyshov for your contribution

I’m glad to help :) This tab bar looks gorgeous
Can I ask you to add a «hacktoberfest-accepted» label to this PR — this way it’ll be counted for the event.

Thanks

Вторник, 6 октября 2020, 13:08 +03:00 от Kerolles Roshdi<EMAIL_ADDRESS>

Merged  #3 into master.
—
You are receiving this because you were mentioned.
Reply to this email directly,  view it on GitHub , or  unsubscribe .
--
Igor Chernyshov


Command clear don't work, no discord logs

Command clear don't work, no discord logs

fixed 355af07


Inherit parameters when casting Image to QuadMesh

Due to an oversight the kdims, vdims, group and label aren't inherited when casting an Image to a QuadMesh.

This is a simple bug fix and I've added a unit test, merging.


Compilation problem with GNU/Linux

Any help, please ?
milias@login.grid.umb.sk:~/Work/programming/pfunit-demo/build/.cmake ..
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Configuring done
-- Generating done
-- Build files have been written to: /home/milias/Work/programming/pfunit-demo/build
milias@login.grid.umb.sk:~/Work/programming/pfunit-demo/build/.make help
make: Warning: File `Makefile' has modification time 21 s in the future
The following are some of the valid targets for this Makefile:
... all (the default if no target is provided)
... clean
... depend
... demo-sources-to-test
... edit_cache
... git_update
... pftest_alltests
... pfunit
... rebuild_cache
... test
... external/pfunit/include/driver.o
... generated/test_add_numbers.o
... generated/test_subtract_numbers.o
... hello.o
make: warning:  Clock skew detected.  Your build may be incomplete.
milias@login.grid.umb.sk:~/Work/programming/pfunit-demo/build/.m
make: Warning: File `Makefile' has modification time 14 s in the future
make[1]: Warning: File `CMakeFiles/Makefile2' has modification time 14 s in the future
make[2]: Warning: File `CMakeFiles/demo-sources-to-test.dir/flags.make' has modification time 14 s in the future
Scanning dependencies of target demo-sources-to-test
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/demo-sources-to-test.dir/flags.make' has modification time 14 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/demo-sources-to-test.dir/flags.make' has modification time 14 s in the future
[  7%] Building Fortran object CMakeFiles/demo-sources-to-test.dir/hello.F90.o
Linking Fortran static library libdemo-sources-to-test.a
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[  7%] Built target demo-sources-to-test
make[2]: Warning: File `CMakeFiles/git_update.dir/progress.make' has modification time 14 s in the future
Scanning dependencies of target git_update
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/git_update.dir/progress.make' has modification time 14 s in the future
Submodule 'external/pfunit' (git://git.code.sf.net/p/pfunit/code) registered for path 'external/pfunit'
Initialized empty Git repository in /home/milias/Work/programming/pfunit-demo/external/pfunit/.git/
remote: Counting objects: 5263, done.
remote: Compressing objects: 100% (4397/4397), done.
remote: Total 5263 (delta 3677), reused 1114 (delta 707)
Receiving objects: 100% (5263/5263), 10.64 MiB | 2.29 MiB/s, done.
Resolving deltas: 100% (3677/3677), done.
Submodule path 'external/pfunit': checked out 'c3aa2ee9606fbb0f8151af45116177090f4946cf'
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[  7%] Built target git_update
Scanning dependencies of target pfunit
[ 14%] Creating directories for 'pfunit'
[ 21%] Performing download step for 'pfunit'
[ 28%] No patch step for 'pfunit'
[ 35%] No update step for 'pfunit'
[ 42%] Performing configure step for 'pfunit'
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
** WARNING: Install path not found! Please set PFUNIT or use -DINSTALL_PATH=...
++ Remember to set the environment variable PFUNIT to the install directory!
++ Example: export PFUNIT=OFF
-- Installing to INSTALL_PATH: OFF
Including generated files 'cmakeGenerated.inc'.
SOURCES: 'Assert.F90;AssertReal0.F90;AssertReal1.F90;AssertReal2.F90;AssertReal3.F90;AssertReal4.F90;AssertReal5.F90;AssertComplex0.F90;AssertComplex1.F90;AssertComplex2.F90;AssertComplex3.F90;AssertComplex4.F90;AssertComplex5.F90;AssertInteger10.F90;AssertInteger11.F90;AssertInteger12.F90;AssertInteger13.F90;AssertInteger14.F90;AssertInteger15.F90;AssertArraysInternalassertNotEqual.F90;AssertArraysInternalassertEqual.F90;AssertArraysInternalassertGreaterThan.F90;AssertArraysInternalassertGreaterThanOrEqual.F90;AssertArraysInternalassertLessThan.F90;AssertArraysInternalassertLessThanOrEqual.F90;AssertArraysInternalassertRelativelyEqual.F90;AssertArraysSupport.F90;AssertBasic.F90;AssertInteger.F90;AbstractTestResult.F90;BaseTestRunner.F90;DebugListener.F90;DynamicTestCase.F90;Exception.F90;Expectation.F90;MockCall.F90;MockRepository.F90;ParallelContext.F90;ParallelException.F90;AbstractTestParameter.F90;ParameterizedTestCase.F90;Params.F90;XmlPrinter.F90;ResultPrinter.F90;UnixPipeInterfaces.F90;UnixProcess.F90;RobustRunner.F90;RemoteProxyTestCase.F90;SerialContext.F90;SourceLocation.F90;StringConversionUtilities.F90;SubsetRunner.F90;SurrogateTestCase.F90;Test.F90;TestCase.F90;TestFailure.F90;TestListener.F90;TestMethod.F90;TestResult.F90;TestRunner.F90;TestSuite.F90;ThrowFundamentalTypes.F90;pFUnit.F90;pFUnitPackage.F90'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/milias/Work/programming/pfunit-demo/build/external/pfunit-build
[ 50%] Performing build step for 'pfunit'
make[3]: Warning: File `Makefile' has modification time 24 s in the future
make[4]: Warning: File `CMakeFiles/Makefile2' has modification time 25 s in the future
make[5]: Warning: File `source/CMakeFiles/pfunit.dir/flags.make' has modification time 24 s in the future
Scanning dependencies of target pfunit
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Warning: File `source/CMakeFiles/pfunit.dir/flags.make' has modification time 24 s in the future
make[6]: Warning: File `source/CMakeFiles/pfunit.dir/flags.make' has modification time 24 s in the future
[  1%] Building Fortran object source/CMakeFiles/pfunit.dir/ParallelContext.F90.o
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:35.16:

      procedure(getNumProcesses), deferred :: getNumProcesses
                1
Error: PROCEDURE(interface) at (1) is not yet implemented
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:36.16:

      procedure(processRank), deferred :: processRank
                1
Error: PROCEDURE(interface) at (1) is not yet implemented
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:37.16:

      procedure(sum), deferred :: sum
                1
Error: PROCEDURE(interface) at (1) is not yet implemented
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:41.16:

      procedure(gatherString), deferred :: gatherString
                1
Error: PROCEDURE(interface) at (1) is not yet implemented
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:42.16:

      procedure(gatherInteger), deferred :: gatherInteger
                1
Error: PROCEDURE(interface) at (1) is not yet implemented
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:43.16:

      procedure(gatherLogical), deferred :: gatherLogical
                1
Error: PROCEDURE(interface) at (1) is not yet implemented
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:46.16:

      procedure(allReduceLogical), deferred :: allReduce
                1
Error: PROCEDURE(interface) at (1) is not yet implemented
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:52.9:

         class(ParallelContext), intent(in) :: this
         1
Error: Unclassifiable statement at (1)
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:57.9:

         class(ParallelContext), intent(in) :: this
         1
Error: Unclassifiable statement at (1)
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:62.9:

         class (ParallelContext), intent(in) :: this
         1
Error: Unclassifiable statement at (1)
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:68.9:

         class (ParallelContext), intent(in) :: this
         1
Error: Unclassifiable statement at (1)
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:75.9:

         class (ParallelContext), intent(in) :: this
         1
Error: Unclassifiable statement at (1)
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:82.9:

         class (ParallelContext), intent(in) :: this
         1
Error: Unclassifiable statement at (1)
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:89.9:

         class (ParallelContext), intent(in) :: this
         1
Error: Unclassifiable statement at (1)
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:98.6:

      class (ParallelContext),  intent(in) :: this
      1
Error: Unclassifiable statement at (1)
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:103.6:

      class (ParallelContext), intent(in) :: this
      1
Error: Unclassifiable statement at (1)
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:107.6:

      class (ParallelContext), intent(in) :: this
      1
Error: Unclassifiable statement at (1)
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:112.6:

      class (ParallelContext), intent(in) :: this
      1
Error: Unclassifiable statement at (1)
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:102.26:

   subroutine barrier(this)
                          1
Error: Symbol 'this' at (1) has no IMPLICIT type
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:97.33:

   logical function isActive(this)
                                 1
Error: Symbol 'this' at (1) has no IMPLICIT type
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:106.38:

   logical function isRootProcess(this)
                                      1
Error: Symbol 'this' at (1) has no IMPLICIT type
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:111.31:

   subroutine labelProcess(this, message)
                               1
Error: Symbol 'this' at (1) has no IMPLICIT type
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:45.15:

      procedure :: barrier
               1
Error: Argument 'this' of 'barrier' with PASS(this) at (1) must be of the derived-type 'parallelcontext'
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:38.26:

      generic :: gather => gatherString
                          1
Error: Undefined specific binding 'gatherlogical' as target of GENERIC 'gather' at (1)
/home/milias/Work/programming/pfunit-demo/external/pfunit/source/ParallelContext.F90:33.15:

      procedure :: isActive
               1
Error: Argument 'this' of 'isactive' with PASS(this) at (1) must be of the derived-type 'parallelcontext'
Fatal Error: Error count reached limit of 25.
make[6]: *** [source/CMakeFiles/pfunit.dir/ParallelContext.F90.o] Error 1
make[5]: *** [source/CMakeFiles/pfunit.dir/ParallelContext.F90.o.provides] Error 2
make[4]: *** [source/CMakeFiles/pfunit.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [external/pfunit-stamp/pfunit-build] Error 2
make[1]: *** [CMakeFiles/pfunit.dir/all] Error 2
make: *** [all] Error 2
milias@login.grid.umb.sk:~/Work/programming/pfunit-demo/build/.

You need GFortran 4.9 - see .travis.yml.

Aaah, no way for me, I don't have most recent Fortran on our cluster.
Is there some way to make the program running with an older Fortran version ?

This demo requires a recent version. Please
check http://pfunit.sourceforge.net for requirements.
I think it supports a number of compilers and versions.

Closing this one.


Graphics.Clear depth should be double, not int

Graphics.Clear(Color color, int depth, int stencil, ClearMask mask) should be using a double for depth.

Good call, will look into this shortly!


Club Login Banner and Navbar Event Link 🔗⚠

Description

BUG 1: After Club login Banner is still visible instead of Login Banner. This issue leads to clubs not being able to see navbar even when logged in.
BUG 2: Events Component crashes the page on clicking. This bug is caused due to anchor tag. Can be fixed by replacing anchor tag by Link component.

SOLUTION 1: Can be fixed by replacing anchor tag by Link component.
SOLUTION 2: Can be fixed by adding check for clubs along with users in sessionStorage in AuthState function

Screenshots

Proposed Changes in NavBar.jsx to fix Page Crash.

Proposed Changes made in Home.jsx to fix banner after club login

Additional information

Proposed fix for NavBar UserProfile Icon by Center Aligning in CSS for mobile devices.

The First Bug , After Club login Banner is still visible instead of Login Banner is not actually a bug. We had a design for CLUB LOGIN BANNER as well, but i lost those files. As a result we just have only one Login Banner which shows up after USER logs in.
Anyways for now you can use the LOGIN BANNER after the clubs log in !


chore: upgrade deps

#26  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Brooooooklyn and the rest of your teammates on  Graphite


[feature request] Adding unit tests to vpndriver

Currently only the ipsec section has unit tests, and with the merging of nat traversal code, we need to add unit test code for the nat traversal case as well.

/assign


Added Leaflet.Antimeridian to the plugin list.

Per an earlier pull request, the automatic drawing of polylines and polygons across the International Date Line has been turned into a plugin (Leaflet.Antimeridian) and added to the list of plugins.

https://github.com/briannaAndCo/Leaflet.Antimeridian

Closes #5820


[Feature][Connector-v2][RedisSink]Support redis to set expiration time.

Purpose of this pull request

Support redis to set expiration time.
Check list

[ ] Code changed are covered with tests, or it does not need tests for reason:
[ ] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
[ ] If you are contributing the connector code, please check that the following files are updated:

Update change log that in connector document. For more details you can refer to connector-v2
Update plugin-mapping.properties and add new connector information in it
Update the pom file of seatunnel-dist

[ ] Update the release-note.

Does the parameter make sense?

Does the parameter make sense?

Surely it makes sense, if a key is created but no expiration is set for it, then the key will remain in memory forever. The production environment needs to set the expiration time, otherwise the memory will be greatly wasted.

@EricJoy2048 @TyrantLucifer @liugddx PTAL.

Can you add e2e test for this pr?

Can you add e2e test for this pr?

done.PTAL.

Wait for ci to complete

@TyrantLucifer

@liugddx @TaoZex PTAL.

@EricJoy2048 @TyrantLucifer @liugddx @TaoZex @Hisoka-X PTAL.

@TyrantLucifer

LGTM


fixed size of initialiser for dropout layers

WIthout this fix the notebook does not work :(

TY!

Well, thank you for making the course ;)
Also, thought you might be interested in this project I made after following your course and reading some papers: https://github.com/rmeertens/GameboyCameraPhotorealistic/blob/master/photoGameboyCamera.ipynb

Also: I saw you were working on new courses. If you want to discuss ideas or need somebody to test them, I would be happy to help you!

@rmeertens Sorry I didn't get notifications for this!  Sounds great!  Please contact me at<EMAIL_ADDRESS>


A few improvements

I'm hoping to close issues #8 and #9 with these small changes

Thanks for improvements!


Migration to Quarkus based Keycloak

Context
The component is currently based on the helm chart of Code Centric. The current helm chart version 18 is based on the 17.0.1-legacy, so still using WildFly. Code Centric is fading out the keycloak helm chart and has created a new helm chart called keycloakx.
Alternatives

Decide for an different helm chart and build an migration way

https://www.keycloak.org/server/all-config https-certificate-file / KC_HTTPS_CERTIFICATE_FILE and https-certificate-key-file / KC_HTTPS_CERTIFICATE_KEY_FILE makes it potentially easier to inject the PEM certificate directly as no Java keystore file must be generated.


Bio Text Fixes: The Big List

team-member.html:
Took a part on projects should be Took a part in projects
team/valorkin:
Hello! I always wanted to create a fun and comfortable place and gather a bunch of smart people who can also be friends, so we can create the most innovative and cutting-edge products on the market. And I think I have succeeded at this, Valor Software became a place where people work, learn and feel themselves like at home
/team/glukhi:
Hello All.
I have more than 16 years of working experience in IT industry. Expertise in project management, process management, problem-solving, managing multiple tasks (often with competing deadlines), quick-learner, self-motivated, responsible, result-oriented, accurate.
Skills in IT support, communication infrastructure design, construction and deploying. My motto: Transparency. Pace. Control. Quality.
/team/katrych: + add him some projects:
Hello, everyone. In my opinion, the best way to evaluate the person is to look at results of his work.
My achievements have not fallen to me from the sky. Everything that I have achieved is a result of hard work, self-education, and faith in success. Never give up, and you will receive what you desire the most!
/team/mihaylenko:
You must understand the root cause of the problem to resolve it successfully. It is the only right way to make the right decision.
/team/danilov:
2+ years of web development experience, both back-end  (Node.js) and front-end development (Angular 2, React). I love cats, cookies and listening to rock music :)
My motto: Never stop exploring.
/team/otelnov:
Software development as a hobby, it's about me. I always try to be aware of the latest trends in programming, tools and IT in general. For me, it's ok to learn new technology "just for fun" because I really enjoy what I do. I participate in open source projects and listen drum and bass while coding.
/team/nesvitiy
Hello!
I am a Quality assurance automation engineer. My main tasks are creating automated tests for checking projects and manual testing. The big goal which I follow is making projects more qualitative and useful. In my work has many positive sides: I get a new interesting tasks and should understand all micro nuances in new features; I should create most important test cases, which will be using every future user of project; I should create stability automated tests for quickly checking new changes and I should be a part of all team always. Main in our teamwork - common desire to make a qualitative project. And we do it!
/team/betrozov:
I like learning, programming and using newest cutting-edge technologies.

@dpereverzev

#/services:
USER EXPIRIENCE DESIGN:
USER EXPERIENCE DESIGN
Users won't leave:
Engaging content is not enough, but the convenient organization and caring about the reader will do the magic.
Human centered design:
Human-centered design
#/about
header:
Apart from being professionals with our clients, we treat our employees as we'd want to be treated. Equality, transparency and a cat-friendly atmosphere are all about us!
Deliver Results:
We serve people and organizations and deliver results throughout the world. Timely.
Always Learn:
We learn we progress, we move forward to make our clients happy!


Using this with XML Parsing?

If I am parsing XML I need to have the XML map on the struct.
     // Enrollment - Enrollment record
	type Enrollment struct {
		MasterEfin       string           `xml:"MasterEfin"`
		EFIN             string           `xml:"EFIN"`
		TransmitterID    string           `xml:"TransmitterId"`
		ProcessingYear   string           `xml:"ProcessingYear"`
		OfficeInfo       OfficeInfo       `xml:"OfficeInfo"`
		OwnerInformation OwnerInformation `xml:"OwnerInformation"`
		EFINOwnerInfo    EFINOwnerInfo    `xml:"EFINOwnerInfo"`
		PriorYearInfo    PriorYearInfo    `xml:"PriorYearInfo"`
		TransactionDate  string           `xml:"TransactionDate"`
	}

I'd like to read in XML and use govalidator to validate the fields before I save the data into our database.
I can't add the validation information - so do I need to move the data into a new struct to validate it?  Is that the easiest method?
	type validEnrollment struct {
		MasterEfin       string           `valid:"alphanum,required"`
		EFIN             string           `valid:"alphanum,required"`
		TransmitterID    string           `valid:"alphanum,required"`
		ProcessingYear   string          `valid:"alphanum,required"`
		OfficeInfo       OfficeInfo
		OwnerInformation OwnerInformation
		EFINOwnerInfo    EFINOwnerInfo
		PriorYearInfo    PriorYearInfo
		TransactionDate  string
	}

Suggestions? I am still learning go so be gentle. ;)

You can use different tags as one:
type validEnrollment struct {
        MasterEfin       string           `valid:"alphanum,required" xml:"MasterEfin"`
}
``` 😄


Cannot search with more than one tag, or no mentors will show up

from "CovEd HerokuApp Bash"

oops, resolved by @johancc


How does the code work exactly?

Hi, I need to replicate this for diffusers but I don't understand exactly what it is the code does. Could you explain more specifically? What is momentum on latent difference? What do you do with it exactly? How does the code try things with the same prompt and generate different results? Are you just switching seeds or something else?
I would appreciate an answer and thank you in advance for your time

Though I've sent the reply directly through the email yesterday, I think I should paste it here to track a thread.

Hi~
This Momentum mechanism in sonar is a second–order like stuff, contrasting with first–order samplers like PLMS; nothing to do with the seed. You can roughly think of mixing up several latents to get a corrected latent, but this mixing is not in a weighted-sum manner like PLMS, but keep a momentum cache (same tensor size as latent image) that records the delta of the denoiser taken in the sampling steps, then sonar can mix this delta into later sampling step latents.
Now is bed time and I could explain more detailed tomorrow :)

I have finished implementing it for diffusers thanks to @Kahsolt 's help.
for anyone interested: https://github.com/alexblattner/modified-euler-samplers-for-sonar-diffusers


[run] Actual pause button?

It would be nice to be able to pause my run. I can stop it and then start it with the append option but that starts the distance tracker from 0. It would be nice to have a simple way of pausing it temporarily and then resuming it without hassle.

Yes, pause button would be nice. I guess it is more important when user is walking than when running. Battery does not last for all-day trip and pause could help.

Thanks - I guess once stopped, if the button is pressed again it could ask you if you want to resume or start a new run?

Now that I've had this watch a while I have gotten used to stopping and starting my runs. I just use the append button in order to combine them


Fix value column cleaning process

E.g. see Kimbunga-1060_prepare-1, the value ku(yokola) is cleaned to ku, whereas ku just appears to be a verbal prefix (or to?) and the form should be yokola.

Likewise, kimb1242 gets split incorrectly, i.e. verbs seem to be listed as verb, uxu-, where uxu- gets a separate entry each time it appears.

Thanks, I am checking it.

This is harder to fix than just setting strip_inside_brackets to False, as we can have alternative forms (such as kigingi (pl.vigingi)), sub-glosses (ku-buma (lion)), long descriptions (tuta (verb of carrying the things and piling them)), grammar annotation (mgosi [+ poss.], mkeku [+ poss.]), and actual linguistic material which is not clearly part of the lexeme (such as objects of verbs, perhaps as a translation of the elicitation).
In a perfect scenario we would need to manually confirm each entry with a bracket, perhaps overriding from lexemes.csv. Not entirely sure about how to proceed...

The situation for the tls data is probably somewhat similar to IDS the need for outsourcing the processing to a separate package: https://github.com/intercontinental-dictionary-series/idspy/blob/4354aa48fe6504d140b66322ddcab28af7cad6ae/src/idspy/init.py#L165

Hm, I don't think IDS should be a model here. IDS is still being added to and also bigger than TLS. So I'd say here, we should still operate within the lexibank framework, e.g. list problematic lexemes explicitly in etc/lexemes.csv.

Explicitly listing problematic lexemes also seems the only solution which is "backwards compatible", i.e. only fixes one explicit problem with no side effects.

Yes, and programmatically, it is not much more time-consuming than
creating complex regexes that might capture things, but since one never
really looks at the major part of the data, this would then not be
checked. I'd start by counting the number of brackets in the data. If
it's 1000 I'd even propose to correct them manually...

I was checking the data in more detail, and it makes no sense to try to fix everything in code. We have 14,675 forms (out of 130,493) that have either parentheses or brackets (and yes, in a handful of cases both), and only some of the patterns can be captured in code (unless I fill the script with unreadable nested ifs).
My proposed solution is to first treat what can be treated in code (for example, removing the "(pl." initial substrings for all the forms with a plural, which accounts for 1,206 cases, or all the cf.), collect common material that can be removed (such as "(see below")), and only then start treating the remaining cases with lexemes.csv. I have no idea how many entries it would be or how long it would take, but at least for the first part data quality could be improved somewhat quickly.

Sounds reasonable.

Good, will start work on a branch.

Ok, I have started work on branch improve_forms, will make a PR once ready.
Just a couple of minutes solving some issues already brought the number of problematic forms down to half, to 7,679.

Sounds good! Once we are in the 3% range that's as good or bad as IDS, which I'd consider the benchmark here.

PR at https://github.com/lexibank/tls/pull/12


Option to use mic input instead of reading from file?

Would it be possible to efficiently transcribe stream of inputs from mic directly rather than from a saved .wav file to be normalized?
One obvious way would be to chunk the stream and save the input and processing them sequentially, but seems terribly inefficient and unsuitable for real time use.
Any help/tip would be appreciated!

Currently no. Online ASR is on the very short-term to do list. It is possible that, at some point, we will make an official call to the community to start working on this.
Your proposed solution could work, of course, but it might definitely not be real time. You can lower the latency by using very simple models though.

This is definitely something that interests me, and not only ASR, but source localization, separation, speaker identification, etc. Please let me know when you make that official call, since I can definitely help out on this end.


Post merge update

Pull Request Template
Description
Minor updates to the documentation to correct the branch name in the samples
Checklist

[ ] The code change is covered by unit tests. I have added tests that prove my fix is effective or that my feature works
[ ] I have performed end-to-end test locally.
[ ] New and existing unit tests pass locally with my changes
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I used clear names for everything
[ ] I have performed a self-review of my own code

Close PR will look to merge into other changes


How to save local storage data into a database in ASP.Net Core 2.0 Razor Pages?

I am using grid stack in ASP.NET Core razor page to save widgets in locals torage. The same thing I want to do for  server side as well. For that purpose I want to store the dashboard name as key and serializedData as value in database for each user. How can this be done? Thanks
Following is the code :
 this.saveGrid = function () {
                this.serializedData = _.map($('.grid-stack > .grid-stack-item:visible'), function (el) {
                    el = $(el);
                    var node = el.data('_gridstack_node');
                     return {
                        x: node.x,
                        y: node.y,
                        width: node.width,
                        height: node.height,
                        minwidth: node.minWidth,
                        maxwidth: node.maxWidth,
                        minheight: node.minHeight,
                        maxheight: node.maxHeight,
                        id: node.id,
                        view: node.view,

                    };
                }, this);

                localStorage.setItem("@DashboardName", JSON.stringify(this.serializedData));

                return true;

            }.bind(this);

            this.clearGrid = function () {
                this.grid.removeAll();
                return true;

            }.bind(this);

            $('#save-widgets').click(this.saveGrid);

Hello @suffyanaziz ... We don't have the staffing to support general development requests. There's only a few of us here, and we're 🏃😅 keeping the docs updated. For general development assistance with ASP.NET Core, we recommend consulting with devs on a support forum, such as Stack Overflow, or a support chat, such as Slack or Gitter.


Various Course Loading Crashes

Platform: OSX
While browsing through the levels I decided to try and load up every course and document what errors or crashes occurred.
Here is a list of all the errors I noticed on course loading:

Some Courses do not have a BgUnits field defined which causes an exception in this line

Example Course: World005 - Course043_Course

Some Courses do not have a Walls field defined which causes an exception in this line

Example Course: World009 - Course850_Course

Two Courses seem to cause a Hard Crash w/ out any trace back

World009 - Course859_Course
World008 - Course063_Course - Course063_Sub1

The Course Course460_Course is defined in every world but worlds 8/9. This may be intentional for some reason, but it does cause some weird interactions (such as with the Radio UI, once you select one, all of them are selected)

fixed by feece97


dot in route

I would like to create url like this: http://api.site.com/1.1. For this purpose I created next route in routes.php file (just for testing):
Route::get('api/1.1', function()
{
  return "version 1.1";
});

I ran command: php artisan routes so see if everything is ok:
+--------+-------------------+------+------------------+----------------+---------------+
| Domain | URI               | Name | Action           | Before Filters | After Filters |
+--------+-------------------+------+------------------+----------------+---------------+
|        | GET|HEAD api/1.1  |      | Closure          |                |               |
+--------+-------------------+------+------------------+----------------+---------------+

When I open url in web browser it says 404 Not Found. I read similar issue https://github.com/laravel/framework/issues/3494 where anlutro says characters like slashes and dots are not allowed. Is there anyway to allow dot in route e.g. through pattern Route::pattern('versioning', "1\.2"); Can this be a feature in next Laravel version.

hi when i remove dot and percentage symbol from my parameter like (http://localhost:8000/activate/%242y%.sroG) to (http://localhost:8000/activate/242ysroG) then its work it url contains these two characters then give 404 error why in Laravel 5.3

@GrahamCampbell Is there a technical reason for this?
For me, I generated API documentation based on a swagger file from an external source (one I do not control) and they use dots as quoted in this bug report.


try dropping log-level pytest plugin arg

conflicts with new pytest. for old pytest can be restored by adding
pytest-catchlog (now part of pytest; hence the conflict)

For future reference and googlability the error I got running pytest with Nameko <= 2.8.1 installed is:
argparse.ArgumentError: argument --log-level: conflicting option string(s): --log-level

And the related pytest issue is eisensheng/pytest-catchlog#36.


Add support for the text-decoration property

Adds support for the text-decoration property. Implemented separately because of the tricky case, in which text-decoration-line can be set both to underline and line-through (which is supported by RN).

Thank you so much for helping us improve styled-components! Based on our Community Guidelines every person that has a PR of any kind merged is offered an invitation to the styled-components organization—that is you right now!
Should you accept, you'll get write access to the main repository. (and a fancy styled-components logo on your GitHub profile!) You'll be able to label and close issues, merge pull requests, create new branches, etc. We want you to help us out with those things, so don't be scared to do them! Make sure to read our contribution and community guidelines, which explains all of this in more detail. Of course, if you have any questions just let me know!


[BUGFIX] Rename SetMKLMem func to SetDNNLMem to avoid confusion

Description
Part of MKL library which was responsible for deep learning optimizations has been renamed.


[RFC][#17] Setup base frontend structure

PR to create the base structure for the frontend application based on a create-react-app.
It's setup for:

TypeScript
ESLint
Husky with pre-commit hook to lint / prettier
Development env is configured to be dev friendly 🤔 (basically configuring every rule to make sense at the beginning)

#17

Looking good, was able to install packages and build no problem! I'll look into the husky stuff now.

Pushed a commit that gets husky working. pre-commit checks are delegated to each of the workspace projects via specifying a pre-commit script.

I had to remove the commit-msg hook as we have no commitlint.config.js specified yet. Feel free to create one, and re-add that hook in this PR.


Multilingual site prototype

Some of our affiliates require DS sites to support multiple languages simultaneously. For example English and French both are official languages in Canada.
We need to build a proof-of-concept bilingual DS Canada platform supporting both English and French.
The main pieces involved are:

[x] Making French duplicates of current content
[x] Using URI to indicate language (/en and /fr)
[x] Adding a UI element to choose language

There are 3 ways to maintain content in multiple languages in Drupal:

Core Content translation module
Contrib Entity Translation module.

Content translation is core module hence it's more preferable, but using it would require major logic changes in all our modules. The deal is that every new translation is different node. For example, TFJ campaign on DS Canada has nid 1208; French translation will be separate node with nid = max(nid) + 1.
Entity Translation suits our needs much better. It allows specifying which fields are allowed to be translated.
To do this you'd have to:

Install Entity Translation module

Install Title module to make titles translatable

Add language:

Set language determination algorithm:

Enable content type translation:

Specify which fields are translatable:

Add content translation:

Translate the field and save the translation:

Ensure Field is translated correctly and looks as expected. If no, make sure the variables are loaded properly, for example when entity_metadata_wrapper is used, current language must be set:

$wrapper = entity_metadata_wrapper('node', $node);
global $language;
$wrapper->language($language->language);

Thanks, @sergii-tkachenko. Next question for you, @aaronschachter, and @DFurnes is whether there are other text elements (e.g., interface elements, form elements) that will make this more complicated -- i.e., translations needed at the module or template level.

Hopefully, interface translation can still be handled by Drupal's built-in internationalization (t() and co.). Does that seem to make sense, @aaronschachter @sergii-tkachenko?

@DFurnes yes.

Potential caveat in using content type features

When a content type is enabled for translation we need to save it to feature:

On the US, where neither Entity Translation nor Title are enabled, this feature is going to be overriden:

Any change made on the US that requires saving to the feature will override translation settings saved on multilingual sites.

Got it. So.. potentially we could just turn it on the US site though to avoid constant state of overridden right?

Short term: We will create duplicate pieces of content in QA for just those pages we think need to be dual language: Bully Text, About Us, ToS, Privacy Policy, etc. To be confirmed with DS Canada.
Medium term: We will look at the above approach, once we confirm that the scope of translation is adequate for DS Canada's needs. We may still be able to implement this approach in March as a refactor of the short-term solution.

Re: short term -- create the content in production? To avoid any potential loss data?

:+1:

CC @sheydari-ds


Hang in UWP app

I have a hang in a UWP app that might be related to Template 10. The app reads from a USB sensor about 55 times a second and updates a bindable property that is referenced by a Syncfusion gauge control. When the app hangs, the debugger cannot break in, and the close X button cannot stop the app. At some point 5 to 20 seconds later, the app unfreezes by itself and starts running again.
I'm using VS 2017 Community 15.5.6. I've run profiler on the app to see CPU usage and in all cases in the timeline where the app is hung, the CPU usage reported in the profiler is pegged at 25% (this machine has 4 logical processors). Other times it's around 5-10%. The timeline when the app is hung the top CPU usage is 100% at Tempalte10.Mvvm.BindableBase::Set.

Do you have any logic in any of the setters that could block?

Updating a binding 55 times a second is going to bog down anything if you consider that an event has to be raised, then responded to, the UI refreshed, rinse and repeat. One of the reasons System.Reactive exists is to assist with handling this type of event flooding.
You may have a good reason for capturing the data from the device and logging it 55 times a second, but the UI almost certainly does not need to be updated at the same rate. Rx provides the means to throttle the events and update the binding say, once a second. You can learn more about that here. There is more information on Rx here

Hi, what are you using the property for?  In that case you could pace the update to as little as twice a second and it should be fine
Michael
Sent from Mail for Windows 10
From: mjmeans
Sent: 09 February 2018 06:07
To: Windows-XAML/Template10
Cc: Subscribed
Subject: [Windows-XAML/Template10] Hang in UWP app (#1616)
I have a hang in a UWP app that might be related to Template 10. The app reads from a USB sensor about 55 times a second and updates a bindable property that is referenced by a Syncfusion gauge control. When the app hangs, the debugger cannot break in, and the close X button cannot stop the app. At some point 5 to 20 seconds later, the app unfreezes by itself and starts running again.
I'm using VS 2017 Community 15.5.6. I've run profiler on the app to see CPU usage and in all cases in the timeline where the app is hung, the CPU usage reported in the profiler is pegged at 25% (this machine has 4 logical processors). Other times it's around 5-10%. In all cases in the timeline when the app is hung the top CPU usage is 100% at Tempalte10.Mvvm.BindableBase::Set.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I was under the impression that databinding would trigger an update of the UI thread like WM_PAINT such that prior unprocessed triggers of the same property would be skipped in favor of the most recent trigger. That way the UI thread operates at the highest rate for any given PC.
Nevertheless, this problem occurs after several data captures. Each data capture lasts less than 10 seconds, so less than 550 samples. These work fine and the UI is extremely responsive during these captures, until the 4th or 5th data capture, then the hang occurs. Each time a hang occurs it's usually 5 to 20 seconds, though sometimes up to a minute. Thereafter, each data capture might go smoothly and be responsive, or it might hang, or the app might hang at the end of a capture, or it might happen while waiting for the next capture window begins. It's very unpredictable.

I'm doing my timing using System.Windows.Threading.DispatcherTimer to time when to stop on screen prompts to begin and when to stop the data collection window. I'm wondering if DispatcherTimer may be trying to use the core window dispatcher which isn't hooked up in T10. Do you know of any issues with using DispatcherTimer with T10?

I tried changing the timing to use ThreadPoolTimer with a period of 100 ms and calling BootStrapper.Current.NavigationService.GetDispatcherWrapper().Dispatch within the timer callback, but to no evail. Hang still occurs.

I also tried adding a threadpooltimer to update the gauge once every 100 ms instead of as the data is received. No difference.

I believe I have identified the cause. SyncFusion's Chart control has a LineSeries collection that for some reason ties up the UI thread when using Template10. This control doesn't seem to have the same problem without Template 10, so there must be some kind of thread dispatch issue. The solution was to change to the FastLineSeries collection which provides fewer UI features, but is sufficient for my needs at this time.

Oddly enough, I think the human eye can only effectively differentiate 24 frames per second. That being said, if you want the user to respond to your data, or even understand it, updating with such frequency likely  undermines your goal. I can't even move my mouse to a button and click it fast enough to account for 1/55 of a second. I think what you really want to do is to throttle your data so that you saple it only every X milliseconds, instead of so fast. This is not so much a performance of XAML question, as much as it is an architectural question about implementation. What you are doing might feel like the highest-fidelity experience you can offer. What is really happening is a disconnect between the sensor readings and what the interface can show and what the user can grok. There is a throttle in Template 10, and you can use that, but I recommend, instead, that you consider using Reactive Extensions since your event stream is so dense. It will take some time to understand Reactive Extensions and get it implemented. But, I think once you find it working, you will be amazed what it does for you and how finely you can tune the implementation to improve your user's experience. What you suggest with a dispatcher timer can also give a similar experience, depending on your exact requirements.
That being said, and I am sure it has already been pointed out here, but when you bind, be sure and use OneWay instead of TwoWay and x:Bind instead of Binding so you can tweak your performance as much as possible.
I will close this issue as it is not a T10 issue.


Opencost grafana dashboard partly not working

Hi,
I'm trying to use the following grafana https://github.com/opencost/opencost-helm-chart/blob/main/examples/dashboard/kube-prometheus-stack-opencost-dashboard.json dashboard to view opencost data. In my case it's only working partly and some boards throws the following errors:

Any thoughts?
Thanks in advance.

@andriktr I'll try to recreate and see what I find. I'm moving it over to the opencost-helm-chart repository since that's where it originated.

@mattray Thanks a lot.

I am also getting the same partial success with the grafana dashboard. If it helps the partial success in on a AWS EKS cluster and am not experiencing the issue on an Azure AKS cluster.

Scape my last comment the dashboard is now partially working on an AKS cluster that was previously working

Hi @mattray by the looks of things the project is really active so no how busy you must beut have you been able to replicate this issue. The dashboard is super useful when it was working so any progress on this would be useful

Sorry, I've been swamped on other projects. A couple of folks brought it up at KubeCon that they'd be interested in working on it, but I haven't heard from anyone else yet. I'm not a Grafana expert by any means, so if someone's interested and wants to take this feel free. I'll try to circle back to this soon.

@dwbrown2 di yo resolve a similar issue here?
https://github.com/kubecost/cost-analyzer-helm-chart/issues/303
Could the same logic be applied?

@sossickd I'd have to dig in to share for sure. I'm unfortunately tied up on other projects right now, would love to extra help if others are able to review. Will do my best to circle back when free.

@dwbrown2, @mattray OK found the issue, this was caused when running the opencost deployment with more than one replica.
Created a PR.
https://github.com/opencost/opencost-helm-chart/pull/157
This adds a variable to filter on pod, amended each pane that had the many-to-many error and filtered on the pod label.
Not too sure if this is the best solution but fixed it in my case.

Hmm... it sounds strange as I'm running opencost with single replica and still have same issues.

@andriktr can you copy and paste one of the errors in a code snippet from one of the broken panes so i can see if its the same issue i was experiencing

Errors I got are in the very first post of this issue.

@andriktr would you mind pasting into a code snippet so i can copy easier?

Sure:
Here is the error output for Top 20 by Namespace dashboard:
Status: 500. Message: execution: found duplicate series for the match group {instance="<IP_ADDRESS>:9003"} on the right hand-side of the operation: [{arch="amd64", container="opencost", endpoint="http", exported_instance="aks-default-29533205-vmss00000k", instance="<IP_ADDRESS>:9003", instance_type="Standard_D4s_v3", job="opencost", namespace="opencost", node="aks-default-29533205-vmss00000k", pod="opencost-858f6d4597-rr644", provider_id="azure:///subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks-nodes-west-dev/providers/Microsoft.Compute/virtualMachineScaleSets/aks-default-29533205-vmss/virtualMachines/20", region="westeurope", service="opencost"}, {arch="amd64", container="opencost", endpoint="http", exported_instance="aks-default-29533205-vmss00000i", instance="<IP_ADDRESS>:9003", instance_type="Standard_D4s_v3", job="opencost", namespace="opencost", node="aks-default-29533205-vmss00000i", pod="opencost-858f6d4597-rr644", provider_id="azure:///subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks-nodes-west-dev/providers/Microsoft.Compute/virtualMachineScaleSets/aks-default-29533205-vmss/virtualMachines/18", region="westeurope", service="opencost"}];many-to-many matching not allowed: matching labels must be unique on one side

Can you open up prometheus and enter in this query:
topk( 30,
  sum(sum(container_memory_allocation_bytes{namespace=~"$namespace"}) by (container,instance,pod) * on(instance) group_left() (
				node_ram_hourly_cost{pod=~".*opencost.*",pod=~"opencost-858f6d4597-rr644"} / 1024 / 1024 / 1024
				+ on(node,instance_type,pod) group_left()
					label_replace
					(
						kube_node_labels{}, "instance_type", "$1", "label_node_kubernetes_io_instance_type", "(.*)"
					) * 0
			)
  +
  sum(container_cpu_allocation{namespace=~"$namespace"}) by (container,instance,pod) * on(instance) group_left() (
	  			node_cpu_hourly_cost{pod=~".*opencost.*",pod=~"opencost-858f6d4597-rr644"} + on(node,instance_type,pod) group_left()
		  			label_replace
		  			(
		  				kube_node_labels{}, "instance_type", "$1", "label_node_kubernetes_io_instance_type", "(.*)"
		  			) * 0
		  	)) by (container)
)

Do you get the many-to-many matching not allowed: matching labels must be unique on one side error?

I receive no data actually for this particular query:

OK looks at the error a bit further it looks like your issue maybe slightly different to mine.
[{arch="amd64",
container="opencost",
endpoint="http",
exported_instance="aks-default-29533205-vmss00000k",
instance="<IP_ADDRESS>:9003",
instance_type="Standard_D4s_v3",
job="opencost",
namespace="opencost",
node="aks-default-29533205-vmss00000k",
pod="opencost-858f6d4597-rr644",
provider_id="azure:///subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks-nodes-west-dev/providers/Microsoft.Compute/virtualMachineScaleSets/aks-default-29533205-vmss/virtualMachines/20",
region="westeurope",
service="opencost"},

{arch="amd64",
container="opencost",
endpoint="http",
exported_instance="aks-default-29533205-vmss00000i",
instance="<IP_ADDRESS>:9003",
instance_type="Standard_D4s_v3",
job="opencost",
namespace="opencost",
node="aks-default-29533205-vmss00000i",
pod="opencost-858f6d4597-rr644",
provider_id="azure:///subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks-nodes-west-dev/providers/Microsoft.Compute/virtualMachineScaleSets/aks-default-29533205-vmss/virtualMachines/18",
region="westeurope",
service="opencost"}]

Why is the opencost pod returning the fact that it resides on different exported_instance, node and provider_id?

@andriktr can you tun the following query in prometheus and paste the return in a code snippet.
node_ram_hourly_cost

Hi,
Node name for the opencost could change when opencost pod is rescheduled to another node for one or another reason i.e. cluster maintenance, workload rebalancig with descheduler, cluster upgrade, autoscaling etc.

And here is the error from same cluster
Status: 500. Message: execution: found duplicate series for the match group {instance="<IP_ADDRESS>:9003"} on the right hand-side of the operation: [{arch="amd64", container="opencost", endpoint="http", exported_instance="aks-default-29533205-vmss00000k", instance="<IP_ADDRESS>:9003", instance_type="Standard_D4s_v3", job="opencost", namespace="opencost", node="aks-default-29533205-vmss00000k", pod="opencost-858f6d4597-rr644", provider_id="azure:///subscriptions/000000-0000-0000-0000-00000000000/resourceGroups/aks-nodes-west-dev/providers/Microsoft.Compute/virtualMachineScaleSets/aks-default-29533205-vmss/virtualMachines/20", region="westeurope", service="opencost"}, {arch="amd64", container="opencost", endpoint="http", exported_instance="aks-default-29533205-vmss00000i", instance="<IP_ADDRESS>:9003", instance_type="Standard_D4s_v3", job="opencost", namespace="opencost", node="aks-default-29533205-vmss00000i", pod="opencost-858f6d4597-rr644", provider_id="azure:///subscriptions/000000-0000-0000-0000-00000000000/resourceGroups/aks-nodes-west-dev/providers/Microsoft.Compute/virtualMachineScaleSets/aks-default-29533205-vmss/virtualMachines/18", region="westeurope", service="opencost"}];many-to-many matching not allowed: matching labels must be unique on one side

Mentioned query returns the following:

OK this is different from what i am seeing. In my case the instance value matches the node value.

Are you using any relabelings of metrics? Can you determine what <IP_ADDRESS>:9003 refers too? From what i can see <IP_ADDRESS> isn't a nodes ip address, is it the ip address of the opencost pod?
Also what version of opencost are you using?

Yes, <IP_ADDRESS>:9003 is the opencost pod ip.  Version is 1.107.0, but I saw same in earlier versions as well.

@andriktr are you doing any relabelings of metrics? Trying ti get my head around why you are getting a exported_instance metric and the instance metric is being transformed to <IP_ADDRESS>:9003

Hey we do not do any relabelings of metrics. I have my own helm chart but in general it more less same as official + some addons for AAD Pod Identity:
serviceAccount:
  create: true
  annotations: {}
  # eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/eksctl-opencost
  automountServiceAccountToken: true

annotations: {}
  #azure.workload.identity/inject-proxy-sidecar: "true"

service:
  annotations: {}
  labels: {}
  type: ClusterIP

opencost:
  exporter:
    # The GCP Pricing API requires a key. This is supplied just for evaluation.
    # cloudProviderApiKey: 'asdfasdfasdf'
    # Default cluster ID to use if cluster_id is not set in Prometheus metrics.
    defaultClusterId: "aks-experimental"
    image:
      registry: redacted
      repository: kubecost-cost-model
      tag: prod-1.107.0
    resources:
      requests:
        cpu: '10m'
        memory: '55M'
      limits:
        cpu: '999m'
        memory: '1G'
    extraEnv:
      {}
      # FOO: BAR

  metrics:
    serviceMonitor:
      enabled: true
      additionalLabels:
        release: 'kube-prometheus-stack'
      ## The label to use to retrieve the job name from.
      ## jobLabel: "app.kubernetes.io/name"
      namespace: 'kube-prometheus-stack'
      namespaceSelector: {}
      ## Default: scrape .Release.Namespace only
      ## To scrape all, use the following:
      ## namespaceSelector:
      ##   any: true
      scrapeInterval: 30s
      # honorLabels: true
      targetLabels: []
      relabelings: []
      metricRelabelings: []

  prometheus:
    # username:
    # password:
    external:
      enabled: false
      url: 'https://mimir-dev-push.infra.alto.com/prometheus'
    internal:
      enabled: true
      serviceName: kube-prometheus-stack-prometheus
      namespaceName: kube-prometheus-stack
      port: 9090

  ui:
    enabled: true
    image:
      registry: redacted
      repository: opencost-ui
      tag: prod-1.107.0
    resources:
      requests:
        cpu: '10m'
        memory: '55M'
      limits:
        cpu: '999m'
        memory: '1G'

  tolerations: []

# Baltic IF Custom Values
customAzureConfig:
  enabled: true
  azureTenantId: "redacted"
  azureSubscriptionId: "redacted"

azurePodIdentity:
  enabled: true
  azureIdentity:
    name: opencost-identity
    resourceID: "redacted"
    clientID: "redacted"
  azureIdentityBinding:
    name: opencost-identity-binding
    selector: opencost-identity

azureWorkloadIdentity:
  enabled: false
  clientID: ""

ingress:
  enabled: true
  annotations: {}
  labels: {}
  ingress-class: internal-nginx
  hosts:
    - host: opencost-experimental.eu
      paths:
      - path: /
        pathType: ImplementationSpecific
        serviceName: opencost
        servicePort: 9090
  tls:
  - hosts:
    - opencost-experimental.eu
    secretName: ""

Hey,
are there any updates on this issue? i am also seeing the "duplicate" issue in e.g. Top 20 by Namespace:
Status: 500. Message: execution: found duplicate series for the match group {instance_type="c5n.large", node="ip-10-250-0-163.eu-central-1.compute.internal"} on the right hand-side of the operation: [{cluster="cluster01-dmi", clusterType="dmi", instance="kube-state-metrics.monitoring.svc:8080", instance_type="c5n.large", job="kube-state-metrics", k8sType="aws", label_beta_kubernetes_io_arch="amd64", label_beta_kubernetes_io_instance_type="c5n.large", label_beta_kubernetes_io_os="linux", label_cluster_update_csi_sap_com_anytime="1", label_failure_domain_beta_kubernetes_io_region="eu-central-1", label_failure_domain_beta_kubernetes_io_zone="eu-central-1c", label_hana_cloud_workload_class_edge="1", label_kubernetes_io_arch="amd64", label_kubernetes_io_hostname="ip-10-250-0-163.eu-central-1.compute.internal", label_kubernetes_io_os="linux", label_networking_gardener_cloud_node_local_dns_enabled="false", label_node_kubernetes_io_instance_type="c5n.large", label_node_kubernetes_io_role="node", label_topology_ebs_csi_aws_com_zone="eu-central-1c", label_topology_kubernetes_io_region="eu-central-1", label_topology_kubernetes_io_zone="eu-central-1c", label_worker_garden_sapcloud_io_group="edge", label_worker_gardener_cloud_cri_name="containerd", label_worker_gardener_cloud_kubernetes_version="1.26.11", label_worker_gardener_cloud_pool="edge", landscape="cluster01", node="ip-10-250-0-163.eu-central-1.compute.internal", project="hc-dev", prometheus="monitoring/prometheus", region="eu-central-1"}, {cluster="cluster01-dmi", clusterType="dmi", container="opencost", endpoint="http", instance="<IP_ADDRESS>:9003", instance_type="c5n.large", job="opencost", k8sType="aws", label_beta_kubernetes_io_arch="amd64", label_beta_kubernetes_io_instance_type="c5n.large", label_beta_kubernetes_io_os="linux", label_cluster_update_csi_sap_com_anytime="1", label_failure_domain_beta_kubernetes_io_region="eu-central-1", label_failure_domain_beta_kubernetes_io_zone="eu-central-1c", label_hana_cloud_workload_class_edge="1", label_kubernetes_io_arch="amd64", label_kubernetes_io_hostname="ip-10-250-0-163.eu-central-1.compute.internal", label_kubernetes_io_os="linux", label_networking_gardener_cloud_node_local_dns_enabled="false", label_node_kubernetes_io_instance_type="c5n.large", label_node_kubernetes_io_role="node", label_topology_ebs_csi_aws_com_zone="eu-central-1c", label_topology_kubernetes_io_region="eu-central-1", label_topology_kubernetes_io_zone="eu-central-1c", label_worker_garden_sapcloud_io_group="edge", label_worker_gardener_cloud_cri_name="containerd", label_worker_gardener_cloud_kubernetes_version="1.26.11", label_worker_gardener_cloud_pool="edge", landscape="cluster01", namespace="opencost", node="ip-10-250-0-163.eu-central-1.compute.internal", pod="opencost-5f7549c7f8-8kxtf", project="hc-dev", prometheus="monitoring/prometheus", region="eu-central-1", service="opencost"}];many-to-many matching not allowed: matching labels must be unique on one side

Any hints on how to solve / work around?
Thanks!

Most probably main reason here is that opencost  duplicates kube-state-metrics (uses same names) for it's metrics

To check u can try to simply search for kube_node_info metrics in grafana explorer you probably will see it doubled with additional instances related to opencost.
P.S. i have tried to adjust setting mentioned in https://www.opencost.io/docs/installation/helm#example-configuration
...
opencost:
  exporter:
    extraEnv:
      EMIT_KSM_V1_METRICS: "false"
      EMIT_KSM_V1_METRICS_ONLY: "true"

however for some reason this not worked, so I ended up with uninstalling opencost and switching to aks-cost-analysis addon which is actually also based on opencost :)


Show disabled recipes

Suggestion
I would like to have option to toggle to show and use disabled recipes.
Py mods (https://mods.factorio.com/user/pyanodon) have T.U.R.D mechanics which allows using different (upgraded) recipes after activating them (by choosing from 3 for same building). Recipes are disabled (I can see them in Recipe Book marked as disabled) before being choosen. And I would like to use Factory Planner with these disabled recipes to compare them with current version I am using.

Hello, sorry for the late response.  Mods use these a lot for hacky scripting reasons. So it would need to be a custom solution, specially done for Py's. I avoided this up till now since it's a giant support burden. I have however had an idea for how to solve this recently, but I don't know when this will actually come to be. Info here #332 (not quite filled in yet)


Not returning error when writers respond with 2xx

@martingartonft can you also push the Dockerfile please?

https://github.com/Financial-Times/up-restutil/pull/1

+1


Layouts: Add form layout example

Layouts

Add a "Layouts" page
Add a Form Layout example which is responsive, works with RTL and dark mode

Test Plan

[ ] Test on netlify as soon as the preview goes out
[ ] Approved by design /cc @ashleyseto @anniemochi

I think it looks correct. I'm not sure about the implementation though. I would expect it to be 24px bottom rather than around. It is adding space to the left and the right that might not be wanted when trying to line up content inside containers like the Module that should already have padding defined.

I think it looks correct. I'm not sure about the implementation though. I would expect it to be 24px bottom rather than around. It is adding space to the left and the right that might not be wanted when trying to line up content inside containers like the Module that should already have padding defined.

@ashleyseto agreed - I removed the padding around so it will work within other containers which already have padding set. As to the bottom (and left/right) - we do use symmetrical padding in Gestalt since:

It automatically looks good when the elements wrap one below the other
Works with RTL
There is no need to know whether the next row will be rendered which helps with composability of each row. (We see this use case quite often on the Pinterest settings page)

@christianvuerings https://www.loom.com/share/2a0615667601470b8cc39bb314e9b00a Not an expert on accessibility at all. Should the screen reader read the form title?.

@christianvuerings https://www.loom.com/share/2a0615667601470b8cc39bb314e9b00a Not an expert on accessibility at all. Should the screen reader read the form title?.

@AlbertCarreras Yes, that is correct and it does read it when you instruct the screenreader to do so.
See https://webaim.org/articles/voiceover/#reading for how to navigate with voiceover. When running through, I usually use
VO + →: Read next item
When you simply tab through, it will only focus on the elements that can have focus (e.g. TextField / Button)


adapts the unary NOT operator (NOT IN @a syntax)/Support group conditions syntax

Support NOT IN @a  syntax.

Example: sql.GetSelectAll(x => !ids.Contains(x.Id))
Output: WHERE Id NOT IN @Id_p0

Support group conditions syntax

Example: sql.GetSelectAll(x => (x.IsActive && x.Id == 123) || (x.Id == 456 && x.Number == "456"))
Output: WHERE (IsActive = @IsActive_p0 AND Id = @Id_p1) OR (Id = @Id_p2 AND Number = @Number_p3)

@tupunco Thank you! I will review it at weekend.

Find a problem:  sql.GetSelectFirst(x => !x.IsActive) TEST fail

Find a problem:  sql.GetSelectFirst(x => !x.IsActive) TEST fail

fixed

other problem: Update implementation needs to be modified.

other problem: Update implementation needs to be modified.
fixed

Beneficial side effect: fix #79 #42 #55

Ok. I will do some tests, actualize all code, and release it


fix unintilized bug caused by make_unique_for_overwrite

This PR fixes a bug use_of_uninitialized_value runtime error. It is caused by using make_unique_for_overwrite instead of make_unique which causes uninitialized values.
Bug: http://b/241880512

This PR fixes a bug use_of_uninitialized_value runtime error. It is caused by using make_unique_for_overwrite instead of make_unique which causes uninitialized values.
Bug: http://b/241880512


Reduce 1 tick delay in instr fetch stage

This will also likely affect the delay of default branch prediction and RAS pop

Removing the pipeline stage caused the max freq to drop to around 50MHz, which is just too slow. See  https://github.com/meow-chip/MeowV64/commit/09fe710cf091db4109d852359409044c61b23b2c


刷payload.bin时提示Writing 'product_a' FAILED (remote: 'No such file or directory')

日志如下：
Extracting apusys
Extracted apusys
Extracting audio_dsp
Extracted audio_dsp
Extracting boot
Extracted boot
Extracting ccu
Extracted ccu
Extracting dpm
Extracted dpm
Extracting dtbo
Extracted dtbo
Extracting gpueb
Extracted gpueb
Extracting gz
Extracted gz
Extracting lk
Extracted lk
Extracting logo
Extracted logo
Extracting mcf_ota
Extracted mcf_ota
Extracting mcupm
Extracted mcupm
Extracting md1img
Extracted md1img
Extracting mvpu_algo
Extracted mvpu_algo
Extracting odm
Extracted odm
Extracting odm_dlkm
Extracted odm_dlkm
Extracting pi_img
Extracted pi_img
Extracting preloader_raw
Extracted preloader_raw
Extracting product
Extracted product
Extracting scp
Extracted scp
Extracting spmfw
Extracted spmfw
Extracting sspm
Extracted sspm
Extracting system
Extracted system
Extracting system_ext
Extracted system_ext
Extracting tee
Extracted tee
Extracting vbmeta
Extracted vbmeta
Extracting vbmeta_system
Extracted vbmeta_system
Extracting vbmeta_vendor
Extracted vbmeta_vendor
Extracting vcp
Extracted vcp
Extracting vendor
Extracted vendor
Extracting vendor_boot
Extracted vendor_boot
Extracting vendor_dlkm
Extracted vendor_dlkm
Extracting mi_ext
Extracted mi_ext
Sending 'apusys_a' (1372 KB)                       OKAY [  0.090s]
Writing 'apusys_a'                                 OKAY [  0.007s]
Finished. Total time: 0.117s
Sending 'audio_dsp_a' (5388 KB)                    OKAY [  0.362s]
Writing 'audio_dsp_a'                              OKAY [  0.014s]
Finished. Total time: 0.387s
Sending 'boot_a' (65536 KB)                        OKAY [  3.193s]
Writing 'boot_a'                                   OKAY [  0.094s]
Finished. Total time: 3.951s
Sending 'ccu_a' (172 KB)                           OKAY [  0.006s]
Writing 'ccu_a'                                    OKAY [  0.002s]
Finished. Total time: 0.018s
Sending 'dpm_a' (260 KB)                           OKAY [  0.008s]
Writing 'dpm_a'                                    OKAY [  0.002s]
Finished. Total time: 0.020s
Sending 'dtbo_a' (32768 KB)                        OKAY [  1.527s]
Writing 'dtbo_a'                                   OKAY [  0.050s]
Finished. Total time: 1.589s
Sending 'gpueb_a' (128 KB)                         OKAY [  0.004s]
Writing 'gpueb_a'                                  OKAY [  0.001s]
Finished. Total time: 0.016s
Sending 'gz_a' (1984 KB)                           OKAY [  0.082s]
Writing 'gz_a'                                     OKAY [  0.012s]
Finished. Total time: 0.100s
Sending 'lk_a' (2928 KB)                           OKAY [  0.137s]
Writing 'lk_a'                                     OKAY [  0.010s]
Finished. Total time: 0.153s
Sending 'logo_a' (3360 KB)                         OKAY [  0.138s]
Writing 'logo_a'                                   OKAY [  0.013s]
Finished. Total time: 0.158s
Sending 'mcf_ota_a' (3328 KB)                      OKAY [  0.139s]
Writing 'mcf_ota_a'                                OKAY [  0.012s]
Finished. Total time: 0.162s
Sending 'mcupm_a' (616 KB)                         OKAY [  0.021s]
Writing 'mcupm_a'                                  OKAY [  0.006s]
Finished. Total time: 0.037s
Sending 'md1img_a' (74884 KB)                      OKAY [  3.912s]
Writing 'md1img_a'                                 OKAY [  0.106s]
Finished. Total time: 4.026s
Sending 'mvpu_algo_a' (60 KB)                      OKAY [  0.002s]
Writing 'mvpu_algo_a'                              OKAY [  0.001s]
Finished. Total time: 0.012s
Resizing 'odm_a'                                   OKAY [  0.003s]
Sending 'odm_a' (17276 KB)                         OKAY [  0.878s]
Writing 'odm_a'                                    OKAY [  0.084s]
Finished. Total time: 0.974s
Resizing 'odm_dlkm_a'                              OKAY [  0.002s]
Sending 'odm_dlkm_a' (340 KB)                      OKAY [  0.011s]
Writing 'odm_dlkm_a'                               OKAY [  0.048s]
Finished. Total time: 0.067s
Sending 'pi_img_a' (8 KB)                          OKAY [  0.001s]
Writing 'pi_img_a'                                 OKAY [  0.000s]
Finished. Total time: 0.016s
Sending 'preloader_raw_a' (472 KB)                 OKAY [  0.015s]
Writing 'preloader_raw_a'                          OKAY [  0.008s]
Finished. Total time: 0.032s
Invalid sparse file format at header magic
Resizing 'product_a'                               OKAY [  0.003s]
Sending sparse 'product_a' 1/6 (262140 KB)         OKAY [ 12.908s]
Writing 'product_a'                                FAILED (remote: 'No such file or directory')
fastboot: error: Command failed
Sending 'scp_a' (2120 KB)                          OKAY [  0.082s]
Writing 'scp_a'                                    OKAY [  0.008s]
Finished. Total time: 0.098s
Sending 'spmfw_a' (20 KB)                          OKAY [  0.001s]
Writing 'spmfw_a'                                  OKAY [  0.001s]
Finished. Total time: 0.009s
Sending 'sspm_a' (976 KB)                          OKAY [  0.033s]
Writing 'sspm_a'                                   OKAY [  0.006s]
Finished. Total time: 0.045s
Invalid sparse file format at header magic
Resizing 'system_a'                                OKAY [  0.003s]
Sending sparse 'system_a' 1/4 (262140 KB)          OKAY [ 13.093s]
Writing 'system_a'                                 OKAY [  0.541s]
Sending sparse 'system_a' 2/4 (237068 KB)          OKAY [ 11.518s]
Writing 'system_a'                                 OKAY [  0.456s]
Sending sparse 'system_a' 3/4 (262140 KB)          OKAY [ 12.637s]
Writing 'system_a'                                 OKAY [  0.491s]
Sending sparse 'system_a' 4/4 (84856 KB)           OKAY [  3.898s]
Writing 'system_a'                                 OKAY [  0.245s]
Finished. Total time: 43.962s
Invalid sparse file format at header magic
Resizing 'system_ext_a'                            OKAY [  0.003s]
Sending sparse 'system_ext_a' 1/2 (262140 KB)      OKAY [ 12.735s]
Writing 'system_ext_a'                             OKAY [  0.791s]
Sending sparse 'system_ext_a' 2/2 (166784 KB)      OKAY [  7.270s]
Writing 'system_ext_a'                             OKAY [  0.326s]
Finished. Total time: 21.680s
Sending 'tee_a' (3408 KB)                          OKAY [  0.124s]
Writing 'tee_a'                                    OKAY [  0.016s]
Finished. Total time: 0.150s
Sending 'vbmeta_a' (8 KB)                          OKAY [  0.001s]
Writing 'vbmeta_a'                                 OKAY [  0.001s]
Finished. Total time: 0.009s
Sending 'vbmeta_system_a' (4 KB)                   OKAY [  0.001s]
Writing 'vbmeta_system_a'                          OKAY [  0.001s]
Finished. Total time: 0.014s
Sending 'vbmeta_vendor_a' (4 KB)                   OKAY [  0.001s]
Writing 'vbmeta_vendor_a'                          OKAY [  0.001s]
Finished. Total time: 0.010s
Sending 'vcp_a' (1552 KB)                          OKAY [  0.053s]
Writing 'vcp_a'                                    OKAY [  0.012s]
Finished. Total time: 0.072s
Invalid sparse file format at header magic
Resizing 'vendor_a'                                OKAY [  0.003s]
Sending sparse 'vendor_a' 1/8 (262140 KB)          OKAY [ 13.112s]
Writing 'vendor_a'                                 OKAY [  0.477s]
Sending sparse 'vendor_a' 2/8 (262140 KB)          OKAY [ 12.005s]
Writing 'vendor_a'                                 OKAY [  0.490s]
Sending sparse 'vendor_a' 3/8 (245388 KB)          OKAY [ 12.407s]
Writing 'vendor_a'                                 OKAY [  0.458s]
Sending sparse 'vendor_a' 4/8 (262140 KB)          OKAY [ 13.784s]
Writing 'vendor_a'                                 OKAY [  0.667s]
Sending sparse 'vendor_a' 5/8 (262140 KB)          OKAY [ 12.779s]
Writing 'vendor_a'                                 OKAY [  0.604s]
Sending sparse 'vendor_a' 6/8 (262140 KB)          OKAY [ 12.538s]
Writing 'vendor_a'                                 OKAY [  0.610s]
Sending sparse 'vendor_a' 7/8 (262140 KB)          OKAY [ 14.011s]
Writing 'vendor_a'                                 OKAY [  0.500s]
Sending sparse 'vendor_a' 8/8 (122900 KB)          OKAY [  6.477s]
Writing 'vendor_a'                                 OKAY [  0.449s]
Finished. Total time: 103.985s
Sending 'vendor_boot_a' (65536 KB)                 OKAY [  3.278s]
Writing 'vendor_boot_a'                            OKAY [  0.120s]
Finished. Total time: 3.407s
Resizing 'vendor_dlkm_a'                           OKAY [  0.002s]
Sending 'vendor_dlkm_a' (18964 KB)                 OKAY [  0.832s]
Writing 'vendor_dlkm_a'                            OKAY [  0.088s]
Finished. Total time: 0.930s
Resizing 'mi_ext_a'                                OKAY [  0.002s]
Sending 'mi_ext_a' (20 KB)                         OKAY [  0.001s]
Writing 'mi_ext_a'                                 OKAY [  0.054s]
Finished. Total time: 0.062s
手机是红米note11t pro，固件是miui_XAGA_V<IP_ADDRESS>.TLOCNXM_3a52786fc2_13.0.zip 。可能不是工具问题，即使用fastboot命令手动刷解压出来的product.img也是这个提示，不确定是否解压出来的img有问题

我也是红米，这个分区确实存在，但刷不了


fix(owner-tool): use the new API to export ovs

This change allows the use of the new REST API to export either a single ov or multiple (tar-ed up).
Tested with the following:
$ ./target/debug/fdo-owner-tool export-manufacturer-vouchers --device-guid ba934a85-d55e-4930-0595-faeaa6090ddf http://localhost:8080
$ ./target/debug/fdo-owner-tool export-manufacturer-vouchers --device-guid ba934a85-d55e-4930-0595-faeaa6090ddf --path /home/amurdaca http://localhost:8080
$ ./target/debug/fdo-owner-tool export-manufacturer-vouchers http://localhost:8080

I'd love to see some unit tests for this. We lacked unit tests in #673, too. We can do better! 💪

these functionalities are (to me) better covered with functional tests (which both this and #673 already have) - the remaining part is rust's warp wrapping which I'm not sure we need to cover (as we already run the tool, effectively excercising the paths here)

ready for review now!


:nth-last-child selector incorrectly starts at 0 instead of 1

Using cssselect 0.9.1, the :nth-last-child selector starts from 0 instead of 1, that is, :nth-last-child(0) selects the last element when it should instead select nothing.
Here is an example using lxml:
import lxml.html

html_fragment = lxml.html.fromstring("""

First

Second

Second Last

Last

""")

for element in html_fragment.cssselect("div > p:nth-last-child(1)"):
    print(element.text_content())

print()

for element in html_fragment.cssselect("div > p:nth-last-child(2n)"):
    print(element.text_content())

Output:
Second Last

Second
Last

Expected output:
Last

First
Second Last

@Dobz , #42 also fixes your example

Fixed in https://github.com/scrapy/cssselect/pull/60


Reduce the number of .cs files

We have way too many files. Often, it doesn't make sense, so we can do better and merge several files.

Closing as not top priority, now that LibVLCSharp has landed.


ref: invoke docker directly to publish

Is there a way to make sure this works? I see no reason for it to not work, just asking in case there's an edge case around docker in docker stuff.

Is there a way to make sure this works? I see no reason for it to not work, just asking in case there's an edge case around docker in docker stuff.

I don't have a good way to try it without merging :/ -- I know the env stuff works, but hmmm docker-in-docker might be a problem since this doesn't mount the socket -- will poke at that

Is there a way to make sure this works? I see no reason for it to not work, just asking in case there's an edge case around docker in docker stuff.

I don't have a good way to try it without merging :/ -- I know the env stuff works, but hmmm docker-in-docker might be a problem since this doesn't mount the socket -- will poke at that

or more specifically docker-beside-docker since we're not actually doing dind


Moving FAQ Where is the tool help?

This file answers the FAQ "Where is the tool help?"

@Beachyesh this PR means that we close #3322, correct?

Yess, I think we can close it.

@Beachyesh this PR means that we close #3322, correct?

Yess, I think we can close it.

great, will do! This one looks good to me, ready to merge, thanks :)


Update to babel 6

@arb here is the babel 6 update. I really dislike the -I __core-js_shared__ in package.json. I'll let you decide if you want to merge this or not. Hopefully babel will fix this.

What is the benefit of this update? I know you like to stay on top of dev dependencies, but what is the gain here?

Staying up to date is the benefit. Otherwise, you could probably use Babel 1.0.0. Like I said, I don't like the change to the npm test command though.

LGTM


Replace "sparse run" with Flux YAML generator

With @dan-blanchard's work on a Python Topology DSL, he is able to reproduce all of the streamparse commands in pure Python with the exception of sparse run.

One approach is to take a closer look at Storm's new Flux contrib module. As described here, Flux includes a YAML configuration, for which one option is to wire up a JVM class that returns a StormTopology instance. Alternatively we could generate the YAML for our topologies using the Python DSL representation of the Topology DAG.
This could be nice since Flux is bundled with Storm and so we could instruct people to install Storm locally (e.g. in an /opt directory) and then rely upon Flux and an auto-generated Flux YAML configuration (and perhaps a simple pre-compiled JAR that implements the Java class that Flux expects, depending on how this is implemented).

multilang Flux YAML example: https://github.com/apache/storm/blob/master/external/flux/flux-examples/src/main/resources/multilang.yaml
Flux CLI: https://github.com/apache/storm/tree/master/external/flux#command-line-options

Notice the flux -l and -d flags for local topology validation and running.

I'm included to just generate YAML from our DAG, because that would be very simple.


"Open EDITORS" UNSAVED don't track new notebooks

Issue Type: Bug

Create new notebooks and edit them
We can see the files have dirty icon. But in EXPLORER, the UNSAVED count is not increased.

Azure Data Studio version: azuredatastudio 1.3.8-insider (b6e32cdeb439246afc6fdcd11d9af2c74ba0ea5a, 2018-12-10T22:09:47.695Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (8 x 3600)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
63.92GB (46.43GB free)

Process Argv
C:\Program Files\Azure Data Studio\azuredatastudio.exe

Screen Reader
no

VM
0%

Extensions (1)

Extension
Author (truncated)
Version

sql-vnext
Mic
0.9.1

It does track SQL Files.

This has been fixed and is now being tracked properly.


Descriptions don't work on optional fields

This doesn't seem to work:
z.string().optional().description('my description')
But this does
z.string().description('my description').optional()

Interesting! Probably a bug with zod - could you open an issue over there please 🙏


Veracode scan XSS security vulnerability

I am running into a Veracode scan XSS (CWE ID 80) security vulnerability. Although flagged a Medium, this is a significant finding with zuul-core v1.3.0. Has anyone else reported this issue, and is there a target version of zuul-core that may address it?
Flaw Id Module # Class # Module Location Fix By
4 2 - ecc-zuul-server-
1.0.0.jar/zuul-core-
1.3.0.jar
.../HttpServletRequestWrapper.java 228 3/1/18

Can you please expand on what the issue is and where in the code you found it?

I have a SpringBoot application using spring-cloud-starter-zuul version 1.4.4.RELEASE that works as a Router / Gateway, and when I Veracode security scan it, a Medium security flaw (XSS) is flagged.
Cross-Site Scripting (CWE ID 80)
.../zuul-core1.3.0.jar: .../HttpServletRequestWrapper.java:228