Affinity / Anti-affinity for LBEX Instances and Kubernetes Services

Currently every LBEX instance attempts to provide an endpoint for every service in the Kubernetes cluster that it is connected to unless the --service-name <name> flag is provided.
This limits the number of services that can exist on a given port to one service per cluster, or requires that every overlapping service have a stand alone LBEX instance, or instances, that provide the service name argument.  However, because there is no anti-affinity, other LBEX instances run without the service name flag will still attempt to proxy traffic causing potential port collisions.

Initially thought about trying to provide multiple network interfaces and/or multiple IP address per NIC on the LBEX host (physical and virtual).  This becomes increasingly difficult to scale as there will always be a physical limit on the number of NIC and the acquisition and management of multiple IP addresses is beyond the scope of LBEX.
The best course is to provide a mechanism to segregate services with port collisions via some affinity / anti-affinity notation.

Current result when services overlap on a port:
2017/04/25 05:47:11 [emerg] 607#607: duplicate "9090" address and port pair in /etc/nginx/conf.d/default-nc-pod3-svc.stream.conf:9
E0425 05:47:11.375991       1 configurator.go:154] error on reload adding or updating service "default-nc-pod2-svc": "Reload: Invalid nginx configuration detected, not reloading: Command nginx -t stdout: \"\"\nstderr: \"nginx: [emerg] duplicate \\\"9090\\\" address and port pair in /etc/nginx/conf.d/default-nc-pod3-svc.stream.conf:9\\nnginx: configuration file /etc/nginx/nginx.conf test failed\\n\"\nfinished with error: exit status 1"

With updates and pool selector annotation added:
I0425 06:00:41.737672       1 task_queue.go:89] syncing: default/nc-pod2-svc
I0425 06:00:41.737719       1 controller.go:416] getService: ignoring pool selector: web-service, service pool: netcat, name: nc-pod2-svc


"null" values not supported

When unflattening from json string, and a json pair has a null value:
{"string":null}
it is deserialized into a "LV Variant" data type regardless of the LV data type you pass into the function. this causes an error when you then try to covert using the "Variant to data" primitive. This issue exists for all data types. I would expect that the default value would be returned.
Here is an example of this in LV

This issue is discussed in length here http://stackoverflow.com/questions/21120999/representing-null-in-json
I would recommend fixing this issue as follows (this would nullify my proposed fix for #12):

I believe that addressing this will also address #7 and #12.
Note that i'm actively seeing this issue while writing a LV jira api wrapper.

There isn't a single best way to handle nulls in LabView. If the library automatically converts to the default data for that type, then the calling function cannot distinguish between e.g. {"a":""} and {"a":null}. In many of cases (especially with databases), that is an important distinction.
The built-in LabView JSON parser lets the caller choose between returning the default value and throwing an error. It's probably wise to follow the same model as the NI function and let the caller decide how to handle it.

Understood there are special considerations when working with databases.
My main issue is that the unflatten function takes in a user-specified data type and outputs a variant version that doesn't match that data type. I'm not too concerned with the database case because it doesn't work in the more general use case.

Fixed in build 1.0.5. by defaulting to deserialize null values to default values. Optionally null values can be deserialized into empty variant / empty array / not a path values.

The implementation was changed in release 1.1. The current implementation deserializes all null values to values that best match null values for each data type. Naturally LabVIEW types don't have null values so this is somewhat of a compromise. But guarantees that the output is always of the right type instead of throwing an error.  There is an option Nulls as Defaults which when true returns user specified default values instead.
To be able to distinguish between null values and non-null values one has to deserialize the value into a variant. For example if you have a JSON object where one of the elements is a string and that string can get null values, then create a LabVIEW cluster where you replace the string with a variant. There is a VI Is Null that can be then used to check if the value is null. If it is not null, then either Adapt to Type or Variant to Data  can be called to get the value as the type you intended.

This seems like a good approach.


Update org.nodejs pkg to 4.4.0

-- https://nodejs.org/en/blog/release/v4.4.0/

Thank you for the contribution. It was merged directly as e56fefa66b5685d83c49930ad58a1775925ef86b to keep commit history cleaner. Your contribution is still credited to you.


[AutoTVM] Enhance tuning space of split

This PR enhances the tuning space of split scheduling primitive. Originally, it only has two policies: "all" for all divisible factors of the dimension length; "candidate" for manual entities. The issue is that for irregualr shape like prime numbers or product of prime numbers (e.g., 229x229 in Inception V3), the "all" policy has less opportunities to achieve a better performance.
In this change, split now has four policies:

"factors" for the origianl "all".
"power2" for all less or equal power-of-two numbers.
"verbose" for the union of "factors" and "power2".
"candidate" for the original "candidate".

Note that we will still use "factors" policy as the default one so merging this PR will not change performance of TOPI ops at all, but users can have an option to search more values as they want, and this could benefit to the follow-up dynamic shape implementation.
I use Inception V3 to illustrate the benefit of using "power2" policy. Here is the result of 44 tasks  of Inception V3 tuned with "factors" (default) and "power2" on AWS EC2 c5.9xlarge. For each task, the n_trial is set to 100 and minimum repeat ms is set to 1000. In summary, 22/44 tasks achieve better performance with "power2" policy, and the average speedup over "factors" is 1.03. Note that the speedup is more obvious in later layers which have more irregular shapes.

Orig (GFlop/s)
Power2 (GFlop/s)
Speedup

563.39
559.96
0.99

822.92
820.5
1.00

787.27
861.51
1.09

629.48
530.76
0.84

839.51
940.14
1.12

1125.07
1189.68
1.06

938.41
924.16
0.98

708.54
795.64
1.12

915.48
867.44
0.95

691.18
631.62
0.91

1401.51
1241.6
0.89

1243.3
1126.36
0.91

1135.83
916.01
0.81

1415.87
1187.75
0.84

738.55
685.24
0.93

1214.39
1104.74
0.91

1166.35
1017.5
0.87

1001.36
916.12
0.91

1334.92
1102.88
0.83

647.49
638.22
0.99

1086.77
955.19
0.88

1163.08
1033.46
0.89

715.03
752.06
1.05

527.43
422.63
0.80

476.56
440.67
0.92

417.25
411.61
0.99

1465.72
1328.09
0.91

1665.03
1527.72
0.92

467.34
428.14
0.92

1898.54
1604.38
0.85

538.29
548.46
1.02

1333.45
1553.18
1.16

1735.57
1855.26
1.07

395.53
510.74
1.29

883.57
2326.81
2.63

586.29
612.74
1.05

596.6
626.83
1.05

595.78
632.98
1.06

1215.91
1174.21
0.97

728.3
789
1.08

721.63
835.6
1.16

571.13
658.04
1.15

465.5
756.41
1.62

@vinx13 @kevinthesun @icemelon9 please help review this PR.

If we use verbose mode, we should get most performance improvement for inceptionv3?

Maybe. I did see the schedule AutoTVM found for some shapes (not in Inception V3) uses a combination of factors and power of two. However, the tuning space grows rapidly and it requires longer search time or smarter search algorithm.

Thanks @comaniac @kevinthesun This is merged

Hi @comaniac , this is really interesting change. I have not read all the code, but may I ask that if the PR changes the split representation such that the highest split is left as -1, for example ["tile_co", "sp", [-1, 8]]? I have some schedules extracting split factor like CO, CI = cfg['tile_co'].size, which seems to be broken by this PR.
PS. I didn't verify all the patches, but the change leading to my concern is among these below.
9e4f07b4695a8849590cdd46de662e3fa273d59b Enable miopen transpose convolution and fp16 support (#3952)
0482623e9c20518fac8e6ceb34a6552f674fed9b [Relay][TensorFlow] Add support for SquaredDifference (#3930)
da039794cfc7c7d94855b0dc6f93248f13222c7f [AutoTVM] Enhance tuning space of split (#3949)
e35e1cc2e8d6b14aae5c888b12205b85afc80bb2 trivial (#3954)
4b431c67fdc55062afa682fe3d4816bd02b9f7ec 1) Add EQ op to the deduce_bound and add unittests for the same (#3775)
2536465c2e274273344c5e67337fd3b4c252ec2f Vulkan2 Runtime API (#3849)
06aecc60ea55e10cc029ec4c2f3ff2fcc811c802 [VTA] RPC path update. (#3924)

Yes, this PR also changes the leftmost split factor to -1, but it performs exactly the same behavior as before, because AutoTVM will automatically replace -1 with L/prod(others) when applying the split factor. The reason I made this change is that we are trying to apply a schedule config from one shape to another. For example, assuming we have a config ['tile_x', 'sp', [4, 8]] from a shape with length 32, and we wish to apply it to another shape with length 16. In this case, ['tile_x', 'sp', [4, 8]] is inapplicable, but ['tile_x', 'sp', [-1, 8]] is fine, as it implies ['tile_x', 'sp', [2, 8]].
Sorry if this change breaks your schedule. Since CI was passed before merging this PR, I suppose this change should not afffect any schedule in TOPI.

The reason I made this change is that we are trying to apply a schedule config from one shape to another.

Interesting feature, which came into my mind that I saw the recorded split factors. I think the side effects are worth... Thank you.


udf example

goal is to keep user udf experience simple, while not losing ability of important pipelining optimization.
initially thought of using ast, but seems like bytecode is much easier to handle.

This change is

closing this since its not really a pull request, but a request for comment.


Add more granual operator links to README.md

In GitLab by @evanplaice on Jan 18, 2019, 23:07
Update README with more detailed links to the operator descriptions

In GitLab by @evanplaice on Jan 18, 2019, 23:28
assigned to @evanplaice

In GitLab by @evanplaice on Jan 18, 2019, 23:28
changed title from {-10-} to {+Add more granual operator links to README.md+}

In GitLab by @evanplaice on Jan 18, 2019, 23:28
changed the description

In GitLab by @evanplaice on Jan 18, 2019, 23:28
Added in 0.4.3

In GitLab by @evanplaice on Jan 18, 2019, 23:28
closed


[Bluesky Web App] Posting links highlights wrong characters/non link text as a link

While typing out a post, if I post a link (example, google.com), the link highlighting bleeds out into other text. This isn't shown in the actual post, only while typing, or sometimes doesn't show up as a link. Examples below:

To reproduce:
For non-highlighted link:

Write out text
Paste the link, embed or not
Write something before the link, and don't put a space at the end.

Result:
The link will be registered as normal text.
For highlighted link bleed:

Write out text
Past the link, embed or not
Write text above/below the link, and leave a space before the end of sentence/text.

Result:
The link, depending on how many times one presses enter above the link, will lose the blue highlight, and transfer it on text above/below.
Platform:
Linux (Arch, 6.4.12-zen kernel)
Browser: Firefox 117.0 64-bit.

Related: https://github.com/bluesky-social/social-app/issues/1353

Related: #1353

Didn't see it when searching, I'll remove this post then. Thanks on letting me know!

Hi, can I work on this? I'd like to fix this issue.

Feel free to submit a PR!

@gani1000 @pfrazee this may also be related to the encoding of newline characters.
In the first example, it appears the newline isn’t recognized and so the highlight never triggers.
In the second example, the newlines in the middle of the post are ignored, so the highlight starts where the URL should be if the newlines didn’t exist.

@Hydroponic-Gardener I commented on the other issue, but same thing here: I can't reproduce this 🤔
I know I've seen this kinda thing in the past but perhaps we bumped something and resolved it? Are you able to reproduce this?

In the first example, it appears the newline isn’t recognized and so the highlight
never triggers.

Yes, that also happened to me at first now that I wanted to test if it was solved: at first the URLs were just black text.
But then after adding some other URLs (because I wanted to make a screenshot), the original issue was back.

Oooh ok, saw in the other ticket that you were using Shift + Return. Apologies, wasn't thinking about the significance of "carriage return" :P
So yep, this is sorta related to character encoding, and it should be fixed by https://github.com/bluesky-social/social-app/pull/1544, which will go out in the next release. Tested these cases locally with that branch and it appears to work fine.
I'll keep this open until then though and we can confirm before closing 👍 thank you all for your help! Appreciate your patience.

wasn't thinking about the significance of "carriage return" :P

am old enough to know what "carriage return" refers to  ;-)
(also, English is not my first language)


Add testing tool and sidecar service for EncKeyRotation

This patch implements the sidecar service for
EncryptionKeyRotation and registers it
A new option is added to csi-addons test tool
to test the EncryptionKeyRotation operation

Note to reviewer: This PR will cover everything related to implementing EncryptionKeyRotation.
I have separated changes into separate commits to make it easy to review. I will squash all the commits before merging.
Regards

Note: This PR has been rebased to https://github.com/black-dragon74/kubernetes-csi-addons/tree/migrate-go3 as kubebuilder (latest version) doesn't allow creation of resources with old layout.
Once https://github.com/csi-addons/kubernetes-csi-addons/pull/606 is merged, I will rebase it with main.
Regards

@black-dragon74 quite a few conflicts need to be addressed now :disappointed:

@black-dragon74 quite a few conflicts need to be addressed now 😞

I was expecting it 😂 . Taking a look
Regards

I have tested the csi-addons tool along with the controllers for key rotation. Everything works as expected. The support for RWX volumes shall be added later (see commit msg).
Regards

@black-dragon74 please fix the CI issue

It (git diff) is failing as the protoc has been updated to 3.20.2 and the code in the current main branch used 3.19.x
IG this is expected.

@black-dragon74 please fix the CI issue

It (git diff) is failing as the protoc has been updated to 3.20.2 and the code in the current main branch uses 3.19.x
IG this is expected.

We can't merge a PR if CI fails, please update the CI version here https://github.com/csi-addons/kubernetes-csi-addons/blob/1a1dd5f6e469f99eeb2f55ad18069f83698657c7/.github/workflows/test-golang.yaml#L27 to match the expectation

It would be much easier to review if you can split this huge commit into several ones:

It was exactly like that (split into 7 commits). I will split it again :(

documentation + example under doc/ directory (missing completely)

Will add it in a future PR.

@mergifyio rebase


No response when running moco on a remote server

I am running moco on a remote server and moco will be start by  remote CMD commands.
eg:
CMD/C java -jar D:/GitLocal/CorpPlatform/src/mock/static/globalconfig/moco-runner-0.10.2-standalone.jar http -p 12306 -gD:/GitLocal/CorpPlatform/src/mock/static/globalconfig/api.json
But waiting without any  response,If I login the remote server ,and execute cmd manually ,I can get response immediately.
netstat on the server :
TCP    <IP_ADDRESS>:12306          <IP_ADDRESS>:0              LISTENING       6540
TCP    <IP_ADDRESS>:12306        <IP_ADDRESS>:55760   ESTABLISHED     6540
TCP    <IP_ADDRESS>:12306        <IP_ADDRESS>:55761   ESTABLISHED     6540
Could you please give me some suggestions?

Have you ever checked your network configuration? e.g. firewall.

I think this has nothing to do with the network.I run moco manually,but request from my client,
the only difference is how I start moco command, start by web server ,without any response just waiting and no error message.  login the remote server start moco, and send request from my client works well.
I doubt maybe it's matters with Authorization?
the web server running on a server 2008+Apache+django

update config file during running... can't load config file... aother problem...


Add "Low-Level Internals" to documentation

Feedback welcome, but I think this would be absolutely incredible to have.

This is described at lower level classes .


Conditionally extend MAX_RANKs to 4-byte integer range for PostgreSQL

MAX_RANK_VALUE and MIN_RANK_VALUE are set to MySQL's 3-byte MEDIUMINT range by default. However, as PostgreSQL doesn't have a 3-byte integer data type and Postgres users are forced into allocating a 4-byte integer anyway, we may as well use the full 4-byte range to reduce the chance of potentially expensive rebalancing.
For reference:
Signed 4-byte INTEGER in PostgreSQL: -2147483648 to +2147483647
Signed 3-byte MEDIUMINT in MySQL: -8388607 to +8388607
SQLite3 allocates space according to size of each value, so we'll stick with the defaults.

Closed in favor of https://github.com/mixonic/ranked-model/pull/109. @bnauta sorry there is so much effort that was set aside after this, but thank you for the contribution

@mixonic np!


Second test

Second test

Hi @kanglant This PR is in draft, any update on this? Please. Thank you!


Web App is Unreachable

We've been using better-vsts-npm-auth for over a year now, but after running the command today we're receiving a 403 error that the site is down.
https://stateless-vsts-oauth.azurewebsites.net/

Yep, same

@zumwald do you know the cause of this?

Looks like a glitch caused all the resources in my azure subscription to be deleted. I will look into it within the next 24 hours.


Improve / write docs

The state of the documentation in this crate is not as it should be. This is a task is also ideal for new contributors. Most of the time the docs of the wrapped gdal-sys method will be enough to derive a methods doc.

@jdroenner By this:

Most of the time the docs of the wrapped gdal-sys method will be enough to derive a methods doc.

are you suggesting (as a contribution) the gdal doxygen docs be copied over into the rust code?

I just rebuilt the documentation with bindgen version 0.59.2, and it seems a lot more documentation is getting injected than what's in docs.rs:

I remember a bindgen "feature" causing comments to be included in the generated bindings or not based on the location of the GDAL headers.


Better support for notebooks

We're working on adopting ploomber as our pipeline management technology. In early experimentation, I've found that many of the best inversion of control features of ploomber don't seem to be supported for notebooks. I find this odd because of the amount of attention and ink spent on integrating jupyter notebooks.
Examples (in order of importance):

Serializer and deserializer don't appear to be supported for notebook upstreams and products. They seem to always be paths that the notebook author must handle.
Clients don't appear to be supported for notebooks. It's only possible to manually instantiate them in the notebook.
Injection substitutes absolute paths. This results in multiple editors accidentally fighting over the upstream and product cells in source control even if no real edits are made to the notebook.

The extensions you've added to make a jupyter[lab] server work well with plain 'ol .py files are very useful but I was disappointed in the small subset of features available to notebook tasks. This breaks the most powerful features of ploomber when using notebooks. Pure python tasks can use clients and serializers to improve testability and make large changes possible with tiny reliable changes to the pipeline spec. You can develop using human-readable formats and the local filesystem and then use binary formats and cloud storage in production with a couple of lines of yaml when using pure python but this is not possible with notebooks. Further, ploomber teaches certain concepts and expectations around upstreams and products when using python tasks that are not valid when using notebooks.
Suggestion: abstract upstream and product into python objects you import instead of injecting dictionaries of strings into notebooks.
# %% tags=["parameters"]
# add default values for parameters here

# %% tags=["injected-parameters"]
# Parameters
upstream = {
    "input": "\some\wild\absolute-path\input.csv"
}
product = {
    "data": "\some\wild\absolute-path\data.csv",
    "nb": "\some\wild\absolute-path\nb.csv",
}

# %%
df = pandas.read_csv(upstream['input'])
result = do_some_stuff(df)
result.to_csv(product['data'])

could become:
# %% tags=["parameters"]
# add default values for parameters here
upstream, product = {}, {}

# %% tags=["injected-parameters"]
# Parameters
upstream, product = ploomber.nb.get_context() # knows the current state of the pipeline and uses it to populate upstream and product

# %%
df = upstream['input'] # deserializer and client populate the object instead of the path
result = do_some_stuff(df)
product['data'] = result # serializer and client encode and store the result instead of the notebook doing it using a path

Wrong repo


GUI does not start with new pyside2

OS: Linux
Distribution: Arch
Versions:

syncplay - 1.6.3-1
python - 3.8.0-1
pyside2 - 5.13.2-2

After a full system update, where python did the jump from 3.7.4-2 to 3.8.0-1, pyside2 also updated with support for it. After that, when trying to use syncplay, it does not work anymore.
Stacktrace:
Traceback (most recent call last):
  File "/usr/bin/syncplay", line 16, in <module>
    from syncplay.clientManager import SyncplayClientManager
  File "/usr/lib/syncplay/syncplay/clientManager.py", line 2, in <module>
    from syncplay import ui
  File "/usr/lib/syncplay/syncplay/ui/__init__.py", line 9, in <module>
    from syncplay.ui.gui import MainWindow as GraphicalUI
  File "/usr/lib/syncplay/syncplay/ui/gui.py", line 117, in <module>
    class AboutDialog(QtWidgets.QDialog):
TypeError: 'Shiboken.ObjectType' object is not iterable

Second minor issue: this issue also happens with the --no-gui option even tho the issue is with GUI libraries. Is there a way for those to not be loaded at all if the option is specified? I had to uninstall pyside2 to be able to start syncplay in no gui mode.

Well, it seems the issue is more with pyside2 and not really fixable here.
The update which i thought was python 3.8 support seems to only have moved libs to 38 folders but not actually add the support. A bug with Qt has been made after i first encountered the issue and didn't find anything online.
Link: https://bugreports.qt.io/browse/PYSIDE-1140
Closing this and will have to wait for an update.

You can set QT_PREFERRED_BINDING=PyQt5 but Syncplay doesn't seem to be using it.
At least the CLI works that way.

As an update, the upstream issue has been closed, but there hasn't been a release with the fix yet. The targeted version of the fix is 5.14.

And its finally on the main repos.

Sorry to necropost this.. but I am having this very issue 4 years later. How could it be possible since it was fixed? My syncplay GUI does not open on latest version on my Arch machine..

I suggest creating a new issue with your details, i.e. syncplay version, qt version, pyside version, traceback, etc.


python312Packages.eth-account: 0.9.0 -> 0.13.3

Description of changes
This bumps the version of this library from 0.9.0 (2023-06-07) to 0.13.3 (2024-08-28).
It is a naive bump. Importing it appears to work, but the setup.py file added a requirement on the library ckzg, which is not found in nixpkgs and has only been mentioned in https://github.com/NixOS/nixpkgs/pull/337542
Closes #341204
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I was suspecting that. The build and import worked without issue, I guess it's lacking some tests to catch such issues 🤔

Blocked by https://github.com/NixOS/nixpkgs/issues/341218

thanks... I wish the movement of these packages could be faster.

The main issue here is the new dependency on ckzg, which I don't know how to package...

https://github.com/NixOS/nixpkgs/pull/342749/files

now we have also this: https://github.com/NixOS/nixpkgs/pull/342749/files

Looks like they are packaging ckzg as well, looking forward to have it merged !


Fixed resource compiler to only call us_tempfile function when not in append mode.

Avoids file drool on posix platforms

looks good. ship it!


Support getting magic string length

This is useful for getting the length of a MagicString or Bundle without having to fully serialize the string.

Maybe this should be a property instead of a method? Shouldn't be terribly difficult to update it for every mutation. Though, it's only an issue if you access the length often.


MWAA variables cannot be accessed in GUI if set in UI and vice-versa

It appears that when the FERNET_KEY is set in entrypoint.sh, it is not persisted so the airflow CLI cannot access variables that are set for MWAA in the web UI. The FERNET_KEY should be persisted to airflow.cfg so that both the CLI and the UI can use the same key across sessions.

Possibly related to #29


Fix: Update typo in docker-add-drivers.mdx

Fixes a simple typo we saw while following the tutorial: make take a while -> may take a while
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Fixed the pr title


predict output without labels

Hi ,
I am trying to run several images without labels as I want to run video further using .h5 file.
Getting error while running predict_DRBox.py
data_generator/object_detection_2d_data_generator.py", line 547, in generate
if np.any(batch_y[i][:,w] <= 0) or np.any(batch_y[i][:,h] <= 0):
TypeError: 'NoneType' object is not subscriptable
How do I solve this error?
Thanks in advance.

Hello,
If you don't give any labels as input for the file predict_DRBox.py it should not give this error. What did you give as input for the prediction ?

Hello,
If you don't give any labels as input for the file predict_DRBox.py it should not give this error. What did you give as input for the prediction ?

Actually I want to run in a video and the model is trained successful, how to predict in a video?It would be great if it runs in a video and as video file don't have labels.

The generator is not supposed to be used on videos. You can either modify the data generator so that it can take as input a video, or create an image for each frame and run the prediction on that.

Let me know if you succeed on the prediction, I would be more than happy to see the results !

The generator is not supposed to be used on videos. You can either modify the data generator so that it can take as input a video, or create an image for each frame and run the prediction on that.

Thanks for the reply.
Can you please give me some reference??

I recommend you to look at OpenCV, it is a great python library to work with videos and images.


In install.js, calling move fails

I've been trying out njre 0.2.0.  Looks like file is null when move is called, and it fails.   The package does not get extracted

I don't currently plan to update this package myself as I'm not using it and I don't think a lot of people are either, but I'd accept a PR to fix this bug.


name of managed service identity for a slot

I can't seem to find out the name of the managed service identity for an app service slot.

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

ID: f57d3177-ce9e-ebfa-03a7-45beb8ca3212
Version Independent ID: a59df23d-f3ac-9809-61d3-5741e31f020a
Content: Managed identities - Azure App Service
Content Source: articles/app-service/overview-managed-identity.md
Service: app-service
GitHub Login: @mattchenderson
Microsoft Alias: mahender

Hi @Boaz101, Thanks for the feedback! We are currently investigating and will update you shortly.

Take a look at MicrosoftDocs/azure-docs#51437 @Boaz101 and let us know that helps.

Yes, thank you. Can this be added to the documentation to make it easier to find?
From: Ryan Hill<EMAIL_ADDRESS>Sent: Monday, May 11, 2020 5:32 PM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Boaz101<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] name of managed service identity for a slot (#54128)
Take a look at #51437https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F51437&data=02|01|mterhaar%40campuslabs.com|4c037b81e1574ffbfe5f08d7f5f2b7db|809fd6c8b87647a9abe28be2888f4a55|0|0|637248295138205694&sdata=fAVwieMBwT%2F1OJwq%2FKVMqPaTEw3Yx7jrzaWOGI32FwA%3D&reserved=0 @Boaz101https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBoaz101&data=02|01|mterhaar%40campuslabs.com|4c037b81e1574ffbfe5f08d7f5f2b7db|809fd6c8b87647a9abe28be2888f4a55|0|0|637248295138205694&sdata=XNfFPWm9MERK0oBtoCmgIwajR%2BGe4U7frhZtZrBKWjo%3D&reserved=0 and let us know that helps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F54128%23issuecomment-626976633&data=02|01|mterhaar%40campuslabs.com|4c037b81e1574ffbfe5f08d7f5f2b7db|809fd6c8b87647a9abe28be2888f4a55|0|0|637248295138215692&sdata=V%2Bw4KfzygwRHhlLKlDOw9zvD1rII5bVzogeByqdTqwk%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAC3BU5MWYKVSDZQRVBAUXATRRBVEHANCNFSM4MZ5QVMQ&data=02|01|mterhaar%40campuslabs.com|4c037b81e1574ffbfe5f08d7f5f2b7db|809fd6c8b87647a9abe28be2888f4a55|0|0|637248295138215692&sdata=HYpqFapnti%2FBYMf%2B9o8socLFx0CskbQMaYhENTWSwzw%3D&reserved=0.

Hi @Boaz101, the doc will be updated after MS Build.

I have submitted a PR to update doc, the change is merged internally and will go-live in the public docs shortly.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


TypeError: unsupported operand type(s) for /: 'Dimension' and 'float'

While testing DeepLabv3 getting error as :
in call:
scale /= max(1., (fan_in + fan_out) / 2.)
TypeError: unsupported operand type(s) for /: 'Dimension' and 'float'
Before running the model I made sure all the pre-requirements :
cuda-9.0
tensorflow-gpu>1.13
Keras 2.2.4
are satisfied. Any help will be appreciated.
screenshot is attached for reference

If you are on the latest (Master) branch of this repo, you need to explicitly install TensorFlow 2.0 Alpha.
Use pip install tensorflow==2.0.0a0

Thanks. It helped.


confusion about multiple roles

Is this a BUG REPORT or FEATURE REQUEST?: FEATURE REQUEST. also FYI I can't seem to JOIN the slack channel or I'd ask there.
What happened: - Two different nodes cannot have the same hostname "master-etcd-0.domain.com"
What you expected to happen: find documentation to support requirements and example node declarations for multiple roles.
How to reproduce it (as minimally and precisely as possible): tried labels and taints
Anything else we need to know?:
Environment: bare-metal 3 master/etcd  with 3 worker nodes

Kismatic version (use kismatic version): 1.10
Plan file Gist (remove sensitive information if any):
Cloud provider or hardware configuration: bare-metal
OS (e.g. from /etc/os-release):  16.04.4 LTS
Kernel (e.g. uname -a): 4.4.0-119-generic

@kmkramer
For nodes to share roles just specify the same details in multiple sections, here in an example:
etcd:
  expected_count: 3
  nodes:
  - host: ip-10-0-3-144.ec2.internal
    ip: <IP_ADDRESS>
    internalip: <IP_ADDRESS>
  - host: ip-10-0-3-95.ec2.internal
    ip: <IP_ADDRESS>
    internalip: <IP_ADDRESS>
  - host: ip-10-0-3-187.ec2.internal
    ip: <IP_ADDRESS>
    internalip: <IP_ADDRESS>
master:
  expected_count: 3
  nodes:
  - host: ip-10-0-3-144.ec2.internal
    ip: <IP_ADDRESS>
    internalip: <IP_ADDRESS>
  - host: ip-10-0-3-95.ec2.internal
    ip: <IP_ADDRESS>
    internalip: <IP_ADDRESS>
  - host: ip-10-0-3-187.ec2.internal
    ip: <IP_ADDRESS>
    internalip: <IP_ADDRESS>
  load_balanced_fqdn: <IP_ADDRESS>
  load_balanced_short_name: <IP_ADDRESS>
worker:
  expected_count: 3
  nodes:
  - host: ip-10-0-3-136.ec2.internal
    ip: <IP_ADDRESS>
    internalip: <IP_ADDRESS>
  - host: ip-10-0-3-180.ec2.internal
    ip: <IP_ADDRESS>
    internalip: <IP_ADDRESS>
  - host: ip-10-0-3-59.ec2.internal
    ip: <IP_ADDRESS>
    internalip: <IP_ADDRESS>
ingress:
  expected_count: 2
  nodes:
  - host: ip-10-0-3-59.ec2.internal
    ip: <IP_ADDRESS>
    internalip: <IP_ADDRESS>
  - host: ip-10-0-3-64.ec2.internal
    ip: <IP_ADDRESS>
    internalip: <IP_ADDRESS>

yeah that's what I tried but without having "internalip:" set. these are all on-premise hosts. I didn't keep my plan file around so I'll try again at some point later.


Add Tripadviser widget

Website:
https://www.tripadvisor.com/Widgets
Example websites:
https://absolutehotel.kz
https://www.goshenandoah.com/

Thanks! Can you update the icon so it's just the logo and no text? 🙏

@AliasIO fixed mate. understand requirements

Nice work!


Add intra inter mode coding

For #160.

Add inter/intra mode symbol for blocks in inter frame.
Add intra prediction mode coding for inter frame.

Since I moved to Level Map coding, I wanted to finish what I have worked for enabling basic intra mode coding so far and committed two required patches for inter mode.

Cool. You need to push your libaom changes.

tdaede: Do I have to commit libaom changes separately (I did that way before)?
If so, should I commit it to your github libaom branch only (i.e. https://github.com/tdaede/aom) ? or any branch in git?
Once libaom is commited then I need to update (commit & push -f) my rav1e commits as well, correct?

You can just push it to the rav1e_10 branch on my aom, but any public branch will work.
You'll need to update your rav1e commits too, but if the hash didn't change it might not see any changes - let me know and I'll manually retrigger travis.

The existing 'show-existing-frame logic ' should behave independently, so every even odd numbered should not be encoded as before, but show previously encoded frame.
Ex, frame 0 encoded, frame 1 (INTER frame) NOT encoded, ....

I think better way to monitor 'show-existing-frame flag' is to output it thru eprintln!("{}", fi); in process_frame(), which shows current frame # and intra/inter frame.

In fact now that we have "real inter" frames we can probably stop using show-existing-frames for now. We'll need them when we do out-of-order but that's for later.


Added support for https and different path than admin to pihole

I host my pihole on custom domain behind nginx with lets encrypt certs ala https://www.example.com/pihole
This adds support for doing that while preserving current usage.

Hi Jon!
Thanks for correcting this oversight on my part :)


!!! ERROR - no match for club Haringey

i'm getting the following when running sportdb new
** !!! ERROR - no match for club >Haringey Borough FC<
sportdb doesnt seem have some non-league club names available when parsing the fa cup files

thanks for the swift response!


assert_this_initialized check fired before super()

Describe the bug
In some cases _assert_this_initialized fires before super() call which causes  ReferenceError: this hasn't been initialised - super() hasn't been called
Input code
class Test0 {}

class Test extends Test0 {
  constructor() {
    super(),
      console.log(async (e) => {
        await this.test();
      });
  }
}

Config
{
  "jsc": {
    "parser": {
      "syntax": "ecmascript",
      "dynamicImport": true,
      "tsx": true,
      "jsx": true
    },
    "loose": false,
    "externalHelpers": true
  },
  "env": {
    "targets": "> 0.25%, not dead, Safari >=8",
    "mode": "entry",
    "coreJs": "3.27",
    "loose": false,
    "bugfixes": true
  }
}

Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.3.100&code=H4sIAAAAAAAAAz2MwQqDMBBE7%2FsVc0ygiHfRr%2BgPhHVphZAUd6UVyb9rozineTPDcAyqeIpai60Q8c2Qn0ka75IAzkltXtjy7HxNAF0%2BctCjwjnJUZqYXy7omhhOPPrhWv8VvmEy2HvSxo5r57urKtUVKrQDPuJyYpYAAAA%3D&config=H4sIAAAAAAAAA32PzQrCQAyE732KJeCtFFFEEexZvfoEcZuWlna3ZKO0lL67a%2B2PePCW%2BWYSJl2gFBROw1F1fvSiRnbEs%2FbEtUaw8QRIV%2Bg057VAOLlJa7DK9aWqLYsPCT9oNsU1v6iY0UD6jwGltY68kWLpxjBQI8QGyzOVNbFb1oYlIPNcagtyRvLOQKzW0Wa3CpWxohLCJFQ3TJFzFZ8OY3GobELDS0a4naC2TNfhxjba7OFPtfsjS%2FOGvjsF%2FQv6%2BI68TQEAAA%3D%3D
SWC Info output
No response
Expected behavior
var _this;
_this = _super.call(this);
var _this1 = _assert_this_initialized(_this);

Compiles well if i use super(); instead of super(),
Actual behavior
var _this;
var _this1 = _assert_this_initialized(_this);
_this = _super.call(this),

Version
1.3.101
Additional context
No response

@shredor did you get solution for this ? I am not sure if my use case is related, for me when i use swc/jest the _callUpdate() method from the reactive-element inside lit-element is not at all getting triggered, resulting in failing tests across the codebase

@gethari
class Test0 {}

class Test extends Test0 {
  constructor() {
    super();

    console.log(async (e) => {
      await this.test();
    });
  }
}

works

I tried fixing it, but I concluded that it's not important, as this is only about sequential expressions.

@gethari
My use case was compiling js for legacy browsers:

I have compiled js script for modern browsers
I compile it again with swc for legacy browsers
Use legacy js as a fallback when i detect legacy browser

My solution was to disable minification at step 1 so now it compiles well


Embedding layer input should be floats

The documentation for the embedding layer specifies that the input should be an integer matrix. While the inputs should in fact be indices into the vocabulary (non-negative integers), they need to be cast as floats. If an integer-type matrix is input, the training does not work right, without ever giving an error, which is very hard to debug.
Suggestions:

At minimum, update the documentation to specify that the input should be round numbers cast as floats.
Maybe also check the input for this and all other layers and raise an error if the type is wrong.
Maybe cast the inputs to floats within the fit, predict, and other relevant functions.

I may be able to try taking a stab at this, if you tell me which option you prefer. Thanks!

[x] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps

[x] If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.

[x] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

[x] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

I think we should go for a documentation update. Feel free to open a PR regarding this.

Hi there, I am beginner here and would like to work on this issue. Just to clarify I'd need to update the doc, right?

Hey! I've added the necessary information in the docs. Do let me know if the PR can be merged. #13011

Can I take this as my first issue?


dbClusterParameterGroupNameRef missing in CRD definitiion

dbClusterParameterGroupNameRef got missing in CRD definition of dbclusters.rds.aws.crossplane.io?
When deploying my menifiest file according to docs  we can use dbClusterParameterGroupNameRef to refer another cluster parameter group name from ref name, but when I used and try to deploy using helm chart giving following error
Error: Failed to render chart: exit status 1: Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(DBCluster.spec.forProvider): unknown field "dbClusterParameterGroupNameRef" in io.crossplane.aws.rds.v1alpha1.DBCluster.spec.forProvider

How can we reproduce it?
Please use dbClusterParameterGroupNameRef in defining resource dbclusters.rds.aws.crossplane.io
What environment did it happen in?
Crossplane version: 1.5.0

Cloud provider or hardware configuration provider-aws-v0.21.1
Kubernetes version (use kubectl version) v1.20.7-eks-d88609
Kubernetes distribution (e.g. Tectonic, GKE, OpenShift): EKS

Other info
I done some initial research and got to know dbClusterParameterGroupNameRef  definition also missing on CRD defined here https://github.com/crossplane/provider-aws/blob/master/package/crds/rds.aws.crossplane.io_dbclusters.yaml but also not defined, maybe need to define on CRD

@varunpalekar for what resource you are looking for dbClusterParameterGroupNameRef ?
in docs you referenced for docdb dbcluster and in crd you referenced rds dbcluster
for rds check: https://github.com/crossplane/provider-aws/blob/master/examples/rds/db-aurora-cluster.yaml#L16
for docdb check: https://github.com/crossplane/provider-aws/blob/master/examples/docdb/cluster.yaml#L12

My bad,
Thanks @haarchri for the help, now can I say can we use dbClusterParameterGroupNameRef  in dbclusters.rds.aws.crossplane.io

@varunpalekar  added PR #987


add ability to specify polymorphic id and type field names

Some thoughts to fix #238.  Very much open to thoughts and suggestions to make this happen.

@sessa The project is under new leadership. Will you provide some tests? Otherwise I will close the PR.

Closing due to staleness.


Markdown Part 3 - Markdown in Replies

Description
Adds Markdown support in ticket detail replies (not the drawer yet)
Adds code highlighting
Coming up in the next PR...

Docs for using markdown
Preview Tab in Ticket Drawer

Type of Change

Non breaking change ('update', 'change')

Applicable E2E Tests
N/A

as discussed in Slack, the truncation will be discussed at review with stakeholders. Not sure how this logic should work now that we're using markup in the UI.


Only right hand gestures are working

Following Setup:
Oculus Quest 2 only
Fs2020
Developer mode enabled in headset.
right and left Controller are visible in the game. One with the right controller the click event works. Left controller has no events.
how can I help to debug the root cause?

This is probably #24 or #26 - do you still have this problem with the MSI at the bottom of https://github.com/fredemmott/hand-tracked-cockpit-clicking/actions/runs/3862788049 ?

No noticeable change. I removed all registry settings like described. Installed new version 0.2. The HTCC settings menu looks different. the amount of settings in registry is now only 4. The behavior is likely the same. right controller works and left controller is only visible but does not react on clicks.

Still not been able to reproduce this, however that change does make things a bit cleaner.
The only way I've been able to reproduce this is when I'm trying to use my left hand to reach something at the far right, like menus - in this case, the problem is the rotation of my left hand is different and Oculus's firmware can't understand the gestures

I was on holiday the last 3 weeks. Therefore no flight hours. Anyhow I will make it work because this is awesome and helps the immersion. It like in the 90s where we hacked the Mediacenter driver to display HDTV. Today all OOTB but at this time HD tv was awesome.

Still no way to reproduce this, or otherwise act on this - sorry.


Backend conversion feedback

Hi,
Here a list of minor changes/bugs I would like to submit for the backend_conversion branch:

Currently your tool generates a cimgui.h header file with these prototypes inside:

CIMGUI_API void ImGui_TextV(const char* fmt, va_list args) IM_FMTLIST(1)
CIMGUI_API bool ImGui_InputTextMultiline(const char* label, char* buf, size_t buf_size);

You are using va_list and size_t types. Unfortunately, you provide header files to allow the C compiler to find them into the cimgui.cpp generated file. However the header file needs also these headers for the prototypes. Would you consider to move these lines from cimgui.cpp into the cimgui.h ?
#include <stdio.h>
#include <stdarg.h>

Generating binding for these backends:

sdl2
sdl3
sdlrenderer2
sdlrenderer3

is failing with this output for sdlrenderer2 and sdlrenderer3:
$ python3 dear_bindings.py --backend -o cimgui_impl_sdlrenderer3 ../imgui/backends/imgui_impl_sdlrenderer3.h
Dear Bindings: parse Dear ImGui headers, convert to C and output metadata.
Parsing ../imgui/backends/imgui_impl_sdlrenderer3.h
Storing unmodified DOM
Applying modifiers
Writing output to ../tmp/cimgui_impl_sdlrenderer3[.h/.cpp/.json]
Template file /home/user/Workspace/im-zig-gui/wrapper/dear_bindings/src/templates/imgui_impl_sdlrenderer3-header-template.h could not be found (note that template file names are expected to match source file names, so if you have renamed imgui.h you will need to rename the template as well). The common template file is included regardless of source file name.
Exception during conversion:
Traceback (most recent call last):
  File "dear_bindings.py", line 465, in <module>
    convert_header(args.src, args.output, args.templatedir, args.nopassingstructsbyvalue, args.backend)
  File "dear_bindings.py", line 405, in convert_header
    insert_header_templates(file, template_dir, src_file_name_only, ".h", expansions)
  File "dear_bindings.py", line 54, in insert_header_templates
    insert_single_template(dest_file,
  File "dear_bindings.py", line 37, in insert_single_template
    sys.exit(2)
SystemExit: 2

this output for sdl2:
$ python3 dear_bindings.py --backend -o cimgui_impl_sdl2 ../imgui/backends/imgui_impl_sdl2.h
Dear Bindings: parse Dear ImGui headers, convert to C and output metadata.
Parsing ../imgui/backends/imgui_impl_sdl2.h
Unrecognised element LexToken(TYPEDEF,'typedef',24,1545)
Storing unmodified DOM
Applying modifiers
Writing output to cimgui_impl_sdl3[.h/.cpp/.json]
Template file /home/user/Workspace/im-zig-gui/wrapper/dear_bindings/src/templates/imgui_impl_sdl2-header-template.h could not be found (note that template file names are expected to match source file names, so if you have renamed imgui.h you will need to rename the template as well). The common template file is included regardless of source file name.
Exception during conversion:
Traceback (most recent call last):
  File "dear_bindings.py", line 465, in <module>
    convert_header(args.src, args.output, args.templatedir, args.nopassingstructsbyvalue, args.backend)
  File "dear_bindings.py", line 405, in convert_header
    insert_header_templates(file, template_dir, src_file_name_only, ".h", expansions)
  File "dear_bindings.py", line 54, in insert_header_templates
    insert_single_template(dest_file,
  File "dear_bindings.py", line 37, in insert_single_template
    sys.exit(2)
SystemExit: 2

ths output for sdl3:
$ python3 dear_bindings.py --backend -o cimgui_impl_sdl3 ../imgui/backends/imgui_impl_sdl3.h
Dear Bindings: parse Dear ImGui headers, convert to C and output metadata.
Parsing ../imgui/backends/imgui_impl_sdl3.h
Unrecognised element LexToken(TYPEDEF,'typedef',26,1725)
Storing unmodified DOM
Applying modifiers
Writing output to cimgui_impl_sdl3[.h/.cpp/.json]
Template file /home/user/Workspace/im-zig-gui/wrapper/dear_bindings/src/templates/imgui_impl_sdl3-header-template.h could not be found (note that template file names are expected to match source file names, so if you have renamed imgui.h you will need to rename the template as well). The common template file is included regardless of source file name.
Exception during conversion:
Traceback (most recent call last):
  File "dear_bindings.py", line 465, in <module>
    convert_header(args.src, args.output, args.templatedir, args.nopassingstructsbyvalue, args.backend)
  File "dear_bindings.py", line 405, in convert_header
    insert_header_templates(file, template_dir, src_file_name_only, ".h", expansions)
  File "dear_bindings.py", line 54, in insert_header_templates
    insert_single_template(dest_file,
  File "dear_bindings.py", line 37, in insert_single_template
    sys.exit(2)
SystemExit: 2

I ran your generator on Ubuntu 20.04.
Let me know if I forgot to specify crucial details.

For those backends:

glut
vulkan

into the generated header files, it is missing { after the:
extern "C"

and at the end of the generated file, this matching part is also missing:
#ifdef __cplusplus
}
#endif

Thank you.

Oh, awesome, thanks for the very detailed bug reports!
Having taken a look at those:

Yep... that's actually kinda weird, in that I apparently deliberately removed stdarg.h from the header at some point (with a comment saying "removing unnecessary headers"). Clearly it's not unnecessary, though, so I've added it back along with stddef.h (since stdio.h felt a little like overkill just to get size_t - shout if there's some reason you thing stdio.h would be preferable in this situation, though).

Ack, sorry - I was testing against an old version of the ImGui code prior to the SDL2/3 backend split. I've adjusted the templates so that those should generate cleanly now.

Ooh, that's a fun bug you found! Turns out there was an issue in the way that extern "C" statements were generated where if the thing immediately following one was a #ifdef or similar, it would see that as a single logical "child" statement and assume it was safe to generate a single-line extern statement rather than a multi-line one with brackets. I've fixed that now so it shouldn't be so trigger-happy about trying to reduce things to a single line.

I've put in fixes that I think should resolve all of these in c6d4f5ac8d0cc0199bdf131863e061f49dcf962d - let me know if those work OK for you!
Thanks again!

Well ! Thank you for the bug fix, now it is OK from my side.
For the size_t issue, I think you are right: stdio.h is overkill for the situation. I suggested stdio.h because it was already used but there is not any other reason to use it instead of stddef.h (for my use case).
I am closing this issue.


[vendor] Catch keyboard interrupt for nicer error message

Avoid printing a stack trace in a user-initiated abort, but print a
"nice" message instead.

(Cancelled the FPGA build for this one in CI to free capacity.)

Merging without CI passing due to this not being touched by CI anyway.


App Passwords section does not exist

App Passwords section does not exist as shown in the docs.

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

ID: 8751595d-4839-d2ee-1e2c-16d07ef84a2d
Version Independent ID: e66f96b3-5b88-9304-1ec0-9e3bb8a2cfbe
Content: How to manage app passwords - Azure Active Directory
Content Source: articles/active-directory/user-help/multi-factor-authentication-end-user-app-passwords.md
Service: active-directory
Sub-service: user-help
GitHub Login: @curtand
Microsoft Alias: curtand

@swhillance-mphn
Thanks for your feedback! We will investigate and update as appropriate.

Hi @swhillance-mphn
The first line of the documentation article is a note saying "Your administrator may not allow you to use app passwords. If you don't see App passwords as an option, they're not available in your organization." This is almost certainly the case for you. I think the message is: if you don't see App Passwords, don't worry. Thanks for your contribution!
@JamesTran-MSFT
I'll wait a few days for an answer and then we'll close this unless I misdiagnosed.

#please-close
@JamesTran-MSFT


OLS-363: Provider parameters check

Description
Provider parameters check
Type of change

[ ] Refactor
[x] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[x] Configuration Update
[ ] Bump-up dependent library

Related Tickets & Documents

Related Issue #OLS-363

Checklist before requesting a review

[x] I have performed a self-review of my code.
[x] PR has passed all pre-merge test jobs.
[ ] If it is a core feature, I have added thorough tests.

/hold

/retest

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

Project coverage is 94.80%. Comparing base (a1096f4) to head (47c7e50).
 Consider uploading reports for the commit 8313aa6 to get more accurate results

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #650      +/-   ##
==========================================
- Coverage   96.39%   94.80%   -1.60%
==========================================
  Files          52       53       +1
  Lines        1692     1866     +174
==========================================
+ Hits         1631     1769     +138
- Misses         61       97      +36

Files
Coverage Δ

ols/src/llms/providers/provider.py
96.77% <94.73%> (-3.23%)
:arrow_down:

... and 10 files with indirect coverage changes

/unhold

/lgtm

/approve


Ignore Mac's .DS_Store files.

https://en.wikipedia.org/wiki/.DS_Store

Codecov Report

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

@@           Coverage Diff           @@
##           master      #56   +/-   ##
=======================================
  Coverage   97.14%   97.14%
=======================================
  Files          21       21
  Lines        1298     1298
  Branches      152      152
=======================================
  Hits         1261     1261
  Misses         32       32
  Partials        5        5

Continue to review full report at Codecov.

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


clarifications

We use "DigiCert Global Root G2 (df3c24f9bfd666761b268073fe06d1cc8d4f82a4)", will this change? And to what is it changing?
You've said "TLS certificates used by Azure services will chain up to one of the following Root CAs:" which implies that the cert I mentioned won't change, but later you said "The current CA certificates will not be revoked until February 15, 2021." which also covers the one I'm asking about, because it is current and in use!
You say: "When can I retire the old intermediate thumbprint?"
What is the "old intermediate thumbprint"? Microsoft IT TLS CA 2 (54d9d20239080c32316ed9ff980a48988f4adf2d)?
Thanks

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

ID: b3c4368c-82a4-f82e-b1a7-41cfa694fa58
Version Independent ID: 60a94729-02ad-0ef1-a642-63351d0171ea
Content: Azure TLS Certificate Changes
Content Source: articles/security/fundamentals/tls-certificate-changes.md
Service: security
Sub-service: security-fundamentals
GitHub Login: @msmbaldwin
Microsoft Alias: mbaldwin

@sarah026 Thank you for your feedback . We will investigate and update the thread.

@sarah026 No the Digicert Global root CA cert will not change. The current CA certificates means the certificates that chain up to the CA "Baltimore CyberTrust Root" .
Let me provide you more context on this. During TLS/SSL transactions a certificate exchange takes place between the server side and the client side. During this exchange , the certificate are checked up to the top of the chain from where they have been issued and various other checks happen during any TLS transaction. So on the Azure side we used to provide certificates on most of our public endpoints (which any customer would connect ) using "Baltimore CyberTrust Root" CA . due to some compliance we need to change the top level CA certificate and hence this change advisory .
Now coming to the part , how it affects any customer. There is a concept of certificate pinning . In order to harden security many developers restrict access to azure endpoints using certificate pinning. Certificate pinning is about trusting certificate only from a few specific CAs. Since the customers know that Azure will only use "Baltimore CyberTrust Root" CA so they would use the thumbprint of this CA certificate within their code , or perimeter firewall etc to validate that they are connecting only to actual azure endpoint and not some imposter trying to appear as a valid Azure endpoint url . Now since we are adding new Certificate authorities certificates any azure endpoint which will now need a certificate will get it from one of the new CAs. Since the customer's code / firewall config does not trust the new CA thumbprints the TLS connection will fail.
The above only applies if you have setup certificate pinning or restricted azure related communication to a specific CA thumbprint . If you are not aware of doing anything like that , you need not worry. It will be normal and smooth without any issues. Most of the customers will not be impacted as explained in this section because they do not hard coded the Azure CA cert thumbprint. anyone who has any such configuration would need to make changes.
The old thumbprint refers to any intermediate CA certificate which have been signed by the "Baltimore CyberTrust Root" CA cert thumbprint d4de20d05e66fc53fe1a50882c78db2852cae474. If you are not hardcoding the certificate anywhere in your environment or your developers are not hardcoding the certificate thumbprint in any application they have built to interact with any azure service , you should not worry about this. However if you have anything like that they you need to add all the other 5 thumbprints as provided in the table to the same configuration as well and this will help in mitigating any possible future errors.
You can read more on the public thread on Microsoft QnA where the product group answers any questions related to this. And if you still have any questions , you are free to post there tagging me or on this same thread here on github.
Hope the detailed explanation helped. Apologies for the delayed reply on this. We will now close this issue. In case you have any further queries on this, you can either tag me to your reply or on the Microsft QnA forums thread as listed above.
Thank you.


Weird MongoDB error when running the rest-fights service with Quarkus dev

Describe the bug
hello!
When I try to run the rest-fights service with ./mvnw quarkus:dev  I get a stack trace like this:

18:11:45 INFO  [or.mo.dr.cluster] (cluster-ClusterId{value='65f224a1141b7478a47c5e8f', description='null'}-mongo-yexv5:27017) Exception in monitor thread while connecting to server mongo-yexv5:27017: com.mongodb.MongoSocketException: mongo-yexv5: nodename nor servname provided, or not known
	at com.mongodb.ServerAddress.getSocketAddresses(ServerAddress.java:221)
	at com.mongodb.internal.connection.ServerAddressWithResolver.getSocketAddresses(ServerAddressWithResolver.java:68)
	at com.mongodb.internal.connection.SocketStream.initializeSocket(SocketStream.java:100)
	at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:78)
	at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:211)
	at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.lookupServerDescription(DefaultServerMonitor.java:196)
	at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:156)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.net.UnknownHostException: mongo-yexv5: nodename nor servname provided, or not known
	at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
	at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:934)
	at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1543)
	at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852)
	at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1533)
	at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1385)
	at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
	at com.mongodb.ServerAddress.getSocketAddresses(ServerAddress.java:213)
	... 7 more

18:11:45 INFO  [or.mo.dr.cluster] (Quarkus Main Thread) No server chosen by ReadPreferenceServerSelector{readPreference=primary} from cluster description ClusterDescription{type=UNKNOWN, connectionMode=SINGLE, serverDescriptions=[ServerDescription{address=mongo-yexv5:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: mongo-yexv5: nodename nor servname provided, or not known}, caused by {java.net.UnknownHostException: mongo-yexv5: nodename nor servname provided, or not known}}]}. Waiting for 30000 ms before timing out
18:11:45 INFO  [or.mo.dr.cluster] (cluster-ClusterId{value='65f224a1141b7478a47c5e8f', description='null'}-mongo-yexv5:27017) Exception in monitor thread while connecting to server mongo-yexv5:27017: com.mongodb.MongoSocketException: mongo-yexv5
	at com.mongodb.ServerAddress.getSocketAddresses(ServerAddress.java:221)
	at com.mongodb.internal.connection.ServerAddressWithResolver.getSocketAddresses(ServerAddressWithResolver.java:68)
	at com.mongodb.internal.connection.SocketStream.initializeSocket(SocketStream.java:100)
	at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:78)
	at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:211)
	at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.lookupServerDescription(DefaultServerMonitor.java:196)
	at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:156)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.net.UnknownHostException: mongo-yexv5
	at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:801)
	at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1533)
	at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1385)
	at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
	at com.mongodb.ServerAddress.getSocketAddresses(ServerAddress.java:213)
	... 7 more

Now, I noticed that if I manually start a mongoDB container (and then also provide the mongoDB connection string, user, password in an app properties) that error goes away and it seems to be working.
But, when I try to initiate a fight I get a super similar error for kafka:
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.net.UnknownHostException: kafka-c2mfg: nodename nor servname provided, or not known
To Reproduce
Steps to reproduce the behavior:

start the downstream services with this command : docker compose -f rest-heroes/deploy/docker-compose/java17.yml -f rest-villains/deploy/docker-compose/java17.yml -f rest-narration/deploy/docker-compose/java17.yml -f grpc-locations/deploy/docker-compose/java17.yml up --remove-orphans
Start the rest-fights service with ./mvnw quarkus:dev
See error

Expected behavior
Starting with no issues, unless I missed something in the docs
Desktop (please complete the following information):

OS: Apple M1 Mac OS Sonoma 14.3.1
Browser: Firefox/Chrome
Version: openjdk <IP_ADDRESS> 2023-08-24

Let me know if you need more info, or if I just completely missed something in the docs! Thanks

ah I didn't see that issue, thank you so much!

Do you happen to know if getting an issue in the frontend like this with Quarkus dev:
ERROR
Request failed with status code 404
AxiosError@http://localhost:3000/static/js/bundle.js:59623:18
settle@http://localhost:3000/static/js/bundle.js:60276:12
onloadend@http://localhost:3000/static/js/bundle.js:58938:66
ERROR
Request failed with status code 404
AxiosError@http://localhost:3000/static/js/bundle.js:59623:18
settle@http://localhost:3000/static/js/bundle.js:60276:12
onloadend@http://localhost:3000/static/js/bundle.js:58938:66

is related to the issue? I started the frontend with the same ./mvnw quarkus:dev -Dquarkus.profile=no-microcks but on localhost:3000 I keep getting that error (with or without the added profile). Though interestingly if I go to localhost:8080 it works fine so maybe I did something else wrong

Yeah port 8080 is the correct port, not 3000. It's a quarkus app.

Yeah port 8080 is the correct port, not 3000. It's a quarkus app.

@ingmarfjolla, to add a bit more context to what you're seeing, a Quarkus extension called Quinoa is handling the integration between the front and back ends. Under the covers, it starts the javascript live coding server on port 3000, and then it proxies requests to it. But if you access things directly on 3000, they won't have the right back end services because you're only seeing the thin front-end layer. https://quarkus.io/blog/quinoa-modern-ui-with-no-hassle/ explains a bit more about Quinoa.

@holly-cummins thanks for the added context!

@ingmarfjolla am I ok to close out this issue?

@edeandrea yep, sounds good to me


Fix float warning

Visual C++ detects the divide by zero at compile time unless the variables are volatile.  This fixes one of the warnings reported in #1079.
Changing the build image was needed in order to keep the MinGW32 build working. It's not a permanent fix, but I'm not sure what will be yet.

Coverage remained the same at 99.876% when pulling 6aa3266c29a0d24cd9f653823d2a744233692a12 on Andne:float-warn into ce0b67b18d52dc59d03531c050edbcc7ea192c2b on cpputest:master.

Travis is failing because it can't download OpenWatcom.
Here's an older build with the same change that worked: https://travis-ci.org/Andne/cpputest/builds/281660313

Anything that needs to do on the Watcom download?

I'm not sure, it looks like a network error to me, does their ftp server go offline sometimes for maintenance?
There appears to be a fork on GitHub called open-watcom V2 (http://open-watcom.github.io/open-watcom/) that may be a more reliable source.  That would be one possible option.
GitHub support LFS now, so maybe if someone can get it downloaded we could keep the zip file in the repository using that?  Then it wouldn't have to download anymore.  Not ideal I suppose, I think I like the idea of using the V2 fork if that still accomplishes the same goal.

Yeah, zip is not good, but it would be good to have it more reliable than now...


Update the project to a version of bazel that works

Thanks for this.
Note that we need update the bazel version of all our project at the same time internally. So we will most likely not import this patch.

Just FYI it looks like Bazel 1.0.0 is also compatible with J2CL. Huzzah!


make Barista DRY

there are similar patterns in Barista.java, like:
System.out.println("Writing " + entityName + ".java for you...");
Files.createDirectories(Paths.get(outputDirectoryName));
Files.write(Paths.get(outputDirectoryName + "/" + entityName + " .java"), newFileContent.getBytes());

and
System.out.println("Writing " + resourceName + "Controller.java for you...");
Files.createDirectories(Paths.get(outputDirectoryName));
Files.write(Paths.get(outputDirectoryName + "/" + resourceName + "Controller.java"), newFileContent.getBytes());

refactor Barista.java to make it DRY (Don't Repeat Yourself)

I'd like to be assigned to this issue please

I'd love to refactor this!


Fix conflicts in path constructor

Execute "mvn clean package -DskipTests -am -pl server" successfully.

As this PR is used to fix the compile issue of current master branch, it should be merged as soon as possible. According to the change, @choubenson ran the UT locally and mvn clean package locally, which were both passed. Thus, I will merge this PR without waiting CI


chore(deps): upgrade jenkins-x/jx3-versions to version 1.1.9

from: https://github.com/jenkins-x/lighthouse.git

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign rawlingsj
You can assign the PR to them by writing /assign @rawlingsj in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


M5Stack Core2 ESP32 Development EduKit Factory Reset

Hi, I'm just getting started but this basic command doesn't work for me. pio run --environment core2foraws --target upload
Error that appears is "TypeError: 'module' object is not callable" even though pio is already installed through pip.
How do i proceed? I want to factory reset my m5stack edukit but I am stuck at this step.

Appears to be an error with PlatformIO. Here are some suggestions:

Reboot your computer
Delete the platformio directory:
-Windows: C:\Users\{username}\.platformio\
-Linux/Mac: ~/.platformio
Delete the hidden .pio folder in your project folder.
Re-run pio run --environment core2foraws --target upload


handling repr and str for circular references in lists

https://github.com/thautwarm/TraffyIR.UnityPython/blob/282e60f8dc6c17b997468f957cf6b4fe3954929c/src/Object.cs#L225

https://github.com/thautwarm/Traffy.UnityPython/pull/11


Make bundle filename consistent

Fixes #50.
At the moment, the filename of a bundle is always different each time bundling is performed, even if the Edge handlers source files have not changed. This might be a problem:

This creates unnecessary additional bundles in .netlify/edge-handlers/ even when nothing has changed
This prevents using the bundle filename as an indication of whether any Edge handlers contents has changed, which could be interesting as a performance/caching optimization

The reason the bundle filename always changes is because each Edge handler is exported using a unique ID. That ID is part of the final bundle and is randomly generated.
This PR solves this problem by generating this unique ID by performing a SHA1 cheksum on the Edge handler filename instead.
If any Edge handler source file's contents changes, the bundle filename will still change since it is based not only on each generated ID, but also on a concatenation of all Edge handlers source files.
One side-effect this PR is that id in netlifyRegistry.set("handlerFilename", "id") will remain the same across builds if the handler filename has not changed. However, it is guaranteed to be unique within a specific build, since two Edge handlers cannot have the same filename (full file paths can also be used in the future). Please let me know if this is a problem with how netlifyRegistry is implemented. I am guessing not but I want to confirm.

oh, this is very valuable. thank you!


IGNITE-10965 Global progress line.

@Klaster1 I've added global progress line to screens. Please review.

The ticket is resolved, closing PR.
Please close PRs for your resolved tickets and other non-needed PRs.
Alternatively, ask a committer

to use GitHub UI (committer can associate accounts here: https://gitbox.apache.org/setup/ )
or /scripts/apply_pull_request.sh from Apache Ignite source.
or mention in commit message 'Fixes #(a number of PR)'.

These methods will automatically close PR.
Feel free to reopen this PR if it is actual.


Refactor simulate_for_sbi location

What does this implement/fix? Explain your changes
Move simulate_for_sbi to utils
Does this close any currently open issues?
Fixes #1240
Checklist
Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you're unsure about any of them, don't hesitate to ask. We're here to
help! This is simply a reminder of what we are going to look for before merging
your code.

[X] I have read and understood the contribution
guidelines
[X] I agree with re-licensing my contribution from AGPLv3 to Apache-2.0.
[ ] I have commented my code, particularly in hard-to-understand areas
[X] I have added tests that prove my fix is effective or that my feature works
[ ] I have reported how long the new tests run and potentially marked them
with pytest.mark.slow.
[X] New and existing unit tests pass locally with my changes
[X] I performed linting and formatting as described in the contribution
guidelines
[X] I rebased on main (or there are no conflicts with main)
[X] For reviewer: The continuous deployment (CD) workflow are passing.

Thanks a lot for the feedback!
I’ve added the tests for simulate_for_sbi covering various cases. Let me know if there’s anything else!


grpc.FutureTimeoutError

unfortunately on windows, I run into the same error trace as #1  trying to run human_agent.py:
python human_agent.py --seed 123 --level_name alchemy/perceptual_mapping_randomized_with_rotation_and_random_bottleneck'
gives the error:
pygame 2.0.1 (SDL 2.0.14, Python 3.7.9)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "human_agent.py", line 186, in <module>
    app.run(main)
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\absl\app.py", line 303, in run
    _run_main(main, args)
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\absl\app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "human_agent.py", line 117, in main
    environment_variables=environment_variables) as env:
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\dm_alchemy\_load_environment.py", line 389, in load_from_docker
    connection_details=_connect_to_environment(port, settings),
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\dm_alchemy\_load_environment.py", line 246, in _connect_to_environment
    channel, connection = _create_channel_and_connection(port)
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\dm_alchemy\_load_environment.py", line 204, in _create_channel_and_connection
    _check_grpc_channel_ready(channel)
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\dm_alchemy\_load_environment.py", line 183, in _check_grpc_channel_ready
    return grpc.channel_ready_future(channel).result(timeout=1)
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\grpc\_utilities.py", line 140, in result
    self._block(timeout)
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\grpc\_utilities.py", line 86, in _block
    raise grpc.FutureTimeoutError()
grpc.FutureTimeoutError

the command that is mentioned in #1 was already updated in the installation instructions, but does not seem to help. Running
level_name = 'alchemy/perceptual_mapping_randomized_with_rotation_and_random_bottleneck'
seed = 1023
settings = dm_alchemy.EnvironmentSettings(
    seed=seed, level_name=level_name, width=width, height=height)
env = dm_alchemy.load_from_docker(settings)

in the AlchemyGettingStarted.ipynb  seems to give the same error.
The setup is as written in the guide and uses Docker Desktop (except that I don't use a Python virtual environment).
docker run -d gcr.io/deepmind-environments/alchemy:v1.0.0 gives no error.
While you don't officially support windows maybe you can still help?

Hello!
As far as I know we haven't tested dm_alchemy on Windows yet. But when we tested a previous release (dm_memorytasks), we were able to get it working by running the Python code from within a WSL shell (WSL being Windows Subsystem for Linux).
For reasons we didn't dig into at the time, running the Python code with a native Windows python installation didn't work - we might debug this at some point if lots of users are interested on using our environments on Windows.

Thank you for this insight! Using python inside a WSL Ubuntu, VcXsrv (and Windows Docker Desktop) works.


Adds optional wait for completion option in snapshot/restore API

@orisgarno Can you please have a loot?


Validation: Fixed some broken links in faq/wcs/win32 articles

Broken links fix. Most were the result of the inclusion of /previous-version/ in the path. Some had invalid names.

@TheMythoclast : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@TheMythoclast Braden, can you resolve the conflict that's cropped up here? Thanks!


Upgrade to latest MQTT.js

part of #263
Description

Update mqtt.js and engines section of package.json.
Also had to change the client.connect()` call slightly to get it to work properly.
Related Issue(s)

#263
Checklist

[x] I have read the contribution guidelines
[ ] Suitable unit/system level tests have been added and they pass
[ ] Documentation has been updated

[ ] Upgrade instructions
[ ] Configuration details
[ ] Concepts

[ ] Changes flowforge.yml?

[ ] Issue/PR raised on FlowFuse/helm to update ConfigMap Template
[ ] Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

[ ] Includes a DB migration? -> add the area:migration label

These are the changes I needed to make to get #267 to work properly

Looks good ben but the whole workaround code can go in the bin now.
I would add a suggestion to save you messing on but its out of the touched code and GH wont let me.
        // PROBLEM: ipv6 ws addresses cannot connect
        // INFO: Calling mqtt.connect('http://[::1]:8883') fails with error  ERR_INVALID_URL
        // INFO: Calling mqtt.connect(new URL('http://[::1]:8883')) fails because `connect` only accepts a `string` or `url.parse` object
        // INFO: Calling mqtt.connect(url.parse('http://[::1]:8883') fails because unlike new URL, url.parse drops the square brackets off hostname
        //       (mqtt.js disassembles and reassembles the url using hostname + port so `ws://[::1]:8883` becomes `ws://::1:8883`)
        // INFO: WS src code uses `new URL` so when `mqtt.js` passes the reassembled IP `http://::1:8883`, it fails with error ERR_INVALID_URL
        // SEE: https://github.com/mqttjs/MQTT.js/issues/1569
        // eslint-disable-next-line n/no-deprecated-api
        const brokerURL = url.parse(this.config.brokerURL)
        const _url = new URL(this.config.brokerURL)
        brokerURL.hostname = _url.hostname

simply becomes
        const brokerURL = new URL(this.config.brokerURL)

Not merging until we decide the release strategy for this, as I think  we need to tag a NodeJS v14 support branch

Just a moment, rebasing to pick up the package-lock.json


"Prisma model does not have a findUnique method available" error using t.field relation

Hi,
I have a Prisma model named Constructor which gave some problems in the past already as I cannot simply do
prisma.constructor.findUnique({..}) because constructor here does not lead to the Prisma model..
I've worked around it by using prisma['Constructor'].findUnique({..}) and luckily this works; see below my Nexus Query type definition:
    queryType({
      definition(t) {

        t.field('constructor', {
          type: Constructor.$name,
          args: {
            id: nonNull(stringArg()),
          },
          resolve: (_parent, args, ctx) => {
            return ctx.prisma['Constructor'].findUnique({
              where: { id: args.id },
            })
          },
        })

        t.nonNull.list.nonNull.field('constructors', {
          type: Constructor.$name,
          resolve: (_parent, _args, ctx) => {
            return ctx.prisma['Constructor'].findMany({
              orderBy: {
                name: 'asc',
              },
            })
          },
        })

As I said this work and I can access both the constructor and constructors fields from GraphQL like:
query Constructor {
  constructor(id: "williams") {
    name
  }
}

Where it stops working is when I want to query relations on the Constructor model...
query Constructor {
  constructor(id: "williams") {
    name
    country {
      name
    }
  }
}

this is Nexus object definition:
objectType({
      name: Constructor.$name,
      definition(t) {
        t.field(Constructor.id)
        t.field(Constructor.name)
        t.field(Constructor.country)

and inside Prisma schema:
model Constructor {
  id         String   @map("id") @id
  name       String   @map("name")
  countryId  String   @map("country_id")
  country    Country  @relation(name: "ConstructorsByCountry", fields: [countryId], references: [id])

then I get the error:
{
  "errors": [
    {
      "message": "The prisma model Constructor does not have a findUnique method available.",
      "locations": [
        {
          "line": 4,
          "column": 5
        }
      ],
      "path": [
        "constructor",
        "country"
      ],
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "exception": {
          "stacktrace": [
            "Error: The prisma model Constructor does not have a findUnique method available.",
            "    at /workspace/my-project/node_modules/nexus-prisma/dist-cjs/generator/models/javascript.js:198:19",
            "    at field.resolve (/workspace/my-project/node_modules/apollo-server-core/dist/utils/schemaInstrumentation.js:56:26)",
            "    at executeField (/workspace/my-project/node_modules/graphql/execution/execute.js:479:20)",
            "    at executeFields (/workspace/my-project/node_modules/graphql/execution/execute.js:411:20)",
            "    at completeObjectValue (/workspace/my-project/node_modules/graphql/execution/execute.js:906:10)",
            "    at completeValue (/workspace/my-project/node_modules/graphql/execution/execute.js:633:12)",
            "    at /workspace/my-project/node_modules/graphql/execution/execute.js:484:9",
            "    at async Promise.all (index 0)",
            "    at async execute (/workspace/my-project/node_modules/apollo-server-core/dist/requestPipeline.js:205:20)",
            "    at async processGraphQLRequest (/workspace/my-project/node_modules/apollo-server-core/dist/requestPipeline.js:148:28)"
          ]
        }
      }
    }
  ],

I guess it's related to issues I had myself earlier when accessing prisma.constructor.findUnique({..}) directly... instead of prisma['Constructor'].findUnique({..})...
How does the Nexus Prisma plugin access the models and could this something that gets fixed in the plugin?
Or is there maybe a workaround I can implement myself?

At least I can do the following workaround by resolving the relation manually:
    objectType({
      name: Constructor.$name,
      definition(t) {
        t.field(Constructor.id)
        t.field(Constructor.name)
        // https://github.com/prisma/nexus-prisma/issues/201
        // t.field(Constructor.country)
        t.field({
          ...Constructor.country,
          async resolve(parent, _args, ctx) {
            const c = await ctx.prisma['Constructor'].findUnique({
              where: { id: parent.id },
              include: {
                country: true,
              },
            })
            return c.country
          },
        })

As my Constructor model has dozens of relations this is not desired but I think I can at least workaround it...

Maybe quite nasty, but this seems to works as well:
const prisma = global.prisma || new PrismaClient()

// @ts-ignore
prisma.constructor = prisma.Constructor


"Add" does not sync list for relative navigation

When adding a new file, relative navigation does not work as expected the first time it is used, navigating as if the file was not just added.
Here are a couple of examples:

Have 2 marks, be on the file with the second mark

Telescope to a third file

Add it to harpoon

Navigate to next mark

Expected: should go to file with mark 1. Observed: Nothing happens (I believe it goes from mark 2 to 3, navigating me to the same file).

Same scenario, but start from file with mark 1 before telescoping to the third file.

Add a mark and navigate to next

Expected to go to the file with mark 1. Observed: Goes to file with mark 2 (again, I believe it uses a previous state)

Here is my config:
return {
	"ThePrimeagen/harpoon",
	branch = "harpoon2",
    lazy = false,
	dependencies = {
        "nvim-lua/plenary.nvim",
        "nvim-telescope/telescope.nvim",
    },
	config = function()
		local harpoon = require("harpoon")

		-- REQUIRED
		harpoon:setup()
		-- REQUIRED

		vim.keymap.set("n", "<leader>h", function()
			harpoon.ui:toggle_quick_menu(harpoon:list())
		end)

		vim.keymap.set("n", "<leader>a", function()
            harpoon:list():add()
		end)

		-- Toggle previous & next buffers stored within Harpoon list
		vim.keymap.set("n", "<leader>f", function()
			harpoon:list():prev({
            ui_nav_wrap = true
        })
		end)
		vim.keymap.set("n", "<leader>j", function()
			harpoon:list():next({
            ui_nav_wrap = true
        })
		end)
	end,
}

ok...
this is a reason why i have always hated the prev and next stuff.  I keep a pointer internally to what file you have selected and increment / decrement it depending on whether you next or prev.
the hard part is once i get clever this could become very confusing for people.  What behavior would you like to see?

I agree that this could become very complicated very quickly. In my mind, the next and prev should not work based on the last navigation through harpoon, but rather through any navigation at all. In other words, if I have files foo and bar in my harpoon list, if I'm on foo, the next should be bar, always, and regardless of the last harpoon navigation done. This way of looking at things would also fix my particular issue of when a file is added the internal pointer not being updated.
If it helps with visualizing my issue, I use the harpoon extension for lualine, which looks like this:

In it, you can see that I'm currently on file 2 of my harpoon list. Looking at it you would expect my next to go to file 3, and prev to file 1, which may not be the result if I got to file 2 through Telescope or going to definition.
I'm not sure what would be the best way to approach this. I think my way of looking at this sort of navigation makes sense, but hearing your explanation of what is happening under the hood it also makes sense and makes me question if someone else is relying on this behaviour, in which case supporting my request would imply adding another config option.
Either way, thanks for the explanation and the great plugin.

Maybe - in the spirit of a harpoon - opening/selecting a buffer could update the internal pointer to the current item in the list, if there is a match!?
When adding the current buffer, it would select the added item as the current one.

@kimabrandt-flx this would definitely be a solution for the behaviour I'm looking for.

I've made an attempt at this, in #574.


Aki 2.2.0, "listsr","listr" commands do not work

As shown in the image, all items are marked as Common

.

Yes so it seems they removed this information, but we can guess using the related LootExperience:
https://github.com/sailro/EscapeFromTarkov-Trainer/commit/85c0b4302699cc8034c5d1a708ae386fab7c5cf6


how can we intregate this in react-native ios app?

is it available for only react native android app?

Hello @kuldeepworkid, this is available only for react native android as of now


Add py.typed file to enable typing downstream

the py.typed file is required by mypy to consider our package typed when imported/used in other projects.
Mypy documentation

If you would like to publish a library package to a package repository yourself (e.g. on PyPI) for either internal or external use in type checking, packages that supply type information via type comments or annotations in the code should put a py.typed file in their package directory.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (6368651) 100.00% compared to head (c966aef) 100.00%.
Report is 2 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##              main      #162   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           21        21
  Lines          485       485
  Branches        69        69
=========================================
  Hits           485       485

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

@thomasborgen The change looks good, BUT can you add in the pipeline another step such as mypy kaiba? This will ensure that the step didn't work before, and this will be an actual fix for the issue.

@ChameleonTartu we are running mypy in tests. poetry run mypy .
Not sure how we'd go about testing this, since this is only an issue downstream. Basically, if you install kaiba to use in another library or script, we need the py.typed file for mypy to do typechecking.
Since we can't install this branch's specific kaiba version in a github action (since its not published) I don't think theres any way to test this :<


Can't build for Android after upgrade to 2.2.0

From @chrisbenseler on March 13, 2017 10:51
Ionic version:  (check one with "x")
[ ] 1.x
[X] 2.x
I'm submitting a ...  (check one with "x")
[X] bug report
[ ] feature request
[ ] support request
Current behavior:
ionic build android
outputs:

ionic run android --device --prod

expressoapp@ ionic:build /home/christian/dev/projects/expresso-app-front
ionic-app-scripts build "--device" "--prod"

[07:50:57]  ionic-app-scripts 1.1.4
[07:50:57]  build prod started ...
[07:50:57]  clean started ...
[07:50:57]  clean finished in 1 ms
[07:50:57]  copy started ...
[07:50:57]  ngc started ...
[07:51:00]  build prod failed: Error encountered resolving symbol values statically. Calling function
'NoOpAnimationDriver', function calls are not supported. Consider replacing the function or lambda with a
reference to an exported function, resolving symbol AnimationDriver.NOOP in
<EMAIL_ADDRESS>resolving symbol BrowserTestingModule in
<EMAIL_ADDRESS>resolving symbol BrowserTestingModule in
<EMAIL_ADDRESS>
My package.json has

{
"dependencies": {
"@angular/common": "2.4.8",
"@angular/compiler": "2.4.8",
"@angular/compiler-cli": "2.4.8",
"@angular/core": "2.4.8",
"@angular/forms": "2.4.8",
"@angular/http": "2.4.8",
"@angular/platform-browser": "2.4.8",
"@angular/platform-browser-dynamic": "2.4.8",
"@angular/platform-server": "2.4.8",
"ionic-angular": "2.2.0",
"ionic-native": "2.4.1",
"ionicons": "3.0.0",
"ng2-translate": "5.0.0",
"rxjs": "5.0.1",
"sw-toolbox": "3.4.0",
"zone.js": "0.7.2"
},
"devDependencies": {
"@ionic/app-scripts": "1.1.4",
"@types/jasmine": "2.5.38",
"@types/node": "6.0.42",
"angular-cli": "1.0.0-beta.26",
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"codelyzer": "^2.0.0",
"compodoc": "0.0.37",
"core-js": "^2.4.1",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "3.2.0",
"karma": "1.4.0",
"karma-chrome-launcher": "2.0.0",
"karma-cli": "1.0.1",
"karma-jasmine": "1.1.0",
"karma-mocha-reporter": "2.2.2",
"karma-remap-istanbul": "0.4.0",
"mocha": "^3.0.2",
"ts-node": "2.0.0",
"tslint": "4.4.1",
"tslint-eslint-rules": "3.4.0",
"typescript": "2.0.9",
"wdio-mocha-framework": "^0.5.4",
"wdio-phantomjs-service": "^0.2.2",
"wdio-spec-reporter": "0.0.5",
"webdriverio": "^4.2.16",
"yargs": "^6.0.0"
},
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard",
"cordova-open",
"cordova-plugin-google-analytics",
"cordova-plugin-camera",
"cordova-plugin-crop",
"cordova-plugin-file",
"cordova-plugin-inappbrowser",
"cordova-plugin-app-version",
"cordova-plugin-datepicker",
"com-sarriaroman-photoviewer",
"onesignal-cordova-plugin"
],
"cordovaPlatforms": []
}

My ionic info
Your system information:

Cordova CLI: 6.3.1
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.0
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v7.6.0
Xcode version: Not installed

Copied from original issue: driftyco/ionic#10754

The problem is the flag --prod
Without it the build/run is ok(but then the app takes too long to load).

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

The problem is with the "page-name.component.ts" file that is created when you use the "ionic generate page" command.
Create your pages manually and run it (ionic run android --prod) or (ionic run android --prod) again.
it worked for me.
Home they fix it soon.


chore(main): release 1.5.1-beta

:robot: I have created a release beep boop
1.5.1-beta (2023-09-26)
Bug Fixes

modified publish command (c07476d)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/appblocks-hub/BB-CLI/releases/tag/v1.5.1-beta :sunflower:


Update golang.org/x/crypto import paths to new location.

We should remove the whitespace between import paths, since each is now under "github.com/btcsuite/*"

Done.

Coverage remained the same at 90.66% when pulling 677061f8486b0629b880c07f759030f3c884312d on davecgh:cryptopath into 499e9e0daa5be5eb34fb6e5efc091d245b38edcf on btcsuite:master.

Coverage remained the same at 90.66% when pulling ff58d6571d21c0a8478befc038afd07b56bc0549 on davecgh:cryptopath into 499e9e0daa5be5eb34fb6e5efc091d245b38edcf on btcsuite:master.


Fix DD for Qdrant

Description

This PR fixes an issue that prevented reporting metrics to DD since it accepts only seconds for the timestamp. Tested locally.
Risk

Deploy Plan

PMRR.


Add SonarCloud

@ilnarkhasanov should be this:
sonar.projectKey=yegor256_cam2
sonar.organization=yegor256

@yegor256
Sorry, but I am afraid SONAR_TOKEN secret is not set up

Maybe you added a secret to the "Environment secrets", not to the "Repository secrets"?

@ilnarkhasanov I believe you did everything right. let me try to fix it if doesn't work


Feature Request: Add option to disable UAM for 'X' amount of time if glucose hits 'Y'

To avoid hypo treatment related UAM spikes. I thought it would be cool if there was an option to turn UAM off automatically if a glucose hits a certain level, X, and then turn back on after Y amount of minutes.

I think it's better you test this in middleware first. Then if you find your experimental code good and helpful we could consider adding it to the dev repo for more testing.

Closing based on comments above. Can open a PR when code is ready for review


Try to resize data and metadata loopback file when initiating devicemapper

Signed-off-by: Chun Chen<EMAIL_ADDRESS>Partially fix https://github.com/docker/docker/issues/14895
ping @vbatts

Test mannualy on my laptop with TESTFLAGS='-check.f DockerSuite.TestInspectExecID' make test-integration-cli, failed test seems not related.

@chenchun sorry need a rebase.
Ping @vbatts

/cc @rhvgoyal

Fix failed tests. I think failed tests of windows is not related.

Yes, I think it makes devicemapper driver more easier to use. While currently the pool can only be increased manually.

I don't think you need to modify ResizePool(). That's for resizing the pool on the fly.
Your use case seems to be that when docker starts, you can grow the size of loopback files based on command line options. So why not simply grow the size of loopback files in initDevMapper() before pool actually is created.
That should make sure new pool is of right size. There is no need to call into LoopbackSetCapacity(), no need to suspend pool and reload table etc.
By changing the signature of ResizePool() you might be breaking contrib/docker-device-tool/device_tool.go. Though I don't know how well does it work.
Anyway, point being that grow the loop files before pool is created and that should simplify it.

Thanks very much for the suggestion. Please forgive me for doing resize like this cause I'm newbie to loopback device and devicemapper and I found ResizePool can help accomplish this. I'll update the PR lately.

@rhvgoyal, updated PR to address your comments.

Looks like you've got an unused import.

@rhvgoyal Thanks for the suggestion, I changed the function name to TestChangeDevmapperLoopBackSize. Is that ok?

Changing function name is fine but if you split it in two, that is even better. One will test shrinking the size and other will test growing the size.

OK, splited the tests.

I have not tested it but conceptually patch looks good to me.

LGTM

Tests passed. Can you take a look again, @cpuguy83 @tiborvass ?

@tiborvass updated to fix your comments. Janky tests passed and windows tests somehow not started.

@rhvgoyal have you had time to test?

@jfrazelle
Not yet. If merging of patch is dependent on my testing, I will give it a try on Monday.

cool thanks!
On Fri, Sep 11, 2015 at 1:51 PM, Vivek Goyal<EMAIL_ADDRESS>wrote:

@jfrazelle https://github.com/jfrazelle
Not yet. If merging of patch is dependent on my testing, I will give it a
try on Monday.
—
Reply to this email directly or view it on GitHub
https://github.com/docker/docker/pull/15021#issuecomment-139658395.

@chenchun
This patch seems to grow pool fine for me. Just that some information in "docker info" does not seem to be right. May be it is not related to your patch but still might require fixing.
Data Space Used: 1.821 GB
Data Space Total: 429.5 GB
Data Space Available: 28.38 GB
Should't data space available be equal to Total - Used. But that does not seem to be the case.

@rhvgoyal , I think it's because the actual available device is less than 28.38 GB in your case https://github.com/docker/docker/blob/master/daemon/graphdriver/devmapper/deviceset.go#L1935
I suggest to remove those lines https://github.com/docker/docker/blob/master/daemon/graphdriver/devmapper/deviceset.go#L1934-L1946 and let users to care about real disk spaces. WDYT?
Given it is not related to my patch, can we fix it in a separate PR?

@chenchun Ok, let us fix that issue in a separate PR.
LGTM.

ping @jfrazelle @tiborvass

Thanks LGTM

Addressed @vbatts's comments.

Cool. LGTM

LGTM