feat: native typescript lambda function code

Depends on #109 and #108
Function closure serialization!

[x] Basic Function serialization
[x] Add constructor to Function to pass in a closure, scope, and id
[x] Exhaustive tests
[ ] Support embedded client calls

[x] Step Functions
[x] Lambda
App Sync include in #119
Api Gateway Endpoints Not implemented - include in #23
[x] Event Bridge
[ ] Dynamo

Only within $AWS.DynamoDB.* see #132

[x] Support arbitrary token data as env variables
[x] Split localstack integration into a separate PR #109
[x] AppSync integration changes #113
Dynamically simplify native integration references #122

new Function(this, 'myFunction', async (event) => {
   return Object.keys(event).length;
})

Do we want to pull out pulumi's closure serializer into its own package to avoid the massive dependency ?

Do we want to pull out pulumi's closure serializer into its own package to avoid the massive dependency ?

Its just a build time dependency, does it matter?
I'd like to write our own in the longer term.

Can do it later, sure. But I also noticed it has a dependency on their concept of a Resource for logging. I was wondering if that mattered at all.

Can do it later, sure. But I also noticed it has a dependency on their concept of a Resource for logging. I was wondering if that mattered at all.

Looking into this. I am not a fan of copying/forking libraries, especially complex ones. But its not OK if there is any Pulumi specific solutions.

Current concerns with using Pulumi:

Customization - Pulumi is not a hookable solution. It is possible to use the serialize function to ignore variables, but not rewrite them. Best you can do is ignore them.
Ignoring nodes is all or nothing - In serialize, I can ignore a node like all CDK Constructs, but I cannot get a property off of that object to use later.
Serialize doesn't return top level nodes in the closure - (event) => event never sends the event object to the serialize function.
Logging - There is a logging Resource parameter, which is Pulumi's Resource, still not sure the impact of this yet.

Caveat: References to functions in namespaces should be simplified to keep the resulting native function bundle small.
Impacts:

Bundle Size
Invalid Bundles during tests

Example
new Function(..., () => {
   $AWS.EventBridge.putEvents(...);
})

Should be
const putEvents = $AWS.EventBridge;
new Function(..., () => {
   putEvents(...);
})

Reason

Pulumi will serialize the entirety of $AWS and all sub-variables when using the $AWS.EventBridge.putEvents form.

Using the referenced from has reduced bundle sizes by over 10x

Invalid function are created, specifically during tests, when Pulumi tries to include code generated by jest for global functions.

The referenced form seems less likely to have this issue.

Mitigation

Users can follow the pattern above
Support Automatic Reference of native integrations (future PR: )
Consider avoiding integrations in keep objects? import { awsEventBridgePutEvents } from 'functionless' instead of import $AWS from 'functioness' ?

How would someone write unit tests for their Lambda Functions that are coded this way? Do they have to mock much? Is there a pattern we can encourage?

Good question, right now there isn't an easy way. We could just expose the closure through the function and let them call it. Obviously it would have the problem that it assumes the serialization was lossless. Or we could serialize the function, import it again (or evaluate it) and then call the serialized from.
new Function(..., () => {}).invoke();

Is the following supported?
let _allowList;
const loadAllowList = async () => {
  return (_allowList =
    _allowList ?? (await fs.promises.readFile("allow-list.json")));
};

new Function(scope, "foo", async () => {
  // reference the allowList here instead
  const list = await loadAllowList();
});

Will the allow-list.json file be bundled? Probably not right?

Ran into issues that were difficult to solve with the current state of Pulumi's serializer. Working on a fork of pulumi:
Added features so far:

Symbol support - Symbols cause an error when serialized - https://github.com/pulumi/pulumi/issues/6229#issuecomment-1135118712
Ability to update the object being serialized (see below)

Updating Serialized objects:
Current Pulumi supports a serialize callback which allows consumers to ignore objects during serialization. The reality of this is entire objects can be ignored (turned into undefined), but if the object is partially needed by the runtime, then its all or nothing.
For example, a CDK Construct like a Table can be discovered and ignored:
if(obj instanceof aws_dynamo.Table) {
   return false;
}

But this fails when we need parts of the table
new Function(async () => {
    const func = (table) => table.tableName;
    console.log(func(table));
})

In the above case, returning false would cause table to be undefined and returning true would cause the entire CDK Table to be serialized, generally failing when a Lazy is found in the CDK object. Serializing the CDK construct also causes a huge bloat to the closure that is generated. I've seen simple code generate a 20MB bundle.
There are ways to work around the issue above, for example setting the table name outside the closure to avoid the entire table being serialized.
const tableName = table.tableName;
new Function(async () => {
    const func = (tableName) => tableName; // not quite the same...
    console.log(func(tableName));
})

While generally a nuisance that can be worked around, this created an issue when trying integrate dynamo with the $AWS.DynamoDB.* operations.
const table = new Table();
new Function(async () => {
    return $AWS.DynamoDB.getItem({ TableName: table, ... }); // will also serialize the entire table.
})

Working on a base assumption that there are parts of the CDK object we should not need (and if we do, we should add escape hatches to unblock), we are adding a new feature to our pulumi serializer fork: The ability to override the object being serialized (instead of ignoring it).

Updated the serialize contract to accept boolean | any: (o: any) => boolean | any;
When a non-boolean truthy value is returned, use that value instead.

Now we can do
if (Resource.isResource(o as any)) {
    const { node, stack, env, ...rest } = o as unknown as Resource;
    return rest;
}

This block removes node, stack, and env from the object to be serialized, but leaves the rest intact.
What we are modifying so far:

CDK Constructs/Resources - stack, node, env are not needed at least
Cfn* L1 resources - stack, node, creationStack, _toCloudformation, and cfnProperties are not needed.
CDK ITaggable - tags on constructs can easily bring in the entire CDK TagManager which appears to have minimal values at tuneimt.
Functionless Integrations - Functionless integrations (which can also be or contain CDK constructs) can contain integrations for any of the functionless resources (step functions, app sync, etc), but we only need the native functions, in fact, we only need preWarm and call as bind is used during synth.
Table - ?

Updated the serialize contract to accept boolean | any: (o: any) => boolean | any;

This has an edge case - what happens when the actual value (we want to keep) is a literal false boolean?

Updated the serialize contract to accept boolean | any: (o: any) => boolean | any;

This has an edge case - what happens when the actual value (we want to keep) is a literal false boolean?

I don't like the current contract either, the current form was the fast to create to experiment.... however... you example isn't a problem as we don't overwrite then the value is a boolean
https://github.com/functionless/nodejs-closure-serializer/blob/main/src/closure/createClosure.ts#L839
The real edge case is if I wanted to update any value to a boolean (which I figured was a rare case for now...).

false - updates to undefined
true - leaves as is
anything else - updates to that value

Proposed update: https://github.com/functionless/nodejs-closure-serializer/issues/1

From review today: Moved the functionProps to an optional 3rd param instead of last in Function

Can we fix this now that we have control over the closure serializer?

No idea why github isn't showing the repy box...
This case works for users now (message-board has an example).
But it doesn't work in our tests because all of $AWS is being embedded which has been including the globals["ts-jest"] reference which when breaks all tests. May be able to play with serialize function to change the behavior.


input value is allowing negative number.

we can prevent this issue by adding min and max attributes in input fields.

Yes, that certainly can be done!

can i work on this issue?

Sure!

hi @srujandeshpande can you check my pr and close this issue :smiley:

Closed by #11


🐛 [GoogleUserMessagingPlatform Not found]

Bug report
Describe the bug
GoogleUserMessagingPlatform Not found on 1.8.4 CocoaPods version and flutter info is:
Steps to reproduce

Using firebase_admob version : 10.0.2
Build the app end get issue not found  GoogleUserMessagingPlatform

Expected behavior
Build ok with new podfile.
Additional context
Add any other context about the problem here.

Flutter doctor
[✓] Flutter (Channel stable, 1.22.3, on Mac OS X 10.15.6 19G2021, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
[!] Android Studio (version 4.1)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.51.0)
[✓] Connected device (2 available)
! Doctor found issues in 1 category.

No issues on ios or android when using   firebase_admob: ^0.10.2
Can you please provide your flutter doctor -v your flutter run --verbose and a complete reproducible minimal code sample
Thank you

I found the problem because I am using older Pods version 1.10.0. then when I update to CocoaPods version. This issue has been fixed. thank your so much @TahaTesser

Glad you solved it!
Closing this issue based on your last comment.


Check for variable existence at compile-time

Currently, checking for the existence of variables and erroring based on the result is done at runtime. It was only possible to do so at runtime at first; but after I added final variables (now vals), it has become possible to do so during compile time, as I had to do so to prevent reassignment or redeclaration of such variables.
The one challenge here is implementing such checking for upvalues, since the val checking hasn't yet been implemented for them either.

Now that val checking is implemented for upvalues, work on this can begin.


Internal broadcast for conn accepted/closed & msg received/processed events

Possible event raising mechanisms are:

WaitGroup
Channel
Wait on log written
Event/broadcasting library: https://github.com/asaskevich/EventBus/blob/master/event_bus.go
Basic callback (as in http handlers)

Important for integration testing. On slow machines, we start sending messages to the server before server even starts (i.e. all Travis tests fail because of this).

Gave up on the idea. Going with the regular retries in the test client.


getLastPowerData returns null for everything since Upgrade

Ever since the upgrade last month, the API has been flakey at best and is back to returning null for everything on https://openapi.alphaess.com/api/getLastPowerData and all endpoints which the the Android application is dependent on.
This has been about 3 weeks now and is making it very difficult for those who rely on the stability of the API to implement efficiency and cost saving solutions.
Do AlphaEss have any indication when this will be fixed and is a roll back to previous version of API becoming a a feasible option now?

What inverter you got? my SMILE5-INV has been having no issues grabbing that data, maybe you need to contact support?


Is it possible to add background image behind doughnut chart or center of doughnut chart

I have an requirement to show the gif animation behind doughnut chart which will occupy the center as well as doughnut chart not beyond the doughnut chart? is it possible to use by chart js as well as Chart.PieceLabel.js in angular4 component.
And one more thing is one value will be as 25 means slight orange,50 means little dark orange , if value reaches 75 means much more darker orange , how to achieve is it possible?

just use <img> or background-image and set a proper position under canvas element.
calculate backgroundColor by your value before assigning datasets.

can you provide some peice of code to draw the image behind donut  , I don't how to start this.
Here is  the question i have asked in stackoverflow
 https://stackoverflow.com/questions/47269631/is-it-possible-to-add-image-behind-doughnut-chart-with-transparency-color-in-ng2

use rgba backgroundColor
https://jsfiddle.net/33jfrc1L/


Cannot find services

I'm trying to find services using the following code :
`
func scanCiao(){
let ciaoBrowser = CiaoBrowser()
    ciaoBrowser.browse(type: "_hap._tcp.") { service in
        print(service)
        print(service.txtRecordDictionary)
     print(service.hostName)
    }

`
But all i get in the console is:
2018-06-27 03:32:19391 [info][CiaoBrowser.swift]:103 netServiceBrowserWillSearch -> "Browser will search" 2018-06-27 03:32:19398 [info][CiaoBrowser.swift]:22 isSearching -> true
I have lots of services running and I can "see" them with a bonjour browsing app.
What am I doing wrong ?
Thanks in advance!

Hi @SwatGuard
That's a bit weird...
Did you try using the service type enum init?
ciaoBrowser.browse(type: ServiceType.tcp("hap"))
Also, you could try using this(only for debugging):
ciaoBrowser.browse(type: "_services._dns-sd._udp")
it should print any service it finds, although it will give some resolving errors that I'll be releasing a fix soon in the next version.
Cheers!


cordova plugins are not loaded when running the app on external device with --liverload flag

Ionic version:  (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

It seems like cordova plugins are not loaded when I run the app on an external device with the --livereload flag.
Expected behavior:

I'm not sure if this is intended behaviour, but if it is, it might not be the best idea to only load plugins when the app is run without the flag as I do not want to make requests to my production server when I am actually just testing the app (right now running without the liverload flag it will build for production).
It should load the cordova plugins whenever the app is run on a device.
Steps to reproduce:

Related code:
insert any relevant code here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.46
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS Sierra
Node Version: v6.7.0
Xcode version: Xcode 8.1 Build version 8B62

+1 help!

This issue was moved to driftyco/ionic-app-scripts#467


Suspense query is retried infinitely with low gcTime

Describe the bug
I'm using useSuspenseQuery with retry: false and a low gcTime (started with 0, but the same problem can be observed for gcTimes which are generally lower than 1s. When the query throws an error, it is retried infinitely, or at least multiple times with a low gcTime which is not 0.
Your minimal, reproducible example
https://github.com/foxable/reproduction-react-query-suspense-infinite-retry/tree/main
Steps to reproduce

Run npm run dev
Open http://localhost:3000/

Expected behavior
I expected the query to run only once on both the server and the client, but on the client it is retried infinitely (the same happens on the server when setting gcTime: 0.
Setting retryOnMount: false does not change this behavior.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform

OS: Linux
Browser: Firefox, Chrome

Tanstack Query adapter
react-query
TanStack Query version
v5.51.21
TypeScript version
v5.5.4
Additional context
No response

This seems to be tied to nextJs and how / when they render an error.tsx file. The same code works fine in vite:
https://stackblitz.com/edit/tanstack-query-2uygjh?file=src%2Findex.tsx&preset=node
It also seems to work better if we use a custom ErrorBoundary in nextJs:
https://stackblitz.com/edit/github-j7jvy1?file=src%2Fapp%2Fpage.tsx,src%2Fapp%2Flayout.tsx,src%2Fapp%2Ferror.tsx
so it seems to be an upstream problem with nextJs to me? My best guess is that the Home component keeps rendering even though the error.tsx component should render and that makes the query suspend all over again?
But also, please note that using suspense in nextJs means you likely should opt into hydration, either with HydrationBoundary or with our experimental next-streaming package. Otherwise, the fetch will run on the server, but the data won't make it into the client cache, so you'd just fetch right on the client again. That likely isn't what you want.

Thank you very much for your reply. Actually, I already use a custom ErrorBoundary in some parts of the original application. At least in Next.js, I could observe the issue for both the custom ErrorBoundary as well as the error.tsx.
Did you try your Vite sample with gcTime: 0? Because then I can reproduce the issue even with Vite. As far as I could check, the issue is flaky when using a low gcTime which is above 0.
My original intention was to use gcTime: 0 to force the Suspense fallback whenever navigating back to the page containing useSuspenseQuery. The low gcTime > 0 was mostly a try to work around the issue, but came with the mentioned flakiness.
Regarding hydration, I explicitly did not configure it because in the original application, there is a reverse proxy in front of Next.js which requires me to send all requests from the browser (they simply won't succeed on the server). To achieve this, I throw an error on the server to opt out of rendering on the server, so there will never actually be data from the server.

this doesn't work and it seems like there is no good solution to this problem. The only thing I can offer is to set gcTime to at least 1 second when suspense is enabled. We do the same thing for staleTime. I wrote a test that fails without the workaround, and it passes with it. Would that work for you? Please see the attached PR:

https://github.com/TanStack/query/pull/7860

I just tested it, and after your change the error boundary is now triggered reliably without any retries.
Having a low gcTime  > 0 is fine to me, because I can still achieve the desired behavior. Before, it was just impossible to find a gcTime which is high enough to always trigger the ErrorBoundary, but low enough to garbage-collect query results immediately (more or less).
So, thank you very much for your help and the quick fix!
I'm not sure if I should close this issue already, at least from my point of view the issue is fixed. So I leave it up to you to decide when to close this issue.


Organization/Organized Contracts + Unit Tests

Fixes #30
Fixes #66

Workers related method is inspired from existing workers contract.
initiateOwnershipTransfer/completeOwnershipTransfer method/events inspired from Owned.sol

Looking into the travis issue.


ENH: Optimize PyBIDS' layout initialization

Do not index all modalities, and share a database file so indexing is not so slow.

Try inserting ^/. I think the paths always have an initial /.

Try inserting ^/. I think the paths always have an initial /.

Yikes

Anyways, indexing seems way slower with the accept-list approach. I guess an idea would be to add an index_only argument to the indexer, mutually exclusive with ignore and force_index, where only matches are considered (and therefore the ignore and force_index matching are not executed).


Rename error in VerilogPrep.

Checklist

[x] Did you specify the current behavior?
[x] Did you specify the expected behavior?
[x] Did you provide a code example showing the problem?
[x] Did you describe your environment?
[x] Did you specify relevant external information?

What is the current behavior?
VerilogPrep|run|lowerS match and use tpe in WDefInstance(info, name, module, tpe).
But when this type is BundleType, it contains firrtl.ir.Field, not recorded in firrtl.transforms.ManipulateNames.
This causes: when VerilogPrep use it to construct WDefInstanceConnector, signal can be renamed, while BundleType.field cannot. port name will be wrong
.
Here is the simple demo: https://scastie.scala-lang.org/rJXAOXDOTlqv1CbhDMBE4A
Inverter inv ( // @[main.scala 15:19]
    .input(inv_input),
    .output(inv_output)
  );

should be
Inverter inv ( // @[main.scala 15:19]
    .input_(inv_input),
    .output_(inv_output)
  );

What is the expected behavior?
Verilog should be generated correctly.
Field of BundleType should be renamed.
Your environment

Chisel Verions: 3.4.0

Ack... Good find and great debugging analysis. I think this can be quickly fixed with (correctly) stating that ManipulateNames invalidates InferTypes? The better fix is actually update the tpe information in the WDefInstance which is being blindly copied from the old instance currently.
Unrelated: I thought this was going to be an issue with application of the rename map needing to happen from leaf modules to roots...


References

Nice and clean re-implementation! I would appreciate if you could refer to some of the original work:
https://github.com/tkipf/gcn
https://arxiv.org/abs/1609.02907
@article{kipf2016semi,
  title={Semi-Supervised Classification with Graph Convolutional Networks},
  author={Kipf, Thomas N and Welling, Max},
  journal={arXiv preprint arXiv:1609.02907},
  year={2016}
}

Thanks!

Added references to both the papers and implementations :)


bug fix for getting best poison indices after all trials

Signed-off-by: Shriti Priya<EMAIL_ADDRESS>In Sleeper Agent, get_poison_indices() returns self.indices_poison, however, the poisoning procedure does not update this variable to the final indices used. The fix is to update self.indices_poison with the best_poison_indices found across all trials.
Fixes # 1952
Type of change
Please check all relevant options.

[ ] Improvement (non-breaking)
[x] Bug fix (non-breaking)
[ ] New feature (non-breaking)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

[ ] Test A
[ ] Test B

Test Configuration:

OS
Python version
ART version or commit number
TensorFlow / Keras / PyTorch / MXNet version

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Codecov Report

Merging #1955 (f36367e) into dev_1.13.0 (1d4d18b) will decrease coverage by 54.22%.
The diff coverage is 0.00%.

@@               Coverage Diff               @@
##           dev_1.13.0    #1955       +/-   ##
===============================================
- Coverage       76.31%   22.08%   -54.23%
===============================================
  Files             257      257
  Lines           23927    23928        +1
  Branches         4346     4037      -309
===============================================
- Hits            18259     5285    -12974
- Misses           4699    18575    +13876
+ Partials          969       68      -901

Impacted Files
Coverage Δ

art/attacks/poisoning/sleeper_agent_attack.py
0.00% <0.00%> (-40.31%)
:arrow_down:

art/evaluations/evaluation.py
0.00% <0.00%> (-100.00%)
:arrow_down:

art/estimators/object_detection/utils.py
0.00% <0.00%> (-100.00%)
:arrow_down:

art/evaluations/security_curve/__init__.py
0.00% <0.00%> (-100.00%)
:arrow_down:

art/preprocessing/audio/l_filter/pytorch.py
0.00% <0.00%> (-100.00%)
:arrow_down:

art/attacks/poisoning/perturbations/__init__.py
0.00% <0.00%> (-100.00%)
:arrow_down:

...rmation/natural_corruptions/contrast/tensorflow.py
0.00% <0.00%> (-100.00%)
:arrow_down:

...formation/natural_corruptions/zoom_blur/pytorch.py
0.00% <0.00%> (-93.94%)
:arrow_down:

...mation/natural_corruptions/zoom_blur/tensorflow.py
0.00% <0.00%> (-93.55%)
:arrow_down:

art/attacks/evasion/shapeshifter.py
5.89% <0.00%> (-93.30%)
:arrow_down:

... and 192 more


Entity

Why it's necessary to have entities in the dataset? Can't we just test utterances with labeled intent?

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

ID: a2f2b28e-7d0d-a7e1-1d1d-5b2e42dcc69d
Version Independent ID: d4127668-9ccd-616c-5f9d-98f5fea62bb5
Content: Batch testing - Language Understanding - Azure Cognitive Services
Content Source: articles/cognitive-services/LUIS/luis-concept-batch-test.md
Service: cognitive-services
GitHub Login: @diberry
Microsoft Alias: diberry

@sodafatty Entities are different from sample utterances. Sample utterances are just different ways of identifying an intent and entities are like variables needed for executing those intents.
Eg:- For an application to order a pizza, sample utterances can be :
Order a ____ pizza
Order me a ___ pizza
Make an order for a ___ pizza
The blank here is for an entity - say "pizza name". It can have any value - Margherita , Pepperoni, etc.
Hence, sample utterances signifies a mapping between the query from the user to an intent and Entities are variables used in the intents.
So, depending on your use case, you can have or not have entities.

Thanks for your feedback. When I upload a JSON file for batch test, which the "entity" column is empty, it always shows error. Can't I just use dataset without entity for batch test?

@diberry Hi Dina, do you have any idea about above? Please also update the document as necessary. Thanks.

@sodafatty You are correct that entities are not required for the batch test but the element must be present but just empty. Can you please provide the exact text of one of these items in the batch that has the entity column empty? I would like to verify the JSON format.

hi, dina
here is a test JSON format file I used in LUIS batch test. Every time I
upload the file, this error happens

Testset can't be empty

Thanks
Dina Berry<EMAIL_ADDRESS>于2018年12月27日周四 上午2:35写道：

@sodafatty https://github.com/sodafatty You are correct that entities
are not required for the batch test but the element must be present but
just empty. Can you please provide the exact text of one of these items in
the batch that has the entity column empty? I would like to verify the JSON
format.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/21058#issuecomment-450006315,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYUNxfA390tm1dbvS2XxA8QC8pQjI3zxks5u88FygaJpZM4ZbiLj
.

--
郑晓 ｜ Echo
BotHub｜Product Manager
E<EMAIL_ADDRESS><EMAIL_ADDRESS>M: +86 173 1749 5719
www.bothub.ai

hi, Dina
here is a test JSON format file I used in LUIS batch test. Every time I upload the file, this error happens

Testset can't be empty

luis-test-3.json.zip

Hi Is there any updates?

@sodafatty Sorry for the delay. I will look at this today.

@sodafatty Thank you for providing your JSON for the batch test. Two issues caught my eye. The first is that the text property expects a value of a single string. One of your test entries has two strings in an array for this property. The second issue is that the entity property expects an array. The following JSON snippet shows a correct batch test JSON:
[
  {
    "text": "I'm a registered nurse. Here is my resume.",
    "intent": "ApplyForJob",
    "entities": [{
      "entity": "Job",
      "startPos": 6,
      "endPos": 21
    }]
  }
]```

The same JSON without an labeled entity is:

```[
  {
    "text": "I'm a registered nurse. Here is my resume.",
    "intent": "ApplyForJob",
    "entities": []
  }
]

If you found your JSON from somewhere in the docs or samples, please let me know so I can correct it.

Thanks @diberry  It finally worked.
I still have a question about the results:

Could you tell me how you calculate these three value? Cause it seems not the same with my result.
Thanks.


chore: Save the date when the country is changed

Hi everyone!
As we wait for 4.15.0, I'll add a small change I will use later.
It saves the date when the country is changed.
This will allow us to display a message when the user is abroad.

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

Project coverage is 7.18%. Comparing base (4d9c7fc) to head (8cafb7d).
Report is 229 commits behind head on develop.

Files
Patch %
Lines

.../lib/data_models/preferences/user_preferences.dart
0.00%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #5443      +/-   ##
==========================================
- Coverage     9.54%   7.18%   -2.37%
==========================================
  Files          325     391      +66
  Lines        16411   20382    +3971
==========================================
- Hits          1567    1464     -103
- Misses       14844   18918    +4074

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

thanks @g123k


COMP: Update w3 gateway CID identification

w3 now has its own gateway, w3s.link.
This now make the ExternalData.cmake consistent with https://github.com/InsightSoftwareConsortium/CMakeIPFSExternalData
commit 951850d4609170d5d763143b3c142c980da32702.

Update re: https://github.com/InsightSoftwareConsortium/ITK/issues/3760


DDIA 第二版翻译

正在写作中：https://www.oreilly.com/library/view/designing-data-intensive-applications/9781098119058/
翻译计划于 v2 分支进行。

[ ] Chapter 1: Tradeoffs in Data Systems Architecture (available)
[ ] Chapter 2: Defining NonFunctional Requirements (available)
[ ] Chapter 3: Data Models and Query Languages (available)
[ ] Chapter 4: Storage and Retrieval (unavailable)
[ ] Chapter 5: Encoding and Evolution (unavailable)
[ ] Chapter 6: Replication (unavailable)
[ ] Chapter 7: Partitioning (unavailable)
[ ] Chapter 8: Transactions (unavailable)
[ ] Chapter 9: The Trouble with Distributed Systems (unavailable)
[ ] Chapter 10: Consistency and Consensus (unavailable)
[ ] Chapter 11: Batch Processing (unavailable)
[ ] Chapter 12: Stream Processing (unavailable)
[ ] Chapter 13: Doing the Right Thing (unavailable)

A draft site: https://ddia2.pigsty.io


Silence warp_mouse() warning in favor of documentation

Follow-up to https://github.com/godotengine/godot/pull/70116.
This warning was spammed in the Android editor when using the navigation joysticks in the 3D viewport when the finger slid over the viewport's edges.

Thanks!


kernel NULL PTR - IORING_OP_URING_CMD incompatible with IORING_SETUP_SQPOLL?

I started to play a bit with ring setup flags for me fuse uring implementation and with IORING_SETUP_SQPOLL I get a kernel NULL PTR, that doesn't seem to be related to my code.
With
sqe->opcode = IORING_OP_URING_CMD;
[   34.089396] fuse: loading out-of-tree module taints kernel.
[   34.110398] fuse: init (API version 7.38)
[   45.734693] fuse: fc=ffff888121f3e800 nr-queues=32 depth=16 ioctl ready
[   45.775779] BUG: kernel NULL pointer dereference, address:<PHONE_NUMBER>000000
[   45.777471] #PF: supervisor instruction fetch in kernel mode
[   45.778787] #PF: error_code(0x0010) - not-present page
[   45.779953] PGD 0 P4D 0
[   45.780612] Oops: 0010 [#1] SMP DEBUG_PAGEALLOC KASAN PTI
[   45.781844] CPU: 30 PID: 867 Comm: fuse-ring-1 Tainted: G           O       6.2.0-rc8 #6
[   45.783646] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.0-debian-1.16.0-4 04/01/2014
[   45.785685] RIP: 0010:0x0
[   45.786369] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
[   45.787818] RSP: 0018:ffffc900057ffc58 EFLAGS: 00010246
[   45.789027] RAX:<PHONE_NUMBER>000000 RBX:<PHONE_NUMBER>000003 RCX: ffffffff81598194
[   45.790618] RDX:<PHONE_NUMBER>000003 RSI: ffffc900057ffd00 RDI: ffff88817a29cdc0
[   45.793370] RBP: ffffc900057ffd70 R08: ffffffff8157f2d6 R09: ffff8881261c243b
[   45.794996] R10: ffffc900057ffd88 R11:<PHONE_NUMBER>000001 R12: ffff88817a29ce01
[   45.796658] R13: ffff88817a29cdc0 R14: ffffffffa08f43e0 R15: ffff88817a29ce38
[   45.798294] FS:  00007fa443dfd700(0000) GS:ffff88881b000000(0000) knlGS:0000000000000000
[   45.800243] CS:  0010 DS: 0000 ES: 0000 CR0:<PHONE_NUMBER>050033
[   45.801597] CR2: ffffffffffffffd6 CR3:<PHONE_NUMBER>ace005 CR4:<PHONE_NUMBER>1706e0
[   45.803285] Call Trace:
[   45.803969]  <TASK>
[   45.804600]  io_do_iopoll+0x1fe/0x940
[   45.805562]  ? blk_finish_plug+0x44/0x60
[   45.806580]  ? io_submit_sqes+0x536/0xc30
[   45.807598]  ? io_rw_fail+0x70/0x70
[   45.808511]  ? __x64_sys_io_uring_enter+0x966/0x12e0
[   45.809705]  __x64_sys_io_uring_enter+0x966/0x12e0
[   45.810918]  ? kernel_write+0x3d0/0x3d0
[   45.811911]  ? io_run_task_work_sig+0xf0/0xf0
[   45.812999]  ? do_futex+0xf7/0x190
[   45.813902]  ? __x64_sys_get_robust_list+0x260/0x260
[   45.815135]  ? rseq_syscall+0x69/0xe0
[   45.816088]  ? __rseq_handle_notify_resume+0x4e0/0x4e0
[   45.817312]  ? mark_held_locks+0x23/0x90
[   45.818321]  ? lockdep_hardirqs_on_prepare+0x13d/0x200
[   45.819576]  ? syscall_enter_from_user_mode+0x1d/0x50
[   45.820826]  ? trace_hardirqs_on+0x2d/0x110
[   45.823121]  do_syscall_64+0x3d/0x90
[   45.824071]  entry_SYSCALL_64_after_hwframe+0x63/0xcd

Thanks, this works!
From usability it is a bit confusing as it is the cqe that returns EOPNOTSUPP. For a user ideally io_uring_queue_init_params() would fail, but I see, it does not get the fd. The next best function for me would be io_uring_register_files(), maybe we could add sanity checks in io_sqe_files_register()? And maybe with that we could avoid  the io_uring_cmd_supported() call for each and sqe/command submission?

It really has to be part of the issue, unfortunately. You cannot do this at ring creation time, as you noted. And since this has to work with both regular and fixed files, there's really no way around it. But not a huge deal, as we need to check file->f_op->uring_cmd anyway.

Fixed by kernel commit 03b3d6be73e81ddb7c2930d942cdd17f4cfd5ba5


tca95xx: Add support for tca95xx i/o extenders.

:thumbsup:
n/a
:thumbsup:

Things of note

I am able to test the TCA9534 and TCA9535 chips using a RPI4.  I included chips that were nearly identical as to reduce the likelihood of introducing a bug.
I added a conn.Conn interface and implemented that for the extender to allow access to the entire port as a byte.
This code is based on the mcp23xxx code pretty heavily.

I noticed the copyright dates were wrong.  Opening a new pr.


Panning velocity doesn't work if scale is <=1

Panning velocity doesn't work if scale is <=1, I see it is explicitly disabled in code: https://github.com/prc5/react-zoom-pan-pinch/blob/72fd37e7555f169b2b83b96973cea606f5c96fa3/src/core/pan/velocity.utils.ts#L27
As far I can see the scale itself it's not used for calculating velocity so I'm not sure why there is such limitation.
For the context, I'm using this library to display comic page so it's pretty expected user will want to zoom out to look at the whole page, I also have limitToBounds disabled. It's somewhat weird when you zoom out a little bellow 1x scale and the velocity effect suddenly stops working.

@kotcrab Hey, thanks for the context of your case, I will make this prop adjustable 👍


Az cli add additional new line into string output

For command like
az k8s-extension show
--cluster-type connectedClusters
--cluster-name $clusterName
--resource-group $groupName
--name $extensionName
--query id
--output tsv > id.txt
If we open id.txt, we can see it has string with additional new line, and this is some for other commands like az monitor related cli.
This will cause some issue when to use these output.
Expected behavior, no new line for single string output.

route ton CXP team

It seems -o tsv will add a newline at the end of output.

This part of logic is in knack. @jiasli Could you have a look. Thanks. https://github.com/microsoft/knack/blob/d407b81d451d36c6ca1baeb3cd067a3f1275cb85/knack/output.py#L231-L258

this is a breaking changes and cause all the doc which has base64 encoding will not work for customer, can we make this as high priority?

BTW, you may check what's actually in the variable using a very simply Python script:
$ python3 -c "import sys; print(sys.argv)" $name
['-c', 'clitest.rg6i4hl6iakg\r']

Note the \r in $name.


Help with wrong Pulsator offset

Hi,
I changed the layout constraint of the y-Axis in your demo:

Any easy way to fix the position of the Pulsator?

Cheers,
Frederik

I fixed the example. Now the position of pulsator layer will follow the position of sourceView layer.

Thank you! That works 👍
The only glitch I see is during rotation. The layer is updated asynchronously from the sourceView. I tried experimenting with the transitionContext but was unable to find a quick solution.
I tried fixing it with this in the ViewController:
    override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
        super.viewWillTransitionToSize(size, withTransitionCoordinator: coordinator)

        coordinator.animateAlongsideTransition({ context in
                // during transition
                sourceView.layoutIfNeeded()
                self.pulsator.position = sourceView.center
            }, completion: { context in
                // after transition
        })
    }

Unfortunately without success.
Here's a video, just change the demo to allow all device orientations and toggle slow animations before rotating the simulator (happens on device too):

Thank you for your help!

Thanks, I don't care for rotation for now, so if you can fix & send a pull request, it's so helpful.

Sure, I'll have a look into this and report back! Can take some time, as I likely start to integrate GPS functionality (where it's used) in summer.
Should I leave this open as reminder?

Much appreciated! Please close this issue, and then send me a pull request or open a new issue when you have something new.

Ok, that's what we'll do :)
And thank you very much for your work with this great component!


Bugs

Syn-Err on generator sometimes
It falls sometimes... Why? I dunno.
Export doesn't see Standart Deviations
Exporting only in C:\Shaman\Data
No plotting point is shown
Work actually only with RS865

Generator sometimes print "Syn-err" and from that time frequency printed in colums generator and lock-in Fext differ for about generatorFrequencyStep


Create vaa.txt

@tuanthieu2993 I am sorry, the domain vaa.edu.vn is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


JSLT Action - Fix too many slashes in example of template

This could also be backported to 0.9.x I guess


feat(github): commenting out the Github social sign-up option

Problem
This feature is set to release very soon. In the event of any failures with the feature, we want to reduce the scope of the problem in order to get a more focused understanding of what is going wrong, and where we should focus our efforts. In order to narrow the scope of this feature, we are commenting out the Github option for social sign-ups.
Solution
By commenting out the Github-related UI, we are limiting social sign-up to only allow for Google users. Once this feature has proven successful, we will uncomment the code to allow Github integration

Co-authored-by: Iris Scholten<EMAIL_ADDRESS>

@drdelambre couldn't agree more. Based on discussions had with @lukevmorris it was determined that the best course of action in this case would be to simply comment the code out rather than integrating a feature flag since it should only be behind a flag for a few days

you can safely delete it and revert this commit later, keeping master clean and achieving the same result. there's been a lot of "but it's only for just now" turning into tech debt recently.


Renderer debug

Option to capture input/output frames.
Also added convenience Wait() which can be called before ReportPresent so that the Server Compositor time in statistics only include render time.

please solve merge conflicts ;)

Merging.


[Linear] Support for Switching Between Workspaces

Extension – Linear
Author: @thomaslombart
I am working with multiple workspaces and currently the extension is only working with a single one. For me it would be sufficient to have a command to switch workspaces - like "Switch Linear Workspace" -> select workspace and then it uses the selected workspace for all other commands until you switch again. Alternatively merge issues from multiple workspaces in e.g. "Assigned Issues" command would be awesome as well but this would probably be much more complicated.
Who will benefit with this feature?
Anyone who is a member of more than one Linear workspace.

@thomaslombart Wouldn't it be possible to store multiple (maybe limited to 3) workspace authorization tokens in the extension's configuration and add a command that can switch the selected one? Or config like this:

Ah sorry, I missed your comment @dioncodes. It's not possible to do so as of now. Logging through OAuth is possible for only one account at a time.


Application run failed 버그

2024-05-22T16:42:18.283+09:00 ERROR 22508 --- [morbus] [           main] o.s.boot.SpringApplication               : Application run failed
내용
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-05-22T22:05:31.778+09:00 ERROR 39688 --- [           main] o.s.boot.SpringApplication               : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'morbusController' defined in file [C:\Users\PC\Desktop\morbus\Server\out\production\classes\OpenSourceProject\morbus\controller\MorbusController.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'diseaseSetting' defined in class path resource [OpenSourceProject/morbus/algorithm/Config.class]: Failed to instantiate [OpenSourceProject.morbus.algorithm.DiseaseSetting]: Factory method 'diseaseSetting' threw exception with message: Error creating bean with name 'diseaseRepository' defined in class path resource [OpenSourceProject/morbus/algorithm/Config.class]: Failed to instantiate [OpenSourceProject.morbus.repository.DiseaseRepository]: Factory method 'diseaseRepository' threw exception with message: class path resource [static/data/DiseaseList.json] cannot be opened because it does not exist

이렇게 나오고 Process finished with exit code 1 이 메세지 뜨면서 서버가 작동을 안합니다

데이터 베이스가 켜줘서 해결했습니다


How to trigger multiple times

I'm sure this is user error, the first time I call it works perfect, the second time+ calls scroll.scrollTo with a different number of pixels but nothing happens, I basically do:
import Scroll from 'react-scroll';
var scroll     = Scroll.animateScroll;
scroll.scrollTo(Math.random()*1000, {containerId: 'right'}); //math random to demonstrate.
I can console log all the way to the pixel input provided to scrollTo and there are no errors, what might I be missing?

Running into the same Error.
Until this Bug (https://github.com/fisshy/react-scroll/pull/114) is not resolved, try using hopelyns fork instead. It worked for me.


Too many debug prints

I had to comment out the print below, to stop debug print.
Thank you for your work.

oh my god 😯 .. I'm sorry i'll fix it at a new version.

thank you for reporting this.

fix with https://github.com/nggepe/simple_grid/releases/tag/0.0.7


Goon floor pack 1

About the PR
Started porting some more floors. Have approximately 35 to do in total and that's without all the variations once placementmanager is refactored.
Going to do it piecemeal so maintainers have an option to reject and also because my time is few and far between and it'll be awhile before I can get through them all. So without further ado...This pack contains:

Clown Carpet
Metal diamond embossed tiles
Office Carpet
Gym matt
Boxing Ring
Blue Arcade alternative tile

These names aren't exactly how they are in game but are a good descriptor for Github.
Screenshots

Changelog
:cl:

add: Added 6 new floor tiles ported from Goon! Look out for clown carpet, boxing ring, gym mat, office carpet, metal diamond and alternate blue arcade.

Gym and boxing could do with having variant textures made if possible (see how the major floortiles work)

Gym and boxing could do with having variant textures made if possible (see how the major floortiles work)

Will look to do that when I next get a chance to look at this, same for the office carpet.
Will do it in future for the other floors too.

Gym and boxing could do with having variant textures made if possible (see how the major floortiles work)

Done, attached screenshot above. Was going to go for a more flat colour than it looking like a 4 square tile (as they do by default) but backed off and went back to that look.

you could've at least asked


add mit

Thank you for contributing!Preview these changesLink expires: Mon Oct 15 03:41:08 UTC 2018

Thank you for contributing!Preview these changesLink expires: Tue Oct 16 15:03:22 UTC 2018

Thank you for contributing!Preview these changesLink expires: Wed Oct 17 15:41:13 UTC 2018


Remove the extra indent in the Profile page buttons

I will work on this.

Sorry, @kangkanjr  We only accept PR's from those who are part of our group.
Thanks for showing interest, good luck in contributing to other repos,
Happy coding 😃

sure


Getting error on backing up the chef server using knife

This is on Ubuntu machine.

I installed gem on chef server for backup the server.
 sudo gem install knife-backup

Now I create a knife.rb file the following configuration.
log_level                           :info
log_location                      STDOUT
validation_client_name     'chef-validator'
validation_key                   '/etc/chef-server/chef-validator.pem'
chef_server_url                 'https://server_ip'

When I run the following command,
 sudo knife backup export -D /etc/chef/backups -c knife.rb

it is showing me error:-
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: character class has [' without escape /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: regexp has ]' without escape
Backing up clients
ERROR: Your private key could not be loaded from /etc/chef/client.pem
Check your configuration file and ensure that your private key is readable

Closing this a configuration issue.
thanks @tyrken


Custom Portal Genration Issue

From ParasiticSquid
So here's a weird issue: I made a custom datapack that adds a portal to the bumblezone dimension. Now, apparently I did it right because it works perfectly even when generating a portal on the other side and even works in reverse.. yet, if I make the portal scaled suddenly it refuses to generate or sometimes even connect to the other side. Sometimes when I check the side it's suppose to be making the portal on I see it has generated a bunch of empty frames but no portal. Or no portal as in linked but seems to sometimes create some blank portal entity that breaks when I break the frame.
Im not sure if this is just a weird normal issue with scaled portals or if it's what im trying to do with it that is causing these issues. Basically, I have the portal using "from_length": 1 and "to_length": 4 with 4 being the bumblezone side. That way a player normal size in the bumblezone will be small when they exit through the portal into another dimension like the overworld. Basically bee sized player from the bee world for a bee based origins playthrough. A neat bonus was the fact 1x1 portals apparently exist so normal sized players who didn't shrink coming from the bumblezone or weren't already scaled down can't access the portal and be giant in the dimension unless it's vertical or they have a method to crawl with a hotkey like the crawl mod. Even the trapdoor trick doesn't work since it just causes you to fall into the portal frame due to standing up since your unable to place blocks inside the breakable portal entity unlike normal portals.
Im honestly at a loss. Sometimes it works randomly but most of the time it doesn't which is annoying. Anyways on another note the wiki doesn't mention any way to create a datapack portal that changes player gravity so is that not implemented or am I blind?

Well, here it is. As far as ive seen and read on your wiki it should in theory work but I may of screwed something up. First time making a datapack myself
{   "schema_version": "imm_ptl:v1",   "from": [     "minecraft:overworld"   ],   "reversible": true,   "to": "the_bumblezone:the_bumblezone",   "form": {     "type": "imm_ptl:scaling_square",     "from_frame_block": "minecraft:honeycomb_block",     "to_frame_block": "minecraft:honeycomb_block",     "area_block": "minecraft:air", 	"from_length": 1, 	"to_length": 4,     "generate_frame_if_not_found": true   },   "trigger": {     "type": "imm_ptl:use_item",     "item": "minecraft:honey_bottle"   } }

I can reproduce this issue now

Should be fixed in the next version

should be fixed in this version https://github.com/qouteall/ImmersivePortalsMod/releases/tag/v1.4.0-1.18

Fixed it from what I can tell after a couple days of testing


Upload sdist to PyPI to enable building conda-forge package

🚀 Feature

Motivation

Hiya, I've been trying to get lightning onto conda-forge using grayskull but it seems like the source distribution (sdist) for lightning is missing on PyPI at https://pypi.org/project/lightning/2022.6.15.post2/#files. So running grayskull pypi lightning (to generate the conda-forge recipe) fails:
#### Initializing recipe for lightning (pypi) ####

Recovering metadata from pypi...
Traceback (most recent call last):
  File "/home/username/mambaforge/envs/condalock/bin/grayskull", line 8, in <module>
    sys.exit(main())
  File "/home/username/mambaforge/envs/condalock/lib/python3.10/site-packages/grayskull/__main__.py", line 155, in main
    generate_recipes_from_list(args.pypi_packages, args)
  File "/home/username/mambaforge/envs/condalock/lib/python3.10/site-packages/grayskull/__main__.py", line 177, in generate_recipes_from_list
    recipe, config = create_python_recipe(
  File "/home/username/mambaforge/envs/condalock/lib/python3.10/site-packages/grayskull/__main__.py", line 206, in create_python_recipe
    GrayskullFactory.create_recipe(
  File "/home/username/mambaforge/envs/condalock/lib/python3.10/site-packages/grayskull/base/factory.py", line 31, in create_recipe
    GrayskullFactory.REGISTERED_STRATEGY[repo_type.lower()].fetch_data(
  File "/home/username/mambaforge/envs/condalock/lib/python3.10/site-packages/grayskull/strategy/pypi.py", line 61, in fetch_data
    update_recipe(recipe, config, sections or ALL_SECTIONS)
  File "/home/username/mambaforge/envs/condalock/lib/python3.10/site-packages/grayskull/strategy/pypi.py", line 426, in update_recipe
    metadata = get_metadata(recipe, config)
  File "/home/username/mambaforge/envs/condalock/lib/python3.10/site-packages/grayskull/strategy/pypi.py", line 344, in get_metadata
    sdist_metadata, pypi_metadata = get_origin_wise_metadata(config)
  File "/home/username/mambaforge/envs/condalock/lib/python3.10/site-packages/grayskull/strategy/pypi.py", line 228, in get_origin_wise_metadata
    pypi_metadata = get_pypi_metadata(config)
  File "/home/username/mambaforge/envs/condalock/lib/python3.10/site-packages/grayskull/strategy/pypi.py", line 283, in get_pypi_metadata
    "sha256": get_sha256_from_pypi_metadata(metadata),
  File "/home/username/mambaforge/envs/condalock/lib/python3.10/site-packages/grayskull/strategy/pypi.py", line 149, in get_sha256_from_pypi_metadata
    raise AttributeError("Hash information for sdist was not found on PyPi metadata.")
AttributeError: Hash information for sdist was not found on PyPi metadata.

Would it be possible to upload the sdist (tar.gz file) to PyPI too? A quick search through the codebase showed this workflow which should make the sdist:
https://github.com/Lightning-AI/lightning/blob/b59f80224843886459d54c828325683d770da746/.github/workflows/release-pypi.yml#L35
However, it doesn't seem like that GitHub Actions workflow was used in recent releases. Has the release workflow changed recently?
Pitch

Allow users to do conda install lightning eventually.
Alternatives

Let users continue to use pip install lightning only.
Additional context

If you enjoy Lightning, check out our other projects! ⚡

Metrics: Machine learning metrics for distributed, scalable PyTorch applications.

Lite: enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.

Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

Bolts: Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.

Lightning Transformers: Flexible interface for high-performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.

cc @carmocca @akihironitta @borda

Looks like sdist is available now since https://pypi.org/project/lightning/2022.7.18/#files, and there's a working PR at https://github.com/conda-forge/staged-recipes/pull/19715 to add lightning to conda-forge. WIll close this then.


store.updateOrAdd

part of #2

:+1: looks good to me!

LGTM

@boennemann I've left out the exporting of the internal utils, as we don't need it for testing atm. I'd add it later if needed. Code is cleaner without.


Self service license via Web UI

Background: https://airtable.com/tblD3oZPLJgGhCmch/viw8IfZMg9Up8SP33/recTZtsV7sDzL7ZHT
PM: @piyush-singh
Eng Partner:

No concrete docs work here, so closing. We'll definitely have to rethink all of this with a hosted service, but that approach is still unclear.


Polymer 2.0

Hello, great work!
Are there any plans to port this to 2.0? I am not an expert but from looking at the code and Polymers upgrade guide there seems not to be too much to change.
Or is it usable in Polymer 2.0 as it is?
I think I can not simply get it via bower because of the 1.* dependencies which conflict with my 2.0 project.
Nicolas

@nicolasr75 Polymer 2.0 has this hybrid element feature that would ease the transition and make possible the use of 1.x elements in the 2.0 runtime. It would be interesting to give a try with the code asis. Nevertheless, please feel free to PR the 2.0 implementation.
See https://www.polymer-project.org/2.0/docs/devguide/hybrid-elements

Ok, I gave it a try but only locally, no PR yet (actually I'm not yet that experienced with GitHub and would have to learn how to do PRs etc.).
I think I have converted everything successfully except for the actions menu. The problem is that there currently is no hybrid mode version of paper-menu. Have a look here:
https://github.com/PolymerElements/paper-menu/issues/110
What do you think?
Btw, I have not yet tested paper-tree in hybrid mode.

@nicolasr75 so let's wait for Polymer 2 first release.

@vpusher paper-menu is declared deprecated
https://github.com/PolymerElements/paper-menu/pull/112#issuecomment-294560068

Then we should move to paper-listbox

I would really like to understand how (hopefully with examples) to use paper-listbox in place of paper-menu, because it looks like the paper-listbox repository didn't get the memo about it being a replacement for paper-menu - see, for example, https://github.com/PolymerElements/paper-listbox/issues/7

From the <paper-menu-button> README:
<paper-menu-button>
  <paper-icon-button icon="menu" slot="dropdown-trigger"></paper-icon-button>
  <paper-listbox slot="dropdown-content">
    <paper-item>Share</paper-item>
    <paper-item>Settings</paper-item>
    <paper-item>Help</paper-item>
  </paper-listbox>
</paper-menu-button>

I tried to use this in my 2.0 project and ran into all sorts of issues.  But I don't think they are too much to sort out.  To my untrained eye it looked like it mostly had to do with moving to app-layout.

You may want to try my fork for 2.0.
https://github.com/nicolasr75/paper-tree
This is incomplete though! It does not yet support the actions menu and I have not tested it thoroughly.

Thanks and I will do that :)

The problem I am having with both versions is that when I install paper-menu it asks me to select versions of about 3 or 4 other dependencies and I never know which to choose so I just choose the latest.  Then when it finishes installing my app is all messed up.  I have to reinstall all my bower components except paper-menu.

Where does the dependency on paper-menu come from in your project? Since the Polymer team is not going to port paper-menu to 2.0 I did not include it in my 2.0 preview in the first place (that's why the actions menu is currently missing).

its in your version of paper-tree-node...unless I downloaded the wrong project.


Added Travis CI and RuboCop

This does not add tests (#9) but at least lints the solution via fastlane's RuboCop configuration and builds the project via Travis CI.

Wow, thanks a million for this! :)


K3s Startup Error on Ubuntu

Environmental Info:
K3s Version:
k3s version v1.26.0+k3s1 (fae88176)
go version go1.19.4
Node(s) CPU architecture, OS, and Version:
Linux S-14-v5 5.15.0-10057-tuxedo #63~20.04.1tux3 SMP Thu Jan 12 13:09:01 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration:
1 Master and 2 Nodes
Describe the bug:
I'm just trying to install the service, but it could not be started because of this error below:
S-14-v5 k3s[410474]: I0130 16:32:18.493432  410474 server.go:407] "Kubelet version" kubeletVersion="v1.26.0+k3s1"
S-14-v5 k3s[410474]: I0130 16:32:18.493452  410474 server.go:409] "Golang settings" GOGC="" GOMAXPROCS="" GOTRACEBACK=""
S-14-v5 k3s[410474]: I0130 16:32:18.494379  410474 dynamic_cafile_content.go:157] "Starting controller" name="client-ca-bundle::/var/lib/rancher/k3s/agent/client-ca.crt"
S-14-v5 k3s[410474]: Error: failed to run Kubelet: error creating root directory "/var/lib/kubelet": mkdir /var/lib/kubelet: file exists
S-14-v5 k3s[410474]: time="2023-01-30T16:32:18+01:00" level=fatal msg="kubelet exited: failed to run Kubelet: error creating root directory \"/var/lib/kubelet\": mkdir /var/lib>
S-14-v5 systemd[1]: k3s.service: Main process exited, code=exited, status=1/FAILURE

I was juist expecting that the service was started and running on my master node, but that seems not to be the case. Any ideas?

Error: failed to run Kubelet: error creating root directory "/var/lib/kubelet": mkdir /var/lib/kubelet: file exists
This isn't an error I've seen before; I'm not sure why the kubelet would be trying to create a directory that already exists. Can you attach the complete k3s-server log, as well as the output of k3s check-config?

k3s check-config:
modprobe: FATAL: Module configs not found in directory /lib/modules/5.15.0-10057-tuxedo
info: reading kernel config from /boot/config-5.15.0-10057-tuxedo ...

Generally Necessary:
- cgroup hierarchy: cgroups Hybrid mounted, cpuset|memory controllers status: good
- /usr/sbin/apparmor_parser
apparmor: enabled and tools installed
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled (as module)
- CONFIG_BRIDGE: enabled (as module)
- CONFIG_BRIDGE_NETFILTER: enabled (as module)
- CONFIG_IP_NF_FILTER: enabled (as module)
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_IPVS: enabled (as module)
- CONFIG_IP_NF_NAT: enabled (as module)
- CONFIG_NF_NAT: enabled (as module)
- CONFIG_POSIX_MQUEUE: enabled

Optional Features:
- CONFIG_USER_NS: enabled
- CONFIG_SECCOMP: enabled
- CONFIG_CGROUP_PIDS: enabled
- CONFIG_BLK_CGROUP: enabled
- CONFIG_BLK_DEV_THROTTLING: enabled
- CONFIG_CGROUP_PERF: enabled
- CONFIG_CGROUP_HUGETLB: enabled
- CONFIG_NET_CLS_CGROUP: enabled (as module)
- CONFIG_CGROUP_NET_PRIO: enabled
- CONFIG_CFS_BANDWIDTH: enabled
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_RT_GROUP_SCHED: missing
- CONFIG_IP_NF_TARGET_REDIRECT: enabled (as module)
- CONFIG_IP_SET: enabled (as module)
- CONFIG_IP_VS: enabled (as module)
- CONFIG_IP_VS_NFCT: enabled
- CONFIG_IP_VS_PROTO_TCP: enabled
- CONFIG_IP_VS_PROTO_UDP: enabled
- CONFIG_IP_VS_RR: enabled (as module)
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: enabled
- Network Drivers:
  - "overlay":
    - CONFIG_VXLAN: enabled (as module)
      Optional (for encrypted networks):
      - CONFIG_CRYPTO: enabled
      - CONFIG_CRYPTO_AEAD: enabled
      - CONFIG_CRYPTO_GCM: enabled
      - CONFIG_CRYPTO_SEQIV: enabled
      - CONFIG_CRYPTO_GHASH: enabled
      - CONFIG_XFRM: enabled
      - CONFIG_XFRM_USER: enabled (as module)
      - CONFIG_XFRM_ALGO: enabled (as module)
      - CONFIG_INET_ESP: enabled (as module)
      - CONFIG_INET_XFRM_MODE_TRANSPORT: missing
- Storage Drivers:
  - "overlay":
    - CONFIG_OVERLAY_FS: enabled (as module)

STATUS: pass

OK, lets see the rest of the logs then. Also, does /var/lib/kubelet currently exist? Is it on a writable filesystem?

I deleted that file and then reinstalled the service and it started to work. Wierd though!

wait, /var/lib/kubelet was a file? That's not right, and would explain the error I suppose. Was that left over from something else you'd had installed?

I had Minikube installed but I had in uninstalled for quite some time. There was a stale link to Minikube in /var/lib/kubelet which was hanging'around.


Unable to bind an attached property in XAML.

I am trying to use a binding in an attached property, but the setter function doesn't get called. If I just put a constant string instead of the binding, it works.
Here's the class with the attached property:
public class MyClass // (namespace ns)
{
    public static readonly StyledProperty<string> TestProperty =
        AvaloniaProperty.RegisterAttached<MyClass, Control, string>("Test");

    public static void SetTest(Control control, string value)
    {
        Console.Out.WriteLine("SetTest: " + value);
    }
}

And this is how I'm trying to use it:
<TextBlock
        Text="{Binding SomeProperty, ElementName=window}"
        ns:MyClass.Test="{Binding SomeProperty, ElementName=window}"/>

where SomeProperty is a valid property with a value.
I would expect the SetTest function to be called, but nothing happens. If I change the {Binding} expression to a string, the function is called as expected.
I'm using Avalonia 0.10.0-preview1.
This is a simple project that reproduces the issue: AttachedBindingBug.zip

Bindings don't call the setter methods on attached properties, like they don't call the setters on regular Avalonia properties because the setters can only be used to set the local value.
This is the same as other XAML frameworks (for which I'll add a few links below) so, unless I'm misunderstanding will close.
https://stackoverflow.com/questions/43319127/setter-of-bindable-property-never-fires
https://stackoverflow.com/questions/4225373/setters-not-run-on-dependency-properties
https://stackoverflow.com/questions/2568860/why-attached-property-set-and-get-static-methods-are-not-called-in-xaml


Incorrect URL's used in Collaborative Programs

Hi All,
It appears as if the "Program Tasks" , "Creating a new program", "Adding Documents" and "Assessment Rememdiation/Capability Program Specific Features" links is all incorrectly redirecting to the ".md" URLs which is all invalid.
The below is an example of one of the invalid URL's with an extension of the portal where the URL's exist:
https://docs.microsoft.com/en-us/services-hub/unified/programs/program-tasks.md

Thank you

@Donovand4 - Thanks for bringing this to our attention. You've reached the Issues queue for the contributor guide, not the Services Hub documentation. However, this was a pretty easy change to push through, so I opened a PR in the appropriate repo to address it. :)

@Donovand4 - Yes, unfortunately, each repo can decide whether they turn on GitHub Issues feedback. We're working on improving the experience in our new Feedback Portal, but not all products have a space there yet.

Closing this issue because the PR has been merged to fix the links. Thanks!


Shared interface for number of output dimensions in multi-output kernels

Multioutput base.

Q: Why are we updating lots of __init__s to accept kwargs?
In our kernels, we use multiple inheritance, inheriting from both MultioutputKernel and Combination. However, we do not initialise the MultioutputKernel, instead just effectively treating it as an interface. This become problematic when we want to add common stateful attributes to the object. Both classes need to be inited, but we only want to initialise the base Kernel class once - a classic diamond inheritance structure. A good was to do this is to simply use super, which will follow the mro of the instantiated object and initialise the correct object. HOWEVER, how to avoid every inherited class having to know exactly what its parents need - we use kwargs, where the kwargs strip off the necessary argument for that interface (e.g. output_dimension) and passes all the other arguments to the next class that is found by super. If we dont do kwargs, but still want to use super, then the multioutput kernel would need to know to pass whatever arguments the Combination kernel needs - even though it doesnt inherit from it. This way - that is not necessary.
Ideally, the concrete, final child class would know exactly what every parent needs and not allow kwargs, while every intermediate layer strips off the argument it needs and passes the rest off to the next class. I believe this is a widely used pattern of multiple inheritance in Python, though open to discussion as per.

@condnsdmatters could this PR help address (fix) #831 ?


Daily Plot | Change datetime to native python type

Daily plot is showing date as string (Assumption)
Daily plot should take date as a native python variable

Example format:
EOD_df.Date = pd.to_datetime(EOD_df.Date, infer_datetime_format=True)

@vamseeachanta
Changed the datetime to python type sir, but still no change in plot. There is a problem with axis and should fix that.

@vamseeachanta Hello sir ,
Tried changing xlim values of Date , still no change , the problem is x tick labels are overlapping ,
i got the solution , but unable to resolve the problem , the solution is below :
https://stackoverflow.com/questions/26700598/matplotlib-showing-x-tick-labels-overlapping

@vamseeachanta
changed the datetime to native python type , now can able to see x ticks , please see below


TensorRT integration doesn't optimize conv2d_transpose

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
Yes.
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Ubuntu 16.04
TensorFlow installed from (source or binary):
Source. Build toward TensorRT 3.0.4.
TensorFlow version (use command below):
1.7
Python version:
2.7.12
Bazel version (if compiling from source):
0.11.1
GCC/Compiler version (if compiling from source):
5.4.0
CUDA/cuDNN version:
CUDA 9.0, cuDNN 7.1.4
GPU model and memory:
NVIDIA 1080 Ti
Exact command to reproduce:
First train a example model use mnist_conv_deconv.py
Then use tensorflow built-in tools to freeze the graph:

python -m tensorflow.python.tools.freeze_graph --input_graph log/graph.pbtxt --input_checkpoint log/model.ckpt-20000 --output_node_names L2Loss --output_graph log/freeze_graph.pb

Finally use tensorrt.py to optimize the graph use TensorRT engine.
Describe the problem
The original graph contains 4 convolution and 4 deconvolution layers.

After optimizing, convolution layers was converted into trt_op (successfully optimized by TensorRT), while all deconvolution layers (conv2d_transpose) remains unchanged.

I think TensorRT support deconvolution as shown in their official guide TensorRT Developer Guide

TensorFlow
The following list describes the operations that are supported in a TensorFlow framework.
Placeholder
Const
Add, Sub, Mul, Div, Minimum and Maximum
BiasAdd
Negative, Abs, Sqrt, Rsqrt, Pow, Exp and Log
FusedBatchNorm
ReLU, TanH, Sigmoid
SoftMax
Mean
ConcatV2
Reshape
Transpose
Conv2D
DepthwiseConv2dNative
ConvTranspose2D
MaxPool
AvgPool
Pad is supported if followed by one of these TensorFlow layers: Conv2D, DepthwiseConv2dNative, MaxPool, and AvgPool

So is there any problem in tensorflow integrations?

@samikama

@qinyao-he There could be many reasons but it is not possible to figure out what is wrong from the pictures since only parent scopes are visible in the plots but not the nodes themselves. Would it be possible to share the network? At least some logs? Also for the time being, TFTRT requires shapes to be statically inferable at the conversion time. Are your non-batch input ranks fixed or are the free?

https://gist.github.com/qinyao-he/573254f8e225a09114b7408cc1c984aa
https://gist.github.com/qinyao-he/28ddedb7f561bb3cb4ba880833f14a89
@samikama These are the two code snippet to reproduce as I stated in the issue description.

@zheng-xq

@samikama could someone take a look at this and help debug this issue?

Do you still see the issue with recent commits?

@samikama I've just tried the most recent master branch. Seems there is error during the conversion.

2018-06-26 15:20:51.327926: I tensorflow/core/grappler/devices.cc:51] Number of eligible GPUs (core count >= 8): 1
2018-06-26 15:20:51.527677: I tensorflow/contrib/tensorrt/convert/convert_graph.cc:726] MULTIPLE tensorrt candidate conversion: 8
2018-06-26 15:20:51.527853: I tensorflow/contrib/tensorrt/convert/convert_nodes.cc:2390] Segment @scope '', converted to graph
2018-06-26 15:20:51.533387: I tensorflow/contrib/tensorrt/convert/convert_nodes.cc:2390] Segment @scope 'dense/', converted to graph
2018-06-26 15:20:51.533767: I tensorflow/contrib/tensorrt/convert/convert_nodes.cc:2390] Segment @scope 'conv2d_transpose/', converted to graph
2018-06-26 15:20:51.534064: I tensorflow/contrib/tensorrt/convert/convert_nodes.cc:2390] Segment @scope 'dropout/dropout/', converted to graph
2018-06-26 15:20:51.534425: I tensorflow/contrib/tensorrt/convert/convert_nodes.cc:2390] Segment @scope 'conv2d_transpose_2/', converted to graph
2018-06-26 15:20:51.534882: I tensorflow/contrib/tensorrt/convert/convert_nodes.cc:2390] Segment @scope '', converted to graph
2018-06-26 15:20:51.535612: I tensorflow/contrib/tensorrt/convert/convert_nodes.cc:2390] Segment @scope '', converted to graph
2018-06-26 15:20:51.536245: I tensorflow/contrib/tensorrt/convert/convert_nodes.cc:2390] Segment @scope 'conv2d_transpose_1/', converted to graph
2018-06-26 15:20:51.537682: E tensorflow/contrib/tensorrt/convert/convert_graph.cc:690]  Can't find a GPU device to work with. Please instantiate a session to initialize devices
2018-06-26 15:20:51.537710: W tensorflow/contrib/tensorrt/convert/convert_graph.cc:812] Can't identify the cuda device. Running on device 0
2018-06-26 15:20:52.558412: E tensorflow/contrib/tensorrt/convert/convert_graph.cc:690]  Can't find a GPU device to work with. Please instantiate a session to initialize devices
2018-06-26 15:20:52.558439: W tensorflow/contrib/tensorrt/convert/convert_graph.cc:812] Can't identify the cuda device. Running on device 0
2018-06-26 15:20:52.559444: E tensorflow/contrib/tensorrt/log/trt_logger.cc:38] DefaultLogger Parameter check failed at: Network.cpp::addInput::281, condition: isIndexedCHW(dims) && volume(dims) < MAX_TENSOR_SIZE
2018-06-26 15:20:52.559459: W tensorflow/contrib/tensorrt/convert/convert_graph.cc:825] Engine creation for segment 1, composed of 3 nodes failed: Invalid argument: Failed to create Input layer tensor InputPH_0 rank=1. Skipping...
2018-06-26 15:20:52.559486: E tensorflow/contrib/tensorrt/convert/convert_graph.cc:690]  Can't find a GPU device to work with. Please instantiate a session to initialize devices
2018-06-26 15:20:52.559491: W tensorflow/contrib/tensorrt/convert/convert_graph.cc:812] Can't identify the cuda device. Running on device 0
2018-06-26 15:20:52.582179: E tensorflow/contrib/tensorrt/convert/convert_graph.cc:690]  Can't find a GPU device to work with. Please instantiate a session to initialize devices
2018-06-26 15:20:52.582202: W tensorflow/contrib/tensorrt/convert/convert_graph.cc:812] Can't identify the cuda device. Running on device 0
2018-06-26 15:20:52.583201: E tensorflow/contrib/tensorrt/log/trt_logger.cc:38] DefaultLogger Parameter check failed at: Network.cpp::addInput::281, condition: isIndexedCHW(dims) && volume(dims) < MAX_TENSOR_SIZE
2018-06-26 15:20:52.583219: W tensorflow/contrib/tensorrt/convert/convert_graph.cc:825] Engine creation for segment 3, composed of 4 nodes failed: Invalid argument: Failed to create Input layer tensor InputPH_0 rank=1. Skipping...
2018-06-26 15:20:52.583249: E tensorflow/contrib/tensorrt/convert/convert_graph.cc:690]  Can't find a GPU device to work with. Please instantiate a session to initialize devices
2018-06-26 15:20:52.583256: W tensorflow/contrib/tensorrt/convert/convert_graph.cc:812] Can't identify the cuda device. Running on device 0
2018-06-26 15:20:52.605704: E tensorflow/contrib/tensorrt/convert/convert_graph.cc:690]  Can't find a GPU device to work with. Please instantiate a session to initialize devices
2018-06-26 15:20:52.605730: W tensorflow/contrib/tensorrt/convert/convert_graph.cc:812] Can't identify the cuda device. Running on device 0
2018-06-26 15:20:53.000096: E tensorflow/contrib/tensorrt/convert/convert_graph.cc:690]  Can't find a GPU device to work with. Please instantiate a session to initialize devices
2018-06-26 15:20:53.000124: W tensorflow/contrib/tensorrt/convert/convert_graph.cc:812] Can't identify the cuda device. Running on device 0
2018-06-26 15:20:53.001103: E tensorflow/contrib/tensorrt/log/trt_logger.cc:38] DefaultLogger Parameter check failed at: Network.cpp::addInput::281, condition: isIndexedCHW(dims) && volume(dims) < MAX_TENSOR_SIZE
2018-06-26 15:20:53.001119: W tensorflow/contrib/tensorrt/convert/convert_graph.cc:825] Engine creation for segment 6, composed of 3 nodes failed: Invalid argument: Failed to create Input layer tensor InputPH_0 rank=1. Skipping...
2018-06-26 15:20:53.001161: E tensorflow/contrib/tensorrt/convert/convert_graph.cc:690]  Can't find a GPU device to work with. Please instantiate a session to initialize devices
2018-06-26 15:20:53.001166: W tensorflow/contrib/tensorrt/convert/convert_graph.cc:812] Can't identify the cuda device. Running on device 0
[1]    20854 segmentation fault (core dumped)  python tensorrt.py

Nagging Assignee @aaroey: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@qinyao-he @xiaocai00 I think the segfault comes from shape inference, when PR #20350 is merged it should go away (I tested on my local machine about that). Now looking at your problem about the conversion.

I ran your script with PR #20350 built with TRT <IP_ADDRESS>, I think all conv layers are now converted:

@qinyao-he @xiaocai00 Would you please wait for PR #20350 to be merged, and build against TRT <IP_ADDRESS> and try again? Thanks.

@aaroey I've just tried your PR branch but is still the same as before. Will this need to be merged to master first?

@aaroey I think your result is just the same as mine before. Although there are some trt_op, all conv2d_transpose ops are remains unchanged. So TensorRT still not optimize conv2d_transpose at all.

@qinyao-he  are you talking about transpose ops? Transposes are never included in TRT, they are to convert data layouts.

@samikama There are no transpose ops. conv2d_transpose is deconv.

@qinyao-he the op type of conv2d_transpose ops is Conv2DBackpropInput, which is currently not supported in the op list of the TF-TRT integration.

@jjsjann123 to check if we would support that op in the future.

@qinyao-he yes that's what I meant. But, you kept mentioning ConvTranspose2D, which nodes have that type? It seems I cannot find any in the graph.

@aaroey I think in tensorflow Conv2DTranspose operation (like in
tf.layers.Conv2DTranspose) is implemented as Conv2DBackpropInput type, but in TensorRT documentation they mentioned as ConvTranspose2D. I think is should be a documentation error, since I think tensorflow doesn't have ConvTranspose2D type. But they should refer to the same thing.

@qinyao-he make sense. I'll leave this to @jjsjann123 to check if/when we can support Conv2DTranspose.

tensorrt does have "deconvolution" layer support: https://docs.nvidia.com/deeplearning/sdk/tensorrt-api/c_api/classnvinfer1_1_1_i_deconvolution_layer.html , which presumably should map to the "Conv2DBackpropInput" op in tensorflow.

TRT does support deconvolution (Conv2DTranspose). We should take a look at this and strat adding support @benbarsdell @pooyadavoodi

Nagging Assignees @jjsjann123, @aaroey: It has been 20 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignees @jjsjann123, @aaroey: It has been 35 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignees @jjsjann123, @aaroey: It has been 50 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @aaroey: It has been 65 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @aaroey: It has been 80 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignees @smit-hinsu, @aaroey: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

PR from Trevor to support conv2d_transpose is merged. Thanks, Trevor!
https://github.com/tensorflow/tensorflow/commit/ca2a1cb4cad2dba0d7c4bde662f36de592f5668f
Closing this issue.


Notes on datasets and pages

@zonca see datasetpages.md or this HTML version for a description of how I created the pages. This was mostly by hand but I also described some of how I made the manifests and included some notes on next steps to add more metadata.

Thanks! I would like to extract metadata from FITS header and store in the portal for querying and filtering.
Where is the best location for the metadata?

Thanks! I would like to extract metadata from FITS header and store in the portal for querying and filtering.
Where is the best location for the metadata?

I suggest creating creating JSON files along side the FITS and DAT files. Like:

datareleases/npipe6v20/lowres/npipe6v20_030_map_ns0016.fits and
datareleases/npipe6v20/lowres/npipe6v20_030_map_ns0016.fits.json.

And put these in the Globus collection with the files. We can then aggregate some of the metadata from the individual files into the dataset metadata, along with the core elements, like title, creation date, and publisher. E.g., datareleases/npipe6v20/lowres/metadata.json. This metadata can be combined to update the dataset descriptions, table of files, and populate a searchable JSON catalog to use with lunr.js or similar.


az upgrade returns python errors

This is autogenerated. Please review and update as needed.
Describe the bug
This is a new machine, so installing everything.  After some python installations, I now get "The system cannot find the path specified." whenever I run an az command.  (or start code)  I tried to check 'az upgrade --all' and got the following error.
Command Name
az upgrade
Errors:
The command failed with an unexpected error. Here is the traceback:
Command '['az', 'version', '-o', 'json']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 657, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 691, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/util/custom.py", line 152, in upgrade_version
  File "subprocess.py", line 415, in check_output
  File "subprocess.py", line 516, in run
subprocess.CalledProcessError: Command '['az', 'version', '-o', 'json']' returned non-zero exit status 1.

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az upgrade --all

Expected Behavior
Environment Summary
Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.28.0

Additional Context

@jiasli for awareness

Some additional information.  I installed Python via the Windows Store, which I've never done before, but things seemed ok for a few days with Python and my command line.  I installed Anaconda, but decided I didn't want that, so un-installed Anaconda, then started to see issues with my command line.  I think I'll uninstall Python and install via exe.

I uninstalled the Windows Store version 3.9.7.  Still had the issue with az upgrade.  It appears there is a python version 3.8.9 in C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2, but it appears to be a 32-bit version, while I've been installing the 64-bit.  Maybe this caused some conflict?

This was the fix: https://github.com/Azure/azure-cli/issues/19202#issuecomment-898271305


Revert "Add table and reword the DoneJS README.md"

Reverts donejs/donejs#868

Coverage remained the same at 96.396% when pulling 60fe0c60a88d62d7a373d5bb46326733d278263a on revert-868-donejs-readme-with-table into 73c51992e2c8b86b3edc62e1dd97dfe5e04fad24 on master.


Move Final / Debrief action to Experiment level?

Right now, we have some information, such as the final score and social media info, displayed through the Final action in a rules file. In many contexts, where we have one block within an experiment, this might seem a bit awkward, as we'll have most of the information displayed here configured on Experiment level. We might consider moving the Final action outside of the rules files, and display it standard (with some options configured on Experiment level) after each block ends.

On closer inspection, this does not seem practical: ToontjeHoger now uses the Final action as the second-to-last action, so we cannot generalize to always show Final last. The Final action is rather messy now, and should probably be cleaned up. Making a separate issue for this.


Update chaos-bugbounty-list.json

Airship

Thank you for updating this list @dasec999, as updated in the readme, we only need to add the domain name instead of all the subdomains in the domains field.


Unassign unused variables

This removes the compiler warnings.
I would love to find a way to get these warnings to break the build but unfortunately Phoenix.View is used in our modules but is not in the mix file (for good reason). This means that we can't run mix compile --warnings-as-errors successfully.
Once we move to Elixir 1.6, I believe the autoformatter will take care of those issues. Any ideas in the meantime?

Oops, I missed this so this was closed by! https://github.com/thoughtbot/bamboo/commit/59ec8fa1cf305ac8fd0ed01bde6f37a639ca9010
I think in the meantime we can keep it as-is and wait to upgrade to Elixir 1.6


using fuel converter efficiency map in fuel economy calcs

Is the fc_eff_map (fuel converter efficiency map) property not used in simdrive.py while calculating fuel economy? The code seems to use the constant kwh_per_gge parameter for conversion. Where else is the fc_eff_map property used?
I am trying to tune a few vehicle models. The glider mass and frontal area are known parameters. I wanted to make a list of other vehicle parameters to tune and was considering fc_eff_map as well.

The fc_eff_map (fuel converter efficiency map) property is used during the simulation loop to calculate the engine's input power (which is equal to the fuel storage output power)
So, this code:
self.mpgge = self.dist_mi.sum() / (self.fs_kwh_out_ach.sum() / self.props.kwh_per_gge)
is affected by the fc_eff_map by way of self.fs_kwh_out_ach.sum(). For example, if the engine is less efficient, the achieved fuel storage output energy will be higher.
Does that help?

@kylecarow Yep I got it. Thanks!
For the tuning, I had to recompute attributes like fc_eff_array and fc_kw_out_array to get simdrive to run as intended as I figured just changing the fc_eff_map values does not change the fc_eff_array which is ultimately used to get the point efficiencies.
I have another related question. At first glance, mc_eff_map does not seem to work similar to fc_eff_map for BEVs. Tuning the fc_eff_map works well for 'Conv' vehicles. what is the analogous attribute that can be tuned for BEVs?
Also, I was trying to compute the mpgge values for BEVs and hit a wall. For e.g., the get_diagnostics() method in the SimDrivePost class gives a mpgge value of 0 for BEVs:
from fastsim import vehicle, cycle, simdrive

veh = vehicle.Vehicle.from_vehdb(20)  # Vehicle ID 20 corresponds to 2016 Nissan Leaf
cyc = cycle.Cycle.from_file('udds')
sim_drive = simdrive.SimDrive(cyc, veh)
sim_drive.sim_drive()  # Run the simulation

sim_drive_post = simdrive.SimDrivePost(sim_drive)

output = sim_drive_post.get_diagnostics()
output

Is there a different functionality already in place that computes the mpgge? If not, I was thinking of manually calculating it using the calculations done in set_post_scalars()

@kylecarow Yep, I got it. Thanks!
I figured had to recompute attributes like fc_eff_array and fc_kw_out_array while tuning because just changing fc_eff_map did not seem to change fc_eff_array which is ultimately used to get the point efficiencies in simdrive.
I have another question. It seems that the mc_eff_map does not work similarly to fc_eff_map for BEVs. Tuning fc_eff_map works well for 'Conv' vehicles. Is there an analogous attribute that I can tune for BEVs?
I was also trying to output the mpgge values for BEVs but hit a wall. Using the following code for BEVs, the mpgge value that I get is 0:
veh = vehicle.Vehicle.from_vehdb(20) # 2016 Nissan Leaf 30 kWh

cyc = cycle.Cycle.from_file('udds')
sim_drive = simdrive.SimDrive(cyc, veh)
sim_drive.sim_drive()

sim_drive_post = simdrive.SimDrivePost(sim_drive)
output = sim_drive_post.get_diagnostics()

output

Is there a functionality in place to compute the mpgge for BEVs? If not, I was planning on computing it using the attributes set in set_post_scalars().

@bharatwrrr Ah, I see. I suppose the thing I neglected to mention is if you are modifying these values at runtime (after loading a vehicle), you should re-run the vehicle's set_derived method, which will recalculate those arrays for you.
mc_eff_map is indeed the analog for motor efficiency (and mc_pwr_out_perc is the analog to fc_pwr_out_perc), what issue are you seeing there? I feel like calling set_derived as mentioned above would help with that also.
For BEVs the MPG value is hardcoded to output 0. You could calculate equivalent MPG for BEVs by doing something like sd.dist_mi.sum() / (sd.ess_dischg_kj / 3.6e3 / sd.props.kwh_per_gge)

@kylecarow Gotcha.
Yep, something similar to the formula you suggested is what i had in mind. Thanks for the clarification! I’d like to contribute functionality to compute MPGGE for BEVs directly in FASTSim, as it seems like a useful feature. Would you be open to reviewing a pull request for this? If there was a rationale of not including this functionality, then I'll leave it as is. I can start by building on the formula you mentioned. Let me know your thoughts.

@bharatwrrr If you'd like to make a PR for the fastsim-2 branch that changes the mpgge computation to something like the above we would be happy to review it! That would be something I would want to port to the fastsim-1 branch as well (the pure python version of FASTSim) for consistency.
As an aside, we are working on a pure Rust rewrite of FASTSim in the fastsim-3 branch. This new version will be introducing a greater degree of modularity and flexibility, and moving away from legacy decisions that persist from porting from Excel etc. In FASTSim 3 we will output everything in terms of energy (and energy per distance), rather than presuppose an energy density for fuel.


registering for an auction from auction sale page doesn't land me back on the page

On staging:
I tapped the register to bid button the auction sale page. I got the eigen sign up splash. Entered in my details, onboarding was skipped and I was able to get to the force registration screen. After entering in my cc info and billing info i was landed back on the explore menu instead of being put back on the auction sale page. When I arrive back on the sale page the registration status IS up to date which is good.

Dupe of #1586


Correct English Spelling

Updated "Archieves" to "Archives"

I love your app! I only noticed a small spelling error. Looking forward to seeing how you build this out!

Hey @leo-daniel! Good catch! Thank you for opening the PRs for correcting the mistake. I will merge them asap! I will be adding more feautres and updating UI soon! Stay updated!


Fix some reported bugs

Fix #1084 (remove react peerDep in html5 backend)
Fix #1080 (update the DragSourceSpec and DropTargetSpec interfaces to allow null components)

It looks like fixing #1080 will cause a major semver with typings. I'll fix #1084 in a separate pr and continue working on 1080


Shortcomings in excellent software and some suggestions

Hello sir, can you add a function to automatically open aria2 when opening ariang native, and also close aria2 when closing ariang? In addition, I think the management of the download list by ariang is a little unreasonable. For example, when deleting a task, you need to delete it twice, and there is no function to delete the task and delete the local file at the same time, and there is no function to quickly open the folder through the download list. I hope you can see it and adopt it. Thank you

duplicate with https://github.com/mayswind/AriaNg-Native/issues/107


generate more "modelmapper" proxy names

hi
When providing a custom PropertyMap then a proxy is generated for source and is used to capture what to do.
The issue is when it is done with container classes these generated classes can be filtered and it can be forbidden to load them from a webapp loader for instance. The solution is trivial: generate org.modelmapper.proxy.$$... names insetad of $$... ones.
edit: getDefaultClassLoader() in AbstractClassGenerator should also ensure it uses the classloader the lower between ModelMapper instance and the class to proxy

Now we are using ByteBuddy instead of cglib. Feel free to create/reopen issue if there is still concern on the proxied type's name.


[Bug] – Typo: PTCH insted PATCH

Insomnia Version: 6.3.2 (<IP_ADDRESS>88)
Operating System: macOS Mojave 10.14.3 (18D109)

Details

Method names are intentionally truncated in the sidebar to a maximum of 4 characters so they don't take up too much space. For example, DELETE will become DEL and OPTIONS will become OPT.


Fix value locations for object field values and add a couple location-specific tests

Previously, object field values would include the name of the field in the span, so in the example test, the span was for field: "value" rather than just "value"
The tests currently fail because some diagnostics need to point at the whole field, not just the value of it.

I'm not sure what the right API is to allow accessing the entire field's (not just the value's) location, as is wanted in some diagnostics.


Angular 14 maxGraph types (*.d.ts) errors

Hello everyone,
i'm trying to use this library whit a new bare angular project.
I tried to clone the maxGraph repository and made the npm link to it in the angular project. So far so good.
But when i'm trying to build the app i have a bunch of errors in the types descriptions (*.d.ts).
To name a few i got :
"Error: ../maxGraph/packages/core/dist/types/gui/MaxPopupMenu.d.ts:29:15 - error TS2420: Class 'MaxPopupMenu' incorrectly implements interface 'Partial'",
"Error: ../maxGraph/packages/core/dist/types/view/cell/CellArray.d.ts:4:5 - error TS2416: Property 'concat' in type 'CellArray' is not assignable to the same property in base type 'Cell[]'",
"Error: ../maxGraph/packages/core/dist/types/view/layout/HierarchicalLayout.d.ts:197:5 - error TS2416: Property 'traverse' in type 'HierarchicalLayout' is not assignable to the same property in base type 'GraphLayout'."
I had similar issue with the old mxgraph back when i installed the mxGraph Types but I don't know what to do here. I'm sure i missed something or maybe it's not really compatible with angular yet?
If you have any idea of what coud be wrong here i would appreciate any help.
Thanks in advance

Hi you are facing #96.
For now, as a workaround, set skipLibCheck to true in the tsconfig.json file of your project.
See https://github.com/tbouffard/maxgraph-integration-examples to see project using the development version of maxGraph.
Feel free to ask for more details


Executable name does not match package name

I think it'd be less surprising if the main script name would also be concurrently.

I agree but at least for now, I prefer less characters in the name. If others find this as an issue, then reconsidering.

New release now deprecates the concurrent command. New recommendation is concurrently.


BCIERS common dashboard - styling

Description:
Our Figma design features a BCiers Dashboard - External & Internal which contains, for logged in users, the links to the registration, reporting, and COAM apps.
External:

Internal:

Acceptance Criteria:
Given
When
Then
Development Checklist:

[ ] Checklist item
[ ] Checklist item
[ ] Checklist item
[ ] Meets the DOD

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

[ ] User story is included
[ ] User role and type are identified
[ ] Acceptance criteria are included
[ ] Wireframes are included (if required)
[ ] Design / Solution is accepted by Product Owner
[ ] Dependencies are identified (technical, business, regulatory/policy)
[ ] Story has been estimated (under 13 pts)

·Definition of Done (Note: If any of these points are not applicable, mark N/A)

[ ] Acceptance criteria are tested by the CI pipeline
[ ] UI meets accessibility requirements
[ ] Configuration changes are documented, documentation and designs are updated
[ ] Passes code peer-review
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Ticket is ready to be merged to main branch
[ ] Can be demoed in Sprint Review
[ ] Bugs or future work cards are identified and created
[ ] Reviewed and approved by Product Owner

Notes:
Dependencies

Blocked by
Blocking

Is this ticket just for capturing the links? Or is it for the styling? @nanyangpro and I had discussed that the styling of this is not the way we are are going about this. This is the lastest external user common dashboard design @shon-button @hannavovk

@nanyangpro, can you update and refine this ticket? e.g. update the screenshots, include AC and current links, etc. (cc: @suhafa, @patrickisaac )

Hi @shon-button (cc: @hannavovk, @suhafa) - I have updated the links to the proper frames in Figma to show the page details and styling details separately. Happy to hop on a call if you have questions or need help fine-tuning the AC together.

Note for devs who will be working on this, the Internal dashboard design linked here will follow the same design style as the External dashboard as mentioned by Nan. For the 'Clean Growth User Access Management' tile in the Internal side, you can use the first icon that appears when you click this link @shon-button

@hannavovk I tried reviewing this but couldn't get the link to work using IDIR log-in. Perhaps we could sync to discuss PO approval of this card?

@patriciarussellCAS
Reachable at:
https://cas-bciers-frontend-dev.apps.silver.devops.gov.bc.ca/

Unable to confirm what this looks like for internal users, but external users looks good. Will close this.


Why do you make lib-a and common the way you do?

In angular and angular-ngc, why are lib-a and common made so they can be package dependencies and not created the traditional way in angular I.E. just making a new component and linking it up the the app.module.ts
Sort of a "why make imports instead of declarations" question I guess. I just want to understand why or when I would do something like this and if it's a bazel specific reason or just an angular specific feature I've never bothered to use.

You mean why not just use local relative imports? I think the examples are trying to demonstrate how to use pnpm workspaces and projects with bazel (along with angular of course). Do you think some additional examples containing just local imports between BUILDs would be useful?

Nono, the dragula component is enough example. I've not used pnpm so I wasn't sure why they were there. Your response answered my question. Thanks for that ^__^


⚠ Processors has degraded performance

In 031476b, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 45 ms

Resolved: Processors performance has improved in cc6b4bc.


Bring back the option to choose dark theme variant

It was removed earlier.
Needed to add more content to Appearance preferences.

Released with Nuvola 4.11.60, more info: Nuvola Brings Redesigned Preferences Dialog, More Appearance Settings, and Bug Fixes