Update signature bytes and string encoding

Context
Starting from testnet 23, signatures are now versioned, both in string and bytes representations.
The wallet code needs to be updated accordingly.
Documentation detailing the changes can be found here
How to

As the node is expecting a versioned signature, the wallet should return the versioned signature instead of the non-versioned one when signing an operation and returning the B58 encoded string.
Write a function that will add a version to the bytes of the signature and return the versioned signature as a byte array.
In the Sign() function, add the byte version to the signature bytes before returning it.

QA testing
QA testing should be done on the whole wallet scope in one swoop once all PR related to testnet 23 are merged in one branch to facilitate testing.

Furthermore, the signature shall be organize in a way that simplify usage by external applications such as teh transaction spammer


RSKj integration

Hi team!
Currently in RSK network projects we are trying to build some “automagic” test environment and we found this library is quite suitable for our requirements.
Instead of using ganache core, we would like to run tests against a local RSK node.
Do you find suitable to integrate RSKj node as another option for running tests?
Ref. on how to start a local RSK node: https://developers.rsk.co/quick-start/step1-install-rsk-local-node/

Hi @ilanolkies!  Thanks for the suggestion, it is really appreciated.
The project owner should review your suggestion during the next week.
Please wait until we have discussed this idea before writing any code or submitting a Pull Request, so we can go through the design beforehand.  We don’t want you to waste your time!

Thanks buddy!

This would be very awesome! Let me know if I could help you with the work on it.

We would like to support alternative nodes eventually but it's not on our plans currently, and Geth would be a priority first. Apologies! Feel free to maintain a fork with support for RSKj.


Fixing "ant clean", clean runs in travis builds

Hi,
It seems we need further changes? https://travis-ci.org/apache/incubator-netbeans/jobs/439002634

Seems better now. I added also a little patch to nbbuild, so the clean does not spill out so much garbage: the depended-on library is cleaned already so naturally it is missing for auto-deps :)

Please re-review for possible unintended side effects.


Hidden Test Case Level 6

Description:
Hello, did anyone fail this hidden test case? If so, what did yall do? Thank you so much.
Screenshots

I failed this test case initially because my room was wrongly updated. Maybe for your case, you can check if you are returning the same room assuming that room is the first one. Hope this helps!

Hi yes it helped thank you so muchh

Does it mean that if returning to the same room then don't tick()?

Does it mean that if returning to the same room then don't tick()?

Yep, these are the test cases for this.
Room q = new Room("q") (nothing)
Room s = q.add(new Candle()).go(x -> new Room("s")).back() (Candle is getting shorter)
Room t = s.back()
Since s is already in room q, t should not tick and return the same output, Candle is getting shorter.

To add on, what I did under the back() method was to check if the previous room name is the same as this. If it is the same, I will return this. (instead of previous room) Hope this helps!

It would be good if you considered previous room as an optional. Hence at your starting room, you could just check if a previous room is present with optional empty if not you would return the current room still

To add on, what I did under the back() method was to check if the previous room name is the same as this. If it is the same, I will return this. (instead of previous room)

I faced the same problem and followed the advice above which works! Thanks!
But I am not too sure why returning this instead of prevRoom is needed to ensure the correct logic, since when i constructed a Room, the prevRoom refers to this if the Room has not been thru a go() method.

To add on, what I did under the back() method was to check if the previous room name is the same as this. If it is the same, I will return this. (instead of previous room) Hope this helps!

Thank you! This help me solved the testcase after being stuck on it for hours....


Add log rotation options to docker daemon (bug#1114832)

This could be interesting for our customers. How can someone configure this?

This could be interesting for our customers. How can someone configure this?

@r0ckarong I guess you could just create pillars via rake docker exec -it $(docker ps | grep "velum-dashboard" | awk '{print $1}') entrypoint.sh bundle exec rake velum:create_pillar[pillar,value] and then run the highstate

Backport to 3.0 https://github.com/kubic-project/salt/pull/692


add natalie to speakers and schedule.

Fixes #80

@ChristinFrohne Can you please tell me what is gonna be the job title for Her


[AUTO-PR] Automatically generated new release 2021-06-24T12:07:28.471Z

What are you changing?

[x] Releasing a new version of Notify
[ ] Changing kubernetes configuration

Provide some background on the changes
⚠ The production version of manifests is behind the latest staging version. Consider upgrading to the latest version before merging this pull request.
NOTIFICATION-API
NOTIFICATION-ADMIN

fix: show page header in safelist.html no matter what (#1073) by Omar Nasr

NOTIFICATION-DOCUMENT-DOWNLOAD-API
NOTIFICATION-DOCUMENT-DOWNLOAD-FRONTEND
NOTIFICATION-DOCUMENTATION
If you are releasing a new version of notify, what components are you updating

[ ] API
[x] Admin
[ ] Documentation
[ ] Document API
[ ] Document UI

Checklist if releasing new version:

[x] I made sure that both API and Admin changes are present in Notify
[x] I have checked if the docker images I am referencing exist - ex: https://gallery.ecr.aws/v6b8u5o6/notify-admin

Checklist if making changes to Kubernetes:

[ ] I know how to get kubectl credentials in case it catches on fire

Working in staging


ball search should ignore switch hits from active devices

In BnD, we're finding that when the coils from some autofire coils devices are pulsed on ball search, their associated switches are activated. This has the effect of canceling the ball search even though it didn't find a ball.
I'm thinking the easiest way to do this is to add a new method to the switch controller to temporarily ignore a switch. So it can be like:
self.machine.switch_controller.ignore_switch(name, ms)
Then we'll maintain a list of ignored switches. This could potentially be used with broken switches in the future. In the case that the ignore_switch() includes a ms setting, we'll just set a delay to remove it.
Probably this should only affect whether the switch events are posted and the callbacks are called so that it doesn't break the actual state of the switch.
With ball search, we can just have the devices call the ignore switch method with the ms that they will be active for plus some percentage (10% or something like that)

@toomanybrians fixed?

not yet. I need to make a similar fix like you did for drop targets to autofire coils too.

Tracking progress in #787


Refactor(client): simplify procedure API

Description of change
Simplify the procedure API added in #258.
The main objective of this PR is to:

Reduce the overall number of different types and traits related to the procedure API
Remove the derive macro to ease future maintaining of the procedure API
Improve convenience for executing only a single procedure
Enable that all operations on the vault can be done through procedures (e.g. write to vault, revoke data, garbage collect data)
Remove unnecessary complexity of procedure input and output (fixed vs dynamic input; temporary vs permanent output)

Internally, most logic and convenience added with #258 is preserved:

New procedures can easily be added by implementing on of the 3 traits: GenerateSecret, DeriveSecret or UseSecret
Multiple procedures can be executed in a row (especially relevant in a remote setting); the collected output is returned
All new cryptographic procedures are still supported (minus the Hash procedure)

From a user perspective, the procedure API is now much more aligned with the "old" implementation (before #258):

Removed concept of temporary output and the necessity to explicitly persist secret and non-secret output with the PersistOutput and PersistSecret traits:

if a secret is only temporary needed, the user can manually revoke it again with the new RevokeData procedure
irrelevant non-secret output can just be ignored

remove new constructor for each procedure, instead make fields public
add Output type for each procedure. If only a single procedure is executed, the return type is directly converted to this output type (e.g. () in case of WriteVault, or ChainCode in case of Slip10Derive)
if multiple procedure are executed: expect a Vec of the procedures, return a Vec of the results of each procedure in the same order

To be discussed:
The feature of "dynamic" non-secret input is removed: it is not possible anymore that one procedure takes the non-secret output of another procedure in the same execution chain as input. I could not think of a case where this is really needed in practice, and removing this feature drastically reduced the complexity of the API and enabled most of the other simplification. In case that anyone thinks this feature is needed, I am happy to re-think a cleaner way of re-adding it.
//CC @abdulmth.
Type of change

[x] Enhancement (a non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)

How the change has been tested
Tested with existing tests.
Change checklist

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] New and existing unit tests pass locally with my changes

Thank you for the review @felsweg-iota.

With the upcoming runtime changes, there would still be some changes involved. GuardedVec will be replaced; I wonder if the different memory types should be opaque ( not visible to the user ) and just operate on the provided types, or if certain procedures could be specialized in terms of their usage eg. The non-contiguous mixed-memory types.

You are definitely right that parts of the procedure API will need to be adapted once the runtime changes are done. That being said, I think this is something we should tackle once the new runtime is actually finished and that this PR should not depend on it. I'd rather have multiple iterations on this, than to make any assumptions right now about the runtime while it is still in early development.
Given that this PR just cleans up a lot of complexity that was introduced in #258, I think it is already a improvement as it is. Especially if the identity team (cc @abdulmth) are currently updating their stronghold integration to the latest dev.


CI against python 3.11 rc1

waiting for actions/python-versions#183

fwiw you can use 3.11-dev and it will get the latest prerelease available in actions/python-versions.

fwiw you can use 3.11-dev and it will get the latest prerelease available in actions/python-versions.

We don't want the version tested against to change silently, also I'd rather be explicit about what we're testing.


TE-14.1 : Update gribi_scaling_test.go

Please find the below update regarding this pull request

Changed the nhID
nhID1         = 65                // nhID1 is the starting nh Index for entries in VRF1
nhID2         = 1065              // nhID2 is the starting nh Index for entries in VRF2
nhID3         = 18565
Changed vlanID start value from 0 to 1

Refer to yang file which is using  vlan rang 1-4094

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 69.611%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1663

Relevant Lines:
2389

💛  - Coveralls

I centralised the removal of the EnabledAddressFamilies from the entire codebase along with a test to validate this #876 -- I suggest we try and keep this clearly defined together rather than piecemeal doing it across different tests.
Can I ask why we are changing the NH IDs here?

I centralised the removal of the EnabledAddressFamilies from the entire codebase along with a test to validate this #876 -- I suggest we try and keep this clearly defined together rather than piecemeal doing it across different tests.
Can I ask why we are changing the NH IDs here?

Index 1-64 are used for programming NH which is used for prefixes in default instance. Hence adjusted indexes of NH used for vrf1,vrf2 and vrf3 prefixes.
https://github.com/openconfig/featureprofiles/blob/3c8d81b153d3ede9e3da1f55318bca77c1311962/feature/gribi/ate_tests/gribi_scaling/gribi_scaling_test.go#L253

/gcbrun

This PR is in the list for this week's effort, and the auto-merge doesn't work. Can you please rebase it so that I can verify it. Thanks.

This PR is in the list for this week's effort, and the auto-merge doesn't work. Can you please rebase it so that I can verify it. Thanks.

I have rebase can you please check

This PR is in the list for this week's effort, and the auto-merge doesn't work. Can you please rebase it so that I can verify it. Thanks.

I have rebased can you please check

Replaced by Pull/1067 and Pull/1068


About Training processing

Dear Authors:
I write the issue to ask for help in the training process of OccDepth:

If it is convenient, can you release your model file based on multicam_flospdepth_crp_stereodepth_cascadecls_2080ti.yaml？

2)When I tried to train the model, I found that the process is really slow on my workstation:
/home/duan/anaconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py:2387: UserWarning: torch.distributed._all_gather_base is a private function and will be deprecated. Please use torch.distributed.all_gather_into_tensor instead.
warnings.warn(
Epoch 0:   3%|███▍                                                                                | 38/1163 [06:42<3:13:32, 10.32s/it, loss=17.4, v_num=]
It seems cost 3.5h for one epoch on 4 A6000 48G GPUs, I just want to know, how much time will you spend to train a model with 30 epochs you mentioned in the .yaml? and are there any wrong settings or something needs to do?

@Louis-Leee
You can download models from Readme#trained-models.
It takes about 1h30min/epoch when training our models on GeForce RTX 2080 Ti with 200g memory and 20 cpus. Maybe you need to check number of cpus and memory.

Thanks for your reply!

请问您的mmcv是怎么安装上去的，我的mmcv 1.4.0怎么都安装不上去

mmcv与pytorch等库有对应版本，可以查看mmcv的官方文档进行选择
mmcv 1.4.0的可以运行，最新的cuda11.7对应的mmcv经测试也可以运行occdepth
或许你可以按照https://github.com/NVlabs/VoxFormer/blob/main/docs/install.md 试一试

安装mmcv现在不报错了，但是运行generate_output报错
python occdepth/scripts/generate_output.py n_gpus=4 batch_size_per_gpu=1
/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmcv/cnn/bricks/transformer.py:28: UserWarning: Fail to import MultiScaleDeformableAttention from mmcv.ops.multi_scale_deform_attn, You should install mmcv-full if you need this module.
warnings.warn('Fail to import MultiScaleDeformableAttention from '
/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/utils/transformer.py:27: UserWarning: MultiScaleDeformableAttention in MMCV has been moved to mmcv.ops.multi_scale_deform_attn, please update your MMCV
'MultiScaleDeformableAttention in MMCV has been moved to '
Traceback (most recent call last):
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/utils/transformer.py", line 23, in
from mmcv.ops.multi_scale_deform_attn import MultiScaleDeformableAttention
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmcv/ops/init.py", line 2, in
from .assign_score_withk import assign_score_withk
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmcv/ops/assign_score_withk.py", line 6, in
'_ext', ['assign_score_withk_forward', 'assign_score_withk_backward'])
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmcv/utils/ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'mmcv._ext'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "occdepth/scripts/generate_output.py", line 2, in
from occdepth.models.OccDepth import OccDepth
File "/media/hjc/DeepLearning1/DLProjects/Robot-binocular-vision/OccDepth-main/occdepth/models/OccDepth.py", line 18, in
from occdepth.models.flosp_depth.flosp_depth import FlospDepth
File "/media/hjc/DeepLearning1/DLProjects/Robot-binocular-vision/OccDepth-main/occdepth/models/flosp_depth/flosp_depth.py", line 4, in
from mmdet.models.backbones.resnet import BasicBlock
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/init.py", line 2, in
from .backbones import *  # noqa: F401,F403
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/backbones/init.py", line 2, in
from .csp_darknet import CSPDarknet
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/backbones/csp_darknet.py", line 11, in
from ..utils import CSPLayer
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/utils/init.py", line 16, in
from .transformer import (DetrTransformerDecoder, DetrTransformerDecoderLayer,
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/utils/transformer.py", line 29, in
from mmcv.cnn.bricks.transformer import MultiScaleDeformableAttention
ImportError: cannot import name 'MultiScaleDeformableAttention' from 'mmcv.cnn.bricks.transformer' (/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmcv/cnn/bricks/transformer.py)
从 Windows 版邮件发送
发件人: Sihang Li
发送时间: 2023年4月3日 14:35
收件人: megvii-research/OccDepth
抄送: Jessy-Huang; Comment
主题: Re: [megvii-research/OccDepth] About Training processing (Issue #3)
mmcv与pytorch等库有对应版本，可以查看mmcv的官方文档进行选择
mmcv 1.4.0的可以运行，最新的cuda11.7对应的mmcv经测试也可以运行occdepth
或许你可以按照https://github.com/NVlabs/VoxFormer/blob/main/docs/install.md 试一试
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

安装mmcv没有报错了，但是运行仍然有下面的报错generate_output
python occdepth/scripts/generate_output.py n_gpus=4 batch_size_per_gpu=1
/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmcv/cnn/bricks/transformer.py:28: UserWarning: Fail to import MultiScaleDeformableAttention from mmcv.ops.multi_scale_deform_attn, You should install mmcv-full if you need this module.
warnings.warn('Fail to import MultiScaleDeformableAttention from '
/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/utils/transformer.py:27: UserWarning: MultiScaleDeformableAttention in MMCV has been moved to mmcv.ops.multi_scale_deform_attn, please update your MMCV
'MultiScaleDeformableAttention in MMCV has been moved to '
Traceback (most recent call last):
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/utils/transformer.py", line 23, in
from mmcv.ops.multi_scale_deform_attn import MultiScaleDeformableAttention
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmcv/ops/init.py", line 2, in
from .assign_score_withk import assign_score_withk
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmcv/ops/assign_score_withk.py", line 6, in
'_ext', ['assign_score_withk_forward', 'assign_score_withk_backward'])
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmcv/utils/ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'mmcv._ext'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "occdepth/scripts/generate_output.py", line 2, in
from occdepth.models.OccDepth import OccDepth
File "/media/hjc/DeepLearning1/DLProjects/Robot-binocular-vision/OccDepth-main/occdepth/models/OccDepth.py", line 18, in
from occdepth.models.flosp_depth.flosp_depth import FlospDepth
File "/media/hjc/DeepLearning1/DLProjects/Robot-binocular-vision/OccDepth-main/occdepth/models/flosp_depth/flosp_depth.py", line 4, in
from mmdet.models.backbones.resnet import BasicBlock
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/init.py", line 2, in
from .backbones import *  # noqa: F401,F403
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/backbones/init.py", line 2, in
from .csp_darknet import CSPDarknet
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/backbones/csp_darknet.py", line 11, in
from ..utils import CSPLayer
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/utils/init.py", line 16, in
from .transformer import (DetrTransformerDecoder, DetrTransformerDecoderLayer,
File "/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmdet/models/utils/transformer.py", line 29, in
from mmcv.cnn.bricks.transformer import MultiScaleDeformableAttention
ImportError: cannot import name 'MultiScaleDeformableAttention' from 'mmcv.cnn.bricks.transformer' (/media/hjc/DeepLearning1/Anaconda3/envs/occdepth1/lib/python3.7/site-packages/mmcv/cnn/bricks/transformer.py)
从 Windows 版邮件发送
发件人: Sihang Li
发送时间: 2023年4月3日 14:35
收件人: megvii-research/OccDepth
抄送: Jessy-Huang; Comment
主题: Re: [megvii-research/OccDepth] About Training processing (Issue #3)
mmcv与pytorch等库有对应版本，可以查看mmcv的官方文档进行选择
mmcv 1.4.0的可以运行，最新的cuda11.7对应的mmcv经测试也可以运行occdepth
或许你可以按照https://github.com/NVlabs/VoxFormer/blob/main/docs/install.md 试一试
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

mmcv与pytorch等库有对应版本，可以查看mmcv的官方文档进行选择
mmcv 1.4.0的可以运行，最新的cuda11.7对应的mmcv经测试也可以运行occdepth
或许你可以按照https://github.com/NVlabs/VoxFormer/blob/main/docs/install.md 试一试
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

Fail to import MultiScaleDeformableAttention from mmcv.ops.multi_scale_deform_attn, You should install mmcv-full if you need this module.
我之前遇到过这个报错，事实上这仍然是mmcv-full没安装好的问题，将整个环境需要重新配置
请注意：python3.8 和 3.7有时候会影响结果


[900]-After update, the original submission name changes to the most …

…recent changes name (date stays the same).

@paninee thanks for the fix! i rolled back the previous PR so we'll need to bring those changes back into this branch.


Incompatiable with npm ^7.0.0

I received this error when trying to add this to my project
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:

You might have mismatching versions of React and the renderer (such as React DOM)
You might be breaking the Rules of Hooks
You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.

I am using:
npm: 7.23.0
node: v16.8.0
Will there be any upgrades in the future?

Install the package using yarn
yarn add react-doc-viewer

Does anyone know how to overcome this?

I am experiencing the same issue. It seems that there are some dependencies issues with newer react-dom versions.


Remove cluster/update-storage-objects.sh reference

Seems like this PR: https://github.com/kubernetes/kubernetes/pull/83969/files with the title: Remove update-storage-objects.sh makes this reference obsolete.

/assign @steveperry-53

Link to my change: https://deploy-preview-22490--kubernetes-io-master-staging.netlify.app/docs/tasks/administer-cluster/cluster-management/#maintenance-on-a-node

/sig api-machinery

I recommend tech review for this change

/assign
added to my review list

@caesarxuchao 👋 Pinging for a review!

@kubernetes/sig-api-machinery-api-reviews 👋 Please review.

/assign @lavalamp @liggitt

These steps are wrong enough that removing them even without a replacement might be net good. But there probably should be a discussion of this topic in the docs. I'm not sure when the storage migrator will be running automatically? Can we file an issue so we don't forget to come back and fix this?
Tech/API:
/lgtm

/lgtm

/approve

/hold for release v1.19.0

/hold cancel


"min_characters_to_try" parameter does not work

Current Behavior
"min_characters_to_try" parameter does not work.

tesseract "C:\Users\bianyongfang\Downloads\ocr-training-20240305-184120.png" - -l eng --psm 12 -c min_characters_to_try=1

Too few characters. Skipping this page
OSD: Weak margin (0.00) for 5 blob text block, but using orientation anyway: 0
Empty page!!
Too few characters. Skipping this page
OSD: Weak margin (0.00) for 5 blob text block, but using orientation anyway: 0
Empty page!!

but
tesseract "C:\Users\bianyongfang\Downloads\ocr-training-20240305-184120.png" - -l eng --psm 6
1 6
2 5
3 4

Expected Behavior
No response
Suggested Fix
No response
tesseract -v
tesseract v<IP_ADDRESS>31005
leptonica-1.83.1
libgif 5.2.1 : libjpeg 8d (libjpeg-turbo 2.1.4) : libpng 1.6.40 : libtiff 4.6.0 : zlib 1.2.13 : libwebp 1.3.2 : libopenjp2 2.5.0
Found AVX2
Found AVX
Found FMA
Found SSE4.1
Found libarchive 3.7.2 zlib/1.3 liblzma/5.4.4 bz2lib/1.0.8 liblz4/1.9.4 libzstd/1.5.5
Found libcurl/8.3.0 Schannel zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.11.0
Operating System
Windows 10
Other Operating System
No response
uname -a
No response
Compiler
No response
CPU
No response
Virtualization / Containers
No response
Other Information
No response

Do psm 0 and 1 work here?

Do psm 0 and 1 work here?

same
tesseract "C:\Users\bianyongfang\Downloads\ocr-training-20240305-184120.png" - -l eng --psm 0 -c min_characters_to_try=1
Warning, detects only orientation with -l eng
Error, OSD requires a model for the legacy engine
tesseract "C:\Users\bianyongfang\Downloads\ocr-training-20240305-184120.png" - -l eng --psm 1 -c min_characters_to_try=1
Too few characters. Skipping this page
OSD: Weak margin (0.00) for 5 blob text block, but using orientation anyway: 0
Empty page!!
Too few characters. Skipping this page
OSD: Weak margin (0.00) for 5 blob text block, but using orientation anyway: 0
Empty page!!


Added Product page as product.html

Great work, I will assign one more job for today
We already have

Home page
Service
product
The last will be contact page.

Nice I like it.


python3Packages.tensorflow: update darwin x86_64 deps hash

Description of changes
No idea if this changed somehow or I somehow got it wrong originally.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

I can't figure out how to test this on a linux host, but note that aarch64-darwin has also been broken https://hydra.nixos.org/job/nixpkgs/trunk/python310Packages.tensorflow.aarch64-darwin

Hmm I managed to build the deps on an aarch64-darwin machine without an issue.

The hash does mismatch for me on aarch64-darwin.

@ofborg build python3Packages.tensorflow

I've enabled pushes from members so please push the hash if you have it.

The hash is sha256-lllqCkqyBUwy1xIpqzp2FPoAs5xJtSATfYoD9QBZvzs= my aarch64-darwin machine, but ofborg reported sha256-US7uunEBDo2NKI9UHvgThbQ7rA05HjQlUthw0gIINaI=...


Missing screen shots

Please can you add some screen shots so I see how one might use your package.  Thanks

Unfortunately this plugin acts on Android as a notification in the notification drawer. I expected it to act as a badge on the application icon, but is does not. Also when I close the app the notification is gone and does not appear when new notifications are received until I open the app.


Install FileBasedCredentialsProviderModule in server

This was missed in the original PR https://github.com/trinodb/aws-proxy/pull/111.
Tests are not directly using TrinoAwsProxyServerModule so we don't test if the right modules are installed.

We shouldn't add this generically. It's a special use-case. We can have a test that installs it.

I missed this in the original PR. The CredentialsProvider is not being bound correctly. It should use TrinoAwsProxyBinder so that it's bound via the Optional binder.

Updated the module to use TrinoAwsProxyBinder.
On the question of adding it or not - looking at it again i realise adding makes the credentials-provider.credentials-file-path config required, so that is not good.
We do need some of way enabling this simply from configs. I think our opinions diverge a bit on this point, but I would like the trino-aws-proxy to be useable (to some extent) as is; you should be able to build it, setup some configs and run it.
I'm thinking we can add a credentials-provider.type=... config switch and bind different configs/implementations based on that. This could be the file type. Another type we will likely need is http. We can make this default to none which doesn't bind anything, but that would be a bit weird IMHO since it makes the aws-proxy practically a service that just responds with 401.
WDYT?

The problem with a config based switch is that it can't deal with types it doesn't know about. What I suggest is alternate Mains. A while back I was playing around with turning TrinoAwsProxyServer into a builder. Another alternative is to add a new module, something like trino-aws-proxy-standalone that binds the FileBasedCredentialsProvider and anything else needed to run it "as is". My only reservation about that is that is it useful for anything other than demoing?

Put together a "demo" of how I envision this working.
Plugins bind CredentialsProvider implementations annotated with the type as a string. We then "conditionally" only build the implementation annotated with the type from credentials-provider.type. Each binding brings its own configuration.
Plugins should use TrinoAwsProxyBinder#credentialsProviderModule (this currently conflicts with bindCredentialsProvider from the same interface, I need to think what to do with that).

My only reservation about that is that is it useful for anything other than demoing?

We would most likely be using this in the Docker image we deploy. Obvs. the file-based one is for basic dev deployments that we are working on now to test integration with other systems. But an http credentials provider should easily slot in

Made a draft on behalf of @mosiac1 , this is currently his proposal for how he envisions this could be implemented

Had a chat with @mosiac1 on this topic, I understand not wanting to pollute the codebase by introducing more complex plugin loaders (as we originally discussed in https://github.com/trinodb/aws-proxy/pull/111#discussion_r1682977222 ); but at the same time I think we need to provide a clear way to run the proxy without requiring users to implement their own main methods.
I agree the proxy can have a clean & nice builder which makes building your own main method simple - and in fact think it's a great idea.
But IMHO we should not  require all users to write their own entrypoints, particularly for the most common use cases.

Another alternative is to add a new module, something like trino-aws-proxy-standalone that binds the FileBasedCredentialsProvider and anything else needed to run it "as is". My only reservation about that is that is it useful for anything other than demoing?

I believe it would be useful for many users. Requiring users to implement their own main functions results in them needing to have a Java build process/CI, requires code review and security scanning to track potential unexpected dependencies coming from this function. It may also become a maintenance burden, particularly for users that may not have well established Java infra.
These users could, if we had a fully config-driven setup, happily pull a prebuilt artifact or even a container image. Those options become harder if we require them to implement their own main method.
(I know we can find solutions to all the problems I listed above, but the question is whether it's worth figuring that out instead of allowing the proxy to run with just config)
I understand this is not an immediate priority, but I think it'd still be a nice improvement to the project - we're happy to work on this of course, but first we'd like to get your / others opinions on the subject.

I'll try to come up with a prototype of what I had in mind so at least it can be compared/contrasted.

Here's what I was thinking of for the "standalone" server: https://github.com/trinodb/aws-proxy/pull/121 - users don't need to write their own main. I'll work on a separate example of how I thought about using the plugin mechanism to run a server using plugins.

Based on @Randgalt's plugin example I created https://github.com/mosiac1/aws-proxy-plugin-example to show this would work. The project compiles as a JAR that needs to be in the aws-proxy classpath.

Don't forget to squash please


[Bug]: ImportError: cannot import name 'boolean_dispatched' from partially initialized module 'torch._jit_internal'

Your current environment
PyTorch version: 2.3.0+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04.3 LTS (x86_64)
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 3.29.5
Libc version: glibc-2.35

Python version: 3.11.9 (main, Apr 19 2024, 16:48:06) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.35
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 4060 Laptop GPU
Nvidia driver version: 528.97
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture:                       x86_64
CPU op-mode(s):                     32-bit, 64-bit
Address sizes:                      46 bits physical, 48 bits virtual
Byte Order:                         Little Endian
CPU(s):                             20
On-line CPU(s) list:                0-19
Vendor ID:                          GenuineIntel
Model name:                         13th Gen Intel(R) Core(TM) i9-13900H
CPU family:                         6
Model:                              186
Thread(s) per core:                 2
Core(s) per socket:                 10
Socket(s):                          1
Stepping:                           2
BogoMIPS:                           5990.39
Flags:                              fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq vmx ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves avx_vnni umip waitpkg gfni vaes vpclmulqdq rdpid movdiri movdir64b fsrm md_clear serialize flush_l1d arch_capabilities
Virtualization:                     VT-x
Hypervisor vendor:                  Microsoft
Virtualization type:                full
L1d cache:                          480 KiB (10 instances)
L1i cache:                          320 KiB (10 instances)
L2 cache:                           12.5 MiB (10 instances)
L3 cache:                           24 MiB (1 instance)
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit:        Not affected
Vulnerability L1tf:                 Not affected
Vulnerability Mds:                  Not affected
Vulnerability Meltdown:             Not affected
Vulnerability Mmio stale data:      Not affected
Vulnerability Retbleed:             Mitigation; Enhanced IBRS
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:           Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds:                Not affected
Vulnerability Tsx async abort:      Not affected

Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] nvidia-nccl-cu12==2.20.5
[pip3] torch==2.3.0
[pip3] transformers==4.41.2
[pip3] triton==2.3.0
[conda] numpy                     1.26.4                   pypi_0    pypi
[conda] nvidia-nccl-cu12          2.20.5                   pypi_0    pypi
[conda] torch                     2.3.0                    pypi_0    pypi
[conda] transformers              4.41.2                   pypi_0    pypi
[conda] triton                    2.3.0                    pypi_0    pypi
ROCM Version: Could not collect
Neuron SDK Version: N/A
vLLM Version: 0.5.0
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
GPU0    CPU Affinity    NUMA Affinity
GPU0     X

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

🐛 Describe the bug
from vllm import LLM

llm = LLM(model='openbmb/MiniCPM-2B-sft-bf16')  # Name or path of your model
output = llm.generate("Hello, my name is")
print(output)

ImportError: cannot import name 'boolean_dispatched' from partially initialized module 'torch._jit_internal' (most likely due to a circular import) (/home/cat/miniconda3/envs/vllmenv/lib/python3.11/site-packages/torch/_jit_internal.py)
ERROR conda.cli.main_run:execute(124): conda run python /mnt/c/Users/mores/PycharmProjects/OCR/src/vllm_infer.py failed. (See above for error)

cc @bnellnm , this might be relevant with the recent change of binding system.

cc @bnellnm , this might be relevant with the recent change of binding system.

I don't think this is related to the torch library changes.  I don't see any circular dependencies from importing _custom_ops.py.  I think the full stack trace might help.

抄送@bnellnm，这可能与最近的绑定系统变化有关。

我认为这与 torch 库更改无关。我没有看到导入 _custom_ops.py 的任何循环依赖关系。我认为完整的堆栈跟踪可能会有所帮助。

full stack
File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/vllm/__init__.py", line 3, in <module>
    from vllm.engine.arg_utils import AsyncEngineArgs, EngineArgs
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/vllm/engine/arg_utils.py", line 8, in <module>
    from vllm.config import (CacheConfig, DecodingConfig, DeviceConfig,
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/vllm/config.py", line 7, in <module>
    import torch
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/__init__.py", line 1537, in <module>
    from .functional import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/functional.py", line 9, in <module>
    import torch.nn.functional as F
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/nn/__init__.py", line 1, in <module>
    from .modules import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/nn/modules/__init__.py", line 2, in <module>
    from .linear import Identity, Linear, Bilinear, LazyLinear
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/nn/modules/linear.py", line 7, in <module>
    from .. import functional as F
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/nn/functional.py", line 25, in <module>
    from .._jit_internal import boolean_dispatch, _overload, BroadcastingList1, BroadcastingList2, BroadcastingList3
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/_jit_internal.py", line 44, in <module>
    import torch.distributed.rpc
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/distributed/__init__.py", line 4, in <module>
    import pdb
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/pdb.py", line 77, in <module>
    import code
  File "/mnt/c/Users/mores/PycharmProjects/OCR/code.py", line 32, in <module>
    model = AutoModel.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5-int4', trust_remote_code=True)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 523, in from_pretrained
    config, kwargs = AutoConfig.from_pretrained(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/transformers/models/auto/configuration_auto.py", line 943, in from_pretrained
    config_class = get_class_from_dynamic_module(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/transformers/dynamic_module_utils.py", line 513, in get_class_from_dynamic_module
    return get_class_in_module(class_name, final_module)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/transformers/dynamic_module_utils.py", line 211, in get_class_in_module
    module_spec.loader.exec_module(module)
  File "/home/cat/.cache/huggingface/modules/transformers_modules/openbmb/MiniCPM-Llama3-V-2_5-int4/ea02fa1b3b4a5ffd7646d16feccd76f391d98ab5/configuration_minicpm.py", line 26, in <module>
    from transformers.models.idefics2.modeling_idefics2 import Idefics2VisionConfig
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/transformers/models/idefics2/modeling_idefics2.py", line 24, in <module>
    import torch.utils.checkpoint
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/utils/checkpoint.py", line 22, in <module>
    import torch.fx.traceback as fx_traceback
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/fx/__init__.py", line 83, in <module>
    from .graph_module import GraphModule
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/fx/graph_module.py", line 19, in <module>
    from .graph import _custom_builtins, _is_from_torch, _PyTreeCodeGen, Graph, PythonCode
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/fx/graph.py", line 2, in <module>
    from .node import Node, Argument, Target, map_arg, _type_repr, _get_qualified_name
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/fx/node.py", line 12, in <module>
    from torch.fx.operator_schemas import normalize_function, normalize_module, ArgsKwargsPair
  File "/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/fx/operator_schemas.py", line 9, in <module>
    from torch._jit_internal import boolean_dispatched
ImportError: cannot import name 'boolean_dispatched' from partially initialized module 'torch._jit_internal' (most likely due to a circular import) (/home/cat/miniconda3/envs/vllm/lib/python3.11/site-packages/torch/_jit_internal.py)
ERROR conda.cli.main_run:execute(124): `conda run python /mnt/c/Users/mores/PycharmProjects/OCR/src/vllm_infer.py` failed. (See above for error)

@youkaichao , @morestart I was not able to reproduce this problem but I did run [pydeps](https://github.com/thebjorn/pydeps) on vllm and it seemed to find some import cycles.  I'm not sure if these might be contributing to the problem.
I've attached the svg file it generated (pydeps --show-cycles vllm)

for vllm.distributed related cycle, I explicitly break it by making some import lazy (inside functions).


ERROR: Could not find a version that satisfies the requirement azure-functions

After doing F5 to run the function locally, I get the following error:
> Executing task in folder azfunc: .venv\Scripts\python -m pip install -r requirements.txt <
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting azure-functions (from -r requirements.txt (line 1))
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/azure-functions/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/azure-functions/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/azure-functions/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/azure-functions/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/azure-functions/
Could not fetch URL https://pypi.org/simple/azure-functions/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/azure-functions/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement azure-functions (from -r requirements.txt (line 1)) (from versions: none)
ERROR: No matching distribution found for azure-functions (from -r requirements.txt (line 1))
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
I would have added images, but I don't know how to add an image here.
So I have added all the details about this issue here: https://github.com/saifeemustafaq/azurefunctions/issues/1

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

ID: 04c9d43d-5bd2-87c6-2ccf-0c65ef193760
Version Independent ID: 6bf46ebc-481f-e4ef-b269-99bf99434601
Content: Create your first function in Azure using Visual Studio Code
Content Source: articles/azure-functions/functions-create-first-function-vs-code.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

@saifeemustafaq Thanks for the feedback. We are actively investigating and will get back to you soon.

@aprilspeight helped me solve this issue. So this issue can be closed.
The solution is given by @aprilspeight:
Have you tried running the function while the init.py file is active on the screen?
There shouldn't be a need to modify anything in the function.json file if you're trying out the Quickstart. Therefore, ensure that you're looking at the init.py file when you Start Debugging (F5).
Link


Type parameter inference regression in 3.4

TypeScript Version:  3.4.0-rc
Search Terms: Type parameters, generics, inference, regression
Code
const foo = <T>() => {};
const assign = <T, U>(a: T, b: U) => Object.assign(a, b);
const result: (() => void) & { foo: any } = assign(() => {}, { foo });

Expected behavior:
No error
Actual behavior:
Argument of type '{ foo: <T>() => void; }' is not assignable to parameter of type '(() => void) & { foo: any; }'.
  Type '{ foo: <T>() => void; }' is not assignable to type '() => void'.
    Type '{ foo: <T>() => void; }' provides no match for the signature '(): void'.

Playground Link:
https://www.typescriptlang.org/play/#src=const foo %3D <T>() %3D> {}%3B
const assign %3D <T%2C U>(a%3A T%2C b%3A U) %3D> Object.assign(a%2C b)%3B
const result%3A (() %3D> void)%20%26%20%7B%20foo%3A%20any%20%7D%20%3D%20assign(()%20%3D%3E%20%7B%7D%2C%20%7B%20foo%20%7D)%3B
Related Issues:

Removing <T> from foo makes this code valid.

Reproducible in 3.4.1

@ahejlsberg contextual typing strikes again? Moving the initializer to its own expression resolves its problem
const foo = <T,>() => {};
const assign = <T, U>(a: T, b: U) => Object.assign(a, b);
// No error
const res = assign(() => {}, { foo });
const result: (() => void) & { foo: any } = res;

This is an effect of #29847. Previously we'd only make inferences to single naked type parameters in unions and intersections. We now infer to each naked type parameter. That works well for union types, but not for intersection types as this example illustrates. I think we should revert to the previous behavior for intersection types and only infer to multiple naked type parameters in union types.


Consolidate In/Out/bound traffic to one page

Right now we're split between two different pages for each direction of traffic. Can you merge the two pages together, showing two parallel tracks with traffic notices/indications on either side? It'd be nice to see all of the information for a given line at once.

+1 for this, I had this exact same thought when I was working on it this morning. Some arrows would probably be very useful in the design

Less of a big deal for me, but could you also scale the display to the size of the screen that you're using? For example, even with the bidirectional display that @deverstalmage and I proposed above, the tracks might look better at the center of the window. This would also work out well for mobile users, so that scrolling would only be necessary in the up/down direction.
this is the current display:

and this is a very, very bad implementation (thanx paint) of what I'm thinking (arrows to show direction, should be replaced by a nice North/South or something more creative)

Thanks for the suggestions! Great to see community input on this project :)
Right now, the site is 100% optimized for mobile, and we haven't thought much about the desktop experience yet. I think the core team is going to continue focusing on mobile for the near future, which wouldn't putting include the line in the center of the screen -- but I agree that that view would totally make sense for wider screens. If you want to submit a PR to add that, I think it would be a good improvement for desktop users.
As far as merging northbound and southbound in one view on a mobile screen, we debated doing that originally but thought it might be clearer to separate out the directions. Do commuters going southbound really care about northbound alerts? My tentative answer is, not really, unless they impact the southbound experience, in which case I should get alerts about that directly. Would be curious to hear your thoughts on what the use case is @mnolan2 @deverstalmage

Having fewer links from the main screen seems like a benefit to me.
As far as southbounders caring for the hardships of northbounders goes, I'm not certain. Some stops have shared platforms; having some knowledge of imminent crowds might be nice.

I agree with @geoffreylitt in that we should not design for desktop computers... It should work, and it shouldn't look ugly, but that is as far as I'd get, at least for now.
As for the two directions in the same page, it gets very complicated in a phone screen, especially if you want to keep them side by side. This sounds like an interesting UI/UX challenge! :)
It is true though that it would be great to reduce the amount of real-estate used by the list of lines... and I'm happy to explore options. Maybe the line button when pressed reveals the NB/SB options and after a second click/tap it takes you to the right page? Maybe the ability to switch between NB and SB by clicking the title bar? (i.e. if I'm seeing the Red Line Northbound, and click on the word Northbound it takes me to the Southbound version).

I like the idea of revealing the NB/SB options on tap, and combined with the swapping NB/SB on title bar tap I think it could work nicely. Collapsible in Materialize would work well http://materializecss.com/collapsible.html
Would it make sense to reverse the order of the stations on each direction? e.g. Northbound Red has Alewife at the top, while Southbound Red has Ashmont at the top?

created a PR for combining the nb/sb lines: https://github.com/davidlago/mbta-ninja/pull/94


Gutter highlight stays behind

Also demonstrated in this gif: https://github.com/atom/atom/issues/6362
To reproduce:

Unindent some lines
Move cursor down
Undo
Move cursor down

I can't seem to reproduce this.  What Atom version are you using?  Can you reproduce this in safe mode (atom --safe)?

On Windows 8.1 in safe mode, I'm able to reproduce this every time by undoing or redoing an indent or dedent of several lines from a state where there is no selection and then moving the cursor in any direction.
Wait, I'm on version 0.182 for some reason, and it won't update.
At any rate, I see some things that could be related in the release notes:

Fixed a regression where the cursor position was not being restored after undo in some cases
Fixed issues adding selections above and below in the presence of hard tabs or soft-wrapped lines.
Fixed issues soft-wrapping lines that contained tabs in their leading whitespace.

And since you can't reproduce this, I'll presume that it's fixed.


package not working appropriately

Describe the bug
navigator button isnot being with/ through a navigator.
To Reproduce
Steps to reproduce the behavior:

run the app.
Go to 'the search icon, beside message icon , top bar.'Click on 'it'
Scroll down through 'run operations'
See error

Expected behavior
to search with and through the list for a result , "country list"
Actual behavior
error
Screenshots
screenshots below
Code sample

code sample
class Home extends StatefulWidget {

  HomeState createState() => HomeState();
}
class HomeState extends State<Home> {

final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();
  var dateNow = new DateTime.now();
  Icon customIcon = const Icon(Icons.search);
  Icon customMessages = const Icon(Icons.message);
  Widget customSearchBar = const Text('search');
  List<Map<String, dynamic>> todos = [];
  List<page> display_list = List.from(main_search);
  static List<page> main_search = [];
  void updateList(String value){
  }
  final DescriptionController = TextEditingController();
  int _currentIndex = 3;
  Color butt = Colors.pink;
  @override
  Widget build(BuildContext context) {
    return  DefaultTabController(
      length: 3,
      child: MaterialApp(
        theme: ThemeData(fontFamily: 'Harmattan',),
        home: Scaffold(
          key: _scaffoldKey,
          appBar: AppBar(
    backgroundColor: Colors.lightBlue,
   // elevation: 0,
    title: Text(
    "faceMe",
    style: TextStyle(
    color: Colors.white,
    fontSize: 26,
    fontWeight: FontWeight.bold,
    ),),
            automaticallyImplyLeading: false,
            actions: [
              IconButton(
                **_[onPressed: () {
                  Navigator.of(context).push(MaterialPageRoute(
                      builder: (_) => CountrySearch(
                        title: 'Country List',
                      )));
                },](url)_**
                icon: customIcon,
                color: Colors.white,
              ),
              IconButton(
                onPressed: () {
                const chatroom();
                },
                icon: customMessages,
             color: Colors.white, )
            ],
            centerTitle: true,
          ),
          body: ListView(
            children: [
              SingleChildScrollView(
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    StatusSection(),
                    Divider(
                      thickness: 1,
                      color: Colors.grey[300],
                    ),
                    HeaderButtonSection(
                        buttonOne: headerbutton(
                            buttontext: "Live",
                            buttonicon: Icons.video_call,
                            buttonaction: () {

                            },
                            buttoncolor: Colors.red),
                        buttonTwo: headerbutton(
                            buttontext: "Photos",
                            buttonicon: Icons.photo_library,
                            buttonaction: () {

                            },
                            buttoncolor: Colors.green),
                        buttonThree: headerbutton(
                            buttontext: "Room",
                            buttonicon: Icons.video_call,
                            buttonaction: () {
                              const   record();
                            },
                            buttoncolor: Colors.purple)),
                    Divider(
                      thickness: 10,
                      color: Colors.grey[300],
                    ),
                    Room(),
                    Divider(
                      thickness: 10,
                      color: Colors.grey[300],
                    ),
                    StorySection(),
                    Divider(
                      thickness: 10,
                      color: Colors.grey[300],
                    ),
                    PostCard(
                      varifiedpost: true,
                      pics: ylw,
                      name: "Spiderman",
                      time: "4h",
                      postImage: bat,
                      postTitle: "hay gorgeous",
                      like: "15K",
                      comments: "2K",
                      share: "432",
                    ),
                    Divider(
                      thickness: 10,
                      color: Colors.grey[300],
                    ),
                    PostCard(
                      varifiedpost: true,
                      pics: bat,
                      name: "Batman",
                      time: "8h",
                      postImage: sup,
                      postTitle: "yoo bud",
                      like: "30K",
                      comments: "2K",
                      share: "344",
                    ),
                    Divider(
                      thickness: 10,
                      color: Colors.grey[300],
                    ),
                    PostCard(
                      varifiedpost: true,
                      pics: red,
                      name: "Scarlett",
                      time: "4h",
                      postImage: bat,
                      postTitle: " I am scarlett,",
                      like: "15K",
                      comments: "2K",
                      share: "232",
                    ),
                    Divider(
                      thickness: 10,
                      color: Colors.grey[300],
                    ),
                    SuggestionSection(),
                    Divider(
                      thickness: 10,
                      color: Colors.grey[300],
                    ),
                    PostCard(
                      varifiedpost: true,
                      pics: haf,
                      name: "Batman",
                      time: "8h",
                      postImage: sup,
                      postTitle:
                      "yooo dude how are you man..",
                      like: "15K",
                      comments: "2K",
                      share: "211",
                    ),
                  ],
          ),
              ),
      ],),
          bottomNavigationBar: BottomNavigationBar(
            currentIndex: _currentIndex,
            items: [
              BottomNavigationBarItem(
                  icon: Icon(Icons.home, color: Colors.blueAccent),
                  label: "",
                  backgroundColor: Colors.white),
              BottomNavigationBarItem(
                  icon: Icon(Icons.person, color: Colors.grey[700]),
                  label: "",
                  backgroundColor: Colors.white),
              BottomNavigationBarItem(
                  icon: Icon(Icons.settings, color: Colors.grey[700]),
                  label: "",
                  backgroundColor: Colors.white),
              BottomNavigationBarItem(
                  icon: Icon(Icons.notifications, color: Colors.grey[700]),
                  label: "",
                  backgroundColor: Colors.white),
              BottomNavigationBarItem(
                  icon: Icon(Icons.more_vert_outlined, color: Colors.grey[700]),
                  label: "",
                  backgroundColor: Colors.white),
            ],
            onTap: (index) {
              setState(() {
                _currentIndex = index;
              });
            },
          ),
         ),
      ),

    );
  }
}

class record extends StatefulWidget {
  const record({Key? key}) : super(key: key);

  @override
  State<record> createState() => _recordState();
}

class _recordState extends State<record> {
  @override
  Widget build(BuildContext context) {
    return ListWheelScrollView(itemExtent: 2, children: [
      Container(
        child: Image (image: AssetImage("assetsm1.jpg/"),
        ),
      ),
      Divider(
        thickness: 10,
        color: Colors.black,
      ),

      Container(
![git hub](https://user-images.githubusercontent.com/38753427/199269151-73a58b2a-43b9-430b-b789-ceeb3ef0097c.jpg)
![github](https://user-images.githubusercontent.com/38753427/199269160-a55f7579-1433-4c10-a12c-42792c35299e.jpg)

    child: Image (image: AssetImage("assetsw1.jpg/"),
       ),
      ),
      Divider(
        thickness: 10,
        color: Colors.black,
      ),
    ]);
  }
}

Additional context
Add any other context about the problem here.

Hi @faithyoussef, Thanks for filing the issue, I don't see think this is an issue with this package. From the error logs, I see that this seems to be an issue with how you are using Navigator to navigate the page. Probably an issue with incorrect context being passed to Navigator.
see similar issue: https://stackoverflow.com/questions/44004451/navigator-operation-requested-with-a-context-that-does-not-include-a-navigator
If you think this is an issue with Searchfield, Please feel free to write back with more details.

@faithyoussef I am going to close this issue as invalid, If you still think this is a bug in the package, feel free to write back and I will reopen it.
Thank you.


What file system is used?

I can't seem to find details on what file system is being used by default. Apologies if I did not look hard enough.

The AMIs and Vagrant box are all using ext4 for the state drive. If you boot from the ISO your running in memory. The docker storage driver is using OverlayFS.

Thanks! Maybe this can find a place somewhere in the docs. For now it will be in issues incase anyone searches for it.


Detect instant UB caused by creating a reference to an invalid value

According to https://github.com/rust-lang/rust/issues/78123#issuecomment-737559741 and the Reference, producing an &-reference (not sure about raw pointers) to an invalid value is instant UB:

Unlike C, Undefined Behavior is pretty limited in scope in Rust. All the core language cares about is preventing the following things:
[...]
a reference/Box that is dangling, unaligned, or points to an invalid value.

For example, if I understand correctly, this program has UB, but Miri does not report any errors:
enum Void {}

fn main() {
    let _x: &Void = unsafe { std::mem::transmute(&()) };
}

Note that Miri correctly detects the case of creating an owned invalid value (and rustc produces a warning as well):
enum Void {}

fn main() {
    let x: Void = unsafe { std::mem::transmute(()) };
}

stderr:
warning: the type `Void` does not permit zero-initialization
 --> src/main.rs:4:28
  |
4 |     let x: Void = unsafe { std::mem::transmute(()) };
  |                            ^^^^^^^^^^^^^^^^^^^^^^^
  |                            |
  |                            this code causes undefined behavior when executed
  |                            help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
  |
  = note: `#[warn(invalid_value)]` on by default
  = note: enums with no variants have no valid value

error: Undefined Behavior: type validation failed: encountered a value of uninhabited type Void
 --> src/main.rs:4:28
  |
4 |     let x: Void = unsafe { std::mem::transmute(()) };
  |                            ^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered a value of uninhabited type Void
  |
  = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
  = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information

  = note: inside `main` at src/main.rs:4:28
  = note: inside `<fn() as std::ops::FnOnce<()>>::call_once - shim(fn())` at /playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
  = note: inside `std::sys_common::backtrace::__rust_begin_short_backtrace::<fn(), ()>` at /playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:125:18
  = note: inside closure at /playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:66:18
  = note: inside `std::ops::function::impls::<impl std::ops::FnOnce<()> for &dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe>::call_once` at /playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:259:13
  = note: inside `std::panicking::r#try::do_call::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>` at /playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:379:40
  = note: inside `std::panicking::r#try::<i32, &dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe>` at /playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:343:19
  = note: inside `std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>` at /playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:396:14
  = note: inside `std::rt::lang_start_internal` at /playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:51:25
  = note: inside `std::rt::lang_start::<()>` at /playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:65:5

error: aborting due to previous error; 2 warnings emitted

The rules for validity of reference are not finally decided yet, but still being discussed at https://github.com/rust-lang/unsafe-code-guidelines/issues/77. To not preempt the conclusion of this discussion, the docs declare as much UB as is possible -- we can always relax UB later, but introducing more UB is a breaking change.
That's one reason why Miri does not complain about this kind of UB. The other reason is that it is really expensive to recursively traverse references all the time.
However, one special case should be easy and cheap to check: references to uninhabited types (i.e., the case you used as an example). That one does not actually require looking at the value behind the reference.

Could this be done as an opt-in flag? I wanted to demonstrate where &mut explicitly (don't) exist in a program, through miri, and found that it's not available.
(I understand if it's not a priority, just thought opt-in wouldn't slow down everyone, and would allow demonstrating "what if" questions wrt that kind of model)

I wanted to demonstrate where &mut explicitly (don't) exist in a program, through miri, and found that it's not available.

Not sure what you mean by this, or by "this" in your first sentence -- the uninhabited-pointee case, or the general case?
Both could be implemented, of course, but I am don't think we should do the general recursive case.


Hungarian accent letter problem

Hello @luisza
These character is not showing normal in pdf: ő Ő ű Ű
I see this instead: ■ ■ ■ ■
I tried many fonts, but all the same problem and I tried set encode iso-8859-2 but the also same problem.
Can you help me, to solve this problem.

I believe that you might be using UTF-8 I also use some special characters that is used in Brazilian-portuguese similar to these and we needed to change from UTF-8 to UTF8MB4 to accept special characters.


TEAM-C-Premium-Section-(UI)

I added the desired premium ui feature according to the task

good job


Issue comments are not updated after editing (if attachments are disabled)

Description
Attempting to edit a comment and then save it results in a javascript error withn repo-issue-edit.js, if attachments are disabled.
To reproduce:

disable support for attachments
(https://docs.gitea.com/administration/config-cheat-sheet#issue-and-pull-request-attachments-attachment - set enabled to false)

From the UI:

create new issue
add a comment
edit that comment
saving the edit will throw a javascript error in the saveAndRefresh method in repo-issue-edit.js, when attempting to iterate through dropzoneInst

This appears to be a new issue introduced in 1.22.
Gitea Version
1.22.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Helm gitea chart
Database
PostgreSQL

The problem will be fixed by:  Refactor dropzone #31482
For 1.22 it needs a simple&separate fix:  Fix dropzone JS error when attachment is disabled #31486

Fixed by  #31486 and it is in 1.22-nightly


[Feature Request] Add cropper with El-upload components

Existing Component
是
Component Name
el-upload
Description
can el-upload add crop function, it will be very useful.
I fund this repo https://github.com/elemefe/image-cropper

Sorry, we have no plan to support this.


Docs issue-3444: draft example use case and infraconfig examples

Type of change
Documentation
Description
Example use case and brokered infraconfig examples (other service config resource type examples to follow in subsequent commits)
Checklist

[ ] Update/write design documentation in ./documentation/design
[ ] Write tests and make sure they pass
[X] Update documentation
[ ] Check RBAC rights for Kubernetes / OpenShift roles
[ ] Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
[ ] Reference relevant issue(s) and close them after merging
[ ] Update CHANGELOG.md

Can one of the admins verify this patch?

@lulf, Could  you please take another look? Added content and addressed your previous review comments


Fix Installations access on background queue

May address #13961, but we won't know without a repro. Installations has some locking in it so it's possible it's intended to be thread-safe, but it's not documented as such. Let me know if this fix should be moved into Installations instead.

Thanks - it seems like the fix should be in Installations so that calls from RemoteConfig and Analytics are also addressed?


fixed date and day-name mismatch in Firey calendar type.

fixed date and day-name mismatch in Firey calendar type.

Thank you for this

You're welcome
On Sat, Apr 6, 2024 at 3:31 PM Himanshu Singh @.***>
wrote:

Thank you for this
—
Reply to this email directly, view it on GitHub
https://github.com/hi-manshu/Kalendar/pull/171#issuecomment-2041036315,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BE43NFVO435R3NIQXEKZZRTY37BYLAVCNFSM6AAAAABD5KG7FGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGAZTMMZRGU
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Sudhir Kanani
[image: icon] +91 70966 19785 <+917096619785>
[image: icon] @.***
[image: icon] Surat https://maps.google.com/?q=Surat


dconf: inform D-Bus about ca.desrt.dconf.service

Should avoid the need for adding
services.dbus.packages = with pkgs; [ gnome3.dconf ]

on NixOS. But I'm uncertain about the effect on other systems. It might conflict with the distro-installed dconf.

@rycee Perhaps the other variant is to document dconf options?

I came across this error as well, and I can confirm that the proposed fix solves it, and that thus this patch should too.


Building docs with NUMBA_LLVM_REFPRUNE_PASS

Reporting a bug

[X] I have tried using the latest released version of Numba (most recent is
visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[X] I have included below a minimal working reproducer (if you are unsure how
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).

When trying to build the docs locally, I need to set NUMBA_LLVM_REFPRUNE_PASS=0 explicitly.  The default (1) causes the error
  File "/Users/ethanpronovost/Documents/Projects/numba/numba/numba/core/codegen.py", line 1086, in __init__
    self._init(self._llvm_module)
  File "/Users/ethanpronovost/Documents/Projects/numba/numba/numba/core/codegen.py", line 1107, in _init
    opt=0)
  File "/Users/ethanpronovost/Documents/Projects/numba/numba/numba/core/codegen.py", line 1143, in _module_pass_manager
    pm.add_refprune_pass(_parse_refprune_flags())
AttributeError: 'ModulePassManager' object has no attribute 'add_refprune_pass'

Command to reproduce: NUMBA_LLVM_REFPRUNE_PASS=1 make html (or omit env var if not already set).

Thanks for the report. Do you have a version of llvmlite which has the reference pruner pass in your local environment (llvmlite 0.35 series builds)? One way to enforce this might be to:
$ conda install -c numba llvmlite=0.35.0rc1

Ah that fixed it! I had done pip install -U, and it seems the 0.35.0 release candidates aren't on pypi.

Thanks for confirming.


[BUG] {Missing 'total_num_of_captured_images'}

Describe the bug
I'm running a calibration routine using calibrate.py script to calibrate 3 modular camera with Oak FFC 4P PoE. Previously, I can calibrate it but with latest release, I got that error.
Attach system log
Cam: rgb and focus: True
Cam: left and focus: False
Cam: right and focus: False
Saving dataset to: dataset
Sensor name for rgb is IMX378
Sensor name for left is OV9282
Sensor name for right is OV9282
Starting image capture. Press the [ESC] key to abort.
Will take 26 total images.
Start capturing...
new minimum: {'ts': 0.30266400000000004, 'indicies': {'rgb': 0, 'left': 0, 'right': 0}} min required: 0.2
new minimum: {'ts': 0.09997200000000106, 'indicies': {'rgb': 1, 'left': 0, 'right': 0}} min required: 0.2
new minimum: {'ts': 0.003379999999996386, 'indicies': {'rgb': 2, 'left': 1, 'right': 1}} min required: 0.2
Time stamp of rgb is 0:14:08.653504
Markers count ... 44
Total markers needed -> 17
Traceback (most recent call last):
  File "calibrate.py", line 1181, in <module>
    Main().run()
  File "calibrate.py", line 1172, in run
    self.capture_images_sync()
  File "calibrate.py", line 914, in capture_images_sync
    tried[name] = self.parse_frame(frameMsg.getCvFrame(), name)
  File "calibrate.py", line 587, in parse_frame
    filename = calibUtils.image_filename(self.current_polygon, self.images_captured)
TypeError: image_filename() missing 1 required positional argument: 'total_num_of_captured_images'

git pull --recurse-submodules should fix the issue.


container name can't use  '_ '  when deploy server

In GitLab by @guyingyan on Jun 4, 2018, 17:43
If you are reporting a problem, please make sure the following information are provided:

Version of board (last git commit number) , docker engine and docker-compose.
Config files of board, you can get them by packaging "board.cfg" and files in the same directory, including subdirectory.
Log files, you can get them by package the /var/log/board/.
Other necessery information.
use dockerfile create images: if do not select the Dockerfile it should not click the button “build image”

In GitLab by @luotian-github on Nov 8, 2019, 07:51
Need to check it if cannot accept _

In GitLab by @sokril on Nov 8, 2019, 07:51
fixed by liyanqing

In GitLab by @sokril on Nov 8, 2019, 08:22
closed

In GitLab by @sokril on Nov 8, 2019, 08:22
assigned to @sokril


Make integration projects more discoverable from README

Right now, the README doesn't list some of the other projects under the Zulip umbrella, like the Hubot adapter and the Phabricator integration, in the "App codebases" section of "Contributing to Zulip".

Yeah, that seems like a good idea.  It's possible that some of these we'll want to merge into zulip.git/api/integrations, but for whichever ones we haven't, we should add such links.

I'm working on this task this week.


Start a SwiftUI interface

Started working on a refresh to the interface in SwiftUI, no data connected yet. I would like to not have a huge branch with a complete rewrite so this switches on a key in AppDelegate to show the existing app or the new swiftUI stuff.
Also bumps the min iOS version to 15, which is fine given our numbers on older versions.

This is going to take some thought...

Added a first approach for loading and storing app state, kindof a naive approach for what little I know about data flow in swiftui

Inspired to refactor what the issuesmanager knows about, moving it from updating the app delegate itself to calling a function on an arbitrary delegate. Not even sure we need an issues manager if we do things this way... maybe just one operation executor that knows how to run all the various operations?

Over the weekend I did some work to improve the display of reps with no images, removed the issue list item checkmark (for now... we still need a way to represent that an issue has been called) and made some headers for setting your location

Last night I added persistence to user locations, initially I was working with the existing UserLocation model but the way we structured it previously with a singleton was not very swiftui-y so I copied the relevant model bits to NewUserLocation. A little more complicated than using @AppStorage because we have a legacy format to deal with, but I think it is integrating nicely with our AppState model

Added some work on the design for an issue detail page. Not hooked up to navigation yet.

Also found a few bugs (I'm sure there a plenty since this is an in-progress migration, but wanted to capture them here:

I don't see any page indicators on the intro view
Consider using safe area for cleaner scrolling and it looks like there's some funky spacing with the contact placeholder icons
I noticed that the location picker comes back up after choosing "Detect my location"

Inspired to refactor what the issuesmanager knows about, moving it from updating the app delegate itself to calling a function on an arbitrary delegate. Not even sure we need an issues manager if we do things this way... maybe just one operation executor that knows how to run all the various operations?

Leveraging unidirectional data flow is other a store could help remove the need for most of these managers. We'd just call update functions on the store and observers would be notified or any changes.

@cselin how do the data update functions get into all the components that need to call them in a unidirectional data flow world? Put the update functions on AppState and then access with @EnvironmentObject var appState: AppState in each component that needs to update the state?

@cselin how do the data update functions get into all the components that need to call them in a unidirectional data flow world? Put the update functions on AppState and then access with @EnvironmentObject var appState: AppState in each component that needs to update the state?

More or less, yes. A full blown store with middleware and the like might be overkill for this size app. If AppState blew up too much it could be factored apart later. Ideally there'd only be a single point of access for updating state so we wouldn't need to access them globally, it would just be part of the flow. For example in Dashboard, we would send a fetchIssues action on the store (or AppState in our case) which would update the state directly so we wouldn't have to rely on callbacks or passing around the app delegate.

@cselin take a look at my attempt at unidirectional data flow? I figured that using @MainActor would absolve me of having to DispatchQueue.main.async because that could be inferred but apparently not? Or am I holding it wrong. I am not grokking the point of Actors if I still have to sprinkle dispatch queues where I know I'll be updating UI components.

@cselin I merged your approach back into this branch, removing a tiny bit of the generics in the reducer for simplicity and because I wanted to dispatch a contact fetch when the location was changed. I added some error setting as well but it's not reflected anywhere in the views yet.
If this approach seems right to extend, I think it's time to get this merged back to main so we can better manage branches with incremental improvements going forward.

Oh and I refactored actions into an enum, the types are a bit more concisely named and we can rely on switches being exhaustive to ensure all the cases are covered.


BUG FIX Update User Guide bugs

Codecov Report

Merging #280 (2c6c5fb) into master (e29222c) will decrease coverage by 1.52%.
The diff coverage is n/a.

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


feature request: add support for styles

Hey there,
happy to see this project is still maintained - thank you for that!
One question I'd like to raise is if there are plans to map the .gpx styles to the .geojson format as well. The so-called "Geojson CSS" markup is used for that and could be applied from the gpxx:DisplayColor GPX attribute. I could contribute that change if the general idea is approved by you.
Thanks!
EDIT: It seems like basic styles are already supported here but it seems limited to certain styles. The latest Garmin routes have a format as following:
  <rte>
    <name>27.05.2020 Tour 5_357 km_zyanblau</name>
    <extensions>
      <gpxx:RouteExtension>
        <gpxx:IsAutoNamed>false</gpxx:IsAutoNamed>
        <gpxx:DisplayColor>Cyan</gpxx:DisplayColor>
      </gpxx:RouteExtension>
      <trp:Trip>
        <trp:TransportationMode>Motorcycling</trp:TransportationMode>
      </trp:Trip>
    </extensions>
    ...
  </rte>

Hey Hans!
Sure thing, adding support for these Garmin extensions sounds like a good idea. I'd prefer not to implement GeoJSON CSS, though. I haven't seen any implementations of that in the wild, and the spec itself has some rather bad design decisions - for example, putting className on the Feature object rather than nesting it under properties. That kind of thing will just make compatibility with strict GeoJSON parsers and converters harder.
Instead, something like gpxx-isautonamed under the properties object seems fine to me, a more verbatim translation of what the GPX attribute is saying.

Interesting thought. Maybe even map them all automatically, e.g.:
{
  "properties": {
    ...
    "gpxx-isautonamed": false,
    "gpxx-displaycolor": "Cyan"
  }
}

By simply detecting the prefix and mapping the nodes to JSON keys. Or should we rather constraint it? Thanks for your feedback!

Yep, I think automatically mapping values under RouteExtension would work!

Fixed in #20!


Farming Station Damages Unbreakable Hoes

The farming station always deals 1 damage per operation to hoes, including unbreakable tools.  Examples of this are unbreaking X mattocks from tinker's construct, end forged hoe from calculator and several others.  I believe the relevant line of code is
https://github.com/CrazyPants/EnderIO/blob/master/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java#L220

Notice the check for canDamage before this line is called. If the hoe properly overrides isDamageable() there will be no issues.


Update Documentation for CONTAO CMS

ISSUE TYPE

Documentation

SUMMARY

I just realized that there is a documentation for the Contao CMS:
https://devilbox.readthedocs.io/en/latest/examples/setup-contao.html
It describes how to install Contao with Composer (console/shell).
This will probably not work because of the default PHP memory_limit ( 512M ).
So you have to setup the .ini with "memory_limit = -1" first for example. As described in:
https://devilbox.readthedocs.io/en/latest/configuration-files/php-ini.html#change-memory-limit-for-php-7-1
Using the "Contao Manager"
Another approach would be to use the "Contao Manager". The "Contao Manager" is a graphical tool to manage a Contao installation - and more. The CM includes a useful service called "Composer Cloud Resolver":

The Composer Cloud Resolver allows to install Composer dependencies even if your server does not provide enough local memory. Please be aware that your package information will be transmitted to a cloud server operated by the Contao Association.

To use the CM you have to download the "contao-manager.phar" file from https://contao.org/de/download.html and copy it to the contao "web" folder.
Rename it to "contao-manager.phar.php".
Or just - in the Contao/vhost folder:
curl -o web/contao-manager.phar.php -L https://download.contao.org/contao-manager.phar
Call it like: https://my-contao.loc/contao-manager.phar.php ...
Goal

Update Documentation for CONTAO CMS

Supplement:
After calling the "Contao Manager" in your Brwoser you have to set a Username and Password for the CM first. The CM will than check the environment.
Under "Server Configuration" you have to select "Other".
With the devilbox the correct PHP binary path should be recognized automatically. With a fresh installation you can than choose which Contao Version to install.
Furthermore, if there is already a composer.json respectively a composer.lock the CM will install the exact  configuration provided via these corresponding configuration files.
After the installation process you could search and install further Contao extensions or use several maintenance tools without using a console at all.

What about this "stale" mode. Do you need something more ... ?

The bot automatically helps me mange my issues and will mark (and later close) issues with no activity.
Currently I haven't had the time to provide more detailed documentation and will rely on others to jump in here to support ;)

@fkaminski would you care to create a PR for that.

The Contao Documentation now includes a devilbox guide:
https://docs.contao.org/manual/de/lokale-installation/devilbox/
https://docs.contao.org/manual/en/guides/local/devilbox/

Fixed here: https://github.com/cytopia/devilbox/pull/750


Modpack offline

i have tried getting my solder modpack to download in the client however every time i do so it keeps saying its not installed or corrupt and can't be played offline. i cant seem to find a solution or even find what the problem is.
here is my modpack download api: http://api.technicpack.net/modpack/vulcancrafts-private-server
and here is my solder api URL http://vulcangaming.co.uk/solder/public/index.php/api/ .
i have not added any mods yet because i need to see if it works before hand.

your modpack needs a version, i dont think you made one

I have just made a version within my Solder and waited 10 minutes and still it is offline.

never mind i got it to work i had to wait a bit more after adding a version thankyou


feat: Preload default artwork image to speed up LCP GRO-382

This PR adds a preload tag for the default artwork image.
Artwork Images Confuse Me
I figured what you see here in this diff would be all that's required for this task, but I'm confused because the image urls don't match:
$('img[data-is-default=true]').src
"https://d32dm0rphc51dk.cloudfront.net/RtSWWtWGDI11QPzBuW4dsA/large.jpg"
$('link[as=image]').href
"https://d196wkiy8qx2u5.cloudfront.net/?resize_to=fit&width=640&height=394&quality=80&src=https%3A%2F%2Fd32dm0rphc51dk.cloudfront.net%2FRtSWWtWGDI11QPzBuW4dsA%2Flarge.jpg"

So there's something where the image url I have access to is a meta image? @dzucconi do you know what's going on here?
https://artsyproduct.atlassian.net/browse/GRO-382
/cc @artsy/grow-devs

Yeah: I'd include this tag directly in the lightbox component: https://github.com/artsy/force/blob/ef1c65306afd82fa67172a527522933cfb5bc384/src/v2/Components/Lightbox/Lightbox.tsx#L318
When this component gets rebuilt we're going to be dynamically resizing the image anyway so this will drift if it's separate.

Ok I moved it with a4e0d47 - is that what you were thinking @dzucconi?

I think so: does the rendered HTML look OK to you? I also think what this is going to do is swap out the link tag when the image changes (when there are multiple images); which isn't what we want but also probably wouldn't harm anything...

Well this looks better to me!
$('link[as=image]').href
"https://d32dm0rphc51dk.cloudfront.net/RtSWWtWGDI11QPzBuW4dsA/large.jpg"
$('img[data-is-default=true]').src
"https://d32dm0rphc51dk.cloudfront.net/RtSWWtWGDI11QPzBuW4dsA/large.jpg"

And yeah it's rendering all those images instead of just the default:

Could avoid that by checking for isDefault - worth it?

Yeah, we definitely don't want to preload ALL the images, just the first one; so the isDefault guard should be 👍


Autocomplete: add completion intent to completion events

Context
DISCLAIMER: 60% of the diff are snapshot tests.

Adds a tree-sitter query for completion intent (syntactic trigger) detection in Javascript/Typescript.

Adds the completion intent information to the completion analytics events.
Adds corresponding snapshot tests to every completion intent described in the tree-sitter query.
Simplifies the interface for running tree-sitter query wrappers.
Closes https://github.com/sourcegraph/cody/issues/1451
Part of https://github.com/sourcegraph/cody/issues/1455

Test plan
Added new unit tests.

Added arguments and argument intents to the query. Let's add JSX-specific intents in a follow-up PR because it involves adding additional logic. https://github.com/sourcegraph/cody/issues/1472

Thanks for the review, @abeatrix! I added the completion intent field to the trace view ✅


npm install erro

acontece esse erro quando eu digito npm install
npm WARN deprecated<EMAIL_ADDRESS>this library is no longer supported
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated<EMAIL_ADDRESS>The latest version is available, immediately update to get the update.
npm WARN deprecated<EMAIL_ADDRESS>Critical security vulnerability fixed in v0.21.1.   See: 'npm help config'
npm ERR!      C:\Users\joao\AppData\Local\npm-cache_logs\2021-11-27T19_13_46_629Z-debug.log

This is a problem related to network connectivity. -> Esse problema é relacionado a conectividade da internet.
Sempre leia o terminal.
Ou seja, o problema aparentemente está na sua internet.

nao to usando nao

poderia me explicar porque esse erro esta acontecendo?
npm WARN deprecated<EMAIL_ADDRESS>this library is no longer supported
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated<EMAIL_ADDRESS>The latest version is available, immediately update to get the update.
npm WARN deprecated<EMAIL_ADDRESS>Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
npm ERR! code 1
npm ERR! path C:\Users\LNV\Downloads\iris-main\node_modules\youtube-dl-exec
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c npx bin-version-check-cli python ">=2"
npm ERR! Error: Couldn't find version of python
npm ERR!     at binaryVersion (file:///C:/Users/LNV/AppData/Local/npm-cache/_npx/7b761a280cf4a94b/node_modules/bin-version/index.js:55:8)
npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:96:5)
npm ERR!     at async binaryVersionCheck (file:///C:/Users/LNV/AppData/Local/npm-cache/_npx/7b761a280cf4a94b/node_modules/bin-version-check/index.js:14:18)
npm ERR!      C:\Users\LNV\AppData\Local\npm-cache_logs\2021-11-28T02_28_06_744Z-debug.log
PS C:\Users\LNV\Downloads\iris-main>

nao to usando nao

Estranho. isso ocorre com proxy's, mas tente seguir isto aqui:

Remova os arquivos e faça o git clone novamente.

Rode npm cache clean --force, depois rode npm config set registry="http://registry.npmjs.org/".

Instale o NodeJS novamente, certifique-se de usar a versão LTS, se ainda assim falhar, instale a versão 14 do NodeJS, como por exemplo, a 14.16.

nao to usando nao

consegui arrumar aq esse proble mas agr ta eterno nisso aq oq eu faço?

QR code scanned. Loading session...
QR code scanned. Loading session...
Reinjecting api
WAPI Reinjected
Checking if session is valid
Downloading patches from https://cdn.openwa.dev/patches.json
Client is ready
Generating patch hash
Downloaded patches in 23.2s
Installing patches
Patches Installed: 8b26b
Client loaded for normal account with 674 contacts, 162 chats & 908 messages in 112.332s
Finalizing web session...
Finalizing client...

nao to usando nao

consegui arrumar aq esse proble mas agr ta eterno nisso aq oq eu faço?

QR code scanned. Loading session...
QR code scanned. Loading session...
Reinjecting api
WAPI Reinjected
Checking if session is valid
Downloading patches from https://cdn.openwa.dev/patches.json
Client is ready
Generating patch hash
Downloaded patches in 23.2s
Installing patches
Patches Installed: 8b26b
Client loaded for normal account with 674 contacts, 162 chats & 908 messages in 112.332s
Finalizing web session...
Finalizing client...

Apague a iris.data.json e inicie.


query for data type Array(String)

data type Array(String).
how to query ?

The input box section uses ClickHouse native syntax, u can query by referring to the official documentation.
https://clickhouse.com/docs/en/sql-reference/functions/array-functions/

The input box section uses ClickHouse native syntax, u can query by referring to the official documentation.
https://clickhouse.com/docs/en/sql-reference/functions/array-functions/

@manfrid Have you solve your problem ?

I have not solve my problem.
my query sql is below, it works when i use sql command.(object_ids Array(String))
select * from table1 where has(object_ids, '001') limit 10;
but when i use clickvisual,  the query input with "has(object_ids, '001)", warning messages popup

在 https://github.com/clickvisual/clickvisual/releases/tag/v0.4.3-rc3 中完成了修复。