Simplify running drush, composer and yarn commands

The Problem/Issue/Bug
DrupalPod tries keeping custom image as small as possible, so it only includes ddev binary.
You can run drush, composer, and yarn commands in ddev, but it creates some friction in the user experience.
How this PR Solves The Problem
This PR makes drush, composer, and yarn commands that can run from host, but will actually run inside ddev container, in the current corresponding directory.
Edit: This PR also adds node, nvm, npx as programs that can be called from host, but run in the container.
php script was improved to use ddev exec_d instead of just ddev exec
fixes https://github.com/shaal/DrupalPod/issues/82
Manual Testing Instructions

Open this PR in Gitpod - https://gitpod.io/#https://github.com/shaal/DrupalPod/pull/83
Run composer update
Confirm composer updated packages.
Run drush cr
Confirm drush run as expected, and cache was refreshed.
Change directory - cd web/core
Run yarn install
Confirm yarn is installing core's Node dependencies.

Related Issue Link(s)
Release/Deployment notes

Composer and Yarn seem to work well, but Drush doesn't appear to pass in the command, just the call to Drush itself.
gitpod /workspace/DrupalPod (exec-d) $ drush status
Notice: running 'drush status' in ddev
Drush Commandline Tool 11.0.7

Run `drush help [command]` to view command-specific help.  Run `drush topic` to read even more documentation.

 Available commands:
 _global:
   browse                                         Display a link to a given path or open link in a browser.
   drupal:directory (dd)                          Return the filesystem path for modules/themes and other key folders.
   generate (gen)                                 Generate boilerplate code for modules/plugins/services etc.
   help                                           Display usage details for a command.
   jn:get                                         Execute a JSONAPI request.
   list                                           List available commands.
   mk:docs                                        Build a Markdown document for each Drush command/generator that is available on a site.
   runserver (rs, serve)                          Runs PHP's built-in http server for development.
   version                                        Show Drush version.
 cache:
   cache:clear (cc)                               Clear a specific cache, or all Drupal caches.
   cache:get (cg)                                 Fetch a cached object and display it.
   cache:rebuild (cr, rebuild)                    Rebuild a Drupal 8 site.
   cache:set (cs)                                 Cache an object expressed in JSON or var_export() format.
   cache:tags (ct)                                Invalidate by cache tags.
 config:
   config:delete (cdel)                           Delete a configuration key, or a whole object.
   config:edit (cedit)                            Open a config file in a text editor. Edits are imported after closing editor.
   config:export (cex)                            Export Drupal configuration to a directory.
   config:get (cget)                              Display a config value, or a whole configuration object.
   config:import (cim)                            Import config from a config directory.
   config:pull (cpull)                            Export and transfer config from one environment to another.
   config:set (cset)                              Save a config value directly. Does not perform a config import.
   config:status (cst)                            Display status of configuration (differences between the filesystem configuration and database configuration).
 core:
   core:cron (cron)                               Run all cron hooks in all active modules for specified site.
   core:edit (conf, config)                       Edit drush.yml, site alias, and Drupal settings.php files.
   core:requirements (status-report, rq)          Information about things that may be wrong in your Drupal installation.
   core:route (route)                             View information about all routes or one route.
   core:rsync (rsync)                             Rsync Drupal code or files to/from another server using ssh.
   core:status (status, st)                       An overview of the environment - Drush and Drupal.
   core:topic (topic)                             Read detailed documentation on a given topic.
 deploy:
   deploy                                         Run several commands after performing a code deployment.
   deploy:hook                                    Run pending deploy update hooks.
   deploy:hook-status                             Prints information about pending deploy update hooks.
   deploy:mark-complete                           Mark all deploy hooks as having run.
 devel:
   devel:event (fne, fn-event, event)             List implementations of a given event and optionally edit one.
   devel:hook (fnh, fn-hook, hook)                List implementations of a given hook and optionally edit one.
   devel:reinstall (dre)                          Uninstall, and Install modules.
   devel:services (devel-container-services, dcs) Get a list of available container services.
   devel:token (token)                            List available tokens.
   devel:uuid (uuid)                              Generate a Universally Unique Identifier (UUID).
 entity:
   entity:delete (edel)                           Delete content entities.
   entity:save (esav)                             Load and save entities.
 field:
   field:base-info (fbi)                          List all base fields of an entity type
   field:base-override-create (bfoc)              Create a new base field override
   field:create (fc)                              Create a new field
   field:delete (fd)                              Delete a field
   field:info (fi)                                List all configurable fields of an entity bundle
 image:
   image:derive (id)                              Create an image derivative.
   image:flush (if)                               Flush all derived images for a given style.
 locale:
   locale:check                                   Checks for available translation updates.
   locale:export                                  Exports to a gettext translation file.
   locale:import                                  Imports to a gettext translation file.
   locale:update                                  Imports the available translation updates.
 migrate:
   migrate:fields-source (mfs)                    List the fields available for mapping in a source.
   migrate:import (mim)                           Perform one or more migration processes.
   migrate:messages (mmsg)                        View any messages associated with a migration.
   migrate:reset-status (mrs)                     Reset an active migration's status to idle.
   migrate:rollback (mr)                          Rollback one or more migrations.
   migrate:status (ms)                            List all migrations with current status.
   migrate:stop (mst)                             Stop an active migration operation.
 php:
   php:cli (php, core:cli, core-cli)              Open an interactive shell on a Drupal site.
   php:eval (eval, ev)                            Evaluate arbitrary php code after bootstrapping Drupal (if available).
   php:script (scr)                               Run php a script after a full Drupal bootstrap.
 pm:
   pm:enable (en)                                 Enable one or more modules.
   pm:list (pml)                                  Show a list of available extensions (modules and themes).
   pm:security (sec)                              Check Drupal Composer packages for pending security updates.
   pm:security-php (sec-php)                      Check non-Drupal PHP packages for pending security updates.
   pm:uninstall (pmu)                             Uninstall one or more modules and their dependent modules.
 queue:
   queue:delete                                   Delete all items in a specific queue.
   queue:list                                     Returns a list of all defined queues.
   queue:run                                      Run a specific queue by name.
 role:
   role:create (rcrt)                             Create a new role.
   role:delete (rdel)                             Delete a new role.
   role:list (rls)                                Display a list of all roles defined on the system.
   role:perm:add (rap, role-add-perm)             Grant specified permission(s) to a role.
   role:perm:remove (rmp, role-remove-perm)       Remove specified permission(s) from a role.
 site:
   site:alias (sa)                                Show site alias details, or a list of available site aliases.
   site:alias-convert (sa-convert, sac)           Convert legacy site alias files to the new yml format.
   site:install (si, sin)                         Install Drupal along with modules/themes/configuration/profile.
   site:set (use)                                 Set a site alias that will persist for the current session.
   site:ssh (ssh)                                 Connect to a Drupal site's server via SSH, and optionally run a shell command.
 sql:
   sql:cli (sqlc)                                 Open a SQL command-line interface using Drupal's credentials.
   sql:connect                                    A string for connecting to the DB.
   sql:create                                     Create a database.
   sql:drop                                       Drop all tables in a given database.
   sql:dump                                       Exports the Drupal DB as SQL using mysqldump or equivalent.
   sql:query (sqlq)                               Execute a query against a database.
   sql:sanitize (sqlsan)                          Sanitize the database by removing or obfuscating user data.
   sql:sync                                       Copy DB data from a source site to a target site. Transfers data via rsync.
 state:
   state:delete (sdel)                            Delete a state entry.
   state:get (sget)                               Display a state value.
   state:set (sset)                               Set a state value.
 theme:
   theme:enable (then)                            Enable one or more themes.
   theme:uninstall (thun)                         Uninstall theme.
 twig:
   twig:compile (twigc)                           Compile all Twig template(s).
   twig:unused                                    Find potentially unused Twig templates.
 updatedb:
   updatedb (updb)                                Apply any database updates required (as with running update.php).
   updatedb:status (updbst)                       List any pending database updates.
 user:
   user:block (ublk)                              Block the specified user(s).
   user:cancel (ucan)                             Cancel user account(s) with the specified name(s).
   user:create (ucrt)                             Create a user account.
   user:information (uinf)                        Print information about the specified user(s).
   user:login (uli)                               Display a one time login link for user ID 1, or another user.
   user:password (upwd)                           Set the password for the user account with the specified name.
   user:role:add (urol, user-add-role)            Add a role to the specified user accounts.
   user:role:remove (urrol, user-remove-role)     Remove a role from the specified user accounts.
   user:unblock (uublk)                           Unblock the specified user(s).
 views:
   views:analyze (va)                             Get a list of all Views and analyze warnings.
   views:dev (vd)                                 Set several Views settings to more developer-oriented values.
   views:disable (vdis)                           Disable the specified views.
   views:enable (ven)                             Enable the specified views.
   views:execute (vex)                            Execute a view and show a count of the results, or the rendered HTML.
   views:list (vl)                                Get a list of all views in the system.
 watchdog:
   watchdog:delete (wd-del, wd-delete, wd)        Delete watchdog log records.
   watchdog:list (wd-list)                        Interactively filter the watchdog message listing.
   watchdog:show (wd-show, ws)                    Show watchdog messages.
   watchdog:show-one (wd-one)                     Show one log record by ID.
   watchdog:tail (wd-tail, wt)                    Tail watchdog messages.

@andy-blum thank you! I just saw that and pushed another commit to fix it.

Everything works great now!
The only question I have at this point would be why do we have PHP on the gitpod host? Would it be better to consistently use the resources provided by DDEV?

@andy-blum
Actually, we don't have php installed on host.
This was a similar solution like drush, yarn, composer, which I will now improve using the exec_d ddev command I added.
When you run php, it's a script that runs PHP in container - ddev exec php.
The reason I added PHP before, was because VSCode's Intellephense extension requires php binary file to run.

@andy-blum I added node, nvm, npx.
Anything else we're missing or this is good to merge?

I think those should cover at least 90% of users. Did you need someone to test before merging?


Update ncrunch configuration.

What does the pull request do?
Updates ncrunch configuration to take into account recent changes to the solution.

You can test this PR using the following package version. 11.0.999-cibuild0026433-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

You can test this PR using the following package version. 11.0.999-cibuild0026464-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]


Create Milestone-1

[x] Create Milestone-1
[x] Add related issues to Milestone-1

I review issues to clarify if they are completed or not. I inform the issue owner in both cases. If the issue is completed, I ask them to close the issue. Otherwise, I ask them to complete the issue. So we will see what is missing for the upcoming milestone.

Added related issues to project web-info-aggregator.


Shared Library - Tabwrite refactor

Add CreateTabWriter factory method to command package to exclude repetition errors and DRY the code.
Relies on  #162 to be resolved first

[x] Targeted PR against master branch
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[x] Code follows the standards mentioned here
[x] Updated relevant documentation
[x] Re-reviewed Files changed in the Github PR explorer
[x] Added appropriate labels

I rebased this branch on feature/shared-lib-ping.
We really shall merge that one first :)

Let's bring these changes to Status service. And keep this PR solely about TabWriter :)


CLOUD-384 fixed volumesize

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/668/


User slugs are not unique

I know this issue was fixed for the Post model #76, but I recently ran into it while saving multiple users with the same name.
A temporary fix for people facing the same issue might be changing the column that is being used as a slug (e.g. in the boot() method from the User model, change $model->name to $model->email since email is always unique).

Yea I think you can use dedicated eloquent sluggable .  We can also use the package but some package don't support localization some don't have feature etc.
I think we can close the issue right?
Thanks


Precaching modules throws error to console

Thank you for this excellent and highly useful software.
Library Affected:
workbox-sw
Browser & Platform:
Chrome 68
Issue or Feature Request Description:
When precaching modules (by which I mean standard or es modules) with workbox, I see errors in browser console such as
Uncaught (in promise) SyntaxError: Unexpected token {
    at Object.<anonymous> (workbox-core.dev.js:941)
    at Generator.next (<anonymous>)
    at step (workbox-core.dev.js:14)
    at workbox-core.dev.js:25
(anonymous) @ workbox-core.dev.js:941
step @ workbox-core.dev.js:14
(anonymous) @ workbox-core.dev.js:25

The error in question was throw from https://github.com/bennypowers/mws-restaurant-stage-1/blob/a46986f1b896847e7374c02839a5abc6a73278c5/js/lib.js#L1
Repro by installing that repo and running.
For reference, the workbox-config.js at that commit is
module.exports = {
  "globDirectory": ".",
  "globIgnores": [
    "js/idb-keyval.js",
    "**/service-worker.js",
    "node_modules/**/node_modules/**/*",
    "node_modules/**/bower_components/**/*"
  ],
  "globPatterns": [
    "js/*",
    "css/*",
    "index.html",
    "manifest.json"
  ],
  swSrc: 'service-worker.src.js',
  swDest: 'service-worker.js',
};

and the service-worker.src.js is
importScripts('https://storage.googleapis.com/workbox-cdn/releases/3.0.0/workbox-sw.js');

/* global workbox */

workbox.skipWaiting();
workbox.clientsClaim();

workbox.routing.registerNavigationRoute('/index.html');

workbox.routing.registerRoute(
  /.*(?:googleapis|gstatic)\.com.*$/,
  workbox.strategies.staleWhileRevalidate({cacheName: 'googleapi-cache'}),
);

workbox.routing.registerRoute(
  /.*\.(?:js|html|css)/,
  workbox.strategies.cacheFirst({cacheName: workbox.core.cacheNames.precache})
);

workbox.routing.registerRoute(
  /.*\.(?:png|jpe?g|svg|gif)/,
  workbox.strategies.cacheFirst({cacheName: 'img-cache'})
);

workbox.routing.registerRoute(
  /\/api\/.*/,
  workbox.strategies.cacheFirst({cacheName: 'data-cache'})
);

workbox.precaching.precacheAndRoute([]);

I'm getting the same type of errors when using ES6 Modules with Workbox precaching:

This is "for real", as the service worker doesn't get registered:

and the built-in Lighthouse audit tool reports that "user will not be prompted to install the Web App":

This is on Google Chrome 65.0.3325.181 (Official Build) (64-bit), running on Windows 10 Home 10.0.16299 Build 16299.
This is the workbox-config.js:
module.exports = {
    "globDirectory": "./docs",
    "globPatterns": [
        "*.html",
        "scripts/*.js",
        "styles/*.css"
    ],
    "swDest": "./docs/sw.js"
};

The hello.js file that throws the error is native JavaScript module with a single export default function. On refresh, I get the error in app.js, which is a script module that imports the function from hello.js.
What's even stranger is that, on Chrome on Android 7.0, on a cached PWA that uses Workbox, the Add to Home screen which used to install the PWA, after refresh now it only offers to add it as a simple shortcut.

I've opened up a fresh issue, https://bugs.chromium.org/p/chromium/issues/detail?id=833501, to track this from a Chrome perspective. I'm assuming that, like the last time this cropped up, it's something outside of Workbox's control, so I'm going to close this issue.
Please star, and follow-up on that new Chromium Tracker issue.

@jeffposnick Issue 833501 has been merged into issue 832202, so the new URL is
https://bugs.chromium.org/p/chromium/issues/detail?id=832202
Indeed, it's a Chrome issue, can be reproduced with standard Cache API:
https://github.com/hwalab-developer/swesmit


Prepare DynamoDB table for state locks

We need a DynamoDB table to store the state locks.

Working on this issue is finished


Only try to create log/PID dirs if the server is starting.

Description
Only try to create log/PID dirs if the server is starting.
The server control script may be used for other purposes than starting the server,
Use case
e.g. the REST installer uses the server control script to generate an init script, at which time we should not create these dirs.
Benefits
The installer works properly
Possible Drawbacks
none
Testing
Tested in my sandbox
Changelog
Server log/PID dirs now only created on server start operations

If it's ok I'll make a PR for release/95 too

Thanks Nick. Please go ahead and make a PR for release/95.


Update antrea/openvswitch base image periodically

Because this is the base image used for the Antrea image, it is good to
build and push it periodically so that Ubuntu security updates can be
picked up.

/skip-e2e

/skip-e2e


Run Pretzel under .Net Core?

This is more an alternative to #81 - instead of trying to support running on Mono, maybe go for .NET Core instead? You'll get the same ultimate goal (cross-platform) and you can keep it to a single code base (instead of having a .NET version and a Mono version).
Just a thought for an old, loved project that seems to have had some recent work. :)

I would love that, but it will need a lot of changes.
That does not mean that will never happened, but not before a long time 😞

I understand how that goes. I'll keep following along. :)

Do you mind if i fork it and push it over to core and release as a global tool?

I would love to see that! 😄
It has been in my work list for so long but never had the time to do it.

@laedit My plans are: bringing to dotnet core as a global tool and switch to azure devops.

You mean replace Appveyor by Azure devops?
Do you know if it is possible to have an account for a Github organization?
I'd prefer to avoid user-specific account to prevent any future issue to access it.
I am trying to activate Github Actions but since I am not an admin I don't have access to the settings of this repo.

I am trying to activate Github Actions but since I am not an admin I don't have access to the settings of this repo.

@laedit apologies for that, I should have done it a long time ago. I've given you admin rights to this repository now, let me know if there's anything else you need.

@laedit Did not use Github actions so far, but for open source it would be a nice fit!
Any suggestions on Microsoft Composition? Move to dependency incjection from dotnet core hosting model or to Microsoft.Composition (which seams dead). I'm currently trying to port to netstandard, but this seams hard so far. (got it compiling and tests running, but composing the catalog fails cause the lack of InheritedExportAttribute that is heavy used)

Let's get 🥨 some ❤!

@shiftkey wow, I was planning to contact you but I have forgotten that you are omniscient 😄
Thanks a lot!

@biohazard999 I must confess that I haven't peek at the code for a long time, but I think that InheritedExport is used mainly for extensibility, so if that is the only major change we can remove it and contact every known plugin creators to inform them of the change.
And if it is impossible to migrate to MEF2  we could move to another dependency injection lib.

@laedit i think the codebase is good and it would be a shame to abandon the project. I look into migrating to MEF2 to move to project forward, but the long term goal to go to Microsoft's new DI would be a nice addition!
My main focus is to move it to an global tool first, and do afterwards some features as required.

Good to me :)

@laedit can you look into the PR #328? I've tested and checked every command, and works (at least with my blog)

Cause the lack of support of many dependencies (AjaxMin, DotlessClient/Server, Aspnet.Razor) are we going .netcore only? Or do we prefer to keep .net451 as a minimum target and do #if NETSTANDARD?

I'd like to keep a full .net target for Chocolatey (net451 or later if it simplifies things), but the functionalities should ideally be the same with the netcore target.
So I think we should replace there dependencies by other that supports netcore, like WebMarkupMin.Core for minification,  dotless.core for dotless and RazorLight or directly Microsoft.AspNetCore.Razor.Runtime for razore rendering, but it could be done in separates PR and do #if for now.

@laedit if we go at least net462 we can use a lot of the new stuff and still be full framework as well as cross plattform (aspnet core is >= 2.2)

Go for 462 😄
ScriptCs is used only to allow plugins from a .csx file.
Since it does not support netstandard I think we could replace it by dotnet script or another solution.

I can't wait to read your article!


Update raylib to the latest version

This includes a fix from https://github.com/raysan5/raylib/pull/4012/ which resolves the emsdk "headers must be a relative path" error when building wasm32-emscripten target.
Before:
$ zig build -Dtarget=wasm32-emscripten --sysroot /.../emsdk/upstream/emscripten
thread 10031917 panic: sub_path is expected to be relative to the build root, but was this absolute path: '/.../emsdk/upstream/emscripten/cache/sysroot/include'. It is best avoid absolute paths, but if you must, it is supported by LazyPath.cwd_relative
...

After:
$ zig build 2d_camera -Dtarget=wasm32-emscripten --sysroot /.../emsdk/upstream/emscripten
steps [7/9] run /.../emsdk/upstream/emscripten/emcc... Now listening at http://<IP_ADDRESS>:6931/
INFO: Initializing raylib 5.1-dev
...

The header files need to be updated manually, but the zig files are update with the generate_functions.py script


Error with ionic 3.9 and Angular 5: Can't bind to 'ngOutletContext' since it isn't a known property of 'ng-template'

Hi,
I try to use this library with ionic 3.9.2 and Angular 5, but it doesnt work.
The error message say:
Error: Template parse errors:
Can't bind to 'ngOutletContext' since it isn't a known property of 'ng-template'.

I check Angular API documentation, and it seems ngOutletContex has been deprecated in Angular 5.
https://angular.io/api/common/NgTemplateOutlet
I assume it can be fixed by replacing ngOutletContex with ngTemplateOutletContex.

Looks to me as simple as your suggest from the same issue in ngx-chips  here:
https://github.com/Gbuomprisco/ngx-chips/pull/585/commits/cd319822084bd57d2a9fbb2b783c532f5f587323
The depreciated ngOutletContext directive is only used here:
https://github.com/kadoshms/ionic2-autocomplete/blob/e63f60d6b65a5c015c706951b45b0df744833f76/src/autocomplete.component.ts#L69
Working on a PR...

Does anyone know how to run the build so I can swap it out with the current version that is in my node_modules and test that it works? I have a suspicion that we will also need to upgrade the angular version to at least ^4.2.0 it have the ngTemplateOutletContex directive

More information on updating moduleName for rollup: https://github.com/rollup/rollup/issues/1479

@CoreyCole thanks!

Thank you


pyZMQ not compiling in linux systems for python2.7

trying to compile a python code with ZMQ library
facing error.
xxx:~/pythonTest/Device_Management (copy)$ pyinstaller deviceagent.py
59 INFO: PyInstaller: 3.5.dev0+73dfb3add
59 INFO: Python: 2.7.15
60 INFO: Platform: Linux-3.19.0-25-generic-x86_64-with-debian-jessie-sid
61 INFO: wrote /home/pazhanivel/pythonTest/Device_Management (copy)/deviceagent.spec
81 INFO: UPX is not available.
83 INFO: Extending PYTHONPATH with paths
['/home/pazhanivel/pythonTest',
'/home/pazhanivel/pythonTest/Device_Management (copy)']
83 INFO: checking Analysis
101 INFO: Building because /home/pazhanivel/miniconda2/lib/python2.7/site-packages/PyInstaller-3.5.dev0+73dfb3add-py2.7.egg/PyInstaller/loader/rthooks/pyi_rth_pkgres.py changed
101 INFO: Initializing module dependency graph...
103 INFO: Initializing module graph hooks...
190 INFO: running Analysis Analysis-00.toc
317 INFO: Caching module hooks...
326 INFO: Analyzing /home/pazhanivel/pythonTest/Device_Management (copy)/deviceagent.py
2075 INFO: Processing pre-safe import module hook   _xmlplus
3087 INFO: Processing pre-find module path hook   distutils
4420 INFO: Processing pre-safe import module hook   setuptools.extern.six.moves
6661 INFO: Processing pre-find module path hook   site
6662 INFO: site: retargeting to fake-dir '/home/pazhanivel/miniconda2/lib/python2.7/site-packages/PyInstaller-3.5.dev0+73dfb3add-py2.7.egg/PyInstaller/fake-modules'
8011 INFO: Loading module hooks...
8011 INFO: Loading module hook "hook-distutils.py"...
8012 INFO: Loading module hook "hook-sysconfig.py"...
8013 INFO: Loading module hook "hook-xml.py"...
8100 INFO: Loading module hook "hook-zmq.py"...
/home/pazhanivel/miniconda2/lib/python2.7/site-packages/zmq/backend/cffi/pycache/_cffi_ext.c:216:17: fatal error: zmq.h: No such file or directory
#include <zmq.h>
^
compilation terminated.
Traceback (most recent call last):
File "", line 2, in
ImportError: No module named libzmq
9173 INFO: Loading module hook "hook-httplib.py"...
9174 INFO: Loading module hook "hook-pkg_resources.py"...
9653 INFO: Processing pre-safe import module hook   win32com
9971 INFO: Loading module hook "hook-pycparser.py"...
10241 INFO: Loading module hook "hook-setuptools.py"...
16360 INFO: Loading module hook "hook-encodings.py"...
16914 INFO: Loading module hook "hook-numpy.core.py"...
17252 INFO: MKL libraries found when importing numpy. Adding MKL to binaries
17257 INFO: Loading module hook "hook-pydoc.py"...
17262 INFO: Excluding import 'Tkinter'
17265 INFO:   Removing import of Tkinter from module pydoc
17265 INFO: Loading module hook "hook-_tkinter.py"...
17467 INFO: checking Tree
17475 INFO: checking Tree
17518 INFO: Loading module hook "hook-numpy.py"...
17572 INFO: checking Tree
17573 INFO: Building Tree-02.toc because directory /home/pazhanivel/miniconda2/lib/python2.7/site-packages/PyInstaller-3.5.dev0+73dfb3add-py2.7.egg changed
17573 INFO: Building Tree Tree-02.toc
17591 INFO: Looking for ctypes DLLs
17982 INFO: Analyzing run-time hooks ...
17993 INFO: Including run-time hook 'pyi_rth_pkgres.py'
17995 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
18018 INFO: Looking for dynamic libraries
19709 INFO: Looking for eggs
19709 INFO: Using Python library /home/pazhanivel/miniconda2/bin/../lib/libpython2.7.so.1.0
19737 INFO: Warnings written to /home/pazhanivel/pythonTest/Device_Management (copy)/build/deviceagent/warn-deviceagent.txt
19853 INFO: Graph cross-reference written to /home/pazhanivel/pythonTest/Device_Management (copy)/build/deviceagent/xref-deviceagent.html
20036 INFO: checking PYZ
20042 INFO: Building because /home/pazhanivel/miniconda2/lib/python2.7/site-packages/PyInstaller-3.5.dev0+73dfb3add-py2.7.egg/PyInstaller/fake-modules/site.py changed
20042 INFO: Building PYZ (ZlibArchive) /home/pazhanivel/pythonTest/Device_Management (copy)/build/deviceagent/PYZ-00.pyz
20934 INFO: Building PYZ (ZlibArchive) /home/pazhanivel/pythonTest/Device_Management (copy)/build/deviceagent/PYZ-00.pyz completed successfully.
21078 INFO: checking PKG
21078 INFO: Building because /home/pazhanivel/pythonTest/Device_Management (copy)/build/deviceagent/PYZ-00.pyz changed
21078 INFO: Building PKG (CArchive) PKG-00.pkg
21104 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
21108 INFO: Bootloader /home/pazhanivel/miniconda2/lib/python2.7/site-packages/PyInstaller-3.5.dev0+73dfb3add-py2.7.egg/PyInstaller/bootloader/Linux-64bit/run
21108 INFO: checking EXE
21109 INFO: Building because /home/pazhanivel/miniconda2/lib/python2.7/site-packages/PyInstaller-3.5.dev0+73dfb3add-py2.7.egg/PyInstaller/bootloader/Linux-64bit/run changed
21109 INFO: Building EXE from EXE-00.toc
21110 INFO: Appending archive to ELF section in EXE /home/pazhanivel/pythonTest/Device_Management (copy)/build/deviceagent/deviceagent
21160 INFO: Building EXE from EXE-00.toc completed successfully.
21165 INFO: checking COLLECT
WARNING: The output directory "/home/pazhanivel/pythonTest/Device_Management (copy)/dist/deviceagent" and ALL ITS CONTENTS will be REMOVED! Continue? (y/n)y
52835 INFO: Removing dir /home/pazhanivel/pythonTest/Device_Management (copy)/dist/deviceagent
52950 INFO: Building COLLECT COLLECT-00.toc
67028 INFO: Building COLLECT COLLECT-00.toc completed successfully

commented in wrong page


getting-started: update flags on fioctl targets

--factory flag is now mandatory when using 'fioctl targets'.
Signed-off-by: Milosz Wasilewski<EMAIL_ADDRESS>

Docs for 19b58591d4b1d50b72fe4fc53a8a94760139f379 are browesable at: https://ci.foundries.io/projects/fio-docs/builds/749/docs/artifacts/html/index.html

Docs for 19b58591d4b1d50b72fe4fc53a8a94760139f379 are browesable at: https://ci.foundries.io/projects/fio-docs/builds/749/docs/artifacts/html/index.html

Docs for b314e03ae040dc7031fe798498f0fdac917b1810 are browesable at: https://ci.foundries.io/projects/fio-docs/builds/750/docs/artifacts/html/index.html

Docs for b314e03ae040dc7031fe798498f0fdac917b1810 are browesable at: https://ci.foundries.io/projects/fio-docs/builds/750/docs/artifacts/html/index.html

@MatthewCroughan - not sure how to be do this in docs. @mwasilew hit this issue because he's in multiple factories. A normal customer going through this will only be in a single factory and not this flag.

@MatthewCroughan - not sure how to be do this in docs. @mwasilew hit this issue because he's in multiple factories. A normal customer going through this will only be in a single factory and not this flag.

@MatthewCroughan - not sure how to be do this in docs. @mwasilew hit this issue because he's in multiple factories. A normal customer going through this will only be in a single factory and not this flag.

We already got customers with multiple factories, so good to cover as well.

@MatthewCroughan - not sure how to be do this in docs. @mwasilew hit this issue because he's in multiple factories. A normal customer going through this will only be in a single factory and not this flag.

We already got customers with multiple factories, so good to cover as well.

@ricardosalveti It's hard, because I always hit this issue myself, so I explicitly remove this -f flag anticipating that our customers are not usually in multiple factories after an older discussion with @doanac , but I always feel dirty when I do it, because I know someone else is eventually gonna hit the issue due to us being less explicit.
I always like being explicit rather than implicit, so I like  including this more than not including it.
If --factory is not present, fioctl will fail with:
Error required flag "factory" not set
So the worst case scenario is that someone does fioctl targets --help and sees -f
-f, --factory string   Factory to list targets for

@ricardosalveti It's hard, because I always hit this issue myself, so I explicitly remove this -f flag anticipating that our customers are not usually in multiple factories after an older discussion with @doanac , but I always feel dirty when I do it, because I know someone else is eventually gonna hit the issue due to us being less explicit.
I always like being explicit rather than implicit, so I like  including this more than not including it.
If --factory is not present, fioctl will fail with:
Error required flag "factory" not set
So the worst case scenario is that someone does fioctl targets --help and sees -f
-f, --factory string   Factory to list targets for

@mwasilew @doanac @MatthewCroughan AFAIK a Factory may come from several sources (in order of preference):

--factory/-f argument
environment variable FIOCTL_FACTORY
config file's factory option

And I usually use the latest option as the most convenient.
Thus, I'm not sure if we need to change our docs in this misleading way; I'd rather put somewhere explicitly these precedence rules (the best is fioctl help for a --factory option itself), so that users know how to use this without looking into the source code.

@mwasilew @doanac @MatthewCroughan AFAIK a Factory may come from several sources (in order of preference):

--factory/-f argument
environment variable FIOCTL_FACTORY
config file's factory option

And I usually use the latest option as the most convenient.
Thus, I'm not sure if we need to change our docs in this misleading way; I'd rather put somewhere explicitly these precedence rules (the best is fioctl help for a --factory option itself), so that users know how to use this without looking into the source code.

@vkhoroz Agreed. I'll come up with a good way to explain this and remove all the -f/--factory mentions later. I can simply include the README from the Fioctl git repo here, for example.
https://docs.foundries.io/latest/getting-started/install-fioctl/index.html#configuration

@vkhoroz Agreed. I'll come up with a good way to explain this and remove all the -f/--factory mentions later. I can simply include the README from the Fioctl git repo here, for example.
https://docs.foundries.io/latest/getting-started/install-fioctl/index.html#configuration

3 would be my preference, but it's not mentioned in the docs (at least not in getting started). Even in the detailed docs for fioctl it's not very clear on how the config file works: https://docs.foundries.io/latest/reference-manual/factory/fioctl/fioctl_config.html. I'm OK to experiment with it a bit and rewrite this patch in a more user friendly way.

3 would be my preference, but it's not mentioned in the docs (at least not in getting started). Even in the detailed docs for fioctl it's not very clear on how the config file works: https://docs.foundries.io/latest/reference-manual/factory/fioctl/fioctl_config.html. I'm OK to experiment with it a bit and rewrite this patch in a more user friendly way.


Temporary fix for missing file length

Fix issue #5
I think it is not a good solution anyway. but it helps me to avoid such issue for now.

Hey,
Since I can't reproduce it, another fix I can think of is to add the handling of the .response(urlResponse) case in the OperationQueue so that it will get executed before handling anything else.
So in func handleResponse(event:) add the following in the .response(urlResponse) case handle
addStreamOperation { [weak self] in
    guard let self = self else { return }
    self.parseResponseHeader(response: urlResponse)
}

Hey,
Since I can't reproduce it, another fix I can think of is to add the handling of the .response(urlResponse) case in the OperationQueue so that it will get executed before handling anything else.
So in func handleResponse(event:) add the following in the .response(urlResponse) case handle
addStreamOperation { [weak self] in
    guard let self = self else { return }
    self.parseResponseHeader(response: urlResponse)
}

I tested this code. it still have the issue.

See PR #7


Support dive on shallow rendered component

When testing with enzyme, diving on shallow rendered ReactList component fails with
evaluated.TypeError: Cannot read property 'parentElement' of undefined

Most likely cause, ref which sets this.el and this.items is not evaluated on a shallow render. Can solve this using mount but that results in ungainly component snapshots.

Replaced my usecase with https://github.com/bvaughn/react-window, works well enough


Selected Tab is not highlighted

Selected Tab should be highlighted when it is selected and If focus is out from Tab then also it remains highlighted it doesn't loose selection from Tab
TabsSelection.zip

After this change my application doesn't work when i launch application this exception occurs :

Did you build basic as well as MX?

Yes,Basic Core and MXRoyale

When I revert these 3 lines from MXRoyale's default.css
IItemRendererClassFactory: ClassReference("org.apache.royale.core.OverridableSelectableItemRendererClassFactory"); IItemRenderer: ClassReference("org.apache.royale.html.supportClasses.SelectableTextButtonItemRenderer"); ISelectableItemRenderer: ClassReference("org.apache.royale.html.supportClasses.SelectableTextButtonItemRenderer");
Application start working

Strange, I'm not seeing it. I'll look at it later today. Feel free to revert the whole commit if it's wasting your time.

@yishayw by default first tab is selected in TabNavigator but the color or background-color  isn't changed for the first selected tab

@yishayw I got this Error after this commit :

import org.apache.royale.html.beads.SolidBackgroundBead; SolidBackgroundBead; is only defined for SWF not for JS because it is using Sprite

@pashminakazi , good catch. I don't know how that got there... Should be fixed now.


fix typo in colorscale route

What changes are proposed in this pull request?

fix typo: coloscales -> colorscales so that the get request will work (https://github.com/voxel51/fiftyone/blob/develop/fiftyone/server/routes/colorscales.py#L19)

How is this patch tested? If it is not, please explain why.
(Details)
Release Notes
Is this a user-facing change that should be mentioned in the release notes?

[x] No. You can skip the rest of this section.
[ ] Yes. Give a description of this change to be included in the release
notes for FiftyOne users.

(Details in 1-2 sentences. You can just refer to another PR with a description
if this PR is part of a larger change.)
What areas of FiftyOne does this PR affect?

[ ] App: FiftyOne application changes
[ ] Build: Build and test infrastructure changes
[ ] Core: Core fiftyone Python library changes
[ ] Documentation: FiftyOne documentation changes
[ ] Other

Good catch. I think this can be removed, actually. It's not used anywhere. GraphQL can be used instead.

Good catch. I think this can be removed, actually. It's not used anywhere. GraphQL can be used instead.

Yeah I didn't find any usages, so I just removed the route


ci: reduce link parallelism

Recently we observed a lot of OOM during CI builds. So I propose the following way to build test artifacts:

Firstly, use full CPU cores to build without test target
Secondly, use half CPU cores' job concurrency to build test targets

Anyway, after some investigation, it seems that it's hard to modify cargo to limit link parallelism. So we should do manual tuning about link parallelism.

Is this still a problem?

Yes. We increased build EC2 to have 64GB memory.


Support for Raspberry Pi v1 / Zero / Zero W?

Describe the problem
I see references in the doc to support of the Raspberry Pi v1 / Zero / Zero W, but I can not find it in the "device type" list under "Add new device" on the web UI.
To Reproduce
Steps to reproduce the behavior:

Go to "Add device"
Click on the device list drop-down.
See the option for "Raspberry Pi (v1 / Zero / Zero W)" is missing.

Expected behavior
Did you drop the support for the lower-performance Raspberry Pi-es (if so, we need to update the doc), or is the device missing for the list?
If this was mentioned somewhere but I missed it, my apologies.
Screenshots
If applicable, add screenshots to help explain your problem.

I found my mistake reading this: https://github.com/balenalabs/balena-sense/issues/47
My bad. I may do a PR of the doc to explain that better somewhere.


Add --halt-on-plugin-error CLI Option to ensure successful plugins registration

PR Description
This PR changes the initialization behaviour of plugins in the BesuPluginContextImpl class by introducing a pluginContinueOnError flag. By default, Besu will not allow plugins to fail during registration and other startup lifecycle stages.
Changes Made
pluginContinueOnError Flag:

Introduced the --plugin-continue-on-error CLI option (default to false).
Added a pluginContinueOnError flag to the PluginConfiguration class.

Lifecycle Methods:

Updated the registerPlugins, beforeExternalServices, startPlugins, and afterExternalServicesMainLoop methods to check the pluginContinueOnError flag. If a plugin fails and the flag is set to true, Besu will log the error and continue running. If the flag is set to false, Besu will throw a RuntimeException and halt.

Usage Example
besu --plugin-continue-on-error=true

In this example, if any plugin fails during registration, before external services, startup, or after external services post main loop, Besu will log the error and continue running. If the --plugin-continue-on-error option is set to false (default), Besu will throw a RuntimeException and halt gracefully, ensuring that plugins cannot fail registration.

LGTM, just add a CHANGELOG entry and doc-change-required label.
Then I am thinking, that even if it will be a breaking changes, to set the default to true, at least to me it seems the normal behavior to fail in case a plugin has an issue. WDYT?

I agree with stopping the startup when the plugin fails by default. That is the right behaviour in the majority of setups.


Choice prompt UI changes depending on Text size?

I have noticed that the Prompt UI changes based on the size of the option text:

"Home" - is displayed fine

"Do some other action that is bigger" - is displayed as a list in the response

In order for me to select the large option, the user must type out the text.
Is there already a workaround for this?
If not I think this would be a valuable feature to look at, let me know your thoughts

@Jhanbury do you have screenshots or a working bot example that displays your issue? If you could provide code that creates this issue that would be great as well.

@corinagum my apologies here is the UI results of what's happening:
Here is the normal scenario where the action text is under 20 characters:

And here is the result of what happens when the action's text is > 20 characters:

As you can see it now requires the user to input the text rather than the suggested actions.
Recreation
As for code Im simply adding the choices to the Choices property of PromptOptions
          options.Choices.Add(new Choice { Value = "Home" });
Is this a setting I can modify?
Or is there a valid reason for why the action text cannot be more than 20 characters long, maybe for horizontal space?

Could this be the source of the issue:
suggestedAction: Line 7
What does the flipperSize represent?
Apologies I am not very familiar with the internals of the repository

@Jhanbury Thanks for the details!
Looking at the botbuilder code, it appears there is a 20 character max on suggested actions. I don't know of a workaround, but I have forwarded this issue to the SDK team for further insight. Hope that helps!

@Jhanbury can you provide more code on how you're creating the prompt? If you change the Style attribute on your ChoicePrompt instance, you can specify SuggestedActions by using ListStyle.SuggestedActions.
// Not a strong C# dev, but I believe this should work...
var choicePrompt = new ChoicePrompt("someId") {
    Style = ListStyle.SuggestedActions
}

Let me know if this solves the issue,, thanks!

@stevengum your solution is correct,I was not explicitly setting the style.
The result is the actions buttons are displayed with a cut off as shown in the photo:

If you wish to see the full title you just have to hover over the button for the tooltip (nice feature).
Thanks @corinagum and @stevengum for your help

How to solve this on MS teams ? A teams doesn't support suggested actions ?
Do you have a workaround for this on MS Teams ?
Right now we are using adaptive cards , but it has to be out under a textprompt , which is causing a host of other issues.
TIA


MUC Implementation

Is joining a MUC implemented in this library?
I looked around and found a few issues mentioning MUC that seem to indicate it is implemented, but I can't find any documentation on how to actually use it.
Could you point me in the right direction? Thanks!

Yeah i had to fiddle a bit too but joining a MUC is simple, once you got the hang of it. Looking into XMPP documentation also helps, see XEP0045.
I did it in the postconnect handler of the streammanger here but you should be able to do it whenever you want, as long as the client is connected
func postConnect(s xmpp.Sender) {
	client, ok := s.(*xmpp.Client)
	if !ok {
		fmt.Println("post connect sender not a client, cannot proceed")
		//error handling
	}

        //I used uuids to make sure the id is unique
	uuid, _ := uuid.NewV4()
	id := uuid.String()

	//join MUC
	presence := stanza.NewPresence(stanza.Attrs{
		To:   "<mucroom>@<xmppdomain_supporting_muc>/<muc_nickname>",//fill the fields accordingly
		From: client.Session.BindJid,
		Id:   id,
	})

        //as stated in the XEP0045 documentation, you have to tell that you are able to speak muc
	presence.Extensions = append(presence.Extensions, stanza.MucPresence{})

        //send the stuff
	err := client.Send(presence)
	if err =! nil {
		//err handling
	}
}


Slim structs

Combined compressor/decompressor structs with configuration, allowing (up to) 23 additional free bits for attributes.
Significant compiled size savings via branch hinting and slight loop optimization.

Codecov Report

Merging #15 (6592322) into main (d6416b5) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main      #15   +/-   ##
=======================================
  Coverage   93.19%   93.19%
=======================================
  Files           4        4
  Lines         382      382
  Branches       59       59
=======================================
  Hits          356      356
  Misses         18       18
  Partials        8        8

Flag
Coverage Δ

unittests
93.19% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Possibility to provide the URL of a GeoTIFF source as a function

Is your feature request related to a problem? Please describe.
As per now, the documentation of the GeoTIFF source says we can provide an URL as string (https://openlayers.org/en/latest/apidoc/module-ol_source_GeoTIFF.html#~SourceInfo).
Sometimes a GeoTIFF can be behind some sort of short-lived authentication mechanism such as AWS signed URLs.
In that case, the WebGLTile stops working after some time because the source URL expires and the data become unaccessible.
The result for OL is that the tiles of the WebGLTile stop loading when interacting with the map.
Describe the solution you'd like
Possibility to provide the URL of the source as a function callback, that would be called before fetching each tile.
new GeoTIFF({
  sources: [{
    url: () => 'https://myvalid-url-now.com/cog.tif',
  }]
})

I cannot think of an other use case where this would be useful, but maybe it is something OL might want to support.

Any reason for not using a service worker to achieve that?

Do you mean using a service worker to intercept the tile requests and do whatever transformations need to be done?

For future reference, only blocker I could find is if one wants to support Firefox Incognito mode as it seems service workers are not supported in that mode: https://bugzilla.mozilla.org/show_bug.cgi?id=1320796


Remove vagrant cachier from optional dependencies

Having vagrant-cachier, even the latest version, leads to errors while provisioning "You don't have enough free space".

@chregu do you know if there's any reason to keep that in the docs? I never used vagrant-cachier so I'm not aware how well it works (or doesn't work).

No, it harms more than it helps. Definitely would remove it.


FEAT: Add support for training collator in PPOTrainer

Fixes: https://github.com/huggingface/trl/issues/1629
Adds the possibility for users to pass a custom datacollator for training - see that issue for more details
cc @vwxyzjn

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Define platform & APIs.

Rather than working in main, work on things in branches from now on and push to main when a first version is available.
Yes, I started coding in main, me bad!

Things to do for this issue:

Define base platform
-[ ] Make flexible APIs for the platform. They should require as few external dependencies as possible. Implementations should be free to choose how to implement. Thereby only interfaces with some exceptions.

Done.


Amplify Appsync oidc provider per environment

Note: If your question is regarding the AWS Amplify Console service, please log it in the
official AWS Amplify Console forum

Which Category is your question related to?
Amplify CLI/AppSync
Amplify CLI Version
4.13.2
You can use amplify -v to check the amplify cli version on your system
What AWS Services are you utilizing?
Amplify & AppSync
Provide additional details e.g. code snippets
Hi,
I've a project with two environments(Dev & Prod) and I'm configuring an AppSync api with OIDC as authentication provider, I noticed that OIDC configuration details are not saved inside the team-provider-info.json file meaning that I can't use my DEV OIDC endpoint on my DEV Amplify environment and my PROD OIDC endpoint on my PROD Amplify environment.
Because of this I have to change the OIDC endpoint when I'm developing  stuff locally or testing in the DEV environment but when I'm going to deploy in the PROD environment I have to remember to change back the OIDC endpoint to point to the PROD OIDC instance.
I believe this is a common use case since many organizations don't allow service accounts in PROD Access Management systems.
Is there an easy way to accomplish this? I assume it's not supported because of the locations where Amplify stores the configurations.
Thanks,

Thanks for opening the issue. I have added this to our backlog

Is there an update on this? I’m facing the same issue.


Different size of columns on vuln list view

With logged user the size of columns is different

while in case of logout user they are the same

Probably it could be fixed
Other problem - initial page size is 7 despite the fact, that entries is set to 10
@DrAlexD

Extended the minHeight


Does this work with expo? [TypeError: Cannot read property 'getCountryCode' of null]

I get the error: [TypeError: Cannot read property 'getCountryCode' of null] when copying the example in the readme. Using expo

running expo prebuild and then restart the development server solved this issue for me

Alternatively, you can use dev-client build.
Basically, it will allow you to install the any libraries with native module without need to have ios or android folders in your expo project.
https://docs.expo.dev/develop/development-builds/introduction/#what-is-expo-dev-client

still have the same issue tried all of the above but couldn't run expo prebuild


How can i get the header of request

I would like to know how can i get the header of request using quarkus-cxf
for example, i'm need obter a property from header of request on the call this method:
@WebService(endpointInterface = "br.com.api.ibyte.services.soap.contract.IOrder")
@ApplicationScoped
public class OrderService implements IOrder {

    @Override
    @WebMethod
    public BuscaPedidoPendenteNpcRespostaDto buscarPedidosNfe(FindOrderDto order) {

        System.out.println(order);
        return null;
    }

}

Maybe you can try something like the below; and in the future, please start a discussion for general questions such as this.
Message message = PhaseInterceptorChain.getCurrentMessage();

// Soap headers
SoapMessage soapMessage = (SoapMessage) message;
List<Header> list = soapMessage.getHeaders();

// HTTP headers
HttpServletRequest httpRequest = (HttpServletRequest) message.get(AbstractHTTPDestination.HTTP_REQUEST);
String contentType = httpRequest.getHeader("Content-Type");

Thanks!
Sorry, in the future i will ask in the discussion


add avoid brittle code post

FYI
Submitted this to hacker news, not yet on the front page but will appear if it generates interest.
https://news.ycombinator.com/item?id=11372611


Add --opencost flag to specify standard OpenCost settings

When using kubectl cost with OpenCost, there are a bunch of boilerplate CLI options you have to add:
--service-port 9003 --service-name opencost --kubecost-namespace opencost --allocation-path /allocation/compute
It would be handy to just pass --opencost and get all of those set by default (while still allowing for being more specific if needed).

I like this idea. This is a great small change if a community member would like to contribute. Matt's comment about "while still allowing for more [specificity]" is particularly pertinent. This would be the area of code to look at to contribute: https://github.com/kubecost/kubectl-cost/blob/703f25ce0fd4350a3a8a4b2bb069eab6173842d7/pkg/query/options.go#L52
cc @kwombach12 apologies for the spam lately, I'm not sure how you'd like to track enhancement requests for this project.

Hi guys! I'd like to pick this up if possible.

Go for it!


Scroll Event Listener no longer works with 4.0.0-alpha.4 and above

Current Behavior
Scroll Event Listener attached to the DOM element no longer fire in versions 4.0.0-alpha.4 and up.
Expected behavior
On releases versions 4.0.0-alpha.3 and prior the following would produce a console out put every time the content panel scrolled.
simplebarcontent.addEventListener( 'scroll', () => console.log('Scrolling'), false );
Reproducible example
Here's an example which should replace the text in the p with the timestamp of the scroll to show the event listener. In older versions this works, but not with the new alphas
https://jsfiddle.net/Lqzoa8cm/
Your environment

Software
Version(s)

SimpleBar
4.0.0-alpha.4 and up

Browser
Firefox 66.0.3 & Chrome 73.0.3683.103

npm/Yarn

Operating System
Windows 10

You need to add the event listener to content.SimpleBar.getScrollElement(), not to content itself—see the documentation.
I can’t reproduce your claim that your version worked in 4.0.0-alpha.3; AFAIK it never has.

Thanks @andersk that's good to know. I literally have a setup on my desktop using the same code as posted and toggling between 4.0.0-alpha.3 and 4.0.0-alpha.4 has it working, then not working, so perhaps I've been using a bad setup that somehow worked for a time.
I'll update my stuff to point to content.SimpleBar.getScrollElement() and test.

Ok, can confirm the documented method works (whodathunkit?). I'll close this.
Personal lesson for Friday: Read Documentation.

Your fiddle with 4.0.0-alpha.6 directly replaced by 4.0.0-alpha.3:
https://jsfiddle.net/anderskaseorg/mx85u1n2/
Doesn’t work for me in Firefox 66 or Chrome 75.

Hey, yeah unfortunately that was a breaking change of v4.
Might have to display a disclaimer on the README about the changelog.

The code in this report didn’t work in v3 either:
https://jsfiddle.net/anderskaseorg/m5aw2hbo/
There were breaking changes in v4, but this isn’t one of them.

const el = new SimpleBar(document.getElementById('myElement'));
el.getScrollElement().addEventListener('scroll', function(...));

I just noticed that the documentation states el.getScrollElement() but @andersk comment above was content.SimpleBar.getScrollElement() I actually found that @andersk solution worked, but not the documented one. My code needed the SimpleBar portion to add the eventlistener.

In the documentation, “el” refers to the SimpleBar object, not the HTMLElement object. You can get the SimpleBar object either from the new SimpleBar(…) constructor or afterwards from the .SimpleBar attribute of the HTMLElement object.
Although it’s true that the .SimpleBar attribute isn’t documented. I learned about it by reading the source. Is it considered part of the public interface?

That's totally a mistake in the doc. I'll correct that right now. Thanks!

Ah no @andersk is right :D that's very confusing tho!

So no, the idea of the public interface was:
const simpleBar = new SimpleBar(document.getElementById('myElement'));
simpleBar.getScrollElement().addEventListener('scroll', function(...));

The HTMLElement.SimpleBar was actually just a flag to know if an element was already instantiated or not.

Yeah, in my setup I've been making a reference to the HTMLElement then creating the SimpleBar Object, rather than referencing the Object directly.
This is good to grasp as I missed the detail in this, probably partly driven by me adding SimpleBar to my existing code base.

@Grsmto There’s no way to do that with a declaratively instantiated SimpleBar (<div data-simplebar>), right? I think we want some supported way to call getScrollElement and getContentElement given only an HTMLElement. I’ve found .SimpleBar convenient, but maybe a static method would be more future-proof (SimpleBar.ofElement(…)?).

@andersk no there is no "official" way of doing that but yeah I have been doing with the .simplebar reference and it's been working fine.
We could definitely also have a static method but I don't know if it would be more future-proof since I don't see the .simplebar ever disappear.
I think we could just document that actually. What do you think?

I think most of the arguments about why we might want to avoid custom DOM properties are presented here, and an argument I might add is better compatibility with static type systems. The cleanest alternative to the .SimpleBar property would be to maintain a WeakMap from HTMLElement to SimpleBar. That said, I don’t think I care too much one way or the other.


add portmap setup options for 'run' command

code LGTM

only for tcp protocol?

@gao-feng Yes, I noticed that there is no protocol configured by docker.
-p, --publish=[]           Publish a container's port to the host
                               format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort | containerPort
                               (use 'docker port' to see the actual mapping)

LGTM

:+1:


Fixed #24479 -- Added system check to prevent both ordering and order_wrt

Also, due to my comment (https://github.com/django/django/pull/4343#discussion_r26579162), it will be good to have a test which will run model check with only ordering and only order_with_respect_too, so we will see if there are such problems.

Thanks for the review.

This will not work. cls._meta.ordering is defined in django.db.models.options.Options#_prepare if order_with_respect_to used, so it will fail if I will use only order_with_respect_to.

I see what you mean. I added the suggested tests and, indeed, some are failing expectations.
It would seem to me that using the system checks framework is too late to analyze this as the _meta object has already be prepared. Would it make sense to detect this in django.db.models.options.Options#_prepare and raise an ImproperlyConfigured error if ordering is already defined?

Well, ImproperlyConfigured is kinda overhead for this issue. It will be great to have exactly system check for it. Need to find some way to do it, otherwise if there will be no ability to do this, we will need to simply document this issue.
(This is my IMO, need to have core devs opinion)

Couldn't we set an attribute like _ordering_overridden in Options.contribute_to_class() if the user specified a Meta.ordering to distinguish it from the ordering that over_with_respect_to sets?

Thanks @timgraham.
I looked into your idea and made a solution that will allow the system check. Let me know if this is what you had in mind or is a reasonable solutions. With this change all tests are passing including the the situation pointed out by @coldmind. Cheers.

Thanks for the review. I believe I have addressed your recent concerns. More feedback welcome.

merged in 966a29c2b83fed2fc7c2b5b09de80cbebc94ac74, thanks!


BKFC 68: Faulkner vs Oskar live results from Utilita Arena Newcastle LiVe 𝐒𝐭𝐫𝐞𝐚𝐦𝐬 FrEe BrOaDcAsT IN TV Guide & 𝐒𝐭𝐫𝐞𝐚𝐦𝐢𝐧𝐠 02 November 2024

10 secs ago... Anthony Faulkner (2-0) of Scotland faces Dawid Oskar (4-1) of Poland atop the BKFC 68 fight card live on DAZN from Utilita Arena in Newcastle, England on November 2. The pair battles it out for the European title at heavyweight. The event marks the fourth visit of Bare Knuckle Fighting Championship to the United Kingdom in 2024.
In the co-main event, Matt Hodgson (2-2) and Conor Cooke (3-1) clash for the British belt at light heavyweight. Also on the card, an all-English lightweight bout between Lewis Keen (3-0) and Ben Bonner (2-1). Plus, Karl Thompson (2-0) of the UK and Dawid Chylinski (2-0) of Poland go head-to-head at cruiserweight.
As well, Anthony Holmes (4-2-1) of the UK and Charles Wasserman of South Africa (1-1) square off at light heavyweight. Matthew Wiwczaryk (1-0) of the UK and Bartlomiej Krol (3-1) of Poland meet at middleweight.
Among other bouts featuring the representatives of the country-host, Gary Fox (2-2) faces John Spencer (0-2) at featherweight and Robbie Brown (2-2) takes on Brad Taylor (2-0) at bantamweight. In addition, Paul Cook (2-0) goes up against Luke Beamish (1-0) at welterweight.
Rounding out the card, Matty Hill (0-1) and Lee Browne (2-4) go toe-to-toe at heavyweight. The event opener pits Danny Moir (2-0) against debuting Kyle Redfearn at middleweight. The welterweight bout between Will Cairns (2-9) and newcomer Oscar Smykiel fell off.
Watch on DAZN
BKFC 68: Faulkner vs Oskar results
Get BKFC 68: Faulkner vs Oskar full fight card and stay tuned for live results below.


AssetFactory::generateAssetName implementation of last-modified dependency

It would be nice, if generated assets names will depend on inputs last modified dates, to flush browser static cache in production env after each dump.

duplicate of #190


Add ClusterPropagatedVersion

This is the first of a series of PRs that add propagation of cluster-scoped resources (#306).

Actually, I had one question that I thought of before I tag with LGTM:
I noticed that the installation story hasn't change re: installing this new resource. Is that intentional?

/lgtm


Add unit test debugging instructions #430

As described in issue #430 I have added debugging unit test instructions to the TESTS.md page on the Lua track.
Feedback welcome :)

Thanks!


New definition of datatypes in config

In GitLab by @ksiero on Sep 18, 2018, 15:12
Which one is better?
The one we came up with on Slack:
#scalar1
my_scalar1: char

#scalar2
my_scalar2:
  type: char

#array
my_array:
  type: array
  element_type: int
  size: 6

#record1
my_record1:
  type: record
  sizeof: $recordSize
  members:
    m1:
      disp: 0
      type: char
    m2:
      disp: $mid
      type: array
      element_type: int
      size: [2, 2]
      subsize: [1,2]
      start: [1, 0]
    m3:
      disp: $mc2
      type: char

#record2
my_record2:
  type: C_record
  members:
    - m1: char
    - m2:
        type: array
        element_type: int
        size: 5

or
#scalar1
my_scalar1: char

#scalar2
my_scalar2:
  type: scalar
  datatype: char

#array
my_array:
  type: array
  datatype: int
  size: 6

#record1
my_record1:
  type: record
  sizeof: $recordSize
  members:
    m1:
      disp: 0
      type: scalar
      datatype: char
    m2:
      disp: $mid
      type: array
      datatype: int
      size: [2, 2]
      subsize: [1,2]
      start: [1, 0]
    m3:
      disp: $mc2
      type: scalar
      datatype: char

#record2
my_record:
  type: C_record
  members:
    - m1: char
    - m2:
        type: array
        datatype: int
        size: 5

The main difference is that in the second option the type always means the same.
What do you think?

In GitLab by @ksiero on Sep 19, 2018, 09:21
And for arrays you prefer element_type or datatype?

closed


Custom Font Size

Hi,
i love this plugin, but im missing a config for the font-size. Would it be possible to add a config for he font-sizes?
Edit: I just found out that i can CTRL+Scroll to adjust the font size, but it will reset on project load / restart

Hi, i love this plugin, but im missing a config for the font-size. Would it be possible to add a config for he font-sizes?
Edit: I just found out that i can CTRL+Scroll to adjust the font size, but it will reset on project load / restart

Hi. Are you using Godot 4.1? Is your version of the plugin 1.4.5?

Also, do you have the "save session" setting turned on?

Never mind.
I found the issue and fixed it. Please try it out and let me know if it didn't work - https://github.com/Loregret/script-panel-plus/releases/tag/v.1.5.5

Yes i am on Godot 4.1.1.
Your Update fixes the font scaling. Thanks :)


The go.work should be respected

When a project has a go.work file, and that file lists modules, only those modules should be considered by the scripts.
If the project doesn't contain a go.work file, we should only act on the project root directory.
Follows up on #85

/reopen
This issue isn't yet resolved. The #223 will do it :crossed_fingers:


Add ActivityWatch v0.10.0

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

Microsoft Reviewers: Open in CodeFlow

Thanks for submitting this @hangy! Much appreciated.


Chapters on upcoming features

We should add chapters on the following features when they are released:
Landed recently:

[ ] #38
[x] #31
[x] #39

Coming later:

[ ] Coverage reports
[ ] Invariant tests
[ ] Symbolic testing
[ ] Mutation testing
[ ] Documentation generation
[ ] Deployment system

Closing this; no point in having it open since we can just open issues when the features land


Make compatible with newer sphinx/breathe versions

Never versions of sphinx/breathe (4.0.x/4.30.0) don't like our variable and variable/C anymore.
We need to translate that to double/complex.

Not a problem anymore, it works in MIES, see https://github.com/AllenInstitute/MIES/blob/main/tools/docker/requirements.txt.


Errors When Creating AKS Cluster From Docs

My issue is with this command:
New-AzAksCluster -ResourceGroupName myResourceGroup -Name myAKSCluster -NodeCount 2 -GenerateSshKey -AcrNameToAttach <acrName>
here on this page and what happens if you already have an SSH key. If you already have an SSH key, the command prints out an error: New-AzAksCluster: Default ssh key file C:\Users\<username>\.ssh\id_rsa already exists. Please use parameter -SshKeyValue 'C:\Users\<username>\.ssh\id_rsa' instead of -GenerateSshKey.
If you use the suggested command, you get a new error: (InvalidParameter) The value of parameter linuxProfile.ssh.publicKeys.keyData is invalid. Please see https://aka.ms/aks-naming-rules for more details. Code: InvalidParameter Message: The value of parameter linuxProfile.ssh.publicKeys.keyData is invalid. Please see https://aka.ms/aks-naming-rules for more details. Target: linuxProfile.ssh.publicKeys.keyData
I believe the reason is that when using the -SshKeyValue, the parameter required is not the id_rsa file name, but rather the id_rsa.pub file name. Indeed, using that public key file name leads to a successful creation of the AKS cluster. Another alternative is to leave off the -GenerateSshKey and -SshKeyValue options entirely when the SSH key already exists.

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

ID: d4af71a4-648e-580f-7e86-94ce05196de5
Version Independent ID: 134b8ba0-b085-076a-d2e1-16d0ddff5586
Content: Kubernetes on Azure tutorial - Deploy a cluster - Azure Kubernetes Service
Content Source: articles/aks/tutorial-kubernetes-deploy-cluster.md
Service: azure-kubernetes-service
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@RedQuark
Thanks for your feedback! We will investigate and update as appropriate.

@RedQuark
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly.

#reassign:Nickomang


error 002

i opened as admin and it still said error 002

Me too what is that
Help please

me too please can somebody help??


Properly upgrade to<EMAIL_ADDRESS>

We are not using lodash. If there is a dependency in this project that you think should upgrade it, you should file an issue with them. See: https://github.com/davezuko/react-redux-starter-kit/blob/master/package.json#L79-L121.


[SDL2] update to 2.30.6

Library name
SDL2
New version number
2.30.6
Other information that may be useful (release notes, etc...)
This is a stable bugfix release, with the following changes:

Improved detection of Nintendo Switch Pro controller report mode
Fixed a rare crash when a controller is disconnected
Fixed creating a framebuffer with KMSDRM on some systems

#40259


Buttons are doubled.

there are two of each of the buttons for the Sodium Extra mod and I can't figure out why

plus I forgot to mention they function properly and are the same stuff

What version of Sodium Extra and RSO are you running? I did place a version lock for Sodium Extra to prevent this.

it's 1.4.2 for RSO and 0.4.1 for Sodium Extra

I'll download 0.4.2 and try

ahh that worked thanks


[Feature] Update jedis plugin to support jedis 3.x 4.x

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
The latest jedis is 4.x . The current jedis-scenario is support jedis 3.9 , It passed my preliminary tests
I will rename jedis-2.x-plugin to jedis-2.x-3.x-plugin if it work right on 3.9 (need more test)  .And add a new modulejedis-4.x-plugin
Of course , if jedis-2.x-plugin needs very little modification it can support 4.x , I will not add new module. This depends on code  compatibility
Use case
No response
Related issues
No response
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Oh, I forget Streams command .  I will test the command . And reconstruct these code , put  appropriate code to appropriate  module.

I will rename jedis-2.x-plugin to jedis-2.x-3.x-plugin if it work right on 3.9 (need more test) .And add a new modulejedis-4.x-plugin

If you need to add a new plugin for 4.x, then 2.x-3.x plugin may need to add witness classes to make sure both of these plugins existing in the default folder.

Got it , I'll tell you about the module details first , then start coding  .

Update
module :
-- jedis-plugins
---- jedis-2.x-3.x-plugin
---- jedis-4.x-plugin
---- jedis-2.x-4.x-commons

jedis-2.x-4.x-commons  include common  method ,class  , or interceptor class
jedis-2.x-3.x-plugin This module rename from jedis-2.x-plugin .  Update jedis dependency to 3.9.0 , and support stream command  .  It work with  jedis-2.x-4.x-commons togther . Notice witness classes
 jedis-4.x-plugin The main goal is to accommodate the jedis API  , Also work with  jedis-2.x-4.x-commons togther . Notice witness classes

test-scenario

jedis-2.x-scenario .  Rename from jedis-scenario . The code doesn't change
jedis-3.x-scenario  . include base command test( same as  jedis-2.x-scenario) , add  stream command test
jedis-4.x-scenario . Same as  jedis-3.x-scenario

Generally good

jedis-2.x-4.x-commons include common method ,class , or interceptor class

I think this could be jedis-commons? What classes exactly in the common plugin?

I want put  interceptor class to this module . I don't guarantee  this module  can't  apply to jedis 5.x  in  future .
The future-man  should notice it .

Make sense.

Are you going to submit this soon? I plan to release 8.12.0 recently.

Should be done at this weekend .


[2023-08-24T09:21:27.174Z]    at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryHandleTimeoutAsync(Task invokeTask, CancellationToken shutdownToken, Boolean throwOnTimeout, CancellationToken timeoutToken, TimeSpan timeoutInterval, IFunctionInstance instance, Action onTimeout) in D:\a\_work\1\s\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 669
[2023-08-24T09:21:27.174Z]    at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.InvokeWithTimeoutAsync(IFunctionInvoker invoker, ParameterHelper parameterHelper, CancellationTokenSource timeoutTokenSource, CancellationTokenSource functionCancellationTokenSource, Boolean throwOnTimeout, TimeSpan timerInterval, IFunctionInstance instance) in D:\a\_work\1\s\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 584
[2023-08-24T09:21:27.174Z]    at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithWatchersAsync(IFunctionInstanceEx instance, ParameterHelper parameterHelper, ILogger logger, CancellationTokenSource functionCancellationTokenSource) in D:\a\_work\1\s\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 551
[2023-08-24T09:21:27.174Z]    at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(IFunctionInstanceEx instance, FunctionStartedMessage message, FunctionInstanceLogEntry instanceLogEntry, ParameterHelper parameterHelper, ILogger logger, CancellationToken cancellationToken) in D:\a\_work\1\s\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 368
[2023-08-24T09:21:27.174Z]    at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(IFunctionInstanceEx instance, FunctionStartedMessage message, FunctionInstanceLogEntry instanceLogEntry, ParameterHelper parameterHelper, ILogger logger, CancellationToken cancellationToken) in D:\a\_work\1\s\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 368
[2023-08-24T09:21:27.174Z]    at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance functionInstance, CancellationToken cancellationToken) in D:\a\_work\1\s\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 158. IsReplay: False. State: Failed. HubName: ldevtest. AppName: . SlotName: . ExtensionVersion: 2.9.3. SequenceNumber: 125. TaskEventId: 30

Restart the function again = rinse repeat.
Inspecting the storage account the history and instances tables contain nothing. If quick enough refreshing the control-00 queue shows this:

But that too disappears almost immediately. I appear to be in an endless loop with above :confused:. Will likely trash the storage account and function and start again but this is less than ideal if used in real world.

Thanks for the detailed info as always, I will try to reproduce this later this week.

Hi @ruankr: I cloned your repohttps://github.com/ruankr/psfunction-newsdk-test and tried to run it, but it appears to have a fair bit of dependencies so I'm not able to easily run it just yet. It appears to connect to servicebus, and some azure infrastructure that I haven't fully figured out.
Is it realistic to get a list of instructions on what azure resources I need to set up to get this running? Trying to figure out if I can easily get this running on my machine, or if the code is just for reference but not expected to be readily executed on my machine. Please let me know

In the meantime, I'll be setting up some stress tests on my machine: I'll see if I can get this to repro by fanning over 400 activities on my machine or something like that.

@ruankr: I think I got it to reproduce. I set up a simple fan-out orchestrator that schedules 400 activities in parallel.
At first, those activities were simple "Hello World" activities. With those, the orchestrator never got stuck.
However, I then made those activities call Start-Sleep, like in your repro, and suddenly the orchestrator started timing out. I need to think about what this means, but I was able to repro this locally.
Quick question: do you see this timeout behavior with the old SDK as well? My hunch would be that this reproduces in the old SDK as well.

Yeah I'm able to repro this semi consistently. According to my logs, the "stuckness" is occurring only when at least 1 of the activities errors out and it occurs when we're trying to collect the results of each of activities one by one (using the sample code to collect all outputs  earlier in this thread). At some point, we call Get-DurableTaskResult and simply do not return. I'll add more traces to get to the bottom of this.

I think I have a fix here: https://github.com/Azure/azure-functions-durable-powershell/pull/68
Looking to get this reviewed and released to see if it mitigates the issue on your end :) . Might take a few more days to get it merged and out.

Oh wow that's wonderful thanks for that @davidmrdavid . Would there be any code changes in the orchestrator function my end once that's in as well or should it just work? Do I still need to worry about needing to do error handling in the orchestrator function as a result or are we saying that it should be good once that change goes in?

@ruankr: If the fix works as designed, there should be no need for error handling on your end, so it should just work with your code as-is. The problem with this issue is that it was caused by low level deadlock which the user code has no control over.
The PR above was just merged (which accidentally closed this issue), so I'm preparing a release right now.

@ruankr: Can you please try to repro with version 1.0.2 of the SDK? https://github.com/Azure/azure-functions-durable-powershell/releases/tag/v1.0.2

@davidmrdavid Apologies for the lack of response. I am happy to confirm though, I've been running multiple functions with a fair deal of success at least. I have found though that context switching between Azure (different tenants) and/or MsGraph seems to produce mixed results, not sure if this ever came up or if there is a recommended way to achieve good results here? I've tried with managed identity, certificates and service principals and get the same behaviour. The functions I have mainly uses service principals though (Client Credential Flow).
It will sometimes fail loading modules, because of the dll's being in use already, or the context doesn't switch because the modules aren't loaded, or it just don't connect at all, and then complaining about resources not found as its in the wrong tenant or not authenticated. I tried handling this with Start-Threadjob but it's very difficult getting a clean response or good logging doing that. Strangely it seems modules are loaded each time As per the documentation, I have specific versions of modules I use so have the import-module statement in the profile.ps1, but it appears this performs a module import at every run, even when using an always on dedicated plan, and single http triggered functions. This also slows down execution times quite a bit, and is then also what sometimes causes the module issues as they are already loaded and then complain about locked dll's, or not loaded and then complain about that.  (This is easily reproducible by simply loading the MsGraph module, which seems to always have a barny with the Az.Authentication module or vice versa). So, still not perfect but at least the function/orchestrator is now handling the failures the way I wanted it to so big thanks for your help!


next.js 10.2.3 breaking woff loader

Had to revert to my previous PR due to an issue only present when building with target: 'serverless' and importing a .woff font.  Seems to be a loader issue

next.js update does not comply with the standard-version specification at all, even a small version upgrade will have a lot of BREAK CHANGE, so I do not intend to fix immediately, wait for their official solution less CSS problem. I'm tired.

If you want to use this plugin on next.js, please make sure you have version <= 10.2.0.

Noted -- Thanks so much for the help to date!


Changed event type, fixed fallback option fixes issue #1980

@christianguenter2
I changed 2 things in javascript:

replaced

oEvent.key || oEvent.keyCode
with
oEvent.key || String.fromCharCode( oEvent.keyCode)
as the key code is numeric and we want the character value

replaced event 'keydown' with 'keypress', as in keydown I get the wrong keycode (i.e. 65 for 'a', converts to 'A' )

#1980


Progress-bar is not working smoothly

Hello all!
Im having problem with progress-bar. As you can see in demo link and first video progress-bar is not working properly. I mean first it is coming to %50-%60 then it goes to %100. Is it possible to make it smooth ?
Any suggestion or help would be great. Thanks...
Live Demo
www.basebros.com/ar-projects.html
This is my progress bar
https://user-images.githubusercontent.com/68244546/115105776-ac896500-9f69-11eb-972d-61e7654b0e9c.mov
This is what I want to do
https://user-images.githubusercontent.com/68244546/115105784-b9a65400-9f69-11eb-835d-df76cce424a2.mov
My codes which I used in live demo and first video.
const modelViewer = document.querySelector('model-viewer');
const progress = document.querySelector('#progress');
const bar = progress.querySelector('.bar');
modelViewer.addEventListener('progress', (event) => {
const {totalProgress} = event.detail;
progress.classList.toggle('show', totalProgress < 1);
bar.style.transform = scaleX(${totalProgress});
});
#progress {
position: absolute;
width: calc(100% / 3);
height: 10px;
color: rgba(255, 255, 255, 0.952);
box-shadow: 0px 0px 8px 6px rgba(24, 24, 24, 0.534);
border: 2px solid currentColor;
border-radius: 10px;
top: calc(50% - 5px);
left: calc(50% - 100% / 6);
opacity: 0;
transition: opacity 0.3s 0.3s;
}
#progress.show {
transition-delay: 0s;
opacity: 1;
}
#progress>.bar {
width: 100%;
height: 100%;
background-color: currentColor;
transform-origin: top left;
transform: scaleX(0);
}
Version

model-viewer: v1.6

Browser Affected

[ x] Chrome, version: xx.x.xxxx.xx
[ x] Edge
[ x] Firefox
[ x] IE
[ x] Safari

OS

[ x] Android
[ x] iOS
[ x] Linux
[x ] MacOS
[ x] Windows

v1.1 is quite old; can you try with the latest, v1.6? This may have already been fixed. Also, does the default progress bar have the same behavior?

@elalish I updated to v1.6 it is still same (you can try on demo link) and also I tried default progress bar, same behavior again.
Is this problem just on me for both custom and default progress bar or anyone having this problem too ?

We've seen this occasionally. The progress is actually sent by the server as part of the file fetch process. Sometimes the server config is messed up so that it either doesn't send progress at all, or sends the wrong values.

Also a funny note. If you click on the bar while the model loads, it fills faster (especially, when you have large file-sizes)

I'm guessing that has less to do with clicking and more to do with browser caching.


Prebuilt libcurl libraries v7.64.1 for windows openssl is not working

I have downloaded the prebuilt libcurl libraries v7.64.1 for windows from here
The static build of cpr-example went smoothly, except I found that the OpenSSL built against libcurl is not working until I use this option: cpr::VerifySsl{false}.

Yeah I had the same issue.. This lib is called CPR because you will need CPR after trying to build on windows

Ping @kingkili.

Can you please provide an build log, or an minimal example.

Closing this since there has not been a response for a month now.


Model not converging with P2D and modified P2D

I tried using standard P2D models and modified version with MHC kinetics.
It seems the model cannot either find an initial condition or converging afterwards.
Is that supposed to behave like this as it's still on early stage and need more future work or I just doing something wrong?

Hi @neokzp thanks for the question but I'm going to need to see the code you are running to be able to help

Closing as no response from op


update LazyOp to UOp AST in extra/ helpers and to_movement_ops

I looked into cleaning up extract_sa_pairs.py, extract_policynet.py, and pretrain_valuenet.py as well, but I don't know how to run these scripts (I seem to be missing some required metadata to run these examples).

don't worry about those, as we say in the README:

We don't care about the code in extra

load_worlds should also be fixed up, those filters are wrong.

the filters should be good now -- tested with

any("REDUCE" in x for x in load_worlds(True, False, False)) -> True
any("image" in x for x in load_worlds(False, True, False)) -> False
any("Variable" in x for x in load_worlds(False, False, True)) -> False
but lin_to_feats also has some issue I'm observing after running extra/optimizations/rl.py. looking into that now.

When I ran rl.py, lin_to_feats had the following failure modes:

symbolic shapes were causing math functions to fail
the Kernel shapetrackers were exceeding MAX_DIMS or MAX_BUFS

I addressed (1) in this diff, since that seems like something that should be updated in helpers. IMO (2) is user error and should be fixed by the caller. We could add an additional helper function that the caller can use to determine if the kernel can be used with lin_to_feats(), but that seems beyond the scope of this PR and more appropriate in a PR that fixes up the examples in extra/optimizations (if we decide we care about this code).

eh, on second though, I think it makes sense to update rl.py in this patch since it's the only thing that I can run that tests lin_to_feat and the newly added is_lin_valid_feat. pretrain_valuenet.py is a dependency of rl.py, so it requires updating too. And finally, I'm also including the removal of LazyOp in extract_sa_pairs.py and extract_policynet.py because otherwise attempting to run them just throws an import error. I still can't get them to work cos I don't have their required files, but this at least gets them farther.

meh, we really don't care about functions in extra/ that aren't used in CI. So I'd rather keep them as-is. Isn't this diff all we need?

to_movement_ops.py runs in CI


Login error messages not hidden

If you login using<EMAIL_ADDRESS>with password "password", it will work. But if you give a wrong password, it'll show "Incorrect password". Once the user starts trying the username password again, the message still remains.
We need the message to be removed if the user starts trying again

I have fixed this issue. Please reopen if it is found again


License created

i added a license file to the repository

This is great, I made this repo Hacktoberfest Accepted, you can create and learn more about hacktoberfest and it's benefits. So your PR is accepted as one of the 4 entry.

How do i do that?

Create an account with hacktoberfest and link your GitHub account. You can read more in it online


✨ Send available condition events for managed cluster

Summary
Related issue(s)
Fixes #

/assign @qiujian16 @elgnay

/approve
/lgtm


"Return to" function [Suggestion]

Along with setting the Destination for a shuttle. set it as
Train route:
Playerrequest - wait a time
set dest to "Shuttle Parking"
The idea being that if a shuttle is waiting too long at a player requested destination, the player has either:
1.Got distracted
2.Has been delivered to the destination.
3.Multiple shuttles are in the network, and someone accidentally sent two shuttles to two different locations. or the wrong location, while another shuttle reaches the correct location.
Therefore, the shuttle will return to "shuttle parking" where it is out of the way of the rail network and may also be refueled. Leaving all passenger or cargo stations open to other trains.
Preferably. This could be a check mark within the dest request menu. Incase someone did want the shuttle to stay there.

seems easy enough, just set the schedule to have a second station set to be the shuttle parking
the difficulty will be to have the player select the name of the parking station (maybe using a table for the station selection UI with a hideable checkbox to set the parking ?)

Also, if this is added, a shuttle should only be called if stopeed at a station.

@simwir, if you want, I can take a look at how to do that (I have an idea that could work)

I thought of some situations that might cause issues.
My lua skills are extremely rusty. But if you set the trains scheduled to
Player Dest:wait 30 shuttlepark:wait max time
This will set it as a loop and not as a one way dest.
this is more of an ease-of-life issue. but the amount of time you would want to wait for the player is different if the player is boarding the train or unborading the train. but here is some shitty pseudocode

if train unoccupied by player when call is made #set wait times
{wait time == 30;}
else{
wait time == 10;}
while waittime>deltatime
{
     if train is occupied{
     exit;} #stop the loop and program checking for destination
}
set train dest to ==#shuttlepark and mark shuttle as free

@stanfear You are more than welcome to take a look at it.
@Blackphidora Checking if the player is in the train would be pretty easy. And there is a event for a trains changing state, so you could check for that, and then see if it is at the parking station.

My request was similar so I thought to add it here. How about a "Home" button in the UI? This way there is a quick way to return after shuttling out to an outpost.  Happy to create it as a separate issue if that's better.

@anup-ap I think a better option would be to bookmark a station to always have it first in the list (that way, you can bookmark any station you want, not just the "home" one

agreed, that works. anything that allows exemption from the filter would be an improvement to avoid extra clicks hopping back in the shuttle and heading home

@anup-ap @stanfear No. This will ruin the point of moving the train back to the home station. as currently trains are picked by which train is closest to the station, not the player. therefor it would be possible another train to be picked to head home instead of the tran that just dropped you off.

ok, back to the original idea !
what do you think about rerouting trains to parking stations if there is one less than XX tiles away ?

@anup-ap I've created another feature request, see #25

@stanfear I mean I guess. But it seems like it be a better idea as just a checkbox. let me elaborate.
Your main base may have enough sidings, wait ques. and rails to support an extra "useless"(no cargo) train. but what about outpost. especially is RSO. You have a base that's 3 mins away. only one station, single track, you have two situations.
One. you will be there shortly. and don't mind the delay of the tram while you are there.
OR
You are using the outpost to quickly get to the edge of your territory. and you will be out for a longer time period (say. killing biters or building more) .
So now you at a delima. Do I force the player to make another train station? Do I just send the train off anyway, Or not move the train because a parking space is 10000 tiles away?

One solution a player could use to prevent the shuttle train from leaving without creating and naming another station: The player could set a circuit-closed signal on the route.

Can i suggest this be mentioned on the main forum and main github. i almost didn't download it because i was worried it would just clog up my tracks,

@rainthegamer I no longer have time to maintain this mod. A new version is being maintained by folk:
shuttle train lite.


Add Fuse data structure size metrics and improve metrics docs

What changes are proposed in this pull request?
Add Fuse data structure related size metrics and add fuse metrics docs
Why are the changes needed?
Those metrics can help users monitoring the load of the current fuse filesystem and understand the Fuse performance
Does this PR introduce any user facing changes?
Add metrics and improve metrics docs

@maobaolong Let me know if there are other metrics that you think are helpful to add, PTAL, thanks!

Codecov Report

Merging #13830 (f52fafc) into master (0203366) will decrease coverage by 26.31%.
The diff coverage is 35.70%.

@@              Coverage Diff              @@
##             master   #13830       +/-   ##
=============================================
- Coverage     43.86%   17.54%   -26.32%
+ Complexity     8930     2679     -6251
=============================================
  Files          1359     1386       +27
  Lines         78109    80567     +2458
  Branches       9496     9804      +308
=============================================
- Hits          34260    14139    -20121
- Misses        40960    65183    +24223
+ Partials       2889     1245     -1644

Impacted Files
Coverage Δ

...n/java/alluxio/client/block/AlluxioBlockStore.java
5.93% <0.00%> (-69.91%)
:arrow_down:

...o/client/block/policy/DeterministicHashPolicy.java
0.00% <ø> (-68.43%)
:arrow_down:

...nt/block/policy/LocalFirstAvoidEvictionPolicy.java
0.00% <ø> (-94.29%)
:arrow_down:

.../alluxio/client/block/policy/LocalFirstPolicy.java
0.00% <ø> (-93.94%)
:arrow_down:

.../client/block/policy/MostAvailableFirstPolicy.java
0.00% <ø> (-91.67%)
:arrow_down:

.../alluxio/client/block/policy/RoundRobinPolicy.java
0.00% <ø> (-97.92%)
:arrow_down:

...lluxio/client/block/policy/SpecificHostPolicy.java
0.00% <ø> (-40.00%)
:arrow_down:

...ava/alluxio/client/block/stream/BlockInStream.java
0.00% <0.00%> (-58.20%)
:arrow_down:

...xio/client/block/stream/BlockWorkerDataReader.java
0.00% <0.00%> (ø)

...ient/block/stream/BufferCachingGrpcDataReader.java
0.00% <0.00%> (-41.67%)
:arrow_down:

... and 897 more

Continue to review full report at Codecov.

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

alluxio-bot, merge this please