Not working now

Ubuntu 14.04
Ganglia 3.6.0
No data returned from the API

This project is no longer in active development. However pull requests from the community to update it to work with the latest version of gmetad would be accepted.

Ensure that the GANGLIA_PATH is set to where your gmetad.conf files are located eg. /usr/local/etc or /etc/ganglia


Adds VR view of venue

This PR add’s a VR button to the “location” page.
I recommend removing the first commit from the diff for inspection as it is a verbatim copy of googlevr/vrview.
We still need the actual 360 picture from the venue (currently using a placeholder image)
I’d appreciate a sanity check :)

Alright. This is ready for review, @paullewis. Please take an extra look at the ServiceWorker code.
Here’s what the VR experience currently looks like.

@paullewis fixed


动态修改image 的宽或者高图片会变形

Your questions.
当动态修改 image 的宽或者高图片会变形。
Environment.

Mobile model: android
Mobile system: android5/6 (只测试了这两个版本的系统)
Dev platform: windows
Node: 8.x.x
Npm: 5.x.x

What do you think may be caused by the analysis of the problem.

Reappearance of the problem (It's best to have a screenshot).

跟 eros 没关系，好好看 weex 文档
https://weex.apache.org/cn/references/components/image.html

下个版本会修复


fix cra compliance report

If you try to run compliance command  for cra type in latest release,
$ go run main.go compliance samples/sbomqs-spdx-sbtool.json --bsi
you will find that it doesn't give any o/p. It's was due to this PR.
This PR fixes that.

One thing more, @riteshnoronha should we make bsi consistent across all codebase in place of cra. Sometime it confuses.

yes we should

ok will raise another PR for that.


Remove condition.

Removes a cut/paste error from the retain runs template.

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow


WIP: LLM fine-tuning example which is compatible with multiple models and frameworks (FSDP, Deepspeed)

@lu-wang-dl Can you please take a look?


issue trying to download remote files

Your script is awesome for downloading files that are hosted in the same server or directory
however, I had CORS related issues since most of the files I have are stored inside buckets provided by Google Cloud Platform, with an entirely different url path.
Is there a way to accomplish that with JS or make adjustments to the script itself.
Thanks
and STAY SAFE

Hi @inglesuniversal
Thank you for your message.
Unfortunately cross-origin is a known limit, to resolve you need to enable CORS on the server providing the resource or creating a proxy (for example in PHP or node.js) on the same domain as the js-file-downloader script.
In your case, having to download from google drive, you cannot enable CORS on the target server.

Hi @inglesuniversal I'm closing this issue, let me know if you need more support.


Add test button.rs

I added a test to see if button.rs can be converted as html.
If this PR is OK, I will write tests for all elements.
I will also try to make the test run automatically with GitHubActions
You can test by running
wasm-pack test --chrome --headless
in material-yew/material-yew
Thanks in advance.

This test doesn't do what you wanted it to do. It compares yew::Html instances instead of the actual HTML that is to be rendered.
I'm also closing this PR as all the library code has been rewritten and this doesn't really fit in anymore


Disconnect hosting client from server

Basicly this means that in a singleplayer world useing world host the hoster dosent need to be connected to the server integrated in the client to host the world but the integrated server still runs and is still proxied via world host

ur still useing upnp

This is what hosting a server is for, and is out of the scope of World Host. I'd recommend running a server and using a service like ngrok to host it. Maybe World Host will get server support at some point (or a server mod will be created that uses the World Host protocol).


Firefox 41 workaround: Unable to connect to host <IP_ADDRESS> on port 7055 after 45000 ms

Firefox 41 allows only installation of signed extensions. Selenium does not have a signed extension available yet. Running Splinter on Firefox 41 fails with Unable to connect to host <IP_ADDRESS> on port 7055 after 45000 ms
You can make Firefox to work again by dropping:
   firefox_profile.set_preference('xpinstall.signatures.required', False)

to  firefox.py.
This workaround won't work for Firefox 42.
More information

https://github.com/SeleniumHQ/selenium/issues/927

https://github.com/SeleniumHQ/selenium/issues/901

Just for your information. I guess this issue can be closed when Selenium gets a proper release.

Great! This works for me. Big thanks :+1:

I think the latest Selenium releases have fixed this bug, so this should be closed if anyone can confirm this. pip install -U Selenium should be enough.

I think the latest Selenium releases have fixed this bug

Confirmed, I see the error on 2.45.0 but after upgrading Selenium to 2.49.x the issue is fixed.


Could not resolve react in "@react-three/drei" using deno-loader

Description
I encountered an error while using the deno-loader plugin in my Deno project. The error message indicates that it could not resolve the "react" module only when using @react-three/drei. It's doing fine with @react-three/fiber.
Error Message
✘ [ERROR] Could not resolve "react" [plugin deno-loader]
    ../../../Library/Caches/deno/deno_esbuild/tunnel-rat@0.1.2_react@18.2.0/node_modules/tunnel-rat/dist/index.js:1:18:
      1 │ import React from 'react';
        ╵                   ~~~~~~~
...
error: Uncaught (in promise) Error: Build failed with 3 errors:
../../../Library/Caches/deno/deno_esbuild/@react-three/drei@9.105.2_@react-three+fiber@8.16.1__react@18.2.0__three@0.163.0_react@18.2.0_three@0.163.0/node_modules/@react-three/drei/web/Html.js:3:26: ERROR: [plugin: deno-loader] Could not resolve "react-dom/client"
../../../Library/Caches/deno/deno_esbuild/@react-three/drei@9.105.2_@react-three+fiber@8.16.1__react@18.2.0__three@0.163.0_react@18.2.0_three@0.163.0/node_modules/@react-three/drei/web/ScrollControls.js:3:26: ERROR: [plugin: deno-loader] Could not resolve "react-dom/client"
../../../Library/Caches/deno/deno_esbuild/tunnel-rat@0.1.2_react@18.2.0/node_modules/tunnel-rat/dist/index.js:1:18: ERROR: [plugin: deno-loader]

Steps to Reproduce

Install the deno-loader plugin in a Deno project.
Attempt to import the "@react-three/drei" module using esbuild and the deno-loader in a JavaScript or TypeScript file.
Run the Deno script.

Expected Behavior
The deno-loader plugin should be able to resolve the "react" module and allow its usage in the Deno project.
Actual Behavior
The deno-loader plugin fails to resolve the "react" module, resulting in the aforementioned error.
Environment

Deno version: 1.42
deno-loader version: 0.10
Operating System: macos
deno.json imports:

{
...
"imports": {
     "@react-three/fiber": "npm<EMAIL_ADDRESS>    "@react-three/drei": "npm<EMAIL_ADDRESS>    "react"<EMAIL_ADDRESS>    "react/"<EMAIL_ADDRESS>    "react-dom"<EMAIL_ADDRESS>    "react-dom/"<EMAIL_ADDRESS>  }
}

Additional Information

The error occurs when importing the "react" module from the "tunnel-rat" package.
The file path in the error message suggests that the "react" module is being imported from a cached location.

Possible Cause
It seems that the deno-loader plugin is unable to resolve the "react" module correctly, possibly due to a configuration issue or a compatibility problem between the plugin and the "react" module.
I would appreciate any assistance or guidance in resolving this issue. Please let me know if you need any further information or clarification.
Thank you for your attention to this matter.

Hey!  They are importing react / react-dom without declaring the dependencies in their package.json. This also does not work in pnpm.

@lucacasonato  It is declared in the package.json peerDependencies field. Also, @react-three/drei does import successfully on Deno, but not using esbuild-deno-loader.
Here a reproduction example:
main_test.ts
import * as drei from "npm:@react-three/drei";
console.log(drei);

main.ts
import * as esbuild from<EMAIL_ADDRESS>import { denoPlugins } from "jsr<EMAIL_ADDRESS>import * as dreiOnDeno from "npm<EMAIL_ADDRESS>console.log(!!dreiOnDeno);

const result = await esbuild.build({
  plugins: [...denoPlugins()],
  entryPoints: ["./main_test.ts"],
  outfile: "./dist/bytes.esm.js",
  bundle: true,
  format: "esm",
});
console.log(result.outputFiles);
esbuild.stop();


Search: Use Ignore Files exclude source files not in .gitignore or .ignore

Issue Type: Bug
Enabling Search: Use Ignore Files causes some source files to not show up in the results unless explicitly added to "files to include"
Does this issue occur when all extensions are disabled?: Yes
.gitignore file is empty and I don't have a .ignore file
search.useGlobalIgnoreFiles = false
search.useParentIgnoreFiles = false
With setting disabled

[2022-04-28 09:30:45.222] [renderer1] [trace] SearchService#search {"_reason":"searchView","folderQueries":[{"folder":{"$mid":1,"fsPath":"/Users/alex/src/panamaRN","external":"file:///Users/alex/src/panamaRN","path":"/Users/alex/src/panamaRN","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"**/Thumbs.db":true,"**/node_modules":true,"**/bower_components":true,"**/*.code-search":true,"**/.expo":true},"fileEncoding":"utf8","disregardIgnoreFiles":true,"disregardGlobalIgnoreFiles":true,"disregardParentIgnoreFiles":true,"ignoreSymlinks":false}],"usingSearchPaths":false,"onlyOpenEditors":false,"maxResults":20000,"type":2,"contentPattern":{"pattern":"shopReducer","isRegExp":false,"isCaseSensitive":false,"isWordMatch":false,"wordSeparators":"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"},"previewOptions":{"matchLines":1,"charsPerLine":1000},"usePCRE2":false}
With setting enabled

[2022-04-28 09:34:17.094] [renderer1] [trace] SearchService#search {"_reason":"searchView","folderQueries":[{"folder":{"$mid":1,"fsPath":"/Users/alex/src/panamaRN","external":"file:///Users/alex/src/panamaRN","path":"/Users/alex/src/panamaRN","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"**/Thumbs.db":true,"**/node_modules":true,"**/bower_components":true,"**/*.code-search":true,"**/.expo":true},"fileEncoding":"utf8","disregardIgnoreFiles":false,"disregardGlobalIgnoreFiles":true,"disregardParentIgnoreFiles":true,"ignoreSymlinks":false}],"usingSearchPaths":false,"onlyOpenEditors":false,"maxResults":20000,"type":2,"contentPattern":{"pattern":"shopReducer","isRegExp":false,"isCaseSensitive":false,"isWordMatch":false,"wordSeparators":"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"},"previewOptions":{"matchLines":1,"charsPerLine":1000},"usePCRE2":false}
With setting enabled + files to include

[2022-04-28 09:34:45.219] [renderer1] [trace] SearchService#search {"_reason":"searchView","folderQueries":[{"folder":{"$mid":1,"fsPath":"/Users/alex/src/panamaRN","external":"file:///Users/alex/src/panamaRN","path":"/Users/alex/src/panamaRN","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"**/Thumbs.db":true,"**/node_modules":true,"**/bower_components":true,"**/*.code-search":true,"**/.expo":true},"fileEncoding":"utf8","disregardIgnoreFiles":false,"disregardGlobalIgnoreFiles":true,"disregardParentIgnoreFiles":true,"ignoreSymlinks":false,"includePattern":{"src":true,"src/**":true}}],"usingSearchPaths":true,"onlyOpenEditors":false,"maxResults":20000,"type":2,"contentPattern":{"pattern":"shopReducer","isRegExp":false,"isCaseSensitive":false,"isWordMatch":false,"wordSeparators":"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"},"previewOptions":{"matchLines":1,"charsPerLine":1000},"usePCRE2":false}
VS Code version: Code - Insiders 1.67.0-insider (Universal) (7fc8af4e2d8f50a3950b809b9beab86fa5135f29, 2022-04-28T05:19:19.018Z)
OS version: Darwin arm64 21.3.0
Restricted Mode: No

System Info

Item
Value

CPUs
Apple M1 Max (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
3, 3, 4

Memory (System)
64.00GB (18.02GB free)

Process Argv

Screen Reader
yes

VM
0%

Extensions: none
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30422396
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805cf:30301675
pythonvspyt200:30323110
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30404738
wslgetstarted:30449409
pythonvsnew555:30438690
vscscmwlcmt:30465136
cppdebugcf:30475217
vsclangdc:30480125

Any difference if .gitignore is deleted, vs present (and empty)?
Thanks for including logs, can you grab the search logs from Log (Extension Host) which will show us the actual ripgrep command that was run?
If you want you can try to run this command manually, and include --trace which might help

So I was writing a lot of debug info when I got to the last step and manually ran the command with --trace
Ignore(IgnoreMatch(Gitignore(Glob { from: Some("./.git/info/exclude"), original: "index.js", actual: "**/index.js"
It turns out, someday, for whatever reason, I added index.js to .git/info/exclude when it should have been ./index.js
Thank you for the help!


Not a structure, FieldChain (check_syntax) - global table type not recognized in form

abaplint 2.58.26
Issues:
./src/nw/#jcs#variant.fugr.#jcs#lvariantf02.abap[102, 5] - Not a structure, FieldChain (check_syntax) [E]
./src/nw/#jcs#variant.fugr.#jcs#lvariantf02.abap[103, 5] - Not a structure, FieldChain (check_syntax) [E]
./src/nw/#jcs#variant.fugr.#jcs#lvariantf02.abap[104, 5] - Not a structure, FieldChain (check_syntax) [E]
./src/nw/#jcs#variant.fugr.#jcs#lvariantf02.abap[105, 5] - Not a structure, FieldChain (check_syntax) [E]
./src/nw/#jcs#variant.fugr.#jcs#lvariantf02.abap[106, 5] - Not a structure, FieldChain (check_syntax) [E]

g_set_values is a table type.

Putting it in playground fails due to the structure not existing.

is g_set_values defined in the same program?
can you try opening the source in vscode and hover the variable? to see if its found and if found what type it has

the g_set_values is defined in the top include.
vscode has no issues with the form

or the definition

Still an issue with abaplint 2.58.26
Message is the same.

Still an issue with abaplint 2.58.26
Message is the same.

thanks, before I dig into this, can you try updating to the latest version 2.63.14 ?

thanks, before I dig into this, can you try updating to the latest version 2.63.14 ?

Looks like the abaplint/abaplint image build is stuck for a while now. Can you trigger the build again?

Looks like the abaplint/abaplint image build is stuck for a while now. Can you trigger the build again?

heh, looks like github stops "inactive repos",

heh, looks like github stops "inactive repos",

@ed-holland try again,

@ed-holland try again,

The bottom errors are the onces for this issue. I'll investigate the others in separate issues if required.

The bottom errors are the onces for this issue. I'll investigate the others in separate issues if required.

the dynamic calls will be fixed in #1659

the dynamic calls will be fixed in #1659

what kind of ddic thing is /JCS/BC_VARIANT_T_VALUES ? structure/database/table type?

what kind of ddic thing is /JCS/BC_VARIANT_T_VALUES ? structure/database/table type?

It is a table type.

It is a table type.

yea, I've reproduced the issue as
TYPES: BEGIN OF ty_foo,
         field TYPE string,
       END OF ty_foo.
TYPES ttyp TYPE STANDARD TABLE OF ty_foo.
DATA moo TYPE ttyp WITH HEADER LINE.

LOOP AT moo.
  WRITE moo-field.
ENDLOOP.

yea, I've reproduced the issue as
TYPES: BEGIN OF ty_foo,
         field TYPE string,
       END OF ty_foo.
TYPES ttyp TYPE STANDARD TABLE OF ty_foo.
DATA moo TYPE ttyp WITH HEADER LINE.

LOOP AT moo.
  WRITE moo-field.
ENDLOOP.

try again, 2.63.15

try again, 2.63.15

Issue is resolved. Will check the new issues and report accordingly.

Thx.

Issue is resolved. Will check the new issues and report accordingly.

Thx.


Check local version of your code, instead of pulling from hex

If run in a repository with your own examples, we should use the current version of the code, instead of pulling it from hex.

Now supports running in the current package. Don't see a need to copy the package, feel free to open with a use case if you find one.


[BUG] Data Annotator button missing in Datamap

OS and framework information (please complete the following information):

OS: Windows 11
ARCItect Version 0.0.46

Describe the bug
DataAnnotator Button in Swate Alpha:

Missing in ARCItect

Done!


Define initial OWNERS

Description of the change:
We should define an OWNERS file for this repo.
Motivation for the change:

/assign @tpouyer


Add ScheduledGarbageCollector callback

This PR adds the ScheduledGarbageCollector callback from LLM Foundry. The python garbage collector can slowdown long training sessions:

We noticed a pattern of periodic dips in throughput that almost appeared deterministic. As the training run progressed, the dips impacted a progressively larger percentage of distributed operations. This led to a hypothesis that the dips could be related to automatic garbage collection, which we validated by profiling and testing.

Mosaic already noticed this and used this callback to fix it. Unfortunately, they do not set defaults for gc.collect() or gc.collect(1).

Thanks for adding this. We have noticed this and was going to add it at some point.


MVP Release - Properly handle switching licenses while in edit mode

When in edit mode, the app does not gracefully handle switching which license is selected and can cause the user to accidentally lose data and/or save data incorrectly.
When selecting another license while in edit mode, the app should display a dialog with 3 options:

Cancel - Dismiss the dialog, and do not change the application's state
Don't Save - Exit edit mode without saving the updates made by the user, then switch to the newly selected license
Save - Exit edit mode and save the updates made by the user, the switch to the newly selected license

Revamped edit mode, this fix is no longer needed


Tpm12 support

Add new FlowIntelLegacyTXTEnabledTPM12 flow
Try to detect TPM12 based on registers and firmware

I want to notice that build fails because of a different reason :)
I tested the code in a private repo

Will add BTG_SACM_INFO register, it also contains information about TPM Type and is more stable than ACM_POLICY_STATUS


Use argparse in OneClick.py

Currently, OneClick.py just loads in arguments in order.
That's fine for just building a bookworm in segments (python OneClick.py database_metadata), but as arguments get more complicated, it means that the syntax is both opaque and undocumented. For example, to supplement metadata with a new field keyed to a previous one, the syntax is python OneClick.py supplementMetadataFromJSON newmetadata.json filename, where filename is the key we're joining on. This is hard to remember and undocumented. In the course of documenting it, using argparse would make the OneClick.py codebase a bit longer but more flexible. It would also allow us to pass in certain useful flags, such as changing the logging level as described in Issue 60 or even potentially changing the working directory or tokenization regex.
Those last two are the most compelling reasons to do it for me right now. But ultimately, this might allow us to move the core OneClick.py scripts into a python executable called /usr/lib/bookworm as an executable, and not have to reclone the main repository for every different bookworm built on a server.

Setting up a new branch to track progress on this. I'm going to rename OneClick.py to an executable called "bookworm," and use a git-like action-arguments syntax; so that you can run commands like this:
Create the bookworm in the current directory; a wrapper around make.
./bookworm build all

Reload memory tables on a particular bookworm:
./bookworm --database=federalist reloadMemory

Load in the supplemental metadata at ~/newdata.json to expand the fields available.
./bookworm supplement_data --format=json --key=filename --file=~/newdata.json

Closing with v0.4.0


[V2]The preview window pops up unexpectedly

Before Submitting Your Bug Report

[ ] I have verified that there isn't already an issue reporting the same bug to prevent duplication.
[ ] I have seen the FAQ.

Maccy Version (see 'About' window)
2.0.0.beta.10
macOS Version
14.6
Maccy Settings
{
    "KeyboardShortcuts_delete" = "{\\"carbonModifiers\\":2048,\\"carbonKeyCode\\":51}";
    "KeyboardShortcuts_pin" = "{\\"carbonModifiers\\":2048,\\"carbonKeyCode\\":35}";
    "KeyboardShortcuts_popup" = "{\\"carbonKeyCode\\":9,\\"carbonModifiers\\":4096}";
    "NSStatusItem Visible Item-0" = 0;
    "NSWindow Frame com.sindresorhus.Settings.FrameAutosaveName" = "705 408 510 473 0 0 1920 1080 ";
    SUEnableAutomaticChecks = 0;
    SUHasLaunchedBefore = 1;
    avoidTakingFocus = 1;
    clearOnQuit = 1;
    enabledPasteboardTypes =     (
        "public.tiff",
        "public.png",
        "public.rtf",
        "public.html",
        "public.utf8-plain-text"
    );
    maxMenuItemLength = 50;
    migrations =     {
        "2024-07-01-version-2" = 1;
    };
    pasteByDefault = 1;
    pinTo = bottom;
    previewDelay = 2000;
    showFooter = 0;
    showInStatusBar = 0;
    showSearch = 1;
    showTitle = 0;
    windowSize = "[360,408]";
}

Description
I set the preview delay to 2000, but sometimes, when you activate the clipboard panel, the preview window pops up immediately without delay
Steps to Reproduce

Use the shortcut key to display the clipboard panel first and then hide it immediately
After a period of time (preferably exceeding the preview delay time you set), use the shortcut key to display the clipboard panel again. At this time, the preview window should appear immediately without delay

No response

Probably due to this line: https://github.com/p0deje/Maccy/blob/dd4e43dd7c95c0a1769f0d3df15fba4877880198/Maccy/Observables/HistoryItemDecorator.swift#L27

Should be fixed in 2.0.0.beta.11

Should be fixed in 2.0.0.beta.11

Hi @p0deje ,I'm glad you fixed this bug in 2.0.0.beta.11, but it still seems that the preview window pops up immediately.
Steps to Reproduce
1.Click any entry in the clipboard panel
2.After a period of time (preferably exceeding the preview delay time you set), use the shortcut key to display the clipboard panel again. At this time, the preview window should appear immediately without delay

Should be fixed in 2.0.0.beta.11

Hi @p0deje ,I'm glad you fixed this bug in 2.0.0.beta.11, but it still seems that the preview window pops up immediately.
Steps to Reproduce 1.Click any entry in the clipboard panel 2.After a period of time (preferably exceeding the preview delay time you set), use the shortcut key to display the clipboard panel again. At this time, the preview window should appear immediately without delay

WOW!～～～
It has been fixed in 2.0.0.beta.12!!, thank you for your efficient and excellent work!!! @p0deje
Love Maccy forever❤!!


Bug in List existing synchronization templates API?

https://docs.microsoft.com/en-us/azure/active-directory/app-provisioning/application-provisioning-configure-api#step-2-create-the-provisioning-job-based-on-the-template
Per documentation we tried calling the API with the serivce principal Id returned from step 1 - however, regardless what we provide as the Id the API returns 'unkown error':

endpoint = 'https://graph.microsoft.com/beta/servicePrincipals/9c9818d2-2900-49e8-8ba4-22688be7c675/synchronization/templates' headers = {'Authorization': 'Bearer %s' % bearertoken} r = requests.get(endpoint, headers=headers) print(r.json())
Tried using postman to exclude any python specific issue, however same issue.
Seems like a bug to me at this point.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 65ab0fe3-888c-5180-6924-23c5b79ccba9
Version Independent ID: 2ab7dfd1-7848-f15e-c41e-de833f901f12
Content: Use Microsoft Graph APIs to configure provisioning - Azure Active Directory
Content Source: articles/active-directory/app-provisioning/application-provisioning-configure-api.md
Service: active-directory
Sub-service: app-provisioning
GitHub Login: @kenwith
Microsoft Alias: kenwith

Thanks for the feedback! We are currently investigating and will update you shortly.

@alpinedelight, I don't think there is a bug there, as I myself tried the API and it works fine as expected.
Once I instantiated the applicationTemplate, I picked up the servicePrincipalID by making the following Graph API call: https://graph.microsoft.com/beta/serviceprincipals?$filter=startswith(displayName, 'AWS UmbrellaCo')&$select=displayName, id

Once I got the servicePrincipalID from the previous Graph API call, I used that same ID for the next Graph API call i.e:
https://graph.microsoft.com/beta/serviceprincipals/{id}/synchronization/templates

Note: Please make sure you are copying the ServicePrincipalID of the ServicePrincipal Object that is represented by theproperty called id and do not copy the application ID.
Do let us know if this works and if there are any more queries around this same so that we can help you better.

@alpinedelight, We are closing this thread for now. In case there are any more queries around this, please do let us know so that we can re-open this thread and help get re-engaged on this.


Publish to an Azure Web App using Visual Studio

ASP.NET 5 -> Publishing and Deployment -> Publish to an Azure Web App using Visual Studio

:shipit:


add patch to fix catalog vuln

Add patch based on changes from
https://chromium-review.googlesource.com/c/chromium/src/+/804397
to fix
https://bugs.chromium.org/p/project-zero/issues/detail?id=1450
/cc @alexeykuzmin @deepak1556

All the other changed manifest.json files do not exist in the tree, right?

nope, i removed the ones that failed with file not found

mash/quick_launch/manifest.json and services/ui/manifest.json are there.
I'm not sure if we use them though.

for some reason it's failing to apply on mash/quick_launch/manifest.json , i added services/ui/manifest.json just now

Btw, can you please add the patch description to the patch file itself to make @alespergl happy? )

mash/quick_launch/manifest.json and services/ui/manifest.json are there. I'm not sure if we use them though.

@alexeykuzmin content browser uses //services/ui https://cs.chromium.org/chromium/src/content/public/app/mojo/content_browser_manifest.json?dr&l=99 and mash service are used only for chromeOS at the moment.

rel electron/electron#11916


Authentication issue::Unable to clone a directory/package from a private repo

I am trying to clone a directory/package from a private git repo which has been registered. While executing the clone command, I am getting the below authentication issue.
$   kpt alpha rpkg clone \
>   https://github.com/******/***********.git pkg-out \
>   --directory=/test-pkg-out \
>   --ref=main \
>   --repository=test-catalogue \
>   --namespace=test
Error: Internal error occurred: cannot clone Git repository: cannot fetch repository /: authentication required

Repo registration details
$ kpt alpha repo get  -A
NAME             TYPE   CONTENT   DEPLOYMENT   READY   ADDRESS
test-catalogue   git    Package   false        True    https://github.com/******/***********.git

Since it is  a private repository, I have hidden some details above with *
Note:

kpt alpha rpkg init/push/propose is working correctly with the above repository. Hence, I doubt if the credentials are an issue.

Expected behaviour.

If I have passed the repository details to the clone command --repository=test-catalogue, then authentication should have been addressed by the secretRef in the Repository CR.

@Cbkhare Thanks for reporting this.
So Porch doesn't currently have support for doing git or oci-based clones from private repositories. We are open to contributions here, but it should probably start with a design proposal, as it is not obvious how it would work.
But if the repository you want to clone from is either a Porch repository, or has a structure that allows you to register it with Porch, you can do a clone where you reference the Kubernetes name of the PackageRevision rather than the git repository. This is the "package" option described in the documentation.


Don't hardcode weston-terminal in the init file

Currently we have soft dependencies on weston-terminal and dmenu (which itself depends on xwayland) in order to use basic features of Way Cooler. We should use a "find first match" in order to pick a terminal instead of particularly a terminal. This would be an approach where we try some names of executables and the first one found we use. For example, we could change
key({ mod }, "enter", "launch-terminal")

to
key({ mod }, "enter", function() utils.exec.spawn_first_found("weston-terminal", "uxvrt", "xfce4-terminal", "xterm") end)

This would try weston-terminal, uxvrt, xfce4-terminal, and xterm in that order until one is found and launched.
Obviously we'd want to use different terminal names (look up the wayland supported ones first), and maybe a different name than spawn.first_found.

Hmm, does spawn_first_found do the actual execution (because that's what it looks like it's doing)?
A simpler way might instead to do:
way_cooler.terminal = utils.find_first("weston-terminal", "uxvrt", "xfce4-terminal", "xterm")

and that way the correct terminal is found once (at start-up, so you don't suddenly change terminal emulators when you install/uninstall different ones). As well, that we wouldn't have to send a path to Lua just to spawn a program (and consequently no longer be able to do this if Lua was to suddenly die. If a bug occurs where the Lua thread is taken down it'd be nice to be able to get to a terminal to try and fix things)

that way the correct terminal is found once (at start-up, so you don't suddenly change terminal emulators when you install/uninstall different ones and don't incur a lookup cost each time).

Brilliant. I was just thinking about how it would be nice to be able to cache results from this, and that's the best approach. The result string can be passed off to other methods as well.
I think I'll add some utils.exec functions because we should be handling these keybindings from Lua.

If a bug occurs where the Lua thread is taken down

So after initialization, the only times Lua errors will happen is ideally in some kind of callback (keybinding, timer, etc.). As long as we handle those properly, user errors wouldn't even propagate to the top of the Lua stack. But if they do, it's still in "interpreter" mode - any errors there will be received by the thread itself (we'll get some Err out of a Result) and execution should continue normally (as it receives requests). That's how it works right now.
If the Lua thread panics for some reason, we could try restarting it (i.e. from the main thread or something).

Ah that's a good point. Then the only issue I could see with any programs spawned from Lua would those that have been compromised by modifying how Lua sees the binaries / how the exec functions are executed (the simplest case being simply setting them to nil). There's probably ways to protect against that with meta tables, but ultimately there will always be issues with executing code from a potentially untrusted source.
As time goes on, depending on what the Lua thread's role is post initialization, we might need to lock it down more heavily.

Then the only issue I could see with any programs spawned from Lua would those that have been compromised by modifying how Lua sees the binaries / how the exec functions are executed (the simplest case being simply setting them to nil).

So the reasons I see for writing wrappers around os.execute and io.popen are

Convenience exec library (awesome has something similar), could consider the find_first to fall under this category
Hook into the "don't zombificate child processes" way-cooler code (unless Lua could handle that for us)
Window manager specific uses - show spinney cursor while program is launching, or a popup when it's launched/failed/command-not-found (probably available via IPC too)
Lua should have special methods to spawn new clients with client perms (another IPC method)

Lua's os.execute on its own won't be an issue - we wouldn't give Lua access to any actual IPC client auth tokens anyway.

ultimately there will always be issues with executing code from a potentially untrusted source.
As time goes on, depending on what the Lua thread's role is post initialization, we might need to lock it down more heavily.

I will open another issue about how much power the Lua session should have and how clients should interact with it.

So the reasons I see for writing wrappers around os.execute and io.popen are...

I wasn't trying to imply we shouldn't write these wrappers, if anything they would be very helpful from both an ease of use and security stand point. I just want to nail down exactly how much untrusted code we are going to be executing and what user programs could do (and how to minimize/eliminate any havoc)

Hook into the "don't zombificate child processes" way-cooler code (unless Lua could handle that for us)

To make a process not zombiefied, you just need to check the return code from the process. This usually entails wrapping it in another process (e.g like how we did with sh)

Window manager specific uses - show spinney cursor while program is launching, or a popup when it's launched/failed/command-not-found (probably available via IPC too)

Small correction, clients draw the cursor in Wayland so that would potentially be a bit more complicated (and probably impossible) unless the user is focused on a view where we can control it (e.g the background). If we could only implement a half-assed solution in that case it would probably better not to do so at all.


fastdeploy: if build contains errors, don't restart

also return a FAILED state so the WM knows there were errors

one capacity issue, the fastdeploy test succeeded


Feature request: Non-null fields behaviour on local build

Consider the following situation:
600 posts on live site
ACF post object fields pointing to related posts
20 posts on development site
ACF post object fields pointing to non existing posts
gatsby build produces ERROR #85925 Cannot return null for non-nullable field WpPost.uri
It would be convenient if the fields would become nullable in this situation.

This is fixed in<EMAIL_ADDRESS>


Take in a start time and end time in user's time zone

Todo

Make the selected option selected

Completed


ID3 tags

Hello,
We are using live stream HLS with embedded ID3 tags. We are able to read these tags in flash player (flowplayer.commercial-3.2.18.swf) using this function:
onNetStreamEvent: function (clip, type, info) {
$("#console").prepend( type + ' : ' + info);
},
Question:           Is it possible to read these tags in HTML5 version with Flash plugin or with flowplayer.hlsjs.min.js?
Thnx

Have you tried listening to the FRAG_PARSING_METADATA hls.js event: https://github.com/dailymotion/hls.js/blob/v0.5.x/API.md#runtime-events ?
Disclaimer: by lack of a reliable sample I don't know whether and how data.samples needs further processing. This may be of interest, also re: differences to flash hls implementation: https://github.com/dailymotion/hls.js/issues/20


Display COPR badge

There could be COPR badge provided in the README with the current version available.

Added along the way.

Hmm, at least the COPR build status was added. But the version number is not. Reopening :).


[New Website Feature]: Design a standard template for SLIM guides

Checked for duplicates
Yes - I've already checked
Alternatives considered
Yes - and alternatives don't suffice
Related problems
Our SLIM guides vary considerably in terms of writing style, formatting, and the overall content and messaging communicated. For example, some guides are very succinct and some are very verbose. Some include clear steps and some do not. Some describe heritage and acknowledgements whereas some do not. It can be confusing for a reader of the SLIM website to scan through process improvements that are communicated in such different styles and language.
Describe the feature request
Let's come up with a standard template for our SLIM guides that we can use for both future contributors to follow as well as for us to rewrite existing guides for.
Some of the key things I think are needed are:

A very short description of the improvement being presented
Explanation of the use cases or problems being solved
Quick access to use the solution if the reader doesn't want to read much and just get going
Step-by-step directions (preferably with imagery) for how to get going with the solution
Acknowledgements
Authorship
Mentioning that the guide can be improved further by the reader via soliciting contributions

### Tasks
- [x] Design a draft template
- [ ] Get feedback from the community and finalize template
- [ ] Document how to use the template in the contribution guide of the website
- [ ] Apply template to existing guides

@NASA-AMMOS/slim-tsc - thoughts on the below template? Are we missing anything or any suggestions? Please take a look at our current guides for the basis of your feedback.
Markdown Rendering
Introduction
One sentence description of your process improvement solution.
Background: A longer description of the problem you aim to solve and your solution.
Use Cases:

A list of the types of use cases where your process improvement solution will shine
e.g. Making code repository README's consistent for internal and external contributors

Prerequisites
List any software, hardware, or skills required to utilize the solution.

Prerequisite 1
Prerequisite 2
...

Quick Start
Link to Process Improvement Solution (template/code sample/tool/etc.)
A brief description of what the link provides, e.g., "Click the link above to access the full template for the README.md file."

Step-by-Step Guide

Step 1: Brief description of the step.

Step 2: Brief description of the step.

...

Credits
Authorship:

List of contributing authors of this write-up who actually wrote words. Link to GitHub profiles if available, e.g. Bugs Bunny

Acknowledgements:

Source/Organization 1 that inspired the solution or was adapted from
Source/Organization 2 that inspired the solution or was adapted from
...

Feedback and Contributions
We welcome feedback and contributions to help improve and grow this page. Please see our contribution guidelines.
Markdown Code
## Introduction

One sentence description of your process improvement solution.

**Background**: _A longer description of the problem you aim to solve and your solution._

**Use Cases**:
- _A list of the types of use cases where your process improvement solution will shine_
- _e.g. Making code repository README's consistent for internal and external contributors_

---

### Prerequisites
_List any software, hardware, or skills required to utilize the solution._

* Prerequisite 1
* Prerequisite 2
* ...

---

### Quick Start
**[Link to Process Improvement Solution (template/code sample/tool/etc.)](#)**

_A brief description of what the link provides, e.g., "Click the link above to access the full template for the README.md file."_

---

### Step-by-Step Guide

1. **Step 1**: _Brief description of the step._
![Optional Image for Step 1](imageURL_for_step1)

2. **Step 2**: _Brief description of the step._
![Optional Image for Step 2](imageURL_for_step2)

3. ...

---

### Credits

**Authorship**:
- _List of contributing authors of this write-up who actually wrote words. Link to GitHub profiles if available, e.g. [Bugs Bunny](https://www.github.com/bbuny573429)_

**Acknowledgements**:
* Source/Organization 1 that inspired the solution or was adapted from
* Source/Organization 2 that inspired the solution or was adapted from
* ...

---

### Feedback and Contributions

We welcome feedback and contributions to help improve and grow this page. Please see our [contribution guidelines](https://nasa-ammos.github.io/slim/docs/contribute/contributing/).

This is pretty good.  I think this could cover everything, but I did wonder if the following might be their own sections.  The information here could easily fit in the present sections but perhaps calling some of them out would keep things more consistent.

Expected Outcome
Required Customization / Tailoring
Common Pitfalls, FAQ (not sure on name but a section saying the common issues problems you might run into)

Hi Rishi,
This looks great to me!  The real issue I see is that most developers/issue-creators never go to this level of detail.  I'm wondering if we should simplify it a bit, to avoid the problem of overwhelm-paralysis?   If this is intended for internal SLIM folks to use, then I think it's okay.  If it's intended for all projects, then maybe it's a bit much?  But then again, I do agree being detailed and inclusive of all relevant things is a good thing.

Agreement with the layout. Per @jl-0 's comment I'm not sure we need an expected outcome section as that should be implicit in the title and stated in the subheading right below it. Instead, the template could state in the subhead, One sentence description and expected outcome of this process improvement standard.
A small (no more than 3) bullet point list could be provided under `Step-by-Step Guide' to identify required customizations, but I am not sure that's necessary.
I think the common pitfalls, FAQ are more appropriate in their own section outside the template, perhaps even in the discussion board.

Thank you for the feedback @jl-0 @galenatjpl @jpl-jengelke. Much appreciated. I've added some of @jl-0's suggestions to the template (Introduction->Background). I also really like the idea of a FAQ section that can be iterated and augmented over time - that's already part of our README template recommendations, and we might as well use it here too. Agree with @jpl-jengelke - I think the required customizations is basically the Step-by-Step Guide section.
Some adjustments below. I'll look to open a PR for this soon so we can get it going!
# _Title Goes Here_

One sentence description of your best practice solution.

## Introduction

**Background**: _A longer description of the problem you aim to solve and your solution. Talk about the background of why this is needed, what kind of benefits the user might enjoy, and any other background information that may be useful for the reader. Additionally, talk about the expected outcome the user can expect in implementing your solution._

**Use Cases**:
- _A list of the types of use cases where your process improvement solution will shine_
- _e.g. Making code repository README's consistent for internal and external contributors_

---

## Prerequisites
_List any software, hardware, or skills required to utilize the solution._

* Prerequisite 1
* Prerequisite 2
* ...

---

## Quick Start
**[Link to Process Improvement Solution (template/code sample/tool/etc.)](#)**

_A brief description of what the link provides, e.g., "Click the link above to access the full template for the README.md file."_

---

## Step-by-Step Guide

1. **Step 1**: _Brief description of the step._
![Optional Image for Step 1](imageURL_for_step1)

2. **Step 2**: _Brief description of the step._
![Optional Image for Step 2](imageURL_for_step2)

3. ...

---

## Frequently Asked Questions (FAQ)

- Q: Example question relevant to this guide
- A: Example answer to the question

---

## Credits

**Authorship**:
- _List of contributing authors of this write-up who actually wrote words. Link to GitHub profiles if available, e.g. [Bugs Bunny](https://www.github.com/bbuny573429)_

**Acknowledgements**:
* Source/Organization 1 that inspired the solution or was adapted from
* Source/Organization 2 that inspired the solution or was adapted from
* ...

---

## Feedback and Contributions

We welcome feedback and contributions to help improve and grow this page. Please see our [contribution guidelines](https://nasa-ammos.github.io/slim/docs/contribute/contributing/).

Some thoughts -

A table of contents would be nice. This is usually the first thing I look for on a GH page so I can get to the area I need additional information on
Step-by-Step Guide - for what? Build, run, deploy, adapt? Perhaps we can make this more specific or break it up
It seems we'd want to include a link to the license page
Where do CI/CD badges and an application icon go? I have a personal style preference for centering the application title and not using a code block for the one sentence description

Overall it looks good. I think creating example page for an existing JPL GH project would be a useful step to add to this issue so we can see the template in action. We could update https://github.jpl.nasa.gov/drewm/srl-idps-airflow-prototype as it is based on a SLIM template already

Hi @stirlingalgermissen - thanks for your comments! Just to clarify - this “template” is independent of the SLIM README template. The intention of this template is to standardize the written SLIM Guides themselves, not specifically to do with software repositories.
I like your idea for a TOC!

Progress: all existing SLIM pages except the following two have the new templates installed / applied:

https://nasa-ammos.github.io/slim/docs/guides/software-lifecycle/security/secrets-detection/
https://nasa-ammos.github.io/slim/docs/guides/software-lifecycle/continuous-testing/

However, since we have tickets already available for the above two (#120, #123), let's go ahead and close this ticket.


Uchiwa : connection reset by peer

Hi
Running uchiwa 0.4.0 installed with apt on debian, the access.log tells me :
(my API is behind a SSL, so i use a proxy with nginx)
{"Date":"2014-12-19T19:02:26.816268542+01:00","Level":"warning","Src":{"Func":"github.com/sensu/uchiwa/uchiwa.Build","Line":49},"Output":"API call to \"https://sensu.yproximite.com:443/stashes\" returned: Get https://sensu.yproximite.com:443/stashes: read tcp <IP_ADDRESS>:443: connection reset by peer"}

Yet, when I go to the url manually, the sensu api respond me well with current stash and connected clients.
My nginx vhost looks like :
server {
    listen 80;
    server_name monitoring.yproximite.com;
    rewrite ^(.*) https://$host$1 permanent;
}

server {
    listen   443;
    server_name monitoring.yproximite.com;

    ssl on;
    ssl_certificate      /etc/nginx/certificates/yproximite.com.crt;
    ssl_certificate_key  /etc/nginx/certificates/yproximite.com.key;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;

    location / {
        proxy_pass http://localhost:3000;
         proxy_http_version 1.1;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection "upgrade";
         proxy_set_header Host $host;
     }
 }

server {
     listen 80;
     server_name sensu.yproximite.com;
     rewrite ^(.*) https://$host$1 permanent;
 }

 server {
     listen 443;
     server_name sensu.yproximite.com;

     ssl on;
     ssl_certificate      /etc/nginx/certificates/yproximite.com.crt;
     ssl_certificate_key  /etc/nginx/certificates/yproximite.com.key;
     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
     ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;

     location / {
         proxy_pass http://localhost:4567;
     }
 }

It used to work before.
And If i try to access <IP_ADDRESS> on port 4567 it works well. But I got no SSL :/

Well I still got this problem.
{"Date":"2015-03-19T20:10:14.787255572+01:00","Level":"warning","Src":{"Func":"github.com/sensu/uchiwa/uchiwa.Build","Line":53},"Output":"API call to \"https://sensu.xxxx.com:443/stashes\" returned: Get https://sensu.xxxx.com:443/stashes: read tcp xx.xx.20.88:443: connection reset by peer"}
I can nethertheless connect manually to the API.
What I don't understand is that uchiwa tries to get /stashes\ instead of /stashes/ (or even /stashes). If it was the case, i wouldn't get those errors i guess.

Well...
I tried removing my https://sensu.xxxx.com and i put localhost on port 4567. It works, but again. no ssl between uchiwa and sensu API.


iwlwifi 8000C firmware missing from the rootfs

Commit https://github.com/resin-os/meta-resin/pull/990/commits/399abd5d7a965cdc8bd4d89b2e1cfa68bbd8d2df removed the iwlwifi 8000c firmware from the rootfs. It refers to a new firmware which seems to be missing from the rootfs. And a Intel NUC on current meta-resin master will have this error at boot time:
[    2.452080] iwlwifi 0000:03:00.0: enabling device (0000 -> 0002)
[    2.455388] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-26.ucode failed with error -2
[    2.455995] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-25.ucode failed with error -2
[    2.456625] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-24.ucode failed with error -2
[    2.456635] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-23.ucode failed with error -2
[    2.456645] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-22.ucode failed with error -2
[    2.456654] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-21.ucode failed with error -2
[    2.456677] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-20.ucode failed with error -2
[    2.456686] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-19.ucode failed with error -2
[    2.456695] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-18.ucode failed with error -2
[    2.456704] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-17.ucode failed with error -2
[    2.456705] iwlwifi 0000:03:00.0: no suitable firmware found!

This seems to be a bug in pyro branch. I contacted upstream and will update as soon as I have something. If by any chance this doesn't happen soon, I'll fix it with a bbappend in meta-resin. Ref.: http://lists.openembedded.org/pipermail/openembedded-core/2018-February/147508.html


fix(OntologyResponderV2): Fix ontology cache update when ontology metadata changed

https://dasch.myjetbrains.com/youtrack/issue/DSP-626

[x] When ontology metadata is changed, update the ontology cache correctly.
[x] Add test.

Thanks for the quick review!


Separate Python test cases for univariate distributions in test.py

The test code has been seperated into multiple files.


fatal error: junction/ConcurrentMap_Linear.h: No such file or directory

Hello, I want to run your Spruce. But when I compile, the error of "fatal error: junction/ConcurrentMap_Linear.h: No such file or directory" happen. Can you offer me the head file "Concurrent_Linear.h”, Or tell me I need set up software to solve it. Thanks!

Could you try to install junction hash from https://github.com/preshing/junction to resolve this problem? Spruce uses junction hash as its hash table and you may need to install junction first.


ERROR: self is not defined

I am getting this error when trying to run your example (using node v16.15.0) and "type"="module"
ReferenceError: self is not defined     at Object.<anonymous> (/Users/bdiedrichsen/dev/sources/laboratory/deskone/node_modules/svg-to-excalidraw/dist/bundle.js:1:242) ....
Something is not right with the bundling. I found this link https://stackoverflow.com/questions/64639839/typescript-webpack-library-generates-referenceerror-self-is-not-defined
and tried to replace self with this in the code. It went along and produced other errors about things not defined.
I tried checking out the repo and changing the globalObject to this but I just get the next error ReferenceError: DOMParser is not defined.
I think your library is not built to be used in non-browser environments.
Which is a pitty because I wanted to integrate it with Kit. It would be a great tool for creating library elements from desktop workflow.
Maybe you are interested in producing a version that can be run in node environment?

+1, a same error code in my desktop

+1，Running in a node environment also throws the same error

I think your library is not built to be used in non-browser environments.

This is correct, as the library uses a number of DOM APIs (such as DOMParser). It may be possible to something JsDOM, or Cheerio, but this would need to be investigated.

@brochington I looked into the API usage and I guess it is mostly about the traversal part of the DOM tree. None of the libs like JsDOM or Cheerio implement this. Only the DOM Parser does.
It doesn't look trivial to replace this but I still think it would be worth it. Integration of excalidraw into desktop tools would be so nice...

Snippet for running this using puppeteer. Works quite well.
// svg-to-excalidraw.js

const { readFileSync } = require("fs");
const { argv } = require("process");
const path = require("path");

const playwright = require("playwright");

const svgToExcalidraw = readFileSync(
  path.join(__dirname, "../node_modules/svg-to-excalidraw/dist/bundle.js")
).toString("utf-8");

const input = readFileSync(argv[2]);

(async () => {
  const browser = await playwright.chromium.launch();
  const page = await browser.newPage();

  page.on("console", async (message) => {
    const messageArgs = message.args();
    const logValues = await Promise.all(
      messageArgs.map(async (arg) => await arg.jsonValue())
    );
    console.log(...logValues);
  });

  // Export the library's convert function to the window object
  await page.evaluate(
    ([svgToExcalidraw]) => {
      const f = Function("module", "exports", svgToExcalidraw);
      const module = { exports: {} };
      f.call(module, module, module.exports);
      window.svgToExcalidraw = module.exports.default.convert;
    },
    [svgToExcalidraw]
  );

  // Convert an SVG
  const result = await page.evaluate(
    ([input]) => {
      return new Promise((resolve, reject) => {
        const { hasErrors, errors, content } = window.svgToExcalidraw(input);
        if (hasErrors) {
          reject(errors);
        } else {
          resolve(content);
        }
      });
    },
    [input.toString("utf-8")]
  );
  console.log(result);

  await browser.close();
})();

node svg-to-excalidraw.js ./path/to/file.svg

also encounter this issue,  is there a workaround to avoid  issue

also encounter this issue, is there a workaround to avoid issue

See the snippet above. Currently you'll need a full DOM implementation, so using an actual browser engine is probably your best bet.


Title input form updates title metadata in markdown files

In #862 I removed the metadata-value setter function call in views/file#makeDirty, aka the way you inform the editor that something has happened that might warrant a save.
This separates some concerns; if metadata.js is responsible for all the meta forms, and these correspond to model.metadata, then file.js shouldn't be the thing that saves to model.metadata.
However, I didn't realize that header.js#updateTitle relies on the makeDirty function to set title metadata.
So this is a regression. I propose that header.js should be responsible for setting title metadata in these cases, just like toolbar.js sets the publish/unpublish meta value. This would keep metadata.js from having to do stuff like this to figure out the value of form elements it's not responsible for.

Related to #854

So this is a regression. I propose that header.js should be responsible for setting title metadata in these cases, just like toolbar.js sets the publish/unpublish meta value. This would keep metadata.js from having to do stuff like this to figure out the value of form elements it's not responsible for.

:+1:

not sure this is directly related - but I'm not seeing the Metadata (& settings) button on the right anymore
this is strange as other github users on the same repo are able to enter metadata

@giladju these changes aren't deployed to prose.io yet so this may be another issue, or something to do with your metadata settings.


How to set orientation

Random code snippet that took me a minute to figure out:
In config/ios.rb
Motion::Project::App.setup do |app|
  # Use `rake ios:config' to see complete project settings.
  app.info_plist['UISupportedInterfaceOrientations']  = ['UIInterfaceOrientationPortrait']
end

In previous apps I've done
  app.interface_orientations = [:portrait]

which didn't work for this project.

I think this is related to this line :
https://github.com/HipByte/motion-game/blob/master/lib/motion-game/ios.rb#L13
I have slow internet atm I will check next week

I think this is related to this line :
https://github.com/HipByte/motion-game/blob/master/lib/motion-game/ios.rb#L13
I have slow internet atm I will check next week

I looked at the source and saw that too (which is how I figured out that's what you needed to use).

Maybe it didn't work because of the previously-set orientation in the default config file? (I assumed that by default MG projects should be in landscape, maybe I'm wrong here and we could remove this).

No, I think most people will want landscape to be the default.

btw, but, it's more a RubyMotion concern, I think, something like
app.supported_orientations = [:landscape, :portrait]

Could be awesome to replace app.info_plist['UISupportedInterfaceOrientations'] on iOS and
app.manifest.child('application').child('activity') do |main_activity|
    main_activity['android:screenOrientation'] = 'portrait'
  end

on Android

in ios I just set:
Motion::Project::App.setup do |app|
  app.name = 'testapp'
  # valid values :portrait, :landscape_left, :landscape_right, :portrait_upside_down
  app.interface_orientations = [:landscape_left]
end


To translate this into English: power miners should be able to identify hostile rooms, similarly to how dMiners do.

חבל


feat: Submit hacktoberfest demo

What does this PR do?

Adding a new demo application in the community/demos directory
A demo web app with an AI powered FAQ chatbot built with Copilotkit.

Related PRs and Issues
Checklist

[✓] I have read the Contribution Guide
[✓] If the PR changes or adds functionality, I have updated the relevant documentation

Another nice app @AJBrownson, this is great!


Fix accordion if statement for icon className

Minor fix for the accordion icons. They are reversed in production.
https://eea.github.io/eea-storybook/?path=/story/components-accordion--default

@eea-jenkins build storybook


Command history persistence

Hi.
Does it store command history in a file anywhere? Node.js REPL, for example, saves the commands in a file at ~/.node_repl_history and loads it on the next invocation of a REPL, so you get a persistent history of the commands entered.

Hey, Jay doesn't persist any command history at the moment, the feature is on the "roadmap" though 🙂

shipped in 0.2.0 :tada:

@nikersify nice. Thanks!


Typo on the Brooklyn Museum example: license license

Thanks for reporting an issue, to help us file this efficiently we made this template. Feel free to ignore the template if you wish :)
If this is a bug or a problem with one of our websites or page on one of our sites, please put the URL or page address here:
https://creativecommons.org/share-your-work/licensing-types-examples/licensing-examples/#nc
Please tell us the steps to reproduce the problem, if needed:

Go to https://creativecommons.org/share-your-work/licensing-types-examples/licensing-examples/#nc
Read the example of the Broolyn Museum
Note that in the end of the first sentence there is the word "license" repeated:

Please tell us a little bit about how you're accessing the site or page, such as which web browser and which version of the browser:
Mozilla Firefox Nightly for Ubuntu 58.0a1 (2017-11-05) (64-bit)
(You can also vist https://aboutmybrowser.com/ which will give you a link you can share with us that'll tell us everything we need to know)
You can also attach a screenshot to this issue if you have a visual bug to report. That'll help us figure it out faster. http://www.take-a-screenshot.org/ has instructions on taking screenshots.
Finally, we're going to put someone's name here, so they get alerted to the new issue and can assign it to the right person. @robmyers @little-wow

fixed, thank you again :)


Picture in picture bug

Steps to reproduce

Open any anime in picture in picture.
Then you go to open a manga.

Expected behavior
The anime should reopen in picture in picture mode.
Actual behavior
The anime couldn't open picture in picture mode.
Crash logs
No response
Animetail version
Stable <IP_ADDRESS>
Android version
Android 13
Device
Samsung z flod 2 5g
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, I should be opening an issue in the extension's repository.
[X] I have gone through the FAQ and troubleshooting guide.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I have updated all installed extensions.
[X] I will fill out all of the requested information in this form.

fix


Change biosample --is-surveillance to take Y or N rather than acting as a store_true flag

Currently a surveillance sample requires --is-surveillance to be added as a command option, and a non-surveillance sample leaves this option off the CLI. The reason for this was to prevent the mandatory surveillance field from breaking existing command line scripts that use Ocarina to submit samples (thus just assuming all samples were non-surveillance unless told otherwise).
This is however not very easy to toggle and I'll be changing --is-surveillance to require a Y or N from the CLI in the next minor release. Users will need to update any script that uploads new biosamples and use  --is-surveillance Y and  --is-surveillance N as appropriate.

Implemented in v0.35.0 by https://github.com/SamStudio8/ocarina/commit/d900cb29ec3181ea3fd0214ffad1504603066bcc

Implemented in v0.35.0 by https://github.com/SamStudio8/ocarina/commit/d900cb29ec3181ea3fd0214ffad1504603066bcc

In cases where users do not provide this field because it is unknown, we'll keep the default behaviour and assume N. This will prevent the PHA ingest pipelines from breaking. Implemented in v0.35.1 by https://github.com/SamStudio8/ocarina/commit/159bc8021e7ea6076ce15fb8e8392d3965cf8cb5

In cases where users do not provide this field because it is unknown, we'll keep the default behaviour and assume N. This will prevent the PHA ingest pipelines from breaking. Implemented in v0.35.1 by https://github.com/SamStudio8/ocarina/commit/159bc8021e7ea6076ce15fb8e8392d3965cf8cb5


Remove the CODE_OF_CONDUCT.md file

Remove the CODE_OF_CONDUCT.md file

please assign this task to me

please assign this task to me

Sure, go ahead @kheersagar

please change the label

please change the label

What label? @kheersagar

please change the label

Don't you need hacktoberfest @kheersagar


Update Yarn scheduler doc for the latest version #1400

The YARN scheduler doc should be updated for the latest version after 0.14.3 released.
#1349 and #1400

Just one minor comment, otherwise LGTM. Thanks for the contribution !

@ashvina - I've modified as your suggestions. Thank you for your time

:+1:

@ashvina - should we add the documentation for 0.14.2 since we are already at 0.14.3? 0.14.4 is going to go out soon.

@kramasamy - Maybe it is helpful for the 0.14.2 version users if they want to submit topology to YARN. @ashvina hopes users know they have second option doing it. Do you think we don't need to introduce this?

thanks @mycFelix - let me check with @ashvina if he really needs it.

@kramasamy In my opinion, the second option to resolve classpath (using jar copy) could be kept in the document for some time. We could remove it after 2-3 releases.

@ashvina - sounds good.


[Android] Unsupported localeCompare in chinese

string sort in chinese as follows:
     var arr = ['南京', '北京', '上海', '杭州', '深圳'];     arr = arr.sort(function(item1, item2) {         return item1.localeCompare(item2, 'zh-CN');     });     console.log(arr); //arr not change

For Weex 0.28, It ues a stripped JavaScript interpreter, some function may be stripped. You could change the JavaScript interpreter if you could or check whether the extend arguement is supported before you call it.


The scope of the variable 'isNegative' can be reduced.

This change can be made to improve code quality. The following error was encountered in the static analysis performed on the code:
kernel/src/qemu_debug.c:39:6: style: The scope of the variable 'isNegative' can be reduced. [variableScope]  int isNegative = 0;
When I checked the code, I realized that we don't actually need this variable.
the relevant method can be updated as follows:
void itoa_dbg(int n, char *buffer, int base)
{
    int i = 0;

    // Handle 0 explicitly, otherwise an empty string is printed
    if (n == 0) {
        buffer[i++] = '0';
        buffer[i] = '\0';
    } else {
        // Handle negative numbers only if the base is 10
        if (n < 0 && base == 10) {
            n = -n;

            // Append negative sign for base 10
            buffer[i++] = '-';
        }

        // Process individual digits
        while (n != 0) {
            int rem = n % base;
            buffer[i++] = (rem > 9) ? (rem - 10) + 'a' : rem + '0';
            n = n / base;
        }

        buffer[i] = '\0'; // Null-terminate the string
    }

    // Reverse the string
    int start = 0;
    int end = i - 1;
    while (start < end) {
        // Swap characters
        char temp = buffer[start];
        buffer[start] = buffer[end];
        buffer[end] = temp;
        start++;
        end--;
    }
}

I haven't tested it but theoratically it will work :) the implementation and test is required. You can use the following function or re-implement your own itoa.
PS: the "_debug" endfix just used for telling this function only used on debug purpuses. nothing else.

@angelpilled do you want to take this one?

@angelpilled do you want to take this one?

Yessir.

@angelpilled do you want to take this one?

Yessir.

Alright, i assigned it to you !


HTML

HTML
User Story
As a boot camp student,
I want a Prework Study Guide website,
so that I can review all the information I learned throughout Prework.
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git, and JavaScript with associated notes listed

HTML code added to application, branch not deleted for traceability in study


Fixing icons & topic ordering & replacement LUIS with SPOT

Fixing icons & topic ordering & replacement LUIS with SPOT

Verified.  Ready for PO review.

We are getting multiple listing for Topics again. I am seeing this for Hawaii. Maybe this will be corrected as part of the clean up going on now and once the spreadsheets are updated. And we won't know about the ordering until the states can do the rankings.

Also, the same organization is showing up multiple times with the same info:

@KellyeDC-zz @yevhenobertas @asaperski-gloriumtech The topic ordering still seems to be alpha, not in ranking order.


check message attachment's permission.

Fix #3644.

@zyhfish the tests are failing, is something wrong or we need to adjust the tests ?

@zyhfish the tests are failing, is something wrong or we need to adjust the tests ?

Hi @valadas , the broken tests has been fixed, thx!


Repo rules do not follow agreed up open source guidelines

Please review: https://github.com/hashgraph/hedera-wallet-connect/wiki/WalletConnect-for-Hedera:-Repository-Governance#pull-request-approvals
If there's a need to update governance, please communicate the updates needed, otherwise please set up the repo to be more favorable for community contribution.

please autoassign @hashgraph/hedera-wallet-connect-contributors to all PR's moving forward

closing this issue as Hgraph is a code owner and now able effectively manage the repository as agreed upon by contributors


Add doodle by zachz winne4

Song Name
doodle
Artist Name
zachz winne4
Source
Youtube
Youtube Link
-iM7KCEt5zs
Direct File Link
No response
Song ID
259534
Start Offset [ms]
4
Extra
Created from Auto Nong.
Created for level: 108825786
Downloaded: Yes

accept
El lun, 16 de sept de 2024, 9:42 p. m., auto-nong[bot] <
@.***> escribió:

Thanks for contributing!
Someone will soon review your request.
Here is the JSON result for the reviewer:
{
"name": "doodle",
"artist": "zachz winne4",
"source": "youtube",
"startOffset": 4,
"yt-id": "-iM7KCEt5zs",
"songs": [
259534
]
}
To accept the request, a reviewer needs to write "accept".
—
Reply to this email directly, view it on GitHub
https://github.com/FlafyDev/auto-nong-indexes/issues/4126#issuecomment-2354443684,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BHW7O45FQEQJIM42XU2RJLTZW6QKJAVCNFSM6AAAAABOKR75ECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJUGQ2DGNRYGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>


file size is not correct

I am using dartssh2 and I am trying to get the file size with sftp but it displaying 4096 almost all the time sometimes i get another number but still not correct if run the command du -h --max-depth=1 | sort -hr it prints out:
root@test-server:~# du -h --max-depth=1 | sort -hr
44K     .
16K     ./snap
4.0K    ./.ssh
4.0K    ./.cache

but in my program:

I am using dartssh2: ^2.7.2+3 and flutter sdk: ">=2.17.6 <3.0.0"

Not sure, but I believe that this is expected for folders,
dartssh uses ls -l
root@test-server:~# ls -l
-rwxr-xr-x  21 francxpt francxpt      20480 Aug 26 15:42 vmlinux.symvers
-rw-r--r--   1 francxpt francxpt     624908 Aug 26 15:59 Module.symvers
drwxr-xr-x  26 francxpt francxpt       4096 Aug 26 16:00 arch
drwxr-xr-x  27 francxpt francxpt       4096 Aug 26 15:35 sound
drwxr-xr-x  31 francxpt francxpt       4096 Aug 26 15:32 include
drwxr-xr-x  34 francxpt francxpt       4096 Aug  1 23:44 samples
drwxr-xr-x  38 francxpt francxpt       4096 Aug  1 23:44 tools
drwxr-xr-x  72 francxpt francxpt       4096 Aug 26 15:47 net


Use service account creds to make e2e test requests

LGTM, but were we going to send the e2e requests to the frontend server instead of the data server?

Couldn't get that working right away. I want to get the prod deployment and documentation out. Making a request with creds will be needed for calling the pipeline anyway so this will be useful even if we do switch.
If you are ok with it, I will talk to Aaron about how to call the frontend correctly and make the change separately.

LGTM, but were we going to send the e2e requests to the frontend server instead of the data server?

Couldn't get that working right away. I want to get the prod deployment and documentation out. Making a request with creds will be needed for calling the pipeline anyway so this will be useful even if we do switch.
If you are ok with it, I will talk to Aaron about how to call the frontend correctly and make the change separately.

Sounds good, thanks for looking into it

Sounds good, thanks for looking into it


[DO NOT MANUAL MERGE] Release Qualification

Trigger release qualification jobs
none

@silverdev: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-e2e-rbac-no_auth.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-no_auth

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@silverdev: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-e2e-rbac-no_auth.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-no_auth

prow/daily-e2e-rbac-no_auth-default.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-no_auth-default

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@silverdev: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-e2e-rbac-no_auth.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-no_auth

prow/daily-e2e-rbac-no_auth-default.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-no_auth-default

prow/daily-e2e-rbac-auth.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-auth

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@silverdev: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-e2e-rbac-no_auth.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-no_auth

prow/daily-e2e-rbac-no_auth-default.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-no_auth-default

prow/daily-e2e-rbac-auth.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-auth

prow/daily-e2e-rbac-auth-default.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-auth-default

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@silverdev: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-e2e-rbac-no_auth.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-no_auth

prow/daily-e2e-rbac-no_auth-default.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-no_auth-default

prow/daily-e2e-rbac-auth.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-auth

prow/daily-e2e-rbac-auth-default.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-auth-default

prow/daily-e2e-cluster_wide-auth.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-cluster_wide-auth

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@silverdev: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-e2e-rbac-no_auth.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-no_auth

prow/daily-e2e-rbac-no_auth-default.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-no_auth-default

prow/daily-e2e-rbac-auth.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-auth

prow/daily-e2e-rbac-auth-default.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-rbac-auth-default

prow/daily-e2e-cluster_wide-auth.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-cluster_wide-auth

prow/daily-e2e-cluster_wide-auth-default.sh
c42a102a9d1092a571f14dbae01134fbc7374269
link
/test daily-e2e-cluster_wide-auth-default

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Remove TODO from Browserify transition

Whoops, left this in during the Browserify transition.

:+1:  no worries


Move metric requirement level definition from spec to semconv repo

Metrics requirement levels makes sense in a scope of semantic convention and the corresponding doc https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/metric-requirement-level.md should belong in this repo.
Note: attribute requirement levels live in the semconv - https://github.com/open-telemetry/semantic-conventions/blob/0220d78f63e088a50fe8e4f827b97a28a42aeb23/docs/general/attribute-requirement-level.md

I guess we will have to modify all conventions after the move, but that's doable with a find/replace all :). I can fix it if you are not already on it.

I didn't get to it, so please go ahead if you can. Thanks!


Upstream merge november 2021

Describe problem solved by this pull request
@tstastny @acfloria While we rolled back develop to the release https://github.com/ethz-asl/ethzasl_fw_px4/releases/tag/v1.12.0-21.10.0, I have put our upstream merge into this PR
Describe your solution
Notable changes

TECS height rate setpoints
Online airspeed scale estimation
Fixedwing position control refactor

Test data / coverage
Tested in SITL Gazebo
make px4_sitl gazebo_plane

Additional context
Add any other related context or media.

Closing as stale


MySQL: Data too long for column 'Content' at row 1

While running recipe, in MySQL with around 150 items with around 30 fields we received the following error:
Data too long for column 'Content' at row 1
at MySql.Data.MySqlClient.MySqlDataReader.ActivateResultSet() in //src/MySqlConnector/MySql.Data.MySqlClient/MySqlDataReader.cs:line 116
at MySql.Data.MySqlClient.MySqlDataReader.CreateAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, IDictionary2 cachedProcedures, IMySqlCommand command, CommandBehavior behavior, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySql.Data.MySqlClient/MySqlDataReader.cs:line 391 at MySqlConnector.Core.CommandExecutor.ExecuteReaderAsync(IReadOnlyList1 commands, ICommandPayloadCreator payloadCreator, CommandBehavior behavior, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/CommandExecutor.cs:line 62
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQueryAsync(IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/MySql.Data.MySqlClient/MySqlCommand.cs:line 220
at Dapper.SqlMapper.ExecuteMultiImplAsync(IDbConnection cnn, CommandDefinition command, IEnumerable multiExec) in //Dapper/SqlMapper.Async.cs:line 654
at YesSql.Commands.UpdateDocumentCommand.ExecuteAsync(DbConnection connection, DbTransaction transaction, ISqlDialect dialect, ILogger logger)
at YesSql.Session.FlushAsync()
at YesSql.Session.CommitAsync()
at OrchardCore.Data.Documents.DocumentStore.CommitAsync() in /home/runner/work/OrchardCore/OrchardCore/src/OrchardCore/OrchardCore.Data/Documents/DocumentStore.cs:line 143
at OrchardCore.Environment.Shell.Scope.ShellScope.BeforeDisposeAsync() in /home/runner/work/OrchardCore/OrchardCore/src/OrchardCore/OrchardCore.Abstractions/Shell/Scope/ShellScope.cs:line 345
at OrchardCore.Environment.Shell.Scope.ShellScope.UsingAsync(Func`2 execute, Boolean activateShell) in /home/runner/work/OrchardCore/OrchardCore/src/OrchardCore/OrchardCore.Abstractions/Shell/Scope/ShellScope.cs:line 243
at OrchardCore.Recipes.Services.RecipeExecutor.ExecuteStepAsync(RecipeExecutionContext recipeStep) in /home/runner/work/OrchardCore/OrchardCore/src/OrchardCore/OrchardCore.Recipes.Core/Services/RecipeExecutor.cs:line 158
at OrchardCore.Recipes.Services.RecipeExecutor.ExecuteAsync(String executionId, RecipeDescriptor recipeDescriptor, Object environment, CancellationToken cancellationToken) in /home/runner/work/OrchardCore/OrchardCore/src/OrchardCore/OrchardCore.Recipes.Core/Services/RecipeExecutor.cs:line 102
at OrchardCore.Recipes.Services.RecipeExecutor.ExecuteAsync(String executionId, RecipeDescriptor recipeDescriptor, Object environment, CancellationToken cancellationToken) in /home/runner/work/OrchardCore/OrchardCore/src/OrchardCore/OrchardCore.Recipes.Core/Services/RecipeExecutor.cs:line 119
at OrchardCore.Recipes.Services.RecipeExecutor.ExecuteAsync(String executionId, RecipeDescriptor recipeDescriptor, Object environment, CancellationToken cancellationToken)

We looked at the definition of "Document" Table in MySQL
CREATE TABLE <tablePrefix_Document (
Id int NOT NULL,
Type varchar(255) NOT NULL,
Content text,
Version bigint DEFAULT '0',
PRIMARY KEY (Id),
KEY IX_Document_Type (Type)
)
Looks like, it Content Field is "Text", should we ahead and make it LONGTEXT?
The first result in google says this:
TEXT is a string data type that can store up to 65,535 characters. TEXT is commonly used for brief articles.
LONGTEXT is a string data type with a maximum length of 4,294,967,295 characters.

It has only ContentTypes and ContentParts Definition.
I have linked the file here.
Happy to do a PR for this, just point me to file where the change is [needed.]
https://file.io/fKJZVc4ugVHq (Can only download once)
File length: 184051 and it is way above the allowed length for text field: 65,535 in MySql!

For Infos @sebastienros
This is a ContentDefinition recipe, so single document being imported.

Any known caveat with using LongText? Can you create a PR to use this type and see if all test pass on the ci?

I am also experiencing this issue. First when adding a widget template to an existing tenant. Altering the 'document' table 'Content' column type to BigText resolved the isssue but I now have the problem when creating a new tenant from the recipe. Need some way to alter the table before or during the setup.

Trying to implement the solution but can't build the yessql.core project (in visual studio 2019), hundreds of syntax error in the services/DefaultQuery.cs on the MethodMappings.


Fix commandline in README

flatcc -cr only generates common_reader, but not the protocol reader. So I think flatcc -cr --reader to also generate protocol reader is better for introducing "Reading a Buffer".

I wonder if it is a bug in the command line parser.

I wonder if it is a bug in the command line parser.

I don't think it is an implementation bug.
In help document here:

--reader is the default option to generate reader output but can be used
explicitly together with other options that would otherwise disable it

Then if given option -cr, parser would treat it as shortcut of --common --receusive.

Yes you right, thanks!


new accounts, if started at URL for a narrow, should be directed there after account creation

I open up a new browser window in which I am not logged into any Zulip realm.
I go to https://zulip.tabbott.net/#narrow/stream/general/subject/welcome .
I create a new account.
I'm taken to the general realm tutorial, and when I skip it, I'm not taken directly to the particular stream & topic for that narrow. It would be great if I were.

@rishig This conflicts with our welcome PM with Bot right?

yeah, this should take precedent, though. I.e. if no narrow is specified, it should go to welcome bot, otherwise it should go directly to the narrow.

@zulipbot claim

@zulipbot claim

I seem to recall this was alread fixed by @adnrs96; @JayjeetAtGithub can you test whether the flow works as described already?

No , the issue is still present

@zulipbot abandon


[Netcast] Rewind/Fast Forward don't work but they are returned in capabilities

Using Connect SDK version 1.4.3, when connected to a Netcast device when I query if the fast forward is supported using:
[self.LGDevice hasCapability:kMediaControlFastForward]
and I receive YES, but when I actually try to use the functionality:
[self.mediaControl fastForwardWithSuccess:^(id responseObject) {}
failure:^(NSError *error) {}];
I always receive in the completion block the following error:
Error Domain=com.lge.connectsdk.error
Code=1100 "This feature is not supported."
UserInfo=0x17738b30 {NSLocalizedDescription=This feature is not supported.}
Please let me know if any additional info is required.

Fixed as part of https://github.com/ConnectSDK/Connect-SDK-iOS-Core/commit/7d55ee61b557102bc37ebf8747d30ce0827112d0


add to ACF that there be an overview description of access control system

to satisfy atsec comment.  it is reasonable to provide e.g.:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa374860(v=vs.85).aspx

i will augment the assurance activity

AA now augmented, using the original text.


Custome Error Message after block action.

Hi, I am trying to validate user input using block action. I am getting callback in app.blockAction(block_id,....).
But after validating I am not able to send custom error message in opened view. I am using below method to send error message.
 app.blockAction("input_name", new BlockActionHandler() {
            @Override
            public Response apply(BlockActionRequest req, ActionContext ctx) throws IOException, SlackApiException {

                if (req.getPayload().getView().getState() != null && req.getPayload().getView().getState().getValues() != null && req.getPayload().getView().getState().getValues().containsKey("input_name_block") && req.getPayload().getView().getState().getValues().get("input_name_block").get("input_name").getValue().equals("1234")) {

                    String errorResponse = "{" + "\"response_action\": \"errors\"," + "\"errors\": {" + "\"input_name_block\": \"Please enter valid Name.\"" + ",\"radio_block\": \"Please enter valid Name.\"" + "}" + "}";

                    return ctx.ackWithJson(errorResponse);

                }
                return ctx.ack();
            }
        });

But after call this method ctx.ackWithJson(errorResponse); modal view is not updating with error message.
Can you please help me how can I send error message to modal view after user input? Without submit button click.
I am using socket mode connection.

Hi @jays95jp, thank you for asking the question. Unfortunately, it's not possible to display a red-colored error to an input block in response to a block_actions type request (corresponding to the app.action handler pattern in Bolt code). The feature for input validation is only available for view_submission requests (which corresponds to app.view in Bolt).
I understand this might not be the ideal solution you were hoping for, but I hope this helps to clarify the current functionality.

Thanks for quick reply @seratch
Can we add this as enhancement? This is one request from my end.
One more question:
If we validate field in view_submission . but what if validation taking more then 3-5 sec? can we ack after 5-6 sec or any way to increase that ack time?

@jays95jp

Can we add this as enhancement? This is one request from my end.

Unfortunately, this would require substantial changes on the Slack platform side, and there are no plans to implement such a feature in the near term.

If we validate field in view_submission . but what if validation taking more then 3-5 sec? can we ack after 5-6 sec or any way to increase that ack time?

Your app.view listener still must respond within 3 seconds. Also, there's no option to extend this response time.
I'm sorry for saying no to all your questions here, but I hope the information is helpful regardless.

Thanks for adding reactions! Let me close this issue now, but please feel free to write in whenever you have anything else!


[Go_router] Add current and next uri to redirects

Use case
I want to access the current uri from inside a redirect function. While it's possible today, it is a bit ugly.
Let's take this common scenario, of unprotected and protected routes:

/products/:id (unprotected)
/products/:id/edit ( requires account)
/suppliers/:id (unprotected)
/suppliers/:id/edit (requires account)
/create-account (requires authentification)
/sign-in

Due to how go_router redirection work, when an unauthenticated user is on /products/:id and access /products/:id/edit he will be redirected to /create-account then finally to /sign-in. The page stack will only contain the /sign-in page. Since there is only one page on the stack, the Scaffold will not display a BackButton, rendering the user stuck on the /sign-in page.
As of today it is possible to display a BackButton by adding it manually to the scaffold and somehow get access to the current uri in the redirect method to redirect to :  /sign-in?onSuccess=the-url-user-wanted-to-access&onNavBack=previous-url (note onNavBack query param) to allow navigation to the previous page.
Proposal
The proposal is to give the current state and the next state to the redirect function.  Currently only the target state is passed.
IE: transform
/// The signature of the redirect callback.
typedef GoRouterRedirect = FutureOr<String?> Function(
    BuildContext context, GoRouterState state);

into
typedef GoRouterRedirect = FutureOr<String?> Function(
    BuildContext context,
    GoRouterState current,
    GoRouteState next,
);

@chunhtai

Do you have some example to show case how would one use this new API and the expectation?

Yes I can since I wrap go router currently to add this functionality.

It sounds like you want to redirect by push?

I've explored many solutions for my use case including redirecting by push (as I said I wrap go router). I'd advice in threading carrefully if you end up implementing that proposal and thing of different scenarios where there are multiple redirects after another. I tried with this method but couldn't manage to make it work gracefully enough for my taste but I cannot give details on top of my head
That being said here is how I achieved what I wanted:
=> on redirect: add success uri and nav back uri to query parameters. The success uri being the next uri in my proposal since it's the one that was originally accessed before redirect. The nav back uri is the current uri in my proposal.
Here is a copy paste:

  Uri addReturnUrlsQueryParam({
    // the uri we are currently
    required Uri? current,
    // the uri we are redirected to next
    required Uri redirect,
    // the uri we wanted to be at
    required Uri target,
    // the uri where we go to on nav back
    required Uri? onNavBack,
  }) {
    // if the link already contains redirectTo use those instead
    Map<String, String> queryParams = {
      ...(current?.queryParameters ?? {}),
      ...target.queryParameters
    };

    final currentOnSuccess = queryParams[_uriOnSuccessKey];
    final currentOnNavBack = queryParams[_uriOnNavBackKey];
    if (currentOnSuccess == null) {
      queryParams = {
        ...queryParams,
        _uriOnSuccessKey: Uri.encodeComponent(target.path),
      };
    }
    if (currentOnNavBack == null && onNavBack != null) {
      // we cant have success and nav back be the same
      if (Uri.encodeComponent(onNavBack.path) !=
          queryParams[_uriOnSuccessKey]) {
        queryParams = {
          ...queryParams,
          _uriOnNavBackKey: Uri.encodeComponent(onNavBack.path),
        };
      }
    }

    redirect = redirect.replace(queryParameters: queryParams);
    return redirect;
  }

Design doc to add this feature http://flutter.dev/go/go-router-redirect

To add context to this, there are other scenarios where this might be useful.
Here is my current use-case.
In our app we are currently leveraging Stripe Checkout (no-code solution) for letting users setup a payment method. In order to do that we open a browser for the user as soon as the backend has been able to generate the checkout session URL. That session also contains a cancelUrl and a successUrl callbacks.
Those callback are configured as deep-links so that the app is opened when the user either complete the setup of the payment method or cancel.
Our intended behaviour in this case is to prevent any navigation and simply display a SnackBar in case of success. This is currently not possible to achieve with the current redirect method because by not having access to the current path we can't "cancel" the redirect by returning the same path, nor we can return null because this will end up in the errorPageBuilder as the route from the deep-link is not registered.
In our scenario this is an issue becase the navigation from the deep link can be triggered from multiple pages in the app, so we can't simply hard-code the redirection but we need to know where the user were to redirect them correctly.
Hopefully this adds some more priority to the issue.


Can Spring Cloud Azure starter for App Configuration work with App Configuration Config

The spring-cloud-azure-starter-appconfiguration uses the prefix spring.cloud.azure.appconfiguration and the azure-spring-cloud-starter-appconfiguration-config also uses the same prefix. Can these two work together?

Can work together, the test steps are as follows:

Add the following to pom.xml.

    <dependency>
      <groupId>com.azure.spring</groupId>
      <artifactId>azure-spring-cloud-starter-appconfiguration-config</artifactId>
      <version>2.2.0</version>
    </dependency>
    <dependency>
      <groupId>com.azure.spring</groupId>
      <artifactId>spring-cloud-azure-starter-appconfiguration</artifactId>
      <version>4.0.0-beta.3</version>
    </dependency>

Create an App Configuration, import the following data file 'sample-data.json' into App Configuration.

{
  "/application/config.message": "hello from default application",
  "/application_dev/config.message": "hello from default application dev profile",
  "/foo/config.message": "hello from foo application",
  "/foo_dev/config.message": "hello from foo application dev profile"
}

Configure the bootstrap.yaml.

spring:
  cloud:
    azure:
      appconfiguration:
        stores:
          - connection-string: ${CONFIG_STORE_CONNECTION_STRING}
        connection-string: ${CONFIG_STORE_CONNECTION_STRING}

Change the connection-string value with the Access Key value of the App Configuration.
4. Code.
@SpringBootApplication
@EnableConfigurationProperties(MessageProperties.class)
public class AzureConfigApplication {
    public static void main(String[] args) {
        SpringApplication.run(AzureConfigApplication.class, args);
    }
}

@ConfigurationProperties(prefix = "config")
public class MessageProperties {
    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}

@RestController
public class HelloController {

    @Autowired
    ConfigurationClient  configurationClient;

    private final MessageProperties properties;

    public HelloController(MessageProperties properties) {
        this.properties = properties;
    }

    @GetMapping
    public String getMessage() {

        ConfigurationSetting configurationSetting =
            configurationClient.getConfigurationSetting("/application_dev/config.message",null);

        System.out.println(configurationSetting.getValue());

        return "Message: " + properties.getMessage();
    }
}

Start the application.
Access http://localhost:8080, it return Message: hello from default application.
The console will print the following information:

hello from default application dev profile

Also works together when the value of connection-string in 'bootstrap.yaml' is different.

@mrm9084 fyi.

@saragluna I think part of it was being able disable one without the other because they share spring.cloud.azure.appconfiguration.enabled as a config.

Given more users will choose the configuration client:

For most cases, users will use the configuration client, and if no connection string is provided for the other, the auto-configuration of the raw client won't be enabled.
For some other cases, users use the raw client auto-configuration only, then they won't add the configuration client to the classpath.

Closing this issue now.


Release using github actions

Depends on #49
Closes #45

[x] Release pipeline structure
[x] Rebase #49

Rebased #49


Add Athelete sort in Python in HackerRank

Description
Added Athelete sort solution in Python along with the problem in HackerRank Folder.
Fixes #458
Type of change

[ ] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works

@Ayush7614 please merge under LMG - SOC


model_downloader: use yaml.safe_load to prevent configs from executing arbitrary code

This will also test how well the --num_attempts option works, as I've just enabled it in our CI.


Router should not prevent default if meta keys are held down (e.g. Ctrl + Click)

I can help with this one, it seems like there just needs to be a couple if statements in router.rs where ev.prevent_default() is called, and we'll check whether let ctrl_key_pressed: bool = ev.clone().unchecked_into::<KeyboardEvent>().meta_key(); is true/false?

I can help with this one, it seems like there just needs to be a couple if statements in router.rs where ev.prevent_default() is called, and we'll check whether let meta_key_pressed: bool = ev.clone().unchecked_into::<KeyboardEvent>().meta_key(); is true/false?

Go ahead! There are also a few other meta keys which need to be checked for as well: meta, ctrl, shift and alt. The router in SvelteKit might be a good reference:
https://github.com/sveltejs/kit/blob/8854e2ffc48cf653854828f6ac19b2ce620535a6/packages/kit/src/runtime/client/router.js#L103