[Bug]: Misleading error on old docker version (19), node segfaults

Describe the bug
At least with 19.03.13 opensearch and dashboards 2.10.0 containers are unable to start.
Dashboards exits with
"Could not find a Node.js runtime binary bundled with OpenSearch Dashboards or on the system" (bin/use_node)
Actually node is segfaulting (https://github.com/nodejs/node/issues/43064)
ulimits have been set, but no effect.
starts:
docker run -it opensearchproject/opensearch-dashboards:2.9.0
doesn't start:
docker run -it opensearchproject/opensearch-dashboards:2.10.0
Furthermore, opensearch container exits with java not found in JAVA_HOME. I haven't looked into this, just upgraded docker to get it working.

Expected behavior
Print some error message that the binary exists but fails to start.
Screenshots
If applicable, add screenshots to help explain your problem.
Host / Environment
No response
Additional context
No response
Relevant log output
No response

Hi,
I have updated docker to >19 and everything works fine with that. So, for me not a problem. But maybe the start scripts should not write something about missing binaries (node,java) when they are actually just segfaulting.

[Untriage]
Hey @maaaax looks to me this is coming from the OpenSearch Dashboards itself and not specific to the docker image.
Related PR's that might cause this issue.
https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4151/files
https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4237
@AMoo-Miki can you please add your thoughts?
Adding @peterzhuamazon @gaiksaya @bbarani should this be moved to OpenSearch Dashboards repo?

Adding @peterzhuamazon @gaiksaya @bbarani should this be moved to OpenSearch Dashboards repo?

Yeah makes sense. If the docker image or any path needs to change in order to resolve this I believe dashboards team would be able to point it out.

@AMoo-Miki @joshuarrrr @kavilla @ashwin-pc Can you please provide your inputs here?

Dashboards exits with
"Could not find a Node.js runtime binary bundled with OpenSearch Dashboards or on the system" (bin/use_node)

use_node logic hasn't changed between OSD 2.9 and 2.10. However, OSD 2.9 shipped with Node.js v16 while OSD 2.10 shipped with Node.js v18. Based on the comments though, i think that neither of the Node.js binaries shipped are working on that environment which is odd. Even if the environment cannot run Node.js v18, the fallback, Node.js v14 should work.
Will need to recreate this on my own to figure what is wrong.

Seems both are not working:
[opensearch-dashboards@90a3a8c1a2d4 ~]$ ./node/bin/node
./node/bin/node[16]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
 1: 0xb7a940 node::Abort() [./node/bin/node]
 2: 0xb7a9be  [./node/bin/node]
 3: 0xbe98be  [./node/bin/node]
 4: 0xbe99a1 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [./node/bin/node]
 5: 0xb38f5b node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [./node/bin/node]
 6: 0xb395ab node::Start(int, char**) [./node/bin/node]
 7: 0x7fdbb5a80eb0  [/lib64/libc.so.6]
 8: 0x7fdbb5a80f60 __libc_start_main [/lib64/libc.so.6]
 9: 0xabbdee _start [./node/bin/node]
Aborted (core dumped)

[opensearch-dashboards@90a3a8c1a2d4 ~]$ ./node/fallback/bin/node
./node/fallback/bin/node[17]: ../src/node_platform.cc:61:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
 1: 0xa3ad50 node::Abort() [./node/fallback/bin/node]
 2: 0xa3adce  [./node/fallback/bin/node]
 3: 0xaab67e  [./node/fallback/bin/node]
 4: 0xaab746 node::NodePlatform::NodePlatform(int, v8::TracingController*) [./node/fallback/bin/node]
 5: 0xa03445 node::InitializeOncePerProcess(int, char**) [./node/fallback/bin/node]
 6: 0xa03971 node::Start(int, char**) [./node/fallback/bin/node]
 7: 0x7f9a4afddeb0  [/lib64/libc.so.6]
 8: 0x7f9a4afddf60 __libc_start_main [/lib64/libc.so.6]
 9: 0x98c5bc  [./node/fallback/bin/node]
Aborted (core dumped)

[opensearch-dashboards@90a3a8c1a2d4 ~]$ md5sum ./node/bin/node
3a6340fd551f42e26e9fb4647add7029  ./node/bin/node
[opensearch-dashboards@90a3a8c1a2d4 ~]$ md5sum ./node/fallback/bin/node
14f81269fb91b3765b2d820ac61aba38  ./node/fallback/bin/node

2.9.0 works within the same setup:
docker run -it --rm opensearchproject/opensearch-dashboards:2.9.0 bash
[opensearch-dashboards@12dd23044b26 ~]$ ./node/bin/node --version
v16.20.0
[opensearch-dashboards@12dd23044b26 ~]$ ./node/fallback/bin/node --version
v14.21.3

[opensearch-dashboards@12dd23044b26 ~]$ md5sum ./node/bin/node
9f99a1ebb0b6258cb289668cb2f7d211  ./node/bin/node
[opensearch-dashboards@12dd23044b26 ~]$ md5sum  ./node/fallback/bin/node
14f81269fb91b3765b2d820ac61aba38  ./node/fallback/bin/node

I think it's solved.
docker run -it --rm opensearchproject/opensearch:2.10.0 java -version
[0.007s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.

this, by googling, led me to adding "--security-opt seccomp=unconfined" to docker run.
java, node 14 and 18 are working with that option!

Hi, @maaaax , happy to learn that you have found the way out on this issue.
I wasn't able to mimic the entire enviorment to reproduce the error actually ..but seems you are good to move forward now, I am going to close this issue, please reopen it if you are still facing the same error, thanks a lot!!
$ docker run -it --rm opensearchproject/opensearch-dashboards:2.10.0 bash
Unable to find image 'opensearchproject/opensearch-dashboards:2.10.0' locally
2.10.0: Pulling from opensearchproject/opensearch-dashboards
6a2bb1614d2d: Pull complete
2a5558b59856: Pull complete
fee9452241ea: Pull complete
4cd4143d3f95: Pull complete
61cc9912a0bd: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:485a0019e5d62c8b98ba43b004656a4f9a0bad3fb397ba18b5ab0b64e3f23e15
Status: Downloaded newer image for opensearchproject/opensearch-dashboards:2.10.0
[opensearch-dashboards@220ef219d1f2 ~]$ ./node/bin/node
Welcome to Node.js v18.16.0.
Type ".help" for more information.
> .exit
[opensearch-dashboards@220ef219d1f2 ~]$ ./node/bin/node --version
v18.16.0
[opensearch-dashboards@220ef219d1f2 ~]$


TextSprite character color vs. SceneObject fadeTo

If a character of a TextSprite object is set to a color using setCharacterBlendColor, using the method fadeTo of the TextSprite will fade all letters except the ones set via setCharacterBlendColor.
Ideally, I think that the SceneObject-level commands dealing with alpha or blendcolor should override per-character modifications.

I actually use the fact that it doesn't in the hidden word demo in the character toy.  I take it you would like to have fadeTo make the multi-color word change to a single color?  That sounds useful, but it would probably take a special fading function unique to the text sprite.  That way it wouldn't break the existing functionality which also has use cases.

Your call, It can easily be circumvented with quick and easy script but I just think it deserves to be discussed.


add BMX token

This Criteria has not been met for this to be merged:

[ ] PR should include link to official project website referencing the suggested address.
[ ] Project website should include explanation of project.
has not been provided
[ ] Project should have clear signs of activity, either traffic on the network, activity on GitHub, or community buzz.
[ ] Must have a 'NEUTRAL' reputation or 'OK' reputation on Etherscan.

official web site  referencing the suggested address contract address
explanation of BMX white paper

https://support.bitmart.com/hc/en-us/articles/360004830473-BMX

https://support.bitmart.com/hc/zh-cn/articles/360004830473-BMX

We have completed the missing data, Please check it again.Thank you！

We have completed the missing data, Please check it again.Thank you！

We have completed the missing data, Please check it again.Thank you！

We have completed the missing data, Please check it again.Thank you


Grant all tables in schema fixup

This pull request addresses the issues in:

https://github.com/puppetlabs/puppetlabs-postgresql/pull/1056
https://github.com/puppetlabs/puppetlabs-postgresql/pull/1095

In summary, the problem was that the code was working for adding a single privilege or ALL PRIVILEGES a single table but failed to invoke the necessary changes if there was one or more tables already present that had the required single privilege or all privileges.
I have included the code from https://github.com/puppetlabs/puppetlabs-postgresql/pull/1056 verbatim, and adapted it for the case of ALL PRIVILEGES
The code in pull request 1056 is a bit more readable than the original code, I feel.
I have also updated the associated tests in grant_spec.rb to detect the original problem.

Thanks for submitting the PR @georgehansper.

Thanks @sheenaajay for merging this PR


Java 8 release / 0.11.1

Is java8 still supported? Up to 0.10.0 the addon was released for both Java 8 and Java 11. Starting with 0.10.1 there is no Java 8 release.

@javier-godoy it is somewhat supported, yes. Version 0.11.1.java8 is available in Vaadin Directory, but only as a zip for now, not as a maven dependency (because out of a sudden the Directory requested version numbers to be a correct semver). I will try to fix it by uploading 0.11.1-java8 at some point during the weekend.
Personally, I wanted to retire Java 8 versions, but given the backlash I think I have to reconsider ;)


Macro expansion fails when expanding binary opeartor

I defined Foo and macro to define operators for Foo as below.
class Foo
  property :val

  def initialize(@val)
  end

  macro op(op)
    def {{op.id}}(other : Foo)
      l, r = self.val, other.val
      l {{op.id}} r
    end
  end

  op :<
end

Foo.new(42) < Foo.new(42)

However, above code generated below error.
Error in ./foo.cr:14: macro didn't expand to a valid program, it expanded to:

================================================================================
--------------------------------------------------------------------------------
  1.     def <(other : Foo)
  2.       l, r = self.val, other.val
  3.       l {{op.id}} r
  4.     end
  5.
--------------------------------------------------------------------------------
Syntax error in expanded macro: op:3: unexpected token: r

      l {{op.id}} r
                  ^

================================================================================

  op :<
  ^~

I suppose that it is a bug of parser because compilation succeeded when changing the code to below.
(l) {{op.id}} (r)

Environment

Crystal 0.7.1
OS X 10.9

@rhysd Thanks, fixed!
As a workaround, instead of l and r if you use left and right it works ok

@asterite
Thanks!
I'll use longer name as you said.


oVirt.hosted-engine-setup is not available in ansible galaxy

From some reason oVirt.hosted-engine-setup is not released in galaxy.
ERROR:
16:21:13 - downloading role 'hosted-engine-setup', owned by oVirt
16:21:14  [WARNING]: - oVirt.hosted-engine-setup was NOT installed successfully: -
16:21:14 sorry, oVirt.hosted-engine-setup was not found on https://galaxy.ansible.com.

same for oVirt.shutdown-env

@tiraboschi Can you please rename those to using _ instead of -, or ask Galaxy maintainers to rename those roles for you?

@irosenzw can you please take a look?

@tiraboschi Can you please rename those to using _ instead of -, or ask Galaxy maintainers to rename those roles for you?

Can you please provide a more detailed description of the procedure to follow?

Development moved to https://github.com/ovirt/ovirt-ansible-collection If this is still relevant, please reopen there.


chore(deps): update all non-major dependencies

This PR contains the following updates:

Package
Type
Update
Change

@typescript-eslint/eslint-plugin
devDependencies
minor
5.28.0 -> 5.29.0

@typescript-eslint/parser
devDependencies
minor
5.28.0 -> 5.29.0

eslint (source)
devDependencies
minor
8.17.0 -> 8.18.0

prettier (source)
devDependencies
minor
2.6.2 -> 2.7.1

renovatebot/github-action
action
minor
v32.83.3 -> v32.91.1

typescript (source)
devDependencies
patch
4.7.3 -> 4.7.4

wireit
devDependencies
minor
0.5.0 -> 0.7.0

Release Notes

typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
v5.29.0
Compare Source
Note: Version bump only for package @typescript-eslint/eslint-plugin

typescript-eslint/typescript-eslint (@typescript-eslint/parser)
v5.29.0
Compare Source
Note: Version bump only for package @typescript-eslint/parser

eslint/eslint
v8.18.0
Compare Source
Features

a6273b8 feat: account for rule creation time in performance reports (#15982) (Nitin Kumar)

Bug Fixes

f364d47 fix: Make no-unused-vars treat for..of loops same as for..in loops (#15868) (Alex Bass)

Documentation

4871047 docs: Update analytics, canonical URL, ads (#15996) (Nicholas C. Zakas)
cddad14 docs: Add correct/incorrect containers (#15998) (Nicholas C. Zakas)
b04bc6f docs: Add rules meta info to rule pages (#15902) (Nicholas C. Zakas)
1324f10 docs: unify the wording referring to optional exception (#15893) (Abdelrahman Elkady)
ad54d02 docs: add missing trailing slash to some internal links (#15991) (Milos Djermanovic)
df7768e docs: Switch to version-relative URLs (#15978) (Nicholas C. Zakas)
21d6479 docs: change some absolute links to relative (#15970) (Milos Djermanovic)
f31216a docs: Update README team and sponsors (ESLint Jenkins)

Build Related

ed49f15 build: remove unwanted parallel and image-min for dev server (#15986) (Strek)

Chores

f6e2e63 chore: fix 'replaced by' rule list (#16007) (Milos Djermanovic)
d94dc84 chore: remove unused deprecation warnings (#15994) (Francesco Trotta)
cdcf11e chore: fix versions link (#15995) (Milos Djermanovic)
d2a8715 chore: add trailing slash to pathPrefix (#15993) (Milos Djermanovic)
58a1bf0 chore: tweak URL rewriting for local previews (#15992) (Milos Djermanovic)
80404d2 chore: remove docs deploy workflow (#15984) (Nicholas C. Zakas)
71bc750 chore: Set permissions for GitHub actions (#15971) (Naveen)
90ff647 chore: avoid generating subdirectories for each page on new docs site (#15967) (Milos Djermanovic)

prettier/prettier
v2.7.1
Compare Source
diff
Keep useful empty lines in description (#13013 by @chimurai)

v2.7.0
Compare Source
"""
First line
Second Line
"""
type Person {
name: String
}

renovatebot/github-action
v32.91.1
Compare Source
See the the changelog for changes in all releases.
32.91.1 (2022-06-20)
Bug Fixes

deps: update dependency renovate/renovate to v32.91.1 (1fde664)

v32.90.0
Compare Source
See the the changelog for changes in all releases.
32.90.0 (2022-06-19)
Bug Fixes

deps: update dependency renovate/renovate to v32.90.0 (ee86517)

v32.89.1
Compare Source
See the the changelog for changes in all releases.
32.89.1 (2022-06-17)
Bug Fixes

deps: update dependency renovate/renovate to v32.89.1 (b183ae7)

v32.89.0
Compare Source
See the the changelog for changes in all releases.
32.89.0 (2022-06-16)
Bug Fixes

deps: update dependency renovate/renovate to v32.89.0 (b11debd)

v32.88.0
Compare Source
See the the changelog for changes in all releases.
32.88.0 (2022-06-16)
Bug Fixes

deps: update dependency renovate/renovate to v32.88.0 (1308000)

v32.87.0
Compare Source
See the the changelog for changes in all releases.
32.87.0 (2022-06-15)
Bug Fixes

deps: update dependency renovate/renovate to v32.87.0 (b8ad509)

v32.86.0
Compare Source
See the the changelog for changes in all releases.
32.86.0 (2022-06-14)
Bug Fixes

deps: update dependency renovate/renovate to v32.86.0 (0c6fce7)

v32.85.0
Compare Source
See the the changelog for changes in all releases.
32.85.0 (2022-06-14)
Bug Fixes

deps: update dependency renovate/renovate to v32.85.0 (f366c58)

Microsoft/TypeScript
v4.7.4
Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the

fixed issues query for Typescript 4.7.0 (Beta).
fixed issues query for Typescript 4.7.1 (RC).
fixed issues query for Typescript 4.7.2 (Stable).
fixed issues query for Typescript 4.7.3 (Stable).
fixed issues query for Typescript 4.7.4 (Stable).

Downloads are available on:

npm
Visual Studio 2022/2019 (Select new version in project options)
NuGet package

google/wireit
v0.7.0
Compare Source
Removed

[Breaking] stdout/stderr are no longer replayed. Only if a script is
actually running will it now produce output to those streams.

v0.6.1
Compare Source
Fixed

Fix out of date files from 0.6.0.

v0.6.0
Compare Source
Added

You can now pass arbitrary extra arguments to a script by setting them after a
double-dash, e.g. npm run build -- --verbose.

If you're using Yarn Berry, you can now invoke the shared instance of wireit
at the root of your workspace from any package's scripts entry:
"scripts": {
  "build": "yarn run -TB wireit"
},

Fixed

Yarn Berry now supports watch mode.

Changed

[Breaking] Watch mode is now set using --watch instead of watch, e.g.
npm run build --watch. Using the old watch style argument will error until
an upcoming release, at which point it will be sent to the underlying script,
consistent with how npm usually behaves.

Scripts are no longer skipped as fresh if any output files were changed,
added, or removed since the previous run.

In order for a script to be skipped as fresh, it is now required to specify
the output files. Previously only input files were required.

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: pnpm-lock.yaml

real	0m1.638s
user	0m1.305s
sys	0m0.390s


Property binding with textarea doesn't work correctly

When I have any textarea on the page, value doesn't change.
I expect that value will changed when I update the property value in the model.

it was invalid using, new variant is working correctly:
<textarea class="comment" bind="{{commentText}}" maxlength="120"                     placeholder="Comment your decision in this field ..." value="{{commentText}}"></textarea>


TwitchLink does not re-download or report any incomplete segments it downloads, leading to corrupted vods. A Report.

Hiya, I’m opening this issue in response to your comment on a issue you closed, I’ll be referencing my comment that I made on it so you don’t miss it. I come with a report on the big problem that TwitchLink has, please read it all and thank you.

This issue could have a variety of causes. It's possible that the file itself is corrupted, or there may be an issue with the video player you're using. If it's neither of these, it could be related to the FFmpeg library that our program uses internally. If you're experiencing this problem frequently with different videos, please let us know. I will consider updating the internal FFmpeg in a future release if possible.

Hello, I’m happy to see you finally return knowing how busy your life is! So I’ve been using TwitchLink every day for many months and now know the issue properly to the point that I switched from mp4 to ts format for the following reasons:
With ts format, I’ve written (with the help of ai) a custom python script to detect corrupt segments in a ts video file. If any corruption is detected, I re-download the vod if it doesn’t contain muted segments, however if the vod online does contain muted after a stream finishes then with the unmuted vod I have, I manually replace the corrupted segments with uncorrupted ones using ffmpeg.
How I locate the corrupted segments is with ffprobe which will report the pts timestamp of the corrupted segment.
Anyways I’ve been dealing with the corrupted segment issue with vods on a case by case basis, archiving many channels that I work with.
I can confirm that TwitchLink does not make any attempt to re-download or report (except one time where it aborted the download because of corruption) any segments that are corrupted due to not downloading a segment fully, thus leaving in a incomplete segment.
Yt-dlp and streamlink, two programs that can download from Twitch, have a function where they can re-download segments that didn’t download correctly, reporting the error as it attempts to re-download the segment properly.
With TwitchLink, no segments that are downloaded incorrectly are either reported (unless you’re downloading using mp4 as ffmpeg reports a corrupted segment in the log file) or re-downloaded to fix the issue.
I’ve downloaded tons of vods so I know the issue at hand. If you want to test this out, simply download any vod (preferably large like ironmouse) and check the logs for any corrupted segments. For ts files, you can use ffprobe to tedt for corrupted segments.
Anyways that is my report, I’ve downloaded close to 2TB worth of vods since October and hoping that you figure out a way for TwitchLink to check if each segment it downloads is not incomplete or corrupted like in yt-dlp and streamlink.
If you need anything, do tell and thank you! I personally love the Update Track feature as it helped me archive vods that would be muted after the stream finishes! Despite the bugs, I still love and use it to this day! Yup! 😁
Originally posted by @Linden10 in https://github.com/devhotteok/TwitchLink/issues/176#issuecomment-1986304713
I like to add that, they’re times that when downloading a large vod, it’s more prone to be corrupted vs when downloading a stream through update track as it downloads a few segments per update.
This can be fixed by introducing a check if a segment downloaded fully or not. You can look at either streamlink or yt-dlp for reference on that. Hope this helps and again if you need anything, just ask and thank you!

Thank you very much for your detailed description. I will look into the issue of segments getting corrupted during download. However, implementing a solution to this problem requires significant changes to the current download process, which isn't a straightforward task. Therefore, I cannot guarantee an immediate fix. Nevertheless, I truly appreciate your thorough and helpful explanation. I will investigate this matter carefully.

Thank you very much for your detailed description. I will look into the issue of segments getting corrupted during download. However, implementing a solution to this problem requires significant changes to the current download process, which isn't a straightforward task. Therefore, I cannot guarantee an immediate fix. Nevertheless, I truly appreciate your thorough and helpful explanation. I will investigate this matter carefully.

I will patiently await your fix to this issue and thank you very much for helping.
Your welcome as well and I wish you the best devhotteok! ^_^


Can I style search bar?

As in the question, how to customize the search bar?
It's seems not be changed. Thanks~~

Same as aloglia, I note here and close the issue.
.search-bar {
  ...style...
}


How to load the video file in dataset?

Nice Job!
I have a question, This is the result of 'next(iter(data))'. What's the format of the video file 'b9bb81fd77d4930a889d17adadf83d95209f80d7eb6387933b5aacfad2c52fc7',  or can you give an example of how to load the video file?
{'clip_name:FILE': '../modelscope/hub/datasets/modelscope/Youku-AliceMind/master/data_files/b9bb81fd77d4930a889d17adadf83d95209f80d7eb6387933b5aacfad2c52fc7', 'caption': '身穿黑色上衣戴着头盔的女子在路上骑着摩托车四周还停放了一些车'}

Hi, the video will be stored in ~/.cache/modelscope/hub/datasets/xxxxxxxx

Hi, the video will be stored in ~/.cache/modelscope/hub/datasets/xxxxxxxx

Hi, I know the save path, but I don't know what video format 'xxxxxxxx' is. How can we load it or open it?

I‘m facing the same issue.

Hi, the video will be stored in ~/.cache/modelscope/hub/datasets/xxxxxxxx

Hi, I know the save path, but I don't know what video format 'xxxxxxxx' is. How can we load it or open it?

In your example, the video should be stored in ~/.cache/modelscope/hub/datasets/modelscope/Youku-AliceMind/master/data_files/b9bb81fd77d4930a889d17adadf83d95209f80d7eb6387933b5aacfad2c52fc7. It will be stored in mp4 format


Alert On Missing Meshes

Alert user when geometry.getMesh(rhino3dm.MeshType.Any) is undefined. Or generate using compute?

I think eventually we could have a feature where a logged in user could use compute, but that is down the road. Having some sort of object table UI or showing some visual bounding boxes of objects with no meshes would help


Add/Change options overlay

Hi,
I don't known if it's a bug or only not implemented or I just don't known how to use it.
Let's say I want put a replication (but can be any overlay), I want add for example
olcSpCheckpoint: 200 20
so with LDIF I'm going to make a ldapmodify on something like
dn: olcOverlay={0}syncprov,olcDatabase={1}mdb,cn=config
changetype: modify
add: olcSpCheckpoint
olcSpCheckpoint: 200 20

Can I do that with puppet-openldap module ?
I try to make something like
openldap::server::overlay { 'syncprov on dc=obspm,dc=fr':
   ensure  => present,
   options => {'olcSpCheckpoint' => '200 20'}
 }

but it's not working because (I think) inside the ldif the module create
dn: olcOverlay=syncprov,olcDatabase={1}mdb,cn=config
changetype: add
objectClass: olcConfig
objectClass: olcOverlayConfig
olcOverlay: syncprov
olcSpCheckpoint: 200 20

they don' t have the
 add: olcSpCheckpoint

regards

+1

This exact code actually works for me.
Here's my hieradata for it:
profile::openldap::server::overlays:
  'memberof on dc=foo,dc=bar':
    ensure: present
  'syncprov on dc=foo,dc=bar':
    ensure: present
    options:
      olcSpCheckpoint: '100 5'

(profile::openldap::server data is passed to create_resources('::openldap::server::overlay'...) in the profile)
The resulting entry in slapd is:
dn: olcOverlay={0}syncprov,olcDatabase={1}mdb,cn=config
objectClass: olcConfig
objectClass: olcOverlayConfig
objectClass: olcSyncProvConfig
olcOverlay: {0}syncprov
olcSpCheckpoint: 100 5

Do you still encounter that problem?

@jas01 I'm closing this because lake of activity. Feel free to reopen if you still encounter this issue.


Control buttons

Will there be an update to add control buttons, or maybe a guide to embed in the code without messing it up. my knowledge of coding is very poor, and the buttons will speed up the interaction. And even now it is very convenient to get the result remotely, and the ability to receive and send files without compression, thank you.

I have thought about it.


Update Docker Desktop release notes for <IP_ADDRESS>

Proposed changes
We're about to release an edge version of Desktop: <IP_ADDRESS>

@djs55 Do we need to add Compose 1.27.0 to the release notes?


Licence

This repo is amazing! I can't believe I've never seen it before!
Are the materials available under an open source licence? Still amazing if not, but I thought I'd ask the question.
Thanks :relaxed:

Hey @ChrisBeeley - absolutely, I've just added the MIT license so very much available under open source! I'll continue expanding this along with the Knowledge Base and will always be open to feedback, thanks 😄

Thanks! You rock! 😎


V2.0 Documentation

It would be great to have a documentation for the Business Central API V2.0 just as there is one vor V1.0.
Is there one that can be found or is it planned it release one in the near future?

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

ID: f8eb2c50-c0d1-7e64-0d00-8ad72f8a968a
Version Independent ID: f0fd2b39-733e-c38d-ad5f-02f6538d06e6
Content: API(V2.0) for Dynamics 365 Business Central - Business Central
Content Source: dev-itpro/api-reference/v2.0/index.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Hello, the topic that you link to here is v2.0 of the BC API. If you're looking for the v1.0 you can find it here: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v1.0/. Hope this helps? Thanks

Closing this issue.


remote ssh with different port number

I'm struggling to get deploy keys / hostkeys to work.
My remote git server has a non-standard port number.
Has anyone had any luck setting this up?
I've tried
sudo ssh-keyscan -p1234 git.myrepo.com >>  /home/dokku/.hostkeys/shared/.ssh/known_hosts

Not sure if this is an issue with deploy key, or host key....

I am also interested in this. When I try to run:
dokku_client.sh hostkeys:shared:autoadd mygitserver.com:2222

I get:
getaddrinfo mygitserver.com:2222: Name or service not known

It looks like this happens because ssh-keyscan wants the port to be passed in separately when it's called here. A patch could be made to split the string using something like https://stackoverflow.com/a/918931/602588 and check if there's a port number and optionally set it to be used.


Setting a breakpoint when multiple debug sessions are present not working properly

VSCode Version: 1.46.1
OS Version: Windows_NT x64 10.0.16299

Steps to Reproduce:
My extension launches 2 debug sessions for the same folder.
Let's say frontend session for src/frontend and backend session for src/backend.
When I select the frontend session from the debug control dropdown and sets a breakpoint, it seems that the breakpoint request is sent to the backend session as well. I think this is a bug because it should only be sent to the frontend session?

Does this issue occur when all extensions are disabled?: Yes/No

no, breakpoints are sent to all sessions.


Inherited annotation for commands?

I've got a couple commands that share a lot of the same structure, but differ in defaults only. I'd like to be able to specify an abstract command, with specific implementations inhering the abstract classes Command annotation. I think this can be accomplished by adding java.lang.annotation.Inherited to Command.
For example:
@Command(name = "mycommand")
abstract class MyCommand {
  abstract String getContext();
}

class MyCommandFoo extends MyCommand {
  String getContext() { return "foo"; }
}

class MyCommandBar extends MyCommand {
  String getContext() { return "bar"; }
}

Would the Inherited Command annotation be possible?

For some reason I completely missed java.lang.annotation.Inherited.
However, picocli already walks the class hierarchy looking for annotations (including @Options and @Parameters etc from the superclass) so I believe this is already working.
To expand on your example:
@Command(name = "mycommand", footer = "Top-level footer")
abstract class MyCommand {
    abstract String getContext();
}

@Command(name = "foo") // if name is omitted the name of this command becomes "mycommand"
class MyCommandFoo extends MyCommand {
    String getContext() { return "foo"; }

    public static void main(String[] args) {
        new CommandLine(new MyCommandFoo()).usage(System.out);
    }
}

@Command(name = "bar", footer = "Sub-sub footer in bar")
class MyCommandBar extends MyCommand {
    String getContext() { return "bar"; }

    public static void main(String[] args) {
        new CommandLine(new MyCommandBar()).usage(System.out);
    }
}

Now, if I run java MyCommandFoo, I see this:
Usage: foo
Top-level footer

While if I run java MyCommandBar, I see this:
Usage: bar
Sub-sub footer in bar

This proves that not only is the @Command annotation effectively inherited, you can selectively override specific attributes (the footer in the above example). If not overridden, the command inherits the attribute value from its superclass. I hope this is what you have in mind, let me know if otherwise.
That said, I will check if adding the java.lang.annotation.Inherited annotation will allow me to get rid of some logic in picocli. :-) Thanks for the pointer!

When I remove all the @Command annotation from the concrete class (and just have it on base abstract class) I get an error. Maybe it's b/c it's a subcommand?
Exception in thread "main" picocli.CommandLine$InitializationException: Subcommand com.example.FilesSetCommandUnscoped is missing the mandatory @Command annotation with a 'name' attribute

Here's a working example:
import picocli.CommandLine;
import picocli.CommandLine.Command;

class Example {

  @Command(name = "mycommand", footer = "Top-level footer")
  abstract static class CommonCommand {
    abstract String getContext();
  }

  static class FooSubcommand extends CommonCommand {

    @Override
    String getContext() {
      return "foo";
    }
  }

  static class BarSubcommand extends CommonCommand {

    @Override
    String getContext() {
      return "bar";
    }
  }

  @Command(name = "foo", subcommands = {FooSubcommand.class})
  static class Foo { }

  @Command(name = "bar", subcommands = {BarSubcommand.class})
  static class Bar { }

  @Command(
      name = "top",
      subcommands = {
        Foo.class,
        Bar.class
      }
  )
  static class TopLevel { }

  public static void main(String[] args) {
    new CommandLine(new TopLevel()).usage(System.out);
  }
}

Thanks for the example, I can see that the InitializationException no longer happens after adding the @Inherited annotation to @Command.
The existing unit tests also still pass with @Inherited added, so unless some other problem pops up, I will include this in the 4.0 release.
Thanks for raising this!

Pushed to master. Thanks for raising this!

@devinrsmith, I am afraid I will have to revert this change, since it is causing failures in other scenarios. Specifically, since this change, users can no longer have multiple levels of inheritance. See https://github.com/remkop/picocli/issues/716
For example:
@Command(subcommands = CommandLine.HelpCommand.class)
static abstract class AbstractCommand {
}

static abstract class AbstractCommandSubclass extends AbstractCommand {
}

static class ConcreteCommand extends AbstractCommandSubclass {
}

@Test
public void testNoInitializationException() {
    // if Command is @Inherited, the below line throws
    // picocli.CommandLine$InitializationException:
    // Another subcommand named 'help' already exists for command '<main class>'
    new CommandLine(new ConcreteCommand());
}

The above test fails when Command is @Inherited.
The test passes when I remove the @Inherited annotation from Command.
For now, I will simply revert this change. I have not investigated if it is possible to address #716 in a way that preserves the  @Inherited annotation, but I am open to suggestions.
For now, the impact on your application is that subcommands need a @Command annotation with a name attribute. Any other attributes, like footer etc, are inherited.

See this test that shows how to make your example work after this change.

I haven't heard any feedback, so closing this ticket.
Feel free to comment here or open another one to discuss further.


EKS Managed Node Group - Schedules not created

Description
I have followed the documentation for defining an auto-scaling schedule for my managed node group, but the schedules are never created.

[x] ✋ I have searched the open/closed issues and my issue is not listed.

Versions

Module version [Required]: 19.0.4

Terraform version: v1.4.6

Provider version(s):

+ provider registry.terraform.io/gavinbunney/kubectl v1.14.0
+ provider registry.terraform.io/hashicorp/aws v4.45.0
+ provider registry.terraform.io/hashicorp/helm v2.9.0
+ provider registry.terraform.io/hashicorp/http v3.3.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.11.0

Reproduction Code [Required]
My code looks like this:
module "eks" {
  source  = "terraform-aws-modules/eks/aws"
  version = "19.0.4"

  cluster_name    = var.cluster_name
  cluster_version = var.cluster_version

  vpc_id     = data.aws_vpc.cluster_vpc.id
  subnet_ids = data.aws_subnets.eks_private.ids

  ...
  ...
  ...

  eks_managed_node_group_defaults = merge({
    ami_type       = "AL2_x86_64"
    capacity_type  = "ON_DEMAND"
    instance_types = ["m6a.xlarge"] //m6a, AMD processor, slightly better operating cost

    block_device_mappings = {
      xvda = {
        device_name = "/dev/xvda"
        ebs = {
          volume_type = "gp3"
          volume_size = 80
        }
      }
    }

    desired_size = 3
    max_size     = 6
    min_size     = 1
    update_config = {
      max_unavailable_percentage = 50
    }
  }, var.eks_managed_node_group_defaults)

  eks_managed_node_groups = {
    gpu = {
      ami_type       = "AL2_x86_64"
      capacity_type  = "ON_DEMAND"
      instance_types = ["p2.xlarge"]

      name                = "${local.cluster_name}-gpu"
      iam_role_name       = "${local.cluster_name}-gpu"
      security_group_name = "${local.cluster_name}-gpu"

      desired_size = 1
      max_size     = 3
      min_size     = 1

      labels = {
        node_group = "gpu"
      }

      update_config = {
        max_unavailable_percentage = 50
      }

      schedules = {
        scale-up = {
          min_size     = 1
          max_size     = "-1" # Retains current max size
          desired_size = 1
          timezone     = "Mountain/Denver"
          recurrence   = "0 13 * * 1-5"
        },
        scale-down = {
          min_size     = 0
          max_size     = "-1" # Retains current max size
          desired_size = 0
          timezone     = "Mountain/Denver"
          recurrence   = "0 1 * * 1-5"
        }
      }
    }

Steps to reproduce the behavior:

tfenv use 1.4.6
terraform apply

Expected behavior
Terraform creates a managed node group with autoscaling schedule defined
Actual behavior
Autoscaling schedule is not created

try setting create_schedule = true

Same problem here with a very similar setup!
create_schedule = true did not help. Adding schedules has no effect on the resources created.

That feature only dropped in module v19.12.0 as far as i can see. @egkelly you look to be using v19.0.4
Default is create_schedule = true

Oops that was my problem too! Thanks!

Good catch, thank you!


[Jammy] Concourse deployments

In order to migrate to Jammy stemcells, we want to update our Concourse deployment to use Jammy
Acceptance Criteria

Concourse deployment is updated to use Jammy stemcell

Security considerations
None
Implementation sketch

[x] Update Concourse deployment ops file to remove bionic instead of xenial: https://github.com/cloud-gov/cg-deploy-concourse/blob/5c22641092ef1c165b3d243c8f8b36a71f70cf92/operations/use-bionic.yml#L2-L3
[x] Update default stemcell to Jammy: https://github.com/cloud-gov/cg-deploy-concourse/blob/5c22641092ef1c165b3d243c8f8b36a71f70cf92/operations/use-bionic.yml#L6-L11
[x] Rename operations/use-bionic.yml to operations/use-jammy.yml
[x] Update IAAS worker to use Jammy stemcell: https://github.com/cloud-gov/cg-deploy-concourse/blob/5c22641092ef1c165b3d243c8f8b36a71f70cf92/operations/iaas-worker.yml#L8
[x] Update all references in pipelines from Bionic to Jammy

[x] https://github.com/cloud-gov/cg-deploy-concourse/blob/5c22641092ef1c165b3d243c8f8b36a71f70cf92/ci/pipeline.yml
[x] https://github.com/cloud-gov/cg-deploy-concourse/blob/5c22641092ef1c165b3d243c8f8b36a71f70cf92/ci/pipeline-development.yml#L15

[x] Redeploy Concourse in staging: https://ci.fr.cloud.gov/teams/main/pipelines/deploy-concourse
[x] Confirm whether Concourse is working by:

Viewing the bosh deployment VMs in the jumpbox and verifying that they are healthy
Visiting https://ci.fr-stage.cloud.gov/

Tested in staging. https://github.com/cloud-gov/cg-deploy-concourse/pull/195
once production is ran this ticket will be closed


added missing dbxref [NIST:NIST] to Gray terms

fix https://github.com/bio-ontology-research-group/unit-ontology/issues/44

Thanks @mwalzer!
Hi @reality @leechuck it would be great to have this merged - any chance we could get this done?
Also if you want more help with people to review requests and merge them I can find some volunteers for this
I'm also going to make a separate PR for a CONTRIBUTING.md doc that make it easier for people like @mwalzer to contribute (e.g. it's not clear what the SOT/edit file is - is the obo made from the owl or the owl made from the obo?)

I checked and merged the PR, and some others that have accumulated. However, some additional help in maintaining UO would definitely be great. We can also move UO to its own organization where it's easier to manage different levels of contributors.
@reality should comment on the build workflow (OWL first or OBO or the other way around), I am out of touch with UO's build process now.


Improving README

Hi, I tried to run the examples in README.
In the first two, the following network is considered:
m = Chain(Conv((3, 3), 3 => 16), Conv((3, 3), 16 => 32), Dense(512, 10))

They run fine after adding x->reshape(x, prod(size(x)[1:end-1]), :) before the Dense layer.
In the last example, some variables are missing. Also, instantiating the environment of the package I got Flux 0.13.15, which got a different train! interface AFAICS in the docs.
To make it work, I rewrote it as follows
using Statistics: mean
using Flux, FluxPrune
m = Chain(Conv((3, 3), 3 => 16), Conv((3, 3), 16 => 32), x->reshape(x, prod(size(x)[1:end-1]), :), Dense(512, 10), softmax)
features = rand(Float32, 8, 8, 3, 100);
labels = Flux.onehotbatch(rand(0:9, 100), 0:9);
data = (features, labels);
opt_state = Flux.setup(Momentum(), m);
loss(m, x, y) = Flux.Losses.mse(m(x), y)
accuracy(m, data) = mean(Flux.onecold(m(data[1]), 0:9) .== Flux.onecold(data[2], 0:9))
target_accuracy = 0.1

stages = [[ChannelPrune(0.1), ChannelPrune(0.1), identity, LevelPrune(0.4), identity],
          [ChannelPrune(0.2), ChannelPrune(0.3), identity, LevelPrune(0.7), identity],
          [ChannelPrune(0.3), ChannelPrune(0.5), identity, LevelPrune(0.9), identity]
	]
m̄ = iterativeprune(stages, m) do m̄
    for epoch in 1:10
        Flux.train!(loss, m̄, [data], opt_state)
    end
    return accuracy(m̄, data) > target_accuracy
end

If my suggestions make sense, I can do a PR.

Yes a PR would be appreciated. I haven't done a good job of keeping this repo polished/up-to-date.


Gift sats:Currency change issue.

Currency was enabled as Bitcoin in top when I entered values. Then changed the currency to Pound. The values changed in some places. The change should be uniform.

Verified this issue on dev app v2.0.75(461)


EAX Reverb effect not audible

The EAX reverb effect does not seem to be audible.

Changed HRTF to built-in one. Increased gain of EAX reverb zone. These changes made it more audible and noticeable.


Sync/cf224

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.4 out of 7 committers have signed the CLA.:white_check_mark: biancaluna:white_check_mark: ThomasHurek:white_check_mark: rubyannmatias:white_check_mark: chandrumani:x: Satish Kumar:x: pmilich-hcl:x: marcvincentvistaSatish Kumar seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Write permission for this repo

Hi, I would like to obtain the permission for this repo to submit a notebook. However, the link to do so provided in the README is dead (https://github.com/orgs/LSSTDESC/teams/dc2-analysis-contributors/members). Could someone tell me how to do? Thanks.

Hi @marina-ricci - thanks for checking!  The link you gave is not dead; rather, it's restricted in access to DESC members who are members of the LSSTDESC GitHub organization.  From what I can see, GitHub thinks it has sent you an invitation to join the organization, but your invitation is still pending (i.e., not accepted by you) so you can't see restricted pages yet.  Do you see the invitation to join the LSSTDESC GitHub organization in your e-mail?  If not, it could have gone to spam, but you should be able to navigate to https://github.com/LSSTDESC and see your pending invitation anyway.  Once you accept, you should be able to see the page that is linked in the README.  Please try this and let me know if it works.
I can add a note to the README about the accessibility of the page to request write permission in this repo, so that it's clear that there are access restrictions.

@marina-ricci - glad this worked out!  I am closing this issue now that you have access.


Run cargo fix and fix some compiler warnings

Since, trait objects without an explicit dyn are deprecated, rust 1.53 prints a couple of warnings when building mican:
$ cargo build
   Compiling mican v0.3.0 (/home/cjunior/Downloads/rust/mican)
warning: trait objects without an explicit `dyn` are deprecated
  --> src/readline/context.rs:14:24
   |
14 |     pub completer: Box<Completer>,
   |                        ^^^^^^^^^ help: use `dyn`: `dyn Completer`
   |
   = note: `#[warn(bare_trait_objects)]` on by default

Here, I have run cargo fix and fixed all of those warnings.

Mind if I send a couple more fixes for compiler warnings?

Mind if I send a couple more fixes for compiler warnings?

Sure! That would help a lot


change sequence::Action to a type that takes multiple actions per rollup_id

currently, sequence::Action contains (rollup_id, rollup_tx_bytes). we want to change this to (rollup_id, vec[rollup_tx_bytes]). this prevents duplication of the 32-byte rollup_ids if there are multiple txs for the same rollup within one SignedTransaction.

closing as we're not going to do this anymore


fix(coverage): turn off mangle for runtime test

#6827  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Boshen and the rest of your teammates on  Graphite


Added meetups focusing on utilizing tech for good

added a few meetups that focuses on utilizing tech for good

Please review my pull request


Lerna caching not working

We use the new multipath caching but I realized that it is always skipped. I have seen two behaviours:

Same caching key, but says that it does not exist
Warning with No scopes with read permission were found on the request

We are using master.
No sure what is the issue, but let me know if I can help debug.

Number 2 seems to be related to https://github.com/actions/cache/issues/208#issuecomment-596664572

👋  Hey @Sytten are you still having issues?
If so, could you provide your workflow file?

I think its fine now, will reopen if I have other issues


sendorderly and delaylevel?

Hi
I have a quisition.How to syncSendOrderly with delayLevel;

@duanzonglong Delayed messages and order messages cannot be used at the same time


comm: Handle duplicated flags and output-delimiter correctly

This PR implements and tests correct handling of repeated arguments and flags.
This was non-trivial because GNU comm behaves a bit weirdly around repeated arguments for the output-delimiter:
$ comm -123 --out=X --out=X a b  # Succeeds
$ comm -123 --out=X --out=Y a b  # Fails
comm: multiple output delimiters specified
[$? = 1]
$

This PR mostly mirrors this behavior, however it cannot be done perfectly so, as indicated by the new (and ignored) test output_delimiter_multiple_different_prevents_help: Preventing --help later in the command-line because some arguments are semantically contradictory seems like a bad idea.
Note that this quirk cannot be reproduced (sensibly) with uutils-args, because Options::apply cannot indicate failure.
However, I think this difference is firmly in the territory of "irrelevant for compatibility".
This is work towards #5998.

Changes since last push:

Just rebased on current main. Looks like I created the PR while the repo was in the middle of a release cycle, which caused some weird inconsistent version numbers.

Good work, thanks :)


Unable to open share link in the Invite Panel

Hi there,
I'm having trouble accessing the share link in the Invite Panel by pressing the share link button and it just shows me a popup saying there's trouble loading my share link. Any thoughts on what is missing here?
Update: I figured that the link would appear fine if I switch to my primary account on device which is also linked to my personal facebook account, but won't work if I use the other account added to the device and it was initially created through my work email.
Thanks!

Hi @nancywan1004,
Sorry for the delay in response, we haven't been able to reproduce the issue you have noticed. Do you have some logs we might be able to look at? adb logcat would help us see if there is any issues on the device when processing the join link.
Can you make sure that both users are on the same channel for the application in the developer web portal?


How to do nested logical operator queries

I need to figure out a way to do something like the following:
SELECT * FROM users WHERE id = 123 AND male = true AND (college = 'penn state' OR college = 'harvard')
I've tried things like:
new database.User()
   .query({
      where: {id: 123},
      andWhere: {male: true},
      andWhere: {college: 'penn state' || 'harvard'}
    })
    .fetch()

You're just missing orWhere then :) Not sure why it isn't documented, but on knex's website there are lots of examples using it.

So you're saying this should work?
new database.User()
   .query({
      where: {id: 123},
      andWhere: {male: true},
      andWhere: {college: 'penn state'},
      orWhere: {college: 'harvard'}
    })
    .fetch()

It doesnt get the right results. It'll get any entries where id: 123, male: true, college: 'penn state' or any entries with college: harvard.
I need to know how to best/properly do an orWhere() call inside of an andWhere() call.

I think I found the answer:
new database.User()
   .query(function(qb) {
      var temp = where({id: 123}).andWhere({male: true});
      return temp.where({college: 'penn state'}).orWhere({college: 'harvard'});
    })
    .fetch()

I think it would be good to demonstrate this in the docs where you can make really advanced queries via a function call.


MSW not intercepting tRPC requests during testing (Jest + RTL)

Provide environment information
System:
    OS: macOS 13.4
    CPU: (10) arm64 Apple M1 Pro
    Memory: 69.83 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
Binaries:
    Node: 19.8.1 - ~/.nvm/versions/node/v19.8.1/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.5.1 - ~/.nvm/versions/node/v19.8.1/bin/npm
    pnpm: 8.8.0 - /usr/local/bin/pnpm

Describe the bug
I'm trying to unit test react components in my t3 app which are using tRPC apis like this - api.send_otp.useMutation().
Since api is not available without trpc provider context, I've created a createTRPCReact wrapper to wrap my components for testing.
This is what the wrapper looks like:
export const Trpc = createTRPCReact<AppRouter>();

const url = `http://localhost:${process.env.PORT ?? 3000}/api/trpc`;

const trpcClient = Trpc.createClient({
	transformer: superjson,
	links: [
		httpBatchLink({
			url,
		}),
	],
});

export const queryClient = new QueryClient({
	defaultOptions: { queries: { staleTime: Infinity } },
});

export const Wrapper = ({ children }: { children: ReactNode }) => {
	return (
		<Trpc.Provider client={trpcClient} queryClient={queryClient}>
			<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
		</Trpc.Provider>
	);
};

This is my simple react component:
// Component to test::
const NewComponent = () => {
	const otpMutation = api.send_otp.useMutation();

	const onclick = () => {
		otpMutation.mutate({ username<EMAIL_ADDRESS>});
	};

	return (
		<button data-testid="mutate-button" type="button" onClick={() => onclick()}>
			click
		</button>
	);
};

Test case:
// Test case:
it("testing man", async () => {
	const { getByTestId } = render(<NewComponent />);
	const button = getByTestId("mutate-button");
	await waitFor(() => {
		fireEvent.click(button);
	});
});

And finally, this is what my jest setup looks like:
import "@testing-library/jest-dom";

import { rest } from "msw";
import { setupServer } from "msw/node";

import fetch, { Request, Response, Headers } from "cross-fetch";

global.fetch = fetch;
global.Request = Request;
global.Response = Response;
global.Headers = Headers;

const handlers = [
	rest.all("*", () => {
		console.log("request coming");  // <--- this should be logged but not working
	}),
];

const server = setupServer(...handlers);

server.events.on("request:start", () => {
	console.log("request came"); // <--- this should be logged but not working
});

beforeAll(() => server.listen());

// Reset any request handlers that we may add during the tests,
// so they don't affect other tests.
afterEach(() => server.resetHandlers());

// Clean up after the tests are finished.
afterAll(() => server.close());

Mutation calls are not being intercepted, msw is working fine because I tried my test case with both a fetch call as well as directly using useMutation from react-query lib. It's just when I use tRPC api object, it doesn't work.
I feel I need to mock the api object but I'm simply not able to figure out how.
Please DO NOT close this issue without leaving a comment. Been stuck on this since yesterday and desperately looking to resolve this. I did raise this up as a question on discord server, received no response.
Reproduction repo
NA
To reproduce
NA
Additional information
I tried testing using the way mentioned in the official doc - https://github.com/t3-oss/create-t3-app/blob/313a43bda7ab24eb7e3d0531e121f540297d8479/www/src/pages/en/usage/trpc.md?plain=1#L304
const ctx = await createInnerTRPCContext({ session: null });
const caller = appRouter.createCaller(ctx);

However I'm not able to understand how do I use this for my use case. Plus, when I ran my test with those two lines, it threw this error:
Jest failed to parse a file....

   Details:

    /Users/sumit.wadhwa/Projects/training/wsp-main/node_modules/jose/dist/browser/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){export { compactDecrypt } from './jwe/compact/decrypt.js';
                                                                                ^^^^^^

    SyntaxError: Unexpected token 'export'

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.<anonymous> (node_modules/openid-client/lib/client.js:11:14)
      at Object.<anonymous> (node_modules/openid-client/lib/issuer.js:8:19)
      at Object.<anonymous> (node_modules/openid-client/lib/index.js:1:118)
      at Object.<anonymous> (node_modules/next-auth/core/lib/oauth/callback.js:7:21)
      at Object.<anonymous> (node_modules/next-auth/core/routes/callback.js:8:40)
      at Object.<anonymous> (node_modules/next-auth/core/routes/index.js:37:40)
      at Object.<anonymous> (node_modules/next-auth/core/index.js:10:38)
      at Object.<anonymous> (node_modules/next-auth/next/index.js:9:13)
      at Object.<anonymous> (node_modules/next-auth/index.js:25:37)
      at Object.<anonymous> (src/server/authentication/auth.ts:580:26)
      at Object.<anonymous> (src/server/api/trpc.ts:1320:28)
      at Object.<anonymous> (src/components/Auth/Otp/tests/LoginForm.test.tsx:13:15)

here's an example with unit tests that use mocked tRPC endpoints https://github.com/c-ehrlich/msw-trpc-example

i suck.


Compatible with Electron 21+ / V8's Memory Cage?

Hi,
I couldn't find any info on whether this is compatible with the Memory Cage of Electron 21+. Is it?
I just don't want to risk that it works on my machine and users of my application are doing something differently and it crashes for them.

From what I read, everything in my code should fit the requirements of the memory cage. Nevertheless, I never tested so I can't tell, I'll have to check.

Thanks for the clarification and for the very fast response!
That's probably enough for my use case, I'll make sure to test it intensively once all the dependencies I'm using have been updated (so far that's only 4 of 10...).
I just don't know enough about c++ to skim through the code and check.
Should we leave this issue open until I've tested and verified it? Might take some time, thought, for the reason above.


help me how to change style in B4a

hi
i use B4A app to program my android, please tell me how to change a Gause style. Thank you very much

I don't know what is B4A, but you can take a look at wiki.
Everything clear and easy to use...


delta: use chain ids to decide whether to skip a layer

With the previous code if two layers had identical contents (and diff
ids) but different parents (and different chain ids) they would be
considered common and skipped.
However the pulling code uses the chain id to decide whether it should
pull a layer so a delta created under these conditions was leading to
the pulling code trying to apply a non-existent delta.
This is fixed by using the same logic with chain ids in the generation
phase.

Updated in meta-resin: https://github.com/resin-os/meta-resin/pull/1179


Update athom-smart-plug-v2.yaml

Corrected 'throttle' to 'throttle_average'
Changed "Total Energy" update interval to follow 'sensor_update_interval' substitution
Added '- filter_out: nan' to "Energy" due to receiving nan value on boot before sensor gets setup

The nan filter can be removed as https://github.com/esphome/esphome/pull/6275 should be in the next esphome point release.


[DTLS] Add NamedCurve::P384

related: https://github.com/webrtc-rs/webrtc/issues/24
Migrated from existing PR in multi-repo: https://github.com/webrtc-rs/dtls/pull/21
@k0nserv @rainliu @melekes

@neonphog could you rebase on master so we can get a better idea of CI?

@k0nserv

@neonphog could you rebase on master so we can get a better idea of CI please?

yep : ) done :+1:

I cancelled the windows runs since they are fixed upstream on master.


Add test for url('/test.png')

Would it be possible for someone to add a test to ensure that images can be loaded from the existing SCSS CSS Modules?  It's not working for me (due to sourceMaps) and I recall this is something I ran into a while back as well.

CSS modules are about to removed, so going to close this. Sorry for the inconvenience.


FLUME-3469, Upgrade jackson core and jackson databind jar

https://issues.apache.org/jira/browse/FLUME-3469

@rgoers, How I can trigger the build for this change

@rgoers looking forward to hear from you on this


⚠ Processors has degraded performance

In a9350f7, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 89 ms

Resolved: Processors performance has improved in 190ef9c.


Update using-mock-data-with-the-odata-v2-mock-server-a428d41.md

The function in line 13 is called fromURL and not fromUrl
API Ref: https://sapui5.hana.ondemand.com/sdk/#/api/module:sap/base/util/UriParameters%23overview

Hello , thanks for your contribution! We really appreciate it and will look into this .

Fixed from 1.109

Thank you for your valuable content contribution, @VivianVenter! So that we can recognize your contribution in SAP Community, please tell us your SAP Community profile URL in a reply to this comment; don't include any other text, just the URL on its own, like this:
https://people.sap.com/your-user-name

Thanks!

https://people.sap.com/vlventer


Bed file too short?

Hi!
I have a created a bed file based on my chromosomer assembly. When I load it together with the new genome assembly in IGV it does not cover the whole chromosomes, i.e. there are parts of different length missing at the end of each chromosome. Is that a bug or am I missing something?
Best,
Hannes

Hi Hannes!
What do you mean by the new genome assembly? Is it another assembly of the same genome obtained in the different way?
Best,
Gaik

Hi Gaik,
thanks for the quick reply! I mean the chromosomer assembly and I use the bed file of the fragmentmap that was used to created this assembly. The bed file was created using the 'fragmentmapbed' command.
Best,
Hannes

Hannes,
In general, it may be expected that there will be reference chromosome regions uncovered by the fragments being assembled. Considering your case, I suppose that there were no proper alignments between the fragments and the chromosome ends because telomere regions are usually poorly assembled and contain a lot of gaps hindering the alignment procedure. You may try to modify the alignment parameters or reduce Chromosomer's ration threshold parameter (command-line option -r of chromosomer fragmentmap) from its default value of 1.2 to 1.1 or 1.05.
Best,
Gaik

Okay, thank you for help!
Best,
Hannes


Certain apps only show a black screen with Android 12

[X] I have read the FAQ.
[X] I have searched in existing issues.

Environment

OS: Windows
scrcpy version: 1.19
installation method: Windows release
device model: Google Pixel 5
Android version: 12

Describe the bug
After upgrading to Android 12 certain apps only show a black screen when viewed via scrcpy. The apps display fine when viewed directly on the device. Affected apps so far:
Google Authenticator: https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2
Austrian Green Pass app: https://play.google.com/store/apps/details?id=at.gv.brz.wallet
Bank Austria banking app: https://play.google.com/store/apps/details?id=com.bankaustria.android.olb
For all three apps the loading screen is still displayed correctly but the screen turns to black once you can interact with the app.

Yes, that's expected. Android 12 does not allow to create a display with secure flag enabled from shell anymore. See #2129.

Thanks, and sorry for not seeing the related issues, looks like I made my search parameters too narrow.
One question though, is there anything I can do to make it work? Using the modified 1.17 binaries did not make a difference for me.

is there anything I can do to make it work?

No, I don't think so. If you find one, please submit a PR :D

install disable secure flag apk.


Cannot execute this command because the version of Microsoft.EntityFrameworkCore.Design installed is not compatible with this tool.

I'm using PostgreSQL libraries, and this is driving me crazy.
I have a web application project, with .net 4.61 and .net core.
My domain entities are defined in a 'Common' project.
My db context is in a third project.
My application project.json file looks like this:
{
  "userSecretsId": "***********",

  "dependencies": {
    "BundlerMinifier.Core": "2.2.306",
    "MySolution.Common": "1.0.0-*",
    "MySolution.DataAccess": "1.0.0-*",
    "Microsoft.AspNetCore.Authentication.Cookies": "1.1.0",
    "Microsoft.AspNetCore.Authentication.Google": "1.1.0",
    "Microsoft.AspNetCore.Diagnostics": "1.1.0",
    "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "1.1.0",
    "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.1.0",
    "Microsoft.AspNetCore.Mvc": "1.1.0",
    "Microsoft.AspNetCore.Razor.Tools": {
      "version": "1.0.0-preview2-final",
      "type": "build"
    },
    "Microsoft.AspNetCore.Routing": "1.1.0",
    "Microsoft.AspNetCore.Server.IISIntegration": "1.1.0",
    "Microsoft.AspNetCore.Server.Kestrel": "1.1.0",
    "Microsoft.AspNetCore.StaticFiles": "1.1.0",
    "Microsoft.EntityFrameworkCore.Design": "1.1.0",
    "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0",
    "Microsoft.Extensions.Configuration.Json": "1.1.0",
    "Microsoft.Extensions.Configuration.UserSecrets": "1.1.0",
    "Microsoft.Extensions.Logging": "1.1.0",
    "Microsoft.Extensions.Logging.Console": "1.1.0",
    "Microsoft.Extensions.Logging.Debug": "1.1.0",
    "Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0",
    "Microsoft.NETCore.App": "1.1.0",
    "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.1.0",
    "Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
      "version": "1.0.0-preview2-final",
      "type": "build"
    },
    "Microsoft.VisualStudio.Web.CodeGenerators.Mvc": {
      "version": "1.0.0-preview2-final",
      "type": "build"
    },
    "System.Collections.Specialized": "4.3.0"
  },

  "tools": {
    "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final",
    "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final",
    "Microsoft.EntityFrameworkCore.Tools": "1.1.0-preview4-final",
    "Microsoft.EntityFrameworkCore.Tools.DotNet": "1.1.0-preview4-final",
    "Microsoft.Extensions.SecretManager.Tools": "1.0.0-preview2-final",
    "Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
      "version": "1.0.0-preview2-final",
      "imports": [
        "portable-net45+win8"
      ]
    }
  },

  "frameworks": {
    "netcoreapp1.0": {
      "imports": [
        "dotnet5.6",
        "portable-net45+win8"
      ]
    }
  },

  "buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true,
    "define": []
  },

  "runtimeOptions": {
    "configProperties": {
      "System.GC.Server": true
    }
  },

  "publishOptions": {
    "include": [
      "wwwroot",
      "**/*.cshtml",
      "appsettings.json",
      "web.config"
    ]
  },

  "scripts": {
    "prepublish": ["bower install", "dotnet bundle"],
    "postpublish": [
      "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"
    ]
  },

  "runtimes": {
    "win10-x64": {},
    "win8-x64": {}
  }
}

My data access project looks like this:
{
  "version": "1.0.0-*",

  "dependencies": {
    "MySolution.Common": "1.0.0-*",
    "Microsoft.AspNetCore.Authentication.Facebook": "1.1.0",
    "Microsoft.EntityFrameworkCore.Design": "1.1.0",
    "NETStandard.Library": "1.6.1",
    "Npgsql.EntityFrameworkCore.PostgreSQL": "1.1.0",
    "Npgsql.EntityFrameworkCore.PostgreSQL.Design": "1.1.0"
  },

  "tools": {
    "Microsoft.EntityFrameworkCore.Tools": "1.1.0-preview4-final",
    "Microsoft.EntityFrameworkCore.Tools.DotNet": "1.1.0-preview4-final"
  },
  "frameworks": {
    "netcoreapp1.0": {
      "imports": [
        "dotnet5.6",
        "portable-net45+win8"
      ]
    }
  }
}

I have done successful migrations on previous versions, but now nothing I've tried works.  This is what I get in the Package Manager Console:
log  : Restore completed in 24467ms.
PM> add-migration AddressesAndPhones
Both Entity Framework Core and Entity Framework 6 are installed. The Entity Framework Core tools are running. Use 'EntityFramework\Add-Migration' for Entity Framework 6.
Cannot execute this command because the version of Microsoft.EntityFrameworkCore.Design installed is not compatible with this tool.
PM>

As far as I can tell, I'm running the latest and greatest versions for all dependencies.  What am I missing, or can someone at least tell me where the problem might be?
Thanks

Try moving Microsoft.EntityFrameworkCore.Tools to dependencies (not tools--confusing, I know).

@bricelam I just tried it, then ran dotnet restore, then the add-migration command.  Same message.

Would you mind sharing your project so we can investigate further?

@bricelam I gave you access to it, let me know who else needs it; I don't want to open it up to the world.  At this point it's a skeleton (trying to port/ improve an existing application to .NET Core but keep getting hung up on infrastructure) but it will eventually have proprietary code in it.

Hmm... I'm not able to reproduce the error.
PM> Add-Migration Test -Verbose
Build started...
Build succeeded.
Setting app base path C:\Projects\YourProject\YourProject.Application\bin\Debug\netcoreapp1.0
Finding DbContext classes...
Using context 'ApplicationDbContext'.
Writing migration to 'C:\Projects\YourProject\YourProject.DataAccess\Migrations\20170106182522_Test.cs'.
Writing model snapshot to 'C:\Projects\YourProject\YourProject.DataAccess\Migrations\ApplicationDbContextModelSnapshot.cs'.
To undo this action, use Remove-Migration.

I had YourProject.Application selected as the startup and YourProject.DataAccess selected as the default project in PMC.
  Maybe I have something stuck in cache.

@bricelam can you tell me how your VS is configured?  I installed the latest SDK and runtimes from the link you provided, and rebooted my machine.  I then wiped out the solution on my file system, re-cloned it from github, built it, and in the PMC I set the default project (the application project was the startup) to the DataAccess project, and the following is the result.  Perhaps there's another component that I'm missing?
Each package is licensed to you by its owner. NuGet is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.
Package Manager Console Host Version <IP_ADDRESS>6

Type 'get-help NuGet' to see all available NuGet commands.

PM> add-migration AddressesAndPhones -Verbose
Build started...
Build succeeded.
The specified deps.json [C:\projects\MySolution\MySolution.Application\bin\Debug\netcoreapp1.0\MySolution.Application.deps.json] does not exist
Process finished with non-zero exit code
PM>

That looks like the standalone app issue. Ensure your project.json files don't have a runtimes section, and that the dependency on Microsoft.NETCore.App looks like this.
"Microsoft.NETCore.App": {
  "type": "platform",
  "version": "1.1.0"
}

Also, if you're ready to switch to VS 2017, you can try out the latest bits. See #7358 for details.

Thanks for walking me through this.  That made a huge difference.  I also had to update my global.json file to look like this:
{
"projects": [],
"sdk": {
"version": "1.0.0-preview2-1-003177"
}
}
...since I had updated my SDK per your recommendation.  It was almost anticlimactic when it generated the schema and subsequently updated the db.


Make it possible to run the tests in a docker image with a single command

This is related to issue https://github.com/kafka4beam/sasl_auth/issues/10.
Currently, one have to set up a Kerberos server, figure out which cyrus-sasl packages that need to be installed, install Kerberos, and configure the Kerberos server correctly to run the tests. This could be a very time consuming process (especially if one is new to Kerberos). Therefore, it would be great if all these could be automated so that one can run the tests in a docker container by just executing a single command.

Fixed in https://github.com/kafka4beam/sasl_auth/pull/13


Selectively live debug Lambda functions

Ross suggested:

Have you guys considered providing the ability to run a subset of functions locally?
For example, maybe I’ve got some heavy lifting cron based functions that chug away and move data around from APIs into databases. I’m happy with those and I’m happy for them to carry on running in AWS.
However, I’m developing a lambda attached to an API route that uses that data which I want to debug locally?
I guess it could also be useful in a situation where there is a last resort emergency production issue that could be quickly identified by updating the stack to run that single function locally but have all the others carry on as they were.

ie.
sst start --enable-for some-lambda-func-name,some-other-lambda-func-name

Requests:

Ross https://serverless-stack.slack.com/archives/C01HQQVC8TH/p1646154372429339

We are transition this repo to https://github.com/sst/v2 and are closing this issue for now. If it is still relevant please reopen it there - sorry for the trouble


Windows 10 Pro Install Problems

Am following the procedure to install the GPU version of MXNET for useage in R but I'm not even
able to find the setupenv file.....

try building from source

"Installing Pre-built Packages on Windows.....install the package by double-clicking
setupenv.cmd"
****  above....the file does not even show up after unzipping the gpu version
"To build and install MXNet yourself, you need the following dependencies:
Microsoft Visual Studio 2013
Visual C++ Compiler Nov 2013 CTP (to provide C++ support)
OpenCV (for computer vision operations)
OpenBlas (for linear algebraic operations)
CuDNN (to provide a Deep Neural Network library)"
*** ms vidual c++ compiler 2013 wont work on windows 10

I don't think you really need setupenv.cmd for R package.
Please try to follow https://github.com/dmlc/mxnet/blob/master/docs/get_started/setup.md#installing-mxnet-on-a-gpu

Does not help. I'm now following directions to the T and am still not able to do it...for instance.
I'm able to get MXNET work fine on the CPU version downloaded from CRAN but not on a GPU.
The instructions are not clear....if people have managed to install it, am wondering if someone could
please write up steps in gory detail....
==
4. Download the most recent GPU-enabled MXNet package from the Releases tab. Unzip this file and navigate to the /nocudnn folder. Note: We will be copying some of these extracted files in to MXNet’s R-package folder. We are now working two folders, R-package/ and nocudnn/.
There is no /nodudnn folder there....

The instruction has been updated in https://github.com/dmlc/mxnet/pull/6841
I am closing this now. Feel free to reopen.


RPi-#78. Debug

What is this PR for?
Fix boardinfo bug, remove redundant files
What type of PR is it?
[Bug Fix]
Todos
What is the Github issue?
https://github.com/NTUEELightDance/LightDance-RPi/issues/78
How should this be tested?
None
Screenshots (if appropriate)
Questions:

Do the license files need updating? No
Are there breaking changes for older versions? No
Does this need new documentation? No

Dont merge this pull request until NTP client is finished and proper funtioned.


Syntax revision for next release: reduce user-specified keys

With a relatively simple syntax change I think we can make the stylesheet easier to learn and give the library more room to grow in the future!
There's a pattern in several parts of the stylesheet where the "keys" of a map are user-specified values, like this example from the docs:
layers:
    landuse:
        data: { source: osm }
        filter: ...
        draw: ...
        sublayer:
            filter: ...
            draw: ...
        sublayer2:
            filter: ...
            draw: ...

This is a nice example of the brevity enabled by YAML, but (as we probably know) there are two issues with this pattern:

There is implicit knowledge about which keys have built-in meaning. It's not obvious that sublayer doesn't have some special semantics, for instance, and in general one needs to have read the documentation for every field in order to determine if its name is meaningful.

We can't add keywords to any sections using this pattern without potentially breaking existing stylesheets. In the landuse section here, we have locked ourselves out of adding any new properties at this level.

An alternative:
layers:
    - name: landuse
      data: { source: osm }
      filter: ...
      draw: ...
      layers:
          - name: sublayer
            filter: ...
            draw: ...
          - name: sublayer2
            filter: ...
            draw: ...

The "sequence" syntax generally creates less indentation and, while there is slightly more text, it can actually be more readable because it makes semantics more explicit. And of course if users aren't specifying the names of fields, there's no concern that those names will collide in the future.
This would be a breaking change for existing stylesheets, but I am optimistic that our total future adoption can greatly outnumber the current users, so we should plan to make the best experience we can for those future users!
PS Not sure if this belongs in "issues" but I wasn't sure where else to put it

Closing since we're fairly certain we're not going this route in the foreseeable future (big breaking change)... though we should consider some kind of label for API/syntax questions so we can group and review these.


dynamic check on nullable incorrectly marked as error

Succeeds:
    const { onChange } = this.props
    if (onChange) {
      onChange(this.extractValue(e))
    }

Failures
this.props.onChange(this.extractValue(e))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call of method `onChange`. Function cannot be called on possibly null value

braces

  if (this.props.onBlur) {
    this.props.onBlur(this.extractValue(e))
  }

without braces

  if (this.props.onBlur)  this.props.onBlur(this.extractValue(e))

This is a known problem, and the "succeeds" example is the recommended workaround. See the caveats section in the docs for dynamic type tests for a detailed explanation of what's going on.


Custom deploy path

Allows specifying raw deploy.php and custom dep executable for more complex deployment scripts.

Coverage increased (+7.8%) to 85.858% when pulling 18edfb0b82b26417bb007ed692a0a0ecec79adf7 on yisraeldov:customDeployPath into 5e87e63775242181d4ba092f0c5dd138e1b177d4 on ngmy:master.

Coverage increased (+7.8%) to 85.858% when pulling 18edfb0b82b26417bb007ed692a0a0ecec79adf7 on yisraeldov:customDeployPath into 5e87e63775242181d4ba092f0c5dd138e1b177d4 on ngmy:master.


fixing broken links in top tips

@ajamess,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@ajamess : Thanks for your contribution to the Azure documentation! The author, @MicrosoftGuyJFlo, has been notified to review your proposed change.

#sign-off


Update README.md

small spelling fix (and fixed link that was changed)

@dougsillars thanks for PR, could you make it for release 2.1 branch ?


"press " gets recognized as "pre <user.rango_target>" too frequently

About once a day, I say "press crunch" and it gets recognized as "pre crunch", which is not what I want.  I am guessing this affects other people as well.
I have changed the talon rules to rango pre/post <user.rango_target> to prevent the misrecognition.
The best I can tell, pre/post commands help take you to the beginning or end of a text field, which I am guessing is used far less than "press ". Can we name them something else or have some prefix word?
Prefixes: jump, go, rango.
Alternate names: head, tail, start, finish.

I use pre and post quite frequently. Mainly after doing some search with google hunt or similar and wanting to correct words in one go. I probably use those more than press. I have had misrecognitions between press and pre here and there but it's not a big issue for me.
I cannot simply remove a command. People who are used to pre or post won't know why those commands don't work anymore all of a sudden. It also aligns with Cursorless so it's less mental load for people that use both.
Changing the commands in rango.talon is okay. I try to make changes so that it minimizes possible merge conflicts.
If this happens to you on YouTube you could also create custom commands for that:
tag: browser
browser.host: /youtube/
-
play|pause: key(k)


Organize into folders not working

Just tried the latest version (<IP_ADDRESS>) and it does seem to be working.

isn't supposed to put them in folders by topic


这种情况无法压缩  This situation cannot be compressed

用huawei的p30以上的机子 通过屏幕录制录制的视频无法压缩
the video recorded through the screen cannot be compressed with Huawei's P30 or above machine

平板电能也不能正常压缩。平板是armbi-v7a

平板电能也不能正常压缩。平板是armbi-v7a

The Huawei P series removed most of Google play service APIs and that could be a potential source of the breaking change.


[WIP] Set attribute selections to strings rather than objects

We're hoping this work paves the way for the persistence of selected attributes across refreshes and reloads of the symbol.
i still need to test this on the VM.

OK! i've got it working on the remote.


Cache frames

Would you please provide an option to cache all the frames of an image? It have a poor CPU performance in ARM(windows phone) device when prepare next frame each time. i know, it will increase the memory usage, but make a property to switch between on and off will be better.

The problem is that the images that take a long time to render are usually also the ones that would use a lot of memory... so doing this would just trade one problem for another. But I realize it might be desirable in some scenarios. I can't promise anything, but I'll try to see what can be done. I'll need to do some profiling to see exactly what is taking too long (the decompression or the rendering itself). If it's the decompression, as I expect, then I can just cache the decompressed index stream. If it's the rendering, I'll have to cache the whole pixel array, which is going to use much more memory...

Thanks for your code, it is very nice.
Because I need to get the WriteableBitmaps with Delay times of a Gif file, I wrote a method for AnimationBehavior as shown below to store those information. Oh, you still need to change some other stuffs in this code before it can run.
This way may not be an efficient one, but it works for me. ^_^

public static async Task<List<ForAniGIF>> GetFramesAsync(Uri uri)
{
//* [2016-12-28 11:05] Get the stream
var progress = new Progress<int>(percentage => OnDownloadProgress(null, percentage));
var stream = await (new UriLoader()).GetStreamFromUriAsync(uri, progress);
//* [2016-12-28 11:13] Get the metaData
var metaData = await GifDataStream.ReadAsync(stream);
//* [2016-12-28 11:17] Create a new Animator
var animator = new ImageAnimator(stream, uri, metaData, null, null);
//* [2016-12-28 11:28] Get all frames
List<ForAniGIF> frames = new List<ForAniGIF>();
for (int i0 = 0; i0 < metaData.Frames.Count; i0++)
{
ForAniGIF frame = new ForAniGIF();
frame.bImg = Animator.CreateBitmap(metaData);
frame.msDelay = Animator.GetFrameDelay(metaData.Frames[i0]).Milliseconds;
var targetBitmap = frame.bImg;
await animator.RenderFrameAsync(i0, System.Threading.CancellationToken.None);
animator.Bitmap.PixelBuffer.ToArray().CopyTo(targetBitmap.PixelBuffer);
frames.Add(frame);
}
//* [2016-12-28 11:15] Dispose the stream
animator.Dispose();
return frames;
}

@ychsue what you're doing is (more or less) what my previous library WpfAnimatedGif was doing. It works, but it uses a LOT of memory, especially for large images, and is the main reason why I chose a different approach for XamlAnimatedGif.

You are right. But in my case for about 8 small gifs will kill the performance, the App will be frozen. Hm... The two sides of the balance. -_-

Ok. the case for 8 gifs works fine on my Win10  App now. The problem is that the WriteableBitmap object is located in the UI thread. Oh man, that why it consumed almost all the performance when there are more and more cards shown on my App.
Although GPU is better than CPU for this case, anyway, it works.^_^
The way I solved this problem is by adding something into Animator.cs

Declare a byte array & store the UI Thread by

#if WINRT
Windows.UI.Core.CoreWindow uiThread = Windows.UI.Core.CoreWindow.GetForCurrentThread();
#endif
internal byte[] BitmapBytes;

Open a new Thread by

#if WINRT
await Task.Run(async () =>
{
#endif

covering the whole while loop in 'RunAsync()' at about Line 148.

Changing all CopyToBitmap & CopyFromBitmap to be CopyToBitmapBytes and CopyFromBitmapBytes.

Making some small changes like 'uiThread.Dispatcher.RunAsync' to make them can transfer data.

Finally, remember to call 'CopyToBitmap' to copy that BitmapBytes back to _bitmap.

Then, it works. ^_^
Hope this is useful for you.

Thanks for the update @ychsue, hopefully I can use this to improve the library!

Your package saves me a lot of energy so this is a feedback. Hope it can help someone likes me. ^_^

This has been implemented in 2.1.0 (PR #175)


Fatal error: Uncaught Exception: Retrieved a unknown status code 100

I have a question.
When I use getPokeBank() functionn, I get the error below.
Fatal error: Uncaught Exception: Retrieved a unknown status code 100
in /vendor/nicklasw/pkm-go-api/src/Handlers/RequestHandler.php:163
Stack trace:
  #0 /vendor/nicklasw/pkm-go-api/src/Services/Request/InventoryRequestService.php(27):
    NicklasW\PkmGoApi\Handlers\RequestHandler->handle(Object(NicklasW\PkmGoApi\Requests\GetInventoryRequest))
  #1 /vendor/nicklasw/pkm-go-api/src/Api/Player/Inventory.php(69):
    NicklasW\PkmGoApi\Services\Request\InventoryRequestService->getInventory()
  #2 /vendor/nicklasw/pkm-go-api/src/Api/Procedure.php(52):
    NicklasW\PkmGoApi\Api\Player\Inventory->update() #3 /test.php(61):

NicklasW\PkmGoApi\Api\Procedure->__call('getPokeBank', Array) #4 {main} thrown
  in /vendor/nicklasw/pkm-go-api/src/Handlers/RequestHandler.php on line 163

How can I solve this error?
my source code is..
// Authentication via Google user credentials

$manager = Factory::create($config);

$manager->addListener(function ($event, $value) {
  if ($event === Manager::EVENT_ACCESS_TOKEN) {
    $accessToken = $value;
  }
});

// Initialize the pokemon go application
$application = new ApplicationKernel($manager);

$pokemonGoApi = $application->getPokemonGoApi();

$journal = $pokemonGoApi->getJournal();

$inventory = $pokemonGoApi->getInventory();

$pokeBank = $inventory->getPokeBank(); // At this code, There is the error

That particular error occurs when you send blank authinfo. Did you authenticate properly?

Hey @NicklasWallgren
I just started getting this same response on ALL checkChallenge and verifyChallenge requests. Nothing in my code has changed at all, but today it started throwing that error for every call.

-voxx

Looks like pogodev is working on fixes for other API's. Niantic is now validating Platform_Requests on login.

Additional notes from Leah.

almost all API's don't send it on request 1
without it, you don't get an endpoint

the very first request now requires unknown6 to be passed in

@NicklasWallgren  I already wrote auth info. hmm... I'll try it again and ask again :)
@voxx Does your source work now? I should try again..

Thanks for the info @voxx. I'll have to take a look into the problem.

This could be a problem since this library does not currently support "PlatformRequests" or any of the available hash providers.
@voxx Do you know if the signature has to be valid?

Retrieved a unknown status code 100
I have the same problem.
Nothing in my code has changed at all, but today it started throwing that error for every call
$pokemonGoApi = $application->getPokemonGoApi();
// $this->logger->info('profile');
$profile = $pokemonGoApi->getProfile(); // <= Nothing here.
// $this->logger->info('get profile data');
$profileData = $profile->getData(); // <= Error occurs

@NicklasWallgren
I don't believe it actually has to be valid. Many of the API's are still using 0.45 api without hash server, so I'm assuming they aren't passing completely valid signature. (Not 100% positive, but fairly certain of this.)
I don't think we need to implement hash server support at this point, but we need to refactor login to include "PlatformRequests". I can probably help cherry pick out the relevant changes from pogoapi / rocketmap that were implemented a few weeks back that cover this aspect if you need me to.
-voxx

Yes Im having this problem today also.

Any news on this one?

Is there a solution for this problem ?

100 means SESSION_INVALIDATED as far as I know. Basically it happens when the first request isn't also signed. The first request needs to be signed with the AuthInfo's token, sequential requests need to be signed with the AuthTicket.

Does this library have those capabilities @Droeftoeter, @NicklasWallgren ?

@Droeftoeter it was working before last update. After that, i think somethings changed by Niantic. The AeonLucid, creator POGOProtos, updated his github repo after last update.

I heard that Niantic updated api. So, this repo has to be updated soon.

Yes, basically they're slowly phasing out support for 0.45

0.45 is officially dead. (uk25 value for 0.45 is no longer valid as of today)
However api calls utilizing uk25 value for >0.45 to 0.57.2 still work even with completely invalid hashing. (Paid hashing key is not required to get a valid response back.)
uk25 value is known for all versions including 0.57.2, so that's not a problem.
@Droeftoeter You're PR was on the right track, but just wasnt quite right yet. I messed around with it for a couple nights but wasn't able to fully wrap my head around the proper flow and structure in order to fix it.
I'm happy to lend a hand to help rebuild it if there's interest, but I don't think I'm going to be able to do it without someone elses help who knows a little more about the proper login flow and structure.
Most of the other API's have solved it, so the code is readily available to rip out and translate, it's just going to take some time and effort from a few of the php folks to make it happen.
I had to switch to the python api for handling captcha solving logic for my map feed, but I'd love to resurrect the php api if theres still anyone around that's able/willing to step in and help.
-voxx

@voxx I've solved it in my own API, but 0.57.2 itself requires a hashing server. If I have time I can try to redo the PR for this lib, and also add the 0.57.2 UK25 value.

I would love it if things were updated with this library. I have most of my code using it and it's decently simple to use. Hashing server would make me feel a whole lot better since I use this library with real accounts just to get my pokemon IV's and movesets.

@Droeftoeter . Do you have time to redo the PR for this lib ?

@Droeftoeter. Still no time ?
I think we have no other choice than to add support hashing server .


What means : ?

After generation see this code
.i-weather-storm:hover,
.i-weather-storm\:hover

What means this \: ?

Pls read this thread for an explanation.


SEPA, Ideal, Sofort support with Payment Sheets and SetupIntents

Is your feature request related to a problem? Please describe.
We have a mobility app where we allow the user to add multiple payment methods and pay invoices.
For payment method setup we have to use a custom flow since the existing payment sheets don't seem to support payment methods such as SEPA, IDEAL and Sofort when a setupIntent is passed instead of a payment intent.  It works fine when used with payment intents.
Describe the solution you'd like
Optimally we would like to use the payment sheet with setup intent and not have to use our own inputs. The setup flow should work exactly like the payment flow just without a charge.
Describe alternatives you've considered
Currently we use custom components and the functions provided by the library to setup SEPA. It diverges quite a bit from the flow the user is used to when paying invoices and makes adding new payment methods to the setup flow more involved.

Hello, I am faced with the same case, any updates or solutions?


change the colors of "⬆%" or help to rebuild the plugin

it seems to me that it will be better if you change the colors of the percentage increase in price (decrease in price) "⬆%" . if the price is higher than the established one, then it is profitable to sell to the store (green interest), but not profitable to buy (red).
if the price of the product is lower than the established one, then it is profitable to buy (green) but not profitable to sell (red).
or help me compile the plugin (in which I will change it myself) (if so, I will send the errors that occur when trying to compile)

yep, i was wondering if i could change those colors as well, so it would be a great change!

Now you can edit arrow.
You can also disable it if you want.


[Wait for # 2083] [Memory Planner] Update the Memory Planner

This PR includes,

assigning right execution order depending on layer type.
: We do need to move those fixes in to each layer
Update memory Planner to use the memory with smaller size

Self evaluation:

Build test:	 [X]Passed [ ]Failed [ ]Skipped
Run test:	 [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: jijoong.moon<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2091. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

:octocat: cibot: @jijoongmoon, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2091-202212301925240.19633388519287-4ebd0132507053c2c35044b07d08f5bf21e9d50c/.

:octocat: cibot: @jijoongmoon, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2091-202212301943180.95478105545044-77d1e6b76f93f949846e6fab904009d6473516f2/.

:octocat: cibot: @jijoongmoon, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2091-202212302004210.10053110122681-fd9231614ad481247288124393c29a1ad13802b2/.

:octocat: cibot: @jijoongmoon, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2091-202212302036330.50914001464844-a28425063649893c8d23e12fbc402d22481499a4/.

:octocat: cibot: @jijoongmoon, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2091-202302080954390.83001899719238-fdc020ca4fb785d89a722dc4474313282d0a1dd6/.

This is merged in to #2093


SqlRS: Add SSL functionality (deprecate xSQLServerRSSecureConnectionLevel)

Details of the scenario you tried and the problem that is occurring:
I suggest add SSL functionality to resource xSQLServerRSConfig and deprecate resource xSQLServerRSSecureConnectionLevel.
The resource xSQLServerRSSecureConnectionLevel only changes value of property SecureConnectionLevel, it does not add new ports or bind a certificate to the configuration.
I think it is better to add that functionality to xSQLServerRSConfig and then deprecate xSQLServerRSSecureConnectionLevel (and remove it later).
Articles.
How Certificate Bindings Are Stored
Using Secure Web Service Methods
ConfigurationSetting Method - SetSecureConnectionLevel
RsReportServer.config Configuration File
The DSC configuration that is using the resource (as detailed as possible):
n/a
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
n/a
What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:
n/a
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
Dev

More documentation for this issue:
ConfigurationSetting Method - CreateSSLCertificateBinding
ConfigurationSetting Method - ListSSLCertificateBindings
ConfigurationSetting Method - ListSSLCertificates

@PlagueHO are you adding/creating a certificate to the AppVeyor build worker in any integration test in any of the resource modules? If so, maybe I can copy that?
I was thinking of using Let's encrypt but I thinking that one is not allowed to renew the certificate for each push (I did maybe 40 pushes today only, that would mean 40 renews). But not sure how Let's encrypt work so have to look in to it. But if you already have a working solution then that would make things a lot easier.


Support in place upgrade in Terraform

Is your request related to a new offering from AWS?
Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.

Yes ✅:  AWS Grafana V9.4 added in place upgrade support

Is your request related to a problem? Please describe.
When using Terraform to upgrade from Grafana 9.x to 10.x customers reported that it created a new workspace along with new grafana workspace url instead of performing an in place upgrade.   Customers expect upgrades to be in place due to the friction caused by the workspace domain changing as well as the work required to migrate dashboards between workspaces.
Describe the solution you'd like.
Support in place upgrades
Describe alternatives you've considered.
None
Additional context
None

closing due to lack of reproduction


Go to def on in should navigate to __contains__

2023.6.11 adds the ability to navigate to the implementation of an operator. For example, go to def on + takes you to the relevant __add__ method. It would be good to support the same behavior for keywords such as in.
class Bar:
    def __contains__(self, item):
        return item == "foo"

x = Bar()
if "foo" in x: # go to def on in here should navigate to __contains__ on line 2
    print("yes")
else:
    print("no")

This issue has been fixed in prerelease version 2023.8.51, which we've just released. You can find the changelog here: CHANGELOG.md

@jrom99 please open a new issue.


Bootblock license

It looks like your bootblock.asm is ripped from my track loader: https://github.com/deplinenoise/trackloader/
That's not mentioned anywhere in your source or binary distributions as far as I can tell, which is against the license of that code.

Hey Dep,
You are ofcourse right. My bootblock is heavily based on yours. I was sure it was the one from Photon/Scoopex. Sorry for that. I add you to the readme.
Greetings from Axis/Oxyron
PS: I hope to see some asskicking new Amiga stuff from you soon...

Fixed!
Added you to the readme, added your licence file and a comment with my changes to your bootblock source.

Cheers!