Fixed build issues (Windows and Linux)

Hi @ryanjon2040 really sorry to bother you again. In my last pull request I realized I may have accidentally removed some very important include statements that I just readded. Thank you for your patience.

I realized after updating the DLL and lib files that they now depend on some other DLL and lib files, but I'm having trouble linking those dependencies. I have added those dependencies to the third-party/win64 folder.

Confirmed that the client sdk works for windows aka it builds/compiles successfully. Now going to test Linux.

Can confirm that the client sdk builds for both windows and linux. Going to add stuff to https://github.com/chris-gong/gamelift-example-ue4 to check that everything works with the GameLift servers.

Hi @chris-gong We've sent you an invite to join this organization. 😃

Currently, the sdk in this pull request is not testable in the unreal engine editor so the game would have to be package d to test the client sdk. I only did this because this is how the gamelift server sdk does it, but I am thinking of reverting it back to where the client sdk was testable in the unreal engine editor.

It seems that after updating the Linux library files, that I am missing two .so dependencies. These include libcrypto.so and libssl.so

Because I am unable to get it working for linux, at least to cross compile from windows, I will keep it so that the client is not testable in the engine editor. My objective now is to make sure that I can package a functioning windows client without the gamelift client dependencies from interfering with a linux server build uploaded to gamelift.

Hey @chris-gong,
In the pursuit of solving this issue I cloned your branch and build it on/for windows x64 without too many issues for the base functionality.
But if I try to use constructors like:
 Aws::GameLift::Model::CreateGameSessionQueueRequest(), Aws::GameLift::Model::GameSessionQueueDestination::GameSessionQueueDestination(),  or Aws::Vector  the build fails with unresolved external symbols:
error LNK2019: unresolved external symbol "__declspec(dllimport) void * __cdecl Aws::Malloc(char const *,unsigned __int64)" (__imp_?Malloc@Aws@@YAPEAXPEBD_K@Z) referenced in function "private: bool __cdecl std::vector<class Aws::GameLift::Model::GameSessionQueueDestination,class Aws::Allocator<class Aws::GameLift::Model::GameSessionQueueDestination> >::_Buy(unsigned __int64)" (?_Buy@?$vector@VGameSessionQueueDestination@Model@GameLift@Aws@@V?$Allocator@VGameSessionQueueDestination@Model@GameLift@Aws@@@4@@std@@AEAA_N_K@Z)

error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl Aws::Free(void *)" (__imp_?Free@Aws@@YAXPEAX@Z) referenced in function "public: __cdecl std::vector<class Aws::GameLift::Model::GameSessionQueueDestination,class Aws::Allocator<class Aws::GameLift::Model::GameSessionQueueDestination> >::~vector<class Aws::GameLift::Model::GameSessionQueueDestination,class Aws::Allocator<class Aws::GameLift::Model::GameSessionQueueDestination> >(void)" (??1?$vector@VGameSessionQueueDestination@Model@GameLift@Aws@@V?$Allocator@VGameSessionQueueDestination@Model@GameLift@Aws@@@4@@std@@QEAA@XZ)

error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Aws::GameLift::Model::GameSessionQueueDestination::GameSessionQueueDestination(void)" (__imp_??0GameSessionQueueDestination@Model@GameLift@Aws@@QEAA@XZ) referenced in function "public: void __cdecl UT_GameInstance::StartQuickPlaySearch(void)" (?StartQuickPlaySearch@UT_GameInstance@@QEAAXXZ)

error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Aws::GameLift::Model::GameSessionQueueDestination::SetDestinationArn(char const *)" (__imp_?SetDestinationArn@GameSessionQueueDestination@Model@GameLift@Aws@@QEAAXPEBD@Z) referenced in function "public: void __cdecl UT_GameInstance::StartQuickPlaySearch(void)" (?StartQuickPlaySearch@UT_GameInstance@@QEAAXXZ)

error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Aws::GameLift::Model::GameSessionQueueDestination::~GameSessionQueueDestination(void)" (__imp_??1GameSessionQueueDestination@Model@GameLift@Aws@@QEAA@XZ) referenced in function "public: __cdecl std::_Uninitialized_backout_al<class Aws::GameLift::Model::GameSessionQueueDestination *,class Aws::Allocator<class Aws::GameLift::Model::GameSessionQueueDestination> >::~_Uninitialized_backout_al<class Aws::GameLift::Model::GameSessionQueueDestination *,class Aws::Allocator<class Aws::GameLift::Model::GameSessionQueueDestination> >(void)" (??1?$_Uninitialized_backout_al@PEAVGameSessionQueueDestination@Model@GameLift@Aws@@V?$Allocator@VGameSessionQueueDestination@Model@GameLift@Aws@@@4@@std@@QEAA@XZ)

error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Aws::GameLift::Model::GameSessionQueueDestination::GameSessionQueueDestination(class Aws::GameLift::Model::GameSessionQueueDestination const &)" (__imp_??0GameSessionQueueDestination@Model@GameLift@Aws@@QEAA@AEBV0123@@Z) referenced in function "private: void __cdecl std::vector<class Aws::GameLift::Model::GameSessionQueueDestination,class Aws::Allocator<class Aws::GameLift::Model::GameSessionQueueDestination> >::_Range_construct_or_tidy<class Aws::GameLift::Model::GameSessionQueueDestination const *>(class Aws::GameLift::Model::GameSessionQueueDestination const *,class Aws::GameLift::Model::GameSessionQueueDestination const *,struct std::forward_iterator_tag)" (??$_Range_construct_or_tidy@PEBVGameSessionQueueDestination@Model@GameLift@Aws@@@?$vector@VGameSessionQueueDestination@Model@GameLift@Aws@@V?$Allocator@VGameSessionQueueDestination@Model@GameLift@Aws@@@4@@std@@AEAAXPEBVGameSessionQueueDestination@Model@GameLift@Aws@@0Uforward_iterator_tag@1@@Z)

error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Aws::GameLift::Model::CreateGameSessionQueueRequest::CreateGameSessionQueueRequest(void)" (__imp_??0CreateGameSessionQueueRequest@Model@GameLift@Aws@@QEAA@XZ) referenced in function "public: void __cdecl UT_GameInstance::StartQuickPlaySearch(void)" (?StartQuickPlaySearch@UT_GameInstance@@QEAAXXZ)

error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl Aws::GameLift::Model::CreateGameSessionQueueRequest::~CreateGameSessionQueueRequest(void)" (__imp_??1CreateGameSessionQueueRequest@Model@GameLift@Aws@@UEAA@XZ) referenced in function "public: void __cdecl UT::StartQuickPlaySearch(void)" (?StartQuickPlaySearch@UT_GameInstance@@QEAAXXZ)

Did you miss some header files potentially?
Just a note: the call to Aws::Vector throwing the Malloc and Free unresolved external symbols also occurs on the version of this plugin that you used for your tutorial. This is at the core of this issue that I posted.
Any help on this would be very much appreciated. Cheers!

Hi @wylie-modro I will take a look tonight.

@chris-gong Did you get anytime to look into this? Posted on the AWS GameTech forum as well, but seem to be stuck on it.

Hey @wylie-modro, could you play around with the latest version of this pull request? It seems that I was able to get it working when you build and package in Development Client mode for Windows. It doesn't seem to work for Linux but since the code only compiles in client mode, it shouldn't conflict with a Linux server build. However when packaging the game in client mode, make sure to add the compiled DLLs from plugin/binaries to Windowsclientbuild/game/binaries

What's about this?


sum(value) is multiplied by "group by time()"

I was searching for an answer for the question from here #728, when sum(value) is multiplied if the group by time() value is multiplied
As you know, Grafana supports dynamic "group by time" to reduce the load on the server if you look at the data like last ~24 hours.. (my data is gathered every 3 sec)
I cannot use continues queries because all dashboards are generated on the fly based on passed args, and these args are used to query InfluxDB..
Thus, if I need to get  select sum(value) from /server.*.connections/ group by time($INTERVAL) where $INTERVAL could be between 3s and 1min, all graphs displayed different data that has been multiplied by $INTERVAL..
How can I display the same SUM for different $INTERVAL?

is there now a solution to this ?

I'd be interested in finding a solution for this as well...

Any solution to this?

you can use $__interval_ms and the math functions in grafana.
https://github.com/grafana/grafana/issues/7190


Test failures on Linux with Swift 5.1

Test Suite 'All tests' failed at 2019-10-03 01:42:59.264
	 Executed 25 tests, with 49 failures (4 unexpected) in 11.323 (11.323) seconds

Linux + Swift 5.0 is OK
macOS + Swift 5.1 is OK
Appears to involve PostgresTimeWithTimeZone.

Traced to a regression in Foundation on Linux.  See https://bugs.swift.org/browse/SR-11569.


Underidentification with unit FE

Dear David, dear Bradley,
I would like to estimate the model including unit fixed effects instead of cohort fixed effects (i.e. add_units_fes = TRUE). I am aware that the identification of dynamic effects becomes more difficult in that case. I would like to follow Borusyak & Jaravel (2017), Abraham & Sun (2019), and Schmidheiny & Siegloch (2019) and impose more restrictions in the fully dynamic specification to address underidentification by choosing at least two omitted event time periods.
In my case, I have a panel with individuals observed from up to 24 time periods before to up to 12 time periods after the event (lags=t-E ranges from from -24 to 12). All individuals are treated at some point. I am interested in estimating the dynamic effects for the lags -12 to 12. I would like to normalize relative to lag -4 and additionally exclude indicators for periods more than 12 periods before the event.
I tried to omit more than one event time categories using your command but it was not possible. Is there a way to exclude more than one time period category? Or another way to use your command to implement the described specification?
Thanks in advance
Julia

Hi @juliaschmieder, the issue you describe of underidentification does not arise in the package under the identifying assumptions of parallel trends and no anticipation. Given the structure (it stacks every possible cohort-specific DiD sample), setting add_unit_fes = TRUE amounts to requiring that each cohort-specific DiD sample is fully balanced on the unit FE. Relatedly, there is no need to omit more than your preferred normalization year (-4).
Setting the normalization period to -4 can be done with omitted_event_time = -4.

Hi @juliaschmieder, I am closing this for now, but if my prior response to not address your question, please feel free to reopen this issue.


Remove -c option from readme.md

With issue #93 the -c option was removed, but the readme.md was not updated with this information. Please remove the -c option from the document.

Thanks!


load textmate properly

use the loadCoreModule function mentioned in: https://github.com/Microsoft/vscode/issues/46281

I am not familiar with the code base enough to test it. Please help, contact me if you need more fixes.


Improve edgecon_state sync performance

Background
Within a frontend connection (edgecon), the user could set module aliases and session-level configs. These are called the (edgecon) "state" in code and available throughout the lifecycle of the frontend connection. The state takes effect in queries by 1) setting its values into a temporary table _edgecon_state in the backend connection (pgcon) used by the frontend connection, and 2) calling pg_catalog.set_config() in Postgres.
As a frontend connection may use different backend connections for different queries (when not in a transaction), the frontend connection needs to do a "state sync" before running the query on the backend connection. Currently, this is always done when running a query outside of a transaction, and it's done in a reset-and-recreate way which is taking about 200 microseconds.
Queries from extensions (like the EdgeQL over HTTP extension) are not currently doing state sync, because they are usually ad-hoc. The module alias is probably not an issue because the compiling step will fail if the query is trying to use an alias only in the state, but the session-level config - if didn't reset - will affect the queries, like the query_execution_timeout config.
Action Items

Skip state sync if the state in pgcon is identical to dbview
Change state sync to applying the diff instead of resetting everything
Pin pgcon to edgecon "softly" outside of a tx if state in dbview is not the default one, so it's more likely to reuse the pgcon with the same state
Reset session config for queries from extensions

Change state sync to applying the diff instead of resetting everything

I think this is an unnecessary complication. RESET should be fine and most connections won't change the state.


1.1.3 tagging

The 1.2 release is due soon, see milestone/1.2
@doutriaux1 once v1.2 has been tagged, we'll need to:

[ ] Validate version info is correctly written (version indicated v1.1.3)
[ ] Set all CDAT dependencies to v2.12 in meta.yaml
[ ] Obtain zenodo DOI
[ ] Finalise README.md with updated DOI
[ ] Move tag point to new commit
[ ] Generate conda release and update https://anaconda.org/PCMDI/pcmdi_metrics/files
[ ] Update wiki so correct paths are noted (for test cases, demos etc)
[ ] After tag point set, reset all checkout tagpoints to point back to master or nightly development tags (metrics, UV-CDAT)

@gleckler1 we will need to:

[ ] "Tag" obs v1.2
[ ] "Tag" model clims v1.2
[ ] Regenerate all CMIP5/3 library jsons (using version v1.2 of the PMP and PMPObs; while this is being done it would also be wise to generate the same json libraries for previous official releases 1.1.2, 1.1, PCMDI Metrics Initial Release/1.0.0)

Is there anything else?

@doutriaux1 @durack1 updated check list note addition for ENSO metrics

[ ] Validate version info is correctly written (version indicated v1.1.3)
[ ] Set all CDAT dependencies to CDAT8 in meta.yaml
[ ] Obtain zenodo DOI
[ ] Finalise README.md with updated DOI
[ ] Move tag point to new commit
[ ] Generate conda release and update https://anaconda.org/PCMDI/pcmdi_metrics/files
[ ] Update wiki so correct paths are noted (for test cases, demos etc)
- [ ] Include https://github.com/eguil/ENSO_metrics in PMP-forge

After tag point set, reset all checkout tagpoints to point back to master or nightly development tags (metrics, UV-CDAT)

This seems outdated. @durack1 @gleckler1 can we close this issue as part of housekeeping effort?

Ok to close
From: Jiwoo Lee<EMAIL_ADDRESS>Reply-To: PCMDI/pcmdi_metrics<EMAIL_ADDRESS>Date: Wednesday, October 23, 2019 at 9:56 AM
To: PCMDI/pcmdi_metrics<EMAIL_ADDRESS>Cc: gleckler1<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [PCMDI/pcmdi_metrics] 1.1.3 tagging (#516)
This seems outdated. @durack1https://github.com/durack1 @gleckler1https://github.com/gleckler1 can we close this issue as part of housekeeping effort?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/PCMDI/pcmdi_metrics/issues/516?email_source=notifications&email_token=ABCXVLOKL5C2BQA3AQ35NHTQQB635A5CNFSM4EE2IK5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECCEDSI#issuecomment-545538505, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABCXVLOYNB3C2MAAOWFJAWLQQB635ANCNFSM4EE2IK5A.

It'd be useful to replicate the list of release bullets as noted above for future releases. It was laid out as a step-by-step so we didn't miss anything in the release recipe


cproto: 4.7t -> 4.7u

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/cproto/versions.
meta.description for cproto is: "Tool to generate C function prototypes from C source code"
meta.homepage for cproto is: "https://invisible-island.net/cproto/"
meta.changelog for cproto is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 4.7u with grep in /nix/store/2pfqhjl3f0ij013n9zkjynbrpdiq2j2l-cproto-4.7u
found 4.7u in filename of file in /nix/store/2pfqhjl3f0ij013n9zkjynbrpdiq2j2l-cproto-4.7u

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
cproto

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/2pfqhjl3f0ij013n9zkjynbrpdiq2j2l-cproto-4.7u \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A cproto https://github.com/r-ryantm/nixpkgs/archive/c6490c8bfacfe214f55410c4a90edfdcc51b7f48.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/2pfqhjl3f0ij013n9zkjynbrpdiq2j2l-cproto-4.7u
ls -la /nix/store/2pfqhjl3f0ij013n9zkjynbrpdiq2j2l-cproto-4.7u/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.


Consider signing release artifacts

The OpenSSF Best Practices Badge suggests signing release artifacts. Consider using OpenEXR's release-sign.yml workflow as a template. It's triggered on release creation and does these steps:

Runs get archive to generate a <release>.tar.gz artifact
Signs the <release>.tar.gz via sigstore
Uploads the resulting sigstore signature file along with the tarball.

Oops, this duplicates #1782, but with a bit more explicit suggestions!


feat: support server_as_wsgi

Using the https://docs.python.org/3/library/http.server.html

closed in #6


Looking for maintainers

Hey Folks!
jquery.initialize was a little idea I had quite a while ago. I'm glad many of you have liked it. It has changed since then a bit thanks to contributors.
As my tech stack has changed towards React based technologies, I'm not really focused on maintaining it.
As it seems to be useful, I'd thought it'd be nice idea to find some maintainers that would be able to focus on issues, publishing to packager managers like npm or bower etc.
Let me know if any of you could take it!

@dbezborodovrp do you think you could focus on this?

My NPM user is "dbezborodov."

If any other users are following this discussion and want to help maintain jquery.initialize, please also speak up. Its only a single file codebase, so it is not much hassle. Its always best to have more than one person involved.

Could you mail me at<EMAIL_ADDRESS>Thanks ;)

Yes, npm publish works for me.
published 16 minutes ago version1.2.0


Inference bug with typesafe-joi 3.0.5 / TypeScript 3.5

import Joi from 'typesafe-joi'

const schema = Joi.object().keys({
  receiveUpdates: Joi.boolean().required()
})

const value = Joi.attempt({}, schema)

/* type of value:

const value: ({} & {
    [x: string]: string | number | boolean | ({
        [x: string]: string | number | boolean | (... & {
            [x: string]: string | number | boolean | (... & ...) | null | undefined;
        }) | null | undefined;
    } & {
        [x: string]: string | ... 4 more ... | undefined;
    }) | null | undefined;
}) | undefined

*/

type T = Joi.Literal<typeof schema>

/* type of T: any */

Thanks @brad
However it seems fine. I cannot reproduce this issue. Could you please try to reinstall everything?

Well, beats me, I did everything in a minimal repro to be certain and now I cannot reproduce it either. Apologies for the noise and thanks for your patience.


Building out the homepage prototype

Building out the homepage prototype for stakeholder approval and user testing.
Additions

Includes new info-unit molecule that combines (but doesn't replace) the half width link blob, image and text 50/50, and 25/75 into one base molecule using modifiers.
Includes new (undocumented) card molecule.

Changes

Adds homepage tweaks for existing layouts that should be further explored.

Testing

gulp build and checkout the home page

Review

@ajbush
@duelj
@schaferjh
@anselmbradford
@KimberlyMunoz
@sebworks

Screenshots
Note
This isn't in any way complete or well organized, it is being merged to get up for testing and will be refactored later this sprint or next.
Checklist

[ ] Changes are limited to a single goal (no scope creep)
[ ] Code can be automatically merged (no conflicts)
[ ] Code follows the standards laid out in the front end playbook
[ ] Passes all existing automated tests
[ ] New functions include new tests
[ ] New functions are documented (with a description, list of inputs, and expected output)
[ ] Placeholder code is flagged
[ ] Visually tested in supported browsers and devices
[ ] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)

The 50-50 molecule still has 50% width applied to it. (Which I think might be my bad from a rebase) and the result looks like this:

Double-checked on IE10, just to make sure someone saw it there before the stakeholders did. Looks good, just a few issues above.

Thanks @KimberlyMunoz, I forgot to update the link-blobs to the new info-unit molecule. I think that's everything.

Looks good. :+1:

:+1: If you have time, it would be a great help to go through and add TODOs for anything that's considered incomplete.

I've already fixed the variable and em dimensions, going to save the rest for the clean up PR later this week so this can be demo'd tomorrow.
(Now can we get demo servers? Please? This is workflow is suboptimal)


Error with calling graphql api in vercel deployment

Environment

Operating System: Darwin
Node Version:     v16.13.1
Nuxt Version:     3.4.2
Nitro Version:    2.3.3
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      app, components, modules, css, build, runtimeConfig, nitro, graphql-client, vite
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
This is vercel related error so it won't be so easy to reproduce.
Here is link to repository where I'm struggling with this error.
Describe the bug
In development environment (this one I gave info about above) everything works fine, requests goes thought without any errors, but on vercel deployment there is several errors. I've submitted a ticket in Vercel Support, they answered me, and here is an response.

Vercel errors

My environment (no errors)

Additional context
related to: https://github.com/unjs/nitro/issues/1084
Logs
[nuxt] [request error] [unhandled] [500] The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object
  at (index.mjs:1:52671)
  at (index.mjs:1:58642)
  at (index.mjs:1:89318)
  at (index.mjs:1:91461)
  at (index.mjs:1:142191)
  at (index.mjs:1:97937)
  at (index.mjs:1:99154)
  at (index.mjs:1:146590)
  at (index.mjs:1:148383)

 Error:
    at (index.mjs:1:743101)
    at (index.mjs:1:751999) {
  type: 4,
  from: {
  fullPath: '/',
  path: '/',
  query: {},
  hash: '',
  name: 'index',
  params: {},
  matched: [
  {
  path: '/',
  redirect: undefined,
  name: 'index',
  meta: { middleware: 'auth' },
  aliasOf: undefined,
  beforeEnter: undefined,
  props: { default: false },
  children: [],
  instances: {},
  leaveGuards: Set(0) {},
  updateGuards: Set(0) {},
  enterCallbacks: {},
  components: {
  default: { __name: 'index', __ssrInlineRender: true, setup: [Function] }
}
}
],
  meta: { middleware: 'auth' },
  redirectedFrom: undefined,
  href: '/'
},
  to: {
  fullPath: '/about',
  hash: '',
  query: {},
  name: 'about',
  path: '/about',
  params: {},
  matched: [
  {
  path: '/about',
  redirect: undefined,
  name: 'about',
  meta: {},
  aliasOf: undefined,
  beforeEnter: undefined,
  props: { default: false },
  children: [],
  instances: {},
  leaveGuards: Set(0) {},
  updateGuards: Set(0) {},
  enterCallbacks: {},
  components: { default: [Function: component] }
}
],
  meta: {},
  redirectedFrom: {
  fullPath: '/',
  hash: '',
  query: {},
  name: 'index',
  path: '/',
  params: {},
  matched: [
  {
  path: '/',
  redirect: undefined,
  name: 'index',
  meta: { middleware: 'auth' },
  aliasOf: undefined,
  beforeEnter: undefined,
  props: { default: false },
  children: [],
  instances: {},
  leaveGuards: Set(0) {},
  updateGuards: Set(0) {},
  enterCallbacks: {},
  components: {
  default: { __name: 'index', __ssrInlineRender: true, setup: [Function] }
}
}
],
  meta: { middleware: 'auth' },
  redirectedFrom: undefined,
  href: '/'
},
  href: '/about'
},
  [Symbol()]: true
}

related to unjs/h3#381 actually


ImportError: cannot import name 'Field' from 'pydantic'

Hi, I encountered an issue in the API docs and it was reported and address with FastAPI version 0.60.1.
right now when I ran my code, I encounter this one
ImportError: cannot import name 'Field' from 'pydantic'
how do I translate this one
from pydantic import BaseModel, Field
from enum import Enum
from typing import List

class PriorityGatewaySchema(BaseModel):
    gatewayName:  str = Field(..., min_length=0, max_length=20, title="OTP Gateway Name")
    gatewayCode:  str = Field(..., min_length=0, max_length=20, title="OTP Code")

I'm not on my computer, but that's a Pydantic issue. Can you upgrade the Pydantic version and see if the problem still remains?

I actually did. still the same.

Hi, @rbcabreraUPM, Did you try using this
from pydantic.fields import Field

@rbcabreraUPM Your implementation works just fine here. With Pydantic 1.5.1 and 1.6.1, and the same FastAPI version. jfyk

right now Im getting an error of  TypeError: init() got an unexpected keyword argument 'title'

@rbcabreraUPM I think you need to update your pydantic version.

@rbcabreraUPM I think you need to update your pydantic version.

already using 1.6.1

this wasn't an issue before using older versions of pydantic and fastapi then the swagger got buggy. after upgrading to the latest versions, I got this issue

It seems like you got a different error than the original, if you are still having issues, please create a simple example that demonstrates the error.

I have the exact same problem with pydantic 1.7.3 and flask 0.62, any solution?

Just noticed this works in my dock container but not locally on my mac...

If you are having this type of issue, it's most probably that you don't have your environment correctly set up.
The python that is executed should be the same one that was used to install Pydantic, otherwise, it won't be able to find it.
I haven't added docs about environments to FastAPI but you can check about that and how to test it all in the docs for SQLModel: https://sqlmodel.tiangolo.com/tutorial/#create-a-python-virtual-environment


[SPARK-6964][SQL] Support Cancellation in the Thrift Server

Support runInBackground in SparkExecuteStatementOperation, and add cancellation

Merged build triggered.

Merged build started.

Test build #32878 has started for   PR 6207 at commit 13c53b1.

Test build #32878 has finished for   PR 6207 at commit 13c53b1.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32878/
Test FAILed.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #33032 has started for   PR 6207 at commit db60d1c.

Test build #33032 has finished for   PR 6207 at commit db60d1c.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33032/
Test FAILed.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #33175 has started for   PR 6207 at commit 56251bb.

Test build #33175 has finished for   PR 6207 at commit 56251bb.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33175/
Test FAILed.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #33185 has started for   PR 6207 at commit 78ab6eb.

Test build #33185 has finished for   PR 6207 at commit 78ab6eb.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33185/
Test PASSed.

ping @marmbrus

This is great!  As discussed off-line it would be great if we could make running everything async (and thus supporting cancelation) flag controlled.

Merged build triggered.

Merged build started.

Test build #33305 has started for   PR 6207 at commit edf8fa1.

Test build #33305 has finished for   PR 6207 at commit edf8fa1.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33305/
Test FAILed.

Merged build triggered.

Merged build started.

Test build #33328 has started for   PR 6207 at commit 4002fb2.

Test build #33328 has finished for   PR 6207 at commit 4002fb2.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33328/
Test PASSed.

/cc @liancheng

Merged build triggered.

Merged build started.

Test build #33523 has started for   PR 6207 at commit 689e30d.

Test build #33523 has finished for   PR 6207 at commit 689e30d.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33523/
Test PASSed.

This LGTM except for some minor issues.

Merged build triggered.

Merged build started.

Test build #33749 has started for   PR 6207 at commit 269d5ab.

Test build #33749 has finished for   PR 6207 at commit 269d5ab.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #33788 has started for   PR 6207 at commit 37bd362.

Test build #33788 has finished for   PR 6207 at commit 37bd362.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Merged build triggered.

Merged build started.

Test build #34289 has started for   PR 6207 at commit a46b96b.

Test build #34289 has finished for   PR 6207 at commit a46b96b.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #34292 has started for   PR 6207 at commit 6ab5b28.

Test build #34292 has finished for   PR 6207 at commit 6ab5b28.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #34296 has started for   PR 6207 at commit 687c113.

Test build #34296 has finished for   PR 6207 at commit 687c113.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

jenkins test this please

Merged build triggered.

Merged build started.

Test build #34305 has started for   PR 6207 at commit 687c113.

Test build #34305 has finished for   PR 6207 at commit 687c113.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

I am merging it to master.

This is merged right?  @dongwang218 can you close the issue?

Yeah. I merged it. The commit is https://github.com/apache/spark/commit/eb19d3f75cbd002f7e72ce02017a8de67f562792.

yes, closing the PR, thanks @yhuai.


Failed to conform to ES5.1, Section 8.7.1 GetValue (V) - [[Get]], Step 6

It seems to me that S5 does not conform to Section 8.7.1 GetValue (V), [[Get]], Step 6 in ES5.1.
For the following test program:
// 8.7.1 GetValue (V), [[Get]], Step 6

// 6. If getter is undefined, return undefined.

// For [[Get]] for a reference with a primitive base,
// if its value is an accessor descriptor, and its getter is undefined, then it returns undefined.
"use strict";
var r;
var n;
Object.defineProperty(Number.prototype, "x", { "set" : function (v) { n = v; }, "enumerable" : true, "configurable" : true });
r = 1["x"]; // undefined
if (!(r === undefined)) {
  $ERROR('Object.defineProperty(Number.prototype, "x", { "enumerable" : true, "configurable" : true, "set" : function (v) { n = v; } }); 1["x"] is undefined. Actual: ' + r);
}

S5 throws an exception, while it should have succeeded:
$ ./s5-test262  /tmp/01.js
../envs/es5.env:6:0-5029:0
<unknown>:11:-1--2
<unknown>:11:-5--11
Uncaught error: "[interp] (<unknown>:11:-5--11) Applied non-function, was actually undefined"

Fatal error: exception Failure("Runtime error")

Is there anything that I'm missing?

Thanks, fixed and test added in bfae7be.


[HUDI-7796] Gracefully cast file system instance in Avro writers

Change Logs
PR targeting master: https://github.com/apache/hudi/pull/11301
This PR targets branch-0.x with the same changes.
When running tests in Trino with Hudi metadata table (MDT) enabled, the HoodieAvroHFileWriter throws class cast exception, since Trino uses dependency injection to provide the Hadoop file system instance, which may skip the Hudi wrapper file system logic.  This PR adds new logic to gracefully cast file system instance in Avro writers to handle such cases.
Caused by: java.lang.ClassCastException: class io.trino.hdfs.TrinoFileSystemCache$FileSystemWrapper cannot be cast to class org.apache.hudi.hadoop.fs.HoodieWrapperFileSystem (io.trino.hdfs.TrinoFileSystemCache$FileSystemWrapper and org.apache.hudi.hadoop.fs.HoodieWrapperFileSystem are in unnamed module of loader 'app')
    at org.apache.hudi.io.hadoop.HoodieAvroHFileWriter.<init>(HoodieAvroHFileWriter.java:91)
    at org.apache.hudi.io.hadoop.HoodieAvroFileWriterFactory.newHFileFileWriter(HoodieAvroFileWriterFactory.java:108)
    at org.apache.hudi.io.storage.HoodieFileWriterFactory.getFileWriterByFormat(HoodieFileWriterFactory.java:70)
    at org.apache.hudi.io.storage.HoodieFileWriterFactory.getFileWriter(HoodieFileWriterFactory.java:53)
    at org.apache.hudi.io.HoodieCreateHandle.<init>(HoodieCreateHandle.java:108)
    at org.apache.hudi.io.HoodieCreateHandle.<init>(HoodieCreateHandle.java:77)
    at org.apache.hudi.io.CreateHandleFactory.create(CreateHandleFactory.java:45)
    at org.apache.hudi.execution.CopyOnWriteInsertHandler.consume(CopyOnWriteInsertHandler.java:101)
    at org.apache.hudi.execution.CopyOnWriteInsertHandler.consume(CopyOnWriteInsertHandler.java:44)

Impact
Makes Hudi MDT writing in Trino tests work.  No impact on production logic in Hadoop-based implementation on Spark.
Risk level
none
Documentation Update
none
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

Azure CI is green.


Support for InstanceView in vm list

An "instance view of VMs" if you will.

There is a large perf hit for this because we would have to make a service call for every record returned

Not doing it unless we get more user voices


Are there any other crates like this one?

I forked the create as I think it would be a good exercise for me to work a bit with rust.
Just a quick question: Do you know about any crates that provide a similar approach?
I know of https://github.com/dropbox/rust-alloc-no-stdlib which could be used as the underlying allocator for this lib.

There are a few crates that provide Vec like data structures that need no memory allocator like arrayvec but I think you can only allocate the growable collection on the stack. OTOH, heapless lets you allocate growable collections on static memory.

I know of https://github.com/dropbox/rust-alloc-no-stdlib which could be used as the underlying allocator for this lib.

This crate doesn't use a memory allocator.

This crate doesn't use a memory allocator.

Sure, sorry for the missunderstanding. You of course have to supply a (statically) allocated array to the ::new() constructors.
You can check out my progress on this crate if you have the time here

BTW, I'm pretty sure that CircularBuffer.deref will become unsound once you add some method to remove elements (for example: create empty CB, push 2N (N == capacity) elements, pop the last, call deref) so it may be best to remove it.

Yes I also though of that. Using its content with an iterator only would be the best IMO


add tests for Gauge, Set

Why:
The goal is to increase test coverage of the various Serialization/De-serialization code, particularly in the are of Enum and aggregated metrics.
How:

add Gauge and Set serialization/de-serialization tests
stop using serialized files in SerializationTest class
move some String related serialization/de-serialization tests from SerializationTest.class to its own test classes and add more tests to increase coverage. Support for String metrics is no longer available in the main code base

Not Included:

didn't improve coverage for Histogram serialization/de-serialization code. I was told Histogram is to be deprecated
didn't improve coverage for SimpleNumberSerialization. I could not get the normal round trip test to work.

@usnavi @ChandraAddala @VinnyQ @izrik @drenalin23 please review.
cc: @tilogaat @GeorgeJahad

lgtm

Apart from my comments, it looks good.


numpy-mkl: undefined symbol: omp_get_num_procs

Issue description
@bhipple @FRidh regarding the latest numpy mkl addition. The numpy-mkl in (currently in staging) fails when running "python: symbol lookup error: /nix/store/5in4rmhq0829zr675k203zqli8dvn77n-mkl-2019.0.117/lib/libmkl_intel_thread.so: undefined symbol: omp_get_num_procs"
Steps to reproduce
default.nix
{ pkgs ? import <nixpkgs> { config = { allowUnfree = true; }; } }:

let numpy-mkl = pkgs.python3Packages.numpy.override {
      blas = pkgs.mkl;
    };
in
pkgs.mkShell {
  buildInputs = [ numpy-mkl ];

}

nix-shell --run "python -c 'import numpy as np; a = np.random.random((100, 100)); a.dot(a)'"

python: symbol lookup error: /nix/store/5in4rmhq0829zr675k203zqli8dvn77n-mkl-2019.0.117/lib/libmkl_intel_thread.so: undefined symbol: omp_get_num_procs

Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.
 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.70, NixOS, 19.03pre-git (Koi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.1.1`
 - nixpkgs: `/nix/store/jaa863bvx6cjdvgbmyzjl3792d1ynpcn-source`

Interesting. I did see this with sklearn. It seems we need to improve it in numpy then. If I recall correctly we should add openmp.

Is that not solved by setting openmp in LD_LIBRARY_PATH?  I had considered doing that in mkl directly, but ditched that approach in order to make the fixed-output derivation simpler.  There's a comment about it:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/science/math/mkl/default.nix#L3-L13
I could move the binaries themselves to a private derivation in a let binding, and then make the actual mkl package itself depend on openmp with this setupHook if you guys think it'd be preferable.  Doing so would make all of mkl's dependencies "just work", without each package having to futz about with LD_LIBRARY_PATH.

I will try setting openmp in the path and see if this fixed it. If anything I wanted to raise this issue because I am sure that future people using numpy, scipy, or scikit-learn mkl will run into this problem. Should we automatically add openmp to the LD_LIBRARY_PATH for numpy if mkl is used?

The linked PR fixes your issue, and it gets us very close to passing all of the test cases in numpy as well.

@bhipple thanks for your work on this. I am not nearly knowledgeable on this but I appreciate your work. This will be helpful in allowing mkl to be added to many other packages. Which I think could be a big selling point of nix to people.

I experienced the same issue via dlib installed from conda, in my case re-installing dlib via pip solved the issue

I experienced the same issue via dlib installed from conda, in my case re-installing dlib via pip solved the issue


36 New header

What is the context of this PR?
Trello Card

changed header component to latest design
renamed from TopBar
introduced IconButton component to render an icon as a button with (browser default) tooltip
added some tests

How to review

ensure header matches design

 New Header (5)

Should the breadcrumb link be changing here? I think it should just display the Survey title or none? Or is this out of scope for this PR?


Support for manual trigger of release image job

We have seen instances where the release job does not get triggered after a PR gets merged and because of this, the devel image still points to some old commit which produces inconsistent results. This PR includes support to manually trigger the release job in such scenarios.

It turns out we need to backport this for it to be usable on release branches...


Add function for calculating errors using fisher information

Is this ready for review now?

Yup

Finally, our longest standing pull request can be closed :wink: :+1:


CultureInfoHelper : File not found error

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
in page https://components.bitplatform.dev/components/daterangepicker link to CultureInfoHelper .cs github link is incorrect.
incorrect link is:https://github.com/bitfoundation/bitplatform/blob/develop/src/BlazorUI/Demo/Client/Core/Helpers/CultureInfoHelper.cs
correct link is:
https://github.com/bitfoundation/bitplatform/blob/develop/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Helpers/CultureInfoHelper.cs

Expected Behavior
open link with this url:
https://github.com/bitfoundation/bitplatform/blob/develop/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Helpers/CultureInfoHelper.cs
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
any
Anything else?
No response

Greeting
It seems it's pointing to the correct location.
I also checked https://components.bitplatform.dev with Broken Link Checker
It seems for some reason, your pwa app is out dated /-:

It seems it is fixed, thanks


Dependecies

Hello guys
Do you plan to update you dependencies?
You use illuminate/console ~4.2. This library forces me to use symfony/console 2.5.*. But current symfony/console version is 2.7 and it is a big difference between them. The last illuminate/console version uses the last symfony version.
So, if you will update your dependencies in new release is can be very nice for many people.
Thank you

This is done on Rocketeer 3 (develop branch), but not on Rocketeer 2 which has to remain compatible with Laravel 4.2 for BC purposes.


How to update interned data after the first packet has been flushed?

Hi, thank you for your work
Perfetto is a powerful UI to present core activity so I'm trying to show my custom data  on the UI.
I compiled Perfetto proto file to C++ by myself and found some problem when trying to use interned data (my goal is to reduce the file size as the this post #647 )
I new a first packet which defines the interned data and set it just like what the document says.
auto interned_pack = trace.add_packet();
interned_pack->set_sequence_flags(perfetto::protos::TracePacket_SequenceFlags::TracePacket_SequenceFlags_SEQ_INCREMENTAL_STATE_CLEARED);
interned_pack->set_timestamp(0);
interned_pack->set_trusted_packet_sequence_id(1); // an arbitrary id, let it be 1
interned_pack->set_first_packet_on_sequence(true);

Then I periodically added serveral packets with the flag TracePacket_SequenceFlags_SEQ_NEEDS_INCREMENTAL_STATE on into the same trusted sequence 1, and serialze them to a file and then clear them.
trace.SerialzeToOstream(&log_file);
trace.Clear();

I'm curious about how to update the interned data after the first interned data packet has been destroyed?
Should I issue another packet for that? If so, how to set something like timestamp , first_packet_on_sequence, previous_packet_dropped, trusted_sequence_id and SEQ_INCREMENTAL_STATE_CLEARED, etc. and can I add a EventName to the new packet's interned data only for unseen event name? (The enter seems yes according to the comment in the protobuffer code, which says that it will be built up gradually)

Should I issue another packet for that?

Yes you append another packet with SEQ_INCREMENTAL_STATE_CLEARED set and the same trusted_sequence_id. The timestamp on a single trusted_sequence_id should always go forward so it doesn't matter what the value is as long as it increases.
From this packet onwards, all IIDs will be reset and only newly seen InternedData fields will be considered when looking up iids.


Runtime logs for multi-container applications on GKE

cld app logs  command fetches deployment and runtime logs for an application.
If the application consists of multiple containers, which is currently supported for GKE, name of the container needs to be specified when retrieving the logs. Currently that is not happening.

Fixed in #212


Comiling pgSentinel to non standard path for pgsql

I compiled PGSQL in a non standard place using configure :
./configure --prefix=/software/postgresql/v10.4

When trying to make pgSentinel it throws the following error :
/software/postgresql/pgsentinel-master/src$ make
Makefile:19: /usr/lib64/pgsql/pgxs/src/makefiles/pgxs.mk: No such file or directory
make: *** No rule to make target `/usr/lib64/pgsql/pgxs/src/makefiles/pgxs.mk'.  Stop.

As a workaround I used symbolic links
ln -s /software/postgresql/v10.4/lib /usr/lib64/pgsql
ln -s /software/postgresql/v10.4/include /usr/include/pgsql

When installing it of course placed the binaries in standard emplacements
 make install
/bin/mkdir -p '/usr/lib64/pgsql'
/bin/mkdir -p '/usr/share/pgsql/extension'
/bin/mkdir -p '/usr/share/pgsql/extension'
/bin/install -c -m 755  pgsentinel.so '/usr/lib64/pgsql/pgsentinel.so'
/bin/install -c -m 644 .//pgsentinel.control '/usr/share/pgsql/extension/'
/bin/install -c -m 644 .//pgsentinel--1.0b.sql  '/usr/share/pgsql/extension/'

I had to move /usr/share/pgsql/extension/* to /software/postgresql/v10.4/extension/* in order to make it work
Is it possible to have a "configure" tool to be able to install pgsentinel directly to non standards locations ?
Thank you
Olivier

Hello Olivier,
we'll have a look and keep you informed
Christophe

Hello Olivier,
I compiled only on non standards location without any issues:
make install
/bin/mkdir -p '/usr/local/pgsql10/lib'
/bin/mkdir -p '/usr/local/pgsql10/share/extension'
/bin/mkdir -p '/usr/local/pgsql10/share/extension'
/usr/bin/install -c -m 755  pgsentinel.so '/usr/local/pgsql10/lib/pgsentinel.so'
/usr/bin/install -c -m 644 .//pgsentinel.control '/usr/local/pgsql10/share/extension/'
/usr/bin/install -c -m 644 .//pgsentinel--1.0b.sql  '/usr/local/pgsql10/share/extension/'
Does "which pg_config" output the right location?
In my case:
which pg_config
/usr/local/pgsql10/bin/pg_config
Should be /software/postgresql/v10.4/bin/pg_config in your case.
If not, update the PATH variable and give a new try.
Thx

OK, i close it.


operator: implement NFD labelling rules

added labeling rules for all supported devices
updated operator installation instructions

Fixes: #768

@all suggestions on proper label naming are welcome

Codecov Report

Merging #871 (b56f743) into main (ab34c3a) will increase coverage by 0.08%.
The diff coverage is n/a.

:exclamation: Current head b56f743 differs from pull request most recent head 9eb548c. Consider uploading reports for the commit 9eb548c to get more accurate results

@@            Coverage Diff             @@
##             main     #871      +/-   ##
==========================================
+ Coverage   55.00%   55.08%   +0.08%
==========================================
  Files          39       39
  Lines        3667     3667
==========================================
+ Hits         2017     2020       +3
+ Misses       1535     1533       -2
+ Partials      115      114       -1

Impacted Files
Coverage Δ

pkg/deviceplugin/server.go
85.79% <0.00%> (+1.77%)
: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 ab34c3a...9eb548c. Read the comment docs.

@mythi please advice what to do with deployments/sgx_nfd. Should we change it to use intel.feature.node.kubernetes.io/sgx label ?

@ALL please approve & merge. Thanks.

@ALL please approve & merge. Thanks.

done, I was waiting for another CODEOWNER but... :-)

Above review comment is addressed in new PR: https://github.com/intel/intel-device-plugins-for-kubernetes/pull/877
Btw. Different GPUs have different capabilities.  It's not feasible to address those on the NFD side (only the required class), so additional (optional) labels are added for individual GPU capabilities by the Intel GPU device plugin NFD hook.  And even those are not based on device IDs, but device properties exposed by the kernel.
That's why I'm wondering why many of the other NFD rules list individual device IDs, as the set of those could be ever-changing (new ones are added, proto HW IDs are dropped etc) i.e. frequently out of date, especially when one is not running git HEAD of  NFD version:

intel.dlb

class: 0b40
device: 2710

intel.dsa

class: 0880
device: 0b25

intel.fpga-arria10

class: 1200
device: 09c4

intel.qat

class: 0b40
device: 37c8, 4940

@bart0sh Of these only 2 share the same PCI class (dlb & qat).  Why the ohers (dsa & fpga*) need to list individual device IDs?
Could the additional differences be not handled by labels added by corresponding device plugin NFD hooks?


None of the transform animations are working when using appfairy

The js button interactions are working but none of the other view related animations are working.

It's because appfairy doesn't refactor the Interactions portion of your main js file. There's three sections in that huge file, the last two sections need to be manually changed to match the new "af-class"'s along with the page id. Take a look at my open issue here: https://github.com/DAB0mB/Appfairy/issues/7

Fixed in version 0.8.0


Setting root folder problem (Windows)

Hi,
I'm having problem setting the ftp root folder on Windows. Here is what I did :
const ftp_srv = require('ftp-srv');
const f = new ftp_srv("<IP_ADDRESS>:21", {});
f.on('login', ({ username, password }, resolveLogin, rejectLogin) => {
return resolveLogin({
                root: "d:\\ftp_root",
                cwd: "/"
            });
)};
f.listen();

When the client is getting the file (LIST) the here is what I'm getting in fs.js
class FileSystem {
  constructor(connection, {
    root = '/',
    cwd = '/'
  } = {}) {
    this.connection = connection;
    this.cwd = nodePath.resolve(cwd);              // "/" = "d:/"
    this.root = nodePath.resolve(root);            // "d:\\ftp_root" = "d:\ftp_root"
  }

Now in the list function :
  list(path = '.') {
    path = this._resolvePath(path);                // path = "d:\ftp_rootd:\"
    return fs.readdir(path)
    .then(fileNames => {

Thus, d:\ftp_rootd:\ is not a valid folder on my host. Why the cmd and the root folder are merge together ? Why not use only the root argument ?

To get thing working I had to do this in fs.js :
const _ = require('lodash');
const nodePath = require('path');
const url = require('url');                                    // HERE
const uuid = require('uuid');
const when = require('when');
const whenNode = require('when/node');
const syncFs = require('fs');
const fs = whenNode.liftAll(syncFs);
const errors = require('./errors');

const isWin = /^win/.test(process.platform);

class FileSystem {
  constructor(connection, {
    root = '/',
    cwd = '/'
  } = {}) {
    this.connection = connection;
    this.cwd = nodePath.resolve(cwd);
    if (isWin) {                                                // HERE
      this.cwd = url.parse(this.cwd).path;
    }
    this.root = nodePath.resolve(root);
  }

  _resolvePath(path) {
    let pathParts = {                                           // HERE
      root: this.root,
      base: nodePath.resolve(this.cwd, path)
    };
    if (isWin) {                                                // HERE
      pathParts.base = url.parse(pathParts.base).path;
    }
    path = nodePath.format(pathParts);
    return path;
  }

But I'm not sure of this fix, maybe its will break something else...

I'm leaning more towards serving a different file system if on windows rather than amending the current one (which was designed for unix based systems) to work.
The login event can resolve with a file system (https://github.com/stewarttylerr/ftp-srv/blob/master/src/connection.js#L60), which could be a windows based one. This could solve issues for now until a solution is determined.

Hi Stewart,
I'm agree with you that creating a new file system specific to Windows would be ideal. You could create it by copying the unix one but just replace the detect lines...
I doubt the https://github.com/stewarttylerr/ftp-srv/blob/master/src/connection.js#L60 fix will the problem as when calling new FileSystem(this, {root, cwd}) the cmd value will still be overwrite by https://github.com/stewarttylerr/ftp-srv/blob/master/src/fs.js#L21 :
const pathParts = {
      root: this.root,
      base: nodePath.resolve(this.cwd, path)
    };

// Setting cwd to '/' on Windows will be resolved as "X:" and we get the same problem :(

So it appears that node supports forward slashes (/) in paths on Windows.
Can you try using all forward slashes?
{
  root: "d:/ftp_root",
  cwd: "/"
}

Let me know if that works.

Nope, it does not work. / is resolve to d:\ by the function path.resolve of FileSystem. I tried everything, / or \ but the driver letter is always returns. It make sens as on Linux / will return / but on Windows / cannot returns / it should returns a driver letter at least.

So, cwd is /, when pass through nodePath.resolve it is transformed to d:\ instead of /.

Yeah the resolve function seems to be the issue.
I'm working on fixing it in this PR: https://github.com/stewarttylerr/ftp-srv/pull/12
Just need to setup a windows machine to test it!

Thank you so much Stewart, I appreciate it :)

Testing this on windows VM:
{
  root: 'C:\users\User',
  cwd: '\'
}

Looks like it works in the new PR. Are you able to confirm this @purell?
One issue with FileZilla, it doesn't wrap requests in quotes so folder names with spaces do not work.

Okay this is fixed with https://github.com/stewarttylerr/ftp-srv/pull/12!

Wow, thank you so much Stewart, now it seems to work perfectly :)


[Playground] [Task]: State management refactoring - Part 1

What needs to happen?
We have a lot of technical debt in frontend architecture, including:

Duplicate PlaygroundState creation. PlaygroundState is created above the root navigator. Then for embedded page it is created again under the route in EmbeddedPageProviders. Only the bottom one is used in the embedded version. A few other ChangeNotifier classes follow the same pattern. This is completely and hard to maintain.

Redundant CodeController re-creation. Language and theme were read-only properties for CodeController, so our app had to re-create the controller when any of these were changing. This had been fixed since.

No single source of truth for source code. It is stored in CodeController within EditorTextArea. When code changes, the widget looks up the PlaygroundState and copies the code there. When running, code is sent from PlaygroundState. When the user selects another snippet, there is no way to tell the CodeController to pick it up. So the app employs a hack with EditorKeyObject to drop the editor state when the snippet or SDK changes, or when reset is pressed. The Flutter framework then re-creates EditorTextArea, and on creation it picks up the current code from the selected example.

These issues are interconnected and are easier to fix in one take.
Issue Priority
Priority: 2
Issue Component
Component: beam-playground

.take-issue


notifications: Simplify notification messages for new subscriptions.

We're adding more stream types, e.g. splitting private streams into
with/without shared history, adding publicly-archived streams, adding
announce-only streams, etc. So maintaining this text is going to get more
complicated over time.
Also, the right place to explain this stuff is in the stream header, or near
the z-in-a-circle.
This commit also adds translation tags to the messages.

Merged!  Thanks @rishig!  I enjoy seeing "pink diffs", and I agree that we can find a better place for the more detailed stuff, plus it's likely that many users wouldn't have really digested the prior text.


How to store mask pattern in data attribute of input field?

I making automated CRUD for Laravel (using MDL based framework)
I have data template for fields:
'phone' => [
    'section' => 'public',
    'caption' => ['en' => 'Phone'],
    'type' => 'text',
    'validation' => '',
    'mask => '', // here I want to store mask pattern
    'default' => ''
]

Then I'm  generating html using this template.

        <input id="data_phone" class="input-text masked" name="data_phone" value="" type="text">
        Phone

And then in script I initialize text-mask
/**
* Initialize element.
*/
MaterialMask.prototype.init = function() {
    if (this.element_) {
        var mask = this.element_.dataset.mask; // get mask from datafield
        var this.maskedInputController = vanillaTextMask.maskInput({
            inputElement: this.element_,
            mask: mask
        });
    }
};

Is there any simple way to do that? Or I need to store it in JSON and parse it to array of RegExp?
It could be a feature request =). Thanks.

Hi! I'm not familiar with Laravel, so I'm not sure what is required on Text Mask's part to make this process easy. It seems to me that there needs to be some kind of adapter for Laravel that converts some template syntax to a JavaScript array? At the end of the day, Text Mask's mask attribute is just a plain JavaScript array.

@msafi, Laravel is php framework. Just see this as plain php in this case. The question is how to transmit mask pattern (array of regexps) from php to javascript. I can generate masks as <?php echo "" but it seems to me as not best and elegant way. I like to use data attribute of input field, but there is some troubles using it. Array can be stored there as JSON. But JSON can accept any Unicode character except " \ or control-character \" \\ \/ \b \f \n \r \t \u four-hex-digits. So I can't store plain RegExps as JSON array. Same problem would be with dynamically loading mask patterns throw  AJAX based JSON data transfer.
As I can understand I need to create my own function mask() that accepts string with some permitted for JSON characters and parses it to array of regexps, isn't it?
Thanks.


docs(config): add auxiliaryComment documentation to output.md

Resolves #132

@TheLarkInn merging but do let me know if you see anything that needs tweaking and I'll resolve in a separate PR.


Set the image field if an image is attached

Mentioned very briefly in conversation with @backwardspy with no real plan a while ago but I think it would be neat to parse the image links in any event type where images are allowed and set them as the image in discord embeds.
Naturally this raises the question of "how can we set multiple images in discord embeds" and I don't think there's a documented answer for it? That being said, I believe there are solutions/workarounds mentioned in the links below:

https://stackoverflow.com/questions/57182398/is-it-possible-to-attach-multiple-images-in-a-embed
https://github.com/Rapptz/discord.py/discussions/6912#discussioncomment-740853

The initial iteration (or final iteration really) could be as simple as just taking the first image link and setting that. And maybe we can make the decision to not set an image field if there are multiple images? I'm not really committed to any idea aside from that it'd be nice to see the image if there was an image attached in the description.

test comment

testing

test

test

test

testing

test


FAQ Blog Post: What do Event Filters do?

Closing since this will change with the channels implementation anyway (which we can write a blog post about).


Fix shape_with_offset method to correctly return multiple contours

Shape was calculated incorrectly as MoveTo instructions were always ignored. Condition result.len() != 0 is always false so new contour would never be started. For example for the letter 'A' you would expect two contours - one for the letter itself and one for the hole, but only one unified contour was returned. This PR fixes this.

Thanks!


Add a latest.json to each package

This makes it so a client can just get: repo/packages/C/chronos/latest.json to figure out the url for the latest package.json, marathon.json, and related files. Otherwise clients have to implement searching directories for the newest version.

It's in the index, closing.


highlighting geometry

Hi, I want to highlight the object geometry/contour like one in the attached file. Do we have any sample application I can check or can you guide me the filament classes I need to explore.
Thanks

Please open a discussion instead of an issue for questions like this. We do not have a sample that does this exactly but someone was recently explaining in a discussion how they achieved this exact effect.


Docker cross-compile build

Need to build the edge-node-managed in a docker container due to libusb dependency
Connects with 138-cross-compile
Connects with builder-bug
Connects with https://github.com/resin-io/resin-builder/issues/100

https://docs.travis-ci.com/user/docker/


fix: improve diff editor first region position

Types

[x] 🐛 Bug Fixes

Background or solution
相关 #1483
在代码折叠情况下，无需自动对齐编辑器至第一个变更区域
Changelog
improve diff editor first region position

/next


feat: add manager client list scheduler interface

Signed-off-by: Gaius<EMAIL_ADDRESS>
Description

Add manager client list scheduler interface.

Related Issue

Motivation and Context

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation Update (if none of the other choices apply)

Checklist:

[x] Code compiles correctly.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Codecov Report

Merging #694 (807fb64) into main (89b42c4) will increase coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #694      +/-   ##
==========================================
+ Coverage   38.50%   38.54%   +0.04%
==========================================
  Files          89       89
  Lines        6987     6987
==========================================
+ Hits         2690     2693       +3
+ Misses       3912     3909       -3
  Partials      385      385

Flag
Coverage Δ

Object-compatibility-e2etests
?

e2etests
?

unittests
38.54% <ø> (+0.04%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

client/daemon/peer/peertask_base.go
34.28% <0.00%> (+0.61%)
:arrow_up:


About YOLOv3, 4 conversion

I trained my model on Darknet. Should I convert my model to TensorFlow or Caffe (which is not supported on Vitis AI 2.x), which is better? And does Vitis AI support YOLOv5 pytorch?

Hi @tuanmonkeyy
Vitis-AI 3.0 has supported YOLOv5 pytorch. Please find it in model_zoo. But for yolov5/v6 series model, we just provided a README document to share the accuracy and performance instead of the model itself due to limitations of the original model license.
If you want to get this model, please refer to the contact information in README and contact MKT for further support.


GitHub repos

Allows for creation of clusters from github by specifying github:username/branch_name instead of git:branch_name, partially addressing #293.
This is pretty quick-and-dirty, but it seems to work. It creates a new _git_cache directory for each GitHub repo cloned, which could get big after a while.
This changes the existing format for cluster repo directories. Instead of replacing : with _, it replaces : with COLON and / with SLASH. Some replacement for the latter is necessary since / is valid in branch names, so we may encounter them in GitHub branches. Replacing them both with uppercase ascii gives each a unique replacement and makes it unlikely that directory names will collide. Users will want to run ccm invalidatecache after updating.

+1, thanks for the README.


Provide separate MFA attributes for resolver and validation

The MFA attribute that is specified in the configuration indicates both the attribute that should be retrieved for the user to indicate MFA, AND the attribute that is going to be produced in the CAS assertion.
Separate them.

Should this be targeting an RC2 as RC1 is already released?

https://github.com/Unicon/cas-mfa/commit/62ca78dd56211a88a9d25e46dbba7f52afa67c6c

@jtgasper3 tagged


Update job posting layout

This updates a few pieces of information in our latest job posting, with the goal of making its responsibilities easier to notice quickly, and providing general helpful links to other parts of 2i2c as well.

@damianavila I added you on this one since it touches the job posting that you've got up. I don't think it significantly changes the meaning of the post, so was hoping it'd be already to change it mid-search. What do you think?
Also, I was looking for a Needs Review status but didn't find it, so I added it to the engineering backlog just in case so that we can track it. Let me know if there's a better place.

Also, I was looking for a Needs Review status but didn't find it, so I added it to the engineering backlog just in case so that we can track it. Let me know if there's a better place.

I added to the Sprint Board where you have the review status you were looking for (and because it makes sense to have it there).

Gotcha thanks - i wasn't sure if it was acceptable to add something mid sprint 😬


Send Email to Contributor When ICLA or ECLA is Invalidated

Summary
Send Email to Contributor When ICLA or ECLA is Invalidated
Background
When the system invalidates a contributor signature (ICLA or employee acknowledgment) a confirmation email should be sent to the contributor.
Work with @pranab-bajpai on the text/content of the email.
User Story

As a project manager, when I invalidate an individual signature, an email should be sent to the contributor notifying them that they are no longer authorized.
As a CLA Manager, when I remove an entry from the approval list, an email should be sent to the contributors who are no longer authorized.

Acceptance Criteria
The "done" criteria when this feature or problem is resolved. Such as:

Unit Tests added and running in CI
Functional Tests updated to cover feature, if applicable
Demonstrate the set of capabilities to the product team while the code is running in the STAGING environment.
System emails are sent during the above scenarios defined in the user stories.

References

Stakeholder meeting notes on 03/31/2021.

Email should be thus.
Scope: Invalidating ICLA of a user
Recipient: EasyCLA user whose ICLA has been invalidated
Subject: EasyCLA: ICLA invalidated for  on <Project Name(s)>
Body:
Hello <user (could be userid or email)>,
This is a notification email from EasyCLA regarding the project(s) <Project Name(s)>.
The ICLA signature for  has been invalidated.
Please contact Project Manager for the project <project name(s)> and/or CLA Manager from your company if you have more questions.
EasyCLA Support Team

Deployed to DEV, Staging & PROD through https://github.com/communitybridge/easycla/releases/tag/v2.0.23

@nickmango I verified this on staging environment and found email is not sent to the user when ICLA is invalidated.
Please refer the attached video for reference.
https://images.zenhubusercontent.com/194341141/22c1b4d7-60be-4fc7-bd88-477d202614be/_2842_06042021.mp4

Verified on staging environment today and found email is triggered. Please refer the screencast as below:

David has sent the draft to Steve on 7-Apr; awaiting his feedback.

Deployed to PROD through https://github.com/communitybridge/easycla/releases/tag/v2.0.28

We have received an update from our stakeholders on the email content. Please see below:
Thanks David, apologies again for the delay in circling back. Here's what I would suggest:
Case 1: CLA Manager removes someone; project where CCLA+ICLA combination is NOT required (e.g. the normal case)
Hello {{.RecipientName}},
This is a notification email from EasyCLA regarding the CLA Group {{.CLAGroupName}}.
You were previously authorized to contribute on behalf of your company {{COMPANY-NAME}} under its CLA. However, a CLA Manager has now removed you from the authorization list.
As a result, you will no longer be able to contribute until you are again authorized under another signed CLA.
Please contact one of the CLA Managers from your company if you have questions about why you were removed. The CLA Managers from your company for this CLA are:
{{LIST CLA-MANAGERS - names and email addresses}}
{normal CLA signoff}
(If we are able to track which specific CLA Manager made the change, I would change this line: "However, a CLA Manager has now removed you from the authorization list." to: "However, a CLA Manager ({{CLA-MANAGER-NAME}}) has now removed you from the authorization list."
Case 2: CLA Manager removes someone; project where CCLA+ICLA combination IS required (e.g. the rare case)
Hello {{.RecipientName}},
This is a notification email from EasyCLA regarding the CLA Group {{.CLAGroupName}}.
You were previously authorized to contribute on behalf of your company {{COMPANY-NAME}} under its CLA. However, a CLA Manager has now removed you from the authorization list. This has additionally resulted in invalidating your current signed Individual CLA (ICLA).
As a result, you will no longer be able to contribute until you are again authorized under another signed CLA.
Please contact one of the CLA Managers from your company if you have questions about why you were removed. The CLA Managers from your company for this CLA are:
{{LIST CLA-MANAGERS - names and email addresses}}
{normal CLA signoff}
(Same change as above if we can track the specific CLA Manager that made the change)
Case 3: Project Manager invalidates an ICLA
Hello {{.RecipientName}},
This is a notification email from EasyCLA regarding the CLA Group {{.CLAGroupName}}.
You had previously signed an Individual CLA (ICLA) to contribute to the project on your own behalf. However, the Project Manager has marked your ICLA as invalidated. This might be because the ICLA may have been signed in error, if your contributions should have been on behalf of your employer rather than on your own behalf.
As a result, you will no longer be able to contribute until you are again authorized under another signed CLA. You may need to arrange for your employer to sign a Corporate CLA (CCLA) for the project, or to add you to their authorization list if they have already signed one.
Please contact the Project Manager for this project if you have questions about why you were removed. The Project Manager is {{PROJECT MANAGER - name and email address}}.
{normal CLA signoff}
Let me know if you have any questions. Thanks!
Steve

As discussed in the standup, adding the case no. 4.
Case 4: CLA Manager removes someone; project where CCLA+ICLA+ECLA combination IS required (e.g. the rare case)
Hello {{.RecipientName}},
This is a notification email from EasyCLA regarding the CLA Group {{.CLAGroupName}}.
You were previously authorized to contribute on behalf of your company {{COMPANY-NAME}} under its CLA. However, a CLA Manager has now removed you from the authorization list. This has additionally resulted in invalidating your current signed Individual CLA (ICLA) and your acknowledgement.
As a result, you will no longer be able to contribute until you are again authorized under another signed CLA.
Please contact one of the CLA Managers from your company if you have questions about why you were removed. The CLA Managers from your company for this CLA are:
{{LIST CLA-MANAGERS - names and email addresses}}
{normal CLA signoff}
(Same change as above if we can track the specific CLA Manager that made the change)

Please note that for case 3 (Invalidation of ICLA from Project Manager Console). following ticket has been created.
https://app.zenhub.com/workspaces/easycla-5ed619832c71a855a76ef404/issues/communitybridge/easycla/2897

Verified for Case 1 & 2 today on staging and found 2 differences over the sent email to the user for invalidation which is highlighted in red boxes as in below screenshot:

Subject title is changed and not same as mentioned in the ticket
Last paragraph of the email is matching as described in Case -1 & 2.

Harold investigated the issue & reported in 27-Apr standup that the problem was coming due to "lfid doesn't exist". @manishv09 please try with an LFID which is working fine right now.

@manishv09  the fix for gerrit issue has been resolved and deployed to Staging through https://github.com/communitybridge/easycla/releases/tag/v2.0.45
Please verify.

Verified successfully for ICLA's and Employee acknowledgement and found working fine now. Only change required is the Invalidation email subject line.


vqa training

Hi, thanks for sharing. ALBEF is wonderful and your code is well orginized.
What bothers me now is the training process takes too much time. It takes about 10 hours to finetune VQA traning tast per epoch with 3 RTX 3090 GPUs. I'm wondering if there is a way to speed up the training process somehow?
Thanks again for your work.

Hi, you can try to use ZeRO and other techniques here (https://fairscale.readthedocs.io/en/latest/deep_dive/oss_sdp_fsdp.html) to reduce memory and increase batch size. It would be difficult have a big speed-up if hardware is the limitation.
Thanks!

这是来自QQ邮箱的假期自动回复邮件。

您好，我最近正在休假中，无法亲自回复您的邮件。我将在假期结束后，尽快给您回复。

I'll try that.
Thanks a lot!


Updates to RunONNXModel.py for quartile analysis, analyze-simd.py for default name with tags

Added mesurement only on middle 2 quartile, default for simd analysis… with tags

Jenkins Linux amd64 Build #12789 [push] Added mesurement only on... started at 19:16

Jenkins Linux s390x Build #12812 [push] Added mesurement only on... started at 20:16

Jenkins Linux ppc64le Build #11805 [push] Added mesurement only on... started at 20:26

Jenkins Linux amd64 Build #12789 [push] Added mesurement only on... passed after 1 hr 5 min

Jenkins Linux s390x Build #12812 [push] Added mesurement only on... passed after 1 hr 20 min

Jenkins Linux ppc64le Build #11805 [push] Added mesurement only on... passed after 1 hr 41 min


How does one use this repo? It doesn't seem to be installable via Galaxy (either providing the repo URL or a local git repo).

I have a requirements.yaml file which looks like this:
---
roles:
  - src: https://github.com/improbable-eng/ansible-buildkite-agent
    version: develop
    name: ansible-buildkite-agent

And then I use ansible-galaxy like this:
ansible-galaxy role install -r /path/to/requirements.yaml


Not compatible with 1.66-nightly

When I use 1.66-nightly, I can't compile.
replay:
rustup override set nightly-2022-10-07-aarch64-apple-darwin
cargo build

will get following error:
   Compiling proc-macro2 v1.0.78 (/Users/wanglei52/work/open/rust/proc-macro2)
error[E0658]: use of unstable library feature 'proc_macro_span'
   --> src/wrapper.rs:514:36
    |
514 |             Span::Compiler(s) => s.source_text(),
    |                                    ^^^^^^^^^^^
    |
    = note: see issue #54725 <https://github.com/rust-lang/rust/issues/54725> for more information
    = help: add `#![feature(proc_macro_span)]` to the crate attributes to enable

For more information about this error, try `rustc --explain E0658`.
error: could not compile `proc-macro2` due to previous error

I run rustc according the compile_probe logic of build.rs.
rustc --edition=2021 --crate-name=proc_macro2 --crate-type=lib --emit=dep-info,metadata --out-dir=./ build/probe.rs

error[E0599]: no method named `byte_range` found for reference `&proc_macro::Span` in the current scope
  --> build/probe.rs:13:10
   |
13 |     this.byte_range()
   |          ^^^^^^^^^^ method not found in `&proc_macro::Span`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.

In 1.66-nightly compile_probe return false, and the features of proc_macro_span is disabled. But no_source_text is enabled. So no_source_text should depend on proc_macro_span features.

This crate does not support old nightlies. The expectation is that if you are using a nightly toolchain, then you are remaining on top of recent nightly changes.
If you need to pin to an old nightly toolchain, then you would need to use corresponding old crate versions, too.

@dtolnay ok, thanks.


refactor: prep for unified dataset schema

Description
This PR rename the current datasets DTOs and schemas and introduce a new unified dataset schema/dto.
Motivation
For historical reason, datasets were implemented with two different schemas depending if they were of type raw or derived.
This design introduced complexity in code and increased maintenance cost.
After 2 years of BE v4.x, we came to the conclusion that such differentiation is not needed and datasets can be described with a single schema and dto.
Fixes:

reviewed dataset schema
renamed current dto to obsolete

Changes:

added new unified dto

Tests included

[x] No test changes needed
[ ] Passing? (Merge will not be approved unless this is checked)

Documentation

[x] swagger documentation updated [required]
[ ] official documentation updated [nice-to-have]

This is a pretty major breaking change (but a good one). I think we should change the prefix to v4 (#1101)

Also note that the change should be documented clearly in the migration page


Yeelight (YLDP02YL) strips is showing up "unavailable"

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.46.0
Python release (python3 --version):
Python 3.4.2
Component/platform:
yeelight
Description of problem:
I added my two new YLDP02YL LED Strips to HA and they always show up as "unavailable".  I turned on the debug logging for this component:
logger:
default: warn
logs:
homeassistant.components.light.yeelight: debug
But, not much info here:
2017-06-10 10:48:28 ERROR (Thread-4) [homeassistant.components.light.yeelight] Failed to connect to bulb <IP_ADDRESS>, Bedroom: A socket error occurred when sending the command.
2017-06-10 10:49:08 WARNING (Thread-7) [root] Unknown miio device found: ServiceInfo(type='_miio._udp.local.', name='yeelink-light-strip1_miio52079755._miio._udp.local.', address=b'\xc0\xa8\x017', port=54321, weight=0, priority=0, server='yeelink-light-strip1_miio52079755.local.', properties={b'epoch': b'1', b'mac': b'286c07862e07'})
2017-06-10 10:49:12 DEBUG (Thread-9) [homeassistant.components.light.yeelight] Adding autodetected yeelink-light-strip1_miio52079755.local.
Any thoughts?
Is it adding the light via auto-detect?  I tried placing "automatic_add: False" in the configuration, but it still auto detected the light.
Thanks.
Expected:
Should show up available and be able to control from the web or the app and use in automation.
Problem-relevant configuration.yaml entries and steps to reproduce:
  - platform: yeelight
#    automatic_add: False
    devices:
      <IP_ADDRESS>:
        name: Bedroom
        use_music_mode: True

I have tried it with and without music mode.
It has a static ip

Traceback (if applicable):

Additional info:
I posted it to the component where I believe yeelight came from:
https://gitlab.com/stavros/python-yeelight/issues/12

Do you have enabled the Developer mode ? It's is mandatory if you want to use any yeelight product in HA ...

I came across the same problem. You mean the Developer mode of HA or Yeelight. I already turn on the Developer mode of strip itself. @HydrelioxGitHub

i have same problem with xiaomi strip

What is your light strip firmware version ? (Can get it from MiHome)

1.4.1_34

Does it work after .49?

nope.

Can you try without music mode ? And checker on your routeur that the lightstrip has the right IP (same as the config file )?

It still sounds like you don't have developer mode on for the light strip itself. If you update the firmware, I think it turns it off. I would double check that and make sure music mode is on.

Thanks for two replies. Well, it still failed no matter the music mode is on or off. And of course I turn on the developer mode. I already give up accessing strip in HA and turn to homebridge, everything works well including turn on/off, color change...

Possibly related bug report in upstream: https://gitlab.com/stavros/python-yeelight/issues/12 - that is, this problem is caused by unavailability of developer mode.

The wired thing is that from beginning the developer mode is on.

@cxlwill is this still an issue?

It does seem to work.  I think in the latest release, I have 0.51.2 installed and I can control the lights from the web interface as well.  Although it does tend to lock up the controls and then lights needed to be restarted once by unplugging them.  But, the developer mode does the trick!


How to use MFA?

How to use Metal Flash Attention with the UNet model?
Also, is there any way I could only load the 6bit weights in the memory rather than 16bit?

See demo code:

  let x = Input()
  let c = Input()
  let tokeys = Dense(count: k * h, noBias: true)
  let toqueries = Dense(count: k * h, noBias: true)
  let tovalues = Dense(count: k * h, noBias: true)
  var queries = toqueries(x).reshaped([b, hw, h, k]).identity().identity()
  var keys = tokeys(c).reshaped([b, t, h, k]).identity()
  var values = tovalues(c).reshaped([b, t, h, k])
  let scaledDotProductAttention = ScaledDotProductAttention(
    scale: 1.0 / Float(k).squareRoot(), multiHeadOutputProjectionFused: true)
  var out = scaledDotProductAttention(queries, keys, values)
  /* Alternatively:
  var out = scaledDotProductAttention(queries, keys, values).reshaped([b, hw, h * k])
  let unifyheads = Dense(count: k * h)
  out = unifyheads(out)
  */
  return Model([x, c], [out])

To use 6-bit weights in memory, you need to add .jit option when load a model:
graph.openStore("some path") {
  $0.read("unet", model: unet, codec: [.q6p, .q8p, .jit, .ezm7])
}

Thanks a lot, you are the best!

  let keys = tokeys(x).reshaped([b, hw, h, k]).transposed(1, 2)
  let queries = ((1.0 / Float(k).squareRoot()) * toqueries(x)).reshaped([b, hw, h, k])
    .transposed(1, 2)
  let values = tovalues(x).reshaped([b, hw, h, k]).transposed(1, 2)
  var dot = Matmul(transposeB: (2, 3))(queries, keys)
  dot = dot.reshaped([b * h * hw, hw])
  dot = dot.softmax()
  dot = dot.reshaped([b, h, hw, hw])
  var out = dot * values
  out = out.reshaped([b, h, hw, k]).transposed(1, 2).reshaped([b, hw, h * k])
  let unifyheads = Dense(count: k * h)
  out = unifyheads(out)

vs
  let keys = tokeys(x).reshaped([b, hw, h, k]).identity()
  var queries = ( toqueries(x)).reshaped([b, hw, h, k]).identity().identity()
  var values = tovalues(x).reshaped([b, hw, h, k])
  let scaledDotProductAttention = ScaledDotProductAttention(
    scale: 1.0 / Float(k).squareRoot(), multiHeadOutputProjectionFused: true)
  var out = scaledDotProductAttention(queries, keys, values).reshaped([b, hw, h * k])
  let unifyheads = Dense(count: k * h)
  out = unifyheads(out)

this seems to change the number of weight layers in the model. how?

multiHeadOutputProjectionFused option fuses the unifyheads into the SDP op, hence there is no need to have the unifyheaders in the later line.

let keys = tokeys(x).reshaped([b, hw, h, k]).transposed(1, 2)
  let queries = ((1.0 / Float(k).squareRoot()) * toqueries(x)).reshaped([b, hw, h, k])
    .transposed(1, 2)
  let values = tovalues(x).reshaped([b, hw, h, k]).transposed(1, 2)
  var dot = Matmul(transposeB: (2, 3))(queries, keys)
  dot = dot.reshaped([b * h * hw, hw])
  dot = dot.softmax()
  dot = dot.reshaped([b, h, hw, hw])
  var out = dot * values
  out = out.reshaped([b, h, hw, k]).transposed(1, 2).reshaped([b, hw, h * k])
  let unifyheads = Dense(count: k * h)
  out = unifyheads(out)

vs
 let keys = tokeys(x).reshaped([b, hw, h, k]).identity()
  var queries = ( toqueries(x)).reshaped([b, hw, h, k]).identity().identity()
  var values = tovalues(x).reshaped([b, hw, h, k])
  let scaledDotProductAttention = ScaledDotProductAttention(
    scale: 1.0 / Float(k).squareRoot(), multiHeadOutputProjectionFused: true)
  var out = scaledDotProductAttention(queries, keys, values).reshaped([b, hw, h * k])

these 2 still are not equivalent in terms of output

SDP only works for .NHWC shape.

I have tensors of size batch,time,heads,emb_dim , whats the shape SDP expects?

It expects tensor.format = .NHWC

any way to cast the tensor inside model creation?

I had changed the Unet.swift and made the convs format: .OIHW

any way to cast the tensor inside model creation?

.reshaped(.NHWC(?, ?, ?, ?))

That works, thanks


i am getting this error in traccar(intellij). please help me out to resolve it.

hi to all .please advise me to resolve this error.

Your database got locked. Search for solution on forum. I has been discussed many times.


Split Relationships into Sections

From @Robbie1977 on November 8, 2017 11:6
Anatomical, expression, etc.
It's hard for users to separate out and spot different types of information in the relationships section:
e.g.:

This could be improved if we split out relationships into different types:  Anatomy-> anatomy; anatomy -> gene and then sort alphanumerically within that list.
Relationship type could potentially be pre-computed in Neo4J.
Copied from original issue: VirtualFlyBrain/geppetto-vfb#90

From @temjones on November 8, 2017 11:48
Example:


KAFKA-15045: (KIP-924 pt. 4) Generify rack graph solving utilities

The graph solving utilities are currently hardcoded to work with ClientState, but don't actually depend on anything in those state classes.
This change allows the MinTrafficGraphConstructor and BalanceSubtopologyGraphConstructor to be reused with KafkaStreamsStates instead.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Test failures are unrelated, merged to trunk


Create a new pull request by comparing changes across two branches

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.06%) to 95.832%

Totals

Change from base Build<PHONE_NUMBER>:
0.06%

Covered Lines:
2026

Relevant Lines:
2076

💛  - Coveralls


Cloud: adds notes on using org namespaces for the tutorial

Closes #859
Adds notes on using organization namespaces with the docker-cloud CLI.
cc @talex5 let me know if that looks about right.
Signed-off-by: LRubin<EMAIL_ADDRESS>

LGTM - thanks!


[network] Remove role from identity exchange protocol

Motivation
The role declared by a remote is non-verifiable anyway, so the listener
assumes that the role of the dialer is same as itself.

LGTM! We really need some way to annotate our commits with "breaking" or something...
@bors-libra delegate=bothra90

:v: @bothra90 can now approve this pull request

@bors-libra r=phlip9

:pushpin: Commit ae1f7dc has been approved by phlip9

:hourglass: Testing commit ae1f7dc3f876f108f3518371f468c152e686e248 with merge 877fb37e288383a48c97176044548271d36b135c...

:broken_heart: Test failed - checks-circle_commit_workflow

@bors-libra r=retry

:pushpin: Commit 6ec2730 has been approved by retry

:hourglass: Testing commit 6ec27305b62eb48614e05e69882ee0e090a547c9 with merge 4bacfdfbf106ae3878db257686828dd7853504bf...

:broken_heart: Test failed - checks-circle_commit_workflow

@bors-libra r=retry

:bulb: This pull request was already approved, no need to approve it again.

This pull request previously failed. You should add more commits to fix the bug, or use retry to trigger a build again.
There's another pull request that is currently being tested, blocking this pull request: #2772

:pushpin: Commit 6ec2730 has been approved by retry

:hourglass: Testing commit 6ec27305b62eb48614e05e69882ee0e090a547c9 with merge 1638893d98bb1f75c151f16bb7d7db02a97d788b...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: retry
Pushing 1638893d98bb1f75c151f16bb7d7db02a97d788b to master...


Tesseract4 Support

@peirick : do you have a plan to support Tesseract 4 ? thanks!

Currently I'm happy with the results of Tesseract 3. If there is a big improvement and Tesseract 4 has a stable API maybe.

Thanks!


Integration Test does not send/receive patch data

In the CoffesController Pester integration test called Update-CoffeePatchSucceeds the server does not receive a Delta object.
reference #11

Put shouldn't be called with a delta. Send a whole object to successfully call a put method.


include version number in specific transactions

[ ] use hardcoded value, 1 for now
[ ] add version to spend_tx

Should this version do something or be checked for some value, or just add it there for the time being

Should I hardcode this value somewhere in the config ?

yes, add it to the config

@thepiwo Should there be a func to update the version, or it'll always be a hardcoded value?

for now hardcoded is fine


rename Clump.None to Clump.empty

@williamboxhall I find Clump.None confusing, since it is different from Future.None.
val clump: Clump[Track] = Clump.None
val future: Future[Option[Tack]] = Future.None

I think Clump.empty is a better name.

Coverage remained the same at 100.0% when pulling faca04c3639631295404a3dbe61667021f212cb0 on clump-empty into 2d3627d86a807e84b48d5a26469e35eaff8dc5f7 on master.

:+1:


Be able to handle time delta

Currently, this data type is converted to strings.
eg
import pandas as pd

df_check = pd.DataFrame(
        {
            "header": [pd.Timedelta(365, "d"), pd.Timedelta(-19, "d")],
            "header_1": ["length_one", "length_two"],
        }
    )
skim(df_check)

should produce a table with a time difference section.

Needs to be fixed for pandas 2.0.

df = pd.DataFrame({'col1': [pd.Timedelta('1 day'), pd.Timedelta('2 days')], 'col2': [pd.Timedelta('3 days'), pd.Timedelta('4 days')]})

# Check if the column is of type timedelta
is_timedelta = df['col1'].dtype == 'timedelta64[ns]'

print(is_timedelta)

print(df.apply(pd.api.types.infer_dtype))

all seems to work in detecting timedelta.

Closed in 8b96a06


docs: Update Universal Story to include module map

@nguniversal/module-map-ngfactory-loader has been release and with it, support for Lazy loading!
This PR updates the existing story to guide users how they can use this functionality.
Closes: #7706

@alxhub can you have a look?

Didn't see this PR in there, but added TypeScript (changes similar to these) and other fixes @vikerman requested here: https://github.com/angular/angular-cli/pull/7796

I used this answer, it is about firebase deploy, but main logic is simple https://hackernoon.com/deploy-angular-universal-w-firebase-ad70ea2413a1

Overwritten by #7803


Suddenly Can Not Download Any Youtube Videos

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2021.03.03
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log

PASTE VERBOSE LOG HERE

rhack@localhost:/Data2/Work> youtube-dl -v https://www.youtube.com/watch?v=GzGn-BrexCE
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=GzGn-BrexCE']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.03.03
[debug] Python version 2.7.17 (CPython) - Linux-5.3.18-lp152.66-default-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 3.4.8, ffprobe 3.4.8
[debug] Proxy map: {}
[youtube] GzGn-BrexCE: Downloading webpage
Second example:
rhack@localhost:/Data2/Work> youtube-dl -v https://www.youtube.com/watch?v=Cjp3f7FGy-w
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=Cjp3f7FGy-w']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.03.03
[debug] Python version 2.7.17 (CPython) - Linux-5.3.18-lp152.66-default-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 3.4.8, ffprobe 3.4.8
[debug] Proxy map: {}
[youtube] Cjp3f7FGy-w: Downloading webpage
Description

WRITE DESCRIPTION HERE
Attempting to download any Youtube video simply hangs the program, as shown in the verbose log.
Note that attempting to run "youtube-dl -U" also hangs the program.
Running "youtube-dl --version" does complete and returns the version number.
Running "youtube-dl" with no arguments does complete and returns the expected "no URL" error message.
I am running openSUSE Leap 15.2.
After encountering this issue, I first tried deleting the config files, then I tried uninstalling the program completely using Yast and reinstalling it via Yast. Nothing changed. So I removed it again and installed it using the manual install procedure prescribed by ytdl-org.
Note that I have been running youtube-dl with youtube-dlg for over a year with no issues. I download 50-100 or more Youtube videos every day, including yesterday. Today it simply stopped working. The only symptom is a complete hang. Rebooting the entire system has no effect.
Thank you for your attention.

Forget it. Fixed it by going to Reddit and someone said --force-ipv4 would fix it. It did. Would be nice if youtube-dl would report something like that, however.  Programs should test for the resources they require to function and report when those resources are missing.


GUI getControlByName

Adding @PirateJC for ux check. https://github.com/BabylonJS/ThePirateCove/issues/93

like this?

wait actually what is @PirateJC and @PatrickRyanMS thoughts? While by key would be better technically is it too much to have users type an extra parameter?

I'm not sure I follow the question. Are we needing to pass a key value instead of the name of the control? It would be a more straight path for the user to be able to get by the name they gave the control instead of an ID or key value that we assign since the user will have to find that value to pass. Is that what we are suggesting here?