What is the correct way of resuming a simulation with SeBa?

When I stop and later resume a simulation that includes stellar evolution with SeBa, it seems that these stars start again from age 0 when I re-add them to SeBa. How should I rewrite this script so that the stars properly resume their evolution, and that their ages (which aren't equal for all the stars) are properly taken into account?
from amuse.units import units
from amuse.ext.masc import new_star_cluster
from amuse.community.seba.interface import Seba

stars = new_star_cluster(number_of_stars=100)

evo = Seba()
stars_in_seba = evo.particles.add_particles(stars)
code_to_model = stars_in_seba.new_channel_to(stars)
evo.evolve_model(1.0 | units.Myr)
code_to_model.copy()
evo.stop()

print(
    "The average age of stars is %s (± %s)"
    % (stars.age.mean(), stars.age.std())
)

evo = Seba()
stars_in_seba = evo.particles.add_particles(stars)
print(
    "The average age of stars after restarting is %s (± %s)"
    % (stars_in_seba.age.mean(), stars_in_seba.age.std())
)
evo.stop()

The only workaround I can think of is to replay the stellar evolution history completely, which wouldn't be great... I'm hoping there's a better alternative. Any suggestions @spzwart, @silviatoonen?

For now in SeBa, this is the only option. However, if all your stars are single stars (no binaries), it should take little computational efforts to jump to any specific time in the evolution of the stars.

Thanks. For now, I'm dealing with single stars so I can use this workaround. But it would be great if it were possible to resume a calculation - at some point I might want to include binaries :).
For completeness, this is a script that includes the workaround:
import numpy
from amuse.units import units
from amuse.datamodel import Particles
from amuse.ext.masc import new_star_cluster
from amuse.community.seba.interface import Seba

epochs = [0.79, 0.89, 0.94, 0.99] | units.Myr
stars = Particles()
evo = Seba()
offset = None

for time in epochs:
    print("Evolving to time %s" % time)
    if offset is None:
        offset = time
    else:
        evo.evolve_model(time-offset)
    new_stars = new_star_cluster(
        number_of_stars=100,
        lower_mass_limit=2 | units.MSun
    )
    new_stars.birth_mass = new_stars.mass
    new_stars.birth_time = time
    stars.add_particles(new_stars)
    evo.particles.add_particles(new_stars)
    evo.particles.new_channel_to(stars).copy()

evo.stop()

evo = Seba()
stars_with_original_mass = stars.copy()
stars_with_original_mass.mass = stars_with_original_mass.birth_mass
epochs, indices = numpy.unique(
    stars_with_original_mass.birth_time,
    return_inverse=True,
)
offset = None
for i, time in enumerate(epochs):
    if offset is None:
        offset = time
    else:
        evo.evolve_model(time-offset)
    evo.particles.add_particles(
        stars_with_original_mass[indices == i],
    )

For now in SeBa, this is the only option. However, if all your stars are single stars (no binaries), it should take little computational efforts to jump to any specific time in the evolution of the stars.

Unfortunately, at a certain time I will have very many stars, all born at different times. Getting back to the right evolutionary state is more time-consuming than I'd like.
Would it be possible to save the complete state of a star in SeBa, so that it can resume from that state? What would be needed to make this work?

This would be especially of importance when at some point I include binary stars in my simulations, of course.

Hmm, I'd say theoretically if the complete state (whatever that means, something like total mass, relative mass, age, core-mass, stellar-type) is saved, it should be possible. At the moment that infrastructure within SeBa doesn't exist.

After some digging, here's the gist on what is needed:
Yes, SeBa can start a simulation with any specific stellar type. This is already possible when using SeBa as a stand alone code. At this moment the implementation in the AMUSE interface is missing -> see line 413 in new_particle() in interface.cc : add_star (.., .., start_type, ..., ...) where start_type is defined on line 18 as static stellar_type start_type = Main_Sequence; What is needed is the option to new_particle to specify the stellar type (note that the stellar types in SeBa are slightly different (fewer) than those of AMUSE).
Besides this one should specify the following parameters:
relative_mass
envelope_mass
core_mass
if on the AGB: COcore_mass
current_time
relative_age
There are different ways of accomplishing this which all need some programming (e.g. adjusting add_star, or making functions which which an amuse user can change the parameters at run time)

After some digging, here's the gist on what is needed:
Yes, SeBa can start a simulation with any specific stellar type. This is already possible when using SeBa as a stand alone code. At this moment the implementation in the AMUSE interface is missing -> see line 413 in new_particle() in interface.cc : add_star (.., .., start_type, ..., ...) where start_type is defined on line 18 as static stellar_type start_type = Main_Sequence; What is needed is the option to new_particle to specify the stellar type (note that the stellar types in SeBa are slightly different (fewer) than those of AMUSE).
Besides this one should specify the following parameters:
relative_mass
envelope_mass
core_mass
if on the AGB: COcore_mass
current_time
relative_age
There are different ways of accomplishing this which all need some programming (e.g. adjusting add_star, or making functions which which an amuse user can change the parameters at run time)

Great! I’ll see if I can add the necessary functions for this.

Great! I’ll see if I can add the necessary functions for this.

Related question, while I am at it: is it possible to have individual metallicities for the stars? That's currently not allowed by the AMUSE interface but I don't see why SeBa couldn't do it.

Related question, while I am at it: is it possible to have individual metallicities for the stars? That's currently not allowed by the AMUSE interface but I don't see why SeBa couldn't do it.

(it looks possible so I will include this in my updates)

(it looks possible so I will include this in my updates)

SeBa-wise it should be fine. Sounds like an Amuse interface thing.

SeBa-wise it should be fine. Sounds like an Amuse interface thing.

cool. I think it's easiest to add optional parameters to addstar in SeBa, since you'd only want to set these when adding a star. I'll submit a PR to SeBa.

cool. I think it's easiest to add optional parameters to addstar in SeBa, since you'd only want to set these when adding a star. I'll submit a PR to SeBa.

I don't completely understand t_cur and t_current in SeBa's addstar.
Currently, when adding a star to SeBa from AMUSE these would always be set to the current time of SeBa (which starts at 0). When restarting, should this be the star's age instead? Or the time the star was born plus the star's age?

I don't completely understand t_cur and t_current in SeBa's addstar.
Currently, when adding a star to SeBa from AMUSE these would always be set to the current time of SeBa (which starts at 0). When restarting, should this be the star's age instead? Or the time the star was born plus the star's age?

For SeBa, ages are always measured from the zero-age main-sequence of that star. aka SeBa doesn't care when the star was born. The thing to pay attention to is the difference between current_time and relative_age, the former being the actual time passed since the zero-age main-sequence, the latter being a measure for how far a long a stellar evolution track the star is.

For SeBa, ages are always measured from the zero-age main-sequence of that star. aka SeBa doesn't care when the star was born. The thing to pay attention to is the difference between current_time and relative_age, the former being the actual time passed since the zero-age main-sequence, the latter being a measure for how far a long a stellar evolution track the star is.


[Bug] [3.0.0-beta-2] custom parameter does not work in spark plugin sql task

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
I create a spark sql task to run a spark sql to insert data to another table.
I add a custom parameter and run the task, it failed, the log showed there was a null pointer exception.

[ERROR] 2022-07-20 07:56:30.177 +0000 [taskAppId=TASK-20220720-6246094233696_12-28-70] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.spark.SparkTask:[53] - yarn process failure
java.lang.NullPointerException: null
at org.apache.dolphinscheduler.plugin.task.api.parameters.AbstractParameters.getInputLocalParametersMap(AbstractParameters.java:96)
at org.apache.dolphinscheduler.plugin.task.api.parser.ParamUtils.convert(ParamUtils.java:64)
at org.apache.dolphinscheduler.plugin.task.spark.SparkTask.buildCommand(SparkTask.java:120)
at org.apache.dolphinscheduler.plugin.task.api.AbstractYarnTask.handle(AbstractYarnTask.java:48)
at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:180)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

What you expected to happen
I think It shoud run properly. But It failed, and It seemed not submit the job to yarn.
How to reproduce
just create a spark task, set "Program Type" to "SQL", use a custom parameter, and run it.
Anything else
I check the database to compare this task and a normally SQL task, I found that in "t_ds_task_definition" table, the json field "localParam" in task_param field lack 2 properties: direct and type
I add the properties manually and rerun the task, it works.
I think the issue is caused by the frontend, when add a custom parameter, there should have 4 properties, but spark task can only input 2 of them, the others didn't have default value.
I didn't know much about frontend, I think someone should fix it.
Version
3.0.0-beta-2
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I use just this param, you can write any SQL in editor. It will run in exception before submit the task.

I will submit a pr to fix this issue.

I found it's just error in 3.0.0 branch and dev is ok. So I will fix in 3.0.0 branch.

I found it's just error in 3.0.0 branch and dev is ok. So I will fix in 3.0.0 branch.

The dev also has this issue, so keep this issue open until dev fix.


Could you get it on dnf?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I want to install it on fedora without building it myself.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Getting put on copr.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Have you checked the wiki?
Yes?

https://copr.fedorainfracloud.org/coprs/errornointernet/walker/


Make HexEdit::paintEvent() 2x faster

Changes:

painter.drawText() -> painter.drawStaticText() + text cache (20% speedup)
Removed unused QSettings settings; in a frequently called function (6% speedup)
Changed one i-based loop to foreach (1.5%)
Many other small changes, each giving few percents.

Fixed, please check again.


symbolic operation

hello， the RVC3-matlab dose not support symbolic operation. For example:

rotmx(theta)

ans =
[1,          0,           0]
[0, cos(theta), -sin(theta)]
[0, sin(theta),  cos(theta)]
this one is ok, but for so3, se3, Twist and so on, it can't work.
Do you have any plans to carry out this update, which is very important for the kinematics and dynamics research of robots

The functions so3, se3 are part of core MATLAB, and their support for symbolics is a MathWorks decision not ours.  Twist uses se3 internally and so it inherits the limitation.
Either stick with native matrices, or try the older Robotics Toolbox for MATLAB on my GitHub but unfortunately that's no longer being maintained.


Open folder on linux is broken

Steps to Reproduce:

Select File -> Open Folder.
Navigate to folder where you want to open (E.g. Double click on 'File System', then 'tmp', then 'blah'. Blah will be opened in the file chooser window.
Click 'Ok'.

Expected Results:
:white_check_mark:  Atom opens folder /tmp/blah for editing.
Actual Results:
:x: Atom opens user's home folder (in my case, /home/sjohnson).
In order to actually open the folder I want, I would have to navigate to /tmp and then select (but not double-click) blah. I think that, if nothing is selected in the current folder in the navigation window, it should use the current folder instead of the user's home folder.

Same for me on ElementaryOS Luna

Same here on Atom 0.187.0 and Ubuntu 12.04.

I read somewhere this was waiting on atom/electron#613 , That is closed so is this working now?

Yup, this should be fixed now (with an OS update for anyone experiencing this still). Thanks!


add content-addressed data endpoint to iroh.network

See discussion in https://discord.com/channels/949724860232392765/1119027107201286214/1171415290492489818 etc.
Yep. I vote we do this. Endpoint should be GET /api/blobs/:hash

We now got the gateway in https://github.com/n0-computer/iroh-examples/tree/main/iroh-gateway , see https://github.com/n0-computer/iroh/issues/1776
All that would have to be done is to copy over the code. It is also using axum.

We won't be expanding the scope of iroh.network for now


Latest staging version fails to show pages, looking for ads.txt or app_ads.txt

I pulled the latest staging version and restarted the docker compose. Now none of the applications will show up in the browser.
The web log has the following error message:
$ tail /var/log/planorama/web/planorama.log
# Logfile created on 2022-10-29 08:43:37 +0000 by logger.rb/v1.4.2F, [2022-10-29T08:43:37.849711 #32]
FATAL -- :   ActionController::RoutingError (No route matches [GET] "/ads.txt"):
 F, [2022-10-29T08:43:38.054530 #32] FATAL -- :   ActionController::RoutingError (No route matches [GET] "/app-ads.txt"):

There are no such files ads.txt etc in the code or docker image. If you are seeing this in the log it is probably because a browser or bot is requesting this "file", a routing error should effectively result in a 401 (not found) response to the client.

Closing because this was a start timing error


[Dcmtk] enable dependencies

Describe the pull request

What does your PR fix?
Enable iconv icu openssl png tiff xml2 zlib dependencies and STL, etc

Which triplets are supported/not supported? Have you updated the CI baseline?
All, Yes

Does your PR follow the maintainer guide?

Yes

If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

Thanks!


Use xelatex in addition to pdflatex

What is the easiest way to enable xelatex support?

Nevemind, I just added xetex to tlmgr instead of xelatex


appservice: improvements on create, runtime stack configurations

Changes at high level:

Create webapp to replace appservice web (will maintain appservice web for 2 releases before removing)
Integrate deployment, and runtime stack configurations on webapp create
Expose webapp list-runtimes

Note, the deprecating mechanism to warn on using old appservice web will be submitted as a separate PR which will go through team discussions
Sample:
(env) D:\sdk\azure-cli>az webapp list-runtimes
[
   ...
   "node|6.0",
   "node|6.1"
  ...
]

az webapp create -n web1 --plan plan1 --deployment-local-git -r "node|6.1"

az webapp create -n linuxweb1 --plan plan2 -i naziml/ruby-hello

Codecov Report

Merging #3115 into master will increase coverage by 0.08%.
The diff coverage is 81.9%.

@@            Coverage Diff             @@
##           master    #3115      +/-   ##
==========================================
+ Coverage   70.42%   70.51%   +0.08%
==========================================
  Files         360      360
  Lines       23188    23431     +243
  Branches     3556     3587      +31
==========================================
+ Hits        16330    16522     +192
- Misses       5820     5863      +43
- Partials     1038     1046       +8

Impacted Files
Coverage Δ

.../cli/command_modules/appservice/_client_factory.py
35.71% <10%> (-64.29%)
:arrow_down:

...ce/azure/cli/command_modules/appservice/_params.py
96.82% <100%> (+2.65%)
:arrow_up:

...vice/azure/cli/command_modules/appservice/_help.py
100% <100%> (ø)
:arrow_up:

...ice/azure/cli/command_modules/appservice/custom.py
73.29% <61.22%> (-1.76%)
:arrow_down:

...e/azure/cli/command_modules/appservice/commands.py
89.39% <98.03%> (+6.06%)
:arrow_up:

Continue to review full report at Codecov.

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


Multiple commits

Open web browser automatically when using -Pwebserver.
Do nothing when clicking User Portal.
3)When logging out call /destroy-session endpoint first before redirecting to cas logout page

I’m merging it, but please submit another pull request in which logout can be configured to a URL other than CAS logout

I have made a new pull request to make the logout configurable.


preview: Fix more build headaches caused by X11

This time it's because X11 #defines "None" (which is going to be a
problem when the libcamera colour space changes get merged). This
workaround seems to be adequate.
Signed-off-by: David Plowman<EMAIL_ADDRESS>

@naushir Prophylactic fix for libcamera colour spaces...


Fix comment line prefix in run_samples.cmd script.

@jthelin : Nice catch !   Good to Me.
The compilation error  seems due to some Ubuntu software package installation and NuGet restore failure (timeout).
Probably re-run it will come back to normal.

LGTM.


neovim: add lua language server lint checks to CI

Atm warnings from vscode triggered by sumneko.lua plugin (using lua language server) don't fire in CI. This should ideally added via .pre-commit so people that run that locally can also see the errors in advance.

we would also ideally find a way to have a single source of truth for the lua language server config. Today it's all in .vscode/settings.json, which won't be read by CI


Request: Confirm 'Closing of Channel'

Background
On the channel information screen there is the 'Done' on the upper right, and 'Close' at the bottom.  I personally had a moment of confusion on which button will simply close the window, and accidentally closed a channel.
Your environment

Zap 0.1
iOS 11.4.1

Steps to reproduce
Expected behaviour
I think either the UI needs some work or at least a window to confirm the user wants to close the channel.
Actual behaviour
Clicking 'Close' immediately closes the channel.

good point. i'm currently working on a channel list redesign that gets rid of the done button.
you can already see a first draft here: https://twitter.com/ottosuess/status/1023941608079876096

should be fixed on current master


Improve debug actions for multi-target debugging

Problem
I want to debug an application that runs the same code concurrently over many processes (e.g. an MPI application). Using a compound configuration (in launch.json) and the multi-target mode, I can debug each process separately in a unified way, which is good.
However now, whenever the application reaches a breakpoint, I need to manually select "continue" for each process individually. Even with just a few processes, this can become a tedious and error prone task.
Proposed solution
In the debug-actions widget

and/or maybe in the call-stack sidebar

add an option to execute the same debug action on all processes, or maybe even better, on a range of processes.
This would make it much easier to debug applications with a large number of concurrent processes.

Problem
I want to debug an application that runs the same code concurrently over many processes (e.g. an MPI application). Using a compound configuration (in launch.json) and the multi-target mode, I can debug each process separately in a unified way, which is good.
However now, whenever the application reaches a breakpoint, I need to manually select "continue" for each process individually. Even with just a few processes, this can become a tedious and error prone task.
Proposed solution
In the debug-actions widget

and/or maybe in the call-stack sidebar

add an option to execute the same debug action on all processes, or maybe even better, on a range of processes.
This would make it much easier to debug applications with a large number of concurrent processes.

@manie204
I want to know how to start debugging of multiple processes at the same time in vscode. I am also debugging mpi programs. I can only start debugging for one process at the same time.

I want to know how to start debugging of multiple processes at the same time in vscode. I am also debugging mpi programs. I can only start debugging for one process at the same time.

Take a look at this part of the official documentation. In principle, you just create a debugging configuration for each rank you want to debug and then a compound configuration that starts all of them concurrently. You can then pair this mechanism with, for example, gdb and its gdbserver to debug the individual MPI ranks.
You may want to check out mpidb. It's a small debugging tool I created that can automatically write such a launch.json file and execute the MPI application with gdbserver instances attached to each rank.

This is interesting; I might also request a way to specify a breakpoint is active for only one (or a set) launch or process.
I have a use-case for a new debugger where we debug 'tasks' that share code, but we typically only want the breakpoints to be active for one task.  But there's there's no way to specify a breakpoint is active for either a specific "thread" or a specific "target".  Either one would probably work for our use-case.
But I wonder if the latter would also simplify this use-case; you wouldn't need to 'resume all' if one one stopped?


Fix high memory usage problem

add a unit test to ensure the cache work

add a unit test to ensure the cache work

ok


Write pseudocode for the baby lifter

Checklist of Functions

[ ] Lift up
[ ] Detect if fully above wall

Angelique is doing it

From Angelique:
If sensor detects the baby carriage
Then robot stops moving
For until fully extended, robot releases his arms
For until fully lifted, robot lifts arms // this will act as a a sort of dump truck, and the carriage will end up on the back part of the robot
If robot arms are fully lifted up
Then arms retracted back into the robot
Else arms keep retracting
Else Robot rotates 90 degrees and keeps moving


First Chance Exception System.ArgumentException: An item with the same key has already been added.

Seems I had 2 chocolatey packages installed, one was old version <IP_ADDRESS> which caused the problem and choco uninstall chocolatey --version=<IP_ADDRESS> fixed the issue.

Likewise; I had chocolatey version 0.10.3 installed alongside 0.10.7. I'm not sure why this happened but since choco kept working it seems like ChocolateyGUI ought to at least ignore duplicate packages, if not warn the user about specific conflicts.

If anyone runs into this issue again, can you post logs with the origin of the crash? Not sure where this is failing. Logs can be found in C:\ProgramData\ChocolateyGUI\Logs.

I dug out this log from %APPDATA%\ChocolateyGUI\Logs\Chocolatey.gui.debug. Hope it helps to narrow things down, I'm not really familiar with debugging C#. I'm not sure whether it's unique to having two versions of chocolatey installed, or two versions of any package.
2017-04-06 19:59:43,726 [1] INFO ChocolateyGui.App [(null)] - Starting...
2017-04-06 19:59:44,306 [1] DEBUG ChocolateyGui.App [(null)] - First Chance Exception
System.IO.FileNotFoundException: Could not load file or assembly 'System.XmlSerializers, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
File name: 'System.XmlSerializers, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

2017-04-06 19:59:48,260 [1] DEBUG ChocolateyGui.App [(null)] - First Chance Exception
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
2017-04-06 19:59:48,261 [1] DEBUG ChocolateyGui.App [(null)] - First Chance Exception
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at ChocolateyGui.Services.CSharpChocolateyPackageService.<GetInstalledPackages>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2017-04-06 19:59:48,265 [1] FATAL ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel [(null)] - Packages failed to load
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at ChocolateyGui.Services.CSharpChocolateyPackageService.<GetInstalledPackages>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel.<LoadPackages>d__41.MoveNext()
2017-04-06 19:59:50,320 [1] DEBUG ChocolateyGui.App [(null)] - First Chance Exception
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at ChocolateyGui.Services.CSharpChocolateyPackageService.<GetInstalledPackages>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel.<LoadPackages>d__41.MoveNext()
2017-04-06 19:59:50,321 [1] DEBUG ChocolateyGui.App [(null)] - First Chance Exception
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at ChocolateyGui.Services.CSharpChocolateyPackageService.<GetInstalledPackages>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel.<LoadPackages>d__41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2017-04-06 19:59:50,322 [1] FATAL ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel [(null)] - Local source control view model failed to load.
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at ChocolateyGui.Services.CSharpChocolateyPackageService.<GetInstalledPackages>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel.<LoadPackages>d__41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel.<Loaded>d__35.MoveNext()
2017-04-06 19:59:50,323 [1] DEBUG ChocolateyGui.App [(null)] - First Chance Exception
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at ChocolateyGui.Services.CSharpChocolateyPackageService.<GetInstalledPackages>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel.<LoadPackages>d__41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel.<Loaded>d__35.MoveNext()
2017-04-06 19:59:50,323 [1] DEBUG ChocolateyGui.App [(null)] - First Chance Exception
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at ChocolateyGui.Services.CSharpChocolateyPackageService.<GetInstalledPackages>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel.<LoadPackages>d__41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel.<Loaded>d__35.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
2017-04-06 19:59:50,326 [1] FATAL ChocolateyGui.App [(null)] - Unhandled Exception
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at ChocolateyGui.Services.CSharpChocolateyPackageService.<GetInstalledPackages>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel.<LoadPackages>d__41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ChocolateyGui.ViewModels.Controls.LocalSourceControlViewModel.<Loaded>d__35.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at ChocolateyGui.App.Main()

Awesome, that does help! And it'll fail on any doubly installed package. @ferventcoder Is having multiple versions installed something I should support in GUI?

@RichiCoder1 support it, maybe not?
Show it in the local list, yes. Not fail when you have multiple items, definitely yes. There are scenarios where this is the case.

Cool beans. I'll see about rewriting that bit of logic. What should happen when there's two different version irt to updates? With the current logic it'll try and update both if they're not pinned.

@RichiCoder1 if they are SideBySide (Package Information will have AllowMultiple set to true), you update neither of them.

Cool. Will fix that later this evening.

@RichiCoder1 how did you get on with this one?

Looks like this issue is already resolved! At some point during the Chocolatey interface rework, the package caching code got ditched. That being said, we don't respect SxS, so I'm going to fix that.


How to delete a classic pipeline?

Sorry for such a basic question but I can't seem to find anything in the docs here.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 7336a04e-5b38-d02f-8bba-a55445b2f094
Version Independent ID: 783c30b3-63b6-da7c-1336-b000bb8b4c66
Content: Create your first pipeline - Azure Pipelines
Content Source: docs/pipelines/create-first-pipeline.md
Product: devops
Technology: devops-cicd
GitHub Login: @steved0x
Microsoft Alias: sdanie

@Tiberriver256 Thank you for the question.
Go to Pipelines > Builds, select your build and expand the ... (options) in the right-hand corner.  There you should find the Delete option.
Assigning this to the author to address including this in the docs.


CustomValidators function not found

If I update to version 3.2.0 the customValidators function are not defined whenever I do:
req.checkBody().myFunction()
In version 3.1.3 works perfectly.
Regards.

Can you share some reproducible code?

Hello,
Sorry, while trying to get a small snippet for you I discovered we were doing something like:
app.use(expressValidator(validatorConfig1));
app.use(expressValidator(validatorConfig2));

Not sure why that worked until version 3.2.0 but now I changed it so we first merge validatorConfig1 and validatorConfig2 before calling once app.use(expressValidator(validatorConfig));
Feel free to close this ticket.
Thanks.

This used to work because different instances of the express-validator middleware were actually sharing the custom validators.
Interesting to see that this was an unintended breaking change for you.
A fix we could do is to check if the middleware is already mounted on the given express app; if yes, then append the new custom validators to it, instead of replace them.


Return document rev with Get requests

Codecov Report

Merging #76 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #76      +/-   ##
==========================================
+ Coverage   96.92%   96.94%   +0.01%
==========================================
  Files          20       20
  Lines        1235     1243       +8
==========================================
+ Hits         1197     1205       +8
  Misses         27       27
  Partials       11       11

Impacted Files
Coverage Δ

db.go
100% <100%> (ø)
:arrow_up:

attachments.go
100% <100%> (ø)
:arrow_up:

chttp/chttp.go
98.59% <100%> (+0.06%)
:arrow_up:

replication.go
95.42% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


JBPM-5045 "Try-catch-finally"-zed transaction handling.

PR for this issue: https://issues.jboss.org/browse/JBPM-5045.

+1 to merge once jenkins is done and green, thanks @baldimir


Camera hardware

Iván to replace this comment with camera requirements.

Closing. Some results here: https://github.com/splashblot/shooter/issues/1


BrentMin returns a tuple instead of a ConvergenceInfo object

the code is already in the main branch, so this can be closed on a new release

fixed, thanks


Constant column, object columns and native columns need better interop

Currently we are a bit too quick to convert constant columns into object columns. In many cases a native column as an extension would certainly be enough, e.g. stacking two constant int columns on top of another should yield an int column and not an object column.
The whole column assignment procedures need a thorough set of tests + possibly some rewrite (there's duplication in there etc).

To a large extent this is addressed in #24.


Playing results of StaticOptimization, CMC, IK is choppy

If either 1) hitting the play button with StaticOptimization results or 2) scrolling through them using the slider: the GUI starts drawing slowly and will eventually crash. This happens whether or not IK/ID are run beforehand. Consistent on Windows 10 Pro.
Log:
hs_err_pid16452.txt

Last status update was 6 month ago. If all works smoothly now on Windows then we should add osx label, if not an issue on either now then we can close.

I did some testing with the Animation Fix build on my Windows 10 VM.
Inverse Kinematics (Testing with gait10dof18musc)

Playback is choppy if I am displaying the motion from my laptop screen
Playback is smooth if I am displaying the motion from my external monitor
I'm keeping everything the same ... just moving the vm window between screens.

Static Optimization.

Same results as above. I used the Working with Static Optimization Example
https://simtk.org/frs/download_confirm.php/file/4606/WorkingWithStaticOptimization.zip?group_id=91

Thanks @jenhicks Can you please change the label to the more specific issue and since there's no crashing involved at all. Thanks

@jenhicks Is this on windows, Mac, or Windows VM on Mac?

I have been testing on Windows VM. Ajay has also reported on his Mac

On a local build of the GUI on my desktop with a powerful video card I was able to do some profiling. Running the replay at high speed (>1) reveals the problem of choppiness but it cannot be used to quantify the problem. The issue is that at high speed the player plays fewer frames. In fact you can see the instrumentation in the messages window. For gait 2354 replaying the CMC in the distribution only gets 4-6 frames drawn for the roughly 350ms of playback.
To see where all the time is going, we need to playback at a speed where drawing is keeping up with the demand with the player speed. For me that was roughly a playback speed of 0.25 causing playback to take about 2s (if working correctly this have should been 1.4s). At this rate animation is very smooth.
Running on loop for awhile (to minimize startup and other contributions) the profile indicates that MasterMotionModel.applyTime() the driver of the MotionDisplayer which performs the setting of the state at that time on the model and updating other motion objects, takes 89.2% of the total CPU time.  It is clearly the bottleneck of the playback process.

Sounds great @aseth1
In the case of all tools (other than IK) we have a stateStorage and we're applying it using model.setStateVariableValue which you indicated is very slow and that there's a better vectorized way to do it, can you do the replacement? Please let me know if you need help.

@aymanhab I can try to fix, but I do not understand the logic/flow in MotionDisplayer. When I load a states file, e.g. result states.sto from CMC, MotionDisplayer.setupMotionDisplay() does not set  statesFile=true, so in MotionDisplayer.applyStatesToModel() statesFile==false so that the lines you pointed me to:
https://github.com/opensim-org/opensim-gui/blob/0d41eef3af1f114d3f4cd9b901371adda1396409/Gui/opensim/view/src/org/opensim/view/motions/MotionDisplayer.java#L791-L801
are never called. Indeed similar lines appear here, which seems how all state setting is being done:
https://github.com/opensim-org/opensim-gui/blob/0d41eef3af1f114d3f4cd9b901371adda1396409/Gui/opensim/view/src/org/opensim/view/motions/MotionDisplayer.java#L823-L831
Looking at the logic for how statesFile is set is just a verbatim match of Storage column names to the model.getStateVaraibleNames() with time pre-pended to the states. This seems extremely fragile and evidently does not work.
It seems ironic that model.getStateVaraibleNames() is used to get the names and this is precisely the order which model.setStateVariableValues() requires and is never used. Instead there appears to be  a helper method MotionDisplayer::classifyColumn(Model model, int columnIndex, String columnName) with over a 140lines of logic to handle ordering. Then after all this, we still set value on states by name by first getting the name by index (e.g. L795 and L829).
It is not just a matter of swapping in setVariableValues to replace the the for loop to get this fixed. We need the states to be reordered so they conform to the names order and this is already being done by Model.formStateStorage and StatesTrajectory::createFromStatesStorage(). The latter having the advantage of already giving you States so you can just update directly with no ordering whatsover.
IMHO over 200+ lines of code could eliminated; speed, robustness, and maintenance greatly improved by using the StatesTrajectory. I realize that we are some 10-11 days from the workshop. Perhaps we won't fix it by then, but I don't see any rationale for spending more time exploring and patching hoping for a quick fix when what is there clearly needs to be ripped out.

Perhaps a skype call to discuss would be helpful? I'm available this afternoon or we can convene on Monday in the office.

Jen,
Let's discuss Monday after I do some investigation.
Ayman
On Fri, Mar 16, 2018, 12:19 PM Jen Hicks<EMAIL_ADDRESS>wrote:

Perhaps a skype call to discuss would be helpful? I'm available this
afternoon or we can convene on Monday in the office.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/opensim-org/opensim-gui/issues/283#issuecomment-373818574,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADyccJb7u71-E5TntZqb7bUF27IzusFjks5tfBBSgaJpZM4OWScR
.

@jenhicks @aymanhab sure, lets discuss Monday.

I looked into the memory footprint of StatesTrajectory: a StatesTrajectory of gait2392's CMC states result is over 4 GB (with 6,612 State objects)! The Storage that the trajectory was created from only consumed about 30 MB. So if we want to use StatesTrajectory, it is likely we would need some sort of buffering, etc. On the other hand, 6,612 is way more state objects than we are likely to need (that's about 6000 frames per second; we would have to reduce playback speed to 1/200x realtime to require 6000 state objects with a 30 FPS frame rate).

The fix committed in #603 does not do anything. It should not have been merged without being tested. As pointed out above L791 -800 are not entered because statesFile is false. If I copy the change to L829, which is actually doing the states setting,  then I do see a speedup but the states are mangled, so the model is not correctly posed:

Therefore, the issue of correctly ordering the states to be in agreement with Model layout still must be addressed. I suggest we remove the existing logic (likely to be wrong anyways) and use  Model.formStateStorage() or StatesTrajectory::createFromStatesStorage(), which have been tested with states Storage from earlier releases of OpenSim. This is the quickest and cleanest path to our goal of robust and efficient playback.

Thanks for testing @aseth1
The characterization that the fix did nothing or was not tested is inaccurate. Open a pendulum model in the GUI and run forward dynamics on it and put a break point at the changed line and you'll see it being hit and statesFile set to true and the values set as a vector, end of story.
While there are other problems that are not addressed by this fix as we discussed today due to naming or ordering or loading files  from earlier builds/releases that need to be addressed, I don't think this fix was wrong or unnecessary. Will be happy to look into your workflow to find out if the statesFile should have been detected and it wasn't or how to force other scenarios to be treated as states per our discussion. Thank you.

@aymanhab please read my comment from 4 days ago. It describes why statesFile == false and will be for most states files. I should have been more clear that the code had not been tested on the representative model/results specifically for playback of previous CMC results and not implied that no testing was done.

Thanks @aseth1, agreed.
@jenhicks Would you please send me or point me to the files you're working on for the demo and the steps you follow so I can test them while implementing the more general fix that Ajay & I discussed. Thanks.

Playback is still choppy on my windows VM. Playback is smooth on Native mac.

If this issue is fixed on native builds, we can close it and open another one (if needed) for VM environments.

I also found it to be initially choppy but then seem to settle on VM. Native on Mac is smooth for me.

@aymanhab That plan sounds fine.

Sounds good. I will move to a future release.

I am getting choppy playback of kinematics on a native W10 machine.

James, if this is using the threejs_update build, it may suggest that the later version is slower even if it is more tolerant to hardware. Can you report what build you used? Thanks

OpenSim-ba958aac-2018-04-30_threejs_r91.zip

Thanks James, this suggests the upgrade to latest library had slowed
rendering performance. We did tune things up to get the current smooth
performance so we need to discuss if this is worth it now or we should
treat this as plan B for users with legacy htc cards.
On Thu, May 3, 2018, 8:57 AM jimmyDunne<EMAIL_ADDRESS>wrote:

OpenSim-ba958aac-2018-04-30_threejs_r91.zip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/opensim-org/opensim-gui/issues/283#issuecomment-386345309,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADyccKfG_3MAJLcmkhmqCK-d48vHZhk4ks5tuyj5gaJpZM4OWScR
.

from @carmichaelong

{Simulation of drop landing tutorial} After initial simulation, play back of motion is choppy. Includes using playback and dragging the seek control

From user testing session:

Animation is choppy (playing RRA-adjusted kinematics in "Simulation-Based Design to Reduce Metabolic Cost" example, II.A.2).


TextEditor::Glyph::mColorIndex is too small.

g++ -I../cimgui/imgui -I../../include   -c -o TextEditor.o TextEditor.cpp
In file included from TextEditor.cpp:7:0:
TextEditor.h:125:30: warning: ‘TextEditor::Glyph::mColorIndex’ is too small to hold all values of ‘enum class TextEditor::PaletteIndex’
   PaletteIndex mColorIndex : 7;

This is on i686, 32bit linux.

@cheako - you might want to search through open issues before posting. (and possibly gather your thoughts up into a few issues instead of creating a ton of one-line issues)
This issue has already been reported here: https://github.com/BalazsJako/ImGuiColorTextEdit/issues/11


Roll Flutter from 381cb280a35c to ff425fc73301 (3 revisions)

https://github.com/flutter/flutter/compare/381cb280a35c...ff425fc73301
2022-02-15<EMAIL_ADDRESS>Roll Engine from 20bd78ca3ee4 to c9cb3158ee31 (2 revisions) (flutter/flutter#98468)
2022-02-15<EMAIL_ADDRESS>Roll Engine from 8714a2448fa9 to 20bd78ca3ee4 (2 revisions) (flutter/flutter#98465)
2022-02-15<EMAIL_ADDRESS>Roll Engine from 25ab5711cc08 to 8714a2448fa9 (2 revisions) (flutter/flutter#98459)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-plugins
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Plugins: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Sample Images

ls | to svg --width 500 | save -f example-ls.svg

eza --color=always -glF --git --time-style long-iso --header | to svg --width 550 | save -f example-eza.svg

help stor | to svg --width 900 | save -f help-stor.svg

ls | lolcat -f | to svg --width 500 | save example-lslol.svg

Ah, looking at this on ios, I see there's a problem.  It doesn't look like ios is honoring the xml:space="preserve"

Dang, Safari (at least on mobile) SVG support is pretty bad.  The background colors display on Windows (Edge, Chrome, etc.), but not on Safari.  Also, when opening these images (click on them here) separately in Safari, it doesn't honor the non-breaking spaces :-/

Testing


Updated dependencies

First of all: Thanks for creating this project.
I've been using it in one of my repos, however, when using david-dm it showed me that my dependencies are "Insecure". I think this is related to hpp, because it uses outdated modules. This change should just update the dependencies, everything should work as expected, since those are just minor updates, so updates not changing or removing any existing API.

Coverage remained the same at 100.0% when pulling 52d152dcc8462d670d47e305676759559a174ccd on maxrimue:updated-dependencies into c2be8071d411f00bcf7f53e25d98cf0ee648bbae on analog-nico:master.

Seems like it's failing for 0.10.0, could this be because of the devDependencies?

Coverage remained the same at 100.0% when pulling dcea4d0ce143e23e8af982f98de78ebeb826b35c on maxrimue:updated-dependencies into c2be8071d411f00bcf7f53e25d98cf0ee648bbae on analog-nico:master.

Coverage remained the same at 100.0% when pulling dcea4d0ce143e23e8af982f98de78ebeb826b35c on maxrimue:updated-dependencies into c2be8071d411f00bcf7f53e25d98cf0ee648bbae on analog-nico:master.

There we go. It seems like something was wrong with the coveralls plugin

Hi @maxrimue thanks for working on this!
Thanks to your PR I checked http://semver.org for the first time and OMG I always had a wrong understanding of semantic versioning!
To make sure people don't risk to install a too old dependency would you mind changing all versions - e.g. for lodash - from 3.x.x to ^3.8?
I can afterwards configure TravisCI to build with lodash 3.8.0 + type-is 1.6.0 and also with lodash latest + type-is latest.

@analog-nico Do you explicitly want lodash in version 3.8 or higher, or can it be also 3.9 or higher?

Good point. Take the highest version available today.

Coverage remained the same at 100.0% when pulling bc671576d22ba52f51bdb70f6023b6cf2a40bdf8 on maxrimue:updated-dependencies into c2be8071d411f00bcf7f53e25d98cf0ee648bbae on analog-nico:master.

Coverage remained the same at 100.0% when pulling bc671576d22ba52f51bdb70f6023b6cf2a40bdf8 on maxrimue:updated-dependencies into c2be8071d411f00bcf7f53e25d98cf0ee648bbae on analog-nico:master.

Done

Hi @maxrimue I just published version 0.2.0 with it's dependencies up-to-date. Cheers!

@analog-nico Glad to hear that, thanks :+1:


New Cluster - erratic MGR / OSD behaviour post deployment

update: logged a ticket here: https://tracker.ceph.com/issues/48689
What happened:
Finished building a new cluster but experiencing the following issue:

MGR constantly and randomly crashes right from the start
When I reboot a single host (with 24 OSDS) as part of a test about 60 OSDs goes offline (24+random others) and gets marked as down. They don't come back online.
Only way to get the OSDs in against is to sudo docker restart <osd> on the host

What you expected to happen:

MGR not crashing constantly since right after a vanilla build
OSDS to come back in when a host reboots, or when they randomly restart

How to reproduce it (minimal and precise):
Brand new cluster, experienced issues with the first test (1 host down)
cephfs (14) = EC 8+2 HDD Only
Logs:
MGR- http://pastefile.fr/cf09c6d2c02641b69b9feb1c4a7ba66a
ceph health detail (extract of one pg)
...
 pg 14.7fc is stuck undersized for 13m, current state active+undersized+degraded+remapped+backfill_wait, last acting [201,216,84,198,94,214,16,289,262,2147483647]
...

ansible -i /opt/ilifu_ceph-config/inventory mons -m shell -a "sudo docker logs ceph-mgr-\`hostname\` 2>&1 | grep -i 'fail to parse'"

....
B-01-34-cephctl.maas | CHANGED | rc=0 >>
2020-12-21T11:21:23.320+0200 7f1631ecb700  0 [devicehealth ERROR root] Fail to parse JSON result from daemon osd.1 ()
2020-12-21T11:21:24.352+0200 7f1631ecb700  0 [devicehealth ERROR root] Fail to parse JSON result from daemon osd.3 ()
2020-12-21T11:21:30.680+0200 7f1631ecb700  0 [devicehealth ERROR root] Fail to parse JSON result from daemon osd.9 ()
2020-12-21T11:21:43.377+0200 7f1631ecb700  0 [devicehealth ERROR root] Fail to parse JSON result from daemon osd.20 ()
2020-12-21T11:21:51.485+0200 7f1631ecb700  0 [devicehealth ERROR root] Fail to parse JSON result from daemon osd.27 ()
2020-12-21T11:21:54.117+0200 7f1631ecb700  0 [devicehealth ERROR root] Fail to parse JSON result from daemon osd.30 ()
.....

ceph crash ls
...
2020-12-21T11:23:48.405+0200 7f1631ecb700  0 [devicehealth ERROR root] Fail to parse JSON result from daemon osd.140 ()
2020-12-21T11:31:21.206+0200 7f160e111700  0 [progress WARNING root] osd.140 marked out
...
&
...
Error initializing cluster client: ObjectNotFound('RADOS object not found (error calling conf_read_file)',)
...
...
Dec 21 13:15:41 B-01-34-cephctl docker[32628]: 2020-12-21T13:15:41.739+0200 7f64f0c82700 -1 client.0 error registering admin socket command: (17) File exists
Dec 21 13:15:41 B-01-34-cephctl docker[32628]: message repeated 4 times: [ 2020-12-21T13:15:41.739+0200 7f64f0c82700 -1 client.0 error registering admin socket command: (17) File exists]
Dec 21 13:15:42 B-01-34-cephctl docker[32628]: 2020-12-21T13:15:42.231+0200 7f64e35b3700  0 log_channel(cluster) log [DBG] : pgmap v3: 2241 pgs: 3 active+clean+scrubbing+deep, 2238 active+clean; 45 TiB data, 75 TiB used, 4.2 PiB / 4.2 PiB avail
Dec 21 13:15:42 B-01-34-cephctl docker[32628]: 2020-12-21T13:15:42.699+0200 7f64e45b5700  0 log_channel(cluster) log [DBG] : pgmap v4: 2241 pgs: 3 active+clean+scrubbing+deep, 2238 active+clean; 45 TiB data, 75 TiB used, 4.2 PiB / 4.2 PiB avail
Dec 21 13:15:42 B-01-34-cephctl docker[32628]: /usr/include/c++/8/bits/stl_algo.h:3721: constexpr const _Tp& std::clamp(const _Tp&, const _Tp&, const _Tp&) [with _Tp = unsigned int]: Assertion '!(__hi < __lo)' failed.
Dec 21 13:15:42 B-01-34-cephctl docker[32628]: *** Caught signal (Aborted) **
...

Vars
Inventory - http://pastefile.fr/050f196318ed37375a12cfa879717d8f
Group vars - http://pastefile.fr/8e51fbd46706d650e4ab9b75b776cb8c
Crush map - http://pastefile.fr/afbb6fb06066333fac44d94c144c9446
Environment:

OS (e.g. from /etc/os-release): 18.04.5 LTS (Bionic Beaver)
Kernel (e.g. uname -a): 5.4.0-58-generic #64~18.04.1-Ubuntu SMP Wed Dec 9
Docker version if applicable (e.g. docker version): client/server 19.03.6
Ansible version (e.g. ansible-playbook --version): ansible-playbook 2.9.0
ceph-ansible version (e.g. git head or tag or stable branch): stable-5.0
Ceph version (e.g. ceph -v): ceph version 15.2.8 (bdf3eebcd22d7d0b3dd4d5501bee5bac354d5b55) octopus (stable)

already tracked here https://tracker.ceph.com/issues/47132

already tracked here https://tracker.ceph.com/issues/47132


Examples of russell to solve 3D Poisson equations

I want to solve the 3D Poisson-Boltzmann equation like $$\nabla^2 \phi - \kappa^2 \phi = 4 \pi \rho_f / \epsilon$$ with the boundary contitions $$\phi (\infty) = 0$$ could the russell handle this problem? I saw that the PDE example was for 2D Laplace equation.

Hi, unfortunately, Russell doesn't have a solver for such a problem.
The goal for the 2D Laplace operator in the russell_ode crate is to test the ODE solvers only. It may be converted to a 3D solver based on Finite Differences, nonetheless.
Russell aims to provide the foundation tools for implementing PDE solvers, but not implement them (because there are many problem types and many solution methods!).
As another example, it is possible to use the foundation tools of the russell_lab crate (within the algo module) to develop Spectral Collocation methods for multidimensional PDEs. There is a 1D example here that may serve as a basis to implement a 3D solver.

Thank you. I will try to develop it as an extend work.


how to add logo and title as header

Please provide an example or detailed description of what you want to achieve, and in what format.


[hotfix][table-planner] Move EnrichedRowData to table-runtime

What is the purpose of the change
https://github.com/apache/flink/commit/1ea210278f1da41f193a7520306cab20596fd10f introduced EnrichedRowData as @PublicEvolving. After careful consideration, I propose to move it back to runtime as it's very specific to filesystem and probably not useful to the users.
Brief change log

Move EnrichedRowData from common to runtime, changing the annotation from @PublicEvolving to @Internal.

Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): yes, but just on master, no changes across released versions
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

@flinkbot run azure


if a config file has .override appended to its name, it will override…

… and overwrite any existing config file.
e.g adding /usr/share/jenkins/ref/config.xml.override to a container will make sure Jenkins will always run start the with provided config.xml.

Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests.

LGTM, could you add docs and rebase?

OK. thanks. Created new PR https://github.com/jenkinsci/docker/pull/186


x/tools/internal/robustio: build error on plan9 since CL 458200 due to missing definition for getFileID

# golang.org/x/tools/internal/robustio
internal/robustio/robustio.go:65:58: undefined: getFileID
FAIL	golang.org/x/tools/internal/robustio [build failed]

A plan9 definition for that function appears to have been omitted in CL 458200 (attn @alandonovan @timothy-king).

(CC @golang/plan9)

see https://go.dev/cl/460855


Install uservoice-php sdk in Heroku --- Not a bug

Hi,
Please do not consider this as a bug.
In one of my project I am using this SDK. Now I am trying to deploy my application to Heroku.
As by default, oauth.so is not installed in Heroku, build keep failing there.
I have followed instruction from https://gist.github.com/pedro/1288447 but with no luck.
Output from Heroku deployment :
remote: -----> Installing PHP extensions...
remote:        - mbstring (composer.lock; bundled)
remote:  !     WARNING: Unknown extension oauth (composer.lock), install may fail!
remote:        - zend-opcache (automatic; bundled)
remote: -----> Installing dependencies...
remote:        Composer version 1.0.0-alpha9 2014-12-07 17:15:20
remote:        Loading composer repositories with package information
remote:        Installing dependencies from lock file
remote:        Your requirements could not be resolved to an installable set of packages.
remote:
remote:          Problem 1
remote:            - The requested PHP extension ext-oauth * is missing from your system.
remote:          Problem 2
remote:            - Installation request for uservoice/uservoice 0.0.9 -> satisfiable by uservoice/uservoice[0.0.9].
remote:            - uservoice/uservoice 0.0.9 requires ext-oauth * -> the requested PHP extension oauth is missing from your system.
remote:
remote:
remote:  !     Push rejected, failed to compile Multipack app
Can anynody sugges a solution ?

The oauth extension is available now: https://devcenter.heroku.com/changelog-items/582

Since Heroku provides oauth.so support from 13th Jan,2015 we have no problem in deploying this sdk in Heroku.


Support ChainerX in Variable.addgrad

Fixes #6983
~Depends on #6982~

Rebased. PTAL

Jenkins, test this please.

Jenkins CI test (for commit 73ed9c4e9e744f33a77820c09498d645a332d934, target branch master) failed with status FAILURE.

Jenkins, test this please.

Jenkins CI test (for commit 35c2d21b45c1008c0c570c37cbd9403b68791954, target branch master) failed with status FAILURE.

Jenkins failure seems unrelated to this PR. LGTM.


Using jsdoc @param with scoped type definition ignores the fact that param is optional

Bug Report
I'm using tsc to create a .d.ts file from jsdoc comments in my JavaScript source files. When I scope a custom type definition using the "~" character, if the parameter is optional, it will not be in the outputted .d.ts.
According to jsdoc documentation, this is the correct way to scope a callback to a specific class.
💻 Code
JavaScript source:
class Test {

  /**
   * @callback Test~myCallback
   * @param {string} [name] Event name
   */

  /**
   * @method
   * @param {string} [event] Event name.
   * @param {Test~myCallback} [callback] The callback
   */
  removeListener(event, callback) {

  }

}

Outputted .d.ts file:
declare class Test {
  removeListener(event?: string, callback: any): void;
}

🙁 Actual behaviour
The output renders "callback" as if mandatory. This is invalid as a mandatory parameter cannot follow an optional one. Also, the type is "any", event though I defined a custom type.
🙂 Expected behaviour
The "callback" parameter should be optional as specified in the source JavaScript. The type should be "Test~myCallback" (or however TypeScript deals with these).

This is unsupported for a number of reasons -- we parse a type name in that position, so the name would be Test.myCallback not Test~myCallback (honestly the first I've ever heard of someone using that syntax, jsdoc website aside). But TS doesn't support class-scoped types yet either, so the type declared in that position isn't going to work through any syntax

Thanks for the explanation. It's clearer now.
As a follow up, I would like to humbly formulate a suggestion. In the example above, per your explanation, I understand why any  is used for the second parameter. However, this parameter should still be optional. Having a mandatory parameter follow an optional one halts compilation. Valid jsdoc should not generate invalid declaration files. It does make sense, however, to have those files degrade gracefully (such as using any for an unknown type) when necessary.
Also, instead of using any, why not use the function type in such a case (or perhaps a call signature)? After all, the @callback block describes the function's parameters (caveat: I'm not a TypeScript developer so what I'm suggesting might be rubbish).
Anyway, as far as documenting the API for my library, this is the only missing piece when using --emitDeclarationOnly.
Thanks for your work on this. Cheers!


Doesn't work with condition in stage definition

The output variable doesn't seem to work correctly when used in different stage with stageDependencies
My pipeline:
stages:
  - stage: pre
    jobs:
      - job: check
        displayName: Check changed files
        steps:
          - task: ChangedFiles@1
            name: Changes
            inputs:
              rules: changesHere/**
              variable: hasChanged
              verbose: true

      - job: jobWithCondition
        dependsOn:
          - check
        condition: eq(dependencies.check.outputs['Changes.hasChanged'], 'true')
        steps:
          - script: echo "run with condition"

  - stage: stageWithCondition
    dependsOn:
      - pre
    condition: eq(stageDependencies.pre.check.outputs['Changes.hasChanged'], 'true')
    jobs:
      - job: runThisOnCondition
        steps:
          - script: echo "run with condition"

  - stage: alwaysRun
    dependsOn:
      - pre
    variables:
      conditionIs: $[ eq(stageDependencies.pre.check.outputs['Changes.hasChanged'], 'true') ]
    jobs:
      - job: showValueOfCondition
        steps:
          - script: echo "conditionIs=$(conditionIs)"

Output from check job:
azure-pipelines.yml
changesHere/some_file.txtt
>> Changed files:
	 - azure-pipelines.yml
	 - changesHere/some_file.txtt
> Filtering files using glob rules
>> HASCHANGED: Changes detected since last succeeded build, setting "hasChanged" to "true"

Expected result:
stage stageWithCondition runs and job jobWithCondition in stage check also runs
Actual result:
stage stageWithCondition gets skipped.
Job jobWithCondition in stage check works as expected.
Additionally, output from job showValueOfCondition in stage alwaysRun is conditionIs=True. This is probably the weirdest part. It shows that the variable actually gets set correctly...but not when evaluating the condition of stage.

To add more information - the condition works of it is moved job definition, instead of stage.
Like this:
stages:
  - stage: pre
    jobs:
      - job: check
        displayName: Check changed files
        steps:
          - task: ChangedFiles@1
            name: Changes
            inputs:
              rules: changesHere/**
              variable: hasChanged
              verbose: true

      - job: jobWithCondition
        dependsOn:
          - check
        condition: eq(dependencies.check.outputs['Changes.hasChanged'], 'true')
        steps:
          - script: echo "run with condition"

  - stage: stageWithCondition
    dependsOn:
      - pre
    jobs:
      - job: runThisOnCondition
        condition: eq(stageDependencies.pre.check.outputs['Changes.hasChanged'], 'true')
        steps:
          - script: echo "run with condition"

  - stage: alwaysRun
    dependsOn:
      - pre
    variables:
      conditionIs: $[ eq(stageDependencies.pre.check.outputs['Changes.hasChanged'], 'true') ]
    jobs:
      - job: showValueOfCondition
        steps:
          - script: echo "conditionIs=$(conditionIs)"

In this case all conditions work as expected.
This needs to be either clearly documented and the behavior for when condition is in stage definition fixed.

I've also been experimenting with this, and I have gotten it to work. The trick is that when in a stage condition, variables are accessed in a different way. They are read from dependencies.{stagename}.outputs['{jobname}.{variablename}.
In the following example, I have two folders, named foo and bar. When any file in those the folder is changed, the corresponding stage runs a single job with a single task which prints that a change has occured 😄
stages:
  - stage: pre
    jobs:
      - job: check
        displayName: Check changed files
        pool:
          vmImage: ubuntu-latest
        steps:
          - task: ChangedFiles@1
            name: CheckChanges
            inputs:
              refBranch: main
              rules: |
                [BarChanged]
                bar/**

                [FooChanged]
                foo/**
          - script: |
              echo $(CheckChanges.BarChanged)
              echo $(CheckChanges.FooChanged)

  - stage: bar_has_changed
    dependsOn: ["pre"]
    condition: eq(dependencies.pre.outputs['check.CheckChanges.BarChanged'], 'true')
    jobs:
      - job: run
        steps:
          - script: echo "bar has changed!"

  - stage: foo_has_changed
    dependsOn: ["pre"]
    condition: eq(dependencies.pre.check.outputs['check.CheckChanges.FooChanged'], 'true')
    jobs:
      - job: run
        steps:
          - script: echo "foo has changed!"

Thank you @wradstok for your contribution.
We close this issue as it's resolved and a documentation has been added to readme.


Exiting wxGlade

When running wxGlade from the command line, terminating the application works fine.
When running wxGlade from IDLE, terminating the wxGlade system (either with File>Exit or closing the window) removes all design work, but does not exit. This is dangerous as trying again suggests you might like to save your project (and hence destroy it).

This is probably similar to running with python -i.
When you debug wxGlade, it makes sense to run it from an IDE. If not, just run the wxglade.py file.
Other IDEs are doing better...

On other IDEs you can optionally select options like "external console waits on exit".


Fixed registerService to use PUT rather than GET

Per documentation here: http://www.consul.io/docs/agent/http/agent.html#agent_service_register

bump


test pluggable validation logic

chore: convert rln to rlnbase, and inherit into rln

Looks like slither doesn't throw up any vulns, merging.


using cluster store with consul requiring auth token

Output of docker version:
Client:
 Version:      1.10.2
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   c3959b1
 Built:        Mon Feb 22 21:37:01 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.10.2
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   c3959b1
 Built:        Mon Feb 22 21:37:01 2016
 OS/Arch:      linux/amd64

Output of docker info:
Containers: 5
 Running: 2
 Paused: 0
 Stopped: 3
Images: 1
Server Version: 1.10.2
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 18
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
 Volume: local
 Network: null host bridge
Kernel Version: 4.2.0-27-generic
Operating System: Ubuntu 14.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 993 MiB
Name: cmanager.mycompany.com
ID: EE75:KFKK:GNNO:XXAY:BUDY:XSNA:XU4U:AJMT:7MCW:TWBL:3EFU:N56O
WARNING: No swap limit support
Cluster store: consul://cregistry.mycompany.com:8500
Cluster advertise: <IP_ADDRESS>:2376

I am trying to set up a set of physical hosts running docker swarm using overlay network. The swarm is basically up:
Containers: 7
 Running: 3
 Paused: 0
 Stopped: 4
Images: 7
Server Version: swarm/1.1.3
Role: primary
Strategy: spread
Filters: health, port, dependency, affinity, constraint
Nodes: 3
 cmanager.mycompany.com: cmanager.mycompany.com:2375
  └ Status: Healthy
  └ Containers: 5
  └ Reserved CPUs: 0 / 1
  └ Reserved Memory: 0 B / 1.018 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.2.0-30-generic, operatingsystem=Ubuntu 14.04.4 LTS, storagedriver=aufs
  └ Error: (none)
  └ UpdatedAt: 2016-03-07T10:38:10Z
 s2.mycompany.com: s2.mycompany.com:2375
  └ Status: Healthy
  └ Containers: 1
  └ Reserved CPUs: 0 / 8
  └ Reserved Memory: 0 B / 32.85 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.2.0-30-generic, operatingsystem=Ubuntu 14.04.4 LTS, storagedriver=aufs
  └ Error: (none)
  └ UpdatedAt: 2016-03-07T10:38:04Z
 s3.mycompany.com: s3.mycompany.com:2375
  └ Status: Healthy
  └ Containers: 1
  └ Reserved CPUs: 0 / 8
  └ Reserved Memory: 0 B / 32.8 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.2.0-22-generic, operatingsystem=Ubuntu 14.04.4 LTS, storagedriver=aufs
  └ Error: (none)
  └ UpdatedAt: 2016-03-07T10:37:43Z
Plugins:
 Volume:
 Network:
Kernel Version: 4.2.0-30-generic
Operating System: linux
Architecture: amd64
CPUs: 17
Total Memory: 66.67 GiB
Name: abc30db2434d

On the host running swarm manager I'm invoking this command:
DOCKER_HOST="tcp://cmanager.mycompany.com:9999" docker network create --driver overlay --subnet <IP_ADDRESS>/16 cluster

resulting in this output:
Error response from daemon: 500 Internal Server Error: pool configuration failed because of Unexpected response code: 403 (Permission denied)

There was a very similar error when joining swarm nodes without providing auth token for accessing k/v store of used consul cluster. There I was able to use environment file providing CONSUL_HTTP_TOKEN containing this token (see https://github.com/docker/swarm/issues/1643). So I tried injecting this environment variable into docker daemon by editing /etc/default/docker:
DOCKER_OPTS="-H tcp://<IP_ADDRESS>:2375 -H unix:///var/run/docker.sock --cluster-store=consul://cregistry.mycompany.com:8500 --cluster-advertise=eth0:2376"

. /etc/docker/token
export CONSUL_HTTP_TOKEN

with /etc/docker/token containing something like this:
CONSUL_HTTP_TOKEN=123456789012-1234-1234-1234-12345678

After restarting docker, its environment is listing this variable:
# cat /proc/<docker-pid>/environ
UPSTART_INSTANCE=UPSTART_JOB=dockerCONSUL_HTTP_TOKEN=123456789012-1234-1234-1234-12345678TERM=linuxPATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/binPWD=/

I adjusted all hosts contained in swarm this way, but after that creating network was still failing.
Error response from daemon: 500 Internal Server Error: pool configuration failed because of Unexpected response code: 403 (Permission denied)

I got the same issue, see https://github.com/docker/swarm/issues/1931

@auzias At first glance your case seems to be different from this one.
In my case the issue was completely consul related and due to a too restrictive ACL policy, thus this issue might be closed here. Token was included with every request to consul as soon as it was included with /etc/default/docker as described above.

Just to add that node: by using local consul agent in client mode with acl_token set in its configuration makes docker cluster store working without manipulating environment.


Add line number text property

Currently there is no way to change the line number text in vscode. the reason I am asking for this is because I would like to create a relative line number extension. This is helpful for vim users, who would like to know the number of lines from current selected.

From the settings.json UI (formatted):
   // Controls the display of line numbers.
   // Possible values are 'on', 'off', and 'relative'.
   // 'relative' shows the line count from the current cursor position.
  "editor.lineNumbers": "on",

Can you please check if that solves your issue?

i don't want to turn it off i comply want to change the text displayed.

We implemented "editor.lineNumbers": "relative" just for Vim users.

thank you very much this is exactly what i wanted.


Checks ideas: CIS, DISA, Idera, others

CIS.pdf
DISA: https://github.com/sqlcollaborative/disa-docs/blob/master/sql2014.md

Question I'm going to be writing a CIS audit in PowerShell for my work has there be in side issues on this or any other discussion as there are a lot of test that have to be written?

Attaching all the CIS benchmarks because they are slightly different for each version of SQL Server.
CIS_Microsoft_SQL_Server_2017_Benchmark_v1.0.0.pdf
CIS_Microsoft_SQL_Server_2008_R2_Benchmark_v1.6.0.pdf
CIS_Microsoft_SQL_Server_2012_Benchmark_v1.5.0.pdf
CIS_Microsoft_SQL_Server_2014_Benchmark_v1.4.0.pdf
CIS_Microsoft_SQL_Server_2016_Benchmark_v1.1.0.pdf

That'd be awesome! No work has been done with CIS within dbachecks as of yet

Would be really nice to get CIS checks added to dbachecks yes :)

Funny enough, I was having a conversation about that only yesterday - Watch this space ;-)

If remediation was also needed for CIS checks (which for those that use it is) it would benefit having it as a separate module. If you are going to go through the work of building the checks, remediation may as well be apart of that same work as well (where it can).
If not, is fine, but it deserves a custom report that is dedicated to the CIS checks. Alternative if it is included with all the other checks for dbachecks a dedicated tag or configuration would be beneficial where users can do reports or generate the PBI data for only those checks.

I'm open for whatever way you want to do, but some items yes you could write code to fix the issues.  That's what I will doing when I write things internally for my company so it would not be a big deal for me to this as well.  I just may need some more hand holding as I do this.

dbachecks is for validation only.
Thats not to say that a remediation module (which I think is a good idea) could not make use of the json output
I see getting dbachecks to be able to run CIS checks as

Writing any missing checks
Tagging all CIS checks with CIS
Writing a command to set any configuration required by CIS for the checks Set-DbcCisConfig
Possibly could wrap the whole thing in an other command Invoke-DbcCisChecks which would run Set-DbcCisConfig and then run Invoke-DbcCheck -Check Cis | Update-DbcPowerBiDataSource -Environment CiS or similar
If a separate PowerBi report would be more useful then one could be written to look at the CIS json

I'm working on creating a matrix for all the different versions of SQL in Excel as the test change for different versions.  Then I see what test exists and we can tag the existing ones as a start.  Start writing missing checks.  Then we can decide what to do about reporting and remediation.  I will be writing remediation as I go using dbatools where I can so I'll save those in my repo until we decide if maybe we want a separate project for compliance remediation.

Attaching a spreadsheet matrix with all the test, 2008 R2 has one test the rest don't.  Then new tests were added for 2012 and above.
CIS_Audit_Matrix.xlsx

ohh that matrix is awesome! can you plz make one for DISA Stigs 😅

Tracy,
I was looking at the same thing as you for CIS.  I am glad to help. What can I do to help or share in the outcome of the development?  Is the goal to have all of them as dbachecks?  That would be awesome to have something like Rob was talking about with a comprehensive command to run all the checks against a version.
Let me know how I can help.
Ben Miller
From: Tracy Boggiano<EMAIL_ADDRESS>Sent: Thursday, July 25, 2019 1:11 PM
To: sqlcollaborative/dbachecks<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: Re: [sqlcollaborative/dbachecks] Checks ideas: CIS, DISA, Idera, others (#116)
Attaching a spreadsheet matrix with all the test, 2008 R2 has one test the rest don't. Then new tests were added for 2012 and above.
CIS_Audit_Matrix.xlsxhttps://github.com/sqlcollaborative/dbachecks/files/3432914/CIS_Audit_Matrix.xlsx
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/sqlcollaborative/dbachecks/issues/116?email_source=notifications&email_token=ACFCLDBV3YYCP4R43BL7J7TQBH3EJA5CNFSM4EJTIPYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD22PPAI#issuecomment-515176321, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACFCLDBKBQTD36C3E6DUWMTQBH3EJANCNFSM4EJTIPYA.

I have opened #643 to track adding CIS. This is looking really awesome and just how I imagined dbachecks would be used

@potatoqualitee I can probably build an Excel file out for STIGs, if I can download the XML file still for each version.

@wsmelton up to you but I already started building the matrix yesterday.  Chrissy forgot to tell me that there were over a hundred rules just for the instance, now I'm working on copying the rules for the database.  I can pass it off to you if you like or I can finish out probably sometime this week.

@wsmelton I'm looking to create a STIG project now could you possibly do that Excel file that is mentioned in two comments above.  If you need anything let me know.  Looks like you might need the XML, I never finished my matrix and lost it (shame one me).


Fix TestPipeline passing special test options to main pipeline.

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Run mvn clean verify to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

IT(Integration Tests) are using TestPipeline.convertToArgs to convert well-defined options to list of pipeline-recognizable arguments and pass to pipeline main function. Incorrect arguments format will be returned if an option attribute type is List.
One solution is that IT can use beamTestExtraOptions to pass options directly to pipeline main function without passing through TestPipeline.converToArgs.
For example, when a test option have a attribute called listArgs with value ["item1","item2"], TestPipeline.convertToArgs(options) will return:
before fix: --listArgs=["item1", "item2"] (which cannot be parsed)
after fix: --listArgs=item1, --listArgs=item2

Another possible approach suggested from @jkff is to subtract part of the code (from pipeline.create to pipeline.run) to new function with option as argument. So IT can test pipeline by calling this function and passing test option to it. This can avoid conversion from option to string list. Does it help users understand IT better? @lukecwik

The suggestion that @jkff provided also works but doesn't let us leverage using PAssert which may or may not matter since we rely on TestPipeline to perform validation based upon lifecycle events.


Keymap, remote not working using rustdesk

I found that keyd didn't work at all when using the remote screen.

What do you mean? What is your setup?
From https://github.com/rvaiya/keyd/issues/551#issuecomment-1806616435:

Your local machine interprets keystrokes and inputs them into the terminal. ssh is a program which creates a pseudo-terminal that allows you to interact with a remote machine. The keystrokes are still interpreted by your local input stack. Consequently, installing keyd on the machine you are remotely logged into will have no effect.

I use the rustdesk client matepad Android system to connect to my Ubuntu remote desktop. My keyboard and mouse are connected to the matepad. I have set up the keyboard mapping in the Ubuntu system, but the input keys through the matepad do not work.

This won't work. keyd only intercepts keys generated by keyboards attached to the system (it works at a lower layer than the display server). You will need to use a display server remapping tool if you want bindings to be remotely applied.


Run Builds in Docker Container Locally

I have been playing around to run the builds with Pester 5 in container locally for the following configurations

Windows server core with PS 7
Windows server core with PS 5.1
ubuntu-18.04 with PS 7

It uses docker and I have created 2 images with our modules preinstalled. There were some problems to run PS5.1, but I managed to have this run. I think it still needs some minor changes, but 95% I feel it is good enough to have it for developers to use.
They all seem to work. IN between build the daemon switches from windows to linux since linux based containers cannot run with windows containers in parallel.
Tell me what you think and if it works for you @DarqueWarrior

$PSVersionTable.Platform on my machine (Windows 10, PowerShell 5.1) returns nothing because it was not supported then.  and causes the following errors:
WARNING: Platform is not Win32NT based but ''. Windows container do not work on linux based systems. Ignoring windows containers...
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/images/json?filters=%7B%22reference%22%3A%7B%22vsteam%2Flinux%22%3Atrue%7D%7D: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
unable to prepare context: unable to evaluate symlinks in Dockerfile path: CreateFile R:\repos\vsteam\build\docker: The system cannot find the file specified.
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/json?all=1&filters=%7B%22name%22%3A%7B%22vsteam_linux_ps7_tests%22%3Atrue%7D%7D: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/json?filters=%7B%22name%22%3A%7B%22vsteam_linux_ps7_tests%22%3Atrue%7D%7D: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
C:\Program Files\Docker\Docker\resources\bin\docker.exe: error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/create?name=vsteam_linux_ps7_tests: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
See 'C:\Program Files\Docker\Docker\resources\bin\docker.exe run --help'.
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/vsteam_linux_ps7_tests/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
Exception calling "Substring" with "2" argument(s): "StartIndex cannot be less than zero.
Parameter name: startIndex"
At R:\repos\vsteam\tools\docker\Run-ContainerTests.ps1:157 char:10
+          $versiontable = $output.Substring($outputFirst, $ouputLast+1 ...
+          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentOutOfRangeException

error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/vsteam_linux_ps7_tests/wait?condition=: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

Get-OperatingSystem works everywhere and is a better way to check OS.
I changed it locally but still getting different errors. I will keep playing with it.

I tried to push my change but got an error
Permission to razorspoint/vsteam.git denied to Darquewarrior.

This is the error I am getting now:
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/vsteam_wcore1903_ps7_tests/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

I am getting close. I have the Linux version working on Windows. But the Windows images are failing to build.

I can't seen to get my Windows containers access to the internet so all the module installs are failing. Did you have to do anything special to get your Window containers to see the internet?

I got internet in my Windows VMS but following this https://github.com/docker/for-win/issues/2760

Now that I have it working this is pretty cool!  I wonder if we should just add a -UseDocker switch to the build-module.ps1 and roll this into that script.

It is strange. I don't see the PR checkbox to give you write access. I just gave you maintainer access to my fork repo!
I hope you can commit now to it.

Also just be aware, that we use the build module script to run the unit tests in docker and we would be using this also outside docker to start a container. I hope that does not break your brain or causing confusion. ;-)

About integrating it into the build script. I was thinking to refactor some of the build files we use into an extra folder!
I would suggest something like "tools/XYZ". There we put an extra structure for everything.

We can discuss during our meeting. I will try to have it this week.

Testing on my Linux machine now. Looks to be working. I will move to Mac to test next.

Still having issues pushing my changes to this PR. So I will create a new one with my changes. I have tested it on all three platforms. This is a really cool idea! Thanks.

Merged in a different PR.


Update ansibleVars

ansibleVars is not string anymore:
https://github.com/openstack-k8s-operators/dataplane-operator/pull/319
https://github.com/openstack-k8s-operators/install_yamls/pull/442

merging as it got 2 approvals


Typeset removing closing slash on void (singleton) elements

Void elements, or singletons, like img, hr, br and others contain a closing forward slash in (X)HTML validation, e.g. .
When Typeset processes content with HTML, it is removing those closing slashes, e.g. rendering the above as .
Closing slashes are of course optional, but:
a) I don't think Typeset should be messing with tag syntax in the first place.
b) In HTML emails, using closing slashes is recommended for cross-email compatibility in all their crappy rendering engines.
c) In my case, I'm using MJML, which uses void/singleton elements for things like mj-image -- and in that case a tag without a closing slash isn't valid.
My specific use might be an edge case, but I'm sure I'm not the only one formatting HTML emails.
Can Typeset avoid changing HTML tags?

Oh, also -- this doesn't seem to happen with only "optically align letters" turned on. But with small caps, hanging punctuation, etc. it does change the tags.

This is definitely a bug – I don't have an immediate hunch as to the source of the issue but I will fix this!

Thank you! I really appreciate it.

@rootwork v0.3.4 will fix this issue.


Written documentation?

Videos are really slow and difficult to use. Can we have some written documentation for this, please?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b034fd72-470b-76e3-e080-46cb688242db
Version Independent ID: 3fde5448-65db-8332-2194-c3b301d0d4d5
Content: Capture and view USB traces with Microsoft Message Analyzer
Content Source: windows-driver-docs-pr/usbcon/capture-and-view-ing-usb-traces-with-microsoft-message-analyzer-.md
Product: windows-hardware
GitHub Login: @windows-driver-content
Microsoft Alias: windowsdriverdev

@davidgiven, thank you for your comment and apologies for the long timeout getting back to you.
Microsoft Message Analyzer (MMA) will be retired and its download packages removed from microsoft.com sites on November 25 2019.  There is currently no Microsoft replacement for Microsoft Message Analyzer in development at this time.  For similar functionality, please consider using a 3rd party network protocol analyzer tool such as WireShark.
More information is available at: https://docs.microsoft.com/openspecs/blog/ms-winintbloglp/dd98b93c-0a75-4eb0-b92e-e760c502394f


Add XFS fuse support

Just stumble into a project that might be a good addition to this repository.
fusexfs is adding XFS support to Fuse for OSX: https://sourceforge.net/projects/fusexfs/
Not sure how I can reuse the fuse-xfs-0.2.1.dmg available at: https://sourceforge.net/projects/fusexfs/files/releases/
Shouldn't we build it from source instead?

Shouldn't we build it from source instead?

Yeah, we'd need that capability for a formula for it to be accepted, although the Caskroom may well take the .dmg version.
I can't see any location where upstream have released the source code in an easy-to-use format so you might need to request that from them if you wanted to chase the formula option.

We'll accept PRs for this but we're not actively working on it at this time.

Just asked the maintainer to produce a source release. See: https://sourceforge.net/p/fusexfs/discussion/general/thread/cb2abcaf/


[ROADMAP] Update the roadmap

I have more or less copy & paste what I have put into the v1 release blog post. It's a first draft to initiate the discussion.
It's high level. I think that it should be used to communicate and give an idea around where the project is going to focus its effort on. I don't think that we need to go into the details. Issues & milestones can be used for that. I have ordered the list.
Also, we need to keep in mind that at the end of the day, the majorities of our contributors (the long tail) work on what they care for, they completely ignore the roadmap. So, no pressure, this document is a best-effort guideline, nothing more.

I guess you meant to piggy-back on this PR for misc. other changes? (I normally only do it by mistake! 😆)


Fix MeshLayer texture rendering

For https://github.com/uber/deck.gl/issues/1563
Change List

Update example in layer-browser to test texture
Fix uniforms sampler and hasTexture
Fix light weight calculation
Fix fragment shader

Todo in follow up PRs

Fix 64-bit mode (when unified projection is published)

@georgios-uber Affects PathMarkerLayer.