Fix Sass compilation when $color-mode-type is set to media-query

Description
As a summary, this PR fixes Sass compilation when $color-mode-type is set to media-query.
First error
So the first error mentioned in the issue was the following:
Compilation Error
Error: Declarations may only be used within style rules.
    ╷
135 │     --#{$prefix}body-color: #{$body-color-dark};
    │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
  c:\wamp64\www\f3-5\node_modules\bootstrap\scss\_root.scss 135:5             @content
  c:\wamp64\www\f3-5\node_modules\bootstrap\scss\mixins\_color-mode.scss 5:7  color-mode()
  c:\wamp64\www\f3-5\node_modules\bootstrap\scss\_root.scss 133:3             @import
  c:\wamp64\www\f3-5\src\scss\style.scss 25:9                                 root stylesheet
--------------------

The main reason is that we had in _root.scss:
@if $enable-dark-mode {
  @include color-mode(dark, true) {
     --#{$prefix}whatever: #{$whatever};
  }
}

So when we set $color-mode-type to media-query we end up with a generated CSS for this part without any scope!
I haven't found a better way for now to fix it so I've modified our color-mode mixin to:

Remove the second parameter since $color-mode-type is available globally even within the mixin
Add a new second parameter to handle this specific use case where we want to add the :root scope

Second and third errors
After having fixed this one, another type of error popped out (I don't have it, I forgot to register it) but that said that it's not possible to use @extend within @media.
So our @extend in close button and carousels didn't work.
Instead of using @extend I've found a way (maybe not ideal) to replace it with a mixin.
I kept the test() and test2() just for you to spot easily how it works, and also because I haven't found the proper wording :)
Type of changes

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

Checklist

[x] I have read the contributing guidelines
[x] My code follows the code style of the project (using npm run lint)
[x] All new and existing tests passed

Live previews

https://deploy-preview-37687--twbs-bootstrap.netlify.app/

⚠ Big warning regarding non-regression testing. It seems to still work for $color-media-type set to data and I tried within the doc to play with the media-query but our doc is not really very usable when we enable the media-query as is; so it was complicated to ensure that it works correctly. I might need someone to double check if it is OK 🙏
Related issues
Closes #37673

Pushed a change to rename the mixins and fix the docs when moving to media-query. Should be good to go now!

Sounds good, thanks for the changes to finalize it!


Feature #35171: Copy/introduce ClassObserver

Copying the classObserver utility from EchoCore as-is and adding tests.
The rationale of copying the utilty is that one does want to make a direct dependency from EchoUtils to EchoCore (but one might argue that one later will do the other way round).
This utility is needed when copying the logger-class from EchoWeb to EchoUtils.
Adding unit-tests and documentation which were missing.

Merging into a different PR (so that all dependencies are present in the same PR):
https://github.com/equinor/EchoUtils/tree/feature/35171-Move-utils-from-EchoWeb


Fix download page to only fetch latest release

Fixes #849

This could be improved by introducing something like https://www.npmjs.com/package/query-string (2kb gzipped) and defining the query parameters for this request with that instead of hardcoding the query parameter format, because if it's decided to add more variable parameters to this method/request, this approach will get messy.
BundlePhobia analysis<EMAIL_ADDRESS>


Merge LLC related integration tests

Clean up LLCRealtimeClusterIntegrationTest
Merge LLCRealtimeClusterSplitCommitIntegrationTest and LLCRealtimeClusterWithEnabledLeadControllerResourceIntegrationTest into LLCRealtimeClusterIntegrationTest to reduse the runtime of integration tests

@mcvsubbu Once we have the module level test for split commit and lead controller, we can remove the random in this test. This PR can reduce the test time by nearly 10 minutes.

@mcvsubbu Once we have the module level test for split commit and lead controller, we can remove the random in this test. This PR can reduce the test time by nearly 10 minutes.

ok


Add link to file browser in DLP

Fixes #366.

It doesn't seem like this was deployed upon merge.

Sorry, it was probably a lack of hard refresh on my part. I confirm it is working.


Tags variable isn't being correctly serialized

Steps

Setup plugin
Connect API key
Create a template file with the tags variable in it
Set template in settings
Create new book game note

Result

oops -- I missed this on review but just fwiw these were necessary changes
https://github.com/CMorooney/obsidian-game-search-plugin/commit/36f98aa574e5f5580d3b91212c41de7c3b9f1dfd


Pretrained weights

@CaptainEven can you pls share the weight file on google drive link ?

@TheMadScientiist  nope do not have the weight file , @CaptainEven  can you please share the weight file on google drive or one drive
THnaks

@TheMadScientiist nope do not have the weight file , @CaptainEven can you please share the weight file on google drive or one drive
THnaks

@abhigoku10 I was able to pull the weight file, let me know if you still need it

I do, please share it with me if you can.

@TheMadScientiist @dschmidt-ai Hello! I also need it. Would you mind sharing with me as well? Thanks in advance!

@TheMadScientiist @dschmidt-ai Hello! I also need it. Would you mind sharing with me as well? Thanks in advance!


Feature Upload Page

This adds the functionality to add File Upload components to the Singlequestion pages.

Quick question: should we add the FILESTORE_URL to the publishing mechanism deployment.yaml on this PR or another?

Added the filestore url to the runner on a commit on this PR.


Cannot read property length of undefined Chance.last()

Reading the docs it says you can use 'us' or 'it' for nationality when using chance.first({nationality: x}) . However chance.first({nationality: 'us'}); always resulted in an undefined error.
Later in the docs an example uses 'en', so I tried replacing 'us' with 'en' and the error went away.
That's all I changed so I think the problem might be an inconsistency somewhere.
Just wanted to let you know.
Thanks

Ugh yes that's an ugly inconsistency.
Will fix, likely in v2 as it'd change the existing behavior.

thank you for posting this


feat: allow to pop a shell on Kubernetes

Description:
Previously popping a shell was three different kubectl commands. Now its one Kurtosis command
Is this change user facing?
YES

Uploading Screen Recording 2023-06-20 at 12.58.24 PM.mov…

https://github.com/kurtosis-tech/kurtosis/assets/6670312/f7771b97-c87e-4609-9aa9-eddf9deb440d


Cns windows aks

Reason for Change:
In order to get cns to work as a host process pod on windows for AKS, these changes are necessary

Passed all but windows npm build, which was failing anyways


Be able to build with a tag for temurin-build repo, rather than use "master" for branch

To be able to have reproducible build, we need to have fixed git tag on each repo, including ci-jenkins-pipeline, temurin-build and each jdk source repo.
https://github.com/adoptium/temurin-build/issues/3091 has covered the jdk source repo
this issue is for the temurin-build part.
  "build_branch":should be set to a tag

from what the code we have now, this should be supported already. but we need to verify if it does work.
purely tested git checkout plugin, which works with
checkout([$class: 'GitSCM',                         branches: [ [ name: 'a37292a3408b32fd248c1410a02426635652440c' ] ],                         userRemoteConfigs: [ [ url: "https://github.com/adoptium/temurin-build.git" ] ]                     ])
or
checkout([$class: 'GitSCM',                         branches: [ [ name: 'mastser' ] ],                         userRemoteConfigs: [ [ url: "https://github.com/adoptium/temurin-build.git" ] ]                     ])
or
checkout([$class: 'GitSCM',                         branches: [ [ name: '3.0.0' ] ],                         userRemoteConfigs: [ [ url: "https://github.com/adoptium/temurin-build.git" ] ]                     ])
so, branch name, git tag or even SHA1 all 3 cases are fine

from the code, since we set     "USE_ADOPT_SHELL_SCRIPTS": true, so the really important section is ADOPT_DEFAULTS_JSON not  DEFAULTS_JSON
and actually whats in the jobs parameter's DEFAULTS_JSON does not matter, because             repoHandler.setUserDefaultsJson(context, DEFAULTS_JSON['defaultsUrl']) reads out other parameters from raw.githubsourceontent.com
so in reality, we do not even need other content except defaultsUrl in the DEFAULT_JSON,
and can remove "defaultsUrl": "https://raw.githubusercontent.com/adoptium/ci-jenkins-pipelines/master/pipelines/defaults.json", from ADOPT_DEFAULT_JSON
then update
"build_branch": "master",
"pipeline_branch": "master",
``` in ADOPT_DEFAULT_JSON to tag or SHA should be enough

FYI issue @andrew-m-leonard

The current limitation when UseAdoptScripts = True, is that the script repos are hard coded in the RepoHandler:
https://github.com/adoptium/jenkins-helper/blob/69c50f5d31ab75c0ed5582e698838ca54cce9407/src/common/RepoHandler.groovy#L24
So checkoutAdoptPipelines() and checkoutAdoptBuild() will always return the master scripts.
The use "User" scripts, (ie.UseAdoptScripts = False) is intended for custom users of the Adopt repros to customize themselves, eg.IBM Semeru build scripts.
We probably need to update the architecture slightly around the UseAdoptScripts logic.

Created the VS2019 layout using the following:
vs_community.exe --layout VSLayout2019 --add Microsoft.VisualStudio.Workload.NativeDesktop;includeRecommended;includeOptional --add Microsoft.VisualStudio.Component.VC.Tools.ARM64 --add Microsoft.VisualStudio.Component.VC.ATL.ARM64 --add Microsoft.VisualStudio.Component.VC.MFC.ARM64

Can we treat our "tag" build as the USE_ADOPT_SHELL_SCRIPTS=false case?
e.g nightly we have "USE_ADOPT_SHELL_SCRIPTS=true" as-is
when release CPU, set "USE_ADOPT_SHELL_SCRIPTS=false"
Think the names are  confusing:
DEFAULTS_JSON is actually for customized config e.g IBM Semeru
ADOPT_DEFAULTS_JSON is for adoptium nightly + weekly + release at the moment

https://raw.githubusercontent.com/adoptium/ci-jenkins-pipelines/master/pipelines/gradlew
https://raw.githubusercontent.com/adoptium/ci-jenkins-pipelines/9425e73/pipelines/gradlew
https://raw.githubusercontent.com/adoptium/ci-jenkins-pipelines/april-psu/pipelines/gradlew

have the same content , so we can replace master in the defaultsUrl with SHA or tag name

test on https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk/job/jdk-linux-x64-temurin/243/console
with parameters:

need set--openjdk-build-repo-branch  to SHA1 than default "master" coded in temurin-build.
remove  "PLATFORM_CONFIG_LOCATION": which is not in use but cause confusion
need to set USER_REMOTE_CONFIGS-> branch with SHA1 which is used by helper in func getUserRemoteConfigs to checkout ci-jenkins-pipeline
need to update DEFAULTS_JSON-> repository build_branch to temuin-build SHA1 and pipeline_branch to ci-jenkins-pipeline SHA1
need to update    DEFAULTS_JSON->defaultsUrl

@zdtsw ^ looks reasonable I think, job looks like it's built with correct repo sha's

the part I still cannot figure out is how to set the openjdk-jenkins-helper version.
seems everywhere it is hardcoded to use ·@master branch.

the part I still cannot figure out is how to set the openjdk-jenkins-helper version. seems everywhere it is hardcoded to use ·@master branch.

@zdtsw yeah, we'd have to add a new property for that

to test from openjdk20-pipeline with a small set of targets
https://ci.adoptopenjdk.net/job/build-scripts/job/openjdk20-pipeline/60/console
additionalBuildArgs use  --openjdk-build-repo-branch ${temurin-build-sha1}
uncheck useAdoptBashScripts
update  defaultsJson 's
   "defaultsUrl":
  "repository": {...}

this does pass down the --openjdk-build-repo-branch to makejdk-any-platform.sh to the downstream job, but not the other values.
I think the reason is,
                            // Triggering downstream job ${downstreamJobName}                             def downstreamJob = context.build job: downstreamJobName, propagate: false, parameters: config.toBuildParams()
only does pass down
List<?> toBuildParams() {
        List<?> buildParams = []

        buildParams.add(['$class': 'LabelParameterValue', name: 'NODE_LABEL', label: NODE_LABEL])
        buildParams.add(['$class': 'TextParameterValue', name: 'BUILD_CONFIGURATION', value: toJson()])

        return buildParams
    }

so the defaultsJson we update in openjdk-pipeline is not part of the BUILD_CONFIGURATION. Thus, the downstream job e.g jdk-alpine-linux-x64-temurin still use the default value of defaultsJson (when the job was created)

if ^ is correct, then we are not able (as what we have now in code base) to set tag/SHA1 from a openjdk-pipeline
what we can do is only to set tag/SHA1 directly in the downstream job per each build.

it feels strange, in https://github.com/adoptium/jenkins-helper/blame/master/src/common/RepoHandler.groovy#L60 sets into a variable "USER_DEFAULTS_JSON" but in ci-jenkins-pipeline script, e.g https://github.com/adoptium/ci-jenkins-pipelines/blob/master/pipelines/build/common/openjdk_build_pipeline.groovy#L1224 it only uses "DEFAULT_JSON" seems this setUserDefauiltsJson does not take effects ?

Yeah, agree, I think ReopHandler.setUserDefauiltsJson() is supposed to be retrieved by getUserDefauiltsJson(), but that's not used anywhere other tan the unittest.

if ^ is correct, then we are not able (as what we have now in code base) to set tag/SHA1 from a openjdk-pipeline

As mentioned elsewhere (and duplicating here for record) I do feel that we're missing important functionality by not allowing a SHA to be put in (for temurin-build specifically sine that is the critical stuff that can affect the builds, but applicable to the other repos). With a tag you're limited to things that have been tagged. If I want to rebuild something from two weeks ago I first have to tag it (and have permission to do so) and probably delete that tag afterwards which is all a bit messy. If we had the ability to do a SHA then the tagging would arguably just be a "nice to have" on top as a human readable record e.g. for release builds. (albeit adding an extra step into the process to create it) but I feel the real difference here would be if we were able to make a SHA work as input to our automation.

if ^ is correct, then we are not able (as what we have now in code base) to set tag/SHA1 from a openjdk-pipeline

As mentioned elsewhere (and duplicating here for record) I do feel that we're missing important functionality by not allowing a SHA to be put in (for temurin-build specifically sine that is the critical stuff that can affect the builds, but applicable to the other repos). With a tag you're limited to things that have been tagged. If I want to rebuild something from two weeks ago I first have to tag it (and have permission to do so) and probably delete that tag afterwards which is all a bit messy. If we had the ability to do a SHA then the tagging would arguably just be a "nice to have" on top as a human readable record e.g. for release builds. (albeit adding an extra step into the process to create it) but I feel the real difference here would be if we were able to make a SHA work as input to our automation.

Maybe the title for this issue is not accurate.
the goal for this ticket is to make it configurable for both tag and SHA1. From pure git perspective, there is no difference between a tag or a SHA1 both treated as gitref.
The only limitation lives in the implementation of git plugin:

checkout works fine with 3 types: branch tag SHA1
library only works with 2 types: branch and tag

so, we will be able to pass in tag and SHA1 to temurin-build repo and ci-jenkins-pipeline if we finish this issue.

I think the "library" changes very infrequently, so I think being able to specifyt a SHA for BUILD_REF, and a tag for LIBRARY_REF, should be sufficient for what @sxa refers to

I think the "library" changes very infrequently, so I think being able to specifyt a SHA for BUILD_REF, and a tag for LIBRARY_REF, should be sufficient for what @sxa refers to

Yes I agree.
For the test I am doing now, I only use SHA for temurin-build and ci-jenkins-pipeline, As for helper repo, I use a branch.
In my PR, it is stated the former two support all there types, but the later one has the limitation.

Testing https://ci.adoptopenjdk.net/job/build-scripts/job/openjdk20-pipeline/88/console after code merged.
so far looks fine

a small set of platforms
on jdk20
change parameters in openjdk20-pipeline
keep using releaseType as Nightly for small set of AQA tests
set SHA for buildReference (which points to the current master's commit)
set SHA for ciReference (which points to the current mastser's commit)
set "master" for helperReference ( can have another round of test after making a tag on jenkins-helper repo)
unticked "userAdopBashScripts"

created tag v0.0.1 in helper
using it for testing.
Can make official tag when all tests are done

TEST3:
https://ci.adoptopenjdk.net/job/build-scripts/job/openjdk20-pipeline/90/console
smaller set of AQA (only x64 linux which finish very quick)
no other changes in the parameters
simulate what we should have for the normal nightly builds

i will have this issue closed, since we have tested it with the release dry-run and fixed most of the issue.
can create new issue later if anything is not working properly


Allow custom filters to be applied to a specific file extension

It seems that there is currently no way to apply a custom filter which resides in your own bundle using apply_to in the main config file. All filters referenced in the main assetic config are are expected to reside inside the AsseticBundle so an InvalidArgumentException is thrown here:
https://github.com/symfony/AsseticBundle/blob/master/DependencyInjection/AsseticExtension.php#L77
If you insert a workaround along this line the filter is applied without a problem. It would be great if this functionality could be implemented in the AsseticBundle since I think this is a common use case.

+1 :) - I hit this while using JMSTwigBundle

Looks like you need to name your filter assetic.filter.%s for the time being. I'll look into a fix.

@samuelvogel can you paste your config for the AsseticBundle please ?

After some experimenting I've found a workaround to do this. Specifying an arbitrary resource prevents the code from trying to load the XML definition from filters/:
# Assetic Configuration
assetic:
    debug:          %kernel.debug%
    use_controller: false
    bundles:
        - ...
    filters:
        compass:
            apply_to: "\.scss$"
        scss:
            apply_to: "\.scss$"
        jstemplate:
            resource: 'assetic.xml' # workaround for assetic to accept our filter
            apply_to: "\.tmpl$"
        jsmodule:
            resource: 'assetic.xml' # ...
            apply_to: "\.js$"
        cssrewrite: ~

Is there any work going on with this issue?

In case anyone had the same issue as me, note that if you're adding settings into config.yml and using the "reference any old XML file" trick, your filter may not be picked up until you clear your Symfony cache and do a "hard-refresh" (or cache-clear) in your browser.


I have implemented Shadow Views in Android with CardView equivalent, should I send pull request?

I think not having Shadow support for Android React Native lower than lollipop is not acceptable, so I made my shadow view today.
I am not really using CardView or support library things.
I have extracted RoundRectDrawableWithShadow.java  Drawable & set as background for ReactViewGroups.
Tested with settings corner Radius & shadow Radius, as well as margin & paddings.
Also tested both iOS + Android compatible (for iOS would be using the default style syntax)
It could be used like this:
<CoreShadowView cornerRadius={4} shadowRadius={4} style={[{backgroundColor: '#FFFFFF'}]}>
                <Text>D. 完全知道</Text>
</CoreShadowView>

Next, I will implement my own Rounded Image View for Android as my client projects need it, which is also embarrassingly not supported.

Hey. Thanks for your work.
cc @mkonicek
About rounded image view, what are you trying to achieve? Does a image with border radius not work for you?

Should be working , but I don't know why my  in Android build does not clip images inside the borderRadius bounds. Is it also occurring on your builds?

@VansonLeung Yes, directly setting border radius doesn't work, but it works when you wrap it in a View with same border radius

how to achieve this @VansonLeung ?
can you tell how to extract that class to be implemented in react-native?
thanks!

Closing this since elevation has been available on Android for quite some time.

@VansonLeung - those are some pretty looking screenshots :) as @satya164 pointed out, I think this can all be done with the elevation prop, please correct us if we are wrong

Yes, should be able to close now. The intent of this PR was just to cater Android 4.0+ devices shadow views.

@VansonLeung I am trying to implement the shadow views for Android 4.0+. Is it possible for the feature to be made into an npm module.

I think yes, but it consists of a new Android Module of files and I need to figure out how to publish it.

@VansonLeung - you can check out https://github.com/brentvatne/react-native-linear-gradient and https://github.com/chirag04/react-native-mail for some simple examples of modules for React Native

@satya164  Elevation only available on Android 5.X What are possibilities for Android 4.X ?

@jr-k  I have implemented CardView for react-native with elevation, that support android(All version) and iOS. Let me know is it help you or not. https://github.com/Kishanjvaghela/react-native-cardview

Wow very cool @Kishanjvaghela thank you !!

@Kishanjvaghela this not supporting in "react-native": "0.46.4", getting an error

@VansonLeung Does cornerRadius={4} shadowRadius={4} work for Android? I tired in Android 6.0, but didn't work. Could you suggest anything for this?


Transparency effects to tools like run and peek

Description of the new feature / enhancement
Please add transparency effect to various tools like run and peek so that they look fluent with Windows 11.
Scenario when this would be used?
Aesthetics improvement to make the tools feel more fluid.
Supporting information
No response

We are already using Mica for Peek and Acrylic for Run (there is however a known issue where this is not working at all times, and reboot is required)

I have tried rebooting, but it still does not work. Could I have overlooked
some setting?
I have attached a screenshot of the run dialog box for your reference.
[image: image.png]
On Wed, 31 Jan 2024 at 20:05, Niels Laute @.***> wrote:

We are already using Mica for Peek and Acrylic for Run (there is however
a known issue where this is not working at all times, and reboot is
required)
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/31182#issuecomment-1919228930,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZF6QBT2T2CSLXC3UGYHEBDYRJJC5AVCNFSM6AAAAABCQVZNRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJZGIZDQOJTGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

I solved the problem. The solution was to run PowerToys with administrator
privileges.
Thank you!
On Thu, 1 Feb 2024 at 04:46, Aadi Goyal @.***> wrote:

I have tried rebooting, but it still does not work. Could I have
overlooked some setting?
I have attached a screenshot of the run dialog box for your reference.
[image: image.png]
On Wed, 31 Jan 2024 at 20:05, Niels Laute @.***>
wrote:

We are already using Mica for Peek and Acrylic for Run (there is however
a known issue where this is not working at all times, and reboot is
required)
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/31182#issuecomment-1919228930,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZF6QBT2T2CSLXC3UGYHEBDYRJJC5AVCNFSM6AAAAABCQVZNRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJZGIZDQOJTGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

I solved the problem. The solution was to run PowerToys with administrator privileges. Thank you!
…
On Thu, 1 Feb 2024 at 04:46, Aadi Goyal @.> wrote: I have tried rebooting, but it still does not work. Could I have overlooked some setting? I have attached a screenshot of the run dialog box for your reference. [image: image.png] On Wed, 31 Jan 2024 at 20:05, Niels Laute @.> wrote: > We are already using Mica for Peek and Acrylic for Run (there is however > a known issue where this is not working at all times, and reboot is > required) > > — > Reply to this email directly, view it on GitHub > <#31182 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AZF6QBT2T2CSLXC3UGYHEBDYRJJC5AVCNFSM6AAAAABCQVZNRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJZGIZDQOJTGA > . > You are receiving this because you authored the thread.Message ID: > @.***> >

This did not work.

I was able to use it, but occasionally the texture becomes opaque.
Restarting the PowerToys window solves the issue. It is not very stable
right now.
On Wed, 28 Feb 2024 at 23:33, Maxwell @.***> wrote:

I solved the problem. The solution was to run PowerToys with administrator
privileges. Thank you!
… <#m_-5068539160102914815_>
On Thu, 1 Feb 2024 at 04:46, Aadi Goyal @.> wrote: I have tried
rebooting, but it still does not work. Could I have overlooked some
setting? I have attached a screenshot of the run dialog box for your
reference. [image: image.png] On Wed, 31 Jan 2024 at 20:05, Niels Laute @.>
wrote: > We are already using Mica for Peek and Acrylic for Run (there is
however > a known issue where this is not working at all times, and reboot
is > required) > > — > Reply to this email directly, view it on GitHub > <#31182
(comment)
https://github.com/microsoft/PowerToys/issues/31182#issuecomment-1919228930>,

or unsubscribe >
https://github.com/notifications/unsubscribe-auth/AZF6QBT2T2CSLXC3UGYHEBDYRJJC5AVCNFSM6AAAAABCQVZNRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJZGIZDQOJTGA
. > You are receiving this because you authored the thread.Message ID: >
@.***> >

This did not work.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/31182#issuecomment-1969549932,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZF6QBRC6Y42SFQGHV7WS63YV5WQ7AVCNFSM6AAAAABCQVZNRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRZGU2DSOJTGI
.
You are receiving this because you authored the thread.Message ID:
@.***>


How can you tell if you have an ARM vs Classic CMG

Consider if an Engineer or Consultant goes into a new environment. Is there any way to tell which type is set up? Can we link an article or give a note? #NWSCUGHackadoc
(Admin edit, adding metadata to link with target article)

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

ID: 7fb371d2-b1f1-68ca-ed95-abf37e3ecf28
Version Independent ID: cd7fc055-b430-3a4a-1002-c69087f30714
Content: Set up cloud management gateway - Configuraton Manager
Content Source: sccm/core/clients/manage/cmg/setup-cloud-management-gateway.md
Product: configuration-manager
GitHub Login: @aczechowski
Microsoft Alias: aaroncz

Thanks @AhzX, good idea. I think this would work well in the linked article, Modify a CMG section.

Added a new tip. Closing this issue.

Thanks Aaron, I’d just say add a note with the old designation as well… “Azure Service Manager” ?
From: Aaron Czechowski<EMAIL_ADDRESS>Sent: Tuesday, October 2, 2018 9:21 AM
To: MicrosoftDocs/SCCMdocs<EMAIL_ADDRESS>Cc: Jim Walker<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/SCCMdocs] How can you tell if you have an ARM vs Classic CMG (#611)
Closed #611https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2FSCCMdocs%2Fissues%2F611&data=02|01|jim.walker%40paccar.com|2a7dc32d08bf441c26ce08d628831b4a|e201abf9c5a343f88e29135d4fe67e6b|0|0|636740940910062216&sdata=qihcZZcM4CWIavKZ8Dr8Hl%2FiiEYqj2ACxZ7JH37sczw%3D&reserved=0.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2FSCCMdocs%2Fissues%2F611%23event-1879796889&data=02|01|jim.walker%40paccar.com|2a7dc32d08bf441c26ce08d628831b4a|e201abf9c5a343f88e29135d4fe67e6b|0|0|636740940910062216&sdata=xVrrhw28Te2UbSRR4CEKOK9XnA%2By%2FM8tvv5RcHeG7pI%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAmb5uFfOv2TYpJ-hHT-o5Yt_bybSjRFFks5ug5KHgaJpZM4Up6OX&data=02|01|jim.walker%40paccar.com|2a7dc32d08bf441c26ce08d628831b4a|e201abf9c5a343f88e29135d4fe67e6b|0|0|636740940910218463&sdata=6WDgBNYNH6Q28fDsQrtvwVc%2BjG7lEbEzGWH3fkUFFOA%3D&reserved=0.

You're right, from a search engine optimization perspective, should add the term "Azure Service Manager" for clarity and completeness. That's how we generally refer to the classic deployment. Reopening the issue.

This issue is closed because I made a tweak to the article for this feedback. The change should publish live later today.


Why is over-riding field always considered "bad practice"?

The lints claim:
Overriding fields is almost always done unintentionally. Regardless, it is a bad practice to do so.
I have a data structure like:
class DefaultColorTheme {
  final Color bg = Colors.white;
  final Color fg = Colors.black;
  final Color accent = Colors.orange;
  final bool isDark = false;
}

class GreenColorTheme extends DefaultColorTheme {
  @override
  final Color accent = Colors.green;
}

I don't see any bad practice here. I don't want to use methods as these are final fields so it would be a waste of cpu cycles. I just want to sub-class and change one default.
I don't want to use constructor defaults because sub-classing constructor args is overly verbose, work to maintain, and error prone when defaults change. They also don't play well with non-consts.

This all depends on how clever the compiler is.
The reason this particular approach is frowned upon is that it is potentially wasteful.
The class GreenColorTheme has all the fields of DefaultColorTheme, and one more.
That means that an instance of GreenColorTheme has memory allocated to hold the final Color accent = Color.orange; value, and another memory slot to hold the green accent, even though everyone will only access the green one.
If you know that a ColorTheme will differ in accents, you'd instead define the class as
class ColorTheme {
  final Color background;
  final Color foreground;
  final Color accent;
  final bool isDark;
  const ColorTheme({this.background = Colors.white, this.foreground = Colors,black,
      this.accent = Colors.orange, this.isDark = false);
}

Then you can declare GreenColorScheme as
class GreenColorTheme extends ColorTheme {
   GreenColorTheme() : super(accent: Color.green);

or, more likely, not even introduce a new class:
const greenColorTheme = ColorTheme(accent: Color.green);

That is, if the accent varies, makes it a parameter, instead of introducing a new field which shadows the existing field.
(That said, a smart compiler could compile final Color accent = Colors.orange; into the same code as Color get accent => Colors.orange; if it thinks it can save space in that way. Most likely it won't, because it costs more code.)

Interesting, I didn't realize the compiler worked like that and the workarounds seem fine. Thx!

Another comment on the initial example, I'd prefer this:
class DefaultColorTheme {
  Color get bg => Colors.white;
  Color get fg => Colors.black;
  Color get accent => Colors.orange;
  bool get isDark => false;
}

class GreenColorTheme extends DefaultColorTheme {
  @override
  Color get accent => Colors.green;
}

The point is that you don't use any affordances offered by instance variables, so you might as well just write the getter directly, and then you avoid storing any data that doesn't need to be stored per object anyway. Of course, you also avoid wasting storage by overriding an instance variable such that it is never used, because you don't introduce the instance variable in the first place.
If you aren't going to have many (say, millions) of instances of ColorTheme, then @lrhn's proposal may be preferable: You do pay for the per-object storage, but a compiler may be able to detect that the value of each instance variable can be obtained by a simple memory read (rather than by an invocation of a getter).
So it's a time/space trade-off, as usual.

Interesting, thanks for the info. I did think of that, but since ColorTheme would be accessed extremely frequently I thought there would be some extra cost to using a method vs a field, also it would prevent these instances from being final or const.

Thanks! It is perfectly fine to have a getter in a class with a const constructor, and that getter can perform arbitrary computations. But it does matter whether you will call a getter or perform a raw memory read, if you want to obtain the value frequently.


strange datasets for Yue Chinese corpus

From the official site , the Yue Chinese dataset should have 2.2KB data.
7 training instances is obviously not a right number.
As I can read Yue Chinese, I call tell the last instance is definitely not something that would appear on Common Crawl.
And even if you don't read Yue Chinese, you can tell the first six instance are problematic.
(It is embarrassing, as the 7 training instances look exactly like something from a pornographic novel or flitting messages in a chat of a dating app)
It might not be the problem of the huggingface/datasets implementation, because when I tried to download the dataset from the official site, I found out that the zip file is corrupted.
I will try to inform the host of OSCAR corpus later.
Awy a remake about this dataset in huggingface/datasets is needed, perhaps after the host of the dataset fixes the issue.
the post is copied from a post about the same issue on huggingface's repository: https://github.com/huggingface/datasets/issues/2396

I have been working on Cantonese (aka Yue Chinese) NLP for a long time. Are there any guides on how I can help?

We don't have a guide yet (but we'll be working on it), but improving the quality of the corpus in a specific language can be done by either finding good resources for the training of language identification models, or validating the output data by manually inspecting the corpus.
These two tasks are the most direct way of helping to build better corpora in the end, but obviously if you have other suggestions, ressources that could be useful to improve data quality, do tell! 😁


Remove version: OpenJS.NodeJS.LTS version 16.17.1

Replaced by another Pull Request
Microsoft Reviewers: Open in CodeFlow

https://www.github.com/microsoft/winget-pkgs/pull/143386#issuecomment-1986949152 [Policy] Needs-Author-Feedback

Close with reason: See discussion in above linked issue;


Update default runtime to Node 16

As Node 16 is now the new default at GitHub Actions in hosted runners and Node 12 reached EOL April 2022 this action should run with Node 16 by default.
Similar changes were implemented e.g. for codecov-action, checkout or setup-java.

+1.

+1

+1

The default runtime was updated to Node16 with https://github.com/ScaCap/action-surefire-report/pull/101. A marketplace release will come shortly.
Thanks for the heads-up and sorry for the delay!

@renatoabreu11 Thank you for the effort!


Allow to specify a URL fragment for canned queries

Canned queries are very useful to direct users to prepared data and views. I like to use them with charts using datasette-vega a lot, because people get a direct impression at first glance.
datasette-vega doesn't show up by default though, and users have to click through to it. Also, datasette-vega does not always guess the best way to render columns correctly though, so it would be nice if I could specify a URL fragment in my canned queries to make sure people see what I want them to see.
My current workaround is to include a fragement link in description_html and ask people to reload the page, like here, which is a bit hacky.

Interesting. So this would take effect exclusively on pages that link to the queries, which I think just means this page: https://latest.datasette.io/fixtures
How about this for the design: there's a new optional key in the metadata configuration for a query called "fragment" - used like this:
{
    "databases": {
        "fixtures": {
            "queries": {
                "neighborhood_search": {
                    "sql": "\nselect neighborhood, facet_cities.name, state\nfrom facetable\n    join facet_cities\n        on facetable.city_id = facet_cities.id\nwhere neighborhood like '%' || :text || '%'\norder by neighborhood;\n",
                    "title": "Search neighborhoods",
                    "description_html": "<b>Demonstrating</b> simple like search",
                    "name": "neighborhood_search",
                    "fragment": "sql-format"
                }
            }
        }
    }
}

Because of the "fragment": "sql-format" bit there the link to that query from https://latest.datasette.io/fixtures would be to https://latest.datasette.io/fixtures/neighborhood_search#sql-format.
Does that cover what you need here? Have I missed anything?

That would be perfect!


Crashes while rebuilding Mappings in the database.

I am getting this error after the latest update.
Database update detected, rebuilding...

Rebuilding Database!

Posts (33153/33153)             [####################] Done in 377ms
Urls (175457/175457)            [####################] Done in 623ms
Tags (77505/77505)              [####################] Done in 409ms
Mappings (633453/633453)        [####################] Done in 1.26s
Mappings (614400/610626)        [####################]
/mnt/HDD/Home/Documents/Linux/git-clones/Hybooru/node_modules/pg-protocol/src/parser.ts:369
      name === 'notice' ? new NoticeMessage(length, messageValue) : new DatabaseError(messageValue, length, name)
                                                                    ^
error: duplicate key value violates unique constraint "mappings_pkey"
    at Parser.parseErrorMessage (/mnt/HDD/Home/Documents/Linux/git-clones/Hybooru/node_modules/pg-protocol/src/parser.ts:369:69)
    at Parser.handlePacket (/mnt/HDD/Home/Documents/Linux/git-clones/Hybooru/node_modules/pg-protocol/src/parser.ts:188:21)
    at Parser.parse (/mnt/HDD/Home/Documents/Linux/git-clones/Hybooru/node_modules/pg-protocol/src/parser.ts:103:30)
    at Socket.<anonymous> (/mnt/HDD/Home/Documents/Linux/git-clones/Hybooru/node_modules/pg-protocol/src/index.ts:7:48)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Socket.Readable.push (node:internal/streams/readable:234:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

I have tried removing the hybooru database and starting from scratch.
I have tried nodejs 18 lts and nodejs 19.
None of these steps helped.

I got the same problem so here what I think.
This happen because

both of your tag service have same tag in it
or
you have more that one tag service

BUT here how I to fix it (for now)

in configs.json
at "tags"
edit "services": null, to "services": ["your tag service go here"],
but this come at cost of you can only use tag service that you specify
so not a long term solution

I got the same problem so here what I think. This happen because
* both of your tag service have same tag in it
  or

* you have more that one tag service

BUT here how I to fix it (for now)
* in `configs.json`

* at `"tags"`

* edit `"services": null,` to `"services": ["your tag service go here"],`
  but this come at cost of you can only use tag service that you specify
  so not a long term solution

Thanks, this works.
I'd much rather be able to use all my tag services. I'll keep the issue open for now.

Fixed in v1.7.0


Detect plugins based on .flutter-plugins-dependencies; avoid refreshing twice in iOS/MacOS

Closes https://github.com/flutter/flutter/issues/157391.
Two small but interconnected changes here:

Update hasPlugins to use the presence of .flutter-plugins-dependencies, not .flutter-plugins
Update processPodsIfNeeded to rely on the implicit refreshPluginsList provided by FlutterCommand.

Based on https://github.com/flutter/flutter/pull/157393/files#r1811810540 this will make iOS add-to-app framework stop being generated (sorry I didn't think it all through before I said to go for this, @matanlurey)

I'm not familiar with this command or workflow - is there a way to either (a) make the command that triggers this trigger the pub flow (that would refresh the plugin lists) or (b) explicitly call refreshPluginsList in that workflow (versus unconditionally in processPodsIfNeeded)?

One workaround if we don't want to land this - I could hardcode processPodsIfNeeded to always exclude .flutter-plugins from being generated (which is why I was fixing this to begin with). I don't believe that would cause any problems (only the Android embedder seems to still handle that file), but I want to give you both options.

I'm not familiar with this area. Let me read up a bit and I'll loop back on the things I was tagged on! :)

I could hardcode processPodsIfNeeded to always exclude .flutter-plugins from being generated (which is why I was fixing this to begin with)

I vote this. I meant to ask why it running twice (which is bad) is related to moving off the deprecated .flutter-plugins file.

Sounds good, thanks for the discussion!
I reassigned https://github.com/flutter/flutter/issues/157391 and will open a smaller scope PR for processPodsIfNeeded.


Sidebar bottom magnet

Great software!! Thank you.
1 Issue is that settings and dev tool are usually pinned from bottom up, while everything else (overview etc.) is listed from the top to bottom.
I noticed, once i installed, everything is listed top to bottom.
Correct me if I'm wrong.
All the best

Hi @domensnuderl,
Check the Notes section after the configuration in [the documentation] (https://github.com/elchininet/custom-sidebar) :)
Regards


feature: shebang banner

Use rolloup.output.banner to add shebang header into bundle. Resolves #338
Changes

add --bin flag
if bin is specified in package.json, output with shebang header

not sure why it's failed with node 12 + macOS, I'm currently using those as my local development env and installation + tests are passed locally.. 😂

not sure why it's failed with node 12 + macOS, I'm currently using those as my local development env and installation + tests are passed locally.. 😂

got it, thanks for clarifying @agilgur5

got it, thanks for clarifying @agilgur5

@agilgur5 is that ok to use rollup-plugin-preserve-shebang to implement this feature? I can file another PR for it if the idea is acceptable for you

@agilgur5 is that ok to use rollup-plugin-preserve-shebang to implement this feature? I can file another PR for it if the idea is acceptable for you

@huozhi unfortunately that will run into the same issue, it won't fix the index.js file. You might notice from the codebase/repo that TSDX actually used it at one point (before it was partially removed).
The optimal solution is a good bit more complicated as it requires a nuanced Rollup plugin and refactoring several internals. I have a branch that does it, but haven't gotten around to testing it or prioritizing it (mostly because of issues written in my current status)

@huozhi unfortunately that will run into the same issue, it won't fix the index.js file. You might notice from the codebase/repo that TSDX actually used it at one point (before it was partially removed).
The optimal solution is a good bit more complicated as it requires a nuanced Rollup plugin and refactoring several internals. I have a branch that does it, but haven't gotten around to testing it or prioritizing it (mostly because of issues written in my current status)

understood, manually generating index.js of cjs bundle is definitely a blocker for that solution. thanks for your patient explanation! 🙏

understood, manually generating index.js of cjs bundle is definitely a blocker for that solution. thanks for your patient explanation! 🙏


Fix SIM300 to take Python constants into account

SIM300 currently doesn't take Python constants into account when looking for Yoda conditions, this PR fixes that behavior.
# Errors
YODA == age  # SIM300
YODA > age  # SIM300
YODA >= age  # SIM300

# OK
age == YODA
age < YODA
age <= YODA

Ref: https://github.com/home-assistant/core/pull/86793

Just to confirm: I think this is a deviation from flake8-simplify's behavior, so we'd be knowingly extending the rule to some new cases -- is that correct?

I don't know, I've not used it. Is the goal to be bug-by-bug compatible with upstream?
If that is the case, this rule would already be wrongly implemented, as the upstream comparison only supports equality (==):
https://github.com/MartinThoma/flake8-simplify/blob/d3cb9556a5255969f83a8329df8f635da41f595d/flake8_simplify/rules/ast_compare.py#L81
../Frenck

Nope! We deviate from upstream in some cases. I just try to do so intentionally, so I want to know when we're making an opinionated change.
Let me just run this over a few large codebases and see how it looks.

Ok cool -- this seems reasonable to me! (I pushed a tweak to extract to a separate helper, and use the Expr directly rather than the string pulled from the source code -- hope that's fine.)
This'll go out tonight, probably, assuming there's enough stuff to justify a release.

Sure thanks! 👍

Thanks for contributing!


Editor command line --doctool option stalls on generating new docs

Tested versions

Reproducible in: 4.2.2.stable [15073afe3], 4.3.rc [3e0c10d39]

System information
Godot v4.3.rc (3e0c10d39) - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 with Max-Q Design (NVIDIA; <IP_ADDRESS>8) - AMD Ryzen 9 4900HS with Radeon Graphics (16 Threads)
Issue description
When running the editor with the --doctool option from the command line, the program loads the docs and erases the old docs, but it stalls for >1 hour on "Generating new docs...". I assume this is a long-running operation, but the wait time seems excessively long, and there is no indication of progress.
I was looking into updating some class reference documentation by following this guide, but it didn't mention how long the doctool is expected to run or if there were any required build options for the doctool to work.
Steps to reproduce

Clone the Godot repository
Build with scons .
Run .\bin\godot.windows.editor.x86_64.exe --doctool
Wait...

Minimal reproduction project (MRP)
N/A

.\bin\godot.windows.editor.x86_64.exe --doctool

Always use .console.exe instead of GUI one when running from command line. Most likely it does not stall, it's just not redrawing command prompt since app is detached from console and shell can't know when GUI app is finished (you can press Enter to force redaw it).

I ran .\bin\godot.windows.editor.x86_64.console.exe --doctool on the 4.3.rc [3e0c10d] version, and it's still going after over an hour. I tried pressing Enter several times, but that didn't do anything. I'll leave it running for longer to see if it's just slow. I don't know if it's supposed to create the files as it goes, but it hasn't created or modified any.

It's been running for 9 hours now with no change.

I ran the latest version (4.3.rc [3978628c6]) with gdb, and it seems to get stuck on editor/doc_tools.cpp:1599:
Ref<FileAccess> f = FileAccess::open(save_file, FileAccess::WRITE, &err);
The particular class it gets stuck on is inconsistent, and sometimes it gets partially through modifying some files.

I don't believe so. It's just on my C drive.

Yes, the editor and the console version are running but not doing anything. I will try digging into the FileAccess::open() call with gdb to see where the problem is more specifically.

Check details to see if orphan processes are running

I'm not sure how to check for orphan processes, but here is the details page:

I've isolated the stall to drivers/windows/file_access_windows.cpp:197:
f = _wfsopen((LPCWSTR)(path.utf16().get_data()), mode_string, is_backup_save_enabled() ? _SH_SECURE : _SH_DENYNO);
Interestingly, sometimes when stepping through the program with gdb, it works all the way through. That might suggest it's a concurrency issue.


Update drizzle.mdx

fix typo , did not refer to the env var
Description
Please provide a brief description of the changes introduced in this pull request.
Related Issues
Closes #<issue_number>
Checklist

[ ] My code follows the code style of this project.
[ ] I have performed a self-review of my code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have updated the documentation, if necessary.
[ ] I have added tests that prove my fix is effective or my feature works.
[ ] New and existing tests pass locally with my changes.

Screenshots (if applicable)

Additional Notes

Nice catch @yamz8, thanks!


In-depth explanation of 'visits' and 'page views' in web traffic analytics

Which Cloudflare product(s) does this pertain to?
Analytics
Subject Matter
Web Traffic Analytics: Vists/Page views
Content Location
https://support.cloudflare.com/hc/en-us/articles/360037684251-Understanding-Cloudflare-Site-Analytics#5r6cSJB0I9QPTk65qrmf5a currently exists which very briefly mentions what visits and page views are, but in rather vague terms (the dash also has limited explanations for these both, but also rather vague).
I imagine it'd be better under https://developers.cloudflare.com/analytics/ with a new 'Web Traffic Analytics' section (not to be confused with 'Web Analytics' which is different).
Additional information
The dashboard says that a 'Page view' is 'A page loaded in a browser.'. The linked help article says it is 'a successful HTTP response with a content-type of HTML', which is very different. Clarification on what exactly determines a page view would be much appreciated (does it look for known browser UAs, etc.?).
For 'Visits', both give a similar explanation of a user visiting the site from somewhere else, and that a visit can consist of multiple page views. Clarification on how exactly page views are grouped into a single visit would be appreciated.

@MattIPv4 thank for your comments. We'll follow up on this with an internal ticket.

Any updates on the ticket?


Doesn't pass environment variables

Function getenv("HOME") returns empty string when application is launched via target debugging.
CMakeTools 0.7.4 (it worked on 0.7.3)
VSCode 1.7.1

I'm not able to reproduce the issue. Do you have anything in your debugConfig?

Platform: OSX, llvm 3.9.0
I have a such settings only:
{
"cmake.buildDirectory": "${workspaceRoot}/../build",
"cmake.experimental.enableTargetDebugging": true
}

So, this is what I have investigated at the moment.

Running the target without "debugConfig" generates default launch configuration. This configuration is launched with empty environment. May be, because of absence of "environment" variable, needed for "cppdbg". But I am using other debugger.
But the main problem for me is not well formed (for 0.7.4) debugConfig string

Instead of:
"cmake.debugConfig": {
"all": {
"request": "launch",
"type": "lldb",
"env": {"QT_PLUGIN_PATH": "/Users/admin/Qt/5.5/clang_64/plugins"}
}
}
I should use:
"cmake.debugConfig": {
"request": "launch",
"type": "lldb",
"env": {"DYLD_IMAGE_SUFFIX": "_debug"}
}

At the moment, I've only got in support for the cpptools debugging engine from Microsoft, which wants environment variables in environment rather than env, and they are passed in a different format (a list of objects rather than a single object of key-value paris). Are you trying to use a different debugger?
Also, yes. I did change the format of the debugConfig.

Yes, I am using "LLDB Debugger" extension. It works for me after fixing my debugConfig.
But default debug configuration (cppdbg) is still launched with missing environment variables.

I should probably make it clearer that target debugging is specifically written against cpptools. So, if you fix up the debugConfig, is it all working well?

It doesn't work correctly for cppdbg (lose system environment variables) and works for lldb.
Note, that lldb - is debugger extension for cpptools.

FWIW I have this exact same issue on macOS (but it works fine in Linux).
I was able to work around it by setting "externalConsole": true in my "cmake.debugConfig": { } settings section. Not ideal, maybe, but it did fix the problem for me.

It's been a while, but has anyone tried using the ${command:cmake.debugTargetProgramPath} substitution in their launch.json?

@vector-of-bool are there instructions for doing this? I don't quite understand what this means, but can give it a shot next time I'm debugging on my mac if there are more setup details.

Not quite. The substitution behavior is documented, but not often used.
Basically, for any value in launch.json, you can put ${command:<some-command>} and VSCode will call <some-command> to replace the value. This means that you can put ${command:cmake.debugTargetProgramPath} in place of the path to the executable, and VSCode will use that command to ask CMake Tools for the path to the executable.

@clangen Please find sample launch.json in the PR above, if you're still interested.

@ytimenkov thanks for the updated documentation. Unfortunately the suggestion to use a custom launch.json did not solve my particular issue -- I'm still unable to resolve environment variables (e.g. $HOME) unless I force the app to run in an external console.

Maybe issue is in cpp extension or VS code itself, or specific to Mac. Works on my Windows machine.
It might help if you provide VS version info (Click on smiley in the bottom-right corner of VS Code, then "Submit bug" and copy/paste here).

Sure. Everything should be up to date, and I have very few extensions installed:

VSCode Version: Code 1.13.0 (376c52b955428d205459bea6619fc161fc8faacf, 2017-06-08T16:34:53.678Z)
OS Version: Darwin x64 16.6.0
Extensions:

Extension
Author
Version

autotrim
NathanRidley
1.0.6

cpptools
ms-vscode
0.11.4

cmake
twxs
0.0.17

cmake-tools
vector-of-bool
0.9.7

Closed.
If this issues still persists in the current 0.11.0-beta4, feel free to reopen this one are create a new one.


[branch-2.0-fix](partial update) only report error when in strict mode partial update when finding missing rowsets during flushing memtable

Proposed changes
fix https://github.com/apache/doris/pull/28679
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run clickbench


Updated babel Plugin to no longer write in the second parameter + option to change the trigger module

an implementation of #91

@Aetherall maybe the defaultOption is a simpler approach that solves all cases.

Loadable Components v3 has been released 🎉, please give a try.
👉 https://github.com/smooth-code/loadable-components


linalg.expm() returns inconsistent results for large-norm matrices

Hi,
expm() returns strange results as matrix norm grows: numeric, Inf, NaN, numeric again
Reproducing code example:
import krypy as kp
import numpy as np
from scipy.linalg import norm, expm, expm3

n = 128
arr = np.array(range(1, 1+n * n))

M = arr.reshape(n, n)
N = M / np.sqrt(norm(M))

EM = expm(M)
EN = expm(N) #  norm of N is obviously smaller

print(EM) #  numerical
print(EN) #  Inf as expected

Output:
[[  2.42086190e+39   2.50341026e+39   2.42806249e+39 ...,   2.32850924e+39
    2.25351735e+39   2.33575891e+39]
 [ -3.68578346e+39  -3.81146405e+39  -3.69674642e+39 ...,  -3.54517572e+39
   -3.43099991e+39  -3.55621342e+39]
 [  2.55585226e+39   2.64300362e+39   2.56345437e+39 ...,   2.45834989e+39
    2.37917636e+39   2.46600382e+39]
 ...,
 [  1.90058657e+38   1.96539419e+38   1.90623966e+38 ...,   1.82808172e+38
    1.76920658e+38   1.83377335e+38]
 [  8.30179841e+38   8.58487932e+38   8.32649121e+38 ...,   7.98509583e+38
    7.72792810e+38   8.00995696e+38]
 [ -2.13660045e+38  -2.20945584e+38  -2.14295553e+38 ...,  -2.05509198e+38
   -1.98890575e+38  -2.06149039e+38]]
[[ inf  inf  inf ...,  inf  inf  inf]
 [ inf  inf  inf ...,  inf  inf  inf]
 [ inf  inf  inf ...,  inf  inf  inf]
 ...,
 [ inf  inf  inf ...,  inf  inf  inf]
 [ inf  inf  inf ...,  inf  inf  inf]
 [ inf  inf  inf ...,  inf  inf  inf]]

Scipy/Numpy/Python version information:
0.19.0 1.12.1 sys.version_info(major=3, minor=6, micro=1, releaselevel='final', serial=0)

Seems to be a bug with integer dtype inputs arrays:
 >>> M.dtype
dtype('int64')
 >>> np.isfinite(expm(M)).all()
True
 >>> np.isfinite(expm(1.0 * M)).all()
False

This probably throws off some specific part of the algorithm, so
probably easy to fix.

I poked around some and there's an integer overflow in the array multiplication here: https://github.com/scipy/scipy/blob/d2a896ff5fdb72157025f6f4385a1dd90c23426c/scipy/sparse/linalg/matfuncs.py#L416
>> a2_slice = A2[:5, :5]
[[21784, 21904, 22024, 22144, 22264],
 [52648, 53008, 53368, 53728, 54088],
 [83512, 84112, 84712, 85312, 85912],
 [114376, 115216, 116056, 116896, 117736],
 [145240, 146320, 147400, 148480, 149560]]
>> a6_slice = A6[:5, :5]
[[397753134268193355,<PHONE_NUMBER>20344330,<PHONE_NUMBER>72495305,<PHONE_NUMBER>24646280,<PHONE_NUMBER>76797255],
 [973684802859121147,<PHONE_NUMBER>63814442,<PHONE_NUMBER>68507737,<PHONE_NUMBER>73201032,<PHONE_NUMBER>077894327],
 [1549616471450048939,<PHONE_NUMBER>707284554,<PHONE_NUMBER>964520169,<PHONE_NUMBER>221755784,<PHONE_NUMBER>478991399],
 [2125548140040976731,<PHONE_NUMBER>750754666,<PHONE_NUMBER>460532601,<PHONE_NUMBER>170310536,<PHONE_NUMBER>880088471],
 [2701479808631904523,<PHONE_NUMBER>794224778,<PHONE_NUMBER>956545033,<PHONE_NUMBER>118865288,<PHONE_NUMBER>281185543]
>> a2_slice * a6_slice # sums of products of positives are negative? must be overflow
[[-553371661472422856,<PHONE_NUMBER>45425488,<PHONE_NUMBER>163273832,<PHONE_NUMBER>981122176,<PHONE_NUMBER>798970520],
 [2785197839427422136, -2369776764732820656, -7524751368893063448,5767018100656245376,<PHONE_NUMBER>96002584],
 [6123767340327267128, -5354308765811066800,<PHONE_NUMBER>760150888,<PHONE_NUMBER>331368576, -2895048936806965352],
 [-8984407232482439496, -8338840766889312944, -7693274301296186392, -7047707835703059840, -6402141370109933288],
 [-5645837731582594504,<PHONE_NUMBER>741992528,<PHONE_NUMBER>357027944, -4231698767027936640,<PHONE_NUMBER>296650392]]
>> 1.0 * a2_slice * a6_slice
[[1.69543471e+23, 1.70762125e+23, 1.71980778e+23, 1.73199431e+23, 1.74418084e+23],
 [4.15036080e+23, 4.18019298e+23, 4.21002515e+23, 4.23985733e+23, 4.26968950e+23],
 [6.60528689e+23, 6.65276471e+23, 6.70024253e+23, 6.74772034e+23, 6.79519816e+23],
 [9.06021298e+23, 9.12533644e+23, 9.19045990e+23, 9.25558336e+23, 9.32070682e+23],
 [1.15151391e+24, 1.15979082e+24, 1.16806773e+24, 1.17634464e+24, 1.18462155e+24]]

If I try a similar calculation in the repl without numpy, I get RuntimeWarning: overflow encountered in long_scalars, but I guess numpy is swallowing it. What do we usually do in that sort of case?

The input has to be cast to float/complex in expm at some point.

This is a no-repro on the current numpy and scipy master branches.

I still have this problem with numpy 1.18.2 and scipy 1.4.1.
Actually, it's even worse because even EN and EM are both infinite for me...
If I do L = M/norm(M)

@alexbovet: maybe it's just overflow? Does your matrix have eigenvalues with real part larger than ~710 (which is the point where exp overflows)?

Thanks, it's probably an overflow from expm indeed. I didn't know that expm is expected to overflow, or more precisely when it is expected to overflow.
I am using the reproducing code example from the original comment. The matrices M and N have eigenvalues with real parts larger than 710:
In [26]: np.real(eigvals(M)).max()
Out[26]: 1051363.261192096
In [27]: np.real(eigvals(N)).max()
Out[27]:<PHONE_NUMBER>106106
In [28]: np.real(eigvals(L)).max()
Out[28]: 0.8682876730877765

In my case, I managed this problem by using the scaling and squaring method mentioned here.

No, what I'm saying is that the exponential of the matrix cannot be represented in floating point at all (i.e. the infinite result from expm is correct):
>>> w, v = np.linalg.eig(N)
>>> np.sort(abs(w.real))[-3:]
array([4.26706165e-14, 2.47482626e+00, 9.55450553e+02])

so there's one eigenvalue with very large (>710) real part, and the others are of order 1. The eigenbasis is also well-conditioned so the matrix is nicely diagonalizable:
>>> np.linalg.cond(v)
531.8655069884026

Hence, the matrix exponential is approximately exp(N) =~ np.exp(w[0]) * np.outer(v[:,0], np.linalg.inv(v)[0,:]) + much smaller stuff which overflows because w[0] > 710. You can see this with by scaling the matrix down a little bit:
>>> N2 = N/8
>>> w, v = np.linalg.eig(N2)
>>> j = np.argsort(w.real)[::-1]
>>> w, v = w[j], v[:,j]
>>> approx_exp_N2 = np.exp(w[0]) * np.outer(v[:,0], np.linalg.inv(v)[0,:])
>>> (abs(approx_exp_N2 - expm(N2)) / abs(approx_exp_N2)).max()
8.223275762544036e-13

Yes you are right, sorry.
Actually, I realize that my problem is different that this issue. In my case the expm must be finite. But I have some nans that appear and these warnings:
  return np.sinh(x) / x
.../lib/python3.6/site-packages/scipy/sparse/linalg/matfuncs.py:764: RuntimeWarning: invalid value encountered in double_scalars
  return t_12 * np.exp(a) * _sinch(b)

It could be because of a division by zero. In this case, this can be dealt with the scaling/squaring technic. But I don't know if I should open a new issue? Could you tell me if you think I should? I'll edit this comment and open a new issue if you think it's a good idea.
A minimal reproducing code is:
import numpy as np
from scipy.linalg import expm, norm

L = np.array([[ 1. , -0.5, -0.5,  0. ,  0. ,  0. ,  0. ],
                      [ 0. ,  1. ,  0. , -0.5, -0.5,  0. ,  0. ],
                      [ 0. ,  0. ,  1. ,  0. ,  0. , -0.5, -0.5],
                      [ 0. ,  0. ,  0. ,  0. ,  0. ,  0. ,  0. ],
                      [ 0. ,  0. ,  0. ,  0. ,  0. ,  0. ,  0. ],
                      [ 0. ,  0. ,  0. ,  0. ,  0. ,  0. ,  0. ],
                      [ 0. ,  0. ,  0. ,  0. ,  0. ,  0. ,  0. ]])

E1 = expm(-1*L) # works fine
E2 = expm(-2000*L) # has a nan

print(E1)
print(E2)

Output:
---/lib/python3.6/site-packages/scipy/sparse/linalg/matfuncs.py:740: RuntimeWarning: overflow encountered in sinh
  return np.sinh(x) / x
---/lib/python3.6/site-packages/scipy/sparse/linalg/matfuncs.py:764: RuntimeWarning: invalid value encountered in double_scalars
  return t_12 * np.exp(a) * _sinch(b)

[[0.36787944 0.18393972 0.18393972 0.06606028 0.06606028 0.06606028 0.06606028]
 [0.         0.36787944 0.         0.31606028 0.31606028 0.   0.        ]
 [0.         0.         0.36787944 0.         0.         0.31606028   0.31606028]
 [0.         0.         0.         1.         0.         0.   0.        ]
 [0.         0.         0.         0.         1.         0.   0.        ]
 [0.         0.         0.         0.         0.         1.   0.        ]
 [0.         0.         0.         0.         0.         0.   1.        ]]

[[ 0.    0.    0.    0.25  0.25  0.25  0.25]
 [ 0.    0.   -0.    0.5   0.5   0.    0.  ]
 [ 0.    0.    0.     nan  0.    0.5   0.5 ]
 [ 0.    0.    0.    1.   -0.    0.    0.  ]
 [ 0.    0.    0.    0.    1.   -0.    0.  ]
 [ 0.    0.    0.    0.    0.    1.   -0.  ]
 [ 0.    0.    0.    0.    0.    0.    1.  ]]

doing something like:
M = -2000*L
n = max(0,int((np.log2(norm(M)))))
E22 = np.linalg.matrix_power(expm(M/(2**n)),2**n)
print(E22)

works with :
[[0.   0.   0.   0.25 0.25 0.25 0.25]
 [0.   0.   0.   0.5  0.5  0.   0.  ]
 [0.   0.   0.   0.   0.   0.5  0.5 ]
 [0.   0.   0.   1.   0.   0.   0.  ]
 [0.   0.   0.   0.   1.   0.   0.  ]
 [0.   0.   0.   0.   0.   1.   0.  ]
 [0.   0.   0.   0.   0.   0.   1.  ]]

Ok, could you open a new issue (as it's a different problem)?

thanks, created a new issue


[tests-only][full-ci] Bump core commit id to the latest upto 2022-05-25

Description
Update owncloud/core commit id to the latest up to 2022-05-25
Signed-off-by: Kiran Parajuli<EMAIL_ADDRESS>

No changelog added. Please create a changelog item based on your changes

https://drone.cernbox.cern.ch/cs3org/reva/7247/1/2

apiVersions/fileVersions.feature:481
--
3268 | apiVersions/fileVersions.feature:488
3269 | apiVersions/fileVersions.feature:496
3270 | apiVersions/fileVersions.feature:509
3271 | apiVersions/fileVersions.feature:510
3272 | apiVersions/fileVersions.feature:511
3273 | apiVersions/fileVersions.feature:512

these tests failed on:

ocis-integration-tests-5: https://drone.cernbox.cern.ch/cs3org/reva/7249/14/6
s3ng-integration-tests-9 https://drone.cernbox.cern.ch/cs3org/reva/7249/24/7

We probably need to create an issue in reva about these tests that fail in master. Then we can add to expected-failures with a link to the issue. Gradually there will be test scenarios that pass in edge but fail in master, as edge gets fixes/changes/features.

yes, I found that we may have to create multiple issues about meta in core and ocis. I will follow up on this tomorrow.


Suggestion: would Nuitka (nuitka.net) provide useful standalone binaries?

Anyone tested this yet?

Or has anyone tried cx_freeze or Pyinstaller?


Possible Metrics Issues

Training works great however when it gets to calculating metrics I receive the following errors.
`Calculating the stats for this dataset the first time
Saving them to ./dnnlib/gan-metrics/Solitude16-inception-2015-12-05-d3fec46f71c9675575ac92ce317e7832.pkl
/usr/local/lib/python3.7/dist-packages/torch/utils/data/dataloader.py:481: UserWarning: This DataLoader will create 3 worker processes in total. Our suggested max number of worker in current system is 2, which is smaller than what this DataLoader is going to create. Please be aware that excessive worker creation might get DataLoader running slow or even freeze, lower the worker number to avoid potential slowness/freeze if necessary.
cpuset_checked))
0%|          | 0/69 [00:00<?, ?it/s]
1%|1         | 1/69 [00:19<22:37, 19.96s/it]
3%|2         | 2/69 [00:20<09:20,  8.37s/it]
4%|4         | 3/69 [00:20<05:04,  4.61s/it]
6%|5         | 4/69 [00:22<03:54,  3.60s/it]
7%|7         | 5/69 [00:22<02:31,  2.37s/it]
9%|8         | 6/69 [00:22<01:41,  1.61s/it]
10%|#         | 7/69 [00:22<01:10,  1.14s/it]
12%|#1        | 8/69 [00:23<00:49,  1.23it/s]
13%|#3        | 9/69 [00:23<00:36,  1.66it/s]
14%|#4        | 10/69 [00:23<00:27,  2.18it/s]
16%|#5        | 11/69 [00:23<00:20,  2.80it/s]
17%|#7        | 12/69 [00:23<00:16,  3.48it/s]
19%|#8        | 13/69 [00:23<00:13,  4.16it/s]
20%|##        | 14/69 [00:23<00:11,  4.79it/s]
22%|##1       | 15/69 [00:23<00:09,  5.43it/s]
23%|##3       | 16/69 [00:24<00:08,  6.01it/s]
25%|##4       | 17/69 [00:24<00:08,  6.41it/s]
26%|##6       | 18/69 [00:24<00:07,  6.81it/s]
28%|##7       | 19/69 [00:24<00:07,  7.12it/s]
29%|##8       | 20/69 [00:24<00:06,  7.20it/s]
30%|###       | 21/69 [00:24<00:06,  7.41it/s]
32%|###1      | 22/69 [00:24<00:06,  7.33it/s]
33%|###3      | 23/69 [00:24<00:06,  7.39it/s]
35%|###4      | 24/69 [00:25<00:05,  7.51it/s]
36%|###6      | 25/69 [00:25<00:05,  7.67it/s]
38%|###7      | 26/69 [00:25<00:05,  7.69it/s]
39%|###9      | 27/69 [00:25<00:05,  7.60it/s]
41%|####      | 28/69 [00:25<00:05,  7.00it/s]
42%|####2     | 29/69 [00:25<00:06,  6.51it/s]
43%|####3     | 30/69 [00:25<00:05,  6.64it/s]
45%|####4     | 31/69 [00:26<00:05,  7.01it/s]
46%|####6     | 32/69 [00:26<00:05,  7.36it/s]
48%|####7     | 33/69 [00:26<00:04,  7.65it/s]
49%|####9     | 34/69 [00:26<00:04,  7.19it/s]
51%|#####     | 35/69 [00:26<00:04,  7.51it/s]
52%|#####2    | 36/69 [00:26<00:04,  7.57it/s]
54%|#####3    | 37/69 [00:26<00:04,  7.24it/s]
55%|#####5    | 38/69 [00:27<00:04,  7.36it/s]
57%|#####6    | 39/69 [00:27<00:04,  7.42it/s]
58%|#####7    | 40/69 [00:27<00:03,  7.58it/s]
59%|#####9    | 41/69 [00:27<00:03,  7.54it/s]
61%|######    | 42/69 [00:27<00:03,  7.49it/s]
62%|######2   | 43/69 [00:27<00:03,  7.61it/s]
64%|######3   | 44/69 [00:27<00:03,  7.70it/s]
65%|######5   | 45/69 [00:27<00:03,  7.80it/s]
67%|######6   | 46/69 [00:28<00:03,  7.54it/s]
68%|######8   | 47/69 [00:28<00:02,  7.54it/s]
70%|######9   | 48/69 [00:28<00:02,  7.57it/s]
71%|#######1  | 49/69 [00:28<00:02,  7.45it/s]
72%|#######2  | 50/69 [00:28<00:02,  7.38it/s]
74%|#######3  | 51/69 [00:28<00:02,  7.32it/s]
75%|#######5  | 52/69 [00:28<00:02,  6.98it/s]
77%|#######6  | 53/69 [00:29<00:02,  7.25it/s]
78%|#######8  | 54/69 [00:29<00:02,  7.16it/s]
80%|#######9  | 55/69 [00:29<00:01,  7.42it/s]
81%|########1 | 56/69 [00:29<00:01,  7.54it/s]
83%|########2 | 57/69 [00:29<00:01,  7.67it/s]
84%|########4 | 58/69 [00:29<00:01,  7.76it/s]
86%|########5 | 59/69 [00:29<00:01,  7.80it/s]
87%|########6 | 60/69 [00:29<00:01,  7.57it/s]
88%|########8 | 61/69 [00:30<00:01,  7.54it/s]
90%|########9 | 62/69 [00:30<00:00,  7.60it/s]
91%|#########1| 63/69 [00:30<00:00,  7.75it/s]
93%|#########2| 64/69 [00:30<00:00,  8.03it/s]
94%|#########4| 65/69 [00:30<00:00,  8.23it/s]
96%|#########5| 66/69 [00:30<00:00,  8.27it/s]
97%|#########7| 67/69 [00:30<00:00,  8.36it/s]
99%|#########8| 68/69 [00:30<00:00,  8.14it/s]
100%|##########| 69/69 [00:31<00:00,  3.60it/s]
100%|##########| 69/69 [00:32<00:00,  2.10it/s]
Traceback (most recent call last):
File "/content/drive/.shortcut-targets-by-id/1f-kIJloZwicV2WXZYcNGGXmZ9dyxIaeO/colab-sg3XL/stylegan_xl/dnnlib/util.py", line 45, in getattr
return self[name]
KeyError: 'truncation_psi'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train.py", line 332, in
main()  # pylint: disable=no-value-for-parameter
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "train.py", line 317, in main
launch_training(c=c, desc=desc, outdir=opts.outdir, dry_run=opts.dry_run)
File "train.py", line 104, in launch_training
subprocess_fn(rank=0, c=c, temp_dir=temp_dir)
File "train.py", line 49, in subprocess_fn
training_loop.training_loop(rank=rank, **c)
File "/content/drive/.shortcut-targets-by-id/1f-kIJloZwicV2WXZYcNGGXmZ9dyxIaeO/colab-sg3XL/stylegan_xl/training/training_loop.py", line 478, in training_loop
dataset_kwargs=training_set_kwargs, num_gpus=num_gpus, rank=rank, device=device)
File "/content/drive/.shortcut-targets-by-id/1f-kIJloZwicV2WXZYcNGGXmZ9dyxIaeO/colab-sg3XL/stylegan_xl/metrics/metric_main.py", line 43, in calc_metric
results = _metric_dictmetric
File "/content/drive/.shortcut-targets-by-id/1f-kIJloZwicV2WXZYcNGGXmZ9dyxIaeO/colab-sg3XL/stylegan_xl/metrics/metric_main.py", line 83, in fid50k_full
fid = frechet_inception_distance.compute_fid(opts, max_real=None, num_gen=50000)
File "/content/drive/.shortcut-targets-by-id/1f-kIJloZwicV2WXZYcNGGXmZ9dyxIaeO/colab-sg3XL/stylegan_xl/metrics/frechet_inception_distance.py", line 35, in compute_fid
rel_lo=0, rel_hi=1, capture_mean_cov=True, max_items=num_gen, sfid=sfid).get_mean_cov()
File "/content/drive/.shortcut-targets-by-id/1f-kIJloZwicV2WXZYcNGGXmZ9dyxIaeO/colab-sg3XL/stylegan_xl/metrics/metric_utils.py", line 331, in compute_feature_stats_for_generator
w = gen_utils.get_w_from_seed(G, batch_gen, opts.device, truncation_psi=opts.G_kwargs.truncation_psi,
File "/content/drive/.shortcut-targets-by-id/1f-kIJloZwicV2WXZYcNGGXmZ9dyxIaeO/colab-sg3XL/stylegan_xl/dnnlib/util.py", line 47, in getattr
raise AttributeError(name)
AttributeError: truncation_psi`

fixed, thanks

thank you sir!


some classes - like rounded-full dont exist / work

i've got a weird issue with tailwind and rails 7. for some reason it does not include some of the classes, for example rounded-full doesnt exist and does not render.

when using rounded-full, the image ends up square, as if it just doesnt exist:

other classes like rounded-lg or so work.
i am using:

bundle info tailwindcss-rails

tailwindcss-rails (2.0.21)
Summary: Integrate Tailwind CSS with the asset pipeline in Rails.


pyrax.cloudblockstorage.create() does not support creating volumes using an image

When upgrading a server to a different type or flavor I have run into problems on many occasion when building a new server straight from an image has failed. Rackspace supports recommendation is to create a new volume using that image prior to building the server creating a bootable volume. This is not possible from the gui, but is possible from nova. I was hoping pyrax would support this but the create method of pyrax.cloudblockstorage seems to not have an image parameter. Is there another method I should be using? If not, any chance this is planned in a future version?
Example of nova command:
nova volume-create 100 --volume-type=SSD --display-name=BFB-test-SSD --image-id=ff228647-fd57-47fe-b42d-2b7813bb9115

There are 2 ways of building a server with a bootable volume:
Volume First
This requires pyrax 1.9.3 or newer.  1.9.3 was when the image argument was added to the create method for CBS.
cs = pyrax.cloudservers
cbs = pyrax.cloud_blockstorage

image = 'ff228647-fd57-47fe-b42d-2b7813bb9115'
vol = cbs.create('BFB-test-SSD', size=100, volume_type='SSD', image=image)
mapping = [{
    'boot_index': '0',
    'delete_on_termination': True,
    'destination_type': 'volume',
    'uuid': pyrax.utils.get_id(vol),
    'source_type': 'volume'
}]

server = cs.servers.create('BFB-test', None, 'general1-1',
                           block_device_mapping_v2=mapping)

Create volume and server together
I prefer this method, especially since some flavors require this method such as compute flavors
cs = pyrax.cloudservers

mapping = [{
   'boot_index': '0',
   'delete_on_termination': True,
   'destination_type': 'volume',
   'uuid': 'ff228647-fd57-47fe-b42d-2b7813bb9115',
   'source_type': 'image',
   'volume_size': '100',
}]

server = cs.servers.create('BFB-test', None, 'compute1-4',
                           block_device_mapping_v2=mapping)


Design the model of the graph database

http://grokbase.com/t/gg/neo4j/135w1kw5xr/storing-document-text-in-node-property-text-analysis-possible
Pour nous neo4j devrait suffire pour stocker les feedback

@pocman What kind of granularity do we need for storing scores and Karma?
User Karma: We should save all history of Karma modifications
Repo Score: We should store all detailed scoring of all users. And all change history of the meta score.
When a user votes again for a repo, it overrides its former score.
same a big texts I have concern about storing all the history in Neo. I would be much more comfortable with a SQL db for this.

@jacobtardieu http://www.thedotpost.com/2015/06/paul-dix-time-series-data-the-worst-and-best-use-case-in-distributed-databases

Here is what I think the neo4j model should look like.

As mentioned before, I also think we should keep all history of scores and karma into a SQL database such as PostgresSQL (neo won't handle time series properly)

Il manque le Karma dans les properties du score.
Il manque karma_weight du score courant

No Postgresql for the moment.


Allow user to individualize settings for each layer

To allow greater flexibility, let the user to customize settings for each layer separately. For example, the user would want to enable a setting (e.g. "Autocrop") for all layers except one. While it could be done with some workarounds (e.g. export again with autocrop disabled), they are quite inconvenient. This information should be stored somewhere in the layers/image so as to preserve it between GIMP sessions.

One way to implement this is to reuse the constraints and allow them to be applied to individual procedures. That way, a procedure will be applied to a subset of layers (from the subset given by the "global" constraints).


New sample: Delete all (non-group connected) modern SharePoint sites

Docs |
-- | --
Author | Laura Kokkarinen
Original Post | https://laurakokkarinen.com/does-it-spark-joy-powershell-scripts-for-keeping-your-development-environment-tidy-and-spotless/#delete-all-non-group-connected-modern-sharepoint-sites
Description | When you delete Office 365 groups, the modern group-connected team sites get deleted with them. The script below handles the remaining modern sites: communication sites and groupless team sites.
Keywords | SharePoint Online Office 365 Groups

@garrytrinder @waldekmastykarz ....wanted to clarify few queries..

Do we need to create new command to modify existing command o365group-remove.?
Are we looking for a command to delete all non-group connected modern sites or should allow user to pass site names are parameters?
Users would have a communication site that intentionally is not connected to office 365 group. should this command ignore such site?

CC - @sprider - FYI.

@siddharth-vaghasia this issue is about creating a script sample, like https://github.com/pnp/office365-cli/blob/master/docs/manual/docs/examples/spo/remove-custom-themes.md. If the sample as described above by @garrytrinder requires a new command or updating an existing command, then we should create a separate issue for it. Hope this clarifies it a bit.

Welcome @siddarth-vaghasia 👋🏼
Thank you for your questions, as @waldekmastykarz has mentioned, this issue is to produce a sample script for our documentation.
The idea behind the sample scripts are to take scripts built by others using PnP PowerShell and replicate the same functionality using CLI commands, in both PowerShell Core & Bash.
This approach helps us identify & document real world scenarios using the CLI, which we hope will help increase the usage of the CLI but also identify any potential gaps in functionality of our current commands, in this case we will raise new issues to track
If we can’t replicate the script due to missing functionality, then we can raise new issues to cover that and place this issue on hold until the missing functionality is implemented.

Thanks @waldekmastykarz and @garrytrinder .... Now I understood concept of sample script.... I was able to make same script work with CLI commands... also tested on my dev tenant....please check is this something we are looking for?
`$sparksjoy = "Cat Lovers United", "Extranet", "Hub"
$sites = o365 spo site classic list -o json |ConvertFrom-Json
$sites = $sites | where {  $.template -eq "SITEPAGEPUBLISHING#0" -or $.template -eq "STS#3" -and -not ($sparksjoy -contains $_.Title)}
if ($sites.Count -eq 0) { break }
$sites | Format-Table Title, Url, Template
Read-Host -Prompt "Press Enter to start deleting (CTRL + C to exit)"
$progress = 0
$total = $sites.Count
foreach ($site in $sites)
{
$progress++
write-host $progress / $total":" $site.Title
write-host $site.Url
o365 spo site classic remove --url $site.Url
}
`
I might have to make it work with bash....will check if we are okay with above...

Looking good @siddharth-vaghasia 👍🏻

@garrytrinder ....do you have any suggestions for trying bash on windows machine? Unfortunately,  I don't have linux setup.....

Git for Windows comes with git bash installed I believe, failing that you could try the new Windows Terminal

@garrytrinder ...got it, trying on git bash...!!

@garrytrinder @waldekmastykarz ...would you guys be able to help with small issue with bash..I am not able to compare a site title with array value, the issue is not with cli but merely my lack of expertise with bash syntax.
As first step, I have written below to get sites which needs to be deleted.. as we need to ignore site in array, i have to compare site title(from command) with array values  in If condition....though I have a site name 'Comm Site' which is returning from json and same is present as element in array sparksjoy.. but if condition is never returning true....
`sparksjoy=("Communication site" "Comm Site" "Hub")
while read site; do
siteTitle=$(echo ${site} | jq '.Title')
echo $siteTitle
exists=true
for keep in "${sparksjoy[@]}"; do
echo $keep
if [ "$keep" == "$siteTitle" ] ; then
echo "matched"
exists=false
break
fi
done
if [ "$exists" = true ]; then
sitestoremove+=("$site")
fi
done < <(o365 spo site classic list -o json | jq -c '.[] | select(.Template == "SITEPAGEPUBLISHING#0" or .Template == "STS#3")')`
Below is screenshot of output when getting data from my dev tenant.

Hope information provided is sufficient enough and has clarity, I am trying to reach out with others also....

Please review and let me know if any changes are required..!


use npm highlight.js instead of vendoring

This fixes #15, #9

Reviewing next weekend. Thank you.

Hi @d4l3k
After reviewing the changes I've found the following issues:

First of all, the file to edit is inside the src folder. When you launch the component's demo using npm start, it is copied with styles in the project's root. I have to document this.
This change requires to use Browserify or another library to use require() in browser. I want to keep the component as standalone as possible.
Finally, this change restores the full highlight.js download (more than 100kb). Recently I did a change to prevent this: https://github.com/kcmr/code-sample/pull/14

I appreciate your contribution but I cannot approve it and merge for now. Maybe you can find another approach to make it work with Browserify that does not require to change the hightlight import inside code-sample.
Thank you.

You could provide two builds one with highlight.js compiled in and a second with highlight.js as the import. That way you'd be able to have both benefits with the same code base.
I believe most polymer3 apps use webpack anyways as that's the trend for JS frameworks. Not supporting the recommended way seems like the wrong approach.
Anyways, #17 makes this library a no-go for me so I switched to using the react highlight.js element and embedded it in my polymer3 app.

Ok, then I close the issue. I think that I can't do anything to fix the #17.
I'll investigate the two builds option.


add a test for window.open in NA

Closed in favor https://github.com/DevExpress/testcafe/pull/7932


Real class name in html

Hello all ;)
How can I display a real class in html instead
_2HHJ_852M42LCiYML0PJN6
Thx!

You should set localIdentName to [name] for production environment

@ZeroCho Thx
It was a small mistake in the codewebpack/rules/css.js
const localIndentName = 'localdentName=[name]__[local]___[hash:base64:5]';

to
const localIdentName = 'localdentName=[name]__[local]___[hash:base64:5]';

Also fixed by https://github.com/reactGo/reactGo/pull/885


#18207 Show url in navigator instead of host if connection mode is by url

Navigator should show actual information about connection host/url depends on the connection mode.

Verified


Option to not apply z-up to y-up transformations

I have some glTF files which are in z-up coordinates (i.e. they came in UTM-ish coordinates). It would be useful if there was an option to tell the converter not to apply the Z_UP_TO_Y_UP_MATRIX when generating tilesets.

fixed in commit eab595daba2f3a640693afa18c20740a1e50010e


fix self package analysis

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

Coverage data is based on head (93e6dfa) compared to base (51d74ac).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #459   +/-   ##
=======================================
  Coverage   85.09%   85.09%
=======================================
  Files          10       10
  Lines        2711     2711
=======================================
  Hits         2307     2307
  Misses        404      404

Impacted Files
Coverage Δ

src/JET.jl
71.45% <0.00%> (ø)

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

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


Fade out SSR with roughness so that it doesn't show at high roughness amounts

Fixes: https://github.com/godotengine/godot/issues/66285
This is an ad hoc change to visually match the output of ReflectionProbes, SDFGI, and VoxelGI.

Roughness: 1
Before:

After:

Roughness: 0.5
You'll notice at 0.5 roughness SSR now starts to fade out
Before:

After:

Roughness: 0.0 (no change)
Before:

After:

It may also be worth adding https://github.com/godotengine/godot/pull/56804 into the mix with this PR.

It may also be worth adding #56804 into the mix with this PR. With this PR adding roughness fadeout, the roughness cutoff from #56804 could be decreased from 0.75 to 0.7 without losing quality (or possibly even more if you're willing to have some visible artifacting on materials with medium roughness).

Thats a good idea, I'll comment on #56804 with the changes needed

Thanks!


mountpoint-s3: 1.5.0 -> 1.6.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/awslabs/mountpoint-s3/releases.
meta.description for mountpoint-s3 is: A simple, high-throughput file client for mounting an Amazon S3 bucket as a local file system.
meta.homepage for mountpoint-s3 is: https://github.com/awslabs/mountpoint-s3
Updates performed

Rust version update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.6.0 with grep in /nix/store/cvd7bvjjkda9bcri7dgj6cgsjm0if4rj-mountpoint-s3-1.6.0
found 1.6.0 in filename of file in /nix/store/cvd7bvjjkda9bcri7dgj6cgsjm0if4rj-mountpoint-s3-1.6.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
mountpoint-s3

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/cvd7bvjjkda9bcri7dgj6cgsjm0if4rj-mountpoint-s3-1.6.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A mountpoint-s3 https://github.com/r-ryantm/nixpkgs/archive/229a97457054f259ddf2c48a80f297bf403cd2cc.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/229a97457054f259ddf2c48a80f297bf403cd2cc#mountpoint-s3

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/cvd7bvjjkda9bcri7dgj6cgsjm0if4rj-mountpoint-s3-1.6.0
ls -la /nix/store/cvd7bvjjkda9bcri7dgj6cgsjm0if4rj-mountpoint-s3-1.6.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

mountpoint-s3

Maintainer pings
cc @lblasc for testing.

@NixOS/nixpkgs-merge-bot merge


Add templates field in pipelinespec

This field is for import pipeline from yaml file feature

Relate to The issue: https://github.com/rancher/rancher/issues/11675

LGTM

In the same POST API, we do import if the templates field is not empty and do the normal creation otherwise.
Removed the required restriction on fields that can be saved in the yaml file. And keep the restriction for the field projectName that is not stored in the file.

@alena1108 Updated the PR to keep yaml annotations consistent with json annotations. Moved ProjectName to upper level as well.

@gitlawr would this change require UI changes?

Yes, UI updates are ready and waiting for backend codes to be merged


Add proper type annotations

This pull request adds type annotations and updates function docstrings.

Update: Sourcery AI provided some refactorings, ive included them, for the code explainations see Advik-B/issue-metrics-type-hints#1


Add GitHub action to sort and generate text files

GitHub action that sorts the two json files and generates a plain text file for each of them automatically.
See #170

@nikolaischunk sure, added.


Session receiver fix

Fixes https://github.com/Azure/azure-sdk-for-net/issues/17388

Seems like a good change;  out of curiosity, what led to having this on an internal member of the options?

Seems like a good change; out of curiosity, what led to having this on an internal member of the options?

It used to be a public member, but then we switched to accepting sessionId as a parameter and just internalized the property.


Exception while running Query

Hi
All calls work as expected on my local machine. However, when deployed on a real server i get this error:

Status(StatusCode="Unavailable", Detail="Error starting gRPC call. HttpRequestException: The connection timed out from inactivity. (firestore.googleapis.com:443) QuicException: The connection timed out from inactivity.", DebugException="System.Net.Http.HttpRequestException: The connection timed out from inactivity. (firestore.googleapis.com:443)")

This only happens for query calls.
This is the piece of code:

	try
	{
		UserDBModel? userDBModel = null;
		CollectionReference users = db.Collection("users");
		Query query = users.WhereEqualTo("OpenID", ID).WhereEqualTo("AuthenticationType", AuthType);
		QuerySnapshot querySnapshot = await query.GetSnapshotAsync().;
		if (querySnapshot.Count > 0)
		{
			Serilog.Log.Information("Found query result!");
			DocumentSnapshot docFound = querySnapshot.Documents[0];
			userDBModel = docFound.ConvertTo<UserDBModel>();
		}
	        if (userDBModel is null) { return null; }
		Serilog.Log.Information("userDBModel is not null");
		Serilog.Log.Information("Entity: {0}", userDBModel.Entity);
		return userDBModel.Entity;
	}
	catch (Exception ex)
	{
		Serilog.Log.Information("Exception reading user from Firebase users table: {0}", ex.Message);
	}

What is weird is that the exception does not happen all the time. Sometimes it works fine and I get the response instantly but sometimes i get very long delays and then comes this exception.

We've been seeing some issues with QUIC, although we don't have a good handle on exactly what situations it comes up in. (There's one interesting aspect that we've seen with Firestore where whether it uses QUIC or not depends on the first request that's issued on a channel.)
I'd suggest trying the workaround from https://github.com/googleapis/google-cloud-dotnet/blob/main/issues/Issue12318/Workaround/Program.cs to force gRPC to use HTTP/2 instead of HTTP/3. Please could you try that and see if it solves the problem?
Given that we're seeing this more often now, we want to at least make the workaround easier to use (i.e. putting code like that into GAX behind a simple flag, instead of requiring customers to have it) - but I don't expect that to be in place very soon. (Maybe by the end of August, but unlikely to be much sooner.)

Thank you very much.
It now works perfectly. It loads instant all the times.  You are right - it did fail only the first time. If I made a refresh it was loading fine.

I'm really glad it works for you - I'll close this issue now, but I'll try to remember to add a comment when we've centralised the workaround. (I'm painfully aware that's not something you want to have in your codebase...)

FYI: Firestore v3.9.0 now uses Grpc.Net.Client v2.66.0 which uses HTTP/2.0 by default, so the workaround isn't required any more.


Generic type is ignored

Describe the bug
When trying to dump a generic type, the generic information is not included in the dump
To Reproduce
func testGeneric() {
    struct Box<T> {
        let value: T
    }

    let stringBox = Box(value: "test")

    var dump = ""
    customDump(
        stringBox,
        to: &dump
    )
    XCTAssertNoDifference(
        dump,
    """
    DumpTests.Box(value: \"test\")
    """
    )
    // Expecting the dump to be DumpTests.Box<String>(value: \"test\") instead
}

Expected behavior
Expecting the generic type information to be included in the dump i.e. DumpTests.Box<String>(value: \"test\")
Environment

swift-custom-dump version [e.g. 0.6.0]
Xcode [e.g. 13.4.1]
Swift [e.g. 5.6]
OS: [e.g. macOS 12.6]

We try to omit extraneous type information wherever possible to keep dumps compact, but I agree the generics sometimes help. Here, though, we can see that value is a String, so I suppose omitting the generic is fine. Do you have some real world examples where the generic is crucial?


Verify binary_pkg --> source_pkg mapping for violation licenses check

Now violation licenses check takes into account the tricky cases when
binary package names do not match between the binary pkg name in
receipe and binary pkg name in the actual image.
Signed-off-by: Elena Reshetova<EMAIL_ADDRESS>

I can't vouch for all details of the revised code, but overall it looks right to me, and the result is as expected, too, so +1 from me.
I suggest merging this despite the unrelated test failure on Beaglebone.

Thank you @pohly! Merging...


Add --version command

It would'be nice to also check whether protostar --version matches the tag name in test_installation.yml.

and it would be nice to show which version of cairo-lang it's running


install postgresql-17 package in test job if necessary

This opens a migration path for moving to the new version of github.com/sapcc/go-bits/easypg (sapcc/go-bits#189). The DB service on port 54321 can be used before migration, and the installed DB package can be used after migration on port 54320.

coverage: 4.146%. remained the same
when pulling 95a4ef2ef5518f6ea41e3265731b0b47171ac9cf on easypg-migration-path
into 3542f2dc685506aa8ef2846bdb7f6af5e578d601 on main.


Specify src_ip correctly in Transmits in iroh-net

Currently, the src_ip values for quinn::Transmits are indirectly set by us via our rewriting of dst_ip (and choice of dst_ip in the relay case) in the RecvMeta of poll_recv (in MagicSock).
This can cause issues, e.g. when unspecified IP addrs (<IP_ADDRESS> or ::) make it to src_ip. Windows seems more pedantic about this and errors out.
We return unspecified IP addrs, because we set dst_ip to MagicSock::normalized_local_addr.
As an interim solution, we've set it to None on windows.
I suspect this can cause issues when there's multiple IP interfaces connected to the device and the OS ends up choosing the wrong one.
Instead, we should probably figure out the interface we want to send from via netcheck.
More information in this PR comment.

I suspect this can cause issues when there's multiple IP interfaces connected to the device and the OS ends up choosing the wrong one.

The problem also arises when you have multiple addresses on the same subnet on the same interface. IIRC this is the default on Windows, and a supported configuration on Linux, due to RFC 4941 privacy extensions: a host may have both a stable EUI-64 address, a primary temporary address, and one or more old temporary addresses being turned down, all on the same WAN subnet. An IPv6-based protocol is unlikely to be able to establish a connection correctly in this environment without correctly specifying source addresses.
As a general rule of thumb, you should send from whatever address you received on, for a given path.

(I previously wrote this on discord somewhere, repeating here)
We need to store the dst_ip of the RecvMeta in the PathState and when we return the "addr_for_send" it should be returned with it so that the send path can put it in src_ip.
I'm not sure if this should be blocking for the transition to 0.11, what do you think @matheus23 ?
I do think we should do the same on all platforms regardless.

We need to store the dst_ip of the RecvMeta in the PathState and when we return the "addr_for_send" it should be returned with it so that the send path can put it in src_ip.

Yeah agreed, we should do this & do it like this.

I'm not sure if this should be blocking for the transition to 0.11, what do you think @matheus23 ?

I don't think this should not be blocking the transition.

With the current setup, iroh works on windows, both on CI and when I was testing it manually in my home network (it works on my machine (tm)).
There was a change in quinn 0.10 to quinn 0.11 behavior: Previously, quinn-udp didn't use transmit.src_ip information, in quinn 0.11 it does. The current state in the dig/quinn11 branch simply restores the quinn 0.10 behavior.
It's not ideal, but I want to minimize changes from the dig/quinn11 branch. Let's get that merged with the fewest bugs possible & the least changes. Then we can start "using newer features" of quinn 11, such as being able to supply src_ip in transmits on windows (and in general use the correct ones).