docker-compose up static files cannot be found by wsgi nor nginx

Steps to reproduce:
Using the docker CE in windows, version Version 17.03.1-ce-win12

create a project using this template whitenoise=n, docker=y, windows=y, pycharm=y, postgres=9.6,js_task_runner=none,celery=y, opbeat=n, sentry=n, timezone=America/Panama, mailhog=n, heroku=n
rename env.example to .env
docker-compose build
docker-compose up

Static fields are not served, collectstatic is working and copies files to the destination dir
however only templates are served.

@chopanpma, did you opted out for Let's Encrypt?

Yes, use_letsencript=n
On Jun 21, 2017 12:50 PM, "Shupeyko Nikita"<EMAIL_ADDRESS>wrote:

@chopanpma https://github.com/chopanpma, did you opted out for Let's
Encrypt?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pydanny/cookiecutter-django/issues/1204#issuecomment-310155551,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALRjVY3tmjcnf8gzSFpBK3sdGBzdYi9Kks5sGVfegaJpZM4OBPS1
.

@chopanpma, have you tested it with the recent EAP PyCharm release where they added support for Docker Compose on Windows? (I know this is most likely not the case, but still.)

@chopanpma, the issue occurs since we don't have Node.JS running in production mode as of now -- this is the shortcoming of the PR (#1128) I've been working on and finally merged it yesterday.

@chopanpma I will fix this ASAP.

@chopanpma I've rolled the #1128 back -- re-iterate, please, to make sure it works for you.

Thanks @webyneter, Ill test right know and let you know.
On Jun 21, 2017 3:20 PM, "Shupeyko Nikita"<EMAIL_ADDRESS>wrote:
@chopanpma https://github.com/chopanpma I've rolled the #1128
https://github.com/pydanny/cookiecutter-django/pull/1128 back --
re-iterate, please, to make sure it works for you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pydanny/cookiecutter-django/issues/1204#issuecomment-310193360,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALRjVeLbMtkgIiPIf3txj1Gj_drUehPeks5sGXr0gaJpZM4OBPS1
.

@chopanpma hope it went well?..

Still working on it,
don't use AWS for static storage, and had to enable COLLECTSTATIC= True
Still testing.
On Wed, Jun 21, 2017 at 3:44 PM, Shupeyko Nikita<EMAIL_ADDRESS>wrote:

@chopanpma https://github.com/chopanpma hope it went well?..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pydanny/cookiecutter-django/issues/1204#issuecomment-310199537,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALRjVQgYjgof4Uiybe6DSHvcB6jBPv5nks5sGYCxgaJpZM4OBPS1
.

--
Eng. Francisco Castañeda
Manager
Montuoso Software Engineering Inc.
<EMAIL_ADDRESS>www.montuoso.com

"""
Production Configurations

Use Amazon's S3 for storing static files and uploaded media
Use mailgun to send emails
Use Redis for cache

"""
from boto.s3.connection import OrdinaryCallingFormat
from .base import *  # noqa
SECRET CONFIGURATION
------------------------------------------------------------------------------
See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
Raises ImproperlyConfigured exception if DJANGO_SECRET_KEY not in os.environ
SECRET_KEY = env('DJANGO_SECRET_KEY')
This ensures that Django will be able to detect a secure connection
properly on Heroku.
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
SECURITY CONFIGURATION
------------------------------------------------------------------------------
See https://docs.djangoproject.com/en/dev/ref/middleware/#module-django.middleware.security
and https://docs.djangoproject.com/en/dev/howto/deployment/checklist/#run-manage-py-check-deploy
set this to 60 seconds and then to 518400 when you can prove it works
SECURE_HSTS_SECONDS = 60
SECURE_HSTS_INCLUDE_SUBDOMAINS = env.bool(
'DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS', default=True)
SECURE_CONTENT_TYPE_NOSNIFF = env.bool(
'DJANGO_SECURE_CONTENT_TYPE_NOSNIFF', default=True)
SECURE_BROWSER_XSS_FILTER = True
SESSION_COOKIE_SECURE = True
SESSION_COOKIE_HTTPONLY = True
SECURE_SSL_REDIRECT = env.bool('DJANGO_SECURE_SSL_REDIRECT', default=True)
CSRF_COOKIE_SECURE = True
CSRF_COOKIE_HTTPONLY = True
X_FRAME_OPTIONS = 'DENY'
SITE CONFIGURATION
------------------------------------------------------------------------------
Hosts/domain names that are valid for this site
See https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ['*', ]
END SITE CONFIGURATION
INSTALLED_APPS += ['gunicorn', ]
STORAGE CONFIGURATION
# ------------------------------------------------------------------------------
# Uploaded Media Files
# ------------------------
# See: http://django-storages.readthedocs.io/en/latest/index.html
INSTALLED_APPS += ['storages', ]

AWS_ACCESS_KEY_ID = env('DJANGO_AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = env('DJANGO_AWS_SECRET_ACCESS_KEY')
AWS_STORAGE_BUCKET_NAME = env('DJANGO_AWS_STORAGE_BUCKET_NAME')
AWS_AUTO_CREATE_BUCKET = True
AWS_QUERYSTRING_AUTH = False
AWS_S3_CALLING_FORMAT = OrdinaryCallingFormat()

# AWS cache settings, don't change unless you know what you're doing:
AWS_EXPIRY = 60 * 60 * 24 * 7

# TODO See: https://github.com/jschneier/django-storages/issues/47
# Revert the following and use str after the above-mentioned bug is fixed in
# either django-storage-redux or boto
control = 'max-age=%d, s-maxage=%d, must-revalidate' % (AWS_EXPIRY,
AWS_EXPIRY)
AWS_HEADERS = {
'Cache-Control': bytes(control, encoding='latin-1')
}

# URL that handles the media served from MEDIA_ROOT, used for managing
# stored files.

#  See:http://stackoverflow.com/questions/10390244/
from storages.backends.s3boto import S3BotoStorage
StaticRootS3BotoStorage = lambda: S3BotoStorage(location='static')
MediaRootS3BotoStorage = lambda: S3BotoStorage(location='media')
DEFAULT_FILE_STORAGE = 'config.settings.production.MediaRootS3BotoStorage'

MEDIA_URL = 'https://s3.amazonaws.com/%s/media/' % AWS_STORAGE_BUCKET_NAME

# Static Assets
# ------------------------

STATIC_URL = 'https://s3.amazonaws.com/%s/static/' % AWS_STORAGE_BUCKET_NAME
STATICFILES_STORAGE = 'config.settings.production.StaticRootS3BotoStorage'
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
# See: https://github.com/antonagestam/collectfast
# For Django 1.7+, 'collectfast' should come before
# 'django.contrib.staticfiles'
AWS_PRELOAD_METADATA = True
INSTALLED_APPS = ['collectfast', ] + INSTALLED_APPS
COLLECTFAST_ENABLED = True
EMAIL
------------------------------------------------------------------------------
DEFAULT_FROM_EMAIL = env('DJANGO_DEFAULT_FROM_EMAIL',
default='test_production2 <noreply@*>')
EMAIL_SUBJECT_PREFIX = env('DJANGO_EMAIL_SUBJECT_PREFIX',
default='[test_production2]')
SERVER_EMAIL = env('DJANGO_SERVER_EMAIL', default=DEFAULT_FROM_EMAIL)
Anymail with Mailgun
INSTALLED_APPS += ['anymail', ]
ANYMAIL = {
'MAILGUN_API_KEY': env('DJANGO_MAILGUN_API_KEY'),
'MAILGUN_SENDER_DOMAIN': env('MAILGUN_SENDER_DOMAIN')
}
EMAIL_BACKEND = 'anymail.backends.mailgun.MailgunBackend'
TEMPLATE CONFIGURATION
------------------------------------------------------------------------------
See:
https://docs.djangoproject.com/en/dev/ref/templates/api/#django.template.loaders.cached.Loader
TEMPLATES[0]['OPTIONS']['loaders'] = [
('django.template.loaders.cached.Loader', [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader', ]),
]
DATABASE CONFIGURATION
------------------------------------------------------------------------------
Use the Heroku-style specification
Raises ImproperlyConfigured exception if DATABASE_URL not in os.environ
DATABASES['default'] = env.db('DATABASE_URL')
CACHING
------------------------------------------------------------------------------
REDIS_LOCATION = '{0}/{1}'.format(env('REDIS_URL',
default='redis://<IP_ADDRESS>:6379'), 0)
Heroku URL does not pass the DB number, so we parse it in
CACHES = {
'default': {
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': REDIS_LOCATION,
'OPTIONS': {
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
'IGNORE_EXCEPTIONS': True,  # mimics memcache behavior.
#
http://niwinz.github.io/django-redis/latest/#_memcached_exceptions_behavior
}
}
}
LOGGING CONFIGURATION
------------------------------------------------------------------------------
See: https://docs.djangoproject.com/en/dev/ref/settings/#logging
A sample logging configuration. The only tangible logging
performed by this configuration is to send an email to
the site admins on every HTTP 500 error when DEBUG=False.
See https://docs.djangoproject.com/en/dev/topics/logging for
more details on how to customize your logging configuration.
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(module)s '
'%(process)d %(thread)d %(message)s'
},
},
'handlers': {
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false', ],
'class': 'django.utils.log.AdminEmailHandler'
},
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'verbose',
},
},
'loggers': {
'django.request': {
'handlers': ['mail_admins', ],
'level': 'ERROR',
'propagate': True
},
'django.security.DisallowedHost': {
'level': 'ERROR',
'handlers': ['console', 'mail_admins', ],
'propagate': True
}
}
}
Custom Admin URL, use {% url 'admin:index' %}
ADMIN_URL = env('DJANGO_ADMIN_URL')
Your production stuff: Below this line define 3rd party library
settings# ------------------------------------------------------------------------------
This is my production.py
I had to comment out amazon settings,
but I am having problems starting django up with docker-compose up
django_1        | Copying
'/usr/local/lib/python3.5/site-packages/django/contrib/admin/static/admin/js/vendor/xregexp/xregexp.min.js'
django_1        | Ignored error in Collectfast:
django_1        | 'StaticFilesStorage' object has no attribute
'_normalize_name'
django_1        | --> Continuing using default collectstatic.
django_1        | Copying
'/usr/local/lib/python3.5/site-packages/django/contrib/admin/static/admin/js/vendor/xregexp/xregexp.js'
django_1        | Ignored error in Collectfast:
django_1        | 'StaticFilesStorage' object has no attribute
'_normalize_name'
On Wed, Jun 21, 2017 at 3:46 PM, Francisco Castañeda <
<EMAIL_ADDRESS>wrote:

Still working on it,
don't use AWS for static storage, and had to enable COLLECTSTATIC= True
Still testing.
On Wed, Jun 21, 2017 at 3:44 PM, Shupeyko Nikita<EMAIL_ADDRESS>
wrote:

@chopanpma https://github.com/chopanpma hope it went well?..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pydanny/cookiecutter-django/issues/1204#issuecomment-310199537,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALRjVQgYjgof4Uiybe6DSHvcB6jBPv5nks5sGYCxgaJpZM4OBPS1
.

--
Eng. Francisco Castañeda
Manager
Montuoso Software Engineering Inc.
<EMAIL_ADDRESS>www.montuoso.com

--
Eng. Francisco Castañeda
Manager
Montuoso Software Engineering Inc.
<EMAIL_ADDRESS>www.montuoso.com

@chopanpma, is it safe to say that this particular issue is no longer the case? (Then, we could switch to that new one.)

It worked Thanks a a lot,
just had to change COLLECTFAST_ENABLED = False
On Wed, Jun 21, 2017 at 3:49 PM, Francisco Castañeda <
<EMAIL_ADDRESS>wrote:

"""
Production Configurations

Use Amazon's S3 for storing static files and uploaded media
Use mailgun to send emails
Use Redis for cache

"""
from boto.s3.connection import OrdinaryCallingFormat
from .base import *  # noqa
SECRET CONFIGURATION
------------------------------------------------------------------------------
See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
Raises ImproperlyConfigured exception if DJANGO_SECRET_KEY not in os.environ
SECRET_KEY = env('DJANGO_SECRET_KEY')
This ensures that Django will be able to detect a secure connection
properly on Heroku.
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
SECURITY CONFIGURATION
------------------------------------------------------------------------------
See https://docs.djangoproject.com/en/dev/ref/middleware/#module-django.middleware.security
and https://docs.djangoproject.com/en/dev/howto/deployment/checklist/#run-manage-py-check-deploy
set this to 60 seconds and then to 518400 when you can prove it works
SECURE_HSTS_SECONDS = 60
SECURE_HSTS_INCLUDE_SUBDOMAINS = env.bool(
'DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS', default=True)
SECURE_CONTENT_TYPE_NOSNIFF = env.bool(
'DJANGO_SECURE_CONTENT_TYPE_NOSNIFF', default=True)
SECURE_BROWSER_XSS_FILTER = True
SESSION_COOKIE_SECURE = True
SESSION_COOKIE_HTTPONLY = True
SECURE_SSL_REDIRECT = env.bool('DJANGO_SECURE_SSL_REDIRECT', default=True)
CSRF_COOKIE_SECURE = True
CSRF_COOKIE_HTTPONLY = True
X_FRAME_OPTIONS = 'DENY'
SITE CONFIGURATION
------------------------------------------------------------------------------
Hosts/domain names that are valid for this site
See https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ['*', ]
END SITE CONFIGURATION
INSTALLED_APPS += ['gunicorn', ]
STORAGE CONFIGURATION
# ------------------------------------------------------------------------------
# Uploaded Media Files
# ------------------------
# See: http://django-storages.readthedocs.io/en/latest/index.html
INSTALLED_APPS += ['storages', ]

AWS_ACCESS_KEY_ID = env('DJANGO_AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = env('DJANGO_AWS_SECRET_ACCESS_KEY')
AWS_STORAGE_BUCKET_NAME = env('DJANGO_AWS_STORAGE_BUCKET_NAME')
AWS_AUTO_CREATE_BUCKET = True
AWS_QUERYSTRING_AUTH = False
AWS_S3_CALLING_FORMAT = OrdinaryCallingFormat()

# AWS cache settings, don't change unless you know what you're doing:
AWS_EXPIRY = 60 * 60 * 24 * 7

# TODO See: https://github.com/jschneier/django-storages/issues/47
# Revert the following and use str after the above-mentioned bug is fixed in
# either django-storage-redux or boto
control = 'max-age=%d, s-maxage=%d, must-revalidate' % (AWS_EXPIRY, AWS_EXPIRY)
AWS_HEADERS = {
'Cache-Control': bytes(control, encoding='latin-1')
}

# URL that handles the media served from MEDIA_ROOT, used for managing
# stored files.

#  See:http://stackoverflow.com/questions/10390244/
from storages.backends.s3boto import S3BotoStorage
StaticRootS3BotoStorage = lambda: S3BotoStorage(location='static')
MediaRootS3BotoStorage = lambda: S3BotoStorage(location='media')
DEFAULT_FILE_STORAGE = 'config.settings.production.MediaRootS3BotoStorage'

MEDIA_URL = 'https://s3.amazonaws.com/%s/media/' % AWS_STORAGE_BUCKET_NAME

# Static Assets
# ------------------------

STATIC_URL = 'https://s3.amazonaws.com/%s/static/' % AWS_STORAGE_BUCKET_NAME
STATICFILES_STORAGE = 'config.settings.production.StaticRootS3BotoStorage'
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
# See: https://github.com/antonagestam/collectfast
# For Django 1.7+, 'collectfast' should come before
# 'django.contrib.staticfiles'
AWS_PRELOAD_METADATA = True
INSTALLED_APPS = ['collectfast', ] + INSTALLED_APPS
COLLECTFAST_ENABLED = True
EMAIL
------------------------------------------------------------------------------
DEFAULT_FROM_EMAIL = env('DJANGO_DEFAULT_FROM_EMAIL',
default='test_production2 <noreply@*>')
EMAIL_SUBJECT_PREFIX = env('DJANGO_EMAIL_SUBJECT_PREFIX', default='[test_production2]')
SERVER_EMAIL = env('DJANGO_SERVER_EMAIL', default=DEFAULT_FROM_EMAIL)
Anymail with Mailgun
INSTALLED_APPS += ['anymail', ]
ANYMAIL = {
'MAILGUN_API_KEY': env('DJANGO_MAILGUN_API_KEY'),
'MAILGUN_SENDER_DOMAIN': env('MAILGUN_SENDER_DOMAIN')
}
EMAIL_BACKEND = 'anymail.backends.mailgun.MailgunBackend'
TEMPLATE CONFIGURATION
------------------------------------------------------------------------------
See:
https://docs.djangoproject.com/en/dev/ref/templates/api/#django.template.loaders.cached.Loader
TEMPLATES[0]['OPTIONS']['loaders'] = [
('django.template.loaders.cached.Loader', [
'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', ]),
]
DATABASE CONFIGURATION
------------------------------------------------------------------------------
Use the Heroku-style specification
Raises ImproperlyConfigured exception if DATABASE_URL not in os.environ
DATABASES['default'] = env.db('DATABASE_URL')
CACHING
------------------------------------------------------------------------------
REDIS_LOCATION = '{0}/{1}'.format(env('REDIS_URL', default='redis://<IP_ADDRESS>:6379'), 0)
Heroku URL does not pass the DB number, so we parse it in
CACHES = {
'default': {
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': REDIS_LOCATION,
'OPTIONS': {
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
'IGNORE_EXCEPTIONS': True,  # mimics memcache behavior.
# http://niwinz.github.io/django-redis/latest/#_memcached_exceptions_behavior
}
}
}
LOGGING CONFIGURATION
------------------------------------------------------------------------------
See: https://docs.djangoproject.com/en/dev/ref/settings/#logging
A sample logging configuration. The only tangible logging
performed by this configuration is to send an email to
the site admins on every HTTP 500 error when DEBUG=False.
See https://docs.djangoproject.com/en/dev/topics/logging for
more details on how to customize your logging configuration.
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(module)s '
'%(process)d %(thread)d %(message)s'
},
},
'handlers': {
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false', ],
'class': 'django.utils.log.AdminEmailHandler'
},
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'verbose',
},
},
'loggers': {
'django.request': {
'handlers': ['mail_admins', ],
'level': 'ERROR',
'propagate': True
},
'django.security.DisallowedHost': {
'level': 'ERROR',
'handlers': ['console', 'mail_admins', ],
'propagate': True
}
}
}
Custom Admin URL, use {% url 'admin:index' %}
ADMIN_URL = env('DJANGO_ADMIN_URL')
Your production stuff: Below this line define 3rd party library settings# ------------------------------------------------------------------------------
This is my production.py
I had to comment out amazon settings,
but I am having problems starting django up with docker-compose up
django_1        | Copying '/usr/local/lib/python3.5/
site-packages/django/contrib/admin/static/admin/js/vendor/
xregexp/xregexp.min.js'
django_1        | Ignored error in Collectfast:
django_1        | 'StaticFilesStorage' object has no attribute
'_normalize_name'
django_1        | --> Continuing using default collectstatic.
django_1        | Copying '/usr/local/lib/python3.5/
site-packages/django/contrib/admin/static/admin/js/vendor/
xregexp/xregexp.js'
django_1        | Ignored error in Collectfast:
django_1        | 'StaticFilesStorage' object has no attribute
'_normalize_name'
On Wed, Jun 21, 2017 at 3:46 PM, Francisco Castañeda <
<EMAIL_ADDRESS>wrote:

Still working on it,
don't use AWS for static storage, and had to enable COLLECTSTATIC= True
Still testing.
On Wed, Jun 21, 2017 at 3:44 PM, Shupeyko Nikita <
<EMAIL_ADDRESS>wrote:

@chopanpma https://github.com/chopanpma hope it went well?..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pydanny/cookiecutter-django/issues/1204#issuecomment-310199537,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALRjVQgYjgof4Uiybe6DSHvcB6jBPv5nks5sGYCxgaJpZM4OBPS1
.

--
Eng. Francisco Castañeda
Manager
Montuoso Software Engineering Inc.
<EMAIL_ADDRESS>www.montuoso.com

--
Eng. Francisco Castañeda
Manager
Montuoso Software Engineering Inc.
<EMAIL_ADDRESS>www.montuoso.com

--
Eng. Francisco Castañeda
Manager
Montuoso Software Engineering Inc.
<EMAIL_ADDRESS>www.montuoso.com

@chopanpma, so, I can close this one now, right?

Thanks a lot @webyneter, I am impressed, and the team and managers with
your help, I hope we can coolaborate with something, more than buying
books, I bought one my self, I am going to go for the new edition and I
hope some day be contributor.
On Wed, Jun 21, 2017 at 3:51 PM, Shupeyko Nikita<EMAIL_ADDRESS>wrote:

@chopanpma https://github.com/chopanpma, is it safe to say that this
particular issue is no longer the case? (Then, we could switch to that new
one.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pydanny/cookiecutter-django/issues/1204#issuecomment-310201473,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALRjVfs9KRvpBLY2tmfVGN8Cer7FINiJks5sGYJrgaJpZM4OBPS1
.

--
Eng. Francisco Castañeda
Manager
Montuoso Software Engineering Inc.
<EMAIL_ADDRESS>www.montuoso.com

YESSS
On Wed, Jun 21, 2017 at 3:53 PM, Shupeyko Nikita<EMAIL_ADDRESS>wrote:

@chopanpma https://github.com/chopanpma, so, I can close this one now,
right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pydanny/cookiecutter-django/issues/1204#issuecomment-310201909,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALRjVfkvKXcydsl86SmN8CTgikYwHlUCks5sGYLLgaJpZM4OBPS1
.

--
Eng. Francisco Castañeda
Manager
Montuoso Software Engineering Inc.
<EMAIL_ADDRESS>www.montuoso.com

@chopanpma, thank you, me and all the contributors very appreciate that!


Ensure correct textarea is focus when upload finishes

The uploadFinished code switches on the composing mode, if we aren't in the
composing mode already. This causes the focus to be incorrect when this code
path runs due to an upload from the message edit box. This commit turns on the
composing mode or switches focus to the message edit box, based on where the
upload was triggered.

Testing Plan:
GIFs or Screenshots:

Nice, merged, thanks @punchagan!  Though now that I'm thinking about this in more detail, I think we might want to make the following changes on top of this:

Get rid of the compose_actions.start() call as suggested by the comment just above these changes... it doesn't seem like we'd ever want this to trigger opening a closed compose box.
Change compose_ui.replace_syntax to include the autosize logic that we have in compose_ui.smart_insert (i.e. the compose_ui.insert_syntax_and_focus logic).  All the callers do that manually at present.
Potentially stop trying to add focus at all when calling compose_ui.replace_syntax; it's not clear to me that adding focus here at all is constructive.

@skunkmb @shubhamdhama what are your thoughts on those changes?  Am I missing something?


Uniformly distributed random rotations, unit vectors

This replaces the presumably non-uniform Standard distribution implementations for UnitQuaternion and Rotation3 with uniform sampling algorithms taken from Graphics Gems III. While I was at it I also dropped in an implementation for Unit<VectorN>.
The implementation bounds for the pre-existing distributions were modified to replace Standard with OpenClosed01, which is arguably a breaking change. Although this is approximately a no-op for f32/f64, it's unclear what Standard might mean for more exotic types, and hence I feel it's appropriate to make the requirements of the algorithms used more explicit.
An alternative approach would be to introduce one or more new unit structs implementing Distribution for these algorithms, preserving the pre-existing Standard impls for backwards compatibility. This would also have the benefit of providing a clearer point to hang documentation off of, and making code that relies on the uniformity guarantee clearer. On the other hand, a non-uniform Standard distribution for these types strikes me as a landmine: users will invariably either want uniformity or a specific non-uniformity best accomplished with a documented or custom distribution.

Thanks! I am OK with the breaking change since the current implementation is not specific enough to be useful anyway.
The use of StandardNormal breaks compilation with no_std though (none of StandardNormal and Normal seem exported if the stdlib is disabled. See this source.) If there is no alternative ways to achieving the same result with distributions compatible with no_std, we should guard the Unit<VectorN<...>> impl (as well as the use rand::distributions::StandardNormal) with a #[cfg(features = "std")].

There are (superior?) alternative ways for the 2D and 3D cases (which would be nice to implement once specialization is a thing, perhaps), but I'm not aware of a good solution for the n-dimensional case. I'll guard it.

It'd be nice to have the uniformity stated somewhere in the documentation, but other than for Rotation3 I'm not sure where would make sense.

I believe the documentation should go on the trait impls (above the fn sample methods). If I'm not mistaken this will override the default documentation provided by the trait on the generated doc.
The use rand::distribution::StandardNormal had to be guarded as well. I discovered I could edit the file myself directly on github. So I tried it to fix this (hence the additional commit). Hope you didn't mind!

No problem! Confirmed the docs work as you said; pretty hidden away, but at least the info's there. I also tweaked Rotation2 to be uniform and adjusted the interface of the already-uniform UnitComplex impl for consistency.

Thank! Looks like one of the travis builds still fails, but it seems unrelated to your contribution. I'll merge this and investigate this separately.


Supporting ETCD as provider for Traefik v2

It'd be amazing if we can continue using etcd provider from traefik 1.7 in traefik v2.

Hi! I'm Træfiker :robot: the bot in charge of communication regulation.
Thanks for your interest in Traefik!
Issue templates help us help you by providing all necessary information.
Please edit your issue and use the available templates:

Feature request
Bug report

And remember: each time someone ignores the template, a cute little bunny dies.

#SaveTheCuteBunny :heart: :rabbit: :heart:

Hi @xmonader , for information, we have the a project task board for the v2.0.
The etc provider re-implementation in v2.0 is tracked in the card "KV providers": https://github.com/containous/traefik/projects/3?card_filter_query=kv

@dduportal thank you so much :)


marker/shield fill color while using file

Shouldn't the fill color colorize the marker/shield file ?
It is happening with polygon-pattern-fill, even though not documented in carto css, so i would expect/like it to work too. What do you think?

I believe the current implementation mirrors Mapnik behavior, marker-fill is used when drawing custom marker (ellipse or arrow). polygon-pattern-fill is a custom extension that is not supported by Mapnik at all.

@mtehver yes i saw that. But in the "continuity" of polygon-pattern-fill which is dead useful, couldn't marker-fill do the same while using file? It would change the behavior, just add more features. The only edge case i would see is if someone had marker-fill set with file without actually knowing it (as it had no side effect).

@farfromrefug I added 'marker-color' property that can be used for this. I analyzed different options and this seemed the best one. Note that 'marker-opacity' already existed and this worked both with file based and internal markers. So 'marker-color' is also applied to both file based and internal markers while 'marker-fill', 'marker-fill-opacity', 'marker-stroke', 'marker-stroke-opacity' are only used for internal markers.

@mtehver pretty awesome! thank you


Extend to count/binary data using GLMs?

I don't know much about ESNs beyond the basics, but I was wondering whether there are any barriers to switching from linear models to generalized linear models to allow time series of e.g. count data to be considered? This could involve using MLJGLMInterface.jl, though it doesn't have penalized models, or GLMNet.jl, which does have penalized models but may be more work to link, given the current codebase links to MLJLinearModels.jl.

From a theoretical point of view I don't see any barriers to implement support for generalized linear models. Giving support for both the packages could be doable regardless of current implementations, I think I will delve into it in the next week. Do you already have some data you wanted to test this on?

Hi @MartinuzziFrancesco
Thanks for looking into this. I've put a toy example in a gist here.

Thanks for the example, I should be able to properly tackle this in the next days!

I've updated the gist to include some dummy data in binary format too.


Marketing app  does not support G2G

The Marketing app does not support G2G

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

ID: 029aa7d3-e3e1-f99a-3f71-e11e998cb543
Version Independent ID: 3d87af00-dcfd-697c-87df-3990a4cc8027
Content: Geo to geo migrations - Power Platform Admin center
Content Source: power-platform/admin/geo-to-geo-migrations.md
Service: power-platform
GitHub Login: @jimholtz
Microsoft Alias: jimholtz

You are correct, the Marketing app does not support Geo to Geo migration. See: https://docs.microsoft.com/en-us/dynamics365/admin/move-instance-tenant


Rendering HTML entities

vhtml renders “ as &ldquo;, which causes the source string to appear in the output.
It would be helpful if entities in the "quasis" of the template string were left alone, and interpolated string values were escaped:
// Source
const copyright = '© 2021';
return html`<div>“${copyright}”</div>`;

// Rendered output

“&copy;2021”

Hm, started a PR but the problem doesn't seem to be in this package. Definitely a problem with my specific use case.
	it("should not sanitize HTML entities", () => {
		expect(

				©
				allowed

		).to.equal(`<div>©<em>allowed</em></div>`);
	});

HI @ryaninvents, I am hitting the same issue. How did you overcome your situation?

I don't recall whether I fixed it in the project itself... The reason I closed the issue is because I created a minimal test case to demonstrate the issue, but the test case behaved as expected. I think there was another layer in my application trying to perform encoding, so it was getting applied twice.


[FEAT]: Do we actually need stubs file

Description
Is it deliberately designed to use stubs? We can skip these third-party function testing by setting it as missing to avoid complicated mantainance of stubs and make the file structure more clear.
Additional Information
No response

this issue is aborted.


AuditEntryProperties saving only primary Key (ID) of my table as PropertyName

1. Description
I am trying to insert and get pk value once done by using InsertOrUpdateAndGetIdAsync but audit not saving only id for main and chlild entities
4. Any further technical details
Add any relevant detail can help us.
i have entity.dbset which has [AuditInclude] attribute
[AuditInclude]
[Table("CAPS_GroupTotal")]

public class GroupTotalUnit : FullAuditedEntity, IMustHaveTenant, IMayHaveOrganizationUnit, IHasConcurrency
{
    /// <summary> Overriding the ID column with GroupTotalId field. </summary>
    [Column("GroupTotalId")]
    public override int Id { get; set; }
------
------
}

and with that created a DTO and in that i added another DTO as
public List Children { get; set; }
now i am going to do operation as below,
var groupTotalId = await _groupTotalUnitRepository.InsertOrUpdateAndGetIdAsync(groupTotalUnit);
after successful transaction in AuditEntryProperties table in database only getting Id's (which are primary keys) are inserted but not storing the all properties of the table.
Note: for 1st time, i.e; statename 'EntityAdded' storng all properties of bot tables but 'EntityModified' saving only ID's instead of saving all my chages.
in 3 statenames EntityAdded,EntityDeleted is saving all properties(cloums) but EntityModified storing only Id property why not all?
can you help me to resolve this issue.

Hello @SanthoshKumarGunda ,
Do you think you could create a runnable project with the issue? It doesn’t need to be your project, just a new solution with the minimum code to reproduce the issue.
At this moment, there are too many variables missing for us to try to reproduce it.
So the best way to get an answer will be to provide a runnable project with only this issue. You can send it also in private here<EMAIL_ADDRESS>Best Regards,
Jon

Hi @JonathanMagnan ,
Thanks for Yiur help!
Isuue got resolved.
routecause is calling UpdateAsync and did some modifications(inside the child entites as well) and then called await _unitOfWorkManager.Current.SaveChangesAsync(); due to that cange entries are not fetched in SaveChangesAsync();

Awesome, thank you for letting us know.
Best Regards,
Jon


Bump github.com/fsouza/go-dockerclient

To include https://github.com/fsouza/go-dockerclient/pull/562 , which fixes https://github.com/weaveworks/scope/issues/1767

LGTM.


Crash on large numbers

IDE hangs when typing large numbers for repeats
How do I design my planet-scale scarf now?
Support large numbers pls, the earth needs a blanket

Thanks for filing this bug! Here is a test case for it:
pattern p
  row: CO<PHONE_NUMBER>.
  row: BO end.
end
show (p)


Select fails with IndexError when there is nothing before it

The bug
Select fails with the following when there is nothing before it:
File ~/anaconda3/lib/python3.9/site-packages/guidance/library/_select.py:81, in select.<locals>.recursive_select(current_prefix, allow_token_extension)
     78 option_tokens = parser.program.llm.encode(parser_prefix[-50:] + option)
     80 # if we extended the last token to a longer one
---> 81 if option_tokens[len(tmp_prefix_tokens)-1] != tmp_prefix_tokens[-1]:
     82     if allow_token_extension: # this is a valid extension only if we are not allowed to extend the token
     83         logit_bias1[option_tokens[len(tmp_prefix_tokens)-1]] = 100

IndexError: list index out of range

To Reproduce
options = ['a', 'b']
program = guidance("{{select options=options}}")
program(options=options)

System info:

OS: WSL2
Guidance Version: 0.0.49

I think it works now (at least your snippet works).
Thanks :)


PROPOSAL - App/Mobile Support

Is your feature request related to a problem? Please describe.
Currently submitting a Standup by a user is not supported in the mobile app (there is no button or slash command to start a submission.
Describe the solution you'd like
Add a / command like /standup write and a bot is asking you the questions one by one and you can separate them via ";" per Question…
could be related to https://github.com/standup-raven/standup-raven/issues/9#issuecomment-491524921
Describe alternatives you've considered
maybe there is also a native solution for it, so it will be displayed by the Mattermost mobile client?
Thank You for this tool!

Hi @Grienauer , thanks for the suggestion!
Mattermost mobile app currently doesn't support webapp plugins so we cannot display any Standup Raven button or open up a modal on mobile. Slash commands work fine though.
The idea of using slash commands in an interactive way to submit standups sounds cool! We'll consider this in our next iteration.

@Grienauer We wish to include more functionalities to the standup modal in the future. Using slash commands might not allow the same user experience as a modal would.
We recommend you use Mattermost on a mobile browser for submitting standups as it's fully supported over there.


refactor(message-builder): move static helper methods to functions

These functions shouldn't live in the message builder. They're related to IRC and Ignores.
IRC related functions are in TwitchIrc and in the chatterino::twitchirc namespace. All functions were copied. Only parameters equal to originalMessage were renamed to content to avoid confusion with the original message text, which might be bigger.
In the future, we should get rid of the ints in this code.
clang-tidy will complain, but I didn't change anything.

but I don't see how originalMessage would be incorrect

It's not incorrect, but it's misleading. For the reply @user foo bar, the content could be foo bar. Yes, foo bar is originalMessage_ of MessageBuilder, but it's not the "original" message - that would be @user foo bar.

but I don't see how originalMessage would be incorrect

It's not incorrect, but it's misleading. For the reply @user foo bar, the content could be foo bar. Yes, foo bar is originalMessage_ of MessageBuilder, but it's not the "original" message - that would be @user foo bar.

Sure, I guess that depends on how you interpret "message" and "content". Libcommuni interprets "content" as @user foo bar


Help Needed

Hi,
I'm finding this version confusing not sure where I'm going wrong

Thanks

Unfortunately, I still couldn't get it to work. It's a shame because I will have to stop using octool. Gone back to using OC-Gen for now.
Thanks for all your help.


update 14.0.6

Linter check failed, with the following output:
The following problems have been found:
ERROR: /tmp/abs_33c_2zxl2i/clone/recipe/meta.yaml:0: missing_tests: The recipe is missing tests.
ERROR: /tmp/abs_33c_2zxl2i/clone/recipe/meta.yaml:128: missing_doc_url: The recipe is missing a doc_url
WARNING: /tmp/abs_33c_2zxl2i/clone/recipe/meta.yaml:128: missing_description: The recipe is missing a description
ERROR: /tmp/abs_33c_2zxl2i/clone/recipe/meta.yaml:128: missing_dev_url: The recipe is missing a dev_url
WARNING: /tmp/abs_33c_2zxl2i/clone/recipe/meta.yaml:128: http_url: http://github.com/conda-forge/clang-compiler-activation-feedstock is not https
WARNING: /tmp/abs_33c_2zxl2i/clone/recipe/meta.yaml:128: missing_license_url: The recipe is missing a license_url
WARNING: /tmp/abs_33c_2zxl2i/clone/recipe/meta.yaml:128: missing_doc_source_url: The recipe is missing a doc_source_url
Errors were found

Linter check failed, with the following output:
The following problems have been found:
ERROR: /tmp/abs_2ddw3xuumc/clone/recipe/meta.yaml:0: missing_tests: The recipe is missing tests.
WARNING: /tmp/abs_2ddw3xuumc/clone/recipe/meta.yaml:128: http_url: http://github.com/conda-forge/clang-compiler-activation-feedstock is not https
WARNING: /tmp/abs_2ddw3xuumc/clone/recipe/meta.yaml:128: missing_license_url: The recipe is missing a license_url
WARNING: /tmp/abs_2ddw3xuumc/clone/recipe/meta.yaml:128: missing_description: The recipe is missing a description
ERROR: /tmp/abs_2ddw3xuumc/clone/recipe/meta.yaml:128: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_2ddw3xuumc/clone/recipe/meta.yaml:128: missing_doc_url: The recipe is missing a doc_url
WARNING: /tmp/abs_2ddw3xuumc/clone/recipe/meta.yaml:128: missing_doc_source_url: The recipe is missing a doc_source_url
Errors were found

Linter check failed, with the following output:
The following problems have been found:
ERROR: /tmp/abs_6fg7xe8wj4/clone/recipe/meta.yaml:0: missing_tests: The recipe is missing tests.
WARNING: /tmp/abs_6fg7xe8wj4/clone/recipe/meta.yaml:128: missing_license_url: The recipe is missing a license_url
WARNING: /tmp/abs_6fg7xe8wj4/clone/recipe/meta.yaml:128: missing_doc_source_url: The recipe is missing a doc_source_url
WARNING: /tmp/abs_6fg7xe8wj4/clone/recipe/meta.yaml:128: http_url: http://github.com/conda-forge/clang-compiler-activation-feedstock is not https
WARNING: /tmp/abs_6fg7xe8wj4/clone/recipe/meta.yaml:128: missing_description: The recipe is missing a description
ERROR: /tmp/abs_6fg7xe8wj4/clone/recipe/meta.yaml:128: missing_doc_url: The recipe is missing a doc_url
ERROR: /tmp/abs_6fg7xe8wj4/clone/recipe/meta.yaml:128: missing_dev_url: The recipe is missing a dev_url
Errors were found

Linter check failed, with the following output:
The following problems have been found:
ERROR: /tmp/abs_e2xgp6_zfe/clone/recipe/meta.yaml:0: missing_tests: The recipe is missing tests.
ERROR: /tmp/abs_e2xgp6_zfe/clone/recipe/meta.yaml:130: missing_doc_url: The recipe is missing a doc_url
WARNING: /tmp/abs_e2xgp6_zfe/clone/recipe/meta.yaml:130: missing_description: The recipe is missing a description
WARNING: /tmp/abs_e2xgp6_zfe/clone/recipe/meta.yaml:130: missing_doc_source_url: The recipe is missing a doc_source_url
Errors were found

Linter check failed, with the following output:
The following problems have been found:
ERROR: /tmp/abs_57m4liqfua/clone/recipe/meta.yaml:132: duplicate_key_in_meta_yaml: The recipe meta.yaml contains a duplicate key
Errors were found

@katietz Is this ready for review? Or do we need to wait for windows?

yes, we can review it


Can't link external dependecies

When I trying to compile the code, I put it into vs 2015 and add the include and libraries directories in Project Properties, and it shows the link error as:

Could you tell us how you configure your vs?
Thank you in advance.

I have solved this problem. GLFW need support from opengl. Just need to add "opengl32.lib" in Project->Properties->Linker->Input->Additional Dependency.

Glad it worked!


Split project into lib, cli, webui and spark

What about this one?
At first glance all CLI is fully separated from all logic. I also have few TODOs in code which suggests interface to pass options from CLI and Web UI.

I think let's push back to 0.3.0. It makes more sense to do this when we add the Spark support

Potentially lib and cli are kept as one as the cli dependencies are trivial

So, we will have another subproject schema-guru-spark?

Yep, that will have additional dependencies which are Spark-specific...

Pushing back...

This was done implicitly anyway, closing


Option to disable shortcuts completely

I do not want to use the following options at all

Close tab shortcut
Create a new tab with the search string as URL

I tried to uncheck all the modifiers keys on them, thinking that it would disable those actions completely. However, when I did that, and I tried to type something on the search bar within the extension, I noticed that any key I pressed ended up closing the tab. So I then checked all the modifier boxes so that I don't accidentally trigger the above 2 actions. This is an ok workaround, however, it would be great, if there was a way to completely disable the actions and have them not take up any keyboard combos.

I had exactly the same issue. I'm gonna suggest it shouldn't be possible to have a shortcut without a modifier key.


feat: bump version to latest release +1

It seems that the release pipeline failed because while new tags were created, you forgot to bump the poetry version. The way CI is currently set up in your repo, you will have to do that by hand still (poetry version major|minor|patch)

:books: Documentation preview :books:: https://portfolyo--69.org.readthedocs.build/en/69/

Ah thanks for checking that!
Let's walk through it. I have branch main in a state I want to publish.
Then I do poetry version patch in that branch, locally. But I cannot push
to the main branch, so I create a new branch, and merge that into develop
via pull request, and then that into main via pull request? Seems really
convoluted...
I'll give you a call tomorrow, maybe we can walk through it together.
Thanks!
Ruud
On Wed, 6 Dec 2023, 15:13 Stefan Keidel, @.***> wrote:

It seems that the release pipeline failed because while new tags were
created, you forgot to bump the poetry version. The way CI is currently set
up in your repo, you will have to do that by hand still (poetry version
major|minor|patch)
You can view, comment on, or merge this pull request online at:
https://github.com/rwijtvliet/portfolyo/pull/69
Commit Summary

95770e0
https://github.com/rwijtvliet/portfolyo/pull/69/commits/95770e026c9ee2d52171971873673fd173987370
feat: bump version to latest release +1

File Changes
(2 files https://github.com/rwijtvliet/portfolyo/pull/69/files)

M .gitignore
https://github.com/rwijtvliet/portfolyo/pull/69/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
(2)
M pyproject.toml
https://github.com/rwijtvliet/portfolyo/pull/69/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
(2)

Patch Links:

https://github.com/rwijtvliet/portfolyo/pull/69.patch
https://github.com/rwijtvliet/portfolyo/pull/69.diff

—
Reply to this email directly, view it on GitHub
https://github.com/rwijtvliet/portfolyo/pull/69, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA7KOHMLNQZTBD53BWEQ5J3YIB4PZAVCNFSM6AAAAABAJOIW5WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDQNRVGI3DSMI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I've tried to describe the process here - does it make sense like this? I know I'm the developer, but I do not have enough experience and just want to follow best practices.
Some additional questions:

As I understand, it's best practice to delete a branch after merging. In this case, I'd need to skip that as it needs to be merged into both develop and main. Is that not violating that practice?
Then the merge strategies: for anything that gets merged into develop, I use squash, which I understand gets rid of the dozens of commits that were in a feature branch. How should I merge into main? Same way? I'm asking because I often have identical code in main and develop but each is both behind and ahead of the other, which is confusing, and I'm trying to avoid it.

Thanks again!

Heyhey!
For feature branch to develop, squashing absolutely makes sense generally. For everything else, rewriting history (which is what squashing is) is frowned upon. I would generally advise rebasing code on top so you have a clean, linear history. That will get rid of the diverging branch histories as well, and they will be in sync.
As far as merging/rebasing release branches to both dev and main, I'm not super sure how to do that in practice either. I would probably rather do relese > main > develop, but likely without pull requests. But it remains to be seen what feels good for your workflow I guess.
We usually forego the release branches and bump the package versions as part of feature commits to develop immediately. But if you tend to accumulate changes for a while before releasing that might obviously not be practical. Depends on your process :)


"aws_vpc.cidr" changed to "aws_vpc.cidr_block"

Issue
It look like the AWS Provider has been updated recently and deprecated the usage of the attribute cidr in favor of cidr_block for the aws_vpc resource.
Bug
* module.network.output.vpc_cidr: Resource 'aws_vpc.main' does not have attribute 'cidr' for variable 'aws_vpc.main.cidr'

Version
$ terraform --version
Terraform v0.11.0
    + provider.aws v1.3.1

Code
# main.tf
terraform {
  required_version = "~> 0.10"

  backend "s3" {}
}

module "network" {
  source                = "github.com/d2si-oss/terraform-modules/aws/backbone"
  region                = "${var.aws_region}"
  vpc_cidr              = "${var.vpc_cidr_block}"
  public_subnet_blocks  = "${var.public_subnet_blocks}"
  private_subnet_blocks = "${var.private_subnet_blocks}"

  tags = "${var.networks_common_tags}"
}

# variables.tf
variable "application" {
  default = "application"
}

variable "component" {
  default = "network"
}

variable "aws_region" {
  default = "eu-west-1"
}

variable "vpc_cidr_block" {
  default = "<IP_ADDRESS>/16"
}

variable "public_subnet_blocks" {
  default = [
    "<IP_ADDRESS>/24",
  ]
}

variable "private_subnet_blocks" {
  default = [
    "<IP_ADDRESS>/24",
  ]
}

variable "networks_common_tags" {
  default = {
    owner_name  = "Localhost"
    owner_email =<EMAIL_ADDRESS>    description = "Managed by Terraform"
  }
}

locals {
  env = "${terraform.workspace}"

  remote_states_bucket = {
    "default" = ""
    "dev"     = "${var.application}-tfstates-dev"
    "preprod" = "${var.application}-tfstates-preprod"
    "prod"    = "${var.application}-tfstates-prod"
  }

  terraform_tfstates_key = {
    "default" = ""
    "dev"     = "${var.application}/terraform-dev"
    "preprod" = "${var.application}/terraform-preprod"
    "prod"    = "${var.application}/terraform-prod"
  }
}

# outputs.tf
output "private_subnets_cidr" {
  description = "List of private subnets CIDR"
  value       = ["${module.network.private_subnets_cidr}"]
}

output "private_subnets_id" {
  description = "List of private subnets id"
  value       = ["${module.network.private_subnets_id}"]
}

output "public_subnets_cidr" {
  description = "List of public subnets CIDR"
  value       = ["${module.network.public_subnets_cidr}"]
}

output "public_subnets_id" {
  description = "List of public subnets id"
  value       = ["${module.network.public_subnets_id}"]
}

output "vpc_cidr" {
  description = "VPC CIDR"
  value       = "${module.network.vpc_cidr}"
}

output "vpc_id" {
  description = "VPC id"
  value       = "${module.network.vpc_id}"
}

How to reproduce
$ terraform init
$ terraform plan

How to fix
--- a/aws/backbone/outputs.tf
+++ b/aws/backbone/outputs.tf
@@ -20,7 +20,7 @@ output "public_subnets_id" {

 output "vpc_cidr" {
   description = "VPC CIDR"
-  value       = "${aws_vpc.main.cidr}"
+  value       = "${aws_vpc.main.cidr_block}"
 }
```

@BastienM What happened is that this output has always been wrong and has never worked for anyone using it.
Starting with Terraform 0.11, outputs using incorrect values will now error, rather than just being ignored.
Thanks for catching this though :) ! 🚀 👍


Method getPlainBodyText, getPlainBody dont exsist in class Zend_Mail

Zend_Mail is the type of property _mail of class Zend_Mail_Transport_Abstract.
FroshMailCatcher\Components\DatabaseMailTransport extends this class and therefore not use these methods on $this->_mail, as it causes an error when calling the send method of an object of type Zend_Mail passing the service mailtransport of shopware 5.7.18 as the argument.

Thank you!


Switch to ryu for float to string

[x] I agree to follow the project's code of conduct.
[ ] I added an entry to CHANGES.md if knowledge of this change could be valuable to users.
[x] I ran cargo fmt

I'm not sure that this is using ryu for all geometry types, because I had to update all the point/linestring tests because ryu was printing out 1.0 instead of 1. But I didn't have to change the polygon tests:
https://github.com/georust/wkt/blob/e1d838de2218f410422da28a23c26a7f6329505d/src/types/polygon.rs#L157
Closes https://github.com/georust/wkt/issues/118

I'm not convinced this is a good idea. From the rustc issue:

As I understand it, the fact that short numbers perform worse is an inherent aspect of the algorithm. Dtoa goes left to right and avoids generating too many noise digits, so the performance is better on short numbers as reflected in the table. Ryū generates an exact representation and then goes right to left removing noise digits, so the performance is better on the longest numbers.

The Ryū benchmarks all focus on a random distribution of numbers, and those have on average a lot of digits.

dtoa might be a better choice, then, given that real-world coordinates should have fewer fractional digits?
Also: https://xkcd.com/2170/.

Since this is seemingly a straight forward performance proposal, we should be able to measure it.  Can you include any benchmarks using plausible real world data that shows improvement?
Related: #121
Note: There were no measurable perf differences for me with the existing write benchmark. It's likely that the existing data we've included in the benchmarks is not representative of real world data, so I'd be happy to include different data in the benchmarks if it's useful to show the improvements here.
That said, if we have to contrive really crazy data to get a measurable perf improvement — e.g. if it's only an improvement for people providing gigabytes of molecular level GPS precision (as an extreme example), and a regression for everybody else, then obviously we shouldn't do it.

There were no measurable perf differences for me with the existing write benchmark.

We could set up Criterion, I guess. And it might be worth comparing to dtoa, which has the same API.

There were no measurable perf differences for me with the existing write benchmark.

We could set up Criterion, I guess. And it might be worth comparing to dtoa, which has the same API.

What do you mean? We're already using criterion AFAICT.


[NPU] fix ut question: test_zero_dim.

fix ut question: test_zero_dim.

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


Fix height of filters

Basically adds flexbox to elements and removes some useless <span>.
Close #804

@lkiesow Thanks for these suggestions. It looks much better now.

Close #803


Provide guidance on how to properly release unmanaged resources for t…

…hread-unsafe APIs
Provide the guidance that developers lack on how to avoid heap corruption when releasing unmanaged buffers.
Summary
Describe your changes here.
Fixes #Issue_Number (if available)

Unfortunately, we'll have to revert this PR. This is in the design guidelines, which is copyrighted material. We can't change it. I requested the engineering team for a way to block the edit button on this section.


fix warning of showOverlay being a number

typo using & instead of &&' resulting the isShowOverlaybecoming a number (hence the warning on passing a number to theshowOverlay` property when boolean is expected)

@rpocaznoi Thank you for this PR 👍


rnn.bidirectional_rnn  cause a problem

code:
import tensorflow as tf
from tensorflow.models.rnn import rnn,rnn_cell

seq_length = 5
rnn_size = 6
input_data = [[1,2,3,4,5],[6,1,8,9,10],[11,12,1,14,15]]
with tf.device("/cpu:0"):
 embedding = tf.get_variable("embedding", [20, rnn_size])
 result = tf.nn.embedding_lookup(embedding, input_data)
 inputs = tf.split(1,seq_length,result)
 inputs = [tf.squeeze(input_, [1]) for input_ in inputs]

cell_bw = rnn_cell.BasicLSTMCell(rnn_size)
cell_fw = rnn_cell.BasicLSTMCell(rnn_size)
bi = rnn.bidirectional_rnn(cell_fw,cell_bw,inputs,cell_fw.zero_state(3, tf.float32),cell_bw.zero_state(3, tf.float32),sequence_length=5)

with tf.Session() as session:
    tf.initialize_all_variables().run()
    print(session.run(bi))

error:
"Shapes %s and %s must have the same rank" % (self, other))
ValueError: Shapes TensorShape([]) and TensorShape([Dimension(None)]) must have the same rank
it seem that the inputs have a problem, Can you tell me why ?

Can you include a full stack trace? When I try to run your code I get a different error (also shape-related).

(Assigning this to @ebrevdo, since he's most familiar with this code. I suspect he'll also need a stack trace.)

Yes - stack trace is helpful.  But from the get-go looks like you're feeding a sequence_length scalar but should feed a [batch_size] length vector; perhaps [5, 5, 5] ?

@ebrevdo, You are right. Problem has been solved。
Thank you for your attention

Great!  Closing this issue.


Microsoft.Rest.SerializationException: Unable to deserialize the response.

Hi, during log analysis we found that we  were getting lots of Microsoft.Rest.SerializationException: Unable to deserialize the response. on 1 June 2018 on the directline channel..  Timestamp : 2018-06-01T20:10:29.9738394Z
Was bot service down during that time? Was it from Microsoft end or on our end?

Can you please provide a conversation ID, channel, and time range?

It happened on 1 June on lots of conversations. Some of the id's are

6iWVu4Imyc0BYgSpmRXu7n - 2018-06-01T19:50:56.2583326Z
G9ulqyzmOSID9A6tqCjXcP - 2018-06-01T19:51:54.711801Z
I2TYtc9F1ZKFvXaydCiGMc - 2018-06-01T21:01:01.1870446Z
DnzJguQILQLBDXw1O4Agev - 2018-06-01T21:01:31.2501516Z
CUZ8Bsyds1iAF9SBiED6vI - 2018-06-01T21:06:42.6035772Z
9GgREiA46po32RV2v5KIdm - 2018-06-01T22:52:54.1930937Z

The channel is directline.

Thanks, we will take a look

Sorry that it took so long to get back to you, there was no outage on June 1st.


A bug for the search button in the toolbar

Hi,
when i click three or more times on the search button in the toolbar，the search button will be disabled unexpectedly
see http://jsfiddle.net/ya9eerb5/9/
(when you click three times on the search button, you can see the problem)

Seems to be broken since this commit: https://github.com/vitmalina/w2ui/commit/becedb711534d3e0844deece9570437245370b25
However, other menus in the toolbar seem not to be affected.
And if you search something in the grid with (either with the search dialog or the search input) and you break the search dialog by clicking the search button, you can restore the functionatlity by clicking the "clear search" button in the search input.

Seems to be fixed, can no longer be reproduced in fiddle
Please close, unless you can still reproduce the issue.


[tnx] version bump to 2.15.2

Description
Brief description of what this PR is about
Updating the inf2 DLC to 2.15.2 SDK

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

@tosterberg and @sindhuvahinis please confirm nothing changes need here: https://github.com/deepjavalibrary/djl-serving/blob/master/serving/docker/scripts/install_inferentia2.sh#L17-L21

All versions in the install script are globbed on the patch version and do not need updates for this patch version bump.


Dev Branch: Links to anchor tags load H1 rather than target link

I recently added static TOC/navigation to my flavor of slate and now, when an H2/H3/H4 link is loaded, it loads to the H1 anchor rather than the appropriate anchor linked.
Has anyone else seen this behavior?
e.g. https://developer.bigcommerce.com/api/#customer-login-token
I've only seen this in Chrome 56/57 and not Firefox. What appears to be happening in Chrome is that the href hash isn't being respected and the _toc.js functions determines best to be the first H1 rather than following the hash.

@lord any thoughts on this would be helpful. I'm not sure if I should defer the execution of this function or if there's a code fix that is more elegant.
Edit: I've verified locally that this is also an issue in the dev branch

Turns out this is an issue in certain version of Chrome:
http://stackoverflow.com/a/38588927/4694817
$(document).ready(function () {
        var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
        if (window.location.hash && isChrome) {
            setTimeout(function () {
                var hash = window.location.hash;
                window.location.hash = "";
                window.location.hash = hash;
            }, 300);
        }
    });

Hermm — I confirmed the issue. Don't know what could be causing that, I don't think we're changing the scroll position at all? Maybe the page is taking too long to load or something? I can inspect when I get a moment at some point, but feel free to update if you find anything new!

Testing:

Moved all.js/all_nosearch.js to header or footer, the unexpected behavior continued.

Based on that, I can assume it isn't necessarily due to page load speed. Due to the mixed behavior between firefox, I can assume a couple of possible solutions (but haven't tested them yet)

wrap the function in document ready
add a wait statement
allow a variable to be assigned based on window.location.hash and have that override what best is currently getting assigned as.

I can reproduce this issue on my own project : https://grey-echo.github.io/slate/
Links to anchors work great on Firefox and Edge, but Chrome goes back to the start of the page. I'm also using the dev branch.

I think the code in #810 fixes this? It's in the dev branch (and hopefully soon master) if people want to test it out! Thanks all for helping find and fix this bug, the help is really appreciated!


Adding babun tool

Please check and accept Pull request

I used to be a babun user. I am not sure I see the need now. You can run bash on windows without trouble nowadays.

@aloisdg  Oh Okay, closing the PR


[prepared stmt]The prepared statement executes insert into select, and an error is reported when the insert table name is used as a variable

Steps to reproduce the behavior (Required)
use prepared_stmt_6d7c8184_7703_11ee_a5fd_00163e0e550b
CREATE TABLE base_tbl
                    ( `k1` date,
                    `k2` datetime,
                    `k3` char(20),
                    `k4` varchar(20),
                    `k5` boolean,
                    `v1` tinyint,
                    `v2` smallint,
                    `v3` int,
                    `v4` bigint,
                    `v5` largeint,
                    `v6` float,
                    `v7` double,
                    `v8` decimal(27,9))
                DUPLICATE KEY(`k1`, `k2`, `k3`, `k4`, `k5`)
                PARTITION BY RANGE(`k1`)
                ( PARTITION `p202006` VALUES LESS THAN ("2020-07-01"),
                PARTITION `p202007` VALUES LESS THAN ("2020-08-01"),
                PARTITION `p202008` VALUES LESS THAN ("2020-09-01") )
                DISTRIBUTED BY HASH(`k1`, `k2`, `k3`, `k4`, `k5`) BUCKETS 3;

mysql> prepare stmt_q1 from 'insert into ? select * from base_tbl where k1 is not null and k2 is not null and k3 is not null and k4 is not null and k5 is not null';
ERROR 1064 (HY000): Getting syntax error at line 1, column 12. Detail message: Unexpected input '?', the most similar input is {a legal identifier}.

Expected behavior (Required)
Here, an error is reported when the table name is used as a variable.
This should be supported?
Real behavior (Required)
error
StarRocks version (Required)

You can get the StarRocks version by executing SQL select current_version()

mysql> select current_version();
+--------------------+
| current_version()  |
+--------------------+
| branch-3.2-c4f26b3 |
+--------------------+
1 row in set (0.01 sec)

this is expected, ? can not show up in identifier places like db/table/columnname etc.


[FEATURE] Add ability to start a game without THCRAP

Describe the solution you'd like
In the path stack list a Vanilla option should appear.
If used the game should be launched directly.

Done 4c895c6a7365741c1ad9ef37964647f535f62800


Add support for MSSQL connection rerouting

This implements support for the ENVCHANGE type 20 message from the server, which asks the client to reconnect to the given host:port. This makes this client work when connecting to Azure SQL from within the Azure network.

We're extremely grateful for the effort you put into this PR. However, as we will be closing up the source of the MSSQL driver we can no longer accept outside contributions to its code. If you are currently using MSSQL for non-profit or open-source purposes, you will be able to request a free license to continue using it after the 0.5 release.


Slick-Cloned adding empty ids that are flagged on W3C validation & parsing reports

Hi,
Not sure if this is the right place to ask this but we are using slick with slick cloned to have an infinitely scrolling section where items are repeated. The opener of each div in the code when inspected in the browser is rendering like this when it is cloned...
<div class="slick-slide slick-cloned" data-slick-index="4" id="" aria-hidden="true" tabindex="-1">
Using the W3C Nu HTML Checker via the bookmarklet shows these empty IDs are being flagged as errors due to duplication.
Is this a know issue with a fix or something not raised before? Is there a way to stop it generating IDs completely?
Thanks

Hi,
I faced the same issue. here my fix
In slick.js line 2423 - version 1.8.1
 $(_.$slides[slideIndex]).clone(true).attr('id', 'slick-cloned' + _.instanceUid + slideIndex)


[Masthead A11Y]: None of the descendent elements with "menuitem" role is tabbable

Description
Hi, while using the L1 masthead (contained in DotcomShell @ ibmdotcom-react), we can find that the <li role="menuitem">  elements in masthead do not have a tabindex="0" attribute.
I understand that the anchor inside the list-item has a tabindex="0" but,
this was raised as a violation while scanning the page (L1 is used in that page) with IBM Equal Access Accessibility Checker.
Thanks!

Component(s) impacted
DotcomShell of ibmdotcom-react
Browser
No response
Carbon for IBM.com version
@carbon/ibmdotcom-react: "^1.31.1"
Severity
Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.
Application/website
ibm.com/impact
Package
@carbon/ibmdotcom-react
CodeSandbox example
https://www.ibm.com/standards/carbon/react/?path=/story/components-masthead--with-l-1
Steps to reproduce the issue (if applicable)
This can be inspected in the docs for the masthead L1 element as shown in the image.
As you can see, no tabindex="0"

Release date (if applicable)
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate issues

Just a heads-up. Thanks!


Unexpected "shadows" with SS reflections

Godot version:
Godot Engine v3.1.2.stable.custom_build
OpenGL ES 3.0 Renderer: GeForce GTX 970/PCIe/SSE2
OS/device including version:
Linux 5.4.7-arch1-1
Issue description:
A reddit commenter pointed out some unusual visual artifacts in my game with SS reflections. It almost appears that a mesh is casting shadows over the reflections, but there's no light source behind the mesh that would be casting those shadows.

Possibly related to https://github.com/godotengine/godot/issues/9017, https://github.com/godotengine/godot/issues/15527, https://github.com/godotengine/godot/issues/17995
Steps to reproduce:

Create a plane with a SpatialMaterial that has roughness=0, metallic=1
Create a cube with a SpatialMaterial that has emission=4
In the environment, set Background.mode=CustomColor=black, and enable SS Reflections
The cube should reflect off the plane
Add another MeshInstance and move it around between the cube and the camera
Note that it blocks parts of the reflection, even if it is not between the cube and the plane

Minimal reproduction project:
example.zip

^^^ note that the sphere is well above the cube in this picture, but it is taking a "chunk" out of the reflection.

Glad to see you were able to isolate and replicate the issue!
Here is a quick gif from your project that shows it in action.

I noticed even the laser beams in your video cause the same effect.

I'm not sure if this is a bug or a limitation of the screen-space reflection algorithm.

Rendering > Quality > Depth Prepass > Enable does not change it. Setting no_depth_test on the sphere does (though isn't a viable solution), and setting depth_draw_mode to Never produces a different effect:

Thta's a limitation of SS Reflections work, not even in big budget games like RE2 Remake found a way to fix it.

Makes sense, feel free to close if this is just considered an implementation limitation that we're unlikely to fix in Godot. At least in my game, I consider it pretty minor, I never even noticed it without @golddotasksquestions's eagle eye!

We should improve the documentation to mention such limitations. I'll try to do this ASAP.


self collision

I used Piper arm in genesis, why It can not avoid self collision? How to solve it?

you can turn it on in rigid_options :)

When creating the scene, set rigid_options=gs.options.RigidOptions(enable_self_collision=True, *other_args)


Compatibilities of node versions

Please mention that this package is only compatible with node version 8. Because it uses async/wait functions.

I see this too. I like this API's approach, and it would be great if it could be compatible with Node 6.10 - that's the highest available Node version for my AWS stuff.

The node mean ami is severely outdated. I ended up spinning up an ubuntu 16.04 and installing node 8 myself. Might be worth the effort.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Geoff Taylor<EMAIL_ADDRESS>Sent: Sunday, August 27, 2017 6:16:41 AM
To: nothingisdead/npm-kraken-api
Cc: Subscribed
Subject: Re: [nothingisdead/npm-kraken-api] Compatibilities of node versions (#43)
I see this too. I like this API's approach, and it would be great if it could be compatible with Node 6.10 - that's the highest available Node version for my AWS stuff.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/nothingisdead/npm-kraken-api/issues/43#issuecomment-325197776, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AaCWVlDVq3nSLNgWzGzlTkcg72tEt1Uyks5scWw4gaJpZM4PDuhQ.

BTW... the api had been working perfectly for me. Thank you.
Get Outlook for iOShttps://aka.ms/o0ukef

From: John Elkins<EMAIL_ADDRESS>Sent: Sunday, August 27, 2017 8:55:51 PM
To: nothingisdead/npm-kraken-api; nothingisdead/npm-kraken-api
Cc: Subscribed
Subject: Re: [nothingisdead/npm-kraken-api] Compatibilities of node versions (#43)
The node mean ami is severely outdated. I ended up spinning up an ubuntu 16.04 and installing node 8 myself. Might be worth the effort.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Geoff Taylor<EMAIL_ADDRESS>Sent: Sunday, August 27, 2017 6:16:41 AM
To: nothingisdead/npm-kraken-api
Cc: Subscribed
Subject: Re: [nothingisdead/npm-kraken-api] Compatibilities of node versions (#43)
I see this too. I like this API's approach, and it would be great if it could be compatible with Node 6.10 - that's the highest available Node version for my AWS stuff.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/nothingisdead/npm-kraken-api/issues/43#issuecomment-325197776, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AaCWVlDVq3nSLNgWzGzlTkcg72tEt1Uyks5scWw4gaJpZM4PDuhQ.

Async/ await is a much better approach to promises. Makes for a very clean and succinct code base. I refactored an entire AWS api to use async/await and it was def worth it.
Get Outlook for iOShttps://aka.ms/o0ukef

From: John Elkins<EMAIL_ADDRESS>Sent: Sunday, August 27, 2017 8:56:48 PM
To: nothingisdead/npm-kraken-api; nothingisdead/npm-kraken-api
Cc: Subscribed
Subject: Re: [nothingisdead/npm-kraken-api] Compatibilities of node versions (#43)
BTW... the api had been working perfectly for me. Thank you.
Get Outlook for iOShttps://aka.ms/o0ukef

From: John Elkins<EMAIL_ADDRESS>Sent: Sunday, August 27, 2017 8:55:51 PM
To: nothingisdead/npm-kraken-api; nothingisdead/npm-kraken-api
Cc: Subscribed
Subject: Re: [nothingisdead/npm-kraken-api] Compatibilities of node versions (#43)
The node mean ami is severely outdated. I ended up spinning up an ubuntu 16.04 and installing node 8 myself. Might be worth the effort.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Geoff Taylor<EMAIL_ADDRESS>Sent: Sunday, August 27, 2017 6:16:41 AM
To: nothingisdead/npm-kraken-api
Cc: Subscribed
Subject: Re: [nothingisdead/npm-kraken-api] Compatibilities of node versions (#43)
I see this too. I like this API's approach, and it would be great if it could be compatible with Node 6.10 - that's the highest available Node version for my AWS stuff.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/nothingisdead/npm-kraken-api/issues/43#issuecomment-325197776, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AaCWVlDVq3nSLNgWzGzlTkcg72tEt1Uyks5scWw4gaJpZM4PDuhQ.

Yeah, I'd be happy to update my node version if I could but I'm using AWS Lambda and it only goes as high as Node 6.10.
I'm not against using async/await, BTW. I know other projects use Babel to compile the JavaScript they write to a lower version of JavaScript that more environments can use. How difficult would it be to put that in this project? (I did try using it to compile all my dependencies in node_modules, so that I could use this API, but it wasn't a great experience and I'm told it's not a great idea.)
Many thanks,
Geoff


Corpora for Ukrainian

Hello.
There is  a corpora call Ubercorpus for Ukrainian you can add to the project: https://lang.org.ua/en/corpora/#anchor4
In a few days will be UNLP, an event from Ukrianian NLP community and there will be presented the second version of the corpus with larger size.

Would be nice to have Ukrainian Ubercorpus to OpenLLama


Confirmed that export * as x from 'x'; produce this exact set of errors. Closing since this is a valid error for a real code issue

Problem address https://github.com/Microsoft/vscode/issues/20257#event-956595304
webpack2 Compile to achieve the desired value

It looks like you just deleted our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please either update the issue with the template and reopen, or open a new issue.


'FAILED from hot start TP' when hot_start is the exact solution

When calculating a PT flash, and providing ~an accurate hot_start guess that is the correct P and within 1K of the true solution~  the exact solution, thermo's flasher prints FAILED from hot start TP and seems to ignore the provided guess.    The error is emitted here on L742 with no indication of why the accurate guess was rejected.
If the hot_start is ~close but not exact~ the exact solution, why does it fail?  Note this does not occur for a PH flash, just PT.
The following code replicates this:
#!/usr/bin/env python

from thermo import ChemicalConstantsPackage, PRMIX, CEOSGas, FlashVL, \
    EquilibriumState, GibbsExcessLiquid
from thermo.interaction_parameters import IPDB
from thermo.nrtl import NRTL

def get_nrtl(zs: list[float], T: float = 298.15) -> NRTL:
    """Build NRTL."""
    tau_as = (
        (0,         -5.1549,    0,          0,      0),
        (5.8547,    0,          -0.40926,   0,      0),
        (0,         -0.39036,   0,          0,      0),
        (0,         0,          0,          0,      0),
        (0,         0,          0,          0,      0),
    )
    tau_bs = (
        (0,         2270.62,    284.966,    0,      0),
        (229.497,   0,          1479.46,    0,      0),
        (-216.256,  447.003,    0,          0,      0),
        (0,         0,          0,          0,      0),
        (0,         0,          0,          0,      0),
    )
    alpha_cs = (
        (0,     0.2,    0.3,    0,      0),
        (0.2,   0,      0.46,   0,      0),
        (0.3,   0.46,   0,      0,      0),
        (0,     0,      0,      0,      0),
        (0,     0,      0,      0,      0),
    )
    return NRTL(T=T, xs=zs, tau_as=tau_as, tau_bs=tau_bs, alpha_cs=alpha_cs)

def get_nrtl_flasher(
    names: list[str],
    zs: list[float] = None,
    T: float = 298.15,
    P: float = 101325,
) -> tuple[NRTL, FlashVL]:
    """Build NRTL flasher."""
    if zs is None:
        zs = [1.0/len(names)] * len(names)
    consts, props = ChemicalConstantsPackage.from_IDs(names)
    kijs = IPDB.get_ip_asymmetric_matrix('ChemSep PR', consts.CASs, 'kij')
    eos_kwargs = {'Pcs': consts.Pcs, 'Tcs': consts.Tcs, 'omegas': consts.omegas, 'kijs': kijs}
    gas = CEOSGas(PRMIX, eos_kwargs=eos_kwargs, HeatCapacityGases=props.HeatCapacityGases)

    nrtl = get_nrtl(zs=zs, T=T)
    liquid = GibbsExcessLiquid(
        VaporPressures=props.VaporPressures,
        HeatCapacityGases=props.HeatCapacityGases,
        VolumeLiquids=props.VolumeLiquids,
        GibbsExcessModel=nrtl,
        equilibrium_basis='Psat', caloric_basis='Psat',
        T=T, P=P, zs=zs)

    return FlashVL(consts, props, liquid=liquid, gas=gas)

def add_heat(flasher: FlashVL,
             zs: list[float],
             hrxn: float,
             T0: float,
             P: float = 101325,
             extra_cp: float = 0,) -> EquilibriumState:
    """Flash with Hrxn."""
    eqs: EquilibriumState = flasher.flash(T=T0, P=P, zs=zs)
    current_val = eqs.H()
    cp0 = eqs.dH_dT_P()
    hrxn_vl = hrxn * (cp0 / (cp0 + extra_cp))

    return flasher.flash(zs=zs, P=P, H=current_val + hrxn_vl)

def example():
    """Run."""
    stoich = {'nitrobenzene': -1, 'water': +2, 'aniline': +1, 'hydrogen': -3, 'methane': 0}
    flasher = get_nrtl_flasher(list(stoich.keys()))
    zs = [0, 0.81, 0.16, 0.02, 0.01]
    temp = 273.15+50  # this guess is accurate
    pres = 1750000

    hot_start = flasher.flash(zs=zs, P=pres, T=temp)
    print((hot_start.T, hot_start.H()))

    # use exact solution:
    res = flasher.flash(zs=zs, P=pres, T=temp, hot_start=hot_start)  # prints 'FAILED from hot start TP' !!!
    print(res)
    print((res.T, res.H()))

if __name__ == '__main__':
    example()

Hi Alex,
I have added a warning to the documentation saying not to use hot_start if you prefer convergence.
https://thermo.readthedocs.io/thermo.flash.html#thermo.flash.Flash.flash
Maybe one day this won't be the case but it is today. These algorithms are very complex and at this time I am not doing development on the hot_start feature.
Caleb

@CalebBell What exactly is going on to cause this issue?  Why does providing a near-solution result in "FAILED"?
I need performance, and would like to use a close initial guess if it's faster than searching the entire space from no guess.

@CalebBell I've narrowed this issue, and it's almost certainly a bug now.  The TP flash fails when given the exact solution, but the PH does not.  Could you please reopen?


Investigate potential for a "conditional" on routes

While I don't want to complicate the router more than necessary, having a concise way to add route "conditions" (e.g. a user being logged in) in the router might be handy.
I don't want to escalate to the level of Laravel's powerful Middleware, but a simple ->if(Auth::loggedIn()) type of method you can chain onto the Router::get() method is worth investigating.
Would also address steampixel/simplePHPRouter#44.

I was about to make an issue suggesting this.
It would be great to be able to check individual routes, or guard prefixes/groups.
I'm using this project for an API, and just ended up making a class to check for a header, that I call on every route.

Since I'm revisiting this project I might as well start looking into this again. 😄


[Windows] Update documents for Antrea proxy

In version 0.8.0, Antrea implements Kubernetes ClusterIP Service
leveraging OVS. This patch updates the related description in
Windows documents:

Kubernetes ClusterIP Service function is provided by Antrea instead
of kube-proxy.
kube-proxy still provide NodePort Service.
NetworkPolicy for service is full supported.

Signed-off-by: Rui Cao<EMAIL_ADDRESS>

/skip-all

/skip-all

/skip-all

/skip-all


Add Zabbix Security Advisories by HTTP Agent

Related to my blog post at https://whatsuphome.fi/whatsuphome/part95

Thanks for your integration.
But could you remove the .gitignore file from the PR?

Hello, @jannepikkarainen  !
What a great idea and implementation!
But the established rules of working with GitHub require interaction from you: you need to send a new commit and delete these files. In this case, the repository owner just needs to accept the commit.


Add Advanced Skills

The title.

Advanced Skills are present, or should be, as a dynamic row, beneath the Basic Skills. You have to add each one. There are some formatting issues I'm working on.
Please confirm you see this functionality?

Yes it is there. It does seem logical that the skills aren't listed which the character doesn't have and the adding isn't a problem when you create one PC for yourself. But when you create 50 characters the additional work becomes a chore. This should also fix #3 for advanced skills.

Closing. Advanced Skill are present. An enhancement is open to correct the formatting of all skills, basic and advanced.


fix some wording issue for download page

@MSraye : Thanks for your contribution! The author, @stevestein, has been notified to review your proposed change.

Closing this one - per https://github.com/MicrosoftDocs/sql-docs/pull/1779


Document how to ignore AARs

There are some AARs included in the project I tried using Licensee on (e.g. specified like this in my build.gradle: implementation(name:'my-lib-3.5.0', ext:'aar')), and the validation was failing because there wasn't a corresponding POM file included in the project:
Execution failed for task ':app:licensee'.
> Could not find my-lib-3.5.0-.pom (:my-lib-3.5.0:).
  Searched in the following locations:
      file:/Users/me/src/MyApp/app/libs/my-lib-3.5.0.pom

Through some trial and error, I was able to figure out that it could be ignored by configuring Licensee with ignoreDependencies('', 'my-lib-3.5.0'), but it wasn't obvious at first. Originally I tried ignoreDependencies('my-lib-3.5.0'), not realizing that I needed to specify the name as the artifactId, not the groupId.
I wonder if this could be documented, or if the error message could be improved to make it easier to figure this out?

There's nothing aar-specific about this. It seems like you're using a flat folder Maven repo and have the aar dropped into that folder which Gradle exposes to the dependency system as a dependency with no group and only a name.
I'll try to reproduce it in a test fixture and make sure the build doesn't fail but instead it just reports it as not having a pom.


doc: update allow cert config

Signed-off-by: TXXT<EMAIL_ADDRESS>
What problem does this PR solve?
update allow cert config
related PR: https://github.com/tikv/tikv/pull/7134
What is changed and how it works?
doc
Related changes
NO
Check List

No code

Release note

This should be updated in https://github.com/tikv/website/tree/master/content/docs


invalid json response body

I get this error some times when use getDevicePowerState
g: FetchError: invalid json response body at https://eu-api.coolkit.cc:8080/api/user/device/status?deviceid=10007df37d&appid=YzfeftUVcZ6twZw1OoVKPRFYTrGEg01Q&nonce=uf1lhtn&ts=1604043174&version=8&params=switch|switches reason: Unexpected token < in JSON at position 0
at /usr/src/node/node_modules/ewelink-api/node_modules/node-fetch/lib/index.js:272:32
Thanks!

I add this code to mixins/makeRequest.js after line 42, because the API ramdomly answer with a crazy html shop code.
Maybe is a bad solution but works for me.
let request = await fetch(requestUrl, payload);
let contentType = request.headers.get("content-type");

while(!(contentType && contentType.indexOf("application/json") !== -1)) {
request = await fetch(requestUrl, payload);

contentType = request.headers.get("content-type");
}

Ok thanks iwulmtest it

Work Great!

I’m very happy it work!! Maybe the fix must be included in the oficial code. How?

I'm writing here because I think my problem could fit in here.
I have the following error:
"FetchError: invalid json response body at https://eu-api.coolkit.cc:8080/api/user/login reason: Unexpected token < in JSON at position 0"
I have Node-Red running via IOBroker.
I installed the ewelink-contrib via the palette management of Node-Red.
Unfortunately, I can only get about 6 power state nodes online. So when I try to use 20 nodes from ewelink, only about 6 remain online. The rest are offline, with the error message I inserted above.
It is also not clear which are online and offline, this changes after small changes and a deploy. There are no wrong settings and all hardware devices are actually reachable.
I can't find this file.
mixins/makeRequest.js
I am using FileZilla and have searched the entire Pi. Can anyone help me? Where and what I need to change.
Thanks a lot

I'm writing here because I think my problem could fit in here.
I have the following error:
"FetchError: invalid json response body at https://eu-api.coolkit.cc:8080/api/user/login reason: Unexpected token < in JSON at position 0"
I have Node-Red running via IOBroker.
I installed the ewelink-contrib via the palette management of Node-Red.
Unfortunately, I can only get about 6 power state nodes online. So when I try to use 20 nodes from ewelink, only about 6 remain online. The rest are offline, with the error message I inserted above.
It is also not clear which are online and offline, this changes after small changes and a deploy. There are no wrong settings and all hardware devices are actually reachable.
I can't find this file.
mixins/makeRequest.js
I am using FileZilla and have searched the entire Pi. Can anyone help me? Where and what I need to change.
Thanks a lot


fix: bitbucket cloud usage

Oauth credentials usage was broken: different url is required for oauth flow than for api
Removed need for url parameter if type is == "cloud"
CA cert usage in CURL was broken due to if using -z instead of -n: Only appended certificate if string was empty (typo?)
Enforce linux/amd64 platform in debug script, to allow arm to use it also (e.g. M1 processors)

Hey @idr0id, opened this PR to fix a couple things that, at least for me were failing. Description is in commit message for future reference :)
Created this PR cause somethings where not working for cloud. Tested in bitbucket cloud with M1. Hope this helps more people
If for some reason you want to test the latest version, I have a docker image available:
ghcr.io/doutorfinancas/concourse-git-bitbucket-pr-resource:latest


Issue 43420: Swap jTidy --> jSoup

Rationale
jTidy appears abandoned and doesn't support common HTML5 tag elements
Issue #43420: Replace jTidy with jSoup...or similar
Related Pull Requests

https://github.com/LabKey/server/pull/95

Changes

Swapped jSoup library in place of jTidy
TODOs

Additional code clean up
Expand unit tests
Use experimental flag/deprecation scheme?

Updated draft PR to get fresh test results: https://github.com/LabKey/platform/pull/4542


[workaround] fix cpu offloading

Description
TBD
Please don't merge.
TODO
will be cleaned and updated if checks success

/intelci: run

@napetrov It seems to me that we can merge this fix.
In follow up I am going to check if _Daal4PyContextReset is still required. If this is not used, I will remove it at all.


Recording - Open Channel/ iOS - Display Open Graph tags in a message

Link to documentation:
https://sendbird.com/docs/chat/v4/ios/guides/open-channel-advanced#2-display-open-graph-tags-in-a-message

@justinbaldwin  reviewed, good for publishing


How to integrate with a pure SwiftUI app?

MacMenuBar looks great, so I wanted to try it on one of my apps. Since it is an existing app, I cannot use the templates. I have not been able to run MacMenuBar in in a "pure swiftUI" environment with an entry point like:
@main
struct MyApp: App {
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
var body: some Scene {
    WindowGroup {
        ContentView()
    }
    .commands {
        SidebarCommands()
    }
}

}
Following instructions in this situation did not yield success.
Would it be possible to extend the (otherwise excellent) documentation with a setup instruction for configs like the above?

Thank you for the compliments!
@main had recently been introduced when I implemented the framework that became SwiftUI, and the app I was using it in used the older Cocoa app delegate model. I do plan to update it for use with pure SwiftUI, but I haven't gotten around to working through the details.  In the mean time, I don't think it would be too difficult in your case since you're using an explicit app delegate, and actually helping you do it will help me make progress toward updating MacMenuBar for the general case, if you don't mind some answering questions and doing some experimentation.
First the obvious thing: Does your AppDelegate file import MacMenuBar and call setMenuBar(to:) in its applicationDidFinishLaunching method like the project template code does?  Assuming that code is in place, I'm guessing that WindowGroup's .command may be overriding the menu bar that was set up in the AppDelegate, because I'm guessing it's called after applicationDidFinishLaunching.   Print statements after setMenuBar(to:) and SideBarCommands() would verify if that's the case (or just set break points and note when they they are hit).
If the project is in a public repo, providing the link would allow me to answer a lot of questions myself from your specific project.  Otherwise could you confirm my suspicion is correct?

Thanks for your reply.
Adding some print statements proves that .commands { SomeCommands() } in SwiftUI's MyApp is being called before setMenuBar(to: MainMenuBar()) in the AppDelegate.
PS: Unfortunately I do not have my project in a public repo, but you could generate a new Xcode 'pure' SwiftUI project, add your project package and set it up with something like:
@main
struct MyApp: App {
    @NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate

    var body: some Scene {
        WindowGroup {
            ContentView()
        }
        .commands {
            SomeCommands()
        }
    }
}

struct SomeCommands: Commands {
    init() {
        print("TEST MENUBAR IN COMMANDS")
    }
    var body: some Commands {
        CommandGroup(after: .newItem) {
            Section {
                Button("Blah Folder", action: { print("bla") })
            }
        }
    }
}

class AppDelegate: NSObject, NSApplicationDelegate {
    func applicationWillFinishLaunching(_ notification: Notification) {
        setMenuBar(to: MainMenuBar())
        print("TEST MENUBAR IN applicationWillFinishLaunching")
    }
}

Any progress here?  I'm running into a similar issue in trying to integrate MacMenuBar with a pure SwiftUI App.
For example my @main code looks like this:
@main struct TestStuffApp: App {     var body: some Scene {         WindowGroup {             ContentView()         } }

I have found a solution, but it feels like a hack, so I haven't decided yet if I want to incorporate it directly into MacMenuBar.  The problem really does just boil down to setting the MacMenuBar's NSMenu in NSApp.mainMenu, which I was doing in the explicit app delegate model that SwiftUI originally used.  Once @main was introduced, it implicitly provides it's own app delegate, and even if you do provide your own, there's a kind of tug-of-war over who gets to set NSApp.mainMenu.
The solution I found is to wait to set it until the main run loop starts processing async tasks.  This works, but I kind of don't like it.  I may end up incorporating it into the package anyway, simply because I haven't been able to think of a better solution yet.
In the mean time, you can easily do it in your own code:
@main
struct TestStuffApp: App {
    init()
    {
        DispatchQueue.main.async {
            NSApplication.shared.delegate?.setMenuBar(to: MainMenuBar())
        }
    }

    var body: some Scene {
        WindowGroup {
            return ContentView()
        }
    }
}

I decided to incorporate the change into SwiftUI in v0.0.12.  I also added and extension on SwiftUI's App so you can set the main menu more succinctly:
import SwiftUI
import MacMenuBar

@main
struct TestStuffApp: App {
    init()  { setMenuBar(to: MainMenuBar())  }

    var body: some Scene {
        WindowGroup {
            return ContentView()
        }
    }
}


Update Get-GSDriveFileList.ps1

Correct how $Filter and $ParentFolderId are concatenated when both options are used.

Thanks, @WJurecki !! Should be able to review and merge tonight along with #173 😄


AttributeError: 'module' object has no attribute 'MOVPlugin'

Currently available floss binary packages for Linux and OSX always fail with
AttributeError: 'module' object has no attribute 'MOVPlugin'

after the UTF-16 strings extraction.
Full traceback:
Traceback (most recent call last):
  File "floss/main.py", line 716, in <module>
  File "floss/main.py", line 670, in main
  File "floss/main.py", line 276, in select_plugins
  File "floss/main.py", line 110, in get_all_plugins
AttributeError: 'module' object has no attribute 'MOVPlugin'

Thanks! I confirmed this for the Linux nightly build and will look more into it later today.
In the meantime please use the 1.3 release available at https://github.com/fireeye/flare-floss/releases.

Fixed via #245. The nightly builds work again.


How to Lazy load child components.

lazy loading with children works fine but if i have routes like
const routes: Routes = [
    {
        path: "app",
        component: AppComponent,
        canActivate: [AuthGuardService],
        children: [
            {
                path: "", component: ApplicationParentComponent,
                children: [
                    {
                        path: "", component: DashboardComponent,
                        canActivate: [AuthGuardService],
                        resolve: {
                            saleTypes: SaleTypeResolver,
                            orderAdjustmentTypes: OrderAdjustmentTypeResolverService,
                            orderRoleTypes: OrderRoleTypeResolver,
                            orderStatusTypes: OrderStatusTypeResolver,
                            facilityTypes: FacilityTypeResolver,
                            facilityRoleTypes: FacilityRoleTypeResolver,
                            partyRoleTypes: PartyRoleTypeResolver,
                            partyRelationshipTypes: PartyRelationshipTypeResolver,
                        }
                    },
                    {
                        path: "inventory", component: FacilityInventoryItemsComponent
                    },
                    {
                        path: "cart", component: SaleOrderComponent, resolve: {
                            orderAdjustmentTypes: OrderAdjustmentTypeResolverService
                        }
                    },
                    // { path: "orderDetails", component: OrderDetailComponent },
                    // { path: "order", component: CartDetailComponent },
                    { path: "more", component: MoreComponent },
                    { path: "products", component: ProductsComponent },
                    {
                        path: "return", component: StockAdjustmentComponent, resolve: {
                            saleTypes: SaleTypeResolver,
                            orderStatusTypes: OrderStatusTypeResolver,
                            stockAdjustmentTypes: StockAdjustmentTypeResolverService,

                            facilityTypes: FacilityTypeResolver,
                            facilityRoleTypes: FacilityRoleTypeResolver
                        }
                    },
                    {
                        path: "stocktransfer", component: StockTransferComponent, resolve: {
                            facilityTypes: FacilityTypeResolver,
                            facilityRoleTypes: FacilityRoleTypeResolver,
                            orderRoleTypes: OrderRoleTypeResolver,
                            orderStatusTypes: OrderStatusTypeResolver,
                            saleTypes: SaleTypeResolver
                        }
                    },
                    { path: "searchCustomer", component: SearchCustomerComponent },
                    { path: ":id", component: FacilityInventoryItemDetailComponent },
                ]
            },
        ]
    },
    { path: "login", component: LoginComponent },
    {
        path: "",
        redirectTo: "/app", pathMatch: "full"
    },
];

then how can we implement the lazy loading in child components ?

Hi @MuhammadTahir92,
You can review the block post in this link, where it is described how to set up the lazy loading technique in a NativeScript Angular project.
For further questions, please use our forum or StackOverflow. This repository should be used only for bug reporting and feature request


Port to TypeScript

Hi, I've been doing some work on node-openid, porting it to TypeScript just as a hobby, but that has left me with a more consistent (in terms of coding style, idioms and formatting) library, and the strong typing has made it less prone to a whole host of errors and typos.
I haven't changed the API at all, neither internal nor external; though the base64 script has been removed in favor of using Buffer which is built-in and gives use these facilites. Also, it has been somewhat updated to ES6 (mostly the module API), though TypeScript compiles it down to ES5.
I have also added dependencies to npm versions of built-in packages, as to have a versioned API to interface with, and not depend on the node version being used.
At this time, I feel comfortable asking for it to be merged upstream (it does pass npm test). I realize this would mean for the library to change language (though a very similar superset of JS that compiles down to it; and maintaining the exact same API), but I think this could be considered, as to create more stable code and reduce errors.
In the case this couldn't be acceptable, maybe the compiled JS could be the thing merged upstream with a few fixes, not with many changes as basically all the compiler does is to check types, strip the type annotations and compile some ES6 back to ES5.
How does the maintainers see this? You can see my progress at the typescript branch of my fork. Would any more work be required before being merged? I'd be willing to do it, as well as answering any questions or concerns you may have.

I fail to see what we gain here. The arguments you give are either generic for any TypeScript work, or not related to TypeScript. What's the real gain for node-openid that makes this worthwhile?

No response, closing.


HHL new algorithm should be able to take python lists as matrix and vector but right now asking numpy arrays for these

Information

Qiskit Terra version: 0.17.1
Python version: 3.6
Operating system: Windows 10

What is the current behavior?
For the following code to execute -
from qiskit.algorithms.linear_solvers import HHL
hhl = HHL()
result = hhl.solve(matrix, vector)
result.state.draw('mpl', style='iqx')
matrix and vector have to be declared as numpy arrays like below but ideally they should just be python lists
import numpy as np
matrix = np.array([[1, -1/3], [-1/3, 1]])
vector = np.array([1, 0])
This problem is in the text book also
Steps to reproduce the problem
What is the expected behavior?
Suggested solutions

Since the textbook explicitly uses lists I agree. Thanks for reporting this! 👍🏻

Hey! Maybe I could try a hand at this issue?Also, isnt HHL part of Aqua? So this issue should ideally be in that repo right?

Hey @charmerDark, were you able to fix this? If not then, I can give it a try

@charmerDark feel free to work on this! HHL used to be part of Aqua, that's right, but we recently refactored Aqua into the application modules Qiskit Nature, Qiskit Optimization, Qiskit Machine Learning and Qiskit Finance. With that refactor HHL moved to Qiskit Terra.
So this change would only be in Qiskit Terra.

@Cryoris  Could you please tell me where the tests for HHL are? I cant seem to find them