net/http: rogue log output to stderr in net/http package

What version of Go are you using (go version)?

$ go version: 1.17 (master/main branch)

Does this issue reproduce with the latest release?
Yes.
What did you do?
package testpackage

// Run this using $ go test

import (
	"bytes"
	"fmt"
	"io/ioutil"
	"net/http"
	"testing"
)

// RoundTripFuncError describes an interface type that we will then implement.
type RoundTripFuncError func(req *http.Request) *http.Response

// RoundTripError implements Golang's roundtrip interface. In this
// version we want to simulate an error when trying to connect to a
// given SPARQL server.
func (fn RoundTripFuncError) RoundTrip(request *http.Request) (*http.Response, error) {
	return fn(request), fmt.Errorf("Mock error...")
}

// NewTestClientError returns *http.Client with Transport replaced to
// avoid making real calls out to the Internet. Transport will then do
// whatever we request of it. With this version we mock an error in the
// call.
func NewTestClientError(fn RoundTripFuncError) *http.Client {
	return &http.Client{
		Transport: RoundTripFuncError(fn),
	}
}

// TestRoundtrip...
func TestRoundtrip(t *testing.T) {
	httpClient := NewTestClientError(func(req *http.Request) *http.Response {
		return &http.Response{
			StatusCode: 418,
			// Send response to be tested
			Body: ioutil.NopCloser(bytes.NewBufferString("Some response")),
			// Must be set to non-nil value or it panics
			Header: make(http.Header),
		}
	})

	req, err := http.NewRequest("GET", "http://example.com", nil)

	if err != nil {
		// Do something...
	}

	_, err = httpClient.Do(req)
	if err != nil {
		// Do something...
	}
}

What did you expect to see?
Expecting an response or error to handle, or something else? (This looks like a developer's note to self, not necessarily something for everyone?)
What did you see instead?
Seeing an output to stderr which I don't think we are expected to work with. It seems like this would be more idiomatic for the caller to deal with this somewhere, and not have the package itself output anything. I'd be interested to hear more about the intentions of the authorship though.

output is
2021/05/09 17:46:09 RoundTripper returned a response & error; ignoring response

from
https://github.com/golang/go/blob/5203357ebacf9f41ca5e194d953c164049172e96/src/net/http/client.go#L255
cc @bradfitz @rsc @empijei

cc @fraenkel @neild

The logging is correct. It is letting you know that you violated the RoundTripper contract.
RoundTrip must return err == nil if it obtained
a response, regardless of the response's HTTP status code.
A non-nil err should be reserved for failure to obtain a
response.

Thanks @fraenkel. That provides helpful advice how to resolve that in my tests. I didn't realize logging was generally recommended in packages. Thanks for the feedback. Should I close this issue?

It isn't but there is little else one can do here. Given no error can be returned which would also be rude, a panic is just as bad. The logging was sufficient for you to notice which is its intent.

Yeah, I still think logging is the best compromise there. It's helpful but not too intrusive, but enough to get noticed.


Problems learning to use

Plugin Version or Commit ID
v0.10.1
Unity Version
2021.3.11f1
Your Host OS
Win11Pro
Target Platform
UnityEditor, Windows Standalone
Description
Hello, I would like to ask about facemask how I should go about it. And how do I use the file Maskannotation.cs,MaskAnnotationController.cs,MaskShader.shader in mediapipe correctly?Thank you very much
Code to Reproduce the issue
No response
Additional Context
No response

Please read the Getting Started page first.
And if there's something unclear to you after reading it, ask a question.

I read the Getting Started article carefully, but like MultiFaceLandmarkListAnnotationController.cs it has its own stream. If I want to create a mask based on MaskAnnotationController.cs should I use the same method or do I need to create a new stream?
Or is there another way to build a facemask?and how to use MaskShader.shader?
I'm really sorry to bother you, I'm a rookie in this area.
@homuler

MaskAnnotationController is used to annotate the segmentation mask (cf. https://google.github.io/mediapipe/solutions/selfie_segmentation.html) and is not related to Face Mesh / Face Effect, so I'm afraid that it's not what you're looking for.
What do you mean by "build a facemask"?
If it's similar to the effect renderer, you need to do some more work to run it currently (see #79, #593).

Hello, for the effect renderer, can you describe it in more detail? @homuler

Please continue in #79.
There may not be much more I can say, though.


[Plugin] Linguist (Languages)

Summary
Linguist is the tooling used by GitHub to determine the languages in a repo. Now GitHub and a few other SCM have APIs to pull this data out but others don't. It would be great if we had a plugin to use Linguist directly.
Note: we have built this using Linguist-JS and would like to contribute it. Here is a sample of what this would look like:

Project website (if applicable)
Linguist - https://github.com/github/linguist
Linguist-JS - https://github.com/Nixinova/Linguist
Context
As a user of both Azure DevOps and Bitbucket this data is not available from their APIs. Being able to look at an entity and quickly know what languages it is made of is extremely helpful

Super nice! Is it looking up that info in realitime for frontend purposes? Sounds like something that might also be useful to have as a driver in the backend, such as a processor that slaps a "java" label in your metadata if linguist clearly shows a java-majority distribution of language use on that particular component's repo.

We built this with a backend that uses the backend-tasks to schedule the processing. It will generate the data for all the entities that has the needed annotation and save it to the database. The backend has an API for the frontend to call to display the data. There is also a POST endpoint that can be used to generate the data, this was handy for testing but also could be used for a possible manual refresh feature at some point.
No reason this can't be adapted for the pattern you suggested though.
We have this working for roughly 600 repos roughly evenly split between Azure DevOps and Bitbucket. The only issue we've run into is large files seem to cause errors, this has been seen in only 2 repos so we just removed the annotation for now

@awanlin sounds like an interesting feature. Would you be up for contributing what you did?


docs: skeleton for guiding users towards interpretation

Adding a pointer to https://github.com/nf-core/scdownstream/issues/2 and adding insights by @nictru on slack to the output.md. Also added a table with files I found create that seemed interesting for which a short description would be of help. Still a skeleton, would wait for some initial comments prior to (doing my best to) filling them.

These were magic words of yours. Would you mind me adding them to this documentation-idea-gathering-branch?
That table I came up with I would then split into "use this for CELLxGENE et al." and "secondary intermediary files the contribute to the final 'AnnData' object".
There are different apparent top-level files (./adata/merged_inner.h5ad, ./adata/merged.h5ad, ./adata/merged_outer. h5ad) which were not ultimately obvious to me how these should be interpreted. Would you have some easily accessible description for those? I would then incorporate that into the output.md file.

Yes feel free to add anything you think helps people understand the pipeline to the docs.
I would also like to refer the people to cellxgene less strongly - I mean it is a good way of visualizing it and we should definitely mention it, but we also have own reports. The quality of them will improve soon once I have more time.
For the inner and outer merged objects:
Basically when concatenating the various input datasets there are two ways of handling the genes: Either performing an inner or an outer join of the genes present in all datasets - that's what you will find here. Biologists often want to see all their favourite gene in the final object, so the final result will contain the outer join. For integration, only the inner join will be used, as missing genes often lead to a clustering that's more based on the presence of absence of genes, than on actual biological differences. Because of this, the integration is performed based on the intersection. We could also use a limited number of highly variable genes here.
A bit more technical background: When concatenating the anndata objects performing an outer join, the missing values will be filled with 0s instead of NaNs. This is because 0 values use nearly no memory in the sparse representation. Filling them with NaNs will make the memory blow up.

Just another iteration.

@smoe, thanks for your work so far. I just merged #71, which does similar things to this PR. However, I am sure we can recycle some things from here to make it better understandable for less experienced users.
I will now close this issue since a basic output documentation has now been established. If you want to add something from here, feel free to reopen this PR or open a new one. Thanks again for your effort, it gave me a lot of inspiration for #71!

Sorry for being barely responsive these days, it is a bit much from too many sides :) So, thank you for proceeding, will look at my run and am confident that new issues arise :)


Github action for creating SARIF reports

SAT-1627

https://github.com/UnitTestBot/UTBotJava-action
Gradle plugin should be applied to the project:
https://plugins.gradle.org/plugin/org.utbot.gradle.plugin
Example of a workflow:
name: "Run UTBotJava-action"

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Setup Java
      uses: actions/setup-java@v2
      with:
        distribution: adopt
        java-version: 8

    - name: Setup Gradle
      uses: gradle/gradle-build-action@v2
      with:
        gradle-version: 6.8

    - name: Run UTBotJava-action
      uses: UnitTestBot/UTBotJava-action@main


Included version of git is to old

docker exec <jenkinsci-container> git version
git version 2.1.4

Several plugins list a newer version of git as a dependency.
BitBucket Plugin -> 2.3.5
GitHub Plugin -> 2.4.0
Maybe consider basing the Jenkins image of alpine?

Just noticed that there already is a tag with alpine which solves this. Might still be worth to consider the git version for the regular build though. Feel free to close this if nothing will be done to fix the git version in the regular build.

We don't install git, this one is inherited from parent image


OTC/TTC tables seems not to be shared

Raise to: https://github.com/fonttools/fonttools/discussions/3228

Fix: https://github.com/TakWolf/pixel-font-builder/releases/tag/0.0.6


Uncertainty in description

Hello!
You have done a great job!
Please take a look at the description of -indel_size_powerlaw_constant option. It seems for you to forget to change the description after copying from previous one.
Best regards
Asan

Dear Asan,
Thanks for noticing this omit! I've now fixed this issue in both README.md and simuG.pl. The description for this option now reads as follows:
-indel_size_powerlaw_constant
            Specify the exponent factor constant (C) for power-law-fitted indel
            size distribution: p = C * (size) ** (alpha) for size >= 1 &
            size <= 50. Default = 0.5. Example:
            -indel_size_powerlaw_constant 0.5.


data normalization and information leakage

I normalized my sample data prior to running the HYDRA classifier, but it occurred to me that scaling the data prior to cross-validation can introduce data leakage because information from the entire dataset is used to determine the scaling parameters (mean and standard deviation), which then affects each fold of the cross-validation.
Perhaps it would be better to separately scale the data in each split?
hhm I think I was mistaken. Apologies. I see now that there is scaling being performed on the features using x = self._input.get_x().

Ideally, scaling data or feature selection should always be done in nested cross validation (especially for classification and regression supervised ML). HYDRA is built on top of multiple SVMs to find disease subtypes, and I think feature scaling is done on the entire dataset. Since scaling does not involve the labels of the data, and HYDRA only uses the labels (CN and PT) to guide the final disease subtypes, I don't think this will be a big issue. But if you want to incorporate scaling into CV, I think it's doable, just adjust the code.


'Update available' dialog missing

The dialog 'update available' is missing from the version 1.0 onwards. Whenever a new update was released before this version the dialog box appeared soon after the .exe was launched.

Will add my comment soon

Yes the update modal was removed, and replaced with a better and less annoying one

The title of the window


Local volume not bind with container

OS:Win 10 Pro
My IIS Docker file:
FROM microsoft/iis:latest
RUN powershell -NoProfile -Command Remove-Item -Recurse C:\inetpub\wwwroot\*
WORKDIR /inetpub/wwwroot
COPY content/ .
EXPOSE 80

Build command:
C:\Users\admin\Desktop\iis-demo>docker build -t iis-image .

Sending build context to Docker daemon  6.656kB
Step 1/5 : FROM microsoft/iis:latest
---> 248afbbe0fd1
Step 2/5 : RUN powershell -NoProfile -Command Remove-Item -Recurse C:\inetpub\wwwroot*
---> Using cache
---> 880273c74891
Step 3/5 : WORKDIR /inetpub/wwwroot
---> Using cache
---> a07a920df3bf
Step 4/5 : COPY content/ .
---> ab16da97c523
Step 5/5 : EXPOSE 80
---> Running in 98b7cbef83c9
Removing intermediate container 98b7cbef83c9
---> 1c7d232a73aa
Successfully built 1c7d232a73aa
Successfully tagged iis-image:latest

Run Command:
C:\Users\admin\Desktop\iis-demo>docker run -d -p 8080:80 -v C:\Users\admin\Desktop\iis-demo\content:/inetpub/wwwroot iis-image
i also tried with:
C:\Users\admin\Desktop\iis-demo>docker run -d -p 8080:80 -v C:\\Users\\admin\\Desktop\\iis-demo\\content:/inetpub/wwwroot iis-image
But everytime I am getting following error:

docker: Error response from daemon: invalid volume specification: 'C:\Users\admin\Desktop\iis-demo\content:/inetpub/wwwroot'.
See 'docker run --help'.

Try this command which included the c: and changed the direction of your slashes for the remote location:
docker run -d -p 8080:80 -v C:\Users\admin\Desktop\iis-demo\content:c:\inetpub\wwwroot iis-image

I tried according your suggestion and docker run successfully but when I checked with container IP on browser it gives error
Like below:

401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.

I am actually running in to the same issue. I am also able to get the container to mount the local folder, however, whether I overwrite the wwwroot folder or add the mounted folder as a subdirectory within wwwroot, I recieve the same 401 error.
I have been trying to adjust the Anonymous Authentication but no success yet.Hopefully the devs here can help resolve this for us both.

@JWasdin is your mounted directory under C:\users as well? Also @SK5277-SINGH and @JWasdin can you report on which OS you're on (Result on Winver)?

@bariscaglar I actually mounted a subdirectory within the wwwroot. I had an index.html file in this subdir, and when I shifted the html file to another name it seemed to resolve the issue. Not certain why this was the case.
Running on Win10 Pro

Hi @JWasdin :
Please make sure you don't have conflict files between the source folder and the target folder.

@mcy94w The target folder is not created until the source folder is mounted so I don't think there should be any conflict between the files given they are added to subdirs instead of the wwwroot.

@JWasdin  I see. Could you please paste the result for (Get-Acl c:/path/to/your/mapped/file).Access

@mcy94w
Here is the requested response, scrubbed a bit since it is a work station:
FileSystemRights  : FullControl
AccessControlType : Allow
IdentityReference : domain\user
IsInherited       : True
InheritanceFlags  : ContainerInherit, ObjectInherit
PropagationFlags  : None

Hi @JWasdin :
I see. In this case BUILTIN\Users does not have access to the file. As a result, IIS will not have access. I don't think any folder under user profile will be accessible if map to container.

@JWasdin Can you trying either volume mounting a directory that BUILTIN\Users has access to OR grant access to BUILTIN\Users on the directory that you are trying to volume mount into your container.
There's not much IIS can do at this to mitigate the issue you're seeing

Giving full control to Everyone on the host source folder worked for me.


[bug] Allow users to switch to supported chain in single chain setups

Link to minimal reproducible example
n/a
Summary
Noticed in v3 that if my wallet is connected to unsupported chain, I couldn't been able to switch to supported chain from acccount view. I was able to switch in v2 but not in v3. this is happening only when I have single chain in supported chains list in wagmi config.

List of related npm package versions
n/a

in v2 when prompted to sign message there used to be a switch chain. In v3 this is no longer the case. I hope this gets addressed as well

@spider9375 that is part of wagmi's sign message action not web3modal, you can provide specific chain to that method.

@0xAsimetriq  https://wagmi.sh/core/actions/signMessage there is no chain that can be provided for this specific method

Ah, do you even need to switch chain for this one? Signature is deprived from same private key no matter which chain the user is on, I think that's why they don't have it there.
I was thinking in terms of connect method, when you connect and user selects say arbitrum in web3modal, but their wallet is on ethereum, then they will be prompted to switch the network.
And other methods that actually need to be chain specific have option to pass chainId i.e. https://wagmi.sh/core/actions/writeContract#chainid-optional

I pass only mainnet as chain for configureChains and createConfig. But in my app I can connect and then sign while in Linea network in my metamask mobile app.
I was using WalletConnectSignClient v2 CDN and signing with the .request method would prompt in the metamask app to switch chains. Now i don't get this behavior with the web3modal and wagmi signMessage


Upgrade terraform-provider-grafana to v3.15.2

Release details: https://github.com/grafana/terraform-provider-grafana/releases/tag/v3.15.2

[!NOTE]
This issue was created automatically by the upgrade-provider tool and should be automatically closed by a subsequent upgrade pull request.

Hey @ringods nuget gallery doesn't seem to have anything past v0.5.1
See here


Outage of Pachycereeae

We have noticed major outages on our server Pachycereeae. We are investigating the problem.

We have found the root cause and are working on a solution.

We could recover the server successfully. Pachycereeae works as expected again.


Support rsync --includes via !path in .dockerignore and -I or --include-path

See issue #65 for reasoning.

Thanks for the PR. Looks great. I'm just waiting for CircleCI to resolve their issues before merging so I can be sure the tests run.

OK, tests pass. Merging now. Thank you!


refactor: move add document logic to use case

What does this pull request change?

Moves the add document from the document service to the add_document_use case.

Why is this pull request needed?

Document service is too big, and getting an overview of the code is therefore more complicated than it should. Isolate all document add functionality to the add document feature (use case).

NOTE: this is the first PR of several that will refactor the document service.

Issues related to this change:

For this structure to make sense it looks like we have to remove the entire document service and move all that logic into use cases. Is that the plan?

Not everything will be removed, the get and save will still be part of the document service (or in the shape of another component). Since all CRUD  operations will be using get and save.


how to deploy webvm via xampp?

clone webvm under htdocs folder
follow the guide of "Local deployment"
place  "debian_mini_20230519_5022088024.ext2"  under "htdocs\webvm"
launch webvm in edge brower.
pending for long time

I'll need some extra information to be able to help. Could you show me what's going on in the browser devtools network tab, and if there are any messages in the console? Are you using the included nginx configuration?

thank u for your reply.
the attached info:

It looks like you forgot to comment out the original definition of cmd in index.html, on line 269.

Since there's no more activity on this issue, I'm going to assume the issue is resolved and will close this.


find optimal # of z-slices for image translation (2.5D label-free -> 2D fluorescence)

What is the optimal receptor field along the z dimension for virtual staining? It should be similar to the receptor field along XY, because biological structures are not aligned in cartesian coordinates. However, optical resolution along Z is 2x lower than XY resolution.
The accuracy of prediction may improve when information outside optical resolution limit is used.
Imaging is typically done with 5x5 pixels within the XY resolution limit of microscope and 5 slices within the Z resolution limit.

Tested z = 3, 5, 7. There was improvement in test metrics going from 3 to 5, but not from 5 to 7 so we settled on z = 5 as the optimal number of slices for 2.5D models.


Grouping multiple matches from commit message

It could be interesting supports multiple matches into the same no conventional commit message.
For example, on the same commit:
Summary of my commit

new: added something amazing
fix: solved problem
refactor: i've rewritten an entire class

git cliff should generate relative group for each match (Features, Bug Fix, Refactor etc.)

Features

added something amazing

Bug fix

solved problem

Refactor

i've rewritten an entire class

Do you mean processing the commit description as if it has individual commit messages? If so, that would mean that you need to specify a custom format to parse a commit. (either commit message or description)
Any ideas about how the configuration might look like if this was implemented?

Closing due to inactivity / not interested in implementing this.


MySQL 5.6 with built-in memcache supported?

Hey there,
I'm pulling my hair out trying to get this to talk to the MySQL 5.6 new built-in memcache server.  I'm curious if you have been able to do this or not.  Apparently it's memcache compliant but I can't figure out how to get it functioning.  I can do the queries at a telnet session and verify that yes they show up but I can't get this working with django in any way shape or form.
I pinging you to see if you or anyone you know has successfully gotten django to use this combination or am I stomping into new territory?
References:

http://dev.mysql.com/doc/refman/5.6/en/innodb-memcached-setup.html
http://chipersoft.com/p/MySQL-via-Memcache/ (Great setup and install)

Thanks so much!!

@rh0dium - I hope you are OK after banging your head for 7 months now.  I don't know of anyone using MySQL's built-in memcache server - you could be one of the first.  Unless it how memcachier secretly works.  It's really easy to setup a memcached server, so most people go that route.
Some things that may help:
libmemcached includes memcapable, a program for verifying a memcached-compliant interface. It's very possible that the MySQL folks use it to verify they comply to the protocols.  You can use it to confirm you have MySQL 5.6 correctly setup.  When testing against memcached, I get a failure on the ascii verbosity test (Errno: 60 Operation timed out), but the other tests pass.  This may have interesting results beyond the telnet test.
Django requires configuration to configure the cache, as well as adding code to use the cache where you want it.  It's non-trivial - read the docs.
I'm closing this because it is pretty out-of-scope for this project.  It's worth a good blog post if you can make it work.  If you can't, you'll get a larger audience to help at ServerFault


Users/nigurr/change gradle plugin info

Class Directories are not required to be given as input. Gradle plugin will figure out the right one.

share what testing has been done for approval

E2E Testing along with Manual testing done.

Approved


ALVR v20.0.0-dev07+nightly.2023.03.06 Windows 10048 error on restart app on Pico4

If I close ALVR on my Pico 4 and open it again - without restart of PC app - PC app start spaming popup error messages:

At alvr\sockets\src\stream_socket\udp.rs:41: Only one usage of each socket address (protocol/network address/port) is normally permitted. (os error 10048)
and I have to restart PC app to fix it. If close app on Pico4 - messages stops, start again = more messages.

Shut down SteamVR, open task manager and on the Details tab, see if there's anything among these running:
vrserver
vrcompositor
vrmonitor
vrstartup
vrwebhelper
vrdashboard

(It's going to be vrserver 99% of the time.)
If you find something like that, just force stop them and then try launching ALVR again.

vrserver should be running - I do not need it to be stopped. I just need to restart app on Pico4 = client on headset (~because it was crashed).

Windows can be very weird with ports. Does your vrserver spawn any child processes? This error usually happens when the app that uses the port, spawns other processes. And even with the parent app closed, Windows will still "reserve" those ports for the child processes.

Sounds weird, if you closesocket() = port is free for next opening. It looks like ALVR pc server just don't close it.


Avoid inline execution of javascript in choices template.

If a server sets the content-security-policy header to script-src 'self' 'unsafe-inline'; all works well, but without unsafe-unline, the browser will throw an error: Refused to execute JavaScript URL because it violates the following Content Security Policy directive:.
There is no stack trace, but it turns out this is caused by href="javascript:void(0)" in the choices template.
Pull request #395 proposed removing that piece Javascript altogether, but apparently there were side effects.
I'm replacing it with ng-click="$event.preventDefault()", based on a similar fix in the ui.bootstrap project. This makes the CSP error go away.
All tests pass. I tried all examples in Safari and couldn't see anything obviously wrong, but I'm not sure what to look for.

Is there something I should improve in this PR to make it more likely to get merged?


Appstudio update test-component-pac-pjxo

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI/test-component-pac-pjxo-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
5 seconds
init

✅ Succeeded
10 seconds
clone-repository

✅ Succeeded
28 seconds
build-container

✅ Succeeded
14 seconds
inspect-image

✅ Succeeded
9 seconds
clair-scan

✅ Succeeded
45 seconds
clamav-scan

✅ Succeeded
14 seconds
deprecated-base-image-check

✅ Succeeded
11 seconds
sbom-json-check

✅ Succeeded
9 seconds
label-check

✅ Succeeded
6 seconds
show-summary

✅ Succeeded
5 seconds
show-sbom


Idea: Use custom locale for "views" and date formats

Currently the cards display in English ("xx views", "2 days ago", etc."). It may be nice to translate the word "views" into multiple languages and find a way to display the relative time difference in multiple languages.
The JSON found at https://github.com/unicode-org/cldr-json/tree/main/cldr-json/cldr-dates-modern may be useful for the relative time differences.
An external library such as humanize may also potentially help, but does not support as many locales.
Translations for the word "views" can be maintained independently (some examples can be found here: QuickStats.i18n.php, but we only need the word "views" and implemented in Python to make it easily accessible to the website code.

I'd like to work on this issue. For the translations, would some library that supports plugins like crowdin be preferable, or could this be maintained with a python/JSON file stored in the project?


Cannot redefine property: fullscreenElement

Hi, I'm guessing this condition is wrong (taken from here):
if (!document.fullscreenElement) {
    Object.defineProperty(document, 'fullscreenElement', {
      get: function() {
        return document.mozFullScreenElement ||
               document.msFullscreenElement ||
               document.webkitFullscreenElement;
      }
    });
  }

Already fixed in master by 7ea820c, but we'll leave this open until we've released v1.3.1, which will contain a cherry-pick of this fix.  Thanks!


Proofs require every token requires explict declaration in verify.k

Perhaps an extension to an old problem that was never fully solved in #209. It is now clear that ALL tokens must be explicitly listed in the verification module in order for the the symbolic backend parser to successfully parse them link, like so:
    syntax LocalToken ::= "_0" [token]
    syntax LocalToken ::= "_1" [token]
    ...
    syntax BBId ::= "bb0" [token]
    syntax BBId ::= "bb1" [token]
    ...
    syntax IdentifierToken ::= "core" [token]
    syntax IdentifierToken ::= "panicking" [token]
    syntax IdentifierToken ::= "panic" [token]
    syntax IdentifierToken ::= "\"assertion failed: num == 42\"" [token]

This is not resolved by added regex such as:
syntax IdentifierToken ::= r"[_a-zA-Z][_a-zA-Z0-9]*" [prefer, token, prec(2)]

A type of approach that was previously recommended in #209. While listing out the tokens is an immediate work around, it is completely impractical for KMIR as the project scales to being able to handle larger programs.

@Baltoli has recommended that we speak to the Kontrol team to see how they handle the issue. And also mentions that syntax IdentifierToken ::= "\"assertion failed: num == 42\"" [token] should not be encoded as an IdentifierToken but as a String


FormBuilderDateTimePicker - resetIcon

Maybe someone can help me with the resetIcon parameter in FormBuilderDateTimePicker.
I'm not able to get a resetIcon with my code below:
FormBuilderDateTimePicker(
    name: 'date',
    locale: context.locale,
    lastDate: DateTime.now(),
    firstDate: DateTime(1900),
    confirmText: 'general.submit'.tr(),
    cancelText: 'general.cancel'.tr(),
    fieldLabelText: 'general.date.title'.tr(),
    resetIcon: const Icon(Icons.delete),
    inputType: InputType.date,
    decoration: InputDecoration(
        contentPadding: const EdgeInsets.symmetric(vertical: 5.0, horizontal: 5.0),
        labelText: 'tests.birthDate'.tr(),
        disabledBorder: OutlineInputBorder(
        borderSide: BorderSide(color: Theme.of(context).primaryColor),
        ),
        focusedBorder: OutlineInputBorder(
        borderSide: BorderSide(color: Theme.of(context).primaryColor),
        ),
        enabledBorder: OutlineInputBorder(
        borderSide: BorderSide(color: Theme.of(context).primaryColor),
        ),
    ),
    format: kDateEUFormat,
),

Any hints what I'm doing wrong?
Thanks a ton!

I suspect that resetIcon is not actually hooked in anywhere. Searching the code base reveals the property in form_builder_date_time_picker.dart and nothing else. Probably something got removed at some point and now the property does nothing. It's a shame, because I would love for a "reset" on just the date picker (not the entire form).

i have experienced the same. eventually i downgraded to ^5.0.0-alpha.1.

Will this be fixed anytime soon?


Getting Type '"shortOffset"' is not assignable to type '"long" | "short"' error in angular 12

Even types are available Getting Type '"shortOffset"' is not assignable to type '"long" | "short"' error.

Not a TypeScript issue. Probably an outdated TypeScript version or a misconfiguration.

TypeScript version is ~4.3.5
tsconfig.json
{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "module": "es2020",
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es2015",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2020",
      "dom"
    ]
}

TypeScript 4.3 is over a year old. The timeZoneName "shortOffset" was added in TypeScript 4.7.

TypeScript 4.3 is over a year old

😮
...okay, I've been hanging around here too long.  Even TypeScript 3.x feels more recent than that...


"New Class" doesn't ensure last line end

My Class.as.fdt and Class.as.fdt.wizard templates in the user dir both have a newline at the end of file. I've enabled Ensure Last Line End FD option.
But when I create a New class from project panel's context menu Add > New Class, the newly created class doesn't have a newline after the last line. Looks like the template generation trims the ending whitespace, no matter what. I want my last line end ensured! :)

I've checked, and this setting (I didn't even know it) is designed to have an effect when saving a file already open in the editor, but not on other operations. I don't know all of the places where ensuring this setting would be required... MainForm.FileFromTemplate seems to be the one for this case. Maybe someone could collect all of the places needing change or come up with some common place for any similar operation.

I get your point, that's what I thought. Can't be sure if there's another point where that might be also needed, perhaps could check the source code for file saving operations?
Personally I haven't spotted other cases yet.


allow folding code block from "end"

fold code from end would be useful for writing code that contains complex logic. Modern IDE like jetbrains offers this convenient feature.
https://github.com/atom/atom/issues/11838 maybe related.

AFAICT that needs https://github.com/tree-sitter/tree-sitter-julia to be finished... I'll probably get around to that eventually.


[OTHER] Add a new community partners

What would you like to share?
URL: https://github.com/intlify
Logo: https://github.com/intlify/art
Description: Intlify is a project that aims to improve Developer Experience in software internationalization. We will aim to improve the Developer Experience of internationalization by providing libraries, frameworks, and tools that break down barriers to internationalization.
Can you choose a logo from the repository? ^
Additional information
No response
Would you like to work on this issue?

[ ] Yes, I want to work on this issue!

Code of Conduct

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

link: https://intlify.dev/ - I put their website
Panquesito7 suggested it and I think it's good.


[WFLY-15868] Upgrade Elytron 1.18.1.Final

Fixes https://issues.redhat.com/browse/WFLY-15868 for WildFly 27.x
Please find git diff links in the Jira.

@boris-unckel Thank you for catching the discrepancy between the two versions. The version.org.wildfly.security.elytron in WildFly is actually just for the wildfly-elytron-http-oidc, wildfly-elytron-jose-jwk, and wildfly-elytron-jose-util dependencies for the Elytron OIDC Client. To avoid needing to keep version.org.wildfly.security.elytron in sync in both the Core and WildFly pom.xml files, I've submitted some PRs to move the Elytron OIDC Client related dependencies to Core:
https://github.com/wildfly/wildfly-core/pull/4917
https://github.com/wildfly/wildfly/pull/15059

Since this PR is now superseded by https://github.com/wildfly/wildfly-core/pull/4917 and https://github.com/wildfly/wildfly/pull/15059, I'm going to close this one.
Thanks, @boris-unckel.


Suggestion: Add a real code snippet

I am a new on Ember. and i want to use library to help building application.
And I need to spend some time to really make use of your breadcrumb.
I suggest to add a simple code snippet in README.md to fulfil newbie Emberer.
e.g.
App.ApplesController = Ember.Controller.extend
  breadCrumb: "Categories"

App.ApplesIndexController = Ember.ArrayController.extend
  breadCrumb: "List"
  breadCrumbPath: "apple.list"

This is a good idea. I've added a sample app here: https://github.com/chrisfarber/ember-breadcrumbs-sample-app


prevent text selection for floating labels example

prevent text selection for floating labels

expand the click target by not selecting the label text

🤓 feedback welcome

Maybe we can use pointer-events: none; here? This generates less code because it doesn't need to be prefixed and has the same result?


Reduce demo concurrency - step 2

Reducing concurrency to save costs.
This step 2 of a two step change, follows #390  to correctly apply #388

This PR wasn't targeting 'main' so it didn't trigger codebuild initially. Added an empty commit after changing the base to kick that off.


Allow to specify custom path for Perl

Resolves #45

Given what @sfackler mentioned here it seems like we may want to check this env var, but fall back to PERL if it's set as well?

Given what @sfackler mentioned here it seems like we may want to check this env var, but fall back to PERL if it's set as well?

Sounds good. I am still trying to make this work in my project. Will clean up this PR once confirmed working as expected and implement the fallback logic.

Not sure why the tests where not passing yesterday but it looks good to go now.

Should this work in cargo.toml on Windows, please?
...

[env]
OPENSSL_SRC_PERL = "C:/myperl/perl/bin"

assuming the perl.exe is in that bin folder?


Refactor subscribe.css to SCSS

Description
This PR fixes a part of  #896
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

@rohitsrma, Thanks for your contribution, let's discuss this on the website's call. Please add this as an agenda item to the meeting minutes.


Grid should avoid extra re-render if identical agOptions prop passed

We've been updating apps to push agOptions objects out to a shared singleton reference on the component (or similar) to avoid extra grid re-renders triggered by the creation of a new object on each parent render.
Can we automate this within Grid, short-circuiting the render if agOptions was the only prop that changed and is structurally identical?

I believe we already made this change as part of some other grid changes a while back.
https://github.com/exhi/hoist-react/blob/develop/cmp/grid/Grid.js#L144
We are only building the agOptions in the constructor of Grid now so we should not be seeing extra re-renders of agGrid if the agOptions prop changes in the parent render.

Thanks for pointing this out, John.  And we're sure that this ends up avoiding re-renders - at least of the inner rendered ag-grid?
I'm really not paranoid about this, but I must have missed the memo on this optimization as I've still been recommending to other devs that we extract out any ag-options into a const on the parent component that's outputting a grid child. Will stop doing that and could unwind any cases we come across where that's already done.
(@lbwexler wanted to ensure this matched your expectation as well.)

Hi -- my bad -- yes, john and I did this work with an eye toward stabilizing the rendering of agGrid.  It should mean that only the trivial re-render of the  itself, not the .
I guess I wanted to test it further before announcing that we should revert all the static agOptions, and then just kind of forgot about it.  Maybe just a lack of confidence in the fix at a time when Alps performance in particular was really under the gun.....
Let's use this ticket to ensure we feel confident in our approach (perhaps by forcing some re-renders in various ways, and seeing that the re-render chain is broken) and then start cleaning up client code as we see it.

I was just playing with our main positions grid in the Portfolio app, on the treeMapV2 branch:
https://github.com/exhi/toolbox/blob/4062e2e2b5f160cb108f7a1b93d9a4528a5c9812/client-app/src/examples/portfolio/GridPanel.js#L30
If I pass any agOptions to the grid, e.g. item: grid({model: model.gridModel, agOptions: {foobar: true}}) and then expand a node, I see that node collapse on the next update tick.  Running the React tools profiler shows the grid rendering multiple times.

@haynesjm42 - we would like to resolve this one way or another in the near future, so we're not living with any de-optimization for our grids.  Can you make some time to confirm any issue here in the coming days?

Yes will do

Hi -- I spent a bunch of time looking at this and am pleased to finally close this!
I can confirm that (when specifying an agOptions and other props) we do not re-render the underlying agGrid, when the parent is rendered.  We will re-render our minimal wrapper,  but the wrapper itself freezes the  props in state so the render does not cascade.  This is critically to avoid losing state like expansion state and exactly what we want to do.
Seperately, we might discuss whether the remaining grid props like agOptions and onReady should just be moved to the GridModel -- seems like we could just complete this task once and for all!

Excellent - I will finally stop breaking out agOptions into consts and resume passing them inline without fear.

This is great - thanks Lee!

https://github.com/xh/hoist-react/blob/00b62ee70f820734f9e0118006687fd0963c9fe2/mobile/cmp/navigator/impl/swipe/Swiper.js#L141


CI: enable conan by default

Please merge the latest master so that PR #1082 is not shown in the diff.


add overview of AMY tables to documentation

This PR moves the documentation that was in the private systems repo to the AMY repo to make it more accessible to all AMY users.

Not sure why this is asking for a migration

@maneesha feel free to merge or update with my comment. I wouldn't worry about the failed test, as long as all is well after the merge. (And if it's not, I'll come and fix it).


Enhanced resource specifications

This changes our resource specifications away from flavors and towards a more kubernetes-style of individual resources. Previously, we internally used flavors as the resource specification. This did not allow for fine-grained specification of resources for Kubernetes applications, and it did not allow for calculating AppInst resource usage in a ClusterInst (because the AppInst flavor was treated as equivalent to the ClusterInst's flavor).
Additionally, we now support specifying multiple node pools for Kubernetes. There is still more work needed here:

The infra platforms still only support a single node pool
The way GPUs and other additional resources are specified needs to be reworked

The old "serverlessconfig", which was a way of specifying kubernetes-like resources, but was converted into a flavor internally, is now deprecated.
This work is done as part of the support for the CAMARA NBI, which specifies resources using individual resources instead of flavors, and requires support for multiple Kubernetes node pools.
Note that we still support specifying resources via flavors - they are just converted to the new resource specs internally.

Thanks Lev!


fatal error: Index out of range

I'm trying to implement a support for Kitura in Vapor by conforming Kitura's Server to the Vapor.ServerDriver protocol.
Here is the repo: https://github.com/qutheory/vapor-kitura-server
I've got Kitura running, but I can't get the Response class to work.
The error:
fatal error: Index out of range
Current stack trace:
0   libswiftCore.dylib                  0x000000010305d631 swift_reportError + 145
1   libswiftCore.dylib                  0x0000000103076f7b _swift_stdlib_reportFatalError + 59
2   libswiftCore.dylib                  0x0000000102fc3e9f function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded> of Swift.(_fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt, flags : Swift.UInt32) -> ()).(closure #2) + 351
3   libswiftCore.dylib                  0x0000000102fc3fa4 function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded, Arg[2] = Dead, Arg[3] = Dead> of Swift._fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt, flags : Swift.UInt32) -> () + 52
4   libswiftCore.dylib                  0x0000000102e7f803 generic specialization <Swift.String> of Swift.Array.subscript.getter : (Swift.Int) -> A + 131
5   VaporKituraServer                   0x0000000102bd0ffe Vapor.Request.init (method : Vapor.Request.Method, path : Swift.String, address : Swift.Optional<Swift.String>, headers : Swift.Dictionary<Swift.String, Swift.String>, body : Swift.Array<Swift.UInt8>) -> Vapor.Request + 446
6   VaporKituraServer                   0x0000000102bd1851 Vapor.Request.__allocating_init (method : Vapor.Request.Method, path : Swift.String, address : Swift.Optional<Swift.String>, headers : Swift.Dictionary<Swift.String, Swift.String>, body : Swift.Array<Swift.UInt8>) -> Vapor.Request + 193
7   VaporKituraServer                   0x0000000102b9cd91 VaporKituraServer.KituraServer.handleRequest (KituraNet.ServerRequest, response : KituraNet.ServerResponse) -> () + 385

main.swift
import Vapor

let app = Application()

app.any("test") { request in
    if let id = request.data["id"]?.string {
        return id
    }
    return "123"
}

app.providers.append(Provider)

app.start(port: 8080)

The code in question.
extension KituraServer: KituraNet.HttpServerDelegate {

	public func handleRequest(request: KituraNet.ServerRequest, response: KituraNet.ServerResponse) {
		//convert to Vapor request
		let vaporRequest = Vapor.Request.init(method: .Get, path: "", address: nil, headers: [:], body: [])

		//convert to Kitura response
        if let vaporResponse = self.delegate?.serverDriverDidReceiveRequest(vaporRequest) {
        	response.status =  KituraNet.HttpStatusCode.CREATED.rawValue

        	do {
        		try response.writeString("hello world")
    		} catch {
        		Log.error("Error writing response")
    		}
        } else {
            Log.error("No delegate set on KituraServer. Set delegate to Vapor.Application")
        	response.status = KituraNet.HttpStatusCode.INTERNAL_SERVER_ERROR.rawValue
        }
	}

}

I don't know what went wrong, but the error seems to be somewhere inside Vapor.Request.
Have you tried running under lldb and getting a back trace (bt) at the time of error? It will usually show the statement number involved, not just a decimal offset, which isn't usually very usefull.

I've never run a Swift executable from the command line under LLDB. Do you have any commands you could paste to help me with that?

I'll do my best. I'm no lldb wizkid.
Basically start with:
 lldb .build/debug/YourTarget

At the lldb prompt type:
 run

When your server crashes, type:
 bt

After the trace to exist, just type:
 q

There is also help in there.

Gertrude:kitura-server tanner$ .build/debug/VaporKituraServer
^C
Gertrude:kitura-server tanner$ lldb !!
lldb .build/debug/VaporKituraServer
(lldb) target create ".build/debug/VaporKituraServer"
Current executable set to '.build/debug/VaporKituraServer' (x86_64).
(lldb) run
Process 41132 launched: '/Users/tanner/Developer/vapor/kitura-server/.build/debug/VaporKituraServer' (x86_64)
fatal error: Index out of range
Current stack trace:
0   libswiftCore.dylib                  0x00000001004b5631 swift_reportError + 145
1   libswiftCore.dylib                  0x00000001004cef7b _swift_stdlib_reportFatalError + 59
2   libswiftCore.dylib                  0x000000010041be9f function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded> of Swift.(_fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt, flags : Swift.UInt32) -> ()).(closure #2) + 351
3   libswiftCore.dylib                  0x000000010041bfa4 function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded, Arg[2] = Dead, Arg[3] = Dead> of Swift._fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt, flags : Swift.UInt32) -> () + 52
4   libswiftCore.dylib                  0x00000001002d7803 generic specialization <Swift.String> of Swift.Array.subscript.getter : (Swift.Int) -> A + 131
5   VaporKituraServer                   0x0000000100035ffe Vapor.Request.init (method : Vapor.Request.Method, path : Swift.String, address : Swift.Optional<Swift.String>, headers : Swift.Dictionary<Swift.String, Swift.String>, body : Swift.Array<Swift.UInt8>) -> Vapor.Request + 446
6   VaporKituraServer                   0x0000000100036851 Vapor.Request.__allocating_init (method : Vapor.Request.Method, path : Swift.String, address : Swift.Optional<Swift.String>, headers : Swift.Dictionary<Swift.String, Swift.String>, body : Swift.Array<Swift.UInt8>) -> Vapor.Request + 193
7   VaporKituraServer                   0x0000000100001d91 VaporKituraServer.KituraServer.handleRequest (KituraNet.ServerRequest, response : KituraNet.ServerResponse) -> () + 385
8   VaporKituraServer                   0x0000000100002154 protocol witness for KituraNet.HttpServerDelegate.handleRequest (KituraNet.ServerRequest, response : KituraNet.ServerResponse) -> () in conformance VaporKituraServer.KituraServer : KituraNet.HttpServerDelegate in VaporKituraServer + 52
9   VaporKituraServer                   0x00000001000c0859 KituraNet.HttpServer.(handleClientRequest (BlueSocket.BlueSocket) -> ()).(closure #1).(closure #1) + 185
10  VaporKituraServer                   0x00000001000c31e5 KituraNet.IncomingMessage.parse ((KituraNet.IncomingMessage.HttpParserErrorType) -> ()) -> () + 1429
11  VaporKituraServer                   0x00000001000c06b2 KituraNet.HttpServer.(handleClientRequest (BlueSocket.BlueSocket) -> ()).(closure #1) + 274
12  VaporKituraServer                   0x0000000100059ef7 reabstraction thunk helper from @callee_owned () -> (@unowned ()) to @callee_unowned @convention(block) () -> (@unowned ()) + 39
13  libdispatch.dylib                   0x00007fff89ef8871 _dispatch_call_block_and_release + 12
14  libdispatch.dylib                   0x00007fff89eed33f _dispatch_client_callout + 8
15  libdispatch.dylib                   0x00007fff89effbd8 _dispatch_async_redirect_invoke + 1733
16  libdispatch.dylib                   0x00007fff89eed33f _dispatch_client_callout + 8
17  libdispatch.dylib                   0x00007fff89ef11cf _dispatch_root_queue_drain + 1890
18  libdispatch.dylib                   0x00007fff89ef0a34 _dispatch_worker_thread3 + 91
19  libsystem_pthread.dylib             0x00007fff99b2068f _pthread_wqthread + 1129
20  libsystem_pthread.dylib             0x00007fff99b1e365 start_wqthread + 13
Process 41132 stopped
* thread #2: tid = 0x3b3098b, 0x000000010041bfa4 libswiftCore.dylib`function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded, Arg[2] = Dead, Arg[3] = Dead> of Swift._fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt, flags : Swift.UInt32) -> () + 52, queue = 'HttpServer.clientHAndlerQueue', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
    frame #0: 0x000000010041bfa4 libswiftCore.dylib`function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded, Arg[2] = Dead, Arg[3] = Dead> of Swift._fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt, flags : Swift.UInt32) -> () + 52
libswiftCore.dylib`function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded, Arg[2] = Dead, Arg[3] = Dead> of Swift._fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt, flags : Swift.UInt32) -> ():
->  0x10041bfa4 <+52>: ud2
    0x10041bfa6 <+54>: movq   $0x0, -0x18(%rbp)
    0x10041bfae <+62>: movl   %edi, %eax
    0x10041bfb0 <+64>: cmpq   %rax, %rdi

backtrace
(lldb) bt
* thread #2: tid = 0x3b3098b, 0x000000010041bfa4 libswiftCore.dylib`function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded, Arg[2] = Dead, Arg[3] = Dead> of Swift._fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt, flags : Swift.UInt32) -> () + 52, queue = 'HttpServer.clientHAndlerQueue', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
  * frame #0: 0x000000010041bfa4 libswiftCore.dylib`function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded, Arg[2] = Dead, Arg[3] = Dead> of Swift._fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt, flags : Swift.UInt32) -> () + 52
    frame #1: 0x00000001002d7803 libswiftCore.dylib`generic specialization <Swift.String> of Swift.Array.subscript.getter : (Swift.Int) -> A + 131
    frame #2: 0x0000000100035ffe VaporKituraServer`Request.init(method=<unavailable>, path=<unavailable>, address=<unavailable>, headers=<unavailable>, body=<unavailable>) -> Request + 446 at Request.swift:62
    frame #3: 0x0000000100036851 VaporKituraServer`Request.__allocating_init(method : Request.Method, path : String, address : String?, headers : [String : String], body : [UInt8]) -> Request + 193 at Request.swift:0
    frame #4: 0x0000000100001d91 VaporKituraServer`KituraServer.handleRequest(request=<unavailable>, response=<unavailable>, self=<unavailable>) -> () + 385 at KituraServer.swift:24
    frame #5: 0x0000000100002154 VaporKituraServer`protocol witness for HttpServerDelegate.handleRequest(ServerRequest, response : ServerResponse) -> () in conformance KituraServer + 52 at KituraServer.swift:22
    frame #6: 0x00000001000c0859 VaporKituraServer`HttpServer.(status=<unavailable>, delegate=<unavailable>, request=<unavailable>, response=<unavailable>) -> ()).(closure #1).(closure #1) + 185 at HttpServer.swift:152
    frame #7: 0x00000001000c31e5 VaporKituraServer`IncomingMessage.parse(callback=<unavailable>, self=<unavailable>) -> ()) -> () + 1429 at IncomingMessage.swift:202
    frame #8: 0x00000001000c06b2 VaporKituraServer`HttpServer.(clientSocket=<unavailable>, delegate=<unavailable>) -> ()).(closure #1) + 274 at HttpServer.swift:167
    frame #9: 0x0000000100059ef7 VaporKituraServer`thunk + 39 at SocketServer.swift:0
    frame #10: 0x00007fff89ef8871 libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #11: 0x00007fff89eed33f libdispatch.dylib`_dispatch_client_callout + 8
    frame #12: 0x00007fff89effbd8 libdispatch.dylib`_dispatch_async_redirect_invoke + 1733
    frame #13: 0x00007fff89eed33f libdispatch.dylib`_dispatch_client_callout + 8
    frame #14: 0x00007fff89ef11cf libdispatch.dylib`_dispatch_root_queue_drain + 1890
    frame #15: 0x00007fff89ef0a34 libdispatch.dylib`_dispatch_worker_thread3 + 91
    frame #16: 0x00007fff99b2068f libsystem_pthread.dylib`_pthread_wqthread + 1129
    frame #17: 0x00007fff99b1e365 libsystem_pthread.dylib`start_wqthread + 13
(lldb)

@tannernelson From your back trace it would appear that your failure is inside Vapor.Request, which isn't our code and I have no idea what is going on in there.
A side point, I wouldn't invoke Vapor.Request.init(....), I'd just invoke Vapor.Request(...). init is simply the name of the contructor function. There is no need to invoke explicitly by its name.


Framework Request: StoreKit

It would be great if we could use macdriver to manage App Store subscriptions

You want the StoreKit framework added to MacDriver DarwinKit?

Yep. If I understand how StoreKit works, it would allow me to verify subscription statuses within my Go application.


Bug in checkbox

I use checkbox like this:
[label][input type="checkbox" ng-checked="go" ng-true-value="true" ng-false-value="false" ng-model="go"][/input]Send out email notification[/label]
the default value of parameter "go" is "true", when I un-checked the checkbox,the value of go is still "true" when I use console.log(go) to trace it. And when I check and then un-check it angain, its value changed.

Hey, thanks for the bug report =) could you please post a minimal reproduction of your issue to http://plnkr.co or http://jsbin.com? thanks~

Hi @caitp , here I create an example for that
http://plnkr.co/edit/sXFd6hZ8bXRLN1SG3217

Initialize go correctly and it will work: http://plnkr.co/edit/49at2ol4W4la4LVrRqcT?p=preview

... and you can also remove the ng-false-value and ng-true-value in this case, since they're false and true, respectively, by default. I hope it helps!

@LeonardoBraga Got it. So its value should be boolean, not string. Hope it would be more convenient because all of my data are get as string.
My problem is solved. Thanks.

he wants the true and false to be string values --- ng-true-value and ng-false-value need to be initialized with constant values. If they are wrapped in quotes like ng-true-value="'true'" it works just fine

http://plnkr.co/edit/sXFd6hZ8bXRLN1SG3217?p=preview like this

Sure thing, @caitp. He didn't mention the values had to be strings in the beginning, this is why I considered it being the wrong usage, and suggested using true instead of 'true' and removing ngFalseValue and ngTrueValue directives, which also made the code simpler.

@caitp Do you mean initialize it like this? But it didn't run properly.
http://plnkr.co/edit/sXFd6hZ8bXRLN1SG3217?p=preview

[input ng-model="go" type="checkbox"
ng-true-value="'true'" ng-false-value="'false'"
ng-checked="go">!

$scope.go = 'true';

@LeonardoBraga Yes, I must use Boolean(go) to convert it to boolean formats. Well, it works fine for me now. Great thanks for your kind help.

@gaoyuan121 hmmm, you're right. That's weird. lets keep this open so that we can fix that bug.

@gaoyuan121 The glitch with string values is being caused because the input has both ng-model and ng-checked in it. Remove ng-checked and it will work with the strings as well.

when on earth did we add that? but yeah I don't think that's an excuse --- we probably shouldn't allow ngChecked to operate if it's used on its own input, to prevent weirdness

@caitp I can provide a PR for that, if you think it's appropriate.

no let me do it i haven't solved any problems in this repo for at least a month now =) nah i'm kidding, go for it

@caitp lol :-)

@LeonardoBraga Sounds good:)

I don't understand why we need this fix. What is the need for using ngModel and ngChecked on the same element. They are for different purposes. If you remove the ngChecked everything works fine.
http://plnkr.co/edit/PU8QKeMgITqUbDAm9XlK?p=preview

@caitp  and @gaoyuan121 - can you provide the real world use case ?

It actually doesn't make sense to use ng-checked and ng-model together. I'd be fine with reverting this and updating the docs for ng-checked instead.

@caitp - can you give a view on reverting this?

I'm anti-reverting, but I'm pro-shrinking if you can find a way to express it in fewer characters.
The API should not be surprising people

With #10664 landed, it should be safe to close this. If anybody wants to talk about the interactions of ng-model and ng-checked, then please open another issue just for this


added ENV var to exclude AppleDouble files when pax is run

Fixes #72
On macOS you can set the COPYFILE_DISABLE environment variable to literally anything, and it will cause bsdtar[^1]  to not include the ._ AppleDouble files, which were the cause of Issue #72.
This fix presumes there's no good reason to include those when distributing resources because preserving  Finder flags and labels and such doesn't make a lot of sense in this usage context.
[^1]: bsdtar is symlinked to tar,  and gnutar, but not pax... ?anymore?

bump.
This bug potentially prevents folks from uploading on macOS unless they agree to ignore errors which, really, they should never do.  I feel like we really ought to get it merged and update fez asap. Please let me know if you want anything changed in this.

@masukomi that's right - we had a long journey with @stevedondley to find the very same problem...

I ran into this same problem. Please see: https://stackoverflow.com/questions/75190418/no-single-root-directory-found-all-dists-must-extract-to-a-single-directory-e
What's odd is that if I roll back to 2022.07, I can upload again. With 2022.12, I have the problem. Not sure what explains this.

@sdondley @2colours @masukomi this has been released with fez:ver<40> -


add troubleshooting tip for certificate config

Signed-off-by: samanthasusu<EMAIL_ADDRESS>
add the troubleshooting tip for configuring alias of external certificate

Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.

[ ] If the changes in this PR is part of the next future release, make this pull request against the docs-staging branch which will be published at the next release boundary. If the changes in this PR are part of the current release, use the default base branch, master. For more information about branches, see https://github.com/zowe/docs-site/tree/master#understanding-the-doc-branches.

[x] If this PR relates to GitHub issues in docs-site or other repositories, please list in Description, prefixed with close, fix or resolve keywords.

Description (including links to related git issues)
Please describe your pull request.
fix #1249
The documentation for this issue is finished, but the solution is not completed. Because I didn't understand the second method which is proposed by a customer.
a) Ask for PFX exported from RACF, export in FORMAT(PKCS12DER)   b) Ask for public key exported from RACF, export in FORMAT(CERTB64)   c) Ask for CA Chain exported from RACF, export in FORMAT(CERTB64)
If there would be more information about this method, I would appreciate it. @Joe-Winchester thanks.
:heart:Thank you!

@NayerNajafi  hi Nayer, I am working on this issue and I hope you could help with reviewing this change if possible. That would be really appreciated.


storage override needs to support storage value type of ()

for example, whitelist.whitelistdCall

how do I reproduce this?

this is on Polkadot.
We need a way to use dev_setStorage to add and remove whitelistedCall entry. The value type is (), which is basically a void so we may need to distinguish null and undefined

@xlc just pass '0x' for empty values
Whitelist:
    WhitelistedCall:
      -
        -
          - '0xe284be84dcfaf714ef2b7717b54914632406f2c17d8203d3268e4c4ca68fa144'
        - 0x

Maybe we should add it in readme or in docs abt how to use these, so user knows


Configuration for external gazetteer

The gazetteer configuration was built up from Google Autocomplete. Configuration is then translated from the Google Specification for other external services such as Mapbox. Code for example is translated to Country.
This was a terrible idea by myself. We should not translate but use the original specification as outlined in the individual guides.
We should create a the query string from a configuration object and include everything in this configuration object not just a selected few keys.

Google
countrycode
components (see API docs, used for search across selected countries, eg. UK + IE)
bounds
Mapbox
country
bounds
Open Cage
countrycode
bounds


Dialog HF: registrations are lost after restarting FP processes

When the processes that run on the RPI (for Dialog HW) are restarted the regsitration of the PP is lost. This was tested on v1.0.3

In my view this is a bug: registartions should not get lost

This bug can be closed, it is a informationless copy of #49

Hello,
I have done an analysis of this issue and a document pertaining to that is attached to this comment.
Analysis_on_HANFUN_FP.pdf

Thank you for the report. With which version did you create your analysis?

1.0.7

Issue verified again both by Dialog and Stackforce and shows a correct implementation


Custom queryset Manager with a filter by ForeignKey

I know this is very weird, and I have the feeling it might be related to my specific setup, but basically I'm running into an issue when attempting to invoke the save function it fails not being able to assert the query is a SalesforceQuery.
The weird think is that it only happens with contacts. Other SalesforceModels are properly saved without any hustle.
There are no hard relationships between the contact object and any non-salesforce objects. I basically use it as a "profile" for local users, matching by email address.
Is there anything known that may lead to this?
Here is what I think is the relevant code ..
from salesforce import models as sfmodels
from authtools import models as atmodels
from salesforce.backend.manager import SalesforceManager

class CustomManager(SalesforceManager):

    def get_queryset(self, _alias=None):
        return super().get_queryset(_alias=_alias).filter(record_type__developer_name='Custom',
                                                          portal_status__in=('Invited', 'Active'))
...
class Contact(sfmodels.Model):
    ... # regular contact fields in here
    objects = CustomManager()

class User(atmodels.AbstractEmailUser):
    @property
    def srecord(self):
        return Contact.objects.get(email=self.email)

and a sample snippet:
>>> from authentication.models import Contact
>>> c =<EMAIL_ADDRESS>>>> c.portal_requires_token = True
>>> c.save()
Query
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File ".env/lib/python3.8/site-packages/django/db/models/base.py", line 740, in save
    self.save_base(using=using, force_insert=force_insert,
  File ".env/lib/python3.8/site-packages/django/db/models/base.py", line 777, in save_base
    updated = self._save_table(
  File ".env/lib/python3.8/site-packages/django/db/models/base.py", line 850, in _save_table
    updated = self._do_update(base_qs, using, pk_val, values, update_fields,
  File ".env/lib/python3.8/site-packages/django/db/models/base.py", line 900, in _do_update
    return filtered._update(values) > 0
  File ".env/lib/python3.8/site-packages/django/db/models/query.py", line 760, in _update
    return query.get_compiler(self.db).execute_sql(CURSOR)
  File ".env/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1429, in execute_sql
    cursor = super().execute_sql(result_type)
  File ".env/lib/python3.8/site-packages/salesforce/backend/compiler.py", line 89, in execute_sql
    cursor.execute(sql, params)
  File ".env/lib/python3.8/site-packages/salesforce/backend/utils.py", line 183, in execute
    response = self.execute_django(q, args)
  File ".env/lib/python3.8/site-packages/salesforce/backend/utils.py", line 232, in execute_django
    response = self.execute_update(self.query)
  File ".env/lib/python3.8/site-packages/salesforce/backend/utils.py", line 328, in execute_update
    pks = self.get_pks_from_query(query)
  File ".env/lib/python3.8/site-packages/salesforce/backend/utils.py", line 308, in get_pks_from_query
    assert isinstance(pks, Query) and type(pks).__name__ == 'SalesforceQuery'
AssertionError

(Hynekcer: edited the long paths before ".env/". Django is 2.2)

Excuse, the version of Django-salesforce is not known. (It looks like a modified source code. I even can not identify an original commit with these line numbers. No problem if you send a link to a clone of django-salesforce)
Add a line print(pks) before assert to see what is a value before AssertionError. That helps much.
Do you use more managers for Contact? (Is is a reason why you specify an explicit manager? "objects=...")
Print type(c) in your example. It should look like <class 'your_app.models.Contact'>. (not a Contact encapsulated by a decorator or something.
Do you see some weird decorator that could cause

Hi @hynekcer thanks for the prompt reply. It does seem I had a line off on some of the methods there, probably added some print and removed them wrongly at some point while debugging. I have now uninstalled/reinstalled django-salesforce (version 0.9) and still get the same errors.
I use a custom manager because I do filter the queryset (I have updated the original snippet to better reflect this).
Here is the updated snippet including the 2 requested actions:

Please, can you confirm that the SQL line with ... INNER JOIN "RecordType" ... is related to your custom manager?
That custom manager is probably the first manager in the model, the "default_manager".
Would be it fixed if you change the order of managers? (What is an unwanted consequence for you if the order of managers is changed? It is easier for you before I start to write a test case.)

The problem can not be reproduced. I wrote a minimalistic test, that it works. You can extend it to something small that can be copied to a new virtual env and that fails, Please use only standard salesforce objects with standard fields to demonstrate it if possible.
print(type(pks))     # interesting info

@hynekcer I would assume the inner join is related to the manager (I have only one on Contact), you can see it on the original post as I updated it yesterday.
The manager basically makes sure we only deal with the specific contacts we want to allow access to the portal.
I will test removing the manager and see if that goes through and let you know.
Thanks for the insights.

@hynekcer I think I have narrowed it down.
The issue is only reproducible when the Manager includes the record id in the queryset.
Thanks for your time.

I renamed the issue.
I confirm that even an individual queryset with a filter by a foreign key attribute doesn't work currently with update() or delete() methods. I'm not sure if it is a exactly bug or only something unsupported that has an easy and even a better alternative. It it better to not support more uncertain cases than to update incorrect rows. That would be really a bug. I fix it however by a clear error message at the assert command.
Docs about Default managers

... it’s a good idea to be careful in your choice of default manager in order to avoid a situation where overriding get_queryset() results in an inability to retrieve objects you’d like to work with.

It is important especially with Salesforce, because a .save() method with your default manager is compiled even with a normal database by Django to
UPDATE table_name SET column1 = value1, ...
WHERE id=... AND PortalStatus=... AND related_table....

It verifies again that all conditions are valid and maybe if you change e.g. PortalStatus then the object will be not saved(), but it is still only one SQL
With Salesforce, if the queryset method of default manager contains a filter then SQL query is run to get filtered primary keys and then a non-SQL command is run to update the object or objects. That is not optimal.

You can try to work with a renamed default manager and your manager as objects:
default_manager = SalesforceManager()  # the first manager, the name is not important
objects = ... your manager

Cache the record_type_id in come variable and filter by it instead of using a join so frequently.
...filter(record_type_id=...)

The rest of the issue is fixed by a clear error message
AssertionError: Too complicated queryset.update(). Rewrite it by two querysets. See docs wiki/error-messages
It can be searched in the wiki AssertionError: Too complicated queryset.update()
Because the suggestion in the wiki seems that it solves the rest your problem completely, I'm closing it.

Thanks @hynekcer !

The bug is found and will be easily fixed in the next release. A base manager did depend on the default manager. An explicit base manager is now assigned in the SalesforceModel class, independent on the default manager. The method .save() is executed now again by one HTTP request, as expected.

Fixed by PR #258.


⚠ Samsung has degraded performance

In 5c2a451, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2741 ms

Resolved: Samsung performance has improved in 1ee3adf.


Copying and maintaining of referenced records into referencing Repositories

Records that are pointed to by @ ManyToOne() relations but are in different repositories should be:

Recorded in the Repository Transaction History (keeping original Actor and Actor Record Ids, changing the Repository Id)
Created when the Repository is loaded
Updated (with different Repository Id) the referenced repository is loaded. Also the values need to be checked (by scanning for changes in the Repository transaction history) and updated where needed.
@ ManyToOne() references to these records should be updated.

This solves a number of issues:

It is possible that the referenced Repository is not accessible to some of the users of the referencing repository.  In this case the queries that use @ ManyToOne() relations should still return full results.  This is true especially if the query results are constrained by the records pointed to by the @ ManyToOne() relations.
Even if the referenced Repository is accessible the query results may not return full data (or any data) until the referenced Repository is loaded, thus causing lag.

NOTE: This will impact native Foreign Keys in the SqlJs table (currently they are not generated so not an issue).

The decision is to create "real" objects in the database while maintaining copies in serialized Transaction logs.  Subsequently, when the repository of the copied object is loaded that object is instead Updated (and not Created) because it is already present in the database.


"zar find" on custom index returning incomplete results (regression at 53eed63)

Consider the following aggregations run against the zq-sample-data:
$ zq -f table 'id.orig_h=<IP_ADDRESS> | count() by _path, id.orig_h | count=sum(count) by _path | sort -r count,_path' work/zq-sample-data/zeek-default/*
_PATH       COUNT
conn        26726
http        13485
ssl         9538
rdp         4116
smtp        1178
weird       316
ftp         93
ntlm        80
smb_mapping 65
notice      35
dpd         24
dns         8
rfb         3
dce_rpc     2
ssh         1
smb_files   1

The zar README has an example that gets to the same result using a custom index, which was working as of zq commit 9f71a5d. I've adjusted it slightly here for clarity.
$ zar -version
Version: v0.25.0-16-g9f71a5d1

$ rm -rf $ZAR_ROOT && \
  zq work/zq-sample-data/zeek-default/*.gz | zar import -s 25MB - && \
  zar index -q -o custom.zng -k id.orig_h -z "count() by _path, id.orig_h | sort id.orig_h" && \
  zar find -z -x custom.zng <IP_ADDRESS> | zq -f table "count=sum(count) by _path | sort -r count,_path" -

_PATH       COUNT
conn        26726
http        13485
ssl         9538
rdp         4116
smtp        1178
weird       316
ftp         93
ntlm        80
smb_mapping 65
notice      35
dpd         24
dns         8
rfb         3
dce_rpc     2
ssh         1
smb_files   1

However, if I advance to the next commit 53eed63 (associated with #1745, cc: @mattnibs), now I get an incomplete/inconsistent result.
$ zar -version
Version: v0.25.0-17-g53eed630

$ rm -rf $ZAR_ROOT && \
  zq work/zq-sample-data/zeek-default/*.gz | zar import -s 25MB - && \
  zar index -q -o custom.zng -k id.orig_h -z "count() by _path, id.orig_h | sort id.orig_h" && \
  zar find -z -x custom.zng <IP_ADDRESS> | zq -f table "count=sum(count) by _path | sort -r count,_path" -

_PATH COUNT
http  2766
ssl   168
dpd   18
dns   6

$ rm -rf $ZAR_ROOT && \
  zq work/zq-sample-data/zeek-default/*.gz | zar import -s 25MB - && \
  zar index -q -o custom.zng -k id.orig_h -z "count() by _path, id.orig_h | sort id.orig_h" && \
  zar find -z -x custom.zng <IP_ADDRESS> | zq -f table "count=sum(count) by _path | sort -r count,_path" -

_PATH COUNT
conn  207
ftp   28
smtp  8
rfb   1

This problem remains with us in current commits as well, such as 5cd4176. To make this work I have to add create to the zar index command, and the zar find -z now means to output ZSON instead of ZNG, but functionally it lands us in the same place.
$ zar -version
Version: v0.29.0-71-g5cd41763

$ rm -rf $ZAR_ROOT && \
  zq work/zq-sample-data/zeek-default/*.gz | zar import -s 25MB - && \
  zar index create -q -o custom.zng -k id.orig_h -z "count() by _path, id.orig_h | sort id.orig_h" && \
  zar find -z -x custom.zng <IP_ADDRESS> | zq -f table "count=sum(count) by _path | sort -r count,_path" -

_PATH       COUNT
conn        207
ssl         168
ftp         28
smb_mapping 12

Verified in zar commit 04d20a8.
Repeating the repro steps, we once again see the full expected output.
$ zar -version
Version: v0.29.0-99-g04d20a8d

$ rm -rf $ZAR_ROOT && \
   zq work/zq-sample-data/zeek-default/*.gz | zar import -s 25MB - && \
   zar index create -q -o custom.zng -k id.orig_h -z "count() by _path, id.orig_h | sort id.orig_h" && \
   zar find -z -x custom.zng <IP_ADDRESS> | zq -f table "count=sum(count) by _path | sort -r count,_path" -

_PATH       COUNT
conn        26726
http        13485
ssl         9538
rdp         4116
smtp        1178
weird       316
ftp         93
ntlm        80
smb_mapping 65
notice      35
dpd         24
dns         8
rfb         3
dce_rpc     2
ssh         1
smb_files   1

Thanks @mattnibs!


docs(ee/dev-portal) Update dev portal auth docs for Routes/Services

Summary
Updates Kong Dev Portal authentication documentation to use Routes/Services
rather than then the now deprecated API entity

Checklist:

[x] Commit message & atomicity checked
[x] Spellchecked my updates
[x] Ready to be merged

 (1) Change documentation for Developer Portal Authentication to work with Routes and Services


Enums should be uppercase according to pep8

Is your feature request related to a problem?
Current enum values are not named according to pep8 conventions.
Desired solution
All constants (enums included) should be uppercase.
https://peps.python.org/pep-0008/#constants
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response

Can be done together with https://github.com/lars-reimann/api-editor/issues/760.


Copy-paste error in GenericTDSServerSession?

Describe the bug
I've found this piece of code which looks like a copy-paste error:
https://github.com/dotnet/SqlClient/blob/2c2f100d8ab9a1f6ee8c048a260d77e6a738e1e7/src/Microsoft.Data.SqlClient/tests/tools/TDS/TDS.Servers/GenericTDSServerSession.cs#L332
userOptionsOption.NumericRoundAbort = ImplicitTransactions;

Looks like it should be
userOptionsOption.NumericRoundAbort = NumericRoundAbort;

Actually it is in test folder, so probably not production code?

@MaceWindu Hi thanks for bringing this up to our attention. We will look into that shortly.


Server crashes

What bug did you encounter?
The server is not happy with the current version
What did you expect to happen?
Smooth sailing
Screenshots

Additional information
Brought to my attention thanks to @scottjwilson and @TAKANOME-DEV
guys, whoever starts working on this first, open a draft PR immediately on the branch so the others (including me) know and can contribute to the same branch.
Cheers!

After a lot of waiting and probing, finally got some errors back:
{
  error: Error: Client network socket disconnected before secure TLS connection was established
      at connResetException (node:internal/errors:704:14)
      at TLSSocket.onConnectEnd (node:_tls_wrap:1589:19)
      at TLSSocket.emit (node:events:525:35)
      at endReadableNT (node:internal/streams/readable:1359:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    code: 'ECONNRESET',
    path: null,
    host: 'www.nytimes.com',
    port: 443,
    localAddress: undefined,
    config: {
      transitional: [Object],
      adapter: [Function: httpAdapter],
      transformRequest: [Array],
      transformResponse: [Array],
      timeout: 0,
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: -1,
      maxBodyLength: -1,
      validateStatus: [Function: validateStatus],
      headers: [Object],
      method: 'get',
      url: 'https://www.nytimes.com/section/business',
      data: undefined
    },
    request: Writable {
      _writableState: [WritableState],
      _events: [Object: null prototype],
      _eventsCount: 3,
      _maxListeners: undefined,
      _options: [Object],
      _ended: true,
      _ending: true,
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 0,
      _requestBodyBuffers: [],
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [ClientRequest],
      _currentUrl: 'https://www.nytimes.com/section/business',
      [Symbol(kCapture)]: false
    },
    response: undefined,
    isAxiosError: true,
    toJSON: [Function: toJSON]
  }
}
{
  error: Error: error request aborted
      at createError (/projects/workspace/node_modules/axios/lib/core/createError.js:16:15)
      at IncomingMessage.handlerStreamAborted (/projects/workspace/node_modules/axios/lib/adapters/http.js:301:18)
      at IncomingMessage.emit (node:events:513:28)
      at IncomingMessage._destroy (node:_http_incoming:224:10)
      at _destroy (node:internal/streams/destroy:109:10)
      at IncomingMessage.destroy (node:internal/streams/destroy:71:5)
      at TLSSocket.socketCloseListener (node:_http_client:441:11)
      at TLSSocket.emit (node:events:525:35)
      at node:net:757:14
      at TCP.done (node:_tls_wrap:583:7) {
    config: {
      transitional: [Object],
      adapter: [Function: httpAdapter],
      transformRequest: [Array],
      transformResponse: [Array],
      timeout: 0,
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: -1,
      maxBodyLength: -1,
      validateStatus: [Function: validateStatus],
      headers: [Object],
      method: 'get',
      url: 'https://zeenews.india.com/tags/energy-sector.html',
      data: undefined
    },
    code: 'ERR_REQUEST_ABORTED',
    request: ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: true,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: false,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      _contentLength: 0,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      _closed: true,
      socket: [TLSSocket],
      _header: 'GET /tags/energy-sector.html HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'User-Agent: axios/0.26.1\r\n' +
        'Host: zeenews.india.com\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: nop],
      agent: [Agent],
      socketPath: undefined,
      method: 'GET',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      path: '/tags/energy-sector.html',
      _ended: false,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'zeenews.india.com',
      protocol: 'https:',
      _redirectable: [Writable],
      [Symbol(kCapture)]: false,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype],
      [Symbol(kUniqueHeaders)]: null
    },
    response: undefined,
    isAxiosError: true,
    toJSON: [Function: toJSON]
  }
}

Would it be an idea to put a time limit on the axios request to prevent these errors causing the crash?

I'm not sure if this is related but, should we increase the express-rate-limit? Allowing one request per second sounds like a lot. I don't think the news sources post that often, so maybe something like one every 10 - 15 minutes just to be safe?

The express rate limit is to allow one one request per second per IP to our API (I believe) to give some protection against overloading the server.
The problem I think we're having is when cheerio loads the source websites and finds an error that isn't caught and moved on from. The error just makes everything stop and the server goes down until I manually restart it.
I will need to check properly, but it may be that we're missing something like next() to force it to move on after an error is caught. (Just thinking out loud as I don't have the code in-front of me right now).
I could be wrong though...

@scottjwilson i forgot to say that you're absolutely right about creating a "refresh articles object" type command/job to run once every 15/30 minutes. It was discussed once in another issue as it would also stop the heroku server from going to sleep. But I don't think any of us followed through with a solution.

@MizouziE ah man, i'm embarrassed. I sloppily threw together the front end, and now you get to see how bad I made it lol. And without documentation 🤦♂

@scottjwilson Nah bro, no need to be at all! The app is very cool. IT HAS DARK MODE! That's absolutely the most important thing.
The entire point of this project is to learn stuff and practice developing apps that work out in the wild without any tutorials anyway. Real web apps are usually released at first while still just the POC so have an element of Frankenstein about them 😂🧟♂
Without ur app we never would have known about this server side issue, so it 100% has a tonne of value already. Keep developing it man!

We've calmed the current server down and plan to migrate over to an even more stable one soon!


Determine whether aircraft is AGCS capable from equipment code

Half done. Will mark as closed, but need to add an asterisk on tag for aircraft that are non-compliant.


 We need to use presets instead of modes due to a limitation in the HA API
Exposed Rear Window Heating as a switch and fixed the state published over MQTT. It's too hot here, so I couldn't test if it switches when started
Clear remaining charging time if the car is not charging
Expose Scheduled charging info for HA usage

Here are some screenshots of what's possible with the new integrations:

Show charging schedule in the UI

Control remote climate mode (using mini climate card)

Configure the gateway itself

Detect a crashed gateway


Lock OCMock to 3.4 while investigating test failures with 3.5.0

OCMock caused unit tests to fail in six libraries.
This PR locks the dependency to 3.4.0 while we investigate.

This PR should be reverted in pieces as solutions to #4343 #4345 #4347, #4348, #4349, #4350 and #4351 are implemented.


Modified gulp to allow a --host flag to determine websocket host.

Previously the websocket gulp inserted into the web client was hardcoded to be
localhost:7667. This change allows any host to be provided via the --host
command line flag, eg gulp serve --host adamcw.example.com:7667.

Maybe call the option --api-host instead. Otherwise LGTM.


$cordovaBackgroundGeolocation.configure() resolves a single promise multiple times

$cordovaBackgroundGeolocation.configure() returns a promise that is resolved each time the location is updated in the background.  This means that ony the first background location update is processed through ngCordova $q will only resolve a promise once.
This should function like $cordovaGeolocation.watchPosition, where promises are .notify()'d of new positions.

Did you think that this could origin https://github.com/driftyco/ng-cordova/issues/485, because it is happening to me.
Any fix?
Thanks.

This should be fixed in 86d22e61723581226443ebfb9a12142c87ee1ffe
File ref:  https://github.com/driftyco/ng-cordova/blob/master/src/plugins/backgroundGeolocation.js#L23


Please consider fixing issues detected by repository checker

Notification from ioBroker Check and Service Bot
Dear adapter developer,
I'm the ioBroker Check and Service Bot. I'm an automated tool processing routine tasks for the ioBroker infrastructure. I have recently checked the repository for your adapter lgtv for common errors and appropiate suggestions to keep this adapter up to date.
This check is based the current head revisions (master / main  branch) of the adapter repository
Please see the result of the check below.
ioBroker.lgtv
   -
:thumbsup: No errors found
WARNINGS:

[ ] :eyes: [W162] js-controller 5.0.0 listed as dependency but 5.0.19 is recommended. Please consider updating dependency at io-package.json.
[ ] :eyes: [W184] "common.materialize" is deprecated for admin >= 5 at io-package.json. Please use property "adminUI".

SUGGESTIONS:

[ ] :pushpin: [S522] Please consider migrating to admin 5 UI (jsonConfig).

Please review issues reported and consider fixing them as soon as appropiate.
Warnings reported by repository checker should be reviewed. While some warnings can be ignored due to good reasons or a dedicated decision of the developer, most warnings should be fixed as soon as appropiate.
Suggestions reported by repository checker should be reviewed. Suggestions can be ignored due to a decision of the developer but they are reported as a hint to use a configuration which might get required in future or at least is used be most adapters. Suggestions are always optional to follow.
You may start a new check at any time by adding the following comment to this issue:
@iobroker-bot recheck
Please note that I (and the server at GitHub) have always plenty of work to do. So it may last up to 30 minutes until you see a reaction. I will drop a comment here as soon as I start processing.
Feel free to contact me (@iobroker-bot) if you have any questions or feel that an issue is incorrectly flagged.
And THANKS A LOT for maintaining this adapter from me and all users.
Let's work together for the best user experience.
your
ioBroker Check and Service Bot
@mcm1957 for evidence
Last update at Fri, 06 Sep 2024 08:47:44 GMT

Issue outdated due to RECREATE request. Follow up issue #254 has been created.
This issue will be closed.
your
ioBroker Check and Service Bot


OCTAT image not working. Can u please short out it.

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

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

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

@Ritikkumar992 you work on it then i will assign you or i work on it

ok thanks @Ayush7614

@Ayush7614  can u give me some clue how to short out this issue.

You dont working on this this issue i will fix it

ok thanks


Reset Exhibit

I'm currently using exhibit in a single page ember application. Exhibit loads just fine the first time the page is viewed however when the page is revisited it no longer loads. I'm guessing I need to somehow reset exhibit so it will properly reload.
I tried doing Exhibit = undefined however it doesn't seem to completely reset things.

I've also tried exhibit.dispose(); and it errors out TypeError: this._registry.dispose is not a function

What kind of reset do you need?  window.exhibit.configureFromDOM() will re-render the exhibit from scratch.

I'll have to revisit this. It was for a project in which I was using Exhibit inside several Ember.js views. Only the first view would render, and all other views/pages wouldn't render since ember was already loaded and it wasn't a true page change since its a single page app.


List whitepapers on docs contents page

Thought this might be a useful idea to promote the technical discussions (of which we could usefuly do more ?)
Suggestion : like this commit
The intended effect is simply to list the individual titles under the mainpage section.
That probably isn't at all the right way to do it though :  Possibly can usw templating to automate ??

The new Read The Docs style documentation has now been merged to master (not released), see #3752
The Technical Papers (renamed from White Papers) are currently under the REFERENCE side bar section and on the main content (bottom of page).  See https://scitools-iris.readthedocs.io/en/latest/index.html
This makes is more visible.
We could promote things further using banner notices if we think it is appropriate - but perhaps not for this atm.

Yes, I think the new RTD format will fix this for us, because you can open up the nav section and view the titles, without needing to go via another page as at present..


jetmoe-8b

What model would you like?
JetMoE is a Mixture of Experts model that reaches Llama2 performance while having only 2.2B parameters active. I think this has a lot of potential for low end devices and will be good to have it in the Ollama library.
https://huggingface.co/jetmoe/jetmoe-8b
https://huggingface.co/jetmoe/jetmoe-8b-chat
https://huggingface.co/jetmoe/jetmoe-8b-sft

I think this depends on https://github.com/ggerganov/llama.cpp/issues/6499


 I broke stuff. Gonna fix.  Also it seems like I need to push a fixed version to pypi.  Do I have access to do that?

I think you're fine, one of the test runs passed and the other had some sort of git trouble, maybe github had a blip or something. What's your PyPi username, I can add you to permissions.

paetling I believe

Added


Upgrading from 2.2.0 to 2.3.0 causes "pattern did not match any files" errors

With the upgrade to 2.3.0, I am unable to run my existing test suite because of these errors:
WARNING - pattern D:\code\test\foo.e2e.spec.js did not match any files.
The pattern used to find these files is:
code/tests/**/*.e2e.spec.js
Reverting back to 2.2.0 fixes these issues.

It may be helpful to note that I am running protractor from Gulp using gulp-protractor

Are you using windows?  There seems to be a problem with windows since
2.2.0.  We were using cucumber.js framework.  See if you can pass in the
normalized path instead i.e.  path.normalize("path/to/some.feature");
On Mon, Sep 28, 2015 at 5:35 PM, anijap<EMAIL_ADDRESS>wrote:

It may be helpful to note that I am running protractor from Gulp using
gulp-protractor https://github.com/mllrsohn/gulp-protractor
—
Reply to this email directly or view it on GitHub
https://github.com/angular/protractor/issues/2551#issuecomment-143881094
.

Passing normalized string does not help. Rolling back to 2.2.0 helps.

I managed to get around it by creating my an empty stream and then pipe gulp-protractor.
var Readable = require('stream').Readable;
var protractor = require('gulp-protractor').protractor;
In the task where i ran gulp-protractor instead of providing a src i just start with an empty stream. SInce I have aldready provided the spec files in the config.
var read = new Readable();
read._read = function () {};
read.push(null);
return read.pipe(protractor({configFile: __dirname + '/protractor.conf.js'}));

Of course it would be nice to be able to use the "normal" way.
But the workaround seems to work
I put the specs in protractor.conf.js:
  specs: [ '**/*.e2e.spec.js' ]
Then pass an empty stream:
return gulp.src([]).pipe(protractor({configFile: 'app/tests/protractor.conf.js'}));

that's an easier way of doing a empty stream... Don't know why I never tried that..

Should this be moved to gulp-protractor?

This issue also occurs with grunt tasks.
Sample output based on a grunt runner task:
"C:\Program Files (x86)\JetBrains\WebStorm 10.0.3\bin\runnerw.exe" "C:\Program Files (x86)\nodejs\node.exe" C:\protractor_tests\node_modules\grunt-cli\bin\grunt --gruntfile C:\protractor_tests\Gruntfile.js letters
Running "protractor:letters" (protractor) task
WARNING - pattern C:\protractor_tests\splat-e2e\se_specs\letters\letters_spec.js did not match any files.
C:\protractor_tests\node_modules\protractor\node_modules\q\q.js:126
throw e;
^
Error: Spec patterns did not match any files.
at Runner.run (C:\protractor_tests\node_modules\protractor\lib\runner.js:249:11)
at TaskRunner.run (C:\protractor_tests\node_modules\protractor\lib\taskRunner.js:123:19)
at createNextTaskRunner (C:\protractor_tests\node_modules\protractor\lib\launcher.js:223:20)
at C:\protractor_tests\node_modules\protractor\lib\launcher.js:246:7
at _fulfilled (C:\protractor_tests\node_modules\protractor\node_modules\q\q.js:797:54)
at self.promiseDispatch.done (C:\protractor_tests\node_modules\protractor\node_modules\q\q.js:826:30)
at Promise.promise.promiseDispatch (C:\protractor_tests\node_modules\protractor\node_modules\q\q.js:759:13)
at C:\protractor_tests\node_modules\protractor\node_modules\q\q.js:573:44
at flush (C:\protractor_tests\node_modules\protractor\node_modules\q\q.js:108:17)
at process._tickCallback (node.js:355:11)
[launcher] Process exited with error code 1

Julie, I would start by looking at protractor itself.
The version of gulp-protractor has stayed the same, it's only the 2.2.0 -> 2.3.0 upgrade that causes the issue to surface. Something must have changed in protractor for this to have happened.
The root issue may well be in a different library, but I don't have enough information at this point to be able to make that call.

So this is conjecture, but I wonder if ff88e has something to do with this.
Specifically
var fileName = patterns[i].split(':')[0],
          lineNumber = patterns[i].split(':')[1],
         matches = glob.sync(fileName, {cwd: cwd});

Windows paths start with : e.g. C:\protractor_tests and so the fileName that is passed to glob.sync would be C:. I'll try to boot up a VM and try this out after work tonight.

@NickTomlin I think you are on to something.
This stopped working for me on Windows when upgrading to protractor 2.3.0. I logged the fileName and lineNumber out during a test run. You can see the values below.
      var fileName = patterns[i].split(':')[0],
          lineNumber = patterns[i].split(':')[1],
          matches = glob.sync(fileName, { cwd: cwd });

      console.log('filename: ' + fileName);
      console.log('lineNumber: ' + lineNumber);

filename: m
lineNumber: \path\to\my.feature
WARNING - pattern m:\workspace\path\to\my.feature did not match any files.

As you can see, it's unable to find our feature files (used for cucumber.js).
m is the windows drive of the current working directory. (i.e. I am sitting at m:\workpace) and that is what is captured for the filename.

Yup, this looks like a bug. Sorry this slipped through.

it will be great to fix on 2.4.0.
On Wed, Sep 30, 2015 at 6:25 PM, Julie Ralph<EMAIL_ADDRESS>wrote:

Yup, this looks like a bug. Sorry this slipped through.
—
Reply to this email directly or view it on GitHub
https://github.com/angular/protractor/issues/2551#issuecomment-144561770
.

This is fixed in 2.5.0, which is out now.

Thanks Julie!