Android menus visibility

Noticed a small issue in some of the menus on Android my OS onscreen navigation buttons at the bottom of the screen will disappear forcing me to use the back button in the top left corner of the app rather than the Android virtual back button.

This was recorded in version 1.0.4+27 of the AgoraDesk app and shows how opening the app makes the OS nav bar at the very bottom of the screen (the triangle, circle and square) disappear
You can also see the bar with the clock, battery %, etc. disappear
This is very unusual for an Android app with the exception of when playing a game or watching a video in fullscreen mode
As shown on the video the OS nav bar can be brought back with a swipe from the bottom of the screen and then it remains visible throughout using the app
https://user-images.githubusercontent.com/97783552/187032390-ee2ecba7-237f-41a1-abf8-718bb7afa06a.mp4


fix grub - base.ks

crudini leaves spaces when setting parameters which grub does not understand. i.e.:
GRUB_TERMINAL = gfxterm

implemented workaround w/ sed


Add Heapster service account

Our Heapster deployment should probably be using a separate service account similar to the Heapster repo and kops

I tried adding the RBAC setup above to a dev cluster and got the same issue as https://github.com/kubernetes/heapster/issues/1589, https://github.com/kubernetes/kubeadm/issues/248.
I can no longer find the ref to the heapster-nanny so wondering if it's still needed. @mumoshu any ideas about that?

I've done the changes locally, will submit a PR but the nanny still isn't working (doesn't seem to work already with RBAC).

PR above, still an issue with the nanny sidecar though.

@c-knowles Thanks for your help here 👍
Sry if i'm not answering your question correctly, but AFAIK the nanny sidecar is used toy constantly update a heapster deployment to set more/less resource limits according to cluster size.
Relevant code in nanny: https://github.com/kubernetes/contrib/blob/master/addon-resizer/nanny/nanny_lib.go#L109
So, it makes sense for me to provide the heapster role permission(s) required to update a heapster deployment.

@mumoshu I think the problem is then heapster will have a privilege escalation path. Do you know of other examples of nanny being used? I was trying to find some other similar examples to see how they are tackling this issue.

@c-knowles Sorry but I'm not aware of any other example usage of nanny. I'm looking forward to see @piosz's reply in the upstream issue, too.

cc @mwielgus @x13n

Right now only heapster and eventer are using nanny for vertical scaling. But since this is all a single deployment, this problem does not show up anywhere else. As I wrote in https://github.com/kubernetes/heapster/issues/1595#issuecomment-307470310, short term solution would be just to give those permissions to Heapster.

I found https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/cluster-monitoring/heapster-rbac.yaml which seems like it's what we need.
@x13n Please could you help me understand the difference between the sources in https://github.com/kubernetes/heapster/tree/master/deploy/kube-config and https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/cluster-monitoring? Is there a definitive one?

@c-knowles Files in kubernetes repository are used by startup scripts there (e.g. kube-up.sh) and are more config templates than regular configs - some parameters are set up by those scripts. Deployment scripts from heapster repository can be used as they are and there is in fact a significant number of people using them. There is an open issue to merge the two: https://github.com/kubernetes/heapster/issues/1598

@x13n awesome! Thanks so much for explaining, I had not noticed the issue prior to this so will definitely follow that one.

Submitted the above PR to finish this work off.


rpc-config-default.json配置包含配置项consumer.connect.elastic.precent拼写错误吧，改成percent ?

Your question
describe your question clearly
Your scenes
describe your use scenes (why need this feature)
Your advice
describe the advice or solution you'd like
Environment

SOFARPC version:
JVM version (e.g. java -version):
OS version (e.g. uname -a):
Maven version:
IDE version:

@zonghaishang Yes, you can create PR for this issue.

好的，很乐意处理


Italian translation

Added italian translation.
Still missing translation for all expansions

thanks a lot! - there is one key missing of one of the XOs from the base box: rules.difficultyLevel.veryHard.executiveOfficer.viktor-fiesler
i've spotted some missing translations for base game rules as well (e.g. rules.general.machineryTypeWild, rules.general.building), but if you do not have translations for that at hand, i can merge it as-is.

Whoops, I'll fix them right away! Thank you

thanks, released as v1.1.5

sorry for the more errors you had to fix :)


chore(deps): update terraform-module

This PR contains the following updates:

Package
Type
Update
Change

github.com/terraform-ibm-modules/terraform-ibm-powervs-instance
module
minor
v0.2.6 -> v0.3.0

terraform-ibm-modules/landing-zone/ibm (source)
module
minor
4.4.6 -> 4.6.0

Release Notes

terraform-ibm-modules/terraform-ibm-powervs-instance (github.com/terraform-ibm-modules/terraform-ibm-powervs-instance)
v0.3.0
Compare Source
Features

update os registration for PER DC (#93) (376f426)

v0.2.8
Compare Source
Bug Fixes

support dal10 dc (#88) (6220f11)

v0.2.7
Compare Source
Bug Fixes

update ansible version to 1.1.3 (#86) (313c240)

terraform-ibm-modules/terraform-ibm-landing-zone (terraform-ibm-modules/landing-zone/ibm)
v4.6.0
Compare Source
Features

Add OCP boot volume KMS encryption support (NOTE: Enabled by default for new clusters, but will not be enabled when upgrading from previous version as encryption can only occur at initial provision time) (#534) (26f0d20)

v4.5.5
Compare Source
Bug Fixes

update required ibm provider version to >= 1.56.1 (#545) (39f1a6f)

v4.5.4
Compare Source
Bug Fixes

scope the source of the secrets_manager_to_cos auth policy to the resource group (#516) (5e481cc)

v4.5.3
Compare Source
Bug Fixes

deps: update DAs IBM provider version to 1.56.1 (#543)

v4.5.2
Compare Source
:warning: This release will currently not deploy in IBM Schematics due to a known provider bug. Please use v4.5.3 which has the fix for this if running in IBM Schematics.
Bug Fixes

update to landing-zone-vsi v2.5.0 (#535) (c91b619)

:warning: Warning
If you are upgrading from a previous release, and you are using the override JSON to provision additional VSI data volumes using the block_storage_volumes value, the terraform plan will tell you that it wants to destroy the volumes that are in the Default resource group and recreate them in the same resource group that the VSIs are provisioned in.
If indeed you wish to continue to keep your data volumes in the Default resource group (to prevent them from being destroyed and recreated on upgrade), you can achieve this by adding the Default resource group ID into the block_storage_volumes array in the vsi part of the override JSON. For example:
{
.....
  "vsi": [
    {
        "boot_volume_encryption_key_name": "PREFIX-vsi-volume-key",
        "image_name": "ibm-redhat-8-6-minimal-amd64-5",
        "machine_type": "cx2-8x16",
        "name": "sbx-workload",
        "resource_group": "PREFIX-workload-rg",
        "block_storage_volumes": [
            {
                "name":           "datavol",
                "profile":        "general-purpose",
                "capacity":       100,
                "encryption_key": "PREFIX-vsi-volume-key",
                "resource_group_id" : "65xxxxxxxxxxxxxxxa3fd"
            }
        ]
....
    }
  ]
....
}

v4.5.1
Compare Source
:warning: This release will currently not deploy in IBM Schematics due to a known provider bug. Please use v4.5.3 which has the fix for this if running in IBM Schematics.
Bug Fixes

Migrate DAs to FSCloud profile version 1.4.0 (#524) (d89833d)

v4.5.0
Compare Source
:warning: This release will currently not deploy in IBM Schematics due to a known provider bug. Please use v4.5.3 which has the fix for this if running in IBM Schematics.
Features

added functionality to attach access tags to resources in. (#447) (f4c3e3a)The resources which support access tags are:- Cluster- COS- VPE- VPN- KMS- Secrets Manager- Security Groups- VSIs (Bastion, F5, standard VSI)In order to utilize the access tags for a resource you will need to add a field to the override.json. For example, below is a snippet on how to  add access tags to KMS:

{
  "key_management": {
    "access_tags": ["tag-group:tag-name"]
  }
}

NOTE: creating access tags via Terraform is currently not supported. This module only enables tagging resources with already existing access tags. For more information on creating these access tags, see https://cloud.ibm.com/docs/account?topic=account-access-tags-tutorial.
v4.4.7
Compare Source
Bug Fixes

lock OCP DA version into OCP 4.12 and add validation (#511) (ae8f462)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

/run pipeline

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline


Allow passing through environment variables

This adapts @dflemstr's work in #77, removing the whitelist_all functionality as requested in review.
fixes #76
closes #77

@japaric please critique the configuration UX (location in toml file). I'm happy to change it.

@kamalmarhubi Comments in #77 also suggested an addition to the README describing the new variables.

Having used this in testing where I think the whitelist functionality is working correctly, it'd be helpful if during the CI run the specific whitelisted variables and their values were output to stdout. This would make it clear that a) the values got passed through and b) they're the right values.

@kamalmarhubi Looks good to me. I'm wondering if we should also have a target.$T.env.whitelist option for target specific variables but that can be added later if needed. Oh, and could you document this feature in the README?
@Susurrus perhaps we could print the env vars to stdout/stderr if the -v (verbose) flag is used.

@japaric Yeah, I think that would be useful. I'd be fine deferring that to a later PR however in the interest of getting this released.

I should be able to do this in the next day or so if that timeline is ok. Otherwise happy to make a follow-up PR.

I should be able to do this in the next day or so if that timeline is ok.

That'd be fine. Thanks!

@japaric could you take a look? I'm unable to test it right now as I'm on a restricted network and downloading docker images isn't an easy option.
Also, I'm not super happy with calling this env.whitelist. I'd think something like pass_through or passthrough would be better, but I'm terrible at names.

@kamalmarhubi I slilghtly prefer passthrough instead of env_whitelist, but I don't have a strong opinion either way.

I too think that passthrough fits better.
@kamalmarhubi  Do you think you could add a test for this? Perhaps create a library crate that has a unit test that checks for the presence of some env variable, set that var on the host, place a Cross.toml in that crate and then run cross test on the targets that support testing.

@kamalmarhubi just wanted to ping you on finishing this up. Do you have some time soon here to wrap up this PR?

I'm sorry for the delay on this. It's easiest for me to work on non-work stuff at the weekends. I'll get to it this weekend!

Any updates on this @kamalmarhubi?

I'm having a bit of trouble testing this, as I can't get cross to run at all. I get this error, seemingly with whichever target I use. @japaric any idea what's up?
error: couldn't execute `"rustc" "--print" "target-list"`
caused by: No such file or directory (os error 2)

I can try to reproduce on my end, what's your test environment?

Oh I think I see the issue: to use docker I have to be root, but rust and rustup are installed in my home directory.

Temporarily added myself to the docker group, and it's working. I'll have to test in the evening though. Work beckons!

Apologies for letting this languish. I've rebased and pushed up stuff addressing the review comments. I have tests in progress but not ready to push.

@japaric can you take a look and let me know if you need any changes? Also, let me know if I should try to wrap up the tests or if it can be merged as is.

:pushpin: Commit 40a3f1c has been approved by japaric

Thanks for updating this, @kamalmarhubi. It looks good to me. Let's land it.
@homunkulus r+

:hourglass: Testing commit 40a3f1c with merge 40a3f1c...

:broken_heart: Test failed - status-travis

I'll looking into the failure in a couple hours.

Pushed a build fix, should be good to try again.

@homunkulus r+

:pushpin: Commit 280917f has been approved by japaric

:hourglass: Testing commit 280917f with merge 280917f...

:sunny: Test successful - status-travis
Approved by: japaric
Pushing 280917f13ce5e47c8283ad26f9023c1f758eaee0 to master...

Awesome work guys, thanks!


two Exception error installing tensorflow

this error occurs when i do the "pip3 install tensorflow" command
Exception:Traceback (most recent call last):  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 594, in urlopen    chunked=chunked)  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 391, in _make_request    six.raise_from(e, None)  File "", line 2, in raise_from  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 387, in _make_request    httplib_response = conn.getresponse()  File "/usr/lib/python3.5/http/client.py", line 1198, in getresponse    response.begin()  File "/usr/lib/python3.5/http/client.py", line 297, in begin    version, status, reason = self._read_status()  File "/usr/lib/python3.5/http/client.py", line 266, in _read_status    raise RemoteDisconnected("Remote end closed connection without"http.client.RemoteDisconnected: Remote end closed connection without responseDuring handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main    status = self.run(options, args)  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 353, in run    wb.build(autobuilding=True)  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in build    self.requirement_set.prepare_files(self.finder)  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380, in prepare_files    ignore_dependencies=self.ignore_dependencies))  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 554, in _prepare_file    require_hashes  File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 278, in populate_link    self.link = finder.find_requirement(self, upgrade)  File "/usr/lib/python3/dist-packages/pip/index.py", line 465, in find_requirement    all_candidates = self.find_all_candidates(req.name)  File "/usr/lib/python3/dist-packages/pip/index.py", line 423, in find_all_candidates    for page in self._get_pages(url_locations, project_name):  File "/usr/lib/python3/dist-packages/pip/index.py", line 568, in _get_pages    page = self._get_page(location)  File "/usr/lib/python3/dist-packages/pip/index.py", line 683, in _get_page    return HTMLPage.get_page(link, session=self.session)  File "/usr/lib/python3/dist-packages/pip/index.py", line 792, in get_page    "Cache-Control": "max-age=600",  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get    return self.request('GET', url, **kwargs)  File "/usr/lib/python3/dist-packages/pip/download.py", line 386, in request    return super(PipSession, self).request(method, url, *args, **kwargs)  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request    resp = self.send(prep, **send_kwargs)  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send    r = adapter.send(request, **kwargs)  File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send    resp = super(CacheControlAdapter, self).send(request, **kw)  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send    timeout=timeout  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen    _stacktrace=sys.exc_info()[2])  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment    total -= 1TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

This issue in pip, not tensorflow. Command above will be installing tensorflow by piwheels.
Download whl file using wget:
wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.13.1/tensorflow-1.13.1-cp35-none-linux_armv7l.whl
pip3 install tensorflow-1.13.1-cp35-none-linux_armv7l.whl


Updates for version 1.3 - requested features

7 reagents need to be added to the workflow, see the excel file attached
debug the range of formic acid mentioned in #2
add volume correction to the workflow.  This ensures that the calculated / reported molarity accurately reflect the non-ideal solution behavior

Added 7 reagents to the base of the code with limitations on writing to google sheets.  More serious code overhaul is needed on the experimental interfacing though the base sampling and reagent construction is fairly flexible.  The main limitation to the reagent construction is the assumption that reagents need to end up as a solution.  While this is correct for the constraints of this chemical system it will be limiting for solid reaction.  Another problem is correctly identifying what chemical in a reagent should be labeled as the "solvent".  This is especially important if the goal would be automating the construction of reagents with less user specification (i.e. the current constraint requires that the solvent is ordered LAST in each reagent).
The formic acid sampling is now fixed.  No negative reagent volumes are present.  The experiments can be prepared to any volume.
The actual and nominal volumes are present in the experimental data entry form.  Retroactive implementation is now in process though it is unclear how long this will take to complete on the back end of the code (??)


Change the style of saved workflow timestamp

This timestamp should not be clickable and in a different color.

Fixed in PR#2500


How to user 3rd party typings?

I tried to add google api scripts by "typing install dt~gapi", it added to typings folder, but after that i have no idea how can i import the gapi in app folder, like
const gapi = <gapi>window['gapi']; // here will show error gapi is not defined, so cant convert window.gapi to gapi, what should i do?

you have to create a typings.json config via typings init, install dependencies via typings install and configure your IDE to use typings (e.g. vscode wants a jsconfig.json in order to enable intellisense)


crash on install 1.11.2

https://pastebin.com/zuMH8X6V
from what i understand it seems to be missing something for the eyes? i could be wrong but i cannot start a game with this mod without it crashing on me,
i have tried it with no mods other than it, and several other mods, both have had the same result, i really want to play this in 1.11.2 but it wont let me

The mod does not support 1.11.2 yet. It's only compatible with 1.10.2


Add smoot unit

From: https://en.wikipedia.org/wiki/Smoot

(Sorry, don't review yet, need to actually include it in the prelude..)

Should be good now, sorry!

Thanks for the update


Install inside Laravel

Can this client be installed inside a Laravel project? Will it work without conflicts?

Yes, sure

Yep, I have installed it in Laravel and works like charm, thanks a lot!


js_helper.dart:1342 Uncaught TypeError: a.$1 is not a function

pc chrome
flutter web

flutter sdk moved to
https://github.com/pion/ion-sdk-flutter
if this issue still exist, please make issue there


publish to npm

Looks like a great addon, can't wait to give it a go.
It doesn't appear to have been published to npm yet?
$ npm install --save-dev ember-cli-node-webkit
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--save-dev" "ember-cli-node-webkit"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code E404

npm ERR! 404 Not Found: ember-cli-node-webkit

+1

It was announced before I got around to publishing it, but it is published now: https://www.npmjs.com/package/ember-cli-node-webkit :)

@brzpegasus I thought that might have been the case! Thanks for pushing it up to NPM, I'll have a play tomorrow. Cheers.


Need doctest style examples

There are quite a few functions that would benefit from some doctest style examples.  This issue is to track adding them.

[ ] AsyncWebsocketClient & it's functions.

I've been a lot more thorough with the doctests with the new API, closing this.


Warning banner renders oddly in blog overview pages

A few instances of this issue on https://www.pulumi.com/blog/author/joe-duffy/page/3/.

This was fixed at some point. Not sure when...


compiler crashes setting non x86 tarrget.

running
arocc --target=msp430-other-none 0001_test.c
yields
thread 2516858 panic: reached unreachable code
/home/jonross/tinker/forks/arocc/src/Compilation.zig:382:17: 0x309053 in Compilation.generateBuiltinTypes
(arocc)
        else => unreachable,
                ^
/home/jonross/tinker/forks/arocc/src/Compilation.zig:125:34: 0x2e6b52 in Compilation.generateBuiltinMacros
 (arocc)
    try comp.generateBuiltinTypes();
                                 ^
/home/jonross/tinker/forks/arocc/src/main.zig:327:51: 0x2dff2f in mainExtra (arocc)
    const builtin = try comp.generateBuiltinMacros();
                                                  ^
/home/jonross/tinker/forks/arocc/src/main.zig:44:14: 0x2dc430 in main (arocc)
    mainExtra(&comp, args) catch |er| switch (er) {
             ^
/home/jonross/tinker/clone/zig/lib/std/start.zig:577:29: 0x2bb883 in std.start.posixCallMainAndExit (arocc
)
            return root.main();
                            ^

Here is clang's target definitions: https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Targets/MSP430.h
They also define some macros: https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Targets/MSP430.cpp

I'd assumed arocc was taking zig targets? I'm pretty sure that's a valid zig target.

Yep, you are correct; the issue is that msp430 has 16-bit pointers and that case isn't handled in generateBuiltinTypes


Add ImageWare MyBib to ALTO conversion by karkraeg, fix #139

@karkraeg If you could share some test data to make sure the integration works as expected, that would be appreciated.

I will provide test data hopefully this week!

Testdata.zip

Thanks!


Covert overlay modals to unified modal system.

This converts three modals:

Markdown Help
Keyword Shortcuts
Search Operators

Into a system in which they all appear in the same overlay now.

Automated message from Dropbox CLA bot
@brockwhittaker, it looks like you've already signed the Dropbox CLA. Thanks!

Pushed with fixes and minor refactoring.

Bump.

Bump @timabbott.

This looks great, though I think maybe the overlay is too narrow?  This isn't consistently happening every type I open, but if reload the browser and then hit ?, it looks like this:

Clicking to one of the other widgets and back "fixes" it magically, I guess because the browser discovers no scrollbar is required.
I think the issue that the Linux scrollbar is nontrivial in size, and thus if it is present, it breaks the rendering, even though it wouldn't need a scrollbar if things were actually displayed side-by-side.
I'm increasingly convinced that we may want to just use a standard scrollbar on all of these overlays based on the left sidebar one, so that we stop having cross-platform issues here.
Also, I noticed that markdown-help and search-operators were swapped in the key-based overlay definition.  Hilarious that something that should help avoid the wrong thing opening has the opposite effect :).

Also, I noticed you're fully capitalizing "Keyboard Shortcuts".  Stylistically, basically across the entire app, we're just capitalizing the first letter; so it should be e.g. "Keyboard shortcuts", so please be careful about using the right capitalization consistently (changing it breaks translations, etc.).

OK I merged this after making these changes.  I think improving the scrollbars for our popovers and modals is probably a good project to work on soon.  Probably jquery-perfect-scrollbars is fine as a library, and we can just start using it in more places (potentially eliminating use of bootstrap in places where it's not flexible enough?).
diff --git a/static/js/hotkey.js b/static/js/hotkey.js
index 97c97d3..75c0933 100644
--- a/static/js/hotkey.js
+++ b/static/js/hotkey.js
@@ -211,6 +211,7 @@ function process_hotkey(e) {
             return true;
         } else if ($(".informational-overlays").hasClass("show")) {
             ui.hide_info_overlay();
+            return true;
         }
     }

diff --git a/static/js/ui.js b/static/js/ui.js
index 4a938ce..8d1b91a 100644
--- a/static/js/ui.js
+++ b/static/js/ui.js
@@ -285,9 +285,9 @@ $(document).ready(function () {
         name: "info-overlay-toggle",
         selected: 0,
         values: [
-            { label: "Keyboard Shortcuts", key: "keyboard-shortcuts" },
-            { label: "Message Formatting", key: "search-operators" },
-            { label: "Search Help", key: "markdown-help" },
+            { label: "Keyboard shortcuts", key: "keyboard-shortcuts" },
+            { label: "Message formatting", key: "markdown-help" },
+            { label: "Search operators", key: "search-operators" },
         ],
         callback: function (name, key) {
             $(".overlay-modal").hide();
diff --git a/static/styles/informational-overlays.css b/static/styles/informational-overlays.css
index 6c5734d..b71e1f9 100644
--- a/static/styles/informational-overlays.css
+++ b/static/styles/informational-overlays.css
@@ -68,3 +68,8 @@
 .informational-overlays td.operator {
     font-size: 0.9em;
 }
+
+/* Hack to fix scrollbars on Linux */
+.informational-overlays #keyboard-shortcuts .modal-body {
+    overflow-y: hidden;
+}
diff --git a/templates/zerver/navbar.html b/templates/zerver/navbar.html
index 1603345..0b0631e 100644
--- a/templates/zerver/navbar.html
+++ b/templates/zerver/navbar.html
@@ -20,7 +20,7 @@

             <form id="searchbox_form" class="form-search navbar-search">

-
+
                 <input class="search-query input-block-level" id="search_query" type="text" placeholder="{{ _('Search') }}"
                        autocomplete="off" />
                 {# Start the button off disabled since there is no active search #}
@@ -72,7 +72,7 @@

-                       {{ _('Keyboard shortcuts') }}
+                       {{ _('Keyboard shortcuts') }}

@@ -80,9 +80,9 @@
                        {{ _('Message formatting') }}

-

+

-                       {{ _('Search help') }}
+                       {{ _('Search operators') }}


How do I execute Dynamically (like Eval) in Dart?

var doAdd = new Function("iNum", "alert(iNum + 10)");
doAdd(10);---->  20

Dart does not allow you to create code at run-time.
What problem are you trying to solve?
There are workarounds when you are running on the VM and has access to isolates. You can create a new library with a main function, encode the source code as a data: URI and spawn it as a new isolate, but that will not allow you to create a new functions in the current isolate. You'll have to communicate with the new code using isolate port communication.
In general, I'd recommend trying something else. It is often possible to get the effect of generating code by just combining first-class function values, but that obviously depends on the problem at hand.

I dynamically render the form through the json data given by the backend. The disabled corresponds to a piece of javascript, similar to angular ngx-formly expression

Though not planned, but it is possible actually.
Dart could take advantage of JavaScript prototype chain as Kotlin/JS in https://rosettacode.org/wiki/Reflection/Get_source#Kotlin
It is possible even in Dart/VM in JIT mode: https://rosettacode.org/wiki/Reflection/Get_source#Kotlin


Canny TBB Optimization

Generally a good speedup.
I did some tests in a quad core:
Measured 40-80% speedup compared to IPP.
Speedup compared to the pure serial code 2.4x
IPP cpu utilization was 100%
TBB cpu utilization was 265%
So IPP is more efficient, but TBB is faster. Also non-x86 platforms will benefit from TBB.
check_regression=anny

can not universal cv::parallel_for be used here?

As the iterations for maxima supppresion / thresholding are not independent (because of the ring buffer, the check to the previous row before pushing a "sure" edge to the stack to save calculations and edge tracking ) I think cv::parallel_for wouldn't work.
As for the Sobel step, propably a good solution would be to parallelize FilterEngine::proceed , but there is also a ring buffer there.
But even if we did that, we wouldn't have the option to use ippSobel to calculate the image slices.

@oresths, thank you for the contribution!
I have some doubts about the patch though. First of all, as @ilya-lavrenov said, you are using TBB, which we replaced in 99% of cases with the universal parallel_for_. On iOS/OSX and on Windows TBB is not used by default (on iOS it can not be used at all), so it limits the usability of the patch.
Secondly, I have not studied it in details, but from what I see, the edge tracing part has been also parallelized, and since you do not use any atomic operations to read and write the map, there is very big chance of data races in my opinion.
In other words, we can not accept the patch as-is. If you modify the patch to parallelize only the first part of the algorithm, before the edge tracing, which can be done using cv::parallel_for_, then there will be no data races and the threading will be available on all the platforms. Even though the speed may decrease a bit, the algorithm correctness is more important.

Hi @vpisarev, thanks for checking the patch.
About OSX and windows not using TBB by default I need some clarification. Do you mean is not used by default because OpenCV doesn't install TBB by default or because in the canny source file I let IPP version first ?
If it is the first case, because IPP is prioritized (I think it should be prioritized because it is more efficient), to use TBB version you should undefine IPP code so TBB can be used. But if you can do that, you know you should install TBB first.
If it is the second case, I can change that easily.
For any case I think is better for the user to decide what's best for their project.
Before I go into further explanation it would help to split current canny implementation into 4 steps (different from the theoretical ones).
First step is sobel,
second step is magnitude calculation,
third step is thresholding and
fourth step edge linking.
So, here is an example test case; I used this image https://github.com/oresths/opencv-tests/blob/master/people.jpg , all tests are performed in an Odroid XU running Ubuntu.
With low_thres=100 and high=150
Step1 – 132ms
Step2 – 35ms
Step3 – 83ms
Step4 – 24ms
Time to allocate an image size integer matrix - 64ms
So for the first step, which is usually the slowest, FilterEngine::proceed should be parallelized. But the ring buffer there prevents the use of parallel_for, because iterations are not independent. Moreover my tests with NEON filters showed that the cost of allocating an integer intermediate buffer would require more time than the filters themselves. So, although this would be the optimal solution, as many other algorithms will benefit, I think proceed function should be rewritten for parallelization, which is a complicated task and probably will not happen any time soon.
Also, the way I implement it users can choose between ippSobel (for x86 platforms) and SSE / NEON, if they so desire.
Steps 2 and 3, are the steps we could use parallel_for by removing the ring buffer, but with the added cost of allocating an image size integer matrix for magnitudes (64ms – huge performance hit). Also step 2 is fast anyway, so the impact in performance is very small. Step 3 is threshold dependent. I think that with parallel_for the parallel version could be slower than the serial in some cases.
Instead of removing the ring buffer I would suggest that we make ring buffers for dx and dy sobel results, because allocation for each destination matrix costs 32 ms (another 64ms performance hit !)
For steps 3 and 4 I first tried atomic operations to protect a common stack, but performance boost was disappointing. So I had to find a way to remove locks (which is a good practice anyway when parallelizing)
I realized that each stripe could be completely independent from other stripes. What I do is that when a task pops a value that is close to the border, I stop the linking, I send it to a TBB concurrent queue, and continue with the next value in the stack. Then after all threads finish, elements in the concurrent queue are processed serially. This had a considerable performance boost. Also, by design there should be no chance of data races (that goes for all the steps, too).
If you can wait, I will make some other time measurements and post them here later.
Some ideas to improve my implementation:

If IPPDerivSobel in the future supports borders for non - isolated ROIs, the first step could be simplified significantly.

Some other ideas for optimization would be:

Include the first theoretical Canny step (smoothing filter) in the canny.cpp to prevent yet another allocation
If the first theoretical step is a linear filter maybe it is worth it to filter the sobel kernels with the smoothing filter first before filtering the whole image.  A study of computational complexity is required here to choose right kernel sizes for filtering the image, without slowing down. Also SymmColumnSmall32s16s for the general antisymmetric case should be implemented with SSE / NEON and createSeparableLinearFilter should change accordingly to allow for integer intermediate buffer, so as to avoid some floating point arithmetic. (Something like this: https://github.com/oresths/opencv/commits/MixedSobelGauss (only 5x1 NEON version implemented))
Optimize somehow the final image creation (the step that creates the 0 or 255 canny output image). It costs 27ms and 42ms if it wasn’t preallocated.

To sum it up, before writing anything I checked if it could be done with cv::parallel_for, and I had to reject it because it wouldn’t work / doesn’t worth it. So I decided to use TBB which is very portable (except iOS ? - is there a framework in opencv that supports every platform ?) and a very popular addition to opencv.   So I created  a fast  mutex-free and race free version with only minimal modifications to the serial version (that makes for easier maintenance etc). This implementation is by no way the best solution but someone has to make the first step.
If the practice is to not parallelize at all if it is not possible with parallel_for, please feel free to close the PR.
If you have any suggestions / questions I would be happy to reply.

@oresths, terribly sorry for delay; I hoped, I can find time to do something from the suggested list (like optimizing out Sobel's), but in the end decided to merge your patch and then refine/optimize Canny further. The technique you use looks great. I still believe it can be done with a parallel_for (and then users on Windows and iOS/OSX will enjoy the acceleration as well), but let's do it later. Thanks again for the contribution! :+1:


Persist user options in browser local storage

It's convenient if user's choice is persistent.

Hi, I removed ngStorage.min.js, and create a new pull request: #521


added priviledged=true to the init container and to all tests

Commit https://github.com/istio/pilot/pull/921 on behalf of @bjartek.
Add privileged=true to init-containers to unblock deployments with SELINUX (e.g. OpenShift). As @bjartek suggested in his original PR, this is functionally sufficient, but longer term someone needs to sort through what exact permissions are needed with SELinux and add the necessary RBAC rules to OpenShift similar to what what it is for Kubernetes in the main repo.
Fixes istio/issues#34

Jenkins job pilot/presubmit passed

The mystery is still why SELinux requires more capabilities than NET_ADMIN for iptables.
Let's get this in, and solve the mystery once we involve more SELinux users/folks.

Jenkins job pilot/e2e-smoketest passed

next time let's make sure to add the credit in the commit message itself
(and hopefully soon we don't have to do this 'takeover' business)

Let me know if you need more help with istio/Openshift :)

so it turns out this is required after all ? should we revert this ?
https://groups.google.com/d/msg/istio-users/8gI2DdnvOag/Ds_6oG-bBgAJ

The reason I did this patch is not that post. There was issues when SELinux is enabled. Setting priviledged=true fixed it.
|bjarte
Sent from my iPhone

On 14 Jul 2017, at 02:27, Laurent Demailly<EMAIL_ADDRESS>wrote:
so it turns out this is required after all ? should we revert this ?
https://groups.google.com/d/msg/istio-users/8gI2DdnvOag/Ds_6oG-bBgAJ
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Factor out findInterval and find a good place for it

Will do that myself, because I need to use it already in a third place (to pick the right stairs type based on a frequency and rarity). Closing.


[AutoPR] adhybridhealthservice/resource-manager

Created to accumulate context: adhybridhealthservice/resource-manager

Codecov Report

Merging #2709 into master will decrease coverage by 0.87%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2709      +/-   ##
==========================================
- Coverage   55.89%   55.01%   -0.88%
==========================================
  Files        7213     7612     +399
  Lines      151649   165325   +13676
==========================================
+ Hits        84767    90961    +6194
- Misses      66882    74364    +7482

Impacted Files
Coverage Δ

...protection_policy_operation_statuses_operations.py
32.6% <0%> (-12.56%)
:arrow_down:

...icesbackup/operations/security_pi_ns_operations.py
32.6% <0%> (-12.56%)
:arrow_down:

...rvices/operations/vault_certificates_operations.py
30% <0%> (-12.43%)
:arrow_down:

...e-mgmt-cdn/azure/mgmt/cdn/models/proxy_resource.py
71.42% <0%> (-11.91%)
:arrow_down:

...ls/azure_iaa_sclassic_compute_vm_protected_item.py
60% <0%> (-11.43%)
:arrow_down:

...er/operations/geographic_hierarchies_operations.py
38.46% <0%> (-9.82%)
:arrow_down:

...search/models/search_management_request_options.py
57.14% <0%> (-9.53%)
:arrow_down:

...cesbackup/operations/backup_policies_operations.py
30.61% <0%> (-8.28%)
:arrow_down:

...coveryservicesbackup/models/azure_sql_container.py
63.63% <0%> (-7.8%)
:arrow_down:

...ervicesbackup/models/azure_backup_server_engine.py
63.63% <0%> (-7.8%)
:arrow_down:

... and 838 more

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 412e27e...f710813. Read the comment docs.


MB-9703-Slice-Demo-prep-howto

About this PR
The purpose of this PR is to create a How To Guide that walks through how to prepare for the slice demo and create a demo script using the GitHub workflow of postman.
AC:

Provide the reader with information about how to do a demo prep
Walk the reader through creating a new collection with Node JS and HTML

Feedback request:

Are the steps easy to understand?
Are the instructions reproduceable and clear?

Jira
Follow this jira story.

@NamibiaTorres I think this is most of the way there! I was able to navigate through to generating a collection to import into post man. I just left some comments on an error I encountered when first trying to build the collection and a few other small things


emacs: Remove references from emacs.pdmp

Motivation for this change
This reduces the Emacs closure size from 1324 MiB to 424 MiB.
Fixes #98755.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Note that Emacs is still about 85 MiB larger than in NixOS 20.03. For a large part this is because the closure now contains two (!) copies of systemd, where previously it only depended on systemd.lib.

it only affects running Emacs in daemon mode as a systemd unit

And to add to this, it's only relevant for socket activation, which the NixOS service doesn't use.
But as you say, emacs depends on dbus anyway so it's probably not worth the extra effort, and it would be pretty nice to switch the emacs service over to use socket activation.


Refactor masterserver client

It currently works fine in general, but it's full of race conditions, doesn't output good error messages, and is somewhat messy.

I'm planning to implement this as a series of state machines with well-defined inputs and outputs. I may also investigate using WinHTTP instead of curl (we'll still keep curl around since it's very useful for other things), since it might actually fit our needs.

Might also implement a new registration flow while I'm at it. Among other things, this will probably:

separate the verify and register step into two to avoid long-running requests and allow for more useful error messages
tell the gameserver about the external address being used to attempt registration
have a better API for updating server values with better error handling


Code cleaning of apps package

standalone apps package have been moved under neurom package, refactored and covered with tests.

Codecov Report

Merging #888 (448e0f9) into master (f072248) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #888   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           37        38    +1
  Lines         2061      2128   +67
=========================================
+ Hits          2061      2128   +67

Thank you!


[WIP] Add virtual_attributes to VimPerformanceOperatingRange (#ROFLSCALE)

Prevent yaml serialization when averages_over_time_period calls to VimPerformanceOperatingRanges.
Metrics
For a report that was scoped to around 1.1k VMs, the following is a before and after:
Before:

ms
queries
query (ms)
rows

before
36,678
19,972
20,642
86,584

after
30,595
15,252
16,145
84,726

17%
N/A
N/A
N/A

Rows returned:
- Before                                        - After

:rows_by_class:                                 :rows_by_class:
  MiqQueue: 2                                     MiqQueue: 2
  MiqTask: 2                                      MiqTask: 2
  User: 8                                         User: 8
  MiqGroup: 4                                     MiqGroup: 4
  Entitlement: 4                                  Entitlement: 4
  Tenant: 2                                       Tenant: 2
  MiqUserRole: 2                                  MiqUserRole: 2
  Vm: 18984                                       Vm: 18984
  Hardware: 2290                                  Hardware: 2290
  VimPerformanceOperatingRange: 11088             VimPerformanceOperatingRange: 11088
  Disk: 9056                                      Disk: 9056
  TimeProfile: 64                                 TimeProfile: 64
  MetricRollup: 12930                             MetricRollup: 11072
  Classification: 32144                           Classification: 32144
  MiqReportResult: 4                              MiqReportResult: 4
  BinaryBlob: 0                                   BinaryBlob: 0
:total_queries: 19972                           :total_queries: 15252
:total_rows: 86584                              :total_rows: 84726

NOTE:  There always seems to be a variation in the number of reports returned when running/profiling a report, but basically, there should be almost no difference before and after on the queries returned, and the performance is gained by not having to serialized yaml on existing VimPerformanceOperatingRange records that don't need to be updated.
Description
Okay Mr. or Mrs. Reviewer, take a deep breath.  Don't panic... it's going to be okay...
So one of the biggest pain points when building reports that use the metric associated tables is deserializing yaml, so avoiding that increases performance significantly.  Unfortunately doing that is not so easy, and some... special... yaml "parsing" SQL queries are used in this PR to fetch the data without needing to use VimPerformanceOperatingRange#values_to_metrics.
To start off, the values column usually is formatted like this:
 ---
:avg:
  :cpu_usagemhz_rate_average: 111.11
  :derived_memory_used: 222.22
  :max_cpu_usage_rate_average: 333.33
  :max_mem_usage_absolute_average: 444.44
:dev:
  :cpu_usagemhz_rate_average: 111.11
  :derived_memory_used: 222.22
  :max_cpu_usage_rate_average: 333.33
  :max_mem_usage_absolute_average: 444.44

The many data values derived from the values column (using VimPerformanceOperatingRange#values_to_metrics) require taking both the value from the avg (average) and the dev (standard deviation) sections of the yaml and doing some light calculations to return the needed values.
I have done this in SQL by parsing out the necessary values from the text blob and doing the math in the query itself.  An example query for the max_mem_usage_absolute_average_low_over_time_period value would look something like this:
SELECT  "vim_performance_operating_ranges"."id",
        "vim_performance_operating_ranges"."updated_at",
        (
          GREATEST(
            CAST(
              substring(
                substring("vim_performance_operating_ranges"."values" from 'avg:[^\n]*\n[^\n]*\n[^\n]*\n[^\n]*\n[^\n]*\n')
                from 'max_mem_usage_absolute_average: ([0-9.]+)'
              )
            AS double precision) -
            CAST(
              substring(
                substring("vim_performance_operating_ranges"."values" from 'dev:[^\n]*\n[^\n]*\n[^\n]*\n[^\n]*\n[^\n]*\n')
                from 'max_mem_usage_absolute_average: ([0-9.]+)'
              )
            AS double precision),
          0)
        ) AS max_mem_usage_absolute_average_low_over_time_period
FROM "vim_performance_operating_ranges"

To break this down, this is basically doing the following:

For both the avg and dev sections of the yaml blob, we are finding the max_cpu_usage_rate_average for each of those sections using two substring()

The inner substring() isolates either the avg or the dev section of the blob
The outer substring() grabs the specific data value for the max_cpu_usage_rate_average in that blob (the value of the capture group in the regexp in the substring is actually all that is returned)

The values from the avg are then subtracted by the values from the dev section after they are casted as double precision (floats).
For the low type data values, the GREATEST function is used to prevent negative numbers, so a 0 is returned in that case.
The column is returned as a column aliased named after the expected value (the AS part).

The virtual_attribute then has a corresponding ruby method that will then check to see if the data returned from the DB includes this column, otherwise it falls back to trying to fetch it via the values_to_metrics method.
Links

https://bugzilla.redhat.com/show_bug.cgi?id=1395743#c13
https://github.com/ManageIQ/manageiq/pull/12737
https://github.com/ManageIQ/manageiq/blob/2d3e2f7a/app/models/metric/ci_mixin/long_term_averages.rb#L15-L30

@miq-bot add_labels wip, reporting, performance

@NickLaMuro @Fryguy @kbrock What about converting some of these to use the new(er) JSONB column type introduced in PostgreSQL 9.4?

@chessbyte Yes, that would be the better solution (I didn't add that to the description because most people complain that my descriptions are too long), and of course the is a hack, hence a lot of the sarcasm in the description... (though, hopefully it made the lengthy description more tolerable).
That said, a DB migration isn't a trivial change in my opinion, but the much better over all solution in comparison.  I hope this PR can at a minimum point a finger at a performance and scaling issue and provide a possible bandaid in the mean time (if necessary) while better solutions are vetted, considered and implemented.

Since we are querying on the column, I am all for converting to jsonb.  How many records are in this table?  I can't remember if this is one-per metric, or one-per resource.  If it's the latter, I think it's a no-brainer to convert, since the migration should not be that many records.

@Fryguy on the DB that I am testing against has ~25k VMs.  This report is a small sample of those VMs so I can test things more frequently and avoid waiting an hour every time.  The number of VimPerformanceOperatingRange records is around 50k, and I think it varies per VM (one VM has, for example, four "vpor" records attached to it for some reason).
I see this non-trivial because of what really needs to be considered after we handle the first problem that I addressed here, which is slowness caused by de-serializing yaml everytime we fetch one of these records in full.  This is a problem because we do it A LOT when multiple columns on a report use data like this, but there is still work to be done to make further improvements and avoid fetching these data values one at a time (the second problem).
In this case, this report should only be dealing around 1145 VMs.  As the above data shows, we fetched nearly 19k VM records to build this report.  There are multiple columns in this report that call the [averages_over_time_period](https://github.com/ManageIQ/manageiq/blob/2d3e2f7a/app/models/metric/ci_mixin/long_term_averages.rb#L15-L30) based columns, so I would suspect that our base reporting will fetch each an individual VM every time we fetch one of these columns... so I assume we are basically fetching number_of_vms * number_of_metrics_based_columns of VMs per report... or worse.  Move this up to report up to the full size, where 25k VMs are now in scope, we are looking at nearly 800k VM records being returned alone.
For fixing the above, what really needs to be considered is finding a way to fetch all of these metric's columns together, or at least in batches.  And doing that is where determining if jsonb is the right choice should be considered and will meet our needs.  I don't know the specifics on whether fetching multiple subcolumns from jsonb/hstore is performant, or if it would be simpler to have a flat table data instead (which has it's own problems), or if even a different datastore for this all together is better.
Bottom line:  I think that additions I made to make these data values virtual_columns is a step in being able to making what I described above possible (though not necessarily the only way to accomplish the above), and they could easily work with a jsonb/hstore values column and is most definitely the more correct way of representing that data in it's current form.  But it could also be different type of bandaid for a larger problem that needs to be addressed and I question if the risk of a database migration is worth it for something that is potentially short sighted.
cc/ @chessbyte @kbrock @dmetzger57

There might still be some value with this PR when dealing with the background processing of VPORs that was changed in the following:
https://github.com/ManageIQ/manageiq/pull/12792
https://github.com/ManageIQ/manageiq/pull/13700
I don't currently have time to test this, and the performance gains when doing this in isolation, so this will remain a [WIP] for the time being.

Closing, with a similar rational to https://github.com/ManageIQ/manageiq/pull/12737#issuecomment-309560767


IP could not be fetched/error in setting up host only network

Hello,
I just recently downloaded and installed docker by following the install guide that is currently up on the website.  However, as I was running it for the first time, I received an error as it was setting up the host only network.  I am currently running windows 7 64 bit enterprise, and I am using the latest version of of docker/virtualbox on the website.
Reinstalling / retrying generally gives the same result, and using the Kitematic tool gives me the error "machine IP could not be fetched".
How can I go about fixing this problem and getting docker to work?

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

ping @mchiang0610

Pinging just returns that it could not find a host with that name.  Also today, it returns this error when I try to start it up -

Closing as this is a support related question and if an issue should be filed under github.com/docker/toolbox.
For support, please ping on #docker on IRC, the docker-user mailing list, or forums.docker.com
Thanks!


Updating master

@enicolasgomez could you please review this and, if ok, open the PR from our repo to their repo, please? Thx


试过了鼠标拖放音频到exe没用，这是另外一个可以鼠标拖放运行的版本

https://wwi.lanzoup.com/i81Iq0edhxzi

I have not been able to reproduce this issue in the current environment I have on hand.


Question regarding the evaluation of video understanding

Thanks for sharing the code of this excellent work!
I have a question about the evaluation for video understanding. In TRAIN_AND_VALIDATE.md, the temporal understanding performance is evaluated using the questions from ChatUniVi/eval/questions/video_qa/generic_qa.json.
However, if I am not mistaken, shouldn't the evaluation of temporal understanding performance be based on the questions from ChatUniVi/eval/questions/video_qa/temporal_qa.json?

You are right, I think I made a serious mistake, I will immediately update the grade in the paper.

We've revised the temporal evaluation performance of video understanding, resulting in an actual model performance of 47.9 instead of the previously stated 57.8. We have also updated the evaluation script.
We sincerely apologize for any inconvenience our oversight may have caused you.


Rework CA calls

Could you squash the histogram record changes in the third and fourth commits into the second commit and make Added process = False arg to file_open/close set calls a commit on its own.?


Add test for charging for wasm with forbidden start section

This PR extends the testing for https://github.com/casper-network/Governance/issues/42 to check whether a Wasm file with start section (which is unsupported) will cause the account to be charged with default value of 2.5 CSPR.

bors r+


Huge CPU usage since iOS 16.1

Huge CPU usage since iOS 16.1
Hi. Our users point that since iOS 16.1 our app with PiP drain battery very fast.
We had tested it. So. If PiP disabled then our app use about 2-5% CPU time. As soon as the PiP is turned on, the usage instantly grows to 110% - 130%.
We have changed the library code in such a way as to exclude any influence of our code. There was no content rendering for the test. Just a black window. And yet the load is the same 110% - 130%.
Can you confirm that you are experiencing the same issue? Is it library specific or is it a system bug. If this is a system bug, then let's create a defect in Apple Bug Tracker. Because iOS 16.2 has already been released, but the problem has not been solved.

we have the same problems

for example

@Reactor13 @kleruk88
Thanks for the report.
I will investigate, do you use uiPipView.startPictureInPicture(withRefreshInterval: ) to start PiP?

@Reactor13 @kleruk88 Thanks for the report. I will investigate, do you use uiPipView.startPictureInPicture(withRefreshInterval: ) to start PiP?

We have tried both modes. It doesn't affect. CPU usage increases in any case immediately after the appearance of the PIP window itself and even if it is not updated / rendered afterwards.

How do I control the display size of picture in picture and display it on
the interface with my camera？Object-C代码
Reactor13 @.***> 于2022年12月18日周日 04:49写道：

Huge CPU usage since iOS 16.1
Hi. Our users point that since iOS 16.1 our app with PiP drain battery
very fast.
We had tested it. So. If PiP disabled then our app use about 2-5% CPU
time. As soon as the PiP is turned on, the usage instantly grows to 110% -
130%.
We have changed the library code in such a way as to exclude any influence
of our code. There was no content rendering for the test. Just a black
window. And yet the load is the same 110% - 130%.
Can you confirm that you are experiencing the same issue? Is it library
specific or is it a system bug. If this is a system bug, then let's create
a defect in Apple Bug Tracker. Because iOS 16.2 has already been released,
but the problem has not been solved.
—
Reply to this email directly, view it on GitHub
https://github.com/uakihir0/UIPiPView/issues/17, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAYXPMNLIPO5APLIMHDSN6DWNYRNXANCNFSM6AAAAAATCEDRYA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Any updates? News?

iOS 16.3
problem still exists

Just downloaded and ran the example from this project. All the same. After clicking Toogle PIP, the processor is loaded at 100%
Xcode 14.2, iOS 16.3, iPhone 14 Pro

Looking at the Profiler, CPU usage is not that much, but this is only the usage of the application, and when we look at the usage of the iPhone as a whole, it becomes a reasonably large usage rate as you have described. Below are the results from the Profiler, focused on PiP usage.

On the other hand, when we look at the percentage of time elapsed in the application, the percentage of CPU usage is less than half of the problematic points, which means that the usage is not nearly as problematic as it could be. From this point of view, it seems likely that the cause is a change in the usage of threads per timer due to the OS version upgrade.

If the code is modified not to render, TimeProfiler looks like the following, and the status remains the same. From this point of view, I think there is a problem in the usage of AVPictureInPictureController or it is a bug in the OS. I will investigate further.

I have found that AVKit is consuming time during PiP, but I don't know how to control this.

@uakihir0 thank you for answer and investigation report.

Posted in forum.
https://developer.apple.com/forums/thread/724632

From you post image we can see that the cpu time usage is conern with play timer, so I wondering that maybe CMTimeRange(start: .negativeInfinity, duration: .positiveInfinity) is the problem, so I change this line to  CMTimeRange(start: .zero, duration: .positiveInfinity).
guess what, the cpu usage is drop to 0!
so
func pictureInPictureControllerTimeRangeForPlayback(_ pictureInPictureController: AVPictureInPictureController) -> CMTimeRange {
CMTimeRange(start: .negativeInfinity, duration: .positiveInfinity)
}
is the problem. don't return  negativeInfinity, just zero.

Posted in forum. https://developer.apple.com/forums/thread/724632

Posted in forum. https://developer.apple.com/forums/thread/724632

From you post image we can see that the cpu time usage is conern with play timer, so I wondering that maybe CMTimeRange(start: .negativeInfinity, duration: .positiveInfinity) is the problem, so I change this line to  CMTimeRange(start: .zero, duration: CMTimeMake(value: 3600*24, timescale: 1)).
guess what, the cpu usage is drop to 0!
so
func pictureInPictureControllerTimeRangeForPlayback(_ pictureInPictureController: AVPictureInPictureController) -> CMTimeRange {
CMTimeRange(start: .negativeInfinity, duration: .positiveInfinity)
}
is the problem. don't return  negativeInfinity and positiveInfinity, just a finity value it is!

🔥 Thank you!


Replace Google Analytics

Is your feature request related to a problem? Please describe.
GA does not respect our users' privacy — additionally it is a decent performance hit.
Describe the solution you'd like
Evaluate lightweight, privacy-focused alternatives for analytics.
Options

Microanalytics — has a forever free tier (10k pageviews monthly — our last 90 days of traffic was 11k)
Fathom Analytics — $14/month, probably one of the best
Netlify Analytics — $9/month, I used this on my personal site, pretty basic
Cloudflare Analytics — similar to netlify, seems more robust

There are a variety of self-hosted options — I believe you can self-host Fathom as well — but it's more involved and probably wouldn't be very cost-effective once we factor in labor.

There are a variety of self-hosted options — I believe you can self-host Fathom as well — but it's more involved and probably wouldn't be very cost-effective once we factor in labor.

tangentially related — Defying the mainstream: building technology that respects our rights by Laura Kalbag

tangentially related — Defying the mainstream: building technology that respects our rights by Laura Kalbag

"GA does not respect our user's privacy" (I'm curious) How do they do not respect our users' privacy?

"GA does not respect our user's privacy" (I'm curious) How do they do not respect our users' privacy?

Interesting.
What doors will be open now compared to GA?
What happens if one day we want to include tags to make proper analytics and find out real paths?

Interesting.
What doors will be open now compared to GA?
What happens if one day we want to include tags to make proper analytics and find out real paths?

"GA does not respect our user's privacy" (I'm curious) How do they do not respect our users' privacy?

Google's tracking is very invasive, yes theoretically it doesn't identify you personally, but due to their huge reach, their data model creates a profile and its exactly you — your age, gender, familial status, work, times you are working, times you are not, preferences, behavior, on and on and on — because GA is so pervasive on the web, each site that uses it acts as a node to feed this data model. I prefer to not be a node feeding our user's information to this model — especially since so many of our users are our team.
This seems like content marketing for Fathom, so try to ignore that — more consider the downsides of GA.
And to be clear — I haven't gathered an exhaustive case for this, I'm just starting a conversation, Dave Rupert's post sums up my feelings at this time:

Acknowledging my ignorance here, it’s not clear what data I’m contributing to Google’s collective knowledge. I’d rather be more conservative with my own data collection on my site. I also feel the answers I want visualized are buried in Google Analytics. In many ways Google Analytics has grown to become a product that’s overkill for this blog and my needs.

Interesting.

Thank you @victorvalle

What doors will be open now compared to GA?

The doors to easier sleep — you can have a clear conscience knowing our site does not contribute to the Matrix. (Joke — sort of) TBH one of the main value props is better data, easier:

Privacy focused analytics actually provide better data on the whole, because they don't get blocked as often (they're not using cookies, ad-blockers don't block them because they aren't an ad platform, etc)
Easier to access / read the important stuff — this could just be me — I rarely access GA because there is so much to click through and configure if I want to get some very basic info like pageviews.

What happens if one day we want to include tags to make proper analytics and find out real paths?

We should cross that bridge when we get there, not build it and then carry it with us for kilometers and kilometers and kilometers. IMHO this point alone is worth it to remove GA — we are only using a tiny fraction of the cost it adds. Yes, it is "free" , meaning we, and our users, are the product — in addition to that, there is a significant performance hit to using GA and GTM (Google Tag Manager). And IMHO we are only achieving a fraction of the full benefits — so we should consider more using a right-sized tool for our needs.

"GA does not respect our user's privacy" (I'm curious) How do they do not respect our users' privacy?

Google's tracking is very invasive, yes theoretically it doesn't identify you personally, but due to their huge reach, their data model creates a profile and its exactly you — your age, gender, familial status, work, times you are working, times you are not, preferences, behavior, on and on and on — because GA is so pervasive on the web, each site that uses it acts as a node to feed this data model. I prefer to not be a node feeding our user's information to this model — especially since so many of our users are our team.
This seems like content marketing for Fathom, so try to ignore that — more consider the downsides of GA.
And to be clear — I haven't gathered an exhaustive case for this, I'm just starting a conversation, Dave Rupert's post sums up my feelings at this time:

Acknowledging my ignorance here, it’s not clear what data I’m contributing to Google’s collective knowledge. I’d rather be more conservative with my own data collection on my site. I also feel the answers I want visualized are buried in Google Analytics. In many ways Google Analytics has grown to become a product that’s overkill for this blog and my needs.

Interesting.

Thank you @victorvalle

What doors will be open now compared to GA?

The doors to easier sleep — you can have a clear conscience knowing our site does not contribute to the Matrix. (Joke — sort of) TBH one of the main value props is better data, easier:

Privacy focused analytics actually provide better data on the whole, because they don't get blocked as often (they're not using cookies, ad-blockers don't block them because they aren't an ad platform, etc)
Easier to access / read the important stuff — this could just be me — I rarely access GA because there is so much to click through and configure if I want to get some very basic info like pageviews.

What happens if one day we want to include tags to make proper analytics and find out real paths?

We should cross that bridge when we get there, not build it and then carry it with us for kilometers and kilometers and kilometers. IMHO this point alone is worth it to remove GA — we are only using a tiny fraction of the cost it adds. Yes, it is "free" , meaning we, and our users, are the product — in addition to that, there is a significant performance hit to using GA and GTM (Google Tag Manager). And IMHO we are only achieving a fraction of the full benefits — so we should consider more using a right-sized tool for our needs.

just reviewed them, seems like microanalytics is the winner

it's free
supports events analysis. While we cant really do path analysis in any of the choices above, at least we will be able to create goals with events, and not pay like we will with fathom.

just reviewed them, seems like microanalytics is the winner

it's free
supports events analysis. While we cant really do path analysis in any of the choices above, at least we will be able to create goals with events, and not pay like we will with fathom.

@victorvalle @drakonux more thoughts? are we fine to move forward w/our resident analytics/budgetary expert's choice?

If we can do event analysis I will be happy.


Allow callback even when icon doesn't change

Info: My app has more than 5 pages. If I navigate deeper, it all works, I can even select which icon from menu corresponds to the subpage, all good.
Problem: I can't go back to the initial page simply by tapping the icon from this menu. When I want to do it from menu, I have to select some other icon first and only after that the one I want.
Suggestion: Would it be possible to add bool parametr to allow this callback?
Other suggestion: Would it be possible to have no icon selected?
Or am I overlooking something?
Thanks

hey! I am pretty much done with this implementation if it's still in this project's interests. I was wondering, tho, which hitbox could suit better user's experience. hitboxed are illustrated by the green border below


Import an XLSX spreadsheet with the "load_inventory" pipelines

The input format of this XLSX should be exactly the same as the SCIO XLSX output format with these additional considerations:

the tab names that are unknown from SCIO should be ignored
the column names that are unknown from SCIO in a tab should be ignored
we only support the current version of SCIO XLSX output

There will be some data loss due to the XLSX format limitation.
Those should be minor, but the ScanCode.io JSON output is preferred to load project data without any loss.
From https://github.com/nexB/scancode.io/blob/main/scanpipe/pipes/output.py#L378
Convert the value to a string and perform these adaptations:
    - Keep only unique values in lists, preserving ordering.
    - Truncate the "description" field to the first five lines.
    - Truncate any field too long to fit in an XLSX cell and report error.
    - Create a combined license expression for expressions
    - Normalize line endings
    - Truncate the value to a ``maximum_length`` supported by XLSX.


Tag browser shows InvalidDate for all series except the first series of a Study

Bug Report
Describe the Bug
In the Tag browser, only the first series shows a valid date. All other series show invalid date.

A clear and concise description of what the bug is.
What steps can we follow to reproduce the bug?

use latest master branch
enable tag browser
start with standard configuration (yarn run dev)
select first study
open tag browser

My observations
The metadata for the series is first populated with the results of the following http request:
https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs/studies/<IP_ADDRESS>.4.1.145<IP_ADDRESS>.7009.2403.871108593056125491804754960339/series
The result from this request does not include SeriesDate and SeriesTime.
The function makeSOPInstance defined in StudyInstanceHelpers.js would create series including the date and time, but only for series that are not present in the current study object. Since the series are already present (but without the seriesDate and time), the values are not set correctly.
I will propose a pull request, and link it here

Please review the latest code in the master branch. I am confident that this issue has been resolved. If it persists, kindly reopen the issue with updated details.
Try viewer-dev.ohif.org instead of viewer.ohif.org
Our viewer.ohif.org is deployed from release branch while viewer-dev.ohif.org is our master  branch
Read more about branch explanations here https://docs.ohif.org/development/getting-started#developing


Can't merge spellbooks for Mythic paths outside of Arcane/Lich and Divine/Angel

Tested with multiple classes, spell books don't seem to be mergeable outside of the ones already included as base.
If this is something to toggle I might be missing it but searched through each tab line by line and couldn't find it.

You can only merge spellbooks for which you have actual class levels. Check under Party Editor -> Spells for any spellbooks which otherwise meet the criteria.

Ohh, I see now.  The problem I was having is I didn't go far enough into the process and merge them after having selected the mythic class.  Thank you.
I was testing it by rerolling a high level character (who already had lich merged) so I didn't go far enough.  For anybody else whos tumbles on this, once you select the mythic class you then have the option of merging the spell book.
Much appreciated.


TM4C: Enable PHY interrupts for link changes

Enable PHY interrupts for link changesEnable PHY interrupts for link changes
Description
The EMAC must be reconfigured after PHY link changes. In the current NetworkInterface.c code this is done in the PHY interrupt handler, however the interrupts for the internal PHY are not enabled, so the MAC is never reconfigured after initial link-up.
This results in unstable startup of the EMAC.
See the documentation in Tivaware for EMACPHYConfigSet.
@jscott-hotstart Thanks a lot for adding support for this board
Test Steps
This issue is hard to reproduce since it triggers undefined behaviour in the EMAC. It seems to be very timing sensitive. When failing the symptomes are missing interrupts from the EMAC.
Related Issue
N/A
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thank you @martinaao for this PR.
Unfortunately, I still don't have a TM4C evaluation board to test the changes.
Were you able to test the change in a real application?
I understand that your allows interrupts triggered by a Link Status change. What happens if the LS goes down? Is there a speed and duplex when a PHY is not connected?

Were you able to test the change in a real application?

Yes, i have tested on a real world application but only on the Eval Board EK-TM4C1294XL for now. In our application every 4-5 builds (with code changes) would fail until i made this change.

I understand that your allows interrupts triggered by a Link Status change. What happens if the LS goes down? Is there a speed and duplex when a PHY is not connected?
I have not seen problems after taking link down and up again, when the LS goes down the MAC is not re-configured.

According to the documentation from TI the PHY must be configured first, then the EMAC since the MAC parameters are latched by the HW after the peripheral is reset. Since the configuration of the PHY can be reset in phyHandling.c we must wait for the speed change interrupt (that always comes after reset) before re-configuring the EMAC.

@martinaao apologies but can you please rebase your branch?
The portable/NetworkInterface/TM4C/NetworkInterface.c file is now moved one level deep in source folder like so 'source/portable/NetworkInterface/TM4C/NetworkInterface.c`

Another option is that I can create a PR on your behalf. Would you like me to do that?

I have rebased and recreated this PR here: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/pull/478.
Closing this PR now. Thank you @martinaao.


small improvements: addressing review comments

addressed some of the review comments from RFC: dynamic resource allocation

closing. the changes from this PR will be merged into #22


Uable to capture RTSP on Android: Output file #0 does not contain any stream

Description
I'm having difficulty when saving a RTSP stream into internal storage using ffmpeg-kit -i rtsp://<IP_ADDRESS>:554/stream1 -c:v copy -c:a copy -t 5 /data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4. There're issues with the circular_buffer_size option, but I read that the warnings could be ignored. The command runs fine on desktop using ffmpeg. Please find below the log.
Logs
ffmpeg started on 2022-05-16 at 15:27:54
Report written to "/data/user/0/com.arthenica.ffmpegkit.test/cache/ffreport.txt"
Log level: 48
Command line:
ffmpeg-kit -i rtsp://<IP_ADDRESS>:554/stream1 -c:v copy -c:a copy -t 5 /data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4
ffmpeg version v4.5-dev-3393-g30322ebe3c Copyright (c) 2000-2021 the FFmpeg developers
  built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
  configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/storage/light/projects/ffmpeg-kit/prebuilt/android-x86-lts/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --target-os=android --disable-neon --disable-asm --disable-inline-asm --ar=i686-linux-android-ar --cc=i686-linux-android16-clang --cxx=i686-linux-android16-clang++ --ranlib=i686-linux-android-ranlib --strip=i686-linux-android-strip --nm=i686-linux-android-nm --extra-libs='-L/storage/light/projects/ffmpeg-kit/prebuilt/android-x86-lts/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --  libavutil      57. 13.100 / 57. 13.100
  libavcodec     59. 15.102 / 59. 15.102
  libavformat    59. 10.100 / 59. 10.100
  libavdevice    59.  1.100 / 59.  1.100
  libavfilter     8. 21.100 /  8. 21.100
  libswscale      6.  1.102 /  6.  1.102
  libswresample   4.  0.100 /  4.  0.100
Splitting the commandline.
Reading option '-i' ... matched as input url with argument 'rtsp://<IP_ADDRESS>:554/stream1'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '5'.
Reading option '/data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://<IP_ADDRESS>:554/stream1.
Successfully parsed a group of options.
Opening an input file: rtsp://<IP_ADDRESS>:554/stream1.
[tcp @ 0xa21d3a80] No default whitelist set
[tcp @ 0xa21d3a80] Original list of addresses:
[tcp @ 0xa21d3a80] Address <IP_ADDRESS> port 554
[tcp @ 0xa21d3a80] Interleaved list of addresses:
[tcp @ 0xa21d3a80] Address <IP_ADDRESS> port 554
[tcp @ 0xa21d3a80] Starting connection attempt to <IP_ADDRESS> port 554
[tcp @ 0xa21d3a80] Successfully connected to <IP_ADDRESS> port 554
[rtsp @ 0xb25b5a00] SDP:
v=0
o=- 14665860 31787219 1 IN IP4 <IP_ADDRESS>
s=Session streamed by "MERCURY RTSP Server"
t=0 0
a=smart_encoder:virtualIFrame=1
m=video 0 RTP/AVP 96
c=IN IP4 <IP_ADDRESS>
b=AS:4096
a=range:npt=0-
a=control:track1
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=4D4020; sprop-parameter-sets=Z01AIJWgFAF34maIAAADAAgAAAMBlCA=,aO48gA==

Failed to parse interval end specification ''
[rtsp @ 0xb25b5a00] video codec set to: h264
[rtsp @ 0xb25b5a00] RTP Packetization Mode: 1
[rtsp @ 0xb25b5a00] RTP Profile IDC: 4d Profile IOP: 40 Level: 20
[rtsp @ 0xb25b5a00] Extradata set to 0xb25abdf0 (size: 35)
[rtp @ 0xb25abe60] No default whitelist set
[udp @ 0xb25abed0] No default whitelist set
[udp @ 0xb25abed0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0xb25abed0] end receive buffer size reported is 524288
[udp @ 0xb25abf40] No default whitelist set
[udp @ 0xb25abf40] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0xb25abf40] end receive buffer size reported is 524288
[rtsp @ 0xb25b5a00] setting jitter buffer size to 500
[rtsp @ 0xb25b5a00] hello state=0
Failed to parse interval end specification ''
[h264 @ 0x907e5b00] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x907e5b00] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x907e5b00] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x907e5b00] nal_unit_type: 8(PPS), nal_ref_idc: 3
[rtsp @ 0xb25b5a00] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, rtsp, from 'rtsp://<IP_ADDRESS>:554/stream1':
  Metadata:
    title           : Session streamed by "MERCURY RTSP Server"
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0, 0, 1/90000: Video: h264, none, 90k tbr, 90k tbn
Successfully opened the file.
Parsing a group of options: output url /data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4.
Applying option c:v (codec name) with argument copy.
Applying option c:a (codec name) with argument copy.
Applying option t (record or transcode "duration" seconds of audio/video) with argument 5.
Successfully parsed a group of options.
Opening an output file: /data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4.
Output #0, mp4, to '/data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4':
Output file #0 does not contain any stream

Environment

Platform: Android
Application Type: maven central
Architecture: arm64-simulator
Version: v4.5.1
Source branch: main

Could not find codec parameters for stream 0 (Video: h264, none): unspecified size

Your post doesn't tell anything about which ffmpeg-kit package you're using. And, I see that the logs include errors about h264 parameters.
Make sure that you're using a package that includes an h264 encoder or try encoding the output using another video codec.

@tanersener I just cloned the repo and ran the android directory. Can I ask how I can change the ffmpeg-kit package?

Could not find codec parameters for stream 0 (Video: h264, none): unspecified size

Your post doesn't tell anything about which ffmpeg-kit package you're using. And, I see that the logs include errors about h264 parameters.
Make sure that you're using a package that includes an h264 encoder or try encoding the output using another video codec.

I'm using ffmpeg-kit-fullL4.5.1-1.LTS.

Could not find codec parameters for stream 0 (Video: h264, none): unspecified size

Your post doesn't tell anything about which ffmpeg-kit package you're using. And, I see that the logs include errors about h264 parameters.
Make sure that you're using a package that includes an h264 encoder or try encoding the output using another video codec.

I'm using ffmpeg-kit-full:4.5.1-1.LTS. I've just tried full-gpl, and I get the same error. The command works fine on desktop though.

@tanersener I'm still trying to work out the cause of the issue with rtsp-simple-server, and I'm still getting the same problem. Just checking, do you get the same log as I do though after issuing the command ffmpeg-kit -I rtsp://<ip>/<stream> -c:v copy -c:a copy -t 5 /data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4
ffmpeg started on 2022-06-06 at 21:32:31
    Report written to "/data/user/0/com.arthenica.ffmpegkit.test/cache/ffreport.txt"
    Log level: 48
ffmpeg version v4.5-dev-3393-g30322ebe3c
 Copyright (c) 2000-2021 the FFmpeg developers

  built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
  configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/storage/light/projects/ffmpeg-kit/prebuilt/android-x86-lts/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --target-os=android --disable-neon --disable-asm --disable-inline-asm --ar=i686-linux-android-ar --cc=i686-linux-android16-clang --cxx=i686-linux-android16-clang++ --ranlib=i686-linux-android-ranlib --strip=i686-linux-android-strip --nm=i686-linux-android-nm --extra-libs='-L/storage/light/projects/ffmpeg-kit/prebuilt/android-x86-lts/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libdav1d --enable-libkvazaar --enable-libx264 --enable-libxvid --enable-libx265 --enable-libvidstab --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-libzimg --disable-openssl --enable-zlib --enable-mediacodec --enable-gpl
  libavutil      57. 13.100 / 57. 13.100
  libavcodec     59. 15.102 / 59. 15.102
  libavformat    59. 10.100 / 59. 10.100
  libavdevice    59.  1.100 / 59.  1.100
  libavfilter     8. 21.100 /  8. 21.100
  libswscale      6.  1.102 /  6.  1.102
  libswresample   4.  0.100 /  4.  0.100
[udp @ 0xf45f4910] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0xf45f5990] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0xf45df490] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0xf45df310] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)

I've tried it on a physical phone and the file is written. However, the command wouldn't terminate even when -t N was used. Is ffmpeg-kit supposed to work in an emulator?

I spent quite some time analysing this issue yesterday. Reviewed my previous tests with rtsp-simple-server and fixed a few problems I had before.
Long story short, UDP streaming doesn't work on Android and there is no fix for that. It is not something we can implement easily. Android's pthread implementation is to blame there. I explained that on Tips 8..
The only available alternative is to use tcp instead of udp. In your case, if you add -rtsp_transport tcp to your command it will work as expected.

I spent quite some time analysing this issue yesterday. Reviewed my previous tests with rtsp-simple-server and fixed a few problems I had before.
Long story short, UDP streaming doesn't work on Android and there is no fix for that. It is not something we can implement easily. Android's pthread implementation is to blame there. I explained that on Tips 8..
The only available alternative is to use tcp instead of udp. In your case, if you add -rtsp_transport tcp to your command it will work as expected.

It does produce a video + audio capture on a physical phone though - it just wouldn't quit even when -t 200 is used. Does ffmpeg-kit respect the -t option?

Of course it does. I didn't have any problems about it when I used the rtsp_transport tcp option in my tests.
I also used a physical device but the behaviour didn't change for me.
As I explained above, there are some pthreads functions not available on Android that are used by the udp module. I believe they are the reason why the commands are not terminated properly. Not that ffmpeg-kit doesn't respect -t option.


More explicit mechanism to leave command out of history

I would like to see that Elvish has an incognito mode.
I mean not saving command/dir history under incognito mode.
E.g. some programs require to pass them passwords in the command line, and it is bad if these commands are saved to history.

You can prepend a space to the command to prevent it from going into the history, but there is no analog in dir history. An "incognito mode" sounds good.

I have never liked the "prepend a space to a command" idiom used by legacy POSIX shells to keep the command from being persisted to the command history. It is too easy to use mistakenly and too hard to discover by new users.  The question, it seems to me, is whether this should be something that can be toggled or should require running elvish with an option that enables icognito mode. Similar to how web browsers like Chrome operate. I favor the latter approach. That is having to do something like elvish -incognito. Possibly removing the command space prefix hack.

There should be a variable that shows if incognito mode is active, it'd be very useful for prompts to display mode.

There should be a variable that shows if incognito mode is active, it'd be very useful for prompts to display mode.

Not only that but we now have several examples of variables that can be queried but also modify Elvish behavior when assigned to; e.g., https://elv.sh/ref/unix.html#unix:rlimits and https://elv.sh/ref/unix.html#unix:umask. An edit:incognito variable could function in a similar fashion. It would default to false but you could do set edit:incognito = $true to enable incognito mode. Something you could wrap in a function or abbreviation if you used it a lot and wanted something shorter to type when enabling/disabling incognito mode. Personally, I would prefer such a mechanism because it would be easier to discover by new users and less likely to result in surprising behavior if a user accidentally begins a command line with a space.
P.S., Is the leading space to keep a command from being appended to the history actually documented? I tried really hard to find such documentation and failed. Which sort of makes my point even if it is documented. And if it isn't documented I don't see an obvious way to document it in a manner that makes it easy to discover. It's also notable that Bash, by default, does not recognize a leading space as special. You have to HISTCONTROL=ignorespace. So apparently the Bash maintainers also concluded that "don't record commands with a leading space" is not desirable by default.

I also tested the Korn shell (the /bin/ksh provided by macOS) and it does not support the space prefix behavior AFAICT. Which surprised me since I thought it did support that behavior when I used ksh more than two decades ago.

After sleeping on this issue I wonder if we really need an incognito mode or the current, undocumented, leading space behavior. Now that the XDG vars are honored, including on Windows, why not just require the user to set $E:XDG_STATE_HOME to a directory that either does not contain an Elvish history database or one that only contains info they want leaked when performing a demo?
Note that there are two use cases for this type of feature. One use case is performing demonstrations where you don't want to risk exposing your personal history. That is best addressed by requiring the user to set $E:XDG_STATE_HOME as described above.
The other use case is keeping commands that contain sensitive info (e.g., passwords) from being recorded in your personal history. The Bash shell handles that use case via the HISTIGNORE variable or setting HISTCONTROL to ignorespace (or both). I don't think that use case is something we need to, or should, support for several reasons. First, your Elvish history shouldn't be stored on media (e.g., Dropbox or Google Drive) that you don't control. Second, you shouldn't be putting sensitive info (e.g., passwords) in your commands. That info should be passed via env vars or similar mechanisms. That has been true since UNIX was created (i.e., at least four decades). Third, expecting the user to always preface the command containing sensitive info with a space to keep it from being recorded is fragile. As is expecting the user to appropriately configure HISTIGNORE. Both mechanisms are so flawed from a security perspective as to be borderline pointless. You have to keep your shell history on systems you control and trust to be secure. Unless, of course, you never do something unsafe like embedding a literal password in a command line. And even without such blatant security exposures there is other sensitive information in your command, and directory, history that you don't want random strangers to be able to read. You have to treat your entire shell history like any other security sensitive information. The Bash "ignorespace" mechanism is a half-assed solution that is borderline pointless.
@notramo: I'm curious what you think about my arguments for not only not implementing an "incognito mode" but also removing the current "don't record commands that begin with leading space" behavior.

I was looking at the Fish code for manipulating command history (to see how to use its approach for storing command history in a flat file to replace BoltDB and the associated Elvish daemon) and noticed it has a fish_private_mode variable to control whether global history is read or persisted too. That variable (and related shell CLI options) didn't exist when I switched from Fish to Elvish. After this issue was opened the $edit:add-cmd-filters var was introduced with a default filter that keeps code blocks that begin with whitespace from being saved. But does not keep global history from being visible. The current behavior also keeps those code blocks from being added to the local shell history. Which I consider a mistake. Those filters should only affect which code blocks are persisted to the global history -- not the shell's local (private) history.
I no longer think that something like the aforementioned Fish shell variable/CLI options should be added. The "demo" mode use case can be handled by setting $edit:add-cmd-filters to a function that always returns $false and modifying the history management to only apply that filter to whether the code block should be persisted to the global store rather than the local, private, history. Along with making it easy for a user to use an alternative global history on startup.
The more general case of someone not wanting code blocks that contain security sensitive data being written to their global shell history file can add appropriate filters to the $edit:add-cmd-filters var.


fix class definition for debug module tests

Q
A

Is bugfix?
yes/no

New feature?
yes/no

Breaks BC?
yes/no

Tests pass?
yes/no

Fixed issues
comma-separated list of tickets # fixed by the PR, if any

fix class definition needed for debug module tests to pass

Thank you!


fix: prevent unauthorized writes in flux "to" function

Closes #24075

Context
Prevents someone with a read only token from being able to write using the to function in flux.
Note for reviewers:
Check the semantic commit type:

Feat: a feature with user-visible changes
Fix: a bug fix that we might tell a user “upgrade to get this fix for your issue”
Chore: version bumps, internal doc (e.g. README) changes, code comment updates, code formatting fixes… must not be user facing (except dependency version changes)
Build: build script changes, CI config changes, build tool updates
Refactor: non-user-visible refactoring
Check the PR title: we should be able to put this as a one-liner in the release notes

Same problem here as @cardamon, all tasks fail on 2.7.1 with
failed to initialize execute state: user not authorized to write

Hey @cardamon & @MannerMan, I believe you are correct that this change is what is giving you write errors from tasks. Until a proper solution can be found, I suggest following the suggestion provide in the forums.
Create a token with the right permissions
Add it as a secret
Access that secret in the Task to call
|> to(
        bucket: "mybucket",
        org: "myorganisation",
        host: "http://myhost:myport/",
        token: secrets.get(key: "MySecret"),


Provide Tap to install MTA Build Tool with Homebrew

To provide an easier way to install the cloud MTA build tool on MacOS or Linux machines it would be nice to have an own Homebrew Tap containing a formula for Homebrew (Package Manager for MacOS & Linux).
SAP has already provided such a Tap for SapMachine.
To help myself I created a Tap containing the mbt here: https://github.com/CCFenner/homebrew-cloud-mta-build-tool
Using this one could install the latest version using brew install ccfenner/cloud-mta-build-tool/mbt in a standard way & ready to use.
What do you think?

Hi folks and colleagues, any news on this? :)

Hi, folks, just FYI, mbt is now available as a formula in homebrew-core, so you can just run brew install mbt and you'll have it, which should work both on mac and linux. Feel free to close this issue.