Reuse entry lists in AppendRequest

Currently, each AppendRequest sent by the leader requires the allocation of a new ArrayList in which to send entries. But since AppendRequest is itself pooled and reference counted, the entries list should be as well.

6ba1f3f7655ac4e43b2eed97fb6bf2c651c5300f


A few change

Harshita also add a check in the init function if file does not exists then create a new file.

Done. I have done the work no need to do.


fix: Make unit testing work again by updating the polyfill for Phanto…

…mJS. Update the demo server port to align with component-archetype. Clean up the demo page.

@wyseguyonline

I can verify, Linux with node 5.0/npm 3.3.6,
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (Linux 0.0.0)]: Connected on socket jzTxvE02YPNzKfl6yO3T with id 35461229
PhantomJS 1.9.8 (Linux 0.0.0) ERROR
  Script error.

npm ERR! Test failed.  See above for more details.

and in this branch
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (Linux 0.0.0)]: Connected on socket 5-kd0BsekLQcHZFfyXco with id 80168274
PhantomJS 1.9.8 (Linux 0.0.0): Executed 12 of 12 SUCCESS (0.041 secs / 0.011 secs)

Make sure to do an npm install!


[Question][Table] Unable to auto-align tables

This is a very bad user experience. When changing content, there is no way to auto-align the borders of the elements, resulting in too much wasted time and no output.

### Tasks

I love these features when I create tables.

¹ 😍

² 😍

I love these features when I create tables.
¹ 😍

² 😍

I have tried this, but it seems doesn't work in this situation.

Hey @QuakeWang when you're in the grid mode, snapping to objects is disabled. This is by design, because we want grid mode to take a higher priority.
You could use the align functions as suggested by @editfund-founder or you could turn grid mode first and then turn on "snap to objects" to align the objects together.

Hey @QuakeWang when you're in the grid mode, snapping to objects is disabled. This is by design, because we want grid mode to take a higher priority.
You could use the align functions as suggested by @editfund-founder or you could turn grid mode off first and then turn on "snap to objects" to align the objects together.
Tip: when you select "snap to objects" from the context menu, "grid mode" is turned off automatically.

Thanks a lot, I have found how to use it. It is so powerful tool~~


GitHub Enterprise support

This PR adds GitHub Enterprise support by allowing users to specify additional GitHub domains to inject the button for.
Fixes #72

New GitHub Enterprise domains tab

To test this PR on Google Chrome:

Checkout the PR branch
Apply patch to prevent button injection on github.com:

curl https://gist.githubusercontent.com/dkwon17/77fed8fe67080c09866fe2c0b0ade350/raw/4bd128687bdd8dfb4c71c8c618a10eeebd3d7098/try-in-dev-spaces-patch | git apply

Build project:

yarn build

Sideload extension to Google Chrome (see sideload instructions)
Go to a GitHub project page and verify that the Dev Spaces button is not being injected
Go to the options page for the extension and add 'https://github.com' as a GitHub Enterprise domain. Next, go back to the GitHub repo page and refresh the page. The Dev Spaces button should be injected:

https://github.com/redhat-developer/try-in-dev-spaces-browser-extension/assets/83611742/fc9efc52-2422-481a-b52a-095328e1ca4c

A new commit has been added to provide a confirmation dialog when removing a domain:

Screenshot


Add parse-link-header to npm dependencies

I got an error when initially starting the server:
...
Success! Compiled 85 modules.
Successfully generated instance/server/main.js
Cannot find module 'parse-link-header'
./take-home/instance/server/main.js:415
				throw error;
				^

Error: Cannot find module 'parse-link-header'
...

Adding as a dependency resolved this.

:+1: good catch


Proposal: Add Tag value to NavigationView's Settings item

Proposal: Add Tag value to NavigationView's Settings item

Summary

NavigationView provides a Settings item with default icon, localized text, tooltip etc. But this item does not set its Tag property. The Tag should also be set to "settings"
Rationale
At least one customer has reported creating a custom settings item because of the missing Tag value.

Seems reasonable, let's do it.


Import errors when running

Using arch linux, cloned the repo so most up to date version I hope, followed as per instructions:
$ cd smop/smop
$ python main.py solver.m
$ python solver.py
get error after second instruction:
Traceback (most recent call last):
File "main.py", line 15, in
from . import options
ImportError: cannot import name 'options' from 'main' (main.py)

Note by changing the import statements as suggested elsewhere I did get the program to run without errors however "solver.py" was not generated meaning something else is going wrong...

same error

retry on py 2.7.16 not fix

I struck the same problem 2 days ago while running “futurize"  http://python-future.org/overview.html#futurize-2-to-both http://python-future.org/overview.html#futurize-2-to-both over the smop 0.41package to identify a problem caused by a mixture of calls to --builtin— (python2) rather than builtins (python3).
“ futurize”  also introduces the . .. & … notation into import  calls thereby setting up potential absolute vs relative path problems.
Facts of life about Python Modules are well explained in:	Relative paths in Python - Stack Overflow https://stackoverflow.com/questions/918154/relative-paths-in-python
I think you have run into a problem with absolute vs relative paths in the smop import statements because  import options is the first relative call when smop is run.  This may have arisen because of the recent upgrade of smop to run on python3.
You’ll find the kind of problem you have reported explained within the following 3 links from StackOverflow:
Python Relative Import cannot find package - Stack Overflow https://stackoverflow.com/questions/38645486/python-relative-import-cannot-find-package
python - How to fix "Attempted relative import in non-package" even with init.py - Stack Overflow https://stackoverflow.com/questions/11536764/how-to-fix-attempted-relative-import-in-non-package-even-with-init-py?rq=1
https://stackoverflow.com/questions/918154/relative-paths-in-python https://stackoverflow.com/questions/918154/relative-paths-in-python
If I’m right, you should be able to avoid, but not solve, your problem by running setup and then calling smop rather than calling main.py
How to fix the smop code itself isn’t clear. The links above suggest so many options.
Hope this is all helpful, I haven’t had time to try it yet.
Regards
Rob
<EMAIL_ADDRESS>
On 27/03/2019, at 00:52, EvilxFish<EMAIL_ADDRESS>wrote:
Using arch linux, cloned the repo so most up to date version I hope, followed as per instructions:
$ cd smop/smop
$ python main.py solver.m
$ python solver.py
get error:
Traceback (most recent call last):
File "main.py", line 15, in
from . import options
ImportError: cannot import name 'options' from 'main' (main.py)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/victorlei/smop/issues/136, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLYJn7PO6aJCzPK7Y-_2xN6psdF6DIRks5vagoNgaJpZM4cLQAs.

Note by changing the import statements as suggested elsewhere I did get the program to run without errors however "solver.py" was not generated meaning something else is going wrong...

I am also having the error of of smop not generating output

Use this fork:
https://github.com/PatrickFURI/smop


outputs of train.py

When I run train.py given by the author and the second epoch reaches 69.80%, the average training loss suddenly becomes infinity(nan), and then it does not converge again. Does anyone encounter this problem? What should I do?

hi, can you tell me how you get the data ? the author seems not to provide. if I  can get them, I will do the same example like you. so we may solve the problem.

hi, can you tell me how you get the data ? the author seems not to provide. if I can get them, I will do the same example like you. so we may solve the problem.

Link to NGSIM Dataset
Get US-101-LosAngeles-CA.zip and I-80-Emeryville-CA.zip in attachments


Better indication of overwritten tokens

Is your feature request related to a problem? Please describe.
(See screenrecording below). If you have a token that is overwritten by another set, the overwritten value is shown in the tooltip. The token name and also the color swatch will keep its original value.
Describe the solution you'd like

Show the token as it is in the current set
Add an indication that the token is overwritten.

Describe alternatives you've considered
Additional context
https://tokens-studio.slack.com/archives/C04MGHM82TV/p1675243905114279
https://user-images.githubusercontent.com/109062656/216575112-cfb18fe2-83c4-4363-9c60-1e561ee8a1de.mov

Hi @rbosker and @six7
What your thought on this

Live examples - CSS

Thanks @color2life - I extracted the designs you had in the Figma:

I'd say lets try with just the tooltip for a start. If that's not enough, we can try the dot option.

Migrated to Featurebase


validator should not return an error if no default command, should return warning instead

/kind bug

Which area this bug is related to?

/area api
/area library
What versions of software are you using?
Operating System:
Go Pkg Version:
Bug Summary
Describe the bug:

If devfile has no default command for each group kind, the validator error out.
To Reproduce:

use the validator on this devfile:https://raw.githubusercontent.com/yangcao77/web-coolstore/completed-sample/devfile.yaml
Expected behavior

since the devfile may contain multiple projects, it may not have default commands.  The validation rule says if no default command defined, a warning will be displayed. but the current validator returns an error.

{build, run, test, debug}, each kind of group can only have one default command associated with it. If there are multiple commands of the same kind without a default, a warning will be displayed.

Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable.
run parser from devfile/library on https://raw.githubusercontent.com/yangcao77/web-coolstore/completed-sample/devfile.yaml
parsing devfile from ./devfile.yaml

command group build error - there should be exactly one default command, currently there is no default command
command group run error - there should be exactly one default command, currently there is no default command

Additional context

Any workaround?

Suggestion on how to fix the bug

Three approaches:

devfile/api  ValidateCommands still returns (err error), but the warning message will start with a "WARNING" prefix. For example:

WARNING: command group build error - there should be exactly one default command, currently there is no default command
WARNING: command group run error - there should be exactly one default command, currently there is no default command

This approach will be harder to split warnings and errors, if the return value has all errors and warnings appended.

devfile/api ValidateCommands returns (warning string, err error).  And devfile/library parser returns an extra warning field.
tools will need to handle the extra returned field.

create a new struct, devfile/api  ValidateCommands and   devfile/library parser return this struct instead.  This requires tools to handle the new return type.

{
error err
warning string
}

Hi @kadel, we are going to update devfile validator to return warnings, thus parser is also going to make the same change. I listed 3 feasible approaches in the above comment. Since Odo is now consuming the validator & parser, I would like to hear from your advice; which one would help Odo adopt the new change more easier?

The situation when there is no default run command  is problematic for odo.
If there is no default run command odo can't know what to execute, and being CLI tool it can't easily ask users.
Odo's users will have to specify which command to run using odo push --run-command.
Odo will have to still treat this as an error.
Other approach could be to let ValidateCommands return errors like it does now. And have extra error types for each type of validation check, so tools can decide they want to treat each failed validation. Similarly, how Go's os standard library does it, where you can do os.IsNotExist(err) to check if the error was of a "Not Exist type".
For example the library could have a validation.IsMisingDefault(err) function to detect what validation "failed".

Other approach could be to let ValidateCommands return errors like it does now. And have extra error types for each type of validation check, so tools can decide they want to treat each failed validation. Similarly, how Go's os standard library does it, where you can do os.IsNotExist(err) to check if the error was of a "Not Exist type".
For example the library could have a validation.IsMisingDefault(err) function to detect what validation "failed".
EDIT:
I just realized that in this case ValidateCommands should return []error containing all failed validation.

That would also work.
So to summarize, validator and parser will return []error instead of error. And we will create error types for specific validation errors.

The situation when there is no default run command is problematic for odo.
If there is no default run command odo can't know what to execute, and being CLI tool it can't easily ask users.
Odo's users will have to specify which command to run using odo push --run-command.
Odo will have to still treat this as an error.

I thought this is a warning in Odo? Looks like if Odo has no default command found, it will just run the first command defined under this groupkind
https://github.com/openshift/odo/blob/57976875f2b1a61d5dd7bd027379abcedc8df943/pkg/devfile/adapters/common/command.go#L82-L85
@kadel Can you confirm?

I thought this is a warning in Odo? Looks like if Odo has no default command found, it will just run the first command defined under this groupkind, and won't block the push.
https://github.com/openshift/odo/blob/57976875f2b1a61d5dd7bd027379abcedc8df943/pkg/devfile/adapters/common/command.go#L82-L85
@kadel Can you confirm?

Yes, currently it does this. But it can be confusing for users. If odo can't safely determine correct run command it should error out.
We can't just pick one o the commands.
The only exception that I can see is when there is only one command of a given kind. Then it makes sense to use is even if it is not marked as a default one. But if there is a multiple command in a group and no command is default command it should error out

The change merged into api repo uses multierror.Append  to construct the error list, and the returned type is still error.
tools like odo calls parser and validator won't get affected.
if want to extract for individual error, can use
merr, ok := err.(*multierror.Error)
// merr.Errors is the []error list

for more information on multierror usage, refer to : https://github.com/hashicorp/go-multierror


minimum runs retained should including runs that not reaching expire …

…time

keep_minimum_runs is based on retain_days and should not be deleted within the range of retain_days.

Yes，of cause.
But if there are more than keep_minimum_runs runs in the range of retain_days， I don't think it should keeping extra  keep_minimum_runs of  runs out of the range of retain_days.

keep_minimum_runs is based on retain_days and should not be deleted within the range of retain_days.

Yes，of cause.
But if there are more than keep_minimum_runs runs in the range of retain_days， I don't think it should keeping extra keep_minimum_runs of runs out of the range of retain_days.

You misunderstood the intent of keep_minimum_runs.
The original intention of the design is to use retain_days, while keeping parts from being deleted.
It is recommended that you use retain_days and keep_minimum_runs independently.
retain_days: 0
keep_minimum_runs: 6

or
retain_days: 6
keep_minimum_runs: 0

It is recommended that you use retain_days and keep_minimum_runs independently.

That's make sense. Thank you!


Azure Storage Queue module

Module for handling interactions with Azure Storage Queues.
These functionalities are useful for decoupling integrations between systems.

@demiliani have you thought about making your implemenation codeunit more flexible by supporting differnt authentations and not relying on one setup table value? Similiar to the Azure Blob Storage Library?

@pri-kise yes the page and table are absolutely not needed for the library. The SAS key can be passed as parameter to the methods exactly like in the Blob Storage Module.

@pri-kise yes the page and table are absolutely not needed for the library. The SAS key can be passed as parameter to the methods exactly like in the Blob Storage Module.

@demiliani, do you think you'll find the time to complete this work, as outlined by @mazhelez? The PR is not yet in a shape were we can accept it. I'd be happy to keep it open, if you think you'll find some time - eventually. What do you say?

Yes I would like to find time to improve the code, at least for handling the authorization part. Open to contributions from others to speed up the work of someone is interested.

Yes I would like to find time to improve the code, at least for handling the authorization part. Open to contributions from others to speed up the work of someone is interested.

@demiliani it should be possible to reuse the current Authorization Methods that were added for the Azure Blob Storage.
https://github.com/microsoft/ALAppExtensions/tree/main/Modules/System/Azure Storage Services Authorization
https://learn.microsoft.com/en-us/azure/storage/common/authorize-data-access#understand-authorization-for-data-operations
It should be possible by using the following syntax:
https://github.com/microsoft/ALAppExtensions/blob/e5e34e9f8689c1e458802d37cb904f8ce1a8bf93/Modules/System/Azure Blob Services API/src/Helper/ABSWebRequestHelper.Codeunit.al#L163

This one seems to have stranded. As we will be moving the System Application to a new repository soon, I will close this PR for now. Feel free to recreate it in the new BCApps repository when you have the time to finish it (or have someone to help you do so).


Add isFirstMessage property to TwitchPrivateMessage

Feature Request

Last year Twitch added the first-msg tag to signify when a user sends their first message in a channel. This issue suggests that a isFirstMessage property is added to represent that tag.
I would be more than happy to quickly implement this and submit a pull request!

Seeing that this is currently not documented anywhere, I'd reject this for now, as I tend not to add any more undocumented stuff.
The Twitch chat docs are pending some big updates (the devs are teasing that there is a big overhaul going on), so ping me in this issue if this ever becomes "official" and I'll reopen the issue.


Add CVE-2023-4807 fix to CHANGES.md and NEWS.md

The second commit should cherry-pick to 3.1 cleanly and to 3.0 with a trivial adjustment - moving the added text to the right place.

This pull request is ready to merge

Merged to master, 3.1, and 3.0 branches. Thank you for the reviews.


Improve documentation: Routing output of "support" files

pxbuild must be able to write the support files to a common location or to where the pxfile is sent, in a documented manner.

included in no 85


Request for hosting Google Analyze Code Security Plugin

Repository URL
https://github.com/GoogleCloudPlatform/google-analyze-code-security-plugin
New Repository Name
google-analyze-code-security-plugin
Description
The Google Analyze Code Security plugin for Jenkins identifies insecure configurations in Infrastructure as Code (IaC) files for Google Cloud resources. This plugin requires Terraform plan files in JSON format for scanning.
Use this plugin to detect and remediate issues in IaC files for Google Cloud before you deploy the resources.
This plugin lets you:

Scan IaC template files (such as Terraform plan files).
Display issues with their severity as a HTML Report in the Jenkins console after a scan completes.
Define severity-based failure criteria for passing or failing the build.

Note : This is a Security Command Center Premium tier offering for subscription customers only. You must activate the Security Command Center Premium tier in the Google Cloud organization to use this feature.
GitHub users to have commit permission
@sanya803
@adishagarwal
Jenkins project users to have release permission
@sanya803
@adishagarwal
Issue tracker
Jira

Security audit, information and commands
The security team is auditing all the hosting requests, to ensure a better security by default.
This message informs you that a Jenkins Security Scan was triggered on your repository.
It takes ~10 minutes to complete.
Commands
The bot will parse all comments, and it will check if any line start with a command.
Security team only:

/audit-ok => the audit is complete, the hosting can continue :tada:.
/audit-skip => the audit is not necessary, the hosting can continue :tada:.
/audit-findings => the audit reveals some issues that require corrections :pencil2:.

Anyone:

/request-security-scan => the findings from the Jenkins Security Scan were corrected, this command will re-scan your repository :mag:.
/audit-review => the findings from the audit were corrected, this command will ping the security team to review the findings :eyes:.
	It's only applicable when the previous audit required changes.

Only one command can be requested per comment.

(automatically generated message, version: 1.26.28)

The Jenkins Security Scan did not find anything dangerous with your plugin, congratulations! :tada:

:bulb: The Security team recommends that you are setting up the scan in your repository by following our guide.

/hosting re-check

/hosting re-check

/hosting re-check

Hello,

I'm wondering the purpose of the .github/workflows/test.yaml as this is already covered by the Jenkinsfile.
https://github.com/GoogleCloudPlatform/google-analyze-code-security-plugin/blob/48e55288094ef5c876959413a085fa9e573cbda0/pom.xml#L67-L68 revision is not used in the version management of the plugin
There is a mismatch in the version of Jenkins core requirement https://github.com/GoogleCloudPlatform/google-analyze-code-security-plugin/blob/48e55288094ef5c876959413a085fa9e573cbda0/pom.xml#L70 and the BOM used https://github.com/GoogleCloudPlatform/google-analyze-code-security-plugin/blob/48e55288094ef5c876959413a085fa9e573cbda0/pom.xml#L81
Could you switch the Jackson Databind XML dependency (https://github.com/GoogleCloudPlatform/google-analyze-code-security-plugin/blob/48e55288094ef5c876959413a085fa9e573cbda0/pom.xml#L147-L151) for the Jackson API Plugin (https://github.com/jenkinsci/jackson2-api-plugin)
Same for HTTP Mime dependency with https://github.com/jenkinsci/apache-httpcomponents-client-4-api-plugin

the HTTP client will be handled by that dependency as well.

Please let the version of the guava and mockito be management by the parent POM
The CODEOWNERS file at the root of the repository should be removed.
As you configured the CD workflow, the changelog file is not necessary as the release notes will be generated using the GitHub releases.

For point 1, this is done by the Jenkinsfile, which even test the plugin for both currently supported JVM (17 and 21).
For point 4, the artifactId doesn't have the suffix -plugin, like yours doesn't.

Thanks this helps !!
Regarding 1) Jenkinsfile will get triggered during continuous deployment stage when plugin is being released, we are trying to stop any faulty commit to get checked into the repository at the pull request stage itself.

The Jenkinsfile is used to build everything, any branch and pull requests.

Incorporated all the above changes, please have a look.

/hosting host


New NVM Installation from Scratch; Installed NPM & Node - 'npm' is not recognized... error

'npm' is not recognized as an internal or external command, operable program or batch file.
similar from within Visual Studio:
npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Need to get these up-n-running and need to update node modules for a project.
please advise.
Thanks

OK, I just ran nvm list which shows 19.4.0
I have an admin acct. and ran the cmd as admin.
I uninstalled the pre-existing NVM, npm, and node before running a re-installation.
I used the Windows Developer CMD; not Cygwin.
When I try to run the following to see if I can reinstall npm:
nvm install-latest-npm
it just throws up the current version of nvm that I'm running.

nvm-install-latest-npm is not a valid command. That's the syntax used in nvm-sh, not nvm-windows.
If node is running, you need to run npm i -g npm to install the latest version of npm.

run the following command:
echo %NVM_SYMLINK%

Directory of D:\Installs\nodejs

then
dir D:\Installs\  <=== Parent folder
Directory of D:\Installs

03/07/2023  05:13 PM    <DIR>          .
03/07/2023  05:13 PM    <DIR>          ..
03/07/2023  05:13 PM    <SYMLINKD>     nodejs [D:\Installs\nvm\v16.14.2]  <<=======

final
nvm install 16.14.2
nvm use 16.14.2

hope this help

Had the same problem and had to explicitly say
nvm on
https://stackoverflow.com/a/73525409/1498822


python3.7-nodejs14-slim tag is 3.7.10 not 3.7.11

Hi, thanks for these very usefull images!
I am currently facing an issue with the python3.7-nodejs14-slim tag. it is written on the README that the python version is 3.7.11  but it is in fact python 3.7.10, which breaks my poetry installation because of incompatible version with some packages :grimacing:
$ docker run --rm -it nikolaik/python-nodejs:python3.7-nodejs14-slim python --version
Python 3.7.10

Is it a build step issue within the dockerfile or the readme is just not up to date?
EDIT: from python-nodejs:python3.7-nodejs16-slim, python version is indeed 3.7.11

Hi, thanks for these very usefull images!

I'm glad you find them useful! 🤗

I am currently facing an issue with the python3.7-nodejs14-slim tag. it is written on the README that the python version is 3.7.11 but it is in fact python 3.7.10, which breaks my poetry installation because of incompatible version with some packages 😬
$ docker run --rm -it nikolaik/python-nodejs:python3.7-nodejs14-slim python --version
Python 3.7.10

What version of python do you get if you run docker run --pull=always --rm -it nikolaik/python-nodejs:python3.7-nodejs14-slim python --version? It could simply be because you have pulled the tag when the image was at pthon 3.7.10 and need to do it again to get on the latest and greatest.
If you want to pin the python version, you probably want to create your own image, since the tags are constantly evolving with new bugfix releases of python. If you just need the latest. You can run docker pull once in a while or give a little present of --pull=always to docker run.

Running docker run --pull=always --rm -it nikolaik/python-nodejs:python3.7-nodejs14-slim python --version solved the problem, thanks!
Indeed, I will maybe have to build my own images if it breaks on each new release :thinking: I'll see on next release then!

Glad it worked out!


ValueError: transformers.spec is None when importing pytorch-lightning

When I am importing << import pytorch_lightning as pl>>, I get this error:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
/usr/local/bin/kernel-launchers/python/scripts/launch_ipykernel.py in <module>
----> 1 import pytorch_lightning as pl

~/.local/lib/python3.6/site-packages/pytorch_lightning/__init__.py in <module>
     18 _PROJECT_ROOT = os.path.dirname(_PACKAGE_ROOT)
     19
---> 20 from pytorch_lightning import metrics  # noqa: E402
     21 from pytorch_lightning.callbacks import Callback  # noqa: E402
     22 from pytorch_lightning.core import LightningDataModule, LightningModule  # noqa: E402

~/.local/lib/python3.6/site-packages/pytorch_lightning/metrics/__init__.py in <module>
     13 # limitations under the License.
     14
---> 15 from pytorch_lightning.metrics.classification import (  # noqa: F401
     16     Accuracy,
     17     AUC,

~/.local/lib/python3.6/site-packages/pytorch_lightning/metrics/classification/__init__.py in <module>
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
---> 14 from pytorch_lightning.metrics.classification.accuracy import Accuracy  # noqa: F401
     15 from pytorch_lightning.metrics.classification.auc import AUC  # noqa: F401
     16 from pytorch_lightning.metrics.classification.auroc import AUROC  # noqa: F401

~/.local/lib/python3.6/site-packages/pytorch_lightning/metrics/classification/accuracy.py in <module>
     14 from typing import Any, Callable, Optional
     15
---> 16 from torchmetrics import Accuracy as _Accuracy
     17
     18 from pytorch_lightning.metrics.utils import deprecated_metrics, void

~/.local/lib/python3.6/site-packages/torchmetrics/__init__.py in <module>
     12 _PROJECT_ROOT = os.path.dirname(_PACKAGE_ROOT)
     13
---> 14 from torchmetrics import functional  # noqa: E402
     15 from torchmetrics.audio import PIT, SI_SDR, SI_SNR, SNR  # noqa: E402
     16 from torchmetrics.average import AverageMeter  # noqa: E402

~/.local/lib/python3.6/site-packages/torchmetrics/functional/__init__.py in <module>
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
---> 14 from torchmetrics.functional.audio.pit import pit, pit_permutate
     15 from torchmetrics.functional.audio.si_sdr import si_sdr
     16 from torchmetrics.functional.audio.si_snr import si_snr

~/.local/lib/python3.6/site-packages/torchmetrics/functional/audio/__init__.py in <module>
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
---> 14 from torchmetrics.functional.audio.pit import pit, pit_permutate  # noqa: F401
     15 from torchmetrics.functional.audio.si_sdr import si_sdr  # noqa: F401
     16 from torchmetrics.functional.audio.si_snr import si_snr  # noqa: F401

~/.local/lib/python3.6/site-packages/torchmetrics/functional/audio/pit.py in <module>
     20
     21 from torchmetrics.utilities.checks import _check_same_shape
---> 22 from torchmetrics.utilities.imports import _SCIPY_AVAILABLE
     23
     24 # _ps_dict: cache of permutations

~/.local/lib/python3.6/site-packages/torchmetrics/utilities/imports.py in <module>
     81 _TORCH_FIDELITY_AVAILABLE: bool = _module_available("torch_fidelity")
     82 _TQDM_AVAILABLE: bool = _module_available("tqdm")
---> 83 _TRANSFORMERS_AVAILABLE: bool = _module_available("transformers")

~/.local/lib/python3.6/site-packages/torchmetrics/utilities/imports.py in _module_available(module_path)
     31     """
     32     try:
---> 33         return find_spec(module_path) is not None
     34     except AttributeError:
     35         # Python 3.6

/opt/conda/lib/python3.6/importlib/util.py in find_spec(name, package)
    100         else:
    101             if spec is None:
--> 102                 raise ValueError('{}.__spec__ is None'.format(name))
    103             return spec
    104

ValueError: transformers.__spec__ is None

It seems like this has been solved in later versions of transformers https://github.com/huggingface/transformers/issues/12904#issuecomment-918434569 would you be able to install a later version (v4.10.x)?

I had this issue and I needed to just import transformers as a whole in the script where the issue occurs.
Solution: import transfromers
as the line of error is simply : _TRANSFORMERS_AVAILABLE: bool = _module_available("transformers")

this is fixed in transformers recent release. closing it. feel free to open if it occurs again.


version 5 rowclicked data name issue.

Hi,
First of all many thanks for this GREAT library!
I just updated to the latest version and got an issue with handling the row click events.
in the data of the event names of my columns changes from. ie Tool_Nr to tool_-nr
I trace this back to this change
https://github.com/NonFactors/MVC5.Grid/commit/6e4c7d691f7cde21e71828d9eabd12382164a83d#diff-4b26824274219a6edae0f6609467211c
private String GetName(Expression<Func<T, TValue>> expression)
{
return String.Join("-", Regex.Split(ExpressionHelper.GetExpressionText(expression), "(?<!^)(?=[A-Z])")).ToLower();
}
Is there a reason for adding the "-" ?

Yes, grid query moved to lower case and kebab casing for consistency with previously used dashes before filter/sort/paging information, for example ToolNr-contains=test now goes tool-nr-contains.
I guess it was my mistake to not check other splitting symbols, especially underscore. I should change it, so it doesn't split before underscore at all. If you have a lot of script, best would be to use a custom AddColumn extension which preserves old column naming.


Getting died in status LOADING_SOURCE_CODE: "does not export an unmount function or array of functions"

I have root app which is basic app using singlespa  and loading the es5-app.js which is hosted on different port. When I lazy load es5-app.js I get below error
Application 'es5-app' died in status LOADING_SOURCE_CODE: "does not export an unmount function or array of functions"
Could you help me how do export bootstrap, mount and unmount functions from my child app

Did you get this error as a fork of single-spa-es5-angularjs? If so, the way to export the lifecycle functions is by creating a global variable with those functions in an object. See https://github.com/joeldenning/single-spa-es5-angularjs/blob/master/es5-app.js#L2 for how this is happening in this example repo

I am getting the same error, however I am using single-spa in react framework.
Any inputs on how to fix this ? thx

Hi @hiaparna, could you paste some code showing your loading functions? Are you using the recommended setup with System.import()? Or just webpack import()?
This error means that your loading function returned a promise that resolved with an object that did not have the single-spa lifecycle functions on it. Loading functions must resolve to an object that has bootstrap, mount, and unmount functions on them.

Hi @joeldenning, I am sharing the demo application build using single-spa. I have added 2 applications and both are in react dashboard and navbar. It works fine in development. However, when we build it and deploy it in nginx, it shows error in console : Uncaught SyntaxError: Unexpected token <.
Repo:  https://github.com/hiaparna/single_spa_react

I also tried https://github.com/joeldenning/simple-single-spa-webpack-example example in production mode and it gives the same error as : Uncaught SyntaxError: Unexpected token < for common-dependencies and root-application

@hiaparna you need to use AMD targetLibrary in webpack.

you need to use AMD targetLibrary in webpack. output: { library: 'blah', libraryTarget: 'amd',

Yep, or even better you can use libraryTarget: 'system' if you're using SystemJS. Also, please follow the instructions in the following links, which should get your webpack config fully up and running:
https://single-spa.js.org/docs/faq.html#code-splits
https://single-spa.js.org/docs/faq.html#create-react-app


Config file error

I used ocp_viewer a year ago or so and went to re-visit one of my models.  I created a new virtual environment and installed build123d and ocp_viewer and ran the script, but I got this exception when I tried to show the part:
RuntimeError: Unable to open config file /home/user/.ocpvscode.

Why doesn't it just make this file if it doesn't exist?  Since I don't know what to put in this file, I touched it (empty file) and ran it again, but then the show code just seems to be skipped over but some text does appear from python:
UserWarning: The viewer doesn't seem to run
Jupyter console not installed

However, the viewer is clearly running on the right side of Codium and the extension clearly indicates that it is installed:

I then saw a message from the extension in Codium in the bottom right that shows:

So, I added set_port(3939) at the top of my code and ran it again.  Now the message above is not shown (the UserWarning), but I still don't see anything in the ocp_code viewer window.
I don't see any mention of this config file in the README, so is there something else I need to do here?

You seem to still have an older version of the extension (2.0.13), the newest is 2.5.0. And from the warning message you are running 2.5.0 of the Python code.
Lot's of things have changed since then and both versions need to be aligned (which happens when you let the VS code extension install the Python module).
Please install the latest version of the extension and try again

I'm used to the extensions auto-updating, but I guess since I use Codium and had to do the manual install that it obviously doesn't auto-update.  Updating via the latest manual install seems to have fixed the issue - thanks!


Provide a method for a block to report its input height

Our team opinion here is we need a method that can go up to the blueprints and get the T=0 heights from a block.

This method would have other benefits outside this plot, e.g., axial thermal expansion between hot and as fabricated / neutral stress heights of blocks.
Originally posted by @drewj-tp in https://github.com/terrapower/armi/issues/1158#issuecomment-2392102394

Feels kind of yucky, but
reactor = b.parent.parent.parent
designs = reactor.blueprints.assemDesigns
heights = designs[b.parent.getType()].height
inputHeight = heights[b.parent.index(b)]

should work

Perhaps something like:
try:
    reactor = b.parent.parent.parent
except AttribuiteError:
    return None

if isinstance(reactor, Reactor):
    designs = reactor.blueprints.assemDesigns
    heights = designs[b.parent.getType()].height
    return heights[b.parent.index(b)]
else:
    return None

Just thinking aloud.


Problem with logo.darc.lz

Some games contain the logo.darc.lz file in the exefs folder. The problem is that when unpacking exefs.bin, the logo.darc.lz file is not decrypted.(3dstool 1.2.5)

give me a product id, like CTR-X-YYYY

LBX: Little Battlers eXperience
0004000000147200
CTR-ADNP
Download and create CIA  with Villian3ds in 2017 year
https://fs20.fex.net/download/776008025

I try the japanese version of this game.
It's compressed.
You can uncompress it:
3dstool -uvf logo.darc.lz --compress-type lzex --compress-out logo.darc

Little Battlers eXperience EUR<PHONE_NUMBER>147200) [IS].cia
The cxi of the cia is encrypted, I can't extract it.

eshop content unpack
ctrtool --contents=file --commonkey=64c5fd55dd3ad988325baaec5243db98 game.cia

thats version is like a million years old you be better building from source


fix: relax constrains on spider tests

Codecov Report

Merging #353 (fc8893a) into master (f544398) will decrease coverage by 0.07%.
The diff coverage is n/a.

:exclamation: Current head fc8893a differs from pull request most recent head 2733d2d. Consider uploading reports for the commit 2733d2d to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##           master     #353      +/-   ##
==========================================
- Coverage   96.39%   96.33%   -0.07%
==========================================
  Files          22       22
  Lines        3380     3379       -1
==========================================
- Hits         3258     3255       -3
- Misses        122      124       +2

see 3 files with indirect coverage changes


Delete events from the database

Well, this is actually another strfy feature. Due to the lack of a query language for the LMDB, it is very difficult for relay administrators to maintain the database, including delete spam events from the relay database.
It is true that there are tools to operational the LMDB directly, but direct operational of the database is a very dangerous behavior. Therefore, there is a need for a basic function to delete events from the database.

Just added the delete function, please try it.
Delete data by filter
Usage: rnostr delete [OPTIONS]
Arguments:
  Nostr events data directory path. The "rnostr.example.toml" default setting is "data/events"
Options:
-f, --filter  NIP-01 Filter [default: {}]
--dry-run          Dry run
-h, --help             Print help

Just added the delete function, please try it.
Delete data by filter
Usage: rnostr delete [OPTIONS]
Arguments: Nostr events data directory path. The "rnostr.example.toml" default setting is "data/events"
Options: -f, --filter NIP-01 Filter [default: {}] --dry-run Dry run -h, --help Print help

That's so cool! Thanks for contributing!


interactive for full builds

Codecov Report

Merging #547 (d298e5a) into develop (39be130) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #547   +/-   ##
========================================
  Coverage    96.14%   96.14%
========================================
  Files          103      103
  Lines         6457     6457
========================================
  Hits          6208     6208
  Misses         249      249

Continue to review full report at Codecov.

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


security/acme-client: Failing to get certificates from Gandi LiveDNS

The bug
I'm not able to renew a certificate when using the Challenge Type of DNS-01 via Gandi LiveDNS.
2023-08-06T21:51:18-07:00` | acme.sh | [Sun Aug  6 21:51:18 PDT 2023] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
-- | -- | --
2023-08-06T21:51:18-07:00 | acme.sh | [Sun Aug  6 21:51:18 PDT 2023] Please add '--debug' or '--log' to check more details.
2023-08-06T21:51:18-07:00 | acme.sh | [Sun Aug  6 21:51:18 PDT 2023] Error add txt for domain:_acme-challenge.mydomain.xyz
2023-08-06T21:51:16-07:00 | acme.sh | [Sun Aug  6 21:51:16 PDT 2023] Adding txt value:  yehi3EBS36zpUVEDVrs4QEmJYWLldyXVtISx2MDIgGg for domain:   _acme-challenge.mydomain.xyz
2023-08-06T21:51:16-07:00 | acme.sh | [Sun Aug  6 21:51:16 PDT 2023] Getting webroot for domain='*.mydomain.xyz'
2023-08-06T21:51:16-07:00 | acme.sh | [Sun Aug  6 21:51:16 PDT 2023] Getting webroot for domain='mydomain.xyz'
2023-08-06T21:51:15-07:00 | acme.sh | [Sun Aug  6 21:51:15 PDT 2023] Getting domain auth token for each domain
2023-08-06T21:51:15-07:00 | acme.sh | [Sun Aug  6 21:51:15 PDT 2023] Multi domain='DNS:mydomain.xyz,DNS:*.mydomain.xyz'
2023-08-06T21:51:15-07:00 | acme.sh | [Sun Aug  6 21:51:15 PDT 2023] Using CA: https://acme-v02.api.letsencrypt.org/directory

I've updated my API key and even attempted to setup timeouts. The DNS txt record is never created. I'm not sure how to troubleshoot this more. Any help is appreciated.
OPNsense 23.7
AMD Ryzen 7 5800U
Network Intel® i226

Please enable debug logging on the Acme-Client settings page and try again. This may reveal why it is failing.

@FreakyBigFoot I have a hunch that switching your /var/etc/acme-client/accounts/**/account.conf to use GANDI_LIVEDNS_TOKEN instead of GANDI_LIVEDNS_KEY will fix your problem.
Gandi switched to using a Personal Access Token for their authentication.
The ACME plugin UI looks like it might set the GANDI_LIVEDNS_KEY
The plugin looks like it has a little extra logic to handle both: https://github.com/acmesh-official/acme.sh/blob/master/dnsapi/dns_gandi_livedns.sh#L23

Hey @xer0x  Thank you very much! That worked. @fraenki So sorry.. I never saw this response. It's been a crazy month or 2.
I had to also paste my key in there. I wonder how we can get this updated in the UI to use the newer system?

Support for Personal Access Tokens will be available in os-acme-client 3.20.


Xamarin.Forms iOS Torch does not work & Torch State not maintained after App Resume

⤵ What is the current behaviour?

Android and iOS flash states are not maintained or restored after the app has been backgrounded since the system automatically disables the Torch when the app enters the background.
Sample.Forms.iOS does not call the Init() method specified in the documentation.
iOS Flash does not toggle at all due to followig logic error:

device.LockForConfiguration(out var err);

if (err != null) // Always False
{

🆕 Suggestions

Add a RefreshTorch method to the Torch.Android.cs file and call that method on scan resume from public void RefreshCamera() in the CameraAnalyzer.android.cs file in order to restore the correct Torch state after app resume.

public void RefreshTorch()
{
    if (IsEnabled)
    {
        IsEnabled = false;
        Enable(true);
    }
}

Change LockForConfiguration call to this:

if (device.LockForConfiguration(out var err))
{

Add something like a WillEnterForeground observer to the ZXingScannerView.ios.cs file in order to restore the correct Torch state after app resume.  The following code is just an example, and only seem to work if you leave the scanner open for a bit before backgrounding, it doesnt work if you turn the torch on and instantyl background.  I will update here if I find something that does work in that case as well.

// Inside Setup method
WillEnterForegroundObserver = NSNotificationCenter.DefaultCenter.AddObserver(
    UIApplication.WillEnterForegroundNotification,
    _ =>
    {
        if (IsTorchOn)
        {
            torch = false;
            Torch(true);
        }
    });

// Inside StopScanning method
if (WillEnterForegroundObserver != null)
{
    NSNotificationCenter.DefaultCenter.RemoveObserver(WillEnterForegroundObserver);
}

Add the missing call to global::ZXing.Net.Mobile.Forms.iOS.Platform.Init(); in the finished launching method of the Sample.Forms.iOS  project.

I have all these changes on a local branch however I do not have permissions to push for your review, from my inital developer testing these changes seem to resolve the issues for me on Android, and partially on iOS.

@Redth Any chances of getting a quick service update out to address this?

Change it to if (err == null) instead of if (err != null).
I've created a pull request for this:
https://github.com/Redth/ZXing.Net.Mobile/pull/1028


Access denied (insufficient permissions)

Hy!
I'm a mac user, and I was looking for a software for re-programming my keyboard that I've just bought form aliexpress. I found your, and was pretty happy about it.
I've installed everything, and it went well.
Once I started the software, suddenly I got the error
CH57x keyboard device not found.
So I changed the product-id to mine: 34880.
A suggestion: Probably you should mention it in the documentation/readme and guide step-by-step on where to find the data.
After re-executing the program I got:
Error: Access denied (insufficient permissions)
I tried also with root privilegies, and also added the vendor-id, but nothing changed.
For reference, this is the command:
sudo ch57x-keyboard-tool --vendor-id 4489 --product-id 34880 upload < keyboard_map.yaml

And this is the output of ioreg:
+-o USB Composite Device@14100000  <class AppleUSBDevice, id 0x100006b1b, registered, matched, active, busy 0 (2 ms), retain 14>         {           "sessionID" =<PHONE_NUMBER>4443           "idProduct" = 34880           "iManufacturer" = 1           "bDeviceClass" = 0           "bMaxPacketSize0" = 64           "bcdDevice" = 256           "iProduct" = 2           "iSerialNumber" = 3           "bNumConfigurations" = 1           "Bus Power Available" = 250           "USB Address" = 6           "Built-In" = No           "locationID" = 336592896           "bDeviceSubClass" = 0           "bcdUSB" = 272           "USB Product Name" = "USB Composite Device"           "PortNum" = 1           "non-removable" = "no"           "kUSBSerialNumberString" = "EB60131120022A08"           "bDeviceProtocol" = 0           "AppleUSBAlternateServiceRegistryID" =<PHONE_NUMBER>           "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBHostFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}           "IOPowerManagement" = {"DevicePowerState"=0,"CurrentPowerState"=3,"CapabilityFlags"=65536,"MaxPowerState"=4,"DriverPowerState"=3}           "Device Speed" = 1           "kUSBCurrentConfiguration" = 1           "idVendor" = 4489           "IOGeneralInterest" = "IOCommand is not serializable"           "kUSBProductString" = "USB Composite Device"           "USB Serial Number" = "EB60131120022A08"           "IOClassNameOverride" = "IOUSBDevice"         }

First of all: this is not universal keyboard programmer, it is dedicated to ch57x keyboards. If you has another keyboard model, this software will likely not work. Changing vendor and product ID via command-line parameters are just in-case, it doesn't mean any keyboard will magically work.
Now to "access denied" error: it usually means some driver already opened this device. Did you install anything related to this keyboard?
I personally only experienced "access denied" when my keyboard was manually connected to my Windows guest in VirtualBox (for using original software and reverse engineering).
This can also help:

https://eblot.github.io/pyftdi/troubleshooting.html#error-access-denied-insufficient-permissions
https://stackoverflow.com/a/29610161/716390


Update styling for StudentsTable dates

Who is this PR for?
K12 AP, redirect, counselors, housemasters
What problem does this PR fix?
The dates are a wall of text, doesn't triage for you.
What does this PR do?
Adds color to encode the length of time, fading out over time, using the same 45 days guidance.  And switches from "days" to "weeks" after the threshold.
Screenshot (if adding a client-side feature)

selfie


Auto discovery of shippable id

Currently shield.io requires the shippable id to be used in the badge url.
ie https://img.shields.io/shippable/[id]
Shippable have recently changed their urls to use git hub details:
ie https://app.shippable.com/github/[user]/[repo]/dashboard
This dashboard shows the shippable id.
Would it be possible for shield.io to use a badge url of the form:
https://img.shields.io/shippable/github/[user]/[repo]

Hi @RadAd thanks for reaching out. AFAICT, the Shippable REST API that Shields has to use to get the status from Shippable still requires the project id to be provided.
http://docs.shippable.com/platform/api/api-overview/#!/Runs/get_projects_projectId_branchRunStatus
api.shippable.com/projects/:projectId/branchRunStatus
Are you saying that is no longer the case, and if so can you provide a working example that shows the API supproting the branchRunStatus lookup with user/repo params?

No it looks like the shippable api still requires the shippable id.
I was just wondering if shield.io could look up the id from the dashboard.

I was just wondering if shield.io could look up the id from the dashboard.

To be honest I doubt it, both for strategic and technical reasons.
We really try to avoid scenarios where Shields has to make multiple API calls in sequence to an upstream provider just to get the data needed to create the badges (for performance/latency, rate limiting, etc.)
For such a thing to even be technically possible, Shippable would have to provide an API that could be used to lookup and provide the corresponding project id for a given vcs/user/repo input. I don't see any such documented API (their entire API ecosystem is driven off keys like the project id)

@RadAd - I'm going to close this one out given the above. Please feel free to circle back on this if things change on the Shippable end to make this possible from a technical standpoint, but it's not actionable at this time.
Thanks for the suggestion though!


Hash with djb2 function

This PR makes 2 changes:

It removes unused code from the .asm file (smaller binary?)
It replaces the custom tpop hash function with values used in the djb2 hash function

I don't think it'll make a big difference performance wise, but I like the idea of using a well-known initial magic constant or hash value with a good multiplier.

Awesome, I like this change! I've always been thinking (in the back of my mind) about how (or if) the interpreter should handle hash collisions. In Forth, overriding words with new implementations is super common so collisions are "expected" behavior in that sense. If two words ever collided unintentionally, then the program would be in a bad state without the user really knowing why (unless they know to run the hashcheck.py script beforehand).
I thought about simply printing something special if a word gets defined that replaces an existing one (maybe print ok* or something slightly different). That way, a user could at least notice and say "wait up, this is a new word and shouldn't be overriding anything". It also may be just fine to simply not worry about this at all. DJB2 is a good hash and we've got 2^32 slots to fill: an accidental collision is super unlikely.


unify tenant & timeline id field names in spans

We have some tracing spans that use tenant, others that use tenant_id that hold the TenantId.
Same for TimelineId.
Let's settle on one of them and be consistent.
👍   for tenant_id style
👎  for tenant style.

IMHO this cannot be a good first issue before we have a decision. Note I created #3795 before.


post quant keras model with  UpSample2D ，after post-quantized  get a false output shape

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
TensorFlow installed from (source or binary):pip
TensorFlow version (or github SHA if from source):2.3.0

Command used to run the converter or code if you’re using the Python API
If possible, please share a link to Colab/Jupyter/any notebook.
convert=tf.lite.TFLiteConvert.from_keras_model(model)
convert.target_ops=[tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
convert.optimizations=[tf.lite.Optimize.DEFAULT]
convert.representative

The output from the converter invocation
got a false tflite model,ps: the up  layer is 1x10x10x64 with an UpSample2D in the tflite i got a 1x1x1x64 output

Also, please include a link to the saved model or GraphDef
# Put link here or attach to the issue.

Failure details
If the conversion is successful, but the generated model is wrong,
state what is wrong:

Producing wrong results and/or decrease in accuracy
Producing correct results, but the model is slower than expected (model generated from old converter)

RNN conversion support
If converting TF RNN to TFLite fused RNN ops, please prefix [RNN] in the title.
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

@sunzhe09
Please share stand alone code to replicate issue faced along with error logs, or if possible share a colab gist with the issue reported.

@Saduf2019  I don't get an error,when I check my quantized tflite model,I found the UpSample2D resized make a false output;Here is my model code:

@sunzhe09 Can you please share a simple standalone code to reproduce the issue? Did you check whether the model (before conversion) upsampling as you are expecting? Thanks!

@jvishnuvardhan I have check my training model summary,the Upsample2D is right shape;here is my  produce tflite code：
    f=open("./vallabels.txt", 'r')
    filenames=f.readlines()

    def representative_dataset_gen():
        for line in filenames:
            # Get sample input data as a numpy array in a method of your choosing.
            line=line.strip()
            if 'str' not in str(type(line)):
                line = line.decode()
            image_path = line.split()[0]

            image=cv2.imread(image_path)
            image=cv2.resize(image,(320,320))
            image=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
            image=np.expand_dims(image,axis=-1)
            image=np.expand_dims(image,axis=0).astype(np.float32)/255.
            print(image_path)
            yield [image]

    converter = tf.lite.TFLiteConverter.from_keras_model(model)
    converter.target_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
    converter.optimizations = [tf.lite.Optimize.DEFAULT]
    converter.representative_dataset = tf.lite.RepresentativeDataset(
        representative_dataset_gen)
    converter.inference_input_type = tf.int8
    converter.inference_output_type = tf.int8
    tflite_model_quant = converter.convert()
    import pathlib
    tflite_model_quant_file = pathlib.Path("./")/"test.tflite"
    tflite_model_quant_file.write_bytes(tflite_model_quant)

@Saduf2019 @jvishnuvardhan  any update？

within new model-optimizer,the bug has been fixed;


Enable to change state through the props

I need this too...

+1

@crazycodeboy Can we get this merged please ?


haiku adding cpuid_info data.

r? @Amanieu
(rust-highfive has picked a reviewer for you, use r? to override)

@JohnTitor Do we have any precedent for handling anonymous structs here?

We do, you can find some existing structs prefixed with __c_anonymous. I usually accept such a change with a check if it matches the declaration (in this case, I'd check cpuid_info's member).

@bors r+

:pushpin: Commit 3b10fd5e673e6d03a60af92a787f21f0417e8813 has been approved by Amanieu

:hourglass: Testing commit 3b10fd5e673e6d03a60af92a787f21f0417e8813 with merge cf5b24fecf4c2ad70e683f8ca27c8c2b886f4e61...

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: Amanieu
Pushing cf5b24fecf4c2ad70e683f8ca27c8c2b886f4e61 to master...


Add per column filtering for local data

Often it is useful to have the ability to filter data per column via text or pre-populated lists. This change allows per column filtering to be enabled and various options (such as text or select input) to be used.

We've refactored a few things surrounding column settings/metadata, so I'm working this in in a new branch. Column filtering should be making its way into master pretty soon.
Thanks for putting this together - this is ridiculously awesome! :+1:


Allow zero proof height packet recv ack timeout

Description

closes: #2751
Commit Message / Changelog Entry
type: commit message

see the guidelines for commit messages. (view raw markdown for examples)

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against correct branch (see CONTRIBUTING.md).
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards.
[ ] Wrote unit and integration tests.
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/).
[ ] Added relevant godoc comments.
[ ] Provide a commit message to be used for the changelog entry in the PR description for review.
[ ] Re-reviewed Files changed in the Github PR explorer.
[ ] Review Codecov Report in the comment section below once CI passes.

I think this is more or less r4r. Pushed some additional changes for MsgTimeoutOnClose and grouped the functions together logically in testing/solomachine.go.
I think we should add a SolomachineConfig struct of some sort to encapsulate the ibc identifiers for the tm chain and solomachine together. I'll create an issue for adding a test for UpdateClient and that can be done in a separate PR.

@chatton You may merge into my branch whenever you feel comfortable (also feel free to set my branch to automerge if I'm away when you do). If you'd like me to merge my branch into main first, just let me know.


Moving files and folders a little

🚀 [Deployed](https://github.com/Expensify/Expensify.cash
/actions/runs/765130740) 🚀 to
staging on Mon Apr 19 2021 at 22:41:56 GMT+0000 (Coordinated Universal Time)

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by @roryabraham in version: 1.1.11-1 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Certain (Lego) games behave strangely in reaction to DsHidMini compared to ScpToolkit

[X] I have searched open and closed issues for duplicates
[X] I am submitting a bug report for existing functionality that does not work as intended
[X] I have read https://vigem.org/Community-Support/
[X] This isn't a feature request or a discussion topic

Bug description
It is a bit strange but when trying to use my Dualshock3 controller trough DsHidMini to play the "old" Lego: The Hobbit / Lord of the Rings games the games react strangely to button inputs when in-game, when i try to jump (press X) or try to do quite a few other actions a second player is automatically added (the control setup in the options is also messed up quite a bit), it is incredibly annoying.
The reason why i am reporting a issue about this here is because when i switched back to using ScpToolkit like i was using when i last played the games (before i reinstalled windows) this issue never occurs and all the controls work as intend.
Seeing as DsHidMini seems to be the successor of ScpToolkit and some people working on this new tool have worked on the old ScpToolkit i thought that it would at least be worth a try to report this issue, of course i understand that this issue is only tangentially related to the project i understand if you (the developers) decide that this is out of scope of the project but i at least wanted to try.
Steps to reproduce

On Windows 10 (version 21H2) setup one Dualshock 3 using a wired connection and DsHidMini
Startup Lego: The Hobbit / Lord of the Rings (other Lego games of the same type may also have the same issue), go trough the menu and start a new game / load up a game.
Press a few buttons

Actual result: The second player should be added all of a sudden and the control configuration in the options menu is also messed up, you can try setting up the control devices correctly and removing the second player but the moment you start playing again (with one player) a second player is added again and the whole problem starts over.
Expected result: When the controller is set up to control player one no buttons on said controller should somehow add player two, you should just be able to play the game in single player mode as intended.
Machine info

CPU-Architecture: 64-bit operating system, x64-based processor
Windows version: Windows 10 20H2
Software/driver version(s): v2.2.282 DsHidMini

Out of scope as it's documented thoroughly (see #40, here and here) how and why DSHM operates in the way it does.


Can't run

Hi guys,
I share here my problem,
I have a issue with googlemaps,
thanks in advance,
there it is:
import googlemaps
ImportError: No module named googlemaps

try this
pip install googlemaps

Please follow the README.md file.
Run: pip install -r requirements.txt.  This will require you to have python and pip already installed.

thanks all :)
2016-07-22 17:58 GMT+02:00 James Droste<EMAIL_ADDRESS>
Closed #218 https://github.com/PokemonGoF/PokemonGo-Bot/issues/218.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PokemonGoF/PokemonGo-Bot/issues/218#event-731939780,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATpSvOfrxyrPNkfHCrd61Z8UyxWSs3cqks5qYOifgaJpZM4JS48R
.


FAB-17967 Updates for new language contributors

Makes it easier for new contributors to the documentation to get started,
including international language translators.
Signed-off-by: Anthony O'Dowd<EMAIL_ADDRESS>Type of change

Documentation update

Description

Makes it easier for contributors of documentation to get started, especially those wanting to start a new language translation.

Additional details

Worked with Malayalam and Brazilian Portuguese teams to develop these updates.

Release Note

Would be good to update 2.1.1 with this information

@pamandrejko and @jt-nti  Thanks ever so much for these helpful comments.  I think I've addressed them all, with changes, apart from Pam's comments on fork/vs clone, which I've clarified in the docs.

@Mergifyio backport release-2.1


The integration doesn't seem to work

HW: Rpi3
Home Assistant 2023.10.5
Supervisor 2023.10.1
Operating System 11.1
Frontend 20231005.0 - latest
my configuration
switch:
  - platform: rpi_rf
    gpio: 17
    switches:
      bell:
        signal_repetitions: 1
        pulselength: 388
        code_on: 3010305
        code_off: 3010305
        unique_id: "custom_unique_id"

Hello!
Same here, installed via HACS and added entry in configuration.yaml. Restarted, then what to look for?
Is there supposed to be a new entity with the "unique_id" I set? If so nothing shows up.
Home Assistant 2023.10.5
Supervisor 2023.10.1
Operating System 11.1
HW RPI 3B+

Hi,
Same here, doesn't work...
Core 2023.11.2
Supervisor 2023.11.3
Operating System 11.1
Interface utilisateur 20231030.2
I will investigate...

Ok, I've try lot of things.
I use hassos and it apparently disable gpio by default.
I don't know how to make it work :-/

Is there a way to test manually the command?
I had ha-rpi_rf installed on a my hassos 64bit on rpi4 and working like a charm with my cinema canvas. Then I had to reinstall hassos from scratch because my HDD died and now I have this configuration:
Core 2023.12.1
Supervisor 2023.11.6
Operating System 11.2
Frontend 20231208.2

the signal is sent, because I receive the audio feedback, but the canvas does not move :(


BUG: Not all local files are visible in the file explorer, lots of empty folders

name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

Describe the bug
A clear and concise description of what the bug is.
Link to the blitz that caused the error
https://stackblitz.com/edit/node-fzv5ay?file=package.json
To Reproduce
Steps to reproduce the behavior:

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

Expected behavior
A clear and concise description of what you expected to happen.
Version of webcontainer
Hash: 7286dbe8d47d3473cde7be488b7d048fb59b05f2
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
Browser name  = Chrome
Full version  = 90.0.4430.212
Major version = 90
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
performance.memory = {
totalJSHeapSize: 100769721,
usedJSHeapSize: 85591977,
jsHeapSizeLimit:<PHONE_NUMBER>
}
Additional context
Add any other context about the problem here.

Hi!
This is indeed not completely correct. Since this implementation is very alpha, we only allow uploading certain files. We need to make some changes to how they are handled internally to allow uploading all files.
The fact that .ts files are not uploaded is a bug though. 🙏 for reporting!!

This should be fixed now :tada: Thanks for the report.


delete Library Directory maybe cause NSUserDefault damage

delete Library Directory maybe cause NSUserDefault damage

any update?

Thanks for report.
Would you provide any detail information or demo project about this?

i'm using SwiftyUserDefaults, and after deleting all dirs, NSUserDefault can not work

You are free to customize what to delete.
Making it not to delete library dir may solve your problem.

Yes, but userdefault was  the most widely used .  is there any other solution to clear all dirty data cached

Guess SwiftyUserDefaults rely on some folders under Library Directory.
You need to find out what folder it is, and avoid to delete these folder.

The problem still exists even when we use NSUserDefaults


Can not prevent textbox to enter random values

There should be a option by which we can prevent user to enter random text which are not available on the populated list. If there's no item on list then user should proceed to form submit.

Hi, @r4surfer
For this option, if multiple is enabled, tags added by users are used.
When single is enabled, input value is used.

If there's no item on the list, the last character user typed should be deleted automatically.
Assuming that the list is fetched from server, when server takes long time to respond, it may slow user input.
Not adjacent character such as 'a' and 'abc' show the list and 'ab' don't show the list, preventing typying 'b' is not correct.
In a word, it will make things uncontrollable and complicated.


cps_ir:  statement label names are unstable and not minified

Statement labels should restart with each new function. L25 is because L1..L24 is used in other functions.  This causes names to be longer than necessary, and widespread gratuitous differences when a single function or compilation order changes.
      findFeed$1: function(id_) {
        var v0 = J.ArrayIterator$(this.feeds._internal), v1;
        L25: {
          while (v0.moveNext$0())
            if (P.identical(J.get$id$x(v1 = v0.__interceptors$_current), id_)) {
              v0 = v1;
              break L25;
            }
          v0 = null;
        }
        return v0;
      }
    },

The minified code still contains unminified labels:
iy:function(a){var z=J.b1(this.c.d),y
L25:{while(z.l())if(P.o(J.bX(y=z.d),a)){z=y
break L25}z=null}return z}},

There are other problems here:

There is only one loop, no nested loops, so no label is necessary.
The post-loop returns, so "v0=v1;break;" could be replaced by "return v1"

Obsolete


Comment should end in a period

I would not enforce this linting rule. I think this recommendation has been misinterpreted here as it refers to "comments documenting declarations", not to all comments.

I agree with @jmontesi after looking at it I think this isn't needed for this repo.

@jmontesi What do you mean by “comments documenting declarations”?  The article actually discusses using full sentences. I added periods to some comments inside functions, which isn’t necessary, but the linter checks specifically for Go Doc Comments.

@jmontesi What do you mean by “comments documenting declarations”?  The article actually discusses using full sentences. I added periods to some comments inside functions, which isn’t necessary, but the linter checks specifically for Go Doc Comments.

Basically I'm referring to the periods being added to all type comments regardless of if they document a declaration or not. For instance, this comment in the middle of a function:
// flushes buffer to screen.
As you modified many of those comments I thought the linter was enforcing that. But even if it only acts on comments documenting declarations I doubt if it's very relevant to our project at the moment because there's probably some previous work to do to have an organized and coherent GoDoc before focusing in those details.

@jmontesi Comments inside functions aren’t required to be full sentences by the linter or Golang guidelines. I can remove the periods from these comments in the PR, although I personally prefer to make every comment a full sentence. How is the Golang article's requirement not relevant to any Golang code? What about other controversial design decisions, such as tabs vs. spaces, camelCase vs. snake_case, and so on?

@rdavid If you are referring to this recommendation, it clearly says that the beginning that "Comments documenting declarations should be full sentences", so it applies only to that particular type of comments not to any Golang code. The two examples provided are comments for a type and a function declaration. And that makes sense because those comments will be extracted into the godoc documentation.
Broadening the scope of this recommendation to all comments is questionable as those comments won't be exported. I'm not against writing full sentences for those other type of comments but I didn't want a linter rule to enforce that either (I know now that it's not the case). If you prefer making all comments a full sentence then the first letter needs to be capitalized to be correct (and look less strange). So, instead of:
// flushes buffer to screen.
It should be:
// Flushes buffer to screen.
TL;DR:
I think it's better to improve the quality of the comments before adding this type of rules that focus on details but as long as it is not enforced to all type of comments it's not a big deal for me if you want to have it.


I can't connect to vnc

Wherever i type vncstart it shows nothing and i cant connect to vnc🥲

I'm also having the same problem.

Got vnc working the first time around then the connection ended and I can't connect anymore.

Shows this after sometimes and vncviwer says port can't be contacted

Shows this after sometimes and vncviwer says port can't be contacted

Okay sir let me check

Please help me to solve this problem 🥺 🙏 🥺
When I type vnstart it shows:- hostname: Name or service not known
vncserver: Could not acquire fully qualified host name of this machine.

Then i tried to install again bash gui.sh it shows:- sudo: unable to resolve host kali: Name or service not known

Please help me to solve this problem 🥺 🙏 🥺 When I type vnstart it shows:- hostname: Name or service not known vncserver: Could not acquire fully qualified host name of this machine.
Then i tried to install again bash gui.sh it shows:- sudo: unable to resolve host kali: Name or service not known

Did you change your hostname to kali? if you do so.. please change it back to localhost

Wherever i type vncstart it shows nothing and i cant connect to vnc🥲

what I did was the following:
sudo apt-get purge tigervnc-common tigervnc-standalone-server tigervnc-tools
sudo apt autoremove -y
sudo apt install tightvncserver
vncserver
vncserver -kill :1
vncpasswd
cd .vnc/
mv xstartup xstartup.old
nano xstartup
add this to the file:
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
save and exit (ctrl+x then press y)
chmod +x xstartup
your are done. you can now start your vnc server using: vncserver


add bbr executable for the bbr plugin

https://github.com/starkandwayne/shield/pull/339

The BBR plugin itself won't be available to the BOSH release for some time; do you still want this change merged?

This will be moved over to a separate addon release, by me, some time today.

See https://github.com/shieldproject/shield-addon-bbr-boshrelease


Split some of {commit}'s semantics into {merge_commit}

Closes #55.

Codecov Report

Merging #60 (b467215) into master (6f1b95c) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master     #60      +/-   ##
=========================================
- Coverage    2.03%   1.99%   -0.05%
=========================================
  Files           3       3
  Lines         638     651      +13
  Branches       97      97
=========================================
  Hits           13      13
- Misses        625     638      +13

Impacted Files
Coverage Δ

src/tinuous/__main__.py
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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

Closing in favor of #64.


OpenCL Assertion Error on cvtColor method

Please state the information for your system

OpenCV version: 3.1
Host OS: Linux (Ubuntu 14.04)
Compiler & CMake: GCC 4.8.4 & CMake 3.2.2

In which part of the OpenCV library you got the issue?
Examples:

ocl
converting color space (cvtColor)

Expected behaviour
Face detection using OpenCL
Actual behaviour
Assertion error:
OpenCV Error: Assertion failed (u->refcount == 0) in handle, file /path/to/opencv/modules/core/src/umatrix.cpp, line 741

Called by:
cvtColor(frame, frameGray, COLOR_BGR2GRAY);

Line that fails to assert: here
Additional description
Weird part: At the first the time I've run this example, it worked without problem. After shutting down and powering the computer again, I got this error. No extra software installations, updates or configurations are performed.
clinfo output: here
Code example to reproduce the issue / Steps to reproduce the issue
#include <vector>
#include <opencv2/opencv.hpp>

using namespace std;
using namespace cv;

int main(int argc, char **argv)
{
    VideoCapture camera{0};
    CascadeClassifier fd("/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml");
    UMat frame, frameGray;
    Mat result;
    vector<Rect> faces;

    while (camera.read(frame)) {
       result = frame.getMat(ACCESS_WRITE);

       cvtColor(frame, frameGray, COLOR_BGR2GRAY);
       equalizeHist(frameGray, frameGray);
       fd.detectMultiScale(frameGray, faces);

       for (auto rect : faces) {
           rectangle(result, rect, Scalar(0, 255, 0), 2);
       }

       imshow("Webcam", result);

       int key = waitKey(1) & 0xFF;

       if (key == 'q') break;
   }

    return EXIT_SUCCESS;
}

result = frame.getMat(ACCESS_WRITE);
cvtColor(frame, frameGray, COLOR_BGR2GRAY);

This assertion is just a message for potential data race: writing via result and reading via cvtColor.
BTW, OpenCL calls are asynchronous in general.
The right code:
// remove: result = frame.getMat(ACCESS_WRITE);
frame.copyTo(result);

or
// processing: cvtColor, etc
{
    // actually ACCESS_WRITE is not enough
    // (but access flags support is not accurate at this moment
    // so it may provide valid results with current OpenCV versions)
    Mat result = frame.getMat(ACCESS_RW); // local "result"
    for (auto rect: faces) ...
    imshow(result)
} // "result" mapping is released here

While waiting for your reply, I thought I might try different Nvidia drivers. Installed version 352.63 and run same example. It works now. :neutral_face:
Updated clinfo output is here. Significant differences that I could find are: OpenCL version 1.1 to 1.2 and Address Bits 32 Bits to 64 Bits
Closing the issue.

Hi. Apologies for butting in on this thread, but the notion that getMat is asynchronous isn't documented anywhere to my knowledge.
Is this in fact correct, that for proper synchronous usage of TAPI / UMat the .getMat accessor is considered unsafe?

that getMat is asynchronous

This is not true. But you can't use UMat and mapped Mat simultaneously.


fix ex, add js ex, add line, add closing backtick

webview2 example
I have noticed 3 other example used ={true} syntax.

Other examples used ={true}, so I believed using this syntax is correct.
I also think it is much more beginner friendly.

Removed JS example for clearCache()
There were no example for clearCache().
Add line
The note section seemed to be seperate from other explanation.
I added a new line that was joined by other explanations.
It was also a bit hard to read when those two were connected.
Unclosed backtick
The bactick for an example seemed to be missing.
A whole section was shown as a code.

I'm not sure why CircleCI isn't seeing this or how to make it do so.... this branch doesn't even appear in CircleCI, so I can't run it manually I don't think.
Perhaps just force pushing your branch again might "refresh" things so CircleCI sees it? I just rebased an older PR and it ran there, so it's not completely broken...

I tried closing and re-opening the pull request.

Thanks @HyunseungLee-Travis!


enable normal select field

I want to use a normal select field option on my custom module settings. I was able to figure out using renderer option in the backend editor but it is not possible using the ReactJS enabled editor. Anyone can guide me please?

You can simply use a 'select' type. Make sure to provide the proper 'options':
        $fields['test'] = array(
            'label'   => 'Test,
            'type'    => 'select',
            'options' => array(
                'val1'     => 'Value 1',
                'val2'     => 'Value 2',
            ),
            'default' => 'val2',
            'toggle_slug' => 'test',
        );

No, I'm referring about the output of normal select field like example below:

Text
Text


Docker container not showing webui when lauched, instead going to GitHub repo

Hello, I would like to know if someone that has successufully installed RustPaste in Docker, experienced the same as me.
When, I launch the container, it simply redirects the webui to the GitHub repo (orhun/rustypaste).
Note: I used the config.toml file as it is, didn't modified anything. All things related to port redirection and so on, I do that via command.
What could be happening here?

Hello, that's an expected behavior. Rustypaste redirects to the repository if you don't give it a path. Try uploading a file.

@orhun maybe you can provide something like a landing page with man pages? Similar to http://ix.io/

Hey I'm closing this in favor of #13


SMS not showing after restore

Hi everyone,
I have an issue with restoring my SMS, I had to do a factory reset on my phone because of major issues, after a successful restore according to the app (almost 4000 SMS were saved), none of them show up in my SMS app. Any help appreciated.
Regards

Android version : 7.1.2
Phone model / brand : Fairphone 2
SMS Backup+ version installed: 1.5.11
Messaging app: Default SMS android app (5.2.062 Pegasus_RC17_xxhdpi.armeabi-v7a.phone)

Can you confirm that you've sighted the SMSes in your GMail?
Are they still tagged with "SMS" (or with the label configured into SMS Backup+, if you've changed if)?

I had the same issue this morning.  I am also using Pegasus_RC17, but the v8a version, and I was able to fix this to get the messages to show up.

I started by going into the Messages app, going to Settings > Chat Features, and turning off the "Enable chat features" (I think this is the new RCS feature that I enabled when setting up my new phone, and might be what is causing this issue).
After that, I went into Android Settings and then the App settings.  I found the Messages app in app settings, and I Force Closed the app, then went to storage to Clear Cache and then Clear Data.
Finally, I did a Reboot for good measure, and after the reboot, I opened the Messages app, where the app reinitialized and all the messages that I restored started populating the app.

I had the same issue this morning. I am also using Pegasus_RC17, but the v8a version, and I was able to fix this to get the messages to show up.

I started by going into the Messages app, going to Settings > Chat Features, and turning off the "Enable chat features" (I think this is the new RCS feature that I enabled when setting up my new phone, and might be what is causing this issue).
After that, I went into Android Settings and then the App settings.  I found the Messages app in app settings, and I Force Closed the app, then went to storage to Clear Cache and then Clear Data.
Finally, I did a Reboot for good measure, and after the reboot, I opened the Messages app, where the app reinitialized and all the messages that I restored started populating the app.

Thanks !, you solved it, I followed your way except step #1 which doesn't apply to my phone (not compatible).
All my SMS are back (tagged as "SMS " to answer the first reply)


Add header and documentation for Claiming Website on Yandex

Prerequisites

[x] My Pull Request is filled against the next branch
[ ] All commits in my Pull Request conform to Elegant Git commit Guidelines

Recommended Steps

[x] My patch adds a new feature, therefore I have also added a help article about it
[x] My patch changes Elegant behavior, therefore I have updated the help article to reflect this change
[x] My commits are signed

Description
Closes #551

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


Cleanup RBAC for KDD

Description
Make RBAC docs more clear, and rename the kdd rbac yaml so that it's less confusing with the etcd version.
TODO:

[x] Add RBAC notes to integration guide

Fixes https://github.com/projectcalico/calico/issues/402
Todos

[ ] Tests
[ ] Documentation
[ ] Release note

Release Note

None required

@robbrockbank ok, updated. PTAL


Add "Back To Home Button" in "Legal and Missing" Pages

Hey @SUGAM-ARORA | issue closes #343
I have added back to home button in all missing pages to ensure user is convenient to navigate back to the homepage.
The Pages are:

Privacy Policy
Terms and Conditions
Licensing
Careers Page

Type of PR

[X] Feature enhancement

Screenshots / videos (if applicable)

Privacy Policy

Terms and Conditions

Licensing

Careers Page

Checklist:

[x] I have performed a self-review of my code
[x] I have read and followed the Contribution Guidelines.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.

@SUGAM-ARORA please merge this PR,thank you!

@SUGAM-ARORA I've updated the Branch


no plot_furniture function in visualization_activity.py

The visualization_activity.py cannot visualize the generated data because the plot_furniture function is not defined.

Thanks. The function is added in the newest commit.


explorer-client: add latest transactions

home page now shows latest transactions table using mock data (for demo purposes)
table of transactions has a maximum height up to 60vh

https://user-images.githubusercontent.com/10210143/156415932-43b72e95-648d-4a98-8b0f-8b5de65502a3.mov
resolves #423

Hey all! Just coming back to this.  What still needs to happen here?  I think we can probably move the elided clipped final row into a separate change.  I'm good with getting the functionality in and polishing with possible UX cues as a follow-up (particularly when we get a UX designer onboard).


Platform mismatch when specifying platforms not including the host

👋  Hiya @cgrindel! Thanks a ton for this project, it's been really interesting to learn how we can use SwiftPM to build products for Bazel to consume. I'm having a bit of a tough time understanding where I'm going wrong getting a target to build for iOS only using rules_spm.
Repro
I put together a small example module in a fork that illustrates the bug I'm running into.

Add platforms = [".iOS(.v14)"] to the spm_repositories invocation in the WORKSPACE
Add a Swift package that includes platforms within it's package description, like apollographql/apollo-ios
Build the module with bazel build //Sources:Foo

Expected Behavior
The bazel build invocation builds the SwiftPM target only for the given platforms (in this case, iOS), since there's no need to build dependent modules for other platforms.
Actual Behavior
The following error is thrown from the SwiftPM invocation
error: the library 'Placeholder' requires macos 10.10, but depends on the product 'Apollo' which requires macos 10.14; consider changing the library 'Placeholder' to require macos 10.14 or later, or the product 'Apollo' to require macos 10.10 or earlier.

Verbose output
❯ bazel build //Sources:Foo --sandbox_debug
INFO: Analyzed target //Sources:Foo (24 packages loaded, 1765 targets configured).
INFO: Found 1 target...
ERROR: /private/var/tmp/_bazel_eliperkins/0e5e28979b49af89fb8d84a6e03e62ba/external/swift_pkgs/BUILD.bazel:644:12: Building Swift package (external/swift_pkgs) for x86_64-apple-macosx12.1 using SPM. failed: (Exit 1): sandbox-exec failed: error executing command
  (cd /private/var/tmp/_bazel_eliperkins/0e5e28979b49af89fb8d84a6e03e62ba/sandbox/darwin-sandbox/269/execroot/ios_app && \
  exec env - \
    DEVELOPER_DIR=/Applications/Xcode-13.2.1.app/Contents/Developer \
    TMPDIR=/var/folders/v0/4yqzqdxd6j13p6kl5c8qwlhh0000gn/T/ \
    XCODE_VERSION_OVERRIDE=<IP_ADDRESS>C100 \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_eliperkins/0e5e28979b49af89fb8d84a6e03e62ba/sandbox/darwin-sandbox/269/sandbox.sb /var/tmp/_bazel_eliperkins/install/0c7899cb691a00c6ca493ede5765e1af/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/cgrindel_rules_spm/spm/private/exec_spm_build --worker bazel-out/host/bin/external/build_bazel_rules_swift/tools/worker/worker --sdk_name macosx --spm_utility external/cgrindel_rules_spm_local_config/spm_utilities/git -Xspm --disable-sandbox -Xspm --configuration -Xspm release -Xspm --manifest-cache -Xspm none -Xspm --disable-repository-cache -Xswiftc -target -Xswiftc x86_64-apple-macosx12.1 -Xcc -target -Xcc x86_64-apple-macosx12.1 --package-path external/swift_pkgs --build-path bazel-out/darwin-fastbuild/bin/external/swift_pkgs/spm_build external/swift_pkgs/spm_build/checkouts/SQLite.swift/Sources/SQLiteObjc/include/SQLiteObjc.h bazel-out/darwin-fastbuild/bin/external/swift_pkgs/spm_build/x86_64-apple-macosx/release/SQLiteObjc.build/SQLiteObjc.h bazel-out/darwin-fastbuild/bin/external/swift_pkgs/modulemaps/SQLiteObjc.build/module.modulemap bazel-out/darwin-fastbuild/bin/external/swift_pkgs/spm_build/x86_64-apple-macosx/release/SQLiteObjc.build/module.modulemap)
error: the library 'Placeholder' requires macos 10.10, but depends on the product 'Apollo' which requires macos 10.14; consider changing the library 'Placeholder' to require macos 10.14 or later, or the product 'Apollo' to require macos 10.10 or earlier.
Target //Sources:Foo failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /Users/eliperkins/src/rules_spm/examples/ios_app/Sources/BUILD.bazel:3:14 Compiling Swift module //Sources:Foo failed: (Exit 1): sandbox-exec failed: error executing command
  (cd /private/var/tmp/_bazel_eliperkins/0e5e28979b49af89fb8d84a6e03e62ba/sandbox/darwin-sandbox/269/execroot/ios_app && \
  exec env - \
    DEVELOPER_DIR=/Applications/Xcode-13.2.1.app/Contents/Developer \
    TMPDIR=/var/folders/v0/4yqzqdxd6j13p6kl5c8qwlhh0000gn/T/ \
    XCODE_VERSION_OVERRIDE=<IP_ADDRESS>C100 \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_eliperkins/0e5e28979b49af89fb8d84a6e03e62ba/sandbox/darwin-sandbox/269/sandbox.sb /var/tmp/_bazel_eliperkins/install/0c7899cb691a00c6ca493ede5765e1af/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/cgrindel_rules_spm/spm/private/exec_spm_build --worker bazel-out/host/bin/external/build_bazel_rules_swift/tools/worker/worker --sdk_name macosx --spm_utility external/cgrindel_rules_spm_local_config/spm_utilities/git -Xspm --disable-sandbox -Xspm --configuration -Xspm release -Xspm --manifest-cache -Xspm none -Xspm --disable-repository-cache -Xswiftc -target -Xswiftc x86_64-apple-macosx12.1 -Xcc -target -Xcc x86_64-apple-macosx12.1 --package-path external/swift_pkgs --build-path bazel-out/darwin-fastbuild/bin/external/swift_pkgs/spm_build external/swift_pkgs/spm_build/checkouts/SQLite.swift/Sources/SQLiteObjc/include/SQLiteObjc.h bazel-out/darwin-fastbuild/bin/external/swift_pkgs/spm_build/x86_64-apple-macosx/release/SQLiteObjc.build/SQLiteObjc.h bazel-out/darwin-fastbuild/bin/external/swift_pkgs/modulemaps/SQLiteObjc.build/module.modulemap bazel-out/darwin-fastbuild/bin/external/swift_pkgs/spm_build/x86_64-apple-macosx/release/SQLiteObjc.build/module.modulemap)
INFO: Elapsed time: 17.604s, Critical Path: 4.49s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully

From here, my next step was to add .macOS(.v10_15) to work around this issue, which works! I'm not sure if there's something funky going on here that's causing the SwiftPM invocation to build a target which assumes the host platform or something. I'm relatively new to Bazel so forgive me if I'm missing something here!

Hi, @eliperkins. I believe that you are running into a nuance of Swift PM build platforms. Here are what I think are the relevant statements from the documentation.

By default, Xcode assigns a predefined minimum deployment version for each supported platforms unless you configure supported platforms using the platforms API. This predefined deployment version is the oldest deployment target version that the installed SDK supports for a given platform. One exception to this rule is macOS, for which the minimum deployment target version starts from 10.10.

Xcode emits an error if a dependency isn’t compatible with the top-level package’s deployment version. The deployment target of a package’s dependencies must be lower than or equal to the top-level package’s deployment target version for a particular platform.

Specifically, in the example that you provided, Apollo specifies macOS(v10_14). The supported platforms declaration in your WORKSPACE file does not specify any macOS platform. Swift PM defaults to macOS(v10_10). Since the consumer platform declaration is lower than the dependency's platform declaration, Xcode fails with the error.
I updated your platforms declaration to include macOS(v10_14).
spm_repositories(
    name = "swift_pkgs",
    dependencies = [
        spm_pkg(
            "https://github.com/apollographql/apollo-ios.git",
            name = "Apollo",
            exact_version = "0.50.0",
            products = ["Apollo"],
        ),
    ],
    platforms = [
        ".iOS(.v14)",
        ".macOS(.v10_14)",
    ],
)

I am able to bazel test //... the example successfully.
In terms of building for Apple targets, you need to add an appropriate rules_apple declaration. There is some magic here. In short, the target platform for the swift_library will be influenced by the downstream consumers of that rule. I included the ios_sim example to demonstrate this technique.
Does that help?

One exception to this rule is macOS, for which the minimum deployment target version starts from 10.10.

Ahhhh, this is totally surprising to me. I didn't notice that in the Apple docs before. Thanks for pointing that out to me. ❤
Totally understood on the rules_apple stuff too. I think what was most surprising to me here was that rules_spm seemed to be building SwiftPM products for macOS, when the rules_apple target that was defined was for an ios_framework, so it seemed to me like SwiftPM was building for the wrong platform and linking that into an iOS framework binary, but it seems more that SwiftPM will overbuild for all platforms (because it doesn't support only emitting iOS libraries, as macOS will always be implicitly required).
Thanks for all of this! I'm looking forward to kicking the tires on rules_spm some more! Thanks for all your work on this so far.


Auto fixing

It would be super nice to have auto fix command that would change e.g.:
@Query()
userName(): string | null{
  return null;
}

into
@Query(() => String, { nullable: true })
userName(): string | null {
  return null;
}

The same goes to common cases like arrays and promises.

That is a great idea! I believe it should not be too hard to implement, will look into this soon.

Any updates on this ? I would love to see this


Write Wiki

Like on the laravel commonmark extensions examples on how to do each.

Feel free to update the README.md file in this repo.


Vectorization of code

Dear Dr. Daniel Tarnu,
thanks for the package, looks interesting. I tried the package out on a Google Colab notebook, and it's indeed useful for calculating the joint spectral characteristics of linear operators exactly.
I was wondering since the complex code takes a while to run; have ya thought about vectorizing the code with Numpy operations? Is it possible to vectorize the convex operation constraints?
This is important, especially for the workhorse part of the algorithm (in the case of complex numbers) where the most time-intensive computations are located between lines 73 and 100 of algo.py. Vectorizing this portion of the code should make your open-source software more efficient.

To give a few pointers:
Lines 14 to 16 of absco.py defines an array of all zeros using a loop, but only fills one entry of the array with a 1.
b = [np.array([1,0])]
for i in range(n):
    b.append(np.zeros(2))

Perhaps this could be done more efficiently using numpy.zeros.
The definition of soc_constraint in absco.py involves a list comprehension. is it not possible to vectorize here? Does the convex optimization tool not allow for the matrix put in to be batched?
flatten_complex_vector defined in algo.py, perhaps numpy.stack could help here?
Line 39 of algo.py could be egregious here. I believe that it would have been much simpler to vectorize the operation using the standard numpy matrix operations.
Lines 41 to 47 of algo.py appears to be searching for the max eigenvector over a batch of matrices using a loop. It would be important to note that numpy.linalg.eig is a batched operation.
Some miscellaneous that aren't necessarily vectorization related, but could lead to some speed up in code;
On line 30 of absco.py you reinitialize zero arrays over and over again in a loop.
row = np.append(np.zeros(n + 1), (np.insert(cloud[2*i::2*m], np.arange(1, n + 1), 0) - np.insert(cloud[2*i + 1::2*m], np.arange(0, n), 0)))

Perhaps initializing these arrays once, outside of the loop, could give some speedup.


Split E101 to E101a and E101b, adding E101a test for repeated path

Fixes #52

Coverage increased (+0.01%) to 94.524% when pulling 8b07e7c415611a0c7687c63d59568fa62d070097 on issue-52 into b955d49be56e58ab0a012617f929ff6ec5eda100 on develop.


Associate groupBy v2 resources with the Sequence lifecycle.

This fixes a potential issue where groupBy resources could be allocated to
create a Sequence, but then the Sequence is never used, and thus the resources
are never freed.
I'm not sure if this would be an issue in production or not (it depends on whether
something doing merging would run a QueryRunner but then not use the Sequence).
It did cause issues in the unit tests though, and fixing it would be good in general, so
here is a patch.
Also simplifies how groupBy handles config overrides (this made the new
unit test easier to write).

👍

looks good :+1:


fix(cirriculum): Adjust wording of error messages in "replacing-if-else-chains-with-switch"

Checklist:

[X] I have read and followed the contribution guidelines.
[X] I have read and followed the how to open a pull request guide.
[X] My pull request targets the main branch of freeCodeCamp.
[X] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

It was a very simple edit to fix these.

Thank you for your contribution to the page! 👍
We are happy to accept these changes and look forward to future contributions. 🎉