Replace string literals with identifier literals?

I am currently writing an example in Quint. The syntax of with is quite distracting:
            auctionState' =
                as.with("highestBid", value)
                  .with("highestBidder", sender)
                  .with("pendingReturns", newPendingReturns),

I think we have discussed this at some point. We are passing a string literal here, as e.g. highestBid would be an identifier, and it could be confused with an argument. As we all know, strings are fragile, as it is very easy to make a typo. Would it make sense to replace string literals with identifier literals, e.g., :highestBid? In this case, the example would look like:
            auctionState' =
                as.with(:highestBid, value)
                  .with(:highestBidder, sender)
                  .with(:pendingReturns, newPendingReturns),

/cc @shonfeder, @bugarela, @Kukovec, @thpani

In favor, but I have two questions 😄

Would it make sense to find a syntax that works uniformly for record type definitions and field access?
If we only introduce this for field access, people could get confused and define their record type more Ruby-esque like:

type T = { :highestBid: T_1, :highestBidder: T_2, ..., :pendingReturns: T_n }

Can we use :symbols as discriminated union tags?

Also in favor!

If we only introduce this for field access, people could get confused and define their record type more Ruby-esque like:

Actually, Ruby supports three different syntax for hashes (maps):
#1
{ highestBid: value, highestBidder: sender, pendingReturns: newPendingReturns }
#2
{ :highestBid => value, :highestBidder => sender, :pendingReturns => newPendingReturns }
#3
{ "highestBid" => value, "highestBidder" => sender, "pendingReturns" => newPendingReturns }

1 and 2 are interchangeable, while 3 is different. My point is: key: and :key => mean the same thing, and I'd rather keep our current syntax form for record constructors and teach people that :key in with stands for the key: part of the constructor.

Can we use :symbols also as discriminated union tags?

We should be able to, but we are also reformulating our representation of variants. See https://github.com/informalsystems/quint/issues/539

My point is: key: and :key => mean the same thing, and I'd rather keep our current syntax form for record constructors and teach people that :key in with stands for the key: part of the constructor.

Makes sense!

Would it make sense to find a syntax that works uniformly for record type definitions and field access?

Maybe we could introduce a special syntax for record field updates later. What I notice is that a few Quint operators require field names as string literals, and that is confusing.

while i ah in general in favor of supporting symbols/atoms, I'm slightly concerned about introducing this quirk: i think it makes our record field update syntax doubly unusual, and the asymmetry Thomas points out may add to confusion for readers.
Here are a few record update syntax examples from other languages:
Rust:
let newRec = Rec { f: newValue, ..oldRec };

Elixer:
newRec = %{oldRec | t: newValue}

OCaml:
let newRec = {oldRec with t = newVale}

Something like this would be preferable IMO, if we are gonna change the syntax in any case.

Yeah, I like this direction for record updates. Also, we had a discussion in #118.
I still do not see how we could entirely get rid of string literals/atoms/identifiers, e.g., they are used in REPL to pass operator names. In case of REPL, this could be fixed in the future, but not right now.

is the scope of this issue replacing string literals entirely, or just for record updates?

The scope of this issue is replacing string literals entirely. I just used the example of record updates, since it is the most prominent one.

ah, my mistake.
How would this impact conversion to TLA?

It should not impact the conversion to TLA+, as it is only the surface syntax. On the other hand, some TLA+ specs may become incompatible with Quint, e.g., "I have a space" would require some tricks to get translated into an identifier. However, there are very few specs that are actually using spaces or other non-standard characters.

If we want to go this way, we have to rename the type from str to something else. I like atom but that will be quite confusing for Cosmos users. Other options that I see:

ident, after all it is just an identifer,
name, may be a bit confusing,
lit for a literal.

or symbol, as @shonfeder suggested in the meeting

The problem around records has been addressed by our record update syntax, and also discussed elsewhere.
Currently or strings just are atoms, if we at some point want to add string operations and introduce a new type for atoms, we can reopen this issue.


[Bug] Tooltip showing wrong value off chart

Version
5.4.3
Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=line-gradient&code=MYewdgzgLgBAJgQygmBeGBtAUDTByAJgAYSBaIgNnIFY8AaGARkYoF06d9izLyL6mBAJztOGQiSJ9yAdgGMAzNVG5x3KbyIAOAVrYdVEnlSJCBMhSq6TpjIruUHrx0s3OWnam70YEBFLSsvF0UBIQIgow0qRgAWeQUiSPVbWgYCWMcxKNt-BkURTxyfOXzGLMMUnx0yxmTvGLMGRMLsqqpiAWJ9NobSAkYEmXqXAj98gkCi9v6FBxHo_viGIViF6QI0mBk66b6CPKZKdd4CUpgtNb3RmpghD17RpouK50XE9xOZckGGLQfKt5vkRxoJXsENMC5vkiMNrpDyMsLhF4bIaAJYldHgjKOYUdi0bD5MdUbDyLc7HCCWTTP4eoCeN87GFdtSmb87viGQjfPJFF9XNCjlTuWi4glWaKyeU-ZK3mLDhQsVKmecKK0Va5blopmzXM8ZCL5WTOn8AcbvgNZQKxgJqEaIWiCELqODipakRQklhWABuLBYEAABygAEtwGgYABvThhqAAGwApgAuaOcXBJgBmUFTeGAibAUETACd6OmYEWAB45mB4ADixYQcFDBdgCHj4AA5hWABaJmAATxgCEroYgeE4AF8nFAQCB42Gg6mY7hcFBi6HO52S7mR2OJ7hp5xEMgIImayvVxAQABXYv51MnhAAOgAtgggwAKT8YE-JhgAG7tjeiasAAlGgAB8MCflG8BIP-MBAfGIEwJOYFgU4uDNq-BYQOGkCpuIf4CHgyEgXgrBTk4lYAIKjhAy7llAA5BimtZhrhZarjAr6hmAuZVIwPwHmhTgDvRY7LkeuBnhuiaMZg5aXjxLFsbm8b8Ym3E8TAEA9iAADuADKA6vgARvOqaZu2Z5YauOF4QRinEQhpHkdpVE8ZOnBUZOvpAA
Steps to Reproduce
Use the attached minimal reproduction link or click here.

Go with the mouse over the chart, you will see the tooltip with proper information for the hovered date (e.g. on 2000-06-07 the date value is 135). Thats expected and works nicely.
Now move the mouse over to the left where there are no data points anymore. You will notice that the tooltip, no matter of the position off chart will always show the data of the first entry point of the chart (e.g. 2000-06-05 with the date value of 116).

Current Behavior
Following the steps above to reproduce the issue I can see that the tooltip when I have the cursor of the mouse off chart is always showing the first data point of the chart.
Here is also a video of the issue:
https://github.com/apache/echarts/assets/13329079/4e841e06-7694-4d92-8ddf-6c174db7fff6
Expected Behavior
I would expect that the tooltip is shown with the correct information only when I am hovering the chart where we have proper data points and that the tooltip disappears when is off chart. It would be also acceptable if the tooltip would still be shown but with information about the data at that hovered point (e.g. no data or something).
Environment
- OS: macOS 14
- Browser: Chrome Version 117.0.5938.92

Any additional comments?

Maybe this behaviour is intentional by the library by default?
Is there any option that we can use to achieve what is described above?

not-a-bug
That's default behavior for tooltip.trigger: 'axis'
Change to trigger: 'item' and showSymbol: true, OR remove xAxis.min

Thank you for your answer. I will rephrase my question then:
Is there any way to achieve the behaviour I explained above "as a bug"?
The options you mentioned are removing the tooltip altogether, also on the points where there is actual data, we don't want that. And if I remove the xAxis.min is also not what we want to achieve as imagine that the user selects a range of dates and maybe there are some dates in the past where there were no data points.
We would like the tooltip to behave the same except when moving on the area where there are no data points, there it should disappear or show that the value is 0.
Thanks again for any tips and tricks :)


iptables rule without an ip range applies to all interfaces

The current logic pretends it only applies to <IP_ADDRESS>, which means the new guestIPMustBeZero rule does not detect it properly.
This is a problem with nerdctl and containerd on Alpine. It works "by accident" on Ubuntu because the port was also bound to [::], which had an entry in /proc/net/tcp6.
This issue does not affect moby because moby doesn't rely on iptables rules but has proper entries in /proc/net/tcp.

Thanks, can we have a test?

Thanks, can we have a test?

The PR includes updates to the parsing test, so this logic is covered by a test.
If you mean an integration test for nerdctl, then it gets more complicated. As I mentioned, this work accidentally on Ubuntu because of IPv6 having an entry in /proc/net/tcp6. And the Alpine image, which does show the issue does not have containerd installed.
I guess I can apk add containerd && rc-service containerd start for this, but it is a bit weird that we can't use containerd.user: true for this.

Thanks, can we have a test?

I've added a test and verified that the test fails on with the Alpine image on both the macOS and the Linux runner.
Since it failed on both, I've removed alpine.yaml from the macOS runners again; let me know if you want to run Alpine on macOS too. It makes some sense, as Alpine has probably the largest difference to all other images, and it is the basis for both colima and Rancher Desktop.

Since it failed on both, I've removed alpine.yaml from the macOS runners again; let me know if you want to run Alpine on macOS too. It makes some sense, as Alpine has probably the largest difference to all other images, and it is the basis for both colima and Rancher Desktop.

Can be worked on a separate PR


运行demo.py时出现问题

root@DESKTOP-J2JK9EH:/mnt/c/Ubuntu/chinese_ocr-master# python demo.py
Traceback (most recent call last):
File "demo.py", line 3, in
import ocr
File "/mnt/c/Ubuntu/chinese_ocr-master/ocr.py", line 4, in
import cv2
File "/usr/local/lib/python2.7/dist-packages/cv2/init.py", line 3, in
from .cv2 import *
ImportError: libSM.so.6: cannot open shared object file: No such file or directory

你好 这个怎么解决  我也出现了ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory


Add Typescript definitions

This is less of a bug and more of a feature request; adding typescript definitions would make this library far easier to work with for Typescript users. JSDoc is nice, but code completion support with that is spotty.

This would be really great, just in case another comment helps!

+100. Typescript rocks. The non-typescript-javascript world don't realise what they are missing...

Has there been any progress on this?  I've started making my own but it doesn't cover everything yet.

@beeme1mr  Could you make yours available?

@moberemk @CharlesT100 @peternann @miguelsilv DefinitelyTyped/DefinitelyTyped#27899
It may not be merged because it isn't tested and it doesn't completely cover the package. (batch style calls and callback style calls are not in the typings) but it is a great start if you want to make a PR against my copy (dyladan/DefinitelyTyped) to help add these things. If not, I'll get to them when I have time.

@moberemk you can probably close this ticket now. Looks like the dialogflow team doesn't hardly even look at these let alone keep them cleaned up.

Unfortunately true... @beccca  pinging you because this seems like it would be a dev relations question, should this be closed or is it better to leave it open as a potentially to-be-addressed feature request?

Greetings folks!  It looks like the types are merged in definitely typed, so I'm going to go ahead and close this one out :) Please do let me know if y'all have any questions!

Got it.  We're much more likely to rewrite the library in TypeScript, so I filed #153 to track it!

That makes sense, thanks for clarifying!


Thinkong patch 1

Wrong place. Sorry :(

Consider translating the instructions themselves to Korean and experimenting, may work better

I was more on using this on my personal repos.. The pull requests were a mistake. I thought about translating the prompts but... this worked.. lol


Issues in Factor Transfer code

[ ] Check why NaN loss is coming in Factor Transfer
[ ] Currently, code uses two optimizers separately. They can be merged into one.

@aryamaanthakur can u check this?

@aryamaanthakur can u check this?

Yep


no style

i forked your project , and  in my githubPage ,the page is not have style .  why?

You probably didn't set url in your _config.yml. See #211 and #113

oh,  i am so fool ！
It can work now !
Why you'r so shrewd！
Thank you very much ！


Render CBOR diagnostic notation

Currently CBOR is being displayed using the debug output for serde_cbor::Value. This is not great,
Instead it would be good to show the CBOR diagnostic notation, described in RFC 7049 §6. Maybe this could be done via a new serde_cbor_diag crate?
As an example, the trivial message:
a1 66 73 74 61 74 75 73 f5

when output currently looks like
Object(
    {
        String(
            "status"
        ): Bool(
            true
        )
    }
)

but encoded to CBOR diagnostic notation would appear as:
{
    "status": true
}

A trivial way to improve this for now could be to output to JSON, CBOR diagnostic format is largely based on JSON anyway, it would just miss out on some of the features it doesn't support like non-string keys, tagged items, etc.

Also interesting would be a commented hex form, similar to what cbor.me supports

This is now using serde_cbor-diag for rendering. Still not great though, since serde isn't capable of representing the exact object model that CBOR uses. Looking at alternative libraries there is also cbor which would allow getting the tagged information through. I don't think it supports getting whether a value was encoded with an indefinite encoding either.
Maybe it will be best to just write a custom &[u8] -> String function.


major: remove I prefix in generateTemplateDetails

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fix(aws-cloudfront-s3): insert empty originAccessIdentity

…rement
Issue #, if available:
Currently a stack creating aws-cloudfront-s3 requires IAM permissions for OAIs even though none exist. By
inserting an explicitly empty originAccessIdentity in the S3OriginConfig we remove the CFN requirement for this privilege.
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: a5f6e0b3b9381473b902d027af7168e46885f1ad
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Stage might require a manual merge :-/

fixed conflict (by just grabbing the working config.json from the stage branch). Not surprising that merging a 4.3M json file with many changes failed to automatically merge.


Fix Sckit-learn API get_parameters bug

Add **params to BaseWrapper.get_params(self,_) to fix TypeError to fix issues #5103

I really don't see how the piece of code I have written can potentially break this test

The gzip is broken which might be caused by a failure download. Please try to trigger travis-ci again by closing and reopening this PR.

There is still a problem with skicit-learn:


Mempool

I gave you permission to merge pull request without my approval temporarily so as not to block you before I come back to this project.

Thanks


DBDAART-7247 LT_Metadata.py;  Added COPAY_WVD_IND to cleanser list, l…

…everaging TAF_Closure.set_as_null;  LT_Metadata.py:  Removed COPAY_WVD_IND  from the upper list;  LTH.py:  Removed var_set_type data cleaning function from COPAY_WVD_IND.
What is this and why are we doing it?
CCB ticket to deprecate this field by setting it to null.

Link to the Jira ticket for this change: https://jiraent.cms.gov/browse/DBDAART-####
https://jiraent.cms.gov/browse/DBDAART-7247

What are the security implications from this change?
N/A
How did I test this?
Before/After Sql visual inspection;  Notebook in ticket that runs before and after TAF LT for one month for one state, tests COPAY_WVD_IND, and regression tests all other LT fields.
Should there be new or updated documentation for this change? (Be specific.)
Handled by documentation team.
PR Checklist

[x] The JIRA ticket number and a short description is in the subject line
[x] My code follows any applicable style guides
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation

2024-06-24:   Merged changes from CCB1 into this DEV branch using pull request in the interface.  Checked all of the following recent changes to Main/CCB1 and they are present in this development branch:
Deprecate IP Copay Waived IND ->   09aea35
Deprecate RX Copay Waived IND ->  35962a41
Merge Main into CCB1
Remove DC folks from Codeowners
New Mexico Submission Type
Added Set to null function
Reconducted the testing with CCB1 and DEV whl files that include all of the changes mentioned above.   All testing is consistent with prior testing and no issues found.
https://cms-dataconnect-val.cloud.databricks.com/?o=955724715920583#notebook/1617803729690825
Merging in PR and marking this ticket as DONE.


Robot opponent

Definitly, I think we have the same ideas ^^
Indeed after I have developed the online mode I want to make a robot/computer mode.

If I do a backend game server, I can do also a bot client which create continually new games.


Alliance: Still cannot transfer Leadership

Hi there,
now the error does not appear anymore, but when someone tries to transfer the leadership, the dropdown menu appears to be empty.
Regards, BassXX

Works for me.
Note: You can only transfer leadership to member who has a rank with the right 'Can be a leader'.

Sorry, you are correct. Everything works fine!


Format of dlib detection

Great work! In the "Data pre-processing" stage, it is required that 5 facial landmarks are detected for all images. I wonder in what format should I save the results of this detection. Thanks!

Got it. It should be a 5x2 NumPy array saved using np.savetxt for each image.


Extension: Text Decoration API

An API that Onivim currently doesn't support is VSCode's text decoration API: https://code.visualstudio.com/api/references/vscode-api#DecorationRenderOptions
This is needed to support several extensions, including:

wallaby.js
Bracket pair colorizer 2 (#2491 , #2863 )
GitLens

The work required will be:

Implement msg handlers / types for the decoration API: https://github.com/onivim/vscode-exthost/blob/0d6b39803352369daaa97a444ff76352d8452be2/src/vs/workbench/api/common/extHost.protocol.ts#L283
Integrate the decoration info into our Editor model
Implement the rendering log for decorations

It seems that some of the extensions require SVG rendering in the text decoration API (at least, bracket pair colorizer does - I suspect wallaby may as well) - so it may require building out the remaining primitives in Revery: https://github.com/revery-ui/revery/blob/18eb60e6d5b99adebcf5912d05c447e83a0f7e0b/src/SVG/Revery_SVG.re

I do love those coloured brackets 😀 can’t seem to live without them these days.

This would also enable one of my favorite features that most editors seem to miss, a highlight plugin that let's you highlight different words/sequences with different colors, persistently.
The best example of this was for jedit http://plugins.jedit.org/plugins/?Highlight


Support Datetime function LOCAL DATE

Backgrounds

Kotlin JDSL does not yet support a datetime function LOCAL DATE.

Objects

Support a datetime function LOCAL DATE.

Requirements

Creates localDate() function in com.linecorp.kotlinjdsl.dsl.jpql.Jpql for supporting a datetime function LOCAL DATE.

Contribution

Please check if there is an assignee in this issue. And if it don't have an assignee, please leave comment to assign.
Please check the commit convention through the commitlint.config.js file. The commit  convention also described in the PR template.
When you use intellij, please set the code style through the .editorconfig file.
Please create the PR for develop as the base branch.
If you have any questions, please leave comment in Kotlin-JDSL Discord Channel in LINE Open Source

May I take on this issue? :D

I apologize for the late check. I have assigned this issue to you. Thanks for your help!


Unexpected strict mode reserved word

Hello
I have the following error when i lunch npm start

<EMAIL_ADDRESS>start /usr/local/src/fastprint
node start.js

/usr/local/src/fastprint/start.js:6
let config = require('./config.js');
^^^
SyntaxError: Unexpected strict mode reserved word
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
npm ERR! Linux 3.16.0-4-586
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v0.12.9
npm ERR! npm  v2.14.9
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>start: node start.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script 'node start.js'.
npm ERR! This is most likely a problem with the fastprint package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node start.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls fastprint
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /usr/local/src/fastprint/npm-debug.log
and the debug log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose node symlink /usr/bin/node
5 verbose run-script [ 'prestart', 'start', 'poststart' ]
6 info prestart<EMAIL_ADDRESS>7 info start<EMAIL_ADDRESS>8 verbose unsafe-perm in lifecycle true
9 info<EMAIL_ADDRESS>Failed to exec start script
10 verbose stack Error<EMAIL_ADDRESS>start: node start.js
10 verbose stack Exit status 1
10 verbose stack     at EventEmitter. (/usr/lib/node_modules/npm/lib/
utils/lifecycle.js:214:16)
10 verbose stack     at EventEmitter.emit (events.js:110:17)
10 verbose stack     at ChildProcess. (/usr/lib/node_modules/npm/lib/
utils/spawn.js:24:14)
10 verbose stack     at ChildProcess.emit (events.js:110:17)
10 verbose stack     at maybeClose (child_process.js:1016:16)
10 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:10
88:5)
11 verbose pkgid<EMAIL_ADDRESS>12 verbose cwd /usr/local/src/fastprint
13 error Linux 3.16.0-4-586
14 error argv "/usr/bin/node" "/usr/bin/npm" "start"
15 error node v0.12.9
16 error npm  v2.14.9
17 error code ELIFECYCLE
18 error<EMAIL_ADDRESS>start: node start.js
18 error Exit status 1
19 error Failed at the<EMAIL_ADDRESS>start script 'node start.js'.
19 error This is most likely a problem with the fastprint package,
19 error not with npm itself.
19 error Tell the author that this fails on your system:
19 error     node start.js
19 error You can get their info via:
19 error     npm owner ls fastprint
19 error There is likely additional logging output above.
20 verbose exit [ 1, true ]
Any idea ?
Thanks again

Mmm, you're on Node v0.12.9, which I don't think supports the ES6
constructs used in Fastprint.
If you upgrade your Node version and try again, it should work. If it
doesn't, go ahead and reopen this issue with any logs.
On Fri, Apr 22, 2016 at 3:09 AM, 0blar<EMAIL_ADDRESS>wrote:

Hello
I have the following error when i lunch npm start
<EMAIL_ADDRESS>start /usr/local/src/fastprint
node start.js
/usr/local/src/fastprint/start.js:6
let config = require('./config.js');
^^^
SyntaxError: Unexpected strict mode reserved word
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
npm ERR! Linux 3.16.0-4-586
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v0.12.9
npm ERR! npm v2.14.9
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>start: node start.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script 'node start.js'.
npm ERR! This is most likely a problem with the fastprint package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node start.js
npm ERR! You can get their info via:
npm ERR! npm owner ls fastprint
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/src/fastprint/npm-debug.log
and the debug log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose node symlink /usr/bin/node
5 verbose run-script [ 'prestart', 'start', 'poststart' ]
6 info prestart<EMAIL_ADDRESS>7 info start<EMAIL_ADDRESS>8 verbose unsafe-perm in lifecycle true
9 info<EMAIL_ADDRESS>Failed to exec start script
10 verbose stack Error<EMAIL_ADDRESS>start: node start.js
10 verbose stack Exit status 1
10 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/
utils/lifecycle.js:214:16)
10 verbose stack at EventEmitter.emit (events.js:110:17)
10 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/
utils/spawn.js:24:14)
10 verbose stack at ChildProcess.emit (events.js:110:17)
10 verbose stack at maybeClose (child_process.js:1016:16)
10 verbose stack at Process.ChildProcess._handle.onexit
(child_process.js:10
88:5)
11 verbose pkgid<EMAIL_ADDRESS>12 verbose cwd /usr/local/src/fastprint
13 error Linux 3.16.0-4-586
14 error argv "/usr/bin/node" "/usr/bin/npm" "start"
15 error node v0.12.9
16 error npm v2.14.9
17 error code ELIFECYCLE
18 error<EMAIL_ADDRESS>start: node start.js
18 error Exit status 1
19 error Failed at the<EMAIL_ADDRESS>start script 'node start.js'.
19 error This is most likely a problem with the fastprint package,
19 error not with npm itself.
19 error Tell the author that this fails on your system:
19 error node start.js
19 error You can get their info via:
19 error npm owner ls fastprint
19 error There is likely additional logging output above.
20 verbose exit [ 1, true ]
Any idea ?
Thanks again
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/zachlatta/fastprint/issues/4

--
Zach Latta
Hack Club |<EMAIL_ADDRESS>


Added alert to all the "Add to cart" buttons

I have added js code to create an alert saying "item added to cart" whenever we click on the Add to cart button

@Karamraj  hey i just added some js code to get an alert saying "item added to cart!" whenever we click on any Add to cart button, kindly review my PR and merge it . Looking forward to contribute on such more issues. Thanks:)


fix for case where some classes don't have predictions

Running the following code in ssd300_evaluation.ipynb for my own dataset:
evaluator = Evaluator(model=model,
                      n_classes=n_classes,
                      data_generator=dataset,
                      model_mode=model_mode)

results = evaluator(img_height=img_height,
                    img_width=img_width,
                    batch_size=4,
                    data_generator_mode='resize',
                    round_confidences=False,
                    matching_iou_threshold=0.5,
                    border_pixels='include',
                    sorting_algorithm='quicksort',
                    average_precision_mode='sample',
                    num_recall_points=11,
                    ignore_neutral_boxes=True,
                    return_precisions=True,
                    return_recalls=True,
                    return_average_precisions=True,
                    verbose=True)

mean_average_precision, average_precisions, precisions, recalls = results

Gave the following result:
Number of images in the evaluation dataset: 610

Producing predictions batch-wise: 100%|██████████| 153/153 [45:12<00:00, 17.73s/it]
Matching predictions to ground truth, class 1/3.: 100%|██████████| 121648/121648 [00:07<00:00, 16603.31it/s]
Matching predictions to ground truth, class 2/3.: 100%|██████████| 352/352 [00:00<00:00, 20737.05it/s]
No predictions for class 3/3
Computing precisions and recalls, class 1/3
Computing precisions and recalls, class 2/3
Computing precisions and recalls, class 3/3

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-7-0d14d966be9b> in <module>()
     18                     return_recalls=True,
     19                     return_average_precisions=True,
---> 20                     verbose=True)
     21
     22 mean_average_precision, average_precisions, precisions, recalls = results

~/Documents/projects/ssd_keras/eval_utils/average_precision_evaluator.py in __call__(self, img_height, img_width, batch_size, data_generator_mode, round_confidences, matching_iou_threshold, border_pixels, sorting_algorithm, average_precision_mode, num_recall_points, ignore_neutral_boxes, return_precisions, return_recalls, return_average_precisions, verbose, decoding_confidence_thresh, decoding_iou_threshold, decoding_top_k, decoding_pred_coords, decoding_normalize_coords)
    224         #############################################################################################
    225
--> 226         self.compute_precision_recall(verbose=verbose, ret=False)
    227
    228         #############################################################################################

~/Documents/projects/ssd_keras/eval_utils/average_precision_evaluator.py in compute_precision_recall(self, verbose, ret)
    765                 print("Computing precisions and recalls, class {}/{}".format(class_id, self.n_classes))
    766
--> 767             tp = self.cumulative_true_positives[class_id]
    768             fp = self.cumulative_false_positives[class_id]
    769

IndexError: list index out of range

It seems there's a bug when there are no detections for a class. When there are detections, these lines keep track of both the detections and the cumulative detection scores:
true_positives.append(true_pos)
false_positives.append(false_pos)

cumulative_true_pos = np.cumsum(true_pos) # Cumulative sums of the true positives
cumulative_false_pos = np.cumsum(false_pos) # Cumulative sums of the false positives

cumulative_true_positives.append(cumulative_true_pos)
cumulative_false_positives.append(cumulative_false_pos)

However, when there aren't any detections, these few lines append the empty true_pos and false_pos to true_positives and false_positives, respectively, but cumulative_true_positives and cumulative_false_positives remain untouched:
# In case there are no predictions at all for this class, we're done here.
if len(predictions) == 0:
    print("No predictions for class {}/{}".format(class_id, self.n_classes))
    true_positives.append(true_pos)
    false_positives.append(false_pos)
    continue

Thus, when it's time to calculate the precision-recall curve, self.cumulative_true_positives[class_id] doesn't exist.
Appending the empty true_pos and false_pos arrays to cumulative_true_pos and cumulative_false_pos, respectively, as per this merge request, seems to fix the issue.

Thanks a lot for this! It might take a bit until I find the time to test this, but it looks like you're right. It's definitely wrong the way it's implemented now, and your changes should fix it.

Glad to help! It's the least I could do as a thank you for such a nicely documented SSD implementation in Keras :)

I have run into this problem as well and it would be great if this pull request could be merged.

I have changed my  average_precision_evaluator.py as you do, but i got this error:
Number of images in the evaluation dataset: 273
Producing predictions batch-wise: 100%|██████████| 35/35 [00:44<00:00,  1.04it/s]
Matching predictions to ground truth, class 1/10.: 100%|██████████| 44551/44551 [00:01<00:00, 33243.84it/s]
No predictions for class 2/10
No predictions for class 3/10
No predictions for class 4/10
No predictions for class 5/10
No predictions for class 6/10
No predictions for class 7/10
No predictions for class 8/10
No predictions for class 9/10
No predictions for class 10/10
Computing precisions and recalls, class 1/10
Computing precisions and recalls, class 2/10
IndexError                                Traceback (most recent call last)
 in ()
18                     return_recalls=True,
19                     return_average_precisions=True,
---> 20                     verbose=True)
21
22 mean_average_precision, average_precisions, precisions, recalls = results
~/SSD/ssd_keras/eval_utils/average_precision_evaluator.py in call(self, img_height, img_width, batch_size, data_generator_mode, round_confidences, matching_iou_threshold, border_pixels, sorting_algorithm, average_precision_mode, num_recall_points, ignore_neutral_boxes, return_precisions, return_recalls, return_average_precisions, verbose, decoding_confidence_thresh, decoding_iou_threshold, decoding_top_k, decoding_pred_coords, decoding_normalize_coords)
224         #############################################################################################
225
--> 226         self.compute_precision_recall(verbose=verbose, ret=False)
227
228         #############################################################################################
~/SSD/ssd_keras/eval_utils/average_precision_evaluator.py in compute_precision_recall(self, verbose, ret)
765         # Iterate over all classes.
766         for class_id in range(1, self.n_classes + 1):
--> 767
768             if verbose:
769                 print("Computing precisions and recalls, class {}/{}".format(class_id, self.n_classes))
IndexError: list index out of range
how can i solve it?  i think it is still the same problem. Thank you very much. @JeroenDelcour @pierluigiferrari @urbanophile


Relationship's required rule is not working properly

Hello everyone!
As shown here, https://laravel-json-api.readthedocs.io/en/latest/basics/validators/#modify-resource-validation your package will check that request has "relationships" part of "data" object with correct relationship object, if I set rules in way, provided in the docs:
use CloudCreativity\LaravelJsonApi\Rules\HasMany;
use CloudCreativity\LaravelJsonApi\Rules\HasOne;
use CloudCreativity\LaravelJsonApi\Validation\AbstractValidators;

class Validators extends AbstractValidators
{
    // ...

    protected function rules($record = null): array
    {
        return [
            'title' => 'required|string|min:1|max:255',
            'content' => 'required|string|min:1',
            "another-field" => 'string|unique:posts,another_field',
            'author' => [
                'required',
                new HasOne('users'),
            ],
            'tags' => new HasMany('tags'),
        ];
    }
}

But your package will not throw the validation exception, and will try to create new model, if I send request like this:
POST /api/posts HTTP/1.1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
    "data": {
        "type": "posts",
        "attributes": {
            "title": "Hello World",
            "content": "...",
            "author": {
                "data": {
                    "type": "users",
                    "id": "123"
                }
            },
            "another-field": "..."
        }
    }
}

Relationship's 'required' rule passes, but document doesn't have "relationship" structure at all.

Hi,
Thanks for reporting this; I hadn't thought of this scenario (sending a relationship object as an attribute), and yeah, the validator will not pick up on this at the moment.
The problem is that people wanted shorter rule names, i.e. being able to just define a rule for author, rather than having to specify data.relationships.author, data.attributes.title etc which would get very verbose. So the solution was based on the JSON API rule that attributes and relationships are collectively field names, and to use field names for the validation rules.
However the unfortunate side of this is that the validation rules cannot therefore tell whether they are an attribute or a relationship as they are dealt with collectively as fields.
We might have to switch back to the verbose form of always using data.attributes and data.relationships prefixes in future versions.

Closing this as it is solved in the new laravel-json-api/laravel package. See https://laraveljsonapi.io


python310Packages.mautrix: 0.14.10 -> 0.15.5

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.mautrix is: "A Python 3 asyncio Matrix framework."
meta.homepage for python310Packages.mautrix is: "https://github.com/tulir/mautrix-python"
meta.changelog for python310Packages.mautrix is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 0.15.5 with grep in /nix/store/f61y86d3c5m4fnjjfi152f36y32n7bz7-python3.10-mautrix-0.15.5

found 0.15.5 in filename of file in /nix/store/f61y86d3c5m4fnjjfi152f36y32n7bz7-python3.10-mautrix-0.15.5

Rebuild report (if merged into master) (click to expand)

13 total rebuild path(s)

8 package rebuild(s)

8 x86_64-linux rebuild(s)
5 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
heisenbridge
mautrix-facebook
mautrix-signal
mautrix-telegram
python310Packages.mautrix
python310Packages.mautrix-appservice
python39Packages.mautrix
python39Packages.mautrix-appservice

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/f61y86d3c5m4fnjjfi152f36y32n7bz7-python3.10-mautrix-0.15.5 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.mautrix https://github.com/r-ryantm/nixpkgs/archive/c0f31fa89c4473b07aae3741a05c0ce862ae6de5.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/f61y86d3c5m4fnjjfi152f36y32n7bz7-python3.10-mautrix-0.15.5
ls -la /nix/store/f61y86d3c5m4fnjjfi152f36y32n7bz7-python3.10-mautrix-0.15.5/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages failed to build:

heisenbridge
mautrix-signal
mautrix-telegram

3 packages built:

mautrix-facebook
python310Packages.mautrix
python39Packages.mautrix

Maintainer pings
cc @nyanloutre @ma27 @sumnerevans for testing.

@ryantm I guess it's a bug in the bot that https://github.com/NixOS/nixpkgs/pull/166024 (python39Packages.mautrix: 0.14.10 -> 0.15.4) is still open, but these keep getting recreated, right?
Anyways, @sumnerevans please don't close that one!

Done by 135764ebbabbd2d2f935b0ab449b6f5eb3f1deb8.


Empty commit to trigger deploy

Checklist

[ ] I have added tests
[ ] I have updated the docs and cheatsheet
[ ] I have not broken the cheatsheet

fwiw you should be able to do this by finding the failed run in our action run history, clicking on it, and hitting re-run in the top right

fwiw you should be able to do this by finding the failed run in our action run history, clicking on it, and hitting re-run in the top right

It didn't fail; it was marked as skipped for some reason. I tried to rerun it multiple times, but it was just skipped every time. Quite strange;

i mean the test run, not the deploy. see how the test run is failed in that link I sent. The deploy will skip if the test fails. If you re-run the test and it succeeds, then the deploy should go ahead

Ah of course. Thank you!

We should work out why the tests are flaky 😅

We should work out why the tests are flaky 😅

it's actually a fairly easy fix now that we have better abstractions over fs https://github.com/cursorless-dev/cursorless/issues/2538


Figuring out $ref and $id in OAS v3.1 in general

@darrelmiller

Is it expected that two distinct OAS Schema Objects would be able to refer to each other using canonical Ids?

yes

If the above example is possible, then is it also expected that $ref objects in other parts of the OAS document can use the canonical Id?

yes

This example uses the standard OAS way of referencing a component. However, it ignores the fact that $Id has been defined. I am guessing that this is still fine.

More or less.  Technically, if the OpenAPI document were considered a JSON Schema, then the behavior is undefined.  But particularly for landing directly on the schema object with an $id, I suspect in practice most implementations will support it.  It was (or ambiguously appeared to be) required in the last few drafts.
Also, I think it would be fine if OAS had its own rules for things directly under /components/schemas.  Although I guess that would actually be more complicated for tooling vendors.
Originally posted by @handrews in https://github.com/OAI/OpenAPI-Specification/pull/1977#issuecomment-571437344

Duplicate of https://github.com/OAI/OpenAPI-Specification/issues/2092


Support to React 18 and Testing library

This project works fine with the actual dependencies but if the dependencies change to actual versions of React and remove enzyme and replaced it by @testing-library/jest-dom the project it doesn't pass the suite test.
So this steps it will follow if you want reproduce the example

Modify dependencies in package.json

{
  "name": "@module-federation/reunited",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "scripts": {
    "build": "webpack --config federated-test/webpack.test.config.js && webpack --config federated-cross-test/webpack.test.config.js",
    "webpack:test": "yarn build && webpack --config test/webpack.test.config.js",
    "jest": "jest test/bundle.test.js -u",
    "test": "yarn webpack:test && yarn jest",
    "build:demo": "cd federated-test && webpack --config ./webpack.build.config",
    "serve": "webpack --config federated-cross-test/webpack.build.config.js && webpack --config federated-test/webpack.build.config.js && concurrently \"PORT=3000 serve ./federated-cross-test/dist\" \"PORT=3001 serve ./federated-test/dist\" "
  },
  "devDependencies": {
    "jest": "28.1.0",
    "react": "18.1.0",
    "react-dom": "18.1.0",
    "synchronous-promise": "2.0.15",
    "webpack-cli": "4.9.2",
    "webpack-dev-server": "4.9.0"
  },
  "dependencies": {
    "@babel/preset-env": "7.17.10",
    "@babel/preset-react": "7.16.7",
    "@testing-library/jest-dom": "^5.16.4",
    "@testing-library/react": "^13.2.0",
    "@testing-library/react-hooks": "^8.0.0",
    "@testing-library/user-event": "^14.1.1",
    "@webpack-cli/serve": "1.6.1",
    "babel-loader": "8.2.5",
    "html-webpack-plugin": "5.5.0",
    "react-async-ssr": "0.7.2",
    "react-lazy-ssr": "0.2.4",
    "react-ssr-prepass": "1.5.0",
    "serve": "13.0.2",
    "webpack": "5.72.1",
    "webpack-node-externals": "3.0.0",
    "webpack-virtual-modules": "0.4.3",
    "workerpool": "6.2.1"
  }
}

Replace enzyme and add @testing-library/jest-dom in jestSetup.js

Remove snapshotSerializers from jest file

And this is the error

Any solution for that one? I have got exactly the same issue


Change GridDeviceMetadata qubit type to GridQubit

Proposal to change qubit types in GridDeviceMetadata to GridQubit, per @maffoo 's and @mpharrigan 's suggestion.
Looks like GridQid is not a superclass of GridQubit.
Also included a quick docstring fix to disambiguate from cirq_google.GridDevice.
@MichaelBroughton WDYT?

Seems like a good idea to me!

@mpharrigan Good point, will fix all the casts used in the codebase.

SerializableDevice technically supports both GridQubits and NamedQubits. Since it's being deprecated and all Cirq call sites of SerializableDevice has already been rerouted, I did the simplest thing of breaking qubit types other than GridQubits. Let me know if there are any breakages in downstream dependencies and I'm happy to help fix them.


[Bug]: color token with rgba isn't correctly transformed due to space

What happened?
Somehow our designer created this in tokens studio:
"active": {
  "fill": {
    "value": "rgba( {color.primary.base}, 16%)",
    "type": "color",
    "$extensions": {}
  }
}

Note the space between rgba( and {color...
This doesn't get transformed correctly as in our outputted CSS tokens we then get
--active-fill: rgba( var(--color-primary-base), 16%);

which is not valid CSS.
Maybe we can be a bit more forgiving in the syntax of those rgba strings? I can imagine more people typing it "wrong" in tokens studio.
Reproduction
No response
Expected output
--active-fill: rgba(0, 124, 178, 16%);

Version
0.9.4

Wouldn't the expected output be --active-fill: rgba( var(--color-primary-base), 16%); ?

Also, can you tell me whether --color-primary-base is a Hex color in the original? Because if it isn't, then we currently don't have any transform that matches it, we only have a color transformer for CSS that matches it if the format is rgba(hex, alpha). And then, in this case, you should get --active-fill: rgba(0, 124, 178, 16%); given that color-primary-base is a hex value. However, when you enable outputReferences, it replaces the value with the original value, replacing the reference, so then you're back with the added space...
If I understood the problem correctly, I don't really think it's on sd-transforms to fix this problem to be honest, it goes into the territory of fixing user errors (invalid value) to make it behave with CSS which isn't tolerant to that user error, which I don't think should be the goal of this project (fixing user errors for specific output platforms).

I was going to share some configurator URLs to showcase that you should get --active-fill: rgba(0, 124, 178, 16%), granted that your color primary base is a hex value, but then I ran into a bug where the color transform doesn't apply when a reference is used, which I fixed here https://github.com/tokens-studio/sd-transforms/pull/171 :) so  I did end up finding a somewhat related bug thanks to this issue, dunno if it helps though.

the example I wanted to show :P

Wouldn't the expected output be --active-fill: rgba(var(--color-primary-base), 16%); ?

No, because that would be invalid CSS. You can't put a var declaration there (alas).

Also, can you tell me whether --color-primary-base is a Hex color in the original?

Yeah, should have included it in the original post, my bad. But it is indeed a hex value.
If I remove the added space, sd-transforms does everything correctly and I get the expected output. I agree that it's more of tokens-studio problem maybe? Maybe the JSON export shouldn't allow those kinds of things?
The fact is though, that it's an easy mistake to make. Especially for users of the tokens-studio plugin who aren't that code-savvy.

but then I ran into a bug where the color transform doesn't apply when a reference is used, which I fixed here #171 :) so I did end up finding a somewhat related bug thanks to this issue, dunno if it helps though.

It probably might fix this issue due to this change:
-    matcher: token => typeof token.value === 'string' && token.value.startsWith('rgba(#'),
+    matcher: token => typeof token.value === 'string' && token.type === 'color',

I'll have to check it out once it's released 😊

I guess it's a bit annoying that putting references inside rgba() statements works fine in Figma, but doesn't work in CSS, but I'm not sure if I can do something for that on sd-transforms end, I also don't think you can turn off outputReferences for specific tokens through a filter either, that would be a nice feature I think. I'm open to suggestions though.

With designers editing the token data, we also had this case quite a few times in our project. I did a color value normalization within a custom SD transform, which took care for these whitespaces.

Maybe the JSON export shouldn't allow those kinds of things?
The fact is though, that it's an easy mistake to make. Especially for users of the tokens-studio plugin who aren't that code-savvy.

@thomasmattheussen
I think it's fine if you do it in the tokens studio plugin, it's only a problem when using outputReferences in CSS platform, so I think if we throw a warning, that should be done in style-dictionary's CSS (also SCSS/Stylus/Less?) format outputReferences step. Maybe even throw an error, because a value just flat out not working is definitely an issue that should be fixed with some urgency.
https://github.com/amzn/style-dictionary/issues/1054 I've created an issue for this.
Bit unrelated but because I know you're interested in this, I've also created an issue for calc() https://github.com/amzn/style-dictionary/issues/1055
@DarioSoller I think the issue of the "space" is fixed for a while now.
See reproduction
Closing this now but feel free to ask me to reopen if you can still reproduce an issue with spaces in color tokens or similar


Add support for Azure OpenAI service in extra-openai-models.yaml

Minor additions to openai_models.py need to be added to handle Azure OpenAI syntax for chat completions.

Works in the latest version (test on 0.11)


Question about MLAT

Hello, I wasn't sure where to ask this question, but I decided to post it here since I'm running this container.
A couple of days ago I set up my receiver, and to my satisfaction, the local dump1090 interface doesn't have any problems showing MLAT tracks of local flight school (C152) traffic (when in range). For this reason, I'm puzzled as to why those airplanes do not show up either on FlightAware, FlightRadar24, or ADSBexchange. Both FlightAware and ADSBexchange show the receiver MLAT as up and synchronised.
Edit: Additionally, it is clear by looking at my stats that at least FlightAware is receiving MLAT positions, maybe they hide all GA traffic in Spain or something...

If this is the case, my question would be why doesn't it appear on ADSBexchange, as they claim not to "censor" anything, is it perhaps because of the lower number of feeders they have?

Hi, it's probably the number of feeders.
Before I setup a better antenna I received MLAT but I was not synchronized with other receivers. Now with a better one it's much better specially on adsbex.


Tasks integration

Hi Lukas,
thanks for your work and sharing it. Was able to add it to Streamdeck right away.
However I´m missing a very important feature for timetracking in our company. For all projects you have to name a task to be able to stop the timer but tasks are not taken into account here. Are there any plans to integrate that feature?
Sadly I can´t use it for now, looking forward to your answer.
Cheers, Frederic

Unless I misunderstand what you mean with "task", I believe you can already do this, by specifying a "Timer Name".
If you check the video below, you can see that I enter "Do Work!" as Timer Name and it appears as timer description/name/task
https://user-images.githubusercontent.com/920861/132741561-6f9f3ff0-a920-408d-8279-579840ce0a6b.mp4

The time entries are build up like this:
Workspace -> check
Project -> check
Task -> not available
Description -> check

So this is the timer activated via Stream Deck

And this is how it should be when Tasks are available

Hope my explanation is good enough, any further questions I´m more than happy to help.

Oh, I hadn't seen this before. Yes, I'll look into it 🙂

Would you expect that if you enter a Task that doesn't exist yet and start the timer, that the task is created?

Just released a new version that brings support for tasks: https://github.com/eXpl0it3r/streamdeck-clockify/releases/tag/1.3
Let me know if this is what you hoped for or if there's anything else that should be added -- feel free to open a new issue then.

That was quick, thanks for the update, it works perfectly :)

Glad to hear that! 😊


Bug with version go.temporal.io/api v1.19

Expected Behavior
A replay runs
Actual Behavior
A replay immediately exits without running code
Steps to Reproduce the Problem

Create a workflow
Download replay
Replay with replayer.ReplayWorkflowHistoryFromJSONFile

Used to work with version go.temporal.io/api v1.18.1.
Specifications

Version: Ventura 13.1
Platform: Mac

go.temporal.io/api is not related to workflow replay. Can you please clarify the steps to reproduce the problem you saw and confirm you are running on the latest sdk-go version 1.22.x?

Hi
I am running go.temporal.io/sdk v1.21.1. If I alter my go mod file to use go.temporal.io/api v1.19 it wont work, if I use go.temporal.io/api v1.18.1 it works. So it is very clear it's related to that.

Can you please clarify the steps to reproduce the problem you saw? for example a short reproduction and history that fails to replay in the latest SDK release

What is the best way to create a reproduction since it requires a running temporal and the history file

could you please test replay again with the latest version of the SDK  go get go.temporal.io/sdk@master we recently fixed a bug that could be related.

Came across this thread, I'd like to apply the fix, but when I do go get go.temporal.io/sdk@master or use v1.22.1, seems like I'm facing a bunch of issues with server/api/persistence:
# go.temporal.io/server/api/persistence/v1
../../../../go/pkg/mod/go.temporal.io/server@v1.20.2/api/persistence/v1/tasks.pb.go:307:22: undefined: taskqueue.VersionIdNode
../../../../go/pkg/mod/go.temporal.io/server@v1.20.2/api/persistence/v1/tasks.pb.go:311:26: undefined: taskqueue.VersionIdNode
../../../../go/pkg/mod/go.temporal.io/server@v1.20.2/api/persistence/v1/tasks.pb.go:346:51: undefined: taskqueue.VersionIdNode
../../../../go/pkg/mod/go.temporal.io/server@v1.20.2/api/persistence/v1/tasks.pb.go:353:55: undefined: taskqueue.VersionIdNode
../../../../go/pkg/mod/go.temporal.io/server@v1.20.2/api/persistence/v1/tasks.pb.go:722:28: invalid operation: this.CurrentDefault != nil (operator != not defined on untyped nil)
../../../../go/pkg/mod/go.temporal.io/server@v1.20.2/api/persistence/v1/tasks.pb.go:989:25: invalid operation: m.CurrentDefault != nil (operator != not defined on untyped nil)
../../../../go/pkg/mod/go.temporal.io/server@v1.20.2/api/persistence/v1/tasks.pb.go:1149:25: invalid operation: m.CurrentDefault != nil (operator != not defined on untyped nil)
../../../../go/pkg/mod/go.temporal.io/server@v1.20.2/api/persistence/v1/tasks.pb.go:1987:27: invalid operation: m.CurrentDefault == nil (operator == not defined on untyped nil)
../../../../go/pkg/mod/go.temporal.io/server@v1.20.2/api/persistence/v1/tasks.pb.go:1988:29: undefined: taskqueue.VersionIdNode
../../../../go/pkg/mod/go.temporal.io/server@v1.20.2/api/persistence/v1/tasks.pb.go:2023:57: undefined: taskqueue.VersionIdNode
../../../../go/pkg/mod/go.temporal.io/server@v1.20.2/api/persistence/v1/tasks.pb.go:2023:57: too many errors

Unable to find a version I can use for go.temporal.io/server as no matter which version I will get the errors.
v1.19.X, v1.20.X, 1.21.X are fine I believe. May I know how to resolve this? Thank you!

Likely related to https://github.com/temporalio/sdk-go/issues/1091


Unable to change output format in 1.14.3

I'm trying to configure zigbee2mqtt with the following config field:
experimental:
  output: 'attribute_and_json'

but seems like it does not work, and i've got the message in the supervisor logs:
20-04-18 01:31:57 WARNING (MainThread) [supervisor.addons.validate] Unknown options experimental

I am using HassOS 4.12 and addon version 1.14.3

@mozoh can you please post your add-on config?

data_path: /config/zigbee2mqtt
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: 'mqtt://core-mosquitto'
  user: mqtt
  password: my mqtt password
serial:
  port: /dev/ttyACM1
advanced:
  pan_id: 6754
  channel: 11
  network_key: my network key
  availability_blacklist: []
ban: []
whitelist: []
queue: {}
socat:
  enabled: false
  master: 'pty,raw,echo=0,link=/dev/ttyZ2M,mode=777'
  slave: 'tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5'
  restartdelay: 1
  initialdelay: 1
  options: '-d -d'
  log: false
experimental:
  output: attribute_and_json

According to (docs)[https://www.zigbee2mqtt.io/information/configuration.html] you should have:
experimental:
  output: 'json'

Please read the docs more careful:
# Optional: experimental options
experimental:
  # Optional: MQTT output type: json, attribute or attribute_and_json (default: shown below)
  # Examples when 'state' of a device is published
  # json: topic: 'zigbee2mqtt/my_bulb' payload '{"state": "ON"}'
  # attribute: topic 'zigbee2mqtt/my_bulb/state' payload 'ON"
  # attribute_and_json: both json and attribute (see above)
  output: 'json'

I need to use exactly attribute_and_json

You need to use ' around your value like:
experimental:
  output: 'attribute_and_json'

Also keep in mind that this repository is for zigbee2mqtt home assistant addon. The settings discussed and considering you're changing the actual yaml hint that you should be adressing such issues in http://github.com/koenkk/zigbee2mqtt

But hassio automatically removes '' on config save.
Btw, the issue is:
20-04-18 01:31:57 WARNING (MainThread) [supervisor.addons.validate] Unknown options experimental

and not the even output field

Ok, I tested this out and it seems the problem is missing support for output inside experimental. See: https://github.com/danielwelch/hassio-zigbee2mqtt/blob/master/zigbee2mqtt/config.json#L146
There must have been something wrong in your config because the error should have been:
20-09-17 13:34:04 WARNING (MainThread) [supervisor.addons.validate] Unknown options output
This requires a PR to fix.

I've added https://github.com/danielwelch/hassio-zigbee2mqtt/pull/389 to support this.

closed by #389, please re-open if still having issues.


docs(readme): update badges

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@e3cdc59). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #5   +/-   ##
=======================================
  Coverage        ?   99.51%
=======================================
  Files           ?        3
  Lines           ?      207
  Branches        ?       66
=======================================
  Hits            ?      206
  Misses          ?        1
  Partials        ?        0

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 e3cdc59...1c0bb51. Read the comment docs.


Add missing validation on token refresh mutation

I want to merge this change because adding missing validation on TokenRefresh mutation when refreshToken is provided by the cookie.

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-4652 Missing validation on TokenRefresh mutation when refreshToken is provided by the cookie.


Comment in list results in error

Suppose I have the following text provided to jinja2.Template.
{% set a_list = [
    "a",
    # "b",
    "c",
] %}
{{ a_list[-1] }}

It will complain that the # is improper syntax with this exception.
TemplateSyntaxError: unexpected char u'#' at 32

As soon as the commented line is remove the problem goes away.
<Template memory:...>

Here is the question. Is this acceptable jinja syntax or is this a bug?

cc @pelson

I don't think Jinja supports comments within statements.

So, let me explain the use case here. We added a list and we would like to add one element to that list in the future, but we realize it does not work now. How can we leave it in the list, but not include it until we can support it.

This is the intended behavior. Jinja has no inline comments.


Signup folder moved to authentication folder

🗃 Github Issue Or Explanation for this PR. (What is it supposed to do and Why is needed)
No issue
✅ Checklist

[x] Github issue details are up to date for people to QA.
[x] I have tested all my changes.

🕵♂ Notes for Code Reviewer
Just files moved.
👯♀ Paired with
"nobody"

Remember to move same file on i18n, I try to do it but got an error trying to push the code to your branch

thanks to remember, fixed.


About the generated image quality

Whether providing FG to generate BG or providing BG to generate FG, the provided part in the result has much worse quality than the original, and the generated part in the result also has degraded quality than generating alone. Is this the expected behavior?

Whether providing FG to generate BG or providing BG to generate FG, the provided part in the result has much worse quality than the original, and the generated part in the result also has degraded quality than generating alone. Is this the expected behavior?

yea im finding the same thing, but i am using SDXL lightning, running on 6gb vram... :( image size 512x512


Update KEDA to 2.4.0

Signed-off-by: Engin Diri<EMAIL_ADDRESS>Update KEDA to version 2.4.0
https://github.com/kedacore/keda/releases/tag/v2.4.0
Thank you for wanting to submit a Pull Request to the Civo Kubernetes Marketplace repository!
If your pull request concerns an existing Marketplace application, please make sure you have:

[x] Notified the Maintainer of the application in this pull request so that they are aware of your proposal.
[x] Outlined the changes you are proposing, and the reasons these are required (e.g. stability, compatibility with new versions of Kubernetes implementations, etc).
[x] Tested that the application works with the proposed updates applied (including a screenshot)

Install:

Delete:

LGTM


Add asList to HostnameField in model

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
[X] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
[X] I have searched the existing issues and I'm convinced that mine is new.
Is your feature request related to a problem? Please describe.
Like described in plugin PR I need the asList parameter in Model also for HostnameField:
https://github.com/opnsense/plugins/pull/1871
I use both variants here:
https://github.com/mimugmail/plugins/blob/patch-6/net/chrony/src/opnsense/mvc/app/models/OPNsense/Chrony/General.xml
But it only works for NetworkField, other gives a validation error

@mimugmail what kind of error do you see when using the model?  setAsList() is already in there and seems to be working as a charm on my end (tried it on another existing model). When set, it should return the item as a list when inspecting the network traffic.
   .....
    "peers": {
      "0.opnsense.pool.ntp.org": {
        "value": "0.opnsense.pool.ntp.org",
        "selected": 1
      }
    },
   .....

https://github.com/opnsense/core/blob/a73b211d0a2a935b807997fc9b45c59e3f1ea7cc/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/HostnameField.php#L95-L106

Hi Ad,
on my end I get:

This is my model:
<model>
    <mount>//OPNsense/chrony/general</mount>
    <description>Chrony configuration</description>
    <version>0.0.1</version>
    <items>
        <enabled type="BooleanField">
            <default>0</default>
            <Required>Y</Required>
        </enabled>
        <port type="PortField">
            <default>323</default>
            <Required>Y</Required>
        </port>
        <peers type="HostnameField">
            <default>0.opnsense.pool.ntp.org</default>
            <Required>Y</Required>
            <asList>Y</asList>
        </peers>
        <allowednetworks type="NetworkField">
            <Required>N</Required>
            <asList>Y</asList>
        </allowednetworks>
    </items>
</model>

For allowednetworks it works fine ...

Hi Michael, can you dump the request and response content from the network? (both json objects)

argh ... I foget to add <FieldSeparator>,</FieldSeparator>
Sorry for wasting your valueable time :(

hehe, things happen. let's call this case closed then :)


I am not sure what to put in

I don't really understand what I am supposed to put in
registry name: , directory name: and executable name:
is what I put in them important or can it be anything?

anything :) it's the name that will be saved in the registry for the startup


Fix mobile_url for Websites in the search API (bug 1179841)

https://bugzilla.mozilla.org/show_bug.cgi?id=1179841

Looks good, tried it out locally also and it works for me. r+


Detect humans and Hololens simultaneously

Hello to all.
I read the following example in its entirety and wrote a similar program:
[](https://github.com/OlafenwaMoses/ImageAI/blob/master/imageai/Detection/Custom/CUSTOMDETECTION.md
https://github.com/OlafenwaMoses/ImageAI/blob/master/imageai/Detection/Custom/CUSTOMDETECTIONTRAINING.md
)
Now, I want to be able to recognize the human position in addition to the Hololens , what should I do?
In the example above, only the Hololens can be detected in the image, how can other objects be detected in the image?
Thanks

Checkout this tutorial https://medium.com/deepquestai/train-object-detection-ai-with-6-lines-of-code-6d087063f6ff
In short:

Make a dataset for humans.
Combine hololens and humans datasets into one.
Everything else is almost the same as in the tutorial I linked but change the line object_names_array = ["hololens"] to object_names_array = ["hololens", "human"]. (note that "human" should be same label as in your dataset).

If it solved your issue you should close it.

Thanks.
Do I have to retrain humans to the YOLO ?!!

@beginner1393 If you refer to a 'person' class which is 1 of 50 (or so) classes that are already trained in a given pretrained model then the answer is probably yes .
As I understand when using transfer learning you need to train/retrain all classes you want to classify.
I could be wrong so if anyone else knows better or it becomes a feature please correct me


Let's make GitHub happy by correcting its name

😄

@PeterDaveHello Could you please rebase this PR, it seems github is stuck and I can't merge it at the moment.

Looks fine now?


I199 add datadog

Adds datadog to production environment
PR currently does logging for nginx
related to #199

Figured out why I was getting an error on the cdhweb playbook - that playbook does not have become=true by default, but all of the others do. I found the appropriate syntax to apply to the datadog task and playbook completed successfully, and I'm starting to see cdhweb logs in datadog now.


Add Cartoonify Image using K means Clustering Algorithm

This project would be one of such inspiration which cartoonizes images and videos using only core OpenCV filters and functions.It also will be using a K-means clustering algorithm to compress the image. This clustering gives it the basic cartoonish tinge it requires.
Algorithm- K_Means Clustering
Filters-Bilateral Filter, Contours, erode, Canny(edge detection)

@akshitagupta15june can I work on this?


Suggestion: prefix generated filenames

Generated filenames using the 'resize' filter are generally filename_[width]x[height].jpg. This makes it hard to tell them apart from "original" files in the uploads-folder.
I made a filter called 'prefix' that prefixes a filename. I use it to rename all my resized files, so they are 'resized_filename_widthxheight.jpg'.
I was wondering if anyone would find this useful. It might be standard behavior of the resize-filter.
 $twig->addFilter('prefix', new Twig_Filter_Function(function($src, $prefix) {
	        $oldFile = ABSPATH . TimberURLHelper::get_rel_url($src);
	        $newFilename = dirname($oldFile) . '/' . $prefix . basename($oldFile);
	        if (file_exists($oldFile) && !is_dir($oldFile) && !file_exists($newFilename)) {
	            rename($oldFile, $newFilename);
	        }
	        $newSrc = dirname($src) . '/' . $prefix . basename($oldFile);
                return $newSrc;
  }));

@gchtr I also think Timber resizes should live in another folder but let's discuss this when we'll be removing the image resize part from Timber :)


Tests fail with the newest version of image

>cargo t
   Compiling convolve2d v0.1.0 (/home/pcm/git/convolve2d)
error[E0277]: the trait bound `convolve2d::DynamicMatrix<convolve2d::SubPixels<u8, 3>>: From<ImageBuffer<Rgb<u8>, Vec<u8>>>` is not satisfied
  --> examples/blur.rs:30:10
   |
30 |         .into();
   |          ^^^^ the trait `From<ImageBuffer<Rgb<u8>, Vec<u8>>>` is not implemented for `convolve2d::DynamicMatrix<convolve2d::SubPixels<u8, 3>>`, which is required by `ImageBuffer<Rgb<u8>, Vec<u8>>: Into<_>`
   |
   = note: required for `ImageBuffer<Rgb<u8>, Vec<u8>>` to implement `Into<convolve2d::DynamicMatrix<convolve2d::SubPixels<u8, 3>>>`

error[E0277]: the trait bound `convolve2d::DynamicMatrix<convolve2d::SubPixels<u8, 1>>: From<ImageBuffer<Luma<u8>, Vec<u8>>>` is not satisfied
  --> examples/edge_detection.rs:26:10
   |
26 |         .into();
   |          ^^^^ the trait `From<ImageBuffer<Luma<u8>, Vec<u8>>>` is not implemented for `convolve2d::DynamicMatrix<convolve2d::SubPixels<u8, 1>>`, which is required by `ImageBuffer<Luma<u8>, Vec<u8>>: Into<_>`
   |
   = note: required for `ImageBuffer<Luma<u8>, Vec<u8>>` to implement `Into<convolve2d::DynamicMatrix<convolve2d::SubPixels<u8, 1>>>`

error[E0308]: mismatched types
   --> examples/edge_detection.rs:42:21
    |
42  |     GrayImage::from(convolution)
    |     --------------- ^^^^^^^^^^^ expected `ImageBuffer<Luma<...>, ...>`, found `DynamicMatrix<SubPixels<..., 1>>`
    |     |
    |     arguments to this function are incorrect
    |
    = note: expected struct `ImageBuffer<Luma<u8>, Vec<u8>>`
               found struct `convolve2d::DynamicMatrix<convolve2d::SubPixels<u8, 1>>`
note: associated function defined here
   --> /home/pcm/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/convert/mod.rs:585:8
    |
585 |     fn from(value: T) -> Self;
    |        ^^^^

error[E0308]: mismatched types
   --> examples/blur.rs:42:20
    |
42  |     RgbImage::from(convolution)
    |     -------------- ^^^^^^^^^^^ expected `ImageBuffer<Rgb<...>, ...>`, found `DynamicMatrix<SubPixels<..., 3>>`
    |     |
    |     arguments to this function are incorrect
    |
    = note: expected struct `ImageBuffer<Rgb<u8>, Vec<u8>>`
               found struct `convolve2d::DynamicMatrix<convolve2d::SubPixels<u8, 3>>`
note: associated function defined here
   --> /home/pcm/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/convert/mod.rs:585:8
    |
585 |     fn from(value: T) -> Self;
    |        ^^^^

Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `convolve2d` (example "edge_detection") due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `convolve2d` (example "blur") due to 2 previous errors

Thanks for the ticket here! I'll try to take a look at this when I have time over the next week.

If I have some time I'll take a look.

Hey, I finally had a sec to look at this. It looks like the problem was coming in because the image library dropped BGR support in v0.24. (I wrote this during v0.23, and the current version is v0.25)
I've updated the dependencies for a patch release and removed the pieces that are no longer supported (removing API in a patch doesn't feel good with semver, but I'm not sure what else to do; if it's broken, it should be fixed.).
If you get a chance, can you try using the main branch of this repo as your dependency and double check that these updates fix things for you?
Thanks

Thanks for that!
Sadly I don't have a good codebase to check it with but I can say that all the tests work on my side with the new version of image.


Add Web framework/bundler info to documentation (and minor changes)

Provide information about using this library with web frameworks, most importantly about configuring bundlers for static exports with custom protocols.
Also made some overall layout changes to the documentation.

For now I would like to explore modifying the library itself to be more flexible with web frameworks, rather than the other way around (documenting web framework configuration).


Stitching Unexpected end of Stream, the content may have already been read by another component.

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
When upgrading to version 13.0.0-preview.24, drag Stiching to work on the gateway.
Аor any request where stitching is used, I get this error Unexpected end of Stream, the content may have already been read by another component.
ASP.NET core 6
Steps to reproduce

Relevant log output
"stackTrace": "   at Microsoft.AspNetCore.WebUtilities.MultipartReaderStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)\r\n
 at Microsoft.AspNetCore.WebUtilities.StreamHelperExtensions.DrainAsync
(Stream stream, ArrayPool`1 bytePool, Nullable`1 limit, CancellationToken cancellationToken)\r\n
at Microsoft.AspNetCore.WebUtilities.MultipartReader.ReadNextSectionAsync(CancellationToken cancellationToken)\r\n
  at HotChocolate.Stitching.Execution.HttpPostBatchStream.GetAsyncEnumerator(CancellationToken cancellationToken)+MoveNext()\r\n
 at HotChocolate.Stitching.Execution.HttpPostBatchStream.GetAsyncEnumerator(CancellationToken cancellationToken)+MoveNext()\r\n
 at HotChocolate.Stitching.Execution.HttpPostBatchStream.GetAsyncEnumerator(CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()\r\n
   at HotChocolate.Stitching.Execution.RemoteRequestScheduler.ExecuteBufferedRequestBatchAsync(CancellationToken cancellationToken)\r\n
  at HotChocolate.Stitching.Execution.RemoteRequestScheduler.ExecuteBufferedRequestBatchAsync(CancellationToken cancellationToken)\r\n
   at HotChocolate.Stitching.Processing.DelegateResolve.ExecuteQueryAsync(IResolverContext context, IQueryRequest request, String schemaName)\r\n
   at HotChocolate.Stitching.Processing.DelegateResolve.InvokeAsync(IMiddlewareContext context)\r\n   at HotChocolate.Stitching.Processing.DelegateResolve.InvokeAsync(IMiddlewareContext context)\r\n
   at HotChocolate.Utilities.MiddlewareCompiler`1.ExpressionHelper.AwaitTaskHelper(Task task)\r\n   at HotChocolate.Execution.Processing.Tasks.ResolverTask.ExecuteResolverPipelineAsync(CancellationToken cancellationToken)\r\n
   at HotChocolate.Execution.Processing.Tasks.ResolverTask.ExecuteResolverPipelineAsync(CancellationToken cancellationToken)\r\n
   at HotChocolate.Execution.Processing.Tasks.ResolverTask.TryExecuteAsync(CancellationToken cancellationToken)\r\n
  at HotChocolate.Execution.Processing.Tasks.ResolverTask.TryExecuteAsync(CancellationToken cancellationToken)"

Additional Context?
No response
Product
Hot Chocolate
Version
13.0.0-preview.24

@Burzumm  That is expected on v13 previews. We work on stitching on these previews so it's highly likely not working properly at the moment. If you use stitching we recommend to not use the 13 previews
Thanks for reporting though


Add 1.16.3

We're adding Rock images for Cilium 1.16.3.

Building cilium-envoy currently fails because of a checksum validation error, need to investigate further.
2024-11-07 08:50:49.145 :: 2024-11-07 08:50:31.600 :: + make bazel-bin/cilium-envoy
2024-11-07 08:50:49.145 :: 2024-11-07 08:50:31.605 :: BUILDING on amd64 for amd64 using //bazel:linux_x86_64
2024-11-07 08:50:49.145 :: 2024-11-07 08:50:31.616 :: bazel/setup_clang.sh /usr/lib/llvm-15
2024-11-07 08:50:49.145 :: 2024-11-07 08:50:31.622 :: 2024/11/07 08:50:31 Downloading https://releases.bazel.build/6.1.0/release/bazel-6.1.0-linux-x86_64...
2024-11-07 08:50:49.145 :: 2024-11-07 08:50:34.583 :: Extracting Bazel installation...
2024-11-07 08:50:49.145 :: 2024-11-07 08:50:36.138 :: Starting local Bazel server and connecting to it...
2024-11-07 08:50:49.145 :: 2024-11-07 08:50:37.636 :: echo "build --config=clang" >> clang.bazelrc
2024-11-07 08:50:49.145 :: 2024-11-07 08:50:37.640 :: bazel  build --platforms=//bazel:linux_x86_64 --config=release //:cilium-envoy
2024-11-07 08:50:49.145 :: 2024-11-07 08:50:37.740 :: Loading:
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:38.742 :: Loading:
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:42.141 :: Loading:
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:43.221 :: Loading:
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:44.480 :: Loading:
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:45.512 :: Loading:
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:46.743 :: Loading:
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:47.826 :: Loading:
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:48.221 :: INFO: Repository com_googlesource_googleurl instantiated at:
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:48.221 ::   /root/parts/cilium-envoy/build/WORKSPACE:64:19: in <toplevel>
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:48.221 ::   /root/.cache/bazel/_bazel_root/32d0ba745f75b1b1f5ce6a9df63974e5/external/envoy/bazel/repositories.bzl:301:32: in envoy_dependencies
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:48.223 ::   /root/.cache/bazel/_bazel_root/32d0ba745f75b1b1f5ce6a9df63974e5/external/envoy/bazel/repositories.bzl:1042:26: in _com_googlesource_googleurl
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:48.223 ::   /root/.cache/bazel/_bazel_root/32d0ba745f75b1b1f5ce6a9df63974e5/external/envoy/bazel/repositories.bzl:30:23: in external_http_archive
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:48.224 ::   /root/.cache/bazel/_bazel_root/32d0ba745f75b1b1f5ce6a9df63974e5/external/envoy_api/bazel/envoy_http_archive.bzl:16:17: in envoy_http_archive
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:48.224 :: Repository rule http_archive defined at:
2024-11-07 08:50:49.146 :: 2024-11-07 08:50:48.224 ::   /root/.cache/bazel/_bazel_root/32d0ba745f75b1b1f5ce6a9df63974e5/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
2024-11-07 08:50:49.147 :: 2024-11-07 08:50:48.228 :: WARNING: Download from https://storage.googleapis.com/quiche-envoy-integration/dd4080fec0b443296c0ed0036e1e776df8813aa7.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Checksum was fc694942e8a7491dcc1dde1bddf48a31370a1f46fef862bc17acf07c34dc6325 but wanted 59f14d4fb373083b9dc8d389f16bbb817b5f936d1d436aa67e16eb6936028a51
2024-11-07 08:50:49.147 :: 2024-11-07 08:50:48.229 :: ERROR: An error occurred during the fetch of repository 'com_googlesource_googleurl':
2024-11-07 08:50:49.147 :: 2024-11-07 08:50:48.229 ::    Traceback (most recent call last):
2024-11-07 08:50:49.147 :: 2024-11-07 08:50:48.229 ::   File "/root/.cache/bazel/_bazel_root/32d0ba745f75b1b1f5ce6a9df63974e5/external/bazel_tools/tools/build_defs/repo/http.bzl", line 132, column 45, in _http_archive_impl
2024-11-07 08:50:49.147 :: 2024-11-07 08:50:48.229 ::     download_info = ctx.download_and_extract(
2024-11-07 08:50:49.147 :: 2024-11-07 08:50:48.230 :: Error in download_and_extract: java.io.IOException: Error downloading [https://storage.googleapis.com/quiche-envoy-integration/dd4080fec0b443296c0ed0036e1e776df8813aa7.tar.gz] to /root/.cache/bazel/_bazel_root/32d0ba745f75b1b1f5ce6a9df63974e5/external/com_googlesource_googleurl/temp14335759376484789142/dd4080fec0b443296c0ed0036e1e776df8813aa7.tar.gz: Checksum was fc694942e8a7491dcc1dde1bddf48a31370a1f46fef862bc17acf07c34dc6325 but wanted 59f14d4fb373083b9dc8d389f16bbb817b5f936d1d436aa67e16eb6936028a51
2024-11-07 08:50:49.147 :: 2024-11-07 08:50:48.230 :: ERROR: /root/parts/cilium-envoy/build/WORKSPACE:64:19: fetching http_archive rule //external:com_googlesource_googleurl: Traceback (most recent call last):

We're hitting this: https://github.com/envoyproxy/envoy/issues/36563


fix mismatch of the basicData property

Description
Talk about the great work you've done!
What's included?

One
Two
Three

Test Steps

[ ] do this
[ ] then this
[ ] finally this

General Tests for Every PR

[ ] ng serve --aot still works.
[ ] npm run lint passes.
[ ] npm test passes and code coverage is not lower.
[ ] npm run build still works.

Screenshots or link to CodePen/Plunker/JSfiddle

Thanks for that!


Configure more than ten accounts and the programme will exit automatically.

There are no errors. The programme exits automatically.


[BUG] window.appInsights is undefined

Edit
So apparantly this isn't a bug, but it's still very confusing since it doesn't work the way that's described in the deocumentation. The documentation needs to be updated to mention that the npm version doesn't populate window.appInsights, so it needs to be exported to be used in other components. See this comment below for an example: https://github.com/microsoft/ApplicationInsights-JS/issues/1951#issuecomment-1329154828
Original description
Description/Screenshot
window.appInsights is undefined, so I'm unable to use any appInsights methods in other files than the one where I declared appInsights. I'm using Svelte if that matters, and appInsights is initialized in App.svelte
in vscode:

in google chrome:

code:
    const appInsights = new ApplicationInsights({
      config: {
        connectionString:
          process.env.AZURE_APPLICATION_INNSIGHTS_CONNECTION_STRING,
      },
    });
    appInsights.loadAppInsights();
    appInsights.trackPageView(); // Manually call trackPageView to establish the current user/session/pageview

    window.appInsights.trackEvent('Test');

error messages:

Property 'appInsights' does not exist on type 'Window & typeof globalThis'.ts(2339)

App.svelte:29 Uncaught TypeError: Cannot read properties of undefined (reading 'trackEvent')
at instance (App.svelte:29:24)
at init (index.mjs:1997:11)
at new App (App.svelte:45:40)
at main.js:3:13
at main.js:5:2

Steps to Reproduce

OS/Browser: Windows 10 / Chrome Version 107.0.5304.107 (Official Build) (64-bit)
SDK Version [e.g. 22]: 2.8.9
How you initialized the SDK: npm-based

Expected behavior
window.appInsights is NOT undefined
Additional context
Add any other context about the problem here.

@Snailedlt if I am understanding it correctly, you are using npm(click here for details) to initialize ApplicationInsights. So under this scenario, ApplicationInsights is not global. But if you are snippet initialization (click here for details), you can access  window.appInsights directly

@Karlie-777 yes, that is correct, I'm using the npm version. I don't see anything in the documentation saying it's not global. How would I go about accessing it globally, and what's the reason it's not global in the first place?
My usecase is that I want to call trackEvent from multiple different files, should I be using the snippet based initialisation for rhat instead?

@Snailedlt so if you are using npm initialization, you can create an application Insights component ( see example here ). If you want to easily use window.appInsights, snippet initialization is recommended.

@Karlie-777 I see, thank you!
So if I use the snippet initialization, do I just need to initialize it once, and then I can access it through window.appInsights after that, or do I need to initialize it in every file I want to use it?

@Snailedlt snippet initialization creates global instance. so as long as you can access window object, you can access window.app Insights directly!

Okey, so what I'm getting is... If I want to use it in one file only, go for npm, otherwise go for the snippet?

@Snailedlt depends on your website structure. For npm, if you creates applicationInsights component and it can be accessed by all files also.

So when I try to use the snippet based version I need to initialize it as early as possible. I tried pasting this into the index.html file of our app. I only replaced the connectionString with process.env.AZURE_APPLICATION_INNSIGHTS_CONNECTION_STRING from our .env file. But I get an error saying ReferenceError: “process is not defined”.
I assume the error comes because the file is accessed before the .env is initialized, so process is undefined at that moment.
Gonna try putting the npm snippet into a component like you suggested earlier.

I ended up just exporting appInsights like so:
import { ApplicationInsights } from '@microsoft/applicationinsights-web';

export const appInsights = new ApplicationInsights({
  config: {
    connectionString: process.env.AZURE_APPLICATION_INNSIGHTS_CONNECTION_STRING,
  },
});

And then loading it in App.svelte
  import { appInsights } from './util/appInsights';

  appInsights.loadAppInsights();
  appInsights.trackPageView(); // Manually call trackPageView to establish the current user/session/pageview

And finally using it in any other file by importing it:
  import { appInsights } from '../util/appInsights';
  ...
  ...
    // Log to Azure Application Insights
    if (
      process.env.isProd ||
      process.env.AZURE_APPLICATION_INNSIGHTS_CONNECTION_STRING
    ) {
      appInsights.trackEvent(
        {
          name: `FeatureForm${featureName}`,
        },
        {
          feature: {
            featureName: featureName,
            featureDescription: description,
          },
          userInput: {
            userHasOpinion: userHasOpinion,
            selectedAnswer: selectedAnswer,
            text: userText,
            email: userEmail,
          },
        }
      );
    } else {
      console.log('Application Insights is NOT active!');
    }

Nice, thanks!
It works now, so I edited the description to reflect the issue with misinformational documentation

Nice, thanks!
It works now, so I edited the description to reflect the issue with misinformational documentation

I'm not able to see it as a problem with documentation as it assumes that familiarly of JS

@Karlie-777 Thanks. We ended up just making a utility function that gets the instance :)


qt58: Fix path to qhelpgenerator in cmake file.

It is located in the dev output, fix it as for qcollectiongenerator.
This fixes a build error in KDevelop.
Motivation for this change
Build error in KDevelop (Hydra doesn't show the log for some reason). It is because the path in the installed cmake file to qhelpgenerator is wrong, it points to the default output but the binary is in the dev output.
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 24558 run on x86_64-linux 1


⚠ Bofrost.de has degraded performance

In 174bea5, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1202 ms

Resolved: Bofrost.de performance has improved in 752a5d8 after 7 minutes.


[Bug] iOS 添加到主屏幕后，图标有黑标

ios 会自动裁切图标圆角，因此 apple-touch-icon 建议直接使用正方形素材即可。
另外，可以考虑再添加一个 apple-touch-startup-image 用以 ios 添加到桌面后，打开网页时的启动图标。效果可见：

(官方文档/较旧) https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html
(效果展示) https://medium.com/appscope/adding-custom-ios-splash-screens-to-your-progressive-web-app-41a9b18bdca3

Simple image editing, such as using the paint bucket tool to fill in the transparent areas of the picture, can solve the problem. I can help with the editing the picture and submit a PR if you want (@fred-bf), but I'm not sure if this image is defined directly at /public/apple-touch-icon.png? Or is there automated image composition generation, PSD assets, or similar in another path?


Github flow: disable "create" button after first click

Someone just created two collectives within a couple of seconds of each other.

Related Issues
https://github.com/OpenCollective/OpenCollective/issues/140
https://github.com/OpenCollective/OpenCollective/issues/137
PR
https://github.com/OpenCollective/opencollective-website/pull/302

Fixed.


jenkins file

what is
jenkinsLib = load("/home/jenkins/scenario_runner.groovy")
in jenkinsfile for? where is scenario_runner.groovy supposed to be located?

This is our internal jenkins setup. I guess you can ignore this file, as it is not relevant for the normal use of ScenarioRunner. @melviso-osvf: Anything to add?

Ok. That file is more or less the same used in carla jenkins (I have modified it a little for the squeduling of carla instances). This file is located inside the AWS Jenkins server, where that script would be executed.

thanks guys for your comments, so i assume if i remove the lines related to jenkinsLib, it should run without problem, is the docker image of scenario runner available somewhere like in docker hub?

@fabianoboril , I tried to remove the file and while running this command:
run apt-get update && apt-get install --no-install-recommends -y libpng16-16=1.6.34-1ubuntu<IP_ADDRESS> libtiff5=4.0.9-5ubuntu0.3 libjpeg8=8c-2ubuntu8 build-essential=12.4ubuntu1 wget=1.19.4-1ubuntu2.2 git=1:2.17.1-1ubuntu0.7  python3.6=3.6.9-1~18.04ubuntu1 python3.6-dev=3.6.9-1~18.04ubuntu1 python3-pip=9.0.1-2.3~ubuntu<IP_ADDRESS>  && rm -rf /var/lib/apt/lists/*
I get this error:
E: Version '3.6.9-1~18.04ubuntu1' for 'python3.6' was not found
E: Version '3.6.9-1~18.04ubuntu1' for 'python3.6-dev' was not found
E: Version '9.0.1-2.3~ubuntu<IP_ADDRESS>' for 'python3-pip' was not found
The command '/bin/sh -c apt-get update && apt-get install --no-install-recommends -y libpng16-16=1.6.34-1ubuntu<IP_ADDRESS> libtiff5=4.0.9-5ubuntu0.3 libjpeg8=8c-2ubuntu8 build-essential=12.4ubuntu1 wget=1.19.4-1ubuntu2.2 git=1:2.17.1-1ubuntu0.7  python3.6=3.6.9-1~18.04ubuntu1 python3.6-dev=3.6.9-1~18.04ubuntu1 python3-pip=9.0.1-2.3~ubuntu<IP_ADDRESS>  && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

any idea?

There is no public docker image for ScenarioRunner. You can simply download it, and run it with Python.

Also, I think you could use the current dockerfile for building the image locally, if you want to do that.

thanks guys!


Breaks millis

When I have the board connected to either an Uno or mega millis stops working i.e. instead of returning an unsigned long it returns jibberish.  Any idea what would cause this?  If I disconnect the board yet leave my code the same millis starts working again and returns the correct number of milliseconds.

So, this happened because setBitrate was failing.  i'll probably follow up with a PR to update the README with a note on setBitrate and the valid can speed / clock speed configurations.


Memory Leak

Issue: https://github.com/tajchert/WaitingDots/issues/10

Using you library in our project (thanks a lot for it) in which we use CanaryLeak I've found two leaks in your code:

There are some anonymous AnimatorUpdateListener defined that holds a reference to the context.
There are some anonymous TypeEvaluator implementations that because they holds references to their parent class and this one to the context leak memory too.

sorry @tajchert is there a new version available in jcenter or any planning on it?

Thanks for your awesome lib !!
Same question here , is there a new version available in jcenter for this memory fix ?
Thanks.


Fix not copying directories to binaries output

Currently directories from the output directory are not being copied to the binaries output directory

Hey @sug44 it would be awesome if you could add a unit test for this case too.


DirectoryIDASettings now allows setting a directory manually.

This is useful for editing settings from outside IDA, and closes #8 .

looks great, thanks!


added modal feature through JavaScript

added Modals by modifying the renderCamps function and imbedding a modal into the card template

Approved


Always write lint result. (#1353)

Ensures that the result is always written to the output stream, even if there were no failures.

[Fixes #1353]

Does this give reasonable output for all formatters when there are no failures? For example, I'm wondering if the msBuild and prose formatters should really be outputting a single \n when there are no failures.

As I see it, this PR is only about correctly writing out the formatter's result in any case.
If there are formatters that don't give reasonable output for an empty failure list, this would be a bug in the formatter, which should be addressed separately. But as far as I can see, there aren't any obvious bugs in the included formatters, and the trailing \n actually does make sense, because text files should always end with a newline.

Ah, I do see one issue actually, although it's related to another bug. TSLInt via the CLI doesn't handle output very well for multiple files: https://github.com/palantir/tslint/issues/656
With this change, formatters will output lots of extraneous output, because they'll output something for every file without errors. For the formatters mentioned above, we'll get a blank line for each file without failures, which will end up being a lot of blank lines.
What do you think @caugner? If we had a fix for #656 I would merge this right away, but I'm a little worried given #656.

Closing this as it's included in #1472

True that text files should end with a newline, but if I run tslint on the command line, there is no text file, just a non-empty stdout.


update child view from parent does not work when state change

public struct ConversationsState: Equatable {
  ..........
  public var conversations: IdentifiedArrayOf<ConversationResponse.Item> = []
}

public struct TabsState: Equatable {
  ........
  public var conversations: ConversationsState
}

public let tabsReducer = Reducer<TabsState, TabsAction, TabsEnvironment> { state, action, environment in
 ..............................
  case let .receivedSocketMessage(.success(.string(str))):

      guard let data = str.data(using: .utf8) else {
        return .none
      }

      let chatOutGoingEvent = ChatOutGoingEvent.decode(data: data)

      switch chatOutGoingEvent {
      case .conversation(let message):

          // before update working update child my view
          guard let index = state.conversations.conversations
            .firstIndex(where: { $0.id == message.conversationId }) else {
          return .none
          }
          state.conversations.conversations[index].lastMessage = message
          // old code crash becz
         // "use the id-based subscript, instead, for in-place modification"

          // after which not working not update my child view
          state.conversations.conversations[id: message.conversationId]?
          .lastMessage = message
        return .none
      case .message(let message):
        state.conversations.chatState?.messages.insert(message, at: 0)
        return .none
      }
}

I am going to convert this to a discussion as it doesn’t appear to be an issue with the library.


Add more data to rummager deployment dashboard

Add extra graphs:

Sidekiq queue size and error count
Request durations (the existing graph does not work for rummager
because it depends on stats for Rails controllers, and rummager is a
sinatra app)
5xx errors in apps which depend on rummager, such as frontend
Stats for the Elasticsearch machines, such as memory usage

These graphs have been useful when debugging recent errors caused by the overnight popularity updates.

https://trello.com/c/saDruTlG/307-investigate-1-day-intermittent-rummager-timeouts

I've just noticed from the screenshots that there's something wrong with the Sidekiq graphs. I'll take a look at it tomorrow.

I've fixed the Sidekiq graphs. Those panels had the same IDs as some existing panels, and I suspect it was confusing the data rendering.
Here's how that section of the dashboard looks:


Doesn't work with one episode

Trying to generate site with only one episode fails
ERROR 2017/04/12 17:02:55 Error while rendering "home": template: /home/alex/projects/advance-tech-podcast/themes/castanet/layouts/index.html:40:34: executing "main" at <after 1 (where .Data...>: error calling after: no items left

Oh that's bad. I'll fix that!

Hmm. I'm not sure how this will work properly with only one episode, based upon the layout. I'm not sure what should display in the "episodes after the first one" would show up. It might look weird. Let me at least test the idea and see what it looks like.

OK, the fix is easy..fyi this is what it looks like when there is only one episode:

Hi Matt,
Thanks very much for your quick response :)
We've soft launched with a light version of your theme, if you want to check out our podcast you can find us here: https://advancetechmedia.org/
We're going to be partnering with other podcasts as we grow. If you'd like to be part of this let me know!
All the best!
Alexandra
Sent from my iPhone

On Apr 21, 2017, at 10:37 AM, Matt Stratton<EMAIL_ADDRESS>wrote:
OK, the fix is easy..fyi this is what it looks like when there is only one episode:
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.