about setup

when i obey the guidelines in SOT_SETUP.md, after i conda activate siamfcpp and i surely in the conda virtual environment, and after i ran pip3 install -U -r requirements.txt，some packages always can't be installed successfully(although in terminal it shows they are installed successfully) beacause i import these packages, they return ModuleNotFoundError, so where are wrong?

guy, you should think this problem by yourself, don't like a kid.
this problem maybe created by your IDE.
| |
Zp_ositive
|
|
<EMAIL_ADDRESS>|
Signature is customized by Netease Mail Master
On 04/17/2020 18:46, laisimiao wrote:
when i obey the guidelines in SOT_SETUP.md, after i conda activate siamfcpp and i surely in the conda virtual environment, and after i ran pip3 install -U -r requirements.txt，some packages always can't be installed successfully(although in terminal it shows they are installed successfully) beacause i import these packages, they return ModuleNotFoundError, so where are wrong?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

@laisimiao Can you post the cmd log so that we can help you figure out the problem?

@laisimiao BTW, consider using virtualenv instead of conda?

my anaconda version is 5.2.0(python3.6.5), in base environment:
i comment two lines in requirements.txt(that is 'torch==1.4.0' and 'torchvision==0.5.0', because i want to install them in a local way later), this is terminal install log:
(base) lsm@lsm:~/video_analyst$ pip install -r requirements.txt
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting tqdm (from -r requirements.txt (line 1))
Downloading http://mirrors.aliyun.com/pypi/packages/4a/1c/6359be64e8301b84160f6f6f7936bbfaaa5e9a4eab6cbc681db07600b949/tqdm-4.45.0-py2.py3-none-any.whl (60kB)
100% |████████████████████████████████| 61kB 15.9MB/s
Requirement already satisfied: pylint in /home/lsm/anaconda3/lib/python3.6/site-packages (from -r requirements.txt (line 2)) (1.8.4)
Collecting yacs (from -r requirements.txt (line 3))
Downloading http://mirrors.aliyun.com/pypi/packages/2f/51/9d613d67a8561a0cdf696c3909870f157ed85617fea3cff769bb7de09ef7/yacs-0.1.6-py3-none-any.whl
Requirement already satisfied: pillow in /home/lsm/anaconda3/lib/python3.6/site-packages (from -r requirements.txt (line 4)) (5.1.0)
Collecting Cython==0.27.3 (from -r requirements.txt (line 5))
Downloading http://mirrors.aliyun.com/pypi/packages/e9/91/46cb3f4c73f1e96faa517f96e9d12de5b8c97d404c7ab71553da0e58c980/Cython-0.27.3-cp36-cp36m-manylinux1_x86_64.whl (3.1MB)
100% |████████████████████████████████| 3.1MB 75.5MB/s
Collecting yapf==0.28.0 (from -r requirements.txt (line 6))
Downloading http://mirrors.aliyun.com/pypi/packages/79/22/d711c0803b6c3cc8c96eb54509f23fec1e3c078d5bfc6eb11094e762e7bc/yapf-0.28.0-py2.py3-none-any.whl (180kB)
100% |████████████████████████████████| 184kB 12.5MB/s
Collecting opencv-python==<IP_ADDRESS> (from -r requirements.txt (line 7))
Downloading http://mirrors.aliyun.com/pypi/packages/7b/d2/a2dbf83d4553ca6b3701d91d75e42fe50aea97acdc00652dca515749fb5d/opencv_python-<IP_ADDRESS>-cp36-cp36m-manylinux1_x86_64.whl (26.6MB)
100% |████████████████████████████████| 26.6MB 12.9MB/s
Collecting numpy==1.16.0 (from -r requirements.txt (line 8))
Downloading http://mirrors.aliyun.com/pypi/packages/7b/74/54c5f9bb9bd4dae27a61ec1b39076a39d359b3fb7ba15da79ef23858a9d8/numpy-1.16.0-cp36-cp36m-manylinux1_x86_64.whl (17.3MB)
100% |████████████████████████████████| 17.3MB 62.3MB/s
Collecting colorama==0.3.7 (from -r requirements.txt (line 11))
Downloading http://mirrors.aliyun.com/pypi/packages/b7/8e/ddb32ddaabd431813e180ca224e844bab8ad42fbb47ee07553f0ec44cd86/colorama-0.3.7-py2.py3-none-any.whl
Collecting numba==0.45.0 (from -r requirements.txt (line 12))
Downloading http://mirrors.aliyun.com/pypi/packages/42/ff/ba2c7ee7140934de56baec3e8e7ca57f4709bb6260a5261749256ec5a0e9/numba-0.45.0-cp36-cp36m-manylinux1_x86_64.whl (3.5MB)
100% |████████████████████████████████| 3.5MB 12.2MB/s
Collecting matplotlib==3.0.0 (from -r requirements.txt (line 13))
Downloading http://mirrors.aliyun.com/pypi/packages/ed/89/dd823436a5f8d5ca9304b51b554863bfd366ca84708d5812f5ee87c923bc/matplotlib-3.0.0-cp36-cp36m-manylinux1_x86_64.whl (12.8MB)
100% |████████████████████████████████| 12.8MB 12.9MB/s
Collecting wget==3.2 (from -r requirements.txt (line 14))
Downloading http://mirrors.aliyun.com/pypi/packages/47/6a/62e288da7bcda82b935ff0c6cfe542970f04e29c756b0e147251b2fb251f/wget-3.2.zip
Collecting shapely==1.7.0 (from -r requirements.txt (line 15))
Downloading http://mirrors.aliyun.com/pypi/packages/20/fa/c96d3461fda99ed8e82ff0b219ac2c8384694b4e640a611a1a8390ecd415/Shapely-1.7.0-cp36-cp36m-manylinux1_x86_64.whl (1.8MB)
100% |████████████████████████████████| 1.8MB 11.8MB/s
Collecting scipy==1.2.1 (from -r requirements.txt (line 16))
Downloading http://mirrors.aliyun.com/pypi/packages/7f/5f/c48860704092933bf1c4c1574a8de1ffd16bf4fde8bab190d747598844b2/scipy-1.2.1-cp36-cp36m-manylinux1_x86_64.whl (24.8MB)
100% |████████████████████████████████| 24.8MB 12.8MB/s
Collecting tensorboard (from -r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/1d/fd/4f3ca1516cbb3713259ef229abd9314bba0077ef6070285dde0dd1ed21b2/tensorboard-2.2.1-py3-none-any.whl (3.0MB)
100% |████████████████████████████████| 3.0MB 12.9MB/s
Collecting future==0.18.2 (from -r requirements.txt (line 18))
Collecting loguru==0.4.1 (from -r requirements.txt (line 19))
Downloading http://mirrors.aliyun.com/pypi/packages/b2/f4/2c8b94025c6e30bdb331c7ee628dc152771845aedff35f0365c2a4dacd42/loguru-0.4.1-py3-none-any.whl (54kB)
100% |████████████████████████████████| 61kB 17.4MB/s
Requirement already satisfied: astroid<2.0,>=1.6 in /home/lsm/anaconda3/lib/python3.6/site-packages (from pylint->-r requirements.txt (line 2)) (1.6.3)
Requirement already satisfied: six in /home/lsm/anaconda3/lib/python3.6/site-packages (from pylint->-r requirements.txt (line 2)) (1.11.0)
Requirement already satisfied: isort>=4.2.5 in /home/lsm/anaconda3/lib/python3.6/site-packages (from pylint->-r requirements.txt (line 2)) (4.3.4)
Requirement already satisfied: mccabe in /home/lsm/anaconda3/lib/python3.6/site-packages (from pylint->-r requirements.txt (line 2)) (0.6.1)
Requirement already satisfied: PyYAML in /home/lsm/anaconda3/lib/python3.6/site-packages (from yacs->-r requirements.txt (line 3)) (3.12)
Collecting llvmlite>=0.29.0dev0 (from numba==0.45.0->-r requirements.txt (line 12))
Downloading http://mirrors.aliyun.com/pypi/packages/ad/bb/60d4033d56c9da36490af19caa6c794b72b8aef6f792fdfa8cb95d11e419/llvmlite-0.31.0-cp36-cp36m-manylinux1_x86_64.whl (20.2MB)
100% |████████████████████████████████| 20.2MB 12.7MB/s
Requirement already satisfied: python-dateutil>=2.1 in /home/lsm/anaconda3/lib/python3.6/site-packages (from matplotlib==3.0.0->-r requirements.txt (line 13)) (2.7.3)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /home/lsm/anaconda3/lib/python3.6/site-packages (from matplotlib==3.0.0->-r requirements.txt (line 13)) (2.2.0)
Requirement already satisfied: cycler>=0.10 in /home/lsm/anaconda3/lib/python3.6/site-packages (from matplotlib==3.0.0->-r requirements.txt (line 13)) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/lsm/anaconda3/lib/python3.6/site-packages (from matplotlib==3.0.0->-r requirements.txt (line 13)) (1.0.1)
Collecting protobuf>=3.6.0 (from tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/57/02/5432412c162989260fab61fa65e0a490c1872739eb91a659896e4d554b26/protobuf-3.11.3-cp36-cp36m-manylinux1_x86_64.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 13.0MB/s
Collecting requests<3,>=2.21.0 (from tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 14.5MB/s
Collecting google-auth<2,>=1.6.3 (from tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/4f/97/5e7083a5be4cbd1d928061c9d9cb3c070e55d5a15c563be41cb47b544807/google_auth-1.14.0-py2.py3-none-any.whl (88kB)
100% |████████████████████████████████| 92kB 13.7MB/s
Collecting tensorboard-plugin-wit>=1.6.0 (from tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/51/cd/a0c1f9e4582ea64dddf76c1b808b318d01e3b858a51c715bffab1016ecc7/tensorboard_plugin_wit-1.6.0.post3-py3-none-any.whl (777kB)
100% |████████████████████████████████| 778kB 12.0MB/s
Requirement already satisfied: werkzeug>=0.11.15 in /home/lsm/anaconda3/lib/python3.6/site-packages (from tensorboard->-r requirements.txt (line 17)) (0.14.1)
Collecting setuptools>=41.0.0 (from tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/a0/df/635cdb901ee4a8a42ec68e480c49f85f4c59e8816effbf57d9e6ee8b3588/setuptools-46.1.3-py3-none-any.whl (582kB)
100% |████████████████████████████████| 583kB 12.0MB/s
Collecting google-auth-oauthlib<0.5,>=0.4.1 (from tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/7b/b8/88def36e74bee9fce511c9519571f4e485e890093ab7442284f4ffaef60b/google_auth_oauthlib-0.4.1-py2.py3-none-any.whl
Requirement already satisfied: wheel>=0.26; python_version >= "3" in /home/lsm/anaconda3/lib/python3.6/site-packages (from tensorboard->-r requirements.txt (line 17)) (0.31.1)
Collecting markdown>=2.6.8 (from tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/ab/c4/ba46d44855e6eb1770a12edace5a165a0c6de13349f592b9036257f3c3d3/Markdown-3.2.1-py2.py3-none-any.whl (88kB)
100% |████████████████████████████████| 92kB 13.7MB/s
Collecting absl-py>=0.4 (from tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/1a/53/9243c600e047bd4c3df9e69cfabc1e8004a82cac2e0c484580a78a94ba2a/absl-py-0.9.0.tar.gz (104kB)
100% |████████████████████████████████| 112kB 13.9MB/s
Collecting grpcio>=1.24.3 (from tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/cf/7a/9744998129fce7e29c5f2d8b0f545913b7383e65d8366fc0ae98d11936af/grpcio-1.28.1.tar.gz (19.5MB)
100% |████████████████████████████████| 19.5MB 5.7MB/s
Collecting aiocontextvars>=0.2.0; python_version < "3.7" (from loguru==0.4.1->-r requirements.txt (line 19))
Downloading http://mirrors.aliyun.com/pypi/packages/db/c1/7a723e8d988de0a2e623927396e54b6831b68cb80dce468c945b849a9385/aiocontextvars-0.2.2-py2.py3-none-any.whl
Requirement already satisfied: lazy_object_proxy in /home/lsm/anaconda3/lib/python3.6/site-packages (from astroid<2.0,>=1.6->pylint->-r requirements.txt (line 2)) (1.3.1)
Requirement already satisfied: wrapt in /home/lsm/anaconda3/lib/python3.6/site-packages (from astroid<2.0,>=1.6->pylint->-r requirements.txt (line 2)) (1.10.11)
Requirement already satisfied: chardet<4,>=3.0.2 in /home/lsm/anaconda3/lib/python3.6/site-packages (from requests<3,>=2.21.0->tensorboard->-r requirements.txt (line 17)) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in /home/lsm/anaconda3/lib/python3.6/site-packages (from requests<3,>=2.21.0->tensorboard->-r requirements.txt (line 17)) (2.6)
Requirement already satisfied: certifi>=2017.4.17 in /home/lsm/anaconda3/lib/python3.6/site-packages (from requests<3,>=2.21.0->tensorboard->-r requirements.txt (line 17)) (2018.4.16)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /home/lsm/anaconda3/lib/python3.6/site-packages (from requests<3,>=2.21.0->tensorboard->-r requirements.txt (line 17)) (1.22)
Collecting rsa<4.1,>=3.1.4 (from google-auth<2,>=1.6.3->tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/02/e5/38518af393f7c214357079ce67a317307936896e961e35450b70fad2a9cf/rsa-4.0-py2.py3-none-any.whl
Collecting pyasn1-modules>=0.2.1 (from google-auth<2,>=1.6.3->tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/95/de/214830a981892a3e286c3794f41ae67a4495df1108c3da8a9f62159b9a9d/pyasn1_modules-0.2.8-py2.py3-none-any.whl (155kB)
100% |████████████████████████████████| 163kB 13.2MB/s
Collecting cachetools<5.0,>=2.0.0 (from google-auth<2,>=1.6.3->tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/b3/59/524ffb454d05001e2be74c14745b485681c6ed5f2e625f71d135704c0909/cachetools-4.1.0-py3-none-any.whl
Collecting requests-oauthlib>=0.7.0 (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/a3/12/b92740d845ab62ea4edf04d2f4164d82532b5a0b03836d4d4e71c6f3d379/requests_oauthlib-1.3.0-py2.py3-none-any.whl
Collecting contextvars==2.4; python_version < "3.7" (from aiocontextvars>=0.2.0; python_version < "3.7"->loguru==0.4.1->-r requirements.txt (line 19))
Downloading http://mirrors.aliyun.com/pypi/packages/83/96/55b82d9f13763be9d672622e1b8106c85acb83edd7cc2fa5bc67cd9877e9/contextvars-2.4.tar.gz
Collecting pyasn1>=0.1.3 (from rsa<4.1,>=3.1.4->google-auth<2,>=1.6.3->tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/62/1e/a94a8d635fa3ce4cfc7f506003548d0a2447ae76fd5ca53932970fe3053f/pyasn1-0.4.8-py2.py3-none-any.whl (77kB)
100% |████████████████████████████████| 81kB 11.4MB/s
Collecting oauthlib>=3.0.0 (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard->-r requirements.txt (line 17))
Downloading http://mirrors.aliyun.com/pypi/packages/05/57/ce2e7a8fa7c0afb54a0581b14a65b56e62b5759dbc98e80627142b8a3704/oauthlib-3.1.0-py2.py3-none-any.whl (147kB)
100% |████████████████████████████████| 153kB 12.8MB/s
Collecting immutables>=0.9 (from contextvars==2.4; python_version < "3.7"->aiocontextvars>=0.2.0; python_version < "3.7"->loguru==0.4.1->-r requirements.txt (line 19))
Downloading http://mirrors.aliyun.com/pypi/packages/62/cc/3961b18a1a689a7e3232d923a8546cb901c49b4a33be6987c03a89175c4f/immutables-0.11-cp36-cp36m-manylinux1_x86_64.whl (92kB)
100% |████████████████████████████████| 102kB 3.4MB/s
Building wheels for collected packages: wget, absl-py, grpcio, contextvars
Running setup.py bdist_wheel for wget ... done
Stored in directory: /home/lsm/.cache/pip/wheels/cd/b4/2f/79420a8ca3e0c7111f6316afa3b2d64ae12c3acaa81a1224a8
Running setup.py bdist_wheel for absl-py ... done
Stored in directory: /home/lsm/.cache/pip/wheels/00/11/66/ee668d06ed8b8b5eb8a3a21c5cfc3478bdecad69631926b993
Running setup.py bdist_wheel for grpcio ... done
Stored in directory: /home/lsm/.cache/pip/wheels/cf/0f/02/92c1c29d576e0c69d290c1b9f59ae59228f72158b2b773624d
Running setup.py bdist_wheel for contextvars ... done
Stored in directory: /home/lsm/.cache/pip/wheels/87/99/7c/2febe42d3b9e666673e0318bb935c13561c8da35d83e37a3e9
Successfully built wget absl-py grpcio contextvars
distributed 1.21.8 requires msgpack, which is not installed.
Installing collected packages: tqdm, yacs, Cython, yapf, numpy, opencv-python, colorama, llvmlite, numba, matplotlib, wget, shapely, scipy, setuptools, protobuf, requests, pyasn1, rsa, pyasn1-modules, cachetools, google-auth, tensorboard-plugin-wit, oauthlib, requests-oauthlib, google-auth-oauthlib, markdown, absl-py, grpcio, tensorboard, future, immutables, contextvars, aiocontextvars, loguru
Found existing installation: Cython 0.28.2
Uninstalling Cython-0.28.2:
Successfully uninstalled Cython-0.28.2
Found existing installation: numpy 1.14.3
Uninstalling numpy-1.14.3:
Successfully uninstalled numpy-1.14.3
Found existing installation: colorama 0.3.9
Uninstalling colorama-0.3.9:
Successfully uninstalled colorama-0.3.9
Found existing installation: llvmlite 0.23.1
Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
You are using pip version 10.0.1, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

it seems no problem according to the log, but when i enter the python interpreter in another terminal(i want to test whether they are installed sucessfully or not):
(base) lsm@lsm:~/下载/whl$ python
Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import tqdm
import pylint
import yacs
import tensorboard
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'tensorboard'
import tensorboard
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'tensorboard'
import pillow
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'pillow'
import Cython
import yapf
import numpy
numpy.version
'1.16.0'
import colorama
import numba
import matplotlib
import wget
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'wget'
import shapely
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'shapely'
import scipy
import future
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'future'
import loguru
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'loguru'
some of them seems that they are not installed sucessfully.

if i re-install them one by one, the import problem will disappear, i am confuse this phenomenonthanks for your reply!

@laisimiao llvm package failed to install, and all the installation operations have been canceled.
I do not know either the reason for this. Just make sure that all packages installed successfully by viewing the output log.
As for your issue, you can search the solution for package llvm by google search. Here I post some of the results:
https://www.jianshu.com/p/faa1ca4238ec
https://blog.csdn.net/u012654847/article/details/80875838

Thank you for your reply!
I found another little problem: it SOT_SETUP, the name of pretrained model in weiyun link about alexnet is alexnet-bn-md5_fa7cdefb48f41978cf35e8c4f1159cdc.pth, but in website its name is alexnet-nopad-bn-md5_fa7cdefb48f41978cf35e8c4f1159cdc.pkl.
Are they the same one or not? If so, should I rename it to the name like in website?

They are the same. Thank you for pointing it out. I have change the filename to "pkl" on Weiyun Disk & Google Drive.
Thanks,
Yinda

De : laisimiao<EMAIL_ADDRESS>Envoyé : mercredi 6 mai 2020 11:14
À : MegviiDetection/video_analyst<EMAIL_ADDRESS>Cc : Yinda XU<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Objet : Re: [MegviiDetection/video_analyst] about setup (#64)
Thank you for your reply!
I found another little problem: it SOT_SETUPhttps://github.com/MegviiDetection/video_analyst/blob/master/docs/TUTORIALS/SOT_SETUP.md, the name of pretrained model in weiyun link about alexnet is alexnet-bn-md5_fa7cdefb48f41978cf35e8c4f1159cdc.pth, but in website its name is alexnet-nopad-bn-md5_fa7cdefb48f41978cf35e8c4f1159cdc.pkl.
Are they the same one or not? If so, should I rename it to the name like in website?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/MegviiDetection/video_analyst/issues/64#issuecomment-624533697, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHW46S7SB2UCWR7LSCHPPZ3RQETAHANCNFSM4MKUSQLQ.


Missing console output

According to the documentation, we are supposed to get some stats like rank playerid territoryValue strengthValue productionValue stillMovePercentage averageLatency..
However, after I run a game I get only the rank and id:
python3 MyBot.py
python3 RandomBot.py
1478727282-107566369.hlt 107566369
1 2
2 1

I'm using the latest Ubuntu.

We forgot to update the documentation! We took those stats out.


Create "Export scores" tab

(This is inspired by the very nice "Export Data" page on covidcast: https://delphi.cmu.edu/covidcast/export/)

User selects some forecasters, aheads, scores, and a time window.
Provides user with a "Download CSV" or R code snippet that can be copied and pasted.
What is returned is a data frame with columns geo_value, forecast_date, target_end_date, ahead, and then whatever scores have already been calculated (such as weighted_interval_score, coverageXX, absolute_error... i.e., whatever has already been computed on the backend, pre-aggregation).

Motivation: This will allow power users to make all the aggregates they want without having to go through the slow process of downloading all the individual forecasts and computing scores themselves.

Done, in staging currently.


[BUG] Updating a macOS software update policy with group inclusions and exclusions

Describe the bug
Hello. I have what might be a bug. An IntuneCD export that defines a macOS update policy with one included device group assignment and one excluded device group assignment is being used to update another tenant. When doing the update, the policy is created and the groups are created, but the assignment is not set on the policy itself.
To Reproduce
Steps to reproduce the behavior: Create a macOS software update policy with one included and one excluded device group
Expected behavior
The policy should be assigned and excluded as it was in the original backup
Screenshots
Run type (please complete the following information):

Mode: 1
Client local machine
Version 2.3.2

Additional context
When doing a report only run, I notice this:
Running in report mode, not making Graph POST request to https://graph.microsoft.com/beta/deviceManagement/deviceConfigurations/22a755c5-f827-48b8-b913-0ae745913184/assignments
But Microsoft's documentation for software update policies shows an example HTTP PATCH as
PATCH /deviceManagement/deviceConfigurations/{deviceConfigurationId}/groupAssignments/{deviceConfigurationGroupAssignmentId}/deviceConfiguration
per https://learn.microsoft.com/en-us/graph/api/intune-deviceconfig-macossoftwareupdateconfiguration-update?view=graph-rest-beta#http-request
Possible issue?

I think this issue was related to other device configuration assignment issues reported where the endpoint has changed. I was able to successfully deploy a macOS update policy with assignments using v2.3.3-beta1, try this version and report back if it works: pip3 install IntuneCD==2.3.3b1

2.3.3b1 resolves the issue.


feat: add publish workflow

Codecov Report

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

@@            Coverage Diff            @@
##             master       #6   +/-   ##
=========================================
  Coverage          ?   97.14%
=========================================
  Files             ?        1
  Lines             ?       35
  Branches          ?        6
=========================================
  Hits              ?       34
  Misses            ?        1
  Partials          ?        0

Continue to review full report at Codecov.

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


does it use w_bar when update u and v?

in the function  _update_u_v(self), does it use w_bar rather than w to update u and v? I mean, should i replace w = getattr(self.module, self.name + '_bar') with w = getattr(self.module, self.name).

That seems reasonable, since the current code appears to be doing a single power iteration update. The original paper indeed updates the most recent  w. Have you tried running the code with that modification?
Thanks for pointing this out.

On Jun 14, 2018, at 6:42 AM, zengxianfang<EMAIL_ADDRESS>wrote:
in the function _update_u_v(self), does it use w_bar rather than w to update u and v? I mean, should i replace w = getattr(self.module, self.name + '_bar') with w = getattr(self.module, self.name).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

emmm, not yet. But in the pytorch Implementation, they use the most recent w beacuse they update the weight itself in the line 33.

you're not supposed to update the weight itself, you're supposed to re-normalize the value everytime before using it. See Algorithm 1, p15 of the paper


Add a module to plot user provided data in "linear plots"

For quick analysis, it would be useful to, e.g.,  compare model H2O against FISH H2O after the flight.
The linear plot feature allows extraction of H2O along the flightpath, but one cannot, currently, can add user provided data.
This issue would add a widget to allow adding user provided data. Supported data formats would need to be defined, but i would restrict this to CF-compliant 1-D netCDF files.
Some simple tools to adjust the time axis need to be present (i.e. shift and stretch).

This likly is solved by implementing
https://open-mss.github.io/develop/GSOC/figure_objects


Move RoutingResult classes to chaire-lib, add tests and use common interface

This commit is part of work to move the routing calculations to chaire-lib instead of Transition, so that other tools can benefit from it (#954).
The main result interface is called RoutingResult. 2 classes implement it UnimodalRoutingResult and TransitRoutingResult. There is no need to call the getWalkOnlyRoute method anymore (it has been removed), as it is not part of the interface and required custom code. Rather, the getPath method will return either a Route or TrRoutingRoute in the TransitRoutingResult class.
Tests have been added for the results class. TransitRoutingResult required to be split between the common chaire-lib part (the class itself) and the transition part (requiring a PathCollection to get the geojson from transition paths). A parameter allows to specify how to retrieve the geojson from the route data.
The result classes may still be improved later, as the route calculations are also moved to chaire-lib, to find more common grounds or add better types to route properties. This is mostly moving what currently exists, with minimal changes to existing code.

Without having looked at the code, I would name the TransitRoutingResult MultimodalRoutingResult.
(Would a bike->carshare route be called Transit or something else ??)

Without having looked at the code, I would name the TransitRoutingResult MultimodalRoutingResult. (Would a bike->carshare route be called Transit or something else ??)

Currently, the class is really for transit result. When we really have Multi modal, we can revisit it and make it really generic for this kind of data.

Incidentally also fixes #286


dataloader: Create one or more action workflow

The branch should contain a workflow associated to it that will be used to determine if the given changes break any of the current tests cases.  Their should also contain a workflow that will be used to package and deploy releases of the dataloader template class.

The following commit is part of this issue.
https://github.com/ccorsi/learning/commit/c9f9aabe6fd1f49c23d66bb805afc0977180bbdb


Merging two objects without overlay

Is it possible to merge an object (e.g. given by a function) with another one in the template without overlay ?
Example for this function:
#@ def A_one_two():
A1: "one"
A2: "two"
#@ end

It is easy to define a list:
list:
- #@ A_one_two()
- #@ A_one_two()

.. that outputs:
list:
- A1: one
  A2: two
- A1: one
  A2: two

But how to add others keys by merging every objects without overlays ? Like:
list:
  - A0: "0"
    A1: "one"
    A2: "two"
    A3: "3"
  - A0: "zero"
    A1: "one"
    A2: "two"

I expected that the following template would have given this result:
list:
- A0: "0"
  #@ A_one_two()
  A3: "3"
- A0: "zero"
  #@ A_one_two()

... but it ignores functions (without warning) and outputs:
list:
- A0: "0"
  A3: "3"
- A0: zero

Maybe it's not the philosophy of ytt?
Thanks for any help !

@maximeburri template.replace should work for your use case: https://get-ytt.io/#example:example-replace.
it's effectively a top level merge: https://github.com/vmware-tanzu/carvel.dev/blob/develop/content/ytt/docs/latest/lang-ref-ytt-template.md. for your example, it would look something like this:
list:
- A0: "0"
  _: #@ template.replace(A_one_two())
  A3: "3"
- A0: "zero"
  _: #@ template.replace(A_one_two())

... but it ignores functions (without warning) and outputs:

this is because nothing is being done with the result of the function. (special case of this is foo: #@ foo() -- result of function is implied to be used as a value of foo map item because it's on the same line as foo key.) there is some more thinking to do for us to see if it's something we should error on (because nothing is being done with the function result).

(this issue is similar to https://github.com/vmware-tanzu/carvel-ytt/issues/85)

template.replace is perfect.
Thanks you


Create Input validation rules for BRS-031/032/033

Description
The goal of this story is to produce events describing which rules failed during input validation. So we in the future can handle these events accordingly.
This story only focus on rules witch are applicable to all Create operations.
Test
All rule implementations must be covered by unit tests.
All rejection events are expected to be tested on our T realm.
Rules

Rule number
Rule description
Applies to

VR.488
Only Vat classification allowed is D01 Vat or D02 NoVat

VR.505-1
Resolution must be P1D OR PT1H OR PT15M
Tariff

VR.505-2
Resolution must be P1D
Fee

VR.505-3
Resolution must be P1M
Subscription

Acceptance criteria

Rule number
Acceptance criteria

VR.488
If Vat classification is not D01 Vat or D02 NoVat. A rejection event describing this must be found on the temporary post office service bus subscription.

VR.505-1
If a Tariff's Resolution isn't P1D OR PT1H OR PT15M . A rejection event describing this must be found on the temporary post office service bus subscription.

VR.505-2
If a Fee's Resolution isn't P1D. A rejection event describing this must be found on the temporary post office service bus subscription.

VR.505-3
If a Subscription's Resolution isn't P1M. A rejection event describing this must be found on the temporary post office service bus subscription.

Test
VR505-2
Tested with resolutiontype = P1M


default vcpkg install directory

Hello,
if env.VCPKG_INSTALLED_DIR is not set then the install command is:
Running command D:\a<REPO_NAME>/<REPO_NAME>\vcpkg\vcpkg.exe"' with args '^"install^",^"--recurse^",^"--clean-after-build^",^"--x-install-root^",^"D:/a/<REPO_NAME>/b/vcpkg_installed^",^"--triplet^",^"x64-windows^"
would not be easier  with --x-install-root = "D:/a/<REPO_NAME>/<REPO_NAME>/vcpkg_installed"  or alongside the vcpkg.json manifest file?
same question for binaryCachePath.
OS : windows
thanks

@a-zakir I can imagine that the directory called b could be a problem, and I think I need you help: could you elaborate which improvements you are foreseeing? Thank you.

@lukka :
Project_Root_dir :
|_vcpkg/
|_vcpkg.json
|_vcpkg_installed/
|_vcpkg_cache/ (could be in vcpkg_installed/ ??)
See https://learn.microsoft.com/en-us/vcpkg/users/buildsystems/cmake-integration#vcpkg_installed_dir

I understand the problem is when run_vcpkg install packages before the CMake configure step (cmake_binary_dir not set yet).
I think it's a vcpkg problem, telling cmake to look for dependencies in the right place

@a-zakir FYI in<EMAIL_ADDRESS>the directory used for vcpkg artifacts it has been moved under the GITHUB_WORKSPACE.
If you have any problem with the default location, let me know.


Ports should indicate (in their CONTROL file?) if they support static linkage

It would make vcpkg search results more informative.
Also, it has potential CI value as a way to programmatically determine what linkage modes to test a given port under.

Related to #229.

Thanks for posting this issue. This issue has been fixed. The Supports has been added to CONTROL. So I am closing this issue for now.


feat: Adding dp bitmasking example in dynamic programming

Description of Change

Checklist

[x] Added description of change
[x] Added file name matches File name guidelines
[x] Added tests and example, test must pass
[x] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
[x] Relevant documentation/comments is changed or added
[x] PR title follows semantic commit guidelines
[x] Search previous suggestions before making a new one, as yours may be a duplicate.
[x] I acknowledge that all my contributions will be made under the project's license.

Notes:

sorry I had to create new pull request, last one is deleted because of one mistake.

@Nirzak , can you please have a look why test are taking so much time to start. It's been like this for an hour now.

@Nirzak , can you please have a look why test are taking so much time to start. It's been like this for an hour now.

Don't know. Have to enabled github action on your fork? @Panquesito7 bro can help.

I have already enabled that, something else seems to be issue.

And another tip. main() function will only contain test() function and return 0 . Nothing else. All checks and tests should be done inside the test() function.

@Nirzak I have updated it and everything seems fine. And tests are also passing.

@Nirzak . Hey can you please tell me what has to be done before final reviewing and merging. I actually want to start working another pull request for this repo.

@Nirzak . Hey can you please tell me what has to be done before final reviewing and merging. I actually want to start working another pull request for this repo.

you can do that by creating another branch on you local fork.

I'll review this PR until @ayaankhan98 and/or @Nirzak finish reviewing. 🙂

Nope brother. I think you guys can better review this than me. I will give my approvement after you guys have finished reviewing this.

@Nirzak , @ayaankhan98 , @Panquesito7 I have added equations in latex (is it expected way? I don't think latex can be used better in comments. Let me know what you guys think)

@Nirzak , @ayaankhan98 , @Panquesito7 I have added equations in latex (is it expected way? I don't think latex can be used better in comments. Let me know what you guys think)

These are not just comments, these comments will automatically generate documentaion for this file. look at here you will understand the significance of using LaTeX in comments.

Hey, how does the development cycle work for this repo? can you suggest me some priority projects that I can work on next? I can spend alot of time working on this. and I am sure I will be asset to the team.

specifically look at this file, see how the LaTeX comments are transformed into proper mathematical equations.

There are more instances of mathematical terms in the file, kindly consider them and replace them with their LaTeX equivalent.
Thank You.

Hey, how does the development cycle work for this repo? can you suggest me some priority projects that I can work on next? I can spend alot of time working on this. and I am sure I will be asset to the team.

Currently we lack in parallel computing algorithms, and it seems like there are very less people who will contribute to this area. If you could then it will be great.
@Panquesito7  what do you think?

@Panquesito7, what do you think?

Sounds good to me. The more algorithms we have, the better. 🙂


ImportError: No module named irc.bot

(venv) root@debian:/home/python-rss2irc# python2 feedupdater.py
Traceback (most recent call last):
File "feedupdater.py", line 4, in
import feedparser
ImportError: No module named feedparser
(venv) root@debian:/home/python-rss2irc# python2 main.py
Traceback (most recent call last):
File "main.py", line 4, in
from bot import Bot
File "/home/python-rss2irc/bot.py", line 6, in
import irc.bot
ImportError: No module named irc.bot
(venv) root@debian:/home/python-rss2irc#
(venv) root@debian:/home/python-rss2irc# python2
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Any ideas why rss wont start ?

It seems that this does not succeed in finding the necessary modules. Have you launched the command "pip install -r requirements.txt" from within the environment?

Yes i tryed on a various vm´´s with same result on all machines.
(venv) root@45365 /home/python-rss2irc # pip install -r requirements.txt
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting backports.functools-lru-cache==1.2.1
Downloading backports.functools_lru_cache-1.2.1-py2.py3-none-any.whl (5.9 kB)
Collecting feedparser==5.2.1
Downloading feedparser-5.2.1.tar.bz2 (192 kB)
|################################| 192 kB 1.8 MB/s
Collecting inflect==0.2.5
Downloading inflect-0.2.5-py2.py3-none-any.whl (58 kB)
|################################| 58 kB 4.9 MB/s
Collecting irc==14.2
Downloading irc-14.2-py2.py3-none-any.whl (75 kB)
|################################| 75 kB 5.5 MB/s
Collecting jaraco.classes==1.3
Downloading jaraco.classes-1.3-py2.py3-none-any.whl (4.6 kB)
Collecting jaraco.collections==1.3.2
Downloading jaraco.collections-1.3.2-py2.py3-none-any.whl (9.0 kB)
Collecting jaraco.functools==1.11
Downloading jaraco.functools-1.11-py2.py3-none-any.whl (5.7 kB)
Collecting jaraco.itertools==1.7.1
Downloading jaraco.itertools-1.7.1-py2.py3-none-any.whl (9.8 kB)
Collecting jaraco.logging==1.3.1
Downloading jaraco.logging-1.3.1-py2.py3-none-any.whl (5.1 kB)
Collecting jaraco.stream==1.1
Downloading jaraco.stream-1.1-py2.py3-none-any.whl (5.5 kB)
Collecting jaraco.text==1.6.3
Downloading jaraco.text-1.6.3-py2.py3-none-any.whl (5.9 kB)
Collecting more-itertools==2.2
Downloading more-itertools-2.2.tar.gz (19 kB)
Collecting python-dateutil==2.5.3
Downloading python_dateutil-2.5.3-py2.py3-none-any.whl (201 kB)
|################################| 201 kB 5.9 MB/s
Collecting pytz==2016.4
Downloading pytz-2016.4-py2.py3-none-any.whl (480 kB)
|################################| 480 kB 5.8 MB/s
Collecting six==1.10.0
Downloading six-1.10.0-py2.py3-none-any.whl (10 kB)
Collecting sqlite3worker
Cloning https://github.com/palantir/sqlite3worker to /tmp/pip-install-02Uj2I/sqlite3worker
Collecting tempora==1.4
Downloading tempora-1.4-py2.py3-none-any.whl (7.1 kB)
ERROR: Could not find a version that satisfies the requirement TinyUrl==0.1.0 (from -r requirements.txt (line 18)) (from versions: none)
ERROR: No matching distribution found for TinyUrl==0.1.0 (from -r requirements.txt (line 18))
(venv) root@45365 /home/python-rss2irc # cp config.py.sample config.py
(venv) root@45365 /home/python-rss2irc # cp feeds.sql.sample feeds.sql
(venv) root@45365 /home/python-rss2irc # python2 feedupdater.py
Traceback (most recent call last):
File "feedupdater.py", line 4, in
import feedparser
ImportError: No module named feedparser
(venv) root@45365 /home/python-rss2irc # python2 main.py
Traceback (most recent call last):
File "main.py", line 4, in
from bot import Bot
File "/home/python-rss2irc/bot.py", line 6, in
import irc.bot
ImportError: No module named irc.bot

I removed versioninfos from requirements.txt and installed Tinyurl from: https://github.com/daxeel/TinyURL-Python.git
also i added BeautifulSoup4 to requirements.txt.
Bot is running now.

A few days ago the same thing happened to me when I wanted to reinstall it. The problem is that the "TinyUrl" module no longer exists in the Python repository, and when a module is not available, "pip" doesn't install any. That's why it doesn't find "irc" either. I fixed it by changing the code to use the "v.gd" shortener instead, but the Pull Request still hasn't been accepted.
I have now translated the bot to Python3 and it uses the latest libraries available. I would like some users to help me test it on different systems before making the Pull Request, as this is a major change.
The Python3 edition of the bot and the new installation instructions are available at my repository. You can still use your current "feeds.sql" file, but the database needs to be recreated, so it would be advisable before running it:
mv feeds.db feeds.db.old
Thanks.
Translated with www.DeepL.com/Translator (free version)

Working for me. Thanks alot @Wibol

Working for me. Thanks alot @Wibol

Thanks for the feedback.

Thank you @Wibol for finding a solution! I'll close this since @Wibol's PR should have addressed the issue.


Import addresses to bitcoind

This creates an address import component for importing multiple addresses, although here only one is needed, it is preparing for the future.  The component provides a button to initiate the import and user feedback messages.
It appears after the script entry, importing here will make the list of utxos available for when you hit the "Spend from this address" button.  This seems like the logical place.
I added the call to importmulti which is a non-blocking command with rescan and provides a better user experience than importaddress and is better suited for future enhancements..
This is a response to #12

Prompt:

After import:

Going to close this as it's superseded by functionality included in #27


Fix ie11 dropdown open issue

Fixes #96

This change is

Reviewed 3 of 4 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from the review on Reviewable.io


fix: Remove Auto layout feature flag dependency.

Pull Request Template
Use this template to quickly create a well written pull request. Delete all quotes before creating the pull request.

Description
Removing Feature flag requirement for auto layout since its been in prod for a while and also feature flags are unavailable for public apps.

PR fixes following issue(s)
Fixes #24848

if no issue exists, please create an issue and ask the maintainers about this first

Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
Chore (housekeeping or task changes that don't impact user perception)
This change requires a documentation update

Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[ ] Manual
[ ] Jest
[ ] Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test

/build-deploy-preview env=release

Tested and looks good .

The auto layout works fine for unauthenticated users

/ok-to-test


Getting No Access Error, When Variable is ScalarType and have no Index.

Reason of Error from line
https://github.com/etingof/pysnmp/blob/acd16a65f89b0165b881c4f33ee5802607583c3f/pysnmp/smi/mibs/SNMPv2-SMI.py#L614
Snmpwalk is working fine.
But Snmpget is failing because of this check.

You can't GET MibScalar object because it does not have any value. You can only GET MibScalarInstance ones. Those have values to report.
For example, you can't GET SNMPv2-MIB::sysDescr, but you can GET SNMPv2-MIB::sysDescr.0..


Kt update base.html

Added generic base.html. Working on adding picture with Logo.

This is in regard to the registration line that needed to be added. I added it locally as well as fixed the Index URL locally and page to get it work for testing purposes. Since the registration line is part of the PR that is pending from Aaron I did not include that in mine.


Add extension to handle NSTextAttachment as KingfisherCompatible

This will allow using Kingfisher on NSTextAttachment in an attributed label. I've followed the same format for other extensions that add compliance for KingfisherCompatible.
We can now add a image to a label using Kingfishers cache like this
// Create a label
let label = UILabel()

// Create a attributed string
let attributedText = NSMutableAttributedString(string: "some string")

// Create the text attachment
let textAttachment = NSTextAttachment()

// Set the size of the attachment
let capHeight = label?.font.capHeight ?? 0
textAttachment.bounds = CGRect(x: 0, y: -1, width: capHeight + 2, height: capHeight + 2)

// Request the image from Kingfisher
textAttachment.kf.setImage(with: url)

// Add the text attachment to the beging of the text attributedText
attributedText.replaceCharacters(in: NSRange(), with: NSAttributedString(attachment: textAttachment))

// set the attributedText on the label
label.attributedText = attributedText

It looks nice! Thanks.
I will take another look at it soon and check whether we could have a better way for creating extension for other UI components.

@PalringoBen Terribly sorry for the delay!
I tried the related changes, but it seems the extension code only works fine when loading the image from memory.
For images loaded from network or disk (both are in an asynchronous way), it shows a file icon instead and never changed to the actual image:

I can make it work by setting the attributedText in the completion handler in the kf.setImage mehtod:
textAttachment.kf.setImage(with: url) { r in
    attributedText.replaceCharacters(in: NSRange(), with: NSAttributedString(attachment: textAttachment))
    label.attributedText = attributedText
}

or at least, I need to call setNeedsDisplay() in the handler:
textAttachment.kf.setImage(with: url) { r in
    label.setNeedsDisplay()
}

attributedText.replaceCharacters(in: NSRange(), with: NSAttributedString(attachment: textAttachment))
label.attributedText = attributedText

I am not sure whether it is what you meant to do or did you notice this? In the ideal world, the label refreshing is expected to happen automatically when we set the attachment image property (I know UIKit will not do that but for easier using, maybe we should find a way for that).
Do you have any idea about it? Or am I wrong on something?

Has this been abandoned? Is there another solution to handle NSTextAttachment?

Any update for this issue?

Merged as a part of #1495
I will tag a new version for it soon.

Hi @onevcat! This broke Kingfisher when targeting watchOS, as NSTextAttachment isn't available there.

/SourcePackages/checkouts/Kingfisher/Sources/Extensions/NSTextAttachment+Kingfisher.swift:34:41: Cannot find type 'NSTextAttachment' in scope

watchOS build should be fixed in #1499

hello, i updated pod to Installing Kingfisher (5.14.1) but can not find NSTextAttachment+Kingfisher, can u help?

here is error

@fukemy It is a part of 5.15.0.


AssertionError is thrown while using animated container

Steps to reproduce

Use the flutter latest sdk version.
Execute the below given code.

Expected results
When tapped on expand, the container should animate and expand.
Actual results
When tapped on expand, assertion error is thrown.
Code sample
Code sample
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: AnimatedContainerDemo(),
    );
  }
}

class AnimatedContainerDemo extends StatefulWidget {
  const AnimatedContainerDemo({super.key});

  @override
  AnimatedContainerDemoState createState() => AnimatedContainerDemoState();
}

class AnimatedContainerDemoState extends State<AnimatedContainerDemo> {
  bool _isExpanded = true;

  void _toggleContainer() {
    setState(() {
      _isExpanded = !_isExpanded;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Animated Container with Expansion Tiles')),
      body: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          ElevatedButton(
            onPressed: _toggleContainer,
            child: Text(_isExpanded ? 'Collapse' : 'Expand'),
          ),
          AnimatedContainer(
            decoration: const BoxDecoration(color: Colors.blue),
            duration: const Duration(milliseconds: 300),
            width: _isExpanded ? 300 : 80,
            height: 400,
            child: _isExpanded
                ? const SingleChildScrollView(
                  child: Column( // Use flexible layout constraints.
                      mainAxisSize: MainAxisSize.min,
                      children: [
                        ExpansionTile(
                          title: Text('Tile 1'),
                          trailing: SizedBox(
                            width: 60,
                            child: Icon(Icons.arrow_drop_down),
                          ),
                          children: <Widget>[
                            ListTile(title: Text('Item 1')),
                            ListTile(title: Text('Item 2')),
                          ],
                        ),
                        ExpansionTile(
                          trailing: SizedBox(
                            width: 60,
                            child: Icon(Icons.arrow_drop_down),
                          ),
                          title: Text('Tile 2'),
                          children: <Widget>[
                            ListTile(title: Text('Item 3')),
                            ListTile(title: Text('Item 4')),
                          ],
                        ),
                        ExpansionTile(
                          trailing: SizedBox(
                            width: 60,
                            child: Icon(Icons.arrow_drop_down),
                          ),
                          title: Text('Tile 3'),
                          children: <Widget>[
                            ListTile(title: Text('Item 5')),
                            ListTile(title: Text('Item 6')),
                          ],
                        ),
                      ],
                    ),
                )
                : Column(
                  children: [
                    Container(
                      height: 100,
                        color: Colors.amber,
                        child: const Text('Collapsed State 1'),
                      ),
                      Container(
                      height: 100,
                        color: Colors.green,
                        child: const Text('Collapsed State 2'),
                      ),
                  ],
                ),
          ),
        ],
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.24.5, on Microsoft Windows [Version 10.0.22631.4460], locale en-US)
    • Flutter version 3.24.5 on channel stable at D:\flutter_windows_3.24.5-stable\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision dec2ee5c1f (4 weeks ago), 2024-11-13 11:13:06 -0800
    • Engine revision a18df97ca5
    • Dart version 3.5.4
    • DevTools version 2.37.3

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc3)
    • Android SDK at C:\Users\MohanRajSrinivasan\AppData\Local\Android\sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/windows-android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[✗] Visual Studio - develop Windows apps
    ✗ Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[✓] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio2
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[✓] VS Code (version 1.95.3)
    • VS Code at C:\Users\MohanRajSrinivasan\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.102.0

[✓] VS Code, 64-bit edition (version unknown)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.102.0
    ✗ Unable to determine VS Code version.

[✓] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 14 (API 34) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22631.4460]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 131.0.6778.109
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 131.0.2903.86

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Hello @Mohanraj-SF4239, thanks for filing the issue.  This issue is reproducible on the latest stable and the master channel.
It looks like the Listtile is getting incorrect width

logs
Restarted application in 1,071ms.
D/EGL_emulation(15583): app_time_stats: avg=20777.43ms min=6.13ms max=41548.74ms count=2
D/EGL_emulation(15583): app_time_stats: avg=3116.92ms min=3116.92ms max=3116.92ms count=1
D/EGL_emulation(15583): app_time_stats: avg=45.41ms min=3.47ms max=854.60ms count=30

════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during performLayout():
Trailing widget consumes entire tile width. Please use a sized widget, or consider replacing ListTile with a custom widget (see https://api.flutter.dev/flutter/material/ListTile-class.html#material.ListTile.4)
'package:flutter/src/material/list_tile.dart':
Failed assertion: line 1356 pos 7: 'tileWidth != trailingSize?.width || tileWidth == 0.0'

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.yml

The relevant error-causing widget was:
    ExpansionTile ExpansionTile:file:///Users/mahesh/Desktop/platform_stack_test/lib/main.dart:55:25

When the exception was thrown, this was the stack:
#2      _RenderListTile._computeSizes (package:flutter/src/material/list_tile.dart:1356:7)
list_tile.dart:1356

flutter doctor -v
mahesh@LT-328818-CCB platform_stack_test % flutter doctor -v
Could not load custom device from config index 0: Expected enabled to be a boolean.
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.1.1 24B2091 darwin-arm64, locale en-IN)
    • Flutter version 3.24.3 on channel stable at /Users/mahesh/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (3 months ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-35, build-tools 34.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16A242d
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.94.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.100.0

mahesh@LT-328818-CCB platform_stack_test % flutterm doctor -v
Could not load custom device from config index 0: Expected enabled to be a boolean.
[!] Flutter (Channel master, 3.27.0-1.0.pre.773, on macOS 15.1.1 24B2091 darwin-arm64, locale en-IN)
    • Flutter version 3.27.0-1.0.pre.773 on channel master at /Users/mahesh/Development/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/mahesh/Development/flutter/bin/flutter, which is not inside your current Flutter SDK
      checkout at /Users/mahesh/Development/flutter_master. Consider adding /Users/mahesh/Development/flutter_master/bin to the front of your
      path.
    ! Warning: `dart` on your path resolves to /Users/mahesh/Development/flutter/bin/dart, which is not inside your current Flutter SDK checkout
      at /Users/mahesh/Development/flutter_master. Consider adding /Users/mahesh/Development/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 0147b1f0ec (37 minutes ago), 2024-12-10 15:07:59 -0800
    • Engine revision 23fc43d5e6
    • Dart version 3.7.0 (build 3.7.0-231.0.dev)
    • DevTools version 2.41.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks
      and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-35, build-tools 34.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16A242d
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.94.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.100.0

[✓] Connected device (5 available)
    • sdk gphone64 arm64 (mobile)     • emulator-5554                        • android-arm64  • Android 12 (API 31) (emulator)
    • iPhone 16 Pro (mobile)          • 34497AEA-B6B0-4F79-99A3-6E40007745A3 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-18-0
      (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 15.1.1 24B2091 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 15.1.1 24B2091 darwin-arm64
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome 128.0.6613.85

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Here is a simplified code sample reproducing this bug

expand to view the code sample
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: ListTileSample(),
    );
  }
}

class ListTileSample extends StatefulWidget {
  const ListTileSample({super.key});

  @override
  ListTileSampleState createState() => ListTileSampleState();
}

class ListTileSampleState extends State<ListTileSample> {
  bool _isExpanded = true;

  void _toggleExpansion() {
    setState(() {
      _isExpanded = !_isExpanded;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          spacing: 16,
          mainAxisSize: MainAxisSize.min,
          children: [
            AnimatedContainer(
              duration: Durations.medium4,
              width: _isExpanded ? 300 : 80,
              child: _isExpanded
                  ? const ListTile(
                      title: Text('Tile'),
                      tileColor: Colors.amber,
                      trailing: SizedBox(
                        width: 60,
                        child: Icon(Icons.arrow_drop_down),
                      ),
                    )
                  : const Placeholder(
                      fallbackHeight: 48,
                      fallbackWidth: 300,
                    ),
            ),
            ElevatedButton(
              onPressed: _toggleExpansion,
              child: Text(_isExpanded ? 'Collapse' : 'Expand'),
            ),
          ],
        ),
      ),
    );
  }
}

duplicate of https://github.com/flutter/flutter/issues/159380


request help: 间歇性出现503

Issue description
每次出现503时错误日志如下：
[error] 60#60: *57870308 [lua] init.lua:617: phase_func(): failed to receive RPC_HTTP_REQ_CALL: closed, client: <IP_ADDRESS>
Environment

apisix version (cmd: apisix version):2.10.0
OS (cmd: uname -a): GNU/Linux
OpenResty / Nginx version (cmd: nginx -V or openresty -V): openresty/<IP_ADDRESS>
etcd version, if have (cmd: run curl http://<IP_ADDRESS>:9090/v1/server_info to get the info from server-info API): 3.4.0
apisix-dashboard version, if have: 2.9.0
the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner): 调用Java 插件
luarocks version, if the issue is about installation (cmd: luarocks --version):

Can you test this with the master branch of apisix-java-plugin-runner?


v-model emitting native change/input events

The following example shows Vue with a jQuery plugin. It almost works, but not when changing the vm.data. Writing custom directives is an option in this kind of integration, but for many plugins this wouldn't be necessary if Vue emitted a change even on the bound element.
Example: https://jsbin.com/ruwisiyowo/edit?html,css,js,output
Related: https://github.com/vuejs/vue/issues/503

I don't think it's Vue's responsibility. You can easily write a custom directive to emit the change event and use it alongside v-model:
Vue.directive('emit-change', function () {
    var el = this.el
    Vue.nextTick(function () {
      $(el).trigger('change')
   })
})

It makes sense. But maybe it would be useful to a lot of people if this directive was included by default.

I disagree. It's convenient, but logically, separating HTML events handled by HTML elements from Vue events handled by Vue components makes things much more straight forward to reason about, without muddying it all together.

They would still be separated, in a directive.


Improved recognition for priority rules

Reviewer checklist

[ ] Test coverage: stack test --coverage
[ ] Public API documentation: stack haddock

@yzhang90 this currently breaks for rules with top priority because they are not encoded the same way as the other priority rules.

I've refactored rule recognition per @virgil-serbanuta 's suggestion, and now we can parse all rules generated by @yzhang90 's code.
I've also made failing to recognize a rule a hard error and added exceptions for functional, subsort and constructor axioms.


Fix demo, check for images.yaml before creating

Don't create images.yaml when not found. It fixes demo.sh with 0.8.2.
Tested:
./deploy/demo.sh - deploys 0.8.2 (without images.yaml)
VIRTLET_DEMO_RELEASE=master ./deploy/demo.sh - deploys master (with images.yaml)
This can be removed after we make release with images.yaml

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Review status: all files reviewed at latest revision, 1 unresolved discussion.

deploy/demo.sh, line 284 at r1 (raw file):

  # new functionality added post 0.8.2
  # 'if' could be removed later
  if [ -f "${BASE_LOCATION}/deploy/images.yaml" ]; then

please use bash-style if [[ ... ]] for the sake of consistency. note that for [[ ... ]] you don't need to quote ${BASE_LOCATION}/deploy/images.yaml (there's a couple of if [ ... ] in demo.sh but we need to make it more consistent, not less consistent ...)

Comments from Reviewable

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion.

deploy/demo.sh, line 284 at r1 (raw file):
Previously, ivan4th (Ivan Shvedunov) wrote…
please use bash-style if [[ ... ]] for the sake of consistency. note that for [[ ... ]] you don't need to quote ${BASE_LOCATION}/deploy/images.yaml (there's a couple of if [ ... ] in demo.sh but we need to make it more consistent, not less consistent ...)

Done.

Comments from Reviewable

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

Comments from Reviewable

Reviewed 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

Comments from Reviewable

Reviewed 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

Comments from Reviewable


Skip CI if only docs changes

ok, the check is still marked as required.  Can't do this I don't think


Sqlite errors

⚠ Please verify that this question has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
I am having troubles with sqlite, sometimes I see timeouts errors like this one:
Trace: [Error: insert into `heartbeat` (`down_count`, `duration`, `important`, `monitor_id`, `msg`, `ping`, `status`, `time`) values (0, 147870, true, 23, '200 - OK', 31, 1, '2024-04-25 13:35:05.866') - SQLITE_IOERR: disk I/O error] {
  errno: 10,
  code: 'SQLITE_IOERR'
}
    at consoleCall (<anonymous>)
    at Timeout.safeBeat [as _onTimeout] (/app/server/model/monitor.js:1028:25)
2024-04-25T15:35:05+02:00 [MONITOR] ERROR: Please report to https://github.com/louislam/uptime-kuma/issues
2024-04-25T15:35:05+02:00 [MONITOR] INFO: Try to restart the monitor
2024-04-25T15:35:05+02:00 [] INFO: Cannot write to error.log

I've deployed the software as a docker container with podman in a Virtual machine based on RHEL8 and mounted a volume to a local directory
The only way to resolve those errors is to restart the container.
I have ~30/40 monitors and the max nested depth (they are grouped with Groups) is 4
Can you please help me stabilize the environemnt?
📝 Error Message(s) or Log
Trace: [Error: insert into `heartbeat` (`down_count`, `duration`, `important`, `monitor_id`, `msg`, `ping`, `status`, `time`) values (0, 147870, true, 23, '200 - OK', 31, 1, '2024-04-25 13:35:05.866') - SQLITE_IOERR: disk I/O error] {
  errno: 10,
  code: 'SQLITE_IOERR'
}
    at consoleCall (<anonymous>)
    at Timeout.safeBeat [as _onTimeout] (/app/server/model/monitor.js:1028:25)
2024-04-25T15:35:05+02:00 [MONITOR] ERROR: Please report to https://github.com/louislam/uptime-kuma/issues
2024-04-25T15:35:05+02:00 [MONITOR] INFO: Try to restart the monitor
2024-04-25T15:35:05+02:00 [] INFO: Cannot write to error.log

🐻 Uptime-Kuma Version
1.23.11-alpine
💻 Operating System and Arch
RHEL8 with podman
🌐 Browser
Edge
🖥 Deployment Environment

Runtime: podman version 4.6.1
Database:
Filesystem used to store the database on:  /opt type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)
number of monitors: 40

As an explainaition what this error means from the docs:

The SQLITE_IOERR result code says that the operation could not finish because the operating system reported an I/O error.`
A full disk drive will normally give an SQLITE_FULL error rather than an SQLITE_IOERR error.
There are many different extended result codes for I/O errors that identify the specific I/O operation that failed.

A person on reddit reddit suggested the following. Could you try and report the results?

If it shows up immediately when connecting to the database, it might be an issue with Android file permissions, the file path or path style (remember different slashes for windows/linux etc, and check that node isn't altering them), or some obscure virtual machine bug related to those. Before you dig too deep into those, read up on your specific sqlite package on npm and make sure everything is set up correctly. You may want to install/update sqlite3 or an equivalent through your package manager separately!
If it shows up after other successful queries, it could be an indication of data or media corruption (check your sd cards).

Please also see https://github.com/louislam/uptime-kuma/issues/4110 if you have the same problem

Thank you @CommanderStorm I read your links and not sure that they apply to my case.
Yesterday I restarted the container and, again, this morning is stuck thorough the same error. Just for testing I started the container as root in order to void any kind of permission but this didn't solve the problem
I tried to create a dir inside the same directory were the db is stored and there is no issue
This is the actual content of the folder
drwxrwxrwx. 2 root root         6 Apr 23 13:59 docker-tls
-rwxrwxrwx. 1 root root      7490 Apr 23 23:46 error.log
-rwxrwxrwx. 1 root root 444760064 Apr 26 08:15 kuma.db
-rwxrwxrwx. 1 root root     98304 Apr 26 08:15 kuma.db-shm
-rwxrwxrwx. 1 root root  33685152 Apr 26 08:19 kuma.db-wal
drwxrwxrwx. 2 root root         6 Apr 23 13:59 screenshots
drwxrwxrwx. 2 root root        28 Apr 23 13:59 truststore
drwxrwxrwx. 2 root root       108 Apr 23 13:59 upload

The VM is deployed in the corporate private cloud (based on VMware).
Before I tried to mount the volume in a mounted fs that is supposed to be used to be used for the app data but I was not sure that that is a local disk, so I changed the folder to /opt/uptime/volumes but I still see these errors.

Can you try going into Settings -> Monitor History -> press "Shrink Database"?

Yes, no data would be deleted, it only runs a command to compact and organize the database file.
In general, most people who have reported database errors have had to reduce the retention time to eliminate the errors. I think we currently don't have the expertise to optimize our current usage of SQLite further, so there is no solution for now.
If running "Shrink Database" doesn't solve your issue, I think you can wait for external database support in 2.0, and in the meantime consider reducing the retention time after doing whatever backups necessary.

(we track the steps neasesary before a V2.0 release in #4500)
@chakflying I don't know if this is related as none of the other cases with this boiled down to this. At the current moment, I suspect a similar problem as in #4110 => a broken disk

Reducing the database size worked. So I assume that it was just too big for sqlite


404 doesn't work for archived news

When I visit urls like https://energyvision.app.radix.equinor.com/news/archive/sdlkfjlsdkfj (which does not exist) no 404 is returned. The response code is 200 and the page is empty.

Returning notFound fixed this

Can confirm, I now see a 404 in the network tab and the nice new custom 404 page 👍


Better verbose in debug mode

closes #183

@kazewong I have written the debug statement that I find useful. You may review the PR and let me know if there are any new places where we should place them.


Deinit on nimble init failure

Otherwise the controller is left on and uses memory.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hi @tannewt  ,
I have a query. The init for controller should not fail . If controller init fails, then as it is bluetooth cannot be used. So , when init fails, rather than freeing up the memory, it is better to understand what is failing and ensure bluetooth init never fails.
What use case are you targetting where it is ok to have bluetooth init fail ?

I didn’t see the controller init fail but I guarded against it anyway. Nimble init failed and I wanted it to shutdown all of Bluetooth.
This makes circuitpython work better because it uses that freed memory to attempt to run user code again. Without it, only the first attempt fails gracefully. The second fails harder because it has less memory to work with.
On Tue, May 7, 2024, at 12:39 AM, Rahul wrote:

Hi @tannewt https://github.com/tannewt ,
I have a query. The init for controller should not fail . If controller init fails, then as it is bluetooth cannot be used. So , when init fails, rather than freeing up the memory, it is better to understand what is failing and ensure bluetooth init never fails.
What use case are you targetting where it is ok to have bluetooth init fail ?
—
Reply to this email directly, view it on GitHub https://github.com/espressif/esp-nimble/pull/68#issuecomment-2097556228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAM3KNVXZ6SM6XSC5L7GELZBBZJDAVCNFSM6AAAAABHGI2RSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJXGU2TMMRSHA.
You are receiving this because you were mentioned.Message ID: @.***>

Ok. I feel there is no harm in doing so. The current PR is against nimble-1.5.0-idf.  I will raise internally to match with nimble-1.6.0-idf and backport your PR to other 5.2 / 5.1 branch. Thanks for your contribution

PR is merged since quite some time. Closing


Mobile Sidebar

Stub to discuss the best approach and figure out who will finish this off.

Align hamburger with a content (add spacing), increase size of it
Align logo to the center of the header
Increase font size, add more spacing between
Add active state for the current page
When clicking on link side menu should close
Increase clicking area for arrow (increase size of the icon) so it's easier for click on it
Remove sliding effect when resizing to mobile screen
When on small screen's and if you open some menus (scroll bar appears) header is hidden, so you can see website behind

@NejcZdovc it's completely different now, closer to @KyleAMathews design. I'll add a screenshot soon, but definitely feel free to run it on the dev-server and tell me what you think.

@skipjack I see it now I was working on wrong branch will check out #254.

As I already said in my first comment I would change header to something like this:

Other than that I will wait for the full functionality and then take it for another spin 😃

I would also add donate button on the right side if proposal from #246 will be accepted (mobile first approach).

Yea I think centering the logo on smaller viewports is definitely a good idea.

@bebraw I think this can be closed.


Local Time

This PR adds a local time field to the extension. As described in the updated README, this should be a lexicographically sortable string.
What use case does this support? Earth-centric UTC is appropriate for tracking the time when an image observation occurred from the perspective of an Earth based operator. UTC time does not make sense if one wants to query temporally for data products when the length of day is not Earth-centric. For example, UTC 'night' drifts across Mars because a Sol is slightly longer than an Earth day.
This field supports queries such as 'find all North polar images from mars year 24 - 26 in Sols 160-170'. This type of query is not currently possible without complex logic to convert MY and Sols into UTC, and then pass and aggregate many UTC based queries.

That's a good point. This should not be a clock time at all. In ISIS, they use the local solar time, but this is the angular different between the planetocentric longitude and the planetocentric longitude of the sun from the body center. I don't think that that angular difference is something that a user is going to want to query on.
The marstime app (internal link, sorry!), generates a floating point local time based on the UTC time and the longitude of the observation. This is not really that helpful to the Mars scientist though. They operate in LsubS.
So, yeah. I'll work some more on documentation in the README and I'll ping you for a re-review.


[Question/Feedback]: Deployment template validation fails when selecting Yes to Bring Your Own User Assigned Managed Identity

Check for previous/existing GitHub issues

[X] I have checked for previous/existing GitHub issues

Description
Using the "Deploy to Azure" button in the blog article https://techcommunity.microsoft.com/t5/azure-governance-and-management/enhancements-to-azure-monitor-baseline-alerts-for-azure-landing/ba-p/4231710.
Validation of the deployment fails when electing to use a Custom User Assigned Managed Identity (UAMI). See attached screenshots:

When not selected a Custom UAMI, the Management Subscription Id field is present.
When selecting a Custom UAMI, the Management Subscription Id field is removed.
The template validation fails due to missing 'managementSubscriptionId'

Hi @john-joyner, we appreciate you bringing this to our attention. We will look into the issue and respond accordingly.
@tagolovina could you please review this?


Copy content in codeblock will break line

Describe the bug
Copy content in codeblock will break line
To Reproduce
Steps to reproduce the behavior:

Go to 'codeblock'
Copy some content and then will break line

Expected behavior
not break line
Screenshots

Desktop (please complete the following information):

OS: MacOS
Browser: Chrome
Version  80.0.3987.132

Additional context

Issue 2：In codeblock, copy and paste content will lost lineBreak

@pftom This issue seems resolved. Please re-check it.


Person not show image

Home Assistant release with the issue:

0.89.2
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):

Virtual Env Python
Component/platform:

https://www.home-assistant.io/components/person/
Description of problem:
Hi, it can be possible to add the picture property to person for see the avatar?
Thanks
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

Traceback (if applicable):

Additional information:

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum. Thanks!


On m1 mac, after install, running and navigating to local URL I get error "{"detail":"Not Found"}"

Everything worked without errors but the web page says:
{"detail":"Not Found"}
Console shows the following:
INFO:     Started server process [4194]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://localhost:8000 (Press CTRL+C to quit)
INFO:     ::1:58413 - "GET / HTTP/1.1" 404 Not Found
The only thing I didn't understand about the install process was what was supposed to go in the brackets for [server] in the command pip "install llama-cpp-python[server]". Could that have caused a problem?
llama.cpp works perfectly standalone BTW.

Nope you just missed the /docs part of the url to get to the swagger ui try http://localhost:8000/docs

Ahhh...that worked. THanks!!


Great Work CuppaLabs !!

@CuppaLabs  Awesome Component! I just implemented for my project and it works out-of-the-box. Thanks for your time and efforts. Hope you will maintain this for the long run.

Thank you for the appreciation. Sure will continue to support and contribute to open source. :)


release-notes-extractor 0.0.1

New Pull Request Checklist
Please mark the points which you did / accept.

[x] I will not move an already shared step version's tag to another commit
[x] I read the Step Development Guideline
[x] I have a test for my Step, which can be run with bitrise run test (in the step's repository)
[x] I did run bitrise run audit-this-step (in the step's repository - note, if you don't have this workflow in your bitrise.yml, you can copy it from the step template.)
[x] I read and accept the Abandoned Step policy

@godrei Please check it out

Hi @ashrafDoubleO7 !
What is it differs from git-commit-changelog? Looks familiar to me. 😊

Hi @trapacska!
I'm aware of git-commit-changelog, it's actually very useful is some cases, but there is a major difference between the two steps.
git-commit-changelog relies on commit messages between tags as a source of input, while release-notes-extractor uses the current repository changelog file to extract the release notes.
The latter is highly efficient when you already have a changelog that is maintained and if you're in a team with no certain taste for "tags" and not necessarily relying on commit messages.

@godrei Could you please merge the PR?

@BirmacherAkos @godrei Thank you guys for merging this!
I'm facing an issue, the script was supposed to run a nodejs script that does the actual work, now when I include the step it reports a failure saying it can't find the script.
I'm not exactly sure what I'm doing wrong, is it something involving the working directory?
I'm basically running the node script from the bash script like:
node script.js $changelog_file_path $trim_markdown_output
Thanks.

Hi @ashrafDoubleO7
I think the problem is that the working directory is not the same as the directory where the step will be downloaded.
The Bitrise CLI downloads the steps to a temporary directory ( /var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/bitrise666960107/step_src ) but the working directory is where your project located (  /Users/Vagrant/git ).
Try this in the script.sh
#!/bin/bash
set -ex

echo "* Changelog file path: $changelog_file_path"
# Execute the extractor script
echo "* Executing the release notes extractor"

THIS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
node "$THIS_SCRIPT_DIR/release_notes_extractor.js" $changelog_file_path $keep_markdown_output

exit 0

@BirmacherAkos Thank you! that was actually the issue, I've tried the "test" flow on my machine switching to another directory and it gave the same error I reported error, but after making the changes you suggested, now the script is being read from the script directory.
I've submitted a new https://github.com/bitrise-io/bitrise-steplib/pull/2341


[BUG] - Dark Mode not working

Describe the bug
Hi!
I'm using the latest version of nextui ("@nextui-org/react": "^1.0.0-beta.11",), on Google Chrome.
I want to use Dark mode only for my app, but it seems stuck at light theme.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue

Deleting everything in globals.css and Home.module.css
The following variations of code:

import { NextUIProvider } from '@nextui-org/react';
import '../styles/globals.css';
import '../components/IsometricTrain/isometric-train.css';
import { createTheme } from '@nextui-org/react';
import { Layout } from '/components/Layout';

const darkTheme = createTheme({
  type: 'dark'
});

export default function App({ Component, pageProps }) {
  return (
    <NextUIProvider
      defaultTheme="dark"
      attribute="class"
      theme={{ type: 'dark' }}
      value={{
        light: darkTheme.className,
        dark: darkTheme.className
      }}
    >
      <Layout>
        <Component {...pageProps} />
      </Layout>
    </NextUIProvider>
  );
}

Expected behavior
Should either automatically switch to dark mode with system, or should be permanently stuck at Dark mode. Nothing happens. It just stays at light mode.
Screenshots or Videos

Operating System Version
Linux
Browser
Chrome

Hey @SaadBazaz you need to use next-themes together with NextUI, docs here: Using next-themes.
Example: codesandbox.io/p/sandbox/nextui-example-d4is80.

@tianenpang I've tried that, doesn't work.


Refactor transaction callback pattern to more unified approach.

    > @Robiquet Any of these you still want to change or is it mergable?

Would we good to unify transaction notification behaviour with what we currently have if possible
Originally posted by @Robiquet in https://github.com/zeitgeistpm/ui/issues/408#issuecomment-1322265899

is this done now with #492 ?


add exception filters

This is a feature request to add exception filters similar to C# 6.
begin
  ...
rescue Errno => ex if ex.errno == Errno::EPERM
rescue => ex if log(ex)
rescue
end

For the example I think I'd prefer #445 though.

What would be the semantic if an exception occurs inside the condition? Throw it to the caller? Or keep trying to the following rescues first?

@jhass the log() portion of the example isn't covered by #445.

You can do:
begin
   ...
rescue ex : Errno
  if ex.errno == Errno::EPERM
    # do something
  else
    raise ex
  end
rescue ex
  if log(ex)
    # do something
  else
    raise ex
  end
end

I know it's more typing, but you can do this right now without introducing features and thinking about corner cases like the one @bcardiff mentions.
Plus, my guess is that this kind of logic might be needed in 1% of the code, so it's not such a big deal.
On the other hand, the original snippet could be easily rewritten by the compiler to the expansion I've. But you won't be able to do:
begin
   ...
rescue ex : Errno if ex.errno == Errno::EPERM
  # ...
rescue ex : Errno if ex.errno == Errno::EBADF
 # ...
end

Or yes, but the compiler needs more logic to handle these cases. So I think it's better if we keep things simple here.
And neither @waj nor me think that we should expand all the Errno hierarchy into exceptions, it will just bloat things up for, again, a use case that will happen 1% of the time.
So if @waj agrees, I'll close this and #445.

@asterite Applications that deal with lots of files will need to rescue specific exceptions and to handle them differently, especially when dealing with files created by multiple users.
Your example for what can be done is NOT the same.  You can use if statements if they are the same exception class but not if they are different.  In order to rescue the example below you would need a single rescue statement with multiple if or case statements.
rescue Errno if condition 1
rescue Errno if condition 2
rescue SomeOtherException
rescue Exception if condition 3
end

Consider this request syntactic sugar for
rescue ex : Errno if ex.errno == Errno::EPERM

is equivalent to
rescue ex : Errno
  if ex.errno == Errno::EPERM
    ...
  else
    CONTINUE_SEARCHING_EXCEPTIONS
  end

As far as corner cases there isn't one.

The condition can be in the scope of the rescue block
Throwing inside a rescue block doesn't continue searching exceptions (that wouldn't make sense as it's a completely new exception in a part of code made to handle specific exceptions)

@technorama After talking with @waj he told me that he thinks this might be a good idea and it shouldn't be that hard to implement, so we'll probably do it.

I think that we should deconstruct Errno into multiple exceptions. PEP 3151 is a document which approaches a similar issue in python, and is well worth a read. The resulting exception hierarchy isn't particularly large. Some of them like BlockingIOError and InterruptedError could likely be avoided in crystal.

It doesn't seem that exception filters would provide much benefit over the current mechanism of handling exceptions based on their type. As demonstrated above, conditional handling based on properties of an exception object can be implemented inside a rescue block with re-reraising. This seems to be sufficient of remaining use cases.
The presented use case with Errno is obsolete since #8885.


Encoder to return only references of downloaded files

This is useful for, for instance, video intelligence models, where the AI needs to iterate through frames.

The user creates enc = URIEncoder().
Adds the data db.execute(coll.insert_many(D({'x': enc(x)}) for x in data)).
If sCFG.hybrid == True, the data is saved on the filesystem.
Else the data is loaded into the database
At load time, the encoder wraps the saved references with Ref(uri=<the-file-path>)

None of this really makes sense if s.CFG.hybrid == False.
One solution is that we should configure hybrid not at the project level, but at the Encoder level.

@dc.dataclass
class URIEncoder:
    def __call__(self, uri):
        return {"_content": {"uri": uri}}


Kotlin multiplatform - KMP projects with Jetpack compose :)

Is your feature request related to a problem? Please describe
Yes no KMP starter :)
Describe the idea you'd like
Would be amazing to have be able scaffold kmp projects with jetpack compose.
Describe alternatives you've considered
flutter, but its not kotlin
Additional context
Kotlin Multiplatform iOS

@tinesoft What do you think?

I've been kicked into the grave yard of feature requests 😆, guess this is off the cards....

Hi @algoflows
Sorry for the delay in responding...
I don't know enough KMP to answer just yet... I'll have to check and get back to you.
Stay tuned

tuning in ;)


Kebab-case environment variable is NaN

I created an environment variable in kebab-case and was not able to access it.
Steps to reproduce the behavior:

Add an environment variable in kebab-case
Use it in a request and see the preview is NaN

Expected behavior
If kebab-case is not allowed, highlight it as a syntax mistake, else show the correct value
Screenshots

Context
OS: Ubuntu 18.04.3 LTS
Insomnia v2020.3.3

Ah yes, the dreadful dash problem. There is currently a warning that appears for top-level keys, but it looks like it does not detect nested ones.

An actual inline lint message (as you suggest) would be much nicer for this, as it would be hard to miss too.

Looks like https://github.com/Kong/insomnia/issues/2684 will solve this?

Nice find @johanhammar. Yes, sort of. #2684 addresses warnings for nested keys (like in the description above), but #2601 actually added support for kebab-case variables a few weeks ago.
I'm going to close this as resolved with #2601. 😄 It will be published with the next beta/stable release.


Fix forced https with new maven version

Hint: May update JDK Description, too. You have to use max. JDK 1.8 to build the Application.


It is possible to lose the game on first click.

Mines are spawned at compile time, instead of at run time after the user clicks the first cell.

W18OK 80 points


[Feature request] More options for image stitching

Like a 2x2 grid of pictures instead of having 4 pictures vertically or horizontally

Thanks for the idea!

added horizontal/vertical grids


Translate controllers/garbage-collection.md in Korean.

This is a Feature Request
What would you like to be added
Translate controllers/garbage-collection.md in Korean.
Why is this needed
The following files are not translated into Korean.

[ ] /en/docs/concepts/workloads/controllers/garbage-collection.md

Comments
Page to update: https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/
I am translating this document.
The translated document will be submitted to dev-1.17-ko.3 or dev-1.17-ko.4 branch.
/language ko

/assign


openssl verify returns ok but certificate is untrusted

Discussed in https://github.com/openssl/openssl/discussions/21778

Originally posted by maciejgpttest August 18, 2023
Hello, I've been playing around with openssl and certificates and came to a point where when i have Root CA, Intermediate CA, and client cert verified  using  openssl verify -show_chain command return OK but the client certificate is reported as "untrusted". Is this correct output? as when I try just the client cert with partial chain, it doesn't return the "untrusted" note for the certificate.
The combinations I've tried are like this:
Debian 12 openssl 3.0.9
openssl verify -CApath /certs -show_chain /certs/client.cert.pem
/certs/client.cert.pem: OK
Chain:
depth=0: C = PL, ST = MyState, O = MyOrg, CN = client (untrusted)
depth=1: C = PL, ST = MyState, O = MyOrg, CN = Intermediate CA
depth=2: CN = CA, C = PL, ST = MyState, O = MyOrg

openssl verify -partial_chain -trusted /certs/intermediate.cert.pem -trusted /certs/client.cert.pem -show_chain /certs/client.cert.pem
/certs/client.cert.pem: OK
Chain:
depth=0: C = PL, ST = MyState, O = MyOrg, CN = client (untrusted)
depth=1: C = PL, ST = MyState, O = MyOrg, CN = Intermediate CA

only here when I verify the cert itself using patial chain i don't get the "untrusted"
openssl verify -partial_chain -trusted /certs/client.cert.pem -show_chain /certs/client.cert.pem
/certs/client .cert.pem: OK
Chain:
depth=0: C = PL, ST = MyState, O = MyOrg, CN = client

Even with certs i got from a website on win10 openssl 3.1.2
openssl verify -show_chain -trusted C:\Users\user\Downloads\cert.cer -untrusted C:\Users\user\Downloads\CloudflareIncECCCA-3.crt C:\Users\user\Downloads\sni.cloudflaressl.com.crt C:\Users\user\Downloads\sni.cloudflaressl.com.crt: OK
Chain:
depth=0: C = US, ST = California, L = San Francisco, O = "Cloudflare, Inc.", CN = sni.cloudflaressl.com (untrusted)
depth=1: C = US, O = "Cloudflare, Inc.", CN = Cloudflare Inc ECC CA-3 (untrusted)
depth=2: C = IE, O = Baltimore, OU = CyberTrust, CN = Baltimore CyberTrust Root

openssl verify -show_chain -trusted C:\Users\user\Downloads\cert.cer -trusted C:\Users\user\Downloads\CloudflareIncECCCA-3.crt -trusted C:\Users\user\Downloads\sni.cloudflaressl.com.crt C:\Users\user\Downloads\sni.cloudflaressl.com.crt
C:\Users\user\Downloads\sni.cloudflaressl.com.crt: OK
Chain:
depth=0: C = US, ST = California, L = San Francisco, O = "Cloudflare, Inc.", CN = sni.cloudflaressl.com (untrusted)
depth=1: C = US, O = "Cloudflare, Inc.", CN = Cloudflare Inc ECC CA-3
depth=2: C = IE, O = Baltimore, OU = CyberTrust, CN = Baltimore CyberTrust Root

Shouldnt the last cert in chain be also truster?

I think (If I'm reading the code correctly), "trusted" just implies that the certificate in question is part of your local trust store (either by it being a certificate in the CAPATH or by explicitly designating it as such with the -trusted option.  As such I think the behavior is correct for what you are seeing, in that, while you can validate the certificate, openssl doesn't explicitly trust it, because its not part of the trust store.
The partial_chain option overrides that behavior, and asserts trust for certificates for which only a parial chain is available (see openssl-verification-options)

You are correct, but the thing is that even if I have all the certs in CAPATH or marked them with -trusted, the last one in chain (client certificate) is always marked as untrusted, and if I'm understanding correctly it should not mark it as "untrusted".


feat(branch): #71 better branch order

Added ability to change better branch order. Added version field (default disabled).
Closes: #71

@groovyghoul - I ended up writing something a bit simpler than a branch template property.
I have a few more changes to make. I think description should probably always be at the end. So I'm considering removing that from the configurable order.
Let me know if this works for you. The default order uses version where you mentioned it. However, version is enabled: false by default. So you'll still have to update the config a little to make this work. You don't need to checkout and test or anything, but wanted to make sure this can do what you were looking for!


container class name can NOT be "literally"

I followed instructions of
http://literallycanvas.com/installing.html#classic-style
But does NOT work.
I found the problem line is:

When I change the div class name from "literally" to other name, it works.

Interesting, thanks for the report. I'll try to fix in the next release. I bet it's a code issue rather than documentation.

Glad I saw this!  Was tearing my hair out, then changed the class name from "literally" to "notliterally" and it started working.

I spent some time with the code and determined that having people rename the outer class is the cleanest solution. ReactDOM.render() doesn't let you render to the element you passed, only its children.
Updating the docs now.


Add Interactive train to vsadd

please let the train from create can be interactive，just like the interactive module.

shut up


too user-friendly

its just so user friendly so idk cc @scottianstewart

Hahah. Dillon said he doesn't like to overwork the computer


Backdoor 3

https://github.com/bartblaze/PHP-backdoors/blob/master/Deobfuscated/IndiShell_93b945e747dec43f2bf7933a68b93f523144dac3.php#L306
Lol, +10 points for the email content :p

Indeed, leaving this one as it's an obvious/fun one :)