text:
[BUG] Code doesn't compile with val in some cases

Describe the bug
Code with val don't compile with additional brackets. If change val to final var it compiles without errors
To Reproduce
private void df() {
        val typesForTesting = List.of("B", "R", "AR", "MB");
        val blaSetting = "bla-id.%s.%s.enabled";
        val someConstant = "GHJKJHG";
// works
        setSet("ahaha", "true");
// works
        setSet(("ahaha"), "true");
// works
        typesForTesting
                .forEach(type -> setSet("bla", "true"));
// works
        typesForTesting
                .forEach(type -> setSet(("bla"), "true"));
// works
        typesForTesting
                .forEach(type -> setSet(String.format(blaSetting, type, someConstant), "true"));

// doesn't work
        typesForTesting
                .forEach(type -> setSet((String.format(blaSetting, type, someConstant)), "true"));
    }

    private void setSet(String a, String b) {
    }

Stack trace
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project test-cases: Compilation failure
An exception has occurred in the compiler (11.0.1). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: Incorrect number of arguments; expected 2, found 0
	at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:162)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.visitApply(TransTypes.java:636)
	at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1634)
	at jdk.compiler/com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.translate(TransTypes.java:454)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.visitLambda(TransTypes.java:540)
	at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1807)
	at jdk.compiler/com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.translate(TransTypes.java:454)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.translateArgs(TransTypes.java:212)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.visitApply(TransTypes.java:639)
	at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1634)
	at jdk.compiler/com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.translate(TransTypes.java:454)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.visitExec(TransTypes.java:599)
	at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1452)
	at jdk.compiler/com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
	at jdk.compiler/com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:70)
	at jdk.compiler/com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:167)
	at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1020)
	at jdk.compiler/com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.translate(TransTypes.java:454)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.visitMethodDef(TransTypes.java:489)
	at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:866)
	at jdk.compiler/com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
	at jdk.compiler/com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:70)
	at jdk.compiler/com.sun.tools.javac.tree.TreeTranslator.visitClassDef(TreeTranslator.java:139)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.translateClass(TransTypes.java:918)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.visitClassDef(TransTypes.java:475)
	at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:774)
	at jdk.compiler/com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.translate(TransTypes.java:454)
	at jdk.compiler/com.sun.tools.javac.comp.TransTypes.translateTopLevelClass(TransTypes.java:942)
	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1553)
	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1432)
	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1516)
	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1432)
	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:973)
	at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:311)
	at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:170)
	at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
	at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:43)

Expected behavior
Code should be compiled without error
Version info (please complete the following information):

Lombok version 1.18.12
Platform MacOS 10.14.6
java --version
openjdk 11.0.1 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)

looks like https://github.com/rzwitserloot/lombok/issues/2460 pointed to the same problem


text:
composer not working

Can you check?

please check

fixed

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
rename docs/readme.md

I believe that the reason  we only see the readme page at https://s3alfisc.github.io/pyfixest/ is because github pages thinks that the README is the full structure of the website.
Looking at https://github.com/s3alfisc/pyfixest/tree/gh-pages the README is the html page. However, other gh-pages branches do not have this html:

https://github.com/NKeleher/statsframe/tree/gh-pages

https://github.com/rstudio/pins-python/tree/gh-pages

I've renamed docs/readme.md to docs/pyfixest.qmd.
Confirmed that the website renders locally. I also ran quartodoc to update the references pages.

The website now render properly 🥳Thanks for all your work on this, it will save me an incredible amount of time in the future!

source: gharchive/pull-request

license: MIT


text:
Added Login with sawolabs

Issue: #1549

Hello @I-ArchanaDash I've added the hacktoberfest-accepted label since you can't seem to find the icon for this button

Hello @I-ArchanaDash I've added the hacktoberfest-accepted label since you can't seem to find the icon for this button

Many Thanks, @shahednasser for adding this label. I'm trying to find some other methods for icon code, but am unable to get that yet.

authors: I-ArchanaDash shahednasser

repo: sButtons/sbuttons


text:
sql

有 建表语句嘛 大佬

嗯。。插入数据库其实是非必要操作，你可以将数据库相关的代码注释；
如果你真的需要的话可以使用：
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- Table structure for paper_info

DROP TABLE IF EXISTS paper_info;
CREATE TABLE paper_info  (
id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
metabolite varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '代谢物',
disease varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '疾病',
title varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '题目',
url varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '访问url',
abstractText text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '摘要',
mainSentence text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '主要判断的句子',
PRIMARY KEY (id) USING BTREE,
INDEX disease_idx(disease) USING BTREE COMMENT '疾病名的索引',
INDEX metabolite_idx(metabolite) USING BTREE COMMENT '代谢物的索引'
) ENGINE = InnoDB AUTO_INCREMENT = 1426 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;

好的 我试一试
------------------ 原始邮件 ------------------
发件人:                                                                                "sa1utyeggs/cnki-anisys_all-crawler"                                                                                @.>;
发送时间: 2022年3月30日(星期三) 中午11:06
@.>;
@.@.>;
主题: Re: [sa1utyeggs/cnki-anisys_all-crawler] sql (Issue #3)
嗯。。插入数据库其实是非必要操作，你可以将数据库相关的代码注释；
如果你真的需要的话可以使用：
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- Table structure for paper_info
DROP TABLE IF EXISTS paper_info;
CREATE TABLE paper_info  (
id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
metabolite varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '代谢物',
disease varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '疾病',
title varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '题目',
url varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '访问url',
abstractText text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '摘要',
mainSentence text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '主要判断的句子',
PRIMARY KEY (id) USING BTREE,
INDEX disease_idx(disease) USING BTREE COMMENT '疾病名的索引',
INDEX metabolite_idx(metabolite) USING BTREE COMMENT '代谢物的索引'
) ENGINE = InnoDB AUTO_INCREMENT = 1426 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


text:
"/bin/sh: 1: p4: not found"

oot@ubuntu-4gb-ash-1:/home/perforce-commit-discord-bot# python3 app.py
/bin/sh: 1: p4: not found
I'm wondering if you could help me with this?

wrong repo

repo: saadbruno/perforce-discord-webhook


text:
bug: opacity not working

What version of daisyUI are you using?
3.5.1
Describe your issue
For some reason opacity classes do not work on any of the elements on my page.
<progress class="progress grow ml-4 mt-7 transition-opacity opacity-0 bg-opacity-0 text-opacity-0" value="100" max="100"></progress>
theme: business
package.json
{
  "devDependencies": {
    "daisyui": "^3.5.1"
  },
  "dependencies": {
    "@tailwindcss/typography": "^0.5.9"
  }
}

What browsers are you seeing the problem on?
Chrome, macOS
Reproduction URL
No response

Is this still an issue if you disable daisyui plugin?

When disabling the daisyui plugin I don't have any stylesheets.
// tailwind.config.js

/** @type {import('tailwindcss').Config} */
module.exports = {
  devtool: "source-map",
  content: {
    files: ["*.html", "./src/**/*.rs"],
  },
  theme: {
    extend: {},
  },
  plugins: [
    require("@tailwindcss/typography"),
    require("daisyui"),
  ],
  daisyui: {
    themes: ["light", "business"],
  }
}

I am building on top of https://github.com/leptos-rs/leptos/tree/main/examples/tailwind_csr_trunk

I mean when you disable daisyUI, does the opacity class work? Is the <progress> element hidden or not?

When disabling it, opacity still has no effect.

Not an daisyui issue https://github.com/leptos-rs/leptos/issues/1737

authors: gitmalong saadeghi

repo: saadeghi/daisyui


text:
Load images with Ajax?

I'm trying to use lightslider loading images with Ajax and JQuery.
Can I do this?
Send a ajax peticion to a php script and load the response (Array of ) in the div to add the images to the slider?
Thanks.

How would data look like? I cannot imagine the data structure ...

I am retrieving images from backend in jquery ajax success. I need to bind the images into lightslider and display it. For this I initialised like shown above and refreshed in the success function. But slider is not working. I am using v1.1.3 version.

i'm appending multiple images to my lightslider element do i have to refresh with every append action ?

authors: AkhilLabGlo LuizPerez User0816 youssefboudaya

repo: sachinchoolur/lightslider


text:
Jquery mousedown/touchstart can't be triggered if item amount is not enough for dragging.

I'm facing a weird bug. If the item amount(or width ) is not enough for dragging, then mousedown/touchstart event won't be triggered. But, mousemove/touchmove and mouseup/touchend work fine. I'm using the option autoWidth:true and dymalically calculate the width to fill the container with 5 pieces of items. If the item amount less than 5, the item can't be dragged and then the bug happens.
My temporarily way to solve this is give the container one more invisible item and then everything works fine.

I'm having an exact issue (this is responsive/mobile related issue). How did you solve it (aside this nasty hack which I cannot use because sometimes I have only 1 item)?

If item amount is not enough, just append some invisible items before create lightslider object. I havn't found any other solution yet.

authors: coax neilliang


text:
Prevent Sliding while scrolling vertically on a touch device

Hi, the title says it all, can anyone fix this? Thanks in advance.

i cloned repo and changed lightslider.js


text:
Added Matrix Multiplication to C++ folder

Also modified the contributors.md file

@all-contributors add @bakuku22 for code


text:
chrome dinosours game

Describe the project you want to add with tech stack
chrome dinosours game
Expected behavior
I want to create chrome dinosours game which is monitoring with keyboard
Screenshots (optional)

Additional context (optional )
languages used html,css,javascript.

Is this repo not part of hacktoberfest or hacksquad??

Hey @sadanandpai can you assign me this issue want to work on it.

repo: sadanandpai/frontend-mini-challenges


text:
Submitting operation to Tensorflow

Hi!
Great work! More of a comment than an issue. Are you planning on submitting the operations for the CRFs to Tensorflow contrib? There is already a tensorflow.contrib.crf so perhaps this could go there?
Given CRFs are common in segmentation, I doubt you would have troubles convincing them to add the functionality.

Thanks for the suggestion! I'm planning to completed the GPU version of high_dim_filter op sometime soon. Once that's done I'll consider making everything more polished and submitting to Tensorflow contrib.

authors: fferroni sadeepj

license: mit

license_source: bigquery


text:
How to garrantee every pixels of training images are being used?

Based on your code it seems patches randomly are cropped from the input image, unlike the previous approaches in which all patches from training images are extracting with overlapping or without overlap, then the net is trained with these patches.  But in your approach, RGB input patches are randomly cropped from training images. Then, it seems that not every pixel in training images is being processed in one epoch.  are there some reasons?  how we can make sure that we used all pixels of images also overlapping can has effects on the results.

Hi,
I think you mean to use every pixel of each training image in the training data. We don't need to use every pixel, we need enough data for the model to be trained on.
If you want to use all the overlapping patches, then you can extract patches, save it and use accordingly.

authors: nahidq saeed-anwar

repo: saeed-anwar/DRLN


text:
Fixed billable error on the timesheet entries

Notion card
https://www.notion.so/6afc9500b2cc42af86be55f37894fb09?v=185bd45b9dc24dfcad9c57c07d32a7c0&p=719807ecfcce41d99860f66c04159422&pm=s
Summary

Updated the Badge UI of billable tags like billed, non billable and unbilled.
Fixed In edit mode, for the same timesheet entry the billable checkbox should remain unchecked . The user can again make the entry as billable.

Preview

https://www.loom.com/share/01d591e011794030a2f379583178df04
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Checklist:

[x] I have manually tested all workflows
[x] I have performed a self-review of my own code

@apoorv1316 Flaky test on cypress https://github.com/saeloun/miru-web/actions/runs/3092832700/jobs/5004546339
I am not sure about it. Please have a look
Please test the PR app regarding the bug fix.

@akhilgkrishnan I created Badge reusable styled component. I want to update alias.js file and I tried but config not working. As of now everything working fine but it's better if we add it to alias.js file for better imports in future.

@akhilgkrishnan Can you review ?

repo: saeloun/miru-web


text:
[EIP-1271] setSafeSettings + getOffChainSignature

What it solves
Partially resolves #969
How this PR fixes it
A new setSafeSettings method has been added to the SDK, built upon a new safe_setSettings RPC call, which accepts the following payload:
{
  offChainSigning: boolean
}

It returns the newly set SafeSettings in the UI.
The above toggles a flag for enabling/disabling off-chain signing inside the AppFrame. The signing response types have been adjusted to a union as they could return the following:
{
  safeTxHash: string // on-chain
} |
{
  messageHash: string // off-chain
}

The reasoning behind the addition of a new RPC call can be found here.

I have read the CLA Document and I hereby sign the CLA

I have read the CLA Document and I hereby sign the CLA

authors: iamacook schmanu

repo: safe-global/safe-apps-sdk


text:
Backmerge release 2.53.0

Release: https://github.com/safe-global/safe-config-service/releases/tag/v2.53.0

Pull Request Test Coverage Report for Build 4990073809

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.789%

Totals

Change from base Build 4934689344:
0.0%

Covered Lines:
945

Relevant Lines:
947

💛  - Coveralls

authors: coveralls fmrsabino

repo: safe-global/safe-config-service


text:
Safe.create throws all sorts of errors if you provide contract address that is not a safe

Description
Safe user reported the following problem:

I try to Safe.create() to an existing contract that is NOT a safe, it throws all sorts of connection issues instead of a nice error > message. Basically I need a way of checking if an address is a safe. It works fine if the provided address is an EOA

Environment

Safe Core SDK version: latest at the moment of writing the issue

Steps to reproduce
Call safe.create() with a contract address that is not a Safe
Expected result
A good error message and a method to check if an address is a safe
Additional context
[  Error: missing revert data in call exception (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":49,\"error\":{\"code\":-32000,\"message\":\"execution reverted\"}}"
,  "error":{"code":-32000},"requestBody":"{\"method\":\"eth_call\",\"params\":[{\"from\":\"0xb64ff7a4a33acdf48d97dab0d764afd0f6176882\",\"to\":\"0x9fde8abd74998779fe90383e74666ea7387d4bb1\",\"data\":\"0x2f54bf6e0000000
0  0000000000000000b64ff7a4a33acdf48d97dab0d764afd0f6176882\"},\"latest\"],\"id\":49,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://rinkeby.infura.io/v3/"}, data="0x", code=
C  ALL_EXCEPTION, version=providers/5.4.3)

  - index.js:199 Logger.makeError
    [synthetix]/[@ethersproject]/logger/lib/index.js:199:21

  - index.js:208 Logger.throwError
    [synthetix]/[@ethersproject]/logger/lib/index.js:208:20

  - json-rpc-provider.js:76 checkError
    [synthetix]/[@ethersproject]/providers/lib/json-rpc-provider.js:76:16

  - json-rpc-provider.js:633 JsonRpcProvider.<anonymous>
    [synthetix]/[@ethersproject]/providers/lib/json-rpc-provider.js:633:47

  - json-rpc-provider.js:48 step
    [synthetix]/[@ethersproject]/providers/lib/json-rpc-provider.js:48:23

  - json-rpc-provider.js:29 Object.throw
    [synthetix]/[@ethersproject]/providers/lib/json-rpc-provider.js:29:53

  - json-rpc-provider.js:21 rejected
    [synthetix]/[@ethersproject]/providers/lib/json-rpc-provider.js:21:65

  - task_queues.js:95 processTicksAndRejections
    internal/process/task_queues.js:95:5

Is this happening yet @germartinez ? The issue went through several status changes ...

repo: safe-global/safe-core-sdk


text:
Optimize collectibles DB query

Use a proper query instead of returning all elements and do the processing on Python
Related to https://github.com/safe-global/safe-pm/issues/89

Pull Request Test Coverage Report for Build 2576073649

7 of 7 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.006%) to 88.357%

Totals

Change from base Build 2575923952:
0.006%

Covered Lines:
5775

Relevant Lines:
6536

💛  - Coveralls

repo: safe-global/safe-transaction-service


text:
HTML of Chapter 1

The '20 Fundamental Principles of the SAFE Network' I think needs some work to make it more correct (for a machine) and layout correctly (for the human) -- have no idea if I've done this correctly or not, but added an update.
As I said in the comment "I'm not a fan of all the Line Breaks, as these types of formatting are better handled in CSS, but have left as is, because the rest of the document is formatted like that.", but we all have our individual styles ;)

Thanks. I'm making some updates to the primer at the moment to bring it up to date. I'll check out these layout suggestions for the next iteration once I'm done.

I'll check out these layout suggestions for the next iteration once I'm done.

As I said: I'd be happy to do the all the chapters if you'd like... but I'd be suggesting moving more of the layout to CSS and making the HTML nodes more machine readable (i.e. structure makes sense).


text:
🛑 Bhgavati Generators is down

In e5bd790, Bhgavati Generators (https://bhagvatigenerators.com) was down:

HTTP code: 500
Response time: 649 ms

Resolved: Bhgavati Generators is back up in 9cbc306.

repo: sahajananddigital/status


text:
how to delete the post

add a post：
pnpm new-post  xxx.md
please how to delete a post？

Manually delete?

I haven't tried it, but I think you can read draft articles on the WEBUI by manually adding md files. and
you can manually deleteing md files.
i think this FuwariSystems articles don't need to add flags to the database or settingfiles
On Linux, you can delete them with rm /src/content/posts/draft_test.md or something like that. I think you can also automate it by writing your own code.

/src/content/posts/draft_test.md
pnpm new-post
↓
package.json
"scripts": {
・・・
"new-post": "node scripts/new-post.js",
・・・
},
↓
/scripts/new-post.js
/* This is a script to create a new post markdown file with front-matter */
・・・
I haven't tried it, new-post.js seems to simply create md file
i think this FuwariSystems articles don't need to add flags to the database or settingfiles
so you can delete Manually or something

Just manually delete the markdown file. We don't need a command for it.
The purpose of the new-post command is to automatically create the Front-matter, so you don't need to copy it from elsewhere.

authors: Hongbusi anonyoroshi saicaca ziv314

repo: saicaca/fuwari


text:
VPN Connection on GCE Instance

OpenVPN configuration doesn't work on GCE VM Instance

Mirgrate OpenVPN Host to GCE instance
Replace vpn client file(.ovpn)
p.s. the server region moved to us-west which make clients get higher ping rate


text:
Question modbus address

Hello Martin,
I am very interested in you plugin. Could you please tell me what line is the modbus address of the inverter please ?
Because I think this is the reason why it is not working here. My solax address is 3, not 1.
Today I turnaround using solax modbus integration in Home Assistant. The inverter is connected with RS485 cable to a N510 USR in TCP.
Thank you for you kind help,
Best regards,
JFH

I have just added Unit ID as a standard parameter of the plugin. Please try it and let me know if it helps.
Martin

Oh no, in the end that was not the problem.
Though I see when connecting to the N510 : CONNECTED (2). So it connects but gets wrong answer I believe.
Here are domoticz logs :
2024-08-02 13:29:29.021 solax G4 Hybrid: Pushing 'onHeartbeatCallback' on to queue
2024-08-02 13:29:29.072 solax G4 Hybrid: Processing 'onHeartbeatCallback' message
2024-08-02 13:29:29.072 solax G4 Hybrid: Acquiring GIL for 'onHeartbeatCallback'
2024-08-02 13:29:29.072 solax G4 Hybrid: Calling message handler 'onHeartbeat' on 'module' type object.
2024-08-02 13:29:29.072 solax G4 Hybrid: onHeartbeat
2024-08-02 13:29:29.072 solax G4 Hybrid: Connecting to: 192.168.0.9:502
2024-08-02 13:29:32.074 solax G4 Hybrid: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)
2024-08-02 13:29:32.074 solax G4 Hybrid: Unable to read input registers.
2024-08-02 13:29:32.074 solax G4 Hybrid: Updating devices from Local array
2024-08-02 13:29:32.074 solax G4 Hybrid: Acquiring GIL for 'onHeartbeatCallback'
2024-08-02 13:29:39.001 solax G4 Hybrid: Pushing 'onHeartbeatCallback' on to queue
2024-08-02 13:29:39.051 solax G4 Hybrid: Processing 'onHeartbeatCallback' message
2024-08-02 13:29:39.052 solax G4 Hybrid: Acquiring GIL for 'onHeartbeatCallback'
2024-08-02 13:29:39.052 solax G4 Hybrid: Calling message handler 'onHeartbeat' on 'module' type object.
2024-08-02 13:29:39.052 solax G4 Hybrid: onHeartbeat
2024-08-02 13:29:39.052 solax G4 Hybrid: Connecting to: 192.168.0.9:502
2024-08-02 13:29:42.056 solax G4 Hybrid: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)
2024-08-02 13:29:42.057 solax G4 Hybrid: Unable to read input registers.
2024-08-02 13:29:42.057 solax G4 Hybrid: Updating devices from Local array
2024-08-02 13:29:42.057 solax G4 Hybrid: Acquiring GIL for 'onHeartbeatCallback'
2024-08-02 13:29:49.034 solax G4 Hybrid: Pushing 'onHeartbeatCallback' on to queue
2024-08-02 13:29:49.085 solax G4 Hybrid: Processing 'onHeartbeatCallback' message
2024-08-02 13:29:49.085 solax G4 Hybrid: Acquiring GIL for 'onHeartbeatCallback'
2024-08-02 13:29:49.085 solax G4 Hybrid: Calling message handler 'onHeartbeat' on 'module' type object.
2024-08-02 13:29:49.085 solax G4 Hybrid: onHeartbeat
2024-08-02 13:29:49.085 solax G4 Hybrid: Connecting to: 192.168.0.9:502
2024-08-02 13:29:52.090 solax G4 Hybrid: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)
2024-08-02 13:29:52.090 solax G4 Hybrid: Unable to read input registers.
2024-08-02 13:29:52.090 solax G4 Hybrid: Updating devices from Local array
2024-08-02 13:29:52.090 solax G4 Hybrid: Acquiring GIL for 'onHeartbeatCallback'
2024-08-02 13:29:59.024 solax G4 Hybrid: Pushing 'onHeartbeatCallback' on to queue
2024-08-02 13:29:59.074 solax G4 Hybrid: Processing 'onHeartbeatCallback' message
2024-08-02 13:29:59.074 solax G4 Hybrid: Acquiring GIL for 'onHeartbeatCallback'
2024-08-02 13:29:59.074 solax G4 Hybrid: Calling message handler 'onHeartbeat' on 'module' type object.
2024-08-02 13:29:59.074 solax G4 Hybrid: onHeartbeat
2024-08-02 13:29:59.074 solax G4 Hybrid: Connecting to: 192.168.0.9:502
2024-08-02 13:30:02.078 solax G4 Hybrid: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)
2024-08-02 13:30:02.079 solax G4 Hybrid: Unable to read input registers.
2024-08-02 13:30:02.079 solax G4 Hybrid: Updating devices from Local array
2024-08-02 13:30:02.079 solax G4 Hybrid: Acquiring GIL for 'onHeartbeatCallback'
2024-08-02 13:30:09.005 solax G4 Hybrid: Pushing 'onHeartbeatCallback' on to queue
2024-08-02 13:30:09.055 solax G4 Hybrid: Processing 'onHeartbeatCallback' message
2024-08-02 13:30:09.055 solax G4 Hybrid: Acquiring GIL for 'onHeartbeatCallback'
2024-08-02 13:30:09.055 solax G4 Hybrid: Calling message handler 'onHeartbeat' on 'module' type object.
2024-08-02 13:30:09.056 solax G4 Hybrid: onHeartbeat
2024-08-02 13:30:09.056 solax G4 Hybrid: Connecting to: 192.168.0.9:502
2024-08-02 13:30:12.060 solax G4 Hybrid: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)
2024-08-02 13:30:12.060 solax G4 Hybrid: Unable to read input registers.
2024-08-02 13:30:12.060 solax G4 Hybrid: Updating devices from Local array
2024-08-02 13:30:12.061 solax G4 Hybrid: Acquiring GIL for 'onHeartbeatCallback'
2024-08-02 13:30:19.039 solax G4 Hybrid: Pushing 'onHeartbeatCallback' on to queue
2024-08-02 13:30:19.090 solax G4 Hybrid: Processing 'onHeartbeatCallback' message
2024-08-02 13:30:19.090 solax G4 Hybrid: Acquiring GIL for 'onHeartbeatCallback'
2024-08-02 13:30:19.090 solax G4 Hybrid: Calling message handler 'onHeartbeat' on 'module' type object.
Thank you for your help,
JFH

In fact inverter itself doesn't provide Mod-bus over TCP. There is converter for it anyway. The difference is in the model. I am using Solax one which is USB dongle with WiFi in my case.
The question is which functions are supported and how it is implemented in your one.
I see two possible root causes of your issue:

Problem with timing on Mod-bus. I have fond this commend in documentation: "The query cycle is expected to be controlled at about 1 second." May be there is some problem in the reading via RS-485 in terms of timeouts.
For reading all the data from the inverter I am using possibility to read more value in one reading cycles. In one of early version I read up to 200 registres in one read. Finally I recognized it is not stable. Sometimes it produce input/output errors and sometimes it caused that dongle stop to answer ModBus at all. In current version the function is different. There is loop which repeats more read cycles with smaller amount of data. It looks to me stable now ...but is valid for original Solax dongle.
Try to change the number of bytes in one cycle. It is in function updateDevices. Look for "inputRegisters = self.getInputRegisters(0, 290, 10)". Currently it reads 100 registers and request 10 registers per one red function.

Hopefully it helps.
Martin

I am having exactly the same issue as @jfh75, Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received), although I am connected over the com/lcd port with a waveshare RS485 to RJ45 Ethernet Module
@saidlm So should we try to increase/decrease the number of registers in the getInputRegisters, as for example using inputRegisters = self.getInputRegisters(0, 290, 20)? What range of values can we work with? Can you share some relevant modbus documentation? In my experience the solax dongle is unreliable, specially if the inverter is to be used for a performance critical operation, such as charging an EV in a solar mode, as per my separate post. I'm happy to report here my findings with the waveshare but I need to have something to work with. Please can you spend some time giving me some guidance? Thanks.

Really tiring to learn how modbus works...hats down to you guys
I've installed openmodscan and have successfully been able to connect with the waveshare using a length (number of registers read) of 10 as you have defined in the plugin

However the client.read_input_registers on this line always fails with the above error, no matter what combination of steps that I use (10, 1, 20, 50, 100)... I've also tried a start address of 1 instead of 0, still no luck...

Hi, I've just created a PR which should fix this issue. Let me know if it works. I had to fiddle around quite a bit until I finally found this comment which did the trick.

Thanks,
Martin

authors: averter jfh75 saidlm

repo: saidlm/Domoticz-Solax-plugin


text:
Handle Chum repo adding/removing from GUI

As developers may want to swap between chum:testing and chum as well as to simplify use, let's add Chum repo management to GUI. This seems to be possible via SSU DBus API. Both, testing and regular repo should be supported, probably one in a time.
It would allow users to install Chum GUI, add repo from it and just use that. Maybe, haven't looked into official Store requirements, we can even submit GUI there.
Note that we would have to remove requirement for chum package from RPM SPEC then.

Good idea

authors: piggz rinigus

repo: sailfishos-chum/sailfishos-chum-gui


text:
ofono consumes too much power/CPU

As the title suggests. I don't know what triggers it exactly but i've seen it more than a few times. Also no idea if this is a port or SFOS bug.

Question: how was it measured or observed?

I use top in the terminal. And the phone is a bit warm when this happens.

One observation -regarding triggering it- is that it happens when i am in the car. Traveling "long" distances. Might not be the actual cause but i have to report it.

Let's see if you will observe it on 4.3. as well. I haven't seen this with ofono - would be hard to do anything about it.

Just want to report that it happens with 4.3 as well. Without me traveling distances. No idea if its related to some ofono related  messages i saw during the update.

I don't think it is related to update messages - I had them as well. And still no issue with ofono for me. I suspect you have to file an issue somewhere in the forum and ask for help. Seems to be more related to your network/device interaction than to the port specifically. But we cannot be sure in that either.

Closing this as it is mentioned in the official release notes that the issue has been fixed.

authors: ApostolosB rinigus

repo: sailfishos-sony-tama/main


text:
Bug in polar representation of complex number.

In polar representation the magnitude is multiplied with both cosine and sine terms. But in the output the magnitude is multiplied only with the cosine term.
Please assign this to me.

Go ahead
Deadline 1 April,2021 (11:59 PM IST)


text:
Comment flag in cell not displayed when there's a comment but no score

The comment for a particular cell is only retrieved from the service if the cell has a score.  This means the comment flag for an empty cell is not displayed even if a comment has been added for a particular grade.
To replicate:

Find a grade cell that has never had a score set before
In the cell's menu, select Edit Comment
Enter a comment and hit "Save Comment"
Cell will render with the speech bubble flag within the cell
Reset the tool via the breadcrumb
The cell no longer shows the speech bubble flag

@jeffpasch, @kyleblythe, @steveswinsburg - I just rediscovered this issue. Not sure it's a priority , but if we let it go perhaps we should hide the "Edit Comment" menu option until there's a grade entered?

Hi Payten. I believe we have at least some instructors that use gradebook for providing seating assignments for exams, using the comments field in a grade item without inputting an actual grade. Maybe other schools do similar things...so probably a good one to try to get in if possible.

Confirmed!

authors: jeffpasch kyleblythe payten

repo: sakaiproject/sakai


text:
Laravel 11.x Compatibility

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 11.x.
Before merging, you need to:

Checkout the l11-compatibility branch
Review all comments for additional changes
Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

:warning: Shift detected a dependency for the laravel/framework. Unless you have a special requirement for depending on the entire Laravel framework, it's recommended to add dependencies for the specific illuminate packages instead.

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.
To do so, temporarily add Shift's fork to the repositories property of your composer.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/larecipe.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:
{
    "require": {
        "binarytorch/larecipe": "dev-l11-compatibility",
    }
}

Finally, run: composer update

👋 Heyo @saleem-hadad, just wanted to check in on this?
I've installed the Shift branch on a project and it seems to work fine.

tagged with v2.7.0

authors: laravel-shift nikspyratos saleem-hadad

repo: saleem-hadad/larecipe


text:
Installation error due to conflicting dependencies

Problem Description:
Upon attempting to install the salesforce-lavis package, an error occurs due to conflicting dependencies between versions 1.0.0 and 1.0.2. This issue prevents successful installation of the package. The package successfully installs on Python v3.10
Steps to Reproduce:

Attempt to install salesforce-lavis package using any Python version (e.g., 3.8, 3.7).

Expected Behavior:
The package installation process should complete successfully without any conflicting dependency issues.
Additional Information:

The error persists below Python version 3.10, including 3.8 and 3.7.

Terminal output for reference:

did you figure this out?

I think it could be your machine. decord doesn't install on my Mac either. See https://github.com/dmlc/decord/issues/213

did you figure this out?

No, I instead went ahead with v3.10

See https://github.com/salesforce/LAVIS/issues/231#issuecomment-1547156558

Does anyone find a solution for that?

authors: FroCode devfacet jordaniscrosby kalseefer pmacca

repo: salesforce/LAVIS


text:
How can i see true prediction for my variable

Neither in Predict nor in Query Instance can I see my true prediction. I can only see the one predicted by model.
Is there a way to add it or this is not yet supported?

Hi, thanks for raising this question. In the "predict" figure, you can move your cursor over the blue bar, it will show the prediction value. We will update this visualization in the next minor release to make it more clear (currently it supports classification better than regression). If you find any other questions, we are happy to help.

repo: salesforce/OmniXAI


text:
getListingOffersBatch not implemented

Which API - Endpoint is your request about.
https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v0-reference#getlistingoffersbatch
A clear and concise description of what you want to happen.
Can this new endpoint be implemented? I see getItemOffersBatch (https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v0-reference#getitemoffersbatch) was implemented, but not the getListingOffersBatch endpoint.

Hi, will try to do some stuff on the weekend

Hello,
Has it already been implemented?
Thanks in advance
@DanielLanger @saleweaver

As of now, looks like still not implemented unfortunately. Maybe will be in the future... Thanks for the library anyway!

As of now, looks like still not implemented unfortunately. Maybe will be in the future... Thanks for the library anyway!

You do understand this is an open source library, right? Please create a PR and I'm happy to merge. Thanks anyway!

authors: DanielLanger MILORDY anykeyjunkie saleweaver

repo: saleweaver/python-amazon-sp-api


text:
Сайт paste1c.ru: показывать заголовок и описание у публикаций

Я создал публикацию и поделился с кем-нибудь ссылкой, например: https://paste1c.ru/2fo3j50eta6r
Тот кто откроет ссылку увидит только сам код 1С, но не увидит заголовка и описания моей публикации (заголовок лишь частично будет виден на вкладке браузера).
Сейчас видимо только через зеленую кнопку "Поделиться" можно посмотреть загловок и описание, но читатель (любой кому я отправил ссылку) вряд ли когда-либо додумается или захочет нажимать эту кнопку.
Как насчет отображения заголовка публикации и ее описания всегда вместе с кодом (т.е. сразу и на той же странице)?

Подумаю, как это лучше сделать

Не очень хочется добавлять "лишние" элементы и загромождать страницу, поэтому для просмотра описания добавил вот такую кнопку

Описание раскрывается при нажатии

Заголовок выводить пока не стал, если очень надо, добавлю

Предлагаю на кнопке разместить текст "Показать описание" и сделать его пунктирным подчеркиванием (типа как гиперссылка, но прерывистая, это будет сигнализировать о том что что-то при нажатии произойдет).
Без этого боюсь что неподготовленный пользователь, который впервые открывает сниппет на этом сайте, не догадается туда нажать...

Готово


text:
🛑 SCB - h6.scb.se/metadata/klassdb is down

In ec32a4b, SCB - h6.scb.se/metadata/klassdb (https://www.h6.scb.se/metadata/klassdb.aspx) was down:

HTTP code: 404
Response time: 897 ms

Resolved: SCB - h6.scb.se/metadata/klassdb is back up in 608a31e after 13 days, 9 hours, 34 minutes.


text:
[Question] How to increase app performance?

Hello,
I am currently creating a proof of concept application using this project. I managed to remove some components that I don't need such as Workflow as I am only using the Image map. But when I tried to test the performance in Lighthouse, it produced this result:

What do you think should I do to reduce loading time and app size?
Thanks a lot @salgum1114 for this amazing project!

@andrewoplas
ImageMapEditor contains font files, so the application size seems to be large. If I remove some of the components of the ImageMapEditor I wrote, I think the application size can be reduced.


text:
undo_row_changes needs to be called twice to work properly

When calling an undo_row_changes action, I would expect the changes to be undone on the first call, not the second one. See screencast below for an example:
Screencast from 2024-10-22 00-06-39.webm
For reference: I am using rc2 and the edit view I am operating in is auto-saving.

hi, can you attach a backup of the application or send it to the mail of my profile?

I'm on rc5 now, unfortunately the issue is still there as can be seen in the attached screencast.
https://github.com/user-attachments/assets/9c915579-5971-46c7-a523-c38a3e21217b

Is 'Belegungskategorie' of type string, with fixed options? Or is it a key to another table?
I believe 'Nationalität' is a foreign key, right?

The former and yes, Nationalität is a foreign key

repo: saltcorn/saltcorn


text:
Setting a field type to file and marking it as required causes the file upload ability to fail

Please see the image below. When you make a field with the type of 'File' and make the field required, when you try to upload the file and save the record in a view it causes the 'Unable to read key' error. Once I have access in the reproducing errors Tennant, I will create an example to help in replicating the error.

@ybotmallah please repeat problem in https://uat_reproducing_errors.saltcorn.com/

I have recreated the problem as requested, please see the link below. If you try uploading a file you will get "unable to read key", however if you remove the required checkbox from the file field in the table settings,  you are able to upload files.
https://uat_reproducing_errors.saltcorn.com/view/GH777%20-%20File%20Upload

fixed in #782

authors: AleksandrSokolov glutamate ybotmallah


text:
Build and package winexe for Redhat 6 & 7

Build and package winexe for Redhat 6 & 7 to allow for a convenience download from repo.saltstack.com

see https://github.com/saltstack/salt/issues/21256 for history on this

Closing this since handled by #21256 stated above

repo: saltstack/salt-pack


text:
fix(plasma-new-hope): Fix RC version for update

What/why Changed
https://github.com/salute-developers/plasma/actions/runs/6429682017/job/17459222721
You cannot publish over the previously published versions: 0.5.3-dev.0

:baby_chick: Download canary assets:

borderRadius

borderRadius_default_react-native--canary.800.6429912528.ts
borderRadius_plasma_b2c_react-native--canary.800.6429912528.ts
borderRadius_plasma_web_react-native--canary.800.6429912528.ts
borderRadius_sberHealth_react-native--canary.800.6429912528.ts
borderRadius_sbermarket_business_react-native--canary.800.6429912528.ts
borderRadius_sbermarket_metro_react-native--canary.800.6429912528.ts
borderRadius_sbermarket_react-native--canary.800.6429912528.ts
borderRadius_sbermarket_selgros_react-native--canary.800.6429912528.ts
borderRadius_sbermarket_wlbusiness_react-native--canary.800.6429912528.ts
borderRadius_sberonline_react-native--canary.800.6429912528.ts
borderRadius_sberprime_react-native--canary.800.6429912528.ts
borderRadius_stylesSalute_react-native--canary.800.6429912528.ts

color

color_default_ios-swift--canary.800.6429912528.swift
color_default_kotlin--canary.800.6429912528.kt
color_default_react-native--canary.800.6429912528.ts
color_default_xml--canary.800.6429912528.xml
color_plasma_b2c_ios-swift--canary.800.6429912528.swift
color_plasma_b2c_kotlin--canary.800.6429912528.kt
color_plasma_b2c_react-native--canary.800.6429912528.ts
color_plasma_b2c_xml--canary.800.6429912528.xml
color_plasma_web_ios-swift--canary.800.6429912528.swift
color_plasma_web_kotlin--canary.800.6429912528.kt
color_plasma_web_react-native--canary.800.6429912528.ts
color_plasma_web_xml--canary.800.6429912528.xml
color_sberHealth_ios-swift--canary.800.6429912528.swift
color_sberHealth_kotlin--canary.800.6429912528.kt
color_sberHealth_react-native--canary.800.6429912528.ts
color_sberHealth_xml--canary.800.6429912528.xml
color_sbermarket_business_ios-swift--canary.800.6429912528.swift
color_sbermarket_business_kotlin--canary.800.6429912528.kt
color_sbermarket_business_react-native--canary.800.6429912528.ts
color_sbermarket_business_xml--canary.800.6429912528.xml
color_sbermarket_ios-swift--canary.800.6429912528.swift
color_sbermarket_kotlin--canary.800.6429912528.kt
color_sbermarket_metro_ios-swift--canary.800.6429912528.swift
color_sbermarket_metro_kotlin--canary.800.6429912528.kt
color_sbermarket_metro_react-native--canary.800.6429912528.ts
color_sbermarket_metro_xml--canary.800.6429912528.xml
color_sbermarket_react-native--canary.800.6429912528.ts
color_sbermarket_selgros_ios-swift--canary.800.6429912528.swift
color_sbermarket_selgros_kotlin--canary.800.6429912528.kt
color_sbermarket_selgros_react-native--canary.800.6429912528.ts
color_sbermarket_selgros_xml--canary.800.6429912528.xml
color_sbermarket_wlbusiness_ios-swift--canary.800.6429912528.swift
color_sbermarket_wlbusiness_kotlin--canary.800.6429912528.kt
color_sbermarket_wlbusiness_react-native--canary.800.6429912528.ts
color_sbermarket_wlbusiness_xml--canary.800.6429912528.xml
color_sbermarket_xml--canary.800.6429912528.xml
color_sberonline_ios-swift--canary.800.6429912528.swift
color_sberonline_kotlin--canary.800.6429912528.kt
color_sberonline_react-native--canary.800.6429912528.ts
color_sberonline_xml--canary.800.6429912528.xml
color_sberprime_ios-swift--canary.800.6429912528.swift
color_sberprime_kotlin--canary.800.6429912528.kt
color_sberprime_react-native--canary.800.6429912528.ts
color_sberprime_xml--canary.800.6429912528.xml
color_stylesSalute_ios-swift--canary.800.6429912528.swift
color_stylesSalute_kotlin--canary.800.6429912528.kt
color_stylesSalute_react-native--canary.800.6429912528.ts
color_stylesSalute_xml--canary.800.6429912528.xml

shadow

shadow_default_react-native--canary.800.6429912528.ts
shadow_plasma_b2c_react-native--canary.800.6429912528.ts
shadow_plasma_web_react-native--canary.800.6429912528.ts
shadow_sberHealth_react-native--canary.800.6429912528.ts
shadow_sbermarket_business_react-native--canary.800.6429912528.ts
shadow_sbermarket_metro_react-native--canary.800.6429912528.ts
shadow_sbermarket_react-native--canary.800.6429912528.ts
shadow_sbermarket_selgros_react-native--canary.800.6429912528.ts
shadow_sbermarket_wlbusiness_react-native--canary.800.6429912528.ts
shadow_sberonline_react-native--canary.800.6429912528.ts
shadow_sberprime_react-native--canary.800.6429912528.ts
shadow_stylesSalute_react-native--canary.800.6429912528.ts

spacing

spacing_default_react-native--canary.800.6429912528.ts
spacing_plasma_b2c_react-native--canary.800.6429912528.ts
spacing_plasma_web_react-native--canary.800.6429912528.ts
spacing_sberHealth_react-native--canary.800.6429912528.ts
spacing_sbermarket_business_react-native--canary.800.6429912528.ts
spacing_sbermarket_metro_react-native--canary.800.6429912528.ts
spacing_sbermarket_react-native--canary.800.6429912528.ts
spacing_sbermarket_selgros_react-native--canary.800.6429912528.ts
spacing_sbermarket_wlbusiness_react-native--canary.800.6429912528.ts
spacing_sberonline_react-native--canary.800.6429912528.ts
spacing_sberprime_react-native--canary.800.6429912528.ts
spacing_stylesSalute_react-native--canary.800.6429912528.ts

typo

typo_mage_ios-swift--canary.800.6429912528.swift
typo_mage_kotlin--canary.800.6429912528.kt
typo_mage_react-native--canary.800.6429912528.ts
typo_plasma_ios-swift--canary.800.6429912528.swift
typo_plasma_kotlin--canary.800.6429912528.kt
typo_plasma_react-native--canary.800.6429912528.ts
typo_ruler_ios-swift--canary.800.6429912528.swift
typo_ruler_kotlin--canary.800.6429912528.kt
typo_ruler_react-native--canary.800.6429912528.ts
typo_sage_ios-swift--canary.800.6429912528.swift
typo_sage_kotlin--canary.800.6429912528.kt
typo_sage_react-native--canary.800.6429912528.ts
typo_sbermarket_ios-swift--canary.800.6429912528.swift
typo_sbermarket_kotlin--canary.800.6429912528.kt
typo_sbermarket_react-native--canary.800.6429912528.ts
typo_soulmate_ios-swift--canary.800.6429912528.swift
typo_soulmate_kotlin--canary.800.6429912528.kt
typo_soulmate_react-native--canary.800.6429912528.ts

📦 Published PR as canary version: Canary Versions

:sparkles: Test out this PR locally via:
npm install @salutejs/plasma-new-hope@0.5.4-canary.800.6429912528.0
# or
yarn add @salutejs/plasma-new-hope@0.5.4-canary.800.6429912528.0

Theme Builder app deployed!
http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-800/

Theme Builder app deployed!
http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-800/

Component performance testing
Result: 🟢 Success
Check out report in job artifacts!

Documentation preview deployed!
website: http://plasma.sberdevices.ru/pr/pr-800/
b2c storybook: http://plasma.sberdevices.ru/pr/pr-800/b2c-storybook/
web storybook: http://plasma.sberdevices.ru/pr/pr-800/web-storybook/
new-hope storybook: http://plasma.sberdevices.ru/pr/pr-800/new-hope-storybook/

🚀 This PR is included in version: @salutejs/plasma-b2c@1.236.3-dev.0, @salutejs/plasma-new-hope@0.5.4-dev.0, @salutejs/plasma-temple-docs@0.173.4-dev.0, @salutejs/plasma-ui-docs@0.222.4-dev.0, @salutejs/plasma-web-docs@0.190.3-dev.0, @salutejs/plasma-web@1.236.3-dev.0, @salutejs/plasma-website@0.198.3-dev.0 🚀

authors: Salute-Eva Yakutoc

repo: salute-developers/plasma


text:
Fix a few indention issues and typos

Hi,
Spotted a few indention issues, thought I should send a PR.
And thanks for the great PWA :)
Cheers 🍻

indentation should be fixed in #51

@Haroenv cool. closing this.

authors: Haroenv sallar


text:
Feature: Accepting skype contacts

Is there a way to do this? I know you had a way to mass accept on coeus ;)

Skype Web uses websockets to notify the client of new contact requests. I haven't had the time to look at the implementation for that yet. It strikes me odd though considering they have a perfectly good HTTP long poll system already that they would use something completely different for contacts

Yeah, doesn't surprise me though. It is Skype after all...

@samczsun is a scrub

@Evoltr is #1 kekker

authors: Evoltr SpongyBacon samczsun


text:
Character type

type Character = string & { length: 1 };

Doesn't appear to be possible with TS yet, and a newtype for this would be overkill. (Anyone feel free to necro this if the former changes or you disagree with the latter!)

repo: samhh/fp-ts-std


text:
Manage TimePeriod insanity by standardizing to startDate and endDate only

Instead of supporting startYear, startYearMonth, and startDate (who comes up with this stuff?), let's convert on reading to startDate, and the same for endFoo, and then support easy writing of fooDate, which is right now a read-only attribute of TimePeriod (i.e. to the pyecospold user fooDate should be attributes, not elements.

@cmutel we can definitely create a new method which writes simple elements that are basically a tag with text like this one. However, keeping the most detailed element only will introduce the interesting question of what to fill the missing data: for us when reading an existing element that is a startYear and for the user when they are writing and don't know any details other than the year.

@sami-m-g You are correct, but in this case I think it is more of a theoretical objection - the practical use of this data will probably be to use the year ranges in any case (based on my experience). But by storing the most detailed representation we don't lose information, and can always go more general if needed.
BTW, I am proposing simplifying the existing implementation, not just adding a new method, so that on reading we convert to fooDate, and on writing we always write fooDate. I am completely comfortable breaking two-way compatibility in this case, we desperately need to make this format as accessible as possible to less technically-inclined users.

@sami-m-g I am going to try one more time and then give up :) I would like to only have startDate and endDate, and on reading convert a Year or a YearMonth to a Date. The schema is wrong here, it complex without being powerful.

@cmutel - resolved by 2fd461d. Took a bit more time and hatred than expected to develop.
I hope this covers what you need, might be a good idea to refactor in the future.

authors: cmutel sami-m-g

repo: sami-m-g/pyecospold


text:
I can't use the player more than one time in one page

Im working on a project, and i implemented Plyr it works great, but when i use another video with  .......
it shows browsers default player.
Screenshot 1 where player is working
Screenshot 2 where player is not working
First player class
Second player class
How can i fix this?

Hey, you need to setup each player individually...
const players = Array.from(document.querySelectorAll('.player')).map(player => new Plyr(player, { /* options */ }));

Can anyone upload a simple demo html (for noobs) with properly embedded 2 or more player on the same page.
Thank you.

authors: ARHCG ariandemnika sampotts

repo: sampotts/plyr


text:
Duplicate files not removed when folder name isn't changed

Upon importing an album in the library directory with the final folder name, all files remain. I'm not entirely sure this is a bug, seeing as I should probably import folders from a different location, but I'm curious to get another opinion.

Yes, this is intended -- beets will never delete data unless you ask it to. The Getting Started guide has more recommendations about how to set up your directories.

authors: rjayasin sampsyo

repo: sampsyo/beets


text:
Use namespace and glob route for passthrough requests.

This syntax should correctly use pretender passthroughs for any url (not just root level). It also automatically applies the namespace defined in the server config.

did you see https://github.com/samselikoff/ember-cli-mirage/pull/133

@samselikoff I'll convert this to standard js, but oddly I didn't get the same failures #133 did on Travis. The only real difference I see is ^4.0.0 vs ^5.0.0 for babel.

Sorry if I wasn't clear earlier. I had opened something similar here: https://github.com/samselikoff/ember-cli-mirage/pull/134 although I think your implementation handles some different cases.
The problem is Pretender has a bug in it which is causing a phantomjs test to fail: see here. So we need to fix that before we merge in.
Once we do, I'm happy to merge this PR in and just kill mine.

here's the bug: https://github.com/trek/pretender/pull/74

Totally agree. This was an intermediate step to give your PR the proper catchall syntax and use of namespace while I tried to work out the pretender bug.
I'll check that out now, and combine into a new one.

I see so we needed the star *passthrough for it to work - is that the problem we ran into the other day?

Exactly, that was our issue.

PR opened to fix the Pretender bug: https://github.com/trek/pretender/pull/76

Closing in favor of #188.

authors: cball samselikoff

repo: samselikoff/ember-cli-mirage


text:
SSToolkit no longer required

Removed SSToolkit dependency. Fixes issue #5.

Trying to decide what to do here. I have a little app that I'll be working on soon that will use this. I'll most likely be using more of SSToolkit in SSMessagesViewController, so the approach of just copying pieces won't really scale. Also, it makes it more annoying to add SSMessagesViewController to your project if you already have SSToolkit in your project.
For now, I think if people don't want the SSToolkit dependency, they can just use your fork. Thanks for your work splitting it out. I definitely appreciate the help!

No worries... I'm getting ready to do a pretty big app where I'm going to attempt to add things like timestamp views and name indicators for multiple people in the chat... kind of like what Whatsapp does.

Well, I'm using it in a project and didn't need the other toolkit classes, so i figured i'd just remove yet ANOTHER submodule from my repos, lol.
I'm also planning on making a few improvements for detecting if the view is inside a UITabBarController. In my version, i have just hardcoded the offset to account for it, but I may just see what I can do to make it go automatically so it'll be more future-proof.
I'll help to the extend that I can... I'm by no means a wizard at this stuff, but people pay me to do it so that says something, i guess, lol.

Hey Sam, Just wanted to update you on a little work I did today. I added a "detail view" to the bubble cells with a customizable text color and backgrounds.
It defaults to not display if the text isn't set and then if it is, defaults the background to white and text to black. It also works for both SSMessageStyles!
Check out the commit here: https://github.com/markrickert/ssmessagesviewcontroller/commit/c15a5667a6d31af6938d8c853bcfcd60cbc1b716
Here's what it looks like with the orange of my application:

And here's my subclass implementation:
enjoy!
(and let me know if this stuff is useful to you at ALL, lol)
- (SSMessageStyle)messageStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
	Message *thisMessage = [_thisConversation objectAtIndex:indexPath.row];

  if (thisMessage.isYou)
		return SSMessageStyleRight;
  else
    return SSMessageStyleLeft;
}

- (NSString *)textForRowAtIndexPath:(NSIndexPath *)indexPath
{
	Message *thisMessage = [_thisConversation objectAtIndex:indexPath.row];
	return thisMessage.body;
}

- (NSString *)detailTextForRowAtIndexPath:(NSIndexPath *)indexPath
{
	if([self messageStyleForRowAtIndexPath:indexPath] == SSMessageStyleRight)
		return nil;

	Message *thisMessage = [_thisConversation objectAtIndex:indexPath.row];
	return thisMessage.user_name;
}

- (UIColor *)detailTextColorForRowAtIndexPath:(NSIndexPath *)indexPath
{
	return [UIColor whiteColor];
}

- (UIColor *)detailBackgroundColorForRowAtIndexPath:(NSIndexPath *)indexPath
{
	return kMyUglyOrangeColor; // <- this is a UIColor constant
}

authors: markrickert samsoffes

repo: samsoffes/ssmessagesviewcontroller


text:
Robot

What this PR does / why we need it:
robot now set up through repo settings instead of having to find some magical link.

repo: samsung-cnct/solas


text:
Add ticket type filter to event updates

Should be relatively simple.
3 hours work

Yes please.

When sending out event updates, you should be able to choice which people it goes to based on which type of ticket they purchased.

authors: roselukas samuelcolvin

repo: samuelcolvin/nosht


text:
Question:custom serializer on dict with the field not getting serialized

example:
class TestModel(pydantic.BaseModel):
    class Config:
        json_encoders = {
            dict: lambda x: json.dumps(urlencode(x))
        }

    a: dict

Basically the behavior I am expecting for is t = TestModel(a={"v1":"val"} and then t should be a: "v1%27Val" a urlencoded string. Is this possible? I may very well have a bug in my code above as well. Any hints appreciated.

Hi @kbhatia
You actually want to change directly the content of your object, not the .dict representation ?
If so you can just do
from pydantic import BaseModel, validator
import json
from urllib.parse import urlencode

class TestModel(BaseModel):
    a: str

    @validator('a', pre=True)
    def url_encode(cls, a):
        return json.dumps(urlencode(a))

Correct, but I also want to be able to take a urlencoded string as an input via parse_raw and convert it into TestModel. So for example,
a='"v1=val"'  TestModel.parse_raw(a) should become a={'v1': 'val'}
Would I be able to achive that with this as well? As far as I think, this will complain when I use parse_raw because it is requiring a dict through validator

You could go with something like
import json
from urllib.parse import urlencode, parse_qsl

from pydantic import BaseModel

def load(v) -> dict:
    if isinstance(v, str):
        query_str = json.loads(v)
        return dict(parse_qsl(query_str))
    return v

def dump(v, default):
    if isinstance(v, dict):
        return urlencode(v)
    return default(v)

class TestModel(BaseModel):
    __root__: dict

    class Config:
        json_loads = load
        json_dumps = dump

assert TestModel.parse_raw('"v1=val"').__root__ == {'v1': 'val'}
assert TestModel(__root__={'v1': 'val'}).__root__ == {'v1': 'val'}
assert TestModel(__root__={'v1': 'val'}).json() == 'v1=val'

Please do not hesitate to add all the expected assertions instead of just one.
It could help us suggesting the best suitable solution
Hope it helps

Thank you so much!

authors: PrettyWood kbhatia

repo: samuelcolvin/pydantic


text:
Add default in JSON Schema when const=True

Checks

[x] I added a descriptive title to this issue
[x] I have searched (google, github) for similar issues and couldn't find anything
[x] I have read and followed the docs and still think this is a bug

Bug
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
             pydantic version: 1.9.0
            pydantic compiled: True
                 install path: ...
               python version: 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
                     platform: Windows-10-10.0.22000-SP0
     optional deps. installed: ['typing-extensions']

When running this snippet of code:
from pydantic import BaseModel, Field

class MyModel(BaseModel):
    x: int = Field(default=0, const=True)

print(MyModel.schema_json(indent=2))

this is the result:
{
  "title": "MyModel",
  "type": "object",
  "properties": {
    "x": {
      "title": "X",
      "const": 0,
      "type": "integer"
    }
  }
}

I am having issues with some JSON Schema validator because of what I think is a subtle difference here - yes, we're setting x to be const=0, but we're not saying that the default is also zero, which leaves the field as not filled if one creates a default object. I don't think this is correct behaviour. I suggest deleting https://github.com/samuelcolvin/pydantic/blob/8997cc5961139dd2695761a33c06a66adbf1430a/pydantic/schema.py#L215 , which should fix the problem.

PR welcome, but you'll need to see if it breaks other tests and go back to where we originally added that line and see if there's a reason we did it that way.


text:
Nested Annotated List don't enforce requirements correctly.

Initial Checks

[X] I have searched GitHub for a duplicate issue and I'm sure this is something new
[X] I have searched Google & StackOverflow for a solution and couldn't find anything
[X] I have read and followed the docs and still think this is a bug
[X] I am confident that the issue is with pydantic  (not my code, or another library in the ecosystem like FastAPI or mypy)

Description
When using an Annotated[List[...], Field(...)] inside another one, only the outermost Field restrictions apply.
Example Code
from typing import List
from typing_extensions import Annotated
from pydantic import BaseModel, Field

B = Annotated[List[int], Field(min_items=2, max_items=2)]
C = Annotated[List[B], Field(min_items=1)]
D = Annotated[List[B], Field(max_items=3)]
E = Annotated[List[B], Field(min_items=3)]

class BB(BaseModel):
    b: B

class CC(BaseModel):
    c: C

class DD(BaseModel):
    d: D

class EE(BaseModel):
    e: E

BB(b=[0])  # Correctly fails, not enough items
BB(b=[0,1])  # No validation error, as expected
BB(b=[0,1,2]) # Correctly fails, too many items

CC(c=[[0]])  # Does not fail, but inner is too short
CC(c=[[0,1,2]])  # Does not fail, but inner is too long
CC(c=[[0,1],[0,1],[0,1]])  # No validation error, as expected

DD(d=[[0,1,2]])  # Does not fail, but inner is too long
DD(d=[[0,1,2,4]])  # Fails but for wrong reason, does not like that inner has more than 3

EE(e=[[0,1],[0,1],[0,1]])  # Fails but shouldn't, thinks inner are too short
EE(e=[[0,1,2],[0,1,2],[0,1,2]])  # Does not fail, but inner are too long

For CC.__annotations__ it correctly sees both there still:
typing_extensions.Annotated[
    typing.List[
        typing_extensions.Annotated[
            typing.List[int],
            FieldInfo(default=PydanticUndefined, min_items=2, max_items=2, extra={})
        ]
    ],
    FieldInfo(default=PydanticUndefined, min_items=1, extra={})
]

But the outer FieldInfo is applied to both lists.
Python, Pydantic & OS Version
pydantic version: 1.9.1
            pydantic compiled: True
                 install path: /home/erik/geojson-pydantic/venv/lib/python3.8/site-packages/pydantic
               python version: 3.8.10 (default, Jun 22 2022, 20:18:18)  [GCC 9.4.0]
                     platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29
     optional deps. installed: ['typing-extensions']

Affected Components

[ ] Compatibility between releases
[X] Data validation/parsing
[ ] Data serialization - .dict() and .json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[X] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - construct(), pickling, private attributes, ORM mode
[ ] Settings Management
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

Taking a look at the issue, it looks like it's the result of trying to annotate the constraints here
a conlist is created for both the inner and outer Annotated, both with the constraints of the outer field_info

@danielkatzan your here is code but I think you meant it to be a link. I can try my hand at a PR if you point me in the right direction.

@eseglem updated my comment with the link, not exactly sure how this should be treated
constrains seems to be computed recursively, for each sub types, but the constraints used are from the top level annotation

Confirmed, here's the simplest demo of the bug:
from typing import List
from typing_extensions import Annotated
from pydantic import BaseModel, Field

B = Annotated[List[int], Field(max_items=2)]

class CC(BaseModel):
    c: List[B]

CC(c=[[0, 1, 3]])

My instinct at this point (a few days from releasing the pre-release of v1.10) is that this will have to wait for V2.
But if someone can find a fix which doesn't break other things, is easy to reason about and has a small footprint; I'd be happy to review.

Hi @samuelcolvin
being trying to work on a solution, my idea is to modify the recursive go function, to accept a second field_info_ param, which will be passed around as is in all the recursive calls
except for the case where origin is Annotated here
In that case we need to calculate the origin FieldValue similarly to how it's done here, and pass that to the go call
This approach seems to fix the issue, but only works in case top level field as at least on constraint on it due to this if
trying to look for a workaround for that, if u have any ideas \ comments on my approach?
further more, while working on it, I tried to remove that if, and of course encountered some failing tests, which led me to potentially other issues
e.g.
the following fails
    class Model(BaseModel):
        tuple: Tuple[int] = Field(max_items=2)

   class Model(BaseModel):
        tuple: Tuple[int, ...] = Field(max_items=2)

seems to be because there is no field constraints for tuples, is there a specific reason for that? or was it simply not implemented yet?
this also fails
    class Model(BaseModel):
        tuple: Tuple[] = Field(max_items=1)

since trying to this line which evaluates to typing.Tuple[((),)]

I think something in the sense of this will work
    constraints = field_info.get_constraints()
    used_constraints: Set[str] = set()
    if constraints or _has_nested_constraints(annotation):
        annotation, used_constraints = get_annotation_with_constraints(annotation, field_info)

    ...

def _has_nested_constraints(annotation: Any) -> bool:
    if (
        is_literal_type(annotation)
        or isinstance(annotation, ForwardRef)
        or lenient_issubclass(annotation, (ConstrainedList, ConstrainedSet, ConstrainedFrozenSet))
    ):
        return False
    origin = get_origin(annotation)
    if origin is Annotated:
        field_infos = [arg for arg in get_args(annotation)[1:] if isinstance(arg, FieldInfo)]
        field_info = next(iter(field_infos), None)
        if field_info is None:
            return False
        return bool(field_info.get_constraints())
    args = get_args(annotation)
    return any(_has_nested_constraints(_annotation) for _annotation in args)

This is already solved on V2.
For v1, same message as stated previously applies:

... if someone can find a fix which doesn't break other things, is easy to reason about and has a small footprint; I'd be happy to review.

authors: Kludex danielkatzan eseglem samuelcolvin


text:
Erros na DLL quando em produção

Samuel,
nosso Devops encontrou algumas inconsistência na biblioteca.  Segue abaixo o que modificarão para que seja corrigido ok.
Depois podemos olhar uma forma de testes para que estes tipos de erros não aconteça, facilitando assim o devel mesmo, pois isto acaba atrasando todo o processo, pois sempre achamos que a culpa é da parte criadora e não da DLL pronta em si. O que acha da ideia?
Segue:
(1) - LINHAS 75,82 e 88 da classe EscreveCamposSintegraByAttribute do projeto SintegraBr.Common:
- Onde estava:
sb.Append(...).Replace(...).PadRight(sintegraCampoAttr.Tamanho, '0'));
- Foi substituído por ->
sb.Append(...).Replace(...).PadLeft(sintegraCampoAttr.Tamanho, '0'));

Esta alteração permite que os 0's que antes estavam sendo inseridos a direta para os campos 11, 12, 13, 14 e 15 (campos que representam valores numéricos e devem ser colocados na posição correta), agora são inseridos a esquerda (o que deve ser feito pois 0's a direita alteram no valor dos campos).

(2) - LINHA 97 da classe EscreveCamposSintegraByAttribute do projeto SintegraBr.Common:
- Onde estava:
if(isCode)sb.Append(propertyValue.ToString().PadRight(sintegraCampoAttr.Tamanho, ' '));
- Foi adicionado em seguida:
else if(isCode) sb.Append(' ');
- Esta alteração permite que os quando o parâmetro é código (representa caractere) porém não tem valor, é inserido um espaço em branco. Esta alteração trata o campo 10 do registro 50: Emitente da Nota Fiscal (P-próprio/T-terceiros) -> (MANUAL DO SINTEGRA) 11.1.9.2 No caso de Nota Fiscal, modelo 1 e 1-A (código 01), preencher com brancos.
- Antes quando enviava um espaço em branco (' ') o SintegraBR substituía por nenhum espaço (''), porém o tópico do manual afirma que deve ser substituído por ' '.
No registro54, o modelo não está na ordem correta. Ele está na ultima posição, enquanto deveria estar na terceira posição. Fizemos a seguinte alteração que resolveu o problema:
- Na classe Registro54 linha 24: Onde era ->  [SintegraCampos(3, "MODELO", "N", 2, 0, true)]
- Foi substituído por ->  [SintegraCampos(2, "MODELO", "N", 2, 0, true)]
- Foi alterada a ordem do modelo onde a nova ordem é igual a ordem de todos os campos do registro54 (ordem = 2).
- Logo, o modelo que antes estava sendo impresso no fim, agora está sendo impresso na posição correta.
Outra alteração foi na da quantidade de casas decimais para o campo quantidade.
Este campo precisa de 3 casas decimais, portanto o valor exibido no arquivo sintegra não tinha nenhuma casa decimal (embora o atributo casas decimais ser igual 3).
- Foi alterado o tipo do atributo quantidade da classe Registro54.
- Antes era do tipo long, passou a ser do tipo decimal (igual aos tipos dos outros atributos, como valorProduto, valorDesconto).
Algumas correções que fizemos em nosso sistema que na verdade creio que poderia ser tratado pela DLL, fica a dica:
(1) - O SintegraBR não trata cnpj null, portanto em nosso sistema gerador sintegra foi adicionado um cnpj zerado (assim como foi dito para fazer no manual do sintegra) antes que fosse enviado para o a função de escrita do SintegraBR.
(2) - O SintegraBR não refatora tamanho da inscrição estadual, portanto em nosso sistema gerador sintegra foi removido casas decimais que sobram a esquerda antes que fosse enviado para o a função de escrita do SintegraBR.
Em anexo envio ai .cs que foram alterados, facilitando ainda mais a atualização dos mesmos
SintegraBR(.Cs Modificados).zip

Entendi @eduprog, obrigado pelo feedback. Irei analisar esses casos e corrigir para evitar esse tipo de situações.
Com relação às validações e demais recursos que seriam interessantes ter na lib para agilizar esse processo, irei incluir tudo em outra lib para consumir as funções tanto no SintegraBr como no SPEDBr.
Essa lib já está criada e se chama FiscalBr, irei incluir nela as validações, lista de CFOPs, lista de CSTs e demais informações necessárias para que você não tenha que tratar todas essas informações no seu sistema.
Meus mais sinceros agradecimentos pelo aviso e irei corrigir com a maior brevidade possível.
Abraços.

@eduprog fiz as melhorias sugeridas, estão no commit d8f14415987c7e17d342be73965529ff6aa5a7bb.
A respeito dos testes, em breve estarei providenciando uma maneira simples de testar a lib.
Sobre as dicas que você deixou por último, vamos lá.

(1) - O SintegraBR não trata cnpj null, portanto em nosso sistema gerador sintegra foi adicionado um cnpj zerado (assim como foi dito para fazer no manual do sintegra) antes que fosse enviado para o a função de escrita do SintegraBR.

Neste caso de validações irei consumir os métodos de outra biblioteca (ainda está na fase embrionária), se chama , até agora só comecei a desenvolver um motor tributário que busca as informações de tributação média na API do IBPT (De Olho no Imposto).

(2) - O SintegraBR não refatora tamanho da inscrição estadual, portanto em nosso sistema gerador sintegra foi removido casas decimais que sobram a esquerda antes que fosse enviado para o a função de escrita do SintegraBR.

Para este caso terei que mexer em toda biblioteca alterando o tipo dos campos onde há a inscrição estadual para um tipo único e assim, verificar se existem somente números e eliminar os espaços. Por enquanto da forma que você fez irá resolver mas irei tratar isso direto na lib também.
Na biblioteca há o recurso de validação da I.E. também, não sei se você já o tinha visto. Em SintegraBr.Common.ValidarIe, pode-se validar consumindo o método da DLL do Sintegra(DllInscE32.dll).
Abraços

@samuelroliveira , show de bola então.
Vamos unindo a galera ai e melhorando o projeto a cada dia.

authors: eduprog samuelroliveira

repo: samuelroliveira/SINTEGRABr


text:
BUG - As developers we need to stop the constant warning messages for crons

Describe the bug
(WARN) /psg/webapp/crons/stop/production_monitoring_five_min.stop has remained untouched for 326.7 hours (stale lock file?)
RT Ticket Number
If applicable
To Reproduce
Steps to reproduce the behaviour:

Go to page '...'
Click on button '...'
See error

Expected behaviour
What was expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

Windows or Mac?
Browser Chrome, Firefox, Safari or other?
Browser version (use 'About' to look up)?

Additional context
Add any other context about the problem here.

Removing the stop file did not resolve issue
Cron involved was to send monitoring data to the old ganglia server

I've removed the cron that was generating the warning spam, but it will re-appear if we redeploy anything via the old deployment project.

authors: JamesGlover stevieing

repo: sanger/sequencescape


text:
Seq 937 allow n tags

Draft pull request as am fixing further bugs:

i5 only aliquots not flagged as 'library_index'

Also discovered a few other issues based on the use of the tagged? and untagged? methods.

Commit messages are quite detailed here, and govern each change.


text:
Add Folder resource

Add folder resource

This PR has been automatically marked as stale due to inactivity for 30 days. It will now be closed.

This PR is being closed due to inactivity for 30 days.

authors: sanifhimani wnm


text:
updated key features and table of contents in read.md file

Pull Request
Title

Description

Related Issues

Changes Made
Updated  table of content section and features and explain solution proposed  more elaborately.
Checklist

[ ] I have tested the changes locally
[ ] Documentation has been updated (if necessary)
[ ] Changes are backward-compatible

Screenshots (if applicable)

Additional Notes

I have updated the readme file successfully


text:
Added attribution data to the asset

Fixes #6

Hey @marekbrze, thanks for the contribution!
Were you able to test and verify this locally?
From what I gather – this shouldn't work as Sanity will only accept a set of whitelisted props in assetDocumentProps when calling props.onSelect.
Any other custom props (user in this case) will be omitted when props.onSelect is called (and when the image is subsequently uploaded). This is probably in place to ensure that users aren't uploading images to Sanity with huge custom payloads.

Hi, sorry I didn't check it that well. I assume that the only available option is to change what's in creditLine or ask Sanity to add "author" field to store at least the author full name.

No problem! Let's keep the issue open as it's still very much a reasonable ask.
I'll raise the possibility of custom asset sources being able to store more props with the team.

authors: marekbrze robinpyon


text:
Autofill on iOS (Chrome, Safari) causes infinite loop and crashes the application

When I try to autofill any value into phone input created via ReactInputMask, it crashes the application. This is the error we receive in console on production:
https://reactjs.org/docs/error-decoder.html/?invariant=185
This is how InputMask is called from parent:
<InputMask
        mask='(99) 999-99-99'
        type='tel'
        alwaysShowMask
        fontSize={fontSize}
        phoneChanged={phoneChanged}
        value={(getValue() || '').substring(code.length)}
        name='phone-suffix'
      />

And this is how it looks inside:
function InputMask(props) {
  const { mask, maskChar, formatChars, alwaysShowMask, fontSize, phoneChanged, name, ...rest } = props;

  return (
    <ReactInputMask
      mask={mask}
      maskChar={maskChar}
      formatChars={formatChars}
      alwaysShowMask={alwaysShowMask}
      onChange={phoneChanged}
      {...rest}
    >
      {(inputProps) => (
        <TextInput
          fontSize={fontSize}
          name={name}
          {...inputProps}
        />
      )}
    </ReactInputMask>
  );
}

Reproducible only on iOS

Faced the same issue in Chrome iOS
Credit card mask 9999 9999 9999 9999
Application crashes when autocomplete

@therealsqvad This is where I migrated instead and what solves the issue https://github.com/s-yadav/react-number-format

Was facing same issue and found that forgot to pass the value prop to the mask.

Just reproduced this same issue on iOS only.

Same thing here. I managed to fix the crash by passing maxLength={5} to the expiary date element. It should help you

authors: gkelley mfaheemakhtar ornakash therealsqvad zozich

repo: sanniassin/react-input-mask


text:
🛑 Nextcloud is down

In 9c46a6e, Nextcloud ($NEXTCLOUD_URL) was down:

HTTP code: 530
Response time: 89 ms

Resolved: Nextcloud is back up in 2c42929 after 46 minutes.

repo: sannidhyaroy/Uptime-Ryuu


text:
🛑 Immich is down

In 8e7d67c, Immich ($IMMICH_URL) was down:

HTTP code: 530
Response time: 87 ms

Resolved: Immich is back up in 96080fc after 1 hour, 42 minutes.


text:
Performance: Theme Causing Overheating on Apple Silicon Devices

Do you have the latest versions of Spicetify, Spotify and Lucid?

[X] I'm using the latest versions of Spicetify, Spotify and Lucid

Is there already an issue for your problem?

[X] I have checked older issues, open and closed

Is your problem definitely caused by the theme?

[X] I have checked the app behavior without the theme and it is different

Environment & Computer Info
- Spotify for macOS (Apple Silicon)
## 1.2.47.364.gf06e5cee
- Spicetify v2.38.4
- Theme: Lucid (Beta) / dark
- Extensions: adblock.js, bookmark.js, shuffle+.js, fullAlbumDate.js, volumePercentage.js, playlist-icons.js, copy-lyrics.js, lastfm.js, css-editor.js, beautiful-lyrics.mjs, theme.js
- Custom apps: marketplace, lyrics-plus
(Spotify installed via Spotify Website).
- Lucid intsalled via Spicetify Marketplace.

Description
This theme causes severe overheating for Apple Silicon devices;
When using this theme Spotify causes my MacBook to overheat to 100 degrees celsius (which isn't normal LMAO)
When I'm not using this theme, Spotify runs perfectly fine.
Screenshots

(when using Lucid)

Oh, I'm so sorry to hear the theme is performance intensive. We're trying to address these issues as soon as possible.

did you try Beta ? @kaer1a

Fixed these issues please update your theme

Oops idk about this issue much as i don't own a mac to test it myself
can you check that base spotify has this issue ?

Hey,
just adding myself here, although I'm on Windows. I also got ~20% CPU utilization when Spotify is in the foreground and rendering.
Is this due to a specific setting? I think I tested a few of them, but nothing really seems to help.

Nope it's the issue with Spotify try without theme it will use that amount of cpu also the theme takes about 5-8% for animated background, blue etc..

I will try to reduce the amount theme takes

repo: sanoojes/Spicetify-Lucid


text:
split gomockhandler.json into configuration file and mocks status file

from #59
Let's move source_checksum and checksum from gomockhandler.json to new 'mocks status file'.
with this

we can make configuration file more readable
we can allow user to edit configuration file directly

Hi! @sanposhiho
Does this Proposal maintain downward compatibility with existing projects?

Maybe yes.
I think we can achieve this without breaking existing projects. But it's possible we'll find out that we can't during development.
In order not to break existing projects, when we use mock status(= source_checksum and checksum) in each command,

basically, we check the new mocks status file and use mock status in it
and we also check source_checksum and checksum on gomockhandler.json
and if we find them on gomockhandler.json, we move them to the new mocks status file.
and then, delete them from gomockhandler.json.

This means that the gomockhandler.json is allowed to have source_checksum and checksum.
And when we release v2, we can delete source_checksum and checksum from gomockhandler.json.
wdyt?

I think we must consider some situations about Coexistence.
if it fouund new mock status file, but gomockhandler.json has mock status too.
Can it recognize the gomockhandler.json's mock status?
and if new mock status file and gomockhandler.json has different value of checksum as to same source.
what should it behave?
A person who somehow upgraded its version will run a new command without realizing that the json file has been split.

if new mock status file and gomockhandler.json has different value of checksum as to same source.
what should it behave?

The checksum on new mock status file should take precedence. And the one on gomockhandler.json will be deleted at that time.
Basically, we should consider backward compatibility when we increment minor versions, but don't always need to forward compatibility -- what happens when a project has both people using the old version and people using the new version.
Users on the same project should use the same version of tools ideally.

I understand.
So it always works to converge to a newer version of json. Including existing files.
Thanks for the reply.

repo: sanposhiho/gomockhandler


text:
rekall appears to be broken in v2018.16.0

See https://github.com/sans-dfir/sift/issues/247... Doesn't appear to be fixed.

Reopening #247

authors: ekristen johnmccash

repo: sans-dfir/sift


text:
Update README.md

Please merge this

Please merge this

Any specific reason for this change?


text:
This piece of logic is redundant

https://github.com/sanwishe/Stopwatch/blob/6905ec9640c55eb19a51e70d37551f52d8019479/stopwatch.go#L38

fixed

authors: guodongq sanwishe

repo: sanwishe/Stopwatch

license: WTFPL


text:
The download link for the dataset is invalid

Hello, I'm trying to run this project, but the link to download howmany-qa.zip is invalid. Can you provide it again?

Any news about this?

authors: LR-Tortoise ciampluca


text:
Unable to access subdomain after creating organization

I created a new organization and tried to access the page via subdomain, which I set it to be "testing". However it didn't seems to be working and I could not access it.
with the subdomain:

without subdomain:

I have checked mongodb and the organization is indeed created and I have tried restarting both the server and dashboard already but it didn't help.
Not sure is this the cause of issue but I am using AWS EC2 to create this project. What can I do to fix this?
Thanks in advance and I appreciate the good work you all have created!

Updated: Solved by adding the ip address to my computer's host file. Assigning both to the same ip address is fine.
E.g.
192.168.0.1 example.com
192.168.0.1 subdomain.example.com
then the whole url will be:
subdomain.example.com:45000

repo: sap-labs-france/ev-dashboard


text:
ascs failed install async

Hello,
I'm trying to install ASCS on nodes ascs_group and ERS on nodes ers_group - each group has one node here.
In the futur, I want to install a pacemaker cluster via the role sap_ha_pacemaker_cluster
My playbook:
- hosts: all
  become: true

  pre_tasks:
    - name: Manage repo
      ansible.builtin.include_tasks: tasks/repo.yml

  roles:
    - role: community.sap_install.sap_general_preconfigure
    - role: community.sap_install.sap_netweaver_preconfigure

- hosts: ascs_group
  become: true
  roles:
    - role: community.sap_install.sap_install_media_detect
    - role: community.sap_install.sap_swpm

- hosts: ers_group
  become: true
  roles:
    - role: community.sap_install.sap_install_media_detect
    - role: community.sap_install.sap_swpm

group_vars/all:
sap_netweaver_preconfigure_fail_if_not_enough_swap_space_configured: false

sap_install_media_detect_rar_package: 'linux-rar'

sap_install_media_detect_file_server_only: true

sap_general_preconfigure_system_roles_collection: 'redhat.rhel_system_roles'

sap_general_preconfigure_reboot_ok: true

sap_general_preconfigure_selinux_state: 'permissive'
selinux_state: "{{ sap_general_preconfigure_selinux_state }}"
selinux_policy: 'targeted'

sap_swpm_ansible_role_mode: 'default'
sap_swpm_generic: 'true'
sap_swpm_configure_tms: 'false'

# Detect SAP NetWeaver software
sap_install_media_detect_source_directory: "/data/bin"
sap_install_media_detect_source: remote_dir
sap_install_media_detect_swpm: true
sap_install_media_detect_hostagent: true
sap_install_media_detect_igs: true
sap_install_media_detect_kernel: true
sap_install_media_detect_webdisp: false

sap_global_password: NewPass$123

# Software
sap_swpm_software_path: /data/bin
sap_swpm_sapcar_path: /data/bin
sap_swpm_swpm_path: /data/bin

# NW Passwords
sap_swpm_master_password: "{{ sap_global_password }}"
sap_swpm_ddic_000_password: "{{ sap_global_password }}"

# NW Instance Parameters
sap_swpm_sid: ABC
sap_swpm_fqdn: "poc.cloud"

# Unix User ID
sap_swpm_sapadm_uid: '40641'
sap_swpm_sapsys_gid: '40645'
sap_swpm_sidadm_uid: '40706'

group_vars/ascs_group.yml
# Product ID for New Installation
sap_swpm_product_catalog_id: NW_ABAP_ASCS:S4HANA2022.CORE.HDB.ABAP

# HDB Passwords
sap_swpm_db_system_password: "{{ sap_global_password }}"
sap_swpm_db_systemdb_password: "{{ sap_global_password }}"
sap_swpm_db_schema_abap: "SAPHANADB"
sap_swpm_db_schema_abap_password: "{{ sap_global_password }}"
sap_swpm_db_sidadm_password: "{{ sap_global_password }}"

# NW Instance Parameters
sap_swpm_ascs_instance_nr: "01"
sap_swpm_ascs_instance_hostname: "s4h-ascs-01"
sap_swpm_virtual_hostname: "s4h-ascs-01"

# HDB Instance Parameters
sap_swpm_db_ip: "10.40.70.169"
sap_swpm_db_sid: SGH
sap_swpm_db_instance_nr: "00"

group_vars/ers_group.yml:
# Product ID for New Installation
sap_swpm_product_catalog_id: NW_ERS:S4HANA2022.CORE.HDB.ABAPHA

# NW Instance Parameters
sap_swpm_ers_instance_nr: "02"
sap_swpm_ers_instance_hostname: "s4h-ers-02"

sap_swpm_virtual_hostname: "s4h-ers-02"

When ansible try to install ascs I get the following error:
TASK [community.sap_install.sap_swpm : SAP SWPM -] *****************************15:15:48
changed: [ascs_node01]

TASK [community.sap_install.sap_swpm : SAP SWPM - Wait for sapinst process to exit, poll every 60 seconds] ***15:15:49
ok: [ascs_node01]

TASK [community.sap_install.sap_swpm : SAP SWPM - Verify if sapinst process finished successfully] ***15:15:49
fatal: [ascs_node01]: FAILED! =>
{
    "ansible_job_id": "j425252174395.46858",
    "changed": false,
    "failed_when_result": true,
    "finished": 0,
    "results_file": "/root/.ansible_async/j425252174395.46858",
    "started": 1,
    "stderr": "",
    "stderr_lines": [],
    "stdout": "",
    "stdout_lines": []
}

But in the same time, the sapinst.log file fills up - and I got the error ( I cleaned the directory before running ansible):
ERROR 2023-10-31 15:16:27.694 (root/sapinst) id=nw.directoryIsNotEmptyUnattended

DIR_CT_RUN=/usr/sap/ABC/SYS/exe/uc/linuxx86_64 is not empty.
DETAILS: An empty directory is required for a new SAP system installation. SOLUTION: Clean up the directory to be able to proceed.

ERROR 2023-10-31 15:16:27.700 (root/sapinst) id=modlib.jslib.caughtException errno=MUT-03025
Caught ESAPinstJSError in module call: nw.directoryIsNotEmptyUnattended.

ERROR 2023-10-31 15:16:27.793 (root/sapinst) id=controller.stepExecuted errno=FCO-00011
The step check_dir_ct_run with step key |NW_ABAP_ASCS|ind|ind|ind|ind|0|0|nw_check_dir_ct_run|ind|ind|ind|ind|dirctrun|0|check_dir_ct_run was executed with status ERROR (Last error reported by the step:
 DIR_CT_RUN=/usr/sap/ABC/SYS/exe/uc/linuxx86_64 is not empty. DETAILS: An empty directory is required for a new SAP system installation. SOLUTION: Clean up the directory to be able to proceed.
).

I'm missing a conf ?

@Baboulinet-33
Firstly, you are dynamically detecting the installation media using sap_install_media_detect Ansible Role but your Extravars file will override these with the incorrect variable values. It doesn't cause an error but isn't necessary:
# Software
sap_swpm_software_path: /data/bin
sap_swpm_sapcar_path: /data/bin
sap_swpm_swpm_path: /data/bin

The async Ansible Task (used because SSH connections can otherwise drop while waiting 1-3 hours for SAP SWPM to complete) immediately failing to poll is a new error and difficult to diagnose without access. It's possible SAP SWPM fails within 60 seconds, which might explain.
The actual SAP SWPM halting error is /usr/sap/<<SID>> from a previous run is causing the error. If the directory is clean before running, are you sure the NFS is mounted correctly for /usr/sap/* mount points when creating ASCS/ERS HA pair?

Drop me an email if you want to preview the advanced Playbooks to be released in the coming weeks; it might accelerate your current work.

Some news about the async problem, we don't change anything but today it works once in two.
Without the following var it doesn't work:
# Software
sap_swpm_software_path: /data/bin
sap_swpm_sapcar_path: /data/bin
sap_swpm_swpm_path: /data/bin

Some news here, with a pause between tasks TASK [community.sap_install.sap_swpm : SAP SWPM -] and task TASK [community.sap_install.sap_swpm : SAP SWPM - Wait for sapinst process to exit, poll every 60 seconds] it works


text:
Script and suggestion to implement naming convention

Hi guys,
this is my suggestion to implement our naming convention.
I think the following script should be called when creating new config files so they can be stored according to the naming convention. This means the respective scripts (make_conf_base.py and the other one) need to take model_name, db, machine_type and machine_id. The script just makes sure the name is not taken already.
def get_scaler_path(name_string):
  return os.path.join('models', name_string + '_scaler.gz')

def get_conf_path(name_string):
  return os.path.join('conf', 'conf_' + name_string + '.ini')

def get_conf_base_path(name_string):
  return os.path.join('conf', 'conf_base_' + name_string + '.ini')

def get_model_path(name_string):
  return os.path.join('models', name_string + '.hdf5')

def get_new_name_string(model_name, db, machine_type, machine_id):
  name_string = model_name +'_' + db +'_' + machine_type +'_' + machine_id

  # Check if new_name_string is new
  count = 1
  new_name_string = name_string

  while os.path.exists(get_scaler_path(new_name_string)):
    new_name_string = name_string + '_' + str(count)
    count += 1

  while os.path.exists(get_model_path(new_name_string)):
    new_name_string = name_string + '_' + str(count)
    count += 1

  while os.path.exists(get_conf_base_path(new_name_string)) or os.path.exists(get_conf_path(new_name_string)):
    new_name_string = name_string + '_' + str(count)
    count += 1

  return new_name_string

I suggest we use name_string as a consistent reference throughout the code. It must be initially chosen.
So instead of
base_conf = train.read_config('/gdrive/MyDrive/sound-of-failure/conf/conf_base.ini')
param_conf = train.read_config('/gdrive/MyDrive/sound-of-failure/conf/conf_VAE.ini')

we will use sth like
base_conf = train.read_config(name_string)
param_conf = train.read_config(name_string)

Do you think this could be a useful structure?

Hi Niklas,
There is already an issue opened for this discussion #8 . Could you please move this to a comments of that one and close this issue, so we can have everything in one place? Thanks.

authors: NikoHobel saraghsm

repo: saraghsm/sound-of-failure


text:
Add function to turn pins off

Currently there is no function to release pins. Something like the following function would work:
releasePin: function(pinNumber) {
    writeCommand("release " + pinNumber);
}

It seems like this issues has been resolved by pull request #3. Shouldn't this be closed?

correct. thanks @M-Roberts

authors: M-Roberts harveyxia sarfata


text:
🛑 Sarp Aykent is down

In 748ab06, Sarp Aykent (https://www.sarpaykent.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sarp Aykent is back up in fadba9e after 17 minutes.

repo: sarpaykent/uptime


text:
Failure UART Flashing ECW5211

Hello, I am attempting to recover an ECW5211-L AP from a failed OpenWRT  install. I am following the Replica documentation on UART flashing, however when the generic-edgecore_ecw5211-initramfs-fit-uImage.itb boots and loads the MSM serial device the UART serial connection appears to hang. When I proceed to flashing the replica image I am unable to SSH or ping 192.168.1.1 while connected to Eth2. I am connecting to the serial interface with a Bus Pirate v3.5 in transparent UART bridge mode, and using dnsmasq as the TFTP server. I also attempted to recover the AP using an initramfs image from OpenWRT but experienced the same issue. Do you have any suggestions on how to prevent the initramfs image from hanging, or a recommended UART serial device?

Hm, this is a really weird one in that it hangs in the middle of a print.
I havent seen this one on IPQ40xx boards so far, let me build you a custom image with the kernel using earlycon to print messages instead of the proper driver.

repo: sartura/replica


text:
setGestureShouldRecognizeTouchBlock is not supported

this function is part of orig objectC impl, but not in swift....

Hi, this is function is implemented via the gestureShouldRecognizeTouchBlock property on the DrawerController.

Yes, works as:
centerContainer?.gestureShouldRecognizeTouchBlock = checkGestureFunc
private func checkGestureFunc(drawer: DrawerController, gesReg: UIGestureRecognizer, touch: UITouch) -> Bool
{
let point = gesReg.locationInView(drawer.view)
print (point.x)
return true
}
Problem I have is setting centerviewer to pageviewcontroller; not sure if this can ever be supported. When sliding left, the pageviewer reacts, but not the drawercontroller to the left....

authors: maltebaumann oeresundsgruppen

repo: sascha/DrawerController


text:
support for alpha channel in color tweens?

RGBA/ HSLA ? Or just RGB / HSL ?

@hartbeatnt As far as I know, alpha channel is supported in color tweening. If source/destination value have different alpha channel value - the output is going to be rgba. Not sure about HSLA support btw.
But in anyway, contributions are welcome
/ping @IlyaSenko


text:
ability to manage folders from CLI

We need to import the ability to create / delete folders using the cli
sample commands
sasjs createfolder /Public/folder

sasjs deletefolder /Public/folder

sasjs movefolder /Public/source/childFolder /Public/parentTarget

we should also provide target to gain an access token:
sasjs createfolder /Public/folder -t target

Suggestion:

-t or --target should definitely be an optional param (leaving it out would take the first target)
I like the suggestion of maintaining the sasjs <action> <verb> however we shouldn't use fs as that implies a filesystem change.  In this case we are updating the Viya (and in the future, metadata) logical folder tree (doesn't impact any physical directories).
So perhaps:
sasjs folder create /Public/folder
sasjs folder delete /Public/folder
sasjs folder move /Public/source/childFolder /Public/parentTarget

All of which can have an optional -t parameter

:tada: This issue has been resolved in version 1.13.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: YuryShkoda allanbowe krishna-acondy

repo: sasjs/cli


text:
Add boolean script support

This adds the missing ability to use booleans as arguments and returns from custom functions

Looks good, but i'm wondering why the CI did not check this...

Looking forward to having this one merged in as well :+1:

@bolandrm Is there anything I can do to address this, or to push the CI into action?

@TeaSeaLancs rebasing and pushing back up should probably trigger the CI

There we go :)

Thanks!

Hey Ryan,
Do you have any kind of ETA on when a version with this fix might be released? No pressure, we're just running into some trouble with our build processes using a forked version from github as opposed to the actual gem :)
Cheers,
Matt.

Matt - I just released 1.9.0.  Cheers.

You are a gentleman and a scholar, thanks so much :)

authors: TeaSeaLancs bolandrm pedropereira

repo: sass/sassc-ruby