text:
Multiple call policies do not work with session keys

Having multiple call policies for a session key does not work.
I can get the session key to work end-to-end for each individual policy below when it is the only policy in the array. When more than one policy is in the array, I get a 400 response status with the following detail: UserOperation reverted during simulation with reason: 0x.
I also tried including the permissions associated with each policy below in the permissions array of a single call policy, but that resulted in UserOperation reverted during simulation with reason: duplicate permissionHash.
const permissionPlugin = await toPermissionValidator(publicClient, {
        entryPoint,
        signer: emptySessionKeySigner,
        policies: [
            callPolicy1,
            callPolicy2,
            callPolicy3,
            callPolicy4,
        ],
    });

const sessionKeyAccount = await createKernelAccount(publicClient, {
        entryPoint,
        plugins: {
            sudo: ecdsaValidator,
            regular: permissionPlugin,
        },
    });

I'm also running into issues when using zeroAddress as the target. Passing an actual address works, but when passing zeroAddress, I get a 400 response status with the following detail UserOperation reverted during simulation with reason: 0x.
const getErc20Policy = (toAddress) =>
    toCallPolicy({
        permissions: [
            {
                target: SEPOLIA_USDC_CONTRACT,
                valueLimit: BigInt(0),
                abi: erc20Abi,
                functionName: "transfer",
                args: [
                    {
                        condition: ParamCondition.EQUAL,
                        value: toAddress,
                    },
                    null,
                ],
            },
        ],
    });

The sessionKeyAgentERC20AndEth.js script in this repo is what I was using to test.

Doing the following got me to a point where only the first permission in the policy works. The overarching question is:
how do I create a policy where an agent can send any ERC-20 tokens and ETH to a limited amount of addresses (not just one)?
Neither the SDK docs or examples show any of this, and it becomes a guessing game to figure out what will work.
Additionally, using an individual ERC-20 token address as the target works, but using zeroAddress to indicate all ERC-20 tokens does not work, as the docs indicate.
toCallPolicy(
		{
			permissions: [
				{
					target: SEPOLIA_USDC_CONTRACT,
					valueLimit: BigInt(0),
					abi: erc20Abi,
					functionName: "transfer",
					args: [
						{
							condition: ParamCondition.EQUAL,
							value: TEST_ADDRESS_1,  // <------ sending USDC to this works
						},
						null,
					],
				},
			],
		},
		{
			permissions: [
				{
					target: SEPOLIA_USDC_CONTRACT,
					valueLimit: BigInt(0),
					abi: erc20Abi,
					functionName: "transfer",
					args: [
						{
							condition: ParamCondition.EQUAL,
							value: TEST_ADDRESS_2, // <------ sending USDC to this does not work
						},
						null,
					],
				},
			],
		},
		{
			permissions: [
				{
					target: TEST_ADDRESS_1, // <------ sending ETH to this does not work
					valueLimit: maxInt256,
				},
			],
		},
		{
			permissions: [
				{
					target: TEST_ADDRESS_2, // <------ sending ETH to this does not work
					valueLimit: maxInt256,
				},
			],
		}
	);

Hey @0xernesto, sorry for the late reply.
First, if you want to set multiple permissions on the call policy, you can set like this:
Note that for now, using different multiple permissions emits type error message, but you can ignore it. This will be fixed in the next version.
const callPolicy = await toCallPolicy({
                permissions: [
                    {
                        abi: erc20Abi,
                        target: SEPOLIA_USDC_CONTRACT,
                        functionName: "transfer",
                        args: [
                            {
                                condition: ParamCondition.EQUAL,
                                value: TEST_ADDRESS_1
                            },
                            null
                        ]
                    },
                    {
                       // This will emit type error but you can just ignore it.
                        abi: vaultAbi,
                        target: VAULT_CONTRACT,
                        functionName: "deposit",
                        args: [
                            {
                                condition: ParamCondition.EQUAL,
                                value: DEPOSIT_AMOUNT
                            },
                            null
                        ]
                    }
                ]
            })

In your cases, you basically want to set OR condition for the same contract function. Like give permisson to transfer to TEST_ADDRESS_1 or TEST_ADDRESS_2. Unfortunately, using this kind of OR condition in permission is not supported now.
{
	target: SEPOLIA_USDC_CONTRACT,
	valueLimit: BigInt(0),
	abi: erc20Abi,
	functionName: "transfer",
	args: [
		{
			condition: ParamCondition.EQUAL,
			value: TEST_ADDRESS_1,  // <------ sending USDC to this works
		},
		null,
	],
},
{
	target: SEPOLIA_USDC_CONTRACT,
	valueLimit: BigInt(0),
	abi: erc20Abi,
	functionName: "transfer",
	args: [
		{
			condition: ParamCondition.EQUAL,
			value: TEST_ADDRESS_2, // <------ sending USDC to this does not work
		},
		null,
	],
},

Regarding native token transfers, I could reproduce the error message when trying to set permissions for the native token transfers. The user op reverted during the simulation. I'm currently investigating the issue and will let you know as soon as it is resolved.

repo: zerodevapp/sdk


text:
add types and interfaces

Add KiteConnect Types and Interfaces according to the best of my knowledge
cc @vividvilla @ranjanrak.

@vividvilla @ranjanrak I only am facing one issue, while running the npm run build-test command, it compiles all the typescript files and adds javacscript files along with it. I tried so much, but unable to avoid.
@anurag-roy can you see this issue as well ?

@vividvilla @ranjanrak Resolved most of the comments, but I am unable to avoid js files getting created along with ts files while running tsc for test files. But any ways I put all of the js files into .gitignore!

@bhavya3024
Run tsc to generate the .js files, run the tests and finally run
tsc --build --clean

to get rid of the generated .js files

@anurag-roy @vividvilla @ranjanrak
Resolved most of the comments, also I had to create more interfaces to specify params for each function that which arguments are required and optional. Also needed to add more arguments and types in params w.r.t unit test cases.

@bhavya3024 I'll try to complete my review by tonight. Also, we need to add return types/interfaces for all the functions.

@anurag-roy added types in return types of functions as well as per my best of my knowledge
cc @vividvilla @ranjanrak

@vividvilla @ranjanrak!

hey @bhavya3024 , @ranjanrak told me in a separate comment thread, you are working on types and interface additions. Can you let me know from where and how I can start helping you with this?

@ranjanrak I have fixed the PR comments.
For comments in TypeDoc notataion, I have used a vscode extension to auto generate comments for typescript files and used typedoc to generate docs

@ranjanrak @vividvilla

@ranjanrak @vividvilla https://github.com/zerodha/kiteconnectjs/pull/96#issuecomment-1581165526, any updates on this ? I have already added the docs using TypeDoc

LGTM. Thanks @bhavya3024 for this PR! 👍 I just have a few minor changes in mind, I'll take care of those. Thanks again for your contribution!

hey @bhavya3024 , @ranjanrak told me in a separate comment thread, you are working on types and interface additions. Can you let me know from where and how I can start helping you with this?

@GargDivanshu its done now!

source: gharchive/pull-request

authors: GargDivanshu anurag-roy bhavya3024 ranjanrak

repo: zerodha/kiteconnectjs

license: MIT

license_type: permissive

license_source: github-api


text:
Unable to install, hardcoded paths

Hi
I can't install this script, here is the error:

cp: target ‘/home/pi/RetroPie-Setup/scriptmodules/ports/’ is not a directory
cp: target ‘/home/pi/RetroPie-Setup/scriptmodules/emulators’ is not a directory
cp: target ‘/home/pi/RetroPie-Setup/scriptmodules/supplementary’ is not a directory

I have Raspbian Jessie Lite installed, then I deleted user pi and I'm using all the system under root account. This scripts searchs for "/home/pi" and in my system, home directory is "/root"
Thanks!

#160 Solved here!

Breaks installation for everyone using a standard installation of RetroPie as the script needs to be run as root, which then means that $HOME returns as /root which is NOT /home/pi. As said in #160, this won't be merged.

Just an idea: if the install-extra.sh was called from within RetroPie-Setup like another port script, $home should work correctly, because lots of retropie scripts use that. Nothing in Retropie should have hard-coded paths.

If this script somehow makes its way into RetroPie, I'll revisit this.

source: gharchive/issue

authors: BenWlson aikoncwd zerojay

repo: zerojay/RetroPie-Extra

license: mit

license_source: bigquery


text:
Add label 'name' to tasks metric

This PR adds a second label name to the celery_tasks metric.

@rangermeier Thank you again and sorry for the delay. I will try to take a look at it this week :)

authors: rangermeier zerok

repo: zerok/celery-prometheus-exporter


text:
Feature request: Show the whole content

I'm using ariadne to highlight certain locations in a file.
If a span to highlight contains multiple lines then ariadne will not show the whole content, only the first and last lines of the span.
For my specific use case I would like to still be able to see all the lines contained in the span. I am not sure it is possible right now.
Could an option be added to instruct ariadne to print all span's lines?
Thanks a lot!

I'll add this feature to the refactor I'm currently working on!

authors: nbigaouette zesterer

repo: zesterer/ariadne


text:
fix: add domain separator in the TSS message signature hash

This addresses potential issue that a TSS signed message can be used in either of the two withdraw functions.

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

Project coverage is 9.45%. Comparing base (1495103) to head (bc2a7ca).

Files with missing lines
Patch %
Lines

programs/protocol-contracts-solana/src/lib.rs
0.00%
4 Missing :warning:

Additional details and impacted files
@@           Coverage Diff            @@
##            main     #25      +/-   ##
========================================
- Coverage   9.63%   9.45%   -0.18%
========================================
  Files          1       1
  Lines        218     222       +4
========================================
  Hits          21      21
- Misses       197     201       +4

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

repo: zeta-chain/protocol-contracts-solana


text:
Converting to Flask project

Thank you for great work. I would like to use this on Flask project and upload images to it. How can that be done. Thank you

https://www.jianshu.com/p/37b95672e70f

authors: netdrop-sys reviloera

repo: zeusees/HyperFAS


text:
Code cleaning

@weierophinney I'd like to take the opportunity to note that the api of the MvcAuthEvent is a bit confusing. setIdentity() assumes a concrete Zend\Authentication\AuthenticationService instance is composed, but the if we add the typehint the tests will fail because an invalid mock is used. Also it is not clear what $authorization can be. I've found myself using expecting an ZF\MvcAuth\Authorization\AuthorizationInterface and instead it was a Zend\Permissions\Acl\Acl.
I know that these problems all involve BC breaks, but I'd really like to have a more consistent API throughout the whole module: it has some rough edges and working with it has not been the most pleasant of the tasks. :-P
Could you give me some insights on what would you change?

oops, missed #51, which this includes.

The vision originally was to allow a user to specify whatever authentication or authorization service they want, and then, via their custom listener, use that service to authenticate or authorize an identity. In reality, the better practice is to inject the listener with the service to use. As such, these elements of the MvcAuthEvent and default listeners should be refactored. Does that answer your question or give you any direction, @stefanotorresi ?

hmm, ok!
I have already tried the custom listener approach (i.e. a scope authorization listener and a custom ACL one), but I had to wrestle a bit with it, and the final result was not completely sound. But maybe it was my fault!
I will propose a refactoring in a different PR with more reasoning; this one, for the time being I'll just rebase and let you merge it.

authors: stefanotorresi weierophinney

repo: zfcampus/zf-mvc-auth


text:
Support Puppeteer argument defaultViewport ?

I tried setting the general argument "defaultViewport: null" to make the viewport cover the entire page, but it didn't work.
Thanks
...
async getBrowserCF(visible, isIncognito = false) {
let args;
    args = [];
    args.push('--no-sandbox');
    args.push('--disable-setuid-sandbox');
    args.push('--start-maximized');
    args.push('--disable-infobars');
    args.push('--window-position=0,0');
    args.push('--ignore-certificate-errors');
    args.push('--ignore-certificate-errors-spki-list');
    args.push('--disable-gpu');
    args.push('--disable-dev-shm-usage');
    args.push('--password-store=basic');

    if (isIncognito) {
        args.push('--incognito');
    }

    args.push('--window-size=' + this.width + ',' + this.height);

    const {page, browser} = await connect(
        {
            args: args,
            headless: !visible,
            customConfig: {
                defaultViewport: null,
                executablePath: this.executablePath,
                userDataDir: this.userDataDir,
                userAgent: '5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36',
                ignoreHTTPSErrors: true,
                ignoreDefaultArgs: [
                    '--disable-background-networking',
                    //'--enable-features=NetworkService,NetworkServiceInProcess',
                    //'--disable-background-timer-throttling',
                    //'--disable-backgrounding-occluded-windows',
                    //'--disable-breakpad',
                    //'--disable-client-side-phishing-detection',
                    '--disable-component-extensions-with-background-pages',
                    //'--disable-default-apps',
                    //'--disable-dev-shm-usage',
                    '--disable-extensions',
                    // BlinkGenPropertyTrees disabled due to crbug.com/937609
                    //'--disable-features=TranslateUI,BlinkGenPropertyTrees',
                    //'--disable-hang-monitor',
                    //'--disable-ipc-flooding-protection',
                    //'--disable-popup-blocking',
                    //'--disable-prompt-on-repost',
                    //'--disable-renderer-backgrounding',
                    //'--disable-sync',
                    //'--force-color-profile=srgb',
                    //'--metrics-recording-only',
                    //'--no-first-run',
                    //'--enable-automation',
                    //'--password-store=basic',
                    //'--use-mock-keychain',
                ]
            },

            skipTarget: [],
            fingerprint: true,
            turnstile: true,
            connectOption: {},
            fpconfig: {},
        });

    return {page, browser}
}

Hello, the project has been updated. Runtime is no longer used, so some issues like this appeared. Thanks for the problem. I will look into it.

https://github.com/zfcsoftware/puppeteer-real-browser?tab=readme-ov-file#pagesetviewport-method-is-not-working-what-should-i-do
https://github.com/zfcsoftware/puppeteer-real-browser/blob/ecfcef6946d68b75e0e7d98dc21797a3c016b12c/test/esm/test.js#L13
You can use it like here.

authors: Zvih zfcsoftware

repo: zfcsoftware/puppeteer-real-browser


text:
Allow builds to run on specific BUILD builders

Place the Distribution and Architecture BUILD builders
on separate schedulers so they can be started independently.
Both schedulers will still accept the build category.
Signed-off-by: Giuseppe Di Natale dinatale2@llnl.gov

Updated the README, missed a spot where all options should be listed.

repo: zfsonlinux/zfs-buildbot


text:
🛑 JSONDiff is down

In 6336fce, JSONDiff (https://www.jsondiff.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: JSONDiff is back up in b2abfca.

repo: zgrossbart/jdd-upptime


text:
系统设置-主题色Bug

版本号：
当前master分支
问题描述：
右上角用户头像-系统设置-主题色报错，部署到一个子目录会有影响。
link 标签 href 属性直接使用了 ‘/color.less’ 路径，打包到一个子目录时（即设置了publicPath）路径错误，应改为 lessStyleNode.setAttribute('href', __webpack_public_path__ + 'color.less')
截图&代码：
https://github.com/zhangdaiscott/jeecg-boot/blob/8a8e92cda38b9f042fdcfb1c2a56c88c59eb80a5/ant-design-vue-jeecg/src/components/tools/setting.js#L67
友情提示： 未按格式要求发帖，会直接删掉。

已分配

感谢反馈，已采用你的写法，下个版本发布

authors: Sean-214 sjlei zhangdaiscott

repo: zhangdaiscott/jeecg-boot


text:
jeecg-boot2.0版本如何上线发布

版本号：
2.0.2
问题描述：
1.1版本的war方式部署不能用了？技术文档里的部署方案似乎没有更新
截图&代码：

版本号：
2.0.2
问题描述：
1.1版本的war方式部署不能用了？技术文档里的部署方案似乎没有更新
截图&代码：


text:
ect文件夹方便分享一下吗

运行发现代码少etc文件里的内容，方便分享下吗

运行发现代码少etc文件里的内容，方便分享下吗


text:
AttributeError: 'Gaze_GAN' object has no attribute 'D_real_gan_logits'. Could you please find that whether there is any wrong in the code?

Hi, I am encountering the same error: AttributeError: 'Gaze_GAN' object has no attribute 'D_real_gan_logits'. @zhangqianhui could you please help here.
Thanks!

I will check the code.

Additionally, the v2 version of gazegan has been released.
https://github.com/zhangqianhui/GazeAnimation

i have updated new code.

@zhangqianhui Thanks a lot. It will be helpful. By the way, training the code without setting "--is_ss" how will that effect the results?
Thanks.

a little @anantthebiker  However, it is important to design a self-supervised module to improve the sample quality of gan.

authors: anantthebiker pjl1995 zhangqianhui

repo: zhangqianhui/GazeCorrection


text:
Video

Is it possible to work with video? It would be nice

Maybe. I will see what can be done. Interesting idea 👍

There is one small bug here, I'm downloading the video all right, I can play, flip and everything else, but only I press Cropp it turns it into a picture, it's possible to get some video, maybe there are extra parameters?

"press" means click?

When I execute this.myCroppa.generateDataUrl () I get png back, so I realized that I need another option to use, I need to use something else?

Yes, generateDataUrl won't give you a video. You need to use the technique introduced in these links:
https://developers.google.com/web/updates/2016/10/capture-stream
https://developers.google.com/web/updates/2016/01/mediarecorder

Hey!
I tried to use the option :video-enabled=true and I get a video object. Cool.
My problem is croppa do not get the first frame and draw it on the canvas. So right now I only see a transparent image and unfortunately there is no error.
Here a simple CodePen to reproduce the problem:
https://codepen.io/psyphant/pen/vYOQrZO

authors: Jlomaka Psyphant zhanziyang

repo: zhanziyang/vue-croppa

license: isc


text:
🛑 ZY is down

In 8b42689, ZY (https://ziyuan.baidu.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ZY is back up in fec994a.

repo: zhaodylan/uptime-ziyuan


text:
RuntimeError: input image is smaller than kernel (shape_check at mmdet/ops/dcn/src/deform_conv_cuda.cpp:127)

当我训练您参数文件时，环境配置几乎与您的一样，但发现在deform conv卷积操作会发生报错，以下是我的环境配置
sys.platform: linux
Python: 3.7.11 (default, Jul 27 2021, 14:32:16) [GCC 7.5.0]
CUDA available: True
GPU 0: NVIDIA TITAN RTX
CUDA_HOME: /usr/local/cuda-10.1
NVCC: Cuda compilation tools, release 10.1, V10.1.105
GCC: gcc (GCC) 5.3.0
PyTorch: 1.7.1
PyTorch compiling details: PyTorch built with:

GCC 7.3
C++ Version: 201402
Intel(R) oneAPI Math Kernel Library Version 2021.2-Product Build 20210312 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v1.6.0 (Git Hash 5ef631a030a6f73131c77892041042805a06064f)
OpenMP 201511 (a.k.a. OpenMP 4.5)
NNPACK is enabled
CPU capability usage: AVX2
CUDA Runtime 10.1
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_37,code=compute_37
CuDNN 7.6.3
Magma 2.5.2
Build settings: BLAS=MKL, BUILD_TYPE=Release, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_VULKAN_WRAPPER -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON,

TorchVision: 0.8.2
OpenCV: 4.5.2
MMCV: 1.3.11
MMCV Compiler: GCC 7.3
MMCV CUDA Compiler: 10.1
MMDetection: 2.15.1+

抱歉，忘记在readme说明了，这就补上。因为使用滑动窗口剪切原始图片，有一定几率会得到非常小的图片，需要在transform.py里面的Pad那个类将其填充。
------------------ 原始邮件 ------------------
发件人:                                                                                "zhaozhen2333/iFLYTEK2021"                                                                                @.>;
发送时间: 2022年2月25日(星期五) 下午4:51
@.>;
@.***>;
主题: [zhaozhen2333/iFLYTEK2021] RuntimeError: input image is smaller than kernel (shape_check at mmdet/ops/dcn/src/deform_conv_cuda.cpp:127) (Issue #2)
当我训练您参数文件时，环境配置几乎与您的一样，但发现在deform conv卷积操作会发生报错，以下是我的环境配置
sys.platform: linux
Python: 3.7.11 (default, Jul 27 2021, 14:32:16) [GCC 7.5.0]
CUDA available: True
GPU 0: NVIDIA TITAN RTX
CUDA_HOME: /usr/local/cuda-10.1
NVCC: Cuda compilation tools, release 10.1, V10.1.105
GCC: gcc (GCC) 5.3.0
PyTorch: 1.7.1
PyTorch compiling details: PyTorch built with:
GCC 7.3
C++ Version: 201402
Intel(R) oneAPI Math Kernel Library Version 2021.2-Product Build 20210312 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v1.6.0 (Git Hash 5ef631a030a6f73131c77892041042805a06064f)
OpenMP 201511 (a.k.a. OpenMP 4.5)
NNPACK is enabled
CPU capability usage: AVX2
CUDA Runtime 10.1
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_37,code=compute_37
CuDNN 7.6.3
Magma 2.5.2
Build settings: BLAS=MKL, BUILD_TYPE=Release, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_VULKAN_WRAPPER -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON,
TorchVision: 0.8.2
OpenCV: 4.5.2
MMCV: 1.3.11
MMCV Compiler: GCC 7.3
MMCV CUDA Compiler: 10.1
MMDetection: 2.15.1+
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

我需要修改transform.py 里面pad类哪个参数？

您好，应该是 transforms.py 里的pad类，您的readme里边写错了，写成 transformer.py

修改了transforms.py的代码，还是会报这个错。

修改了transforms.py的代码，还是会报这个错。

请问transforms.py 在哪个文件里

修改了transforms.py的代码，还是会报这个错。

请问解决了吗


text:
can it use nice！nano firmware directly？

If there are some differences with that when re-flash the bootloader?

you can use the nice!nano v2 bootloader directly. firmware-wise, there is no official ZMK shield.

authors: SAIXX zhiayang

repo: zhiayang/mikoto


text:
Using DAQ module with zhinst-qcodes

Using the daq module on a MFLI, I have several questions regarding the workflow:

with zhinst-toolkit I can subscribe to nodes like this:

session = Session("localhost")
device = session.connect_device("devXXXX")
daq = session.modules.daq
daq.subscribe(device.demods[0].sample.x)
daq.subscribe(device.demods[0].sample.y)

With zhinst-qcodes however, daq.subscribe takes a ZIParameter, which I cannot seem to get:
session = ZISession("localhost")
device = session.connect_device("devXXXX")
daq = session.modules.daq

daq.subscribe(device.demods[0].sample.x)
# AttributeError: 'ZIParameter' object has no attribute 'x'

daq.subscribe(device.demods[0].sample.tk_node.x)
# Tries to subscribe to /devXXXX/demods/0/sample.x.tk_node, which ends up not working

daq._tk_object.subscribe(device.demods[0].sample.tk_node.x)
# This works

What is the preferred way of subscribing to those nodes? What is with .avg and the like?

What is the reason, that the daq module does not have execute() and read() functions? Is there a more elegant way than calling daq._tk_object.execute() and daq._tk_object.read()?

Thank you and best regards

Currently our QCoDeS driver does not have a adapted version like the zhinst-toolkit does. Meaning it just is just a ZIBaseModule that works for all LabOne modules. That is why your observations are correct both in terms of subscribing and of the execute and read function.
But technically nothing speaks against implementing it. One challenge would be to integrate the signal selection (.x.avg...) but the ZIParameter class could handle that. The only reason the QCoDeS driver does not support this at the moment is because no one asked for it 😇 and the driver is still in its developing stage.
For now you have two options falling back to toolkit like you describe or use the underlying ziPython module directly:
from zhinst.qcodes import MFLI
device = MFLI("devXXXX", "localhost")
session = device.session
# or
# session = ZISession("localhost")
# device = session.connect_device("devXXXX")

daq = session.modules.daq.raw_module
daq.subscribe(device.demods[0].sample.zi_node + ".x")
daq.execute()

repo: zhinst/zhinst-qcodes


text:
CS_ERR_VERSION

java.lang.RuntimeException: Different API version between core 768 & binding 1024 (CS_ERR_VERSION)
试了好几个版本，都是报这个错

可能跟你系统安装的三剑客有冲突


text:
🛑 腾讯云 COS 节点 is down

In bc69113, 腾讯云 COS 节点 (https://lisz.ink) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 腾讯云 COS 节点 is back up in 0a993ba.

repo: zhonger/upptime


text:
Choosing the Investor perk fails to adjust the intended global variable for most vendors, fix included

What happened?
For whatever reason the variable fails to change properly for most vendors (or rather they're just set wrong to begin with): in my case, it was almost all vanilla vendors with the exception of Sybille Stentor in Solitude (PerkInvestorSolitudeMagic), and a few others - this can be checked by typing help investor into the console after choosing the perk and seeing which ones are set to 100.
A roundabout way to fix this is by just setting the variables manually, I have attached the text file that includes all the vanilla merchants, users could possibly run it by just typing 'bat investor' into the command console once they have acquired the perk; file needs to be in Tsukiro Stock Game folder of course. The change will persist through reloads as well. Alternatively, you could bake this into the starting save since even if the variable is set to 100, without the perk the dialogue shouldn't appear but I didn't test that, personally.
investor.txt
Modlist version
1.1.691

fixed in 1.01

authors: Kathaarian zhongjiedong

repo: zhongjiedong/Tsukiro


text:
Crash in UpdateLearningRate

Hello !
Testing this last commit, I get a crash in UpdateLearningRate
Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at RNNSharp.RNN.UpdateLearningRate(Matrix`1 m, Int32 i, Int32 j, Double delta) in C:\sbuild\mine\backend_broka\Candidatos\RNNSharp-master\RNNSharp\RNN.cs:line 101
at RNNSharp.LSTMRNN.<LearnOutputWeight>b__25_0(Int32 i) in C:\sbuild\mine\backend_broka\Candidatos\RNNSharp-master\RNNSharp\LSTMRNN.cs:line 609

In LSTMRNN , Line 601 do this:

Parallel.For(0, L1, parallelOption, i =>
            {
                double cellOutput = neuHidden[i].cellOutput;
                for (int k = 0; k < L2; k++)
                {
                    double delta = NormalizeGradient(cellOutput * OutputLayer.er[k]);
                    double newLearningRate = UpdateLearningRate(Hidden2OutputWeightLearningRate, i, k, delta);

                    Hidden2OutputWeight[k][i] += newLearningRate * delta;
                }
            });

But in line 517 , it is initialized like :
Hidden2OutputWeightLearningRate = new Matrix<float>(L2, L1);

Thanks, Bratao.
This line has a bug: double newLearningRate = UpdateLearningRate(Hidden2OutputWeightLearningRate, i, k, delta); at LSTMRNN.cs line #607.
It should be double newLearningRate = UpdateLearningRate(Hidden2OutputWeightLearningRate, k, i, delta);
You can modify it in your private build, I will fix it tonight.
Thanks
Zhongkai Fu

The bug has been mitigated. Could you please try it again ?

@zhongkaifu , thank you !!! It's not crashing anymore.
However, compared to yesterday version, my LSTM do not converge anymore =(
Using RNN it gave me a crash. I created another issue reporting this bug.

@bratao , thanks for letting me know another problem.
I have reverted the previous change list, and checked-in LSTM crashing fix only along with a few of dynamic learning rate optimization. Could you please try it again ? Thanks in advance.

It is working great !!! Thank you so much !!

authors: bratao zhongkaifu

repo: zhongkaifu/RNNSharp


text:
运用后在iphone手机上的问题

在iPhone手机上，弹框后，背景可以上下滑动，希望背景禁止滑动

iphone几？

所有的iphone手机

最新的代码背景是禁止滑动的呢？你的是最新的代码吗？

我刚刚下了最新的还是滚动啊

815918537 加我下qq呢

还有华为P8青春版的也可以滚动

目测需要fastclick

感谢提供方案，后期我这边遇到这个问题我们会进行修复的

authors: Tcj1988 hechuanhua zhoushengmufc

repo: zhoushengmufc/iosselect


text:
是否支持官方插件

找了很多个项目都没有完全支持插件

@iknow2333 插件模块还在开发中，欢迎pr

repo: zhpd/chatgpt-plus


text:
pixi

I have below error when building. Do you know what is missing?
/usr/bin/ld: cannot find -lippicv
collect2: error: ld returned 1 exit status

https://github.com/dmlc/mxnet/issues/1816
Check if you have the opencv installed correctly

Thanks. Link the opencv lib did not help, but recompile opencv and install helped.

repo: zhreshold/mxnet-ssd


text:
Error on execution with custom trained model : Operands shape mismatch

I train a new model with this command :
python2 train.py --prefix ssd20161027 --devkit-path data/mydata/ --gpus 0 --val-image-set val --image-set train --year 2016 --batch-size 16

and when I test on datas (mines or demos) with :
python demo.py --epoch 4 --images data/mydata/JPEGImages/102355_119.jpg --thresh 0.5 --prefix ssd20161027

The script failed with this error :
[11:48:32] /path/to/my/project/mxnet-ssd/mxnet/dmlc-core/include/dmlc/logging.h:235: [11:48:32] src/ndarray/ndarray.cc:291: Check failed: from.shape() == to->shape() operands shape mismatch
Traceback (most recent call last):
  File "demo.py", line 95, in <module>
    ctx, args.nms_thresh, args.force_nms)
  File "demo.py", line 41, in get_detector
    data_shape, mean_pixels, ctx=ctx)
  File "/path/to/my/project/mxnet-ssd/detect/detector.py", line 37, in __init__
    self.mod.set_params(args, auxs)
  File "/path/to/my/project/mxnet-ssd/tools/../mxnet/python/mxnet/module/base_module.py", line 478, in set_params
    allow_missing=allow_missing, force_init=force_init)
  File "/path/to/my/project/mxnet-ssd/tools/../mxnet/python/mxnet/module/module.py", line 190, in init_params
    _impl(name, arr, arg_params)
  File "/path/to/my/project/mxnet-ssd/tools/../mxnet/python/mxnet/module/module.py", line 180, in _impl
    cache_arr.copyto(arr)
  File "/path/to/my/project/mxnet-ssd/tools/../mxnet/python/mxnet/ndarray.py", line 499, in copyto
    return _internal._copyto(self, out=other)
  File "/path/to/my/project/mxnet-ssd/tools/../mxnet/python/mxnet/ndarray.py", line 1174, in unary_ndarray_function
    c_array(ctypes.c_char_p, [c_str(str(i)) for i in kwargs.values()])))
  File "/path/to/my/project/mxnet-ssd/tools/../mxnet/python/mxnet/base.py", line 77, in check_call
    raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: [11:48:32] src/ndarray/ndarray.cc:291: Check failed: from.shape() == to->shape() operands shape mismatch

I'm on ubuntu 16.04 with cuda 8.0 and cudnn5

I got my mistake, I forgot to change the number of classes in the demo script. 😞
btw thanks for your work on this model.


text:
When will you make your pre-trained models available?

The script included in this repository refers to a link that cannot be resolved. Can you provide an alternate location to download the pre-trained models? We have tried accessing from multiple locations, globally, without success.

The issue was with VPN access to your Box site.

repo: zhuhao-nju/mofanerf


text:
Mark getAdapterFor method of AdapterFactory public.

or it will not be able to be overridden.

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

Codecov Report

Merging #56 into master will not change coverage.
The diff coverage is 0%.

@@          Coverage Diff           @@
##           master     #56   +/-   ##
======================================
  Coverage    9.69%   9.69%
======================================
  Files          96      96
  Lines        4815    4815
======================================
  Hits          467     467
  Misses       4348    4348

Impacted Files
Coverage Δ

...pterSocket/Factory/ShadowsocksAdapterFactory.swift
0% <0%> (ø)
:white_check_mark:

src/Socket/AdapterSocket/SpeedAdapter.swift
0% <0%> (ø)
:white_check_mark:

...t/AdapterSocket/Factory/SOCKS5AdapterFactory.swift
0% <0%> (ø)
:white_check_mark:

src/Socket/AdapterSocket/AdapterSocket.swift
0% <0%> (ø)
:white_check_mark:

.../Socket/AdapterSocket/Factory/AdapterFactory.swift
0% <0%> (ø)
:white_check_mark:

...apterSocket/Factory/SecureHTTPAdapterFactory.swift
0% <0%> (ø)
:white_check_mark:

...t/AdapterSocket/Factory/RejectAdapterFactory.swift
0% <0%> (ø)
:white_check_mark:

...et/AdapterSocket/Factory/SpeedAdapterFactory.swift
0% <0%> (ø)
:white_check_mark:

...ket/AdapterSocket/Factory/HTTPAdapterFactory.swift
0% <0%> (ø)
:white_check_mark:

...AdapterSocket/Shadowsocks/ShadowsocksAdapter.swift
0% <0%> (ø)
:white_check_mark:

... and 1 more

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 713dbd5...e199a91. Read the comment docs.

authors: CLAassistant codecov-io yvbbrjdr

repo: zhuhaow/NEKit


text:
Level.destroyBlock still havent been fixed?

var goldId = 41;
function redstoneUpdateHook(x,y,z,newCurrent, worldLoading, blockId, blockDamage){
var powered = newCurrent;
if(blockId == goldId && powered >=1 && powered <= 15){
Level.destroyBlock(x,y,z,true);
}
}
No working for me :(

Redstone currents only work for custom blocks, not built in blocks.

authors: QmodsX zhuowei

repo: zhuowei/MCPELauncher


text:
Beanstalk job priority

It's possible to set a custom priority when push a job into Beanstalk server?
Do you accept a PR to implement this feature?

I'm not going to implement priority yet. It is supported inside Beanstalk only. I do not see how to implement a qualitative abstract level for it, which would be compatible with other queue brokers.

But it doesn't need to be supported in uncompatible queue brokers.
If a driver do not support priority, then nothing happen.
Something like this:
Yii::$app->queue->push(new DownloadJob([
    'url' => 'http://example.com/image.jpg',
    'file' => '/tmp/image.jpg',
]));

can become
Yii::$app->queue->priority(1024)->push(new DownloadJob([
    'url' => 'http://example.com/image.jpg',
    'file' => '/tmp/image.jpg',
]));

All priority method in uncompatible driver simply return the object without doing anything.
Priority in queues it's not used to set an order between jobs (you can have multiple job consumer and job with different priority can be done at the same time) but it's useful for throttling and assign resources and bandwidth on different customers in the same application.

Yes, implementation using method chain is a good idea.
Also can add method for delayed pushing.
I will add its in 1.1.

👍 do you have an ETA?
Maybe I can help you with a pull request?

Ready.
You can test priorities from master branch.

Why this is not supported in DB driver? This is only matter of additional column.

Of course. Need add one column and one index. But in the first place is abstract level, and drivers which already supports priorities. This are Beanstalk and Gearman. Other drivers will be updated later.

Thanks! I'll try soon.

The enhancement is available in 1.0.1.

authors: lordlele rob006 zhuravljov


text:
Is it possible to dump the memory snapshot for offline analysis?

Hi,
I got this question after checking out #24 .
In fact, I have some memory issues with my Django server, but the online environment is not quite reachable for some reason.
Therefore, I wonder whether guppy3 provides any approaches to dump the memory/heap snapshot so that I can retrieve the snapshot via an API and do the rest of the analysis offline.
Thanks.

Unfortunately, not really :( Guppy can dump the statistics from an existing guppy session, but any 'more advanced' analysis, such as trying to filter by reference types, needs to be analyzed from within.

Guppy can dump the statistics from an existing guppy session

IdentitySet.dump is the function.
>>> import guppy
>>> guppy.hpy().heap().dump('test.hpy')

makes:
.loader: _load_stat
.format: SetFormat
.timemade: 1628756373.710652
.count: 38146
.size: 4497412
.kindname:
.kindheader: Kind (class / dict of class)
.numrows: 127
.r: 11118 985591 str
.r: 7725 535840 tuple
.r: 576 480952 type
.r: 2668 471304 types.CodeType
.r: 5242 375945 bytes
.r: 2448 332928 function
[...]
.r: 1 16 builtins.NoneType
.r: 1 16 builtins.NotImplementedType
.r: 1 16 builtins.ellipsis
.end: .loader: _load_stat

... which you can get by guppy.hpy().heap().all (use repr() or str() to convert it to string)

I'm gonna close this as dup of #22 and #24. Feel free to reopen if you have more questions.


text:
Sanitation Helper

Added a SanitationHelper along with Sanitizers for booleans, integers, floats, and strings.

Though I like the thought of having an interface that defines the basic signature of a sanitizer, I don't like that we have a class which tries to bring them together.  I don't think we can have a hard-coded SanitizerHelper that also allows registration of new types.  It makes them unequal citizens in the land of sanitization, and it just feels off to me.  Will share more thoughts when I'm home.

There are a few places that I can think of where there will be a lot of input sanitation, and that would be the FormHelper, RequestHelper, CliHelper, and possibly the DatabaseHelper. The major benefit of the SanitationHelper is that it stores and shares a single instance of each sanitizer, which helps to reduce the number of sanitizer instances that are loaded into memory.
I total agree that right now that the Sanitizers are not equal citizens. We could always remove the string(), float(), integer() and boolean() methods which promote our built-in sanitizers as upper-class citizens.

Alright, I've thought about it more, and it does seem useless to have the SanitationHelper. If we want to save memory, we could create a SanitizerBase and make it a singleton.

We could also make the Sanitizers have static methods:
IntegerSanitizer::sanitize('123');
BooleanSanitizer::sanitize('false');

I think I'm leaning toward your last comment.  Ideal world means that we're using generics, but we don't have that option here, so maybe if I think of the CliHelper as an example, I might expect to see something like this:
use Stoic\Input\Sanitize;

// Create the helper and add the sanitizer(s) I want available
$ch = new CliHelper($argc, $argv);
$ch->addSanitizer('bool', new BooleanSanitizer());

// Check if an argument is available by short or long name
if ($ch->hasParam('d', 'debug')) {
  // Retrieve it using the 'bool' key so we know we're getting it through the sanitizer we supplied
  $debug = $ch->getSanitized('bool', 'd', 'debug');
}

It's not perfect, but again it's hard without generics to do something I'd call elegant.

Alright, we talked about it and decided the SanitationHelper should only be responsible for managing and executing sanitation, but shouldn't come with pre-built sanitation methods. Changes have been added to that effect.

If the sanitizer is a null value, then obviously no sanitizer exists. If another developer wants to do their own magic and allow for null values in the sanitizers, then they'll need to override the hasSanitizer() method also.

repo: zibings/stoic-php-input


text:
Lieferungen BioNTech KW22

Laut der aktuellen Tabelle des BMG sind von BioNTech bereits für KW 22 (31. Mai - 06. Juni) 5,1 mio Dosen angekündigt.
In euren Daten steigt die Liefermenge aber erst eine Woche später auf diesen Wert.
Könnt ihr das anpassen damit die Simulationen etwas präziser sind?
Danke!
Quelle:
https://www.bundesgesundheitsministerium.de/fileadmin/Dateien/3_Downloads/C/Coronavirus/Impfstoff/Lieferprognose_BioNTech_und_Moderna_fuer_das_2._Quartal.pdf

Der Fehler scheint neu zu sein und erst innerhalb der letzten 4 Wochen hinzugekommen zu sein

Heute wurden neue Daten bekanntgegeben für die Lieferankündigungen aller Hersteller:
https://www.bundesgesundheitsministerium.de/fileadmin/Dateien/3_Downloads/C/Coronavirus/Impfstoff/Lieferprognosen_aller_Hersteller_2._Quartal.pdf


text:
p2p(peer): add support for ipv4 peers

Because the Bitcoin message protocol uses ipv6, I cut corners and only allowed peers that use ipv6
In src/network/peer.zig
    pub fn init(allocator: std.mem.Allocator, config: *const Config, address: std.net.Address) !*Peer {
        if (address.any.family != std.posix.AF.INET6) {
            return error.WeOnlySupportIPV6ForNow;
        }

Rather than doing this we should accept IPv4 Addresses too and have a function to covert all of them to ipv6 when we need to send messages
posix.AF.INET  is the flag for ipv4.

I will like to take care of this issue

authors: Jonatan-Chaverri tdelabro

repo: zig-bitcoin/btczee


text:
Assertion failure when @alignOf(SomeStruct) is called without first referencing SomeStruct

$ cat a.zig
const io = @import("std").io;

const Foo = struct { x: u32, y: u32, z: u32, };

pub fn main() -> %void {
    _ = Foo { .x = 1, .y = 2, .z = 3 };
    %%io.stdout.printf("{}\n", usize(@alignOf(Foo)));
}
$ zig/build/zig build_exe a.zig && ./a
12

This is ok, but if you delete the line _ = Foo { ... }; you get this instead
$ zig/build/zig build_exe a.zig
zig: /home/scurest/zig/src/analyze.cpp:1645: void resolve_struct_type(CodeGen*, TypeTableEntry*): Assertion `LLVMStoreSizeOfType(g->target_data_ref, struct_type->type_ref) > 0' failed.
Aborted (core dumped)

It seems to work if you create a Foo or if you create a function type that contains Foo (eg. _ = fn() -> Foo;). It doesn't work if you reference Foo by itself (_ = Foo;) or underneath a pointer.
(Also, 12 isn't the right alignment, cf. #37?)

Thanks for the report. Hoping to look at this and your other report tonight.

Thanks! No rush or anything. It's a really neat language, by the way :)

authors: andrewrk scurest

repo: zig-lang/zig


text:
External converters are not picked up anymore

Description of problem:
// Please do a short description of the problem
// Make sure your problem is related to the add-on, not to core Zigbee2mqtt functionality, like problems with specific devices - for such issues use https://github.com/Koenkk/zigbee2mqtt/issues
Since the latest version external converters aren't picked up anymore.
The device that was working with my external converter becomes unsupported.
Zigbee2mqtt add-on version (if edge, please report commit hash):
https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.21.2

Your entire configuration from the frontend (with sensitive fields redacted):
data_path: /config/zigbee2mqtt
external_converters:
  - TRV_quirk.js
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquitto:1883
  user: secret
  password: secret
serial:
  port: >-
    /dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_22_98_87_F1-if00-port0
advanced:
  log_level: warn
  pan_id: 6754
  channel: 25
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
  availability_timeout: 300
  timestamp_format: DD-MM-YYYY HH:mm:ss
  ikea_ota_use_test_url: true
  homeassistant_legacy_triggers: true
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: '-d -d'
  log: false

Running platform (details from Suypervisor > System)
Core: core-2021.9.7
Supervisor: supervisor-2021.09.6
Operating System: Home Assistant OS 6.4

Your logs from Home Assistant Supervisor
// Your logs here
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing...
[23:28:26] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing...
[23:28:26] INFO: MQTT available, fetching server detail ...
[23:28:26] INFO: Previous config file found, checking backup
[23:28:26] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[23:28:26] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[23:28:26] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.21.2 start
> node index.js

I experience the same problem with all my external converters

I'm glad that I'm not the only one! I reverted to the backup of the container to make them work again.

I'm having similar issue. I have created external converter for device but looks like it's not loaded when starting/restarting via Home assistant addon-s page, i have to go into zigbee2mqtt webui -> settings -> tools and restart zigbee2mqtt, after that converter is loaded and device becomes supported
I have set external converter in HA addon configuration tab.

Same issue... It's forgetting external converters after zigbee2mqtt resterted from the HA add-on pages. Additional restart must be triggered from the zigbee2mqtt Settings/Tools page itself and the unsopported devices become supported again.

Happens also for me...

Same here
Home Assistant Supervisor version 2022.01.1
Home Assistant Core version 2022.2.0
Zigbee2MQTT version 1.23.0

Same issue

authors: DmitryMyadzelets M-Dobr Nesvet dollop80 geoffreylagaisse kaweksl sipossz


text:
Extension issue

Issue Type: Bug
Extension Name: html-css-class-completion
Extension Version: 1.20.0
OS Version: Windows_NT x64 10.0.18363
VSCode version: 1.53.0

:warning: We have written the needed data into your clipboard. Please paste! :warning:

Already reported here: https://github.com/zignd/HTML-CSS-Class-Completion/issues/155

repo: zignd/HTML-CSS-Class-Completion


text:
Report config for SOC001

Report config for SOC001 Philips manufacturer specific cluster.
https://github.com/zigpy/zha-device-handlers/issues/3314

You can ignore the failing test for now. It fails because a cluster with that id isn't defined anywhere.
The test is a bit aggressive maybe... Just for reference, it was added in this commit: https://github.com/home-assistant/core/commit/37707edc478eff9bd123f669effbeff9f317268a#diff-7126848f7becb03b017f77521684b3372d7a95f1859f6e9763493af52de8a780

Uh, the test ignores custom clusters on v2 quirks at the moment..  Taking a look

authors: TheJulianJES mguaylam

repo: zigpy/zha


text:
Automatically detect parameters

I think it should be possible to automatically detect parameters.
It could be an experimental feature, looking at all values that change in the call method and that are not any outs, deps, ...

There is no call method left. Using ZnTrackOption class methods should be prioritized.

repo: zincware/ZnTrack


text:
Question: Working with NormalizedInMemoryCache

I'm fairly new to Flutter and GraphQl for that matter and am struggling with working with the NormalizedInMemoryCache. I've scoured the repo issues and the internet but can't figure out how to dereference a cached mutation result.
I have a mutation that returns a nested 'User' along with its id, name, and email, but when I access results.data['User'] I see: [@cache/reference, User/<User ID>]. My question is how do I access the cache so that I can gather the related information (email, name, etc), from this point in my mutation. Any direction would be greatly appreciated.
Here is my mutation widget:
return Mutation(
      options: MutationOptions(document: authenticationMutation),
      builder: (RunMutation signup, QueryResult result) {
        return RaisedButton(
            color: Theme.of(context).primaryColor,
            textTheme: ButtonTextTheme.primary,
            onPressed: () => signup({
                  "email": <>,
                  "password": <>,
                  "name": <>
                }),
            child: Text('Log in'));
      },
      onCompleted: _onCompleted,
      // you can update the cache based on results
      update: (Cache cache, QueryResult result) {
        return cache;
      },
    );

Actually figured this out. You have to perform a cache.read() on the key passed back in the result ([@cache/reference, ]).

how did you resollve this? What should I pass into the key as cache.read()?

repo: zino-app/graphql-flutter


text:
Graphql fragments

I need to use fragment in graphql for reduce response data, but i can't find any doc or method for that.

@hadi-norouzi Hey man! Fragments don't need a special method, it's way to share graphql queries between each other.
You should create a item_fragment.graphql file, fill it with your fragment, generate graphql class using Artemis for example and then you can reuse your fragment.
Or simpler way just create a string. See more on fragments here https://graphql.org/learn/queries/#fragments. I would recommend you to close this issue.

I have this mutation string and fragment.
String searchOnMapMutation = r'''
  mutation map ($data: String){
    searchOnMap(data: $data){
      # searchLocationResultFragment
    }
  }
''';

String searchLocationResultFragment = r'''
  fragment locationRes on SearchOnMapRes {
    title
    region
    province
  }
''';

Can you help me for add this fragment to mutation string without using Artemis?

String searchOnMapMutation = r'''
  mutation map ($data: String){
    searchOnMap(data: $data){
       ...searchLocationResultFragment
    }
  }

  fragment locationRes on SearchOnMapRes {
    title
    region
    province
  }
''';

Something like that. You can export to constant fragment.
@hadi-norouzi

it's static, i want add another fragment to mutation and ignore this fragment for new events.  it's possible?
@SanjiKir

If you want to use this fragment only once and then use other fragments with the same mutation you have to create another mutation. I am not sure it's possible to dynamically substitute fragment in the Query, you can try template literals with ternary operators, but I would seriously recommend you to ask why are you even doing such things.
However, your questions are graphql related and not flutter related, I do recommend you to read the documentation and maybe find some playground to understand graphql itself a bit better.

@SanjiKir Thanks

Is it possible to pass fragments as variable into string queries?
const String graphQLFragmentBody =
    r'''fragment AuthFields on UsersPermissionsLoginPayload {
    jwt
    user{
      username
      email
      confirmed
    }
}
''';

const String graphQLDocumentRegisterUser = '''
    $graphQLFragmentBody
    mutation RegisterUser(
        \$username: String!,
        \$email: String!,
        \$password: String!
    ){
  register(input: { username: \$username, email: \$email, password: \$password }) {
    ...UsersPermissionsLoginPayload
  }
}
''';

authors: SalahAdDin SanjiKir hadi-norouzi


text:
Update scala-library, scala-reflect to 2.12.16

Updates

org.scala-lang:scala-library
org.scala-lang:scala-reflect

from 2.12.15 to 2.12.16.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (2.12.15).
You might want to review and update them manually.
sbt

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-lang" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.scala-lang" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, old-version-remains, commit-count:1

Superseded by #451.

repo: zio/zio-actors


text:
Add metric filter, allow for label removal

Even though recording metrics is as good as free, unfortunately, publishing/collecting them is not. Small tweaks sometimes increase or decrease costs with a few thousand dollars per month. As libraries in the zio ecosystem adopt zio-metrics, more and more metrics will be recorded, even though some of these metrics will not be relevant for everybody.
To only publish/collect metrics that are needed, please allow for a metric filter.
Some cloud providers charge per metric (where a metric identification includes the labels). Therefore it would be great when the filter also allows for the removal of labels. This could be extended by allowing any change, including the name and measured value(s).
If this is already possible, documentation would be awesome!

I think this problem needs to be fixed in core. We need a notion of disposable metrics that last for a specified duration before being garbage collected. We ran into a problem with this by using metrics with a lot of tags that are only used once or twice and never used again. The problem is there is currently no way to prune these metrics out. Just adding what we are experiencing

authors: calvinlfer erikvanoosten

repo: zio/zio-metrics-connectors


text:
Multi-GPU train error

Hi I am facing a multi-gpu training problem and I have went through this repo and the original maskrcnn-benchmark repo and still can't solve it.
My problem is that when I train with One GPU, every thing is fine
But when I use multi-GPU(2,3,4), I got this error

How does this happen during multi-gpu training?  It seems to be a problem with the boxlist_op.py but I I don't think there's any fault in my code because it went GREAT when using one gpu.
Thanks A Lot !!!

What's your running command? It seems that the problem is in the inference time. Our codes only support one image for one gpu in the inference time.


text:
流程图问题

您好，请问论文中的流程图是用什么软件绘制的啊

blender

谢谢

@yuguangs  You can find our blender project file here.

authors: JiamingSuen f-sky yuguangs


text:
the best threshold

Do you know the best threshold for solving MIA problem?

The threshold depends on several factors, like the specific data and model, the specific method, etc. I don't think there is a "best" threshold.

authors: king-menin zjysteven

repo: zjysteven/mink-plus-plus


text:
Add canadian e-transfer payment integration

I would assume it would use much of the same circuits, would just have to change the regex and add an additional dkim key (or several for each bank) ?

Background
E-transfers are the most common form of money transfers in Canada. They are integrated with most Canadian banks are sent through email or text. Usually you are required to provide a receiver email/phone number, a password, a hint, and a message. Most people also have auto-deposit enabled which bypasses the need for a password.
Considerations

All deposit emails are received from notify@payments.interac.ca regardless of which banks were involved so we will only need to add a single DKIM key

There are a few emails we can use for proof generation:

auto-deposit confirmation sent to sender - The sender receives this email when their sent transaction was deposited to an account that supports auto-deposit
deposit confirmation (with password) sent to sender - The sender receives this email when the sent transaction was deposited by the receiver using a password
auto-deposit confirmation to receiver - The receiver receives this email when the sender's transfer was automatically deposited into their account

The easiest implementation would be to require that all users support auto-deposit to use the platform and create a circuit to verify email type (1). In the future we could add a feature where receivers who do not have auto-deposit enabled can communicate a password with senders but this would require a bit more work. Most users already have auto-deposit enabled as well.

There is a reference number for each e-transfer. This may be useful for accessing more information from the interac api however it is a closed api and requires developers to submit an application to get access.

Benefits

A nice part about e-transfers it that it seems like they are a lot less reversible than venmo transfers. (https://www.reddit.com/r/PersonalFinanceCanada/s/0xJutG94jF)

on a regular day once a transfer is completed, money deposited in the account it's final. But if the transfer is in progress, under review or haven't been accepted by the recipient, it can be reversed.
The only other situation where reversal occurs is if it was fraud and the bank is convinced that it is so. For eg, if 1000CAD is send from your RBC to a person who banks with RBC as fraud, the bank can make that money come back from the fraudsters account. Actually the bank pays you and then takes the money from the other persons account. If it's inter bank, ie RBC to TD, theoretically it's possible but a tedious process.

Issues
A big issue with e-transfer eml contents is that the receiver's "id" is not the same as their email or phone number, instead it is an identifier that can be arbitrarily chosen. This is problematic since a buyer could simply send an e-transfer to an account where the id matches the id of the seller. This could also create issues with verifying a deposit since there are 2 strings to verify that are decoupled: 1. The receiver email address which is not contained in the deposit email, 2. The receiver ID which can be decoupled from the email address and is not guaranteed unique.
This might be able to be solved with the Interac API + TLSNotary but will need to gain access in order to find out more.

doesn't seem possible without FI verification to interac API... thanks @omurovec for the work/research. gonna have to close till someone has a new idea for this.

authors: omurovec tantodefi


text:
用户表单数据校验

用户名长度 36
姓名长度 256
密码长度 32
电话号码、长度13
邮件校验、长度 256
编号长度 36
职位长度 256

电话号码长度是11

authors: molleahahs zlzforever

repo: zlzforever/WildGoose


text:
Lint to enforce no trailing zero byte on KeyUsage bitstrings

This lint addresses #681 where certificates were discovered whose KeyUsage encodings violated DER's requirement on minimal bitstring representations.
The following are interested parties in this issue:
@robplee
@aarongable
@CBonnell

Looks good to me. Not merging myself given that a few others were flagged in the original PR.

@aarongable
The example given is this thread does confuse me a bit, however I think that's because the binary for 80 is actually 01010000 so the four actually works here (I think).
May I construct an arbitrary value to test my understanding of this encoding?

Say that we have [03 02 01 04]

Visualizing the content to binary we have [03 02 01 (0000010X)]

But it should actually be [03 02 02 04]

And thus [03 02 01 (000001XX)]

Is this a correct example?

Now, I am thinking that this may actually be two lints, because if my understanding is correct then it is possible to be compliant with one requirement but not the other.

Say that we have [03 03 09 02 00]

Visualizing the content to binary we have [03 03 09 (0000001X) (XXXXXXXX)]

I believe that the above correctly encodes the "skippable" bits but violates the requirement of no trailing zero bytes.

The example given is this thread does confuse me a bit, however I think that's because the binary for 80 is actually 01010000 so the four actually works here (I think).

Sorry, I was using hexadecimal encoding for all those example bytes, but forgot to say so explicitly. So byte 80 is 10000000.

May I construct an arbitrary value to test my understanding of this encoding?
* Say that we have `[03 02 01 04]`

  * Visualizing the content to binary we have `[03 02 01 (0000010X)]`

* But it should actually be `[03 02 02 04]`

  * And thus `[03 02 02 (000001XX)]`

Is this a correct example?

Yep, completely agreed.

Now, I am thinking that this may actually be two lints, because if my understanding is correct then it is possible to be compliant with one requirement but not the other.
* Say that we have `[03 03 09 02 00]`

  * Visualizing the content to binary we have `[03 03 09 (0000001X) (XXXXXXXX)]`

I believe that the above correctly encodes the "skippable" bits but violates the requirement of no trailing zero bytes.

In this case simply detecting that the third byte (number of skipped bits) is greater than 7 is an immediate indicator that something is wrong: that byte is supposed to encode the number of unused bits up to the next byte boundary, so it should never be 8 or more.
I think you're right that detecting both mis-encodings is good. I don't have a strong opinion on whether it should be one or two lints.

So @aarongable I gave the other side of this coin a whack (counting and correcting unused bytes), however I think I've hit (what I have to assume is) an encoding that I'm hoping you can help me understand.
I'm getting over 6500 failures in the test corpus and they're all from the exact same KU ([3 2 5 128]) so I'm going to assume I'm misunderstanding something here.
Now, all of these certs have only one KU, digitalSignature, with this precise exact ASN1 value
Bytes (decimal): [3 2 5 128]
Binary: [00000011 00000010 00000101 10000000]
My lint, as written, is pointing out that 10000000 has seven trailing zeroes, however their encoding all denote that there are five unused bits. Given 6500 failures of the exact same input I'm going to assume that there is a gap in my understanding somewhere here.
      KeyUsage ::= BIT STRING {
           digitalSignature        (0),
           nonRepudiation          (1), -- recent editions of X.509 have
                                -- renamed this bit to contentCommitment
           keyEncipherment         (2),
           dataEncipherment        (3),
           keyAgreement            (4),
           keyCertSign             (5),
           cRLSign                 (6),
           encipherOnly            (7),
           decipherOnly            (8) }

Indeed, if my understanding is correct and a bitstring reads in a left-to-right evaluation, then 10000000 makes sense as the value for digitalSignature only. I just can't see why unused bits is 5 and not 7.

@christopher-henderson I believe that the encoding [3 2 5 128] is not the correct DER encoding of a KU value that asserts solely the digitalSignature bit, and your additional lint is correctly flagging this.
X.680 2002-07, clause 11.2.2 says:

Where ITU-T Rec. X.680 | ISO/IEC 8824-1, 21.7, applies, the bitstring shall have all trailing 0 bits removed before it is encoded.

Thus, it is clear that an encoder that encodes "5" as the initial octet but then asserts "128" as the following octet value has not correctly removed all trailing bits and has failed to DER encode the (named) BIT STRING value.

(Apologies, I'm on vacation this week but I can take a closer look next week.)
On first glance, I agree with Corey and with your lint: a KU of digitalSignature encoded as 0x03 0x02 0x05 0x80 is encoded in BER but not DER.

Thank you @aarongable and @CBonnell for the quick glance!
Given that it was over 6k new failures in the test corpus I had to assume that I was the problem :stuck_out_tongue:.
However, after a bit of digging through the zcrypto/x509 extension construction logic I did indeed find an old bug wherein the unused bits would always be 0. This was fixed in CL 168990043 and, indeed, the fixed Go stdlib agrees with our notions on what the encoding should be.
So I'm gonna reckon that these 6k+ failures are all simply certs generated by the same bug in OpenSSL or other such common provider.
I think I'm going to go ahead and merge this lint and then open up a new PR for encoding issue. Thank you again!

authors: CBonnell aarongable christopher-henderson zakird

repo: zmap/zlint


text:
Allow nested radio buttons which aren't part of the component's group.

For example, imagine have a form with 4 rows. Each row has a radio at the start e.g.
(+) Option Row 1
(  ) Option Row 2
(  ) Option Row 3
(  ) Option Row 4
Now you want to put a sub-option on one row
(+) Option Row 1
(  ) Option Row 2
(  ) Option Row 3 - Sub Option A ( ) Sub Option B (+)
(  ) Option Row 4
You want to vary the Sub Options independently from the main options.
Before this PR this isn't possible because the component renames every single radio between the tags.
This PR means it won't rename radios if a name is explicitly defined - so you can 'opt out' of the group.
Also - now the component will only react to change events on the radios with the correct name.
Another nice feature would be the ability to nest radio groups. I don't know enough about your code and React to implement this at present.

Hello there any thoughts on this PR?
I'm working off a fork right now. It would be good to work with the main repo.

sorry for merge so late，I will  focus on github more times。

:+1:

authors: Data-Meister zodiac-xl

repo: zodiac-xl/react-simple-radio-group


text:
Data validation with FormType.

Feature/issue40

Branch error for merging

repo: zohac/bilemo


text:
Out of office isn't working

Describe the bug
Out of office isn't working
To Reproduce
Steps to reproduce the behavior:

Enable "out of office" through webapp
Send myself an email from gmail.
check for new emails on gmail -> I don't get the "Out of office"-msg.

Expected behavior
I should get an e-mail on my gmail-account with my defined "out of office"- text.
Versions used:
WebApp:
4.0.2754+1623.1
Kopano Core:
10.0.5

output of dagent-log:
kopano_dagent_1     | Notice: Container is run read-only, skipping package installation. kopano_dagent_1     | If you want to have additional packages installed in the container either: kopano_dagent_1     | - build your own image with the packages already included kopano_dagent_1     | - switch the container to 'read_only: false' kopano_dagent_1     | May 22 15:02:21 Configure core service 'dagent' kopano_dagent_1     | Using Kopano Groupware Core: 10.0.5.2.9bfb891a3-0+102.1 kopano_dagent_1     | 2020/05/22 15:02:22 Ready: file:///var/lib/dbus/machine-id. kopano_dagent_1     | 2020/05/22 15:02:22 Ready: file:///etc/machine-id. kopano_dagent_1     | 2020/05/22 15:02:22 Ready: file:///var/run/kopano/server.sock. kopano_dagent_1     | 2020-05-22T15:02:22.155040: [kopano-dagent|T6] [=======] Starting kopano-dagent version 10.0.5 (pid 6 uid 0) (LMTP mode) kopano_dagent_1     | 2020-05-22T15:02:22.177482: [kopano-dagent|T6] [=======] Starting kopano-dagent version 10.0.5 (pid 6 uid 999) (LMTP mode) kopano_dagent_1     | 2020-05-22T15:11:06.171770: [kopano-dagent|T129] [warning] Unable to create temp file for out of office mail: Permission denied

permissions:
ls -ld /var/lib/kopano/autorespond/
drwxr-xr-x 2 kopano kopano

it already has permission set to 755 and "kopano"-user is the owner.
but when I set:
"chmod -R 755 /var/lib/kopano/autorespond/"
it's telling me:
chmod: changing permissions of '/var/lib/kopano/autorespond/': Read-only file system
so do I need to mount this path somewhere or do I need to disable "read-only" for this container?

drwxr-xr-x 2 kopano kopano

it does not really matter what it shows you as the set permissions, while a container is run read-only you won't be able to write anywhere that is not a mount (volume, bind or tmpfs).

Do the out of office messages work when you run it with the read-only mode disabled?
Are you certain that this is actually the path that it tries to write to?

If it does work, then it might be worthwhile either mounting it as tmpfs, or changing the configuration so that it uses /tmp for this.
Only downside of pointing it at a tmpfs would be that the time marker file is "lost" on restart meaning that another out of office message is sent for a given user, before the configured grace period has expired.
PR would be welcome.

I just checked docker-compose.yml and there it says it's using /tmp already:
KCCONF_DAGENT_TMP_PATH=/tmp/dagent/
but when I check the permissions there I get:
root@d201f367e6ba:/tmp# ls -ld ./dagent/
drwxr-xr-x 2 root root 40 Apr  8 11:46 /tmp/dagent/

as soon as I change owner of /tmp/dagent from root -> kopano it works. I don't see how to change this.
already tried the following inside "docker-compose.yml"
kopano_dagent:
tmpfs:
- /tmp:mode=777,uid=999,gid=999

I did a bit of testing on my own. Indeed the dagent folder in /tmp has the wrong permissions and because of that dagent fails to send the oof message.
A simple chown allows write access (so no need to modify the compose file for this).
But it then still does not work at a 100%, since auorespond creates a marker file in /var/lib/kopano by default. this only succeeds with read_only: false. Pointing this "senddb" to tmp should restore the ability to run the container read-only, but autorespond does not read its configuration from /tmp/kopano/autorespond.cfg.

Does not seem possible to override the autorespond.cfg at the moment https://jira.kopano.io/browse/KC-1777

While discussing the issue I came to the realisation that kc-1777 is not necessary, because this could be solved with a simple wrapper script. The PR #400 implements the wrapper and with it I can send and receive out of office message just fine.

nice :)

authors: fbartels theoneandonly-vector

repo: zokradonh/kopano-docker


text:
Slow index routes on large tables

RestPack uses Kaminari for pagination which counts all the rows of a table to determine the number of pages. It's a known issue of slow counts in PostgreSQL and Kaminari. I think we'll have to look at using an estimated count and submitting a PR for kaminari.
Started GET "/api/classifications" for 127.0.0.1 at 2014-08-05 11:31:38 +0100
Processing by Api::V1::ClassificationsController#index as JSON_API
  Classification Load (0.5ms)  SELECT  "classifications".* FROM "classifications"  LIMIT 20 OFFSET 0
   (24957.0ms)  SELECT COUNT(*) FROM "classifications"
Completed 200 OK in 25003ms (Views: 3.3ms | ActiveRecord: 24959.7ms)

Started GET "/api/classifications" for 127.0.0.1 at 2014-08-05 11:32:12 +0100
Processing by Api::V1::ClassificationsController#index as JSON_API
  Classification Load (0.7ms)  SELECT  "classifications".* FROM "classifications"  LIMIT 20 OFFSET 0
   (1362.8ms)  SELECT COUNT(*) FROM "classifications"
Completed 200 OK in 1372ms (Views: 2.7ms | ActiveRecord: 1363.5ms)

Started GET "/api/classifications" for 127.0.0.1 at 2014-08-05 11:41:00 +0100
Processing by Api::V1::ClassificationsController#index as JSON_API
  Classification Load (0.4ms)  SELECT  "classifications".* FROM "classifications"  LIMIT 20 OFFSET 0
   (1226.8ms)  SELECT COUNT(*) FROM "classifications"
Completed 200 OK in 1245ms (Views: 12.6ms | ActiveRecord: 1227.1ms)

This is already a problem with only 250,000 some odd subjects in production. Doing GET http://panoptes.zooniverse.org/api/subjects/ fairly consistently times out for me.

I was looking into this on Monday before getting sidetracked. Using rails logs and curl scripts it looked like the DB fetch times weren't the main problem (~1.1 secs) the views reported a small amount of time as well. I was pretty sure these were including count quereis so it might not be a paging related issue. Overall the first page was rendering in about 35s on my dev machine which is definately a problem.
I was about to benchmark the actual code around the controller index action to find out if it was the serializer that was causing problems (perhaps N+1 type queries there) but got sidetracked. This is on my list to tackle after the easter break but feel free to have a look if you want.

@camallen if this is still an issue (I don't really see these pop up in NewRelic in practice) then please reopen. Spring cleaning issues right now.

just adding this for reference, seems kaminari allows a page without a count scope now which is a neat way around this. https://github.com/kaminari/kaminari#paginating-without-issuing-select-count-query

authors: camallen edpaget marten

repo: zooniverse/Panoptes


text:
Unnecessary nested folders in Aggregate Export from PFE

Right now, the results within the export archive contain a folder called tmp and a folder within that called 988 (or whatever your project ID is). Within that, we have something like 512_Main_Workflow.
It makes sense that there would be one folder per workflow, so that third one is fine - but the tmp and project ID folders are unnecessary and shouldn't be created.

The tmp folder is definitely not useful and I'll upload code to fix in that in a second. I disagree about the project id folder being unnecessary so I'm going to leave that in.

OK. Given there is no way to generate a report for more than one project at a time, why is it useful? isn't the project id and/or name adequately conveyed by the tar file name?

I want to make sure that when people unzip things everything stays together. If you unzip the file in a directory with lots of other files (probably your Downloads directory), it help you keep track of things.

Most unzip programs will default to unzipping into a named directory following the name of the zip/tar. so you then end up with two nested directories.
I guess this may vary between Linux/OSX/Windows and depends what unzip method you use. Personally i don't think it's our job to anticipate people's unzip strategy.
If we really must keep this, we should at least include the project name as well as / instead of the ID. ID alone is not human-useful.

I agree with including the project name - see #147

Perfect - thanks!

No, tar -xzvf does not default to creating a new directory -- as an
example. I don't think we should rely on an external protocol to keep files
from overwriting or mixing contents from multiple projects in the same
directory; but I agree with removing ./tmp !
Another option would be to put the project_id and workflow_id in each of
the filenames. Then it wouldn't matter what the directory structure was, or
even if 2 projects had identical workflow content.
On Wed, Apr 27, 2016 at 1:02 PM, Alex Bowyer notifications@github.com
wrote:

Perfect - thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/zooniverse/aggregation/issues/145#issuecomment-215149101

authors: alexbfree ggdhines vrooje

repo: zooniverse/aggregation


text:
[WIP] Fix exports

Caesar's API for requesting data exports has changed which is the likely source of the issues in #148. This is a partial fix to the issue. I've updated the requests to use subject_reductions in the request payload as well as changed workflow_id to exportable_id in the store.
I'm unsure if anymore client side changes need to be made, but there are some possible server side bugs now being exposed now that the request is properly being made. See https://github.com/zooniverse/caesar/issues/859

Tested with staging caesar:

An export can be successfully initially requested with a pending response
Second poll is successful and stores the completed export state with options to download CSV directly or export to google drive
CSV download successful and can open in Numbers
Sending to Drive successful, link to open in google sheets successfully generated and worked.

repo: zooniverse/edu-api-front-end


text:
Renames JSON files to js files.

Renames JSON files to .js files to avoid problems with MathJax's cdnjs distribution.
Note
This should be temporary!

Tested with node, local and rawgit.

repo: zorkow/speech-rule-engine


text:
很多次在Reload JS之后语音识别服务会卡住

最近在测试的发现，如果我修改了JS想Reload看效果的时候，有时会出现 语音合成之后一直在等待回调OnResult但是一直没有回应。但是在后台把程序关掉之后再进去就可以了。想问问这个会影响到实际产品发布吗？或者说有没有什么解决办法呢？

我改成了这样：
private void onIatError(SpeechError error) {
WritableMap params = Arguments.createMap();
params.putString("text",error.toString());
params.putInt("errorCode",error.getErrorCode());
this.onJSEvent(getReactApplicationContext(),"onRecognizerError",params);
showTip(error.getPlainDescription(true));
}

Reload看效果的时候，有时会出现 语音合成之后一直在等待回调
这是讯飞的原因，不会影响产品发布。

repo: zphhhhh/react-native-speech-iflytek


text:
Travis updates

Bumped SDK version to 24.

Closing this, seems that Travis lint has some issues.


text:
Two secrets in same line do not get scanned

Describe the bug
If there are more than one secrets in single line, only one secret gets scanned. The other secrets do not get detected.
To Reproduce

Introduce more than one secrets in same line and scan with gitleaks

Expected behavior
All secrets in the same line should be detected.
Basic Info (please complete the following information):

OS: Amazon Linux
Gitleaks Version: v4.1.0

cc @zricethezav

@tdhavalikar could you run with the latest version and tell me if its still an issue. Thanks 👍

with v5.0.1 this shouldn't be an issue anymore. Reopen if it is.

authors: tdhavalikar zricethezav

repo: zricethezav/gitleaks


text:
Automatic binding Go types with JavaScript (helps with app architecture)

Currently, webview provides all the building blocks to make an awesome GUI app, but it doesn't tell you how to use them. Often it's good to have an un-opinionated library, but in this case it becomes a stumbling block for the new users.
I will follow up with a number of blog posts about best practices I've discovered so far. My biggest pain at the moment is to write JS wrappers for window.external.invoke_() and parse dynamic JSONs in Go to run certain methods in response.
I suggest adding WebView.Register(name string, obj interface{}) method that would register an arbitrary Go struct and expose it under the given name in the JS environment. All public methods will be accessible under their names, and all public fields should be updated automatically, too.
The way I expect it to work is by processing a Go type using reflection and generating some JS code to run invoke_(). Also it should wrap existing ExternalInvokeCallback function into another one that would handle these specific wrapped methods and delegate them to a Go type.
type Counter struct {
	Value int `json:"value"`
}

func (c *Counter) Add(n int) {
	c.Value = c.Value + n
}

func (c *Counter) Reset() {
	c.Value = 0
}

w.Register("counter", &Counter{})

counter.reset();
counter.add(1);
console.log(counter.value);

Done with the bindings in webview-bind branch. Working on some click counter example for Vue.js and/or React.js.

Getting very close. Had to add a well-known registry trick to force IE11 compatibility mode on Windows. Now most of the JS libraries can be normally injected via w.Eval().
Added examples that use Picodom and Vue.js. Both work fine.
But React is still a problem. Works fine on Linux and Mac, but fails to load on Windows (actually, Babel fails to load and it makes the whole React thing pretty much useless).

Ok, Babel works. But React is a huge mess. I ended up replacing it with Preact and keeping the JSX syntax. For the majority of the use cases that should be sufficient, I hope.
You may have a look at the counter-go example. By default it uses picodom.js, which is a featherweight 1kb reactive UI renderer. It's really small and fast, but JS code may look ugly to an unprepared eye.
If you generate and build it with -tags vue - you get a VueJS example. Same Go main code and controller, but different UI layer.
Finally, generating/building it with -tags react runs a Preact example with JSX syntax. You may use all ES6 features in the "frontend" code.
I like that despite using modern JS, none of the examples relies on Node.js or npm. It's all Go.
Also this example shows an interesting way of loading UI code into a webview without running a server. All "frontend" code is injected using w.Eval(), so there are no open HTTP ports, no web server and the app looks a bit more solid.

repo: zserge/webview


text:
Increase timeout for checking vyos ssh

for https://github.com/zstackio/issues/issues/2792

延长timeout后 重连没有出现问题

repo: zstackio/zstack


text:
zstack install ansible specify version

when I use zstack install manage node,the ansible version is 2.0.1.
then add host failed.
when install manage node i think need specify the ansible version.

Will included in 1.0.3 release.

authors: pingliu youyk

repo: zstackorg/zstack


text:
Syntax error react-fuzzy-search/src/components/FuzzySearch.js:21

Every time I try to use require("react-fuzzy-search"); I am getting the following error:
SyntaxError: /app/available_modules/1455788076000/react-fuzzy-search/src/components/FuzzySearch.js:21 var { field, searchField, delim, immutable, removePunctuation, useWebWorkers, ^ Unexpected token {

I have some similar:
FuzzySearch.js Line 85: Unexpected token <

^ I am facing the same issue.

authors: Artem-Schander Mossie93 dioptrique

repo: zsutton/React-Fuzzy-Search


text:
Type Cleanup

Description
Please include a summary of the change relevant motivation and context. Explicitly list any dependencies that are required for this change.
Issues:
closes #51
closes #50
Resolutions

[x] Deprecate BaseModel base class abstractions and merge features into StateModel
[x] Deprecate _T type generic in State context manager API for StateModel
[x] Added copyright lines on all core lib files.

Codecov Report
Base: 97.77% // Head: 97.69% // Decreases project coverage by -0.08% :warning:

Coverage data is based on head (d01fb5a) compared to base (4b8f247).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #52      +/-   ##
==========================================
- Coverage   97.77%   97.69%   -0.09%
==========================================
  Files           8        7       -1
  Lines         225      217       -8
  Branches       30       29       -1
==========================================
- Hits          220      212       -8
  Misses          4        4
  Partials        1        1

Impacted Files
Coverage Δ

myosin/exceptions/cache.py
100.00% <ø> (ø)

myosin/exceptions/state.py
100.00% <ø> (ø)

myosin/models/state.py
100.00% <100.00%> (ø)

myosin/state/state.py
96.05% <100.00%> (-0.06%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: codecov-commenter ztnel

repo: ztnel/myosin


text:
Quality Assurance

Steps to verify the bug

Choose any stream.
Scroll down to till you reach the end.
Tap the screen to invoke the write option.
It does not get invoked.
For getting it invoked you'll have to scroll bit up.

@anirudhjain75  I invested this bug report. If you go till the end of any stream and tap anywhere on the whitespace area (below the message feed that is not a part of the scroll bar area as you reported earlier, but is intentionally left as said by Tim) then yes, the write option is not invoked. But if you tap on the message feed area(even when you are at the end of a stream) the write option is invoked. There is no need to scroll up. Our concrete motive of having the ability to access writing feature at the end of any stream is satisfied. Maybe you want to re-frame this bug or find a new one.

repo: zulip/zulip-android


text:
Show logged-in/logged-out state in account picker.

AccountPickScreen shows all the accounts the app knows about, whether or not they're logged in.
Each item in the list should indicate if the account is logged in (it has a non-empty .apiKey) or logged out (it has an empty .apiKey).

can it be assign to me?

Thanks, @vaibhavs2!

repo: zulip/zulip-mobile


text:
lint: Redirect react-redux imports through our type-wrapper module

This lets us catch bugs where, for example, a selector passed to
useSelector doesn't return the type that the caller wants it to.
Now that we have a distinction between useSelector and
useGlobalSelector, it also lets us catch bugs where useSelector is
mentioned but useGlobalSelector is what's actually wanted.  For the
moment these are both purely type-wrappers of the upstream
useSelector, so such a bug would have no effect at runtime... but in
the future a per-account state will be a different actual object from
a global state, so one or both of them will not pass its selector the
same state object as the upstream useSelector would, and then such a
bug would likely cause a crash.

Thanks, LGTM! Merged.

authors: chrisbobbe gnprice


text:
Adds toggle show/hide password

Fixes : https://github.com/zulip/zulip-mobile/issues/531
Here is the demo.

I thought you intend to do it via the 'eye in input' pattern?
Or it can be just a show/hide text:
https://cdn.cloudfour.com/wp-content/uploads/2013/06/polar-hideshow.png

@borisyankov ZulipSwitch was looking perfect here , so I thought to have this. 😄

We can put an eye icon next to the switch or better put the icon inside the Input itself.

@nashvail Cool. How about Show/Hide Text? I think it would be better?

@saketkumar95 that's even better as long as it doesn't take up a lot of space on small devices

@nashvail Let me try both. Will update with the best one.

@borisyankov Just forgot to mention that I did the changes but didn't added the new demo. Checkout the new one.

I think the idea was to show the button inside the Input itself.

There is a issue with that. Suppose the password is bit long so typing it would overlap the Show/Hide text. Any solution for that?

Set paddingRight to a higher value.

@borisyankov Updated the branch.Sorry for the delay, Travelling right now. But I will try to overcome this breaks. :)

@borisyankov Updated!

Hello @saketkumar95, a Zulip maintainer reviewed this pull request over a week ago, but you haven't updated your pull request since. Please take a look at the requested changes and update your pull request accordingly.
Thank you for your valuable contributions to Zulip!

Let's finish up this PR?

Hello @saketkumar95, a Zulip maintainer reviewed this pull request over a week ago, but you haven't updated your pull request since. Please take a look at the requested changes and update your pull request accordingly.
Thank you for your valuable contributions to Zulip!

This was implemented in a different way, so closing this.

authors: borisyankov nashvail saketkumar95 zulipbot-test


text:
How to run this server in the windows?

I want run in windows, How to do that?

Zulip only supports running the server on Linux.  You can run a virtual machine on Windows and run Zulip on that platform if you like.

repo: zulip/zulip


text:
Presence and status in PMs in Recent conversations

In #20890, we added PMs to Recent conversations (a.k.a. Recent topics). To make the UI more complete and consistent with other parts of the app, we should:

[ ] For 1:1 PMs, show the user's presence status (e.g., "Idle") when hovering over the presence dot, just as we do in the user profile popover.
[ ] Show the user's status emoji after their name, in both 1:1 and group PMs. (Note that status emoji are currently not shown in group PMs in the left sidebar, but this is likely something we'll want to separately change.)

@amanagr I'm assigning this issue to you as an owner, but it's lower priority than your other release-goal issue, and I've asked @Riken-Shah if he'd be up for taking it on.

On it!

authors: Riken-Shah alya


text:
Consider raising the contrast for the STREAM and USERS sidebar captions

Feedback from someone checking out Zulip the first time:
"Aside; the inter-captions in the table of contents are really difficult to read due to the low contrast."
While these captions aren't intended to be super high-contrast, we should probably make them at least readable.

@zulipbot claim

authors: timabbott vaidap


text:
clean-repo: Also delete .pyc files with same timestamp as the .py file

I encountered a bug the other day which turned out to be fixed by deleting a certain .pyc file that had the same timestamp as the corresponding .py file but didn't actually match (caused, I think, by some rebase race).
This is a follow-up issue introduced by #5768.   Tagging it as a priority since the issue took a bit for me to debug, so I imagine most folks would just get confused and demoralized...

This problem is happening to others and pretty confusing, in that it's led to a few folks rebasing branches ending up with broken development environments.
@gnprice do you have time to fix this correctly, or should we revert #5768?

How big is the impact of #5760 which #5768 fixed?
The #5760 description says it accounts for 1/8 of the time in tools/test-js-with-casper 01. In a bit of testing just now on my machine, that command took 30.8s and 30.1s in two trials; and when I manually remove all .pyc files with the old version of the line replaced in #5768, it takes 29.8s and 30.4s.
... Oho, that's because #5768 actually didn't touch the part of tools/clean-repo that reaches Python 3's cache files -- and I'm running my dev environment in Python 3, so I was unconditionally clearing caches.
OK, but then even in Python 2 on master, it takes 26.8s and 27.1s; and after reverting #5768, 27.6s and 28.3s. So this appears to be costing maybe about a second, where running the shortest test file costs about 27s. If it was having a much bigger impact before, maybe something else changed to affect that.
At that level of impact, I think the work to diagnose how CPython is getting confused here and to then reliably fix it isn't worth it in at least the short term, and we should revert. Can you reproduce a much bigger impact now?

For me, it's the same 1s, but out of 8s.  Given the fact that 1s apparently doesn't scale, seems fine.

authors: gnprice timabbott


text:
Add run-dev.py test to Travis CI test suites

We recently had an issue where the Zulip tests passed but run-dev.py would immediately crash make it into master (fixed in 9c5f15e89b7aae1ae6cf91fc2f2313b4fb36f9f8).  We should add a small test to our CI to do a request against run-dev.py in the development server, to confirm run-dev.py is still working.

If we were to do this, I'd add this as another little script we run inside tools/travis/backend after the other tests are done., and how I'm imagining running the test is roughly this:

start run-dev.py in the background, wait for it to finish booting (there's a few ways I can imagine doing this; maybe the simplest is to parse its log file?)
Send a request or two (maybe one via the clients under api/, or if we can get it to work the scripts/nagios/check_send_message like we do in tools/travis/production-helper against a production install).
check for tracebacks in the run-dev.py log.

The benefit of this over our existing Casper tests is that the Casper tests run with different settings (e.g. RabbitMQ is turned off) from the main development environment, and that will likely be the case in some ways for a long time, so this is probably worth doing.
@umairwaheed are you interested in adding this?

sure

authors: timabbott umairwaheed


text:
portico: Update status of public archive to beta.

I left my changes as a commit on top to make it easier to see what changed; feel free to squash or otherwise integrate the changes when merging.

I made a few tweaks to this and then merged it, thanks @rishig!

authors: rishig timabbott


text:
docs: Explain SAML ACS url with SOCIAL_AUTH_SUBDOMAIN.

The docs weren't explaining well enough configuring the IdP for servers with multiple organizations and thus SOCIAL_AUTH_SUBDOMAIN.

Merged as the series of commits ending with 23e3ae121196b3fa3f3159af3a2feb27922939ef, thanks @mateuszmandera!

authors: mateuszmandera timabbott


text:
Add explicit instruction to clone Zulip Repository

Added instruction for cloning the proper repository in order to make the "Installing Zulip Development Environment" more explicit & clear.

Automated message from Dropbox CLA bot
@lunacodes, thanks for the pull request! It looks like you haven't yet signed the Dropbox CLA. Please sign it here and update the thread so we can consider merging your code.

Hi @smarx I've now signed the CLA - Thanks!!

Awesome, thanks for the contribution!  lgtm and merged!

authors: lunacodes smarx timabbott


text:
portico and help: Link to guide to choosing a team chat app.

Notes:

Not added to the bottom nav, but I think we don't necessarily need it there?

Merged, thanks @alya!

authors: alya timabbott


text:
Various improvements

Use session token to avoid duplicate messages
Use regex to validate answer
Minor tweeks

Closes #16

Pwoli Sanam ⭐🔥


text:
[Flat Design] Floating Label Patterns - Visually showed while a placeholder is hidden

Forwarded from => https://github.com/zurb/foundation-sites/issues/9645
Motivation => http://bradfrost.com/blog/post/float-label-pattern/
Codepen => http://codepen.io/IamManchanda/pen/zNBPwP

PS: Visually moved comes under the category of Material Design

@kball @rafibomb  i need your help here in my WIP Codepen
=> http://codepen.io/IamManchanda/pen/JNXerr
What i want is to call => data-floating-label with an ID with jquery
aka data-floating-label="name"
How can i go about it ??
My current JS is here (jquery)
$('[data-floating-label]').keyup(function(){
  $('.floating-label').addClass('typing');
  if( $(this).val().length == 0 ) {
      $('.floating-label').removeClass('typing');
  }
});

Here is my HTML ( see data-floating-label="name" )
<form class="contact-form">

    Full Name
    <input type="text" id="name" data-floating-label="name"/>

    Email
    <input type="text" id="email" data-floating-label="email"/>

    Message
    <textarea name="message" id="message" data-floating-label="email"></textarea>

Message to the user.

    <input type="submit" value="Send" class="button" />

</form>

I hope i am clear!

I think @rafibomb has a good and simple implementation of this somewhere...

What @rafibomb had was Material Design ( Visually moved )
=> http://foundation.zurb.com/building-blocks/blocks/form-floating-label.html
It was a different building block altogether
But yes if @rafibomb can help me here then it will be great!

ping @rafibomb  ... awaiting reply ??

Oh - yes we have this already -

http://foundation.zurb.com/building-blocks/blocks/form-floating-label.html
https://github.com/zurb/building-blocks/pull/164

authors: IamManchanda kball rafibomb

repo: zurb/building-blocks