Application restores with project file  in .NET Core 3.0 SDK

Hi there,
The documentation shows
Prerequisites
.NET Core 2.2 SDK or later
I created the web app following the command line scripts in "Create a web app and scaffold Identity" section. When the application was restored and I viewed the project file it shows (in part)
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.0.0-preview7.19365.7" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0-preview7.19365.7" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.0.0-preview7.19365.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0-preview7.19362.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.0.0-preview7.19362.6" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.3" />
</ItemGroup>
After some trial and error, I could successfully load and build the solution in Visual Studio 2019 (preview). Earlier I have failed to build it in Visual Studio 2017
The issue here is the improper labelling ".NET Core 2.2 SDK or later" as users may think that they can build the solution with SDK 2.2 as well (in VS 2017) which is not the case. The label should read .NET Core 3.0
Kaushik

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

ID: fe1bea60-d173-f6d2-3559-b147699e295a
Version Independent ID: 98e7aacb-2a01-d581-9b03-bfef2893163e
Content: Account confirmation and password recovery in ASP.NET Core
Content Source: aspnetcore/security/authentication/accconfirm.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

If you've installed 3.0 preview, you need to select the 3.0 version of the doc

Ok that's good to know Rick-Anderson.
However let me clarify that I don't have 3.0 preview SDK but have Visual Studio 2019 preview . I have just the SDK 2.2 installed and I selected this 2.2 version command script in this document. However the restoration still targetted as if 3.0 preview is installed and created a project file as I mentioned above .
Could it be that irrespective of the preview installed, it targets the highest Visual Studio version installed and then restores the project file that is compatible with the preview for that version, in this case Visual Studio 2019 preview ?

VS19 previews go with .NET Core 3 previews.

Thanks for letting me know.
One thing still lingers on, is that the  console command for this document (2.2) worked fine with VS 2019 (and 3.0 preview) as well (although the command is different for 3.0 preview.
Please clarify this as I am going to make a YouTube video on this document too.
Cheers


Webssh2 service fails to start.

node -v v10.19.0
npm -v 6.14.4

Server OS Version / Distribution / Processor Architecture
5.13.0-28-generic #31~20.04.1-Ubuntu SMP Wed Jan 19 14:08:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

WebSSH2 release version
"version": "0.4.6",
"release": "standard-version"
"standard-version": "^9.3.0",

OS and Version of SSH server connecting to
OpenSSH_8.2p1 Ubuntu-4ubuntu0.4, OpenSSL 1.1.1f  31 Mar 2020

With the latest socket.js update webssh2 fails to start.
npm start

<EMAIL_ADDRESS>start /opt/webssh2/app
node index.js

WebSSH2 service reading config from: /opt/webssh2/app/config.json
/opt/webssh2/app/server/socket.js:103
if (socket.request.session?.ssh?.allowedSubnets?.length > 0) {
^
SyntaxError: Unexpected token .
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/opt/webssh2/app/server/app.js:31:19)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-05-16T20_16_13_959Z-debug.log
more  /root/.npm/_logs/2022-05-16T20_16_13_959Z-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 run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>7 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
8 verbose lifecycle<EMAIL_ADDRESS>PATH: /usr/share/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/webssh2/app/node_modules/.bin:/u
sr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle<EMAIL_ADDRESS>CWD: /opt/webssh2/app
10 silly lifecycle<EMAIL_ADDRESS>Args: [ '-c', 'node index.js' ]
11 silly lifecycle<EMAIL_ADDRESS>Returned: code: 1  signal: null
12 info lifecycle<EMAIL_ADDRESS>Failed to exec start script
13 verbose stack Error<EMAIL_ADDRESS>start: node index.js
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter. (/usr/share/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:198:13)
13 verbose stack     at ChildProcess. (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:198:13)
13 verbose stack     at maybeClose (internal/child_process.js:982:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid<EMAIL_ADDRESS>15 verbose cwd /opt/webssh2/app
16 verbose Linux 5.13.0-28-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
18 verbose node v10.19.0
19 verbose npm  v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error<EMAIL_ADDRESS>start: node index.js
22 error Exit status 1
23 error Failed at the<EMAIL_ADDRESS>start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
CONFIG.JSON
config.json
{
"listen": {
"ip": "x.x.x.x",
"port": 2222
},
"http": {
"origins": ["x.x.x.x:2222"]
},
"user": {
"name": "",
"password": "",
"privatekey": "-----BEGIN RSA PRIVATE KEY-----n-----END RSA PRIVATE KEY-----\n",
"overridebasic": false
},
"ssh": {
"host": "x.x.x.x",
"port": 22,
"localAddress": null,
"localPort": null,
"term": "xterm-color",
"readyTimeout": 20000,
"keepaliveInterval": 120000,
"keepaliveCountMax": 10,
"allowedSubnets": []
},
"terminal": {
"cursorBlink": true,
"scrollback": 10000,
"tabStopWidth": 8,
"bellStyle": "sound"
},
"header": {
"text": null,
"background": "green"
},
"session": {
"name": "",
"secret": ""
},
"options": {
"challengeButton": true,
"allowreauth": false
},
"algorithms": {
"kex": [
"ecdh-sha2-nistp256",
"ecdh-sha2-nistp384",
"ecdh-sha2-nistp521",
"diffie-hellman-group-exchange-sha256",
"diffie-hellman-group14-sha1"
],
"cipher": [
"aes128-ctr",
"aes192-ctr",
"aes256-ctr",
"aes128-gcm",
<EMAIL_ADDRESS>"aes256-gcm",
<EMAIL_ADDRESS>"aes256-cbc"
],
"hmac": [
"hmac-sha2-256",
"hmac-sha2-512",
"hmac-sha1"
],
"compress": [
"none",
<EMAIL_ADDRESS>"zlib"
]
},
"serverlog": {
"client": false,
"server": false
},
"accesslog": false,
"verify": false,
"safeShutdownDuration": 300
}
Was able to get this to work by checking out the previous commit hash 522278fa4eefe3928025cd88e0bb4100fbc477b7 and rerun npm install.

This is expected as this project is committed to supporting only Node v14+.
While previous releases may have worked fine, there's no guarantee that future releases won't break if run in something lower than Node 14.
Optional Chaining is something that was introduced in Node 14 and helps to make code easier to maintain. Right now I'm going through a re-factoring exercise so anything in main will probably be broken.
It's a good point though, a lot of times people just pull from main as opposed to the Releases which use tags to denote an individual, supported release.
I recommend you use v0.4.6. As it should mostly be compatible with node@v10.
I do recommend, however, that you upgrade to at least Node v14 LTS (EOL April 2023) and keep up to date, but preferably Node v16 LTS (EOL April 2024).


[BUGFIX] Fix some datasets of textcnn and add new datasets

Description
Fixed some datasets (SST-1, SST-2, TREC) and updated their results
Add new datasets (CR, MPQA)
Checklist
Essentials

[ ] PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], [FEATURE], [DOC], etc)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage
[ ] Code is well-documented

Changes

[ ] Fixed some data sets (SST-1, SST-2, TREC)
[ ] Add new datasets (CR, MPQA)

Comments

Can you revise those affected test cases as well? For instance, we may need to add test cases for the 2 newly added data sets. Thanks.

Could you fix the failed CI? I'm going to review this PR soon. Thanks.

This problem doesn’t seem to belong to me.
http://ci.mxnet.io/blue/organizations/jenkins/gluon-nlp/detail/PR-663/13/pipeline/

@xiaotinghe there are a number of lint failures to be fixed: http://ci.mxnet.io/blue/organizations/jenkins/gluon-nlp/detail/PR-663/1/pipeline#step-10-log-165

Job PR-663/20 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-663/20/index.html

Can you rebase this branch to master? Then it will trigger the new CI tests on the updated master

Job PR-663/2 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-663/2/index.html

Job PR-663/3 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-663/3/index.html

Job PR-663/4 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-663/4/index.html

Job PR-663/5 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-663/5/index.html

Job PR-663/6 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-663/6/index.html

@sravanbabuiitm would you like to provide some comments when you have time? Thanks!

Sure, I would do the CR sometime today.
On Wed, May 15, 2019 at 11:10 PM Aston Zhang<EMAIL_ADDRESS>wrote:

@sravanbabuiitm https://github.com/sravanbabuiitm would you like to
provide some comments when you have time? Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/gluon-nlp/pull/663?email_source=notifications&email_token=AADD64MSQZSVFNRBVGPC4DDPVT3GBA5CNFSM4HGJQ3F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVQYRHA#issuecomment-492931228,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADD64LLB6HSTMUTIWJZNYLPVT3GBANCNFSM4HGJQ3FQ
.

--
With Regards,
Sravan Babu Bodapati,
Applied Scientist, Amazon.com.

@xiaotinghe Thanks for the hard work!


Update go-control-plane to master

Please update the library to the latest. There's been major refactoring of the protos that need to be taken care of.

cc @ldemailly for vendor assistance.
waiting for some in-progress PRs to be merged before doing this.

in progress in control-plane ? or here ? which?

@gnirodi has some in-flight PR. the in-flight PR in control-plane is not
changing package names. we need to get through package name change since it
was the last promised breaking change.
On Fri, Feb 23, 2018 at 9:57 PM Laurent Demailly<EMAIL_ADDRESS>wrote:

in progress in control-plane ? or here ? which?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/issues/3728#issuecomment-368203027, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJGIxglu2CEyRwYPA0lRdhZdFSS8_9Ylks5tX6TdgaJpZM4SRVcD
.

Kuat - I believe Gautam is mostly ready, so early next week you can upgrade.

obsolete


About the cached layernorm scale factors

Question
About the 'apply_ln_to_stack' function in 'ActivationCache.py' file, what's the meaning about the following sentence？
"The layernorm scale is global across the entire residual stream for each layer, batch element and position, which is why we need to use the cached scale factors rather than just applying a new LayerNorm."
That is, why we need to use the cached scale factors（In layer_norm, the scale factor is mean and std）of the original reasoning，rather than normalizing the variables directly in different layers?

Because we want to use the scale factor of the FINAL residual stream to
scale COMPONENTS of the residual stream, and you can't infer the final norm
from partial components
On Wed, 7 Aug 2024, 05:20 Mi Hao, @.***> wrote:

Question
About the 'apply_ln_to_stack' function in 'ActivationCache.py' file,
what's the meaning about:
" The layernorm scale is global across the entire residual stream for each
layer, batch element and position, which is why we need to use the cached
scale factors rather than just applying a new LayerNorm." ?
That is, why we need to use the cached scale factors（In layer_norm, the
scale factor is mean and std）of the original reasoning， instead of
normalizing the variables directly?
—
Reply to this email directly, view it on GitHub
https://github.com/TransformerLensOrg/TransformerLens/issues/696, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ASRPNKLH6L6IYJUPB3FWUWDZQIGKPAVCNFSM6AAAAABMEJKWBWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TGMZUG44DGOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Because we want to use the scale factor of the FINAL residual stream to scale COMPONENTS of the residual stream, and you can't infer the final norm from partial components
…
On Wed, 7 Aug 2024, 05:20 Mi Hao, @.> wrote: Question About the 'apply_ln_to_stack' function in 'ActivationCache.py' file, what's the meaning about: " The layernorm scale is global across the entire residual stream for each layer, batch element and position, which is why we need to use the cached scale factors rather than just applying a new LayerNorm." ? That is, why we need to use the cached scale factors（In layer_norm, the scale factor is mean and std）of the original reasoning， instead of normalizing the variables directly? — Reply to this email directly, view it on GitHub <#696>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASRPNKLH6L6IYJUPB3FWUWDZQIGKPAVCNFSM6AAAAABMEJKWBWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TGMZUG44DGOA . You are receiving this because you are subscribed to this thread.Message ID: @.>

因为我们希望使用最终残差流的比例因子来缩放残差流的分量，而你无法从部分分量推断出最终范数
…
2024 年 8 月 7 日星期三 05:20，Mi<EMAIL_ADDRESS>写道：问题关于 'ActivationCache.py' 文件中的 'apply_ln_to_stack' 函数，其中“layernorm 尺度对于每个层、批次元素和位置的整个残差流都是全局的，这就是为什么我们需要使用缓存的尺度因子而不是仅仅应用一个新的 LayerNorm”是什么意思？也就是说，为什么我们需要使用原始推理的缓存尺度因子（在 layer_norm 中，尺度因子是均值和标准差），而不是直接对变量进行归一化？ — 直接回复此电子邮件，在 GitHub 上查看 < #696 >，或取消订阅 < https://github.com/notifications/unsubscribe-auth/ASRPNKLH6L6IYJUPB3FWUWDZQIGKPAVCNFSM6AAAAABMEJKWBWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TGMZUG44DGOA > 。您收到此邮件是因为您订阅了此主题。消息<EMAIL_ADDRESS>
So, does Scale Factor have some meanings?
I think it's just a operation for normalization. And it is related to the input sentence rather than the parameters that LLM learned.
If so, may be we can directly normalize the COMPONENTS of the residual stream（For LN, subtract the mean and divide by the variance)，which might also be reasonable?


Unable Delete PDF

Microsoft PowerToys version
0.72.0
Installation method
GitHub
Running as admin
None
Area(s) with issue?
File Explorer: Thumbnail preview
Steps to reproduce
Open any PDF file then Close it, Now Try to Delete it. You will get this message File In Use: The action can't be completed because the file is open in PowerToys.PdfPreviewHandler
✔ Expected Behavior
FIle should get deleted
❌ Actual Behavior
File In Use: The action can't be completed because the file is open in PowerToys.PdfPreviewHandler
Other Software
No response

/dup https://github.com/microsoft/PowerToys/issues/23508


error creating aufs mount invalid argument

We hada disk almost full 97% then restarted docker .. running containers not came back .. deamon throwing below error for all containers
time="2016-02-03T03:29:08.906695677Z" level=debug msg="Failed to start container 119979f713275c3509677435f2fd0bc041494362c7b7b7e7c814a871f7d7c169: Error getting container 119979f713275c3509677435f2fd0bc041494362c7b7b7e7c814a871f7d7c169 from driver aufs: error creating aufs mount to /xx/xx/xx/docker/docker/aufs/mnt/119979f713275c3509677435f2fd0bc041494362c7b7b7e7c814a871f7d7c169: invalid argument"
Containers: 64
Images: 28
Storage Driver: aufs
Root Dir: /xx/xx/xx/docker/docker/aufs
Backing Filesystem: extfs
Dirs: 156
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.19.0-25-generic
Operating System: Ubuntu 14.04.2 LTS
CPUs: 40
Total Memory: 157.4 GiB
Name: af93ecc3-91ea-xxx-82d3-6228d5582b91
ID: 22OT:FSKN:DCHD:X3WQ:3WGA:64HV:ES53:IQY3:6IJE:OZIU:NKM2:NTEJ
Debug mode (server): true
File Descriptors: 10
Goroutines: 15
System Time: 2016-02-03T05:13:42.582285385Z
EventsListeners: 0
Init SHA1:
Init Path: /xx/xx/xx/docker/bin/docker
Docker Root Dir: /xx/xx/xx/docker/docker
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d
OS/Arch (server): linux/amd64

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
For more information about reporting issues, see CONTRIBUTING.md.
You don't have to include this information if this is a feature request
(This is an automated, informational response)

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

Yes, running docker with a full disk is known to result in issues, I'm not sure there's an easy way to work around that

@thaJeztah thanks for confirming .. but all our containers are at state now where we can not recover them .. at all .. without losing containers ..

@cpuguy83 do you have any tips here? Is there a way to recover?

Closing as inactive. Feel free to open new issue - new issues will have much more attention.


Variants "add to cart" on PLP/SRP check

This ticket is about ensuring that each item listed in the PLP/SRP is "purchasable" (not a base product nor style without size).

@Xymmer AFAIR we agreed "Add to cart" button on the PLP is just an CTA linked to PDP. However, I can see that in electronics spa this is not the case: It does what it says - adds product to cart and proper popup is displayed:

Therefore please confirm what's the path here to follow.

After analyzing available sample data and functionality, I wasn't able to find any purchasable: flase product cases.


[HOLD 21361][$1000] Unassigned task report shows a clickable avatar which changes profile pictures each time we click it

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Click on FAB.
Click on assign task.
Enter title.
Click on share somewhere and choose a destination. Don't choose any assignee.
In the new task report, notice that after "to" an avatar is shown.
Click on the avatar and RHN should open up to choose assignee. Click outside and avatar changes.

Expected Result:
Avatar shouldn't be shown. Task report should show unassigned in some way. If avatar is shown then it should not change each time we click it.
Actual Result:
An avatar is shown and it changes each time we click it.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

Version Number:  1.3.30-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/6e98fd24-6e06-4605-a501-ccbb76824723
https://github.com/Expensify/App/assets/93399543/74ce0590-95ef-4a19-840e-23f12707dfd5
Expensify/Expensify Issue URL:
Issue reported by: @Nikhil-Vats
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687470693318239
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~010fbfe55dbd253e57
Upwork Job ID:<PHONE_NUMBER>344495616
Last Price Increase: 2023-06-27

Proposal
Please re-state the problem that we are trying to solve in this issue.
Unassigned task report shows a clickable avatar which changes profile pictures each time we click it.
What is the root cause of that problem?
In task report header, avatar is retrieved with assigneeAccountID, and assigneeAccountID is retrieved with getTaskAssigneeAccountID in Task.js.
https://github.com/Expensify/App/blob/67561d81bd95681e47dab14261349eb6eaad384d/src/components/TaskHeader.js#L51-L53
Because task report is unassigned, assigneeAccountID should be null, but getTaskAssigneeAccountID does not check childManagerEmail is empty or not.
https://github.com/Expensify/App/blob/67561d81bd95681e47dab14261349eb6eaad384d/src/libs/actions/Task.js#L640-L652
So incorrect account id is returned, and avatar will be set to default avatar, and that avatar will be changed each time we call UserUtils.getAvatar.
What changes do you think we should make in order to solve the problem?
We should return null account id in getTaskAssigneeAccountID if task is not assigned.
function getTaskAssigneeAccountID(taskReport) {
    if (!taskReport) {
        return null;
    }

    if (taskReport.managerID) {
        return taskReport.managerID;
    }

    const reportAction = ReportActionsUtils.getParentReportAction(taskReport);
    const childManagerEmail = lodashGet(reportAction, 'childManagerEmail', '');
+   if (childManagerEmail === '') {
+       return null;
+   }
    return PersonalDetailsUtils.getAccountIDsByLogins([childManagerEmail])[0];
}

What alternative solutions did you explore? (Optional)
None.

Just checking on the expected behaviour here.

The report headers are being updated for all report types in #20844. So, we can put this on hold for the time being.
cc @thienlnam

Ah yeah, it is similar. Thanks @thienlnam!

Still on hold.

This is fixed 🎉 closing as a fixed dupe of https://github.com/Expensify/App/issues/21361


Banned

I'll admit I did steal from unclaimed bases, but none today. If I were to be unbanned I would no longer do this thanks, and i returned pretty much everything already. Thank you
IGN: qtgay

That's very noble of you, admitting to previously stealing. Unfortunately, logs would show that you have actually stolen more items today, in fact less than an hour from your ban? I find it strange that part of your appeal is truth, and the next part seems to be a direct lie, and correct me if I am wrong, but that seems to be the case here.

Im sorry, I guess i got a bit to carried away with the items I took, if I get unbanned i will return the items i stole that day, and it wont happen again. thank you

Solved in DMs ^


[ci] Move Python wheel-builds from macos-11,macos-12 to macos-12,macos-latest

Issue and/or context: Low-pri / drive-by while working on 1.10.2.
Changes: Non-urgent. Nonetheless, if there's a choice, it makes more sense to run wheel-build CI on versions people are actually using today, rather than ancient versions.
Notes for Reviewer:

This PR affects sdist & wheels CI which only runs (a) nightly from main, or (b) on manual run.
When I do a manual run e.g.
https://github.com/single-cell-data/TileDB-SOMA/actions/runs/8881905214
the smoke test fails with
Installing collected packages: wheel
Successfully installed wheel-0.43.0
+ pip install ./wheels-macos-x86_64/tiledbsoma-1.5.0rc0.post313.dev3304474519-cp311-cp311-macosx_11_0_x86_64.whl
ERROR: tiledbsoma-1.5.0rc0.post313.dev3304474519-cp311-cp311-macosx_11_0_x86_64.whl is not a supported wheel on this platform.

namely something somewhere is looking for the substring macosx_11_0 and I don't know where or why. :(
cc @nguyenv @ihnorton if either of you know.
(This is not high-pri -- but if either of you has a free minute to share any context you may have, I would appreciate it.)

Manual run today:
https://github.com/single-cell-data/TileDB-SOMA/actions/runs/8930712034


Align AfriSAR to VEDA Notebook guidelines

EPIC
#240
Description
The AfriSAR Search and Visualize should be reviewed using the this guidance and includes the following components:

Style
Rendering Information
Notebook Sections

Acceptance Criteria (Tasks):

[ ] Style should be consistent with guidance provided
[ ] Rendering information should be complete and accurate. If there is no author/date information available, consult MAAP leads @wildintellect @abarciauskas-bgse for guidance
[ ] Ensure notebooks include the recommended standard sections

Collection no longer in STAC, will need to update to NASA CMR

PR: https://github.com/MAAP-Project/maap-documentation/pull/307

Approved and merged


[3/29 bugbash] App settings not populated when I "open in composer" to an existing bot

From Nick Ericson https://fuselabs.visualstudio.com/BotFramework/_queries/edit/58575/?triage=true

Should they be? What if the old bot was already published somewhere - does it overwrite the values or warn that there are already values or ???
Version
v1.4.0-nightly.228616.da1ac55

@luhan2017 here is another one to look at.

That is by design, the appid and password are only used for local start bots. the abs appid and passwords are in the new created publish profile. Are we expecting to also fill in the local appid and passwords? That is only needed when local bot call a remote skill. @Andrea-Orimoto @NickEricson

(@vivekkshankar fyi for the remote skills flow)

There is a Retrieve App ID button to retrieve the appid and password from a publish profile.


Deprecate CoordRepType and replace it with CoordinateType

"CoordinateType" appears more readable than "CoordRepType".
Using Notepad++, Replace in Files, doing:
Find what: ( [ ]+)using CoordRepType = (\w+);
Replace with: $1using CoordinateType = $2;\r\n$1using CoordRepType = CoordinateType;
Filters: itk*.h
Directory: D:\src\ITK\Modules
[v] Match case
(*) Regular expression

Follow-up to pull request #4995

I assume this
https://open.cdash.org/viewBuildError.php?onlydeltap&buildid=10058584
is related to this PR.

Haven't had a look/do not have time to investigate now, but my first thought was whether the Examples were included in your set of changes.

@seanm might provide more info about the build configuration.

Sorry I overlooked the Examples when I did this PR. I can have another look in a few hours from now.


Create / Setup Build Directories

Specifications

Create all Meson build directories
Directly inside Meson's setup command automation scripts
If missing, create the parent build directory
The directory names must indicate the OS
The directory names must indicate the architecture
The directory names must indicate the compiler family
The directory names must indicate the compiler version

No need to use the actual compiler versions

The directory names must indicate the build type

TODO

[x] Fetch the OS
[x] Fetch the architecture
[x] Fetch the compiler family
[x] Fetch the compiler version
[x] Fetch the build type
[ ] If missing, create the parent build directory
[ ] Directly inside Meson's setup command automation scripts
[ ] Create a build directory
[ ] Create all build directories

I learnt how to create true mixins and improved the errors


[feature request] arrays of file globs

@DonJayamanne thanks for the awesome plugin. It's handy for large projects. Might I make a suggestion
By default, the exclude file glob is set to **/node_modules/**
I'd like to also exclude also **.d.ts and *.js when I am working on TypeScript projects.
i.e. to have the ability to configure my workspace settings in the following manner:
"findFiles.fileExcludeGlob" : [
   'node_modules/**',
   '*.d.ts',
   '*.js'
],
"findFiles.fileIncludeGlob" : [
   // file glob,
   // file glob
],

Regards

Hey @ferrantejake, you can do that already. This is my current exclude glob: "findFiles.fileExcludeGlob": "{/node_modules/,/bower_components/,/dist/,/build/,/.vscode/,/_output/,/.min.,/*.map,/out/,/samples/}"


Chromium crashes on external ressources in footer

Hello - I am using nesk/puphpeteer as php-lib and spatie/browsershot to create PDF-Files on a lumen instance - everything within a docker instance.
I am including an external ressource into my footer:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
The following command is generated:
node '/var/www/html/lumen/vendor/spatie/browsershot/src/../bin/browser.js' '{"url":"file:\/\/\/tmp\/1702248694-0041875001583697336\/index.html","action":"pdf","options":{"args":["--disable-dev-shm-usage","--no-sandbox"],"viewport":{"width":800,"height":600},"displayHeaderFooter":true,"delay":50,"waitUntil":"networkidle0","executablePath":"\/usr\/bin\/chromium-browser","format":"A4","footerTemplate":"<link rel=\"stylesheet\" href=\"https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/4.0.0\/css\/bootstrap.min.css\" integrity=\"sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW\/dAiS6JXm\" crossorigin=\"anonymous\">","margin":{"top":"30mm","right":"30mm","bottom":"0mm","left":"30mm"},"printBackground":true}}'
If I run the command within the docker container, I am getting the following result:
(node:1007) UnhandledPromiseRejectionWarning: Error: Page crashed!     at Page._onTargetCrashed (/var/www/html/node_modules/puppeteer/lib/Page.js:213:24)     at CDPSession.<anonymous> (/var/www/html/node_modules/puppeteer/lib/Page.js:122:56)     at CDPSession.emit (events.js:223:5)     at CDPSession._onMessage (/var/www/html/node_modules/puppeteer/lib/Connection.js:200:12)     at Connection._onMessage (/var/www/html/node_modules/puppeteer/lib/Connection.js:112:17)     at WebSocket.<anonymous> (/var/www/html/node_modules/puppeteer/lib/WebSocketTransport.js:44:24)     at WebSocket.onMessage (/var/www/html/node_modules/ws/lib/event-target.js:120:16)     at WebSocket.emit (events.js:223:5)     at Receiver.receiverOnMessage (/var/www/html/node_modules/ws/lib/websocket.js:789:20)     at Receiver.emit (events.js:223:5) (node:1007) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:1007) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
If I just place some html-code into the footer the pdf gets generated without any problem.
The provlem also occurs with external fonts :(
Steps to reproduce
Tell us about your environment:

Puppeteer version: 2.1.1
Platform / OS version: alpine:3.11
Node.js version: v12.15.0

What steps will reproduce the problem?
Please include code that reproduces the issue.
1.place external ressources into footer
2.save pdf
What is the expected result?
The external ressource are beeding able to used
What happens instead?
Exception as described above.
Hope you guys got a hint for me - I am running out fo ideas :(

Perhaps related, but I have the same issue when I try to use base64-encoded font faces in my css in the header/footer.

Anyway to open this back up without creating a new issue every 30 days?


Choose element not supported

The following section is not correctly evaluated as 'choose' seems not to be supported.
  <PropertyGroup>
    <MyGroup>Group1</MyGroup>
  </PropertyGroup>

  <Choose>
    <When Condition="'$(MyGroup)'=='Group1'">
      <PropertyGroup>
        <MySelector>One,Two,Three</MySelector>
      </PropertyGroup>
    </When>
    <When Condition="'$(MyGroup)'=='Group2'">
      <PropertyGroup>
        <MySelector>One,Two,Three,Four</MySelector>
      </PropertyGroup>
    </When>
  </Choose>

Hi,
Interesting... We'll look into it.
Thanks for the test case.
I was curious, are you actually using all that MSBuild grammar in your projects, or just playing around :)
In the past two months we've seen some pretty interesting configs from Clang Power Tools early adopters... I'm still amazed when I discover a new usage pattern in their MSBuild configs...

Hi,
yes, these issues arrise in a (big) solution in the company im working for. We are working with a lot of custom *.targets, *.propsand configurations. I noticed your project (slides) some time ago at cppcon, but did not had the time to track down the errors yet.
Thank you for your support.

COOL.
It's nice to have diverse and large-scale test cases for our tool.
Keeps us on the right track :)
We're doing our best to fix every issue we encounter.

Just pushed a commit that enabled support for <Choose> MsBuild elements.
Please give a test run to the latest github version of clang-build.ps1 and let us know it everything runs OK.

This fix is currently live only for the github repository.
The latest Visual Studio extension (2.3) does not contain the fix. It will be included in the next release.
Until then, as a workaround, you can manually replace clang-build.ps1 in the VS extension directory with the latest from github. To locate the extension directory search for clang-build.ps1 in %LOCALAPPDATA%
Don't forget to restart Visual Studio after replacing the script file.

Thank you!
But this time I got
Fehler beim Aufrufen der Methode, da [System.Xml.XmlComment] keine Methode mit dem Namen "SetAttribute" enth„lt.In
D:\*\AppData\Local\Microsoft\VisualStudio\15.0_00aec18c\Extensions\j3nhounh.jub\clang-build.ps1:1306 Zeichen:13

Seems like we are using comments within <Choose>

Hi,
Gabi (@hero101111) fixed this issue and we're test-driving it...
Should be published in the next version, to come out this week.
We'll let you know.
Thanks for the feedback 👍

This issue was fixed in version 2.4 released today.
Thanks for you feedback 👍


Pipe file contents to commands instead of using FS

This will eliminate the need to save the file before using f.e. autocompletion any other offset-based commands.

Done


Spinner Eats Lines on CentOS 7

We have this as part of our automation for tracking the status of a executing Task, and on the environments that it was created on (Macs) it works correctly were as the automation progresses each line is added with automation information and the spinner stays on the new line. On my CentOS VM the spinner causes the Task line to eat (backspace) all characters on the line that it is on, then it moves to the line above and continues until the Task line with Spinner are sitting in the top left corner.
The Spinner type being used is #34
Code is:
//define spinner charset and speed
spin := spinner.New(spinner.CharSets[34], 100*time.Millisecond)
spin.Prefix = "\033[?25lTask " + taskID + ": "
spin.Start()

Same thing with gnu screen ($TERM = screen-256color)

Same thing with gnu screen ($TERM = xterm)

Same experience when using putty or mobaxterm. They default to xterm terminal emulation
Any chance @briandowns you can have a look at it?

Same here with Putty and Debian 9

https://github.com/briandowns/spinner/pull/96

this fixes it for me (1.11.1)


ftplugin/c.vim: C standards respectful commentstring

i think that it is also should be mentioned somewhere in README that it can be configured through
let commented_c89_comments = v:true

Thanks!


Arranging order of plugins in code snippet view

Visual Studio Code option that will let the user arrange the order in which features of plugins show up in the code snippet window - (when you hover over code)
Example: Default order of plugins
CODE SNIPPET
Plugin 1
Plugin 2
Plugin 3
This feature option would allow the user to re-arrange this 'Default order' to whichever order they choose. Hopefully this makes sense, thanks.

Original issue: https://github.com/microsoft/vscode/issues/93710


Remove temp Debian package from local folder

@ruescar don't get the need for this.

@vania-pooh Didn't check .deb files were in .gitignore


Solaris "sort" does not support stable sort option for sorting JDK tag sequence

Solaris sort does not support "-s" option, so this PR changes the stable sort to simply use line numbering to achieve the same...
Signed-off-by: Andrew Leonard<EMAIL_ADDRESS>

Fixes https://github.com/AdoptOpenJDK/openjdk-build/issues/2101

run tests

run tests

run tests

run tests

aarch64-openj9 failed for other reasons - I'll merge this.

Ugh, I missed getting a 2nd reviewer - @johnoliver if you get some time tomorrow


Add soft constraints in link node

If there are no problems with the implementation, I may start writing a paragraph about this in the book

I've only had quick read through this. My initial reaction is whether the main min_flow and max_flow values should always be hard constraints. And that a sensible configuration is for the soft flow bounds to be inside the range of min_flow and max_flow. I.e. the soft max should be lower than the hard max.
I think this would require an aggregated node to enforce the hard min & max flows across the multiple internal nodes if either soft bound is defined, and the soft max applied to the main L node.
@Batch21 thoughts?

Keeping the soft constraints within the bounds of min_flow  and max_flow  makes sense to me.
Could apportioning volumes to the different links be an alternative to using an agg node. Something  like this:
L_min max_flow = soft_min
L_max max_flow = max_flow - soft_max
L max_flow =  max_flow - soft_min - (max_flow - soft_max)

Apologies for not reply to this sooner but it's been a busy month. Wouldn't it make more sense to have the node L downstream to enforce the hard min and max flows?

We can then add 2 aggregated nodes:

Constraining  L and L_min with the min_flow of node L
Constraining  L and L_max with the max_flow of node L

Altought one can still set the min_flow of L_min larger than the max_flow of L_max

We can then add 2 aggregated nodes:
* Constraining  `L` and `L_min` with the `min_flow` of node `L`
* Constraining  `L` and `L_max` with the `max_flow` of node `L`

I'm not sure I follow this. This constraint would be redundant because it could just be applied to L and achieve the same thing?
I was thinking of it like this:

If soft min and max defined:

a: min_flow = 0.0, max_flow = unconstrained, cost = user's soft_max_flow_cost (i.e. cost of going above soft max)

b: min_flow = 0.0, max_flow = unconstrained, cost = user's standard cost

c: min_flow = 0.0, max_flow = user's soft_min_flow, cost = user's soft_min_flow_cost

agg_bc: nodes: [b, c], min_flow = 0.0, max_flow = user's soft_max_flow

agg_abc: nodes: [a, b, c], min_flow = user's hard min_flow, max_flow = user's hard_max_flow

if only soft min defined:

a: not created

b: min_flow = 0.0, max_flow = unconstrained, cost = user's standard cost

c: min_flow = 0.0, max_flow = user's soft_min_flow, cost = user's soft_min_flow_cost

agg_bc: nodes: [b, c], min_flow = user's hard min_flow, max_flow = user's hard_max_flow

If only soft max defined:

a: min_flow = 0.0, max_flow = unconstrained, cost = user's soft_max_flow_cost (i.e. cost of going above soft max)

b: min_flow = 0.0, max_flow = user's soft_max_flow, cost = user's standard cost

c: not created

agg_abc: nodes: [a, b], min_flow = user's hard min_flow, max_flow = user's hard_max_flow

If neither soft max or soft min defined:

a: not created
b:  min_flow = user's hard min_flow, max_flow = user's hard_max_flow, cost = user's standard cost
c: not created

Hello,
I implemented the new constraints as suggested.  I think it would be nice to export the internal nodes' flow data using metrics. What do you think?
I have no idea why the pipelines fail. On my machine the project compiles

I think it would be nice to export the internal nodes' flow data using metrics. What do you think?

Agreed. What are you thinking? Some attributes that might be useful (first two more than the last two):

(In|Out)flowAboveSoftMax or SoftMaxFlowExceedance - self explanatory
(In|Out)flowBelowSoftMin or SoftMinFlowDeficit - A deficit to the soft min flow.
(In|Out)flowAboveSoftMin - flow less the soft min flow
(In|Out)flowBelowSoftMax - flow less the soft max flow

WTW node could also implement the soft min related ones.

Hi, thanks for the feedback.
I created two separate issues to address the additional metrics and the test implementation

Thanks for implementing this!


update supported platform

resolve #2

@ddddxxx Thanks!
Could you also update CombineX.swift.podspec for cocoapods users and Build Settings -> Deployment of CombineX.xcodeproj for Carthage users?

Can I just $ swift package generate-xcodeproj for Carthage?

The Carthage project seems broken to me. I just update deployment target anyway...

Looks great!


Add something like DoActionUntil() to make things stable

Sometimes window messages and mouse/keyboard actions are not really handled by test application because of short non-responding state or another reason.
We need to introduce some stabilization feature for such cases. Unstable code:
taskbar.Clock.ClickInput()
ClockWindow = taskbar.explorer_app.Window_(class_name='ClockFlyoutWindow')
ClockWindow.Wait('visible') # WindowNotFound exception may be raised here from time to time

Stable modification proposal (ideally we should simply wrap unstable code with stabilizer):
ClockWindow = taskbar.explorer_app.Window_(class_name='ClockFlyoutWindow')
DoActionUntil(
    taskbar.Clock.ClickInput(),
    ClockWindow.Wait('visible')
)

Let's discuss how it can be done. ;)

We could do something like this:
from pywinauto.application import Application
from pywinauto.findwindows import WindowNotFoundError
from pywinauto.findbestmatch import MatchError

app = Application().start_("Notepad", timeout=20)

def DoActionUntil( expr ):
    for i in range(0,50):
        try:
            exec(expr)
        except (WindowNotFoundError, MatchError):
            continue
        else:
            break

DoActionUntil( "app.Font.Wait('visible', 5); app.Font.Cancel.CloseClick()")

I'm not sure it will be executed in the same context with the same imports.

You are right, I didn't think about a context. Maybe we could just pass the locals and even globals as default argument
from pywinauto.application import Application
from pywinauto.findwindows import WindowNotFoundError
from pywinauto.findbestmatch import MatchError

app = Application().start_("Notepad", timeout=20)

def DoActionUntil( expr, g=globals(), l=locals() ):
    for i in range(0,50):
        try:
            exec(expr, g, l)
        except (WindowNotFoundError, MatchError):
            continue
        else:
            break

DoActionUntil( "app.Font.Wait('visible', 5); app.Font.Cancel.CloseClick()")

QuantifiedCode service detects exec() usage as potential bug. Anti-pattern description.
I'd also prefer another way for this task. And, probably, some instabilities like "Font dialog long initialization" should be solved somehow different. DoActionUntil is just a first thought in this direction. One user promised me to provide use cases with some instabilities which may help us.

Perhaps useful for us a function that already exists?
taskbar.Clock.ClickInput()
ClockWindow = taskbar.explorer_app.Window_(class_name='ClockFlyoutWindow')

try:
    pywinauto.timings.WaitUntilPasses(timeout, retry_interval, lambda: ClockWindow.Wait('visible'), exceptions=(WindowNotFound,))
except TimeoutError:
    #handle timeout

Such code might help in implementation of such thing. But here I'm trying to discuss interface of the feature like ActUntilPasses.
Now I'm thinking about assertRaises usage model. You may see unit tests with such statements:
     self.assertRaises(RuntimeError, self.ctrl.GetItem, 'incorrect arg')

We may introduce here something like that:
    def DoActionUntil(condition, <callable object / method>, *args, **kwargs):


UtahIdLogin producing error

When I click on the UtahIdLogin component in electrofishing it throws the following error:

I dug into a bit, I feel like it may be related to the fact that the component is using a bundled version of firebase/auth whereas my app is using it directly from node_modules. But I'm not sure.

Are you connected to the auth emulator?

Yes, I am connecting to the emulator. Yes, it does seem to work in kitchen sink's storybook. At least it opens the popup.

This branch has my latest attempt: https://github.com/agrc/electrofishing-query/tree/scott-dev

We might need to dig into the vite bundle analyzer and see what's in there. My searching led me to the same place last time we looked at it.

This is working as of v1.6.2.


gmsh physical groups -> dolfin XML errors

Hi,
there is an error in the conversion of gmsh meshes with tagged boundaries via physical lines/surfaces to dolfin XML. Consider the following unit square mesh, with boundary IDs 1 and 2:
h = 0.1;
Point(1) = {0, 0, 0, h};
Point(2) = {1, 0, 0, h};
Point(3) = {1, 1, 0, h};
Point(4) = {0, 1, 0, h};

Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};

Line Loop(5) = {1, 2, 3, 4};
Plane Surface(1) = {5};

Physical Line(1) = {3};   // lid
Physical Line(2) = {1, 2, 4};   // wall
Physical Surface(0) = {1};

Mesh 2;
Save "square.msh";

After conversion with meshio-convert square.msh square.xml, the gmsh:geometrical and the gmsh:physical files will both contain a list of all vertices, dimension 2, with labels 0 in one file, and 1 in the other.
Expected result (when converted with dolfin-convert) is a facet_region file that contains the labels (0, 1, 2) for all 27 facets of the mesh, and dim=1.

Also, if <mesh_function type="uint"> was used rather than type="int", these files could be read by fenics' MeshFunction("size_t", ...) (instead of "int"). "uint" is more consistent, since "size_t" is used everywhere in the fenics documentation and dolfin-convert generates "uint".

line breaks are missing in the  gmsh:geometrical|phyiscal.xml files.

Best wishes,
David

Okay, first thing I'm going to recommend to anyone using dolfin XML: Don't use it. Upstream as moved to XDMF, and you should probably do the same.

I agree. It's more worthwhile making the XDMF conversion hassle-free. Apart from issue #260, how do you read physical groups in FEniCS from XDMF created by meshio? I know you're a FEniCS user yourself ;)

Apart from issue #260, how do you read physical groups in FEniCS from XDMF created by meshio?

I've never done this.


建议：想要自己按照某些路线刷题，能否增加功能：用户对题目列表进行分组，比如勾选部分题目作为新的文件夹

🚀 Feature Proposal
A clear and concise description of what the feature is.
Motivation
Please outline the motivation for the proposal.
Contribution
Please describe the solution if you'd like to submit a PR.

不会英语？


Is this a copy/paste from https://github.com/thomaswangio/minimal-twitter?

No, the implementations are completely different and the final result is different as well.
Minimal Twitter uses CSS to override individual components, move things around, etc. It is a bit opinionated with the developer’s personal preferences. He adds some new hover effects, etc.
I’m not using any custom CSS. I’m just tricking Twitter to think the window is smaller, and Twitter adjusts itself automatically. It’s much less hacky and the result feels really natural.

Thanks for the clarification.


note: Mention gcc-multilib as possible dependency

On development Debian based distros the listed  dependencies does not meet the building requirements. In notes we mention  gcc-multilib which might not installed (not part of build-essential metapackage, nor required/recommended for libadwaita/libgtk).
E.g.: ghostty build successfully on Debian Bookworm, but not on Debian Testing without gcc-multilib

I got dozens of cryptic error messages on Debian sid without this package. Fortunately, there have been no complaints from anyone so far, probably on sane (stable) distros and in nix build shell works for most of us.


Rescheduler to 0.3.0 which uses k8s 1.6

For https://github.com/kubernetes-incubator/kube-aws/issues/118.
The rescheduler has been updated for k8s 1.6+.
Here's some logs showing 0.3.0 working on latest master:
I0406 13:38:38.432791       1 rescheduler.go:140] Critical pod kube-system_heapster-v1.3.0-76786035-rw214 is unschedulable. Trying to find a spot for it.
W0406 13:38:38.441782       1 rescheduler.go:383] Skipping node ip-10-0-101-53.eu-west-1.compute.internal due to CriticalAddonsOnly taint with value: kube-system_heapster-v1.3.0-76786035-bsnx1
I0406 13:38:38.460355       1 rescheduler.go:159] Trying to place the pod on node ip-10-0-102-121.eu-west-1.compute.internal
I0406 13:38:38.474273       1 rescheduler.go:332] Pod default_nginx-test-2766461593-w7vlw will be deleted in order to schedule critical pod kube-system_heapster-v1.3.0-76786035-rw214.
I0406 13:38:38.474441       1 event.go:217] Event(v1.ObjectReference{Kind:"Pod", Namespace:"default", Name:"nginx-test-2766461593-w7vlw", UID:"ca7d76eb-1acc-11e7-96d4-066ad7a20777", APIVersion:"v1", ResourceVersion:"2846", FieldPath:""}): type: 'Normal' reason: 'DeletedByRescheduler' Deleted by rescheduler in order to schedule critical pod kube-system_heapster-v1.3.0-76786035-rw214.
I0406 13:38:38.480103       1 rescheduler.go:332] Pod default_nginx-test-2766461593-wc4qn will be deleted in order to schedule critical pod kube-system_heapster-v1.3.0-76786035-rw214.
I0406 13:38:38.480273       1 event.go:217] Event(v1.ObjectReference{Kind:"Pod", Namespace:"default", Name:"nginx-test-2766461593-wc4qn", UID:"ca7d8939-1acc-11e7-96d4-066ad7a20777", APIVersion:"v1", ResourceVersion:"2642", FieldPath:""}): type: 'Normal' reason: 'DeletedByRescheduler' Deleted by rescheduler in order to schedule critical pod kube-system_heapster-v1.3.0-76786035-rw214.
I0406 13:38:38.486228       1 rescheduler.go:332] Pod default_nginx-test-2766461593-zr3c8 will be deleted in order to schedule critical pod kube-system_heapster-v1.3.0-76786035-rw214.
I0406 13:38:38.486275       1 event.go:217] Event(v1.ObjectReference{Kind:"Pod", Namespace:"default", Name:"nginx-test-2766461593-zr3c8", UID:"ca7d4a9c-1acc-11e7-96d4-066ad7a20777", APIVersion:"v1", ResourceVersion:"2806", FieldPath:""}): type: 'Normal' reason: 'DeletedByRescheduler' Deleted by rescheduler in order to schedule critical pod kube-system_heapster-v1.3.0-76786035-rw214.
I0406 13:38:38.655555       1 rescheduler.go:178] Waiting for pod kube-system_heapster-v1.3.0-76786035-rw214 to be scheduled
I0406 13:39:34.659128       1 rescheduler.go:190] Pod kube-system_heapster-v1.3.0-76786035-rw214 was successfully scheduled.

Unfortunately as per my notes in https://github.com/kubernetes-incubator/kube-aws/issues/118#issuecomment-291182707, the logs are inside the container at /tmp/rescheduler.INFO. Even the salt config does not function as expected.

@mumoshu I've also noticed that when the rescheduler taints a node so a critical pod can try to re-establish itself, it take quite some time compared with older k8s versions. In my tests I've had the rescheduler timeout multiple times in a row while it waits for the pod to be scheduled again. The timeout is ten minutes and I've had at least 4-5 in a row before. I suspect something is wrong with the combination of scheduler + critical pod markers + rescheduler taints setup.
I0406 13:39:38.661202       1 rescheduler.go:284] Releasing taint {Key:CriticalAddonsOnly Value:kube-system_heapster-v1.3.0-76786035-rw214 Effect:NoSchedule TimeAdded:0001-01-01 00:00:00 +0000 UTC} on node ip-10-0-102-121.eu-west-1.compute.internal

Could be heapster specific as I've tried kube-dns a few times and it's typically within a minute:
I0406 15:05:59.697077       1 rescheduler.go:140] Critical pod kube-system_kube-dns-3816048056-xz1xk is unschedulable. Trying to find a spot for it.
I0406 15:05:59.707601       1 rescheduler.go:159] Trying to place the pod on node ip-10-0-102-121.eu-west-1.compute.internal
I0406 15:05:59.721727       1 rescheduler.go:332] Pod default_nginx-test-2766461593-jt9j5 will be deleted in order to schedule critical pod kube-system_kube-dns-3816048056-xz1xk.
I0406 15:05:59.722011       1 event.go:217] Event(v1.ObjectReference{Kind:"Pod", Namespace:"default", Name:"nginx-test-2766461593-jt9j5", UID:"81eb0fc7-1ad1-11e7-96d4-066ad7a20777", APIVersion:"v1", ResourceVersion:"16197", FieldPath:""}): type: 'Normal' reason: 'DeletedByRescheduler' Deleted by rescheduler in order to schedule critical pod kube-system_kube-dns-3816048056-xz1xk.
I0406 15:05:59.728748       1 rescheduler.go:332] Pod default_nginx-test-2766461593-xfbw2 will be deleted in order to schedule critical pod kube-system_kube-dns-3816048056-xz1xk.
I0406 15:05:59.728953       1 event.go:217] Event(v1.ObjectReference{Kind:"Pod", Namespace:"default", Name:"nginx-test-2766461593-xfbw2", UID:"cb4735f0-1acc-11e7-96d4-066ad7a20777", APIVersion:"v1", ResourceVersion:"26197", FieldPath:""}): type: 'Normal' reason: 'DeletedByRescheduler' Deleted by rescheduler in order to schedule critical pod kube-system_kube-dns-3816048056-xz1xk.
I0406 15:05:59.733732       1 rescheduler.go:332] Pod default_nginx-test-2766461593-z033b will be deleted in order to schedule critical pod kube-system_kube-dns-3816048056-xz1xk.
I0406 15:05:59.733837       1 event.go:217] Event(v1.ObjectReference{Kind:"Pod", Namespace:"default", Name:"nginx-test-2766461593-z033b", UID:"36eb66ae-1ad8-11e7-96d4-066ad7a20777", APIVersion:"v1", ResourceVersion:"26051", FieldPath:""}): type: 'Normal' reason: 'DeletedByRescheduler' Deleted by rescheduler in order to schedule critical pod kube-system_kube-dns-3816048056-xz1xk.
I0406 15:05:59.740243       1 rescheduler.go:178] Waiting for pod kube-system_kube-dns-3816048056-xz1xk to be scheduled
I0406 15:06:24.743981       1 rescheduler.go:190] Pod kube-system_kube-dns-3816048056-xz1xk was successfully scheduled.
I0406 15:06:29.741049       1 rescheduler.go:284] Releasing taint {Key:CriticalAddonsOnly Value:kube-system_kube-dns-3816048056-xz1xk Effect:NoSchedule TimeAdded:0001-01-01 00:00:00 +0000 UTC} on node ip-10-0-102-121.eu-west-1.compute.internal
I0406 15:06:29.745943       1 rescheduler.go:296] Successfully released all taints on node ip-10-0-102-121.eu-west-1.compute.internal

Codecov Report

Merging #508 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #508   +/-   ##
=======================================
  Coverage   38.12%   38.12%
=======================================
  Files          44       44
  Lines        3108     3108
=======================================
  Hits         1185     1185
  Misses       1729     1729
  Partials      194      194

Impacted Files
Coverage Δ

core/controlplane/config/config.go
55.47% <100%> (ø)
:arrow_up:

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 b0614a8...54ba90c. Read the comment docs.

Thanks as always @c-knowles!
Code LGTM.
Would you mind opening an issue dedicated to the timeout issue on kubernetes/contrib if you feel appropriate?
About the logging, I've commented on the issue anyway - Would you mind the issue to be resolved before this gets merged?

// I'm ok to merge this anyway because we at least need this to get rescheduler to work in k8s 1.6

@mumoshu yes I will open an issue if I can determine whether it's related to our quite new setup in kube-aws master. For merged, I think it's better to merge this as I think the old rescheduler does not work on k8s 1.6 with the various critical pod change. It's turned off by default and we can track the final changes to sort this out in https://github.com/kubernetes-incubator/kube-aws/issues/118.

@c-knowles Got it. Thanks!


add more keywords in package.json file

Describe the bug
Currently the keywords used for search engine optimization(SEO) found in the package.json file is small.
To Reproduce
Steps to reproduce the behavior:
open package.json file and locate the field keywords
Expected behavior
the Keywords should be as much as possible
Additional context
This is a first-timer issue. Add more keywords to the list

good,thannks for the keywords @jpenanje

am closing the issue now.it has been resolved by you.tnks


vdk-core: refactor test to use job_path method

job_path is shorter version to get the jobs path in test in vdk-core
Signed-off-by: Antoni Ivanov<EMAIL_ADDRESS>

I can see other def job_path implementations, that would evaluate get_test_job_path, only substituting the __file__ where the function is defined.
I would suggest, instead of defining multiple job_path functions per each package (for example functional.run in this particular case), to introduce a common job_path method, that considers the location relatively to the actual caller file location - in favour of __file__ of definition.

I will consider re-implementing util.job_path to be more generic in separate PR. But let's merge this first.


Allow create/delete timeouts for aws_route resource to be specified

what

Added variables to allow specifying create/delete timeouts for all aws_route resources created by this module
Included these in examples/complete

why

Some dependent modules have been experiencing errors related to aws_route not being ready - see terraform-providers/terraform-provider-aws#12073
This will allow downstream module tests to increase the timeout (particularly create)

references

https://github.com/terraform-providers/terraform-provider-aws/issues/12073

/rebuild-readme

/test all


⚠ Shadow Does Streams has degraded performance

In 0216d4d, Shadow Does Streams (https://stream.everythingbagel.me) experienced degraded performance:

HTTP code: 200
Response time: 3989 ms

Resolved: Shadow Does Streams performance has improved in 0f59016 after 9 minutes.


align before_ms type with protocol as u64

fixes #53
Note that because there is no concept of "TimeStamp" on the polkadotjs types package, a Date is used instead to be more js centric. However, it's easier just to deal with the u64 form of the timestamp, which is all that the timestamp type wraps on the protocol side.

corresponding PR:
https://github.com/prosopo/protocol/pull/179


Rename transformer

Having another go using the schema rewriter.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: michaelstaib:x: matt-psaltisYou have signed the CLA already but the status is still pending? Let us recheck it.


asyncio error

I get the following error in docker logs when pushing the button or using the wakeword with the Atom Echo, and then nothing happens:
INFO:__main__:Ready
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-5' coro=<AsyncEventHandler.run() done, defined at /usr/local/lib/python3.9/dist-packages/wyoming/server.py:26> exception=JSONDecodeError('Extra data: line 1 column 19 (char 18)')>
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/wyoming/server.py", line 28, in run
    event = await async_read_event(self.reader)
  File "/usr/local/lib/python3.9/dist-packages/wyoming/event.py", line 48, in async_read_event
    event_dict = json.loads(json_line)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 340, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 19 (char 18)

Everything in home assistant is set up according to the guide. I am running the following docker stack:
  wyoming-whisper:
    image: rhasspy/wyoming-whisper:latest
    container_name: ha-whisper
    ports:
      - "10301:10300"
    volumes:
      - ./whisper:/data
    # command: --model tiny-int8 --language en
    command: --model tiny --language en
    restart: unless-stopped
    environment:
      - TZ=$TZ

  wyoming-piper:
    container_name: ha-piper
    image: rhasspy/wyoming-piper:1.3.2
    command: '--voice en_US-lessac-medium'
    volumes:
      - ./piper-data:/data
    environment:
      - TZ=$TZ
    restart: unless-stopped
    ports:
      - 10200:10200

  wyoming-openwakeword:
    image: rhasspy/wyoming-openwakeword
    container_name: ha-wakeword
    command: [  "--preload-model", "ok_nabu"  ]
    volumes:
      - "./openwakeword/custom-models:/custom"
    environment:
      - TZ=$TZ
    restart: unless-stopped
    ports:
        - 10400:10400

Any help is appreciated.

Hi @krusse
Maybe you've a bad indention in your container for openwakeword, in port section, nope ?

Same here

Looks like bad data coming in over the TCP port

I have the same error
But the error just come when i use atom-echo  listening
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='wyoming event handler' coro=<AsyncEventHandler.run() done, defined at /usr/local/lib/python3.9/dist-packages/wyoming/server.py:28> exception=AssertionError()>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/wyoming/server.py", line 35, in run
if not (await self.handle_event(event)):
File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/handler.py", line 58, in handle_event
assert self._wav_file is not None
AssertionError


Beer Song: Move version into pubspec.yml

Per #210, the Beer Song exercise should store the version of the exercise in the pubspec.yml file instead of the .meta/version file.

@Zureka Thanks. Sorry about my previous feedback when you created beer-song. I thought that was the only option and after discussing with the other maintainers decided we didn't need it when we have the pubspec.yaml file.


Duplicate export when function exported under default and its name

Coming over from https://github.com/JoshuaKGoldberg/astro-konamimojisplosion/pull/13, given a file like:
export function konamimojisplosion() {
	return { /* ... */ }
}

export default konamimojisplosion;

Knip reports that the export is duplicated:
> knip

Duplicate exports (1)
konamimojisplosion, default  src/index.ts

That duplicate export is intentional though. I'd wanted to export under both styles so folks can use either import style for convenience.
Can we go with either or both of:

This kind of behavior on my end is common+reasonable enough that it shouldn't be reported by default?
Having an option to toggle whether this report would be made in that case?

My thought is that, in order to remove unused exports, it's best to be explicit. That's why duplicate exports are reported by default.
You can use --exclude duplicates (or "exclude": ["duplicates"]) to exclude this issue type from the report.

I do want to still have duplicates detection though. Could we have a way to remove it just for this one case? Like a per-file or per-line or per-name disable?

:rocket: This issue has been resolved in v2.22.0. See Release 2.22.0 for release notes.

Added @alias to ignore instances of duplicate exports!


Not installable from Git

lib/index.js does not exist in the git repo. Should it be shipped so people can install the package directly from github? It is very useful for testing PRs or testing latest versions in general.

I dislike the concept of having build files inside the source repo,
You can always fork it, run build:lib and commit the lib folder for your own use though

Closing, if you still want to discuss this feel free to reopen :)

I've "vendored" in the PR I need for now so don't need it right away but it is a nice thing to have. A necessary evil :)


Figure out what to do with indy-wql

The indy-shared-rs repository contains an implementation of the wallet query language (WQL). It seems the wql module is used currently used by Aries Askar and Indy CredX. The new AnonCreds library will also need to support .
As Aries Askar now depends on indy_wql, it may make sense to make both AnonCreds and Aries Askar depend on WQL. Need to gather some feedback on this approach.

[ ] Determine where the wql code will live (indy-shared-rs, anoncreds, aries-askar)
[ ] Determine whether the WQL needs to be standardized as part of AnonCreds

It could also be a separate specification, with separate implementation

If we keep it in here, we should rename it to anoncreds-wql (or maybe even just wallet_query_language)
Discussed:

Move implementation to Aries Askar (ask Andrew Whitehead)
Interface in anoncreds(-utils) that is only used for validation in proof request (can be really simple)

@andrewwhitehead I discussed this with @dkulic, @victormartinez-work and @blu3beri and we think it would be best to move the WQL implementation (only seems to be one file) to Askar itself, and add a minimal implementation based on what is needed for proof requests to the anoncreds lib.
Is that approach okay with you? We would like to keep dependencies between projects where not needed as low as possible

Once this is merged the ticket is completed.


Set dirty flag only when render state of bob is changed

This PR (delete as applicable)
Enhance a little performance

Describe the changes below:
Only set dirty flag when bob becomes invisible (visible === false, or alpha <= 0) from visible state, or from visible state to invisible state.
Use case: when bob.alpha is changed between 1 to 0.0000x, it won't set dirty flag.

👍


Added new game Eco Warrior

PR Description 📜
Eco Warrior is an educational and engaging game designed to raise awareness about environmental conservation. Players take on the role of an eco-warrior whose mission is to clean up litter, plant trees, and restore ecosystems. The game is designed to be both fun and educational, teaching players the importance of keeping the environment clean and green.
Fixes #4296

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for website preview in assets/images
[x] I have added entries for my game in GameZone's README.md
[x] I have added README.md in my Game folder
[x] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸

Thank you soo much for contributing to our repository 💗

Thank you @Antiquely3059 ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Thank you  @Antiquely3059 , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


Use ANTLR SQLite grammar for batch splitting

This addresses a user issue where SQLite extensions supported by the libsql vendor could not be used in spin up --sqlite @file.  It aligns our statement splitter with the one used by libsql-go, which is probably as official as we're going to get.
There are possible maintenance implications if we ever need to update the grammar; I have documented the process but it is very much a manual one.
As noted, the goal here is to align with libsql-go.  To do so, I have followed the Go implementation as closely as the borrow checker will let me.  This means the code is (to my eyes) not very idiomatic Rust, and (to Clippy's eyes) an abomination before heaven.  We could make an idiomatic implementation, but then it would be harder to follow if we ever needed to port an update from the Go implementation.  Maybe it's not so huge that it would be a concern, but my understanding of the original was not great, so I chose to keep it as similar as I could - open to feedback for sure, but I'd prefer that to be at the level of "to what extent do we want to align" rather than pointing out individual un-Rustacean bits!
The huge sqlite_lexer file is ANTLR-generated; the source is documented in the mod.rs comments.
It would be good to get some samples for tests, since the maintenance of this is now on us.

Oh, heck, even though we only use the output (and it builds fine), it seems like the ANTLR runtime has a custom build command that is making the e2e tests sad...

Is it... is it trying to regenerate its test grammars?  https://github.com/rrevenantt/antlr4rust/blob/master/build.rs
But why, then, would it build in, er, build, but not in e2e?!

Ah, there's a beta on crates.io.  Let's see if that's better behaved than <random-sha>.

@itowlson this PR scares me - I'd really rather not have to maintain this if possible. Perhaps we're going about this the wrong way, and instead we should be exploring ways we can avoid having to split strings into multiple SQL statements. Perhaps there's a way we can just send the entire string as one thing and let any downstream processes do the splitting if they need to. I realize this might require asking for features in projects we don't control, but perhaps that is a more sure first step?

We could parse the statements with sqlite... :grimacing:

@rylev That would be vastly preferable.  The Go libsql client already accepts multiple statements in a single string, in order to be consistent with the Go SQL interface; if we can persuade libsql to have a single-string function in the Rust client too, then this whole problem goes away.

@rylev To be clear re "ways we can avoid having to split strings into multiple SQL statements"...  We are splitting because somewhere at some deep level (I think sqld / hrana, but I didn't keep adequate notes when diving into this, sorry - if you follow the link in the code it should take you to the starting point was the starting point for me) there is an interface (hrana BatchRequest I think) which accepts an array of statements, and rejects strings that contain multiple statements.  We don't see this in our own sqld interactions because they're written in Go, and Go (in order to conform to its standard SQL API) disguises this by splitting internally before handing off to the database layer.
So as far as I can tell "avoid having to split" means either:

Getting the server to allow composites in a standard request
Doing the splitting inside the libsql client where we don't have to look at it or maintain it (the Go solution)

Not sure of any other options but very much open to anything that makes this not our problem!

This seems to work: https://github.com/fermyon/spin/pull/1772

Closing in favour of the frankly less alarming #1772.


squid:S1118 - Utility classes should not have public constructors

This pull request is focused on resolving occurrences of Sonar rule squid:S1118 - Utility classes should not have public constructors
You can find more information about the issue here: https://dev.eclipse.org/sonar/coding_rules#q=squid:S1118
Please let me know if you have any questions.
M-Ezzat

I am not sure whether you do not agree with these changes or not. Please close this PR if not.

Hi,
Sorry for the late reply.
Sure, utility classes should have a private constructor. But, since this constructor is private and cannot be invoked, why not just leave it empty? The code inside this constructor will never be executed, hence it is dead code. Do you agree?
Kind regards
Mahmoud

This protects the class from being initialized from within the class or using reflection.

This protects the class from being initialized from within the class

Not sure this will happen, a class creating instances of its own..

This protects the class from being initialized using reflection.

Sure, we can do anything using reflection and bytecode modifications. I can even rewrite this private constructor..
But let's be pragmatic, even though this class is instantiated, this would not be harmful anyway, it is stateless and only providing static methods. Being curious, I was looking at how popular open source projects like google guava and apache commons for utility classes. They are actually providing an empty private constructor, some examples:

https://github.com/google/guava/blob/master/guava/src/com/google/common/base/Functions.java#L43
https://github.com/google/guava/blob/master/guava/src/com/google/common/base/Suppliers.java#L37
https://github.com/apache/commons-lang/blob/master/src/main/java/org/apache/commons/lang3/StringUtils.java#L183
https://github.com/apache/commons-lang/blob/master/src/main/java/org/apache/commons/lang3/ObjectUtils.java#L72

What are your thoughts on that?

Yea, it can happen and depends on the case, and it's not harmful but I think it's just a clear flag and good structure for the utility classes.

Ok, that's fine. Let's move on :smile:
Thank you for your PR.


How to return a pure image (without card wrapper) in message extension?

I what to it render an image just like the Giphy does.
<img src="...">

But, it says composeExtension.attachments can only be 4 kinds of cards.
What should it return?

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

ID: 88ff3777-49c4-8cdc-089e-8612a8774ffb
Version Independent ID: 0d927000-0b55-2129-cbbb-6630c1ec481e
Content: Search with messaging extensions - Teams
Content Source: msteams-platform/concepts/messaging-extensions/search-extensions.md
Product: msteams
GitHub Login: @o365devx
Microsoft Alias: o365devx

@NewFuture In order to return plain images from Message Extension, please try setting the composeExtension.attachmentLayout to grid as described here and send thumbnail images.
var response = new ComposeExtensionResponse(new ComposeExtensionResult("grid", "result"));
response.ComposeExtension.Attachments = attachments;
return response;

Each attachment will only contain a thumbnail image. Please try sending a thumbnail image and let me know if you face any issues.

@Gousia-MSFT thank you.
Yes, it will insert a thumbnailCard as an image, which has a fixed width and height.
And I also have tried the Adaptive card.
But. they have two problems:

fixed width and height ,I want to insert images with different width and height.
The GIF can not play in mobile teams (iOS).

so I want to send a HTML img tag from the extension， which works in bots response.
it's there any way to send <img> tag in message extension?

@NewFuture It is not possible to send a HTML tag from a message extension. You could use TaskModule if you want to open Html content from bots.

@Gousia-MSFT  thanks.

It's impossible to insert an image instead of a card into the input box at now.

is it right?

@NewFuture You can insert an image but that should be a thumbnail image as described earlier. You cannot use  tags to insert image. Here is how you could send a thumbnail image:
var previewCard = new ThumbnailCard
{
 Images = new System.Collections.Generic.List<CardImage> { new CardImage("http://lorempixel.com/640/480?rand=" + DateTime.Now.Ticks.ToString()) }
};
 return previewCard.ToAttachment().ToComposeExtensionAttachment();

@Gousia-MSFT thanks, but the ThumbnailCard has some different behaviors with pure img

@NewFuture Could you please help me understand what difference you are talking about? Please share a screenshot of what you are expecting it to be like.

Please re-open of you still face any issues.

@Gousia-MSFT, sorry for my late reply.
Could you contact me in Microsoft Teams (just search New Future)?
I will show you the difference.


[ListItem] Use the new icons to follow the material spec

[ ] PR has tests / docs demo, and is linted.
[ ] Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
[ ] Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

Closes: https://github.com/callemall/material-ui/issues/3873
Added the keyboard-arrow-up and keyboard-arrow-down icons from the material-spec and replaced the existing list-item up and down arrows with them.
Before:

After:

https://www.google.com/design/spec/components/lists-controls.html#lists-controls-types-of-list-controls

Shouldn't it be ic_expand_more and  ic_expand_less ?

Should it perhaps be ic_expand_more and ic_expand_less?

Makes sense. @mbrookes @oliviertassinari : I am gonna go with this

@tintin1343 That's better like this :+1:. What about the color, are we using the same one?

I think so. It should be since I used the existing component that we already have.

@tintin1343 - you're assuming it was correct to start with. :smile:
Should be grey600. Menu has it in muiTheme.

The color is definitely not the right one.
actual

expected

Let's merge this PR as the color was already wrong before.

@tintin1343 Thanks, feel free to fix the color later :+1:.

Might as well fix it here. :smile:

@mbrookes @oliviertassinari : Sorry , i was out of town for couple of days and had no internet access. Was the color changed or should I do it?

Was the color changed or should I do it?

I have justed merged the PR as it's. If you can fix the color, that would be great :+1:. Thanks!


Memory leak found for python lib

I find there is a memory leak when loading the index file. Here are the code snippets.
//python3
import psutil
import hnswlib
proc = psutil.Process()
index_map = {}
for i in range(100):
print('before: {} MB'.format(proc.memory_info().rss / 1024 / 1024))
knn_index = HNSWIndex(128, 10000)
knn_index.load('resources/indexes/03fef96d.runscope_medium.1636638189768806400.idx')
index_map['ks1'] = knn_index
print('after: {} MB'.format(proc.memory_info().rss / 1024 / 1024))
//output
before: 14.484375 MB
after: 23.72265625 MB
before: 23.72265625 MB
after: 24.390625 MB
before: 24.390625 MB
after: 24.92578125 MB
before: 24.92578125 MB
after: 33.6875 MB
before: 33.6875 MB
after: 41.6796875 MB
before: 41.6796875 MB
after: 49.4140625 MB
before: 49.4140625 MB
after: 57.40625 MB
before: 57.40625 MB
after: 65.140625 MB
before: 65.140625 MB
...

@kasim-du Thanks for reporting! I'll fix it very soon.

Should be fixed in https://github.com/nmslib/hnsw/tree/fix-multiply-loads , although I haven't tested it directly.
The branch will be merged after a while.

Thanks for your fix, but there are still memory usage increase for the second and forth load of the same index file.
//output
before: 14.5078125 MB
after: 23.3203125 MB
before: 23.3203125 MB
after: 24.05859375 MB
before: 24.05859375 MB
after: 24.05078125 MB
before: 24.05078125 MB
after: 31.78125 MB
before: 31.78125 MB
after: 31.78125 MB
before: 31.78125 MB
after: 31.78125 MB
before: 31.78125 MB
after: 31.78125 MB
...

@kasim-du I am not sure if this a bug. Might be some sophisticated compiler memory management optimization.


McAfee reports a trojan virus alert to me.

McAfee reports a trojan virus alert to me.

It appears that wakatime download an executable program for me.

Future discussions moved to #660.


Clone for 8bit

Hi, I assume you want to add this line because you encounter an error without it? Could you please provide an example that replicates that error?


Not working with gmail and pwsh version 7.4

I had tried using windows powershell 5.1 to no avail - kept getting errors from google regarding credentials.  So I installed powershell 7.4 and tried again and am still getting the errors - google complaining about my user/password credentials; but those credentials are the same I use with my outlook 2013 email program and same as the one's I use to sign into gmail.com.  I'm not sure where to go from this point nor how to troubleshoot/debug the problem.  I'm not more than a neophyte with powershell in general.  I'm using the example provided with "all parameters" but I comment out the optional parameters I don't need, like cc, bcc and attachment.

Thanks for the link...I can't use the env approach because that still exposes the password.  I've discovered another approach using a couple powershell functions which get the password from the user (admin user on the server) in an install script, creates a file with the encrypted password and then uses that file data to create a System.Security.SecureString object that I use to create a Credential object which is used in the Send.  The file remains on the server disk and persists across server reboots (if necessary).  Should the file become corrupted or deleted for some reason, it is easily re-created which is performed by anyone who can log into the server.


Intelligent Loss Function Generation for Program Optimization

Epic: Intelligent Loss Function Generation for Program Optimization
Summary: Develop a compiler that utilizes a program's AST, data flow diagrams, profile data, and runtime execution to generate and optimize a just-in-time loss function. This loss function will consider error states and user data to enhance program robustness and efficiency.
Benefits:
Adaptable loss functions for tailored program optimization
Identification and mitigation of error-prone sections
Collaborative learning to improve loss functions across the programmer community
Technical Implementation:
Compiler analysis of AST and data flow diagrams
Integration of profile data for runtime behavior insights
Just-in-time loss function generation with dynamic updates
Loss function learning from runtime execution data
Secure and anonymous data sharing mechanism
Next Steps:
Research existing literature on adaptive loss functions and program optimization techniques
Prototype a compiler component for AST and data flow analysis
Design algorithms for loss function generation and learning from runtime data
Develop a secure data sharing mechanism for anonymized profile information

You're absolutely right! Instead of solely focusing on the final output string, training a model on the entire tree of computation that generates the output offers several advantages:

Richer Context: The computation tree captures the program's execution flow, including intermediate steps, decisions, and function calls. This provides a richer context for the model to understand the program's behavior and identify potential issues.

Error State Analysis: By incorporating error states within the tree, the model can learn to identify patterns that lead to errors. This allows for more targeted optimizations that address the root causes of errors.

Generalizability: Training on the computation tree allows the model to generalize better to unseen inputs. The model can learn the underlying program logic rather than memorizing specific input-output pairs.

This approach aligns well with the concept of intelligent loss function generation you proposed earlier. By analyzing the computation tree, the compiler can extract features that are then used to create a customized loss function for the program. This loss function can then be used to guide program optimization during runtime.


How well does paper-qa work with full Zotero libraries?

Hi,
I'm curious to give paper-qa a try.
Before spending time playing around with I have a couple of questions that can maybe be answered easily.

Will this work, in principle, with a Zotero database of about 2000 papers?
If I understand it correctly, the embeddings are done by OpenAI. Would embedding this many papers be a big cost factor?

Thanks a lot for the info.
Cheers,
Michael

Hi @mretier I was using an index that started from a local folder of 5.5k papers yesterday, so it can work.

Would embedding this many papers be a big cost factor?

Let me get back to you on this, I don't recall what the cost was for me to make the index. If you provide a manifest file, it will decrease API calls as we won't try to infer the paper title


Content for form explainer

Here are my updates to the form explainer's content.
Additions

Added a new folder for the closing disclosure, moved all the closing-disclosure-related files there

Changes

Renamed form explainers folder to loan estimate
Renamed the closing-disclosure.html file to index.html
Updated lots of content, added a few links
Links should all open in a new tab now
Updated closing checklist PDF
Updated closing forms PDF

Notes

These pages worked locally for me earlier this morning (a miracle!), but now they aren't working, and they're throwing this error for me (which is different than before, I think):
 Let me know if they work for you or if you see stuff that needs to be fixed.
@mthibos I didn't make the changes you labeled BIG IMPORTANT THING since we don't have those links yet.

Review

@virginiacc or @cfarm
@mthibos for content, once we have a way she can preview it (or maybe she can review on build once it's up on Monday)Here are my updates to the form explainer's content.

@cfarm @virginiacc  will someone please merge this so we can see it on build?

Oops, I didn't see your comments until this morning, @virginiacc. Thanks for your help! Also, sheer serve --debug is a good trick :)

:+1: This looks great -- thanks!


Remove superfluous quotes around codetags curriculum/challenges/arabic

[x ] I have read freeCodeCamp's contribution guidelines.
[x ] My pull request has a descriptive title (not a vague title like Update index.md)
[x ] My pull request targets the master branch of freeCodeCamp.
[x ] None of my changes are plagiarized from another source without proper attribution.
[x ] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Refer #35481

checked back log aon contributed and review pulled request

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉

@RandellDawson Thank you for the kind and supporting words. I am more than glad to have contributed to freeCodeCamp.


[RHCLOUD-19111] Refactor status system on rhc-osdk-utils (take 2)

Refactored status system on rhc-osdk-utils. We had a draft PR for this but it was a mess so I just closed that and started over clean.

Set to draft to deal with https://issues.redhat.com/browse/RHCLOUD-19399

Rebase nightmare. Starting over.


[1.3] Occupancy Sensing Cluster XML has to be updated as per spec

Description:

[x]  "OccupancySensorType" attributes max range has to be updated as per spec in XML.

XML Screenshot:

Spec Screenshot:

Spec Reference:

https://github.com/CHIP-Specifications/connectedhomeip-spec/blob/master/src/app_clusters/OccupancySensing.adoc#43-occupancysensortypeenum-type

XML Reference:

https://github.com/project-chip/connectedhomeip/blob/master/src/app/zap-templates/zcl/data-model/chip/occupancy-sensing-cluster.xml

No longer relevant from last cluster revision that has addditional tests to cover this.


[Feature Request] Adding Snapshot view

Just like you can click on recordings, and go to recordings, maybe the same for snapshots?  Also for cameras that have substreams specifically for snapshots (like mine), being able to add it under substream?  Thanks and awesome job!!

Sounds like a good idea!
So basically you would like to see the .jpg file on a separate page?
Can you elaborate a bit on what you mean with being able to add it under substream?

Sounds like a good idea!
So basically you would like to see the .jpg file on a separate page?
Can you elaborate a bit on what you mean with being able to add it under substream?

Or have them on the same page. When clicking on Recording, it pulls up one side recordings according to camera name and on the other side the snapshots.


Conditional breakpoints do not work

I am trying conditional breakpoints on vscode, but the debugger doesnt stop.
If I put the breakpoint normally, it stops. And if I use the watch menu to check the value of the variable I am checking as "condition" it also works fine.
But stopping at the conditional breakpoint itself doesnt work

I have the same issue, even worse, when I enable conditional breakpoint, the debug wouldn't start, or if I enable it during the run, application would fail.

Can you provide a verbose log please?

Conditional breakpoints do work.   Problem is, value is an int&, so for comparison purposes it's "value" is the address of the variable referenced, which will never be equal to 20.   When evaluating simple expressions, CodeLLDB does not take into account the C++ semantics.   If you use native expressions, however, (i.e. /nat value == 20) this will work as you expect.


[BUG]: 不能连接网络，运行AI Agents无效

How are you running AnythingLLM?
AnythingLLM desktop app
What happened?
开启管理员指令中的网络链接模式后，AI Agents配置也正常，但是对话无法正常使用，无法访问网络

Are there known steps to reproduce?
No response

[Translated] After turning on the network link mode in the administrator command, the AI Agents configuration is normal, but the dialogue cannot be used normally and the network cannot be accessed.

With your prompt, you seem to have called @agent but it did not start a session. Is there any empty space at the start of that prompt or something?
You know @agent is working because you would see this right at the start under your first agent prompt

Additionally, the Network sharing mode is only to allow external devices to reach your desktop's AnythingLLM instance. It has no impact on agent or tool calls and unless you are using the Developer API for other devices to use your AnythingLLM instance on your desktop - you should turn it off


MimeType "application/json" missing from gzip configuration

Somewhere between 0.11 and 0.14, use_gzip was modified to add this code:
          let additionalMime = [|
            "application/x-yaml";
            "image/svg+xml";
            "application/octet-stream";
            "application/x-font-ttf";
            "application/x-font-opentype";
            "application/x-javascript";
            "text/javascript";
          |]
          o.MimeTypes <- if not (isNull o.MimeTypes) then  Seq.append o.MimeTypes additionalMime else Seq.ofArray (additionalMime)

The expectation seems to be that these would be added to defaults (such as "application/json"), but from what I can tell, it seems to be the definitive list of gzippable mime types.
So, in v0.11, o.MimeTypes is not set in use_gzip, and a response of type application/json gets gzipped just fine.
In 0.14, that same response will not be gzipped, unless we add application/json into the additionalMime array.
Disclaimer: my research is based on pulling this code into a Giraffe app. I'm not using Saturn. I did however take the safe template and create a my_use_gzip to test this with.
(Out of interest the safe-stack template uses Saturn 0.11.0.)
Hopefully this all makes sense.
My proposed fix is to add application/json into additionalMime. I don't know what other defaults have effectively been lost though
          let additionalMime = [|
            "application/x-yaml";
            "image/svg+xml";
            "application/octet-stream";
            "application/x-font-ttf";
            "application/x-font-opentype";
            "application/x-javascript";
            "text/javascript";
            "application/json";
          |]

I believe this change was originally contributed by @Thorium - any opinions?

I wanted to have an option to deliver and zip yaml-files. As long as that is possible, I'm happy with any implementation. I think in 0.11 it wasn't.

My fix is a workaround. Ideally, we want to add to the existing defaults, not replace them. I could look a little deeper and see how that might be done.

Fixed by #274


Example rabbitmq.config

Hi, the project is awesome..
Would be great if there was an example config file to edit and save time with bad syntax...

There are example configs in the wiki. For example:
https://github.com/aweber/rabbitmq-autocluster/wiki/AWS Configuration#example-configuration


chore(mui5): Migrate devtools plugin to Material UI 5

Relates to #7094
Hey, I just made a Pull Request!
Migrate devtools plugin to mui v5
Screenshots after change

:heavy_check_mark: Checklist

[X] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[X] All your commits have a Signed-off-by line in the message. (more info)

looks like you have the same error as I'm having in my PR https://github.com/backstage/backstage/pull/27572, you said I should fix the peerDependencies for mui 5 but by looking at the code here there is this const that I assume is the one responsible to make the CI failing:
const peerDependencies = {
  '@types/react': '^16.13.1 || ^17.0.0 || ^18.0.0',
  react: '^16.13.1 || ^17.0.0 || ^18.0.0',
  'react-dom': '^16.13.1 || ^17.0.0 || ^18.0.0',
  'react-router-dom': '6.0.0-beta.0 || ^6.3.0',
};

@sebalaini ok, I've mentioned the issue with react versions in the related ticket and will bring back 16 here again

@sebalaini ok, I've mentioned the issue with react versions in the related ticket and will bring back 16 here again

hey @deejay1, I saw, I was subscribed to that issue :) I'll revert my PR tonight or later on during the day with my personal GH account.
Yesterday I was also exploring the removal of the Theme type, as the doc you pointed in my PR say:

You can follow the migration of the GraphiQL plugin as an example of a plugin migration.

I saw that they don't use the type but tests still fails.

Thanks for the contribution, as I already had a PR open for this I'm going to close this one. 👍

@awanlin ahh, sorry I didn't notice it


How can we render real game videos ?

Save a replay then (re)play it on windows/mac, and then capture the screen.

OK, thanks, I was trying in linux with the flag options.


Updating to Aurelia/framework 0.9

Hi,
Running jspm update doesn't appear to update Aurelia/framework to 0.9. The github repository does appear to be at 0.9 though. Is there anything else I need to do that I've missed?
Any help greatly appreciated!
Here's the install log:
 Looking up npm:font-awesome
      Updating registry cache...
      Looking up github:aurelia/router
      Looking up github:aurelia/http-client
      Looking up github:aurelia/framework
      Looking up github:aurelia/bootstrapper
      Looking up github:aurelia/dependency-injection
      Looking up github:twbs/bootstrap
 ok   Up to date - font-awesome as<EMAIL_ADDRESS>(4.3.0)
      Looking up npm:core-js
      Looking up github:aurelia/event-aggregator
      Looking up github:aurelia/history-browser
      Looking up github:aurelia/loader-default
      Looking up github:aurelia/logging-console
      Looking up github:aurelia/history
      Looking up github:aurelia/templating
      Looking up github:aurelia/templating-binding
      Looking up github:aurelia/templating-resources
      Looking up github:aurelia/templating-router
      Looking up github:aurelia/metadata
      Looking up github:jspm/nodelibs-process
      Looking up github:aurelia/route-recognizer
      Looking up github:aurelia/path
      Looking up github:aurelia/binding
      Looking up github:aurelia/loader
      Looking up github:aurelia/logging
      Looking up github:aurelia/task-queue
      Looking up npm:process
 ok   Up to date - bootstrap as<EMAIL_ADDRESS>(3.3.4)
 ok   Up to date - aurelia-dependency-injection as<EMAIL_ADDRESS>(0.4.5)
 ok   Up to date - aurelia-http-client as<EMAIL_ADDRESS>(0.6.1)
 ok   Up to date - aurelia-router as<EMAIL_ADDRESS>(0.5.8)
      Looking up github:aurelia/html-template-element
      Looking up github:webcomponents/webcomponentsjs
 ok   Up to date - aurelia-framework as<EMAIL_ADDRESS>(0.8.8)
 ok   Up to date - aurelia-bootstrapper as<EMAIL_ADDRESS>(0.9.5)
 ok   Install tree has no forks.

 ok   Install complete.

Because this is a breaking change, try running jspm install aurelia-bootstrapper