Proposal: Enable DynamicDependencies

Proposal: Extensibility hooks in generated main
Summary
Optionally add hooks in the generated main code for developers to provide code to execute before any WinUI code. Bonus points for hooks at the end of the generated main and other useful points for developers to add functionality without manually editing or otherwise hacking generated files in fragile ways.
Rationale

MSIX Dynamic Dependencies requires API calls before using WinUI in a Framework package

MSIX Dynamic Dependencies supports non-packaged processes using Framework package goods by calling APIs at runtime, accomplishing what packaged apps do via <PackageDependency> in their appxmanifest.xml. For non-packaged apps to use XAML via a Framework package the app needs to call APIs before accessing WinUI.
This is currently impossible with XAML's generated main method. There's no opportunity for the developer to provide code to execute before the generated main uses XAML (not without fragile manual editing of the generated main). Per https://github.com/microsoft/ProjectReunion/issues/89#issuecomment-701455098

Developers shouldn't have to write code in their main method. Maybe this is fine for frameworks where the app author owns the main method. But in WPF and WinUI, the main method is generated by tooling.

The generated main should have extensibility hooks, e.g. the generated main has pre() and post() calls to InsertYourCodeHere? Maybe a new main-extensions.cpp is created with a new XAML project with void XamlMainPre() { /insert code here/ } and XamlMainPost() for devs to inject logic into their app's startup flow?
There may be other reasons (e.g. a crash handler).
See Proposal: Extensibility hooks in generated main #3632 for the equivalent ask of WPF.
Scope

Capability
Priority

Optionally support a 'pre-Main' callout for developers to provide code before the generated main logic w/o editing generated files
Must

Optionally support a 'post-Main' callout for developers to provide code after the generated main logic  w/o editing generated files
Should

Open Questions
Are there other desirable extension points in generated files/code?

No, we will have loaded winui before the app constructor is called. Seems like we'd need to implement this for your scenario.

@fabiant3 this is a tooling proposal, is there a PM in this space we can assign it to?

Adding @marb2000

@marb2000 could you let us know who in Project Reunion would be on point for this?

@JeanRoca you can redirect all these request towards me. @DrusTheAxe, My question is why can't we do this in the Main before loading the App object?  If so, this is about changing the codegen.

The needed code pattern is
main()
{
    MddBootstrapInit(...);
    ...use WinUI...

Is WinUI touched before this? This includes global constructors etc
Put overly simplistically, think of MddBootstrapInit() as
string path = GetEnvironmentVariable("PATH")
path = "C:\Program Files\WindowsApps\WinUI_<IP_ADDRESS>_x64__1234567890abc"  + ";" + path
SetEnvionrmentVariable("PATH", path)

WinUI's DLLs can't be accessed before MddBootstrapInit() is called.
It's my understanding (per folks more expert in XAML :P) the generated code was invoked before the developer had the opportunity to do this, hence the issue. Are they mistaken?

This is the generated code:
public static class Program
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," <IP_ADDRESS>")]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.STAThreadAttribute]
        static void Main(string[] args)
        {
            global::WinRT.ComWrappersSupport.InitializeComWrappers();
            global::Microsoft.UI.Xaml.Application.Start((p) => {
                var context = new global::Microsoft.System.DispatcherQueueSynchronizationContext(global::Microsoft.System.DispatcherQueue.GetForCurrentThread());
                global::System.Threading.SynchronizationContext.SetSynchronizationContext(context);
                new App();
            });
        }
    }

So If the request is to add MddBootstrapInit(...); in the generated code before Application.Start, I don't see why we can't do it. I believe we want to use FrameworkPackages by default.
However, if the request is to enable an extensibility point where every developer can add things before XAML starts easily, then it's more complicated and we need to design it.  Also, devs can create their own Main and do whatever they want before XAML loads.
Adding @stevenbrix to the discussion.

MddBootstrap.h
STDAPI MddBootstrapInitialize(
    const PACKAGE_VERSION minVersion) noexcept;

STDAPI_(void) MddBootstrapShutdown() noexcept;

That minVersion is how an app specifies "I need Project Reunion, version <IP_ADDRESS>+". Nothing something codegen can treat as a constant. I guess devs could specify a new parameter to the generator and have it emit the call, and rerun the generator to update it whenever the dev moves their minimum-required-version. But seems kinda heavyweight.
Also, this is only needed by not-packaged apps. Packaged apps using Project Reunion don't need this call (in fact it'll fail for them). The bootstrapper is to help not-packaged processed get a toeheld in the packaged world so they can access things formerly not accessible, e.g. framework packages.
Thoughts?
BTW that's C#. What's the generator emit for C++?

I'm just brainstorming here...
If the way that a developer specify a new version of Reunion is updating the Reunion NuGet, can the toolchain autogenerate the code again?

I'd shy away from any nuget-dependent magic solutions. We're initially supporting nuget but there's been asks for other formats e.g. vcpkg.
And not every developer uses VS or nuget. Arguably they'd crack open the nuget and handle the files as needed in their build system. Any XAML codegen magic based on nuget wouldn't be viable in these cases and manually editing generated files is feasible but probably more fragile than desirable.
In earlier conversations some thought there's merit in having a hook to meet this need via a generic mechanism. That devs could use for other purposes (the notion of pre- and post- hooks are as age old concepts), and it's up to them to stick the MddBootstrapInit and/or whatever in a non-generated file.
I just learned about __has_include. Might that be a simple solution e.g. inject into the generated code
#if __has_include(xaml_main_hooks.h)
#  include xaml_main_hooks.h
#endif

int WinMain(...)
{
#if __has_include(xaml_main_hooks.h)
    Xaml::Hooks::Pre();
#endif

    ...current generated code...

#if __has_include(xaml_main_hooks.h)
    Xaml::Hooks::Post();
#endif

    return 0;
}

Devs can create xaml_main_hooks.h with a Pre() function calling MddBootstrapInit (and/or whatever)
And if devs don't care they don't define a xaml_main_hooks.h and XAML's codegen ignores it

I feel like anything relying on the include path could be recipe for potential trouble and hard to diagnose issues, because of libraries "leaking" implementation details like these in the include path of another project/library.
And I absolutely agree with not making it rely on NuGet: NuGet for C++ dependencies is a complete pain and I'd much rather use vcpkg for everything I can, but projects like WinUI and cppwinrt sticking to NuGet only prevent me from switching over.

If the way that a developer specify a new version of Reunion is updating the Reunion NuGet, can the toolchain autogenerate the code again?

For .NET customers, Nuget is the only way to go, and we should use a Source Generator for this, so that we can use a single implementation for WPF and WinUI customers.

And I absolutely agree with not making it rely on NuGet: NuGet for C++ dependencies is a complete pain and I'd much rather use vcpkg for everything I can, but projects like WinUI and cppwinrt sticking to NuGet only prevent me from switching over.

@Scottj1s, is Reunion as a whole looking at supporting vcpkg? I thought vcpkg had limitations that prevented us from migrating?

@stevenbrix is Reunion as a whole looking at supporting vcpkg?
Project Reunion is targeting NuGet for the initial release. Other distribution mechanisms (including vcpkg) have been discussed for potential future consideration. See CMake or vcpkg support
#74 for more details

Even if vcpkg isn't meant to be supported for the first release, I think it would be wise to design a solution that is not entirely coupled to NuGet to ensure that when vcpkg gets support it doesn't break existing consumers using NuGet.

wise to design a solution that is not entirely coupled to NuGet
+1

We've had interest in other technologies e.g. CMAKE. Consider NuGet a distribution mechanism (not the). Merely the 1st we're supporting.
Likewise, the solution should support C#,. not just .NET Core. .NET 4.x is quite popular and not all devs can or will switch to .NET Core anytime soon.
The generator-hook concept is one option but if there's better answers that's fine by me. I have no dog in this hunt other than "a good solution for all". I defer to the experts on its shape and size :-)

+1 to a solution for all.
I'm going to change the title of this issue, because the problem is that we need to enable dynamic dependencies, and extensibility hooks are one possible solution.

Also, just so we're speaking correctly - nothing we do as part of the build is "based on nuget" - NuGet is just our delivery mechanism. We do depend on MSBuild, and I don't see that changing any time soon. My understanding is that CMake is a layer on-top of MSBuild, so I don't see our MSBuild dependency being problematic. If my understanding is wrong, then please let me know.
Another possible solution is that we generate the boilerplate code needed to call this API and register the framework packages. We have all the necessary information at compile time to do this, so my vote would be to not require more boilerplate if we don't absolutely have to. The same thing applies for sparse packages. We have tooling now which will generate the sparse package for you in VS, and the code to register it is identical, and only changes based off the name of the package (which we know at compile time).

My understanding is that CMake is a layer on-top of MSBuild, so I don't see our MSBuild dependency being problematic. If my understanding is wrong, then please let me know.

Not entirely. CMake supports multiple generators, one of them being a MSBuild generator. Many open source projects however, target the Ninja generator, in which case MSBuild is not part of the build process.

@stevenbrix  generate the boilerplate code needed to call this API and register the framework packages
No registration. ProjectReunion handles that.
I don't see how reliance on any particular tool (NuGet, MSBuild, CMake, Ninja, GNU Make, SCons, VS, VSCode, Emacs, vi, yadda yadda) is viable as Project Reunion isn't dictating or ruling out any (and all) tools. Quite the opposite. Given the breadth of development processes and practices (including many one-off custom) we aim to support them all (though some maybe sooner or better than others :-)
To recap: a non-packaged process using WinUI 3 needs to call MddBootstrapInitialize(...parameters...) before touching any WinUI bits, anything else from Project Reunion or any other framework package. And it's not a fixed/constant call. Those parameters can vary per-app, and we reserve the right to extend them in the future :-)

Is there any additional thinking/progress being made on this? It doesn't work today (0.8-preview) and I'm getting very worried this won't work at 1.0 GA.

WinUI3 support was enabled via WinAppSDK's Bootstrap auto-initializer.
If this sort of Wi UI extensibility is of interest for other reasons please open a new issue and link to this for historical reference

I don't understand how this was silently renamed from "extensibility hooks in main" to "enable dynamic dependencies". This feels like an escape to close the issue for me.
The need to run your own code before App's constructor is still very much present, and hasn't been addressed. For example, I want to set DLL loading policies and setup my logging framework before doing any WinRT work, as those affect the WinRT runtime and loading of runtime objects (logging restricted error info, forbidding unsigned DLLs from loading, forcing ASLR and CFG, etc.)

It’s not a very good option from a maintainability perspective because you have to manually backport improvements or changes back to your code, but in lieu of a sensible solution here you can use DISABLE_XAML_GENERATED_MAIN to call your own version of the same code (copy-and-pasted from the autogenerated one) with your callbacks/hooks in place.
I don’t disagree that  MS should provide a better option, of course.

@stevenbrix renamed it, I don't entirely know why. I opened the issue as we needed a way to support process setup work before any WinUI WinRT object was activated and through a more general extensibility mechanism would be simpler and more broadly useful. But folks disagreed and ultimately we needed Dynamic Dependencies to work regardless of broader WinUI interests (met or not) and thus was born the WinAppSDK Bootstrap auto-initializer.
Given the driving reason for this issue was WinUI support for WinAppSDK via Dynamic Dependencies the rename isn't necessarily wrong. But as noted on the thread there are more uses for such open extensibility than just Dynamic Dependencies. If that's of interest to the community I suggest opening a new issue with the details, as clearly "open WinUI generated main to support DynDep and other uses" didn't address those other uses.
I'm supportive of the broader extensibility options and reasons raised on this thread. And if/when WinUI evolves to support them (or other useful mechanisms) I'll happily revisit Dynamic Dependencies (and other) support by WinUI.

@MikeHillberg @Scottj1s for visibility


Test the mAP of pretrained model failed

After downloading the pretrained model, the mAP of  model 'mobilenet_iter_73000.caffemodel' is only 0.007. It seems that some layers didn't load  pretrained weights, and I found  that some layers , such as 'conv11_mbox_conf', 'conv13_mbox_conf','conv14_2_mbox_conf' ,  are ignored during loading pretrained weights. From this view, it seems that the layers'names are incompatible between caffemodel and prototxt files. Is it some error or bug?

Layers such as 'conv11_mbox_conf', 'conv13_mbox_conf','conv14_2_mbox_conf'  are ignored during loading from pretrained-model because corresponding layernames in the prototxt file are  'conv11_mbox_conf_new', 'conv13_mbox_conf_new','conv14_2_mbox_conf_new'.
Thus removing the '_new' suffix in the prototxt for these layers and then checking whether these layers are initialized with pre-trained layers after modification.


mjml warning of "beautify" option depreciation on watch, even with no config option set

Describe the bug
When I run mjml -w index.mjml I get this warning:
"beautify" option is deprecated in mjml-core and only available in mjml cli.

even though I haven't set any beautify option. This makes for a lot of noise in the watch console.
To Reproduce
Steps to reproduce the behavior:

echo '<mjml><mj-body></mj-body></mjml>' > index.mjml
mjml -w index.mjml
See warning

Expected behavior
mjml -w should watch and process a valid file without throwing warnings.
MJML environment (please complete the following information):

OS: Linux (Mint 20.1, Ubuntu 20)
MJML Version: 4.9.0
MJML tool: npm core module (mjml, not mjml-cli)

As beautify is set to true by default it will display this message until MJML5 you can just disable beautify for now

My point is that MJML4 shouldn't output warnings when the user hasn't set any config options. MJML4 sets beautify by default, great, good for it, but if it's going to do that then it shouldn't also warn the user about a setting it silently turned on.
 Beautify? But I didn't tell it to beautify anything. Why is it warning me about its own default behavior?
Either MJML4 should:

not turn on beautify by default anymore; I assume this is no-go since it would change expected behavior and (maybe?) build scripts
know to not display the depreciation warning unless the beautify config option is actually passed to it by the user

Weird, here minify and beautify are omitted
https://github.com/mjmlio/mjml/blob/master/packages/mjml-cli/src/client.js#L213
And here defaults are set to false
https://github.com/mjmlio/mjml/blob/master/packages/mjml-core/src/index.js#L92-L103
Did I miss something?

Probbly this
https://github.com/mjmlio/mjml/blob/master/packages/mjml-cli/src/helpers/defaultOptions.js
On Thu, Mar 11, 2021 at 10:49 PM Bogdan Chadkin @.***>
wrote:

Weird, here minify and beautify are omitted
https://github.com/mjmlio/mjml/blob/master/packages/mjml-cli/src/client.js#L213
And here defaults are set to false
https://github.com/mjmlio/mjml/blob/master/packages/mjml-core/src/index.js#L92-L103
Did I miss something?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mjmlio/mjml/issues/2205#issuecomment-797072432, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAELHTJ4L4KJKNO4TWW3VELTDE3FRANCNFSM4Y7N7UDA
.

Note this only happens on MJML watch, which makes it even more surprising. Running the "steps to reproduce" I included in the OP with mjml -r index.mjml -o index.html results in no depreciation warning.

@rootwork We just released v4.9.1, this should be fixed you can try it out

Yep, it works. Thank you!


Enhancement: finer control of word separators

Currently, the setting term "editor.wordSeparators" only tells the editor to separate words at these characters. Can we make it before or after the separators?
Now I take LaTeX as an example. If we remove \ from "editor.wordSeparators", then double click on \cmdA\cmdB\cmdC, we will select the whole expression. However, as the expression is actually three commands, we should select a single (e.g. \cmdA) one at a time. That means, we should only separate words before \, not after.

Hey there.
On this matter of word separators, i was wondering if it was possible to have a "sub-word separator".
For instance, on SublimeText, using ^ ⌥ →/^ ⌥ ← navigates between subparts of words, separated by caps, which is super useful for camelcase.
I couldn't find anything like it in VSCode.
Is it something that exists in VSCode, or that is to be implemented ?

My bad, my request was handled here, i just did not know the correct keyword...


CB-11296: Appium: Better element clicking and session error handling

Platforms affected
Android, iOS
What does this PR do?
https://issues.apache.org/jira/browse/CB-11296

(iOS) Adds a workaround for Appium bug when it clicks the wrong element.
Tests fail fast if couldn't create a session

What testing has been done on this change?
Ran Appium tests on iOS real device (8.1) / simulator (8.4) and on Android (5.0 and 4.4) emulators
Checklist

[x] ICLA has been signed and submitted to<EMAIL_ADDRESS>[x] Reported an issue in the JIRA database
[x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
[x] Added automated test coverage as appropriate for this change.

Cordova CI Build has one or more failures.
Commit     - Link
Dashboard - Link

Builder Name
Console Output
Test Report
Device Logs

Windows 8.1 Store
Link
Link
Link

Windows 10  Store
Link
Link
Link

Windows 8.1 Phone
Link
Link
Link

iOS
Link
Link
Link

Android Mac
Link
Link
Link

LGTM


ConnectionError

When I tried to use the script with the command line
"python scihub.py -v -d 10.1080/00918360903187788"
, it failed and said
"requests.exceptions.ConnectionError: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max                                                                                retries exceeded with url: /10.1080/00918360903187788 (Caused by NewConnectionError('<req                                                                                uests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f483182be90>: Faile                                                                                d to establish a new connection: [Errno -2] Name or service not known',))".
But downloading the pdf file through sci-hub website worked well.

Hey @pishijiazu, I updated the SCIHUB_BASE_URL to point to the correct url. I believe that may have been the problem -- works on my end.


Support locale detection/switch

We're using react-intl for the locale management.
The corresponding Web app locale messages are located here:
https://github.com/promethe42/cocorico/blob/master/app/src/script/intl/intl.js
We must:

[ ] add messages for another locale than French (English? in another intl file or the same?)
[ ] select the app language according to the browser language (maybe react-intl does it automagically ?)

I'm on it.


5 month a sleep

this extention is dead ??? 5 months and no updates what so ever !! ?

@jihadismail8 This is OS - so feel free to contribute to it. And secondly, I really doubt that you can say @mpociot has been asleep for the last five months....

@jihadismail8 This is OS - so feel free to contribute to it. And secondly, I really doubt that you can say @mpociot has been asleep for the last five months....

@dsturm  first : of course i did not mean  @mpociot  is a sleep , i know he is busy guy ,  second: why you toke it so personally ???  thirdly : no need to tell anybody on github if he can contribute to open source project or not , its obvious anybody can !! thirdly  i am trying to figure out if the project is still in development or it has  useless fundamentals   ( i never made an extension before , i do not know if  i should go deep in that or not )

@dsturm  first : of course i did not mean  @mpociot  is a sleep , i know he is busy guy ,  second: why you toke it so personally ???  thirdly : no need to tell anybody on github if he can contribute to open source project or not , its obvious anybody can !! thirdly  i am trying to figure out if the project is still in development or it has  useless fundamentals   ( i never made an extension before , i do not know if  i should go deep in that or not )


Can't find how to get ClusterToken in the Swagger definition.

Package Name: azure-mgmt-containerservice
Package Version: 21.1.0
Operating System: Windows11
Python Version: 3.8

Describe the bug
An error was given when I used the begin_run_command operation of azure-mgmt-containerservice:
azure.core.exceptions.HttpResponseError: (MissingAADClusterToken) This cluster have Azure Active Directory enabled, .clusterToken is required.
Code: MissingAADClusterToken
Message: This cluster have Azure Active Directory enabled, .clusterToken is required.

by swagger definition, I can't know where and how to get the clusterToken
To Reproduce
Steps to reproduce the behavior:
Configure the certificate and run the following code:
result = client.managed_clusters.begin_run_command(
    resource_group_name='',
    resource_name='',
    request_payload={
        "command": "kubectl apply -f ns.yaml",
        "context": "xxxx",
        "clusterToken": ''
    }
)

Expected behavior
Get clustertoken information normally.

duplicate of #22480


<EMAIL_ADDRESS>missing index.d.ts

Upgrading from 0.0.33 to 0.0.34 removes the index.d.ts for the Typscript typings for the npm package: @types/localforage
System configuration:
Windows 10
node v7.10.0
npm v4.2.0

The respective @types package isn't maintained by any of the team members as far as I know, even though we have contributed a few times.
Since v1.5.0 the typings are part of this repo and I would strongly suggest you to use those and drop the @types.
Curiously I can't find https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/localForage any more.

It seems that they also added a README in the @types/localforage v0.0.34 package that states that localforage now provides its own typings, so v0.0.34 seems like a "gravestone" release. You should obviously either  update to LF 1.5 or stick with v0.0.33.


[BUG][2.10] conflicts in cypress commands

https://github.com/opensearch-project/opensearch-dashboards-functional-test/pull/826 overwritten functions that other tests are using causing failures.
Will need to either revert or address the conflicts within this file: https://github.com/amsiglan/opensearch-dashboards-functional-test/blob/45104b809fe1eeeb137301b168cc24d63d42055b/cypress/utils/plugins/security-analytics-dashboards-plugin/commands.js

@amsiglan lemme know if you are able to look into this


Create a "impeller" repository on flutter.googlesource.com

Impeller is a rendering backend for Flutter. The default branch needs to be main. It may be left bare and I'll set it up.

Would this be a public facing project?

Yes

Done! it is available here: https://flutter.googlesource.com/impeller


guild how to fix crash with admod version 17.0.0

@songoku1610 please sign the PR so I can merge. It needs a CLA before I can merge.

Hi @kroikie,
I have done, sorry for missing information :)


Add ability to kill a ongoing job from the web-ui

Changes introduced in this PR

Type of envJobThreadsRef is changed to a Map from a List
A new status Cancelled is added, This is used to represent a job that is cancelled by the user via Admin UI
A new thread killJobPoller is forked along with JobPoller and jobEventListener. This polls for jobs that are cancelled by the user and are Started / locked by a JobRunner (refer killJobPollingSqlM) and kills them.
Some UI / UX improvements

When a user cancels a job (Locked/Queued), its status is changed to cancelled. If this job is already locked by a JobRunner, it's respective killJobPoller will pick it up and kill the job thread.
Breaking change: Constraint on jobs table needs to be updated, to account for the new cancelled status
BEGIN;
ALTER TABLE jobs DROP CONSTRAINT incorrect_locking_info;
ALTER TABLE jobs ADD CONSTRAINT incorrect_locking_info CHECK(
  (locked_at is null and locked_by is null and status <> 'locked') or
  (locked_at is not null and locked_by is not null and (status = 'locked' or status = 'cancelled'))
);
COMMIT;

https://user-images.githubusercontent.com/18610982/128295246-b8e6b0df-84c8-4e15-b470-a5d2581baeb3.mov
TODO: Improve / add test cases that cover all possible user flows. Right now the test cases rely heavily on timing and delays, This causes some of them to fail every now and then (happened couple of times to me on master branch).

Once this is done, I think it will be a great contribution for us to upstream as well!

There is a small bug in case where we kill a job but the thread has already died:

This is on staging btw.


Performance concerns

Using this library was pretty straight forward. I was able to do what I wanted, but the performance left a lot to be desired.
Here's what I was trying to do. Maybe there's a faster way to implement it? If not, I think I have a proposed solution.
I am using an FPGA and high-speed DAC to synthesize some sinusoidal tones. We are aiming for a SFDR of 70+ dB. The DAC update frequency is 30 MHz. Right now, I'm using a linear interpolation scheme to reduce the size of my sine look-up tables. I have a 28-bit phase accumulator, and I have two LUTS containing 18-bit, signed, fixed point slopes and offsets. I use the upper bits of the phase accumulator to address the LUTs, and I use 17 of the lower bits as an unsigned "distance". I then multiple the distance by the slope and add the offset. I send the resulting sample stream to the DAC.
We're seeing some spurious peaks in the FFT of the DAC output. I wanted to do some analysis to see what level of spurious peaks I should expect from my linear interpolation scheme. That's where the fixedpoint library comes in. I dumped my slope and offset LUTs from my HDL simulator and loaded them into Python as lists of FixedPoint values. Then, I calculated my fixed point distances and performed the same multiplication and addition.
The problem is that I want my simulated FFT to match the real FFT. The real FFT uses 10 ms of data, so I need to generate 300,000 FixedPoint results.
Right now, this is the best I've come up with. dist and addr are numpy arrays of integers. I couldn't find a way to initialize the raw fractional bits of dist_fp directly from the integers in dist, so I had to convert from int to str and back. However, creating dist_fp "only" takes 5-6 seconds. Computing the samples takes something like 30+ seconds.
  dist_fp = [FixedPoint(hex(d), True, 1, FRAC_BITS) for d in dist]
  samples = []
  for a, d in zip(addr, dist_fp):
      offset = offsets[a]
      slope = slopes[a]
      samples.append(offset + slope * d)

Is there a better way to do this? My gut tells me I might be able to improve it slightly, but I think the better solution would be to offer something like a FixedPointArray that is backed by numpy arrays underneath. I think it is common to have arrays of fixed point numbers with identical types, so I think it would be useful. You would probably have to limit the total number of bits to 64, and use dtype="u8" under the hood, but that doesn't seem like a major limitation to me.
Thoughts?

I couldn't find a way to initialize the raw fractional bits of dist_fp directly from the integers in dist, so I had to convert from int to str and back.

That is correct, this is the fastest way to do it.

Is there a better way to do this?

When you do offset + slope * d, it actually creates 2 FixedPoint objects, which is expensive. one of which doesn't get used. First, the product of slope * d is generated, then the sum of offset + <product> is created. By minimizing the number of objects created, you'll save some time.
I'm able to trim off a few seconds off the loop by doing the following:
for a, d in zip(addr, dist_fp):
    val = FixedPoint(slopes[a])  # simple/quick copy, no error checking
    # val = slopes[a]  # even quicker if you don't mind changing the value of slopes[a]
    val *= d
    val += offsets[a]
    samples.append(val)

The reason this is quicker is because

val is simply copied, and no error checking is performed (see FixedPoint.__init__
Augmented operators += and *= do not create new FixedPoint objects; the result of the arithmetic operation is simply assigned to the existing val object.

So when I use tqdm to measure iteration time I get the following for your example above:
300000it [00:26, 11442.99it/s]
and this for my augmented operator example using val = FixedPoint(slopes[a]):
300000it [00:19, 15722.85it/s]
and this is for my augmented operator example using val = slopes[a]:
300000it [00:15, 19874.71it/s]
Here's my full test script:
from fixedpoint import FixedPoint
import random
from tqdm import tqdm

N = 300000
FRAC_BITS = 17
# I have a 28-bit phase accumulator, and I have two LUTS containing 18-bit,
# signed, fixed point slopes and offsets.
# I use the upper bits of the phase accumulator to address the LUTs
addr = range(N)
# and I use 17 of the lower bits as an unsigned "distance".
dist = [random.getrandbits(17) for _ in range(N)]
# I dumped my slope and offset LUTs from my HDL simulator and loaded them into
# Python as lists of FixedPoint values.
# I have two LUTS containing 18-bit, signed, fixed point slopes and offsets.
offsets = [FixedPoint(hex(random.getrandbits(18)), 1, 1, FRAC_BITS) for _ in addr]
slopes = [FixedPoint(hex(random.getrandbits(18)), 1, 1, FRAC_BITS) for _ in addr]

# Code sample
dist_fp = [FixedPoint(hex(d), True, 1, FRAC_BITS) for d in dist]
samples = []
for a, d in tqdm(zip(addr, dist_fp)):
    offset = offsets[a]
    slope = slopes[a]
    samples.append(offset + slope * d)

for a, d in tqdm(zip(addr, dist_fp)):
    val = FixedPoint(slopes[a])  # simple/quick copy, no error checking
    val *= d
    val += offsets[a]
    samples.append(val)

for a, d in tqdm(zip(addr, dist_fp)):
    val = slopes[a]  # quicker if you don't mind changing the value of slopes[a]
    val *= d
    val += offsets[a]
    samples.append(val)

I think the better solution would be to offer something like a FixedPointArray that is backed by numpy arrays underneath. I think it is common to have arrays of fixed point numbers with identical types, so I think it would be useful. You would probably have to limit the total number of bits to 64, and use dtype="u8" under the hood, but that doesn't seem like a major limitation to me.

This seems like a good idea; I am not as familiar with numpy as I should be but this is definitely worth looking into.

Thanks for the tips. I think the problem is that I want to avoid having to micro-optimize my code. I think that would quickly become tedious for more complicated numerical applications. It also requires deeper knowledge of the FixedPoint class. You have to consider all possible ways to implement your task, and you have to know the cost of each operation within that set before you can determine the approach with the best performance. I think all of that would drop away with a FixedPointArray.


Consecutive OrderBy not working

It seems that when using 2 consecutive OrderBy clauses, the first one is ignored. This means that the sorting isn't stable.
The documentation for Enumerable.OrderBy says that the sort is stable:
https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.orderby?view=netcore-3.0
but there's no mention of the stability in Queryable.OrderBy:
https://docs.microsoft.com/en-us/dotnet/api/system.linq.queryable.orderby?view=netcore-3.0
so I guess it's up to the implementation. Should EF Core provide stability as well, or is this not supported?
Steps to reproduce
using Microsoft.EntityFrameworkCore;
using System.Linq;

namespace ConsoleApp3
{
    public sealed class Record
    {
        public int Id { get; set; }
        public int A { get; set; }
        public int B { get; set; }
    }

    public sealed class ApplicationDbContext : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            base.OnConfiguring(optionsBuilder);
            optionsBuilder.UseSqlServer("Server=(localdb)\\mssqllocaldb;Database=aspnet-WebApplication-6E483A89-BEE6-4A76-96CC-CEB276E5E112;Trusted_Connection=True;MultipleActiveResultSets=true");
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }

        public DbSet<Record> Records { get; set; }
    }

    public static class Program
    {
        public static void Main()
        {
            using (var context = new ApplicationDbContext())
            {
                context.Database.EnsureDeleted();
                context.Database.EnsureCreated();

                context.Records.Add(new Record { A = 2, B = 2 });
                context.Records.Add(new Record { A = 2, B = 1 });
                context.Records.Add(new Record { A = 1, B = 2 });
                context.Records.Add(new Record { A = 1, B = 1 });
                context.SaveChanges();
            }

            using (var context = new ApplicationDbContext())
            {
                var records = context.Records.OrderBy(r => r.B).OrderBy(r => r.A).ToList();
            }
        }
    }
}

I would expect the order inside records to be the same as when calling OrderBy(r => r.A).ThenBy(r => r.B), so:
new Record { A = 1, B = 1 }
new Record { A = 1, B = 2 }
new Record { A = 2, B = 1 }
new Record { A = 2, B = 2 }

but that's not the case because the generated SQL only has ORDER BY [r].[A] as opposed to ORDER BY [r].[A], [r].[B].
Why sort things in such a weird way as opposed to using ThenBy?
I implemented a method that sorts an IQueryable based on a list of properties along with their sorting direction (ascending/descending). First I only used it on the client but at one point I started to use this with EF Core and later noticed that the sorting is wrong. For this method, OrderBy in a foreach loop is the simplest implementation. In order to use OrderBy/ThenBy, I had to special case the first item and also deal with the fact that in order to use ThenBy, I have to cast to IOrderedQueryable that is returned from the first OrderBy.
Further technical details
EF Core version: 3.0.0
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET Core 3.0
Operating system: Windows 10 Version 1903
IDE: Visual Studio 16.4.0 Preview 5.0

Should EF Core provide stability as well, or is this not supported?

Given EF Core has to translate Queryable.OrderBy to SQL Order By clause, the cost of implementing it is not as cheap as Enumerable.OrderBy where it just happens to be work. Hence we have no plans to support it.

@smitpatel Yes, I know it has to be translated. I was asking for the translation support.


Disable thumbnail lazy-load for Channels

Issue
Quick fix for #5933 Thumbnail lazy-load causes ChannelSelector icon to not update

Nice find. Thanks


Safe way to install

Added a working example, and a troubleshooting point

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Codecov Report

Merging #1106 into master will increase coverage by 0.34%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #1106      +/-   ##
=========================================
+ Coverage   34.16%   34.5%   +0.34%
=========================================
  Files          36      36
  Lines        2901    2901
=========================================
+ Hits          991    1001      +10
+ Misses       1807    1796      -11
- Partials      103     104       +1

Impacted Files
Coverage Δ

libstorage/api/types/types_localdevices.go
86.3% <0%> (+1.36%)
:arrow_up:

...storage/drivers/storage/vfs/storage/vfs_storage.go
40.28% <0%> (+2.15%)
: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 bcae8ba...564ed86. Read the comment docs.

Hi @kassanmoor,
Please rebase this PR onto master. Additionally, please read the guide for contributing documentation. Some changes you need to make:

Please refrain from using pronouns. Passive voice is preferred.
Markdown should be limited to 80 characters per line.

Thank you.


Locking properties added for DataverseInstanceConfig

Fixes DD-218
Description of changes
Work in progress...
How to test
Related PRs
(Add links)
*
Notify
@DANS-KNAW/dataversedans

Superseded by #23


Generalise spatial coordinates in recipes

Something else
Currently some recipes like generic_domain_mean_vertical_profile_series.yaml and generic_surface_domain_mean_time_series.yaml use fixed spatial coordinates (e.g. L24);
  - operator: collapse.collapse
    coordinate: [grid_latitude, grid_longitude]
    method: MEAN

We have a function in utils which determines spatial coordinates, that we could use.

This helps with models that use latitude and longitude, like ACCESS-A.


Seahub.sh not starting after upgrade 6.2.12 to 6.3.7

Hello,
I have upgrade my Seafilepro 6.2.12 to 6.3.7 and seahub.sh is not starting.
When i change “daemon = False” in guinicorn.conf file, i have those errors messages
Traceback`` (most recent call last):, File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn", line 9, in <module>, load_entry_point('gunicorn==19.8.1', 'console_scripts', 'gunicorn')(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py", line 61, in run, WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py", line 223, in run, super(Application, self).run(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py", line 72, in run, Arbiter(self).run(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/arbiter.py", line 60, in __init__, self.setup(app), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/arbiter.py", line 120, in setup, self.app.wsgi(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py", line 67, in wsgi, self.callable = self.load(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py", line 52, in load, return self.load_wsgiapp(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp, return util.import_app(self.app_uri), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/util.py", line 350, in import_app, __import__(module), File "/seafile/seafile-pro-server-6.3.7/seahub/seahub/wsgi.py", line 25, in <module>, application = get_wsgi_application(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/django/core/wsgi.py", line 13, in get_wsgi_application, django.setup(set_prefix=False), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/django/__init__.py", line 27, in setup, apps.populate(settings.INSTALLED_APPS), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/django/apps/registry.py", line 108, in populate, app_config.import_models(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/django/apps/config.py", line 202, in import_models, self.models_module = import_module(models_module_name), File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module, __import__(name), File "/seafile/seafile-pro-server-6.3.7/seahub/seahub/base/models.py", line 13, in <module>, from seahub.group.models import GroupMessage, File "/seafile/seafile-pro-server-6.3.7/seahub/seahub/group/models.py", line 13, in <module>, from seahub.profile.models import Profile, File "/seafile/seafile-pro-server-6.3.7/seahub/seahub/profile/models.py", line 206, in <module>, from .utils import refresh_cache, File "/seafile/seafile-pro-server-6.3.7/seahub/seahub/profile/utils.py", line 8, in <module>, from seahub.utils import normalize_cache_key, File "/seafile/seafile-pro-server-6.3.7/seahub/seahub/utils/__init__.py", line 1187, in <module>, seafevents_api.init(EVENTS_CONFIG_FILE), File "/seafile/seafile-pro-server-6.3.7/pro/python/seafevents/seafevents_api.py", line 9, in init, load_config(config_file), File "/seafile/seafile-pro-server-6.3.7/pro/python/seafevents/app/config.py", line 27, in load_config, appconfig.seaf_session_cls = init_db_session_class(appconfig.seaf_conf_path, db = 'seafile'), File "/seafile/seafile-pro-server-6.3.7/pro/python/seafevents/db.py", line 111, in init_db_session_class, engine = create_engine_from_conf(config_file, db), File "/seafile/seafile-pro-server-6.3.7/pro/python/seafevents/db.py", line 52, in create_engine_from_conf, backend = config.get(db_sec, 'type'), File "/usr/lib/python2.7/ConfigParser.py", line 607, in get, raise NoSectionError(section), ConfigParser.NoSectionError: No section: 'database',`
Should i try to upgrade again ? Do i need to change something in vhost file ?
Im not using fastcgi and using docker.
In my seafile.conf file, i have :
[database]
type=sqlite3
path=/seafile/pro-data/seafevents.db
[fileserver]
port=8082
Set maximum upload file size to 200M.
max_upload_size=800
Set maximum download directory size to 200M.
max_download_dir_size=10000
Config : nginx 1.13.5 / Debian Linux 9
Thanks in advance

There's no indication on seafile removing sqlite3 support. Their documentation also states that they won't disclose how to migrate to MySQL in the pro edition. (WHY?)
However, I found this note https://manual.seafile.com/deploy/upgrade_notes.html:

Seahub does not start
In case Seahub does not start after the upgrade, install python-requests.
sudo apt-get install python-requests

It indeed is missing in my image. I'll test this tomorrow (in 16 hours or so). Hopefully it's only because of that and not a configuration issue.

After adding the dependency and appending this config to conf/seafile.conf, seahub starts but is unable to respond to any API calls. (generic server error, yes I'll definitely debug that... /s)
[database]
type=sqlite3
path=/seafile/pro-data/seafevents.db

Since I don't use Seafile anymore anyway, I won't look further into this. Feel free to post a fix.
Most likely they broke something in their software and forgot to mention anything about it... Not even the debug messages are helpful.


Header Alignment

Hi Norm
I have added the keyword _ha to a table and the headers are not aligning.

Craig

Craig,
Can you try with regular text headers, without HTML like line breaks?
I thought that the  could be the culprit, but I just tried it and if works in my Tutorial app.

Can you please reproduce the problem in your debug copy, in that page I can access here:
https://arcproject.knack.com/arc-beta#inductiontreatment/treatment/
Just add the _ha keyword in the top table (view_2887) and set a few columns to centered and right-aligned.
Norm

And don't forget to update all your jQueries to the new syntax!
#selector    becomes ->  $('#selector')

Hi Norm
The HTML was my initial thought too, but I tried it without, and it still wasn't working.
I will setup the area for you and let you know when it's ready.
We are waiting on a version bump before we update our prod KTL so that's why we haven't fixed the JQuery selectors yet.
Craig

Ok I.ve added the ha and made 2 columns centre aligned.
Craig

The reason is a bad default init of the headerAlignment flag.
I've changed it to true and it will applied in next release.
In the meantime, you can manually enable it with this in your own init:
ktl.views.setCfg({
    headerAlignment: true,
})

Norm

So, an odd thing.  I haven't pulled any new code, but the header alignment flag works on 15.7 but not on 15.3.
So this will be fixed when we update our prod code we are just waiting for a version bump to 15.8.

Can we align the grid with a vertical centering?  When the grid height grows the content of each field is aligned at the top.

Currently, the KTL doesn't support that.
But you can easily do it in your CSS editor in the Builder by adding this line:
.kn-content table td, .kn-content table th {
	vertical-align: middle;
}

This will center all tables' cells and headers vertically.
If you want only the cells, not the headers:
.kn-content table td {
	vertical-align: middle;
}

Hope this helps,
Norm


rxMenuItem

Noticed that there isn't any support for MenuItem's.  If this has slipped your mind then let this issue serve as a helpful reminder, else remove.

MenuItem and menus in general are not UI components so they will not be included. There is Toolbar support for item clicks because it is a UI component.


Info about replacing dart:html with web

Since flutter web applications and the dependencies have to replace the use of dart:html with the web package in order to be compiled to WebAssembly (https://medium.com/dartlang/new-in-dart-3-3-extension-types-javascript-interop-and-more-325bf2bf6c13), do you plan to replace it in this package?

I'll check it out.


Marriage abroad FC feedback. Italy

Summary:

Italian embassy in the UK does not charge for anything: remove all sentences claiming otherwise for uk residence outcomes
Show only fees relevant to Italy in Italian residency outcomes
For non-british partners only their ID document is required in Italy
"No need to stay after posting notice" goes up by one paragraph
Rework statutory declaration requirements in Italy as they differ for British and foreign partners
Rename a few phrases to better reflect their purpose

Looks good to me.


Please invite me to the GitHub Community Organization

Name
Larry Neil
Discord Username (if applicable)
larryneil1206
Additional Context
I'd like to contribute myself to this organization.

Duplicate Issue


Improved UI of Quote Generator

Description
Improved UI of quote generator by changing font presentation and background image.
Fixes:  #671

Type of change

[x] Bug fix (non-breaking change which fixes an issue)

Checklist:

[x] I have made this from my own

[x] My code follows the style guidelines of this project

[x] I have performed a self-review of my own code

[x] My changes generate no new warnings

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

https://deploy-preview-678--amazing-js-projects.netlify.app/quote generator/

Is this font color alright? Or you have something specific in mind?

Please review if any changes are needed @VidhiBhatt01


Testing async request using ResourceTestRule

Hello,
I am setting up testing my rest endpoints with ResourceTestRule. With jersey api I am able to get the Future<Response> object from the async().post(Entity) call, but then got the below warning:
WARN  [2015-06-04 10:46:47,508] org.glassfish.jersey.test.inmemory.InMemoryConnector: Asynchronous server side invocations are not supported by InMemoryContainer.

and the test keep hanging. This Warning seems to be coming from jersey org.glassfish.jersey.test.inmemory.InMemoryConnector is there any plan for tackling this so async request could work with InMemoryConnector? Or any resource we can look at while this is not available yet.
Thanks,

Looks like InMemoryConnector doesn't support endpoints that can be suspended and are async, so a new testing container is needed. You may need to try out the Grizzly test web server. I was able to swap it out and have my test cases pass.
First you'll need to look up how to import the Grizzly test web server in your pom (see the Dropwizard documentation on testing resources
Here's the code for swapping:
@Rule
public final ResourceTestRule resources = ResourceTestRule.builder()
        .addResource(new HelloWorldResource())
        .setTestContainerFactory(new GrizzlyWebTestContainerFactory())
        .build();

and instead of calling resources.client().target(/*...*/), you want resources.getJerseyTest().target(/*...*/)
Let me know if this works.

@nickbabcock thanks this works! I have tried to work around by overloading the suspend method in InMemoryConnector but seems Grizzly test factory did the work already. Thanks again

For the convenience of anybody else facing weird issues after injecting an instance of GrizzlyWebTestContainerFactory:  We  must ensure that the version of "jersey-test-framework-provider-grizzly2" must match with the version of Jersey used.


created reservations_controller.rb

Kindly requesting review
Added reservations api controller
Left out routes as its already been done

this commit
https://github.com/cosywasswa/BookItNow-back-end/pull/20/commits/75b94653505f70ef1ded2f8f46dd09bb3f92088f
creates action logic in the Api::V1::ReservationsController. Key improvements include better error handling, clearer error messages, and optimized reservation creation workflow. The changes promote maintainability and provide more informative responses to the client.
https://github.com/cosywasswa/BookItNow-back-end/pull/20/commits/75b94653505f70ef1ded2f8f46dd09bb3f92088f


Taking massive amounts of fall damage from getting bigger

If I'm in survival, I take lots of fall damage while enlarged

Ugh, i thought of it being feature-not-bug-because-you're-too-heavy, but too many people are saying this is a bug.
M'kay, m'kay, will be fixed :)

I know, i know, i will add something that will negate fall damage (and somewhere in tooltip it'll say 'useful when large, ur too heavy dude')


Keyboard shortcuts for sl-menu do not appear to be functioning correctly.

http://localhost:4200/#/demos/sl-menu
@SpikedKira guessing this might be related to styling/DOM changes you made?

https://github.com/softlayer/sl-ember-components/commit/3d1fb70aa53f02f117c0abe75a7601828347558d#diff-215a5a7e0a4c5390d9fae5fee0471a1b


Give vocabulary concepts a label

Currently, concept can be created without a label. The minimum is code when creating a new concept:
POST /api/vocabularies/sshoc-keyword/concepts?candidate=true
{
  "code": "only+code"
}

This leads to problems in the visualisation of the concepts, e.g. in the Skosmos instance that we use for the representation of the concepts: https://vocabs.sshopencloud.eu/browse/sshomp-keyword/
You already see in this overview page of Skosmos, that there are 2264 concepts in the keywords vocabulary but only 702 within the language English. The missing 1562 concepts are the ones not having a label because the language tag in the export of a vocabulary only attaches the language to the label field. In general, having a label is more or less mandatory practice for SKOS concepts.
To sum up: the SKOS export of a vocabulary from marketplace will only apply language tags to the label field (the label field in marketplace becomes skos:prefLabel with language tag @en in the SKOS export). If there is only code given - which is currently possible - then the concept does not have a label and therefore no hint on a language. SKOS representation systems like SKOS expect that there is a label field (skos:prefLabel) which ideally also have a language tag. We use Skosmos for representation and Skosmos "hide" concepts without label/language tag in the hierarchy and in the search.
Thus we like to have label mandatory when creating concepts. We will deal with the old concepts having no label by applying the code value to the label value with the help of a script. Backend should additionally only allow the creation of concepts with a label (next to code) or should automatically apply the value of code to the value of label if no label is given.
Opinions? @tparkola @laureD19 @vronk @cesareconcordia

For the sake of simplicity and clearness I would change the API, so that it expects both code and label (otherwise raises an error). What do you think?

Agree with this, but we still need to think about the old ones that do not have a label. I think the only way to deal with them is to have a update script that sets label=code if label is not set. Would that work?

Yes, that would work, the script can be provided along the changes in the code. Will do that.

Works very well, the only new feature(?) to me is that error messages are now coming back in an extend JSON version:
{
  "timestamp": "2024-01-09 12:44:00",
  "status": 400,
  "errors": [
    {
      "field": "label",
      "code": "NotEmpty",
      "args": [
        {
          "codes": [
            "conceptCore.label",
            "label"
          ],
          "defaultMessage": "label",
          "code": "label"
        }
      ],
      "message": "The label of a concept cannot be empty or null!"
    }
  ]
}

Before we had a flat JSON:
{
  "timestamp": "2024-01-09T12:53:03.794+0000",
  "status": 403,
  "error": "Forbidden",
  "message": "Access Denied",
  "path": "/api/vocabularies/sshoc-keyword/concepts"
}

Don't get me wrong, I like the extend version but I'm not sure if frontend handles it correct. @tparkola Is this change in the return format of errors intended?


bug fix (initialization)

I just fixed tiny error of initialization. (Temperature_ion in control_sc.f90)

I confirmed that the error about "control_sc_mp_tddft_sc_$TEMPERATURE_ION" disappeared with -check uninit option by this PR. So I merge this PR.


Approaches to call python functions in the StepFunction of FLAMEGPU

I want to call a python function when FLAMEGPU is running and pass some Environment variables to it, and then pass the return value to FLAMEGPU to update these environment variables. Is this possible for FLAMEGPU?
I tried to call python functions in StepFuction but failed. I think this should require special settings for the include directories and linker of the project. If my idea is achievable, how should I set up and call python functions?
Thanks in advance!

Hi @Lucas-Qhy FLAMEGPU does not have any Python support. We have had cases of people using Python to drive simulations but the process has been;

Do some Python things. e.g. Genetic Algorithm process on environment variables.
Use Python to write an input file with environment variables
Launch FLAME GPU model with the input file using python sub processes

Note: FLAMEGPU2 has native python support. Its currently very close to alpha/beta release and probably just about safe enough to start developing models. There will be some changes to the interface prior to release but these changes will probably be minimal. See the new website (www.flamegpu.com) for some more info.

Thank you so much! @mondus.
I'd like to know whether the third point you mentioned above is to use python to provide initial files to the FLAME GPU model and call it cyclically? (Like the function of .bat) If I understand correctly, how is this achieved?


Choose to disable default ssh rule

Description
Let user to choose to enable or diable the default ssh rule
Issues Resolved
Check List

[ ] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable
[ ] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

Thanks for the contribution. I've created #27 to use the attribute that is already provided for this purpose in the firewall cookbook so I'm going to go ahead and close this.


Instagram seems to work as is now

It seems that the Instagram links can now have previews on Discord without using InstaFix.

The images go away some times. For me in less than 5 days. Then you have this:

InstaFix: Post might not be available


[ENH] Test what happens when we include excluded estimator: 2. MatrixProfileTransformer

see #347
MatrixProfileTransformer may well have problems, its  old and unloved. This is to diagnose them. Note I have included the changes in #597 for my sanity.

Passes
Passes
Passes
Passes

five passes enough for me, see #661


Conflicting dependencies winrm-fs

Hi,
When running vagrant plugin install vagrant-hostsupdater I got the following error:
conflicting dependencies winrm-fs (= 1.0.1) and winrm-fs (= 0.3.2)
Activated winrm-fs-0.3.2
which does not match conflicting dependency (= 1.0.1)
Conflicting dependency chains:
winrm-fs (= 0.3.2), 0.3.2 activated
versus:
winrm-fs (= 1.0.1)
Gems matching winrm-fs (= 1.0.1):
winrm-fs-1.0.1
I'm running Vagrant 1.9.7 on OSX Sierra 10.12.5.

Fixed, it was due to an old Vagrant install, improperly uninstalled. I ran the uninstall tool from Vagrant, reinstall it and the plugin now works.


Prevent silent timeout failure when computing pool values on "Pool library plates" page

Observed in maptest.ucsd.edu against qiita-rc db: Usually computing pool values for a single plate works fine, but occasionally for a single plate, and reliably if more than one (96-well) plate is added, clicking the "compute pool values" button produces no result (except that the button becomes permanently grayed out, and cannot be re-enabled even by changing pooling values, which should usually trigger a re-enable).  Examining the JavaScript console shows that the POST to compute_pool is timing out:

Ideally, we'd make this stop timing out :)  At the very least, we should provide some sort of information to the user about why the page suddenly died on them, and how to recover.  (Right now, the only way I know of to recover is to exit the page, come back in, and start over :( )

@AmandaBirmingham, do you have instructions of how to reproduce this error? Thanks!

@antgonza per above, in maptest.ucsd.edu, go to "Pool library plates" page, add multiple 96-well plates, and click the "compute pool values" button.  In my experience, it doesn't matter which plate type (amplicon or shotgun) is selected, or which pooling function (minimum or equal volume), or what robot is selected.  In my tests, I have left all other values as default.
HOWEVER, as noted in the but report, this failure doesn't always happen.  I just tried this four times, and it silently failed one time out of the four; the other three, it worked (i.e, the web request didn't time-out).

@AmandaBirmingham, thanks for the explanation. Looked at the logs and seems like this is the actual error:
[E 180124 16:48:30 web:2063] 500 POST /process/compute_pool (<IP_ADDRESS>) 30.51ms
[E 180124 16:48:47 web:1590] Uncaught exception POST /process/compute_pool (<IP_ADDRESS>)
    HTTPServerRequest(protocol='http', host='maptest.ucsd.edu:8080', method='POST', uri='/process/compute_pool', version='HTTP/1.1', remote_ip='<IP_ADDRESS>', headers={'Accept-Encoding': 'gzip, deflate', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'X-Requested-With': 'XMLHttpRequest', 'Accept-Language': 'en-US,en;q=0.9', 'Cookie': 'jlinkengads=engads; _ga=GA1.2.1689508911.1515106271; _gid=GA1.2.196178017.1516638277; __utma=57960238.1689508911.1515106271.1516655287.1516679873.11; __utmz=57960238.1516679873.11.9.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); __unam=aaacafd-161021be724-4956035f-3; user=2|1:0|10:1516741104|4:user|28:ImFkc3dhZmZvcmRAdWNzZC5lZHUi|7dd376be278c36addd02325664b562a58c25a5734a6f3da2694647a6bf3e1028; jlinkserver=act; jssoserver=davis; jlinksessionidx=z735d13fc80a0ab819646bc50accd8851', 'Host': 'maptest.ucsd.edu:8080', 'Accept': '*/*', 'Referer': 'http://maptest.ucsd.edu:8080/process/poollibraries', 'Content-Length': '262', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36', 'Connection': 'keep-alive', 'Origin': 'http://maptest.ucsd.edu:8080'})
    Traceback (most recent call last):
      File "/home/pmapper/.virtualenvs/labman/lib/python3.5/site-packages/tornado/web.py", line 1509, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/home/pmapper/.virtualenvs/labman/lib/python3.5/site-packages/tornado/web.py", line 2897, in wrapper
        return method(self, *args, **kwargs)
      File "/home/pmapper/labman/labman/gui/handlers/process_handlers/pooling_process.py", line 283, in post
        output = self._compute_pools(plate_info)
      File "/home/pmapper/labman/labman/gui/handlers/process_handlers/pooling_process.py", line 173, in _compute_pools
        quant_process.compute_concentrations(**params)
    AttributeError: 'NoneType' object has no attribute 'compute_concentrations'
[E 180124 16:48:47 web:2063] 500 POST /process/compute_pool (<IP_ADDRESS>) 26.42ms

and so far these are the plates that have raised that error:
/plate/176/
/plate/23/
/plate/246/
/plate/26/
/plate/44/
/plate/45/

Just as a confirmation, do any of this match the one that failed out of the 4 tests you did?

Hmmm, of these, plate 246 could have been one of the ones I tried.  Interestingly, the 500 errors you highlight above are different than the 504 ("gateway time-out") errors that originally spawned this issue.  I think that maybe we need to address @wasade 's comment on https://github.com/jdereus/labman/issues/405 : " I think the jQuery calls for testing terms need to be modified to pay attention to the HTTP status codes spit back by the API, which I believe requires performing AJAX calls instead."  Clearly multiple pages within the LabControl interface are behaving badly because they don't allow us to handle different errors differently.  I will start taking a look at this ... suggest tabling this issue until we address the larger one.


Update: Adobe.CreativeCloud version <IP_ADDRESS>1

Created by 🥟 Dumplings in workflow run #8675.

Log
The hash was changed
Submitting WinGet manifests
Found existing pull requests:
Update: Adobe.CreativeCloud version <IP_ADDRESS>1 - https://github.com/microsoft/winget-pkgs/pull/176202
Update: Adobe.CreativeCloud version <IP_ADDRESS>1 - https://github.com/microsoft/winget-pkgs/pull/176213
Update: Adobe.CreativeCloud version <IP_ADDRESS>1 - https://github.com/microsoft/winget-pkgs/pull/174945
This task is configured to ignore existing pull requests
Creating manifests
Uploading manifests and making commits
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

(Automated response - build 896.)


basic_auth test is broken

The basic auth tests are failing.

Duplicate of kubeflow/kubeflow#4442


Cell format not working after applying styles

I have to export an excel sheet through my angular app. So I am using js-xlsx and xlsx-style modules. I would like to format the cells as I required but am not able to.
I have the sample in stackblitz https://stackblitz.com/edit/angular-xukeq2
Some one provide me the solution. Thanks

Styling is a feature of our Pro builds


Android chip tool resolves the matter service with only IPV4 address

Android CHIP Tool resolves matter service  with only IPv4 address.
I provisioned chip device using wifi in android device, using IP address.
Then Light On/Off & Level Cluster -> UpdateAddress
Then I see android mdnssd resolves the matter service only on IPV4 even though it discovers both IPv4 & IPv6 address.
Could please check this. Is this any problem with android platform or android device configuration ?
Logs:
05-25 10:19:53.930 16116 16116 D NsdManagerServiceResolver: Starting service resolution for 'E4B75FF5A2A4E172-0000000000000005'
05-25 10:19:53.930  1225  1767 D NsdService: Resolve service
05-25 10:19:53.930  1225  1767 D NsdService: mdnssd [resolve, 27, E4B75FF5A2A4E172-0000000000000005, _matter._tcp, local.]
05-25 10:19:53.931   713   732 D MDnsDS  : resolveService(27, (null), E4B75FF5A2A4E172-0000000000000005, _matter._tcp, local.)
05-25 10:19:53.931   713   732 D MDnsDS  : startMonitoring 27
05-25 10:19:53.931   713   732 D MDnsDS  : triggering rescan
05-25 10:19:53.931   713   732 D MDnsDS  : resolveService successful
05-25 10:19:53.931   713   731 D MDnsDS  : Monitor poll got data pollCount = 2, 1
05-25 10:19:53.931   713   731 D MDnsDS  : controlSocket shows revent= 1
05-25 10:19:53.931   713   731 D MDnsDS  : MDnsSdListener::Monitor got 1
05-25 10:19:53.931   713   731 D MDnsDS  : MDnsSdListener::Monitor poll rescanning - size=10, live=2
05-25 10:19:53.931   713   731 D MDnsDS  : Going to poll with pollCount 3
05-25 10:19:54.209   713   731 D MDnsDS  : Monitor poll got data pollCount = 3, 1
05-25 10:19:54.209   713   731 D MDnsDS  : Monitor found [1].revents = 1 - calling ProcessResults
05-25 10:19:54.209   713   731 D MDnsDS  : resolve succeeded for 27 finding E4B75FF5A2A4E172-0000000000000005._matter._tcp.local. at 240AC4EE3854.local.:5540 with txtLen 21
05-25 10:19:54.209   713   731 D MDnsDS  : controlSocket shows revent= 0
05-25 10:19:54.209   713   731 D MDnsDS  : Going to poll with pollCount 3
05-25 10:19:54.210  1225  1767 D NsdService: Native daemon message SERVICE_RESOLVED: 608 27 "E4B75FF5A2A4E172-0000000000000005._matter._tcp.local." "240AC4EE3854.local." 5540 21 "CENSST01MDAwB0NSQT0zMDADVD0x"
05-25 10:19:54.211  1225  1767 D NsdService: mdnssd [stop-resolve, 27]
05-25 10:19:54.211   713   732 D MDnsDS  : Stopping resolve with ref 0x78704175e8
05-25 10:19:54.211   713   732 D MDnsDS  : freeServiceRef 27
05-25 10:19:54.211   713   732 D MDnsDS  : triggering rescan
05-25 10:19:54.211  1225  1767 D NsdService: mdnssd [getaddrinfo, 28, 240AC4EE3854.local.]
05-25 10:19:54.212   713   731 D MDnsDS  : Monitor poll got data pollCount = 3, 2
05-25 10:19:54.212   713   732 D MDnsDS  : getAddrInfo(28, (null) 0, 240AC4EE3854.local.)
05-25 10:19:54.212   713   731 D MDnsDS  : Monitor found [1].revents = 32 - calling ProcessResults
05-25 10:19:54.212   713   731 D MDnsDS  : controlSocket shows revent= 1
05-25 10:19:54.212   713   731 D MDnsDS  : MDnsSdListener::Monitor got 1
05-25 10:19:54.212   713   731 D MDnsDS  : MDnsSdListener::Monitor poll rescanning - size=10, live=1
05-25 10:19:54.212   713   731 D MDnsDS  : Going to poll with pollCount 2
05-25 10:19:54.212   713   732 D MDnsDS  : startMonitoring 28
05-25 10:19:54.212   713   732 D MDnsDS  : triggering rescan
05-25 10:19:54.212   713   732 D MDnsDS  : getAddrInfo successful
05-25 10:19:54.212   713   731 D MDnsDS  : Monitor poll got data pollCount = 2, 1
05-25 10:19:54.213   713   731 D MDnsDS  : controlSocket shows revent= 1
05-25 10:19:54.213   713   731 D MDnsDS  : MDnsSdListener::Monitor got 1
05-25 10:19:54.213   713   731 D MDnsDS  : MDnsSdListener::Monitor poll rescanning - size=10, live=2
05-25 10:19:54.213   713   731 D MDnsDS  : Going to poll with pollCount 3
05-25 10:19:54.213   713   731 D MDnsDS  : Monitor poll got data pollCount = 3, 1
05-25 10:19:54.213   713   731 D MDnsDS  : Monitor found [1].revents = 1 - calling ProcessResults
05-25 10:19:54.213   713   731 D MDnsDS  : getAddrInfo succeeded for 28: 28 "240AC4EE3854.local." 120 <IP_ADDRESS>
05-25 10:19:54.213   713   731 D MDnsDS  : getAddrInfo succeeded for 28: 28 "240AC4EE3854.local." 120 fe80::260a:c4ff:feee:3854
05-25 10:19:54.213   713   731 D MDnsDS  : getAddrInfo succeeded for 28: 28 "240AC4EE3854.local." 120 2401:4900:1f25:7281:260a:c4ff:feee:3854
05-25 10:19:54.213   713   731 D MDnsDS  : controlSocket shows revent= 0
05-25 10:19:54.213   713   731 D MDnsDS  : Going to poll with pollCount 3
05-25 10:19:54.213  1225  1767 D NsdService: Native daemon message SERVICE_GET_ADDR_SUCCESS: 612 28 "240AC4EE3854.local." 120 <IP_ADDRESS>
05-25 10:19:54.214  1225  1767 D NsdService: mdnssd [stop-getaddrinfo, 28]
05-25 10:19:54.214   713   732 D MDnsDS  : Stopping getaddrinfo with ref 0x78704175b8
05-25 10:19:54.214   713   732 D MDnsDS  : freeServiceRef 28
05-25 10:19:54.214   713   732 D MDnsDS  : triggering rescan
05-25 10:19:54.215   713   731 D MDnsDS  : Monitor poll got data pollCount = 3, 2
05-25 10:19:54.215   713   731 D MDnsDS  : Monitor found [1].revents = 32 - calling ProcessResults
05-25 10:19:54.215   713   731 D MDnsDS  : controlSocket shows revent= 1
05-25 10:19:54.215  1225  1767 E NsdService: id 28 for SERVICE_GET_ADDR_SUCCESS has no client mapping
05-25 10:19:54.215   713   731 D MDnsDS  : MDnsSdListener::Monitor got 1
05-25 10:19:54.215   713   731 D MDnsDS  : MDnsSdListener::Monitor poll rescanning - size=10, live=1
05-25 10:19:54.215   713   731 D MDnsDS  : Going to poll with pollCount 2
05-25 10:19:54.215  1225  1767 E NsdService: Unhandled { when=-1ms what=393242 obj=com.android.server.NsdService$NativeEvent@3104a54 target=com.android.internal.util.StateMachine$SmHandler }
05-25 10:19:54.215  1225  1767 E NsdService: id 28 for SERVICE_GET_ADDR_SUCCESS has no client mapping
05-25 10:19:54.215  1225  1767 E NsdService: Unhandled { when=-1ms what=393242 obj=com.android.server.NsdService$NativeEvent@58d6dfd target=com.android.internal.util.StateMachine$SmHandler }
05-25 10:19:54.215 16116 17047 I NsdManagerServiceResolver: Resolved service 'E4B75FF5A2A4E172-0000000000000005' to /<IP_ADDRESS>

Hello @g-coppock
I noted your PR https://github.com/project-chip/connectedhomeip/pull/19394 related to DNS-SD & IPV6 for android.
I am stuck with the above problem in my environment. And my android chiptool is not able to resolve the matter device(m5stack) with IPV6 address. Did you not faced above issue ? How can we test android chip tool using IPV6, is there any extra configuration is needed on device side.
I'd really appreciate your help on this.

Hello, we are using an internal solution for mDNS rather than NsdManager so I can't suggest directly. However, you may want to try disabling IPv4 support on the device (e.g. for the examples apps, idf.py menuconfig -> Compoment config > CHIP core > General Options > Disable IPv4 functionality in the CHIP stack) and see if that helps.

Thanks for your response. I shall try this.
@xylophone21 Since you are primary author of NsdManagerServiceResolver.java, I am asking this query.
Is the above mentioned problem is known in android ?
When there is both IPv4 and IPv6 address, NsdManagerServiceResolver will not be able to resolve IPv6 address ?

In other implementations (e.g. avahi), the resolver often returns the first IP address it sees. The logic being "server provides a list of available ip addresses, all of them being equivalent".
As a result, it seems that if a device is able to advertise both ipv6 and v4, any could be used. I would suggest to try with something that is never ipv4 like thread devices, to make sure things work correctly.

This issue still exists, there is no provision in NsdManager to resolve service based on IP Address Type i.e to resolve services under same name with specified Address IPv6 or IPv4 address Type. The Chip tool still resolves IPv4 address even though it discovers both.
One possible workaround is to publish two services itself from the device side with different names each with Ipv4 and Ipv6 address types, and then to only resolve the service with Ipv6 naming in the tool side. This works but I am not sure if this is the correct way to proceed..
Can anyone confirm this, i am open to suggestions. You can find the logs below..
-Before Workaround

Device Logs:-
I (48343) chip[ZCL]: OpCreds: ACL entry created for Fabric index 0x1 CASE Admin Subject 0x000000000001B669
I (48343) chip[DIS]: Advertise operational node A6EC5EBC94DCB11F-0000000000000001
I (48363) chip[DIS]: CHIP minimal mDNS configured as 'Operational device'; instance name: A6EC5EBC94DCB11F-0000000000000001.
I (48373) chip[DIS]: mDNS service published: _matter._tcp
I (48373) chip[ZCL]: OpCreds: successfully created fabric index 0x1 via AddNOC
I (48393) chip[EM]: <<< [E:39910r M:262123077 (Ack:191747213)] (S) Msg TX to 1:FFFFFFFB00000000 [B11F] --- Type 0001:09 (IM:InvokeCommandResponse)
I (48403) chip[IN]: (S) Sending msg 262123077 on secure session with LSID: 58230

ChipTool Logs:-
09-26 16:57:16.336   465  1081 D MDnsDS  : Starting MDNSD
09-26 16:57:26.163 30399 30583 D DIS     : Resolving A6EC5EBC94DCB11F:0000000000000001 ...
09-26 16:57:26.198 30399 30583 D NsdManagerServiceResolver: resolve: Starting service resolution for 'A6EC5EBC94DCB11F-0000000000000001' type '_matter._tcp'
09-26 16:57:26.365 30399 30583 D DIS     : Checking node lookup status after 202 ms
09-26 16:57:26.371 30399 30580 I NsdManagerServiceResolver: Resolved service 'A6EC5EBC94DCB11F-0000000000000001' to /<IP_ADDRESS>
09-26 16:57:26.391   948  1195 E NsdService: Unique id with no client mapping: 40
09-26 16:57:26.391   948  1195 E NsdService: Unhandled { when=-27ms what=393242 obj=com.android.server.NsdService$NativeEvent@6ba8cf0 target=com.android.internal.util.StateMachine$SmHandler }
09-26 16:57:26.424 30399 30580 D DIS     :  ----- entry [0] : T 1
09-26 16:57:26.430 30399 30580 D DIS     :  ----- entry [1] : SAI 300
09-26 16:57:26.432 30399 30580 D DIS     :  ----- entry [2] : SII 5000
09-26 16:57:26.433 30399 30580 D DIS     : Node ID resolved for A6EC5EBC94DCB11F:0000000000000001
09-26 16:57:26.433 30399 30580 D DIS     : Hostname: <IP_ADDRESS>
09-26 16:57:26.433 30399 30580 D DIS     : IP Address 1: <IP_ADDRESS>
09-26 16:57:26.433 30399 30580 D DIS     : Port: 5540
09-26 16:57:26.433 30399 30580 D DIS     : Mrp Interval idle: 5000 ms
09-26 16:57:26.434 30399 30580 D DIS     : Mrp Interval active: 300 ms
09-26 16:57:26.434 30399 30580 D DIS     : TCP Supported: 1
09-26 16:57:26.434 30399 30580 D DIS     : Lookup clearing interface for non LL address
09-26 16:57:26.434 30399 30580 D DIS     : UDP:<IP_ADDRESS>:5540: new best score: 2
09-26 16:57:26.434 30399 30580 D DIS     : Checking node lookup status after 271 ms
09-26 16:57:26.449 30399 30580 D DIS     : OperationalSessionSetup[1:0000000000000001]: Updating device address to UDP:<IP_ADDRESS>:5540 while in state 2

-After Workaround

Device Logs:-
Validating NOC chain
I (121253) chip[FP]: NOC chain validation successful
I (121253) chip[FP]: Added new fabric at index: 0x1
I (121263) chip[FP]: Assigned compressed fabric ID: 0x839D292B139DC14C, node ID: 0x0000000000000002
I (121273) chip[TS]: Last Known Good Time: 2022-09-22T09:46:56
I (121283) chip[TS]: New proposed Last Known Good Time: 2021-06-10T00:00:00
I (121283) chip[TS]: Retaining current Last Known Good Time
I (121313) chip[ZCL]: OpCreds: ACL entry created for Fabric index 0x1 CASE Admin Subject 0x000000000001B669
I (121313) chip[DIS]: Advertise operational node 839D292B139DC14C-0000000000000002
I (121333) chip[DIS]: mDNS service published: _matter_IPv4._tcp
I (121353) chip[DIS]: mDNS service published: _matter_IPv6._tcp
I (121353) chip[ZCL]: OpCreds: successfully created fabric index 0x1 via AddNOC
I (121363) chip[EM]: <<< [E:46923r M:86006312 (Ack:252699012)] (S) Msg TX to 1:FFFFFFFB00000000 [C14C] --- Type 0001:09 (IM:InvokeCommandResponse)
I (121373) chip[IN]: (S) Sending msg 86006312 on secure session with LSID: 27881
E (121383) chip[DL]: Long dispatch time: 812 ms, for event type 3

ChipTool Logs:-
09-26 15:53:55.871 25080 25080 I SA      : [OR] onReceive log=[SA = <IP_ADDRESS> V = 25 HWD = 1920X1080 2.625 dpi = 420  SIZE = 2 LOCALE = en_GB CSC = XXV MCC = 0 MNC 0 T = eng DEVICE = jadelte P = jadeltedx I = NMF26X M = SM-C710F OKLEFT false DIS jadeltedx-eng 7.1.1 NMF26X C710FDXE0AQG5 test-keys PSS = 5.460701736796467  ]
09-26 15:54:27.969   465  1081 D MDnsDS  : Starting MDNSD
09-26 15:54:35.462 25108 25934 D DIS     : Resolving 839D292B139DC14C:0000000000000002 ...
09-26 15:54:35.473 25108 25934 D NsdManagerServiceResolver: resolve: Starting service resolution for '839D292B139DC14C-0000000000000002' type '_matter_IPv6._tcp'
09-26 15:54:35.501 25108 25921 I NsdManagerServiceResolver: Resolved service '839D292B139DC14C-0000000000000002' to /fe80::7a21:84ff:fe93:3c28
09-26 15:54:35.503 25108 25921 D DIS     :  ----- entry [0] : T 1
09-26 15:54:35.503 25108 25921 D DIS     :  ----- entry [1] : SAI 300
09-26 15:54:35.503 25108 25921 D DIS     :  ----- entry [2] : SII 5000
09-26 15:54:35.503 25108 25921 D DIS     : Node ID resolved for 839D292B139DC14C:0000000000000002
09-26 15:54:35.503 25108 25921 D DIS     :      Hostname: fe80::7a21:84ff:
09-26 15:54:35.503 25108 25921 D DIS     :      IP Address 1: fe80::7a21:84ff:fe93:3c28
09-26 15:54:35.503 25108 25921 D DIS     :      Port: 5540
09-26 15:54:35.503 25108 25921 D DIS     :      Mrp Interval idle: 5000 ms
09-26 15:54:35.503 25108 25921 D DIS     :      Mrp Interval active: 300 ms
09-26 15:54:35.503 25108 25921 D DIS     :      TCP Supported: 1
09-26 15:54:35.503 25108 25921 D DIS     : UDP:[fe80::7a21:84ff:fe93:3c28]:5540: new best score: 3
09-26 15:54:35.503 25108 25921 D DIS     : Checking node lookup status after 41 ms
09-26 15:54:35.504 25108 25921 D DIS     : Keeping DNSSD lookup active
09-26 15:54:35.663 25108 25934 D DIS     : Checking node lookup status after 200 ms
09-26 15:54:35.663 25108 25934 D DIS     : OperationalSessionSetup[1:0000000000000002]: Updating device address to UDP:[fe80::7a21:84ff:fe93:3c28]:5540 while in state 2


Mention wrap-around behavior of const_cmp

This relates to #36.
While the correct fix for #36 (if any) seems to be controversial, let's first document how the functions work in their current form.

bors merge


ci: prevent panic in retest action on nil strings

In case a PullRequest does not have a MergeableState set, it will be
nil. Dereferencing the pointer will cause a Go panic, and the action
won't work as intended.

Show available bot commands
These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

/retest ci/centos/<job-name>: retest the <job-name> after unrelated
failure (please report the failure too!)
/retest all: run this in case the CentOS CI failed to start/report any test
progress or results

The original failure can be seen in https://github.com/ceph/ceph-csi/runs/7068151815?check_suite_focus=true

Added DNM label so that #3203 can get merged first


Reorder workshops

Curious to hear what people think about this order of the workshop sections. Better? Worse? What should be changed?
A few notes:

The workshops I've pulled out of Retired are ones I'm going to edit heavily or rewrite entirely
The order of the workshops doesn't matter yet. For now I'm only interested in what people think about the order of the sections
I'd like to write more Rails workshops to populate that section. So pretend there are at least 3 workshops in the Rails section

Closing for now. I'll reopen a similar pull request soon.


Terminal window - By default it is not showing command prompt.

Issue Type: Bug
I'm facing a behaviour in VS Code, everytime when I try to land on terminal window, by default it is not showing command prompt.  It happens when I restart VS Code and  I've to press enter or scroll down to see to see command prompt.
This seems somehow UX issue,

VS Code version: Code 1.33.1 (51b0b28134d51361cf996d2f0a1c698247aeabd8, 2019-04-11T08:27:14.102Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz (4 x 2891)

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

Memory (System)
15.90GB (8.96GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (5)

Extension
Author (truncated)
Version

docker-explorer
for
0.1.6

mssql
ms-
1.6.0

powershell
ms-
1.12.1

vscode-docker
Pet
0.6.2

vsc-docker
Zim
0.34.0

(1 theme extensions excluded)

I have an almost identical issue. If my default terminal is set to cmd and I reload VSCode with the terminal closed, when I drag from the status bar to open the terminal, it only appears as one line at the bottom:

This stays if I start typing, but goes away if I make a new terminal or resize the terminal. If I run a command, only the bottom line of the command output shows. All new terminals after the initial one that's made on startup work totally fine. The issue does not occur if the terminal path is set to the path of the powershell executable.

Version: 1.34.20-insider (user setup)
Commit: 57b550c559b945eb9d871dbf2b2e4cb9e31e2551
Date: 2019-05-10T17:36:45.765Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.15063

This is a bug in Windows 10 1809, unfortunately we have no way to work around the issue so you will need to wait until you get the next version of Windows 10 (1903).
/duplicate https://github.com/Microsoft/vscode/issues/57803


POM: Various fixes to the SCM tag

Most importantly, the "scm:git:" prefixes were missing.

@aalmiray, this does not seem to be fixed yet, so what's he rationale to close it unmerged?

Json-lib no longer relies on Maven to be built. The development branch contains the latest

Hmm, the Gradle build files do not seem to create these XML tags for the published POM file anymore at all. You may want to consider adding something like this.


Object constructor doesn't support aliases

I'd expect:
> new URI({scheme: 'http', pathname:'/'}).toString()
'http:///'

But I actually get:
> new URI({scheme: 'http', pathname:'/'}).toString()
'[object Object]'

The [object Object] is created in URI.parse in a section that is trying to deal different default object structures. Serializing these objects and then parsing the url again is the simplest way to get around these issues.
URI._parse() defines the properties used internally. If you want to pass an object, it currently must use those keys, as noted in the docs.
This works:
new URI({ protocol: 'http', path: '/' }).toString()
// "http:///"


QB: The name for GB-GOV-1 organisation should be updated to the FCDO.

Describe the bug
The organisation name for GB-GOV-1 has been updated to 'UK - Foreign, Commonwealth and Development Office'
https://iatiregistry.org/publisher/fcdo
However, when selecting the reporting org GB-GOV-1 on the query builder, they're still appearing as 'UK - Department for International Development'.
To Reproduce
Steps to reproduce the behavior:

Go to the Query Builder
Click on Reporting Organisation
Type in GB-GOV-1
See error

Expected behavior
I expect the name of organisations to match that in their files and on the Registry.
Screenshots
https://iatiregistry.org/publisher/fcdo

Thank you for fixing


Build fail on my system

It says:
106789 error Tell the author that this fails on your system:
106789 error node scripts/build.js
I've attached the log file.
npm-debug.txt

You need the latest version of Node Sass for Node 6 support. Update to v3.7.0.


AC-129: Add a ribbon in the footer to display the version

Fine by me. It was mostly to be able to release in production without displaying the version but maybe we do not want that. I’ll change it on Monday.
Quentin Gérôme
Let’s Build It SRL

Le 27 mars 2022 à 09:38, Pierre Vanliefland @.***> a écrit :

@pvanliefland commented on this pull request.
In Dockerfile:

@@ -1,6 +1,7 @@
FROM node:17-alpine

ARG NEXT_PUBLIC_GRAPHQL_ENDPOINT
+ARG NEXT_PUBLIC_RIBBON_VERSION
I suggest we make SENTRY_RELEASE more generic, call it RELEASE, and use it for both Sentry and the ribbon. What do you think @qgerome ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.

@qgerome good point about production. Let"s discuss it on Monday, I have an additional idea regarding this.


Twistlock scans failing

I am not sure whether it is a bug or not.
Describe the bug
Twistlock scans which prevents vulnerability for containers are failing.
Environment:

FastAPI Version [e.g. 0.20.0]

https://www.twistlock.com/platform/vulnerability-management-tools/

Any help would be appreciated.

Hmm, from what I can see in the image you pasted there's nothing related to FastAPI. It seems to do with parts of the specific container/Docker image you are using.
But without any more information, it's hard to help you.

I was getting these issues when I was using uvicorn-gunicorn-fastapi-docker image.

I see, I haven't used Twistlock. The images are minimal, based on the official Python images. It seems to be complaining about the specific Linux kernel. So I guess it would need to be handled at the level of the official Docker image for Python.

I'll close this issue now, but feel free to add more comments or create new issues.


Matching 1:1 with odd number of team members? Will one user be exluded?

Is it possible to see if user have paused the bot?
If odd team member count, do one user get excluded from a match? Is it possible to see who?

Yes, one user will be excluded, and he will not be notified about it.
I want to make a change and pull request to change that behavior

Yes it's possible to see, check the Users table in the Azure Comos DB. Kindly refer https://github.com/OfficeDev/microsoft-teams-icebreaker-app/wiki/Data-stores
for details on data stores.
Yes, one user gets excluded. The bot logs a few kinds of custom events to Azure Application Insights. For details visit below link. Use the information provided to calculate key metrics.
https://github.com/OfficeDev/microsoft-teams-icebreaker-app/wiki/Telemetry

A simple alternative behaviour to this could be,
If Users = Odd, randomly select 1 user and append them to the end of the User list, making the list even, but subject to one users getting two suggestions.
In ../IcebreakerBot.cs
private List<Tuple<ChannelAccount, ChannelAccount>> MakePairs(List<ChannelAccount> users)
        {
            if (users.Count > 1)
            {
                this.telemetryClient.TrackTrace($"Making {users.Count / 2} pairs among {users.Count} users");
            }
            else
            {
                this.telemetryClient.TrackTrace($"Pairs could not be made because there is only 1 user in the team");
            }

            // If an odd number of users, randomly select then append one user to make an even list
            if (users.Count % 2 != 0)
            {
                var random = new Random().Next(1, users.Count);
                users.Add(users[random]);
            }

            this.Randomize(users);

            var pairs = new List<Tuple<ChannelAccount, ChannelAccount>>();
            for (int i = 0; i < users.Count - 1; i += 2)
            {
                pairs.Add(new Tuple<ChannelAccount, ChannelAccount>(users[i], users[i + 1]));
            }

            return pairs;
        }

A simple alternative behaviour to this could be,
If Users = Odd, randomly select 1 user and append them to the end of the User list, making the list even, but subject to one users getting two suggestions.
In ../IcebreakerBot.cs
private List<Tuple<ChannelAccount, ChannelAccount>> MakePairs(List<ChannelAccount> users)
        {
            if (users.Count > 1)
            {
                this.telemetryClient.TrackTrace($"Making {users.Count / 2} pairs among {users.Count} users");
            }
            else
            {
                this.telemetryClient.TrackTrace($"Pairs could not be made because there is only 1 user in the team");
            }

            // If an odd number of users, randomly select then append one user to make an even list
            if (users.Count % 2 != 0)
            {
                var random = new Random().Next(1, users.Count);
                users.Add(users[random]);
            }

            this.Randomize(users);

            var pairs = new List<Tuple<ChannelAccount, ChannelAccount>>();
            for (int i = 0; i < users.Count - 1; i += 2)
            {
                pairs.Add(new Tuple<ChannelAccount, ChannelAccount>(users[i], users[i + 1]));
            }

            return pairs;
        }

Could you let me know where I would access this please?
Thank you

Finding and replacing the existing "MakePairs" method should do the trick. Although please check this suggestion has not already been included elsewhere as its been a while since I've had time to look IceBreaket myself (someone may have already added and merged it / an alternative).

@madshaun1984 oh I see now you must have just accidentally referenced the wrong file initially, instead of IceBrakerBot.cs the code changes you suggested relate to MatchingService.cs which I can now recognise and make sense, cheers. https://github.com/OfficeDev/microsoft-teams-apps-icebreaker/blob/main/Source/Icebreaker/Services/MatchingService.cs#L192
The additional code to insert that you suggested is:
// If an odd number of users, randomly select then append one user to make an even list
            if (users.Count % 2 != 0)
            {
                var random = new Random().Next(1, users.Count);
                users.Add(users[random]);
            }

I had another search for "uneven" / "even" related issues but found nothing, this seems to be the only post dealing with this.


Remove unnecessary src/VCR folder (PSR-4 autoloading)

Ok, the path is basically not need by PSR-4 autoloading but is used to ignore pathes by the stream wrapper (to prevent loops). So it's needed.


Is this still receiving support?

I'm having issues processing a payment, I'm getting an "Service Unavailable" after clicking "Proceed to Lightning Payment".
I followed the instructions and have tried different configurations:
Endpoint with open port in my router (because I'm running a hosted wordpress site) https://mypublicip:8080 and in my lnd.conf I have restlisten=<IP_ADDRESS>:8080.
I also have these settings in my lnd.conf for the lnd functionality:
listen=<IP_ADDRESS>:9735
rpclisten=<IP_ADDRESS>:10009
tlsextraip=mypublicip
Macaroon, I have tested with both admin or invoice en hex, no working.
TLS file, I copied the file to the plugin folder, I had to create the tls folder and copy the tls file there, I then put the exact path (/var/www/wptbox/wp-content/plugins/woocommerce-gateway-lightning-master/tls/tls.cert)
Any idea why it would not work?
Thanks.
M.

Can you test connectivity from your wordpress server?
curl -s -kX GET --header "Grpc-Metadata-macaroon: <insert_hex_encoded_macaroon>" "https://localhost:8080/v1/getinfo"

I'm using a hosted wordpress instance, so I ran that command from another Ubuntu in my LAN, it worked, I got the getinfo:
{"identity_pubkey":"02bf6d95daee87980beed24ccdf45c6b7faf78a3f6....., etc...
I don't know if the problem then is not with the plugin itself but with wordpress...

Deleted the website and created it again, to start with a clean one, install woocommerce plugin with its storefront theme, then installed gateway lightning, created a product, added it to shopping cart, went to checkout, wrote all required fields, agreed with conditions, paid with lightning, service unavailable...
Endpoint: https://mypublicip:8080/ (I have port 8080 opened in my router pointed to the lightning node)
TLS.cert path: /wp-content/plugins/woocommerce-gateway-lightning-master/tls/tls.cert (I had to create the tls folder myself because it was not there and upload the tls.cert file)
Macaroon used: admin in hex format (the one I tested with the command above).
Don't know what else to try.

In case anybody read this, I made work, I successfully created and paid 4 orders... However, for some unknown reason that I can't figure out, I'm getting an Error: EOF after I click Proceed to Lightning Payment.
I can see the order is created in Woocommerce plugin, but can't create the invoice...

Thanks in advance.

I am testing from my local server, which is the one that was working but now it doesn't. I was checking the LND node logs to see if I had a connection being refused, but I don't have anything in the log about that.
I thought about those reject connections for two reasons:

EOF errors related to Go, in the link below the speak about the server is closing the connection. Rate limiting is one possible reason for this. I had fail2ban installed in the server and I just removed it, but still doesn't work.
https://stackoverflow.com/questions/17714494/golang-http-request-results-in-eof-errors-when-making-multiple-requests-successi

I saw in this lnd github issue a part of a log that talked about EOF errors: 2019-04-08 14:18:35.138 [ERR] CMGR: Can't accept connection: unable to accept connection from <IP_ADDRESS>:52460: EOF
I was trying to find something similar in my lnd logs, but no success.
https://github.com/lightningnetwork/lnd/issues/2911

I don't know what to do now, I really like this plugin because there is no middle man, no API with anybody, I know Joao created Opennode but I really would like to avoid using an API, the idea is to avoid any kind of trust, right?
What is really puzzling is that all the curl GET commands work from anywhere... I can create invoices with ZAP app or RTL without any issues.

Found the errors in the Apache2 logs:
<IP_ADDRESS> is my "Wan" IP. I use two routers, I wonder why the client is my first router... It seems this problem is related to the getLivePrice function, however, I can use the link in browser with the ticker and it works... Thinking...
Nobody here is helping, but I still want to document my case just in case somebody experiences the same.
Sat Aug 10 00:57:47.619246 2019] [:error] [pid 1211] [client <IP_ADDRESS>:44206] PHP Warning:  file_get_contents(): SSL operation failed with code 5. OpenSSL Error messages:\nerror:0200100D:system library:fopen:Permission denied\nerror:20074002:BIO routines:file_ctrl:system lib\nerror:0B06F002:x509 certificate routines:X509_load_cert_file:system lib\nerror:0200100D:system library:fopen:Permission denied\nerror:20074002:BIO routines:file_ctrl:system lib\nerror:0B06F002:x509 certificate routines:X509_load_cert_file:system lib\nerror:0200100D:system library:fopen:Permission denied\nerror:20074002:BIO routines:file_ctrl:system lib\nerror:0B06F002:x509 certificate routines:X509_load_cert_file:system lib\nerror:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /var/www/wordpress/wp-content/plugins/woocommerce-gateway-lightning-master/Lnd_wrapper.php on line 148, referer: https://www.mydomain/checkout/
[Sat Aug 10 00:57:47.619300 2019] [:error] [pid 1211] [client <IP_ADDRESS>:44206] PHP Warning:  file_get_contents(): Failed to enable crypto in /var/www/wordpress/wp-content/plugins/woocommerce-gateway-lightning-master/Lnd_wrapper.php on line 148, referer: https://www.mydomain/checkout/
[Sat Aug 10 00:57:47.619488 2019] [:error] [pid 1211] [client <IP_ADDRESS>:44206] PHP Warning:  file_get_contents(https://apiv2.bitcoinaverage.com/indices/global/ticker/BTCUSD): failed to open stream: operation failed in /var/www/wordpress/wp-content/plugins/woocommerce-gateway-lightning-master/Lnd_wrapper.php on line 148, referer: https://www.mydomain/checkout/
[Sat Aug 10 00:57:47.619545 2019] [:error] [pid 1211] [client <IP_ADDRESS>:44206] PHP Warning:  Division by zero in /var/www/wordpress/wp-content/plugins/woocommerce-gateway-lightning-master/woocommerce-gateway-lightning.php on line 135, referer: https://www.mydomain/checkout/

Fixed, permission issues on the certificates copied to the etc/ssl/certs folder in the wordpress local server.


fix(active thumbnail): Active index fixed for thumbnails. Only the ac…

…tive element has the active style applied

[ ] package.json:version has been updated with npm version patch (or major/minor as appropriate)
[ ] @brainhubeu/react-carousel version has been updated in docs-www/package.json to the same which is in package.json:version

Thanks @udaypydi
@Lukasz-pluszczewski what do you think about this PR?