Copybook not being recognized after being copied down

I have a VSCode extension that create a tree view. When the user clicks on a source member in the Treeview, it is downloaded with a .COB suffix and z/Open Editor takes over and displays it in the right hand pane.
A Copy statement is flagged as not being found - this is correct.
Whilst leaving the COBOL source member open, I bring down the Cobol copy member using one of our REST api's into the same local directory as the original source and give it a  .CPY suffix which I have added in z/Open Editor settings as an acceptable copybook suffix.
The Copy statement is still flagged as 'not found' even though it does not exist.  I can somewhat understand that as it has no knowledge that the copy file is now present.
I close the source member editor pane and from my Treeview, I once again open up the local source file - however once again  z/Open Editor is still not recognizing the presence of the copybook file.
The only way I can get this to be accepted, is if I close VSCode down entirely and reopen it, then once again click in my Treeview to again present the source back to z/Open Editor. Then the presence of the copy member is recognized.
Development environment used

Z Open Editor version:
Editor Platform
[ ] Visual Studio Code 1.52
Operating System Windows 10

@davidkjackson54 Did you try just reloading the window instead of exiting and restarting VS Code?  I tried the same steps and Opened the Command Pallette, then ran the Developer: Reload Window command.  The copybook was then resolved.

The problem with that is that my Treeview in the left hand pane is then contracted down and the user has to then go navigate his way back down the tree to get to where he was previously and reopen the file from scratch. It is very messy.

@davidkjackson54 thanks for submitting. This is a great enhancement request. There has to be an event to tell the Language Server that the program file should be reevaluated. For example, if you simply edit the file (just a space somewhere) you see that the missing copybooks are immediately found. I assume that this will be a quite common scenario that developer download the program file, because they want to edit it. Then the errors will immediately go away.
But I agree that this should also work without editing the file. For example, we would have to set watchers on the folders that are listed in the property groups that can fire an event right away when the files appear locally. We have to look into that.
Until then edit the program file that has the COPY statements (e.g. add a space and do a ctrl-z to undo) is the easiest workaround I could find. Closing and opening the program (just close the editor tab, not the entire VS Code application) also works.

@davidkjackson54 thanks for submitting. This is a great enhancement request. There has to be an event to tell the Language Server that the program file should be reevaluated. For example, if you simply edit the file (just a space somewhere) you see that the missing copybooks are immediately found. I assume that this will be a quite common scenario that developer download the program file, because they want to edit it. Then the errors will immediately go away.
But I agree that this should also work without editing the file. For example, we would have to set watchers on the folders that are listed in the property groups that can fire an event right away when the files appear locally. We have to look into that.
Until then edit the program file that has the COPY statements (e.g. add a space and do a ctrl-z to undo) is the easiest workaround I could find. Closing and opening the program (just close the editor tab, not the entire VS Code application) also works.

Thanks Peter .
You are absolutely correct in that a simple change to the source causes the
copybook to then be found.
I have found however that closing the source editor tab (without making a
change ) doesn't have any effect.
David
On Tue, Jan 12, 2021 at 5:06 PM Peter Haumer<EMAIL_ADDRESS>wrote:

@davidkjackson54 https://github.com/davidkjackson54 thanks for
submitting. This is a great enhancement request. There has to be an event
to tell the Language Server that the program file should be reevaluated.
For example, if you simply edit the file (just a space somewhere) you see
that the missing copybooks are immediately found. I assume that this will
be a quite common scenario that developer download the program file,
because they want to edit it. Then the errors will immediately go away.
But I agree that this should also work without editing the file. For
example, we would have to set watchers on the folders that are listed in
the property groups that can fire an event right away when the files appear
locally. We have to look into that.
Until then edit the program file that has the COPY statements (e.g. add a
space and do a ctrl-z to undo) is the easiest workaround I could find.
Closing and opening the program (just close the editor tab, not the entire
VS Code application) also works.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/IBM/zopeneditor-about/issues/108#issuecomment-759135828,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALAIHNAJL46AIDGG32K6JWTSZTW2TANCNFSM4VAEEZNA
.

Thanks Peter .
You are absolutely correct in that a simple change to the source causes the
copybook to then be found.
I have found however that closing the source editor tab (without making a
change ) doesn't have any effect.
David
On Tue, Jan 12, 2021 at 5:06 PM Peter Haumer<EMAIL_ADDRESS>wrote:

@davidkjackson54 https://github.com/davidkjackson54 thanks for
submitting. This is a great enhancement request. There has to be an event
to tell the Language Server that the program file should be reevaluated.
For example, if you simply edit the file (just a space somewhere) you see
that the missing copybooks are immediately found. I assume that this will
be a quite common scenario that developer download the program file,
because they want to edit it. Then the errors will immediately go away.
But I agree that this should also work without editing the file. For
example, we would have to set watchers on the folders that are listed in
the property groups that can fire an event right away when the files appear
locally. We have to look into that.
Until then edit the program file that has the COPY statements (e.g. add a
space and do a ctrl-z to undo) is the easiest workaround I could find.
Closing and opening the program (just close the editor tab, not the entire
VS Code application) also works.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/IBM/zopeneditor-about/issues/108#issuecomment-759135828,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALAIHNAJL46AIDGG32K6JWTSZTW2TANCNFSM4VAEEZNA
.

Added file watcher support in Z Open Editor 3.1.0. See the release notes for a limitation using libraries that we intend to address in the future.


Should this repo be extended to use eslint and other configurations?

A (turbo) monorepo could be used for this.

Done in https://github.com/mheob/config


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v5.10.82",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3a53d9ad9bc3408ad7f0424d60d25381f9fa6c81"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "3a53d9ad9bc3408ad7f0424d60d25381f9fa6c81",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "staging: rtl8723bs: remove possible deadlock when disconnect (v2)\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.10.82 by commit 3a53d9ad9bc3408ad7f0424d60d25381f9fa6c81. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1002298


numpy.tolist as pythran input

Sometime an error is raise when using it (Invalide instruction). Especially with test_dot5 and test_dot7.

This problem did not reproduce over 6 years now, closing the issue :-)


Request for Method to Calculate se_cor

Thanks for your excellent work. Could you provide the method for calculating se_cor? It wasn't included in the workflow.

Thanks for your excellent work. Could you provide the method for calculating se_cor? It wasn't included in the workflow.

Hi, you may refer to the example used here to process the data: https://github.com/ZhaotongL/cisMR-paper/blob/main/process_ARIC.R#L86-L93.


feature request: bulloak check --fix <file> to automatically update a test file where the spec changed

This is a half-baked idea, but the thinking is:

I write a .tree file and bulloak -w <file>
I edit my .tree file, now my test is out of date
I have to have generate new solidity with bulloak and manually move things

I'm picturing a bulloak check --fix or bulloak update command that, if I only added or moved lines in the tree, regenerates my test file with the code properly moved also. If lines were also changed, perhaps what it can do is something like this:
contract MyTest is Test {
  function test_123() {
    // bulloak automatically scaffolded everything and populated what it could
  }

  // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  // ======== BULLOAK AUTOGENERATED SEPARATOR ========
  // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  // Code below this section could not be automatically moved by bulloak and must be manually moved.

  function test_456() {
    // bulloak never deletes your code so it places it here
  }
}

Well, this is a bit harder than I anticipated because there are a few things I need from solang_parser that are missing. I'll see if there is a solidity parse I can use, otherwise, I'll write one.

Ok, ended up using solang_parser but patched a few things on top, leveraging forge-fmt. This commit is a good foundation for this feature.
You can try it out with bulloak check --fix --stdout and let me know what you think!


Update compatible dependencies on 0.21.x

boopickle-1.3.2 (supersedes #3419)
json4s-3.6.8
log4cats-1.1.1 (supersedes #3418)
metrics-4.1.7
okhttp-4.6.0
scalatags-0.9.1
specs2-4.9.4
Adds filters so dependencyUpdates runs clean

We have a real problem in boopickle. This looks like what happens when a library builds on a later JDK than 8 and then runs on 8, but curiously it's not affecting the 2.13.2/1.8 build.
@cquiroz, I think you've been involved on that project. Do you know what happened here?

It looks like the build was done with another jdk. There  are a few troubles on scala.js as well
There is a PR to help standardize the build but it is awaiting review

Okay. I think 1.3.2 was a cursed release. Let's back that out and move forward with the rest.

Smaller than the one that was already approved, so merging to reduce clutter.


Feature Request: Bridge connection via Tunnel Proxy

Is your feature request related to a problem? Please describe.
The challenge is that NanoMQ could run in an environment that allows external TCP connections to MQTT Broker (cloud) only via a forward tunnel proxy like squid.
Describe the solution you'd like
TCP Proxy could be configured on the bridge connection such that it makes the TCP connection via the tunnel proxy (squid).
Describe alternatives you've considered
No alternatives
Additional context
This would work only with proxies that support tunneling.

Cool, will look into it.


Upgrade .ruby-version

Summary
Upgrade Ruby to 3.1.0
Reason
There's an issue on macOS with liquid-c and Ruby 2.7.2. The site builds fine on Ruby 3, and we get some small performance improvements by upgrading too.
Testing
See the review app

Merged before Tues 12th to help onboard new hire


Suggest adding the introduction of fitting function

Which function did the author use to make the IDF curve, the GEV distribution?

Hi, i added a pseudo-code of the basic functionality of the analysis in the readme. Dose this answer your question?

Yes, I found the relevant answer from the pseudo-code you provided，thank you.


reroute from profile if not logged in

small lag but works if anyone can figure out the import issue by all means have at it haha

DON'T MERGE THIS ONE I HAVE TO PULL THE LAST PUSH THEN i WILL RESUBMIT

Should be ready for you guys to finish approving

looks good*


doc: update FIPS provider version information

With 3.0.8 validated, we need to note this in the documentation.

[x] documentation is added or updated
[ ] tests are added or updated

Shouldn't this also go into 3.0? Or is there a separate PR?

3.0.8 is mentioned in our certificate.
The earlier change including version numbers didn't go into 3.0.x.  I don't remember why.  It probably should have.

I've raised #21060 to include this in 3.0.x too.

What about linking to https://www.openssl.org/source/ instead of mentioning concrete version info which will always be out of date.

Update the text to link to the source and include an explanation.

Ping @openssl/committers for second review please.

Merged, thanks for the feedback.


Q: Customize dark theme CSS

Hi @HEIGE-PCloud,
currently migrating from LoveIt to DoIt. Previously we had variables for both, light- and dark-theme. For example background-color and background-color-dark.
Could you please tell me what's the new preferred way to customize both themes in the overrides.scss?
Thanks!

We are in the process of integrating with Tailwind CSS for better maintainbility.
We use CSS variables to manage colors. https://github.com/HEIGE-PCloud/DoIt/blob/0a0b127ebfe518f0fdd63d553ae14798bb94f27d/assets/css/tailwind.css#L29-L228
So if you would like to change the color palette, you can override specific CSS variable in _override.scss. You might need to fight the specificity though.
:root {
  --code-background-color: white !important;
}
html.dark {
  --code-background-color: black !important;
}

Thanks a lot @HEIGE-PCloud, this will get me started 🙂


Implemented IP validator using RegEx [Python]

Description
Added IP Address Validator in Python using Regex.
Fixes #106.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Documentation Update

Checklist:

[x] I have named my files and folder, according to this project's guidelines.
[x] My code follows the style guidelines of this project.
[x] My Pull Request has a descriptive title. (not a vague title like Update index.md)
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] I have created a helpful and easy to understand README.md, with problem description and my name.
[x] My changes do not produce any warnings.
[x] I have starred this repository.
[x] I have added a working sample/screenshot of the script.
[x] I have checked for trailing spaces in file names and none have them.

@sudiptog81 This issue was not assigned to you.

Hi @pratik-choudhari, as you might know this year the HF rules have changed and getting 2 invalid labels on PRs bans an individual, If you could, please consider changing the label state and mark it as not-valid. Thanks, I have made a lot of productive contributions to account for this instance!

@sudiptog81 Okay, next time please keep the contribution rules in mind. Such PRs make up a mess which is difficult to handle.


W-13546967 - Fix change password form

Description
The "change password" form in V3 isn't working as expected as a result of a code regression. This was most likely due to the hook integration work. The user was able to change their password, but the follow up action of logging in with said new password would fail as the login action was being called with the wrong arguments. Additionally, no error was being shown and 2 success toasts were being displayed.
This PR fixes all these issues and adds some tests to ensure another regression doesn't happen.
In the below recording you'll see the broken behaviour. First I try to change the password using a current password that isn't the actual value, and as you can see, it visually succeeds. Next I try to change the password to something new using the actual current password, and as you can see there is a login error in the network window.
https://github.com/SalesforceCommerceCloud/pwa-kit/assets/8902581/291ad08a-ff6e-429c-a18b-4eb432addef7
Now in the recording below I do similar actions to which they are all working.
https://github.com/SalesforceCommerceCloud/pwa-kit/assets/8902581/aadda1c7-6895-4511-b7e4-5051ecf32333
Types of Changes

[x] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Documentation update
[ ] Breaking change (could cause existing functionality to not work as expected)
[ ] Other changes (non-breaking changes that does not fit any of the above)

Changes

Ensure correct arguments are being passed to the login action after the password changed.
Add onError handler to set global error when one occurs changing the password.
Fix global error setting (submit button was disabled when "root" namespace isn't used)
Reset the current/new password fields after success

How to Test-Drive This PR

Follow the STR in this Gus ticket

Checklists

General

[x] Changes are covered by test cases
[x] CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Thanks for posting those videos, they are very helpful!


Data sets collections

As was noted by @qiangxue when designing Yii2 there was a discussion about implementing collections for AR, but it was decided to make things simple. Current collections examples can be seen for example in L4 Chunking Results | Collections sections and other frameworks. Main use-cases of such collections are:

not consuming memory export to pdf/excel and other formats; mainly working with data without involving background jobs and without consuming memory;
useful syntax sugar.

I would like to see this feature not only for AR, but mainly abstract with one of implementations for AR though.

https://github.com/yiisoft/yii2-collection


Moved "linked_clone.py" script into samples directory

Doesn't this commit just remove the linked_clones.py script rather than move it into the samples directory? Or am I missing something?

Thanks @mattiasa. I should have asked the same question..
@lamw Can you confirm? Is this a mistake? If so I can revert the change.


Using another database with more tables

Hello,
I want to use a different database than the default one, so I created the tables that Skoruba uses on an already existing one. The problem comes when I assign the name on the appsettings.json it pops a HTTP Error 500.30 - ASP.NET Core app failed to start on the .Admin project (localhost:44303).
Checking the log I got this, it seems like it's trying to create already existing tables:
2021-11-12 07:32:40.698 +01:00 [ERR] Failed executing DbCommand (4ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
CREATE TABLE [DeviceCodes] (
[UserCode] nvarchar(200) NOT NULL,
[DeviceCode] nvarchar(200) NOT NULL,
[SubjectId] nvarchar(200) NULL,
[ClientId] nvarchar(200) NOT NULL,
[CreationTime] datetime2 NOT NULL,
[Expiration] datetime2 NOT NULL,
[Data] nvarchar(max) NOT NULL,
CONSTRAINT [PK_DeviceCodes] PRIMARY KEY ([UserCode])
);
2021-11-12 07:32:41.004 +01:00 [FTL] Host terminated unexpectedly
Microsoft.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeviceCodes' in the database.
at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)    at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)
at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at Microsoft.Data.SqlClient.SqlCommand.InternalEndExecuteNonQuery(IAsyncResult asyncResult, Boolean isInternal, String endMethod)
at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryInternal(IAsyncResult asyncResult)
at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryAsync(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IEnumerable1 migrationCommands, IRelationalConnection connection, CancellationToken cancellationToken)    at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IEnumerable1 migrationCommands, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IEnumerable1 migrationCommands, IRelationalConnection connection, CancellationToken cancellationToken)    at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IEnumerable1 migrationCommands, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateAsync(String targetMigration, CancellationToken cancellationToken)
at webLake.Admin.EntityFramework.Shared.Helpers.DbMigrationHelpers.EnsureDatabasesMigratedAsync[TIdentityDbContext,TConfigurationDbContext,TPersistedGrantDbContext,TLogDbContext,TAuditLogDbContext,TDataProtectionDbContext](IServiceProvider services) in C:\apps\devkit\TokenService\v2\webLake\src\webLake.Admin.EntityFramework.Shared\Helpers\DbMigrationHelpers.cs:line 72
at webLake.Admin.EntityFramework.Shared.Helpers.DbMigrationHelpers.ApplyDbMigrationsWithDataSeedAsync[TIdentityServerDbContext,TIdentityDbContext,TPersistedGrantDbContext,TLogDbContext,TAuditLogDbContext,TDataProtectionDbContext,TUser,TRole](IHost host, Boolean applyDbMigrationWithDataSeedFromProgramArguments, SeedConfiguration seedConfiguration, DatabaseMigrationsConfiguration databaseMigrationsConfiguration) in C:\apps\devkit\TokenService\v2\webLake\src\webLake.Admin.EntityFramework.Shared\Helpers\DbMigrationHelpers.cs:line 49
at webLake.Admin.Program.ApplyDbMigrationsWithDataSeedAsync(String[] args, IConfiguration configuration, IHost host) in C:\apps\devkit\TokenService\v2\webLake\src\webLake.Admin\Program.cs:line 58
at webLake.Admin.Program.Main(String[] args) in C:\apps\devkit\TokenService\v2\webLake\src\webLake.Admin\Program.cs:line 35
ClientConnectionId:8985e0b1-c295-40d3-a53c-d1a83b347481
Error Number:2714,State:6,Class:16
How can I make Skoruba use the already existing tables on my database?
Thank you.

Hey,
you can delete already existing db migrations from this project and generate new according to your setup.

Hey,
you can delete already existing db migrations from this project and generate new according to your setup.

Thank you for your quick response, :)
I already fixed it by exporting the data from one db to another but that seems quicker, thank you very much.


CUDA RuntimeError in run_cosypose_eval

Hello,
I encountered cuda runtime error when I run:
python -m cosypose.scripts.run_cosypose_eval --config tless-siso —debug
Does anyone know how to solve this? Thank you.
Error message:
THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1573049306803/work/aten/src/THC/generic/THCTensorMathPointwise.cu line=281 error=209 : no kernel image is available for execution on the device
Traceback (most recent call last):
File "/home/gdk/anaconda3/envs/cosypose/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)

File "/home/gdk/anaconda3/envs/cosypose/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)

File "/media/gdk/Data/code/cosypose/cosypose/scripts/run_cosypose_eval.py", line 491, in
main()

File "/media/gdk/Data/code/cosypose/cosypose/scripts/run_cosypose_eval.py", line 390, in main
preds = pred_runner.get_predictions(**pred_kwargs_n)

File "/media/gdk/Data/code/cosypose/cosypose/evaluation/pred_runner/multiview_predictions.py", line 137, in get_predictions
n_refiner_iterations=n_refiner_iterations,

File "/media/gdk/Data/code/cosypose/cosypose/integrated/pose_predictor.py", line 90, in get_predictions
n_iterations=n_coarse_iterations)

File "/home/gdk/anaconda3/envs/cosypose/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 49, in decorate_no_grad
return func(*args, **kwargs)

File "/media/gdk/Data/code/cosypose/cosypose/integrated/pose_predictor.py", line 45, in batched_model_predictions
n_iterations=n_iterations, labels=labels)

File "/home/gdk/anaconda3/envs/cosypose/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in call
result = self.forward(*input, **kwargs)

File "/media/gdk/Data/code/cosypose/cosypose/models/pose.py", line 106, in forward
model_outputs = self.net_forward(x)

File "/media/gdk/Data/code/cosypose/cosypose/models/pose.py", line 82, in net_forward
x = self.backbone(x)

File "/home/gdk/anaconda3/envs/cosypose/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in call
result = self.forward(*input, **kwargs)

File "/media/gdk/Data/code/cosypose/cosypose/models/efficientnet.py", line 196, in forward
x = self.extract_features(inputs)

File "/media/gdk/Data/code/cosypose/cosypose/models/efficientnet.py", line 178, in extract_features
x = self._swish(self._bn0(self._conv_stem(inputs)))

File "/home/gdk/anaconda3/envs/cosypose/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in call
result = self.forward(*input, **kwargs)

File "/media/gdk/Data/code/cosypose/cosypose/models/efficientnet_utils.py", line 53, in forward
return SwishImplementation.apply(x)

File "/media/gdk/Data/code/cosypose/cosypose/models/efficientnet_utils.py", line 40, in forward
result = i * torch.sigmoid(i)

RuntimeError: cuda runtime error (209) : no kernel image is available for execution on the device at /opt/conda/conda-bld/pytorch_1573049306803/work/aten/src/THC/generic/THCTensorMathPointwise.cu:281
0%|                                                     | 0/1 [01:08<?, ?it/s]
Destroy EGL OpenGL window.

Solved by install newest version of pytorch
conda install pytorch torchvision cudatoolkit=11.3 -c pytorch
I’m using 3060 gpu, so pytorch 1.3.1 doesn’t support it anymore.


Attempting to solve terraform state issues by ignoring property versi…

This is a not as horrible workaround for the problem described here:
https://github.com/akamai/terraform-provider-akamai/issues/560

This approach ended in failure:
╷
│ Warning: Redundant ignore_changes element
│
│   on property.tf line 1, in resource "akamai_property" "my-property":
│    1: resource "akamai_property" "my-property" {
│
│ Adding an attribute name to ignore_changes tells OpenTofu to ignore future
│ changes to the argument in configuration after the object has been created,
│ retaining the value originally configured.
│
│ The attribute staging_version is decided by the provider alone and
│ therefore there can be no configured value to compare with. Including this
│ attribute in ignore_changes has no effect. Remove the attribute from
│ ignore_changes to quiet this warning.
│
│ (and one more similar warning elsewhere)
╵


Add Breadth-First-Search in the following languages

The following Algorithm needs to be implemented in the following languages.

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

Ground rules:

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

Can I take up C++?

I'll take c++, hence it's been a day

Taking C++

Can I claim for C?


[QUERY][Azure.Core] Validate resource Id with ResourceIdentifier

Library name and version
Azure.Core 1.24.0
Query/Question
What is the correct way to verify a string is valid resource ID?
current we need to
var rid = new ResourceIdentifier(input);
var _ = rid.Name; // Accessing one property verify FormatException

Is there a canonical way to do this?
Environment
No response

//cc: @m-nash

This is a good question.  The ResourceIdentifier type was meant to lazy parse the string to optimize performance on deserialization when there might be hundreds of these in a given response and the user probably won't touch all of them.  Right now the only way to "test" a string would be to construct then access a property and catch.
We can probably add an API to allow a user to test a string, will talk with the team and ping back.

@karataliu I will mention that creating ResourceIdentifiers isn't that easy so we have added helper methods to all mgmt plane libraries to construct the strings for you from the parts.  This section of the readme talks about it briefly.  For example if you want to create a VirtualMachine ResourceIdentifier you can call this method here and it prompts you for the pieces that are needed as well as constructs the string for you.
Basically any Resource type in Azure has this helper method to construct these for you to avoid creating invalid strings accidentally.


Added interview of Diogo Mónica by Kim Carter for SE-Radio

Added Software Engineering Radio show interview of Docker Security Team Lead (Diogo Mónica) by Kim Carter.
Issue #520

I'm assuming it should be alpabetical order, so I've moved it below both of the links you mentioned, let me know if this is incorrect?
Thanks.

Exactly @binarymist, alphabetical order :smile: - Thank's again :+1:
The awesome docker team.
Closes #520.


Mappings can now be based on entities

As of Mendix 7.2, you can select an entity as the source of import and export mappings

Ready for merge for 7.2.0.


Assets are missing from dist

I am trying to deploy my code to Firebase Hosting and the assets are not present in the dist folder. Any suggestions on how to fix that from the yarn build command?
@photonstorm

Same problem with npm run build...

I used copy-webpack-plugin to set the assets folder correctly in the prod.js webpack config to make it work.
module.exports = merge(base, {
  ...
  plugins: [
    new CopyPlugin([
      { from: 'assets', to: 'assets' }
    ])
  ],
}

Are you adding the files inside of your code by importing them?
For instance, to use the fullscreen.png file you would import it like so in your code:
import fullscreen from '../assets/spriteSheets/fullscreen.png';
Then later in your code you can use the variable fullscreen instead of the filename.
Then when you perform a build, webpack will bundle this file, and all of the other imported files, for you.

I made a PR that fixes asset resolution on both dev and prod webpack configurations.

can i make a build without import. directly use this.load.image("bg","img/bg.jpg");

This is fixed with v2.0.0 of this template.


Adding the tiles (sub-domains) for maps.

Each subdomain is now added to the driver to be done in parallel, along with the forecast hours and different fields.
I did not use exact values of corners from HRRR, instead used less precise estimates.
See the attached power point for examples. We should discuss how to reduce repetition. Also, I'm not super happy with the results when a proper coastline is not present (e.g., CHI-DET).
DomainCompare.pptx

This looks very good!  I'm a bit worried that the current subdomain corners weren't more closely matched, though if it's a problem, these values are easy to find and change.  I'm also concerned with the lack of Lake Michigan coastline in the CHI-DET plot.  It looks like it might be trying to use a dashed line.  Perhaps this is a setting that can be changed in basemap?

Interesting that the Great Lakes coastlines are plotted for the GreatLakes region map, but not for the CHI-DET and NC region maps. (Also has an issue with Washington state coastlines in the Puget Sound region.)
Is this due to the Great Lakes being along the region boundary, so somehow drawcoastlines() doesn't perform properly? (The dashed line is the actual state boundary running through the middle of the lakes.)  The try block is passing any exception to drawcoastlines(), right?

@Brian-Jamison Can you think of any cases where the exact corners of the domains might matter? Are folks just looking at these plots, or are they somehow processing them as a grid?
About the coastlines and lakes:
So, the coastlines code tries to add a LineCollection to the map before it does anything else. For maps that don't have any actual coasts, that collection is empty, it raises a ValueError exception that the try block allows us ignore for the interior domains. Unfortunately, the lake border portion happens in the drawcoastlines() routine AFTER the error. This is the case for North Central, CHI-DET,
I extended the ATL domain to include a bit of coast so that it won't be a problem for that one.
I can get the lakes' outlines if I make all the counties black outlined so that we can take advantage of the fact that the edges of the lakes are also the edges of the counties. Maybe that is the way to go here? Please let me know if this is an acceptable alternative.

don't see any easy way to trick the code at this point.  Seems like the dark county lines might be the best way  to go for now.

@christinaholtNOAA The corners that you have are probably ok.  I think the only one that I set via specifications is the VORTEX domain.  There have been a number of occasions in the past where someone has asked me to extend or shift a subdomain in order to capture a particular city or area.  The way you have it set up is easy to change if we get those requests.
On the coastlines, I say try a darker color for the counties.  I think that may work ok.  You can also play with the line thicknesses if that can be done.  I found this https://matplotlib.org/basemap/api/basemap_api.html#mpl_toolkits.basemap.Basemap
and maybe you can set "area_thresh" to get the coastline.

My example images didn't upload. :-/

Thanks @Brian-Jamison.
I have definitely been playing around with the various different arguments. I played around with the county colors, and since counties don't line up perfectly with the coastlines, it gets a bit disorienting to have the county lines darker. For example:

versus the original in the PPT.


Failed to find any forward convolution algorithm.

See this test failing: http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/incubator-mxnet/detail/master/915/pipeline/
with
 src/operator/nn/./cudnn/cudnn_convolution-inl.h:744: Failed to find any forward convolution algorithm.

I have encountered this in the wild very rarely too.

@DickJC123

This is not CI related

Is it possible that memory is exhausted on CI?

Also encountered this error on Windows, CUDA 9.2, cudnn 7.1.4.
Ran the following command python train_imagenet.py --benchmark 1 --gpus 0 --network inception-v3 --batch-size 64 --image-shape 3,299,299 --num-epochs 1 --kv-store device
Reducing the batch size to 16 resolved the issue.

Currently facing this issue. Reducing batch size does not seem to fix the issue.
Trying to train fast neural style transfer
Issues seems to arise when trying to do mod.save_params() throws the following error:
mxnet.base.MXNetError: [23:59:34] src/operator/nn/./cudnn/cudnn_convolution-inl.h:744: Failed to find any forward convolution algorithm.

Update: I've managed to find a rather bizarre workaround to this issue.
I was facing this issue when I was trying to do a model.save_checkpoint(). However, if I caught the exception and saved it in the except block, it seemed to work flawlessly
    try:
        mod.save_checkpoint(model_save_path, epoch)
    except Exception as excep:
        print("Exception caught: ", excep)
        mod.save_checkpoint(model_save_path, epoch)

Update: Sleeping for 0.5 seconds before sleeping also seems to help.
    time.sleep(0.5)
    mod.save_checkpoint(model_save_path, epoch)

@ThomasDelteil Is this still occurring on CI now? If it's not appearing again would you mind closing this?
@aluo-x @codewithsk Usually this is due to lack of GPU memories, reducing the consumption of GPU memories such as reducing batch sizes and using a smaller model would help. If you experience more issues on this, please create a separate issue with a title like "GPU memory overflow on xxx model with yyy batch size and zzz dataset". Meanwhile I'll look for ways to improve this error message to indicate the actual root cause of this error.


C_CPP: Why is Deallocation Necessary?

Description
Description
Domain
C/CPP
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign


Mm 38063 date to utc

Summary
Changed date to utc in the data retention policy table
Ticket Link
https://mattermost.atlassian.net/browse/MM-38063
Release Note
NONE

Hello @hamzaMM,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@hamzaMM The package-lock.json changes shouldn't be there

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!
/cc @aspleenic


tests: fix usage of requires_zlib() decorator

It was passing the test function itself as an argument, skipping the test always.
See https://github.com/python/cpython/pull/28305 for the same fix in CPython.

Ah, the API was changed in https://github.com/python/cpython/pull/20131

Thanks!


Page not found

Describe the issue here.
Relevant URLs

Provide relevant URLs

What products and version are you using?

Closing--not information to reproduce.


Adding Swift Methods

It's always good to have Swift methods!

Thanks!

=D

Any chance you could fix the issue addressed in https://github.com/mamaral/Onboard/issues/83? I didn't catch it when you originally opened the pull request.


Example of custom filter JS file?

Hi,
I don't suppose you can provide an example of a custom filter? Something really quick and basic, whatever is passed will get "blah!" appended to it.
Thanks. :)

There are 2 ways to configure custom filters.
One way is to specify "filterfile": "path-to-filters-file.js" in your "nunjucks" wintersmith config. Like this:
"nunjucks": {
    "filterfile": "nunjucks.filters.js"
}

Then create that file with something like the following contents:
// Contents of nunjucks.filters.js

function or(str, defaultValue) {
  return str || defaultValue;
}
exports.or = or;

exports.other = function(str, defaultValue) { return "something else"; };

// ... This is basically just a normal Node.js module that exports functions,
// however the functions all follow the Nunjucks filter function declaration style.

The other way is to configure "nunjucks" like this:
"nunjucks": {
    "filterdir": "filters",
    "filters": ["myfirstfilter"]
}

and then you have to create a directory called "filters" and put one file per function in that directory. Each file should look something like this:
module.exports = function(str, opt) {
  return "my filter functionality...";
}

One other note - you can mix both modes of filter configuration and they should all work.
I will update the readme with this information ASAP. Thank you.

Hey thanks for that. Worth adding to the docs. I was missing module.exports. Still new to Node land. Not having to create a new file for each filter is the way I'll go. Thanks again!


Import statement gives error

While testing the samples for python driver in apache-age-note.ipynb here,
import age
from age.gen.ageParser import *
GRAPH_NAME = "test_graph"
DSN = "host=<IP_ADDRESS> port=5432 dbname=postgres user=postgres password=agens"
ag = age.connect(graph=GRAPH_NAME, dsn=DSN)

The statement from age.gen.agePareser import * gives error 'ModuleNotFoundError: No module named 'age.gen.ageParser''.
I have tested the sample cells without this statement and everything works fine. Is there a reason this statement is here or is it by mistake?

Yes, Instead of that use import AgtypeParser. I guess it hasn't been updated in the notebook.

I just looked into the code and in this directory, I couldn't find any such file or module. It's also possible that the module was only necessary for earlier versions.

It was renamed. Instead of that use  AgtypeParser. I guess it hasn't been updated in the notebook.

The module age.gen.ageParser has been named to age.gen.AgtypeParser, the age.gen.ageParser is an old version of it.

You should replace from age.gen.ageParser import * with age.gen.AgtypeParser. I believe this will fix your errors.

This issue is resolved in Pull Request # 900
Here is the link to Pull Request: https://github.com/apache/age/pull/900

The issue reason is basically simple, it seems that the module 'age.gen.ageParser' is not installed or cannot be found in your environment. This module is used to parse the AgeQL language, which is the query language used by Apache AGE. As mentioned by others, this has been changed so use now age.gen.AgtypeParser. Also check the PR#900 As fahad mentioned.


feat(Analysis): integer complement in ℂ

Develop some basic API for the complement of the integers in the complex numbers.

So I changed the definition to now make it a Set ℂ instead of its own type. Originally I was just following the UpperHalfPlane API, but as @loefflerd points out, this is probably not needed here. But if anyone has a good reason why it should be its own type then I'd be interested to know!

Ok I've added the suggestions from the reviews and I also changed the definition so actually be (Set.range ((↑) : ℤ → ℂ))ᶜ since that is what the instances are written as. I added some basic lemmas to relate to the previous definition. But I'm happy to change it back if people think this isn't ideal.

bors r+


Is there a way we can add in our own reference as training data

Description of feature
Adding our own reference would be a great way to run this pipeline.

Hi @Sudheshna30, what do you mean exactly by using our own reference?
Do you mean for generating the embedding or for clustering samples?
For the first one you can simply train your own scVI or trVAE model using the official tutorials of the packages.
For fitting the clustering model on a dataset and then clustering on a different dataset you can use
You can use tl.Cluster.fit on the first dataset and then tl.Cluster.predict on the other one.
I hope I understood the question, let me know if you meant something else :)

Hi @Sudheshna30. If I can ask, what was not good in your results for the pancreatic CosMx? You are actually the second person who told me that CellCharter didn't work so well on pancreatic tissue, so I am curious about whether there is something specific in the tissue structure that requires different parameters for CellCharter.
If you want to show me some images to better understand the problem you can send me an email at<EMAIL_ADDRESS>Regarding fit and predict you can look at the CosMx tutorial . There I used them on the same dataset but nothing prevents you from processing the two datasets in the same way and using fit on the reference dataset and predict based on your dataset. In the tutorial I used ClusterAutoK rather than Cluster to estimate the best number of clusters (but it requires more runtime, so if you are just exploring I would suggest you to use Cluster).
So basically what you would do is:

Compute the spatial neighbors for both datasets
Train a scVI model on the reference dataset and extract the features for both datasets
Run cc.tl.Cluster.fit on the reference dataset
Run cc.tl.Cluster.predict on your dataset

However, this implies that there are no strong batch effects between the reference dataset and your datasets, otherwise the features from scVI trained on the reference dataset will not work well for your dataset.
If there are batch effects, you may want concatenate the two dataset and set adata.obs['dataset'] equal to the dataset associated to every cell, and then train a scVI model on both datasets together using batch_key='dataset'.
Then do cc.Cluster.fit at this point on both datasets together and cc.Cluster.predict on your dataset.
It may be a bit of work and not necessarily help a lot unless the reference dataset is quite similar to your dataset, so as I mentioned at the beginning I suggest you to share with me why you think the results are not good, so that we can figure out together how to improve it instead of using a reference dataset.

After interacting privately I want to clarify a common misconception that I am seeing people have with CellCharter, even though it should be clear by reading the paper.
CellCharter has not been initially designed to find cell types but to find cell niches, which are areas with the same combination of cell types and cell states. You can identify cell types by running it with n_layers=0 and it could be convenient because it's very scalable, but this is not its original purpose.


Why everything is shaking while the values are changing?

Not sure if this problem only happens on me or not. I noticed that when I was clicking the time arrow up or down, everything is shaking a little bit. (Either in my program or in the demo) Is there a way to do a quick fix on this issue? I would appreciate for any reply.

Ah never mind, I think I have some resolution issues.


Axial Attention issue

Hi, I am interested in trying axial attention together with nnunet on BRATS 2021 dataset. Can I ask you for clarification about parameters used in generic_Unet.py in this part of code:
 if self.do_attention:                 d = num_pool - u - 1                 if d not in self.no_attention:                     emb_shape = (self.volume_shape/(2**d)).astype(np.int16)                     self.axial_attention_up.append(AxialAttention3D(n_features = nfeatures_from_skip,                                                                        emb_shape  = emb_shape,                                                                       heads = heads*2**d,                                                                       dim_heads = dim_heads*2**d,                                                                       non_lin = nonlin,                                                                       non_lin_kwargs = nonlin_kwargs,                                                                       bn = axial_bn,                                                                       sum_axial_out = sum_axial_out,                                                                       residual_attention=residual_attention))
What do this parameter mean and why did you defined their values so? I also looked on github https://github.com/lucidrains/axial-attention but the description of parameters
attn = AxialAttention(     dim = 3,               # embedding dimension     dim_index = 1,         # where is the embedding dimension     dim_heads = 32,        # dimension of each head. defaults to dim // heads if not supplied     heads = 1,             # number of heads for multi-head attention     num_dimensions = 2,    # number of axial dimensions (images is 2, video is 3, or more)     sum_axial_out = True   # whether to sum the contributions of attention on each axis, or to run the input through them sequentially. defaults to true )
is not enough for me to understand what these values should be for my dataset, since I am a beginner in this topic. Do I understand correctly, that I should put my patch _size from debug.json as volume_shape=(128, 160, 112) in trainer?

Hi @dominikaxx,
I assume you are talking about the emb_shape parameter. This parameter specifies the shape of the feature maps to calculate the embedding parameters for axial attention. Since Unet typically downsamples the original volume by 2 every pooling, the emb_shape is calculated as: original_shape / (2^num_pool). Performing attention is expensive for larger feature maps so this operation is not performed for small downsampling factors, which you can specify by passing a list (such as [1,2]) into self.no_attention. You can use the patch_size of your dataset as the volume_shape.

Thank you very much for your answer. I would also like to ask, why it is, that number of heads and dim_heads is changing in your implementation, why is it not equal to the exact value in each upsampling block, but changing according to the formula:
heads = heads*2**d,  dim_heads = dim_heads*2**d,

The number of heads and dim_heads is increased according to the formula to improve the model capacity. Since these two numbers are specified starting at the highest resolution feature maps, it is quite small (to avoid OOM) and would probably limit the model for coarser feature maps. I haven't experimented extensively with these two parameters so you might find setting them to constant numbers would yield better performance.


Make release v1 0 0

What does the code in this PR do / what does it improve?
Make a new release

Somehow version bump made a strange update...


Type assertion section improvement

I propose to replace let someValue: any  with let someValue: unknown, because with any the type assertion on the next line is unnecessary (someValue as string).length; , in other words it can be replaced with someValue.length (without any error or warning). While with unknown the only way to proceed without an error is to use the type assertion.

Agreed, thanks!


Fixedratebond.cs => FixedRateBond.cs

QLNet
Thank you for contributing! Take a moment to review our contributing guidelines
to make the process easy and effective for everyone involved.
You must open an issue before embarking on any significant pull request, especially those that
add a new code or change existing tests, otherwise you risk spending a lot of time working
on something that might not end up being merged into the project.
Before opening a pull request, please ensure:

[ ] You have followed our contributing guidelines
[ ] Pull request has tests
[ ] Code is well-commented and follows project conventions
[ ] You only changed necessary files (commits with formatting only changes will be reject, see below)
[ ] Documentation is updated (if necessary)
[ ] Description explains the issue/use-case resolved and auto-closes related issues
[ ] IMPORTANT You have executed the format_code.bat batch in the root of your fork to format the code with qlnet standard.

Be kind to code reviewers, please try to keep pull requests as small and focused as possible :)
IMPORTANT: By submitting a patch via a Pull Request, you agree to allow the project
owners to license your work under the terms of the BSD3 License.

You'll have to update the .csproj files too, since we attempt to support builds on case-sensitive file systems when targeting e.g. Mono .

Done.


POLIO-1102: scope only valid org units

In polio prod go to campaign CHD-2023-05-1_nOPV
In scope tab, the list will show both MICHEMIRE and MICHEMERE. The second one has been rejected. the name is actually an alias of the first one
Related JIRA tickets :POLIO-1102
Self proofreading checklist

[x] Did I use eslint and black formatters
[ ] Is my code clear enough and well documented
[ ] Are my typescript files well typed
[ ] New translations have been added or updated if new strings have been introduced in the frontend
[ ] My migrations file are included
[ ] Are there enough tests
[ ] Documentation has been included (for new feature)

Doc

Tell us where the doc can be found (docs folder, wiki, in the code...)

Changes
only fetch valid org units
How to test
Select a campaign, edit the scope and get the name of an org unit.
Edit the org unit and set the status to rejected.
Refresh the campaign scope, org unit should be present anymore
Print screen / video
https://github.com/BLSQ/iaso/assets/12494624/bbefcff1-dd2f-4480-901e-e3c8a903c380

@quang-le   Now it displays REJECTED or NEW org unit if they are already part of the scope.


Validate RHEL8 with SELinux set to Enforcing with cis-1.5 enabled using Rancherd

Validate RHEL8 with SELinux set to Enforcing with cis-1.5 enabled (can automation have this on by default?)
Related issue: https://github.com/rancher/rancher/issues/29797
Validate:

Deploy rancherd latest with RHEL8 with SELinux set to Enforcing with cis-1.5 enabled setup
Verify the cluster comes up, workloads in system project are Active.
Deploy a downstream cluster and run validation checks
Verify if user is able to deploy v2 apps on rancherd local cluster.

RHEL8 with SELinux enforced is validated with a cis-1.5 enabled setup using Rancherd.
AMI used: ami-0ff391c1c79d2cb84
Config:
write-kubeconfig-mode: "0644"
tls-san: <hostname>
token: "secret"
server: https://<IP>
cloud-provider-name: "aws"
node-name: <Node name>
profile: cis-1.5

Installed with:
curl -sfL https://get.rancher.io | sudo INSTALL_RANCHERD_VERSION=v2.5.3 sh -

Automation checks on downstream clusters passes.
User is able to deploy V2 apps on rancherd local cluster


sync logging utils with transformers

sync the docs/code with the recent changes in transformers' logging utils:

change the default level to WARNING
add DATASETS_VERBOSITY env var
expand docs

Also, some downloads and dataset processing can be quite long for large datasets like wikipedia/pg19/etc. We probably don't want to user to think that the library is hanging. Happy to reorganize logging between DEBUG/INFO/WARNING to make it less verbose by default though.

The problem is that transformers imports datasets and the latter starts logging on import: at least 3 info messages - apache beam/torch/tf available - so it injects noise whether one uses the library or not - i.e. no choice given to the user.
Would you be open for me to changing this PR, to keep the initial level at INFO, but to keep the DATASETS_VERBOSITY env var it introduces, to let the user control the verbosity?

Also, some downloads and dataset processing can be quite long for large datasets like wikipedia/pg19/etc. We probably don't want to user to think that the library is hanging.

If you're referring to tqdm, it's not affected by changing the logging levels.

The problem is that transformers imports datasets and the latter starts logging on import: at least 3 info messages - apache beam/torch/tf available - so it injects noise whether one uses the library or not - i.e. no choice given to the user.
Would you be open for me to changing this PR, to keep the initial level at INFO, but to keep the DATASETS_VERBOSITY env var it introduces, to let the user control the verbosity?

For now we can do that, then I'll change some messages to warnings and set the default verbosity at warning as well at that point. Does it sound good to you ?

If you're referring to tqdm progress reports, it's not affected by changing the logging levels. It's not using logging.

Actually we configured some progress bars to be disabled depending on the logging level ^^'

For now we can do that, then I'll change some messages to warnings and set the default verbosity at warning as well at that point. Does it sound good to you ?

If it is logical then by all means.

If you're referring to tqdm progress reports, it's not affected by changing the logging levels. It's not using logging.

Actually we configured some progress bars to be disabled depending on the logging level ^^'

This is very smart!
I reverted s/WARNINGS/INFO/.
Thank you!

Note that it’s the same in transformers @stas00, tdqm are also controlled by the logging level there.

Note that it’s the same in transformers @stas00, tdqm are also controlled by the logging level there.

That's good to know, @thomwolf - thank you!
I see that it's controlled in trainer.py, but in examples it's not - since that's where I usually see the progressbars (and they are great!). But I suppose they aren't API, so examples can behave differently.

BTW, this is what I'm talking about:
python -c "import transformers"
2020-09-14 21:00:58.032658: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
PyTorch version 1.7.0.dev20200910 available.
TensorFlow version 2.3.0 available.
Apache Beam available.

why does the user need to see this? Especially, if they aren't even using datasets directly?

Yes you are right, we should re-think the logging level of various elements.
I also think that the set_format messages are confusing when they are the results of our internal operations (as mentioned here)

Actually I continued this PR in #635 to set the level to warning and update the logging level of some messages.
Let me know if it sounds good to you

Closing this one sice #635 got merged

Awesome! Thank you!
Any ideas how to eliminate this remaining log line from tensorflow:
python -c "import transformers"
2020-09-17 08:38:34.718410: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1


Quoted-Printable not being handled in Header by LetterparserMail

Given this:
          const result: LetterparserMail = extract(block.Data);
          const raw: LetterparserNode = parse(block.Data);

result.from shows
address<EMAIL_ADDRESS>name: "=?utf-8?Q?jmetertester06@xxx=2Elocal?="
raw: "\"=?utf-8?Q?jmetertester06@xxx=2Elocal?=\"<EMAIL_ADDRESS>
The name is not being converted from Quoted-Printable per the Content-Transfer-Encoding

@thoffmann-fms Could you post a minimal input needed to reproduce the error?

Does this work?
Subject: =?utf-8?Q?Cancelled_Reservation_-_Automation_-_C's_Location;_Sensors;_Sensor2_-_CEDITtest?=
Sender: "=?utf-8?Q?sgmh@xxx=2Elocal?="<EMAIL_ADDRESS>From: "=?utf-8?Q?sgmh@xxx=2Elocal?="<EMAIL_ADDRESS>Date: Wed, 3 Jan 2024 14:32:57 -0500
CC: "=?utf-8?Q?test@test=2Ecom?="<EMAIL_ADDRESS>To: "=?utf-8?Q?qaautomation@xxxystemsdev=2Eonmicrosoft=2Ecom?="<EMAIL_ADDRESS>X-Priority: 3
MIME-Version: 1.0
X-Mailer: JMail 4.5 by Dimac
Content-Type: multipart/mixed;
	boundary="--NEXT_BM_ADD76E77DDAC42499ED36625FEC5B6F6"

This is a multipart message in MIME format.
----NEXT_BM_ADD76E77DDAC42499ED36625FEC5B6F6
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: Quoted-Printable

@thoffmann-fms Thank you, fixed in 0.1.4.

Thanks, I'll check it out.  It may be a few days before I can fully confirm.  There's some specific e-mails that generate that syntax and they only happen periodically in our test environment.


Minor typo in docstring for cupy.linalg.slogdet

The docstring has a 1 character typo in what should be the word "determinant".
In cupy/linalg/norms.py
def slogdet(a):
    """Returns sign and logarithm of the determinat of an array.

Nice work, @fiarabbit!  Closing this.


Weird Animation Issue With Droppable Going Outside Div then Into Correct Place

         {{item.name}}

I've attached screenshots to show what's going on.  Basically the animation is always going to that same spot then swapping (I don't want them to stop, but that's another issue).  Anyone experience this issue / suggestions?

![standard](https://cloud.githubusercontent.com/assets/10984873/10975307/40eb81ba-83b4-11e5-8a4d-e4859d101ef0.png)
![moved1](https://cloud.githubusercontent.com/assets/10984873/10975311/46ffa310-83b4-11e5-8a2f-64761fa03a27.png)
![moved2](https://cloud.githubusercontent.com/assets/10984873/10975315/49d576f0-83b4-11e5-885c-0b4f596f27a0.png)

@davidmillercode: Please share a demo link to understand the problem.


Feature request: windows_bindgen::standalone should allow specifying specific enum constants

Motivation
Currently, windows_bindgen::standalone will emit every constant in an enum with no way to filter to only the ones that are needed by the crate using the bindings. As a consequence #![allow(dead_code)] is always emitted in the generated bindings so the user doesn't get warnings for the unused constants.
Drawbacks
In a vast majority of use cases, only a small fraction of enum values are used from any particular enum, from the relatively tame PAGE_ flags enum to the frankly insane (at the time of this writing) 3240 item WIN32_ERROR. While it's not the end of the world, refining the emitted items to only the ones requested by the user means less generated code and thus less code to compile.
Rationale and alternatives
The impact of not doing this is that crates which generate enum bindings with windows_bindgen::standalone will almost always be compiling code they don't use. This cost will be negligible in the grand scheme of things, but there's also no reason to give the compiler more work to do if it can be avoided. It also means that if the user manually removes the items they don't use, regenerating the bindings will need manual cleanup every time rather than just having a feature to always emit bindings without a need for manual fixup.
Additional context
No response

This one's a little trickier but agreed it would be nice if this were possible.

And here's the fix for this issue: #2430


Engine -> Framework roll failing

Starting with https://github.com/flutter/flutter/pull/95150 whose changes look unrelated, the engine is repeatedly failing to roll into the framework.
Some of the error messages in the failing tests indicate that the tool is looking for a file in the Android NDK that isn't there.
02:12 +14 -2: test/integration.shard/multidex_build_test.dart: simple build apk without FlutterMultiDexApplication fails [E]
  Expected: contains 'Cannot fit requested classes in a single dex file'
    Actual: '\n'
              'FAILURE: Build failed with an exception.\n'
              '\n'
              '* What went wrong:\n'
              'Execution failed for task \':app:stripDebugDebugSymbols\'.\n'
              '> NDK at /opt/s/w/ir/cache/android/ndk-bundle did not have a source.properties file\n'
              '\n'
              '* Try:\n'
              'Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\n'
              '\n'
              '* Get more help at https://help.gradle.org\n'
              '\n'
              'BUILD FAILED in 32s\n'
              'Gradle task assembleDebug failed with exit code 1\n'
              ''

  package:test_api                                      expect
  test/integration.shard/multidex_build_test.dart 57:5  main.<fn>

Is this fallout from https://github.com/flutter/flutter/pull/94975?

Creating a revert. I think it will apply cleanly:
https://github.com/flutter/flutter/pull/95196

It will also require a revert of https://flutter-review.googlesource.com/c/recipes/+/24240

Tree should be unblocked. Monitoring before closing.

"cmdline-tools component is missing" seems to be the culprit.
Full log https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8827954691682037425/+/u/run_module_test/test_stdout

To reland this change, please upload the new package to the internal and external namespace. Once the package is fully validated we can move to the external namespace.


obstruction_interval=nan causes influx ingest to fail

Using dish_grpc_influx.py, noticed that my statistics stopped being ingested.  Checked logs and found many gigabytes of the following:
unable to parse 'spacex.starlink.user_terminal.status,id=ut000#####-########-######## alert_mast_not_near_vertical=False,alert_motors_stuck=False,alert_roaming=False,alert_slow_ethernet_speeds=False,alert_thermal_shutdown=False,alert_thermal_throttle=False,alert_unexpected_location=False,alerts=0i,currently_obstructed=False,direction_azimuth=-1.9601364135742188,direction_elevation=63.73470687866211,downlink_throughput_bps=7314.8662109375,fraction_obstructed=0.00020500205573625863,hardware_version=\"rev1_pre_production\",obstruction_duration=0.0,obstruction_interval=nan,pop_ping_drop_rate=0.0,pop_ping_latency_ms=31.85714340209961,raw_wedges_fraction_obstructed_0=0.0,raw_wedges_fraction_obstructed_1=0.0,raw_wedges_fraction_obstructed_10=0.0,raw_wedges_fraction_obstructed_11=0.0,raw_wedges_fraction_obstructed_2=0.0,raw_wedges_fraction_obstructed_3=0.0,raw_wedges_fraction_obstructed_4=0.0,raw_wedges_fraction_obstructed_5=0.0,raw_wedges_fraction_obstructed_6=0.0,raw_wedges_fraction_obstructed_7=0.0,raw_wedges_fraction_obstructed_8=0.0,raw_wedges_fraction_obstructed_9=0.0,seconds_to_first_nonempty_slot=0.0,software_version=\"ffbba606-958e-40c1-9668-b8f1cbf13081.uterm.release\",state=\"CONNECTED\",uplink_throughput_bps=10368.3193359375,uptime=270355i,valid_s=269986.0,wedges_fraction_obstructed_0=0.0,wedges_fraction_obstructed_1=0.0,wedges_fraction_obstructed_10=0.0,wedges_fraction_obstructed_11=0.0,wedges_fraction_obstructed_2=0.0,wedges_fraction_obstructed_3=0.0,wedges_fraction_obstructed_4=0.0,wedges_fraction_obstructed_5=0.0,wedges_fraction_obstructed_6=0.0,wedges_fraction_obstructed_7=0.0,wedges_fraction_obstructed_8=0.0,wedges_fraction_obstructed_9=0.0<PHONE_NUMBER>': invalid number dropped=0"

I tried modifying starlink_grpc.py line 622 as follows:
    obstruction_interval = float(status.obstruction_stats.avg_prolonged_obstruction_interval_s or 0)

Alas, this didn't seem to help.

The change in 9ca1a8a51c62dd522ec7b6db29e75e0f23a14ab8 would have exposed this.
Looks like the dish reports the obstruction interval as NaN if it experiences absolutely no obstructions, in which case, the reporting of these data items should probably just be skipped, which is what was always happening before 9ca1a8a51c62dd522ec7b6db29e75e0f23a14ab8. Maybe this is what that valid flag was originally supposed to be protecting, but then they never actually implemented it that way, but instead reported the no obstructions case as (0, NaN).

Ah, I was assuming the nan was a side effect of the conversions from None type in Python.   It's interesting though that the float(val or 0) didn't correct it though, since the string nan would clearly not convert to float...  but it still shows exactly the same way in the output.

@linuxkidd: Could you please pick up that change and test on your installation? I was able to reproduce the reporting of NaN values, as it happens for a few minutes after dish reboot even if there are occasional obstructions, but I don't get them all the time the way you apparently do.
With change 35150803efe6e18460ad517e7741134302ac5a5e, the lower layer goes back to reporting this data as (None, None), same as was happening prior to change 9ca1a8a51c62dd522ec7b6db29e75e0f23a14ab8. I believe the Influx client handles that by just not including those fields in the data point.

BTW: This NaN value behavior also came up in the review comments on pull request #40. I probably should have paid more attention to it then, but I though it was more of a corner case than it apparently is.

Hi @sparky8512  -- Looks good!  no more 'nan' errors and my data is making its way into influx again.  Thanks!


Disable autorun for RSpec::Core::Runner

RSpec::Core::Runner creates an at_exit hook that calls run(ARGV, $stderr, $stdout). For rspec-multiprocess_runner this results in an error message when the run completes. For example, multirspec -w 1 spec/some_spec.rb will result in cannot load such file -- /some/path/1 and multirspec --worker-count 1 spec/some_spec.rb will result in invalid option: --worker-count
Looks like we just need to call RSpec::Core::Runner.disable_autorun!

LGTM


Is there a reason not to cache export bundle files?

Question
Metadata on .zip export bundles sets cache-control: no-cache, max-age=0.
Is there a reason not to cache these files? Should they ever change?
Context
Invocations of s.env.Blobstore().CreateObject in internal/export/worker.go set cachable: false for index and bundle files.

Relates to https://github.com/google/exposure-notifications-server/pull/494
The index stands to change and makes sense not to cache. The change also set caching on bundle files.

Looks like a bug:
$ gsutil ls -L gs://exposure-notification-export-lmuvk/exposureKeyExport-US/index.txt | grep cache
        Cache-Control:      no-cache, max-age=0
$ gsutil ls -L gs://exposure-notification-export-lmuvk/exposureKeyExport-US/1592245500-00001.zip | grep cache
        Cache-Control:      no-cache, max-age=0

The intention was to have export files themselves be cacheable (as they are immutable) and the index not be cached.


AMBARI-25717 Fix broken build on branch-2.7

@jojochuang @brahmareddybattula could you please review?

+1 LGTM, thanks @virajjasani


Keep all messages.

Hi,
I'm opening this pullreq so I don't forget about this branch and we'd have a place to discuss it. These patches have the desired effect as far as I tested it.
The only thing I'm not sure on: would is be better to return from synchronizeMailbox(...) right away when remoteStart >= remoteEnd, or just have it finish up like I do now? ( I needs all the closing code anyway ).
Let me know what to change.
Thx

I created issue #682 to come up with a concept on what messages to keep locally.


bump to buildkit 0.13 series for dockerfile-from-checker

Currently using 0.11.x series. Should move to 0.12.x, but there are compatibility issues with docker/docker, which would require downgrading that to a beta release of 24.0.0 from its current actual 24.0.7. Buildkit v0.13.x is compatible with released docker/docker 25.0.0, so everything works well.
And we already do it for dockerfile-add-scanner anyways.

yetus is just wrong here. I do not care what make version is in there. Ignoring.

LGTM. I assume we should move forward from the beta as soon as there is a new release.

Sure.

FWIW why did you want to remove the make version? I wouldn't expect different versions to cause different built artifacts but locking down the versions of everything seems to have less risk of breaking the reproducibility of the builds

Then you have to change it with each time you update something. I had it locked to the alpine-3.18 version, and then had to change it for this. It adds no value.


Trouble using SVG images in the newest form of manim

Hello, I am having trouble getting an .svg image to work in the newest version of manim. Any help would be appreciated. I have attached a screen shot of the code I am using, and the error messages that I am getting. In making my own code, I tried to mimic the PiCreatures code as close as possible to get it to run but to no avail.

This doesn't appear to be an issue with the library, at a guess your missing FILE_DIR appears to be either PSI_CREATURE_DIR or MEDIA_DIR.
Also for future refrence it's better to attach a link to a gist or hastebin with the relevant code and tracebacks

So how would I remedy this situation? How do I create a PSI_CREATURE_DIR or a MEDIA_DIR?

Also, where is the image directory?

So how would I remedy this situation? How do I create a PSI_CREATURE_DIR or a MEDIA_DIR?

Both of those names are defined already at the top of the file so it's as simple as replacing the undefined name with either one of those.
Also for getting started with Python I'd recommend the official tutorial or the realpython blog and for asking questions there's r/learnpython, one of the many discord guilds or the #python channel on the freenode IRC.

Ok, so I changed the FILE_DIR to PSI_CREATURE_DIR, and that got rid of the FILE_DIR Not Defined Error. Thank you for that.
But it still says
OSError: No file matching assets/PsiCreatures_happy.svg in image directory
Does this have something to do with where I have placed the svg file? Currently, I have placed the svg file in manim/manimlib/files, as this is where the PiCreatures_plain.svg also resides. I tried moving the svg to the assets file to see if that would work, but it still returns the same error message. Any advice for this?

FILE_DIR was defined way back to be os.path.join(".", "files") and is removed in commit caa4577cd161e5c8bd4f2f57b9d6c3295672d2a3. Add this line to the top of your script
FILE_DIR = os.path.join(".", "files")

after the import * if your SVG files are placed in ./files

Ok, so I moved the file PsiCreatures_happy.svg back to the files folder in the library and then added the code you provided. However, it is still giving me this error when I am trying to run it in Terminal:
Media will be written to ./media/. You can change this behavior with the --media_dir flag.
conversation.py:39: UserWarning: No PsiCreatures design with mode happy
(self.file_name_prefix, mode))
Traceback (most recent call last):
File "conversation.py", line 36, in init
SVGMobject.init(self, file_name=svg_file, **kwargs)
File "/Users/luketimmerman/Animation/manim/manimlib/mobject/svg/svg_mobject.py", line 45, in init
self.ensure_valid_file()
File "/Users/luketimmerman/Animation/manim/manimlib/mobject/svg/svg_mobject.py", line 63, in ensure_valid_file
self.file_name)
OSError: No file matching files/PsiCreatures_happy.svg in image directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/luketimmerman/Animation/manim/manimlib/extract_scene.py", line 155, in main
scene = SceneClass(**scene_kwargs)
File "/Users/luketimmerman/Animation/manim/manimlib/scene/scene.py", line 53, in init
self.construct()
File "conversation.py", line 70, in construct
psi_creature = PsiCreature()
File "conversation.py", line 44, in init
SVGMobject.init(self, mode="happy", file_name=svg_file, **kwargs)
File "/Users/luketimmerman/Animation/manim/manimlib/mobject/svg/svg_mobject.py", line 45, in init
self.ensure_valid_file()
File "/Users/luketimmerman/Animation/manim/manimlib/mobject/svg/svg_mobject.py", line 63, in ensure_valid_file
self.file_name)
OSError: No file matching assets/PsiCreatures_happy.svg in image directory
Any ideas? Does it have something to do with the fact that it is trying to work with the assets folder? Because this folder is no longer where those svg images are stored.
Thanks!

The files folder is meant to be in the directory that you called your python program (presumably the same directory as conversation.py

Ok, thank you so much! That got it to play, but now there is a different issue: it looks nothing like the image that I made using the InkScape program. Any suggestions on how to fix that? I tried using it with Grant's Pi Creatures, and that worked perfectly, so it must be something with my file or code, maybe?
Thanks!

I'm not sure, but my guess is that it's a SVG file problem, since if I remember correctly manim uses its own SVG parsing code. This works fine on LaTeX-generated SVG but most likely not on any SVG.

Ok thanks for the clarification. Is there somewhere you could point me that would show me how to generate my svg file using LaTex? Or perhaps somehow convert my .svg to be compatible with the manim code?
Thanks again for all of your help! I really appreciate it!

The .tex file generates a .dvi file using the latex command, which is used to generate the .svg file using dvisvgm. This is in tex_file_writing.py. The SVG parsing part is at the definition of SVGMobject here. It only handles <defs>, <g>/<svg>/<symbol>, <path>, <use>, <rect>, <circle>, <ellipse>, and <polygon>/<polyline>.

All that my PsiCreature is built from are paths and ellipses, so I'm not sure if that's the problem. So I found the image that Grant uses (PiCreatures_plain.svg) and opened it with just the standard TextEdit Program. It looks as if Grant used Adobe Illustrator to construct the image, and then used an SVG Export plug In to export the file. Do you think that if I rebuilt the image using Illustrator instead of InkScape that it would render correctly? For reference, I have attached the code I received from PiCreatures_plain.svg

Here is my code that I get for my PsiCreatures_happy.svg also:

<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.63261527"
inkscape:cx="213.73446"
inkscape:cy="398.71679"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
inkscape:window-width="1440"
inkscape:window-height="805"
inkscape:window-x="0"
inkscape:window-y="23"
inkscape:window-maximized="0" />

rdf:RDF
<cc:Work
rdf:about="">
dc:formatimage/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>

Sorry, it looks all of the code wasn't posted. Let me try again. If it doesn't post this time, my question about building the file in Adobe Illustrator still stands.

I'm not sure of that, but if PiCreatures_plain works on your PsiCreature class, I guess using Adobe Illustrator would make it work. If you want you can upload the SVG file to pastebin or GitHub gist.

Ok, thanks! I'll try it and see!

I solved this problem by creating an assets/PiCreature folder in the current directory and put all svg files in it

All but Picreatures are missing except for plain


Allow Manually Controlling Callbacks

Hi,
I have a lot of ActiveModel documents I don't want indexed - almost 80% of my records.  I tried removing the include Tire::Model::Callbacks, but then get an undefined method error:
`undefined method `_run_update_elasticsearch_index_callbacks' for ...
from this line https://github.com/karmi/tire/blob/master/lib/tire/model/search.rb#L128
Is there some way around this?  How can I disable callbacks and take control over when update_index is called?  Otherwise, is there some way to filter records that are getting indexed?  For instance, I only want articles with a state of published to be indexed.
Thanks!
-Mario

For me, the "undefined method _run_update_elasticsearch_index_callbacks' for ..." doesn't appear, but the problem is that the index is not actually updated .. i tried to query the index through curl with the latest inserted record .. but no results are found ..


On my Fedora 28 I had to install SQL Server 2019

SQL Server 2017 had dependency issues:
Error:
Problem: conflicting requests

nothing provides openssl < 1:1.1.0 needed by mssql-server-14.0.1000.169-2.x86_64

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

ID: 3b543b57-f397-779d-6fe4-1bc2ecd3bdca
Version Independent ID: e274a0f3-ec74-e809-f4d3-515782b29a92
Content: Get started with SQL Server on Red Hat Enterprise Linux - SQL Server
Content Source: docs/linux/quickstart-install-connect-red-hat.md
Product: sql
Technology: linux
GitHub Login: @rothja
Microsoft Alias: jroth

@rothja Hi Jason, can you please process this SQL-Linux Issue 2285. Perhaps the article needs to list an additional dependency that not all computers have?

@hareldvd Hello, and thanks for the feedback. As I understand it, this was an issue installing on Fedora? Unfortunately, we have only tested and supported Red Hat, Ubuntu, & SLES. Although Fedora is closely related to Red Hat, it is possible that it is ahead of the 7.* versions that we support of RHEL. I am assuming that as we support the most recent releases of RHEL, that Fedora installations will work smoothly as well. I will close this git issue, but you are welcome to respond and follow-up on this issue with any questions or comments. Thank you!!


Implement prost::Message for google.protobuf.Timestamp

Fixes #1171

This PR doesn't make sense to me. prost_types::Timestamp already implements trait Message: https://docs.rs/prost-types/latest/prost_types/struct.Timestamp.html#impl-Message-for-Timestamp
This PR is submitted completely as it fails to compile.


API support

Is there any way I can use this extension in the img2img API? Similar to how we include control net scripts in img2img API requests.

Yes. I think. There was a bug I just fixed where the script had the wrong name. But if you add 'face swapper' to alwayson_scripts it should work.
(I'm trying to figure out how the API works, never used it more than a simple txt2img test. I'll post more here if I get anything to work.)

I'm new to all these.
Can you give me any particular example of how to add 'face swapper' to alwayson_script? That would be really helpful to me.

I got stuck trying to understand why the webui didn't decode the image sent via the api, until I checked the code and saw that it simply doesn't... anyway, I pushed an update that should fix it.
Here is a small example on how to use it. It loads an image called face.jpg and place it on a super hero.
(It uses this librart: https://github.com/mix1009/sdwebuiapi)
The "args" to "face swapper" are the booleans; Enabled, Replace original, Restore faces and then the image.
Small warning. This is literary the second attempt I've ever done at using the API, so don't take this as a definite guide on how things can/should work. :)
import webuiapi
from PIL import Image
import base64

# create API client
api = webuiapi.WebUIApi(host='localhost', port=7860)

with open("face.jpg", "rb") as img_file:
    face = base64.b64encode(img_file.read()).decode('utf-8')

result1 = api.txt2img(
        prompt="photo of a cool superhero, funny hair",
        negative_prompt="mask, nsfw",
        steps=25,
        width=512,
        height=768,
        sampler_index="Euler a",
        cfg_scale=7,
        seed=-1,
        alwayson_scripts = {
            'face swapper': {
                    'args': [True, True, True, face],
                }
            }
        )

result1.image.show()

Thank you so much, you really made my day!!
It worked 👍

Hi. Just wanted to give a heads up since you were using the API.
I'm changing the image input so it will support masks for some simple editing. But that will break the API.
It mostly works as before with a slight tweak. Instead of sending the face image, you need to send "image" and "mask". But it is ok to set mask to None.
        alwayson_scripts = {
            'face swapper': {
                    'args': [True, True, True, {'image': face, 'mask': None],
                }
            }
        )

Hope it doesn't cause too much problems for you.


Validate bytes based on ser_json_bytes

Change Summary
ser_json_bytes transforms values (with base64 encoding) during serialization. But validation doesn't do a complementary base64 decode, so a serialization round-trip into the same model type yields an unequal object.
Related issue number
None for this directly. Other users have mentioned base64 decoding, though: https://github.com/pydantic/pydantic/issues/7000#issuecomment-1669967897
Checklist

[X] Unit tests for the changes exist
[ ] Documentation reflects the changes where applicable
[ ] Pydantic tests pass with this pydantic-core (except for expected changes)
[X] My PR is ready to review

Selected Reviewer: @davidhewitt

please review

CC @jcharum

I'm also interested in accepting both standard and URL-safe base64 encoding. If this PR is acceptable, I plan to send a separate one for that: https://github.com/d8e-ai/pydantic-core/compare/validate-base64...d8e-ai:pydantic-core:validate-base64-any

Thanks for the PR! I fully support the use case and think this makes sense.
That said, I worry about silently breaking user code by changing the meaning of the existing option in this way. How about adding a new flag, e.g. json_bytes_encoding='base64' and preferring that over the existing flag?
Or we could add val_json_bytes so validation and serialization are controlled separately.

Either option works for me. I don't currently know of a use case where someone would want base64 encoding only and not decoding, so I'd lean towards the new bidirectional encoding flag. But maybe that use case exists, or maybe there's a pattern in other Pydantic config to follow (that I'm not familiar with)?
I'm happy to make changes for whichever you recommend! (And please feel free to make changes yourself, too, if you prefer.)

Having discussed with @sydney-runkle and @samuelcolvin, I think we would prefer to go with a new val_json_bytes option so that users who do have a use-case where they don't want to change validation can continue to use ser_json_bytes.
I agree that the bidirectional encoding flag is probably what most people actually need, so if you strongly want that I'd probably accept it; with the individual flags it should be an easy layer on top which just sets both of them (and we can error if it is set as well as either individual flag).
It's a shame to have the complexity of both forms, but hey, it's where we've ended up. It's possible we could consider deprecating the individual flags in V3.

Sounds good, I've switched to a new val_json_bytes. This should be ok for us; we're setting ser_json_bytes in a common place for many of our models so now we'll just set both.
I'm guessing there's some more work to do with the new config key (docs, Pydantic's ConfigDict). If this looks good I can open a PR on the other repo for that (maybe after the next release?). Or let me know if you normally handle these things differently.

I've created pydantic/pydantic#9770. I'm guessing it needs to wait until after the pydantic-core upgrade, otherwise a user may see this new option and be confused about why it doesn't work?

I've created pydantic/pydantic#9772 to address the test-pydantic-integration failure.

Well, I think I'm stuck 😅. pydantic/pydantic#9772 has test failures saying the new documented error type isn't in pydantic-core, and this PR has a CI failure saying the new error type isn't documented there.

This looks good to me. We should get @davidhewitt's feedback on https://github.com/pydantic/pydantic-core/pull/1308#discussion_r1691988887 before we merge 👍


[BUG] update/fix initializeArrayWithRange

[BUG] update/fix initializeArrayWithRange
Expected Snippet Behavior
Behavior should stay consistent. if start = 0 and 0 gets mapped/initialized I believe end should also mapped/initailized like so. If both arguments are inclusive, or inclusive and/or exclusive I think it should say in the description. My assumption however is that the function arguments start and end are both inclusive
initializeArrayWithRange(5) //-> [0,1,2,3,4,5]
initializeArrayWithRange(7, 3) //-> [3,4,5,6,7]

Current Snippet Behavior
However that is not the case and when the arrayRange gets initialized only the start is initialized with the array
const initializeArrayWithRange = (end, start = 0) =>
  Array.from({ length: end - start }).map((v, i) => i + start);
// initializeArrayWithRange(5) -> [0,1,2,3,4]
// initializeArrayWithRange(7, 3) -> [3,4,5,6]

Possible Solution
Simple (end + 1) fix should do the trick
const initializeArrayWithRange = (end, start = 0) =>
  Array.from({ length: (end + 1) - start }).map((v, i) => i + start);
// initializeArrayWithRange(5) -> [0,1,2,3,4,5]
// initializeArrayWithRange(7, 3) -> [3,4,5,6,7]

Ok, so we're making the range end inclusive to deal with a corner case. I'm all for that, I'll merge the PR fixing this right away.

Fixed in #255.


Symbols show as odd chars in prompt

I'm sure this isn't an OMZ-exclusive issue, but perhaps it can be solved at that level. I'm using the sorin theme, but cannot get any of the symbols to show up at the command line prompt when SSHing into my mac from a windows machine running putty. I have tried every single combination of settings in putty, including making sure UTF was set (per the only suggestion from google I could find).
Is this futile?

Just ran into similar issue. Turns out set letter space properly will fix the prompt display in Inconsolata.

Tried a lot of fonts (from https://github.com/powerline/fonts) Dejavu Sans Mono works, as told by @kyounger Out of the 5 other I tried, only Dejavu Sans Mono works.

I dug through the link posted by @kyounger. Here's a recap of what worked for me:
I added a new value to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink
as indicated on https://msdn.microsoft.com/en-us/goglobal/bb688134.aspx to link backup fonts to supply characters missing from a base font. I linked DejaVu Sans Mono to Source Code Pro. After a relogin on windows the issue was fixed.


Improved .gitignore

I generated the .gitignore from https://www.gitignore.io/api/node%2Cmacos%2Cwindows

Thanks a lot for you support @NLincoln 👍


updated build script

This is to convert CRLF to LF format when you run yarn docs:api so that the CircleCI pipeline can work smoothly.

This is for a personal note: The first build passed, after I updated the regex expression. Now will make a second commit to this branch with the updated docs in LF format. By running yarn docs:api

I have checked, all the files that were committed in the docs api folder are of LF type now.

I think we should enforce LF as line-endings for local development. This change can (and did in this PR) introduce CRLF into the generated markdown which will cause CI failures and noisy diffs.

I think we should enforce LF as line-endings for local development.

@eps1lon As far as I remember, we have already try that. It's a dead end.
https://github.com/mui-org/material-ui/blob/master/.gitattributes

I think some parser is actually introducing CLRF as line-endings because it runs on windows. It's not actually detecting what line-ending is used. For example https://github.com/mui-org/material-ui/blob/905a96119e474731b8e7add6320d3484377bf242/docs/src/modules/utils/generateMarkdown.js#L76 tag.description will contain CLRF even if the actual source has only LF.
We need to investigate how we can normalize the markdown generation across platforms. Otherwise this will always cause noisy diffs and CI fails.

I tried searching it else-where as well, where ever \n this regex expression was being used while markdown generation and the only file where this is being used is docs/src/modules/utils/generateMarkdown.js on line 76 as @eps1lon  mentioned. Should I update this regex pattern as well?

That won't be enough I think. We also need to be able to tell react-docgen to pass \n as a lineTerminator option to recast which is not possible at the moment.
I think the best option is to let a maintainer run yarn docs:api on PRs that are created by windows contributors.
Is adding a linux environment for development not an option for @adeelibr ?

@eps1lon I think for now maybe the maintainer can run yarn docs:api for windows user, what i'll do at my end is install a portable linux version on my system. So that I can contribute more effectively. :)
Your thoughts @oliviertassinari ?

I have tried to quickly set up a windows environment with no luck. I wish the windows support story was better than that.

https://insights.stackoverflow.com/survey/2018/

@adeelibr I'm merging this pull request as it's a good step forward.

So what's the next step that I should take.

I would say fixing the Windows support would be awesome.

should I delete that one & create a new one.

No need, you can push force on it, erasing the history.


The documentation link in the README.md is broken

And I can't find any use case or documents from the web.

This link works https://docs.rs/rustbox/0.9.0/rustbox/


Quantization of LeNET model using MNIST dataset breaks during model freeze

I'm trying to train Lenet-net using the MNIST dataset from here and to quantize its float model. My steps are the following:
Firstly, I have applied MNIST dataset to train the classifier which works fines.
python3 train_image_classifier.py --dataset_dir=tmp/mnist --dataset_name=mnist --train_dir=train/mnist --model_name=lenet --clone_on_cpu=true --max_number_of_steps=50000 --quantize_delay=40000

Secondly, I have exported the trained model to the pb format and it works well.
python3 export_inference_graph.py --dataset_dir=tmp/mnist --dataset_name=mnist --train_dir=train/mnist --model_name=lenet --checkpoint=train/mnist/model.ckpt-50000 --quantize --output_file=mnist.pb

Finally, I try to freeze graph using
freeze_graph --input_graph=mnist.pb --input_checkpoint=train/mnist/model.ckpt-50000 --output_graph=mnist_frozen.pb --input_binary=true --output_node_names=Predictions/Reshape_1

but the following error occurred
InvalidArgumentError: Restoring from checkpoint failed. This is most likely due to a mismatch between the current graph and the graph from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Assign requires shapes of both tensors to match. lhs shape= [5,5,3,32] rhs shape= [5,5,1,32]

Please can you advise how to freeze it correctly?
BTW, I have tried other models like CIFAR10 and all process works fine.

@peter197321,
In order to expedite the trouble-shooting process, could you please provide the complete code to reproduce the issue reported here and also the TensorFlow version you are using. Thanks!

Tools version:
Python= 3.7.7, TensorFlow=1.15.3, Numpy=1.16.4, contextlib2=0.6.0, pillow=7.1.2
Sources:
**```
https://github.com/tensorflow/models/blob/master/research/slim/train_image_classifier.py
https://github.com/tensorflow/models/blob/master/research/slim/export_inference_graph.py

freeze_graph and tflite_convert tools taken from Anaconda3 environment

I guess I encounter an error in script export_inference_graph.py where image-grayscale and model are needed so I've changed hard-coded the number of channels to 1  for my case.
On another hand, I used to add explicit control switch --use_grayscale for a newer version.
Now it seems it's working.


Warning on non-empty tags, but tags are not required (openapi 3)

Validating the following yields: Warning: OpenAPI object should have non-empty tags array.
{
  "openapi": "3.0.3",
  "info": {
    "version": "1.0.0",
    "title": "test"
  },
  "servers": [
    {
      "url": "/"
    }
  ],
  "description": "test",
  "components": {},
  "paths": {}
}

However, a tags array is not required, per
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#oasDocument
Therefore, shouldn't there be no warning, or at the least, a configuration option to suppress it?

Agreed, this is not ideal behavior. We will look into fixing it soon. In the meantime, if you feel inclined to open a PR - feel free.

The warning about tags comes from our integration with Spectral.  But all the Spectral rules are configurable and I have just added documentation that describes how to do this.
In this particular case, you can just create a .spectral.yaml file in the directory where you run the validator with the following content:
extends: ibm:oas
rules:
  openapi-tags: info

This will change the tags warning to an "info" message.  If you'd rather not see the message at all, just change info in the above to off.

Thanks. Would be nice if the default configuration was consistent with the formal specification, but nonetheless, good to know that with manual reconfiguration we at least have a way forward


Fix scala documentation for updateMany

The old documentation seems to have been copied from updateOne. This makes the docs match the docs from driver-reactive-streams.

Thanks @DrPhil


Ability to transfer servers between nodes

It should be possible to transfer servers between nodes easially from the panel.
A first idea was to select the new node, ip and port, zip up the server, transfer it to the new node, unzip it and set it up. Also keep the old server backed up or validate everything with some checksum.

Duplicate of #18

Oops, didn't see that one, sorry.