fix(IAM Policy Management): S2S support for enterprise accounts

PR summary

Authorization policy type support for enterprise accounts
issue: https://github.ibm.com/IAM/AM-issues/issues/2350
PR Checklist
Please make sure that your PR fulfills the following requirements:

[x] The commit message follows the Angular Commit Message Guidelines.
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

Current vs new behavior

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Test results:
getPolicyAssignment() result:
{
  "target": {
    "type": "Account",
    "id": "0ddc8e9eb0894383b48791ff4ba0b80e"
  },
  "options": {
    "root": {
      "requester_id": "test_sdk",
      "assignment_id": "test"
    }
  },
  "id": "policyAssignment-d4c8c37e-57ef-42ea-a0e3-811184a4d55a",
  "account_id": "e3aa0adff348470f803d4b6e53d625cf",
  "href": "https://iam.test.cloud.ibm.com/v1/policy_assignments/policyAssignment-d4c8c37e-57ef-42ea-a0e3-811184a4d55a",
  "created_at": "2024-04-18T07:25:08.435Z",
  "created_by_id": "test_sdk",
  "last_modified_at": "2024-04-18T07:25:18.763Z",
  "last_modified_by_id": "test_sdk",
  "resources": [
    {
      "target": {
        "id": "0ddc8e9eb0894383b48791ff4ba0b80e"
      },
      "policy": {
        "resource_created": {
          "id": "9bb2f599-9061-4669-88af-89a6ad717887"
        }
      }
    }
  ],
  "template": {
    "id": "policyTemplate-b371dc76-a43e-4052-952a-7d5405fc7466",
    "version": "2"
  },
  "status": "succeeded"
}
getTemplateMetaDataV2AccessPolicy() result:
{
  "id": "policyTemplate-b371dc76-a43e-4052-952a-7d5405fc7466",
  "version": "2",
  "assignment_id": "policyAssignment-d4c8c37e-57ef-42ea-a0e3-811184a4d55a"
}
deletePolicyAssignment() result:
deletePolicyTemplateVersion() response status code: 204
deletePolicyTemplate() response status code: 204
[WARNING] thread Thread[#35,OkHttp TaskRunner,5,com.ibm.cloud.platform_services.iam_policy_management.v1.IamPolicyManagementExamples] was interrupted but is still alive after waiting at least 15000msecs
[WARNING] thread Thread[#35,OkHttp TaskRunner,5,com.ibm.cloud.platform_services.iam_policy_management.v1.IamPolicyManagementExamples] will linger despite being asked to die via interruption
[WARNING] thread Thread[#36,Okio Watchdog,5,com.ibm.cloud.platform_services.iam_policy_management.v1.IamPolicyManagementExamples] will linger despite being asked to die via interruption
[WARNING] NOTE: 2 thread(s) did not finish despite being asked to via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  44.225 s
[INFO] Finished at: 2024-04-18T12:55:36+05:30
[INFO] ------------------------------------------------------------------------

integration results:
[INFO] Running com.ibm.cloud.platform_services.iam_policy_management.v1.IamPolicyManagementIT
[INFO] Tests run: 31, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.24 s -- in com.ibm.cloud.platform_services.iam_policy_management.v1.IamPolicyManagementIT
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 31, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- failsafe:3.1.2:verify (default) @ iam-policy-management ---
[INFO]
[INFO] --- install:3.1.1:install (default-install) @ iam-policy-management ---
[INFO] Installing /Users/rajesh/iam-project/platform-sdk/platform-services-java-sdk/modules/iam-policy-management/pom.xml to /Users/rajesh/.m2/repository/com/ibm/cloud/iam-policy-management/99-SNAPSHOT/iam-policy-management-99-SNAPSHOT.pom
[INFO] Installing /Users/rajesh/iam-project/platform-sdk/platform-services-java-sdk/modules/iam-policy-management/target/iam-policy-management-99-SNAPSHOT.jar to /Users/rajesh/.m2/repository/com/ibm/cloud/iam-policy-management/99-SNAPSHOT/iam-policy-management-99-SNAPSHOT.jar
[INFO] Installing /Users/rajesh/iam-project/platform-sdk/platform-services-java-sdk/modules/iam-policy-management/target/iam-policy-management-99-SNAPSHOT-javadoc.jar to /Users/rajesh/.m2/repository/com/ibm/cloud/iam-policy-management/99-SNAPSHOT/iam-policy-management-99-SNAPSHOT-javadoc.jar
[INFO] Installing /Users/rajesh/iam-project/platform-sdk/platform-services-java-sdk/modules/iam-policy-management/target/iam-policy-management-99-SNAPSHOT-sources.jar to /Users/rajesh/.m2/repository/com/ibm/cloud/iam-policy-management/99-SNAPSHOT/iam-policy-management-99-SNAPSHOT-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:14 min
[INFO] Finished at: 2024-04-17T17:32:01+05:30
[INFO] ------------------------------------------------------------------------

 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.

:tada: This PR is included in version 0.53.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[wallet-ext][new design] implement onboarding flow UI

contents to show:

what is sui
how to receive and send coins
how gas works
how to link the wallet
...

https://www.figma.com/file/OzLaRFzevjxdQAbybWEZk0/Sui-Visualize?node-id=4438%3A103007


v0.8.3 startrails & crop question

brand new install - 26 Feb 2022
Camera: ASI178MC (native resolution 3096x2080)
Found this when wondering why my timelapse for last night didn't work (manual output line is below).
CROP_IMAGE="true"
CROP_WIDTH=2080
CROP_HEIGHT=2080
CROP_OFFSET_X=15
CROP_OFFSET_Y=-40
The resulting image is coming out 2080x2040 and i'm not sure why. I've looked through the config.sh and can't see why it's trimming 40px off the height. Tested and set it to 2040x2040, resulting image is 2040x2020 (20px missing).
I tried running the manual timelapse this morning.
./startrails -b 0.26 -d /home/pi/allsky/images/20220226 -e jpg -v -o 20220226.jpg >> /tmp/startrails.txt
The output (for every image):
/home/pi/allsky/images/20220226/image-20220227012910.jpg: image size 2080x2040 does not match expected size 2080x2070; ignoring
I'm not finding where that image size/ratio is being called out... feels like it is hard-coded somewhere? Not seeing it in the config.sh, I may be missing it somewhere else. I tried declaring the size with the -s flag:
./startrails -b 0.26 -d /home/pi/allsky/images/20220226 -e jpg -v -s 2080x2040 -o 20220226.jpg >> /tmp/startrails.txt
result-
/home/pi/allsky/images/20220226/image-20220226201752.jpg: image size 2080x2070 does not match expected size 2080x2040; ignoring ERROR: Unable to read sample file '/home/pi/allsky/images/20220226/image-20220226201752.jpg'; quitting
I wasn't running into this error on my previous v0.8.3 install, unfortunately i can't go snag the older startrails file because the memory card decided it didn't like to work any more.
There's a high chance I'm completely missing something, but I think I'm on track.

@jcauthen78 Jim, after reading your post I spent some time trying to understand the crop.  I tried it once a year ago and couldn't figure it out (I didn't know it cropped from the center), so I gave up.
I'm pretty sure I understand it now.  Your sensor is 2080 px high and you're telling Allsky you want a 2080 px high crop, starting at CROP_OFFSET_Y of -40.  Since the crop height and the sensor height are the same, you are trying to move the crop rectangle above the top of the sensor by 40 px, and the bottom of the crop rectangle should therefore be 40 px up from the bottom of the sensor (2040).  There are no pixels on the sensor at -40, which is above the first row of pixels.  Instead of giving an error you're only getting the 2040 pixel height that's on the sensor.
Unfortunately saveImage.sh (which does the crop) doesn't know the sensor size so can't check for invalid conditions like this.
It's not an issue with the width because a 2040 crop moved to the right by 15 pixels puts the right edge at 2056 which is less than the sensor width of 3096.
For the 2040x2040 crop giving 2040x2020 the width isn't a problem for the same reason as above.
The center of the 2080 tall sensor is at 1040 pixels (2080/2).
Half the crop height is 1020 (2040/2).
Since crop rectangles are centered on the center of the sensor, half the crop (1020) is above and half (1020) is below the center.  So the top of the crop rectangle is 20 (1040 - 1020), and the bottom of the crop rectangle is 2060 (1040 + 1020).  OK so far, BUT the CROP_OFFSET_Y is -40 which moves the crop rectangle up 40 px.  The top of the box is now -20 (20-40) and the bottom of the box is 2020 (2060-40).
The top 20 px are cut off since there are no pixels on the sensor at -20.
I will add a page to the Wiki about troubleshooting/explaining crops.
I will reply to the timelapse issue in the next post.

@EricClaeys - Ahh, that makes complete sense. Was using the offset to center up the visual 180° circle while maintaining the full circle - didn't take into mind that there weren't pixels over there to maintain the image resolution I was calling out. I was fighting it and it was telling me 'im doing exactly what you're telling me!'  haha.  dang computers being smarter than me.
I think I just figured out the Timelapse issue (screenshot attached). Now that I understand the crop offset and how it can change image size, I pulled up the folder in Adobe Bridge to look a little deeper. I changed the crop to center up a little bit after I re-mounted it outside, which changed the image size part way through the run.  Went from 2080x2070 to 2080x2040 earlier in the night and didn't realize its implications till this morning when I saw that the run last night went just fine and gave me the correct Keogram & Startrails.
So, I'm chalking these both up to impatient user error. 😅

@jcauthen78 So both problems are fixed?
I'd like to keep this Issue open since I'm testing a change to saveImage.sh to check for invalid CROP_WIDTH, CROP_HEIGHT, CROP_OFFSET_X, and CROP_OFFSET_Y values.  saveImage.sh can run the identify command to get the image resolution and then do the math I did in my last post.  I've tested it with good values, with each of the four CROP_* variables bad, and with a combination of CROP_* variables bad.  All tests passed.
I am going to have it output an ERROR to the log file, then stop Allsky which will force the user to fix the bad number(s) before it'll run Allsky again.

sounds like a plan. I like the idea of doing the identify.

@jcauthen78   I'm closing this Issue.  I added sanity checks to the CROP_* variables in saveImage.sh (the problem bit me as well, so I got off my butt and made the changes).  They changes will appear in the next release.
The code checks for crop areas that are partially or fully off the image, numerical values that aren't numbers, e.g., CROP_WIDTH="20%", and some other things.


Sp4 332 follow my groups in map fe

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


fix: ETS_REGISTER_PID should not relate watch mode

Checklist

[ ] npm test passes
[ ] tests and/or benchmarks are included
[ ] documentation is changed or added
[ ] commit message follows commit guidelines

Affected core subsystem(s)

Description of change

+<EMAIL_ADDRESS>


[Doc] A some kind of "overview"/"illustrated" documentation to explain the architecture of GraphScope

Is your feature request related to a problem? Please describe.
I just realized that our existing documentation is focused on "Usage", i.e., "How", rather than "What". A explain/illustrated section in documentation (with some flow graphs, such a doc is not for general users, but for who want to understand how graphscope are organized and how it actually works) would be helpful for users or who are interested in GraphScope to gain a sense of

How "one-stop" are archived, i.e., how the there compute engine co-works
The relations between components (client, coordinator, frontend, executor, engine, etc.) in graphscope, and how they talk to each other
How graphs are stored in the system
What the parameter engine_cpu, engine_mem, vineyard_shared_memory, etc. means, and why we need such resources
What will happen when users type g = graphscope.load_ldbc_graph()
Does graphscope archive fault-tolerence, and what will happen when some nodes shutdown
Performance expectation and estimation
I have a graph (in csv or whatever), how should I specify resources when launching cluster (without talking to the internal developers)

And, it would be helpful for potential developers/contributors to gain a sense of where the chances existing that they can do something to contribute to graphscope.

See also https://github.com/alibaba/GraphScope/discussions/1175


Please respect the semver versioning scheme

Hi @ColonelBundy this is not an bug issue but just wanna ask you to follow the right semver versioning scheme when releasing breaking changes, such as the recent merged PR from https://github.com/ColonelBundy/moleculer-decorators/pull/13.
This PR created breaking change, released under patches 1.0.21 -> 1.0.22, causing our CI/CD process to fail....
Again thanks for the hard work on this module but respect the versioning scheme pls <3

@giang12 My bad, totally missed this. Will definitely check an extra time before releasing next time. Thanks!


Redesign: Extend Inventory Order documents (calculate and post)

We need to extend the Item Ledger Entries by a field, that will be as relevant for reclassification as e.g. the Location Code or the Variant Code. The Inventory Orders need to reflect that, including the line calculation, and the recording posting.
I could scratch only a little under the surface, but it seems that the current code design is not yet extensible enough.
Not all requirements can be solved by new events but require a complete redesign.
For example:
Report 5880 "Calc. Phys. Invt. Order Lines"
data item "Item", OnAfterGetRecord

A little further below:

CreateNewPhysInvtOrderLine

With this requirement known, would it be possible to redesign all necessary places (not just the ones I just found)? And if so, at what ETA?

Codeunit 5880 "Phys. Invt. Order-Finish"
Code

codeunit 5884 "Phys. Invt. Order-Post"
Code

CheckOrderLine

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Assets not load

Version information

Laravel: v5.6.
Voyager: latest
PHP: 7.2
Database: [type] [version] (e.g. MySQL 8.0)

Description

Im just doing fresh install laravel and voyager, but why my asset not load. even im change 'assets_path' => '/vendor/tcg/voyager/assets', to 'assets_path' => 'public/vendor/tcg/voyager/assets', the result is Sorry, the page you are looking for could not be found.
Expected behavior
Please help me what happen here
Screenshots

Additional context
Add any other context about the problem here.

What's the url of the page in the screenshot?
Assets returning a 500 are 100% not caused by Voyager. Most likely its misconfiguration of the webserver.  Can you look at the network tab and see what the actual response body is? I'm curious if it's a laravel "whoops" page, or a webserver "500 error" page, or something else

im using laravel valet in linux.

laravel install : composer create-project --prefer-dist laravel/laravel blog "5.6.*"
$ composer require tcg/voyager
setting env
php artisan voyager:install --with-dummy

login http://auto2000.test/admin/login
i dont know, it must be load to public/vendor automaticaly right? without change the voyager config.
maybe wrong with my laravel valet linux configurattion? laravel linux install -> https://www.youtube.com/watch?v=dFO9UcbTIDs

its fixed alhamdulillah, just reinstlal my vallet. thanks for your response, cheers


Sometimes fails at print_tree

Some scans with constants fail at print_tree, despite working perfectly fine when you open the data after the fact to print the tree.
Because saving of the print tree happens before plotting, plots are not generated when this occurs.
My suspicion is that it may for some reason have to do with constants that refer to variables not otherwise in the scan, but not fully sure...
The data is otherwise recorded properly and works fine when you plot it manually.
@kelsonoram can you copy the stack trace into a comment here?

This is the error message that bluesky-in-a-box-wt5-1 gives for this print_tree issue:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/numexpr/necompiler.py", line 735, in getArguments
a = local_dict[name]

KeyError: 'hp'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)

File "/usr/local/lib/python3.10/site-packages/bluesky/run_engine.py", line 2446, in process
exceptions = self.cb_registry.process(name, name.name, doc)

File "/usr/local/lib/python3.10/site-packages/bluesky/utils/init.py", line 379, in process
func(*args, **kwargs)

File "/usr/local/lib/python3.10/site-packages/bluesky/utils/init.py", line 468, in call
return mtd(*args, **kwargs)

File "/usr/local/lib/python3.10/site-packages/event_model/init.py", line 113, in call
return self._dispatch(name, doc, validate)

File "/usr/local/lib/python3.10/site-packages/event_model/init.py", line 121, in _dispatch
output_doc = getattr(self, name)(doc)

File "//./wt5_event_model.py", line 218, in stop
self.data[name].print_tree(verbose=True)

File "/usr/local/lib/python3.10/site-packages/WrightTools/data/_data.py", line 1337, in print_tree
Skipping key 'versions' from start document in metadata because it cannot be placed in HDF5 attrs
self._print_branch("", depth=0, verbose=verbose)

File "/usr/local/lib/python3.10/site-packages/WrightTools/data/_data.py", line 268, in _print_branch
print_leaves(prefix, self.constants)

File "/usr/local/lib/python3.10/site-packages/WrightTools/data/_data.py", line 259, in print_leaves
s = prefix + a + b + "{0}: {1}".format(i, item._leaf)

File "/usr/local/lib/python3.10/site-packages/WrightTools/data/_constant.py", line 55, in _leaf
out += " = {0}".format(self.value)

File "/usr/local/lib/python3.10/site-packages/WrightTools/data/_constant.py", line 81, in value
return np.nanmean(self.masked)

File "/usr/local/lib/python3.10/site-packages/WrightTools/data/_axis.py", line 180, in masked
arr = self[:]

File "/usr/local/lib/python3.10/site-packages/WrightTools/data/_axis.py", line 64, in getitem
return numexpr.evaluate(self.expression.split("=")[0], local_dict=vs)

File "/usr/local/lib/python3.10/site-packages/numexpr/necompiler.py", line 811, in evaluate
arguments = getArguments(names, local_dict, global_dict)

File "/usr/local/lib/python3.10/site-packages/numexpr/necompiler.py", line 737, in getArguments
a = global_dict[name]

KeyError: 'hp'

Thanks @kelsonoram


Update Array example in documentation

Fix the empty Array example to include type information.
I also swapped periods for semicolons to make it clearer that the text preceding the code examples is directly related to the examples. It didn't seem like there is a consistent style one way or another.

Thanks @presidentbeef. FYI, in the future you can include [skip ci] in your commit comment at the end and it will skip running CI. Assuming that you want to skip ci, as you would in this case.

I attempted to do so...


Enhance K8s client with collecting logs from pods

The platform already contains a K8s client that facilitates a "shell-like" user access to particular pods that comprise the application instance deployed by a user (multiple pods might be deployed for a single application instance).
The current implementation has to be reviewed and enhanced in order to expose the "kubectl logs " command output over a new REST API endpoint.

It would be best if this feature is configurable per app. For the virtual lab scenario, there might be some applications that should be used as "black boxes", e.g. during pen testing exercises. In such cases, the logs should not be exposed.

@korvoj you mean globally per application, per application in given domain or most granuarly per application instance?

Sounds good 👍

There are two issues encountered so far:

reading logs from pod fails if there a multiple containers present on that pod (and it seems that "all containers" option in not supported by the client library)
communication with the janitor fails if the size of logs is too big (hard to replicate currently)

@pgiertych in order to enable obtaining logs from particular container if a given pod has multiple containers we need to enhance the data model and related API request.
For the /api/apps/logs//{appInstanceId}/pods endpoint, the returned PodInfo object apart from name and displayName will also contain a list of containers (of type string). This list of containers can be either empty or container two or more container names.
In case of the /api/apps/logs//{appInstanceId}/pods/{podName} endpoint we should add and optional {containerName} path parameter or filter variable to be included only if given pod contains multiple containers. In such case, the API client is required to provide both podName and containerName.

@pgiertych the updated API works as expected however minor improvement in the UI would be required:

the default container is not displayed in the selector (although the logs from this container are correctly requested from the backend)
it would be beneficial to display a "loading" icon/visualization while the logs are being read from the backend (in might take some time if since the logs might grow very big)
it would be preferable if the logs window would be automatically scrolled down to display the most recent logs
in case the request for list of pods will return an empty list a static string saying "No logs are available for this application" should be displayed instead of the empty selectors

There are two issues encountered so far:

reading logs from pod fails if there a multiple containers present on that pod (and it seems that "all containers" option in not supported by the client library)
communication with the janitor fails if the size of logs is too big (hard to replicate currently)

There two issues are resolved by now. Only layout improvements are required.


Schema hot reload

Would it be possible to reload the schema at runtime?
Feature Request Type

[ ] Core functionality
[x] Alteration (enhancement/optimization) of existing feature(s)
[ ] New behavior

Description
Support for dynamic schema alteration, a way to refresh the schema during run time.

@gcemaj I'll close the issue since this is something you can do via unicorn or your web framework of choice 😊
If you meant something different, let us know!


docs: improve modes documentation

Hello,
In my opinion, the way to find out the mode on the linky needs to be documented to choose de good one on the readme.
Feel free to merge or close ! 🙂
Closes #13

Hello,
Thank you for the contribution :)
I will want to add more documentation but I need more time to do that, all contributions are welcome.
Have a nice day :)


Created Portfolio website with bootstrap

Added linters
Added index.html
Added styles.css
Used Bootstrap to create a page
Fixed linter errors
Created PR

Should we merge this...? :confused:

I guess we can., I’ll merge it
On Wed, 1 Mar 2023 at 19:26, Mahabub @.***> wrote:

Should we merge this...? 😕
—
Reply to this email directly, view it on GitHub
https://github.com/mnaibei/bootstrap-portfolio/pull/2#issuecomment-1450437628,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQSJJKN3DVMQVOYO2DTUIPTWZ52CPANCNFSM6AAAAAAVMHPDA4
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Regards,
Mucha Julius*.*


An error occurred while starting the kernel when I try to open Spyder

Issue Report Checklist

[ ] Searched the issues page for similar reports
[ ] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[ ] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[ ] Tried basic troubleshooting (if a bug/error)

[ ] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[ ] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
I'm trying to open Spyder (installed through Anaconda) and when I try to run the statement "print("Hello world")", I get an error in the IPython console saying "an error occurred whiel starting the kernel.
What steps reproduce the problem?

Simply opening Spyder and typing a simple syntactically correct line of python

What is the expected output? What do you see instead?
Expect to see the string "Hello world" in the console, but I see the error message from the IPython console. Tried updating spyder and dateutils with Anaconda, but the update doesn't seem to be working.
Paste Traceback/Error Below (if applicable)

Traceback (most recent call last):
File "C:\Users\karki\AppData\Local\Continuum\anaconda3\lib\site‑packages\spyder\plugins\ipythonconsole.py", line 1562, in create_kernel_manager_and_kernel_client
config=None, autorestart=True)
File "C:\Users\karki\AppData\Local\Continuum\anaconda3\lib\site‑packages\traitlets\traitlets.py", line 958, in __new__
inst.setup_instance(*args, **kwargs)
File "C:\Users\karki\AppData\Local\Continuum\anaconda3\lib\site‑packages\traitlets\traitlets.py", line 986, in setup_instance
super(HasTraits, self).setup_instance(*args, **kwargs)
File "C:\Users\karki\AppData\Local\Continuum\anaconda3\lib\site‑packages\traitlets\traitlets.py", line 977, in setup_instance
value.instance_init(self)
File "C:\Users\karki\AppData\Local\Continuum\anaconda3\lib\site‑packages\traitlets\traitlets.py", line 1691, in instance_init
self._resolve_classes()
File "C:\Users\karki\AppData\Local\Continuum\anaconda3\lib\site‑packages\traitlets\traitlets.py", line 1696, in _resolve_classes
self.klass = self._resolve_string(self.klass)
File "C:\Users\karki\AppData\Local\Continuum\anaconda3\lib\site‑packages\traitlets\traitlets.py", line 1507, in _resolve_string
return import_item(string)
File "C:\Users\karki\AppData\Local\Continuum\anaconda3\lib\site‑packages\traitlets\utils\importstring.py", line 34, in import_item
module = __import__(package, fromlist=[obj])
File "C:\Users\karki\AppData\Local\Continuum\anaconda3\lib\site‑packages\jupyter_client\session.py", line 61, in
from jupyter_client.jsonutil import extract_dates, squash_dates, date_default
File "C:\Users\karki\AppData\Local\Continuum\anaconda3\lib\site‑packages\jupyter_client\jsonutil.py", line 11, in
from dateutil.parser import parse as _dateutil_parse
File "C:\Users\karki\AppData\Local\Continuum\anaconda3\lib\site‑packages\dateutil\parser.py", line 158
l.append("%s=%s" % (attr, `value`))
^
SyntaxError: invalid syntax

Versions

Spyder version: Python 3.7 version
Python version:  3.7 version
Qt version:
PyQt version:
Operating System name/version: Windows 10 64 bit

Dependencies

IPython >=4.0     :  7.8.0 (OK)
cython >=0.21     :  0.29.13 (OK)
jedi >=0.9.0      :  0.15.1 (OK)
matplotlib >=2.0.0:  None (NOK)
nbconvert >=4.0   :  5.6.0 (OK)
numpy >=1.7       :  1.16.5 (OK)
pandas >=0.13.1   :  None (NOK)
pycodestyle >=2.3 :  2.5.0 (OK)
pyflakes >=0.6.0  :  2.1.1 (OK)
pygments >=2.0    :  2.4.2 (OK)
pylint >=0.25     :  2.4.2 (OK)
qtconsole >=4.2.0 :  4.5.5 (OK)
rope >=0.9.4      :  0.14.0 (OK)
sphinx >=0.6.6    :  2.2.0 (OK)
sympy >=0.7.3     :  1.4 (OK)

Hey @karkir0003, thanks for reporting. Please close Spyder, open the Anaconda Prompt and run there
conda install -f python-dateutil

If after that things are still failing, I'm afraid you'll have to reinstall Anaconda. For that, please watch the second part of our video to learn how to do it.

thanks Carlos. It works!
On Tue, Dec 29, 2020 at 9:56 PM Carlos Cordoba<EMAIL_ADDRESS>wrote:

Hey @karkir0003 https://github.com/karkir0003, thanks for reporting.
Please close Spyder, open the Anaconda Prompt and run there
conda install -f python-dateutil
If after that things are still failing, I'm afraid you'll have to
reinstall Anaconda. For that, please watch the second part of our video
https://www.youtube.com/watch?v=Ul79ihg41Rs to learn how to do it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/14512#issuecomment-752309568,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANBPTW2GVJIQGVCWWDGVAKDSXKJF3ANCNFSM4VNPEGPA
.

I tried typing in the above command in Anaconda and it works. I'm still not
sure of why in the first place spyder didn't connect to my ipython kernel
On Tue, Dec 29, 2020 at 9:56 PM Carlos Cordoba<EMAIL_ADDRESS>wrote:

Hey @karkir0003 https://github.com/karkir0003, thanks for reporting.
Please close Spyder, open the Anaconda Prompt and run there
conda install -f python-dateutil
If after that things are still failing, I'm afraid you'll have to
reinstall Anaconda. For that, please watch the second part of our video
https://www.youtube.com/watch?v=Ul79ihg41Rs to learn how to do it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/14512#issuecomment-752309568,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANBPTW2GVJIQGVCWWDGVAKDSXKJF3ANCNFSM4VNPEGPA
.

That's strange, but I'm glad things are fixed for you now.


won't build on ARM without a manual include

It apparently tries to find a variable named 'chromeos' if on arm, which isn't set anywhere
gyp: name 'chromeos' is not defined while evaluating condition 'target_arch=="arm" and chromeos==1' in deps/breakpad/breakpad.gyp while loading dependencies of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux <IP_ADDRESS>
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/anomaly/node_modules/minidump
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is most likely a problem with the minidump package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls minidump
npm ERR! There is likely additional logging output above.

Adding this to ~/.gyp/include.gypi works around it:
{
  'variables': {
    'chromeos%': 0
  }
}

or, I assume, set that to '1' if actually on ChromeOS

Thanks, will try it out soon

I'm getting this issue building Atom from master on Chromebook: 32bit ARM, Ubuntu 14.04 with Xfce

@jlord I think it might be caused that atom is using node-minidump 0.8.

@zcbenz can we update it? I'd bump the ver myself but I searched the repo and don't see where we're requiring node-minidump?

@jlord Yeah we can, 0.9 is a quite minor update. In Atom node-minidump is used by the dump-symbols-task.coffee.

Closing since it works in 0.9.


Support for layout options that accept JS func

Description
Certain layout contains options that accept functions. For example, the grid layout:
let options = {
  name: 'grid',

  fit: true, // whether to fit the viewport to the graph
  padding: 30, // padding used on fit
  boundingBox: undefined, // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
  avoidOverlap: true, // prevents node overlap, may overflow boundingBox if not enough space
  avoidOverlapPadding: 10, // extra spacing around nodes when avoidOverlap: true
  nodeDimensionsIncludeLabels: false, // Excludes the label when calculating node bounding boxes for the layout algorithm
  spacingFactor: undefined, // Applies a multiplicative factor (>0) to expand or compress the overall area that the nodes take up
  condense: false, // uses all available space on false, uses minimal space on true
  rows: undefined, // force num of rows in the grid
  cols: undefined, // force num of columns in the grid
  position: function( node ){}, // returns { row, col } for element
  sort: undefined, // a sorting function to order the nodes; e.g. function(a, b){ return a.data('weight') - b.data('weight') }
  animate: false, // whether to transition the node positions
  animationDuration: 500, // duration of animation in ms if enabled
  animationEasing: undefined, // easing of animation if enabled
  animateFilter: function ( node, i ){ return true; }, // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
  ready: undefined, // callback on layoutready
  stop: undefined, // callback on layoutstop
  transform: function (node, position ){ return position; } // transform a given node position. Useful for changing flow direction in discrete layouts
};

Obviously, position is not accepted in Python, since it accepts input that is a function mapping from a node object to a {row,col} object.
Possible Solution
Optionally accept dictionary input instead of a function on the Dash/Python side. On the react side, the function will simply look up the object's names (i.e. dictionary keys) and return the corresponding value.

Dash clientside callbacks accepts JS, so that should cover some scenarios. If you find a use-case that is not covered, feel free to reopen this.

Thank you for creating this issue. Could you please show the code how you would solve your example with the dash clientside callback?

@pbelmann @xhlulu  do either of you have an example of how I might use a clientside callback here as a workaround for the inability to use the embedded JS functions? I'm having trouble figuring it out from the dash documentation.

@ThomWorm Did you ever get this to work ? I can't seem to get it right.

did anyone ever come up with an example? I want to try this option on breadthfirst :
depthSort: undefined, // a sorting function to order nodes at equal depth. e.g. function(a, b){ return a.data('weight') - b.data('weight') }

seems like the way to do this is, write the JS function as a string in Python... on the JS side, this string would need passed into something like eval

Hi, I'm a bit late but I just wrote an answer on stackoverflow that shows how we can use a clientside callback to assign a JS function to a component property, it addresses the use case of @nmz787-intel but it should help others too. @pbelmann @ThomWorm @MoburgLeGrand
Is it possible to use the depthSort argument in breadthfirst layout in dash-cytoscape?


METRON-1012 Update Metron public web site for 0.4.0 release

Contributor Comments
Although 52 files were nominally involved, I really only changed two things:

replaced the 0.3.1 current-book with the new 0.4.0 site-book, via direct copy from the release image (that's 51 of the files!)
updated documentation/index.md to change 0.3.1 to 0.4.0 and get rid of vestigial uses of "incubator" and "incubating"

Pull Request Checklist
For all changes:

[x] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[x] Has your PR been rebased against the latest commit within the target branch (typically master)?

For code changes: NA
For documentation related changes:

[x] Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book? (Actually, in this case, the site.)

Yes, the web site was rendered via the instructions at https://cwiki.apache.org/confluence/display/METRON/Website+PR+Merge .  It seems okay, with the expected change in links to 0.4.0.
Requires Ruby version 2.2+

sudo gem install bundler
sudo gem install jekyll
From incubator-metron/site execute
bundle install
bundle exec jekyll serve
Navigate to http://localhost:4000 to review the site
This will create the static site in the target directory.

+1. I ran up the site and checked it over.  Good to see incubating finishing working its way out of everything.
Minor note, the instructions mention going to incubator-metron/site. Anybody who checked it out (or adjusted their dirs) post graduation should look at metron/site.

Are we still planning to keep the old versions of the book on the website, like under /0.3.1/ instead of /current-book/ ?  We previously discussed this here.

Hi @justinleet , thanks for looking at this.  I removed instances of "incubator" from Website+PR+Merge, and had already fixed other cwiki pages I came across.  Any other instances you noticed?
@JonZeolla , once published to dist/release/metron, all older versions remain available in http://archive.apache.org/dist/metron/ .  This includes the book-site for each version starting with 0.3.1.  So the old docs remain available.  (Interestingly, the incubator-metron archives didn't migrate, and are still at http://archive.apache.org/dist/incubator/metron/ .  But those older versions didn't have site-books included.)
I'd like to see a pull-down list of them (both old books and old releases) added to the public web site, but I'm probably not the right person to do that, since I have the web design skills of a cow.  Could you please open a new jira so we can address that outside of the release mechanics?

@mattf-horton To the best of my knowledge, this was the last pass that gets rid of the remaining incubator terminology.  Only things left are old news items and so on that are actually from or about incubation. Thanks for taking care of the wiki, too.  I hadn't looked at it enough for incubating stuff.

@mattf-horton Okay great, sounds good to me.  I did a quick search before opening a new JIRA and it looks like you've already addressed this in METRON-718.

+1

Hi @JonZeolla , you're quite right, I forgot I already opened METRON-718.
Are we okay to push this patch then?

I didn't review it, but I have no reason to hold it back.

Thanks, I'll proceed on @justinleet and @ottobackwards 's +1s.


Mercury Reader doesnt send articles to amazon account

Hi,
since one week sending articles with mercury doesnt work. I am checking sent articles on amazon acconunt but it isnt updated each time when I use mercury reader. I tried to check with sending article from my private email and it worked, so I assume there is issue with sending services. To forward your question - I enabled reciving emails from<EMAIL_ADDRESS>Please, help on that.
Best Regards,
Marcin

I'm guessing this is the issue mentioned at : https://blog.fivefilters.org/2021/01/24/amazon-send-to-kindle-changes.html (Amazon have tightened their security about 'send to kindle' and are checking that when you send a request claiming to be from<EMAIL_ADDRESS>you really are<EMAIL_ADDRESS>I'd guess the fix would be to change mercury reader to use a configurable email address (a different one for each user)?

I'm guessing this is the issue mentioned at : https://blog.fivefilters.org/2021/01/24/amazon-send-to-kindle-changes.html (Amazon have tightened their security about 'send to kindle' and are checking that when you send a request claiming to be from<EMAIL_ADDRESS>you really are<EMAIL_ADDRESS>I'd guess the fix would be to change mercury reader to use a configurable email address (a different one for each user)?

I too am having the same problems. It's very frustrating and annoying as I have numerous scientific papers I need to read every week an it was great being able to just send them to my Kindle to read later as opposed to being stick to my desktop browser for ages.
Anyone got any alternative ideas please? Thanks in anticipation.

I found new extention - It is "Send to Kindle" works the same as mercury app.

Thanks. I did try this but it seems to send only the link and not the whole article as PDF as Mercury Reader did.

Not as convenient as an extension, you can email a PDF file to your kindle. This has been available for a long time and has worked for me. https://www.amazon.com/gp/sendtokindle/email

Thanks angrycandy. I'll give this a try.

Hi
Sure, Send to Kindle does the job of sending PDFs to a Kindle, but Mercury Reader has the advantage of formatting web articles for easier reading and that feature becomes even more useful when you send one of those Mercury-Reader-formatted web articles to a Kindle: it is a much better Kindle reading experience than that same article saved as PDF with some other tool and then sent to a Kindle.
Hope Postlight will fix this issue.
Igor

  body {
font-family: Verdana;
font-size: 10pt;
font-weight: normal;
color: black;
background-color: white;
  }

Thanks IgorOriginal Message
From: IgorDiminich<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Date: 04/03/2021 14:13:13
Subject: Re: [postlight/mercury-parser] Mercury Reader doesnt send articles to amazon account (#605)
Hi
Sure, Send to Kindle does the job of sending PDFs to a Kindle, but Mercury Reader has the advantage of formatting web articles for easier reading and that feature becomes even more useful when you send one of those Mercury-Reader-formatted web articles to a Kindle: it is a much better Kindle reading experience than that same article saved as PDF with some other tool and then sent to a Kindle.
Hope Postlight will fix this issue.
Igor
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/postlight/mercury-parser/issues/605#issuecomment-790646580",
"url": "https://github.com/postlight/mercury-parser/issues/605#issuecomment-790646580",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]

This tool is working for me in the meantime: https://pushtokindle.fivefilters.org/


Document improvement: length_value

Prerequisites
Here are a few things you should provide to help me understand the issue:

nom version : 6.2.1

There are two arguments, but only the first one was listed.

I don't understand what you talk about.
Doc:

Gets a number from the first parser, takes a subslice of the input of that size, then applies the second parser on that subslice. If the second parser returns Incomplete, length_value will return an error. Source


Unprwedictable video recording orientation.

Regardless of phone orientation or app that open and forces phone to be horizontal or vertical orientation - need video to record on PC always horizontally. (Because this fancy rotating video is not working in 98% of video players and editors can't open it.)
This is my settings now scrcpy.exe --record %outputfile% -b50M --record-format=mp4 --max-fps=60 --no-audio-playback --lock-video-orientation --record-orientation=270
There's two problems.
Scenario 1 video app open that puts phone in forced horizontal orientation then i open ScrCpy
Video Records vertically
https://github.com/Genymobile/scrcpy/assets/143356096/20743b5a-e84c-4938-9b5a-87cd37bf8640
Scenario 2 no apps is open phone in horizontal orientation when i open ScrCpy
Video Records horizontally just as expected.
https://github.com/Genymobile/scrcpy/assets/143356096/bdb83c8b-a818-404b-9838-a3c0cb02e60d

--lock-video-orientation

Without parameter, the orientation is locked to the initial phone orientation.
What you want is probably --lock-video-orientation=270 (and remove --record-orientation=270 which is an additional rotation applied to the recording file).
https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#orientation

--lock-video-orientation=270 worked thank you


[Bug] Unable to connect to REST endpoints from client (browser) if save_accces_token cookie not stored

Hi all,
I'm programming a web application that connects to FamilySearch API via the javascript sdk. The connections are done through the client (browser).
For that I'm using the SDK version 2.4.5 through the CDN:
<script src="https://cdn.jsdelivr.net/familysearch-javascript-sdk/2.4.5/familysearch-javascript-sdk.min.js"></script>
I'm trying to hide the access token from the browser applying the property:
save_access_token: false to the FamilySearch client variable.
The problem I face whenever I do that is that I can't connect to the FamilySearch REST endpoints and I get a 401 unauthorized error. It seems that the test token is not being append after the query parameters.

Otherwise, if I set it to true, save_access_token: true I have no problem accessing the data.

I was trying to find the bug by myself but the plumbing http function seems to not be interacting with the cookie value at all. Pluminb.js.
accessTokenParam[accessTokenName] = self.settings.accessToken;
absoluteUrl = self.helpers.appendQueryParameters(absoluteUrl, accessTokenParam);
and I can't also find any problem with the storage of the access_token whether the save_access_token parameter is set or not.
Any idea of what could be happening? Let me know if I can help in any way!
Thanks,
Sergi.

I was trying to create an instance of the FamilySearch client on one page (storing it on the browser side) and trying to create it again on another page without calling again the API. Therefore, if the token was not available thorugh the cookie, the new instance was created without token.
Sorry for the inconvenience.


Add xsl snippet support

Added xml snippets by referring to https://github.com/emmetio/emmet/blob/master/lib/snippets.json
cc @sergeche

Removed the choose+ snippet from xsl.json

It’s better to keep removed snippet but under different name. choose is a simple and good choice for it

Done

Thanks! Published as v0.2.4


Senior officer vendor contents added (CMP, CMO, ASO, CE, QM, XO) and CE & QM given all comms.

About the PR

Changed QM and CE to have all comms.
Why / Balance

PARITY
Requirements

[x] I have read and I am following the Pull Request Guidelines. I understand that not doing so may get my pr closed at maintainer’s discretion
[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

fix: QM and CE now have all comms.
add: Senior Officer Vendors now have content for CMP, CMO, ASO, CE, QM, and XO.

Note that the hazard vest, engineering beret, and welderpack all do exist now.
Thinks thats the only todo's that are off tho

Wahoo! ASO has cooler comms now, and SO do the CE AND QM!! Yipee!! Amug add the vendor code PLEASE!!

You forgot to give the XO senior comms when giving the ASO senior comms

Ah, they get it in their vendor, i didn't realize they also finally made the xo spawn with it.


[Run][Plugins] Directory name logic

Microsoft PowerToys version
0.35.0
Running as admin

[ ] Yes

Area(s) with issue?
PowerToys Run
Steps to reproduce
Open program folder with run plugins.
✔ Expected Behavior
An logical system of folder names:
Microsoft.Plugin.Calculator
Microsoft.Plugin.Folder
Microsoft.Plugin.Indexer
Microsoft.Plugin.Program
Microsoft.Plugin.Shell
Microsoft.Plugin.Uri
Microsoft.Plugin.WindowWalker
Microsoft.Plugin.Registry
Microsoft.Plugin.Service
Microsoft.Plugin.System
Community.Plugin.VSCodeWorkspace

❌ Actual Behavior
Non-logical naming structure.

Other Software
No response

@enricogior
I think on folder name we should not have .PowerToys.Run to avoid names longer 256 characters.

This is fixed in 0.51.  Please head over to our releases and get the update!  https://aka.ms/installpowertoys


Add support for Monorepos &  enhanced package resolving fixes

Fixes #262

Would this make the package finally work with Nx? 🤩

Would this make the package finally work with Nx? 🤩

This Pull request fixes package resolving problems in monorepos. I have tested with yarn workspaces.  if you're having package resolving errors you should be good to go with Nx


Add Options section in README.md

The README has CBOR options repeated and it needs to be more concise.
Move the CBOR options mentioned in various sections (esp. Features, Usage) into a new Options section.
Maybe squeeze this today in before v2.1 is tagged while it's still fuzzing.

Closed by commit 289df8cd6d4d33db1e6e8d1dac747a49e9ef208f


Raspberry Pi B , Debian Jessie problem

RPi-Cam-Web-Interface does not work with Jessie on a RPi B.
The index.php is not started but the index.hmtl is. Apache 2 seems to have different
directory structure.
I did hear via an Email ( now unfortunately deleted) that incompatibility with Raspimjpeg (?)
could be a problem.
I would really like to see RPi-Cam-Web-Interface running on Debian Jessie
and hope that it will be updated soon.
Any chance?

Issue 133 had some pointers on Jessie back in July. There may be some other issues since then but try those first.

Forum message posted about this. Jessie doesn't work out of the box primarily due to Apache changes
I made it work by setting subdir to html in install to match Apache and giving www-data user bash rights in /etc/passwd. It also needs libav-tools installed.
Installer will need a bit of work to support these changes.

Isn't working on Jessie for me either, even with the changes you suggested. I installed it into "html" folder, installed libav-tools, changed /etc/passwd:
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin:/bin/bash
If I use raspistill, it takes pictures, so camera is working. But the web UI only showing "Loading", and the red led of the camera turned off.


imple eth_call for rpc

Ref #1612
add eth_call to rpc

Just saw that @mattsse already did this #1799.
Closing.


Website request - Make headers bolder/darker

I was using a combination of H2's and H3's in this post and the bold stands out more than the headers. Can we increase the font-weight on Header tags?
http://ncopenpass.com/?p=3999&preview=true

I would prefer not to use Elementor for blog posts. I think it's a barrier
to get people writing content unless there I'm just not missing out on the
advantage of it. I'm used to very simple WYSIWYG with simple, elegant
styles for writing. I don't think we need anything fancy for blog content.

http://ncopenpass.com/?p=3999&preview=true

Sorry about that, I did have an updated version to preview as you requested but when I switched it back to the WordPress editor, all of the styling was deleted.
I can only customize the style of the content with either custom CSS coding or with Elementor, otherwise you have the default styles from the theme. You don't have to create all blog posts with Elementor but if you want me to customize the style of a particular post, such as this one, then I need to switch to that.
It doesn't prevent authors from creating new posts with the WordPress editor, it just allows for customization such as this when you want it.

You can navigate to the post and click on the Edit with Elementor button in the middle of the screen to see a preview. If no changes, it's ready to publish.

I can also work on customizing the default theme styles by editing the code but this is much faster for me at the moment and I'm short on time.

I think customizing the theme for headers and URLs would be great. I played
around with this early on as the URLs were hard to read. I made them green,
but didn't put much thought into and to be honest, was flying by the seat
of my pants trying to figure out the theme CSS.


Add Infinity Scroll

Project title
Infinity scroll bar
Project Description
It's an infinity scrollbar
Stack:
And in order to tick the check box just put x inside them for example - [x] like this. Please delete options that are not relevant.

[x] Html
[x] CSS
[x] JavaScript

/assign


autocompletion command not found: compdef

Checks

[X] I have checked that this issue has not already been reported.

[X] I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example
On MacOS with zsh and pixi 0.20.0 follow instructions at https://pixi.sh/latest/#autocompletion to execute this:
echo 'eval "$(pixi completion --shell zsh)"' >> ~/.zshrc

Issue description
Opening a new terminal I see this error
(eval):2495: command not found: compdef

and auto completion doesn't work.
This might be the same as this old ticket: #338
Expected behavior
No error and auto completion working.

I experienced the same issue on a recent macOS with zsh, it seems plausible that it would suffice to add the two lines
autoload -Uz compinit
compinit

just before
compdef _pixi pixi

in the output of
eval "$(pixi completion --shell zsh)"

I added these two lines in ~/.zshrc just before  eval "$(pixi completion --shell zsh)" and it solved my issue.


fix boolean to str

https://github.com/metacloud/molecule/issues/134
and https://metacloud.jira.com/projects/ORBITAL/issues/ORBITAL-110
I deploy it at a openstack cluster in the SF lab see my gist
when I run "molecule test", i got the follow error:
(metamole) ZOCHAO-M-K06M:zohan zochao$ export -n  VAGRANT_OPENSTACK_LOG=debug
(metamole) ZOCHAO-M-K06M:zohan zochao$ molecule test
Bringing machine 'zohan-01' up with 'openstack' provider...
==> zohan-01: Finding flavor for server...
==> zohan-01: Finding image for server...
==> zohan-01: Finding network(s) for server...
==> zohan-01: Launching a server with the following settings...
==> zohan-01:  -- Tenant          : admin
==> zohan-01:  -- Name            : zohan-01
==> zohan-01:  -- Flavor          : m1.small
==> zohan-01:  -- FlavorRef       : 2
==> zohan-01:  -- Image           : ubuntu
==> zohan-01:  -- ImageRef        : befdf61f-9eb9-4304-aa09-6add8769bac9
==> zohan-01:  -- KeyPair         : omg_key2
==> zohan-01:  -- Network         : e895de35-30f7-4f38-8cb4-8aec7f9132b5
==> zohan-01: Waiting for the server to be built...
==> zohan-01: Waiting for SSH to become available...
ssh: connect to host <IP_ADDRESS> port 22: Connection refused
ssh: connect to host <IP_ADDRESS> port 22: Connection refused
ssh: connect to host <IP_ADDRESS> port 22: Connection refused
ssh: connect to host <IP_ADDRESS> port 22: Connection refused
ssh: connect to host <IP_ADDRESS> port 22: Connection refused
==> zohan-01: Waiting for SSH to become available...
ssh: connect to host <IP_ADDRESS> port 22: Connection refused
ssh: connect to host <IP_ADDRESS> port 22: Connection refused
ssh: connect to host <IP_ADDRESS> port 22: Connection refused
Connection to <IP_ADDRESS> closed.
==> zohan-01: The server is ready!
==> zohan-01: Rsyncing folder: /Users/zochao/metamole/ansible-systems/roles/zohan/ => /vagrant
==> zohan-01: Machine not provisioned because `--no-provision` is specified.
Traceback (most recent call last):
  File "/Users/zochao/.virtualenvs/metamole/bin/molecule", line 10, in <module>
    sys.exit(main())
  File "/Users/zochao/metamole/molecule/molecule/cli.py", line 66, in main
    CLI().main()
  File "/Users/zochao/metamole/molecule/molecule/cli.py", line 62, in main
    sys.exit(c.execute())
  File "/Users/zochao/metamole/molecule/molecule/commands.py", line 393, in execute
    c.execute()
  File "/Users/zochao/metamole/molecule/molecule/commands.py", line 224, in execute
    ansible = AnsiblePlaybook(self.molecule._config.config['ansible'])
  File "/Users/zochao/metamole/molecule/molecule/ansible_playbook.py", line 51, in __init__
    self.parse_arg(k, v)
  File "/Users/zochao/metamole/molecule/molecule/ansible_playbook.py", line 104, in parse_arg
    self.cli_pos.append('-' + value)
TypeError: cannot concatenate 'str' and 'bool' objects

since name = 'verbose' and value = True in this case.
also
  -v, --verbose         verbose mode (-vvv for more, -vvvv to enable
                        connection debugging)

I can see why this is confusing, since we default this value to False. The reason for that is so the underlying sh module doesn't pass verbose as a CLI argument to ansible-playbook.  We don't want to hardcode the value to always be vvvv because that remove the ability to pass different verbosity levels to ansible-playbook. Could you update your PR so that if someone passes in True, it uses max verbosity (vvvv) but also retains support to set the verbosity to v, vv, vvv, vvvv as originally intended?

after talking to @abrown-sg , i realize it was my molecule.yml  incorrectly as
ansible:
#   # by default this lives under molecule_dir and is generated by molecule during execution
#   config_file: ansible.cfg

  # playbook to execute during `molecule converge`
  playbook: playbook.yml
  sudo: True
  sudo_user: False
  verbose: True   <--- bad setting


API returns 500 status when it should return 404

$ curl -v localhost:9999/asdf
*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Connected to localhost (<IP_ADDRESS>) port 9999 (#0)
> GET /asdf HTTP/1.1
> Host: localhost:9999
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Cache-Control: public, max-age=3600
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Wed, 16 Jan 2019 22:33:02 GMT
< Content-Length: 26
<
500 Internal Server Error
* Connection #0 to host localhost left intact

I bisected this to 941e7526c0031449f257f2a8e738f4282c5accbc as the commit introducing the behavior.

looks like it's already there.
<!DOCTYPE html>  <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>InfluxDB 2.0</title> <link rel="shortcut icon" href="/favicon.fa749080.ico"> <link rel="stylesheet" href="/src.00d0671f.css">

just need to make sure, use make run

In my experimental PR https://github.com/influxdata/influxdb/pull/12136, I have some code that tries a few different ways to load swagger.yml from disk, so that when you build/run without the assets tag, you can still see the swagger document: https://github.com/influxdata/influxdb/pull/12136/files#diff-5be4ed50d519869debcaeafc89282711
I'd like to see that change get ported to master, independent of the swagger validation middleware. But we have more urgent priorities right now, so I can't say how soon that will happen.

This came up in some internal discussion today.

bump


G3000 Lighting adjustment INOP

Hi the adjustable G3000 backlighting with the Panel lighting POT on the overhead doesn't work for me, I don't think it ever has since the merge into your package. The standalone one from https://github.com/Uwajimaya/FS2020 worked fine for me in the past.

I've just updated to the latest version you released last night and the PFD adjustment is working but the MFD not.

Hi. The one you linked is the Uwa's light fix, not the dimmable G3000 from kaosfere. I'll have a look on the G3000 ajustable lights, thanks for reporting.

Fixed. 0.4.9b hotfix coming in a few minutes.


Emscripten: Override NO_FILESYSTEM=1

I'm getting this warning in my build: warning: unresolved symbol: $FS
This goes away if I comment out this line:
https://github.com/charto/nbind/blob/master/src/nbind.gypi#L35
Is there a better way to remove this or maybe it should be removed from src/nbind.gypi since it seems that Emscripten should remove it when needed:
http://kripken.github.io/emscripten-site/docs/optimizing/Optimizing-Code.html?highlight=no_filesystem#miscellaneous-code-size-tips

I'll try to release version 0.4.0 soon, where the .gypi file will be stored inside your project instead of under node_modules/nbind. This should make it easier to customize the options.


Add IsCharging API

To know if USB is attached

Would also be great to know if the battery is charging or fully charged. But i think this isnt possible because the NCHRG pin of the SLM6600 isn connected :/

hello
do you know how to get the battery level ?

hello
do you know how to get the battery level ?

Hi
uint32_t vol = M5.getBatteryVoltage();
float vol_f = vol / 1000.0f;
sprintf(buf, "%.2f V", vol_f);

Also if you want raw values from the ADC
#include "M5EPD.h"
#include "driver/gpio.h"
#include "driver/adc.h"
#define BAT_ADC_CHANNEL ADC1_GPIO35_CHANNEL
#define ADC_FILTER_SAMPLE 8
uint32_t M5EPD::getBatteryVoltage()
{
uint32_t adc_raw_value = 0;
for (uint16_t i = 0; i < ADC_FILTER_SAMPLE; i++)
{
adc_raw_value += adc1_get_raw(BAT_ADC_CHANNEL);
}
adc_raw_value = adc_raw_value / ADC_FILTER_SAMPLE;
uint32_t voltage = (uint32_t)(esp_adc_cal_raw_to_voltage(adc_raw_value, _adc_chars) / SCALE);
return voltage;

}

hello thanks i have the error : SCALE' was not declared in this scope

Also if you want raw values from the ADC
#include "M5EPD.h"
#include "driver/gpio.h"
#include "driver/adc.h"
#define BAT_ADC_CHANNEL ADC1_GPIO35_CHANNEL
#define ADC_FILTER_SAMPLE 8
uint32_t M5EPD::getBatteryVoltage()
{
uint32_t adc_raw_value = 0;
for (uint16_t i = 0; i < ADC_FILTER_SAMPLE; i++)
{
adc_raw_value += adc1_get_raw(BAT_ADC_CHANNEL);
}
adc_raw_value = adc_raw_value / ADC_FILTER_SAMPLE;
uint32_t voltage = (uint32_t)(esp_adc_cal_raw_to_voltage(adc_raw_value, _adc_chars) / SCALE);
return voltage;

}

hello thanks i have the error : SCALE' was not declared in this scope

uint32_t vol = M5.getBatteryVoltage();
float vol_f = vol / 1000.0f;
sprintf(buf, "%.2f V", vol_f);

hello the value returned is : 4.22
is it the battery level ? : 4.22% / 100%

uint32_t vol = M5.getBatteryVoltage();
float vol_f = vol / 1000.0f;
sprintf(buf, "%.2f V", vol_f);

hello the value returned is : 4.22
is it the battery level ? : 4.22% / 100%

@openmotion as the method name suggests, that's the battery VOLTAGE. You need to calculate the percentage yourself, based on the maximum and minimum usable voltages of this battery (this is a LiPo cell, so it would be ~3.2V for minimum, ~4.2V for maximum - yes, I know the official documents and even the sticker on the back says 4.35V, however the charger circuit cuts off when it reaches approx. 4.25V while charging, which translates to around 4.15-4.18V while in use). So you can calculate that 4.22V is approximately:
4.25V - 3.2V = 1.05V // This is the range of the percentages, 3.2V being 0%, 4.25V being 100%
4.22V - 3.2V = 1.02V // This is the current voltage on the range
percentage = (1.02V / 1.05V) * 100
percentage = ~97%

@openmotion as the method name suggests, that's the battery VOLTAGE. You need to calculate the percentage yourself, based on the maximum and minimum usable voltages of this battery (this is a LiPo cell, so it would be ~3.2V for minimum, ~4.2V for maximum - yes, I know the official documents and even the sticker on the back says 4.35V, however the charger circuit cuts off when it reaches approx. 4.25V while charging, which translates to around 4.15-4.18V while in use). So you can calculate that 4.22V is approximately:
4.25V - 3.2V = 1.05V // This is the range of the percentages, 3.2V being 0%, 4.25V being 100%
4.22V - 3.2V = 1.02V // This is the current voltage on the range
percentage = (1.02V / 1.05V) * 100
percentage = ~97%

ok is it the right code ?
` uint32_t vol = M5.getBatteryVoltage();
float vol_f = vol / 1000.0f;
float xx = vol_f - 3.2;
float percentage = (xx / 1.05) * 100;
Serial.print("[HTTP] getBatteryVoltage "+String(vol_f)+" \n");
Serial.print("[HTTP] percentage "+String(percentage)+" \n");`

ok is it the right code ?
` uint32_t vol = M5.getBatteryVoltage();
float vol_f = vol / 1000.0f;
float xx = vol_f - 3.2;
float percentage = (xx / 1.05) * 100;
Serial.print("[HTTP] getBatteryVoltage "+String(vol_f)+" \n");
Serial.print("[HTTP] percentage "+String(percentage)+" \n");`


[FLINK-9601][state]Try to reuse the snapshotData array as the partitioned destination only when its capacity is enough

What is the purpose of the change
In CopyOnWriteStateTableSnapshot, we only reuse the snapshotData as the partitioned destination array when it's capacity enough is enough.
Brief change log

Try to reuse the snapshotData array as the partitioned destination on when it's capacity is enough.

Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes)
The S3 file system connector: (no)

Documentation
No

Thanks for the contribution. I think the general idea is good, but I think the implementation can be improved. How about changing CopyOnWriteStateTable::snapshotTableArrays() in such ways that the returned snapshot array is already created with a size of max(whateverTheCurrentCodeDoes, size()). This prevents that we ever have to create another array, in particular in this corner case where we are dealing with huge arrays. Then the remaining code should automagically work without further changes. Adding some nice comment might help that our optimized snapshotting algorithm assumes that the array can hold the flattened entries. What do you think?

@StefanRRichter Thanks for the review, I think that makes a lot of sense, will change it according to your suggestion.

LGTM now 👍 Will merge.


Default networking setup created when creating a new environment can be surfaced in the Admin UI

Is your idea related to a problem? Please describe.
when a new environment is created, it creates a VPC with 3 public and 3 private subnets in the target account. These network constructs are not surfaced in the UI and as such Admins and Users might not have visibility into existing network resources they can use for things like creating a Notebook.
Describe the solution you'd like
Under Admin > Environments > {SPECIFIC_ENV} > Environments tab
the VPC and subnets should be surfaced automatically as Environment VPC

Hi @awskaran, I understand your confusion, maybe we can do a better work at simplifying the Environment tabs.

data.all Environment creates VPC infrastructure as part of the creation of ML Studio domain. It is visible in the ML Studio Domain tab

Notebooks are not necessarily related to ML Studio Domain, the VPC for ML Studio might not be used by Notebooks. For VPCs that can be used for Notebooks we have the Networks tab, where we can add VPC details that can later be used in the creation of Notebooks.  It does not create VPCs, it only registers its metadata.

Here are some ideas that could prevent the confusion. Let me know which ones sound interesting:

rename "Networks" tab to "Notebooks"
if data.all creates or uses a VPC for MLStudio, add it automatically to "Networks"/"Notebooks"

I think the second point looks more promising from end user perspective if data.all creates or uses a VPC for MLStudio, add it automatically to "Networks"/"Notebooks"
I would like to use the already created VPC. Although I have concern that the VPC CIDR by default is /16 and the private subnet cidr is /24 so the address space is small in private subnet which is most likely to be used for notebook creation
can we change the subnet mask as well for the private subnet as part of this change or should that be a different issue?

Hi @awskaran, I think we could increase the CIDR range of the subnets created for the VPC, maybe instead of /24 we could have /20. I am concerned for the backwards compatibility of this feature. We need to test how is the VPC affected in IaC with this changes and if it affects the ML Studio domain. We can start by adding the VPC to the registered networks and then see if we can edit the VPC.

This issue will be closing soon as it has been stale for a long time


Added Intros to REST API pages

Why:
Closes #6977

What's being changed:

Intro added for the following API pages,

"Projects"
"Pulls"
"Rate limit"
"Reactions"
"Repositories"

Check off the following:

[x] I have reviewed my changes in staging (look for the latest deployment event in your pull request's timeline, then click View deployment).
[x] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[ ] This pull request impacts the contribution experience

[ ] I have added the 'writer impact' label
[ ] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

Thanks for opening another PR @codewithdev 🎉 I'll get this triaged for review!


Cannot install git - Perl packages generate errors that each file already "exists in filesystem"

I am trying to install git so that I can clone the gtkmm sources and rebuild my own DLLs, until the packages are updated for GCC 6.1, as currently I get the error that DllMain is not found in libgtkmm and libgdkmm DLLs
however when I try to install msys2/git I am blocked by all of the errors in the attached txt file. Apparently the dependency Perl packages are trying to overwrite files that already exist, and Pacman will not let them.
I don't care if files are overwritten, as long as Perl does what it needs to do in the background. So is there a way to force the installation to continue? Or does this indicate something else broken about my installation?
thanks
git.txt

Seems you have broken installation or you have installed this files yourself in system.
Pass "--force" to pacman to solve this

Thank you! I didn't know about --force. It's installed now :-)


Add a package.json file

package.json file will allow classList.js repo to be installed via NPM
(even if it is not published on the NPM registry - via its GitHub URL).
This does not change any aspect of classList.js but will just ease its
usage.

I wonder if NPM will have issues with classList mixedCase file name; I know Bower had in the past?

If you meant package name, yes it has.

New packages must not have uppercase letters in the name.

https://docs.npmjs.com/files/package.json

:+1:

And please consider to change the package name mdn-classlist.js ;)

Yes, could you please see about getting this PR merged? I keep wanting to install this pollyfill from npm but also forget it does not have a package file. :)

The current version of classList.js is not 1.0.0, it's 1.1.20150312.
@le717 @phueper @sroucheray @tomByrer: I don't use this repo for package manager syndication. Package maintainers (that can be you) can maintain packages for their preferred package managers. I only use GitHub for git. Btw, git has a built-in dependency tool called submodules. You could try using that instead if you are unwilling to maintain a few lines of metadata for whatever your preferred package manager is.
Here's one entry already on npm.
@W0nderMuffin Why? I'm not a Mozilla employee, and I was not hired to write this for MDN.

My desire was to simply npm to install this straight from GitHub as part of my dependencies:
classlist": "github:eligrey/classless.js"
I wasn't really asking for it to be on npm, just be able to install it from here. I do know about submodules but I did not want to use them in my (admittedly simple) project. As for the version on npm, last I checked I think it was out of date (that may have changed now).
I can understand your decision for not wanting to add such a file, but considering how often your pollyfill is referenced and used, such a file just in the repo, doesn't matter if it's on npm or not, cloud be a very advantageous thing for many developers.

Alright, since it's popular and won't be a big deal, you guys can add this file, but please submit a pullreq with the correct version (1.1.20150312) and license (public domain dedication).

@sroucheray now you can merge and do a new pullreq ;)

I merged and created a new PR #47


Search with thumbnails

Since the new search endpoints return a SkyfishMediaItem which has exactly the same properties as the SkyfishVideo model I've removed the old model, kept the new and changed the GetVideo endpoint to just be for getting the embed url instead (that is also where all the weird logic was anyways).
So this works together with the changes pushed to https://github.com/skybrud/Skybrud.VideoPicker.Skyfish/pull/1, and now works more like an integration package that has methods for specific functionality instead of combining a bunch of calls to return a full video object in the end.

Since the changes in this PR is a bit urgent for a client project, we're merging the PR now, and then making the implementation a bit prettier later.


Fix addmonths in javascript

Javascript AddMonths needs special "if last day" logic to match oracle/postgres
Have java and javascript return null if the number of months to add is null to match the DB (Behavior Change, but in a hook).
Remove ignoring addMonths from postgres in tests

Closing and opening a new one with only signed commits.


Add Project Random Color Generator

Is your feature request related to a problem? Please describe.
This Feature Request is to add a new Project
Describe the solution you'd like
https://jainaayush01.github.io/Random-Color-Generator/

I would love to work on this issue


Add three new buyer domains

For this pivotal story - https://www.pivotaltracker.com/story/show/140564251
co-ownership.org
metropolitan.org.uk
sibni.org

:+1:


Update rotate-always-encrypted-keys-using-powershell.md

Add missing link.

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

@kevinAlbs - thanks for the edit!
#sign-off


Fix: replace single qoutes with double qoutes in modifiedCode

Hey,
this fixes issue #395
In monorepos (especially in Nx dev tools) when specifying custom path with process.env.NEXT_TRANSLATE_PATH, the error comes in:

As @creativej guessed in the issue, the error is indeed related to templateWithHoc
The following line replaced modifiedCode wrongly:
template.replace(tokenToReplace, `\n${modifiedCode}\n`)

The problem is that modifiedCode contains single qoutes and exactly this caused the error on the screenshot. template.replace(...) eventually inserted modifiedCode in two different places inside template.
I just replaced single qoutes in modifiedCode with double qoutes. After that template is correctly replaced :)

@aralroca If all is good and merged afterwads, please consider releasing this. Thanks!

Thanks for that fix @shelooks16 🙏, I pre-released under 1.0.4-canary.2. If you confirm that it works well, then I'm going to released!

@aralroca Thanks!
Just tried out 1.0.4-canary.2 in a NX monorepo. Next.js app with 150+ translated files runs without any error :)
Next.js version 10.0.7


Why not use set_timeouts(connect_timeout, send_timeout, read_timeout) of lua-resty-redis?

Hello,
I see we using set_timeout() for resty-redis-cluster.
However, in lua-resty-redis 'https://github.com/openresty/lua-resty-redis#set_timeout', It suggests that we use set_timeouts.
Could you tell me your think?
Thanks.

I had issues getting set_timeout to work as described in #56

Thanks for your tell me, I will keep watching the issue.

This is now implemented as part of https://github.com/steve0511/resty-redis-cluster/pull/65

Very good, I'm going to use the implemented code in my project. Thanks.


Fix identation error on ScaledObject definition

The authenticationRef parameter was wrongly configured as a child of metadata and causing the following error: error validating data: ValidationError(ScaledObject.spec.triggers[0].metadata.authenticationRef): invalid type for sh.keda.v1alpha1.ScaledObject.spec.triggers.metadata: got "map", expected "string"; if you choose to ignore these errors, turn validation off with --validate=false.
This new identation should fix the problem.
Signed-off-by: AJPG<EMAIL_ADDRESS>
Provide a description of what has been changed
Checklist

[ ] Commits are signed with Developer Certificate of Origin (DCO)

Fixes #

No problem, bro. Just did it :)

Thanks, in the same PR would be enough, but I'll merge both. Thanks! 🙇

Sorry about that @JorTurFer. I was multitasking and ended up doing things on auto.


Slow on Ventura

Type: Bug
Update Mac to Ventura and now it takes like 5 seconds to save and format a file.
Extension version: 2.4.0
VS Code version: Code 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:34:59.000Z)
OS version: Darwin x64 22.3.0
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz (8 x 2000)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
7, 6, 7

Memory (System)
16.00GB (2.57GB free)

Process Argv
--crash-reporter-id 23cab153-4228-4a1b-84fa-9946da950558

Screen Reader
no

VM
0%

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
pyindex848:30662994
nodejswelcome1:30587005
3biah626:30602489
pyind779cf:30662993
f6dab269:30613381
pythonsymbol12:30657548
showlangstatbar:30664136
vsccsb:30662443

same issue for me, this extension is causing vs-code to freeze rather often in the last few months.

Could one of you enable tracing options to see what is happening using
	"eslint.trace.server": "messages",
	"eslint.debug": true,

and provide the output of the ESLint channel here. Thanks!

Where exactly could I collect that debug output?

In the ESLint output channel.

[Info  - 10:22:19] ESLint server is starting.
[Trace - 10:22:19] Sending request 'initialize - (0)'.
[Trace - 10:22:20] Received notification 'window/logMessage'.
[Info  - 10:22:20] ESLint server running in node v16.14.2
[Trace - 10:22:21] Received notification '$/progress'.
[Trace - 10:22:21] Received notification '$/progress'.
[Trace - 10:22:21] Received response 'initialize - (0)' in 1563ms.
[Info  - 10:22:21] ESLint server is running.
[Trace - 10:22:21] Sending notification 'initialized'.
[Trace - 10:22:21] Sending notification 'textDocument/didOpen'.
[Trace - 10:22:21] Received request 'client/registerCapability - (0)'.
[Trace - 10:22:21] Sending response 'client/registerCapability - (0)'. Processing request took 0ms
[Trace - 10:22:21] Received request 'client/registerCapability - (1)'.
[Trace - 10:22:21] Sending response 'client/registerCapability - (1)'. Processing request took 0ms
[Trace - 10:22:21] Received request 'workspace/configuration - (2)'.
[Trace - 10:22:21] Sending response 'workspace/configuration - (2)'. Processing request took 53ms
[Trace - 10:22:21] 'npm config get prefix' value is: /Users/user/.fnm/node-versions/v18.13.0/installation
[Trace - 10:22:21] NODE_PATH value is: /Users/user/.fnm/node-versions/v18.13.0/installation/lib/node_modules
[Trace - 10:22:22] Received notification 'window/logMessage'.

Here you go, the trace is directly after running 'yarn'.

Here you go

@trm217 I looked at the last 100 linter runs in the trace and none of them took a considerable amount of time (e.g.  they are all in the ms).
I also added a performance alert support in 2.4.0. As soon as the extension gets slow during validate or save it will notify you in the language status and the output channel. None of those message appear in the output.
Did you see a dialog that ESLint blocks the save?

@dbaeumer I believe it was a false alert, seems git-lens causes the issues on my side.

@trm217 thanks for getting back.
@AlfredOdling do you have any additional insights.

@dbaeumer We're experiencing the same problems in our team. However, I'm only using the server and I use it from neovim so I'm not 100% sure how to apply the settings you want.
I see the eslint/status messages:
e.g.:
{  jsonrpc = "2.0",  method = "eslint/status",  params = {    state = 1,    uri = "...",    validationTime = 12830  }}

and $/logTrace
{  message = "Computing all fixes took: 3192 ms."}

But I don't see how I should be enabling the debug logging to get something like https://github.com/microsoft/vscode-eslint/issues/1609#issuecomment-1441814920
I'll ask in my team if they can try to follow these steps

I’m getting inconsistent results.
Startup
[Info  - 15:55:25] ESLint server is starting.
[Trace - 15:55:25] Sending request 'initialize - (0)'.
[Trace - 15:55:25] Received notification 'window/logMessage'.
[Info  - 15:55:25] ESLint server running in node v16.17.1
[Trace - 15:55:25] Received notification '$/progress'.
[Trace - 15:55:25] Received notification '$/progress'.
[Trace - 15:55:25] Received response 'initialize - (0)' in 102ms.
[Info  - 15:55:25] ESLint server is running.
[Trace - 15:55:25] Sending notification 'initialized'.
[Trace - 15:55:25] Sending notification 'textDocument/didOpen'.
[Trace - 15:55:25] Received request 'client/registerCapability - (0)'.
[Trace - 15:55:25] Sending response 'client/registerCapability - (0)'. Processing request took 0ms
[Trace - 15:55:25] Received request 'client/registerCapability - (1)'.
[Trace - 15:55:25] Sending response 'client/registerCapability - (1)'. Processing request took 0ms
[Trace - 15:55:25] Received request 'workspace/configuration - (2)'.
[Trace - 15:55:25] Sending response 'workspace/configuration - (2)'. Processing request took 0ms
[Trace - 15:55:26] NODE_PATH value is: /Users/bartlens/.config/yarn/global/node_modules
Uncaught exception received.
Error: spawn /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:506:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
[Trace - 15:55:26] Received notification 'window/logMessage'.
[Info  - 15:55:26] ESLint library loaded from: /Users/bartlens/Documents/GitHub.nosync/collab-and-tooling/node_modules/eslint/lib/api.js
[Trace - 15:55:26] Received request 'client/registerCapability - (3)'.
[Trace - 15:55:26] Sending response 'client/registerCapability - (3)'. Processing request took 0ms

Save
A couple of file saves on a 981-line file: between 178 and 3644ms
[Trace - 15:55:44] Sending notification 'textDocument/didClose'.
[Trace - 15:56:01] Sending notification 'textDocument/didChange'.
[Trace - 15:56:02] Sending request 'textDocument/codeAction - (1)'.
[Trace - 15:56:03] Received notification 'textDocument/publishDiagnostics'.
[Trace - 15:56:03] Received notification 'eslint/status'.
[Trace - 15:56:05] Computing all fixes took: 1913 ms.
[Trace - 15:56:05] Received response 'textDocument/codeAction - (1)' in 3644ms.
[Trace - 15:56:05] Sending notification 'textDocument/didChange'.
[Trace - 15:56:05] Sending request 'textDocument/formatting - (2)'.
[Trace - 15:56:06] Received notification 'textDocument/publishDiagnostics'.
[Trace - 15:56:06] Received notification 'eslint/status'.
[Trace - 15:56:06] Computing all fixes took: 189 ms.
[Trace - 15:56:06] Received response 'textDocument/formatting - (2)' in 370ms.
[Trace - 15:56:06] Sending notification 'textDocument/didSave'.
[Trace - 15:56:09] Sending notification 'textDocument/didChange'.
[Trace - 15:56:10] Sending request 'textDocument/codeAction - (3)'.
[Trace - 15:56:11] Received notification 'textDocument/publishDiagnostics'.
[Trace - 15:56:11] Received notification 'eslint/status'.
[Trace - 15:56:12] Computing all fixes took: 1378 ms.
[Trace - 15:56:12] Received response 'textDocument/codeAction - (3)' in 2590ms.
[Trace - 15:56:12] Sending notification 'textDocument/didChange'.
[Trace - 15:56:12] Sending request 'textDocument/formatting - (4)'.
[Trace - 15:56:12] Received notification 'textDocument/publishDiagnostics'.
[Trace - 15:56:12] Received notification 'eslint/status'.
[Trace - 15:56:13] Computing all fixes took: 178 ms.
[Trace - 15:56:13] Received response 'textDocument/formatting - (4)' in 318ms.
[Trace - 15:56:13] Sending notification 'textDocument/didSave'.

Also having slow saves
Extension version: v2.4.2
Version: 1.79.2 (Universal)
Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06
Date: 2023-06-14T08:58:52.392Z (4 wks ago)
Electron: 22.5.7
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 22.4.0
Mac OS 13.3.1 (22E261)
Debug logs: https://gist.github.com/vvnkr/f40063096372bbfe142b83ee57bfc47d

@lensbart I looked at the Gist and the variation is caused by ESLint itself. There is actually nothing I can do about that. There are some tips here how to speed things up: https://github.com/microsoft/vscode-eslint/issues/1344

@vvnkr the same is basically true for you. All the slow linting happens in ESLint itself. See for example
eslint:cli-engine Linting complete in: 26829ms

You might also want to look at the tips in https://github.com/microsoft/vscode-eslint/issues/1344 to see if some addition settings can speed things up.

I will close the issue since there is nothing the extension can do about a slow ESLint rule beyond of letting the user know about it.


Adding sklearn decision tree classifier to shap TreeExplainer (+test)

Adding sklearn decision tree classifier to shap TreeExplainer (+test)

Thanks! Particularly for including a unit test as well :)


How to close the client?

Is there any way to close the client session. this is important if I need to reauthenticate with a different mailbox whilst the client session is live.

Don't worry. Seems to be working fine.

Ok thanks.


[WIP] Fetch Logs infrastructure

Help for #1653
Adds Pod Logs Infrastructure
https://github.com/opendatahub-io/odh-dashboard/assets/8126518/5dbc2bb5-0df3-4288-8a7b-b6273fc0f47b

/lgtm

@manaswinidas removed my UI code... let me know if you're still good with this.
/approve

Going to reapply Das' approval -- it'll be nice for her to have the code for tomorrow, her timezone.


Training tesseract 4.0 for chinese in windows

   lstmtraining --traineddata chi_sim.traineddata --net_spec '[1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c111]' --model_output chi --learning_rate 20e-4 --train_listfile chi_sim.training_files.txt --eval_listfile chi_sim.training_files.txt --max_iterations 5000
I am getting the following error when using the above code
Warning: given outputs 111 not equal to unicharset of 224. Num outputs,weights in Series:   1,36,0,1:1, 0 Num outputs,weights in Series:   C3,3:9, 0   Ft16:16, 160 Total weights = 160   [C3,3Ft16]:16, 160   Mp3,3:16, 0   Lfys48:48, 12480   Lfx96:96, 55680   Lrx96:96, 74112   Lfx256:256, 361472   Fc224:224, 57568 Total weights = 561472 Built network:[1,36,0,1[C3,3Ft16]Mp3,3Lfys48Lfx96Lrx96Lfx256Fc224] from request [1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c111] Training parameters:   Debug interval = 0, weights = 0.1, learning rate = 0.002, momentum=0.5 null char=223 Deserialize header failed: ∩╗┐ Load of page 0 failed! Load of images failed!! Deserialize header failed: E:/chinese.simsun.exp0.lstmF
I have specified the lstmf path in chi_sim.training_files.txt Is there anything elese i need to add? Please help me

Deserialize header failed: ∩╗┐ Load of page 0 failed! Load of images failed!! Deserialize header failed: E:/chinese.simsun.exp0.lstmF

Seems to me the filename extension is incorrect. Should be . lstmf

@Shreeshrii I encounter the same problem ：
Loaded file jpn.lstm, unpacking...
Warning: LSTMTrainer deserialized an LSTMRecognizer!
Continuing from jpn.lstm
Deserialize header failed: D:/new_6/text.font.exp0.lstmf
Load of page 0 failed!
Load of images failed!!

@zthdsb The problem is because of Windows EOL in the file which has a list of .lstmf files.


Add MAGICC variables

As MAGICC becomes more integrated into a number of projects I figured it might be a good idea to add all MAGICC variables to this repo.

FWIW, I think it might even be preferable to keep these variables in a separate repo directly attached to the climate-processing workflows - this way, the output of climate-processing is "together" with the expected variables. For validation, the variables could still be imported to a project-workflow repo (if necessary).

@danielhuppmann, I like the idea. We could and probably should encourage this for all future post-processing steps. Each step should come with it's own set of defined output variables.

Okay sounds good, just let me know if/when you need anything from me.


zkvm: serialize Tx object

Implements serialization of Tx object. Closes #131 .

Seems correct 👍 , just left a few nitpicks.


New plush scientist toy

I made this PR to study how PR is done. In general, I would like plush dolls for all departments of the station. But I think I'll leave this opportunity for other users who, like me, want to try how this whole process works.
There is a new scientist doll that you can find in the lockers of scientists with a small chance.
:cl:

add: Nanotrasen is releasing a new plush figure of departments to reduce the number of conflicts between departments.
-->

bro just want to add himself in game 💀💀💀

no. That first sci plush i found on my hard drive. I can add more variants of this plush. different colors and shapes

I think it's worth reworking it.

I also didn't add this doll to the box with these toys. These dolls could only be obtained from scientists.

Should be something that can appear out of artifacts when they make junk.

Yea! This should be the source from where they can be obtained

Also address the test failure

Oh sorry forgot

add: Nanotrasen is releasing a new plush figure of departments to reduce the number of conflicts between departments. In order to save money on plush toys, the contents of the box with plush toys are accidental.

We discourage using "In character" speak for changelogs. And make these 2 different change logs
Also you are saying "Nanotrasen is releasing a new plush figure of departments" yet this adds just one department

I changed it.

Atmos and nukie job plushes gets a purple friend

I don't understand what's wrong here. Why are some checks not successful

Check the details. YAML linter is complaining about line 10 of the fills file. Your indentation isn't right - it needs to line up with the line above it.

Check the details. YAML linter is complaining about line 10 of the fills file. Your indentation isn't right - it needs to line up with the line above it.

that help. Thanks!

I would suggest replacing ‘accidental’ with ‘randomized’ in the changelog.

I think, maybe, I'll try... to do a robotist version of it, with robotist drip, a fire painted welding mask and the robotist's privilege of having a circular saw. just tell me, what do we use to make ss14's sprites ?

what do we use to make ss14's sprites
Just search for any pixel art creation program. I usually use piskel as its free and on the web. Aseprite is paid but good. You can probably get away with paint,net

I think, maybe, I'll try... to do a robotist version of it, with robotist drip, a fire painted welding mask and the robotist's privilege of having a circular saw. just tell me, what do we use to make ss14's sprites ?

That must be good. I can also add your toy in that PR. You will of course be mentioned as a co-author.

I think, maybe, I'll try... to do a robotist version of it, with robotist drip, a fire painted welding mask and the robotist's privilege of having a circular saw. just tell me, what do we use to make ss14's sprites ?

That must be good. I can also add your toy in that PR. You will of course be mentioned as a co-author.

Well i can't right now si i'll do it this week end.

'll do it this week end.

This is a small problem. Only my grandchildren will see how this PR merged

is this good ?

hud version

hud version

that version better

or i made that myself

Tell me it's not a plush of your static.

your static? Sorry but i don't know what it mean. Maybe you mean that this is my character.  It seemed to me that this one would be best suited as a scientist.

I am already resprite it

it turns out that I had to click the "request review" button. I'm sitting here and I don't understand why everyone forgot about this PR. Why am I like this...

Closed due to feature freeze May 10th-June 14th. Comment to have it reopen after this.


rosbaz play crashes if start time lies outside available range

Behavior is different from plain rosbag which just silently exits returning 0
rosbaz play -s 10.1 -u 0.5 <bag_only_10_seconds_long>
rosbaz/app/terminal/progress_bar.cpp:28: terminal::ProgressBar::ProgressBar(int, int, int): Assertion `max_steps > 0' failed

Fixed by #46


Deletion of ResultContext

Description
Like discussed in #315, we would like to remove the ResultContext type and its related declarations.
Dependencies
This issue is blocked by the following ones:

[x] #269

Checklist

[ ] Remove the hidden ResultContext type and update the public API binaries.
[ ] Remove each hidden declaration related to the ResultContext type and update the public API binaries.
[ ] Update the Unreleased section in changelog.

We are not ready to implement this change.


ilu0 returns wrong results for sparse matrix solve

Thanks for the great package, this is a very useful tool!
I am having issues using the factorization for some matrices. I tried using the ilu0 factorization on a small matrix 10x10 with good condition number.  The result is very different from what I obtain with the base \ operator. I have attached an example below:
using Random
Random.seed!(0)

n = 10
B = sprand(n,n,1.0) # works
B = sprand(n,n,0.9) # doesn't work
cond(Matrix(B))
lu_factorization = ilu0(B)
x0 = zeros(n)
r = rand(n)
ldiv!(x0, lu_factorization, r)
norm(B * x0 - r, Inf)
x1 = B \ r
norm(B * x1 - r, Inf)
norm(x0 - x1, Inf)

Interestingly when all the entries in the matrix are filled the results is correct.
I am not sure if I am missing something here, can you help me sort this issue out?
Thanks for your help!
Simon

Thanks for reporting this! This is actually the behavior we'd expect.
From Wikipedia (emphasis mine):

An incomplete factorization instead seeks triangular matrices $L$, $U$ such that $A\approx LU$ rather than $A=LU$. Solving for $LUx=b$ can be done quickly but does not yield the exact solution to $Ax=b$. So, we instead use the matrix $M=LU$ as a preconditioner in another iterative solution algorithm such as the conjugate gradient method or GMRES.

With that in mind, try using the factorization in an iterative solver like my ConjugateGradients.jl package:
using Random
using SparseArrays
using LinearAlgebra
using ILUZero
using ConjugateGradients

Random.seed!(0)
n = 10
B = sprand(n,n,0.9)
cond(Matrix(B))
lu_factorization = ilu0(B)
r = rand(n)
x0, exit_code, num_iters = bicgstab((x,y) -> mul!(x,B,y), r; precon = (x,y) -> ldiv!(x,lu_factorization,y))
norm(B * x0 - r, Inf)
x1 = B \ r
norm(B * x1 - r, Inf)
norm(x0 - x1, Inf)

We get good solutions. To see the preconditioner at work, try again without using ILUZero.jl as a preconditioner:
x2, exit_code, num_iters = bicgstab((x,y) -> mul!(x,B,y), r)

You should see that it takes more iterations to achieve a similar result without the preconditioner.
I'm going to close this issue, but feel free to comment back if you have any questions or if I've totally missed the mark on my reply. This stuff is complicated and I wouldn't be surprised if that's the case!

Thanks for the detailed answer! this makes a lot of sense, thanks for the pointer I'll try combining it with ConjuguateGradients.jl


parse authorization header into auth steps

This would (for now only) parse the Bearer token in the authorization header into the Req.Steps.auth mechanic. But honestly, the more i think about it, the more i think, this isn't necessary, because it's already a header and all the Req.Step does is put it in the header again.
But i wanted to see, how you think about it. Feel free to close the PR if this is not needed.

I think it makes sense to stick close to the canonical way of doing things, and Req does encourage using the provided steps to build your requests.
So I am in favour of this PR.