Unable to export using ImportExportModelAdmin

Using 'import-export v==1.0.1'
This is my stack trace:
Traceback:

File "/Users/fmirdita/Projects/django/django/core/handlers/exception.py" in inner
35. response = get_response(request)

File "/Users/fmirdita/Projects/django/django/core/handlers/base.py" in _get_response
128. response = self.process_exception_by_middleware(e, request)

File "/Users/fmirdita/Projects/django/django/core/handlers/base.py" in _get_response
126. response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/Users/fmirdita/Projects/django/django/utils/decorators.py" in _wrapped_view
142. response = view_func(request, *args, **kwargs)

File "/Users/fmirdita/Projects/django/django/views/decorators/cache.py" in _wrapped_view_func
44. response = view_func(request, *args, **kwargs)

File "/Users/fmirdita/Projects/django/django/contrib/admin/sites.py" in inner
223. return view(request, *args, **kwargs)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/import_export/admin.py" in export_action
403. queryset = self.get_export_queryset(request)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/import_export/admin.py" in get_export_queryset
374. self.list_max_show_all, self.list_editable, self

Exception Type: TypeError at /admin/reception/person/export/
Exception Value: init() missing 1 required positional argument: 'sortable_by'

My ModelAdmin class inherits from ImportExportModelAdmin, and when using the admin interface I can click export and choose CSV from a dropdown. Upon submitting, I get error
TypeError at /admin/reception/service/export/ __init__() missing 1 required positional argument: 'sortable_by'
Looking at ExportMixIn get_export_queryset it appears the error comes from this line:
cl = ChangeList(request, self.model, list_display,             list_display_links, list_filter, self.date_hierarchy,             search_fields, self.list_select_related, self.list_per_page,             self.list_max_show_all, self.list_editable, self         )
From ChangeList docs:
class ChangeList:     def __init__(self, request, model, list_display, list_display_links,                  list_filter, date_hierarchy, search_fields, list_select_related,                  list_per_page, list_max_show_all, list_editable, model_admin, sortable_by):
I'm not sure why it's just self at the end of of that line of the get_export_queryset method in the ExportMixIn class. It seems there might be a missing argument for this line?
What else I've tried:
In my ModelAdmin I put resource_class = ModelResource and wrote a corresponding ModelResource for each of my models.
I was able to run
>>> from app.admin import ModelResource
>>> dataset = ModelResource.export()
>>> print(dataset.csv)
-printed correct model data-

So clearly the export functionality works, but not with the admin interface. Thanks for the help!
Update:
Found a temporary fix by overriding the get_export_queryset function in the ModelAdmin that inherits the ImportExportModelAdmin class. I just passed in None:
    def get_export_queryset(self, request):
            """
            Returns export queryset.
            Default implementation respects applied search and filters.
            """
            list_display = self.get_list_display(request)
            list_display_links = self.get_list_display_links(request, list_display)
            list_filter = self.get_list_filter(request)
            search_fields = self.get_search_fields(request)
            if self.get_actions(request):
                list_display = ['action_checkbox'] + list(list_display)

            ChangeList = self.get_changelist(request)
            cl = ChangeList(request, self.model, list_display,
                            list_display_links, list_filter, self.date_hierarchy,
                            search_fields, self.list_select_related, self.list_per_page,
                            self.list_max_show_all, self.list_editable, self, None
                            )

            return cl.get_queryset(request)

Update:
Alternative solution #2:
I'm also capable of exporting using ImportExportActionModelAdmin, so I'm just using that class.

Hi @fmirdita,
You are only showing the last line of the stack trace, and it seems it is affecting your own code. Can you please provide complete stack trace with line numbers and also import-export version used?

using:
django-import-export==1.0.1
and my full stack trace is:
`Environment:
Request Method: POST
Request URL: http://<IP_ADDRESS>:8000/admin/reception/person/export/
Django Version: 2.1.dev20180407004606
Python Version: 3.6.3
Installed Applications:
['reception.apps.ReceptionConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'import_export']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/Users/fmirdita/Projects/django/django/core/handlers/exception.py" in inner
35.             response = get_response(request)
File "/Users/fmirdita/Projects/django/django/core/handlers/base.py" in _get_response
128.                 response = self.process_exception_by_middleware(e, request)
File "/Users/fmirdita/Projects/django/django/core/handlers/base.py" in _get_response
126.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/fmirdita/Projects/django/django/utils/decorators.py" in _wrapped_view
142.                     response = view_func(request, *args, **kwargs)
File "/Users/fmirdita/Projects/django/django/views/decorators/cache.py" in _wrapped_view_func
44.         response = view_func(request, *args, **kwargs)
File "/Users/fmirdita/Projects/django/django/contrib/admin/sites.py" in inner
223.             return view(request, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/import_export/admin.py" in export_action
403.             queryset = self.get_export_queryset(request)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/import_export/admin.py" in get_export_queryset
374.             self.list_max_show_all, self.list_editable, self
Exception Type: TypeError at /admin/reception/person/export/
Exception Value: init() missing 1 required positional argument: 'sortable_by'`

I'm experiencing the same issue as @fmirdita with django-import-export v1.0.1 and Django 2.1
as he suggested, overriding get_export_queryset or using ImportExportActionModelAdmin are workarounds (thank you!) but ImportExportModelAdmin fails in the admin with "Exception Value: init() missing 1 required positional argument: 'sortable_by'", otherwise.

@fmirdita thanks for opening this issue
new keyword argument sortable_by was added in Django 2.1: https://docs.djangoproject.com/en/2.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_sortable_by

Thanks for the speedy fix!

This would be in next release

when will the new release be coming? i am still facing this issue


WIP: Add hive-frontend role

@jhernand can you give this a look and let me know if it looks sufficient to you?
This may take some trial and error but the more we can get right now the better.
@jmelis you may want a look as well

The permissions look good to me. However I wonder if we will be able/allowed to get those permissions inside an OpenShift dedicated cluster.

This will deliver via OLM with hive -operator so we can literally add whatever we want here, and per Jira SRE has no issues with the elevated access at this time.
I am not sure if project requests are required. Should we add them for initial attempt?

Ok then this is probably good for a first attempt. I will remove WIP and see if we can get it to roll out.

/test integration


Listings with Descending Usage order

All current listings (nodes/namespaces/pods/containers) are randomly ordered. Instead, they could be tables that list the latest CPU and memory Usage, allowing the user to sort them.
This would facilitate the use case of viewing the top memory and cpu consumers in an easy top-down UX.

Resolved in #20


chore: remove marshmallow-enum dependency and bump FAB

SUMMARY
Marshamallow and marshmallow-apispec support Enum types and since then marshmallow-enum as been archived.
This PR:

Bumps marshmallow and apispec
Removes marshmallow-enum dependency, relying on marshmallow fields.Enum only
Bumps Flask-AppBuilder from 4.3.0 to 4.3.3 https://github.com/dpgaspar/Flask-AppBuilder/blob/master/CHANGELOG.rst

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Nice!
@dpgaspar Can you remove marshmallow_enum from setup.cfg and pin marshmallow in install_requires, setup.py?

Nice! @dpgaspar Can you remove marshmallow_enum from setup.cfg and pin marshmallow in install_requires, setup.py?

good point, but I don't think we need to pin mashmallow on setup.py since we are already pinning flask-appbuilder, and it does that for us

Very nice! I verified that the configuration_method error that I was previously seeing on the codegen, where the enum values were missing, is now gone 👍 LGTM

Thank you for raising my attention to this issue, great work @villebro as always


when will be ready the version for Swift 5?

The latest 6.x as well as 7.x version is already ready because Swift 5 compiler supports Swift 4.2 syntax.
Update to Swift 5 syntax is in progress. It will be out probably this week.


subcommand failed build failure since aa39387

Ignoring template as it's targeted to problems with games.
Trying to compile winelib version of aa39387a6c1c603e2a4028fb04b6522cb1fec2de or later results in ninja: build stopped: subcommand failed., compiling 33d2041b0b513f383ef8f51723a75fb03139b5cc works just fine.
Full log: buildlog.log
Using this AUR package: https://aur.archlinux.org/packages/d9vk-winelib-git/
Linux 5.3.8-arch1-1-fsync + wine-4.19

Can you try now?

That did the trick, thanks!


shapes not aligned, timeseries_lstm.py

I recently downloaded neon source code, and ran few models. Other models worked like charm, but when I ran timeseries_lstm.py, it threw error. It read:
C:\Python27\python.exe D:/neon/test/timeseries_lstm.py
C:\Python27\lib\site-packages\skcuda\cublas.py:272: UserWarning: creating CUBLAS context to get version number
  warnings.warn('creating CUBLAS context to get version number')
Traceback (most recent call last):
  File "D:/neon/test/timeseries_lstm.py", line 314, in <module>
    callbacks=callbacks)
  File "D:\neon\models\model.py", line 175, in fit
    self._epoch_fit(dataset, callbacks)
  File "D:\neon\models\model.py", line 197, in _epoch_fit
    x = self.fprop(x)
  File "D:\neon\models\model.py", line 228, in fprop
    return self.layers.fprop(x, inference)
  File "D:\neon\layers\container.py", line 330, in fprop
    x = l.fprop(x, inference=inference)
  File "D:\neon\layers\recurrent.py", line 450, in fprop
    self.be.compound_dot(self.W_recur, h_prev, ifog, beta=1.0)
  File "D:\neon\backends\nervanacpu.py", line 905, in compound_dot
    np.dot(A._tensor, B._tensor, tmp)
ValueError: shapes (128,32) and (32,1,1) not aligned: 32 (dim 1) != 1 (dim 1)

I am running Windows 8.1 64bit

Neon does not officially support Windows, and this error does not occur under Linux / Mac operating systems.


staged-director-config should heuristically parameterize credentials

The staged-config command includes a flag (--include-placeholders), which will bosh parameterize anything that is a credential.
There should be support for this with staged-director-config.
The heuristic portion comes into play because director properties don't have types like the tile properties do.
The parameters would be determined if the property key contains any of the following in its name "password", "user", "cert", "key".
The reason for this behaviour is to help separate the concern of credentials from config files. The exported config, from staged-director-config, can be reusable across OpsManager foundations.
We currently have a working example. We'd like to add this functionality to om directly.

We've blocked work to do this on alignment about the feature, and are coming up on it in our backlog. @mcwumbly do y'all have feelings on this?

@mcwumbly do y'all have feelings on this?

Hmm... sorry, I haven't given it much thought yet.  Looking now, it sounds a bit tricky to me, but:

We currently have a working example. We'd like to add this functionality to om directly.

Can you point to the working example and/or illustrate here inline what the current and future behavior is that you have in mind more concretely?
For example:
current output :
some:
  yaml: stuff

future output:
some:
  other: stuff

Here is an example of the diff dumped from a vsphere opsman.
-  bosh_disk_path: "some-path",
-  bosh_template_folder: "some_templates",
-  bosh_vm_folder: "some_vms",
-  datacenter: "one-dc",
-  ephemeral_datastores_string: "some-datastore",
-  nsx_networking_enabled: false,
-  persistent_datastores_string: "some-other-datastore",
-  ssl_verification_enabled: false,
-  vcenter_host: "some.vcenter.host",
-  vcenter_username<EMAIL_ADDRESS>+  bosh_disk_path: "((iaas-configuration_bosh_disk_path))",
+  bosh_template_folder: "((iaas-configuration_bosh_template_folder))",
+  bosh_vm_folder: "((iaas-configuration_bosh_vm_folder))",
+  datacenter: "((iaas-configuration_datacenter))",
+  ephemeral_datastores_string: "((iaas-configuration_ephemeral_datastores_string))",
+  nsx_address: "((iaas-configuration_nsx_address))",
+  nsx_ca_certificate: "((iaas-configuration_nsx_ca_certificate))",
+  nsx_mode: "((iaas-configuration_nsx_mode))",
+  nsx_networking_enabled: "((iaas-configuration_nsx_networking_enabled))",
+  nsx_password: "((iaas-configuration_nsx_password))",
+  nsx_username: "((iaas-configuration_nsx_username))",
+  persistent_datastores_string: "((iaas-configuration_persistent_datastores_string))",
+  ssl_verification_enabled: "((iaas-configuration_ssl_verification_enabled))",
+  vcenter_host: "((iaas-configuration_vcenter_host))",
+  vcenter_password: "((iaas-configuration_vcenter_password))",
+  vcenter_username: "((iaas-configuration_vcenter_username))",
-  trusted_certificates: nil,
+  trusted_certificates: "((security-configuration_trusted_certificates))",

Basically we replace the entire iaas-configuration section to be the placeholder in the format of "${top_level_key_name}" + "_" + "${field_name}", and then heuristically go through the rest sections to replace the value of the keys which contain "password" or "user" or "cert" or "key" to the placeholder.
The trusted_certificates in security-configuration section is an example (the last line in diff), it contains keyword cert, so we replace the value of it to be the placeholder security-configuration_trusted-certificates

We view one of the major utilities of placeholders as allowing the use of the same base config across several environments, and IaaS configuration is as environment-coupled as creds, or more so.

Yeah, I think this makes sense. If that's the case, is the distinction between the two useful at all? (That is to say, do we really need the prefixes iaas-configuration_ and/or security-configuration_?)
Is there anything in the output of staged-director-config that shouldn't  be a placeholder?
From the OP (@jtarchie):

The heuristic portion comes into play because director properties don't have types like the tile properties do.

I'm not sure I'm seeing any type distinction in the diff that was posted by @fredwangwang. What am I missing?
Happy to hop on a call if it's easier to explain in real time.

is the first command om staged-director-config and the second one om staged-director-config --include-placeholders?

yes
On Tue, Jul 24, 2018 at 18:17 David McClure<EMAIL_ADDRESS>wrote:

is the first command om staged-director-config and the second one om
staged-director-config --include-placeholders?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pivotal-cf/om/issues/192#issuecomment-407592487, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AUr56ZUDXVIhGV4Uyn_E6mcG5uYe2LHHks5uJ7j_gaJpZM4UsB5c
.

OK, I think I'm catching up to you now.
I'm tempted to push for the following for consistency with our UX for product configuration commands:

om staged-director-config should exclude the keys for trusted_certificates and the iaas-configuration map by default
om staged-director-config --include-credentials should include the values for the above
om staged-director-config --include-placeholders should include placeholders, as spec'd here.

Does the above make sense to you?
(We don't have to do it all at once, just checking if we're in alignment on potential future features to make this all consistent)

I agree we should keep the user interface and the expected result of staged*-config commands as similar as possible. Here are the cases you mentioned:

om staged-director-config should exclude the keys for trusted_certificates and the iaas-configuration map by default
&
om staged-director-config --include-placeholders should include placeholders, as spec'd here.

I think it is fine, except do we want to exclude security-configuration.trusted_certificates? Because technically it is not a cred, it is a certificate. The reason --include-placeholder parameterize the field is because it is potentially env specific.

om staged-director-config --include-credentials should include the values for the above

I don't think we can do this. For staged-config it is doable because we can get all the credentials from api /api/v0/deployed/products/%s/credentials/%s. It is not the case for the director. There is no api endpoint (as far as I can tell) we can use to get the obscured iaas-configuration properties (auth_json for gcp for example)

Thinking more about this, it becomes kinda interesting to consider from the code perspective...
Since originally these two commands are so thin on top of the api endpoint, all they do are getting the api payload and printing to the screen. As we decide more about changing the default behaviors of the commands, we essentially deviate from the original behavior. Although we now agree on the changes to be made to the default behavior, is there a risk that breaking some use cases which depend on the original default behavior?
I am kinda inclined towards restoring the default behavior, but making another flag like --filter-extraneous or --exclude-credential or anything, to remove the credential types from the payload.

Anyway, from the implementation standpoint, I think no matter what we eventually decide, staged-director-config --include-credential is not doable, all others are pretty easy.

I reordered the keys in your example above so I could diff them more easily, and this is what I see:
$ diff no-args.yml include-placeholders.yml

37,40c37,38
<   associated_service_account: account-name
<   guid: 349affc11fb0fce37be6
<   name: default   # internal name that opsman uses, not configurable
<   project: project
---
>   associated_service_account: ((iaas-configuration_associated_service_account))
>   project: ((iaas-configuration_project))
98c96
<   trusted_certificates: null
---
>   trusted_certificates: ((security-configuration_trusted_certificates))

I'm suggesting that instead, the new behavior should be:
om staged-director-config > no-args.yml
om staged-director-config --include-placeholders > include-placeholders.yml
om staged-director-config --include-credentials > include-credentials.yml

diff no-args.yml include-credentials.yml

35a36,40
> iaas-configuration:
>   associated_service_account: account-name
>   guid: 349affc11fb0fce37be6
>   name: default   # internal name that opsman uses, not configurable
>   project: project
92a98
>   trusted_certificates: null

diff no-args.yml include-placeholders.yml

$ diff no-args.yml include-placeholders.yml
35a36,38
> iaas-configuration:
>   associated_service_account: ((iaas-configuration_associated_service_account))
>   project: ((iaas-configuration_project))
92a96
>   trusted_certificates: ((security-configuration_trusted_certificates))

diff include-credentials.yml include-placeholders.yml

$ diff include-credentials.yml include-placeholders.yml
37,40c37,38
<   associated_service_account: account-name
<   guid: 349affc11fb0fce37be6
<   name: default   # internal name that opsman uses, not configurable
<   project: project
---
>   associated_service_account: ((iaas-configuration_associated_service_account))
>   project: ((iaas-configuration_project))
98c96
<   trusted_certificates: null
---
>   trusted_certificates: ((security-configuration_trusted_certificates))

Does that make sense?
examples.zip

Thanks for the detailed examples (we're still finishing up)
One final question comes around what to do with the params OpsManager doesn't return (as you cannot just take the config from staged-director-config and pass it directly to a clean install using configure-director due to the params that OpsManager filters out)
Our strong assumption (the one we made as a non-cross-collaborated team) is that it is OK that we do not return these parameters, because OpsManager does not return them. If we wanted to return them, om would have to have knowledge of the internal parameter workings of OpsMan, which, given om's history in separating itself from any and all OpsManager config knowledge, seems to work against om's goals.
Put another way, given the movement away from OpsMan config (configure-bosh -> configure-director), we presume that om would not want/need these missing fields from the staged-director-config step because that would couple om to versions of OpsManager again.
Is this a fair asusmption @mcwumbly ?

@kcboyle I think you're probably correct, but I'm not sure I'm completely following.   Perhaps you could help illustrate by

what to do with the params OpsManager doesn't return (as you cannot just take the config from staged-director-config and pass it directly to a clean install using configure-director due to the params that OpsManager filters out)

If I'm following, you're saying the current workflow has this step 2 below:

om staged-director-config > some-config.yml
# make these changes to some-config.yml
om -t https://some-other-director/ configure-director -c some-config.yml

To help be better understand, what does step 2 currently entail?

I see. Yuck.

If we wanted to include vcenter_password, for example, we'd have to have some sort of map (which is what we do in platform-automation now) that includes certain properties for certain IaaSs on potetentially different versions of OpsMan (if params changed)

It bothers me that you have to do this elsewhere.
Ideally, we'd get this back from Ops Manager. This feels like something we request from them, and potentially have backported.  In the mean time, I'm not sure what the bet thing to do is.  I can see it both ways.
If you're going to maintain this map anyway, I'm not sure it matters whether that code lives in om or some wrapper.  There may be a case to bring it into om.  But this sounds like a good time to open another issue to discuss this.

Ideally, yes. The backport would have to go back pretty far if we want to support the minimum supported version we can, and I don't know if they have the bandwidth to do that work but we can open a conversation with the OpsManager team and see what they might be able to do.
We'll open up a new issue for the iaas-configuration map issues. In the meantime, we submitted a PR addressing this one.

@mcwumbly: We are closing this since our initial PR has been merged. We will close and open other issues if there needs to be more work done.


Support CommonJS exports

Hi, I like your project so much.
Since currently, I'm working on a project to support Cloudflare Workers and Nodejs at the same time.
So the your HTMLRewriter is an excellent library as the drop-in replacement of the Cloudflare's HTMLRewriter API.
However, currently it doesn't support CommonJS exports. So it's a bit hard to use it in NodeJS (I know NodeJS supports ESModule now).
Supporting CJS way has following cons:

Easy to use in NodeJS. No need to change the existing code. We don't have to enable the --experimental-modules, and don't need to change the existing code either.
require is dynamic, which means the same code could be used in Cloudflare works directly, with a flag protected.

Thank you again for your project!

Nice to see this have some use already :)
I've had some boilerplate for CommonJS exports, just didn't include it yet. require should work now out of the box.
One thing to keep in mind is that the CommonJS version is transpiled down to version ES2015, while the import version is at at ES2020

Thank you for the timely reply & fix!
Yeah, I agree that import is more elegant way, in most cases.
It's only my niche needs to be compatible with Cloudflare workers & NodeJS :-)
Thank you again and take care!


We don't need the find instruction anymore

This pull request is now managed with CodeReviewHub. Refresh.


fix(timeseries): generate sample values needs to use dataFilter

Closes #
Summary

Now that we support dataFilters being attached to each line, we need to generate extra data to match each dataFilter

Change List (commits, features, bugs, etc)

fix(timeSeriesUtils): need to generate a row of data for each unique dataFilter.  If they leave off the dataFilter, than find the existing row and update it.

Acceptance Test (how to verify the PR)

I added a new isEditable bit to the dataFilter TimeSeriesCard story so you could test this.  It used to be when you set the card to isEditable, the card would show empty because no data would match it's filters.  Now it is showing sample data correctly

:tada: This PR is included in version 2.38.6 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Switching  ION  to dtnma-tools

deploy the agents and managers using the standalone https://github.com/JHUAPL/dtnma-tools/

https://github.com/JHUAPL/dtnma-tools/tree/main/deps


Flux V1 fails to auto-release workloads with missing manifest in ghcr.io/external-secrets/external-secrets

Describe the bug
Flux V1 is constantly printing these logs:
ts=2023-06-23T12:54:25.382673582Z caller=repocachemanager.go:223 component=warmer canonical_name=ghcr.io/external-secrets/external-secrets auth={map[]} warn="manifest for tag sha256-8662d9ea992ea703326639f1c5e62a96f7d139ff4bec534772778228ddb33b73.att missing in repository ghcr.io/external-secrets/external-secrets" impact="flux will fail to auto-release workloads with matching images, ask the repository administrator to fix the inconsistency"

To Reproduce
Steps to reproduce the behavior:

Install Flux V1
Install ESO through the following helm:
Observe the log output from Flux V1

kind: HelmRelease
metadata:
  name: external-secrets-operator
  namespace: kube-system
spec:
  releaseName: external-secrets-operator
  chart:
    repository: https://charts.external-secrets.io
    version: 0.8.3
    name: external-secrets
  values:
    replicaCount: 1
    certController:
      replicaCount: 1
    webhook:
      replicaCount: 1
    installCRDs: false
    serviceAccount:
      create: false
      name: secrets-reader
    env:
      AWS_REGION: $(AWS_REGION)
      AWS_DEFAULT_REGION: $(AWS_REGION)
      POLLER_INTERVAL_MILLISECONDS: 900000
    nodeSelector:
      ol-group: base
    priorityClassName: system-cluster-critical
    resources:
      limits:
        cpu: 100m
        memory: 512Mi
      requests:
        cpu: 100m
        memory: 256Mi

Expected behavior
Less log intake. Mitigate the problem

It looks like this is a limitation of flux v1, please see these issues below:
https://github.com/fluxcd/flux/issues/2517
https://github.com/fluxcd/flux/issues/2516
I don't think there is anything we can do. In the thread they suggest the right way to fix it is to either move to flux v2 or move away from ghcr.

@moolen yeah, i tried everything. I will try to push the image to a private registry and see what happens. Thx

@moolen well adding this arg: --registry-exclude-image=ghcr.io/* to flux, solved the issue


GitHub discussions links

Single commits can be reviewed independently:

to in PageLink is now required
External links in left nav are marked with an icon (see image below)
Links to Slack replaced with links to GH Discussions (at the org level)
Explain that Slack is for power users

@unamashana @smeijer could you please take a look at Vercel? (I don't have access.)

Regarding the vercel error, it fails during yarn run build on a type error. You should be able to reproduce locally using tsc.
./src/components/menu/MenuItem.tsx:19:10
Type error: Type '{ name: string; to?: string | undefined; icon?: string | undefined; children?: SitemapItem[] | undefined; staticRoute?: boolean | undefined; hiddenRoute?: boolean | undefined; openAPILinks?: OpenAPILink[] | undefined; }' is not assignable to type 'Props'.
  Types of property 'to' are incompatible.
    Type 'string | undefined' is not assignable to type 'string'.
      Type 'undefined' is not assignable to type 'string'.

@smeijer my bad, I'm on it.


[ZAP] Increase maximum memory usage to 9gb instead of 8gb

Issue Being Resolved
On ToT, I can see errors like the following in the ZAP template task.
<--- Last few GCs --->
[1474](https://github.com/project-chip/connectedhomeip/actions/runs/3084968246/jobs/4987726277#step:7:1475)

[1475](https://github.com/project-chip/connectedhomeip/actions/runs/3084968246/jobs/4987726277#step:7:1476)
[5200:0x5121680]  2853867 ms: Scavenge (reduce) 8092.4 (8238.5) -> 8091.8 (8238.8) MB, 146.1 / 0.0 ms  (average mu = 0.339, current mu = 0.458) allocation failure
[1476](https://github.com/project-chip/connectedhomeip/actions/runs/3084968246/jobs/4987726277#step:7:1477)
[5200:0x5121680]  2854302 ms: Scavenge (reduce) 8092.6 (8238.8) -> 8092.0 (8238.8) MB, 137.0 / 0.0 ms  (average mu = 0.339, current mu = 0.458) allocation failure
[1477](https://github.com/project-chip/connectedhomeip/actions/runs/3084968246/jobs/4987726277#step:7:1478)
[5200:0x5121680]  2854560 ms: Scavenge (reduce) 8092.8 (8238.8) -> 8092.1 (8239.0) MB, 135.8 / 0.0 ms  (average mu = 0.339, current mu = 0.458) allocation failure
[1478](https://github.com/project-chip/connectedhomeip/actions/runs/3084968246/jobs/4987726277#step:7:1479)

[1479](https://github.com/project-chip/connectedhomeip/actions/runs/3084968246/jobs/4987726277#step:7:1480)

[1480](https://github.com/project-chip/connectedhomeip/actions/runs/3084968246/jobs/4987726277#step:7:1481)
<--- JS stacktrace --->
[1481](https://github.com/project-chip/connectedhomeip/actions/runs/3084968246/jobs/4987726277#step:7:1482)

[1482](https://github.com/project-chip/connectedhomeip/actions/runs/3084968246/jobs/4987726277#step:7:1483)
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Short term solution is to increase the available memory. A longer term solution would be to look at what happens exactly and why do we consume so much memory.
Change overview

Increase the memory available

Fixed by #22270


Application Startup

ASP.NET 5->Runtime->Application Startup

Understanding request delegates
Setting up your request pipeline
Run, Map, Use

Given the name of this article, shouldn't it also talk a bit about Startup.cs? Or should there be two articles, one that talks about Startup.cs and one that talks about the ASP.NET request pipeline?

shouldn't it also talk a bit about Startup.cs?

Absolutely! This article should really be all about Startup.cs.
Feel free to take my short outlines as a starting point and then evolve them as appropriate. I make no guarantee that they are complete :smile:

Awesome, thanks.

I am not sure if this is the place to mention this, but I think some guidance/guidelines/intentions on what belongs in ConfigureServices versus Configure would be good.  The answer may be really simple, but I am struggling to see the right division myself at the moment.
For example with the MVC middleware, configuration is done in ConfigureServices and cannot be specified via a UseMvc overload.
services.Configure<MvcOptions>(
    options =>
        {
            //  ...
        } );

However, the Diagnostics middleware requires configuration happen in Configure:
app.UseErrorPage( new ErrorPageOptions { ShowCookies = true, ShowSourceCode = false } );

On the surface this seems inconsistent.  While I am sure consistency cannot be forced, an accepted convention would make it easier for users (developers) to know where or whether to do configuration when working with a new component.
I do think that overall the distinction between the two is useful, I just have not fully grokked what goes where.


Initial version of static typed promises

Initial version of static typed promises using mypy.

Coverage decreased (-0.6%) to 94.265% when pulling 7a4bec915190bee868165124896285a0934b7ad4 on features/typed into c0c7d17ce00032717e740938055e0ae4d2b72e6f on master.

Coverage decreased (-0.6%) to 94.265% when pulling 5bc64ee6064ad85aebe8498841dd056a329974f0 on features/typed into c0c7d17ce00032717e740938055e0ae4d2b72e6f on master.

Coverage increased (+5.2%) to 100.0% when pulling 6f9eb9a04f62e0a339f4ba1dd482bdd9ccb12d91 on features/typed into c0c7d17ce00032717e740938055e0ae4d2b72e6f on master.

Coverage increased (+5.2%) to 100.0% when pulling f8b687979ddfda6813739c9f13536a2f2dfe3d02 on features/typed into c0c7d17ce00032717e740938055e0ae4d2b72e6f on master.

Coverage increased (+5.2%) to 100.0% when pulling 0d08c12c4e3c77228be2ea8302893f0aa702ab02 on features/typed into c0c7d17ce00032717e740938055e0ae4d2b72e6f on master.

Coverage increased (+5.2%) to 100.0% when pulling 74d8d19174a7fec905e84da4f6ffa59fbf83ad89 on features/typed into c0c7d17ce00032717e740938055e0ae4d2b72e6f on master.

Coverage increased (+5.2%) to 100.0% when pulling 74d8d19174a7fec905e84da4f6ffa59fbf83ad89 on features/typed into c0c7d17ce00032717e740938055e0ae4d2b72e6f on master.

Coverage increased (+5.2%) to 100.0% when pulling 74d8d19174a7fec905e84da4f6ffa59fbf83ad89 on features/typed into c0c7d17ce00032717e740938055e0ae4d2b72e6f on master.


[backport] Fix cuSPARSELt example not to use internal function

Backport of #4995

[automatic post] Jenkins, test this please.

Jenkins, test this please.

Jenkins CI test (for commit b4ad6c3531f74c89c269bd1a164a50d9c8adbc5f, target branch v9) succeeded!


nm doesn't output anything

Expected behavior
nm should the symbol table for the given executable or object file.  It has been suggested we rewrite it in go, which seems like a good project, but it's worth fixing this first, in case the problem is caused by bugs in libmach, which seems quite possible.
Actual behavior
It outputs nothing.
Steps to reproduce

nm /bin/drain

You must use at least binutils 2.26 nm, not the old native which should be removed.

This is wrongly focused. Old nm must be removed.

What should replace it?  Should it be in apex

binutils package. When it would be finnished. binutils and gcc or clang won't be distributed with apex. Apex is just a lib, the fact we're keeping troff, awk and four classics with it is because they are dependent of apex, they're not in main tree and they never got package or any other distribution way or form. We need to think about how to ship packages like toolchains, python, or whatever.
Another thing is a whole system image with all of this already in it, you know, some kind of "distro".

#597. New port is coming.


Reduce Usage of api.ParseTagSet

Tag sets are unserialized in a lot of cases where they could just be literals.
@drcapulet

LGTM


Problem compiling in iOs for publishing

Hello.
I am trying to make the Archive to be able to publish the App but I get the following errors.
Doing flutter run or flutter run -release works correctly.
Any idea how to fix it?

Look at the readme, I added some tips: https://github.com/bharat-biradar/Google-Ml-Kit-plugin#ios.
Give them a try and let me know if that fixes your issue.

Hello @fbernaly .
I tried what you indicated but it didn't work either.
When I run it normally it works, the problem is when doing the "Archive" in Xcode.

What is your minimum ios target? are you excluding armv7 in the Xcode project and in the pod file?

Minimum ios Target: 10.0
Yes, I exclude from both places

Try cleaning your DerivedData folder: https://programmingwithswift.com/delete-derived-data-xcode/
I was getting the same errors and after doing what I added to the readme and deleting the DerivedData it started to work

i have a same this issue when build ios-framework and put it on my ios project

@fbernaly  @adriancsbna
hi . any update for this issue ?

undefined symbol: readBarcode

having this problem in my flutter app when i add qoreid sdk

Hello.. I ran the iOS flutter application and it works perfectly. I am make  archive to uploading it to the Apple Store, so many errors of this type appear.
Showing Recent Errors Only
Undefined symbol: _objc_msgSend$
After referring to different names like this


removing skidded material

:pepe_laugh:

:pepe_laugh:

Toxic, literally toxic be a man and dm me and solve your problems like that.

Toxic, literally toxic be a man and dm me and solve your problems like that.


fix: remove go-version input from release

Removes the need for a specific go-version input for the release action. Previously the go-version needed to be specified in the version file as well as the action input. This change removes the duplicate step and just uses the go version specified in the file.

Thanks for the help @ericlemieux-turo , lets see how @shakefu feels about these changes.

This is now implemented in v3. Closing


Accessibility Audit - Carbon Website: Components - Number input

This epic is tied to a larger "release" that is meant to track the progress of the Accessibility Audit for the Carbon Website. We will audit all of the pages of the carbon website based on AVT 1, AVT 2, & AVT3 - which can be found here.

AVT 1: will audit the site against the IBM Accessibility Checker - browser extension

AVT 2: will audit the site against accessible keyboard interactions

AVT 3: will audit the site against screen readers

Legend:

🌶 fully audited - on all three AVT levels

:one: 🔍 AVT 1 audited
:two: 🔍 AVT 2 audited
:three: 🔍 AVT 3 audited

:boom: issues and documentation - on all three AVT levels are complete

:one: 🚨 AVT 1 issues submitted
:two: 🚨 AVT 2 issues submitted
:three: 🚨 AVT 3 issues submitted

:sparkles: tickets are triaged

Current status of this page: 1⃣ 🔍 AVT 1 audited & 🚨 AVT 1 issues submitted

Components - Number Input

Usage: 6 issues - no new issues
Style: 6 issues - no new issues
Code: 3 issues - no new issues
Accessibility: 3 issues - no new issues

Closing due to inactivity. Will reopen if/when ready to be worked on again.


Cannot pass props to custom Dashboard component

Describe the bug
Unable to access data passed to custom Dashboard component. Props passed to the custom component is an empty object.
Installed libraries and their versions

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
To Reproduce
Steps to reproduce the behaviour:

Create a React component and inside the component add a console.log(props)
Add the configuration to AdminJS options like below:

Expected behaviour
Custom Dashboard component rendered & props passed in from handler we provided in configs
Desktop (please complete the following information if relevant):

OS: MACOS
Browser [chrome]

Additional context
The rendering of the Dashboard component is working fine, only problem is no props is being passed in.

Docs I referred to do not specify a specific return object for the dashboard handler ( Please correct I'm wrong )

https://docs.adminjs.co/tutorial-custom-dashboard.html
https://docs.adminjs.co/AdminJSOptions.html#PageHandler

The example i referred to for passing data to the component

https://github.com/RafaelGoulartB/adminbro-dashboard/blob/main/src/adminbro-options.ts#:~:text=}%2C-,dashboard%3A {,}%2C,-rootPath%3A '/admin'

I'm not sure if this is the way to do it, since the docs (correct me If I'm wrong) don't show exactly how we get the data returned in the handler as props in our custom Dashboard component.

Pass ur handler action in and return the data you need.
Use ApiClient from 'adminjs'
Manually call the handler from your component and store in useState

This is what works for me, though I would prefer to get data as props rather than manually call the handler

The ApiClient approach has to stay in case the content is supposed to stay dynamic. We can consider pre-fetching the data for initial rendering though.


fix: [lw-12001, lw-12005] fix token input symbol

Checklist

[x] JIRA -LW-12001
[x] JIRA -LW-12005
[ ] Proper tests implemented
[x] Screenshots added.

Proposed solution
Explain how does this PR solves the problem stated in JIRA ticket.
You can also enumerate different alternatives considered while approaching this task.
Testing
Describe here, how the new implementation can be tested.
Provide link or briefly describe User Acceptance Criteria/Tests that need to be met
Screenshots
LW-12001

LW-12005

Allure Report
allure-report-publisher generated test report!

processReports: ✅ test report for 16bff180

passed
failed
skipped
flaky
total
result

Total
33
0
4
0
37
✅


fix Avoid memory allocated by buffered_reader from being traced

Use OwnedSlice to replace char* in BufferedReader
Proposed changes
Issue Number: close #xxx

run buildall

run buildall


So many errors while compile

I got many errors while compile
can u upload compiled one?

what do you think outdated means? assuming youre here from UKC

1st. step is properly installing the dx9 sdk (june 2k10) for starters
2nd, step is using your brain.

include drx sdk and fix patterns\index


Add solutions and update functional programming guides

Added solutions to the functional programming exercises I've touched, and made some minor changes to them.

Added solutions to some of the guides, in both vanilla and ES6. I think it would be good to show both approaches, as these examples can be a good reference point for people.
Changed the avoid-mutations-and-side-effects... exercise to use a passed in argument instead of the global variable. This is more in line with the idea of using functions that provide outputs which are purely dependent on their inputs.
Edited the use-the-map-method... exercise to stringify the console output, so people doing the exercise can actually see their outputs.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

@petern-sc It appears you still have two solutions for the Avoid Mutations and Side Effects Using Functional Programming challenge.  It only needs a single solution.  Just go with the ES6 version.


[Preview 5] CreateGlyphTypeface NullReferenceException when FontFamily is $Default

Describe the bug
Been getting random crashes in FontManagerImpl during CreateGlyphTypeface. It seems there been a regression recently that the FontManager no longer knows what to do when the FontFamily is set to $Default. This particular crash originated from DevTools

In TextLayout:

TextCharacters.CreateShapeableRun: fallbackTypeface is null (matchFound wasn't available in the debugger but I'm assuming it was false)

Which is then passed in to FontManager.GetOrAddGlyphTypeface with a null FontFamily in the Typeface, and null refs in CreateGlyphTypeface at if (typeface.FontFamily.Key == null)
Interestingly in the second screenshot, _cachedGlyphTypeface isn't null and _glyphTypefaceCache in FontManager shows an entry for $Default that seems to be properly initialized:

Note I'm calling it preview5, but I'm actually still on 11.0.999-cibuild0029462-beta. When I encountered this earlier I was able to repro on preview5, and I don't think there was much between that nightly build and preview5 anyway

OS: Windows 11

Ok, I think this might be related to symbol fonts.
To repro:
<TextBlock Text=""
			   FontFamily="Segoe Fluent Icons"
			   FontSize="50" />

(If not on Win 11, Segoe MDL2 Assets for Win 10 still works to repro)
Open DevTools & the VisualTree tab
Use Ctrl+Shift+pointer to select the TextBlock. If it doesn't crash, scroll dev tools datagrid to materialize the Text property row and it should crash.

So the issue is that the emergency fallback for not found typefaces isn't working? Should be able to cover this.


Using a ref from a helper to access child templates helpers doesn't work

When trying to access a child template's property by using a ref, it only works if binding via ViewModel binding. Trying to achieve the same via helper doesn't work, if the helper is used directly in the template.
https://github.com/arggh/viewmodel-iframe-issue/tree/reference-issue
Not sure if this is supposed to work, but I'd expect to be able to show the checkboxes' checked-value via helper on the parent.
In the VM docs a similar scenario (a working one) is built in such way, that the child is accessed only by a manually triggered method call (button click), not by directly using a helper in the parent template code.

It's "working as expected". The problem is the way Blaze works with helpers and child templates. By the time the parent calls the helper the child isn't available, so the reference is undefined. That means as far as Blaze is concerned there's nothing to rerun.
It works with the text binding because VM waits for children before binding the elements.
Here's what you can do instead to use handlebars:
Template.checkboxes.viewmodel({
  isChecked: false, // May want to use a string since Blaze doesn't display false.
  autorun() {
    this.isChecked(this.checkbox2.checked());
  }
});

I thought I had understood that part, which is why my helper was actually like this at first:
isChecked() {
   if (this.checkbox2) return this.checkbox2.checked();
}

But then nothing would ever happen, which I don't understand. I thought I'd used this pattern before, but apparently not since it doesn't work.
What's puzzling me most about this is what's happening in the console when running the repro.

Logging the contents of this gives me the ViewModel, with already the property checkbox2 referencing the child VM
After that line of code, logging this.checkbox2 gives me undefined!

In your first example the helper returns without ever running a reactive
source. In the second example the console is playing tricks on you. It
keeps a reference to the object so by the time you expand the object the
child is already there.
On Aug 18, 2017 2:15 AM, "arggh"<EMAIL_ADDRESS>wrote:
I thought I had understood that part, which is why my helper was actually
like this at first:
isChecked() {
if (this.checkbox2) return this.checkbox2.checked();
}
But then nothing would ever happen, which I don't understand. I thought I'd
used this pattern before, but apparently not since it doesn't work.
What's puzzling me most about this is what's happening in the console when
running the repro.

Logging the contents of this gives me the ViewModel, with already the
property checkbox2 referencing the child VM
After that line of code, logging this.checkbox2 gives me undefined!

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/ManuelDeLeon/viewmodel/issues/293#issuecomment-323268984,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AED31hY4ds4Y0r6y3Lh-mIeUnerBr-dOks5sZSvogaJpZM4O66Ej
.

Ahh, of course. I've previously had other reactive sources in the same method, which is why they've seemed to work like I thought it would...
Thanks for helping me figure this out 👍🏻


crates-tui: init at 0.1.20

Fixes #354196
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/4819

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 354307

x86_64-linux

:white_check_mark: 1 package built:

crates-tui

aarch64-darwin

:white_check_mark: 1 package built:

crates-tui


fix: support jq 1.7

jq 1.7 doesn't like the unescaped newlines in the GitHub API response
(which includes release notes). Since none of these scripts use the
release notes, we can strip out all \r and \n characters.
Also added set -euo pipefail to lib/utils.bash and a test to bail
out early if no toolchains in the API response match the current os/arch.
Finally, uname -m is preferred to uname -p since the latter can
return unknown (which is the case on Alpine Linux running in Docker on
a Darwin aarch64 host). On that topic, previous toolchain releases for
Linux ARM hosts were sometimes labeled as arm and sometimes as
aarch64, so a pattern is now used to match those values.
At some point, it might make sense to go back to older releases and
hardcode their URLs since the filename formats have not always been 100%
consistent.
Fixes #13.

Booooom! That did it ✨
Much appreciated


add warning in run log if using DOTENV_KEY with .env.vault

this can happen much later, but over the next couple years, people should begin migrating their .env.vault files to encrypted .env files. add a warning to make it clear to them and give them plenty of time to switch over - years.

complete https://github.com/dotenvx/dotenvx/issues/206 first so that it is uncomplicated to switch over

https://github.com/dotenvx/dotenvx/pull/224

DEPRECATION NOTICE: Setting DOTENV_KEY with .env.vault is deprecated.
DEPRECATION NOTICE: Run [dotenvx vault convert] for instructions on converting your .env.vault file to encrypted .env files (using public key encryption algorithm secp256k1)
DEPRECATION NOTICE: Read more at [https://github.com/dotenvx/dotenvx/blob/main/CHANGELOG.md#0380]


Perform LTS data release 2023-07-24

TODOs:

[x] Build weekly
[x] Spot check -- blocklist datasets were removed → @pablo-gar
[ ] Run duplicate finder notebook ./tools/cell_dup_check/finddups.ipynb
[ ] Run acceptances tests (only Python) → @pablo-gar
[ ] “Promote” weekly to LTS data release. → @ebezzi.  You want to make sure you give the OLD LTS release a tag/name, as well as a "do_not_delete" flag, or it WILL be deleted by build automation.
[ ] Re-run notebooks (only python) → @ebezzi
[ ] Add summary information for this LTS release in the doc-site → @pablo-gar
[ ] Do github release → @ebezzi

Spot check completed and I have verified the block list datasets are not in the Census data version "2023-07-25"
https://colab.research.google.com/drive/1ImqAADk4Qrtj64yEDcaJG5WHNfiUwREZ

No cells marked twice as is_primary_data = True were found after running ./tools/cell_dup_check/finddups.ipynb PR coming with the updated notebook

Note that we did NOT re-alias the older 2023-05-15 LTS release. We did add the do_not_delete flag, which is sufficient to protect the LTS release.


Environment selection dialog improvements

Description
As described in #477 the environment selection dialog is cumbersome to use. https://github.com/jupyterlab/jupyterlab-desktop/pull/478 addresses one of the issues (non-editable path), but a few UX annoyances remain:

user needs to navigate the hidden directories to find the Python executable; this should be a fallback, not a default
user is not told whether the selected environment meets the requirements until they click restart and apply

Expected behavior
I would like the environment selection dialog to try to detect available environments from known paths and offer to select one of them, with options like so:

use bundled environment
use conda environment

base,
my_conda_env_1,
my_conda_env_2

pyenv:

3.7.5 [this environment does meet requirement: python>=3.8],
3.9.5,
my_pyenv_virtualen_1 [this environment does meet requirement: juypterlab>=3.1],
my_pyenv_virtualen_2

use environment based on the path

We cannot and should not strive to cover all possible virtual environment management options, but instead we should cover 3-4 most popular options and make it modular for third parties to be welcome to make a pull request to add their own (and if falls out of use/is no longer maintained by the 3rd party, remove it easily).
The environments that do not meet requirements should always be shown

If the environment provider has support for updating packages, we should ask user if they want to update the package to required version (with a big red warning about the potential consequences) and if they don't want to proceed, then ask to choose a different environment.
If the environment provider has no support for updating packages (/python version), the environment should be shown as not selectable and greyed out

Context

Operating System and version: Linux Ubuntu 22
JupyterLab-Desktop version: 3.4.4
Installer: deb

@krassowski can we close this now? arent the environment discovery and selector menu in 3.6.1-1 already covering these?

I updated the title.
From the descriptions above I would still like to add pyenv discovery (in addition to conda) and especially the ability to grey out incompatible environments with useful message (as [this environment does meet requirement: python>=3.8] or [this environment does meet requirement: juypterlab>=3.1] suggested above).

Another user struggling with custom environment https://stackoverflow.com/q/77102935/

Yet another user struggling with selecting custom environment due to lack of feedback on requirements: https://github.com/jupyterlab/jupyterlab-desktop/issues/704

Another closely related issue: https://github.com/jupyterlab/jupyterlab-desktop/issues/594

I just wanted to comment to say that I ended up here because I was struggling to understand how to use JupyterLab Desktop with a custom environment and to offer my thoughts on how the first-run experience might be improved. Ultimately, the problem was that I did not have jupyterlab installed in the environment I was trying to use.
It seems obvious in hindsight that it is necessary to have jupyterlab installed first, but it hadn't occurred to me. I see from other posters that this is a common oversight. I suspect this is because the act of downloading JupyterLab Desktop obscures the fact that you still need to download jupyterlab. I understand why you still need to download and install jupyterlab separately if you want to use a custom environment, but I think my brain ticked the "download jupyter" checkbox when I downloaded Desktop, so I didn't even consider that might be the problem until I read through several Issues here.
The other reason I did not consider that the problem was that I didn't have jupyterlab installed is that the message displayed on the welcome screen does not identify that as the problem. On first launch, the welcome screen displays the message:
"⚠ Python environment not found. Install using the bundled installer or Change the default Python environment"

After entering the path to the python binary in my virtual environment in Settings and "Apply & restart"ing, the message did not change. Because the message was still the same one that had been there before I selected a python binary, I believed the issue must be with the path I had entered or with the binary itself (or with JupyterLab Desktop). As mentioned in the OP, having an indication that an environment has been found but does not meet requirements would be a big help here.
As a last thought, it would also be helpful to highlight the fact that the "Install using the bundled installer" and "Change the default Python environment" text are links to Settings. As it stands now, the whole message is displayed in the same (or near enough the same as to be indistinguishable) color and changes color by a barely perceptible amount when moused over. Before I was able to follow the message's instructions and set my python environment, I had to discern how to do that. Because the app does not follow Mac OS conventions and put Settings in the application menu or use the ⌘, shortcut, and there is no obvious way to enter Settings from the welcome screen, it took me a few minutes to find it. Making the message text into obvious links would help, as would adding a Settings link below

New notebook…
New session…
Open…
Connect…

That way there would always be a clear way to get to settings from the welcome screen, even without the warning message. I know (now) that Settings is under the hamburger menu and that that menu persists even after entering a session, but having something that stands out on the welcome screen would make the first-run (or first-run after a long time, so you've forgotten where everything is) experience easier.
Just my two cents. I hope it can help someone who finds this while struggling with the same issues I was or prevent them from struggling in the first place.

Apple M2
Mac OS Ventura 13.6
JupyterLab Desktop 4.0.5-1
Python 3.11.5
pyenv 2.3.27
pyenv-virtualenv 1.2.1

@TRezendes thanks for the detailed feedback you shared. I am currently working on showing more detailed error messages when the custom environment is not compatible along with other enhancements.

I suspect this is because the act of downloading JupyterLab Desktop obscures the fact that you still need to download jupyterlab

This definitely threw me off too - especially because Desktop is also installed as jupyterlab, e.g. brew install jupyterlab or pixi global install jupyterlab, so no mention that you're getting the Desktop version.


Option to disable cursorline timeout completely

Hello, it seems that the cursorline keeps flashing everytime it is updated (if vim.g.cursorline_timeout is set to 0). This seems to be due to the timer updating the cursorline to the same colour.

I've found a way to disable this timer update if the cursorline_timeout is set to 0 (indicating disabled feature). This results in a smoother experience. However, I just found out that my changes cause unexpected behaviour, such as cursorline in Telescope query fields. Could you see if you can fix this as well before merging?

The same problem too.

@tristone13th i'm using vim-brightest with vim.g["brightest#highlight"] = { group = "BrightestUnderline" } instead and it works flawlessly :D

@tristone13th i'm using vim-brightest with vim.g["brightest#highlight"] = { group = "BrightestUnderline" } instead and it works flawlessly :D

Thanks! it seems that itchyny/vim-cursorword doesn't have this issue too, you can have a try.

I think I've tried that a while ago but it doesn't play nice with my highlight groups, so I've stuck to vim-brightest ever since :))


CI tests fail when upgrading pandas from 2.1.4 to >=2.2.0

PR #216 suggests the package fails tests when the CI environment bumps pandas from v2.1.4 to the latest version (currently v2.2.1). It started failing since the pandas v2.2.0 release.
I can't judge why it's failing from a quick look at the testing logs.
Archived logs from the failed CI run are here: logs_22096399592.zip

Looks like all the test_*_points tests failed. The first failure is test_adding_up_points with an AssertionError on assert_frame_equal. Looks like something is out of order somehow.
I updated the title and description with this info.

I think it's probably related to this: https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#merge-and-dataframe-join-now-consistently-follow-documented-sort-behavior

#216 now includes a fix.

I appreciate the fix @JMGilbert!
Stop me if I'm reading this wrong but on quick glance it looks like the issue isn't with the dscim package code itself. The issue is more that the tests were written to read the expected results from an older file of stashed results. This expected results file was written with an older version of pandas and so it needs to get sorted before it can be compared with the results generated from the newer pandas version?
Looking at this ... hmm... It's not something that needs to get fixed here, but It would be ideal if the tests didn't need to handle this type of logic, instead focusing on what's needed to test some target behavior. The hacky workaround stuff makes it harder to reason what the test is actually trying to test. It's going to keep getting muddled as time marches forward. Again, I think this is absolutely something that shouldn't be addressed in this issue and PR. The code that needs updating had this hacky stuff before this issue. Depending on priorities, this is maybe something to consider for future cleanup before legacy slows things down too much, @kemccusker. It might come back to bite later.

@brews would love your input on how better to write the tests to avoid these types of issues, for future cleanup. For this PR, sorting seems like a reasonable fix, yeah?

Closed by #216


Flatten() at /multimodal_representation/multimodal/models/base_models/layers.py: x.view() won't work because of contiguity.

Traceback (most recent call last):
File "mini_main.py", line 37, in
trainer.train()
File "/home/haeju/ambidexserializable/multimodal_representation/multimodal/trainers/selfsupervised.py", line 121, in train
loss, mm_feat, results, image_packet = self.loss_calc(sample_batched)
File "/home/haeju/ambidexserializable/multimodal_representation/multimodal/trainers/selfsupervised.py", line 249, in loss_calc
image, force, proprio, depth, action
File "/home/haeju/ambidexserializable/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/haeju/ambidexserializable/multimodal_representation/multimodal/models/sensor_fusion.py", line 261, in forward
action_in,
File "/home/haeju/ambidexserializable/multimodal_representation/multimodal/models/sensor_fusion.py", line 115, in forward_encoder
img_out, img_out_convs = self.img_encoder(image)
File "/home/haeju/ambidexserializable/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/haeju/ambidexserializable/multimodal_representation/multimodal/models/base_models/encoders.py", line 97, in forward
flattened = self.flatten(out_img_conv6)
File "/home/haeju/ambidexserializable/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/haeju/ambidexserializable/multimodal_representation/multimodal/models/base_models/layers.py", line 76, in forward
return x.view(x.size(0), -1)
RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.
you can change to reshape I think

Thanks, fixed


Project Management System Create API

Added Project Management System Create API
Added Flyway script
Added create api validations, enrichment
Added MDMS Util file for MDMS validations
Added Producer
Update web models
Updated contract

@chetankolte1 told me to look at 228. Closing this.


PVPositioner was accidentally blocking.

This is a fundamental bug that went unnoticed for awhile. We noticed
because we tried to use a PVPositioner in parallel motion with another
positioner and found that the motion was serial.

This only shows up if a) the PVPositioner does not have an actuate button b) the setpoint PV implemenets put-completion.
This suggests that in the actual case on the floor we should be using PVPositonerPC ?  The device we found this on seems to support both put completion and has a done signal so either way should work.

The failure is numpy / intake / imagecodecs related.

I think PVPositonerPC should have been used in the case that you mentioned? Unless there are new categories for this that we hadn't considered, I thought both classes covered just about everything...

Yes, it sounds like we are in agreement that PVPositionerPC should have been used. Nonetheless I think using the wrong class is a fairly easy-to-hit trap. The consequences of an accidentally-blocking call are severe: no Ctrl+C handling for the duration of the move. Thus I think this change is worth merging, even if though it should never come up in correctly-configured devices.

Updated title to reflect this.


Adding descendants for scenarios to the api

Like discussed at https://github.com/quintel/etloader/issues/95

@ChaelKruip I now am able to grab the descendants of a certain scenario. Though, is this what we truly want, considering that we only want to use scaled scenarios for ETloader? Or do we also want to include non-scaled scenarios?

Though, is this what we truly want, considering that we only want to use scaled scenarios for ETloader? Or do we also want to include non-scaled scenarios?

As discussed: it would be nice to show both (sorted by being scaled or not). With the 'units' working, we are able to import unscaled scenario's in ETLoader.

Closing this issue because the whole interface connected to this issue doesn't exist anymore.


Fixes -Ofast optimizations breaking model by skipping them for gelu_backward

Please see https://github.com/karpathy/llm.c/pull/168 for details and work being done on optimizing the activation function on CPU.
This PR results in a 10-23% speedup on CPU and has been tested on msvc and gcc on x86 and fixes #19

let's try it, merged, ty!


WIP test edit

Context

Changes proposed in this pull request

Guidance to review

Link to Trello card

Checklist

[ ] Attach to Trello card
[ ] Rebased main
[ ] Cleaned commit history
[ ] Tested by running locally

Strange that Rspec doesn't fail tests on this PR but dependabot PRs are having issues with db encryption.


Mosaic Dataset CA_CC_Lidar.gdb\s_CA_CC_2010_DTM references local user path

Mosaic Dataset data\FoundationOverlays\Elevation\MosaicDatasets\CA_CC_Lidar.gdb\s_CA_CC_2010_DTM contains path to local C:\Users[user]]AppData\Local

Examined one of the raster function properties of one record in mosaic dataset this local path is being used for the "Cache folder" property on the "LAS To Raster" tab.

The C:\Users[user]]AppData\Local path has been removed.

@NatalieCampos Issue still exists. Assigning back to you.

Ok Hopefully I have fixed it now.   The path that is being populated is a property that is not being used and is automatically being populated.  I have deleted the local path reference.

Verified fixed. Closing issue.


Feature/logo

Proposed changes
Added logo to the repo. Also made prettier ignore .svg files
Solves #30

Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation Update (if none of the other choices apply)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING doc
[ ] Lint and unit tests pass locally with my changes - It might just fail on my branch, but be ok if I merge..?
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
I might struggle with the process of the PR, so I will appreciate help. Also, feel free to tell me where to better put this.

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

@TroyKomodo PR closed without stating reason. The changes made it to the repo? How? Why is the PR closed then?

Solves #30

@sirinoks "solves" is not a reserved keyword on GH, but "closes" is. (Not sure if there are others, probably are.) Using that keyword makes it so a successful merge automatically closes the issue.

This PR was closed accidentally, continued in

#69 (nice)


ReactCameraView cannot be cast to ViewGroup

I get the following error when running the example:

any idea as to why this happens?

My first thought was that this might be caused by adding other views as subviews of the camera-view but this seems to work for me.
If you would share the relevant render method I could try to replicate this myself and take a deeper look.
You can also run the exaple project I just pushed and try if you have the same issue with that.

It works now! I tried the example project, and then figured out that I imported the wrong package in my MainActivity.
Thanks!


[FAB-17746] Move MSP related types to a membership subpackage

Type of change

Improvement (improvement to code)

Description
Create a new membership subpackage and move all MSP related types to the package
Related issues
FAB-17746

/azp run


Github Project Board

I need to review most recent issues. Comment here when you dont have a task assigned.

I need to add ‘Background Graph of Connections’ as a task issue I am working on


How to know/ask for the "link" button to be pressed?

Hi,
I'm doing pretty much what the sample shows:
IEnumerable<string> bridgeIPs = await locator.LocateBridgesAsync(TimeSpan.FromSeconds(5));
IEnumerable<string> iPs = bridgeIPs as string[] ?? bridgeIPs.ToArray();
if (!iPs.Any())
{
	_logger.Warn("There is not any bridge available");
}
string bridgeIP = iPs.First();
_logger.Info($"Connecting to {bridgeIP}");
ILocalHueClient client = new LocalHueClient(bridgeIP);

string appKey = await client.RegisterAsync("DeskHue", System.Environment.MachineName);

The issue I've is that I don't see when I should ask the user to press the link button? how the other applications does? They asks for the user to press and then try in a loop to do the RegisterAsync? Is there some kind of event that I could  register to know the button has been pressed?
Thank you for the support

Yeah, that's what I do.. I ask the user to press the button, and just check every 3 seconds if the button has been pressed or not with a total limit of 30 seconds (like the official app).
It works fine, and if everything goes well the user only sees this once :)!

Hi @jgrossrieder
I'm handling it this way:
private async Task<string> GetApiKeyWithBridgeButtonClick(PhilipsHueBridge bridge)
{
    var endTime = DateTime.UtcNow.AddSeconds(30);
    var client = new LocalHueClient(bridge.IpAddress);

    while (DateTime.UtcNow < endTime)
    {
        try
        {
            var machineName = Environment.MachineName.Replace(' ', '_');

            if (machineName.Length > 19)
            {
                machineName = machineName.Substring(0, 19);
            }

            var appKey = await client.RegisterAsync("Xpressive.Home", machineName);
            return appKey;
        }
        catch { }

        await Task.Delay(TimeSpan.FromSeconds(1));
    }

    return null;
}

As you can see, I ask the user for pressing the button and then I'm polling the RegisterAsync method every second for 30 seconds.

@niels9001 @mschuler Thank you for the answer.
Thank you, I was just thinking this was not very efficient, is this a limitation from the Q42 API or from the hue API?

Yes, this is a limitation, see Point 7.1.2:
https://developers.meethue.com/documentation/configuration-api#71_create_user

Thank you


fix: Update the carousel buttons to match design.

Issue
Fixes #173
Description
Description
Update the carousel buttons to match design.  (See issue: "Update carousel buttons #173" for the new buttons)
For Testing:   Ensure that the new carousel buttons replace old carousel buttons.
Design Specs

Figma Link - https://www.figma.com/file/vw24IPXXt4vCh9BNumka9A/Web--Merative-Digital-Design-System-2.0?type=design&node-id=269%3A528&t=wSEra3QF24eUIAm9-1

Test URLs

Before: https://main--merative2--hlxsites.hlx.page/drafts/Kunwar/carousel
After: https://173-carousel-buttons--merative2--hlxsites.hlx.page/drafts/Kunwar/carousel

Testing Instruction

If applicable, please describe the tests that you ran to verify your changes. Provide instructions and link to the hlx deploy preview so that QA and the design team can provide proper testing.

This looks good to me, @proeung do you want to assign Design QA to review?

Looking at this now.

Testimonial band is the only component that has the carousel on a live page. In the design system we have a case study band, but it was never developed fully in AEM - https://www.figma.com/file/vw24IPXXt4vCh9BNumka9A/Web--Merative-Digital-Design-System-2.0?type=design&node-id=1402%3A14262&mode=design&t=hyGynk8zQ1c2T1tj-1
Here are some pages that use the Carousel testimonial component -
https://www.merative.com/healthcare-analytics
https://www.merative.com/clinical-development
I would develop this block aligned to the testimonial component

Per @keith-kaplan's mention in the above, this fix of Carousel block will align with the testimonial component of Carousel on Merative live site.
Reference:
https://www.merative.com/healthcare-analytics
https://www.merative.com/clinical-development

Are we changing the round button on testimonial to half moon carousal button. @proeung @keith-kaplan
Testimonial design is using round button.
https://www.figma.com/file/vw24IPXXt4vCh9BNumka9A/Web--Merative-Digital-Design-System-2.0?type=design&node-id=17686-32866&mode=design&t=lIGhOkxVevhD5fC9-4

@Danielcodepad @helms-charity The changes outlined in this issue (https://github.com/hlxsites/merative2/issues/173) does not align with our design system. The half-moon buttons are designed to be used within the "Case Study Carousel" component (see link) and NOT for the Testimonial.
What we have on the main branch looks fine and we'll be doing additional work to clean up the carousel block as part of the Phase 3 effort, which includes migrating and conducting proper design QA for components that we need to bring over to Franklin. Our Merative dev team will be responsible for this.
I'm going to close out this PR as we don't need to update the carousel buttons.


Renamed router to _router as per deprecration message

A fix for this deprecation:
DEPRECATION: Route#router is an intimate API that has been renamed to Route#_router. However you might want to consider using the router service [deprecation id: ember-routing.route-router] See https://emberjs.com/deprecations/v3.x#toc_ember-routing-route-router for more details.
It seems that rewriting the code to use the methods available in the router service may be a more future proof fix for this problem. For now though I made the less invasive of the two choices and changed the name of the property.

Thanks for the PR! Apologies for the late merge :)


Centered a div 💀 (and also made the navbar slimmer)

in reference to #38

(added a script as well for ease of use in the future)


⚠ Bofrost.fr has degraded performance

In 6e9902a, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1711 ms

Resolved: Bofrost.fr performance has improved in 7e8d961.


$this->numberOfPages = $this->imagick->getNumberImages(); causes Maximum execution time of 30 seconds exceeded

Have laravel medialibrary installed. It works fine for single page files. However a four page 8.5MB (and a smaller 2.5MB of the same file) pdf throws this:
Maximum execution time of 30 seconds exceeded or 502 Bad Gateway
Single page files do not throw the error.
https://github.com/spatie/pdf-to-image/issues/16
https://github.com/spatie/laravel-medialibrary/issues/1271
http://www.imagemagick.org/discourse-server/viewtopic.php?t=19087
Tried out a ton possible issues, but the error always comes back to a method in vendor/spatie/pdf-to-image/src/Pdf.php file.
Here's the versions I'm using:
"spatie/laravel-medialibrary": "^7",
"spatie/pdf-to-image": "2.0.1",
Laravel 7
GPL Ghostscript 9.50 (2019-10-15)
php.ini
upload_max_filesize = 32M
max_file_uploads = 20
post_max_size = 128M
memory_limit = 2048M
extension="redis.so"
extension="imagick.so"
Laravel Valet 2.11.0
Can verify valet uses<EMAIL_ADDRESS>Have verified the server is using<EMAIL_ADDRESS>https://github.com/laravel/valet/issues/728#issuecomment-462851399 (this was a big pain, and a great find)
Have gone through all the possibilities I can find.

This one took a few days to pin down. https://laracasts.com/discuss/channels/code-review/maximum-execution-time-of-30-seconds-exceeded-spatie-medialibrary?page=1#reply=621931
Basically, the policy.xml on imagemagick had a setting for pdf which needed read | write permissions. That was part of it, but also on local I use QUEUE_CONNECTION=sync but that was forcing the conversion so I found changing to redis - at least for this attempt - on local really helped as horizon could take the job...
@freekmurze  is it a fair tip on the docs to reference this setting in policy.xml?
<policy domain="coder" rights="read | write" pattern="PDF" />

Sure, send a PR for this

@freekmurze not sure if the fix I suggested made it through? I thought I forked the README and suggested changes with a PR. Did that work? (first time pr'er)


Refill Strategy should be an interface so that users can define their own Refill Strategies

If refill strategy were an interface, creating my own Refill Strategy dependent on external variable would be very easy. The current class defies that behaviour and even Kotlin based functions extensions are not possible because of the private constructor of the class.
Considering #13 was a welcome change to the library, I would argue to take it a step further and allow users to create their own Refill Strategies. Please let me know if you would like me to work on an example.

@sumitsarkar what is version of Bucket4j you talk about? Current version has no class RefillStrategy. There is class Refill but it is just a container for data without any behavior, so there is not point for which interface can be applied.

Sorry @vladimir-bukhtoyarov. I was talking about the Refill class. The Bucket can't be created without a Refill - it has to either a greedy approach or an intervally one.
I am stuck with figuring out a way to confirm to rate limits of an API, where I can make N requests per second. But if all the N requests take more than one second to complete, the refill strategy allows me to execute another N requests. The problem with this is, the API also enforces a concurrency limit of N reuqests.
So I have to make sure I make only N requests concurrently but also that a maximum of N requests are exeucted in a second.
I was thinking of overriding the Refill class to implement my own refill strategy that satisfies both conditions and doesn't refill automatically. Or I could skip refilling the bucket and manually relinquish each token on completion of a request and keep track of the "N requests per second" some other way.
Could you provide some guidance on this?

@sumitsarkar did you consider to use addTokens method? It can be used when for case when you want to return token back to bucket, for example when request takes more than 1 second as in your case.
According to limitation for concurrent requests, in my opinion it is better to use another primitive like Semaphore(or even library like Hystrix). In general it is better to write concurrent code by composing the simple primitives each of theme has known properties and well tested, then trying to write huge code block that tries to solve all problems, so I argue that composition of rate-limiter and semaphore will behave more stable and will be easy to read than trying to write rate-limiter with huge functionality.

I do not know which implementation of RingBuffer you plan to use(I am not familiar with the Kotlin), but using common sense I can apologize that RingBuffer in alone will be able to control only amount of work in the progress but not the request rate. So, to control the rate you will need to combine buffer and bucket together.

The default implementation of RingBuffer won't. I am controlling the overwrite using the objects in the RingBuffer that contain the times at request are made and responses are received . Now that I am saying it out loud, it does seem that I am trying to reinvent the wheel that token bucket already does.

@sumitsarkar I can mark constructor package-private, but not public or protected, because it will contradicts with library architecture.
Package private constructor:

will be enough to make subsclassing, just place subslass in same package.
Other users will understand that subsclassing of Refill is not typical use-case for library usage and when doing that you will understand the all risks.

If it is fine for you I can make new release today.

@vladimir-bukhtoyarov That makes sense. Thank you for providing a potential solution. I did manage to solve my issue two days back using pure Kotlin with backpressure built into it. So, I don't really need this feature anymore.
Since nobody else has asked for this use-case, I'd leave it to you whether you want to release this feature or not.

Great!


PR - Add Mentorship Resources page - inital version

Description

Add initial version of the Mentorship Resources page.
Add minimal styling (from old resources style)
Add resources.yml without images and links

https://github.com/WomenCodingCommunity/WomenCodingCommunity.github.io/issues/27
Change Type

[ ] Bug Fix
[x] New Feature
[ ] Code Refactor
[ ] Mentor Update
[ ] Documentation
[ ] Other

Related Issue

Screenshots

Before

After

Pull request checklist
Please check if your PR fulfills the following requirements:

[x] I checked and followed the contributor guide
[x] I have tested my changes locally.
[x] I have added a screenshot from the website after I tested it locally

Looks good to me, let's just wait for the links and images. I think Sonali will have that soon.

Great! Ok :-)

Link for the Mentor's Guide - https://drive.google.com/file/d/1-2aXUJaLc-pYNTWTiM2ZugW7IDtd3my0/view?usp=sharing
Link for the Mentee's Guide - https://drive.google.com/file/d/1QfM-zCk-_LSR8rrfrawyog-bM_n7BFbG/view?usp=sharing

We can use the same Mentor's pocket book as old no logo's on that - https://drive.google.com/file/d/1rgoOTqqG4Gu6e4tw45efFspDnoYRgYd9/view?usp=sharing

I am not sure about the images for the front-end. We might need some new design or can be without images not sure.

Thank you @goelsonali - I will add them now. 👌

I have added the links above. The page looks now:


python train.py Error during training？why？

(yolov3-tf2-cpu) (venv) M:\MachineLearning\yolov3-tf2>python train.py --dataset ./data/voc2007_train_stone.tfrecord
--val_dataset ./data/voc2007_val_stone.tfrecord --classes ./data/stone.names --num_classes 1 --mode fit --transfer
darknet --batch_size 4 --epochs 20 --weights ./checkpoints/yolov3.tf --weights_num_classes 80
2021-04-24 13:50:14.338255: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX
Epoch 1/20
2021-04-24 13:50:57.964647: W tensorflow/core/common_runtime/base_collective_executor.cc:217] BaseCollectiveExecuto
r::StartAbort Invalid argument: Paddings must be non-negative: 0 -12
[[{{node Pad}}]]
[[IteratorGetNext]]
2021-04-24 13:50:57.975653: I tensorflow/core/profiler/lib/profiler_session.cc:225] Profiler session started.
1/Unknown - 13s 13s/stepWARNING:tensorflow:Reduce LR on plateau conditioned on metric val_loss which is not
available. Available metrics are: lr
W0424 13:50:57.973832  2388 callbacks.py:1934] Reduce LR on plateau conditioned on metric val_loss which is not a
vailable. Available metrics are: lr
WARNING:tensorflow:Early stopping conditioned on metric val_loss which is not available. Available metrics are:
W0424 13:50:57.973832  2388 callbacks.py:1286] Early stopping conditioned on metric val_loss which is not availab
le. Available metrics are:
Epoch 00001: saving model to checkpoints/yolov3_train_1.tf
1/Unknown - 17s 17s/stepTraceback (most recent call last):
File "train.py", line 195, in
app.run(main)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\absl\app.py", line 303, in run
_run_main(main, args)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\absl\app.py", line 251, in _run_main
sys.exit(main(argv))
File "train.py", line 190, in main
validation_data=val_dataset)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\keras\engine\training.py
", line 819, in fit
use_multiprocessing=use_multiprocessing)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\keras\engine\training_v2
.py", line 342, in fit
total_epochs=epochs)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\keras\engine\training_v2
.py", line 128, in run_one_epoch
batch_outs = execution_function(iterator)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\keras\engine\training_v2
_utils.py", line 98, in execution_function
distributed_function(input_fn))
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\def_function.py",
line 568, in call
result = self._call(*args, **kwds)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\def_function.py",
line 632, in _call
return self._stateless_fn(*args, **kwds)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\function.py", line
2363, in call
return graph_function._filtered_call(args, kwargs)  # pylint: disable=protected-access
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\function.py", line
1611, in _filtered_call
self.captured_inputs)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\function.py", line
1692, in _call_flat
ctx, args, cancellation_manager=cancellation_manager))
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\function.py", line
545, in call
ctx=ctx)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\execute.py", line
67, in quick_execute
six.raise_from(core._status_to_exception(e.code, message), None)
File "", line 3, in raise_from
tensorflow.python.framework.errors_impl.InvalidArgumentError:  Paddings must be non-negative: 0 -12
[[{{node Pad}}]]
[[IteratorGetNext]] [Op:__inference_distributed_function_47459]
Function call stack:
distributed_function
WARNING:tensorflow:Unresolved object in checkpoint: (root).layer-8
W0424 13:51:03.144867  2388 util.py:144] Unresolved object in checkpoint: (root).layer-8
WARNING:tensorflow:Unresolved object in checkpoint: (root).layer-9
W0424 13:51:03.144867  2388 util.py:144] Unresolved object in checkpoint: (root).layer-9
WARNING:tensorflow:Unresolved object in checkpoint: (root).layer-10
W0424 13:51:03.144867  2388 util.py:144] Unresolved object in checkpoint: (root).layer-10
WARNING:tensorflow:Unresolved object in checkpoint: (root).layer-11
W0424 13:51:03.144867  2388 util.py:144] Unresolved object in checkpoint: (root).layer-11
WARNING:tensorflow:A checkpoint was restored (e.g. tf.train.Checkpoint.restore or tf.keras.Model.load_weights) but
not all checkpointed values were used. See above for specific issues. Use expect_partial() on the load status objec
t, e.g. tf.train.Checkpoint.restore(...).expect_partial(), to silence these warnings, or use assert_consumed() to m
ake the check explicit. See https://www.tensorflow.org/guide/checkpoint#loading_mechanics for details.
W0424 13:51:03.144867  2388 util.py:152] A checkpoint was restored (e.g. tf.train.Checkpoint.restore or tf.keras.Mo
del.load_weights) but not all checkpointed values were used. See above for specific issues. Use expect_partial() on
the load status object, e.g. tf.train.Checkpoint.restore(...).expect_partial(), to silence these warnings, or use
assert_consumed() to make the check explicit. See https://www.tensorflow.org/guide/checkpoint#loading_mechanics for
details.
(yolov3-tf2-cpu) (venv) M:\MachineLearning\yolov3-tf2>
(yolov3-tf2-cpu) (venv) M:\MachineLearning\yolov3-tf2>
(yolov3-tf2-cpu) (venv) M:\MachineLearning\yolov3-tf2>python train.py --dataset ./dat
a/voc2007_train_stone.tfrecord --val_dataset ./data/voc2007_val_stone.tfrecord --classes ./data/stone.names --num_classes 1 --mode fit --transfer dark
net --batch_size 4 --epochs 20 --weights ./checkpoints/yolov3.tf --weights_num_classes 80
2021-04-24 14:16:12.964344: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not co
mpiled to use: AVX
Traceback (most recent call last):
File "train.py", line 197, in
app.run(main)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\absl\app.py", line 303, in run
_run_main(main, args)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\absl\app.py", line 251, in run_main
sys.exit(main(argv))
File "train.py", line 189, in main
step_per_epoch=x.shape[0]//Batchsize,
NameError: name 'x' is not defined
WARNING:tensorflow:Unresolved object in checkpoint: (root).layer-8
W0424 14:16:31.858063  5304 util.py:144] Unresolved object in checkpoint: (root).layer-8
WARNING:tensorflow:Unresolved object in checkpoint: (root).layer-9
W0424 14:16:31.859061  5304 util.py:144] Unresolved object in checkpoint: (root).layer-9
WARNING:tensorflow:Unresolved object in checkpoint: (root).layer-10
W0424 14:16:31.859061  5304 util.py:144] Unresolved object in checkpoint: (root).layer-10
WARNING:tensorflow:Unresolved object in checkpoint: (root).layer-11
W0424 14:16:31.859061  5304 util.py:144] Unresolved object in checkpoint: (root).layer-11
WARNING:tensorflow:A checkpoint was restored (e.g. tf.train.Checkpoint.restore or tf.keras.Model.load_weights) but not all checkpointed values were us
ed. See above for specific issues. Use expect_partial() on the load status object, e.g. tf.train.Checkpoint.restore(...).expect_partial(), to silence
these warnings, or use assert_consumed() to make the check explicit. See https://www.tensorflow.org/guide/checkpoint#loading_mechanics for details.
W0424 14:16:31.860061  5304 util.py:152] A checkpoint was restored (e.g. tf.train.Checkpoint.restore or tf.keras.Model.load_weights) but not all check
pointed values were used. See above for specific issues. Use expect_partial() on the load status object, e.g. tf.train.Checkpoint.restore(...).expect
partial(), to silence these warnings, or use assert_consumed() to make the check explicit. See https://www.tensorflow.org/guide/checkpoint#loading_mec
hanics for details.
(yolov3-tf2-cpu) (venv) M:\MachineLearning\yolov3-tf2>python train.py --dataset ./data/voc2007_train_stone.tfrecord --val_dataset ./data/voc2007_val_s
tone.tfrecord --classes ./data/stone.names --num_classes 1 --mode fit --transfer darknet --batch_size 4 --epochs 20 --weights ./checkpoints/yolov3.tf
--weights_num_classes 80
2021-04-24 14:18:51.426349: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not co
mpiled to use: AVX
Epoch 1/20
2021-04-24 14:19:34.278458: W tensorflow/core/common_runtime/base_collective_executor.cc:217] BaseCollectiveExecutor::StartAbort Invalid argument: Pad
dings must be non-negative: 0 -12
[[{{node Pad}}]]
[[IteratorGetNext]]
2021-04-24 14:19:34.290370: I tensorflow/core/profiler/lib/profiler_session.cc:225] Profiler session started.
1/Unknown - 13s 13s/stepWARNING:tensorflow:Reduce LR on plateau conditioned on metric val_loss which is not available. Available metrics are:
lr
W0424 14:19:34.282967  1632 callbacks.py:1934] Reduce LR on plateau conditioned on metric val_loss which is not available. Available metrics are: lr
WARNING:tensorflow:Early stopping conditioned on metric val_loss which is not available. Available metrics are:
W0424 14:19:34.282967  1632 callbacks.py:1286] Early stopping conditioned on metric val_loss which is not available. Available metrics are:
Epoch 00001: saving model to checkpoints/yolov3_train_1.tf
1/Unknown - 17s 17s/stepTraceback (most recent call last):
File "train.py", line 196, in
app.run(main)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\absl\app.py", line 303, in run
_run_main(main, args)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\absl\app.py", line 251, in _run_main
sys.exit(main(argv))
File "train.py", line 191, in main
validation_data=val_dataset)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\keras\engine\training.py", line 819, in fit
use_multiprocessing=use_multiprocessing)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\keras\engine\training_v2.py", line 342, in fit
total_epochs=epochs)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\keras\engine\training_v2.py", line 128, in run_one_epoch
batch_outs = execution_function(iterator)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\keras\engine\training_v2_utils.py", line 98, in execution_f
unction
distributed_function(input_fn))
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\def_function.py", line 568, in call
result = self._call(*args, **kwds)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\def_function.py", line 632, in _call
return self._stateless_fn(*args, **kwds)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\function.py", line 2363, in call
return graph_function._filtered_call(args, kwargs)  # pylint: disable=protected-access
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\function.py", line 1611, in _filtered_call
self.captured_inputs)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\function.py", line 1692, in _call_flat
ctx, args, cancellation_manager=cancellation_manager))
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\function.py", line 545, in call
ctx=ctx)
File "C:\Users\jx-dl.conda\envs\yolov3-tf2-cpu\lib\site-packages\tensorflow_core\python\eager\execute.py", line 67, in quick_execute
six.raise_from(core._status_to_exception(e.code, message), None)
File "", line 3, in raise_from
tensorflow.python.framework.errors_impl.InvalidArgumentError:  Paddings must be non-negative: 0 -12
[[{{node Pad}}]]
[[IteratorGetNext]] [Op:__inference_distributed_function_47459]
Function call stack:
distributed_function
WARNING:tensorflow:Unresolved object in checkpoint: (root).layer-8
W0424 14:19:38.904387  1632 util.py:144] Unresolved object in checkpoint: (root).layer-8
WARNING:tensorflow:Unresolved object in checkpoint: (root).layer-9
W0424 14:19:38.904387  1632 util.py:144] Unresolved object in checkpoint: (root).layer-9
WARNING:tensorflow:Unresolved object in checkpoint: (root).layer-10
W0424 14:19:38.904387  1632 util.py:144] Unresolved object in checkpoint: (root).layer-10
WARNING:tensorflow:Unresolved object in checkpoint: (root).layer-11
W0424 14:19:38.904387  1632 util.py:144] Unresolved object in checkpoint: (root).layer-11
WARNING:tensorflow:A checkpoint was restored (e.g. tf.train.Checkpoint.restore or tf.keras.Model.load_weights) but not all checkpointed values were us
ed. See above for specific issues. Use expect_partial() on the load status object, e.g. tf.train.Checkpoint.restore(...).expect_partial(), to silence
these warnings, or use assert_consumed() to make the check explicit. See https://www.tensorflow.org/guide/checkpoint#loading_mechanics for details.
W0424 14:19:38.904387  1632 util.py:152] A checkpoint was restored (e.g. tf.train.Checkpoint.restore or tf.keras.Model.load_weights) but not all check
pointed values were used. See above for specific issues. Use expect_partial() on the load status object, e.g. tf.train.Checkpoint.restore(...).expect_
partial(), to silence these warnings, or use assert_consumed() to make the check explicit. See https://www.tensorflow.org/guide/checkpoint#loading_mec
hanics for details.

我也是这个问题，请问你是怎么解决的


Bring back state node ID resolving to getRelativeStateNodes

Not completely sure if this is a correct fix, but @xstate/graph still expects this method to accept strings here:
https://github.com/davidkpiano/xstate/blob/b25ebe228411cec81067efe7ae54b79bf1a2767c/packages/xstate-graph/src/graph.ts#L94

We should fix this in @xstate/graph - removing the state node ID as a resolved target improves performance and reduces a lot of previously necessary logic.

Sure, gonna try to look into fixing this the other way around.


ASP MVC version? fleet routing/planning

Its strange that an Microsoft app, does not have an ASP MVC version.
It would be nice to have fleet routing/dispatch sample included

Fleet Tracker is not a routing sample but I do recommend that you look at https://www.microsoft.com/en-us/maps/truck-routing to get an overview of some of our routing options