Clarifying event hub errors related to: Renewing Lease, Closing Event Processor, Checking Leases, Stealing Lease

Actual Behavior
We set options.SetExceptionHandler and see a few exceptions each day related to:
Renewing Lease, Closing Event Processor, Checking Leases, Stealing Lease
We are wondering if these are potential problems (eg, our leases are incorrectly expiring, or there is an issue somewhere), or whether these are harmless and we can stop logging them.
Thank you
Versions

OS platform and version: .NET Framework
.NET Version: 4.6.2
NuGet package version or commit ID: NuGet 2.2.1

With 3.0.0 release we have made some number of improvements to reduce Storage IO calls in turn which reduces chance of hitting Storage exceptions. Please open a dedicated issue for each type of lease failure you are observing.

Hi @serkantkaraca
Do you mind sharing some insights into the specifics about what happens when a lease is stolen, or fails to be renewed?
For example, assuming we have Worker 1 & 2, and for simplicity one partition/lease in total between them, and the lease is owned by Worker 1.
If we have a Lease Duration of 60s, and Renwal Interval of 45s, can you share what happens.

How does Worker 2 steal the lease from Worker 1. Does Worker 1 just skip renewing the lease, and hope someone else picks it up?

Is there a chance that Worker 1 and Worker 2 both think they own the Lease, and are processing the partition at the same time?

It's not clear from the documentation and errors mentioned in logging what's actually happening.
Thank you

In such a scenario Worker-2 wouldn't even attempt to steal the lease since that action wouldn't provide an improved load balancing state. Stealing only happens for a host when only it finds out some other host owns 2 or more partitions than her.

There might be a small window of time where both hosts think they own the lease, however not so long after one will fail to renew the lease and close the partition pump.

Let me know if you have any other question.

Thanks for that. What if we had 3 workers instead, or whatever configuration is needed to allow for leases to be stolen.
I'm trying to understand why event hubs would have multiple processors processing the same partition, when it feels like you could steal leases but also do so carefully so that each partition is not regularly processed more than once concurrently.
This seems to be an unnecessary complexity overhead for us to handle?

Hijjack comment

With 3.0.0 release

13 days ago 4.0.0 was released & commen is 12 days ago, is this the one you mean? Had the issue on 3.0.0
No release notes for 4.0.0 in https://github.com/Azure/azure-event-hubs-dotnet/releases

3.0.0 already has lease management the improvements. However, better if you stay in the latest release which is 4.0.0.

Thanks for that. What if we had 3 workers instead, or whatever configuration is needed to allow for leases to be stolen.
I'm trying to understand why event hubs would have multiple processors processing the same partition, when it feels like you could steal leases but also do so carefully so that each partition is not regularly processed more than once concurrently.
This seems to be an unnecessary complexity overhead for us to handle?

Once the hosts settle down, you should not see any partition moves thus no duplicate processing. Duplicate processing will always happen when a host joins or leaves. Please remember, Azure Event Hubs provides at-least-once delivery guarantee and hence you should be prepared to process duplicate messages regardless of partition ownership on the receiver side.

Thanks; is it possible to reduce this though using lease management, for the regular case?
For example, if an event hub can instead of processing concurrently will just pause processing until its "safe" for only one processor to be associated with one partition, that would be great.
Side bonus question: With respect to partition counts and throughput units, does it make any sense to ever have more throughput units than partition counts?
I always thought the most throughput units you can use is bounded by the count of the partitions you have, but a colleague noted even with one partition limit, more throughput units seemed to get throughput higher, which was confusing.
Thank you

For example, if an event hub can instead of processing concurrently will just pause processing until its "safe" for only one processor to be associated with one partition, that would be great.

You can implement processors in a way that it can skip processing rest of the batch when ReceiverDisconnectedException or LeaseLostException is observed. It is really up to developer.

Side bonus question: With respect to partition counts and throughput units, does it make any sense to ever have more throughput units than partition counts?
I always thought the most throughput units you can use is bounded by the count of the partitions you have, but a colleague noted even with one partition limit, more throughput units seemed to get throughput higher, which was confusing.

We recommend maximum 1MB sender traffic per partition however this is not a limit we enforce at the broker side. One can easily achieve 10MB per partition as an example. Basically 1MB per partition recommendation comes from scaling design, not from some sort of throughput limit. You should always bump up your TU as you need to process more events, regardless of the partition count.


[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc we don't use Prow
/assign we don't use Prow
Produced by: knative-sandbox/knobots/actions/update-deps

Codecov Report

Merging #488 (07938b0) into main (1dc146c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #488   +/-   ##
=======================================
  Coverage   66.08%   66.08%
=======================================
  Files          38       38
  Lines        2079     2079
=======================================
  Hits         1374     1374
  Misses        660      660
  Partials       45       45

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


Stellar Expert doesn't find existing testnet account

Account: GB34PTUQQPYKN7XPWFZCIP77X5ZAEQEB3IN227EHIZFGLUUDS2Y2JVRW
Stellar expert lookup is empty: https://stellar.expert/explorer/testnet/account/GB34PTUQQPYKN7XPWFZCIP77X5ZAEQEB3IN227EHIZFGLUUDS2Y2JVRW
Horizon info: https://horizon-testnet.stellar.org/accounts/GB34PTUQQPYKN7XPWFZCIP77X5ZAEQEB3IN227EHIZFGLUUDS2Y2JVRW
Output of lumen info:
Ψ:~$ lumen set config:network test
Ψ:~$ lumen info GB34PTUQQPYKN7XPWFZCIP77X5ZAEQEB3IN227EHIZFGLUUDS2Y2JVRW
{
  "address": "GB34PTUQQPYKN7XPWFZCIP77X5ZAEQEB3IN227EHIZFGLUUDS2Y2JVRW",
  "balances": [
    {
      "asset": {
        "code": "SMX",
        "issuer": "GBXK4HMOMUA27BRDXM5AKVQI2VUZTN66FJOMMLTIHXBP5VUPCWXDSW7R",
        "type": "credit_alphanum4"
      },
      "amount": "100000.0000000",
      "limit": "922337203685.4775807"
    },
    {
      "asset": {
        "code": "USD",
        "issuer": "GCKFBEIYV2U22IO2BJ4KVJOIP7XPWQGQFKKWXR6DOSJBV7STMAQSMTGG",
        "type": "credit_alphanum4"
      },
      "amount": "14523.0000000",
      "limit": "922337203685.4775807"
    },
    {
      "asset": {
        "code": "ARS",
        "issuer": "GB7TAYRUZGE6TVT7NHP5SMIZRNQA6PLM423EYISAOAP3MKYIQMVYP2JO",
        "type": "credit_alphanum4"
      },
      "amount": "0.0000000",
      "limit": "922337203685.4775807"
    }
  ],
  "signers": [
    {
      "public_key": "",
      "weight": 1,
      "key": "GB34PTUQQPYKN7XPWFZCIP77X5ZAEQEB3IN227EHIZFGLUUDS2Y2JVRW",
      "type": "ed25519_public_key"
    }
  ],
  "flags": {
    "auth_required": false,
    "auth_revocable": false,
    "auth_immutable": false
  },
  "native_balance": {
    "asset": {
      "code": "XLM",
      "issuer": "",
      "type": "native"
    },
    "amount": "18057.4318725",
    "limit": ""
  },
  "home_domain": "",
  "thresholds": {
    "high": 0,
    "medium": 0,
    "low": 0
  },
  "data": {},
  "seq": "5110036124663813"
}

This bug seems potentially very urgent to me.

Caused by new PATH_PAYMENT_STRICT_SEND op XDR on the testnet.
Fixed in v0.11.2.


can not install src with source: true

I'm trying to install qt src and it raise a error ValueError: Target 'None' is invalid
I'm not sure is this a bug of this actions or it's a bug or aqt, I think I should report here first.
I'm using this actions in ubuntu 24.04 with this config
      - name: Install Qt
        uses: jurplel/install-qt-action@v4
        with:
          version: "6.5.*"
          archives: icu qtbase qtdeclarative qtsvg qttools
          source: true
          src-archives: qtbase qtdeclarative
          cache: true
          arch: gcc_64
          target: desktop
          host: "linux"

full workflow:
name: qbittorrent

on:
  push:
    branches:
      - "master"
    paths:
      - .github/workflows/qbittorrent.yaml

env:
  QB_VERSION: "release-4.6.5"
  LT_VERSION: "v2.0.10"

jobs:
  ci:
    runs-on: ubuntu-24.04

    steps:
      - uses: actions/checkout@v4
        with:
          repository: trim21/qBittorrent
          #          ref: "${{ env.QB_VERSION }}"
          ref: personal-patch

      - uses: actions/checkout@v4
        with:
          ref: "${{ env.LT_VERSION }}"
          repository: arvidn/libtorrent
          path: libtorrent
          submodules: recursive

      - name: Install Qt
        uses: jurplel/install-qt-action@v4
        with:
          version: "6.5.*"
          archives: icu qtbase qtdeclarative qtsvg qttools
          source: true
          src-archives: qtbase qtdeclarative
          cache: true
          arch: gcc_64
          target: desktop
          host: "linux"

it's log is here:
https://github.com/trim21/actions-cron/actions/runs/9467040441/job/26080146783

FWIW, the commands executed by this action are as follows:
$ python3 -m pip install setuptools wheel py7zr==0.20.*
...

$ python3 -m pip install aqtinstall==3.1.*
...

$ python3 -m aqt version
INFO    : aqtinstall(aqt) v3.1.15 on Python 3.11.9 [CPython GCC 13.2.0]

$ python3 -m aqt install-qt linux desktop 6.5.* gcc_64 --autodesktop --outputdir /home/runner/work/actions-cron/Qt --archives icu qtbase qtdeclarative qtsvg qttools
...

$ python3 -m aqt install-src linux 6.5.* --outputdir /home/runner/work/actions-cron/Qt --archives qtbase qtdeclarative
ERROR   : Target 'None' is invalid
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/aqt/installer.py", line 182, in run
    args.func(args)
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/aqt/installer.py", line 519, in run_install_src
    Cli._determine_qt_version(args.qt_version_spec, args.host, args.target, arch="", base_url=base)
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/aqt/installer.py", line 326, in _determine_qt_version
    version = choose_highest(version, opt_version_for_spec(ext, spec))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/aqt/installer.py", line 310, in opt_version_for_spec
    meta = MetadataFactory(ArchiveId("qt", host, target), spec=_spec, base_url=base_url)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/aqt/metadata.py", line 218, in __init__
    raise ValueError("Target '{}' is invalid".format(target))
ValueError: Target 'None' is invalid
ERROR   : aqtinstall(aqt) v3.1.15 on Python 3.11.9 [CPython GCC 13.2.0]
Working dir: `/home/runner/work/actions-cron/actions-cron`
Arguments: `['/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/aqt/__main__.py', 'install-src', 'linux', '6.5.*', '--outputdir', '/home/runner/work/actions-cron/Qt', '--archives', 'qtbase', 'qtdeclarative']` Host: `uname_result(system='Linux', node='fv-az1044-179', release='6.8.0-1007-azure', version='#7-Ubuntu SMP Sat Apr 20 00:06:31 UTC 2024', machine='x86_64')`
===========================PLEASE FILE A BUG REPORT===========================
You have discovered a bug in aqt.
Please file a bug report at https://github.com/miurahr/aqtinstall/issues
Please remember to include a copy of this program's output in your report.
Error: Error: The process '/opt/hostedtoolcache/Python/3.11.9/x64/bin/python3' failed with exit code 254

Aqtinstall's doc says:

aqt install-src
    ...
    <host> [<target>] (<Qt version> | <spec>)

target
Deprecated and marked for removal in a future version of aqt. This parameter exists for backwards compatibility reasons, and its value is ignored.
https://aqtinstall.readthedocs.io/en/v3.1.15/cli.html#install-src-command

.

Thanks for following up downstream @pzhlkj6612


Upgrade sinon to version 4.0

We should update to the latest release of sinon (4.0.0). In order to do that we need to fix these deprecation warnings:
sandbox.stub(obj, 'meth', val) is deprecated and will be removed from the public API in a future version of sinon.
 Use sandbox.stub(obj, 'meth').callsFake(fn) instead in order to stub a function.
 Use sandbox.stub(obj, 'meth').value(fn) instead in order to stub a non-function value.

So: everywhere we use sandbox.stub(obj, 'meth', val) we should refactor it with sandbox.stub(obj, 'meth').value(fn). After that, we can upgrade to Sinon 4.

There are no type definitions for sinon 4.0 yet (latest are 2.3). I'll try to update the types for 4.0 and get it into the DefinetlyTyped-repo.
Actually, we could do this refactoring without updated types (there shouldn't be any conflicts). Though, I think it would be a bit unclean to use outdated typings.

Awesome you're willing to pick this one up :metal:

I'll try to update the types for 4.0 and get it into the DefinetlyTyped-repo.

That sounds good! I'll review them as quickly as i can (i'm one of the reviewers).

Actually, we could do this refactoring without updated types (there shouldn't be any conflicts).

Probably true.

Though, I think it would be a bit unclean to use outdated typings.

Fine by me.

Fixed in https://github.com/stryker-mutator/stryker/pull/474


Add a Hello World action

This adds an action so that the hello world workflow has something to do

Issues with the secondGreeting input not being passed in unless explictly mentioned in the workflows.yml
Oh well, ignore and carry on. The link for the support forum doesn't work on the Labs page ( https://github.community/t5/GitHub-Learning-Lab/bd-p/learn )


Add .gitignore support when cloning a tfs repository

by:

committing (as a first commit in the repository) a .gitignore file based on an external template
preventing an ignored file to be downloaded
make it works with init + fetch and clone commands

This is neat. At first, I wasn't very comfortable about extending the purpose of the .gitignore file, but there are probably few or no cases where the .gitignore file would include something different from what we want to get from TFS.
Can you add some tests? What do you think about moving CommitGitIgnore() to its own class, or otherwise thoroughly unit testing it? It should also be pretty straightforward to add a clone integration test.

Hi guys, what about doing it the "other way". Normally git looks for gitignore as documented here:
https://git-scm.com/docs/gitignore
Especially there is a file $GIT_DIR/info/exclude which is not contents of the commited stuff, but inside the .git folder, which can also contain the ignore patterns.
We already can set that using the --template option, by preparing a git template directory containing that file. What is missing now is just "load $GIT_DIR/info/exclude if it exists" and we could have that functionality.

@llehn Not sure if that will work. $GIT_DIR seems not set for me. Am I the only one?
Also, if you clone the git repository, is the $GIT_DIR/info/exclude file cloned again?

I was a little confused reading the docs and not finding the parameter after installation. This PR was merged shortly after the latest release. Any change you could create a new release with this change and push to Chocolatey?
Thanks!


Entries fieldtype data not displayed in GraphQL

Description
I have an entries fieldtype on my model with a max > 1. The entry_ids are stored in a json column in the db and all works as expected in the control panel.
The issue is querying the GraphQL endpoint leads to null values being returned for the array of entries.

Steps to reproduce
// Blueprint
-
  handle: attributes_internal
  field:
    mode: default
    collections:
      - traits
    display: 'Attributes Internal'
    type: entries
    icon: entries

// Model

 protected $casts = [
    'attributes_internal' => 'array'
  ];

// DB `attributes_internal` column
["7193d09c-af21-4183-a9a5-f52a4ee7afe7","ec45f079-dea7-477d-9a7f-cc91d8f49561","9e99d0ad-4edc-495a-a1a8-f7a6a4a5f614","f2e57954-748c-4014-927b-b254500269ee"]

// GraphQL Query
query MyQuery {
  model(limit: 2) {
    data {
      title
      variant_args_local
      attributes_internal {
        title
        id
      }
    }
  }
}

// Response
"errors": [
    {
      "message": "Internal server error",
      "extensions": {
        "category": "internal"
      },
      "locations": [
        {
          "line": 5,
          "column": 7
        }
      ],
      "path": [
        "model",
        "data",
        0,
        "variant_args_local"
      ]
    },
    ...
],
"data": {
    "model": {
      "data": [
        {
          "title": "LILY #3019",
          "variant_args_local": null,
          "attributes_internal": [
            null,
            null,
            null,
            null,
            null,
            null,
            null
          ]
        },
     ...
   }

Environment
Environment
Application Name: [LOCAL]
Laravel Version: 9.52.7
PHP Version: 8.2.1
Composer Version: 2.5.4
Environment: local
Debug Mode: OFF
URL: localhost:3000
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: pgsql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 2
Antlers: runtime
Stache Watcher: Enabled
Static Caching: Disabled
Version: 3.4.8 PRO

Statamic Addons
aryehraber/statamic-impersonator: 2.4.1
doublethreedigital/runway: 4.2.5

Ah - also discovered similar behavior for the code fieldtype
Happy to help with this if you need it, not sure where to start defining types etc. admittedly GraphQL is like a black box of mystery to me 😂

Ok this didn't seem to have any effect unfortunately

Yeah, it's probably just an issue in how it turns the data into the value from the database into the value that should be output via GraphQL.

Honestly, I'm not sure what's the issue without digging in myself. Hoping to be able to do that within the next couple of days.

 Good to know I'm seeing the same thing.
I'll dig in when I can.

Fixed by #258

awesome stuff -- thanks @duncanmcclean !


Error at npm start

Is this a bug report?
Yes

os: kubuntu 18.04
npm<EMAIL_ADDRESS>/usr/share/npm
node: v8.10.0
Starting the development server...

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: watch /home/code/serverSync/misbahmes/app/public ENOSPC
    at _errnoException (util.js:1022:11)
    at FSWatcher.start (fs.js:1382:19)
    at Object.fs.watch (fs.js:1408:11)
    at createFsWatchInstance (/home/code/serverSync/misbahmes/app/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:37:15)
    at setFsWatchListener (/home/code/serverSync/misbahmes/app/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:80:15)
    at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/code/serverSync/misbahmes/app/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:228:14)
    at FSWatcher.NodeFsHandler._handleFile (/home/code/serverSync/misbahmes/app/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:255:21)
    at FSWatcher.<anonymous> (/home/code/serverSync/misbahmes/app/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:473:21)
    at FSReqWrap.oncomplete (fs.js:153:5)

Did you try recovering your dependencies?

No
Which terms did you search for in User Guide?

Environment

(paste the output of the command here)
Steps to Reproduce

(Write your steps here:)

Expected Behavior

(Write what you thought would happen.)
Actual Behavior

(Write what happened. Please add screenshots!)
Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

same here, the app was working fine yesterday and today isn't working giving me the same error as here.
I tried to reinstall the dependencies and it didn't solve anything.

I resolved this deleting an image, yes I know it's weird, but i was using a photo with env.process.PUBLIC_URL/${nameOfTheImage} , I dunno where this is relating.
i had this eroor : Error: $ {the path to the image}

Please try this with sudo or after increasing the number of permitted open file handles on your system.

Increasing the number of file handles seems to work
sysctl -w fs.file-max=500000 with sudo did it.
and i dont prefer running sudoish npm at all.


[GatherElements]: Implement verification, shape inference,  code gen

Implement support for the ONNX GatherElements operator:

[x] verification code (diagnose operator constraints)
[x] shape inference with helper
[x] codegen support
[x] add lit tests to verify constraint diagnostics
[x] add lit test to verify code generation
[x] enable end-to-end test (backend test)

Signed-off-by: Ettore Tiotto<EMAIL_ADDRESS>

Jenkins Linux amd64 Build #5395 [push] [GatherElements]: Implem... started at 08:31

Jenkins Linux ppc64le Build #4532 [push] [GatherElements]: Implem... started at 09:35

Jenkins Linux s390x Build #5411 [push] [GatherElements]: Implem... started at 09:31

Jenkins Linux s390x Build #5411 [push] [GatherElements]: Implem... failed after 40 min


CriticalAddonsOnly toleration to support RKE2

The recommendation for RKE2 deployments (found here: https://docs.rke2.io/install/ha/#2a-optional-consider-server-node-taints) is to taint Server nodes with CriticalAddonsOnly=true:NoExecute. As a result, the CIS Operator appears to not properly scan server nodes. When modifying this manually in a cluster I have deployed, the operator appears to work properly.

Any chance this will get merged/released at some point soon?

@JamesB41 , can we merge this? There is a customer asking about this issue.

@rancher-max Hi, this PR would be heplful for hardened RKE2. Could you please review & merge?


"division by zero" when the scale factor is 0

I am facing issue of "division by zero" when the scale factor is 0.
For example in the below:

BO_ 160 CLATIC_PANL: 8 DCD
SG_ Rio_bt4 : 20|1@0+ (0,0) [0|1] "" ETM

The highlighted scale factor is 0, which is causing the division by zero error.
I am using cantools version "37.2.0"
Can anyone let us know what is the exact fix for this.?

Let us know your thoughts on this.

Just tried, CANdb++ (which is considered authoritative for the dbc format) will not let you enter 0 as factor. As expected.

https://github.com/cantools/cantools/blob/356cc308de5a0470f221caf239f7560640527e23/src/cantools/database/conversion.py#L209
In the above line can we add the check for self.scale (I think here we are referring to the scaling factor) is zero. Is it preferable to have and avoid the divide by zero error.?
Let us know your thoughts on this.

But I would not object to erroring out earlier (on dbc load).


Escape bad chars in TOC links and titles

Addresses #43 at least a little bit. It simply replaces some of the troublesome characters with character reference sequences in the links and titles.

Cheers!


Please simplify the Provider APIs

Is your feature request related to a problem? Please describe.
no
Describe the solution you'd like
(Async)Notifier for complex state management(read and methods to change)
(Async)StateNotifier for simple state management（read and change）
StreamNotifier for streams
Describe alternatives you've considered
There are too many kinds of Providers and hard to choose for noobs like me.
old APIs is ok to keep and mark deprecated
Additional context

Use codegen. See https://riverpod.dev/docs/concepts/about_code_generation


Ignored Android SDK Build Tools version

Getting this warning while building:

Warning:The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (26.0.2) for Android Gradle Plugin 3.0.1.
Android SDK Build Tools 26.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Samsung galaxy S7 edge need all settings thanks

This sample has been deprecated/archived (check README for more information on newer samples related to this technology).
As recommended by GitHub, we are closing all issues and pull requests.


Apply @SuppressLint attribute to generated handler methods when necessary

I have my lint.xml set up so that ClickableViewAccessibility raises an error.
The @OnTouch binding does not have a way to suppress that warning when I am making sure to call performClick when necessary in my annotated method.
I recommend either picking up @SupressLint annotations on bound methods and applying them to the generated listener, or adding an optional string parameter to the @On[Event] annotations themselves for this situation.

+1

+1


[Storage] [STG 95] Updated Test Share Paid Bursting

Updated test_share_paid_bursting for both sync and async to ensure tests clean up resources as well as enforce existence of the test share when calling the list_shares API.

API change check
API changes are not detected in this pull request.


Steam Group Invite

Hello, I'm new to this trading bot thing, and I really need your help.
I am trying to find a method for the bot to invite you to a specific group right after you've completed a trade with them.

This is some code I found on the issues page, and I entered my steamgroup 64 id
However, "inviteUserToGroup" is not a valid command.
I continued looking all over the issues page, and every solution is different.
Please help me, I just want to help out my group and make a few trading bots.

This is not a help desk.

Also #427 and #527


Adding contributors section in README file.

Hii, Can I add the contributor's section in the README file using 'contributors-img' so that we can display GitHub profile pictures of all the contributors of this project?
Thanks!!

Go ahead.


NOT READY :  Video experiment task #869

Not tested due to a problem: thread 'main' panicked at 'Unable to find FFmpeg include dir. You can specify it explicitly by setting the FFMPEG_INCLUDE_DIR environment variable.: Could not run "pkg-config" "--libs" "--cflags" "libavcodec"

The solution should work.
What about formats gif, mp4?

I'll take care of it.


Add Circular Linked List for various languages

The following Data Structure needs to be implemented in the following languages.

[ ] C
[ ] C++
[ ] Python
[ ] Java

Ground rules:

Whoever claims the Issue first, should send a Pull Request within 24 hours else it'll be assigned to another claimant and further Pull Requests regarding that issue will not be entertained.
Pull Requests sent without claiming and referencing the Issue will not be entertained.
Make sure your Pull Requests have just one commit in them. Squash multiple commits into one if you have to.
Make sure you put in the proper folder. If you do not know where to push the code for the Data Structures, feel free to ask in the comments section below. :smile:

Hi @salman-bhai , I can implement this task in C++

Go ahead!

I will implement in C

Go ahead!

I want to claim for C.

i will implement in java.

i will implement in python.


Order to create controllers and directives.

Both of these http://plnkr.co/edit/VnFmKqnFh0vOFARvIgVB?p=preview & http://plnkr.co/edit/5GjPGQJHACCBTsIVbAWw?p=preview have maincontroller defined.
For first one its defined in a separate file but for second in script.js @ line 585
As both of them are wrapped inside a javascript function so way of defining them i.e. in same file or seperate file shuldn't be a problem...  but still for first it says Error: [ng:areq] Argument 'MainController' is not a function, got undefined... I can't understand why..

It was due to a overwriting of the module in d3.js


[FIX] Do not pin versions

Automatically upgrade to avoid using versions with known vulnerabilities

@rwblair something is wrong over here, could you give it a quick eye?

@rwblair
(just triggering another notification :) )

Looks good. Hard to imagine these 3 packages ever having version conflicts.

Though the tests failing isn't a good sign.


[VS Code] [Audio] Request endCall failed unexpectedly without providing any details.

Error:
Request endCall failed unexpectedly without providing any details.
Steps to Reproduce:
1.
2.

Version Data

extensionName
VSLS-Audio

extensionVersion
0.1.60

applicationName
VSCode

applicationVersion
1.36.1

platformName
Windows

platformVersion
10.0.18932

Dupe of #2571


Don't leave gaps in VM disk scsi-id that is derived from bootindex

See https://discuss.linuxcontainers.org/t/wrong-boot-order-for-maas-generated-lxd-config/12117/6?u=tomp for more info.
Currently scsi-id is generated from the disk's boot index.
However if there is a network boot device too, then the scsi-ids generated can have gaps in the sequence.
This doesn't cause a problem. But would be nice to not have that, so we could generate the scsi-id based on the boot order of the just the disk devices (based on the boot index).

Hello, @Gautham-Raju and I are students from UT Austin taking a Virtualization class, and we would love to take a look at this issue as part of our final project to contribute to an open source repo.

Done!

@kaustubnvd @Gautham-Raju hello, just wanted to check if you still intend to work on this or if we should unassign it so someone else can take a crack at it?

@stgraber Apologies for the delayed response, we no longer intend to work on this issue, so you can unassign us from it.

Going to take care of this one.

I think we can close this one. With the switch to QMP, those entries don't exist in the config anymore at all.
And from the guest's point of view, I'm not seeing any issue with the ordering.
Here is a worst case scenario:
root@distrobuilder-45b8829d-6846-4f7c-b119-60e2b426831d:~# lsscsi
[0:0:0:1]    disk    QEMU     QEMU HARDDISK    2.5+  /dev/sda
[0:0:1:1]    disk    QEMU     QEMU HARDDISK    2.5+  /dev/sdb
[0:0:2:1]    disk    QEMU     QEMU HARDDISK    2.5+  /dev/sdc
root@distrobuilder-45b8829d-6846-4f7c-b119-60e2b426831d:~# ls -lh /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root  9 Apr  8 19:35 scsi-0QEMU_QEMU_HARDDISK_lxd_root -> ../../sda
lrwxrwxrwx 1 root root 10 Apr  8 19:35 scsi-0QEMU_QEMU_HARDDISK_lxd_root-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr  8 19:35 scsi-0QEMU_QEMU_HARDDISK_lxd_root-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Apr  8 19:35 scsi-0QEMU_QEMU_HARDDISK_lxd_test -> ../../sdb
lrwxrwxrwx 1 root root  9 Apr  8 19:35 scsi-0QEMU_QEMU_HARDDISK_lxd_test1 -> ../../sdc
root@distrobuilder-45b8829d-6846-4f7c-b119-60e2b426831d:~# stgraber@dakara:~$ lxc config show v1
architecture: x86_64
config:
  image.architecture: amd64
  image.description: Ubuntu focal amd64 (20220408_08:30)
  image.os: Ubuntu
  image.release: focal
  image.serial: "20220408_08:30"
  image.type: disk-kvm.img
  image.variant: cloud
  volatile.base_image: 710ba4ca2b3cf7a9dfae2ded3c3c100180aefbcdd6d5a8019cf2d686c742ffbd
  volatile.cloud-init.instance-id: de150753-c19c-430b-a7a1-9d4bd0d326ab
  volatile.eth0.host_name: tapc98c99a7
  volatile.eth0.hwaddr: 00:16:3e:b1:d8:e8
  volatile.eth1.host_name: tap448f558b
  volatile.eth1.hwaddr: 00:16:3e:6f:77:3a
  volatile.last_state.power: RUNNING
  volatile.uuid: 5a166baf-6547-4efa-8672-8ec75f0c9a31
  volatile.vsock_id: "421"
devices:
  eth0:
    boot.priority: "6"
    name: eth0
    network: lxdbr0
    type: nic
  eth1:
    boot.priority: "7"
    name: eth1
    network: lxdbr0
    type: nic
  root:
    boot.priority: "10"
    path: /
    pool: default
    type: disk
  test:
    boot.priority: "1"
    pool: default
    source: test
    type: disk
  test1:
    boot.priority: "8"
    pool: default
    source: test1
    type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""

As you can see, I have a mix of disks and NICs, yet the SCSI bus ordering is a simple bus ID per drive with the drivers being place in alphabetical order as listed in the config (root always goes first, then everything after that in alphabetical order).

Nice!


Fix for GetRawClient being called inside Update

Fix the raw client being updated (and calling Regex.Match) in Update() by only updating the raw client when we attach to a new process.

Seems like a perfectly reasonable solution!  I'll test it briefly tonight and then should be good to go.  Thank you so much!


Who can tell me how to resize the tableView?

Description
When I added a customer navigationView, the tableViewCell was hidden behind the navigationView. so I want to adjust the top margin of tableView, who can help me?
refer to below image

Did you try

tableView?.contentInset

Thank you!
I solved this problem as you said.

To add on to @mzgnr , tableView?.contentInset = .zero and tableVIew?.clipsToBounds = true.  Without the latter, I had some weird issues with cells flickering under my navigation bar, even though I had my tableView's top bound to the bottom of a custom view on my UIViewController that was beneath the nav bar. It was some odd behavior.

@JacobJT i've recently started using this project i think i cant help you about this until i face it and find a solution for it. But I'm guessing that this kind of issues can be fixed in super class of SLKTextViewController. I'm not sure how tho 😢

@JacobJT on the other hand i might help you if you provide a code snippet that i can test

@mzgnr  Thanks for the offer! I appreciate it. This issue is resolved for me, though. I thought it was odd, because when I scroll all the way up on my table, the last cell would be where you'd expect it to be with my constraints, but when I scrolled all the way down, I'd see the cells flickering under the nav bar.  That's why I added clipsToBounds, which solved that issue.
The Nav Bar issue stems from some legacy code that used a transparent image as the bar. I'm getting ready to completely redo those pages anyway, though, so I'm not wholly concerned about it at this time.


[Bug]: Update from 1.17.6 to 1.18.0: database is not cleaned between the tests (both Mongo and Postgres)

Module
Core
Testcontainers version
1.18.0
Using the latest Testcontainers version?
Yes
Host OS
Windows, Linux
Host Arch
x86
Docker version
Latest on Windows, also within GitLab.

What happened?
After updating testcontainers 1.17.6 → 1.18.0, the tests are now failing with the database conflicts since the data created in one test-class (from the same class AND from the different class) are now preserved between tests.
It failed in our 2 different projects: one using MongoDBContainer and another one using PostgreSQLContainer.
GenericContainer#shouldBeReused was false and remains false.
Please provide the option to fix this behaviour as it was in 1.17.6.
Relevant log output
No response
Additional Information
No response

Can you provide a simple project that reproduces the issue? Please, take into account that if you declare static MongoDbContainer... then the same instance would be used buy all your tests.


[Governance Review] Knative

Knative will apply for graduation and we (Knative maintainer hat on) need a governance review.

Due diligence: not finished yet [draft]

I wanted to create this request anyway, but we have some missing pieces:

TM committee is almost dissolved --> not a requirement
We're about to add some missing text about demotion/removal This is done

@geekygirldawn we're ready to go here.
I will prepare the information you need, based on the Google doc here: https://github.com/cncf/tag-contributor-strategy/issues/565

Created a new ticket, using the form: https://github.com/cncf/tag-contributor-strategy/issues/578
Closing this one.


Break points are hit or miss on node 6.2.0 and windows

While testing #6659.
If I simply follow the steps, the break point in index.js line 6 is never hit. However, if I insert a debugger statement everything is fine.
The NTVS team (@mjbvz and @mousetrap) are seeing the same / a similar issue.

Here's the issue NTVS where is tracking this problem: https://github.com/Microsoft/nodejstools/issues/934
The behavior we seeing is nondeterministic, sometime debugging works and sometimes it doesn't. I first noticed it in node 6.1, but also see it in 6.2 and suspect 6.0 is also effected.
This Node-inspector issue may be related too: https://github.com/node-inspector/node-inspector/issues/864

@kieferrm VS Code should not have the same issue as NTVS (our code injection should work around the "illegal access" issue in callbacks).
I think you are seeing a different issue, but I'll try to reproduce tomorrow.

@kieferrm I could not reproduce with node 6.0, 6.1, 6.2 on WIndows 10 (Parallels VM):

Is there anything I am doing differently?

To rule out that Parallel is the reason for the difference, I just tried to reproduce on a Lenovo X Carbon laptop with Window 8 and node.js 6.2. But again, breakpoints are reliably hit and I never missed any.

I found the difference:
I run in a VM. When I have the source in the window file system everything works fine and the break point is hit. When I have the source on the Mac (which is transparently mounted  as a windows drive) then - playing exactly the same scenario - the break point is not hit.  This seems to suggest that this is either a timing issue or some kind of line delimiter issue. If it's a timing issue I wonder if people using code on mounted network drives etc. could experience it too.

@kieferrm I suspect this is UNC file path issue.

@kieferrm I've verified that this is in fact a UNC path issue.
The following screenshot shows that node.js reports the file path for the 'debugger' statement back with a UNC path (green border), which VS Code opens in read-only mode in the editor (see the bogus "core module" detaill at the end).
But the breakpoint is registered with a driveletter path (red border in the tracing information).

I will close this issue (because with this finding the title has become misleading) and create a new bug.

Since this is not an issue specific to node 6.2, I've created a bug that better reflects the real issue: https://github.com/Microsoft/vscode/issues/6894


Issue 100

#100

Coverage increased (+0.05%) to 89.832% when pulling a1de565090aeb3333157d6fdbcc7da8dfa73edd7 on issue-100 into eefb8ac0b3d8b4b2df077874a2a356fd3ff2fb78 on master.

Coverage increased (+0.05%) to 89.832% when pulling a1de565090aeb3333157d6fdbcc7da8dfa73edd7 on issue-100 into eefb8ac0b3d8b4b2df077874a2a356fd3ff2fb78 on master.


Completion list should be aligned to the completion span

Completion list should not slide (and repositioned with every keystroke) with the location of the caret:

It should be aligned to the applicable completion span:

like in C#, VB or plain JavaScript, or every other language service

I see this working as expected in VS2015 CTP6.


[Alpha 5] Add pocketsmith connector to the alpha5 branch

Purpose

$subject.

Approach

Connector generation done using Ballerina OpenAPI tool for the available official OpenAPI specifications
https://raw.githubusercontent.com/pocketsmith/api/master/openapi.json

Security checks

Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes
Ran FindSecurityBugs plugin and verified report? no
Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes

Test environment

OpenJDK 11, Ballerina Swan Lake Alpha 5, Ubuntu 20.04

Resolves with https://github.com/ballerina-platform/ballerinax-openapi-connectors/pull/231


include nncf in openvino extras

What does this PR do?
install nncf with openvino extras. role nncf in model optimization during openvino model export and loading is increased in last releases (e.g. export model with int8 or int4 weights compression for large models), it gives more benefits to users with having it from scratch
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[x] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

it gives more benefits to users with having it from scratch

Users already get NNCF by default, unless they choose to not install the nncf extra, even though that is what we recommend in documentation (or if they don't read documentation, but then they would also not know to install the openvino extra)
Two downsides of including NNCF in [openvino]:

NNCF adds 33 new dependencies (of dependencies). All these dependencies can have bugs, or incompatibilities. NNCF is imported on importing OVModelFor.... so these issues then can also affect users who do not even need NNCF (this happens from time to time).
Having nncf installed increases import time (again because when it is available, it is imported). On my laptop (10th gen Core) from optimum.intel import OVModelForSequenceClassification taskes  4.5-5.5 seconds without nncf installed, and 7.5-10 seconds with nncf installed. Not a problem when you're exporting a model once and need NNCF, but when you're writing code and have to run an inference script or notebook cell many times, this is noticeable.

it gives more benefits to users with having it from scratch

Users already get NNCF by default, unless they choose to not install the nncf extra, even though that is what we recommend in documentation (or if they don't read documentation, but then they would also not know to install the openvino extra)
Two downsides of including NNCF in [openvino]:

NNCF adds 33 new dependencies (of dependencies). All these dependencies can have bugs, or incompatibilities. NNCF is imported on importing OVModelFor.... so these issues then can also affect users who do not even need NNCF (this happens from time to time).
Having nncf installed increases import time (again because when it is available, it is imported). On my laptop (10th gen Core) from optimum.intel import OVModelForSequenceClassification taskes  4.5-5.5 seconds without nncf installed, and 7.5-10 seconds with nncf installed. Not a problem when you're exporting a model once and need NNCF, but when you're writing code and have to run an inference script or notebook cell many times, this is noticeable.

Thanks, @helena-intel for providing your opinion here.
Regarding the additional 33 dependencies you mentioned, I would like to comment that originally it is much less (see https://github.com/openvinotoolkit/nncf/blob/481ce9d9624c4b699878aa337d2e9b78dc25a517/setup.py#L104). We are also validating compatibility of NNCF with OpenVINO on regular basis since this is a part of the product. Moreover, we rely only on official releases of NNCF in Optimum. If you know the cases where import of NNCF causes problems please share with reproducible step,
As for the import time comment, I don't think it is a stopper but we will investigate it. cc'ed @alexsu52, @l-bat please take a look.
Again, our motivation is to provide a smooth UX when working with LLMs and optimizing them. We are also enabling SD optimization in the separate PR. It involves NNCF as well.


LLMware - one click fail

D:\Program Files (x86)\prompt_quill-main\llmware_pq>echo "D:\Program Files (x86)\prompt_quill-main\llmware_pq"  | findstr /C:" "   1>nul  && echo This script relies on Miniconda which can not be silently installed under a path with spaces.   && goto end
This script relies on Miniconda which can not be silently installed under a path with spaces.
D:\Program Files (x86)\prompt_quill-main\llmware_pq>pause
Windows 11
i9-1300
64gb ram
rtx4070
6Tb ssds

Resolved, Install llmware_pq on C:\ resolves path issues with Mini


Having a directory in the INPUT_FILE_PATH breaks

Describe the bug

Having a directory in the INPUT_FILE_PATH breaks the workflow.
How to reproduce
Steps to reproduce the behaviour:

Put a directory into INPUT_FILE_PATH
Run the workflow
Observe that it stalls.

Expected behaviour

A directory is allowed and should instead copy all files under that directory.

Fixed in #765.


CometRepay max, v2

This is a reworked version of #57 ; I've done it as a separate PR so we can compare the two approaches.
The downside of the approach in #57, as 🪄 correctly pointed out, is that the cost of wrapping/unwrapping assets would have to be incorporated into the paymentTokenSpent argument passed to assertSufficientPaymentTokenBalances. This would be logic that would have to be reimplemented by every function that used assertSufficientPaymentTokenBalances.
So instead, this PR maintains assertSufficientPaymentTokenBalances largely as it is, but adds an additional account argument. With account, assertSufficientPaymentTokenBalances can calculate the borrow amount for a max repay.
(This PR also incorporates the last pieces of feedback from #57: always using Paycall and adding a 0.1% buffer to the repay amount for max repays)

Also, you'll want to up the builder version to "0.0.4". I increased it to "0.0.3" in a recent PR.


Do inputs need to be cleared in the rust bindings?

In the api calls, like
pub fn blst_fp_sqr(ret: *mut blst_fp, a: *const blst_fp);

does ret need to be cleared, or can it contain another value, and will be automatically be cleared?

does ret need to be cleared,

No.

awesome, thanks

Just in case for reference, on potentially related note. Output can always [fully] overlap input of the same type modulo its const-ness. Or one of the inputs in case a subroutine takes more than one, like addition or multiplication. Actually, there are exclusions to the "same type" rule. Most notably one can perform in-place serialization/deserialization of the scalars...


Remove first implementation of the Git tool

We still have classes like GtGitRepository2 that belong to the first implementation of the git tool.

I think https://github.com/feenkcom/gt4git/commit/16d328e6be2388ff96e5ba90a7a96ccfe6bcb73d got all of them!


Issue in restarting livebook server on ubuntu 20.04 LTS

Environment

Elixir & Erlang/OTP versions (elixir --version):  1.12
Operating system: Ubuntu 20.04
How have you started Livebook (mix phx.server, livebook CLI, Docker, etc):  livebook server --ip  --port 8080

Current behavior
I have been using Livebook successfully on windows, recently i started using ubuntu OS version 20.04, this is where i decided to setup livebook in ubuntu machine too.
First I had installed elixir 1.12 version and then followed below steps to setup livebook
mix escript.install hex livebook
Everything above went fine but when am trying to start livebook using below command, then livebook fails to start and throws below error:
livebook server --ip  --port 8080
15:45:11.174 [info] Application ssl exited: :stopped
15:45:11.190 [info] Application public_key exited: :stopped
15:45:11.191 [info] Application asn1 exited: :stopped
15:45:11.191 [info] Application crypto exited: :stopped
[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
15:45:11.192 [info] Application os_mon exited: :stopped
15:45:11.193 [info] Application sasl exited: :stopped
15:45:11.193 [info] Application runtime_tools exited: :stopped
Livebook failed to start
Tried running "iex --sname test" command still same problem. Please suggest what could be missing here?

Is that the full error message that you get? Because something should be telling you the —ip option without argument is invalid.

Tried running "iex --sname test" command still same problem

Hmm, try running epmd -d in one terminal and then iex --sname test in another, any interesting output?

sorry i think since i used angular brackets it removed my ip address, but yes i provided --ip "IP address of my machine" and after running below command am seeing that error
livebook server --ip <IP_ADDRESS> --port 8080

epmd -d is returning below output
epmd: Fri Nov 12 16:03:35 2021: epmd running - daemon = 0

Do you get the same error when running without --ip at all? (it's not necessary in the default use case)

Sorry below is what i see if i run iex --sname test in other shell
epmd: Fri Nov 12 16:04:42 2021: epmd running - daemon = 0
epmd: Fri Nov 12 16:04:58 2021: ** got ALIVE2_REQ
epmd: Fri Nov 12 16:04:58 2021: registering 'test:1636713299', port 45893
epmd: Fri Nov 12 16:04:58 2021: type 77 proto 0 highvsn 6 lowvsn 5
epmd: Fri Nov 12 16:04:58 2021: ** sent ALIVE2_RESP for "test"

yes only with livebook server command also am seeing same error:
16:06:10.489 [info] Application ssl exited: :stopped
16:06:10.508 [info] Application public_key exited: :stopped
16:06:10.508 [info] Application asn1 exited: :stopped
16:06:10.508 [info] Application crypto exited: :stopped
[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
16:06:10.510 [info] Application os_mon exited: :stopped
16:06:10.510 [info] Application sasl exited: :stopped
16:06:10.511 [info] Application runtime_tools exited: :stopped

Can you try another port just in case? It is really weird we are not getting more information from the error message. :(

@josevalim tried 2 different ports like 8888 and 9090 but still same problem :(

@josevalim since this is a fresh Ubuntu installation, could it be related to some system package missing?

@saurabh-ironman how did you install erlang/elixir?

sudo apt install elixir

Can you provide the full output of elixir —version just in case? Also do IEx, and then print the result of :code.get_path?

@josevalim Here is the output for elixir --version
elixir --version
Erlang/OTP 24 [erts-12.0.4] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [jit]
Elixir 1.12.2 (compiled with Erlang/OTP 22)
And here is the output for :code.get_path with in iex shell
['/usr/lib/elixir/bin/../lib/mix/ebin',
'/usr/lib/elixir/bin/../lib/logger/ebin',
'/usr/lib/elixir/bin/../lib/iex/ebin',
'/usr/lib/elixir/bin/../lib/ex_unit/ebin',
'/usr/lib/elixir/bin/../lib/elixir/ebin',
'/usr/lib/elixir/bin/../lib/eex/ebin', '.',
'/usr/lib/erlang/lib/kernel-8.0.2/ebin',
'/usr/lib/erlang/lib/stdlib-3.15.2/ebin', '/usr/lib/erlang/lib/xmerl-1.3.28',
'/usr/lib/erlang/lib/wx-2.0.1', '/usr/lib/erlang/lib/syntax_tools-2.6/ebin',
'/usr/lib/erlang/lib/ssl-10.4.2/ebin', '/usr/lib/erlang/lib/snmp-5.9.1/ebin',
'/usr/lib/erlang/lib/sasl-4.1/ebin',
'/usr/lib/erlang/lib/runtime_tools-1.16.2/ebin',
'/usr/lib/erlang/lib/public_key-1.11.1/ebin',
'/usr/lib/erlang/lib/parsetools-2.3/ebin',
'/usr/lib/erlang/lib/os_mon-2.7/ebin', '/usr/lib/erlang/lib/odbc-2.13.5',
'/usr/lib/erlang/lib/observer-2.9.6', '/usr/lib/erlang/lib/mnesia-4.19.1/ebin',
'/usr/lib/erlang/lib/megaco-4.0.1', '/usr/lib/erlang/lib/inets-7.4.1/ebin',
'/usr/lib/erlang/lib/eunit-2.6.1', '/usr/lib/erlang/lib/et-1.6.5',
'/usr/lib/erlang/lib/erts-12.0.4/ebin',
'/usr/lib/erlang/lib/erl_interface-5.0.1', '/usr/lib/erlang/lib/eldap-1.2.9',
'/usr/lib/erlang/lib/edoc-1.0', '/usr/lib/erlang/lib/diameter-2.2.4',
'/usr/lib/erlang/lib/crypto-5.0.2/ebin',
'/usr/lib/erlang/lib/compiler-8.0.2/ebin',
'/usr/lib/erlang/lib/common_test-1.20.5',
'/usr/lib/erlang/lib/asn1-5.0.16/ebin'
]

Just to make sure I tried reproducing this in Docker in a bare setup, but no luck
$ docker run -it --rm ubuntu:20.04
apt update
apt install wget
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && dpkg -i erlang-solutions_2.0_all.deb
apt update
apt install elixir
iex --sname test

@saurabh-ironman you can also try sudo iex --sname test to see if it changes anything, just in case there are some permission problems, but that's a random guess.

@jonatanklosko I did sudo iex --sname test and below is what am seeing...
sudo iex --sname test
[sudo] password for administrator:
Erlang/OTP 24 [erts-12.0.4] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [jit]
Interactive Elixir (1.12.2) - press Ctrl+C to exit (type h() ENTER for help)
iex(test@ABC01)1>
BREAK: (a)bort (A)bort with dump (c)ontinue (p)roc info (i)nfo
(l)oaded (v)ersion (k)ill (D)b-tables (d)istribution
After this i pressed ctrl+c to come out and then ran same command again and no luck still :(
livebook server --ip <IP_ADDRESS> --port 8080
16:31:28.345 [info] Application ssl exited: :stopped
16:31:28.362 [info] Application public_key exited: :stopped
16:31:28.362 [info] Application asn1 exited: :stopped
16:31:28.362 [info] Application crypto exited: :stopped
[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
16:31:28.363 [info] Application os_mon exited: :stopped
16:31:28.364 [info] Application sasl exited: :stopped
16:31:28.364 [info] Application runtime_tools exited: :stopped
Livebook failed to start

You are missing xmerl, it is probably a separate package? But we need to improve the error message. I will investigate.

@josevalim correct!! I went forward and installed Livebook in the container and got the same error. Then I installed xmerl with apt install erlang-xmerl and Livebook started successfully. @saurabh-ironman please see if it fixes it for you :)

Awesome guys @josevalim and @jonatanklosko... After installing xmerl it is running now :)
livebook server --ip <IP_ADDRESS> --port 8080
[Livebook] Application running at http://localhost:8080/?token=3mmajgcumpfbhimfuy7txdqjmdofr7sn
Thanks for being on top of this issue and resolving it :)


I can see a team member's photo on their page

So that I can literally put a name with a face for any 18F team member, I should see an photo of that team member on the team member's page.
Acceptance criteria:
Given I am an 18F employee
When I go to a team member's pages
Then I should see the photo of that team member here https://18f.gsa.gov/team/, or a placeholder image next to the team member's full_name

We get this for free now that we are importing images


Why HLO Importer doesn't support U32 type?

Hi:
I am learning the internal data structure of Tensorflow and MLIR.
I first used tfcompile --graph=graph.pb  --config=graph.config.pbtxt   --xla_dump_to="/tmp/" --cpp_class="mynamespace::MyComputation" --xla_dump_hlo_as_text=true and then extracted module_0000.after_optimizations.txt which if I understood this correctly is the lowered HLO IR from input TF GraphDef.
However when I pass this file into tf-mlir-translate --hlo-text-to-mlir-hlo /tmp/module_0000.after_optimizations.txt I got greeted with an internal error says 'Unsupported Type: U32'.
Is there any reason U32 isn't supported in HLO or am I missing something obvious here?

@Naville ,
Please provide details about what platform you are using (operating system, architecture). Also include your TensorFlow version and provide more information on the issue.Thanks!


Added Orbit Command.

Style Updated. Thanks!

Style Updated. Thanks!

Is the docs failure something that should have been fixed with the fix_style.sh?

Is the docs failure something that should have been fixed with the fix_style.sh?

Oh, we're missing some more documentation in action.proto :see_no_evil:, but I think that's the last missing piece.
The enum here should be documented (similar to e.g. this one).
Would you mind opening a PR to MAVSDK-Proto with that change? I think after that we will be fine here, too :innocent:

Oh, we're missing some more documentation in action.proto :see_no_evil:, but I think that's the last missing piece.
The enum here should be documented (similar to e.g. this one).
Would you mind opening a PR to MAVSDK-Proto with that change? I think after that we will be fine here, too :innocent:

👍 Sure not a problem.

👍 Sure not a problem.

I believe it should be good to go now.

No problem! Thanks for helping me along the way!


sf.data has empty row set although data is retrieved

I have the following setup:
my-component.hbs
{{#sf-table as | sf |}}

    {{sf.headings
      headings=(array
        (hash key="username" display="Username")
        (hash key="createdAt" display="Joined")
        (hash key="id" display="id")
      )}}

{{sf.filter placeholder="Search" withClearField=true}}

  {{sf.data store=users}}

{{/sf-table}}

my-component.js
  store: Ember.inject.service(),

  users: Ember.computed(function() {
    return this.get('store').query('user', { active: true });
  }),

The server does return an array containing user objects, and I can use the users in for example an each helper, but the sf-table has no rows.
What am I doing wrong?

@CrushedPixel You may not be doing anything wrong. I'll write a test and see if I can replicate.

@CrushedPixel Okay, I think the problem here is that the users computed property is actually a returning a PromiseArray, and not a RecordArray. The add-on is not smart enough to resolve a Promise. I think if you were to load users in the route and pass it down to my-component, you would see the expected behavior.
{{my-component users=users}}

I've tested it as you said, but the code is still highly buggy.
Here are some of the flaws I found.
sf-em-data.js#L31:
  _extractPojo(store) {
    return store.toArray().map((item) => get(item, '_internalModel._data'));
  },

should instead be get(item, '_internalModel.__data') (two underscores for __data).
In _filterByHeadings, I've found two issues:
      // when headings and keys match, return early
      if (headings.length === keys(_obj).length) {
        return _obj
      }

this should actually compare the contents of the headings with the object keys, not only the length - they may contain completely different data.
Furthermore, the following for loop makes no sense:
      for (let key in _obj) {
        if (!headings.includes(key)) {
          delete _obj[key]
          return _obj;
        }
      }

an object is only returned if it contains a key not present in headings. you should move the return _obj outside of the for loop.
Additionally, the object keys are never sorted to match the headings, which means that the data entries may be arranged in a completely different order than the headings suggest.
This definitely needs to be done in order to make the sf-em-data component usable.

@CrushedPixel Well, thanks for tearing this apart. It might be time to deprecate the component. I've only had the time to work on it once this entire year, and I obviously have not given the concentration it needed to make it usable. Let me know if you want to (or think its worthwhile) to pick up some of the fixes, re-factors you've mentioned above. I'll add you as a contributor.

@CrushedPixel Closing this issue. Feel free to add some unit tests to address some of the issues you saw. Thanks.


Update DataGrid page with correct links

Remove links to see the control in action.
Add links to WinUI 2 Control Gallery app and Windows Community Toolkit Gallery app.
Add note about the DataGrid not being available in the latest Windows Community Toolkit.

Fixes #
Docs for Toolkit PR #
What changes to the docs does this PR provide?

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] Correctly picked the right branch to base the change off (dev for new features, main for typos/improvements)
[ ] For new pages, used the provided template
[ ] For new features, added an entry in the Table of Contents
[ ] Ran against a spell and grammar checker
[ ] Contains NO breaking changes

Other information

@michael-hawker Can you take a look at this PR when you have time? I don't have permissions on this repo to assign or merge anything. Thanks!

Thanks @alvinashcraft, good to get this updated for now, and we're going to be working to add the redirects for all these docs to the new docs repo (https://github.com/MicrosoftDocs/CommunityToolkit) and then archive this one.


Embeds are too wide

Describe the bug
Embeds are very wide for some reason
To Reproduce
Post an image. (more noticeable as a spoiler)
Screenshots

Infomation (please complete the following information):
Discord channel: Stable
OS: Windows 8.1 64-bit
Mod: BetterDiscord
Discord language: English (US)

Fixed.


impl IntoSql<'a> in the .bind() method

Hello. I am having issues with the .bind() method.
Currently, it's signature is pub fn bind(&mut self, param: impl IntoSql<'a> + 'a). I am mixing code from other database crates, and usually, parameters are accepted as &'a[&'a dyn Trait], so I can mix type parameters that implement Trait.
There's something similar in tiberius?
Even if not, is possible to upgrade the codebase to accept something similar?
Thanks.

Hey!
Could the direct client methods work for you better?

https://docs.rs/tiberius/0.11.0/tiberius/struct.Client.html#method.query
https://docs.rs/tiberius/0.11.0/tiberius/struct.Client.html#method.execute


krun --prove does not work as expected

This is the error krun throws with --prove
[Error] Critical: Configuration variable missing: $PGM
File:
/Users/andrei/andrei_k/samples/java_rewrite_engine/tutorial/2_languages/1_simple/1_untyped/simple-untyped.k
Location: (314,42,314,52)
It can be circumvented by using -cPGM=".". I am assigning it to @dwightguth because of his work on the options.

@andreistefanescu is this still happening or did this get fixed?


LIS_writeModelOutput '[INFO] Writing surface model output to:  ' produces garag

The message '[INFO] Writing surface model output to:  ' in routine LIS_writeModelOutput in file lis/core/LIS_historyMod.F90 produces garage for all non masterproc processes.
Only the master process sets lsmoutfile.  Either all calls to LIS_writeModelOutput should initial the output file name to some clean value or only the master process should issue this message.

Duplicate


Creation of the WinUI package and implementation of WebView2

GitHub Issue: #

Proposed Changes

What is the current behavior?

What is the new behavior?

Checklist
Please check if your PR fulfills the following requirements:

[ ] Documentation has been added/updated
[ ] Automated Unit / Integration tests for the changes have been added/updated
[ ] Contains NO breaking changes
[ ] Updated the Changelog
[ ] Associated with an issue

Other information

Should we squash all those commits?


Validator 3.2.2

Discussion: https://github.com/propelorm/Propel2/commit/b7c8ac9052c972838ae74d6ad0f6fa9ea5f2a100
Fix that we are waiting: https://github.com/symfony/symfony/pull/21592
This must be fixed before I (or someone else) continue to investigate the problem with validator v3.2.2.
I'm creating this issue because the problem is bigger than I tough and to keep every one updated with the investigation :)
Explanation of the problem:
Constraint result with 3.2.1
array(2) {
  [0] =>
  class Symfony\Component\Validator\Constraints\Regex#91 (6) {
    public $message =>
    string(25) "Please enter a valid ISBN"
    public $pattern =>
    string(9) "/[^\d-]+/"
    public $htmlPattern =>
    NULL
    public $match =>
    bool(false)
    public $payload =>
    NULL
    public $groups =>
    array(3) {
      [0] =>
      string(7) "Default"
      [1] =>
      string(19) "ValidateTriggerBook"
      [2] =>
      string(22) "ValidateTriggerFiction"
    }
  }
  [1] =>
  class Symfony\Component\Validator\Constraints\Regex#93 (6) {
    public $message =>
    string(25) "Please enter a valid ISBN"
    public $pattern =>
    string(9) "/[^\d-]+/"
    public $htmlPattern =>
    NULL
    public $match =>
    bool(false)
    public $payload =>
    NULL
    public $groups =>
    array(2) {
      [0] =>
      string(7) "Default"
      [1] =>
      string(22) "ValidateTriggerFiction"
    }
  }
}

Constraints with 3.2.2
array(1) {
  [0] =>
  class Symfony\Component\Validator\Constraints\Regex#78 (6) {
    public $message =>
    string(25) "Please enter a valid ISBN"
    public $pattern =>
    string(9) "/[^\d-]+/"
    public $htmlPattern =>
    NULL
    public $match =>
    bool(false)
    public $payload =>
    NULL
    public $groups =>
    array(2) {
      [0] =>
      string(7) "Default"
      [1] =>
      string(22) "ValidateTriggerFiction"
    }
  }
}

fix

Potential idea. I will re-investigate after changes in symfony!
I think we should iterate over the $fictionConstraints and expect the following groups ValidateTriggerFiction, ValidateTriggerBook, ValidateTriggerFiction.

I have honestly way too less experiences in Validation component that I would very appreciate as many opinions as we could get @propelorm/propel

Just fired PR: https://github.com/propelorm/Propel2/pull/1350
I don't think that we should care about Validator internals. Api works - we are happy.


ngx-restangular still being maintained? Community fork?

Is this repository still being maintained? I'm upgrading a project heavily uses ngx-restangular from angular 5 to 14. I can see there's an open pull requests that add support up to angular 12 but it seems like this repo hasn't had contributions or any PRs merged in a few years. Is there a community fork that's taken over? If not I'd also appreciate if anyone has suggestions for similar packages or built in  angular 14 functionality that replaces functionality of ngx-restangular.

There are some forks that support angular 16/17 but I'm unable to build them:
https://github.com/reifi/ngx-restangular
https://github.com/bal3no/ngx-restangular
It says:
Cannot find module 'ngx-restangular' or its corresponding type declarations.


Running error on “shonenmagazine”

eg:https://pocket.shonenmagazine.com/episode/10834108156629534907

i know，this site uses some anti-piracy measures

It works as intend. The server sends broken images to the browser then fix it with JavaScript. Image Picka can only help you download images so you have to edit the image yourself.


Fixes #495: Set composer owner to vagrant user

https://github.com/geerlingguy/ansible-role-composer/issues/17

I like it... especially since it plays nice with use on DigitalOcean/other targets.

Hmm, tests failed, but probably just because it's inside the Docker containers; maybe we can set the ansible_ssh_user variable explicitly for the tests?

Ah right. Is it the same if provisioned locally with ansible_provisioner or JJG-Ansible-Windows?

This should work everywhere, also docker and ansible_local. For whatever reason ansible didn't have ansible_env.USER populated in docker (while it is on a VM) so I had to add a final default to ansible_user_id which does exist.
One quirk is that still you need to correct the home path if you're installing with root.


Feature request: let Variable Explorer look inside function environments

Say I have a function that defines its own enclosing environment:
f <- local({
    x <- 42   # local state
    function(y) {
        x <<- x + y
        x
    }
})

f(3)
## 45

environment(f)$x
## 45

It would be nice to be able to look inside f's environment and pull out the value of x. We can already do something like this when debugging, and VE can also look inside raw environments, so hopefully it shouldn't be too difficult.

Yep, just need to add environment(f) as the child of any f that is a function.
In general, we need to add Watch window like support to Variable Explorer (such that you can type arbitrary experssions and view them there, not just variables it scrapes from environments). Then you could do this, and a lot more besides.


Feature request -> Intellij IDE plugin for JSX

Been using JSX for about a year for our project, and it has been great so far. But IDE support for things like TypeScript have made it increasingly appealing to switch in orderer to keep high developer productivity as the codebase gets larger.
Was curious if anyone had plans to deliver proper IDE support in something like IntelliJ. JSX's static typing should make very amenable to really spectacular IDE support, which might arguably have a much bigger impact on productivity than continued language changes or compiler optimizations.
I realize that the team is busy and might not have available bandwidth to work on such a thing. But I figured I would ask anyways.
http://confluence.jetbrains.com/display/IDEADEV/Developing+Custom+Language+Plugins+for+IntelliJ+IDEA
Thanks!

+100. Having to switch between web storm and intellij idea is a pain in the butt for us full stack developers.

Maybe this should be done by Jetbrains?

Yes it should be done by jetbrains, but also there are open source plugins that others write and when you open up a JSX file it allows you to download.
So either way.  But a +1 for sure.  So far at least the JSX files show no parse errors when I map jsx as javascript files.

+1

+1

+1

+1

+1

I build a lot of in house tools to support our use of JSX in sublime text IDE since early 2015; like syntax highlight, theme support for JSX specific keywords, auto-complete snippets and build tools in python.
Here's the Sublime Text language file if anyone's interested.


Pop out tabs?

Not sure if this is a good thing or not, but someone requested the ability to see chat and games at the same time. Maybe a more functional way of doing this is by allowing people to pop out tabs so they can view any tabs at the same time

Want to back this issue? Post a bounty on it!

Lovely! Can they be "popped back in"?

You can by closing the Window... I thought about which button or how to popp them back in and i think it is most intuitive to use the close button. I might also enable dragging them back though :#

See also:
https://www.youtube.com/watch?v=q_n23Ah1ftQ
This would fix #256 as well?

And for the record, this feature has been requested 5 years ago and has most recently be targeted to Java 10 - so not gonna happen in the next few years.

You could drag them back in.

Well not really planned and I wanna clean up


Separate transactionIdPrefix for transactions started by a listener container

Problem:
As stated in the docs, when running multiple instances of an application, the transactional.id of consumer initiated transactions need to be the same. But it needs to be unique for each application instance when the transaction is started by the KafkaTemplate or @Transactional.
Overriding the KafkaTemplate's transactionIdPrefix can achieve a unique transactional.id for KafkaTemplate initiated transactions, for example:
kafkaTemplate.setTransactionIdPrefix(String.format("tx-%s-", UUID.randomUUID()));
But @Transactional still uses the default transactionIdPrefix + n transactional.id. Overriding the KafkaTransactionManager's transactionIdPrefix fixes this:
kafkaTransactionManager.setTransactionIdPrefix(String.format("tx-%s-", UUID.randomUUID()));
But the problem with this is it breaks the transactional.id of consumer initiated transactions. Consumer initiated transactions use the KafkaTransactionManager's transactionIdPrefix plus the zombie fenced suffix of .<group.id>.<topic>.<partition>. Making the transactional.id not the same for all instances anymore.
Proposed Solution(s):
Have a separate transactionIdPrefix configuration for the listener container. Looking at the code, the KafkaMessageListenerContainer sets a transaction suffix:
TransactionSupport.setTransactionIdSuffix(zombieFenceTxIdSuffix(record.topic(), record.partition()));
The DefaultKafkaProducerFactory checks if a suffix exists, then uses the prefix+suffix as the transactional.id. Maybe the prefix shouldn't be used anymore if a suffix exists. Or the new consumer prefix be used.
Another approach could be allowing TransactionSupport to hold a transactionId:
TransactionSupport.setTransactionId(zombieFenceTxId(record.topic(), record.partition())); Then the DefaultKafkaProducerFactory uses that if it exists before checking for a suffix.

Why not just configure 2 KafkaTransactionManagers - one for the container and one for @Transactional?
also, with 2.5 (and 2.5.0 brokers) and EOSMode.BETA, we no longer need the zombie fenced suffix.
https://docs.spring.io/spring-kafka/docs/2.5.2.RELEASE/reference/html/#exactly-once

Yes. Configuring two KafkaTransactionManagers, two ChainedKafkaTransactionManagers, and one KafkaTemplate is the workaround we did. I guess this is ok. Would have been great to just have one configuration parameter to do this.
I've read about EOSMode.BETA and it does solve the zombie fenced issue. Unfortunately, we can't upgrade our brokers to 2.5.0 yet.


Check-PSGalleryApiAvailability fails when network is available

Function that checks for PS Gallery API availability (link to dev branch here) is performing these three steps:
Test-Connection -ComputerName $microsoftDomain
Test-NetConnection -ComputerName $microsoftDomain
[System.Net.NetworkInformation.NetworkInterface]::GetIsNetworkAvailable()

Expected Behavior
If any of those commands returns $true check should be successful.
Current Behavior
If some command throws an error,  entire check will fail. Commands after failing one are not executed.
Possible Solution
We can catch exceptions thrown from these commands and proceed checking with next commands until we find connection or we do all three checks.
Something like:
if (command1available) {
  try {$connected = Do-Check1}
  catch {$connected = $false}
}

if ( -not $connected -and (command2available)) {
  try {$connected = Do-Check2}
  catch {$connected = $false}
}

if ( -not $connected -and (command3available)) {
  try {$connected = Do-Check3}
  catch {$connected = $false}
}

Or, another option would be to simply add -ErrorAction SilentlyContinue to each check as $connected is set to $false in advance.
Steps to Reproduce (for bugs)
I encountered this issue while playing with Azure Functions.
Exact steps to identify this issue is to simply run these commands inside custom PowerShell Azure Function
Find-Module PowerShellGet
Install-Module PowerShellGet -Scope CurrentUser

First one will work fine, second one will fail on described error.
To further narrow down the error, you may run these commands:
[System.Net.NetworkInformation.NetworkInterface]::GetIsNetworkAvailable()
Test-NetConnection -ComputerName 'www.microsoft.com' -InformationLevel Quiet

First one will return $true, while second one will throw an exception
[Error] Test-Connection : No such interface supported

Also, running Get-NetAdapter command inside of the Azure Function will give you:
Get-NetAdapter : Cannot connect to CIM server. Access is denied

Your Environment
$PSVersionTable

Name                           Value

----                           -----

PSVersion                      5.1.14393.2125

PSEdition                      Desktop

PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}

BuildVersion                   10.0.14393.2125

CLRVersion                     4.0.30319.42000

WSManStackVersion              3.0

PSRemotingProtocolVersion      2.3

SerializationVersion           <IP_ADDRESS>

Get-Module -ListAvailable PowerShellGet,PackageManagement

Directory: D:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands

---------- -------    ----                                ----------------

Binary     <IP_ADDRESS>    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-Packag...

Script     <IP_ADDRESS>    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}

    Directory: D:\Program Files (x86)\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands

---------- -------    ----                                ----------------

Binary     <IP_ADDRESS>    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-Packag...

Script     <IP_ADDRESS>    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}

Get-PackageProvider -ListAvailable

Name                     Version          DynamicOptions

----                     -------          --------------

msi                      <IP_ADDRESS>          AdditionalArguments

msu                      <IP_ADDRESS>

PowerShellGet            <IP_ADDRESS>          PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, I...

Programs                 <IP_ADDRESS>          IncludeWindowsInstaller, IncludeSystemComponent

P.S.
I can do PR if needed, but I'd like to hear opinions first. Maybe this check is not needed at all?

@iricigor thanks for the proposed solution! If possible, please submit a PR too.

Seems like Test-Connection throws an error even with -ErrorAction SilentlyContinue. So, I'd rather go with solution with try catch on all three commands.
But that, raises another question. catch {$connected = $false} is not really needed, as $connected is set to $false in advance. So, it is enough to have empty catch block, like catch {} all three times. I will just add comments after them (like this).
That's OK, or someone has better suggestion?

@iricigor I am fine with the empty catch blocks. Did you get a chance to try with -ErrorAction Ignore?

Yes, I tried -EA Ignore. It had the same effect at the end.

I see that the proposed solution is in place.
However I question the whole process.
What does the ability to ping www.microsoft.com have to do with checking a URL's API.
In our environment these checks add 45 seconds to every command that uses this function as they timeout trying to check for a nonexistent internet connection.
If your testing the API itself, the only thing that matters is, can you talk the required protocol to the target URL.
Why not just test that?

Closing as I believe this was resolved with PR #374 will re-open if this is still an issue


tour: [REPLACE WITH SHORT DESCRIPTION]

Context: https://go.dev/tour/concurrency/6
Change the title above to describe your issue and add your feedback here, including code if necessary
Unclear description "The default case in a select is run if no other case is ready."
but if we profile we this adding time we can see that both case1 and default are happens
package main

import (
	"fmt"
	"time"
)

func main() {
	tick := time.Tick(100 * time.Millisecond)
	boom := time.After(500 * time.Millisecond)
	for {
		n := time.Now()
		select {
		case <-tick:
			fmt.Println(n, "tick.")
		case <-boom:
			fmt.Println(n, "BOOM!")
			return
		default:
			fmt.Println(n, "    .")
			time.Sleep(50 * time.Millisecond)
		}
	}
}

2009-11-10 23:00:00 +0000 UTC m=+0.000000001     .
2009-11-10 23:00:00.05 +0000 UTC m=+0.050000001     .
2009-11-10 23:00:00.1 +0000 UTC m=+0.100000001 tick.
2009-11-10 23:00:00.1 +0000 UTC m=+0.100000001     .
2009-11-10 23:00:00.15 +0000 UTC m=+0.150000001     .
2009-11-10 23:00:00.2 +0000 UTC m=+0.200000001 tick.
2009-11-10 23:00:00.2 +0000 UTC m=+0.200000001     .
2009-11-10 23:00:00.25 +0000 UTC m=+0.250000001     .
2009-11-10 23:00:00.3 +0000 UTC m=+0.300000001 tick.
2009-11-10 23:00:00.3 +0000 UTC m=+0.300000001     .
2009-11-10 23:00:00.35 +0000 UTC m=+0.350000001     .
2009-11-10 23:00:00.4 +0000 UTC m=+0.400000001 tick.
2009-11-10 23:00:00.4 +0000 UTC m=+0.400000001     .
2009-11-10 23:00:00.45 +0000 UTC m=+0.450000001     .
2009-11-10 23:00:00.5 +0000 UTC m=+0.500000001 BOOM!
see output lines 3+4 - the time is the same, both case1 AND default happened.
If both cases could happen - why we don't have tick (case1) before the last line with BOOM (case2)?

See the page before were it says "It chooses one at random if multiple are ready. "


iOS: Link to System Preferences for app permissions when necessary

iOS has a quirk where an app can only display the native alert requesting a specific permission once. If the user declines, and then they retry the action that requires the permission (and on all subsequent retries), it will fail. Currently, we handle this by displaying, e.g., “Error: photo library permissions not granted.” Instead, let’s provide a button that will navigate to the Zulip page in System Preferences and prompt the user to grant it manually. (I know there’s a way to do this linking, as I’ve done it before, but I can’t remember exactly — I think we can use the Linking API from React Native.)

I think we can use the Linking API from React Native.)

Yes, it will look like:
Linking.openURL('app-settings:')

I am thinking of adding a button (in right hand side, and rename current ok button to cancel) in current alert to open system preferences.
@gnprice @chrisbobbe thoughts?

I am thinking of adding a button (in right hand side, and rename current ok button to cancel) in current alert to open system preferences.

For the UI: we should do whatever is the standard thing that Apple recommends to do here. So the next step for figuring out the right UI is to find the relevant Apple documentation and see what it says.

Yes, it will look like:

Linking.openURL('app-settings:')

Ah, it looks like there's a safer way to do it in RN v0.60.0 (#3548): https://github.com/facebook/react-native/commit/fa426cf05f65299420bd4e4dd0e7658e76a424ef

I am thinking of adding a button (in right hand side, and rename current ok button to cancel) in current alert to open system preferences.

I think a two-button alert, with "Cancel" on the left and "Open Settings" on the right would be in line with the Human Interface Guidelines. I wonder if we can produce the alert message itself by programmatically accessing the "usage string" for the particular permission: e.g., NSPhotoLibraryUsageDescription in Info.plist. Perhaps we should have a more generic message, so there's a clear path forward for translations.
Apple's doc on requesting access to protected resources doesn't have specific guidance on navigating the user to Settings on access attempts following the first.

facebook/react-native@fa426cf
Cool! wow, they have added support for Android as well. This will fix our Android case as well at the same time.

I think a two-button alert, with "Cancel" on the left and "Open Settings"

Agree 👍
Currently we get

as string in error. We can use this append Open setting to grant now.

And that RN upgrade is complete! So we should now be able to do this using that improved support.


feat: integrated feemarket

closes: #774

@vishal-kanna Could you please update + unify PR #782 with this, closing this (#781) down?
Having 2 non-synchronised PRs with relevant scope is redundant + hard to review otherwise.

Closing in favour of #782.


Refactor state/poll backoffs and timeouts

This PR attempts to improve timeout/backoff logic in the raft client. It does the following:

Split the Follower state into three separates and document all state transitions
Move fetch/election timer into respective EpochState implementations
Take into account backoffs when setting poll timeout

Plus a bunch of small fixes. Note that this builds off #390. I will rebase after it is merged.
Committer Checklist (excluded from commit message)

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

I am going to merge this to try and unblock the upstream PR. Any follow-ups we will save for after the merge.


Cloudflare rocket load + lazysizes + ajax content

Lazysizes not working with Rocket Load turned on (CloudFlare). When I turn off rocket load - everything works as expected. data-cfasync="true" and data-cfasync="false"  - not helping.

so problem was - optinmonster. Now server CloudFlare Rocek Load runs Automatic setting on.
Just added data-cfasync="false" to lazysizes and optinmonster - and everything works.
example of optinmonster code:

Is there anway workaround to get lazysizes working with CF Rocek Load?

Can you give me a full testcase, which shows, that it is not working?

I found the problem. Cloudflare redefines getElementsByClassName in its rocket.js, so lazyloadElems is never updated, it contains exactly, and forever, the images with the lazyload class that existed when lazySizes.init() was called, even if lazysizes already loaded them!

Oh that's not all. The result is then captured, and then, a list is specifically returned:
    capturedDocument.wrapNativeMethod('getElementsByClassName', function (b) {
      var c = capturedDocument.getNativeMethod('getElementsByClassName').call(a, b),
      d = [
      ];
      return f.forEach(c, function (a, b) {
        a && a.nodeName && 'script' == a.nodeName.toLowerCase() && (a = l.proxy(a)),
        d[b] = a
      }),
      d
    }),

@twidi
Nice work! About your findings, I'm just speechless.

It wasn't easy. I had the same problem as @TedAce but I cannot accept things that work then suddenly stop working in production.
So I went through your script in debugging mode, step by step.
At first, I forgot that getElementsByClassName was "live" so I didn't even understand how your script could work.
It's your script behavior that told me to check about this "dynamic" feature, confirmed by a google search.
Then I said myself "ok so I should have something that change this behavior".
I didn't thought one single second that it could be rocket.js from CloudFlare.
But when I checked it in the console, I saw the light :)
I still had hard time to go through their script which is kind of obfuscated.
Then everything was clear.
To let you know about my contact with CloudFlare:

on twitter, one of their developer told me it was the first time someone mentioned this in 5 years ( https://twitter.com/twidi/status/721105454911328256 )
on the support ticket, a support guy just told me:

Rocket Loader is considered Beta because it’s an experimental feature that modifies the loading and execution flow of Javascript. While efforts are taken to increase Rocket Loader’s compatibility with third-party Javascripts, not all scripts work with this feature.

I still think it's very bad to do this so I'll try to push them to correct their script to have the normal behavior.
One solution in the script I may made for myself, is to reload lazyloadElems at the begining of the checkElements function.
PS: it took me five minutes to write this post describing my finding, but a few hours to really go through the whole process ;)

Last news from the support ticket

Working with Marc on this we appreciate your feedback and are always trying to improve our system.
Rocket Loader tries to mimic the functionality of http2's ability to load resources so in a sense it is being depreciated as http2 adoption becomes more relevant. However we are trying to improve rocket loader.

So if your expected public mainly uses recent browsers with spdy or http2 (like for me) rocket may be deactivated without losing anything.

Almost two years after... The bug is still in their rocket js...


Updated examples

Removed aiohttp.ProxyConnector from examples because it was dropped from aiohttp:
http://aiohttp.readthedocs.io/en/latest/changes.html?highlight=proxyconnector#rc1-2017-03-15

Thank you @gabrielgradinaru!


Is there a way to make HFO deterministic?

Hi @mhauskn , I set the same --seed for each game, used --fullstate, and took the same action at each timestamp. I got the same initial state for each game, but the following states were different. Here is the code I used for test:
state = hfo.getState() # initial state s_1
print(state)

hfo.act(DASH, 4, 0) # a_1
hfo.step()
state = hfo.getState() # s_2
print(state)

hfo.act(DASH, 4, 0) # a_2
hfo.step()
state = hfo.getState() # s_3
print(state)

hfo.act(DASH, 4, 0) # a_4
hfo.step()
state = hfo.getState() # s_5
print(state)

The outputs for 3 games are as follows:
GAME 1:
[-0.00783491  0.304353    0.         -0.60117686  0.309754   -1.
 -0.07788175 -0.12915528 -0.717829   -2.         -1.          1.        ]
[-0.00783491  0.304353    0.         -0.60117686  0.309754   -1.
 -0.07788175 -0.12915528 -0.717829   -2.          1.          1.        ]
[-0.00706983  0.30430746  0.         -0.60117686  0.309754   -1.
 -0.0786112  -0.12924314 -0.7176385  -2.          1.          1.        ]
[-0.00602221  0.30428338  0.         -0.60117686  0.309754   -1.
 -0.07959193 -0.12937814 -0.71738756 -2.          1.          1.        ]

GAME 2:
[-0.00783491  0.304353    0.         -0.60117686  0.309754   -1.
 -0.07788175 -0.12915528 -0.717829   -2.         -1.          1.        ]
[-0.00783491  0.304353    0.         -0.60117686  0.309754   -1.
 -0.07788175 -0.12915528 -0.717829   -2.          1.          1.        ]
[-0.00704449  0.30435562  0.         -0.60117686  0.309754   -1.
 -0.07861197 -0.12926483 -0.7176455  -2.          1.          1.        ]
[-0.00590158  0.3042941   0.         -0.60117686  0.309754   -1.
 -0.07969844 -0.12939876 -0.7173623  -2.          1.          1.        ]

GAME 3:
[-0.00783491  0.304353    0.         -0.60117686  0.309754   -1.
 -0.07788175 -0.12915528 -0.717829   -2.         -1.          1.        ]
[-0.00706983  0.30436897  0.         -0.60117686  0.309754   -1.
 -0.07858217 -0.12926644 -0.71765506 -2.          1.          1.        ]
[-0.00605714  0.30442786  0.         -0.60117686  0.309754   -1.
 -0.07949132 -0.12942815 -0.71743464 -2.          1.          1.        ]
[-0.0049333   0.3045268   0.         -0.60117686  0.309754   -1.
 -0.08048397 -0.12962067 -0.71719897 -2.          1.          1.        ]

I also noted another problem. At the initial state s_1, I let the agent take action DASH(20,0), but the following state s_2 is the same as s_1 in GAME 1 and GAME 2.

I was unable to make hfo deterministic. I think the underlying rcssserver
is the source of the stochastic behavior.
On Fri, Jul 27, 2018, 6:30 PM Hongjie<EMAIL_ADDRESS>wrote:

Hi @mhauskn https://github.com/mhauskn , I set the same --seed for
each game, used --fullstate, and took the same action at each
timestamp. I got the same initial state for each game, but the following
states were different. Here is the code I used for test:
state = hfo.getState() # initial state s_1
print(state)
hfo.act(DASH, 4, 0) # a_1
hfo.step()
state = hfo.getState() # s_2
print(state)
hfo.act(DASH, 4, 0) # a_2
hfo.step()
state = hfo.getState() # s_3
print(state)
hfo.act(DASH, 4, 0) # a_4
hfo.step()
state = hfo.getState() # s_5
print(state)
The outputs for 3 games are as follows:
GAME 1:
[-0.00783491  0.304353    0.         -0.60117686  0.309754   -1.
-0.07788175 -0.12915528 -0.717829   -2.         -1.          1.        ]
[-0.00783491  0.304353    0.         -0.60117686  0.309754   -1.
-0.07788175 -0.12915528 -0.717829   -2.          1.          1.        ]
[-0.00706983  0.30430746  0.         -0.60117686  0.309754   -1.
-0.0786112  -0.12924314 -0.7176385  -2.          1.          1.        ]
[-0.00602221  0.30428338  0.         -0.60117686  0.309754   -1.
-0.07959193 -0.12937814 -0.71738756 -2.          1.          1.        ]
GAME 2:
[-0.00783491  0.304353    0.         -0.60117686  0.309754   -1.
-0.07788175 -0.12915528 -0.717829   -2.         -1.          1.        ]
[-0.00783491  0.304353    0.         -0.60117686  0.309754   -1.
-0.07788175 -0.12915528 -0.717829   -2.          1.          1.        ]
[-0.00704449  0.30435562  0.         -0.60117686  0.309754   -1.
-0.07861197 -0.12926483 -0.7176455  -2.          1.          1.        ]
[-0.00590158  0.3042941   0.         -0.60117686  0.309754   -1.
-0.07969844 -0.12939876 -0.7173623  -2.          1.          1.        ]
GAME 3:
[-0.00783491  0.304353    0.         -0.60117686  0.309754   -1.
-0.07788175 -0.12915528 -0.717829   -2.         -1.          1.        ]
[-0.00706983  0.30436897  0.         -0.60117686  0.309754   -1.
-0.07858217 -0.12926644 -0.71765506 -2.          1.          1.        ]
[-0.00605714  0.30442786  0.         -0.60117686  0.309754   -1.
-0.07949132 -0.12942815 -0.71743464 -2.          1.          1.        ]
[-0.0049333   0.3045268   0.         -0.60117686  0.309754   -1.
-0.08048397 -0.12962067 -0.71719897 -2.          1.          1.        ]
I also noted another problem. At the initial state s_1, I let the agent
take action DASH(20,0), but the following state s_2 is the same as s_1
in GAME 1 and GAME 2.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/LARG/HFO/issues/67, or mute the thread
https://github.com/notifications/unsubscribe-auth/AABNOda8UWbxDJYmuQpbBjKbPAnda64Qks5uK6KpgaJpZM4Vky3R
.

https://github.com/LARG/HFO/blob/269c6b694e86ee5266c897f2727f2e0b7d5f10a0/bin/HFO#L68

I think I can make hfo deterministic now. Just add several lines
'server::player_rand=0 ' \
'server::ball_rand=0 ' \
'server::kick_rand=0 ' \
'server::wind_rand=0' \

to serveOptions in ./bin/HFO https://github.com/LARG/HFO/blob/269c6b694e86ee5266c897f2727f2e0b7d5f10a0/bin/HFO#L68.

This is awesome! I would welcome a pull request that added an HFO flag to
switch on/off determinism.
On Tue, Jul 31, 2018 at 3:05 PM Hongjie<EMAIL_ADDRESS>wrote:

I think I can make hfo deterministic now. Just add several lines
'server::player_rand=0 '
'server::ball_rand=0 '
'server::kick_rand=0 '
'server::wind_rand=0' \
to serveOptions in ./bin/HFO
https://github.com/LARG/HFO/blob/269c6b694e86ee5266c897f2727f2e0b7d5f10a0/bin/HFO#L68
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/LARG/HFO/issues/67#issuecomment-409383616, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AABNOdUELQ0ZZPCLh3nUTfVrqvOgigjQks5uMNSrgaJpZM4Vky3R
.


Api Photo Card

Added a scenario to Train/ApiCallbacks for photo cards.
Fixed all "throws" in the test code so they use "new Error()" instead of just throwing a string.

:tada: This PR is included in version 0.361.5 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Rename master branch to main

Also have to change references to the branch in .travis.yml, README, and CONTRIBUTING. Double check any other markdown files as well - sometimes links have the branch name in them.

This includes changing this:
https://github.com/xmidt-org/seshat/blob/9fcdda9a57fafb5c6bfabc4edb8ff06d3a611bbb/.travis.yml#L32