Added method for retrieving a specific mesh from object instead of all geometries

@ziyan this seems good idea; test-planningsystem currently needs unusual way:
        if client_robotBridgeConnectionInfo or client_devices:
            response = client._webclient.APICall('GET', u'object/%s/geometry/%s' % (instobject['object_pk'],meshgeometry['pk']), params={'mesh':'1'})
        else:
            status, response = client._webclient.APICall('GET', u'object/%s/geometry/%s' % (instobject['object_pk'],meshgeometry['pk']), url_params={'mesh':'1'})

Thanks!

Thanks!


don't defer Record.Save

don't defer Record.Save(), because in case the block is entered:
if !env.IsHookEnv() {
    return shell.GetProcess().Open(os.Getppid())
}

an early return is performed, and the function is not finished executing, therefore the defer is never called.

@axdank Hi, I would like to invite you to join VersionFox as a committer. Are you interested?

Oh, yes, I would be interested in taking on the role of committer, to contribute whenever possible. Thank you for the consideration @aooohan.

Oh, yes, I would be interested in taking on the role of committer, to contribute whenever possible. Thank you for the consideration @aooohan.

I have invited you, please check your email. 🎉


Postgres Geometry Point(X, Y) type

Is there anyway to infer_schema or create this type for postgres?

We don't currently support the geometric types

@sgrif What is the situation for point types?

We don't currently support the geometric types. Would love to see someone write a third party crate for this.


Log exceptions correctly

today, stack trace is not logged:
[ vagrant ]: Error starting up vagrant, caught IOException, message: remote file operation failed: /var/lib/jenkins/workspace/FastLane/tools/deepthought-ci at hudson.remoting.Channel@45160228:com-ort-den-cis-multicore8-d840f659-159-237.dyn.pingidentity.com: hudson.remoting.ChannelClosedException: channel is already closed
[ vagrant ]: [Ljava.lang.StackTraceElement;@51fc8519

Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests.


Traffic info view: Toggle between "congestion" and "volume" view

shaundoddmusic says: "The other day I was thinking about the traffic view tool in SC4. You could switch between congestion veiw, and volume veiw. It seems that the version in cities is a blend of the two, though it is weighted towards showing congestion. Do you think you could split this into a congestion and a volume tool? The volume tool would better show the effectivness (or pointlessness) of highways for example."
https://github.com/VictorPhilipp/Cities-Skylines-Traffic-Manager-President-Edition/issues/63
moved from https://github.com/VictorPhilipp/Cities-Skylines-Traffic-Manager-President-Edition/issues/67

We already have some work going on in this respect, see #66 (traffic measurement methods).


Custom field options

In this moment ng-model, id and name are generated based on form.key
I need to set them separately for a multilingual website.
Example:
id and name could be title_en / title_es but ng-model needs to be [en][title] / [es][title].
I can not obtain it only by modifying form.key into en.title / es.title because id becomes title in both cases.
I tried to add id and name options but it does not work as expected.
<input ng-if="!form.fieldAddonLeft && !form.fieldAddonRight" ng-show="form.key" type="string" step="any" sf-changed="form" placeholder="Title" class="form-control  ng-valid-schema-form ng-touched" id="title_en" ng-model-options="form.ngModelOptions" ng-model="model['en']['title']" ng-disabled="form.readonly" schema-validate="form" name="title_en" aria-describedby="titleStatus">

Hi, an example on plunkr or jsfiddle would help here.

@dorin-niscu would it be enough to have control over a filter on what is set as name in the form?

@dorin-niscu the id is now handled with a function call that makes it a full path including array indexes, there is a class added to the parent that shows the schema path. Closing this for now, let me know if you have further questions, there are other tickets that provide information on how to work with i18n if it is stilll causing headaches.


Unit test for discordactions model file

Date: 06-10-2024

Developer Name: Fakhruddin KW

Issue Ticket Number
#2175
Description
This PR adds missing unit test for discordactions model, thus increasing the test coverage
Documentation Updated?

[ ] Yes
[x] No

Under Feature Flag

[ ] Yes
[ ] No

Database Changes

[ ] Yes
[x] No

Breaking Changes

[ ] Yes
[x] No

Development Tested?

[x] Yes
[ ] No

Screenshots

Screenshot 1

Test Coverage

Additional Notes

Please add test coverage

It is hard to find which test coverage file you are given Is it unit only?
Do you add before after test coverage?
If yes then your branch coverage is 79% only

It is hard to find which test coverage file you are given Is it unit only? Do you add before after test coverage? If yes then your branch coverage is 79% only

The above one is for before, and the below is after.
Yes indeed branch coverage is 79%, but what I am doing here is adding remaining tests. In order to increase the test coverage, there are gaps in the existing tests which I will need to edit. In this PR I have only added the tests which were not present.


Fixes "Auto Pan Zoom" option in the flow graph view.

Fixes #634
Selecting the "Auto Pan Zoom" button while using Job Filters in the Flow Graph View causes a javascript error.
This PR removes the "transform" variable which is the source of the issue but is never used.

@bmsq May we know why removing transform assignment is able to fix this Auto Pan Zoon bug?

No worries.
getTransformToElement() is not a valid function for an SVG node.  When the JavaScript hits this line, it raises an error and doesn't execute the remainder of the function which prevents auto pan and zoom from working as expected.
I was going to guess what the function was expected to do and implement a standards compliant equivalent. However, this function is called and assigned to a local variable which is redundant and never used.  The simple fix is to remove the variable and the broken call to getTransformToElement().
We auto generate a large flow containing +400 jobs with more than a 1,000 dependencies, so the search feature with auto pan and zoom is pretty critical for navigating the graph.

LGTM. Thanks @bmsq for the explanation.

Any reason why this one was not merged? @kunkun-tang

This issue is already fixed in #1338 . Closing

Thank @kunkun-tang


check managed clusters available for e2e tests

Signed-off-by: myan<EMAIL_ADDRESS>

/test test-e2e

/hold

Do you mean the issue is like this?
couldn't get the resource list for [operator.open-cluster-management.io/v1](http://operator.open-cluster-management.io/v1): the server could not find the requested resource
Error: no matches for kind "Klusterlet" in version "[operator.open-cluster-management.io/v1](http://operator.open-cluster-management.io/v1)"

As we discussed before, we have concluded that the clusteradm did not have enough time to deploy klusterlet crd.
https://github.com/open-cluster-management-io/clusteradm/blob/257c6fd53c6c8573f2e6dafee4c826e192dcbf22/pkg/helpers/wait/wait.go#L22

As we discussed before, we have concluded that the clusteradm did not have enough time to deploy klusterlet crd.

I am not if it is an environment issue or this is a common issue. You case submit a PR in clusteradm repo to see if they agree to increase the wait time. otherwise, we may add a retry here to prevent this error - https://github.com/stolostron/multicluster-global-hub/blob/0adad30e31c32e17b8def2e344e692d53c0bbfb2/test/setup/common.sh#L115

As we discussed before, we have concluded that the clusteradm did not have enough time to deploy klusterlet crd.

I am not sure if it is an environment issue or this is a common issue. You may submit a PR in clusteradm repo to see if they agree to increase the wait time. But we can add a retry here to prevent this error -
https://github.com/stolostron/multicluster-global-hub/blob/0adad30e31c32e17b8def2e344e692d53c0bbfb2/test/setup/common.sh#L115

I'm not very clear about the issue's error message. Maybe we can hold this PR and wait for more detail about this issue from the other PRs.


Read only expected tensor length from data buffer into numpy array

🚀 🚀 Pull Request
Impact

[X] Bug fix (non-breaking change which fixes expected existing functionality)
[ ] Enhancement/New feature (adds functionality without impacting existing logic)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description
Some data chunks can have unexpected data stored in them which causes  the conversion to a numpy array to fail.
Limit the data read from the buffer to be just the needed length to avoid exceptions like: ValueError: cannot reshape array of size 5744 into shape (2872,1)
Things to be aware of
There really shouldn't be unexpected data, so need to watch for the upstream cause in the future.
I was hoping to warn about the mismatch between stored data and the tensor length, but I didn't see a good way to get the expected number of bytes numpy would use given the dtype name in order to compute if there is a surprise. So didn't end up with a warning.
Things to worry about
Nothing

Closing the PR because it is just hiding upstream problems with the chunks having incorrect data. We addressed all the known problems currently hit by users, so no need to risk the potential problems introduced by this change.


Should support multiple consumers

Should be a pretty simple change, basically doing for consumers what we're currently doing for watchers

Implemented in branch multiple-consumers


factorial.c

Program to find factorial of a number

This repository is excluded from hacktoberfest if want to contribute you can contribute in https://github.com/Mridul-1-Sharma/hacktoberfest2022-DSA


Add gv spec comments

added ability to fit BAT data

Codecov Report

Merging #164 into master will increase coverage by 0.27%.
The diff coverage is 83.06%.

@@            Coverage Diff             @@
##           master     #164      +/-   ##
==========================================
+ Coverage   74.85%   75.13%   +0.27%
==========================================
  Files         110      110
  Lines       11197    11307     +110
==========================================
+ Hits         8382     8496     +114
+ Misses       2815     2811       -4

Continue to review full report at Codecov.

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


Updating the styling of BasemapGallery.

Based on feedback from a week ago. Here is the styling update to put the text below/next to the image instead of above it.

@anmacdonald 2 things:

I believe the text on side vs under is backwards from what the JS implementation is.
Can we soften the selection color a bit like the JS implementation?

https://developers.arcgis.com/javascript/latest/sample-code/widgets-basemapgallery/

Updated the text order:


Matching L4 attributes, like destination IP, in routes

Title: Matching L4 attributes, like destination IP, in routes
Description:
I would like the ability to match l4 attributes (in particular, destination IP) in routes.
The use case here is we are a service mesh for Kubernetes. We want to match on ClusterIP traffic, but sometimes we match Host header via domains in RDS, so we need to transition. This transition is not a point in time, but based on a users action (i.e. can happen dynamically and at any time).
So user request is curl <IP_ADDRESS> -H "Host: foo".

State 1: Listener <IP_ADDRESS>, match RDS match domain foo
State 2: match <IP_ADDRESS>, RDS match domain *

We need to transition between these states smoothly. Note bind_to_port=false and original_dst is used
The obvious answer is to just add a new listener on <IP_ADDRESS> (we use bind_to_port=false). The issue is new requests will already have matched to <IP_ADDRESS>, so if we remove the RDS config those connections will start getting 404s and maybe never recover.
We want users to smoothly transition to the new config. Because the L4 matching is orthogonal/before the domain matching, this seemingly cannot be done.

You can already match on dynamic metadata, can that support this scenario with a filter that populates as needed?

I think that would likely work for some cases but we have an issue with domains behind higher precedence than any other route matches - we want IP to be highest precedence

You want this in VirtualHost then right? I wonder if you could use the generic matcher?

To be a bit more clear:
Today:
virtual_hosts:
- domains: [a, b, c]
  routes: ... route A ...
- domains: [d]
  routes: ...route B ...

Desired:
virtual_hosts:
- domains: [a, b, c]
  routes: ... route A ...
- destination_ips: [d address]
  routes: ...route B ...

With destination_ips having precedence over domains. Syntax doesn't matter, this is probably not the right API, just conceptually.
Generic matcher we maybe could but I think it would mean moving to a single virtual host instead of many? I am not sure the implication of that. So it would be something like this:
virtual_hosts:
- matcher:
    match IP:
      d address => route B
      else =>
        match domain
          [a,b,c] => route A
          else => 404

That may actually be fine (assuming we can match on the IP, but that seems easy to fix if not), although I am not sure the implications on moving from the old model to this.
One thing in particular is I had always hoped that we could eventually incrementally update the virtual hosts independently (not quite VHDS since we wouldn't want on-demand, but close) which this would break. But I have also said the same about collapsing from multiple listeners to one large listener with matcher for a long time and we still don't actually do incremental listener updates.... so maybe its not such a great argument :slightly_smiling_face:

I think maybe give the generic matcher a try. I worry a little bit about adding static match capabilities with precedences, since they will vary between users and then we need to provide flexible precedence, which is already solved by the tree structure in generic matchers. Look at what happened in filter chain matchers to see how complicated this becomes.


[Berkeley-Function-Calling-Leaderboard] Refactor leaderboard result generation and checking

This PR refactor leaderboard result generation and checking:

rename folder to Berkeley-Function-Calling-Leaderboard
Modify according to new test_category  naming.
Support for gorilla-openfunctions-v2 checking.

@ShishirPatil Request a review.
Charlie and I have tested out both OSS models and API key models for its generation and checking.


Implement a GitHub Action for new contributors

Overview
Implement a GitHub Action that posts an auto-message in the PRs from new contributors to welcome them and provide helpful information about contributing to Chayn,
Action Items

[x] Create a new workflow and submit the PR
[ ] Add a call to action
[ ] Add a rule that disables the message on Dependabot PRs

Resources
https://github.com/marketplace/actions/first-interaction

Closing as incomplete as this repo is inactive, postponing until GitHub Actions are improved in Bloom.


Allow specifying the response classifier in RetryPolicy

Fixes https://github.com/Azure/azure-sdk-for-net/issues/37564

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.Core


version bump workflow fails

Summary
Version bump fails when in commit message there is a colon preceded by set of characters not correct to poetry version command options (link to documentation). It should not fail the job, just not preform a version bump.
Logs and external information
https://github.com/CiscoDevNet/vManage-client/actions/runs/3513987738/jobs/5887460612
Reproduction script
Make commit to main with a : in message, preceded by any combination of characters not included in poetry version documentation (link to documentation).
Example commit [65d0883].
On what platform(s) does it occur?
Not Applicable
Issue Severity
Low: It annoys me

This issue was migrated from an old repository: https://github.com/CiscoDevNet/catalystwan/issues/24


[JS] Reconcile Action.OpenUrl rendering with getAriaRole()

Related Issue
Unifies fixes for #3914 and #2240
Description
Now that we have getAriaRole(), it removes the need for OpenUrlAction to override Action.render().
How Verified

Local build, verified link role continues to get applied correctly

Microsoft Reviewers: Open in CodeFlow

/azp run


UP-4626 Add  type to permission targets, fix export

Fix issue in import/export.  Currently an export creates permission-set XML files that list the ID number of the portlet so these files will not import properly.
Old export output:
<?xml version="1.0" encoding="UTF-8"?><permission-set script="classpath://org/jasig/portal/io/import-permission_set_v3-1.crn">
  <owner>UP_PORTLET_SUBSCRIBE</owner>
  <principal-type>org.jasig.portal.groups.IEntityGroup</principal-type>
  <principal>
    <group>Tenant Administrators</group>
  </principal>
  <activity>BROWSE</activity>
  <target permission-type="GRANT">
    <literal>PORTLET_ID.1</literal>
  </target>
  <target permission-type="GRANT">
    <literal>PORTLET_ID.10</literal>
  </target>
  <target permission-type="GRANT">
    <literal>PORTLET_ID.15</literal>
  </target>
</permission-set>

With fix:
<?xml version="1.0" encoding="UTF-8"?><permission-set script="classpath://org/jasig/portal/io/import-permission_set_v3-1.crn">
  <owner>UP_PORTLET_SUBSCRIBE</owner>
  <principal-type>org.jasig.portal.groups.IEntityGroup</principal-type>
  <principal>
     <group>Tenant Administrators</group>
  </principal>
  <activity>BROWSE</activity>
  <target permission-type="GRANT">
    <portlet>fragment-admin</portlet>
  </target>
  <target permission-type="GRANT">
    <portlet>instructions-for-new-tenants</portlet>
  </target>
  <target permission-type="GRANT">
    <portlet>portlet-admin</portlet>
  </target>
</permission-set>

Also with new code during import if a literal element is detected that starts with PORTLET_ID., an error is thrown with the message:
... 79 common frames omitted

Caused by: java.lang.RuntimeException: Invalid literal string PORTLET_ID.39 in file:/home/jwennmacher/projects/uPortal/uPortal/perms2/permission-set/Authenticated_Users__BROWSE__UP_PORTLET_SUBSCRIBE.permission-set.xml. This is probably due to export of permission using an older version of uPortal doing an export that didn't support the new  element.  You will need to lookup the portlet with the ID value '39' in the UP_PORTLET_DEF table and replace the  element in the XML file with portletFname then re-import.
at org.jasig.portal.io.GroupKeyLiteralOrPortletPhrase.evaluate(GroupKeyLiteralOrPortletPhrase.java:101)
With these changes I didn't see a need to bump the permission-set version number as it catches the invalid data and provides instructions on remedy.  There is no way to 'convert' an incorrect xml file to correct data.

@jameswennmacher -- I have a feeling we discussed this point before, but it's been a while...
Why do we need to export (or import) a permission-set.xml file specifying the BROWSE permission for individual portlets?  (I could see it for categories... but they wouldn't exhibit this issue.)
A portlet will export (and import) in an XML format that includes...
    <group>Everyone</group>
    <permissions>
        <permission system="UP_PORTLET_SUBSCRIBE" activity="BROWSE">
            <group>Everyone</group>
        </permission>
    </permissions>

Can't we just treat BROWSE the way we always have SUBSCRIBE -- a matter that's handled in the portlet-definition.xml file?

Ahhh.  I didn't realize that the export of the portlet definition put the permissions for BROWSE in it.  That's good to hear.  I didn't think to check for that since I saw it in the export permission set.
So we need to change export to ignore the permission set if the permission is BROWSE and the target is a portlet since it is handled in the portlet definition (we could allow BROWSE to a category though its not recommended at this point since it works best on a portlet -- the quickstart data set had that at one point though I know we are pulling it out. Some institutions may still have it in their data set).  If the target is a portlet the export should use fname for the target for consistency.
The fname aspect of the import should still be supported so you could specify a user or group has CONFIG permission on a portlet by fname (TAMU needed that).
Agreed?

AFAIK granting BROWSE on a category is great if that's what you intend;  I believe the issues with the quickstart_data essentially stemmed from the fact that the permission-set.xml files w used to ship were not really what people would probably intend, and were not a good match generally.
There is still an issue with how the marketplace only allows you to see portlets "By Category" for categories you have BROWSE over.

Didn't realize that's how Marketplace worked.  Marketplace should change IMHO to just offer the categories that are available for the portlets you have access to, just like Customize does (I think https://issues.jasig.org/browse/UP-4086 might be the issue to address that).

Fixed per discussion.


avoid div by zero in extreme balance case

Address #1663

get_total_balance returns a minimum of EFFECTIVE_BALANCE_INCREMENT to avoid div by zero in extreme cases
add rewards test vector to test for this extreme case (it did in fact div by 0 before the fix was in place)
Add another rewards test for empty attestations (because I noticed it was needed... )

Thanks @hwwhww!
Made the suggested changes. Merging after tests run


get content of the editor

how to get the text of the editor?

if you are using Angular.js, just bind a model to EditorNinja:
<body ng-app="app">
  <div ng-controller="article">
    <editor-ninja ng-model="content"></editor-ninja>
  </div>
</body>

if you are using raw javascript, try this API:
editor.getValue()


Building a VS 2012 .NET 4.0 project on Windows 10 with VS 2015 installed

My project is a Visual Studio 2012 (although I don't think this is the issue because I can build it from powershell with msbuild OK) .NET 4.0 (x86) project. I'm trying to build it on a fresh Windows 10 box with Visual Studio 2015 Community installed.
I get this build error after a while:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(2863,5): error MSB3086: Task could not find "AL.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed [C:\ProjectName\ProjectName.Core.csproj]
Error: 8/30/2016 1:01:43 PM:
 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [<<==>>] Exception: Exec: Error executing command  msbuild $project_hashes["ProjectName"].project_file /t:Build /p:"Configuration=$configuration;Platform=$platform;OutputPath=$build_directory;VisualStudioVersion=12.0" /maxcpucount:$max_cpus<EMAIL_ADDRESS>
My build script is like this:
Framework "4.0"
task build {
    Exec { msbuild ProjectFile.proj /t:Build /p:"Configuration=$configuration;Platform=$platform;OutputPath=$build_directory;VisualStudioVersion=12.0" /maxcpucount:$max_cpus<EMAIL_ADDRESS>}

(just an excerpt)
It builds OK after installing another SDK.
Why is msbuild in conjunction with psake trying to use a different SDK than when building directly using only msbuild?
I browsed through the solutions on github and stackoverflow and none of them seems to suggest installing a different SDK. Setting the framework version should be enough it seems.
And I'd really like to avoid installing an additional SDK.

This should probably be fixed in pull #209 which is currently still open.

Checked on a fresh win10 & VS 2017 (vanilla) with psake from the pull request. Works (need VSSetup PS module) fine when framework set to 4.6 (and probably some others too). My solution is VS 2015 now though.
Probably ok to close? (also since I probably won't be testing with VS 2012 or 2015 anymore...)


Workers?

What about worker roles substitutes?
WebJobs doesn't cut it (without extreme rewrite), and service fabric has stateless services.
I think the table deserves some new rows.

Dokumentinformasjon
⚠ Ikke rediger denne delen. Den kreves for koblingen docs.microsoft.com ➟ GitHub-problem.

ID: 02a4abb1-48c0-178e-a37e-290034b4dcae
Version Independent ID: 61da6a8b-fa37-a499-ba79-0dd6b5346f2a
Content: Compare App Service, VM, Service Fabric, and Cloud Services - Azure
Content Source: articles/app-service/choose-web-site-cloud-service-vm.md
Service: app-service-web
GitHub Login: @cephalin
Microsoft Alias: cephalin

@austvik, Thank you for your feedback on adding more comparison items (features) in the document table ‘Feature Comparison’. Just for clarification and to understand the ask better, for Cloud Service Worker role (It’s an instance which does not use IIS, and runs your app standalone) substitute – Based on the requirement the potential substitute for this could be; hosting a Website on an Azure VM or Service Fabric which provides more control over, or direct access to, the underlying infrastructure as highlighted in the document. And, the document also compares Service Fabric with other deployment options and links to configuring Webjobs. We would greatly appreciate if you could let us know what specific comparison you wish to see in the document or please provide more details about a requirement (scenario), so we could review and update as appropriately.

@austvik, Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply with more details about a scenario. We will gladly reopen the issue and continue the discussion.

Cloud Service "Worker Roles" solves the "has a main() method that is run at startup, independently of web calls.
I believe Service Fabric has a Stateless Service which gives you that. I do not believe App Service has something similar (you would probably have to rewrite to Azure Functions? Jobs?)?

@austvik, Thanks for the feedback on this item, I have assigned the issue to the content author to review further on these points and update the document as appropriate.


Cover size in Details view

Feature Description
I like this theme, but I personally find the cover image in Details view to be a bit small and hard to see. Would it be possible to add an option to make it larger, perhaps to better match the width of the install/play button?
Thank you.
Screenshots

alternately: what would I change to do it manually? I tried changing line 237 of DetailsViewGameOverview to
                                                <Image Name="PART_ImageCover" Height="{Settings GameDetailsCoverHeight}" MaxWidth="600"
but it failed to change...

The Cover height is controller by this built-in Playnite setting

As far as changing it to match the width, I'm not a fan of the idea since it would make the layout very inconsistent if there are covers of different heights, as it would move the buttons below up and down. It's the same reason why the Playnite setting controls the height instead of the width

Thanks, I forgot that option was there.
Since I use 600x900 covers for most of my games, setting the height to a specific size makes it match the button width fair enough. So consider closed.


Replace Readme image with reduced image

Issue

https://github.com/DroidKaigi/conference-app-2020/issues/186

Overview (Required)

Replace Readme image with reduced image

reduced the size by about 60% while maintaining the quality.

Thank you for lightweight images! We can read the README on Android😆


Question: How to resolve external files inside json-schema files using $ref

Detailed description
Which is the proper way to reference external files inside  json-schema files?
For example
With this openapi.yml file:
openapi: "3.0.1"
info:
  title: "OPENAPI Test"
  description: "test"
  version: "1.0"
  contact:
    name: test
    url: test.com
    email<EMAIL_ADDRESS>paths:
  /user:
    get:
      summary: Retrieve user information
      description: 'schema test'
      tags:
      - User
      operationId: user.details
      responses:
        200:
          description: Success
          content:
            application/json:
              schema:
                $ref: 'spec/support/api/schemas/user.json'
tags:
- name: User

If we have two json-schemas:

Filename: spec/support/api/schemas/user.json
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": “file:/user.json",
  "type": "object",
  "required": ["account"],
  "properties": {
    "account": {
      "$ref": "file:/account.json#"
    }
  }
}

Filename: spec/support/api/schemas/account.json
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "file:/account.json",
  "type": "object",
  "required": ["balance"],
  "properties": {
    "balance": {
      "type": "number"
    }
  }
}

The following test passes:
require 'rails_helper'

describe 'user schema' do
  it ‘should be a valid schema' do
    user = {
      account: {
        balance: 23
      }
    }
    expect(user).to match_json_schema('user')
  end
end

But speccy lint openapi.yml  -v --json-schema fails with the following error:
GET /example/node_modules/speccy/rules/default.json
Found 17 rules in default: parameter-description,parameter-name-regex,operation-operationId,operation-summary-or-description,operation-tags,path-keys-no-trailing-slash,server-trailing-slash,openapi-tags,openapi-tags-alphabetical,reference-no-other-properties,pathItem-summary-or-description,example-value-or-externalValue,reference-components-regex,no-script-tags-in-markdown,info-contact,license-apimatic-bug,no-eval-in-descriptions
GET openapi.yml
GET /example/spec/support/api/schemas/user.json
Rewriting external ref file:/account.json# as file:///account.json#
Finished internal resolution
Creating initial clone of data at #/paths/~1user/get/responses/200/content/application~1json/schema
GET file:///account.json #
{ Error: ENOENT: no such file or directory, open 'file:///account.json'
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'file:///account.json' }
{ Error: ENOENT: no such file or directory, open 'file:///account.json'
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'file:///account.json' }
ENOENT: no such file or directory, open 'file:///account.json'

Context
I'm trying to use both speccy and json_matchers to validate and document my api.
Your environment

Node Version: v8.11.3
speccy 0.8.0
json matchers 0.10.0.

I have never seen anyone using this style "$ref": "file:/account.json#". Could this not just be "$ref": "./account.json#"?
I believe file:/account.json is looking for a file called account.json that literally lives at the root of the drive (/). Why json_matchers is finding this file I do not know, maybe that's a bug on their end, but this looks a lot like how I'd expect NodeJS to react given the instructions you've given it.

file://./account.json might work, but it's an unusual $ref construct and limits you from hosting your document at a URL. account.json or ./account.json is fine.


feat: add semantic release and migrate CI environment

What does this PR do ?

This PR add the semantic release process into this project. It also remove the usage of travis in favour of Github actions and it bump some of the core deps of the project

We might want to modify the tests to include testing arrays too.

We will in another PR


Which nostr clients should be recommended?

Should this be the list of apps recommended?
Section: "Get started with these apps"
Based on these criteria #3
mobile and web
Amethyst
Coracle
Damus
Iris
Nos
Primal
Snort
desktop & CLI
algia
gossip
nak
Signing extensions
Alby
nos2x
nostore
nsecbunker

are there any that should NOT be on this list,  why?
are there any others that should be on this list, why?

Potential additions to the current list:
Desktop: https://lume.nu/
Web: https://nostrudel.ninja/

Iris should be removed from the list. They merged with Snort a long time ago. The Iris domain is essentially a white labelled Snort client now.

Super nice first version folks!

Thank you!

Do we want to keep listing only Twitter-like clients?

Nostr is not limited to one type of app. We should not limit that either.

The blogging client habla.news could be there as well, but it feels off in the current list.

Sorting depends on what people may find most useful. Whether they'll look first for their operating system or the type of app they want to try. We're early enough that it's probably the operating system.
Perhaps, in the future, we could also have an option to sort by either of those options.
For now, we could have labels for the type of app: Twitter-like, blogging...

Iris should be removed from the list. They merged with Snort a long time ago. The Iris domain is essentially a white labelled Snort client now.
edit: link to nostr post explaining this https://nostr.com/nevent1qqsywkmdsq5855dtahdk52fjck3aevjkzsyxjswa7jmxc3kyf2u554sz6nacs

Thank you, trosel, for pointing that out and including a source.

Potential additions to the current list: Desktop: https://lume.nu/ Web: https://nostrudel.ninja/

How do we feel about PR #9 adding Nootti & Nostur
I'm unfamiliar with Nootti. I don't know who develops it.
I'd love a developer's perspective on Nostur. Fabian has been doing good work on onboarding and other user-friendly details.

Nostur is very good. I have not heard about Nootti yet.

How do we feel about PR https://github.com/lnbits/nostr.org/pull/9 adding Nootti & Nostur

I've never heard of Nootti and there is neither a link to who the developer is nor a link to a code repo. I really don't feel comfortable adding it to a recommended client list in such a state. The client list on the .org website should be reserved for very well tested and well vetted clients, in my opinion.

I'd love a developer's perspective on Nostur. Fabian has been doing good work on onboarding and other user-friendly details.

Nostur has been around a long time and Fabian does a great job with it. Up until Primal adding multi-account last week, it was the only multi-account app on iOS. It's maybe worth adding Nostur in a separate commit for now.

Thank you for your feedback  @trosel  @vitorpamplona
Added a PR #11 based on your comments
Holding off on Lume until rewrite
Added:
Nostur
Habla
Nostrudel
Removed:
Iris, because it is a fork of Snort
Did not add Nootti:
It does not appear to be open source, and we're unfamiliar with it.
Digging a little deeper, it's  an app made by the PR #9  requester, Petri Kajander - for posting on Bluesky, Mastodon and Nostr. Npub referenced on his website: npub1ust7u0v3qffejwhqee45r49zgcyewrcn99vdwkednd356c9resyqtnn3mj

The blog tag on Habla News is a great idea. It makes me think of other tags that could be added. For example: https://satellite.earth/ is a Community focused app kinda like reddit.
Maybe you could add tags based on the NIPs that they are compatible with? For example: NIP-23 would be "blog" apps, NIP-72 would be "community" apps

Just added Satellite to version 2.0 #15

We don't have highlighter up there yet. Would appreciate a dev's perspective on it.
Are there any other clients or tools that we should consider?
@vitorpamplona

Highlighter is solid.
Another addition could be zap.stream.
https://hivetalk.org/ and https://nostrnests.com/ can also be highlighted as meeting spaces using nostr.

Highlighter is solid.
Another addition could be zap.stream.
https://hivetalk.org/ and https://nostrnests.com/ can also be highlighted as meeting spaces using nostr.

Thank you @vitorpamplona
I've added them to the latest PR, along with a design update. #15


chore: test tool diff viewer

Summary

Test Plan

Require Documentation?

[ ] No
[ ] Yes, the corresponding rspack-website PR is __

Current dependencies on/for this PR:

main

PR #4802

PR #4803   👈

This stack of pull requests is managed by Graphite.


Dots in module path breaks Lua import in a non-bundle compilation

Abstract
tstl fails to produce valid lua code from a subset of valid (accordingly to tstl docs) code if ts file names contain dots in paths.
This problem may naturally arise, for example, when compiling from Purescript to JS and then from JS to Lua using tstl.
The example is not the natural use case for tstl, however, the bug is the bug.
Example
Let's say we have two files:
./src/Foo.Bar/index.ts
export const answer: number = 42;

./src/Qux/index.ts
import {answer} from "./Foo.Bar";
export const printAnswer = () => print(answer)

So import {answer} from "./Foo.Bar"; will be compiled (in a non-bundle mode) to
local ____Foo_2EBar = require("Foo.Bar.index")
local answer = ____Foo_2EBar.answer

and lua will be searching at ./Foo/Bar/index.lua" for that module.
That will result an error:
lua: ./Qux/index.lua:3: module 'Foo.Bar.index' not found:
        no field package.preload['Foo.Bar.index']
        no file './Foo/Bar/index.lua'
        no file '/usr/local/share/lua/5.1/Foo/Bar/index.lua'
        no file '/usr/local/share/lua/5.1/Foo/Bar/index/init.lua'
        no file '/usr/local/lib/lua/5.1/Foo/Bar/index.lua'
        no file '/usr/local/lib/lua/5.1/Foo/Bar/index/init.lua'
        no file '/usr/share/lua/5.1/Foo/Bar/index.lua'
        no file '/usr/share/lua/5.1/Foo/Bar/index/init.lua'
        no file './Foo/Bar/index.so'
        no file '/usr/local/lib/lua/5.1/Foo/Bar/index.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.1/Foo/Bar/index.so'
        no file '/usr/lib/lua/5.1/Foo/Bar/index.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './Foo.so'
        no file '/usr/local/lib/lua/5.1/Foo.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.1/Foo.so'
        no file '/usr/lib/lua/5.1/Foo.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        ./Qux/index.lua:3: in main chunk
        [C]: in function 'require'
        ./main.lua:3: in main chunk
        [C]: ?

Soulution
When compiled to a file ./dist/Foo.Bar.Baz/index.lua, split it's name by dots (excluding extension) and put the file into directory ./Foo/Bar/Baz.
This will fix module resolution for lua.
So basically the ts directory
.
├── Foo/
│   └── index.ts
├── Foo.Bar/
│   └── index.ts
├── Foo.Bar.Baz/
│   └── index.ts
├── Qux/
│   └── index.ts
└── index.ts

should be compiled into
.
├── Foo/
│   ├── index.lua
│   └── Bar/
│       └── index.lua
│       └── Baz/
│           └── index.lua
├── Qux/
│   └── index.lua
└── index.lua

instead of
.
├── Foo/
│   └── index.lua
├── Foo.Bar/
│   └── index.lua
├── Foo.Bar.Baz/
│   └── index.lua
├── Qux/
│   └── index.lua
└── index.lua

Alternative solution would be to rename the directory Foo.Bar.Baz to something like Foo_dot_Bar_dot_Baz, I have seen Python grpc do something like that.
But I think I prefer your proposed solution of just outputing to nested directories better.

Hey I solved a similar problem for myself by adding an import resolution failure hook in the plugins interface, which allowed me to write a plugin to customize how I solve imports that can't be resolved via the ts resolver. I'm sure it needs some changes to be contributed but let me know what you think. Link to my forks commit


adds usage description

@ChamariaUmang 👀

@ladanazita this repository is no longer maintained. MoEngage-Segment bundled integration's current repo https://github.com/moengage/MoEngage-Segment-iOS

@ChamariaUmang Alright I will open this there


Split Github Actions to be per plugin

Right now there is a single Github action, in which we build and test all the plugins sequentially. This PR changes the workflow, so that there is a separate action for each plugin.

LGTM


Image upload problem

Describe the bug
Image upload problem
To Reproduce
Steps to reproduce the behavior:

login to 'https://sandbox.tinode.co/'
Click on any topic
Click on upload image
Select image in explorer

Expected behavior
Loading a picture into a topic
Screenshots
https://recordit.co/muIscy1x6i screencast
Environment (please complete the following information):

OS: [Windows 10 Pro]
Browser [Chrome]
TinodeWeb Version [0.17.3] may be 0.17.2

Console log
Uncaught (in promise) TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed.
    at index.prod.js:1
    at Image.l.onload (index.prod.js:1)

Fix released in https://github.com/tinode/webapp/releases/tag/v0.17.5


Update component creation to support dockerfile

Fixes

https://issues.redhat.com/browse/HAC-1322
https://issues.redhat.com/browse/HAC-1420

Description

CDQ can now detect a dockerfile in a git repository and we can specify that in component CR to support dockerfile.
Updated the component creation to use dockerfileUrl from the CDQ.
Revert the changes that send context into component creation until the HAS issue is resolved.

Type of change

[x] Feature
[x] Bugfix

Screen shots / Gifs for design review

No UI change.

Browser conformance:

[x] Chrome
[ ] Firefox
[ ] Safari
[ ] Edge

Thank you very much!


Changes in functional tests for mobile header view

Changes in functional tests for mobile header view
https://github.com/almighty/almighty-ui/pull/597

@SMahil , hey
i have raised a PR : https://github.com/SMahil/almighty-ui/pull/4 for your local branch.
@ldimaggi , can you review it!


App crashing when installing the component

Describe the bug
When I install the component on my app it stops working.
To Reproduce
Steps to reproduce the behavior:

run npm install mui-file-input
run npm run dev to start your application
you will see a wite screen and if you open the browser dev-tools you will see the error shown on the screen shot below.

Expected behavior
It should not crash my application.
Screenshots

https://stackoverflow.com/questions/74542488/react-material-ui-createtheme-default-is-not-a-function
Desktop (please complete the following information):

OS: IOS
Browser chrome
Version MUI version: 5.14.1

Additional context
I've searched the error on the internet thinking it was my problem but if I uninstall the component it stops crashing. Maybe this stack overflow issue might help: https://stackoverflow.com/questions/74542488/react-material-ui-createtheme-default-is-not-a-function

Hello ! Could you try with last version plz ?

Could you please share me a codesandbox link plz ?


Static get and set pair in class syntax fails

As a consequence of our translation, the "get" and "set" functions are coming in as separate descriptors and the earlier one gets overwritten.

Fixed a while ago.


Canadian landings clarification

total annual catch for Canadian SS and FT in 'landings-tac-history.csv' does not match the '....-by-month.csv' files.  Chris can you clarify which is correct.

Sorry for the delay.. they do match for 2016, but not before because last year I figured out how to include discards properly (after extensive discussions with Barry A.). The catch-by-month is correct, and I will update the landings-tac-history for those years.

Sounds good, I'm running some models to see how things go.  I figured there would be some final tweaks in the input data.

Fixed in commit 9008d3661276ba. I hadn't updated 2007-2015 data in the landings-tac-history file after adding discards to the extraction method so 2016 matched but pre-2016 didn't. They should all match now.


Is there any function can export mnemonics from keystore ?

What context is your feature request related to?
Is there any function can export mnemonics from keystore after it created?
What solution would you like?
Is there any function can export mnemonics from keystore after it created?
Any additional context?
No response

Hello @libai0610
No, there is no way to export mnemonics as it is not saved anywhere.
It must be saved and kept secret by the user and can be re-introduced later to recover access to the private key.

Where's the private key being saved? I checked? I tried to create wallet and this userDir + "/keystore"+"/key.json" folder is empty.

@claudeios The library doesn't save anything anywhere, it's only responsible for the generation of a valid private key and all related parameters.
We have BIP32Keystore and EthereumKeystoreV3 which are called keystores because these are the entities you talk to to get private keys at runtime when they are initialized.
But to initialize them you either:

create a new keystore object when you start from scratch;
initialize a keystore object with old data (keystore parameters).

Both classes as you can see have keystoreParams variable:

These keystore parameters contain all the info you need to derive your private key and basically restore it later.
What I suggest is that you take keystoreParams, encode it into JSON data try JSONEncoder().encode(keystore.keystoreParams!) and save the corresponding data into the KeyChain as it's a secure place. You can actually save it wherever you want when it's encoded as it's just bytes but it's not secure to store it as a file for example!
To restore it back:

read the KeyChain entry (or the source where you saved it to);
decode JSON if you want to or use the raw bytes Data;
init the BIP32Keystore and EthereumKeystoreV3.

@JeneaVranceanu thank you. I tried to conform with your suggestions above. I have created a keystore and initialized it but im still getting error on generating the privatekey.
I tried to run build and run Example/myWeb3Wallet but createMnemonics() - privateKey = try tempWalletAddress?.UNSAFE_getPrivateKeyData(password: "", account: walletAddress) is going to catch block when trying to generate private key.

@claudeios
Not sure who built this example but it looks wrong and outdated.
I've updated it and pushed changes to fix/web3-wallet-example but it's in my fork of this repository. You can clone it from here: https://github.com/JeneaVranceanu/web3swift/tree/fix/web3-wallet-example.
Here is the PR that will integrate the fix into develop branch in this repository: https://github.com/web3swift-team/web3swift/pull/764

@claudeios The example is fixed. You can fetch the latest develop branch and try the example once again. Should work.


Feat/zondax starware app support

Hey @yogh333
whilst a starknet.js call we decided that ledger should maintain their own package implementing a SignerInterface.
This will help with mitigating dependencies not everybody needs. As an example see the briq guys avoiding the ledger dependencies: https://github.com/briqNFT/briq-builder/blob/main/src/starknet_wrapper.ts
Thanks :)


Update square-transact-sql.md

@CarlRabeler : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Wrap weakref.ref instead of subclassing to fix cloudpickle serialization

Change Summary
See context in https://github.com/pydantic/pydantic/issues/6763.
The existing _PydanticWeakref cannot be serialized due to a known issue serializing weakref.ref objects.
This change works around the issue by updating _PydanticWeakref to be a wrapper instead of a subclass.
Along with https://github.com/pydantic/pydantic-core/pull/1006, this should enable pydantic model definitions to be cloudpickled.
Related issue number
https://github.com/pydantic/pydantic/issues/6763
Checklist

[ ] The pull request title is a good summary of the changes - it will be used in the changelog
[ ] Unit tests for the changes exist
[ ] Tests pass on CI
[ ] Documentation reflects the changes where applicable
[ ] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@davidhewitt PTAL


It is much easier to write code and visualize it with plantuml.


DRILL-4858: REPEATED_COUNT on an array of maps and an array of arrays is not implemented

Implemented 'repeated_count' function for repeated MAP and repeated LIST;
Updated RepeatedListReader and RepeatedMapReader implementations to return correct value from size() method.

Thanks, @vdiravka. I've updated Jira description and squashed the commits.


Refactor

Clean-up tasks
Namespace

[ ] Consistent naming convention (camel case for classes, lowercase with underscores for functions and variables)
[ ] Common set_up_directories and save_XXX methods for utils rather than similar in storage, inference, etc.
[ ] Define .json template and remove .ini component if not desired.

Reproducibility

[ ] Edit template .json
[ ] Set-up minimal examples for both datasets
[ ] Abstract methods for computing implausibilities and quantiles

Easily improved

[ ] Pass arguments to the inference pipes rather than dictionaries of unknown arguments. (Get rid of reading JSON in every step.)

@vasanchez16, there's still a lot of redundancy in the code so it's a bit hard for me to parse the relevant methods. I'm going to use this issue to track progress on clean-up and refactor anew starting from commit 54d3d2059d on the dev branch [04/24/24].

@JamesCarzon, looks like we can move forward with this version of the code, I will probably be making some changes to add more code but I'll list those commits under this issue


Fix for expression issue

This is a fix for @jenmontes issue here:
https://github.com/muut/riotjs/issues/334
No need to update expressions where the dom is removed by a parent if-attribute.

Coverage increased (+0.26%) to 91.45% when pulling da674fccedc96ab51810038f6c3aee2ae862ff94 on AndreasHeintze:expr-if-fix into d229296af7edfd7d5e48868df584d0f0c7eac82f on muut:dev.

Coverage increased (+0.23%) to 91.42% when pulling ea3cd770330453eaafad055ce3c00d730b076e74 on AndreasHeintze:expr-if-fix into d229296af7edfd7d5e48868df584d0f0c7eac82f on muut:dev.

If you like it, I'll write some tests and docs too.

ok 4 some tests and doc update

Coverage increased (+0.11%) to 91.3% when pulling 35792e9c3e05371ec636ce300b329b071dba868e on AndreasHeintze:expr-if-fix into d229296af7edfd7d5e48868df584d0f0c7eac82f on muut:dev.

Coverage increased (+0.11%) to 91.3% when pulling 3fd650c743fc8b9a379d83a594cbba194372ec50 on AndreasHeintze:expr-if-fix into d229296af7edfd7d5e48868df584d0f0c7eac82f on muut:dev.

Coverage increased (+0.11%) to 91.3% when pulling 0efd2e4afe3cf99c465e5a1d7e3b2ade997489b9 on AndreasHeintze:expr-if-fix into d229296af7edfd7d5e48868df584d0f0c7eac82f on muut:dev.

I need to do some more work on this since I discovered it does not work in all situations. I'll try to fix it.

This is important, but not a trivial one. Hope you nail it.

@tipiirai Yes I know, will dig deeper into it during the week. What is your opinion about this issue: https://github.com/riot/riot/issues/334
I think we should fix this too.

Issue #334 is very important and should be fixed.

#334 the issue got fixed with https://github.com/riot/riot/pull/828 @AndreasHeintze can we close this?

@GianlucaGuarini No, this is not a complete fix. Still working on it.

This pull request is too old and it can not be merged, It does neither fix the issue so please @AndreasHeintze feel free to submit it again if you are still working on it
thank you


Retry messages on shutdown

@Shopify/kafka fixes #419.
Rather than use the old complicated system of reference-counting flags to shutdown cleanly, do the much simpler thing: keep a sync.WaitGroup counting the number of messages "in flight" (aka owned by the producer). When shutdown is requested, spawn a goroutine that waits for this counter to hit 0, then closes everything in one go.
We add messages to the in-flight set in the topicDispatcher (only new messages with retries==0 though). We remove messages from the in-flight set in returnError and returnSuccesses; even if the Producer.Return.* values are false they are still guaranteed to see every message.
This still needs tests.
I'm not sure what performance impact the waitgroup will have. An alternative might be an atomic counter, and have the shutdown goroutine just poll it every 10ms or something.

Also, I'm not sure what performance impact the waitgroup will have. An alternative might be an atomic counter, and have the shutdown goroutine just poll it every 10ms or something.

CI failing because of https://github.com/kisielk/errcheck/issues/70

CI fixed.
@Shopify/kafka this is ready for review.

I think the accounting is correct.

New (0 retries) messages increment, errors and successes decrement.
New chaser messages increment, and are decremented when they are handled.
Only shutdown messages are not accounted for, but there's only one and it doesn't propagate through the goroutines (see my comment above)

:+1:, this is a nice simplification and it's much easier to understand now.

Your description of the accounting matches my understanding exactly. Once CI is :green_apple: and I've had a quick pair of :eyes: on the third commit, I think this is good to go.

I think this looks good. We should do some stress testing of this though.

I am comfortable enough to push this to master now. I will do some stressing before releasing the next stable version.


Intergration with Windows Terminal

HI All
as Windows Terminal reached stable version i would like to propose intergration of commands in Launcher with Windows Terminal. For example:
wt ping github.com
or
wt ssh <IP_ADDRESS>
Thank you.

@4k3or3et great feedback! You can currently do > wt ping github.com and it will run Windows Terminal with the command. If you have any other integration ideas between PowerToys Run and Windows Terminal, we'd love to hear it!

What about adding the option to change the default shell which is used via ">" in settings?

Yes, highly doubt we'll have it in v1 but this is something that we have planned per the launcher spec:

In PowerToys General Settings:

[Dropdown] Default shell.
[Dropdown] Default terminal.

with 0.19, we can do "wt" and you can do "> wt ping github.com" but you can't currently do "wt ping github.com"  I just created #4497 to enable this.


[SPARK-43340][CORE] Handle missing stack-trace field in eventlogs

What changes were proposed in this pull request?
This PR fixes a regression introduced by #36885 which broke JsonProtocol's ability to handle missing fields from exception field. old eventlogs missing a Stack Trace will raise a NPE.
As a result, SHS misinterprets  failed-jobs/SQLs as Active/Incomplete
This PR solves this problem by checking the JsonNode for null. If it is null, an empty array of StackTraceElements
Why are the changes needed?
Fix a case which prevents the history server from identifying failed jobs if the stacktrace was not set.
Example eventlog
{
   "Event":"SparkListenerJobEnd",
   "Job ID":31,
   "Completion Time":1616171909785,
   "Job Result":{
      "Result":"JobFailed",
      "Exception":{
         "Message":"Job aborted"
      }
   }
}

Original behavior:
The job is marked as incomplete
Error from the SHS logs:
23/05/01 21:57:16 INFO FsHistoryProvider: Parsing file:/tmp/nds_q86_fail_test to re-build UI...
23/05/01 21:57:17 ERROR ReplayListenerBus: Exception parsing Spark event log: file:/tmp/nds_q86_fail_test
java.lang.NullPointerException
    at org.apache.spark.util.JsonProtocol$JsonNodeImplicits.extractElements(JsonProtocol.scala:1589)
    at org.apache.spark.util.JsonProtocol$.stackTraceFromJson(JsonProtocol.scala:1558)
    at org.apache.spark.util.JsonProtocol$.exceptionFromJson(JsonProtocol.scala:1569)
    at org.apache.spark.util.JsonProtocol$.jobResultFromJson(JsonProtocol.scala:1423)
    at org.apache.spark.util.JsonProtocol$.jobEndFromJson(JsonProtocol.scala:967)
    at org.apache.spark.util.JsonProtocol$.sparkEventFromJson(JsonProtocol.scala:878)
    at org.apache.spark.util.JsonProtocol$.sparkEventFromJson(JsonProtocol.scala:865)
....
23/05/01 21:57:17 ERROR ReplayListenerBus: Malformed line #24368: {"Event":"SparkListenerJobEnd","Job ID":31,"Completion Time":1616171909785,"Job Result":{"Result":"JobFailed","Exception":
{"Message":"Job aborted"}
}}

After the fix:
Job 31 is marked as failedJob
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Added new unit test in JsonProtocolSuite.

@JoshRosen and @dongjoon-hyun Can you please check the changes?

Thank u for pinging me. Will take a look tonight.

Thank u for pinging me. Will take a look tonight.

Thanks @dongjoon-hyun
I am not sure I can find the reason behind the build errors though
#35 ERROR: failed to push ghcr.io/amahussein/apache-spark-ci-image:master-4886449337: unexpected status: 403 Forbidden

#36 [auth] amahussein/apache-spark-ci-image:pull,push apache/spark/apache-spark-github-action-image-cache:pull token for ghcr.io
#36 DONE 0.0s
------
 > exporting to image:
------
ERROR: failed to solve: failed to push ghcr.io/amahussein/apache-spark-ci-image:master-4886449337: unexpected status: 403 Forbidden
Error: buildx failed with: ERROR: failed to solve: failed to push ghcr.io/amahussein/apache-spark-ci-image:master-4886449337: unexpected status: 403 Forbidden

@dongjoon-hyun  do you know about what might be missing for permissions for his build error here?
(ERROR: failed to solve: failed to push ghcr.io/amahussein/apache-spark-ci-image:master-4897157804: unexpected status: 403 Forbidden)
I haven't seen that before.

To @tgravescs , I also hit that issue before when I re-forked my Spark repository. Like 403 error means, it's permission issue in GitHub setting. But, I forgot the details. At that time, @Yikun helped me because he setup the pipeline in the community~

Welcome to the Apache Spark community, @amahussein .
I added you to the Apache Spark contributor group and assigned SPARK-43340 to you.

LGTM as well. Thanks for fixing this!

ERROR: failed to solve: failed to push ghcr.io/amahussein/apache-spark-ci-image:master-4897157804: unexpected status: 403 Forbidden

There are two possible issue we met before:

Github Action flaky issue: https://github.com/orgs/community/discussions/32184
Permisssion seeting issue. By default, write permission already included to your GITHUB_TOKEN, but if you set it manually (see also [1], [2]), it will failed, current CI will first build infra and push to your ghcr so write permission is required.
[1] https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
[2] https://github.com/users/amahussein/packages/container/apache-spark-ci-image/settings

Like 403 error means, it was a permission issue in GitHub setting. But, I forgot the details. At that time, @Yikun helped me because he did setup the pipeline in the community~

Yes, we do some configure on https://github.com/apache/spark/pull/37745#issuecomment-1234063012 , but after that I found it was a flaky issue of github aciton.


TypeError: 'weights_only' is an invalid keyword argument for Unpickler()

TypeError: 'weights_only' is an invalid keyword argument for Unpickler()

I got a same error.
TypeError: 'weights_only' is an invalid keyword argument for Unpickler()
How could you solve it?


How to make the state returned to Alexa from another gpio pin.

Lots of success with this code today after changing the persistent_uuid line in switch.cpp as pointed out by others. That's really helpful guys, thanks.
My Alexa Plus is discovering the devices without any additional skills, and controlling the resulting relays just fine.
My use case is a garage door control, that wants 1 sec pulses to either open or close the door. I have modified the code in this repo to read a gpio input pin on the esp2866 that is connected to a switch so I know the state of the door. Simple then to gate the Alexa on and off commands via that garageDoorState Boolean to only produce a close pulse when the door is open and vice versa.
The only problem with this, is that Alexa doesn't know the actual state of the door, only the state of the door control relays , and as they are always short pulses, when I look at the belkin smart switch device display in Alexas list of devices, it's always off.
Where in the code could I make changes such that the state of the door is returned to Alexa instead of the state of the door controls? I would like to see those smart switch displays in Alexa say "on" when the door is open. (This could be really useful if I ever want to know remotely if I have left the door open)
I can see regular " got binary state request" messages in the serial monitor which is probably where I need to make changes, but I lack the understanding of exactly how...
Apart from the tweak above, and removing most of the debug messages to make life quieter, I haven't touched the library files (yet).

Don't think it's possible
I am not sure what are you trying to do. Check whether sinric.com can
support
On Wed, Apr 25, 2018 at 12:12 PM Ynot1<EMAIL_ADDRESS>wrote:

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kakopappa/arduino-esp8266-alexa-multiple-wemo-switch/issues/48,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHIM5kFsD7FdbqElGeVhq1SP81UqT-z8ks5tsAXVgaJpZM4Tiyf2
.

#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <WiFiUdp.h>
#include
#include "switch.h"
#include "UpnpBroadcastResponder.h"
#include "CallbackFunction.h"
// prototypes
boolean connectWifi();
//on/off callbacks
bool garageDoorOpenOn();
bool garageDoorOpenOff();
bool garageDoorCloseOn();
bool garageDoorCloseOff();
// Change this before you flash
const char* ssid = "JustBePatient_VirusDownloading";
const char* password = "HH563dggrtvvxz";
boolean wifiConnected = false;
UpnpBroadcastResponder upnpBroadcastResponder;
Switch *garagedooropen = NULL;
Switch *garagedoorclose = NULL;
bool isgarageDoorOpenOn = false;
bool isgarageDoorCloseOn = false;
bool GarageDoorState = false;
bool PrevGarageDoorState = false;
const int garageDoorRelay = 0;  // GPIO0 pin.
const int GPIO2 = 2;  // GPIO2 pin. this would be better if it were the RXD pin, it would make restarts with the door open possible...
void setup()
{
pinMode(garageDoorRelay, OUTPUT);
pinMode(GPIO2, OUTPUT); // to start with, it changes later...
Serial.begin(9600);
Serial.println("Booting...");
delay(2000);
//flash fast a few times to indicate CPU is booting
digitalWrite(GPIO2, LOW);
delay(100);
digitalWrite(GPIO2, HIGH);
delay(100);
digitalWrite(GPIO2, LOW);
delay(100);
digitalWrite(GPIO2, HIGH);
delay(100);
digitalWrite(GPIO2, LOW);
delay(100);
digitalWrite(GPIO2, HIGH);
Serial.println("Delaying a bit...");
delay(2000);
// Initialise wifi connection
wifiConnected = connectWifi();
if(wifiConnected){
//flash slow a few times to indicate wifi connected OK
digitalWrite(GPIO2, LOW);
delay(1000);
digitalWrite(GPIO2, HIGH);
delay(1000);
digitalWrite(GPIO2, LOW);
delay(1000);
digitalWrite(GPIO2, HIGH);
delay(1000);
digitalWrite(GPIO2, LOW);
delay(1000);
digitalWrite(GPIO2, HIGH);
upnpBroadcastResponder.beginUdpMulticast();

// Define your switches here. Max 10
// Format: Alexa invocation name, local port no, on callback, off callback
garagedooropen = new Switch("garage door open", 80, garageDoorOpenOn, garageDoorOpenOff);
garagedoorclose = new Switch("garage door close", 81, garageDoorCloseOn, garageDoorCloseOff);

Serial.println("Adding switches upnp broadcast responder");
upnpBroadcastResponder.addDevice(*garagedooropen);
upnpBroadcastResponder.addDevice(*garagedoorclose);

}
digitalWrite(garageDoorRelay, LOW); // turn off relay
digitalWrite(GPIO2, HIGH); // turn off LED

Serial.println("Making GPIO2 into an INPUT"); // used to detect garage door current state
pinMode(GPIO2, INPUT);
PrevGarageDoorState = GarageDoorState; // edge detection of garage door state

}
void loop()
{
GarageDoorState = digitalRead(GPIO2); //either GPIO 2 or RX Pin depending on variable used...
delay(100);
if (GarageDoorState == LOW) {
if (PrevGarageDoorState == HIGH){
Serial.println("GarageDoor State has just opened (Logic LOW)");
}
}
if (GarageDoorState == HIGH) {
if (PrevGarageDoorState == LOW){
Serial.println("GarageDoor State has just closed (Logic HIGH)");
}
}
PrevGarageDoorState = GarageDoorState;   // remember prev state for next pass
if(wifiConnected){
  upnpBroadcastResponder.serverLoop();

  garagedoorclose->serverLoop();
  garagedooropen->serverLoop();

}
}
bool garageDoorOpenOn() {
Serial.println("Request to Open door received ...");
  if (GarageDoorState == HIGH) { // only pulse relay if door is currently closed
      Serial.println("Door is closed - pulsing relay to open it");

      Serial.println("XXX Pulsing Relay on ...");
      digitalWrite(garageDoorRelay, HIGH); // turn on relay
      delay(2000);    ;
      Serial.println("XXX Pulsing Relay off again ...");
      digitalWrite(garageDoorRelay, LOW); // turn off relay
      }
  else {
      Serial.println("Door is already open - not pulsing relay!");
  }

isgarageDoorOpenOn = false;
return isgarageDoorOpenOn;

}
bool garageDoorOpenOff() { // nothing ever calls this....
Serial.println("Switch 1 turn off ...");
digitalWrite(garageDoorRelay, LOW); // turn off relay

isgarageDoorOpenOn = false;
return isgarageDoorOpenOn;

}
bool garageDoorCloseOn() {
Serial.println("Request to Close door received");
  if (GarageDoorState == LOW) { // only pulse relay if door is currently open
      Serial.println("Door is open - pulsing relay to close it");

      Serial.println("XXX Pulsing Relay on ...");
      digitalWrite(garageDoorRelay, HIGH); // turn on relay
      delay(2000);    ;
      Serial.println("XXX Pulsing Relay off again ...");
      digitalWrite(garageDoorRelay, LOW); // turn off relay
  }
  else {
      Serial.println("Door is already closed, not pulsing relay...");
  }

isgarageDoorCloseOn = false;
return isgarageDoorCloseOn;

}
bool garageDoorCloseOff() {  // nothing ever calls this....
Serial.println("Switch 2 turn off ...");
digitalWrite(garageDoorRelay, LOW); // turn off relay
isgarageDoorCloseOn = false;
return isgarageDoorCloseOn;
}
// connect to wifi – returns true if successful or false if not
boolean connectWifi(){
boolean state = true;
int i = 0;
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
Serial.println("");
Serial.println("Connecting to WiFi Network");
// Wait for connection
Serial.print("Connecting ...");
while (WiFi.status() != WL_CONNECTED) {
delay(5000);
Serial.print(".");
if (i > 10){
state = false;
break;
}
i++;
}
if (state){
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
}
else {
Serial.println("");
Serial.println("Connection failed. Bugger");
}
return state;
}

Cant use sinric, its not released in NZ. But its not the skill i am having an issue with, its the values returned to Alexa in the ESP-2866 code.
I want to return the state of GPIO2 (which i have read into the booleen  variable "GarageDoorState") to Alexa so it appears as the smart switch state.
"I am not sure what are you trying to do. Check whether sinric.com can
support"

Anything is possible given time and perseverance!
I had to hack switch.cpp about to do it, but Alexa is now getting her state of my garage door from the door position switch itself, not from the relaystate variable that tracks if the last command was an On or off.
I had to expose the garage door state to switch.cpp via an extern bool declaration ( GarageDoorState is defined in the main.ino) and then fire that Boolean state into the getbinarystate logic ( I just overwrote switchstatus)
This is really crude, but as I only have two controls on that ESP-01 (door open and door close) having the same door state sent back for both of them makes sense. It wouldn't work if you wanted to have several different inputs pins reporting for different functions.
While I was about it, I changed the door state to be read from the rx pin instead of GPIO2 - now the ESP-01 can startup reliably with  the garage door either open or shut. Previously, it would hang if it started with the door open.
Sent from my iPad

On 25/04/2018, at 5:35 PM, Aruna Tennakoon<EMAIL_ADDRESS>wrote:
Don't think it's possible
I am not sure what are you trying to do. Check whether sinric.com can
support
On Wed, Apr 25, 2018 at 12:12 PM Ynot1<EMAIL_ADDRESS>wrote:

―
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kakopappa/arduino-esp8266-alexa-multiple-wemo-switch/issues/48,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHIM5kFsD7FdbqElGeVhq1SP81UqT-z8ks5tsAXVgaJpZM4Tiyf2
.

―
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Add release version for the Helm CLI

This is an in-progress patch to add a version command to the Helm CLI. Currently, it only prints out the version for the CLI, not the Tiller version.
TODO:

[x] Build locally (as of this writing, still waiting for dependencies to download)
[ ] Depending on the answer to https://github.com/kubernetes/helm/issues/761#issuecomment-223055832, maybe implement the version RPC call on the Tiller server

Fixes https://github.com/kubernetes/helm/issues/761

@arschles -- you might want to check with @adamreese on this one. I think he might also be working on the same thing.

Thanks @technosophos. @adamreese thoughts on this PR? I'll defer to your work if it's ongoing.

Closing in favor of https://github.com/kubernetes/helm/pull/776


Platform-specific Input Manager

Adds a KeyBindingInputManager that can be configured on a per-platform basis, so that text manipulation etc. will use "native" key bindings.  Defaults to Windows-style but can be overridden.  The biggest change is in TextBox, where most of the functionality has been removed from OnKeyDown and moved to actions.

Added support for actions to be repeated (so that we can handle holding arrow keys, etc.)

Also fixed a bug with text boxes where moving a word a time would not skip multiple spaces.

The repeat logic you added only works for keyboard repeat. It's a bit misleading as the KeyBindingInputManager aims to combine all input into a single stream of events, yet mouse buttons etc. will not be affected.
Not sure how I feel about that.


Tighten return type of predict for KNNClassifier (model for testing)

Recall that MLJBase has its own local versions of models for testing. In some new tests in another PR, a small issue arises from the return type of KNNClassifier not being quite right, and this PR fixes this.
This only effects test code.

Codecov Report

Merging #566 (ba2b002) into dev (4b45255) will decrease coverage by 0.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev     #566      +/-   ##
==========================================
- Coverage   85.01%   84.92%   -0.10%
==========================================
  Files          36       36
  Lines        3049     3044       -5
==========================================
- Hits         2592     2585       -7
- Misses        457      459       +2

Impacted Files
Coverage Δ

src/measures/continuous.jl
97.70% <0.00%> (-2.30%)
:arrow_down:

src/measures/finite.jl
96.30% <0.00%> (-0.30%)
:arrow_down:

src/composition/learning_networks/nodes.jl
69.93% <0.00%> (-0.21%)
:arrow_down:

src/univariate_finite/types.jl
91.50% <0.00%> (+0.85%)
:arrow_up:

Continue to review full report at Codecov.

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


How to decouple dedicate index storage by project?

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.2.0, running on VMs
Describe the issue:
Hi ,
I push all applicative logs on 3 Opensearch nodes
Everything is working perfectly fine for 1 year now.
We would need to push logs from our APIC Tools : but its 10 X more  logs than the applicative logs.
We would like to be able to make these logs available in the same Opensearch Instance
But without compromising our applicative indexes.
We would like to set the shards routing properly to fullfill our needs
And we wonder how we can implement it properly.
In other words we wonder how we can set Opensearch Worker nodes to store exclusively

applicative shards ( master / replicas )
APIC  shards  ( master  / replicas )

Is is possible to decouple Worker nodes

some nodes would be dedicated to Applicative shards storing
the others nodes would be dedicated  to  APIC shards storing

Should  I set a different rack for each worker node in conf ( applicative   rack or  apic rack ) as follow :
node.attr.rack_id: rack_applicative
or
node.attr.rack_id: rack_apic
And then set explicitly  for any kind of indexes where he should be  stored ?
as follow :
to force the index routing for a test index to be stored on applicative rack nodes for example :
PUT test/_settings
{
"index.routing.allocation.require.rack": "rack_applicative"
}
Is it a good solution ? is there an other way ?
Thank you for support

Should I set a different rack for each worker node in conf ( applicative rack or apic rack ) as follow :
node.attr.rack_id: rack_applicative
or
node.attr.rack_id: rack_apic
And then set explicitly for any kind of indexes where he should be stored ?
as follow :
to force the index routing for a test index to be stored on applicative rack nodes for example :

PUT test/_settings
{
"index.routing.allocation.require.rack": "rack_applicative"
}

@kristoflarcher  -- yes, I believe you are correct. Attribute-based routing allows you to balance shards for an index across a subset of nodes, or, as you suggest, partition your indices into different subsets of nodes.
It also allows you to do some neat things with heterogeneous clusters (e.g. maybe some nodes have GPUs so you can route indices that need GPU-based operations to those nodes).


Integration Testing

Scenarios already covered in https://github.com/microsoftgraph/entra-powershell/pull/1028


[Bug]: Reset the newsletter form after submission

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
once we subscribe the newsletter form it's a good practice to reset the form
Add ScreenShots
No response
What browsers are you seeing the problem on?
No response
Record

[X] I agree to follow this project's Code of Conduct
[ ] I'm a WOB contributor
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.

@panwar8279 please assign this issue to me under gssoc

Gentle Reminder 🚨🚨
GSSoC-Ext 24 is going to complete in 2 Days. '
Complete your assigned Issues and PR reviews before time to get Points on Leaderboard. '
It was a great experience working with you all, Don't forget to ⭐ star the Repo (only 12 with 62 forks 💔) .
Thanks💗 for your valuable contributions!

Gentle Reminder 🚨🚨
PA and Mentor nominations have been started for GSSoC-Ext 2k24. '
Do share your experiences and connect on Socials. '
It was a great experience working with you all
Thanks💗 for your valuable contributions!


onDBChange infinite loop

I am writing an angularjs app using Taffydb for data manipulation and storage in the front end. Since there is no trigger to update the scope for angular in taffy, and watches will not function reliably with the structure of the taffy objects, I have set up onDBChanges for each taffy table we are using. The issue comes when the function to update a table uses a join on another taffy table. It seems that the join is triggering a change event, even when no data changes. i.e.:
$scope.updaterOne = function(){
       $scope.variabeOne = $scope.taffyTableTwo(filterField:value).order("id2 asec").join($scope.taffyTableOne,['id2','id1']).distinct('id1')
}

$scope.taffyTableOne = TAFFY(dataOne);
$scope.taffyTableTwo = TAFFY(dataTwo);

$scope.taffyTableOne.settings({
       onDBChange:function(){$scope.updaterOne();}
});

$scope.taffyTableOne.insert(newData);

In that example, when taffyTableOne is changed it triggers the updaterOne function to update the variableOne variable for angular. This then updates the scope and everything goes fine, but having that join also quietly re-triggers the onDBChange for taffyTableOne (the joined table specifically, not the initial table for the join), which will then infinitely loop as every trigger ends up re-triggering itself.
This isn't noticed at first in the app since the scope updates but there was no change so there is no change reflected in the data on screen, but very quickly you wind up grinding the browser to a halt with infinite loops running in parallel as you move within the app.
I am currently looking at boolean flags I can feed to the onDBChange function to prevent the loop, but this seems like unexpected behaviour as no changes to the data were made, and onDBChange does not typically trigger for a simple query of the data.

I have verified that the join is the trigger and that the only way to keep it is with multiple nested timeouts to set and reset boolean flags to prevent the re-triggering. The current workaround we are using is to set each section we are needing into separate local variables and then writing our own joins. Once the Taffydb joins are removed all multiple onDBChange calls are stopped.


WEBAPP-67: Show js disabled ie deprecated warning

This pull request belongs to an issue on our bugtracker.
You can find it there by looking for an issue with the key which is mentioned in the title of this pull request.
It starts with the keyword WEBAPP.

Wow, that is funny^^ That's because NoScript (the addon) replaces <noscript> tags with a span tag (and therefore the styles don't apply any longer)^^. Will adjust it.


[MM-60613] Add Desktop App Metrics dashboard

Summary
This is the initial PR for the Desktop App metrics dashboard, currently just measuring CPU and memory usage.
Ticket Link
https://mattermost.atlassian.net/browse/MM-60613

Just a couple of questions here:

I see that the labels are platform and version. So this would probably help us to track down performance regressions by version, which would be a great start. But the user's environment also constantly changes. So if a user has a new (and more powerful) laptop when they use a newer app version, this would mask any regression.
It would be good to add thresholds to each panel so that customers know what is good and what is bad.
We should have a clear set of "actionable" steps to identify a regression and act on it.

cc @lieut-data for any comments.

I see that the labels are platform and version. So this would probably help us to track down performance regressions by version, which would be a great start. But the user's environment also constantly changes. So if a user has a new (and more powerful) laptop when they use a newer app version, this would mask any regression.

This would only be the case if they were to switch operating environments as well though, which for Desktop App might change the behaviour of the app a fair bit. If we're looking for regression in the app in general, we can just filter by All and see everything, which for issues with our code will be likely what we're looking for.

It would be good to add thresholds to each panel so that customers know what is good and what is bad.

You're right, but unfortunately I don't fully know yet what is good or bad for the average user. I can say on my personal machine that using 1-2% seems reasonable, but I'm not sure if that's true across the board. It also depends on what the user is actually doing at the time.
I want to get a better picture with more users submitting data before I make a decision of what's a good number. Similar to how I did with notifications.

We should have a clear set of "actionable" steps to identify a regression and act on it.

This I am working on for support - so they can at least rule out variables that aren't us. Would you say those steps live here? I'd think they should live somewhere - maybe Confluence or something.

@larkox Good to publish when you're ready :)


Can add Background images to train? How?

Hi YunYang,
Good job!
How to added background image to train?
Is it added the background image path the the train.txt and not providing the box and class information?
Thanks

Hi @billxljin
Were you able to figure how to do it?
Thanks.

Hi @billxljin
Were you able to figure how to do it?
Thanks.


ENG-6730 call in progress spike

Not to be merged- Listener added to example app to log state changes in phone call status.

Work is captured in https://github.com/Neuro-ID/neuroid-android-sdk/pull/251


与gpt对话示例，很久才返回结果，后台报错信息如下

**  网络梯子部署OK的，容器内访问Openapi网址也没有问题的。详情日志见附件
[2024-03-07 22:29:53.307336] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:54.773729] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:55.310765] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:56.777467] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:57.104199] [ERROR process-9-140461729638080 bisheng.processing.base:32] - trace=None Error communicating with OpenAITraceback (most recent call last):
                           File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 992, in _wrap_create_connection
                             return await self._loop.create_connection(*args, **kwargs)
                                          |    |     |                  |       -> {'ssl': <ssl.SSLContext object at 0x7fbfd0c5df40>, 'family': <AddressFamily.AF_INET: 2>, 'proto': 6, 'flags': <AddressInfo.AI...
                                          |    |     |                  -> (functools.partial(<class 'aiohttp.client_proto.ResponseHandler'>, loop=<uvloop.Loop running=True closed=False debug=False>),...
                                          |    |     -> <method 'create_connection' of 'uvloop.loop.Loop' objects>
                                          |    -> <uvloop.Loop running=True closed=False debug=False>
                                          -> <aiohttp.connector.TCPConnector object at 0x7fbfd153c190>
                           File "uvloop/loop.pyx", line 2039, in create_connection
                             raise exceptions[0]
                           File "uvloop/loop.pyx", line 2016, in uvloop.loop.Loop.create_connection
                             await waiter

                         TimeoutError: [Errno 110] Connection timed out

                         The above exception was the direct cause of the following exception:

                         Traceback (most recent call last):

                           File "/usr/local/lib/python3.10/site-packages/openai/api_requestor.py", line 668, in arequest_raw
                             result = await session.request(**request_kwargs)
                                            |       |         -> {'method': 'post', 'url': 'https://api.openai.com/v1/chat/completions', 'headers': {'X-OpenAI-Client-User-Agent': '{"bindings...
                                            |       -> <function ClientSession.request at 0x7fbfea4c3490>
                                            -> <aiohttp.client.ClientSession object at 0x7fbfd153d9c0>
                           File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 578, in _request
                             conn = await self._connector.connect(
                                          |    -> None
                                          -> <aiohttp.client.ClientSession object at 0x7fbfd153d9c0>
                           File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect
                             proto = await self._create_connection(req, traces, timeout)
                                           |    |                  |    |       -> ClientTimeout(total=600, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5)

error.txt
                                   -> <module 'openai.error' from '/usr/local/lib/python3.10/site-packages/openai/error.py'>

                         openai.error.APIConnectionError: Error communicating with OpenAI

[2024-03-07 22:29:57.218992] [DEBUG process-9-140461729638080 bisheng.api.v1.callback:287] - trace=None on_chain_start inputs={'input': '你是谁', 'history': ''}

Entering new ConversationChain chain...
[2024-03-07 22:29:57.221351] [INFO process-9-140461729638080 bisheng.api.v1.callback:309] - trace=None Prompt after formatting:
The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.

                         Current conversation:

                         Human: 你是谁
                         AI:

Prompt after formatting:
The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.
Current conversation:
Human: 你是谁
AI:
[2024-03-07 22:29:57.227126] [DEBUG process-9-140461729638080 bisheng.api.v1.callback:306] - trace=None on_chat result=[[HumanMessage(content='The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI
does not know the answer to a question, it truthfully says it does not know.\n\nCurrent conversation:\n\nHuman: 你是谁\nAI:')]]
[2024-03-07 22:29:57.233682] [DEBUG process-9-140461729638080 openai.util:60] - trace=None message='Request to OpenAI API' method=post path=https://api.openai.com/v1/chat/completions
[2024-03-07 22:29:57.235616] [DEBUG process-9-140461729638080 openai.util:60] - trace=None api_version=None data='{"messages": [{"role": "user", "content": "The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context.
If the AI does not know the answer to a question, it truthfully says it does not know.\n\nCurrent conversation:\n\nHuman: \u4f60\u662f\u8c01\nAI:"}], "model": "gpt-3.5-turbo-16k-0613", "stream": true, "n": 1, "temperature": 0.7}' message='Post details'
[2024-03-07 22:29:57.240239] [DEBUG process-9-140461729638080 urllib3.util.retry:282] - trace=None Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
[2024-03-07 22:29:57.244441] [DEBUG process-9-140461729638080 urllib3.connectionpool:1055] - trace=None Starting new HTTPS connection (1): api.openai.com:443
[2024-03-07 22:29:57.314024] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:58.424105] [DEBUG process-9-140461729638080 urllib3.connectionpool:549] - trace=None https://api.openai.com:443 "POST /v1/chat/completions HTTP/1.1" 200 None
[2024-03-07 22:29:58.427627] [DEBUG process-9-140461729638080 openai.util:60] - trace=None message='OpenAI API response' path=https://api.openai.com/v1/chat/completions processing_ms=239 request_id=req_f938ec6f8f35653fd74051e0f34e53bc response_code=200
[2024-03-07 22:29:58.781327] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:59.317093] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:59.377328] [DEBUG process-9-140461729638080 bisheng.api.v1.callback:291] - trace=None on_chain_end outputs={'response': '我是一个AI助手，被称为GPT-3。我是由OpenAI开发的人工智能模型。我可以回答各种问题，提供信息和建议。请问有什么我可以帮助你的吗？'}

Finished chain.
[2024-03-07 22:30:00.384149] [DEBUG process-9-140461729638080 bisheng.chat.utils:46] - trace=None Generated result and intermediate_steps
[2024-03-07 22:30:00.389552] [INFO process-9-140461729638080 bisheng.chat.handlers:38] - trace=None dispatch_task done timecost=137.8565034866333
[2024-03-07 22:30:00.784964] [DEBUG process-9-140465245408128 bisheng.chat.manager:245] - trace=None task_complete key=be7522ca-3066-4d42-8f89-bc91547a5d4a_None_None

报错是和openai 建立连接出错，最后重试又成功了。 这个现象是必现吗？


error in everything

hi ,
I create image_data:text filed as shrine guides. mount image uploader, create shrin rb and set filesystem storage.
file upload and dont go in public , they go to /tmp
when i want to show error happend and said:
784: unexpected token at '#ActionDispatch::Http::UploadedFile:0x000000038dd580'
in consol i write
@book.image_url
and get this error
JSON::ParserError: 784: unexpected token at '#ActionDispatch::Http::UploadedFile:0x000000038dd580'

as articles i read shrine is new and best solution but lack of tutorial.
tanks

@armanlearn Are you sure you did exactly as in the "quick start" section in the README? It seems that you've ended up with #ActionDispatch::Http::UploadedFile:0x000000038dd580 assigned to your image_data column as a string. That's why the JSON parsing is failing, because it tries to parse that string as JSON.
You probably create a form field for image_data instead of image. You cannot assign files to the image_data column, because it's a text column, it's what Shrine uses internally to store the uploaded file data. You need to use Shrine's image virtual attribute that was added to your model by Shrine's attachment module. That is documented in the "quick start" section of the README.
Note that as per contribution guidelines, if you're not sure that something is a bug, it's better to first report it to the Shrine google group.


NewPR

@wilsonGmn Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.


T4 template transformation not generating xxRow.IsActiveProperty for IsActive column

If my table has an IsActive column (tried with bit and tinyint), after transforming the T4 template, it generates this on the grid.cs: IsActiveProperty(xxxRow.IsActiveProperty)]
except it never generated xxxRow.IsActiveProperty.
Doesn't appear tied to datatype (tried bit and tinyint) or NOT NULL. Is IsActive some kind of Serenity keyword that should be avoided in the db? Here's an example table script:
CREATE TABLE [dbo].[xxx]( 	[ID] [int] IDENTITY(1,1) NOT NULL,	 	[IsActive] [tinyint],  CONSTRAINT [PK_xxx] PRIMARY KEY CLUSTERED  ( 	[ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]

IsActiveProperty is only generated for rows implementing IIsActiveRow interface. Does your implement this?

No, here's the class signature:
public sealed class ReviewerRow : Row, IIdRow, INameRow
The table it was generated from has an IsActive column though.

So use a Int16 field in row and implement IIsActiveRow if you want it to generate IsActiveProperty.

So I guess the bug is that it added the reference to the property on grid.cs which doesn't exist. But I'm curious as to what IsActive means in the context of Serenity. Why would I want to implement IIsActiveRow? What does that do? I don't see a reference to it in the developer guide.

It allows grid to show inactive records as gray. If you don't need this or want to implement manually no need. Actually row should be generated with IIsActiveRow interface in your case but somehow its missing from the row template in code generator. This is probably a bug that i should have a look at.

Good to know, and that sounds very useful. I'll go ahead and implement it :+1:

Yes, I experienced the same issue, I have to remove the attribute from the Service Contract class when I transform the templates.

I decided, sergen shouldn't try to determine IIsActiveRow and it no longer adds IsActiveProperty to dialog / grid. If somebody wants it, can add interface manually.
b8c7967f3427ca4bfd58965446557e5081b08571


🐛 BUG: wrangler pages deploy causes GET /memberships -> 502 Bad Gateway

Which Cloudflare product(s) does this pertain to?
Pages
What version(s) of the tool(s) are you using?
3.15.0
What version of Node are you using?
v18.16.0
What operating system are you using?
Mac
Describe the Bug
When running astro build && wrangler pages deploy ./dist the below error occurs.
Note: My Cloudflare user account does not have Super Admin / Membership access.
Is access to Membership management required to deploy to pages? If so, why?
✘ [ERROR] Received a malformed response from the API

  <!DOCTYPE html>
  <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
  <!--[if I... (length = 6420)

  GET /memberships -> 502 Bad Gateway

Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
Full error log
> astro build && wrangler pages deploy ./dist

06:49:46 PM [@astrojs/cloudflare] The current configuration does not support image optimization. To allow your project to build with the original, unoptimized images, the image service has been automatically switched to the 'noop' option. See https://docs.astro.build/en/reference/configuration-reference/#imageservice
06:49:46 PM [content] No content directory found. Skipping type generation.
06:49:46 PM [build] output target: server
06:49:46 PM [build] deploy adapter: @astrojs/cloudflare
06:49:46 PM [build] Collecting build info...
06:49:46 PM [build] Completed in 46ms.
06:49:46 PM [build] Building server entrypoints...
06:49:47 PM [build] Completed in 735ms.

 building client
vite v4.5.0 building for production...
✓ 3 modules transformed.
dist/_astro/hoisted.3d6afadb.js  10.21 kB │ gzip: 4.18 kB
✓ built in 37ms
Completed in 39ms.

 finalizing server assets

06:49:47 PM [build] Rearranging server assets...
06:49:47 PM [build] Server built in 0.88s
06:49:47 PM [build] Complete!

✘ [ERROR] Received a malformed response from the API

  <!DOCTYPE html>
  <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
  <!--[if I... (length = 6420)

  GET /memberships -> 502 Bad Gateway

  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/workers-sdk/issues/new/choose

This is likely a consequence of https://www.cloudflarestatus.com/incidents/hm7491k53ppg—could you try again?
If it's not resolved, feel free to comment with more details (error logs etc...) and we can investigate further


Provide built-in type definitions for Apollo framework

Describe the bug
Getting the above error, which was unexpected since the Release Notes state: Fixed displaying Apollo @client fields as errors.
To Reproduce
https://github.com:raarts/graphql-plugin-error
(See DarkMode.tsx)
Expected behavior
No error.
Version and Environment Details
Operation system: MacOS 11.5.2 Big Sur
IDE name and version: WebStorm 2021.2.1 Build #WS-212.5080.54
Plugin version: 3.0.0 (fresh install)
Additional context
Only using local fields so far.

Hi! You can define a client directive somewhere in the .graphql file in your project (or in the schema file specified in your .graphqlconfig) like directive @client on FIELD and it will work. We don't provide directives for frameworks except for Relay and built-in ones yet, framework detection and providing type definitions are in the roadmap.
If we talk about what is written in the release notes, it was meant that the presence of such a directive prevents marking a corresponding field as unresolved (before / after on the screenshot).

This is how it looks when a directive is defined:

Works. Thanks!

Great! I'll reopen it to track any further progress on that.


Feature: Want to change the effect and colour of the website

Change the transition effect , font size, and colour
Thank you for viewing my issue

could you give me some sample or what effect and styling you plan to implement.

I have no sample
On Thu, 10 Oct 2024, 6:25 am Dipanita Mondal, @.***>
wrote:

Please assign it to me
On Wed, 9 Oct 2024, 9:24 am Sanjay Viswanathan, @.***>
wrote:

could you give me some sample or what effect and styling you plan to
implement.
—
Reply to this email directly, view it on GitHub
https://github.com/recodehive/awesome-github-profiles/issues/703#issuecomment-2401219556,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7SRZ6AVSW23BHHVTXPKOFTZ2SSGTAVCNFSM6AAAAABPTNNHCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBRGIYTSNJVGY
.
You are receiving this because you authored the thread.Message ID:
@.***>

Please assign me
On Thu, 10 Oct 2024, 6:25 am Dipanita Mondal, @.***>
wrote:

I have no sample
On Thu, 10 Oct 2024, 6:25 am Dipanita Mondal, @.***>
wrote:

Please assign it to me
On Wed, 9 Oct 2024, 9:24 am Sanjay Viswanathan, @.***>
wrote:

could you give me some sample or what effect and styling you plan to
implement.
—
Reply to this email directly, view it on GitHub
https://github.com/recodehive/awesome-github-profiles/issues/703#issuecomment-2401219556,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7SRZ6AVSW23BHHVTXPKOFTZ2SSGTAVCNFSM6AAAAABPTNNHCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBRGIYTSNJVGY
.
You are receiving this because you authored the thread.Message ID:
@.***>


Pinouts for Adafruit Bluefruit  LE SPI Friend

https://github.com/sandeepmistry/arduino-BLEPeripheral/blob/master/examples/Eddystone/EddystoneUID/EddystoneUID.ino
The example here shows:
// define pins (varies per shield/board)
//
//   Adafruit Bluefruit LE   10, 2, 9
//   Blend                    9, 8, UNUSED
//   Blend Micro              6, 7, 4
//   RBL BLE Shield           9, 8, UNUSED

Looking at the Bluefruit LE SPI Friend the names don't all line up and I don't have enough knowledge to know how they map:
https://learn.adafruit.com/introducing-the-adafruit-bluefruit-spi-breakout/introduction
Available SPI Pins:

SCK
MISO
MOSI
CS
IRQ

I am trying to fulfill:
#define EDDYSTONE_BEACON_REQ
#define EDDYSTONE_BEACON_RDY
#define EDDYSTONE_BEACON_RST

On the SPI Friend Board my best guesses:
RST is RST (Marked on the board)
RDY is IRQ?
REQ is ???

This might be answered here:
https://github.com/sandeepmistry/arduino-BLEPeripheral/issues/34
https://github.com/sandeepmistry/arduino-BLEPeripheral/issues/69
AKA out of luck

@aventurella that's correct unfortunately.
If you have a J-Link, CMSIS-DAP, or STLink flasher you can try to flash it from the Arduino IDE using: https://github.com/sandeepmistry/arduino-nRF5
I'll add a warning to the read me to mentioned those boards from Adafruit are NOT supported.


Upload API not working

Must be related to the API gateway configuration, the call currently fails on the preflight request

Base URL for API in .env incorrect. App was just hitting the wrong address.


fix($location): strip off empty hash segments when comparing

Backported from e93710fe0e4fb05ceee59a04f290692a5bec5d20
The url is the same whether or not there is an empty # marker at the end.
This prevents unwanted calls to update the browser, since the browser is
automatically applying an empty hash if necessary to prevent page reloads.
Closes #9635

Close in favour of #10748 . Sorry for the disagreement.