Crash on start

Trying to include mdast-lint into workflow, but mdast crashes on start
$ node_modules/.bin/mdast
/Users/dikmax/workspace/dikmax.name-shake/node_modules/mdast/node_modules/npm-prefix/node_modules/untildify/index.js:7
                throw new TypeError('Expected a string');
                ^

TypeError: Expected a string
    at module.exports (/Users/dikmax/workspace/dikmax.name-shake/node_modules/mdast/node_modules/npm-prefix/node_modules/untildify/index.js:7:9)
    at module.exports (/Users/dikmax/workspace/dikmax.name-shake/node_modules/mdast/node_modules/npm-prefix/index.js:10:10)
    at Object.<anonymous> (/Users/dikmax/workspace/dikmax.name-shake/node_modules/mdast/lib/cli/file-pipeline/configure.js:20:38)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Users/dikmax/workspace/dikmax.name-shake/node_modules/mdast/lib/cli/file-pipeline/index.js:19:17)

Could you post some code? Just an error is pretty hard to work with for me...

I'm sorry! Could you reinstall dependencies and check again? (Just bumped npm-prefix to 1.1.1.)

@eush77 this seems to be happening in npm-prefix, which probably passes a non-string prefix variable.

Oh nice, thanks @eush77 ;)

Updated dependencies fixed issue! Thanx!

Thanks for the work @eush77, thanks for reporting @dikmax!


move or remove bprun.sh

bprun.sh is a relic of the days before docker-compose
we don't want it mistakenly copied to projects that are using buildpro images (the docker-compose.* files in the root of buildpro are now symbolic links to files in .devcontainer/, and the contents of the .devcontainer/ directory can be copied to other projects for a quick start on docker images and build containers)

completed with commit referenced above


Fix foreach() with element skipping syntax in list()

This fixes a null child node problem in PreOrderAnalysisVisitor::visitForeach() with code like:
foreach ([] as list(, $a));

I think having simple test for this case would be nice. To show did not work, to show it works now and to regress in the future.

Sure - should I create a new bugs directory in tests/Phan for this (and related) bugs? Or simply place them in tests/Phan?

@scaytrase Done :)

Thanks @tpunt


Deep-linking with React Navigation

Report
Is there a way to imperatively get the deep-link params that the app was launched with? I am trying to integrate with React Navigation V6, and I need a way to get the initial params inside of the getInitialURL function, similar to how the React Navigation example calls branch.getFirstReferringParams(). I know AppsFlyer's SDK exposes deep-linking callbacks (onInstallConversionData, onAppOpenAttribution, and onDeepLink), but I'm not sure how I can call these imperatively from inside React Navigation's getInitialURL function. Thanks in advance for any help you can offer!

Hi @awkpagong and thank you for contacting us.
Initial parameters can only be retrieved from onInstallConversionData  and onDeepLink. Notice that you must use AppsFlyer delegate methods in the AppDelegate and not RCTLinkingManager in order to trigger the deep link flow.

Hi @awkpagong and thank you for contacting us.
Initial parameters can only be retrieved from onInstallConversionData  and onDeepLink. Notice that you must use AppsFlyer delegate methods in the AppDelegate and not RCTLinkingManager in order to trigger the deep link flow.

Hi @amit-kremer93, thanks for the response. My issue is that I have no way of knowing if a OneLink is being opened inside of react-navigation's getInitialURL() function. As a result, my app is loading the default initial route, and then almost immediately resetting the app state when the AppsFlyer onDeepLink function gets called. As you can imagine, this creates an undesirable screen flash whenever a OneLink is opened and the navigation state gets reset. Are you aware of any way to work around this issue? Ideally I only want to render a single screen when a OneLink is opened.

We have a sample app in this project here. We are not using RCTLinkingManager, just AppsFlyer delegate methods

Hi @amit-kremer93
How I know App is opened from deep link or normally
when app is open from deep link appsFlyer.onDeepLink method is called and gives the response
but when app is open in normal way onDeepLink method did not  called or not gives any response
How we will handle our navigation accordingly without any knowing the app is opened from deep link or not
appsFlyer.onInstallConversionData method always gives this data if i will open app from deep link or open normal app
af_message: "organic install"
af_status: "Organic"
install_time: "2021-11-10 11:44:15.657"
is_first_launch: false
[[Prototype]]: Object
status: "success"
type: "onInstallConversionDataLoaded"
Please help !!!
How to handle app navigation without any detection of this thing App is opened from deep link or not there is no status which are telling the dev anything .....

@Deep-CB like you mentioned, if the appsFlyer.onDeepLink is called it means that the app opened from deeplink. if appsFlyer.onDeepLink didn't called so its a normal open

@amit-kremer93 I am have a problem with UDL links, when my app is open and i click on UDL link the callback appsFlyer.onDeepLink is not called, but if my app is closed the callback is called and redirect the user correctly.

@amit-kremer93 same problem here.
When app is closed/terminated (basically not running), opening the deeplink url opens the app and onDeepLink is triggered.
However, when the app is in the foreground (example: user is using the app) and a deeplink is clicked (somehow), onDeepLink does not get triggered.
Please advise.

@amit-kremer93 could you please provide solution? why is this thread simply closed when there is 0 solution or explanation provided?
i have followed documentation and also found an example of onDeepLink implementation in example app
here . But it does not solve the problem with deepLink foreground listener.

@andrisLaduzans have you tried this?
https://github.com/AppsFlyerSDK/appsflyer-react-native-plugin/blob/master/Docs/DeepLink.md#-android-deeplink-setup

@andrisLaduzans this is something that needs deeper investigation. I suggest you to contact our support team<EMAIL_ADDRESS>with code snippets of your code.

@andrisLaduzans have you tried this? https://github.com/AppsFlyerSDK/appsflyer-react-native-plugin/blob/master/Docs/DeepLink.md#-android-deeplink-setup

yes, i already mentioned , that i have done all steps of installation, integration,  and testing. The only problem that remains is 'foreground' deepLinks listening. i am also using react-react-native navigation v6
also previously used firebase deepLinking api and implemented exactly how it 'should be done' according to documentation deep-linking#third-party-integrations and it worked flawlessly.
I have also tried implementing appsFlyer's onDeepLink api in similar manner (using react-native-navigation Linking api) but it just does not work. Only way is using the useEffect method in some screen... so now i have to refactor half of the codebase to compliment this approach. so sorry for me being a bit 'salty'.
And this thread is covering exactly the same problem i have but is closed without any support or solution.

Our team is also facing this issue

I have been fiddling around with this and one workaround that I did that seemed to work was leveraging the appsflyer function: performOnAppAttribution
https://support.appsflyer.com/hc/en-us/articles/4410482202897#performonappattribution
This function will process a link that you pass in as a parameter. So I have all the usual React-Navigation setup and the appsflyer listeners (appsFlyer.onAppOpenAttribution, etc). Then I also added the listener in a useEffect for Linking as such:
  useEffect(() => {
    const listener = Linking.addListener('url', event => {
      if (event?.url) {
        if (event.url.includes(`/${APPSFLYER_ONE_LINK_ID}/`)) {
          //This will process the link as a onelink if it contains the appsflyerOnelink ID.
          // This is the workaround to process both appsflyer and non appsflyer links.
          appsFlyer.performOnAppAttribution(
            event.url,
            res => {
              console.log('Processed a oneLink', res);
            },
            error => {
              console.log('Failed to process a oneLink', error);
            },
          );
        }

    return () => {
      listener.remove();
    };
  }, []);

This will then trigger the onAppOpenAttribution, etc and do the correct deconstruction.
Hopefully this helps!

@gakinson would you mind giving me a full example of this with react navigation?


Add pipe grant

Add a snowflake pipe grant resource. Currently pipes only support ALL and OWNERSHIP privilege statements. (https://docs.snowflake.com/en/user-guide/security-access-control-privileges.html#pipe-privileges)
This was almost a find and replace exercise on the stage_grant resource.
I have added unit tests but not acceptance tests.

@mtranter can you fix conflicts or close this PR?


Problem calling callback in bulk delete

When I do this, calls the callback AfterDelete with zeros values in the struct
txn.Where("user_id = ? and project_id = ?", u.ID, projectID).Delete(UsersProjects{}).Error

//the callback
func (u UsersProjects) AfterDelete(txn *gorm.DB) error {}

The u inside the callback has zero fields, so I think it should pass the real variable to the callback or don't call the callback

It will pass the value you passed to Delete to Callback
You might want to find the value out first, then delete it, like:
if !db.First(&userProject, "user_id = ? AND project_id = ?", uid, pid).RecordNotFound() {
  db.Delete(&userProject)
}


Bump multidict from 5.2.0 to 6.0.2

Bumps multidict from 5.2.0 to 6.0.2.

Release notes
Sourced from multidict's releases.

v6.0.2
Bugfixes

Revert (#644), restore type annotations to as-of 5.2.0 version. ((#688))

v6.0.1
Bugfixes

Restored back MultiDict, CIMultiDict, MultiDictProxy, and
CIMutiDictProxy generic type arguments; they are parameterized by value type, but the
key type is fixed by container class.
MultiDict[int] means MutableMultiMapping[str, int]. The key type of
MultiDict is always str, while all str-like keys are accepted by API and
converted to str internally.
The same is true for CIMultiDict[int] which means MutableMultiMapping[istr, int]. str-like keys are accepted but converted to istr internally. ((#682))

v6.0.0
Features

Use METH_FASTCALL where it makes sense.
MultiDict.add() is 2.2 times faster now, CIMultiDict.add() is 1.5 times faster.
The same boost is applied to get*(), setdefault(), and pop*() methods. ((#681))

Bugfixes

Fixed type annotations for keys of multidict mapping classes. ((#644))
Support Multidict[int] for pure-python version.
__class_getitem__ is already provided by C Extension, making it work with the pure-extension too. ((#678))

Deprecations and Removals

Dropped Python 3.6 support ((#680))

Misc

(#659)

Changelog
Sourced from multidict's changelog.

6.0.2 (2022-01-24)
Bugfixes

Revert :issue:644, restore type annotations to as-of 5.2.0 version. (:issue:688)

6.0.1 (2022-01-23)
Bugfixes

Restored back MultiDict, CIMultiDict, MultiDictProxy, and
CIMutiDictProxy generic type arguments; they are parameterized by value type, but the
key type is fixed by container class.
MultiDict[int] means MutableMultiMapping[str, int]. The key type of
MultiDict is always str, while all str-like keys are accepted by API and
converted to str internally.
The same is true for CIMultiDict[int] which means MutableMultiMapping[istr, int]. str-like keys are accepted but converted to istr internally. (:issue:682)

6.0.0 (2022-01-22)
Features

Use METH_FASTCALL where it makes sense.
MultiDict.add() is 2.2 times faster now, CIMultiDict.add() is 1.5 times faster.
The same boost is applied to get*(), setdefault(), and pop*() methods. (:issue:681)

Bugfixes

Fixed type annotations for keys of multidict mapping classes. (:issue:644)
Support Multidict[int] for pure-python version.
__class_getitem__ is already provided by C Extension, making it work with the pure-extension too. (:issue:678)

Deprecations and Removals

... (truncated)

Commits

484b523 Bump to 6.0.2
2f4af01 Fix docstring for pure-Python .get()
fe3534c Revert #644, restore type annotations to as-of 5.2.0 version (#688)
572ce02 Update spelling whitelist
b9d9455 Fix spelling
6eb12bf Bump to 6.0.1
19c4ef3 Drop wrong key parametrization for concrete classes (#682)
c7138ca Fix spell checker
a622632 Bump to 6.0.0
3da0f79 Use METH_FASTCALL where it makes sense (#681)
Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Codecov Report

Merging #396 (d343643) into master (b49254c) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #396   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           10        10
  Lines         1298      1298
=========================================
  Hits          1298      1298


Day 1

Description

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Steps to QA

Tier (staff will fill in)

[ ] Tier 1
[ ] Tier 2
[ ] Tier 3
[ ] Tier 4

[optional] What gif best describes this PR or how it makes you feel?

sorry I just pushed it wrong


err_t_domain and err_s_domain

Hi.  I refer to your network design and loss to train my dataset for this experiment. When traing the network, I try to output the total loss of  err_t_domain and err_s_domain, the total loss decreases a little at first and then remain unchanged. Thanks.

If your data are similar to mnist and mnistm, you can try to adjust the lamda value.

My source data and target data are pedestrians. The value of err_domain has always been 1.3863 and does not drop.

Pedestrians are far more complex than digits, I think it may be underfitting in your experiment.

Thank for your reply.  if the err_domain loss doesn't drop, it means my source data and target data are not similar?

Underfitting means the model cannot transfer the information between source and target domain, either because of the data or your model.

My task is not classification, but super resolution. I just use the super resolution network to extract features, and then input the features into the domain classification for discrimination.

Oh, I think this network can only extract class level information, pixel information may be very difficult.

Which network do you mean? super resolution network?

DANN，I mean, it is not strong enough to transfer pixel information.

Thanks.


Ensure docs.rs compliance

Breaking changes coming to docs.rs. Worth checking if we are compliant: https://blog.rust-lang.org/2019/09/18/upcoming-docsrs-changes.html

I've verified that we have no problems building docs with the new requirements.


Add a literal_substr macro

Codecov Report

Merging #15 into main will increase coverage by 0.29%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
+ Coverage   96.89%   97.19%   +0.29%
==========================================
  Files           6        6
  Lines         837      855      +18
==========================================
+ Hits          811      831      +20
+ Misses         26       24       -2

Impacted Files
Coverage Δ

src/substr.rs
96.05% <ø> (+1.31%)
:arrow_up:

src/mac.rs
100.00% <100.00%> (ø)

tests/substr.rs
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03dab09...d81086e. Read the comment docs.


Menu Entry Swapper Fragments

Is your feature request related to a problem? Please describe.
It's ungodly annoying to unequip and equip fragments when changing activities.
Describe the solution you'd like
Menu entry swapper integration allowing for customizable left click or shift left click to unequip (from top row) or equip (bottom left side of UI) in one click instead of right clicking 14 times per swap.
Describe alternatives you've considered
Dragging is unreliable due to tick timings.
Additional context
SS attached for reference.

Basically a duplicate of #14625


rosidl_defaults: 1.1.1-1 in 'rolling/distribution.yaml' [bloom]

Increasing version of package(s) in repository rosidl_defaults to 1.1.1-1:

upstream repository: https://github.com/ros2/rosidl_defaults.git
release repository: https://github.com/ros2-gbp/rosidl_defaults-release.git
distro file: rolling/distribution.yaml
bloom version: 0.10.3
previous version for package: 1.1.0-1

rosidl_default_generators

No changes

rosidl_default_runtime
* updating quality declaration links (re: ros2/docs.ros2.org#52 <https://github.com/ros2/docs.ros2.org/issues/52>) (#18 <https://github.com/ros2/rosidl_defaults/issues/18>)
* Contributors: shonigmann

Please hold for coordinated merge.


20.sh issue on debian-10

When running 20.sh script from unix50 with the following flags:
export PASH_FLAGS='-w16 --r_split --dgsh_tee --r_split_batch_size 1000000'
I get:
r_wrap: There is a problem with reading the block: Success
However, by reducing the size to 1000, the issue seems to be fixed.
I encountered this issue when running on the docker version of pash on debian on branch setup-fixes.
To reproduce it do the following:

docker run -it binpash/pash:debian-10 /bin/bash (haven't checked if this applies to native instance as well)
build pash on branch main
checkout to setup-fixes (so you can run with the small input)
source run.par.sh (evaluation/benchmarks/)
export PASH_FLAGS='-w16 --r_split --dgsh_tee --r_split_batch_size 1000000'
unix50_pash --small (so you can use the small dataset)

I think the issue is related to the small input size of the data (--small)
@tammam1998 could you help me with that?

Does the issue happen only on debian:10, what about ubuntu?

I only tested debian:10 (since it matches the OS running on deathstar). However, I could not reproduce the issue all the times I tested the experiment (I think you had encountered a similar issue in the past).

Yes, I thought I fixed it with a pull request couple weeks ago. Did you not recompile the runtime after merging the future branch by any chance?

I tested it on a fresh installation/setup on future

I see, I will look into it

Hi @dkarnikis,
I followed the same setup as you and I'm having some problems.
1- I can't switch to other git branches, do I have to run any commands to get the full repo? Also, the main branch was a little outdated fixed by running git pull.
2- I tried running test_evalutation scripts (on the latest main branch) and only 26/54 test cases pass. This is deterministic and the results are the same even with no pash flags like r_split and dgsh_tee.
3- In step 2 you say build on main but I believe the fix I submitted is only on future rn. When I followed the steps (outside of docker on a native machine) I got the same error. However, after I ran make all on the setup-fixes branch the problem stopped happening.

Seems to be solved by recompiling the runtime in the future branch. Closing


fix: new deps

updated several important node modules

:tada: This PR is included in version 1.5.10 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Testnet and Mainnet Release Notes

https://docs.google.com/document/d/1V1BhNKueVmUOk01Lx_7fL29RUbXksn7KUoZwt8DPw14/edit

@kaminskyelina wrote whatever we know now. Assigned to you to fill the gaps.

Sasha, since we release Testnet first- please update or create new RN for testnet

https://docs.google.com/document/d/1OhyPrHRV55vW1UrANIQbZxrlcGbs_wajcG-QpxkgoMY/edit#


Update dependencies

This PR just contains a bunch of dependency bumps throughout.
Mostly just where minor/patch bumps should not affect functionality. For all packages, I did not touch @types/node, typescript, and webpack-cli. I imagine these upgrades could cause a lot more issues than simple version bumps.
The following packages had some specific packages that I didn't touch (needs more thorough testing):

@qualweb/act-rules
@qualweb/cli
@qualweb/core
@qualweb/crawler
@qualweb/util

Merging this PR should also close the following issues: #45, #46, #47, #48, #49, #50, #51, #52, #53, #54, #55, #56, #57, #58, #59


Add optimizer checkbox to demo UI, fix a number of optimizer compatibility issues with demo blocks

Fixed demo block incompatibilities with the optimizer, such as mismatched uniform / connection point names, and conditionals in the bind function. Backlog items have been created to add tooling / conventions to make these mistakes harder to make.
Marked a few demo blocks as unoptimizable since they contain too much branching to be merged into a large shader.
Added an optimizer checkbox in the demo app UI to toggle the optimizer on / off, as well as an option for viewing the optimized or unoptimized graph in the editor.
Added the PremultiplyAlphaBlock to the default graph to get the correct output.
Moved the optimizer step from the demo loader to the demo renderer to make it easy to toggle back and forth without reloading.
Modified the demo animation code to enable the webcam block to work in optimized graphs.

Other comments:

OptimizeShaderBlock looks like it has a "Disable" connection point that doesn't seem to do anything? Not sure where it's coming from, though.
Just checking, but there weren't any fixes required for the optimizer itself, right?

It gets that from ShaderBlock, and should be harmless.  No changes were needed in the optimizer yet, but I filed some backlog items to track making it hard to make the two mistakes I found in this PR - assuming the texture is defined in the bind(), and the requirement that input names must match the names of the uniform they are bound to.


examples throw error

all examples throw
invariant.js?96aa*:42 Uncaught Error: Invariant Violation: _registerComponent(...):  Looks like this is with how I have webpack dev server configured. I"ll take a look.

Looks like this happened because webpack was serving its own index.html for the examples unless you specifically visited /example/index.html.
I've made a dedicated examples page. It should alleviate the issue, but let me know if things still aren't working for you.

:clap: works now, except that the advance example throws an error:
Warning: Failed propType: Required prop `lists` was not specified in `Body`. Check the render method of `Home`.
warning.js:48 Warning: Failed propType: Required prop `items` was not specified in `Body`. Check the render method of `Home`.

Hmmm. No dice on my end. Have you opened the examples before? We cache data in localStorage for that example, what happens if you clear it?

I never followed up on this... I apologize. The examples should work, and Microcosm should now work in React Native. It did for a long time, however in the past few releases I added added a debug warning long the lines of:
You may have imported an action from the wrong namespace, like:
import { badNamespace } from 'actions'

Even though it was a string, it through off the ReactNative JS parser. I've fixed this. I'll work with the ReactNative project to see if we can fix the parse issue as well.

Yeah, haven't tried again. Sorry, but thanks for coming back to this. :+1:


The server encountered an error and could not complete your request

Hi,
I have a small question, I don't understand why, but since last week, when I want to install a session with docker-compose, I have this page displayed.

Yet usually everything works but I really don't see it, yet I use this script:
version: "3"
services:
  answer:
    image: answerdev/answer
    ports:
      - '<IP_ADDRESS>:9080:80'
    restart: always
    volumes:
      - answer-data:/data

volumes:
  answer-data:

Thank you in advance for your reply

in fact I install it in elest.io, my docker-compose is like that
version: "3.9"
services:
  answer:
    image: answerdev/answer:latest
    ports:
      - '<IP_ADDRESS>:9080:80'
    restart: always
    depends_on:
      db:
        condition: service_healthy
    links:
      - db
    volumes:
      - ./answer-data/data:/data
  db:
    image: mariadb:10.4.7
    ports:
      - '<IP_ADDRESS>:13306:3306'
    restart: always
    environment:
      MYSQL_DATABASE: answer
      MYSQL_ROOT_PASSWORD: root
    healthcheck:
      test: [ "CMD", "mysqladmin" ,"ping", "-uroot", "-proot"]
      timeout: 20s
      retries: 10
    command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--skip-character-set-client-handshake']
    volumes:
      - ./answer-data/mysql:/var/lib/mysql

and my elestio.yml is like that
ports:
  - protocol: "HTTPS"
    targetProtocol: "HTTP"
    listeningPort: "443"
    targetPort: "9988"
    targetIP: "<IP_ADDRESS>"
    public: true
    path: "/"
    isAuth: false
environments:
  - key: "DOMAIN"
    value: "[CI_CD_DOMAIN]"
  - key: ADMIN_PASSWORD
    value: "random_password"
  - key: "ADMIN_EMAIL"
    value: "[EMAIL]"
  - key: "ANYMAIL"
    value: "True"
  - key: "DEFAULT_FROM_EMAIL"
    value<EMAIL_ADDRESS>  - key: "EMAIL_HOST"
    value: "<IP_ADDRESS>"
  - key: "EMAIL_PORT"
    value: "25"
  - key: "EMAIL_HOST_USER"
    value: ""
  - key: "EMAIL_HOST_PASSWORD"
    value: ""
  - key: "EMAIL_USE_TLS"
    value: "False"
  - key: "EMAIL_USE_SSL"
    value: "False"

config:
  runTime: "dockerCompose"
  version: ""
  framework: ""
  buildCommand: "docker-compose build"
  buildDir: "/"
  runCommand: "docker-compose up -d"
  icon: ""
  screenshot: "answer.jpg"
lifeCycleConfig:
  preInstallCommand: "./scripts/preInstall.sh"
  postInstallCommand: "./scripts/postInstall.sh"
  preBackupCommand: "./scripts/preBackup.sh"
  postBackupCommand: "./scripts/postBackup.sh"
  preRestoreCommand: "./scripts/preRestore.sh"
  postRestoreCommand: "./scripts/postRestore.sh"
webUI:
  - url: "https://[CI_CD_DOMAIN]"
    label: "Answer Admin"
    login: "[ADMIN_EMAIL]"
    password: "[ADMIN_PASSWORD]"

and since the last week everything was ok

So I found the problem, it's not mentionned in your link, but I needed to access to the url and at the end it need /install


Some questions...

Via Sourcery .stencil templates is it possible to access doc comments (the documentation of structures/functions in source code)? Example:

/// Returns an array of zone_pick_request ids for all the requests that are currently pickable in the given zone, filtered down with the given filter.
///
/// - Parameters:
///   - zone: The zone to check
///   - filter: The filter to use
public func pickableIdsInZone(zone: Int, filter: NonconveyableFilter) throws -> [Int] {
    ...
}

Via Sourcery .stencil templates is it possible to access top-level functions in a package, in other words functions that are not embedded within a specific type. Example:

public func zip3(one: Any, two: Any, three: Any) {
    ...
}

Thanks!

@randomstrings I'm sorry but none of this is supported

Thank you!


Blended drawItem removed, simple interpolation instead.

This commit fixes exception throwing problem on mouseover during shape morph.

Draft for now because it breaks the selection feature.


[VL] Minor fix for cpp code style (part 1)

What changes were proposed in this pull request?
Minor fix for cpp code style.
How was this patch tested?
CI verified.

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_master_12_05_2024_time.csv
log/native_master_11_30_2024_31e1b7449f_time.csv
difference
percentage

q1
51.63
52.01
0.388
100.75%

q2
39.29
40.19
0.906
102.31%

q3
80.77
80.27
-0.498
99.38%

q4
64.00
63.48
-0.525
99.18%

q5
158.20
155.99
-2.217
98.60%

q6
20.40
21.77
1.375
106.74%

q7
179.13
179.17
0.041
100.02%

q8
161.88
160.44
-1.435
99.11%

q9
246.49
252.82
6.326
102.57%

q10
88.31
89.42
1.101
101.25%

q11
38.23
37.31
-0.926
97.58%

q12
41.30
41.78
0.477
101.15%

q13
76.33
77.88
1.549
102.03%

q14
36.63
36.42
-0.214
99.42%

q15
59.93
59.98
0.057
100.10%

q16
23.02
21.54
-1.480
93.57%

q17
224.10
224.11
0.005
100.00%

q18
339.69
343.58
3.892
101.15%

q19
34.30
34.62
0.320
100.93%

q20
56.00
58.45
2.448
104.37%

q21
1317.35
1456.39
139.042
110.55%

q22
32.75
32.51
-0.240
99.27%

total
3369.73
3520.12
150.392
104.46%


安培架构GPU（如RTX 3090）环境版本冲突

您好，根据环境安装教程docs/prepare_env/zh/install_guide_nerf.md，如RTX 3090的安培架构GPU需要安装cuda 11.2，但是根据anacodna官网给出的信息：https://anaconda.org/pytorch3d/pytorch3d/files?sort=basename&version=0.6.2&sort_order=desc
pytorch3d 0.6.2版本仅支持cuda 11.1或cuda 11.3，没有对应cuda 11.2的版本。
与此同时，安培架构GPU的最低CUDA版本是cuda 11.1，故英文版本的教程中的cuda 11.0也有问题。
除此之外，pytorch3d 0.6.2的所有py3.8_cuda11.x版本中，最低的pytorch版本为1.10.1，故教程中的pytorch 1.7.1也不对

Hi, thanks for pointing out that! The guide is mainly intended for rtx2080. I will update the installation_guide on rtx3090.
For your convenience, below are my library versions of RTX3090:

# Name                    Version                   Build                Channel
pytorch                   1.11.0          py3.7_cuda11.3_cudnn8.2.0_0    pytorch
cudatoolkit               11.3.1               h2bc3f7f_2    defaults
pytorch3d                 0.6.2           py37_cu113_pyt1110    pytorch3d
torchaudio                0.11.0+cu113             pypi_0    pypi
torchvision               0.12.0+cu113             pypi_0    pypi

Hopefully, this may help you out.

Hi, thanks for your reply, referring to your environment, I seem to be able to run your model successfully. But when running script bash scripts/infer_postnet.sh with reference to README, I encountered an error that the file could not be found:
FileNotFoundError: [Errno 2] No such file or directory: 'data_util/BFM_models/BFM_model_front.mat'

Hi, please refer to the download link in section 1.3 of docs/prepare_env/install_guide_lrs3.md

Thank you for your reply. Are the other steps of this tutorial docs/prepare_env/install_guide_lrs3.md necessary to run the Quick Start successfully?

Hi, is the same for the process_lrs3 environment configuration？

I successfully ran script bash scripts/infer_postnet.sh, but encountered the following error when running script bash scripts/infer_lm3d_nerf.sh
The deepspeech extracted successfully, saved at:  data/raw/val_wavs/zozo_16k_deepspeech.npy
The shape is:  (272, 16, 29)
Saved deepspeech features of data/raw/val_wavs/zozo_16k.wav to data/raw/val_wavs/zozo_16k_deepspeech.npy.
Loaded deepspeech features from data/raw/val_wavs/zozo_16k_deepspeech.npy.
| Unknow hparams:  []
The eye blink mode is: gt
Traceback (most recent call last):
  File "inference/nerfs/lm3d_nerf_infer.py", line 146, in <module>
    LM3dNeRFInfer.example_run(inp)
  File "/workspace/GeneFace/inference/nerfs/base_nerf_infer.py", line 292, in example_run
    infer_ins.infer_once(inp)
  File "/workspace/GeneFace/inference/nerfs/base_nerf_infer.py", line 256, in infer_once
    samples = self.get_cond_from_input(inp)
  File "inference/nerfs/lm3d_nerf_infer.py", line 110, in get_cond_from_input
    mel, energy = get_mel_from_fname(self.wav16k_name, return_energy=True)
  File "/workspace/GeneFace/data_util/extract_mel.py", line 29, in get_mel_from_fname
    mel_basis = librosa.filters.mel(sample_rate, fft_size, num_mels, fmin, fmax)
TypeError: mel() takes 0 positional arguments but 5 were given

I installed librosa with conda instead of pip which mentioned in the tutorial docs/prepare_env/install_guide_nerf.md. Is this the cause of the error?

@yerfor

Hi, is the same for the process_lrs3 environment configuration？

Yes. I will update the installation guide for process_lrs3 environment accordingly.

I successfully ran script bash scripts/infer_postnet.sh, but encountered the following error when running script bash scripts/infer_lm3d_nerf.sh
The deepspeech extracted successfully, saved at:  data/raw/val_wavs/zozo_16k_deepspeech.npy
The shape is:  (272, 16, 29)
Saved deepspeech features of data/raw/val_wavs/zozo_16k.wav to data/raw/val_wavs/zozo_16k_deepspeech.npy.
Loaded deepspeech features from data/raw/val_wavs/zozo_16k_deepspeech.npy.
| Unknow hparams:  []
The eye blink mode is: gt
Traceback (most recent call last):
  File "inference/nerfs/lm3d_nerf_infer.py", line 146, in <module>
    LM3dNeRFInfer.example_run(inp)
  File "/workspace/GeneFace/inference/nerfs/base_nerf_infer.py", line 292, in example_run
    infer_ins.infer_once(inp)
  File "/workspace/GeneFace/inference/nerfs/base_nerf_infer.py", line 256, in infer_once
    samples = self.get_cond_from_input(inp)
  File "inference/nerfs/lm3d_nerf_infer.py", line 110, in get_cond_from_input
    mel, energy = get_mel_from_fname(self.wav16k_name, return_energy=True)
  File "/workspace/GeneFace/data_util/extract_mel.py", line 29, in get_mel_from_fname
    mel_basis = librosa.filters.mel(sample_rate, fft_size, num_mels, fmin, fmax)
TypeError: mel() takes 0 positional arguments but 5 were given

I installed librosa with conda instead of pip which mentioned in the tutorial docs/prepare_env/install_guide_nerf.md. Is this the cause of the error?

It seems to be a version problem of Librosa. I will check it later.

I successfully ran script bash scripts/infer_postnet.sh, but encountered the following error when running script bash scripts/infer_lm3d_nerf.sh
The deepspeech extracted successfully, saved at:  data/raw/val_wavs/zozo_16k_deepspeech.npy
The shape is:  (272, 16, 29)
Saved deepspeech features of data/raw/val_wavs/zozo_16k.wav to data/raw/val_wavs/zozo_16k_deepspeech.npy.
Loaded deepspeech features from data/raw/val_wavs/zozo_16k_deepspeech.npy.
| Unknow hparams:  []
The eye blink mode is: gt
Traceback (most recent call last):
  File "inference/nerfs/lm3d_nerf_infer.py", line 146, in <module>
    LM3dNeRFInfer.example_run(inp)
  File "/workspace/GeneFace/inference/nerfs/base_nerf_infer.py", line 292, in example_run
    infer_ins.infer_once(inp)
  File "/workspace/GeneFace/inference/nerfs/base_nerf_infer.py", line 256, in infer_once
    samples = self.get_cond_from_input(inp)
  File "inference/nerfs/lm3d_nerf_infer.py", line 110, in get_cond_from_input
    mel, energy = get_mel_from_fname(self.wav16k_name, return_energy=True)
  File "/workspace/GeneFace/data_util/extract_mel.py", line 29, in get_mel_from_fname
    mel_basis = librosa.filters.mel(sample_rate, fft_size, num_mels, fmin, fmax)
TypeError: mel() takes 0 positional arguments but 5 were given

I installed librosa with conda instead of pip which mentioned in the tutorial docs/prepare_env/install_guide_nerf.md. Is this the cause of the error?

I encountered the same issue with librosa=0.10.0, the relevant discussion can be found here. To fix it, pass all arguments by keywords:
mel_basis = librosa.filters.mel(sr=sample_rate,
n_fft=fft_size,
n_mels=num_mels,
fmin=fmin,
fmax=fmax)

I successfully ran script bash scripts/infer_postnet.sh, but encountered the following error when running script bash scripts/infer_lm3d_nerf.sh
The deepspeech extracted successfully, saved at:  data/raw/val_wavs/zozo_16k_deepspeech.npy
The shape is:  (272, 16, 29)
Saved deepspeech features of data/raw/val_wavs/zozo_16k.wav to data/raw/val_wavs/zozo_16k_deepspeech.npy.
Loaded deepspeech features from data/raw/val_wavs/zozo_16k_deepspeech.npy.
| Unknow hparams:  []
The eye blink mode is: gt
Traceback (most recent call last):
  File "inference/nerfs/lm3d_nerf_infer.py", line 146, in <module>
    LM3dNeRFInfer.example_run(inp)
  File "/workspace/GeneFace/inference/nerfs/base_nerf_infer.py", line 292, in example_run
    infer_ins.infer_once(inp)
  File "/workspace/GeneFace/inference/nerfs/base_nerf_infer.py", line 256, in infer_once
    samples = self.get_cond_from_input(inp)
  File "inference/nerfs/lm3d_nerf_infer.py", line 110, in get_cond_from_input
    mel, energy = get_mel_from_fname(self.wav16k_name, return_energy=True)
  File "/workspace/GeneFace/data_util/extract_mel.py", line 29, in get_mel_from_fname
    mel_basis = librosa.filters.mel(sample_rate, fft_size, num_mels, fmin, fmax)
TypeError: mel() takes 0 positional arguments but 5 were given

I installed librosa with conda instead of pip which mentioned in the tutorial docs/prepare_env/install_guide_nerf.md. Is this the cause of the error?

I encountered the same issue with librosa=0.10.0, the relevant discussion can be found here. To fix it, pass all arguments by keywords:
mel_basis = librosa.filters.mel(sr=sample_rate, n_fft=fft_size, n_mels=num_mels, fmin=fmin, fmax=fmax)

This solved the problem for me. Thank you! :smile:


Error when uploading multiple images or folder

When I try to upload a folder with multiple images i get the following error message:
events.js:160
throw er; // Unhandled 'error' event
^
Error: EISDIR: illegal operation on a directory, read
at Error (native)
When uploading the files one by one they upload just fine.

Please write more details for helping.

What command you typed? or What code you write?
Filetype (jpg, mp4 etc.)
Filesize

What command you typed?
upload-gphotos /home/user/fotos/ -u<EMAIL_ADDRESS>-p "password"
Filetype?
The folder contains 114 images with the Filetype .jpg
The folder is 79,5 MB big. Each image-size ranges around 500 KB up to 1 MB.
I've tried to minimize the amount of images in the folder to 2 images and still the error occurs.

upload-gphotos command cannot receive directory as arguments.
Please try upload-gphotos /home/user/photos/*.jpg -u<EMAIL_ADDRESS>-p PASSWORD

This works as a workaround. Thank you for your help.


Update service invocation examples

All examples here need to be removed and replaces with using HTTP clients as these methods are deprecated and no longer recommended.

This is for v1.10, v1.11 and onwards.

Also see this issue https://github.com/dapr/quickstarts/issues/888

All of our quickstarts today show usage of http clients and not the InvokeX methods that are listed on the docs - so guidance is confusing. We should consolidate.


With Keychain Access, delete secret by type in case the target name c…

…ould be the same.

Hi @yacaovsnc, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Yang Cao (VSNC)). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

Looks good


Connect to non-standard ports

Let's say we have a Confluence server listening at http://domain.net:8090. This module can't connect to it, which is a pity.

Pull requests are welcomed here.
On Apr 29, 2016 6:25 AM, "Marios Antonoudiou"<EMAIL_ADDRESS>wrote:

Let's say we have a Confluence server listening at http://domain.net:8090.
This module can't connect to it, which is a pity.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/justmiles/node-atlassian-confluence/issues/6

Check out this banch:  non-standard-ports
I don't have a non-ssl confluence host to test against right now. If you're able, test and let me know your results.

Thanks for the quick patch @justmiles! I have one which I will test against it today or tomorrow.

Any luck on this @mariosant?

If I test this branch would you consider merging it ?

@jasonfah sure will. Thanks for the help

@justmiles the branch appears to be working nicely in regards to setting a custom port.
This line here though;
@password = options.username or process.env.CONFLUENCE_PASSWORD or process.env.ATLASSIAN_PASSWORD
Should it be options.password?

Thanks for testing. Yes, that's incorrect. I'll update it.

I've pushed this (#9) to npm under version 2.2.0


Move resource diff and visitor logic to primary library directory

Preparation for adding additional functionality in #817 that needs lower level unit tests.

Codecov Report
Attention: Patch coverage is 87.64045% with 11 lines in your changes missing coverage. Please review.

Project coverage is 93.57%. Comparing base (689f964) to head (159a171).

Files with missing lines
Patch %
Lines

flux_local/resource_diff.py
86.25%
11 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #819      +/-   ##
==========================================
+ Coverage   93.55%   93.57%   +0.02%
==========================================
  Files          20       21       +1
  Lines        2249     2257       +8
==========================================
+ Hits         2104     2112       +8
  Misses        145      145

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


Error in "Capture and implicitly number the expression contained within parenthesis" Example

To use the capture group the syntax is "$1" not "\1".

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

ID: b53053a2-c37a-99a8-fdaf-7322de927cf8
Version Independent ID: 55a43af3-3743-9c8f-bf24-50301db7c37c
Content: Using Regular Expressions in Visual Studio - Visual Studio
Content Source: docs/ide/using-regular-expressions-in-visual-studio.md
Service: unspecified
GitHub Login: @gewarren
Microsoft Alias: gewarren

@greyknight79 thanks for the feedback. I tested this out and the regular expression works as defined. \1 does refer back to the first defined group. My understanding is that \number refers back to a group within a regular expression, and $number refers to a group in a replacement pattern.

Please reopen if you disagree.


Fix --detached

Heya
The example command in the README.md has a --detached argument that doesn't exist.
It's actually --detach or -d. (Docker docs reference).

Thanks!


When clicking around in the text view (Fatal error: Index out of range)

Description
When clicking around in the text view (Fatal error: Index out of range)

To Reproduce
Randomly happens sometimes
Expected behavior
No crash
Version information
x
Additional context
Easy fix

Thanks for submitting a issue!
to assign this issue to yourself please comment @aurora-care-bear please assign me

@aurora-care-bear please verify


add OVSSwitch inNamespace support

To run ovs in namespace, ovs-vswitchd have to run in that namespace.
Dedicated ovsdb and ovs-vswitchd will run using working directory.
Ref: http://openvswitch.org/pipermail/discuss/2015-September/018693.html
Signed-off-by: Hiroaki KAWAI<EMAIL_ADDRESS>

Cool - I have been working on this as well in another branch, and I like the ability to share ovsdb instances if desired.
I will take a look at it, and you might want to look at:
https://github.com/mininet/mininet/pull/524/files

I need this. +1

So very nice, please merge :) 👍

Please merge to master. This is extremely useful

I agree! This feature is excellent!
Any update on this issue?
FYI, I also have the similar implementation for supporting OVS in namespace. How about using privateDirs option to separate each OVS node?
https://github.com/iwaseyusuke/mininet/commit/b0d2816364df76cbe521e98a839ba3fc09f197d1
To @lantz

I have been working on this as well in another branch, and I like the ability to share ovsdb instances if desired.

Ideally, sharing ovsdb instance is desired (I tried), but even if ovsdb can be shared, the interfaces on OVS nodes might be invisible?
With another implementation with the above, s1 is in namespace and s2/s3 is on hosts, the interfaces on s1 seems to be invisible via "ovs-vsctl" command.
Do you have any workaround?
s1> ovs-vsctl show
9d20a365-7bab-422c-a85a-f859ba47bb5f
    Manager "ptcp:6640"
    Bridge "s1"
        Controller "tcp:<IP_ADDRESS>:6653"
        fail_mode: secure
        Port "s1-eth3"
            Interface "s1-eth3"
                error: "could not open network device s1-eth3 (No such device)"
        Port "s1-eth2"
            Interface "s1-eth2"
                error: "could not open network device s1-eth2 (No such device)"
        Port "s1"
            Interface "s1"
                type: internal
        Port "s1-eth1"
            Interface "s1-eth1"
                error: "could not open network device s1-eth1 (No such device)"
    Bridge "s3"
        Controller "tcp:<IP_ADDRESS>:6653"
        fail_mode: secure
        Port "s3-eth3"
            Interface "s3-eth3"
        Port "s3-eth1"
            Interface "s3-eth1"
        Port "s3"
            Interface "s3"
                type: internal
        Port "s3-eth2"
            Interface "s3-eth2"
    Bridge "s2"
        Controller "tcp:<IP_ADDRESS>:6653"
        fail_mode: secure
        Port "s2"
            Interface "s2"
                type: internal
        Port "s2-eth2"
            Interface "s2-eth2"
        Port "s2-eth1"
            Interface "s2-eth1"
        Port "s2-eth3"
            Interface "s2-eth3"
    ovs_version: "2.7.1"


Refine $import, $export and $export-status operations

Refine $import, $export and $export-status operations

confirm the multi-tenancy
resolve TODO
refactor to support DELETE operations
push batch code down to the library for bulkdata and pull into the Operation

Reference - https://javaee.github.io/tutorial/batch-processing006.html#BCGCAHCB
 <dependency>
            <groupId>javax.batch</groupId>
            <artifactId>javax.batch-api</artifactId>
            <version>1.0.1</version>
        </dependency>

 JobOperator jobOperator = BatchRuntime.getJobOperator();
        jobOperator.start("FhirBulkExportChunkJob", toProperties(properties));

 private Properties toProperties(Map<String,String> props){
        Properties properties = new Properties();
        for(Entry<String, String> entry : props.entrySet()) {
            properties.put(entry.getKey(), entry.getValue());
        }

        return properties;
    }

per #67 and #69 - update the code.

linked to  Custom operation should support more types being passed from URI #75

Linked the two together in ZenHub


New documentation pages and edits to existing

I pushed this because the new document on CRUD operations includes a lot of prototype suggests on how the database api should behave.  It is mostly up to date with things on the discussion pages and in the google design doc.   I would hope it provides a new summary of how we currently think it should behave.   Suggest you merge it to master as there shouldn't be any conflicts.  Well, there might be some conflicts with documentation in a previous pull request that hasn't yet been merged with master.  Followed the directive we decided last Thursday to when in doubt add a new branch from the most current master.

Looks good to me. Have you tried compiling this document locally? I think you need to add links to docs/source/user_manual.rst to make the new pages visible.

I haven't tried to build this locally and a big reason is I have never been able to get the full documentation build system to work correctly.  There is some oddity with the setup on my mac laptop I've never resolved.   I can't get the ubuntu version to work either.  Never considered it worth the trouble to sort out as it has only proven to be a minor annoyance like this.  I didn't do that because I had no way to verify it worked so I "kicked can down the road" to use a bad cliche.
Note also there is another glaring hole.  I haven't yet constructed a figure the new CRUD document mentions.   I pushed this so you guys could use this as a secondary reference as we clean up the database api.

Yep... just as expected, it does not compile right. I spent quite some time on fixing the links and formats. It at least builds all the contents correctly now. Probably still need a thorough clean down the road.


feat: Add support for GCP VPCs

Relevant information
This PR adds support for synthesizing VPC entities from GCP VPC Flow Logs. I tried to follow the same pattern that AWS Flow Logs use but things are a little more awkward in GCP for a couple reasons:

VPC IDs are not annotated onto flow logs like in GCP. As a result, I had to make the entity identifier the VPC name and the project ID. GCP Project IDs must be globally unique and then VPC names must be unique in a project. Also, VPC names cannot be changed after they are created. I don't love this approach but I think it's the best way to get things working?
GCP VPC Flow Logs report the source and destination VPC when applicable so I had to use a semi-awkward workaround to pick the "right" VPC to synthesize. I make sure to select the "reporting" VPC's by using a condition on the jsonPayload.reporter and adding two rules for synthesis. LMK if you think there's a better approach.

Checklist

[x] I've read the guidelines and understand the acceptance criteria.
[x] The value of the attribute marked as identifier will be unique and valid.
[x] I've confirmed that my entity type wasn't already defined. If it is I'm providing an
explanation above.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Ryan Kadri seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Transactions and positions by period in paper/live trading

Hi,
When you run an algorithm in backtest mode, the run function returns a "results" dataframe that contains all the info about the backtest. In particular, it contains all the transactions and the positions for each time period.
It would be nice if the same information was available when paper or live trading. As far as I can tell, this is not the case. Something closely resembling to the dataframe appears in the "stats" folder, with one csv file per day. However, the latter contains less information. For instance each time period contains an integer with the number of transactions, instead of a dictionary with all the transactions. Maybe dataframes containing dictionaries don't really convert well to csv. Perhaps it would be better to dump at each time period the data of the results dataframe into a pickle file incrementally, so that it can be easily retrieved and analysed?
I have also seen that some information seems to be contained in the pickled performance object, but it is unclear how to retrieve this data, as all the useful tools in the catalyst API can be used only inside an algorithm.
Any help would be appreciated,
Samuel

That's great, thanks. Just to be sure, what do you mean by "with a defined end_date"? What's the meaning of end_date in paper/live trading?

when running on live/ paper you can add the end argument defining a future end date when you want the algo to stop running. See more on the docs

Ah ok... So you can't access this information while the algorithm is running.
Here is what I had in mind, which could potentially be more useful. Every minute, the corresponding line of the results dataframe gets appended to a pickle file (one can make the pickle file change every day or every week to avoid big files, just like what is currently done in the daily_performance and stats folders). Then at any time one can recover the pickle files, unpickle them sequentially and get the equivalent of the results dataframe from the start of the algorithm until the present time.

actually it is possible,
the stats we return (in paper/live/minute freq) are located in context.frame_stats dictionary, which at the end of each day is pickled into a frame_stats folder. for now, a file is erased after 30 days and we also remove the folder at the beginning of every run to avoid overloading of the disk. so you can either extract the data from the pickle files or from within the algo at the moment. Of course, we are working on better solutions, similar to your suggestions, however, it will take time to implement them, due to many other urgent issues.

Ok, thanks. I haven't seen a frame_stats folder in my live_algo folder. I only have a daily_performance and a stats folder. The stats folder contains csv files, so assume this is not the one you mean. I upgraded to Catalyst 0.5.8 from 0.5.6 and will see if frame_stats appears at the end of the day.

I see the frame_stats folder now, and the pickle files seem to have all the data I need. Great!

added to 0.5.9


Type Error when running isolate

I have a yarn 3.x monorepo with functions as a one of the workspaces located at apps/x-api.
x-api has a local workspace dependency installed from packages/utils.
Trying to just run run isolate results in a type Error in isoalte.
Steps:

install

cd apps/x-api
yarn add isolate-package

run isolate yarn isolate or npx isolate

Error
error TypeError: packagesGlobs.flatMap is not a function
    at createPackagesRegistry (<my project>/node_modules/isolate-package/src/helpers/create-packages-registry.ts:61:6)
    at start (<my project>/node_modules/isolate-package/src/index.ts:80:34)

On further debugging when I run the package locally, it seems that indeed there is inccorrect typing here. Logging packagesGlobs in my case returns: { packages: [ 'apps/*', 'packages/*', 'tools/*' ] }, so clearly is not an Array.


Shorten test lines to < 100 characters.

Fixes line lengths that were made too long as a result of https://github.com/google/blockly-android/pull/473.

This change is

Seems we were working on this at the same time.  I submitted #479.


[Payment sheet] Localization support

I'm implementing the Pre-built payments UI and couldn't find a way to set a locale to show it in different languages. Is there something I'm missing or is this not yet implemented?
It's quite important for our app, since it supports a few languages.

@fedebaier thanks for the feedback! Currently the sheet is localised based on the language in the phone device settings. But I agree that we should allow you to overwrite it. I've forwarded this to the team.

I've tested changing the device's language but it always shows in English.

If you go to Settings -> System -> Languages & Input -> Languages -> and then add your language to the top of the list, you should see a different version when you go back to the payment sheet.
@fedebaier have you tested both platforms?

Yes, I've tried this in both iOS and Android, on simulators and on physical devices, and it always displays in English.

@fedebaier which languages have you set for your apps? It's working fine for me. Do note that on iOS you need to specify which languages your app supports: https://help.apple.com/xcode/mac/current/#/devafa3a605f on Android that isn't required.

Android

iOS

It's working now on Android (maybe I didn't test properly there), but the issue persists on iOS, even after specifying the languages like you suggested:

Same here, after adding Spanish through Xcode and building. The issue seems to persist in iOS.

fixed mine, by adding to info.plist:
<key>CFBundleAllowMixedLocalizations</key>
  <string>true</string>
<key>CFBundleLocalizations</key>
<array>
    <string>en</string>
    <string>es</string>
</array>

fixed mine, by adding to info.plist:
<key>CFBundleAllowMixedLocalizations</key>
<string>true</string>
<key>CFBundleLocalizations</key>
<array>
    <string>en</string>
    <string>es</string>
</array>

That solved the issue also for me, thanks! Still would be nice to have the option to pass a locale to the payment sheet.

fixed mine, by adding to info.plist:
<key>CFBundleAllowMixedLocalizations</key>
<string>true</string>
<key>CFBundleLocalizations</key>
<array>
    <string>en</string>
    <string>es</string>
</array>

This does not work for me. Anyone has similiar issue? I tried to set language directly inside Info.plist and by Xcode -> General as well.

@thorsten-stripe Is it planned to support an override for the language? If yes, is there an estimation when this will become available? In my case, the app I'm developing should display in a different language than my device's language.

@nmehlei Have you found a solution yet? We also want to support to change locale of the payment form.

+1 This is an enhancement we are waiting for~

Does editing info.plist not work for folks that are commenting here? You should be able to programmatically change the app locale, which would be a good solution for @nmehlei's issue (I think)
<key>CFBundleAllowMixedLocalizations</key>
<string>true</string>
<key>CFBundleLocalizations</key>
<array>
    <string>en</string>
    <string>es</string>
</array>

@charliecruzan-stripe
Do you mean we programmatically change the app locale in the native side of the app?

Yes, I'm pretty sure there are methods to do that on both iOS and Android (although it may take some digging, and I'm not sure if it's generally recommended to override the user's locale)

@thorsten-stripe I want to change the payment sheet language with InApp locale for Andoid. Is there a way to do it?

The payment sheet localizes itself to use the device's current language settings. What's the use case for overriding the user's own language setting?

The payment sheet localizes itself to use the device's current language settings. What's the use case for overriding the user's own language setting?

With device language change payment sheet works fine. But I want to change app language without changing device language. In this scenario payment sheet is not translated.

Do we have any progress for this please @charliecruzan-stripe @thorsten-stripe? Our app is supporting different languages and we would like the payment sheet to be localized in the same language as our app, but it listens to device language only 🧐

The language option should be at top level, not only the payment sheet, in order to localize also error messages.

Same here. Our app use multiple languages and the payment sheet should be localized in one of them dinamically.

Hi everyone, is there any update on this? - as @angelica-snowit mentioned, even though the Payment Sheet is showing the right language depending on the OS settings, I can still see the localizedMessage errors in English, i.e.:
{
  "stripeErrorCode": null,
  "declineCode": null,
  "localizedMessage": "The payment has been canceled",  <- HERE
  "message": "The payment has been canceled",
  "type": null,
  "code": "Canceled"
}

We are trying at least to provide our own translation to those messages, but unsure if it's safe to rely on the code: "Canceled".
Thanks!

I created payment sheet with custom string to solve this issue.
https://github.com/kothihaaung/stripe-paymentsheet-customlabel

what is the current status of this? i would like to change the language without changing the phone language , also react native 0.73 and android 14 , language change wont change the payment sheet for me.

@ahmadkhalaf1 did you find any solution for your specific case ? Im facing the same issue

Anyone working on this?

Hi, is there any news regarding this issue?

Hey hey, really no update on that?  In newer RN versions Info.plist doesnt have
'CFBundleLocalizations', nor xcode language list update helps... How should we manipulate the language in the payment sheet? It's always english

just add locale = "language you want" in StripeProvider like
<StripeProvider
publishableKey={""}
merchantIdentifier="merchant.identifier"
urlScheme="your-url-scheme"
locale="fr">

just add locale = "language you want" in StripeProvider like <StripeProvider publishableKey={""} merchantIdentifier="merchant.identifier" urlScheme="your-url-scheme" locale="fr">

Well, where in documentation you have this information? I can't find it anywhere.

Any solution?

just add locale = "language you want" in StripeProvider like <StripeProvider publishableKey={""} merchantIdentifier="merchant.identifier" urlScheme="your-url-scheme" locale="fr">

Well, where in documentation you have this information? I can't find it anywhere.

nowhere but it works on android, or it just a coincidence i don't know!

Same problem here. Localization is working for Android but not for IOS.

I use Expo Go on a French iOS device. The Expo Go app is in English (I can't change it), Stripe's interfaces are in English. I also need to change the language used by Stripe but obviously we can't do it.


Create train compatibility?

I tried this with a Create train, and didn't work. Can you make a compatibility?

so the way the mod is supposed to work, it only overrides the turning behavior if the player is not the controller of the vehicle they are in. from looking at create it seems they set all players as controllers of the trains they are riding. i've never used create, would it make sense to override that globally for all create trains or are there specific ones that should be like this?

after some more investigation, i have determined this is a bug in create. i am making an attempt to fix it but my understanding of their codebase is very poor :|

ok, i got it working, now i just need to find what of five changed classes was unnecessary :P

https://github.com/Fabricators-of-Create/Create/compare/mc1.20.1/fabric/dev...tildejustin:create:mc1.20.1/fabric/dev

done in https://github.com/Creators-of-Create/Create/pull/6089, idk when they'll merge or cherrypick to fabric though.

this feature will be implemented in create directly, through https://github.com/Creators-of-Create/Create/pull/6297


MVD Dependency Management

Description
The MVD has dependencies to several components that reside in individual repositories:

Eclipse Dataspace Connector (incl. Federated Catalog)
EDC Data Dashboard
RegistryService
IdentityHub
MVD UI (will be created starting in August 2022)

The current approach is to check out and build the corresponding components when the MVD is deployed.
The goal of this feature is to define and implement a dependency management process, which leverages Maven artifacts at least for some of the dependencies. The dependency management process should allow to better manage dependencies once the basic components are in place.
The MVD should also use the published EDC artifacts, to demonstrate how ECD artefacts can be consumed.
Acceptance Criteria

[ ] Concept for dependency management is defined and documented
[ ] RegistryService and Identity Hub artefacts are published
[ ] MVD consumes artefacts from EDC, RegistryService and IdentityHub repositories

Stories

[ ] #164
[ ] #165
[ ] #166
[ ] #167

Put on hold, as it is projected to be too much scope for the team until end of August.
#36 and #157 have higher priority.
This item can be taken up again if there is capacity.


Need Documentaion: How can print the access token

Is there anyway to extract access token sothat can directly hit the api using post man

The Admin SDK uses https://github.com/googleapis/google-api-dotnet-client
I believe you should be able to access the token from the Credential instance.
For example:
GoogleCredential.GetApplicationDefault().GetAccessTokenForRequestAsync()

In the future, please use StackOverflow for usage questions. Thanks!


CAS 5.0.x: Dashboard bug

CAS server version: 5.0.x
Container/environment type/version: Tomcat 8
Steps to duplicate the problem: access /status/dashboard
Hi there,
I am not sure if this is a Core problem but i found a bug:
In WEB-INF/classes/templates/monitoring/viewDashboard.hml: line 78
Fix th:action value from "/status/dashboard" to "@{/status/dashboard}"

Great. Can you turn this into a pull request please?

Reviewed. The viewDashboard.hml page has no reference to /status/dashboard. Please review and confirm again.


Add an animation example in flutter.io/animations

I'm probably a bit slow but after reading https://flutter.io/animations I still didn't really get it.
Going through the repo helped a bit more but the existing code is pretty complex to extract a simple use case out of it.

I think a few interesting topics would be

An example with a button that grows big or small when pressed
Same thing decorated now with curves
When starting at x, when to animateTo y then animateTo x rather than using reverse
How to handle other animations mid animations

FYI @LarkAscending

I agree, @xster, we need an animation tutorial. I read that same doc last week.  :)

Here's a place to start
The second post should be more interesting, but the sample code in this one might be helpful...
Now, back to writing those Xcode setup instructions!

See also: https://github.com/flutter/flutter/issues/6633

@Sfshaza Might we be able to close this now?

Yes, closing.


How do I get rid of the immutable methods on an array?

Hello @rtfeldman, your library is awesome! Thanks for making my life easier!
I have one issue I can't seem to figure out, (maybe it's late) but how do I get rid of the immutable properties from an array?
I'd like to make an HTTP request but the rest of the information is being sent down as well!
Thank you :)

Have you tried using the static version of the library?
Eg
const Immutable = require('seamless-immutable').static

const data = Immutable.from({ data: []})

The static version of the API should not have methods attached AFAIK

Hey @theogravity thanks for getting back to me! This is great!


Implement clear screen function

Currently, when you open the menu and mistype an input, the menu redraws without clearing the screen, causing the menu to appear right after the previous option was entered. The original program clears the screen, so this needs to be fixed.

Partially resolved this for the time being by making it spew a bunch of new lines to "clear" the screen, however still needs a proper method of clearing.


InvalidAuthorization exception

This article, as it currently stands (@ Feb 24th 2020) doesn't result in a working solution anymore as the Logic App Data Collector Connector behaviour has changed.
The article is:
https://docs.microsoft.com/en-gb/azure/azure-monitor/platform/create-pipeline-datacollector-api
The connector now fails (in the North Europe region at least) with the following error message:
{     "statusCode": 403,     "headers": {         "Strict-Transport-Security": "max-age=31536000; includeSubDomains",         "Timing-Allow-Origin": "*",         "x-ms-apihub-cached-response": "false",         "Cache-Control": "private",         "Date": "Wed, 19 Feb 2020 11:04:49 GMT",         "X-AspNet-Version": "4.0.30319",         "X-Powered-By": "ASP.NET",         "Content-Length": "94",         "Content-Type": "application/json"     },     "body": {         "Error": "InvalidAuthorization",         "Message": "No Authorization header was specified"     } }
It was working before and has just recently starting running into this error. This logic app connector is still in preview however, so changes are expected, but the most recent change seems to be a breaking change and the article might not cover any new/additional steps required in order to make solution work again.

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

ID: ff6334a4-8a70-0aae-b31b-3027831ff6e3
Version Independent ID: f7b71cad-f09f-adef-ccd6-46efc0be15df
Content: Create a data pipeline with the Azure Monitor Data Collector API - Azure Monitor
Content Source: articles/azure-monitor/platform/create-pipeline-datacollector-api.md
Service: azure-monitor
Sub-service: logs
GitHub Login: @bwren
Microsoft Alias: bwren

@CarloGarcia Thanks for your comment. We are actively investigating and will get back to you shortly.

@bwren can you please review the document and update it if necessary?

#label:"CreateAzMonWIFeb2021"

Thank you for your contribution to the Azure Monitor documentation. We have created a workitem for this issue in our internal backlog database. We will prioritize it and make any necessary changes as we are able.
#please-close


Create web scheleton

Basic up that just listens to github events
Consider using github integrations

Web project has been cancelled


[HOW-TO] Parse raw recorded footage

I am recording raw footage from a global shutter camera. The footage size is 840x640 and I intend to record in the SBGGR10 format.
import cv2 as cv
import numpy as np
from picamera2 import Picamera2
from picamera2.encoders import Encoder
from datetime import datetime

# Width and height of the recording
REC_WIDTH = 840
REC_HEIGHT = 640

# initialise picam2
picam = Picamera2()

# configure picam2
picam.video_configuration.enable_raw()
picam.video_configuration.raw.size = (REC_WIDTH, REC_HEIGHT)
picam.video_configuration.raw.format = 'SBGGR10'
picam.video_configuration.size = (REC_WIDTH, REC_HEIGHT)
picam.configure("video")

# window to display recording feed (view from X11)
cv.namedWindow("PiCam Feed")

recording = False

encoder = Encoder()

# start the picam
picam.start()

while True:
    # capture a frame from the picam
    frame = picam.capture_array()
    # clone to overlay text
    frame_overlay = frame.copy()

    # detect a key press
    key = cv.waitKey(1)

    # exit if 'e' key is pressed
    if key == ord('e'):
        # refuse to exit if a video is being recorded
        if recording:
            frame_overlay = cv.putText(
                img=frame_overlay,
                text="     CANNOT EXIT: REC IN PROGRESS!",
                org=(10, 50),
                fontFace=cv.FONT_HERSHEY_SIMPLEX,
                fontScale=1,
                color=(0,0,255),
                thickness=2,
                lineType=cv.LINE_AA
            )
        else:
            # stop the picam
            picam.stop()
            # break out of while loop
            break

    # toggle recording if 'r' pressed
    if key == ord('r'):
        if recording:
            recording = False
            picam.stop_recording()
            print("Recording finished")
            picam.stop()
            picam.start()
        else:
            recording = True
            recording_start = datetime.now().strftime("%m-%d-%Y-%H-%M-%S")
            filename = "recording_" + recording_start + ".raw"
            print("Started recording to:", filename)
            # use picam recording function with the right encoder
            picam.start_recording(
                encoder=encoder,
                output=filename,
            )

    # add text overlay to gui frame if recording
    if recording:
        frame_overlay = cv.putText(
            img=frame_overlay,
            text="REC",
            org=(10, 50),
            fontFace=cv.FONT_HERSHEY_SIMPLEX,
            fontScale=1,
            color=(255,0,0),
            thickness=2,
            lineType=cv.LINE_AA
        )

    # show the GUI frame
    cv.imshow("PiCam Feed", frame_overlay)

# when exiting, destroy all GUI windows
cv.destroyAllWindows()

How can I go about parsing this to play back the recorded footage?

Hi, from your question I understand that you want to save the raw Bayer data that came from the sensor, is that correct? The first thing is that you probably need to do is tell the encoder to use the "raw" stream (it defaults to the "main" one). Use
picam.video_configuration.encode = 'raw'

to do this. Thereafter, the raw data buffers should be dumped to disk with no formatting at all. If you look at picam2.video_configuration after configuring the camera, this should report the size and stride value of the raw images. You're asking for an unpacked raw format which means every pixel should occupy exactly 2 bytes.
One of the challenges you will have may be finding a disk that will keep up!

Thank you very much for your response!
I have updated the configuration part of my script to this:
picam.video_configuration.enable_raw()
picam.video_configuration.raw.size = (REC_WIDTH, REC_HEIGHT)
picam.video_configuration.raw.format = 'SBGGR10'
picam.video_configuration.size = (REC_WIDTH, REC_HEIGHT)
picam.video_configuration.align()
picam.video_configuration.encode = 'raw'
print(picam.video_configuration)
picam.configure("video")
print(picam.video_configuration)

I've noticed a slightly odd behaviour where the REC_WIDTH and REC_HEIGHT that I set are reset back to the default after picam.configure("video"). Am I missing something and is this the intended behaviour of the library? Is this because the raw stream bypasses the image signal processor?
Also, are there any resources that I can look at to help parse and playback the raw Bayer SBGGR10 video file?

You certainly have to be a bit careful with raw streams. Because they come straight from the sensor, there are only very limited resolutions available (type libcamera-hello --list-cameras into a console window to see what they are). Moreover, if you really want the raw stream then you may as well ask for a fairly small main stream just to cut down on memory traffic.
I don't really know of any good resources as regards using that raw data, it all depends what you want to do with it. Turning it into proper pictures is a relatively involved and expensive task. But you should find that you have stride x height bytes per frame (stride bytes per image row), representing a width x height image, with every pixel occupying 2 bytes.
Often folks like to save raw buffers as DNG files. The Picamera2 recording feature doesn't do this automatically, but I recall a discussion where this was implemented, here: https://forums.raspberrypi.com/viewtopic.php?p=2174531#p2161982 . As I mention in that thread, disk I/O speed can be a real problem.

Thank you very much for the help. I did explore this matter further, and sure enough, as you mentioned, I ran into too many problems regarding disk I/O speeds, even using a memory buffer I wasn't able to record footage long enough, and, of course, the challenges of turning it into a proper picture.
In the end, I used the 'main' stream as you suggested, with controls to the frame rate and resolution in XBGR8888 format, I recorded the processed raw footage without any encoding. I was able to generate a 'preview' window using capture_array("main") and feeding the output directly to OpenCV via cv2.imshow() in a while True: loop.
I used the picamera2 start_recording() and stop_recording() functions, outputting to BytesIO and writing to a file after the recording stopped. I haven't yet started writing the viewing script to parse the recording file for this and generate a video playback. But I will use your help with the stride and height values to parse, luckily as it's already processed by the Pi's Image Signal Processor, the output will be human readable.
I'm happy for this issue to be closed if it's ok for me to open another if I run into any issues along the way. Thank you.


Add google tasks icon for tasks.org app

Hello! Cheers for your interest in contributing. Unfortunately, since Tasks.org has a different icon than Google Tasks, @drawable/google_tasks shouldn’t be used for Tasks.org. A separate icon would be required. You are welcome to create such an icon and reopen this pull request or open a new one. Thanks again!


[Feature Request]: Upgrade Kryo version of Kryo Java extension

What would you like to happen?
New Kryo versions support useful features like serialization of Java records. These features are currently unavailable to users of the Kryo Beam extension. Without this, users must fall back to other serialization methods or maintaining custom implementations for equals() hashCode() and friends.
Issue Priority
Priority: 2 (default / most feature requests should be filed as P2)
Issue Components

[ ] Component: Python SDK
[X] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[ ] Component: IO connector
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

Thanks @Gadiguibou !
Are you going to work on this?
And what's about incompatibility between versions 4 and 5?

While I'm here I could also add support for Java records to SchemaCoder. This could be as simple as creating a new JavaRecordSchema class like JavaBeanSchema and JavaFieldSchema and reading from the record components instead of the fields or getters. This would probably warrant its own issue/PR for better tracking, but I'd like to have the opinion of a maintainer before opening pull requests.

@Gadiguibou

I think I could. Unfortunately Kryo v4 and v5 are not binary compatible. How is this usually handled in Beam? Is this even a concern?

In Beam, we tend to avoid the breaking changes that may affect users after Beam upgrade, especially, if it may cause potentially data loss or corruption, as much as we can.
Since Beam doesn't support "hot" upgrade on the fly while running a pipeline, and Kryo extension is used only as a KryoCoder (correct me if I'm wrong) then serialised data should not be stored somewhere after pipeline is stopped. Also, I hope we don't expose any Kryo API to users as well.
So, this means that it should be safe.
Regarding the adding support for Java records to SchemaCoder - I believe it deserves a dedicated issue/PR.
Btw, I'm not sure that we have an active maintainer for this extension but I'll ping @dmvk, who initially worked on this and Euphoria (that heavily uses KryoCoder), for additional comments.

Moved the issue about SchemaCoder to https://github.com/apache/beam/issues/27802.

Since Beam doesn't support "hot" upgrade on the fly while running a pipeline, and Kryo extension is used only as a KryoCoder (correct me if I'm wrong) then serialised data should not be stored somewhere after pipeline is stopped. Also, I hope we don't expose any Kryo API to users as well.

@aromanenko-dev Is this an official policy? Upgrading pipeline in general can be tricky, but I believe we should do our best to enable users to upgrade their pipelines, if possible. This change forces users to do a bootstrap of streaming pipelines which might be expensive and might discourage users from upgrading.
I think we could have tried introducing KryoV5Coder and deprecate original KryoCoder for at least several releases, we might have even kept old coder until we drop support for JDK 11 (Kryo 4 does not support JDK 17). Also some more context on this: https://lists.apache.org/thread/5glkdp68b024t8pnwq7ncz5mt9gcr27r
I came across this when validating 2.50.0 RC (this is even a code breaking change, beacuse the KryoCoder 'leaks' kryo API). Wondering if we should try to fix it before the release.

I'd personally prefer to rollback this change for 2.50.0 and introduce KryoV5Coder in 2.51.0, but I don't think this needs to be a blocker for release. Could we do that in case we need to build another RC?

@je-ik I'm sorry for delay with an answer, I was on vacation.
I agree that we have to do our best to avoid breaking changes (I'm one of the person who always propose to deprecate things before) and I mentioned this before, but I don't remember any "official" (or previously agreed) policy about such a support of Beam upgrade on the fly, and particularly, for streaming pipelines. So, do we need to guarantee a Coder compatibility between Beam releases since Beam coders are supposed to be used "inside" a pipeline?

I came across this when validating 2.50.0 RC (this is even a code breaking change, beacuse the KryoCoder 'leaks' kryo API)

Did you have a compilation time or runtime issue? Could you provide more details on this?
Also, as a side note:
It leads us to the question - should we even make Kryo provided and let users to choose which versions to use?

I think this is part of a broader discussion. IMPOV, speaking about an 'ideal' solution, we should be able to provide way to upgrade any streaming pipeline, at least for the case when the application logic does not change. After all, the streaming pipeline is a long-running software component and thus upgrades are expected to happen. The truth is that Beam is not quite there, yet. And there are fundamental reasons why upgrading a pipeline after changing logic might be hard (if even possible), which means users must be able to restart their pipeline from scratch.
In the case of this issue, we probably could have taken path that would not break existing pipelines (introducing different Coder, shading Kryo v5 into different package), so that we would minimize impact of the upgrade. But because the new coder has already been released I think there are no more actions needed to be taken here. I did not see this as enough important to block the release on this.
Regarding the 'leakage' of the Kryo API, it is generates compile-time error, because there are some (minor) changes in the Kryo v5 API (e.g. Serializers). I'm not sure we can meaningfully make Kryo provided, because the coder is always bound to a specific (major) version of Kryo.

I meant, yes, we could make Kryo pluggable (I can imagine many ways of doing this), but the biggest pain always comes from incompatibility of the serialized data. The best option would be to include a version marker in the data and give KryoCoder the ability to work with multiple versions of Kryo at the same time. But that would require major reimplementation of the coder. :)


php 5

will work with php 5?

Hi @rakucmr. There is one .dll compiled for PHP 5.6 in the x86 folder: php_pdo_informix-1.3.1-5.6-vc11-ts-x86.dll

@Aevis  I'm getting this error: PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\EasyPHP-Devserver-17\eds-binaries\php\php5630vc11x86x201103150846\ext\php_pdo_informix.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0;
I'm running this configuration:

Apache: version : 2.4.25 / compiler : VC11 / architecture : x86 (32-bit)
PHP version: 5.6.30 x86

Can you help me please I'm trying to compile it and I get this error:
C:\php-src>configure.bat --disable-all --enable-cli --with-pdo-informix="C:\Program Files\Informix Client-SDK"
Saving configure options to config.nice.bat
Checking for cl.exe ...
Checking for cl.exe ...
Detected MS compiler version 15
Detected 32-bit compiler
Checking for link.exe ...  C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN
Checking for nmake.exe ...
Checking for lib.exe ...
Checking for bison.exe ...
Checking for flex.exe ...
Checking for re2c.exe ...
Checking for zip.exe ...
Checking for lemon.exe ...
Checking for mc.exe ...  C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN
Checking for mt.exe ...  C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
ERROR: you chosen output directory no does not exist
I've used the steps from here https://ourcodeworld.com/articles/read/804/how-to-compile-a-php-extension-dll-file-in-windows-with-visual-studio

I won't be able to test until this weekend, but it looks like you have the 64bit version of the Informix SDK installed (C:\Program Files\Informix Client-SDK). You need to install the 32bit one if you want to use the 32bit dll or compile a 32bit version yourself.

Hello, yes you are right, that was the problem, I've switched to a 32bit version and all is ok, thanks! Thanks alot!

Cheers, glad it worked out.

Hi, possible to compile 64bit version for php5.6?

Hi, this repo isn't maintained anymore and PHP5.6 has been eol since 2018. I'd strongly suggest to use the current 8.3 version.


Failed to parse SQL Server ddl (alter table a_test add c1 int, c2 int, c3 int)

An error is reported when calling （the public static Statement parse(String sql, Consumer consumer) ）method
net.sf.jsqlparser.JSQLParserException: Encountered unexpected token: "c2" <S_IDENTIFIER>
at line 1, column 31.
Was expecting one of:
"ADD"
"ALGORITHM"
"ALTER"
"CHANGE"
"COMMENT"
"DROP"
"MODIFY"
"RENAME"

at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:190)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:63)

Greetings.
The supported ALTER TABLE syntax is shown here: https://manticore-projects.com/JSQLParser/_static/JSqlParserCC.xhtml#AlterExpression
If you wanted to used multiple ALTER EXPRESSIONs (which is supported), the  comma-separate them and start each with the Command. E. g.
ALTER TABLE ADD ,,,, ADD ..., ADD ...
;

No feedback and no further questions asked. Closed.


Draft: Add public CI

This is a work-in-progress to add public CI to this project.

GitHub CI added in another PR


fix(ecma/parser): fix parsing await as ident

Description:
Fix bug in parser with await ident
BREAKING CHANGE:
No
Related issue (if exists):
Fixes #6301

Found more bugs and fixed

@kdy1 Ready for review


junit output broken in v0.3.6

The most recent version includes a change from #304, which prints the Docker logs if the container failed to start, and prints docker top if the container ran successfully, both to stdout. This breaks the intent of #291, which was to redirect all non-test-result output to stderr, as to not break parsing junit results with an XML parser.
Before making a pull request I'd like to suggest doing one of two things, to gauge which option sounds better:

redirecting docker top and docker logs commands to stderr (easy quick fix)
adding an output-file parameter to the junit formatter, using a formatter option like the nagios formatter (slower more "correct"-seeming fix)

Merged/released. Fixed in #473


Workind with SCTP

Hello,
How to work directly with SCTP protocol, but not with UDP encapsulation?

Haven't saw this:

If UDP encapsulation is not necessary, the UDP port has to be set to 0.

Is there any example program working directly with SCTP?

Sure:

programs/client
programs/daytime_server
programs/discard_server
programs/echo_server
programs/http_client
programs/tsctp

@gedOHub which OS are you using?
To make sure: You are running the samples as root when using native SCTP?

Yes, running as administrator (windows). Still trying to figure out how lib works :)

For example, why echo_server without parameters opens UDP 9899 port? Uses UDP encapsulation?

Because he is told to do so! 😀
See echo_server.c and usrsctp_init()
Have you tried to use the http_client? It's a handy example to get familiar with the usrsctp usage on client side.
To disable the verbose debug output, simply uncomment the usrsctp_sysctl_set_sctp_debug_on(SCTP_DEBUG_ALL); line here
You can test it with and without UDP-encapsulation against a small test system we are running
./http_client <IP_ADDRESS> 80 0 9899 9899 with udp encaps
./http_client <IP_ADDRESS> 80 native/raw sctp - run as admin
Running native SCTP may fail because of middleboxes and NATs.
Generally it is recommended that you don't run the server and a client on the same machine to avoid problems. Especially for debugging with Wireshark it's highly recommended to use two machines / VMs.

I need to run native SCTP for experment. So, to run native SCTP I need to usrsctp_init with first argument 0?

No, it is not required to set the first argument 0.
Setting the first argument simply adds the UDP-encpas functionality - the raw SCTP remains active.
For RAW SCTP you have to run SCTP as an Administrator level.

After deep examination of http_client and your comments now it is clear how lib works. Thank you!!


add typing and company_symbols was not initalised

there is still errors after these changes
Traceback (most recent call last):
  File "c:\Users\aatan\Documents\Github\AI-InvestiBot\AI-InvestiBot\implementation.py", line 298, in <module>
    models, total_info_keys = load_models(strategys=[ImpulseMACD_indicators])
  File "c:\Users\aatan\Documents\Github\AI-InvestiBot\AI-InvestiBot\implementation.py", line 88, in load_models
    model = model_class(stock_symbol=company, information_keys=strategy)
  File "c:\Users\aatan\Documents\Github\AI-InvestiBot\AI-InvestiBot\models.py", line 842, in __init__
    super().__init__(start_date=start_date,
  File "c:\Users\aatan\Documents\Github\AI-InvestiBot\AI-InvestiBot\models.py", line 88, in __init__
    with open(f'Stocks/{stock_symbol}/dynamic_tuning.json', 'r') as file:
FileNotFoundError: [Errno 2] No such file or directory: 'Stocks/AAPL/dynamic_tuning.json'

I think its because of the base_model not initialised any of these
end_date: Optional[Union[date, str]] = None,
stock_symbol: Optional[Union[date, str]] = "AAPL",
num_days: int = None,
information_keys: List[str]=["Close"]) -> None:
```

I fixed them in my other PR that is still open.


It's not working on flutter web

It's not working on flutter web,  similar to the framework provided SelectableText, unable to copy
flutter_selectable_text: ^0.3.1
import 'package:flutter_selectable_text/flutter_selectable_text.dart' as select;

select.SelectableText('copy the content');

This plugin was created before the flutter sdk had its own version. Please use the built in version. I don't know if it exists for flutter web though.


Add systems/worlds/modules pre-load.

It's really easy to install everything for systems and modules but if your already have a pre-set for your campaign that you would like to share with Foundry it's not that easy.
The ability to use config map to fetch the following information and perform the action on users behalf.
systems/ - Installed game systems - json list go clone
modules/ - Installed add-on modules - json list to clone
worlds/ - Installed game worlds - zip/tar.gz/tar.bz2 list to clone.
This will make easier to DM's to store their game and just Load into the platform when needed.

Take advantage of initContainer to fetch the images and provide the script to do so with a configmap.

I think I'll provide some scripts to take advantage of the CONTAINER_PATCH_URLS.
I'll do some testing and document it but it may solve this and don't need to use the  initContainer.


fix wrong unneeded_control_parentheses fixer for T_COALESCE in clone

If the clone argument contains null coalesce operator, parenthesis should not be removed.
Test is included, failing before, OK after.

@keksa thanks for the PR!
Please could you target the 2.1 branch? A bug fix as this is nice to have in the upcoming minor release.
Secondly please change the test. The change you made causes all test cases not to run on PHP > 7,
while there is only the new case that should only run on PHP >= 7.

@SpacePossum Hello, I changed the branch and rebased.
For the tests, you're not correct. When @dataProvider is used it calls the method again for every case in the data provider, so only the "??" test is skipped on PHP < 7.0.
I just tried it locally on PHP 5.5.12 with added @group on this method and it ran 42 tests, 3977 assertions and on PHP 7.1.2 it ran 42 tests, 4022 assertions.

Thanks :)
I was wrong about the test. What we typically do is something like this:
https://gist.github.com/SpacePossum/24f078aee6c96fc33cf4ba96bbd5f231
So use diff. dataproviders for diff. PHP versions when needed, WDYT.

Oh, ok, that looks much better. :) I just used basically the same as was already there for PHP 5.5. I'll update it in a moment.

looking good :)

Thank you @keksa.


The mod currently crashes the game

Could you please update the mod after the latest change by Owlcat? Thanks in advance! Your mod is amazing :)

Can confirm that this mod causes the game not to load and hang during the initial loading.
Tried disabling and uninstalling every mod but this one, and also with a clean mod install.


fix(example): Fix typo

the existential feels

Perhaps we shouldn't change this in the interest of those who relied on being able to "Press q to exist". :D

I say they are on their own now.


[gui] Update run filter when setting the filter options

Previously only the run history was affected, when the analyzed before/after options were set. This resulted in a confusing view when the displayed run entries last analyzed date would show outside of the specified date.
This patch fixes this issue as it will hide those runs where the before/after criteria is not met.
fixes #3962

I plan to extend this pr with the proper GUI tests.


USM: make gRPC clasification require prior HTTP2 classification

What does this PR do?

This PR adds a check in the gRPC classification program for a prior HTTP2 classification. Currently, the mechanism for getting the next classification program, will try to run the gRPC classification even if the HTTP2 classification fail.
While it makes sense to try to classify the API layer in the general case, gRPC is built on top of HTTP2, so it must not try to classify a connection that is not known to be HTTP2, as it can yield to false positives.
Motivation

Fix connections being classified as gRPC without HTTP2.
Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided. Except if the qa/skip-qa label, with required either qa/done or qa/no-code-change labels, are applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

/merge


To create value as non-blob type

Hi,
I notice that all the values created and entered into sqlite file are of type BLOB.
MAKE_TABLE = 'CREATE TABLE IF NOT EXISTS "%s" (key TEXT PRIMARY KEY, value BLOB)' % self.tablename
When I need to use a GUI tool like https://github.com/sqlitebrowser/sqlitebrowser to check and adjust the table content, the value can not be shown appropriately.
If possible, how to customize the vaule type?
Thanks.

It seems following scheme allows me to do that.
mydict = SqliteDict('./my_db.sqlite', encode=json.dumps, decode=json.loads)


Security Issues

Hello! Are there plans to update this template to resolve the dependency Security issues? When I fork this from the template I get over 30 different dependency security alerts. Thanks!

Hey! I'm so used to getting Dependabot PRs automatically on other repos, I didn't realize it was an opt-in option I had to enable. Will take a look at this soon, although I'd also gladly accept a single large PR if you're feeling eager about sorting things out yourself.

That's good to know that it's not on by default! I'll look into it and see if I can sort through them. I'm pretty new to GitHub and fixing the dependency issues, but it doesn't look too complicated on the surface.


add ftc token

Project background:
Official announcement: https://twitter.com/FantaVerse_FTC
Project team background: http://www.fantaverse.io
Project basic information: https://www.fantaverse.io/whitepaper/whitepaper.html
Tradeable exchanges:
Recommended Gas Limit (For ERC-20 project teams) for transaction: (Default is 60,000)

First, you have missed the Official announcement.
Second, the json file has some bug, you need to recover it.

Hi
We will look at it and revert asap.
Many thanks
Yours sincerely
FantaVerse Team
On Wed, 5 Jan 2022 at 16:05, evelyn2331 @.***> wrote:

First, you have missed the Official announcement.
Second, the json file has some bug, you need to recover it.
—
Reply to this email directly, view it on GitHub
https://github.com/consenlabs/token-profile/pull/7303#issuecomment-1005463403,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWFJZN726NPPCINOVQUTSELUUP3TZANCNFSM5LBBDTBQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>