spotify stress test

Spotify Creation Request
Spotify transformed music listening forever when we launched in 2008. Our mission is to unlock the potential of human creativity by giving a million creative artists the opportunity to live off their art and billions of fans the opportunity to enjoy and be inspired by these creators. Everything we do is driven by our love for music and podcasting. Today, we are the world’s most popular audio streaming subscription service with a community of more than 299 million users.
Slogan

Music for everyone.

Size

10001+

Links

Company
Company Verified
Careers
Careers Verified
Icon
Icon Verified
glassdoor
glassdoor Status
twitter
twitter Status
facebook
facebook Status

https://www.spotify.com/
✅
https://www.lifeatspotify.com/jobs
✅
https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/Spotify_App_Logo.svg/1200px-Spotify_App_Logo.svg.png
✅
https://www.glassdoor.com/Overview/Working-at-Spotify-EI_IE408251.11,18.htm
✅
https://twitter.com/Spotify
❌
https://www.facebook.com/Spotify/
✅

Failed to parse yaml: # if your company is using lever AST, you can simply define the lever board url, and
all the jobs will be automatically fetched from there
note: if lever board jobs are prioritized, you can remove the duplicated careers section
lever_board: https://jobs.lever.co/spotify/
important: only one careers object per file.
careers:

Spotify Creation Request
Spotify transformed music listening forever when we launched in 2008. Our mission is to unlock the potential of human creativity by giving a million creative artists the opportunity to live off their art and billions of fans the opportunity to enjoy and be inspired by these creators. Everything we do is driven by our love for music and podcasting. Today, we are the world’s most popular audio streaming subscription service with a community of more than 299 million users.
Slogan

Music for everyone.

Size

10001+

Links

Company
Company Verified
Careers
Careers Verified
Icon
Icon Verified
glassdoor
glassdoor Status
twitter
twitter Status
facebook
facebook Status

https://www.spotify.com/
✅
https://www.lifeatspotify.com/jobs
✅
https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/Spotify_App_Logo.svg/1200px-Spotify_App_Logo.svg.png
✅
https://www.glassdoor.com/Overview/Working-at-Spotify-EI_IE408251.11,18.htm
✅
https://twitter.com/Spotify
❌
https://www.facebook.com/Spotify/
✅

Failed to parse yaml: # if your company is using lever AST, you can simply define the lever board url, and
all the jobs will be automatically fetched from there
note: if lever board jobs are prioritized, you can remove the duplicated careers section
lever_board: https://jobs.lever.co/spotify/
important: only one careers object per file.
careers:

url:

Spotify Creation Request
Spotify transformed music listening forever when we launched in 2008. Our mission is to unlock the potential of human creativity by giving a million creative artists the opportunity to live off their art and billions of fans the opportunity to enjoy and be inspired by these creators. Everything we do is driven by our love for music and podcasting. Today, we are the world’s most popular audio streaming subscription service with a community of more than 299 million users.
Slogan

Music for everyone.

Size

10001+

Links

Company
Company Verified
Careers
Careers Verified
Icon
Icon Verified
glassdoor
glassdoor Status
twitter
twitter Status
facebook
facebook Status

https://www.spotify.com/
✅
https://www.lifeatspotify.com/jobs
✅
https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/Spotify_App_Logo.svg/1200px-Spotify_App_Logo.svg.png
✅
https://www.glassdoor.com/Overview/Working-at-Spotify-EI_IE408251.11,18.htm
✅
https://twitter.com/Spotify
❌
https://www.facebook.com/Spotify/
✅

Careers Links

URL
Verified
URL
Verified

https://jobs.lever.co/spotify/3fdc8a58-2f66-4872-b839-9d3593e2d7bf
✅
https://jobs.lever.co/spotify/
✅

Job board data has been pulled to Gandi. Jobs count: 63


upgrade to php7.2

formapro/nginx-php-fpm:latest is based on php 7.2

May PR again later only for affected files src/Model/Payment.php


Fixes for Gradle 8 and tidy ups

Fixes for Gradle 8 and tidy ups
https://github.com/ministryofjustice/hmpps-template-kotlin/pull/140 broke builder_docker -  https://app.circleci.com/pipelines/github/ministryofjustice/hmpps-template-kotlin/1107/workflows/0f648224-0b09-4ae7-8a8f-f327927fcde5/jobs/2636
See https://docs.gradle.org/8.0/release-notes.html#java-toolchains-improvements

This is WIP - see Slack message

Closing as has been done with https://github.com/ministryofjustice/hmpps-template-kotlin/pull/156


[develop] Handle 'unused' non-optional gates correctly in pickles

This is #13531 against develop. This uses the proof-systems counterpart https://github.com/o1-labs/proof-systems/pull/1145.
Checklist:

[ ] Dependency versions are unchanged

Notify Velocity team if dependencies must change in CI

[ ] Modified the current draft of release notes with details on what is completed or incomplete within this project
[ ] Document code purpose, how to use it

Mention expected invariants, implicit constraints

[ ] Tests were added for the new behavior

Document test purpose, significance of failures
Test names should reflect their purpose

[ ] All tests pass (CI will check this if you didn't)
[ ] Serialized types are in stable-versioned modules
[ ] Does this close issues? List them

!ci-build-me

!ci-build-me

Changes approved in https://github.com/MinaProtocol/mina/pull/13531. Force-merging.


Release 1.94

Descriptive summary
Release Manager: @hweng
Product Owner: @EncinasIsabel
Operations: @jhriv
Features/Bug Fixes to verify:

[x] Updated circleci config as the old one was not supported by CircleCI anymore.
[x] Update pdf viewer upon the the client request.

@jhriv The new features were merged into master branch, and it is ready to deploy.

Deployed to production.

Approved by @EncinasIsabel

Thank you Huawei, I was finally able to log in.


Update DNX overview with latest changes

LGTM, merging.

@blackdwarf did you see the comment from @Eilon?

Just saw it. Makes sense, will change.


Update to Axis 1.8.X

Axis 1.7.9 came out 2 years ago and contain security issues,
it has incompatible change with the 1.8 version, the rest of the application are still under 1.7.9 so we must still use this version and cannot upgrade to the newer one

Hi @i742750,
The switch to Axis2 1.8.2 wasn't straightforward and seemed to require additional effort from us.
As the soap module (Axis2 is used here) is deprecated, we decided to not spend additional effort here.
You could also consider making a contribution to us to update Axis2 as unfortunately I don't think this would be prioritised anytime soon on our side.
Regards,
Kavitha

I'm sorry to close the ticket, but as long as (presumably) no-one is willing to work on it, there's no reason to keep it open.
@jjtang1985

(fix state)


Renaming function pointers in decompiler

9.2 / windows 10
Within the decompiler window, I have something like  param_1->proc = FUN_AABBCCDD;.  Attempting to rename the function results in a error pop-up Rename Failed: Memory storage not found for global variable.  Rename from listing still works and renaming other globals (DAT_) works in either.

This was fixed in 9.2.1 by @astrelsky,  see #2415

This was fixed in 9.2.1 by @astrelsky,  see #2415

Thanks @caheckman   I did try to repro the other day and couldn't, guess I should have updated here

Thanks @caheckman   I did try to repro the other day and couldn't, guess I should have updated here


Widget Support

Support For Widgets On macOS And iOS/iPadOS.

Completed In Release: v1.0
Commit: https://github.com/markydoodled/Timetable/commit/ed2f636eefba12a174c683fbe9c4dfa714151cf0


Diff support in browsers

Would be great.
(I tried to search for this first, sorry if this is a duplicate.)

There now is, thanks to http://unexpected.js.org/ :)


add get_translation() method to Sequence

why does this not exist already!

Closing as it's a method on the NucleicAcidSequence classes


chore: delete the cache key first before updating the db

[ ] change all the put/patch requests

done by #387


Hickory

closes #61
Opening this one early for visibility and convenience.
Todo:

[ ] add the library to the project.clj and the native-image parameters used
[x] amend the my-library/src/simple/main.clj to use the library
[ ] amend the my-library/README.md with the info you discovered.

Note native-image is not a command under a normal archlinux installation of graalvm.
You need to specify the full qualified path.
I modified the project-clj to reflect that.

I'd reasonably expect anyone who wants to use hickory to use some requests library too.
Would it be reasonable to extend my demo to cover that?

First observation: org.clj-commons/hickory doesn't compile with graalvm, while hickory/hickory does.
This might indicate some regression on 0.7.2+ that I might investigate via a git bisect.

Converting to draft again as I'm now maintainer of hickory and working on ironing out the incompatibility in clj-commons/hickory#77

I consider this done

@BrunoBonacci

thank you


Mutually recursive types

I've been meaning to file this for a year, but better late than never I guess...
While we haven't encountered a need so far, we need a way to represent mutually-recursive types[1]. I'm assuming we can just go for the normal OCaml/SML:
type odd 'z =
| OddS : even 'n -> odd (S 'n)
and even 'z =
| EvenZ : even Z
| EvenS : odd 'n -> even (S 'n)

I assume, while doing this, it may also be useful to add support for mutually-recursive class instances.
[1] So technically you can represent mutually-recursive types as an inductive type indexed by a "which type is this" type, but I'd rather not.

We also need mutually recursive type functions which is going to be a bit more complicated to write..


feat: add geometry data type

Add new token GEOMETRY and new data type Geometry.

Bindings should also be updated for new type.

Bindings should also be updated for new type.↳

Done, PTAL again.

error[source-not-allowed]: detected 'git' source not explicitly allowed
    ┌─ /home/runner/work/bendsql/bendsql/Cargo.lock:107:16
    │
107 │ geozero 0.11.0 git+https://github.com/georust/geozero?rev=1d78b36

error[source-not-allowed]: detected 'git' source not explicitly allowed
    ┌─ /home/runner/work/bendsql/bendsql/Cargo.lock:107:16
    │
107 │ geozero 0.11.0 git+https://github.com/georust/geozero?rev=1d78b36

I don't know how to fix this...

git dependency is not allowed here.

https://github.com/georust/geozero

https://github.com/georust/geozero/pull/188#issuecomment-1920770994 I asked but no response...

Maybe we could fork and publish to a new crate?

Maybe we could fork and publish to a new crate?↳

This is a bit strange. GeoRust is an active development community, but I don't quite understand their release strategy.

geozero seems released 0.12.0


adding subscriber watcher

Codecov Report

Merging #339 (b51c908) into master (cdc03ee) will decrease coverage by 0.07%.
The diff coverage is 23.80%.

@@            Coverage Diff             @@
##           master     #339      +/-   ##
==========================================
- Coverage   44.19%   44.11%   -0.08%
==========================================
  Files         123      124       +1
  Lines        6377     6397      +20
==========================================
+ Hits         2818     2822       +4
- Misses       3335     3351      +16
  Partials      224      224

Flag
Coverage Δ

integration
30.02% <ø> (ø)

unittests
41.94% <23.80%> (-0.07%)
:arrow_down:

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

Impacted Files
Coverage Δ

internal/subscriber/core.go
0.00% <0.00%> (ø)

internal/subscriber/retry/delayconsumer.go
45.37% <ø> (-0.46%)
:arrow_down:

internal/subscriber/subscriber.go
14.37% <0.00%> (-0.29%)
:arrow_down:

internal/subscriber/subscriber_watcher.go
0.00% <0.00%> (ø)

internal/subscriber/metrics.go
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


compensator, disboard (logical-conflict)

This pull request was generated by the 'mq' tool

/trunk merge


Updated information on variables in read me

Updated information on the variables in the read me file of this example.

Hi! I noticed that my pull request was approved—thank you!  Just wondering if the checks will be run again/it will be merged? Is there anything I need to do to help with this? Thanks!


Models imported from Maya

There seems to be one or more problems when creating slots from fbx files exported from maya.
Callstacks may look likt his:
ArgumentNullException: Argument cannot be null.
Parameter name: key
System.Collections.Generic.Dictionary2[UnityEngine.Transform,UnityEngine.Transform].TryGetValue (UnityEngine.Transform key, UnityEngine.Transform& value) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:58 UMA.SkinnedMeshCombiner.RecursivelyMapToNewRoot (UnityEngine.Transform bone, UnityEngine.Transform hierarchyRoot, System.Collections.Generic.Dictionary2 boneMap)
UMA.SkinnedMeshCombiner.RecursivelyMapToNewRoot (UnityEngine.Transform bone, UnityEngine.Transform hierarchyRoot, System.Collections.Generic.Dictionary2 boneMap) UMA.SkinnedMeshCombiner.RecursivelyMapToNewRoot (UnityEngine.Transform bone, UnityEngine.Transform hierarchyRoot, System.Collections.Generic.Dictionary2 boneMap)
UMA.SkinnedMeshCombiner.CloneBoneListInNewHierarch y (UnityEngine.Transform rootBone, UnityEngine.Transform[] bones, System.Collections.Generic.Dictionary2 boneMap) UMA.SkinnedMeshCombiner.CombineMeshes (UMA.CombineInstance& target, .CombineInstance[] sources, UnityEngine.Transform rootBone, System.Collections.Generic.Dictionary2 boneMap)
UMA.SkinnedMeshCombiner.CombineMeshes (UnityEngine.SkinnedMeshRenderer target, .CombineInstance[] sources, System.Collections.Generic.Dictionary`2 boneMap)
UMA.UMADefaultMeshCombiner.UpdateUMAMesh (Boolean updatedAtlas, UMA.UMAData umaData, System.String[] textureNameList, Int32 atlasResolution)
UMA.UMAGeneratorBuiltin.UpdateUMAMesh (Boolean updatedAtlas)
UMA.UMAGeneratorBuiltin.HandleDirtyUpdate (UMA.UMAData data)
UMA.UMAGeneratorBuiltin.OnDirtyUpdate ()
UMA.UMAGeneratorBuiltin.Update ()
I've already spent a few hours without locating the problem.

I'm receiving this error when trying to create the slot via the MaterialBuilder with blender exported fbx.
I'm using Blender v2.73 and Unity v 4.6.3f1

Some additional information.... I have been tracing the logic through the code and found that the logic was unable to find the "Hips" bone on the SkinnedMeshRender of the data parameter in the AlignBindPose method on the SkinnedMeshAligner class. I checked the skinned mesh render of my imported fbx and it appears to be selecting the Global bone as the root bone. I checked the other assets and they appear to have their root bone set to "Hips". I am now investigating if it is a problem with importing to Unity or if it is a problem with exporting from Belender. Either way the problems seems to be that it can't find the "Hips" bone. The bone is actually present in the bones of the SMR but it is below the Global bone and not a parent bone thus the existing code/logic can't find it as it always looks up to the parent and attempts to find the child bone. In this case the "Hips" bone is 2 levels down so it is never found.

I believe the issue with root bones above "hips" has been corrected in UMA2 via the null check in commit 59f8f98 in DeathToScriptableObjects.

Thanks for the feedback. I did find that there is a know issue with Blender v2.73a exporting FBX version 7.4 Binary.
Blender v2.73a Settings (These settings worked for me)

The fast way to solve this is to bind the skeleton using "bind to: selected joints" and only include bones starting at Hips bone hierarchy.
This prevents Maya from including UMA_Male_Rig, Global and Position on the vertex weight group and add skin influence to those. That´s what was generating the errors I´ve received so far.
This also solves the error RhodeRash posted (https://github.com/huika/UMA/issues/14) concerning Material Builder not finding "Hips" bone on the SkinnedMeshRender.


docs: fix grammar

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


Support M1 (arm64) Macs

original issue came up in
troubleshooted to needing to use -arm64 based images from https://quay.io/repository/singularity/singularity?tab=tags

so we need to

establish building both amd64 and arm64 docker images (now only amd64 and likely not automated)
adjust singularity_cmd to switch to -arm64 whenever uname -m says arm64.

NB I was wondering if we could move provisioning of image we do in https://github.com/ReproNim/containers/blob/master/scripts/Dockerfile.singularity-shim to somehow to be done at initial run-time -- then we could avoid needing to build our image at all. But it would also make it less trivial to update and harder to troubleshoot.   so let's stay with built images but may be move over to quay.io for them

current show stopper is seems that quay does not provide option for the builders to be of another architecture, so the build of -arm64 flavor fails.  May be we are doomed to automate builds on github actions instead of relying on quay, as @vsoch did in http://github.com/singularityhub/singularity-docker//blob/HEAD/.github/workflows/build-containers.yaml

@yarikoptic we don't build in quay, we just push there.

oh right you noted that, and this is a totally different issue! lol wonk wonk someone needs to put on her glasses... squintysarus


Test the APIs - Bad Gateway - Internal server error - errorMessage: e is not defined

Hi there,
I've opened this issue cos #112 is too busy and long - hope that is ok.
I'm getting the following error:
Making API request
{ status: 502,
  statusText: 'Bad Gateway',
  data: { message: 'Internal server error' } }

CloudWatch logs shows:
{
    "errorMessage": "e is not defined",
    "errorType": "ReferenceError",
    "stackTrace": [
        "failure (/var/task/webpack:/libs/response-lib.js:10:42)",
        "_callee$ (/var/task/webpack:/create.js:31:24)",
        "tryCatch (/var/task/node_modules/regenerator-runtime/runtime.js:62:40)",
        "Generator.invoke [as _invoke] (/var/task/node_modules/regenerator-runtime/runtime.js:296:22)",
        "Generator.prototype.(anonymous function) [as throw] (/var/task/node_modules/regenerator-runtime/runtime.js:114:21)",
        "step (/var/task/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)", "/var/task/node_modules/babel-runtime/helpers/asyncToGenerator.js:30:13",
        "<anonymous>",
        "process._tickDomainCallback (internal/process/next_tick.js:228:7)"
        ]
}

Dependencies:
"devDependencies": {
    "aws-sdk": "^2.334.0",
    "babel-core": "^6.26.3",
    "babel-loader": "^7.1.4",
    "babel-plugin-source-map-support": "^1.0.0",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-preset-env": "^1.7.0",
    "babel-preset-stage-3": "^6.24.1",
    "jest": "^21.2.1",
    "serverless-offline": "^3.25.6",
    "serverless-webpack": "^5.1.0",
    "webpack": "^4.16.2",
    "webpack-node-externals": "^1.6.0"
  },
  "dependencies": {
    "babel-runtime": "^6.26.0",
    "source-map-support": "^0.4.18",
    "uuid": "^3.3.2"
  }

Local versions:

npm -v = 6.4.1
node -v = v10.11.0
serverless -v = 1.32.0

Any suggestions why is this happening?
Thanks

Hmmm I'm not sure what that error is. But does your libs/response-lib.js look like this?
https://github.com/AnomalyInnovations/serverless-stack-demo-api/blob/master/libs/response-lib.js
Also, we moved our chapter discussions here - https://discourse.serverless-stack.com

Hmmm I'm not sure what that error is. But does your libs/response-lib.js look like this?
https://github.com/AnomalyInnovations/serverless-stack-demo-api/blob/master/libs/response-lib.js

I had an extra console.log(e) there...sorry...i will try it again and will let you know..
thanks


Add option to pass in instance discovery response

After further discussion, we decided not to merge #149 due to:

Storing instance discovery metadata in token cache increases the number of times that an application needs to access token cache. This increases the possibility of lock contention.
Adds complexity to token cache format, which multiple libraries need to agree on.
Same functional requirements can be met with simpler approach

This PR adds the option for developer to pass in instance discovery metadata, and meets the same functional requirements.  Accompanying wiki post at https://aka.ms/msal4j-instance-discovery

in description you mentioned that metadata can be requested from https://{host}/common/discovery/instance and provided to app, but as i understand form previous conversation this endpoint is not available in region specific configs.

@SomkaPe This is a good point. I will update the wiki page with instructions for region specific configuration.

If Instance Discovery Response set manually, during construction of application object we might want to check "validate authority" flag, and throw Exception if it is true.
"Authority validation" feature is essentially check that authority is known to AAD (we do it by issuing instance discovery request to hardcoded AAD endpoint).
So, if we use provided by developer instance discovery response, we do no validation at all.
Also we should discuss option of throwing exception if application object is configured with ADFS or B2C authority and "validate authority" flag is set as true.
@henrik-me, @bgavrilMS, @navyasric, @rayluo   it would be nice to hear yours opinions as well.

@SomkaPe - ValidateAuthority is a good intention but a bad API. Users don't understand it and they shouldn't be asked to understand. AFAIK MSAL.Android even removed this API and we should strive to do the same, but bear in mind this is a breaking change and since we're all GA now, breaking changes have a much higher bar.
In the end, what we want to protect against is the user calling an hacked IdP. But in 99% of the cases, the authority is hardcoded, I have yet to see applications that call an API, get a 401, extract the authority blindly and start talking to it.
As such, in my opinion, we should not throw if the user doesn't set ValidateAuthority properly, i.e. for B2C ValidateAuthority does not make sense so just ignore the param. For ADFS, ValidateAuthority makes sense, there is a specific API for it.
So the general algorithm is:

try the user metadata first (if it exists). If the authority is not found in the user json, throw (bad config).
try the instance metadata static cache second, do not throw
call the instance discovery endpoint. If it fails with invalid_instance throw. If it fails with anything else (especially timeouts), DO NOT throw (this is to increase availability of AAD). It's true that in this case we might not understand aliases, but this is much more preferable to crashing people's apps.

I agree that we should get rid of ValidateAuthority whenever we next introduce breaking changes.
@SomkaPe Instead of throwing exception, the other would be to clearly document in the AadInstanceDiscovery, ValidateAuthority, and B2cAuthority API JavaDoc that validate authority will only be validated if it's an AAD/ADFS authority and instance discovery metadata is not passed in.

I agree that we should get rid of ValidateAuthority whenever we next introduce breaking changes.
@SomkaPe Instead of throwing exception, the other would be to clearly document in the AadInstanceDiscovery, ValidateAuthority, and B2cAuthority API JavaDoc that validate authority will only be validated if it's an AAD/ADFS authority and instance discovery metadata is not passed in.

Java Doc might be good enough,  ... only be validated if it's an AAD/ADFS authority  - may be if it is AAD authority

:shipit:


Add xtts in readme table

I think it's probably a mistake that xtts isn't shown in the readme

Thanks yes @WikiLucas00, the container needs updated per https://github.com/dusty-nv/jetson-containers/issues/696 , and I did like the quality of xtts, after optimizations it was still .9-1x realtime on AGX Orin though, which when you factor in everything else needing GPU, TTS needs to be more like 5-10x realtime (maybe newer xtts is faster now?)


I am wondering if the Flutter itself could call clean on a project after an upgrade.

Many people just forget to call clean when they do an upgrade and start the next time a project. Can flutter not call clean itself after an upgrade happens to avoid misleading errors? Is there a way to delete breakpoints as well after upgrade  (Might be related to #30381)
C:\Projects\obdchk>flutter doctor -v
[√] Flutter (Channel master, v1.5.3-pre.33, on Microsoft Windows [Version 10.0.17763.437], locale en-US)
• Flutter version 1.5.3-pre.33 at c:\sdks\flutter
• Framework revision eaf058d81d (4 hours ago), 2019-04-19 08:50:30 -0700
• Engine revision ca31a7c57b
• Dart version 2.3.0 (build 2.3.0-dev.0.1 cf4444b803)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\ride4\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[√] Android Studio (version 3.4)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 34.0.2
• Dart plugin version 183.5901
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[√] IntelliJ IDEA Community Edition (version 2017.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.5
• Flutter plugin version 22.2.2
• Dart plugin version 173.4700
[√] VS Code, 32-bit edition (version 1.30.1)
• VS Code at C:\Program Files (x86)\Microsoft VS Code
• Flutter extension version 2.21.1

The flutter tool has no knowledge of all the potential user created projects and their build directories. This could only work if it was always called from the root of a flutter project, and then only for a single project on a device.

Is there not information from the old build in the build directory about the flutter version. If not, would it not be possible to add that and compare it with the current. If not the same -> clean

@jonahwilliams As flutter upgrade is mostly from a projects folder like using the terminal of the IDE I think it would be a reasonable idea.
Alternatively could flutter run check if the flutter version has changed since the last build?

@jonahwilliams can we reopen this. I think doing this would avoid many undesired problems, especially for new users.

I'm re-closing this issue - the tool should not need to clean ever, and doing so after a project upgrade will hide bugs and not fix them


Optional chaining control flow cannot narrow discriminated unions.

Bug Report

🔎 Search Terms
optional chaining discriminated union control flow
🕗 Version & Regression Information

This is the behavior in every version I tried.

⏯ Playground Link

Playground link with relevant code
💻 Code

interface Position {
  x: number;
  y: number;
  computed?: never;
}

interface RelativePosition {
  x: number | string;
  y: number | string;
  computed: Position;
}

declare var pos: Position | RelativePosition;

function getComputedX(pos: Position | RelativePosition): number {
  return pos.computed?.x ?? pos.x;
  // error here. Expect to be type "number", but actually "number | string";
}

if (pos.computed?.x !== undefined) {
  pos; // Expected to be type "RelativePosition", but actually "Position | RelativePosition"
  pos.computed;
  // Inconsistence here.
  // If "pos" is "Position | RelativePosition", then "pos.computed" should be "Position | undefined".
  // If "pos" is "RelativePosition", then "pos.computed" should be "Position". (And this is expected.)
  // But here "pos" is "Position | RelativePosition", but "pos.computed" is "Position".
  // The inconsistence make me think it is a bug instead of a suggestion.
}

Possibly related: https://github.com/microsoft/TypeScript/pull/34597

I think this is essentially a duplicate of #32399/#18758, but is notably not fixed by #38839 (it looks like maybe that’s limited to narrowing with typeof).

The original repro in #18758 can be changed very slightly to show this bug:
type A = { type: "a" }

type X = { type: A, a: string }
type Y = { type?: undefined, b: string }

declare let x: X | Y

if (x.type?.type === "a") {
	x.a // Type Error
}

Interesting. I remember I try to handle expression with optional chain, but it seems I do not do it well.
However, I would have a look at this.
Thanks a lot for the case @whzx5byb and analytics @andrewbranch !

This is fixed in #38839 now!

This is fixed in #38839 now!


fixed typo in container name in README.md

There was a typo in the table in part 1: Select Worker Image Version
I you don't pay attention you might not be able to pull the image

LGTM, but I have no approval rights.


Update to editor and plugins that support inline SVG icons

Overview
Most of the work was actually done by moving to pnpm. We still have errors loading the fonts, which shouldn't be hard to fix by adding the right webpack loader to handle them, but I wasn't sure if we wanted to increase the large bundle size even more.
connected issues and PRs:
Branch follows from #250 as that enables this.
Requires https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/407 so need to change that to be a file: dependency to get icons from plugins to work.
Closes #243
Setup
Change plugins dep to be file:../path/to/ember-rdfa-editor-lblod-plugins.
How to test/reproduce
Everything should work, including the 'plugins' sample page. All icons should be visible and no requests for svgiconset should be seen.
Challenges/uncertainties
I couldn't figure out the configuration of postcss to process rems to px, which will be needed if we bring back the webcomponent version, but is not currently needed for the 'official' support path.
There's a peerdep error from ember-environment-banner. This is indeed broken, so the icons fail to load and trigger a request to symbolset.svg. Since this is only used in testing and I had trouble updating that repo, I thought this was okay to merge as-is, but let me know if I should wait for a new version of the banner that supports AU v3.
Checks PR readiness

[x] UI: works on smaller screen sizes
[x] UI: feedback for any loading/error states
[x] Check cancel/go-back flows
[x] Check database state correct when deleting/updating (especially regarding relationships)
[x] changelog
[x] npm lint
[x] no new deprecations

go for the merge :+1:


soco-cli: 0.4.21 -> 0.4.55

Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 216287 run on aarch64-darwin 1

1 package built:

soco-cli

Thanks!

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

1 package built:

soco-cli


[Logo Injection][FrictionlessQA] Add Logo to Frictionless block

Adds following features:

Inject logo into frictionless-qa block

Resolves: https://jira.corp.adobe.com/browse/MWPW-153729
Steps to test the before vs. after and expectations:

Go to the link and check that the logo has been injected in branch link but not in stage

Pages to check for regression and performance:

https://fqa-logo-injection--express--adobecom.hlx.page/express/feature/image/remove-background?martech=off

Codecov Report
Attention: Patch coverage is 50.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 41.55%. Comparing base (a5d054d) to head (3c8d51c).
Report is 130 commits behind head on stage.

Files with missing lines
Patch %
Lines

...tionless-quick-action/frictionless-quick-action.js
50.00%
4 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #1192      +/-   ##
==========================================
+ Coverage   38.69%   41.55%   +2.85%
==========================================
  Files         116       96      -20
  Lines       25143    22634    -2509
==========================================
- Hits         9729     9405     -324
+ Misses      15414    13229    -2185

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Emulator UI: status bar is the wrong color and has asterisk symbol

Build 4.0.262-nightly
Status bar at the bottom of app has an * and is the wrong color. In light theme:

Dark theme:

Should be blue #007acc for all themes. (Was correct in Build version.)

Addressed in #915


Test builder class for easier testing

Since we start cover locales with tests it would be great to have easier tool to test the time, because sometimes it's sad to calculate, e.g. what is the result of adding 15 days to 18 of December, 2016. Moreover it would be great to have ability to "read" test written for other languages.
This PR introduces a class for easier testing. It wraps the timeago and provides human-friendly methods for manipulations with internal timeago().format method. Thanks to these interface it becomes intuitively clear about which piece of time you test regardless of the language.
How to use
tests/test-builder.js exports factory method that accepts the same arguments as the timeago function and returns an instance of the builder with familiar API.
const tb = require('../test-builder')(Date.now(), 'en');
// you don't need to worry about initial date value, in fact it doesn't matter at all

Instance API
register(code, fn, use)

Falls back to timeago().register method. 3rd argument tells to use registered locale.

useLocale(code)

Same as timeago().setLocale

getFormat(format)

Same as timeago().format

addSeconds(n)
addMinutes(n)
addHours(n)
addDays(n)
addWeeks(n)
addMonths(n)
addYears(n)

According to the name of method adds n amount of time to initial time and returns timeago statement. E.g:

var tb = require('../test-builder')(Date.now(), 'en');
console.log(tb.addSeconds(1) === 'a while'); // true

subSeconds(n)
subMinutes(n)
subHours(n)
subDays(n)
subWeeks(n)
subMonths(n)
subYears(n)

Same as add${Time} but subs provided amount of time. E.g.:

var tb = require('../test-builder')(Date.now(), 'en');
console.log(tb.subSeconds(1) === 'just now'); // true

add(obj)
sub(obj)
obj: {seconds?: number, minutes?: number, hours?: number, days?: number, weeks?: number, months?: number, years?: number}

Methods allow to combine several time statements, e.g.:

var tb = require('../test-builder')(Date.now(), 'en');
console.log(tb.add({years: 1, months: 12}) === 'in 2 years'); // true
console.log(tb.sub({years: 1, months: 12}) === '2 years ago'); // true

IMPORTANT

add/sub methods don't actually add or sub amount of time to initial date, instead they just make call to internal timeago().format method providing corresponding argument to it.
Take a look onto attached test file for the ru locale, hope you like it.
@hustcc why did you change your profile photo? It was cute 😜

Happy mid autumn day!
Thanks for your nice work, I will process later.

Very nice. So, I can move
var tb = require('../test-builder')(Date.now()).register('ru', require('../../locales/ru'), true);

to test/locale_test.js, and the tb instance as one parameter of locale test module
module.exports = function(t, tb) {
  // test seconds
  t.equal(tb.subSeconds(1), 'только что');
  t.equal(tb.subSeconds(10), '10 секунд назад');
  t.equal(tb.subSeconds(21), '21 секунду назад');
  // ...
};

I have change en, zh_CN, en_short 's testcases with TestBuilder, but other locales unchanged.

I like it
module.exports = function(t, tb) {

Will help you with other tests.

^_^, What is your time? why you are not sleeping ?

@hustcc it would be great to have 1-2 extra sleeping hours :sleeping: But I'm awake, it's 9am already. What about you?

14:41…

@hustcc wish you happy remaining of the day :smile:  there is 5 hours time difference between us, will take a note


windows_7 not working

Hi,
I am using Packer 0.10.1 and VirtualBox 5.0.28.
I have uploaded my windows_7.json file. I didn't change any of the other files.
windows_7.zip
==> virtualbox-iso: Downloading or copying Guest additions
virtualbox-iso: Downloading or copying: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Downloading or copying ISO
virtualbox-iso: Downloading or copying: http://care.dlservice.microsoft.com/dl/download/evalx/win7/x64/EN/7600.16385.090713-1255_x64fre_enterprise_en-us_EVAL_Eval_Enterprise-GRMCENXEVAL_EN_DVD.iso
==> virtualbox-iso: Creating floppy disk...
virtualbox-iso: Copying: ./answer_files/7/Autounattend.xml
virtualbox-iso: Copying: ./scripts/dis-updates.ps1
virtualbox-iso: Copying: ./scripts/hotfix-KB3102810.bat
virtualbox-iso: Copying: ./scripts/microsoft-updates.bat
virtualbox-iso: Copying: ./scripts/win-updates.ps1
virtualbox-iso: Copying: ./scripts/openssh.ps1
virtualbox-iso: Copying: ./scripts/oracle-cert.cer
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Attaching floppy disk...
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 3993)
==> virtualbox-iso: Executing custom VBoxManage commands...
virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1477446704 --memory 2048
virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1477446704 --cpus 2
==> virtualbox-iso: Starting the virtual machine...
virtualbox-iso: The VM will be run headless, without a GUI. If you want to
virtualbox-iso: view the screen of the VM, connect via VRDP without a password to
virtualbox-iso: <IP_ADDRESS>:5972
==> virtualbox-iso: Waiting 2m0s for boot...
==> virtualbox-iso: Typing the boot command...
==> virtualbox-iso: Waiting for WinRM to become available...
==> virtualbox-iso: Timeout waiting for WinRM.
==> virtualbox-iso: Unregistering and deleting virtual machine...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Timeout waiting for WinRM.
==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Timeout waiting for WinRM.
==> Builds finished but no artifacts were created.

Don't waste your time running 'packer-windows/windows_7.json' on a Mac.


how to access custom variables ( defined in .env ) in craco.config.js ?

I want to change the @antd-prefix in CracoAntDesignPlugin, like below:
/* craco.config.js */

module.exports = function () {
  console.log('env....', process.env.REACT_APP_ANTD_PREFIX);
  return {
    eslint: {
      enable: true,
      mode: 'file',
    },
    plugins: [
      {
        plugin: CracoAntDesignPlugin,
        options: {
          customizeTheme: {
            '@ant-prefix': process.env.REACT_APP_ANTD_PREFIX,
          },
          customizeThemeLessPath: path.join(
            __dirname,
            'src/styles/antd.theme.less'
          ),
        },
      },

REACT_APP_ANTD_PREFIX is already defined in .env, but I got undefined here. Is there any way to get the right result ?

@patricklafrance am also facing this issue, any solution for this ?

@patricklafrance am also facing this issue, any solution for this ?

In my situation, REACT_APP_ANTD_PREFIX is not related to different environment, so I placed it into the package.json file instead.
So, in a tricky way. You can set different key in package.json. And use WhenDev or WhenProd in craco.config.js to access different value.
// package.json
"devPrefix": "antd",
"prodPrefix":  "foo"

// craco.config.js

const { whenDev, whenProd  } = require('@craco/craco');
const { devPrefix, prodPrefix} = require('./package');

... whenDev(() =>{
    ... devPrefix
})

... whenProd  (() =>{
    ... prodPrefix
})

@Techiu thanks for the suggestion, here I have placed the config in my .env file and am trying to access the value inside craco.config.js like  the below.
/* .env */
REACT_APP_FOO="bar"

/* craco.config.js */
console.log('env....', process.env.REACT_APP_FOO);

In this case am still getting undefined in the console, are you getting the value by any chance ?

I think I have found a solution: Use whenDev/whenProd: https://github.com/gsoft-inc/craco/blob/master/packages/craco/README.md#when-whendev-whenprod-whentest

Try: Install dotenv then add require('dotenv/config') at the top of your craco.config.js

Thank you @namnm your tip resolved my undefined issue, thanks a ton.

Try: Install dotenv then add require('dotenv/config') at the top of your craco.config.js

I did it, but I only got variables in .env file, I cannot got variables in .env.development or .env.production file, so what should i do?

@waantony Please read the documentation of dotenv:
https://github.com/motdotla/dotenv#options
https://github.com/motdotla/dotenv#what-happens-to-environment-variables-that-were-already-set

@waantony if ur trying to implement this in CRA, you can try this pkg https://www.npmjs.com/package/dotenv-cra as well.

If you use CRA, you can just import the react script that loads the env files.
After this line in your craco.config.js file:
require('react-scripts/config/env');

you will able to access the env vars defined in your env files.


Leaky Remote construction

The Remote::new function allows an unsafe Verified construction.

Also, this looks like a leaky function, but a second pair of eyes might help confirm that :)

Originally posted by @FintanH in https://github.com/radicle-dev/heartwood/pull/37#discussion_r992565095

Actually, I'm completely wrong after messing with the code. The shared V parameter ensures that the Remote will be correct. However, the verified: PhantomData<V> isn't needed because of the refs field.


not getting the link of the uploaded object in amazon S3 bucket.

When an object gets uploaded to my s3 bucket, following properties gets generated in the bucket(when i see the property of an object in s3 bucket):
Bucket: 	loudshout-videos
Folder: 	s3UploadExample
Name: 	6805$ryan_gosling_hey_girl_meme_5_1agc9n9-1agc9o4.jpg
Link:
[This is a public link] https://s3-ap-southeast-1.amazonaws.com/loudshout-videos/s3UploadExample/6805%24ryan_gosling_hey_girl_meme_5_1agc9n9-1agc9o4.jpg
Size: 	37623
Last Modified: 	Mon Dec 21 18:28:34 GMT+530 2015
Owner: 	amit.vaish
ETag: 	744ad6adbc24fce70cd53484fd56cc0d
Expiry Date: 	None
Expiration Rule: 	N/A
I want the "Link:https://s3-ap-southeast-1.amazonaws.com/loudshout-videos/s3UploadExample/6805%24ryan_gosling_hey_girl_meme_5_1agc9n9-1agc9o4.jpg" to be returned back as a response ,once the file gets uploaded.
Please suggest how am gonna do that?
Cheers,

Ask on Stackoverflow not related to the client side js.

i didn't get you..client side js means what?
On Tue, Dec 22, 2015 at 1:15 PM, Danial Farid<EMAIL_ADDRESS>wrote:

Ask on Stackoverflow not related to the client side js.
—
Reply to this email directly or view it on GitHub
https://github.com/danialfarid/ng-file-upload/issues/1220#issuecomment-166543465
.

Your question is related to amazon S3 and how to return a url in the response not specific to this library ask it on stackoverflow.

Thank you so much
On 23-Dec-2015 10:09 pm, "Danial Farid"<EMAIL_ADDRESS>wrote:

Your question is related to amazon S3 and how to return a url in the
response not specific to this library ask it on stackoverflow.
—
Reply to this email directly or view it on GitHub
https://github.com/danialfarid/ng-file-upload/issues/1220#issuecomment-166939652
.


Setting a required Parent of a Child to null deletes the Child instead of throwing exception

Setting a required Parent = null of a  Child object deletes the Child object on SaveChanges
Using EF core 2.1.0-rc1-final on Sql Server 2016 localdb
Linqpad 5.26.01 program:
    public async Task Main()
    {
        var connectionString = @"Server=(localDB)\MSSQLLocalDB;Integrated Security=true;database=planetsDelMoonIssue";
        using (var db = new MyContext(connectionString))
        {
            db.Database.EnsureDeleted();
            db.Database.EnsureCreated();

            var earth = new Planet{ Name = "Earth" };
            earth.Moons.Add(new Moon { Name = "Moon" });
            var mars = new Planet { Name = "Mars" };
            mars.Moons.Add(new Moon { Name = "Phobos" });
            mars.Moons.Add(new Moon { Name = "Deimos" });

            db.Set<Planet>().Add(earth);
            db.Set<Planet>().Add(mars);

            db.SaveChanges();
        }

        using (var db = new MyContext(connectionString))
        {
            using (var tran = db.Database.BeginTransaction())
            {
                var moon = db.Moons.Include(m => m.Planet).FirstOrDefault(m => m.ID == 3);
                moon.Planet = null;
                Console.WriteLine(db.Entry(moon).State);
                db.SaveChanges();
                tran.Commit();
            }
        }

        using (var db = new MyContext(connectionString))
        {
            db.Moons.Include(p => p.Planet).ToList().Dump();
        }
    }

    // Define other methods and classes here
    public class Planet
    {
        public Planet()
        {
            Moons = new HashSet<Moon>();
        }
        public int ID { get; set; }
        public string Name { get; set; }
        public virtual ICollection<Moon> Moons { get; set; }
    }

    public class Moon
    {
        public int ID { get; set; }
        public int PlanetID { get; set; }
        public string Name { get; set; }
        public virtual Planet Planet { get; set; }
    }

    public class MyContext : DbContext
    {
        private string _connString;

        public DbSet<Planet> Planets { get; set; }
        public DbSet<Moon> Moons { get; set; }

        public MyContext(string connectionString) : base()
        {
            _connString = connectionString;
        }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder
                //.UseLazyLoadingProxies()
                .UseSqlServer(_connString);
        }
    }

The line revealing the bug is
moon.Planet = null;

As expected (I guess), moon's state is Modified at that point. However, SaveChanges doesn't throw an expected exception that moon.PlanetID can't be null, but it deletes moon!
If you might be wondering why on earth :) I'm doing this, it was to investigate EF-core's behavior in the light of my post here.

@GertArnold Since it is a required relationship (non-nullable FK) it is configured to cascade delete orphans by convention. See https://docs.microsoft.com/en-us/ef/core/saving/cascade-delete

Thanks @ajcvickers I understand what you say about cascaded deletes, but nothing is intended to be deleted here, neither the parent, not the child. This mocks a scenario in which a required parent is set to null inadvertently. That would be a bug in application code and IMO it should throw an exception somewhere, probably when the change tracker detects changes. It shouldn't lead to data loss.

@GertArnold Because it leaves an orphan, or because it is the navigation to the parent that is changed?
Note that the same argument can be made for any cascading behavior--for example, deleting a parent when it still has children. We discussed this at length, but ultimately decided to have cascading delete on by default because it seems the most useful.

@ajcvickers In an optional association, setting Parent = null leaves an orphan. That's intended behavior. No deletes are involved, it's just a SQL update. In a required relationship a parent shouldn't be nullified, normally, but noting keeps a developer from doing that in C# code. Of course it's buggy code if this happens, but still no delete should be involved.
I can't think of any application developer that will use this "feature" of setting a required parent to null in order to delete the child. I strongly plead for throwing an exception in this case, as EF "classic" does.

@GertArnold It's a delete orphans behavior, which was requested frequently on EF6.


Error from PngEncoder: Ffmpeg was not found. Have you installed the ffmpeg package?

I am using a Windows 8.1 x64 machine and I have ffmpeg installed under "C:\Program Files\ffmpeg". The directory is also added in the path and I don't understand what else I need to do. Does ffmpeg need to be installed in any specific directory?? I need to get a PngStream from my AR Drone 2.0 and the ar-drone node module seems to be working fine otherwise. If there is anything else I need to do please let me know as I don't have much experience working with node.

Just to confirm, if you open a command window and try to run ffmpeg from the command line, it works?

Yes but the .bat file I have set up in my directory is named ffmpeg64, so if I run ffmpeg64 from the command line, yes it works. In any case, I found a workaround by running my node script from ffmpeg itself instead of the node command line. Thanks anyway.


Update setting-up-exclusion-lists.md: removed unnecessary space

Thanks for the eagle-eye fix, @justanotheranonymoususer
Appreciate the PR
Eliot


Feature request: Pattern Chains

Outside the (not so jam-friendly) Song Mode it´s not possible to chain patterns on the fly.
But it could be as easy as on a 303 fourty years ago:
Let´s say we want to chain patterns 1-6 on the Pattern page.
Simply press (and hold) S1 and then press S6. Done.

You could potentially use one of the sequencer tracks to select pattern one of the other 7.
So if you want pattern 1 to play 4 times and then play pattern 2 4 times, you can use track 8 to select pattern. So if you want pattern 1 to play 4 times, you place a note in the sequencer that selects the next pattern and then you add a conditional setting like 4/4, so this trigger is only played the 4th time it's played. So it will play pattern 1 4 times, and 4th time it passes the step with the pattern data it will select the next pattern.
And so on.
But yeah, would be nice with something simpler, that doesn't take up a sequencer.


Add Python 3.8 on Travis CI test

Pull Request Test Coverage Report for Build 280

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 90.806%

Totals

Change from base Build 278:
0.0%

Covered Lines:
2163

Relevant Lines:
2382

💛  - Coveralls

Pull Request Test Coverage Report for Build 280

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 90.806%

Totals

Change from base Build 278:
0.0%

Covered Lines:
2163

Relevant Lines:
2382

💛  - Coveralls


Test suite failure in AdvanceTypes.hs with GHC 7.10.2

Citing from http://hydra.cryp.to/build/1047031/nixlog/1/raw:
Output for AdvanceTypes.hs has changed! Exiting with diff:
Test suite html-test: FAIL

Yeah, due to GHC change that I failed to catch before release. Will fix in next Haddock release (Soon™), for nixpkgs probably best to disable the tests for Haddock for now.

Just for the record, PatternSyns test case is also failing when using GHC 7.10.2, diff:
204,206c204
<
<                 ><
<
---
>               ><

@mrhania feel free to fix it if you have some minutes, it can take me a while to get around to it

I think this can b


Accordion example broken - No provider found for DateAdapter

Documentation Feedback
The accordion example is not working. I'm assuming due to this console error
 ERROR Error: MatDatepicker: No provider found for DateAdapter. You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.
https://material.angular.io/components/expansion/examples

Should've been fixed by https://github.com/angular/components/pull/18772.


Could someone please explain to me how momentum works in SGD's code?

Here's the code in question:
shapes = [K.get_variable_shape(p) for p in params]
moments = [K.zeros(shape) for shape in shapes]
self.weights = [self.iterations] + moments
for p, g, m in zip(params, grads, moments):
    v = self.momentum * m - lr * g  # velocity
    self.updates.append(K.update(m, v))

For the life of me I can't understand how that v is not always equal to -lr*g, since m is always just zero. The code for K.update(m,v) also only returns (m,v) without doing anything (in Theano backend). This guy seems to have figured it out https://github.com/fchollet/keras/issues/758 , but I can't. I know that we're dealing with tensors and stuffs, but that m is just zeros and is not a function of anything right? Could someone please enlighten me on this matter?

The answer is that the code you are reading isn't imperative, it's building a symbolic graph which is then executed repeatedly during training. I recommend you look up a tutorial on TensorFlow or Theano.

For fellow confused amateurs like me, here's what I think is the explanation. It only became clear to me after I looked up the _make_train_function() method in training.py which calls get_update(). The relevant snippet is here:
training_updates = self.optimizer.get_updates(
                                self._collected_trainable_weights,
                                self.constraints,
                                self.total_loss)
updates = self.updates + training_updates
# Gets loss and metrics. Updates weights at each call.
self.train_function = K.function(inputs,
                                 [self.total_loss] + self.metrics_tensors,
                                 updates=updates,
                                 **self._function_kwargs)

In short (at least in Theano's case), the K.update(m,v) method which got me confused indeed does nothing. But these update pairs are then passed on as the 'update' parameter to Theano's 'function' method. The update is performed each time the resulting function is called after calculating the function's output. This is how the value of m gets updated.


Additional fix for ignoring missing attributes

With the latest fix an error occur that it impossible to convert the empty (default) string to a valid time string. This pull request fixes that.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 250, in async_setup_entry
    await add_public_entities(False)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 220, in add_public_entities
    await data_handler.register_data_class(
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 181, in register_data_class
    await self.async_fetch_data(data_class_entry)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 139, in async_fetch_data
    await self.data[data_class_entry].async_update()
  File "/config/deps/lib/python3.9/site-packages/pyatmo/public_data.py", line 250, in async_update
    self.process(resp_data)
  File "/config/deps/lib/python3.9/site-packages/pyatmo/public_data.py", line 51, in process
    self.time_exec = to_time_string(resp.get("time_exec", ""))
  File "/config/deps/lib/python3.9/site-packages/pyatmo/helpers.py", line 29, in to_time_string
    return datetime.utcfromtimestamp(int(value)).isoformat(sep="_")
ValueError: invalid literal for int() with base 10: ''

Hi Alex,
thanks for investigating. I was actually considering to remove those variables completely as they are (at least in Home Assistant) not used.

Yeah, I wanted to change as minimum as possible since I don't know the code base. But I'm running this locally with HA now just fine.
I was getting a bit annoyed that I did not had any weather info there (so a lot of automations were broken) for over a week now. So I decided to checkout your fix.

Yeah, if it wont get merged today I'll probably go ahead and push a release tomorrow. Thanks for checking out the fix. I didn't notice any issue, but good that you found them.

Thanks again for your contribution. I’ve removed the variables altogether.


feat(tutorial): complete step 1

Creating a pull request to finish the Carbon Tutorial Step 1

FYI: I didn't use the template as it doesn't apply to this PR.

👍 Looks good - 🎉 You are one step closer to completion of the Carbon React tutorial and earning the digital credential.


Hey guys! Have you finish this work?

@taosue nope! Never found anyone to take it on. Needs someone with knowledge of Rails / Discourse to handle.


Set up simple BIP70 Payment protocol server on multibit.org

At the moment it is quite difficult to exercise BIP70 in real life as it's not supported by many merchants.
I suggest we set up a simple BIP70 payment protocol server on multibit.org so that:

Users can go to a donations page and see a BIP21 + BIP70 compliant donate link for a milli
They can click on it and go through the BIP70 workflow.

It would be useful for producing a 'real world' blog article too.
Payment protocol server can be based on PaymentProtocolHTTPSServer. Doesn't need any persistence and can just echo back the users comment as the PaymentACK memo.
The millis can go to the regular MultiBit donation address.

Since BitPay supports BIP70 there are many merchants who indirectly support payment protocol, but I still like your idea, because it is a cheap way for users to test the functionality. For me it would be nice if the user can enter the amount of mBTC to donate before the actual donation. Too much work?

Should be straightforward since we have the signing keys on the server. Perhaps the following:

User/developer clicks: https://multibit.org/donate.html
Server provides HTML5 containing form with explanatory text, QR code with BIP21 link and QR code with BIP72 link and form with custom fields over TLS
User clicks BIP21 link or uses QR code and can verify their wallet starts as normal
User clicks BIP72 link or uses QR code and can verify their wallet supports signed BIP70 PaymentRequests

Page contains an Advanced section allowing customised signed PaymentRequest entries.

User enters form values and clicks submit
Server responds with 201 CREATED with Location (for subsequent BIP72 tests using their values, cached for 1 hour) and entity of signed PaymentRequest with application/bitcoin-paymentrequest media type - this should trigger an external media handler dialog from the browser to select the wallet

Form fields are:
amount - textbox - expressed in BTC as per BIP21/72
expires - textbox - expressed as ISO8601 in UTC (e.g. 2000-01-02T12:34:56Z)
memo - textbox - the PaymentACK memo
sign - checkbox (checked) - response will be signed by multibit.org or not

All outputs will point to the MultiBit donation address and thus count towards BRIT fees for that wallet
The PaymentACK will respect refund addresses and use a media type of application/bitcoin-paymentack.
The PaymentACK will contain this memo:

Thank you for donating to MultiBit.
You sent a memo to us of: <Payment.memo>
You asked for this memo in response: <form.memo>

Should we pull this forward into Beta 8 to enable #483 to be properly closed?

Hmm, I was thinking more like
User enters form values and clicks submit

@gay-rowe I think it's worth shipping Beta 8 pretty much as is as it is almost done and has the Trezor 1.3.3 fix in. We know the BIP70 work wil need refining when it get used more widely - might as well get our initial support out.

OK. We'll leave it for Release 0.1. I'll make a copy of the requirements and put them into a new issue for the website since that's where it'll end up.
@ollekullberg I'll provide two endpoints: one for simple donations through BIP21/72 and another for more technical requirements

Sounds good

Do we need to do this for Release 0.1 ?
Feels like a nice-to-have rather than essential.

Agreed. Let's bump it to 0.2 so we can get 0.1 live faster. BIP70 is going to be an evolving situation.


NSRange and Attributed Strings

Add some tests and fixed some tests.

Cool, good additions.
Add ip_ prefix to all functions and :shipit:


Update doobie-core, doobie-h2, ... to 1.0.0-RC5

About this PR
📦 Updates

org.tpolecat:doobie-core
org.tpolecat:doobie-h2
org.tpolecat:doobie-hikari
org.tpolecat:doobie-postgres

from 1.0.0-RC2 to 1.0.0-RC5
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.tpolecat" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.tpolecat" }
}]

labels: library-update, early-semver-pre-release, semver-spec-pre-release, version-scheme:early-semver, commit-count:1

Superseded by #272.


Mail server?

Is a mail server included? If so, what is it?
Appreciate it.

List of included software is here: https://laravel.com/docs/5.8/homestead

Oh yes! I had seen the site but forgot to check. Sorry.


[cherry-pick][BugFix] Make ut more stable (#6355)

com.starrocks.common.ThreadPoolManagerTest.testNormal easy to get error result like following.
ava.lang.AssertionError: expected:<2> but was:<1>
	at com.starrocks.common.ThreadPoolManagerTest.testNormal(ThreadPoolManagerTest.java:63)

Add more time to make the test stable.
What type of PR is this：

[x] bug
[ ] feature
[ ] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

run starrocks_fe_unittest


Modify the submission mode

shfit+enter to Enter

Coincidentally, we did the same thing, this is the UI I'm currently developing.

Coincidentally, we did the same thing, this is the UI I'm currently developing.

Nice Job!
I think that is better Solution

OK

OK

The current typical AI websites usually do not set up such additional features. If I have to choose one, I think simply pressing Enter to submit would suffice.

I also get used to hitting the Enter key to submit 😀.

As the issue has been addressed by another PR https://github.com/sugarforever/chat-ollama/pull/100, thinking this PR can be closed.
Thanks.


Naive Linear Algebra

Very much related to the previous eqsolve example, but now using built in rationals (and guarding on rationals not being 0). A chaotic process of isolating variables and substituting them.
Something isn't working right now though. I'm a bit confused. Something seems to be breaking monotonicity. I remove facts and checks start passing.

Actually, it looks like checks pass 1 out of 4 times. Very odd.


The templates list will not update until the page is refreshed after deleting the catalog

Describe the bug

To Reproduce
Steps to reproduce the behavior:

Add a catalog.
Check the templates list.
Delete the catalog.
Go back to templates list page and click on a template that has been deleted.

The templates list will not update until the page is refreshed.

Expected behavior

Update the templates list after deleting the catalog.
Environment

Seal version:<PHONE_NUMBER>f6f6ba511c842b466ae843cc94e775
UI version: dev-c56395b

Additional context
Add any other context about the problem here.

Environment

Walrus version: main 5cf1d9ef1dcb6bd27a686a24454d760fdc19ec22
UI version: dev-5cf1d9e

Test Result: pass


Update Confluent Hub version

Hi!
Thanks for this awesome SMT!
Could you please also bump the Confluent Hub version here: https://www.confluent.io/hub/denisw/kafka-connect-jmespath
Thanks!

Hi,
you could download/clone/fork the repo and run:
mvn clean kafka-connect:kafka-connect
In the folder target/components/packages/denisw-kafka-connect-jmespath-1.0.1 you'll find what you need

Hey @ZZa,
I submitted version 1.0.1 to Confluent Hub yesterday via email (there is no direct upload at the moment). I hope it will be available in Confluent Hub in the coming days. Until then you can use the JAR file attached to GitHub Release, or compile it yourself as described by @mbrembilla (thanks!).


遇到个跨域问题

报错信息

Access to fetch at 'http://localhost:44394/api/v2/HelloWorld/GetCurrentUserInfo' from origin 'http://localhost:44396' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
后端已经配置跨域

实际上后端接口被调用了 但是前端是报错的

I found it new solulation add below code
app.UseCors(policy =>
policy.WithOrigins(CorsConfiguration.IPs.Split(','))
.AllowAnyMethod()
.AllowAnyHeader()
//.WithHeaders(HeaderNames.ContentType)


RasterData through MapServer endpoint

I have raster/tiles data in an Azure PostgreSQL/PostGIS database. Querying https://localhost:8080/pg/public.rasterdb/MapServer returns "Internal Server Error" with the following log message:
TypeError: Cannot read properties of null (reading 'f_geometry_column')     at C:\Users\...\pg-koop\pg-koop\node_modules\koop-provider-pg\src\model\index.js:17:27 {"level":"error","message":"error TypeError: Cannot read properties of null (reading 'f_geometry_column') on getGeometryColumn(public, rasterdb)","stack":"Error: TypeError: Cannot read properties of null (reading 'f_geometry_column') on getGeometryColumn(public, rasterdb)\n    at C:\\Users\\...\\pg-koop\\pg-koop\\node_modules\\koop-provider-pg\\src\\model\\index.js:44:16"}
Querying https://localhost:8080/pg/public.yem_geojson/FeatureServer/0/query works fine with feature data in another Azure PostgreSQL/PostGIS DB.

Would appreciate any guidance on how to get the MapServer endpoint working for raster/tiles data in an Azure PostgreSQL/PostGIS DB. Thanks!

Excuse my delayed response, raster tiles are not supported as they do not have a geometry column like vector data.  Would have to add support for raster column.

No problem, thanks for getting back. Any plans to support raster column some time soon?

No, not anytime soon


build(git): remove auto-merge master -> dev workflow

Pull Request Test Coverage Report for Build 4d67e8cd-2595-4527-957b-3bfba674a303

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.481%

Totals

Change from base Build 8958ea72-5341-45d1-9560-948674802669:
0.0%

Covered Lines:
1453

Relevant Lines:
1506

💛  - Coveralls


Expose beartype's __all__

Mypy is unhappy because beartype isn't explicitly specifying its exported attributes. I assume this is a mistake since this code is not deleted but commented out.
error: Module "beartype" does not explicitly export attribute "beartype"; implicit reexport disabled

...omg. Thanks so much for your fast-action fix, @pinkwah. As expected, you're totally right. This was a gross API oversight on our part. Let's merge this immediately for the betterment of all QA kind.
Also, may I say what a lovely apple-eating avatar you have there! My wife and I have a handful of dwarf zone-hardy apple trees dotted about our wilderness property.  I shake my fist every time I walk past one. :apple: :fist_raised: :apple:

It happens!
And thanks!  Turns out reindeer love apples that have been on the ground fermenting. They woke up to three of them passed out drunk in their garden.

Hah, hah... hah. Oh, @pinkwah. That's a timeless Norwegian moment for the ages. Piss-drunk reindeer hopped up on rotting cider apples is the memory I will cherish all week and repeat to my wife until she finally orders me to stop in a fit of exasperation.
We don't have reindeer stories in Ontario. I wish we did. I would spam GitHub issues and PRs like this non-stop with piss-drunk reindeer pics if we did, because I would personally feed them rotting cider apples.
Instead, we have raccoon stories. Raccoons are like reindeer – only smaller, deadlier, and more inclined to eat everything not already covered in cat fur. This is our story.
One morning, my wife and our Bengal cat were drinking coffee together on our lakeside dock – just like they always used to. The summer Sun beat warmly on their backs. The lake was quiet with the susurration of crickets.  My wife turns.
A raccoon juiced up on "edible forest mushrooms" is running full-tilt down the hill from our house to the dock. My wife screams and jumps five feet. The Bengal howls and dashes for cover under a canoe. The raccoon blindly barrels past both, leaps with a furious squeal at the edge of the dock, and cannonballs directly into the lake. Water erupts everywhere. My wife is still screaming. The Bengal is still howling.
The Bengal never sat with my wife on the dock again.


name is always present

https://github.com/snarfed/granary/blob/master/granary/twitter.py#L716 uses name (title) if present on articles, otherwise falls back to content.  However http://microformats.org/wiki/microformats2-parsing#parsing_for_implied_properties and specifically "else use the textContent of the .h-x for name" means there will basically always be a name, and it may be much less useful than the content (if we know the content).
Seems like we need something like https://github.com/kylewm/mf2util/blob/b11e4d2801a3f36435eb90738af91e53a6bae862/mf2util.py#L254 to handle this case.

Proposal:
diff --git a/granary/microformats2.py b/granary/microformats2.py
index be823db..9b8934a 100644
--- a/granary/microformats2.py
+++ b/granary/microformats2.py
@@ -274,13 +274,16 @@ def json_to_object(mf2):

   urls = props.get('url') and get_string_urls(props.get('url'))

+  name = get_text(prop.get('name'))
+  content_text = get_text(prop.get('content'))
+
   obj = {
     'id': prop.get('uid'),
     'objectType': as_type,
     'verb': as_verb,
     'published': prop.get('published', ''),
     'updated': prop.get('updated', ''),
-    'displayName': get_text(prop.get('name')),
+    'displayName': name if mf2util.is_name_a_title(name, content_text) else None,
     'summary': get_text(prop.get('summary')),
     'content': get_html(prop.get('content')),
     'url': urls[0] if urls else None,

I think it is generally desirable to include "displayName" on all AS objects, just like we include "name" on all mf2 objects.
If granary returns an objectType "article", you can assume that name is meaningful as a separate title; otherwise, it's superseded by the content.
Nice find on the mf2util method :) The post type detection algorithm that granary uses to determine if something is an article vs. note uses it too.

Here's the notion that it's sort of a general purpose name from the AS 1.0 spec:

A natural-language, human-readable and plain-text name for the object. HTML markup MUST NOT be included. An object MAY contain a displayName property. If the object does not specify an objectType property, the object SHOULD specify a displayName.

Hmm, json_to_object includes both verb and displayName even though the former is from Activity and the latter from ActivityObject.  Activity has a title attribute which would suit for this purpose.
Inferring from the object type if we should pay attention to the title or not seems... error prone

I'm very not an expert on ActivityStreams, so I'll defer to @snarfed on those points.
In general I would favor doing this kind of Facebook-specific behavior as close to the Facebook publishing code as possible (e.g. check objectType == 'article' or use mf2util.is_name_a_title in the actual Facebook publishing code, which is what I did for Flickr).

I'm actually primarily working on Twitter stuff, so definitely not Facebook-specific at all :)
The issue with relying on objectType that I just ran into (and, it turns out, that caused me to find this in the first place) is that a repost has objectType activity and really a repost might have a title or not.

my comment about Facebook-specific behavior was in reference to https://github.com/snarfed/bridgy/issues/554#issuecomment-158512290

Sure.  This issue was initiated because of https://github.com/snarfed/granary/blob/master/granary/twitter.py#L716 and then https://github.com/snarfed/bridgy/issues/554#issuecomment-158512290 turned out to be relevant as well.

If we push it to the edges, then this one will fix my repost issue with Twitter:
diff --git a/granary/twitter.py b/granary/twitter.py
index f3adf40..fbabdf3 100644
--- a/granary/twitter.py
+++ b/granary/twitter.py
@@ -22,6 +22,7 @@ import socket
 import urllib
 import urllib2
 import urlparse
+import mf2util

 import appengine_config
 from appengine_config import HTTP_TIMEOUT
@@ -706,8 +707,8 @@ class Twitter(source.Source):
     """
     type = obj.get('objectType')
     summary = obj.get('summary')
-    name = obj.get('displayName')
     content = obj.get('content')
+    name = obj.get('displayName') if mf2util.is_name_a_title(obj.get('displayName'), content) else None
     base_url = self.base_object(obj).get('url')

     if type == 'note' or (base_url and (type == 'comment' or obj.get('inReplyTo'))):

And I can do a similar check in the code for https://github.com/snarfed/bridgy/issues/554

thanks for working on this, guys! i haven't followed it in depth yet, and i often glaze at standards-details work like this (mf2, AS, post type discovery, etc) and defer to @kylewm.
in general, i like to try to keep the format conversions like mf2 => AS as conservative as possible while still keeping as much of the source data as possible. it's nice to keep them as close to dumb schema mappings as possible.
ideally, any "judgment call" logic for deciding what's best/more appropriate to publish would be part of the create/preview code paths in granary or bridgy, not the format conversions.
as for the specific details, i trust you both. @singpolyma feel free to send PRs even if they're just speculative! definitely easier and more idiomatic onn github than diffs.

@singpolyma I'm a bit confused what problem you are trying to solve for twitter. For notes and replies, it uses summary or content or name. so it shouldn't matter whether it has a name.

@kylewm when it's a repost it's not a note or reply, so it uses summary or name or content


terminal autoReply gets sent thrice

I added the following to my global settings.json, because for some reason although I set my windows to english something deep within just likes to speak german:
    "terminal.integrated.autoReplies": {
        "Batchvorgang abbrechen (J/N)?": "J\r"
    },

When cancelling something like a webserver (npm start) using ctrl+c it correctly sends the J\r and cancels it for me.
Unfortunately the J\r hasn't in its opinion finished yet and comes back after the next two times I send anything to the terminal, even if I just hit return again, as seen in this screenshot:

Does this issue occur when all extensions are disabled?: Yes

VS Code Version:
1.64.1
d6ee99e4c045a6716e5c653d7da8e9ae6f5a8b03
x64
OS Version: Windows 21H2 OS Build 19044.1466

Steps to Reproduce (specifically for this case, but this has to exist independently of language, right?):

Add above snippet to settings.json
Open code on a german system in a directory with a web app (in my case, angular)
npm start in the integrated terminal, wait until it's running
Hit ctrl+c to stop
Observe the automatic reply
Hit return (or execute "echo hi", works too)
Observe the autoreply coming back two more times without the trigger phrase

/duplicate #142341

The other issue is closed and the problem still exists though?


Extend this to IEC, IEEE, IETF documents

@ronaldtse could we close this issue?

Yes! And we're going to migrate to a new name for isobib, gbbib to become Relaton.


Fix #7279

error: attribute ‘interpreterName’ missing, at "[..]/pkgs/development/web/nodejs/build-node-package.nix":7:16
when doing nix-env -qa
Fix #7279

cc @offlinehacker

Probably isn't, I figured PRing a quick hack that fixes the problem would get the discussion going :)

We should rather fix the cause of the error

Can you post the whole trace?

I'm not sure why, but can't reproduce this error now. Others on IRC have seen it though..

Did you update the channel meanwhile?

I have a local git clone. Tried to revert it to older versions and somehow I still can't reproduce this error. It must depend on some state that I somehow altered. Either that or it's transient..

Closing, I'm sure this is because an old nixpkgs has been referenced. Please reopen if needed.

I fixed this same issue by changing:
nixpkgs http://nixos.org/channels/nixpkgs-unstable

to:
nixos https://nixos.org/channels/nixos-unstable

using:
nix-channel --remove nixpkgs

nix-channel --add https://nixos.org/channels/nixos-unstable nixos


Restructure and add more resources

Two sets of changes:

restructured Java 9 block to get rid of many headings and align with JPMS part
added more resources (mostly mine)

Thanks a lot @nicolaiparlog, fantastic reorg of links and new links added.


Many-to-many Link mutation Issue

I am using Graphql Relay for applying connection model.I have scenario as teacher and student are having Many-to-Many relationship. My Link mutation code is as follows.:
   var teacherType = require('./teacherType.js')
   var officeType = require('./officeType.js')

    let LinkMutation = mutationWithClientMutationId({
name: 'CreateLinkstudent',
inputFields: {
    abc: { type: graphql.GraphQLBoolean },
    teacher:{type:new graphql.GraphQLList(teacherType.teacherInputType)},
    office:{type:officeType.officeInputType}
},
outputFields: {
    linkEdge: {
        type: Connection.edgeType
    },
    student: {
        type: ConType,
        resolve: () => entity
    }
},
mutateAndGetPayload: (args) => {
    //data saving code here
   }
 });

teacherType.js consists of teachertype and teacherInputtyp as follows:
   const teacherInputType = new graphql.GraphQLInputObjectType({
   name: 'teacherinput',
   fields: () => {
    var studentType = require('./studentType.js')
    return {
        _id: {
            type: graphql.GraphQLID
        },
        name: { type: graphql.GraphQLString },
        student: { type: new graphql.GraphQLList(studentType.studentInputType) },
    }
   }
});

This gives error as
   Can only create List of a GraphQLType but got: undefined.

and the reason is teacherType.js cannot be imported here.When i tries to change
   teacher:{type:new graphql.GraphQLList(teacherType.teacherInputType)}

To this
  teacher:{type:teacherType.teacherInputType},

error is:
 CreateLinkstudentInput.teacher field type must be Input Type but got: undefined

I got this error once when file with associated entity wasn't being loaded and i solved it by requiring it inside fields function of input type as i did in      teacherInputType  But here i cannot find the solution.

Sorry for the late reply.
You should use Thunks for inputFields.


Fix lint errors and warnings

Look at things like lint errors, console errors & warnnings, compilation errors
Timebox: couple of hours.

Hi !
I would like to work on https://github.com/walnuthq/cairovm.codes/issues/17 to start with a "good first issue" but I guess it would be better to tackle this one first, to be able to use the linter on other issues.
What do you think ? Can I work on this one ?

Hey @remybar thanks for expressing your interest in contributing, super cool to have you here! 🥳
#17 brings much more value so feel free to start there. But if you want to tackle this one first that's great too — just please don't go too crazy with the refactoring :)
Maybe just focus on linter errors and possibly warnings while keeping unused code / libraries for now.

Hey @remybar thanks for expressing your interest in contributing, super cool to have you here! 🥳
#17 brings more value so feel free to start there. But if you want to tackle this one first that's great too — just please don't go too crazy with the refactoring :)

Yes, I'm not refactoring anything, I just remove linter warnings and errors ;-) So, for the other tasks, it will be easier to avoid adding new linter warnings/errors.
I've also started to remove unused code (i.e code in comments) because, for example, some imports became useless due to these portions of code in comments. Another solution is to put these useless imports in comments to keep everything there in case you want to reactivate them but, at the end, you will have a lot of code in comments I think 😅

We can remove the code. It's there as artefacts from the evm.codes repository. If we ever want to take something back from the evm.codes repo (will probs be useful for #17 ) we can refer back to the original evm.codes repo

Thank you for your contribution @remybar ! I just send your reward via OnlyDust.
Please join this Telegram chat if you have any questions or want to receive updates about this repository and upcoming issues.

Thank you for your contribution @remybar ! I just send your reward via OnlyDust.
Please join this Telegram chat if you have any questions or want to receive updates about this repository and upcoming issues.

Oh thanks ! ❤
I'm going to work on https://github.com/walnuthq/cairovm.codes/issues/17 now !


Update README.md

Add the codecov badge

Codecov Report

Merging #3 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master      #3   +/-   ##
======================================
  Coverage    94.8%   94.8%
======================================
  Files           2       2
  Lines         250     250
======================================
  Hits          237     237
  Misses         13      13

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 2030e97...f8ba4ae. Read the comment docs.


Support DefEndAlignment in IndentationWidth

AlignWith of DefEndAlignment is used to align method body when
def is preceded by a modifier. Similar behavior already exists for
EndAlignment.

Looks good to me. @jonas054 What do you think?

:+1: Looks good!

@lumeet Please, rebase this.

Rebased.


Add scope for getting all users with a specific role

I think you should consider to include a scope that gives you all users with a specific role.
Like this:
public function scopeIsRole($query, $role) {
    return $query->whereHas(
        'roles', function($query) use ($role){
            $query->where('name', $role);
        }
    );
}

So you can call Users::isRole('Administrator')->get(); or better, when you are getting all users from another model Company::where('name', 'Corp Inc')->users->isRole('Administrator');.

+1

+1

+1

+1

+1
Is this still not implemented?

@tannermccoleman Still not implemented. We'd happily accept a pull request if you wanted to implement it for us.

@andrewelkins Am I correct in thinking the implementation is as simple as adding the code from OP to the EntrustUserTrait?

That plus test case

Not really sure how to test model scopes, but I'll try to figure that out shortly.

I have achieved it by calling parent constructor in model. Hope this will helpful, not pull required.
public function __construct(array $attributes = []){
        parent::__construct($attributes);
}

I have submitted a PR regarding this issue, @andrewelkins  please check #814.
Huge thanks to @kasperhartwich .

Great @zLegend-210 ! Though the PR is #812.


Checking Admin Acess

Good day to you sir. Currently, my issue will be given the pop out for checking admin access. I am not sure what is the issue here.

make  sure you ran truffle migrate
and connect to metamask to first account from ganahe.
**first account is the one who deploy the contract, and set as admin.

you can follow the steps in installing (created for an older version)
https://www.youtube.com/playlist?list=PL54V-i7zW55d1VKxEkp9DCPt5k_zE6m3X

thank you and i got it! fantastic job btw! also, im running to another problem where I am unable to add the doctor into the network.
according to the video, it shows that after clicking on 'add doctor' it will load and pops out metamask notification of transaction fees. however for my side here, it only shows a pop up 'adding doctor to the network'. I use a difference ganache address as shown in the video but yet it does not work.

Infura gateway no longer work without project id.
you can either create an account or use IPFS locally.
refer this issue,
https://github.com/shamil-t/ehr-blockchain/issues/10

updated the main branch, and resolved IPFS issue.


Running bash command in notebook will get stuck if command requires user input

E.g. if you are doing !conda install pandas, the notebook will be stuck executing with no feedback to the user since the command requires a [y/n] response from the user.

There's nothing we can do about this one. Jupyter should behave the same way. Unless we special case !conda install and secretly add a '-y' or something.

You can repro this in a jupyter notebook with this:
!set /p Input='Enter stuff'

(Well in windows).
That command should ask for input from stdin.

Wait, I haven't see this.
@jmew Please could you provide a screenshot.
I just tried this, uninstall and installed.
Also I would have expected this to repro in jupyter nb as well

Heres a gif of it, but nothing exciting, just when i run !conda install panadas in a cell, nothing happens because in the background its waiting for a [y/n] response from the user

Can you remove the ! prefix and try again

Same hang occurs
I only see the following for like 5 minutes
'[Extension Host] Info Python Extension: 2020-02-28 13:50:49: Executing cell ae87e842-43e1-4cc3-b551-f5db071cf875
console.ts:137 [Extension Host] Info Python Extension: 2020-02-28 13:50:49: Submitting code for 6300fdf8-5c92-4846-b0b6-97e92f5482da
console.ts:137 [Extension Host] Info Python Extension: 2020-02-28 13:50:49: Kernel switching to busy'
Ive also seen this error before as well:
console.ts:137 [Extension Host] Info Python Extension: 2020-02-28 13:48:50: Kernel switching to idle console.ts:137 [Extension Host] Couldn't analyze block conda install pandas , error encountered,  TypeError: Cannot read property 'call' of undefined 	at Pt.o.parseError (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:1:278312) 	at Pt.parse (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:75:1068383) 	at Object.t.parse (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:75:1078428) 	at Object.t.parse (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:1:278394) 	at e.add (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:1:859132) 	at e.addExecutionToLog (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:75:1305813) 	at e.logExecution (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:75:1305729) 	at m.logExecution (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:75:1003841) 	at h.postExecute (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:75:735726) 	at c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:75:908403 	at Array.map (<anonymous>) 	at f.logPostCode (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:75:908394) 	at C.promiseComplete (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:75:908108) 	at C.attemptToFinish (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:75:895159) 	at C.complete (c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:75:894503) 	at c:\Users\jemew\.vscode\extensions\ms-python.python-2020.3.0-dev\out\client\extension.js:75:897197 , not adding to programs.


Add a Python script to create new test suites more quickly (extended)

Based on the script originally created by @Calinou.
Extends #48660 with the following additions:

Add path parameter to quickly specify a subfolder relative to the tests directory in which the test header is created
Print the include directive which has to be put in test_main.cpp for convenience (for copying to the clipboard)
Add an invasive flag which can be set to automatically include the newly generated header in test_main.cpp. If available, clang-format is used to sort the appropiate include directive "block" after insertion.

usage: create_test.py [-h] [-p] name [path]

Creates a new unit test file.

positional arguments:
  name              The unit test name in PascalCase notation
  path              The path to the unit test file relative to the tests folder (default: .)

options:
  -h, --help        show this help message and exit
  -i, --invasive    if set, the script will automatically insert the include directive in test_main.cpp. Use with caution!

Add an invasive flag which can be set to automatically include the newly generated header in test_main.cpp. If available, clang-format is used to sort the appropiate include directive "block" after insertion.

Is there a reason this should be disabled by default?

@Calinou
Without the -i flag a reminder is printed (like in your original PR).
Example with Projection:
Remember to #include the new test header in this file (following alphabetical order):
/home/geomtr/Desktop/godot/tests/test_main.cpp
Insert the following line in the appropriate place:
#include "tests/core/test_projection.h")

I disabled the invasive/inplace edit mode by default because it writes directly to a file which can mess things up, so enabling it with a flag makes you aware of that (allowing you to take measures before). For example, clang-format also has -i for inplace edits and doesn't write to any files if not specified. Although it is safer, I am not completely against changing the default behavior since test_main.cpp isn't modified often aside from adding new test headers so the probability of messing something up is quite low.

Thanks!


Development stalled

Hey,
thanks for your amazing work on this project.
Since the development on tikzplotlib is stalled for 2 years now, I am wondering how to continue this project. Several bugs have PRs that would fix them but are not being merged which makes it a bit inconvinient to use this package.
Of course I know that noone is being paid for this but might it be possible to find a solution such that community provided PRs are being merged to at least keep up with the matplotlib version changes?
Thanks for your work

For everyone else coming here after not being able to work with the current version here, the patched version from https://github.com/JasonGross/tikzplotlib does the job.
I came to this thread over https://stackoverflow.com/questions/78403732/how-to-circumvent-importerror-when-invoking-tikzplotlib.


Device, pack, component and board vendors are defined in multiple places using different data types

There are (at least) five places where a pack creator can specify a vendor name within a pdsc file:

As a Dvendor attribute of the /package element
As a vendor child element of the /package element
As a Dvendor attribute of a device /family element
As a vendor attribute of the /boards element
As a Cvendor attribute of the component /bundle element

Of these vendor definitions only Dvendor provides a consistent identifier for a unique vendor by setting the type to DeviceVendorEnum (docs). This enumerated list is maintained as part of the schema:

The table lists predefined values representing device vendors. The list is extended from time to time (on request by new vendors). Contact<EMAIL_ADDRESS>to ask for an extension. These values can be used in the elements:
/package/boards/board/mountedDevice
/package/conditions/condition/accept
/package/conditions/condition/require
/package/conditions/condition/deny
/package/examples/example/board
/package/boards/board/compatibleDevice
/package/generators/generator/select

All the other vendor definitions (board vendor, Cvendor, pack vendor use the type xs:string meaning that the pack creator can include an arbitrary string definition of the vendor name in any of these places.
These vendor names are used to cross-reference elements between and within packs. The <examples> element can link a vendor supplied software example with a given board using the board vendor and board name or a Cvendor can be specified as part of a reference to a software component.
Why does this matter?

The same concept (vendor) is modelled in multiple ways: as a vendor of boards, packs, devices and software. This is conceptually confusing but also fails to reflect back the reality that many vendors will provide all of these things.
Data (in the form of vendor names and ids) are managed as part of the schema. Data management should not be the role of a schema.
It is not possible to reliably link components, boards and devices provided by the same vendor to that single vendor entity. This matters because the linking (where it takes place) is controlled by the client/consuming application rather than being consistently represented to any consumer of CMSIS ecosystem services. For example, I may choose to map ‘LordBoards’ and ‘Lord Boards’ to a single vendor identifier in my client but another client may not. This is not a hypothetical, the situation exists today.
There is no protection for a pack creator who includes a typographical error in the vendor string, meaning that a software vendor who wants to associate their example with board ‘WL64’ from vendor ‘LordBoards’ but accidentally wrote ‘Lord Boards’ would not successfully create this association. This is a problem for any system (e.g. keil.arm.com) that wants to make available all examples associated with a given board regardless of where the example was specified.
The manual nature of adding Device Vendors to the enumerated list is a barrier to scale and gives Arm effective control over which vendors can submit device definitions. This is almost certainly by design but may need to be reconsidered in Open-CMSIS-Pack.
If a vendor name changes (possibly through acquisition) there is no simple way to change the way this vendor is represented in consuming applications. Changing my vendor name from ‘Lord Boards’ to ‘Wills Boards’ requires a change to every pack that references the previous name or use of the <dominate> element (which works to a degree but leaves vendor names unchanged in the packs and, therefore, on disk). It is also likely to necessitate changes at an application level. Separate vendor name mappings currently exist in RTE, the MDK Eclipse plugin and on keil.com, all of which might need to be updated in such a scenario.

Proposed solution
A centrally administered web service that:

allows vendors to create an account and generate a vendor id (assuming some degree of vetting/control over who can create these)
maintains the list of generated IDs along with a minimal set of data about the vendor (e.g. name, website, logo)
allows vendors to update their vendor data (but not the id)
makes the list of vendors and their ids available for use by pack creators

For example a pack validation or submission flow could check whether a specified vendor id referenced in a pack exists and throw an error if it does not.

Open questions

How might we retroactively apply IDs to existing packs?
How would we keep user management simple? It’s possible to imagine a scenario in which vendors need multiple user accounts associated with the vendor account.
How would we ensure that vetting of new applicants (probably required to avoid spamming) is fair and rapid?
Arguably devices and boards should /also/ have unique identifiers. Should we consider extending the discussion to consider this?
How would ids need to exposed so that they are consumable by a range of clients (including offline?)
Who build this? Such a system could potentially be built by Arm (who have the skills and capacity to deliver a web-based system such as this) and contributed in to the Open-CMSIS-Pack project.
Who maintains this? Linaro would be the obvious choice as a neutral party.
How would we ideally handle the situation where a vendor is acquired by another? Is it enough to simply overwrite the old name with the new one or would we need a way of maintaining these relationships (e.g. 'formerly know as', 'is part of') within a vendor management system?

@willlordarm  how important is that issue? And what should Open-CMSIS-Pack should do here?

To take real world example the creation of this vendor page on keil.arm.com - https://www.keil.arm.com/vendors/st/ - involves a service that maps multiple vendor definitions to a single vendor. This is what allows 'st' as a device vendor and 'st' as a board vendor to be treated as a single entity. When the page is extended to include packs then 'st' as a pack vendor will also need to be mapped. The mapping service also handles misspellings and data inconsistencies ('ST-Microelectronics' = 'STMicroelectronics' = 'St-Microelectronics') but only through manual intervention.
Since the service now exists the mapping is no longer a critical issue. As long as everyone is happy that the only way to get a consistent list of vendors and the contributions they make to the ecosystem is via this API then I don't think we have an issue for Open-CMSIS-Pack group.
I think the proposed solution above is still sensible and wouldn't require any schema changes. It's really just an automation of the existing vendor creation and pack submission process. Assuming everyone is happy with that then this is work that Arm can continue with, with any practical changes to submission processes reported back to this group.

@willlordarm I believe you did solve this problem using the web infrastructure.  If there is anything open, please be specify on what we should address.  Unfortunately we cannot change history or deployed packs.