Adding ability to augment data

Data augmentation is a technique to increase the amount and diversity of data without actually collecting new data. This comes in handy when labelled data are not easy to come by, and can help increase robustness of machine learning models. Currently in Label Studio, there isn't a way to augment data.
As an example, I have images for detection tasks. After drawing bounding boxes and labelling them, it would be nice to have a way to augment the images inside the "Data Manager" page of Label Studio so that I can have all my image data in one place and also compare the augmented result against the original images (for sanity checks). For images, there are different types of augmentations I have in mind:

Geometric transformations: horizontal/vertical flips, rotation
Color space transformations: random brightness change, hue saturation change, channel dropout
Random erasing: random cutout of regions in image
Kernel filters: sharpening, Gaussian/Median blur
Mixing images: mixup, cut and mix.

Currently, my workflow is to download the labelled images and then have my own script to augment them. But having augmentation built-in to Label Studio would be valuable; and if we could have define different transformation pipelines and permute/assemble them into different images operators that would be awesome.
Granted, augmentation might not be as straight forward for other types of data, e.g. Audio. So maybe this feature could start out available to only certain subset of labelling tasks. Also, it might not be scalable for the team to customize transformation for different customers' satisfaction. So maybe an easier route is to have built in "hooks" inside the Label Studio backend that user can use to define different transformation. Label Studio frontend could just provide a way for user to choose and apply those augmentation steps, and store the transforms as metadata for each image.

There is no benefit from applying these augmentations before labeling as they do not change the label but increase the amount of work required to label the complete dataset. You should rather augment data in your dataloader after annotation is complete.

I tend to disagree slightly on this @twsl. I agree that augmentation in the traditional machine learning sense isn't beneficial here. However, color, contrast, saturation, or hue augmentation for making labeling easier would be beneficial. For example, in certain imaging setups, e.g. fluorescent microscopy, there is limited contrast and actually inverting the colors makes labeling easier.
As such, I think adding ability to modify image color directly in label-studio would be beneficial. Although this might deserve a different issue altogether.

@tomouellette I agree with you, that's why I created an issue https://github.com/heartexlabs/label-studio/issues/1425, https://github.com/heartexlabs/label-studio-frontend/issues/299 and PR https://github.com/heartexlabs/label-studio-frontend/pull/301, https://github.com/heartexlabs/label-studio-frontend/pull/328 more than a year ago, cause I had similar requirements . But getting this merged has been a hassle.

@twsl Great to hear you're on it! Even a simple addition of a manual slider enabling the transformation of the color spectra/intensity would be great.

@tomouellette wouldnt call it that. I closed my PR cause I couldnt get it merged and lost motivation to keep the PR updated. Feel free to take the code and start a new attempt.


Support for Swift projects in a subdirectory of repo

Hello!
My team uses a monorepo in which our iOS project does not live in the root directory of the repository. cocoapods-patch uses git apply to apply patches, however, git apply expects to be run from the root directory of the repository, otherwise it may finish with exit code 0 without apply any patches. (See https://stackoverflow.com/questions/24821431/git-apply-patch-fails-silently-no-errors-but-nothing-happens)
This PR adds support for iOS projects which live in a repo subdirectory by changing the working directory to the repository root, and when invoking git apply, join the --directory argument with the relative path between the iOS project directory and the repository root.
I set up a test repo for this directory here: https://github.com/zenithlight/cocoapods-patch-test
In order to demonstrate the fix:

git@github.com:zenithlight/cocoapods-patch-test.git

cd cocoapods-patch-test

bundle install

pod install

Inspect the contents of Pods/AWSCore/AWSCore/Utility/AWSCategory.m. Observe that despite the existence of a patch in ios/patches folder, the patch was not applied. Contents of file:

478 - (BOOL)aws_isVirtualHostedStyleCompliant {
479     if (![self aws_isDNSBucketName]) {
480         return NO;
481     } else {
482         return ![self<EMAIL_ADDRESS>483     }
484 }

in ios/Gemfile, replace gem 'cocoapods-patch' with gem 'cocoapods-patch', :git => 'https://github.com/zenithlight/cocoapods-patch.git'

bundle install

pod install

Check contents of Pods/AWSCore/AWSCore/Utility/AWSCategory.m again. Contents of file:

478 - (BOOL)aws_isVirtualHostedStyleCompliant {
479     return NO;
480 }

Thanks for taking a look!

Thanks for this @zenithlight , I will take a look at this later today and ship a new version if everything checks out :)

Thanks for taking a look! I am happy to update the pull request if there are any changes that need to be made.

@zenithlight I took a look at this. Unfortunately it no longer seems to work with projects that live in the root :(
Could you double check your logic for determining the paths and make sure it also works with projects in root?

@zenithlight I've fixed the issue with projects that live at the root. Thanks for your contribution!

@zenithlight I've fixed the issue with projects that live at the root. Thanks for your contribution!


[Image Resizer - Edit image sizes]: Keyboard focus indicator does not navigate to the 'Clear text' button defined for edit fields on Edit a size dialogue.

Microsoft PowerToys version
0.45.0
Running as admin

[ ] Yes

Area(s) with issue?
Image Resizer
Steps to reproduce
Test Environment:
OS: Windows 11 Version Dev (22454.1000)
App version: 0.45.0
App name: Power Toys
Screen Reader: Narrator
Repro Steps:

Launch 'Power Toys' application.
On left side Navigation pane navigate to Image resizer menu item and select it.
On Image resizer pane navigate to any edit size button under Image sizes heading.
Activate the control and edit dialogue will appear.
Navigate using keyboard to the name edit field and observe a clear text button appears.
Try to access the control using keyboard.

Note:
This issue is repro throughout on all edit fields with clear text buttons. For e.g. 'JPEG quality level' edit field.
Also similar issue was found on 'Okay' and 'Cancel' button on 'Type' dialogue, on 'Remap a key' pane, that is a part of 'Keyboard Manager', refer to the attachment below.
User Impact:
If the content is not operated through a keyboard or keyboard interface, it would not be operable by people with no vision, some people with hand tremors find using a mouse very difficult, as well as by people who must use alternate keyboards or input devices that act as keyboard emulators. Individuals with low vision would also find it difficult to control it from the keyboard.
Guideline Reference:
https://www.w3.org/WAI/WCAG21/Understanding/keyboard.html
https://user-images.githubusercontent.com/87321414/134898667-b1aca445-4c56-4081-b8b1-3a9b9c4c0827.mp4
✔ Expected Behavior
Keyboard focus indicator should navigate to the 'Clear text' button defined on the edit fields and should be fully functional.
❌ Actual Behavior
Keyboard focus indicator does not navigate to the 'Clear text' button defined for edit fields on Edit a size dialogue. Though the control is fully accessible using mouse.
Other Software
No response
crutkas: removing as they belong to other bugs IMO

https://user-images.githubusercontent.com/87321414/134907981-a6040ab2-3b13-46c4-beb1-f0455be1faad.mp4
https://user-images.githubusercontent.com/87321414/135026886-1623fdfc-4162-4413-ae50-d55f0f06c615.mp4

@crutkas There are actually 2 issues:

[ ] Keyboard navigation in Keyboard Manager shortcut dialog does not work. (Since we're listening for input, and allow users to remap the Tab key, I wonder how to resolve this..)
[ ] WinUI NumberBox / TextBox have an accessibility issue: the x (clear) button is not keyboard accessible.

As the contents in the edit field that are highlighted can be cleared directly by keyboard hence reducing its Severity to Sev2.

.

WinUI 3, this still has same effect.

Closing by design per linked issue

As verified, as per the comment the user can use shortcut keys A and delete to clear the text. Hence, closing the bug.


update connection types labels and annotations docs

Updates the dashboard docs with labels and annotations for connection types.

updated


Cond monitor

Add support for monitoring specific tables

With this change, caller can choose what tables she/he cares to
monitor by using 2 optional flags:

  -monitor string
        Only monitor these comma-separated tables
  -no-monitor string
        Do not monitor these comma-separated tables

The table names provided are not case sensitive.
If none of these 2 parameters are used, all tables are monitored.

To monitor all tables, except Connection and NB_Global:

   ovsdb-mon --db "tcp:${PODIP}:6641" -auto -no-monitor Connection,nb_global

To only monitor NAT table:

   ovsdb-mon -monitor nat

Fixes: #18

PTAL :)
/assign @amorenoz @halfcrazy

Thanks @flavio-fernandes!

I love the feature @flavio-fernandes, thanks so much.
I have only one request. Would you kindly update the README.md to expose this new feature?
Apart from that LGTM

Darn! you already have :-D


Application Rejection

In gitlab by @A-Lawrence on Aug 20, 2016, 19:31
Allow applications to be rejected with the following reasons:

Negative reference received
Non-compliant with the Visiting & Transferring Policy
Other, please specify
Allow the user to provide a reason

This reason should then be emailed to the applicant.

In gitlab by @A-Lawrence on Aug 20, 2016, 19:35
Removed ~98471 label

In gitlab by @A-Lawrence on Aug 21, 2016, 15:37
Removed ~98471 label

In gitlab by @A-Lawrence on Aug 21, 2016, 16:09
mentioned in commit 6338c999efb50ef64810e4c571b73ca3173651a8


Increment Version

@JuliaRegistrator register() DiscreteEventsLite v0.1.1

Registration pull request created: JuliaRegistries/General/27175
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.1 -m "<description of version>" dac3d8a81773169256a3ef683453e7a0d86c3dd7
git push origin v0.1.1

Registration pull request created: JuliaRegistries/General/27175
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.1 -m "<description of version>" dac3d8a81773169256a3ef683453e7a0d86c3dd7
git push origin v0.1.1


Unable to send message on server join

Sometimes the bot is unable to send a message to a newly joined member.

Needs more troubleshooting.

Solution: enable server intents on the Discord Developer Portal.


Upgrade deps

Pull Request Motivation
Upgrade all Golang deps.
"github.com/pavel-v-chernykh/keystore-go/v4" was renamed to "github.com/pavlo-v-chernykh/keystore-go/v4" (Ukrainian variant of name)
x-kubernetes-map-type: atomic values were added upstream to "k8s.io/api/core/v1".Affinity, since this value is embedded in some of cert-manager's CRDs, these were also updated
Kind
\kind cleanup
Release Note
NONE

Could you split this into two commits, one with actual changes to code and the other with the go fmt changes? 😄

/retest

/retest

blocked on #5376

/retest all

/test all

Looks like the kind version needs updating to v1.15.0 in order for the 1-25 tests to run.

Looks like the kind version needs updating to v1.15.0 in order for the 1-25 tests to run.

ref: https://github.com/cert-manager/cert-manager/pull/5459

/test pull-cert-manager-master-e2e-v1-25

/retest

/retest


adding linear probing in hashtables in c++

Have you read the Contributing Guidelines on Pull Requests?
yes
Description
fixes #3898
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
issue #3898

@aaadddiii Found two PR for the same issue #3951 and #4088. Closing this as of now. Open only one PR. It becomes difficult for us which PR to review.

one is a c++ implementation and other is in c


[backport] Improve docs of contrastive and triplet

Backport of #3564

LGTM! The Travis failure should be fixed in the latest v3 branch.


Version number is always included in monorepo root?

Search terms

monorepo
includeVersion
version

Expected Behavior
In a monorepo, when typedoc.json in the root of the monorepo has:
{
  "includeVersion": false
}

I would expect the version number not to be displayed.
Actual Behavior
The version number is displayed:

"includeVersion": false is respected for individual monorepo packages (via typedoc.json in each package folder), just not the monorepo root.
Steps to reproduce the bug
Build docs for a monorepo with "includeVersion": false in the root typedoc.json
Environment

Typedoc version: 0.25.2
TypeScript version: 5.2.2
Node.js version: 20.8.0
OS: Mac OS X 13.5.1

Experimenting a bit more, the version number is always included in non-monorepo projects too, even if you have "includeVersion": false in typedoc.json.  If you specify --includeVersion false on the CLI it works as expected, however and omits the version number in the generated docs.
This seems related to https://github.com/TypeStrong/typedoc/issues/2424 in that some options are recognised on the CLI but ignored in typedoc.json.

I'm going to have to ask for a reproduction for this one, the example project I set up for packages mode when first developing the project has a setup that does exactly this, and works as expected, might be a good starting point for a minimal repro.
https://github.com/Gerrit0/typedoc-packages-example

Ah, sorry for opening this, it was user error.  I was passing a different --includeVersion arg to typedoc elsewhere.


Unable to add a document to existing envelope

hi Team,
When I try to add a pdf document to existing draft envelope in, i get below INVALID_REQUEST_PARAMETER error.
ce
{
"errorCode": "INVALID_REQUEST_PARAMETER",
"message": "The request contained at least one invalid parameter. A filename was not found in the Content-Disposition header ('filename="filename.ext""
}
0
I can see file name in the content disposition header section filename="Yahoo.pdf", but getting error from docusign that it is not avialable.
Rest service call to add document to envelope is:
https://demo.docusign.net/restapi/v2/accounts/XXXXXX/envelopes/ccd111ed-f0e8-446f-9271-01628dd4d18d/documents/99680
PUT https://demo.docusign.net/restapi/v2/accounts/XXXXXX/envelopes/ccd111ed-f0e8-446f-9271-01628dd4d18d/documents/99680 HTTP/1.1
Authorization: SAML <>
Schwab-RRBus-PortType: DocuSignRESTInterface
Schwab-RRBus-ServiceKey: uddi:schwab.com:service:sch.core.ria.DocuSignHttpService
Content-Type: multipart/form-data; boundary=BBOOUUNNDDAARRYY
Accept: application/json
Host: intermediary-test.dev.abc.com:9049
Content-Length: 2070764
Expect: 100-continue
Content-Type: application/pdf
Content-Disposition: file; filename="Yahoo.pdf"; documentId="99680"
%PDF-1.4
%����
...
...
...
is above is not the proper way to call rest service to add document to draft envelope? Could you please provide me correct rest service call?
Appreciate your help.
Regards,
Ajay

@ajayraghuwanshi Sorry for the delayed response.
If you are still facing this issue, please refer to the sample code below to get you unblocked.
https://github.com/docusign/docusign-csharp-client/blob/master/test/SdkTests/UnitTests.cs#L62
Please reopen this issue if you still have any questions/concerns.


CVE-2018-3639 speculative store bypass aka Variant 4

RancherOS Version: (ros os version)
v1.4.0
Refer to:

https://www.redhat.com/en/blog/speculative-store-bypass-explained-what-it-how-it-works
https://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/Variant4

The kernel 4.14.43 bring SSBD For Spectre V4.
https://www.phoronix.com/scan.php?page=news_item&px=Linux-4.9-To-4.16-SSBD
	spec_store_bypass_disable=
			[HW] Control Speculative Store Bypass (SSB) Disable mitigation
			(Speculative Store Bypass vulnerability)

			Certain CPUs are vulnerable to an exploit against a
			a common industry wide performance optimization known
			as "Speculative Store Bypass" in which recent stores
			to the same memory location may not be observed by
			later loads during speculative execution. The idea
			is that such stores are unlikely and that they can
			be detected prior to instruction retirement at the
			end of a particular speculation execution window.

			In vulnerable processors, the speculatively forwarded
			store can be used in a cache side channel attack, for
			example to read memory to which the attacker does not
			directly have access (e.g. inside sandboxed code).

			This parameter controls whether the Speculative Store
			Bypass optimization is used.

			on      - Unconditionally disable Speculative Store Bypass
			off     - Unconditionally enable Speculative Store Bypass
			auto    - Kernel detects whether the CPU model contains an
				  implementation of Speculative Store Bypass and
				  picks the most appropriate mitigation. If the
				  CPU is not vulnerable, "off" is selected. If the
				  CPU is vulnerable the default mitigation is
				  architecture and Kconfig dependent. See below.
			prctl   - Control Speculative Store Bypass per thread
				  via prctl. Speculative Store Bypass is enabled
				  for a process by default. The state of the control
				  is inherited on fork.
			seccomp - Same as "prctl" above, but all seccomp threads
				  will disable SSB unless they explicitly opt out.

			Not specifying this option is equivalent to
			spec_store_bypass_disable=auto.

			Default mitigations:
			X86:	If CONFIG_SECCOMP=y "seccomp", otherwise "prctl"

Users can use ros config syslinux to edit the boot params.

What is status with this one?
It would be nice to get 1.4.1/1.5.0 out.

@olljanat We are close to ship v1.4.1.

Backported to v1.4.1.


Make route matched pattern groups more consistent

... highlights how inconsistent the way the capturing works is. Especially as_format which can be None or "" or .json or json or not used at all in the case of TableView.

https://github.com/simonw/datasette/blob/764738dfcb16cd98b0987d443f59d5baa9d3c332/tests/test_routes.py#L12-L36
Originally posted by @simonw in https://github.com/simonw/datasette/issues/1666#issuecomment-1073039670
Part of:

#1660

I called it as_format to avoid clashing with the Python built-in format() function when these things were turned into keyword arguments, but now that they're not I can use format instead.
I think I'm going to go with database, table, format and pks.

OK, I've made this more consistent - I still need to address the fact that format can be .json or json or not used at all before I close this issue.

I can now read format from request.url_vars and delete this code entirely: https://github.com/simonw/datasette/blob/b9c2b1cfc8692b9700416db98721fa3ec982f6be/datasette/views/base.py#L375-L381


Add Unity support, generate UPM package

This is a WIP PR to get early feedback while I look into setting up the CI to publish the Unity package. The concept is pretty simple:

adds a top-level upm directory which contains all of the static package files: meta files, package.json, System.Runtime.CompilerServices.Unsafe dependency, etc
adds post-build steps to Flecs.NET, Flecs.NET.Bindings, Flecs.NET.Native, and the new Flecs.NET.Unity projects to copy the necessary build artifacts into the correct upm subfolder

The UPM package can be fully assembled by running dotnet build -c Debug and dotnet build -c Release, which we could put in a script if that's desired. All of the build artifacts in the upm folder are gitignored.
Flecs.NET.Unity is exported as source so that it can take advantage of Unity scripting defines to toggle behavior.
In contrast to MessagePack-CSharp and MemoryPack (which are both excellent examples of C# projects that generate UPM packages) I did not include an entire Unity project as it generates a lot of noise on the repo, but that is definitely an option.

Thanks for the PR! I'll look into setting up the unity-specific repo and CI scripts sometime this week.


You mix target=>source in the swap process ?

Regarding the sentence:
Wait for every instance in the target slot to complete its restart. If any instance fails to restart, the swap operation reverts all changes to the source slot and stops the operation.
Pretty sure what you mean is (change target to source)
Wait for every instance in the source slot to complete its restart. If any instance fails to restart, the swap operation reverts all changes to the source slot and stops the operation.

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

ID: f6e09089-1ae2-8943-5ce2-9d48f458c81f
Version Independent ID: ba780cba-f604-b0a4-a81a-23c7d2384762
Content: Set up staging environments - Azure App Service
Content Source: articles/app-service/deploy-staging-slots.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

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

@johanknirk Upon review, we agree that the article misused the terms target and source. As a result, we made an update. Thank you for the call out.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


dcos cli

Some of the dcos cli commands seems deprecated as the version installed is 2.0. e.g.
I could not get to install cassandra because  I couldn't run
dcos package repo add Universe https://universe.mesosphere.com/repo
Any clues?

We are currently on the old version of the cli as well as the old repo version. A lot was changed before DC/OS was open sourced. Also note that we are currently considering to switch completely to DC/OS.
> dcos --version
dcos version 0.3.6
> grep version- ~/.dcos/dcos.toml
sources = [ "https://github.com/mesosphere/universe/archive/version-1.x.zip",]
``

Yup, i did the downgrade to 0.36 but somehow neither cassandra or spark could run. Yet to dig in deeper on the logs to see why but suspect docker issue...

BTW, I am running on 4 bare metals, using the same ansible roles.

Any recommendations on getting cassandra to work on the cluster?

Have you provided principal/secret pair, installing a framework?

I saw it in mesos-hdfs but how to you do that for  Cassandra?

I assume you are referring to deploying cassandra using dcos-cli
dcos install package cassandra


[BUG] Altair Fastify plugin not compatible with nodenext

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Using the Fastify plugin in an ESM Fastify app results in a Typescript build error.
src/plugins/graphql/index.ts:147:28 - error TS2769: No overload matches this call.
  Overload 1 of 3, '(plugin: FastifyPluginCallback<{ path: string; baseURL: string; endpointURL: string; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
    Argument of type 'typeof import("/.../node_modules/.pnpm/altair-fastify-plugin@7.2.4_fastify@4.28.1/node_modules/altair-fastify-plugin/dist/index")' is not assignable to parameter of type 'FastifyPluginCallback<{ path: string; baseURL: string; endpointURL: string; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.

Expected Behavior
The plugin should be able to be used with ESM enabled.
Steps To Reproduce
Set "type": "module" in your package.json and add typescript support.
import AltairFastify from 'altair-fastify-plugin';
import Fastify from 'fastify';

const app = Fastify();

app.register(AltairFastify);

Environment
- OS: Mac
- Browser: N/A
- Platform: Node.JS
- Version: 20

Additional context
Fastify has fixed their plugins using the "infamous triplet" with module.exports (https://github.com/fastify/fastify/issues/4349). Ideally it can be applied to this plugin so it supports both CJS/ESM seamlessly.

We can mark this as closed now?


Diff branches command

Shows quick panel to select a not merged branch and on selection launches git diff ..branch and shows the diff.

Sorry, wrong branch


Return an error when bytes parameter and count parameter of write operation do not align

Possibly related to #188? Just linking for posterity.

Yes, I created this issue as a result of several others. I didn't link them because it wasn't clear if this issue was the true reason behind the others.
I'm pretty sure this is related though.

Noting here that we removed the need for the count parameter.


Add variance of step size to stats

To determine whether we want to cast to ordinal.

This is a vega-lite-ui issue.


RSPEC-1941: Variables should not be declared before they are relevant

See https://rules.sonarsource.com/java/RSPEC-1941

Note: variable scopes and name shadowing can be very tricky. This issue will be much simpler when we have dataflow analysis.


[RFC] Handle passing exceptions via channels

Exceptions are treated differently when passed via channels, and are re-raised on the receiving side.
The Select object is also adjusted to handle exceptions specially. Unless exceptions are handled explicitly (with a Future-like interface), they will be re-raised when trying to get a value from the channel.
This PR is very minimal on purpose, only to show the concept. It is incomplete and untested. Only the base classes, the AnycastChannel as an example and the Select object are adjusted.
I think it will make sense to make the closure of the channel an exception too, otherwise we have 2 error reporting mechanisms, so I will probably make it part of the same PR. But before doing that I will also make minimal changes to show the concept.

I pushed a new commit with changes to raise an exception when the channel is closed (so allowing passing None via channels too). While doing so I found myself converting exception back and forth between StopAsyncIteration and ChannelClosedError and it got me thinking why do we even have receive() in the Receiver and why not just Receiver = AsyncIterator?
And that makes me think if channels shouldn't be AsyncIterables, so that would be the way to get a receiver? But this one might be going too far, it can be a bit weird to use receiver = aiter(chan) instead of receiver = chan.get_receiver() (and also aiter is only available in Python 3.10+).
I was also a bit surprised that we have no interface for channels defined, because we seem to have some common interface (at the minimum get_receiver() and get_sender()). I'm still unsure if I feel good or bad about it. :D
When writing this I also had a few other questions about how to implement it but now I forgot :-/
Well, one of the questions I made to myself was if we should allow passing BaseExceptions or not via channels. I guess not, it would be weird, but I bring it up in case you have any opinions about it.
Related to using message for (value or exception), I think I tried to define a type alias Message = Union[T, Exception] to avoid typing that everywhere but it didn't work, I think type aliases can't be done parametrized types.
So, in general, besides the small comments, for you is a :+1: for making a proper PR for the first commit (sending exceptions via channels), is that correct? Because it is I can work on it.
Let me know what do you think about the second part (except for closed channels/allow passing None via channels).

I remembered a couple of more questions that came to mind when deciding on the design.
At some point I thought about adding a send_exception() function to sender, to make it more clear that we are sending an exception and not a regular value. But if we do that, for me it would be weird that an Exception object sent via the regular send() would be raised at the receiving end. If we really want to have sort of 2 separate channels in one, one for values and one for exceptions, then we'll need to wrap every message passed through a channel and have 2 separate attributes (or a bool) to distinguish is something is intended to be raised at the receiving end or not, which seemed a bit overkill. Specially considering that it would be very weird to want to send an Exception that doesn't have to be raised at the receiving end, and in the weird case one might really need that, it can be wrapped manually by the user (so sending, for example, (exception,) or a dataclass with one field exception instead of Exception; the receiving end will see the message is a tuple and not raise).
As you said, I find the current approach much less intrusive and still with a reasonable interface and flexible enough that if you need to do crazy things, they might look ugly, but they are still doable.

While doing so I found myself converting exception back and forth between StopAsyncIteration and ChannelClosedError and it got me thinking why do we even have receive() in the Receiver and why not just Receiver = AsyncIterator?

The send and recieve methods are inspired by the rust implementation of channels,  and I think they complement each other and it makes sense to have them to maintain the illusion of a channel.  But maybe we can switch around the order of the messages - with __anext__ doing the actual work,  and then receive calling __anext__?

I was also a bit surprised that we have no interface for channels defined, because we seem to have some common interface (at the minimum get_receiver() and get_sender()). I'm still unsure if I feel good or bad about it. :D

I thought that this would encourage the passing around of channels,  instead of just senders and receivers.

Well, one of the questions I made to myself was if we should allow passing BaseExceptions or not via channels. I guess not, it would be weird, but I bring it up in case you have any opinions about it.

I have no opinions,  but why is it weird to pass BaseExceptions?

Let me know what do you think about the second part (except for closed channels/allow passing None via channels).

yes,  this is a very nice idea,  taking away the special meaning of None values.

Specially considering that it would be very weird to want to send an Exception that doesn't have to be raised at the receiving end, and in the weird case one might really need that, it can be wrapped manually by the user.

a channel for sending Exception objects? :D then they can just make a try block around the calls to receive.  It works in go because errors are just values,  with no special meaning.  We don't have to provide direct support for it in Python.

The send and recieve methods are inspired by the rust implementation of channels, and I think they complement each other and it makes sense to have them to maintain the illusion of a channel. But maybe we can switch around the order of the messages - with __anext__ doing the actual work, and then receive calling __anext__?

Yes, we could. It will probably at least save one or two conversions between StopAsyncIterator and ChannelClosedError.

I thought that this would encourage the passing around of channels, instead of just senders and receivers. And things like Bidirectional won't fit into such an abstraction anyway.

:+1:

I have no opinions, but why is it weird to pass BaseExceptions?

Because they are exceptions that are supposed to terminate the program (and are not caught by except Exception, which is the recommended way to catch exceptions). It would be more like a panic in Go I guess. Only SystemExit, KeyboardInterrupt and GeneratorExit inherit from BaseException.

a channel for sending Exception objects? :D then they can just make a try block around the calls to receive. It works in go because errors are just values, with no special meaning. We don't have to provide direct support for it in Python.

Good, so I guess we are on the same page with this one, I just wanted to make sure we are all on the same page.

yes, this is a very nice idea, taking away the special meaning of None values.

Good, then I take from this that I should proceed to finish the implementation of both passing exceptions via channels and using an exception to signal a channel was closed as drafted in this PR.

Good, then I take from this that I should proceed to finish the implementation of both passing exceptions via channels and using an exception to signal a channel was closed as drafted in this PR.

yup,  and probably also the switching around of __anext__ and receive.

After some internal discussion, we agreed on not implementing raising exceptions when passed via channels. I will add more details to the issue.


python312Packages.identify: 2.6.0 -> 2.6.1

Diff: https://github.com/pre-commit/identify/compare/refs/tags/v2.6.0...v2.6.1
Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

Result of nixpkgs-review pr 342483 run on x86_64-linux 1

16 packages built:

pre-commit
pre-commit.dist
python311Packages.asteroid-filterbanks
python311Packages.asteroid-filterbanks.dist
python311Packages.identify
python311Packages.identify.dist
python311Packages.pyannote-audio
python311Packages.pyannote-audio.dist
python312Packages.asteroid-filterbanks
python312Packages.asteroid-filterbanks.dist
python312Packages.identify
python312Packages.identify.dist
python312Packages.pyannote-audio
python312Packages.pyannote-audio.dist
whisper-ctranslate2
whisper-ctranslate2.dist


RFE: Ability to specify cloud storage location

It would be great if the kaggle api would allow for someone to download a dataset directly to a cloud storage provider. This way one could avoid the hassle of first downloading to a local machine and then uploading it to the CSP.
What this could look like for someone using Google Cloud Storage
$kaggle datasets download -d <dataset_name> -p gs:///

hey @Nick-Harvey is it way too slow to download locally then move to storage? If it might be the tool you are using (or you haven't found a good one) a nice one I've found that can work with a ton of cloud storage providers is rclone. You could have a batch script to use the kaggle executable, and then rclone to move elsewhere.


After upgrade 2.4.4 Failed to load the "CtiDigital_GoogleAddressLookup/form/field" template

I just upgraded Magento to 2.4.4.
The address_finder field doesn't show.
This is what I see in chrome developer console:
[2022-07-04 06:51:05] [ERROR] Failed to load the "CtiDigital_GoogleAddressLookup/form/field" template requested by "checkout.steps.shipping-step.shippingAddress.shipping-address-fieldset.address_finder".
Actually though, in network file list you can find it

It is caused by an invalid template file, there is an extra <!-- /ko --> at the end of the template.
Simply delete this line https://github.com/ctidigital/magento2-google-address-lookup/blob/8c6d51f5c326480a131341c42a6a0c80b656a644/view/frontend/web/template/form/field.html#L51


problem find NFC signal of apple iphone and apple watch

Hi,
I connected WEMOS D1 MIN to PN532 as suggested in wiki.
then I successfully uploaded lastest firmware and joined it to Homekit and to MQTT broker of my Home Assistant.
Only problem I have is thant PN532 don't see my apple iphone and my apple watch...how I can troubleshoot it?
regards

How I can collect more logs?

solved after double check wired connections


After updating to v1.0.3, the display is distorted in live preview mode.

Thank you for providing an excellent theme. I really love it, but after the v1.0.3 update, the display has become distorted.

/* make edit mode use a different readable line length than reading mode */
  .markdown-source-view.mod-cm6.is-readable-line-width .cm-sizer,
  .markdown-source-view.mod-cm6.is-readable-line-width .cm-content,
  .markdown-source-view.mod-cm6.is-readable-line-width .cm-line  {
    width: var(--editing-file-line-width) !important;
    margin: auto;
    padding: 0;
  }

↓ Removing "margin: auto;" resolves the display distortion issue.
/* make edit mode use a different readable line length than reading mode */
  .markdown-source-view.mod-cm6.is-readable-line-width .cm-sizer,
  .markdown-source-view.mod-cm6.is-readable-line-width .cm-content,
  .markdown-source-view.mod-cm6.is-readable-line-width .cm-line  {
    width: var(--editing-file-line-width) !important;
    padding: 0;
  }

Hi! Thanks for pointing this issue out. This has been fixed in the latest update; enjoy!


Fixed StickyHeaders Mopub Ads bug

Fixed StickyHeaders to prevent Mopub Ads from pushing items out of the sections.
Created a sample in the app to demonstrate the changes.

@urob0ros thank you very much. I'll test and merge 👍


Cert-manager Certificates do not upgrade automatically for different namespaces [acme-challenge getting failed 503 on Cert-Manager]

Describe the bug
I am using cert-manager (0.15.1) to install and upgrade lets-encrypt certificates for domains on Ambassador (1.3.2). I created two namespaces development and staging on kubernetes.  When i create Mapping and services on development namespace then it only allow to install and update certificates automatically for development namespace only, while it is not creating certificates for other namespace based mapping rules.
I do for add Mapping and service for staging then it does not work for development namespace.
I understand Ambassador does not support for ingress and but "/.well-known/acme-challenge/"  mapping scope should not be under namespaces , for other namespaces its not pointing "acme-challenge-service" service to update and cert-manager throws 503 in logs.
Cert-Manager error :-
sync.go:185] cert-manager/controller/challenges "msg"="propagation check failed" "error"="wrong status code '503', expected '200'"
To Reproduce

Create Two namespaces on Kubernetes and deploy two services on different namespaces ie:- development and staging. 2. Create Host and Mapping for both and try to install + upgrade certificates .
At My side It successfully install and upgrade certificate to one namespace only at a time. but is not working for other namespaces Host rules.
I think ACME challenge scope is under namespace not on global level.
acme-challenge-mapping working for only that namespace having  "acme-challenge-mapping" mapping  at a time.

Expected Behavior
acme-challenge-mapping should be at global level so it can allow to point correct ingress rule , so cert-manager update certificate automatically

apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: acme-challenge-mapping
spec:
prefix: /.well-known/acme-challenge/
rewrite: ""
service: acme-challenge-service
Based on prefix mapping rule /.well-known/acme-challenge/ should work for all namespaces.
Versions (please complete the following information):

Ambassador: [e.g. 1.3.2]
Kubernetes environment [e.g. AWS using Kops]
Version [e.g. 1.15.9]

What do your Certificate and (Cluster)Issuer resources look like?

@cakuros Certificates are working nicely for developments env. it also working on staging env but If i would create two mapping according to env then it do not install and update certificates. Upgrades and installation of certificates only working nicely when Mapping and service created in environment , i would create mapping and service for acme challenge in staging and development then its not working . According to prefix url mapping rule , it should be defined as cluster level instead of namespaces.

@cakuros thanks for your reply. I have gone through docs & debugging the issue, then realised it just Kubernetes DNS mapping issue, which can be solved through ambassadar_id or Kubernetes DNS to define service name.namespace to point correct acme service pod to perform domain verification to renew & install the certificate again.
I have created repo as well:- https://github.com/Anishmourya/ambassador-certificate-namespace
going to close this 😄


Add tests to verify PowerShell Core compatibility

Get-NetView should work on the latest version of PowerShell Core without issues. See the following articles:
PowerShell 6.0 Breaking Changes
PowerShell 6.1 Breaking Changes
PowerShell 6.2 Breaking Changes

A basic implementation would be to just ctrl+f for removed functions.


Will plugin be supported again?

Hello,
I'm using the latest 2.x version of the Swiper and while testing out the version 3.0.3, I saw that the support for plugins was gone.
I made several plugin: filtering, lazyload, responsive configuration...
My plugin were usefull and easy to reuse. Do you plan to bring back the support for plugins ?
Thank you for your answer.
PS: any roadmap available for next releases?

Didn't know that someone used it at all :) Yes, will back but in next release or release after

Great news :)
Yes, I did use the plugin and I could share them too once they are ready for v 3.
Plugin was a real nice feature for us!
Thank you.

@nolimits4web, I'm testing one of my plugin and I noticed that it was depending on jQuery.
What should I do inside my plugin source code in order to be able to use the helper functions that are defined inside dom.js ?
I'm trying to make 2 versions, a version free of dependency to jQuery and another version depending on jQuery...
But right now, inside my plugin code $ is undefined...
Swiper.prototype.plugins.myTestPlugin = function(swiper, params) {
    // $ is undefined unless if I add jQuery to the html page
};

Thank you for your help

You may do it like in Swiper's core:
var $;
if (typeof Dom7 === 'undefined') {
    $ = window.Dom7 || window.Zepto || window.jQuery;
}
else {
    $ = Dom7;
}

I did try to do it this way after comparing both swiper.js and swiper.jquery.js in the gulpfile but $ remains undefined.
I'll prepare an example on jsfiddle or similar to ease the process here...
I started my test from the lazy loading demo page...
Thank you for the fast replies ;-)

Here is a demo of $ which is undefined even using your snippet to use Swiper's core:
http://jsfiddle.net/xu4y2sc9/7/
@nolimits4web
Do you see what is wrong?
Thanks

Yeah, in latest dev version, it is just accessible via Swiper instance like swiper.$


Go container node install has bad conditional, is also unable to install node lts version

VSCode Version: 1.59.0
Local OS Version: 10.0.19043
Name of Dev Container Definition with Issue: Go

Steps to Reproduce:

Build container with no version of node specified and you receive this error
` => ERROR [2/2] RUN if [ "none" = "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install none 2>&1"; fi                                                                                0.9s

[2/2] RUN if [ "none" = "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install none 2>&1"; fi:
#5 0.915 Version 'none' not found - try nvm ls-remote to browse available versions.`

If you fix the conditional and attempt a lts, you recieve this error
` => ERROR [2/2] RUN if [ "lts" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install lts 2>&1"; fi                                                                                0.7s

[2/2] RUN if [ "lts" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install lts 2>&1"; fi:
#5 0.641 Version 'lts' not found - try nvm ls-remote to browse available versions.`

Ack! Yeah, lts should be lts/* which works in that comment. That removes the need to do the condition.   This needs to be done in a number of spots I think.

Workaround:

Specify a version other than lts when prompted.
Update args in devcontainer.json to "NODE_VERSION": "lts/*"
Rebuild / create the container


Fix the issue with PhantomJS

Fix the issue with PhantomJS

I've got around there GH issues while digging the "FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed" issue:

https://github.com/npm/npm/issues/12741
https://github.com/webpack/webpack/issues/1875

Please try this solution, it could help on node 4.3 (backend test suite)
# instead of babel-node run the following (please adjust memory size to travis instance)
node --max_old_space_size=4096 --optimize_for_size --max_executable_size=4096 --stack_size=4096 `which babel-node`


Wrong results with five indices (some fixed, some as parameters)

I ran into this bug:
julia> using LoopVectorization

julia> function issue!(output, input, idx)
           @turbo for j in axes(output, 2), i in axes(output, 1)
               output[i, j, idx] = input[1, 1, i, j, idx]
           end
       end
issue! (generic function with 1 method)

julia> function issue_plain!(output, input, idx)
           for j in axes(output, 2), i in axes(output, 1)
               output[i, j, idx] = input[1, 1, i, j, idx]
           end
       end
issue_plain! (generic function with 1 method)

julia> input = ones(2, 2, 5, 5, 1); output = zeros(size(input)[3:end]...); output_plain = similar(output);

julia> issue!(output, input, 1); issue_plain!(output_plain, input, 1); output # wrong result
5×5×1 Array{Float64, 3}:
[:, :, 1] =
 1.0  0.0           0.0           0.0  0.0
 1.0  6.94826e-310  0.0           0.0  0.0
 1.0  6.94826e-310  0.0           0.0  0.0
 1.0  6.94826e-310  0.0           0.0  0.0
 1.0  6.94826e-310  3.18231e-316  0.0  0.0

julia> output_plain # correct result
5×5×1 Array{Float64, 3}:
[:, :, 1] =
 1.0  1.0  1.0  1.0  1.0
 1.0  1.0  1.0  1.0  1.0
 1.0  1.0  1.0  1.0  1.0
 1.0  1.0  1.0  1.0  1.0
 1.0  1.0  1.0  1.0  1.0

Interestingly, the result is correct if replace output[i, j, idx] = input[1, 1, i, j, idx] by output[i, j, idx] = input[1, 1, i, j, 1] in issue!. Any idea what might be going wrong?
I'm using Julia v1.6.1 and LoopVectorization v0.12.34.

I still need to add this to the unit tests, but I fixed it on master:
julia> using LoopVectorization
[ Info: Precompiling LoopVectorization [bdcacae8-1622-11e9-2a5c-532679323890]

julia> function issue!(output, input, idx)
           @turbo for j in axes(output, 2), i in axes(output, 1)
               output[i, j, idx] = input[1, 1, i, j, idx]
           end
       end
issue! (generic function with 1 method)

julia> function issue_plain!(output, input, idx)
           for j in axes(output, 2), i in axes(output, 1)
               output[i, j, idx] = input[1, 1, i, j, idx]
           end
       end
issue_plain! (generic function with 1 method)

julia> input = ones(2, 2, 5, 5, 1); output = zeros(size(input)[3:end]...); output_plain = similar(output);

julia> issue!(output, input, 1); issue_plain!(output_plain, input, 1); output # wrong result
5×5×1 Array{Float64, 3}:
[:, :, 1] =
 1.0  1.0  1.0  1.0  1.0
 1.0  1.0  1.0  1.0  1.0
 1.0  1.0  1.0  1.0  1.0
 1.0  1.0  1.0  1.0  1.0
 1.0  1.0  1.0  1.0  1.0

julia> output_plain # correct result
5×5×1 Array{Float64, 3}:
[:, :, 1] =
 1.0  1.0  1.0  1.0  1.0
 1.0  1.0  1.0  1.0  1.0
 1.0  1.0  1.0  1.0  1.0
 1.0  1.0  1.0  1.0  1.0
 1.0  1.0  1.0  1.0  1.0

Any idea what might be going wrong?

You can look at the diff if it helps.
But basically, the code there is some old parse-time CSE-ing of loop-constant but dynamic indices, i.e. idx is dynamic, but constant with respect to the loops.
While parsing the expression, it drops idx.
But if you see an expression like A[i,j,k,idx] where you want to drop idx, you can't simply do view(A,:,:,:,idx), because what if i in I, where I::CartesianIndices{3}?
Then it should be view(A,:,:,:,:,:,idx).
For some silly reason, in calculating the correct number of :, it was only counting up to one literal index (i.e., the 1).
So it was effectively doing input[:, :, :, idx] instead of input[:, :, :, :, idx].

Great! Thanks a lot for the quick fix and the detailed explanation :+1:


Adding docs banner

Summary
Adding docs banner

@asaadmahmood - When we merged this PR on production, we saw this:

We're going to revert this PR via https://github.com/mattermost/docs/pull/4733 to fix this display issue. Would you be able to help with this issue, please?

Banner fixes applied via https://github.com/mattermost/docs/pull/4736


Added hash decoder

Sends a GET request to the lookup URL with the text as it's JSON payload (hash) and gets returned the appropriate plaintext or None if its not in the database. Response in JSON.

This is blocked until we have proper benchmarking :) Thanks!!

🥺

🥺

beg harder

🥺

beg harder

try harder


Fixes #13 - changing some paths in the description of README.md

According to #13, there are a couple of paths in README.md, which need to be adjusted. This PR takes care of it.

Awesome! Thanks @alexanderweber :+1:


Bug:cannot scroll, request:placeholder + position

This project is wonderful, except that:
1 - one bug: if there are many options, and the select box is near top of the page, i can not scroll.
2 - feature request: would it be possible to display selected items inside the select tag, instead of above?, if selected too many items, you can say: 4 items selected. etc
3 - feature request 2: can you get the placeholder info from my original select
Thank in advance.

Hi @topnew ,
could you please attach a screenshot for the issue described in 1? What you are describing in your feature request 2 is basically a combination of #2 and #7 . I will introduce an option for that once I get into it.
Thanks for the placeholder idea. This one is actually quite fast to implement and I think would be a good enhancement.
Unfortunately I am currently involved in a few other projects so I don't find as much time for SOL as it deserves. I'm afraid it will take some time until I get into it.

Attached is a screenshot of your website, by removing the header, so that your first select box is on the very top, and when click, the top part of the select is not reachable, as the .sol-selection is not scrollable.
I did a quick fix: add the next line at end of your sol.css, and it works:
.sol-selection {max-height:200px;}

I have download your latest version, and found out you make the background of the select box as transparent. Onclick, the background comes back as normal.

Hi @topnew ,
SOL calculates the size needed to display the popup and then checks if there is enough space to display it below the input field. If there is not enough space, the options will be displayed above the input field (see https://github.com/pbauerochse/searchable-option-list/blob/master/sol.js#L77). From your screenshot I can't really see if there is enough space at the bottom but I would suspect there is not.
It's hard for SOL to really detect how to position the popup. I could try to add a function that makes the options popup smaller if there is not enough space above nor below.
I guess your solution to set a max-height is the best way to do it for small resolutions (in height) for now. One hint though: you don't have to set the height with css. You may as well pass the height in as an option:
$('.smallSelects').searchableOptionList({
    maxHeight: '200px'
});

$('.mediumSelects').searchableOptionList({
    maxHeight: '400px'
});

$('.asLargeAsItGetsSelects').searchableOptionList();


Tensorflow 2.16 installed but deepface not using cuda.

I run
from deepface import DeepFace
DeepFace.stream(db_path = "database", time_threshold = 5, frame_threshold = 5, enable_face_analysis = False, detector_backend = "yolov8", model_name = "GhostFaceNet")
jtop reports no gpu usage. It does for other programs.
Some issues suggest installing tensorflow-gpu except you can't anymore since 2.1. Tensorflow was installed and tested well before I installed deepface.
Python 3.10.12
pip list:
tensorboard                  2.16.2
tensorboard-data-server      0.7.2
tensorflow                   2.16.1
tensorflow-io-gcs-filesystem 0.36.0
tensorrt                     8.6.2
tensorrt-dispatch            8.6.2
tensorrt-lean                8.6.2
termcolor                    2.4.0
tf_keras                     2.16.0
thop                         0.1.1.post2209072238
torch                        2.2.2
torchvision                  0.17.2

Deepface does nothing with gpu. It depends tensorflow and tf handles gpu usage. If your tf cannot use gpu, then you may consider to raise a ticket in tensorflow repo.

Thank you for the fast reply.

Thank you for the fast reply.

looks like the yolov8 require pytorch to run  on gpu, that the model file is a .pt.
I tried the same and it's same speed with cpu one.
But also tried the facenet h5 file which actually faster.
like the author said, he just didn't do gpu on yolov8.

and still strange, the facenet or ghostfacenet is h5 file and there is no speedup in target_embedding_obj = representation.represent()


[FLINK-20651] Use Spotless/google-java-format for code formatting/enforcement

Please see the ML discussion for background: https://lists.apache.org/thread.html/rfb079ec4cfd35bcb93df9c2163aaa121e392282f0f3d9710c8ade811%40<dev.flink.apache.org>. There was broad consensus in the discussion.
The basic idea is that we use the Spotless plugin to format our code with google-java-format and we use CI to enforce that style.
A note on checkstyle: There are still a lot of checkstyle rules that make sense and that are not covered by Spotless, such as disallowed imports and Javadocs rules.
Also, the checkstyle suppression files are still valid and checkstyle still largely fails in the few modules where we have them without them. You can remove the suppressions to get a sense of the scale of the problem. I can't fix those issues in this PR.
Note: when I'll actually merge this PR I have to rebase on latest master and reformat the code again and fix up the "ignores" file again.
Brief change log
The changes are clearly outlined in the individual commits, please have a look at those.
Rough outline of changes:

move inline CHECKSTYLE:OFF comments to supressions file because inline comments in the imports don't work with the version of google-java-format we're using (which we have to use because we're using an older java version for our build
remove checkstyle checks that don't make sense after reformatting the code; it's the check for "tabs as indentation"
add checkstyle suppressions for things that break with reformatting; this is only about file length, some files are getting to long
fix formatting that doesn't work nicely with Spotless + Checkstyle, this is mostly about superfluous or missing <p> tags
actually reformat the code
add the Spotless plugin, I'm adding this after reformatting to ensure that the build passes at each intermediate step
add .git-blame-ignore-revs for ignoring the reformatting commit
update .editorconfig and update IDE setup instructions

I did the reformatting commit as Rufus Refactor<EMAIL_ADDRESS>and all the other commits as myself.
Verifying this change
You can play around with the formatter, try and change a file and run the checks. If you "break" a file the CI build should break.

Hello, @aljoscha, I pull the latest master branch and configure the google-java-format plugin as the README says. After that, I find that when I create a class, the IntelliJ will report an error Unable to parse template "class". And when I turn off the "Reformat according to style" in the setting, the error disappears, but the new file is not formatted. Have you met the same error?
Fig. 1: the error when create a new class

Fig. 2: the setting in code template

Hello, @aljoscha, I pull the latest master branch and configure the google-java-format plugin as the README says. After that, I find that when I create a class, the IntelliJ will report an error Unable to parse template "class". And when I turn off the "Reformat according to style" in the setting, the error disappears, but the new file is not formatted. Have you met the same error?
Fig. 1: the error when create a new class

Fig. 2: the setting in code template

For me, that works. Which version of IntellJ are you using?

For me, that works. Which version of IntellJ are you using?

For me, that works. Which version of IntellJ are you using?

The latest version, 2020.3.1.

For me, that works. Which version of IntellJ are you using?

The latest version, 2020.3.1.

Hmm, I have the same version and cannot reproduce it. Could you try and get more verbose logs to try and see what the underlying error is?

Hmm, I have the same version and cannot reproduce it. Could you try and get more verbose logs to try and see what the underlying error is?

Hmm, I have the same version and cannot reproduce it. Could you try and get more verbose logs to try and see what the underlying error is?

Okay, I'll try to work on this. Thank you so much, @aljoscha.

Hmm, I have the same version and cannot reproduce it. Could you try and get more verbose logs to try and see what the underlying error is?

Okay, I'll try to work on this. Thank you so much, @aljoscha.


Moving acs commands from vm to acs module

Based on my conversation with @brendandburns, I started from scratch (as #1497 has too many conflicts) to move commands out from vm those were not related to acs.
Task 1 of work Item https://github.com/Azure/azure-cli/issues/1329

@brendandburns I did start from scratch and moved the respective commands out from vm into acs. Please take a look if you get a chance.
@yugangw-msft @derekbekoe @tjprescott @troydai  Please review this as you get a chance. Thanks!

@troydai No dependencies has changed but only packages https://github.com/Azure/azure-cli/pull/2098/files#diff-d1135a66adf72a654e5b66b1bc52378eR57 needed to be changed.


Queries for evaluation of the data

This code contains the sql queries to create the histogram codes. I am super unhappy with the code and I wanna do it again with dash plotly, if I find time for it.
Just sharing such that people reading the report can see where the data is coming from
https://docs.google.com/document/d/188nTTbCOocAq3RQnBHdiY30E0dOQZoQqTkTq1CKzFHI/edit#heading=h.ua65t55en4ss

No longer needed


How to run?

Please tell me how to run the code

Also, what file do you run in the dev console?

Obvious alt


Add details about AllowedCalls

What does this PR introduce?

Add details about AllowedCalls

Task linked: DEV-8630 Improve documentation around AllowedCalls

Task linked: DEV-8630 Improve documentation around AllowedCalls

Task linked: DEV-8630 Improve documentation around AllowedCalls

Task linked: DEV-8630 Improve documentation around AllowedCalls


[WnD] upgrade spark version

upgrade spark version from 3.0 to 3.2, refine readme.

Please help to add Jenkins test label @Jian-Zhang, @xuechendi

CICD passed, please help to merge this PR @Jian-Zhang, @xuechendi


chore: 🤖 adjust travis config to release main instead of master

@kaltepeter I forgot that the branch is not called main instead of master 😅. The good old days 😉

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Can we get download progress feature

I need to show download progress in percentage so I need download progress feature to achieve it.
PS: Library is awesome working like charm.

Thanks for the suggestion. This was added in the latest release (2.0.0). You can get it from npm right now.
So if before you were calling downloadToFolder as follows:
await downloadToFolder(uri, filename, folder, channelId);

you can now call it with the following callback and you will get back the progress information you want:
const downloadProgressCallback = ({totalBytesWritten, totalBytesExpectedToWrite}) => {
  const pctg = 100 * (totalBytesWritten / totalBytesExpectedToWrite);
  setProgressInfo(`${pctg.toFixed(0)}%`);
};
await downloadToFolder(uri, filename, folder, channelId, {downloadProgressCallback});

Hope this helps!


changelog: add v0.1.0

Adds changelog of features and quick description of the first-ever release of celestia-node.

@renaynay, pls add more description to release if you feel so.


Add Pendulum Calculator in Simple Harmonic Motion Section inside Physics Calculators.

Add Pendulum Calculator in Simple Harmonic Motion section inside physics Calculator. You can look at other physics calculators for your reference.

I am a GSSOCC22 contributor. Please assign this issue to me


feat: added apply_rasterizer() free function

Description
This PR implements the gil::apply_rasterizer() free function mentioned in #680.
However, I had to change the API of all three rasterizers quite considerably in order to squeeze them through this common interface. I am not sure if all those API changes are still debatable if we consider the deadline for Boost 1.80 in three days on 29th of June.
If you look at the updated examples, the usability is improved considerable (in my opinion) and it is still worth it (in my opinion) to discuss the PR, but I also understand that it might be too late for these kind of major API changes.
References
#680
Tasklist

[ ] Ensure all CI builds pass
[ ] Review and approve

I am not sure if all those API changes are still debatable if we consider the deadline for Boost 1.80 in three days on 29th of June.

The rasterizers have not been released yet, so we are not breaking anything, IMO.


Error when diarizing

Hi, today I got an error when using the tool. It worked last week with the same code. I use google colab.
Here is my input:
!git clone https://github.com/MahmoudAshraf97/whisper-diarization.git
%cd whisper-diarization
!pip install -r requirements.txt
!python diarize.py -a "/Experteninterview PA1-20241014_093259-Meeting Recording.mp3" --language "de" --whisper-model "large-v3"

After the last code part I get following error:

2024-10-14 08:24:09.833148: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:485] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-10-14 08:24:09.853926: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:8454] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-10-14 08:24:09.859831: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1452] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-10-14 08:24:11.303864: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Traceback (most recent call last):
  File "/content/whisper-diarization/whisper-diarization/diarize.py", line 17, in <module>
    from nemo.collections.asr.models.msdd_models import NeuralDiarizer
  File "/usr/local/lib/python3.10/dist-packages/nemo/collections/asr/__init__.py", line 15, in <module>
    from nemo.collections.asr import data, losses, models, modules
  File "/usr/local/lib/python3.10/dist-packages/nemo/collections/asr/losses/__init__.py", line 15, in <module>
    from nemo.collections.asr.losses.angularloss import AngularSoftmaxLoss
  File "/usr/local/lib/python3.10/dist-packages/nemo/collections/asr/losses/angularloss.py", line 18, in <module>
    from nemo.core.classes import Loss, Typing, typecheck
  File "/usr/local/lib/python3.10/dist-packages/nemo/core/__init__.py", line 16, in <module>
    from nemo.core.classes import *
  File "/usr/local/lib/python3.10/dist-packages/nemo/core/classes/__init__.py", line 20, in <module>
    from nemo.core.classes.common import (
  File "/usr/local/lib/python3.10/dist-packages/nemo/core/classes/common.py", line 40, in <module>
    from nemo.core.classes.mixins.hf_io_mixin import HuggingFaceFileIO
  File "/usr/local/lib/python3.10/dist-packages/nemo/core/classes/mixins/__init__.py", line 28, in <module>
    from nemo.core.classes.mixins.hf_io_mixin import HuggingFaceFileIO
  File "/usr/local/lib/python3.10/dist-packages/nemo/core/classes/mixins/hf_io_mixin.py", line 19, in <module>
    from huggingface_hub import HfApi, ModelCard, ModelCardData, ModelFilter
ImportError: cannot import name 'ModelFilter' from 'huggingface_hub' (/usr/local/lib/python3.10/dist-packages/huggingface_hub/__init__.py)

install the requirements using:
pip install -c constraints.txt -r requirements.txt


Cache system/python packages

Proposed Changes
The AppDaemon addon re-installs user-configured system and python packages on every restart. Apart from being slow, this has the serious drawback of completely breaking the setup if no internet connection is available (going completely against the HA philosophy).
With this PR package installation happens in two phases:

Packages with their dependencies are downloaded into /data/package-cache/{apk,pip} using apk fetch and pip download.
Packages are installed from the cache.

The first step is skipped if the cache already exists, so future restarts are fast and require no internet connection.
To increase robustness:

The cache is tagged with the exact addon version and package list (file /data/package-cache/{apk,pip}/tag). So if the addon is upgraded, or the package list changes, the full cache is rebuilt, avoiding issues with old cached packages.
If the installation fails the cache is cleared, to allow recovering from errors.

Related Issues
#235 #216

I'm all for adding a way to get it running without internet, but I'm not a fan of this approach. It is way too hacky and funky for me to consider adding.

You mean the general approach of caching packages? What would be a better approach, given the constraints of the addon system?

What would be a better approach

I dunno, but the current offered solution in this PR is not something I'm consider to add.

In case you want to reconsider:

I removed the option, now caching is always enabled (still clearing the cache in case of changes, for robustness).

I re-tried the pip cache approach, it does not fully prevent network access. It's actually explicitely mentioned in pip's documentation, and the proposed solution is exactly pip download.

If you want other changes I'd be happy to implement them. If nothing can make you reconsider, well... one more fork to maintain :smile:
PS. In any case, many thanks for your amazing work on HA!


[BEAM-1463] Updates BigQuery read transform to handle 'null' fields properly for DirectRunner

Updates BigQuery read transform so that DirectRunner handles 'null' fields properly.
Before this change, for DirectRunner, a record (dictionary) returned by BigQuery  read transform did not contain keys for fields that are 'null'. For DataflowRunner, these fields are available with value 'None'.
I believe, retaining these fields value 'None' to be the proper behavior here.
This change makes these two runners consistent when it comes to handling BigQuery 'null' values.

R: @sb2nov

Thanks. PTAL.

LGTM Thanks.
R: @aaltay for merging

Thanks.

Coverage increased (+0.003%) to 69.772% when pulling c1c50bd471f74465952ec604079a5c33464e1efa on chamikaramj:reading_null_fields_directrunner into aac4da1719bce88b4538ce96e6dd60551da10c7f on apache:master.


remove "type": "module" in package.json

Currently, "type": "module" is not supported well in webpack 5 or ts-node, in package.json it already has "exports" and "module" fields set properly, so no need the "type": "module" field.
same issue is also happening with the just-performance

@yaquawa are you able to provide a small repro of the issue? Do you have a webpack setup where the build currently fails, but removing "type": "module" causes the build to succeed? I tested with the latest webpack while reorganizing the project, but I'm sure there are configurations that I missed which is why it would be helpful for me to see for future regression testing.

Fixed in https://github.com/jhurliman/node-rate-limiter/pull/79


activesupport: Add types for to_fs

ActiveSupport::NumericWithFormat

https://api.rubyonrails.org/v<IP_ADDRESS>/classes/ActiveSupport/NumericWithFormat.html#method-i-to_fs

ActiveSupport::RangeWithFormat

https://api.rubyonrails.org/v<IP_ADDRESS>/classes/ActiveSupport/RangeWithFormat.html#method-i-to_fs

Array

https://api.rubyonrails.org/v<IP_ADDRESS>/classes/Array.html#method-i-to_fs

Date

https://api.rubyonrails.org/v<IP_ADDRESS>/classes/Date.html#method-i-to_fs

DateTime

https://api.rubyonrails.org/v<IP_ADDRESS>/classes/DateTime.html#method-i-to_fs

Time

https://api.rubyonrails.org/v<IP_ADDRESS>/classes/Time.html#method-i-to_fs

Note: #to_fs was introduced (renamed) since 7.0.2.
refs: https://github.com/rails/rails/pull/44354

/merge


Domain::getAll pagination bug

DigitalOcean Api has limitation in domain response. It's 200 domains max. In that case we can't get all domains from api, if number is greater than 200. It would be better to rely on API information about domain count and pagination to get all data.

oh yes, we need this, too. Very urgent .-(

We're open to PRs. ;)

Not really a bug either. Just a missing feature.

Duplicate of https://github.com/toin0u/DigitalOceanV2/issues/29.


Cannot read properties of undefined (reading 'accounts')

Hi, there. I received some error reports after importing this package.

It seems that this anomaly only occurs on mobile devices. (Chrome Mobile with Android 10 only)

Possibly caused by this line.
https://github.com/devbaji/vue3-google-login/blob/5cd5853890abbe27ffcbabf3151742ba26acdbe2/src/plugin/utils.ts#L259

@Nomango Does this issue still exists? Can you help me replicate this issue? I don't have access to real device with android 10, I tried android emulator Pixel 3 XL with Android 10, but login was working fine

Please feel to reopen if this issue still exists


Cryptographic Service Provider

Twice in this article that CSP was defined as Credential Service Providers which I think is wrong.

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

ID: 01db3c4c-a866-d367-72fb-86866a9ff2c6
Version Independent ID: 5bc85899-f203-fd08-e6d8-deb9736fb17e
Content: Smart Card Architecture (Windows 10)
Content Source: windows/security/identity-protection/smart-cards/smart-card-architecture.md
Product: w10
Technology: windows
GitHub Login: @DaniHalfin
Microsoft Alias: daniha

@officedocsbot assign @e0i

Hello, @fightingsibuyas
The content is being reviewed in the light of your feedback and we'll keep you posted on updates.
Thank you for providing feedback.

@e0i Created OR https://github.com/MicrosoftDocs/windows-itpro-docs/pull/3893

@fightingsibuyas
Upon your feedback, We have updated the content with relevant changes accordingly. Thanks.

@officedocsbot close

Hi, CSP should be Cryptograhic Service Provider, it was not corrected on this article.


passing command line argument when launching an application

this is probably an appium issue. How to pass command line arguments when launching the test application. this is to get around the issue where splash screen causes no elements to be found because the currentwindowhandle is that of the splash screen and not of the currently displayed window. the splash screen disappears after a while but the currentwindowhandle points to the splash screen instead of the new window.

How to pass command line argument when launching the test application?
How to switch window handle to handle WPF applications which have possibly more than one window.

For workarounds to switching of window handles, please see #105.

@daghb I'm looking more closely at your switchto suggestion.  Interesting, seems like it could be a more elegant way to switch between windows.  Thank you for posting that.

Is there a solution for part 1? I also need to pass some command line arguments to the app to start.

Any updates on point 1?
I've got WPF application that supports command line arguments.  I need to test the application with different arguments as it affects the behaviour of the application.

+1

Since v1.0-RC release. Windows Application Driver can now launch an application with command line arguments. Below is an example of launching Notepad opening MyTestFile.txt in C:\MyTestFolder\ working directory.
// Launch Notepad
DesiredCapabilities appCapabilities = new DesiredCapabilities();
appCapabilities.SetCapability("app", @"C:\Windows\System32\notepad.exe");
appCapabilities.SetCapability("appArguments", @"MyTestFile.txt");
appCapabilities.SetCapability("appWorkingDir", @"C:\MyTestFolder\");
WindowsDriver<WindowsElement> NotepadSession = new WindowsDriver<WindowsElement>(new Uri("http://<IP_ADDRESS>:4723"), appCapabilities);

The snippet above is taken from CreateSessionWithArguments_ClassicApp test scenario. Check out the README.md for more information on other supported capabilities.
For switching window handle on multiple windows application, you can refer to the SwitchWindows test scenario. Below is a generalized example on how you can enumerates all top level windows belonging to the application and switching to it.
DesiredCapabilities appCapabilities = new DesiredCapabilities();
appCapabilities.SetCapability("app", YourAppId);
WindowsDriver<WindowsElement> session = new WindowsDriver<WindowsElement>(new Uri(CommonTestSettings.WindowsApplicationDriverUrl), appCapabilities);
Assert.IsNotNull(session);

// Identify the current window handle. You can check through inspect.exe which window this is and whether this is in fact the splash screen or the right window
var currentWindowHandle = session.CurrentWindowHandle;

// Wait for 5 seconds or however long it is needed for the right window to appear
Thread.Sleep(TimeSpan.FromSeconds(5));

// Return all window handles associated with this process/application.
// At this point hopefully you have one to pick from. Otherwise you can
// simply iterate through them to identify the one you want.
var allWindowHandles = session.WindowHandles;

// Assuming you only have only one window entry in allWindowHandles and it is in fact the correct one,
// switch the session to that window as follows. You can repeat this logic with any top window with the same
// process id (any entry of allWindowHandles). Otherwise, iterate through the list and find the right one.
session.SwitchTo().Window(allWindowHandles[0]);

Microsoft's WinAppDriver is still in RC status and it seems will never be fully released. Appium's WinAppDriver implementation using AppiumOptions.AddAdditionalCapabilty is where everyone is moving to. Sure, you can use the old WinAppDriver but will it be supported moving forward? No clue. As for AppArguments in AppiumOptions - I can't find any information on how to pass these in (anywhere). Seems like it is something that was left off Appium's implementation of the WinAppDriver?


Critical issue data entry

Investigate short-term options for entering criticals.
Input fields are:

scheme reference and design stage
one of 15 criticals (and then there are sub-questions on some)
freeform notes
a lat, long
name of nearest street / intersection

Last two are slightly tedious to generate.
We can focus on making a nice UI for doing this and punt on how we submit the data somewhere. I thought we might be able to open an MS Forms URL and attach query parameters to pre-fill some fields, but apparently this may not be supported -- still need to try. Even still, it's not throwaway work, since eventually we'll be able to submit to an API and stash in a proper DB.

Okay after discussion with Dustin we have agreed on some initial steps to implement then get feedback for iteration:

At first we will implement a new page, which allows you to drop a pin then fill in a form.
This will not be hooked up to any actual database or output, it's just in anticipation of scheme updater paving the way for us to have DB access
You will be able to access this page directly, or by selecting a scheme on the scheme browse page, and the page will be opened centred on that scheme's location

A second stage of work will allow the user to see existing entered criticals, again not actually hooked up to a backend but demonstrating how it would work with a working DB integration


AsyncStatus takes an Awaitable according to type signature but rejects anything that isn't a coroutine

If a gather is passed, for example:
>>> from ophyd_async.core import AsyncStatus
>>> import asyncio
>>> operation = asyncio.gather(asyncio.sleep(1), asyncio.sleep(2))
>>> async def foo():
...     AsyncStatus(operation)
...
>>>
>>> asyncio.run(foo())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib64/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "<stdin>", line 2, in foo
  File "/home/vid18871/projects/bluesky/ophyd-async/src/ophyd_async/core/async_status.py", line 33, in __init__
    self.task = asyncio.create_task(awaitable)
  File "/usr/lib64/python3.10/asyncio/tasks.py", line 337, in create_task
    task = loop.create_task(coro)
  File "/usr/lib64/python3.10/asyncio/base_events.py", line 438, in create_task
    task = tasks.Task(coro, loop=self, name=name)
TypeError: a coroutine was expected, got <_GatheringFuture pending>

Is there a usecase for this? Now we have AsyncStatus.wrap taking arbitrary kwargs then we are mostly getting either a Task or a coroutine, so I propose to ban all other alternatives...

I have no strong preference whether the type signature is changed or things that aren't coroutines are supported, as long as one of those things happens. The only convenient use case I can think of is:
def do_thing() -> AsyncStatus:
    return AsyncStatus(asyncio.gather(task_1(), task_2(), task_3()))

I have no strong preference whether the type signature is changed or things that aren't coroutines are supported, as long as one of those things happens. The only convenient use case I can think of is:
def do_thing() -> AsyncStatus:
    return AsyncStatus(asyncio.gather(task_1(), task_2(), task_3()))

As we can do this:
@AsyncStatus.wrap
async def do_thing():
    return await asyncio.gather(task_1(), task_2(), task_3())

I think we should change it to only accept coroutines and Tasks

So this should change the type signature and docs to say that it only takes a Coroutine or a Task, not an Awaitable


How to take a RAW image on OV2640?; Arduino Nano RP2040 Connect

I have OV2640 connected to Arduino Nano RP2040 Connect. It works well, but I only see the option of taking a JPEG image. I need to take a RAW image instead, preferably in a grayscale of size 80 x 50. Could you please tell me how I can do it? Thank you!

@nikita-kotsehub did you ever get this resolved?


JavaScript: Classify files with names ending in _min as minified.

We already do the same for -min and .min. Here is a real-world example.

Are you sure you want that last underscore in the regexp?
With this change, a file like util_min_math.js is marked as being a generated file.

Hm, fair point. It's not necessary for the example I want to classify, so I've taken it out again (it'll still classify util-min-math.js, but I have seen cases where the final dash is important).

I've changed my mind about this. I think it would be confusing to treat util-min-math.js as minified but not util_min_math.js. Note that the effects of a misclassification are not overly dramatic: the file will still be extracted and analysed, it's just that alerts in that file will be hidden by default on LGTM.com (but you can still see them if you view the file directly).


Update Guarulhos and Campinas contracts

Guarulhos and Campinas added a new gazette to jan/2018 and broke our contracts.
This problem will happen again, should we avoid using an older year for the contract?

Maybe. That's a thing: the municipalities were not supposed to be publishing gazettes in past dates.

@Irio , this is the main reason that we don't usually use contracts.
They break even if the spider is not broken and most of the times, when they break it is a false positive, not a real error.

Did you have the change of finding which days were added?

No, I was just updating my local repo, saw the error and make the pr and I don't know a way to see that (besides looking into the database if it was with these cities data). There is another way?

@giovanisleite The only guaranteed way (at this moment) is to take a look on every pdf collected.


Bug: Auto Summarise doesn't work sometimes, and does not exit gracefully

Describe the bug

I added my PR for auto summary, but it raised some errors and the button just kept blinking. I had to reload to try again.
Steps to reproduce

go to insights/feed
https://github.com/open-sauced/pizza-cli/pull/15 - this was the pr url
click on auto summarise
it should throw errors and get stuck in a loop (blinking)

Browsers
Chrome
Additional context (Is this in dev or production?)
No response
Code of Conduct

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

Contributing Docs

[X] I agree to follow this project's Contribution Docs

This seems to be some weird authentication error, when I re login it works.

This sounds like a duplicate of: https://github.com/open-sauced/insights/issues/1440 where I was also getting strange 401 with the token being null.
@diivi - do you mind reading over that issue and adding any context you can think of?

Yup, it's exactly the same thing.


16k RSS texture pack

With the latest RSS-Textures release we've added our own official 16k texture pack in addition to Vannadin's 16k textures. Actually the new release is already based on @Vannadin 's work which we've used with their permission and added some of our own improvements on top of that. Now the issue is that heightmap handling changed for some of the planets which makes Vannadin's current release incompatible with the latest RSS.  Additionally it looks like this pack also uses the RSSTextures16K identifier which we would have preferred to use for official textures. What do you think would be the best approach to go forward with from the CKAN perspective?
Also does CKAN support setting up release compatibility based on dependency versions instead of KSP versions? This might come in handy since both the RSS and RSS-textures currently only work with the latest releases of each other.

Links for convenience:

#7699
#7700
https://github.com/KSP-RO/RSS-Textures
https://github.com/KSP-RO/RSS-Textures/releases

Now the issue is that heightmap handling changed for some of the planets which makes Vannadin's current release incompatible with the latest RSS.
Also does CKAN support setting up release compatibility based on dependency versions instead of KSP versions? This might come in handy since both the RSS and RSS-textures currently only work with the latest releases of each other.

What changed to become incompatible? Was it RSS itself, or KSP, or Kopernicus...?

Yes, RSS itself. Changes to RSS and the -Textures means that the latest releases do not work together with any of the previous releases even though those are also meant for the same KSP version.


[gpuCI] Forward-merge branch-21.12 to branch-22.02 [skip gpuci]

Forward-merge triggered by push to branch-21.12 that creates a PR to keep branch-22.02 up-to-date. If this PR is unable to be immediately merged due to conflicts, it will remain open for the team to manually merge.

SUCCESS - forward-merge complete.


Salon Appointment Scheduler

Affected page
Relational Database Alpha
Salon Appointment Scheduler
Your code

#! /bin/bash
PSQL="psql -X --username=freecodecamp --dbname=salon --tuples-only -c"
echo -e "\n~~~~~ Salon Appointment Scheduler ~~~~~\n"
echo -e "How may I help you?\n"

MAIN_MENU() {
  #display a numbered list of the services you offer before the first prompt for input, each with the format #) <service>

  #get services
  SERVICES=$($PSQL "SELECT service_id, name FROM services ORDER BY service_id;")

  #display services
  # sed method echo "$SERVICES" | sed -E 's/^ *| *$//g' | sed -E 's/ \|/)/g'

  #while read method
  echo "$SERVICES" | while read SERVICE_ID BAR SERVICE_NAME
  do
    echo "$SERVICE_ID) $SERVICE_NAME"
  done

  #read selection
  read SERVICE_ID_SELECTED

  #check if in db
  SERVICE_ID_SELECTED_DB=$($PSQL "SELECT service_id FROM services WHERE service_id = $SERVICE_ID_SELECTED;")

  #if not found
  if [[ -z $SERVICE_ID_SELECTED_DB ]]
  then

    #send to main menu
    MAIN_MENU "Please enter a valid service number."

  else

    #get customer info
    echo -e "\nWhat's your phone number?"
    read CUSTOMER_PHONE

    #check if already a customer
    CUSTOMER_ID_DB=$($PSQL "SELECT customer_id FROM customers WHERE phone = '$CUSTOMER_PHONE';")

    #if not found
    if [[ -z $CUSTOMER_ID_DB ]]
    then

      #get name
      echo -e "\nWhat's your name?"
      read CUSTOMER_NAME

      #insert into customers phone & name
      CUSTOMER_PHONE_NAME_IN_DB=$($PSQL "INSERT INTO customers(name, phone) VALUES('$CUSTOMER_NAME', '$CUSTOMER_PHONE');")

      #get customer id
      CUSTOMER_ID_DB=$($PSQL "SELECT customer_id FROM customers WHERE phone = '$CUSTOMER_PHONE';")

    fi

    #ask for time
    echo -e "\nWhat time would you like?"
    read SERVICE_TIME

    #insert into appointments customer_id & service_id & time
    CUSTOMER_ID_SERVICE_ID_TIME_IN_DB=$($PSQL "INSERT INTO appointments(customer_id, service_id, time) VALUES($CUSTOMER_ID_DB, $SERVICE_ID_SELECTED, $SERVICE_TIME);")

    #get service name
    SERVICE_NAME=$($PSQL "SELECT name FROM services WHERE service_id = $SERVICE_ID_SELECTED;")

    #retrieve customer name
    CUSTOMER_NAME_DB=$($PSQL "SELECT name FROM customers WHERE phone = '$CUSTOMER_PHONE';")

    #output message
    echo "I have put you down for a$SERVICE_NAME at $SERVICE_TIME,$CUSTOMER_NAME_DB."

  fi

}

MAIN_MENU

Expected behavior
Hoped all the checkboxes would turn green and a "Congratulations" would appear
Screenshots

System

Device: Laptop
OS: Windows 10
Browser: Firefox
Version: 97

Additional context
EDITS NEEDED TO TUTORIAL TEXT:
Slight typo with "your" intstead of "you" in the final suggested output on the last checkbox.
"11am" is not a recognized TIME

I think we are safe to close this for now. Perhaps there's some improvements that could be made - I would like to see if others are having issues around this. Let me know if anyone disagrees and we can look into making changes.


Certificate variable type does not add SSL client certificate purpose

Hi,
I think Bosh does not generate SSL client certificates correctly.
Test 1:
When using the following certificate variable type:
    name: haproxy_client_ssl
    type: certificate
    options:
      ca: router_ca
      common_name: HAProxyClientSSL
      extended_key_usage:
      - server_auth
      - client_auth

The client certificate purposes does not have SSL client: Yes:
$ openssl x509 -in backend-crt.pem -text -noout -purpose
[...]
Certificate purposes:
SSL client : No
SSL client CA : No
SSL server : Yes
SSL server CA : No
Netscape SSL server : Yes
Netscape SSL server CA : No
S/MIME signing : No
S/MIME signing CA : No
S/MIME encryption : No
S/MIME encryption CA : No
CRL signing : No
CRL signing CA : No
Any Purpose : Yes
Any Purpose CA : Yes
OCSP helper : Yes
OCSP helper CA : No
Time Stamp signing : No
Time Stamp signing CA : No

Test 2:
When using the following certificate variable type:
    name: haproxy_client_ssl
    type: certificate
    options:
      ca: router_ca
      common_name: HAProxyClientSSL

The client certificate purposes does not have SSL client: Yes:
$ openssl x509 -in backend-crt.pem -text -noout -purpose
[...]
Certificate purposes:
SSL client : No
SSL client CA : No
SSL server : Yes
SSL server CA : No
Netscape SSL server : Yes
Netscape SSL server CA : No
S/MIME signing : No
S/MIME signing CA : No
S/MIME encryption : No
S/MIME encryption CA : No
CRL signing : No
CRL signing CA : No
Any Purpose : Yes
Any Purpose CA : Yes
OCSP helper : Yes
OCSP helper CA : No
Time Stamp signing : No
Time Stamp signing CA : No

Result:
The result of this misbehavior is the Gorouter in mTLS mode (Gorouter property client_cert_validation: require) does not accept the HAProxy client certificate by outputting the following error:
http: TLS handshake error from <IP_ADDRESS>:43916: tls: failed to verify client's certificate: x509: certificate specifies an incompatible key usage

Thank you for your help!

@sbourlon i checked with openssl command above certs that get generated when using --vars-store and they do show up as SSL client : Yes. are you using director + credhub or --vars-store. in either case we also do not currently support automatic regeneration of the certs if their options change, so my guess is your certs were generated before you had extended_key_usage and after you updated options they were not regenerated.
(267.x bosh release will include an option to regenerate if options change).

Hi @cppforlife,
I used the following Bosh deploy command:
bosh -e vbox -d cf deploy cf-deployment.yml \
    -o operations/bosh-lite.yml \
    --vars-store deployment-vars.yml \
    -v system_domain=bosh-lite.com \
    -o operations/scale-to-one-az.yml \
    -o operations/use-compiled-releases.yml \
    -o operations/require-client-tls-certificates-for-gorouter.yml \
    -o operations/community/use-haproxy.yml`

where I added a certificate variable to operations/community/use-haproxy.yml.
If I understand correctly, I can't update a variable certificate? If that's the case, should I just destroy the deployment and redeploy?
Thank you for your help.

--vars-store deployment-vars.yml \ is what contains generated certs. you can edit deployment-vars.yml and remove section that represents certificate you want to delete. next time you run above command it will regenerate cert with new options.

Thanks @cppforlife. It worked!
With:
      extended_key_usage:
        - server_auth
        - client_auth

The certificate will have the purpose:
SSL client : Yes

Should I close the issue or would you like to keep it to track an action item?

Should I close the issue or would you like to keep it to track an action item?

i dont think there is anything to do (given that you've verified that it actually works), but may be i misunderstood your request?

Closing - sounds like the question was answered, and extended_key_usage and default behaviors are working as intended.


Configuration symfony 3.4

Hello, I would like to switch my project in v4 symfony and I encounter problems with the configuration.
With the one indicated in the documentation I get the following errors.
Invalid type for path "oneup_uploader.mappings.id.allowed_mimetypes.0". Expected array, but got string
My configuration:
oneup_uploader:
    chunks:
        maxage:               604800
        storage:
            type:               filesystem
            directory:          ~
            filesystem:         ~
            sync_buffer_size:   100K
            stream_wrapper:     ~
            prefix:             'chunks'
        load_distribution:    true
    orphanage:
        maxage:               604800
        directory:            ~
    twig:                 true
    mappings:             # Required

        # Prototype
        id:
            frontend:             blueimp
            custom_frontend:
                name:                 ~
                class:                ~
            storage:
                service:              ~
                type:                 filesystem
                filesystem:           ~
                directory:            ~
                stream_wrapper:       ~
                sync_buffer_size:     100K
            route_prefix:
            endpoints:
                upload: ~
                progress: ~
                cancel: ~
            allowed_mimetypes:     ['image/jpeg','image/png','text/plain','application/pdf','application/vnd.oasis.opendocument.text','application/vnd.oasis.opendocument.spreadsheet','application/vnd.oasis.opendocument.presentation','application/vnd.ms-powerpoint','application/msword','application/vnd.openxmlformats-officedocument.wordprocessingml.document']
                #image/jpeg: ['jpg', 'jpeg', 'jpe']
            disallowed_mimetypes:  []
            error_handler:        oneup_uploader.error_handler.blueimp
            root_folder:          false

            # Set max_size to -1 for gracefully downgrade this number to the systems max upload size.
            max_size:<PHONE_NUMBER>854775807
            use_orphanage:        false
            enable_progress:      false
            enable_cancelation:   false
            namer:                oneup_uploader.namer.uniqid

Does it work just with
allowed_mimetypes:     []

?

I am running through the same problem. @bytehead suggestion does not work for me...

Very strange, the notification seems to disappear if we replace
allowed_mimetypes:     ['image/jpeg','image/png','text/plain','application/pdf','application/vnd.oasis.opendocument.text','application/vnd.oasis.opendocument.spreadsheet','application/vnd.oasis.opendocument.presentation','application/vnd.ms-powerpoint','application/msword','application/vnd.openxmlformats-officedocument.wordprocessingml.document']`

by
allowed_mimetypes:
    type: ['image/jpeg','image/png','text/plain','application/pdf','application/vnd.oasis.opendocument.text','application/vnd.oasis.opendocument.spreadsheet','application/vnd.oasis.opendocument.presentation','application/vnd.ms-powerpoint','application/msword','application/vnd.openxmlformats-officedocument.wordprocessingml.document']

Thanks for clarification. Closing in favor of #318.


DBZ-6673 Fix flaky Oracle test

https://issues.redhat.com/browse/DBZ-6673
The shouldCaptureChangesForTransactionsAcrossSnapshotBoundaryWithoutReemittingDDLChanges test only expects the tables created by the entire test to exist but tables from other tests not, and it would appear this commonly happens when another test fails to cleanup after itself.
This fix is to guarantee that the Oracle database state is set properly so that tests from within this class are executed with the right number of tables expected to exist.

@Naros Applied, thanks