Path is incorrectly parsed on Windows

When running dart run lint_staged, I get the following error on Windows
lit_staged:git - git log -1 --pretty=%B
chore: add infinite_scroll_pagination, graphql
lit_staged:git - git diff --name-only -z --diff-filter=ACMR --staged
lib/domain/graphql/graphql_client.dart
lit_staged:git - Staged files: [lib\domain\graphql\graphql_client.dart]
lint_staged:config - Found config: {lib/**.dart: just precommit}
lint_staged:group - lib/**.dart matched files: [lib\domain\graphql\graphql_client.dart]
⠋ Preparing lint_staged...
lit_staged:git - git status -z
M lib/app.dartAM lib/domain/graphql/graphql_client.dart M lib/feature/home/view/home_page_shell.dart M lib/navigation/navigation.dart M pubspec.lock M pubspec.yaml M windows/flutter/CMakeLists.txt?? lib/feature/community_workouts/?? lint_staged/
lit_staged:git - Found partially staged files: [lib/domain/graphql/graphql_client.dart]
lit_staged:git - git diff --binary --unified=0 --no-color --no-ext-diff
--src-prefix=a/ --dst-prefix=b/ --patch --submodule=short --output .git\lint_staged_unstaged.patch -- lib/domain/graphql/graphql_client.dart
lit_staged:git - git ls-files --deleted
lit_staged:git - Deleted files: []
lit_staged:git - git stash create
a8b1cabdfeb9af3f3a4e1a75cbe09e12376bcdf2
lit_staged:git - git stash store --quiet -m lint_staged automatic backup a8b1cabdfeb9af3f3a4e1a75cbe09e12376bcdf2
✔ Prepared lint_staged                    291ms
⠋ Hide unstaged changes...
lit_staged:git - git checkout --force -- lib/domain/graphql/graphql_client.dart
✔ Hide unstaged changes                   38ms
⠋ Run tasks for staged files...
lint_staged:run - just precommit lib\domain\graphql\graphql_client.dart
just fix lib\domain\graphql\graphql_client.dart
dart fix --apply libdomaingraphqlgraphql_client.dart
File doesn't exist: f:\dev\flutter_scaffold\libdomaingraphqlgraphql_client.dart

As we can see, File doesn't exist: f:\dev\flutter_scaffold\libdomaingraphqlgraphql_client.dart, looks like the \ got escaped. However, the output from git uses /. I found in git.dart that we used normalize when returning the stage files on Windows, it replaces / with \ and seems to break the path. Removing normalize fixes the issue.
Not sure if this issue is with normalize (could be the expected output on Windows). However, would it break things if we remove normalize?

Nice track, normalize is not necessary here, it was added in a deprecated feature.

@hyiso Great, I created a PR, would be great if you can merge it! Thanks

v0.4.3 is released


Feature request - support default values for topic config items after expert mode edit

When a topic is created it is created with 3 config values set iirc. When it is edited in expert mode this rises to 12.
      # These are the default values as if edited in expert mode and only retention bytes changed.
      "cleanup.policy"                      = "delete"
      "delete.retention.ms"                 = "86400000"
      "max.compaction.lag.ms"               = "9223372036854775807"
      "max.message.bytes"                   = "2097164"
      "message.timestamp.difference.max.ms" = "9223372036854775807"
      "message.timestamp.type"              = "CreateTime"
      "min.compaction.lag.ms"               = "0"
      "min.insync.replicas"                 = "2"
      "retention.bytes"                     = "1073741824" # 1GB (default -1)
      "retention.ms"                        = "604800000"
      "segment.bytes"                       = "104857600"
      "segment.ms"                          = "604800000"

When I set up Terraform in the development phase I was ok with this, though it took a long time to work out what was causing such large numbers of differences between topics. I also had to take a leap of faith that it was ok to update all topics with these values.
Now however there appear to be 2 more. A topic has been edited in the console to set the retention.ms and now Terraform reports that it it needs to make the following changes:
          - "message.timestamp.after.max.ms"      = "9223372036854775807" -> null
          - "message.timestamp.before.max.ms"     = "9223372036854775807" -> null
          ~ "retention.ms"                        = "-1" -> "604800000"

But the provider does not support setting it back to null. I am assuming the API does not allow for this. When I run Terraform it fails with this error:
Error: error updating Kafka Topic "lkc-6zrxj/dlq-oracle-erp.fct.customer.updates": reset to topic setting's default value operation (in other words, removing topic settings from 'configs' block) is not supported at the moment. Instead, find its default value at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/resources/confluent_kafka_topic and set its current value to the default value.

Per the advice I updated the code but that now reports that 263 topics need to be updated.  This is somewhat excessive! In practice I know that nothing will be different if I do this but it is another leap of faith and given that we are now in production it is not something I can simply do.
So, I would like a feature to be able to set a config item to null (or not specify it) and for Terraform to not attempt to change it if the config item value is null or not specified or equals the default value.
In this case I could specify "message.timestamp.after.max.ms" = null or leave it out of the config.
This feature will greatly simplify onboarding and code maintenance. The only fly in the ointment is how to keep the provider up to date with new defaults.

The API does support this now as far as I can tell: https://docs.confluent.io/cloud/current/api.html#tag/Configs-(v3)/operation/deleteKafkaTopicConfig


App config fix

Creating a pull request for the missing app.config file in the Core.SiteUsageReport solution.
Please see if I haven't screwed something up with the commit/revert to the dev branch below... Im still getting my head around Git/GitHub.

It's also missing in your upa property sync sample.
On Wed, Feb 25, 2015 at 11:03 PM -0800, "Radi Atanassov"<EMAIL_ADDRESS>wrote:
Creating a pull request for the missing app.config file in the Core.SiteUsageReport solution.
Please see if I haven't screwed something up with the commit/revert to the dev branch below... Im still getting my head around Git/GitHub.
You can view, comment on, or merge this pull request online at:
https://github.com/OfficeDev/PnP/pull/483
-- Commit Summary --

Created main app with code to get and show info on the current site collection
Added & Cleaned up web.config
Added the App Event Receiver to the manifest.


refind: bumped to 0.13.1

Updated refind to 0.13.1
Existing package

[x] I am the maintainer of this package.


Patch 1

Checklist

Please note that in case of below checklist not updated accordingly, the maintainers have the right to immediately close your pull request.

[ ] You created a branch from dev branch.
[ ] You PR is raised on dev branch and not onmaster.
[ ] Blog follows Blog Guidelines.
[ ] You have read the Contribution Guidlines before creating this PR.
[ ] Checked for any duplicate blog entry.
[ ] Checked for all grammatical errors in the blog.
[ ] You have not published the blog content anywhere else on the internet on platforms like medium, dev.to etc.
[ ] The content is not copy-pasted from anywhere else on the Internet.

Description of change

Author Details for Blog Post Entry

@mayankchaudhary26 Please go through CONTRIBUTING and Blog Guidelines before raising a PR.


Allow sorting by cost till next achievement or include on bottom infobar

At my current stage buying buildings alone is not very cost effective, so I pretty much only buy if it means I can jump up to claim another achievement.
I currently mouse through all the buildings and look at the cost till next achievement on each one to decide if I should buy.
I'd like an option to sort the building list to keep the building with the lowest cost to gain another achievement at the top. Alternatively my purpose would be served by showing the "cost to next achievement" on the bottom infobar so I don't need to mouse over all of them.

I don't want to add this information to the bottom bar as I feel that that bar is already quite full.
Personally I think the best (and least intrusive) way to show this data is by adding a section to the statistics page which updates every tick and displays the data for each building. This should be do-able.

Agree that the bottom bar is already full. A section on the statistics page would work, but I like the idea of a new sort option. Added a PR in case we decide this is the way to go.

Just had a quick look at #848, seems like a good addition.
Will take a better look tomorrow and probably merge it after. Good chance to also check out your work on the merge-workflow.
Will keep this issue open though as I believe adding this info to the statistics page is also something we should do before the next release.
Considering we already have the calculations that are necessary for this, it should be fairly trivial to add this to the statistics page.

Although #848 adds sorting by next achievement, I will keep this issue open to track progress on adding the info on next achievements to the statistics page


Reach out to community for PyPI translations

Groups to contact:

OTF's Localization Lab which is "looking for translators and projects!"

The PSF's Translation WG which aims to do translations for Python & Python documentation in general.

I've now reached out to both those groups.


Support HPA on memory resources

apiVersion: autoscaling.nebula-graph.io/v1alpha1
kind: NebulaAutoscaler
metadata:
  name: nebula-autoscaler
spec:
  nebulaClusterRef:
    name: nebula
  graphdPolicy:
    minReplicas: 2
    maxReplicas: 10
    metrics:
    - type: Resource
      resource:
        name: cpu
        target:
          type: Utilization
          averageUtilization: 80
    - type: Resource
      resource:
        name: memory
        target:
          type: Utilization
          averageValue: 80
    - type: Object
      object:
        metric:
          name: nebula_graphd_num_queries_per_second
        describedObject:
          apiVersion: v1
          kind: Service
          name: nebula-exporter-svc
        target:
          type: Value
          value: 3k
    behavior:
      scaleDown:
        stabilizationWindowSeconds: 300
        policies:
        - type: Percent
          value: 100
          periodSeconds: 15
      scaleUp:
        stabilizationWindowSeconds: 0
        policies:
        - type: Percent
          value: 200
          periodSeconds: 15
        - type: Pods
          value: 4
          periodSeconds: 15
        selectPolicy: Max
  pollingPeriod: 30s


GH-364 add openssl devel package (if version >=1.1.1 exists)

roc-streaming/roc-toolkit#364
@gavv , not sure if I should add it to the toolchain-* Dockerfiles

No need to add it to toolchains, those images are for crosscompilation, native libs are not needed.
For the same reason, it shouldn't be added to env-android.
Also please remove it from env-ubuntu-minimal, this image is for testing environment without preinstalled libs.

Also please remove it from env-ubuntu-minimal, this image is for testing environment without preinstalled libs.

Are you sure about ubuntu-minimal? It already has libpulse-dev and libasound2-dev.

TBH I don't remember why it has them, but it doesn't have other libs.
Maybe because we can't really work with alsa and pulse different from installed on system.
We should check this, maybe we can remove them actually.

No need to add it to toolchains, those images are for crosscompilation, native libs are not needed.
For the same reason, it shouldn't be added to env-android.
Also please remove it from env-ubuntu-minimal, this image is for testing environment without preinstalled libs.

done


Replace true on main router node

Hi,
Just figured out after 3 hours of headache that having the <router-view></router-view> inside the application template and this application setup with the option replace set to true(which is the default behaviour now) leads to child components not working properly (only created hook is called).
So maybe think to add this warning into your upcoming documentation.
Cheers

Is it because your main template is simply <router-view></router-view? If so that will be fixed with Vue core's next release.

Should now work properly in 0.12.5


Vote app

Based on a talk with @sokra I am creating an issue for a new vote mechanism.
Here is an initial implementation, just to demonstrate the behaviour (it's not working on mobile yet).
What I wanted to achieve here is to reduce number of arrows for voting and to be mobile friendly. With this new system there would be only two buttons, up and down. If you click on a button you would increment your vote for 1. But if you would like to vote for a lot more, you can just hold down a button and amount for a vote will increase over time.
Current implementation (left number is your current vote, right number is increment):
1-5      =>  +1
5-10    =>  +2
10-40  =>  +5
40-70  =>  +10
70+     =>  +15
What do you think?

I like this. It reminds me a bit more of UserVoice (or services like that), where you get 3 points you can divide between feature requests. They also allow you to spend those 3 points on 1 feature, and have a simple up and down vote button. If you vote twice, it will say "+2" between the vote buttons.

I also like this 👍

Great will implement it tomorrow

I think that I should wait for #447 to be merged and then work based on this. @pksjce already assumed in her design that we will have one button.

I added this vote app logic to PR #447


Can't run Getting Started example

I came across the Spring Cloud Function site (https://docs.spring.io/spring-cloud-function/docs/3.1.3/reference/html/spring-cloud-function.html#_getting_started) and thought it looked neat. I wanted to follow the getting started guide, since it looked like a tutorial designed for Spring beginners, and try out deploying a function to GCP, which is the public cloud platform I'm most familiar with.
I followed the instructions on that page. Something immediately seemed off, as if the instructions in the Getting Started guide were out of date, because the first command I'm instructed to run is mvnw clean install despite there being no mvnw file in the root of the cloned repo. I did understand though that I should just run mvn clean install instead, the idea being it would use my system Maven instead of a wrapper from the repo.
After that, it says to run java -jar spring-cloud-function-samples/function-sample/target/*.jar, but when I run that, I get the error: Error: Unable to access jarfile spring-cloud-function-samples/function-sample/target/*.jar. It looks like that command is something I'd run to run a JAR that should exist at that point. But there's no JAR file there and there's no target directory either.
I decided to cd into one of the specific example directories and try other commands to just run the code as is, without trying to build an artifact like a JAR. I chose "function-sample" because it looked to be the most basic one. I tried running mvn install from that directory and got an error:
Could not resolve dependencies for project io.spring.sample:function-sample:jar:2.0.0.RELEASE: org.springframework.cloud:spring-cloud-function-compiler:jar:3.2.0-SNAPSHOT was not found in https://repo.spring.io/libs-snapshot-local during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of spring-snapshots has elapsed or updates are forced

I notice that it also has a build.gradle file though, and a gradlew wrapper, so I try ./gradlew and I get the output:
FAILURE: Build failed with an exception.

* Where:
Build file '/home/matt/code/github.com/spring-cloud/spring-cloud-function/spring-cloud-function-samples/function-sample/build.gradle' line: 21

* What went wrong:
A problem occurred evaluating root project 'function-sample'.
> Plugin with id 'spring-boot' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 0.548 secs

It looks like it's supposed to use a Spring Boot plugin, but it fails to do so. I remembered reading in Gradle tutorials that you often start an application locally using ./gradlew runBoot so I tried that, but got the same error.
Java version:
> java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)

I'm using 8 intentionally instead of a more recent version because in build.gradle of the sample I wanted to run, it says:
sourceCompatibility = 1.8
targetCompatibility = 1.8

So it appears that the code can only use Java 8. I uninstalled Java 11 that I had installed via APT, installed sdkman, and used sdkman to install the latest HotSpot OpenJDK for Java 8.

That has actually been fixed in 3.2. We'll back port it to 3.1 as well. The old compiler module somehow was lingering there while we no longer distributing it. So consider pulling the lates sample from the main branch

You can also checkout this presentation - https://springone.io/2020/sessions/functions-implement-once-execute-anywhere that will get you up and going


Pipeline support

Supersedes #3.
Pipeline support is partial as it only compresses the full build log, but not the step specific build logs.

@oleg-nenashev Merging now but would appreciate a review nonetheless, there won't be an immediate release.


Refactor WIT system API to match the host side traits

Motivation
The guest side has three separate APIs: contract system API, service system API and view system API. This does not match the host side, which has a parent BaseRuntime trait and ContractRuntime and ServiceRuntime traits. Not only does this make maintenance a bit more complicated, but it also prevents moving the write_batch system API to be contract-specific.
Proposal
Refactor the WIT system APIs to follow the host layout, making use of the ability to include WIT interfaces in worlds so that the base runtime is only defined once, and also moving the write_batch system API to be contract specific.

See also #1976


Run uglify in parallel, using a workerpool

This converts uglify to run in parallel, using some of the same conventions as https://github.com/babel/broccoli-babel-transpiler/pull/114 and https://github.com/babel/broccoli-babel-transpiler/pull/127.
I had to change the test environment to use node, since otherwise jest uses the browser environment which fails for workerpool.
TODO:

docs,
debug logging
unit test for processFile()

released as 2.1.0


use 1.3.2 html2canvas

@AsherSorensen why was this closed? Is it not possible to upgrade html2canvas?


How to run your tests?

I'm a complete PHP noob, so not sure how you run your tests, but would like to add some integration tests to this project but not sure how you're currently testing this, any tips?

Cool, thank you for being willing to contribute!
First, you will need to create your own configuration file by copying phpunit.dist.xml to phpunit.xml and filling in the fields you need for testing (i.e. STANDARD_ENDPOINT, GCM_API_KEY etc.). Then, once you have phpunit downloaded, run:

for all tests: php phpunit.phar
for only one test file: php phpunit.phar tests/EncryptionTest.php
for only one test method: php phpunit.phar --filter "/::testPadPayload( .*)?$/" (regex)

Some tests have a custom decorator @skipIfTravis. The reason is that there's no way in Travis to update the push subscription, so the endpoint in my phpunit.travis.xml would ultimately expire (and require a human modification), and the corresponding tests would fail. But locally, these tests are handy.
Writing PHPUnit tests is pretty straightforward, so you'll likely get most of it by looking at the existing tests. For more advanced testing, their documentation seems exhaustive.

This is awesome, thank you :)


operator kubeturbo-certified (8.8.0)

Hi,
I tried to re-trigger the pipeline,but it still failed with preflight trigger.
So I closed and re-open it to do further troubleshooting.


Ignore .vs folder wherever it occurs

Just checking back in after a couple of days. Do you have an estimate for when someone will be able to take a look at this PR?
The same question for #563, #564, and #565.

Is there any idea when someone can take a look at these PRs?


Add Sliding Window Algorithms

Would like to add Sliding Window based algorithms as a part of Hactoberfest 2022

please assign me this issue

@SR-Sunny-Raj, I can explain it very well with code, please assign it to me under hacktoberfest.

Sorry to inform but this repository has been excluded from hacktoberfest. So inorder to make your PR count towards hacktoberfest, request you to make your contribution in this repository -> https://github.com/SR-Sunny-Raj/Hacktoberfest2022-for-all


Fix Deprecated Github Commands

Duplicate of #23

I reverted my merging of #23 so that we could potentially fix CI before merging.


Optimize computation of manufacturer donation volume.

This pull request addresses https://github.com/rubyforgood/diaper/issues/1308.
Optimize computation of manufacturer donation volume by using ActiveRecord instead of Ruby Enumerables, as per @armahillo's recommendation.
Type of change

Performance optimization

How Has This Been Tested?
Unit tests all passed.

@keithrbennett does this have an existing test?

Yes, in manufacturer_spec.rb:
  context "Methods" do
    describe "volume" do
      it "retrieves the amount of product that has been donated by manufacturer" do
        mfg = create(:manufacturer)
        create(:donation, :with_items, item_quantity: 15, source: Donation::SOURCES[:manufacturer], manufacturer: mfg)
        expect(mfg.volume).to eq(15)
      end
    end
  end
end

Excellent, thank you, @mdworken.


CUDA not executing during runtime

CUDA for some reason fails to execute when running, I have the correct version of PyTorch and also have an NVIDIA driver installed on the system.
Thrown as a result of running the command:
python pretrain_DAMSM.py --cfg cfg/DAMSM/book.yml --gpu 0
         'B_DCGAN': False,
         'CONDITION_DIM': 100,
         'DF_DIM': 64,
         'GF_DIM': 128,
         'R_NUM': 2,
         'Z_DIM': 100},
 'GPU_ID': 0,
 'RNN_TYPE': 'LSTM',
 'TEXT': {'CAPTIONS_PER_IMAGE': 1, 'EMBEDDING_DIM': 256, 'WORDS_NUM': 18},
 'TRAIN': {'BATCH_SIZE': 48,
           'B_NET_D': True,
           'DISCRIMINATOR_LR': 0.0002,
           'ENCODER_LR': 0.002,
           'FLAG': True,
           'GENERATOR_LR': 0.0002,
           'MAX_EPOCH': 600,
           'NET_E': '',
           'NET_G': '',
           'RNN_GRAD_CLIP': 0.25,
           'SMOOTH': {'GAMMA1': 4.0,
                      'GAMMA2': 5.0,
                      'GAMMA3': 10.0,
                      'LAMBDA': 1.0},
           'SNAPSHOT_INTERVAL': 50},
 'TREE': {'BASE_SIZE': 299, 'BRANCH_NUM': 1},
 'WORKERS': 1}
/opt/conda/envs/dm_gan/lib/python3.6/site-packages/torchvision/transforms/transforms.py:220: UserWarning: The use o
f the transforms.Scale transform is deprecated, please use transforms.Resize instead.
  "please use transforms.Resize instead.")
Load filenames from: ../data/books/train/filenames.pickle (4625)
Load filenames from: ../data/books/test/filenames.pickle (1622)
Load from:  ../data/books/captions.pickle
31146 1
Load filenames from: ../data/books/train/filenames.pickle (4625)
Load filenames from: ../data/books/test/filenames.pickle (1622)
Load from:  ../data/books/captions.pickle
/opt/conda/envs/dm_gan/lib/python3.6/site-packages/torch/nn/modules/rnn.py:50: UserWarning: dropout option adds dro
pout after all but last recurrent layer, so non-zero dropout expects num_layers greater than 1, but got dropout=0.5
 and num_layers=1
  "num_layers={}".format(dropout, num_layers))
Load pretrained model from  https://download.pytorch.org/models/inception_v3_google-1a9a5a14.pth
Traceback (most recent call last):
  File "pretrain_DAMSM.py", line 350, in <module>
    dataset.ixtoword, image_dir, criterion)
  File "pretrain_DAMSM.py", line 87, in train
    words_features, sent_code = cnn_model(imgs[-1])
  File "/opt/conda/envs/dm_gan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/books-nn/T2I_CL/DM-GAN+CL/code/model.py", line 208, in forward
    x = self.Conv2d_1a_3x3(x)
  File "/opt/conda/envs/dm_gan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/opt/conda/envs/dm_gan/lib/python3.6/site-packages/torchvision/models/inception.py", line 433, in forward
    x = self.bn(x)
  File "/opt/conda/envs/dm_gan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/opt/conda/envs/dm_gan/lib/python3.6/site-packages/torch/nn/modules/batchnorm.py", line 107, in forward
    exponential_average_factor, self.eps)
  File "/opt/conda/envs/dm_gan/lib/python3.6/site-packages/torch/nn/functional.py", line 1670, in batch_norm
    training, momentum, eps, torch.backends.cudnn.enabled
RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED

It seems the issue is the forward part of CNN model. You may check whether the input ''imgs[-1]'' is correct. Another thing is to try the source code under the AttnGAN+CL folder, as my experiment for 'pretrain_DAMSM.py' was done using this version.

I fixed this, eventually I installed the correct version of CUDA toolkit on my machine, and a supported NVIDIA driver; still not entirely sure what the problem was though.


Website is blocked

Problem encountered on https://dotnet.microsoft.com/en-us/learn/aspnet/blazor-tutorial/run
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
When I run the project it won't load the website. It say it is not secure and that the connection is not private. When I clicked into the error message it says the certificates can not be verified. When setting up blazor I allowed the certificates so not sure why this is happening.

Did you follow the instructions down at the bottom?
Got an error?
If you receive an error message saying "Your connection is not private" with error code NET::ERR_CERT_INVALID, try to restart all browser windows so the new certificate can be picked up by the browser and run the application again.
If you can't resolve the issue you're having, select the I ran into an issue button below to get help fixing the problem.


Differences in image generation between DeepTrack 2.0 and 2.1

Hi!
We have noticed some differences between DeepTrack 2.0 and 2.1 in the way they generate images through dt.Sphere and dt.Brightfield features. The dependence of z resolution on generated images is different between both versions (Currently, we are adjusting the z resolution of the simulation, by setting the resolution parameter in dt.Brightfield to a vector of length 3). This seems to originating from the upscale parameter in dt.Brightfield, which in DT 2.1 doesn't seem to be working.
You can reproduce the issue in this colab notebook. If you set the version to DT 2.0 (by setting oldversion = 1), you can see that with upscale = 4, the z resolution doesn't affect the image generation. Instead using upscale < 4, the z resolution affects the sphere image generation. Whereas, In DT 2.1 the z resolution affects the image generation with any value of upscale.

Edit:
with the last update of DeepTrack, if I set resolution  = array_like[float, float, float]  in Brightfield
import deeptrack as dt

optics = dt.Brightfield(
        wavelength=633e-9,
        NA=1,
        resolution=[pix_size * 1e-6, pix_size * 1e-6, z_pix_size * 1e-6],
        magnification=1,
        refractive_index_medium=1.33,
        upscale=4,
        pupil = dt.GaussianApodization(sigma=apod_val),
        output_region=(0, 0, image_size[0], image_size[1]),
        )

I obtain this error
[/usr/local/lib/python3.7/dist-packages/deeptrack/optics.py](https://localhost:8080/#) in _process_properties(self, propertydict)
    350         radius = NA / wavelength * resolution * magnification
    351
--> 352         if radius > 0.5:
    353             required_upscale = np.ceil(radius * 2)
    354             warnings.warn(

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Using resolution = float, it works.

@BenjaminMidtvedt
On the first point, I agree. The crucial part will be to introduce a fix that works.
I'd set the names zpx (and have also xpx and ypx for consistency) and z_resolution.
On the second point, I'm ok also with this. Upscale seems ok.


String pattern correction

Contact Details
<EMAIL_ADDRESS>Issue category
Bugfix
Issue description
Certain string patterns in our API definitions do not comply with OpenAPI Specification definitions (single quotes and start and end delimiter are missing).
Issue reasoning
Correct sting pattern definitions to comply with OpenAPI Specification definitions (see also https://swagger.io/docs/specification/data-models/data-types/).
Request
Correct string patterns according to OpenAPI Specification definitions.
Proposed change
Examples AS-IS
pattern: camt\.053\.[0-9]{3}\.[0-9]{2}
pattern: '[A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}'

========
Example TO-BE
pattern: '^camt\.053\.[0-9]{3}\.[0-9]{2}$'
pattern: '^[A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}$'

Affected API's
Both
Code of Conduct

[X] I agree to follow this project's Contribution Guidelines

Metting Notes 26.9.24
Just documentary issue. Annotation of pattern changed in order to be compliant with OpenAPI specification. Pull Request will be prepared by @svenbiellmann.

Meeting Notes 31.10.24
The Pull Request has been approved and will be merged into V4.1.1.


add go.mod and go.sum

fix this error:
$ go build dockeragent.go
dockeragent.go:21:2: no required module provides package github.com/valyala/fasthttp: go.mod file not found in current directory or any parent directory; see 'go help modules'

Signed-off-by: Song Song Li<EMAIL_ADDRESS>

/assign @laoshanxi


could many edges between the two nodes be clustered to one edge?

Hi, I need some help, in my scenario, there are many edges between two nodes, it doesnot seem great, i want to cluster these edges between the two nodes into ONE edge, the nodes do not change, could i achieve it ? thank you !

I manually implemented this recently (code below, I'm extremely new, so there is undoubtedly room for improvement). But basically what it does it take in some nodes, gets all the connected nodes, gets the edges for each node in a node pair and intersects the edges to get the ones common to both. If it is greater than the limit it hides the intersected edges and creates a custom clustered edge (separate from the automatic ones normal clustering creates).
Then I have a network event where on click the process is run in sort of reverse to unhide all the hidden edges and then delete the clustered edge.
My specific implementation runs only when I'm unclustering a clustered node, but the general principles can be adapted to fit your specific case. I agree though that this would be a great feature to implement natively if at all possible.
    function clusterEdges(params) {
        // Takes in all subnodes of a cluster and clusters the edges if there are more than limit
        var limit = 4;
        var edgeUpdates = [];
        var i;
        for (i = 0; i < params.length; i++) {
            // Checking only non-commodity nodes
            if (params[i] >= 10000) {
                var connectedNodes = network.getConnectedNodes(params[i]);
                var initialEdges = network.getConnectedEdges(params[i]);
                var j;
                for (j = 0; j < connectedNodes.length; j++) {
                    if (connectedNodes[j] >= 10000 && params[i] != connectedNodes[j]) {
                        var connectedNodeEdges = network.getConnectedEdges(connectedNodes[j]);
                        // Basically get an intersection of connected edges between two nodes
                        var commonEdges = initialEdges.filter(function(n) {
                            return connectedNodeEdges.indexOf(n) !== -1;
                        });
                        // If the number of that intersection is greater than limit we'll hide them
                        if (commonEdges.length >= limit) {
                            var alreadyClustered = false;
                            var title = "Regulations:
"
                            var k
                            for (k = 0; k < commonEdges.length; k++) {
                                // Making sure we only hide the regulatory edges (ids are ints)
                                if (typeof commonEdges[k] != "string") {
                                    edgeUpdates.push({id: commonEdges[k], hidden: true, physics: true});
                                    title += data.edges.get(commonEdges[k]).label + "
";
                                } else if (commonEdges[k].substring(0, 5) == "CEdge") {
                                    alreadyClustered = true;
                                };
                            };
                            title += ""
                            // This alreadyClustered is to prevent duplicate clustered edges from being created
                            if (!(alreadyClustered)) {
                                edgeUpdates.push({id: 'CEdge:' + uuidv4(), from: params[i], to: connectedNodes[j], label: 'Clustered Interface', title: title, hidden: false, physics: true});
                            };
                        };
                    };
                };
            };
        };
        data.edges.update(edgeUpdates);
    };
    function unClusterEdges(params) {
        // Determines if clicked edge is a clustered edge. Unhides all hidden edges and deletes original clustered edge
        if (params.edges.length == 1) {
            var edgeId = params.edges[0];
            if (typeof edgeId == "string") {
                if (edgeId.substring(0, 5) == "CEdge") {
                    var edgeUpdates = [];
                    var nodes = network.getConnectedNodes(edgeId);
                    node0edges = network.getConnectedEdges(nodes[0]);
                    node1edges = network.getConnectedEdges(nodes[1]);
                    var commonEdges = node0edges.filter(function(n) {
                        return node1edges.indexOf(n) !== -1;
                    });
                    var k
                    for (k = 0; k < commonEdges.length; k++) {
                        edgeUpdates.push({id: commonEdges[k], hidden: false, physics: true});
                    };
                    data.edges.remove(edgeId);
                    data.edges.update(edgeUpdates);
                };
            };
        };
    };


feature: localization framework and pseudolocalization

Description
This adds in the ability to swap between locales in User Settings, along with a pseudo-locale to be used for testing purposes.
This is still a draft because of the following issues. Once they're handled, this will be open to merge.

[x] Should the "pseudo" locale files be removed? They're not needed by the client, but might be useful for other people developing new features (so they can run the yarn:l10n script and check they didn't forget any formatMessage calls themselves)
[x] We need a new icon for the settings menu's "User Locale" setting.
[x] I had to comment out some error handling in the server. This should be added back in a way that doesn't break things.

Task Item
closes #3809
Screenshots

I fixed the server's error handling and got some design feedback on the settings page, so I'll make the appropriate changes and then take this out of draft.

Here's a screenshot of the new Application Language setting panel.


Logout Button

Describe the task that needs to be done.
Adding a logout component in the Navbar. The functionality of this button would clear the JWT token and log the user out.
Describe what a solution to your proposed task might look like (and any alternatives considered).
A custom button.
Notes
N/A

discussed in team meeting 3/20/22, left as a future issue


Multi Time Zone related issue - Darg n Drop (with a workaround)

Hello, our teams are split across multiple time-zones.
My team specifically are on 2 zones.
I'll call these TZ1 (which is the 'Home TZ') and TZ2, -7 hours apart. I am the only one in TZ2.
When I drag-n-drop tasks, they are dropped to the previous day (similar to #133)
We do have new time management checked in the project settings.
I'm accessing Drop Plan exclusively on Edge browser (latest version, currently 124.0.2478.97) on a fully updated Windows 11 (Version
10.0.22621 Build 22621).
My Windows TZ is set to TZ2, my Azure's Time and Location settings are set to TZ2.
I don't have the organization detail yet (I'm not the admin, but I'll ask), I'm guessing it is TZ1, because that's where the development team originated, that is why I consider TZ1 as the Home TZ.
Everything is working as expected for those in the Home TZ.
Workaround
The way I worked around the issue was with the following browser extension edge/chrome.
I've configured it to Spoof TZ1 on the following site only:

https://usage.trackjs.com/*
https://yanivsegev.gallery.vsassets.io/*
https://yanivsegev.gallerycdn.vsassets.io/*

  Click to see screenshot

This way I still have the DevOps system display everything to me in my local TZ, and I can work with the Drop Plan as I need.
I'm sharing it here so that:

Others who might have the same issue might find it useful.
In the hopes that this detail helps you understand the root cause of this problem, and maybe there is a fix for it.
Maybe add a 'home TZ' setting?

Thanks for creating and maintaining this excellent tool.

I've updated the workaround URLs in the post above.


How to solve errors like "Double pointer of local zval requested"

This error not show line or any information, how it must be solved?

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28801887-how-to-solve-errors-like-double-pointer-of-local-zval-requested?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github).

Do you have more information?
Helpful would be:

sample code to trigger it (short, if possible)
(you maybe lucky that it happens only recently, to track down the change with triggers it and narrow it down to this bug)
php stack trace (output when using zephir with verbose=true)

Same error here https://travis-ci.org/fezfez/php-to-zephir-samples/jobs/101381866#L362

Since here aren't enough informaton to fix this, I'll close this.
If a similar error pops up, it can be diagnosed as described above and
should be filed as a separate issue.


Init Linrad - Linux radio

Description

http://www.sm5bsz.com/linuxdsp/linrad.htm
Overview https://www.sm5bsz.com/linuxdsp/usage/newco/newcomer.htm

AC

Linrad pkgs available in overlay

This package seems to be pretty dated, going to close for now


Don't upgrade casks when an older version already is installed

brew cask list <name> will return with a non-zero exit code if the installed cask version is not the latest. This breaks idempotence of this resource when a newer version of a given cask available.
brew cask list will include older versions of casks so grepping that list will give us an actual result if it's installed or not.

Performing an upgrade would be another action in the provider.
Is this behavior still happening? Can you show example output of:

chef-client run, with the failure
brew cask list name
brew cask list | grep name

Thanks

This still happens with the latest brew-cask (v0.52.0).
You can test it with any outdated cask on your system:
bash$ brew cask list handbrake
Warning: handbrake is not installed
Error: nothing to list
bash$ echo $?
1
bash$ brew cask list | grep handbrake
handbrake
bash$ echo $?
0

Since the provider uses the exit code to determine if the cask has been installed or not it would always mark outdated casks as not installed.
That said, one would not expect brew cask list <package> to raise an error if an outdated package is installed. From the issues in brew-cask it seems that this is a known issue and they're working to fix it but it involves quite a big refactoring. For now I think it's best to fix this issue in this cookbook. I'm guessing the implementation will change once brew-cask supports upgrades.

Awesome. Thank you for the explanation and the link to their refactoring issue!
I think this is fine to merge, but it would be perhaps decent to have a serverspec test that checks using the same command in the provider after installing a cask. I've been using caffeine as the cask for testing things as it's small. I'm working on the cookbook this week, so I might add that test :smile_cat:

Awesome. Thanks. :)
Didn't think about the tests, but I'll keep it in mind next time. ;-)


Update Cake.ISO to target Cake v3.0.0

Cake 3.0.0 has been released  🎉

:tada: The changes implemented in response to this issue shipped with Cake.ISO v3.0.0
The release is available on:

:rocket: GitHub Release
:package: NuGet Package


feat(register): return addHook result to it can be reverted

Currently the register method doesn't return the result of pirates#addHook, which means you can't revert the registration of the hook. This is very useful in circumstances like jest-config, which temporarily registers the transform, reads the config file, then de-registers it. See below
https://github.com/facebook/jest/blob/199f9811ae68b15879cbe18b7ef7ebd61eefcf23/packages/jest-config/src/readConfigFileAndSetRootDir.ts#L83-101

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


How to find some introductions about these packages?

Thanks for sharing Rosetta here!
There are many executable binaries in this fold"bin" downloaded, to use these, do I need different orders for each?How to find them?
eg. package like relax.static.linuxgccrelease ,to use it, I must set
-nstruct 2
-relax:default_repeats 25
-out:path:pdb .
-out:path:score .
so what about others?

This repo is not Rosetta, the protein modeling package that's been around for several decades, but rather RoseTTAFold, the protein structure prediction neural-network published in 2021 (Baek et al. "Accurate prediction of protein structures and interactions using a three-track neural network" https://doi.org/10.1126/science.abj8754)
For "regular" Rosetta (the one with relax.static.linuxgccrelease), please see https://www.rosettacommons.org/  For the documentation, https://www.rosettacommons.org/docs/latest/  and if you have additional questions https://www.rosettacommons.org/forum

thanks a lot


Added a feature that lets user create a Read Only Document

I have added a feature that lets you create a document that is only able to read from DB and not modify it.
You can set read_only = True in Settings Object to make use of this feature by default it does not alter any other functionality of the ODM

Hi @ahmarhafeez1,
Thank you for the PR.
I have a few comments. Please take a look there.
Also, I'd like to discuss the feature in general.
In this implementation, readonly documents can be changed with other methods, like class-level update:
await ReadOnlySample.all().update(...)

This can be confusing, as users might think that all the readonly documents are protected.
This can be avoided if you put a service field for such documents, like _read_only=True, in the database. Then, when you make updates or deletes, in the filter query part, you can add this condition to avoid such documents. And, probably, if a user needs to change this, you can add a special parameter to the changing operations. With this parameter set to true, it will change read-only docs.
What do you think?

Yeah We can do that but I was thinking more along the lines of creating Read Only Documents for certain instances in your app where you need to read data if we added readonly property to DB it would permanently change those documents to readonly

I see. I still think it's better to make docs fully read-only, with the possibility of a force update using a special parameter. Based on my experience, users don't distinguish much between the logic of the instances and the logic of the classes. In this particular case, it can lead to serious mistakes.


Ability to apply a default filter to Document

In our use case we would like to filter out documents from a defined resource (do not return documents that have been logically deleted).
How would this be done with mongorest? Using a signal perhaps?

Hey @mgmonteleone, you can override the resource's get_queryset like this:
def get_queryset(self, *args, **kwargs):
    return super(YourResource, self).get_queryset(*args, **kwargs).filter(is_deleted=False)

:) Thanks for the response!
I also was able to do it by doing a query_manager decorator:
@queryset_manager
def objects(selfdoc_cls,queryset):
    return queryset.filter(deleted__ne=True)

Any drawbacks to that?


[hotfix] Update mergify config for 2.5

@autophagy does Mergify still use the master branch for the config, even if the default branch is (currently) release-2.4?

@austince According to the docs:

File Used
Mergify uses the configuration file that is:

The file named .mergify.yml, or, as a fallback, .mergify/config.yml or .github/mergify.yml from the root directory.
In the default repository branch configured on GitHub — usually main.

So actually this should target release-2.4. I'm... not sure why this is the default branch.

Closing until we decide on a better branching structure


SQS send_message is not working

Describe the bug
Following this example provided https://github.com/awslabs/aws-sdk-rust/blob/main/examples/sqs/src/bin/sqs-hello-world.rs
I tried to send a simple SQSMessage but it never worked. Also, it seems that any other expression or statement which is specified after the send request, are not working working.
Expected Behavior
Sqs send should be able to send messages.
Current Behavior
let rsp = client
        .send_message()
        .queue_url(queue_url)
        .message_body(&message.body)
        .message_group_id(&message.group)
        // If the queue is FIFO, you need to set .message_deduplication_id
        // or configure the queue for ContentBasedDeduplication.
        .send()
        .await?;

println!("Send message to the queue: {:#?}", rsp);

In the given code, firstly the send() is not working. I couldn't see any messages in the standard queue. Secondly, the lines after this send are not getting called. Not even the println! ()
Reproduction Steps
let rsp = client
        .send_message()
        .queue_url(queue_url)
        .message_body(&message.body)
        .message_group_id(&message.group)
        // If the queue is FIFO, you need to set .message_deduplication_id
        // or configure the queue for ContentBasedDeduplication.
        .send()
        .await?;

    println!("Send message to the queue: {:#?}", rsp);

Or you can follow the code in this link to replicate the behavior. https://github.com/awslabs/aws-sdk-rust/blob/main/examples/sqs/src/bin/sqs-hello-world.rs
Possible Solution
No response
Additional Information/Context
No response
Version
[dependencies]
aws-config = "0.51.0"
aws-sdk-sqs = "0.21.0"
tokio = { version = "1", features = ["full"] }

Environment details (OS name and version, etc.)
Windows 10, VSCode, 64bit
Logs
No response

I get this same behavoir on Linux (Mint 19.3) except that a message is sent if the utility is run on the command line. Howvever, no message is sent if i daemonize the binary (any of the rust daemon crates show the same issue) - it gets all the way up to the point of call the above client send_message and then nothing happens after that.  It's hard to believe this is a tty issue but could it be?

I tested the sqs-hello-world example against a standard queue, and first I got:
Error: Unhandled(Error { code: Some("InvalidParameterValue"), message: Some("Value MyGroup for parameter MessageGroupId is invalid. Reason: The request include parameter that is not valid for this queue type."), request_id: Some("f32e43b3-9724-5047-b37f-1fbe30386085"), extras: {} })

But after commenting out the message_group_id line, it successfully sent the message and I was able to see it in the AWS console.
The println! below the send can get skipped if there is an error due to the ? operator, but I would expect that error to show up in the terminal.

Hello,
Maybe I did not get the problem, and sorry for that, but I can send an SQS message.
use lambda_runtime::{run, service_fn, LambdaEvent, Error};
use serde_json::Value;

#[tokio::main]
async fn main() -> Result<(), Error> {
    let config = aws_config::load_from_env().await;
    let sqs_client = aws_sdk_sqs::Client::new(&config);

    run(service_fn(|event: LambdaEvent<Value>| {
        execute(&sqs_client, event)
    }))
    .await?;

    Ok(())
}

pub async fn execute(client: &aws_sdk_sqs::Client, event: LambdaEvent<Value>) -> Result<(), Error> {
    let sqs_url = std::env::var("SQS_QUEUE_NAME").expect("SQS_QUEUE_NAME must be set");

    let result = client
        .send_message()
        .queue_url(sqs_url)
        .message_body("hello from my queue")
        .send()
        .await?;

    println!("{:?}", result);

    Ok(())
}

the println return:
SendMessageOutput { md5_of_message_body: Some("0bfdb11ec5072a3893a0e5f88d770931"), md5_of_message_attributes: None, md5_of_message_system_attributes: None, message_id: Some("46ed1df8-b458-42f8-825f-596299adac5f"), sequence_number: None }
message_group_id should be used with FIFO and used with the example provided I get
{
  "errorType": "&alloc::boxed::Box<dyn core::error::Error+core::marker::Sync+core::marker::Send>",
  "errorMessage": "Error { code: \"InvalidParameterValue\", message: \"The queue should either have ContentBasedDeduplication enabled or MessageDeduplicationId provided explicitly\", request_id: \"b2661672-803d-510b-9a78-4a638c8b1a29\" }"
}

That will transform the code into:
    let result = client
        .send_message()
        .queue_url(sqs_url)
        .message_body("hello from my queue")
        .message_group_id("myid")
        .message_deduplication_id("mysuperid")
        .send()
        .await?;

the println return:
SendMessageOutput { md5_of_message_body: Some("0bfdb11ec5072a3893a0e5f88d770931"), md5_of_message_attributes: None, md5_of_message_system_attributes: None, message_id: Some("56fc48d4-f70d-43c8-8de7-8a45f9520cd7"), sequence_number: Some("18874479977180912128") }
[dependencies]
aws-config = "0.51.0"
aws-types = "0.51.0"
aws-sdk-sqs = "0.21.0"
lambda_runtime = "0.7.1"
serde_json = "1.0.68"
tokio = { version = "1", features = ["full"] }

I don't see any problem with AWS SQS

My post wasn't very clear. I don't see a problem using sqs sdk EXCEPT when i run the program as a daemon (using daemonize 0.41 or any other daemon create).  At that point the call to the SQS Client.send_message hangs on FUTEX_WAIT_PRIVATE and never returns.   This might not be a bug in sqs sdk per se, but i have a lot of async / await calls in the program prior to this and they all work, so why would sqs call be different? Do i need to wrap this in it's own future or something else?

@robtrang This doesn't seem specific to SQS. Having this issue quite frequently for S3 + EC2 APIs (ref. https://github.com/awslabs/aws-sdk-rust/issues/611 for DynamoDB issue). Do you have any updates?

Unfortunately no, i don't have an update. It seems to be any method i have tried that is async. Non-Async methods work fine. I am going to try just abandoning the daemon idea and using systemd to run the binary instead. Not ideal (for my use-case) but the is above my paygrade in terms of the complexity.....
Let us know if you find anything

In general, if code isn't running after an await, then something is probably going wrong in a section of async code in your application--either a deadlock, or a very long running synchronous process inside of an async block.

To be clear: If i run the async/await code (of the AWS libraries) when my application is a Daemon (using Daemonize), it hangs. If i run it as a command line client (not a daemon), it works fine. I am not sure if the issue is with Daemonize  or not. I did try other daemon libraries and they didn't work either.
i should post this issue in a forum focussed on daemonize as i now believe it's not an "issue" per se with the AWS libs

Did you find a solution for this?

The “fix” is to run the binary under systemd rather than “fork” it.  Apparently (and i don’t quite understand this), the Async futures stuff that aws/rust utilizes does not work on a forked instance.
Logically, i would have those a child fork of a process is a process in itself, but the semantics of the future implementation (which may change) doesn’t allow for this kind of a process.
Not very satisfactory, but a systemd running process worked for me

On Aug 4, 2023, at 3:51 PM, John DiSanti @.***> wrote:
Did you find a solution for this?
—
Reply to this email directly, view it on GitHub https://github.com/awslabs/aws-sdk-rust/issues/658#issuecomment-1666252324, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH233TMRQZCBIKP6WGHZATXTV4I5ANCNFSM6AAAAAARXQTCZM.
You are receiving this because you were mentioned.

Interesting. Thanks for the update!
I saw an issue on Tokio that was saying that running it with a forked instance hasn't really been explored yet, but also that it might work as long as the Tokio runtime is created after the fork takes place.
I'm not really familiar with how daemonize works, so it's hard for me to say when exactly it's forking, and if it would fork before or after the Tokio runtime is initialized (assuming #[tokio::main] is being used).

This definitely doesn't seem like an issue with the SDK though, so I'm going to close this. I encourage you to discuss it further in the Tokio GitHub issues (assuming you're using Tokio).


Replaces arrays of Parquets in MapRegion, MapChunk with ParquetIDs

The intent of this change is to reduce the amount of duplicated objects in memory and to reduce the size of serialized maps.
In addition to this major change, several errors were fixed and the unit tests were expanded.

Perhaps MapRegion and MapChunk should inherit from a parent, since they both share a lot of function signatures and variables.
We had a short offline conversation about this

Perhaps MapRegion and MapChunk should inherit from a parent,
since they both share a lot of function signatures and variables.

Good catch!  Fixed in 9a03e12.


New feature: prevent polygon self-intersection while editing

Hey
In our project we deal with simple polygons (shape consisting of straight, non-intersecting line segments)
and using Leaflet.Draw mostly because of allowIntersection feature.
You can see it in action on examples page https://leaflet.github.io/Leaflet.draw/docs/examples/full.html

Create a poly
Toggle edit mode
Drag a vertex to cross any segment - vertex will be deleted

I want to migrate to leaflet.pm but without same feature it's absolutely impossible. Is there any chance to add such functionality or any workaround how to implement it using events?
Thanks for answer and amazing job!

hey @ashmigelski. Cool feature! Yes, I can implement this.
Whoever I'll need a week or two I think.
Until then, you could to this yourself. If you check the readme there are lots of events that you can listen to to implement this on the app-side. But if you can wait a bit, you don't have to code it yourself 👍

started it.

Style change is also there:

Looks good! Thanks for such fast reaction :+1: Cant wait to see edit mode :)
Please give me to know if I can help with code or testing

this is how it looks in edit mode

I'm currently trying to figure out how to "reset" the polygon if the user edits the polygon and causes a self-intersection. Because leaflet.pm has immediate changes, there is no "undo" right now 🤔

nevermind, got it 👍

That's it!
What about situation when we load invalid polygon and then start editing? Method isValid() can be useful to check either polygon can be saved

ah yes! Thanks for that usecase.
Here is how it's handled - bear with me on that one.
Let's say you allow self intersection during draw.
But then, on the pm:create event, you enable editing but set allowSelfIntersection to false:
map.on('pm:create', function(e) {
    e.layer.pm.enable({ allowSelfIntersection: false });
    console.log(e.layer.pm.selfIntersection());
});

this is exactly your usecase? Editing starts with a self intersection but you disallow self intersection for editing.
Upon enable, the self intersection option gets checked and the layer becomes red immediately.
As there is no previous state, I can't reset it of course.
The function layer.pm.selfIntersection() returns true or false so you can trigger other actions in your app.
Does that cover this usecase for you? Can you work with this?

Yeap it's ok
I'll try to test feature branch and give your more info
Thanks again!

@ashmigelski I committed everything. Would be great if you could test #241 and let me know how it goes.

Just check #241, still looks good)
Found another use case: delete vertex that change polygon state

delete vertex that add self-intersection

delete vertex that remove self-intersection

Also interested in styling so that 'red' color in code is not good https://github.com/codeofsumit/leaflet.pm/pull/241/files#diff-a53f0deadd9500d627e1c8db2d8d79e8R186
I can do PR with styling after merge #241

@ashmigelski both should be taken care of. Can you check the latest branch state?

@ashmigelski Ok both cases should be handled now. Do you mind checking again?

Everything works fine for me (both cases and styling via css)
For now can't find any issues.. Time to merge ;)

@ashmigelski no I'd like to handle holes in this PR too and I'm looking at it currently. Good to hear everything works so far 👍  - thanks for testing

okay holes seem to be handled too

Wow! I'll try to test holes today or tommorow

I just added a pm:intersect event:
// if allowSelfIntersection is false: listen to when a self-intersection is detected
// e.intersection includes a geoJSON of the intersection
polygonLayer.on('pm:intersect', function(e) {//...});

Helpful for marking the intersection if you wish.

Ok, holes works!
Found unexpected behavior when holes are nested

Also have a question: when I have a polygon with 3 point deleting one of them convert polygon into polyline and looks quite strange. Is it possible to set min vertices =  3 for polygon?

it's out:
https://github.com/codeofsumit/leaflet.pm/releases/tag/v0.22.0


Robot is driving a bit backward, if the target is exactly straight forward

Hi there!
I noticed an interesting behavior in my simulation environment.
I thinks in reality it will happen rarely, but not never.
My szenario:
With a button click, I create a target pose that is exactly n meters in front (x-axis) of the current robots pose.
new_point = current_pose.transform(Point(x=5, y=0))
goal_pose = Pose(x=new_point.x, y=new_point.y, yaw=current_pose.yaw)

afterwards I calculate a path with the path_planner:
path = await path_planner.search(
    start=current_pose, goal=goal_pose, timeout=30
)

What happens is, that the robot is driving a bit backward, before it drives forward and after driving backward, the carrot is constantly behind the hook. This results in driving beyond the goal pose and afterwards driving backward again, to reach the goal_pose.
Some screenshots:

Start:

Drive Backwards:

Afterwards the carrot is behind the hook, while the robot is driving forward:

Drivings beyond the goal_pose:

Drives backward, until the goal_pose is reached:

The interesting part: If I shift the goal_pose just a little bit to the side (e.g. 1cm), everything works as expected and the bot drives forward only.
As far as I could debug the behavior, the Delaunay Path Planner says:
"INFO:rosys.delaunay_planner:found single spline to reach goal"
I printed out the PathSegment that the path_planner returns:
PathSegment(spline=Spline(0.000,0.000 ~ -2.500,0.000 ~ 7.500,0.000 ~ 5.000,0.000), backward=True)
I looks like the forward PathSegment "is not healthy".

but I don't know why.
Best regards
Andreas

Hi Andreas,
That's an interesting bug! First I thought it's all about the internal workings of the path planner, which approximates the world with a triangular grid and searches a graph-based path from one node to another. Due to the grid resolution, the path might deviate from the theoretical optimum. But as the debug log says, a special case of a single spline from start to goal was found. So the problem might be caused by this single spline.
Here is a minimum reproduction to experiment with:
import logging
import rosys
from nicegui import ui

logging.basicConfig(level=logging.DEBUG)

shape = rosys.geometry.Prism.default_robot_shape()
wheels = rosys.hardware.WheelsSimulation()
robot = rosys.hardware.RobotSimulation([wheels])
odometer = rosys.driving.Odometer(wheels)
driver = rosys.driving.Driver(wheels, odometer)
path_planner = rosys.pathplanning.PathPlanner(shape)

with ui.scene():
    rosys.driving.robot_object(shape, odometer, debug=True)

async def drive_straight():
    start_pose = odometer.prediction
    goal_pose = start_pose.transform_pose(rosys.geometry.Pose(x=1))
    path = await path_planner.search(start=start_pose, goal=goal_pose)
    logging.info(path)
    await driver.drive_path(path)

ui.button('Drive straight', on_click=drive_straight)

ui.run()

And there it is! The path segment is very unexpected:
[PathSegment(spline=Spline(0.000,0.000 ~ -0.500,0.000 ~ 1.500,0.000 ~ 1.000,0.000), backward=True)]

The spline goes backwards from (0,0) via control points (-0.5,0) and (1.5,0) to (1,0). We don't see the robot driving backwards, because the carrot is basically pushed perfectly straight, so the vehicle doesn't start to turn. But as we can see from the data, the path segment is actually supposed to be driven backwards.
So the question is why the single-spline solution is flipped. I'll look into it! 🙂


Swift 5.7?

The 5.7 branch fails to build so im curious when we will see a release for 5.7 so that those of us testing on Ventura / Xcode 14 can swift-format

Additionally building manually fails from main and release/5.7
swift-format on  main via 🐍 v2.7.16 via 🏎  v5.7
❯ swift build
Building for debugging...
/Users/kylebrowning/Projects/swift/swift-format/.build/checkouts/swift-syntax/Sources/SwiftSyntaxParser/SyntaxParser.swift:150:9: error: cannot find 'swiftparse_parser_set_language_version' in scope
        swiftparse_parser_set_language_version(c_parser, languageVersionCString)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/kylebrowning/Projects/swift/swift-format/.build/checkouts/swift-syntax/Sources/SwiftSyntaxParser/SyntaxParser.swift:154:7: error: cannot find 'swiftparse_parser_set_enable_bare_slash_regex_literal' in scope
      swiftparse_parser_set_enable_bare_slash_regex_literal(c_parser, enableBareSlashRegexLiteral)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[7/20] Archiving libSwiftSyntax.a

The release/5.7 branch can be built using Swift that bundled in Xcode 14 beta 3.

I'm getting the same errors when trying to build 5.6:
VERSION=0.50600.1  # replace this with the version you need
git clone https://github.com/apple/swift-format.git
cd swift-format
git checkout "tags/$VERSION"
swift build -c release

swift-format/.build/checkouts/swift-syntax/Sources/SwiftSyntaxParser/SyntaxParser.swift:150:9: error: cannot find 'swiftparse_parser_set_language_version' in scope
        swiftparse_parser_set_language_version(c_parser, languageVersionCString)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
swift-format/.build/checkouts/swift-syntax/Sources/SwiftSyntaxParser/SyntaxParser.swift:154:7: error: cannot find 'swiftparse_parser_set_enable_bare_slash_regex_literal' in scope
      swiftparse_parser_set_enable_bare_slash_regex_literal(c_parser, enableBareSlashRegexLiteral)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

swift --version
swift-driver version: 1.45.2 Apple Swift version 5.6.1 (swiftlang-<IP_ADDRESS>3.66 clang-13<IP_ADDRESS>)
Target: x86_64-apple-macosx12.0

@kkk669 I am on that branch and it does not compile

/workspaces/swift-format (release/5.7) $ swift --version
Swift version 5.7-dev (LLVM d5f117e38620783, Swift 260a80fcce5a2ab) Target: x86_64-unknown-linux-gnu
@damuellen ➜ /workspaces/swift-format (release/5.7) $ swift build -c release --product swift-format Building for production...
[16/18] Compiling TSCBasic Await.swift
/workspaces/swift-format/Sources/SwiftFormatCore/RuleMask.swift:133:3: error: 'super.init' isn't called on all paths before returning from initializer   }
/workspaces/swift-format/Sources/SwiftFormatCore/SyntaxLintRule.swift:30:3: error: 'super.init' isn't called on all paths before returning from initializer   }
The 5.7 branch fails to build under Linux with newest snapshot.

Waiting for this as well, after moving some of my protocols with associated types to primary associated types I am getting the following error with the latest release:

error: protocols do not allow generic parameters; use associated types instead

@allevato 5.7 is not compiling

This is currently waiting on https://github.com/apple/swift-syntax/issues/787 so that we have a matching swift-syntax version.

I've updated the release/5.7 branch with a temporary reference to swift-syntax's swift-5.7-RELEASE tag in https://github.com/apple/swift-format/pull/397. Note the caveat about manually setting the rpath in the description of that PR.
When swift-syntax 0.50700.0 is released, I'll update this repo again to use the semver dependency and cut a release.

https://github.com/apple/swift-format/releases/tag/0.50700.0 is now published.

@allevato I'm still seeing this on 0.50700.0

Can you provide some details about your build environment?

Seeing it when trying to build in Ubuntu 22.04 for Homebrew:
https://github.com/Homebrew/homebrew-core/actions/runs/3095751529/jobs/5010578616

Seeing it when trying to build in Ubuntu 22.04 for Homebrew:
https://github.com/Homebrew/homebrew-core/actions/runs/3095751529/jobs/5010578616

What version of Swift is used in that image? I wasn't able to find it in the logs. Are you sure that it's 5.7?

I think it's probably running 5.6.3. Guess that'll need to be updated first.

@allevato  This morning I did a git pull, a swift package reset, and a swift build -c release. I'm still seeing the problem:
swift-format --version
dyld[30455]: Library not loaded<EMAIL_ADDRESS>  Referenced from: '/usr/local/bin/swift-format'
  Reason: tried: '/usr/lib/swift/lib_InternalSwiftSyntaxParser.dylib' (no such file), '/usr/local/bin/lib_InternalSwiftSyntaxParser.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx/lib_InternalSwiftSyntaxParser.dylib' (no such file), '/usr/lib/swift/lib_InternalSwiftSyntaxParser.dylib' (no such file), '/usr/local/bin/lib_InternalSwiftSyntaxParser.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx/lib_InternalSwiftSyntaxParser.dylib' (no such file), '/usr/local/lib/lib_InternalSwiftSyntaxParser.dylib' (no such file), '/usr/lib/lib_InternalSwiftSyntaxParser.dylib' (no such file)
fish: Job 1, 'swift-format --version' terminated by signal SIGABRT (Abort)

I'm on a Mac. Here's my swift version:
swift --version
swift-driver version: 1.62.8 Apple Swift version 5.7 (swiftlang-<IP_ADDRESS>.4 clang-14<IP_ADDRESS>)
Target: x86_64-apple-macosx12.0

What else could I provide?
(Still poking around to see if there's something I missed...)

Which tag did you pull?
The error you're seeing looks like one that would occur if the binary distribution of lib_InternalSwiftSyntaxParser.dylib in swift-syntax wasn't being retrieved properly, forcing it to look in the default rpaths instead.

I don't know if this helps, but it works if I run it from the build directory:
./.build/release/swift-format --version
0.50700.0

It doesn't if I copy it to /usr/local/bin and run it from there.

I'm at the head of release/5.7.

It doesn't if I copy it to /usr/local/bin and run it from there.

Ah-ha, that's the problem, then; you also need to copy lib_InternalSwiftSyntaxParser.dylib along with it or dyld won't be able to find it since it's no longer in the same directory nor on any of the other library paths.

Btw, I was in a rush 'cause I was heading into a meeting; meant to add: thank you for your help!


Questions regarding k3s use in ARM and IoT for production use case.

Hello,
I have couple of questions regarding k3s and its use case in small ARM based IoT devices with <512MB RAM and 1CPU Core.
I am planning to deploy a production kubernetes cluster using k3s for IoT devices and some web services to host IoT APIs.
Question 1: Is k3s suitable for production use for this particular use case?
Question 2: How does it compare to docker swarm in-terms of memory footprint and overall resource utilization under same scenarios?
Question 3: Will k3s work perfectly fine on ARMv6 architecture of the Raspberry Pi Zero? What about A7 Cortex ARM CPU's?
Question 4: Should I use any kind of swap for these k3s nodes or should I totally stay away from swap? What about swaps with lower swappiness level and maybe lower cache pressure? Just for exception cases so that I don't have out of memory exceptions on those small IoT Pi Zeros.
Question 5: I want to deploy the master node on AWS EC2 t2.micro instance. Which has 1vCPU and 1GB RAM. I want to use this master server node only as the orchestrator or scheduler and maybe have some proxy networking and metrics services over this node. Other than that, this node will not host any of my actual services. So, how should I go about deploying this master node? Should I go the master only approach? Where this node is not part of the worker nodes cluster? Or should I deploy it normally using the default installation process?
Question 6: Will I be able to deploy the kubernetes dashboard on this master node and use it to manage everything? Or will it be resource heavy for this EC2 instance? and if I can, how do I deploy the dashboard or any kubernetes upstream services in k3s?
Question 7: Can I get an explanation of the services that are deployed by default?
`ubuntu@ip-172-31-16-191:~$ sudo kubectl get all --all-namespaces
NAMESPACE     NAME                                         READY   STATUS      RESTARTS   AGE
kube-system   pod/local-path-provisioner-6d59f47c7-v2rvv   1/1     Running     0          7m57s
kube-system   pod/metrics-server-7566d596c8-xgrz7          1/1     Running     0          7m57s
kube-system   pod/helm-install-traefik-skx9f               0/1     Completed   0          7m57s
kube-system   pod/coredns-7944c66d8d-4wzfd                 1/1     Running     0          7m57s
kube-system   pod/svclb-traefik-r66dh                      2/2     Running     0          7m30s
kube-system   pod/traefik-758cd5fc85-xq2f2                 1/1     Running     0          7m30s
NAMESPACE     NAME                         TYPE           CLUSTER-IP      EXTERNAL-IP     PORT(S)                      AGE
default       service/kubernetes           ClusterIP      <IP_ADDRESS>                 443/TCP                      8m13s
kube-system   service/kube-dns             ClusterIP      <IP_ADDRESS>                53/UDP,53/TCP,9153/TCP       8m10s
kube-system   service/metrics-server       ClusterIP      <IP_ADDRESS>             443/TCP                      8m8s
kube-system   service/traefik-prometheus   ClusterIP      <IP_ADDRESS>              9100/TCP                     7m30s
kube-system   service/traefik              LoadBalancer   <IP_ADDRESS>     <IP_ADDRESS>   80:31781/TCP,443:30121/TCP   7m30s
NAMESPACE     NAME                           DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE
kube-system   daemonset.apps/svclb-traefik   1         1         1       1            1                     7m30s
NAMESPACE     NAME                                     READY   UP-TO-DATE   AVAILABLE   AGE
kube-system   deployment.apps/local-path-provisioner   1/1     1            1           8m10s
kube-system   deployment.apps/metrics-server           1/1     1            1           8m9s
kube-system   deployment.apps/coredns                  1/1     1            1           8m11s
kube-system   deployment.apps/traefik                  1/1     1            1           7m30s
NAMESPACE     NAME                                               DESIRED   CURRENT   READY   AGE
kube-system   replicaset.apps/local-path-provisioner-6d59f47c7   1         1         1       7m57s
kube-system   replicaset.apps/metrics-server-7566d596c8          1         1         1       7m57s
kube-system   replicaset.apps/coredns-7944c66d8d                 1         1         1       7m57s
kube-system   replicaset.apps/traefik-758cd5fc85                 1         1         1       7m30s
NAMESPACE     NAME                             COMPLETIONS   DURATION   AGE
kube-system   job.batch/helm-install-traefik   1/1           28s        8m8s`
Want to know about each of them and what exactly are they doing in terms of the kubernetes cluster.
Question 8: Is it possible for me to strip down some of the default services which I don't need and get lesser memory footprint of the k3s by doing so? Also, what about if I use an external MySQL database instead of the sqlite to get HA. Will that reduce the resource usage on the master node? Will it be significant or minor?
Question 9: What are the other ways, I can strip down the k3s to fit exactly my use case and get overall less resource utilization out of the system?
Question 10: How can I change the default ClusterIP Pool Range and Pods IP Range of k3s to a different local ip range properly without breaking anything? Is it possible to do so during installation process? What is the method to achieve this?
Question 11: When will kubernetes v1.19 come to k3s? Any ETA?
Question 12:  Basically want to know everything I can do to strip down k3s even more to suit my particular use case in both the server and agent deployments. Any suggestions regarding that would be really helpful.
Question 13: Is there any initial steps I should follow to secure k3s more before going to production with the cluster setup? Anything on the agent or server part? BTW, the agent server connection automatically uses TLS right? Any tweaks for security?
Thank You

Anyone?

big list! I'll try to get these answered soon. Thanks :-)

Closing this issue as Out of Date. This is more suited to a Discussion.


Is the web console already installed?

I have tried to access the image we build based on this container, and start a web application server with cmd strmqweb. I can see the urls shown up after run dspmqweb, but if I run curl -I url outside of container, I got 404 error. the url is like http://hostname:8000/ibmmq/console/.
the hostname, port I changed with setmqweb. in the container, run curl -I http://localhost:8000/ibmmq/console/ internal I got 302 found. I have no idea, the web console code is installed or not, or just the webserver is installed.

it is there


Move documentation CI to GitHub actions

xref https://github.com/dask/dask-ml/issues/752

GitHub actions builds will start showing up as PR checks once there is a workflow in the main branch. In the meantime, you can see the builds here https://github.com/jrbourbeau/dask-ml/actions

Thanks!


Seuqence item types

Hi, this change puts the types of senders produced by a sequence into a separate typedef. I've put it into an extra PR to show where it makes a difference.
Now we have a semantic change of completion_signatures of a sequence-sender. It now lists the possible completion signatures of the whole sequence operation. Before this change, it was the union of all possible completions of all item operations.

/ok to test

@kirkshoop any thoughts about exposing input sender types of calls to set_next(rcvr, sender)? In the current design I fail to compute the correct completion signatures in case of customizations.

/ok to test

/ok to test

/ok to test

Lovely.


Add default zero value proposal

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

I changed the base and target branches to idl-1.1, so closing in favor of https://github.com/awslabs/smithy/pull/916


How to collect mpi function trace data with a proper hpcrun options？

I am using hpctoolkit to collect mpi tracing data in a HPC system，that means the mpi events of each process along with time and messagesize information.
The command "hpcrun" have so many options of events, I want to ask for help to know how to get the tracing data.
The data I want to collect is like to be include all mpi functions and their time information as follows, which I want to use to analyze the communication of processes:
data format is like to be : {MPI_RANK(like process 0): the list of mpi functions(mpi_send, mpi_rev, etc.).}  mpi_function has property of (source, destination, start_time, end_time, messagesize).
How can I use the hpcrun with proper options to get those mpi function information?
and How can I change the trace file to a txt files?

HPCToolkit does not wrap MPI functions

wrap

Does that means the hpctoolkit collect trace of information about common functions call in users' mpi program, and the mpi functions like MPI_SEND are not included  in the event trace data of mpi programs?
So I cannot collect data about mpi functions with hpctoolkit because hpctoolkit focus on common compute functions？

You may still see MPI functions in the call stack of samples collected.
However, you won't see detailed information such as the sender and the receiver for each MPI function.

(source, destination, start_time, end_time, messagesize)

The above information can only be obtained if MPI functions are intercepted by a tool, which instruments the begin and the end of MPI functions to get source, destination, start_time, end_time, messagesize.


fix: update go to 1.23.1 for fixing critical CVE issues

Longhorn/longhorn#9898

Btw what CVE issues are? Are they not fixed in 1.20 patches?

Yes, it is fixed in v1.21.11, but there are HIGH issues. Can we fix them by using go 1.23.1?

Surely if it can be statically compiled. It should be fine.

Will using 1.22 hit this issue? since it has been used in 1.6 and 1.7. I assume the patch should be okay.

Will using 1.22 hit this issue? since it has been used in 1.6 and 1.7. I assume the patch should be okay.

You are right. 1.22.7 should be okay. Do you want to use 1.22.7 instead?

No worries. 1.23 is fine.


Unable to obtain the same average error as Table 1 in the paper

The average error on celeba is 8.25 in the paper, but my result is 10.14, which is obtained by directly using the codes in this repo. I list the configurations I used below, is there any problem?
in configs.json
    "celeba": {
        "path": "data/celeba",
        "all_tasks": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20",
                      "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39"],
        "img_rows": 64,
        "img_cols": 64
    }

in sample.json
{
    "optimizer": "Adam",
    "batch_size": 256,
    "lr": 0.0005,
    "dataset": "celeba",
    "tasks": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20",
                  "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39"],
    "normalization_type": "loss+",
    "algorithm": "mgda",
    "use_approximation": true,
    "scales": {"0":0.025, "1":0.025, "2":0.025, "3":0.025, "4":0.025, "5":0.025, "6":0.025, "7":0.025, "8":0.025, "9":0.025, "10":0.025,
               "11":0.025, "12":0.025, "13":0.025, "14":0.025, "15":0.025, "16":0.025, "17":0.025, "18":0.025, "19":0.025, "20":0.025,
               "21":0.025, "22":0.025, "23":0.025, "24":0.025, "25":0.025, "26":0.025, "27":0.025, "28":0.025, "29":0.025, "30":0.025,
               "31":0.025, "32":0.025, "33":0.025, "34":0.025, "35":0.025, "36":0.025, "37":0.025, "38":0.025, "39":0.025}
}

and the learning rate is multiplied by 0.85 every 10 epochs:

    if (epoch+1) % 10 == 0:
        # Every 50 epoch, half the LR
        for param_group in optimizer.param_groups:
            param_group['lr'] *= 0.85
        logger.info('Multiply the learning rate by {} [{} steps]'.format(0.85, n_iter))

and I train the model on two GPUs.

The average error on celeba is 8.25 in the paper, but my result is 10.14, which is obtained by directly using the codes in this repo. I list the configurations I used below, is there any problem?
in configs.json
    "celeba": {
        "path": "data/celeba",
        "all_tasks": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20",
                      "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39"],
        "img_rows": 64,
        "img_cols": 64
    }

in sample.json
{
    "optimizer": "Adam",
    "batch_size": 256,
    "lr": 0.0005,
    "dataset": "celeba",
    "tasks": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20",
                  "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39"],
    "normalization_type": "loss+",
    "algorithm": "mgda",
    "use_approximation": true,
    "scales": {"0":0.025, "1":0.025, "2":0.025, "3":0.025, "4":0.025, "5":0.025, "6":0.025, "7":0.025, "8":0.025, "9":0.025, "10":0.025,
               "11":0.025, "12":0.025, "13":0.025, "14":0.025, "15":0.025, "16":0.025, "17":0.025, "18":0.025, "19":0.025, "20":0.025,
               "21":0.025, "22":0.025, "23":0.025, "24":0.025, "25":0.025, "26":0.025, "27":0.025, "28":0.025, "29":0.025, "30":0.025,
               "31":0.025, "32":0.025, "33":0.025, "34":0.025, "35":0.025, "36":0.025, "37":0.025, "38":0.025, "39":0.025}
}

and the learning rate is multiplied by 0.85 every 10 epochs:

    if (epoch+1) % 10 == 0:
        # Every 50 epoch, half the LR
        for param_group in optimizer.param_groups:
            param_group['lr'] *= 0.85
        logger.info('Multiply the learning rate by {} [{} steps]'.format(0.85, n_iter))

and I train the model on two GPUs.

Hi, Ghost! I also failed to obtain the same results in Table 1. Have you solved this problem yet?


Since latest UE5 Launcher Update my Meshes are jagged. Only in WORLD Placement not in

in World // even Eyes totally deformed jagged///
https://puu.sh/J7oAZ/a5b6267649.png
in Skeletal Mesh editor - totally smooth https://puu.sh/J7oB7/5caab1b55b.png
thats sad because i cant fix it.
I got the latets SUB.DIV Hotfix Update.

Hi, please send me the following information so I can better understand and try to reproduce your problem on my system:

Version of Daz Studio, version of Unreal
Version of DazToUnreal plugin for DazStudio: Help->About Installed Plugins... Daz To Unreal Bridge
Version of DazToUnreal plugin for Unreal: Edit->Plugins DazToUnreal
The Daz Figure you are using
Any Addiitonal Daz assets you have loaded on your figure.  Please use exact names so I can locate it in the Daz Store.
Screenshot of options used on the DazToUnreal window
Copy of DTU file for your exported figure from the \Documents\DazToUnreal folder

Thanks.

lastest Unreal Engine Launcher Update -

Latest DaztoUnreal Plugin - https://puu.sh/J7Lmy/6352823db1.png
I Only Using Genesis 8 Female, with own Created Morphs.
5. i dont use any Marketplace Items.
6. 6. Only SUb-DIVon my Character Level 2. so Sub-Div true, LVL 2.
7. https://fastupload.io/FILOMHw5uHhzTVl
its on any character what gets Exported from Bridge since newest Unreal engine Update.
Thanks for your Help!

I am not able to reproduce the jagged meshes with a new blank UE5 project and G8F + Bodybuilder morphs + Level 2 SubD.
Please download this project and see if you have the same problems using it: https://www.dropbox.com/s/1o8blzemvamzwfk/UE5_Blank.zip?dl=0

Hmmm  thats weird,
on Test Level the Blank one its Fine, but on my Project its jagged af.
i Use Lumen and HW Raytracing, probably its about the new World Compisition, even it ry Default MAP it Works, but when i place it on my World, its Bugged and jagged, doesnt matter if i delete PP Volume or Skylight Sun, nothing of it affects it thats really strange.

OK, thanks very much for updating us.  Hope you get it worked out!  If no other questions or issues related to the plugin, I will close this issue.


Review all our basic texts that are used in all apps

Description
We have a lot of basic texts that are used in all applications. These texts has mostly been made over time by different resources in different context. It would be very helpful to get an overview of what all the texts that are viewed by our end users today.
Areas to look into

[ ] Stil og tone
[ ] Are there any texts that app-developers should expecially aware of? Texts that are often overwritten
[ ] Fix bad texts
[ ] support: ny/nb/en
[ ] Are our automatic validation texts covering all cases?

In scope
No response
Out of scope
No response
Additional Information
No response
Analysis
No response
Conclusion
No response

#402


docs: update readme, add authors and license to package

add authors and license to package
add commands to readme

Awesome docs.


onPaste callback is ignored

The callback function passed in onPaste prop is never executed, since it's overritten in the render() method.
For clarification, I need to handle that event in my project in order to prevent pasting in certain text fields.

Fixed in master


Error reading chunk: need more value than 2

Error reading chunk: need more value than 2
All over console i'm trying to export 576x576x256 Sized map into schematic...
I am using MCEdit 1.0 (Newest build of it)

Can you provide more info.
OS?
Minecraft Version? Pe?
Is the bug still occuring?
If it is still occuring, can you provide a full error log?


site version 1.3: upload from aggregator broken

Sets the wrong file path to search for uploaded file:

This line in api_helper is probably to blame:
        project_data_path = f"tmp/{api_id}"

Update: Projects do create successfully and results can be downloaded, but the error is mysterious.

Fixed in #259


Add Images on board.

Adding Images on board which are draggable.
path: /board
Component: board

Hi I would love to contribute ! Really interested in this project. Images would be able to be resized? Have an specified file size limit given a configuration parameter/variable? Anyways I would love to work on this as soon as October starts.

@SkullCarverCoder sure :+1:
Yes Images can be resized and there is nothing specific to file limit.
Thanks!

Hi @SkullCarverCoder,
Are you working on this issue?

Yes ! I am , sorry for taking so long I would be making the pull request associated with this on the weekend , have been tweaking some stuff between working hours 😅but on the weekend I should finish and test everything.

Hey @SkullCarverCoder,
Not at all a problem. You can always contribute to the open issues at your time of convenience :smiley:
Thanks


fix: do not crash in can function on unexpected event

closes #60

This has been fixed in (upcoming) v2.4


Streaming APIs

I think that the only way to support streaming APIs is to clone the responses rather than trying to copy the stream over. Atm the responseType methods read the stream to completion before returning it, which isn't ideal.
This is an unfortunate situation. ☹

Update: One idea would be to tee the stream and send that out to each consumer, but it doesn't resolve the responseType problem.

It's been awhile, but I figured I'd post an update with a test that I ran: Chrome hides the download resource out of the JS heap size until it is read, so it is going to be pretty challenging to determine the memory consequences of cloning a response...

Download size isn't the only concern here. res.json() for large payloads will take a non-negligible amount of time.
Perhaps there's a way to save the results of these operations into the cache...is that getting too complicated?

Gonna close and stick with the responseType API for now due to the previous comment.
The only solution I can think of atm is to wrap the Response object, but that adds a considerable amount of complexity to this lib that I'm not convinced is worth it atm.


Can generated files be ignored?

Is your feature request related to a problem? Please describe.
When I run code generation, the sorting and comments for imports are overridden and they aren't very relevant for generated code anyway.
Describe the solution you'd like
The option to provide a regular expression like **/*.g.dart that skips files matching it.

This is a great idea! I think that this would be added to the current feature to ignore files based of their exact file name. Thank you!

Wow, thanks for such a quick fix!

Np!  I only had to change like 3 lines so it was an easy fix!


add travis config and badge

First of all: I have no idea if you want to use Travis or any other CI. If not feel free to close it.
I was just looking for an excuse to play with Travis ;)
Not really useful for now but at lest you will know if PR will build 😉

Thanks!


Unreal 5.5 compile fix with explicit include of InstancedStruct

Mandatory to compile in 5.5: fix with explicit inlcude of InstancedStruct

Thanks!


Add: ATN Music [BD]

Channel Name
ATN Music
Alternative Names (optional)
No response
Network (optional)
No response
Owners (optional)
No response
Country
BD
Subdivision (optional)
No response
City (optional)
No response
Broadcast Area
c/BD
Languages
Ben
Categories (optional)
Music
NSFW
FALSE
Launched (optional)
No response
Closed (optional)
No response
Replaced By (optional)
No response
Website (optional)
http://atnmusic.tv/
Logo
https://www.jagobd.com/wp-content/uploads/2015/12/atnmusic.jpg?x50681
Notes
No response

Please update your request:

category name should be in lowercase
language code must be in lowercase

https://github.com/iptv-org/database/blob/master/CONTRIBUTING.md#channels


is the orientation of the Dual Side Mounts step 2.1.1 of the Chassis build wrong?

In auditing the 3D model, I found when I got to step 2.4.3, the plates didn't match.  Backtracking through the steps, it brought me back to step 2.1.1 which tells to align the sidemounts flat with the top plate.  This corresponds to Figure 3 in step 2.1.2 which definitely shows the tops of the side plates align with the top of the top plate.   However, if you look at Figure 4, you can see that the Dual Side Mounts have rotated and the side plates now abut to the bottom of the top plate.  If I use the orientation from Steps 2.1.1 the front and back plates don't align.   However if I rotate them to match figure 4, everything works out.

@toebes check out the thread at:  https://r.tapatalk.com/shareLink?url=https://www.tapatalk.com/groups/jpl_opensource_rover/body-assembly-orientation-of-dual-side-mounts-on-t-t97.html&share_tid=97&share_fid=2096986&share_type=t

@billydelectronics Ah, I missed that thread.  I got about 20 steps in the model before I discovered the issue.  Fortunately it was a lot easier for me to change in the model than it is with the real parts

@toebes you are very keen in that the orientation in the photos in our build documents was incorrect, as a couple others have noticed and pointed out on our forum as @billydelectronics mentioned above.
Thanks to your great Onshape model, I was able to re-create some clearer pictures with the corrected orientation and have updated the build docs accordingly.
Thanks everyone!

I'm glad that we have such a collaborative team on this!


Accessibility improvements to the left nav

This makes a few color changes to the left navigation with an eye toward improved accessibility. Specifically, I looked at the colors on our existing theme and they don't have enough contrast. The headings are the worst offenders but some of the links aren't fantastic.

 The accessibility rating would only be acceptable for large headings.
The other problem is that the left navigation would blend in with the version menu at the bottom ("Read the Docs v:latest")
I suspect we can slightly darken the captions ("Demo documents") though while still keeping a good rating. I'll see what I can do.

Excellent! Is there a milestone / timeline for getting this released? I assume I'll just have to re-pin to the new release in my requirements.txt.
Thanks!

If you've pinned to a precise version, yes, you'll need to re-pin.
If you haven't, or you pinned to something like sphinx-rtd-theme<0.4 (which will be the default after https://github.com/rtfd/readthedocs.org/pull/4096), then it should just happen automatically. I aim to get both of these changes out next week.


model_validate: exclude

Initial Checks

[X] I have searched Google & GitHub for similar requests and couldn't find anything
[X] I have read and followed the docs and still think this feature is missing

Description
Lazy loaded orm fields are loaded inadvertently by model_validate. I'd like to be able to exclude fields from model_validate.
Previously discussed here https://github.com/pydantic/pydantic/discussions/6861.

With the release of pydantic v2, is it possible to load a model and exclude certain fields when loading using the new model_validate method? I was hoping the new context parameter was able to achieve this, but it looks this does not quite do what I was thinking.

Affected Components

[ ] Compatibility between releases
[X] Data validation/parsing
[ ] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[ ] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

Thanks for the reply @sydney-runkle.
That seems to be for a different use case. #6861 explains the intent quite well.

My use case is very similar to this issue https://github.com/pydantic/pydantic/issues/1806, when loading models from an ORM object, if there are related objects within the main ORM object, then they would be lazily loaded. I want to be be able to exclude certain fields from being lazily loaded.

fastapi's response_model_exclude also makes plain the goal here.

You can also use the path operation decorator parameters response_model_include and response_model_exclude.
They take a set of str with the name of the attributes to include (omitting the rest) or to exclude (including the rest).
This can be used as a quick shortcut if you have only one Pydantic model and want to remove some data from the output.

@mustafa0x I had the same issue too and here is how I solved it. I used noload to explicitly tell sqlalchemy to not trigger a relationship load when getting many items, however do it when getting one item
class RoleOrm(OrmBase):
    __tablename__ = "roles"

    # Columns
    uid: Mapped[str] = mapped_column(
        default=lambda: str(uuid4().hex),
        primary_key=True,
        index=True,
        nullable=False,
        unique=True,
    )

    # Relationships
    role_permissions: Mapped[
        list["RolePermissionOrm"]  # noqa: F821 # type: ignore
    ] = relationship(cascade="all, delete-orphan", back_populates="role", lazy="joined")

In Controller/Repository
from fastapi import HTTPException
from sqlalchemy import func, select
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy.orm import noload

class RoleRepository:
    @staticmethod
    async def get_orm_by_uid(db: AsyncSession, uid: str) -> RoleOrm:
        statement = select(RoleOrm).where(RoleOrm.uid == uid)
        results = await db.execute(statement)
        role = results.unique().scalar_one_or_none()
        if not role:
            raise HTTPException(
                status_code=404,
                detail="Role with given id does not exist",
            )
        return role

    @staticmethod
    async def get_by_uid(db: AsyncSession, uid: str) -> Role:
        role_orm = await RoleRepository.get_orm_by_uid(db=db, uid=uid)
        role = Role.model_validate(role_orm)
        return role

    @staticmethod
    async def get_many(
        db: AsyncSession, skip: int = 0, limit: int = 20
    ) -> tuple[list[Role], str]:
        count = await db.scalar(select(func.count(RoleOrm.uid)))
        if not count:
            return [], "0"
        statement = (
            select(RoleOrm)
            .options(noload(RoleOrm.role_permissions))
            .offset(skip)
            .limit(limit)
        )
        results = await db.execute(statement)
        roles = [Role.model_validate(orm) for orm in results.unique().scalars().all()]
        return roles, str(count)

Thanks @axelmukwena! It seems like that would work, but I prefer to not have to resort to that. I'm hoping pydantic v2 can add back this v1 feature. :)

I really hope they add this one! I can't believe there's no standard way of handling this!

+1 for this functionality!

+1

+1 for this functionality!

Hi @mustafa0x:
Perhaps the solution should be to use extra models, instead of exclude lazy load fields with model_validate🤔

@xyzCh thanks for your input. I'll quote again what fastapi explained,

This can be used as a quick shortcut if you have only one Pydantic model and want to remove some data from the output.