feat(mdx-components): add footer and common js for ibm compliance

Closes https://github.com/carbon-design-system/carbon/issues/15637
Closes https://github.com/carbon-design-system/carbon/issues/15652
Changelog
New

manager-head.html with IBM Footer and common js + basic carbon css added

Testing / reviewing
run mdx-components storybook and verify footer is displaying correctly and common.js is being loaded

@jdharvey-ibm you ok with merging?

@alisonjoseph Yeah! Go for it!


MGDOBR-1140 Implement stage environment E2E test CI check

Signed-off-by: Karel Suta<EMAIL_ADDRESS>MGDOBR-1140
PR owner checklist
Please make sure that your PR meets the following requirements:

[x] Your code is properly formatted according to this configuration.
Run mvn clean verify -DskipTests so that imports are correctly set.
[x] Your commit messages are clear and reference the JIRA issue e.g: "[MGDOBR-1] - $clear_explanation_of_what_you_did"
[x] The layers in the kustomize folder have been updated accordingly.
[ ] All new functionality is tested
[x] Pull Request title is properly formatted: MGDOBR-XYZ Subject
[x] Pull Request contains link to the JIRA issue
[x] Pull Request contains link to any dependent or related Pull Request
[x] Pull Request contains description of the issue
[x] Pull Request does not include fixes for issues other than the main ticket

PR reviewer(s) checklist

[ ] Check if code and Github action workflows have been modified and if the modification is safe
[ ] If the modification is safe, add the safe to test label

How to trigger pipelines and use the bots:

Run the end to end pipeline
Annotate the pull request with the label: safe to test. If you want to run the pipeline again, remove and add it again.

Rebase the pull request
Comment with: /rebase.

Deploy BOT
Comment with `/deploy <dev,stable> when the PR has been merged to deploy to a target environment.

forget it, secrets were not setup
Il giorno lun 10 ott 2022 alle ore 16:08 Karel Suta <
@.***> ha scritto:

@sutaakar https://github.com/sutaakar requested your review on: #1219
https://github.com/5733d9e2be6485d52ffa08870cabdee0/sandbox/pull/1219
MGDOBR-1140 Implement stage environment E2E test CI check.
—
Reply to this email directly, view it on GitHub
https://github.com/5733d9e2be6485d52ffa08870cabdee0/sandbox/pull/1219#event-7554484258,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AELPQI7CZRQXNR2RJKBBGU3WCQPNRANCNFSM6AAAAAARBL3BEA
.
You are receiving this because your review was requested.Message ID:
<5733d9e2be6485d52ffa08870cabdee0/sandbox/pull/1219/issue_event/7554484258
@github.com>

Sorry, wrong mail :joy
Il giorno lun 10 ott 2022 alle ore 18:39 Jacopo Rota @.***>
ha scritto:

forget it, secrets were not setup
Il giorno lun 10 ott 2022 alle ore 16:08 Karel Suta <
@.***> ha scritto:

@sutaakar https://github.com/sutaakar requested your review on: #1219
https://github.com/5733d9e2be6485d52ffa08870cabdee0/sandbox/pull/1219
MGDOBR-1140 Implement stage environment E2E test CI check.
—
Reply to this email directly, view it on GitHub
https://github.com/5733d9e2be6485d52ffa08870cabdee0/sandbox/pull/1219#event-7554484258,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AELPQI7CZRQXNR2RJKBBGU3WCQPNRANCNFSM6AAAAAARBL3BEA
.
You are receiving this because your review was requested.Message ID:
<5733d9e2be6485d52ffa08870cabdee0/sandbox/pull/1219/issue_event/7554484258
@github.com>

/deploy dev

/deploy stable


[iOS] add-camera-padding

Why is this change needed?
We are maintaining the Flutter plugin for maplibre and we are currently implementing https://github.com/maplibre/flutter-maplibre-gl/issues/258 which brings the padding feature to the sdk.
On android we are already able to create camera updates with a padding value, but this is missing on iOS.
This PR exposes the padding value of the MLNMapCamera so that we are able to implement this feature.
This introduces the changes from an unmerged PR that we have seen in the old mapbox repository.
(mapbox-gl-native-ios/pull/323/files)

This introduces the changes from an unmerged PR that we have seen in the old mapbox repository.
(mapbox-gl-native-ios/pull/323/files)

Which to this date (and at the time the PR was merged) is permissively licensed.

Sorry for the confusion, this is the iOS changelog: https://github.com/maplibre/maplibre-native/blob/main/platform/ios/platform/ios/CHANGELOG.md

These tests fail.

E.g.

testHandleTwoFingerTapGesture: ((padding) not equal to (cameraPadding)) failed: ("{length = 32, bytes = 0x00000000 0000f03f 00000000 0000f03f ... 00000000 0000f03f }") is equal to ("{length = 40, bytes = 0x00000000 0000f03f 00000000 0000f03f ... 01000000 00000000 }")

MLNMapProjectionTests also fails:

testHandleDoubleTapGestureContentInset: ((padding) not equal to (cameraPadding)) failed: ("{length = 32, bytes = 0x00000000 0000f03f 00000000 0000f03f ... 00000000 0000f03f }") is equal to ("{length = 40, bytes = 0x00000000 0000f03f 00000000 0000f03f ... 01000000 00000000 }")

Closing this because its not required anymore.


Add backward support for Type2 Complex Tensor ops

Add backward support for Type2 Complex Tensor ops

conj
real
imag
add
sub
mul
div
recip
abs
angle
polar

Merged to main #7226


Update README to show PHP 5.5 requirement

Thanks for adjusting that @pierredup and thanks for the contribution!


Rb/electron update 3670

Security update for electron

How Has This Been Tested?
Manual and by running tests
Screenshots (if appropriate):
Checklist:

[ ] My code follows the code style of this project.
[ ] I have reviewed and updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes where needed.
[ ] All new and existing tests passed.
[ ] My commits have been squashed into a concise set of changes.

@mrfelton I tested this on new ubuntu  system, and it did threw the error as below on first try, but was able to connect later for all subsequent attempts.  Also, yarn e2e passed for connecting to the remote wallet. Can you once try to test, please? If it still fails, I think increasing https://github.com/LN-Zap/node-lnd-grpc/blob/master/src/utils/constants.js#L12 to 25 might help. Can you please trigger a build on travis?

@rahulbile we're out of Travis credits atm - working on getting that renewed and will try re-running when possible. But, I have previously tried running this build on travis multiple times and it always failed.
I think it might be an idea to update lnd-grpc repo. Best thing to do might be to make it possible to override the timeouts as part of the LndGrpc constructor and then we can set custom values in zap-desktop. But before doing that we could try a simpler approach to just update the default timeout values.


Add meilisearch backend version check

Description
When I encountered a problem with meilisearch not being able to create model index after upgrading gems yesterday, after an hour of troubleshooting I found that this was caused by an incompatible version of meilisearch. I thought it would be a good idea to add a version check in the rails initializer.
Basic example
Some other libraries I have used have similar functionality, for example https://github.com/stimulusreflex/stimulus_reflex/blob/master/lib/stimulus_reflex/utils/sanity_checker.rb

Hey @jitingcn, thanks for raising this concern with us!
I really think that could be an awesome addition to the integration not only in the rails one but all the others!
@curquiza let me know if I'm wrong, but we do not have this kind of check inside our integrations right?
This is especially useful in this particular moment because the engine v1 was not released yet and most of the time our integrations are not backgrounded compatible with older versions.
Doing this particular check could help our users to prevent problems in projects that are using a CI + optimistic version control.

I think we could encode a compatible version range in the library file and then try to connect to the /version endpoint of meilisearch to check version compatibility when rails is initialised.

I agree this will be an excellent addition to the meilisearch SDKs (not only to rails), but since this would require a lot of work and Meilisearch is stable now, we don't think that should be harmful as it was in the v0.* era :)
Im closing this, thanks a lot for using Meilisearch @jitingcn ❤


WGSL: texture_2d used as an element type of an array

Affected tests:

tests/bugs/dxbc-double-problem.slang

same as buffers, there isn't much we can do here. Closing.


Updates README.md with svg badge

Coverage remained the same at 57.273% when pulling 1ad9ac9150030f693144c7959c9d81e7e7e53ce3 on sobolevn:patch-1 into 43890c1dcee3111e26764cb898ccdc77cfcd57af on scotty-web:master.


[BUG] Arena is not updated for a given game after changes are made to the arena configuration

Steps to Reproduce:

Create an arena, "Big Arena" with a 50x50 grid
Create a game using the "Big Arena" ID, called "Little Game"
Start game and observe that the arena has a 50x50 grid
Update "Big Arena" with a 10x10 grid
Start "Little Game"

Expected Results
A user may expect that the arena for the game would be updated to use a 10x10 grid
Actual Results
Arena for that game retains the original configuration, with a 50x50 grid
This may not be a bug that we need to fix, but I'm logging for tracking.

This looks like it's working as intended and may have been addressed after the creation of this ticket. The follow is the code that supports clearing the arena.
(defn clear-game-state []
  (re-frame/dispatch [:game/update-frame nil]) ;; Clears arena state on unmount
  (re-frame/dispatch [:game/clear-chat-messages])
  (re-frame/dispatch [:game/stats-update {}])
  (ws/send-message :leave-game {:game-id @game-id})
  (reset! game-id nil))


⚠ Bofrost.de has degraded performance

In 467e1f6, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1205 ms

Resolved: Bofrost.de performance has improved in 39e47e1 after 38 minutes.


Something about physics. But what? "least_deep == -1" (Godot 3.0 alpha1)

Operating system or device - Godot version:
Ubuntu 16.04, Godot 3.0 Alpha1
Issue description:
There is a random hang of the game, due to the fact that the console instantly reports such a mistake 10120 times.
Tell me what this error means?
The release of large spam into the console occurs a couple of minutes after the game starts.

Steps to reproduce:
It is not known why this happens.
Link to minimal example project:
https://drive.google.com/file/d/0Byzq8eVQ6u1fUDNlRUpSX21uNmM/view?usp=sharing

Was not able to reproduce the bug.
Ubuntu 16.04, Master-Branch (5052cb2).

Can't reproduce this either. Please retry with a recent version (beta build or master branch) and report to reopen this issue if this still occurs.
Bugsquad: This can be closed. :)

The beta version does not have this problem.


sqlservr crashes on ressource temporarily not available

My container crashes on an access to a temporarily not available ressource.
Access method: xp_dirtree to a mapped cifs-Volume.
Container image: 2019-CU17-ubuntu-20.04
Running: Microsoft SQL Server 2019 (RTM-CU17) (KB5016394) - 15.0.4249.2 (X64) Express Edition
Host-OS: Ubuntu Server 22.04 LTS
Is this a known error or can it be related to Host-OS version (Ubuntu Server 22.04) != Container OS version (20.04.04)? Any workarounds?
Crash-Message (core.sqlservr.09_05_2022_19_00_02.24.txt):
This program has encountered a fatal error and cannot continue running at Mon Sep  5 19:00:02 2022
The following diagnostic information is available:

         Reason: 0x00000003
         Status: 0x0000000b
        Message: Invalid switch case with switch(status.ToDkStatus()) encountering unexpected value =<PHONE_NUMBER>2635809793
          Stack:
                 IP               Function
                 ---------------- --------------------------------------
                 000055e222345a9c <unknown>
                 000055e2223454e2 <unknown>
                 000055e2222a6326 <unknown>
                 000055e2222a63bd <unknown>
                 000055e2222bed6b <unknown>
                 000055e222356691 <unknown>
        Process: 24 - sqlservr
         Thread: 8302 (application thread 0x2c0)
    Instance Id: f25a4429-fc5b-4eb5-85eb-f747e0f47c21
       Crash Id: 0674bcbd-e39e-4905-ad3d-a8f41edfbec2
    Build stamp: e5dea205d0938e2848fb2509856a7e8f30783e6d5f62d0c88355e288de0db89a
   Distribution: Ubuntu 20.04.4 LTS
     Processors: 10
   Total Memory:<PHONE_NUMBER> bytes
      Timestamp: Mon Sep  5 19:00:02 2022
     Last errno: 11
Last errno text: Resource temporarily unavailable

Are you trying to connect on the first time starting sqlserver, with an empty data directory in particular?
I've found that sometimes, if I try to connect a client too quickly, it will mess up during initialization.


Cant run windows Exe

Checklist

[x] I'm asking a question
[x] I've looked through the README and FAQ for similar questions
[x] I've searched the bugtracker for similar questions including closed ones

Question

I tried using the windows exe on windows 10, and it opens the terminal, but then closes after a second. I am using Python 3.7.0b3.

Google: how to run console apps.


Fallback image (or: default / placeholder / 404 image)

When talk about application side image processing, default images are a pain too. The implementation is very fragmented and requires lot of extra logic, placeholder right size.
It could nice together with cachebuster.
The implementation could be similar to watermark. Defining one fallback image would be nice, define it per preset or query even more nicer.
At best, the fallback image can have a full processing pipeline. With croping/resizing/fitting etc. it can create out of a prototype fallback image one, which can be used everywhere. (imagine an icon with a simple background)
Evtl. it makes sense to set the default image size of the fallback image same to the requested size of the original one (if exists). Just an idea.
In term of a proxy this is just defining the 404 page (or image here). So it would be totally legitim and keep imgproxy simple.
Sidenote for devs
If you have a deterministic source url for your entities primary image (like: /user/5343.png), you can automatically fetch the image or fallback image only with the users ID. In this case, Deterministic URL, requires an application side signing/encrypting for security.

Implemented by @ehiggs-deliverect 👍


Julia environments

Hi,
I'm sure I'm just missing something obvious, but is there a way to use a specific environment of Julia on a per project basis? I can get it to work with the (setq lsp-julia-default-environment "~/.julia/environments/v1.7")) line, but a lot of my work centers around different environments for different projects. Aside from editing the default environment when I switch, is there a way to assign a specific environment to a specific project?
Thanks

The environment should be chosen automatically from the file (https://github.com/gdkrmr/lsp-julia/blob/c869b2f6c05a97e5495ed3cc6710a33b4faf41a2/lsp-julia.el#L250), only if the file is not part of a project, lsp-julia-default-environment is used. So this path should be updated accordingly in your config.


Dev containerservice microsoft.container service 2021 09 01

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[x] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
2021-09
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
2021-10
If updating an existing version, please select the specific langauge SDKs and CLIs that must be refreshed after the swagger is published.

[ ] SDK of .NET (need service team to ensure code readiness)
[ ] SDK of Python
[ ] SDK of Java
[ ] SDK of Js
[ ] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[ ] No refresh required for updates in this PR

Contribution checklist:

[x] I commit to follow the Breaking Change Policy of "no breaking changes"
[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[x] Check this box if any of the following apply to the PR so that label “WaitForARMFeedback” will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

Adding a new service
Adding new API(s)
Adding a new API version
-[x] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits.

[x] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in a stable version
[ ] Removing properties in a stable version
[ ] Removing API version(s) in a stable version
[ ] Updating API in a stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

It takes ~5 days to enable 2021-09-01 API in all public regions (We started enabling it from 09/28). Generally we merge the swagger branch after the new API is enabled in all Public regions. Also 'azure-sdk-for-go-track2' failure needs input from SDK owner. This check didn't fail in 2021-08-01 and 2021-07-01 API merging PR.

@ArcturusZhang as @jhendrixMSFT indicated in https://github.com/Azure/azure-sdk-for-go/issues/15675#issuecomment-932458400, it is not a block issue. Could you help to review this PR so we can merge this PR to the master after the new API is enabled in all Public regions.

The failure on azure-sdk-for-go-track2 is due to some internal issues in the pipeline which we could not resolve here. Please ignore this failure. This pipeline is not required because of it and it will not block PR to merge

@ArcturusZhang @AbelHu Will this be merged soon?


This PR includes features of

Like
Watch Later
Watch History

Looks good to me :100:
Go ahead with merge.


Cannot connect to @azure/web-pubsub-client

Package Name: @azure/web-pubsub-client
Package Version: 1.0.0-beta.3
Operating system: MacOS
[ ] nodejs 18

version:

[ ] browser Chrome

name/version:

[ ] typescript

version:

Is the bug related to documentation in

[ ] README.md
[x] source code documentation
[x] SDK API docs on https://docs.microsoft.com

Describe the bug
Following the example in the SDK docs, one can create a client like this:

The url is taken from the keys section of the Web PubSub. I also tried with personalised token via a /negotiate call, but the error it's the same. When initiating the client, there's the following error

To Reproduce
I'm following the documentation in the npmjs page, as well as the sample code here:
https://github.com/Azure/azure-webpubsub/tree/main/samples/javascript/chatapp/react
Expected behavior
Connect to Web PubSub
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

@rubenberna looks like this could be some kind of bundling issue. Can you confirm what bundler you are using and how you are configuring it?

Hi @xirzec, thanks for reaching out. I'm using Vite with React, but I also tried straight create-react-app, which uses webpack, but the problem is the same. Any suggestions?

having the exact same issue

@xirzec Thanks for pointing me towards the right direction in hinting that it may be a bundling issue.
@rubenberna Hopefully this solution works for you as well.
Upon inspection of my Vite 'npm run build' logs, I ran across the information:
[plugin:vite:resolve] Module "events" has been externalized for browser compatibility, imported by<EMAIL_ADDRESS>See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
Which seemed to prove that it indeed was a bundling issue caused by Vite.
Further research on this landed me on a GitHub issue discussion with Vite and the 'events' module.
Which ultimately directed me towards the solution and explanation of changing the vite.config.ts file to enable the use of the Azure PubSub Client module


markdown_test_cases: Clean cases bugdown_matches_marked where is false.

Fixes #7099.

@rheaparekh this looks pretty good; are you planning to do a few more, or is there another reason this is still tagged WIP?

@timabbott I forgot to remove the tag. I have removed it now.

Merged, thanks @rheaparekh!  It looks like there's just 5 more instances of bugdown_matches_marked being set to false; I guess all of them are tex tests.  What are your thoughts on how to proceed with those?

@timabbott I was a little confused about them as I couldn't figure out where I was getting an assertion error. I'll try to figure it out and add another PR for fixing the remaining soon!


Add pluggable repository layer

Repository consists of

generic repository
nosql repository

Part of #34
Usage:
import (
  "context"
  "github.com/theycallmemac/odin/odin-engine/pkg/repository"
  _ "github.com/theycallmemac/odin/odin-engine/pkg/repository/all"
)

repo, err := repository.GetRegistration("mongodb").OpenFunc("localhost:27017", nil)

repo.GetJobStats(context.Background(), "123")

With odin-engine
./odin-engine -storage_name=mongodb -storage_address=localhost:27017

@hiepd the build is failing because github.com/theycallmemac/odin/odin-engine/pkg/repository/nosql doesn't exist in the master branch yet. That's to be expected right now.

Thanks @theycallmemac . I have changed the code to use config-odin.yml like requested. There are some formatting changes in api/main.go as well since the file wasn't formatted.
I think we can also figure out how to run migration for relational storage in the future as well.

@hiepd Having a quick look. The dependency step is breaking because /pkg/repository doesn't exist in the master branch, once this is merged it should fix it.


as_mut_slices for ReadChunk

For an extremely niche use case with smoltcp, from what I understand this could just be added with the current API since the ReadChunk has exclusive access to its data already

Yes, I think this could be added, but I'm curious, could you quickly describe the use case?
It should be possible to get a ReadChunk, then write into it, then not commit it. This way, the changed data will be available the next time a ReadChunk is requested. Is this it?
Or do you just nominally need the ReadChunk to be writable, without actually writing to it?

I just nominally need it to be writable, I'd assume given smoltcp is no_std it probably uses the read buffer you provide it to perform some decoding operations in place or something similar


Fix Snyology Drive version numbering

IDK how the numbering got messed up. Its in the installer name and URL.
Checklist for Pull Requests

[ ] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Can this be overridden because it is not an update, but a versioning fix? All of the version numbers were 4 major versions too high.

Hi @s-crypt

The pull request contains more than one manifest. Either singleton or multi file manifest under one version directory.

We have a policy of 1 manifest version change (add, update, or remove) per PR. Could 7 of these 8 be moved to other PRs? Then all should pass this check.

Can this be overridden because it is not an update, but a versioning fix? All of the version numbers were 4 major versions too high.

Unfortunately, these still count as updates, so need to be in separate PRs.

So the internal installer version is reflected in the winget versioning, so technically they are correct. The public-facing version is different. Bizarre.


Loss of the model ran with TF2.0 is much higher compared to 1.x

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.0 GPU
Python version: 3.6
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: 10.1
GPU model and memory: GeForce RTX 2080 Ti

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with: 1. TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)" 2. TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
After migrating to TF 2.0 I tried to run the exact same model and got much worse results
Describe the expected behavior
The results should be the same as in TF1.x
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
Below is the model definition:
import os
os.environ['TF_KERAS'] = '1'

from tensorflow.keras.layers import *
from tensorflow.keras.callbacks import TensorBoard, ModelCheckpoint
from heatmaps import *
import numpy as np
from keras_radam import RAdam

image_size = 200
## output shape is the same as input
n = 32 * 5
nClasses = 6
nfmp_block1 = 64
nfmp_block2 = 128
batch_size = 64

IMAGE_ORDERING = "channels_last"
img_input = tf.keras.Input(shape=(image_size, image_size, 3))

# Encoder Block 1
x = Conv2D(nfmp_block1, (3, 3), activation='relu', padding='same', name='block1_conv1', data_format=IMAGE_ORDERING)(
    img_input)
x = Conv2D(nfmp_block1, (3, 3), activation='relu', padding='same', name='block1_conv2', data_format=IMAGE_ORDERING)(x)
block1 = MaxPooling2D((2, 2), strides=(2, 2), name='block1_pool', data_format=IMAGE_ORDERING)(x)

# Encoder Block 2
x = Conv2D(nfmp_block2, (3, 3), activation='relu', padding='same', name='block2_conv1', data_format=IMAGE_ORDERING)(
    block1)
x = Conv2D(nfmp_block2, (3, 3), activation='relu', padding='same', name='block2_conv2', data_format=IMAGE_ORDERING)(x)
x = MaxPooling2D((2, 2), strides=(2, 2), name='block2_pool', data_format=IMAGE_ORDERING)(x)

## bottleneck
o = (Conv2D(n, (int(image_size / 4), int(image_size / 4)),
            activation='relu', padding='same', name="bottleneck_1", data_format=IMAGE_ORDERING))(x)
o = (Conv2D(n, (1, 1), activation='relu', padding='same', name="bottleneck_2", data_format=IMAGE_ORDERING))(o)

## Decoder Block
## upsampling to bring the feature map size to be the same as the input image i.e., heatmap size
output = Conv2DTranspose(nClasses, kernel_size=(4, 4), strides=(4, 4), use_bias=False, name='upsample_2',
                         data_format=IMAGE_ORDERING)(o)

## Reshaping is necessary to use sample_weight_mode="temporal" which assumes 3 dimensional output shape
## See below for the discussion of weights
output = Reshape((image_size * image_size * nClasses, 1))(output)
model = tf.keras.Model(img_input, output)
model.summary()

radam = RAdam(total_steps=10000, warmup_proportion=0.1, min_lr=1e-5)
model.compile(optimizer=radam, loss='mse', sample_weight_mode="temporal")

data_folder = 'data'
id2filename, filename2id, annotated_images = dataloader.get_image_annotations(data_folder)
df = dataloader.get_annotation_dataframe(id2filename, annotated_images)
msk = np.random.rand(len(df)) < 0.8
train = df[msk]
test = df[~msk]
encoding = MultiPointHeatmapEncoding(image_size, df, batch_size=64)

model_name = 'stacked_hourglass_tf2'
log_dir = "logs/{}".format(model_name)
model_filename = "saved-models/{}.h5".format(model_name)

train_gen = encoding.generator(train, batch_size)
test_gen = encoding.generator(test, batch_size, get_weights=True)

steps_per_epoch = len(train) // batch_size
validation_steps = len(test) // batch_size
if validation_steps == 0:
    validation_steps = 1
if steps_per_epoch == 0:
    steps_per_epoch = 1

cb_tensorboard = TensorBoard(log_dir=log_dir)
callback_save_images = CallbackHeatmapOutput(model, get_generator(test_gen), log_dir, encoding)
checkpoint = ModelCheckpoint(model_filename, monitor='val_loss', verbose=1, save_best_only=True, mode='min')

history = model.fit_generator(
            get_generator(train_gen),
            validation_data=get_generator(test_gen),
            steps_per_epoch=steps_per_epoch,
            epochs=5000,
            validation_steps=validation_steps,
            verbose=2,
            use_multiprocessing=True,
            callbacks=[checkpoint, callback_save_images, cb_tensorboard]
        )

Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
output log while running the epochs:

2019-10-03 00:16:43.397431: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2019-10-03 00:16:45.096352: W tensorflow/stream_executor/cuda/redzone_allocator.cc:312] Not found: ./bin/ptxas not found
Relying on driver to perform ptx compilation. This message will be only logged once.
2019-10-03 00:17:16.303969: I tensorflow/core/profiler/lib/profiler_session.cc:184] Profiler session started.
2019-10-03 00:17:16.304314: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcupti.so.10.0'; dlerror: libcupti.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-10.0/lib64::/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
2019-10-03 00:17:16.304328: W tensorflow/core/profiler/lib/profiler_session.cc:192] Encountered error while starting profiler: Unavailable: CUPTI error: CUPTI could not be loaded or symbol could not be found.
2019-10-03 00:17:17.242794: I tensorflow/core/platform/default/device_tracer.cc:588] Collecting 0 kernel records, 0 memcpy records.
2019-10-03 00:17:17.276983: E tensorflow/core/platform/default/device_tracer.cc:70] CUPTI error: CUPTI could not be loaded or symbol could not be found.

@nikogamulin
I tried to execute the code in colab with TF 2.0.0-rc2 , i am getting the below error message NameError: name 'dataloader' is not defined , also ModuleNotFoundError: No module named 'heatmaps' .Please, help me in reproducing the issue in our environment.Thanks!

@ravikyram , thanks for help. The project is fairly complex, but the archtecture is actually the same is this one. Also, it would be helpful to benchmark the model using the same dataset (facial keypoints expression from kaggle) as I can't share the data.

I have a similar problem. My project is training a model to predict Q value in Reinforcement Learning. The error is TD error, which has similar fashion as MSE. I'm using compact.v1.AdamOptimizer
In Tensorflow 1.14 and before, the learning curve in training starts from 8 and drop to 7.
However, from Tensorflow 1.15 and afterwards, the learning curve rises up to 17 fairly quickly.
Is there some modification to optimizers or underlying operations after Tensorflow 1.14?

May I ask whether you try to run it in 1.15? For my project, the loss gets larger starting from Tensorflow 1.15.

Apologies for the delay in response.
As mentioned in the stack trace Could not load dynamic library 'libcupti.so.10.0'; dlerror: libcupti.so.10.0: cannot open shared object file: No such file or directory;
It is looking for cuda 10.0 whereas you have installed cuda 10.
You may want to upgrade your TF to 2.1 which supports cuda10.1.
Thanks!

It has been 41 days with no activity and the awaiting response label was assigned. Is this still an issue?


Any nullable props crashed build

Describe the bug
Build crashed if any props equals null
Reproduction
minimal repo
Steps to reproduce
export default defineConfig({
    plugins: [
        vue(),
        dts({
            insertTypesEntry: true
        }),
        typescript2({
            check: false,
            tsconfigOverride: {
                compilerOptions: {
                    outDir: 'dist',
                    sourceMap: true,
                    declaration: true,
                    declarationMap: true
                }
            },
            exclude: ['vite.config.ts']
        })
    ],
    resolve: {
        alias: {
            '~': path.resolve(__dirname, 'src')
        }
    },
    build: {
        cssCodeSplit: true,
        lib: {
            // Could also be a dictionary or array of multiple entry points
            entry: resolve(__dirname, 'src/main.ts'),
            name: 'UiKit',
            // the proper extensions will be added
            fileName: 'ui-kit'
        },
        rollupOptions: {
            // make sure to externalize deps that shouldn't be bundled
            // into your library
            external: [
                'vue',
                '@vueuse/core',
                'vue-router',
                /src\/App.vue/ // exclude App.vue component
            ],
            output: {
                assetFileNames: (assetInfo) => {
                    if (assetInfo.name === 'main.css') {
                        return 'ui-kit.css';
                    }
                    return assetInfo.name || '';
                },
                exports: 'named',

                // Provide global variables to use in the UMD build
                // for externalized deps
                globals: {
                    vue: 'Vue'
                }
            }
        }
    }
});

And use any nullable props, for example
interface Props {
    value?: File[] | null;

const props = withDefaults(defineProps<Props>(), {
    value: null
});

Next npm run build
src/components/UiFileInput.vue.ts:23:5 - error TS2769: No overload matches this call.
  The last overload gave the following error.
    Type '{ type: (ArrayConstructor | null)[]; required: false; default: null; }' is not assignable to type 'Prop<unknown, unknown> | null'.
      Types of property 'type' are incompatible.
        Type '(ArrayConstructor | null)[]' is not assignable to type 'true | PropType<unknown> | null | undefined'.
          Type '(ArrayConstructor | null)[]' is not assignable to type 'PropConstructor<unknown>[]'.
            Type 'ArrayConstructor | null' is not assignable to type 'PropConstructor<unknown>'.
              Type 'null' is not assignable to type 'PropConstructor<unknown>'.

23     value: { type: [Array, null], required: false, default: null },
       ~~~~~

  node_modules/@vue/runtime-core/dist/runtime-core.d.ts:666:25
    666 export declare function defineComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II>): DefineComponent<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>;
                                ~~~~~~~~~~~~~~~
    The last overload is declared here.

System Info
System:
    OS: macOS 13.0.1
    CPU: (8) arm64 Apple M1
    Memory: 208.38 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.15.0/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Browsers:
    Chrome: 110.0.5481.177
    Firefox: 106.0.1
    Safari: 16.1
  npmPackages:
    @vitejs/plugin-vue: ^4.0.0 => 4.0.0
    vite: ^4.1.1 => 4.1.4
    vite-plugin-dts: ^1.7.2 => 1.7.2

Validations

[X] Read the FAQ.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] The provided reproduction is a minimal reproducible example of the bug.

Would provide a reproduction?

Sorry, maybe later
This error observed inside any ui-kit (vue component library who based on vite and dts)
I found this problem https://github.com/qmhc/vite-plugin-dts/issues/142
If I remove nullable value for props - all fine, but I don't understand why I can't use nullable props

Fixed in 3.0.0.


release 0.2

hi guys,
I think it's time for another release. 3 month cycles are usually recommended but 6 months is also fine. I'd like to get it out before getting busy with next grant cycle. I'm thinking that these are the goals for this release:

[ ] optimization PR #77 (doesn't use drives API yet) @jasmainak
[ ] complete connectivity API  #293 @ntolley
[x] LFP #329  @cjayb
[ ] LFP follow-up: create API for setting in-plane cell distance @cjayb
[ ] internal data containers: list to numpy when possible #358 @cjayb and @ntolley
[ ] #315 ... I am actually stuck on this one. It's fiendishly difficult and low reward but must be done for the long run. Any help is really appreciated @jasmainak
[ ] calcium dynamics #333 (volunteers?)
[ ] can we close #330? we need to check that Neuron indeed adjusts L to match points. But also make sure our L and sec_pts agree!
[ ] Is this the time to deal with #234 and #244 ?
[ ] Check that #262 can be closed (no use of implicit post-processing in our examples, perhaps set postproc=False as default in simulate_dipole?
[ ] The "baseline renormalisation" issue still freaks the bejeez' out of me (#220). The ad hoc fix I proposed in #270 isn't the right way to go. We have to dig deeper in the mechanism files to figure out which of them have massive initialisation transients (only L5, not L2)
[ ] make files/functions private that don't need to be public

anything else? It's going to be a bombshell of a release!

Made some edits/proposals. Perhaps need to prioritise... ;)

I'd be interested in taking up the calcium dynamics. I am already laying the groundwork with #348 which is nearing completion (just need to take an afternoon and play with the simulations).
I have also made a lot of progress on what is likely the most difficult task remaining for the connectivity API #367.
The remaining stuff for more verbose warnings might be a good exercise for @kenloi as a more intermediate level PR. This would involve creating a list of what is considered "valid connections" (example, pyramidal cells shouldn't make GABA synapses), and referencing that list from net.add_connection.

@rythorpe any issues that are close to your heart and/or you'd want to tackle? we're thinking of an august release

Something that's been on my mind for awhile, do you guys thinks it'd be possible to add a sentence or two to the main hnn-core page? At the moment it is extremely cryptic and requires you to go the HNN-GUI repo to figure out that this is a simulator for a neocortical column.
Perhaps

This is a leaner and cleaner version of the code based off the HNN repository, a user friendly tool for the biophysical simulation of a neocortical column. However, a Graphical User Interface is not supported at the moment in this repository.

I can open a PR if you guys agree. Perhaps later it'd also be great to have a picture of the model there as well to make it immediately clear what this repo is for.

yes, that's fine! PR is welcome :)

okay, I checked some boxes and reordered the issues so it's clearer to what's done and what's left. Expanded the connectivity checklist so it's clear to see what needs to be done there. This issue has also been pinned so it's on top of the priority list.


Navigation bar not showing on launch

Hi, firstly this is a great piece of work.
I am trying my hardest to get this working. the issue i am having is as soon as i launch my app the navigation bar at the top of the view is not there.
But as soon as i swipe left and click on the home button again then the navigation controller bar appears a normal. Do you have an idea what could cause this?
I have attached screenshots of my storyboard setup and launch image of the app. the code to add the left button and title is exactly the same as yours too
thanks :)

iOS 9?

Hi, this was my stupidity, the menu is working great.  It just wasnt very clear that the nav controller in the storyboard example had the firstViewController storyboard id on it, and not the firstViewController itself. so im closing the issue :)


[Question]: Need help pushing changed. Getting error 403.

Describe your question or ask for support.❓
rohanvallapalli@rohans-air GameZone % cd /Users/rohanvallapalli/Desktop/GameZone
rohanvallapalli@rohans-air GameZone % git checkout wild-tic-tac-toe-game
Already on 'wild-tic-tac-toe-game'
rohanvallapalli@rohans-air GameZone % git push origin wild-tic-tac-toe-game
remote: Permission to kunjgit/GameZone.git denied to Rohan0305.
fatal: unable to access 'https://github.com/kunjgit/GameZone.git/': The requested URL returned error: 403
this is what it looks like for me.
Select program in which you are contributing
No response
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @Rohan0305 , You can't have another issue before completing the previous one 😀
you already have the following 1 open issues 👀 ! :
#2909

Hey @Rohan0305 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇

Hey @Rohan0305 !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹


WIP refactor mpsc channel

ATM this PR just splits the mpsc channel module into smaller modules with no changes to the actual code. I plan to continue working on this in my spare time. I plan to familiarize myself with the code, update the docs where needed (some passages look suspiciously like 0.1) and port the fixes #1240 #1241 by @carllerche to 0.3.

@MajorBreakfast Are you still working on this?


Map clusters

Instead of having songs stacked upon each other, we show a cluster marker displaying the number of songs in that area.

Done


[Pattern] New Pattern Configurator UI

Description
Add new Configurator UI action type.

[x] Optimizations: Workloads and traits are very large data(8.xx mb) of json when only istio adapter is running and it is fetched and parsed on every click to configure icons. Fixed it with one time fetching and parsing by memorizing the data and saving with context API approach.
[x] Experimental new UI for patterns page
[x] Toggler for list-view and individual view
[x] Grouping the meshes with type and versions
[x] Code refractor is needed to be done.
[x] Have to fix problems with core definitions
[x] Break it into more functional components
[x] Need more performance optimization
[ ] Let’s try separating Kuberentes from the meshes.
[x] Let’s take the easy path on displaying custom resources for each service mesh, by not using a toolbar full of icons, but a dropdown list (or some other selector).
[x] Human readable name to service name

Initial-video (draft):
https://user-images.githubusercontent.com/48255244/138336515-64bfe8a8-da4d-4441-a09a-3378552773bd.mp4
latest Video: Iteration 2
https://www.youtube.com/watch?v=kQhd3gZCzLU
Fixes:
-Add performance optimization by using debouncer on state propagation

Added common utilities functions for meshes
One time data fetch and re-use saves a lot of network calls and unuseful parsing
Configurator UI change, changes in design of RJSF components
Fix crashing errors that is seen in the latest version of meshery when you open kubernetes service form in patterns

Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

latest Video: Iteration 2
https://www.youtube.com/watch?v=kQhd3gZCzLU
Fixes:

Add performance optimization by using debouncer on state propagation
Added common utilities functions for meshes
One time data fetch and re-use saves a lot of network calls and unuseful parsing
Configurator UI change, changes in design of RJSF components
Fix crashing errors that is seen in the latest version of meshery when you open kubernetes service form in patterns

@Abhishek-kumar09 some merge conflicts to address.

We can split out Kubernetes later (or potentially not at all).

We can split out Kubernetes later (or potentially not at all).

Not adding kubernetes, sounds better to me especially for pattern configurator. Since it shows the active kubernetes resources in cluster and are not dependent on Meshery and may not be the subject to pattern configuration

@Abhishek-kumar09 Could you check the comments from the Lift bot?

Seems like the sonatype lift-bot is not configured for the React syntax. It is throwing errors following the rules of vanilla Js and eslint

Understanding that we'll wrap this up over the next few days, let's preemptively merge into an edge release and see how we're doing from there.


Compiled Dict.get produces TypeError

The following code fails with the error
{TypeError}Can't call Dict(Int64->Int64).get with args of type (Int64, Int64)
        @Entrypoint
        def dict_get(x, y):
            return x.get(y, -1)

        x = Dict(int, int)()

        dict_get(x, 1)

(The interpreted code functions properly.)

@rubidge is this fixed now?

The test is test_dict_get_default.


any plan to release iphone datesets configs and datasets.py

In fact, the result is not good (worse than SOTA methods),
However, the iPhone dataset's data format is similar to hypernerf, so you can use the same config.


Figure out and document a reliability plan for pub

Now that we've had our first pub.dartlang.org issue that affected users, we should start getting more serious about reliability and servicing. We need to figure out details, but I'm thinking:

Get one or more people in other timezones who can triage and fix basic site issues (i.e. rollbacks and maybe some other stuff). Make sure they know what to do and have admin rights on the site.
Document the triage process.
Document the post-mortem process.

This issue has been moved to dart-lang/pub-dartlang#311.


is it possible to get cheaper buy now cards?

if i set buy now to 1000 ... i am buying cards only at 1000.
is there any way i can even grind the same player for  cheaper price if they pop up for 700 coins.
basically what i am about to say is , if we have a option like maximum buy now as "<1000 "... i can even buy player lesser than 1000 if player pops up.

is there any options like adding minimum buy now price and maximum buy now price to the AB settings?
the reason why i am asking is, by adding this feature.. i can even grind some higher priced cards for cheaper price when the card pops up.
same like sniping in PS4/ Xbox

if you set max buy now , it will try to buy all cards lesser than or equal to the max buy


Switched to selenium and google chrome for scrapping

Hey, what's your reason for switching to selenium from requests? I don't think we should do that, isn't it going to be slower than pure requests?

@dpuljic01 maybe yes but since a couple of days ago requests() had stopped working for me and others. The hypothesis was that Yahoo would pick up we are scrapping their site and block us. Selenium and Chrome headless present themselves as real browsers and are more difficult to detect. Indeed switching to selenium and Chrome headless made the problem go away.

@beglitis I see the issue now, nice work!

Have you considered just changing the USER-AGENT on the request?

Have you considered just changing the USER-AGENT on the request?

Yes and it didn't work for me for some reason. I guess Yahoo might be looking at multiple data points for deciding whether I am scrapping their site including source IP, geo-location etc. For me switching to selenium and chrome worked.


⚠ Bofrost.be has degraded performance

In 104d6ac, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1251 ms

Resolved: Bofrost.be performance has improved in 9807af2.


Interface that will only allow defined members on derived classes.

Suggestion
Some modifier for strict interfaces. Meaning that implementing this interface will only allow defined members to be declared as public in derived classes.
interface Coo
{
  bar: string;
}

strict interface Foo extends Coo
{
  bob?: number;
}

Extension regards
Pass.
strict interface Moo extends Foo
{
  pop: string = 'a';
}

Shall not pass. Should throw error: only @strict interfaces may extend @strict interface Foo.
interface Moo extends Foo
{
  pop: string = 'a';
}

Implementation regards
Pass.
class Boo implements Foo
{
  bar: string = 1;
}

Still pass.
class Boo implements Foo
{
  bar: string = '1';
  bob: number = 2;
}

Throw error: boo is not allowed in classes implementing strict class Foo.
class Boo implements Foo
{
  bar: string = '1';
  // This will not be welcomed.. poor boo.. boo who?
  boo: number = 3;
}

An interface adding a restriction on a how a class is implemented seems strange.. what other languages do that?

I don't know of any language that would do this I must say.
The point would be to instantly resolve any ambiguity on how a member is called. If you think about coordinates, is it lan or lon? There could be other issues where an implementation may be incorrect but not immediately obvious.
If you could define names for the public members, that could save time for developers by enforcing certain constraints, but still open for extension in form of another interface and closed for unintended modification.

I think you are looking for something like https://github.com/Microsoft/TypeScript/issues/2000, and a flag to force all inherited members to be marked as override.

I meant that the flag you described works only if the class is an extension of another. So this solution would work also if you just implement the interface and does not extend a class.

I would expect TS behavior proposed in #2000, If implemented, would behave the same for interfaces as well as classes.

I also should add that we did discuss the proposal in #2000 before in https://github.com/Microsoft/TypeScript/issues/20724 and did not feel the value added here is worth adding new compexity to the language.

I do not think an interface restricting what properties its implementing class can do is a good idea. An interface declares a shape of an API, a class implements that, it is almost always that an implementing class will add additional members, and having that be an error seems wrong.
The suggestion in #2000 can be extended to properties.
As i said earlier, we felt the value added by doing such checks (with override not being the default) is not worth introducing new concepts to the language. The same logic applies to any language suggestion. a new feature adds complexity both to users and maintainers, and if the value does not offset the cost, then we are all better off without the feature.


[Bug]: Ribbon Items Move on Their Own

Describe the bug
When attempting to click a ribbon item, the buttons in the ribbon will switch positions by themselves.
Relevant errors (if available)
No response
Steps to reproduce
Most buttons are plugin related (Quick Add, Daily Notes, Map View, etc.) but to replicate, try and intend to click a command, and then it will move on its own to the top of the ribbon.
Expected Behavior

A way to shut off ribbon sorting entirely (lock items in ribbon)
A way to hold down for "n" seconds before the drag event is fired like re-arranging apps on iOS

Additional context
No response
Operating system
macOS

I have the same problem on Windows 11, it's quite frustrating

Same here on MacOS and Windows

I'm getting commands disappearing entirely spontaneously, I guess something is corrupting a settings object somewhere?


Allows the creation of several templates with the same name

templates with name teste:

options in device creation:

The label is not a key inside dojot; so this behavior is expected.


Pr bitcraze optical flow ekf interface

This PR enables optical flow on crazyflie. The optical flow deck doesn't have a gyroscope therefore the gyro data should be taken from the imu data in the estimator interface. The pmw3901 driver (optical flow for crazyflie) will publish gyro data equal to NAN to make this check in the ekf.
Had to add a read function in the ringbuffer to read imu data without deleting any older data from it.

See https://github.com/PX4/ecl/pull/458 which eliminates the problem with point sampling of gyro data.


Part of the XML file did not execute

Hi!I am current doing a reasearch on TLS handshake sequence and the server response.  I am trying to run  TLS-client.jar with two different xml files , one of them is a normal handshake, and the other one has had some additional messages after the handshake. Thus after executing TLS-client.jar, with the two xml files, I was expecting the traffic to be very different from each other, However , the traffic is identitical. I am using the latest verison of the TLS-attacker, the test was conducted on openssl 1.0.2g, GnuTLs 3.3.12, and mbedTLS 1.3.10.
This is the one that has the additional cipher exchange and application data.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<workflowTrace>
    <Send>
        <messages>
            <ClientHello>
                <extensions>
                    <ECPointFormat/>
                    <HeartbeatExtension/>
                    <EllipticCurves/>
                </extensions>
            </ClientHello>
        </messages>
    </Send>
    <Receive>
        <expectedMessages>
            <ServerHello>
                <extensions>
                    <ECPointFormat/>
                </extensions>
            </ServerHello>
            <Certificate/>
            <ServerHelloDone/>
        </expectedMessages>
    </Receive>
    <Send>
        <messages>
            <RSAClientKeyExchange>
                <computations/>
            </RSAClientKeyExchange>
            <ChangeCipherSpec/>
            <Finished/>
        </messages>
    </Send>
    <Receive>
        <expectedMessages>
            <ChangeCipherSpec/>
            <Finished/>
        </expectedMessages>
    </Receive>
    <Send>
    	<message>
    		<Application>
    		</Application>
    		<Finished/>
    	</message>
    </Send>
    <Receive>
    </Receive>
    <Send>
    	<message>
    		<RSAClientKeyExchange>
                <computations/>
            	</RSAClientKeyExchange>
            	<ChangeCipherSpec/>
            	<Finished/>
	</message>
    </Send>
    <Receive></Receive>
    <Send>
    	<message>
            	<Application>
            	</Application>
            	<Finished/>
    	</message>
    </Send>
</workflowTrace>
```

This is the onw without the addition message.
```

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<workflowTrace>
    <Send>
        <messages>
            <ClientHello>
                <extensions>
                    <ECPointFormat/>
                    <HeartbeatExtension/>
                    <EllipticCurves/>
                </extensions>
            </ClientHello>
        </messages>
    </Send>
    <Receive>
        <expectedMessages>
            <ServerHello>
                <extensions>
                    <ECPointFormat/>
                </extensions>
            </ServerHello>
            <Certificate/>
            <ServerHelloDone/>
        </expectedMessages>
    </Receive>
    <Send>
        <messages>
            <RSAClientKeyExchange>
                <computations/>
            </RSAClientKeyExchange>
            <ChangeCipherSpec/>
            <Finished/>
        </messages>
    </Send>
    <Receive>
        <expectedMessages>
            <ChangeCipherSpec/>
            <Finished/>
        </expectedMessages>
    </Receive>
</workflowTrace>
```
Furthermore, we want specified an application message, what should I do ?
Thank you

Hey, it seems like you are missing an "s" in the  tag.
    	<message>             	<Application>             	</Application>             	<Finished/>     	</message>
should be


Issue 94 File thumbnails don't show up after upload of new files

Issue - 94
Media preview fails to load in case of new data as the newly added data do not contain the prefix "File:".
Updated code to handle the scenario of missing prefix "Fiile:"

@wetneb Please review

Note: I haven't tested this yet, I might have an occasion this week-end to try it out. Leaving it open also for @sebastian-berlin-wmse to have the opportunity to chime in.

Thanks! It's curious that there is this discrepancy. It would probably be worth adjusting the upload code so that it adds the File: prefix to the uploaded files, so that existing and uploaded files are reprersented in the same way in the grid.
@wetneb In case of new data as  post upload the local data is not updated there is the discrepancy in file property. We cannot add the prefix in the new data as that will break the file validation rule - "file cannot have special character :"

I have opened https://github.com/OpenRefine/OpenRefine/issues/6996 about this.
I do not mean that the user should add the File: prefix themselves. I mean that OpenRefine itself should add the File: prefix when changing the cells reconciled to "New" to cells reconciled to the newly-created files.


Update JWT Version

We need a higher JWT Version in the Backupify app and this is blocking it. I don't see any breaking changes in the changelog https://github.com/jwt/ruby-jwt/blob/master/CHANGELOG.md. The only thing that backupify depends on this gem for is Salesforce and I have verified that it still works.

I think this gem is just used by salesforce


can you add placeholder:CircularProgressIndicator() for InAppWebView

example used LinearProgressIndicator(),but i want to use CircularProgressIndicator() and location at Center, such as placeholder of InAppWebView,
can you add it? or hava any idea.
3Q

Created an example project using both progress indicator at: https://github.com/pichillilorenzo/flutter_inappwebview_examples/tree/main/progress_indicator


Problem: Dynamic Inventory File - permission denied

Issue
I created a python script that generates an inventory list, this works perfectly on my local machine. This file is then pushed to the git repo.
I setup the inventory file within semaphore just as any other file based inventory. (no user or root creds).
When i run the template, i get the following error:
10:27:28 AM
Loading collection ansible.builtin from
10:27:28 AM
host_list declined parsing /tmp/semaphore/inventory_389/inventory/inventory.py as it did not pass its verify_file() method
10:27:28 AM
auto declined parsing /tmp/semaphore/inventory_389/inventory/inventory.py as it did not pass its verify_file() method
10:27:28 AM
yaml declined parsing /tmp/semaphore/inventory_389/inventory/inventory.py as it did not pass its verify_file() method
10:27:28 AM
toml declined parsing /tmp/semaphore/inventory_389/inventory/inventory.py as it did not pass its verify_file() method
10:27:28 AM
[WARNING]:  * Failed to parse
10:27:28 AM
/tmp/semaphore/inventory_389/inventory/inventory.py with script plugin:
10:27:28 AM
problem running /tmp/semaphore/inventory_389/inventory/inventory.py --list
10:27:28 AM
([Errno 13] Permission denied:
10:27:28 AM
'/tmp/semaphore/inventory_389/inventory/inventory.py')
10:27:28 AM
[WARNING]:  * Failed to parse

Semaphore is setup using docker, and i am lost here.

I do not know what the root password is, since whenever I connect to the docker instance I just use sudo docker run -it semaphoreui/semaphore bash
I've done lots of research and i can't figure out how to make this work, or how to generate a root password within the docker instance.

Based on the ([Errno 13] Permission denied: error, i am assuming the .py script fails to run because semaphore does not have permission to run the script. How can i fix this within the docker instance, or is there anything i can modify on the docker file?
Docker file
---
volumes:
  semaphore-mysql:
    driver: local
services:
  mysql:
    image: docker.io/library/mysql:8.3
    hostname: mysql
    volumes:
      - semaphore-mysql:/var/lib/mysql
    environment:
      - MYSQL_RANDOM_ROOT_PASSWORD=yes
      - MYSQL_DATABASE=semaphore
      - MYSQL_USER=semaphore
      - MYSQL_PASSWORD=pass goes here!  # change!
    restart: unless-stopped
  semaphore:
    container_name: ansiblesemaphore
    image: semaphoreui/semaphore:latest
    user: "${UID}:${GID}"
    ports:
      - 3000:3000
    environment:
      - SEMAPHORE_DB_USER=semaphore
      - SEMAPHORE_DB_PASS=pass goes here!  # change!
      - SEMAPHORE_DB_HOST=mysql
      - SEMAPHORE_DB_PORT=3306
      - SEMAPHORE_DB_DIALECT=mysql
      - SEMAPHORE_DB=semaphore
      - SEMAPHORE_PLAYBOOK_PATH=/tmp/semaphore/
      - SEMAPHORE_ADMIN_PASSWORD=pass goes here!  # change!
      - SEMAPHORE_ADMIN_NAME="NoC"
      -<EMAIL_ADDRESS>      -<EMAIL_ADDRESS>      - SEMAPHORE_ACCESS_KEY_ENCRYPTION=key goes here  # add to your access key encryption !
      - ANSIBLE_HOST_KEY_CHECKING=false  # (optional) change to true if you want to enable host key checking
    volumes:
      - ./inventory/:/inventory:ro
      - ./authorized-keys/:/authorized-keys:ro
      - ./config/:/etc/semaphore:rw
      - ./requirements.txt:/etc/semaphore/requirements.txt
    restart: unless-stopped
    depends_on:
      - mysql

Impact
Docker, Semaphore Project
Installation method
Docker
Database
MySQL
Browser
Microsoft Edge
Semaphore Version
v2.10.22-e44910d-1721658561
Ansible Version
ansible [core 2.16.9]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/semaphore/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/semaphore/apps/ansible/9.4.0/venv/lib/python3.11/site-packages/ansible
  ansible collection location = /home/semaphore/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/semaphore/apps/ansible/9.4.0/venv/bin/ansible
  python version = 3.11.9 (main, Apr 14 2024, 13:40:00) [GCC 13.2.1 20231014] (/opt/semaphore/apps/ansible/9.4.0/venv/bin/python3)
  jinja version = 3.1.4
  libyaml = True

Logs & errors
No response
Manual installation - system information
No response
Configuration
No response
Additional information
No response

I believe i have solved the issue, at least in this instance, the issue had to do with the permissions of the script file before it was committed to git.
Before committing the file to git i changed the permissions of the file using chmod +x filename.py When semaphore pulled the files from git, it was successful in running it. There was no need for any root access, so i removed all root credentials from the inventory, and anything related to root from the playbooks.


Laravel 11.x Shift

This pull request includes the changes for upgrading to Laravel 11.x. Feel free to commit any additional changes to the shift-134592 branch.
Before merging, you need to:

Checkout the shift-134592 branch
Review all pull request comments for additional changes
Run composer update (if the scripts fail, try with --no-scripts)
Clear any config, route, or view cache
Thoroughly test your application (no tests?, no CI?)

If you need help with your upgrade, check out the Human Shifts.

:information_source: To slim down the Laravel installation, Laravel 11 no longer has most of the core files previously included in the default Laravel application. While you are welcome to publish and customize these files, they are no longer required.
Shift takes an iterative approach to removing core files which are not customized or where its customizations may be done elsewhere in a modern Laravel 11 application. As such, you may see some commits removing files and others re-registering your customizations.

:information_source: Starting with Laravel 10, the lang folder is no longer included in a default Laravel application. Laravel now recursively merges any customizations with framework defaults.
Shift streamlined your language files by removing them since they did not contain any customizations. If you wish to keep the full set of language, Shift recommends running artisan config:publish --all --force to get the latest configuration files from Laravel 11, then reapplying the customizations Shift streamlined.

:information_source: Laravel 11 no longer requires you to maintain the default configuration files. Your configuration now merges with framework defaults.
Shift streamlined your configuration files by removing options that matched the Laravel defaults and preserving your true customizations. These are values which are not changeable through ENV variables.
If you wish to keep the full set of configuration files, Shift recommends running artisan config:publish --all --force to get the latest configuration files from Laravel 11, then reapplying the customizations Shift streamlined.

:information_source: Shift detected customized options within your configuration files which may be set with an ENV variable. To help keep your configuration files streamlined, you may set the following variables. Be sure adjust any values per environment.
BCRYPT_ROUNDS=10
CACHE_STORE=file
DB_CONNECTION=mysql
MAIL_MAILER=smtp
QUEUE_CONNECTION=sync
SESSION_DRIVER=file

Note: some of these may simply be values which changed between Laravel versions. You may ignore any ENV variables you do not need to customize.

:warning: The BROADCAST_DRIVER, CACHE_DRIVER, and DATABASE_URL environment variables were renamed in Laravel 11 to BROADCAST_CONNECTION, CACHE_STORE, and DB_URL, respectively.
Shift automated this change for your committed files, but you should review any additional locations where your environment is configured and update to the new variable names.

:information_source: Shift updated your dependencies for Laravel 11. While many of the popular packages are reviewed, you may have to update additional packages in order for your application to be compatible with Laravel 11. Watch dealing with dependencies for tips on handling any Composer issues.
The following dependencies were updated by a major version and may have their own changes. You may check their changelog for any additional upgrade steps.

inertiajs/inertia-laravel
laravel/breeze
laravel/sanctum

:information_source: Laravel 11 now includes guzzlehttp/guzzle as a framework dependency. Since Shift did not detect any references to the GuzzleHttp namespace within your application it removed your direct dependency.

:information_source: Laravel renamed the password_resets table to password_reset_tokens. While an optional change, Shift detected you have a migration for the original table and created a migration to rename the table. You should check for any additional references to the password_resets table and run php artisan migrate to complete your upgrade.

:warning: Shift detected your application has a test suite. To provide you with a compatible set of dependencies, Shift bumped your version of phpunit/phpunit to ^10.5. While your test suite may still run, you are encouraged to run the PHPUnit 10 Shift for free to fully upgrade your test suite to PHPUnit 10.

:information_source: The base Controller class has been marked as abstract in Laravel 11, with its traits and inheritance removed. This is to prevent using this base controller directly and to use facades instead of the trait methods.
Shift detected your base controller did not have any public methods, so it was safe to mark as abstract. However, since you may be using trait methods within your controllers, Shift did not remove them. If you know you are not using any trait methods or want to refactor to facades, you may remove them manually.

:information_source: Starting with Laravel 10, PHP type hints were added within classes included in a Laravel application. In an effort to modernize your code, Shift automated this change where Laravel strictly specifies a type. If you prefer not to type hint your code you may revert this commit by running: git revert bdcf76f3

:warning: Many first-party Laravel packages no longer load their migrations automatically. Instead, you may need to publish their migrations to your application if you have not already done so. Shift detected you are using Sanctum. You may run the following command to publish their migrations:
php artisan vendor:publish --tag=sanctum-migrations

:information_source: Laravel 11 now updates the timestamp when publishing vendor migrations. This may cause problems in existing applications when these migrations were previously published and ran with their default timestamp.
To preserve the original behavior, Shift disabled this feature in your database.php configuration file. If you do not have any vendor migrations or have squashed all of your existing migrations, you may re-enable the update_date_on_publish option. If this is the only customization within database.php, you may remove this configuration file.

:warning: Previously, Laravel would append a colon (:) to any cache key prefix for DynamoDB, Memcache, or Redis. Laravel 11 no longer appends a colon to your cache key prefix. If you are using one of these stores, you should append a colon to your prefix to avoid invalidating your cache.

:warning: Many of the default drivers changed in Laravel 11. For example, the default database driver is sqlite and the default cache store is database. If you experience errors setting up your environment, be sure you have properly set your ENV variables for these drivers. If you wish to adopt the new defaults, you may follow the documentation to set them up for your application.

:tada: Congratulations, you're now running the latest version of Laravel!
Next, you may optionally run the following Shifts to ensure your application is fully upgraded, adopts the latest Laravel conventions, and easier to maintain in the future:

Laravel Fixer automatically updates your code to the latest Laravel conventions.
Tests Generator intelligently generates model factories, HTTP Tests, and configuration for your application.
CI Generator intelligently generates CI jobs to lint PHP, check code style, and run tests, including Dusk.

You may also use the Shift Workbench to automate common tasks for maintaining your Laravel application.


fixadd physical property in post processor (#42862) branch-3.0

Proposed changes
pick #42862
Post rule ProjectAggregateExpressionsForCse may add new Project node into plan, but does not set physical properties for the new project, and hence breaks the function of local shuffle.
Issue Number: close #xxx

What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)

Test

[ ] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[ ] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[ ] No.
[ ] Yes.

Does this need documentation?

[ ] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

run buildall

run buildall

run p0

run cloud_p0

run external

run p0


[CHALLENGE SUBMISSION]

Please provide the following information for your submission:
What is your name? (First, Last)
Masi Malmi
Where is your GitHub Repo ?(With your challenge solution)
https://github.com/Masahigo/terraform-azure-hashiconf2020/blob/feature/frontend-cd
What Challenge is this for? (Challenge number between 1 and 5)
1
(Optional) Anything else we should know? e.g., language used, location, blog post?

Solution is described here: https://github.com/Masahigo/terraform-azure-hashiconf2020/blob/feature/frontend-cd/challenge1.md
Live website (frontend standalone): https://masim-az-tf-challenge-2020-appservice.azurewebsites.net/

Thanks for participating in the #TerraformOnAzure coding challenges!
We have attached your very special Astronaut Badger background, for you to use in all your upcoming video calls!
And to recognize you for your learning, you can collect your digital Azure Heroes badge on your mobile (you may need to install the Enjin wallet to collect it). Make sure to collect it today!
https://beam.enjin.io/claim/d32599695c8c28cfc24820492080fac0
Keep on learning and sharing!
Greetings from the #TerraformOnAzure team,
Suzanne, Floor, Erik & Nick


security: fix CVE-2024-45336

This is a PRIVATE issue for CVE-2024-45336, tracked in http://b/379881954 and fixed by https://go-internal-review.git.corp.google.com/c/go/+/1641.
/cc @golang/security and @golang/release

Related Issues

security: fix CVE-2024-34157 #69140 (closed)
security: fix CVE-2023-39324 #63212 (closed)
security: fix CVE-2023-45288 #66297 (closed)

Related Code Changes

doc: suggest<EMAIL_ADDRESS>for reporting security issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)


Consider using ordinary hashes to identify DID documents

Currently DID documents are identified using the selfHash field (produced during the self-sign-and-hash operation on the DID document).  This has the advantage that the DID document contains its own unique content-derived identifier, and that the specific hash function used to generate that identifier is represented and therefore discoverable in the DID document.
However, the verification procedure is more complex than just feeding the bytes of the (canonical form of the) DID document into a hash function, as is the common approach to content-addressing (e.g. in IPFS).
Consider changing this in the following way:

The root DID document would still be self-signed-and-hashed, because the self-hash forms part of the DID itself.
Non-root DID documents would only be self-signed (and no longer self-hashed).
"The" unique identifier for each DID document would simply be a representation of the hash of the DID document under some pre-defined hash function (footnote 1).  I would suggest using multiformats to represent this, as it has a large table of possible hash functions, has a reasonable spec, is extensible, and is used by IPFS.
Instead of using of the selfHash query parameter in the kid field in JWS signatures (and other proofs), use the hl query parameter.  The DID resolver would then hash the document using the pre-defined hash function, and compare the value against the value given in the hl query param.

Advantages of this change:

Hash of a DID can be computed without knowledge of the DID document's data model, and therefore is amenable to generic hash-computing software.
This is more in line with the generic use of the hl query parameter for DIDs.  Though the specific format of that field is not specified.  I would suggest using multiformat here for well-definedness and extensibility.
IPFS uses multiformat hashes to address content on its network.  This would (more easily) enable an IPFS-based VDR implementation.  Note that even if self-hashes were used, there would still be a way to use IPFS (footnote 2).
Disadvantages:
This requires storing the unique identifier (i.e. hash) of the DID document separately, instead of having it be a self-contained  and self-verified piece of data, as in the current, self-hashed situation.
In order to have a unique hash identifier for a DID document, a specific hash function must be used.  This is not extensible as the self-hashing scheme is (the entity doing the self-hashing gets to decide which hash function to use).  This choice of hash function is a new parameter in the DID method, and must either be chosen uniformly, or determined from some other context (added potential for confusion).

Footnotes

Mike Lodder suggests using SHA3-256 or BLAKE3 for the pre-defined hash function.  Each of these produces reasonably short hash values (256), and they're not length-extension-attackable.  SHA3-256 is more widely available, but BLAKE3 is faster.
In order to serve self-hashed data on IPFS -- call this data D -- you would replace the self-hash slots of D with the appropriate placeholder (see https://github.com/LedgerDomain/selfhash#self-verifying) and (canonically) serialize the data that will be put on the IPFS network -- call this file F.  The hash of this file is by construction the same as the self-hash.  To restore D from F, you would need to replace the self-hash slots of F with the CID (hash of F which is the identifier on IPFS).

SHA3 might make it into webcrypto API (and thus be verifiable IN BROWSERS without polyfills!):
https://github.com/w3c/webcrypto/issues/319#issuecomment-2302631189
(big slow "might" tho)


Training on external dataset without query images

Good afternoon!
Will you provide the code for training on external datasets? There are a lot of tasks, where datasets provided in format
 <folder1 "class name1"> : [img11,img21,...],
 <folder2 "class name2"> : [img21,img22,...],

It would be nice to test this approach on other datasets.
Thank you!

Hi, Jack6680
The unified data set format in the code is：
dataset.append((img_path, pid, camid, viewid)) If you don't have camid and viewid, you can use number 1 instead.
Hope the answer can help you~ Thanks~


Expose create_from_arrays in SurfaceTool and cleanup some naming

Currently, the only user-facing API to SurfaceTool is by using ArrayMesh, which requires copying CPU -> GPU -> CPU.
The function for in-memory creation already existed internally SurfaceTool::create_from_triangle_arrays, since this is used by ImporterMesh and other import tooling, but this function was not exposed.
Furthermore, when reviewing how this function was implemented, the code sets primitive to PRIMITIVE_TRIANGLES, yet does not depend on this assumption. I believe this was caused by the fact that it calls an erroneously-named internal static SurfaceTool::create_vertex_array_from_triangle_arrays function, which is actually used internally for all types of meshes and makes no assumption about the primitive type.
In summary, I'm renaming create_vertex_array_from_triangle_arrays to create_vertex_array_from_arrays and adding a wrapper function for triangles so that SurfaceTool::create_from_arrays can be exposed.

Thanks!


cli: enforce build for linux/riscv64 platform

Since the target is always a Cartesi Machine (riscv64), cartesi build should enforce the docker build environment via --platform argument.
This way Dockerfile from cartesi/application-templates should be something like this.
javascript
#BUILDER
FROM --platform=$BUILDPLATFORM node:20.16.0-bookworm AS build-stage
(...)

#TARGET
FROM cartesi/node:20.16.0-jammy-slim
(...)

We should only need to define --platform when we want to run something on the host platform, for a cross-compilation or build stage that could be faster without the linux/riscv64 qemu of the docker builder.
The example above uses the $BUILDPLATFORM, which is recommended so it will use the host platform.
The second and last FROM doesn't need a --platform since this will be enforced by the cartesi build.

I think this will break compatibility with current Dockerfiles out there, right?

I think this will break compatibility with current Dockerfiles out there, right?

Yes. :thinking:
What do you suggest? make it a minor ?
And we should also update the applications-templates.

What do you suggest? make it a minor ?

I think it would be a minor.

As this breaks Dockerfile compatibility let's put it together with other changes that changes Dockerfile, like the v2 initiative.


Use linter from makefile target in the build workflow

By default, the golangci/golangci-lint-action uses the latest linter version (currently v1.62.0). With the linter of v1.62.0 version, the max-public-structs linter shows a false-positive result (probably ignoring our max-public-structs configuration).
Currently, in our Makefile, we have the linter version pinned to v1.61.0. This PR ensures consistency by aligning the linter version in the GitHub Actions workflow with the version used in the Makefile (which is used locally).
Closes #624

I disabled the max-public-structs rule in https://github.com/Mirantis/hmc/pull/632 as I think it was giving false errors.

https://github.com/mgechev/revive/issues/1103 related issue.


Add CSS transformer solution to Jest docs

This solution published by @jd-oconnor is very elegant, and I think it's worth including in the documentation. See https://github.com/vanilla-extract-css/vanilla-extract/issues/962#issuecomment-1384742733

Rather than documenting this, I wonder if we should just merge it directly into the transformer? Might save some peoples the hassle?

Cool! Updated to integrate it into the transform.
One thing I thought I'd check is if we might want to do something like identity-obj-proxy instead of returning the filename. I think this is generally a more common practice for regular CSS files in Jest.


Fix unintended field replacement on sources

Fields that were referenced on the MultiSourceSelect.querySpec and
on a source where being replaced on both places by relation columns.
It is expected that the replacement occurrs only on the first.

@smu could you please review?

lgtm


bfgs: make initial hessian configurable

I have an optimization problem where the exact Hessian is very close to
H = A^T A + G^T G

in every point.  In other words: H is a low-rank update of A^T A. Fortunately, I can provide A^T A explicitly, and I'd like BFGS to use it as initial guess for the Hessian. Is this possible in scipy?

Hi @nschloe,
Just yesterday I merged a commit  (#8328) that may help you. In this commit I introduced the solver trust-constr and two quasi-Newton strategies: BFGS` and SR1``.'
You can define the Hessian as the linear combination of two term:
H = H1 + H2

and define the first term as A^T A and the second as BFGS()
I would do something like this:
import scipy.sparse as sps

# A is the matrix
n = A.shape[0]

# Define H1
def H1(x):
    # Create matvec function
    def matvec(p):
        return A.T.dot(A.dot(p))
    return scipy.sparse.linalg.LinearOperator((n, n), matvec=matvec)

# Define H2
H2 = BFGS()

def H(x):
    # Create matvec function
    def matvec(p):
        return H1.dot(p) + H2.dot(p)
    return scipy.sparse.linalg.LinearOperator((n, n), matvec=matvec)

minimize(f, x0, jac=jac, hess=hess, method='trust-const'...)

The only method that supports the use of linear operator for the Hessian is trust-constr.
You can also use trust-krylov, Newton-CG,  trust-ncg or TNC. the only modification is that you will have to use hessp instead of defining a linear operator.
Something like:
import scipy.sparse as sps

# A is the matrix
n = A.shape[0]

# Define H1
def H1(x):
    # Create matvec function
    def matvec(p):
        return A.T.dot(A.dot(p))
    return scipy.sparse.linalg.LinearOperator((n, n), matvec=matvec)

# Define H2
H2 = BFGS()

def hessp(x, p):
    return H1(x).dot(p) + H2(x).dot(p)

minimize(f, x0, jac=jac, hessp=hessp, method='trust-ncg'...)

Two important points:

You will have to either: i) use the development version of scipy; or, ii) wait for scipy 1.1 to come out.
I have not tested the code and it may contain small mistakes. You will need to read the documentation and implement a funcional version of it.

Wow, what a PR! You don't see a diff of 7000+ every day. Anyways, congratulations for getting this merged.
I'll read through the documentation and get back if I have any more questions.

Thanks @nschloe ! :)
Let me know if you have any questions or run into any trouble.

Hi @denis-bz,
Yes, trust-contr does makes sense for a linear objective.
This warning is triggered when you use quasi-Newton approximations for linear functions. And, while you are not using quasi-Newton to approximate the objective function, I imagine that you are using it to approximate the constraints second derivatives. If some of the constraints are linear you would get this warning...
What can be done to stop this warning:

Check if some of your constraints are linear. And treat them separetely
Use finite difference approximations to approximate constraint second derivatives.

I choose to include this warning because using quasi-Newton approximations for linear functions can lead to not so good performance...

What can be done to stop this warning:

Check if some of your constraints are linear. And treat them separetely

Hi @antonior92,
that is the reason why I am getting the warning. What do you exactly mean by "treat them separetely"? (actually, all of my constraints are linear)

that is the reason why I am getting the warning.
If I understood you correctle: yes
What do you exactly mean by "treat them separetely"? (actually, all of my constraints are linear)
You should use LinearConstraint class to pass these constraints to the solver
https://docs.scipy.org/doc/scipy-1.2.1/reference/generated/scipy.optimize.LinearConstraint.html#scipy.optimize.LinearConstraint

You also can mix linear and nonlinear constraints using a list with both classes... (if needed)
Anyway, the warning is trying to warn you that if you pass linear constraints as nonlinear ones, the solver will try to use BFGS approximation to approximate the Hessian. And, by my experience this usually does not work really well... And you actually do not need the Hessian, since your constraints are linear....

Thanks a lot for your answer!
Actually, I am already using only Bounds and LinearConstraint to pass constraints but I get the warning nonetheless. So I am a bit confused. (The function I am trying to optimize is non-linear.)

That is interesting... Probably your nonlinear functions has some reagions for which:
grad f = (f(x(k+1)) - f(x(k)))/(x(k+1) - x(k))

(suggesting that it is linear, at least close to this region).
That why the algorithm think the cost function is linear and outputs the warning.

Looks like the algorithm might be mislead by the fact that my objective function is very flat - not only near the optimum.
Thank you very much for your hint! : )

:)

Hi @antonior92,
I am using trust-constr to optimize a nonlinear objective function with linear constraints, but I keep getting this error:ValueError: array must not contain infs or NaNs . At some steps, the value of my cost function becomes NaN, and it is when the vector of parameters is estimated from beyond the bounds that I have defined.
I tried using keep_feasible, but still it is reaching outside of the bounds.
I also tried using the BFGS as hessian, but the error persists.
Could you please help me find the problem?
The whole error is as the following.
res = minimize(nLL_atonce, x0=x0, jac=nLL_atonceJ, args=arrgs, method="trust-constr", bounds=bnds, constraints=[linc], options=options)
File "/home/farnazm/hmm/tHMM/venv/lib/python3.8/site-packages/scipy/optimize/_minimize.py", line 630, in minimize
return _minimize_trustregion_constr(fun, x0, args, jac, hess, hessp,
File "/home/farnazm/hmm/tHMM/venv/lib/python3.8/site-packages/scipy/optimize/_trustregion_constr/minimize_trustregion_constr.py", line 509, in _minimize_trustregion_constr
_, result = tr_interior_point(
File "/home/farnazm/hmm/tHMM/venv/lib/python3.8/site-packages/scipy/optimize/_trustregion_constr/tr_interior_point.py", line 321, in tr_interior_point
z, state = equality_constrained_sqp(
File "/home/farnazm/hmm/tHMM/venv/lib/python3.8/site-packages/scipy/optimize/_trustregion_constr/equality_constrained_sqp.py", line 118, in equality_constrained_sqp
dt, cg_info = projected_cg(H, c_t, Z, Y, b_t,
File "/home/farnazm/hmm/tHMM/venv/lib/python3.8/site-packages/scipy/optimize/_trustregion_constr/qp_subproblem.py", line 498, in projected_cg
r = Z.dot(H.dot(x) + c)
File "/home/farnazm/hmm/tHMM/venv/lib/python3.8/site-packages/scipy/sparse/linalg/interface.py", line 418, in dot
return self.matvec(x)
File "/home/farnazm/hmm/tHMM/venv/lib/python3.8/site-packages/scipy/sparse/linalg/interface.py", line 232, in matvec
y = self._matvec(x)
File "/home/farnazm/hmm/tHMM/venv/lib/python3.8/site-packages/scipy/sparse/linalg/interface.py", line 530, in _matvec
return self.__matvec_impl(x)
File "/home/farnazm/hmm/tHMM/venv/lib/python3.8/site-packages/scipy/optimize/_trustregion_constr/projections.py", line 192, in null_space
aux2 = scipy.linalg.solve_triangular(R, aux1, lower=False)
File "/home/farnazm/hmm/tHMM/venv/lib/python3.8/site-packages/scipy/linalg/basic.py", line 334, in solve_triangular
b1 = _asarray_validated(b, check_finite=check_finite)
File "/home/farnazm/hmm/tHMM/venv/lib/python3.8/site-packages/scipy/_lib/_util.py", line 262, in _asarray_validated
a = toarray(a)
File "/home/farnazm/hmm/tHMM/venv/lib/python3.8/site-packages/numpy/lib/function_base.py", line 485, in asarray_chkfinite
raise ValueError(
ValueError: array must not contain infs or NaNs

Thank you for reporting it @Farnazmdi. I believe the problem you are experiencing is related to this Pull Request here: @11712. We expect to have this merged and fixed for future versions of SciPy...
But, as a quick fix: maybe you can try to use the solution from the Pull Request inside your code. That is, can you try to just set f = np.Inf when out of the bounds? It might not be the most elegant solution but might fix your problem.

@Farnazmdi, I'd suggest x = np.clip( x, lb, ub ) INside your function, and print if (x < lb) | (x > ub).
(This is a bit fiddly, because bounds may be +-inf or None in different programs;
try bounds = Bounds( lb, ub ), see scipy.optimize.Bounds,
and np.clip( x, bounds.lb, bounds.ub ) .)

Thank you very much for your suggestions @antonior92 @denis-bz .
I tried clipping the bounds and it works now.

Thank you for supporting this thread. I'm facing similar behavior as described from @Farnazmdi. However, the proposed solution from @denis-bz did not improve things. Has this currently been fixed in future versions of Scipy @antonior92 ? I'm using Scipy 1.5.2.

@koutsakis, are you sure you clipped x to Bounds inside the jac and hessp functions too ?
(not sure that's enough -- afaik you have to project gradients along the bounds / constraint sets, various ways of doing that.)
Testcases anyone ?


Do not load popup scripts on mobile, to be consistent.

Throughout the rest of the plugin, the popup settings are overrode when 'wp_is_mobile' evaluates to true.For proper function of mobile devices, this same logic should be applied to when the popup scripts should load.
Thanks!

I didn't see a 'DEV' branch, so I made my pull request against master, let me know if I should do something else.

Thanks!


Upgrade Jade -> Pug

I took a quick pass on this, by simply renaming everything, but something broke - it seemed the 'extends' syntax wasn't properly including the extended file.  Need to look into this more.

Looks like this may be the issue -
https://github.com/pugjs/pug/issues/2338

I would recommend updating Jade to Pug when they are past the Alpha release.

Thanks @khrome83


Update, Pulling Into deploy_prod attempting to fix freezing on building image problem.

Found a different way to fix this...basically the docker daemon was crashing which is what caused this problem. Cancelling this MR.


Figure out what's wrong with visit_struct core on appveyor build

This appears to be working now since rewriting the map macro


Replace JarSigner with ApkSigner

Docs:

https://developer.android.com/studio/command-line/apksigner
https://developer.android.com/studio/publish/app-signing#signing-manually

I believe that @jisqyv has already done this on another branch that hasn't been published yet.

@pavi2410 @ewpatton I've been doing the apksigning by hand. I'll test this change and likely merge it.

@jisqyv Sounds good to me.

@pavi2410 I'm getting ready to merge this info our sources. But first I'm going to push another commit onto your feature branch, merging in master, fixing the conflicts. etc. This way I can merge the code from GitHub keeping you as the author of the change.

Can one of the admins verify this patch?


Collaborator field in grant

Simplify this process:
We kindly ask you to:

State name and email address of all collaborators (if any) in the approved project “grant dossier” in Anubis.
Forward the attached documents to all project collaborators
Make sure that all the collaborators upload:
a. template.xlxs), that specify the budget for her/his part of the project
b. namn på dok villkorsbilaga.pdf). Condition for funding (edited)

Done.


Parameterize diaginvert

I don't like that trsm::diaginvert takes a blasPackage parameter. That should be removed, and the blas arguments should be deduced based on the method itself.
diaginvert calls special matmult::summa variants with a pointer offset. I'd like to be able to remove those entirely, but I also need a cheap way to do this without incurring a serialize routine.
I don't like that the invoke methods take a strange vector with base case sizes. This should either be default, or removed entirely. The motivation for this was to support non-power-2 sizes in cholinv.
Can the char arguments be deduced from something else?

On second thought, perhaps the blasPackage does make sense. The user may want to specify what to call. What should not be forced is the usage of the gemm package. This should be deduced.

Wait, why can't we just use one of the summa overloads for a piece of a matrix? Only because only 2 of the 3 matrices need pieces? I think we should be able to use this and then remove that extra code.


Security Enhancement: Use 'Strict-Transport-Security' response header to force clients to use HTTPS

Any update on this?
AFAIK this is still not possible.
When using Azure Functions, the default is to put a secret in the URL. It's insecure if somebody uses this mechanism over plain http.

Tracked and resolved in #4069


Support high-quality raster overlays on additive-refined tilesets

Adding a raster overlay to a tileset that uses additive refinement, like Cesium OSM Buildings, doesn't work very well. The problem is that detail added in large, low-LOD tiles (like large buildings in Cesium OSM Buildings) continues to be rendered when zoomed in close (this is what additive refinement means). But a single raster overlay texture cannot have enough detail to cover the large area covered by the tile with sufficient detail to look good up close.
I think the best solution is to switch to "replace" instead of "add" mode when adding a raster overlay, by slicing and duplicating geometry into child tiles.
Reported here: https://community.cesium.com/t/blurry-ion-raster-overlay/26427

It's possible some sort of solution based on virtual texturing could work, too, but I don't know the details.


Enhancement to assigning variables quickly via constructors

This issue was originally filed by<EMAIL_ADDRESS>
This is an enhancement type, can't find it in templates.
== current way of quick assigning properties via constructor :
class Person {
  String name;
  Person(this.name);
  String greet() => 'Hello, $name';
}
class Employee extends Person {
  num salary;
  Employee(String name, this.salary) : super(name);
}
== proposed way:
class Person {
  String name;
  Person(this.name);
  String greet() => 'Hello, $name';
}
class Employee extends Person {
  num salary;
  Employee(super.name, this.salary);
}

It's not clear to me what this is actually proposing.
If it sidesteps the superclass's constructor and assigns its field directly, that's bad. It violates the superclass's own encapsulation. A class should be able to ensure all instantiations go through its own constructors so it can enforce its preconditions and invariants.
If it is calling the superclass's constructor, it's not clear how it knows which constructor to call and which arguments to pass for what.
I'm going to go ahead and close this because I don't think we intend to take action on it. Though, for what it's worth, I have found myself wishing for something similar on occasion. Once you get used to this.x, it feels annoying to have to manually forward and type annotate the parameters for the superclass.