[portability] NimBLE should be C99 compliant

Nimble currently can't be compiled with -std=c99 flag passed to the compiler.
A number of errors will trigger when ISO C99 requirements are enforced.

What configuration you use? Can you include some of the errors you see? I've just built host+controller with -std=c99 without errors...

I'm using gcc 5.4.0 with -Werror -std=c99 -pedantic-errors.  I'm seeing warnings as errors, ISO C99 issues, and pedantic errors in nimble preventing integration with these compiler flags.
$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Here are some example errors:
gcc -DHAVE_CONFIG_H -I. -I../../../include  -fPIC -I../../../include -I../../../examples/platforms -I../../../src/core -I../../../src/lib -D_GNU_SOURCE   -I../../../third_party/mynewt-nimble/repo/porting/npl/linux/include -I../../../third_party/mynewt-nimble/repo/porting/npl/linux/src -I../../../third_party/mynewt-nimble/repo/porting/nimble/include -I../../../third_party/mynewt-nimble/repo/nimble/include -I../../../third_party/mynewt-nimble/repo/nimble/host/include -I../../../third_party/mynewt-nimble/repo/nimble/host/src -I../../../third_party/mynewt-nimble/repo/nimble/host/services/ans/include -I../../../third_party/mynewt-nimble/repo/nimble/host/services/gap/include -I../../../third_party/mynewt-nimble/repo/nimble/host/services/gatt/include  -I/home/mturon/src_local/nest/openthread/ot-nimble/third_party/mbedtls -I/home/mturon/src_local/nest/openthread/ot-nimble/third_party/mbedtls/repo/include -I/home/mturon/src_local/nest/openthread/ot-nimble/third_party/mbedtls/repo/include/mbedtls -DMBEDTLS_CONFIG_FILE=\"mbedtls-config.h\"   -g -O2 -Wall -Wextra -Wshadow -Werror -std=c99 -pedantic-errors -D_BSD_SOURCE=1 -D_DEFAULT_SOURCE=1 -MT libopenthread_posix_a-ble_nimble.o -MD -MP -MF .deps/libopenthread_posix_a-ble_nimble.Tpo -c -o libopenthread_posix_a-ble_nimble.o `test -f 'ble_nimble.c' || echo './'`ble_nimble.c
In file included from ../../../third_party/mynewt-nimble/repo/porting/nimble/include/os/os.h:53:0,
                 from ../../../third_party/mynewt-nimble/repo/nimble/include/nimble/ble.h:26,
                 from ble_nimble.c:37:
../../../third_party/mynewt-nimble/repo/porting/nimble/include/os/os_mbuf.h:107:13: error: ISO C forbids zero-size array ‘om_databuf’ [-Wpedantic]
     uint8_t om_databuf[0];
             ^
In file included from ../../../third_party/mynewt-nimble/repo/porting/nimble/include/os/os.h:54:0,
                 from ../../../third_party/mynewt-nimble/repo/nimble/include/nimble/ble.h:26,
                 from ble_nimble.c:37:
../../../third_party/mynewt-nimble/repo/porting/nimble/include/os/os_mempool.h:71:29: error: ISO C99 doesn’t support unnamed structs/unions [-Wpedantic]
     SLIST_HEAD(,os_memblock);
                             ^
In file included from ble_nimble.c:37:0:
../../../third_party/mynewt-nimble/repo/nimble/include/nimble/ble.h:105:6: error: ISO C99 doesn’t support unnamed structs/unions [-Wpedantic]
     };
      ^
In file included from ../../../third_party/mynewt-nimble/repo/nimble/host/include/host/ble_hs.h:30:0,
                 from ble_nimble.c:38:
../../../third_party/mynewt-nimble/repo/nimble/include/nimble/hci_common.h:910:46: error: ISO C forbids zero-size array ‘params’ [-Wpedantic]
     struct hci_le_subev_direct_adv_rpt_param params[0];
                                              ^
In file included from ../../../third_party/mynewt-nimble/repo/nimble/host/include/host/ble_hs_adv.h:24:0,
                 from ../../../third_party/mynewt-nimble/repo/nimble/host/include/host/ble_gap.h:32,
                 from ../../../third_party/mynewt-nimble/repo/nimble/host/include/host/ble_hs.h:33,
                 from ble_nimble.c:38:
../../../third_party/mynewt-nimble/repo/nimble/host/include/host/ble_uuid.h:95:33: error: ISO C does not permit named variadic macros [-Wvariadic-macros]
 #define BLE_UUID128_INIT(uuid128...)    \
                                 ^
../../../third_party/mynewt-nimble/repo/nimble/host/include/host/ble_uuid.h:107:36: error: ISO C does not permit named variadic macros [-Wvariadic-macros]
 #define BLE_UUID128_DECLARE(uuid128...) \
                                    ^

Anonymous structs and unions were added in C11.  I agree that conforming to an older specification improves portability, but C11 is already seven years old! :)

@ccollins476ad I can look into pushing the project I'm integrating into up to -std=c11, but what are your thoughts on being able to pass -Werror and -pedantic-errors?

I think achieving ISO C compliance will be quite a challenge.  The nimble codebase knowingly uses quite a few gcc/clang-isms (e.g., __attribute__((packed))).
Standards conformance is certainly a good thing, but it was not viewed as a requirement when nimble was being developed.  So, in my opinion, it is not worth the effort required at this point.  Of course, it all depends on whether and why someone needs nimble to be standards compliant.

@ccollins476ad I think it is always better to be C99 compliant. I already had a lot of pthread issues which were solved by strict C99 compliant code and compiler usage. I heard the same by other experiences embedded software developer. They all are developing in strict C99 standard.

There's no point in regressing to strict C99 when we have C11.


Ensure that an inactive CPMS does not cause changes to the cluster

We want to add an active/inactive mode to the CPMS.
When inactive, the CPMS will calculate the status and do nothing else. It will set the cluster operator available in case there are errors that a user needs to fix.
Once the user marks the CPMS active, this will put the CPMS into operational mode and any issues on the CPMS status will reflect into the cluster operator, equally, the CPMS will start to operate.
We expect users to see the inactive CPMS and check the status/resolve any issues before marking it active.

/retest-required

/retest-required

/approve


[1.1.1-hot-1]sles15 supports the ephemeral and swap disk

Make sure the ephemeral and swap disk still exist on sles15 vm after reboot.
Signed-off-by: wgxoyun<EMAIL_ADDRESS>

@dyyang
Is this one reviewed and merged in upstream master branch?

merge it as upstream code was merged.
https://github.com/openmainframeproject/python-zvm-sdk/pull/299/files


Bitrise build failing - ionic-archive exited with code 127

My previously working build is suddenly failing. How can I get to the bottom of this?

I'm not sure how to do the update to 2.1 (please advise). However looking at previous passing build I see that the update was also available at the time but the step wasn't failing, which leads me to believe there problem is elsewhere. What is exit code 127?

I can run ng run app:ionic-cordova-build --platform=ios  locally and it passes
How can I resolve this issue?

Hey there @parliament718 , could you please send us a build URL so we could take a closer look? 🙂

Sure here's the failing build.
https://app.bitrise.io/build/869e4aa3ab16d865
Here's the last working build
https://app.bitrise.io/build/6d2b62da0fa6df5f
My username on Bitrise is the same as here.
Thank you for your assistance


How do I open the program?

I am new to this, after installing the repository with "npm install", I don't know what to do to open the program.

@firecrauter Download the zip file and execute the .exe don't worry about cloning the repo
You can found it here!


install codeceptjs versi 2.3.3 get respond error "cannot find module './utils"

I am install codeceptjs new version and follow step by step install "https://codecept.io/quickstart"
but get respond error " cannot find module './utils'".
step by step :

npm init -y
yarn add codeceptjs puppeteer --save-dev
npx npx codeceptjs init
geeting respond = cannot find module './utils'

maybe codeceptjs versi 2,3,3 is corrupt?

I have the same problem, you can install<EMAIL_ADDRESS>for a workaround.

Thanks @sky172839465 , that worked for me!

@sky172839465 how did you figured out that this is the dependency which requires the not available module?

@pablopaul my functional test's error log told me which line throw error
Error: Cannot find module './utils'
     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
     at Function.Module._load (internal/modules/cjs/loader.js:506:25)
     at Module.require (internal/modules/cjs/loader.js:636:17)
     at require (internal/modules/cjs/helpers.js:20:18)
-    at Object.<anonymous> (/xxx/node_modules/parse-function/dist/cjs/index.js:1:731)
     at Module._compile (internal/modules/cjs/loader.js:688:30)
     at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
     at Module.load (internal/modules/cjs/loader.js:598:32)
     at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
     at Function.Module._load (internal/modules/cjs/loader.js:529:3)

I have been report an issue to parse-function's repo, hope this issue can be fixed ASAP.

hi @sky172839465 thanks for you solutions.

Install latest parse-function version :)
I'm in times of migration to monorepo for all my stuff and there can be bugs, so frequent updates may be needed for some time. Sorry for the problems :)


Add auto-generate sample for Subscription and Support

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check
API changes are not detected in this pull request.


doc/settings: custom formatted location / quickfix list

Enhance and document https://github.com/neomake/neomake/pull/924.
E.g.:

[ ] enable it by default
[ ] move it into neomake/configure namespace?!

I think we should have g:neomake_auto_setup setting that would configure automaking and this (the enhanced loclist/qflist).
It could be smart and detect if any manual autocommands have been configured, and then warn about it.
The goal would be to provide a nice out-of-the-box experience, while also allowing for manual config.


Remove Bioconda defaults channel

Description of the bug
Bioconda defaults channel is not free anymore. It should be removed.
Command used and terminal output
No response
Relevant files
No response
System information
plant-food-research-open/assemblyqc version 2.1

https://github.com/Plant-Food-Research-Open/assemblyqc/releases/tag/2.1.1


Add ability to specify root-path favicon file via commandline parameter in interactsh-server

Please describe your feature request:

My idea is straight-forward:
I want to pass a cmdline flag like -favicon to interactsh-server in order to specify a local file to serve at the root path for any interactsh-client instances I spin up.
Describe the use case of this feature:

I think it would be interesting to serve a giant local file (1gb+) to a target that makes HTTP requests.
interactsh-server -domain mydomain.site -favicon giantfile
So when I run a local client, asfahfefkhqfreq.mydomain.site/favicon.ico would return the giantfile.
This kind of attack could render some headless browsers vulnerable to DDOS or resource exhaustion.

@mikedesu there is already support for it - https://github.com/projectdiscovery/interactsh?tab=readme-ov-file#static-file-hosting

Serving from /s/ isn't good enough. I want to serve and track the favicon that sites load from the root path

@mikedesu the file can already be served in the /s/ subpath or via dynamic response. Unfortunately without a strong use we prefer to keep the / serve the courtesy page.
Apart from DDOS detection, could you provide more context on the kind of use cases you have in mind?

When I said "serve at the root path", I meant /favicon.ico.
During hunting, I see requests for /favicon.ico to my instance, but because of the lack of this feature, I cannot serve anything back for that path.
Or am I missing something?


Implement JaxModuleWrapper

Refer to #1366 for overview. This should allow us to remove all the notimplementederrors from JaxSCVI

Merged with #1506


WebRTC audio trasmission from WebApplication to Server C#

Hi, I have recently been using WebRTC. I need to transmit audio from a peer (web application) to a server in C#.
The WebRTC connection is up and running but I can't add the server-side audio track.
From which operation on the Web Application side is the TrackAdded event triggered?
Would it be possible to have a very simple example of audio transmission between Web and Server?
Thanks a lot.

Hi, I can't understand why the "connection.TrackAdded" and "connection.TrackRemoved" events are not called?
Here is an excerpt of the code I use:

Access to the microphone from the web page

   navigator.mediaDevices.getUserMedia(mediaStreamConstraints) // Definisco quali periferiche acquisire
        .then(gotLocalMediaStream)
        .catch(handleLocalMediaStreamError);

Peer connection creation:

  peerConnection = new RTCPeerConnection(servers, pcOptions);
  ...
  var track = localStream.getAudioTracks()[i];
  peerConnection.addTrack(track, localStream);

From the C # application I have the following code:
   connection = factory.CreatePeerConnection(configuration);
   ...
    connection.TrackAdded += delegate (RtpReceiver rtpReceiver) {...}
    connection.TrackRemoved += delegate (RtpReceiver rtpReceiver) {...}

The problem is that when I add a new track from web page, the C # app side "Track Added" event is not called.
Is there some error in the sequence, or am I doing something wrong?
Thanks a lot.

I tried to debug the library "WebRTCSharp" and I found than in the class: "PeerConnection", in the method:
      private void OnAddTrack(IntPtr track)
            {
                if (Connection?.TrackAdded != null)
                {
                    var trackObj = GetOrCreateTrack(track, true);
                    Connection?.TrackAdded(trackObj);
                }
            }

The value of "Connection?.TrackAdded" is NULL. For this reason, the TrackAdded event is not called.
Do you have any ideas for a solution to this anomaly?
Thanks a lot.

I found the solution to my problem. It was a problem with the order of events.
The correct order is as follows:

Create the peerConnection:
 connection = factory.CreatePeerConnection(configuration);

Listening on events:

connection.IceCandidate...
connection.IceConnectionChange...
connection.DataChannel...
connection.TrackAdded...

Set the remoteDescription with the SDP coming from the peer:
await connection.SetRemoteDescription(sdpType, sdpMessage);

Create the response and send it to the peer:

string answer = await connection.CreateAnswer();
this.connection.SetLocalDescription("answer", answer);


Error: impl method assumes more implied bounds than the corresponding trait method in assertor v0.0.1 during cargo build

When trying to run cargo build in the assertor repository, the following error message is displayed:
error: impl method assumes more implied bounds than the corresponding trait method
   --> src/assertions/map.rs:171:16
    |
171 |     fn key_set(&self) -> Subject<'a, Keys<K, V>, (), R> {
    |                ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace this type to make the impl signature compatible: `Subject<'_, std::collections::hash_map::Keys<'_, K, V>, (), R>`
    |
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #105572 <https://github.com/rust-lang/rust/issues/105572>
    = note: `#[deny(implied_bounds_entailment)]` on by default

error: could not compile `assertor` due to 2 previous errors

Expected Behavior
cargo build should compile the assertor repository successfully without any errors.
Actual Behavior
The build process fails with the error message described above.
Steps to Reproduce
Clone the assertor repository from GitHub: git clone https://github.com/google/assertor.git
Navigate to the assertor directory: cd assertor
Run cargo build
Additional Information
assertor version: v0.0.1
Operating System: Ubuntu 22.04
Rust: 1.68.2
Possible Solution
It looks like the error is related to the key_set method implementation in map.rs. The error message suggests replacing Subject<'a, Keys<K, V>, (), R> with Subject<', std::collections::hash_map::Keys<', K, V>, (), R> in the method signature to make it compatible with the trait method.

Thanks for flagging the issue, I could take a look at that.


EmailActivity fails when run via background task

In Orchard 1.9.2 EmailActivity no longer seems to work when run after a TimeActivity.
2015-11-10 23:03:47,308 [7] Orchard.Exceptions.DefaultExceptionPolicy - (null) - An unexpected exception was caught
 (null)
System.NullReferenceException: Object reference not set to an instance of an object.
   at Orchard.Mvc.ViewEngines.Razor.WebViewPage`1.get_DisplayHelperFactory() in c:\git\mysite\orchard\src\Orchard\Mvc\ViewEngines\Razor\WebViewPage.cs:line 70
   at Orchard.Mvc.ViewEngines.Razor.WebViewPage`1.InitHelpers() in c:\git\mysite\orchard\src\Orchard\Mvc\ViewEngines\Razor\WebViewPage.cs:line 168
   at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
   at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
   at Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.RenderRazorViewToString(String path, DisplayContext context) in c:\git\mysite\orchard\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:line 174
   at Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.Render(ShapeDescriptor shapeDescriptor, DisplayContext displayContext, HarvestShapeInfo harvestShapeInfo, HarvestShapeHit harvestShapeHit) in c:\git\mysite\orchard\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:line 157
   at Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.<>c__DisplayClass26.<>c__DisplayClass28.<Discover>b__15(DisplayContext displayContext) in c:\git\mysite\orchard\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:line 133
   at Orchard.DisplayManagement.Descriptors.ShapeAlterationBuilder.<>c__DisplayClass3.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in c:\git\mysite\orchard\src\Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:line 56
   at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in c:\git\mysite\orchard\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:line 203
   at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in c:\git\mysite\orchard\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:line 99
   at Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in c:\git\mysite\orchard\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:line 86
   at Orchard.DisplayManagement.ShapeDisplay.Display(Object shape) in c:\git\mysite\orchard\src\Orchard\DisplayManagement\ShapeDisplay.cs:line 39
   at Orchard.Email.Services.SmtpMessageChannel.Process(IDictionary`2 parameters)
   at Orchard.Messaging.Services.DefaultMessageService.Send(String type, IDictionary`2 parameters) in c:\git\mysite\orchard\src\Orchard\Messaging\Services\DefaultMessageService.cs:line 20
   at Orchard.Events.DelegateHelper.<>c__DisplayClass2e`3.<BuildAction>b__2d(Object target, Object[] p) in c:\git\mysite\orchard\src\Orchard\Events\DelegateHelper.cs:line 122
   at Orchard.Events.DefaultOrchardEventBus.TryInvokeMethod(IEventHandler eventHandler, Type interfaceType, String messageName, String interfaceName, String methodName, IDictionary`2 arguments, IEnumerable& returnValue) in c:\git\mysite\orchard\src\Orchard\Events\DefaultOrchardEventBus.cs:line 84
   at Orchard.Events.DefaultOrchardEventBus.TryInvoke(IEventHandler eventHandler, String messageName, String interfaceName, String methodName, IDictionary`2 arguments, IEnumerable& returnValue) in c:\git\mysite\orchard\src\Orchard\Events\DefaultOrchardEventBus.cs:line 70
   at Orchard.Events.DefaultOrchardEventBus.TryNotifyHandler(IEventHandler eventHandler, String messageName, String interfaceName, String methodName, IDictionary`2 eventData, IEnumerable& returnValue) in c:\git\mysite\orchard\src\Orchard\Events\DefaultOrchardEventBus.cs:line 53

The error seems to originate in Orchard.Environment.WorkContextExtensions from a null WorkContext in httpContext.Items:
public WorkContext GetContext(HttpContextBase httpContext) {
    return httpContext.Items[_workContextKey] as WorkContext;
}

The call that passes the httpContext is in Orchard.WorkContextExtensions:
public static WorkContext GetWorkContext(this RequestContext requestContext) {

    ...

    return workContextAccessor.GetContext(requestContext.HttpContext);
}

I propose the following change:
public static WorkContext GetWorkContext(this RequestContext requestContext) {

    ...

    if (requestContext.HttpContext != null && requestContext.HttpContext.IsBackgroundContext())
    {
        return workContextAccessor.GetContext();
    }
    else
    {
        return workContextAccessor.GetContext(requestContext.HttpContext);
    }
}

This may have been fixed by a recent changeset pushed to the dev branch. Would you mind to give that a try?

Sure. Do you know offhand which file(s) were the focus of the change?

Nevermind, I see the change to WorkContextAccessor. I'll check it out.

We just need to revert 9b91b1b2609439bb50dfc0321e72e5f39a95022f

Fixed in #6104

@sfmskywalker no time right now to try this good idea, so no closed opinion...
But not sure it's good to create here a WorkContextScope(HttpContextScopeImplementation) and each time an HttpContextBase is resolved...
If I understand, it's a way to have e.g httpContext.Items[_workContextKey] not null, so it can solve this issue. Maybe, could have been solved with part of this PR #5887 but only committed in the dev branch.
Anyway, not all issues described here #6073 are solved, particularly existing code that uses directly the HttpContextAccessor. Also used by the WorkContextAccessor.GetContext(), so with the current 1.9.x implementation the GetContext() without parameter will not return the same object...
To adapt to existing code, that's why in this PR #5966 an HttpContextBase is resolved when a WorkContextScope is created, carried through the CallContext LogicalData, and can be retrieved by the HttpContextAccessor that can then be used by the HttpContextBase factory to return the same object...
Unfortunately, in this PR we just talked about the baseUrl. I know that @sebastienros is overloaded by Orchard 2. I can talk about my findings on CallContext LogicalData in a meeting, let me know...
Best

Yes that would be a great. Thanks!


deduplication for cuts keeps one duplicate

After making some improvements to the handling of number registers, the only actions that have this problem are the ones when using double delete keys (like dd and cc).  I haven't quite figured out how to get it to behave to not use their default "1. But an idea on how to solve the problem using the transitory reg is in the oven. I'll give it a shot next week.


Add multiples scales on Y axis

In order to compare i.e. emergency=defibrillator (main tag) and i.e. ref:FR:GeoDAE (sub tag), it would be nice to select i.e. left or right Y axis (each one having it's own scale).
http://taghistory.raifer.tech/#***/ref:FR:GeoDAE/&***/emergency/defibrillator

This type of graph with multiple scales is confusing and misleading and it is basically never a proper way to present data.


fix issue/1180

Hi Azlam,
Adding a fix for this issue. Local test works as expected, but not sure if it's the completed fix. Please kindly advice.
Also need to add this component to ReleaseDefinition.test.ts.
Thanks
Checklist
All items have to be completed before a PR is merged

[x] Adhere to Contribution Guidelines
[ ] Updates to Decision Records considered?
[ ] Updates to documentation at DX@Scale Guide considered?
[x] Tested changes?
[ ] Unit Tests new and existing passing locally?

Codecov Report
Base: 53.68% // Head: 53.68% // No change to project coverage :thumbsup:

Coverage data is based on head (515ab17) compared to base (0c4ea53).
 Consider uploading reports for the commit 0c7c7d0 to get more accurate results

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1181   +/-   ##
========================================
  Coverage    53.68%   53.68%
========================================
  Files           70       70
  Lines         3176     3176
  Branches       681      698   +17
========================================
  Hits          1705     1705
  Misses        1471     1471

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Thanks @gz77a for the fix. Looks good


javax.management.InstanceNotFoundException

websphere 8.5.5 windows 7 OS
wsadmin.zip
wsadmin.traceout attached
dmgr,2 nodes,each node has 2 server instances.
if all of them are started and ran your script i get below error

if i start only nodeagents and run your script then i get below output:

Looks like PMI is not enabled on CServer2

Hi Alex,
i can see PMI metrics are enabled for that server. attached screenshot FYI


Determine if Juniper should support alternate representations

Currently Juniper has no concept of the GraphQL Schema Language / SDL (referred to as "SDL" from now on). There is no way in Juniper to go from a schema defined in Rust to the SDL representation of it and vice versa.
Some 3rd party GraphQL tools work with the SDL and thus would not work with Juniper. More often than not, many of those tools support introspection query's output (usually in a file called schema.json) as well. Juniper "supports" the introspection query, as it is a standard GraphQL query that any client could do, though we have a task to make it more ergonomic.
The reference GraphQL server Graphql.js includes support for:

Doing everything in JS
Defining in JS and converting to SDL
Defining in SDL and converting to JS
Built in introspection query
Introspection -> JS

In fact, they explicitly test that you can go around between all these representations and have the same result.
In the Rust world we have:

Doing everything in Rust (juniper)
Defining in Rust and converting to SDL (https://github.com/graphql-rust/juniper/pull/324)
Defining in SDL and converting to Rust (juniper-from-schema)
Built in introspection query (https://github.com/graphql-rust/juniper/issues/307)
Introspection -> Rust (no task or project, though graphql-client does similar but doesn't use Juniper's schema representation)

So we need to decide if we follow GraphQL.js and include all the functionality in Juniper or we say Juniper is the "Rust-only" world above and everything else is handled in other crates (either in this workspace or in their own projects). I'm also not even sure we can include everything, as we need to do some work at compile time rather than runtime like GraphQL.js does.
/cc @theduke @mhallin @tailhook @davidpdrsn @tomhoule
(originally discussed in https://github.com/graphql-rust/juniper/pull/324)

From #324

Is it a view of the schema one would reasonably expect juniper to handle? Or is it a nice-to-have that isn't intrinsic to how juniper does things.

I would say this is something juniper should handle. Having an actual schema file that describes your API is one of the key things that intrigues me about GraphQL. It also feels like the "Rusty" approach because it puts greater emphasis on type safety, something I value a lot.
At the place where I work we're soon going to be experimenting with replacing parts of our Ruby on Rails API with Rust + GraphQL. For us being able to go from SDL to Rust would fit our workflow well I think. When the backend and mobile teams meet to decide the spec for some new feature we are going to build, we would add new fields/types to our schema. The mobile devs can then start using the schema right away to build queries in whatever way their language and tools allows for. The backend team can take the schema, "convert" it to Rust and fill in the blanks.
While I don't have lots of experience with this workflow (yet) I think it is going to work well.
Having the whole schema available for juniper would also allows you to make things like type safe look aheads. Not sure this would be possible if the schema wasn't known at compile time.

Why not do the opposite (define in rust and have the schema file be a view into what rust has defined)? That's what I am doing, as you get nice things like autocomplete in your editor without having to teach it SDL, easy grepability, etc. Plus, you can add lint rules for your graphql logic without having to add a graphql-specific framework. I try to stay in rust as much as possible. I use rust as the source of truth and see the SDL as serialization format that graphql tools outside of rust can use.
I understand things may be different for greenfield development like I am currently doing.

I love the idea of QueryTrails btw

After some thought, I do think it makes sense to be inclusive here and support all the possibilities outlined by LegNeato.
While I personally I am not a big fan of the Schema -> Rust workflow, I think many find it easier to work with. Also, as @davidpdrsn mentioned, sometimes you have the schema as the source of truth and implement both clients and servers based on that schema, or a subset of a schema in case of nested/forwarding servers.
The other attempt at a GraphQL server also used this workflow (https://github.com/nrc/graphql).
I think it makes sense to include the juniper_from_schema functionality into the main crate. (With some adaptations. I'm not a fan of their use of #[xx] Rust style annotations in the schema, since that breaks other tools. )
A general AST with conversion functionality would also make the implementation of graphql-client much easier I think.

From the perspective of graphql_client, ingesting the GraphQL AST or the introspected schema in JSON form is about 100 lines each, so adding new sources is not a problem. The only obstacle to doing so now is that the schema and query representation juniper uses are private (this may have changed since I checked).
The internal representations (what the ASTs are converted to) for schema and query in graphql_client at the moment are just what it needs, so I am not sure they should be replaced, but I could be missing important reasons to do it.
In general I think the more representations for a GraphQL schema we support and can convert between the better, some people prefer an SDL-first workflow, others code-first.
In general the code sharing could be achieved by moving more things into juniper itself, but I would be more comfortable with modularizing juniper so other libraries can better interoperate with it. In particular I would like to have juniper_query_parser, juniper_schema, and (possibly in one of these) juniper_query_validation. The last one in particular would be very nice to have in graphql_client to do query validation with good error messages at compile time, without duplicating the effort between graphql_client and juniper.

Coming from JS land I like how ergonomic the SDL approach is, but I'm not sure how I feel about the lack of specificity. i.e. GraphQL how do we interpret a GraphQL Int. Default to an i32 by default? Same for ownership. 🤷♀

@vladinator1000 From the GraphQL spec, the size of a GraphQL Int should be represented between -2^31 or greater than or equal to 2^31.  Thus, it's recommended that one use i32 here.  If you're using values that fall outside this range, then it's recommended the one use a custom GraphQL scalar type.  Int is a default GraphQL scalar type.

Master supports the SDL as output and another project supports generating Juniper code from the SDL def. See first paragraph of https://graphql-rust.github.io/juniper/master/schema/schemas_and_mutations.html

Ideally you have your schema in a lib crate. This can be used by a binary to dump a .graphql file for other tooling or in a build.rs to do other interesting stuff.


Add typography theme vars for first page of chapter

REDMINE-15748

Coverage remained the same at 99.294% when pulling 3658a4837327ffb81b30914a2d7570b0797a29a0 on tf:emphasize-chapter-beginning-theme-var into 4a108fb06a170a0ad91e03ea2f83c481c44dd75f on codevise:master.


Create server

Summary

Create a Websocket server for communication with the client app.
Create an HTTP server for being controlled remotely.

Created with #2.


Trouble inserting GeometryPart into an iModel

Can someone please explain what i am doing wrong?  I am trying to insert a geometryPart into a newly created/downloaded iModel from the iModelHub.  I cannot reproduce this error locally when using a SnapshotDb.
iModelJs ver: 2.19.26
error:  Bad Element: insertElement with class=BisCore:GeometryPart: error inserting
this is the method for creating the GeometryPartProps :
public static recreateGeometry(sProps: GeometryPartProps, tDefinitionModelId: Id64String, iModelDb: IModelDb ): GeometryPartProps {
    const props: GeometryPartProps = {
      classFullName: GeometryPart.classFullName,
      model: tDefinitionModelId,
      code: GeometryPart.createCode(iModelDb, tDefinitionModelId, sProps.code.value ? sProps.code.value : "empty code"),
      geom: sProps.geom,
      bbox: sProps.bbox,
    }
    return props;
}

this is the GeometryPartProps returned:
{
  "classFullName": "BisCore:GeometryPart",
  "model": "0x20000000001",
  "code": { "spec": "0x1", "scope": "0x20000000001", "value": "StyleSymbol-8631" },
  "geom": [{ "header": { "flags": 0 } }, { "textString": { "font": 1, "text": "E", "height": 0.001524, "origin": [-0.0008052431000982602, -0.00040700674451391266, 0] } }],
  "bbox": { "low": [-0.0008052431000982602, -0.0011690067445139125, 0], "high": [0.0006145772124017397, 0.0018789932554860872, 0] }
}

i have verified that the model is a newly created definition model using the following:
tDefinitionModelId = DefinitionModel.insert(iModel, parentSubjectId, "Definitions");
i have verified that there is a   "font": 1  for the  "geom"
number: 1, fontProps: {"id":1,"type":1,"name":"Arial"}

moving to discussions,  https://github.com/iTwin/itwinjs-core/discussions/2947


chore(Data.NNRat.Defs): split file into unbundled and bundled ordered algebra

We split off the CanonicallyOrderedCommSemiring, CanonicallyLinearOrderedAddCommMonoid, and OrderedSub instances on NNRat to Data.NNRat.Order leaving the remainder independent of bundled ordered algebra classes.

[ ] depends on: #15071

!bench

!bench

Thanks!
bors merge


TypeError: Can't use a string pattern on a bytes-like object

When I try to export a file with the flags --gfm --export, I get the following error:
grip --gfm --export Kalender.md
Exporting to Kalender.html
Traceback (most recent call last):
  File "/usr/local/bin/grip", line 9, in <module>
    load_entry_point('grip==3.2.0', 'console_scripts', 'grip')()
  File "/usr/local/lib/python3.4/dist-packages/grip/command.py", line 78, in main
    True, args['<address>'])
  File "/usr/local/lib/python3.4/dist-packages/grip/exporter.py", line 36, in export
    render_offline, render_wide, render_inline)
  File "/usr/local/lib/python3.4/dist-packages/grip/exporter.py", line 18, in render_page
    return render_app(app)
  File "/usr/local/lib/python3.4/dist-packages/grip/renderer.py", line 8, in render_app
    response = c.get('/')
  File "/usr/local/lib/python3.4/dist-packages/werkzeug/test.py", line 774, in get
    return self.open(*args, **kw)
  File "/usr/local/lib/python3.4/dist-packages/flask/testing.py", line 108, in open
    follow_redirects=follow_redirects)
  File "/usr/local/lib/python3.4/dist-packages/werkzeug/test.py", line 742, in open
    response = self.run_wsgi_app(environ, buffered=buffered)
  File "/usr/local/lib/python3.4/dist-packages/werkzeug/test.py", line 659, in run_wsgi_app
    rv = run_wsgi_app(self.application, environ, buffered=buffered)
  File "/usr/local/lib/python3.4/dist-packages/werkzeug/test.py", line 867, in run_wsgi_app
    app_iter = app(environ, start_response)
  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.4/dist-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1470, in full_dispatch_request
    self.try_trigger_before_first_request_functions()
  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1497, in try_trigger_before_first_request_functions
    func()
  File "/usr/local/lib/python3.4/dist-packages/grip/server.py", line 111, in retrieve_styles
    app.config['STYLE_ASSET_URLS_INLINE']))
  File "/usr/local/lib/python3.4/dist-packages/grip/server.py", line 304, in _get_styles
    content = re.sub(asset_pattern, match_asset, _download(app, style_url))
  File "/usr/lib/python3.4/re.py", line 175, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: can't use a string pattern on a bytes-like object

I ran into that error while working to get one of my scripts working on Python 3.x. Thankfully, I was working on a unit test suite because that was a pain to get the semantics correct for.
Judging by that backtrace, asset_pattern is str() while _download(app, style_url) is returning  bytes().
In Python 2.x, str = bytes and it'll automatically coerce str to unicode as necessary (causing a UnicodeDecodeError if the string contains characters outside the 7-bit ASCII range... which isn't a problem with hard-coded regex patterns).
In Python 3.x, str = unicode and it treats str<->bytes conversion as strictly as it treats str<->int conversion.
The solution is to either make _download return a decoded Unicode string or make the regex pattern a bytes. (I prefer doing the former by using the Requests library's Response.text property to retrieve the content.)

Thanks for your reply!
Is there anything I can do about this as a user? Is it an issue on my end?

I forced pip to install it as a python 2 package, which fixes this issue. Something should probably be done about it though...

This happens reliably for me running under Python3, whenever using '--export foo.html'.
Works fine when running under Python2.
Hugs!

Addressed this in b995503fc8e73000ca8fc541fa325f3999154c9b and 92d2f2c85f9768f129e03dc86c60a33f5cebea22. I tested it with Python 3.4.2. Try installing from master and seeing if it works for you too. Feel free to re-open if it's still broken.
Thanks!


Publish to NuGet should not proceed with failing unit tests

Documentation for building and testing here:
https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

Fixed with a new Action


Book Cover Image is not displying

Thanks for the awesome library, I just want to know why my Book Cover is not getting displayed in Android.

This solution is a little hacky
Folio base url file path is getting wrong. You will have to change the code  to  make it work.

Working Solution:

//FolioPageFragment -> initWebView method change the code
if(opfPath != null){
            String baseUrl
                    = "file://" + FileUtil.getFolioEpubFolderPath(mEpubFileName) + "/" + opfPath + "//";
            mWebview.loadDataWithBaseURL(baseUrl, htmlContent, "text/html", "UTF-8", null);
        }else{
            String baseUrl
                    = "file://" + FileUtil.getFolioEpubFolderPath(mEpubFileName)  + "//";
            mWebview.loadDataWithBaseURL(baseUrl, htmlContent, "text/html", "UTF-8", null);
        }

the above solution isn't working for me

@nikita2423 @vikasrairajput  @ravigupta9363
how can i get image in epub file.
i am show in epub cover image in recyclerview book list

This solution is a little hacky
Folio base url file path is getting wrong. You will have to change the code to make it work.

Working Solution:

//FolioPageFragment -> initWebView method change the code
if(opfPath != null){
            String baseUrl
                    = "file://" + FileUtil.getFolioEpubFolderPath(mEpubFileName) + "/" + opfPath + "//";
            mWebview.loadDataWithBaseURL(baseUrl, htmlContent, "text/html", "UTF-8", null);
        }else{
            String baseUrl
                    = "file://" + FileUtil.getFolioEpubFolderPath(mEpubFileName)  + "//";
            mWebview.loadDataWithBaseURL(baseUrl, htmlContent, "text/html", "UTF-8", null);
        }

Sorry! I am also facing this problem with folio reader, can you tell me where to put those code...


fix: XRay trace_id parsing length

While testing my  xray traces, I found that my console was outputting incorrect trace id headers that was given. Upon inspection, I found out there was a minor error on the xray propagator of the expected length format of Xray.
It expects a format like this currently:
Root=1-608919a-c59d40d74d03e146bb342b875;Parent=e309470015af9a8b;Sampled=1
It should have a format like this:
Root=1-608919ac-59d40d74d03e146bb342b875;Parent=e309470015af9a8b;Sampled=1
Where the first separator of "-" should be 8 hexadecimal characters, and the next "-" separator should be 24+ hexadecimal characters.
Multiple other languages repositories is implemented this way.
https://github.com/aws-observability/aws-otel-js/blob/main/packages/opentelemetry-propagator-aws-xray/src/AWSXRayPropagator.ts#L67
https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/sdk-extension/opentelemetry-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py#L286
The exact format can be found based on the AWS documentations
https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-sampling

Thanks for this. I've updated the PR title to conform to the Conventional Commit message format - it helps with the release process. Related: you don't need to update the changelog or version number - the release tooling will handle that (thanks for doing it, though - we are discussing changing the changelog process, at least).


figure 11: create nice diagram of our convention of what constitutes a possible autocatalytic cycle

code not required for this; closing the issue for the code repo and handling elsewhere


SparseML producing sparse int8-quantized models slower than originals on AVX512-VNNI CPU

Describe the bug
I am developing a tool using sparse (85% sparsity) and quantized with QAT. The models produced are slower (1.5 to 2x) than the original non-sparse float32 models.
Sparse QAT model: https://zenodo.org/record/6489202/files/arunet_3.0.0_85sparse_qat_single.onnx?download=1
Original model: https://zenodo.org/record/6457484/files/arunet_3.0.0_single.onnx?download=1
It takes as input a matrix of [batch, 1, x, y, z].
Expected behavior
I use a CPU supporting AVX512-VNNI instructions, so it should be faster on sparse quantized models.
Environment
Include all relevant environment information:

OS [e.g. Ubuntu 18.04]: Ubuntu 18.04
Python version [e.g. 3.7]: 3.8
SparseML version or commit hash [e.g. 0.1.0, f7245c8]: 0.12
ML framework version(s) [e.g. torch 1.7.1]: torch 1.9.1
Other Python package versions [e.g. SparseZoo, DeepSparse, numpy, ONNX]: deepsparse 0.12
Other relevant environment information [e.g. hardware, CUDA version]: Kernel Linux 5.4.0-105-generic; CPU Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz

From deepsparse:
GenuineIntel CPU detected with 32 cores. (2 sockets with 16 cores each)
DeepSparse FP32 model performance supported: True.
DeepSparse INT8 (quantized) model performance supported: TRUE.

Additional CPU info: {'vendor': 'GenuineIntel', 'isa': 'avx512', 'vnni': True, 'num_sockets': 2, 'available_sockets': 2, 'cores_per_socket': 16, 'available_cores_per_socket': 16, 'threads_per_core': 2, 'available_threads_per_core': 2, 'L1_instruction_cache_size': 32768, 'L1_data_cache_size': 32768, 'L2_cache_size': 1048576, 'L3_cache_size': 23068672}

To Reproduce
Exact steps to reproduce the behavior:
Load the model, pass a volume to obtain a segmentation
Errors
If applicable, add a full print-out of any errors or exceptions that are raised or include screenshots to help explain your problem.
Additional context
Add any other context about the problem here. Also include any relevant files.

Hi @clementpoiret , thanks for reaching out and sharing your model to help us debug.
The most pertinent issue present here is the deepsparse engine doesn't have optimized support for ConvTranspose operations, which seem to be taking the majority of the time in these models (e.g. half time for the dense fp32 model, basically symmetric to all the regular Conv). These are used for the upsampling operations. We are currently working on optimized sparsity support for ConvTranspose based on previous models we've tested for segmentation and super resolution, like UNET and ESRGAN.
This model did uncover a bug for me in our Reduce operation so we will have a fix for that next week in the nightly.
It seems that SparseML by default isn't pruning those operations' weights so that will need to be addressed once the engine has support. We haven't been able to find a quantized version of ConvTranspose so it might be difficult to quantize.
Because the engine doesn't have great support for all operations in your model, it is not performing as we'd like and the quantized graph just magnifies this issue unfortunately. You could try using just FP32 sparsity to accelerate your model.
If you could share an example input/output to help us evaluate what we could help with now, that would be great. I've been running random data through it at batchx1x32x32x32. Otherwise please stay patient while we work on properly supporting ConvTranspose and other operations. Thank you!

@clementpoiret thanks for sharing that example, we are using it in test to verify these issues won't happen again.
For your performance concerns, I was able to see a small benefit from sparsity on the Conv operations for the FP32 model so I would recommend that if you'd like to do anything right now.
As mentioned before, I don't believe it would be a substantial improvement until we properly support pruning transposed convolutions and the ConvTranspose ONNX operation. This is something we will support but not immediately as we want to do a good job, it will be at least a few months.
Wish you best of luck and feel free to reach out for further questions.


[Cauldron.Interception.Fody]Assembly wide AttributeDecorator build error

Here's my demo.cauldron.fody.json file，I wrote it according to the demo，please see the  bold line：
[
{
// If true, the decorators decribed in decorator
// are only applied if the constant "DEBUG" is set.
// Default is false.
"debug-only": false,
// Activates / deactivates the decorators.
// Default is true.
"is-active": true,
// A collection of decorators with its associated filter.
"decorator": [
{
// The full name of the attribute
// The attribute itself has to reside in the referenced assemblies.
"type-name": "MethodInterceptDemo.DemoInterceptorAttribute",
// The parameters that is passed to the attibute.
"parameters": [ "" ],
// If true, classes are included in the search. Default is false.
"decorate-class": true,
// If true, methods are included in the search. Default is false.
"decorate-methods": true,
// If true, properties are included in the search. Default is false.
"decorate-properties": false,
// Specifies certain properties of the class for the filter.
// This has no effect of decorate-class is false.
"target-class-filter": {
// Also include public classes. Default is true.
"public": false,
// Also include internal classes Default is true.
"internal": true,
// Also include private classes Default is true.
"private": false,
// Also include static classes Default is true.
"static": false,
// Also include instanced classes Default is true.
"instanced": true,
// The name of the class.
// This accepts regex -> example: \wController will exclude all classes
// with a name that does not end with Controller.
// * is equivalent to [a-zA-Z].
//  Default is ""
"name": "DemoClass",
// Only includes classes that implements all listed interfaces.
// Default is "no interface restrictions"
"requires-interfaces": [ "" ]
},
// Specifies certain properties of the method for the filter.
"target-method-filter": {
// Also include public methods. Default is true.
"public": true,
// Also include internal methods. Default is true.
"internal": true,
// Also include protected methods. Default is true.
"protected": true,
// Also include private methods. Default is true.
"private": true,
// Also include static methods. Default is true.
"static": true,
// Also include non-static methods. Default is true.
"instanced": true,
// The name of the method.
// Accepts regex.
// * is equivalent to [a-zA-Z].
// Default is ""
"name": "InvokeCreateConnection",
// Only includes methods that returns the following type.
// Default is empty. Empty means no return type filter.
// To filter void methods, use System.Void.
"return-types-name": "System.Void",
// Only includes methods that matches the parameters list types.
// Default is false.
"parameter-match": false,
// Only includes methods that strictly matches the parameter types.
// Strict means that the type name has to exactly match; otherwise
// the types are tested for assignability. Means if the parameter type
// is System.Int32, then all methods with parameter type System.Int32 and
// System.Object are included.
// Default is false.
"parameter-strict": false,
// Only include methods that matches the listes parameter types.
// Default is empty list which also means paramterless.
"parameters": [ "" ]
},
// Specifies certain properties of the property for the filter.
"target-property-filter": {
// Also include public properties. Default is true.
"public": true,
// Also include internal properties. Default is true.
"internal": true,
// Also include protected properties. Default is true.
"protected": true,
// Also include private properties. Default is true.
"private": true,
// Also include static properties. Default is true.
"static": true,
// Also include non-static properties. Default is true.
"instanced": true,
// The name of the property.
// Accepts regex.
// * is equivalent to [a-zA-Z].
// Default is "".
"name": "",
// Only includes properties with type name.
// Default is empty. Empty means no return type filter.
"return-types-name": ""
}
}
]
}
]
When I build my project,follwing build error occurs: Error converting value "System.Void" to type 'System.String[]'
StackTrace:
1>MSBUILD : error :    at InnerWeaver.ExecuteWeavers() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 208
1>MSBUILD : error :    at InnerWeaver.Execute() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 103
1>MSBUILD : error : Source:
1>MSBUILD : error : FodyIsolated
1>MSBUILD : error : TargetSite:
1>MSBUILD : error : Void ExecuteWeavers()
1>MSBUILD : error : Error converting value "System.Void" to type 'System.String[]'. Path '[0].decorator[0].target-method-filter.return-types-name', line 69, position 44.
1>MSBUILD : error : Type:
1>MSBUILD : error : Newtonsoft.Json.JsonSerializationException
When I leave return-types-name as empty,for example：
"return-types-name": ""
Then following build error occurs：Object reference not set to an instance of an object.
StackTrace:
1>MSBUILD : error :    at InnerWeaver.ExecuteWeavers() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 208
1>MSBUILD : error :    at InnerWeaver.Execute() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 103
1>MSBUILD : error : Source:
1>MSBUILD : error : FodyIsolated
1>MSBUILD : error : TargetSite:
1>MSBUILD : error : Void ExecuteWeavers()
1>MSBUILD : error : Object reference not set to an instance of an object.
1>MSBUILD : error : Type:
1>MSBUILD : error : System.NullReferenceException
1>MSBUILD : error : StackTrace:
1>MSBUILD : error :    at Cauldron.Interception.Fody.ModuleWeaver.<>c__DisplayClass17_0.b__1(DecoratorDecriptionParameter x)
How can I set the value for "return-types-name" of the method filter，thanks a lot.

Hi,
sorry for answering so late… I somehow missed the GitHub notification mail... Sorry for that...
The json model requires an array... You have to write it this way:
"return-types-name": [ "System.Void" ],

Thanks a lot,I'll try it.


htaccess gets ".bin" extension during the build process

Issue Type - Bug
Description
The boilerplate adds .bin extension to the .htaccess file
Steps to reproduce
after the app is setup there is a .htaccess file in the app directory
so when the npm run build is ran the build process adds a "bin" extension to the .htaccess file (.htaccess.bin)
the .htaccess.bin is also referenced in the sw.js file and in the main chunk
when the app is deployed the server does not recognize .htaccess.bin this is a bug and the build process should not add the bin extension
Versions

React-Boilerplate 3.6.0
Node version 8.11.1
Npm version 5.6.0
Browser: all browsers

Nice catch and thanks for reporting!
A simple fix you can implement from your side is to replace the .htaccess import line in app.js with the following:
import 'file-loader?name=.htaccess!./.htaccess';

I'll make sure this is is included in the next version of the boilerplate.


Channel IDs on Ungoogled Chromium

Since Google deprecated support for Token Binding recently Channel IDs amount to nothing more than unblockable cookies which can only be removed manually.  No API supports removing them selectively.
How does Ungoogled Chromium deal with these?  Vivaldi hides them but they are still being loaded.
Thanks

I'm not familiar with them. Do you have any recommended readings?

At the same time apparently chromium plans to deprecate them they are showing up from websites (on Chrome) I never even visit. pippio.com, superfastcdn.com breitbart.com and endless google properties all it says under cookies is Channel ID and the name of the website.  I could block all cookies and they still show up.
https://groups.google.com/a/chromium.org/forum/#!topic/net-dev/AjFQjBmaEQE
https://github.com/EFForg/privacybadger/issues/1135
https://bugs.chromium.org/p/chromium/issues/detail?id=467312#c23
https://bugs.chromium.org/p/chromium/issues/detail?id=875046

If you look at the Channel ID they all say -
Domain
.
Certificate Type
ecdsa_sign
Maybe they aren't really cookies?

No problem. Thanks for letting me know anyway.


4+ Layer ANNs

When an ANN is created with 4 or more layers (2 or more hidden layers), there appears to be some undesirable behaviour. To elaborate, output values for each output neuron seem to be roughly the same for any given feedforward with any given input neurons. If this is actually an issue and not a flaw in the manner the problem was tested, this essentially renders 4+ layer ANNs useless.

Further testing has been done. I cannot recreate this problem. Whatever the issue was, it must have been circumstantial, either brought about by the particular test data, number of training iterations, bad luck, or human error.


Prevent display of ‘float_weight’, allow bias in textual sparsity table

The premise of both changes looks fine.
Re disregarding 'float_weight': Looking at the code, I think I'd rather change the condition that looks at ['weights', 'bias'] to be even more strict, so it looks just for parameters named as such, because as it is now it allows for weird cases where the word 'weight' is used in the module name, but the parameter is actually named something else. Something like that seems unlikely to happen, but still it's better that we be explicit about what we're looking for.
In the interest of saving time I'll make the change and push it myself.
Thanks for bringing this up!

Fixed in #20, closing.


Generate references for product groups of nested projects

Short description 📝
When you embed one project in another, Xcode creates (among other things) a projectReferences entry in the root PBXProject:
projectReferences = (
	{
		ProductGroup = DD594C4B24C7AAB500624E89 /* Products */;
		ProjectRef = DD594C4A24C7AAB500624E89 /* nested.xcodeproj */;
	},
);

The ProductGroup referenced here is a PBXGroup inside the pbxproj, but is not inside the mainGroup. AFAICT, it's generated by Xcode when the project is embedded.
This group isn't within the main group, so it never has a permanent reference generated. Because of this, you can't create this data structure for Xcode and have to rely on Xcode adding it itself.
Example project that demonstrates this: nested project demo.zip
Solution 📦
Immediately after main group references are generated, any PBXGroups referenced by the root PBXProject.projects dictionary have references generated.
TODO:

[ ] Ensure that Xcode (11.5) likes these identifiers and doesn't mutate them when the project is opened.

@pepibumur for sure! I'll try to get back to this this week.

It turns out this was already implemented in #489, my bad!


Incorrect user-id provided when creating message makes an unhandled error

Example: https://unturnedstore.com/messages/create/1337
It should be handled more user-friendly.

Also, by incrementing ids in /messages/create/id you can see usernames of people.

Fixed


Added Support for tons of new mods

This Script adds a lot of new recipe types and also adds the ability to manually overwrite the id.
All Recipe Types have beenn tested and work. Support for new mods may also be added in the future.
Wanted to add Support for Eidolon aswell, but it doesn't use JSON recipes, which then makes it impossible.
I also want to ask you if you would find it better if input and outputs are switched, cause most recipe types already added by kubejs and addons do it this way.
Also you may remove 1.18 as supported version, cause possibbly mods do this different in thos versions
PS.: I have another question though: what License would you recommend for KubeJS Ore Unification Scripts? Cause i'm not really sure what to use. And no i'm absolutly not asking cause i'm working on a Unification for Minecraft 1.16. Noo.

I use MIT for all kjs scripts lol. I see folks also use unlicense and lgpl 3.0.
I’ll keep 1.18 as a supported version cause someone might still use it (let’s hope it doesn’t break shit)
About switching output and input, can you submit another pr cause I’m lazyyy and you wrote like 75% of the code lol.

Also you can add yourself to the authors

Yeah, will do, thanks. Will submit a pr soonTM.


Add chaincode events in commit notification

Signed-off-by: manish<EMAIL_ADDRESS>Type of change

Improvement

Description
This PR includes chaincode event details in the commit events

LGTM besides that one comment nit.


[MANOPD-87826] Software upgrade patches

Description

Design of the software upgrade patches

Checklist

[x] I have made corresponding changes to the documentation
[x] Integration CI passed
[x] There is no merge conflicts

Included in #436


Swagger api view bug fix test

Test PR

API change check
APIView has identified API level changes in this PR and created following API reviews.
Microsoft.AzurePlaywrightService


Add deprecation warning to Omit

Omit is now available in TypeScript, so I added a note about that.

I am gonna update docs in a separate PR. Thanks!


Updating manual tests to use LocalGitRunner

Codecov Report

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

@@            Coverage Diff             @@
##           master      #68      +/-   ##
==========================================
+ Coverage   93.83%   93.85%   +0.01%
==========================================
  Files          90       90
  Lines         714      716       +2
==========================================
+ Hits          670      672       +2
  Misses         44       44

Impacted Files
Coverage Δ

lib/org/chromium/webidl/LocalGitRunner.js
76.36% <100%> (+0.89%)
: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 55ae15e...dd7cdd6. Read the comment docs.


Outdated cask: reaper

Outdated cask: reaper.
Info:

version: 5.26.
appcast url: http://www.reaper.fm/whatsnew.txt.

Please do not run find_outdated_appcasts unless you are a maintainer.


slack_botkit not defined in middleware

Using Botkit 0.2.2 on Mac OSX el Capitan
My server throws a ReferenceError when trying to do custom slash commands.
The error points to slack_authentication.js where there is no reference made to slack_botkit
slack_botkit.log(
            '** Requiring token authentication for webhook endpoints for Slash commands ' +
            'and outgoing webhooks; configured ' + tokens.length + ' tokens'
        );

+1.
var controller = Botkit.slackbot(config);
var bot = controller.spawn({
  incoming_webhook: {
    url: process.env.INCOMING_WEBHOOK_URL
  }
});

controller.setupWebserver(process.env.PORT, function(err, express_webserver) {
  controller.createWebhookEndpoints(express_webserver,
      [process.env.OUTGOING_WEBHOOK_TOKEN]);
});

At this point, it gives the same ReferenceError:
ReferenceError: slack_botkit is not defined
    at authenticate (/path/to/project/node_modules/botkit/lib/middleware/slack_authentication.js:39:9)
    at Layer.handle [as handle_request] (/path/to/project/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/path/to/project/node_modules/express/lib/router/index.js:312:13)
    at /path/to/project/node_modules/express/lib/router/index.js:280:7
    at Function.process_params (/path/to/project/node_modules/express/lib/router/index.js:330:12)
    at next (/path/to/project/node_modules/express/lib/router/index.js:271:10)
    at serveStatic (/path/to/project/node_modules/serve-static/index.js:75:16)
    at Layer.handle [as handle_request] (/path/to/project/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/path/to/project/node_modules/express/lib/router/index.js:312:13)
    at /path/to/project/node_modules/express/lib/router/index.js:280:7

Downgrading to 0.2.1 seems to fix the issue.

It appears safe to comment out that logging code, I've notified Howdy folks about it.

BTW downgrading to 0.2.1 will break the token check when the slash command POST comes in to your server.

PR related to this issue has been released.


Dependency: reason-harfbuzz -> 0848520

This brings in the fix for the build failure on Arch Linux

/azp run


[ToDo before July] Implement table/server switch

see #81

Need to implement OVH api :
https://api.ovh.com/console/
https://api.ovh.com/console/#/ip/{ip}/move#POST
get Ip with https://mxtoolbox.com/SuperTool.aspx?action=mx%3Aentreprise.data.gouv.fr&run=toolpage# or other tool


[Event Request] Page 2105 - O365 Monthly Customer Listpart - OnInsertDataOnBeforeInsert

Dear ALAppExtensions team,
through this issue we would like to request adding event publisher OnInsertDataOnBeforeInsert to Page 2105 O365 Monthly Customer Listpart with the following signature:
[IntegrationEvent(false, false)]
local procedure OnInsertDataOnBeforeInsert(var RecCustomer: Record Customer; var Customer: Record Customer)
begin
end;

which would be called as follows in InsertData:
procedure InsertData(Month: Integer)
var
    Customer: Record Customer;
    O365SalesStatistics: Codeunit "O365 Sales Statistics";
    CurrentMonthDateFormula: DateFormula;
begin
    CurrentMonth := Month;
    if not O365SalesStatistics.GenerateMonthlyCustomers(Month, Customer) then
        exit;
    if not Customer.FindSet then
        exit;
    StartOfMonthDate := DMY2Date(1, CurrentMonth, Date2DMY(WorkDate, 3));
    Evaluate(CurrentMonthDateFormula, '<CM>');
    EndOfMonthDate := CalcDate(CurrentMonthDateFormula, StartOfMonthDate);
    Customer.SetRange("Date Filter", StartOfMonthDate, EndOfMonthDate);
    DeleteAll();
    repeat
        Customer.CalcFields("Net Change (LCY)");
        TransferFields(Customer, true);
        "Inv. Amounts (LCY)" := Customer."Net Change (LCY)";
        // >>>> New >>>>>>>>>>>>>>>>
        OnInsertDataOnBeforeInsert(Rec, Customer);
        // <<<< New <<<<<<<<<<<<<<<<
        Insert(true);
    until Customer.Next() = 0;
    CurrPage.Update();
end;

Thanks in advance!

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


[Snyk] Fix for 10 vulnerabilities

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

554/1000  Why? Has a fix available, CVSS 6.8
Use of a Broken or Risky Cryptographic Algorithm SNYK-JS-JSONWEBTOKEN-3180026
Yes
No Known Exploit

586/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 5.3
Regular Expression Denial of Service (ReDoS) SNYK-JS-LODASH-1018905
No
Proof of Concept

681/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 7.2
Command Injection SNYK-JS-LODASH-1040724
No
Proof of Concept

686/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 7.3
Prototype Pollution SNYK-JS-LODASH-450202
No
Proof of Concept

731/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 8.2
Prototype Pollution SNYK-JS-LODASH-567746
No
Proof of Concept

686/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 7.3
Prototype Pollution SNYK-JS-LODASH-608086
No
Proof of Concept

686/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 7.3
Prototype Pollution SNYK-JS-LODASH-73638
No
Proof of Concept

541/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 4.4
Regular Expression Denial of Service (ReDoS) SNYK-JS-LODASH-73639
No
Proof of Concept

589/1000  Why? Has a fix available, CVSS 7.5
Authentication Bypass npm:jsonwebtoken:20150331
Yes
No Known Exploit

636/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 6.3
Prototype Pollution npm:lodash:20180130
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Use of a Broken or Risky Cryptographic Algorithm
🦉 Regular Expression Denial of Service (ReDoS)
🦉 Prototype Pollution

Checkmarx One – Scan Summary & Details – bdb6199b-59d9-4fbf-9fa8-9cede87bd258
New Issues

Severity
Issue
Source File / Package
Checkmarx Insight

Array Without Maximum Number of Items (v3)
/swagger.yml: 40
Array schema should have the field 'maxItems' set

CVE-2022-23539
Npm-jsonwebtoken-0.1.0
Vulnerable Package

CVE-2022-23540
Npm-jsonwebtoken-0.1.0
Vulnerable Package

CVE-2022-23541
Npm-jsonwebtoken-0.1.0
Vulnerable Package

CVE-2022-25858
Npm-terser-5.5.1
Vulnerable Package

CVE-2022-25881
Npm-http-cache-semantics-3.8.1
Vulnerable Package

CVE-2022-25887
Npm-sanitize-html-1.7.1
Vulnerable Package

CVE-2022-3517
Npm-minimatch-3.0.4
Vulnerable Package

CVE-2022-36313
Npm-file-type-6.2.0
Vulnerable Package

CVE-2022-36313
Npm-file-type-5.2.0
Vulnerable Package

CVE-2022-36313
Npm-file-type-4.4.0
Vulnerable Package

CVE-2022-36313
Npm-file-type-3.9.0
Vulnerable Package

CVE-2022-36313
Npm-file-type-11.1.0
Vulnerable Package

CVE-2022-37599
Npm-loader-utils-2.0.0
Vulnerable Package

CVE-2022-37601
Npm-loader-utils-2.0.0
Vulnerable Package

CVE-2022-37603
Npm-loader-utils-2.0.0
Vulnerable Package

CVE-2022-38900
Npm-decode-uri-component-0.2.2
Vulnerable Package

CVE-2023-28155
Npm-request-2.88.2
Vulnerable Package

Cxc7705965-e0f0
<EMAIL_ADDRESS>Vulnerable Package

SQL_Injection
/routes/dataExport.ts: 30
Attack Vector

SQL_Injection
/routes/dataExport.ts: 14
Attack Vector

Additional Properties Too Permissive
/swagger.yml: 36
Objects should not accept 'additionalProperties' if it is possible

Additional Properties Too Permissive
/swagger.yml: 43
Objects should not accept 'additionalProperties' if it is possible

Additional Properties Too Permissive
/swagger.yml: 30
Objects should not accept 'additionalProperties' if it is possible

Additional Properties Too Permissive
/swagger.yml: 33
Objects should not accept 'additionalProperties' if it is possible

Additional Properties Too Permissive
/swagger.yml: 40
Objects should not accept 'additionalProperties' if it is possible

CVE-2022-41940
Npm-engine.io-4.1.2
Vulnerable Package

Default Response Undefined On Operations (v3)
/swagger.yml: 21
Operations responses should have a default response defined

Global Server Object Uses HTTP
/swagger.yml: 4
Global server object URL should use 'https' protocol instead of 'http'

JSON Object Schema Without Type (v3)
/swagger.yml: 22
Schema of the JSON object should have 'type' defined.

JSON Object Schema Without Type (v3)
/swagger.yml: 21
Schema of the JSON object should have 'type' defined.

Maximum Length Undefined (v3)
/swagger.yml: 45
String schema should have 'maxLength' defined.

Maximum Length Undefined (v3)
/swagger.yml: 35
String schema should have 'maxLength' defined.

Maximum Length Undefined (v3)
/swagger.yml: 35
String schema should have 'maxLength' defined.

Maximum Length Undefined (v3)
/swagger.yml: 35
String schema should have 'maxLength' defined.

Maximum Length Undefined (v3)
/swagger.yml: 32
String schema should have 'maxLength' defined.

Maximum Length Undefined (v3)
/swagger.yml: 39
String schema should have 'maxLength' defined.

Missing_Encryption_of_Sensitive_Data
/data/datacreator.ts: 98
Attack Vector

Numeric Schema Without Format (v3)
/swagger.yml: 39
Numeric schema (type set to 'integer' or 'number') should have 'format' defined.

Numeric Schema Without Format (v3)
/swagger.yml: 39
Numeric schema (type set to 'integer' or 'number') should have 'format' defined.

Numeric Schema Without Maximum (v3)
/swagger.yml: 39
Numeric schema (type set to 'integer' or 'number') should have 'maximum' defined.

Numeric Schema Without Maximum (v3)
/swagger.yml: 39
Numeric schema (type set to 'integer' or 'number') should have 'maximum' defined.

Numeric Schema Without Minimum (v3)
/swagger.yml: 39
Numeric schema (type set to 'integer' or 'number') should have 'minimum' defined.

Pattern Undefined (v3)
/swagger.yml: 35
String schema should have 'pattern' defined.

Pattern Undefined (v3)
/swagger.yml: 39
String schema should have 'pattern' defined.

Pattern Undefined (v3)
/swagger.yml: 35
String schema should have 'pattern' defined.

Pattern Undefined (v3)
/swagger.yml: 35
String schema should have 'pattern' defined.

Pattern Undefined (v3)
/swagger.yml: 32
String schema should have 'pattern' defined.

Pattern Undefined (v3)
/swagger.yml: 45
String schema should have 'pattern' defined.

Response Code Missing (v3)
/swagger.yml: 21
500, 429 and 400 responses should be defined for all operations, except head operation. 415 response should be defined for the post, put, and patch...

Response Code Missing (v3)
/swagger.yml: 21
500, 429 and 400 responses should be defined for all operations, except head operation. 415 response should be defined for the post, put, and patch...

Response Code Missing (v3)
/swagger.yml: 21
500, 429 and 400 responses should be defined for all operations, except head operation. 415 response should be defined for the post, put, and patch...

Response Code Missing (v3)
/swagger.yml: 21
500, 429 and 400 responses should be defined for all operations, except head operation. 415 response should be defined for the post, put, and patch...

Response Code Missing (v3)
/swagger.yml: 21
500, 429 and 400 responses should be defined for all operations, except head operation. 415 response should be defined for the post, put, and patch...

Response Code Missing (v3)
/swagger.yml: 21
500, 429 and 400 responses should be defined for all operations, except head operation. 415 response should be defined for the post, put, and patch...

Use_of_Broken_or_Risky_Cryptographic_Algorithm
/Gruntfile.js: 73
Attack Vector

Fixed Issues

Severity
Issue
Source File / Package
Checkmarx Insight

CVE-2019-10744
Npm-lodash-2.4.2
Vulnerable Package

CVE-2020-8203
Npm-lodash-2.4.2
Vulnerable Package

CVE-2021-23337
Npm-lodash-2.4.2
Vulnerable Package

CVE-2021-23440
Npm-set-value-2.0.1
Vulnerable Package

CVE-2021-23449
Npm-vm2-3.9.3
Vulnerable Package

CVE-2021-23555
Npm-vm2-3.9.3
Vulnerable Package

CVE-2021-35065
Npm-glob-parent-5.1.2
Vulnerable Package

CVE-2021-35065
Npm-glob-parent-3.1.0
Vulnerable Package

CVE-2021-44906
Npm-minimist-0.2.1
Vulnerable Package

CVE-2022-21213
Npm-mout-1.2.3
Vulnerable Package

Cx0b414307-5d4b
Npm-lodash-2.4.2
Vulnerable Package

CVE-2016-1000237
Npm-sanitize-html-1.4.2
Vulnerable Package

CVE-2018-16487
Npm-lodash-2.4.2
Vulnerable Package

CVE-2018-3721
Npm-lodash-2.4.2
Vulnerable Package

CVE-2019-1010266
Npm-lodash-2.4.2
Vulnerable Package

CVE-2020-28500
Npm-lodash-2.4.2
Vulnerable Package

Cx7d063416-6f02
Npm-sanitize-html-1.4.2
Vulnerable Package

Cxb41ee3b9-e4b0
Npm-adm-zip-0.4.16
Vulnerable Package

Client_DOM_Open_Redirect
/frontend/src/app/login/login.component.ts: 52
Attack Vector

Unprotected_Cookie
/routes/videoHandler.ts: 39
Attack Vector

Unprotected_Cookie
/routes/videoHandler.ts: 32
Attack Vector


showMonthsOffset

Would you be interested in taking a PR for an option showMonthsOffset.
Often ranges are used to look at historical data.
It would be handy if we could open for example a 3 month calander with the starting month as 2 months back.
showMonths : 3
showMonthsOffset: -2

For exmaple if it is April open 3 months stating at Febuary

Thinking about it again I think maybe showMonths: noOfMonths, [offset] might be better.
So for the above example showMonths: 3, -2
What do you think.

@mikes-gh yes, extending the current option to showMonths: number | [number, number] is better

+1 for this functionality. Using this precisely for historical data. Having the current month on the right is the optimal user experience in this scenario when using multiple calendars.

I am looking for this functionality too.
I feel it might be simpler as a new boolean option, something like multipleMonthsHistorical: true?
It looks like all it would need to do is take X months off the first month here?
https://github.com/flatpickr/flatpickr/blob/078c7569da204dcf2319e5cfff367b36733336de/src/index.ts#L831
function buildMonthDays(year: number, month: number) {
 let firstMonth = month;
 if (self.config.showMonths > 1) {
  firstMonth = month - self.config.showMonths;
 }
...

For future users, it is possible via:
calendar.changeMonth(-1);


Method resolution on .NET Types does not work as expected

import System
dt = System.DateTime(2008, 10, 26)
assert format(dt, 'MM-dd') == '10-26'

This calls the __format__ of object instead of the one for IFormattable.

For future reference, this stopped working in 49a381e0f2c45764e5e8d335aa59257e7b2c3925


fix: Fix audio mime type in multiplexed HLS stream

This should fix the fMP4 playback issue in https://github.com/shaka-project/shaka-player/issues/3691
In multiplexed HLS stream, the audio mime type is incorrectly set to video/* but MediaCapabilities.decodingInfo() is expecting audio/*.
{
   "type":"media-source",
   "audio":{
      "contentType":"video/mp4; codecs=\"mp4a.40.2\"",
      "channels":2,
      "bitrate":8000000,
      "samplerate":1,
      "spatialRendering":false
   },
   "video":{
      "contentType":"video/mp4; codecs=\"avc1.640033\"",
      "width":1920,
      "height":1080,
      "bitrate":8000000,
      "framerate":59.94,
      "transferFunction":"srgb"
   }
}

...
Guessing multiplexed audio+video.
...
TypeError: Failed to execute 'decodingInfo' on 'MediaCapabilities': The audio configuration dictionary is not valid.

HLS manifest:
#EXTM3U
#EXT-X-STREAM-INF:BANDWIDTH=8000000,VIDEO-RANGE=SDR,CODECS="avc1.640033,mp4a.40.2",RESOLUTION=1920x1080,FRAME-RATE=59.94
main.m3u8

@nyanmisaka please review the errors! Thanks!

@nyanmisaka please review the errors! Thanks!

Done. It's a tiny lint error.

I think the fix is not correct, this is valid for mp4 but not for TS, looking at the code I have seen this: https://github.com/shaka-project/shaka-player/blob/main/lib/hls/hls_parser .js#L2638
Can you check if your change works fine with TS in Safari?

I think the fix is not correct, this is valid for mp4 but not for TS, looking at the code I have seen this: https://github.com/shaka-project/shaka-player/blob/main/lib/hls/hls_parser .js#L2638

Thanks, that make sense. I've changed it to avoid making any impact on TS container.
It seems to be a fMP4 specific issue, TS works fine even without this changes.

This newest test failure is not your fault, I don't think. I think I can see what caused it, and I'll put out a quick PR for that.

I think the fix is not correct, this is valid for mp4 but not for TS, looking at the code I have seen this: https://github.com/shaka-project/shaka-player/blob/main/lib/hls/hls_parser .js#L2638

Thanks, that make sense. I've changed it to avoid making any impact on TS container.
It seems to be a fMP4 specific issue, TS works fine even without this changes.

Just to be sure, did you test with muxjs installed? The current code will run the mimeType through shaka.media.Transmuxer.convertTsCodecs instead if it's a TS file and muxjs is installed, so in order to verify if this breaks TS you would have to test with muxjs not installed.

I think I'm okay with this, if you can confirm that it doesn't break TS content if muxjs is not installed.

audio/mp2t is not supported, whether or not muxjs is installed. I made some changes for this.

Thank you for your contribution!


Default profiles not created on clean install for Traffic Ops 1.7.0

When doing a clean install of Traffic ops, default profiles are not created.  This is due to the postinstall check of existing profile failing because of the TRAFFIC_PORTAL.  Postinstall does a check for profiles but ignores the profiles in the %initial_profiles hash (line 667), this hash should include the TRAFFIC_PORTAL profile since it is now created ahead of time.

From the traffic_ops log:
Existing Profile Count: 4
Found existing profile (TRAFFIC_PORTAL)
Not creating default profiles.


Plot time should be StartTime, not EndTime for a point

To be more inline with other charting solutions, the charts should plot the time that the data point started, not ended.
For example, we receive a 1 hour bar at 3pm and plot it. In QC the chart will show the bar starting at 3pm. In other solutions it will be plotted from 2pm (to 3pm, spanning 1 hour)
I cannot work on this because it requires a change to the Plot function, which doesn't work in the online terminal/lab because it cannot see the other variables (_liveMode, ReservedChartSeriesNames etc) . Also desktop charting is currently under maintenance, and has a bug which is not going to be addressed soon. But in essence the fix is to:

Add a DateTime parameter to public void Plot(string chart, string series, decimal value, DateTime? dateTime = null)

Set it to Utc if nothing is supplied dateTime = dateTime ?? UtcTime;

and of course use that instead at https://github.com/QuantConnect/Lean/blob/c8d207cef75fce43c4a132ef98a18102fbe1b956/Algorithm/QCAlgorithm.Plotting.cs#L204

Create alternative Plot functions which accept at least

Indicator
IndicatorDataPoint
Bar
(Any others?)

which simply pulls out the Time and passes it as an additional argument to the main Plot function.

UtcTime is instantaneous and not related to trade bars at all.  The Time-Value pair is an instantaneous pair so plotting the current moment makes sense.
The example above "receive a 1 hour bar at 3pm and plot it." -- is not possible since charting does not support trade bar logging at this time.


[BUG] tenacity  retry conflict  TypeError: init() got an unexpected keyword argument 'stop_max_attempt_number'

Investigative information
Please provide the following:

Timestamp:
Function App name:
Function name(s) (as appropriate):
Core Tools version:

Repro steps
Provide the steps required to reproduce the problem:

Expected behavior
Provide a description of the expected behavior.

Actual behavior
Provide a description of the actual behavior observed.

Known workarounds
Provide a description of any known workarounds.

Contents of the requirements.txt file:
Provide the requirements.txt file to help us find out module related issues.

Related information
Provide any related information

Links to source
Bindings used

from tenacity import *

@retry(stop=stop_after_attempt(10))
def supabaseuseradd(tablename,users):

Worker failed to load function: 'azure_func' with function id: '4c796a15-4be5-4273-809e-3a5dcba846f9'.
[2022-04-27T02:18:48.430Z] Result: Failure
Exception: TypeError: __init__() got an unexpected keyword argument 'stop_max_attempt_number'
Stack:   File "D:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.8\WINDOWS\X64\azure_functions_worker\dispatcher.py", line 305, in _handle__function_load_request
    func = loader.load_function(
  File "D:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.8\WINDOWS\X64\azure_functions_worker\utils\wrappers.py", line 40, in call
    return func(*args, **kwargs)
  File "D:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.8\WINDOWS\X64\azure_functions_worker\loader.py", line 85, in load_function
    mod = importlib.import_module(fullmodname)
  File "D:\Program Files\anaconda3\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "D:\Download\audio-visual\saas\tiktoka\TiktokaDownload\azure_func\__init__.py", line 2, in <module>
    from .azure_tiktoka  import app
  File "D:\Download\audio-visual\saas\tiktoka\TiktokaDownload\azure_func\azure_tiktoka.py", line 9, in <module>
    from shared.tiktoka import *
  File "D:\Download\audio-visual\saas\tiktoka\TiktokaDownload\shared\tiktoka.py", line 355, in <module>
    def get_video_info(original_url, js='', key=''):
  File "D:\Program Files\anaconda3\lib\site-packages\tenacity\__init__.py", line 127, in wrap
    r = Retrying(*dargs, **dkw)

Not enough details provided, please create a new issue if you still face the problem.


LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20210720093329094 to main

LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20210720093329094 to main with localized lcls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.006%) to 42.555%

Totals

Change from base Build<PHONE_NUMBER>:
0.006%

Covered Lines:
26727

Relevant Lines:
56924

💛  - Coveralls


Add debate enviroment

This PR adds the debate protocol as an environment. This was produced as part of a project at the UCL FAI Hackathon last week. As it was a hackathon the code is a little bit rough around the edges! But the implementation is functional. Also I wasn't 100% sure on code conventions (linter etc...)
There are a number of tidy-ups that would be nice (e.g. custom MessagePool data structure, separating the final debate + moderator responses into 2 steps)
But the major change is in regard to loading config via the UI. Currently, only certain fields are part of the UI and then when an arena is created only the UI fields (and not the original config) are loaded. All other fields have to be defaulted. This makes adding new environments a) tricky as you have to work this out! b) less useful as not all fields can be customized in the config. An example of this for debate is that the input question and answers have to hard coded as in the converstation.py class. Maybe a way around this (without having to make a clever extending UI) is to combine the original config and UI fields when the arena is created?

Contained info the authors did not want to be published so closed and deleted PR and fork


[Enhancement] Possible to integrate with Recipe schema structured data?

I absolutely L-L-LOVE cooklang! Recently discovered it and just jumped in head-first. I did notice, however, that there already exists a Recipe schema for structured data: https://schema.org/Recipe
Wondering if it's possible to enhance the CLI to output a json-formatted structured data for inclusion on the web for enhanced SEO by google, and other search engine crawlers? Perhaps through including metadata fields that map to specific schema Properties like >> servings would map to recipeYield during output, and a validator can tell you what schema properties are missing for the output to be valid? Just thinking out loud.... as this would be a great way to bridge these two technologies.
Edit: I just noticed that cook recipe read recipe.cook --output-format json spits out json, would be great if there's an output format that will allow to map to the Recipe schema, like --output-forma recipe-json or something like that.....

I'm definitely for this feature and find use-case valid. At the moment there're other priorities and probably  it will take some time before I can get to this...


Landscape Indicator Line

Hi @ezescaruli
Thanks for this control I just love it!
I recently had to switch one app to landscape mode and this (attached) happens with the separator line.
If you click again on any button/index, it will "reset" and work just fine.
Any ideas?
Thank you!

Hi @Krystel! Good catch.
I found the reason of the issue. I'm using a leading constraint for the indicator which constant is adjusted when moving to an index:
https://github.com/ezescaruli/ESTabBarController/blob/master/Source/Controllers/ESTabBarController.m#L374
However, the constant doesn't get updated when rotating the device.
I think the best solution for this is having that leading constraint to always be equal to the selected button leading, rather than using its constant to move it.
I'll fix it in a next PR!

@Krystel This is fixed in master now.
I'll push a new version soon, but you can use that branch for now in your Podfile to avoid having this issue.

@Krystel I had referenced the wrong PR, now the right one is merged :)
Also, pushed a new version, so you should be able to see the fix in it.

I just saw this @ezescaruli !
Updating as we speak..
Thank you :)


rdar://107533913 (Move FormatStyles to FoundationPreview)

This PR brings the rest of the FormatStyle APIs to FoundationPreview. There are few styles missing from the move, namely:

Duration format styles: hard dependencies on Measurement
Measurement format styles: hard dependencies on Measurement
Date.ComponentsFormatStyle: relies on NSDateComponentsFormatter to format
PersonNameComponents.FormatStyle: relies on NSPersonNameComponentsFormatter to format
URL.FormatStyle: relies on CFURLComponents to format

These styles will be moved once their dependencies are moved.

Resolves https://github.com/apple/swift-foundation/issues/232


Conditional access to a static web app

Hi,
we are using static web apps in a employee enterprise scenario. This is why we don't want the page to be accessible from public. we already have configured the conditional access for the authentication, but we don't want the static ressources to be accessable either.
i tried to use the routes configuration and use the authentication mechanism, but the first time a user logs in via the static web app identity provider it redirects to a consent grant page. This page is neithter configurable (language or content) or deactivatable.
so the best way would be to use the conditional access (in our case on a defined ip range) to secure the static web app.
any ideas?
thanks,
Michael

@MichaelRoger Would Private Link or locking down access to only users in your Azure Active Directory work for you?
/cc @mkarmark @miwebst

hi, just reviewed "private links" and if i got it right, the public url of the static web app would still be available from the internet... so it will not make it for me :-(

You can do what you want in a azure storage gen V2 static website, you just have to do more of the plumbing by hand. Creating the cdn, adding your custom domain, etc. But you can make it private, use CI/CD (I used devops pipelines not github actions) and you can use functions.

hi, i don't use a "azure storage", i use https://azure.microsoft.com/en-us/services/app-service/static/ and i did not found any possiblity to secure the access by ip-range . We just added a custom domain to that static web app. But it is still reachable from it's generated url.

Hi, yes I realise you're using static web apps, ATS static websites are just an alternative as you have no way to achieve what you want at present. The services are very similar, I moved a storage hosted static website to a static web app with little effort. If you want to make your static website private you have an almost equivalent service just not managed in the same way - like the difference between running a web app in App Service or building your own VM to host one.
You may not have the option but I mention it in case the info is useful.

+ @miwebst to chime in about whether Private Link can help here.

hi, just tried to use "Private link", but do not see the "static Web app"-Ressource:

@MichaelRoger sorry I wasn’t clear about this, but we’re still working on the feature and are looking for feedback if it would solve this problem for you when it is available.

if i could make a whish: there should be an option to enable access from specific ip-ranges.

You have to distinguish between the two main ways of PaaS service network access control in Azure:

Public endpoints

Firewall to control access from outside
VNET Service Endpoints for Azure services in VNETs to resolve the public endpoint (no private IP address, just resolving of the public endpoint inside of the VNET)

Private endpoints

Provisioning of an additional private IP address resource
Public access can be completely disabled (depending on the implementation)
Additional private DNS zone is deployed to resolve the internal IP address

In both scenarios, the public DNS entry would still be resolvable, but depending on the config actual access would be blocked.
In my opinion, private endpoints don't make sense for Static Web Apps and are more of an Enterprise feature for strict environments with high security requirements (not the target group for SWA).
I think a firewall at the public endpoint like with Azure SQL or the other PaaS DBs would be fine.

thanks @itpropro , but it seems, that the azure static web apps https://portal.azure.com/#create/Microsoft.StaticApp
are not able to some kind of access security based on ip.
and we are in an enterprise environment and the endusers of the SWA are our employees.
i think we just need an option to secure the access on static content. because there is already a function to use authentication (which provides a non customizable "grant site"). But in our scenario, we just want to secure the static content from public access.

As I understood @anthonychu, we were just discussing options to be implemented in the future. None of these are available today as of my knowledge.
Today, authentication can only be done with routes.json, where you can deny access to all paths. The grant site itself cannot be customized, as it's using the default OIDC flow provided by the authentication provider. When you authenticate to other apps on the internet you will also get the exact same grant site from Twitter, GitHub, etc..
We will have to wait until there is some other way to authenticate to SWA or to integrate our own authentication.

any news about this?

Hey @MichaelRoger , as Anthony mentioned above, we are working on supporting private endpoints which should fit your enterprise need. We are also in discussions on creating an ip address feature to restrict access to a list of CIDR blocks. Private endpoint support should come in the next few months. We don't have an ETA on the allowedIPs feature.

@MichaelRoger a quick update on this thread, you can now restrict access to your application from specific ip ranges, see steps on how to configure this on the Networking page. Thank you for raising this!


Distribution for unix systems

After adding support to run hain on unix system (pull request https://github.com/appetizermonster/hain/pull/48), we need a way to distribute it.
npm
npm is convenient enough to install and update electron applications.
The main problem to publish on npm is two package.json files: https://github.com/appetizermonster/hain/blob/b1482b8dabbc026daac832af46557c402a1d5e70/package.json in the root of the project and https://github.com/appetizermonster/hain/blob/b1482b8dabbc026daac832af46557c402a1d5e70/app/package.json in the app folder.
What is a reason to split them?
*.deb packages for ubuntu/debian
Could be generated and uploaded via travis-ci.
MacOS packages
:question: probably could be generated only on mac systems

Hi @ewnd9. I think, to solve the problem of mac building, we could use some simple tricks, in a .travis.yml, to show that no language is set. This would mean we could load a MacOS worker on travis-ci and install nodejs on it, along with any other dependencies.
To add to this, to make an ubuntu distribution, a vm could be used (such as a vagrant vm).
NB: By 'we' I mean the hain developers.

@ewnd9 the reason to split them is that electron-packager needs two package.json files to package app. one is for developing environment, another is for application environment. so, it's essential for now

@ewnd9 and @appetizermonster: Here's what I would do, for npm distribution:

Create the directory dist/npm
Add a package.json to dist/npm, along with an install script, to install hain, which is ran as part of the package.json's install hook
Copy the binaries into dist/npm (or put them somewhere for the install script to download, such as s3)
Publish what is in dist/npm


Added put and delete methods

Might be useful for others...

Looks very useful indeed! Thanks on behalf of anyone that might find this useful! 👍

FYI this didn't compile on Android, but that's fixed now.


Set up automatic deploy on merge to master

Thoughts?

Changes Unknown when pulling 3f76d07d2c3b979e62de758c1b93d7258a3f8c05 on feat/autodeploy into ** on master**.

Thanks @bsmithyman !


Feature/Add Frontify getRefreshAccessToken test

📦 Published PR as canary version: Canary Versions

:sparkles: Test out this PR locally via:
npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>

:rocket: PR was released in<EMAIL_ADDRESS>:rocket:


[issue/4168] draw circular StaticBody as circle in drawDebug

Please do not update the README or Change Log, we will do this when we merge your PR.
This PR (delete as applicable)

Fixes a bug

Describe the changes below:
As described in #4168, circular staticbodies were not drawn in drawDebug as a circle.
I have test this in the example public/src/physics/arcade/static group.js by adding the following:
    group.children.entries.forEach(ball => {
        ball.body.setCircle(16);
    });

We can clearly see the fix working for the balls in the second screenshot below.
Before fix:

After fix:

I see the travis built failed for this PR, but they are not my changes and I didn't want to fix them as I assumed that would cause conflict as someone else will probably fix them soon.
https://travis-ci.com/maikthomas/phaser/builds/91689887?utm_medium=notification&utm_source=email

Nice one 👍

@photonstorm thanks!
Unfortunately this doesn't solve this other problem reported in #4168 about the offset not working,
I spent like 3 hours messing around with the offset in StaticBody setCircle and couldn't get any effect whatsoever.


ENH: add Sequence.frequencies and Sequence.observed_chars

Added Sequence.frequencies method for computing character frequencies in a sequence.
Added Sequence.observed_chars property for obtaining the set of observed characters in a sequence.
Sequence.kmer_frequencies now returns a dict instead of Counter or defaultdict. See changelog for detailed explanation of this backward-incompatible stable API change.
Fixes #1074. Fixes #1075.

@scikitten-bio seems to be on holiday. Can someone resend the last webhooks 'opened' event? Thanks

PS logging is enable now so I'll be able to keep resending it myself once I capture it.

Just resent it, let me know if that's not the right one.

That's perfect, thanks!

Automated report
Benchmark run completed successfully. Results available at
http://powertrip.mggen.nau.edu:5000/runs/jairideout/char-freqs-and-obs-chars/html/index.html

Back in the saddle

Back in the saddle

You can ride a horse?!?! :horse_racing: :cat:

Automated report
Benchmark run completed successfully. Results available at
http://powertrip.mggen.nau.edu:5000/runs/jairideout/char-freqs-and-obs-chars/html/index.html

:open_mouth:

@ebolyen thanks for reviewing! I addressed your comments.

Automated report
Benchmark run completed successfully. Results available at
http://powertrip.mggen.nau.edu:5000/runs/jairideout/char-freqs-and-obs-chars/html/index.html

Automated report
Benchmark run completed successfully. Results available at
http://powertrip.mggen.nau.edu:5000/runs/jairideout/char-freqs-and-obs-chars/html/index.html