Moving objects into scenes

The main reason I made some objects outside of make-scene (in a let*) in shapes example 3 was to reference the previous objects. In the commit message of https://github.com/defun-games/claylib/pull/11/commits/8582e0e4f6f111e029b730535643cfc8ffb85f52 I outline my concern with what I've done here as a workaround.
I think I mentioned it before when talking about improving the scene stuff, but it would be nice if references to earlier bindings were possible in make-scene's asset and object lists. Not really sure how much macro-fu that would take, or if it's feasible at all.
Any thoughts, @shelvick?

Oh, I always have thoughts. They may not be helpful or productive thoughts, but I have them. ;-)
Let's look at some pseudocode that might represent a real-world game:
(defvar *assets* (list (make-texture-asset ...) (make-model-asset ...) ...))
(defvar *level-1* (make-scene `((texture-1 ,(car *assets*))
                                (model-1 ,(cadr *assets*))
                                ...)
                              `((platform-1 ,(make-platform ...))
                                (enemy-1 ,(make-enemy ...))
                                ...)))
(defvar *level-2* (make-scene `((texture-1 ,(car *assets*))
                                (model-1 ,(cadr *assets*))
                                ...)
                              `((platform-1 ,(make-platform ...))
                                (enemy-1 ,(make-enemy ...))
                                ...)))

(with-window ()
  (with-scene *level-1* (:free-assets :later)
    (do-game-loop (:end (level-1-completed))
      (level-1-game-logic)
      (with-drawing
        (draw-scene-all))))
  (with-scene *level-2* (:free-assets :later)
    (do-game-loop (:end (level-2-completed))
      (level-2-game-logic)
      (with-drawing
        (draw-scene-all)))))

Now you may notice I've taken the liberty to add a few missing features here. But this is a pattern I expect a lot of simpler games will follow -- defining the assets and scenes up front, separating out game logic into functions, freeing objects between scenes but holding onto the assets. Fairly different from the examples we've written up to this point, but we can follow it more closely now that you've done us the amazing favor of package-ifying them all.
Does that address the comment you made in your commit? If make-scene is able to reference its own assets and objects, then the issue with freed objects still having references outside of a scene becomes moot, I think.

I think I mentioned it before when talking about improving the scene stuff, but it would be nice if references to earlier bindings were possible in make-scene's asset and object lists. Not really sure how much macro-fu that would take, or if it's feasible at all.

Not sure off the top of my head the best way to do that, but I'll figure it out. I'm realizing it will be pretty important.

If make-scene is able to reference its own assets and objects, then the issue with freed objects still having references outside of a scene becomes moot, I think.

Yeah this makes sense, so in some cases where you might need the same objects in different scenes you could pull the common objects into *objects* and use :free-objects :later.

Fairly different from the examples we've written up to this point, but we can follow it more closely now

Okay, I'll follow a similar pattern from now on.
And since my concern is dismissed, this PR should be able to be merged.

Hey, I just got the new version of make-scene working. :-) It's a macro now, so the syntax has changed a bit. And yes, getting all the quoting right was fairly painful, but let's not talk about that. See the first texture example.
It did create some conflicts with your latest changes, though. Want to do the honors?

That was quick!

Want to do the honors?

Sure, I'll do that now.

Okay it should be good to go. The new make-scene invocations are sleek!

I just made the same changes in the existing commits so it's cleaner. Not touching it anymore!


non-domain joined machine

Dear MS,
Could you clarify how the following works:
"If your machine is not domain joined to an AD DS, you may still be able to leverage AD credentials for authentication if your machine has line of sight of the AD domain controller."
We have tried a non-domain joined machine which has line of sight Windows AD DS but we just get denied access when prompted for a user name and password.
Could you confirm what is required for non-domain joined machines to gain access to the Azure File Shares which are configured with Windows ADDS hybrid identity?
The non-domain joined machine is running Windows 10.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: fba964be-3f77-d80c-f1a5-35bb1430bb8f
Version Independent ID: fe70b11e-10fe-5a8c-1fad-b22a83693503
Content: Overview - On-premises AD DS authentication to Azure file shares
Content Source: articles/storage/files/storage-files-identity-auth-active-directory-enable.md
Service: storage
Sub-service: files
GitHub Login: @roygara
Microsoft Alias: rogarana

@ Firstly apologies for the delay response! I'd recommend posting your question in https://azure.microsoft.com/en-us/support/community/ since it's not directly related to the documentation. We'll follow up there. We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
These accounts are not synced yet to Azure AD. The current AD Connect is configured with ADFS authentication and no password hash sync. For their on-prem admin accounts they use a local UPN like<EMAIL_ADDRESS>.  if they sync these accounts to Azure AD with the on-prem UPN, the synced Azure AD user will automatically configured with the<EMAIL_ADDRESS>UPN (they will not apply the public routable domain to the admin accounts UPN) will the authentication with Azure Files work in this case? Yes, this will work. you will continue to use the local UPN for authentication against AD.
The UPN doesn’t have to be the same between on-prem and Azure AD. It can be different. When AD authentication against with AD domain controller, it will receive a authenticated token. The client will use the token to connect to Azure Files for authorization. The token will include the AD SID, we look up the mapped Azure AD account based on the SID not the UPN.
https://docs.microsoft.com/en-us/azure/storage/files/storage-files-active-directory-overview#ad-ds


Fixing MM-33118

Summary
Fixing MM-33118
Ticket Link
MM-33118

@hmhealey @asaadmahmood FYI on prioritizing this before Feb 24th Cloud release if you're able to.

Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour.

Trying to auto merge this PR.

Pull Request successfully merged
SHA: 4cf1ffe85216da8395b2dc1a82b4fccdf8146ce6

/cherry-pick cloud

Cherry pick is scheduled.


feat: 🔥 add generator for shapes

✅ Closes: #98
PR Checklist
Please check if your PR fulfills the following requirements:

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

PR Type
What kind of change does this PR introduce?

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

What is the current behavior?

Issue Number: #98
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information

@michaelxvoelker can you pull the latest changes and fix your conflicts please 😊 Then i'll approve and merge

Again :)


Minor: add explicit return type to Retry.apply

Travis failures can be ignored.  Thread dump added for #774 incorrectly killed one job by flooding Travis's console.  Pretty sure the other was a 403 from github (#817).


Self nominate to join the org to be able to trigger test

I want to join this org to be able to trigger test for future contributions.
Thanks for the pointer from https://github.com/kubeflow/manifests/pull/1255#issuecomment-644770161

/lgtm
/approve


Harmonic: Address some todos

🎉 New feature
Summary
Harmonic: Address some todos
Required https://github.com/gazebosim/gz-msgs/pull/365
Checklist

[ ] Signed all commits for DCO
[ ] Added tests
[ ] Added example and/or tutorial
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] Consider updating Python bindings (if the library has them)
[ ] codecheck passed (See contributing)
[ ] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@ahcorde Is this blocked on another PR/branch?  Builds are failing.

@osrf-jenkins run tests please!


coredns: response message always set recursion available (RA) when RD is set in request

Set recursion available in all response message by setting RA flag in
response packet.
Closes: https://github.com/containers/aardvark-dns/issues/204

/hold need to verify if we should check RD (Recursion Desired) flag in the request packet and not always set RA.

PR should be good but lets wait for https://github.com/containers/aardvark-dns/pull/208

PR is good for review and merge. @mheon @baude PTAL

CI seems broken, but it doesn't look like your PR; could be a more general thing?

@cevich Looks like the new VM is missing configured rust stable, could it happen cause we update the VM.

could it happen cause we update the VM.

Most probably.  Here's what happes at image-build time:
https://github.com/containers/automation_images/blob/main/cache_images/fedora-netavark_packaging.sh#L72-L76
So if I understand correctly, we need to add 'default' to the end of that?  Better yet, since y'all probably know better than I, just open up a PR in that repo. to fix it.  It will build new images in about an hour that you can then test in this PR.

This is good to merge now.

/lgtm

/hold cancel

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2124416


Changed location to The Story Museum :book:

Changed the map and link to point to the Story Museum ready for the next meetup.
If we are going to be alternating between meetup and social venues it might be best to change things to include that somehow.

✨📖✨

:+1:, hopefully we'll settle on a permanent-ish venue pretty quickly.


Integrating checks in applications build pipeline

This PR add section to show sample docker file for a containerized python application with a stage  to execute the static code analysis (pyflakes, pycodestyle and pydocstyle) against the python code.

Please, break this out into a separate file and link to it. Ideally, we could integrate it into something like agogosml ( https://github.com/Microsoft/agogosml ) and point to that example as well.


svg transform gets applied twice

[X] You are using the latest version
[x] You are testing using the non-minified version of html2canvas and checked any potential issues reported in the console

Bug reports:
html2canvas reapplies transforms to svg already transformed.
https://jsfiddle.net/vqnpx582/
I mentioned this behavior in an answer to this stack overflow question
That is also where some of the jsfiddle code comes from.
Here is a shorter example:
https://jsfiddle.net/u79hzmpg/
This does not apply to a div with transform.
It also does not matter if transform is in css or inline, it gets applied twice in both cases.
Specifications:

html2canvas version tested with: 1.4.1
Browser & version: Firefox 104.0.2 (64bit)
Operating system: archlinux, although I observed this under Windows too.

Facing same issue. I wanted to get the image of leaflet map with os vector tiles. Html2Canvas works fine for the map, but the drawings (polygons) on the map have been shifted. I inspected  the polygon and it was inside parent svg tag which had a transformation. I did not apply the transformation myself. It seems that the transformation values are updated when the map's view size is changed. I checked this by resizing the browser window. Anyways, the same transformation is being applied again (once or maybe multiple times) to the polygon by Html2Canvas which results in it being in an incorrect position when the image is generated. Any help would be appreciated.

Hi @waleedbintariq1, issue is still present in library, did you come up with some solution?

@peterlacko Hi, its been a while since I worked on this problem. I don't think I actually found any solution for this. in Html2Canvas Instead, I used dom-to-image library to get the map's image.

I encountered the same issue, and I found that it was caused by the transition property in the styles. I'm not sure if you're facing the same problem.

Hi @tanatuosi, for me translate property is the problem but I ended up updating it just before conversion so that the resulting pdf is correct. Far from ideal solution though

Facing the same problem.


add mongo consumer

Add a mongo_consumer container that reads from kafka topics *.bluesky.documents and writes into mongo.

I co-sign what @danielballan said.


Anigifs of old format need to be redone with beta features

All of the animated gifs in static/skillmap/mole and static/skillmap/balloon need to reflect the new instructions/UI.
Code.org submission is Friday, so EOD 9/30 is our deadline.
You can find the skillmaps for capturing the images here:
https://arcade.makecode.com/--skillmap?debugCompleted=1#docs:/test/skillmap/mole
https://arcade.makecode.com/--skillmap?debugCompleted=1#docs:/test/skillmap/balloon

There are 38 GIFs between those 2 skillmaps.

There are, indeed.  That's why I need help.  I'd do them myself, but I have three videos to film and edit by Friday.

Not all of these are out of date, is that correct?

There are several things that changed because the variables have new defaults in the toolbox (which is enough to change them, since these are essentially the "answer key" to the step) but also there are places where two sets of actions are now combined into one because of the new defaults.
For example, choose-mole looks mostly right, except that the block says "Player" when you start and gets changed to "Enemy" at the end, which is no longer the case.
If there's no difference between what you see now and what the anigif shows, there's no need to re-create…but if the variable names, Kinds, label text, number values, pre-selects are different now, then we'll get dinged by the Code.org teachers for being confusing.

GIFs to update for mole:

[ ] /static/skillmap/mole/game.gif
[ ] /static/skillmap/mole/add-sprite.gif
[ ] /static/skillmap/mole/choose-mole.gif
[ ] /static/skillmap/mole/game-update.gif
[ ] /static/skillmap/mole/choose-hammer.gif
[ ] /static/skillmap/mole/add-controller.gif
[ ] /static/skillmap/mole/add-overlap.gif
[ ] /static/skillmap/mole/overlap-move.gif
[ ] /static/skillmap/mole/countdown.gif
[ ] /static/skillmap/mole/add-label.gif
[ ] /static/skillmap/mole/add-music.gif
[ ] /static/skillmap/mole/add-animation.gif

GIFs to update for balloon:

The certificate is updated, I just need to merge my PR for that.  Otherwise, looks good!


how can i send additional data to header

I am using laravel for the server side, in the route for security purpose I am checking for two parameters  api key and a token in header, only if these key  is present the route will allow the further actions. I have done the normal signin and signup with satellizer itself and there i added my header at the place of userData in satellizer.js but while using facebook and google its not possible an error occurred as 401 (unauthorized) . But when I removed the line checking for my api key and token the signin was successful. How can I add these two parameters in the header as this is related to security of my website.
Screen shot of my error : http://prntscr.com/5t4lm9

If I understand your intention correctly, you would like to override HTTP interceptor that adds token to the header? And you wish to add an additional piece of information - api key?
.config(['$httpProvider', 'satellizer.config', function($httpProvider, config) {
      if (config.httpInterceptor) {
        $httpProvider.interceptors.push(['$q', function($q) {
          var tokenName = config.tokenPrefix ? config.tokenPrefix + '_' + config.tokenName : config.tokenName;
          return {
            request: function(httpConfig) {
              var token = localStorage.getItem(tokenName);
              if (token) {
                token = config.authHeader === 'Authorization' ? 'Bearer ' + token : token;
                httpConfig.headers[config.authHeader] = token;
              }
              return httpConfig;
            },
            responseError: function(response) {
              return $q.reject(response);
            }
          };
        }]);
      }
    }]);

Thank you for your reply. I need to send two piece of data X-Api-Key and csrf token to the header. I don't  know  how to append these two data to the header I don't need to append Authorization to the header.For normal signup I have appended the keys as below:
local.signup = function(user) {
var deferred = $q.defer();
       var headers = {
                          'X-Api-Key' : 'jjhjdhjdhfvhf8485jdhfjdhjfdhjfdrgr',
                          'X-Csrf-Token':user.csrf
                         };
      $http.post(config.signupUrl, user, {headers:headers})
        .then(function(response) {
          if (config.loginOnSignup) {
            shared.saveToken(response, deferred);
          } else {
            $location.path(config.signupRedirect);
            deferred.resolve(response);
          }
        })
        .catch(function(response) {
          deferred.reject(response);
        });

      return deferred.promise;
    };

This function is working perfect but when signin with fb and google its not getting appended.

local.signup is for email and password login. For OAuth providers you will have to modify this code:
oauth2.exchangeForToken = function(oauthData, userData) {
            var data = angular.extend({}, userData, {
              code: oauthData.code,
              clientId: defaults.clientId,
              redirectUri: defaults.redirectUri
            });

            if (oauthData.state) {
              data.state = oauthData.state;
            }

            angular.forEach(defaults.responseParams, function(param) {
              data[param] = oauthData[param];
            });

            return $http.post(defaults.url, data, { withCredentials: true });
          };

Did you get it to work @sanamk ?

Sorry for the delay reply I was on travel so I couldn't reply . Now its
working thank you for your great support.
Best regards,
Sanam Nath | Account Manager
Office: Tamilnadu, Kerala  | Ph:<PHONE_NUMBER>
Email<EMAIL_ADDRESS>http://qbics.in  |  Skype: sanamnath.k
www.estia.co.in http://www.estia.co.in/   /   Software Development
/   Server & Tele-service
This message is private and confidential. Any views or opinions expressed
are solely those of the author and do not necessarily represent those of
Estia Technologies LLP. If you have received this message in error, please
notify us immediately via email to i<EMAIL_ADDRESS><EMAIL_ADDRESS>On Sun, Feb 1, 2015 at 7:00 AM, Sahat Yalkabov<EMAIL_ADDRESS>wrote:

Closed #252 https://github.com/sahat/satellizer/issues/252.
—
Reply to this email directly or view it on GitHub
https://github.com/sahat/satellizer/issues/252#event-228071210.

Great! :+1:


feat(primitives): refactor out non-derivation-specific types from kona-derive

#135  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @refcell and the rest of your teammates on  Graphite


fix clang issues

fix issues similar to
/jsonrpcpp/include/jsonrpcpp.hpp:103:2: error: definition of implicit copy constructor for 'NullableEntity' is deprecated because it has a user-declared destructor [-Werror,-Wdeprecated]

merci!


#112: Utility script for test suite in Docker

Changes in this PR

Add convenience script script\spec that runs our tests within Docker.
Update documentation with doc\clean-up.md that shows how to kill and remove running containers and volumes.

Rather than hard coding rake, can we have the script accept input that defaults to rake, but would allow passing rspec, rubocop or other commands. This way it is more flexible and we don't force the default task. One of the other scripts does this so you can copy that.


Please confirm these before moving forward

[X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[X] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue
Installer hash mismatch.
Brief description of your issue
This applies to:
Microsoft.DotNet.DesktopRuntime.6
Microsoft.DotNet.DesktopRuntime.5
Microsoft.DotNet.DesktopRuntime.3_1

The x86 versions are missing.
Download links:
https://dotnet.microsoft.com/en-us/download/dotnet/3.1
https://dotnet.microsoft.com/en-us/download/dotnet/5.0
https://dotnet.microsoft.com/en-us/download/dotnet/6.0

Microsoft.DotNet.DesktopRuntime.5 is not correctly identified by Winget:

x86 versions are misidentified after I manually installed them (they have the same identifier as x64 versions):

Steps to reproduce
winget list
Actual behavior

x86 versions missing
Microsoft.DotNet.DesktopRuntime.5 misidentified
x86 versions misidentified

Expected behavior
Being able to use Winget to install x86 versions and correctly identify them.
Environment
Gerenciador de Pacotes do Windows v1.3.2091
Copyright (c) Microsoft Corporation. Todos os direitos reservados.

Windows: Windows.Desktop v10.0.19044.2006
Arquitetura do Sistema: X64
Pacote: Microsoft.DesktopAppInstaller v1.18.2091.0

Screenshots and Logs
No response

I guess the 3rd problem is duplicate of https://github.com/microsoft/winget-cli/issues/2448, but at least IMO 1 and 2 are different

The x86 links are there. Use winget install Microsoft.DotNet.DesktopRuntime.5 --architecture x86 to install the x86 version
https://github.com/microsoft/winget-pkgs/blob/8d373efba3b79e307a92029a2576c6f2eb40a33d/manifests/m/Microsoft/DotNet/DesktopRuntime/5/5.0.17/Microsoft.DotNet.DesktopRuntime.5.installer.yaml#L28-L35
https://github.com/microsoft/winget-pkgs/blob/8d373efba3b79e307a92029a2576c6f2eb40a33d/manifests/m/Microsoft/DotNet/DesktopRuntime/3_1/3.1.29/Microsoft.DotNet.DesktopRuntime.3_1.installer.yaml#L21-L30
https://github.com/microsoft/winget-pkgs/blob/8d373efba3b79e307a92029a2576c6f2eb40a33d/manifests/m/Microsoft/DotNet/DesktopRuntime/6/6.0.9/Microsoft.DotNet.DesktopRuntime.6.installer.yaml#L31-L40

Created a PR to fix the correlation, linked above

They aren't misidentified at all. They have the same package identifier in the output because they do have the same identifier, and they are intended to. Certainly microsoft/winget-cli#2448 is an issue, but this isn't a case where the identifiers are intended to be separate. If they were intended to be separate the Installation guide wouldn't install the architecture which is applicable to the system. With them being the same package identifier, the x86 runtime will be installed on x86 versions of Windows and the x64 runtime will be installed on x64 versions of Windows unless the --architecture switch is specified

3. They aren't misidentified at all. They have the same package identifier in the output because they do have the same identifier, and they are intended to. Certainly [x86 is detected outdated, x64 is installed despite already up-to-date winget-cli#2448](https://github.com/microsoft/winget-cli/issues/2448) is an issue, but this isn't a case where the identifiers are intended to be separate. If they were intended to be separate the [Installation guide](https://learn.microsoft.com/en-us/dotnet/core/install/windows?tabs=net60#install-the-runtime) wouldn't install the architecture which is applicable to the system. With them being the same package identifier, the x86 runtime will be installed on x86 versions of Windows and the x64 runtime will be installed on x64 versions of Windows unless the `--architecture` switch is specified

Thank you. However, I don't totally understand why the x86 versions aren't separate packages. Correct me if I am wrong, but some programs need x86 versions of .NET Desktop Runtimes, even in x64 systems.
For example, Microsoft Visual C++ Redistributables have different packages for x86 and x64 architectures, because the x86 version may be necessary in x64 systems.
However, as .NET Desktop Runtimes doesn't have both versions as separate packages, does it mean it's not necessary to install the x86 versions when the x64 ones are already installed?

I'm not an expert on the .NET runtimes; Perhaps when this gets triaged someone from MSFT can chime in on that question

x86 versions when the x64 ones are already installed

I can confirm that (at least for certain versions of .NET) this is not the case. I've seen apps that try to install the x86 runtime on x64 and refuse to run without it. They shouldn't be doing that, but they do.

This also seems related to https://github.com/microsoft/winget-cli/issues/2129


ci: remove doc stores from eval tests

Goals:
Remove all storage backends from the evaluation tests. The CI just can't take it

Codecov Report
Base: 85.15% // Head: 77.19% // Decreases project coverage by -7.96% :warning:

Coverage data is based on head (836ba44) compared to base (a5493e9).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1013      +/-   ##
==========================================
- Coverage   85.15%   77.19%   -7.97%
==========================================
  Files         155      155
  Lines        8058     8058
==========================================
- Hits         6862     6220     -642
- Misses       1196     1838     +642

Flag
Coverage Δ

docarray
77.19% <ø> (-7.97%)
:arrow_down:

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

Impacted Files
Coverage Δ

docarray/array/mixins/io/csv.py
23.07% <0.00%> (-66.67%)
:arrow_down:

docarray/array/mixins/io/dataframe.py
41.66% <0.00%> (-58.34%)
:arrow_down:

docarray/array/mixins/sample.py
45.45% <0.00%> (-54.55%)
:arrow_down:

docarray/array/storage/redis/find.py
19.26% <0.00%> (-44.04%)
:arrow_down:

docarray/array/mixins/io/common.py
26.31% <0.00%> (-42.11%)
:arrow_down:

docarray/array/storage/base/getsetdel.py
52.28% <0.00%> (-40.53%)
:arrow_down:

docarray/array/mixins/plot.py
28.13% <0.00%> (-39.83%)
:arrow_down:

docarray/array/storage/sqlite/seqlike.py
57.77% <0.00%> (-35.56%)
:arrow_down:

docarray/array/storage/weaviate/find.py
57.33% <0.00%> (-29.34%)
:arrow_down:

docarray/array/mixins/setitem.py
47.96% <0.00%> (-26.83%)
:arrow_down:

... and 47 more

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

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


[1654] Use user checkout token list

Adjust user checkout query to use token list instead of direct checkout details.
https://app.clickup.com/t/2549495/SALEOR-1654

Task linked: SALEOR-1654 Loged-in user should use new field checkouts to fetch checkout UUID.


Optimizations

Pep8, pylint, etc.
Added compat.py module
Added Python3 .4 to Travis

Would it be possible to release the latest version to PyPI soon? Right now the version on PyPI is Python 2 only.

Pylint is not compatible with Python 2.6... Should support for it be removed?
Similarly, tests on Python 3.2 fail because the "logilab" dependency doesn't support that Python version.
Another option could be to simply downgrade pylint, maybe we find a version that both supports Python 2.6 and 3.2. It would be a bit stupid to limit our Python support just because the code analysis tool doesn't support older versions.


Enable C# project references from F#

This is a minimum required change for the previous. Now reverted implementation.

@dotnet-bot test Windows_NT Release_ci_part2 Build please


utils/eos_designs_facts.py -- vlans="all" but mode is not set (to "trunk")

Issue Summary
This issue is the result of code introspection versus playbook execution.
Here: https://github.com/aristanetworks/ansible-avd/blob/v3.8.6/ansible_collections/arista/avd/plugins/plugin_utils/eos_designs_facts.py#L771
If vlans is "all" but mode is not "trunk", then vlans is hard wired to '1'.
Is this the correct/intended behavior?
The above is repeated further below in the network_ports for loop.
Which component(s) of AVD impacted
eos_designs
How do you run AVD ?
None
Steps to reproduce
This is a la code introspection, with link provided in description.

Relevant log output
No response
Contributing Guide

[X] I agree to follow this project's Code of Conduct

The default behavior for vlans on EOS is all if it is a trunk and 1 if it is an access port. So this is an attempt to mirror that behavior. Have you seen any issues causing you to inspect the code?

Hi, I suspect vlans being 'all' and mode not 'trunk' would be a mis-configuration? (this seems obvious, but just checking).
I am working with a (mutual) customer and I am attempting to ascertain semantics of inventory as supplied to eos designs.

You are correct that vlans: all should not be a valid value in case of mode != "trunk" but we don't have checks for that.
We could consider emitting an error for this invalid case, but currently we have decided to ignore it silently.
No worries on the issue. I can close it from here.
Thank you for your inquiry, and feel free to come back any time.
For questions/concerns that are not specifically an issue (bug/feature request) you can use github discussions.


run a python script

import time
import data_utils

def job():
    data_utils.py

schedule.every(5).minutes.do(job)
# schedule.every().hour.do(job)
# schedule.every().day.at("10:30").do(job)
# schedule.every(5).to(10).minutes.do(job)
# schedule.every().monday.do(job)
# schedule.every().wednesday.at("13:15").do(job)
# schedule.every().minute.at(":17").do(job)

while True:
    schedule.run_pending()
    time.sleep(1)

getting this error
" data_utils.py
AttributeError: module 'data_utils' has no attribute 'py'"

That's not how you run code from another module; it's not a problem with this library

import schedule
import time
def job():
print("I'm working...")
schedule.every(1).minutes.do(job)
while True:
schedule.run_pending()
time.sleep(1)
Getting below error:
" partially initialized module 'schedule' has no attribute 'every' (most likely due to a circular import)"

You idealy need import everything once.... so you have one file that imports  data_utils and your scripts
and alsi import schedule then you just use schedule.every(1).minutes.do(job) in modules
please retract this issue and fix your code

May I ask how would one define a function to run a python script (test.py) within the same directory of lets say the scheduler.py script?


Fix enum switcher

This PR fixes #99 by adding the missing call to set_origin in PrismWrap.

And Thanks for maintaining this Repo, I hope I can help a bit :)


Import Manager integration to Elastic

Description
Import Manager integration to Elastic.
Tasks

Import code.
Add a Docker environment.
Test the integration works.
Keep the folder layout well organized.

I added a class to the event-generator script that allows it to connect to the datagram socket of the Wazuh Manager under /var/ossec/queue/sockets/queue that looks like the following:
class PublisherSocket(Publisher):
    def __init__(self, path):
        super()
        self.path = path

    def publish(self, event: str):
        event_dict = json.loads(event)
        full_log = event_dict['full_log']
        location = event_dict['location']
        message = '1:{}:{}'.format(location, full_log)
        sock = socket(AF_UNIX, SOCK_DGRAM)
        sock.connect(self.path)
        sock.send(message.encode())
        sock.close()

But the sample alerts.json file does not include a full_log field (as most real world alerts do), so we need to discuss whether we want to change our sample data or move to some other technique.

In the end I discarded the above work and managed to get the events generator script to write to the manager's /var/ossec/logs/alerts/alerts.json directly.


chankan fix

https://github.com/vg-mjg/majsoul-api/issues/12#issue-895592916
i'm guessing you probably figured this out already

Yes, I have this exact fix as part of the stats changes I'm making atm.


aural.log is no longer generated

Fixed in v3.5.1 in this commit: https://github.com/maculateConception/aural-player/commit/c886e7d96ba0ecd37d95b9fa7b6cbc863e9259af.


bump follow-redirects package to 1.15

Updated the version of follow-redirects npm package.
addresses https://github.com/advisories/GHSA-pw2r-vq6v-hr8c and https://github.com/advisories/GHSA-74fj-2j2h-c42q

It's not used here


add redis env var and service to common vars

https://trello.com/c/WXJhhH1z/571-1-deploy-the-new-user-session-management-to-production
Add Redis service and env var to common config as we are enabling it on all environments.

Presumably we can remove DM_USE_REDIS_SESSION_TYPE once this is live in all environments?

@bjgill that is the eventual goal but as this check is in utils we will have to roll out changes to all apps to do that .

Tested with make generate-manifest APPLICATION_NAME=buyer-frontend STAGE=production, all looks to be in order 👍


[WIP] Markdown language server

This is a prototype to include a markdown language server, with some limited capabilities:

Linting via the write-good library
Spellchecking via node-spellchecker
Go-to definition for following links

At the moment, it's basically just the sample language server, but will be expanded on (and could be extracted out to a separate project / npm package)

@bryphe

and could be extracted out to a separate project / npm package

If there is no existing project for a Markdown LSP server, I implore you to make it a separate project so:

The non-Oni community could benefit your work.
that the LSP server will have a wider audience for incoming feedback/PRs.

Also (and this is completely unrelated to the above), I would like to suggest that this will be implemented in a different language (like Python, Go, Rust or Kotlin) for the following reasons:

Completely subjective but true honesty: I find it hard to use (and thus contribute to) JS/TS projects
Wider target audience (I think that running Python or Go applications is much easier for most users on most platforms)
Performance (AFAIK, Go should yield superior performance over JS/TS, see https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=go&lang2=node)

Please forgive me if it seems rude, I have only good intentions and am greatly inspired by your work.

If there is no existing project for a Markdown LSP server, I implore you to make it a separate project so:

Yes, seems reasonable! I actually just created a CSS/LESS LSP server (just extracted from VSCode): https://github.com/onivim/css-language-server
It'd be straightforward to do the same with the markdown server.

I would like to suggest that this will be implemented in a different language

Thanks for being candid, I appreciate the feedback! Here are my thoughts on each point:

Completely subjective but true honesty: I find it hard to use (and thus contribute to) JS/TS projects

Yes, understand this - the JS/TS ecosystem is changing quickly and there are so many paradigms and lots of ramp-up needed to get productive. However, the plus side of this is that there is a huge repository of packages - and this is the major strength for implement a language server. The https://github.com/Microsoft/vscode-languageserver-node does most of the heavy lifting - abstracting the transport layer, whether its socket/IPC/stdio/etc - and there are some great packages for spell and grammar check.
Contrast that with https://github.com/palantir/python-language-server or https://github.com/sourcegraph/go-langserver - they have to re-implement a transport layer and consequently there are lots of issues. Neither server works well on Windows, for example. I think there's an opportunity for both ecosystems to have a package that provides a similiar abstraction to vscode-languageserver, but that's out of scope for me 😄
I did a lot of C++ in school, and then professionally in C# & JS (TS). I do think it's worth learning, as some of the ecosystem - like React / Redux / RxJS - have introduced some cool functional-style programming, and I learned a lot just working with those libraries.

Wider target audience (I think that running Python or Go applications is much easier for most users on most platforms)

I'm not convinced this is the case. I actually researched this a bit prior to working on Oni - looking at things like the Stack Overflow Developer Survey. Specifically, stats like this:

In addition, Python and Go are convenient in the OSX and Linux ecosystem - but on Windows, it's actually much worse. In fact, Python is a huge pain in Windows, and when you look at a stat like this:

Windows is still a relevant and important platform. Electron essentially provides a node runtime, so it makes sense to leverage that - there doesn't need to be additional install or setup logic to drop a python runtime on Windows. These stats are part of the reason I chose the Electron platform (even for all the hate Electron gets on reddit/HN!), because I believe it has the right set of tradeoffs to address a niche that has a need.
I like Python as a language a lot, but the impracticality on Windows is a deal breaker for me leveraging it more heavily in Oni. A go or rust executable would be potentially more doable, but it'll be quicker to build leveraging the vscode-languageserver.
With these projects, I try to balance two factors - how quickly can I build something and how applicable would it be for others - and I think for this case JS + NPM strike the right balance. I have a few months of runway to make Oni sustainable, so I have to make sure I make judicious use of that time.

Performance (AFAIK, Go should yield superior performance over JS/TS, see https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=go&lang2=node)

Agreed, I think that a native executable built with Go/Rust/C++ would be more performant. I'm not sure the extra development time would justify it. The language server built with vscode-languageserver with JS + Node should only take a couple days to get going, whereas it would be a multiple of that on any of those platforms (at least for me).
The nice thing about OSS is others are welcome to build a native implementation, too! And I'd be happy to leverage it and scrap my implementation if its better.

Please forgive me if it seems rude, I have only good intentions and am greatly inspired by your work.

Cheers, not rude at all, I appreciate the questions & feedback - I hope my responses don't come across negative
😄 It's great to think through these points and they are certainly applicable to the roadmap & future of this project.
As an aside, one language I am excited about is Reason and I'm considering trying to write the language server in that - it's an OCaml variant that compiles to JS. I've been meaning to try a real-world project with it, this might be a good fit...

FYI: I started this over at https://github.com/onivim/markdown-language-server
It's really basic but it has write-good diagnostics hooked up to it, at least. Next step is to implement hover and go to definition, and have a meaningful README.md...
I tried out Reason, but it's time consuming to stub out all the imports unfortunately (whereas the definition files are just there for TypeScript)
I'll close this out, and we can track issues over there


docs: correct md lint wantings in & fix formatting

The images are currently stacked, will be fixed in coming PR.


[ENH] - Moving docker images to separate repository

Feature description
Would like to move the docker images to a separate repository so that we can encourage QHub to being more independent from what is in the image. E.g. encouraging that configuration is set via Kubernetes and packages are installed with the docker image. The dockerfile should be short and understandable.
I've already investigated binder/repo2docker. A few of the downsides I see:

repo2docker has a strong assumption that images have jupyter installed within them (dask-worker and jupyterhub) do not
repo2docker images sizes are huge see https://github.com/costrouc/repotest and https://hub.docker.com/repository/registry-1.docker.io/costrouc/repotest/ this results in a 500mb compressed image. Normally I would expect 100-200mb compressed for just those dependencies.

That said I do like the idea of repo2docker to have a directory with environment.yaml, apt.txt, postBuild, and start (entrypoint script) and we already have all but start in place already.
Value and/or benefit
Encourage QHub to being more independent from what is in the image. Also significantly shortens the build time for QHub tests.
Anything else?
No response

I think this makes some sense for the jupyterlab images (so they can be developed separately), but as it stands not for jupyterhub and maybe others.
From our experience bringing terraform modules into the main repo, we found this sped up development considerably and avoided confusion. This worked because terraform would take the 'current' code each time automatically.
As it stands, jupyterhub image and terraform/Python code are tightly-coupled, and the problem is more about how do we get kubernetes to mirror our repo's image code. This is a known problem and I believe there are better solutions - see e.g. Tilt.
We could restructure things so that (perhaps) jupyterhub_config moves inside the image code so we have clearer boundaries. But I believe we would be making APIs for the sake of solving the wrong problem here.
It's more about build chains and dev environments. Things work fine in prod...

Closes #1145

As part of this move, I would like to also propose we try and tackle the enhancement @leej3 proposed in #715. If we can find a way to mount the conda-store PV to user's JupyterLab pod (happening already), the hub pod and any dask-worker pods, then I believe we might be able to further reduce the size and complexity of these images.
If this is possible, then we can provide a set of "base images" which end-users can build on top of, perhaps using the repo2docker pattern that Chris mentioned above, or multi-stage builds.

https://github.com/nebari-dev/nebari-docker-images/pull/1


what's the unit of the cooridinates in this line code?

it was very small, is it pixels differs on image pixel?

The range of x and y are from 0.0 to 1.0 within the whole image.
For example, if the resolution of an image is 1920x1080, so the difference of x between adjacent pixels in x axis will be 1.0/1920 ~= 0.00052

@chenjiunhan I think it was normalize towards input pose model image wh right? But I set cv2.cap width and height, and I found the keypoints on image to the rightest border, the x coordinates only 0.3, it should about 0.9 since as you said it was normalized to 0-1.
Is it start from left top corner?

It starts from left top corner. However, demo.py Line 73
cv2.imshow('HAC demo', cv2.flip(image, 1))
plots a horizontally flipped image, which is easier for us to understand our movement.
Because it looks just like a mirror reflecting our bodies.
Many applications, like discord, zoom...etc, they flip camera images for us,
but actually other people see the image without flipped.
The pose model receives an image without flipped as the input, your right hand is close to the leftmost, so the value of x coordinate is close to 0.3. cv2.imshow('HAC demo', cv2.flip(image, 1)) flipped the image for you, that's why you thought it should be around 0.9, however, the value was small than you expected.
It's confusing indeed, thank you for pointing that out. 😄

@chenjiunhan thank u for your detailed explaination. I get it now. I am trying using index finger as movement driver of pointer, since I found the center point of palm is really easy to tired if you hang your hand in the air for a long time.
So that it was much more easier if we can controll pointer with finger movement rather than your whole hand movement.
However, no luck....
Did you considered this aspect?
Oh, btw, did you also thought about removing bouncing of tiny movements when you try to focus on a certain point? I am still try eliminate this drawback, what do u think?

@chenjiunhan  Also, did u thinked about add multi-task quick gesture in model? Such as switch desktoop on windows, such as open task-manager inferface ? this is useful and much more less accuracy required.

@chenjiunhan Yeah, you are right. Using index finger is not only from the jitter distance minimal consideration but also for user experienrances since it is much more better to move your finger than move your wrist.
As for mouse control, for left click, I think it need 3d dimension distance measure but this doesn;t supported in mediapipe.
But if we want make it work on 2D, we can measure static status, which is your index finger static for about 500ms, then you will set control to status waiting for click, if users keep moveing then wipe out this status and keep cycle.
in this way, users can static on a point, and then grad fist to click or drag. As for finger movement along with fist, it can filter out by a time interval.
Do u have a better idea?

Hi @jinfagang,
I had a covid-19 vaccine recently..., But I'm back.
I tried different designs inspired by you and Mihail, an improved version fast & slow mode can be seen in the following video:
MP4 link
Using the index finger is a fast mode, to move mouse cursor faster. Opening the palm is a slow mode, which can control mouse accurately. The others are the same.
It seems that it's hard to use other key points except for the wrist to control mouse stably, during changing different gestures, wrist is the only one without moving.

I've pushed the code to main, and the demo code can be seen here

@chenjiunhan thank u, i'll try it out! seems more accurate than before.
what do u think is the limitations now in current version? I mean in your daily usage, what's the limitations.


jsoup removes linebreak from element

The following Kotlin script reads and then writes an XML file.
#!/usr/bin/env kscript

@file:DependsOn("org.jsoup:jsoup:1.12.1")

import java.io.File
import org.jsoup.Jsoup
import org.jsoup.parser.Parser

val pom = Jsoup.parse(File("pom.xml").readText(), "", Parser.xmlParser())
pom.outputSettings().prettyPrint(false)

File("pom.xml").writeText(pom.html())

jsoup seems to keep the formatting, comments, and even attribute order, which is really nice but somehow messes up the root (<project>) element, as shown by the git diff
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

The original element has a line break after the xmlns attribute but jsoup somehow seems to remove it.
Any way to keep the linebreak?

Any workaround for the above issue ?

Hi @jhy,
would love to contribute this as a PR.
There are almost no XML parsers in existence which keep the formatting intact, but jsoup already comes very close.
There are always cases where you want to make a tiny change to an XML file but keep everything (element order, attribute order, whitespace) intact to keep the number of changes small.
I'm pretty sure a lot of people would welcome this feature :).

Hi @helpermethod  - I'm definitely open to a PR! My main concern is increasing the memory footprint of the DOM by having to track a lot more state in the Attributes object, which obviously gets attached to so many Element objects.
One approach would be to extend Attributes to something like WhiteSpacePreservingAttribute, and use that when creating new attributes in the parse phase, if this option is enabled.
Maybe sketch out a design and we can discuss before putting too much code down. I think it would be a useful optional addition if we can keep the memory footprint of non-users down.

Hi @jhy,
thanks for your suggestions, I that the functionality should not impact users which do not use this feature.
I'll have to think a little bit about it :).


Request for example of playing a midi file

I wasn't sure if playing midi files is something ipytone even supports, but if it is, I'd love an example of loading and playing a midi file.

There's no built-in support (yet) in ipytone for playing midi files, but you could parse the midi file using, e.g., mido to create ipytone.Part events without much effort. For example:
import ipytone
import mido

# convert MIDI note numbers to notes (string notation)
# modified from https://gist.github.com/devxpy/063968e0a2ef9b6db0bd6af8079dad2a

NOTES = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B']
OCTAVES = list(range(-2, 9))
NOTES_IN_OCTAVE = len(NOTES)

def number_to_note(number):
    octave = number // NOTES_IN_OCTAVE - 2
    assert octave in OCTAVES, errors['notes']
    assert 0 <= number <= 127, errors['notes']
    note = NOTES[number % NOTES_IN_OCTAVE]

    return note + str(octave)

# read midi file and extract 1st track
mid = mido.MidiFile("filename.mid")
track = mid.tracks[0]

# use 120 BPM by default (possible to read it from the midi file)
tempo = 500_000
ipytone.transport.bpm.value = mido.tempo2bpm(tempo)

# parse midi note messages and create ipytone.Part events
current_time = 0.
current_notes = {}
events = []

for msg in track:
    current_time += mido.tick2second(msg.time, mid.ticks_per_beat, tempo)

    if msg.type == "note_on":
        current_notes[msg.note] = {
            "time": current_time,
            "note": number_to_note(msg.note),
            "velocity": msg.velocity / 127,
        }
    elif msg.type == "note_off":
        event = current_notes.pop(msg.note)
        event["duration"] = current_time - event["time"]
        events.append(event)

Then create the partition and play it (e.g., with an ipytone.PolySynth):
msynth = ipytone.PolySynth(volume=-8).to_destination()

def clb(time, note):
    msynth.trigger_attack_release(
        note.note, note.duration, time=time, velocity=note.velocity
    )

part = ipytone.Part(callback=clb, events=events)

part.start()
ipytone.transport.start()

Not sure that we should add mido as a dependency here, but such example would be a nice addition in the docs.

In the mid/long term, it would be nice to have features like GUI widgets to visualize (#12) and/or edit partitions as well as widgets to connect MIDI devices using https://webmidijs.org/ (a bit like https://github.com/jupyter-widgets/midicontrols but generalized to any device), probably in a 3rd party package.

Thanks for the example! That alone is great, I was just curious how to make it work, with or without the support of another package.

I'll have to play with it more but the example appears to be working well, only tweak I had to make was to the:
current_notes.pop(msg.note)

line. The midi I tested on apparently had note off without a corresponding note on which threw a KeyError which I just caught and skipped the event with.

I don't have much experience with midi files, maybe this could happen when starting to record a performance while a key is already pressed down? I guess a "note on" without a "note off" could happen as well, then?
Probably a better approach would be to use the instrument trigger_attack() and trigger_release() methods in the callback instead of computing the note duration and use trigger_attack_release(). This is not possible right now, though, but it can be easily fixed:

ipytone.PolySynth.trigger_release() is missing a notes argument (required in Tone.js)
ipytone.Note should have an attribute used to call either trigger_attack or trigger_release in the callback (in Tone.js the structure of that callback argument is arbitrary and thus much more flexible).

With #104 and #105 (available in the next release), creating a Part object from a midi file is slightly more straightforward than in https://github.com/benbovy/ipytone/issues/77#issuecomment-1161666380:
events = []

for msg in track:
    current_time += mido.tick2second(msg.time, mid.ticks_per_beat, tempo)

    if msg.type not in ["note_on", "note_off"]:
        continue

    event = {
        "time": current_time,
        "note": number_to_note(msg.note),
        "velocity": msg.velocity / 127,
        "trigger_type": "attack" if msg.type == "note_on" else "release"
    }
    events.append(event)

msynth = ipytone.PolySynth(volume=-8).to_destination()

def clb(time, note):
    msynth.trigger_note(note, time)

part = ipytone.Part(callback=clb, events=events)

I think this solution should work without needing any additional check. One drawback is when ipytone.transport is stopped between the scheduled attack and release of some note, that note is never released (silencing the instrument would require a manual call to trigger_release() or release_all() for polyphonic instruments).


allow customization of pachyderm-worker service account

This ticket was escalated from Zendesk by John Karabaic:
Ticket: #89
Type: Problem
Priority: High
Assignee: John Karabaic

What happened?:
Tried to deploy 1.10 and could not create service account pachyderm-worker because cluster policies didn't allow us to.
Pachyderm 1.10 introduces a more restricted service account that is used for workers.  It only requires a local role which has full control over Services and not anything else.
Unfortunately, some organizations restrict the creation of service accounts and roles, not allowing the users of a namespace the ability to create them.
Since there's no way to specify an alternate service account for the workers, this user can't deploy 1.10 until either a custom service account is created for us (which requires some approval process).
This org  also has a naming convention for service accounts and roles, which "pachyderm-worker" violates.
What you expected to happen?:
I expected an environment variable where I could specify the service account the worker could use, which I understand should have at least the permissions required.
How to reproduce it (as minimally and precisely as possible)?:
See above.
Anything else we need to know?:
Environment?: OpenShift

Kubernetes version (use kubectl version):
Pachyderm CLI and pachd server version (use pachctl version): 1.10.5
Cloud provider (e.g. aws, azure, gke) or local deployment (e.g. minikube vs dockerized k8s):
OS (e.g. from /etc/os-release):
Others:
(created from Zendesk ticket #89)gz#89

Agent comment from John Karabaic in Zendesk ticket #89:Ankit,
It looks like there's a fix in master for this issue. I think we're going to cut a 1.10.6 soon, so we can retry the deployment once that's done.
We'll need to specify a new environment variable, WORKER_SERVICE_ACCOUNT, in the pachd manifest.
I'll update this  ticket once 1.10.6 is cut, and we can set up some time.


Not generating required output

When I try to input : "def factorial", it gives me the following error. Could you please help me resolve it? Thanks.
File "interact.py", line 52, in
outputs = model.generate(input_ids=input_ids.to("cuda") if args.use_cuda else input_ids,
File "/home/ua383/anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 575, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'GPT2LMHeadModel' object has no attribute 'generate'

Have you tried down-version the transformers?

Thanks for getting back to me. I've managed to run it but when I try to fine-tune it on your dataset it gives me this error:
Traceback (most recent call last):
File "train.py", line 83, in
model_trainer = ModelTrainer(model,
File "/home/ua383/work/auto_coding/trainer.py", line 328, in init
self.optimizer = optimizer_class(optimizer_grouped_parameters, **optimizer_params)
File "/home/ua383/anaconda3/envs/training/lib/python3.8/site-packages/transformers/optimization.py", line 301, in init
require_version("torch>=1.5.0")  # add with alpha
File "/home/ua383/anaconda3/envs/training/lib/python3.8/site-packages/transformers/utils/versions.py", line 114, in require_version
_compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
File "/home/ua383/anaconda3/envs/training/lib/python3.8/site-packages/transformers/utils/versions.py", line 49, in _compare_versions
raise ImportError(
ImportError: torch>=1.5.0 is required for a normal functioning of this module, but found torch==1.4.0.
Although I tried installing torch>=1.5.0 versions, it still gives me the same error. Could you please help me with this issue. Thanks.

When I try to input : "def factorial", it gives me the following error. Could you please help me resolve it? Thanks.
File "interact.py", line 52, in outputs = model.generate(input_ids=input_ids.to("cuda") if args.use_cuda else input_ids, File "/home/ua383/anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 575, in getattr raise AttributeError("'{}' object has no attribute '{}'".format( AttributeError: 'GPT2LMHeadModel' object has no attribute 'generate'

Try using transformers 3.5.0. It works for me.

Try installing torch>=1.5 using the below code after uninstalling it
!pip install torch==1.5.1+cu101 torchvision==0.6.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html


How do I customize django-two-factor-auth for existing REST API for login

I am currently using REST API for user login. Now want to add two factor authentication to my existing Login api.
In django-two-factor-auth there are views provided by default, and I want to customize them according to my API response.

I was able to integrate with DRF, using token authentication.
There are several caveats, but it is possible.
I needed to create a custom auth class, create a custom permission class, change the login view and create the setup and 2FA verification, refresh and backup tokens listing views.


Update client.py

With this modification works fine with WVWare ESXi VNC server

thanks, I love to include a fix for ESXi servers, though it looks like the tests are failing and I suspect it will break when used with other VNC servers.  There is probably something during initial protocol negotiation that we can use to identify if we need to use BGRX or RGBX.  redshift/blueshift seem promising, https://github.com/sibson/vncdotool/blob/master/vncdotool/rfb.py#L196.

As this PR stands it will break non-ESXi servers and is backwards incompatible.  We need to find a way to control which encoding is selected.  If you are able to do that then I'd be happy to merge the PR.


Account APIs do not work

These APIs, copied and pasted from the documentation website, result in 404 errors. This needs to be fixed

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

ID: f2af3837-457c-4a7f-50c5-d2b8edcf904c
Version Independent ID: 306d82ab-4128-0d37-cb8a-83e8321e3fe1
Content: Accounts (VSTS Accounts)
Content Source: docs-ref-autogen/account/Accounts.yml
Service: unspecified
GitHub Login: @wnjenkin
Microsoft Alias: whjenkin

Thank you for your feedback. We're actively working on a fix for this now.

@abettadapur To unblock you until the docs get updated, the correct host is
https://app.vssps.visualstudio.com rather than https://{accountName}.visualstudio.com

Using https://app.vssps.visualstudio.com I do get a 400 response saying "Necessary parameters ownerId or memberId were not provided in the request." Now I wonder how can I retrieve my member Id through the REST Api in order to construct this request?

@abettadapur  Apologies for the inconvenience caused to you. Are you using https://app.vssps.visualstudio.com/_apis/accounts? The correct URI is https://app.vssps.visualstudio.com/_apis/accounts, however if you still getting an error using this, then please let us know.

Yes that API is working for me, thanks

@abettadapur Just to add on, if you want to retrieve your id, you can use the connectionData api https://app.vssps.visualstudio.com/_apis/ConnectionData, to get your id, and then called the https://app.vssps.visualstudio.com/_apis/accounts?ownerId={ownerId}&api-version={api-version}, to find the accounts associated with the id. This is the recommended way to use List Accounts API, as you will get the concise account object in response.

@PiyushGuptaMSFT Additionally, I cannot use my PAT to call this API. The same PAT works correctly on the other account scoped APIs

@abettadapur Currently, PAT creation is scoped to accounts, and hence it is not possible to call an deployment level API via PAT.

I can call "_apis/ConnectionData" and pass the PAT for success. However, no matter what I do when I call "_apis/accounts" it ALWAYS returns 401 Unauthorized... Is the API broken?
FYI, I'm using Postman right now to do the calls. Will write code once I get the right calls working...

@abettadapur Currently, PAT creation is scoped to accounts, and hence it is not possible to call an deployment level API via PAT.

How can we make an API call to get a list of the Accounts / Organizations the current user has access to in Azure DevOps, if the PAT wont work with "_apis/accounts"??

Using https://app.vssps.visualstudio.com/_apis/accounts I get the "Necessary parameters ownerId or memberId were not provided in the request." response. I am using an OAuth token. I am using version 5.0 of the AzureDevops REST API.

@PiyushGuptaMSFT any news on this?
Request https://app.vssps.visualstudio.com/_apis/accounts?api-version=7.2-preview
still returns
{
  "$id": "1",
  "innerException": null,
  "message": "Necessary parameters ownerId or memberId were not provided in the request.",
  "typeName": "Microsoft.VisualStudio.Services.Account.AccountException, Microsoft.VisualStudio.Services.WebApi",
  "typeKey": "AccountException",
  "errorCode": 0,
  "eventId": 4236
}


App can't get user's location

Describe the bug
The app cannot get the user's location to show it on the map along with tracked devices.
To Reproduce
Steps to reproduce the behavior:

Go to the map in a browser
Click on the location arrow
The user's location is shown on the map
Open the app
Click on the location arrow
The user's location is never shown

Expected behavior
The user's location pointer should be shown on the map, as if it was accessed through a browser.
Smartphone (please complete the following information):

Device: iPhone 13 (had the same issue on my XR)
OS: iOS 15.1.1
Version 2.7

Additional context
iOS requires the user to approve location permissions. The Traccar Manager app never asks for those permissions.

It's not really a bug. It hasn't been implemented yet.

We have added location permission and it will be available with version 2.8 of the app. It's already uploaded to the App Store and should be available once Apple approves it.


Do not store messages before conversation is closed

Expected Behaviour
When an user closes a conversation, the conversation should be stored in Smarti. If the conversation has not been closed or if the conversation is deleted in the chat system, the conversation must not be stored in Smarti.
Actual Behaviour
Currently, it does not matter if the user closes the conversation. The messages are stored in Smarti anyway. One side effect is that if you delete the conversation before closing it, it is stored in Smarti.
Steps to Reproduce

Open new request in Rocket.Chat and ask a question.
Delete the conversation in Rocket.chat.
Ask the same question in a new request => you will find the old message which you deleted before

To make conversations that are not yet closed available to search request was an intentional change for 0.7.0. For all versions < 0.7.0 only published conversations where available for search.
Regarding the deletion: Looks like as the Smarti Rocket.Chat integration does not react on deletion events. This needs to be implemented.

Okay, then focus on the deletion part here. I rename the issue

I'm going to fix this on the SmartiAdapter

Has been implemented in https://github.com/assistify/Rocket.Chat/pull/301


Rediads bid adapter

🏷 Type of documentation

[x] new bid adapter
[ ] update bid adapter
[ ] new feature
[ ] text edit only (wording, typos)
[ ] bugfix (code examples)
[ ] new examples

📋 Checklist

[ ] Related pull requests in prebid.js or server are linked -> Paste link in this list or reference it on the PR itself
[x] For new adapters check submitting your adapter docs

Hello @ChrisHuie
Thank you for your suggestion! I've incorporated the additional fields from the Prebid documentation and expanded the code to include more detailed metadata, such as safeframes_ok, deals_supported, and floors_supported.

@muuki88 I hope you're doing well. The Prebid.js update has been merged and released. Could you kindly push the documentation live as well? Thank you!

Sure thing 🎄 happy holidays and a restful weekend ❤


A Folia Async Task Err

this is the lastlog, I try to change plugins to fix it but it seems didin't work...
latest.log

can you send folia version use /ver and what foliaflow version using?

can you send folia version use /ver and what foliaflow version using?

Oh, maybe I should try to update my Folia...
System said I was 10 versions behide :(
I will try your plugin in the last build, thank you!

alright if still have issues report it


[IOS]Keyboard cannot dismiss when two TextInput switch focus in a ScrollView.

There are two TextInput in a ScrollView. When I touch one of them, the keyboard pop-up, then I touch the blank space in ScrollView, the keyboard dismissed. However, if I touch one TextInput, then touch the other, and then touch the blank space in ScrollView again, the keyboard can not dismiss.

I found the ScrollView's scrollResponderHandleStartShouldSetResponderCapture return true when the focus changed from one TextInput to the other. Because of that, the scrollview will capture the responder event, and consequently the other TextInput's focus cannot be called in js level. But actually, it already become the first responder in native, and the keyboard show. However, there is no focus record in js code, the keyboard cannot be dismissed.
scrollResponderHandleStartShouldSetResponderCapture: function(e: Event): boolean {
    // First see if we want to eat taps while the keyboard is up
    var currentlyFocusedTextInput = TextInputState.currentlyFocusedField();
    if (!this.props.keyboardShouldPersistTaps &&
      currentlyFocusedTextInput != null &&
      e.target !== currentlyFocusedTextInput) {
      return true;
    }
    return this.scrollResponderIsAnimating();
  },

yes, we have the same problem. Android have not the problem.

I found a way to fixed that, but need to modify the source.
Add the sentence TextInputState.focusTextInput(React.findNodeHandle(this.refs.input))  in the _onFocus function of 'TextInput.js', as followed:
_onFocus: function(event: Event) {
    TextInputState.focusTextInput(React.findNodeHandle(this.refs.input));

    if (this.props.onFocus) {
      this.props.onFocus(event);
    }
  },

this.refs.input.focus()

you can try my solution.
export default FormContainer = React.createClass({
  mixins: [PureRenderMixin],

  render() {
    return (
      <ScrollView
        showsVerticalScrollIndicator={true}
        automaticallyAdjustContentInsets={false}
        contentContainerStyle={styles.content}
        keyboardDismissMode='on-drag'
        keyboardShouldPersistTaps={true}>
        <View
          onStartShouldSetResponderCapture={(e) => {
            const focusField = TextInputState.currentlyFocusedField();

            if (focusField != null && e.nativeEvent.target != focusField){
              dismissKeyboard();
            }
          }}>
          {this.props.children}
        </View>
      </ScrollView>
    );
  }
});

use onStartShouldSetResponderCapture to intercept interaction change

Two things:

import dismissKeyboard from 'react-native/Libraries/Utilities/dismissKeyboard'; for anyone that is wondering where that comes from

In @hufeng's solution, when transitioning between Input 1 and Input 2, the keyboard toggles (aka hides and then immediately shows again). This UX is less than ideal but I cannot for the life of me figure out how to prevent that from occurring :frowning:

Did anyone submit a PR ? @lvbingru solution worked for me.

when transitioning between Input 1 and Input 2, the keyboard toggles

the @hufeng 's solution can be extended to check if new target is TextInput as well to solve this problem. However till now I haven't find out the way how to check if target (defined by handle) is input or not. Currently I need to enumerate all inputs and get their handle via React.findNodeHandle.
Have someone any idea - either how to obtain all child TextInputs automatically or even better to find out what component instance belong to node handle?

Has anyone got a solution for this?  I need 2 taps to get a button press if the focus is on a text input in a scroll view.
Doesn't happen on android.

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/ioskeyboard-cannot-dismiss-when-two-textinput-switch-focus-in-a-scrollview
Product Pains has been very useful in highlighting the top bugs and feature requests:
https://productpains.com/product/react-native?tab=top
Also, if this issue is a bug, please consider sending a pull request with a fix.

@lvbingru solution worked for me with a minor change.
TextInputState.focusTextInput(ReactNative.findNodeHandle(this._inputRef))
Copy paste the above code in _onFocus function within TextInput.js file.


Pirateship

Associated Issue: #405
Summary of Changes

Added pirate ship rebus

Pull Request Test Coverage Report for Build 714

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

Totals

Change from base Build 514:
0.0%

Covered Lines:
158

Relevant Lines:
180

💛  - Coveralls


Allow running as module python -m emailer

I was trying to debug the emailer without installing it.  So I tried running it as a module and there was no main so I made one.
However I wasn't able to update setup.py to execute it as a module.    I tried changing 'email = emailer.main:main' to 'email = emailer' but I got the error:

TypeError: 'module' object is not callable

WDYT about just moving the contents of main.py to main.py? Then we have have the if __name__ == "__main__": guard and use it in setup.py like this blog post suggests? https://chriswarrick.com/blog/2014/09/15/python-apps-the-right-way-entry_points-and-scripts/#step-2-adjust-setup-py-accordingly

Cool I didn’t know how to do that!


Replace deprecated gapi.auth2 with GIS

Description

Replaces calls to the deprecated gapi.auth2 with calls to Google Identity Services. With gapi.auth2, only api keys generated before 2022 July are functional (https://developers.google.com/identity/sign-in/web/sign-in). This change will also allow for local testing of Google persistence with user generated api keys.
All other calls made to gapi.client were untouched - GIS is used only to facilitate getting the access token from Google. Existing Google picker UI remains the same.
Google login persistence is implemented by storing the access token in local storage.
Finally, login button is added to the Google Drive control bar for parity with Github control bar UI.
@types/google.accounts is required for this PR to add types to the GIS library
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Code quality improvements

How to test

Instructions from the wiki, "Obtaining the API keys from the Google API Console" is sufficient for setting up locally for testing.
Checklist

[x] I have tested this code

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

-54 of 69 (21.74%)  changed or added relevant lines in 7 files are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.1%) to 37.104%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/commons/application/actions/SessionActions.ts
3
4
75.0%

src/pages/playground/Playground.tsx
0
1
0.0%

src/commons/application/reducers/SessionsReducer.ts
0
2
0.0%

src/features/persistence/PersistenceUtils.tsx
0
5
0.0%

src/commons/sagas/PersistenceSaga.tsx
6
51
11.76%

Files with Coverage Reduction
New Missed Lines
%

src/commons/sagas/PersistenceSaga.tsx
3
41.6%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
5722

Relevant Lines:
14496

💛  - Coveralls

Hi @sumomomomomo, congratulations on creating your first PR in Source Academy and to start contributing your changes! Do note that even though you bypassed the code validation and checking when pushing to the repository sub-branch, you should still ensure that your code is well formatted and passes tests before opening the pull request.
The points mentioned above can be done with the 2 commands as follows:

Testing: yarn test. If updating snapshots are required, you may run yarn test --updateSnapshot
Formatting: yarn format

I will take a look at your changes in a bit, and let you know some feedback for the changes that you have made. Keep up the good work and thanks for the contribution!


Remove list creation for single shard request

opendistro-for-elasticsearch/security pull request intake form
Please provide as much details as possible to get feedback/acceptance on your PR quickly

Category: (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
Refactoring

Github Issue # or roaddmap entry, if available:
N/A

Description of changes:

Avoid creating list and converting to array.
SingleShardRequest has only one index/pattern in request https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/action/support/single/shard/SingleShardRequest.java#L97

Why these changes are required?

Avoid creating list to save on object creation and performance

What is the old behavior before changes and new behavior after changes? (Please add any example/logs/screenshot if avaialble)

No change in behavior

Testing done: (Please provide details of testing done: Unit testing, integration testing and manaual testing)
Existing automated tests. No change in behavior expected.

TO-DOs, if any: (_Please describe pending items and provide github issues# for each of them)
N/A

Is it backport from master branch? (If yes, please add backport PR # and commits #)
N/A

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

It looks like a bug fix to me, not a refactoring.

Closing PR and will raise new PR to include this change and optimizations in functions isAllWithNoRemote, isLocalAll from PR #886


bind error. port is already in use

This is a crazy bug.
After upgrading docker 1.12.6 to 1.13.0, I got the next errors when I launching docker images.
$ docker -v
Docker version 1.13.0, build 49bf474
$ docker-compose -v
docker-compose version 1.10.0, build 4bd6f1a

$ sudo netstat -natop | grep 6379
tcp6 0 0 :::6379 :::* LISTEN 696/dockerd off (0.00/0/0)

$ docker service ls
ID NAME MODE REPLICAS IMAGE
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

$ docker-compose -f dc-extern.yml up -d
WARNING: The Docker Engine you're using is running in swarm mode.

Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.

To deploy your application across the swarm, use docker stack deploy.

Creating network "dl_default" with the default driver
Creating dl_redis_1

ERROR: for redis Cannot start service redis: driver failed programming external connectivity on endpoint dl_redis_1 (5726fd29068d284e2fe1d0041d12043e6862a1baf8b4e0c33a882dfe47e77121): Error starting userland proxy: listen tcp <IP_ADDRESS>:6379: bind: address already in us

==> The port is also bind in another nodes shared by swarm mode in the cluster.
Restarting linux machine and dockerd gives nothing.

Could you provide the information that was requested in the issue template as well? At least the full output of docker version and docker info (https://raw.githubusercontent.com/docker/docker/master/.github/ISSUE_TEMPLATE.md)

// Docker Version
Client:
Version:      1.13.0
API version:  1.25
Go version:   go1.7.3
Git commit:   49bf474
Built:        Tue Jan 17 09:50:17 2017
OS/Arch:      linux/amd64
Server:
Version:      1.13.0
API version:  1.25 (minimum version 1.12)
Go version:   go1.7.3
Git commit:   49bf474
Built:        Tue Jan 17 09:50:17 2017
OS/Arch:      linux/amd64
Experimental: false
// Docker Info
Containers: 46
Running: 45
Paused: 0
Stopped: 1
Images: 415
Server Version: 1.13.0
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 4802
Dirperm1 Supported: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: active
NodeID: ********************************************
Is Manager: true
ClusterID: ********************************************
Managers: 5
Nodes: 10
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Node Address: ********************************************
Manager Addresses:
********************************************:2377
********************************************:2377
********************************************:2377
********************************************:2377
********************************************:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 03e5862ec0d8d3b3f750e19fca3ee367e13c090e
runc version: 2f7393a47307a16f8cee44a37b262e8b81021e3e
init version: 949e6fa
Security Options:
apparmor
Kernel Version: 3.13.0-107-generic
Operating System: Ubuntu 14.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 6
Total Memory: 15.67 GiB
Name: ********************************************
ID: ********************************************
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Experimental: false
Insecure Registries:
<IP_ADDRESS>/8
Live Restore Enabled: false

Obviously, this is a swarm issue. After detatching from swarm mode, I could check out the occupied port has been removed. This was the only way that I could use the port again.

@yunghoy if you have a service running in the swarm that uses port 6379, that is expected. When deploying services, ports are allocated on every node in the swarm, so that traffic to any node in the swarm is routed through the routing mesh. If you docker service ls on a manager node, do you have services running? Is one of those services publishing port 6379?


Test: improve CLI CI times

Related to https://github.com/netlify/cli/issues/2202
The CLI tests can take up to 20 minuets sometimes (mostly on Windows).
This means the turnaround for an important bug fix can take around 40 minuets (tests for the fix PR and tests for the release PR).
We should investigate reducing the time it takes to run the tests.
Can you submit a pull request?
Yes

One way to improve the CLI CI times is to use a mock API instead of hitting the API directly.
I think it's valuable to test the integration with the live API, but maybe we should move those tests to https://github.com/netlify/js-client

Related to https://github.com/netlify/engineering/issues/318.

Closing this as we've done several improvements related to this:

Use a mock API in all relevant tests except deploy tests
We don't re-run the tests on release PRs
We don't re-run the tests before publishing

If we can think of more actions items on this, we can open individual tasks

Re-opening as we need another integration on this. We should first benchmark the tests, but possible improvements:

Move to CircleCI and use stronger machines (GitHub actions Windows machines are especially slow).
Run the deploy tests in parallel (create multiple sites, instead just one site).
Large Media tests are also serial. I don't think we can do anything about that as Large Media installs globally on the machine.


Thank you!

Dear Bennett,
QuickTeX is absolutely stunning, I submitted it to VimAwesome as I think more people should be using it.
Thank you so much for your work!
Andrey.

Ah, thank you! I'll be merging the 'modes' branch to master soon, which will allow one to specify delimiters and use your own custom dictionaries (similar to how there are separate tex and math dictionaries). I'm also in the middle of adding an option to trigger on non-word characters, which would make QuickTex behave more similarly to abbreviations.


Ignore npm-debug.log

Short description explaining the high-level reason for the pull request
Additions

Ignores npm-debug.log in gitignore.

Review

@jimmynotjim
@KimberlyMunoz
@sebworks

:+1:


Theme

What about the site theme?
This package is currently meant to work on the standard Elemental theme, but it could be nice to have a custom bootstrap3 theme...
Thoughts? Anyone have time to implement it?

Not strictly related to CommunityTranslation


License for pretrained models

What license are your pretrained models released under?
We would like to add your pretrained models to TorchGeo, but some of the pretrained models require further modifications [1], [2] to make them suitable for loading. We could make these modifications on the fly if necessary, but it would be easier to make these modifications a single time and rehost the modified weights. But I'm not sure what license you're using so I'm not sure if that's allowed.
Alternatively, would you be willing to release a modified version of your weights that can be loaded directly into timm without modifications? @nilsleh not sure if you have permission to do this yourself.

Hi there! Both the dataset and weights are under CC-BY-4.0, so feel free to adapt:)

Perfect, that makes things much easier. Hopefully this will make it easier for others to reuse these weights as well!

Both the dataset and weights are under CC-BY-4.0

It may be a good idea to add a LICENSE file to this repository so that this is explicitly documented.


Restrictive mocks

Generally when a mock is called wrong it means the implementation is broken. It therefore follows that mocks should ensure they're called correctly and there should be mechanisms for constructing such restrictive mocks. Possible idea: wrap mock-returning functions in contracts and use with-contract combined with define/mock to name the function calling the mocks in the contract barrier.

I think for the most part this should work similar to #11, but not operate via contracts because mocks can only check flat contracts.

I've changed my mind on this one. Mocks are more useful when they're initially pretty loose and accepting of many behaviors, then checked and verified in tests. If a procedure has to call three mocks in a row and calls the second and third slightly wrong, restrictive mocks would error immediately but lenient mocks with checks would catch both failures at once in separate checks. This lowers the test-edit-run cycle, because a developer can find out about both failures in one cycle.


Write a C program to print numbers from 1 to n without using a loop

Description
Write a C program to print numbers from 1 to n without using a loop
Input  : 5
Output : 1 2 3 4 5

How to contribute

Save the solution in PrintNumbersFrom1ToNWithoutUsingALoop.c file
Add PrintNumbersFrom1ToNWithoutUsingALoop.c file in program/print-numbers-from-1-to-n-without-using-a-loop folder

!assign


Stack Glow causes text in blocks to wiggle on Firefox

Expected Behavior
When a stack is glowing the text on the block stays in the same place as when it's not glowing.
Actual Behavior
It moves to a slightly different position.  When the glow flashes on and off rapidly this makes the text wiggle.

Steps to Reproduce
Load this project: https://llk.github.io/scratch-gui/develop/#216001494
Run it
Note: the "When I receive [start]" block texts moves slightly.
Operating System and Browser
Firefox on Mac and Windows

Can repro this on Linux too. I've never opened an issue but I've definitely noticed it for a very long time, so it's not a recent regression.


Add QuarkSecret copy type

#173656732
Docs: https://github.com/cloudfoundry-incubator/quarks-docs/pull/4

As discussed with @viovanov I'm semplifying this to narrow down copy to a single namespace


onlyoffice v. 1.0.3 not update v. 1.0.4

Hi!It's update notification onlyoffice click update to 1.0.4.I go back into the app,but onlyoffice again asks to update.

Hello @pvl-e!
Enter the ownCloud's directory (by default it's /var/www/owncloud) and run the following command:
chown -R www-data:www-data apps
Please let us know if it helps and we will bring corrections to the application.

Yes,thank you.

Changes noticed as soon as onlyoffice no longer open,maybe the link changes when you update to add in the description?

Old files are now not editable?

Hello @pvl-e
Please check if your problem is related to the issue #63

Yes,but I'm also wondering about the availability of editing a document created before the update?

@pvl-e
The problem with the update process was resolved by the changing of rights. Therefore, I close this request.
The problem with editing files created before the update repeated? If so, create a new issue


Failure to run ANALYZE in presto due to Velox HLL Accumulator

Bug description
ANALYZE should run successfully. Instead, it fails.
System information
Running with 8 nodes. 16vCPUs, 128G of memory each. Dataset is TPC-DS SF1k written in parquet without compression.
Relevant logs
VeloxRuntimeError: currentHeader_ == nullptr Do not call allocate() when a write is in progress
	at Unknown.# 0  _ZN8facebook5velox7process10StackTraceC1Ei(Unknown Source)
	at Unknown.# 1  _ZN8facebook5velox14VeloxExceptionC2EPKcmS3_St17basic_string_viewIcSt11char_traitsIcEES7_S7_S7_bNS1_4TypeES7_(Unknown Source)
	at Unknown.# 2  _ZN8facebook5velox6detail14veloxCheckFailINS0_17VeloxRuntimeErrorEPKcEEvRKNS1_18VeloxCheckFailArgsET0_(Unknown Source)
	at Unknown.# 3  _ZNSt6vectorIjN8facebook5velox12StlAllocatorIjEEE17_M_realloc_insertIJRKjEEEvN9__gnu_cxx17__normal_iteratorIPjS4_EEDpOT_(Unknown Source)
	at Unknown.# 4  _ZN8facebook5velox6common3hll9SparseHll10insertHashEm(Unknown Source)
	at Unknown.# 5  _ZN8facebook5velox9aggregate9prestosql12_GLOBAL__N_114HllAccumulator6appendEm(Unknown Source)
	at Unknown.# 6  _ZN8facebook5velox9aggregate9prestosql12_GLOBAL__N_123ApproxDistinctAggregateIlE22addSingleGroupRawInputEPcRKNS0_17SelectivityVectorERKSt6vectorISt10shared_ptrINS0_10BaseVectorEESaISD_EEb(Unknown Source)
	at Unknown.# 7  _ZN8facebook5velox4exec11GroupingSet25addGlobalAggregationInputERKSt10shared_ptrINS0_9RowVectorEEb(Unknown Source)
	at Unknown.# 8  _ZN8facebook5velox4exec11GroupingSet8addInputERKSt10shared_ptrINS0_9RowVectorEEb(Unknown Source)
	at Unknown.# 9  _ZN8facebook5velox4exec15HashAggregation8addInputESt10shared_ptrINS0_9RowVectorEE(Unknown Source)
	at Unknown.# 10 _ZN8facebook5velox4exec6Driver11runInternalERSt10shared_ptrIS2_ERS3_INS1_13BlockingStateEERS3_INS0_9RowVectorEE(Unknown Source)
	at Unknown.# 11 _ZN8facebook5velox4exec6Driver3runESt10shared_ptrIS2_E(Unknown Source)
	at Unknown.# 12 _ZN5folly6detail8function14FunctionTraitsIFvvEE9callSmallIZN8facebook5velox4exec6Driver7enqueueESt10shared_ptrIS9_EEUlvE_EEvRNS1_4DataE(Unknown Source)
	at Unknown.# 13 _ZN5folly6detail8function14FunctionTraitsIFvvEEclEv(Unknown Source)
	at Unknown.# 14 _ZN5folly18ThreadPoolExecutor7runTaskERKSt10shared_ptrINS0_6ThreadEEONS0_4TaskE(Unknown Source)
	at Unknown.# 15 _ZN5folly21CPUThreadPoolExecutor9threadRunESt10shared_ptrINS_18ThreadPoolExecutor6ThreadEE(Unknown Source)
	at Unknown.# 16 _ZSt13__invoke_implIvRMN5folly18ThreadPoolExecutorEFvSt10shared_ptrINS1_6ThreadEEERPS1_JRS4_EET_St21__invoke_memfun_derefOT0_OT1_DpOT2_(Unknown Source)
	at Unknown.# 17 _ZSt8__invokeIRMN5folly18ThreadPoolExecutorEFvSt10shared_ptrINS1_6ThreadEEEJRPS1_RS4_EENSt15__invoke_resultIT_JDpT0_EE4typeEOSC_DpOSD_(Unknown Source)
	at Unknown.# 18 _ZNSt5_BindIFMN5folly18ThreadPoolExecutorEFvSt10shared_ptrINS1_6ThreadEEEPS1_S4_EE6__callIvJEJLm0ELm1EEEET_OSt5tupleIJDpT0_EESt12_Index_tupleIJXspT1_EEE(Unknown Source)
	at Unknown.# 19 _ZNSt5_BindIFMN5folly18ThreadPoolExecutorEFvSt10shared_ptrINS1_6ThreadEEEPS1_S4_EEclIJEvEET0_DpOT_(Unknown Source)
	at Unknown.# 20 _ZN5folly6detail8function14FunctionTraitsIFvvEE9callSmallISt5_BindIFMNS_18ThreadPoolExecutorEFvSt10shared_ptrINS7_6ThreadEEEPS7_SA_EEEEvRNS1_4DataE(Unknown Source)
	at Unknown.# 21 0x00000000000c2b23(Unknown Source)
	at Unknown.# 22 start_thread(Unknown Source)
	at Unknown.# 23 clone(Unknown Source)

Hi @ZacBlanco, I tried running ANALYZE on a table in a deployed Velox cluster of the same system information that you have provided above and it was able to run successfully. The following below is what I ran to try to reproduce your error, please let me know if I am missing anything
presto:tpcds_sf1000_parquet_varchar> use tpcds_sf1000_parquet;
USE
presto:tpcds_sf1000_parquet> analyze call_center;

Query 20240416_183322_00042_mufj8, FAILED, 3 nodes
Splits: 17 total, 0 done (0.00%)
[Latency: client-side: 263ms, server-side: 177ms] [0 rows, 0B] [0 rows/s, 0B/s]

Query 20240416_183322_00042_mufj8 failed:  Failed to parse type [char(16)]. syntax error, unexpected LPAREN, expecting WORD

presto:tpcds_sf1000_parquet> use tpcds_sf1000_parquet_varchar;
USE
presto:tpcds_sf1000_parquet_varchar> analyze call_center;
ANALYZE: 42 rows

Query 20240416_183335_00046_mufj8, FINISHED, 3 nodes
Splits: 19 total, 19 done (100.00%)
[Latency: client-side: 0:01, server-side: 0:01] [42 rows, 0B] [35 rows/s, 0B/s]

Could not repro after using a newer build with same configuration settings. Closing for now.