Default theme not included in published binary

Currently the published binary does not include the default theme.
What could work
// Cargo.toml
...
include = ["themes/default/**"]
...

// build.rs
...
    // Copy default theme files
    let manifest_dir = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap());
    let theme_dir = manifest_dir.join("themes/default");
    copy_dir_all(theme_dir, &dest_path).unwrap();
...

Ended up including themes, also themes weren't correctly being discovered because env OUT_PATH doesn't exist


com.whatsapp - calling issue

@Alex-302 commented on Mon Dec 27 2021
@adguard-bot commented on Fri Dec 03 2021
Issue URL (Incorrect Blocking)
https://play.google.com/store/apps/details?id=com.whatsapp&hl=en
Comment
Username: @ihrubab

After yesterday's update to v3.6.5 beta 1, whenever I call or receive a call from Facebook Messenger or the WhatsApp Messenger app, it gets stuck at "Connecting" and never connected. If I turn Off Adguard or disable Adguard Protection in app management, I can call and receive calls without any problems.
This problem started happening after yesterday's Adguard update.

Screenshots

Screenshot 1

Screenshot 2

System configuration

Information
value

Platform:
Android 11

AdGuard product:
AdGuard for Android v3.6.5 beta 1 (35)

AdGuard mode:
VPN

Filtering quality:
High-quality

HTTPS filtering:
enabled

Stealth mode options:
Hide your search queries, Send Do-Not-Track header, Remove X-Client-Data header from HTTP requests, Block third-party Authorization header, Self-destructing third-party cookies (180), Block WebRTC, Block Push API, Hide your Referrer from third-parties (), Hide your Referrer from third-parties, Hide your IP address (<IP_ADDRESS>)

DNS filtering:
server: https://dns.adguard.com/dns-queryfilters: https://filters.adtidy.org/android/filters/15_optimized.txt

Filters:
Ad Blocking:Peter Lowe's Blocklist, AdGuard Base, AdGuard Mobile AdsPrivacy:Fanboy's Anti-Facebook List, AdGuard URL Tracking, AdGuard Tracking Protection, Fanboy's Enhanced Tracking ListSocial Widgets:Fanboy's Social Blocking List, AdGuard Social MediaAnnoyances:Fanboy's Annoyances, AdGuard Annoyances, Web Annoyances UltralistSecurity:Online Malicious URL Blocklist, NoCoin Filter List

Userscripts:
https://userscripts.adtidy.org/release/adguard-extra/1.0/adguard-extra.meta.js

@Chinaski1 commented on Mon Dec 27 2021
Block WebRTC causes this issue.

This is kinda known issue, some apps rely on WebRTC and blocking it may be problematic.
We need to provide an option to disable stun/turn blocking on per-app basis to filters maintainers: https://github.com/AdguardTeam/CoreLibs/issues/1567
@sfionov would this help?
*$stealth,app=com.whatsapp

The issue is worse than we thought:
https://github.com/AdguardTeam/AdguardForAndroid/issues/4080

Any news on this critical issue?

The patch is on the way

The patch is on the way

@ameshkov: Any ETA yet?
Many thanks!

@Xophile currently in beta channel, should be ready for stable in a couple of days.

@Xophile currently in beta channel, should be ready for stable in a couple of days.

That was quick ;)
I run the nightly builds on Android and did not see anything relating to this issue in the latest update.

@Xophile as I recall it's resolved in the nightly channel already. Do you experience any issues now?


Implement Basic UI for Tool Selection

Description:
As a user,
I need to select a tool from a list of available tools
So that the selected tool loads and displays the manifest data.
Update UI tools component that allows users to select from a list of available tools. Once selected, the tool should be loaded with the manifest data.
Acceptance Criteria:

[ ] Load the selected tool when a user makes a selection.
[ ] Ensure the tool uses the selected manifest data.

I will work on this


CI: bundletester 40-security-check failure in 1.10

K8s-core with 1.10/edge failed test_bundletester:
https://ci.kubernetes.juju.solutions/job/test-cdk/466/testReport/junit/(root)/bundle/40_security_check_py/
======================================================================
FAIL: test_basic (__main__.IntegrationTest)
Test the effect of changing the admin password
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/bundletester-LT1C8I/canonical-kubernetes/tests/40-security-check.py", line 77, in test_basic
    self.assertEqual(status, 200)
AssertionError: 404 != 200

Charms were from the beta channel:
App                Version  Status  Scale  Charm              Store       Rev  OS      Notes
easyrsa            3.0.1    active      1  easyrsa            jujucharms   38  ubuntu
etcd               3.2.9    active      1  etcd               jujucharms   76  ubuntu
flannel            0.9.1    active      2  flannel            jujucharms   51  ubuntu
kubernetes-master  1.10.0   active      1  kubernetes-master  jujucharms   99  ubuntu  exposed
kubernetes-worker  1.10.0   active      1  kubernetes-worker  jujucharms  111  ubuntu  exposed

Snaps on k8s-master were from edge:
$ snap list
Name                     Version    Rev   Developer  Notes
cdk-addons               1.10.0     378   canonical  -
core                     16-2.31.2  4206  canonical  core
kube-apiserver           1.10.0     385   canonical  -
kube-controller-manager  1.10.0     375   canonical  -
kube-scheduler           1.10.0     384   canonical  -
kubectl                  1.10.0     384   canonical  classic

FYI, 40-security-check.py lives in the bundletester tests:
https://github.com/juju-solutions/bundle-canonical-kubernetes/blob/master/tests/40-security-check.py


Synchronous root_dir setting contributes to suboptimal load times

Issues

[X] I have checked existing issues and there are no existing ones with the same request.

Feature description
Implement support for asynchronous root_dir setting.
Right now, it uses synchronous root_pattern and gets executed on FileType events. Since root_pattern uses blocking FS operations, this can add noticable time delays to startup time. It does so on my NFS system, where I need to wait 2-5s during initial start up.
Help
Yes
Implementation help
Guidelines on what kind of interface or breaking changes you would be fine with in order to get it done.

Have been busy recently, someone feel free to take the job, thanks! :)

I intend to take a look.


scrcpy opens with small black borders

When you open scrcpy it tries to get rid of all the black borders.
Which is a good thing.
But at the bottom there's still a very thin black border.
If you press [Ctrl]+[X] to “remove black borders”,
you'll notice it does actually trim it up a little more.
It would be good if it opened this way (completely trimmed) by itself.

Could you post screenshot on start and after Ctrl+X, please? And the resolution printed in the console.

I've uploaded an animated gif comparison here.
The screenshot I took as soon as it opened up was (536×954).
The screenshot I took after Ctrl+X was (536×952).
There's a (536×1) horizontal line along the top, and one along the bottom.
The console says:
INFO: Initial texture: 1080x1920

I cannot reproduce.
Which OS (on the computer)?

Windows 10 64-bit.
Could it have something to do with the fact that I downsized my Nexus 6P's screen from 1440p to 1080p?

I set it back to 1440p.
Problem persists.

Could you test again on current dev branch, please?
e40532a3761da8b3aef484f1d435ef5f50d94574 should fix the issue.


Static deployment of V3 does not work for DicomJson

Describe the Bug
Have pulled data from V3 stable branch. When run locally, the dicomjson works well and displays iamges by using following url pattern : http://localhost:3000/viewer/dicomjson?url=https://ohif-dicom-json-example.s3.amazonaws.com/LIDC-IDRI-0001.json.
After that we've built the code for production, copied the content of 'dist' folder to static website. This is done by using Azure blob storage and copying files to '$web' container. When navigated to the static website URL, the initial sample data loads. However when called for the viewer/dicomjson , it fails with error 'Content not found'.  Please advise.

Most likely you need to setup a fallback from 404 to index.html, read the end of https://docs.ohif.org/configuration/dataSources/dicom-json


Create EthereumAddressFastBinaryField

Faster than EthereumAddressBinaryField as it does not involve EIP55 checksums
Depends on #835 to be merged first

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

72 of 79 (91.14%)  changed or added relevant lines in 8 files are covered.
4 unchanged lines in 4 files lost coverage.
Overall coverage decreased (-0.07%) to 93.503%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

gnosis/eth/django/validators.py
6
9
66.67%

gnosis/eth/django/models.py
16
20
80.0%

Files with Coverage Reduction
New Missed Lines
%

gnosis/eth/ethereum_client.py
1
86.12%

gnosis/safe/tests/utils.py
1
60.0%

gnosis/eth/clients/ens_client.py
1
59.38%

gnosis/safe/safe_tx.py
1
90.97%

Totals

Change from base Build<PHONE_NUMBER>:
-0.07%

Covered Lines:
8131

Relevant Lines:
8696

💛  - Coveralls


Just wondering whether or how "Taiwan" is handled?

I see a treatment of Palestinian Occupied Territories which seems appropriate.  Is "Taiwan" a similarly complicated case?

I've been looking in the OWL files and for some reason, Taiwan seems to be
missing.  I'm looking at the source data I used to create the OWL files and
don't see Taiwan there either.
I'm going to log an issue on the tracker.  We're pretty busy right now, but
I should have the situation resolved in about two weeks.
In the meantime if you have suggestions on how to handle Taiwan's unique
status (sovereign state vs. dependency), I'm all ears.
On Thu, Apr 28, 2016 at 1:00 PM, Damion Dooley<EMAIL_ADDRESS>wrote:

I see a treatment of Palestinian Occupied Territories which seems
appropriate. Is "Taiwan" a similarly complicated case?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/ufbmi/geographical-entity-ontology/issues/1

I see this is already logged as an issue.

K, thanks, and no rush.  Taiwan is a tough one.  Just reading wikipedia on it makes my head spin.  Not quite as bad as bangladeshi-Indian 1st/2nd/3rd order enclaves but still a doozie.  No advice to offer!
Damion
From: Bill Hogan <notifications<EMAIL_ADDRESS>Reply-To: ufbmi/geographical-entity-ontology <reply<EMAIL_ADDRESS>Date: Friday, April 29, 2016 at 4:55 AM
To: ufbmi/geographical-entity-ontology <geographical-entity-ontology<EMAIL_ADDRESS>Cc: Damion Dooley <damion.dooley<EMAIL_ADDRESS>Author <author<EMAIL_ADDRESS>Subject: Re: [ufbmi/geographical-entity-ontology] Just wondering whether or how "Taiwan" is handled? (#1)
I've been looking in the OWL files and for some reason, Taiwan seems to be
missing. I'm looking at the source data I used to create the OWL files and
don't see Taiwan there either.
I'm going to log an issue on the tracker. We're pretty busy right now, but
I should have the situation resolved in about two weeks.
In the meantime if you have suggestions on how to handle Taiwan's unique
status (sovereign state vs. dependency), I'm all ears.
On Thu, Apr 28, 2016 at 1:00 PM, Damion Dooley <notifications<EMAIL_ADDRESS>wrote:

I see a treatment of Palestinian Occupied Territories which seems
appropriate. Is "Taiwan" a similarly complicated case?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/ufbmi/geographical-entity-ontology/issues/1

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com/ufbmi/geographical-entity-ontology/issues/1#issuecomment-215692638

After a bit of background research, we've come to the conclusion that Taiwan meets the definition for 'de facto sovereign state' (i.e., sovereign state), but does not meet the definition for 'de jure sovereign state' (i.e., a state whose sovereignty is acknowledged by the international community, which is the UN). The rationale behind this can be found at GEO's Wiki.
Our current definition for 'sovereign state', which is borrowed from the Montevideo Convention, refers to de facto state. As such, in order to represent Taiwan, we'll need to create a class for de jure state, which I'll propose a definition for below:

A sovereign state whose political sovereignty has been recognized by the United Nations, in accordance with international law.

We will then want to move all OWL individuals that currently are rdf:type "sovereign state" to rdf:type "de facto sovereign state." We should also, presumably, add a comment or two to this class that briefly clarifies the process through which a state receives international recognition (i.e., through full membership to the UN), and that this membership supersedes all other claims to that state's sovereignty.

Just to be clear, all the nation instances in GEO are already rdf:type sovereign state (de facto state).   They all need to be moved to de jure sovereign state.  Then we can add Taiwan and others as de facto states.


Deprecation warnings during tests when shots==1

After #435, there are a number of tests that result in DeprecationWarnings during _validate():
DeprecationWarning: The behavior of getting statevector from simulators by setting shots=1 is deprecated and will be removed. Use the local_statevector_simulator instead, or place explicit snapshot instructions.

test/python/test_qasm_simulator_cpp.py::TestLocalQasmSimulatorCpp::test_conditionals
test/python/test_qasm_simulator_cpp.py::TestLocalQasmSimulatorCpp::test_qobj_reset
test/python/test_qasm_simulator_cpp.py::TestLocalQasmSimulatorCpp::test_qobj_save_load
test/python/test_qasm_simulator_cpp.py::TestLocalQasmSimulatorCpp::test_qobj_single_qubit_gates
test/python/test_qasm_simulator_cpp.py::TestLocalQasmSimulatorCpp::test_qobj_two_qubit_gates
test/python/test_qasm_simulator_py.py::TestLocalQasmSimulatorPyPy::test_qasm_simulator_single_shot

Can we update the tests accordingly so they do not produce such warnings?
Additionally, while looking at the _validate() methods:

can we make the _validate() methods for the statevector simulators emit logger.warning instead of logger.info when the number of shots is different than 1? This would make the message visible to the user by default, and let them know the simulator is ignoring his value for shots  instead of silently dropping it, fitting better into the severity levels.
is there the possibility that the user might be interested in running a program against a QASM simulator with just 1 shot (ie. not assuming always that it will imply that the user wants to use a statevector simulator)?

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

Version used:
Environment name and version (e.g. Python 3.6.1):
Operating System and version:

This will be address by @ajavadia #422

@diego-plan9  I submitted patch #458 for the first issue.
The second one is resolved in #422, which i think we can merge soon after the release.
The third issue: no, that's why we distinguished the qasm simulator from statevector simulator. With qasm, the assumption is you are getting some measurement result. So with one shot, you only get a random number, which isn't useful at all. You would want to do many shots to get output histograms. With statevector simulator, you do get the full probability distribution so one shot is enough.

Both qasm_simulator_py and qasm_simulator_projectq calculate a classical state if the number of shots is 1.
What is the plan for the classical state, now that we distinguish between qasm and statevector simulators?
Possibly what makes sense is that the qasm simulators will provide the option of saving the classical state for each snapshot. Then the statevector simulators will provide not only the state vector in the final snapshot but also the classical state.
What do you think?


Move terraform.py to a separate top-level CiscoCloud project

@stevendborrelli suggested today that we move terraform.py to it's own repo. I think that could make sense, but wanted to get the team's feedback.
Pros:

terraform.py is tested separately, and checkins can automatically be tested with Travis or Wercker and their ilk.
the inventory module should follow the release schedule of Terraform instead of microservices-infrastructure, and a separate module would allow that
separate documentation
more cool projects in top-level CiscoCloud, higher discoverability

Cons:

how do we get the module into MI for deployments? git submodules seem like an obvious solution, and work for other projects. This creates an extra step for users, though.
could create chains of pull request dependencies. (However, we deal with this already for mesos-consul and marathon-consul and it's not too bad.)

I'd like to hear a :+1: or :-1: vote from the following:

[ ] @keithchambers
[ ] @stevendborrelli
[ ] @ChrisAubuchon
[ ] @ryane
[x] @brianhicks :+1: (I think it would be a good idea)

Honestly I would try to KISS and leave it in the same repo.

I can see both perspectives on this one, but if it is in a repo and actually published to pypi as a project then it is as simple as pip install to integrate and use.
I was already trying to think through this myself as now I'll need the same plugin within my project for dynamically discovering my env to do deploys of the containers that make of my service. I had built one for working specifically with openstack but now with terraform it makes more sense to leverage that product that comes from it instead of thinking about openstack only.
I think some refactoring is going to be required as right now each and every cloud provider results in another function to map data from terraform into MI. That could be potentially as simple as a template that maps attributes within terraform to MI such that providing the template for a given providers to the plugin enables the necessary mapping.

I actually think it should be in both places. We have conflicting goals:

make microservices-infrastructure awesome & easy to use
create tools that are useful beyond the project and benefit others

For 1), we want to keep it in the MI repo, and for 2), we'd want it in a separate project.
If we go with a separate project, we should just copy tested releases into MI so that the user never has to do anything. I don't want to do git submodules or pip install.
If I had to pick one, it would be to keep it in MI, as that is our highest priority. I'm also ok with separate project & copying in to MI.

We're looking at this (or something very very similar) as well as part of https://github.com/Capgemini/Apollo. There might be an opportunity to collaborate here on a separate 'terraform inventory' project ?

@tayzlor: that sounds like a great opportunity to collaborate. Worst case
we can share changes between repos, but it sounds like it would be best to
separate the code into a common repo for that.
@steve: there are enough maintenance tasks (releases, doc building, etc)
that I've been thinking we need a makefile or something to standardize.
This sounds like an ideal rule!
Overall I'm surprised at people saying they'll need it in a separate
project. @kenjones-cisco's comment included, we'd need to include it in
three different projects. Three tends to be my cutoff for extracting common
code into a separate module, so I'm going to go ahead and do that unless
anyone has any more objections.
@keithchambers: I think that with the level of copying it might actually be
simpler to have an authoritative master copy, to cut down on confusion from
duplicates. Does that address your concern?

@BrianHicks so we are doing the separate project?
@tayzlor collaboration sounds great. I think there are a few more places we can share ideas and code.

Yeah, I think so in this case. I'll get it set up on Monday. For now we can release versions in lock-step with MI, so 0.3.0 will be released first.

I've copied terraform.py to a new repo, we will copy it in for releases.
https://github.com/CiscoCloud/terraform.py


add gateway timeouts

I also cleaned up all TODOs in the gateway and added golint. I think all of the major things have been addressed, all that remains is more documentation.

A small nitpick with the commits. It makes reviewing a little cumbersome if there are frequent commits that fix previous mistakes (bd21891469d90dc182c8a73f8ead824ae35db0e1 and 431526cb2a199bdad5abb8f05dbb6e11773e270e). Could you do an amend or fixup instead?

I amend them if they are the most recent commit, but since we are doing signing I try as much as possible not to rebase, because it destroys the signatures

why is it a problem to overwrite a signature?

fixed the comments, should be good to go now.


change 'fetching ...' to locale translation support

change 'fetching ...' to locale translation support

@slametps thanks for the contribute. i will merge your pr this weekend. I will add another feature plus  yours change.


Bump up etcdadm-controller to v1.0.13

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/woof

/approve

/cherry-pick release-0.17


Add failing tests for issue 978

These are failing test cases for https://github.com/kbknapp/clap-rs/issues/978.
I've done a little work to get them passing, but haven't succeeded yet, and probably won't have time to do so in a timely manner.

This change is

@willmurphyscode no worries! Thanks for starting this, I can pick it up and continue working on it 😄

Closed in favor of #1070


ASPNETCORE_ENVIRONMENT not used after 3.1 upgrade

I am in the process of upgrading an application from ASP.NET Core 2.1 to 3.1, and when I deploy to our test server, the application is no longer reading from the ASPNETCORE_ENVIRONMENT variable.  The variable is set to "TEST" on the server, but the application is running with development settings.  I updated the Program.cs to use ConfigureWebHostDefaults as indicated in this article, but that does not make no difference.  Is there some other reason the application would not using the ASPNETCORE_ENVIRONMENT variable?

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

ID: ceffa6a2-770c-1cd9-5145-dcd423f9dd22
Version Independent ID: 1cb5eb30-dd84-e5e1-5826-d74243fabf04
Content: Use multiple environments in ASP.NET Core
Content Source: aspnetcore/fundamentals/environments.md
Product: aspnet-core
Technology: aspnetcore-fundamentals
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

I was only able to get it the application working after adding Test to the .pubxml, but it's not clear to me why that is necessary  in 3.1 when it was not in earlier versions.  The documentation above says this puts the environment name in the web.config.  Should this be necessary?  Shouldn't the application  be able to read the value from the global environment variable on the server?

<EnvironmentName>Test </EnvironmentName>

See this in the doc
The About page from the sample code includes the preceding markup and displays the value of IWebHostEnvironment.EnvironmentName.

So do I understand correctly that ASP.NET no longer uses environment variables for web applications hosted in IIS?  It uses the web.config instead?  Any perspective on why this was changed in ASP.NET Core 3?

So do I understand correctly that ASP.NET no longer uses environment variables for web applications hosted in IIS? It uses the web.config instead?

Why do you say that?
The doc suggests exactly what you did.

What I did is set the environment via the web.config as a work around because the application is not reading the value from the system defined ASPNETCORE_ENVIRONMENT variable from the server as expected.  My question is, why doesn't the application use the system variable anymore?  A web config setting can be changed by any developer with access to the code, whereas an environment variable can only be set by a server admin.

If ASPNETCORE_ENVIRONMENT is not set, it defaults to Production.

the application is not reading the value from the system defined ASPNETCORE_ENVIRONMENT variable from the server

How did you determine that?

The ASPNETCORE_ENVIRONMENT system variable on this server is set to "Test", but the application is using Development settings (unless I set the EnvironmentName config setting).  Not sure why it's using Development settings if the default is production though.  As I mentioned - this is an existing application using it's existing test server and the issue started after upgrading from 2.1 to 3.1.

You need to read and understand this doc. You should try to reproduce the problem with a new app to help you figure out the bug(s) in your code.

I have read the document more than once and am posting a question because what I experienced in my own application / environment was not consistent with what the document indicated, so I was trying to get clarification that I understood correctly.  If you had answered my original question by saying - "No, you should not have to set the environment via the web.config, there must be something else going on." - then I would have found the issue more quickly and not wasted more of your time with additional posts.
At this point I've found the issue, but am not sure how to prevent it.  It appears that since I upgraded to 3.1, environment variables are getting added to the web.config every time I run the application locally to debug.  So my web.config has the ASPNETCORE_ENVIRONMENT set to Development, and if I remove it, the setting just gets re-added the next time I run locally.  Any idea why this happening, and how I can prevent the behavior?
Here is my web.config before the upgrade:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="true" startupTimeLimit="3600" requestTimeout="00:05:00">
      <environmentVariables />
    </aspNetCore>
  </system.webServer>
</configuration>

And here it is after the upgrade, and after running locally:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="true" startupTimeLimit="3600" requestTimeout="00:05:00" hostingModel="InProcess">
      <environmentVariables>
        <environmentVariable name="ASPNETCORE_HTTPS_PORT" value="44311" />
        <environmentVariable name="COMPLUS_ForceENC" value="1" />
        <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
      </environmentVariables>
    </aspNetCore>
  </system.webServer>
</configuration>

You can reproduce this behavior if you create a brand new 3.1 Razor Pages Project in VS, and add a web.config with these contents (minus the environment variables section).  When you run the application the environment variables section will get added.  This did not happen in 2.1, why is it happening in 3.1, and how can I prevent it?

It appears this is issue is already being tracked here and a fix is planned for VS 2019 16.6.
Please update this documentation to call out the issue, or perhaps add it to the existing warning here.  It sounds like quite a few users have inadvertently overwritten production environment settings due to this issue.

Sorry - that second link should be this.

Open an issues for Configuration with web.config
cc @guardrex

@danobri ... I take it that when you say ...

are getting added to the web.config every time I run the application locally to debug

... you're debugging via IIS locally and don't want to use the app's non-IIS, Kestrel-based debugging profile. Debugging with IIS locally is a pattern that devs use, of course, but many just run the app on Kestrel and don't debug with IIS/web.config; therefore, that's one way to avoid it.
I wasn't aware that recently VS started doing something on its own with web.config that you couldn't easily stop. One can prevent the SDK from messing with the web.config with your own web.config sitting in the project folder and then publishing with ...
dotnet publish /p:IsWebConfigTransformDisabled=true

https://docs.microsoft.com/aspnet/core/host-and-deploy/iis/transform-webconfig#prevent-webconfig-transformation
... or even simpler, add the  property to the project file ...
<PropertyGroup>
  <IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
</PropertyGroup>

https://docs.microsoft.com/aspnet/core/host-and-deploy/iis/#webconfig-file
It sounds like you tried these approaches and VS isn't respecting them ... only the SDK is respecting them.
The other angles to at least temporarily solve this are to either (and these are probably on that issue you linked, I didn't look at the full discussion) ...

Transform the web.config might work after VS messes with it.

Don't deploy the web.config at all from the project to the server. Remove it post-publish from the publish folder. Leave your good working copy on the server and don't overwrite the full app on deployment. You can try this and see if it ✨ Just Works!:tm: ✨ ...
<Target Name="RemoveWebConfigFromDeployment" AfterTargets="AfterPublish">
  <Delete Files="$(PublishDir)\web.config" />
  <Delete Files="$(PublishUrl)\web.config" />
</Target>

When you go to test that, delete your bin folder first to make sure it doesn't leave a prior copy of the file sitting there. When you publish, it should 🤞 be Hasta la vista, amigo!
... and use both Deletes there because IIRC the PublishDir path takes care of the CLI case and the PublishUrl path takes care of the VS case.

Thanks for the additional suggestions - I'll probably just stick with setting the EnvironmentName in the pubxml as a workaround until the VS update is released.
So will someone update the documentation on ASP.NET Core environment variables to call out this pending issue?  It seems like a fairly nasty issue since it can result in a dev unknowingly turning their production environment into a dev environment.

It's almost documented ... in the sense that it isn't cross-linked properly.
https://docs.microsoft.com/aspnet/core/host-and-deploy/aspnet-core-module#set-environment-variables
... doesn't cross-link to ...
https://docs.microsoft.com/aspnet/core/host-and-deploy/visual-studio-publish-profiles#set-the-environment
The happy path is if the dev knows they should read the publish profiles doc ... they have to :eyes: see it there and know they should read it. It's not going to be clear to many/most that that's the case.
@Rick-Anderson, do you want me to do a little something with this? I think a couple of cross-links and perhaps a sentence or two will clear it up in a stable way that the team won't have to revert later. Since the docs don't say anything about the SDK/VS modifying the file outside of the default to Production on publish, I don't think that engineering's fix will result in any change to the doc set later.


fix(module:carousel): support SSR

close #4292
PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
[x] Yes, all custom strategies should add the forth parameter to their constructors
[ ] No

Other information

@wendellhu95 rebase


fix(iscsi): use correct upstream default for MaxR2TPerConnection

Upstream SPDK defaults to 4 for MaxR2TPerConnection, not 64, so
"PDU Pool" was 16X larger than it needs to be.
Fixes: 682e802 ("mayastor: Build against SPDK 20.10")

bors merge


update readme and changelog

Purpose

Prepare the master for releasing Optimus v2.0.0

Changes

Update Changelog and readme

Review Instructions

Make sure I haven't missed anything that needs changing

Doesn't the wdl itself also contain a version number that should be updated?


Add min_etjump key to the world spawn to allow specifying minimum requirements

min_etjump 230 if lower version is used, server will disconnect with informative message. This way we can avoid some random crashes happening on servers that may not be able to support all features of the map.

Possibly add version checking entity(s) that will fire script block or other entities based on mod version matching.
As an idea add etjump_version_target_relay or extend target_relay to fire targets only if specific etjump version(s) are matched.

Possible implementation: Add PM_FREEZE to all connected players and print the reason ("Map requires ETJump >2.6.0, server has 2.3.1").


Create Spectrum Fusion recipe for License Service Reporter

What this PR does / why we need it:
Updated the Spectrum Fusion recipe to include groups and condition check (hook) to backup and restore LSR operator and resources
Which issue(s) this PR fixes:
Issue 63682
Cherry-pick: https://github.com/IBM/ibm-common-service-operator/pull/2044

/lgtm


Move all IDs to ID instances.

We should make all ids to be ID objects everywhere except on the wire (and in data stores and recipes).

I think @csilvestrini is doing this, is it done?


[reqesest] permission to disable login

Yes, i agree. If this plugin could allow the admin to deny registration it would be much more versatile

https://www.spigotmc.org/resources/disable-commands.31922/ this works good


Can you change the license to MIT?

I would like to contribute some work if the license is MIT. GNU need a lot of extra work

I'm not opposed to switching to the MIT license but I would like to try to understand why the license would need to be changed before you would contribute work to this project. What specific things in the GNU GPL do you not like?

Since there has been no response to my follow up question I'm going to close this for now. I am not opposed to changing the license but would like some decent arguments posed as to why the current GNU license is a bad choice.

I've changed the license has been changed to MIT.


phpdoc_annotation_without_dot incorrectly lowercases the first letter of an acronym

For instance:
    * @param string $ipAddress IPv4 or IPv6 address as a string

is turned into:
    * @param string $ipAddress iPv4 or IPv6 address as a string

Note the "iPv4".

Thanks for the report!
I think it would be a nice addition if the fixer would no longer apply the lowercasing if the first two characters of the first word are uppercase or if the those characters are numbers or any are any of the characters -_:\/.
So for example the following will not be changed; IPv4, ISO 9001, E-abc, 1Up, etc.
Help on this would be appreciated, especially as we are trying to wrap up for the upcoming releases, let us know if you can help out and we will help you to get the changes done :)

probably target is 2.2, not master branch


ElementClickInterceptedException

ElementClickInterceptedException: element click intercepted: Element <button type="button" id="#...Button" class="btn btn-primary">Accept</button> is not clickable at point (1154, 485). Other element would receive the click:
...

  (Session info: chrome=114.0.5691.0)

They probably updated their UI.

if so, what would be a new fix?


DAT/CSV files location fix, w_dir_main

@alvarovm please check my latest comment from issue #152 and let me know if we can close this PR.


add timestamp option for forever.load

@harlentan Could you please elaborate on the use-case for this option?


datatable with hydrate model

Summary of problem or feature request
I need to use hydrate to fill a model that is not linked to a database.  But in doing so I can't use the datatable() call for larael.
Code snippet of problem
        $query = "EXECUTE [dbo].[rpt_controlclient]  '$XML' ";
        DB::connection('sqlsrvreplicate')->reconnect();
        $data = DB::connection('sqlsrvreplicate')->select($query);

        $ReportData = $Model->hydrate($data);
        return datatables()->collection($ReportData)->toJson();

System details
php 7.2
IIS 7
Laravel 5.6
Laravel-Datatables 8.0

Just to list what I have tried and the output
    return datatables()->of($ReportData)->toJson();//produces json but data is in an indexed array
    return datatables()->eloquent($ReportData)->toJson();getQuery does not exist
    return datatables()->query($ReportData)->toJson();// not instance of querybuilder
    return datatables()->collection($ReportData)->toJson();//produces json but data is in an indexed array
    return datatables($ReportData)->toJson();//produces json but data is in an indexed array

Where I say index array, instead of data being
"data": [
    [
      "Tiger Nixon",
      "System Architect"
    ],
    [
      "Garrett Winters",
      "Accountant"
    ],

I get
"data": [{
"Name":"Tiger Nixon",
"Job":"System Architect"
},
{
"Name":"Garrett Winters",
"Job":"Accountant"
}],

You can use the older way via make method.
return datatables()->collection($ReportData)->make(false);

The fix for this ended up being
return datatables()->eloquent($ReportData)->make(false);


Fix: spelling errors

Already reported two weeks ago. See https://github.com/elves/elvish/pull/1732.


iOS buildbot breakage related to lipo.py

The ios_sim_Release build is currently broken:
https://build.chromium.org/p/client.flutter/builders/Mac Engine/builds/224/steps/build ios_sim_Release/logs/stdio
fatal error: /Applications/Xcode7.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /b/build/slave/Mac_Engine/build/src/out/ios_sim_Release/obj/sky/services/dynamic/libFlutterServices.a and /b/build/slave/Mac_Engine/build/src/out/ios_sim_Release/clang_x64/obj/sky/services/dynamic/libFlutterServices.a have the same architectures (x86_64) and can't be in the same fat output file

This seems to be fixed now? (Waterfall is green.)

Yeah, this was fixed yesterday.


Updated README

Updated CDN links for Firebase and Angular to the latest.
Remove Nitrous.IO Hack button since (a) the image source was not found and (b) I don't think anyone actually uses it.

Coverage remained the same at 93.2% when pulling b63b6b6a9fc046a6f144cd708119728c52e1fcdc on jw-update-readme into 4562e24fb5f9b402cf1a2f6b1b226dec6f8cb5f4 on master.

@katowulf - ping


[1.16.5] 4.7.1 client can still launch on a 4.7.0 server, but it causes significant lag

I assume there is a discrepancy between the expected packet order and data between the two versions, assumedly because of the supporter wings backport.  It would lead to packet corruption that causes significant lag that gets worse the longer the player is in the world.
It was a very strange issue and hard to track.  The server itself was lagging as it spammed "can't keep up!".  all I had to do was hop around my world between dungeons until it became unplayable.
If both server and client are on 4.7.1, this issue disappears.
worst case scenario, sitting in a heavy dungeon that does not cause performance issues normally, caused constant tick spikes of 5 seconds per tick.
EVEN IF this is incorrect information, please change the json of Placebo so that it won't load if client and server are out of sync on versions :)  this issue is a security risk that could bring down any server using 4.7.
You can reproduce this yourself using Kaleidio's Battle Pack 5.6.3, and forcing Placebo to be an older version on the server.

This issue is due to Line #75 in WingsManager.java.  That Client event is gonna send a packet regardless if the server can decode it safely or not.

Apologies for the bad report. Turned out to be some totally different issue I thought disappeared when it didn't.


No way to disable standard sorting by first column

There is currently no way to disable the standard sorting on the first column.
Currently using a workaround by adding $$gtRowId to gtFields and gtSettings (hidden) and sorting by that key, as the index is correct.
Afterwards, we remove it from the genericTable that's being sent into GtColumnSettings to hide it from the user when toggling column order/visibility.

@beerran the last release v4.14.0 should fix this. The table now uses the original sort order of the data array initially and when sorting is applied it goes from enabled (original) => ascending => descending and then back to the original sort order if unsorted.


Stream implementing Promise breaks returns in async

I am attempting to return a stream from an async function with the following code:
export const getStream = async (
  host: string,
  session?: string
): Promise<ChatStream | undefined> => {
  if (chatStreams[host]) return chatStreams[host];
  const conn = await getOrFederate(host);
  if (session) {
    conn.setSession(session);
  }
  const stream = conn.chat.streamEvents();
  chatStreams[host] = stream;
  stream.responses.onMessage((ev) => pubsub(host));
  stream.responses.onComplete(closeStreamHandler(stream));
  return stream;
};

Unfortunately, because DuplexStreamingCall implements Promise, usage of this function causes an await to result in FinishedDuplexStreamingCall, and closing the stream. I tried many ways to work around this issue, but it seems async resolves nested promises automatically. I had to settle with this hack:
export const getStream = async (
  host: string,
  session?: string
): Promise<{ boxed: ChatStream | undefined }> => {
  if (chatStreams[host]) return { boxed: chatStreams[host] };
  const conn = await getOrFederate(host);
  if (session) {
    conn.setSession(session);
  }
  const stream = conn.chat.streamEvents();
  chatStreams[host] = stream;
  stream.responses.onMessage((ev) => pubsub(host));
  stream.responses.onComplete(closeStreamHandler(stream));
  return { boxed: stream };
};

Async functions are syntactic sugar for the Promise API. Returning a promise from an async function is the same as returning a promise in a Promise.then() callback - it will be resolved recursively. Unexpected behavior in my book, but that's what it is.
I am going to need more user feedback to go ahead here.
I've personally found calls being promise-like to be very convenient for unary methods, but cannot remember having really used it for other method types.
The consistency between the types is nice, but if there are no use cases for it and it has unwanted side-effects, it may be worth it to remove promise-like from all but the unary call type.


SSAS tabular

Has anyone tested Saiku Community over SSAS tabular? Any documentation or post about the configuration required?

can you send this question for our group discussion, please
Link: https://groups.google.com/a/saiku.meteorite.bi/forum/#!forum/user
Thanks :)


fix user status done undefined

My Leetcode Status is :
Easy      39/97  (40.21%)       [..............................]
Medium     4/198 (2.02%)        [..............................]
Hard       0/83  (0.00%)        [..............................]
But when I run, it will throw an error since I have not done hard problems yet:
                    throw new TypeError(sprintf("[sprintf] expecting number but found %s", get_type(arg)))
                    ^

TypeError: [sprintf] expecting number but found undefined

So I use a default value to fix it. Hope it's useful for the project.

Thanks for patching!
The default value is clean and easy while it's a new feature from es6/es2015, which means older nodejs distributions don't support it by default. For example, in nodejs v5.6.0, we must use "--harmony_default_parameters" in calling to make it working.
IMHO It would be better to use a common way to fit different nodejs versions, e.g.
prettyLine('Easy', stats.acEasy || 0, stats.allEasy);

@skygragon Due to the compatibility, I suggest to modify the code in the function to avoid process every sentence of prettyLine

LGTM. Thanks!


Network operations with HttpClient

The page initially provides the advice that a Background-Safe Task is "a great candidate" for "sending a new user's registration information to your server". Then it goes on to say how it's not so great and that you should use NSURLSession instead. Completely missing is the relationship to HttpClient, which can be configured to use NSURLSession with the advantage of being cross-platform.
It seems the advice should be improved in a couple of ways:

Drop advice on using Background-Safe Task for networking altogether. It would still be good advice for iOS 6, but that iOS version is long gone (iPhone 3GS era).
Make the focus of the advice on when to use HttpClient versus NSURLSession and the implications of each for background networking.

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

ID: 0b70a30d-a0f7-e672-ae0b-a01ef87322b3
Version Independent ID: fbb0666a-2fba-5817-3e5d-446a24f5824b
Content: iOS Backgrounding with Tasks - Xamarin
Content Source: docs/ios/app-fundamentals/backgrounding/ios-backgrounding-techniques/ios-backgrounding-with-tasks.md
Product: xamarin
GitHub Login: @lobrien
Microsoft Alias: laobri

Thanks for your feedback @breyed. This page hasn't been updated in a while, and could use improvements like the points you mentioned.

Thanks for submitting an issue and we apologize for the delayed response. The requested updates haven't been made since the creation of the issue, and the timeline for resolution may vary based on resourcing, so the issue is being moved to an internal repo to better track it.


Dev

Debugged code extracts denoised timeseries from cneuromod dataset, recombining datasets, parcellations and denoising strategies with hydra config files.

@htwangtw it would be great if you could take a look!

@htwangtw it would be great if you could take a look, thanks!


Socket connection error across Node.js tests, error on Unexpected end of multipart data

This is a regression bug, starting on build ML-9 07/25, we have socket connection error on Node.js. Here is one example
Write these documents to DB:
var docuri = '/foo/bar/test1.json';
  var docuri2 = '/foo/bar/test2.json';

  before(function(done) {
    this.timeout(10000);
    db.documents.write({
      uri: docuri,
      collections: ['coll0', 'coll1'],
      contentType: 'application/json',
      quality: 10,
      permissions: [
        {'role-name':'app-user', capabilities:['read', 'node-update']},
        {'role-name':'app-builder', capabilities:['read', 'update']}
      ],
      properties: {prop1:'foo', prop2:25},
      content: {id:12, name:'Jason'}
    }, {
      uri: docuri2,
      collections: ['coll0', 'coll1'],
      contentType: 'application/json',
      quality: 10,
      permissions: [
        {'role-name':'app-user', capabilities:['read', 'node-update']},
        {'role-name':'app-builder', capabilities:['read', 'update']}
      ],
      properties: {prop1:'bar', prop2:33},
      content: {id:245, name:'Paul'}
    }).result(function(response){done();}, done);
  });

Then try to read the documents:
db.documents.read({uris: [docuri, docuri2], categories:['content']})

It will produce this error:
     Error: Parse Error
      at Error (native)
      at Socket.socketOnData (_http_client.js:361:20)
      at readableAddChunk (_stream_readable.js:177:18)
      at Socket.Readable.push (_stream_readable.js:135:10)
      at TCP.onread (net.js:542:20)

Complete error trace:
{ Error: Parse Error
    at Error (native)
    at Socket.socketOnData (_http_client.js:361:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:177:18)
    at Socket.Readable.push (_stream_readable.js:135:10)
    at TCP.onread (net.js:542:20)
  bytesParsed: 643,
  code: 'HPE_INVALID_CONSTANT',
  otherErrors:
   [ Error: Unexpected end of multipart data
         at /space/builds/linux64/b9_0/qa/node-client-api/node_modules/dicer/lib/Dicer.js:62:28
         at _combinedTickCallback (internal/process/next_tick.js:67:7)
         at process._tickCallback (internal/process/next_tick.js:98:9) ] }

To run the test:

git clone https://github.com/marklogic/node-client-api node-client-api
cd node-client-api
git checkout develop
npm install --no-optional
node etc/test-setup-qa.js
./node_modules/mocha/bin/mocha --timeout 30000 test-complete/nodejs-documents-crud.js

Same error when doing documents query, it has something to do with "Unexpected end of multipart data"
db.documents.query(
      q.where(
        q.word('title', 'bush')
      )).

{ Error: Parse Error
    at Error (native)
    at Socket.socketOnData (_http_client.js:361:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:177:18)
    at Socket.Readable.push (_stream_readable.js:135:10)
    at TCP.onread (net.js:542:20)
  bytesParsed: 1022,
  code: 'HPE_INVALID_CONSTANT',
  otherErrors:
   [ Error: Unexpected end of multipart data
         at /space/builds/linux64/b9_0/qa/node-client-api/node_modules/dicer/lib/Dicer.js:62:28
         at _combinedTickCallback (internal/process/next_tick.js:67:7)

The pattern so far is happening on read, query, parse, extract (more on documents GET request)

The core issue seems to be on https://bugtrack.marklogic.com/46893

Thanks for digging into this and matching it to the Bugtrack issue.

Bug 46893 is fixed and passed on 07/31 regression


Update README

We need a good README to help other people to understand what the repo is about and provide more info about the code.

Solved with https://github.com/marciogurka/bioinfo-I-algorithms/pull/4


[SPARK-37796][SQL] ByteArrayMethods arrayEquals should fast skip the check of aligning with unaligned platform

What changes were proposed in this pull request?

The method arrayEquals in ByteArrayMethods is critical function which is used in UTF8String. equals, indexOf,find etc.
After SPARK-16962, it add the complexity of aligned. It would be better to fast sikip the check of aligning if the platform is unaligned.
Why are the changes needed?

Improve the performance.
Does this PR introduce any user-facing change?

no
How was this patch tested?

Pass CI. Run the benchmark using unaligned-benchmark, and here is the benchmark result:
JDK8
================================================================================================
byte array equals
================================================================================================

OpenJDK 64-Bit Server VM 1.8.0_312-b07 on Linux 5.11.0-1022-azure
Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
Byte Array equals:                        Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------------------------------
Byte Array equals fast                             1322           2222         NaN        121.0           8.3       1.0X
Byte Array equals                                  3378           3381           3         47.4          21.1       0.4X

JDK11
================================================================================================
byte array equals
================================================================================================

OpenJDK 64-Bit Server VM 11.0.13+8-LTS on Linux 5.11.0-1022-azure
Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
Byte Array equals:                        Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------------------------------
Byte Array equals fast                             1860           1891          15         86.0          11.6       1.0X
Byte Array equals                                  2913           2921           8         54.9          18.2       0.6X

JDK17
================================================================================================
byte array equals
================================================================================================

OpenJDK 64-Bit Server VM 17.0.1+12-LTS on Linux 5.11.0-1022-azure
Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz
Byte Array equals:                        Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------------------------------
Byte Array equals fast                             1543           1602          39        103.7           9.6       1.0X
Byte Array equals                                  3027           3029           1         52.9          18.9       0.5X

I find that fairly convincing for x86. I'm worried about ARM - not just performance but correctness. ARMv7 supports unaligned access; ARMv5 does not. But v7 seems to have some 'gotchas' that direct access like this may hit.
If ARM JDKs show up as 'aligned' then I think this is fine, but that's what I don't know right now. Do you have any easy way to check that?

I'm not very familiar with arm stuff, cc @Yikun if you have time to take a look, thank you !

Thanks ping me.

Docker provide multiarch support now, that means you can run any arch docker images in Docker in your host (even if it's x86).
Docker also provide some offical images for multiarch

So, if you want to do check on arm64v7, you could just run it as below:
# The example to emulate the arm v7 in x86.
root@yikun-x86:~# uname -a
Linux yikun-x86 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
root@yikun-x86:~# docker run -ti arm32v7/openjdk bash
root@afa30defa503:/# uname -a
Linux afa30defa503 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 armv7l GNU/Linux

I also ran the performance test on aarch64 with jdk8, here is the result, also have some improvement:
# Linux yikun-arm 5.4.0-89-generic #100-Ubuntu SMP Fri Sep 24 14:29:20 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
OpenJDK 64-Bit Server VM 1.8.0_312-8u312-b07-0ubuntu1~20.04-b07 on Linux 5.4.0-89-generic
Byte Array equals:                        Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------------------------------
Byte Array equals fast                             2832           4607         294         56.5          17.7       1.0X
Byte Array equals                                  8660           8880         213         18.5          54.1       0.3X

[1] https://github.com/Yikun/spark/runs/4697868757?check_suite_focus=true

I also triggered the complete test on aarch64/arm64v8: https://github.com/Yikun/spark/pull/56 .
Hope it helps.

thank you @Yikun , I try to check the unaligned with armv7 using follow command and it works as expected:
root@5d25e6cb0f3e:/# uname -a
Linux 5d25e6cb0f3e 5.10.76-linuxkit #1 SMP Mon Nov 8 10:21:19 UTC 2021 armv7l GNU/Linux
root@5d25e6cb0f3e:/# jshell
Jan 04, 2022 1:50:10 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
|  Welcome to JShell -- Version 11.0.1
|  For an introduction type: /help intro

jshell> System.getProperty("os.arch", "");
$1 ==> "arm"

jshell>

jshell> import java.lang.reflect.Field;

jshell>

jshell> Class<?> bitsClass = Class.forName("java.nio.Bits", false, ClassLoader.getSystemClassLoader());
bitsClass ==> class java.nio.Bits

jshell> Field unalignedField = bitsClass.getDeclaredField("UNALIGNED");
unalignedField ==> private static boolean java.nio.Bits.UNALIGNED

jshell> unalignedField.setAccessible(true);

jshell> unalignedField.getBoolean(null);
$6 ==> false

It seems no easy way to check with armv5. But I think it should return something like arm or arm32 which is also aligned. Do you have any thought ? @srowen

Oh, is it possible to add the benchmark suite you ran to this PR?

combined the benchmark in ByteArrayBenchmark.scala and also updated the benchmark result

Merged to master

thank you again ! @srowen @Yikun


Deploy a new cluster for the U. Toronto community

Description
As a part of https://github.com/2i2c-org/infrastructure/issues/638 we need to deploy a new cluster/hub for U. Toronto that runs off of our CI/CD infrastructure.
Value / benefit
This is a pre-requisite for us being able to transition the U. Toronto hub onto the new setup!
We now have Azure terraform support in this repo (#800) and can set up a new hub infra with that, to run in parallel with current setup. The primary infra difference will be the use of Azure File for home directories rather than the hand-spun NFS VM we have there right now - I think this is a big positive change.
Tasks to complete

[x] Deploy a new cluster

[x] Create a new Azure based infra using the documentation instructions in https://infrastructure.2i2c.org/en/latest/howto/operate/new-cluster/new-cluster.html

closed by https://github.com/2i2c-org/infrastructure/pull/856


gRPC server on Python 3.6 is incompatible with os.fork()

What version of gRPC and what language are you using?
gRPC 1.16.0 for Python
What operating system (Linux, Windows, …) and version?
Ubuntu 18.04 LTS (4.15.13-x86_64-linode106) for x86_64
What runtime / compiler are you using (e.g. python version or version of gcc)
Python 3.6.5
What did you do?

Checkout the python/helloworld/greeter_server.py example
Add code that calls fork() to the handler

Calling os.fork() + os.execl(): greeter_server_fork_exec.py
Calling os.fork() + os._exit(): greeter_server_fork_exit.py
Using subprocess + preexec_fn: greeter_server_preexec.py

Start the server with python3 greeter_server.py
Run python3 greeter_client.py multiple times

This seems to be the root cause of https://github.com/grpc/grpc/issues/14436.
What did you expect to see?
$ python greeter_client.py
Greeter client received: Hello, you!
$ python greeter_client.py
Greeter client received: Hello, you!

What did you see instead?
NOTE: These examples work correctly under Python 2.7 or if using subprocess without a preexec_fn (does not cause _posixsubprocess to call back into Python).
On the server:
$ python3.6 greeter_server_preexec.py
E1104 01:27:37.862233836   24328 tcp_server_posix.cc:210]    Failed accept4: Invalid argument

On the client:
$ python greeter_client.py
Traceback (most recent call last):
  File "greeter_client.py", line 35, in <module>
    run()
  File "greeter_client.py", line 30, in run
    response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'))
  File "/home/dcoles/workspace/grpc/grpc/examples/python/helloworld/venv/local/lib/python3.6/site-packages/grpc/_channel.py", line 533, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/home/dcoles/workspace/grpc/grpc/examples/python/helloworld/venv/local/lib/python3.6/site-packages/grpc/_channel.py", line 467, in _end_unary_response_blocking
    raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
        status = StatusCode.INTERNAL
        details = "Received RST_STREAM with error code 2"
        debug_error_string = "{"created":"@1541294857.862411425","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1017,"grpc_message":"Received RST_STREAM with error code 2","grpc_status":13}"
>
$ python greeter_client.py
Traceback (most recent call last):
  File "greeter_client.py", line 35, in <module>
    run()
  File "greeter_client.py", line 30, in run
    response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'))
  File "/home/dcoles/workspace/grpc/grpc/examples/python/helloworld/venv/local/lib/python3.6/site-packages/grpc/_channel.py", line 533, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/home/dcoles/workspace/grpc/grpc/examples/python/helloworld/venv/local/lib/python3.6/site-packages/grpc/_channel.py", line 467, in _end_unary_response_blocking
    raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
        status = StatusCode.UNAVAILABLE
        details = "Connect Failed"
        debug_error_string = "{"created":"@1541294859.542303123","description":"Failed to create subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":2721,"referenced_errors":[{"created":"@1541294859.542300691","description":"Pick Cancelled","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":241,"referenced_errors":[{"created":"@1541294859.542285256","description":"Connect Failed","file":"src/core/ext/filters/client_channel/subchannel.cc","file_line":689,"grpc_status":14,"referenced_errors":[{"created":"@1541294859.542274056","description":"Failed to connect to remote host: OS Error","errno":111,"file":"src/core/lib/iomgr/tcp_client_posix.cc","file_line":205,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:<IP_ADDRESS>:50051"}]}]}]}"
>

Anything else we should know about your project / environment?
gRPC for Python 2.7 and 3.6 was installed using pip to ensure I was using the latest version.

How is this usage case different from #16001?

@dcoles, this is an interesting problem. How many greeter servers do you see running after sending one request? I see two with python3 and one with python2. I didn't dig into why this is the case but seems like os.execl and os._exit are not really killing the forked child process in python 3.6. Obviously, the child process starts interfering with the parent process when it also tries to accept on the same FD and fails. Child process closes the socket upon error and hence parent process also stops working.

I see the same behaviour. With python2 I start with 1 process containing 4 sub-tasks: 1 thread per request (to a maximum of 10 additional threads). With python3 I also start with 1 process with 4 sub-threads, however when sending the RPC I get 2 new sub-tasks: 1 thread and 1 child process.
I tried debugging the hanging process this via gdb and did get a useful backtrace: https://gist.github.com/dcoles/95ca1699de766b5eb2901865c9bf56d8. Looks like it's stuck on _Server.__del__ waiting for the GRPC server to shutdown due to a bunch of finalizers being called in PyOS_AfterFork.
You'll notice that the Python code doesn't even reach os.execl or os._exit - it's still stuck in os.fork. This can be seen by the lack of "Hello, world!" being printed when using greeter_server_fork_exec.py.

@dcoles, I went as far back as 1.9.0 and see the same problem so this couldn't be due to post fork handlers added in 1.15.0 release to support client side forking. It'll be great if you can investigate this further and find the root cause. There was a mention of this issue about a year ago here.

Seemingly the same underlying issue: https://github.com/grpc/grpc/issues/15756

I realize that I replied to the PR, but not here on the issue. The full details are at https://github.com/grpc/grpc/pull/17288#issuecomment-443032967, but to summarize: we are doing work in our __del__ methods to clean up and shut down gRPC that, combined with Python's clean-up of deceased threads in the child's post-fork handler, can lead to a hanging process. We are working to get this fixed in the next release.

This hava cause some import error, when I use the grpc-python in production with multithread spiders. Sometimes, the grpc client can not connect the grpc server. Thus, the crawl spider failed.

The fix for this (#17444) is now merged and will be available in the next release. The next nightly build at https://packages.grpc.io/ (installable via pip) will also include the fix. I'll close this issue for now.
@dcoles If any issues remain, please comment here and we will reopen. Thanks.


Increase the "test runner" task delay to 10 secs (from 5 secs)

For test framework being able to catch the test runner task start marker ("----STARTING TESTS---") (for Microchip), the delay is change to 10 secs (from 5 secs).

Implemented in AFRHostTools


Plugins and middleware approach

I'm investigating patterns for a plugin / extension approach for matter.js. Ultimately I'd like to maintain a collection of small module packages named matter-* that follow a common pattern (e.g. like the grunt / gulp ecosystem) rather than a monolithic library.
This should hopefully:

make the core lighter and simpler
allow new features without feature creep worries
encourage community contributions without needing pull requests

Some goals for a plugin approach are:

a common pattern
simple to define
simple to use
forwards and backwards compatibility
compatibility with other plugins
promote low coupling

To start we can say that plugins should be:

CommonJS module format
Built with browserify / webpack for browser use

One of the more difficult concerns for plugins is the need to extend existing methods like Engine.update or Body.create with new features. To do this plugins will need to hook these module methods so they can apply their own operations at the right moment. We could use events for this, but this requires definitions of lots of new events and there is little control over order of execution.
My proposal is that plugins can patch any module method through function composition.
It could work like this:
MyPlugin.js
var MyPlugin = module.exports = {};

MyPlugin.patch = function(base) {
    // check dependencies
    assert(base.Engine);
    assert(Matter.Plugin.has(base, 'matter-another-plugin'));

    // or we can load our own plugin dependencies directly
    Matter.Plugin.use(base, MyPluginDep); // or 'matter-my-plugin-dep'

    // use function composition to patch and extend
    var engineUpdate = base.Engine.update;
    base.Engine.update = function(engine, delta, correction) {
        MyPlugin.Engine.update(engine, delta, correction);
        return engineUpdate(engine, delta, correction);
    }

    // more patched methods here
}

MyPlugin.somethingNew = function(things) {
    // doing something new has no need for patching
}

MyPlugin.Engine = {};

MyPlugin.Engine.update = function(engine, delta, correction) {
    // do plugin stuff on the engine
}

App.js
var Matter = require('matter-js');
var MyPlugin = require('matter-my-plugin');
var AnotherPlugin = require('matter-another-plugin');

Matter.use(MyPlugin);
Matter.use(AnotherPlugin);

// Matter.use is sugar for Matter.Plugin.use(Matter, MyPlugin) e.g.
// (base, plugin) => { if (!Matter.Plugin.has(base, plugin)) { plugin.patch(base); base.plugins.push('matter-my-plugin'); } }

// we can now use Matter.* as normal, with additional features :)

var newThings = MyPlugin.somethingNew([Matter.Body.Rectangle(...)]);

I realise that monkey-patching like this might make some people wince. But it's extremely powerful.
It's also optional! As it's entirely possible to use plugins defined like this without using Matter.use (obviously takes more work on the user's part). Documentation of plugins might be a little tricky...
Candidates for plugins so far:

Matter.Render
Matter.RenderPixi
Matter.Runner
Matter.Svg

If anybody has any comments, ideas or examples of other good approaches I'd be interested to hear.
Edit: Looks like Vue.js is using a very similar approach.

I like the idea. This is a very powerful technique, and (partly thanks to JavaScript) would allow contributors to make almost any kind of modulation, without having to alter the core.

This is a very exciting idea for many reasons I won't detail because reading is boring!
I do have a question. Should there be some kind of feedback/awareness of Matter.js of who changes what? To follow your examples, something that would say:

Matter.Engine.update has been altered by matter-my-plugin

(I know this could be done using various strategies, I am asking if it should be)

@Aralun yeah there should be a way of tracking changes made by plugins, particularly for debugging or for making special cases. I've started an implementation, it's looking good.
I'm currently trying to decide whether I should go for a flat or recursive plugin dependency structure. At first most plugins will likely have no other plugin dependencies, but I like to think forward. It would be cool to build small plugins that build on each other.
A flat dependency structure would mean that all plugins must be installed on the Matter namespace (simpler). Recursive would mean that plugins can be installed on each other (less simple, but more powerful).

If someone builds a plugin to, say, detect collisions of a specific body or some kind of render engine or multi-client synchronizations or whatever, people will want to build upon them (use-case: a video game...)
But isn't this already possible with npm packages and maybe some ES6 magic? Do you actually need to do anything in that matter, or just provide some guidelines as to how to make a plugin pluginable?

I see what you mean, let me clarify for everyone how I'm defining plugins vs just modules as the terms overlap:
Modules alone are intentionally generic, they don't normally extend existing modules directly. They tend to create new functionality but expect the user to implement it into their application directly (e.g. must use new constructors, add event hooks or update things manually). They may not be compatible with each other and there are limitations on what can be achieved.
Plugins are also modules but they are much more specialised for a particular application. They are designed to fit in to (or modify) an existing pipeline, in a way that remains highly compatible and composable with other plugins (both forwards and backwards). They should require very little work to use.
So to implement plugins requires some sort of special work from the host framework to accommodate closer integration and flexibility than you could get with modules alone.
I guess a good example of what I'm trying to describe would be the concept of middleware in web frameworks, for example express middleware.
Does that make sense?
The closest thing the OOP world has to plugins would maybe be mixins (or multiple inheritence) and dependency injection.
I did a quick look for examples of mixins in JS and came across an article titled Mixins Are Dead. Long Live Composition. It advocates the same approach I'm considering:

How do we solve this without a mixin?
A higher-order component is just a function that takes an existing component and returns another component that wraps it.

As for any ES6 magic with regards to composition, there are Proxies which would be a possible way to patch things but they are way more heavyweight than needed.

It turns out that the Redux project provides a great article on how their middleware is implemented. It's similar to what I've been playing with. They also take it a step further than monkey patching but it ends up being less easy to understand. They have a requirement for async, which matter.js generally doesn't (but it would be nice).

@antirez just posted his ideas about a module system for redis. In particular he mentions about maintaining back compatibility while at the same time allowing access to core internals. This seems like an ideal scenario, but I'm not sure how it can be pulled off easily for most libraries. He suggests that plugins specify a target version and that a compatibility layer handles changes. This seems pretty reasonable, although may prove tricky in some cases depending on the nature of the changes.

Just an update on this, I'm very close to having finalised the plugins implementation and it will be published in a branch soon!

The plugins branch is now pushed! Check it out!
There are also two new wiki pages on Using plugins and Creating plugins.
Here are three simple plugins you can try:

matter-attractors
matter-gravity
matter-world-wrap

You can see them in action by running the attractors example.
I'd appreciate it if you guys got back to me with your thoughts!

Any idea when this will be merged into the stable version? I am currently unable to build the release myself. Really interested! Great job 👍

This has now been merged into master and I've updated the edge build which now includes Matter.Plugin. This should make its way into a release soon!

The plugin system is now available in release 0.11.0.
See the Creating plugins and Using plugins pages for more information.
A plugin boilerplate will be released soon to make it easier to get started!

It's been a pretty huge task to get this done how I wanted, but now these plugins are now fully packaged!

matter-attractors
matter-wrap

Also check out the matter-plugin-boilerplate.
I'm going to close this thread for now, any issues with plugins should be opened in a new issue (on the appropriate repo). If anyone still would generally like to discuss the approach some more, feel free to post here.
Thank you everyone for your input!


[Bug] Audit: privilege escalation possible

Roles:: has an issue with code 0L introduced:

[ ] new_validator_role_with_proof
[ ] upgrade_user_to_validator

These functions can be called at any time by the user. So a user account can escalate that privilege on their own. Unclear what this affects since a number of other validator configs are necessary to become a validator.
These are typically called by DiemAccount when accounts are created permissionlessly with VDF proofs.
Consider making the setting of the Role, happen at epoch boundary by the VM, upon admission to validator set.

@0o-de-lally #724 fixes this, if I understand your issue with it correctly. The problem is that new_validator_role_with_proof and upgrade_user_to_validator can be called outside of the calls to DiemAccount::upgrade_validator_account_with_proof and DiemAccount::create_validator_account_with_proof, not that the DiemAccount functions can be called by anyone, right?
I think my change works well, as I understand it, DiemAccount has the special ability to sign as diem root, so now calls to new_validator_role_with_proof and upgrade_user_to_validator require a diem root signature, which can only be provided by the functions in DiemAccount. That said, it's a little odd.


Customization

Different themes: variety of fonts, timer sizes and colours, button styles, backgrounds. Also the opportunity to upload your own pictures on the background. It makes the app more appealing to users.

@sfk26 I am going to allow users to change only the color pallet (custom themes) and already you can set your music.

To change font, you need to change the font of your terminal. So every user can do, but it is highly unlikely to allow users to do it from Focus Keeper (technical difficulties).
With background is the same problem because, by the end of the day, terminal is terminal and for now there is now an easy way to print pictures in high resolution. For now, there will be an option to have just a solid color. But maybe gradients will come to app in the future.
Timer size is interesting because I was considering adding an option to create custom clock digits in the next version and allowing users to share them on the marketplace.

I am going to change this issue to Theme customization and letter while the alpha version of API will be online, We will talk on Discord about new customizations


Zookeeper: Set the correct lock state when releasing because of ZK disconnect

The rollup workers currently drop shards when losing connection to ZK because of this bug.

Coverage remained the same at 75.084% when pulling ba75bb3dc86bd7fff0bf2b5fb1a4217cb2dbc7ae on DanielNi:master into 358242e30e77ca14937bb64308ff90fd816e6707 on rackerlabs:master.


Spike on the notebook of branch out to new workspace

spike on notebook of https://github.com/hurtn/Fabric-Branch-To-New-Workspace/blob/main/Branch out to new workspace.ipynb

Conclusions:

The code in the notebook are referenceable to use when creating CICD in #803 . But there are several leftovers needed to be considered:

The notebook uses python library semantic-link-labs to call Fabric API. This dependency also needs to be added to the pipeline exe env.
The notebook assumes to run inside the Fabric workspace and use default credential. In the CICD pipeline the credential obtaining needs to be considered.
When calling the Fabric API, the workspace name and workspace id is needed as parameters. Need consideration for store these parameters (in variable group?)

The notebook called /git/updateFromGit to update resources in the workspace from git repo. If there are conflicts, either preferring remote or preferring workspace can be chose.

https://learn.microsoft.com/en-us/rest/api/fabric/core/git/update-from-git?tabs=HTTP#conflictresolutionpolicy


Fix MalformedPolicyDocumentException error

When using this module with the default variable values I receive the error:
Error: MalformedPolicyDocumentException: The new key policy will not allow you to update the key policy in the future.

I've amended the KMS key policy to allow access from the AWS account (root). This prevents the error from occurring.
Fixes issue #3
Also corrected a typo in the vpc_id variable description.

Looks like checks got stuck, and may be preventing a notification to review this one?

@andrewmackett I gave this a try but got not authorized to perform: kms:TagResource on resource.  Is there any reason not to set actions = ["kms:*"] for root?

/codefresh run test

/codefresh run test


Respect flutter:sdk dependencies

Problem:
This package sets collection v^1.18.0 as its dependency. Flutter SDK has collection:1.17.1 as a dependency. Thus, version solving fails on install
Error log of dart pub get:
Because every version of flutter_test from sdk depends on collection 1.17.1 and every version of sql_commander depends on collection ^1.18.0, flutter_test from sdk is incompatible with sql_commander.
So, because {project_name} depends on both sql_commander ^1.0.2 and flutter_test from sdk, version solving failed.```

https://github.com/flutter/flutter/blob/master/packages/flutter/pubspec.yaml


Release 1.4.2

Coverage remained the same at 90.575% when pulling 4e0ede6ba6259db61fbcd810956a894133cd5afe on release/1.4.2 into 72472fe56d9cf75433b323c375811762283116c5 on master.


Flatpak package

Instead of using an AppImage (which has to be manually downloaded, allocated and updated, as well as having to create a symlink by executing it - thus making it a dirty and insecure approach), or at least among it, there should be an option to install the browser from Flatpak, which uses GPG-signed repositories for installing and updating, uses isolation with containers, and even works on non-Glibc Linux distros.
For more information, please refer to the developer guide (http://docs.flatpak.org/en/latest/) and, in particular, to the "Getting Started" section. For delivering Beaker in particular, you could use the Flathub repository.

For linux side I personally would prefer snaps. Electron builder seems to support this target.

Yeah a flatpak app would be awesome, I can't use beaker on Void MUSL because no electron, so a flatpak app would be perfect. AppImage kinda sucks, flatpak is much better, it kinda works like a package manager in the sense that you can update all the apps with a simple flatpak update command.

It's on Flathub! I think unofficially, however...


pull request for e2e test at 12/25/2016 15:45:10

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[Doc] Maps: Custom GeoJson Support in Region Maps

See https://github.com/opensearch-project/OpenSearch/issues/831
Support custom vector map/ GeoJson:
Today, we provide basic map tiles and standard vector map as part of MaRS service. While OpenSearch Dashboard allows you to configure a base map tiles using WMS map server, it does not let you configure a server to support user defined vector map layers. We do not support an exhaustive list of vector map (for example, we do not have US Counties, US Zip Codes), and this will always be a growing list. Customers who need specific vector map (GeoJSONs format) that we do not provide today out of the box, can import their own layer and use it for visualization.

Here's a pull request that pertains to this issue: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/1718

Hi @alicejw-aws , are you able to take this one? Thanks.

Ready for tech review from engineers.
Hi @vamshin and @Shivamdhar, could you please take a look at this Draft PR for the documentation and let us know if you have any feedback. thanks
https://github.com/opensearch-project/documentation-website/pull/807

Here are some screen shots of a local doc build - for review purposes.

Can we please add the following screenshot instead (for "Import Vector Map" tab):

Also, do we have to specify that plugins (frontend plugin: https://github.com/opensearch-project/dashboards-maps, backend plugin: https://github.com/opensearch-project/geospatial) need to be installed alongside OpenSearch Dashboards and OpenSearch in order to have the Import Vector Map tab added to the current region map visualization tab?  (so this basically depends on what users will be using - min version of OpenSearch and dashboards or the complete bundle). Please let me know if you need more details.

@Shivamdhar: I changed the image. I will also add a statement on setup as you described. Could you please go over the PR #807 and leave your comments in case anything is incorrect? Also, do you have a link to the testing environment for this? Thanks!

hi @Shivamdhar , i get some errors when i import the 5 counties json file into the OpenSearch Dashboards, so i can't get a screen shot of the counties region map.
do you happen to have an image I could use that shows what the region map looks like for the 5 counties? thanks! I want to add this image to the blog.

Hello @alicejw-aws , please make sure that the start and end points for each polygon in the GeoJSON file are same.
{
  "type": "FeatureCollection",
  "name": "usa counties",
  "features": [
    { "type": "Feature", "properties": { "iso2": "US", "iso3": "KC-WA", "name": "King County", "country": "US", "county": "KC" }, "geometry": { "type": "Polygon", "coordinates":[[[-122.43713378906249,48.57842428752037],[-122.3712158203125,48.26491251331118],[-122.36022949218749,48.14043243818811],[-122.244873046875,48.026672195436014],[-122.2723388671875,47.916342040161155],[-122.4151611328125,47.82053186746053],[-122.4591064453125,47.69867153529717],[-122.398681640625,47.56911375866714],[-122.3272705078125,47.48380086737799],[-122.3382568359375,47.368594345213374],[-122.45361328124999,47.29040793812928],[-122.607421875,47.26804770458176],[-122.574462890625,47.09630525444073],[-122.50305175781249,46.924007100770275],[-122.354736328125,46.86394700508323],[-122.1185302734375,46.856434763486966],[-121.65710449218749,46.89023157359399],[-121.4483642578125,46.976504510552],[-121.3604736328125,47.05515408550348],[-121.28356933593749,47.212105775622426],[-121.2176513671875,47.35371061951363],[-121.0748291015625,47.468949677672484],[-120.9979248046875,47.56540738772852],[-120.9210205078125,47.724544549099676],[-120.8551025390625,48.026672195436014],[-120.87158203125,48.184401125107684],[-120.948486328125,48.37449671682332],[-121.1077880859375,48.542068763606466],[-121.5087890625,48.56388521347092],[-121.87683105468749,48.545705491847464],[-122.06909179687501,48.55297816440071],[-122.3052978515625,48.5493419587775],[-122.43713378906249,48.57842428752037]]] } },
    { "type": "Feature", "properties": { "iso2": "US", "iso3": "SJ-WA", "name": "San Juan County", "country": "US", "county": "SJ" }, "geometry": { "type": "Polygon", "coordinates":[[[-122.96173095703125,48.73807825631017],[-123.04962158203124,48.71452483966837],[-123.1512451171875,48.66012869453836],[-123.19244384765625,48.61656946813302],[-123.17596435546876,48.56206753526866],[-123.14849853515625,48.5275192374508],[-123.07708740234374,48.480204398955145],[-122.98645019531249,48.45653041501911],[-122.8875732421875,48.44195631996267],[-122.8106689453125,48.438312142641244],[-122.78594970703126,48.44560023585716],[-122.78594970703126,48.505687108189804],[-122.78320312499999,48.545705491847464],[-122.79144287109375,48.59477574898104],[-122.77496337890625,48.62383195130112],[-122.7557373046875,48.65105695744785],[-122.73651123046874,48.69821216562637],[-122.84637451171874,48.72358515157852],[-122.96173095703125,48.73807825631017]]] } },
    { "type": "Feature", "properties": { "iso2": "US", "iso3": "WW-WA", "name": "Walla Walla County", "country": "US", "county": "WW" }, "geometry": { "type": "Polygon", "coordinates":[[[-118.33442687988281,46.09204333606358],[-118.34884643554688,46.088709905656856],[-118.37047576904297,46.07561233580712],[-118.38249206542967,46.0653702518009],[-118.3838653564453,46.05298193687039],[-118.3787155151367,46.04416548185682],[-118.3656692504883,46.03558595870985],[-118.35159301757811,46.030818981314766],[-118.33339691162111,46.02819696848244],[-118.3114242553711,46.02938880791639],[-118.29666137695312,46.03201076421151],[-118.2784652709961,46.038922598236],[-118.2722854614258,46.0536967228988],[-118.2619857788086,46.076564991185734],[-118.25752258300781,46.092757616368665],[-118.2630157470703,46.10513700514936],[-118.29288482666016,46.10085214663405],[-118.31794738769531,46.09680503002718],[-118.33442687988281,46.09204333606358]]] } },
    { "type": "Feature", "properties": { "iso2": "US", "iso3": "LA-CA", "name": "Los Angeles County", "country": "US", "county": "LA" }, "geometry": { "type": "Polygon", "coordinates":[[[-118.71826171875,34.07086232376631],[-118.69628906249999,34.03445260967645],[-118.56994628906249,34.02990029603907],[-118.487548828125,33.957030069982316],[-118.37219238281249,33.86129311351553],[-118.45458984375,33.75631505992707],[-118.33923339843749,33.715201644740844],[-118.22937011718749,33.75631505992707],[-118.1414794921875,33.678639851675555],[-117.9107666015625,33.578014746143985],[-117.75146484375,33.4955977448657],[-117.55920410156249,33.55512901742288],[-117.3065185546875,33.5963189611327],[-117.0703125,33.67406853374198],[-116.69677734375,34.06176136129718],[-116.9439697265625,34.28445325435288],[-117.18017578125,34.42956713470528],[-117.3779296875,34.542762387234845],[-117.62512207031251,34.56990638085636],[-118.048095703125,34.615126683462194],[-118.44909667968749,34.542762387234845],[-118.61938476562499,34.38877925439021],[-118.740234375,34.21180215769026],[-118.71826171875,34.07086232376631]]] } },
    { "type": "Feature", "properties": { "iso2": "US", "iso3": "SD-CA", "name": "San Diego County", "country": "US", "county": "SD" }, "geometry": { "type": "Polygon", "coordinates":[[[-117.23510742187501,32.861132322810946],[-117.2406005859375,32.75494243654723],[-117.1636962890625,32.68099643258195],[-117.14172363281251,32.58384932565662],[-117.09228515624999,32.46342595776104],[-117.0538330078125,32.29177633471201],[-116.96044921875,32.194208672875384],[-116.85607910156249,32.16631295696736],[-116.6748046875,32.20350534542368],[-116.3671875,32.319633552035214],[-116.1474609375,32.55144352864431],[-116.1639404296875,32.80574473290688],[-116.4111328125,33.073130945006625],[-116.72973632812499,33.08233672856376],[-117.09228515624999,32.99484290420988],[-117.2515869140625,32.96258644191747], [-117.23510742187501,32.861132322810946]]] } }
  ]
}

Or you can use the following image -

thank you @Shivamdhar we really appreciate this!


Dependency Injection For Function Arguments

Description
In the event that you're calling a prompt multiple times, you may not want to retrieve the same information over and over again. For example:
# note: this is referencing a feature that does not yet exist
from mirascope.core import Messages

@openai.call("gpt-4o-mini")
def recommend_book(user: User) -> Messages:
    user_info = get_user_info_from_db(user)
    return f"recommend a {user_info.favorite_genre} book"

Every single time this function is called will result in pulling from the database. It seems like we should support caching this value similarly to how FastAPI does it, something maybe like this:
from mirascope.core import Depends, Messages

@openai.call("gpt-4o-mini")
def recommend_book(user_info: Annotated[UserInfo, Depends(get_user_info_from_db)]) -> Messages:
    return f"recommend a {user_info.favorite_genre} book"

While I like this idea, there are a few things with this design that I haven't figured out, such as how we could correctly type the function such that the lsp knows that recommend_book actually takes user as input and not user_info?
What about when we want something to depend on an input but also retain access to that input, e.g.
from mirascope.core import Depends, Messages

@openai.call("gpt-4o-mini")
def recommend_book(user: User, user_info: Annotated[UserInfo, Depends(get_user_info_from_db)]) -> Messages:
    return f"recommend a {user_info.favorite_genre} book"

I think this is an interesting idea worth fleshing out further and figuring out.

Hmm, after further thoughts and reading through the FastAPI docs, I'm not sure this makes much sense. It's worth noting that FastAPI does certain caching on the dependency, but it doesn't cache across calls unless you handle that caching in your dependencies (unless I'm mistaken)?
I also feel that it's a bit confusing here why you would use a dependency rather than just calling the function internally in the function body.
Closing this unless there's good reason to reopen.


Adding for in loop inside table generates empty row.

My code looks likes this

No I haven't, let me try that
On Tue, 17 Nov 2020, 9:31 pm Jurriaan BW<EMAIL_ADDRESS>wrote:

This is deep Word voodoo, but have you tried removing the two empty 'Root
Cause' and 'Corrective Action' cells above and below the templated row in
your template?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/guigrpa/docx-templates/issues/168#issuecomment-729026231,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALAFH2QKRZOVL3FMHD5C3ADSQKM5TANCNFSM4TYRITKA
.

This is deep Word voodoo, but have you tried removing the two empty 'Root Cause' and 'Corrective Action' cells above and below the templated row in your template?

Hey so I tried with two different types of tables.

Simple Table
Nested merged cells tables

Some extra rows are still added in the nested tables
The code of nested table looks like this

Help me sort out this issue

template

This is deep Word voodoo, but have you tried removing the two empty 'Root Cause' and 'Corrective Action' cells above and below the templated row in your template?

Yup this works thanks

I am trying this, it is creating just fine except a row is being added at the end of the table, also is it possible to ignore cells if image is empty?
report docx:


Using through Maven and Java modules

Hey!
Is there a way to use this with maven and Java modules? I tried to included these dependencies:
<dependency>
	<groupId>org.jetbrains.kotlin</groupId>
	<artifactId>kotlin-stdlib</artifactId>
	<version>${kotlin.version}</version>
</dependency>
<dependency>
	<groupId>com.github.kotlin-graphics</groupId>
	<artifactId>imgui</artifactId>
	<version>v1.52</version>
</dependency>

But then I'm not able to require it in my module-info.java. Any idea?

It should.
I use it in a modular java project with Gradle.
Sorry but I'm not a Maven expert, what do you mean exactly by saying you are not able to require it?

I'm closing this because of no activity, feel free to reopen in case


RecursionError: maximum recursion depth exceeded while calling a Python object

Describe the bug
I believe this error happens when I'm running reloadium on a very large project.
I.e. despite the fact, that I've specified to 'watch only 1 file'(just trying to test things out), it still seems to load the whole thing(all .py files out there).
To Reproduce
Steps to reproduce the behavior:

Go to 'Settings -> Reloadium project settings'
Specify single file in 'reloadable paths'
Start project with a lot of files(there's thousands of files i believe), see error

Expected behavior
Project runs.
Screenshots

error finishes with
File "/usr/local/lib/python3.10/copy.py", line 271, in _reconstruct
state = deepcopy(state, memo)
File "/usr/local/lib/python3.10/copy.py", line 137, in deepcopy
     d = id(x)
RecursionError: maximum recursion depth exceeded while calling a Python object
Reloadium experienced a fatal error and has to quit.
Please submit a github issue to let us know at https://github.com/reloadware/reloadium

Desktop or remote (please complete the following information):**

OS: [MacOS]
OS version: [12.6 (21G115)]
M1 chip: [yes]
Reloadium package version: [1.1.0]
PyCharm plugin version: [1.1.0]
Editor: [PyCharm]
Python Version: [3.10.9]
Python Architecture: [64bit]
Run mode: [Debug]

Additional context
I verified that it happens specifically due to large amount of loaded files by adding whole project in ignore paths and specifying in 'reloadable paths' only a single file.

Despite the fact that it didn't worked as I expected(there were 0 files loaded instead of single file), I still could see that project started in debug mode:

I believe this is happening because Add current working directory to reloadable paths is selected.
Could you unselect that, add only files of interest to reloadable paths and try again?

@dkrystki you're right, it helped! thank you


schema type for auditlog.responseCode doesnt match actual returned value type

Rancher versions:
rancher/server: 1.6.9
rancher/agent:
Here's the schema for auditLog:
{
"id": "auditLog",
"type": "schema",
...
"resourceFields": {
...
"responseCode": {
"type": "string",
"description": null,
"create": false,
"update": false
...

but here's an actual returned audit log objet:
{
"id": "1al13",
"type": "auditLog",
...
"responseCode": 201,
...
}

We store it in the DB as an int here: https://github.com/rancher/cattle/blob/5a0f58013ba8ea185fe7f1246a4ab44646c16752/modules/caas/common/src/main/java/io/cattle/platform/audit/impl/AuditServiceImpl.java#L76
which means the data is stored incorrectly. So, we either need to change the schema type from string to int (and regenerate the golang client (which is how we found this bug) or we need to create an output filter that dynamically changes the value from an int to a string to match the existing schema

But it is an int... so isn't it stored & returned correctly and the schema type is just wrong?

@vincent99 sorry, bad wording on my part. The data is stored inconsistently with its representation in the schema.
I'm open for changing the schema type, which is the quickest and easiest fix, but wanted to get at least you or @ibuildthecloud to agree since we are technically breaking the schema

Offline discussion: we are in agreement that we should just change the schema to be an string.

available on master and v1.6-development. not in an RC yet

Rancher server: v1.6.11-rc1
I can verify that the responseCode type is now int instead of string in the schema:
"responseCode": {
"type": "int",
"description": null,
"create": false,
"update": false,
"readOnCreateOnly": false
},

and no issues found when displaying audit logs.


Exception at PhotometricInterpretation=WhiteIsZero

If PhotometricInterpretation (262) is WhiteIsZero (0), an exception is raised at decodeImageData().
I want you to support WhiteIsZero.

Hi, do you have an example image that can be used to reproduce this issue?

Please try this file.
https://drive.google.com/open?id=1OEdE4HN-qS_q7ruqVNRy6Q2Xb9qScZgS

I have a fix ready. Can I keep your image in this repository for unit tests?


Benchmark on PSQL 15 not working

I am not sure where the right repo for this issue would be, so I am filing it here, as we encountered the problem while trying to get the operator to work.
Describe the bug
Postgres version 15 sends/requires SNI Headers which lower versions to not send. This leads to a host of different errors and renders the operator unusable for us.
Expected behavior
There should exist an up-to-date version of the quay.io pgbench image. The current latest image uses the postgres 11 package, which is EOL since last year. I would have liked to provide a fix directly to the repo where the image is built but was unable to find it...
Additional context
We are trying to benchmark/monitor/debug our postgres installation in an azure/aks cloud

Ummm I can do that, but as stated I dont know where the image is coming from (I dont think it is in this repository). Can you give me some direction on where this https://quay.io/repository/cloud-bulldozer/pgbench image is getting built from? Then I can take a look.

My bad - the container file is here https://github.com/cloud-bulldozer/benchmark-wrapper/blob/master/snafu/pgbench_wrapper/Dockerfile


feat: add ciemss simulate workflow node

Description

Resolves #1268

Per discussion.

Let's remove the modal and editing stuff from tera-model-configuation-ciemss
Let's rename tera-model-configuration-ciemss => tera-model-configuration-distribution