Investigate and Implement Lighter Docker Image for Production Deployment (DockerFile Optimization)

Description
As part of our ongoing efforts to optimize resource usage and streamline our production environment, we need to explore and adopt a lighter Docker image for our Python Django application.
Objective:

Identify a lighter alternative to the current Python 3.9 Docker image.
Ensure compatibility and stability with our existing application.
Optimize resource consumption without compromising performance or functionality.

I can work on this.

Great. Assigning it to you then!

Great, let me know if you face any problem while working on this issue!
please create a new branch python-docker-image-optimization from master  to work on this

On it, and sure I'll let you know if I face any problem thanks for the heads up

Whenever I am trying to run docker compose up -d with your setup it is giving me the error
ERROR [celery 6/6] RUN python manage.py migrate                                                                                0.3s

[celery 6/6] RUN python manage.py migrate:
0.271 Traceback (most recent call last):
0.271   File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 412, in run_from_argv
0.271     self.execute(*args, **cmd_options)
0.271   File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 458, in execute
0.271     output = self.handle(*args, **options)
0.271   File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 103, in wrapper
0.271     saved_locale = translation.get_language()
0.271   File "/usr/local/lib/python3.9/site-packages/django/utils/translation/init.py", line 210, in get_language
0.272     return _trans.get_language()
0.272   File "/usr/local/lib/python3.9/site-packages/django/utils/translation/init.py", line 65, in getattr
0.272     if settings.USE_I18N:
0.272   File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 102, in getattr
0.272     self._setup(name)
0.272   File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 89, in _setup
0.272     self._wrapped = Settings(settings_module)
0.272   File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 217, in init
0.272     mod = importlib.import_module(self.SETTINGS_MODULE)
0.272   File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
0.272     return _bootstrap._gcd_import(name[level:], package, level)
0.272   File "", line 1030, in _gcd_import
0.272   File "", line 1007, in _find_and_load
0.272   File "", line 984, in _find_and_load_unlocked
0.272 ModuleNotFoundError: No module named 'jyn_pathshala.settings'
0.272
0.272 During handling of the above exception, another exception occurred:
0.272
0.272 Traceback (most recent call last):
0.272   File "/usr/src/app/manage.py", line 22, in
0.272     main()
0.272   File "/usr/src/app/manage.py", line 18, in main
0.272     execute_from_command_line(sys.argv)
0.272   File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
0.273     utility.execute()
0.273   File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 436, in execute
0.273     self.fetch_command(subcommand).run_from_argv(self.argv)
0.273   File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 425, in run_from_argv
0.273     connections.close_all()
0.273   File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 84, in close_all
0.273     for conn in self.all(initialized_only=True):
0.273   File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 76, in all
0.273     return [
0.273   File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 73, in iter
0.273     return iter(self.settings)
0.273   File "/usr/local/lib/python3.9/site-packages/django/utils/functional.py", line 57, in get
0.274     res = instance.dict[self.name] = self.func(instance)
0.274   File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 45, in settings
0.274     self._settings = self.configure_settings(self._settings)
0.274   File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 148, in configure_settings
0.275     databases = super().configure_settings(databases)
0.275   File "/usr/local/lib/python3.9/site-packages/django/utils/connection.py", line 50, in configure_settings
0.275     settings = getattr(django_settings, self.settings_name)
0.275   File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 102, in getattr
0.275     self._setup(name)
0.275   File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 89, in _setup
0.275     self._wrapped = Settings(settings_module)
0.275   File "/usr/local/lib/python3.9/site-packages/django/conf/init.py", line 217, in init
0.275     mod = importlib.import_module(self.SETTINGS_MODULE)
0.275   File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
0.275     return _bootstrap._gcd_import(name[level:], package, level)
0.275   File "", line 1030, in _gcd_import
0.275   File "", line 1007, in _find_and_load
0.275   File "", line 984, in _find_and_load_unlocked
0.275 ModuleNotFoundError: No module named 'jyn_pathshala.settings'

failed to solve: process "/bin/sh -c python manage.py migrate" did not complete successfully: exit code: 1

basically you'll need a settings.py file let me share one with you :)

@Pratham271 let me know if that works for you.
"""
Django settings for jyn_pathshala project.

Generated by 'django-admin startproject' using Django 4.2.7.

For more information on this file, see
https://docs.djangoproject.com/en/4.2/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.2/ref/settings/
"""

from pathlib import Path
from datetime import timedelta
from celery.schedules import crontab
import os

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = ''

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ["<IP_ADDRESS>", "localhost"]
CORS_ALLOWED_ORIGINS = [
    "",  # Your trusted origin
]
CORS_ALLOW_HEADERS = [
    'csrftoken',
]

# CREDENTIALS
AZURE_ACCOUNT_NAME = ''
AZURE_ACCOUNT_KEY = ''
AZURE_ACCOUNT_CONTAINER_NAME = ''

# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'rest_framework',
    'rest_framework_simplejwt',
    'corsheaders',
    'pathshala',
    'django_celery_beat',
    'rest_framework_simplejwt.token_blacklist',
]

# Authentication
REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': (
        'rest_framework_simplejwt.authentication.JWTAuthentication',
    ),
}

# JWT settings
SIMPLE_JWT = {
    'ACCESS_TOKEN_LIFETIME': timedelta(days=100, minutes=15),
    'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
    'ROTATE_REFRESH_TOKENS': True,
    'BLACKLIST_AFTER_ROTATION': True,
    'ALGORITHM': 'HS256',
    'SIGNING_KEY': SECRET_KEY,
    'VERIFYING_KEY': None,
    'AUTH_HEADER_TYPES': ('Bearer',),
}

CELERY_BROKER_URL = 'redis://redis:6379/0'
CELERY_RESULT_BACKEND = 'redis://redis:6379/0'

# settings.py

# Celery Beat Configuration
CELERY_BEAT_SCHEDULE = {
    'create-record-weekly': {
        'task': 'pathshala.tasks.create_session_records',
        'schedule': crontab(day_of_week='monday'),  # Every Monday at 12 AM
    },
    'backup-db-to-azure-blob-weekly': {
        'task': 'pathshala.tasks.backup_db_to_azure_blob',
        'schedule': crontab(hour=14, minute=0, day_of_week='monday'), # Every Monday at 2 PM
    },
}

# Media
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'corsheaders.middleware.CorsMiddleware',
    'django.middleware.common.CommonMiddleware',
]

ROOT_URLCONF = 'jyn_pathshala.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

WSGI_APPLICATION = 'jyn_pathshala.wsgi.application'

# Database
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': BASE_DIR / 'db.sqlite3',
    }
}

# Password validation
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
    {
        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
    },
]

# Internationalization
# https://docs.djangoproject.com/en/4.2/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'Asia/Kolkata'

USE_I18N = True

USE_TZ = True

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.2/howto/static-files/

STATIC_URL = 'static/'

# Default primary key field type
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

are we still on this? @Pratham271 ?

Yeah I am good to go now there were few more errors that documentation helped me solve got busy with something else too.


It happens on windows using rivatuner's OSD also but can be fixed by using vector2d, instead of raster, for the OSD render.

Got the same thing running The Witcher through PlayOnLinux. I haven't messed with the config file at all.

I've got the same issue with every Wine application.
Native applications work fine.


WebM videos generated by Depthy don't loop in Firefox

This is due to Whammy not writing a Cues element.  I submitted a pull request to fix this in Whammy at https://github.com/antimatter15/whammy/pull/22, so all that remains is to update the script on the site.

Great! I'll rebuild it in spare time


Update basic_usage.md: inline evaluation

@pfitzseb mentioned on slack that Juno's inline evaluation is indentation-based, so if you want to run the lines of a function one-by-one, it's possible to do so by first unindenting those lines and then using Ctrl+Enter or Shift+Enter.
I believe this should be mentioned in the docs.

Thanks!


Release 4.5.11

todo

[ ] changelog (csproj + changelog.md)

@304NotModified Please merge #2994 to master, before making the release.

OK I will!

@304NotModified Excellent work. Thank you for the release.


Install node.js and npm

Is your feature request related to a problem? Please describe.
It's both a feature request and a problem:
I would like to install this jupyterlab extension https://github.com/jupyter-server/jupyter-resource-usage but it needs node.js and npm and I could not find a way to install them in SageMaker Studio Lab since I cannot get root privileges
Describe the solution you'd like
A think that pre-installing node.js and npm would be a good idea (they are required by several jupyterlab plugins)
Describe alternatives you've considered
Allow sudo
Additional context
This is not related to the above, but it's annoying: I also had issues when I tried to download some files from the notebook. When the size is huge, in my case 600 Mb, the system gets stuck and the only way is closing everything, browser included, and restart from scratch. Small files can be downloaded without any issue. For the rest, the first impression is absolutely amazing!

Solved!
conda install -c conda-forge nodejs

Thanks for trying out SageMaker Studio Lab! I will go ahead and close this.


•GitHub report Bug™

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Please don’t open this type of issue as it takes up personal time over the holidays to review and close


Factory test function make, makeAs, create, createAs, raw, rawOf

Coverage remained the same at 100.0% when pulling 73c836327c491e3f504b5f172da21c86cbb4c5cd on frjjkil2009:master into e44f3b7c20218b2aa8c75d1898d5397e33805954 on najs-framework:master.


[SUPPORT] request to add an example of flink  in hudi-examples module with java

Tips before filing an issue

Have you gone through our FAQs?

Join the mailing list to engage in conversations and get faster support at<EMAIL_ADDRESS>

If you have triaged this as a bug, then file an issue directly.

Describe the problem you faced
A clear and concise description of the problem.
To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.
Environment Description

Hudi version :

Spark version :

Hive version :

Hadoop version :

Storage (HDFS/S3/GCS..) :

Running on Docker? (yes/no) :

Additional context
Add any other context about the problem here.
Stacktrace
Add the stacktrace of the error.

That's reasonable, what kind of example do you want, the SQL or DataStream ?

Table API&SQL is fine,  DateStream is better.

Sure, we would fire a PR soon ~

@danny0405 Please move/create a JIRA under this ubrella ticket https://issues.apache.org/jira/browse/HUDI-2224. Feel free to add more sub-tasks here.

Created a sub-task for adding flink example: https://issues.apache.org/jira/browse/HUDI-2358


Refactor Results class

This should be replaced with something such as a DocumentBuilder.
Currently the method of writing XML documents has polynomial time complexity - for every query there are x results, for every result there are x hits, for every hit there are x formulae. So to convert the document to a string will take O(n^4), which shouldn't be necessary.
Building the XML document using a DocumentBuilder will reduce the write time to O(n), since the entire document can be written as a stream to a file.
Should I do this now or later?

I think this has low priority. However, changing that should not take to long. Please test the impact in seconds by perfroming the evaluation described at https://github.com/TU-Berlin/mathosphere/tree/master/basex "Steps performed for the submission"
I bet that the performance increase is less than 1% or 5 seconds.

The other problem with nested classes is that it's impossible to do this:
currentResult.addHit(new Results.Run.Result.Hit(id, filename, score, rank ).addFormula(id, queryID, xref, score));

because inner classes are not static.
This means instantiating a new Results(), a new Run(), and a new Result() in order to instantiate a new Hit().

I suppose a third solution would be to unnest all 4 classes


Permission command bugs

[ ] !addmember crashes the bot.
[ ] !lsmembers says the group does not exist.
More?

Should be fixed now. The whole permission command system needs some fixups and refactoring though.


xiaomi_aqara: Invalid config in frontend, component failed to initialize

Home Assistant release with the issue: 0.80.2

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

Component/platform: xiaomi-aqara

Description of problem: I didn't change the config in a while, still after updating IIRC to 0.79.x and still with 0.80.2 in the frontend, it says: Invalid config and Please check your config. However, if I check my config in the Configuration validation it says Configuration valid!. Additionally, everything I have setup related to xiaomi-aqara is currently not working. No sensors are recognized, no switches trigger automations. I checked my xiaomi key and it is still the same as in the app. I can see the gateway without issues in the app and see the state of the individual sensors.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
xiaomi_aqara:
  gateways:
    - key: !secret xiaomi_key

Traceback (if applicable):
2018-10-19 19:22:18 INFO (MainThread) [homeassistant.loader] Loaded xiaomi_aqara from homeassistant.components.xiaomi_aqara
2018-10-19 19:22:18 INFO (MainThread) [homeassistant.setup] Setting up xiaomi_aqara
2018-10-19 19:22:18 INFO (SyncWorker_1) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 1)
2018-10-19 19:22:23 INFO (SyncWorker_1) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 2)
2018-10-19 19:22:28 WARNING (MainThread) [homeassistant.setup] Setup of xiaomi_aqara is taking over 10 seconds.
2018-10-19 19:22:28 INFO (SyncWorker_1) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-10-19 19:22:28 INFO (SyncWorker_1) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 3)
2018-10-19 19:22:33 INFO (SyncWorker_1) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-10-19 19:22:33 ERROR (SyncWorker_1) [homeassistant.components.xiaomi_aqara] No gateway discovered
2018-10-19 19:22:33 INFO (MainThread) [homeassistant.setup] Setup of domain xiaomi_aqara took 15.5 seconds.
2018-10-19 19:22:33 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi_aqara: Component failed to initialize.
2018-10-19 19:22:33 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 22.41s
2018-10-19 19:22:33 INFO (MainThread) [homeassistant.core] Starting Home Assistant

Additional information:

Same problem, after updated firmwire of Xiaomi Gateway. Seems like protocol changed ?


websocket close

how to actively disconnects websocket on the web

https://github.com/Kitware/wslink/blob/master/js/src/WebsocketConnection/session.js#L86


Setting server in PRE_PROD causes Traffic Monitor exceptions

I believe all Traffic Monitors will be in that state about the same time. Traffic Router are getting ConnectionExceptions but still works (but can't get Health updates???).
WicketMessage: Exception in rendering component: [ListItem [Component id = 0]]```

Fixed on TO side in commit: https://github.com/Comcast/traffic_control/commit/702f628058fa18643e057d9677a344d46b6fba08


camera-detectnet.py ONNX inference issues

Hello
I managed to transfer learning with Pytorch for object detection on my Jetson Nano. I converted the resulting .pth.tar model to ONNX. And then I loaded the model into camera-detectnet.py provided with Jetson Inference library by using --model argument.
Although I was receiving over 80FPS, there was no bounding boxes whatsoever.
Is there a specific example on how to load an ONNX model and run object detection inference on it with Jetson Inference library?
Thanks

Jetson inference library uses under the hood tensorRT. TensorRT offers a ONNX model importer and many other features to perform inference from a neural network. You can try to code a model inferencing engine but be aware that depending on the model layers, you will need a higher version of TensorRT (one not available for the Jetson Nano yet).
Hope it helps

Thanks Felipevw.
Ideally I would like to stick with Jetson Inference and not deal with TensorRT. But so far I haven’t been able to import a custom ONNX model in camera-detectnet.py. There’s always an issue of some sort, such as wrong object id.
This is why I’m looking for a specific example of using an ONNX model with camera-detectnet.py to see if I’m doing something wrong.

Hi @rsamvelyan, I had added preliminary ONNX support to detectNet, in the depth branch of jetson-inference:
https://github.com/dusty-nv/jetson-inference/tree/depth
https://github.com/dusty-nv/jetson-inference/commit/972cce82e268cdb9cfd9511da2a65f550031e723
And here is the PyTorch code I use for training object detection model:  https://github.com/dusty-nv/pytorch-ssd
I am working on creating the tutorial around it for adding to Hello AI World.

So in regards to: https://github.com/dusty-nv/pytorch-ssd:
First of all great job, thanks a lot for all your support!!!
run_ssd_live_demo.py worked very well with MobileNetV1 model.
What it tried then is to export MobileNetV1 to ONNX using convert_to_onnx.py
It sort of worked but ended with an error message saying Segmentation Error
I tried that resulting ONNX model with detectnet-camera. I was getting a very high FPS but no bounding boxes showing. Here is my call:
detectnet-camera --model=models/mb1-ssd.onnx --class_labels=models/voc-model-labels.txt --width=640 --height=480 --camera=/dev/video0
And here is a portion from the terminal:
[TRT]   ../rtSafe/cuda/caskConvolutionRunner.cpp (491) - Cuda Error in execute: 1 (invalid argument)
[TRT]   FAILED_EXECUTION: std::exception
[TRT]   detectNet::Detect() -- failed to execute TensorRT context
[cuda]  cudaEventElapsedTime(&cuda_time, mEventsGPU[evt], mEventsGPU[evt+1])
[cuda]     invalid resource handle (error 400) (hex 0x190)
[cuda]     /home/ryan/jetson-inference/build/aarch64/include/jetson-inference/tensorNet.h:499
[TRT]   ------------------------------------------------
[TRT]   Timing Report models/mb2-ssd-lite.onnx
[TRT]   ------------------------------------------------
[TRT]   Pre-Process   CPU   0.06724ms  CUDA   0.00672ms
[TRT]   Network       CPU   0.00000ms  CUDA   0.00000ms
[TRT]   Total         CPU   0.06724ms  CUDA   0.00672ms
[TRT]   ------------------------------------------------
Did I do something wrong?
Do you actually recommend using Jetson Inference library at all or is it better to simply stick with run_ssd_live_demo.py and write the rest of my stuff based on that?

Are you able to get detections from a test image using detectnet-console?   Also, are you sure you are on the depth development branch of jetson-inference (after compiling, be sure to sudo make install it)
For testing the model, you can use run_ssd_live_demo.py, but it doesn't use TensorRT, so the performance won't be as good.

I will verify all that tonight for sure.
So basically if I understand correctly, if I want to do transfer learning on object detection models for my robotics applications, the best is to do it with Pytorch, and then run inference with the live webcam using Jetson Inference, correct?

That's correct, yes.  jetson-inference uses TensorRT, which will give you the best performance for inferencing.

detectnet-console with ONNX Model taken from dusty-nv/pytorch-ssd:
detectnet-console busy_street.jpg busy_street_output.jpg  --model=models/mb1-ssd.onnx --class_labels=models/voc-model-labels.txt
detectNet -- loading detection network model from:
-- prototxt     NULL
-- model        models/mb1-ssd.onnx
-- input_blob   'data'
-- output_cvg   'coverage'
-- output_bbox  'bboxes'
-- mean_pixel   0.000000
-- mean_binary  NULL
-- class_labels models/voc-model-labels.txt
-- threshold    0.500000
-- batch_size   1
[TRT]   TensorRT version 7.1.0
[TRT]   loading NVIDIA plugins...
[TRT]   Plugin creator registration succeeded - ::GridAnchor_TRT
[TRT]   Plugin creator registration succeeded - ::NMS_TRT
[TRT]   Plugin creator registration succeeded - ::Reorg_TRT
[TRT]   Plugin creator registration succeeded - ::Region_TRT
[TRT]   Plugin creator registration succeeded - ::Clip_TRT
[TRT]   Plugin creator registration succeeded - ::LReLU_TRT
[TRT]   Plugin creator registration succeeded - ::PriorBox_TRT
[TRT]   Plugin creator registration succeeded - ::Normalize_TRT
[TRT]   Plugin creator registration succeeded - ::RPROI_TRT
[TRT]   Plugin creator registration succeeded - ::BatchedNMS_TRT
[TRT]   Could not register plugin creator:  ::FlattenConcat_TRT
[TRT]   Plugin creator registration succeeded - ::CropAndResize
[TRT]   Plugin creator registration succeeded - ::DetectionLayer_TRT
[TRT]   Plugin creator registration succeeded - ::Proposal
[TRT]   Plugin creator registration succeeded - ::ProposalLayer_TRT
[TRT]   Plugin creator registration succeeded - ::PyramidROIAlign_TRT
[TRT]   Plugin creator registration succeeded - ::ResizeNearest_TRT
[TRT]   Plugin creator registration succeeded - ::Split
[TRT]   Plugin creator registration succeeded - ::SpecialSlice_TRT
[TRT]   Plugin creator registration succeeded - ::InstanceNormalization_TRT
[TRT]   completed loading NVIDIA plugins.
[TRT]   detected model format - ONNX  (extension '.onnx')
[TRT]   desired precision specified for GPU: FASTEST
[TRT]   requested fasted precision for device GPU without providing valid calibrator, disabling INT8
[TRT]   native precisions detected for GPU:  FP32, FP16
[TRT]   selecting fastest native precision for GPU:  FP16
[TRT]   attempting to open engine cache file models/mb1-ssd.onnx.1.1.GPU.FP16.engine
[TRT]   loading network profile from engine cache... models/mb1-ssd.onnx.1.1.GPU.FP16.engine
[TRT]   device GPU, models/mb1-ssd.onnx loaded
[TRT]   Deserialize required 5566586 microseconds.
[TRT]   device GPU, CUDA engine context initialized with 3 bindings
[TRT]   binding -- index   0
-- name    'input_0'
-- type    FP32
-- in/out  INPUT
-- # dims  4
-- dim #0  1 (SPATIAL)
-- dim #1  3 (SPATIAL)
-- dim #2  300 (SPATIAL)
-- dim #3  300 (SPATIAL)
[TRT]   binding -- index   1
-- name    'scores'
-- type    FP32
-- in/out  OUTPUT
-- # dims  3
-- dim #0  1 (SPATIAL)
-- dim #1  3000 (SPATIAL)
-- dim #2  21 (SPATIAL)
[TRT]   binding -- index   2
-- name    'boxes'
-- type    FP32
-- in/out  OUTPUT
-- # dims  3
-- dim #0  1 (SPATIAL)
-- dim #1  3000 (SPATIAL)
-- dim #2  4 (SPATIAL)
[TRT]   INVALID_ARGUMENT: Cannot find binding of given name: data
[TRT]   binding to input 0 data  binding index:  -1
[TRT]   Parameter check failed at: engine.cpp::getBindingDimensions::1977, condition: bindIndex >= 0 && bindIndex < getNbBindings()
[TRT]   binding to input 0 data  dims (b=1 c=1 h=1 w=1) size=4
[TRT]   INVALID_ARGUMENT: Cannot find binding of given name: coverage
[TRT]   binding to output 0 coverage  binding index:  -1
[TRT]   Parameter check failed at: engine.cpp::getBindingDimensions::1977, condition: bindIndex >= 0 && bindIndex < getNbBindings()
[TRT]   binding to output 0 coverage  dims (b=1 c=1 h=1 w=1) size=4
[TRT]   INVALID_ARGUMENT: Cannot find binding of given name: bboxes
[TRT]   binding to output 1 bboxes  binding index:  -1
[TRT]   Parameter check failed at: engine.cpp::getBindingDimensions::1977, condition: bindIndex >= 0 && bindIndex < getNbBindings()
[TRT]   binding to output 1 bboxes  dims (b=1 c=1 h=1 w=1) size=4
device GPU, models/mb1-ssd.onnx initialized.
detectNet -- using ONNX model
detectNet -- maximum bounding boxes:  1
detectNet -- loaded 21 class info entries
detectNet -- number of object classes:  1
[image] loaded 'busy_street.jpg'  (1600 x 1067, 3 channels)
[TRT]   detectNet::Detect() -- ONNX -- coord (1587.109375, 533.681030) (800.269714, 534.015381)  image 1600x1067
[cuda]  cudaDetectionOverlay((float4*)input, (float4*)output, width, height, detections, numDetections, (float4*)mClassColors[1])
[cuda]     invalid configuration argument (error 9) (hex 0x09)
[cuda]     /home/ryan/jetson-inference/c/detectNet.cpp:945
[TRT]   detectNet::Detect() -- failed to render overlay
1 objects detected
detected obj 0  class #0 (BACKGROUND)  confidence=1.000000
bounding box 0  (1587.109375, 533.681030)  (800.269714, 534.015381)  w=-786.839661  h=0.334351
[TRT]   ------------------------------------------------
[TRT]   Timing Report models/mb1-ssd.onnx
[TRT]   ------------------------------------------------
[TRT]   Pre-Process   CPU   0.08599ms  CUDA   0.02302ms
[TRT]   Network       CPU  71.05159ms  CUDA  70.81036ms
[TRT]   Post-Process  CPU   0.05901ms  CUDA   0.05838ms
[cuda]  cudaEventElapsedTime(&cuda_time, mEventsGPU[evt], mEventsGPU[evt+1])
[cuda]     invalid resource handle (error 400) (hex 0x190)
[cuda]     /home/ryan/jetson-inference/build/aarch64/include/jetson-inference/tensorNet.h:499
[TRT]   Visualize     CPU   0.00000ms  CUDA   0.00000ms
[TRT]   Total         CPU  71.19659ms  CUDA  70.89177ms
[TRT]   ------------------------------------------------
[TRT]   note -- when processing a single image, run 'sudo jetson_clocks' before
to disable DVFS for more accurate profiling/timing measurements
detectnet-console:  writing 1600x1067 image to 'busy_street_output.jpg'
detectnet-console:  successfully wrote 1600x1067 image to 'busy_street_output.jpg'
detectnet-console:  shutting down...
detectnet-console:  shutdown complete

This time I used the uff model taken from the pre-trained models that come with Jetson Inference installation
Again, no bounding box on the output photo
So all it does is loop non-stop and display:
[TRT]   detectNet::Detect() -- detected object has invalid classID (879)
[TRT]   detectNet::Detect() -- detected object has invalid classID (76824)
[TRT]   detectNet::Detect() -- detected object has invalid classID (76824)
...
detectnet-console busy_street.jpg busy_street_output.jpg  --model=models/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff --class_labels=models/SSD-Mobilenet-v2/ssd_coco_labels.txt
detectNet -- loading detection network model from:
-- prototxt     NULL
-- model        models/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff
-- input_blob   'data'
-- output_cvg   'coverage'
-- output_bbox  'bboxes'
-- mean_pixel   0.000000
-- mean_binary  NULL
-- class_labels models/SSD-Mobilenet-v2/ssd_coco_labels.txt
-- threshold    0.500000
-- batch_size   1
[TRT]   TensorRT version 7.1.0
[TRT]   loading NVIDIA plugins...
[TRT]   Plugin creator registration succeeded - ::GridAnchor_TRT
[TRT]   Plugin creator registration succeeded - ::NMS_TRT
[TRT]   Plugin creator registration succeeded - ::Reorg_TRT
[TRT]   Plugin creator registration succeeded - ::Region_TRT
[TRT]   Plugin creator registration succeeded - ::Clip_TRT
[TRT]   Plugin creator registration succeeded - ::LReLU_TRT
[TRT]   Plugin creator registration succeeded - ::PriorBox_TRT
[TRT]   Plugin creator registration succeeded - ::Normalize_TRT
[TRT]   Plugin creator registration succeeded - ::RPROI_TRT
[TRT]   Plugin creator registration succeeded - ::BatchedNMS_TRT
[TRT]   Could not register plugin creator:  ::FlattenConcat_TRT
[TRT]   Plugin creator registration succeeded - ::CropAndResize
[TRT]   Plugin creator registration succeeded - ::DetectionLayer_TRT
[TRT]   Plugin creator registration succeeded - ::Proposal
[TRT]   Plugin creator registration succeeded - ::ProposalLayer_TRT
[TRT]   Plugin creator registration succeeded - ::PyramidROIAlign_TRT
[TRT]   Plugin creator registration succeeded - ::ResizeNearest_TRT
[TRT]   Plugin creator registration succeeded - ::Split
[TRT]   Plugin creator registration succeeded - ::SpecialSlice_TRT
[TRT]   Plugin creator registration succeeded - ::InstanceNormalization_TRT
[TRT]   completed loading NVIDIA plugins.
[TRT]   detected model format - UFF  (extension '.uff')
[TRT]   desired precision specified for GPU: FASTEST
[TRT]   requested fasted precision for device GPU without providing valid calibrator, disabling INT8
[TRT]   native precisions detected for GPU:  FP32, FP16
[TRT]   selecting fastest native precision for GPU:  FP16
[TRT]   attempting to open engine cache file models/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff.1.1.GPU.FP16.engine
[TRT]   loading network profile from engine cache... models/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff.1.1.GPU.FP16.engine
[TRT]   device GPU, models/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff loaded
[TRT]   Deserialize required 3207073 microseconds.
[TRT]   device GPU, CUDA engine context initialized with 3 bindings
[TRT]   binding -- index   0
-- name    'Input'
-- type    FP32
-- in/out  INPUT
-- # dims  3
-- dim #0  3 (SPATIAL)
-- dim #1  300 (SPATIAL)
-- dim #2  300 (SPATIAL)
[TRT]   binding -- index   1
-- name    'NMS'
-- type    FP32
-- in/out  OUTPUT
-- # dims  3
-- dim #0  1 (SPATIAL)
-- dim #1  100 (SPATIAL)
-- dim #2  7 (SPATIAL)
[TRT]   binding -- index   2
-- name    'NMS_1'
-- type    FP32
-- in/out  OUTPUT
-- # dims  3
-- dim #0  1 (SPATIAL)
-- dim #1  1 (SPATIAL)
-- dim #2  1 (SPATIAL)
[TRT]   INVALID_ARGUMENT: Cannot find binding of given name: data
[TRT]   binding to input 0 data  binding index:  -1
[TRT]   Parameter check failed at: engine.cpp::getBindingDimensions::1977, condition: bindIndex >= 0 && bindIndex < getNbBindings()
[TRT]   binding to input 0 data  dims (b=1 c=1 h=1 w=1) size=4
[TRT]   INVALID_ARGUMENT: Cannot find binding of given name: coverage
[TRT]   binding to output 0 coverage  binding index:  -1
[TRT]   Parameter check failed at: engine.cpp::getBindingDimensions::1977, condition: bindIndex >= 0 && bindIndex < getNbBindings()
[TRT]   binding to output 0 coverage  dims (b=1 c=1 h=1 w=1) size=4
[TRT]   INVALID_ARGUMENT: Cannot find binding of given name: bboxes
[TRT]   binding to output 1 bboxes  binding index:  -1
[TRT]   Parameter check failed at: engine.cpp::getBindingDimensions::1977, condition: bindIndex >= 0 && bindIndex < getNbBindings()
[TRT]   binding to output 1 bboxes  dims (b=1 c=1 h=1 w=1) size=4
device GPU, models/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff initialized.
W = 1  H = 1  C = 1
detectNet -- maximum bounding boxes:  1
detectNet -- loaded 91 class info entries
detectNet -- number of object classes:  91
[image] loaded 'busy_street.jpg'  (1600 x 1067, 3 channels)
[TRT]   detectNet::Detect() -- detected object has invalid classID (879)
[TRT]   detectNet::Detect() -- detected object has invalid classID (76824)
[TRT]   detectNet::Detect() -- detected object has invalid classID (76824)
[TRT]   detectNet::Detect() -- detected object has invalid classID (403)
[TRT]   detectNet::Detect() -- detected object has invalid classID (652)
[TRT]   detectNet::Detect() -- detected object has invalid classID (1513)
[TRT]   detectNet::Detect() -- detected object has invalid classID (1513)

Now I'm going to check if I'm using the depth development branch of jetson-inference

I quickly compared the c++ source of https://github.com/dusty-nv/jetson-inference/tree/depth
972cce8 in my jetson inference installation, and I see differences..
I'm going to re-install it, but this time from the depth

I made the changes to detectNet.cpp file as per 972cce8 but it didn't compile properly.
modelTypeFromPath(model) was not previously declared.
Am I missing something in this new branch?
/home/ryan/jetson-inference/c/detectNet.cpp: In member function ‘bool detectNet::init(const char*, const char*, const char*, const char*, float, const char*, const char*, const char*, uint32_t, precisionType, deviceType, bool)’:
/home/ryan/jetson-inference/c/detectNet.cpp:114:6: error: ‘modelTypeFromPath’ was not declared in this scope
if( modelTypeFromPath(model) == MODEL_ONNX )
^~~~~~~~~~~~~~~~~
/home/ryan/jetson-inference/c/detectNet.cpp:114:6: note: suggested alternative: ‘modelTypeFromStr’
if( modelTypeFromPath(model) == MODEL_ONNX )
^~~~~~~~~~~~~~~~~
modelTypeFromStr
/home/ryan/jetson-inference/c/detectNet.cpp:115:3: error: ‘mWorkspaceSize’ was not declared in this scope
mWorkspaceSize = 2048 << 20;
^~~~~~~~~~~~~~
CMakeFiles/jetson-inference.dir/build.make:97: recipe for target 'CMakeFiles/jetson-inference.dir/c/detectNet.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/c/detectNet.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/jetson-inference.dir/all' failed
make[1]: *** [CMakeFiles/jetson-inference.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Dusty, I compiled and installed Jetson Inference from Depth branch.
Here's a quick question:
If I want to use my custom mobilenet-v1 model with Jetson Inference, in the call for detectnet-camera.py do I still need to specify the --network parameter or do I omit it?
In other words which one of these two is correct?
1- python3 my-detectnet-camera.py --network=ssd-mobilenet-v1 --model=models/mb1-ssd.onnx --class_labels=models/voc-model-labels.txt
OR
2- python3 my-detectnet-camera.py --model=models/mb1-ssd.onnx --class_labels=models/voc-model-labels.txt
Thanks!!


[stable/nginx-ingress] document default value of serviceAccount.create

What this PR does / why we need it:
The serviceAccount.create value defualts to true, which is not documented.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x ] DCO signed
[ ] Chart Version bumped
[x ] Variables are documented in the README.md
[ x] Title of the PR starts with chart name (e.g. [stable/chart])

Thanks for the PR! Even though this is just a documentation change you will need to bump the version of the chart. Please bump it to 1.11.5 https://github.com/helm/charts/blob/master/stable/nginx-ingress/Chart.yaml#L3

/ok-to-test

done

/lgtm


🎨  Backup redirects file before overriding

refs #9028

if you upload a redirects file and a redirects file exists already, we backup this file to data/redirects-YYYY-MM-DD-HH-mm-ss.json
decrease chance of random test failures by not comparing date format with seconds

NOTE: We would love to use the promise support by fs-extra which was added in 3.x, but they are using native Promises and Ghost uses Bluebird. There is an open issue which discusses this topic. As long as fs-extra does not support alternative Promise libaries, we have to use promisify for fs extra calls, otherwise e.g. the catch behaviour is different.

@kevinansfield Added date-time format for redirect backup files as discussed in slack.

👍 local install is creating backups OK. I'm seeing backups created for failed uploads too - is that expected?

I'm seeing backups created for failed uploads too - is that expected?

This would make the logic more complicated, so i decided to ignore this. In worst case it would create a backup of a none changed redirects file. A failed upload should only occur if your file format is wrong.

NOTE: We would love to use the promise support by fs-extra which was added in 3.x, but they are using native Promises and Ghost uses Bluebird. There is an open issue which discusses this topic. As long as fs-extra does not support alternative Promise libaries, we have to use promisify for fs extra calls, otherwise e.g. the catch behaviour is different.

We've run into this before, there is a solution written here with a big explanation.
We already have an overrides file, I think it might be a good idea to add
global.Promise = require('bluebird') to it? cc @kirrg001

We already have an overrides file, I think it might be a good idea to add
global.Promise = require('bluebird') to it? cc @kirrg001

I considered this and read about it a lot already. There are arguments for and against doing that. See for example this comment.

I think for Ghost, where we already have an overrides.js file that lives at all the right places, it makes more sense, than it might in other cases.
For us, I think the problem is the opposite. I've wasted too much time bashing my head against a promise chain because I used a catch predicate on a promise that wasn't a bluebird promise because it came from some library somewhere and wasn't handled & "wrapped" with bluebird. We saw this same problem set us back a couple of days on the image size refactor project.
We are so accustomed to using catch predicates, and they work so well with the way our code is written, I think we would be less likely to trip ourselves if everything was bluebird than we currently are with a mix.
That's just my opinion though 😊


The Windows embedder should support multiple views or windows

The Windows embedder should be able to create multiple views, and use the correct view ID in components/callbacks.
Related: https://github.com/flutter/flutter/issues/30701
(This issue is mostly created for tracking purposes and for TODO.)

This is ongoing work. You can track progress here: https://github.com/flutter/flutter/issues/142845

Duplicate of  https://github.com/flutter/flutter/issues/143767 and please go there for progress.


Release notes don't play nicely with authenticated proxy

Microsoft PowerToys version
0.56.2
Running as admin

[ ] Yes

Area(s) with issue?
General
Steps to reproduce
Release notes window after install errors out on any machine with an authenticated proxy configured.

Machines with direct NAT to the internet work fine.
✔ Expected Behavior
Release notes to be shown
❌ Actual Behavior
Embedded browser window appears to not observe system-configured proxy settings.
Other Software
No response

Thanks for reporting it.
Does it also occur when opening from the "Welcome to PowerToys" entry in Settings?
Could you please send the /bugreport so we can take a look at the stack?

Hello,
Yep - same in Welcome -> What's New? section.
Bug report bundle added.

PowerToysReport_2022-03-09-13-19-42.zip

Sorry - a little disambiguation - this error appears when an authed proxy is configured and there is no other directly routable access to the internet in addition. I have not tried an unauthed proxy as I don't have one immediately available in my environment.

ERROR: 09:27:45.6098501
    [Method]: MoveNext [Class]: <Page_Loaded>d__7
    Exception when loading the release notes
Response status code does not indicate success: 407 (Proxy Authentication Required).
Inner exception:

Stack trace:
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at System.Net.Http.HttpClient.GetStringAsyncCore(Task`1 getTask)
   at Microsoft.PowerToys.Settings.UI.OOBE.Views.OobeWhatsNew.GetReleaseNotesMarkdown()
   at Microsoft.PowerToys.Settings.UI.OOBE.Views.OobeWhatsNew.Page_Loaded(Object sender, RoutedEventArgs e)
ERROR: 13:11:11.5526889
    [Method]: MoveNext [Class]: <Page_Loaded>d__7
    Exception when loading the release notes
Response status code does not indicate success: 407 (Proxy Authentication Required).
Inner exception:

Stack trace:
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at System.Net.Http.HttpClient.GetStringAsyncCore(Task`1 getTask)
   at Microsoft.PowerToys.Settings.UI.OOBE.Views.OobeWhatsNew.GetReleaseNotesMarkdown()
   at Microsoft.PowerToys.Settings.UI.OOBE.Views.OobeWhatsNew.Page_Loaded(Object sender, RoutedEventArgs e)
ERROR: 13:18:50.5861148
    [Method]: MoveNext [Class]: <Page_Loaded>d__7
    Exception when loading the release notes
Response status code does not indicate success: 407 (Proxy Authentication Required).
Inner exception:

Stack trace:
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at System.Net.Http.HttpClient.GetStringAsyncCore(Task`1 getTask)
   at Microsoft.PowerToys.Settings.UI.OOBE.Views.OobeWhatsNew.GetReleaseNotesMarkdown()
   at Microsoft.PowerToys.Settings.UI.OOBE.Views.OobeWhatsNew.Page_Loaded(Object sender, RoutedEventArgs e)
ERROR: 13:19:34.0992320
    [Method]: MoveNext [Class]: <Page_Loaded>d__7
    Exception when loading the release notes
Response status code does not indicate success: 407 (Proxy Authentication Required).
Inner exception:

Stack trace:
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at System.Net.Http.HttpClient.GetStringAsyncCore(Task`1 getTask)
   at Microsoft.PowerToys.Settings.UI.OOBE.Views.OobeWhatsNew.GetReleaseNotesMarkdown()
   at Microsoft.PowerToys.Settings.UI.OOBE.Views.OobeWhatsNew.Page_Loaded(Object sender, RoutedEventArgs e)

Do you have some instructions or pointers on how one might be able to replicate similar conditions?
How are you configuring this proxy?

Remove general internet access via routing (so via firewall, routing or whatever method you prefer)
Set system-wide proxy (Windows 10: Settings app, Network & Internet -> Proxy) - can be set automatically via wpad.dat or manually.
Once done, typically on the first access you're prompted for credentials, after which the machine "remembers" them.

Same problem for me at my work PC.

From the user point of view it would look extremely suspicious to ask username and password to their proxy server.
So why we need to fetch this information from our own repository? Can we integrate current state at the build time?
@crutkas what do you think?

Release notes go live after we built and fully released. This can be days apart.

Okay, so now I set a virtual machine running Win 10 with no access to internet.
This VM can use Apache 2.4 running on the host machine with proxy requiring basic authentication.
Microsoft Store and Feedback Hub could not bypass the proxy giving

@htcfreek, @dg-nx, could you please check this nightly build?
https://lncubus.github.io/
It should either go through the proxy or report that it still needs authentication.

@htcfreek, @dg-nx, could you please check this nightly build?
https://lncubus.github.io/
It should either go through the proxy or report that it still needs authentication.

Fixed now:

@jaimecbernardo ,@crutkas
the installer hashes aren't removed anymore!!

Okay, thank you.

I've created a different issue for the installer hashes here: https://github.com/microsoft/PowerToys/issues/18788

We released 0.60.1 and this is included in it! https://aka.ms/installpowertoys


Re-arrange into es6 classes and remove Polymer.

@rhalff interesting! Learn anything from this?

Sorry, I meant to merge it into my own master branch as a conversion step and definitely did not intend to offer it to the-grid/master within this state :)


Bump up to .NET Framework 4.6.2

.NET Framework 4.6 has gone out of support on April 26, 2022. I propose we bump up to target .NET Framework 4.6.2. The question is should we do this before or after the 3.4.0-final release. I'm also planning on bumping the DLR to at least 4.5.2 (since the dev pack for 4.5 is no longer available in VS2022 - see https://github.com/IronLanguages/ironpython3/issues/1371).

I don't have a strong opinion on this, but if you have time, bumping it before 3.4-final has my slight preference. It decreases the chance of having to bump it up again when some third party lib needs to be included (like SQLite — not that I advocate for any such move for 3.4, but just in case.)


update sha256 for font-fontawesome

Sorry about that, I provided a shasum for an alternate download of the file. This one should work better.

Thank you for the fix.


hex

would be great if it exposed a .hex property. yes, it's in the faq that hsl is better. but i want hex. that's what my app expects.

Here are 2 ways you could get from HSL to HEX:

Using parse-color
Rolling your own converter - gist

@rkunev i get it's possible to convert. just saying it'd be easier if this library did it without adding a dependency or 40 lines of code.

Sure, I understand, but users who expect an HSL color model will have to download and execute extra code that they don't need at all.


Error with detached element

Hi,
Thanks for the plugin!
An error I encountered: I use scrollActive on an element which is in a tab. When I switch tabs and scroll, I get the following error:
vue-scrollactive.js?ce7a:1088 Uncaught TypeError: Cannot read property 'offsetHeight' of null
    at eval (vue-scrollactive.js?ce7a:1088)

which is this line:
var isScreenBeforeSectionEnd = window.pageYOffset < _this.getOffsetTop(target) - _this.offset + target.offsetHeight;

I guess the inactive tab is detached by the framework I use (Quasar) but not destroyed (because I use the keep-alive property of tabs, which keeps the rendered HTML in memory), so scrollActive is still listening to events and doing things. Not sure if you can fix it without me worrying about it, or if I should call some method to put it on hold while the tab is inactive?
Thank you.

Hello, are you sure you're using the latest version of the plugin? Because the line you're referring to contains this check right above:
if (!target) return;
const distanceFromTop = this.scrollContainer.scrollTop || window.pageYOffset;
const isScreenPastSection = distanceFromTop >= this.getOffsetTop(target) - this.offset;
const isScreenBeforeSectionEnd = distanceFromTop
  < (this.getOffsetTop(target) - this.offset) + target.offsetHeight;

So it's impossible for target to be null since it would just return inside the condition. Also the code you pasted is slightly different since it's checking window.pageYOffset instead of this.scrollContainer.scrollTop (which was implemented in one of the latest updates).
Try to update the plugin and check it again, I'm pretty sure it should solve the issue.

Right, I was still in 0.6, fixed in 0.8, thank you!


IS-108 Fixes for backup location for metadata download

Closes #108

Explain why a directory itself is not created but only its parent directories.

No, all directories are created. However, no backup file is created. This is done by OpenSAML's metadata resolver.


Whether Deepspeed-Domino is compatible with other parallel strategy?

About this work: https://arxiv.org/pdf/2409.15241
I am curious if the Domino implementation is compatible with sequence-parallel or ring-attention(context parallel),
Domino's input and weight split strategy may not be applied in sequence-parallel?
Thanks!
@GuanhuaWang

Hi @Andy666G
Thanks for the interesting question.  Seq-parallel is on our roadmap, and I think it is possible that domino is compatible with seq-parallel or context-parallel. Feel free to shoot me an email at<EMAIL_ADDRESS>so that we can set up a meeting and discuss on this line. Thanks!


Add parsing of contract return values.

Description
Currently the SDK does not offer a way to deserialize/parse the return value from a contract execution. It could be useful to have such a function.

I'm working on this, almost done with the receive functions and I am working on adding init functions. It's modeled as two separate functions deserialize_return_value_receive and  deserialize_return_value_init because the init functions does not have a function name in the schemas.


Core Metadata UpdateDevice refactor and unit testing

Fix #1485
Refactors Core Metadata UpdateDevice function to extract
logic into an "operator" function and adds corresponding unit tests.

Codecov Report

Merging #1501 into master will increase coverage by 0.7%.
The diff coverage is 71.71%.

@@            Coverage Diff            @@
##           master    #1501     +/-   ##
=========================================
+ Coverage   18.84%   19.55%   +0.7%
=========================================
  Files          89       90      +1
  Lines        9100     9133     +33
=========================================
+ Hits         1715     1786     +71
+ Misses       7235     7195     -40
- Partials      150      152      +2

Impacted Files
Coverage Δ

internal/core/metadata/rest_device.go
1.94% <0%> (+0.12%)
:arrow_up:

internal/core/metadata/operators/device/update.go
92.2% <92.2%> (ø)

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 a478f95...11b5a6c. Read the comment docs.


azure cli latest version fails with az aks create command

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az aks create
Errors:
The command failed with an unexpected error. Here is the traceback:
cannot import name 'Iterable' from 'collections'<EMAIL_ADDRESS>Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 556, in execute
    self.commands_loader.load_arguments(command)
  File "/usr/local/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/azure/cli/core/__init__.py", line 517, in load_arguments
    self.command_table[command].load_arguments()  # this loads the arguments via reflection
  File "/usr/local/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 313, in load_arguments
    super(AzCliCommand, self).load_arguments()
  File "/usr/local/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/knack/commands.py", line 104, in load_arguments
    cmd_args = self.arguments_loader()
  File "/usr/local/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 125, in arguments_loader
    op = self.get_op_handler(self.op_path)
  File "/usr/local/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
    handler = import_module(mod_to_import)
  File<EMAIL_ADDRESS>line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/monojitdattams/.azure/cliextensions/aks-preview/azext_aks_preview/custom.py", line 44, in <module>
    from tabulate import tabulate  # pylint: disable=import-error
  File "/usr/local/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/tabulate.py", line 16, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections'<EMAIL_ADDRESS>

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az aks create --name {} --resource-group {} --kubernetes-version {} --location {} --vnet-subnet-id {} --enable-addons {} --service-cidr {} --dns-service-ip {} --node-vm-size {} --node-count {} --max-pods {} --service-principal {} --client-secret {} --network-plugin {} --network-policy {} --nodepool-name {} --vm-set-type {} --generate-ssh-keys --enable-aad --aad-admin-group-object-ids {} --aad-tenant-id {} --attach-acr {} --workspace-resource-id {} --dns-name-prefix {}

Expected Behavior
Environment Summary
macOS-12.0.1-x86_64-i386-64bit, Darwin 21.1.0
Python 3.10.0
Installer: HOMEBREW

azure-cli 2.30.0

Extensions:
dev-spaces 1.0.6
connectedk8s 1.2.0
azure-iot 0.11.0
azure-firewall 0.12.0
arcdata 1.1.1
dev-spaces-preview 0.1.6
k8s-extension 1.0.0
aks-preview 0.5.42
azure-devops 0.22.0
appservice-kube 0.1.21
virtual-wan 0.2.10
customlocation 0.1.3
application-insights 0.1.14

Additional Context

route to service team

If possible to expedite, as it is blocker for me and I have series of
workshops lined up next week on AKS and Arc on AKS.
For both we are heavily dependent on AZ CLI.
Thanks in advance!
On Thu, Nov 18, 2021 at 4:31 AM yonzhan @.***> wrote:

route to service team
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Azure/azure-cli/issues/20401#issuecomment-972228075,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AASI6PXQTZ3IZOVRI6ZBZNDUMQX4NANCNFSM5IH7EE2A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Monojit Datta
Mob1:9831445901 | Mob2:9903935901
B: https://monojitd.codemongers.net/ https://codemongers.wordpress.com/
G: https://github.com/monojit18
L: https://www.linkedin.com/in/monojit-datta/

Same error here for another aks command: https://github.com/Azure/azure-cli/issues/20410

Yes true, same error.
Actually this is a bigger problem....I can create the cluster from Portal
also, but how to do this context switch :(
Surprisingly, things are working from Azure CLoud Shell, till now!
On Thu, Nov 18, 2021 at 3:14 PM Stephen Pope @.***>
wrote:

Same error here for another aks command: #20410
https://github.com/Azure/azure-cli/issues/20410
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Azure/azure-cli/issues/20401#issuecomment-972700016,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AASI6PQ635NSNWAFYZLI4HLUMTDIHANCNFSM5IH7EE2A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Monojit Datta
Mob1:9831445901 | Mob2:9903935901
B: https://monojitd.codemongers.net/ https://codemongers.wordpress.com/
G: https://github.com/monojit18
L: https://www.linkedin.com/in/monojit-datta/

Edit  /usr/local/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/tabulate.py
and replace
if python_version_tuple() >= ("3", "3", "0"):     from collections.abc import Iterable else:     from collections import Iterable
with :
try:     from collections.abc import Iterable except ImportError:     from collections import Iterable

Sorry for the inconvenience. From the error message, the error is caused by the incompatibility between python3.10 and the current version of the installed site-package tabulate.  You can check the installed version of tabulate by command pip show tabulate.
To mitigate this problem, please choose one of the options below
Option 1:
Update tabulate by pip install tabulate==0.8.9 -U.
Option 2:
Use python3.8 instead.

Duplicate of #20348


134 add news section

Closes #134

Looking good already, feel free to merge when tests are passing


Set up a username

Context & versions
https://dev.gov.tools/proposal_discussion
Steps to reproduce

Click to propose a governance action
Then a pop up message appears asking for a username
Click Proceed with username

Actual behavior

Expected behavior

The Popup is not accurate in width
Also there is no label under the field.
Crosscheck if distance from edges is correct
Let's add a proper Subtext

@ValMBO The modal's width is scaled depending on the screen size according to the MUI standard. As for the input that does not have a label, this is the core MUI label. And in MUI there is no variant of the input with a label as in the design. What text should we add to the modal to clarify that actions require a username?

@ValMBO The text "Hey, setup your username" needs to be improved.


Add package-lock.json or .npmrc suppressing local generation of package-lock.json

Just had all tests of a branch version fail because I forgot to delete my local package-lock.json before npm installing the branch version.
This pit could be avoided by either adding a package-lock.json, or by adding a .npmrc with package-lock=false.

@johannes-vogel I think we decided that we wouldn't be using a package-lock.json atm. Is this correct? In that case we could add the mentioned .npmrc that disables the package-lock?

Just noticed that .npmrc is currently also .gitignored:
https://github.com/cap-js/cds-adapter-graphql/blob/30ad07b9cdfbfe3f091129a176dbff08b02ed8f6/.gitignore#L6
So I "fixed" my problem by adding a local .npmrc, which will only work until the next fresh git clone.

You could add instructions for local testing to README.md or CONTRIBUTING.md, and mention this as a hint.


Correct name of TWILIO_VERIFY_SERVICE_SID

This is a super minor change and I'm going to force merge.


Fix route in distance editor doesn't load after fresh sign in

Details

The route coordinate is only saved locally retrieved from GetRoute API. When we log out, the coordinate data is lost, so reopening the distance page won't show the coordinate. This PR fix it by refetching the routes when the routes is empty.
Fixed Issues

$ https://github.com/Expensify/App/issues/44156
PROPOSAL: https://github.com/Expensify/App/issues/44156#issuecomment-2208774179
Tests

Same as QA Steps

[x] Verify that no errors appear in the JS console

Offline tests

Same as QA Steps
QA Steps

Open a workspace chat
Submit a distance request
Log out and log in back
Open the submitted distance request transaction thread
Press the "Distance" field
Verify the map shows the green line route

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native

https://github.com/Expensify/App/assets/50919443/28375fbe-49d3-4bfc-a4bd-46ca86174ecd

Android: mWeb Chrome

iOS: Native

https://github.com/Expensify/App/assets/50919443/13877fab-36ba-4540-a0de-a713a40241f8

iOS: mWeb Safari

https://github.com/Expensify/App/assets/50919443/dd5ec90b-a680-4380-9ca1-ac3a758e94d2

MacOS: Chrome / Safari

https://github.com/Expensify/App/assets/50919443/48eec2cd-158f-472f-9b52-eeca1be9cc4f

MacOS: Desktop

https://github.com/Expensify/App/assets/50919443/5533d6f8-268a-47ff-a27e-4d71a2d03497

My android mWeb doesn't show the map at all.

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.0.7-3 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀

platform
result

🤖 android 🤖
failure ❌

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Suggestion/query: is there an opposite of humanize?

This module is great for converting file sizes to human readable numbers. But what if I want to go the other way? What if I want to allow my users to specify human-readable units in my configuration file? I need some way to read that back in to machine-readable format.
Is there an opposite of humanize?

Please see https://github.com/jmoiron/humanize/issues/173.

@danj2k dateutil is pretty popular dependency for date parsing. It works pretty well. I made a CLI for it and used that recently to parse URL paths / file names into dates:

https://github.com/chapmanjacobd/library/blob/main/xklb/text/dates.py
https://github.com/chapmanjacobd/us_visa_statistics/blob/f6017ab82483ab9eb0a232e2d6df7cd83ed9019e/.github/workflows/immigrant.yaml#L30

Human size to bytes is pretty simple too:

https://github.com/chapmanjacobd/library/blob/44d0bee3d7ee30cbbf88fe8421740c2f3afd09d5/xklb/utils/nums.py#L72
https://github.com/chapmanjacobd/computer/blob/main/bin/human_size_sum.py


GetCountryFromIP fails when running locally

If you're running locally and using IPv6 then the call to GeoLocation.GetCountryFromIP will fail since the IP will be an empty string.
I changed this to:
IPAddressCountry = string.IsNullOrEmpty(userIP) ? null : GeoLocationHelper.GetCountryFromIP(userIP),

To get everything running locally.
Note that this was for the MyNotes example.

Thanks @benfoster I have checked this in too.


Problems with Disney: Different sites, different rules (3 of 2 :-)

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.06.05. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[xx ] I've verified and I assure that I'm running youtube-dl 2017.06.05

Before submitting an issue make sure you have:

[ x] At least skimmed through README and most notably FAQ and BUGS sections
[x ] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[ x] Bug report (encountered problems with youtube-dl)
[x ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

Disney has the same show available from different URL's and different sites.
Star vs the forces of evil works from Disney XD:
http://watchdisneyxd.go.com/star-vs-the-forces-of-evil
It fails from Disney Channel:
http://watchdisneychannel.go.com/star-vs-the-forces-of-evil-disney-channel
keybounceMBP:Disney michael$ ./yt-dl -v http://watchdisneychannel.go.com/star-vs-the-forces-of-evil-disney-cha
nnel

[debug] System config: []
[debug] User config: ['-k', '-o', '%(title)s-%(timestamp)6i.%(ext)s', '-f', '\nbest[ext=mp4][height>431][height<=576]/\nbestvideo[ext=mp4][height=480]+bestaudio[ext=m4a]/\nbest[ext=mp4][height>340][height<=431]/\nbestvideo[ext=mp4][height>360][height<=576]+bestaudio/\nbest[height>340][height<=576]/\nbestvideo[height>360][height<=576]+bestaudio/\nbestvideo[height=360]+bestaudio/\nbest[ext=mp4][height>=280][height<=360]/\nbest[height<=576]/\nworst', '--ap-mso', 'Dish', '--ap-username', 'PRIVATE', '--ap-password', 'PRIVATE', '--write-sub', '--write-auto-sub', '--sub-lang', 'en,enUS,en-us', '--sub-format', 'ass/srt/best', '--convert-subs', 'ass', '--embed-subs', '--recode-video', 'mp4', '--mark-watched', '--download-archive', 'downloaded-videos.txt']
[debug] Custom config: []
[debug] Command-line args: ['-o', '%(series)s/s%(season_number)02d-e%(episode_number)02d-%(title)s.%(ext)s', '-v', 'http://watchdisneychannel.go.com/star-vs-the-forces-of-evil-disney-channel']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.05
[debug] Python version 3.6.1 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4, rtmpdump 2.4
[debug] Proxy map: {}
[Go] star-vs-the-forces-of-evil-disney-channel: Downloading webpage
[Go] SH553862036: Downloading JSON metadata
[download] Downloading playlist: Star vs the Forces of Evil
[Go] playlist Star vs the Forces of Evil: Collected 6 video ids (downloading 6 of them)
[download] Downloading video 1 of 6
[Go] vdka3862755: Downloading JSON metadata
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/michael/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/Users/michael/bin/youtube-dl/youtube_dl/__init__.py", line 465, in main
  File "/Users/michael/bin/youtube-dl/youtube_dl/__init__.py", line 455, in _real_main
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1897, in download
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 772, in extract_info
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 963, in process_ie_result
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 833, in process_ie_result
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 761, in extract_info
  File "/Users/michael/bin/youtube-dl/youtube_dl/extractor/common.py", line 433, in extract
  File "/Users/michael/bin/youtube-dl/youtube_dl/extractor/go.py", line 95, in _real_extract
IndexError: list index out of range
keybounceMBP:Disney michael$

The same issue and error: Sofia the First works from Disney Junior:
http://watchdisneyjunior.go.com/sofia-the-first
And fails from Disney Channel:
http://watchdisneychannel.go.com/sofia-the-first-disney-channel
keybounceMBP:Disney michael$ ./yt-dl -v http://watchdisneychannel.go.com/sofia-the-first-disney-channel
[debug] System config: []
[debug] User config: ['-k', '-o', '%(title)s-%(timestamp)6i.%(ext)s', '-f', '\nbest[ext=mp4][height>431][height<=576]/\nbestvideo[ext=mp4][height=480]+bestaudio[ext=m4a]/\nbest[ext=mp4][height>340][height<=431]/\nbestvideo[ext=mp4][height>360][height<=576]+bestaudio/\nbest[height>340][height<=576]/\nbestvideo[height>360][height<=576]+bestaudio/\nbestvideo[height=360]+bestaudio/\nbest[ext=mp4][height>=280][height<=360]/\nbest[height<=576]/\nworst', '--ap-mso', 'Dish', '--ap-username', 'PRIVATE', '--ap-password', 'PRIVATE', '--write-sub', '--write-auto-sub', '--sub-lang', 'en,enUS,en-us', '--sub-format', 'ass/srt/best', '--convert-subs', 'ass', '--embed-subs', '--recode-video', 'mp4', '--mark-watched', '--download-archive', 'downloaded-videos.txt']
[debug] Custom config: []
[debug] Command-line args: ['-o', '%(series)s/s%(season_number)02d-e%(episode_number)02d-%(title)s.%(ext)s', '-v', 'http://watchdisneychannel.go.com/sofia-the-first-disney-channel']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.05
[debug] Python version 3.6.1 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4, rtmpdump 2.4
[debug] Proxy map: {}
[Go] sofia-the-first-disney-channel: Downloading webpage
[Go] SH553867121: Downloading JSON metadata
[download] Downloading playlist: Sofia the First
[Go] playlist Sofia the First: Collected 5 video ids (downloading 5 of them)
[download] Downloading video 1 of 5
[Go] vdka3869184: Downloading JSON metadata
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/michael/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/Users/michael/bin/youtube-dl/youtube_dl/__init__.py", line 465, in main
  File "/Users/michael/bin/youtube-dl/youtube_dl/__init__.py", line 455, in _real_main
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1897, in download
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 772, in extract_info
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 963, in process_ie_result
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 833, in process_ie_result
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 761, in extract_info
  File "/Users/michael/bin/youtube-dl/youtube_dl/extractor/common.py", line 433, in extract
  File "/Users/michael/bin/youtube-dl/youtube_dl/extractor/go.py", line 95, in _real_extract
IndexError: list index out of range
keybounceMBP:Disney michael$

(NB: In both cases, there are more episodes on Junior/XD, so fetching from there is preferable anyways.)

Dish MSO is not supported.

@dstftw, he's using #12000. I get the same results when I use my MSO from #12641.

Yea, the dish access works really really well. Only place it doesn't work is Science Channel :-) .

It appears to be an issue with the site.  If I look at the playlist gathered and replace the URLs (watchdisneyjunior with watchdisneychannel), they come up in the browser.


general buy role function

objective

To make possible to buy arbitrary roles with arbitrary price

we will use badge to represent roles.


fix(focus-states): fixed some focus state issues

Overview

Added focus state to Card link
Added background color to focused element in Content Switcher
Added underline to focused item in Dropdown

Fixes:
https://github.ibm.com/Bluemix/design-system-website/issues/1057
https://github.ibm.com/Bluemix/design-system-website/issues/1054
https://github.ibm.com/Bluemix/design-system-website/issues/1051

@asudoh Yes, that change happened because of Prettier. Do you want me to revert it?

@marijohannessen Yes - I know it’d be an extra effort, but it’s always a good practice to keep commits/PRs dedicated to the original purpose, for better tracking of changes. It means that we can create another commit/PR if we want formatting change. Thanks alot! 🙂

@marijohannessen Yes - I know it’d be an extra effort, but it’s always a good practice to keep commits/PRs dedicated to the original purpose, for better tracking of changes. It means that we can create another commit/PR if we want formatting change. Thanks alot!

I thought we were using the same Prettier settings to avoid this but I guess I'm wrong.
@asudoh is absolutely right and I agree but I think for now it's fine if @marijohannessen makes comments on her code of the actual changes to relevant to the PR.

I reverted it back to how it was, thanks!


Support for shadow dom

When using this Skeleton loader inside Shadow DOM, styles are being attached to head. As Shadow DOM encapsulates styles we are not able to use this. It would be great if can add some parameter to address this issue.

I'll look into this but I'm not familiar with Shadow DOM. If you could provide a CodeSandbox or code snippet that would be great.


[improvement](routine load)add a method to quit before guard lock

Proposed changes
When routine load`s workload is heavy, sometimes hangs at guard lock.
Issue Number: close #xxx

Add a method to avoid an invalid lock being entered.

run buildall


Support using Internal.AspNetCore.Sdk as an MSBuild SDK

Add Microsoft.AspNetCore.BuildTools.ApiCheck as an external dependency
Move the global.json files temporarily to avoid loading the wrong version of Internal.AspNetCore.Sdk

Resolves https://github.com/aspnet/Coherence-Signed/issues/1117

Merging to unblock the build.


"Cannot read property '0' of undefined" on repeated Vector.appendAll

This code:
import { Vector } from 'prelude.ts';

let v = Vector.ofIterable(Array(15).fill(1));

for (let i = 0; i < 100; i += 1) {
  console.log(i);
  v = v.appendAll(Array(1000).fill(1));
}

Will fail after 86 iterations with:
TypeError: Cannot read property '0' of undefined
    at Vector.getLastNode (node_modules/prelude.ts/src/Vector.ts:279:31)
    at Vector.appendAllArrays (node_modules/prelude.ts/src/Vector.ts:457:34)
    at Vector.appendAll (node_modules/prelude.ts/src/Vector.ts:419:25)

Simpler test case:
import { Vector } from 'prelude.ts';

Vector.ofIterable(Array(86015).fill(1)).appendAll([1]);

Thank you for the report! I'll look into this tonight. You're not really lucky with prelude bugs.. note that I just added a fuzzer test on master exactly to detect such issues.

I released 0.7.13 with the fix! Thank you for the patience and the detailed bug reports!


[Bug]: Live doesn't work

What happened?
When a field (a native select) value is set, the select-tree component does not function and is always disabled forever.
How to reproduce the bug
Forms\Components\Section::make('Store Info')->schema([
    Forms\Components\Select::make('store_code')
        ->options(Store::query()->pluck('name', 'code'))
        ->live()
        ->required()
        ->placeholder('Select Store'),
    SelectTree::make('categories')
        ->relationship('categories', 'name', 'parent_id')
        ->withCount()
        ->independent(false)
        ->enableBranchNode()
        ->searchable()->noSearchResultsMessage('No categories found')
        ->placeholder(
            fn(Get $get): string => !$get(
                'store_code'
            ) ? 'Select Store First..' : 'Select Categories..'
        )
        ->disabled(fn(Get $get): bool => empty($get('store_code'))),
])->columns(),

Package Version
3.1.12
PHP Version
8.1
Laravel Version
10.10
Which operating systems does with happen with?
Linux
Notes
No response

@omarabdelaz1z I just released https://github.com/CodeWithDennis/filament-select-tree/releases/tag/v3.1.13 that should fix it.

Thanks alot!!


News classifer project is not complete

Please finish this off, as not covered in videos or anything
public class ConsumeModel
{
//TODO
public static string Predict(string newsTitle) => "UNKNOWN";
}

I managed to work it out
public class ConsumeModel
    {
        private static Lazy<PredictionEngine<ModelInput, ModelOutput>> PredictionEngine = new Lazy<PredictionEngine<ModelInput, ModelOutput>>(CreatePredictionEngine);

        public static string MLNetModelPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Model", "NewsClassificationModel.zip");

        // For more info on consuming ML.NET models, visit https://aka.ms/mlnet-consume
        // Method for consuming model in your app
        public static ModelOutput Predict(string newsTitle)
        {
            ModelOutput result = PredictionEngine.Value.Predict(new ModelInput() { Title = newsTitle });
            return result;
        }

        public static PredictionEngine<ModelInput, ModelOutput> CreatePredictionEngine()
        {
            // Create new MLContext
            MLContext mlContext = new MLContext();

            // Load model & create prediction engine
            ITransformer mlModel = mlContext.Model.Load(MLNetModelPath, out var modelInputSchema);
            var predEngine = mlContext.Model.CreatePredictionEngine<ModelInput, ModelOutput>(mlModel);

            return predEngine;
        }

    }

Hi,
The TODO is actually left as an exercise for the student, since the principle is covered in earlier sections.
Glad you managed to work it out!
Regards
Karl

Hi,
The TODO is actually left as an exercise for the student, since the principle is covered in earlier sections.
Glad you managed to work it out!
Regards
Karl


Clarification on “Requests are logged on a best-effort basis.”

What does this line mean?
Requests are logged on a best-effort basis.
Does this mean that not all requests will be logged? i.e. Is this not auditing?

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

ID: 30ebd39b-ae34-4988-5694-09acd19693e8
Version Independent ID: c36c476f-a7c3-1f68-7ef6-1a7e3664bbe1
Content: Azure Storage Analytics logging
Content Source: articles/storage/common/storage-analytics-logging.md
Service: storage
Sub-service: common
GitHub Login: @normesta
Microsoft Alias: normesta

@waynehoggett - thanks for asking. It led me to add some clarifying text to the document. The reference to "best effort" means that the completeness and timeliness of log delivery is not guaranteed. Most requests result in a log record, but how complete, the exact timing of log delivery, and even if a log record appears at all is not exact. "Best effort delivery" is a term that appears elsewhere in technical documentation and I believe that is what inspired it's use in this document. I've added some clarifying text and that text should appear live later today. Thanks again.
#please-close


[6.1] AST: Workaround for rdar://139469939

6.1 cherry-pick of https://github.com/swiftlang/swift/pull/77786.
This unconditional assert was added recently so it started failing in noassert toolchains. I'll have a proper fix soon.

@swift-ci Please test


Generate author pages

I think it's about time we generate dynamic pages for authors and blog post categories. We can have a feature flag system to control which of these are created, as well as an easy way to support setting the templates. We could also provide built-in pagination support for blog posts as a part of this rework.
See sister issue https://github.com/hydephp/publications/issues/15 which tracks category pages

Moved from https://github.com/hydephp/develop/issues/1499 to here


adding a simple score page

I remember that the official Arcaea server has a function for users to check their own scores / results through the web, and so does repo has a simular function by the "Single User Score" page. However, currently that page is only available with the admin account, which leads other users unavailable to check their scores through the web or ask to the server admin all the time when they want to know their scores. It would be nice if there's a simple score checking page such as "[server ip address]:[port]/userscore" or something, and lets users check their scores by entering the username. Not necessary, but it would also be a good function if it is possible to let people know the exact scores, and other people's ranks about the global ranking (idk the exact name, I'm talking about the rank that is shown next to the username in the client when logged in). I'll wait for your replies, thanks for reading.

In a short word, it has been in progress, but it may take a very large amount of time and effort.
I have given some APIs for users and admins to get some information from the server, including users' scores. You can use them although API may not be stable in futher's commit. So, if you really need it now, you can implement a frontend and call APIs to get data.
For backend webpages, I have discarded it and only do some little changes now if needed. I am considering another admin frontend or another way. But unfortunately, it seems to be not easy. The progress in this part is quite slow.


Incorporate vault text

Nice work!

Automate starting llama server
Incorporate the Obsidian vault text? The llama-hub has a loader that could be useful?
https://github.com/emptycrown/llama-hub/blob/main/loader_hub/obsidian/base.py

Seems like LangChain might be the way?
https://docs.langchain.com/docs/

I'm new to this domain but thinking through briefly, exposing the vault content for consumption by a model seems like quite a large problem with considerable performance implications. Exposing contents presumably via obsidian APIs, mapping/annotating contents+entities, caching(?), preparing for consumption, implementing langchain, configuration, tests, benchmarking... Probably out of scope for what this repo is, but an important problem perhaps other projects are a bit further along, I will do some research

@jakepog, @replete

I've considered maybe using a JS wrapper for LLAMA to integrate it with Obsidian.
But thinking about creating a separate Python service with API for this case, and not sure that it will be a good idea to run it automatically.

That was the first thing I've tried to do with local LLM :)
But there still are a few problems with context length, which is insufficient to properly post-process data.
I used LangChain for this around one month ago. Didn't have some success in this area.

Maybe in the near time will have some time to experiment with this.
There can be an even better way to implement this using LangChain JS, but not sure, still didn't have time to investigate this.

This might be interesting to you @jakepog: https://shishirpatil.github.io/gorilla/


Add Manila Provisioner binary to Makefile clean

What this PR does / why we need it:
Adds manila-provisioner to make clean
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Release note:

NONE

/ok-to-test
/approve

/lgtm


Add const versions of getChild() and getString()

Two small additions, and thanks for making sexpresso available!

Thank you very much!


[REFACTORING] Make sure to use project message bus instead of application message bus

The MessageBus is used to fire events but these should be restricted to the current project not the full IDEA application.
project.getMessageBus();

The difference between `Application.getMessageBus()` and `Project.getMessageBus()`
in IntelliJ IDEA lies in their scope and usage:

1. **Application.getMessageBus()**:
   - This message bus is associated with the entire IntelliJ IDEA application.
   - It is used for application-wide events and communication.
   - Services and components that need to communicate across the entire application should use this message bus.

2. **Project.getMessageBus()**:
   - This message bus is associated with a specific project within IntelliJ IDEA.
   - It is used for project-specific events and communication.
   - Services and components that need to communicate within the context of a single project should use this message bus.

In summary, `Application.getMessageBus()` is for global communication across the entire application, while `Project.getMessageBus()` is for communication within a specific project.

To add my stone : there is a com.devoxx.genie.ui.util.NotificationUtil class so shouldn't we refactor all those calls in that Util class in some kind of connect() method?

@stephanj  i'm currently looking at this one i feel that panel/listener get connection and suscribing should implement a dispose method
I suggest to create a MessageBusUtil class with connect, suscribe and publish method at Project level (and not Application as initially posted), i'm looking at this

Great, thanks and happy holidays! 🎄🍾🥂


feat: add typesafe client side env variables

Add typesafe client side env variables

[x] I reviewed linter warnings + errors, resolved formatting, types and other issues related to my work
[x] The PR title follows the convention we established conventional-commit
[x] I performed a functional test on my final commit

Implements https://github.com/t3-oss/create-t3-app/issues/195
Separates client and server env schemas. Also added an additional check to ensure client env variable names start with NEXT_PUBLIC_.

I would kind of like them to be part of the same env schema when they reach the developer. Example:
// client envschema
// define and export env schema

// server envschema
// define and export env schema

// env validator
// validate client
// validate server
// merge and export validated env-vars

// usage
import { env } from "envpath";

const pusherKey = env.NEXT_PUBLIC_PUSHER_KEY; // begins with next_public so we know its client

const dbUrl = env.DATABASE_URL; // doesn't begin with next_public so we know its server

Or would this be confusing that you write the schemas in two separate files but import only a single?

I would kind of like them to be part of the same env schema when they reach the developer. Example:
// client envschema
// define and export env schema

// server envschema
// define and export env schema

// env validator
// validate client
// validate server
// merge and export validated env-vars

// usage
import { env } from "envpath";

const pusherKey = env.NEXT_PUBLIC_PUSHER_KEY; // begins with next_public so we know its client

const dbUrl = env.DATABASE_URL; // doesn't begin with next_public so we know its server

Or would this be confusing that you write the schemas in two separate files but import only a single?

I think merging the schemas makes sense for importing env vars server-side because both public and server-only should be available in that case. It would be cumbersome to have to import 2 different env files in a API route file, for example. I can make the changes to do this.
As for client only env vars, turns out you cannot destructure or dynamically access properties in process.env client side, so this validation does not work client side.
const _clientEnv = clientEnvSchema.safeParse(process.env);
export const env = _clientEnv

//usage
import {env} from "clientEnvPath"

// process.env is empty

We can still use this validation to verify env vars at build time and server-side along with the server env vars however, so no concerns there.
The user will either have to resort to accessing client-side env vars explicitly in process.env like process.env.NEXT_PUBLIC_foo or define and export an env object alongside the schema in order to get autocompletion like so:
// client-env-schema.mjs
import { z } from "zod";

export const envSchema = z.object({
  // Specify your environment variables schema here
  // Be sure to name your environment variables with the prefix "NEXT_PUBLIC_"
  NEXT_PUBLIC_foo: z.string(),
});

// client-env.mjs
import {envSchema} from 'client-env-schema.mjs'
export const env = envSchema.parse({
  NEXT_PUBLIC_DDDD: process.env.DDDD
})

//usage
import {env} from 'client-env.mjs'
...

I'd like some thoughts on which approach is better here.

My main concern is we will have 4 different files and it will be confusing what goes where, as well as there being 4 files + the actual .env seems kinda "bloated"?

My main concern is we will have 4 different files and it will be confusing what goes where, as well as there being 4 files + the actual .env seems kinda "bloated"?

Spent some time playing with different approaches.
I could not find a way to validate both server and client variables in the same file while being able to import client-side.
Server variables don't show up in the browser so validation naturally breaks there. Wrapping the server var validation in a
if (typeof window === "undefined") will work on the client, but messes up the types on the server such that server vars will appear as string | undefined.
Instead, we can put both schemas in the same file so that the user only needs to edit a single file and reduce any confusion. Then, have a client-env.mjs and a server-env.mjs for validating and importing client and server env vars, respectively. server-env.mjs would have the merged client and server env vars.
So it would be 3 files under an env directory.

Spent some time playing with different approaches.
I could not find a way to validate both server and client variables in the same file while being able to import client-side. Server variables don't show up in the browser so validation naturally breaks there. Wrapping the server var validation in a if (typeof window === "undefined") will work on the client, but messes up the types on the server such that server vars will appear as string | undefined.
Instead, we can put both schemas in the same file so that the user only needs to edit a single file and reduce any confusion. Then, have a client-env.mjs and a server-env.mjs for validating and importing client and server env vars, respectively. server-env.mjs would have the merged client and server env vars.
So it would be 3 files under an env directory.

Yep. Came to the same conclusion. Let's see how that looks

Hotfixing some tRPC stuff so my bad for the format errors and stuff. Sorry, wanted to get the fix out asap

Is this ready to be merged now?

Is this ready to be merged now?

I think so. @juliusmarminge I've updated my changes to include what you have in your example https://github.com/juliusmarminge/trpc-rqv3


TODO

pip install

sphinx>=2.0
breathe>=4.13.0
exhale
sphinx_rtd_theme

sphinx-quickstart

Tweak quick start files to add in exhale config

make html

push to RTD?

Step 1, Make auto install/check available
Step 2 & 3, run once locally commit to this repo
Step 4, Update CMake in main fgpu2 dev repo to target this (quickstart gets make.bat and makefile so simple CMake command make html should suffice)
conf.py will need to be updated to direct to doxygen output.
  breathe_projects = {
    "FLAME GPU 2": "./xml"
  }

This is now working (besides pushing to RTD)


How to set circleIndicator position?

I tried to add circleIndicator to AutoScrollViewPager,But it doesn't work.
ImagePagerAdapter imagePagerAdapter = new ImagePagerAdapter(getActivity(),arrayList).setInfiniteLoop(true);
viewPager.setAdapter(imagePagerAdapter);
defaultIndicator.setViewPager(viewPager);

Did you set OnPageChangeListener to AutoScrollViewPager ?(https://github.com/ongakuer/CircleIndicator/issues/13)

@ongakuer It works now,but app:app:ci_drawable_unselected property could not be found #6

@zoumy https://github.com/ongakuer/CircleIndicator/pull/6#issuecomment-97640167