Server: Add Swagger

Generate API's Swagger (with endpoints and schemas)
This PR does not include a way to access the specs with Swagger UI

Codecov Report
Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (4ae71f3) 20.00% compared to head (4367035) 12.50%.
Report is 2 commits behind head on master.

Files
Patch %
Lines

server/src/API/ServerMessage.hs
0.00%
3 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
- Coverage   20.00%   12.50%   -7.50%
==========================================
  Files           1        1
  Lines           5        8       +3
  Branches        1        1
==========================================
  Hits            1        1
- Misses          3        6       +3
  Partials        1        1

Flag
Coverage Δ

server
12.50% <0.00%> (-7.50%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


DAO support for Coverage Pool underwriters

Depends on #202
Marking this PR as a draft until ^ is merged.
In #199 we added support for DAO Checkpoints to UnderwriterToken contract (COV token). This is not enough to enable DAO support in coverage pools - we know one's voting power proportional to COV supply but T DAO needs to know one's voting power proportional to T supply.
To make it happen, CoveragePool.getPastVotes(address account, uint256 blockNumber) implemented in this PR computes underwriter's voting power as underwriter's coverage pool share multiplied by the amount of T coverage pool has. This approach takes into account liquidations and rewards emitted to the coverage pool.
To participate in DAO, the underwriter needs to delegate their COV voting power to someone (or self-delegate), just like in the case of T liquid holders.
Example 1

Underwriter 1 deposited 400 T into the coverage pool.
Underwriter 2 deposited 200 T into the coverage pool.
Coverage Pool has 600 T.

Underwriter 1 voting power is 400, Underwriter 2 voting power is 200.
Example 2

Underwriter 1 deposited 400 T into the coverage pool.
Underwriter 2 deposited 200 T into the coverage pool.
Coverage pool has 600 T.
Underwriter 1 withdrew 100 T from the Coverage Pool.

Underwriter 1 voting power is 300, Underwriter 2 voting power is 200.
Example 3

Underwriter 1 deposited 400 T into the coverage pool.
Underwriter 2 deposited 200 T into the coverage pool.
90 T was allocated to the coverage pool as rewards.
Coverage Pool has 690 T.

Underwriter 1 voting power is 460, Underwriter 2 voting power is 230.
Example 4

Underwriter 1 deposited 400 T into the coverage pool.
Underwriter 2 deposited 200 T into the coverage pool.
60 T was liquidated from the coverage pool by the risk manager.
Coverage pool has 540 T.

Underwriter 1 voting power is 360, Underwriter 2 voting power is 180.

No more comments from my side. Looks good.

@cygnusv Please take a look when you'll have a chance. If you give 👍🏻 after the latest changes, we should be ready to go.

@cygnusv @dimpar This is ready for another chance.


Fix pre-link script warning?

Got this error while trying to install the smirf99Frosst package on greenplanet.
/home/limn1/anaconda3/lib/python3.6/site-packages/conda/core/link.py:446: UserWarning: Package mobleylab::smirff99frosst-1.0.4-py_0 uses a pre-link script. Pre-link scripts are potentially dangerous.
This is because pre-link scripts have the ability to change the package contents in the
package cache, and therefore modify the underlying files for already-created conda
environments.  Future versions of conda may deprecate and ignore pre-link scripts.

I'll need to look into this and fix it.

@nathanmlim or @davidlmobley was this actually addressed in #29 can we close it?


Error in Demo Build

I'm getting this error when running npm run demo
sc5-styleguide-fork git:(option-show-reference-numbers-bugfix) npm run demo

><EMAIL_ADDRESS>demo /Users/Patrizio/Sites/sc5-styleguide-fork
> gulp --gulpfile ./demo-gulpfile.js watch

[10:32:26] Using gulpfile ~/Sites/sc5-styleguide-fork/demo-gulpfile.js
[10:32:26] Starting 'styleguide:static'...
[10:32:26] Finished 'styleguide:static' after 8.93 ms
[10:32:26] Starting 'styleguide:generate'...
[10:32:27] Starting 'styleguide:applystyles'...
Container#eachDecl is deprecated. Use Container#walkDecls instead.
Error in plugin 'kss-parser'
Message:
    Two sections defined with same number 1: "Colors and typography" and "Colors and typography"
[10:32:27] Finished 'styleguide:applystyles' after 936 ms
[10:32:27] Finished 'styleguide:generate' after 942 ms
[10:32:27] Starting 'styleguide'...
[10:32:27] Finished 'styleguide' after 5.43 μs
[10:32:27] Starting 'watch'...
[10:32:27] Finished 'watch' after 12 ms

When running npm run demo for the first time gulp builds and watches for changes, but the CSS styles are not loaded when visiting http://localhost:3000.

Running npm run demo for the second time returns the error above.
Running npm run build beforehand doesn't help either.
The issue seems to be related to the file lib/app/css/styleguide-app.css

Hi,
Having same issue, any suggestion ????

I get the same error, except for me localhost:3000 won't load the page at all.

Try to rename _styleguide_default_styles.css to _styleguide_default_styles.css.bak.
Afterwards ist should build correctly.
I have to test whether this file will be used with the styleguide though.


feat: revert to kf 1.1 installation UX for kubeflow package

Temporary workaround because of https://github.com/kubeflow/gcp-blueprints/issues/158#issuecomment-731028479
/cc @subodh101 @jlewi
The goal of this change is that, users can upgrade Kubeflow v1.1 to v1.2 by just
make update set-values apply

So we shouldn't depend on some additional setters not present in Kubeflow v1.1 instance folder.
Before the next upgrade, we should be able to use the ideal UX of https://github.com/kubeflow/gcp-blueprints/issues/158#issuecomment-729495722

The test failure depends on https://github.com/kubeflow/testing/pull/816 (needing to change test to check in this PR is a signal this is reverting a breaking change for users)

/test all

Thanks @subodh101 for taking a quick look!
Looks like test passed, can you help me LGTM?

One issue:
The pipeline got executed with two runs.
Below was the error with first run case.
INFO|2020-11-20T09:54:19|/workspace/testing-repo/py/kubeflow/testing/util.py|72| serviceaccount/application-controller-service-account created
"INFO|2020-11-20T09:54:19|/workspace/testing-repo/py/kubeflow/testing/util.py|72| error: unable to recognize ".build/application/app.k8s.io_v1beta1_application_application-controller-kubeflow.yaml": no matches for kind "Application" in version "app.k8s.io/v1beta1"
"INFO|2020-11-20T09:54:19|/workspace/testing-repo/py/kubeflow/testing/util.py|72| Makefile:209: recipe for target 'apply-kubeflow' failed"
"INFO|2020-11-20T09:54:19|/workspace/testing-repo/py/kubeflow/testing/util.py|72| make: *** [apply-kubeflow] Error 1
"WARNING|2020-11-20T09:54:20|/workspace/testing-repo/py/kubeflow/testing/create_kf_from_gcp_blueprint.py|213| make apply failed with retryable error. The output matched regex: .*no matches for kind "Application" in version "app.k8s.io/v1beta1"

But this didn't occur on the second run.
/cc @Bobgy

@subodh101 yes, that's expected retryable error.
We also document that on kubeflow.org


Add a custom retry strategy to retry 404

Problem
Sometimes, we get a webhook request and then we trying to ask the Github api for that issue, but the API says 404.
Acknowledgement
I know I do more service definitions than needed, but I didnt want to pull in FrameworkBundle:5.2
Excuse
The changes in src/Issues/GitHub/GitHubStatusApi.php is just CS.. I started to read/think there before I ended up with the RetryStrategy solution
Shout out
@jderusse, this is really awesome =)

Thanks again!


hlintOn: false does not work

Hi, setting hlintOn to false does not seem to work.
Here is a log from loading a file foo.hs with contents:
main = pure ()
foo x y = x y

(Note that hlint will want to suggest we eta-reduce foo.
2018-07-08 13:54:46.369419253 [ThreadId 4] - run entered for hie-wrapper(hie-wrapper) Version <IP_ADDRESS>, Git revision b9bea669d2ff507a736c9cd8db81fb8317ba101e (1551 commits) x86_64 ghc-8.4.3
2018-07-08 13:54:46.369656077 [ThreadId 4] - Current directory:/home/mitchell/junk
2018-07-08 13:54:46.369821259 [ThreadId 4] - Using stack GHC version
2018-07-08 13:54:46.498617479 [ThreadId 4] - Project GHC version:8.2.2
2018-07-08 13:54:46.49887614 [ThreadId 4] - hie exe candidates :("hie-8.2.2","hie-8.2")
2018-07-08 13:54:46.499605365 [ThreadId 4] - found hie exe at:/home/mitchell/.local/bin/hie-8.2.2
2018-07-08 13:54:46.499760728 [ThreadId 4] - args:["--lsp","-d","-l",".HieWrapper"]
2018-07-08 13:54:46.49988774 [ThreadId 4] - launching ....

2018-07-08 13:54:46.506034148 [ThreadId 4] - Using stack GHC version
2018-07-08 13:54:46.626670882 [ThreadId 4] - Run entered for HIE(hie-8.2.2) Version <IP_ADDRESS>, Git revision b9bea669d2ff507a736c9cd8db81fb8317ba101e (dirty) (1551 commits) x86_64 ghc-8.2.2
2018-07-08 13:54:46.626986049 [ThreadId 4] - Current directory:/home/mitchell/junk
2018-07-08 13:54:46.627128846 [ThreadId 4] -

haskell-lsp:Starting up server ...
2018-07-08 13:54:46.628028142 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"completion":{"completionItem":{"snippetSupport":false}}},"workspace":{"applyEdit":true,"didChangeWatchedFiles":{"dynamicRegistration":true}}},"processId":27885,"rootPath":"/home/mitchell/junk","rootUri":"file:///home/mitchell/junk","trace":"off"},"id":10}
2018-07-08 13:54:46.629227304 [ThreadId 4] - haskell-lsp:initializeRequestHandler: setting current dir to project root:/home/mitchell/junk
2018-07-08 13:54:46.629921204 [ThreadId 6] - <--2--{"result":{"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"willSave":false,"willSaveWaitUntil":false,"save":{"includeText":false}},"documentRangeFormattingProvider":true,"documentHighlightProvider":true,"executeCommandProvider":{"commands":["27914:applyrefact:applyOne","27914:hare:demote"]},"renameProvider":true,"definitionProvider":true,"hoverProvider":true,"codeActionProvider":true,"completionProvider":{"triggerCharacters":["."],"resolveProvider":true},"documentSymbolProvider":true,"documentFormattingProvider":true,"referencesProvider":true}},"jsonrpc":"2.0","id":10}
2018-07-08 13:54:46.654179898 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"initialized","params":{}}
2018-07-08 13:54:46.654456023 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"languageServerHaskell":{"hlintOn":false,"useHieWrapper":true}}}}
2018-07-08 13:54:46.65461403 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"haskell","text":"main = pure ()\n\nfoo x y = x y\n","uri":"file:///home/mitchell/junk/foo.hs","version":0}}}
2018-07-08 13:54:46.654717898 [ThreadId 11] - ****** reactor: got message number:0
2018-07-08 13:54:46.654753294 [ThreadId 11] - ****** reactor: processing Initialized Notification
2018-07-08 13:54:46.654804888 [ThreadId 11] - Using stack GHC version
2018-07-08 13:54:46.655135677 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"type":1,"message":"haskell-lsp:didChangeConfiguration error. NotificationMessage {_jsonrpc = \"2.0\", _method = WorkspaceDidChangeConfiguration, _params = DidChangeConfigurationParams {_settings = Object (fromList [(\"languageServerHaskell\",Object (fromList [(\"useHieWrapper\",Bool True),(\"hlintOn\",Bool False)]))])}} \"key \\\"maxNumberOfProblems\\\" not present\""},"method":"window/logMessage"}
2018-07-08 13:54:46.655232371 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"type":4,"message":"Using hie version: Version <IP_ADDRESS>, Git revision b9bea669d2ff507a736c9cd8db81fb8317ba101e (dirty) (1551 commits) x86_64 ghc-8.2.2"},"method":"window/logMessage"}
2018-07-08 13:54:46.776908848 [ThreadId 9] - ghcDispatcher: top of loop
2018-07-08 13:54:46.776982879 [ThreadId 14] - ideDispatcher: top of loop
2018-07-08 13:54:46.777348305 [ThreadId 11] - ****** reactor: got message number:1
2018-07-08 13:54:46.77739533 [ThreadId 11] - reactor:didChangeConfiguration notification:NotificationMessage {_jsonrpc = "2.0", _method = WorkspaceDidChangeConfiguration, _params = DidChangeConfigurationParams {_settings = Object (fromList [("languageServerHaskell",Object (fromList [("useHieWrapper",Bool True),("hlintOn",Bool False)]))])}}
2018-07-08 13:54:46.777437075 [ThreadId 11] - reactor:didChangeConfiguration diagsOn:True
2018-07-08 13:54:46.777459999 [ThreadId 11] - ****** reactor: got message number:2
2018-07-08 13:54:46.777479111 [ThreadId 11] - ****** reactor: processing NotDidOpenTextDocument
2018-07-08 13:54:46.77753654 [ThreadId 9] - ghcDispatcher:got request 0 with id: Nothing
2018-07-08 13:54:46.777600692 [ThreadId 9] - ghcDispatcher: top of loop
2018-07-08 13:54:46.777626462 [ThreadId 9] - ghcDispatcher:got request 2 with id: Nothing
2018-07-08 13:54:46.778664143 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"type":2,"message":"No hoogle db found. Check the README for instructions to generate one"},"method":"window/showMessage"}
2018-07-08 13:54:46.911348387 [ThreadId 9] - file mapping state is: fromList [("/home/mitchell/junk/foo.hs",FileMapping {fmPath = "/tmp/ghc-mod27915/foo27914-0.hs", fmTemp = True})]
2018-07-08 13:54:46.911439506 [ThreadId 9] - ghcDispatcher: top of loop
2018-07-08 13:54:46.911468093 [ThreadId 9] - ghcDispatcher:got request 2 with id: Nothing
2018-07-08 13:54:46.911492625 [ThreadId 9] - ghcDispatcher:Processing request as version matches
2018-07-08 13:54:46.96785473 [ThreadId 9] - ghcDispatcher: top of loop
2018-07-08 13:54:46.967927135 [ThreadId 9] - ghcDispatcher:got request 2 with id: Nothing
2018-07-08 13:54:46.967952081 [ThreadId 9] - ghcDispatcher:Processing request as version matches
2018-07-08 13:54:46.968073472 [ThreadId 9] - setTypecheckedModule: file mapping state is: fromList [("/home/mitchell/junk/foo.hs",FileMapping {fmPath = "/tmp/ghc-mod27915/foo27914-0.hs", fmTemp = True})]
2018-07-08 13:54:46.968113359 [ThreadId 9] - setTypecheckedModule: before ghc-mod
2018-07-08 13:54:47.066769911 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"uri":"file:///home/mitchell/junk/foo.hs","diagnostics":[{"severity":3,"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":13}},"code":"Eta reduce","source":"hlint","message":"Eta reduce\nFound:\n  foo x y = x y\nWhy not:\n  foo x = x\n"}]},"method":"textDocument/publishDiagnostics"}
2018-07-08 13:54:47.195244989 [ThreadId 9] - setTypecheckedModule: after ghc-mod
2018-07-08 13:54:47.195384714 [ThreadId 9] - setTypecheckedModule: Did get typechecked module for: "/home/mitchell/junk/foo.hs"
2018-07-08 13:54:47.196068807 [ThreadId 9] - setTypecheckedModule: done
2018-07-08 13:54:47.196119681 [ThreadId 9] - ghcDispatcher: top of loop
2018-07-08 13:54:47.196193755 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"uri":"file:///home/mitchell/junk/foo.hs","diagnostics":[{"severity":3,"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":13}},"code":"Eta reduce","source":"hlint","message":"Eta reduce\nFound:\n  foo x y = x y\nWhy not:\n  foo x = x\n"}]},"method":"textDocument/publishDiagnostics"}
2018-07-08 13:54:48.128324793 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"exit","params":null}
2018-07-08 13:54:48.128621517 [ThreadId 4] - haskell-lsp:Got exit, exiting

This line indicates the settings.json was read properly:
2018-07-08 13:54:46.77739533 [ThreadId 11] - reactor:didChangeConfiguration notification:NotificationMessage {_jsonrpc = "2.0", _method = WorkspaceDidChangeConfiguration, _params = DidChangeConfigurationParams {_settings = Object (fromList [("languageServerHaskell",Object (fromList [("useHieWrapper",Bool True),("hlintOn",Bool False)]))])}}

And yet the hint was sent anyway:
2018-07-08 13:54:47.196193755 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"uri":"file:///home/mitchell/junk/foo.hs","diagnostics":[{"severity":3,"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":13}},"code":"Eta reduce","source":"hlint","message":"Eta reduce\nFound:\n  foo x y = x y\nWhy not:\n  foo x = x\n"}]},"method":"textDocument/publishDiagnostics"}

Oops, I didn't realize maxNumberOfProblems is required. So somewhere in that log, the parse failed :)


Fail at first step:  Where are Other Swift Flags in the build settings for Version 13.1?

Apple keep moving things around.
I cannot find Other Swift Flags or even Custom flags in Xcode 13.1

I tried add user defined setting but debug-time-function-bodies is not valid there.

Xcode 13.1
Build Settings -> PROJECT
Search in there


fix: Add new model selector to playground

Pull Request Checklist

[X] Description: Briefly describe the changes in this pull request.
[X] Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.

Description
This adds the new model selector to the playground section.

Changelog Entry
Added

Added new model selector to the playground

Removed

[List any removed features or files]

LGTM, Thanks!


Three new events for notifying clients about pipeline state

init for the completion of pipeline initialization
start for completion of pipeline start
stop for completion of pipeline stop

 Spokestack iOS wakeword available on launch


Upgradeable HATVaults

Prepare hat vaults for upgradeability

@ben-kaufman do you have an opinion on transparentproxy vs the uups one?
UUPS is nice but it will make our HATVaults even heavier. Right now it's already about 1MB too big to deploy. So unless we can significantly reduce contract size we don't really have the option of UUPS.


Avoid drift result caused by the different of resource unit for Kubernetes application

What would you like to be added:

Why is this needed:

/assign @Hosshii


Ursa core

@mac-arrap looks like this is ready to merge, but there are some conflicts. Can you try to address those?

This PR has been approved to merge, but no response has been made from the OP to resolve conflicts in 5 months.
I am going to close this PR if we don't hear from @mac-arrap in 7 days.

Closing


Error Deprectaed for PHP format

Sublime text 3
PHP 7.2.1

+1

+1

@akalongman Any update on this?

Does anyone have a work around or update?

@akalongman
https://github.com/phpfmt-next/fmt
This package is also used by some vscode plugins. Looks promising.

Integration of PHP-CS-FIXER is almost done, you can install dev version from the branch https://github.com/akalongman/sublimetext-codeformatter/tree/feature/php-fixer and test it. Now its formats with PSR-2 format but will be added configuration soon

PHP formatting is working great with the feature/php-fixer branch!

I will add configuration options and the branch will be merged to master.

Thanks! I’ve just started using ST. If I cloned this repo into the packages folder, do you know if it’ll automatically update when the newer package is available?
Thanks

Yes, it will update and replace your folder

Is there any update on this by any chance? Thanks

Not yet, sorry. I am very busy with my current job. But I will do my best to finish this

hi @akalongman any updates on this ?

And now?

hey @akalongman -- i'm sorry you've been so busy -- but think we could get some updates on this ?:)
Thanks ;)

Any updates on this yet?

+1

+1

+1

Same issue here.  Still.  In 2020.  😩

I'd like to use CodeFormatter but still getting this 'each' error with php v7.3.5.  Is there any hope of a fix soon or any work-around?

unzip it and replace the file in Data\Packages\CodeFormatter\lib\phpbeautifier\phpf.phar
phpf.zip

@silenkee does it support union-types and typed properties, or is this just another for-someones-personal-needs-patched fork of phpf?

+1

if your default php not 5.6, you should:

install php 5.6
set default php to 5.6

if your default php not 5.6, you should:

install php 5.6
set default php to 5.6

+1

+1

Quoting @iruwl:

if your default php not 5.6, you should:

install php 5.6
set default php to 5.6 or
set php_path in codeformatter_php_options to /usr/bin/php5.6

How exactly are you installing php 5.6 so it ends up in the directory you specified?
When installing/updating PHP following the instructions in this tutorial,
brew tap shivammathur/php
brew install<EMAIL_ADDRESS>
PHP ends up in<EMAIL_ADDRESS>now when I set this as the value for php_path in my settings:
{
    "codeformatter_php_options":
    {
        // ...
        "php_path"<EMAIL_ADDRESS>        // ...
    },
}

I get the error "Format error: [Errno 13] Permission Denied".

Thanks for some insights!

I am using PHP 7.4, but I had to also install PHP 5.6 (via Homebrew) to get CodeFormatter to work:
brew tap shivammathur/php
brew install<EMAIL_ADDRESS>
and told CodeFormatter to use that old version of PHP:
{
  "codeformatter_php_options": {
    "php_path"<EMAIL_ADDRESS>    ...

Hope this saves someone else some time.

Same issue running here. Still. In 2022

Same issue running here. Still. In 2024


feat: render children

What is this?
It enables the execution of Server and Client Composition Patterns in Next.js, allowing the client component to pass children (already processed on the server side).
https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns
"createChildren" New option
In this PR, the contents of children are written once to a template element, which must then be converted to an element generated by createElement. The conversion is performed by createChildren.
If you are using jsx of hono as is, or only simple children without Suspense or ErrorBoundary, you do not need to specify createChildren.
If you are using something like react and want to define your own createChildren, you can specify as follows
createClient({
  hydrate: async (elem, root) => {
    const { hydrateRoot } = await import('react-dom/client')
    hydrateRoot(root, elem)
  },
  createElement: async (type: any, props: any) => {
    const { createElement } = await import('react')
    return createElement(type, props)
  },
  createChildren: async (childNodes: NodeListOf<ChildNode>) => {
    const { createElement } = await import('react')

    const create = (childNodes: NodeListOf<ChildNode>): ReturnType<CreateChildren> => {
      const children = [];
      for (let i = 0; i < childNodes.length; i++) {
        const child = childNodes[i] as HTMLElement;
        if (child.nodeType === 8) {
          // skip comments
          continue;
        } else if (child.nodeType === 3) {
          // text node
          children.push(child.textContent);
        } else {
          children.push(
            createElement(child.nodeName, {
              children: create(child.childNodes),
            })
          );
        }
      }
      return children as any;
    }

    return create(childNodes);
  }
})

Required PR
For this PR to work, the following PR must be merged with the following HONO and the HONO version in this PR must be bumped.
https://github.com/honojs/hono/pull/2216
For a more detailed explanation, simple children and Suspense work without PR; ErrorBoundary requires PR.
Demo
If you npm run dev on the following project, you will see the following demo.
https://github.com/usualoma/honox-jsx-children
https://github.com/honojs/honox/assets/30598/3103eefb-2e28-4a98-99de-da8c9dfe850c

Hello @usualoma !
This is super cool! I thought the code was a little large, but I don't think it's a problem because it's easy to read.
Looks good! So, I'd like to merge this. Can you resolve the conflict and fix the test error?

@usualoma
https://github.com/honojs/hono/pull/2216 is already merged, and I've added the new version of honor as devDependencies in #59.

@yusukebe
resolved conflict at b7925ff!

a little large

Well, we certainly don't need this code when the app doesn't use children.
Sorry to add this after the review, but how about adding b1591a2: buildCreateChildrenFn is dynamically imported only when using "children". (It's slight, but it reduces about 1kB.) If we don't need it, I will revert b1591a2.
Also hono 4.0.3, but if you don't remove and rebuild "bun.lockb", 4.0.0 will be installed forever, so I rebuilt it. af20da4 Please point out any problems. (b7925ff is failing the test because of it.)

@usualoma

Sorry to add this after the review, but how about adding b1591a2: buildCreateChildrenFn is dynamically imported only when using "children". (It's slight, but it reduces about 1kB.) If we don't need it, I will revert b1591a2.

Ah, yes, now we can use Dynamic Import on the client side. Let's go with this.
I'll merge it and will release a "patch" version that includes it (HonoX is currently alpha phase, so we don't follow the semver). Thanks!


Ellipsis: Content not Truncating with assets/images loading

https://dev.rebuildingakidney.org/chaise/recordset/#2/Gene_Expression:Specimen
When assets load after the DOM has stabilized, the "logic" to show  "... More" and hide the rest of the content is not working properly.

We see this issue with text columns as well:
https://www.gudmap.org/chaise/recordset/#2/RNASeq:Experiment@sort(RMT::desc::,RCT::desc::,RID)
Another link for the above link but faceted to be more clear:
https://dev.rebuildingakidney.org/chaise/recordset/#2/Gene_Expression:Specimen/*::facets::N4IghgdgJiBcDaoDOB7ArgJwMYFM6JHQBcAjdafEAcRwhwH0BRADwAcMckkBLFCEADQgAyqxxZuAW1r0AIjgBuOADYpW0iETDL6wrQHMGAMwDWOAJ4gAugF8hAJQCSs60KwALFN1xJKARgAWAFoAgFkAKSprG1sgA@sort(Images,RID)

Another link with images in a related table not truncating:
https://dev.gudmap.org/chaise/record/#2/Common:Gene/RID=Q-48Q8

PR #1883 was merged with changes that stabilized this feature but hasn't completely fixed it for all cases. Previously, we were relying on waiting for the content to change in the row to recalculate if the height changed. This calculation could occur after the content changes but before the DOM renders that changed content. This would cause the text to not truncate sometimes.
Now this checking is based on a resize sensor (for when the height of the row changes) and an event emitted when new data loads. This improves the performance of truncation so it is triggering the logic constantly during digest.
This also made image truncation a bit more consistent but still doesn't fix the case when there are a lot of images to load into the DOM and the rendering is delayed. Sometimes the images are finished rendering after the last digest cycle has been completed so no new events are triggered. We need to investigate how to watch for a DOM event that is sent when rendering is complete (I haven't had any luck) or we can somehow change image tags to always include an onload function (I'm not convinced that will work perfectly either).


Use Dataflow Prime to avoid memory issues?

I discussed this with @cisaacstern at some point, and after reading about Dataflow Prime it seems this would be a perfect solution to deal with suspected OOM errors (see the OOM comment here for discussion).
Most jobs do not need a lot of memory, so defining large instances across all of them is wasteful. But there are some jobs that seem to be memory hungry (maybe those are netcdf3 files?), and having some means of giving them a bunch of memory sounds great.
Any comments on how to enable Dataflow Prime within this workflow? Should this be an option on the -action and/or -runner? We probably have to both enable it, and provide resource resource hints:

By default, memory scaling has an upper limit of 16 GiB (26 GiB when using GPUs and a lower limit of 6 GiB (12 GiB when using GPUs). Providing a resource hint can change both the upper and lower limits.

source
@yuvipanda do you have any thoughts on this?

An example of some of the jobs I am currently running:

Def overkill on the memory here.

@jbusecke runner already supports this! https://pangeo-forge-runner.readthedocs.io/en/latest/reference/bakery.html#pangeo_forge_runner.bakery.dataflow.DataflowBakery.use_dataflow_prime :) You can set that to true in your config and that should be enough.

Amazing! Thanks Yuvi!

maybe those are netcdf3 files?

Yes good bet they are.
Alternatively, you could use OpenWithKerchunk to load them lazily?
IIUC xarray (i.e. scipy backend) can't load NetCDF3 lazily, but kerchunk can.

Just tried to enable prime, and the jobs are all reallly slow (taking about 1 hour)!
I noticed that vertical autoscaling does not seem to be enabled ( raised https://github.com/pangeo-forge/pangeo-forge-runner/issues/95). Is there a way to provide explicit flags in the runner config or do I have to wait for the above issue to be fixed?

Alternatively, you could use OpenWithKerchunk to load them lazily?

Is that a drop-in replacement for OpenWithXarray or OpenURLsWithFSSpec?

Is that a drop-in replacement for OpenWithXarray or OpenURLsWithFSSpec?

It should be able to be a drop in replacement for OpenURLsWithFSSpec, but it might need an additional adapter transform to realize that potential.
Currently it emits kerchunk references (a list of dicts), which xarray presumably won't understand. So we'd probably need:
OpenWithKerchunk | OpenKerchunkWithFSSpec | OpenWithXarray
Where OpenKerchunkWithFSSpec is a new transform that opens a set of kerchunk references with an fsspec reference file system.

Is there a way we can test this independently from the big CMIP6 recipe with some synthetic files? I am seeing a lot of flaky failures and would like to avoid development on that alpha-production recipe if that makes sense? Seems like this would be a pure -recipes issue for now?

Seems like this would be a pure -recipes issue for now?

Yes! https://github.com/pangeo-forge/pangeo-forge-recipes/issues/585

Oh it seems this one is working:

Oh it seems this one is working:

🤯 ...
...did you do anything different?
That's so cool!

Closed via #9


Check for status_code property instead of status

Notes

The status code in a requests.Response should be status_code instead of status
https://docs.python-requests.org/en/latest/api/#requests.Response.status_code

nice find


Wait for element animations

View transitions gist - https://gist.github.com/benedikt/6326dd95a52dd444ec545be83eb2d282


Invalid device id check

fix for #134
please do tell me if I need to change style somewhere

@stephen-systemfriend looks good, thanks!


Publish back in stock notifs api

Published here: https://github.com/wix-incubator/wix-code-docs/pull/2369


[Feature]Add grpc.default_authority option for authorization

Is your feature request related to a problem? Please describe.
Some gRPC server  use token to identify the current user in the same service port.
Describe the solution you'd like
add grpc.default_authority option to grpc channel
see:
https://github.com/wechaty/wechaty-puppet-hostie/pull/78

@jcai please help us to close this issue if all your feature request have been satisfied.
Thank you very much!

@jcai 我为 go-wechaty 加了 grpc.default_authority, 我需要怎么测试一下？

在开发者群里面，联系我一下

或者给我你的微信号

I'd like to suggest that we should keep the discussion on GitHub as possible as we can because it will let everyone to know what happened so that they will be able to join if they can contribute.

向 @jcai 要了个 token, 测试没问题，可以正常使用蔡大提供的 puppet 服务，稍后我将关闭这个 issue

Fantastic!
So glad to know that our Go Wechaty is ready to use Puppet Rock Service from @jcai , and appreciate for your contribution @dchaofei !

@dchaofei Thank you very much,If you have any questions about rock service,please let me know!


Full page screenshots with overflow content regions

Filing this so we can figure out ways to make the scenario easier....
https://news.google.com/news/ is an example of a page that fills the viewport (100vh/vw), but has a central scrolling region. When you take a fullpage screenshot, only the filled viewport is included:

While Puppeteer is probably correct, it feels unexpected.

@ebidel thanks for filing this.
Screenshotting these kind of websites (apps?) is a hard task and should be tackled on a case-by-case basis. Web sites can define multiple nested scrolling areas, some of them could be viewported.
I don't see how we can help with this problem as a part of puppeteer project.

Yea, I'm not entirely sure how I'd approach this from user code.  Any suggestions?
Maybe there's an upstream feature request in here for headless? Chrome must know there's a scrollable layer.

I think this is the expected behavior. The same theory applies to background overlay used with modal dialogs. They are expected to be 100% tall.

I'm noticing something strange here and am not sure whether to open a bug or not but. We're using a min-height: 100vh on our content area to make sure the footer is always below the fold.
For screenshot regression testing I want to take a screenshot of everything including the footer so I'm hacking it by removing the min-height before taking a screenshot:
const height = await page.evaluate(() => {
  document.querySelector('.main-content').style.minHeight = 'auto';
  return document.querySelector('xc-scroll .scroll-content').scrollHeight;
});

page.setViewport({ ...device.viewport, height });

It works well on desktop but when we emulate a device with deviceScaleFactor we get a screenshot with duplicate content which I'm guessing is due to some Chrome rendering performance hacks with new content that instantly becomes visible:

There are no plans to address this; closing for now.


Separating firebase code from the rest

Is it possible to easily add an option to not use firebase at all(not store data) or at least make the app work without login(even without anonymous login)?

+1 to this. There's an unraid docker container yet I'm suppose to link it with firebase?

+1 to this. There's an unraid docker container yet I'm suppose to link it with firebase?

The previous version of this app was completely free from all storage options. You could continue to use that if you would prefer that :) It is also hosted on https://v1.rxresu.me/
https://github.com/AmruthPillai/Reactive-Resume/releases/tag/v1

The previous version of this app was completely free from all storage options. You could continue to use that if you would prefer that :) It is also hosted on https://v1.rxresu.me/
https://github.com/AmruthPillai/Reactive-Resume/releases/tag/v1

Tried to install the v1 but getting error

Tried to install the v1 but getting error


chore: Create destination group for docs

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#92
#91  👈 (View in Graphite)
#90
#89
main

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


Round Robin user_data fix

What's the reason for this change?  Wouldn't it be fine to assign the value even if it's NULL?

When RR is used outside of gRPC LB, its **user_data argument to pick() is NULL. Which means that *user_data on the modified lines would result in a segmentation fault when it tried to dereference a NULL pointer. This was noticed by a failing lb_policies_test. The mystery is, why didn't that test fire as part of the PR that introduced the bug...

As discussed, I hope to do away with the whole user_data business soon. That'll remove all this added complexity and additional arguments here and there :/


Directory whose name ends with .sql should be ignored

We use recursive_directory_iterator or check given paths using is_regular_file os this problem is already fixed.
When it comes to paths of VCS, we ignore it from #26.


Replaced "threshold" property of ComplexCondition rule by "allowedComplexity"

The ComplexCondition rule reported an issue when the complexity is greater or equal the value defined for the "threshold" property. It is intended that the value defined in the rule is the maximum allowed complexity. So the property is renamed to "allowedComplexity" and the check for reporting an issue is changed to check only for greater, no longer for equal.
The origin issue is https://github.com/detekt/detekt/issues/3679

Can you please not amend and force push. It makes reviewing much harder. The branch will be squash merged later.


fix: field to distinguish repository groups

Useful to keep source-config.yml organised for example when having groups for different teams

/cc ankitm123 tomhobson babadofar

/approve


How to allow dragging between different lists?

Hello, thanks for making this plugin!
I'm currently using it for drag & drop to reorder items in two lists, but I also want to allow d&d between the two lists. Is that possible? If so, how?
Thanks!

@LeaVerou yes it possible refer example and make few modification that should work https://vue-draggable-next.vercel.app/#/clone


Fixed issue when /public permission denied

I not properly completed the 3 steps below:

[ ] I've read the Contribution Guide.
[ ] I've updated the documentation. (refer to README.md in a root directory for how to do so).
[x] I enjoyed my time contributing and making developer's life easier :)

As nginx is just a proxy and js app may need to use /public directory I broke the wall

Nice catch, thanks!


Reflect.ownKeys should return the keys of the type that it was called upon.

TypeScript Version:  Nightly
Code
// x: readonly { 1: 1, 2: 2, 3: 3 };
const x = {
    1: 1,
    2: 2,
    3: 3
} as const;

// y: (keyof typeof x)[]; ideally: [ (1 | 2 | 3), (1 | 2 | 3), (1 | 2 | 3) ]
const y = Reflect.ownKeys(x).map(i => x[i]);

Expected behavior:
Successful compilation of TypeScript source code.
Actual behavior:
Type symbol | string | number cannot be used to index type { 1: 1, 2: 2, 3: 3 }.
Playground Link: https://www.typescriptlang.org/play?ts=4.1.0-insiders.20201010#code/PTAEA8C5Qb1BGa8A0oBM02oMzW6AXwG4AoAYwHsA7AZwBcJQBeWE0dhJZNjjdbjqFxCSBUAEMaoSrTqkSIUAE9oACnigAPui1CAlAG0AukVABLACYBTcQBtbK0AdDrdaXdj2pX299s-eGr4eeqBG5NT0ysygAEpWAGa2VmR0AHQUAO5UANJWSjSq4HppALbiAA6qZswAfBAGZkZ6REA
Related Issues: https://github.com/microsoft/TypeScript/issues/34626
Now, this is somewhat weird to think about, as an object's own keys are not all of the keys that TypeScript sees, for example, it doesn't give anything from the prototype, so it's giving a subset of the TypeScript keys, yet still keys to the object nonetheless.
You couldn't expect to get hasOwnProperty from Reflect.ownKeys, yet hasOwnProperty is a key in the prototype that TypeScript will allow to be used on the object. This means that keyof {the object} isn't a proper type for the output, while still being indexable.
Unless something safer can be done, I suggest changing the type signature of Reflect.ownKeys to something along the lines of ownKeys<T extends object>(source: T): (keyof T)[].

Not as simple. Playground
class A {
    private x: number = 0;
    public y: string = "";
}

const a = new A();

Reflect.ownKeys(a).forEach(key => a[key] = "abc");

This code access private field.
Type A[keyof A] is string, but field x has type number and is assigned in this code.
In case of interfaces objects can have any other fields except related to interface.

Anyway I agree that error with "can't be used to index type" is something weird, but the property has no the type you want it to.

Anyway I agree that error with "can't be used to index type" is something weird, but the property has no type you want it to.

Yeah, it's very weird trying to describe this in TypeScript, due to just how dynamic this is.
Yes, we can index the type with ownKeys from there everything else is almost a black box. Settng the object with these keys, any everything else is beyond me.
Technically this could be misused, but that's with everything.
const x: {
    a: 'a',
    b: 'b'
} = {
    a: 'a',
    b: 'b'
};

const y: {
    b: 'b',
    c: 'c'
} = {
    ...x,
    c: 'c'
};
// TS keys: ("b" | "c")
// ownKeys: [ 'a', 'b', 'c' ]
// error: "a" doesn't fit into the constrain keyof { b: 'b', c: 'c' }

I guess it could be argued that technically the keys can index the object, not the type, but types are supposed to reflect the reality of the object, right?

See https://stackoverflow.com/questions/55012174/why-doesnt-object-keys-return-a-keyof-type-in-typescript

See https://stackoverflow.com/questions/55012174/why-doesnt-object-keys-return-a-keyof-type-in-typescript

Welp, I'll close this issue, since the core idea has already been addressed before.
Now as for

A type with additional properties is always a subtype of its base type
It is legal to alias a subtype value by a supertype reference

I would be all for those, but I guess I'm just looking for AssemblyScript, since it is not one of TS's goals to

Apply a sound or "provably correct" type system. Instead, strike a balance between correctness and productivity.

Really I'm looking for something stricter and less dynamic.

I'm super curious which part of that you think is unsound

Not as simple. Playground
class A {
    private x: number = 0;
    public y: string = "";
}

const a = new A();

Reflect.ownKeys(a).forEach(key => a[key] = "abc");

This code access private field.
Type A[keyof A] is string, but field x has type number and is assigned in this code.
In case of interfaces objects can have any other fields except related to interface.

Anyway I agree that error with "can't be used to index type" is something weird, but the property has no the type you want it to.

keyof does not show us private keys.
Mayby if 1 of the suggestion in gets added you can do
` ((key: keyof Public) => ...);
https://github.com/microsoft/TypeScript/issues/22677


Scam Thread Submission

Duplicate Submissions

[X] Yes, I checked that the name is not currently in the list
[X] I read the wiki explaining each different categories and examples before submitting

(Required) Spam Comment Direct Link
This guys channel "the Wealthy Expat" is consistently full of crypto scams in his comments.
The Expat will respond to normal comments, but he will leave a lot of the spam and do nothing.
A few times viewers commented that he should remove the crypto scam comments, and he responded with "I can't do anything about the spam" (yes he can...he can delete it!).  Incredible.
The worse offender is "Ms Donna Patricia Hester":
https://www.youtube.com/watch?v=g1HHYWqnfvw&lc=UgzAHDu50KsUgkfOiOF4AaABAg.9lUN3afbmXw9lUNBaaU-dJ
https://www.youtube.com/watch?v=XPDMC9HHdUM&lc=Ugzj15aqFW-SK41Erhh4AaABAg.9lLxcG6OqnN9lLxkFPBRRl
https://www.youtube.com/watch?v=1VC4M5KPcZE&lc=Ugwa_powXYcR8bRhjfp4AaABAg.9k8YXCde8Qb9k8Y_CgZvDG
https://www.youtube.com/watch?v=YgYsJDzUJbk&lc=Ugx8GnjJKrjdjKi88p14AaABAg.9jrQmbj9Q399jrQspw12YN
https://www.youtube.com/watch?v=lxZFfz8Glqc&lc=Ugy4kfx6wB9bw-75eFZ4AaABAg.9j_hL1N4Xwq9j_hZv_8QYb
https://www.youtube.com/watch?v=b3q-tTx0PMQ&lc=UgwKvOnihE9qkJlUAwJ4AaABAg.9jQIBdxuxi99jQINB5Eqyr
https://www.youtube.com/watch?v=hiWiQS3DtVo&lc=Ugwn4z5a6aGB-2-VBM54AaABAg.9ieG1XhO85J9ieGQX4wgNX
https://www.youtube.com/watch?v=C7dUbLP5MLU&lc=Ugy5o6-2GMq0_ah6UWl4AaABAg.9iNA0s8j4X-9iNBtiIcsOD
https://www.youtube.com/watch?v=pRIM3pUYcZs&lc=UgxsCWYHKcMHEV0MdSN4AaABAg.9iHya6ZGDp69iHyxn4Fgdb
https://www.youtube.com/watch?v=QFSIktvLjN4&lc=UgwYzluELDJQJ305qIB4AaABAg.9i57MVIsMpP9i59AFcdCDY
https://www.youtube.com/watch?v=4eVvXQmYGZ4&lc=UgxsnXptJ7vaQLo8J_94AaABAg.9hdqvZGqDjw9hdrty2ANCS
The scams refer to Telegram and social media handles:
Wealth023
DonnaDp
DonnaTricia
Dhtrades
Dptrades
Hesterpat
Hestpat
(Optional) Screenshot of comments referencing the scammer names
No response
(Required) List of the scammer names
donna patricia hester

he responded with "I can't do anything about the spam" (yes he can...he can delete it!).

You could always recommend this tool next time he says that 😉


Fix the type of return value from R2 Score Evaluator

Could you fix test_r2_score_evaluator.py too?
Thank you for fixing my mistake.

These indices is unnecessary.
https://github.com/pfnet-research/chainer-chemistry/blob/6de82de4cafd38a9826e68771432bff6ab01edc5/tests/training_tests/extensions_tests/test_r2_score_evaluator.py#L96

Fixed.

Codecov Report

Merging #339 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #339   +/-   ##
=======================================
  Coverage   80.42%   80.42%
=======================================
  Files         199      199
  Lines        9069     9069
=======================================
  Hits         7294     7294
  Misses       1775     1775


Dropdown for Employers after resume gets rejected

Give options to employers to click when/after rejecting so that the applicant can get feedback on their resume. One example may be "Not enough experience". Maybe an optional comment box as well.

This is a good idea but closing it in the interest of time/scope


[0.1.0] Brave only checks 10-12 relays successfully.

Describe the bug
When visiting next.nostr.watch in brave, ~180 relays are checked in under a second and fail, leaving a handful to pass.
To Reproduce
visit next.nostr.watch with brave
Expected behavior
Checks all relays.

Resolved with hotfixes

Was not resolved.


Removed newline

Coverage remained the same at 89.12% when pulling 18067e5f92e7a13203ff0e6843bbe5b4e77140c3 on kraftwer1:patch-1 into 1394f9d02f77d74a1e357f8f58e2655f302dbdcf on wix:gh-pages.


Add Initial Unit Tests for Functional Testing

Create first test or two to configure vitest for basic functional testing. Make sure it plays well with svelte.

Having weird dependency issues with setting up vitest. Probably bc am new with web dev and dev tool set. Will catch @Green-Ranger11 one of these evenings after 8 to fight through.


Tests

Trello tasks:
https://trello.com/c/yGrOwRnu/41-add-tests-for-all-react-components
https://trello.com/c/KMDT5m1J/42-use-shallow-rendering-in-tests
Managed to get some very basic snapshot tests for all components so that in the future people can either do TDD or just add to these tests.
Also added testing of routes.


chore: update to upstream

related -> argoproj/argo-workflows#9613

 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.0 out of 9 committers have signed the CLA.:x: tylerchr:x: tklauser:x: mvdan:x: evanelias:x: jpe90:x: stewing:x: genedna:x: jamesrom:x: cuishuangYou have signed the CLA already but the status is still pending? Let us recheck it.

Hi, thanks for opening up the PR! Is there any movement regarding signing and approving it?
Right now I'm having trouble with the linked issue, so if this resolves it it would be rather helpful for many people I think :)


Fix mods not being tracked in log

the viewer will have to be fixed before this PR can be merged.
the mod handling changes were made to fix the following bug, and to make the mods code consistent.

Looks like it works fine without changes to the viewer?

played around with this some. looks like it's working fine to me. will merge


Add multipart form, file upload support and update examples

Coverage decreased (-1.0%) to 63.401% when pulling bae62f42f3227f17a2ca8960dec0c662219ed319 on joseph-v:ExampleUpload into 5e0f84c6a591307078bfb162b277bde097182fb0 on ServiceComb:master.

write new client and server in examples/fileupload

Created a new PR (https://github.com/ServiceComb/go-chassis/pull/114) as suggested


[fix][sec] Upgrade Avro to 1.11.4 to address CVE-2024-47561

Motivation
Avro 1.11.3 contains critical 9.3/10 level RCE vulnerability in Avro Java SDK <1.11.4,  CVE-2024-47561
Modifications
Upgrade Avro to 1.11.4 to address the issue.
Additional Context
Dev mailing list discussion (contains information about release plan)
Users mailing list discussion
Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 74.53%. Comparing base (bbc6224) to head (49fea39).
Report is 627 commits behind head on master.

Additional details and impacted files

@@             Coverage Diff              @@
##             master   #23394      +/-   ##
============================================
+ Coverage     73.57%   74.53%   +0.95%
- Complexity    32624    34023    +1399
============================================
  Files          1877     1936      +59
  Lines        139502   145365    +5863
  Branches      15299    15893     +594
============================================
+ Hits         102638   108346    +5708
+ Misses        28908    28707     -201
- Partials       7956     8312     +356

Flag
Coverage Δ

inttests
27.73% <ø> (+3.14%)
:arrow_up:

systests
24.50% <ø> (+0.17%)
:arrow_up:

unittests
73.87% <ø> (+1.03%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.
see 610 files with indirect coverage changes


hoo-doccard styling issues with htwoo-react components

Describe the bug
This may have come back from a previous bug?  https://github.com/n8design/htwoo/issues/21
Creating a document card using the HooCardImage, HooCardLocation, HooCardTitle components has a styling issue when the Location/Title values are really long.
What happens is, the HooCardImage doesn't grow with the container when the card properties push the container width
To Reproduce
Given that no HooDocumentCard control exists yet, create a document card following the Pattern Lab documentation, but use the new htwoo-react components for the image/location/title

Document Card HTML

 <div className={`hoo-doccard`}>
        <HOOCardImage imageSource={<pathToImage>}/>
        <HOOCardLocation location="https://northpoleindustries.sharepoint.com/sites/WorkshopTemplate"/>
        <HOOCardTitle title="Workshop Template" />
    </div>

Expected behavior
When loading a DocumentCard, the location/title fields should either wrap/ellipsis or the HooCardImage should grow the container as these properties get longer.
Screenshots

Desktop (please complete the following information):

OS: Windows
Browser: All

Bug fixed in version 0.0.0-pre-alpha-22


Feature/add remaining indicators

This pr adds the final changes needed to release v1.0.0 on npm!
This:

adds all the remaining technical indicators
adds the new adjusted data indicators
updates the readme

Changes Unknown when pulling bc6ef7bf72ec6272d8428409159c67de159e80c5 on feature/add-remaining-indicators into ** on master**.

Changes Unknown when pulling 94c9cbd88a229251817694dca7049a9c99cd2d82 on feature/add-remaining-indicators into ** on master**.

Changes Unknown when pulling 3c2a376cf81869a240a3b2494066c35d26a26743 on feature/add-remaining-indicators into ** on master**.


Issues with OpenAPI specification

Hi,
there are some issues with the OpenAPI specification in https://github.com/dracor-org/dracor-api/blob/v1/api.yaml.
/id/{id}
There is no response 200 defined, only 303 and 404
https://github.com/dracor-org/dracor-api/blob/82dd3d4193f44a64d29207ec99bff45b10734545/api.yaml#L1008-L1009
/wikidata/author/{id}
There is no response 404 defined
https://github.com/dracor-org/dracor-api/blob/82dd3d4193f44a64d29207ec99bff45b10734545/api.yaml#L1063-L1064
Reproduce with https://staging.dracor.org/api/wikidata/author/0

The id endpoint only issues a redirect depending on the accept header. 303 is the right status code. See specifications on "cool uris". It is also explained in our report On Programmable Corpora

Hi, I am testing the API during the DraCor workshop and will post a few more examples. Alright?
Please feel free to ignore. :)

The id endpoint only issues a redirect depending on the accept header. 303 is the right status code. See specifications on "cool uris". It is also explained in our report On Programmable Corpora https://zenodo.org/record/7664964 p33

Can you give me a curl example with the correct HTTP header please?

The id endpoint only issues a redirect depending on the accept header. 303 is the right status code. See specifications on "cool uris". It is also explained in our report On Programmable Corpora https://zenodo.org/record/7664964 p33

Can you give me a curl example with the correct HTTP header please?

As stated in the /id/{id} endpoint description, you can specifically request either the JSON or RDF representation by sending the  Accept header with the respective type. Any request with another Accept header or none at all will be redirected to web page of the play. See:
curl -i -H 'Accept: application/json'  https://staging.dracor.org/id/ger000001
curl -i -H 'Accept: application/rdf+xml'  https://staging.dracor.org/id/ger000001
curl -i  https://staging.dracor.org/id/ger000001

Do we need to make that more clear?

@cmil I saw, that you already submitted a fix.
I am unsure how to proceed. Should I

edit my original issue everytime with new findings?
open a new issue per finding? Might be overkill
add a checklist of some sort, so that fixed findings can be seen more easily?

Something like this?

[ ] 404 not defined in the schema: /api/corpora/{corpusname}/play/{playname}/metrics
[ ] 404 not defined in the schema: /api/corpora/{corpusname}/play/{playname}/tei

401
The endpoints tagged as admin can return 401, which is not defined in the schema. Maybe under components you could add a 401 response component and reuse it with $ref: "#/components/responses
components
[...]
  responses:
    '401':
      description: Authorization information is missing or invalid.

With the contents {"message" : "authorization required"}
But I am not sure if this is necessary.

I am unsure how to proceed. Should I

edit my original issue everytime with new findings?
open a new issue per finding? Might be overkill
add a checklist of some sort, so that fixed findings can be seen more easily?

@afuetterer Thanks a lot for your debugging efforts! It helps greatly to improve the consistency and stability of the DraCor API. Could I still ask you to create individual issues for each new finding, i.e. for things like the ones you listed under its own subheading in the original post (but not for each individual endpoint that has the same problem)? Separate issues make it much easier to discuss and solve problems step by step and track the progress. Collecting several problems into one issue, even if they seem to be related, can make the discussion unnecessarily difficult and longwinded and lead to the issue staying unresolved for a long time.
For the current issue, you can leave it as is, but please don't add new findings. I will come back to individual comments as I find time.

Closing this. Feel free to reopen.


Update script to verify go modules to match hashes of all files

This PR addresses an issue found in the CI pipeline in https://github.com/microsoft/hcsshim/pull/1146. In that instance, the CI initially failed indicating that the test vendor modules were not up to date, which also led to test failures in the CI.
This was because the Verify-GoModules.ps1 script only validated that the code in the vendor directory of the package was unchanged. It did not, however, validate if the target go.sum file matched the expected one for the code. go mod tidy cleans up unnecessary references by removing their entries in the go.sum file, thereby changing its contents. This could cause the main modules and the test modules to become out of sync.
This PR addresses this issue by validating that all files in the target directory are as expected. This will include the go.mod and go.sum files.
Signed-off-by: Kathryn Baldauf<EMAIL_ADDRESS>

@SeanTAllen

Nice.


[EUWE] Support managed disks for Azure

This PR adds support for inventory collection and provisioning for managed disks in Azure. This is basically a backport of https://github.com/ManageIQ/manageiq-providers-azure/pull/65.
Addresses https://bugzilla.redhat.com/show_bug.cgi?id=1452227

@miq-bot remove_label wip

@miq-bot add_label darga/no

@djberg96 - Should this PR include an upgrade to version  0.7.2 of the azure-armrest gem?

@bronaghs It's not strictly necessary, but I'll get a PR in today to bring everything up to 0.7.3.


PPCv2.0 - pop-up cleanup

Feature Description
This feature had its shoes tied together, we needed the initial popup ahead of the checklist but we needed the checklist to really finish up the popup.
This ticket is now for tying up all the popup related loose ends. Each of these can be it's own PR.

[x] Adjust both help center and new checklist toggle buttons to take up less space (working with design on this) #8088
[x] Checklist popup should not collapse when clicks outside of it occur. It should only collapse when the 'x' close button is clicked.  #8112
[ ] Implement Badge count of checklist toggle #8115
[ ] In the initial set up, we reused a lot of the help center pop up and didn't really name anything as 'shared', clean up the files where possible for both helpcenter and checklist popups to make it clear what's shared.

Alternatives Considered

Additional Context
https://www.figma.com/file/1YM3jA9h4QGc4xLdyaXIJS/Stories-Sprint-1.7?node-id=8378%3A2077
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria
In LTR the checklist shows up to the right of the help center.
In RTL the checklist shows up to the left of the help center.
Badges work the same as they have in the panel: no issues listed on a new story, when priority issues are exposed then that shows up as a red badge with a number.
Popup should not close when clicked out of it or when a thumbnail or title are clicked.
Implementation Brief

While the initial popup was built based on the help center, we should still use this ticket to clean everything up. We should also handle this:

Moving the refactor to share components between helpCenter and checklist to its own follow up ticket.


Created new relationship for queries that generate no results

Have a need to know when a flowfile query returns no results.  Prior to this change, flowfile queries that generated no results disappeared into the proverbial bit bucket.

Sounds good.  I changed my Eclipse IDE from tab to spaces for future commits.


Feature Request📃: SMS Spam Detection

:red_circle: Title : SMS Spam Detection
:red_circle: Aim : To develop a model for detecting spam messages in SMS
:red_circle: Brief Explanation : The SMS spam detection project involves creating a machine learning model to classify SMS messages as either spam or legitimate. This project will utilize a dataset of labeled SMS messages for training and testing. The process includes preprocessing the text data to remove noise, extracting relevant features such as word frequencies and patterns, and selecting an appropriate machine learning algorithm for classification.
Screenshots 📷

:white_check_mark: To be Mentioned while taking the issue :

Full name : Vasudha J
What is your participant role? VSoC

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

until not assigned, don't start working on the issue


DepthMap2PointCloud

Hi, Could you tell me how to transform a depth map into a point cloud?

Here is a code snippet on how to unproject depth pixels.
This is largely inspired from the projector of the Semantic MapNet project.
import os
import sys
import json
import math
import numpy as np
import magnum as mn
import open3d as o3d
from imageio import imread
from mat4py import loadmat
from typing import Any, Dict, List, Optional, Tuple

class Projector():
    def __init__(self,
                 intrinsics: Dict
                 ):

        self.fx = intrinsics['fx']
        self.fy = intrinsics['fy']
        self.img_h = intrinsics['img_h']
        self.img_w = intrinsics['img_w']
        self.cx = intrinsics['cx']
        self.cy = intrinsics['cy']

        self.x_scale, self.y_scale, self.ones = self._compute_scaling_params()

    def _compute_scaling_params(self):
        fx = self.fx
        fy = self.fy
        cx = self.cx
        cy = self.cy

        x = np.arange(start=0, stop=self.img_w)
        x = np.expand_dims(x, axis=0)
        x = np.repeat(x, self.img_h, axis=0)
        x = x.astype(np.float)

        y = np.arange(start=0, stop=self.img_h)
        y = np.expand_dims(y, axis=1)
        y = np.repeat(y, self.img_w, axis=1)
        y = y.astype(np.float)

        # 0.5 is so points are projected through the center of pixels
        x_scale = (x - cx - 0.5) / fx#; print(x_scale[0,0,:])
        y_scale = (y - cy - 0.5) / fy#; print(y_scale[0,:,0]); stop
        ones = np.ones((self.img_h, self.img_w), dtype=np.float)

        return x_scale, y_scale, ones

    def _point_cloud(self, depth, depth_scaling=1.0):
        z = depth / float(depth_scaling)
        x = z * self.x_scale
        y = z * self.y_scale
        ones = self.ones

        x = np.expand_dims(x, axis=2)
        y = np.expand_dims(y, axis=2)
        z = np.expand_dims(z, axis=2)
        ones = np.expand_dims(ones, axis=2)

        xyz1 = np.concatenate((x,y,z,ones), axis=2)
        return xyz1

    def _transform_y_up(self,xyz1):
        R_yup = np.array([[1, 0, 0, 0],
                          [0, np.cos(np.pi), -np.sin(np.pi), 0],
                          [0, np.sin(np.pi), np.cos(np.pi), 0],
                          [0, 0, 0, 1],
                        ])
        return np.matmul(R_yup, xyz1)

    def _transform_camera_to_world(self, xyz1, T):
        return np.matmul(T, xyz1)

    def unproject_depth(self, depth, T):
        no_depth_mask = depth == 0

        xyz1 = self._point_cloud(depth)

        # shape: (height * width, 4)
        xyz1 = np.reshape(xyz1, (xyz1.shape[0] * xyz1.shape[1], 4))

        # shape: (4, height * width)
        xyz1_t = np.transpose(xyz1, (1,0))  # [4,HxW]

        # Transformed points from CV camera coordinate system to Robotic
        # coordinate system  # y is up:
        # shape: xyz1_w(4, height * width)
        xyz1_t = self._transform_y_up(xyz1_t)

        # Transformed points from camera coordinate system to world coordinate system  # GEO:
        # shape: xyz1_w(4, height * width)
        xyz1_w = self._transform_camera_to_world(xyz1_t, T)

        # shape: (height * width, 3)
        world_xyz = xyz1_w.transpose(1,0)[:, :3]

        # shape: (batch_size, height, width, 3)
        point_cloud = np.reshape(world_xyz,(depth.shape[0],
                                            depth.shape[1],
                                            3,))

        return point_cloud, no_depth_mask

class AVDParser():

    def _get_scale(self, filename: str) -> float:
        data = loadmat(filename)
        scale = data['scale']
        return scale

    def _load_positions(self, filename: str) -> Dict:
        data = loadmat(filename)
        scale = data['scale']
        world_pose = data['image_structs']['world_pos']
        directions = data['image_structs']['direction']
        image_filenames = data['image_structs']['image_name']

        poses = {}
        for t,d,n in zip(world_pose, directions, image_filenames):
            if (len(t) > 0) and (len(d) > 0):
                p = [x[0] for x in t]
                p = np.array(p) * scale

                d = [x[0] for x in d]
                d = np.array(d)

                target = p + d* scale
                up = np.array([0,-1,0], dtype=np.float)

                a = mn.Matrix4()
                a = a.look_at(
                    mn.Vector3(p),
                    mn.Vector3(target),
                    mn.Vector3(up),
                )
                T = np.array(a)
                poses[n] = T
            else:
                poses[n] = None
        return poses

    def _load_intrinsics(self, filename: str) -> Dict:
        with open(filename, 'r') as f:
            for _ in range(4):
                line = f.readline()
        elements = line.split(' ')
        intrinsics = {
            'img_w': int(elements[2]),
            'img_h': int(elements[3]),
            'fx': float(elements[4]),
            'fy': float(elements[5]),
            'cx': float(elements[6]),
            'cy': float(elements[7]),
            'k1': float(elements[8]),
            'k2': float(elements[9]),
            'k3': float(elements[10]),
            'k4': float(elements[11]),
        }
        return intrinsics

    def compute_point_cloud_for_house(self,
                                                               dirname: str,
                                                               resolution: float = 30) -> o3d.geometry.PointCloud:
        """
        Reconstructs the point cloud for a house in the AVD dataset
        dirname: provides the root dir of a house (eq Home_001_1)
        resolution: point cloud resolution in milimeters

        NOTE: the point cloud is first built in millimeters
        Convert to meters happens in the end.
        """

        # load intrinsics
        intrinsics_filename = os.path.join(dirname, 'cameras.txt')
        intrinsics = self._load_intrinsics(intrinsics_filename)

        # init Projector
        # NOTE: current projector does not take into account distortion
        projector = Projector(intrinsics)

        # load positions
        pose_filename = os.path.join(dirname, 'image_structs.mat')
        poses = self._load_positions(pose_filename)

        # loop through images and unprojects pixels
        rgbdir = os.path.join(dirname, 'jpg_rgb')
        depthdir = os.path.join(dirname, 'high_res_depth')

        point_cloud = o3d.geometry.PointCloud()

        image_filenames = os.listdir(rgbdir)
        for image_filename in image_filenames:
            image_name = image_filename.split('.')[0]
            T = poses[image_filename]

            if T is not None:

                rgb = imread(os.path.join(rgbdir, image_filename))
                rgb = rgb.astype(np.float)
                rgb = rgb / 255.0

                depth = imread(os.path.join(depthdir, image_name[:-2]+'03.png'))
                depth = depth.astype(np.float32)
                depth[depth>3000] = 0 # discard pixels projected further than 3m. Helps reducing noise.

                pc, mask_outliers = projector.unproject_depth(depth, T)

                mask_inliers = ~mask_outliers

                rgb = rgb[mask_inliers]

                pc = pc[mask_inliers]

                pc[:,1] *= -1.0 # to y is up

                tmp_pcd = o3d.geometry.PointCloud()
                tmp_pcd.points = o3d.utility.Vector3dVector(pc)
                tmp_pcd.colors = o3d.utility.Vector3dVector(rgb)

                point_cloud += tmp_pcd

                point_cloud=point_cloud.voxel_down_sample(voxel_size=resolution)

        # convert PC to meters
        points = np.array(point_cloud.points) / 1000.0
        point_cloud.points = o3d.utility.Vector3dVector(points)

        return point_cloud

if __name__=='__main__':
    rootdir = 'data/active_vision_dataset/ActiveVisionDataset'

    avd_parser = AVDParser()

    house_name = 'Home_001_1'
    dirname = os.path.join(rootdir,
                               house_name)
    point_cloud = avd_parser.compute_point_cloud_for_house(dirname)


Update to 0.22.3

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Looking at the status of things in conda-forge, I believe the reason the bot hasn't tried to update this package or rebuild it for 3.11 is that tweedledum has not been built for 3.11 yet (here). qiskit-terra officially added support for 3.11 in 0.22.2 and one of the things it did for that was drop the tweedledum dependency for 3.11 (see here). The plan is to drop tweedledum entirely for 0.23.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

@BastianZim It only built for 3.10 and below here. Do you think the migrator will be clever enough to figure out it can rebuild for 3.11 or do we need to do something manually?

Thanks @wshanks
Yes, the bot will come through and make a PR once that is introduced.
By the way, feel free to add yourself as a maintainer here and in other packages since you seem to be active in the ecosystem. :)


[v1.4]Quick Tutorial

Coverage decreased (-2.6%) to 75.134% when pulling ef2cfa828d5f47a1143003ee0072996f5963972a on ALim95:tryOutNewTutorialUI into 8c0cd5fb32ff9646871d8b746afca18eb48a03b2 on CS2103AUG2017-T15-B4:master.

Coverage decreased (-1.8%) to 75.927% when pulling d1d1894b943385ee776789deecbad9b1b862a12c on ALim95:tryOutNewTutorialUI into 8c0cd5fb32ff9646871d8b746afca18eb48a03b2 on CS2103AUG2017-T15-B4:master.

Coverage decreased (-1.6%) to 76.117% when pulling 29ffb4678cd3e31ab3d6b85020c1b1b78fa6d736 on ALim95:tryOutNewTutorialUI into 8c0cd5fb32ff9646871d8b746afca18eb48a03b2 on CS2103AUG2017-T15-B4:master.

Coverage decreased (-2.03%) to 75.732% when pulling 790b9ed5c86d121b3f00efc70d60ad248b9d23ba on ALim95:tryOutNewTutorialUI into 8c0cd5fb32ff9646871d8b746afca18eb48a03b2 on CS2103AUG2017-T15-B4:master.


[fix](partial update) fix some bugs of sequence column

Proposed changes
Issue Number: close #xxx

If user specified sequence mapping column, and the input column contains it, we should use the input value as the value of sequence column, to support that, we should do the following things:

include the sequence column in Planner
encode the sequence column into primary key index builder
If we found that there exists same key with higher sequence value, mark self as deleted

if the input columns don't contain anything related with sequence column, we should read the sequence column from base data first, then encode the key with sequence column and write it to primary key index builder
fix a bug that in memtable aggregate method, use wrong sequence idx for partial update blocks.
fix a small bug that in append_block_with_partial_content, we should iterate from row_pos to row_pos + num_rows.

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 53.22 seconds
stream load tsv:          508 seconds loaded<PHONE_NUMBER>9 Bytes, about 140 MB/s
stream load json:         19 seconds loaded<PHONE_NUMBER> Bytes, about 118 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          29.6 seconds inserted 10000000 Rows, about 337K ops/s
storage size:<PHONE_NUMBER>4 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 44.51 seconds
stream load tsv:          504 seconds loaded<PHONE_NUMBER>9 Bytes, about 141 MB/s
stream load json:         19 seconds loaded<PHONE_NUMBER> Bytes, about 118 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          29.0 seconds inserted 10000000 Rows, about 344K ops/s
storage size:<PHONE_NUMBER>8 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 48.9 seconds
stream load tsv:          525 seconds loaded<PHONE_NUMBER>9 Bytes, about 135 MB/s
stream load json:         19 seconds loaded<PHONE_NUMBER> Bytes, about 118 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.7 seconds inserted 10000000 Rows, about 336K ops/s
storage size:<PHONE_NUMBER>3 Bytes

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.52 seconds
stream load tsv:          536 seconds loaded<PHONE_NUMBER>9 Bytes, about 133 MB/s
stream load json:         19 seconds loaded<PHONE_NUMBER> Bytes, about 118 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          28.7 seconds inserted 10000000 Rows, about 348K ops/s
storage size:<PHONE_NUMBER>3 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 44.97 seconds
stream load tsv:          509 seconds loaded<PHONE_NUMBER>9 Bytes, about 140 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.2 seconds inserted 10000000 Rows, about 342K ops/s
storage size:<PHONE_NUMBER>8 Bytes

run p0

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.56 seconds
stream load tsv:          505 seconds loaded<PHONE_NUMBER>9 Bytes, about 141 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.6 seconds inserted 10000000 Rows, about 337K ops/s
storage size:<PHONE_NUMBER>4 Bytes


move rsd filler scripts to separate repository

Currently we use a bunch of NLeSC specific scripts to fill the RSD's MongoDB with data (from the corporate site, github, zotero, admin interface, etc). We should decouple that a bit more from the backend.

The filler scripts are now in https://github.com/research-software-directory/tasks-nlesc repo


OSC Haptics

I'd like a for a feature to be added that allows the controller haptics to be controlled by OSC

In what context? When acting as a tracker? Or all the time? Should steam vr haptic events be ignored in this mode?  Can you point me to a reference receiver implementation for OSC (in C or C++ preferably)?

I don't see why it'd need to be limited to just when used as a tracker, So yea all the time. I'd personally be using it to add contact receivers on my avatar that send out the OSC messages to the CV1 controllers. The Steam VR haptic events don't super matter but if you feel like adding a toggle it'd be nice. The last one, I don't really program but you could probably use something like VRCFT (https://github.com/benaclejames/VRCFaceTracking) to look at their OSC receiver implementation as a reference. There's also tons of other VRChat related projects available on GitHub to use as reference.

Oh and I'd like the haptics to behave as the ESP OSC haptics behaves, basically it takes the position of a contact inside of a receiver sent by the game and calculates velocity


Consider making waker_set its own crate

I think the waker_set implementation is useful in it's own right. At the very least futures-util has something very similar and could probably benefit from sharing the waker_set implementation between the crates. It also may be useful in implementing other synchronization abstractions or combinators that need to keep track of a list of tasks to notify.

@tmccombs agree, that'd be great. I think @stjepang and I talked about it offline a while back, but we would like to also be able to share AtomicWaker alongside WakerSet.

Maybe we could use the async-utils name for this?

I wrote a standalone crate similar to WakerSet: https://github.com/tmccombs/waitlist. In fact it started out as just a separate crate for WakerSet, but then I had some ideas I wanted to try out it ended up rather different than the original WakerSet.

There is https://github.com/stjepang/piper/blob/master/src/event.rs now, which is very similar, but not yet exposed from the crate itself.

What are the plans for the WakerSet? In this issue #728 it was stated that WakerSet was meant to be put in the async-utils crate. However, async-utils seems to be not active.
Seen the comment from @dignifiedquire , is the event-listener from @stjepang meant to be a replacement for the WakerSet?


Wrap collections in a key

When returning a data collection in a controller response like this:
SongData::collection(Song::all());

The json looks like this:
[
        {
            "name" : "Never Gonna Give You Up",
            "artist" : "Rick Astley"
        },
        {
            "name" : "Giving Up on Love",
            "artist" : "Rick Astley"
        }
]

When doing the same with a paginated collection, the JSON looks like this:
{
    "data" : [
        {
            "name" : "Never Gonna Give You Up",
            "artist" : "Rick Astley"
        },
        {
            "name" : "Giving Up on Love",
            "artist" : "Rick Astley"
        }
    ],
    "meta" : {
        "current_page": 1,
        "first_page_url": "https://spatie.be/?page=1",
        "from": 1,
        "last_page": 7,
        "last_page_url": "https://spatie.be/?page=7",
        "next_page_url": "https://spatie.be/?page=2",
        "path": "https://spatie.be/",
        "per_page": 15,
        "prev_page_url": null,
        "to": 15,
        "total": 100
    }
}

This PR will also wrap default responses in a key like this:
{
    "data" : [
        {
            "name" : "Never Gonna Give You Up",
            "artist" : "Rick Astley"
        },
        {
            "name" : "Giving Up on Love",
            "artist" : "Rick Astley"
        }
    ]
}

Other solution used in v2


Fix Notices and Comment

hotfix for bad call to get_page_set from changing its location in #2085
Review

@rosskarchner
@kave

👍


[keras]The model size is 250MB, but it takes up 800MB of memory after loading

The keras model(h5) size is 250MB, but it takes up 800MB of memory after loading
does anyone can explain the reason?

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce
Mobile device

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

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

bytes problem. I got it.


Strange Behavior with External Components in RekaJS

Hello everyone,
I'm currently experiencing a peculiar behavior with External Components in RekaJS and since there's no clear examples available, I thought it might be better to explain what I'm doing to see if I am doing something wrong.
I've created a component called TestExternal.tsx:
import React, { useState, useRef } from 'react';
export const TestExternal = React.forwardRef<
  HTMLDivElement,
  { children: React.ReactNode }
>((props, ref) => {
  return (

      {props.children}

  );
});

Then I added it in Editor.tsx so that I could use it:
t.externalComponent({
  name: 'TestExternal',
  render: (props: { children: React.ReactNode }) => {
    return <TestExternal>{props.children}</TestExternal>;
  },
})

Finally, I used the component like this:
component App() {
  val text = "Bye";
  val counter = 0;
} => (
  <$TestExternal>

.....</$TestExternal>
)

So far, everything is straightforward and it displays correctly. However, when I attempt to edit the children, everything is selected as can be seen in the screenshot below :

The only slot of the feature that I can select is as shown below :

Can anyone shed light on why this behavior is occurring? Thank you for your assistance

In the process of drafting this message, I also tried creating a slot:
component App() {
  val text = "Bye";
  val counter = 0;
} => (
  <$TestExternal>
    <Screen>
 ..... </Screen></$TestExternal>
)

component Screen() => (
  <slot/>
)

This partially solves the problem as I can now edit the text, but not the components such as Features.

Is there a solution for this as well? Any guidance would be appreciated. Thank you.

Hi, thanks for reporting this issue.
I think this is more of a bug with the site example rather than with Reka itself. The site example didn't really account for external components with slots, hence I probably missed this. I can take a look at it, but it's not a high priority in this repo since I'm currently working on the Craft.js integration with Reka which will provide better support for handling things like this.
If you're interested in fixing this bug on the site example, this is the file responsible for handling which elements are being selected: https://github.com/prevwong/reka.js/blob/main/site/components/frame/Renderer/Renderer.tsx

Hi,
Thank you for your swift response. I completely understand the priorities, and like you, I suspect that there might be an issue with the rendering.
However, I also believe that there could be an issue within RekaJS itself, specifically the way it treats ‘children’ - it doesn’t seem to consider ‘children’ as a slot. To me, this doesn’t seem like an issue on the rendering side, but rather something that occurs within the core functionality of RekaJS.
Do you have any suggestions on how I could potentially address this issue? Your guidance would be greatly appreciated.
Thank you.

Do you have an example of what do you mean by Reka doesn't treat children as slot? Reka passes the resulting view of the children template differently depending on the type of the component.
Let's say we have the following component template that we want to evaluate:
{
  type: "ComponentTemplate",
  component: { name: "Button" },
  children: [...]
}

If Button is a RekaComponent (ie: a component built with the AST), then Reka will evaluate the children template above and store it in a way that's accessible via the slot template inside the Button component.  https://github.com/prevwong/reka.js/blob/55dcdb1bbdaaa3234ac1fe64b77fcb9d09004d9e/packages/core/src/component.ts#L105-L116
Otherwise, if it's an external component (ie: React), then Reka will evaluate the children template above and store it directly as part of the external component's View; then it's the Renderer's job to ensure that view get's passed correctly to the corresponding React component. https://github.com/prevwong/reka.js/blob/55dcdb1bbdaaa3234ac1fe64b77fcb9d09004d9e/packages/core/src/component.ts#L54-L69


fix low IE Events; fix #9

wrap on() handler so that user don‘t need to care about low IE
check for cancelRequestAnimationFrame, fix #9

nice, thanks :+1:


Revert use of a Ruby Queue in the fake

Reason for Change

The conversion to use a Ruby Queue in c6603df was ill-considered.
Specifically, a Queue can push items in on the main process but needs to be in a thread to .pop.
Really, an Array is fine and does the job with no troubles, so this reverts that change.

List of Changes

Describe your changes
As a concise list of items

Changes

This reverts commit c6603df.

Minor

Use a shorter constant name and use it in the tests.
Have the test take longer than one cycle of checking for the fake queue.
Use the fake_queue flag in a spec which got missed in the conversion.

Checklist

[X] I have linked to all relevant reference issues or work requests
[X] I have added tests that prove my fix is effective or that my feature works
[X] I have added or updated necessary documentation (if appropriate)
[X] Any dependent changes have been merged and published in downstream

Recommended Reviewers
@alieander, @standingwave

I Should do.
:cry: for Ruby Queues


Add support of Expressions in BeginDialog Actions

closes: #4010
Now user can reference dialogs in AdaptiveDialog file. Then they can use an expressions to dynamically call a sub-dialog.
For example, with "dialogs":  [ "AskNameDialog", "TellJokeDialog" ], then AskNameDialog.dialog and TellJokeDialog.dialog could be referenced by expressions in BeginDialog action.
{
    "$schema": "../../../tests.schema",
    "$kind": "Microsoft.Test.Script",
    "dialog": {
        "$kind": "Microsoft.AdaptiveDialog",
        "id": "planningTest",
        "dialogs": [
            "AskNameDialog",
            "TellJokeDialog"
        ],
        "triggers": [
            {
                "$kind": "Microsoft.OnBeginDialog",
                "actions": [
                    {
                        "$kind": "Microsoft.SendActivity",
                        "activity": "I'm a dialog bot."
                    },
                    {
                        "$kind": "Microsoft.TextInput",
                        "property": "user.dialog",
                        "prompt": "Hello, what is your dialog?",
                        "unrecognizedPrompt": "Which dialog you want to call?",
                        "invalidPrompt": "That is not a valid dialog"
                    },
                    {
                        "$kind": "Microsoft.BeginDialog",
                        "options": {},
                        "dialog": "=concat(user.dialog, 'Dialog')"
                    },
                    {
                        "$kind": "Microsoft.TextInput",
                        "property": "user.newdialog",
                        "prompt": "Hello, what is your dialog?",
                        "unrecognizedPrompt": "Which dialog you want to call?",
                        "invalidPrompt": "That is not a valid dialog"
                    },
                    {
                        "$kind": "Microsoft.BeginDialog",
                        "options": {},
                        "dialog": "=concat(user.newdialog, 'Dialog')"
                    }
                ]
            }
        ],
        "defaultResultProperty": "dialog.result"
    },
    "script": [
        {
            "$kind": "Microsoft.Test.UserConversationUpdate"
        },
        {
            "$kind": "Microsoft.Test.AssertReply",
            "text": "I'm a dialog bot."
        },
        {
            "$kind": "Microsoft.Test.AssertReply",
            "text": "Hello, what is your dialog?"
        },
        {
            "$kind": "Microsoft.Test.UserSays",
            "text": "AskName"
        },
        {
            "$kind": "Microsoft.Test.AssertReply",
            "text": "Hello, what is your name?"
        },
        {
            "$kind": "Microsoft.Test.UserSays",
            "text": "Carlos"
        },
        {
            "$kind": "Microsoft.Test.AssertReply",
            "text": "Hello Carlos, nice to meet you!"
        },
        {
            "$kind": "Microsoft.Test.AssertReply",
            "text": "Hello, what is your dialog?"

        },
        {
            "$kind": "Microsoft.Test.UserSays",
            "text": "I don't know."
        },
        {
            "$kind": "Microsoft.Test.AssertReply",
            "text": "To get to the other side"
        }
    ]
}

        ],

There is some ambiguity here.  Is the intent that you can have:

A full JSON object with a $kind derived from IDialog.  (Statically loaded by loader.)
A reference to a $kind derived from IDialog like 'foo.dialog'. (Statically loaded by loader.)
An expression dynamically evaluated at runtime and dynamically loaded.
A simple $kind covers 1 & 2.
stringExpression includes both a plain string without = and one with =.  This collides with 2 above.

I believe what you want is this (with titles, descriptions, examples)
oneOf: { {$kind: Microsoft.IDialog}, {$ref: schema: #/definitions/equalsExpression}}.
This means a simple "foo.dialog" will be statically loaded and "='foo.dialog'" will be dynamically loaded.

Refers to: libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Schemas/Actions/Microsoft.BeginDialog.schema:41 in 480b981. [](commit_id = 480b981c910b857abb742babc50cf1f113507a72, deletion_comment = False)

Still working on fix the schema and CI failures.

/azp run BotBuilder-DotNet-CI-PR-yaml

@tomlm can you help take a second look at this?

@carlosscastro, could you please review this? Thank you.

@carlosscastro, could you please review this? Thank you.

@cosmicshuai, could you please update the PR?  Thank you.

@mrivera-ms
Sorry for updating late. The conflicts are resolved now.

            }

This can't be right.  Either this is a dialog, or it's a StringExpression.

Refers to: libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Schemas/Actions/Microsoft.BeginDialog.schema:33 in ca46ea4. [](commit_id = ca46ea4ef1bee5bc26bbb230c133b063d651414d, deletion_comment = False)

@tomlm
You are right. The value here should be either a dialog or an expressions which could be evaluated to string.
I looked at the definition of stringExpression, it is
"oneOf": [
        {
          "type": "string",
          "title": "String",
          "description": "Interpolated string",
          "pattern": "^(?!(=)).*",
          "examples": [
            "Hello ${user.name}"
          ]
        },
        {
          "$ref": "#/definitions/equalsExpression",
          "examples": [
            "=concat('x','y','z')"
          ]
        }
      ]

And one of the iDialog definitions is:
        {
          "type": "string",
          "pattern": "^(?!(=)).*"
        }

However, in this PR, the dialog field in BeginDialog action does not support to evaluate "Interpolated string" case, if user want to use an expression here, it must start with '='.
Also, we use oneof keyword here in beginDialog, so the iDialog and stringExpression have some overlap for the "Interpolated string" case.
Therefore, I use equalsExpression here. Do you think we should support  "Interpolated string" case here, if yes, I can modify the code to support this. And the schema will also be updated.

@cosmicshuai, could you please update this PR? Thank you.

@mrivera-ms
I just updated this PR, conflicts are resolved.


Update corresponding to the latest skeleton

Update corresponding to the latest skeleton

:white_check_mark: coverage remained the same at 57.01%


KV does not respect "prefix" when testing KV store connection

Do you want to request a feature or report a bug?
Report a bug.

What did you do?
Used an ACL in Consul 1.0.0 to restrict Traefik to read/write access "traefik" key/folder. [consul] "prefix" is set to "traefik".

What did you expect to see?
I expected Traefik to only need write access to the key/folder specified in [consul] "prefix" .
What did you see instead?
Traefik failed to start with an error message in the logs of "KV connection error: Failed to test KV store connection: Unexpected response code 403."
Output of traefik version: (What version of Traefik are you using?)

Using consul 1.0.0 in a separate docker stack, with a shared network between traefik and consul.
traefik docker-compose.yml snippet:
version: '3.4'
services:
  traefik:
    image: traefik
    command: -c /dev/null --web --docker --docker.domain=docker.localhost --logLevel=DEBUG --consul --consul.endpoint=consul_server:8500

Working ACL (as a workaround):
key "traefik" {
  policy = "write"
},
key "qmslkjdfmqlskdjfmqlksjazçueznbvbwzlkajzebvkwjdcqmlsfj" {
  policy = "write"
}

Working ACL (full root access; not desirable):
key "" {
  policy = "write"
}

Non-Working and (desirable) ACL:
key "traefik" {
  policy = "write"
}

Using an ACL with full read/write access or read/write access to the specific test key (found in the source code) allows traefik to fully work as expected.
This bug resides on line 105 of provider/kv/kv.go https://github.com/containous/traefik/blob/7192aa86b5264e014ceabceb6367d8e6ce9a2fe6/provider/kv/kv.go#L105
Instead of writing and checking the test key within the "prefix" folder, traefik attempts to write and read it from the root. This is not desirable from a security standpoint, is outside of the expected behavior, and is not documented.
I don't have a build environment up and running yet, but may contribute a pull to fix this bug at a later time.

Additionally, when running Traefik in Docker swarm mode, Traefik will not elect a leader without additional permissions. After trial and error, I discovered that the "session" Consul permission is needed.
Therefore, my "working" ACL is:
key "traefik" {
  policy = "write"
},
key "qmslkjdfmqlskdjfmqlksjazçueznbvbwzlkajzebvkwjdcqmlsfj" {
  policy = "write"
},
session "" {
  policy = "write"
}

Please document these needed permissions. I suggest in the HA/Clustering and/or Consul documentation

@vincentmele Many thanks for the analyzis!
In fact, for the moment, you can just allow read access for the key qmslkjdfmqlskdjfmqlksjazçueznbvbwzlkajzebvkwjdcqmlsfj but it's quite ugly...
I will fix this point with a PR to add the traefik prefix to this healthcheck key and complete the documentation.

Closed by #2400.


Update ood_portal

put argument -r back to user_map_cmd

This corrects the missing parameter for stripping the @uab.edu string.

this one is using uab_ood_auth.regex though. need to fix uab_ood_auth.regex before running this role again.


Twitch chat in game

Would be nice for Twitch streamers to be able to show their chat in the in-game chat window. Only issue I can think of at the moment is you most likely would have to give the OAuth token which some people might not be comfortable doing.

Duplicate of #762


Client Certs do not depend on https protocol #19

Client Certs used to connect to the Service Fabric Cluster do not depend on the https protocol.
For my own use case, I prefer to hit the local cluster endpoint and not traverse the network or load balancer.

Hi @craftyhouse @dario-ms, can this PR be reviewed and merged, please? It's a relatively simple one :-)

I've abandoned this PR, as on review, it's not required in my use case.


Added JWT_PAYLOAD_HANDLER usage example to the docs

Added JWT_PAYLOAD_HANDLER usage example to the docs. https://github.com/GetBlimp/django-rest-framework-jwt/issues/367#issuecomment-334878640
@blueyed

Reminded me of https://github.com/GetBlimp/django-rest-framework-jwt/pull/370.

Maybe we should have an explit test to cover this use case?


Demo File

Can someone help me figure out how to make a decent demo file? It would make it dramatically easier to test and supply patches.
Below is my first attempt which results in

"Failed to load resource: net::ERR_FILE_NOT_FOUND : deps.js"

Is a build step required? Here's my HTML:
<html>
<head>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/skulpt/skulpt.js"></script>
<script>
// the domOutput is called whenever the chart is rendered
// and is expected to append the provided html to the DOM
// and return the resulting jquery element
Sk.domOutput = function(html) {
  return $('body').append(html).children().last();
};

// tell Skulpt where to find pygal.js and its dependencies
Sk.externalLibraries = {
  pygal : {
    path : './__init__.js',
    dependencies : [
      'bower_components/highcharts/highcharts.js',
      'bower_components/highcharts/highcharts-more.js'
    ]
  }
};

// optionally configure the size (in pixels) at which the charts should render
Sk.availableWidth = 600;
Sk.availableHeight = 400;
</script>
</head>
<body>

</body>
</html>

@prescod While not a minimal example, the link below might help out. It's an HTML trinket that sets up skulpt, highcharts, and pygal. The __init__.js included in the trinket is currently the same as the one in this repo. You could theoretically make changes to it within the trinket for testing... Of course you can't open a pull request from the trinket but hopefully it'll help.
https://trinket.io/embed/html/4642c05cb4
As far as the missing deps.js file goes, I think you get that when using the non-minified version of skulpt. If you want to pull in the latest build we use you can pull it from this repo.
Anyway, let me know of any questions.

Fixed by #8.


docker/cli version is vulnerable

It appears that as of 3d61c5383ea54b1fc515c24d803744d9ed0a9526, moby/buildkit  v0.9.3 (go.mod link) is pulling in docker/cli v20.10.7+incompatible which is vulnerable to CVE-2021-41092.  It appears this is used in pkg/scan/ (via pkg/parser/docker/), and is blocked on a release in an upstream project https://github.com/moby/buildkit/issues/2534
Steps to Reproduce the Problem
$ git clone https://github.com/Checkmarx/kics
$ cd kics
$ go list -m -u all | grep 'docker/cli' | grep 'v20.10.7+incompatible'  # The fix is in v20.10.9
github.com/docker/cli v20.10.7+incompatible [v20.10.12+incompatible]

Hello, @JonZeolla! I hope everything is well with you!
Thank you so much for reporting the bug! 🚀
For now, we forced the v20.10.12+incompatible version for github.com/docker/cli in PR #4666.

Wonderful, thank you!