Not able to read characteristics on iOS device

I'm trying with this library with a very simple example. A button handler creates a BleManager object, and tries to connect to a device with a specified name, then tires to read a characteristic with a specified UUID.
It works on Android device.
But on iOS device, it's able to scan and connect to the device, but not able to read any characteristics, in Chrome console, it shows the returned characteristics array is empty.

Can you show me an example code with specific arguments values which you are passing and output which you are receiving?

Have this problem too.
connect() {
        console.log("Connecting to device :");
        console.log(this.device);
        this.bleManager.connectToDevice(this.device.uuid).then((device) => {
            this.bleManager.servicesForDevice(device.uuid).then((servicesForDevice) => {
                console.log("servicesForDevice");
                console.log(servicesForDevice);
            }).catch((error) => {
                console.log(error);
            });
        }).catch((error) => {
            console.log("connectiton error: " + error);
        });
    }

logs:

Did you call discoverAllServicesAndCharacteristics() on Device object successfully? Without it device won't have cached services and characteristics accessible.

I have updated my code and everything works fine now. Thank you very much!
    connect() {
        console.log("Connecting to device :");
        console.log(this.device);
        this.bleManager.connectToDevice(this.device.uuid).then((device) => {
            return device.discoverAllServicesAndCharacteristics();
        }).then((device) => {
            this.bleManager.servicesForDevice(device.uuid).then((servicesForDevice) => {
                console.log("servicesForDevice");
                console.log(servicesForDevice);
            }).catch((error) => {
                console.log(error);
            });

        }).catch((error) => {
            console.log("connect error: " + error);
        });
    }

I'll make sure to improve documentation in upcoming releases.


added links to how to join -video

Did not preview yet.
Is this not Zola site? Or then something happened to my Zola installation 🧐

This is a Zola site.


[#385] Introduce & implement NetworkMagic

NetworkMagic allows us to differentiate between Addresses which
come from different networks. This prevents users from accidentally
sending funds from a mainnet wallet to a testnet address, which would
technically be a valid address on mainnet, but would be controlled by
unknown keys not under the user's control (thus rendering the funds
unusable). When addresses are created, the @ProtocolMagicId@ of the
machine is inserted into the @NetworkMagic@, which is added to the
@Address@ datatype.
In this commit I introduce NetworkMagic, wire it up to @ProtocolMagic@
in the configuration, and modify functions so that @NetworkMagic@ can
be passed down to both address creation and transaction validation. I
add a new constructor to @TxValidationError@

TxValidationNetworkMagicMismatch - which is thrown when we
encounter a @NetworkMagic@ coming from an address which doesn't match
our cluster's<EMAIL_ADDRESS>
Relates to #385.

bors r+


Error installing Amazon Q Language Server

Describe the bug
With latest version(s) of AWS Toolkit, attempting to start Q/CodeWhisperer suggestions results in the error shown in title. The Amazon Web Services output window shows:

AWS Toolkit for Visual Studio
Toolkit Version: <IP_ADDRESS>
Visual Studio: VS Enterprise 2022, Version: 17.10.4
Initializing: Amazon Q Language Client
AWS Toolkit was unable to find a compatible version of Amazon Q Language Server.
Error installing Amazon Q Language Server. Amazon Q functionality is unavailable. See AWS Toolkit logs for details.

Relevant AWS Toolkit logs are included below.
This behavior started to exhibit with the release that added Amazon Q to the existing CodeWhisperer functionality.
To Reproduce

Open Visual Studio (with or without an open solution)
Extensions > AWS Toolkit > Getting Started
Verify that the Getting Started window shows "Amazon Q enabled and connected to IAM Identity Center ([AWS profile name])"
Click "Try Amazon Q with examples"
Example code window will open, followed by the error sequence mentioned above

Expected behavior
Language server should be downloaded and initialized, and begin serving suggestions.
Toolkit Logs
Relevant section of AWSToolkit logs:

2024-07-22 14:04:57,628 [67] INFO  Amazon.AwsToolkit.AmazonQ.Common.Lsp.Clients.ToolkitLspClient - Starting set up for language server: Amazon Q Language Client
2024-07-22 14:04:57,707 [15] INFO  Amazon.AWSToolkit.ResourceFetchers.FileResourceFetcher - Loading resource: C:\Users\<redacted>\AppData\Local/AWSToolkit\lsp\manifest\Amazon Q\0\manifest.json
2024-07-22 14:04:57,895 [92] INFO  Amazon.AwsToolkit.AmazonQ.Common.Lsp.Manifest.VersionManifestFetcher - Version manifest cache has the latest contents
2024-07-22 14:04:57,915 [92] INFO  Amazon.AWSToolkit.ResourceFetchers.HttpResourceFetcher - Loading resource: https://aws-language-servers.us-east-1.amazonaws.com/a8dafbc7-b928-4ca5-82b4-c261f51dd39f/servers.zip
2024-07-22 14:04:57,917 [92] INFO  Amazon.AWSToolkit.ResourceFetchers.HttpResourceFetcher - Loading resource: https://aws-language-servers.us-east-1.amazonaws.com/a8dafbc7-b928-4ca5-82b4-c261f51dd39f/clients.zip
2024-07-22 14:04:59,027 [8] ERROR Amazon.AWSToolkit.ResourceFetchers.CallbackResourceFetcher - Failed to get resource: https://aws-language-servers.us-east-1.amazonaws.com/a8dafbc7-b928-4ca5-82b4-c261f51dd39f/clients.zip
System.NullReferenceException: Object reference not set to an instance of an object.
at Amazon.AWSToolkit.ResourceFetchers.CachingResourceFetcher.<>c__DisplayClass6_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.AWSToolkit.ResourceFetchers.CallbackResourceFetcher.d__5.MoveNext()
2024-07-22 14:05:04,373 [8] ERROR Amazon.AWSToolkit.ResourceFetchers.CallbackResourceFetcher - Failed to get resource: https://aws-language-servers.us-east-1.amazonaws.com/a8dafbc7-b928-4ca5-82b4-c261f51dd39f/servers.zip
System.NullReferenceException: Object reference not set to an instance of an object.
at Amazon.AWSToolkit.ResourceFetchers.CachingResourceFetcher.<>c__DisplayClass6_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.AWSToolkit.ResourceFetchers.CallbackResourceFetcher.d__5.MoveNext()
2024-07-22 14:05:04,374 [8] INFO  Amazon.AwsToolkit.AmazonQ.Common.Lsp.Install.LspManager - Unable to download Amazon Q language server version v2.0.0. Attempting to fetch from fallback location
2024-07-22 14:05:04,377 [8] INFO  Amazon.AwsToolkit.AmazonQ.Common.Lsp.Install.LspManager - AWS Toolkit was unable to find a compatible version of Amazon Q Language Server.
2024-07-22 14:05:04,377 [8] ERROR Amazon.AwsToolkit.AmazonQ.Common.Lsp.Install.LspManager - Error installing Amazon Q language server. The AWS Toolkit may have trouble accessing the Amazon Q service.

I am able to retrieve the specified clients.zip in a browser by pasting the above URL, so it appears to be an issue in the class mentioned in the stack trace.
Development System (please complete the following information):

Windows Version: 10 Enterprise 22H2
Visual Studio Version:  Visual Studio 2022 17.10.4
AWS Toolkit for Visual Studio Version: <IP_ADDRESS>

Additional context
Possibly relevant: my user profile that I run Visual Studio under does not have admin rights to add/remove software or extensions. I have a separate admin profile that I can log into to perform these steps, but that profile does not have a license to run Visual Studio.
The path mentioned above, in the log excerpt, is for my standard user profile.

Hi @kmillerdevx3,
Can you try closing all instances of Visual Studio, delete the contents of this folder %UserProfile%\%LOCALAPPDATA%\aws\toolkits\language-servers\AmazonQ\2.0.0\, restart VS and try again?
You mentioned you have been having issues since the release that added Q chat support. Have you been seeing issues since v1.54.x.x or only with the latest version <IP_ADDRESS>?

I have no 2.0.0 folder inside the AmazonQ folder.
Yes, this issue has persisted since v1.54. I don't know the toolkit version numbers prior to that - the versions with only CodeWhisperer all worked, it was just with the release of AmazonQ that it stopped working.

Hi @kmillerdevx3 , can you try going to these urls from a browser on the same system? This will help rule out that something like a firewall would prevent the successful downloading of these files:

https://aws-language-servers.us-east-1.amazonaws.com/a8dafbc7-b928-4ca5-82b4-c261f51dd39f/clients.zip
https://aws-language-servers.us-east-1.amazonaws.com/a8dafbc7-b928-4ca5-82b4-c261f51dd39f/servers.zip

You can delete the files after they are downloaded.

@awschristou As mentioned in the original post, I am able to download the files in a browser.

@shruti0085 I had the first two (TMP and TEMP) already set correctly. I did not have USERPROFILE, but adding it made no difference - same error.

Thanks for confirming. Can you try a couple more things:

Can you clear the contents of this folder "C:\Users\%username%\AppData\Local\AWSToolkit\lsp\manifest\Amazon Q\0\" and try again?
Sometimes the TEMP directory specified by the TMP or TEMP env variable might become full resulting in unexpected errors. Can you verify if the temp folder is not full C:\Users\%username%\AppData\Local\Temp?

@shruti0085 Cleared the \0\ and \Local\Temp folders, with no change.

Can you please share your latest toolkit log file after redacting any sensitive information?
Out of curiousity, I am interested to know what version folders are listed for you in this location?

C:\Users\%username%\AppData\Local\aws\toolkits\language-servers\CodeWhisperer\
C:\Users\shrsinh\AppData\Local\aws\toolkits\language-servers\AmazonQ : this will likely be empty

Can you please share your latest toolkit log file after redacting any sensitive information?
Out of curiousity, I am interested to know what version folders are listed for you in this location?
C:\Users\%username%\AppData\Local\aws\toolkits\language-servers\CodeWhisperer\
C:\Users\%username%\AppData\Local\aws\toolkits\language-servers\AmazonQ : this will likely be empty

@shruti0085: Current log - I think I got any sensitive data.
I have no language-servers\CodeWhisperer\ folder any longer - when working through the issue where the AWS Toolkit didn't appear in the Visual Studio extensions list I uninstalled the toolkit and removed all artifacts.
The AmazonQ folder is empty. When the toolkit is trying to install the language server, I do see a 2.0.0 folder appear here, but it gets deleted right away - too fast for me to see if anything got placed there.
Unrelated (I think) - the full log includes an error related to the default profile. I haven't bothered to mention it previously because I also get this error in VSCode (in which Amazon Q works just fine) and we use SSO profiles - which the toolkit Getting Started screen reports as logged in - rather than the default profile so I've never really thought about it.

@shruti0085 Also, as mentioned in my previous comment, the Toolkit keeps disappearing from the list of installed extensions (even though it is still installed) - I keep going through the steps in the linked ticket, it reappears in the list for some undefined amount of time, then disappears again.

@kmillerdevx3 we have released v<IP_ADDRESS> of the Toolkit which adds logging to help us better understand and troubleshoot the issue. Can you please install that version and share your logs?

the Toolkit keeps disappearing from the list of installed extensions (even though it is still installed)

Have you already attempted the guidance listed in #452 and #451?

@shruti0085 Yes, as mentioned, I've gone through those steps every time it disappeared.
With <IP_ADDRESS>, here is the updated section of the logs, possible sensitive data obfuscated:

2024-08-05 16:16:07,588 [15] INFO  Amazon.AWSToolkit.ResourceFetchers.FileResourceFetcher - Loading resource: C:\Users[userprofile]\AppData\Local/AWSToolkit\lsp\manifest\Amazon Q\0\manifest.json
2024-08-05 16:16:07,848 [111] INFO  Amazon.AwsToolkit.AmazonQ.Common.Lsp.Manifest.VersionManifestFetcher - Version manifest cache has the latest contents
2024-08-05 16:16:07,871 [111] INFO  Amazon.AWSToolkit.ResourceFetchers.HttpResourceFetcher - Loading resource: https://aws-language-servers.us-east-1.amazonaws.com/a8dafbc7-b928-4ca5-82b4-c261f51dd39f/servers.zip
2024-08-05 16:16:07,874 [111] INFO  Amazon.AWSToolkit.ResourceFetchers.HttpResourceFetcher - Loading resource: https://aws-language-servers.us-east-1.amazonaws.com/a8dafbc7-b928-4ca5-82b4-c261f51dd39f/clients.zip
2024-08-05 16:16:09,064 [61] ERROR Amazon.AwsToolkit.AmazonQ.Common.Lsp.Install.LspManager - Computed hash [hash1] does not match expected [hash2] for clients.zip
2024-08-05 16:16:09,066 [61] INFO  Amazon.AWSToolkit.ResourceFetchers.CallbackResourceFetcher - No contents fetched for https://aws-language-servers.us-east-1.amazonaws.com/a8dafbc7-b928-4ca5-82b4-c261f51dd39f/clients.zip using ConditionalResourceFetcher.
2024-08-05 16:16:15,395 [61] ERROR Amazon.AwsToolkit.AmazonQ.Common.Lsp.Install.LspManager - Computed hash [hash3] does not match expected [hash4] for servers.zip
2024-08-05 16:16:15,399 [61] INFO  Amazon.AWSToolkit.ResourceFetchers.CallbackResourceFetcher - No contents fetched for https://aws-language-servers.us-east-1.amazonaws.com/a8dafbc7-b928-4ca5-82b4-c261f51dd39f/servers.zip using ConditionalResourceFetcher.

Not sure what his Github handle is, but I was able to work with Aniket Braganza (AWS) to get the toolkit running locally using the Amazon Q settings block in Visual Studio. That obviously isn't the ideal long-term solution, but will work short-term until we can figure out the issue logged above.

Thanks for verifying and for sharing your logs.
Yes, we were able to work with Aniket(AWS) to provide a workaround for now. We are currently investigating this and are looking into the reasons for the discrepancy in the hash computation.

I never provided an update, but this was ultimately tracked down to a conflict with NetSkope, our ZTN provider. Our IT NetSec department deployed a fix that resolved the issue - something in NetSkope was causing the hashes not to match. (Not on that team so I don't know the details - sorry.)
After this update, the Q language server installs and works as expected without workarounds.

Thank you for providing an update and sharing the source of the issue. Glad after the fix, it is working as expected.


Activation email resend

There are cases where our users have their mails in spam or accidentally deleted.
Is it possible to resend activation email to user? I do not see that feature when I was checking functionality.

Yeah I need that also.

@entersb Could you provide use cases from user's point of view? How should it work and what in your opinion should be provided via API?

Hello @entersb,
By taking a look at RegistrationView in views.py, you should be able to resend the activation email by calling send_activation_email once you get the user object.
https://github.com/sunscrapers/djoser/blob/master/djoser/views.py#L61

I've created something like this in my own project at /auth/resend
In the process of making something better as well
class ResendView(generics.CreateAPIView):
    """
    Use this endpoint to resend user activation email.
    """
    # serializer_class = djoser.serializers.get('user_registration')
    serializer_class = UserRegistrationSerializer
    permission_classes = (
        permissions.AllowAny,
    )

    @csrf_exempt  # TODO - Remove csrf maybe if it is insecure
    def post(self, request, format=None):
        specific_user_name = request.POST.get('username')
        try:
            user = User.objects.get(username=specific_user_name)
        except:
            print("Can't Find USER with id {}".format(specific_user_name))
            return Response(
                {'status': 'Cannot find username {}'.format(
                    specific_user_name)},
                status=status.HTTP_400_BAD_REQUEST,
            )
        # if settings.get('SEND_ACTIVATION_EMAIL'):
        if not user.is_active:
            self.send_activation_email(user)
            return Response(
                {'status': 'Resent Activation Email to username {}'.format(
                    specific_user_name)},
                status=status.HTTP_202_ACCEPTED,
            )
        else:
            return Response(
                {'status': 'username {} already is_active'.format(
                    specific_user_name)},
                status=status.HTTP_400_BAD_REQUEST,
            )

    def send_activation_email(self, user):
        email_factory = djoser.utils.UserActivationEmailFactory.from_request(
            self.request,
            user=user,
        )
        email_factory.html_body_template_name = 'activation_email.html'
        email = email_factory.create()
        email.send()

A resend view that you can use in your own project, works with djoser >= 1.1.5
# views.py
from django.contrib.auth import get_user_model
from djoser.compat import get_user_email, get_user_email_field_name
from djoser.conf import settings as djoser_settings
from djoser.utils import ActionViewMixin
from rest_framework import generics, permissions, response, status, views

User = get_user_model()

class ResendActivationView(ActionViewMixin, generics.GenericAPIView):
    """
    Use this endpoint to resend user activation email.
    """
    serializer_class = djoser_settings.SERIALIZERS.password_reset
    permission_classes = [permissions.AllowAny]

    _users = None

    def _action(self, serializer):
        for user in self.get_users(serializer.data['email']):
            self.send_activation_email(user)
        return response.Response(status=status.HTTP_204_NO_CONTENT)

    def get_users(self, email):
        if self._users is None:
            email_field_name = get_user_email_field_name(User)
            users = User._default_manager.filter(**{
                email_field_name + '__iexact': email
            })
            self._users = [
                u for u in users if not u.is_active and u.has_usable_password()
            ]
        return self._users

    def send_activation_email(self, user):
        context = {'user': user}
        to = [get_user_email(user)]
        djoser_settings.EMAIL.activation(self.request, context).send(to)

@sargo would it be too much to ask you for a PR? :slightly_smiling_face: with tests and stuff :wink:


Wrong display when we have multiple app that not support all flavor

Firstly, thanks for the plugin; it works well overall.
However, I encountered an issue when there is multiple apps in the same project that don't implement the same product flavor.
Do you think this is something that can be improved?

Could you provide more details about issue

Yeah sure,
For example, I have one project with multiple product flavors only for the TV app and none for the mobile app. Since the TV app is the first module, I can see Debug or Release, which is good. However, it can be confusing when I change the run configuration to the mobile app, as I still see Debug or Release, which doesn't make sense for the mobile app.
I have reproduced a similar architecture in a minimal project that I can share with you if you want. Here is a screenshot of what happens:

The difference is that the first module is the mobile app so only debug and release is displayed.
But since the active run configuration is tv I expect firetvDebug to be displayed instead.

Hello, I've resolved the issue by updating the plugin to correctly display the product flavor for the active run configuration. Now, when switching between different modules with different product flavors, the plugin shows the appropriate flavor for each module. I've tested this in a minimal project and it's working as expected. Feel free to reach out if there are any further questions or concerns. Closing the ticket now. Thank you!


Register ReadWriteDlm2 v0.8.0

@JuliaRegistrator register

Registration pull request updated: JuliaRegistries/General/14069
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.8.0 -m "<description of version>" 38b0b6d6df33e19759562884c651b2c78730175b
git push origin v0.8.0


[BUG] Decimal fields are acting weird

It appears that (at least some) decimal fields act strangely, and do not accept certain numbers due to floating point rounding issues.
For example, the "quantity" field in the BomItem:

Here, entering "0.35" causes a validation error...
This appears to be related to the way in which certain numbers are "rounded":

Not sure how to best handle this one, but it is vitally important!

Representing the field as a FloatField in the serializer has caused the problem here...
https://code.djangoproject.com/ticket/30290


Fix broken links on securing-a-cluster page

This PR addresses and fixes some broken links on "Securing a Cluster" page.

I have completed and signed the CNCF CLA

Went through the preview link provided by the netlify bot: https://deploy-preview-9191--kubernetes-io-master-staging.netlify.com/docs/tasks/administer-cluster/securing-a-cluster/
Confirmed that the 2 broken links are now resolving correctly.

@kubernetes/sig-docs-maintainers how do we set up a redirect from the old kubelet authn location to the current valid page so https://kubernetes.io/docs/admin/kubelet-authentication-authorization is not a dead link?

@liggitt Add a redirect in the /static/_redirects file, e.g.:
/old/path/to/page/  /path/to/new/page/  301

@liggitt - do I have your blessing to revert my changes and add that redirect rule in /static/_redirects file instead?

Weird, I could have sworn that link was broken for me, but indeed it seems to redirect properly now.
But, no problem, will add a redirect for the kubelet page.

I will close this PR and open a new one for the redirect.


Add Banner component to BCC Components

[x] place banner component in bcc - components master file
[x] describe components in guidelines

https://www.notion.so/bccit/Banner-5a69f361becc47599facb529aeb56355?pvs=4


Flipping controls in one side of the ctrl surfs

serious when using FAR, using flap was rolling instead


publish<EMAIL_ADDRESS>

Requested by: @marandaneto
Merge target: (default)
Quick links:

View changes
View check runs

Assign the accepted label to this issue to approve the release.
Leave the #retract comment under this issue to retract the release (original issuer only).
Targets

[ ] npm
[ ] gcs
[ ] registry
[ ] docker[release]
[ ] docker[latest]
[ ] github
[ ] gh-pages

Targets marked with a checkbox have already been executed.  Administrators can manually tick a checkbox to force craft to skip it.

@marandaneto this feels more like a minor bump than a bugfix patch bump

mmm, it's rather a bug fix IMO because it requires a newer version, not really adding a new feature.
I can bump a minor next time, thanks for the feedback.

@marandaneto this feels more like a minor bump than a bugfix patch bump

mmm, it's rather a bug fix IMO because it requires a newer version, not really adding a new feature. I can bump a minor next time, thanks for the feedback.

it's not a bugfix -- you're updating dependencies:
semver.org/#what-should-i-do-if-i-update-my-own-dependencies-without-changing-the-public-api

makes sense, TIL, thanks for sharing.


Port planning scene ros api tutorial

Port planning scene ros api tutorial and adresses #8
Needs #69 s demo.launch.py to work as expected

Also there seems something wrong with ros2 run moveit_ros_planning moveit_print_planning_scene_info. Which gives me:
[INFO] [1618491970.223003091] [print_planning_scene_info]: Getting planning scene info to print
[INFO] [1618491970.223125481] [moveit_rdf_loader.rdf_loader]: Robot model parameter not found! Did you remap 'robot_description'?
[ERROR] [1618491970.227218950] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Robot model not loaded
[ERROR] [1618491970.227438829] [print_planning_scene_info]: Planning scene not configured

Is there a fix/issue open for getting moveit_print_planning_scene_info to work?

Yeah, I've talked this with @JafarAbdi , I wrote the todo for it but I forgot to open up the issue. Will open today. He has mentioned he knew what the problem is and will fix it when he has some spare time to work on that.


not loading the items initially, In order to load I need to change the resolution of browser.

I have verified this, the problem causing thing is div class="carousel-cell", when I am removing this part, the loading has no problem. the carousel space is blank in the browser, the moment I change the resolution of browser it will get loaded.

please help me, if u have faced this!

I have the same issue

I am facing the same issue too, didn't know the one causing issues was the "carousel-cell" in my case it works fine without a conditional render expression like "*ngIf" if someone else have a solution for this it will be appreciatte it.

@siddharth318 could you please show your code in full?

@shagflak Try to use the css property display: none for "carousel-cell"  instead of ngIf

@drozhzhin-n-e  here is my code:
<carousel style="height:27rem" [cellsToShow]="4" [dots]="true" [overflowCellsLimit]="1">

{{slide.courseDifficultyLevel}}

{{slide.courseDescription}}

<button class="btn btn-primary" style="background-color:lightgreen;color:black;border-block-color:black" (click)="GoToCourse()">Start</button>

  </carousel>

<carousel style="height:27rem" [cellsToShow]="4" [dots]="true" [overflowCellsLimit]="1">

{{slide.courseDifficultyLevel}}

{{slide.courseDescription}}

<button class="btn btn-primary" style="background-color:lightgreen;color:black;border-block-color:black" (click)="GoToCourse()">Start</button>

  </carousel>

Hi @drozhzhin-n-e  I am using ngFor with carousel cell, because that is my business requirement.
Requesting you to please look into this code and tell me a fix!!
code.txt

this is how it looks before Browser resizing:

This is how to looks after Browser resizing:

Before Browser resizing:

After resizing:

Requesting @drozhzhin-n-e to Provide a fix!!

I have the same issue

@siddharth318 @phiricharles101 Could you tell me what html code is inside the carousel when you see it empty?

Also try installing version 2.1.0

Hi @drozhzhin-n-e
I am getting this problem upon switching to 2.1.0 version

Could you tell me what html code is inside the carousel when you see it empty? I mean browser compiled code, not your source code.

Hi @drozhzhin-n-e Thanks a ton, installing 2.1.0 fixed the *ngFor problem for me, now there's no viewport issue!
But this patch works in Angular 12.0.5 version which I believe is quite slow during rebuild (almost like production build).
Thanks a ton, again!

I am still having an issue in angular 12 after updating to 2.1.0, so on my side the images are now small until I either reload the page or resize the page , not sure what I am doing wrong
Initial:

After reload or refreshing the page:

Angular details:

I have the same problem, on initial, carousel-cell don't take width in order to property cellsToShow, only works if refresh window or navigate another route.
Please, I need solution about that

i'm having the same problem.
when the component initialized no image is displayed because the width of the div with carousel-cell class is 0 after resizing the page it fetches the with and works fine
any solution?

i'm having the same problem. when the component initialized no image is displayed because the width of the div with carousel-cell class is 0 after resizing the page it fetches the with and works fine . the problem begins with using [cellWidth]="'100%'" any solution?

Without solution.
So, I used a "Fake componet" in order to restore the route, when return on original route recharge cellWidth correctly

I'm having this issue too and it seems I need to find my own hacky solution... I can't even upgrade to a newer version since they all seem to be incompatible with Angular 13.

I can't remember where I found this, but calling .onWindowResize({}); you can re-draw the Carousel. It worked for me...
this.carousel.onWindowResize({});


ConnectionRefusedError error on 302 redirects

302 redirects insert localhost into url (and change scheme from https to http).
Aside: urllib3 works fine:
http = urllib3.PoolManager()
url = 'https://www.apachelounge.com/download/VC14/binaries/httpd-2.4.26-win32-VC14.zip'
r = http.request('GET', url)

Expected Result
No exception
Actual Result
Exception raised (see below for both 2.7.13 and 3.6.1 failures)
Reproduction Steps
import requests
url = 'https://www.apachelounge.com/download/VC14/binaries/httpd-2.4.26-win32-VC14.zip'
r = requests.head(url)
print(r.status_code)
print(r.headers)
r = requests.head(url, allow_redirects=True)
print(r.status_code)
print(r.headers)

System Information
{
  "chardet": {
    "version": "3.0.4"
  },
  "cryptography": {
    "version": ""
  },
  "implementation": {
    "name": "CPython",
    "version": "3.6.1"
  },
  "platform": {
    "release": "7",
    "system": "Windows"
  },
  "pyOpenSSL": {
    "openssl_version": "",
    "version": null
  },
  "requests": {
    "version": "2.18.1"
  },
  "system_ssl": {
    "version": "100020bf"
  },
  "urllib3": {
    "version": "1.21.1"
  },
  "using_pyopenssl": false
}

Exception (Python 2.7.13) ↑back to top
C:\>py get.py
302
{'Keep-Alive': 'timeout=10, max=100', 'Server': 'Apache/2.4.26 (Win64)', 'Connection': 'Keep-Alive',
'Location': 'http://localhost/download/VC14/binaries/httpd-2.4.26-win32-VC14.zip', 'Da
te': 'Sun, 18 Jun 2017 22:33:13 GMT', 'Content-Type': 'text/html; charset=iso-8859-1'}
Traceback (most recent call last):
  File "get.py", line 11, in <module>
    r = requests.head(url, allow_redirects=True)
  File "c:\python\lib\site-packages\requests\api.py", line 98, in head
    return request('head', url, **kwargs)
  File "c:\python\lib\site-packages\requests\api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "c:\python\lib\site-packages\requests\sessions.py", line 502, in request
    resp = self.send(prep, **send_kwargs)
  File "c:\python\lib\site-packages\requests\sessions.py", line 634, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "c:\python\lib\site-packages\requests\sessions.py", line 212, in resolve_redirects
    **adapter_kwargs
  File "c:\python\lib\site-packages\requests\sessions.py", line 612, in send
    r = adapter.send(request, **kwargs)
  File "c:\python\lib\site-packages\requests\adapters.py", line 504, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /download/VC14/binaries/httpd-2.4.26-win32-VC14.zip (Caused by NewConnec
tionError('<urllib3.connection.HTTPConnection object at 0x00000000035D5D30>: Failed to establish a new connection: [Errno 10061] No connection could be made because the target machine act
ively refused it',))

Exception (Python 3.6.1) ↑back to top
C:\>py get.py
302
{'Date': 'Sun, 18 Jun 2017 22:24:43 GMT', 'Server': 'Apache/2.4.26 (Win64)',
'Location': 'http://localhost/download/VC14/binaries/httpd-2.4.26-win32-VC14.zip', 'Content-Type': 'text/html;
 charset=iso-8859-1', 'Keep-Alive': 'timeout=10, max=100', 'Connection': 'Keep-Alive'}
Traceback (most recent call last):
  File "c:\python\lib\site-packages\urllib3\connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "c:\python\lib\site-packages\urllib3\util\connection.py", line 83, in create_connection
    raise err
  File "c:\python\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "c:\python\lib\site-packages\urllib3\connectionpool.py", line 356, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "c:\python\lib\http\client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "c:\python\lib\http\client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "c:\python\lib\http\client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "c:\python\lib\http\client.py", line 1026, in _send_output
    self.send(msg)
  File "c:\python\lib\http\client.py", line 964, in send
    self.connect()
  File "c:\python\lib\site-packages\urllib3\connection.py", line 166, in connect
    conn = self._new_conn()
  File "c:\python\lib\site-packages\urllib3\connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x000000000354AF28>: Failed to establish a new connection: [WinError 10061] No connection could be made
 because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python\lib\site-packages\requests\adapters.py", line 440, in send
    timeout=timeout
  File "c:\python\lib\site-packages\urllib3\connectionpool.py", line 649, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "c:\python\lib\site-packages\urllib3\util\retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /download/VC14/binaries/httpd-2.4.26-win32-VC14.zip (Caused by NewConnectio
nError('<urllib3.connection.HTTPConnection object at 0x000000000354AF28>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine act
ively refused it',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "get.py", line 11, in <module>
    r = requests.head(url, allow_redirects=True)
  File "c:\python\lib\site-packages\requests\api.py", line 98, in head
    return request('head', url, **kwargs)
  File "c:\python\lib\site-packages\requests\api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "c:\python\lib\site-packages\requests\sessions.py", line 502, in request
    resp = self.send(prep, **send_kwargs)
  File "c:\python\lib\site-packages\requests\sessions.py", line 634, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "c:\python\lib\site-packages\requests\sessions.py", line 634, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "c:\python\lib\site-packages\requests\sessions.py", line 212, in resolve_redirects
    **adapter_kwargs
  File "c:\python\lib\site-packages\requests\sessions.py", line 612, in send
    r = adapter.send(request, **kwargs)
  File "c:\python\lib\site-packages\requests\adapters.py", line 504, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /download/VC14/binaries/httpd-2.4.26-win32-VC14.zip (Caused by NewConnec
tionError('<urllib3.connection.HTTPConnection object at 0x000000000354AF28>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine
actively refused it',))

↑back to top

Hey @rasa, you'll find that the redirect link being provided by this endpoint is http://localhost/download/VC14/binaries/httpd-2.4.26-win32-VC14.zip. Unless you're hosting this service on your machine on port 80, that connection will never be established.
I ran a quick test with Curl, and you'll see a similar failure with that tool as well. This behaviour appears to be a failure on the part of the apachelounge.com server, and you'll want to contact them about getting that resolved.

@rasa, apologies. I replied a little to hastily. The issue you're seeing is related to the User-Agent you're providing the server. They've apparently blacklisted both Curl and Python-Requests as user agents, so you'll need to spoof it to access the download. This is why urllib3 works while the other two do not.
You can accomplish this by providing a header as shown below:
import requests
url = 'https://www.apachelounge.com/download/VC14/binaries/httpd-2.4.26-win32-VC14.zip'
r = requests.get(url, headers={'User-Agent': 'Definitely-Not-Requests'})

Thank you for the quick, and detailed, response!


Unexpected results from Multi Exec block

In the following piece of code, the multi exec block sometimes returns null and null for err and results respectively.
const AUTO_EXPIRE = 90;
let redisKey = 'semaphore';
redis.llen(redisKey, (err, results) => {
  if (err) return console.log(err);
  if (results === 0) {
    redis.multi().rpush(redisKey, 'wakeup').expire(redisKey, AUTO_EXPIRE).exec((err, results) => {
      if ((err = err || results[0][0] || results[1][0])) return console.log(err);
    });
  }
});

Most of the time, err is null and results is [[null, 1], [null, 1]], but sometimes the results is just null and it causes my program to crash. Also, from what I'm seeing, it doesn't seem like the rpush or expire commands get through to redis.
There really isn't any reason for this to be occurring, no disconnects from redis. I am using sentinels. Running ioredis 4.0.1
I also have other multi exec blocks in various places doing different things, but none of those experienced any of the same problems.

You can safely ignore this issue. I mistakenly thought ioredis will give me an error when a transaction is invalidated by a watch command, but the result is just null.

Closing this issue then.


error after update to v1.2.2

Overview
Visual Studio Code Version : (v1.1.0 :: Microsoft/vscode@c212f0908f3d29933317bbc3233568fbca7944b1) according to Help -> About
Code Sync Settings Version : v1.2.2
TypeScript Version: ^1.9.0-dev.20160514(nightly)

specified via  "typescript.tsdk": "./node_modules/typescript/lib" in my `./vscode/settings.json
the issue appears to be unrelated to using the "unstable" dev build

Rundown:

Today I updated from v1.2.1 to v1.2.2. It was working find yesterday
I run the update task from the command pallet
Get Error :sob:

Data
Got this error via notification in the workspace, Cannot find module './package.json'
Then there's a bunch more in the console, but here's the important part. The rest is included below.
shell.ts:416 Cannot find module './package.json': Error: Cannot find module './package.json'

expand to view full stack traces and error Object
4 things got logged to my console in Developer Tools
first exception
shell.ts:416 Cannot find module './package.json': Error: Cannot find module './package.json'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Function.N.n._load (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:17:18321)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Commons.<anonymous> (C:\Users\rozzzly\.vscode\extensions\Shan.code-settings-sync-1.2.2\out\src\commons.js:22:25)
    at next (native)
    at C:\Users\rozzzly\.vscode\extensions\Shan.code-settings-sync-1.2.2\out\src\commons.js:7:65
    at __awaiter (C:\Users\rozzzly\.vscode\extensions\Shan.code-settings-sync-1.2.2\out\src\commons.js:3:12)
    at Commons.InitSettings (C:\Users\rozzzly\.vscode\extensions\Shan.code-settings-sync-1.2.2\out\src\commons.js:19:16)e.onUnexpectedError @ shell.ts:416(anonymous function) @ shell.ts:318e.onUnexpectedError @ errors.ts:73u @ errors.ts:88(anonymous function) @ winjs.base.js:45(anonymous function) @ winjs.base.js:40
winjs.base.js:47 WARNING: Promise with no error callback:201

WARNING: Promise with no error callback:201

seperate error object logged to console
( I used JSON.stringify(temp1, null, '\t') to make it presentable )
{
	"exception": null,
	"error": {
		"name": "Error",
		"message": "Cannot find module './package.json'"
	},
	"promise": {
		"_oncancel": null,
		"_nextState": null,
		"_state": {
			"name": "error",
			"done": null,
			"then": null
		},
		"_listeners": null,
		"_value": {
			"name": "Error",
			"message": "Cannot find module './package.json'"
		},
		"_isException": false,
		"_errorId": 201
	},
	"id": 201
}

second exception
Cannot find module './package.json'                                                     messageService.ts:108

e.doShow @ messageService.ts:128
e.show @ messageService.ts:112
e.resume @ messageService.ts:71
(anonymous function) @ workbench.ts:343
e.invoke @ callbackList.ts:63e.fir
e @ event.ts:107
(anonymous function) @ quickOpenController.ts:467

Mitigation (Workaround Found)

uninstall --> restart --> reinstall --> restart --> run upload command via command pallet

Same message. No effect.

Try to restore the package.json
Steps to Resolve

Locate this extension in the VS Code extension directory

Found path in stack trace:
C:\Users\rozzzly\.vscode\extensions\Shan.code-settings-sync-1.2.2
Extension's root directory contains a package.json

Note: the full line from the stack trace was actually:
..\Shan.code-settings-sync-1.2.2\out\src\commons.js:22:25

copy ./package.json to ./out/src/
re-run command from the pallet; it works!

sounds like something is off in your build script

Thank you , i have updated the extension. im closing this issue and let me know if you find such error again.

Works! :) thanks for the quick turn arround

actually i was trying to show automatic build release notes on updating the extension. I think adding option in the menu to get the release notes is better than opening automatically.


reset_index(inplace=True) creates column with the name index instead of original

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):  macOS Mojave 10.14.3 (18D109)
Modin installed from (source or binary): pip
Modin version: 0.4.0
Python version: 3.7.0
Exact command to reproduce: test_data.reset_index(inplace=True)

Describe the problem
reset_index(inplace=True) creates column with the name index instead of original
Source code / logs
Actual (Modin)
import modin.pandas as pd
import numpy as np

test_data = pd.DataFrame({
    'A': 1,
    'B': np.array([3] * 4, dtype='int32')
})
test_data.set_index('A', inplace=True)
test_data.reset_index(inplace=True)
test_data

Out[1]:
   index  B
0      1  3
1      1  3
2      1  3
3      1  3

Expected (Pandas)
import numpy as np
import pandas as pd

test_data_a = pd.DataFrame({
    'A': 1,
    'B': np.array([3] * 4, dtype='int32')
})
test_data_a.set_index('A', inplace=True)
test_data_a.reset_index(inplace=True)
test_data_a

Out[2]:
   A  B
0  1  3
1  1  3
2  1  3
3  1  3

Thanks @izdi, this was fixed in #553, and will be included in the next release. We are planning to release today or tomorrow depending on fixing a couple of bugs.
Thanks again for the report!

Fixed by #553


feat: stop deploying all undeployed accounts in state commit_accounts

Feature Request
Describe the Feature Request

check if the account exists before deploying (already in place)
check if the account SHOULD be deployed, i.e. has been scheduled for deployment, or is simply "touched" (e.g. only transfer value). this can be done with the hasNonceOrCode check -> nonce != 0 OR code is not empty

If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)

[ ] Yes
[ ] No

Closed by #526


Refactor detekt-with-type-resolution workflow

This workflow had some issues that I'm fixing on this PR:

It was called detekt-with-type-resolution but it had 2 different jobs and one of them didn't use type resolution.
The one without type resolution was called "plain" but in fact what it was doing was to execute the detekt cli. For that reason now the jobs are called cli and gradle.
We were uploading the sarif of both jobs. In general this means that we upload some issues twice. For that reason I'm not uploading the sarif generated by the cli job. It should be a subset of the issues that gradle finds so it's better to just upload the gradle sarif.

If you agree with these changes we will need to change which are the required jobs to pass to merge a PR.

Warnings

:warning:
This PR is approved with no milestone set. If merged, it won't appear in the detekt release notes.

  Generated by :no_entry_sign: dangerJS against 2b25aa71c1b862c221c33e1a50181494a1194c5c


Added instruction for deployment in production in README.md

@divyanshumehta status?

@divyanshumehta also try to add how to run it as a service. Eg: https://github.com/puma/puma/blob/master/docs/systemd.md
May be in another PR


Configurable GitLab S3 Bucket Names

S3 bucket names need to be unique within a partition across all AWS accounts and regions.  We will need a way to use unique names for the GitLab buckets.
We can use the original bucket names as a root in combination with another string.  We need to decide if we want to use:

Just a prefix
Just a suffix
Both prefix and suffix
Operator's choice (prefix and suffix are optional)

Going with suffix via variable


Memory Leak if decode404

I am currently hunting a memory leak and while debugging, i saw that, if the WebReactiveFeign sets decode404() then org.springframework.core.io.buffer.DataBufferUtils#release is never called. I am still not sure, but i believe that this causes a memory leak. have to dig into that deeper to actually find the regarding code in feign-reactive though, but maybe you have an idea already

@warmuuh  Thank you for this catch.
Fixed in 2.0.8.
Please check it from your side


Slim throws all Variables must have their device set: name: "global_step" after upgrade tensorflow to v1.0.0

When running slim example, Tensorflow v0.12.0 is OK, but Tensorflow v1.0.0 will throw exception:
org.apache.spark.api.python.PythonException: Traceback (most recent call last):
  File "/opt/cloudera/parcels/YSPARK-2.2.0-2.6.0.d20170305-11.04.04-success_flag-6b0cfd9fa51aca4536d7c3f2a4bbceae11a50339/lib/spark/python/lib/pyspark.zip/pyspark/worker.py", line 180, in main
    process()
  File "/opt/cloudera/parcels/YSPARK-2.2.0-2.6.0.d20170305-11.04.04-success_flag-6b0cfd9fa51aca4536d7c3f2a4bbceae11a50339/lib/spark/python/lib/pyspark.zip/pyspark/worker.py", line 175, in process
    serializer.dump_stream(func(split_index, iterator), outfile)
  File "/opt/cloudera/parcels/YSPARK-2.2.0-2.6.0.d20170305-11.04.04-success_flag-6b0cfd9fa51aca4536d7c3f2a4bbceae11a50339/lib/spark/python/lib/pyspark.zip/pyspark/rdd.py", line 2407, in pipeline_func
  File "/opt/cloudera/parcels/YSPARK-2.2.0-2.6.0.d20170305-11.04.04-success_flag-6b0cfd9fa51aca4536d7c3f2a4bbceae11a50339/lib/spark/python/lib/pyspark.zip/pyspark/rdd.py", line 2407, in pipeline_func
  File "/opt/cloudera/parcels/YSPARK-2.2.0-2.6.0.d20170305-11.04.04-success_flag-6b0cfd9fa51aca4536d7c3f2a4bbceae11a50339/lib/spark/python/lib/pyspark.zip/pyspark/rdd.py", line 2407, in pipeline_func
  File "/opt/cloudera/parcels/YSPARK-2.2.0-2.6.0.d20170305-11.04.04-success_flag-6b0cfd9fa51aca4536d7c3f2a4bbceae11a50339/lib/spark/python/lib/pyspark.zip/pyspark/rdd.py", line 346, in func
  File "/opt/cloudera/parcels/YSPARK-2.2.0-2.6.0.d20170305-11.04.04-success_flag-6b0cfd9fa51aca4536d7c3f2a4bbceae11a50339/lib/spark/python/lib/pyspark.zip/pyspark/rdd.py", line 794, in func
  File "/data/M00/tandem/wangyuming/TensorFlowOnSpark/tfspark.zip/com/yahoo/ml/tf/TFSparkNode.py", line 235, in _mapfn
  File "/data/M00/tandem/wangyuming/TensorFlowOnSpark/examples/slim/train_image_classifier.py", line 603, in main_fun
  File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/learning.py", line 715, in train
    init_fn=init_fn)
  File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 336, in __init__
    self._verify_setup()
  File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 881, in _verify_setup
    "their device set: %s" % op)
ValueError: When using replicas, all Variables must have their device set: name: "global_step"
op: "VariableV2"
attr {
  key: "_class"
  value {
    list {
      s: "loc:@global_step"
    }
  }
}
attr {
  key: "container"
  value {
    s: ""
  }
}
attr {
  key: "dtype"
  value {
    type: DT_INT64
  }
}
attr {
  key: "shape"
  value {
    shape {
    }
  }
}
attr {
  key: "shared_name"
  value {
    s: ""
  }
}

	at org.apache.spark.api.python.PythonRunner$$anon$1.read(PythonRDD.scala:193)
	at org.apache.spark.api.python.PythonRunner$$anon$1.<init>(PythonRDD.scala:234)
	at org.apache.spark.api.python.PythonRunner.compute(PythonRDD.scala:152)
	at org.apache.spark.api.python.PythonRDD.compute(PythonRDD.scala:63)
	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:323)
	at org.apache.spark.rdd.RDD.iterator(RDD.scala:287)
	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:87)
	at org.apache.spark.scheduler.Task.run(Task.scala:108)
	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:317)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

To run slim on Tensorflow v1.0.0, I use tf_upgrade.py update some code:
https://github.com/wangyum/TensorFlowOnSpark/tree/slim-tensorflow-1.0

This has nothing to do with TensorflowOnSpark. I got exactly the same error with python only (without using TensorflowOnSpark). Slim is totally broken under r1.0 and beyond the repair power of tf_upgrade.py. There does not seem to be an easy fix. If you figure out a way to fix this, please share with the community. Thanks.

@junshi15 Try this for local mode:
https://github.com/wangyum/TensorFlowOnSpark/blob/0426236caffa9c3502ba863594c0e0dc06620f88/examples/slim/train_image_classifier_origin.py

I was not clear. We know how to run single-node, but not multi-node with slim. it seems that once you have more than one workers, strange errors happen.

Any updates regarding this issue? I am trying to run multi node Slim.
I tried:
'global_step = tf.identity(slim.create_global_step(), name="global_step")'
But that just resulted in another error.

No solution found?

No solution found? (for multi node)

@tobiajo Have you tried tensorflow 1.1.0?

@wangyum yes and I have the same issue with v1.1.0. I have not tried with the TfOnSpark though, but with Python only. I created an issue for this on the tensorflow/models repo:
https://github.com/tensorflow/models/issues/1419
I have tried the current TfOnSpark workaround:
#with tf.device(deploy_config.variables_device()):
#  global_step = slim.create_global_step()
with tf.device("/job:ps/task:0"):
  global_step = tf.Variable(0, name="global_step")

But then I get the following error:
INFO:tensorflow:Starting Session.
INFO:tensorflow:Starting Queues.
INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.UnavailableError'>, {"created":"@1493329722.442957130","description":"EOF","file":"external/grpc/src/core/lib/iomgr/tcp_posix.c","file_line":235,"grpc_status":14}
2017-04-27 21:48:42.458561: E tensorflow/core/distributed_runtime/master_session.cc:1414] Cleanup partition error: Unavailable: {"created":"@1493329722.457980157","description":"OS Error","errno":104,"file":"external/grpc/src/core/lib/iomgr/tcp_posix.c","file_line":229,"grpc_status":14,"os_error":"Connection reset by peer","syscall":"recvmsg"}
2017-04-27 21:48:42.458624: E tensorflow/core/distributed_runtime/master_session.cc:1414] Cleanup partition error: Unavailable: {"created":"@1493329722.457980157","description":"OS Error","errno":104,"file":"external/grpc/src/core/lib/iomgr/tcp_posix.c","file_line":229,"grpc_status":14,"os_error":"Connection reset by peer","syscall":"recvmsg"}
2017-04-27 21:48:42.458680: E tensorflow/core/distributed_runtime/master_session.cc:1414] Cleanup partition error: Unavailable: {"created":"@1493329722.457980157","description":"OS Error","errno":104,"file":"external/grpc/src/core/lib/iomgr/tcp_posix.c","file_line":229,"grpc_status":14,"os_error":"Connection reset by peer","syscall":"recvmsg"}
2017-04-27 21:48:42.458720: E tensorflow/core/distributed_runtime/master_session.cc:1414] Cleanup partition error: Unavailable: {"created":"@1493329722.457980157","description":"OS Error","errno":104,"file":"external/grpc/src/core/lib/iomgr/tcp_posix.c","file_line":229,"grpc_status":14,"os_error":"Connection reset by peer","syscall":"recvmsg"}
2017-04-27 21:48:42.458814: E tensorflow/core/distributed_runtime/master_session.cc:1414] Cleanup partition error: Unavailable: {"created":"@1493329722.457980157","description":"OS Error","errno":104,"file":"external/grpc/src/core/lib/iomgr/tcp_posix.c","file_line":229,"grpc_status":14,"os_error":"Connection reset by peer","syscall":"recvmsg"}
2017-04-27 21:48:42.458849: E tensorflow/core/distributed_runtime/master_session.cc:1414] Cleanup partition error: Unavailable: {"created":"@1493329722.457980157","description":"OS Error","errno":104,"file":"external/grpc/src/core/lib/iomgr/tcp_posix.c","file_line":229,"grpc_status":14,"os_error":"Connection reset by peer","syscall":"recvmsg"}
2017-04-27 21:48:42.458880: E tensorflow/core/distributed_runtime/master_session.cc:1414] Cleanup partition error: Unavailable: {"created":"@1493329722.457980157","description":"OS Error","errno":104,"file":"external/grpc/src/core/lib/iomgr/tcp_posix.c","file_line":229,"grpc_status":14,"os_error":"Connection reset by peer","syscall":"recvmsg"}
2017-04-27 21:48:42.458922: E tensorflow/core/distributed_runtime/master_session.cc:1414] Cleanup partition error: Unavailable: {"created":"@1493329722.457980157","description":"OS Error","errno":104,"file":"external/grpc/src/core/lib/iomgr/tcp_posix.c","file_line":229,"grpc_status":14,"os_error":"Connection reset by peer","syscall":"recvmsg"}
2017-04-27 21:48:42.458957: E tensorflow/core/distributed_runtime/master_session.cc:1414] Cleanup partition error: Unavailable: {"created":"@1493329722.457980157","description":"OS Error","errno":104,"file":"external/grpc/src/core/lib/iomgr/tcp_posix.c","file_line":229,"grpc_status":14,"os_error":"Connection reset by peer","syscall":"recvmsg"}
2017-04-27 21:48:42.458986: E tensorflow/core/distributed_runtime/master_session.cc:1414] Cleanup partition error: Unavailable: {"created":"@1493329722.457980157","description":"OS Error","errno":104,"file":"external/grpc/src/core/lib/iomgr/tcp_posix.c","file_line":229,"grpc_status":14,"os_error":"Connection reset by peer","syscall":"recvmsg"}
2017-04-27 21:48:42.459018: E tensorflow/core/distributed_runtime/master_session.cc:1414] Cleanup partition error: Unavailable: {"created":"@1493329722.457980157","description":"OS Error","errno":104,"file":"external/grpc/src/core/lib/iomgr/tcp_posix.c","file_line":229,"grpc_status":14,"os_error":"Connection reset by peer","syscall":"recvmsg"}

The multi-node examples https://github.com/yahoo/TensorFlowOnSpark/tree/master/examples/imagenet/inception and https://github.com/yahoo/TensorFlowOnSpark/tree/master/examples/slim
work for me. However, the former supports only one GPU per node, the latter support multiple GPU, but the sync mode is broken, so you can only do async training.
@tobiajo I have not seen errors like yours. It seems like gRPC was broken, or you had network issues.

@junshi15 for some reason I get the gRPC error if the clone_on_cpu is set with the original example. Without it, the example works for me.
The implemented work around seems to solve this issue. Close?

@junshi15 for some reason I get the gRPC error if the clone_on_cpu is set with the original example. Without it and with the mentioned workaround, the example works for me.
The implemented workaround seems to solve this issue. Close?

It looks like the original problem has been solved. Closing this issue.


How use Server project

Hello @jimm98y
I want make my pc to onvif device and connect to other device via c#
can you help ?
what are steps ?
after i run sharponvif i couldn't see my pc on local network via onvif device manager  ,
what should i do ?

You have to run SharpOnvifService in Visual Studio as Administrator. Then your PC should become discoverable by Onvif Device Manager.

Thanks @jimm98y . I tested and my pc is discoverable .

Hi @jimm98y
please check this image .

I want to add a sample video for test
live-video and live-streaming But I can't .  how is it ?
thanks .

For video stream you need some RTSP url. To get it, you have to use some IP camera, or SharpRealTimeStreaming RTSP server https://github.com/jimm98y/SharpRealTimeStreaming/tree/main/src/SharpRTSPServer.
Then you have to update https://github.com/jimm98y/SharpOnvif/blob/main/src/OnvifService/Onvif/MediaImpl.cs and return your RTSP url from the GetStreamUri.

Thanks @jimm98y
I download rtsp server source and run it , it gives me this link rtsp://admin:password@<IP_ADDRESS>:8554
I test link in vlc and worked , now I want add this link for live-video or live-streaming option in onvif sharponvif project, I don't know how update function and return this link. could you help ?
Thanks.

Hello @jimm98y
I couldn't find how send stream url to Onvif device manager.
do you have any sample ?

Hi @masgh021
I have same Problem.

You have to put this URL here: https://github.com/jimm98y/SharpOnvif/blob/d2b26dd22b491d5a1a8335bb3e6df3b7c393c862/src/OnvifService/Onvif/MediaImpl.cs#L52C17-L52C61

The server sample now supports RTSP as well as PTZ from Onvif Device Manager.


All issue closed , Project Archive page designed , integrate with backend complete, Profile page post show complete

Good!


ScatterGL improvements

Add markers support (~FilledSquare and FilledCircle for now~ All existed marker types supported)
ScatterGLCustomWidth - new Plottable type with customizable width.
OpenGL have poor line width support. So ScatterGLCustomWidth manually draws thick lines using quads.
Lots of refactoring of existing GL code...

WinformsDemo updated to demonstrate this improvements.
            var spGLCustom = formsPlot1.Plot.Add.ScatterGLCustomWidth(formsPlot1, xs, ys);
            spGLCustom.LineStyle.Width = 15;
            spGLCustom.MarkerStyle = new MarkerStyle(MarkerShape.FilledSquare, 9, Colors.Red);

References:
This repository helped me a lot https://github.com/mhalber/Lines

Thanks for your work on this @StendProg!
I'm very impressed how fast these OpenGL-accelerated scatter plots are 🚀

I'm very impressed how fast these OpenGL-accelerated scatter plots are 🚀

The magic is that we don't copy data from the CPU to the GPU every time. In my tests, if you start doing this, the performance of ScatterGL and regular Scatter using Skia is very close.

Very helpful, it solved my problem


[9.x] Completely lazy load console commands when resolving

This follows up PR #34873
This is a minor refactoring which allows complete lazy loading of registered class based commands. This means no reading of the files from disk due to the ::getDefaultName() call.

Is this a new Symfony Console feature?

It's related to this feature: https://symfony.com/doc/current/console/lazy_commands.html
@paras-malhotra added support for it in PR #34873 and this PR follows on from that by avoiding a ::getDefaultName() lookup which would cause the console command to be read from disk. Symphony internally will use the registered loader to get a full list of the commands and lazily load when needed.

Simply running "php artisan list" is broken for me:

Now fixed:

@taylorotwell how do you feel about allowing artisan commands to be called by class name?
This doesn't sound all that useful on the face of it - but it would allow being able to schedule commands without having to resolve them:
php artisan Illuminate\Foundation\Console\RouteListCommand

This would allow you to do something like this in App\Console\Kernel.php:
protected function schedule(Schedule $schedule)
{
    $schedule->command(DeleteAccountsCommand::class)->hourly();
}

Currently you CAN register your classes like this, but unfortunately it means they are all resolved through the container currently
/**
 * Add a new Artisan command event to the schedule.
 *
 * @param  string  $command
 * @param  array  $parameters
 * @return \Illuminate\Console\Scheduling\Event
 */
public function command($command, array $parameters = [])
{
    if (class_exists($command)) {
        $command = Container::getInstance()->make($command)->getName();
    }

    return $this->exec(
        Application::formatCommandString($command), $parameters
    );
}

By allowing commands to be called by class names you could remove that resolving.

@garygreen what was the reason for list not working - I'm a little worried about the stability of this PR if that didn't work 😅

@taylorotwell I can totally understand that.
It was due to not setting a default type here - so when attempting to loop over the list looking for a command it errored.
src/Illuminate/Console/ContainerCommandLoader.php
  /**
   * A list of class names.
   *
   * @var array
   */
  protected $classes;

Changed to:
  /**
   * A list of class names.
   *
   * @var array
   */
  protected $classes = [];

Let me do some more testing because it's odd that getNames() was called at all when calling a command that is defined outside of the loader - I suspect something inside Symphony is doing that.

@garygreen so to clarify, based on my testing, this seems to only be for application defined commands, not for Laravel's own internal commands, right?

At least running any built-in Laravel commands this never hits:

Marking this as draft while you're working on it. Feel free to mark as active when it is ready.

I've done some further tests on this - as it stands with this PR it will now defer resolving of most of Laravel core commands (aside from a few that don't have a defaultName - but those will just resolve straight away)
In terms of numbers of what this PR does:
Current PR: around 0.5MB memory reduction (-4%), 10ms decrease.
This stat is quite disappointing. However, what I really wanted to do initially with this PR is to completely prevent loading of the command classes. To do this would require caching the command map/list. I've got an initial implementation working locally which yields much more promising numbers:
Caching commands: around 2.5MB memory reduction (-17%), 33ms decrease
I'm thinking this would cache the list of commands in bootstrap/cache/commands.php:

And to generate the list you would use the optimize command. If you haven't generated the list... your app works exactly as before. It's purely optional. Alternatively maybe there is a way to hook into the deferred service provider concept - but be able to register deferred classes instead of a service provider (that way it can reuse the services.php file to list the command => class map)
I would be intrigued to see what effect this has on larger apps - @taylorotwell you have a Laravel service which is a UI library from what I remember and it's heavy on commands? Would you be willing to test on that if I update this PR?
If you want me to carry on with this PR and the caching idea let me know


Closes #302 updated readme to use PyPI

Reminder to copy the install updates to the readthedocs source (docs/INSTALL.rst)


Add HL7 Helper Methods to SDK

Below are two bots for our integration between customer and their 3rd party lab. There are a lot of helper functions in here that make the code longer than it needs to be. Most of these are parsing/formatting utilities for the HL7 format that could live inside our core repo. The uploadMedia function would also be good to move into the medplum client
https://docs.google.com/document/d/14OYwKewgiUqmUoMfvbRL5tQVcHNJwEVItYG6Mu-5mrc/edit

@rahul1  - Can you take a quick pass at listing which functions you think would be good candidates for @medplum/core?  Then we can assign to engineering to move them over.


Installation help

help please im trying to set this up and i get this

works nice but i got question how am i  suppose to do the

config

never mind i found out


Desktop widget

You can create a widget that will appear on the desktop as an extension of the application?
Thanks

This is not planned.


add support for okta provider

Has support for OKTA been integrated now?

@jaysonwor no this is not currently yet implemented

See https://github.com/redhat-cop/group-sync-operator/pull/79 for a implementation of it.

Implemented as part of v0.0.11


Improve the examples for the resource module (#12906)

Issue: #12906
Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

add to S169

@Juliehzl please help review this PR


Can't load an asset.

Just wanted to play the game a little bit. Was kind of confused as to why this is happening (if I knew how to use pygame I would try and fix it)

Kind of confused with this one.

I couldn't seem to reproduce the issue from a fresh clone, neither on my normal python install or on a fresh virtual environment.
It could be a requirements issue, where pygame loads sounds differently on more recent versions. Would you mind giving the outputs of py --version and py -m pip show pygame?
If you want to help isolate the problem, you can also create a virtual environment by running these (from inside the python-play-tanks directory):
py -m venv .venv
.venv\Scripts\activate.bat
py -m pip install -r requirements.txt
and then trying to run again.


Fix basic example in README.md

-1 for that. My guess is that you are using an older version of Monolog while looking at the readme of version 3

hmm yeah you're right!


Unable to redeploy due to missing hostname.env

I needed to make custom changes to via ./custom/customPostgresql.conf , but when I run ./deploy.sh -f I receive an error:
ERROR: You did not set your hostname in hostname.env! Do it like this:
LEMMY_HOSTNAME=example.com

I've tried creating this file in the Lemmy-Easy-Deploy and Lemmy-Easy-Deploy/Live directories, but the error persists.
admin@localhost:~/Lemmy-Easy-Deploy$ sudo ./deploy.sh -f

WARNING: Force deploying; this will regenerate configs and deploy again even if there were no updates
Passwords will NOT be re-generated

========================================
Lemmy-Easy-Deploy by ubergeek77 (v1.2.7)
========================================

Detected runtime: docker (Docker version 24.0.4, build 3713ee1)
Detected compose: docker compose (Docker Compose version v2.19.1)
   Runtime state: OK

ERROR: You did not set your hostname in hostname.env! Do it like this:
LEMMY_HOSTNAME=example.com

There's also discrepancies in documentation about the file name to use for customPostgresql.conf
On https://github.com/ubergeek77/Lemmy-Easy-Deploy it says ./custom/customPostgresql.conf
But on https://github.com/ubergeek77/Lemmy-Easy-Deploy/blob/main/ADVANCED_CONFIGURATION.md it says ./custom/customPostgres.env

Ok, the error message you saw is just wrong and it's been like that this entire time apparently. Whoops. You'll need to edit config.env like in the readme. If you're seeing this message, you already have a config.env, so all you have to do is edit it and set a hostname. I'll go and get that message fixed though.
For the postgres stuff, no discrepancies - one of them sets environment variables, and the other passes a custom .conf file into the container 👍

Thanks for the quick reply. I just found this out right as you responded and changing in config.env did resolve the issue. I'm not sure how I missed that hostname value or how the initial deployment worked without it :D

Thanks for pointing it out! I went and re-tagged 1.2.7 with that silently fixed.
For your postgres stuff, remember that the customPostgresql.conf file will be mounted inside the container as postgres.conf, and the customPostgresql.env file defines a set of environment variables to pass onto the container. Chances are, you'll want the .conf one!


qsv: init at 0.112.0

Description of changes
Initialize the qsv package at version 0.108.0.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

@SuperSandro2000 I think I addressed all of your feedback!

@SuperSandro2000 It looks like the x86_64-darwin tests are failing because of a vendored cargo dependencies failure. Is it expected that those dependencies will have different hashes for different platforms?

Is it expected that those dependencies will have different hashes for different platforms?

not really. Can you diff them? Maybe we can just rm some files to match them.

Can you diff them?

Not sure how to do that? Do I need a mac? I don't have one at the moment.

Hi all, I'm very interested to use qsv on NixOS
I would like to help with the Linux build if needed
Thanks so much in advance and happy new year!

Superseded by #296424.


Create common data services for vital signs

Extract vital signs for blood pressure from both patient and provider app.
Look for common functions.
Create these into common data service API.
Create this as a branch in the provider app repo.

How do we QA this?

start with provider app; modify locally.

Added initial project to git repository with basic attributes in VitialSigns Observation, to get Blood pressure information: https://github.com/chronic-care/eCareCommonDataServices


[BUG] Sorting is not working after I apply auto filter

🐛 Bug Report

Sorting is not working after I apply auto filter
We create excel file using below code and try to sort on filters but it gets closed unexpectedly.
Lib version: 4.3.0
Steps To Reproduce

const ExcelJS = require('exceljs');

// Create a new workbook and add a worksheet
const workbook = new ExcelJS.Workbook();
const worksheet = workbook.addWorksheet('Sheet1');

// Add data to the worksheet
worksheet.addRow(['Name', 'Age', 'City']);
worksheet.addRow(['John Doe', 30, 'New York']);
worksheet.addRow(['Jane Smith', 23, 'London']);
worksheet.addRow(['Jane Smith', 21, 'PAk']);
worksheet.addRow(['Jane Smith', 20, 'India']);
worksheet.addRow(['Jane Smith', 33, 'London']);

// worksheet.mergeCells('B2:C2');
// worksheet.getCell('B2').value = "flight not found";

// Enable filters on the desired columns
worksheet.autoFilter = {
  from: {
    row: 1,
    column: 1
  },
  to: {
    row: 3,
    column: 3
  }
};
// Save the workbook to a file
workbook.xlsx.writeFile('output.xlsx')
  .then(function() {
    console.log('Excel file created successfully.');
  })
  .catch(function(error) {
    console.log('An error occurred while creating the Excel file:', error);
  });

Open created excel and try to apply sorting on filters the gets closed unexpectedly.

The expected behavior:
Opened created file should  be able to apply sorting on columns

Please let us know if any solution is there or there is another way of implementation

@ShyamL1319 The excel generated after running your code locally to me is sorting properly, and is now a screenshot in ascending order by Age. What software are you using to open it, I am using WPS.

@zurmokeeper  I am  facing the same issue with autofilter i am using MS Excel for open my file. In my case after applying filter sorting is working but if i try to sorting without filter excel is  unexpectedly closed.  and  the same filter  is  working well in wps excel  If you want i can share my code. and this is  the file i am  facing issue with.
Stocklist-15-8-2024 1140114.xlsx

@ShyamL1319 did you find any solution ?


app not start

App Not start in bsgs mode . why ?

Good afternoon.
I also faced such a problem. This applies to the version for Windows.
After creating the bloom filter, it just crashes without any messages.
The Linux version works stably.
The only thing is that creating a bloom filter at the last 2-5 percent slows down very much, since only one processor thread remains in operation.


[Enhancement] Time trial

I like it on the app and I think it should be added to the browser version.

That would be cool

Maybe add a button on the botton that starts a timer as well as the game while saving the previous game.


Get-ISHS3Object.ps1 does not return the file information when the object is already available locally

When the object (file) is not available, Copy-S3Object returns the file reference/object.
Otherwise, nothing is retuned from Get-ISHS3Object.ps1.
Get-Item -Path $localFile should be returned.

Fixed through pull request: #46


Multiple hooks? Should the callback be a slice?

As of right now if a user does this
package main

import (
	"fmt"

	"github.com/teeworlds-go/go-teeworlds-protocol/messages7"
	"github.com/teeworlds-go/go-teeworlds-protocol/teeworlds7"
)

func main() {
	client := teeworlds7.Client{Name: "nameless tee"}

	client.OnChat(func(msg *messages7.SvChat, defaultAction teeworlds7.DefaultAction) {
		fmt.Printf("uwu")
	})

	client.OnChat(func(msg *messages7.SvChat, defaultAction teeworlds7.DefaultAction) {
		fmt.Printf("owo")
	})

	client.Connect("<IP_ADDRESS>", 8303)
}

It only prints "owo" and the "uwu" callback is lost. Making the callback a slice and iterating all of them would make the library code more complex but the users code more flexible. If it was a slice a user could register multiple "event listeners" for chat messages from different contexts/scopes/components and they all get run instead of overwriting each other.

Okay I decided to give it a go. Now both uwu and owo are printed. Now users could first register a firewall using OnPacket and then also handle all remaining packets in a new OnPacket hook. This is also nice for mixing multiple downstream libraries. Think web framework middleware.
Problem now is that defaultAction() might be called twice. Then the chat message is called twice.
	client.OnChat(func(msg *messages7.SvChat, defaultAction teeworlds7.DefaultAction) {
		defaultAction()
		fmt.Printf("uwu")
	})

	client.OnChat(func(msg *messages7.SvChat, defaultAction teeworlds7.DefaultAction) {
		defaultAction()
		fmt.Printf("owo")
	})

An alternative would be doing something similar to OnPacket and OnError which return a bool. And if false is returned the next hook and ultimately the default hook is not run. So everyone individual callback if high enough in the chain can hijack the entire msg fully handle it and respond and then drop all further callbacks. Disadvantage is that a callback can not influence the order. With the defaultAction() you can place your code first then call defaultAction() and after that do some cleanup.
Another option would be a next() function instead of a defaultAction(). So not calling next() will not run the next callback and ultimately also not the default callback. I think this is what nodejs does but I never used it so idk if I like it. For now I will not do it.