Content Security Policy Error on Build Process for config.xml Files

Hello community
I'm trying to use LSF in my single-spa project. To do so, I had to manage some changes on LSF and convert it to a microfrontend. The important ones are described here and here.  The goal is to use in-browser import maps
 to import one microfrontend in another one similar to JS import specifiers.
I have successfully managed the process and now I'm able to import LSF in my other microfrontend app and the UI renders. However now there is only one problem initializing the app state.
While initializing the state tree of mobx store, LSF uses treeToModel and runTemplate functions to generate the model using the config provided via params. The problem rises from the config param which is a XML like file (actually some JSX markups in a custom file with a .XML suffix). I manage to import these files in the Webpack build process  using raw-loader. However I got these errors on the build process using the below config.xml:
<View>
  <Image name="img" value="$image"></Image>
  <RectangleLabels name="tag" toName="img" fillOpacity="0.5" strokeWidth="5">

  </RectangleLabels>
</View>

'Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'unsafe-inline' https: localhost:*".
'  in

Code:
 with(obj) { var r=[]; r.push(image); return r.join(""); }

And the same CSP error for these lines:
with(obj) { var r=[]; r.push("Planet"); return r.join(""); }

&
 with(obj) { var r=[]; r.push("Moonwalker"); return r.join(""); }

I think the markup extraction process in the runTemplate function causes the situation:
function runTemplate(html, options) {
  if (!options) options = {};

  var re = /[$](.+)/g,
    reExp = /(^( )?(var|if|for|else|switch|case|break|{|}|;))(.*)?/g,
    code = "with(obj) { var r=[];\n",
    cursor = 0,
    result,
    match;

  var add = function(line, js) {
    js
      ? (code += line.match(reExp) ? line + "\n" : "r.push(" + line + ");\n")
      : (code += line !== "" ? 'r.push("' + line.replace(/"/g, '\\"') + '");\n' : "");
    return add;
  };

  while ((match = re.exec(html))) {
    add(html.slice(cursor, match.index))(match[1], true);
    cursor = match.index + match[0].length;
  }

  if (!html) return "";

  add(html.substr(cursor, html.length - cursor));
  code = (code + 'return r.join(""); }').replace(/[\r\t\n]/g, " ");

  try {
    result = new Function("obj", code).apply(options, [options]); // eslint-disable-line no-new-func
  } catch (err) {
    console.error("'" + err.message + "'", " in \n\nCode:\n", code, "\n");
  }

  return result;
}

It seems that new Function() call triggers the CSP error.
Do you have any suggestion for a start point to do so? Or any other idea about how to proceed?

##Update
I tried this approach without using single-spa. Again this CSP error occurs while trying to run the string code with new Function() in runTemplate() function.

Wow, that's a good catch, thank you!
This is legacy code and the only thing it is used for — var substitution in value property ("$img" -> data.imgvalue from task), so you can replace entire function runTemplate with some simple replace. And I'll fix this soon in next release.
Will it fix CSP error?


Add logging for successful and failed journeys

This mostly adds logging for failure cases, which are going to be the most interesting. Also, the referrer URL is included in those log entries.
Some considerations:

I tried to keep the flow of the endpoint code as smooth as possible w/o adding too many disruptive logging statements - I indeed tried to "confine" them to the controller private methods
In the testcases, I used regexp for the error message (rather than strings) so that I could ignore the referrer URL (which would have been nil in the test cases) and make things easier

Something I am not particularly happy about is that I tried to add logging for successful journeys in continue_to_your_idp but there were some technical issues with logging an info message there. However, we can use the existing logging to infer whether the journey was successful, so not too much of an issue.
Jira ticket https://govukverify.atlassian.net/secure/RapidBoard.jspa?rapidView=84&modal=detail&selectedIssue=HUB-275

@jakubmiarka Sorry I forgot about the commit standard - thanks for reminding me


LADP -> LADP

@tony-xia - Sorry it's taken a while to get to this (lost in my Inbox). Thanks for catching this.


Publishing new versions and getting off Alpha

Hi, I hate to be a bother as I can see you are already spread thin over many worth-while open source projects.
I was wondering what's required before a new version (alpha.2?) can be published with the webpack deprecations fixes (#147), and what you are hoping for to transition from alpha to a regular semver release.
Thanks!

@boopathi any info here?

@boopathi same question here 😄

Thanks. I made a few breaking changes I had in my todo list. Will publish it soon. No estimates yet!


Disable format button without Prettier applied

Fix #3278

The tests are failing because the "Format" Button are disabled by default, as "Prettier" is not applied, I see two ways:

Mock "isApplied" function to always return true
Click on "Prettier" in each failing test to enable the format button

Which one is better ?
cc @hdurix

@wmarques I tried to fix it with a PR on this PR: https://github.com/wmarques/jhipster-lite/pull/1
is it what you intended?

Yes indeed ! Thanks ! I'll fix merge conflict tomorrow and hope it will be good


Warning When Queue Gets Full

Start with the why:
Our customers (and we) have run into this sort of issue:

Any idea why 22 frames of depth are delivered ok followed by the camera disconnecting?

The problem in this case was that some outputs of the StereoDepth node were connected to XLink queues, but no reading from those queues took place, and they filled up. And by default the queues are configured as blocking (can't accept new packets when getting full) and this could lead to the device pipeline also blocking. No crash, but will stay stuck until the host takes action (which never happened).
Simply adding a line like d.getOutputQueue("rectified_left", 8, false) has the effect of reconfiguring the queue as non-blocking (last parameter), and old packets would be overwritten when the queue gets full.
A solution here would be to not connect/link the unused outputs in the pipeline. For example if the rectified streams are not used, remove/comment out this code:
stereo->rectifiedLeft.link(xoutRectifL->input);
stereo->rectifiedRight.link(xoutRectifR->input);
Not connecting unused outputs also allows the DepthAI device to apply some performance/memory optimizations.
So we are wondering if we report a warning in case a queue gets full (especially if set as blocking, but not only), so to help diagnose situations like this?  And maybe also make the log level configurable (or disable the log), if the logs would be frequent with a certain usage.
Move to the how:
First we gather all statistics from all queues (both device and host side):

FPS of queues
current state (blocked or not blocked) and queue behaviour blocking / non-blocking
number of messages in queue and maximum size

Then we can:

issue a warning on blocked queue if user would enable (or on by default)
present this data either visually or programmatically, where depthai-gui would visualize it and show the user a "in depth view" of what is happening with messages in the pipeline (their flow, ...)

Move to the what:
Implementation details are TBD at this point.

Something like what's described above would be amazing, but I get the sense its not currently prioritized by the team. Is there any way today for me to get at least a partial understanding of what's going on with the queues e.g. which ones are blocked, how full they are, etc.? Any API I could use to query that data myself during runtime?
I've been having issues with frozen pipelines, and am having difficulty figuring out where the pipeline is getting congested. Using depthai_pipeline_graph I can see the FPS of each node, but they all quickly go to 0, so that's not useful for troubleshooting in this case. I can also add node.warn('') messages inside of each script node, but that only gives a little visibility into the script node. So I'm looking for a way to understand what's happening with the queues.


WIP: Catalog Source weighting for dependency resolution

Description of the change:
Motivation for the change:
Reviewer Checklist

[ ] Implementation matches the proposed design, or proposal is updated to match implementation
[ ] Sufficient unit test coverage
[ ] Sufficient end-to-end test coverage
[ ] Docs updated or added to /docs
[ ] Commit messages sensible and descriptive

Work is done as part of #1682


Departure

##Note
Crashes at the moment of loading.
Describe the bug
Hi! Happy New Year! Listen, help with the mod, please. Crashes at the moment of loading the map, and throws it into the game menu, thank you very much in advance. The patch of the game coincides with your modo, on 0.4.13
Logs
Please provide a log file from the directory %USERPROFILE%\Documents\Captain of Industry\Logs

Unable to reproduce or troubleshoot based on the provided information and lack of game logs. Exact steps to reproduce, and a log file are both going to increase the chances I can identify an issue.

23-01-02_20-50-28_7877 Launching with a mod.log
23-01-02_21-14-07_8894 This magazine is run without a mod.log

Captain of Industry v0.4.13 Hi, thanks for answering. I launch with your updated mod, for the new version of the game, 1.Step-I launch the game, when the menu appears, I select any map, without even changing the settings, I reach the launch menu tab, there is a check mark of your mod, I launch the map, when loading the map, somewhere in the middle of loading there is a departure to the game menu, with the error log, I will now throw it off. " The step is all the same, I just run it by removing the check mark from the mod, and it loads completely.

I can't figure out where to get more logs, logs about the problem, except in the documents

Player.log

Failed to find location for unlock of Technology Fruit Seeds! Relaxing constraints!
here's what I read in the log file, maybe it will help you?

Hi, unfortunately I am still unable to reproduce the issue, even with the additional steps you provided.
The log indicates an issue but its not an issue I can reproduce and am not seeing with my installation to allow me to troubleshoot further.
I don't have any other reports of this issue so I can only really offer general advice that may or may not help.
Please consider using Steam to verify integrity of the COI game files, perhaps there is something in your local installation affecting mod loading. Additionally, please try deleting this mods folder entirely and downloading/reinstalling it.

Hi, thank you for your answer and help. Even though what you said didn't help me. Deleted the game, deleted all files from the game. I bet everything for a new one. I don't have a Steam version of the game, a regular repack. Unfortunately, I don't have the opportunity to buy a license. If we compare versions 0.4.12 and your mod 1.9.0, everything goes with a bang, but with 1.9.1 and 0.4.13 such troubles. I've watched a video about the new update here and a map has been added there, but I don't have it, maybe that's the point, although the version of the game is 0.4.13 at the bottom. Well, buddy, you still bow for a good mod. As they say, we have Russian health to you and good luck

And I'm writing this through a translator, sorry for the misunderstandings

Bro, thanks for the support, everything worked out. I put the license. everything is wound up and working. Thank you all the best


Add support for sbt

Description

Adds support for Scala build tool. TODO: add integration test after https://github.com/pulumi/pulumi-java/pull/790
Checklist

[x] I have added tests that prove my fix is effective or that my feature works

[x] I have updated the CHANGELOG-PENDING file with my change

[ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

Can I kindly ask for a CI run approval? I would like to know whether my PR passes on GitHub Actions. :pray:

thank you, looks promising :)

@sideeffffect amazing - this contribution is much appreciated 👍  I had some questions. Let me know if you have time to bring this over the finish line you'd like us to fix the nits and get it in.

/run-acceptance-tests

What a warm and wholesome welcome :heart: You're setting the bar for a new contributor experience for all GitHub projects.
I've added an integration test for sbt. Can we give this one more run, please?

Hello, it's failing with
Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers

Could anybody help me with this, please? :pray:

Do we need the stack-transformation2 integration test?

I can get everything else to work but this test fails like below for me. I also think we'd prefer just one integration test for stack references (in Java) unless there is a strong need to have a Scala version of the test. Would go light for now on testing Scala on every PR as the support is in its early days.

    [info] welcome to sbt 1.7.1 (Azul Systems, Inc. Java 11.0.11)
    [info] loading settings for project p-it-antons-mac-stack-tran-69f42dfc-2769180765-build from plugins.sbt ...
    [info] loading project definition from /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/project
    [info] loading settings for project p-it-antons-mac-stack-tran-69f42dfc-2769180765 from build.sbt ...
    [info] set current project to stacktransformation2 (in build file:/private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/)
    [info] compiling 1 Scala source to /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/target/scala-2.12/classes ...
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:21:6: value withOptions is not a member of object com.pulumi.Pulumi
    [error] possible cause: maybe a semicolon is missing before `value withOptions'?
    [error]     .withOptions(StackOptions.builder.resourceTransformations(App.scenario3(_)).build)
    [error]      ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:21:31: value builder is not a member of object com.pulumi.resources.StackOptions
    [error]     .withOptions(StackOptions.builder.resourceTransformations(App.scenario3(_)).build)
    [error]                               ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:22:14: missing argument list for method stack in object App
    [error] Unapplied methods are only converted to functions when a function type is expected.
    [error] You can make this conversion explicit by writing `stack _` or `stack(_)` instead of `stack`.
    [error]     .run(App.stack)
    [error]              ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:32:18: value args is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]             args.args,
    [error]                  ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:34:20: value options is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]               args.options.asInstanceOf[CustomResourceOptions],
    [error]                    ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:47:14: value args is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]         args.args match {
    [error]              ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:48:50: value resource is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]           case oldArgs: RandomStringArgs if args.resource.getResourceType == RandomStringType =>
    [error]                                                  ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:54:20: value options is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]               args.options.asInstanceOf[CustomResourceOptions],
    [error]                    ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:93:10: value args is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]     args.args match {
    [error]          ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:94:46: value resource is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]       case oldArgs: RandomStringArgs if args.resource.getResourceType == RandomStringType =>
    [error]                                              ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:100:72: value options is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]         Optional.of(new ResourceTransformation.Result(resultArgs, args.options))
    [error]                                                                        ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:110:10: value args is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]     args.args match {
    [error]          ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:111:46: value resource is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]       case oldArgs: RandomStringArgs if args.resource.getResourceType == RandomStringType =>
    [error]                                              ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:116:72: value options is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]         Optional.of(new ResourceTransformation.Result(resultArgs, args.options))
    [error]                                                                        ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:130:12: value args is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]       args.args match {
    [error]            ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:132:35: value resource is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]           val resourceName = args.resource.getResourceName
    [error]                                   ^
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:146:73: value options is not a member of com.pulumi.resources.ResourceTransformation.Args
    [error]             Optional.of(new ResourceTransformation.Result(newArgs, args.options))
    [error]                                                                         ^
    [error] 17 errors found
    [error] (Compile / compileIncremental) Compilation failed
    [error] Total time: 3 s, completed Aug 11, 2022, 4:09:34 PM

Resources:

Duration: 14s

Finishing the PR here: https://github.com/pulumi/pulumi-java/pull/791
Apologies for the broken CI, there's some remaining issues with GitHub Packages tokens that makes the workflow not check third-party contributions properly, we'll have it looked at but before that I can get your changes released through another PR.

Do we need the stack-transformation2 integration test?

Not strictly. But it felt more safe to have at least one integration test with sbt.
    [error] /private/var/folders/mb/s1jx27m10t3082fqclpgytt80000gn/T/p-it-antons-mac-stack-tran-69f42dfc-2769180765/src/main/scala/com/pulumi/example/stacktransformation2/App.scala:21:6: value withOptions is not a member of object com.pulumi.Pulumi
    [error] possible cause: maybe a semicolon is missing before `value withOptions'?
    [error]     .withOptions(StackOptions.builder.resourceTransformations(App.scenario3(_)).build)
    [error]      ^

Which version of com.pulumi:pulumi and com.pulumi:random are you using? The code is working for me with pulumi 0.5.2 and random 4.8.1... Note that build.sbt has 0.0.1 and 4.6.0 as fallback, the same way as the Maven stack-transformation has.
    [error] sbt.librarymanagement.ResolveException: Error downloading com.pulumi:pulumi:0.5.3-alpha.1660249006+c9ad54ed
    [error]   Not found
    [error]   Not found
    [error]   not found: /home/runner/.ivy2/localcom.pulumi/pulumi/0.5.3-alpha.1660249006+c9ad54ed/ivys/ivy.xml
    [error]   not found: https://repo1.maven.org/maven2/com/pulumi/pulumi/0.5.3-alpha.1660249006+c9ad54ed/pulumi-0.5.3-alpha.1660249006+c9ad54ed.pom
    [error]   not found: /home/runner/.m2/repository/com/pulumi/pulumi/0.5.3-alpha.1660249006+c9ad54ed/pulumi-0.5.3-alpha.1660249006+c9ad54ed.pom

I also see that the minimalsbt test fails because it's trying to download the testing version of pulumi from Maven Central, which obviously isn't there. Let me guess: it should not be downloading it from Maven Central, but from https://maven.pkg.github.com/pulumi/pulumi-java, am I right?

Lots of unrelated noise there; I'll get the CI fixed up by tomorrow, need https://github.com/pulumi/pulumi-java/pull/793 checked in first.

at least one integration test with sbt

The minisbt example doubles as an integration test for practical purposes so I thought that's that.

Which version of com.pulumi:pulumi

I tried 0.0.1 (which is a magic number for "built-from-source" one in here).

implemented in https://github.com/pulumi/pulumi-java/pull/791


Carousel Pagination Configuration

Currently the Recommendation and Carousel components take a pagination prop that enables the Swiperjs pagination module - this prop should be changed to also accept a Swiperjs pagination configuration.
https://swiperjs.com/swiper-api#pagination
https://github.com/searchspring/snap/blob/v0.39.2/packages/snap-preact-components/src/components/Molecules/Carousel/Carousel.tsx#L300

@korgon I was playing around with the Navigation module in swiper and it looks like it doesn't work for the same reasons as the Pagination module. Can we get this to work with the Navigation module as well so have the ability to move the navigation arrows as needed?
Also I realized that if you put prevButton and nextButton props as false (or even an empty string) the arrows still load. We should be able to opt out of these or not show them at all.


.melangeignore behaviour

I thought putting the following in .melangeignore would be enough to ignore the git directory:
.git

But it still picks files underneath the .git directory. This does work:
.git/**

But I don't think it should be necessary, isn't the first one in keeping with .dockerignore etc?

Probably will be solved by #55.


handle the case where callback is not passed by user

added a less than one liner

this was a minimal change, I see no reason why tests shouldn't pass

Landed with a test, and published.
Thanks!


Supporting horizontal scrolling

Is there any out of box way to support horizontal scrolling in place of vertical scrolling?

Sorry currently this library doesn't support. But you can always take a fork and implement it yourself. Thanks


how to use CustomPeripheral.kext

hello, I have a matebook 13 2019 laptop, my camera is 13D3:56C6，and the camera can found by macOS，by can not  use（black screen in photo booth)
can I use CustomPeripheral.kext to do something, to make camera work?

Load from VMWare or from iCloud for change your picture.. then load again to facetime..
yes you can use CustomPeripheral.kext, just edit info.plist.. my camera 1266 (0x04F2) : 46211 (0xB483) and merge to id Product & id Vendor Apple like native built-in 1452 (0x05AC) : 34057 (0x8509)

yeah， many thanks，I will try


Unable to build OR-Tools with XPRESS enabled in Windows 11

What version of OR-Tools and what language are you using?
Version: Stable
Language: Java
I want to enable XPRESS in the google-or. But Unable to do so. Getting the following error:

"C:\Users*\Documents*\Projects\or-tools\build\ALL_BUILD.vcxproj" (default target) (1)
->
"C:\Users*\Documents*\Projects\or-tools\build\ortools\graph\samples\assignment_linear
_sum_assignment.vcxproj" (default target) (14) ->
"C:\Users*\Documents*\Projects\or-tools\build_deps\scip-build\src\libscip.vcxproj" (
default target) (86) ->
"C:\Users*\Documents*\Projects\or-tools\build_deps\scip-build\scip_update_githash.vc
xproj" (default target) (88) ->
(CustomBuild target) ->
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets
(254,5): error MSB8066: Custom build for 'C:\Users*\Documents*\Projects\or-tools\buil
d\CMakeFiles\7e2c4873001c5a9dbebf1c1a1b7cc43f\scip_update_githash.rule' exited with code 1. [C:\Users\SnehasishC
har\Documents**\Projects\or-tools\build_deps\scip-build\scip_update_githash.vcxproj]

My operating system is Windows 11 64-bit. I have installed all the requirements like, Java, Maven, Visual Studio Enterprise 2022, Swig, and ProtoBuf. Also, I have XPRESS installed with a license.
I have run the following commands:
cmake -S . -B build -DBUILD_DEPS=ON -DBUILD_JAVA=ON -DUSE_XPRESS=ON -DXPRESS_ROOT=C:\xpressmp -DXPRESS_LIBRARIES=C:\xpressmp\lib -DXPRESS_INCLUDE_DIRS=C:\xpressmp\include -A x64
The above command worked fine. But when I am running the below command
cmake --build build --config Release --target ALL_BUILD -j4 -v --clean-first
I am getting the quoted error.

9.9 will have xpress precompiled.

This week hopefully.
No, cplex is (1) dead, (2) community only (meaning we do not code anything).
Happy to accept a PR to support it, but looking at the one for XPRESS done
by RTE (thanks!!!), it is not a trivial task.
Laurent Perron | Operations Research | @.*** | (33) 1 42 68 53
00
Le mer. 6 mars 2024 à 15:22, Snehasish Char @.***> a
écrit :

9.9 will have xpress precompiled.
Can you tell me when it will be released?
And also will it include CPLEX?
—
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/4114#issuecomment-1980982227,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3LONK3I7U7CF3QVS3TYW4RC3AVCNFSM6AAAAABEI6ZW4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBQHE4DEMRSG4
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


Auto header for each page

Take docisfy as an example:
With loadSidebar enabled, in docs/_sidebar.md, we have:
- Getting started
 - [Quick start](/quickstart)
 - [Writing more pages](/more-pages)
 - [Custom navbar](/custom-navbar)
 - [Cover page](/cover)

...

The first line of /quickstart is # Quick start, and the first line of /custom-navbar is # Custom navbar, etc.
It would be great if we do not have to manually write these lines, since they can be inferred from the sidebar.
It has 3 advantages at least:

Save a line in each subpage, of course.
Whenever we want to change the header for a subpage, we only need to modify it in the sidebar, not both places. And the inconsistency can be avoided naturally.

For example, at the moment, docsify has Writing more pages for /more-pages in the sidebar, while the first line of  /more-pages.md is More pages. Such inconsistency may not be desireable.

Be consistent with the behavior of Github Wiki.

In Github Wiki, a page named Changelog, which is actually a file Changelog.md, will have the header 'Changelog' automatically. We do not have to add a line # Changelog in the content. See here for an example.
If this feature is implemented, we will be able to directly use Github Wiki for docsify. For example, the md file for the link above is 'https://raw.githubusercontent.com/wiki/liulex/Snipaste-Feedback/Changelog.md'. We can alias /Changelog to it. Then we can have a Github Wiki (for community edit) and a doscify generated site at the same time!

In case I haven't made myself clear, the logic of this feature (maybe named autoHeader) is:
If loadSidebar and autoHeader are both enabled, for each link in _sidebar.md, prepend a header to the page before converting it to html.
For example, if [Quick start](/quickstart) is in _sidebar.md, we prepend a line # Quick start into /quickstart.md before we render /quickstart.md into html.

Thanks! Now I only need to maintain the wiki pages! :tada::tada::tada:

Cool. Good idea!
If you put all the pages on the wiki, you only need to configure the basePath.
$docsify = {
  basePath: 'https://raw.githubusercontent.com/wiki/liulex/Snipaste-Feedback/'
}

I tried, but I cannot alias the sidebar. The following config does not work:
$docsify = {
  alias: {
      '/zh-cn/_sidebar': 'sidebar_zh.md'
  }
}

And since the file names of Github Wiki are case-sensitive, I would still need to write some aliases after I set basePath. So I am satisfied  the current configs. 😄


Unable to roll dice from sheet or HUD after today's update.

Installed latest update.. Then during game, discovered, no one could roll any dice from character sheet nor from the hud..  Could only do /roll..   I had to turn off all and slowly add modules until I reached the one that caused the issue.
PF2 Modules.txt

The latest update has been rolled back while I troubleshoot the compatibility. You should be able to update again to get the latest stable version. Thanks for the report, it will help me track down the compatibility issue.

Hi @Geodragon9 - if you are able, would you please try this beta version of PDFoundry to see if it fixes your issue.
pdfoundry-v0.7.15b1.zip

I'll have to try when it's not in middle of a con..
On 12/5/2020 4:58:53 PM, Andrew Cuccinello<EMAIL_ADDRESS>wrote:
Hi @Geodragon9 [https://github.com/Geodragon9] - if you are able, would you please try this beta version of PDFoundry to see if it fixes your issue.
pdfoundry-v0.7.15b1.zip [https://github.com/Djphoenix719/PDFoundry/files/5648118/pdfoundry-v0.7.15b1.zip]
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub [https://github.com/Djphoenix719/PDFoundry/issues/62#issuecomment-739438188], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AKNEDT5LSNKYKJM3WFSL223STLJM3ANCNFSM4UINKXJQ].

No rush! Thanks!

Didn't test on my main server.   Since I have a game to run tonight after work..  But, I tested it on my second license that I have set up the same as the main server (had to run a PFS2 game while my wife ran an SFS game at the same time and I had her use the server)..    I was able to do dice rolls from the token hud with the pf2..
Also, has been some updates of other items since then. Including new stable release.
actually-private-rolls--v0.2;
background-volume--v1.1.2;
CautiousGamemastersPack--v0.1.6;
combat-enhancements--v0.1.3;
combatready--v1.1.10;
CommunityLighting--v0.3.1;
cycle-token-stack--v0.5.4;
dice-so-nice--v3.2.0;
dice-calculator--v0.6.5;
dd-import--v1.1;
easy-target--v2.7;
fxmaster--v0.9.9;
chat-notifications--v1.2.1;
hide-gm-rolls--v0.6.1;
colorsettings--v2.5.7;
macros-liquidsonic--v1.1.6;
_mathjs--v7.5.1-fvtt2;
pathbuilder2e-import--v0.1.12;
pf2qr--v1.4.1;
PF2e-Skills--v0.0.2;
pdfoundry--v0.7.11;
pdftofoundry--v1.5.0;
permission_viewer--v0.8;
PF2eGMScreen--v1.0.3;
pdfoundry-pf2e--v1.0.1;
pf2e-shapeshifting--v6.0.3;
pings--v1.2.10;
polyglot--v1.4.0;
popout--v1.0;
ShowDragDistance--v2.2.3;
simplefog--v0.1.11;
_sortablejs--v1.10.2-fvtt1;
TerrainLayer--v0.0.7;
furnace--v2.6.0;
tidy-ui_game-settings--v0.1.21;
token-action-hud--v0.10.2;
token-chat-link--v1.1.0;
vtta-tokenizer--v2.2.4;
token-tooltip-alt--v2.0.18;
torch--v1.1.4;
touch-vtt--v1.1.1;
turnAlert--v1.5.1;
wall-height--v3.0.0;
XCard--v0.0.5;
zoom-pan-options--v1.4.0;
On 12/5/2020 5:01:47 PM, Andrew Cuccinello<EMAIL_ADDRESS>wrote:
No rush! Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub [https://github.com/Djphoenix719/PDFoundry/issues/62#issuecomment-739438489], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AKNEDTZ7VFHNOEOJNEXO4XDSTLJXXANCNFSM4UINKXJQ].


Integration with Grafana is failing

Current Behavior
Grafana dashboard cannot be integrated with Meshery.
Screenshots/Logs
time="2022-12-12T07:56:02Z" level=error msg="rpc error: code = Canceled desc = context canceled" file=events_streamer
time="2022-12-12T07:56:02Z" level=info msg="Cluster Resources subscription stopped" app=meshery
time="2022-12-12T07:56:26Z" level=error msg="HTTP error 401: returns {"message":"Invalid Basic Auth Header","traceID":""}\n" app=meshery code=2003 probable-cause="Grafana endpoint might not be reachable from meshery.Grafana endpoint is incorrect" severity=2 short-description="Unable to connect to grafana" suggested-remediation="Check if your Grafana Endpoint is correct.Connect to Grafana from the settings page in the UI"
time="2022-12-12T07:56:53Z" level=error msg="rpc error: code = Canceled desc = context canceled" file=events_streamer
time="2022-12-12T07:57:43Z" level=error msg="rpc error: code = Canceled desc = context canceled" file=events_streamer
time="2022-12-12T07:58:22Z" level=error msg="unmarshal board: json: cannot unmarshal object into Go struct field Board.panels of type string" app=meshery code=2009 probable-cause="Grafana endpoint might not be reachable from meshery.Grafana endpoint is incorrect" severity=2 short-description="unable to get grafana boards" suggested-remediation="Check if your Grafana endpoint is correct.Connect to Grafana from the settings page in the UI"
Environment

Host OS: Ubuntu 20.04
Platform: Kubernetes
Meshery Server and Client Version: $ mesheryctl version
VERSION         GITSHA
Client  v0.6.33         8599864c4
Server  unavailable     unavailable
Unable to communicate with Meshery server.Get "http://localhost:30586/api/system/version": dial tcp <IP_ADDRESS>:30586: connect: connection refused.See https://docs.meshery.io for help getting started with Meshery

Fixed by https://github.com/meshery/meshery/pull/6693.


logging to json files w/log4j

Logging the security audit logs seem to work fine when writing to internal es.
However, when I try to change the logging to use log4j, I do not see any json logs (or any security audit logs) in the default es logs location.
Per the docs, I am using:
opendistro_security.audit.type: log4j
opendistro_security.audit.config.log4j.logger_name: audit
opendistro_security.audit.config.log4j.level: INFO

I'm using opendistroforelasticsearch version 0.9.0-1 which is based on es 6.7.1.  I'm using Amazon Linux 2 as the OS.
FWIW, if I add an entry to log4j2.properties, I get some verbose logs with a TRACE level, but it doesn't look the same as the info that gets written to internal es:
appender.audit_rolling.type = RollingFile
appender.audit_rolling.name = audit_logging_rolling
appender.audit_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_access.log
appender.audit_rolling.layout.type = PatternLayout
appender.audit_rolling.layout.pattern = [%d{ISO8601}] %m%n
appender.audit_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_access-%d{yyyy-MM-dd}.log
appender.audit_rolling.policies.type = Policies
appender.audit_rolling.policies.time.type = TimeBasedTriggeringPolicy
appender.audit_rolling.policies.time.interval = 1
appender.audit_rolling.policies.time.modulate = true

logger.audit_rolling.name = com.amazon.opendistroforelasticsearch.security
logger.audit_rolling.level = trace
logger.audit_rolling.appenderRef.audit_rolling.ref = audit_logging_rolling
logger.audit_rolling.additivity = false

Limit scope of logging just to the audit log and compare it with the entries in ES audit log. If there is a difference, post it here.

Closing due to inactivity. Please feel free to re-open and provide the requested info.


API Endpoints missing

Solder Repo Hash: e929330b379b20334b70e56e56ce9000f6dbfa74
pulled 29. Mar from master
Operating System and version: Debian 9.11
Linux main1 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux
PHP version: 7.2.24 FPM (sury)

Composer version: 1.9.1

Server type: Nginx
Type of database: MariaDB/MySQL

Type of hosting: dedicated HW

Link to the affected install's public url:  https://solder.fritten.net/ (root is public folder)

Some API Endpoints in the v7 API are missing.
The issue got visible when trying to link the solder instance to the technicplattform.
e.g.
https://solder.fritten.net/api/ delivers json output
https://solder.fritten.net/api/modpack delivers json output
https://solder.fritten.net/api/modpack/onedotfifteen delivers json output
https://solder.fritten.net/api/modpacks delivers a 404 (v8 test)
https://solder.fritten.net/api/mod delivers a 404
https://solder.fritten.net/api/verify delivers a 404
If this is caused by running the 0.8.0-beta please close this issue
Best regards

If this is caused by running the 0.8.0-beta please close this issue

There is no 0.8.0-beta. Are you perhaps referring to https://github.com/TechnicPack/solder?

Oh. Thats correct. Can this issue be moved there?
Other question is which repository should be compatible with technic plattform?

Can this issue be moved there?

Feel free to open an issue over there.

Other question is which repository should be compatible with technic plattform?

This one (https://github.com/TechnicPack/TechnicSolder).
https://github.com/TechnicPack/solder is still under development and shouldn't be used for production.


Add last refreshed time to dashboards

Add this time in two places:

The list of dashboards
On the dashboard page itself

Closed by #3638


Aggregation Integration Tests

In gitlab by @sylvaingaudan on Apr 26, 2017, 12:14

In gitlab by @sylvaingaudan on Apr 26, 2017, 14:01
added ~1918909 label

In gitlab by @sfalquier on May 3, 2017, 11:05
added ~1918367 and removed ~1918909 labels

In gitlab by @sfalquier on May 4, 2017, 09:55
added ~1918368 and removed ~1918367 labels

In gitlab by @sfalquier on May 4, 2017, 09:56
assigned to @sfalquier

In gitlab by @sfalquier on May 9, 2017, 09:15
closed

In gitlab by @sfalquier on May 9, 2017, 09:15
removed ~1918368 label


test(schematron): adapt external_scenario-param.sch to SchXslt

test/external_scenario-param.sch uses a foreign element xsl:param, but SchXslt 1.6.2 discards it.
This pr replaces xsl:param with xsl:include which is accepted by SchXslt. xsl:param is declared there.

The same change is working fine in schxslt branch.


Extended "cfy executions cancel" to include support for cancelling by deployment Id

It's annoying to have to track down an exact execution Id to cancel an execution. It's much easier to pass in a deployment Id (like the majority of other commands) and have any running execution cancelled for the deployment Id.  Now users can specify "-d" to the cancel operation as well as keeping the "-e" option.

Hi there!
Thanks for your contribution!
We are checking whether this API conflicts with upcoming improvements we're planning for the CLI.

@idanmo ping

Would have loved to see this in 3.3 but I guess it hasn't made the cut yet. Already missing the functionality

Hi,
We're planning a bunch of improvements in CLI which would hopefully be released in 3.4.
We'll definitely look into your suggestion once we'll start working on it.
Thanks!

Closed: As this PR is more than six months old without having been merged. Please reopen (and rebase if necessary) if it is still relevant.


Info about cargo-flash/cargo-embed

How do you think would it be helpful for newcomers to note in this repo or may be in discovery book about easiest way to try examples with discovery board:
cargo install cargo-flash
cargo flash --chip stm32f3 --example leds --connect-under-reset

I think it can help newcomers to to start as quick as they type only 3 commands.

This crate is just a replacement for the defunct f3 crate.
My documentation just points to the Rust Embedded and Discovery books.
What I'm trying to say is that it's not my goal to teach newbies how to run their code, because there are other resources for that.
So, I kind of feel like that is out of scope here.
There is also the probe-run tool, which I also don't use, so which do I write documentation for?
All 3?
That's not really something I want to get myself into when the community hasn't gelled on a preferred toolchain.
I'm not saying it isn't a good idea, just that it should be the realm of one of the books or a blog post.

STM32F3DISCOVERY is more about education by its nature. I just thought that it would be helpful to have short note about "Quick Start". Anyway you are an author and it is up to you.

I think it’s a wonderful idea.
I just think it belongs in the book.
I’m glad to know you’ve found the crate useful.
I sincerely hope I’ve not upset you.


Cannot install with go anymore

I used to be able to install promtool using go:
go get github.com/prometheus/prometheus/cmd/promtool

This is what I can still see in the README.md
Instead my terminal now hangs indefinitely not getting a response.
Here is my go version: go version go1.14.4 darwin/amd64

Can you please tell me in which readme you are seeing this?
Can you try:
GO111MODULE=on go get github.com/prometheus/prometheus/cmd/promtool

This README here: https://github.com/prometheus/prometheus

The above works, thanks 😄 Could you just explain real quick why GO111MODULE=on is required?

Because we have removed our vendor/ directory recently. Therefore you have to fetch the modules.
Would you want to submit a pull request to improve the readme?

For sure, with pleasure 😄 Thanks for the explanation!

Closing as #8587 was merged.

I'm still seeing an issue like this using go 1.16 and do a naive go get:
❯ go get github.com/prometheus/prometheus/cmd/promtool
go: downloading github.com/prometheus/prometheus v1.8.2
go: downloading github.com/prometheus/prometheus v2.5.0+incompatible
go: downloading github.com/Azure/go-autorest v1.1.1
go: downloading github.com/Azure/azure-sdk-for-go v0.2.0-beta
go: downloading github.com/aws/aws-sdk-go v1.37.28
go: downloading github.com/Azure/go-autorest/autorest v0.11.18
go: downloading github.com/Azure/go-autorest/autorest/adal v0.9.13
go: downloading github.com/go-kit/kit v0.10.0
go: downloading github.com/gophercloud/gophercloud v0.16.0
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5
go: downloading github.com/Azure/go-autorest v14.2.0+incompatible
go: downloading github.com/Azure/azure-sdk-for-go v52.4.0+incompatible
go: downloading github.com/miekg/dns v1.1.40
go: downloading github.com/opentracing/opentracing-go v1.2.0
go: downloading github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f
go: downloading github.com/hashicorp/consul v1.9.4
go: downloading github.com/hashicorp/consul/api v1.8.1
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/prometheus/client_golang v1.9.0
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/tsdb v0.10.0
go: downloading github.com/prometheus/common v0.18.0
go: downloading golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading google.golang.org/api v0.41.0
go: downloading github.com/samuel/go-zookeeper v0.0.0-20201211165307-7117e9ea2414
go: downloading gopkg.in/fsnotify/fsnotify.v1 v1.4.7
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading k8s.io/client-go v1.5.2
go: downloading k8s.io/api v0.20.4
go: downloading k8s.io/apimachinery v0.20.4
go: downloading k8s.io/client-go v0.20.4
go: downloading github.com/json-iterator/go v1.1.10
go: downloading golang.org/x/net v0.0.0-20210119194325-5f4716e94777
go: downloading github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: downloading github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d
go: downloading github.com/jpillora/backoff v1.0.0
go: downloading github.com/golang/protobuf v1.4.3
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/go-logfmt/logfmt v0.5.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading github.com/prometheus/procfs v0.2.0
go: downloading golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b
go: downloading github.com/Azure/go-autorest/logger v0.2.1
go: downloading github.com/Azure/go-autorest/tracing v0.6.0
go: downloading github.com/Azure/go-autorest/autorest/date v0.3.0
go: downloading github.com/form3tech-oss/jwt-go v3.2.2+incompatible
go: downloading golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
go: downloading github.com/hashicorp/go-cleanhttp v0.5.1
go: downloading github.com/hashicorp/go-hclog v0.12.0
go: downloading github.com/hashicorp/go-rootcerts v1.0.2
go: downloading github.com/hashicorp/serf v0.9.5
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading cloud.google.com/go v0.78.0
go: downloading google.golang.org/appengine v1.6.7
go: downloading github.com/gogo/protobuf v1.3.1
go: downloading github.com/google/gofuzz v1.1.0
go: downloading k8s.io/klog/v2 v2.4.0
go: downloading sigs.k8s.io/structured-merge-diff/v4 v4.0.2
go: downloading k8s.io/utils v0.0.0-20201110183641-67b214c5f920
go: downloading golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e
go: downloading github.com/oklog/ulid v1.3.1
go: downloading golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
go: downloading google.golang.org/protobuf v1.25.0
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.1
go: downloading github.com/jmespath/go-jmespath v0.4.0
go: downloading github.com/googleapis/gax-go/v2 v2.0.5
go: downloading google.golang.org/grpc v1.36.0
go: downloading go.opencensus.io v0.23.0
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/fatih/color v1.9.0
go: downloading github.com/mattn/go-colorable v0.1.6
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading github.com/googleapis/gnostic v0.4.1
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/google/go-cmp v0.5.5
go: downloading github.com/hashicorp/golang-lru v0.5.1
go: downloading github.com/golang/snappy v0.0.1
go: downloading github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da
go: downloading github.com/go-logr/logr v0.2.0
go: downloading golang.org/x/text v0.3.5
go: downloading golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
go: downloading sigs.k8s.io/yaml v1.2.0
go: downloading github.com/hashicorp/go-immutable-radix v1.0.0
go: downloading github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e
go: downloading google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb
github.com/prometheus/prometheus/cmd/promtool imports
        github.com/prometheus/prometheus/config imports
        github.com/prometheus/prometheus/discovery/config imports
        github.com/prometheus/prometheus/discovery/azure imports
        github.com/Azure/azure-sdk-for-go/arm/compute: cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/compute
github.com/prometheus/prometheus/cmd/promtool imports
        github.com/prometheus/prometheus/config imports
        github.com/prometheus/prometheus/discovery/config imports
        github.com/prometheus/prometheus/discovery/azure imports
        github.com/Azure/azure-sdk-for-go/arm/network: cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/network
go: downloading github.com/form3tech-oss/jwt-go v1.0.2

❯ go version
go version go1.16 darwin/amd64

❯ GO111MODULE=on go get github.com/prometheus/prometheus/cmd/promtool
github.com/prometheus/prometheus/cmd/promtool imports
        github.com/prometheus/prometheus/config imports
        github.com/prometheus/prometheus/discovery/config imports
        github.com/prometheus/prometheus/discovery/azure imports
        github.com/Azure/azure-sdk-for-go/arm/compute: cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/compute
github.com/prometheus/prometheus/cmd/promtool imports
        github.com/prometheus/prometheus/config imports
        github.com/prometheus/prometheus/discovery/config imports
        github.com/prometheus/prometheus/discovery/azure imports
        github.com/Azure/azure-sdk-for-go/arm/network: cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/network

But when I give it the specific commit, it works:
❯ GO111MODULE=on go get github.com/prometheus/prometheus/cmd/promtool@fcfc0e8888749cbf67aa9aac14c5d78e4c23d0a5
go: downloading github.com/prometheus/prometheus v1.8.2-0.20210311153519-fcfc0e888874
go: downloading github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15
go: downloading github.com/google/pprof v0.0.0-20210208152844-1612e9be7af6
go: downloading github.com/prometheus/exporter-toolkit v0.5.1
go: downloading gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
go: downloading go.uber.org/atomic v1.7.0
go: downloading github.com/edsrzf/mmap-go v1.0.0
go: downloading github.com/uber/jaeger-client-go v2.25.0+incompatible
go: downloading k8s.io/api v0.20.2
go: downloading k8s.io/apimachinery v0.20.2
go: downloading k8s.io/client-go v0.20.2
go: downloading golang.org/x/sync v0.0.0-20201207232520-09787c993a3a
go: downloading golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c
go: downloading github.com/Azure/azure-sdk-for-go v51.2.0+incompatible
go: downloading github.com/digitalocean/godo v1.57.0
go: downloading github.com/miekg/dns v1.1.38
go: downloading golang.org/x/oauth2 v0.0.0-20210210192628-66670185b0cd
go: downloading google.golang.org/api v0.39.0
go: downloading github.com/aws/aws-sdk-go v1.37.8
go: downloading github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210223165440-c65ae3540d44
go: downloading github.com/go-zookeeper/zk v1.0.2
go: downloading github.com/gophercloud/gophercloud v0.15.0
go: downloading github.com/docker/docker v20.10.3+incompatible
go: downloading github.com/hetznercloud/hcloud-go v1.23.1
go: downloading github.com/stretchr/testify v1.7.0
go: downloading go.uber.org/goleak v1.1.10
go: downloading golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9
go: downloading github.com/golang/snappy v0.0.2
go: downloading github.com/uber/jaeger-lib v2.4.0+incompatible
go: downloading k8s.io/klog v1.0.0
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading k8s.io/klog/v2 v2.5.0
go: downloading github.com/mitchellh/mapstructure v1.4.1
go: downloading golang.org/x/time v0.0.0-20201208040808-7e3f01d25324
go: downloading cloud.google.com/go v0.74.0
go: downloading github.com/google/go-querystring v1.0.0
go: downloading golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5
go: downloading github.com/docker/go-units v0.4.0
go: downloading github.com/docker/go-connections v0.4.0
go: downloading github.com/opencontainers/image-spec v1.0.1
go: downloading github.com/containerd/containerd v1.4.3
go: downloading github.com/docker/distribution v2.7.1+incompatible
go: downloading github.com/opencontainers/go-digest v1.0.0
go: downloading github.com/go-logr/logr v0.4.0
go: downloading github.com/google/go-cmp v0.5.4
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/sirupsen/logrus v1.6.0
go: downloading google.golang.org/grpc v1.34.0
go: downloading github.com/Microsoft/go-winio v0.4.16
go: downloading golang.org/x/tools v0.1.0
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.3
go: downloading google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d
go: downloading go.opencensus.io v0.22.5
go: downloading github.com/Azure/go-autorest/autorest/to v0.4.0
go: downloading github.com/Azure/go-autorest/autorest/validation v0.3.1
go: downloading github.com/docker/docker v1.13.1
go: downloading github.com/uber/jaeger-lib v1.5.0
go: downloading github.com/uber/jaeger-client-go v1.6.0

But @latest does not work:
github.com/prometheus/prometheus/cmd/promtool imports
        github.com/prometheus/prometheus/config imports
        github.com/prometheus/prometheus/discovery/config imports
        github.com/prometheus/prometheus/discovery/azure imports
        github.com/Azure/azure-sdk-for-go/arm/compute: cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/compute
github.com/prometheus/prometheus/cmd/promtool imports
        github.com/prometheus/prometheus/config imports
        github.com/prometheus/prometheus/discovery/config imports
        github.com/prometheus/prometheus/discovery/azure imports
        github.com/Azure/azure-sdk-for-go/arm/network: cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/network

I'm hoping someone with bit more go module knowledge can help me understand what's going on. Thanks.

Can you please try @main ?

I had the same error, but it did work using @main. I do not know much about golang, but shouldn't it use the default branch of the repository?
Not sure if the requirement for @main is for everyone or just a particularity of mine and rubbish setup. If it is the former, it might be work documenting in the README.

Similar issue here:
GO111MODULE=on go get github.com/prometheus/prometheus@main

go mod vendor
go: downloading google.golang.org/grpc v1.37.0
go: downloading github.com/aws/aws-sdk-go v1.38.35
go: downloading golang.org/x/net v0.0.0-20210505214959-0714010a04ed
go: downloading golang.org/x/oauth2 v0.0.0-20210427180440-81ed05c6b58c
go: downloading google.golang.org/genproto v0.0.0-20210429181445-86c259c2b4ab
go: downloading github.com/prometheus/common v0.23.0
go: downloading golang.org/x/sys v0.0.0-20210503173754-0981d6026fa6
go: downloading google.golang.org/api v0.46.0
go: downloading cloud.google.com/go v0.81.0
go: downloading golang.org/x/text v0.3.6
go: finding module for package github.com/prometheus/prometheus/discovery/config
go: downloading github.com/uber/jaeger-client-go v2.28.0+incompatible
go: finding module for package k8s.io/api/discovery/v1beta1
go: downloading github.com/google/pprof v0.0.0-20210504235042-3a04a4d88a10
go: downloading github.com/docker/docker v20.10.6+incompatible
go: downloading github.com/json-iterator/go v1.1.11
go: downloading github.com/uber/jaeger-lib v2.4.1+incompatible
go: found github.com/prometheus/prometheus/discovery/config in github.com/prometheus/prometheus v2.5.0+incompatible
go: downloading github.com/gophercloud/gophercloud v0.17.0
go: downloading github.com/Azure/azure-sdk-for-go v54.0.0+incompatible
go: finding module for package github.com/Azure/azure-sdk-for-go/arm/network
go: finding module for package github.com/Azure/azure-sdk-for-go/arm/compute
github.com/.... imports
        github.com/prometheus/prometheus/discovery/config imports
        github.com/prometheus/prometheus/discovery/azure imports
        github.com/Azure/azure-sdk-for-go/arm/compute: module github.com/Azure/azure-sdk-for-go@latest found (v54.2.0+incompatible), but does not contain package github.com/Azure/azure-sdk-for-go/arm/compute
github.com/.... imports
        github.com/prometheus/prometheus/discovery/config imports
        github.com/prometheus/prometheus/discovery/azure imports
        github.com/Azure/azure-sdk-for-go/arm/network: module github.com/Azure/azure-sdk-for-go@latest found (v54.2.0+incompatible), but does not contain package github.com/Azure/azure-sdk-for-go/arm/network


Running ApacheBench against empty RC1 template using kestrel results in timeout

Hi, I'm having trouble doing some simple benchmarks using ApacheBench on a project we are experimenting with.
I'm on Windows 7 with rc1-update1.
When trying to use ApacheBench the tool fails with the below message, I tried creating a new project using the empty RC1 template, this also failed.
ab -c 1 -n 100 http://localhost:5000/

Benchmarking localhost (be patient)...
Test aborted after 10 failures

apr_socket_connect(): No connection could be made because the target machine actively refused it.   (730061)

When using IISExpress from with VS it works fine. I have tried using different ports with kestrel with no luck. I have tried with the latest available RC2 builds with no luck. I tried the ab -k switch (KeepAlive) as I was told that might be the issue.
Any idea what might be causing this?

@christiansparre Are you sure the application successfully binds to port 5000? Have you tried running it as an administrator?

Yes. It's running as admin and I can get to it from a browser and PostMan etc. :)

This is how it looks :)

What if you use <IP_ADDRESS> instead of localhost? :confused:

After trying a bit more I have had success with this example: https://github.com/roydukkey/moist/tree/stackoverflow-34615917
It uses rc2-*
It is configured for http://localhost:1234 but that does not work. With http://<IP_ADDRESS>:1234 works as expected in ApacheBench, yay! :)
I still have not had success with RC1, have tried <IP_ADDRESS> also, netstat reports dnx.exe listening on the right port.
So something changed in the current RC2 builds, but I can still not make localhost work.

I'm going to dig a bit into this, from what I can see when it works I hit this method
https://github.com/aspnet/KestrelHttpServer/blob/b062f851dcb1fc9013952fe72e9a087ae36323fe/src/Microsoft.AspNetCore.Server.Kestrel/Http/TcpListenerSecondary.cs#L20
But not otherwise, have not looked at the kestrel code before so I'm a bit lost as to where it all starts. But I'll nose around a bit :)

Ok, I'm way in over my head not known a thing about how libuv works :). The only thing I have found out is that when using localhost nothing that I can track down in krestrel is called.
There seems to be some related issues around like: #601, #406 and #426

Localhost binds to [::1] right now, not <IP_ADDRESS>.
https://github.com/aspnet/KestrelHttpServer/issues/231

@Tratcher thank you, that explains it I think. At least for RC2, RC1 still does not work either way.

What if you use <IP_ADDRESS> instead of localhost? 😕 Could be worth looking at netstat -anb to see the interface it's bound to.

After having the same problem (but on port localhost:80), trying with the <IP_ADDRESS> worked for me.


where doesn't work, returns empty result

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
We typically use where to find the path of a binary.
If I use where java, it should output location of the binary, but it doesn't - it returns an empty result.
Expected behavior
PS> where java
C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe
C:\Program Files\Microsoft\jdk-<IP_ADDRESS>-hotspot\bin\java.exe

Actual behavior
PS> where java
PS>

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Microsoft Windows 10.0.22623
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals

where.exe java

You can always use where.exe java, however, get-command java or gcm java is the equivalent in PowerShell.  As noted above, if you just want the path, you can use dot notation.


token validity as Object

Hi,
is it possible to have the validity date of the token also as an Object?
Today was my first time that the token got invalid. I only realized it hours later. As Object I could send me reminders before it gets invalid.
It`s more a pull request, but I had a problem writing a pull request... something about choosing the right branch I guess.

I would appreciate that also because I currently work-around this by an iobroker cron job that evaluates the last update and notifies when the last update took place more than 24 hours ago. Needless to say, sometimes the notification comes too late...

added in master, feel free to test it. Object: info.tokenExpire

Tested, works as designed!
I've created a script that compares the current date with the "info.tokenExpire" and notifies when the expiration date is coming closer than 5 days. That way, I have enough time to refresh the token manually.
IMHO, this issue can be marked as solved. Thank you very much!


Rename SimilarToList to SimilarToPreviousValues

imo SimlarToList or SimilarToValues are better names than previous values (that's not a strong opinion though). When last I used the validator, it seemed unintuitive to pass prev_values as a param (stronger opinion).
What do you think of this?

Keep SimilarToList as the name
rename prev_values to comparison_list or comparison_values

closing - been a while, we have these on the hub submission https://hub.guardrailsai.com/validator/guardrails/similar_to_previous_values


Euro_Stat_BMI

This import covers the percentage of population with different BMI classification like ‘Obese’, ‘Underweight’ at country level and EU level broken down by Sex,Age,Educational Attainment,Income Quintile,Degree of Urbanisation,Country of Birth,Country of Citizenship and Level of activity limitation. The statistics are gathered from the European Health Interview Survey (EHIS) which provides every five years a large variety of data on health status, health determinants and health care activities.
Below are the scripts status.

[x] csv file creation
[x] mcf file creation
[x]  tmcf file creation
[x]  unit testing
[x]  linting

Closing the PR as all the euro stat scripts are reviewed under other PR(https://github.com/datacommonsorg/data/pull/701)


Generalized essentially non-hourglass control formulation

Generalized essentially non-hourglass control formulation based on volumetric-deviatoric stress decomposition.

Practice for view on GitHub
The pressure force on solid from fluid is:
Real face_wall_external_acceleration = (acc_prior_k[index_j] - acc_ave_[index_i]).dot(e_ij);
Real p_in_wall = p_k[index_j] + rho_n_k[index_j] * r_ij * SMAX(Real(0), face_wall_external_acceleration);
Real u_jump = 2.0 * (vel_k[index_j] - vel_ave_[index_i]).dot(n_[index_i]);
force += (riemann_solvers_k.DissipativePJump(u_jump) * n_[index_i] - (p_in_wall + p_k[index_j]) * e_ij) * Vol_[index_i] * contact_neighborhood.dW_ijV_j_[n];

For hydrostatic problem, riemann_solvers_k.DissipativePJump(u_jump) * n_[index_i] and  rho_n_k[index_j] * r_ij * SMAX(Real(0), face_wall_external_acceleration) are much smaller than p_k[index_j]. Neglecting these parts, the force is only related to p_k[index_j]* e_ij * Vol_[index_i] * contact_neighborhood.dW_ijV_j_[n].
The pressure of fluid particles in contact with solid particles is all about rho_f * g * H, so the force is determined by Vol_[index_i] * contact_neighborhood.dW_ijV_j_[n] * e_ij . The acceleration on the shell particle is then:
$$\frac{1}{\rho_s}\sum_jdW_{ij}V_j e_{ij}$$
Assume that shell particle distance dp_s is the same as fluid particle distance dp_f, then the relative distance between shell and fluid particles q=r_ij/h_f are almost the same.

This term will be proportional to inv_h of fluid, i.e. proportional to particle distance of fluid:
$$\sum_j dW_{ij}V_je_{ij} \propto \sum_j \frac{1}{dp_f^3}dW_1(q_{ij})dp_f^2e_{ij}=\sum_j \frac{1}{dp_f}dW_1(q_{ij})e_{ij}$$
Then the acceleration prior of the shell particle will be dependent on dp_f:
$$\frac{1}{\rho_s}\sum_jdW_{ij}V_j e_{ij} \propto \frac{1}{dp_f} \sum_j dW_1(q_{ij})e_{ij}$$
That's why when dp_f=dp_s=0.5*t=0.025, the displacement of shell becomes nearly twice that when dp_f=dp_s=0.05. Under the same conditions, the solutions change due to the changes in fluid resolution, which is surely wrong.
One way I can think of to fix the problem right now is to create a new kernel with a smoothing length of $dp_{avg} = 0.5*(dp_f+dp_s)$. The volume of a shell particle will be modified as $A_j * dp_{avg}$, instead of $A_j * t$, but the mass is still the actual mass $\rho_s * A_j * t$. Then the acceleration becomes:
$$\frac{V_i}{m_i}\sum_jdW_{ij}V_j e_{ij} \propto\frac{dp_{avg}}{rho_s*t}\frac{1}{dp_{avg}} \sum_j dW_1(q_{ij})e_{ij} \propto \frac{1}{t}$$
what do you think about this?


downgrade yeoman to speed up generator

fixes #69
Yeoman 2.0 has an open issue about slow start times.  This downgrades from 2 to 1.8.5 and restores the expected speed.

Yum!


Cannot get into landscape orientation

I cannot get the app to rotate into the landscape orientation.  I'm using version 3.7.1.  My tablet is mounted with the long side of the screen on the top and bottom.  The app opens full screen but in portrait mode.  I tried changing Settings, such as putting it into Tablet mode and changing the size, but I have not been able to get it into landscape mode, even with auto-rotate turned off and the app launcher in landscape mode.  This makes the app difficult to use, requiring me to either use it sideways or take the tablet out of the mount.  It would greatly help if the app could be used in landscape mode, even if it doesn't use the entire screen.

Same here with my tablet on the wall :-) , found a solution??


Inference is quite slow on A10

Hi the model is amazing to use but the inference speed is quite slow on an A10 GPU. I saw decent performance on A100 though.
Is there any optimisation method I can apply to speed it up ?

is the slow inference speed due to the diffusion model or the others? BTW, you should share your inference code for me to reference.

is the slow inference speed due to the diffusion model or the others? BTW, you should share your inference code for me to reference.

I'm directly using this code -
import torch
from diffusers import Transformer2DModel, PixArtSigmaPipeline

device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
weight_dtype = torch.float16

transformer = Transformer2DModel.from_pretrained(
    "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS",
    subfolder='transformer',
    torch_dtype=weight_dtype,
    use_safetensors=True,
)
pipe = PixArtSigmaPipeline.from_pretrained(
    "PixArt-alpha/pixart_sigma_sdxlvae_T5_diffusers",
    transformer=transformer,
    torch_dtype=weight_dtype,
    use_safetensors=True,
)
pipe.to(device)

prompt = "A small cactus with a happy face in the Sahara desert."
image = pipe(prompt).images[0]
image.save("./catcus.png")

Cool. And what about the inference speed?

Cool. And what about the inference speed?

On an A10, this is the avg inference speed I'm getting for various sample/step combinations -

It's strange since I can generate within 8 seconds even with V100 GPUs. Is the V100 stronger than A10?

It's strange since I can generate within 8 seconds even with V100 GPUs. Is the V100 stronger than A10?

Can you share the code that you are using? Also the hyperparameter configuration
Can we reduce it further than 8s? I'm looking for something in the range of 3-4s. Cause I optimised SDXL with Deepcache to get that performance

The inference code is the same as yours. I'm suspect if the env is different or else.
I haven't tried on the Deepcache until now. If possible, I would be really appreciate if you can Pull a request.

The inference code is the same as yours. I'd suspect if the env is different or else. I haven't tried on the Deepcache until now. If possible, I would really appreciate it if you could Pull a request.

Unfortunately, Deepcache isn't supported for Pix-Art-Sigma it seems, and only for Stable Diffusion models. I'm still linking it here -

https://www.reddit.com/r/StableDiffusion/comments/18b40hh/deepcache_accelerating_diffusion_models_for_free/
https://github.com/horseee/DeepCache

Would definitely appreciate a more optimised version of Pix-Art-Sigma cause the image quality is really superior.

The inference code is the same as yours. I'd suspect if the env is different or else. I haven't tried on the Deepcache until now. If possible, I would really appreciate it if you could Pull a request.

Unfortunately, Deepcache isn't supported for Pix-Art-Sigma it seems, and only for Stable Diffusion models. I'm still linking it here -

https://www.reddit.com/r/StableDiffusion/comments/18b40hh/deepcache_accelerating_diffusion_models_for_free/
https://github.com/horseee/DeepCache

Would definitely appreciate a more optimised version of Pix-Art-Sigma cause the image quality is really superior.

@lawrence-cj Did you get to try any optimisation techniques?

I haven't.

https://github.com/horseee/learning-to-cache/tree/main this looks pretty interesting.


[HOTFIX] Category list hover fix

Fix no ticket. I noticed a small overlap of the category gradient over the SEO Nav block. This is a quick CSS fix to it.
Test URLs:

Before: https://main--express--adobecom.hlx.page/express/templates/flyer?lighthouse=on
After: https://category-list-hover-fix--express--adobecom.hlx.page/express/templates/flyer?lighthouse=on

Codecov Report

Merging #163 (0a59d0f) into stage (74a742e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##            stage     #163   +/-   ##
=======================================
  Coverage   35.37%   35.37%
=======================================
  Files          27       27
  Lines        9489     9489
=======================================
  Hits         3357     3357
  Misses       6132     6132

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


No support for grunt cdnify.. at least please add it or suggest a workaround.

https://github.com/mhaligowski/grunt-google-cdnify/issues/12

Hi!
Thanks for filling out an issue, but it's hard to tell what you need with one sentence and a link to somewhere else.  Take a little time and fill me in on what's going on.  What's grunt cdnify? Why should we support it? What are you using it for?

@salangar I responded on the Stack Overflow question, but you're not even showing us how you're invoking ngCordova in your app.js; so it's impossible for us to tell if you've gotten the declaration working. For an example of an app that uses ngCordova, take a look at https://github.com/Jewelbots/ble-demo-app/blob/master/app/scripts/app.js#L8

Thanks ! I will have a look at it. Also, I have updated stackoverflow code.
My understanding is:
My grunt tasks (cdnify) takes into account all bower components and cdnifies (refers google cdn) for all those plugins and dependencies. How can I include ngCordova in it? It ignores it. Or I need to write a nice task that copies ngCordova to www or dist asset folder of cordova app from Anguloar folders.
Thanks,
Smitha
From: George Stocker<EMAIL_ADDRESS>Sent: Monday, May 16, 2016 5:02 PM
To: driftyco/ng-cordova
Cc: Alangar, Smitha; Mention
Subject: Re: [driftyco/ng-cordova] No support for grunt cdnify.. at least please add it or suggest a workaround. (#1255)
@salangarhttps://github.com/salangar I responded on the Stack Overflow question, but you're not even showing us how you're invoking ngCordova in your app.js; so it's impossible for us to tell if you've gotten the declaration working. For an example of an app that uses ngCordova, take a look at https://github.com/Jewelbots/ble-demo-app/blob/master/app/scripts/app.js#L8
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHubhttps://github.com/driftyco/ng-cordova/issues/1255#issuecomment-219404963
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

I am not sure, what was so confusing to close stackoverflow question.
Anyhow, let me explain:
The error I get:
Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:modulerr] Failed to instantiate module ngCordova due to:
Error: [$injector:nomod] Module 'ngCordova' is not available! You either misspelled the module name or forgot to load it.
If registering a module ensure that you specify the dependencies as the second argument.
App.js:
angular
.module(app, ['ngRoute', 'ngCookies', 'dynform', 'ngCordova'])
.config(config);
index.html:

<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/ngCordova/dist/ng-cordova.js"></script>    /*This line gets removed when i run - grunt serve*/
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="bower_components/angular-animate/angular-animate.js"></script>
<script src="bower_components/angular-aria/angular-aria.js"></script>
<script src="bower_components/angular-cookies/angular-cookies.js"></script>
<script src="bower_components/angular-resource/angular-resource.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<script src="bower_components/angular-touch/angular-touch.js"></script>
<script src="bower_components/angular-dynforms/dynamic-forms.js"></script>
<!-- endbower -->
<!-- endbuild -->

Gruntfile: (yoeman based):
// Generated on 2016-04-28 using generator-angular 0.15.1
//cwd - All src matches are relative to (but don't include) this path.
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,/}.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
// Automatically load required Grunt tasks
require('jit-grunt')(grunt, {
useminPrepare: 'grunt-usemin',
ngtemplates: 'grunt-angular-templates',
cdnify: 'grunt-google-cdn'
});
// Configurable paths for the application
var appConfig = {
app: require('./bower.json').appPath || 'app',
dist: 'www'
};
// Define the configuration for all the tasks
grunt.initConfig({
// Project settings
yeoman: appConfig,

// Watches files for changes and runs tasks based on the changed files
watch: {
  bower: {
    files: ['bower.json'],
    tasks: ['wiredep']
  },
  js: {
    files: ['<%= yeoman.app %>/scripts/{,*/}*.js'],
    tasks: ['newer:jshint:all', 'newer:jscs:all'],
    options: {
      livereload: '<%= connect.options.livereload %>'
    }
  },
  jsTest: {
    files: ['test/spec/{,*/}*.js'],
    tasks: ['newer:jshint:test', 'newer:jscs:test', 'karma']
  },
  styles: {
    files: ['<%= yeoman.app %>/styles/{,*/}*.css'],
    tasks: ['newer:copy:styles', 'postcss']
  },
  gruntfile: {
    files: ['Gruntfile.js']
  },
  livereload: {
    options: {
      livereload: '<%= connect.options.livereload %>'
    },
    files: [
      '<%= yeoman.app %>/{,*/}*.html',
      '.tmp/styles/{,*/}*.css',
      '<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
    ]
  }

},
// The actual grunt server settings
connect: {
  options: {
    port: 9000,
    // Change this to '<IP_ADDRESS>' to access the server from outside.
    hostname: 'localhost',
    livereload: 35729
  },
  livereload: {
    options: {
      open: true,
      middleware: function (connect) {
        return [
          connect.static('.tmp'),
          connect().use(
            '/bower_components',
            connect.static('./bower_components')
          ),
          connect().use(
            '/app/styles',
            connect.static('./app/styles')
          ),
          connect.static(appConfig.app)
        ];
      }
    }
  },
  test: {
    options: {
      port: 9001,
      middleware: function (connect) {
        return [
          connect.static('.tmp'),
          connect.static('test'),
          connect().use(
            '/bower_components',
            connect.static('./bower_components')
          ),
          connect.static(appConfig.app)
        ];
      }
    }
  },
  dist: {
    options: {
      open: true,
      base: '<%= yeoman.dist %>'
    }
  }
},

// Make sure there are no obvious mistakes
jshint: {
  options: {
    jshintrc: '.jshintrc',
    reporter: require('jshint-stylish')
  },
  all: {
    src: [
      'Gruntfile.js',
      '<%= yeoman.app %>/scripts/{,*/}*.js'
    ]
  },
  test: {
    options: {
      jshintrc: 'test/.jshintrc'
    },
    src: ['test/spec/{,*/}*.js']
  }
},

// Make sure code styles are up to par
jscs: {
  options: {
    config: '.jscsrc',
    verbose: true
  },
  all: {
    src: [
      'Gruntfile.js',
      '<%= yeoman.app %>/scripts/{,*/}*.js'
    ]
  },
  test: {
    src: ['test/spec/{,*/}*.js']
  }
},

// Empties folders to start fresh
clean: {
  dist: {
    files: [{
      dot: true,
      src: [
        '.tmp',
        '<%= yeoman.dist %>/{,*/}*',
        '!<%= yeoman.dist %>/.git{,*/}*'
      ]
    }]
  },
  server: '.tmp'
},

// Add vendor prefixed styles
postcss: {
  options: {
    processors: [
      require('autoprefixer-core')({browsers: ['last 1 version']})
    ]
  },
  server: {
    options: {
      map: true
    },
    files: [{
      expand: true,
      cwd: '.tmp/styles/',
      src: '{,*/}*.css',
      dest: '.tmp/styles/'
    }]
  },
  dist: {
    files: [{
      expand: true,
      cwd: '.tmp/styles/',
      src: '{,*/}*.css',
      dest: '.tmp/styles/'
    }]
  }
},

// Automatically inject Bower components into the app
wiredep: {
  app: {
    src: ['<%= yeoman.app %>/index.html'],
    ignorePath:  /\.\.\//
  },
  test: {
    devDependencies: true,
    src: '<%= karma.unit.configFile %>',
    ignorePath:  /\.\.\//,
    fileTypes:{
      js: {
        block: /(([\s\t]*)\/{2}\s*?bower:\s*?(\S*))(\n|\r|.)*?(\/{2}\s*endbower)/gi,
          detect: {
            js: /'(.*\.js)'/gi
          },
          replace: {
            js: '\'{{filePath}}\','
          }
        }
      }
  }
},

// Renames files for browser caching purposes
filerev: {
  dist: {
    src: [
      '<%= yeoman.dist %>/scripts/{,*/}*.js',
      '<%= yeoman.dist %>/styles/{,*/}*.css',
      '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
      '<%= yeoman.dist %>/styles/fonts/*'
    ]
  }
},

// Reads HTML for usemin blocks to enable smart builds that automatically
// concat, minify and revision files. Creates configurations in memory so
// additional tasks can operate on them
useminPrepare: {
  html: '<%= yeoman.app %>/index.html',
  options: {
    dest: '<%= yeoman.dist %>',
    flow: {
      html: {
        steps: {
          js: ['concat', 'uglifyjs'],
          css: ['cssmin']
        },
        post: {}
      }
    }
  }
},

// Performs rewrites based on filerev and the useminPrepare configuration
usemin: {
  html: ['<%= yeoman.dist %>/{,*/}*.html'],
  css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
  js: ['<%= yeoman.dist %>/scripts/{,*/}*.js'],
  options: {
    assetsDirs: [
      '<%= yeoman.dist %>',
      '<%= yeoman.dist %>/images',
      '<%= yeoman.dist %>/styles'
    ],
    patterns: {
      js: [[/(images\/[^''""]*\.(png|jpg|jpeg|gif|webp|svg))/g, 'Replacing references to images']]
    }
  }
},

// The following *-min tasks will produce minified files in the dist folder
// By default, your `index.html`'s <!-- Usemin block --> will take care of
// minification. These next options are pre-configured if you do not wish
// to use the Usemin blocks.
// cssmin: {
//   dist: {
//     files: {
//       '<%= yeoman.dist %>/styles/main.css': [
//         '.tmp/styles/{,*/}*.css'
//       ]
//     }
//   }
// },
// uglify: {
//   dist: {
//     files: {
//       '<%= yeoman.dist %>/scripts/scripts.js': [
//         '<%= yeoman.dist %>/scripts/scripts.js'
//       ]
//     }
//   }
// },
// concat: {
//   dist: {}
// },

imagemin: {
  dist: {
    files: [{
      expand: true,
      cwd: '<%= yeoman.app %>/images',
      src: '{,*/}*.{png,jpg,jpeg,gif}',
      dest: '<%= yeoman.dist %>/images'
    }]
  }
},

svgmin: {
  dist: {
    files: [{
      expand: true,
      cwd: '<%= yeoman.app %>/images',
      src: '{,*/}*.svg',
      dest: '<%= yeoman.dist %>/images'
    }]
  }
},

htmlmin: {
  dist: {
    options: {
      collapseWhitespace: true,
      conservativeCollapse: true,
      collapseBooleanAttributes: true,
      removeCommentsFromCDATA: true
    },
    files: [{
      expand: true,
      cwd: '<%= yeoman.dist %>',
      src: ['*.html'],
      dest: '<%= yeoman.dist %>'
    }]
  }
},

ngtemplates: {
  dist: {
    options: {
      module: app,
      htmlmin: '<%= htmlmin.dist.options %>',
      usemin: 'scripts/scripts.js'
    },
    cwd: '<%= yeoman.app %>',
    src: 'views/{,*/}*.html',
    dest: '.tmp/templateCache.js'
  }
},

// ng-annotate tries to make the code safe for minification automatically
// by using the Angular long form for dependency injection.
ngAnnotate: {
  dist: {
    files: [{
      expand: true,
      cwd: '.tmp/concat/scripts',
      src: '*.js',
      dest: '.tmp/concat/scripts'
    }]
  }
},

// Replace Google CDN references
cdnify: {
  dist: {
    html: ['<%= yeoman.dist %>/*.html']
  }
},

// Copies remaining files to places other tasks can use
copy: {
  dist: {
    files: [{
      expand: true,
      dot: true,
      cwd: '<%= yeoman.app %>',
      dest: '<%= yeoman.dist %>',
      src: [
        '*.{ico,png,txt}',
        '*.html',
        'images/{,*/}*.{webp}',
        'styles/fonts/{,*/}*.*'
      ]
    }, {
      expand: true,
      cwd: '.tmp/images',
      dest: '<%= yeoman.dist %>/images',
      src: ['generated/*']
    }, {
      expand: true,
      cwd: 'bower_components/bootstrap/dist',
      src: 'fonts/*',
      dest: '<%= yeoman.dist %>'
    }]
  },
  styles: {
    expand: true,
    cwd: '<%= yeoman.app %>/styles',
    dest: '.tmp/styles/',
    src: '{,*/}*.css'
  }
},

// Run some tasks in parallel to speed up the build process
concurrent: {
  server: [
    'copy:styles'
  ],
  test: [
    'copy:styles'
  ],
  dist: [
    'copy:styles',
    'build',
    'svgmin'
  ]
},

// Test settings
karma: {
  unit: {
    configFile: 'test/karma.conf.js',
    singleRun: true
  }
}

});
grunt.registerTask('serve', 'Compile then start a connect web server', function (target) {
if (target === 'dist') {
return grunt.task.run(['build', 'connect:dist:keepalive']);
}
grunt.task.run([
  'clean:server',
  'wiredep',
  'concurrent:server',
  'postcss:server',
  'connect:livereload',
  'watch'
]);

});
grunt.registerTask('server', 'DEPRECATED TASK. Use the "serve" task instead', function (target) {
grunt.log.warn('The server task has been deprecated. Use grunt serve to start a server.');
grunt.task.run(['serve:' + target]);
});
grunt.registerTask('test', [
'clean:server',
'wiredep',
'concurrent:test',
'postcss',
'connect:test',
'karma'
]);
grunt.registerTask('build', [
'clean:dist',
'wiredep',
'useminPrepare',
'concurrent:dist',
'postcss',
'ngtemplates',
'concat',
'ngAnnotate',
'copy:dist',
'cssmin',
'uglify',
'filerev',
'usemin',
'htmlmin'
]);
grunt.registerTask('default', [
'newer:jshint',
'newer:jscs',
'test',
'build'
]);
};
Let me know if you need any further details on this.
Thanks,
Smitha
From: George Stocker<EMAIL_ADDRESS>Sent: Monday, May 16, 2016 5:02 PM
To: driftyco/ng-cordova
Cc: Alangar, Smitha; Mention
Subject: Re: [driftyco/ng-cordova] No support for grunt cdnify.. at least please add it or suggest a workaround. (#1255)
@salangarhttps://github.com/salangar I responded on the Stack Overflow question, but you're not even showing us how you're invoking ngCordova in your app.js; so it's impossible for us to tell if you've gotten the declaration working. For an example of an app that uses ngCordova, take a look at https://github.com/Jewelbots/ble-demo-app/blob/master/app/scripts/app.js#L8
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHubhttps://github.com/driftyco/ng-cordova/issues/1255#issuecomment-219404963
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.


Simplifying Contact Info/Contact Method

In the 21 June 2023 meeting it was proposed that we change Contact/Contact Type to Contact Method/Contact Method Type.   This was generally agreed.  (A Contact is an email address/ phone number etc.)
The question was also raised why Contact Info, its parent object that contains a mailing address in separate data fields, should not itself simply be a Contact Method (e.g., mailing address, physical address, etc.)    The implication would be that address would be free entry of text as email and phone are today.
My first thought is that there is no difference between not modeling a phone number in separate fields for country code, area code, etc. than not modeling an address in its constituent fields.   Contact Info is all metadata in ADAPT.  E.g., querying ADAPT for all parties within a certain postal code is not a common agronomic use case, and even if it were, there is nothing to guarantee the address fields are filled.
As such, I recommend we collapse mailing address into a contact method and wherever Contact Info is used today we simply create a list of Contact Methods.

Below is a proposal for simplifying ContactInfo following our discussion.  Contact Info would become Contact Method, with polymorphic attributes for the type of Contact, vs. having 1 address at the top  with multiple contacts

Agreement in 5 July 2023 meeting to implement the following:

Retain a single Contact Info on each place it exists today.
Contact Info will contain a list of 0-many AddressContactMethods and a list of 0-many TelecommunicationContractMethods
Address Line 1/2 will be replaced by an open array of Address lines
Each of the address and telecommunication objects will have a type field with relevant members.


Separator triangle looks perfect on the left side but has a small gap on the right side

The gap looks just like the screenshot above: perfect on the left side, but a little bit of a gap on the right side. Is there anything that lightline can do to fix this issue or is this completely dependent on font and terminal emulator rendering?

Yes, this is rendering issue of the terminal and the font, lightline plugin cannot handle it. About the font repo link, could you send a PR for it. I can't recommend using patched fonts anyways.


Update head-script.md

[X] Is this related to documentation?
typo: Missing > at the example

Thanks, @rcapile!

sorry I made things worse.
The documentation uses >  to create a quote. It works fine in GitHub, but breaks completely at zf doc site.
https://docs.zendframework.com/zend-view/helpers/head-script/#headscript
I looking up if this a bug from mkdocs or there is something missing

ping @froschdesign
what do you think about it?

@rcapile

it seems that fenced code blocks inside a quote does not work well with mkdocs

This is not a problem of MkDocs: https://python-markdown.github.io/extensions/fenced_code_blocks/#syntax

I just find out this is a known bug with no fix in sight
https://github.com/Python-Markdown/markdown/issues/53

@rcapile

I just find out this is a known bug with no fix in sight

Unfortunately, it's not supported and not a bug.

@froschdesign do you think we can solve it somehow by separate script in our template?
As we are doing couple other things - table_fix_pipes.php, table_responsive.php, etc...

@webimpress
As workaround we can replace the backticks with the standard Markdown for code blocks (4 spaces). Then we can rewrite the HTML from:

…

to

…

Then the code can be read but without colour.

@rcapile all is working fine now :) We have made some changes in the template and fenced code blocks are working correctly. Thanks!


Alexa doesn't start

Hi,
I successfully finished Alexa and Audio setup but Alexa doesn't appear but as soon as I activate Alexa in the config the 'Wetterwarnungen' moves from the right side to the middle of the screen. Alexa doesn't also react on an voice command.

Thanks for your help

Hello, Can you please help me with how you got it to work in the first place? I followed all the instructions in this YouTube video  to set up Amazon Developer account and set up an Alexa Device. I also went through all the steps in this github rep  and this github wiki. I obtained all the codes needed (client id, secret, product id, and refresh token, etc). After I did all the steps, every time I add the config to my magic mirror configuration file the screen go black and nothing works! I tried with my credentials and without it and in both cases the result is the same. Also, I tried the config in both formats, i.e.,
{
"module": "MMM-awesome-alexa",
"position": "bottom_bar",
"config": {
"wakeWord": "Alexa",
"clientId": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_CLIENT_SECRET",
"deviceId": "YOUR_DEVICE_ID",
"refreshToken": "YOUR_REFRESH_TOKEN",
"lite": false,
"isSpeechVisualizationEnabled": false
}
}
and
{
module: "MMM-awesome-alexa",
position: "bottom_bar",
config: {
wakeWord: "Alexa",
clientId: "YOUR_CLIENT_ID",
clientSecret: "YOUR_CLIENT_SECRET",
deviceId: "YOUR_DEVICE_ID",
refreshToken: "YOUR_REFRESH_TOKEN",
lite: false,
isSpeechVisualizationEnabled: false
}
}
Can you help me figure out what I am doing wrong? this is so much appreciated.

Added documentation here on why it breaks and how to fix:
https://awesome-alexa.js.org/#/installation?id=modifying-magicmirror-electron


Possible to auto inject the necessary html?

Hi - absolutely great plugin thanks a lot!
According to https://github.com/jantimon/favicons-webpack-plugin, it's possible to let webpack also auto inject the necessary html for the generated favicons, if html-webpack-plugin is used.
Is that possible? If yes, we could add this to the instructions.

Hi! Thank you very much for your feedback.
I remember that I quickly checked this point and there was an issue because favicons-webpack-plugin was generating a lot of things including a manifest for a progressive web app. That manifest was handled by Gatsby and it caused a conflict when I tried to auto inject the necessary html.
Maybe a setting exists to make it working, so, if you want to check that point again, I would be very pleased to merge your PR :)


fix: LuaJIT on Ubuntu CI

Description
Ubuntu CI

Fixed LuaJIT build on Ubuntu's CI: now, source code is fetched from the GitHub mirror. Quoting from https://luajit.org/download.html

LuaJIT is only made available as source code from a git repository.

LuaJIT uses rolling releases. There are no release tarballs available for download.

Updated the latest Lua (PUC) version from 5.4.3 to 5.4.7;

MSVC CI

LuaInstaller was updated from v<IP_ADDRESS> to v<IP_ADDRESS>, which addressed a potential bug that could happen in the future (you can read details at v<IP_ADDRESS> release).

Thanks!


fix issue of date picker only pick local time.

fix issue of date picker only pick local time.
now it is returning GMT time, which align up with argus.
For the date time that input from URL, or as format as '-5d', it will not convert.

@cnardi-dev @saaja-sfdc


AP --> Bluesky domain username?

I saw #1150 / #1190 but I was wondering if there was anyway to have the opposite, and to be able to have (for example) the account<EMAIL_ADDRESS>from Mastodon bridged to an account on Bluesky with the username @mmatt.net
I feel like this should be as simple as just DMing (or "private mentioning") the AP user to change their DNS value to one provided by Bluesky for the bridged account, but I'm unfamiliar with how Bluesky/AT Proto handles this. Or even if it would be on Bluesky's side at all.

Yes! Totally doable. I think this is #826...?


fix: getIt hot reload Error

Description
I create any class with getIt. but where do i need to use setUp Function? When I use it inside the run() function, I get a hot reload error.

main.dart

Future<HttpServer> run(Handler handler, InternetAddress ip, int port) {
  setup();

  return serve(handler, ip, port);
}

locator.dart

import 'package:get_it/get_it.dart';
import 'package:notify/utils/env.dart';

final getIt = GetIt.instance;

void setup() {
  getIt.registerSingleton<Env>(Env());
}

Exception

Unhandled exception:
Invalid argument(s): Object/factory with  type Env is already registered inside GetIt.
#0      throwIf (package:get_it/get_it_impl.dart:7:18)
#1      _GetItImplementation._register (package:get_it/get_it_impl.dart:803:5)
#2      _GetItImplementation.registerSingleton (package:get_it/get_it_impl.dart:587:5)
#3      setup (package:notify/locator/locator.dart:7:9)
#4      run (file:///Users/tayyipguzel/Desktop/dev/personal/notify/server/main.dart:8:3)
#5      createServer (file:///Users/tayyipguzel/Desktop/dev/personal/notify/server/.dart_frog/server.dart:22:21)
#6      withHotreload.<anonymous closure> (package:shelf_hotreload/src/with_hotreload.dart:81:33)
<asynchronous suspension>

Maybe we needed a function that we could do initialization but not wrapped with the hotReload() function.

#335

A workaround is to call getIt.reset() on the first line if setup()

Thanks @tyypgzl for opening an issue!
Dart Frog now supports a custom init method. Does using it resolve this issue?
Documentation about the custom init method can be found here.

Closing this due to inactivity from original contributor. Feel free to re-open if you think this solution don't fix the issue.

Closing this due to inactivity from original contributor. Feel free to re-open if you think this solution don't fix the issue.


Denomination Test Online

Hi everyone! We are trying to build a denomination test with Jspsych. We aim at testing 2 year olds and the test should be accessible to anyone online.
Ideally our test should be composed by:

46 stimuli images (to be orally named) ranked by AoA (max duration of exposure for each stimulus 30 seconds).
Each stimulus is divided by a fixation point (2 seconds).
Two different sounds (1 second): one presenting the stimulus and one presenting the fixation point.
Each stimulus can be ended pressing a key on the keyboard (in our case “s” for correct denomination (Sì - in Italian), “n” for incorrect denomination and “space” if parents are dubious) in order to record reaction times. RTs will also be verified post-test by a RA through video recording. The video recording should be ideally part of the digital test (not a Meet or Skype call).
We are also using AlterVista as an internet site for our experiment.
We have some issues with JsPsych:
We can’t manage the stimulus plug-in for JsPsych at the same time of the audio plug-in. We tried with some plug-in (found in the forum) as: audio-keybord-response.js + image-keybord-response.js; stim_audio_association; multi-stim-multi-response.js.
But they didn’t work.
We also want to record a video or audio track of the experiment, but we can’t find a plug-in that allow us to do this. We tried with audio_record plug-in but the program read it as a task and not as a response. We noticed that a plug-in like this is not yet available, is it right?
Moreover, the speed of our test suffers a lot poor internet connection.
Can anyone help us with these issues?
Thanks very much in advance.
Cheers,
Martina

Hi Martina,
I think I can give you a little help here,
We can’t manage the stimulus plug-in for JsPsych at the same time of the audio plug-in
To solve this issue, I suggest you have a look at the jspsychophysics plug-in. Works fine for me.
record a video or audio track of the experiment, but we can’t find a plug-in that allows us to do this
You should have a look at this support audio recording. I have tried the html-audio-response and it works fairly well for my needs.
Moreover, the speed of our test suffers a lot poor internet connection.
not sure.. usually you download the stimuli prior to the start of the experiment and you upload the results at the very end.
As far as I understand, during the experimental session, the internet connection is not used so it shouldn't produce any slowing. With a slow internet connection, I experienced difficulty in downloading all the stimuli and thus in starting the experiment but no slowing in between. Reducing the number and quality of images or audio files (if you have any) helps a lot.
Best,
Giulio.

Thank you very much Giulio for these advices! I'll try and I'll let you know.


Documentation cannot currently handle one line comments

The documentation builder cannot parse a class comment like
/** The fog is deactivated */
In order to get processed it needs to be written as
/**
 * The fog is deactivated
 */

See the Scene class for examples

Fixed with typedoc


New version: Overwolf.CurseForge version 0.217.4-8095

- [X] Have you signed the Contributor License Agreement?

[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[ ] Have you tested your manifest locally with winget install --manifest <path>?
[X] Does your manifest conform to the 1.4 schema?

Resolves #94686

Microsoft Reviewers: Open in CodeFlow

@wingetbot run


Testing docker-build

Add the docker container building  to the GitHub Actions testing system as another job

Realized: pull request #84

To production: pull request #85