zsh should be case insensitive

https://github.com/dchang-dchang/dotfiles/commit/4bdff76df1d600565d4de462b2fc79680cb57da4


investigate environment reuse

Right now, we create an entirely new state for each request. Could we keep the environment (memory, etc) between calls to an app? What happens if we pause it to run another request to the same app? What happens if we get simultaneous calls to the same app?
Could it be better to provide a cache API that wasm apps can query?

What happens if we pause it to run another request to the same app? What happens if we get simultaneous calls to the same app?

It seems that both LLVM wasm32 backend and Emscripten are using some global state in the generated code, so it might be tricky to make reentrancy work (if even possible).
Maybe it's a good choice to build asynchronous operations on top of something like futures before WebAssembly finally supports threading?


[#34] Replace removeFirst with removeAt

The removal is also moved under the empty collection check to avoid an empty collection removal exception if that case could happen
Closes #34

Hi @pacu, I see. Then, the separation of the two commands and having them in similar conditions would work as expected, and the impacted test would pass, too. I pushed it.


Is facebook message_referrals via a me link still supported?

What are you trying to achieve or the steps to reproduce?

Add a me link http://m.me/xxx?ref=abc to a facebook post
Enabled webhook event subscription for messaging_referrals
click on the link

controller.on('facebook_referral', function(bot, message) {
 console.log(message.referral)
})

this code never triggers

Additional Questions
Can i still set the menu via the api?
Context:
"botbuilder-adapter-facebook": "^1.0.11",
"botkit": "^4.10.0",

@pancake-boy Sorry for the extremely late response.
If Facebook still sends this value, it should be available in the message.channelData.referral field.
Botkit should still emit the facebook_referral event.


Support graphql_flutter v5

Hello,
It would be great to support the v5 of graphql_flutter.
When I try to install artemis v6.18.4 with it, I get this error:
Because no versions of graphql_flutter match >5.0.0 <6.0.0 and graphql_flutter 5.0.0 depends on gql_exec ^0.3.0, graphql_flutter ^5.0.0 requires gql_exec ^0.3.0.
And because artemis >=6.14.1-beta.1 <7.0.0-beta.2 depends on gql_exec ^0.2.5, graphql_flutter ^5.0.0 is incompatible with artemis >=6.14.1-beta.1 <7.0.0-beta.2.
So, because this app depends on both graphql_flutter ^5.0.0 and artemis ^6.18.4, version solving failed.

I don't know what to do with this error because my app depends on v5 of graphql_flutter

Actually, for now it works with the beta: artemis: ^7.1.0-beta.0


Version bump

Just keeping up to date 🙆♂

Tested on Windows and Chrome Dev Tools throws some kind of error into Node
Cannot read pseudoType

Not a big deal -- everything runs fine, but a bit annoying. I'll delay merging for a bit 🙆♂

Yeah -- I suspected that the problem might be with a new version of Chrome included in the new Electron (though I'm just guessing -- unsure if that's what the update includes).
I think the next major version bump in Electron is coming, so I might just upgrade then 👌
It's a bit silly for me to be chasing all the new updates -- the app doesn't interact with the internet so I don't need any security/vulnerability patches ... and there isn't some new Electron API I'm hoping to use ... just doing some code gardening 🏡

Haha, no not at all! 😄 I'd way prefer doing many small updates with little changes, than need to work out how to jump 3 major updates to get that new critical feature you want!
Updates are good! 👍

Checked today -- works without problems on Mac
Then I checked Windows again -- no error I saw before! 🎉
Also ran npm audit fix 💯
Merging ✅


Test json number parsing against Jawn

The idea here is to make sure we actually agree with a json number parsing implementation such as Jawn.
We should do the same for json string parsing when that is added #433

Codecov Report

Merging #437 (daa7253) into main (d2980d3) will decrease coverage by 0.14%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #437      +/-   ##
==========================================
- Coverage   95.14%   94.99%   -0.15%
==========================================
  Files           9        9
  Lines        1338     1338
  Branches      124      124
==========================================
- Hits         1273     1271       -2
- Misses         65       67       +2

Impacted Files
Coverage Δ

core/shared/src/main/scala/cats/parse/Parser.scala
94.36% <0.00%> (-0.18%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

I want to copy some of this to solve #433 so merging without other approval. Since it is only test code and we can revert if needed.


Bug/Issue: Site-Data unable to be cached

Site data cannot be cached as it is only requested via it's id. This is not unique across game variants.
ToDo:

Add game variant to site info requests
Handle game variant per request for site info
Trace through to ensure correct functionality

[ ] Changing reload on null behaviour to remove endless loading animation on failure.


net: lwm2m: Decouple max CoAP packet size from block size

If blockwise transfer is not in use it must be possible to send bigger CoAP messages than what is the block size used with blockwise transfers.
Fix Kconfig help about allowed range for LWM2M_COAP_BLOCK_SIZE. The range has been set to start from 64 bytes and now the help text has been brought up to date.

CC @SeppoTakalo feel free to review/approve.

Please have a look at compliance failures.


Fix: Add axios abort signal

⚠⚠⚠ Since we do not accept all types of pull requests and do not want to waste your time. Please be sure that you have read pull request rules:
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:

[x] I have read and understand the pull request rules.

Description
According to axios#5886 and axios documentation, the timeout property is unable to handle connection issues. We should add an AbortSignal such that even if the connection is stuck, the request will be cancelled on time.
This feature is only available for node.js v15+. Try catch is added which should leave old versions unaffected.
Type of change

Bug fix (non-breaking change which fixes an issue)

Checklist

[x] My code follows the style guidelines of this project
[x] I ran ESLint and other linters for modified files
[ ] I have performed a self-review of my own code and tested it
[x] I have commented my code, particularly in hard-to-understand areas
(including JSDoc for methods)
[x] My changes generate no new warnings
[ ] My code needed automated testing. I have added them (this is optional task)

Screenshots (if any)

Really nice, https://github.com/axios/axios/issues/5886 actually found a way to reproduce.
Also link related issues here for reference.
https://github.com/louislam/uptime-kuma/issues/736 https://github.com/louislam/uptime-kuma/issues/2879 https://github.com/louislam/uptime-kuma/issues/3946


Fix/aws s3 collect multiple profiles

fixes https://github.com/grafana/cloudcost-exporter/issues/173

Cherry picked a change from https://github.com/grafana/cloudcost-exporter/pull/169 to extend the configuration for
AWS to have profiles which represents the profiles you want to pill data
from.
Updated aws/s3 to become aware of multiple profiles and create a new
costexplorer client per profile when fetching billing data.
Updated s3.parseBillingData to return a slice of outputs so that we
can merge them with other profiles before parsing out billing data.

Thanks @inkel and @logyball for the reviews!  Unfortunately this approach isn't going to work the way I had thought 😞 I have a strong preference not to create and maintain secrets to access multiple profiles, and the recommended route is to use roles and the stscreds Assume Role method. Yet Another Cloudwatch Exporter uses this technique to access multiple profiles from the same workload, but I still don't understand the underlying mechanism well enough.
As a temporary workaround, I've deployed an instance of cloudwatch-exporter to EKS clusters in each profile needed, and will follow pattern for the short term.


Update NPM name to be organization scoped

Description

Migrate NPM package name from neo-js-blockchain to @cityofzion/neo-js joining the organisation scope.
Types of changes:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.

@lllwvlvwlll , when approved, can I get you to:

perform npm publish as a new, appropriate package version.
apply deprecation notice for all versions below this, informing existing users that we have moved the package to a new namespace.

Thanks.

Direct update onto master branch, as noted in #109


refactor(GoMod)!: Do not use the revision as project version

Go modules do not have a dedicated metadata field for specifying the version. The only way a version can be defined for a module is via a VCS tag. So, stop using the revision as version for consistency with other package manager integrations. This also simplifies an upcoming change.
Part of #7649.

Closing this as it won't get priority from me anytime soon.


Allow lit 3

What I did

Update peerDependencies to include Lit@3
Fix issue in packages/codelabs/src/intermediate/lit-html.md that was causing failures in prettier
Fix issue in `packages/dev-server-hmr/src/hmrPlugin.js that was causing failures in tsc
Provide files for testing against both Lit@2 and Lit@3

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.alexgagnon seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

any progress?

This should have been fast forwarded as part of other changes. Can you check the latest versions?

any progress? Why do you create the spread for lit 2, file spread-lit2.js?

spread-2.ts references lit@2 while spread.ts is updated for lit@3 so that both major versions can be tested.
I doesn't look like this has made it into upstream yet, and this is getting out of date. I'll close this and open another one with most recent changes

This should be working in currently published versions. If not feel free to reopen a new, updated PR based on the current state of the library. Many thanks!


Application IPs are not shared by OTT for QOD API

Describe the bug
Most of the application doesnt share the application IP, rather they are hosted under CDN and the URL shared cannot be curl’ed. In this case, how we manage to implement QoD?
To Reproduce

Expected behavior
Any alternate parameter to address applications under the CDN's
Screenshots

Environment:
NEF - E///
Additional context

@ameershohail Do you have some background which use case you want to achieve? My first impression is that it might not make sense to use QoD together with the plain use of a CDN. I would rather expect that the CDN and use of QoD should be orchestrated somehow, e.g. as a specific service offered by the CDN provider, utilising the QoD API.
One simple solution could be not to restrict the application server IP, as proposed here for the new QoD Provision mode API. Some operators support that in their QoD implementation today, by allowing <IP_ADDRESS>/0 as application server IP.

In order to support flows towards specific AS we may need to add support for URIs in the future, as that is what is known generally by clients.

In order to support flows towards specific AS we may need to add support for URIs in the future, as that is what is known generally by clients.

If only there was some way to map a URL to a set of IP addresses :-)
The issue will be if multiple URLs are mapped to the same set of IP addresses (e.g. CDN). Will the API then be expected to prioritise ONLY the specified URL and not the others? That will be much harder than just prioritising the associated IP flows as currently defined.

One simple solution could be not to restrict the application server IP, as proposed https://github.com/camaraproject/QualityOnDemand/pull/299 for the new QoD Provision mode API. Some operators support that in their QoD implementation today, by allowing <IP_ADDRESS>/0 as application server IP.

Setting the Application Server to <IP_ADDRESS>/0 would result, that any traffic to any application server gets boosted, i.e. also any background traffic or traffic from concurrent applications.

The issue will be if multiple URLs are mapped to the same set of IP addresses (e.g. CDN).

Yes, CDN Servers are typically serving content from multiple domains. And, not all CDN Servers of a single CDN provider is hosting all content. Thus, the best would be, when the API invoker obtains the list of IP addresses from the CDN provider, which is then passed to the QOD Server.


Detach the overlay even if it is scheduled for reopening

Fixes https://github.com/vaadin/vaadin-dialog/issues/123

This change is

@limonte You see any issues with this PR? The removed code was added with https://github.com/vaadin/vaadin-overlay/pull/85 but it's not covered with tests. I don't see this change re-introducing the original issue either:


Fix for when the user belongs to multiple organization

Originally it only checked if the first organization of the user matches the tool's organization.  Changed it to check all organizations of the user.  Using stream instead of parallel stream because of less overhead.

Coverage decreased (-0.08%) to 72.905% when pulling 95ff36f44fd95486ba6c1bcd2a8f6aecf88506c3 on feature/multiple_organizations into a9951f4a7b73b26b776fe68c56bd1115f5ab2e0f on develop.


Serenity/JS 3.0.0-rc.11 - Serenity BDD CLI to 3.2.0

Hi Jan, you update to Serenity BDD CLI 3.2.0. When running the webdriverio-mocha-todomvc example from Serenity/JS repo the following report is created (Windows 10): target.zip
When you scroll to the Tags section of the report and try to click on "Managing A Todo List" badge the referenced HTML page was not found.
I'm not sure, if this is an issue of the Serenity BDD CLI or if there was a breaking change there which would require a change in the underlying JSON files generated by Serenity/JS.
Would it be possible to stay on 2.6 for  a while? In 3.2.0 the section "Functional Coverage Overview" is gone. When using mocha or jasmine this was always a good entry point if you had multiple spec files.

OK, I can reproduce the issue; it looks like the CLI doesn't generate the feature-level reports (you can see that by running serenity-bdd run --shortFilenames=false).
I'll need to investigate this. Thanks for reporting!

OK, it looks like a regression in Serenity BDD CLI version 3.1.1 that affects specs executed with Mocha (and potentially Jasmine). Cucumber scenarios are reported correctly.

I'll downgrade to 3.1.0 which works correctly.

Downgraded to Serenity BDD CLI 3.1.0 in Serenity/JS 3.0.0-rc12.
@viper3400 - please take it for a spin and let me know if you come across any other issues! Thanks

Thanks, looks much better!
👍


I didn't find any tests for the actual package URLs. I'd like to add tests for those URLs as well.

Looks good to me, but I assume we're waiting for some more tests @jonashaag ?

Are there any tests for package downloads? I haven't found them. I'd like to add the same there


Add Book model

Codecov Report

Merging #5 into master will not change coverage.
The diff coverage is 100.00%.

Impacted Files
Coverage Δ

lib/src/http_client.dart
100.00% <100.00%> (ø)


Codegen constant support

Support for declaring constant in @VertxGen annotated interfaces, e.g
@VertxGen
interface Foo {
   int INT_CONSTANT = 3;
   Buffer  BUFFER_CONSTANT = Buffer.buffer("foo");
   // etc...
}

The generators can implement this feature by using the return type / callback code generation and publishing a constant of their choice:
// Rx
class Foo {
   int INT_CONSTANT = pkg.Foo.INT_CONSTANT;
   Buffer  BUFFER_CONSTANT = Buffer.newInstance(pkg.Foo.BUFFER_CONSTANT);
   // etc...
}

# Ruby
    ...
    def self.INT_CONSTANT
      Java::Pkg::Foo.INT_CONSTANT
    end
    # etc...

see https://github.com/vert-x3/vertx-codegen/issues/93


controller-gen: use vendor/, not build-machinery-go

The build-machinery-go project is suffering from bit rot, which is making it difficult to upgrade the version of controller-gen we use to generate CRDs, which we're going to need to do in order to upgrade k8s dependencies (see HIVE-2616).
With this change, we stop using the piece of build-machinery-go that deals with controller-gen, and instead install it directly from our vendor directory.
HIVE-2626

/assign @celebdor

/lgtm

/override "Red Hat Konflux / hive-operator-enterprise-contract / hive"

These changes only affected CRDs, and those in a way that is irrelevant to operations. (Confirmed by passing e2e-pool.)
This is blocking HIVE-2616 / #2477, which is time-sensitive, so rather than wait for e2e, and for everything to retest (since #2476 merged, which doesn't affect the payload or CRDs at all), I'm going to merge manually.

/cherry-pick mce-2.7


please help me

My computer just reset and forgot to back up all my keybase data is gone I just reset the account they say wait 7 days does the account reset finish losing all xlm? please help me

If you don't have any other device or paperkey to restore the account, yes, you lost XLM and everything you had there.

can you delete all the devices you can log in, and wallet xlm intact

can you delete all the devices you can log in, and wallet xlm intact

No everything is lost on account reset. Keybase doesn't have any of your data.


Order of input_event signals: "visible order"

Godot version:

cac8cc8
OS/device including version:

Ubuntu 18.04 / Radeon RX 560
Issue description:

When I place down two Area2Ds, and then I produce an input_event signal for two areas at once (because they overlap), it doesn't produce the signals in the order I would expect.
Since these events are meant to detect what the user is trying to interact with on their screen, I would have expected it act based on what would be in the 'foreground' and what would be in the 'background' (if the Area2Ds were hypothetically visible), and allow my code to mark the interaction as 'handled' by whatever means, so that background elements don't react when the player is trying to interact with something in the foreground.
So for 3D Areas, it should be done in order from nearest to farthest from the camera, and for Area2D it should use z_index and the reverse order of appearance in the node tree.
Steps to reproduce:

Load the attached project
Note the order of ClickArea1 and ClickArea2, and also the order of Sprite and Sprite2
Run the program and click. 'Left' appears in the output when you may expect 'Right'
Changing the z_index of the Area2D objects doesn't seem to help.

Minimal reproduction project:

collision-input-order.zip
Script from the project:
extends Node2D

func _on_ClickArea1_input_event(viewport, event, shape_idx):
    if (event is InputEventMouseButton and event.button_index == BUTTON_LEFT and event.pressed):
        if get_tree().is_input_handled():
            return
        get_tree().set_input_as_handled()
        print("Left")

func _on_ClickArea2_input_event(viewport, event, shape_idx):
    if (event is InputEventMouseButton and event.button_index == BUTTON_LEFT and event.pressed):
        if get_tree().is_input_handled():
            return
        get_tree().set_input_as_handled()
        print("Right")

There may be some workaround where the signal handler tries to determine what collision objects may be obscuring it, and if it's in the 'background' then it could decide not to act.
But in the case where you have some areas which are actually supposed to allow the user's clicks to pass through it, then this means that all the signal handlers (even in very different parts of the project, perhaps in otherwise self-contained instances) would have to have an awareness of the behavior of these other nodes, and figure out under which circumstances it would want to claim the input event, and under which circumstances it would want to allow it to 'pass through' to a background object.

I tried your minimal project and the input event order of the overlapped area seems to be random. Sometimes I got an expected "Right" without changing anything.

Wow. That makes the problem even worse.
I got 'Left' consistently but it may have been a coincidence.

https://user-images.githubusercontent.com/5731661/140609767-f615f9c0-32b9-497d-9650-ab94041690ad.mp4
I think I ran into this issue but am very new to Godot. From what I've found the z index is respected if you save the project before running it but if you just click the run button after changing the values then the order will be the same as the previous scene values.
Attached is a video repro.

Some further information.
I dug into the source and found the point where these input_event signals are generated: https://github.com/godotengine/godot/blob/13aaa7312427e98661dba0183cbbee6bbc8f6542/scene/main/viewport.cpp#L647
So the results from the physics engine intersect_point are just used in order. This led me to suspect that the script level call would suffer from the same issue. In testing I confirmed that is the case. The ordering in the 2D physics scene is different to the visual ordering in the editor sometimes.
Of course it's subjective as to what the correct order should be but I think an intuitive heuristic would be matching the visual ordering and above all the result should be consistently the same.

duplicate of #23051


remove obsoleted collection attributes

Scope & Purpose
Remove remainders of non-functional collection attributes indexBuckets, journalSize, doCompact, isVolatile from the code.
The attributes were useful for the MMFiles storage engine only, and can be completely ignored for the RocksDB engine.

[ ] :hankey: Bugfix
[ ] :pizza: New feature
[x] :hammer: Refactoring
[x] :book: CHANGELOG entry made
[ ] :muscle: The behavior in this PR was manually tested
[x] :computer: The behavior change can be verified via automatic tests

Backports:

[x] No backports required

Testing & Verification

[x] This change is already covered by existing tests, such as all.

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/12334/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/12341/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/12375/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/12393/


c10/cuda/CUDAGuard.h need CUDA10?

torchvision/csrc/cuda/vision.h   no c10/cuda/CUDAGuard.h?
i use cuda9.0

c10/cuda/CUDAGuard.h belong to torch,but i install torch 1.0.0,do not include it ?

torchvision master (and the upcoming 0.3 release) now requires PyTorch 1.1, and doesn't work with PyTorch 1.0


Raise TypeError for bool(Booleans) except true, false

So we had an incorrect test hiding in test_eval_double2() then I suppose?

Yes, assert lhs < rhs is true regardless of lhs and rhs because bool(Lt(lhs, rhs)) silently produces true.

Thanks for the review


Add Azure as Auth provider option

Related to: https://github.com/polyaxon/polyaxon/pull/144

Forgot about that, done.


Node 8 end of life

Hi, I just received an email from AWS about Lambda's Node 8 supporting EOL being at the end of 2019. However the ASK cli generates new projects with Node 8. Does the 2019 EOL not apply to Lambda functions being used by Alexa Skills? If it does apply, is there anything we can do to fix this? Thanks.

No answer in a month, is this project not maintained?  I got another email about this. How are we supposed to create Alexa projects going forward?

I'm not a project maintainer, but I may know why you're concerned. ASK CLI does not generate projects for Node 8. When you are given the choice between "Node.js V8" and "Python", the V8 doesn't refer to the version of Node, but rather the name of the Node.js engine in play, which is confusingly named "V8".
I'll admit that I was confused by this for a moment, too. But although I keep selecting "Node.js V8", I'm deploying skills for Node.js v13.x with no problems.

Sorry for the late reply.
Thank you for your message. As you mentioned, Node 8 will not be supported going forward.
That is a good suggestion about not defaulting to Node v8.10. We will take it under advisement and keep you updated.

As mentioned above, Nodejs v8.x support has ended starting from 2020.
We have upgraded all the skill templates, changing them from Nodejs v8 to v10.
I have closed this issue. Thanks.

Thank you!


n-tree-select: Can the lazy-loaded tree selection support the echo of deep nodes

This function solves the problem (这个功能解决的问题)
Lazy-loaded tree selection also requires echoing. When the node that needs to be echoed is not at the first level, it cannot be echoed currently
（懒加载的树型选择也会有回显的需求，当需要回显的节点不在第一层级时，当前无法回显）
Expected API (期望的 API)
Allows the user to manually pass in an object or array of selected items (take single selection as an example: { label: 'echo name', value: 'echo value' })
（可以让用户手动传入选中项的对象或数组（以单选为例：{ label: '回显名称', value: '回显值' }））

This issue does not have any recent activity. If you are still experiencing similar problems, open a new error, including a minimal copy of the problem


Re-enable istio app using native Helm will cause CRD already exists

What kind of request is this (question/bug/enhancement/feature request):
enhancement
Problem:
The existing way of using Helm crd-hook to initialize istio CRDs will only work with our custom Helm version v2.10.0-rancherx, if a user chooses to use a vanilla Helm or if we revert the rancher/helm #8213e9c73 changes in the future version bump,  the istio app will fail to install(if istio CRDs exist) and return the following error message:
Error: customresourcedefinitions.apiextensions.k8s.io "adapters.config.istio.io" already exists
Also, this is a known limitation of crd-hook of Helm with #4440 and #5054.
Result:
Ensure rancher-istio can be deployed/re-deployed with both rancher build-int Helm or native Helm.

https://github.com/rancher/system-charts/pull/62

Refactored in istio 0.0.2
will be validated with https://github.com/rancher/rancher/issues/20831


Add more information on Reinforcement Learning

Added a bit more detailed information on Reinforcement Learning which discusses some background of the practice at a high-level

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Closed and Reopened this PR to attempt to resolve a specific Travis build failure.


Simple pagination added to git log pane

The wait time for the git log command has been bugging me, mainly since 90% of the time I just want to look at the last few commits.
I changed it to load a set number (currently 10, from a constant in the module) with a n+1 row stating "Continue". Choosing that row will simply run git log from the last hash for the same number of rows, and re-load the panel.
It could be improved (confs to turn on/off, and for number of rows), but first I wanted to check wether you'd be interested.

This is something I'm interested in, yes. Go ahead and polish it up and add the relevant config settings, and we can get it merged.


React Native - Expo app - Build iOS failed Bash exited with code '1'

Describe the bug
React Native - Expo app - Build iOS failed Bash exited with code '1' on generating script (Generate source map)
9_Generate source map.txt
I not understand what is index.ios.js, I haven't it on my project, locally on xcode (10.1) it build correctly
on AppCenter I set node 8.1 and xcode 10.1
==============================================================================
Generating script.
========================== Starting Command Output ===========================
[command]/bin/bash --noprofile --norc /Users/vsts/agent/2.154.3/work/_temp/1e732b42-f2d6-4ec8-a06f-56fe8b7d0d9e.sh
Found index.ios.js for ReactNative index.
warning: the transform cache was reset.
The resource /Users/vsts/agent/2.154.3/work/1/s/index.ios.js was not found.
Error: The resource /Users/vsts/agent/2.154.3/work/1/s/index.ios.js was not found.
at /Users/vsts/agent/2.154.3/work/1/s/node_modules/metro/src/Server.js:572:58
at Generator.next ()
at step (/Users/vsts/agent/2.154.3/work/1/s/node_modules/metro/src/Server.js:11:1077)
at /Users/vsts/agent/2.154.3/work/1/s/node_modules/metro/src/Server.js:11:1307
at new Promise ()
at /Users/vsts/agent/2.154.3/work/1/s/node_modules/metro/src/Server.js:11:988
at Server._buildGraph (/Users/vsts/agent/2.154.3/work/1/s/node_modules/metro/src/Server.js:572:991)
at /Users/vsts/agent/2.154.3/work/1/s/node_modules/metro/src/Server.js:570:639
at Generator.next ()
at step (/Users/vsts/agent/2.154.3/work/1/s/node_modules/metro/src/Server.js:11:1077)
##[error]Bash exited with code '1'.
##[section]Finishing: Generate source map
##[section]Starting: Xcode build (signed)
To Reproduce
Steps to reproduce the behavior:
"expo": "^32.0.6",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
React native expo project with standalone apps ios/android (expo eject)

Unfortunately Expo app isn't currently supported. #189 tracks the feature request.

Unfortunately Expo app isn't currently supported. #189 tracks the feature request.

Do you know why on the same project Android built correctly? is it a ios problem?

To be honest we haven't looked into the details. Hard to tell just from the build log.

@DennisPan I solved creating a index.js file in the main root of the project, the index.js is a simple React component that import the default main react native route App.js
import React, {Component} from "react";
import App from "./App";

class Index extends Component {
    render() {
        return (
            <App/>
        );
    }
}

const styles = StyleSheet.create({});

export default Index;

This solved the Bash exited


core: add event index

Current dependencies on/for this PR:

main

PR #155   👈

This comment was auto-generated by Graphite.


🌈 Make the tray icon color reflect the sync state

For example the SyncThingTray on Linux: https://github.com/Martchus/syncthingtray/
Has configurable the colors of the syncthing logo for different states:

I find it very useful when i want to quickly see the state. Eg. i check if the icon is green before shuting down my laptop.
I know the synctrayzor icon also kinda let's you know about the state, but with this it's much easier to spot what's going on...

Today i've installed synctrayzor to windows PC of my SO and i kinda don't know how to explain to her when it's safe to shutdown her laptop. On Linux i would just say that she should wait untill the icon gets green and then shutdown. But on synctrayzor it's not that obvious...


Can't pickle local object 'make_resizer..func'

Hi,
I have the error Can't pickle local object 'make_resizer.<locals>.func when I launch the code emd = EMD(vdna1, vdna2)
I'm guessing that the error comes from the pickle module, which I don't want to use.
Even, when I add the option weights_only=True in the function torch.load in the mugs_vit.py, I have the same problem ....
Thanks for the help !

Hi,
I've looked into this and managed to reproduce it in a specific environment.
It seems like it might be linked to some issues with the multiprocessing used by the torch dataloader on some specific systems.
Could you please try setting the number of workers to 0 when creating vdna1 and vdna2 and let me know if the issue still happens?
vdna = vdna_proc.make_vdna(source="/path/to/dataset", num_workers=0)

If you could also let me know which OS you are using so I can confirm where this doesn't work, that'd be great!
Thank you!

Thanks for the quick feedback!
The error has disappeared by specifying this parameter. It's logic because I didn't want to work on multiple device.
For information, I'm on Windows
Thanks for all your help !

Great, happy that solved it! And thank you for confirming your OS.
I will make sure to use that as the default in the future to prevent this issue.


16305 filevalidator case insensitive fix

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Tests pass?
✔

Fixed issues
#16305

Merged. Thank you!


cli.rst: added flask run cli options help

When browsing the CLI doc, I found myself wanting to know how to set host bind interface and port.  These are not currently discussed, and are revealed with flask run --help.
Added that output to the page.

Thanks, I didn't want to include the output of every command's help because that page is already long enough. I already mention using --help at the top.

The --help option will give more information about any commands and options.

@davidism agreed, but sometimes we read docs offline and away from the runtime.  I tried again with a minimal mention of these important options that doesn't just include the output of --help.


a11y: tab focus

Someone who navigates with a keyboard can use the [Tab] key to navigate between links and buttons on the webpage. As such, there needs to be visual focus indicators when tabbing through the site so they can see where they are on the page. When I tab through the site, I can only see the focus indicators when I tab through the links in the content. I do not see focus indicators when tabbing through the table of contents side menu or the next/previous arrows. And I see only faint indicators when tabbing through the four top-menu buttons.

Best fixed in BookML; reported there: https://github.com/vlmantova/bookml/issues/10

fixed in bookml 0.3.8


Inconsistent Payload of 'page' Event

When using pagination on a ldap search, the page event is usually called with this.emit('page', res, cb).
But when no result is available the passed arguments arethis.emit('page', nullCb).
I think it would be better to pass this.emit('page', undefined, nullCb).
https://github.com/ldapjs/node-ldapjs/blob/1cc6a733ba29c0d374427b3f329c5f99700d00a8/lib/client/search_pager.js#L106

Seems reasonable. However, this will be a breaking change. As such, if you'd like to submit a PR for this (remember to include unit tests) please target the next-v4 branch.


the image is coming full in easyzoom

I have applied this image as i find it interesting , i am trying to add the code
but here is one problem
whatever image i apply , i get the zoom area as per that image and the image in zoom area which has class "easyzoom-flyout" is coming full width and there is no zoom going
can anyone please help me
my website url is  http://dev.sparklemuse.com/mobile/index.php?id_product=32&controller=product&id_lang=1&category=3

I'm afraid your link no longer works, are you still having problems?

yes , the problem got solved and the link zoom works great , thanks


How to write a libdef for a function that has another function as a property?

The resolve-from module's API looks like this:
const resolveFrom = require('resolve-from');

resolveFrom('foo', './bar'); // returns a string (or throws an error)
resolveFrom.silent('foo', './bar'); // returns a string or null

What is the proper way to declare that in a libdef? I tried the following:
declare module 'resolve-from' {
  declare module.exports: (
    | ((fromDir: string, moduleId: string) => string)
    | { silent: (fromDir: string, moduleId: string) => (string | null) }
  );
}

...and it seems to work OK when calling resolveFrom.silent(...), but it fails when calling resolveFrom(...) with "Callable signature not found in object type"

I believe the correct solution is to use & instead of |, since it must be both callable and have the silent property:
declare module 'resolve-from' {
  declare module.exports: ((fromDir: string, moduleId: string) => string) & {
    silent: (fromDir: string, moduleId: string) => string | null
  }
}

This makes the resolveFrom function callable, and resolveFrom.silent is callable as well, but Flow isn't checking the parameters for silent. It treats silent as any. I believe this is a bug, and should be reported in its own issue if anybody can double-check it.


first dependency injection, TADIR #1390

extract public methods of ZCL_ABAPGIT_TADIR to new interface
create factory ZCL_ABAPGIT_FACTORY
refactor existing calls

#1390

first try: https://github.com/larshp/abapmerge/pull/52 not tested yet

Just tested it with issue_1390.

merged, no syntax errors in build


feat: add TxScript component

I think the transaction type is not looking good, maybe we could add as a new line, and use the icon, we have on the card... or just a new line. But the two columns look weird.


Add Stratagem Client Validation

Validation does not currently take into consideration that a client may
not have been added to IML. Running stratagem will result in a "Host not
found" error. Instead, the validation should ensure that a client has
been added with the stratagem client profile before running or
configuring stratagem.
Signed-off-by: Will Johnson<EMAIL_ADDRESS>

Codecov Report

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

@@           Coverage Diff           @@
##           master    #1038   +/-   ##
=======================================
  Coverage   95.42%   95.42%
=======================================
  Files           2        2
  Lines         153      153
=======================================
  Hits          146      146
  Misses          7        7

Continue to review full report at Codecov.

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


Can we have ApplyRelationshipFilters Function of CU 1501 as Public and External ?

I am trying to build some generic config. functionality for which I would like to save relation between two different, I have noticed that standard NAV has a function in COD : 1501 as ApplyRelationshipFilters which can be used in this purpose as well, as it has only two parameters for Source and related RecordRef. Can we have this Function as non Local and External ?

Hi,
we don't change a local to global and external unless there is a very good reason for it. As it does not sound like you need this to extend WF functionality but rather as a helper to a new feature I suggest you copy the code into your extension instead.
Cheers,
Gert


Handling response headers/trailers in ConnectionCallbacks::OnEvent(Remote/LocalClose) vs Dtor of network filter

Title: Handling response headers/trailers in ConnectionCallbacks::OnEvent(Remote/LocalClose) vs Dtor of network filter
Description:
I'm trying to understand which operations happen between ConnectionCallbacks::OnEvent(ConnectionEvent::RemoteClose/LocalClose) and the destructor of network filters being called, I mean can I assume that the destruction of network filters is done immediately after OnEvent finish, or some operations happen in between, and if so which kind of operations can happen?
More context about my question: I'm using "TCP tunneling over HTTP" feature in TcpProxy filter with the following two options: propagate_response_headers & propagate_response_trailers and I want to read headers/trailers from FilterState at the end of the connection.
Should I handle response headers/trailers in OnEvent callback (assuming they will not be received in any way after that) or should I wait in that to the destructor of network filter?
I've tried to understand what happens when envoy gets a reset from downstream -> ConnectionImpl::onFileEvent is called which includes a call for ConnectionCallbacks::OnEvent and adding items to deferred deletion list, then DispatcherImpl::deferredDelete is called which incluses destruction of network filters, but I'm not sure if in some situations can something happen between ConnectionImpl::onFileEvent and DispatcherImpl::deferredDelete?

deferredDelete posts the delete to the event loop, so if the event loop is busy some other event processing could happen between the onEvent and Dtor.

@lizan So handling response headers/trailers in onEvent can cause a loss of headers/trailers in some cases as they can be received after onEvent being called?


Draft comms for v3.14.0 release

What
Tell users about release of GOV.UK Frontend v3.14.0
Why
So users know what fixes and features have been released.
How
On Design System homepage:

update 'What's new' panel of Design System homepage

On Slack, post message on:

#gov-uk-design-system on GDS
#gov-uk-design-system on x-gov
#design on x-gov

On email, send to list:

Mailchimp - new and updated components and patterns

Who needs to know about this
Content Design
Done when

[ ] Include acknowledgment of any contributors
[ ] Message drafted
[ ] 2i'd by team
[ ] Posted when we've done the release

Draft doc: https://docs.google.com/document/d/1M6Ep8TWQdwY1kAJWFFSq3f8vSOMfny0qfWhyJAfwa6s/edit#


$.trumbowyg('html', '...new content..') No longer works after 2.6.0

Informations
Browser + version: Chrome latest
OS: Mac OS
Resolution:  Default
How to reproduce the bug?
Using Trumbowyg version 2.6.0:
If you try to do $('textarea').trumbowyg('html',"Hello World");, it will not update the text area with the new content.
This used to work in older versions.

Same here, seems like this part of the api is broken :/

yeah, same here.

Same issue here. Works if you roll back to 2.5.1.

I've checked the diff, I did not understand what's the change, if you could investigate too, it could be cool :)

Did the problem have been resolved?

@Alex-D I can't spot any obvious causes. I assume it's something to do with lines 1017 here.
My issue does involve the WYSIWYG being hidden when instantiated, and the code here does check for visibility beforehand.
I'll have a play about with the source this evening.

Hi @Alex-D ,
I managed to fixthis issue.
I made a pull request with my fix proposal: https://github.com/Alex-D/Trumbowyg/pull/569
Rgds,
Olivier

An hour of my life wasted thinking this was a problem in wiring up Vue properties... :(

I am also facing the same issue. Is there a way to fix this 2.6 or shall we go back to 2.5?

I went back to 2.5.1 version. I works great..

Hello @Alex-D  !
Did you find time to have a look at my fix proposal?
https://github.com/Alex-D/Trumbowyg/pull/569

Thanks a lot!


Bad Gateway 502

Hello brothers,
I found a new bug.
If I go directly to the link http://quran.com/46. Then I get a gateway error. But if I go through the home page to surah 46, It will operate normaly.
Shokran.

An screenshot of the action:

JazakAllah khairan for reporting, restarted the backend, but still need to investigate and find out the root cause since this keeps happening...


We should actually use rng in rand!(rng, sampler)

Currently in Random.rand!(rng, a, sampler) the argument rng is not used instead of the default Random.rand(). We should change this. Does rand(rng) fix it? Or should we remove this argument all together?
https://github.com/Ratfink/RealTimeScheduling.jl/blob/29b345818136ae53e31520ae106d073f6eedb052/src/weaklyhard.jl#L219-L234

An oversight on my part!  Yes, it should be changed to rand(rng) on line 228.


Add module MIP-VCF

include module to generate VCF specific for MIP positions (BED file)

See: https://github.com/CuppenResearch/IAP/commit/2ceee6575f6623309422df4cc5788d272ff0cd37


Returning new context rather than modifying

I'm still fairly new to Koa, and I want to better understand some of its design decisions. In particular, when first learning about Koa, it seemed to me that it could have easily taken a more functional approach. For instance, consider the following example from the README:
app.use(ctx => {
  ctx.body = 'Hello Koa';
});

Instead, the Koa API could have been designed so that this was written to return a new context rather than making modifications:
app.use(ctx => {
  return {...ctx, {body: 'Hello Koa'}};
});

From my perspective, this could add benefits such as making it easier to test middleware (no need to mock functions on the context) as well as playing better with composition chains and functional styles in general. I have a lot to learn about Koa, and I'm curious to know if this has ever been considered. If so, why wasn't it pursued? If not, what are people's opinion of an approach like this?

I was never involved in the design process of Koa but this is my two cents, for what it's worth. Also, I'm no purist nor expert.
Idealistically, following a pure functional pattern would be nice, though I'm concerned about yet another signature change. From Koa v1 to v2, the middleware signature changed from ([next]) to (ctx, [next]), context was moved from being bound to first argument. I personally with think yet another change the benefit seriously needs to outweigh the cost. As far as testability, as long as mutation is expected it shouldn't be "harder" compared to a pure functional approach in JavaScript, just different. A thing or two might be said about tooling and/or debugging but I haven't found this to be an issue myself nor do I see issues to support that case either.
Koa v1 relied on a ... not a hack maybe, but an elegant abuse of generators which pretty much did then what V8 breaks async-await down to today under the hood. The original goal was to move past the express signature (req, res, next) and bind a context to each generator middleware. As promises became "all the shiny" the current mutating approach was probably kept to not completely ostracise community middleware. Koa v2 still supports deprecated Koa v1 middleware through koa-compose (which will be removed in v3) because of this.
I'm doing allot of guesswork here but hopefully this gives you some insight.

@fl0w Thanks for the response! This historical lens provides a lot of valuable insight.
I might try playing around in a fork of koa to see what benefits a more functional approach would provide (won't know until I try!). If there's anything worthwhile that I learn from that, I'll post back here!

@edahlseng I'm going to close this issue for now. Feel free to continue discussion or reopen the issue. Good luck with your experiment :)


Reduce CI time

Attempt to reduce the CI time by using debug mode instead of release. In the end, iOS and Flutter are still using release so it's still around 30min -- but because they are using symlinks they require large refactors (using LD_PATHS does not work with either) I plan to address it in following PRs.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Closing old PRs


Merge pull request #1 from angular/master

Angularfire2 Update

Checklist

Issue number for this PR: #nnn (required)
Docs included?: (yes/no; required for all API/functional changes)
Test units included?: (yes/no; required)
e2e tests included?: (yes/no; required for multi-function/multi-class changes)
In a clean directory, npm install, npm run build, and npm test run successfully? (yes/no; required)

Description

Code sample

Update


Restore Optional Target Config Attribute (notify.pushover)

Description:
Related issue (if applicable): fixes #
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#
Example entry for configuration.yaml (if applicable):

Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

@Nixon506E So the only change needed is changing:
if target is not None:
    data['device'] = target

to just
data['device'] = target

?


how to export quantized model to onnx?

how to export quantized model to onnx?
Also, wanna ask, if backend choose tensorrt quantized model, able to deploy on ncnn? (just out of curiosity)

@Tracin Hi, I looked around the mqbench code. Seems quant doesn't using pytorch inside api: torch.quantization.quantize_fx.prepare_fx, convert_fx etc. What's the difference between them?


Ensure determineContentType() returns a valid result

If the acceptable media type in the Accept header is not first in the list, we need to ensure that we return it correctly.
Fixes #1892

Coverage remained the same at 96.446% when pulling c097e03d8880fe20b56622a0db24686cb02c1aa6 on akrabat:fix-determine-content-type into dbd275b11d791635d74df04135cd0ab3dbefdb0f on slimphp:3.x.


feat(protocol): interpret message.fee as the max fee, not the fixed fee

BEGIN_COMMIT_OVERRIDE
feat(protocol): remove preferred message executer and extra invocation delay
feat(protocol): allow gasLimit to be 0 in Bridge._invokeMessageCall (by returning false)
feat(protocol): deprecate Bridge message's refundTo field
feat(protocol): replace MessageRetried event with B_RETRY_FAILED error
refactor(protocol): refactor Bridge code for readability
feat(protocol): interpret message.fee as the max fee
END_COMMIT_OVERRIDE
The above changes are included in this PR.
message.fee will be used as the max message handling fee to pay for both receiving and processing the message. If a message is handled in two steps (receiving, then processing), the receiving part will also incur a fee and this fee is recorded in receipt.feePaid. At the end of message handling, any unused fee will be refunded to message.destOwner.

Please take another look at the new code.


[Bug]: image API returns .jpeg URL instead of gif/mp4/webm URL, and no additional info that it's not actually that type

What happened?
The image API returns incomplete/incorrect information about animated media.
Civitai post:
https://civitai.com/images/2781137?period=AllTime&sort=Newest&view=categories&modelVersionId=46846&modelId=7371&postId=653473
The media shown on that post is stored here:
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/9354aaa9-9129-4259-8e1e-10a496f79378/transcode=true,width=1080/IMG_5934 (video-converter.com).webm
The API returns this about this post (note jpeg url) via https://civitai.com/api/v1/images?postId=653473 :
id | 2781137
url | "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/9354aaa9-9129-4259-8e1e-10a496f79378/width=1080/9354aaa9-9129-4259-8e1e-10a496f79378.jpeg"
hash | "UNM6\|,~V01xu02s;NKRP.7-;_2WBSixu-pof"
width | 1080
height | 1920
nsfwLevel | "None"
nsfw | false
createdAt | "2023-10-03T18:23:37.919Z"
postId | 653473
stats | {…}
meta | null
username | "neiro_nimfa"
metadata |
nextCursor | null

There does not appears to be any way from what the API returns to know that the jpeg is not really a jpeg, nor any way to find the URL that civitai.com actually uses to display the media.  I say "know that the jpeg is not really a jpeg" because the file at that .jpeg URL is actually a valid mp4 in this particular case.  There is no way to know that without downloading it though.
Steps to reproduce the problem

Go to https://civitai.com/api/v1/images?postId=653473
Note that there is a jpeg URL given and no other information indicating that this is really an animation
Go to the equivalent Civitai post at https://civitai.com/images/2781137?period=AllTime&sort=Newest&view=categories&modelVersionId=46846&modelId=7371&postId=653473
Note that the media on that page is a webm URL, but was never listed in the API

What should have happened?
The image API should return the real media source with a correct extension.
As a stopgap, the API could also return the true type of the media at the URL so that clients would know how to deal with it, if the extension and media type continue to differ.
What platforms do you use to access the site?
Linux
What browsers do you use to access the site?
Mozilla Firefox
Additional information, context and logs
No response

Same issue

Due to other bugs preventing me from getting the site fully running locally, I don't feel comfortable doing a pull request since I can't verify this really fixes everything.  But here are the problematic lines and proposed fixes (notated with FIX):
src/client-utils/cf-images-utils.ts :
const typeExtensions: Record<MediaType, string> = {
  image: '.jpeg',
  video: '.mp4',
  audio: '.mp3',
  // FIX: presumably need code to handle .webm and .gif, but I don't know what the internal type names are
};

export function getEdgeUrl(
  src: string,
  { name, type, anim, transcode, ...variantParams }: Omit<EdgeUrlProps, 'src'>
) {
  if (!src || src.startsWith('http') || src.startsWith('blob')) return src;
  const modifiedParams = {
    anim: anim ? undefined : anim,  // FIX: this looks backwards, turns anim into undefined if set?
    transcode: transcode ? true : undefined,
    ...variantParams,
  };
  const params = Object.entries(modifiedParams)
    .filter(([, value]) => value !== undefined)
    .map(([key, value]) => `${key}=${value}`)
    .join(',');

  const extension = typeExtensions[type ?? MediaType.image]; // FIX: the lack of type being passed in (until now) is the root cause of this bug

  name = (name ?? src).replaceAll('%', ''); // % symbol is escape character for url encoding
  if (name.includes('.')) name = name.split('.').slice(0, -1).join('.') + extension;
  else name = name + extension;

  return [env.NEXT_PUBLIC_IMAGE_LOCATION, src, params.toString(), name].filter(Boolean).join('/');
}

src/pages/api/v1/images/index.ts :
  res.status(200).json({
    items: items.map((image) => ({
      id: image.id,
      url: getEdgeUrl(image.url, { width: image.width ?? 450 }), // FIX: need to new param "type: image.type" after width param
      hash: image.hash,
      width: image.width,
      height: image.height,
      nsfwLevel: image.nsfw,
      nsfw: image.nsfw !== NsfwLevel.None,
      createdAt: image.createdAt,
      postId: image.postId,
      stats: {
        cryCount: image.stats?.cryCountAllTime ?? 0,
        laughCount: image.stats?.laughCountAllTime ?? 0,
        likeCount: image.stats?.likeCountAllTime ?? 0,
        dislikeCount: image.stats?.dislikeCountAllTime ?? 0,
        heartCount: image.stats?.heartCountAllTime ?? 0,
        commentCount: image.stats?.commentCountAllTime ?? 0,
      },
      meta: image.meta,
      username: image.user.username,
    })),
    metadata,
  });

That last post was a little wordy and confusing.  In short, this is what is needed:
diff --git a/src/pages/api/v1/images/index.ts b/src/pages/api/v1/images/index.ts
index 214c87f8..b83221cf 100644
--- a/src/pages/api/v1/images/index.ts
+++ b/src/pages/api/v1/images/index.ts
@@ -80,7 +80,7 @@ export default PublicEndpoint(async function handler(req: NextApiRequest, res: N
   res.status(200).json({
     items: items.map((image) => ({
       id: [image.id](http://image.id/),
-      url: getEdgeUrl(image.url, { width: image.width ?? 450 }),
+      url: getEdgeUrl(image.url, { width: image.width ?? 450, type: image.type }),
       hash: image.hash,
       width: image.width,
       height: image.height,


Chore: Equalize MintQuote and MeltQuote object names

Only renamed objects, might need resorting of imports for formatting reasons.

Thanks for fixing the branch!


exports.loadSync = loadSync missing in npm package<EMAIL_ADDRESS>

The npm package does not come with the loadSync function from the README.md
Using
<EMAIL_ADDRESS>

This is now fixed, please use 0.4.10.


Fix invalid s3 arn.

Resource arn:aws:s3::056154071827:uri-scoring cannot contain an account id.

Pull Request Test Coverage Report for Build 733

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

Totals

Change from base Build 731:
0.0%

Covered Lines:
874

Relevant Lines:
875

💛  - Coveralls

Is this something new with terraform?

No. I thinks it's always been the case. The error was actually from CloudFormation. This s3 bucket was added for the work Jonah was doing, but I don't think ever got deployed until now.


Add Sign in attempts and lock-out

Currently we don't have that sign in attempts anywhere or how long a user is locked out before they're able to attempt signing in again.

Is this only for the API Identity setup or also for the clients?

I am unsure if it needs to be done on clients - i am guessing there needs to be some sort of check on whether they're locked out or not.

Yea. The API should report back that access was denied. Too many tries.


scipy.io.matlab.mio_utils is deprecated, resulting in ebcpy not working anymore

in ebcpy.modelica.simres.py, the following import is done
from scipy.io.matlab.mio_utils import chars_to_strings
This is used only in one function:
def get_strings(str_arr):
    """Return a list of strings from a character array.

    Strip the whitespace from the right and recode it as utf-8.
    """
    return [line.rstrip(' \0').encode('latin-1').decode('utf-8')
            for line in chars_to_strings(str_arr)]

scipy.io.matlab.mio_utils is deprecated and the requirements state scipy>=1.5.4. Since simres.py is imported in data_types, basically nothing works when installing ebcpy in a new, clean environment (where scipy is not installed already, which it probably is in most environments, version 1.11 seems to still work, even though already giving a deprecation warning)

I fixed the issue, should work

Works now, thank you!


Add MIT license

@pedro-teixeira nice grid bundle, thanks!! :+1:

You are welcome @admin-qqq!

@pedro-teixeira Thanks for your bundle! :+1: :clap:

You are also welcome @AveVlad!


Place crashdump files in workflow base directory.

A common problem with our batch processing is that crashdump files clutter up the script directory.  We fully expect many failed runs (due to using the all.q), and the large number of these crash files need to be constantly cleaned up.
Test and add something similar to the following so that the crash files goto the temporary cache directory that is easier to delete.
workflow.config['execution']['crashdump_dir'] = os.path.join(workflow.base_dir, workflow.name)
Hans

Lucky, I just made my NamicExternal build on my OS X. ;)
Some quick search:
http://unix.stackexchange.com/questions/174817/finding-the-correct-tmp-dir-on-multiple-platforms

On OS X:

$echo $TMPDIR
$/var/folders/_c/r0pymxb95tqdc8c6xg60byfh015msc/T/

On Linux:

$ mktemp
/tmp/tmp.5BO2YEjDgW

I will let you know once I start testing these.
Regina


Server-side rendering of Markdown assets to HTML

Using flexmark

TODO:

Styling
Enable extensions
Cache rendered output based on asset file timestamp
Reuse parser and renderer instances


Is AnycostGAN effective in shortening the experiment time?

Hi, @tonylins
I have a question.
As I understand, this study has been studied for the purpose of fast inference in several edge devices.
In addition, this technology seems to be trying to effectively apply knowledge distillation to a high resolution that requires a lot of learning time by conducting various experiments with a fast experiment at low resolution and the confirmed experimental results.
In this part, I am interested. I want to do sufficiently different experiments (ex. Conditional GAN etc.) at 64x64 or 128x128 using AnycostGAN, and apply it to high resolution after completing the experiment. I am curious if it will be applied well to this part.
Obviously, it will be confirmed by experimenting, but if there are any additional papers or techniques that can be referenced in this research method, I would appreciate it if you would recommend it.
And I am curious about your opinion on whether applying technology to high resolution after experimenting in low resolution for the fast experiment is more effective than learning single resolution.

Hi, sorry for the late reply. That is an interesting question. For Anycost GANs, there are two dimensions: resolutions and channels. Actually the channel dimension is harder to support.
If you are only interested in multi-resolution training, it can actually boost the FIDs and reduce training time to some extent (see Table 1), which means you can get better FIDs at shorter training time. I don't have a concrete acceleration number though.
I will close the issue for now. Feel free to follow up with the discussion!


Add the accumulate problem

Getting my feet wet. Any feedback would be appreciated :)

I think the general idea is to avoid built-in functions like map.
You could implement accumulate using pattern-matching like this:
(define/match (accumulate proc lst)
  [(proc '())          '()]
  [(proc `(,x . ,rst)) `(,(proc x) . ,(accumulate proc rst))])

or more traditionally like this:
(define (accumulate proc lst)
  (if (null? lst)
      '()
      (cons (proc (car lst))
            (accumulate proc (cdr lst)))))

It would probably be helpful to have a couple more tests. You might find some inspiration in the LFE version.

Sorry if my comments come off as terse or overly critical. That's not my intention. It's late here an I shouldn't be coding any more tonight...
Thanks very much for getting involved! I hope my feedback is constructive rather than discouraging.

Hi @yurrriq no worries, your comments are very constructive and I'll address them carefully later today (it was very early here and I missed silly stuff like (* arg arg) instead of (arg * arg) :-) )

I have addressed the immediate concerns. I am trying to reproduce also the last test from LFE but I am still a 3-year-old when it comes to list comprehensions (I am using this chance to learn that too). Thanks again for your comments @yurrriq and @bennn, please go ahead if you have other comments.

Hi, anyone has any other comments? If the initial comments are addressed, I'd be happy to know how I can help to have it merged.

Without running the code it looks good to me. @arguello, will you check it out and merge?

looks good, thank you.

:tada:

Whooo thanks @arguello and @yurrriq!


Recorded file size is large

Hi Pedro,
Thank you for making this awesome library.
I use this library to record the video from camera and so far it worked great. The only problem is that the recorded file is very large (i.e. 20s recorded made a file 10MB on storage, 1 hour made 1.8GB file for 1280x720@25fps video recorded) and I cannot make it smaller. I tried to set the bitrate to 500Kb in the constructor like below but it does not work.
mCamera1Base.prepareVideo(1280, 720, 25, 500 * 1024, true, 0)
mCamera1Base.startRecord(path)

This is the info I get from the recorded file:
https://imgur.com/mud2j2d
I found that even I set the bitrate lower (100Kb), the recorded file still large and the output video still has bitrate ~3-4Mbit/s.
I tried to use ffmpegframerecorder and it can reduce the video size in my test (1min made 1MB file only) but I do not know where to integrate into your library. The ffmpegframerecorder needs the byte[] data from the camera to write to disk like in below:
@Override
public void onPreviewFrame(byte[] data, Camera camera) {
    /* get video data */
    if (yuvIplimage != null && recording) {
        yuvIplimage.getByteBuffer().put(data);

        Log.v(LOG_TAG,"Writing Frame");
        try {
            long t = 1000 * (System.currentTimeMillis() - startTime);
            if (t > recorder.getTimestamp()) {
                recorder.setTimestamp(t);
            }
            recorder.record(yuvIplimage);
        } catch (FFmpegFrameRecorder.Exception e) {
            Log.v(LOG_TAG,e.getMessage());
            e.printStackTrace();
        }
    }
}

Do you have any suggestion to change the bitrate in MediaCodec or integrate the ffmpegframerecorder to record pipeline into your library?

Video size is related with video bitrate and keyframe. Maybe your encoder only produce keyframes (I think this is the case if you can't reduce size using less bitrate.
Can you tell me device model and API?
Also if you can share a logcat when you call startRecord to know VideoEncoder name.

Thank you for your reply.
My device is customized Android development board using arm-v7a Cortex A17 chip and the Android OS is 7.1.1.
Here is the logcat from the device when I start recording for 1 minute.
2020-06-24 07:58:14.057 2567-2567/com.test.recordexample E/Activity: onResume
2020-06-24 07:58:14.071 2567-2567/com.test.recordexample I/gralloc: ChipID: 23, RevisionID: 0, SecureOn: 1.
2020-06-24 07:58:14.071 2567-2567/com.test.recordexample I/gralloc: S3G enable fence sync: 1, diu comp on: 1, alloc comp on: 1, lossy comp on: 0, using_native_fence: 1, force sec range: 0
2020-06-24 07:58:14.071 2567-2567/com.test.recordexample I/gralloc: Load Module gralloc: 136.10.36
2020-06-24 07:58:14.144 2567-2585/com.test.recordexample I/OpenGLRenderer: Initialized EGL, version 1.4
2020-06-24 07:58:14.144 2567-2585/com.test.recordexample D/OpenGLRenderer: Swap behavior 2
2020-06-24 07:58:14.151 2567-2585/com.test.recordexample D/s3g_oes_server: ZCompression 0 DCompression 1 SCompression 1 TexCompression 1 PCIECompression 1 VideoCompression 0 VPPCompression 0 DAutoClear 1 SAutoClear 1 ZAutoClear 0
2020-06-24 07:58:14.152 2567-2585/com.test.recordexample D/s3g_oes2:  es2 patch ZCompression 0 DCompression 1 SCompression 1 TexCompression 1 PCIECompression 1 VideoCompression 0 VPPCompression 0 DAutoClear 1 SAutoClear 1 ZAutoClear 0
2020-06-24 07:58:14.180 2567-2585/com.test.recordexample I/EGL: Pre-Transform: 3
2020-06-24 07:58:23.058 2567-2567/com.test.recordexample D/AndroidPositionProvider: Start update
2020-06-24 07:58:23.247 2567-2604/com.test.recordexample D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2020-06-24 07:58:23.301 2567-2585/com.test.recordexample I/EGL: Pre-Transform: 3
2020-06-24 07:58:24.170 2567-2572/com.test.recordexample I/art: Do partial code cache collection, code=14KB, data=26KB
2020-06-24 07:58:24.171 2567-2572/com.test.recordexample I/art: After code cache collection, code=14KB, data=26KB
2020-06-24 07:58:24.171 2567-2572/com.test.recordexample I/art: Increasing code cache capacity to 128KB
2020-06-24 07:58:25.251 2567-2585/com.test.recordexample I/EGL: Pre-Transform: 3
2020-06-24 07:58:26.038 2567-2618/com.test.recordexample E/Camera1Base: Streaming or preview stopped, ignored
2020-06-24 07:58:26.051 2567-2618/com.test.recordexample W/VideoCapabilities: Unsupported profile 4 for video/avc
2020-06-24 07:58:26.058 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile/level 1/65536 for video/mp4v-es
2020-06-24 07:58:26.058 2567-2618/com.test.recordexample I/VideoCapabilities: Unsupported profile 2 for video/mp4v-es
2020-06-24 07:58:26.058 2567-2618/com.test.recordexample I/VideoCapabilities: Unsupported profile 2 for video/mp4v-es
2020-06-24 07:58:26.058 2567-2618/com.test.recordexample I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
2020-06-24 07:58:26.058 2567-2618/com.test.recordexample I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
2020-06-24 07:58:26.058 2567-2618/com.test.recordexample I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
2020-06-24 07:58:26.058 2567-2618/com.test.recordexample I/VideoCapabilities: Unsupported profile 16 for video/mp4v-es
2020-06-24 07:58:26.065 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile/level 1/256 for video/mpeg2
2020-06-24 07:58:26.065 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile/level 1/65536 for video/mpeg2
2020-06-24 07:58:26.066 2567-2618/com.test.recordexample I/VideoCapabilities: Unsupported profile 2 for video/mpeg2
2020-06-24 07:58:26.066 2567-2618/com.test.recordexample I/VideoCapabilities: Unsupported profile 2 for video/mpeg2
2020-06-24 07:58:26.066 2567-2618/com.test.recordexample I/VideoCapabilities: Unsupported profile 4 for video/mpeg2
2020-06-24 07:58:26.066 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 8 for video/mpeg2
2020-06-24 07:58:26.066 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 8 for video/mpeg2
2020-06-24 07:58:26.066 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 16 for video/mpeg2
2020-06-24 07:58:26.074 2567-2618/com.test.recordexample W/VideoCapabilities: Unsupported mime video/x-ms-wmv
2020-06-24 07:58:26.084 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized level 256 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.084 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized level 65536 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.084 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized level 2048 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.084 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 2 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.084 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized level 65536 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.084 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 2 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.084 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized level 65536 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.084 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 4 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.084 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized level 8192 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.085 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 8 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.085 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized level 65536 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.085 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 8 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.085 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized level 65536 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.085 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 16 for video/x-vnd.on2.vp8
2020-06-24 07:58:26.093 2567-2618/com.test.recordexample W/VideoCapabilities: Unsupported mime video/avs
2020-06-24 07:58:26.103 2567-2618/com.test.recordexample W/VideoCapabilities: Unsupported mime video/avs2
2020-06-24 07:58:26.108 2567-2618/com.test.recordexample W/VideoCapabilities: Unsupported mime video/mjpeg
2020-06-24 07:58:26.113 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 4 for video/hevc
2020-06-24 07:58:26.113 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 8 for video/hevc
2020-06-24 07:58:26.113 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 8 for video/hevc
2020-06-24 07:58:26.113 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile 16 for video/hevc
2020-06-24 07:58:26.117 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile/level 1/256 for video/3gpp
2020-06-24 07:58:26.117 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile/level 1/65536 for video/3gpp
2020-06-24 07:58:26.117 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile/level 2/2048 for video/3gpp
2020-06-24 07:58:26.117 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile/level 2/65536 for video/3gpp
2020-06-24 07:58:26.117 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile/level 4/65536 for video/3gpp
2020-06-24 07:58:26.117 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile/level 8/8192 for video/3gpp
2020-06-24 07:58:26.117 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile/level 8/65536 for video/3gpp
2020-06-24 07:58:26.117 2567-2618/com.test.recordexample W/VideoCapabilities: Unrecognized profile/level 16/65536 for video/3gpp
2020-06-24 07:58:26.150 2567-2618/com.test.recordexample W/AudioCapabilities: Unsupported mime audio/dts
2020-06-24 07:58:26.154 2567-2618/com.test.recordexample W/AudioCapabilities: Unsupported mime audio/ac3
2020-06-24 07:58:26.158 2567-2618/com.test.recordexample W/AudioCapabilities: Unsupported mime audio/eac3
2020-06-24 07:58:26.160 2567-2618/com.test.recordexample W/AudioCapabilities: Unsupported mime audio/wmav1
2020-06-24 07:58:26.166 2567-2618/com.test.recordexample W/AudioCapabilities: Unsupported mime audio/wmav2
2020-06-24 07:58:26.170 2567-2618/com.test.recordexample W/AudioCapabilities: Unsupported mime audio/wmapro
2020-06-24 07:58:26.175 2567-2618/com.test.recordexample W/AudioCapabilities: Unsupported mime audio/pcmf32le
2020-06-24 07:58:26.176 2567-2618/com.test.recordexample W/AudioCapabilities: Unsupported mime audio/pcmf32be
2020-06-24 07:58:26.185 2567-2618/com.test.recordexample W/AudioCapabilities: Unsupported mime audio/mpeg-L1
2020-06-24 07:58:26.188 2567-2618/com.test.recordexample W/AudioCapabilities: Unsupported mime audio/mpeg-L2
2020-06-24 07:58:26.191 2567-2618/com.test.recordexample W/AudioCapabilities: Unsupported mime audio/ffmpeg
2020-06-24 07:58:26.193 2567-2618/com.test.recordexample W/VideoCapabilities: Unsupported mime video/ffmpeg
2020-06-24 07:58:26.233 2567-2618/com.test.recordexample W/VideoCapabilities: Unsupported profile 4 for video/avc
2020-06-24 07:58:26.258 2567-2618/com.test.recordexample I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
2020-06-24 07:58:26.271 2567-2618/com.test.recordexample I/VideoEncoder: VideoEncoder OMX.ZX.video.encoder.avc
2020-06-24 07:58:26.271 2567-2618/com.test.recordexample W/VideoCapabilities: Unsupported profile 4 for video/avc
2020-06-24 07:58:26.274 2567-2618/com.test.recordexample I/VideoEncoder: Color supported:<PHONE_NUMBER>
2020-06-24 07:58:26.279 2567-2620/com.test.recordexample I/OMXClient: MuxOMX ctor
2020-06-24 07:58:26.290 2567-2618/com.test.recordexample I/VideoEncoder: Prepare video info: SURFACE, 1280x720
2020-06-24 07:58:26.293 2567-2620/com.test.recordexample E/ACodec: [OMX.ZX.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -2147483648
2020-06-24 07:58:26.301 2567-2620/com.test.recordexample W/ACodec: do not know color format 0x7f000789 =<PHONE_NUMBER>
2020-06-24 07:58:26.308 2567-2620/com.test.recordexample I/ACodec: setupAVCEncoderParameters with [profile: Baseline] [level: Level3]
2020-06-24 07:58:26.310 2567-2620/com.test.recordexample I/ACodec: [OMX.ZX.video.encoder.avc] cannot encode color aspects. Ignoring.
2020-06-24 07:58:26.310 2567-2620/com.test.recordexample I/ACodec: [OMX.ZX.video.encoder.avc] cannot encode HDR static metadata. Ignoring.
2020-06-24 07:58:26.310 2567-2620/com.test.recordexample I/ACodec: setupVideoEncoder succeeded
2020-06-24 07:58:26.312 2567-2620/com.test.recordexample W/ACodec: do not know color format 0x7f000789 =<PHONE_NUMBER>
2020-06-24 07:58:26.328 2567-2618/com.test.recordexample I/VideoEncoder: prepared
2020-06-24 07:58:26.356 2567-2618/com.test.recordexample I/MicrophoneManager: Microphone created, 32000hz, Stereo
2020-06-24 07:58:26.365 2567-2628/com.test.recordexample I/OMXClient: MuxOMX ctor
2020-06-24 07:58:26.386 2567-2618/com.test.recordexample I/AudioEncoder: prepared
2020-06-24 07:58:26.386 2567-2618/com.test.recordexample D/Camera: Cam 0 prepared successfully
2020-06-24 07:58:26.391 2567-2619/com.test.recordexample I/MediaCodec: MediaCodec will operate in async mode
2020-06-24 07:58:26.535 2567-2618/com.test.recordexample I/VideoEncoder: started
2020-06-24 07:58:26.557 2567-2618/com.test.recordexample I/AudioEncoder: started
2020-06-24 07:58:26.567 2567-2632/com.test.recordexample D/s3g_oes_server: ZCompression 0 DCompression 1 SCompression 1 TexCompression 1 PCIECompression 1 VideoCompression 0 VPPCompression 0 DAutoClear 1 SAutoClear 1 ZAutoClear 0
2020-06-24 07:58:26.568 2567-2632/com.test.recordexample D/s3g_oes2:  es2 patch ZCompression 0 DCompression 1 SCompression 1 TexCompression 1 PCIECompression 1 VideoCompression 0 VPPCompression 0 DAutoClear 1 SAutoClear 1 ZAutoClear 0
2020-06-24 07:58:26.694 2567-2618/com.test.recordexample D/s3g_oes_server: ZCompression 0 DCompression 1 SCompression 1 TexCompression 1 PCIECompression 1 VideoCompression 0 VPPCompression 0 DAutoClear 1 SAutoClear 1 ZAutoClear 0
2020-06-24 07:58:26.695 2567-2618/com.test.recordexample D/s3g_oes2:  es2 patch ZCompression 0 DCompression 1 SCompression 1 TexCompression 1 PCIECompression 1 VideoCompression 0 VPPCompression 0 DAutoClear 1 SAutoClear 1 ZAutoClear 0
2020-06-24 07:58:26.706 2567-2618/com.test.recordexample I/EGL: Pre-Transform: 0
2020-06-24 07:58:26.721 2567-2618/com.test.recordexample I/MicrophoneManager: Microphone started
2020-06-24 07:58:27.253 2567-2585/com.test.recordexample I/EGL: Pre-Transform: 3
2020-06-24 07:58:27.506 2567-2620/com.test.recordexample D/ACodec: dataspace changed to 0x10c10000 (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) (R:2(Limited), S:1(BT709), T:3(SMPTE_170M))
2020-06-24 07:58:27.585 2567-2631/com.test.recordexample I/MPEG4Writer: limits:<PHONE_NUMBER>/0 bytes/us, bit rate: -1 bps and the estimated moov size 3195 bytes
2020-06-24 07:58:27.587 2567-2667/com.test.recordexample I/MPEG4Writer: setStartTimestampUs: 1191380
2020-06-24 07:58:27.587 2567-2667/com.test.recordexample I/MPEG4Writer: Earliest track starting time: 1191380
2020-06-24 07:58:27.613 2567-2668/com.test.recordexample I/MPEG4Writer: setStartTimestampUs: 1026216
2020-06-24 07:58:27.613 2567-2668/com.test.recordexample I/MPEG4Writer: Earliest track starting time: 1026216
2020-06-24 07:58:30.116 2567-2572/com.test.recordexample I/art: Do partial code cache collection, code=42KB, data=61KB
2020-06-24 07:58:30.117 2567-2572/com.test.recordexample I/art: After code cache collection, code=42KB, data=61KB
2020-06-24 07:58:30.117 2567-2572/com.test.recordexample I/art: Increasing code cache capacity to 256KB
2020-06-24 07:58:34.139 2567-2585/com.test.recordexample I/EGL: Pre-Transform: 3
2020-06-24 07:58:44.140 2567-2585/com.test.recordexample I/EGL: Pre-Transform: 3
2020-06-24 07:58:53.268 2567-2585/com.test.recordexample I/EGL: Pre-Transform: 3
2020-06-24 07:58:55.273 2567-2585/com.test.recordexample I/EGL: Pre-Transform: 3
2020-06-24 07:59:04.136 2567-2585/com.test.recordexample I/EGL: Pre-Transform: 3
2020-06-24 07:59:23.271 2567-2585/com.test.recordexample I/EGL: Pre-Transform: 3
2020-06-24 07:59:25.268 2567-2585/com.test.recordexample I/EGL: Pre-Transform: 3
2020-06-24 07:59:29.464 2567-2689/com.test.recordexample D/MPEG4Writer: Video track stopping
2020-06-24 07:59:29.464 2567-2689/com.test.recordexample D/MPEG4Writer: Video track source stopping
2020-06-24 07:59:29.464 2567-2689/com.test.recordexample D/MPEG4Writer: Video track source stopped
2020-06-24 07:59:29.466 2567-2668/com.test.recordexample I/MPEG4Writer: Received total/0-length (1934/0) buffers and encoded 1934 frames. - Audio
2020-06-24 07:59:29.473 2567-2668/com.test.recordexample I/MPEG4Writer: Audio track drift time: 0 us
2020-06-24 07:59:29.474 2567-2667/com.test.recordexample I/MPEG4Writer: Received total/0-length (1537/0) buffers and encoded 1537 frames. - Video
2020-06-24 07:59:29.475 2567-2689/com.test.recordexample D/MPEG4Writer: Video track stopped
2020-06-24 07:59:29.475 2567-2689/com.test.recordexample D/MPEG4Writer: Audio track stopping
2020-06-24 07:59:29.475 2567-2689/com.test.recordexample D/MPEG4Writer: Audio track source stopping
2020-06-24 07:59:29.475 2567-2689/com.test.recordexample D/MPEG4Writer: Audio track source stopped
2020-06-24 07:59:29.475 2567-2689/com.test.recordexample D/MPEG4Writer: Audio track stopped
2020-06-24 07:59:29.475 2567-2689/com.test.recordexample D/MPEG4Writer: Duration from tracks range is [61911673, 61925430] us
2020-06-24 07:59:29.475 2567-2689/com.test.recordexample D/MPEG4Writer: Stopping writer thread
2020-06-24 07:59:29.499 2567-2666/com.test.recordexample D/MPEG4Writer: 0 chunks are written in the last batch
2020-06-24 07:59:29.500 2567-2689/com.test.recordexample D/MPEG4Writer: Writer thread stopped
2020-06-24 07:59:29.562 2567-2689/com.test.recordexample I/MPEG4Writer: The mp4 file will not be streamable.
2020-06-24 07:59:29.563 2567-2689/com.test.recordexample D/MPEG4Writer: Video track stopping
2020-06-24 07:59:29.563 2567-2689/com.test.recordexample D/MPEG4Writer: Audio track stopping
2020-06-24 07:59:29.617 2567-2689/com.test.recordexample I/MicrophoneManager: Microphone stopped
2020-06-24 07:59:29.882 2567-2689/com.test.recordexample I/VideoEncoder: stopped
2020-06-24 07:59:29.939 2567-2689/com.test.recordexample I/AudioEncoder: stopped

I tried to change the iFrame to 5 and 10 but no effect on the file size.
I also tried to change FPS to lower number (7FPS) and the file size is smaller (11MB for 7FPS compared to 32MB for 30FPS for 1 minute) but when changing the FPS to 7FPS, the streaming FPS also effected. Is there anyway to streaming and recording in difference FPS?

Sorry for late response. I had no time.
Record and stream use same buffer so you can't set different FPS.
If your encoder only produce keyframe, the only way to get a file with less size is use other encoder.
Can you try force software video encoder?
rtmpCamera1.setForce(CodecUtil.Force.SOFTWARE, CodecUtil.Force.FIRST_COMPATIBLE_FOUND);
rtmpCamera1.prepareVideo(...

Also, if you are using SurfaceView or TextureView try with OpenGlView to force encoder work with surface instead of buffer encoding.


Cleanup code, introduce petset, improve reflection, use pvcs

This PR introduces a petset, while maintaining the old way of doing things as well. I've rewritten run.sh for the most part.

Whoa!  Thank you @paralin!!!  I'm heading off for vacation this afternoon for ~1.5 week off, but this'll be the first thing I look at when I get back.


Allow multiple output types (names) in caikit runtime

Is your feature request related to a problem? Please describe.
Currently caikit.runtime  deduces return type based on request type name <task-type>Request -> <task-type>Prediction, which is implemented here. However, a user may need to have different output type names other than <task-type>/Prediction.
Describe the solution you'd like
One possible solution might be for output pattern types to be made configurable via caikit.runtime.config and allowing list of output "suffixes".
Describe alternatives you've considered
Renaming all my output types for .run function with Prediction suffixes, however the term "prediction" doesn't represent all the domains of AI problems.
Additional context
Add any other context about the feature request here.

Just to make sure this isn't confusing with the link to main I think this is referring to the updated TODO (with less snarky commentary) here
According to @joerunde we should just consider removing that portion

Removal would work too. Thanks @evaline-ju

@gkumbhat  This might be resolved with PR #46

oh nice, I think the only thing left to fully gut this feature would be to rip out any of the leftovers from the strict_rpc_mode bits that we pulled out


API: jsonify log message string

This current formatter does not result in valid json format for the "message" part, since the message is not wrapped in double quotes and special characters are not escaped.
logging.Formatter('{"time":"%(asctime)s", "level": "%(levelname)s", "message":%(message)s}')

Implemented in v0.4.0


Rubocop fixer doesn't pick up the config file

Information
VIM version
NVIM v0.2.2
Build type: RelWithDebInfo
Operating System: Ubuntu 16.04.4 LTS
:ALEInfo
Current Filetype: ruby
Available Linters: ['brakeman', 'rails_best_practices', 'reek', 'rubocop', 'ruby']
Enabled Linters: ['rubocop']
Linter Variables:
let g:ale_ruby_rubocop_executable = 'rubocop'
let g:ale_ruby_rubocop_options = ''
Global Variables:
let g:ale_cache_executable_check_failures = 0
let g:ale_change_sign_column_color = 0
let g:ale_command_wrapper = ''
let g:ale_completion_delay = 100
let g:ale_completion_enabled = 0
let g:ale_completion_max_suggestions = 50
let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%code: %%s'
let g:ale_echo_msg_info_str = 'Info'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_fix_on_save = 1
let g:ale_fixers = {'scss': ['prettier'], 'json': ['prettier'], 'ruby': ['rubocop'], 'javascript': ['eslint', 'prettier-eslint', 'prettier']}
let g:ale_history_enabled = 1
let g:ale_history_log_output = 1
let g:ale_keep_list_window_open = 0
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 0
let g:ale_lint_on_filetype_changed = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 1
let g:ale_lint_on_insert_leave = 0
let g:ale_linter_aliases = {}
let g:ale_linters = {'scss': ['scsslint'], 'json': ['prettier'], 'ruby': ['rubocop'], 'javascript': ['eslint', 'prettier-eslint', 'prettier']}
let g:ale_linters_explicit = 0
let g:ale_list_window_size = 10
let g:ale_list_vertical = 0
let g:ale_loclist_msg_format = '%code: %%s'
let g:ale_max_buffer_history_size = 20
let g:ale_max_signs = -1
let g:ale_maximum_file_size = 0
let g:ale_open_list = 0
let g:ale_pattern_options = {}
let g:ale_pattern_options_enabled = 0
let g:ale_set_balloons = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
let g:ale_set_signs = 1
let g:ale_sign_column_always = 0
let g:ale_sign_error = '✖'
let g:ale_sign_info = '⚠'
let g:ale_sign_offset = 1000000
let g:ale_sign_style_error = '✖'
let g:ale_sign_style_warning = '⚠'
let g:ale_sign_warning = '⚠'
let g:ale_statusline_format = ['%d error(s)', '%d warning(s)', 'OK']
let g:ale_type_map = {}
let g:ale_use_global_executables = v:null
let g:ale_warn_about_trailing_blank_lines = 1
let g:ale_warn_about_trailing_whitespace = 1
What went wrong
My ruby linting works great but fixing doesn't seem to notice my .rubocop.yml file which is located in the root foolder of my project. So it fixes everything like if there were no exceptions (which i have in my .rubocop.yml file). At the same time the rubocop command from the console repects the exclusions in the config file.
Here is what i have on file save:
  Command History:
(finished - exit code 0) ['/usr/bin/zsh', '-c', '''rubocop'' --config ''/home/glaux/my_dev/shaka/fg/.rubocop.yml'' --auto-correct ''/tmp/user/1000
/nvimy1xQIx/6/_listing.json.jbuilder''']
(executable check - success) rubocop
(started) ['/usr/bin/zsh', '-c', '''rubocop'' --format json --force-exclusion  --stdin ''/home/glaux/my_dev/shaka/fg/app/views/api/v1/draft/listin
gs/_listing.json.jbuilder'' < ''/tmp/user/1000/nvimy1xQIx/7/_listing.json.jbuilder''']
(finished - exit code 0) ['/usr/bin/zsh', '-c', '''rubocop'' --format json --force-exclusion  --stdin ''/home/glaux/my_dev/shaka/fg/app/views/api/
v1/draft/listings/_listing.json.jbuilder'' < ''/tmp/user/1000/nvimy1xQIx/8/_listing.json.jbuilder''']
<<<OUTPUT STARTS>>>
{"metadata":{"rubocop_version":"0.55.0","ruby_engine":"ruby","ruby_version":"2.4.3","ruby_patchlevel":"205","ruby_platform":"x86_64-linux"},"files
":[{"path":"app/views/api/v1/draft/listings/_listing.json.jbuilder","offenses":[]}],"summary":{"offense_count":0,"target_file_count":1,"inspected_
file_count":1}}
<<<OUTPUT ENDS>>>

Reproducing the bug

rails new json_rubocop_test
cd json_rubocop_test && vim
add this line to Gemfile
gem 'rubocop'
exit to command line and bundle
add file app/views/layouts/test.json.jbuilder with the following content:
json.(:name)
add this exclusion to .rubocop.yml

---
Style/LambdaCall:
  EnforcedStyle: call
  Exclude:
    - 'app/**/*.jbuilder'

Add this config for Ale:

  let g:airline#extensions#ale#enabled = 1
  let g:ale_fixers = {} " need to initiate variable first
  let g:ale_fixers.ruby = ['rubocop']
  let g:ale_fix_on_save = 1

Save app/views/layouts/test.json.jbuilder and see that json.(:name) autochanged to json.call(:name)
Revert the change and run rubocop -a app/views/layouts/test.json.jbuilder from the console and see no errors (which means the config is valid and exclusion works)

The strange thing here is that it says that "offense_count":0 but it actually fixes the file and changes json.( to json.call(. So maybe it actually sees the config where i have this exclusion:
Style/LambdaCall:
  EnforcedStyle: call
  Exclude:
    - 'app/**/*.jbuilder'

but then it skips it or i don't know what happens so it still applies the rule to the file

this one (#1580) is much more specific so i'm closing mine

I hope somebody helps it:

Check which Rubocop version your project uses (e.g. 0.52.1)
Remove other versions with gem uninstall rubocop and leave only 0.52.1
It should work

It happens because Rubocop runs globally without respect of Gemfile and Rubocop breaks own backward compatibility between different minor versions.

#2036 Fixes excluded files but not excluded folders like in this issue.
I still encounter the bug on my side with this config:
Style/BlockDelimiters:
  Enabled: true
  Exclude:
    - "spec/**/*"

Okay, open a new issue for that.


doc: Add Tuning Guide with shuffle configs

Which issue does this PR close?

Part of https://github.com/apache/datafusion-comet/issues/446
Rationale for this change

What changes are included in this PR?

How are these changes tested?

Thanks @andygrove


Fix GetResourceAllocationInfo2 and GetResourceAllocationInfo calls to work on non-msvc compilers with DirectX-Headers

Hi!
I'm maintaining my own set of Rust bindings to this library. I'm trying to maintain GCC/Clang support for the gnu Rust toolchain for my bindings but I've run into a snag with how this library calls the GetResourceAllocationInfo family of functions.
I'm using the https://github.com/microsoft/DirectX-Headers d3d12 headers as the mingw d3d12 headers are very outdated. GetResourceAllocationInfo and friends are defined like this:
#if defined(_MSC_VER) || !defined(_WIN32)
        virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo(
            _In_  UINT visibleMask,
            _In_  UINT numResourceDescs,
            _In_reads_(numResourceDescs)  const D3D12_RESOURCE_DESC *pResourceDescs) = 0;
#else
        virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo(
            D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
            _In_  UINT visibleMask,
            _In_  UINT numResourceDescs,
            _In_reads_(numResourceDescs)  const D3D12_RESOURCE_DESC *pResourceDescs) = 0;
#endif

#if defined(_MSC_VER) || !defined(_WIN32)
        virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo2(
            UINT visibleMask,
            UINT numResourceDescs,
            _In_reads_(numResourceDescs)  const D3D12_RESOURCE_DESC1 *pResourceDescs,
            _Out_writes_opt_(numResourceDescs)  D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
#else
        virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo2(
            D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
            UINT visibleMask,
            UINT numResourceDescs,
            _In_reads_(numResourceDescs)  const D3D12_RESOURCE_DESC1 *pResourceDescs,
            _Out_writes_opt_(numResourceDescs)  D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
#endif

Notably, the function signatures are different when compiling with something other than MSVC. I'm going to assume GCC and Clang handle the calling convention differently. Attempting to compile D3D12MemoryAllocator with GCC or Clang using these headers currently fails while trying to build the GetResourceAllocationInfoNative functions as they assume the MSVC function definition.
The solution is simple, just #ifdef a variant for the GCC/Clang version of the function.
This is all that's needed for D3D12MemoryAllocator to build on GCC/Clang, at least with the https://github.com/microsoft/DirectX-Headers headers. These headers are needed as the mingw d3d12 headers are very outdated and some of the D3D12_HEAP_FLAGS this library needs aren't defined. They also aren't new enough for my purposes as I'm using the enhanced barrier API and need CreateResource3 to be exposed.
This should just work transparently whether you're using the mingw headers, assuming they get updated, as the mingw headers define an overload for functions like GetResourceAllocationInfo that matches the MSVC signature so both calling styles can be used and it will just resolve to whichever overload is being selected by the #ifdef logic. For reference, the mingw headers look like this:
#ifdef WIDL_EXPLICIT_AGGREGATE_RETURNS
    virtual D3D12_RESOURCE_ALLOCATION_INFO* STDMETHODCALLTYPE GetResourceAllocationInfo(
        D3D12_RESOURCE_ALLOCATION_INFO *__ret,
        UINT visible_mask,
        UINT reource_desc_count,
        const D3D12_RESOURCE_DESC *resource_descs) = 0;
    D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo(
        UINT visible_mask,
        UINT reource_desc_count,
        const D3D12_RESOURCE_DESC *resource_descs)
    {
        D3D12_RESOURCE_ALLOCATION_INFO __ret;
        return *GetResourceAllocationInfo(&__ret, visible_mask, reource_desc_count, resource_descs);
    }
#else
    virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo(
        UINT visible_mask,
        UINT reource_desc_count,
        const D3D12_RESOURCE_DESC *resource_descs) = 0;
#endif

Thank you for this contribution and detailed explanation of the issue.


Picture in Picture support

Any plans on implementing PiP support? Or how would you go about

Not yet, but developers should be able to support PIP on top of GSPlayer.

any example on how to support pip?