support IS [NOT] UNKNOWN

Syntax
expression IS UNKNOWN

Description
The IS UNKNOWN predicate in Postgres is used to test if an expression
returns an unknown value, which is typically represented by a NULL.
This predicate can be used with various expressions, such as boolean
expressions, to check if the result is unknown due to the presence of
NULL values.
Parameters

expression: The expression to be tested for an unknown value.

Returns
The predicate returns true if the expression result is unknown
(NULL), and false otherwise.
Examples
SELECT (NULL AND true) IS UNKNOWN; -- Returns true
SELECT (NULL AND false) IS UNKNOWN; -- Returns true
SELECT (true AND false) IS UNKNOWN; -- Returns false

In these examples, the IS UNKNOWN predicate tests if the result of
boolean expressions is unknown due to the presence of NULL values.
See Also

IS NULL: Tests if an expression returns a NULL value.

IS NOT UNKNOWN: Tests if an expression does not return an unknown
value.

COALESCE: Returns the first non-null argument or null if all
arguments are null.

Compatibility
The IS UNKNOWN predicate is compatible with PostgreSQL and is part of
the SQL standard.

Notice that IS UNKNOWN and IS NOT UNKNOWN are effectively the same as IS NULL and IS NOT NULL, respectively, except that the input expression must be of Boolean type.

Given we already support IS [NOT] NULL, we just need to check argument type and then bind to the same expr type... and add the missing parser support.


There are no commands defined in the "module" namespace.

Hello,
I install modules and trying to run below command.
php artisan module:make pharmacy
It shows below error:
[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "module" namespace.
How can I solve the issue?
Thanks

composer dump-autoload
work for me

Make sure you installed the package correctly (adding the service provider) and indeed ran dump autoload.

Thank you for your reply. Yes, composer dump-autoload works.

Cool 👍

ran composer dump-autoload still not working

If someone comes here to find a solution, here will help you:
Solution 1:
The general main cause of this kind of error is missing etc/module.xml file in your module. Or, missing setup_version code in module.xml file.
Here is a sample module.xml file of a module named YourNamespace_YourModule.
app/code/YourNamespace/YourModule/etc/module.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">

    <module name="YourNamespace_YourModule" setup_version="2.0.0" />

</config>

If you are not sure which module is creating this problem, you can try removing each module and check to find the problematic module.
Solution 2:
If solution 1 doesn’t help then you can try this second solution.
Give full control (read/write/execute) to var and pub directory solved this issue for me.
sudo chmod -R 777 var pub

You may also try running the following command:
sudo php -f bin/magento module:enable --clear-static-content YourNamespace_YourModule

Reference: http://blog.chapagain.com.np/magento-2-invalidargumentexception-there-are-no-commands-defined-in-the-setup-namespace/

I'm pretty sure this is not a Magento repository... Or in any way related to Magento...

Having same issue, tried composer dump-autoload several times but does not work for me.

composer dump-autoload still not working

`manikandan@manikandan /var/www/html/MyProject $
manikandan@manikandan /var/www/html/MyProject $
manikandan@manikandan /var/www/html/MyProject $
manikandan@manikandan /var/www/html/MyProject $ php artisan cache:clear
Cache cleared successfully.
manikandan@manikandan /var/www/html/MyProject $ composer dump-autoload
Generating optimized autoload filesCarbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Package manifest generated successfully.
Generated optimized autoload files containing 2050 classes
manikandan@manikandan /var/www/html/MyProject $ php artisan module:make mymod

There are no commands defined in the "module" namespace.
manikandan@manikandan /var/www/html/MyProject $`

if you are using  linux system it may be due to permission issue. so you can give the permission by command
sudo chmod -R 777 your_project_folder_path
thanks

not working for me I have tried all methods.


Verify clortho can also verify themis tokens

Presently, docker images for tr1d1um and argus default to using themis as a jwt provider.  We need to verify that clortho can also verify themis tokens.

Clortho doesn't verify tokens.  It's only concerned with keys.  Themis is still our JWT issuer.  Clortho is how a client obtains the verification key.


Dan/2023/01/replace eth with native

Addresses https://gist.github.com/0age/349aef9a83d82b1bf2438937001adcef#replace-eth-with-native-token

Codecov Report
Base: 99.31% // Head: 99.31% // No change to project coverage :thumbsup:

Coverage data is based on head (3321c4e) compared to base (b877c18).
Patch coverage: 100.00% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##              1.2     #921   +/-   ##
=======================================
  Coverage   99.31%   99.31%
=======================================
  Files          47       47
  Lines        2642     2642
  Branches      390      390
=======================================
  Hits         2624     2624
  Misses         18       18

Flag
Coverage Δ

foundry
75.21% <64.28%> (ø)

production
100.00% <100.00%> (ø)

reference
100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

contracts/Seaport.sol
100.00% <ø> (ø)

contracts/lib/Consideration.sol
100.00% <ø> (ø)

contracts/lib/ConsiderationErrors.sol
100.00% <ø> (ø)

contracts/lib/Executor.sol
98.73% <ø> (ø)

reference/ReferenceConsideration.sol
100.00% <ø> (ø)

contracts/lib/BasicOrderFulfiller.sol
100.00% <100.00%> (ø)

contracts/lib/OrderCombiner.sol
100.00% <100.00%> (ø)

contracts/lib/OrderFulfiller.sol
100.00% <100.00%> (ø)

reference/lib/ReferenceBasicOrderFulfiller.sol
100.00% <100.00%> (ø)

reference/lib/ReferenceExecutor.sol
100.00% <100.00%> (ø)

... and 2 more

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Add open source license for BOP

@hfkfo , please add an open source license for your project. If you are not sure how to do it, see https://github.com/solvcon/modmesh.

@hfkfo Any comment?  I'd like to hear from you.  And I'd like to see progress in your repository.

I add an open source license

LGTM.
Using a PR referencing this issue would have made the activity speak for itself.

Use your judgement for the fate of this issue.


DNS failures in pods on new and rebooted worker units

We recently rebooted a couple of our kubernetes-worker units, one each in a pair of CDK environments.  Following the reboot, in both cases, DNS is no longer working in containers running on the rebooted worker.
There is some evidence that DNS works for a brief time, at least occassionally, in that our appserver pods successfully look up the kube-dns alias for the external database host and connect, but when I kubectl exec into the pod and try DNS lookups, DNS hangs and times out.
The deployment is running Kubernetes 1.8.8 on Ubuntu 16.04 LTS.

I just solved this problem by running sudo iptables -P FORWARD ACCEPT on all the worker nodes. ufw sets this to DENY by default (in /etc/default/ufw).

Thank you @jetpackdanger , @axinojolais , for reporting and offering a fix for this issue. Would you please provide some more info? What provider are we talking about here, openstack? have you seen this in other providers as well? Do you have any custom iptable rules you apply yourself on the workers?  Is the sudo iptables -P FORWARD ACCEPT something you would expect to be there on all CDK deployments or is it specific to your setup?
Thanks.

Yes, provider is openstack. We don't use any other provider, so can't report. This bug is probably present wherever ufw is installed. We don't have/need custom iptables rules.
I don't think setting the FORWARD policy to ACCEPT is specific to our setup. In fact, it's mentioned at https://docs.docker.com/install/linux/linux-postinstall/#allow-access-to-the-remote-api-through-a-firewall. I'm not sure if anyone is using ufw on juju-deployed instances though. Perhaps you'll want to be more restrictive than simply unconditionally allowing any forward.

I see this in the charm:
def fix_iptables_for_docker_1_13():
     """ Fix iptables FORWARD policy for Docker >=1.13
     https://github.com/kubernetes/kubernetes/issues/40182
     https://github.com/kubernetes/kubernetes/issues/39823
     """
     cmd = ['iptables', '-w', '300', '-P', 'FORWARD', 'ACCEPT']
     check_call(cmd)

Sounds like that needs to persist reboots.

Actually, it's possible we need to update our charms, we don't see that code in our charms on disk

ufw is not enabled on any of our kubernetes-worker units, so I don't believe this is the source of the bogus FORWARD chain policy.

I replaced /sbin/iptables with a wrapper script and it looks like docker-containerd is to blame for this.
ubuntu@juju-0f73fb-stg-is-kubernetes-77:~$ grep -B1 -- '-P FORWARD DROP' /tmp/iptables.*
/tmp/iptables.2155.ps.dump-root      1559  2.0  0.0<PHONE_NUMBER>6 ?        Ssl  20:17   0:00  _ containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libcontainerd/containerd --shim containerd-shim --runtime runc
/tmp/iptables.2155.ps.dump:root      2155  0.0  0.0   4504   840 ?        S    20:17   0:00  _ /bin/sh /sbin/iptables --wait -t filter -P FORWARD DROP
/tmp/iptables.2157.ps.dump-root      1559  2.0  0.0<PHONE_NUMBER>6 ?        Ssl  20:17   0:00  _ containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libcontainerd/containerd --shim containerd-shim --runtime runc
/tmp/iptables.2157.ps.dump:root      2155  0.0  0.0   4504   840 ?         (I had read it as docker >= 1.13 failing to cope with FORWARD being set to DROP, rather than being responsible for it.)

https://github.com/moby/moby/pull/28257
https://github.com/kubernetes/kubernetes/issues/40182


Runtime reporting some leftover bytes at termination

Hey, I'm using valgrind to scan my CloudABI programs for any memory leaks. The good news is, my short example programs appear to be clearing their heap fairly well. The bad news is, our runtime appears to leave a few bytes hanging when exit() runs.
Now, this is not exactly critical, but it does muddy the water when programmers are trying to make sense of the valgrind output.
Source
https://github.com/mcandre/tonixxx/tree/issue-115/examples/fewer
Trace
$ valgrind --error-exitcode=1 --leak-check=full cloudabi-run -e bin/fewer <cloudabi-unittest.yml
==1305== Memcheck, a memory error detector
==1305== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1305== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==1305== Command: cloudabi-run -e bin/fewer
==1305==
WARNING: Attempting to start executable using emulation.
Keep in mind that this emulation provides no actual sandboxing.
Though this is likely no problem for development and testing
purposes, using this emulator in production is strongly
discouraged.
==1305==
==1305== HEAP SUMMARY:
==1305==     in use at exit: 23,703 bytes in 158 blocks
==1305==   total heap usage: 6,754 allocs, 6,596 frees, 181,227 bytes allocated
==1305==
==1305== LEAK SUMMARY:
==1305==    definitely lost: 0 bytes in 0 blocks
==1305==    indirectly lost: 0 bytes in 0 blocks
==1305==      possibly lost: 0 bytes in 0 blocks
==1305==    still reachable: 23,703 bytes in 158 blocks
==1305==         suppressed: 0 bytes in 0 blocks
==1305== Reachable blocks (those to which a pointer was found) are not shown.
==1305== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==1305==
==1305== For counts of detected and suppressed errors, rerun with: -v
==1305== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Could we clear up these hanging blocks, so that programmers see only their particular application's leaks?

I'm not sure there's a lot we can do here. You're running valgrind against cloudabi-run -e. I don't think a tool like valgrind could accurately trace memory allocations performed by the CloudABI process running inside of the emulator.
You are likely seeing memory leaks in the emulator itself. If those leaks are harmful, we should of course fix them. Ones that are benign may not be trivial to fix, due to the way control flow is done within the emulator.


Revisit editorOpenWith living on its own

I feel the editorOpenWith.ts thing needs to go away and move to respective services. It seems wrong to me that you pass in an editor group to operate on instead of having this exposed from the IEditorGroupService. Here is my thinking:

add a new method to IEditorGroup (e.g. openEditorWith)
clients will use IEditorGroupService.getGroup().openEditorWith(...)
this method should also include the necessary dialog prompts for dealing with unsaved editors (from https://github.com/microsoft/vscode/pull/115264)

As for the remaining pieces of editorOpenWith.ts we can simply move them into src/vs/workbench/common/editor.ts at the end into a new folded region.

This is now outdated and please see the proposal in https://github.com/microsoft/vscode/issues/100281. Feel free to close.

Closing in favor of #100281


[ad-hoc filters] Remove legacy split in /explore (#5533)

(cherry picked from commit e52518c3cd3eb623f451c0d5ea1d6608654f84fa)
to: @graceguo-supercat @michellethomas @timifasubaa

Codecov Report

Merging #70 into airbnb-master will decrease coverage by <.01%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##           airbnb-master     #70      +/-   ##
================================================
- Coverage           65.7%   65.7%   -0.01%
================================================
  Files                346     346
  Lines              21831   21830       -1
  Branches            2419    2419
================================================
- Hits               14344   14343       -1
  Misses              7476    7476
  Partials              11      11

Impacted Files
Coverage Δ

superset/views/core.py
74.83% <ø> (-0.02%)
:arrow_down:

Continue to review full report at Codecov.

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


Improve metadata.json

Hello
Can you please update your metada.json to include the dependencies ? Something like https://github.com/acidprime/r10k/blob/master/metadata.json
I know it's in the "migrate to 1.0.0" doc but I spent an hour banging my head before finding initfact, when something like this would pull the module automagically
 "dependencies": [
    {
      "name": "jethrocarr/initfact",
      "version_requirement": "~= 1.0"
},

Anyway, thanks for the nice work

Sorry, but I don't follow.
The dependency is there:
https://forge.puppet.com/biemond/wildfly/dependencies
https://github.com/biemond/biemond-wildfly/blob/v1.0.0/metadata.json#L9
Even downloaded tarball from: https://forge.puppet.com/v3/files/biemond-wildfly-1.0.0.tar.gz
And it is working. Tried puppet module install too and:
puppet module install biemond-wildfly
Notice: Preparing to install into /home/jjunior/.puppetlabs/etc/code/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/home/jjunior/.puppetlabs/etc/code/modules
└─┬ biemond-wildfly (v1.0.0)
  ├── jethrocarr-initfact (v1.0.1)
  └── puppetlabs-stdlib (v4.12.0 -> v4.13.1)

Could you describe your setup?

Ok, I understood what happened. I use r10k to deploy puppet modules, and it doesn't grab dependencies : https://tickets.puppetlabs.com/browse/RK-3
Sorry for the trouble !

This project might help you: https://github.com/rnelson0/puppet-generate-puppetfile


Media control widget suggestions

HI. I just built new version from sources and it looks great! But you made a single media control widget with switches. Should we expect an option to switch between old and new variation in future versions? IMO the old one was quite handy when you have a lot of screen space

Also, it might be reasonable to hide a three dots button when additional player options are not available.

Well I wanted it to be similar to Windows 10X's UI. So instead of creating a separate UI, I recreated the Windows 10X Media control UI.
And I won't change my decision about this. (Would be consistent with win 10 once it's UI is updated)
Scrolling vertically would take up a lot of the available screeb space and my be irritating to users with small displays.
And for the "three dots button" it could be hidden (later) if no options are available.

We may have had a misunderstanding, so I made this concept:

So I'm not suggesting returning the old style.

Scrolling vertically would take up a lot of the available screen space and my be irritating to users with small displays.
I don't mean scrolling, but statically positioned. And because of small displays I suggest to make it optional. Something like "Always show all media sources", and it would switch between current behavior and suggested.

Anyway, thank you for your job!

Hey @Dubzer, so you want to keep the new UI but need an option to show multiple session controls vertically and not one at a time in horizontal.
That could be done, it would be a nice little feature. It's also easy to be done.

It would be great if it was calculated according to screen height. But as it will require an additional work, I think 2, or maybe 3 is enough

Hey @Sameul12321, since this feature will require changes in settings (i.e. reorg). Can you move this issue from v0.7 project to v0.8?

Hey @Dubzer, the ability to auto hide  the "More Controls" button has been added in 8754e253e59ad9193493f9a71032cf4ace90f255
The 1st half of this request is postponed to v0.8 😅. But please be patient until your request is implemented.

Hey @Sameul12321, since this feature will require changes in settings (i.e. reorg). Can you move this issue from v0.7 project to v0.8?

sure

@Dubzer,
Sorry for taking too long (~3 months) to implement this 😅.
And thank you so much for proposing this idea ✌.
Your proposal has been implemented in 7e587f1fc7601021949f0bb943bc62722275b398

Currently the settings window is messed up, so all options are placed on a single page. I'm working on reorganizing it.
There won't be a 2px gap between those controls like it used to in v0.2.0
I hope I did what you wanted.
If you're still willing to use this app, wait till v0.8 is released. Feel free to propose new ideas 👍 😁

definitely think the gap is needed.

Could you see the 8px spacing?

Sorry?

I was joking 😂. Do you guys like it?

Sorry, i misinterpreted your statement.
Yes, it will be a good feature to have.

Can we also reduce it to 1? And what's the behaviour, say I set it to 2, but I have 3 media sources. What will be the behaviour for that?

It will show scroll buttons if the controls are more than the max controls.
Why are you even confused about this 🤣?
I added the ability to switch between vertical and horizontal stacking. Only the vertical layout will have spacing and the ability to show multiple session controls.

Any suggestion for the sentence to show there?

I didn't get you. What sentence?

What should be the header for the new vertical media controls count option?
Currently it is Maximum Number of Media Session Controls vertically. It seems to be confusing. We need a replacement for that.
Any suggestions?

I think
Maximum media session controls
I say we hide this setting or grey it out when horizontal mode is selected.

No we shouldn't (we can but we shouldn't). They are independent of each other and should be independently controllable.
I added vertically to reduce confusion.
What about Maximum Number of Media Session Controls to show vertically then?
If you still insist on disabling it while choosing Horizontal, we can do that.

Lets clear one point. Is this feature for multiple flyouts available in horizontal mode?

Is this feature for multiple flyouts available in horizontal mode?

No, that's I've been saying all along

I agree with @Cyberdroid1, the current terminology can be confusing.  i personally think the option to select the maximum number of vertical media controls should be disabled or hidden when set to horizontal. Otherwise it seems like this feature also occurs horizontally.

Ok that's cool, we already need to update some sentences to make them clean and professional.
We can do this together with that.
Hey @Samuel12321, we are getting translation PRs at unwanted times, what should we do?
Let's say i introduce  a temporary string like the previously mentioned one, people are updating the translations even for the temporary strings.
It is hard to maintain consistency across the resx files. The commit history will be unnecessarily filled. I am still confused about the past PRs, would they even work? Why merge them if they don't work?
How should they help us with multilingual support?
How and when should we accept translation PRs?
What about the xlf files & Multilingual App Toolkit?

Found out how to make them work.
Regarding translation PR's i will review them and merge them when it suits.


Remove support for Security Manager

According to the Jakarta EE 11 plan, we should have removed all references to the Java SE security manager APIs -> "Remove all use of SecurityManager" (emphasis mine). In CDI we forgot to do this.
As it is purely an implementation detail, I believe we can (and should) do this in a service release of the CDI API.
See also https://github.com/jakartaee/cdi/pull/830
cc @ivargrimstad @edburns

I'll add the analysis I put on the discussion on the PR:

We have no spec requirements for SecurityManager
Our API classes do not extend, implement or reference in their method signatures any SecurityManager-related classes

In the worst case, I think this means that an implementation could use their own versions of these API classes with all mention of SecurityManager removed and still pass the TCK and signature tests.

The only methods we do call within our API classes are System.getSecurityManager and AccessController.doPrivileged. These methods will still be present in Java 24 (at least according to JEP 486, section Advice to maintainers of libraries that support the Security Manager).

Given that there is currently no plan to remove the methods we do still use, I don't see any reason to change the code in the API jar that has already been released, particularly as nothing would prevent us from doing a patch release at some point in the future if this did become an actual problem for anyone.

Given that there is currently no plan to remove the methods we do still use,

Can you eleborate on that? The plan AFAIK was firmly in place. We just forgot to act on it for CDI 4.1, right?

I don't see any reason to change the code in the API jar that has already been released

Would that be even possible? Maven central artefacts are immutable. I don't think we should change anything in a jar that was already released. We could easily do a 4.1.1. I just did two of such releases for the Faces API, and that was really no big deal at all.

Can you eleborate on that? The plan AFAIK was firmly in place. We just forgot to act on it for CDI 4.1, right?

There is no plan to remove the two methods that we use (System.getSecurityManager and AccessController.doPrivileged) from Java. Hence, there is no need to remove our code that calls them.

We could easily do a 4.1.1.

Sorry, I was meaning that I see no reason to do a patch release. As a user, I would generally consider a patch release to be bug fixes only and essentially a replacement for the previous release. I do not see a reason to do a 4.1.1 release. I don't deny that it would be easy, but I don't think we should be changing anything unnecessarily in a patch release.

Hence, there is no need to remove our code that calls them.

I still don't understand, sorry for persisting here.
I meant; didn't we all agree on the Jakarta EE 11 plan, where we all committed to remove all references to the security manager in our APIs?

Well clearly many specifications (it's not just CDI, but also REST and others) didn't get the memo. I know I didn't. Communication is hard.
Apparently, the REST people agree with the opinions stated here -- this is an OK change for the next release, but there's no need to do a micro release of the current APIs just to remove references to the security manager. Honestly -- the security manager APIs are not being removed yet, and there's no public timeline for that, so it's just not a big deal.

Well clearly many specifications (it's not just CDI, but also https://github.com/jakartaee/rest/issues/1262 and others) didn't get the memo. I know I didn't. Communication is hard.

It is hard indeed.
I think it might have easily been the case of this decision coming late in our cycle when we had the release basically done.
While I recall it being discussed during early stages of EE 11 development, I also remember that there was no decision at the time (possibly because nobody was sure if SM is going to stop working with 17 or not really).
As for maintenance release of 4.1, I am with Ladislav and Andrew - I don't think this is worth the hassle. I am not saying that it would be difficult, it's just that the presence or absence of this code has no effect on users consuming CDI APIs, regardless of what supported JDK version they pick.
IMO the important part is that we removed SM references for future CDI versions, where the actual removal of SM happens.

and there's no public timeline for that, so it's just not a big deal.

Isn't that re-discussing something that was already decided? I mean, if it wasn't a big deal, why did we put it in the EE 11 plan as a major item?


lineart broken in conky

Hi!
I try to setup gcalcli and conky to show a weekly calendar. Here is the line in my .conkyrc file:
${execp ~/gcalcli-master/gcalcli --locale fr_CH.UTF-8 --military --conky calw}
The screenshot shows a portion of the result.

I have to use the "--nolineart" flag for it to work, but it's kind of ugly...
Is there a way to make it work?
Thanks for you work!


Upgrade to ruby 2.5 and rubocop 0.63

https://github.com/exercism/ruby/issues/930
I'd prefer to only upgrade ruby, but doing so breaks rubocop.
Upgrading rubocop on its own also isn't an option as it requires newer versions of ruby.
./bin/compile --all's output doesn't change and the tests are passing.
Rubocop needed quite substantial changes. I'd be interested how the original .rubocop.yml was generated so that I can make my rubocop change less drastic.

I'd be interested how the original .rubocop.yml was generated

rubocop --auto-gen-config can help you in this regard, I think.

I have no idea what the mry command is.

@kotp thanks for the approval.
I didn't know what mry was either until yesterday.
https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md#updating-the-configuration-file
https://github.com/pocke/mry
The names of some of the cops and the names of their configuration changes between versions of rubocop. mry will automatically update the .rubocop.yml to replace the old names with the new names. It's not perfect, but it did save a lot of time.


DOCKER- Not able to connect to mysql docker container when using username and password

I am trying to connect to mysql docker container, but i am not able to do it. It always gives me access denied error (Using password YES). If i try any other mysql client i am successfully able to connect it. I am not sure if i am doing anything wrong or if its a bug but i tried 5 other mysql clients and they were successfully able to connect to dockers mysql container with same username and password. For your reference i am pasting the mysql container config below. Hope that helps you to look into the issue. I have also verified that IP address and ports are binded correctly.
    {
        "Id": "94e783f0dc9a4c746a304f6ece5d9e32cae37e50ca3c3319aa696f58f0c3365b",
        "Created": "2016-09-06T16:53:59.744336286Z",
        "Path": "docker-entrypoint.sh",
        "Args": [
            "mysqld"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 2854,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2016-12-06T17:46:26.520043918Z",
            "FinishedAt": "2016-12-06T17:46:18.255418186Z"
        },
        "Image": "sha256:5e0f1b09e25ef4ebe869ac9e8ded599804bbf17f7a29386440342cbbd3054012",
        "ResolvConfPath": "/var/lib/docker/containers/94e783f0dc9a4c746a304f6ece5d9e32cae37e50ca3c3319aa696f58f0c3365b/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/94e783f0dc9a4c746a304f6ece5d9e32cae37e50ca3c3319aa696f58f0c3365b/hostname",
        "HostsPath": "/var/lib/docker/containers/94e783f0dc9a4c746a304f6ece5d9e32cae37e50ca3c3319aa696f58f0c3365b/hosts",
        "LogPath": "/var/lib/docker/containers/94e783f0dc9a4c746a304f6ece5d9e32cae37e50ca3c3319aa696f58f0c3365b/94e783f0dc9a4c746a304f6ece5d9e32cae37e50ca3c3319aa696f58f0c3365b-json.log",
        "Name": "/mysql",
        "RestartCount": 0,
        "Driver": "aufs",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/Users/ankit/development/base-infrastructure/docker/mysql:/etc/mysql/conf.d:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "krg.io",
            "PortBindings": {
                "3306/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "3306"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "always",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": [],
            "CapAdd": null,
            "CapDrop": null,
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": null,
            "DiskQuota": 0,
            "KernelMemory": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": -1,
            "OomKillDisable": false,
            "PidsLimit": 0,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0
        },
        "GraphDriver": {
            "Name": "aufs",
            "Data": null
        },
        "Mounts": [
            {
                "Name": "cdab83280074f679decaef7cbaa0452147985e077b9ed41dcb0c961a8e53e834",
                "Source": "/var/lib/docker/volumes/cdab83280074f679decaef7cbaa0452147985e077b9ed41dcb0c961a8e53e834/_data",
                "Destination": "/var/lib/mysql",
                "Driver": "local",
                "Mode": "",
                "RW": true,
                "Propagation": ""
            },
            {
                "Source": "/Users/ankit/development/base-infrastructure/docker/mysql",
                "Destination": "/etc/mysql/conf.d",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "94e783f0dc9a",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "3306/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "MYSQL_ROOT_PASSWORD=root",
                "no_proxy=*.local, 169.254/16",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "GOSU_VERSION=1.7",
                "MYSQL_MAJOR=5.6",
                "MYSQL_VERSION=5.6.32-1debian8"
            ],
            "Cmd": [
                "mysqld"
            ],
            "Image": "mysql:5.6",
            "Volumes": {
                "/etc/mysql/conf.d": {},
                "/var/lib/mysql": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "docker-entrypoint.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "com.docker.compose.config-hash": "79393a44090c40e71a5a161e2281053e3666788c78ed815fd918e61268aff151",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "baseinfrastructure",
                "com.docker.compose.service": "mysql",
                "com.docker.compose.version": "1.8.0"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "a86840295a48d397a452f8e94c62286b8bcadee53d7b04b6c85cb105c8037d84",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "3306/tcp": [
                    {
                        "HostIp": "<IP_ADDRESS>",
                        "HostPort": "3306"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/a86840295a48",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "krg.io": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "94e783f0dc9a",
                        "mysql"
                    ],
                    "NetworkID": "56a5b5c3a0806a5607379d509adddb0ab0295e63ff99fd88a7d760e0f4314e61",
                    "EndpointID": "0a87da5a5d3ae1e1636d86f71c1720f6afe40c49aac4d5b2dc0e973d58948da6",
                    "Gateway": "<IP_ADDRESS>",
                    "IPAddress": "<IP_ADDRESS>",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "removed purposely"
                }
            }
        }
    }
]```

Maybe it is something about source host name (by default mysql requires you to grant permission for each external host).
Hove no other ideas for now.

after 2 hours of trial and error found solution. If i type ip as <IP_ADDRESS> (which is binded)  then it works. I think there is bug where it is not properly translating an ip address when connecting to dockers mysql container.

Well, DBeaver passes all connection parameters to the driver as is, host names/IPs are resolved by MySQL driver itself. There is nothing I can do.


Fix issue while swapping left

Fixed issue while swapping immediate left sibling.

merge this changes to master branch


Bumping jest from 26.6.2 to 26.6.3 causes test running to never terminate

💥 Regression Report

Last working version
Worked up to version: 26.6.2
Stopped working in version: 26.6.3
To Reproduce
Steps to reproduce the behavior:
Clone this repo, do npm ci then npm run test and watch the test stay running until CTRL-C is used
Expected behavior
npm run test will run the test then return the user to the command prompt

Link to repl or repo (highly encouraged)
https://github.com/heath-freenome/busted-jest

Run npx envinfo --preset jest
Paste the results here:
  System:
    OS: macOS 10.15.7
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Binaries:
    Node: 14.7.0 - ~/.nvm/versions/node/v14.7.0/bin/node
    npm: 6.14.7 - ~/.nvm/versions/node/v14.7.0/bin/npm
  npmPackages:
    jest: ^26.6.3 => 26.6.3

Try to add the fsevents package 2.2.1 version temporarily with:
npm i -D<EMAIL_ADDRESS>#10777 and #9473 seems to be related.

Yep, this is a duplicate of ##10777. Either upgrade or downgrade the installed version of fsevents

I fixed this issue by uninstalling and reinstalling<EMAIL_ADDRESS>using npm. Thanks, not sure how it got messed up. The resulting reinstall included<EMAIL_ADDRESS>For whatever reason the other suggestion of deleting node_modules and rerunning npm install didn't work.


Update performance tuning documentation

@gpang pay extra notice to this section:
https://github.com/Alluxio/alluxio/pull/12206/files#diff-4a80ecd06f03a8fd9a1bf9396f9b4ff3R60-R65

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-PR-Builder/11415/
Test PASSed.

@gpang PTAL, thanks!

alluxio-bot, merge this please

alluxio-bot, cherry-pick this to branch-2.4 please


Additional Tweak Suggestions

Just some stuff I've tinkered with over the past couple weeks. I'm not interested in going through the whole module process since it's only been for personal use, but you might find something interesting in here. If you add this stuff maybe I won't have to manually update the DLLs every time they patch.
SandBox
CreateRandomSettlementIssues()
I didn't like how few quests were being generated. I feel like with all the raiding and looting and warring going on villages should be desperate for any sort of help. This makes the early game a bit easier, if you prefer to do quests to start out. I started with a x2 multiplier, but found x3 a little bit more to my liking. That's what I run with now.
desiredIssueCount *= 3;
FindSuitableCompanionsToLeadCaravan()
This will search through every available party leader when generating the list of companions during the caravan creation screen. This way you can form a caravan from any city, even if the leader isn't in your party currently. The leader does teleport to the new city, but I didn't really dig into trying to make it more realistic. A side benefit is that this is more performant if you have fewer leaders / companions than troops in your party.
I ripped this from ExecuteCreateNewParty(), so you may want to periodically check that for official changes.
// You need to include this to compile
using System.Linq;

// Just straight up replace the loop in the check.
Clan clan = MobileParty.MainParty.LeaderHero.Clan;
foreach (Hero hero in (from h in clan.Heroes
	where !h.IsDisabled
	select h).Union(clan.Companions))
	{
		if (!hero.IsActive) {
			continue;
		}
		if (hero.IsChild) {
			continue;
		}
		if (hero.PartyBelongedToAsPrisoner != null) {
			continue;
		}
		if (hero.PartyBelongedTo != null && hero.PartyBelongedTo.LeaderHero == hero) {
			continue;
		}
		if (hero.PartyBelongedTo != null && hero.PartyBelongedTo.LeaderHero != Hero.MainHero) {
			continue;
		}
		if (hero.GovernorOf != null) {
			continue;
		}
		if (hero.IsOccupiedByAnEvent()) {
			continue;
		}
		if (hero.HeroState == Hero.CharacterStates.Disabled) {
			continue;
		}

		list.Add(hero.CharacterObject);
	}

TaleWorlds.CampaignSystem
MobileParty.DailyTick()
Here I tweaked the daily XP gain from the CombatTips perk to increase based on both the number of non-wounded troops in a stack, and the total number of non-wounded troops in the party. It uses logarithmic logic to try and balance out the gain in large parties. I didn't do anything with RaiseTheMeek because I never take that perk
Here's what it looks like with a party of 100 troops. I adjusted CombatTips to be 75 XP / day, so keep that in mind. 'Stack XP' is how much XP is applied to a stack with the specified count, not including the total troop XP. 'Total XP' is the Stack XP but with an additional modifier based on the total number of healthy troops in the party.

# In Stack
Stack XP
Total XP

5
194
388

10
259
519

15
300
600

20
329
659

25
353
705

30
372
743

35
388
775

40
402
804

45
414
829

50
425
851

60
445
890

70
461
922

80
475
951

90
488
976

100
499
999

int totalRegularTroops = Math.Max(this.MemberRoster.TotalRegulars - this.MemberRoster.TotalWoundedRegulars, 1);
using (IEnumerator<CharacterObject> enumerator = this.MemberRoster.Troops.GetEnumerator())
{
	while (enumerator.MoveNext())
	{
		CharacterObject attackerTroop = enumerator.Current;
		int troopPerksXp = Campaign.Current.Models.PartyTrainingModel.GetTroopPerksXp(DefaultPerks.Leadership.CombatTips);
		float bonusMultiplier = (float)Math.Max(Math.Log10((double)totalRegularTroops), 1.0);
		int troopIndex = this.MemberRoster.FindIndexOfTroop(attackerTroop);
		if (troopIndex >= 0)
		{
			int totalTrainable = this.MemberRoster.GetElementNumber(troopIndex) - this.MemberRoster.GetElementWoundedNumber(troopIndex);
			if (totalTrainable <= 0)
			{
				bonusMultiplier = 0f;
			}
			else if (totalTrainable > 1)
			{
				bonusMultiplier *= (float)(Math.Log10((double)(totalTrainable + 1)) / Math.Log10(2.0));
			}
		}
		this.Party.MemberRoster.AddXpToTroop(MathF.Round((float)troopPerksXp * bonusMultiplier), attackerTroop);
	}
	goto IL_10F;
}

Other
The only things not laid out in detail above that I think you haven't included yet are:

Decreasing the hunger rate for people in general. In this case higher numbers are lower food requirements.

Changed to 50: NumberOfMenOnMapToEatOneFood, NumberOfMenOnGarrisonToEatOneFood
Changed to 100: NumberOfProsperityToEatOneFood

Changing the minimum skill XP gain rate to be 1. There are two functions named the same: CalculateLearningRate().

explainedNumber.LimitMin(1f);

I copied your idea for increases to party size limit from the Leadership and Steward perks. But I wanted to see bigger, badder armies. So I also included a flat multiplier so that everyone can have some fun too. At the end of GetPartyMemberSizeLimit():

return num * 2;

Increasing the spawn rate for Elite troops. Apparently they start as the basic troop for the faction and are slowly leveled up if no one has recruited them. Default is 200 which is "Powerful". 100 is considered "Influential". Inside HeroShouldGiveEliteTroop():

return sellerHero.IsRuralNotable && sellerHero.Power >= 75;

I adjusted how fast you learn new smithing parts. I think there's another mod for this, but it's another simple modifier that can be enabled. Inside ResearchPointsNeedForNewPart() just change the divisor. Default is 4

return (count * count + 12) / 64;

I just added this one today, so I haven't had a lot of time to test it out. But it seemed trivial so I'm including it here. This should in theory decrease the rate of war declarations. It's inside a DailyTick, and the default is a minimum 25% chance. I changed that to 7.5% and decreased the effect the calculated war score has. Inside ThinkAboutDeclaringWar().

if (faction != null && MBRandom.RandomFloat < Math.Min(0.075f, num / 500000f))

Not sure if you this or not, but I found these perks to be too low for my liking. In a perfect world I'd have them be equal to your Leadership skill (with some funky math maybe), but I went for the low hanging fruit. Inside DefaultPerks:

15f -> 75f: LeadershipCombatTips
30f -> 150f: LeadershipRaiseTheMeek

I would really love the perk xp bonus that you talk about. In what file do I put these changes? Do I have to compile a DLL or is it as easy as just changing a file?
I program for a living so you can get technical with me.

So this is the dirty way, where you have to update with each patch. You could create a module which theoretically is more stable, but this worked for me.

Grab dnSpy: https://github.com/0xd4d/dnSpy
Load all the DLLs for Bannerlord. Just do this by dragging and dropping them into the sidebar. I threw everything from the root of bin/Win64_Shipping_Client and then every DLL in Modules (there should be 11, don't include any mods).

There are three that you care about the most: StoryMode, SandBox, (both Modules) and TaleWorlds.CampaignSystem (in bin/*).
The devs named things super well, so it didn't take me a lot of time to find things. You can search all open DLLs via Edit>Search Assemblies. It only decompiles when you load them.

Poke around and search for stuff. In the bottom view. It's mostly straightforward. With the Perk stuff it's faster just to search for DefaultPerks, open the instance, then search for the specific perk.

Here you can see I already changed the value to 75f, it defaults to 15f. RaiseTheMeek is right below it.
In order to make modifications just right click inside the editor and hit either 'Edit Method' or 'Edit Class' depending on your intention. It's faster to edit methods than classes when you can, especially since in some instances you can't actually compile the whole class due to missing assemblies. I didn't care to dig into that when editing the method worked.

Here's just a random one. Editing the method opens up an editor. Hit compile at the bottom when you're done. It will auto-format and check for errors. In some cases you may need to include additional stuff that the class has but the method doesn't directly interface. The two I've seen the most often are either TaleWorlds.Core or System.Linq. Just toss that stuff at the top in the editor, if need be.

When you're done and it's compiled, save the module. This will give you a popup where you can choose where to save it. I set it up where I have a backup of the original modules (in case you do more than just static value changing and are getting crashes), and then a separate '_modded' file.

In either case, overwrite whichever DLL you're modifying and start the game. Even if you load into a game successfully, you may see a crash when moving. There are three tick functions I've seen: HourlyTick, DailyTick, and WeeklyTick. Move around a bit (I usually wait a whole day, since DailyTick is the most common). And do other minor testing according to your changes (entering towns, recruiting troops, etc.).
???
Beg someone to implement all your changes in their module-based mod so you don't have to keep doing this yourself.

Wow awesome, thanks for the guide very helpful!

Because I'm lazy here's the Python script I use to run things in the background. There's another thing in there that doubles the maximum size of all bandits, for more Fun™.
https://pastebin.com/LTqwxum6
Oh. And you don't need to clear and re-add assemblies after a patch. Learned that the hard way. Just hit File>Reload All Assemblies.

Ohh I like the double bandit max, that is useful. Thanks for the tips guys going to patch the dll now. So annoying how little exp you get for everything.

if (this.IsActive && this.HasPerk(DefaultPerks.Leadership.RaiseTheMeek)) 			{ 				foreach (CharacterObject attackerTroop2 in from x in this.MemberRoster.Troops 				where x.Tier < 4 				select x) 				{ 					int troopPerksXp2 = Campaign.Current.Models.PartyTrainingModel.GetTroopPerksXp(DefaultPerks.Leadership.RaiseTheMeek); 					float bonusMultiplier = (float)Math.Max(Math.Log10((double)this.MemberRoster.Troops.Count), 1.0); 					int troopIndex = this.MemberRoster.FindIndexOfTroop(attackerTroop2); 					if (troopIndex >= 0) 						{ 							int totalTrainable = this.MemberRoster.GetElementNumber(troopIndex) - this.MemberRoster.GetElementWoundedNumber(troopIndex); 							if (totalTrainable <= 0) 							{ 								bonusMultiplier = 0f; 							} 							else if (totalTrainable > 1) 							{ 								bonusMultiplier *= (float)(Math.Log10((double)(totalTrainable + 1)) / Math.Log10(2.0)); 							} 						} 					this.Party.MemberRoster.AddXpToTroop(troopPerksXp2, attackerTroop2); 				} 			}
@bgoetz This look right for the raise the meek?

The faster way is to edit TaleWorlds.CampaignSystem.DefaultPerks.InitializePerks(). For 150f this is what you'll get:
this.LeadershipRaiseTheMeek.Initialize("{=JGCtv8om}Raise The Meek", "{=emH1yQAs}Medium xp bonus per day to tier 1-2-3 troops.", DefaultSkills.Leadership, this.GetTierCost(1), this.LeadershipCombatTips, SkillEffect.PerkRole.PartyMember, 150f, SkillEffect.PerkRole.None, 0f, SkillEffect.EffectIncrementType.Add);

Perks can have multiple effects. In this case we are changing the primary effect from 30 to 150 (or whatever you want).

Ya I did that, but also wanted the stack bonus you did but for raise the meek. I got it working though :D
As long as I ignore my profession developer brain, this was a super easy and quick way to mod the game!
Just based on these dlls it looks like bannerlord is quite moddable. Mod conflicts looks like they will be a nightmare though lol

Yeah. They did a fairly good job putting things together. I didn't do Warband modding, so I'm not sure what the official mod tools would be capable of.
To continue with the more troops = more fun idea, I decreased the calculated wage cost by half. I noticed leaders were starting to get a little too poor trying to run around with hundreds of troops.
Inside CharacterObject.TroopWage:
return MathF.Floor(0.5f * (float)num * (float)num2);

I also increased the number of spawned notables in towns to prevent a shortage of recruitable troops. This one only runs on a new campaign, but I've been doing that pretty much every day anyway.
Inside SpawnUrbanCharacters
// What we're looking at doing is increasing the amount of times `CreateHeroAtOccupation` is called.
// I only increased the ones that didn't have a fixed value, and kept the randomness as it is.

if (settlement.IsTown)
	...
	// In this case `num` is the target value for the 'Merchant' type. I just gave it a flat +2 increase
	int num = 3 + MBRandom.RoundRandomized(valueNormalized * 2f); // Default is 1 + ...
...
else if (settlement.IsVillage)
	// Likewise `num3` is the target value for 'RuralNotable'
	int num3 = 3 + MBRandom.RandomInt(2); // Default is 1 + ...


Das_Geek: Watch cheonan-apple.com

Das_Geek requests the watch of the watch_keyword cheonan-apple\.com. See the MS search here and the Stack Exchange search here.

cheonan-apple\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Machavity in Charcoal HQ

Approved by Machavity in Charcoal HQ


Merge from integration_2022-08-31_12.11 to main (Cray-HPE/docs-sat) 08-31

Duplicate PR from my first failed attempt to run merge_report.py when I forgot to set the JIRA_CERT_PATH. Closing.


Add word "bergschrund"

Add all the definitions of bergschrund in a file named bergschrund_noun.json in folder B

Hey @Rajdeep-G , Can you assign this issue to me?

PR done here
https://github.com/Showndarya/Hacktoberfest/pull/2530


Disable Volunteers’ access to Unlink Assigned Facility

Describe the bug
Currently, volunteers have the ability to unlink their assigned facility. This action should be restricted.
To Reproduce

Login to CARE with Volunteer access.
Go to Users > Linked Facilities
Click on unlink button

Expected behaviour
Disable the “unlink facility” option for volunteers.

Hey @aravindm4, I would like to work on it. Please assign it to me


Not compatible with latest version of pymc3

When I attempt to import gelato, it fails with the following error message:
---> 19 class LayerModelMeta(pm.model.InitContextMeta):
     20     """Magic comes here
     21     """

AttributeError: module 'pymc3.model' has no attribute 'InitContextMeta'

I believe that InitContextMeta no longer exists in pymc3; it's been merged with ContextMeta.
I don't know if there are plans to update this repository anytime soon, although it does seem like a useful tool, so it would be great if it worked with the latest pymc3.

Oh I, honestly, have no plans in maintaining this repo

@ferrine maybe add something to the readme that this is abandonware.


Release of new minor version v1.25

This PR was created in response to a manual trigger of the prepare-release workflow.
Merging this PR will create a GitHub Release and push new packages to NuGet.
NOTE: Only small fixes should be added to this PR at this point. If you need to make minor or major changes, close the PR and make those changes to refs/heads/main instead, and run the prepare-release workflow again once you are done.

@dotnet-policy-service agree


Unable to run on docker - windows

Docker container runs successfully
But unable to find terrain tile. I used following commands on command prompt:
docker run --rm -it --name ctb -v //d/docker/terrain:/data tumgis/ctb-quantized-mesh
ctb-tile -f Mesh -C -N -o terrain dsm.tif
Following error is given:
ERROR 4: dsm.tif: No such file or directory
Error: could not open GDAL dataset
i've tried many ways to give paths. Please help.

Here are some examples for mounting docker volumes on windows.
https://stackoverflow.com/questions/45972812/are-you-trying-to-mount-a-directory-onto-a-file-or-vice-versa/63658451#63658451
This may also depend what system you are using:
Are you running Docker on WSL 1 or WSL2? I am using WSL 2 and this works for me:
docker run --rm -it --name ctb \
  -v /d/my/host/dir/with/data:/data \
  tumgis/ctb-quantized-mesh

Here is the Docker volume docs: https://docs.docker.com/storage/volumes/
Closing, as this is a Docker issue and not an issue of this image.


docs(CONTRIBUTING): add tag / push steps, move notes update before commit/tag

I did get the branch change for this one in this PR, the rest of the branch change is in #216


Handle Rocket.Chat attachments

Continuing on from https://github.com/42wim/matterbridge/pull/756's code.

Hi @tadeokondrak thank you for working further on the previous PR.
Some remarks:

vendored code can not be changed, for your rocketchat changes you'll need to open a PR against https://github.com/matterbridge/Rocket.Chat.Go.SDK (branch matterbridge)
what exactly are those vendored mattermost changes needed for?

I've removed the vendored code changes. One of them was completely useless because I mixed things up, and the other was fixing the title_link_download flag for this to work:
	if !file.TitleLinkDownload {
		b.Log.Infof("File is not intended to be downloaded.")
		return nil
	}

From what I can tell, this means that clicking on the URL in Rocket.Chat will download the file, but I don't think attachments without this flag need to be ignored, since they are still shown in the channel.
I've removed the check of this flag along with the other changes.

Thanks!


Try wrapping RenderContext in a Mutex

I started working on this on the train a few weeks ago and forgot about it. I want to revisit what tripped me up. Some borrowchecker thing.

We need to take a proper stab at this as some point. I left a note at https://github.com/rerun-io/rerun/issues/1325#issuecomment-1794367764


Add "UWF-ZeekData22" dataset

Could you merge issue-13-add-datasets into add-dataset-7-uwf-zeekdata22 first so I have a correct diff of all_datasets.md? thx!

The diff is "correct" in the sense that all lines were changed. The TL;DR section for this dataset is the longest so far, so the editor added spaces to other lines.

The diff is "correct" in the sense that all lines were changed. The TL;DR section for this dataset is the longest so far, so the editor added spaces to other lines (to keep the markdown table correctly formatted).

Wouldn't it make more sense then to replace all this white space with single spaces? Actually I don't think anyone will view the table in a text editor, and it makes checking diffs unnecessarily difficult.


Support for scipy.stats.distributions?

It would be great if distributions would work in nopython mode. The scipy implemenations, while flexible, are very slow. Is that at all feasible or would it be better to recode distributions for numpy and jit them?

It's not a long term general solution, and there's the potential issue of the GPL license, but I recently got around this issue by using CFFI to wrap Rmath and just posted notes about it a few days ago:
http://nbviewer.jupyter.org/github/synapticarbors/rmath-cffi-example/blob/master/rmath-cffi-example.ipynb

Thanks @synapticarbors, that looks really cool and quite relevant. I suppose it'd be quite simple to provide a numba library wrapping all of Rmath and providing python interfaces. Is that something you're considering?

I had thought about packaging them up into standalone library, but I haven't started to put anything formal together yet. I imagine it wouldn't be terribly difficult to do just to provide the simple wrapping.

Doesn't scipy.stats just wrap some fortran/c code that you could directly expose via cffi instead of using rmath?

When looking through the scipy.stats source code, it did not look like the stats functions were as self-contained as Rmath, but it does look some of it comes from the cephes library, so that's a possibility. Actually @Juanlu001 up notes on using cephes from Numba just before I posted my notebook:
http://pybonacci.org/2016/02/07/como-crear-extensiones-en-c-para-python-usando-cffi-y-numba/
Someone with more knowledge of how scipy.stats is put together would probably have a better idea if a simple wrapper might be possible.

Actually I would say that this change should come from SciPy: there's a mix of f2py, Cython and custom C wrapping code to interface with extensions and replacing that with CFFI would both simplify the work and make more parts of SciPy callable from numba. However, nowadays with CFFI one has to write all the wrappers manually, while in SciPy they have code generators for that. I suggest asking the SciPy devs if they would accept a pull request in this direction provided that we solve the wrapper generation issue too.

@synapticarbors Thanks for the great work. I was trying to implement your code and somehow get a error message saying undefined symbol: pnorm5. Did you have a same experience by any chance?  However, when I try to compile to build_rmath.py as written, due to the "@" symbol in Rmath.h the gcc compiler shoots an error. Anybody resolved this issue?

Related to #2109

See "scumba" discussion here: https://github.com/numba/numba/issues/4292

Closing this issue as it's not in scope for Numba itself, see https://github.com/numba/numba-scipy/ for SciPy related requests/support.


Missing Communication Ports Option on Windows 11 ARM

Steps to reproduce:

Open Device Manager.
Navigate to Action > Add legacy hardware.
Select Install the hardware that I manually select from a list (Advanced).
Choose Ports (COM & LPT).

Expected behavior:
The Communication Ports option should be available to configure COM ports.
Actual behavior:
The Communication Ports option is not displayed on Windows 11 ARM devices because the required drivers, serial.sys and serenum.sys, are missing from the system32\drivers directory.
Question:
Is there any plan to include these drivers or provide a solution for enabling COM ports on Windows 11 ARM?
Additional context:
Other people have also asked this question in the community: I want to use legacy serial line to connect old devices, but there hasn't been any substantial response. It would be nice to have some acknowledgment from Microsoft that this discrepancy exists as a first step, before they can take further steps to fix it!

@microsoft/coreos-buses-and-wdf Hi is it expected or a bug that this communication port option is missing on Windows 11 ARM?


Use pvc for docker registry data.

Use pvc for docker registry data storage instead of emptyDir that may create issue if storage on node is greater than 80% (pod eviction by kubernetes)

I'm not a big fan of enabling everything by default. By default you want Helm chart to be as simple as possible for development purpose so it can run without extra controller on k8s. What you can do is provide a values-production.yaml for exemple that describe what a production environment should look like.

Yes, but as we use pvc for all storage (you can see it in substra-backend volumes), it's more consistence and avoid potential issue with host storage.

Yes, but as we use pvc for all storage (you can see it in substra-backend volumes), it's more consistent and avoid potential issue with host storage.

I 100% agree that pvc is to be prefered over hostpath but it's not what this PR says. This PR says "by default, this chart will know requires a persistent storage" and I kind of disagree. On the other hand having a more robust default set of values for production is gladely appreciated but maybe in another file, values-production.yaml is usually pick as name for that. For example : https://github.com/helm/charts/tree/94cdd6c65013dd1a54511aaf59868e0fe1a78bd6/stable/redis have two set of values.
As I'm writting this I see that lots of charts have switched to a more "robust/secure by default" approach so my comment may be a complete falacy. I'm approving this.


Further information about Factory method Design Pattern

Hello Kevin,
First of all, thank you for all your useful explanation about design patterns.
You mentioned that Factory Method "Supports the Open-Closed Principle by allowing the addition of new subclasses without modifying the existing factory class.".
However, if we add a new case whatsApp, we need to update our enum and createMessageSender method. So we need to update the existing Factory class.
Is this true or have I misunderstood something?
Thank you in advance for your help,
Alexandre

Hello Alexandre,
I am glad you found the explanation of the design patterns useful and thank you for the positive feedback!
Regarding your question about a positive aspect that I mentioned for the Factory Method that "Supports the Open-Closed Principle by allowing the addition of new subclasses without modifying the existing factory class." I look a it like this:
We know that the Open-Closed principle states that software entities should be open for extension, but closed for modification.
In the example that you provided by creating a  new object WhatsApp that conforms to the MessageSender protocol, we need to update the enum MessageType to contain that new case whatsApp.
I see this as an extension of the types that the Factory class can support and not a modification to that class because the return will always be a MessageSender so we are not modifying the end result we are just extending its functionalities to support the creation of new objects.
All the best,
Kevin

Hello Kevin,
Thank you for your clear answer. I understand much better the O/C principles,
Without modifying the existing factory class. doesn't mean "forbidden to modify the existing factory class".  It rather means, not making changes that could lead to modifications for customers who use this factory.
That's right ?
Alexandre

Hello Alexandre,
You're welcome, I am glad that my explanation helped you to better understand the O/C principles.
Yes, that was my intention when I implemented the Factory Design Pattern in this example so you will be able to extend it but that will not affect the other parts of your code that already use it.


PB-670 C API for FL

References

PB-670

Summary

the Client introduced here is just a mock for now, it should be replaced by the networking client or a wrapper around that when that is merged; also some of the logic needs to be implemented then marked as TODOs
generics as well as methods can't be exposed to C, therefore most of this code exposes functions for each primitive data type
implement getters for the global model: the global model is converted to a model of primitive type and cached, a "mutable slice" is returned to the caller
implement setters for the local model: take a "mutable slice" and convert it's data to a model, provides a new iterator for that if the slice doesn't point to the cached model

This looks fine to me but I'm not really qualified to review unsafe code. So I think we should be very careful here:

when the dust settles we should have this code audited
in the meantime, we should have a disclaimer in each module that contains unsafe code, stating that this code has not undergone an audit yet, and should not be used in production as is

As discussed in the comments, maybe we should add unsafe blocks within the unsafe functions, to visually highlight the unsafe portions and make them greppable. Each unsafe block should come with a comment explaining why what we're doing is safe.
Note: I haven't reviewed the whole thing yet

i included the suggested changes up until here.

the Iterator impl on the raw slices is removed and can't leak anymore. it got replaced by an iteration over a slice build from raw parts which is completely contained in the unsafe functions.
docs are updated as well, but the code for documenting the output of expanded macros is quite ugly. the main issue is that paste::item! doesn't work with stringify!/concat!, if anybody knows how to do this in a better way i'm happy to hear.


Appstudio update test-component-pac-jyyb

Pipelines as Code configuration proposal

Pipelines as Code CI/test-component-pac-jyyb-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
4 seconds
init

✅ Succeeded
13 seconds
clone-repository

✅ Succeeded
22 seconds
build-container

✅ Succeeded
15 seconds
deprecated-base-image-check

✅ Succeeded
37 seconds
sanity-inspect-image

✅ Succeeded
30 seconds
clamav-scan

✅ Succeeded
8 seconds
sbom-json-check

✅ Succeeded
7 seconds
clair-scan

✅ Succeeded
16 seconds
sanity-optional-label-check

✅ Succeeded
16 seconds
sanity-label-check

✅ Succeeded
5 seconds
show-summary

Pipelines as Code CI/test-component-pac-jyyb-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
4 seconds
init

✅ Succeeded
13 seconds
clone-repository

✅ Succeeded
22 seconds
build-container

✅ Succeeded
15 seconds
deprecated-base-image-check

✅ Succeeded
37 seconds
sanity-inspect-image

✅ Succeeded
7 seconds
clair-scan

✅ Succeeded
8 seconds
sbom-json-check

✅ Succeeded
30 seconds
clamav-scan

✅ Succeeded
16 seconds
sanity-label-check

✅ Succeeded
16 seconds
sanity-optional-label-check

✅ Succeeded
5 seconds
show-summary


[Bug]  'api/projects'  error

new version gitlab 8.1.*  ,there are lots of links in the response header [link] of api 'api/projects' ;
it 's caused the client request a lot when you use foreach in Enumerable results. In fact, you just need to request once ,you can get the all data.  please test .

Could you be a bit more specific what you mean here?


Feature: External Migration (Portal)

[ ] we might have inaccuracy with the numbers we show

please include a disclaimer:
"Amount might vary on execution"
and position it below the grey box (and above the CTA)

[ ] portfolio - add link to "impermanent loss"
flow:
in the portfolio page, where we show "at risk positions", we would like to add underline link to the word "impermanent loss"

on click -> open a new tab on this: https://support.bancor.network/hc/en-us/articles/4415816838034-What-is-Impermanent-Loss-

[ ] portfolio CTA - change color
new color should be tertiary

[ ] popup design issues

remove title (currently say "migrate")

update title image (mockup: https://www.figma.com/file/fwADI9wqDrRAdlMX8EddCw/Bancor-v3?node-id=12904%3A350808)

title font size update (mockup: https://www.figma.com/file/fwADI9wqDrRAdlMX8EddCw/Bancor-v3?node-id=12904%3A350808)


SELF-DISTILLATION NETWORK WITH ENSEMBLE PROTOTYPES: LEARNING ROBUST SPEAKER REPRESENTATIONS WITHOUT SUPERVISION

Thanks for your contribution to speaker verification and open-source code. I wonder if the bin/train_sdpn.py corresponds to the paper (SELF-DISTILLATION NETWORK WITH ENSEMBLE PROTOTYPES: LEARNING ROBUST SPEAKER REPRESENTATIONS WITHOUT SUPERVISION). They look quite similar but slightly different.

The code and the paper content do not match exactly but are very similar. The latest version of the paper will be open-sourced in June. Thank you for your attention. If it is helpful, please star and cite it.

The code and the paper content do not match exactly but are very similar. The latest version of the paper will be open-sourced in June. Thank you for your attention. If it is helpful, please star and cite it.

Thanks for your prompt reply.


docs: fixed path to crates, updated link to translating doc

Summary

actualized contributing guide;
removed outdated gen-web command from justfile

Test Plan
Manually checked the changes.

Looks like this info is outdated too so I can remove it if needed:
Because the website displays the changelog, you should update the website using the following command:

sh
just gen-web

Website is in the separate repo so the command cannot be found:
(fix-contributing)$ just gen-web
cargo codegen-website
error: no such command: `codegen-website`

        View all installed commands with `cargo --list`
        Find a package to install `codegen-website` with `cargo

True, it's outdated

@ematipico removed, but I don't understand the current flow with the website so can't add any new information. If you could suggest what to write I'd love to add it.


Mistake in the technology

What do you need to know before you begin section mentions safe links rather than safe attachments, the permissions etc are correct it just references the wrong solution being configured.

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

ID: 0be929ba-8bef-b75c-0475-041bb6ec441a
Version Independent ID: 358f9e1a-1900-7c8c-814a-b878a9a22f9e
Content: Set up Safe Attachments policies in Microsoft Defender for Office 365 - Office 365
Content Source: microsoft-365/security/office-365-security/set-up-atp-safe-attachments-policies.md
Product: m365-security
Technology: mdo
GitHub Login: @chrisda
Microsoft Alias: chrisda

@TNwestpointtg , looks to be a copy/paste error. I fixed it. In the future, you can too; no need to open a GitHub Issue first. For instructions, see https://github.com/MicrosoftDocs/microsoft-365-docs/blob/public/README.md.
Thanks for the feedback.
Closing


z-index of "date-input-polyfill"

Hi @brianblakely,
First of all, thank you, this is quite useful.
It has a problem that it could be covered by other controls. like this:

If change the z-index to 10000, it works fine. What do you think about this issue?
(Environment: IE11)
Thanks,
Joey

You can override the CSS yourself. Refer to the README.

Just thought that might be a common issue, I already override the z-index by myself. Thank you!

It might be, I don't have any data to suggest either way. My rationale was that the datepicker shouldn't try to render in front of everything by default, because then it might obscure vital content (like emergency alerts, for example).
The way it is presently, the datepicker will initially be covered up by other things that are deemed to have high visual priority, and the app dev can decide themselves if and when to increase the datepicker's own priority.

Yes, that makes sense. Add 1 star to this project. :)

The first bullet https://github.com/brianblakely/nodep-date-input-polyfill#features

Ah, I was expecting something more specifically referencing the z-index issue.


Rsync error

Error detail-
Error Info:
error code = 23
cmd ['rsync', '-a', '/Library/LaunchDaemons/', '/Users/sanimkhan/Dropbox/MacPrefsBackup/StartupItems/LaunchDaemons/AllUsers/']
error message:rsync: send_files failed to open "/Library/LaunchDaemons/com.microsoft.teams.TeamsUpdaterDaemon.plist": Permission denied (13)
rsync error: some files could not be transferred (code 23) at /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-54.120.1/rsync/main.c(996) [sender=2.6.9]

Traceback-
  File "/usr/local/bin/macprefs", line 73, in <module>
    main()
  File "/usr/local/bin/macprefs", line 69, in main
    invoke_func(args)
  File "/usr/local/bin/macprefs", line 39, in invoke_func
    args.func()
  File "/usr/local/bin/macprefs", line 17, in backup
    startup_items.backup()
  File "/usr/local/Cellar/macprefs/1.0.26/bin/startup_items.py", line 10, in backup
    backup_system_daemons_agents()
  File "/usr/local/Cellar/macprefs/1.0.26/bin/startup_items.py", line 35, in backup_system_daemons_agents
    copy_dir(source, dest)
  File "/usr/local/Cellar/macprefs/1.0.26/bin/utils.py", line 31, in copy_dir
    execute_shell(command)
  File "/usr/local/Cellar/macprefs/1.0.26/bin/utils.py", line 12, in execute_shell
    cwd=cwd, stderr=STDOUT).strip().decode("utf-8")
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['rsync', '-a', '/Library/LaunchDaemons/', '/Users/sanimkhan/Dropbox/MacPrefsBackup/StartupItems/LaunchDaemons/AllUsers/']' returned non-zero exit status 23

System detail-
macOS Catalina
version 10.15.7

Hello @sanimkhan :)
I just encountered the same error and stumbled upon your issue while searching for a solution, which I found later:

https://developer.apple.com/forums/thread/126497

Following that I just ticked "Terminal" in "Full Disk Access" under "System Preferences > Security & Privacy > Privacy"
Running macprefs backup afterwards performed successfully 🎉

Hello @sanimkhan :)
I just encountered the same error and stumbled upon your issue while searching for a solution, which I found later:

https://developer.apple.com/forums/thread/126497

Following that I just ticked "Terminal" in "Full Disk Access" under "System Preferences > Security & Privacy > Privacy"
Running macprefs backup afterwards performed successfully 🎉

Hi @trubesv
Thanks a lot for your help.  IT WORKED.
Just to extend, in addition to your solution I had to run sudo macprefs backup

Hi @trubesv
Thanks a lot for your help.  IT WORKED.
Just to extend, in addition to your solution I had to run sudo macprefs backup

@trubesv
I could not use custom backup directory, I did set the environment variable but did not work.
I am not sure if I should open a ticket on this or not. I think it works for you?

@trubesv
I could not use custom backup directory, I did set the environment variable but did not work.
I am not sure if I should open a ticket on this or not. I think it works for you?

@sanimkhan Glad it helped :)
I think your issue is that you ran it as sudo so only the root user can edit that folder.
You can change this folder ownership with the chowncommand & change its permissions with chmod.
Then you can run macprefs again and it should work :rocket:

@sanimkhan Glad it helped :)
I think your issue is that you ran it as sudo so only the root user can edit that folder.
You can change this folder ownership with the chowncommand & change its permissions with chmod.
Then you can run macprefs again and it should work :rocket:

You can change this folder ownership with the chowncommand & change its permissions with chmod.

This is probably a bad idea, TBH. At the very least, revert the permissions change after making a backup.


Support azure-quantum[qiskit] installation on macOS M1

Installing the azure-quantum package with the qiskit extras on macOS with ARM processors (e.g. M1) is not supported currently, because of this fixed dependency:
https://github.com/microsoft/qdk-python/blob/bc4ae3a5bb1a84cfcb7f68c3e3e2f1d7f38f69f5/azure-quantum/setup.py#L86
So the dependency path looks like:
azure-quantum 0.27.244707 Python client for Azure Quantum
├── qiskit-qir >=0.2,<0.3
│   ├── pyqir-generator 0.4.2a1

However, the latest version of pyqir supports ARM processors, see https://github.com/microsoft/qiskit-qir/issues/34 (which has to be addressed first).

Ok, it looks like v0.27.238334 solved the issue:
https://github.com/microsoft/qdk-python/blob/975d08bf7aea9bae7778800a6ae0f5e00fc74cd2/azure-quantum/setup.py#L86
This is still relevant on the main branch, though

@jond01 This will be handled in #420 which updates to PyQIR 0.8 and qiskit-qir 0.3.1


Fix slow tests

Update baseline for slow test typedarray/samethread and remove the slow tag on that test
It seems this failure was introduced in #2016 because the baseline depends on the same files.
I decided to remove the slow tag for 2 reasons

it's not really slow to run (less than 2 seconds when redirecting output)
it has dependency on test files that run in our CI

@ianwjhalliday Could you review this as you were the one to make the initial change?
@dilijev Could you review this as well?

This change is

Looks like this baseline update was just missed in the original PR? Looks good to me. I agree with moving this test out of Slow.

Let's get full coverage on this one.
@dotnet-bot
test slow tests please
test legacy tests please
test nojit tests please

Anybody knows if this resolves #2135?  //cc @obastemur

I think it does resolve it, however, I will have to create another PR that re-enables the test (well I probably will have to do it when resolving the merge conflict)

@Cellule why does it need to be another PR -- why not this one? Is it because it affects a different branch?

@dilijev yeah I can't target 2 branches at the same time. However, I will have to deal with the merge conflict when porting this to master, so I guess I will fix it then

Looks like a nontrivial break in dev12_x64_debug. Although I don't remember seeing that in the output of the dailies before...
daily: https://ci2.dot.net/job/Microsoft_ChakraCore/job/release_1.4/job/daily_slow_x64_debug/14/consoleFull#5135828221cc35259-6d54-4e16-9d69-4ce905c34543
PR: https://ci.dot.net/job/Microsoft_ChakraCore/job/master/job/daily_dev12_x64_debug_prtest/5/consoleFull#10181970291cc35259-6d54-4e16-9d69-4ce905c34543

@dotnet-bot test Windows 7 daily_dev12_x64_debug please
I haven't seen those either and I highly doubt this is caused by my change considering I only changed a baseline. Let's give it another go

shrug looks like an actual problem?

I created #2231 to compare without my change, if it does repro, I will merge this PR and investigate the sources of the failure

Oh lol -- this is a necropost.
I was like, "I thought the current issue with slow tests was really different from this PR...."


Translator changed the authentication

@sharoonthomas , thanks for publishing useful samples for Microsoft Translator. Would you mind updating your samples to use the current authentication method? The previous version has been retired.
Thank you so much,
Chris Wendt
Microsoft Translator

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@chriswendt1 can you take a look at this PR please? https://github.com/fulfilio/Microsoft-Translator-Python-API/pull/2


wow，amazing, your code is so clean and tidy ,and i can understand it .

yesterday I wrote a videocapture, and It is so slow, I can not real time to detect object , my machine i3, I did not have a test on i7.and can you have a realtime detection, thank you.

e...I see you speed up it 10%-20%,so..i cant prevent me to contant with you , I am really interesting to it .

@mathCrazyy Try SSD-MobileNet

I tried it ,the model is ssd_mobilenet_v1_coco_11_06_2017, isnot it ? got the image through the camera, but it is slow, about need 2 seconds to process one image , the size of images is 640*480. can you realtime when processing the camera images?

um, so I also need to change other code ,right? I only changed the predict function to apply the early code just now, the parameter was one . so sad ,what shoud we do to achieve a realtime performance , after all ,reputedly, mobilenet can do it.

@mathCrazyy did you pull the most updated master branch?

your execution force are so  powerful, I test it just now, at my laptop, 7700k,1050ti，8g memory，,although your code display that 7-8fps,but it looks very smooth, in addition, CPU occupancy rate is 100%, memory occupancy rate is about 57%. I paid attention to other issue just now ,I also want to use my own data to train, thank you very much for you let me see this way is feasible.

Glad to hear that.


how to get  entity for a markdown text

when i use sendMessage function. like that sendMessage chat_id:int53 message_thread_id:int53 reply_to:InputMessageReplyTo options:messageSendOptions reply_markup:ReplyMarkup input_message_content:InputMessageContent = Message;
I need put the parameter input_message_content, my question is how to get correct parameter for a markdown text.
i use parseTextEntities but i get  Entity begins in a middle of a UTF-16 symbol at byte offset 55

when i use sendMessage function. like that sendMessage chat_id:int53 message_thread_id:int53 reply_to:InputMessageReplyTo options:messageSendOptions reply_markup:ReplyMarkup input_message_content:InputMessageContent = Message;
I need put the parameter input_message_content, my question is how to get correct parameter for a markdown text. i use parseTextEntities but i get Entity begins in a middle of a UTF-16 symbol at byte offset 55

text example 👍 amazing videos \n👉 Y A Better You 👈\n👉 Y Only Wait You 👈

parseTextEntities can't return invalid entities. The method is designed to be used by bots. Regular users can use parseMarkdown, or specify entites manually.

parseTextEntities can't return invalid entities. The method is designed to be used by bots. Regular users can use parseMarkdown, or specify entites manually.

is there any document for entities manually

Just specify them as part of formattedText.


enable sanity and extended.functional testing to Aarch64 nightly builds

enable sanity and extended.functional testing to Aarch64 nightly builds
Issue:AdoptOpenJDK/openjdk-build#2085

Signed-off-by: Longyu Zhang<EMAIL_ADDRESS>

reviewers: @llxia @sophia-guo   Thanks.

run tests

@sophia-guo Will this PR enable sanity and extended.functional on both openj9 and hotspot?

@llxia both.

LGTM

You'll need to do this through the review mechanism to register.


KAFKA-6069: Properly tag KafkaStreams metrics with the client id.

lgtm

Thanks for the patch @twbecker.  It would be nice to have a test for this, but there doesn't seem to be a reasonable approach ATM.  LGTM.

This is a great catch, thanks @twbecker !
Maybe you can take a look at StreamThreadTest#testMetrics and see if we can do the same for StreamsKafkaClient metrics validations?

@guozhangwang Gave it a shot.

Thanks, @twbecker left some comments.

@twbecker thanks for following up.  Left some minor comments, otherwise LGTM.

Addressed comments and rebased, since there's been some churn.

ping @guozhangwang @dguy for final review and merging.

merged to trunk and 1.0

Thanks @dguy


Add certified, dedicated options & select node

Description

Include certified & dedicated options in all solutions

Changes

Add dedicated & certified options
Edit price message
Remove node picker
Fix pingNode undefined value err
Edit farmerbot script
Refactor client calculator
Edit tooltip to include href attribute
Implement select node in all solutions
Remove some unused code

Related Issues

https://github.com/threefoldtech/tfgrid-sdk-ts/issues/783
https://github.com/threefoldtech/tfgrid-sdk-ts/issues/764
https://github.com/threefoldtech/tfgrid-sdk-ts/issues/757

Checklist

[ ] Tests included
[ ] Build pass
[ ] Documentation
[ ] Code format and docstrings
[ ] Screenshots/Video attached (needed for UI changes)

the certificated filter is not working in case of gpu is enabled, it changes the price  but should show there are no nodes available as node 93 is Not Certified as in dashbaord

select farm  then change it the deploy btn will be enabled

Screencast from 20 يول, 2023 EEST 06:21:00 م.webm


Allow to set element to attach portal

I am using vanilla-extract themes and attach them to an element. With this I can view different themes side-by-side in storybook. The problem arises when I use theme variables in a portal. Because the portal is always attached to the body, these variables do not get picked up.
For this it would be good if there would be the possibility to pass an id or element to a portal and attach the portal to this element.

I saw in the source code that I can attach the portal with the mount property.


What is simplify_start?

Hi!
What does simplify_start mean in queries.yaml?
Also, is there documentation describing what the tags in the yaml file are?
Thanks! :)

Most our map data is digitized at zoom 15 resolution, but by the time we zoom out to say zoom 10 that's far too much detail (customer pixel detail and over the wire file size), we we simplify the line geometry starting at some zooms. There is a simplify_start as some data, like Natural Earth is pre-simplified, so we don't want to do this step all the time.


verify function rest verified calls

Describe the bug
verify function rest verified calls
To Reproduce
Steps to reproduce the behavior:

example from README.md

// A Real Cat class
class Cat {
  String sound() => 'meow!';

  bool likes(String food, {bool isHungry = false}) => false;
  final int lives = 9;
}

// A Mock Cat class
class MockCat extends Mock implements Cat {}

void main() {
  test('README example', () {
    // Create a Mock Cat instance
    final cat = MockCat();
    // Stub the `sound` method.
    when(() => cat.sound()).thenReturn('meow');

    // Verify no interactions have occurred.
    verifyNever(() => cat.sound());

    // Interact with the mock cat instance.
    cat.sound();

    // Verify the interaction occurred.
    verify(() => cat.sound()).called(1);

    // Interact with the mock instance again.
    cat.sound();

    // Verify the interaction occurred twice.
    verify(() => cat.sound()).called(2);
  });
}

Expected: <2>
  Actual: <1>
Unexpected number of calls

Additional context
mocktail:
    dependency: "direct dev"
    description:
      name: mocktail
      url: "https://pub.dartlang.org"
    source: hosted
    version: "0.3.0"

I believe this is intended behaviour. The documentation says as follows:
"Note: When mocktail verifies a method call, said call is then excluded from further verifications."
In other words once you call verify the number of calls to the stub method resets to 0 (clears). I hope this makes sense.


Import from cURL (feature)

TL&DR; add the ability to import cURL please!
Full explanation:
It would be a useful feature to be able to import a request from cURL.
Currently, browsers such as Firefox and Chromium allow you to select a request and click Copy > Copy as cURL. This is very convenient, because you can immediately start altering your request in CLI if you want.
Native support for that in atac could look like an import feature, upon which the cURL command line would be read (from user's input), parsed and transformed into an atac request.
Thank you for the tool!

Hello!
That is totally a great idea, if the curl has to be inside a file is it ok to you?

@Julien-cpsn that'd definitely be appreciated!
To be 100% transparent, the ideal case would be to paste the code in some kind of input text area. However, reading from a file is definitely a good start, and the UX can probably be polished when there's broader demand for this feature. So I think it's definitely a good feature to have now!
P.S. Also, since atac is a terminal client, some people may use the tool remotely. It's not easy for me to think of these situations, but I imagine situations where a file input would be preferred could exist. To be frank, I'm not sufficiently aware of TUI best practices. For me personally, any approach would be good ^^

@vn971 hmm Ok I see, and what about the app trying to get what's on your clipboard?

@Julien-cpsn For me personally, this may not always work as it'd be impossible in e.g. a remote scenario, or if atac is running in a sandboxed environment with no graphical session access. I don't really know TUI best practices though. Is a little bit of graphical APIs usage considered okay, for e.g. for the clipboard, or mouse clicks? Again for me, a text box or file import would be ideal
Thanks for considering!

Hey @Julien-cpsn if its alright with you, I'd like to work on this.
I've already made a bit of a start, and have an initial implementation done.
I will raise PR and get some feedback as I may have a few questions.
Thanks

@jwtly10 that's very great!
I have been working on pre and post-request scripts, and request export for the whole day

Closed with https://github.com/Julien-cpsn/ATAC/releases/tag/v0.16.0


Add the ability to customize the permissions granted to the Cloud Build service account

Cloud Build executes builds with the permissions granted to the Cloud Build service account tied to the project. You can grant additional roles to the service account to allow Cloud Build to interact with other GCP services. We should look at providing a way to facilitate this whether that be through an option or the implementation of a dedicated module.

Closing this issue since this repo has been in "sunsetting" for 12 months.


the shadow option effects labels as well as variables

from discussion here: https://github.com/jshint/jshint/issues/2394#issuecomment-106620733
The following errors with shadow set to inner or outer.
a: while(true) {
  let a = 1;
  break a;
}

should labels be compared with variable identifiers or should they be completely seperate?

Thanks for opening this; it does warrant its own issue. To that end, I'll paste in the thoughts I shared in gh-2394:
I don't think shadow should have any bearing on labels. Even though variables and labels are both referenced with identifiers, they occur in completely distinct locations and cannot interact in any way. Code like this:
a: while(true) {
  let a = 1;
  break a;
}

isn't going to win any awards for clarity, but it's crucially different than:
let a = 1;
while (true) {
  let a = 2;
  break;
}

in terms of what it requires of the reader. To understand the latter, one has to pay careful attention to declarations versus simple assignment, which is far more onerous for non-toy examples whose blocks are longer and deeper.


Add gNMI SAMPLE Mode Streaming Library for 400ZR tests

Pull Request Functional Test Report for #2755 / 71fd0a06d8005d3a8f18e81d3fba6563fc5f0830
Virtual Devices

Device
Test
Test Documentation
Job
Raw Log

Arista cEOS

gNMI-1.27: gNMI Sample Mode Test
9b951760
Log

Cisco 8000E

gNMI-1.27: gNMI Sample Mode Test
621a0221
Log

Cisco XRd

gNMI-1.27: gNMI Sample Mode Test
055094a1
Log

Juniper ncPTX

gNMI-1.27: gNMI Sample Mode Test
30d14024
Log

Nokia SR Linux

gNMI-1.27: gNMI Sample Mode Test
00805b09
Log

Openconfig Lemming

gNMI-1.27: gNMI Sample Mode Test
a5bf9b22
Log

Hardware Devices

Device
Test
Test Documentation
Raw Log

Arista 7808

gNMI-1.27: gNMI Sample Mode Test

Cisco 8808

gNMI-1.27: gNMI Sample Mode Test

Juniper PTX10008

gNMI-1.27: gNMI Sample Mode Test

Nokia 7250 IXR-10e

gNMI-1.27: gNMI Sample Mode Test

Help

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1729

Relevant Lines:
3256

💛  - Coveralls


testing breaks when using .env

If you use .env for things like your SECRET_KEY, this will break in testing the way the original code is now.

Environment:

Python version:  3.10.2
Flask version:  2.2.2

Please don't post images of code. It's text, copy and paste it and use Markdown to format it.

Please don't post images of code. It's text, copy and paste it and use Markdown to format it.

you got it - will update in a moment

Yes, this is a pretty standard practice. There is absolutely no reason to turn searchable text into unsearchable, inconsistently sized images.

This appears to be an issue with your code, not with Flask. You added the call to dotenv_values, you need to put it in the right place and read from it at the right time.
app.config.from_mapping(...)

if test_config is None:
    app.config.from_mapping(your env vars overrides)
else:
    app.config.from_mapping(test_config)

Note that Flask already provides an API for loading dotenv files and for setting arbitrary config from environment variables.
from flask.cli import load_dotenv

app.config.from_mapping(defaults)

if test_config is None:
    load_dotenv()
    app.config.from_prefixed_env()
else:
    app.config.from_mapping(test_config)

@davidism - what you provided is the issue I'm talking about.
The original code calls for mapping before you ever check if there is a test_config

You're the one who incorrectly put SECRET_KEY=config["SECRET_KEY"] in place of the defaults. You should have put that in the if block, not in the defaults, since it's not defaults, it's overrides.
The Flask tutorial is correct as-is. If you want to develop from it further, that's good, but it's up to you to do that correctly.

Please use our Discord for discussion about your own code. This tracker is for issues related to the project itself.


Atrous Residual VS Unet.

Hey, I compared the results between Atrous Residual and ori Unet, Respectively. The PR cure is like what your paper said. However, the Atrous Residual  of visulization result is strange.
Below is some examples, pics is followed by [GT, Atrous Residual, Unet] order. (I use 0.9 respect-ratio)
It seems like that why Atrous's precision is higher than Unet, is  they filiter more line segments and more clean. In other way, it tends to detect less line segment.
And also the direction is less accurate than Unet! Obviously, some of line segments are located at the object egde.
Is my observation right? Or any where I am wrong... Thanks for your help.

Sorry, I used the atrous trained by myself. However, the pretrained model's result is good.


Unable to get Fabric upgrade within Minecraft versions

Edit: Apparently Fabric released loader version 0.12.9 with a fix.

How do I force the fabric loader to be 1.12.9?
My workflow:

Downloaded the newest image: docker pull itzg/minecraft-server
Set the loader to be version FABRIC_LOADER_VERSION=0.12.9 in my docker-compose.yml
Restarted my server: docker-compose up -d

In my log I still see<EMAIL_ADDRESS>minecraft_1  | [15:11:58] [main/INFO]: [FabricLoader] Loading 4 mods:
minecraft_1  | 	-<EMAIL_ADDRESS>minecraft_1  | 	- java@17
minecraft_1  | 	-<EMAIL_ADDRESS>minecraft_1  | 	-<EMAIL_ADDRESS>
Any hint will be appreciated.
Originally posted by @boldt in https://github.com/itzg/docker-minecraft-server/issues/1177#issuecomment-991915847

cc @StoneLabs

https://github.com/itzg/docker-minecraft-server/issues/1177#issuecomment-991923588 was the original intent, to optimize away re-downloading...however, the flaw was not realizing Fabric did multiple releases within a Minecraft release. I'll fix this to also consider the installer version.

I've moved my comment here to keep things organized. Originally posted in #1177:

How do I force the fabric loader to be 1.12.9?

I've encountered this before too. It's a bit confusing.
The container only updates fabric and the fabric loader on the first start of a Minecraft version install. Specifically only if fabric-server-${VANILLA_VERSION}.jar is not present.
This is due to
https://github.com/itzg/docker-minecraft-server/blob/eccc989887bc4757d9c3f7083230609bbf7453df/scripts/start-deployFabric#L9
and
https://github.com/itzg/docker-minecraft-server/blob/eccc989887bc4757d9c3f7083230609bbf7453df/scripts/start-deployFabric#L13
which is checked before new loader/installer versions are downloaded. (I'm not sure if this is intended behaviour @itzg but whatever)
Solution: Just delete the server jar and the fabric jar's from the data directory of your server. Starting the docker after that installs the newest/specified fabric loader version.

The fix for this is available in all image variants.


find.byConfig description is confusing

/// Finds widgets whose current widget is the instance given by the
/// argument.

I think it should read:

/// Finds states whose current config widget is the instance given
/// by the argument.

What it really finds is Elements.

(like all the finders)

I noticed shortly after I dug down into Finder.evaluate().
I believe the dev: docs label is appropriate to this issue.

Closing as the method in question is no longer a part of the CommonFinders class.


WIP: Upgrade to axios (continuation)

Refer: #1125
To do list:

[ ]  @tf2autobot/steam-openid-login
[ ]  @tf2autobot/bptf-login
[x]  @tf2autobot/tf2
[ ]  @tf2autobot/steamcommunity

[ ]  @tf2autobot/steam-tradeoffer-manager

[x] Replace xmlhttprequest-ts used to send Discord webhooks with axios

I think I will skip all the remaining modules.
It's too hard for me to figure out how to work with the cookies.


Fixed broken DataFrame constructor

Fixed broken DataFrame constructor that did not parameterize the Vector type for the arguments correctly.

My apologies, I didn't mean to put in a pull request for this...just kept hitting buttons in my own branch and didn't realize this.

No worries