text:
Filter by array?

Guys, I have a Message model which has a Tags (array) property - say I want to pull out all messages with the "test" tag - how would I do this through the REST API?
Or if that's not possible, and I need to create a specialised endpoint, how would I achieve this using the query language?

No one able to help?

if you have a many to many relation on message and tag,you could do something like that:
tag.findOne(label: 'test').populate('messages');

Unfortunately this is just an array property on the model...
I'm a bit surprised this hasn't been considered to be honest
On Tue, 1 Sep 2015 at 13:49 Alexandre Tiertant notifications@github.com
wrote:

if you have a many to many relation on message and tag,you could do
something like that:
tag.findOne(label: 'test').populate('messages');
—
Reply to this email directly or view it on GitHub
https://github.com/balderdashy/waterline/issues/1128#issuecomment-136704768
.

give your model definition please

//Message.js:
module.exports = {
  connection: 'somePostgresqlServer',
  attributes: {
    user: {
      model: 'user'
    },
    campsite: {
      model: 'campsite'
    },
    message: {
      type: 'string'
    },
    originatingIp: {
      type: 'string'
    },
    userAgent: {
      type: 'string'
    },
    comments: {
			collection: 'comment',
			via: 'message'
		},
    tags: {
      type: 'array'
    }
  },
  processTags: function(message){
    var m = message.message.match(/#\w+/g);
    message.tags = m;
    return message;
  },
  beforeCreate: function(newlyInsertedRecord, cb){
    newlyInsertedRecord = this.processTags(newlyInsertedRecord);
    cb();
  }
};

//Comment.js
module.exports = {
  connection: 'somePostgresqlServer',
  attributes: {
    comment: {
      type: 'string'
    },
    originatingIp: {
      type: 'string'
    },
    userAgent: {
      type: 'string'
    },
    user: {
      model: 'user'
    },
    message: {
      model: 'message'
    },
    tags: {
      type: 'array'
    }
  },
  processTags: function(record){
    var m = record.comment.match(/#\w+/g);
    record.tags = m;
    return record;
  },
  beforeUpdate: function(newlyInsertedRecord, cb) {
    newlyInsertedRecord = this.processTags(newlyInsertedRecord);
    cb();
  },
  beforeCreate: function(newlyInsertedRecord, cb){
    newlyInsertedRecord = this.processTags(newlyInsertedRecord);
    cb();
  }
};

We could turn this into a feature request.  If anyone wants to implement it on the adapters, which would be non-trivial in most cases, that would be great.  You can try using contains: 'test' for your criteria, but to ensure that it works, you'd have to become familiar with your adapter's implementation of contains.  Which adapter are you using?

postgres adapter
On Tue, 1 Sep 2015 at 13:58 devin ivy notifications@github.com wrote:

We could turn this into a feature request. If anyone wants to implement it
on the adapters, which would be non-trivial in most cases, that would be
great. You can try using contains: 'test' for your criteria, but to
ensure that it works, you'd have to become familiar with your adapter's
implementation of contains. Which adapter are you using?
—
Reply to this email directly or view it on GitHub
https://github.com/balderdashy/waterline/issues/1128#issuecomment-136708638
.

@devinivy don't know how array and json are implement in waterline but if they are just specific string,it could be implement directly in waterline

It comes into the db as "['string, 'string']" if that helps?
I.e. the field materializes as a string - the value a serialized JSON string

@wayne-o the question is who stringify the array : the adapter or waterline ...

The adapters are responsible for serializing the json, then waterline will attempt to unserialize it from a string if the adapter doesn't do so.

@wayne-o an other solution would be to add a other string attibute with a columnName that point to the array column and use string contain value with quote.

Would I be better off using a Tag table or just having the tags as a string?
On Tue, 1 Sep 2015 at 14:22 Alexandre Tiertant notifications@github.com
wrote:

@wayne-o https://github.com/wayne-o an other solution would be to add a
other string attibute with a columnName that point to the array column and
use string contain value with quote.
—
Reply to this email directly or view it on GitHub
https://github.com/balderdashy/waterline/issues/1128#issuecomment-136718731
.

A tag table is more complex but more flexible.  It will work better for the types of queries you're trying to make if you're going to use a relational database like postgres that doesn't have the idea of a "tag" built into it.

it depends of what you need in your aplication,i think using a tag table with unique label is better.

OK - I will look to using a table :/
On Tue, 1 Sep 2015 at 14:31 Alexandre Tiertant notifications@github.com
wrote:

it depends of what you need in your aplication,i think using a tag table
with unique label is better.
—
Reply to this email directly or view it on GitHub
https://github.com/balderdashy/waterline/issues/1128#issuecomment-136723120
.

authors: atiertant devinivy wayne-o

repo: balderdashy/waterline


text:
can't inject into Ryujinx

Ryujinx uses opengl 3.3 and others on nvidia can inject just fine any help is wanted

That error message indicates that the program is creating a context using legacy context creation functions. RenderDoc doesn't support the compatibility profile, so it requires at least the use of modern context creation functions - wglCreateContextAttribs / glXCreateContextAttribs - and will warn if you don't request a core profile context.
How your code does that is up to you, if you're using a wrapper library for creating contexts there should be a way to request a core context.

source: gharchive/issue

repo: baldurk/renderdoc

license: MIT

license_type: permissive

license_source: github-api


text:
AV when capturing vulkan cube sample

it seems the nvidia driver crash when resizing app the window

000000bfe6336ba8()	Unknown
nvoglv64.dll!00000000777e04a2()	Unknown
nvoglv64.dll!00000000777e0361()	Unknown
nvoglv64.dll!00000000777e1157()	Unknown
nvoglv64.dll!00000000777e009c()	Unknown
renderdoc.dll!WrappedVulkan::vkCreateSwapchainKHR(VkDevice_T * device, const VkSwapchainCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSwapchainKHR_T * * pSwapChain) Line 300	C++
renderdoc.dll!hooked_vkCreateSwapchainKHR(VkDevice_T * device, const VkSwapchainCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSwapchainKHR_T * * pSwapchain) Line 103	C++

Crap, this was a silly little omission on my side, but it wasn't exposed until very recently in nvidia's drivers (I guess they weren't using oldSwapchain before), not until it was too late to be noticed and fixed in 0.27.
The above commit fixes it for me and will be in the next nightly build and in the next stable version released.

thanks will give it a try later today

works for me, thanks!

authors: ahmedismaiel baldurk


text:
Vulkan pixel history fails to detect shader discards on Intel

Description
Pixel history does not properly detect shader discards (presumably only on Intel drivers). For discards, it seems like shader out shows as all black, while tex after is unchanged. (Though, shader out might simply be undefined and in my case it just happens to be black).
Steps to reproduce

This can be reproduced by running the VK_Pixel_History functional test.

$ ./renderdoccmd test functional -t VK_Pixel_History
...
>> Test VK_Pixel_History
    .. Running exe:'C:\Users\w.pearson\source\repos\renderdoc-contrib\util\test\demos_x64.exe' cmd:'VK_Pixel_History --log C:\Users\w.pearson\source\repos\renderdoc-contrib\util\test\tmp\demos.log' in dir:'' with env:'[]'
main.cpp:678 Log: Running 'VK_Pixel_History'
    .. Queuing capture of frame 5..6 with timeout of default
vk\vk_test.cpp:294 Log: Initialising Vulkan at VK1.3
vk\vk_test.cpp:750 Log: Running Vulkan test on Intel(R) UHD Graphics (version 1.3)
    >> Raw Process output
        vk\vk_test.cpp:294 Log: Initialising Vulkan at VK1.3
        vk\vk_test.cpp:750 Log: Running Vulkan test on Intel(R) UHD Graphics (version 1.3)
    << Raw Process output
    .. Loading capture
    .. Checking capture
    .. Testing pixel 190, 149
    ** Picked value at 190,149 in Swapchain Image 176 is as expected
    .. Testing pixel 190, 150
    ** Picked value at 190,150 in Swapchain Image 176 is as expected
    .. Testing pixel 200, 50
    ** Picked value at 200,50 in Swapchain Image 176 is as expected
    .. Testing pixel 150, 250
    !+ FAILURE in VK_Pixel_History: TestFailureException eventId 21, primitiveID 0: testing shader_discarded expected True, got False
    >> Callstack
        File "tests/Vulkan/VK_Pixel_History.py", line 397, in check_events
            actual))
        File "tests/Vulkan/VK_Pixel_History.py", line 122, in primary_test
            self.check_events(events, modifs, False)
        File "tests/Vulkan/VK_Pixel_History.py", line 37, in check_capture
            self.primary_test()
        File "rdtest/testcase.py", line 493, in run
            self.check_capture()
        File "rdtest/testcase.py", line 500, in invoketest
            self.run()
        File "rdtest/runner.py", line 349, in do
            instance.invoketest(debugMode)
        File "rdtest/runner.py", line 357, in run_tests
            do(False)
    << Callstack
    !- FAILURE
    $$ FAILED
<< Test VK_Pixel_History
...

The test passes if the check_events call on line 122 is commented out (i.e. everything else behaves correctly; it's only discards that are broken).
In RenderDoc itself, this can be seen just by using pixel history at x=150 and observing that e.g. EID 21 is not shown as a discard. (That's how I checked the stable version).
Environment

RenderDoc version: v1.26, self-built eb643dd76f92aed18f9837fe942d5491feb8f3e1. Demos from eb643dd76f92aed18f9837fe942d5491feb8f3e1.
Operating System: Windows 10.0.19042.2728
Graphics API: Vulkan
CPU: 12th Gen Intel(R) Core(TM) i7-1270P, 2200 Mhz, 12 Core(s), 16 Logical Processor(s)
GPU: Intel(R) UHD Graphics, driver version 31.0.101.4255

This looks to be a different manifestation of a driver bug previously encountered. I've expanded the workaround that seems to work for me, but it may or may not work depending on what the driver bug is.

Thanks. That workaround seems to at least fix the broken test on my machine. If I find any other broken edge-cases I'll open a new issue.

At this point I would suggest that you don't unless it repro's on a non-Intel GPU. Intel seems quite broken.

I was looking over this code again and I noticed that there seems to be a mistake:
https://github.com/baldurk/renderdoc/blob/1a2db41fa807dd0bdc4afe67f5d92590fef9dee7/renderdoc/driver/vulkan/vk_pixelhistory.cpp#L785-L788
Shouldn't the second line use dst instead of src?
atts[i].dstColorBlendFactor = atts[i].dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE;

I tested it out locally and it seems like both versions behave correctly on my machine. (I'm not sure if that makes sense or not.)
(As a minor side thing, atts[i].colorWriteMask = VK_COLOR_COMPONENT_A_BIT would probably also be clearer than using 0x8, but that shouldn't matter either.)

authors: baldurk w-pearson


text:
pmsrv-service: ensure pmsrv is loaded

New meta-owasys layer upgrade will change
the default power-manager service in a different order. To have it available for BalenaOS we need to ensure it is started at the very beginning of the system boot. Otherwise BalenaOS will have problems when trying to bring up both wifi and cellular interfaces as they are powered up by this pmsrv.service
Changelog-entry: pmsrv is loaded properly
Signed-off-by: Alvaro Guzman alvaro.guzman@owasys.com

@floion this PR is needed after the PR is merged. I have split them as usually you demand atomic pull requests.
Thanks in advance

source: gharchive/pull-request


text:
前端展示bug,查询接口有数据,前端不展示

另外,这个查询条件 只要数据是二级或者三级的数据,就不会展示

好的. 我看看
@.***
发件人： 裴耀耀
发送时间： 2022-06-23 09:59
收件人： ballcat-projects/ballcat-ui-react
抄送： Subscribed
主题： Re: [ballcat-projects/ballcat-ui-react] 前端展示bug,查询接口有数据,前端不展示 (Issue #9)
另外,这个查询条件 只要数据是二级或者三级的数据,就不会展示
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

已修复

authors: lingting peiyaoyao

repo: ballcat-projects/ballcat-ui-react


text:
Need to invoke init function during test setup

Currently _init() method get generated, however, it is needed to be invoked before running the test cases. Otherwise, global level variables, and user defined types will not get initialized. e.g.:
ballerina test function:
int globalVar = 7;

function getGlobalVar() returns int {
    return globalVar;
}

Java test case:
    @Test
    public void getGlobalVar() {
        BValue[] returns = BRunUtil.invoke(compileResult, "getGlobalVar");
        Assert.assertEquals(((BInteger) returns[0]).intValue(), 7);
    }

Closing the issue as this was fixed

repo: ballerina-platform/ballerina-lang


text:
Token minutiae modify only returns minutiae

Description:
I'm currently working on the formatter and using the token.modify() method to update minutiae and facing the below issue.
token.modify(newLeadingMinutiaeList, newTrailingMinutiaeList) method returns the updated token without the value. It only returns the minutiae.

Steps to reproduce:
Affected Versions:
1.2.4
OS, DB, other environment details and versions:
Ubuntu 18.04

@IrushiL can we check whether this particular issue is still there in the parser?

Any update on this?  Please check the following test case for more details.
https://github.com/ballerina-platform/ballerina-lang/blob/master/compiler/ballerina-parser/src/test/java/io/ballerinalang/compiler/parser/test/tree/MinutiaeListAPITest.java

I went through the issue to verify if the problem still exists. Here the issue is actually seen when modifying a literal token. When modifying a token, the function given below is called.
https://github.com/ballerina-platform/ballerina-lang/blob/e29f3dcd344794e9c39d71a3cca6e5923b57016f/compiler/ballerina-parser/src/main/java/io/ballerinalang/compiler/syntax/tree/Token.java#L70
In an instance where the token is to be modified, the else section of the method given below is called to generate a new modified token.
https://github.com/ballerina-platform/ballerina-lang/blob/e29f3dcd344794e9c39d71a3cca6e5923b57016f/compiler/ballerina-parser/src/main/java/io/ballerinalang/compiler/syntax/tree/Token.java#L75
However, this generation creates a new Token without using the value of the existing token. This works fine for other SyntaxKinds such as keywords, types, etc. since they have defined string values. But in the case of literals, since the value is dynamic, the generated new token will be empty. AFAIU the following method could be called to generate the new token if the SyntaxType is of a literal type.
https://github.com/ballerina-platform/ballerina-lang/blob/e29f3dcd344794e9c39d71a3cca6e5923b57016f/compiler/ballerina-parser/src/main/java/io/ballerinalang/compiler/internal/parser/tree/STAbstractNodeFactory.java#L95
This issue could be reproduced using the MinutiaeListAPITest that @sameerajayasoma mentioned by making the following adjustment to ensure that a literal token is modified.
Alter the https://github.com/ballerina-platform/ballerina-lang/blob/master/compiler/ballerina-parser/src/test/resources/tree/minutiae_test_04.bal test case to have a new line at the end of a literal token as follows. Since the test modifies all tokens to remove newline minutiaes from the tree, this literal will also be modified. The output will have something like int x = ;, dropping the integer value.
function add() returns int {
    int x = 56
;
    int y = b;
    int z = a + b;
    return z;
}

authors: IrushiL gigara nadeeshaan sameerajayasoma


text:
Set offline flag after connection error exception from central API client for the current build

Description:
Current implementation looking up central even after the first connection failure or timeout to the central. Need to find a way to set the offline flag after connection failure for the current build only. In the next build again should look up for central.
Related Issue: https://github.com/ballerina-platform/ballerina-lang/issues/30911
Describe your problem(s)
Describe your solution(s)
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Since our remote repository resolution logic has changed to resolve all the packages in a single request, There is not much impact on this. Hense closing the issue.


text:
Assigning -9223372036854775808 to an int does not overflow

Description:
Consider the following line in lang.int spec
# Minimum value of type `int`.
public const MIN_VALUE = -9223372036854775807 - 1; // -9223372036854775808 would overflow

Since ballerina doesn't have a concept of positives and negatives,  the positive part here 9223372036854775808 should overflow.
Steps to reproduce:
public function main() {
    int a = -9223372036854775808; //This should overflow, but works ATM
}

Affected Versions:
slbeta2

In two`s complement for 64 bit range.
-2(n-1) )  --- 0 --- 2(n-1) - 1
-2(63) )  --- 0 --- 2(63) - 1
-9223372036854775808 --- 0 --- 9223372036854775807

authors: KRVPerera lasinicl


text:
NPE with optional field access in lax type

Description:
function init() returns error? {
    map<json> t14 = {"a": 149, "b": [{"a": {"b": {"c": 123}}}], "c": null};
    json|error b = (<json[]>(t14?.b))[0]?.a?.b;
}

java.lang.NullPointerException
        at org.wso2.ballerinalang.compiler.parser.NodeCloner.clone(NodeCloner.java:313)
        at org.wso2.ballerinalang.compiler.parser.NodeCloner.visit(NodeCloner.java:1362)
        at org.wso2.ballerinalang.compiler.tree.expressions.BLangTypeConversionExpr.accept(BLangTypeConversionExpr.java:79)
        at org.wso2.ballerinalang.compiler.parser.NodeCloner.clone(NodeCloner.java:311)
        at org.wso2.ballerinalang.compiler.parser.NodeCloner.visit(NodeCloner.java:1292)
        at org.wso2.ballerinalang.compiler.tree.expressions.BLangGroupExpr.accept(BLangGroupExpr.java:43)
        at org.wso2.ballerinalang.compiler.parser.NodeCloner.clone(NodeCloner.java:311)
        at org.wso2.ballerinalang.compiler.parser.NodeCloner.cloneBLangAccessExpression(NodeCloner.java:357)
        at org.wso2.ballerinalang.compiler.parser.NodeCloner.visit(NodeCloner.java:1166)
        at org.wso2.ballerinalang.compiler.tree.expressions.BLangFieldBasedAccess.accept(BLangFieldBasedAccess.java:71)
        at org.wso2.ballerinalang.compiler.parser.NodeCloner.cloneNode(NodeCloner.java:275)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.getSuccessPattern(Desugar.java:9786)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.handleSafeNavigation(Desugar.java:9639)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteSafeNavigationExpr(Desugar.java:9532)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteFieldBasedAccess(Desugar.java:5968)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:6056)
        at org.wso2.ballerinalang.compiler.tree.expressions.BLangFieldBasedAccess.accept(BLangFieldBasedAccess.java:71)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteExpr(Desugar.java:8367)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:1416)
        at org.wso2.ballerinalang.compiler.tree.BLangSimpleVariable.accept(BLangSimpleVariable.java:54)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:1549)
        at org.wso2.ballerinalang.compiler.tree.statements.BLangSimpleVariableDef.accept(BLangSimpleVariableDef.java:50)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8380)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteStmt(Desugar.java:8386)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:1543)
        at org.wso2.ballerinalang.compiler.tree.statements.BLangBlockStmt.accept(BLangBlockStmt.java:63)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8380)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:3541)
        at org.wso2.ballerinalang.compiler.tree.statements.BLangMatch.accept(BLangMatch.java:105)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8380)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteStmt(Desugar.java:8386)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:1543)
        at org.wso2.ballerinalang.compiler.tree.statements.BLangBlockStmt.accept(BLangBlockStmt.java:63)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8380)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:3445)
        at org.wso2.ballerinalang.compiler.tree.statements.BLangIf.accept(BLangIf.java:60)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8380)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:3446)
        at org.wso2.ballerinalang.compiler.tree.statements.BLangIf.accept(BLangIf.java:60)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8380)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteStmt(Desugar.java:8386)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:1543)
        at org.wso2.ballerinalang.compiler.tree.statements.BLangBlockStmt.accept(BLangBlockStmt.java:63)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8380)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:3541)
        at org.wso2.ballerinalang.compiler.tree.statements.BLangMatch.accept(BLangMatch.java:105)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8380)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteStmt(Desugar.java:8386)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:1543)
        at org.wso2.ballerinalang.compiler.tree.statements.BLangBlockStmt.accept(BLangBlockStmt.java:63)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8380)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:8065)
        at org.wso2.ballerinalang.compiler.tree.expressions.BLangStatementExpression.accept(BLangStatementExpression.java:53)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteExpr(Desugar.java:8367)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteFieldBasedAccess(Desugar.java:5968)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:6056)
        at org.wso2.ballerinalang.compiler.tree.expressions.BLangFieldBasedAccess.accept(BLangFieldBasedAccess.java:71)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteExpr(Desugar.java:8367)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:7301)
        at org.wso2.ballerinalang.compiler.tree.expressions.BLangTypeConversionExpr.accept(BLangTypeConversionExpr.java:79)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteExpr(Desugar.java:8367)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteExprs(Desugar.java:8400)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:5821)
        at org.wso2.ballerinalang.compiler.tree.expressions.BLangListConstructorExpr$BLangArrayLiteral.accept(BLangListConstructorExpr.java:104)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteExpr(Desugar.java:8367)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteExprs(Desugar.java:8400)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteInvocation(Desugar.java:6406)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:6346)
        at org.wso2.ballerinalang.compiler.tree.expressions.BLangInvocation.accept(BLangInvocation.java:126)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteExpr(Desugar.java:8367)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:3438)
        at org.wso2.ballerinalang.compiler.tree.statements.BLangExpressionStmt.accept(BLangExpressionStmt.java:51)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8380)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteStmt(Desugar.java:8386)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:1317)
        at org.wso2.ballerinalang.compiler.tree.BLangBlockFunctionBody.accept(BLangBlockFunctionBody.java:60)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:1359)
        at org.wso2.ballerinalang.compiler.tree.BLangFunction.accept(BLangFunction.java:76)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8393)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:795)
        at org.wso2.ballerinalang.compiler.tree.BLangPackage.accept(BLangPackage.java:167)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8342)
        at org.wso2.ballerinalang.compiler.desugar.Desugar.perform(Desugar.java:454)
        at io.ballerina.projects.internal.CompilerPhaseRunner.desugar(CompilerPhaseRunner.java:216)
        at io.ballerina.projects.internal.CompilerPhaseRunner.performBirGenPhases(CompilerPhaseRunner.java:152)
        at io.ballerina.projects.ModuleContext.generateCodeInternal(ModuleContext.java:453)
        at io.ballerina.projects.ModuleCompilationState$4.generatePlatformSpecificCode(ModuleCompilationState.java:132)
        at io.ballerina.projects.ModuleContext.generatePlatformSpecificCode(ModuleContext.java:390)
        at io.ballerina.projects.JBallerinaBackend.performCodeGen(JBallerinaBackend.java:159)
        at io.ballerina.projects.JBallerinaBackend.<init>(JBallerinaBackend.java:137)
        at io.ballerina.projects.JBallerinaBackend.lambda$from$0(JBallerinaBackend.java:113)
        at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1133)
        at io.ballerina.projects.PackageCompilation.getCompilerBackend(PackageCompilation.java:182)
        at io.ballerina.projects.JBallerinaBackend.from(JBallerinaBackend.java:112)
        at io.ballerina.cli.task.CompileTask.execute(CompileTask.java:93)
        at io.ballerina.cli.TaskExecutor.executeTasks(TaskExecutor.java:40)
        at io.ballerina.cli.cmd.RunCommand.execute(RunCommand.java:203)
        at java.base/java.util.Optional.ifPresent(Optional.java:183)
        at io.ballerina.cli.launcher.Main.main(Main.java:51)

Steps to reproduce:
Affected Versions:
SL GA
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Doesn't crash on update 3 and later versions.

authors: MaryamZi pcnfernando


text:
Emit a () when generating array's string representation

Purpose
An array that contains a nil value has an invalid string representation.
This PR fixes that.
    string?[] ar = ["abc", "d", (), "s"];
    io:println(ar);

Previous output:
["abc", "d", "s"]
With this PR, new output:
["abc", "d", (), "s"]
This PR depends on https://github.com/ballerina-platform/ballerina-lang/pull/13193 and https://github.com/ballerina-platform/ballerina-lang/pull/13286

Some improvements points were discussed here. https://groups.google.com/d/msg/ballerina-dev/4QEGRga-nT4/7L2V1JfnAgAJ Shall we create an issue to capture this?

authors: hasithaa rdhananjaya


text:
Add synchronous message consuming functionality to RabbitMQ connector

Purpose

$title
AMQP Reference: https://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.get

Samples
import ballerina/io;
import ballerina/rabbitmq;

public function main() {
    rabbitmq:Connection connection = new({ host: "localhost", port: 5672 });

    rabbitmq:Channel newChannel1 = new(connection);

    var queueResult = newChannel1->queueDeclare({ queueName: "MyQueue" });
    if (queueResult is error) {
        io:println("An error occurred while creating the MyQueue1 queue.");
    }
    var sendResult = newChannel1->basicPublish("Hello from Ballerina", "MyQueue");
    if (sendResult is error) {
        io:println("An error occurred while sending the message to " +
                 "MyQueue1 using newChannel1.");
    }

    var getResult = newChannel1->basicGet("MyQueue", rabbitmq:AUTO_ACK);
    if (getResult is rabbitmq:Message) {
        var message = getResult.getTextContent();
        if (message is string) {
            io:println(message);
        }
    }
}

Check List

[x] Read the Contributing Guide
[ ] Required Balo version update
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #19534 into ballerina-1.0.x will not change coverage.
The diff coverage is n/a.

@@               Coverage Diff                @@
##           ballerina-1.0.x   #19534   +/-   ##
================================================
  Coverage            15.73%   15.73%
================================================
  Files                   47       47
  Lines                 1265     1265
  Branches               197      197
================================================
  Hits                   199      199
  Misses                1053     1053
  Partials                13       13

Continue to review full report at Codecov.

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

authors: aashikam codecov-io


text:
remove the default Home Assistant notification title

#114634013 - Make title of messages optional (notifications)

We should go one step further and make it optional. Making it empty is not going to help as notification platforms still feel the urge to prepend it with a space to the message. This would require an upgrade to most platforms.

:+1: to @balloob

See new PR

New PR #1708

authors: balloob fabaff fearoffish robbiet480

repo: balloob/home-assistant

license_source: bigquery


text:
Add support for TP-Link ArcherC9 to to device tracker component

Since both authentication and parsing where different compared to original TP-Link device, it made sense to put this is a separate device scanner class

Awesome. A few comments:
I suggest we keep both TPLink versions in 1 file. We can decide in the get_scanner method which one to pick. Could be as simple as this:
scanner = Tplink2DeviceScanner(config[DOMAIN])

if not scanner.success_init:
    scanner = TplinkDeviceScanner(config[DOMAIN])

return scanner if scanner.success_init else None

What do you think about that?
Also, it looks like Flake8 found 4 style issues:

homeassistant/components/device_tracker/tplink2.py:5:80: E501 line too long (86 > 79 characters)
homeassistant/components/device_tracker/tplink2.py:102:80: E501 line too long (89 > 79 characters)
homeassistant/components/device_tracker/tplink2.py:121:80: E501 line too long (99 > 79 characters)
homeassistant/components/device_tracker/tplink2.py:124:80: E501 line too long (89 > 79 characters)

As you can see I like the idea of having them in the same file and deciding which one to use in  get_scanner
I forgot to commit the flake8 fixes first time, but there in now :+1:

Awesome!

authors: balloob chrisvis


text:
いいところ診断の結果に優しさを追加したい

以下の結果を追加したい
'###userName###のいいところは優しさです。あなたの優しい雰囲気や立ち振る舞いに多くの人が癒されています。'

これから対応します。

4d7ab7e で対応されました。

4d7ab7e で対応されました。

repo: balloon-kirintu/assessment


text:
react native 0.60 Please update the following components: TriggeringView

With the new versions of react native many methods become obsolete, do you plan to update the library?
Thank you!

news about that? thanks

@georgeMorales @robertobrogi I planned to update this lib in a few days

+1 for this!

has this issue been resolved i wanted to use it can you give me a alternative to react-native-image-header-scroll-view

@cristoferrao This is resolved ATM by introducing UNSAFE_ to componentWillMount and componentWillReceiveProps for now. If you pull the master with the latest commit, you won't encounter the warning message anymore.

thanks but the warning was removed when i removed the TriggeringView and made hide and that call from HeaderImageScrollView  using on scroll start those options

Seems that the version we get when using yarn or npm does not have the TriggeringView changes in it. Is there a way to fix that ?

@Spoutnik97 ping

Thanks for the update 🙂
If you have time you can make a pull request to update it, otherwise I try to do it this week

Done ✅ I updated the package. Please try v1.0.0 and report errors

@Spoutnik97 Sorry, didn't have time to create pull request.
Thanks! I'll try it out and report any bugs

license: mit


text:
Fix parse error in agda-input.el

This line resulted in a parse error, and the script silently continued by skipping the rest of the file:
https://github.com/banacorn/keymap/blob/b9ad87d519450ac7d50b9a9aca6fa0a965cd1723/assets/agda-input.el#L653
The parse error is fixed by ignoring backslash escape in agda-input.el, and the parser is forced to fail if it did not consume all of its input.
See https://github.com/banacorn/agda-mode-vscode/issues/176.

Thank you so much!!

authors: banacorn szumixie

repo: banacorn/keymap


text:
Update all http requests to catapult to include user-agent and version of php-bandwidth

Update header to include value "user-agent":"php-bandwidth-{version-number-of-package}" for any request to catapult
Update minor version # and publish to composer
Version number of package should be pulled programmatically. (don't want to have to update a hidden string every time)

@ffranco-daitan @guaycuru (which name to use, I forget) Is this something you can do !? :)

@dtolb Yes, I think I can do it, let's ask @EdHintz about priorities / when should this be done. (btw Guaycuru is my personal account, ffranco-daitan is my Daitan account)

authors: dtolb ffranco-daitan

repo: bandwidthcom/php-bandwidth


text:
有一台空调不能正确识别

型号为：KFR-35G/WEC21AU1

对的，日志文件显示初始化失败。
2023-07-04 09:06:26.634 ERROR (MainThread) [custom_components.haier] 设备[DC330D23E268]初始化失败

2023-07-04 09:06:26.200 DEBUG (MainThread) [custom_components.haier] Device Info: {"deviceId": "DC330D23E268", "deviceName": "\u4e3b\u5367\u7a7a\u8c03", "deviceType": "03001001", "online": true, "permissions": [{"auth": {"control": true, "set": true, "view": true}, "authType": "owner"}, {"auth": {"control": true, "set": false, "view": true}, "authType": "home"}], "productCodeT": "AA9KTB015", "productNameT": "KFR-35G/WEC21AU1\u5ba4\u5185\u673a\u603b\u6210", "totalPermission": {"control": true, "set": true, "view": true}, "wifiType": "00000000000000008080000000041410"}
2023-07-04 09:06:26.634 ERROR (MainThread) [custom_components.haier] 设备[DC330D23E268]初始化失败

好的，感谢！

我有一个卡萨帝洗衣机也不能识别，型号HDU85G3
2023-07-04 14:40:27.056 DEBUG (MainThread) [custom_components.haier] Device Info: {"deviceId": "0007A8AAE287", "deviceName": "\u6d17\u8863\u673a", "deviceType": "05001009", "online": true, "permissions": [{"auth": {"control": true, "set": true, "view": true}, "authType": "owner"}, {"auth": {"control": true, "set": false, "view": true}, "authType": "home"}], "productCodeT": "CEAAJ0017", "productNameT": "C1 HDU85G3", "totalPermission": {"control": true, "set": true, "view": true}, "wifiType": "101c12002400081005010021800067000000f300000000000000000000000000"}
2023-07-04 14:40:28.167 ERROR (MainThread) [custom_components.haier] 设备[0007A8AAE287]初始化失败
Traceback (most recent call last):
File "/config/custom_components/haier/init.py", line 34, in async_setup_entry
coordinator = await new_device_coordinator(hass, client, device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/haier/init.py", line 78, in new_device_coordinator
device['config'] = await client.get_hardware_config(device['wifiType'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/haier/haier.py", line 142, in get_hardware_config
if 'data' not in content or 'url' not in content['data']:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

我有一个卡萨帝洗衣机也不能识别，型号HDU85G3
2023-07-04 14:40:27.056 DEBUG (MainThread) [custom_components.haier] Device Info: {"deviceId": "0007A8AAE287", "deviceName": "\u6d17\u8863\u673a", "deviceType": "05001009", "online": true, "permissions": [{"auth": {"control": true, "set": true, "view": true}, "authType": "owner"}, {"auth": {"control": true, "set": false, "view": true}, "authType": "home"}], "productCodeT": "CEAAJ0017", "productNameT": "C1 HDU85G3", "totalPermission": {"control": true, "set": true, "view": true}, "wifiType": "101c12002400081005010021800067000000f300000000000000000000000000"}
2023-07-04 14:40:28.167 ERROR (MainThread) [custom_components.haier] 设备[0007A8AAE287]初始化失败 Traceback (most recent call last): File "/config/custom_components/haier/init.py", line 34, in async_setup_entry coordinator = await new_device_coordinator(hass, client, device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/haier/init.py", line 78, in new_device_coordinator device['config'] = await client.get_hardware_config(device['wifiType']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/haier/haier.py", line 142, in get_hardware_config if 'data' not in content or 'url' not in content['data']: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: argument of type 'NoneType' is not iterable

海尔智家APP中可以正常使用吗？刚测试使用APP的API拉取这个设备的配置文件也失败了

刚在Hassbian论坛看到一个坛友说，微信小程序里面没有的设备，在这个插件上也没有，我看了一了我也是相同的情况。

在智家App可以正常使用

对，智家APP正常。可能API接口不同，微信小程序上有提示：小程序暂不支持所有设备，若您未在当前家庭下找到设备，请耐心等待，我们会尽快处理

问了海尔客服，智家小程序尚在开发种，功能不完善，有些设备不能显示

奇怪,我的一台卡萨帝的冰箱在微信小程序中能够显示,但是也无法识别呢,

奇怪,我的一台卡萨帝的冰箱在微信小程序中能够显示,但是也无法识别呢,

项目使用的不是微信小程序的接口，所以不能保证小程序能识别的本项目就能识别，不能识别的问题后续会尝试更换接口


text:
Kubernetes auth config does not support inline config

Describe the bug
In the example external vault configuration, it is described that you can configure the kubernetes auth type, and provides a commented section with a config block.
copied from the readme
auth:
  - type: kubernetes
    # If you want to configure with specific kubernets service account instead of default service account
    # https://www.vaultproject.io/docs/auth/kubernetes.html
    # config:
    #  token_reviewer_jwt: your_service_account_jwt
    #  kubernetes_ca_cert: -----BEGIN CERTIFICATE-----.....-----END CERTIFICATE-----
    #  kubernetes_host: https://192.168.99.100:8443
    # Allows creating roles in Vault which can be used later on for the Kubernetes based
    # authentication.
    #  See https://www.vaultproject.io/docs/auth/kubernetes.html#creating-a-role for
    # more information.
    roles:
      # Allow every pod in the default namespace to use the secret kv store
      - name: default
        bound_service_account_names: default
        bound_service_account_namespaces: default
        policies: allow_secrets
        ttl: 1h

The config section, is not read, and the application still looks in (imho) some odd locations for the the ca.cert and token file. Since it appears to be documented, it feels like this should be supported.
To Reproduce
Steps to reproduce the behavior:
Uncomment the config section, populate with proper variables. Purge the default config dir and kubernetes host env var. Execute configure, see failure.
Expected behavior
Config section allows population of configuration related to kubernetes for configuring auth.

You're right @gregdurham , and I thought it is supported, maybe the documentation is wrong, I'm looking into this.

Thx @gregdurham for reporting this - fix is pushed to master.

@bonifaido I'm using kubernetes config without this fix and it works. Was it just the yaml spacing issue?

Hi @raoofm, it depends on how your auth block looks like, do you use the config block as well? How does it look like?

yes i do use it
  externalConfig:
    policies:
    - name: secrets
      rules: path "secret/*" {
              capabilities = ["create", "read", "update", "delete", "list"]
            }
    - name: secrets_read
      rules: path "secret/*" {
               capabilities = ["read", "list"]
             }
    - name: approle
      rules: path "auth/approle/role/*" {
               capabilities = ["create", "read", "update", "delete", "list"]
             }
    - name: admin
      rules: path "*" {
              capabilities = ["create", "read", "update", "delete", "list"]
            }
    auth:
    - type: github
      config:
        organization: myOrg
      map:
        teams:
          dev: secrets_read
        users:
          raoofm: admin
    - type: kubernetes
      config:
        token_reviewer_jwt: eyJhbGciOiJSUzI1NDUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMYAgHGKPO7Sdg3AYcg
        kubernetes_ca_cert: |
          -----BEGIN CERTIFICATE-----
          MIIC1zCCAb+gAwIBAgIQMA3BMbdwlbbfSlq78mD3bjANBgkqhkiG9w0BAQsFADAV
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY_DUMMY
          KvFiuwh8ZxH4+c8=
          -----END CERTIFICATE-----
        kubernetes_host: https://api.k8s.dev
      roles:
        - name: dev-myapp
          bound_service_account_names: myapp
          bound_service_account_namespaces: dev-myapp
          policies: secrets_read
          ttl: 10m
          max_ttl: 10m
          period:

Interesting! And which version do you use?

i'm using 0.4.9 but it was working for me since the beginning of time.

Maybe you have configured the k8s auth before this regression popped up in the code, I have no other guess :)

authors: bonifaido gregdurham matyix raoofm

repo: banzaicloud/bank-vaults


text:
项目无法使用p6spy，如何打印完整的sql日志，想3.1

当前使用版本(3.4.3)
该问题是如何引起的？(确定最新版也有问题再提!!!)
无法使用p6spy打印完整sql，内部分库分表数据库不暴露jdbcurl，无法配置dataSource为p6spy的驱动，按照原本3.1版本的
模仿了一份儿PerformanceInterceptor配置也不起作用
希望能把PerformanceInterceptor提供回来，不然实在不知道执行sql为啥出错，配置了逻辑删除，太难定位了

你找到旧版复制 PerformanceInterceptor 到你本地项目即可

authors: YAGAMIL qmdx

repo: baomidou/mybatis-plus


text:
hot reload / live reload don't seem to work

When using develop branch - after running npm setup and npm start HMR logs are not visible, and hot/live reloads are not kicking in.

Thanks for letting us know. We've fixed the bug in the Makefile.

authors: batuhan burgalon

repo: barbar/vortigern


text:
Incorrect wrapper handler

Your wrapper for console.error expects that there will only ever be 1 parameter.
window.console.error = function(text) {
    consoleErrorFunc.call(console, text);
    handleUserError(text);
};

But I pass multiple arguments but they are being stripped off.
console.error(object [, object, …])
I have done a quick fix in my local copy by using consoleErrorFunc.apply(console, arguments);
I am sure some people will say I am creeping scope with the arguments variable and blar blar blar, but it was my quick fix.

Colin.

Fixed in 3.0.13. Thanks for report!

authors: WORMSS barbushin

repo: barbushin/javascript-errors-notifier


text:
Extension is not available in chrome store

https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef
http://pastexen.com/i/IOl33akcxD.jpg
Extension is not available :(

And if you have it installed, it is automatically disabled with the notice:
"This extension violates the Chrome Web Store policy."

See #101

Nice! Thanks! Great tool!

Good news!
It's unlocked https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef

authors: ank212 barbushin beardedlinuxgeek

repo: barbushin/php-console


text:
Only one point in Transit Failure for Mod Shift

The Exception is as follows:
IOError('FAIL: modshift returned error: Only one point in-transit. Exiting...\n')
Now this happens because trapFit decides to return a model with a very short duration (like 1 hour or less).  When this happens, it appears that modshift doesn't return gracefully.  Could it instead return non-sensical values, or a SinglePoint Failure type comment.
See the following example on so-nfs:
clip=c.loadClipboard('/soc/nfs/so-nfs/dave/c7-sff-short/214354254/c214354254-07.clip')

The other reason modshift fails with this error is that all but one or two points have been flagged as bad. Any solution would have to behave sensibly for this case too.
Maybe the best solution is for the dispostionTask to check for very short durations and refuse to run modshift if that's a problem?

Fergal, I think that would be a reasonable solution as well.
Are we convinced that if trapFit says the duration is tiny, that the event is due to an outlier and we can safely call it a false positive?
Another option would be to have modshift run using the bls duration.

Yea right now modshift basically says it's silly to run modshift with zero or only one point in-transit, so it exits with that error code. I could change it so that it spits out values of say -1 for everything, but I thought Fergal preferred the exit w/ error code.
I agree if the trapFit duration is crazy small then we should just throw it out as not transit-like and move on. The error means that there is literally one point in-transit, via the model, for the whole phased light curve. So that really means there is only one transit detected, and we are requiring a two-transit minimum for a Dave TCE.

Another option would be to have modshift run using the bls duration.

This is possible - to run modshift this way we'd have to generate a model from the bls results, which would be fairly simple since it's just a box. I guess the question is how often the trapezoid fit mistakenly results in a too-short duration when there really is a real transit-like feature there.

Posted on the other ticket, but posting here now as well...I think this solves this ticket's problem.
I ended up changing the code so that in the case of no in-transit points it will just exit the function that it's in, not the whole program. I also added default values to the outputs of 0 or 1. (0's for the sigmas, 1's for the errors and Fred, so it avoids any divide-by-zero errors).
This means that when there are no in-transit points for the odd- or even- only, it will just default to a odd-even statistic of zero (default pass). The code will run normally for the light curve as a whole. Also, if there are no in-transit points for the entire light curve, as we've seen for a few other systems, then it should gracefully return default values of 0.0 for sig_pri. Right now that should make it fail in vetting (as something with no points in transit probably should), but we can change that in the vetting code if we want it to pass.

If there are no data points in any of the odd transits (or any of the even) ones, should that not be a fail? I haven't thought it through all the way, but I would think so.

I think normally yes Fergal, but I can't guarantee 100% that the outlier rejection didn't accidentally kill the one point in-transit. Normally shouldn't happen, but if it's a really crazy LC, it might. So best to default to pass I think, and modify the BLS to not produce a candidate when there isn't data for the odd or even events.

authors: JeffLCoughlin fergalm mustaric

repo: barentsen/dave


text:
Features & fixes for next release

This PR prepare the next 0.2.4 release with the following updates:

Add support for Verdaccio 4.4
Add retry mechanism on Bucket initialization
Updated dependencies

@juanpicado Thanks :)

repo: barolab/verdaccio-minio


text:
Non-static method 'find' should not be called statically, but the class has the '__magic, and more...

Versions:

ide-helper Version: 2.8.1
Laravel Version: 8.6.0
PHP Version: 7.4.5 (cli)

Description:
I installed this package as follows:

composer require --dev barryvdh/laravel-ide-helper
php artisan clear-compiled
php artisan ide-helper:generate

However, it doesn't work to me...
Post::find($id) shows me an error "Non-static method 'find' should not be called statically, but the class has the '__magic' method."

shows me an error "Non-static method 'find' should not be called statically, but the class has the '__magic' method."

Which inspection is this, specifically?
Press "alt-enter" on the error and select "Edit inspection profile setting" and try to make a screenshot where exactly in the hierarchy it is and what it's name there is, thanks!

Here's the screenshot. Thank you. https://prnt.sc/unmc2l

@jadamec unfortunately it doesn't answer my specific question I had :/ please re-read regarding the inspections I'm asking for

@jadamec unfortunately it doesn't answer my specific question I had :/ please re-read regarding the inspections I'm asking for

Oh sorry.. here it is https://prnt.sc/unxdwo Thanks

I've it enabled too, works for me? Only have another, unrelated, inspection showing up:

It's really strange. I don't have this EA error...

authors: jadamec mfn

repo: barryvdh/laravel-ide-helper


text:
Unknown database type json requested, PostgreSqlPlatform may not support it.

First of all, thank you for creating this utility, it definitely makes my life easier!
I recently added a JSON column to one of my PostgreSQL powered databases. While Laravel and Postgres natively supports JSON, executing the artisan command ./artisan ide-helpder:models crashes with the following exception:
Exception: Unknown database type json requested, Doctrine\DBAL\Platforms\PostgreSqlPlatform may not support it.

I guess this may be related to an outdated Doctrine version? Any chance to get this working?

Hi Hohl,
fix this by doing a...
php artisan vendor:publish
which will create a config/ide-helper.php file.
Modify this file and change the bottom of the file to read:
'custom_db_types' => array(
'postgresql' => array(
"jsonb"     => "json_array",
"json"      => "json_array"
)
)
I think thats all you need to do.

@barryvdh , can you verify @securit 's solution and implement it if it proves working?

@shehi. The point here is that @barryvdh has already implemented this. I simply pointed you in the direction of using what he had already developed.
Happy coding :)

Yes but I'd be happy to provide some better default mappings, that are missing from Doctrine but common in Laravel. Feel free to submit a PR to the config file.

@securit : Oh, man, sorry. I am sleeping. You show how to edit config file, not any of generated meta files. My bad.
So, who is submitting this PR for default config file? I haven't used JSON types in Db, so don't want to mess something in there.

I have the same problem on dbal 2.5 and 2.6. The fix provided above is not worked.
Exception: Unknown column type "jsonb" requested. Any Doctrine type that  you use has to be registered with \Doctrine\DBAL\Types\Type::addType(). You can  get a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap() . If this error occurs during database introspection then you might have forgott en to register all database types for a Doctrine Type. Use AbstractPlatform#regi sterDoctrineTypeMapping() or have your custom types implement Type#getMappedData baseTypes(). If the type name is empty you might have a problem with the cache o r forgot some mapping information. Could not analyze class App\Model\User.

@gencer Just update your config as described by @securit. At least it worked for me.

@hohl i already did it. If i put exactly what @securit says, i get di above error. If I remove them i get first error mentioned by original issue poster. So, somehow this config changes something but not works on my environment.
I use psql-9.6rc1, doctrine-dbal "dev-master". Do you have a specific versions on this? (Note: I saw that doctrine imports 9.4 mapping from 9.4 to 10 so im sure version of db is not the case)

Quick addition:
Line 321: after =>
if($yourTypeName == 'jsonb')
                Type::addType($yourTypeName, '\Doctrine\DBAL\Types\JsonArrayType');

Line 361: after =>
```case 'json_array':
$type = 'array';
break;
fixes the problem.

Just wanted to let others know that @securit's solution worked very well for a mysql db with json field. Thank you @securit!
php artisan vendor:publish

which will create a config/ide-helper.php file.
Modify this file and change the bottom of the file to read:
    'custom_db_types' => array(
        'mysql' => [
            'json' => 'json_array',
        ]
    ),

This fixed the error
Exception: Unknown database type json requested, Doctrine\DBAL\Platforms\MySQL57Platform may not support it.
Could not analyze class App\User. <- or whatever model this would be in your case

@barryvdh custom_db_types is the solution to such custom datatypes, issue can be closed :}

authors: barryvdh gencer hohl mfn securit shehi tpraxl


text:
New preset for temporary passwords

A long time supporter has requested the beta facilitate the following:

I work for a hospital and use it for simple temporary passwords.
I had it set up to use 2x 4-letter words, first letter of each word capital, followed by 2 numbers and a symbol - meant to be easy to read and understand over the phone and immediately changed.

This is a sensible generic use-case, so I suggest it be facilitated with a new preset named something like 'phone-friendly temporary password'

@bbusschots I've added the preset, can you get back to the original requester and let him/her know it's implemented?

authors: bbusschots hepabolu

repo: bartificer/xkpasswd-js


text:
can i use directly with lib FreeStreamer to process audio

https://github.com/muhku/FreeStreamer
Actually i'm trying apply gain to particular frequency

Hi, I also saw your email, but since others might have the same question, I will answer here.
Comparing FreeStreamer to Novocaine, I see that both use "kAudioFormatLinearPCM", so in FreeStreamer it seems you should use FSPCMAudioStreamDelegate. It sounds like you are doing that already though.
If you can access the raw samples as floats, it should work. Is there a specific error message you are getting?

Wha i try is:
lazy var hp:NVPeakingEQFilter = {
        let f = NVPeakingEQFilter.init(samplingRate: 44100)!
        f.q = 2
        f.centerFrequency = 16000
        f.g = 2
        return f
    }()

    func audioStream(_ audioStream: FSAudioStream!, samplesAvailable samples: UnsafeMutablePointer<AudioBufferList>!, frames: UInt32, description: AudioStreamPacketDescription) {
        let float: UnsafeMutablePointer<Float>? = samples.pointee.mBuffers.mData?.assumingMemoryBound(to: Float.self)

        hp.filterData(float, numFrames: frames, numChannels: samples.pointee.mBuffers.mNumberChannels)
    }

if i try above code it's doing nothing.
if i try above code with little modification in FreeSteamer file: audio_stream.cpp, L:1715, i get one channel block and other channel produce noise only, there is no sound!!
        const UInt32 nFrames = outputBufferList.mBuffers[0].mDataByteSize / THIS->m_dstFormat.mBytesPerFrame;
        if (THIS->m_delegate) {
            THIS->m_delegate->samplesAvailable(&outputBufferList, nFrames, description);
        }

        // This blocks until the queue has been able to consume the packets
        THIS->audioQueue()->handleAudioPackets(outputBufferList.mBuffers[0].mDataByteSize,
                                         outputBufferList.mNumberBuffers,
                                         outputBufferList.mBuffers[0].mData,
                                         &description);

//        const UInt32 nFrames = outputBufferList.mBuffers[0].mDataByteSize / THIS->m_dstFormat.mBytesPerFrame;

//        if (THIS->m_delegate) {
//            THIS->m_delegate->samplesAvailable(&outputBufferList, nFrames, description);
//        }

without lib modification i get error like:
LuxeRadio(13191,0x1172105c0) malloc: Incorrect checksum for freed object 0x7f9f4d97c000: probably modified after being freed.
Corrupt value: 0xffffffffffe76270
LuxeRadio(13191,0x1172105c0) malloc: *** set a breakpoint in malloc_error_break to debug

Thank you for sharing the details. I have never used Swift, so that part is difficult for me to follow, but I assume you are sure that the NVPeakingEQFilter is allocated properly and not freed in between buffers / in between hp.filterData calls.
It seems the FreeStreamer samples are in int16_t, did you check that? I found this example: https://github.com/muhku/FreeStreamer/blob/master/Additions/FSFrequencyDomainAnalyzer.m#L207 Here, similar vDSP calls are used as within NVDSP, so you could use it as a starting point instead, did you take a look at this code?

Yes, this example is for analysing purpose and not for processing purpose

@satishVekariya Do you apply gain to FreeStreamer?

Yes
On Mon 5 Oct, 2020, 9:14 AM iatnam-ios, notifications@github.com wrote:

@satishVekariya https://github.com/satishVekariya Do you apply gain to
FreeStreamer?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/bartolsthoorn/NVDSP/issues/41#issuecomment-703380470,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AECN6VHUUSNJWUCEZBAI6N3SJE6KDANCNFSM4KXDH6CA
.

authors: bartolsthoorn iatnam-ios satishVekariya

repo: bartolsthoorn/NVDSP


text:
🛑 web is down

In 2e30b41, web (https://sitedoctors-in.stackstaging.com/wp) was down:

HTTP code: 403
Response time: 562 ms

Resolved: web is back up in aa29395 after 13 minutes.

repo: basharatreyaz/uptimebot


text:
Error: Couldn't launch the stream

Whenever I try to open a twitch stream I receive an error saying; "Error: Couldn't launch the stream. Failed to load plugin afreeca:".
This error has only started today, I could watch streams fine yesterday.

Well, this is clearly a livestreamer related issue. The GUI is just reacting to this error message and is then displaying it in the popup.
Try to disable the livestreamer plugin of this streaming site (afreeca) and see if it fixes this issue...

I tried opening a stream using the livestreamer cli and it turns out all my plugins were broken. I reinstalled livestreamer and I no longer receive the error. Thanks.

authors: bastimeyer xDanneee

repo: bastimeyer/livestreamer-twitch-gui


text:
Faster update time.

Is there any way to either use multithreading / or just simply improve the update time for each update?
I'm currently getting around 11.32 updates/secc and I was wondering if there is any way you could push this to around 30?

Hi, thanks for opening an issue. Was not expecting this any time soon (or at all). These are basically all the optimization issues in this repo especially #13 and maybe #4 would definitely boost this.
I'm happy to provide some guidance or maybe implement a quick and dirty version of either of those. Though I currently don't have an artnet interface anymore so I cannot test things. Of course you could also have a look yourself @LoneWalkerWolf.

Hi there, thanks for the response! I work as a lighting designer, and I stumbled across this when a client of mine asked if they could have some lights react to a presentation video. I can definitely test some things for you if necessary!
I looked at those issues, but they don't really provide any information about "how" you / I could go about fixing it. If you have any suggestions for me to try here, I would be very open to testing those.

Did you try the spacing parameter yet? This looks at every second (for 1), third (for 2), fourth (for 3), etc. pixel only when computing the screen color. That should definitely improve performance. At some point the colors might not be picked up correctly though. As for implementing. The most impact would be #13 but I'm not sure if you're familiar with Go goroutines and channels.

Just had a chance to test. The spacing parameter did indeed help. 2 gave me an update rate of around 22.48 updates/secc.
There is still a significant delay between the image on the screen flashing, and the lights responding. I do believe that goroutines might fix this, but I do not have any experience using the Go language. My primary experience is in C#, Java and Python.
I'm using this video to test: https://www.youtube.com/watch?v=JeQuelXsUYA&ab
I will upload a video of what I am talking about either tomorrow or later next week depending on when I next have time in the theatre.

Nice that the spacing did improve the rate!
I must say I tested it locally one year ago and had no issues with latency at all! 🤔 So you say the time delay from the screen to artnet is too high? Interesting. Does it start properly and the delay grows? Or does it have the delay right from the start? I will adapt the issue title if that's fine with you!

@LoneWalkerWolf I'd recommend first implementing a time-tracker that checks how much time passes from the screen update to the artnet update. This way we can be sure that this is indeed the problem.

authors: LoneWalkerWolf bauersimon

repo: bauersimon/ScreenToArtNet


text:
Background Images

I managed to add background colors in the css properties but is it possible to add background images?

CSS properties also allow you to add background images
Use property:
````background-image: url("your-image.jpg");```
CSS background-images

Seems your problem is solved @360disrupt. Otherwise just reopen this issue.

Can be closed.

authors: 360disrupt JorgeAguirreLeon dustin-H


text:
Display selections in the frontend

Currently, rekuho does not carets with length > 0 into account, and still displays them as regular carets. These should be taken into account and displayed as selections.

closed by #122

repo: bazed-editor/bazed


text:
feat: add toolchain_utils@1.0.0-beta.2

Release notes
Resolved toolchains symlinks default to the correct basename. Rather than resolved-mksquashfs, we get a mksquashfs symlink. This is especially important when the zero argument determines binary behaviour. For example, mksquashfs will ingest .tar files when the zero argument is sqfstar. This is also prevalent in multi-call binaries such as coreutils.

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (toolchain_utils) have been updated in this PR. Please review the changes.

authors: bazel-io mattyclarkson

repo: bazelbuild/bazel-central-registry


text:
RSS Feed Page not Found

[ ] I confirm that this is a issue rather than a question.

Bug report
Subscribe to Updates / Feeds leads to "Page not found"
Version
latest
Steps to reproduce
Enabling feeds in notifications -> Subscribe to feeds. Leads to "Page not found"

What is expected?
RSS Feed should be shown
What is actually happening?
Page is not found error
Other relevant information
Website is deployed on netflify

Your OS:
Node.js version:
Browser version: Google Chrom Version 78
Is this a global or local install? gloabal
Which package manager did you use for the install?

Hello @ggoddemeier. Can you attached an screenshot of the error page, including the URL

Hi,
https://status.eu-1.celonis.cloud/feeds/incidents.en.atom for Atom Feed.
https://status.eu-1.celonis.cloud/feeds/incidents.en.xml for RSS Feed.

Hi @juliomrqz,
does this help you?

baseURL was not set

authors: ggoddemeier juliomrqz

repo: bazzite/statusfy


text:
Fixed multiple formatter support for RakeTask

When configuring multiple formatters in a Rake task, it's now possible to
specify different output files for each formatter.

Coverage decreased (-0.1%) to 99.54% when pulling a0e8d189a5d2507312c90584df186dadff1f7bc2 on madkiwi:master into 76e8f88122b3277a0ae237982bc16df59aa1bb57 on bbatsov:master.

Obviously doesn't work as expected. Closing this for now, will reopen later when I get a chance to do this properly

authors: coveralls madkiwi

repo: bbatsov/rubocop


text:
[Fix #3913] Require first to fix resolution

Also fixes backus/rubocop-rspec#299

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Used the same coding conventions as the rest of the project.
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] All tests are passing.
[x] The new code doesn't generate RuboCop offenses.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Updated cop documentation with rake generate_cops_documentation (required only when you've added a new cop or changed the configuration/documentation of an existing cop).

:+1: This resolves my issue, as reported in backus/rubocop-rspec#299.

authors: backus bquorning


text:
Support PostgreSQL's own connection URI format

The URI schemes postgres and postgresql should be supported in addition to the libsql-defined pgsql (https://github.com/bbcarchdev/libsql/blob/develop/engine.c#L55)
See http://www.postgresql.org/docs/9.4/static/libpq-connect.html#LIBPQ-CONNSTRING.

Note that this code was implemented some time before PostgreSQL defined its own connection string URIs, which were defined as of PostgreSQL 9.2.

Ah right, well, just to avoid confusion that's all :)

authors: nevali simeonvandersteen

repo: bbcarchdev/libsql


text:
including webmock/rspec in any spec file results in all specs having web disabled

Given a file spec/services/foo_spec.rb with:
require 'rails_helper'
require 'spec_helper'
require 'webmock/rspec'

if I simply run bundle exec rspec to execute all tests, I get the following error from a completely different spec file (spec/controllers/admin/data_source_controller_spec.rb):
 2) Admin::DataSourcesController DELETE #destroy redirects to the field
     Failure/Error: body, ok=  Rack::Superfeedr.retrieve_by_topic_url(self.url, {format: 'json'})

     WebMock::NetConnectNotAllowedError:
       Real HTTP connections are disabled

I tried moving require webmock/rspec to both spec_helper and rails_helper immediately followed by a WebMock.disable! but that had no effect -- webmock was still enabled everywhere.
I'm assuming this is user error but I'm not understanding how I can use webmock only for certain spec files.
Also, moving the require webmock/rspec into a specific test block fixed the problem in other specs (they didn't have webmock enabled) but once the require is inside the RSpec.describe block it doesn't appear that webmock works (it didn't detect the stub I was testing for).

Is it intended/expected that require webmock/rspec anywhere (in any spec) results in it being loaded everywhere? I am thinking this is an artifact of the way that rspec loads all tests/specs ahead of time? This is probably not a webmock issue, I don't think?

@thoraxe yes, it's intended that require webmock/rspec results with WebMock being loaded everywhere.
If you take a look at webmock/rspec source, it simply loads WebMock, enables it (globally) and adds some callback to rspec.
WebMock interecepts the requests on http client level. It doesn't know where the requests came from. Whether they came from a code invoked inside rspec test or from server code that was loaded as well and there is no way to control that.
I suggest you invoke disable_net_connect! and add allow option with the urls/hosts/ports that you don't wan't to be intercepted by WebMock.

@cecilian Is the http request made from the code invoked inside the test? If yes, then perhaps there is some code that again disables the connections after the setup and before the request is invoked?
The following code works find:
WebMock.enable!

allowed_sites = [
  "https://chromedriver.storage.googleapis.com",
  "https://github.com/mozilla/geckodriver/releases",
  "https://selenium-release.storage.googleapis.com",
   "https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver"
]
WebMock.disable_net_connect!(allow_localhost: true, allow: allowed_sites)

Net::HTTP.get(URI.parse("https://chromedriver.storage.googleapis.com"))

authors: bblimke thoraxe

repo: bblimke/webmock


text:
leak-canary库文档

推荐理由 : leak-canary, 内存泄露检测
原文链接 : leakcanary。

@bboyfeiyu    ayyb1988 认领

重复了，liaoliuqiu已经翻译完了。

ok ，那就放弃这篇。 @ayyb1988

@xu6148152 我们把官方文档翻译一下好了。那篇文章已经去掉了，有两个人都翻译了

@bboyfeiyu  官方文档   liaoliuqiu也已经翻译过了
http://www.liaohuqiu.net/cn/posts/leak-canary-read-me/
把这个关闭吧。

OK 。

repo: bboyfeiyu/android-tech-frontier


text:
🐛 [BUG]:  connectable prop default should true

Is there an existing issue for this?

[X] I have searched the existing issues and this is a new bug.

Current Behavior
Handle can't connect，because connectable default is false. But I upgraded from 1.15.2 to 1.18.1，they're not compatible.
Expected Behavior
 connectable prop default should true
Steps To Reproduce
No response
Relevant log output
No response
Anything else?
No response

Mh... this would cause a different issue though, as a handle will use nodesConnectable if connectable is undefined.
Though I did notice that handles have connectable as false as their default, which isn't the intended default. The intended default value is undefined which would cause a handle to fall back to the global nodesConnectable value, which is true by default.

Please, describe it in the documentation that in order for custom nodes to work correctly, when setting the Handle, you must put connectable="true" to be able to connect.
Thanks

@tisha077 It's not gonna be required in 1.18.2, this is just an issue because connectable currently falls back to false instead of undefined (see my previous comment)

Fixed with 1.18.2, please update and let me know if you still experience issues :)

@bcakmakoglu works correctly, thanks!

authors: ZhengZhouXu bcakmakoglu tisha077

repo: bcakmakoglu/vue-flow


text:
Errors with GATK calling on exomes

Hi,
I've been trying to run GATK variant calling on 250 whole-exome samples, and I keep running into errors. I get several error messages like the one below in the log files, and the job stops logging at some point, but the processes keep running for some days afterwards, although they don't seem to produce output.
I've tried increasing memory allocation (since it's an OutOfMemoryError). I've currently got jvm_opts: ["-Xms1g", "-Xmx32g"], and the problem persists. Any help would be much appreciated!
06:55:13.193 INFO  HaplotypeCaller - Shutting down engine
[August 22, 2018 6:55:13 AM AEST] org.broadinstitute.hellbender.tools.walkers.haplotypecaller.HaplotypeCaller done. Elapsed time: 794.88 minutes.
Runtime.totalMemory()=7265714176
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at org.broadinstitute.hellbender.tools.walkers.genotyper.GenotypeAlleleCounts.alleleCountsByIndex(GenotypeAlleleCounts.java:514)
        at org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.GeneralPloidyExactAFCalculator.computeLofK(GeneralPloidyExactAFCalculator.java:276)
        at org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.GeneralPloidyExactAFCalculator.calculateACConformationAndUpdateQueue(GeneralPloidyExactAFCalculator.java:187)
        at org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.GeneralPloidyExactAFCalculator.fastCombineMultiallelicPool(GeneralPloidyExactAFCalculator.java:148)
        at org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.GeneralPloidyExactAFCalculator.combineSinglePools(GeneralPloidyExactAFCalculator.java:112)
        at org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.GeneralPloidyExactAFCalculator.computeLog10PNonRef(GeneralPloidyExactAFCalculator.java:25)
        at org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.AFCalculator.getLog10PNonRef(AFCalculator.java:33)
        at org.broadinstitute.hellbender.tools.walkers.genotyper.GenotypingEngine.calculateGenotypes(GenotypingEngine.java:255)
        at org.broadinstitute.hellbender.tools.walkers.genotyper.GenotypingEngine.calculateGenotypes(GenotypingEngine.java:210)
        at org.broadinstitute.hellbender.tools.walkers.haplotypecaller.HaplotypeCallerGenotypingEngine.assignGenotypeLikelihoods(HaplotypeCallerGenotypingEngine.java:150)
        at org.broadinstitute.hellbender.tools.walkers.haplotypecaller.HaplotypeCallerEngine.callRegion(HaplotypeCallerEngine.java:565)
        at org.broadinstitute.hellbender.tools.walkers.haplotypecaller.HaplotypeCaller.apply(HaplotypeCaller.java:218)
        at org.broadinstitute.hellbender.engine.AssemblyRegionWalker.processReadShard(AssemblyRegionWalker.java:295)
        at org.broadinstitute.hellbender.engine.AssemblyRegionWalker.traverse(AssemblyRegionWalker.java:271)
        at org.broadinstitute.hellbender.engine.GATKTool.doWork(GATKTool.java:893)
        at org.broadinstitute.hellbender.cmdline.CommandLineProgram.runTool(CommandLineProgram.java:134)
        at org.broadinstitute.hellbender.cmdline.CommandLineProgram.instanceMainPostParseArgs(CommandLineProgram.java:179)
        at org.broadinstitute.hellbender.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:198)
        at org.broadinstitute.hellbender.Main.runCommandLineProgram(Main.java:160)
        at org.broadinstitute.hellbender.Main.mainEntry(Main.java:203)
        at org.broadinstitute.hellbender.Main.main(Main.java:289)
' returned non-zero exit status 1

Bennet;
Sorry about the issues and thanks for the report. For the error you're reporting here, you're asking for 32g of memory per process which should be more than enough for this many samples, although I haven't run larger pooled variant calling with GATK4 recently since we're instead using joint calling for larger samples. A couple of questions/suggestions:

Is joint calling with gVCF intermediates an option? That should be more memory efficient approach as sample sizes increase (https://bcbio-nextgen.readthedocs.io/en/latest/contents/pipelines.html#population-calling)
What version of GATK are you running for this?
How are you running this? Is it distributed on a cluster or otherwise allocated with respect to resources? One potential issue might be that you're running out of memory due to overlapping allocation between processes. It would help to know what type of machines you run on (cores and memory) to understand how a 32Gb process allocates.

Hope this helps some with debugging.

Hi Brad,
Thanks for the suggestion - we'll give joint calling a go. This run is actually for a PhD student in the group I support, who's getting desperate for results, so I hope this solves the issue!
We're running on a single machine with 62 cores and 512Gb of RAM, which shares storage with a few other machines as part of a cluster. A somewhat idiosyncratic setup, and we'll be moving to a more standard HPC cluster soon, but that's what we've got for now. Running GATK 4.0.3.0.

authors: DrMcStrange chapmanb

repo: bcbio/bcbio-nextgen


text:
Add module framework

Refactor main nimbus.py module
Add module framework
Add command_prefix to config
Add !help command for listing available commands
Add !mcname command for looking up minecraft usernames
Add !ver command for viewing version information
Add some basic logging
Handle ctrl-c gracefully

Probably going to refactor the module/plugin framework to use classes instead of decorators.

@bcbwilla all ready for code review

repo: bcbwilla/nimbus


text:
added name resolving for jurisdiction{C,ST,L}. These are used in EV c…

In EV certificates there are three attributes that are used in the subjectDN and are not resolved as a string for an X500Name. This PR adds them.

Thanks for the patch. Merged.

authors: dghgit mtgag

repo: bcgit/bc-java


text:
Fix filter tabs on Examiner Dashboard

Issue:

bcgov/entity/issues/22592

Description of changes:

Fix Examiner Dashboard

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

/gcbrun

Temporary Url for review: https://strr-ui-dev--pr-105-jrznsj2t.web.app

repo: bcgov/STRR


text:
Draft Mines Permit OCA Bundle

Here is a draft of the Mines Permit Branch.  In looking at it, I wondered:

The data elements are all flagged as "PII" -- I'm guessing that is not correct, and that they should be "Not PII".  Perhaps a misunderstanding of what the flag meant?
I notice that the images for the permit in the Branding JSON reference the "person" credential. Is that expected?  It might well be, since it is a "Government of BC" credential, but I wanted to be sure.

Happy to merge once these questions are answered.
FYI: @Jsyro
Thanks!

Not sure the one you were using originally, but if you were using the Person credential, it would make sense that they would be PII, since… “Person” :-) .  If another one — I’d question that.  But should definitely be off in this one.
I’ll make that change.
Re: the shared images.  I’ll make copies of the images for now, and reference local copies.  I agree, there should be a common set that are used, and on the next round, we can do that.
I’ll have that done in a moment.

I notice in the Excel file that the Issuer and Issuer description and Issuer URL are missing. Are there not values we could use for those?

We'll go ahead without the extra issuer data and add it later.

@Jsyro There are some examples that may have also incorrectly added flagged attributes that are not considered PII.

authors: amanji swcurran

repo: bcgov/aries-oca-bundles


text:
Format credential names correctly on timeline

Fixes #612
Changlelog:
The credential timeline will attempt to logically display a name for credentials beginning with any explicitly mapped name defined in the credential schema (the following order for naming is applied: 'display_name', 'entity_name_assumed', 'entity_name', else the first mapped name type). If a name has not been mapped in the credential schema, the credential's topic will be used according to the same logic. If a name has not been mapped to the topic, no name will display.

It's completely API side and doesn't require indexing. Wondering if we can deploy it as a hotfix and propagate back to the main branch once reindexing is complete.

It's completely API side and doesn't require indexing. Wondering if we can deploy it as a hotfix and propagate back to the main branch once reindexing is complete.

repo: bcgov/aries-vcr


text:
R setup

Add a couple of user-facing functions that help a user set up R on a government computer. Essential most of this  but from within R, hopefully more easily and takes care of some other things.
set_home() sets the users HOME environment variable to a location on the C drive which accomplishes two things - speeds up RStudio considerably, and ensures the default package library is on the C: drive. It also copies any existing .Rprofile or .Renviron file from their previous HOME to the new HOME.
set_cran_repo() adds to (or creates if necessary) the global .Rprofile file to set https://cran.rstudio.com as the default CRAN mirror.
I tried to make both of these ensure that the changes are enacted immediately so that a restart isn't required...
@boshek if you're willing to test these out that would be great (as you have a Windows machine).

I also thought about wrapping these into a single function like setup_bcgovr() so a new user could install R and RStudio, install bcgovr, run bcgovr::setup_bcgovr() and be off to the races...

repo: bcgov/bcgovr


text:
As an Ops team member, I want to have the contact email address as a hyperlink, so that it opens up an email for me directly

Description:
The user would like to have the email ID in view mode be a clickable link that would open up a new email with the contact address auto-filled.
Wireframe of the desired outcome:

Acceptance Criteria:
Given I am a CIF project manager
When I see the contact email address in project view mode
Then that contact email address is hyperlinked
Given I am a CIF project manager
When I select the email address hyperlink
Then a new email is created in my outlook email addressed to the contact
Development Checklist:

[ ] email - when present - is a mailto:... link
[ ] Meets the DOD

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

[ ] User story is included
[ ] User role and type are identified
[ ] Acceptance criteria are included
[ ] Wireframes are included (if required)
[ ] Design / Solution is accepted by Product Owner
[ ] Dependencies are identified (technical, business, regulatory/policy)
[ ] Story has been estimated (under 13 pts)

·Definition of Done (Note: If any of these points are not applicable, mark N/A)

[ ] Acceptance criteria are tested by the CI pipeline
[ ] UI meets accessibility requirements
[ ] Configuration changes are documented, documentation and designs are updated
[ ] Passes code peer-review
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Ticket is ready to be merged to main branch
[ ] Can be demoed in Sprint Review
[ ] Bugs or future work cards are identified and created
[ ] Reviewed and approved by Product Owner

Notes:

Based on CIF team observation prior to soft launch
Derived from notes in #555

Hey team! Please add your planning poker estimate with ZenHub @BCerki @dleard @gurjmatharu @mikevespi @Sepehr-Sobhani

Thank you @mikevespi! I tested in Dev by confirmed that email address addresses are hyperlinked and when selected opens up a new email in my outlook on the following pages:

Contact page
Edit, project contacts
Create, project contacts
Was able to update and save the contact email and have that change applied to the forms.

Meets acceptance criteria.
Thank you!

authors: LindsayMacfarlane pbastia suhafa

repo: bcgov/cas-cif


text:
Request Description History out of order

When user makes edit to request description during stage Intake In progress, description history becomes out of order
Steps to Reproduce
Steps to reproduce the behavior:

create new request
move to stage intake in progress
make edits to the request description
save request
view description history

Actual/ observed behaviour/ results
first edit made in stage intake in progress gets listed as original request description, instead of the request description that was submitted from public
If first edit is made in any other stage (i.e. open, call for records) there is no problem
Also once request moves to next stage open, history is in the right order again
Expected behaviour
submitted request description should be listed as original

@nkan-aot, thanks for your work on this. Could you add an esitmate?

This fix is working. Just need an estimate and then we can close. cc @mpilchar @m-prodan

authors: lmullane nkan-aot

repo: bcgov/foi-flow


text:
issue 1657 fixed

Overview
This PR includes the following proposed change(s):
closes #1657
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Screenshots
Please add any relevant UI screenshots if applicable.
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] New and existing unit tests pass locally with my changes

/rebase

authors: hpertaia micheal-w-wells

repo: bcgov/invasivesbc


text:
Create Random Test Data > 10,000 records for FAM DEV environment

Describe the task
Generate random data for FAM Dev and Prod
Acceptance Criteria

[ ] first
[ ] second
[ ] third

Additional context

Add any other context about the task here.
Or here

What kind of random data. Lots of users? Lots of roles? Lots of applications? Not sure what this is going for. It would make more sense in the context of some kind of NFR test.

I guess loading up all the tables with data would tell us if our queries are efficient when there is lots of data.

@ConradBoydElliottGustafson I'm not clear on the purpose of this ticket. I'm closing it.

repo: bcgov/nr-forests-access-management


text:
Update Figma design for Client Modal

Describe the task
During backlog refinement, proposed changes to the client modal design were discussed:

Client type is not longer needed
The user must specify what kind of data they are searching for (acronym, client number, client name)

Acceptance Criteria

[ ] Items 1 and 2 are addressed
[ ] Changes are shown in the Figma design
[ ] Decision/rational is documented

@SLDonnelly , between client name, acronym and number, what would be the most used parameter again? The dropdown menu option will use this most used parameter already selected by default.

@mmarsoleta for searching, I would say the client name would be the first parameter used, then acronym and number

authors: SLDonnelly mmarsoleta

repo: bcgov/nr-spar


text:
Spike to learn more about RESULTS POC build and deployment

Understand Heartwood Team's work over RESULTS POC build and deployments of the current SVN codebase on GitHub.
Definition of done

[ ] Understand build

[x] Understand artifact publishing

[x] Understand pipelines

[ ] Understand deployments

Subtask of #574

Artifact publishing
Main workflow: Below there are a list of steps required to have a new version of RESULTS deployed.
Success workflow example: https://github.com/bcgov-nr-labs/results/actions/runs/7547250121/job/20546768444
(Publish) Set project id outputs

Set project version (from maven) -> project_version - E.g.: 4.33.06
Set artifact id (from maven) -> artifact_id - E.g.: results-war
Set git commit hash -> git_commit - E.g.: any-hash

(Publish) Open intention (Broker API)

Using the Broker API do a POST request to open an Intention
Get the intention ID (saved into an environment variable)
Publish the artifact on OpenShift
Set build info (from artifacts.developer.gov.bc.ca)

vcs_revision → ea377bd1e16b5a2c2a7abc1bf2e6d104b1a5d16f
vcs_message → Update pom.xml
vcs_branch → s3-335-to-337-copy
vcs_url → https://github.com/bcgov-nr-labs/results.git
artifact_type → war
artifact_sha1 → 072a6db97253f8816ba3b347d892ba6d850cb92d
artifact_sha256 → 6c9bf67ba52feee8f037abfbd6d12286aaaf4c09a8333730728cf797b2d493ed
artifact_md5 → 57e1017767d75b6e1442a105128616cb
artifact_name → results-war-4.33.06.war

Show build info in the console (double check information)
Send build info to Broker (POST request)

{"checksum": "sha256:'${ARTIFACT_SHA256}'", "name": "'${ARTIFACT_NAME}'", "size": 0, "type": "'${ARTIFACT_TYPE}'" }

Close intention

(Jenkins) Submit a job to Jenkins

Send job to Jenkins

Pipelines
There are only two jobs, they are

Publishing the generated artifact (see the other comment about publishing for more details): https://github.com/bcgov-nr-labs/results/blob/main/.github/workflows/ci.yaml#L10
Submiting a job to Jenkins: https://github.com/bcgov-nr-labs/results/blob/main/.github/workflows/ci.yaml#L149

The build
Everything is setup on the pom.xml file - https://github.com/bcgov-nr-labs/results/blob/main/source/ear/pom.xml

How: ANT build combined with maven
Java version: 8

Dependencies (Maven)

ANTLR - https://www.antlr.org/ - ANother Tool for Language Recognition

Parser generator for reading, processing and executing or translating structured text or binary files.
PS: All ANTLR dependencies are being excluded (look here)

<!-- https://mvnrepository.com/artifact/antlr/antlr -->
<dependency>
    <groupId>antlr</groupId>
    <artifactId>antlr</artifactId>
    <version>2.7.7</version>
</dependency>

ANT Contrib

A collection of tasks (and at one point maybe types and other tools) for Apache Ant.
PS: All ANT Contrib dependencies also are being excluded (look here)

<!-- https://mvnrepository.com/artifact/ant-contrib/ant-contrib -->
<dependency>
    <groupId>ant-contrib</groupId>
    <artifactId>ant-contrib</artifactId>
    <version>20020829</version>
</dependency>

Repositories

Apache Maven - https://repo.maven.apache.org/maven2/
BC Gov Nexus Apps - https://apps.nrs.gov.bc.ca/nexus/content/groups/public/

Scripts

Fill here with more information

Configuration files

Fill here with more information

Distributions

Once built, the artifact is published into the OpenShift Artifactory

Required USERNAME and PASSWORD

BCGov Developers Artifacts

https://artifacts.developer.gov.bc.ca/artifactory/cc20-results-maven-local

New Versions

Fill here with more information

References

The Apache Ant Project - https://ant.apache.org/

Java library and command-line tool whose mission is to drive processes described in build files as targets and extensions points dependent upon each other. See more on their website.

Confluence page: https://apps.nrs.gov.bc.ca/int/confluence/pages/viewpage.action?pageId=192775908


text:
Shortened Approval Cycles

User Story

As a new organizational user in progress
I want to shorten realm approval cycles
So that I can quickly integrate my production applications with a production version of the SSO solution.

Acceptance Criteria or Constraints

I'll see this or
The solution will conform to this or
Non-functional requirements

Acceptance Tests
Scenario 1: xxxxxx

GIVEN ...
WHEN ...
THEN ...

Scenario 2: xxxxxx

GIVEN ...
WHEN ...
THEN ...

Dependencies?
Team or ideally a ticket
Risks

Description
Impact
Strategy
Contingency Plan

If this does or doesn't occur by...
Then this will happen, costing $?
Mitigate, Transfer, Accept, Avoid
We will do this, if it occurs

Process Guidance
User Story
A short introductory section with the following structure:
As a: the person or role who will benefit from the feature;
I want: the feature;
so that: the benefit or value of the feature.
Acceptance Tests or also called Behaviour Driven Development Acceptance criteria
A description of each specific scenario of the narrative with the following structure:
Given: the initial context at the beginning of the scenario, in one or more clauses;
When: the event that triggers the scenario;
Then: the expected outcome, in one or more clauses.

addressed in MVP1

authors: ravi-bhatnagar zsamji

repo: bcgov/ocp-sso


text:
Research Pulumi vs Terraform

App
https://github.com/pulumi/pulumi
Action
https://github.com/marketplace/actions/pulumi-cli-action

to manage state s3 backend can be used as well with dynamodb to lock.
https://www.pulumi.com/docs/concepts/state/

Another link for deployment https://github.com/pulumi/examples/tree/master/aws-ts-hello-fargate

authors: DerekRoberts mishraomp

repo: bcgov/quickstart-aws-containers


text:
migrate test suite from example2 (harness) to unit test infrastructure

(should be self-explanatory)

Hey Berkeley, I want to assign this to myself, but Github won't let me. I may need collaborator permissions. Can you either assign this to me or give me collaborate permissions so I may assign this to myself, thanks!

It looks like only collaborators can be assigned, so I made you one.  My only hesitation is that I would like to be sure to understand everything that goes into the repository.  One nice procedure that we use on some of my other projects is to always use the ticket number in a commit message, and ensure that every commit is associated with some ticket or another.  For example, "Working on Foobar for #12032".  Github will even detect this and do nice things, like link the commit onto the ticket page.  If you write "Fixed foobar.  Closes #10235." it will also close that issue.
I'll start doing this myself too.  When everyone does it, tracking the changes is much easier.  Everyone can easily see what's changing in the code and why.

authors: bchurchill brenmcnamara

repo: bchurchill/badi-cal


text:
Query Builder method limit() not allow 0 values

CI: 3.1.9
dbdriver: sqlite3
$this->db->where ( 'ag', $kat );
$this->db->limit($limit, $offset);
$this->db->order_by('sort', 'ASC');
$query = $this->db->get("artikel");

In CI Version 3.1.9
$this->db->limit(0, 0);
limit does not return results if the first parameter is 0.
With values other than 0 a result is returned.
In CI Version 3.1.8
$this->db->limit(0, 0);
it worked.

Quite the opposite; limit(0) was ignored before 3.1.9 ... See #5471. Whatever you were trying to do with that, it was pointless.

My mistake. I thought 0 = false = no limit and that worked in version 3.1.8.
Two bugs that have mutually fixed each other ;-)

authors: narfbg tomylie

repo: bcit-ci/CodeIgniter


text:
How do you get in the slack?

I tried to enter the slack room, but I can't.

Please refer to this forum thread and reply there in case of any issues. We only deal with code here ... I didn't even know there was a CI-related Slack, so I can't help you.

authors: Goddard narfbg


text:
Exceptions userguide

Add a note to the user guide error handling page, addressing exceptions.

Restarting this, since the feature/exceptions branch is too stale.


text:
WIP Fix docs re PHP server

Fixes #1240
It looks like the PHP builtin server isn't very useful with CI4, as it doesn't process .htaccess files :(

The php spark serve command takes care of that limitation by providing a mod_rewrite type functionality...

Hmm - maybe that should be mentioned in the tutorial :-/
I'm playing with it.

The tutorial still needs changing. I haven't found a bug in the code yet, but haven't finished playing.

php spark serve helps, but I still get errors trying to serve the default page. /home and /about work fine.

Interesting. I haven't pulled down a fresh branch in a while, but I use serve for everything when I'm working on CI stuff. Maybe I'll actually have a chance this weekend to look into more.

Merging this, as it is an improvement though not a solution to the "error" situation going through the tutorial.

authors: jim-parry lonnieezell


text:
Remove wrapped dependency required mishegoss and replace with jinja2 module level imports

This will be a breaking change for Jinja2 configurations

This requires the Jinja2 engine configuration string to change from:
"render_static.backends.StaticJinja2Templates" to "render_static.backends.jinja2.StaticJinja2Templates"

repo: bckohan/django-render-static


text:
Updated API calls

Hey,
I've just gone through Freshbook's API calls and updated the source to match.
For more info, please checkout the updated History.txt.
Only thing that still needs to be done is the Client credits have an attribute for currency, haven't figured out how to pull that into the credit object.

Nice work Anlek!

authors: anlek tronathan


text:
Remove composer.phar

Not needed, obsolete.

^^

authors: LouTerrailloune nemenemsrouge


text:
Cross-validation ,plots, and eval metrics error   julia 1.8.3 and julia 1.9.0

not able to do Cross-validation, plots, and eval metrics error.
Please add example using these functions

I was able to get eval metrics and cv working - but plots don't work.
#CROSS VALIDATION
cat_features = ["x", "x", "x", "x", "x"]
cv_dataset = Pool(; data=pytable(test_data), label = test_label, cat_features = cat_features)
params = PyDict(Dict("iterations" => 200,
                    "depth" => 5,
                    "loss_function" => "Logloss",
                     "verbose" => false
                )

And here is the eval set:
#Creating Evaluation Set
eval_dataset = Pool(; data=test_data, label=test_label, cat_features = cat_features)

#INITIAL FIT MODEL
fit!(model, train_data, train_label,
    cat_features = cat_features,
    eval_set = eval_dataset,
    verbose = true,
    plot = true
)

# GET PREDICTIONS & BEST SCORE
best_iter = model.get_best_iteration()
preds = CatBoost.predict(model, test_data)
best_score = model.get_best_score()

When I run these with "plot = true" it will run successfully but no plot is generated. I tested in jupyter notebooks and in VScode.

I not sure how to get the plots working. I think the best method, for now, would just be to visualize using python. Let me know if you manage to get the plots to show within a Julia kernel, but my guess is that it'll take some work because it isn't just a matplotlib plot.
import catboost

w = catboost.MetricVisualizer('/crossentropy/')
w.start()